From efbc01477e16aa1f9654334d2489b8740ffc8dbc Mon Sep 17 00:00:00 2001 From: Orie Steele Date: Tue, 13 Aug 2024 10:43:02 -0500 Subject: [PATCH] update action --- dist/index.js | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/dist/index.js b/dist/index.js index fe0f9a08..9311e0e2 100755 --- a/dist/index.js +++ b/dist/index.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -(()=>{var __webpack_modules__={87351:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;Object.defineProperty(R,he,{enumerable:true,get:function(){return pe[Ae]}})}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.issue=pe.issueCommand=void 0;const me=ye(Ae(22037));const ve=Ae(5278);function issueCommand(R,pe,Ae){const he=new Command(R,pe,Ae);process.stdout.write(he.toString()+me.EOL)}pe.issueCommand=issueCommand;function issue(R,pe=""){issueCommand(R,{},pe)}pe.issue=issue;const be="::";class Command{constructor(R,pe,Ae){if(!R){R="missing.command"}this.command=R;this.properties=pe;this.message=Ae}toString(){let R=be+this.command;if(this.properties&&Object.keys(this.properties).length>0){R+=" ";let pe=true;for(const Ae in this.properties){if(this.properties.hasOwnProperty(Ae)){const he=this.properties[Ae];if(he){if(pe){pe=false}else{R+=","}R+=`${Ae}=${escapeProperty(he)}`}}}}R+=`${be}${escapeData(this.message)}`;return R}}function escapeData(R){return ve.toCommandValue(R).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(R){return ve.toCommandValue(R).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},42186:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;Object.defineProperty(R,he,{enumerable:true,get:function(){return pe[Ae]}})}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getIDToken=pe.getState=pe.saveState=pe.group=pe.endGroup=pe.startGroup=pe.info=pe.notice=pe.warning=pe.error=pe.debug=pe.isDebug=pe.setFailed=pe.setCommandEcho=pe.setOutput=pe.getBooleanInput=pe.getMultilineInput=pe.getInput=pe.addPath=pe.setSecret=pe.exportVariable=pe.ExitCode=void 0;const ve=Ae(87351);const be=Ae(717);const Ee=Ae(5278);const Ce=ye(Ae(22037));const we=ye(Ae(71017));const _e=Ae(98041);var Ie;(function(R){R[R["Success"]=0]="Success";R[R["Failure"]=1]="Failure"})(Ie=pe.ExitCode||(pe.ExitCode={}));function exportVariable(R,pe){const Ae=Ee.toCommandValue(pe);process.env[R]=Ae;const he=process.env["GITHUB_ENV"]||"";if(he){return be.issueFileCommand("ENV",be.prepareKeyValueMessage(R,pe))}ve.issueCommand("set-env",{name:R},Ae)}pe.exportVariable=exportVariable;function setSecret(R){ve.issueCommand("add-mask",{},R)}pe.setSecret=setSecret;function addPath(R){const pe=process.env["GITHUB_PATH"]||"";if(pe){be.issueFileCommand("PATH",R)}else{ve.issueCommand("add-path",{},R)}process.env["PATH"]=`${R}${we.delimiter}${process.env["PATH"]}`}pe.addPath=addPath;function getInput(R,pe){const Ae=process.env[`INPUT_${R.replace(/ /g,"_").toUpperCase()}`]||"";if(pe&&pe.required&&!Ae){throw new Error(`Input required and not supplied: ${R}`)}if(pe&&pe.trimWhitespace===false){return Ae}return Ae.trim()}pe.getInput=getInput;function getMultilineInput(R,pe){const Ae=getInput(R,pe).split("\n").filter((R=>R!==""));if(pe&&pe.trimWhitespace===false){return Ae}return Ae.map((R=>R.trim()))}pe.getMultilineInput=getMultilineInput;function getBooleanInput(R,pe){const Ae=["true","True","TRUE"];const he=["false","False","FALSE"];const ge=getInput(R,pe);if(Ae.includes(ge))return true;if(he.includes(ge))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${R}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}pe.getBooleanInput=getBooleanInput;function setOutput(R,pe){const Ae=process.env["GITHUB_OUTPUT"]||"";if(Ae){return be.issueFileCommand("OUTPUT",be.prepareKeyValueMessage(R,pe))}process.stdout.write(Ce.EOL);ve.issueCommand("set-output",{name:R},Ee.toCommandValue(pe))}pe.setOutput=setOutput;function setCommandEcho(R){ve.issue("echo",R?"on":"off")}pe.setCommandEcho=setCommandEcho;function setFailed(R){process.exitCode=Ie.Failure;error(R)}pe.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}pe.isDebug=isDebug;function debug(R){ve.issueCommand("debug",{},R)}pe.debug=debug;function error(R,pe={}){ve.issueCommand("error",Ee.toCommandProperties(pe),R instanceof Error?R.toString():R)}pe.error=error;function warning(R,pe={}){ve.issueCommand("warning",Ee.toCommandProperties(pe),R instanceof Error?R.toString():R)}pe.warning=warning;function notice(R,pe={}){ve.issueCommand("notice",Ee.toCommandProperties(pe),R instanceof Error?R.toString():R)}pe.notice=notice;function info(R){process.stdout.write(R+Ce.EOL)}pe.info=info;function startGroup(R){ve.issue("group",R)}pe.startGroup=startGroup;function endGroup(){ve.issue("endgroup")}pe.endGroup=endGroup;function group(R,pe){return me(this,void 0,void 0,(function*(){startGroup(R);let Ae;try{Ae=yield pe()}finally{endGroup()}return Ae}))}pe.group=group;function saveState(R,pe){const Ae=process.env["GITHUB_STATE"]||"";if(Ae){return be.issueFileCommand("STATE",be.prepareKeyValueMessage(R,pe))}ve.issueCommand("save-state",{name:R},Ee.toCommandValue(pe))}pe.saveState=saveState;function getState(R){return process.env[`STATE_${R}`]||""}pe.getState=getState;function getIDToken(R){return me(this,void 0,void 0,(function*(){return yield _e.OidcClient.getIDToken(R)}))}pe.getIDToken=getIDToken;var Se=Ae(81327);Object.defineProperty(pe,"summary",{enumerable:true,get:function(){return Se.summary}});var Be=Ae(81327);Object.defineProperty(pe,"markdownSummary",{enumerable:true,get:function(){return Be.markdownSummary}});var ke=Ae(2981);Object.defineProperty(pe,"toPosixPath",{enumerable:true,get:function(){return ke.toPosixPath}});Object.defineProperty(pe,"toWin32Path",{enumerable:true,get:function(){return ke.toWin32Path}});Object.defineProperty(pe,"toPlatformPath",{enumerable:true,get:function(){return ke.toPlatformPath}})},717:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;Object.defineProperty(R,he,{enumerable:true,get:function(){return pe[Ae]}})}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.prepareKeyValueMessage=pe.issueFileCommand=void 0;const me=ye(Ae(57147));const ve=ye(Ae(22037));const be=Ae(78974);const Ee=Ae(5278);function issueFileCommand(R,pe){const Ae=process.env[`GITHUB_${R}`];if(!Ae){throw new Error(`Unable to find environment variable for file command ${R}`)}if(!me.existsSync(Ae)){throw new Error(`Missing file at path: ${Ae}`)}me.appendFileSync(Ae,`${Ee.toCommandValue(pe)}${ve.EOL}`,{encoding:"utf8"})}pe.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(R,pe){const Ae=`ghadelimiter_${be.v4()}`;const he=Ee.toCommandValue(pe);if(R.includes(Ae)){throw new Error(`Unexpected input: name should not contain the delimiter "${Ae}"`)}if(he.includes(Ae)){throw new Error(`Unexpected input: value should not contain the delimiter "${Ae}"`)}return`${R}<<${Ae}${ve.EOL}${he}${ve.EOL}${Ae}`}pe.prepareKeyValueMessage=prepareKeyValueMessage},98041:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.OidcClient=void 0;const ge=Ae(96255);const ye=Ae(35526);const me=Ae(42186);class OidcClient{static createHttpClient(R=true,pe=10){const Ae={allowRetries:R,maxRetries:pe};return new ge.HttpClient("actions/oidc-client",[new ye.BearerCredentialHandler(OidcClient.getRequestToken())],Ae)}static getRequestToken(){const R=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!R){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return R}static getIDTokenUrl(){const R=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!R){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return R}static getCall(R){var pe;return he(this,void 0,void 0,(function*(){const Ae=OidcClient.createHttpClient();const he=yield Ae.getJson(R).catch((R=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${R.statusCode}\n \n Error Message: ${R.message}`)}));const ge=(pe=he.result)===null||pe===void 0?void 0:pe.value;if(!ge){throw new Error("Response json body do not have ID Token field")}return ge}))}static getIDToken(R){return he(this,void 0,void 0,(function*(){try{let pe=OidcClient.getIDTokenUrl();if(R){const Ae=encodeURIComponent(R);pe=`${pe}&audience=${Ae}`}me.debug(`ID token url is ${pe}`);const Ae=yield OidcClient.getCall(pe);me.setSecret(Ae);return Ae}catch(R){throw new Error(`Error message: ${R.message}`)}}))}}pe.OidcClient=OidcClient},2981:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;Object.defineProperty(R,he,{enumerable:true,get:function(){return pe[Ae]}})}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.toPlatformPath=pe.toWin32Path=pe.toPosixPath=void 0;const me=ye(Ae(71017));function toPosixPath(R){return R.replace(/[\\]/g,"/")}pe.toPosixPath=toPosixPath;function toWin32Path(R){return R.replace(/[/]/g,"\\")}pe.toWin32Path=toWin32Path;function toPlatformPath(R){return R.replace(/[/\\]/g,me.sep)}pe.toPlatformPath=toPlatformPath},81327:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.summary=pe.markdownSummary=pe.SUMMARY_DOCS_URL=pe.SUMMARY_ENV_VAR=void 0;const ge=Ae(22037);const ye=Ae(57147);const{access:me,appendFile:ve,writeFile:be}=ye.promises;pe.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";pe.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 he(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const R=process.env[pe.SUMMARY_ENV_VAR];if(!R){throw new Error(`Unable to find environment variable for $${pe.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield me(R,ye.constants.R_OK|ye.constants.W_OK)}catch(pe){throw new Error(`Unable to access summary file: '${R}'. Check if the file has correct read/write permissions.`)}this._filePath=R;return this._filePath}))}wrap(R,pe,Ae={}){const he=Object.entries(Ae).map((([R,pe])=>` ${R}="${pe}"`)).join("");if(!pe){return`<${R}${he}>`}return`<${R}${he}>${pe}`}write(R){return he(this,void 0,void 0,(function*(){const pe=!!(R===null||R===void 0?void 0:R.overwrite);const Ae=yield this.filePath();const he=pe?be:ve;yield he(Ae,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return he(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(R,pe=false){this._buffer+=R;return pe?this.addEOL():this}addEOL(){return this.addRaw(ge.EOL)}addCodeBlock(R,pe){const Ae=Object.assign({},pe&&{lang:pe});const he=this.wrap("pre",this.wrap("code",R),Ae);return this.addRaw(he).addEOL()}addList(R,pe=false){const Ae=pe?"ol":"ul";const he=R.map((R=>this.wrap("li",R))).join("");const ge=this.wrap(Ae,he);return this.addRaw(ge).addEOL()}addTable(R){const pe=R.map((R=>{const pe=R.map((R=>{if(typeof R==="string"){return this.wrap("td",R)}const{header:pe,data:Ae,colspan:he,rowspan:ge}=R;const ye=pe?"th":"td";const me=Object.assign(Object.assign({},he&&{colspan:he}),ge&&{rowspan:ge});return this.wrap(ye,Ae,me)})).join("");return this.wrap("tr",pe)})).join("");const Ae=this.wrap("table",pe);return this.addRaw(Ae).addEOL()}addDetails(R,pe){const Ae=this.wrap("details",this.wrap("summary",R)+pe);return this.addRaw(Ae).addEOL()}addImage(R,pe,Ae){const{width:he,height:ge}=Ae||{};const ye=Object.assign(Object.assign({},he&&{width:he}),ge&&{height:ge});const me=this.wrap("img",null,Object.assign({src:R,alt:pe},ye));return this.addRaw(me).addEOL()}addHeading(R,pe){const Ae=`h${pe}`;const he=["h1","h2","h3","h4","h5","h6"].includes(Ae)?Ae:"h1";const ge=this.wrap(he,R);return this.addRaw(ge).addEOL()}addSeparator(){const R=this.wrap("hr",null);return this.addRaw(R).addEOL()}addBreak(){const R=this.wrap("br",null);return this.addRaw(R).addEOL()}addQuote(R,pe){const Ae=Object.assign({},pe&&{cite:pe});const he=this.wrap("blockquote",R,Ae);return this.addRaw(he).addEOL()}addLink(R,pe){const Ae=this.wrap("a",R,{href:pe});return this.addRaw(Ae).addEOL()}}const Ee=new Summary;pe.markdownSummary=Ee;pe.summary=Ee},5278:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.toCommandProperties=pe.toCommandValue=void 0;function toCommandValue(R){if(R===null||R===undefined){return""}else if(typeof R==="string"||R instanceof String){return R}return JSON.stringify(R)}pe.toCommandValue=toCommandValue;function toCommandProperties(R){if(!Object.keys(R).length){return{}}return{title:R.title,file:R.file,line:R.startLine,endLine:R.endLine,col:R.startColumn,endColumn:R.endColumn}}pe.toCommandProperties=toCommandProperties},78974:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});Object.defineProperty(pe,"v1",{enumerable:true,get:function(){return he.default}});Object.defineProperty(pe,"v3",{enumerable:true,get:function(){return ge.default}});Object.defineProperty(pe,"v4",{enumerable:true,get:function(){return ye.default}});Object.defineProperty(pe,"v5",{enumerable:true,get:function(){return me.default}});Object.defineProperty(pe,"NIL",{enumerable:true,get:function(){return ve.default}});Object.defineProperty(pe,"version",{enumerable:true,get:function(){return be.default}});Object.defineProperty(pe,"validate",{enumerable:true,get:function(){return Ee.default}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return Ce.default}});Object.defineProperty(pe,"parse",{enumerable:true,get:function(){return we.default}});var he=_interopRequireDefault(Ae(81595));var ge=_interopRequireDefault(Ae(26993));var ye=_interopRequireDefault(Ae(51472));var me=_interopRequireDefault(Ae(16217));var ve=_interopRequireDefault(Ae(32381));var be=_interopRequireDefault(Ae(40427));var Ee=_interopRequireDefault(Ae(92609));var Ce=_interopRequireDefault(Ae(61458));var we=_interopRequireDefault(Ae(26385));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}},5842:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function md5(R){if(Array.isArray(R)){R=Buffer.from(R)}else if(typeof R==="string"){R=Buffer.from(R,"utf8")}return he.default.createHash("md5").update(R).digest()}var ge=md5;pe["default"]=ge},32381:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var Ae="00000000-0000-0000-0000-000000000000";pe["default"]=Ae},26385:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(92609));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function parse(R){if(!(0,he.default)(R)){throw TypeError("Invalid UUID")}let pe;const Ae=new Uint8Array(16);Ae[0]=(pe=parseInt(R.slice(0,8),16))>>>24;Ae[1]=pe>>>16&255;Ae[2]=pe>>>8&255;Ae[3]=pe&255;Ae[4]=(pe=parseInt(R.slice(9,13),16))>>>8;Ae[5]=pe&255;Ae[6]=(pe=parseInt(R.slice(14,18),16))>>>8;Ae[7]=pe&255;Ae[8]=(pe=parseInt(R.slice(19,23),16))>>>8;Ae[9]=pe&255;Ae[10]=(pe=parseInt(R.slice(24,36),16))/1099511627776&255;Ae[11]=pe/4294967296&255;Ae[12]=pe>>>24&255;Ae[13]=pe>>>16&255;Ae[14]=pe>>>8&255;Ae[15]=pe&255;return Ae}var ge=parse;pe["default"]=ge},86230:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var Ae=/^(?:[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;pe["default"]=Ae},9784:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=rng;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ge=new Uint8Array(256);let ye=ge.length;function rng(){if(ye>ge.length-16){he.default.randomFillSync(ge);ye=0}return ge.slice(ye,ye+=16)}},38844:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function sha1(R){if(Array.isArray(R)){R=Buffer.from(R)}else if(typeof R==="string"){R=Buffer.from(R,"utf8")}return he.default.createHash("sha1").update(R).digest()}var ge=sha1;pe["default"]=ge},61458:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(92609));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ge=[];for(let R=0;R<256;++R){ge.push((R+256).toString(16).substr(1))}function stringify(R,pe=0){const Ae=(ge[R[pe+0]]+ge[R[pe+1]]+ge[R[pe+2]]+ge[R[pe+3]]+"-"+ge[R[pe+4]]+ge[R[pe+5]]+"-"+ge[R[pe+6]]+ge[R[pe+7]]+"-"+ge[R[pe+8]]+ge[R[pe+9]]+"-"+ge[R[pe+10]]+ge[R[pe+11]]+ge[R[pe+12]]+ge[R[pe+13]]+ge[R[pe+14]]+ge[R[pe+15]]).toLowerCase();if(!(0,he.default)(Ae)){throw TypeError("Stringified UUID is invalid")}return Ae}var ye=stringify;pe["default"]=ye},81595:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(9784));var ge=_interopRequireDefault(Ae(61458));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}let ye;let me;let ve=0;let be=0;function v1(R,pe,Ae){let Ee=pe&&Ae||0;const Ce=pe||new Array(16);R=R||{};let we=R.node||ye;let _e=R.clockseq!==undefined?R.clockseq:me;if(we==null||_e==null){const pe=R.random||(R.rng||he.default)();if(we==null){we=ye=[pe[0]|1,pe[1],pe[2],pe[3],pe[4],pe[5]]}if(_e==null){_e=me=(pe[6]<<8|pe[7])&16383}}let Ie=R.msecs!==undefined?R.msecs:Date.now();let Se=R.nsecs!==undefined?R.nsecs:be+1;const Be=Ie-ve+(Se-be)/1e4;if(Be<0&&R.clockseq===undefined){_e=_e+1&16383}if((Be<0||Ie>ve)&&R.nsecs===undefined){Se=0}if(Se>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}ve=Ie;be=Se;me=_e;Ie+=122192928e5;const ke=((Ie&268435455)*1e4+Se)%4294967296;Ce[Ee++]=ke>>>24&255;Ce[Ee++]=ke>>>16&255;Ce[Ee++]=ke>>>8&255;Ce[Ee++]=ke&255;const Oe=Ie/4294967296*1e4&268435455;Ce[Ee++]=Oe>>>8&255;Ce[Ee++]=Oe&255;Ce[Ee++]=Oe>>>24&15|16;Ce[Ee++]=Oe>>>16&255;Ce[Ee++]=_e>>>8|128;Ce[Ee++]=_e&255;for(let R=0;R<6;++R){Ce[Ee+R]=we[R]}return pe||(0,ge.default)(Ce)}var Ee=v1;pe["default"]=Ee},26993:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(65920));var ge=_interopRequireDefault(Ae(5842));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ye=(0,he.default)("v3",48,ge.default);var me=ye;pe["default"]=me},65920:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=_default;pe.URL=pe.DNS=void 0;var he=_interopRequireDefault(Ae(61458));var ge=_interopRequireDefault(Ae(26385));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function stringToBytes(R){R=unescape(encodeURIComponent(R));const pe=[];for(let Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(9784));var ge=_interopRequireDefault(Ae(61458));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function v4(R,pe,Ae){R=R||{};const ye=R.random||(R.rng||he.default)();ye[6]=ye[6]&15|64;ye[8]=ye[8]&63|128;if(pe){Ae=Ae||0;for(let R=0;R<16;++R){pe[Ae+R]=ye[R]}return pe}return(0,ge.default)(ye)}var ye=v4;pe["default"]=ye},16217:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(65920));var ge=_interopRequireDefault(Ae(38844));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ye=(0,he.default)("v5",80,ge.default);var me=ye;pe["default"]=me},92609:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(86230));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function validate(R){return typeof R==="string"&&he.default.test(R)}var ge=validate;pe["default"]=ge},40427:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(92609));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function version(R){if(!(0,he.default)(R)){throw TypeError("Invalid UUID")}return parseInt(R.substr(14,1),16)}var ge=version;pe["default"]=ge},35526:function(R,pe){"use strict";var Ae=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.PersonalAccessTokenCredentialHandler=pe.BearerCredentialHandler=pe.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(R,pe){this.username=R;this.password=pe}prepareRequest(R){if(!R.headers){throw Error("The request has no headers")}R.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return Ae(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}pe.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(R){this.token=R}prepareRequest(R){if(!R.headers){throw Error("The request has no headers")}R.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return Ae(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}pe.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(R){this.token=R}prepareRequest(R){if(!R.headers){throw Error("The request has no headers")}R.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return Ae(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}pe.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},96255:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.HttpClient=pe.isHttps=pe.HttpClientResponse=pe.HttpClientError=pe.getProxyUrl=pe.MediaTypes=pe.Headers=pe.HttpCodes=void 0;const ve=ye(Ae(13685));const be=ye(Ae(95687));const Ee=ye(Ae(19835));const Ce=ye(Ae(74294));const we=Ae(41773);var _e;(function(R){R[R["OK"]=200]="OK";R[R["MultipleChoices"]=300]="MultipleChoices";R[R["MovedPermanently"]=301]="MovedPermanently";R[R["ResourceMoved"]=302]="ResourceMoved";R[R["SeeOther"]=303]="SeeOther";R[R["NotModified"]=304]="NotModified";R[R["UseProxy"]=305]="UseProxy";R[R["SwitchProxy"]=306]="SwitchProxy";R[R["TemporaryRedirect"]=307]="TemporaryRedirect";R[R["PermanentRedirect"]=308]="PermanentRedirect";R[R["BadRequest"]=400]="BadRequest";R[R["Unauthorized"]=401]="Unauthorized";R[R["PaymentRequired"]=402]="PaymentRequired";R[R["Forbidden"]=403]="Forbidden";R[R["NotFound"]=404]="NotFound";R[R["MethodNotAllowed"]=405]="MethodNotAllowed";R[R["NotAcceptable"]=406]="NotAcceptable";R[R["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";R[R["RequestTimeout"]=408]="RequestTimeout";R[R["Conflict"]=409]="Conflict";R[R["Gone"]=410]="Gone";R[R["TooManyRequests"]=429]="TooManyRequests";R[R["InternalServerError"]=500]="InternalServerError";R[R["NotImplemented"]=501]="NotImplemented";R[R["BadGateway"]=502]="BadGateway";R[R["ServiceUnavailable"]=503]="ServiceUnavailable";R[R["GatewayTimeout"]=504]="GatewayTimeout"})(_e||(pe.HttpCodes=_e={}));var Ie;(function(R){R["Accept"]="accept";R["ContentType"]="content-type"})(Ie||(pe.Headers=Ie={}));var Se;(function(R){R["ApplicationJson"]="application/json"})(Se||(pe.MediaTypes=Se={}));function getProxyUrl(R){const pe=Ee.getProxyUrl(new URL(R));return pe?pe.href:""}pe.getProxyUrl=getProxyUrl;const Be=[_e.MovedPermanently,_e.ResourceMoved,_e.SeeOther,_e.TemporaryRedirect,_e.PermanentRedirect];const ke=[_e.BadGateway,_e.ServiceUnavailable,_e.GatewayTimeout];const Oe=["OPTIONS","GET","DELETE","HEAD"];const Re=10;const Qe=5;class HttpClientError extends Error{constructor(R,pe){super(R);this.name="HttpClientError";this.statusCode=pe;Object.setPrototypeOf(this,HttpClientError.prototype)}}pe.HttpClientError=HttpClientError;class HttpClientResponse{constructor(R){this.message=R}readBody(){return me(this,void 0,void 0,(function*(){return new Promise((R=>me(this,void 0,void 0,(function*(){let pe=Buffer.alloc(0);this.message.on("data",(R=>{pe=Buffer.concat([pe,R])}));this.message.on("end",(()=>{R(pe.toString())}))}))))}))}readBodyBuffer(){return me(this,void 0,void 0,(function*(){return new Promise((R=>me(this,void 0,void 0,(function*(){const pe=[];this.message.on("data",(R=>{pe.push(R)}));this.message.on("end",(()=>{R(Buffer.concat(pe))}))}))))}))}}pe.HttpClientResponse=HttpClientResponse;function isHttps(R){const pe=new URL(R);return pe.protocol==="https:"}pe.isHttps=isHttps;class HttpClient{constructor(R,pe,Ae){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=R;this.handlers=pe||[];this.requestOptions=Ae;if(Ae){if(Ae.ignoreSslError!=null){this._ignoreSslError=Ae.ignoreSslError}this._socketTimeout=Ae.socketTimeout;if(Ae.allowRedirects!=null){this._allowRedirects=Ae.allowRedirects}if(Ae.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=Ae.allowRedirectDowngrade}if(Ae.maxRedirects!=null){this._maxRedirects=Math.max(Ae.maxRedirects,0)}if(Ae.keepAlive!=null){this._keepAlive=Ae.keepAlive}if(Ae.allowRetries!=null){this._allowRetries=Ae.allowRetries}if(Ae.maxRetries!=null){this._maxRetries=Ae.maxRetries}}}options(R,pe){return me(this,void 0,void 0,(function*(){return this.request("OPTIONS",R,null,pe||{})}))}get(R,pe){return me(this,void 0,void 0,(function*(){return this.request("GET",R,null,pe||{})}))}del(R,pe){return me(this,void 0,void 0,(function*(){return this.request("DELETE",R,null,pe||{})}))}post(R,pe,Ae){return me(this,void 0,void 0,(function*(){return this.request("POST",R,pe,Ae||{})}))}patch(R,pe,Ae){return me(this,void 0,void 0,(function*(){return this.request("PATCH",R,pe,Ae||{})}))}put(R,pe,Ae){return me(this,void 0,void 0,(function*(){return this.request("PUT",R,pe,Ae||{})}))}head(R,pe){return me(this,void 0,void 0,(function*(){return this.request("HEAD",R,null,pe||{})}))}sendStream(R,pe,Ae,he){return me(this,void 0,void 0,(function*(){return this.request(R,pe,Ae,he)}))}getJson(R,pe={}){return me(this,void 0,void 0,(function*(){pe[Ie.Accept]=this._getExistingOrDefaultHeader(pe,Ie.Accept,Se.ApplicationJson);const Ae=yield this.get(R,pe);return this._processResponse(Ae,this.requestOptions)}))}postJson(R,pe,Ae={}){return me(this,void 0,void 0,(function*(){const he=JSON.stringify(pe,null,2);Ae[Ie.Accept]=this._getExistingOrDefaultHeader(Ae,Ie.Accept,Se.ApplicationJson);Ae[Ie.ContentType]=this._getExistingOrDefaultHeader(Ae,Ie.ContentType,Se.ApplicationJson);const ge=yield this.post(R,he,Ae);return this._processResponse(ge,this.requestOptions)}))}putJson(R,pe,Ae={}){return me(this,void 0,void 0,(function*(){const he=JSON.stringify(pe,null,2);Ae[Ie.Accept]=this._getExistingOrDefaultHeader(Ae,Ie.Accept,Se.ApplicationJson);Ae[Ie.ContentType]=this._getExistingOrDefaultHeader(Ae,Ie.ContentType,Se.ApplicationJson);const ge=yield this.put(R,he,Ae);return this._processResponse(ge,this.requestOptions)}))}patchJson(R,pe,Ae={}){return me(this,void 0,void 0,(function*(){const he=JSON.stringify(pe,null,2);Ae[Ie.Accept]=this._getExistingOrDefaultHeader(Ae,Ie.Accept,Se.ApplicationJson);Ae[Ie.ContentType]=this._getExistingOrDefaultHeader(Ae,Ie.ContentType,Se.ApplicationJson);const ge=yield this.patch(R,he,Ae);return this._processResponse(ge,this.requestOptions)}))}request(R,pe,Ae,he){return me(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const ge=new URL(pe);let ye=this._prepareRequest(R,ge,he);const me=this._allowRetries&&Oe.includes(R)?this._maxRetries+1:1;let ve=0;let be;do{be=yield this.requestRaw(ye,Ae);if(be&&be.message&&be.message.statusCode===_e.Unauthorized){let R;for(const pe of this.handlers){if(pe.canHandleAuthentication(be)){R=pe;break}}if(R){return R.handleAuthentication(this,ye,Ae)}else{return be}}let pe=this._maxRedirects;while(be.message.statusCode&&Be.includes(be.message.statusCode)&&this._allowRedirects&&pe>0){const me=be.message.headers["location"];if(!me){break}const ve=new URL(me);if(ge.protocol==="https:"&&ge.protocol!==ve.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 be.readBody();if(ve.hostname!==ge.hostname){for(const R in he){if(R.toLowerCase()==="authorization"){delete he[R]}}}ye=this._prepareRequest(R,ve,he);be=yield this.requestRaw(ye,Ae);pe--}if(!be.message.statusCode||!ke.includes(be.message.statusCode)){return be}ve+=1;if(ve{function callbackForResult(R,pe){if(R){he(R)}else if(!pe){he(new Error("Unknown error"))}else{Ae(pe)}}this.requestRawWithCallback(R,pe,callbackForResult)}))}))}requestRawWithCallback(R,pe,Ae){if(typeof pe==="string"){if(!R.options.headers){R.options.headers={}}R.options.headers["Content-Length"]=Buffer.byteLength(pe,"utf8")}let he=false;function handleResult(R,pe){if(!he){he=true;Ae(R,pe)}}const ge=R.httpModule.request(R.options,(R=>{const pe=new HttpClientResponse(R);handleResult(undefined,pe)}));let ye;ge.on("socket",(R=>{ye=R}));ge.setTimeout(this._socketTimeout||3*6e4,(()=>{if(ye){ye.end()}handleResult(new Error(`Request timeout: ${R.options.path}`))}));ge.on("error",(function(R){handleResult(R)}));if(pe&&typeof pe==="string"){ge.write(pe,"utf8")}if(pe&&typeof pe!=="string"){pe.on("close",(function(){ge.end()}));pe.pipe(ge)}else{ge.end()}}getAgent(R){const pe=new URL(R);return this._getAgent(pe)}getAgentDispatcher(R){const pe=new URL(R);const Ae=Ee.getProxyUrl(pe);const he=Ae&&Ae.hostname;if(!he){return}return this._getProxyAgentDispatcher(pe,Ae)}_prepareRequest(R,pe,Ae){const he={};he.parsedUrl=pe;const ge=he.parsedUrl.protocol==="https:";he.httpModule=ge?be:ve;const ye=ge?443:80;he.options={};he.options.host=he.parsedUrl.hostname;he.options.port=he.parsedUrl.port?parseInt(he.parsedUrl.port):ye;he.options.path=(he.parsedUrl.pathname||"")+(he.parsedUrl.search||"");he.options.method=R;he.options.headers=this._mergeHeaders(Ae);if(this.userAgent!=null){he.options.headers["user-agent"]=this.userAgent}he.options.agent=this._getAgent(he.parsedUrl);if(this.handlers){for(const R of this.handlers){R.prepareRequest(he.options)}}return he}_mergeHeaders(R){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(R||{}))}return lowercaseKeys(R||{})}_getExistingOrDefaultHeader(R,pe,Ae){let he;if(this.requestOptions&&this.requestOptions.headers){he=lowercaseKeys(this.requestOptions.headers)[pe]}return R[pe]||he||Ae}_getAgent(R){let pe;const Ae=Ee.getProxyUrl(R);const he=Ae&&Ae.hostname;if(this._keepAlive&&he){pe=this._proxyAgent}if(!he){pe=this._agent}if(pe){return pe}const ge=R.protocol==="https:";let ye=100;if(this.requestOptions){ye=this.requestOptions.maxSockets||ve.globalAgent.maxSockets}if(Ae&&Ae.hostname){const R={maxSockets:ye,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(Ae.username||Ae.password)&&{proxyAuth:`${Ae.username}:${Ae.password}`}),{host:Ae.hostname,port:Ae.port})};let he;const me=Ae.protocol==="https:";if(ge){he=me?Ce.httpsOverHttps:Ce.httpsOverHttp}else{he=me?Ce.httpOverHttps:Ce.httpOverHttp}pe=he(R);this._proxyAgent=pe}if(!pe){const R={keepAlive:this._keepAlive,maxSockets:ye};pe=ge?new be.Agent(R):new ve.Agent(R);this._agent=pe}if(ge&&this._ignoreSslError){pe.options=Object.assign(pe.options||{},{rejectUnauthorized:false})}return pe}_getProxyAgentDispatcher(R,pe){let Ae;if(this._keepAlive){Ae=this._proxyAgentDispatcher}if(Ae){return Ae}const he=R.protocol==="https:";Ae=new we.ProxyAgent(Object.assign({uri:pe.href,pipelining:!this._keepAlive?0:1},(pe.username||pe.password)&&{token:`${pe.username}:${pe.password}`}));this._proxyAgentDispatcher=Ae;if(he&&this._ignoreSslError){Ae.options=Object.assign(Ae.options.requestTls||{},{rejectUnauthorized:false})}return Ae}_performExponentialBackoff(R){return me(this,void 0,void 0,(function*(){R=Math.min(Re,R);const pe=Qe*Math.pow(2,R);return new Promise((R=>setTimeout((()=>R()),pe)))}))}_processResponse(R,pe){return me(this,void 0,void 0,(function*(){return new Promise(((Ae,he)=>me(this,void 0,void 0,(function*(){const ge=R.message.statusCode||0;const ye={statusCode:ge,result:null,headers:{}};if(ge===_e.NotFound){Ae(ye)}function dateTimeDeserializer(R,pe){if(typeof pe==="string"){const R=new Date(pe);if(!isNaN(R.valueOf())){return R}}return pe}let me;let ve;try{ve=yield R.readBody();if(ve&&ve.length>0){if(pe&&pe.deserializeDates){me=JSON.parse(ve,dateTimeDeserializer)}else{me=JSON.parse(ve)}ye.result=me}ye.headers=R.message.headers}catch(R){}if(ge>299){let R;if(me&&me.message){R=me.message}else if(ve&&ve.length>0){R=ve}else{R=`Failed request: (${ge})`}const pe=new HttpClientError(R,ge);pe.result=ye.result;he(pe)}else{Ae(ye)}}))))}))}}pe.HttpClient=HttpClient;const lowercaseKeys=R=>Object.keys(R).reduce(((pe,Ae)=>(pe[Ae.toLowerCase()]=R[Ae],pe)),{})},19835:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.checkBypass=pe.getProxyUrl=void 0;function getProxyUrl(R){const pe=R.protocol==="https:";if(checkBypass(R)){return undefined}const Ae=(()=>{if(pe){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(Ae){try{return new URL(Ae)}catch(R){if(!Ae.startsWith("http://")&&!Ae.startsWith("https://"))return new URL(`http://${Ae}`)}}else{return undefined}}pe.getProxyUrl=getProxyUrl;function checkBypass(R){if(!R.hostname){return false}const pe=R.hostname;if(isLoopbackAddress(pe)){return true}const Ae=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!Ae){return false}let he;if(R.port){he=Number(R.port)}else if(R.protocol==="http:"){he=80}else if(R.protocol==="https:"){he=443}const ge=[R.hostname.toUpperCase()];if(typeof he==="number"){ge.push(`${ge[0]}:${he}`)}for(const R of Ae.split(",").map((R=>R.trim().toUpperCase())).filter((R=>R))){if(R==="*"||ge.some((pe=>pe===R||pe.endsWith(`.${R}`)||R.startsWith(".")&&pe.endsWith(`${R}`)))){return true}}return false}pe.checkBypass=checkBypass;function isLoopbackAddress(R){const pe=R.toLowerCase();return pe==="localhost"||pe.startsWith("127.")||pe.startsWith("[::1]")||pe.startsWith("[0:0:0:0:0:0:0:1]")}},67284:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Attribute=void 0;const he=Ae(4351);const ge=Ae(53499);class Attribute{constructor(R={}){this.attrType="";this.attrValues=[];Object.assign(this,R)}}pe.Attribute=Attribute;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],Attribute.prototype,"attrType",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,repeated:"set"})],Attribute.prototype,"attrValues",void 0)},71061:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CounterSignature=pe.SigningTime=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(46959);let ve=class SigningTime extends ye.Time{};ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve);pe.SigningTime=ve;let be=class CounterSignature extends me.SignerInfo{};be=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Sequence})],be);pe.CounterSignature=be},1093:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.CertificateSet=pe.CertificateChoices=pe.OtherCertificateFormat=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(82288);const ve=Ae(64263);class OtherCertificateFormat{constructor(R={}){this.otherCertFormat="";this.otherCert=new ArrayBuffer(0);Object.assign(this,R)}}pe.OtherCertificateFormat=OtherCertificateFormat;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],OtherCertificateFormat.prototype,"otherCertFormat",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Any})],OtherCertificateFormat.prototype,"otherCert",void 0);let be=class CertificateChoices{constructor(R={}){Object.assign(this,R)}};pe.CertificateChoices=be;ge.__decorate([(0,ye.AsnProp)({type:me.Certificate})],be.prototype,"certificate",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.AttributeCertificate,context:2,implicit:true})],be.prototype,"v2AttrCert",void 0);ge.__decorate([(0,ye.AsnProp)({type:OtherCertificateFormat,context:3,implicit:true})],be.prototype,"other",void 0);pe.CertificateChoices=be=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],be);let Ee=he=class CertificateSet extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.CertificateSet=Ee;pe.CertificateSet=Ee=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:be})],Ee)},69207:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ContentInfo=void 0;const he=Ae(4351);const ge=Ae(53499);class ContentInfo{constructor(R={}){this.contentType="";this.content=new ArrayBuffer(0);Object.assign(this,R)}}pe.ContentInfo=ContentInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],ContentInfo.prototype,"contentType",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:0})],ContentInfo.prototype,"content",void 0)},21377:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncapsulatedContentInfo=pe.EncapsulatedContent=void 0;const he=Ae(4351);const ge=Ae(53499);let ye=class EncapsulatedContent{constructor(R={}){Object.assign(this,R)}};pe.EncapsulatedContent=ye;he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],ye.prototype,"single",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any})],ye.prototype,"any",void 0);pe.EncapsulatedContent=ye=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ye);class EncapsulatedContentInfo{constructor(R={}){this.eContentType="";Object.assign(this,R)}}pe.EncapsulatedContentInfo=EncapsulatedContentInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],EncapsulatedContentInfo.prototype,"eContentType",void 0);he.__decorate([(0,ge.AsnProp)({type:ye,context:0,optional:true})],EncapsulatedContentInfo.prototype,"eContent",void 0)},38800:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncryptedContentInfo=pe.EncryptedContent=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(67119);let me=class EncryptedContent{constructor(R={}){Object.assign(this,R)}};pe.EncryptedContent=me;he.__decorate([(0,ge.AsnProp)({type:ge.OctetString,context:0,implicit:true,optional:true})],me.prototype,"value",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString,converter:ge.AsnConstructedOctetStringConverter,context:0,implicit:true,optional:true,repeated:"sequence"})],me.prototype,"constructedValue",void 0);pe.EncryptedContent=me=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],me);class EncryptedContentInfo{constructor(R={}){this.contentType="";this.contentEncryptionAlgorithm=new ye.ContentEncryptionAlgorithmIdentifier;Object.assign(this,R)}}pe.EncryptedContentInfo=EncryptedContentInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],EncryptedContentInfo.prototype,"contentType",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.ContentEncryptionAlgorithmIdentifier})],EncryptedContentInfo.prototype,"contentEncryptionAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:me,optional:true})],EncryptedContentInfo.prototype,"encryptedContent",void 0)},33333:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.EnvelopedData=pe.UnprotectedAttributes=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(67119);const ve=Ae(67284);const be=Ae(64604);const Ee=Ae(42834);const Ce=Ae(38800);let we=he=class UnprotectedAttributes extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.UnprotectedAttributes=we;pe.UnprotectedAttributes=we=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:ve.Attribute})],we);class EnvelopedData{constructor(R={}){this.version=me.CMSVersion.v0;this.recipientInfos=new be.RecipientInfos;this.encryptedContentInfo=new Ce.EncryptedContentInfo;Object.assign(this,R)}}pe.EnvelopedData=EnvelopedData;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer})],EnvelopedData.prototype,"version",void 0);ge.__decorate([(0,ye.AsnProp)({type:Ee.OriginatorInfo,context:0,implicit:true,optional:true})],EnvelopedData.prototype,"originatorInfo",void 0);ge.__decorate([(0,ye.AsnProp)({type:be.RecipientInfos})],EnvelopedData.prototype,"recipientInfos",void 0);ge.__decorate([(0,ye.AsnProp)({type:Ce.EncryptedContentInfo})],EnvelopedData.prototype,"encryptedContentInfo",void 0);ge.__decorate([(0,ye.AsnProp)({type:we,context:1,implicit:true,optional:true})],EnvelopedData.prototype,"unprotectedAttrs",void 0)},19493:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(71061),pe);he.__exportStar(Ae(67284),pe);he.__exportStar(Ae(1093),pe);he.__exportStar(Ae(69207),pe);he.__exportStar(Ae(21377),pe);he.__exportStar(Ae(38800),pe);he.__exportStar(Ae(33333),pe);he.__exportStar(Ae(40995),pe);he.__exportStar(Ae(19614),pe);he.__exportStar(Ae(8479),pe);he.__exportStar(Ae(31666),pe);he.__exportStar(Ae(43027),pe);he.__exportStar(Ae(42834),pe);he.__exportStar(Ae(53059),pe);he.__exportStar(Ae(68084),pe);he.__exportStar(Ae(64604),pe);he.__exportStar(Ae(47678),pe);he.__exportStar(Ae(98895),pe);he.__exportStar(Ae(41200),pe);he.__exportStar(Ae(46959),pe);he.__exportStar(Ae(67119),pe)},40995:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IssuerAndSerialNumber=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class IssuerAndSerialNumber{constructor(R={}){this.issuer=new ye.Name;this.serialNumber=new ArrayBuffer(0);Object.assign(this,R)}}pe.IssuerAndSerialNumber=IssuerAndSerialNumber;he.__decorate([(0,ge.AsnProp)({type:ye.Name})],IssuerAndSerialNumber.prototype,"issuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],IssuerAndSerialNumber.prototype,"serialNumber",void 0)},19614:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.KEKRecipientInfo=pe.KEKIdentifier=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(35070);const me=Ae(67119);class KEKIdentifier{constructor(R={}){this.keyIdentifier=new ge.OctetString;Object.assign(this,R)}}pe.KEKIdentifier=KEKIdentifier;he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],KEKIdentifier.prototype,"keyIdentifier",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime,optional:true})],KEKIdentifier.prototype,"date",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.OtherKeyAttribute,optional:true})],KEKIdentifier.prototype,"other",void 0);class KEKRecipientInfo{constructor(R={}){this.version=me.CMSVersion.v4;this.kekid=new KEKIdentifier;this.keyEncryptionAlgorithm=new me.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new ge.OctetString;Object.assign(this,R)}}pe.KEKRecipientInfo=KEKRecipientInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],KEKRecipientInfo.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:KEKIdentifier})],KEKRecipientInfo.prototype,"kekid",void 0);he.__decorate([(0,ge.AsnProp)({type:me.KeyEncryptionAlgorithmIdentifier})],KEKRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],KEKRecipientInfo.prototype,"encryptedKey",void 0)},8479:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.KeyAgreeRecipientInfo=pe.OriginatorIdentifierOrKey=pe.OriginatorPublicKey=pe.RecipientEncryptedKeys=pe.RecipientEncryptedKey=pe.KeyAgreeRecipientIdentifier=pe.RecipientKeyIdentifier=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(67119);const ve=Ae(40995);const be=Ae(82288);const Ee=Ae(35070);class RecipientKeyIdentifier{constructor(R={}){this.subjectKeyIdentifier=new be.SubjectKeyIdentifier;Object.assign(this,R)}}pe.RecipientKeyIdentifier=RecipientKeyIdentifier;ge.__decorate([(0,ye.AsnProp)({type:be.SubjectKeyIdentifier})],RecipientKeyIdentifier.prototype,"subjectKeyIdentifier",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.GeneralizedTime,optional:true})],RecipientKeyIdentifier.prototype,"date",void 0);ge.__decorate([(0,ye.AsnProp)({type:Ee.OtherKeyAttribute,optional:true})],RecipientKeyIdentifier.prototype,"other",void 0);let Ce=class KeyAgreeRecipientIdentifier{constructor(R={}){Object.assign(this,R)}};pe.KeyAgreeRecipientIdentifier=Ce;ge.__decorate([(0,ye.AsnProp)({type:RecipientKeyIdentifier,context:0,implicit:true,optional:true})],Ce.prototype,"rKeyId",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.IssuerAndSerialNumber,optional:true})],Ce.prototype,"issuerAndSerialNumber",void 0);pe.KeyAgreeRecipientIdentifier=Ce=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],Ce);class RecipientEncryptedKey{constructor(R={}){this.rid=new Ce;this.encryptedKey=new ye.OctetString;Object.assign(this,R)}}pe.RecipientEncryptedKey=RecipientEncryptedKey;ge.__decorate([(0,ye.AsnProp)({type:Ce})],RecipientEncryptedKey.prototype,"rid",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.OctetString})],RecipientEncryptedKey.prototype,"encryptedKey",void 0);let we=he=class RecipientEncryptedKeys extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.RecipientEncryptedKeys=we;pe.RecipientEncryptedKeys=we=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:RecipientEncryptedKey})],we);class OriginatorPublicKey{constructor(R={}){this.algorithm=new be.AlgorithmIdentifier;this.publicKey=new ArrayBuffer(0);Object.assign(this,R)}}pe.OriginatorPublicKey=OriginatorPublicKey;ge.__decorate([(0,ye.AsnProp)({type:be.AlgorithmIdentifier})],OriginatorPublicKey.prototype,"algorithm",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.BitString})],OriginatorPublicKey.prototype,"publicKey",void 0);let _e=class OriginatorIdentifierOrKey{constructor(R={}){Object.assign(this,R)}};pe.OriginatorIdentifierOrKey=_e;ge.__decorate([(0,ye.AsnProp)({type:be.SubjectKeyIdentifier,context:0,implicit:true,optional:true})],_e.prototype,"subjectKeyIdentifier",void 0);ge.__decorate([(0,ye.AsnProp)({type:OriginatorPublicKey,context:1,implicit:true,optional:true})],_e.prototype,"originatorKey",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.IssuerAndSerialNumber,optional:true})],_e.prototype,"issuerAndSerialNumber",void 0);pe.OriginatorIdentifierOrKey=_e=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],_e);class KeyAgreeRecipientInfo{constructor(R={}){this.version=me.CMSVersion.v3;this.originator=new _e;this.keyEncryptionAlgorithm=new me.KeyEncryptionAlgorithmIdentifier;this.recipientEncryptedKeys=new we;Object.assign(this,R)}}pe.KeyAgreeRecipientInfo=KeyAgreeRecipientInfo;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer})],KeyAgreeRecipientInfo.prototype,"version",void 0);ge.__decorate([(0,ye.AsnProp)({type:_e,context:0})],KeyAgreeRecipientInfo.prototype,"originator",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.OctetString,context:1,optional:true})],KeyAgreeRecipientInfo.prototype,"ukm",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.KeyEncryptionAlgorithmIdentifier})],KeyAgreeRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);ge.__decorate([(0,ye.AsnProp)({type:we})],KeyAgreeRecipientInfo.prototype,"recipientEncryptedKeys",void 0)},31666:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.KeyTransRecipientInfo=pe.RecipientIdentifier=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(67119);const me=Ae(40995);const ve=Ae(82288);let be=class RecipientIdentifier{constructor(R={}){Object.assign(this,R)}};pe.RecipientIdentifier=be;he.__decorate([(0,ge.AsnProp)({type:ve.SubjectKeyIdentifier,context:0,implicit:true})],be.prototype,"subjectKeyIdentifier",void 0);he.__decorate([(0,ge.AsnProp)({type:me.IssuerAndSerialNumber})],be.prototype,"issuerAndSerialNumber",void 0);pe.RecipientIdentifier=be=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],be);class KeyTransRecipientInfo{constructor(R={}){this.version=ye.CMSVersion.v0;this.rid=new be;this.keyEncryptionAlgorithm=new ye.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new ge.OctetString;Object.assign(this,R)}}pe.KeyTransRecipientInfo=KeyTransRecipientInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],KeyTransRecipientInfo.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:be})],KeyTransRecipientInfo.prototype,"rid",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.KeyEncryptionAlgorithmIdentifier})],KeyTransRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],KeyTransRecipientInfo.prototype,"encryptedKey",void 0)},43027:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_authData=pe.id_encryptedData=pe.id_digestedData=pe.id_envelopedData=pe.id_signedData=pe.id_data=pe.id_ct_contentInfo=void 0;pe.id_ct_contentInfo="1.2.840.113549.1.9.16.1.6";pe.id_data="1.2.840.113549.1.7.1";pe.id_signedData="1.2.840.113549.1.7.2";pe.id_envelopedData="1.2.840.113549.1.7.3";pe.id_digestedData="1.2.840.113549.1.7.5";pe.id_encryptedData="1.2.840.113549.1.7.6";pe.id_authData="1.2.840.113549.1.9.16.1.2"},42834:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.OriginatorInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(1093);const me=Ae(47678);class OriginatorInfo{constructor(R={}){Object.assign(this,R)}}pe.OriginatorInfo=OriginatorInfo;he.__decorate([(0,ge.AsnProp)({type:ye.CertificateSet,context:0,implicit:true,optional:true})],OriginatorInfo.prototype,"certs",void 0);he.__decorate([(0,ge.AsnProp)({type:me.RevocationInfoChoices,context:1,implicit:true,optional:true})],OriginatorInfo.prototype,"crls",void 0)},35070:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.OtherKeyAttribute=void 0;const he=Ae(4351);const ge=Ae(53499);class OtherKeyAttribute{constructor(R={}){this.keyAttrId="";Object.assign(this,R)}}pe.OtherKeyAttribute=OtherKeyAttribute;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],OtherKeyAttribute.prototype,"keyAttrId",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,optional:true})],OtherKeyAttribute.prototype,"keyAttr",void 0)},53059:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PasswordRecipientInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(67119);class PasswordRecipientInfo{constructor(R={}){this.version=ye.CMSVersion.v0;this.keyEncryptionAlgorithm=new ye.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new ge.OctetString;Object.assign(this,R)}}pe.PasswordRecipientInfo=PasswordRecipientInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],PasswordRecipientInfo.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.KeyDerivationAlgorithmIdentifier,context:0,optional:true})],PasswordRecipientInfo.prototype,"keyDerivationAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.KeyEncryptionAlgorithmIdentifier})],PasswordRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],PasswordRecipientInfo.prototype,"encryptedKey",void 0)},68084:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RecipientInfo=pe.OtherRecipientInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(8479);const me=Ae(31666);const ve=Ae(19614);const be=Ae(53059);class OtherRecipientInfo{constructor(R={}){this.oriType="";this.oriValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.OtherRecipientInfo=OtherRecipientInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],OtherRecipientInfo.prototype,"oriType",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any})],OtherRecipientInfo.prototype,"oriValue",void 0);let Ee=class RecipientInfo{constructor(R={}){Object.assign(this,R)}};pe.RecipientInfo=Ee;he.__decorate([(0,ge.AsnProp)({type:me.KeyTransRecipientInfo,optional:true})],Ee.prototype,"ktri",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.KeyAgreeRecipientInfo,context:1,implicit:true,optional:true})],Ee.prototype,"kari",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.KEKRecipientInfo,context:2,implicit:true,optional:true})],Ee.prototype,"kekri",void 0);he.__decorate([(0,ge.AsnProp)({type:be.PasswordRecipientInfo,context:3,implicit:true,optional:true})],Ee.prototype,"pwri",void 0);he.__decorate([(0,ge.AsnProp)({type:OtherRecipientInfo,context:4,implicit:true,optional:true})],Ee.prototype,"ori",void 0);pe.RecipientInfo=Ee=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],Ee)},64604:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.RecipientInfos=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(68084);let ve=he=class RecipientInfos extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.RecipientInfos=ve;pe.RecipientInfos=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:me.RecipientInfo})],ve)},47678:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.RevocationInfoChoices=pe.RevocationInfoChoice=pe.OtherRevocationInfoFormat=pe.id_ri_scvp=pe.id_ri_ocsp_response=pe.id_ri=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(82288);pe.id_ri=`${me.id_pkix}.16`;pe.id_ri_ocsp_response=`${pe.id_ri}.2`;pe.id_ri_scvp=`${pe.id_ri}.4`;class OtherRevocationInfoFormat{constructor(R={}){this.otherRevInfoFormat="";this.otherRevInfo=new ArrayBuffer(0);Object.assign(this,R)}}pe.OtherRevocationInfoFormat=OtherRevocationInfoFormat;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],OtherRevocationInfoFormat.prototype,"otherRevInfoFormat",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Any})],OtherRevocationInfoFormat.prototype,"otherRevInfo",void 0);let ve=class RevocationInfoChoice{constructor(R={}){this.other=new OtherRevocationInfoFormat;Object.assign(this,R)}};pe.RevocationInfoChoice=ve;ge.__decorate([(0,ye.AsnProp)({type:OtherRevocationInfoFormat,context:1,implicit:true})],ve.prototype,"other",void 0);pe.RevocationInfoChoice=ve=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],ve);let be=he=class RevocationInfoChoices extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.RevocationInfoChoices=be;pe.RevocationInfoChoices=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:ve})],be)},98895:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SignedData=pe.DigestAlgorithmIdentifiers=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(1093);const ve=Ae(67119);const be=Ae(21377);const Ee=Ae(47678);const Ce=Ae(46959);let we=he=class DigestAlgorithmIdentifiers extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.DigestAlgorithmIdentifiers=we;pe.DigestAlgorithmIdentifiers=we=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:ve.DigestAlgorithmIdentifier})],we);class SignedData{constructor(R={}){this.version=ve.CMSVersion.v0;this.digestAlgorithms=new we;this.encapContentInfo=new be.EncapsulatedContentInfo;this.signerInfos=new Ce.SignerInfos;Object.assign(this,R)}}pe.SignedData=SignedData;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer})],SignedData.prototype,"version",void 0);ge.__decorate([(0,ye.AsnProp)({type:we})],SignedData.prototype,"digestAlgorithms",void 0);ge.__decorate([(0,ye.AsnProp)({type:be.EncapsulatedContentInfo})],SignedData.prototype,"encapContentInfo",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.CertificateSet,context:0,implicit:true,optional:true})],SignedData.prototype,"certificates",void 0);ge.__decorate([(0,ye.AsnProp)({type:Ee.RevocationInfoChoices,context:1,implicit:true,optional:true})],SignedData.prototype,"crls",void 0);ge.__decorate([(0,ye.AsnProp)({type:Ce.SignerInfos})],SignedData.prototype,"signerInfos",void 0)},41200:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SignerIdentifier=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(40995);const me=Ae(82288);let ve=class SignerIdentifier{constructor(R={}){Object.assign(this,R)}};pe.SignerIdentifier=ve;he.__decorate([(0,ge.AsnProp)({type:me.SubjectKeyIdentifier,context:0,implicit:true})],ve.prototype,"subjectKeyIdentifier",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.IssuerAndSerialNumber})],ve.prototype,"issuerAndSerialNumber",void 0);pe.SignerIdentifier=ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve)},46959:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SignerInfos=pe.SignerInfo=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(41200);const ve=Ae(67119);const be=Ae(67284);class SignerInfo{constructor(R={}){this.version=ve.CMSVersion.v0;this.sid=new me.SignerIdentifier;this.digestAlgorithm=new ve.DigestAlgorithmIdentifier;this.signatureAlgorithm=new ve.SignatureAlgorithmIdentifier;this.signature=new ye.OctetString;Object.assign(this,R)}}pe.SignerInfo=SignerInfo;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer})],SignerInfo.prototype,"version",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.SignerIdentifier})],SignerInfo.prototype,"sid",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.DigestAlgorithmIdentifier})],SignerInfo.prototype,"digestAlgorithm",void 0);ge.__decorate([(0,ye.AsnProp)({type:be.Attribute,repeated:"set",context:0,implicit:true,optional:true})],SignerInfo.prototype,"signedAttrs",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.SignatureAlgorithmIdentifier})],SignerInfo.prototype,"signatureAlgorithm",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.OctetString})],SignerInfo.prototype,"signature",void 0);ge.__decorate([(0,ye.AsnProp)({type:be.Attribute,repeated:"set",context:1,implicit:true,optional:true})],SignerInfo.prototype,"unsignedAttrs",void 0);let Ee=he=class SignerInfos extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.SignerInfos=Ee;pe.SignerInfos=Ee=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:SignerInfo})],Ee)},67119:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.KeyDerivationAlgorithmIdentifier=pe.MessageAuthenticationCodeAlgorithm=pe.ContentEncryptionAlgorithmIdentifier=pe.KeyEncryptionAlgorithmIdentifier=pe.SignatureAlgorithmIdentifier=pe.DigestAlgorithmIdentifier=pe.CMSVersion=void 0;const he=Ae(4351);const ge=Ae(82288);const ye=Ae(53499);var me;(function(R){R[R["v0"]=0]="v0";R[R["v1"]=1]="v1";R[R["v2"]=2]="v2";R[R["v3"]=3]="v3";R[R["v4"]=4]="v4";R[R["v5"]=5]="v5"})(me||(pe.CMSVersion=me={}));let ve=class DigestAlgorithmIdentifier extends ge.AlgorithmIdentifier{};pe.DigestAlgorithmIdentifier=ve;pe.DigestAlgorithmIdentifier=ve=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],ve);let be=class SignatureAlgorithmIdentifier extends ge.AlgorithmIdentifier{};pe.SignatureAlgorithmIdentifier=be;pe.SignatureAlgorithmIdentifier=be=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],be);let Ee=class KeyEncryptionAlgorithmIdentifier extends ge.AlgorithmIdentifier{};pe.KeyEncryptionAlgorithmIdentifier=Ee;pe.KeyEncryptionAlgorithmIdentifier=Ee=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],Ee);let Ce=class ContentEncryptionAlgorithmIdentifier extends ge.AlgorithmIdentifier{};pe.ContentEncryptionAlgorithmIdentifier=Ce;pe.ContentEncryptionAlgorithmIdentifier=Ce=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],Ce);let we=class MessageAuthenticationCodeAlgorithm extends ge.AlgorithmIdentifier{};pe.MessageAuthenticationCodeAlgorithm=we;pe.MessageAuthenticationCodeAlgorithm=we=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],we);let _e=class KeyDerivationAlgorithmIdentifier extends ge.AlgorithmIdentifier{};pe.KeyDerivationAlgorithmIdentifier=_e;pe.KeyDerivationAlgorithmIdentifier=_e=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],_e)},93674:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.Attributes=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(82288);let ve=he=class Attributes extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.Attributes=ve;pe.Attributes=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.Attribute})],ve)},75135:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CertificationRequest=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(61301);const me=Ae(82288);class CertificationRequest{constructor(R={}){this.certificationRequestInfo=new ye.CertificationRequestInfo;this.signatureAlgorithm=new me.AlgorithmIdentifier;this.signature=new ArrayBuffer(0);Object.assign(this,R)}}pe.CertificationRequest=CertificationRequest;he.__decorate([(0,ge.AsnProp)({type:ye.CertificationRequestInfo})],CertificationRequest.prototype,"certificationRequestInfo",void 0);he.__decorate([(0,ge.AsnProp)({type:me.AlgorithmIdentifier})],CertificationRequest.prototype,"signatureAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],CertificationRequest.prototype,"signature",void 0)},61301:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CertificationRequestInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(93674);class CertificationRequestInfo{constructor(R={}){this.version=0;this.subject=new ye.Name;this.subjectPKInfo=new ye.SubjectPublicKeyInfo;this.attributes=new me.Attributes;Object.assign(this,R)}}pe.CertificationRequestInfo=CertificationRequestInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],CertificationRequestInfo.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Name})],CertificationRequestInfo.prototype,"subject",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.SubjectPublicKeyInfo})],CertificationRequestInfo.prototype,"subjectPKInfo",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Attributes,implicit:true,context:0})],CertificationRequestInfo.prototype,"attributes",void 0)},86717:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(93674),pe);he.__exportStar(Ae(75135),pe);he.__exportStar(Ae(61301),pe)},14716:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ecdsaWithSHA512=pe.ecdsaWithSHA384=pe.ecdsaWithSHA256=pe.ecdsaWithSHA224=pe.ecdsaWithSHA1=void 0;const he=Ae(82288);const ge=Ae(3193);function create(R){return new he.AlgorithmIdentifier({algorithm:R})}pe.ecdsaWithSHA1=create(ge.id_ecdsaWithSHA1);pe.ecdsaWithSHA224=create(ge.id_ecdsaWithSHA224);pe.ecdsaWithSHA256=create(ge.id_ecdsaWithSHA256);pe.ecdsaWithSHA384=create(ge.id_ecdsaWithSHA384);pe.ecdsaWithSHA512=create(ge.id_ecdsaWithSHA512)},75823:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ECParameters=void 0;const he=Ae(4351);const ge=Ae(53499);let ye=class ECParameters{constructor(R={}){Object.assign(this,R)}};pe.ECParameters=ye;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],ye.prototype,"namedCurve",void 0);pe.ECParameters=ye=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ye)},28673:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ECPrivateKey=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(75823);class ECPrivateKey{constructor(R={}){this.version=1;this.privateKey=new ge.OctetString;Object.assign(this,R)}}pe.ECPrivateKey=ECPrivateKey;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],ECPrivateKey.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],ECPrivateKey.prototype,"privateKey",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.ECParameters,context:0,optional:true})],ECPrivateKey.prototype,"parameters",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString,context:1,optional:true})],ECPrivateKey.prototype,"publicKey",void 0)},82138:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ECDSASigValue=void 0;const he=Ae(4351);const ge=Ae(53499);class ECDSASigValue{constructor(R={}){this.r=new ArrayBuffer(0);this.s=new ArrayBuffer(0);Object.assign(this,R)}}pe.ECDSASigValue=ECDSASigValue;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],ECDSASigValue.prototype,"r",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],ECDSASigValue.prototype,"s",void 0)},8277:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(14716),pe);he.__exportStar(Ae(75823),pe);he.__exportStar(Ae(28673),pe);he.__exportStar(Ae(82138),pe);he.__exportStar(Ae(3193),pe)},3193:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_sect571r1=pe.id_sect571k1=pe.id_secp521r1=pe.id_sect409r1=pe.id_sect409k1=pe.id_secp384r1=pe.id_sect283r1=pe.id_sect283k1=pe.id_secp256r1=pe.id_sect233r1=pe.id_sect233k1=pe.id_secp224r1=pe.id_sect163r2=pe.id_sect163k1=pe.id_secp192r1=pe.id_ecdsaWithSHA512=pe.id_ecdsaWithSHA384=pe.id_ecdsaWithSHA256=pe.id_ecdsaWithSHA224=pe.id_ecdsaWithSHA1=pe.id_ecMQV=pe.id_ecDH=pe.id_ecPublicKey=void 0;pe.id_ecPublicKey="1.2.840.10045.2.1";pe.id_ecDH="1.3.132.1.12";pe.id_ecMQV="1.3.132.1.13";pe.id_ecdsaWithSHA1="1.2.840.10045.4.1";pe.id_ecdsaWithSHA224="1.2.840.10045.4.3.1";pe.id_ecdsaWithSHA256="1.2.840.10045.4.3.2";pe.id_ecdsaWithSHA384="1.2.840.10045.4.3.3";pe.id_ecdsaWithSHA512="1.2.840.10045.4.3.4";pe.id_secp192r1="1.2.840.10045.3.1.1";pe.id_sect163k1="1.3.132.0.1";pe.id_sect163r2="1.3.132.0.15";pe.id_secp224r1="1.3.132.0.33";pe.id_sect233k1="1.3.132.0.26";pe.id_sect233r1="1.3.132.0.27";pe.id_secp256r1="1.2.840.10045.3.1.7";pe.id_sect283k1="1.3.132.0.16";pe.id_sect283r1="1.3.132.0.17";pe.id_secp384r1="1.3.132.0.34";pe.id_sect409k1="1.3.132.0.36";pe.id_sect409r1="1.3.132.0.37";pe.id_secp521r1="1.3.132.0.35";pe.id_sect571k1="1.3.132.0.38";pe.id_sect571r1="1.3.132.0.39"},11757:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.PKCS12AttrSet=pe.PKCS12Attribute=void 0;const ge=Ae(4351);const ye=Ae(53499);class PKCS12Attribute{constructor(R={}){this.attrId="";this.attrValues=[];Object.assign(R)}}pe.PKCS12Attribute=PKCS12Attribute;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],PKCS12Attribute.prototype,"attrId",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Any,repeated:"set"})],PKCS12Attribute.prototype,"attrValues",void 0);let me=he=class PKCS12AttrSet extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.PKCS12AttrSet=me;pe.PKCS12AttrSet=me=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:PKCS12Attribute})],me)},46751:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.AuthenticatedSafe=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(19493);let ve=he=class AuthenticatedSafe extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.AuthenticatedSafe=ve;pe.AuthenticatedSafe=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.ContentInfo})],ve)},77536:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_sdsiCertificate=pe.id_x509Certificate=pe.id_certTypes=pe.CertBag=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(39410);class CertBag{constructor(R={}){this.certId="";this.certValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.CertBag=CertBag;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],CertBag.prototype,"certId",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:0})],CertBag.prototype,"certValue",void 0);pe.id_certTypes=`${ye.id_pkcs_9}.22`;pe.id_x509Certificate=`${pe.id_certTypes}.1`;pe.id_sdsiCertificate=`${pe.id_certTypes}.2`},92039:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_x509CRL=pe.id_crlTypes=pe.CRLBag=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(39410);class CRLBag{constructor(R={}){this.crlId="";this.crltValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.CRLBag=CRLBag;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],CRLBag.prototype,"crlId",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:0})],CRLBag.prototype,"crltValue",void 0);pe.id_crlTypes=`${ye.id_pkcs_9}.23`;pe.id_x509CRL=`${pe.id_crlTypes}.1`},27069:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(77536),pe);he.__exportStar(Ae(92039),pe);he.__exportStar(Ae(11684),pe);he.__exportStar(Ae(51627),pe);he.__exportStar(Ae(93057),pe);he.__exportStar(Ae(39410),pe)},11684:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.KeyBag=void 0;const he=Ae(4351);const ge=Ae(81714);const ye=Ae(53499);let me=class KeyBag extends ge.PrivateKeyInfo{};pe.KeyBag=me;pe.KeyBag=me=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],me)},51627:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PKCS8ShroudedKeyBag=void 0;const he=Ae(4351);const ge=Ae(81714);const ye=Ae(53499);let me=class PKCS8ShroudedKeyBag extends ge.EncryptedPrivateKeyInfo{};pe.PKCS8ShroudedKeyBag=me;pe.PKCS8ShroudedKeyBag=me=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],me)},93057:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SecretBag=void 0;const he=Ae(4351);const ge=Ae(53499);class SecretBag{constructor(R={}){this.secretTypeId="";this.secretValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.SecretBag=SecretBag;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],SecretBag.prototype,"secretTypeId",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:0})],SecretBag.prototype,"secretValue",void 0)},39410:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_pkcs_9=pe.id_SafeContents=pe.id_SecretBag=pe.id_CRLBag=pe.id_certBag=pe.id_pkcs8ShroudedKeyBag=pe.id_keyBag=void 0;const he=Ae(35825);pe.id_keyBag=`${he.id_bagtypes}.1`;pe.id_pkcs8ShroudedKeyBag=`${he.id_bagtypes}.2`;pe.id_certBag=`${he.id_bagtypes}.3`;pe.id_CRLBag=`${he.id_bagtypes}.4`;pe.id_SecretBag=`${he.id_bagtypes}.5`;pe.id_SafeContents=`${he.id_bagtypes}.6`;pe.id_pkcs_9="1.2.840.113549.1.9"},84078:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(11757),pe);he.__exportStar(Ae(46751),pe);he.__exportStar(Ae(27069),pe);he.__exportStar(Ae(71180),pe);he.__exportStar(Ae(35825),pe);he.__exportStar(Ae(42153),pe);he.__exportStar(Ae(55901),pe)},71180:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.MacData=void 0;const he=Ae(4351);const ge=Ae(5574);const ye=Ae(53499);class MacData{constructor(R={}){this.mac=new ge.DigestInfo;this.macSalt=new ye.OctetString;this.iterations=1;Object.assign(this,R)}}pe.MacData=MacData;he.__decorate([(0,ye.AsnProp)({type:ge.DigestInfo})],MacData.prototype,"mac",void 0);he.__decorate([(0,ye.AsnProp)({type:ye.OctetString})],MacData.prototype,"macSalt",void 0);he.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,defaultValue:1})],MacData.prototype,"iterations",void 0)},35825:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_bagtypes=pe.id_pbewithSHAAnd40BitRC2_CBC=pe.id_pbeWithSHAAnd128BitRC2_CBC=pe.id_pbeWithSHAAnd2_KeyTripleDES_CBC=pe.id_pbeWithSHAAnd3_KeyTripleDES_CBC=pe.id_pbeWithSHAAnd40BitRC4=pe.id_pbeWithSHAAnd128BitRC4=pe.id_pkcs_12PbeIds=pe.id_pkcs_12=pe.id_pkcs=pe.id_rsadsi=void 0;pe.id_rsadsi="1.2.840.113549";pe.id_pkcs=`${pe.id_rsadsi}.1`;pe.id_pkcs_12=`${pe.id_pkcs}.12`;pe.id_pkcs_12PbeIds=`${pe.id_pkcs_12}.1`;pe.id_pbeWithSHAAnd128BitRC4=`${pe.id_pkcs_12PbeIds}.1`;pe.id_pbeWithSHAAnd40BitRC4=`${pe.id_pkcs_12PbeIds}.2`;pe.id_pbeWithSHAAnd3_KeyTripleDES_CBC=`${pe.id_pkcs_12PbeIds}.3`;pe.id_pbeWithSHAAnd2_KeyTripleDES_CBC=`${pe.id_pkcs_12PbeIds}.4`;pe.id_pbeWithSHAAnd128BitRC2_CBC=`${pe.id_pkcs_12PbeIds}.5`;pe.id_pbewithSHAAnd40BitRC2_CBC=`${pe.id_pkcs_12PbeIds}.6`;pe.id_bagtypes=`${pe.id_pkcs_12}.10.1`},42153:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PFX=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(19493);const me=Ae(71180);class PFX{constructor(R={}){this.version=3;this.authSafe=new ye.ContentInfo;this.macData=new me.MacData;Object.assign(this,R)}}pe.PFX=PFX;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],PFX.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.ContentInfo})],PFX.prototype,"authSafe",void 0);he.__decorate([(0,ge.AsnProp)({type:me.MacData,optional:true})],PFX.prototype,"macData",void 0)},55901:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SafeContents=pe.SafeBag=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(11757);class SafeBag{constructor(R={}){this.bagId="";this.bagValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.SafeBag=SafeBag;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],SafeBag.prototype,"bagId",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Any,context:0})],SafeBag.prototype,"bagValue",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.PKCS12Attribute,repeated:"set",optional:true})],SafeBag.prototype,"bagAttributes",void 0);let ve=he=class SafeContents extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.SafeContents=ve;pe.SafeContents=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:SafeBag})],ve)},20768:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncryptedPrivateKeyInfo=pe.EncryptedData=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class EncryptedData extends ge.OctetString{}pe.EncryptedData=EncryptedData;class EncryptedPrivateKeyInfo{constructor(R={}){this.encryptionAlgorithm=new ye.AlgorithmIdentifier;this.encryptedData=new EncryptedData;Object.assign(this,R)}}pe.EncryptedPrivateKeyInfo=EncryptedPrivateKeyInfo;he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],EncryptedPrivateKeyInfo.prototype,"encryptionAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:EncryptedData})],EncryptedPrivateKeyInfo.prototype,"encryptedData",void 0)},81714:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(20768),pe);he.__exportStar(Ae(35442),pe)},35442:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.PrivateKeyInfo=pe.Attributes=pe.PrivateKey=pe.Version=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(82288);var ve;(function(R){R[R["v1"]=0]="v1"})(ve||(pe.Version=ve={}));class PrivateKey extends ye.OctetString{}pe.PrivateKey=PrivateKey;let be=he=class Attributes extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.Attributes=be;pe.Attributes=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.Attribute})],be);class PrivateKeyInfo{constructor(R={}){this.version=ve.v1;this.privateKeyAlgorithm=new me.AlgorithmIdentifier;this.privateKey=new PrivateKey;Object.assign(this,R)}}pe.PrivateKeyInfo=PrivateKeyInfo;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer})],PrivateKeyInfo.prototype,"version",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.AlgorithmIdentifier})],PrivateKeyInfo.prototype,"privateKeyAlgorithm",void 0);ge.__decorate([(0,ye.AsnProp)({type:PrivateKey})],PrivateKeyInfo.prototype,"privateKey",void 0);ge.__decorate([(0,ye.AsnProp)({type:be,implicit:true,context:0,optional:true})],PrivateKeyInfo.prototype,"attributes",void 0)},55938:(R,pe,Ae)=>{"use strict";var he,ge,ye;Object.defineProperty(pe,"__esModule",{value:true});pe.DateOfBirth=pe.UnstructuredAddress=pe.UnstructuredName=pe.EmailAddress=pe.EncryptedPrivateKeyInfo=pe.UserPKCS12=pe.Pkcs7PDU=pe.PKCS9String=pe.id_at_pseudonym=pe.crlTypes=pe.id_certTypes=pe.id_smime=pe.id_pkcs9_mr_signingTimeMatch=pe.id_pkcs9_mr_caseIgnoreMatch=pe.id_pkcs9_sx_signingTime=pe.id_pkcs9_sx_pkcs9String=pe.id_pkcs9_at_countryOfResidence=pe.id_pkcs9_at_countryOfCitizenship=pe.id_pkcs9_at_gender=pe.id_pkcs9_at_placeOfBirth=pe.id_pkcs9_at_dateOfBirth=pe.id_ietf_at=pe.id_pkcs9_at_pkcs7PDU=pe.id_pkcs9_at_sequenceNumber=pe.id_pkcs9_at_randomNonce=pe.id_pkcs9_at_encryptedPrivateKeyInfo=pe.id_pkcs9_at_pkcs15Token=pe.id_pkcs9_at_userPKCS12=pe.id_pkcs9_at_localKeyId=pe.id_pkcs9_at_friendlyName=pe.id_pkcs9_at_smimeCapabilities=pe.id_pkcs9_at_extensionRequest=pe.id_pkcs9_at_signingDescription=pe.id_pkcs9_at_extendedCertificateAttributes=pe.id_pkcs9_at_unstructuredAddress=pe.id_pkcs9_at_challengePassword=pe.id_pkcs9_at_counterSignature=pe.id_pkcs9_at_signingTime=pe.id_pkcs9_at_messageDigest=pe.id_pkcs9_at_contentType=pe.id_pkcs9_at_unstructuredName=pe.id_pkcs9_at_emailAddress=pe.id_pkcs9_oc_naturalPerson=pe.id_pkcs9_oc_pkcsEntity=pe.id_pkcs9_mr=pe.id_pkcs9_sx=pe.id_pkcs9_at=pe.id_pkcs9_oc=pe.id_pkcs9_mo=pe.id_pkcs9=void 0;pe.SMIMECapabilities=pe.SMIMECapability=pe.SigningDescription=pe.LocalKeyId=pe.FriendlyName=pe.ExtendedCertificateAttributes=pe.ExtensionRequest=pe.ChallengePassword=pe.CounterSignature=pe.SequenceNumber=pe.RandomNonce=pe.SigningTime=pe.MessageDigest=pe.ContentType=pe.Pseudonym=pe.CountryOfResidence=pe.CountryOfCitizenship=pe.Gender=pe.PlaceOfBirth=void 0;const me=Ae(4351);const ve=Ae(53499);const be=Ae(19493);const Ee=Ae(84078);const Ce=Ae(81714);const we=Ae(82288);const _e=Ae(64263);pe.id_pkcs9="1.2.840.113549.1.9";pe.id_pkcs9_mo=`${pe.id_pkcs9}.0`;pe.id_pkcs9_oc=`${pe.id_pkcs9}.24`;pe.id_pkcs9_at=`${pe.id_pkcs9}.25`;pe.id_pkcs9_sx=`${pe.id_pkcs9}.26`;pe.id_pkcs9_mr=`${pe.id_pkcs9}.27`;pe.id_pkcs9_oc_pkcsEntity=`${pe.id_pkcs9_oc}.1`;pe.id_pkcs9_oc_naturalPerson=`${pe.id_pkcs9_oc}.2`;pe.id_pkcs9_at_emailAddress=`${pe.id_pkcs9}.1`;pe.id_pkcs9_at_unstructuredName=`${pe.id_pkcs9}.2`;pe.id_pkcs9_at_contentType=`${pe.id_pkcs9}.3`;pe.id_pkcs9_at_messageDigest=`${pe.id_pkcs9}.4`;pe.id_pkcs9_at_signingTime=`${pe.id_pkcs9}.5`;pe.id_pkcs9_at_counterSignature=`${pe.id_pkcs9}.6`;pe.id_pkcs9_at_challengePassword=`${pe.id_pkcs9}.7`;pe.id_pkcs9_at_unstructuredAddress=`${pe.id_pkcs9}.8`;pe.id_pkcs9_at_extendedCertificateAttributes=`${pe.id_pkcs9}.9`;pe.id_pkcs9_at_signingDescription=`${pe.id_pkcs9}.13`;pe.id_pkcs9_at_extensionRequest=`${pe.id_pkcs9}.14`;pe.id_pkcs9_at_smimeCapabilities=`${pe.id_pkcs9}.15`;pe.id_pkcs9_at_friendlyName=`${pe.id_pkcs9}.20`;pe.id_pkcs9_at_localKeyId=`${pe.id_pkcs9}.21`;pe.id_pkcs9_at_userPKCS12=`2.16.840.1.113730.3.1.216`;pe.id_pkcs9_at_pkcs15Token=`${pe.id_pkcs9_at}.1`;pe.id_pkcs9_at_encryptedPrivateKeyInfo=`${pe.id_pkcs9_at}.2`;pe.id_pkcs9_at_randomNonce=`${pe.id_pkcs9_at}.3`;pe.id_pkcs9_at_sequenceNumber=`${pe.id_pkcs9_at}.4`;pe.id_pkcs9_at_pkcs7PDU=`${pe.id_pkcs9_at}.5`;pe.id_ietf_at=`1.3.6.1.5.5.7.9`;pe.id_pkcs9_at_dateOfBirth=`${pe.id_ietf_at}.1`;pe.id_pkcs9_at_placeOfBirth=`${pe.id_ietf_at}.2`;pe.id_pkcs9_at_gender=`${pe.id_ietf_at}.3`;pe.id_pkcs9_at_countryOfCitizenship=`${pe.id_ietf_at}.4`;pe.id_pkcs9_at_countryOfResidence=`${pe.id_ietf_at}.5`;pe.id_pkcs9_sx_pkcs9String=`${pe.id_pkcs9_sx}.1`;pe.id_pkcs9_sx_signingTime=`${pe.id_pkcs9_sx}.2`;pe.id_pkcs9_mr_caseIgnoreMatch=`${pe.id_pkcs9_mr}.1`;pe.id_pkcs9_mr_signingTimeMatch=`${pe.id_pkcs9_mr}.2`;pe.id_smime=`${pe.id_pkcs9}.16`;pe.id_certTypes=`${pe.id_pkcs9}.22`;pe.crlTypes=`${pe.id_pkcs9}.23`;pe.id_at_pseudonym=`${_e.id_at}.65`;let Ie=class PKCS9String extends we.DirectoryString{constructor(R={}){super(R)}toString(){const R={};R.toString();return this.ia5String||super.toString()}};pe.PKCS9String=Ie;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.IA5String})],Ie.prototype,"ia5String",void 0);pe.PKCS9String=Ie=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Ie);let Se=class Pkcs7PDU extends be.ContentInfo{};pe.Pkcs7PDU=Se;pe.Pkcs7PDU=Se=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Se);let Be=class UserPKCS12 extends Ee.PFX{};pe.UserPKCS12=Be;pe.UserPKCS12=Be=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Be);let ke=class EncryptedPrivateKeyInfo extends Ce.EncryptedPrivateKeyInfo{};pe.EncryptedPrivateKeyInfo=ke;pe.EncryptedPrivateKeyInfo=ke=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],ke);let Oe=class EmailAddress{constructor(R=""){this.value=R}toString(){return this.value}};pe.EmailAddress=Oe;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.IA5String})],Oe.prototype,"value",void 0);pe.EmailAddress=Oe=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Oe);let Re=class UnstructuredName extends Ie{};pe.UnstructuredName=Re;pe.UnstructuredName=Re=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Re);let Qe=class UnstructuredAddress extends we.DirectoryString{};pe.UnstructuredAddress=Qe;pe.UnstructuredAddress=Qe=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Qe);let xe=class DateOfBirth{constructor(R=new Date){this.value=R}};pe.DateOfBirth=xe;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.GeneralizedTime})],xe.prototype,"value",void 0);pe.DateOfBirth=xe=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],xe);let Pe=class PlaceOfBirth extends we.DirectoryString{};pe.PlaceOfBirth=Pe;pe.PlaceOfBirth=Pe=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Pe);let Te=class Gender{constructor(R="M"){this.value=R}toString(){return this.value}};pe.Gender=Te;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.PrintableString})],Te.prototype,"value",void 0);pe.Gender=Te=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Te);let De=class CountryOfCitizenship{constructor(R=""){this.value=R}toString(){return this.value}};pe.CountryOfCitizenship=De;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.PrintableString})],De.prototype,"value",void 0);pe.CountryOfCitizenship=De=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],De);let Ne=class CountryOfResidence extends De{};pe.CountryOfResidence=Ne;pe.CountryOfResidence=Ne=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Ne);let Me=class Pseudonym extends we.DirectoryString{};pe.Pseudonym=Me;pe.Pseudonym=Me=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Me);let je=class ContentType{constructor(R=""){this.value=R}toString(){return this.value}};pe.ContentType=je;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.ObjectIdentifier})],je.prototype,"value",void 0);pe.ContentType=je=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],je);class MessageDigest extends ve.OctetString{}pe.MessageDigest=MessageDigest;let Fe=class SigningTime extends we.Time{};pe.SigningTime=Fe;pe.SigningTime=Fe=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Fe);class RandomNonce extends ve.OctetString{}pe.RandomNonce=RandomNonce;let Le=class SequenceNumber{constructor(R=0){this.value=R}toString(){return this.value.toString()}};pe.SequenceNumber=Le;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.Integer})],Le.prototype,"value",void 0);pe.SequenceNumber=Le=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Le);let Ue=class CounterSignature extends be.SignerInfo{};pe.CounterSignature=Ue;pe.CounterSignature=Ue=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Ue);let He=class ChallengePassword extends we.DirectoryString{};pe.ChallengePassword=He;pe.ChallengePassword=He=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],He);let Je=he=class ExtensionRequest extends we.Extensions{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.ExtensionRequest=Je;pe.ExtensionRequest=Je=he=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Je);let We=ge=class ExtendedCertificateAttributes extends ve.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,ge.prototype)}};pe.ExtendedCertificateAttributes=We;pe.ExtendedCertificateAttributes=We=ge=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Set,itemType:be.Attribute})],We);let Ve=class FriendlyName{constructor(R=""){this.value=R}toString(){return this.value}};pe.FriendlyName=Ve;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.BmpString})],Ve.prototype,"value",void 0);pe.FriendlyName=Ve=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Ve);class LocalKeyId extends ve.OctetString{}pe.LocalKeyId=LocalKeyId;class SigningDescription extends we.DirectoryString{}pe.SigningDescription=SigningDescription;let Ke=class SMIMECapability extends we.AlgorithmIdentifier{};pe.SMIMECapability=Ke;pe.SMIMECapability=Ke=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Ke);let Ge=ye=class SMIMECapabilities extends ve.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,ye.prototype)}};pe.SMIMECapabilities=Ge;pe.SMIMECapabilities=Ge=ye=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence,itemType:Ke})],Ge)},48243:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.sha512_256WithRSAEncryption=pe.sha512_224WithRSAEncryption=pe.sha512WithRSAEncryption=pe.sha384WithRSAEncryption=pe.sha256WithRSAEncryption=pe.sha224WithRSAEncryption=pe.sha1WithRSAEncryption=pe.md5WithRSAEncryption=pe.md2WithRSAEncryption=pe.rsaEncryption=pe.pSpecifiedEmpty=pe.mgf1SHA1=pe.sha512_256=pe.sha512_224=pe.sha512=pe.sha384=pe.sha256=pe.sha224=pe.sha1=pe.md4=pe.md2=void 0;const he=Ae(53499);const ge=Ae(82288);const ye=Ae(90147);function create(R){return new ge.AlgorithmIdentifier({algorithm:R,parameters:null})}pe.md2=create(ye.id_md2);pe.md4=create(ye.id_md5);pe.sha1=create(ye.id_sha1);pe.sha224=create(ye.id_sha224);pe.sha256=create(ye.id_sha256);pe.sha384=create(ye.id_sha384);pe.sha512=create(ye.id_sha512);pe.sha512_224=create(ye.id_sha512_224);pe.sha512_256=create(ye.id_sha512_256);pe.mgf1SHA1=new ge.AlgorithmIdentifier({algorithm:ye.id_mgf1,parameters:he.AsnConvert.serialize(pe.sha1)});pe.pSpecifiedEmpty=new ge.AlgorithmIdentifier({algorithm:ye.id_pSpecified,parameters:he.AsnConvert.serialize(he.AsnOctetStringConverter.toASN(new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]).buffer))});pe.rsaEncryption=create(ye.id_rsaEncryption);pe.md2WithRSAEncryption=create(ye.id_md2WithRSAEncryption);pe.md5WithRSAEncryption=create(ye.id_md5WithRSAEncryption);pe.sha1WithRSAEncryption=create(ye.id_sha1WithRSAEncryption);pe.sha224WithRSAEncryption=create(ye.id_sha512_224WithRSAEncryption);pe.sha256WithRSAEncryption=create(ye.id_sha512_256WithRSAEncryption);pe.sha384WithRSAEncryption=create(ye.id_sha384WithRSAEncryption);pe.sha512WithRSAEncryption=create(ye.id_sha512WithRSAEncryption);pe.sha512_224WithRSAEncryption=create(ye.id_sha512_224WithRSAEncryption);pe.sha512_256WithRSAEncryption=create(ye.id_sha512_256WithRSAEncryption)},5574:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(60663),pe);he.__exportStar(Ae(48243),pe);he.__exportStar(Ae(90147),pe);he.__exportStar(Ae(41069),pe);he.__exportStar(Ae(89654),pe);he.__exportStar(Ae(39978),pe)},90147:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_mgf1=pe.id_md5=pe.id_md2=pe.id_sha512_256=pe.id_sha512_224=pe.id_sha512=pe.id_sha384=pe.id_sha256=pe.id_sha224=pe.id_sha1=pe.id_sha512_256WithRSAEncryption=pe.id_sha512_224WithRSAEncryption=pe.id_sha512WithRSAEncryption=pe.id_sha384WithRSAEncryption=pe.id_sha256WithRSAEncryption=pe.id_ssha224WithRSAEncryption=pe.id_sha224WithRSAEncryption=pe.id_sha1WithRSAEncryption=pe.id_md5WithRSAEncryption=pe.id_md2WithRSAEncryption=pe.id_RSASSA_PSS=pe.id_pSpecified=pe.id_RSAES_OAEP=pe.id_rsaEncryption=pe.id_pkcs_1=void 0;pe.id_pkcs_1="1.2.840.113549.1.1";pe.id_rsaEncryption=`${pe.id_pkcs_1}.1`;pe.id_RSAES_OAEP=`${pe.id_pkcs_1}.7`;pe.id_pSpecified=`${pe.id_pkcs_1}.9`;pe.id_RSASSA_PSS=`${pe.id_pkcs_1}.10`;pe.id_md2WithRSAEncryption=`${pe.id_pkcs_1}.2`;pe.id_md5WithRSAEncryption=`${pe.id_pkcs_1}.4`;pe.id_sha1WithRSAEncryption=`${pe.id_pkcs_1}.5`;pe.id_sha224WithRSAEncryption=`${pe.id_pkcs_1}.14`;pe.id_ssha224WithRSAEncryption=pe.id_sha224WithRSAEncryption;pe.id_sha256WithRSAEncryption=`${pe.id_pkcs_1}.11`;pe.id_sha384WithRSAEncryption=`${pe.id_pkcs_1}.12`;pe.id_sha512WithRSAEncryption=`${pe.id_pkcs_1}.13`;pe.id_sha512_224WithRSAEncryption=`${pe.id_pkcs_1}.15`;pe.id_sha512_256WithRSAEncryption=`${pe.id_pkcs_1}.16`;pe.id_sha1="1.3.14.3.2.26";pe.id_sha224="2.16.840.1.101.3.4.2.4";pe.id_sha256="2.16.840.1.101.3.4.2.1";pe.id_sha384="2.16.840.1.101.3.4.2.2";pe.id_sha512="2.16.840.1.101.3.4.2.3";pe.id_sha512_224="2.16.840.1.101.3.4.2.5";pe.id_sha512_256="2.16.840.1.101.3.4.2.6";pe.id_md2="1.2.840.113549.2.2";pe.id_md5="1.2.840.113549.2.5";pe.id_mgf1=`${pe.id_pkcs_1}.8`},41069:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.OtherPrimeInfos=pe.OtherPrimeInfo=void 0;const ge=Ae(4351);const ye=Ae(53499);class OtherPrimeInfo{constructor(R={}){this.prime=new ArrayBuffer(0);this.exponent=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,R)}}pe.OtherPrimeInfo=OtherPrimeInfo;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,converter:ye.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"prime",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,converter:ye.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"exponent",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,converter:ye.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"coefficient",void 0);let me=he=class OtherPrimeInfos extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.OtherPrimeInfos=me;pe.OtherPrimeInfos=me=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:OtherPrimeInfo})],me)},60663:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(36657),pe);he.__exportStar(Ae(61770),pe);he.__exportStar(Ae(40462),pe)},36657:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RSAES_OAEP=pe.RsaEsOaepParams=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(90147);const ve=Ae(48243);class RsaEsOaepParams{constructor(R={}){this.hashAlgorithm=new ye.AlgorithmIdentifier(ve.sha1);this.maskGenAlgorithm=new ye.AlgorithmIdentifier({algorithm:me.id_mgf1,parameters:ge.AsnConvert.serialize(ve.sha1)});this.pSourceAlgorithm=new ye.AlgorithmIdentifier(ve.pSpecifiedEmpty);Object.assign(this,R)}}pe.RsaEsOaepParams=RsaEsOaepParams;he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier,context:0,defaultValue:ve.sha1})],RsaEsOaepParams.prototype,"hashAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier,context:1,defaultValue:ve.mgf1SHA1})],RsaEsOaepParams.prototype,"maskGenAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier,context:2,defaultValue:ve.pSpecifiedEmpty})],RsaEsOaepParams.prototype,"pSourceAlgorithm",void 0);pe.RSAES_OAEP=new ye.AlgorithmIdentifier({algorithm:me.id_RSAES_OAEP,parameters:ge.AsnConvert.serialize(new RsaEsOaepParams)})},40462:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.DigestInfo=void 0;const he=Ae(4351);const ge=Ae(82288);const ye=Ae(53499);class DigestInfo{constructor(R={}){this.digestAlgorithm=new ge.AlgorithmIdentifier;this.digest=new ye.OctetString;Object.assign(this,R)}}pe.DigestInfo=DigestInfo;he.__decorate([(0,ye.AsnProp)({type:ge.AlgorithmIdentifier})],DigestInfo.prototype,"digestAlgorithm",void 0);he.__decorate([(0,ye.AsnProp)({type:ye.OctetString})],DigestInfo.prototype,"digest",void 0)},61770:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RSASSA_PSS=pe.RsaSaPssParams=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(90147);const ve=Ae(48243);class RsaSaPssParams{constructor(R={}){this.hashAlgorithm=new ye.AlgorithmIdentifier(ve.sha1);this.maskGenAlgorithm=new ye.AlgorithmIdentifier({algorithm:me.id_mgf1,parameters:ge.AsnConvert.serialize(ve.sha1)});this.saltLength=20;this.trailerField=1;Object.assign(this,R)}}pe.RsaSaPssParams=RsaSaPssParams;he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier,context:0,defaultValue:ve.sha1})],RsaSaPssParams.prototype,"hashAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier,context:1,defaultValue:ve.mgf1SHA1})],RsaSaPssParams.prototype,"maskGenAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:2,defaultValue:20})],RsaSaPssParams.prototype,"saltLength",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:3,defaultValue:1})],RsaSaPssParams.prototype,"trailerField",void 0);pe.RSASSA_PSS=new ye.AlgorithmIdentifier({algorithm:me.id_RSASSA_PSS,parameters:ge.AsnConvert.serialize(new RsaSaPssParams)})},89654:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RSAPrivateKey=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(41069);class RSAPrivateKey{constructor(R={}){this.version=0;this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);this.privateExponent=new ArrayBuffer(0);this.prime1=new ArrayBuffer(0);this.prime2=new ArrayBuffer(0);this.exponent1=new ArrayBuffer(0);this.exponent2=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,R)}}pe.RSAPrivateKey=RSAPrivateKey;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],RSAPrivateKey.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"modulus",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"publicExponent",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"privateExponent",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"prime1",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"prime2",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"exponent1",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"exponent2",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"coefficient",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.OtherPrimeInfos,optional:true})],RSAPrivateKey.prototype,"otherPrimeInfos",void 0)},39978:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RSAPublicKey=void 0;const he=Ae(4351);const ge=Ae(53499);class RSAPublicKey{constructor(R={}){this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);Object.assign(this,R)}}pe.RSAPublicKey=RSAPublicKey;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPublicKey.prototype,"modulus",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPublicKey.prototype,"publicExponent",void 0)},10913:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnConvert=void 0;const he=Ae(3702);const ge=Ae(22420);const ye=Ae(89660);const me=Ae(37770);class AsnConvert{static serialize(R){return me.AsnSerializer.serialize(R)}static parse(R,pe){return ye.AsnParser.parse(R,pe)}static toString(R){const pe=ge.BufferSourceConverter.isBufferSource(R)?ge.BufferSourceConverter.toArrayBuffer(R):AsnConvert.serialize(R);const Ae=he.fromBER(pe);if(Ae.offset===-1){throw new Error(`Cannot decode ASN.1 data. ${Ae.result.error}`)}return Ae.result.toString()}}pe.AsnConvert=AsnConvert},54091:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.defaultConverter=pe.AsnNullConverter=pe.AsnGeneralizedTimeConverter=pe.AsnUTCTimeConverter=pe.AsnCharacterStringConverter=pe.AsnGeneralStringConverter=pe.AsnVisibleStringConverter=pe.AsnGraphicStringConverter=pe.AsnIA5StringConverter=pe.AsnVideotexStringConverter=pe.AsnTeletexStringConverter=pe.AsnPrintableStringConverter=pe.AsnNumericStringConverter=pe.AsnUniversalStringConverter=pe.AsnBmpStringConverter=pe.AsnUtf8StringConverter=pe.AsnConstructedOctetStringConverter=pe.AsnOctetStringConverter=pe.AsnBooleanConverter=pe.AsnObjectIdentifierConverter=pe.AsnBitStringConverter=pe.AsnIntegerBigIntConverter=pe.AsnIntegerArrayBufferConverter=pe.AsnEnumeratedConverter=pe.AsnIntegerConverter=pe.AsnAnyConverter=void 0;const he=Ae(3702);const ge=Ae(40378);const ye=Ae(80756);pe.AsnAnyConverter={fromASN:R=>R instanceof he.Null?null:R.valueBeforeDecodeView,toASN:R=>{if(R===null){return new he.Null}const pe=he.fromBER(R);if(pe.result.error){throw new Error(pe.result.error)}return pe.result}};pe.AsnIntegerConverter={fromASN:R=>R.valueBlock.valueHexView.byteLength>=4?R.valueBlock.toString():R.valueBlock.valueDec,toASN:R=>new he.Integer({value:+R})};pe.AsnEnumeratedConverter={fromASN:R=>R.valueBlock.valueDec,toASN:R=>new he.Enumerated({value:R})};pe.AsnIntegerArrayBufferConverter={fromASN:R=>R.valueBlock.valueHexView,toASN:R=>new he.Integer({valueHex:R})};pe.AsnIntegerBigIntConverter={fromASN:R=>R.toBigInt(),toASN:R=>he.Integer.fromBigInt(R)};pe.AsnBitStringConverter={fromASN:R=>R.valueBlock.valueHexView,toASN:R=>new he.BitString({valueHex:R})};pe.AsnObjectIdentifierConverter={fromASN:R=>R.valueBlock.toString(),toASN:R=>new he.ObjectIdentifier({value:R})};pe.AsnBooleanConverter={fromASN:R=>R.valueBlock.value,toASN:R=>new he.Boolean({value:R})};pe.AsnOctetStringConverter={fromASN:R=>R.valueBlock.valueHexView,toASN:R=>new he.OctetString({valueHex:R})};pe.AsnConstructedOctetStringConverter={fromASN:R=>new ye.OctetString(R.getValue()),toASN:R=>R.toASN()};function createStringConverter(R){return{fromASN:R=>R.valueBlock.value,toASN:pe=>new R({value:pe})}}pe.AsnUtf8StringConverter=createStringConverter(he.Utf8String);pe.AsnBmpStringConverter=createStringConverter(he.BmpString);pe.AsnUniversalStringConverter=createStringConverter(he.UniversalString);pe.AsnNumericStringConverter=createStringConverter(he.NumericString);pe.AsnPrintableStringConverter=createStringConverter(he.PrintableString);pe.AsnTeletexStringConverter=createStringConverter(he.TeletexString);pe.AsnVideotexStringConverter=createStringConverter(he.VideotexString);pe.AsnIA5StringConverter=createStringConverter(he.IA5String);pe.AsnGraphicStringConverter=createStringConverter(he.GraphicString);pe.AsnVisibleStringConverter=createStringConverter(he.VisibleString);pe.AsnGeneralStringConverter=createStringConverter(he.GeneralString);pe.AsnCharacterStringConverter=createStringConverter(he.CharacterString);pe.AsnUTCTimeConverter={fromASN:R=>R.toDate(),toASN:R=>new he.UTCTime({valueDate:R})};pe.AsnGeneralizedTimeConverter={fromASN:R=>R.toDate(),toASN:R=>new he.GeneralizedTime({valueDate:R})};pe.AsnNullConverter={fromASN:()=>null,toASN:()=>new he.Null};function defaultConverter(R){switch(R){case ge.AsnPropTypes.Any:return pe.AsnAnyConverter;case ge.AsnPropTypes.BitString:return pe.AsnBitStringConverter;case ge.AsnPropTypes.BmpString:return pe.AsnBmpStringConverter;case ge.AsnPropTypes.Boolean:return pe.AsnBooleanConverter;case ge.AsnPropTypes.CharacterString:return pe.AsnCharacterStringConverter;case ge.AsnPropTypes.Enumerated:return pe.AsnEnumeratedConverter;case ge.AsnPropTypes.GeneralString:return pe.AsnGeneralStringConverter;case ge.AsnPropTypes.GeneralizedTime:return pe.AsnGeneralizedTimeConverter;case ge.AsnPropTypes.GraphicString:return pe.AsnGraphicStringConverter;case ge.AsnPropTypes.IA5String:return pe.AsnIA5StringConverter;case ge.AsnPropTypes.Integer:return pe.AsnIntegerConverter;case ge.AsnPropTypes.Null:return pe.AsnNullConverter;case ge.AsnPropTypes.NumericString:return pe.AsnNumericStringConverter;case ge.AsnPropTypes.ObjectIdentifier:return pe.AsnObjectIdentifierConverter;case ge.AsnPropTypes.OctetString:return pe.AsnOctetStringConverter;case ge.AsnPropTypes.PrintableString:return pe.AsnPrintableStringConverter;case ge.AsnPropTypes.TeletexString:return pe.AsnTeletexStringConverter;case ge.AsnPropTypes.UTCTime:return pe.AsnUTCTimeConverter;case ge.AsnPropTypes.UniversalString:return pe.AsnUniversalStringConverter;case ge.AsnPropTypes.Utf8String:return pe.AsnUtf8StringConverter;case ge.AsnPropTypes.VideotexString:return pe.AsnVideotexStringConverter;case ge.AsnPropTypes.VisibleString:return pe.AsnVisibleStringConverter;default:return null}}pe.defaultConverter=defaultConverter},10157:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnProp=pe.AsnSequenceType=pe.AsnSetType=pe.AsnChoiceType=pe.AsnType=void 0;const he=Ae(54091);const ge=Ae(40378);const ye=Ae(54652);const AsnType=R=>pe=>{let Ae;if(!ye.schemaStorage.has(pe)){Ae=ye.schemaStorage.createDefault(pe);ye.schemaStorage.set(pe,Ae)}else{Ae=ye.schemaStorage.get(pe)}Object.assign(Ae,R)};pe.AsnType=AsnType;const AsnChoiceType=()=>(0,pe.AsnType)({type:ge.AsnTypeTypes.Choice});pe.AsnChoiceType=AsnChoiceType;const AsnSetType=R=>(0,pe.AsnType)({type:ge.AsnTypeTypes.Set,...R});pe.AsnSetType=AsnSetType;const AsnSequenceType=R=>(0,pe.AsnType)({type:ge.AsnTypeTypes.Sequence,...R});pe.AsnSequenceType=AsnSequenceType;const AsnProp=R=>(pe,Ae)=>{let ge;if(!ye.schemaStorage.has(pe.constructor)){ge=ye.schemaStorage.createDefault(pe.constructor);ye.schemaStorage.set(pe.constructor,ge)}else{ge=ye.schemaStorage.get(pe.constructor)}const me=Object.assign({},R);if(typeof me.type==="number"&&!me.converter){const ge=he.defaultConverter(R.type);if(!ge){throw new Error(`Cannot get default converter for property '${Ae}' of ${pe.constructor.name}`)}me.converter=ge}ge.items[Ae]=me};pe.AsnProp=AsnProp},40378:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnPropTypes=pe.AsnTypeTypes=void 0;var Ae;(function(R){R[R["Sequence"]=0]="Sequence";R[R["Set"]=1]="Set";R[R["Choice"]=2]="Choice"})(Ae||(pe.AsnTypeTypes=Ae={}));var he;(function(R){R[R["Any"]=1]="Any";R[R["Boolean"]=2]="Boolean";R[R["OctetString"]=3]="OctetString";R[R["BitString"]=4]="BitString";R[R["Integer"]=5]="Integer";R[R["Enumerated"]=6]="Enumerated";R[R["ObjectIdentifier"]=7]="ObjectIdentifier";R[R["Utf8String"]=8]="Utf8String";R[R["BmpString"]=9]="BmpString";R[R["UniversalString"]=10]="UniversalString";R[R["NumericString"]=11]="NumericString";R[R["PrintableString"]=12]="PrintableString";R[R["TeletexString"]=13]="TeletexString";R[R["VideotexString"]=14]="VideotexString";R[R["IA5String"]=15]="IA5String";R[R["GraphicString"]=16]="GraphicString";R[R["VisibleString"]=17]="VisibleString";R[R["GeneralString"]=18]="GeneralString";R[R["CharacterString"]=19]="CharacterString";R[R["UTCTime"]=20]="UTCTime";R[R["GeneralizedTime"]=21]="GeneralizedTime";R[R["DATE"]=22]="DATE";R[R["TimeOfDay"]=23]="TimeOfDay";R[R["DateTime"]=24]="DateTime";R[R["Duration"]=25]="Duration";R[R["TIME"]=26]="TIME";R[R["Null"]=27]="Null"})(he||(pe.AsnPropTypes=he={}))},56194:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(27118),pe)},27118:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnSchemaValidationError=void 0;class AsnSchemaValidationError extends Error{constructor(){super(...arguments);this.schemas=[]}}pe.AsnSchemaValidationError=AsnSchemaValidationError},74750:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isArrayEqual=pe.isTypeOfArray=pe.isConvertible=void 0;function isConvertible(R){if(typeof R==="function"&&R.prototype){if(R.prototype.toASN&&R.prototype.fromASN){return true}else{return isConvertible(R.prototype)}}else{return!!(R&&typeof R==="object"&&"toASN"in R&&"fromASN"in R)}}pe.isConvertible=isConvertible;function isTypeOfArray(R){var pe;if(R){const Ae=Object.getPrototypeOf(R);if(((pe=Ae===null||Ae===void 0?void 0:Ae.prototype)===null||pe===void 0?void 0:pe.constructor)===Array){return true}return isTypeOfArray(Ae)}return false}pe.isTypeOfArray=isTypeOfArray;function isArrayEqual(R,pe){if(!(R&&pe)){return false}if(R.byteLength!==pe.byteLength){return false}const Ae=new Uint8Array(R);const he=new Uint8Array(pe);for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnSerializer=pe.AsnParser=pe.AsnPropTypes=pe.AsnTypeTypes=pe.AsnSetType=pe.AsnSequenceType=pe.AsnChoiceType=pe.AsnType=pe.AsnProp=void 0;const he=Ae(4351);he.__exportStar(Ae(54091),pe);he.__exportStar(Ae(80756),pe);var ge=Ae(10157);Object.defineProperty(pe,"AsnProp",{enumerable:true,get:function(){return ge.AsnProp}});Object.defineProperty(pe,"AsnType",{enumerable:true,get:function(){return ge.AsnType}});Object.defineProperty(pe,"AsnChoiceType",{enumerable:true,get:function(){return ge.AsnChoiceType}});Object.defineProperty(pe,"AsnSequenceType",{enumerable:true,get:function(){return ge.AsnSequenceType}});Object.defineProperty(pe,"AsnSetType",{enumerable:true,get:function(){return ge.AsnSetType}});var ye=Ae(40378);Object.defineProperty(pe,"AsnTypeTypes",{enumerable:true,get:function(){return ye.AsnTypeTypes}});Object.defineProperty(pe,"AsnPropTypes",{enumerable:true,get:function(){return ye.AsnPropTypes}});var me=Ae(89660);Object.defineProperty(pe,"AsnParser",{enumerable:true,get:function(){return me.AsnParser}});var ve=Ae(37770);Object.defineProperty(pe,"AsnSerializer",{enumerable:true,get:function(){return ve.AsnSerializer}});he.__exportStar(Ae(56194),pe);he.__exportStar(Ae(53795),pe);he.__exportStar(Ae(10913),pe)},53795:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnArray=void 0;class AsnArray extends Array{constructor(R=[]){if(typeof R==="number"){super(R)}else{super();for(const pe of R){this.push(pe)}}}}pe.AsnArray=AsnArray},89660:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnParser=void 0;const he=Ae(3702);const ge=Ae(40378);const ye=Ae(54091);const me=Ae(56194);const ve=Ae(74750);const be=Ae(54652);class AsnParser{static parse(R,pe){const Ae=he.fromBER(R);if(Ae.result.error){throw new Error(Ae.result.error)}const ge=this.fromASN(Ae.result,pe);return ge}static fromASN(R,pe){var Ae;try{if((0,ve.isConvertible)(pe)){const Ae=new pe;return Ae.fromASN(R)}const Ee=be.schemaStorage.get(pe);be.schemaStorage.cache(pe);let Ce=Ee.schema;if(R.constructor===he.Constructed&&Ee.type!==ge.AsnTypeTypes.Choice){Ce=new he.Constructed({idBlock:{tagClass:3,tagNumber:R.idBlock.tagNumber},value:Ee.schema.valueBlock.value});for(const pe in Ee.items){delete R[pe]}}const we=he.compareSchema({},R,Ce);if(!we.verified){throw new me.AsnSchemaValidationError(`Data does not match to ${pe.name} ASN1 schema. ${we.result.error}`)}const _e=new pe;if((0,ve.isTypeOfArray)(pe)){if(!("value"in R.valueBlock&&Array.isArray(R.valueBlock.value))){throw new Error(`Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.`)}const Ae=Ee.itemType;if(typeof Ae==="number"){const he=ye.defaultConverter(Ae);if(!he){throw new Error(`Cannot get default converter for array item of ${pe.name} ASN1 schema`)}return pe.from(R.valueBlock.value,(R=>he.fromASN(R)))}else{return pe.from(R.valueBlock.value,(R=>this.fromASN(R,Ae)))}}for(const R in Ee.items){const pe=we.result[R];if(!pe){continue}const ye=Ee.items[R];const me=ye.type;if(typeof me==="number"||(0,ve.isConvertible)(me)){const be=(Ae=ye.converter)!==null&&Ae!==void 0?Ae:(0,ve.isConvertible)(me)?new me:null;if(!be){throw new Error("Converter is empty")}if(ye.repeated){if(ye.implicit){const Ae=ye.repeated==="sequence"?he.Sequence:he.Set;const ge=new Ae;ge.valueBlock=pe.valueBlock;const me=he.fromBER(ge.toBER(false));if(me.offset===-1){throw new Error(`Cannot parse the child item. ${me.result.error}`)}if(!("value"in me.result.valueBlock&&Array.isArray(me.result.valueBlock.value))){throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.")}const ve=me.result.valueBlock.value;_e[R]=Array.from(ve,(R=>be.fromASN(R)))}else{_e[R]=Array.from(pe,(R=>be.fromASN(R)))}}else{let Ae=pe;if(ye.implicit){let R;if((0,ve.isConvertible)(me)){R=(new me).toSchema("")}else{const pe=ge.AsnPropTypes[me];const Ae=he[pe];if(!Ae){throw new Error(`Cannot get '${pe}' class from asn1js module`)}R=new Ae}R.valueBlock=Ae.valueBlock;Ae=he.fromBER(R.toBER(false)).result}_e[R]=be.fromASN(Ae)}}else{if(ye.repeated){if(!Array.isArray(pe)){throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.")}_e[R]=Array.from(pe,(R=>this.fromASN(R,me)))}else{_e[R]=this.fromASN(pe,me)}}}return _e}catch(R){if(R instanceof me.AsnSchemaValidationError){R.schemas.push(pe.name)}throw R}}}pe.AsnParser=AsnParser},93021:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnSchemaStorage=void 0;const he=Ae(3702);const ge=Ae(40378);const ye=Ae(74750);class AsnSchemaStorage{constructor(){this.items=new WeakMap}has(R){return this.items.has(R)}get(R,pe=false){const Ae=this.items.get(R);if(!Ae){throw new Error(`Cannot get schema for '${R.prototype.constructor.name}' target`)}if(pe&&!Ae.schema){throw new Error(`Schema '${R.prototype.constructor.name}' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'.`)}return Ae}cache(R){const pe=this.get(R);if(!pe.schema){pe.schema=this.create(R,true)}}createDefault(R){const pe={type:ge.AsnTypeTypes.Sequence,items:{}};const Ae=this.findParentSchema(R);if(Ae){Object.assign(pe,Ae);pe.items=Object.assign({},pe.items,Ae.items)}return pe}create(R,pe){const Ae=this.items.get(R)||this.createDefault(R);const me=[];for(const R in Ae.items){const ve=Ae.items[R];const be=pe?R:"";let Ee;if(typeof ve.type==="number"){const R=ge.AsnPropTypes[ve.type];const pe=he[R];if(!pe){throw new Error(`Cannot get ASN1 class by name '${R}'`)}Ee=new pe({name:be})}else if((0,ye.isConvertible)(ve.type)){const R=new ve.type;Ee=R.toSchema(be)}else if(ve.optional){const R=this.get(ve.type);if(R.type===ge.AsnTypeTypes.Choice){Ee=new he.Any({name:be})}else{Ee=this.create(ve.type,false);Ee.name=be}}else{Ee=new he.Any({name:be})}const Ce=!!ve.optional||ve.defaultValue!==undefined;if(ve.repeated){Ee.name="";const R=ve.repeated==="set"?he.Set:he.Sequence;Ee=new R({name:"",value:[new he.Repeated({name:be,value:Ee})]})}if(ve.context!==null&&ve.context!==undefined){if(ve.implicit){if(typeof ve.type==="number"||(0,ye.isConvertible)(ve.type)){const R=ve.repeated?he.Constructed:he.Primitive;me.push(new R({name:be,optional:Ce,idBlock:{tagClass:3,tagNumber:ve.context}}))}else{this.cache(ve.type);const R=!!ve.repeated;let pe=!R?this.get(ve.type,true).schema:Ee;pe="valueBlock"in pe?pe.valueBlock.value:pe.value;me.push(new he.Constructed({name:!R?be:"",optional:Ce,idBlock:{tagClass:3,tagNumber:ve.context},value:pe}))}}else{me.push(new he.Constructed({optional:Ce,idBlock:{tagClass:3,tagNumber:ve.context},value:[Ee]}))}}else{Ee.optional=Ce;me.push(Ee)}}switch(Ae.type){case ge.AsnTypeTypes.Sequence:return new he.Sequence({value:me,name:""});case ge.AsnTypeTypes.Set:return new he.Set({value:me,name:""});case ge.AsnTypeTypes.Choice:return new he.Choice({value:me,name:""});default:throw new Error(`Unsupported ASN1 type in use`)}}set(R,pe){this.items.set(R,pe);return this}findParentSchema(R){const pe=Object.getPrototypeOf(R);if(pe){const R=this.items.get(pe);return R||this.findParentSchema(pe)}return null}}pe.AsnSchemaStorage=AsnSchemaStorage},37770:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnSerializer=void 0;const he=Ae(3702);const ge=Ae(54091);const ye=Ae(40378);const me=Ae(74750);const ve=Ae(54652);class AsnSerializer{static serialize(R){if(R instanceof he.BaseBlock){return R.toBER(false)}return this.toASN(R).toBER(false)}static toASN(R){if(R&&typeof R==="object"&&(0,me.isConvertible)(R)){return R.toASN()}if(!(R&&typeof R==="object")){throw new TypeError("Parameter 1 should be type of Object.")}const pe=R.constructor;const Ae=ve.schemaStorage.get(pe);ve.schemaStorage.cache(pe);let be=[];if(Ae.itemType){if(!Array.isArray(R)){throw new TypeError("Parameter 1 should be type of Array.")}if(typeof Ae.itemType==="number"){const he=ge.defaultConverter(Ae.itemType);if(!he){throw new Error(`Cannot get default converter for array item of ${pe.name} ASN1 schema`)}be=R.map((R=>he.toASN(R)))}else{be=R.map((R=>this.toAsnItem({type:Ae.itemType},"[]",pe,R)))}}else{for(const ge in Ae.items){const ye=Ae.items[ge];const ve=R[ge];if(ve===undefined||ye.defaultValue===ve||typeof ye.defaultValue==="object"&&typeof ve==="object"&&(0,me.isArrayEqual)(this.serialize(ye.defaultValue),this.serialize(ve))){continue}const Ee=AsnSerializer.toAsnItem(ye,ge,pe,ve);if(typeof ye.context==="number"){if(ye.implicit){if(!ye.repeated&&(typeof ye.type==="number"||(0,me.isConvertible)(ye.type))){const R={};R.valueHex=Ee instanceof he.Null?Ee.valueBeforeDecodeView:Ee.valueBlock.toBER();be.push(new he.Primitive({optional:ye.optional,idBlock:{tagClass:3,tagNumber:ye.context},...R}))}else{be.push(new he.Constructed({optional:ye.optional,idBlock:{tagClass:3,tagNumber:ye.context},value:Ee.valueBlock.value}))}}else{be.push(new he.Constructed({optional:ye.optional,idBlock:{tagClass:3,tagNumber:ye.context},value:[Ee]}))}}else if(ye.repeated){be=be.concat(Ee)}else{be.push(Ee)}}}let Ee;switch(Ae.type){case ye.AsnTypeTypes.Sequence:Ee=new he.Sequence({value:be});break;case ye.AsnTypeTypes.Set:Ee=new he.Set({value:be});break;case ye.AsnTypeTypes.Choice:if(!be[0]){throw new Error(`Schema '${pe.name}' has wrong data. Choice cannot be empty.`)}Ee=be[0];break}return Ee}static toAsnItem(R,pe,Ae,ge){let me;if(typeof R.type==="number"){const ve=R.converter;if(!ve){throw new Error(`Property '${pe}' doesn't have converter for type ${ye.AsnPropTypes[R.type]} in schema '${Ae.name}'`)}if(R.repeated){if(!Array.isArray(ge)){throw new TypeError("Parameter 'objProp' should be type of Array.")}const pe=Array.from(ge,(R=>ve.toASN(R)));const Ae=R.repeated==="sequence"?he.Sequence:he.Set;me=new Ae({value:pe})}else{me=ve.toASN(ge)}}else{if(R.repeated){if(!Array.isArray(ge)){throw new TypeError("Parameter 'objProp' should be type of Array.")}const pe=Array.from(ge,(R=>this.toASN(R)));const Ae=R.repeated==="sequence"?he.Sequence:he.Set;me=new Ae({value:pe})}else{me=this.toASN(ge)}}return me}}pe.AsnSerializer=AsnSerializer},54652:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.schemaStorage=void 0;const he=Ae(93021);pe.schemaStorage=new he.AsnSchemaStorage},63897:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.BitString=void 0;const he=Ae(3702);const ge=Ae(22420);class BitString{constructor(R,pe=0){this.unusedBits=0;this.value=new ArrayBuffer(0);if(R){if(typeof R==="number"){this.fromNumber(R)}else if(ge.BufferSourceConverter.isBufferSource(R)){this.unusedBits=pe;this.value=ge.BufferSourceConverter.toArrayBuffer(R)}else{throw TypeError("Unsupported type of 'params' argument for BitString")}}}fromASN(R){if(!(R instanceof he.BitString)){throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString")}this.unusedBits=R.valueBlock.unusedBits;this.value=R.valueBlock.valueHex;return this}toASN(){return new he.BitString({unusedBits:this.unusedBits,valueHex:this.value})}toSchema(R){return new he.BitString({name:R})}toNumber(){let R="";const pe=new Uint8Array(this.value);for(const Ae of pe){R+=Ae.toString(2).padStart(8,"0")}R=R.split("").reverse().join("");if(this.unusedBits){R=R.slice(this.unusedBits).padStart(this.unusedBits,"0")}return parseInt(R,2)}fromNumber(R){let pe=R.toString(2);const Ae=pe.length+7>>3;this.unusedBits=(Ae<<3)-pe.length;const he=new Uint8Array(Ae);pe=pe.padStart(Ae<<3,"0").split("").reverse().join("");let ge=0;while(ge{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(63897),pe);he.__exportStar(Ae(72060),pe)},72060:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.OctetString=void 0;const he=Ae(3702);const ge=Ae(22420);class OctetString{get byteLength(){return this.buffer.byteLength}get byteOffset(){return 0}constructor(R){if(typeof R==="number"){this.buffer=new ArrayBuffer(R)}else{if(ge.BufferSourceConverter.isBufferSource(R)){this.buffer=ge.BufferSourceConverter.toArrayBuffer(R)}else if(Array.isArray(R)){this.buffer=new Uint8Array(R)}else{this.buffer=new ArrayBuffer(0)}}}fromASN(R){if(!(R instanceof he.OctetString)){throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString")}this.buffer=R.valueBlock.valueHex;return this}toASN(){return new he.OctetString({valueHex:this.buffer})}toSchema(R){return new he.OctetString({name:R})}}pe.OctetString=OctetString},33407:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ACClearAttrs=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class ACClearAttrs{constructor(R={}){this.acIssuer=new ye.GeneralName;this.acSerial=0;this.attrs=[];Object.assign(this,R)}}pe.ACClearAttrs=ACClearAttrs;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName})],ACClearAttrs.prototype,"acIssuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],ACClearAttrs.prototype,"acSerial",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Attribute,repeated:"sequence"})],ACClearAttrs.prototype,"attrs",void 0)},7881:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AAControls=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38160);class AAControls{constructor(R={}){this.permitUnSpecified=true;Object.assign(this,R)}}pe.AAControls=AAControls;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,optional:true})],AAControls.prototype,"pathLenConstraint",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AttrSpec,implicit:true,context:0,optional:true})],AAControls.prototype,"permittedAttrs",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AttrSpec,implicit:true,context:1,optional:true})],AAControls.prototype,"excludedAttrs",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Boolean,defaultValue:true})],AAControls.prototype,"permitUnSpecified",void 0)},30480:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AttCertIssuer=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(5787);let ve=class AttCertIssuer{constructor(R={}){Object.assign(this,R)}};pe.AttCertIssuer=ve;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName,repeated:"sequence"})],ve.prototype,"v1Form",void 0);he.__decorate([(0,ge.AsnProp)({type:me.V2Form,context:0,implicit:true})],ve.prototype,"v2Form",void 0);pe.AttCertIssuer=ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve)},45356:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AttCertValidityPeriod=void 0;const he=Ae(4351);const ge=Ae(53499);class AttCertValidityPeriod{constructor(R={}){this.notBeforeTime=new Date;this.notAfterTime=new Date;Object.assign(this,R)}}pe.AttCertValidityPeriod=AttCertValidityPeriod;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime})],AttCertValidityPeriod.prototype,"notBeforeTime",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime})],AttCertValidityPeriod.prototype,"notAfterTime",void 0)},38160:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.AttrSpec=void 0;const ge=Ae(4351);const ye=Ae(53499);let me=he=class AttrSpec extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.AttrSpec=me;pe.AttrSpec=me=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:ye.AsnPropTypes.ObjectIdentifier})],me)},67943:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AttributeCertificate=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(85881);class AttributeCertificate{constructor(R={}){this.acinfo=new me.AttributeCertificateInfo;this.signatureAlgorithm=new ye.AlgorithmIdentifier;this.signatureValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.AttributeCertificate=AttributeCertificate;he.__decorate([(0,ge.AsnProp)({type:me.AttributeCertificateInfo})],AttributeCertificate.prototype,"acinfo",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],AttributeCertificate.prototype,"signatureAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],AttributeCertificate.prototype,"signatureValue",void 0)},85881:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AttributeCertificateInfo=pe.AttCertVersion=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(97195);const ve=Ae(30480);const be=Ae(45356);var Ee;(function(R){R[R["v2"]=1]="v2"})(Ee||(pe.AttCertVersion=Ee={}));class AttributeCertificateInfo{constructor(R={}){this.version=Ee.v2;this.holder=new me.Holder;this.issuer=new ve.AttCertIssuer;this.signature=new ye.AlgorithmIdentifier;this.serialNumber=new ArrayBuffer(0);this.attrCertValidityPeriod=new be.AttCertValidityPeriod;this.attributes=[];Object.assign(this,R)}}pe.AttributeCertificateInfo=AttributeCertificateInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],AttributeCertificateInfo.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Holder})],AttributeCertificateInfo.prototype,"holder",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.AttCertIssuer})],AttributeCertificateInfo.prototype,"issuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],AttributeCertificateInfo.prototype,"signature",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],AttributeCertificateInfo.prototype,"serialNumber",void 0);he.__decorate([(0,ge.AsnProp)({type:be.AttCertValidityPeriod})],AttributeCertificateInfo.prototype,"attrCertValidityPeriod",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Attribute,repeated:"sequence"})],AttributeCertificateInfo.prototype,"attributes",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString,optional:true})],AttributeCertificateInfo.prototype,"issuerUniqueID",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Extensions,optional:true})],AttributeCertificateInfo.prototype,"extensions",void 0)},2519:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ClassList=pe.ClassListFlags=void 0;const he=Ae(53499);var ge;(function(R){R[R["unmarked"]=1]="unmarked";R[R["unclassified"]=2]="unclassified";R[R["restricted"]=4]="restricted";R[R["confidential"]=8]="confidential";R[R["secret"]=16]="secret";R[R["topSecret"]=32]="topSecret"})(ge||(pe.ClassListFlags=ge={}));class ClassList extends he.BitString{}pe.ClassList=ClassList},31246:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Clearance=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(2519);const me=Ae(46789);class Clearance{constructor(R={}){this.policyId="";this.classList=new ye.ClassList(ye.ClassListFlags.unclassified);Object.assign(this,R)}}pe.Clearance=Clearance;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],Clearance.prototype,"policyId",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.ClassList,defaultValue:new ye.ClassList(ye.ClassListFlags.unclassified)})],Clearance.prototype,"classList",void 0);he.__decorate([(0,ge.AsnProp)({type:me.SecurityCategory,repeated:"set"})],Clearance.prototype,"securityCategories",void 0)},97195:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Holder=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(10462);const me=Ae(82288);const ve=Ae(51952);class Holder{constructor(R={}){Object.assign(this,R)}}pe.Holder=Holder;he.__decorate([(0,ge.AsnProp)({type:ye.IssuerSerial,implicit:true,context:0,optional:true})],Holder.prototype,"baseCertificateID",void 0);he.__decorate([(0,ge.AsnProp)({type:me.GeneralNames,implicit:true,context:1,optional:true})],Holder.prototype,"entityName",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.ObjectDigestInfo,implicit:true,context:2,optional:true})],Holder.prototype,"objectDigestInfo",void 0)},82639:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IetfAttrSyntax=pe.IetfAttrSyntaxValueChoices=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class IetfAttrSyntaxValueChoices{constructor(R={}){Object.assign(this,R)}}pe.IetfAttrSyntaxValueChoices=IetfAttrSyntaxValueChoices;he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],IetfAttrSyntaxValueChoices.prototype,"cotets",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],IetfAttrSyntaxValueChoices.prototype,"oid",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Utf8String})],IetfAttrSyntaxValueChoices.prototype,"string",void 0);class IetfAttrSyntax{constructor(R={}){this.values=[];Object.assign(this,R)}}pe.IetfAttrSyntax=IetfAttrSyntax;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralNames,implicit:true,context:0,optional:true})],IetfAttrSyntax.prototype,"policyAuthority",void 0);he.__decorate([(0,ge.AsnProp)({type:IetfAttrSyntaxValueChoices,repeated:"sequence"})],IetfAttrSyntax.prototype,"values",void 0)},64263:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(33407),pe);he.__exportStar(Ae(7881),pe);he.__exportStar(Ae(30480),pe);he.__exportStar(Ae(45356),pe);he.__exportStar(Ae(38160),pe);he.__exportStar(Ae(67943),pe);he.__exportStar(Ae(85881),pe);he.__exportStar(Ae(2519),pe);he.__exportStar(Ae(31246),pe);he.__exportStar(Ae(97195),pe);he.__exportStar(Ae(82639),pe);he.__exportStar(Ae(10462),pe);he.__exportStar(Ae(51952),pe);he.__exportStar(Ae(59851),pe);he.__exportStar(Ae(13945),pe);he.__exportStar(Ae(89422),pe);he.__exportStar(Ae(46789),pe);he.__exportStar(Ae(80072),pe);he.__exportStar(Ae(27260),pe);he.__exportStar(Ae(5787),pe)},10462:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IssuerSerial=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class IssuerSerial{constructor(R={}){this.issuer=new ye.GeneralNames;this.serial=new ArrayBuffer(0);this.issuerUID=new ArrayBuffer(0);Object.assign(this,R)}}pe.IssuerSerial=IssuerSerial;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralNames})],IssuerSerial.prototype,"issuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],IssuerSerial.prototype,"serial",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString,optional:true})],IssuerSerial.prototype,"issuerUID",void 0)},51952:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ObjectDigestInfo=pe.DigestedObjectType=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);var me;(function(R){R[R["publicKey"]=0]="publicKey";R[R["publicKeyCert"]=1]="publicKeyCert";R[R["otherObjectTypes"]=2]="otherObjectTypes"})(me||(pe.DigestedObjectType=me={}));class ObjectDigestInfo{constructor(R={}){this.digestedObjectType=me.publicKey;this.digestAlgorithm=new ye.AlgorithmIdentifier;this.objectDigest=new ArrayBuffer(0);Object.assign(this,R)}}pe.ObjectDigestInfo=ObjectDigestInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Enumerated})],ObjectDigestInfo.prototype,"digestedObjectType",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier,optional:true})],ObjectDigestInfo.prototype,"otherObjectTypeID",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],ObjectDigestInfo.prototype,"digestAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],ObjectDigestInfo.prototype,"objectDigest",void 0)},59851:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_at_clearance=pe.id_at_role=pe.id_at=pe.id_aca_encAttrs=pe.id_aca_group=pe.id_aca_chargingIdentity=pe.id_aca_accessIdentity=pe.id_aca_authenticationInfo=pe.id_aca=pe.id_ce_targetInformation=pe.id_pe_ac_proxying=pe.id_pe_aaControls=pe.id_pe_ac_auditIdentity=void 0;const he=Ae(82288);pe.id_pe_ac_auditIdentity=`${he.id_pe}.4`;pe.id_pe_aaControls=`${he.id_pe}.6`;pe.id_pe_ac_proxying=`${he.id_pe}.10`;pe.id_ce_targetInformation=`${he.id_ce}.55`;pe.id_aca=`${he.id_pkix}.10`;pe.id_aca_authenticationInfo=`${pe.id_aca}.1`;pe.id_aca_accessIdentity=`${pe.id_aca}.2`;pe.id_aca_chargingIdentity=`${pe.id_aca}.3`;pe.id_aca_group=`${pe.id_aca}.4`;pe.id_aca_encAttrs=`${pe.id_aca}.6`;pe.id_at="2.5.4";pe.id_at_role=`${pe.id_at}.72`;pe.id_at_clearance="2.5.1.5.55"},13945:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.ProxyInfo=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(27260);let ve=he=class ProxyInfo extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.ProxyInfo=ve;pe.ProxyInfo=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.Targets})],ve)},89422:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RoleSyntax=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class RoleSyntax{constructor(R={}){Object.assign(this,R)}}pe.RoleSyntax=RoleSyntax;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralNames,implicit:true,context:0,optional:true})],RoleSyntax.prototype,"roleAuthority",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName,implicit:true,context:1})],RoleSyntax.prototype,"roleName",void 0)},46789:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SecurityCategory=void 0;const he=Ae(4351);const ge=Ae(53499);class SecurityCategory{constructor(R={}){this.type="";this.value=new ArrayBuffer(0);Object.assign(this,R)}}pe.SecurityCategory=SecurityCategory;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier,implicit:true,context:0})],SecurityCategory.prototype,"type",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,implicit:true,context:1})],SecurityCategory.prototype,"value",void 0)},80072:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SvceAuthInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class SvceAuthInfo{constructor(R={}){this.service=new ye.GeneralName;this.ident=new ye.GeneralName;Object.assign(this,R)}}pe.SvceAuthInfo=SvceAuthInfo;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName})],SvceAuthInfo.prototype,"service",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName})],SvceAuthInfo.prototype,"ident",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString,optional:true})],SvceAuthInfo.prototype,"authInfo",void 0)},27260:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.Targets=pe.Target=pe.TargetCert=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(82288);const ve=Ae(10462);const be=Ae(51952);class TargetCert{constructor(R={}){this.targetCertificate=new ve.IssuerSerial;Object.assign(this,R)}}pe.TargetCert=TargetCert;ge.__decorate([(0,ye.AsnProp)({type:ve.IssuerSerial})],TargetCert.prototype,"targetCertificate",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.GeneralName,optional:true})],TargetCert.prototype,"targetName",void 0);ge.__decorate([(0,ye.AsnProp)({type:be.ObjectDigestInfo,optional:true})],TargetCert.prototype,"certDigestInfo",void 0);let Ee=class Target{constructor(R={}){Object.assign(this,R)}};pe.Target=Ee;ge.__decorate([(0,ye.AsnProp)({type:me.GeneralName,context:0,implicit:true})],Ee.prototype,"targetName",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.GeneralName,context:1,implicit:true})],Ee.prototype,"targetGroup",void 0);ge.__decorate([(0,ye.AsnProp)({type:TargetCert,context:2,implicit:true})],Ee.prototype,"targetCert",void 0);pe.Target=Ee=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],Ee);let Ce=he=class Targets extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.Targets=Ce;pe.Targets=Ce=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:Ee})],Ce)},5787:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.V2Form=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(10462);const ve=Ae(51952);class V2Form{constructor(R={}){Object.assign(this,R)}}pe.V2Form=V2Form;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralNames,optional:true})],V2Form.prototype,"issuerName",void 0);he.__decorate([(0,ge.AsnProp)({type:me.IssuerSerial,context:0,implicit:true,optional:true})],V2Form.prototype,"baseCertificateID",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.ObjectDigestInfo,context:1,implicit:true,optional:true})],V2Form.prototype,"objectDigestInfo",void 0)},38266:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AlgorithmIdentifier=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(22420);class AlgorithmIdentifier{constructor(R={}){this.algorithm="";Object.assign(this,R)}isEqual(R){return R instanceof AlgorithmIdentifier&&R.algorithm==this.algorithm&&(R.parameters&&this.parameters&&ye.isEqual(R.parameters,this.parameters)||R.parameters===this.parameters)}}pe.AlgorithmIdentifier=AlgorithmIdentifier;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],AlgorithmIdentifier.prototype,"algorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,optional:true})],AlgorithmIdentifier.prototype,"parameters",void 0)},2171:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Attribute=void 0;const he=Ae(4351);const ge=Ae(53499);class Attribute{constructor(R={}){this.type="";this.values=[];Object.assign(this,R)}}pe.Attribute=Attribute;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],Attribute.prototype,"type",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,repeated:"set"})],Attribute.prototype,"values",void 0)},25974:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Certificate=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38266);const me=Ae(49117);class Certificate{constructor(R={}){this.tbsCertificate=new me.TBSCertificate;this.signatureAlgorithm=new ye.AlgorithmIdentifier;this.signatureValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.Certificate=Certificate;he.__decorate([(0,ge.AsnProp)({type:me.TBSCertificate})],Certificate.prototype,"tbsCertificate",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],Certificate.prototype,"signatureAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],Certificate.prototype,"signatureValue",void 0)},13554:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CertificateList=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38266);const me=Ae(13113);class CertificateList{constructor(R={}){this.tbsCertList=new me.TBSCertList;this.signatureAlgorithm=new ye.AlgorithmIdentifier;this.signature=new ArrayBuffer(0);Object.assign(this,R)}}pe.CertificateList=CertificateList;he.__decorate([(0,ge.AsnProp)({type:me.TBSCertList})],CertificateList.prototype,"tbsCertList",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],CertificateList.prototype,"signatureAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],CertificateList.prototype,"signature",void 0)},77908:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.Extensions=pe.Extension=void 0;const ge=Ae(4351);const ye=Ae(53499);class Extension{constructor(R={}){this.extnID="";this.critical=Extension.CRITICAL;this.extnValue=new ye.OctetString;Object.assign(this,R)}}pe.Extension=Extension;Extension.CRITICAL=false;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],Extension.prototype,"extnID",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Boolean,defaultValue:Extension.CRITICAL})],Extension.prototype,"critical",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.OctetString})],Extension.prototype,"extnValue",void 0);let me=he=class Extensions extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.Extensions=me;pe.Extensions=me=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:Extension})],me)},677:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.AuthorityInfoAccessSyntax=pe.AccessDescription=pe.id_pe_authorityInfoAccess=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(83670);const ve=Ae(70725);pe.id_pe_authorityInfoAccess=`${ve.id_pe}.1`;class AccessDescription{constructor(R={}){this.accessMethod="";this.accessLocation=new me.GeneralName;Object.assign(this,R)}}pe.AccessDescription=AccessDescription;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],AccessDescription.prototype,"accessMethod",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.GeneralName})],AccessDescription.prototype,"accessLocation",void 0);let be=he=class AuthorityInfoAccessSyntax extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.AuthorityInfoAccessSyntax=be;pe.AuthorityInfoAccessSyntax=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:AccessDescription})],be)},11583:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AuthorityKeyIdentifier=pe.KeyIdentifier=pe.id_ce_authorityKeyIdentifier=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(83670);const me=Ae(70725);pe.id_ce_authorityKeyIdentifier=`${me.id_ce}.35`;class KeyIdentifier extends ge.OctetString{}pe.KeyIdentifier=KeyIdentifier;class AuthorityKeyIdentifier{constructor(R={}){if(R){Object.assign(this,R)}}}pe.AuthorityKeyIdentifier=AuthorityKeyIdentifier;he.__decorate([(0,ge.AsnProp)({type:KeyIdentifier,context:0,optional:true,implicit:true})],AuthorityKeyIdentifier.prototype,"keyIdentifier",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName,context:1,optional:true,implicit:true,repeated:"sequence"})],AuthorityKeyIdentifier.prototype,"authorityCertIssuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:2,optional:true,implicit:true,converter:ge.AsnIntegerArrayBufferConverter})],AuthorityKeyIdentifier.prototype,"authorityCertSerialNumber",void 0)},20621:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.BasicConstraints=pe.id_ce_basicConstraints=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_basicConstraints=`${ye.id_ce}.19`;class BasicConstraints{constructor(R={}){this.cA=false;Object.assign(this,R)}}pe.BasicConstraints=BasicConstraints;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Boolean,defaultValue:false})],BasicConstraints.prototype,"cA",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,optional:true})],BasicConstraints.prototype,"pathLenConstraint",void 0)},93151:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.CertificateIssuer=pe.id_ce_certificateIssuer=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(13201);const ve=Ae(70725);pe.id_ce_certificateIssuer=`${ve.id_ce}.29`;let be=he=class CertificateIssuer extends me.GeneralNames{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.CertificateIssuer=be;pe.CertificateIssuer=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],be)},44157:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.CertificatePolicies=pe.PolicyInformation=pe.PolicyQualifierInfo=pe.Qualifier=pe.UserNotice=pe.NoticeReference=pe.DisplayText=pe.id_ce_certificatePolicies_anyPolicy=pe.id_ce_certificatePolicies=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(70725);pe.id_ce_certificatePolicies=`${me.id_ce}.32`;pe.id_ce_certificatePolicies_anyPolicy=`${pe.id_ce_certificatePolicies}.0`;let ve=class DisplayText{constructor(R={}){Object.assign(this,R)}toString(){return this.ia5String||this.visibleString||this.bmpString||this.utf8String||""}};pe.DisplayText=ve;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.IA5String})],ve.prototype,"ia5String",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.VisibleString})],ve.prototype,"visibleString",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.BmpString})],ve.prototype,"bmpString",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Utf8String})],ve.prototype,"utf8String",void 0);pe.DisplayText=ve=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],ve);class NoticeReference{constructor(R={}){this.organization=new ve;this.noticeNumbers=[];Object.assign(this,R)}}pe.NoticeReference=NoticeReference;ge.__decorate([(0,ye.AsnProp)({type:ve})],NoticeReference.prototype,"organization",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,repeated:"sequence"})],NoticeReference.prototype,"noticeNumbers",void 0);class UserNotice{constructor(R={}){Object.assign(this,R)}}pe.UserNotice=UserNotice;ge.__decorate([(0,ye.AsnProp)({type:NoticeReference,optional:true})],UserNotice.prototype,"noticeRef",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve,optional:true})],UserNotice.prototype,"explicitText",void 0);let be=class Qualifier{constructor(R={}){Object.assign(this,R)}};pe.Qualifier=be;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.IA5String})],be.prototype,"cPSuri",void 0);ge.__decorate([(0,ye.AsnProp)({type:UserNotice})],be.prototype,"userNotice",void 0);pe.Qualifier=be=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],be);class PolicyQualifierInfo{constructor(R={}){this.policyQualifierId="";this.qualifier=new ArrayBuffer(0);Object.assign(this,R)}}pe.PolicyQualifierInfo=PolicyQualifierInfo;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],PolicyQualifierInfo.prototype,"policyQualifierId",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Any})],PolicyQualifierInfo.prototype,"qualifier",void 0);class PolicyInformation{constructor(R={}){this.policyIdentifier="";Object.assign(this,R)}}pe.PolicyInformation=PolicyInformation;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],PolicyInformation.prototype,"policyIdentifier",void 0);ge.__decorate([(0,ye.AsnProp)({type:PolicyQualifierInfo,repeated:"sequence",optional:true})],PolicyInformation.prototype,"policyQualifiers",void 0);let Ee=he=class CertificatePolicies extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.CertificatePolicies=Ee;pe.CertificatePolicies=Ee=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:PolicyInformation})],Ee)},71335:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.BaseCRLNumber=pe.id_ce_deltaCRLIndicator=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);const me=Ae(88777);pe.id_ce_deltaCRLIndicator=`${ye.id_ce}.27`;let ve=class BaseCRLNumber extends me.CRLNumber{};pe.BaseCRLNumber=ve;pe.BaseCRLNumber=ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve)},50499:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.CRLDistributionPoints=pe.DistributionPoint=pe.DistributionPointName=pe.Reason=pe.ReasonFlags=pe.id_ce_cRLDistributionPoints=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(17429);const ve=Ae(83670);const be=Ae(70725);pe.id_ce_cRLDistributionPoints=`${be.id_ce}.31`;var Ee;(function(R){R[R["unused"]=1]="unused";R[R["keyCompromise"]=2]="keyCompromise";R[R["cACompromise"]=4]="cACompromise";R[R["affiliationChanged"]=8]="affiliationChanged";R[R["superseded"]=16]="superseded";R[R["cessationOfOperation"]=32]="cessationOfOperation";R[R["certificateHold"]=64]="certificateHold";R[R["privilegeWithdrawn"]=128]="privilegeWithdrawn";R[R["aACompromise"]=256]="aACompromise"})(Ee||(pe.ReasonFlags=Ee={}));class Reason extends ye.BitString{toJSON(){const R=[];const pe=this.toNumber();if(pe&Ee.aACompromise){R.push("aACompromise")}if(pe&Ee.affiliationChanged){R.push("affiliationChanged")}if(pe&Ee.cACompromise){R.push("cACompromise")}if(pe&Ee.certificateHold){R.push("certificateHold")}if(pe&Ee.cessationOfOperation){R.push("cessationOfOperation")}if(pe&Ee.keyCompromise){R.push("keyCompromise")}if(pe&Ee.privilegeWithdrawn){R.push("privilegeWithdrawn")}if(pe&Ee.superseded){R.push("superseded")}if(pe&Ee.unused){R.push("unused")}return R}toString(){return`[${this.toJSON().join(", ")}]`}}pe.Reason=Reason;let Ce=class DistributionPointName{constructor(R={}){Object.assign(this,R)}};pe.DistributionPointName=Ce;ge.__decorate([(0,ye.AsnProp)({type:ve.GeneralName,context:0,repeated:"sequence",implicit:true})],Ce.prototype,"fullName",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.RelativeDistinguishedName,context:1,implicit:true})],Ce.prototype,"nameRelativeToCRLIssuer",void 0);pe.DistributionPointName=Ce=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],Ce);class DistributionPoint{constructor(R={}){Object.assign(this,R)}}pe.DistributionPoint=DistributionPoint;ge.__decorate([(0,ye.AsnProp)({type:Ce,context:0,optional:true})],DistributionPoint.prototype,"distributionPoint",void 0);ge.__decorate([(0,ye.AsnProp)({type:Reason,context:1,optional:true,implicit:true})],DistributionPoint.prototype,"reasons",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.GeneralName,context:2,optional:true,repeated:"sequence",implicit:true})],DistributionPoint.prototype,"cRLIssuer",void 0);let we=he=class CRLDistributionPoints extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.CRLDistributionPoints=we;pe.CRLDistributionPoints=we=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:DistributionPoint})],we)},8e4:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.FreshestCRL=pe.id_ce_freshestCRL=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(70725);const ve=Ae(50499);pe.id_ce_freshestCRL=`${me.id_ce}.46`;let be=he=class FreshestCRL extends ve.CRLDistributionPoints{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.FreshestCRL=be;pe.FreshestCRL=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:ve.DistributionPoint})],be)},43305:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IssuingDistributionPoint=pe.id_ce_issuingDistributionPoint=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(50499);const me=Ae(70725);const ve=Ae(53499);pe.id_ce_issuingDistributionPoint=`${me.id_ce}.28`;class IssuingDistributionPoint{constructor(R={}){this.onlyContainsUserCerts=IssuingDistributionPoint.ONLY;this.onlyContainsCACerts=IssuingDistributionPoint.ONLY;this.indirectCRL=IssuingDistributionPoint.ONLY;this.onlyContainsAttributeCerts=IssuingDistributionPoint.ONLY;Object.assign(this,R)}}pe.IssuingDistributionPoint=IssuingDistributionPoint;IssuingDistributionPoint.ONLY=false;he.__decorate([(0,ge.AsnProp)({type:ye.DistributionPointName,context:0,optional:true})],IssuingDistributionPoint.prototype,"distributionPoint",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.AsnPropTypes.Boolean,context:1,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsUserCerts",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.AsnPropTypes.Boolean,context:2,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsCACerts",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Reason,context:3,optional:true,implicit:true})],IssuingDistributionPoint.prototype,"onlySomeReasons",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.AsnPropTypes.Boolean,context:4,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"indirectCRL",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.AsnPropTypes.Boolean,context:5,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsAttributeCerts",void 0)},88777:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CRLNumber=pe.id_ce_cRLNumber=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_cRLNumber=`${ye.id_ce}.20`;let me=class CRLNumber{constructor(R=0){this.value=R}};pe.CRLNumber=me;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],me.prototype,"value",void 0);pe.CRLNumber=me=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],me)},28857:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CRLReason=pe.CRLReasons=pe.id_ce_cRLReasons=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_cRLReasons=`${ye.id_ce}.21`;var me;(function(R){R[R["unspecified"]=0]="unspecified";R[R["keyCompromise"]=1]="keyCompromise";R[R["cACompromise"]=2]="cACompromise";R[R["affiliationChanged"]=3]="affiliationChanged";R[R["superseded"]=4]="superseded";R[R["cessationOfOperation"]=5]="cessationOfOperation";R[R["certificateHold"]=6]="certificateHold";R[R["removeFromCRL"]=8]="removeFromCRL";R[R["privilegeWithdrawn"]=9]="privilegeWithdrawn";R[R["aACompromise"]=10]="aACompromise"})(me||(pe.CRLReasons=me={}));let ve=class CRLReason{constructor(R=me.unspecified){this.reason=me.unspecified;this.reason=R}toJSON(){return me[this.reason]}toString(){return this.toJSON()}};pe.CRLReason=ve;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Enumerated})],ve.prototype,"reason",void 0);pe.CRLReason=ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve)},52382:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EntrustVersionInfo=pe.EntrustInfo=pe.EntrustInfoFlags=pe.id_entrust_entrustVersInfo=void 0;const he=Ae(4351);const ge=Ae(53499);pe.id_entrust_entrustVersInfo="1.2.840.113533.7.65.0";var ye;(function(R){R[R["keyUpdateAllowed"]=1]="keyUpdateAllowed";R[R["newExtensions"]=2]="newExtensions";R[R["pKIXCertificate"]=4]="pKIXCertificate"})(ye||(pe.EntrustInfoFlags=ye={}));class EntrustInfo extends ge.BitString{toJSON(){const R=[];const pe=this.toNumber();if(pe&ye.pKIXCertificate){R.push("pKIXCertificate")}if(pe&ye.newExtensions){R.push("newExtensions")}if(pe&ye.keyUpdateAllowed){R.push("keyUpdateAllowed")}return R}toString(){return`[${this.toJSON().join(", ")}]`}}pe.EntrustInfo=EntrustInfo;class EntrustVersionInfo{constructor(R={}){this.entrustVers="";this.entrustInfoFlags=new EntrustInfo;Object.assign(this,R)}}pe.EntrustVersionInfo=EntrustVersionInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralString})],EntrustVersionInfo.prototype,"entrustVers",void 0);he.__decorate([(0,ge.AsnProp)({type:EntrustInfo})],EntrustVersionInfo.prototype,"entrustInfoFlags",void 0)},97993:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.id_kp_OCSPSigning=pe.id_kp_timeStamping=pe.id_kp_emailProtection=pe.id_kp_codeSigning=pe.id_kp_clientAuth=pe.id_kp_serverAuth=pe.anyExtendedKeyUsage=pe.ExtendedKeyUsage=pe.id_ce_extKeyUsage=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(70725);pe.id_ce_extKeyUsage=`${me.id_ce}.37`;let ve=he=class ExtendedKeyUsage extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.ExtendedKeyUsage=ve;pe.ExtendedKeyUsage=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:ye.AsnPropTypes.ObjectIdentifier})],ve);pe.anyExtendedKeyUsage=`${pe.id_ce_extKeyUsage}.0`;pe.id_kp_serverAuth=`${me.id_kp}.1`;pe.id_kp_clientAuth=`${me.id_kp}.2`;pe.id_kp_codeSigning=`${me.id_kp}.3`;pe.id_kp_emailProtection=`${me.id_kp}.4`;pe.id_kp_timeStamping=`${me.id_kp}.8`;pe.id_kp_OCSPSigning=`${me.id_kp}.9`},56457:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(677),pe);he.__exportStar(Ae(11583),pe);he.__exportStar(Ae(20621),pe);he.__exportStar(Ae(93151),pe);he.__exportStar(Ae(44157),pe);he.__exportStar(Ae(71335),pe);he.__exportStar(Ae(50499),pe);he.__exportStar(Ae(8e4),pe);he.__exportStar(Ae(43305),pe);he.__exportStar(Ae(88777),pe);he.__exportStar(Ae(28857),pe);he.__exportStar(Ae(97993),pe);he.__exportStar(Ae(81622),pe);he.__exportStar(Ae(74932),pe);he.__exportStar(Ae(76330),pe);he.__exportStar(Ae(1622),pe);he.__exportStar(Ae(7543),pe);he.__exportStar(Ae(35113),pe);he.__exportStar(Ae(3230),pe);he.__exportStar(Ae(88555),pe);he.__exportStar(Ae(62007),pe);he.__exportStar(Ae(53651),pe);he.__exportStar(Ae(65096),pe);he.__exportStar(Ae(52382),pe);he.__exportStar(Ae(57299),pe)},81622:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.InhibitAnyPolicy=pe.id_ce_inhibitAnyPolicy=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_inhibitAnyPolicy=`${ye.id_ce}.54`;let me=class InhibitAnyPolicy{constructor(R=new ArrayBuffer(0)){this.value=R}};pe.InhibitAnyPolicy=me;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],me.prototype,"value",void 0);pe.InhibitAnyPolicy=me=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],me)},74932:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.InvalidityDate=pe.id_ce_invalidityDate=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_invalidityDate=`${ye.id_ce}.24`;let me=class InvalidityDate{constructor(R){this.value=new Date;if(R){this.value=R}}};pe.InvalidityDate=me;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime})],me.prototype,"value",void 0);pe.InvalidityDate=me=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],me)},76330:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.IssueAlternativeName=pe.id_ce_issuerAltName=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(13201);const ve=Ae(70725);pe.id_ce_issuerAltName=`${ve.id_ce}.18`;let be=he=class IssueAlternativeName extends me.GeneralNames{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.IssueAlternativeName=be;pe.IssueAlternativeName=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],be)},1622:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.KeyUsage=pe.KeyUsageFlags=pe.id_ce_keyUsage=void 0;const he=Ae(53499);const ge=Ae(70725);pe.id_ce_keyUsage=`${ge.id_ce}.15`;var ye;(function(R){R[R["digitalSignature"]=1]="digitalSignature";R[R["nonRepudiation"]=2]="nonRepudiation";R[R["keyEncipherment"]=4]="keyEncipherment";R[R["dataEncipherment"]=8]="dataEncipherment";R[R["keyAgreement"]=16]="keyAgreement";R[R["keyCertSign"]=32]="keyCertSign";R[R["cRLSign"]=64]="cRLSign";R[R["encipherOnly"]=128]="encipherOnly";R[R["decipherOnly"]=256]="decipherOnly"})(ye||(pe.KeyUsageFlags=ye={}));class KeyUsage extends he.BitString{toJSON(){const R=this.toNumber();const pe=[];if(R&ye.cRLSign){pe.push("crlSign")}if(R&ye.dataEncipherment){pe.push("dataEncipherment")}if(R&ye.decipherOnly){pe.push("decipherOnly")}if(R&ye.digitalSignature){pe.push("digitalSignature")}if(R&ye.encipherOnly){pe.push("encipherOnly")}if(R&ye.keyAgreement){pe.push("keyAgreement")}if(R&ye.keyCertSign){pe.push("keyCertSign")}if(R&ye.keyEncipherment){pe.push("keyEncipherment")}if(R&ye.nonRepudiation){pe.push("nonRepudiation")}return pe}toString(){return`[${this.toJSON().join(", ")}]`}}pe.KeyUsage=KeyUsage},7543:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.NameConstraints=pe.GeneralSubtrees=pe.GeneralSubtree=pe.id_ce_nameConstraints=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(83670);const ve=Ae(70725);pe.id_ce_nameConstraints=`${ve.id_ce}.30`;class GeneralSubtree{constructor(R={}){this.base=new me.GeneralName;this.minimum=0;Object.assign(this,R)}}pe.GeneralSubtree=GeneralSubtree;ge.__decorate([(0,ye.AsnProp)({type:me.GeneralName})],GeneralSubtree.prototype,"base",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,context:0,defaultValue:0,implicit:true})],GeneralSubtree.prototype,"minimum",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,context:1,optional:true,implicit:true})],GeneralSubtree.prototype,"maximum",void 0);let be=he=class GeneralSubtrees extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.GeneralSubtrees=be;pe.GeneralSubtrees=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:GeneralSubtree})],be);class NameConstraints{constructor(R={}){Object.assign(this,R)}}pe.NameConstraints=NameConstraints;ge.__decorate([(0,ye.AsnProp)({type:be,context:0,optional:true,implicit:true})],NameConstraints.prototype,"permittedSubtrees",void 0);ge.__decorate([(0,ye.AsnProp)({type:be,context:1,optional:true,implicit:true})],NameConstraints.prototype,"excludedSubtrees",void 0)},35113:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PolicyConstraints=pe.id_ce_policyConstraints=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_policyConstraints=`${ye.id_ce}.36`;class PolicyConstraints{constructor(R={}){Object.assign(this,R)}}pe.PolicyConstraints=PolicyConstraints;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:0,implicit:true,optional:true,converter:ge.AsnIntegerArrayBufferConverter})],PolicyConstraints.prototype,"requireExplicitPolicy",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:1,implicit:true,optional:true,converter:ge.AsnIntegerArrayBufferConverter})],PolicyConstraints.prototype,"inhibitPolicyMapping",void 0)},3230:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.PolicyMappings=pe.PolicyMapping=pe.id_ce_policyMappings=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(70725);pe.id_ce_policyMappings=`${me.id_ce}.33`;class PolicyMapping{constructor(R={}){this.issuerDomainPolicy="";this.subjectDomainPolicy="";Object.assign(this,R)}}pe.PolicyMapping=PolicyMapping;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],PolicyMapping.prototype,"issuerDomainPolicy",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],PolicyMapping.prototype,"subjectDomainPolicy",void 0);let ve=he=class PolicyMappings extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.PolicyMappings=ve;pe.PolicyMappings=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:PolicyMapping})],ve)},65096:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PrivateKeyUsagePeriod=pe.id_ce_privateKeyUsagePeriod=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_privateKeyUsagePeriod=`${ye.id_ce}.16`;class PrivateKeyUsagePeriod{constructor(R={}){Object.assign(this,R)}}pe.PrivateKeyUsagePeriod=PrivateKeyUsagePeriod;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime,context:0,implicit:true,optional:true})],PrivateKeyUsagePeriod.prototype,"notBefore",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime,context:1,implicit:true,optional:true})],PrivateKeyUsagePeriod.prototype,"notAfter",void 0)},88555:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SubjectAlternativeName=pe.id_ce_subjectAltName=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(13201);const ve=Ae(70725);pe.id_ce_subjectAltName=`${ve.id_ce}.17`;let be=he=class SubjectAlternativeName extends me.GeneralNames{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.SubjectAlternativeName=be;pe.SubjectAlternativeName=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],be)},62007:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SubjectDirectoryAttributes=pe.id_ce_subjectDirectoryAttributes=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(2171);const ve=Ae(70725);pe.id_ce_subjectDirectoryAttributes=`${ve.id_ce}.9`;let be=he=class SubjectDirectoryAttributes extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.SubjectDirectoryAttributes=be;pe.SubjectDirectoryAttributes=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.Attribute})],be)},57299:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SubjectInfoAccessSyntax=pe.id_pe_subjectInfoAccess=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(70725);const ve=Ae(677);pe.id_pe_subjectInfoAccess=`${me.id_pe}.11`;let be=he=class SubjectInfoAccessSyntax extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.SubjectInfoAccessSyntax=be;pe.SubjectInfoAccessSyntax=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:ve.AccessDescription})],be)},53651:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SubjectKeyIdentifier=pe.id_ce_subjectKeyIdentifier=void 0;const he=Ae(70725);const ge=Ae(11583);pe.id_ce_subjectKeyIdentifier=`${he.id_ce}.14`;class SubjectKeyIdentifier extends ge.KeyIdentifier{}pe.SubjectKeyIdentifier=SubjectKeyIdentifier},83670:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralName=pe.EDIPartyName=pe.OtherName=pe.AsnIpConverter=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(621);const me=Ae(17429);pe.AsnIpConverter={fromASN:R=>ye.IpConverter.toString(ge.AsnOctetStringConverter.fromASN(R)),toASN:R=>ge.AsnOctetStringConverter.toASN(ye.IpConverter.fromString(R))};class OtherName{constructor(R={}){this.typeId="";this.value=new ArrayBuffer(0);Object.assign(this,R)}}pe.OtherName=OtherName;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],OtherName.prototype,"typeId",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:0})],OtherName.prototype,"value",void 0);class EDIPartyName{constructor(R={}){this.partyName=new me.DirectoryString;Object.assign(this,R)}}pe.EDIPartyName=EDIPartyName;he.__decorate([(0,ge.AsnProp)({type:me.DirectoryString,optional:true,context:0,implicit:true})],EDIPartyName.prototype,"nameAssigner",void 0);he.__decorate([(0,ge.AsnProp)({type:me.DirectoryString,context:1,implicit:true})],EDIPartyName.prototype,"partyName",void 0);let ve=class GeneralName{constructor(R={}){Object.assign(this,R)}};pe.GeneralName=ve;he.__decorate([(0,ge.AsnProp)({type:OtherName,context:0,implicit:true})],ve.prototype,"otherName",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.IA5String,context:1,implicit:true})],ve.prototype,"rfc822Name",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.IA5String,context:2,implicit:true})],ve.prototype,"dNSName",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:3,implicit:true})],ve.prototype,"x400Address",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Name,context:4,implicit:false})],ve.prototype,"directoryName",void 0);he.__decorate([(0,ge.AsnProp)({type:EDIPartyName,context:5})],ve.prototype,"ediPartyName",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.IA5String,context:6,implicit:true})],ve.prototype,"uniformResourceIdentifier",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.OctetString,context:7,implicit:true,converter:pe.AsnIpConverter})],ve.prototype,"iPAddress",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier,context:8,implicit:true})],ve.prototype,"registeredID",void 0);pe.GeneralName=ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve)},13201:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralNames=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(83670);const ve=Ae(53499);let be=he=class GeneralNames extends ve.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.GeneralNames=be;pe.GeneralNames=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.GeneralName})],be)},82288:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(56457),pe);he.__exportStar(Ae(38266),pe);he.__exportStar(Ae(2171),pe);he.__exportStar(Ae(25974),pe);he.__exportStar(Ae(13554),pe);he.__exportStar(Ae(77908),pe);he.__exportStar(Ae(83670),pe);he.__exportStar(Ae(13201),pe);he.__exportStar(Ae(17429),pe);he.__exportStar(Ae(70725),pe);he.__exportStar(Ae(94003),pe);he.__exportStar(Ae(13113),pe);he.__exportStar(Ae(49117),pe);he.__exportStar(Ae(1768),pe);he.__exportStar(Ae(82826),pe);he.__exportStar(Ae(40758),pe)},621:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IpConverter=void 0;const he=Ae(37263);const ge=Ae(22420);class IpConverter{static decodeIP(R){if(R.length===64&&parseInt(R,16)===0){return"::/0"}if(R.length!==16){return R}const pe=parseInt(R.slice(8),16).toString(2).split("").reduce(((R,pe)=>R+ +pe),0);let Ae=R.slice(0,8).replace(/(.{2})/g,(R=>`${parseInt(R,16)}.`));Ae=Ae.slice(0,-1);return`${Ae}/${pe}`}static toString(R){if(R.byteLength===4||R.byteLength===16){const pe=new Uint8Array(R);const Ae=he.fromByteArray(Array.from(pe));return Ae.toString()}return this.decodeIP(ge.Convert.ToHex(R))}static fromString(R){const pe=he.parse(R);return new Uint8Array(pe.toByteArray()).buffer}}pe.IpConverter=IpConverter},17429:(R,pe,Ae)=>{"use strict";var he,ge,ye;Object.defineProperty(pe,"__esModule",{value:true});pe.Name=pe.RDNSequence=pe.RelativeDistinguishedName=pe.AttributeTypeAndValue=pe.AttributeValue=pe.DirectoryString=void 0;const me=Ae(4351);const ve=Ae(53499);const be=Ae(22420);let Ee=class DirectoryString{constructor(R={}){Object.assign(this,R)}toString(){return this.bmpString||this.printableString||this.teletexString||this.universalString||this.utf8String||""}};pe.DirectoryString=Ee;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.TeletexString})],Ee.prototype,"teletexString",void 0);me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.PrintableString})],Ee.prototype,"printableString",void 0);me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.UniversalString})],Ee.prototype,"universalString",void 0);me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.Utf8String})],Ee.prototype,"utf8String",void 0);me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.BmpString})],Ee.prototype,"bmpString",void 0);pe.DirectoryString=Ee=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Ee);let Ce=class AttributeValue extends Ee{constructor(R={}){super(R);Object.assign(this,R)}toString(){return this.ia5String||(this.anyValue?be.Convert.ToHex(this.anyValue):super.toString())}};pe.AttributeValue=Ce;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.IA5String})],Ce.prototype,"ia5String",void 0);me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.Any})],Ce.prototype,"anyValue",void 0);pe.AttributeValue=Ce=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Ce);class AttributeTypeAndValue{constructor(R={}){this.type="";this.value=new Ce;Object.assign(this,R)}}pe.AttributeTypeAndValue=AttributeTypeAndValue;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.ObjectIdentifier})],AttributeTypeAndValue.prototype,"type",void 0);me.__decorate([(0,ve.AsnProp)({type:Ce})],AttributeTypeAndValue.prototype,"value",void 0);let we=he=class RelativeDistinguishedName extends ve.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.RelativeDistinguishedName=we;pe.RelativeDistinguishedName=we=he=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Set,itemType:AttributeTypeAndValue})],we);let _e=ge=class RDNSequence extends ve.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,ge.prototype)}};pe.RDNSequence=_e;pe.RDNSequence=_e=ge=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence,itemType:we})],_e);let Ie=ye=class Name extends _e{constructor(R){super(R);Object.setPrototypeOf(this,ye.prototype)}};pe.Name=Ie;pe.Name=Ie=ye=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Ie)},70725:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_ce=pe.id_ad_caRepository=pe.id_ad_timeStamping=pe.id_ad_caIssuers=pe.id_ad_ocsp=pe.id_qt_unotice=pe.id_qt_csp=pe.id_ad=pe.id_kp=pe.id_qt=pe.id_pe=pe.id_pkix=void 0;pe.id_pkix="1.3.6.1.5.5.7";pe.id_pe=`${pe.id_pkix}.1`;pe.id_qt=`${pe.id_pkix}.2`;pe.id_kp=`${pe.id_pkix}.3`;pe.id_ad=`${pe.id_pkix}.48`;pe.id_qt_csp=`${pe.id_qt}.1`;pe.id_qt_unotice=`${pe.id_qt}.2`;pe.id_ad_ocsp=`${pe.id_ad}.1`;pe.id_ad_caIssuers=`${pe.id_ad}.2`;pe.id_ad_timeStamping=`${pe.id_ad}.3`;pe.id_ad_caRepository=`${pe.id_ad}.5`;pe.id_ce="2.5.29"},94003:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SubjectPublicKeyInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38266);class SubjectPublicKeyInfo{constructor(R={}){this.algorithm=new ye.AlgorithmIdentifier;this.subjectPublicKey=new ArrayBuffer(0);Object.assign(this,R)}}pe.SubjectPublicKeyInfo=SubjectPublicKeyInfo;he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],SubjectPublicKeyInfo.prototype,"algorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],SubjectPublicKeyInfo.prototype,"subjectPublicKey",void 0)},13113:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TBSCertList=pe.RevokedCertificate=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38266);const me=Ae(17429);const ve=Ae(1768);const be=Ae(77908);class RevokedCertificate{constructor(R={}){this.userCertificate=new ArrayBuffer(0);this.revocationDate=new ve.Time;Object.assign(this,R)}}pe.RevokedCertificate=RevokedCertificate;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RevokedCertificate.prototype,"userCertificate",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.Time})],RevokedCertificate.prototype,"revocationDate",void 0);he.__decorate([(0,ge.AsnProp)({type:be.Extension,optional:true,repeated:"sequence"})],RevokedCertificate.prototype,"crlEntryExtensions",void 0);class TBSCertList{constructor(R={}){this.signature=new ye.AlgorithmIdentifier;this.issuer=new me.Name;this.thisUpdate=new ve.Time;Object.assign(this,R)}}pe.TBSCertList=TBSCertList;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,optional:true})],TBSCertList.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],TBSCertList.prototype,"signature",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Name})],TBSCertList.prototype,"issuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.Time})],TBSCertList.prototype,"thisUpdate",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.Time,optional:true})],TBSCertList.prototype,"nextUpdate",void 0);he.__decorate([(0,ge.AsnProp)({type:RevokedCertificate,repeated:"sequence",optional:true})],TBSCertList.prototype,"revokedCertificates",void 0);he.__decorate([(0,ge.AsnProp)({type:be.Extension,optional:true,context:0,repeated:"sequence"})],TBSCertList.prototype,"crlExtensions",void 0)},49117:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TBSCertificate=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38266);const me=Ae(17429);const ve=Ae(94003);const be=Ae(40758);const Ee=Ae(77908);const Ce=Ae(82826);class TBSCertificate{constructor(R={}){this.version=Ce.Version.v1;this.serialNumber=new ArrayBuffer(0);this.signature=new ye.AlgorithmIdentifier;this.issuer=new me.Name;this.validity=new be.Validity;this.subject=new me.Name;this.subjectPublicKeyInfo=new ve.SubjectPublicKeyInfo;Object.assign(this,R)}}pe.TBSCertificate=TBSCertificate;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:0,defaultValue:Ce.Version.v1})],TBSCertificate.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],TBSCertificate.prototype,"serialNumber",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],TBSCertificate.prototype,"signature",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Name})],TBSCertificate.prototype,"issuer",void 0);he.__decorate([(0,ge.AsnProp)({type:be.Validity})],TBSCertificate.prototype,"validity",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Name})],TBSCertificate.prototype,"subject",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.SubjectPublicKeyInfo})],TBSCertificate.prototype,"subjectPublicKeyInfo",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString,context:1,implicit:true,optional:true})],TBSCertificate.prototype,"issuerUniqueID",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString,context:2,implicit:true,optional:true})],TBSCertificate.prototype,"subjectUniqueID",void 0);he.__decorate([(0,ge.AsnProp)({type:Ee.Extensions,context:3,optional:true})],TBSCertificate.prototype,"extensions",void 0)},1768:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Time=void 0;const he=Ae(4351);const ge=Ae(53499);let ye=class Time{constructor(R){if(R){if(typeof R==="string"||typeof R==="number"||R instanceof Date){const pe=new Date(R);if(pe.getUTCFullYear()>2049){this.generalTime=pe}else{this.utcTime=pe}}else{Object.assign(this,R)}}}getTime(){const R=this.utcTime||this.generalTime;if(!R){throw new Error("Cannot get time from CHOICE object")}return R}};pe.Time=ye;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.UTCTime})],ye.prototype,"utcTime",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime})],ye.prototype,"generalTime",void 0);pe.Time=ye=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ye)},82826:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Version=void 0;var Ae;(function(R){R[R["v1"]=0]="v1";R[R["v2"]=1]="v2";R[R["v3"]=2]="v3"})(Ae||(pe.Version=Ae={}))},40758:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Validity=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(1768);class Validity{constructor(R){this.notBefore=new ye.Time(new Date);this.notAfter=new ye.Time(new Date);if(R){this.notBefore=new ye.Time(R.notBefore);this.notAfter=new ye.Time(R.notAfter)}}}pe.Validity=Validity;he.__decorate([(0,ge.AsnProp)({type:ye.Time})],Validity.prototype,"notBefore",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Time})],Validity.prototype,"notAfter",void 0)},82315:(R,pe,Ae)=>{"use strict"; +(()=>{var __webpack_modules__={87351:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;Object.defineProperty(R,he,{enumerable:true,get:function(){return pe[Ae]}})}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.issue=pe.issueCommand=void 0;const me=ye(Ae(22037));const ve=Ae(5278);function issueCommand(R,pe,Ae){const he=new Command(R,pe,Ae);process.stdout.write(he.toString()+me.EOL)}pe.issueCommand=issueCommand;function issue(R,pe=""){issueCommand(R,{},pe)}pe.issue=issue;const be="::";class Command{constructor(R,pe,Ae){if(!R){R="missing.command"}this.command=R;this.properties=pe;this.message=Ae}toString(){let R=be+this.command;if(this.properties&&Object.keys(this.properties).length>0){R+=" ";let pe=true;for(const Ae in this.properties){if(this.properties.hasOwnProperty(Ae)){const he=this.properties[Ae];if(he){if(pe){pe=false}else{R+=","}R+=`${Ae}=${escapeProperty(he)}`}}}}R+=`${be}${escapeData(this.message)}`;return R}}function escapeData(R){return ve.toCommandValue(R).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(R){return ve.toCommandValue(R).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},42186:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;Object.defineProperty(R,he,{enumerable:true,get:function(){return pe[Ae]}})}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getIDToken=pe.getState=pe.saveState=pe.group=pe.endGroup=pe.startGroup=pe.info=pe.notice=pe.warning=pe.error=pe.debug=pe.isDebug=pe.setFailed=pe.setCommandEcho=pe.setOutput=pe.getBooleanInput=pe.getMultilineInput=pe.getInput=pe.addPath=pe.setSecret=pe.exportVariable=pe.ExitCode=void 0;const ve=Ae(87351);const be=Ae(717);const Ee=Ae(5278);const we=ye(Ae(22037));const Ce=ye(Ae(71017));const _e=Ae(98041);var Ie;(function(R){R[R["Success"]=0]="Success";R[R["Failure"]=1]="Failure"})(Ie=pe.ExitCode||(pe.ExitCode={}));function exportVariable(R,pe){const Ae=Ee.toCommandValue(pe);process.env[R]=Ae;const he=process.env["GITHUB_ENV"]||"";if(he){return be.issueFileCommand("ENV",be.prepareKeyValueMessage(R,pe))}ve.issueCommand("set-env",{name:R},Ae)}pe.exportVariable=exportVariable;function setSecret(R){ve.issueCommand("add-mask",{},R)}pe.setSecret=setSecret;function addPath(R){const pe=process.env["GITHUB_PATH"]||"";if(pe){be.issueFileCommand("PATH",R)}else{ve.issueCommand("add-path",{},R)}process.env["PATH"]=`${R}${Ce.delimiter}${process.env["PATH"]}`}pe.addPath=addPath;function getInput(R,pe){const Ae=process.env[`INPUT_${R.replace(/ /g,"_").toUpperCase()}`]||"";if(pe&&pe.required&&!Ae){throw new Error(`Input required and not supplied: ${R}`)}if(pe&&pe.trimWhitespace===false){return Ae}return Ae.trim()}pe.getInput=getInput;function getMultilineInput(R,pe){const Ae=getInput(R,pe).split("\n").filter((R=>R!==""));if(pe&&pe.trimWhitespace===false){return Ae}return Ae.map((R=>R.trim()))}pe.getMultilineInput=getMultilineInput;function getBooleanInput(R,pe){const Ae=["true","True","TRUE"];const he=["false","False","FALSE"];const ge=getInput(R,pe);if(Ae.includes(ge))return true;if(he.includes(ge))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${R}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}pe.getBooleanInput=getBooleanInput;function setOutput(R,pe){const Ae=process.env["GITHUB_OUTPUT"]||"";if(Ae){return be.issueFileCommand("OUTPUT",be.prepareKeyValueMessage(R,pe))}process.stdout.write(we.EOL);ve.issueCommand("set-output",{name:R},Ee.toCommandValue(pe))}pe.setOutput=setOutput;function setCommandEcho(R){ve.issue("echo",R?"on":"off")}pe.setCommandEcho=setCommandEcho;function setFailed(R){process.exitCode=Ie.Failure;error(R)}pe.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}pe.isDebug=isDebug;function debug(R){ve.issueCommand("debug",{},R)}pe.debug=debug;function error(R,pe={}){ve.issueCommand("error",Ee.toCommandProperties(pe),R instanceof Error?R.toString():R)}pe.error=error;function warning(R,pe={}){ve.issueCommand("warning",Ee.toCommandProperties(pe),R instanceof Error?R.toString():R)}pe.warning=warning;function notice(R,pe={}){ve.issueCommand("notice",Ee.toCommandProperties(pe),R instanceof Error?R.toString():R)}pe.notice=notice;function info(R){process.stdout.write(R+we.EOL)}pe.info=info;function startGroup(R){ve.issue("group",R)}pe.startGroup=startGroup;function endGroup(){ve.issue("endgroup")}pe.endGroup=endGroup;function group(R,pe){return me(this,void 0,void 0,(function*(){startGroup(R);let Ae;try{Ae=yield pe()}finally{endGroup()}return Ae}))}pe.group=group;function saveState(R,pe){const Ae=process.env["GITHUB_STATE"]||"";if(Ae){return be.issueFileCommand("STATE",be.prepareKeyValueMessage(R,pe))}ve.issueCommand("save-state",{name:R},Ee.toCommandValue(pe))}pe.saveState=saveState;function getState(R){return process.env[`STATE_${R}`]||""}pe.getState=getState;function getIDToken(R){return me(this,void 0,void 0,(function*(){return yield _e.OidcClient.getIDToken(R)}))}pe.getIDToken=getIDToken;var Se=Ae(81327);Object.defineProperty(pe,"summary",{enumerable:true,get:function(){return Se.summary}});var Be=Ae(81327);Object.defineProperty(pe,"markdownSummary",{enumerable:true,get:function(){return Be.markdownSummary}});var ke=Ae(2981);Object.defineProperty(pe,"toPosixPath",{enumerable:true,get:function(){return ke.toPosixPath}});Object.defineProperty(pe,"toWin32Path",{enumerable:true,get:function(){return ke.toWin32Path}});Object.defineProperty(pe,"toPlatformPath",{enumerable:true,get:function(){return ke.toPlatformPath}})},717:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;Object.defineProperty(R,he,{enumerable:true,get:function(){return pe[Ae]}})}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.prepareKeyValueMessage=pe.issueFileCommand=void 0;const me=ye(Ae(57147));const ve=ye(Ae(22037));const be=Ae(78974);const Ee=Ae(5278);function issueFileCommand(R,pe){const Ae=process.env[`GITHUB_${R}`];if(!Ae){throw new Error(`Unable to find environment variable for file command ${R}`)}if(!me.existsSync(Ae)){throw new Error(`Missing file at path: ${Ae}`)}me.appendFileSync(Ae,`${Ee.toCommandValue(pe)}${ve.EOL}`,{encoding:"utf8"})}pe.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(R,pe){const Ae=`ghadelimiter_${be.v4()}`;const he=Ee.toCommandValue(pe);if(R.includes(Ae)){throw new Error(`Unexpected input: name should not contain the delimiter "${Ae}"`)}if(he.includes(Ae)){throw new Error(`Unexpected input: value should not contain the delimiter "${Ae}"`)}return`${R}<<${Ae}${ve.EOL}${he}${ve.EOL}${Ae}`}pe.prepareKeyValueMessage=prepareKeyValueMessage},98041:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.OidcClient=void 0;const ge=Ae(96255);const ye=Ae(35526);const me=Ae(42186);class OidcClient{static createHttpClient(R=true,pe=10){const Ae={allowRetries:R,maxRetries:pe};return new ge.HttpClient("actions/oidc-client",[new ye.BearerCredentialHandler(OidcClient.getRequestToken())],Ae)}static getRequestToken(){const R=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!R){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return R}static getIDTokenUrl(){const R=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!R){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return R}static getCall(R){var pe;return he(this,void 0,void 0,(function*(){const Ae=OidcClient.createHttpClient();const he=yield Ae.getJson(R).catch((R=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${R.statusCode}\n \n Error Message: ${R.message}`)}));const ge=(pe=he.result)===null||pe===void 0?void 0:pe.value;if(!ge){throw new Error("Response json body do not have ID Token field")}return ge}))}static getIDToken(R){return he(this,void 0,void 0,(function*(){try{let pe=OidcClient.getIDTokenUrl();if(R){const Ae=encodeURIComponent(R);pe=`${pe}&audience=${Ae}`}me.debug(`ID token url is ${pe}`);const Ae=yield OidcClient.getCall(pe);me.setSecret(Ae);return Ae}catch(R){throw new Error(`Error message: ${R.message}`)}}))}}pe.OidcClient=OidcClient},2981:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;Object.defineProperty(R,he,{enumerable:true,get:function(){return pe[Ae]}})}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.toPlatformPath=pe.toWin32Path=pe.toPosixPath=void 0;const me=ye(Ae(71017));function toPosixPath(R){return R.replace(/[\\]/g,"/")}pe.toPosixPath=toPosixPath;function toWin32Path(R){return R.replace(/[/]/g,"\\")}pe.toWin32Path=toWin32Path;function toPlatformPath(R){return R.replace(/[/\\]/g,me.sep)}pe.toPlatformPath=toPlatformPath},81327:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.summary=pe.markdownSummary=pe.SUMMARY_DOCS_URL=pe.SUMMARY_ENV_VAR=void 0;const ge=Ae(22037);const ye=Ae(57147);const{access:me,appendFile:ve,writeFile:be}=ye.promises;pe.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";pe.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 he(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const R=process.env[pe.SUMMARY_ENV_VAR];if(!R){throw new Error(`Unable to find environment variable for $${pe.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield me(R,ye.constants.R_OK|ye.constants.W_OK)}catch(pe){throw new Error(`Unable to access summary file: '${R}'. Check if the file has correct read/write permissions.`)}this._filePath=R;return this._filePath}))}wrap(R,pe,Ae={}){const he=Object.entries(Ae).map((([R,pe])=>` ${R}="${pe}"`)).join("");if(!pe){return`<${R}${he}>`}return`<${R}${he}>${pe}`}write(R){return he(this,void 0,void 0,(function*(){const pe=!!(R===null||R===void 0?void 0:R.overwrite);const Ae=yield this.filePath();const he=pe?be:ve;yield he(Ae,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return he(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(R,pe=false){this._buffer+=R;return pe?this.addEOL():this}addEOL(){return this.addRaw(ge.EOL)}addCodeBlock(R,pe){const Ae=Object.assign({},pe&&{lang:pe});const he=this.wrap("pre",this.wrap("code",R),Ae);return this.addRaw(he).addEOL()}addList(R,pe=false){const Ae=pe?"ol":"ul";const he=R.map((R=>this.wrap("li",R))).join("");const ge=this.wrap(Ae,he);return this.addRaw(ge).addEOL()}addTable(R){const pe=R.map((R=>{const pe=R.map((R=>{if(typeof R==="string"){return this.wrap("td",R)}const{header:pe,data:Ae,colspan:he,rowspan:ge}=R;const ye=pe?"th":"td";const me=Object.assign(Object.assign({},he&&{colspan:he}),ge&&{rowspan:ge});return this.wrap(ye,Ae,me)})).join("");return this.wrap("tr",pe)})).join("");const Ae=this.wrap("table",pe);return this.addRaw(Ae).addEOL()}addDetails(R,pe){const Ae=this.wrap("details",this.wrap("summary",R)+pe);return this.addRaw(Ae).addEOL()}addImage(R,pe,Ae){const{width:he,height:ge}=Ae||{};const ye=Object.assign(Object.assign({},he&&{width:he}),ge&&{height:ge});const me=this.wrap("img",null,Object.assign({src:R,alt:pe},ye));return this.addRaw(me).addEOL()}addHeading(R,pe){const Ae=`h${pe}`;const he=["h1","h2","h3","h4","h5","h6"].includes(Ae)?Ae:"h1";const ge=this.wrap(he,R);return this.addRaw(ge).addEOL()}addSeparator(){const R=this.wrap("hr",null);return this.addRaw(R).addEOL()}addBreak(){const R=this.wrap("br",null);return this.addRaw(R).addEOL()}addQuote(R,pe){const Ae=Object.assign({},pe&&{cite:pe});const he=this.wrap("blockquote",R,Ae);return this.addRaw(he).addEOL()}addLink(R,pe){const Ae=this.wrap("a",R,{href:pe});return this.addRaw(Ae).addEOL()}}const Ee=new Summary;pe.markdownSummary=Ee;pe.summary=Ee},5278:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.toCommandProperties=pe.toCommandValue=void 0;function toCommandValue(R){if(R===null||R===undefined){return""}else if(typeof R==="string"||R instanceof String){return R}return JSON.stringify(R)}pe.toCommandValue=toCommandValue;function toCommandProperties(R){if(!Object.keys(R).length){return{}}return{title:R.title,file:R.file,line:R.startLine,endLine:R.endLine,col:R.startColumn,endColumn:R.endColumn}}pe.toCommandProperties=toCommandProperties},78974:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});Object.defineProperty(pe,"v1",{enumerable:true,get:function(){return he.default}});Object.defineProperty(pe,"v3",{enumerable:true,get:function(){return ge.default}});Object.defineProperty(pe,"v4",{enumerable:true,get:function(){return ye.default}});Object.defineProperty(pe,"v5",{enumerable:true,get:function(){return me.default}});Object.defineProperty(pe,"NIL",{enumerable:true,get:function(){return ve.default}});Object.defineProperty(pe,"version",{enumerable:true,get:function(){return be.default}});Object.defineProperty(pe,"validate",{enumerable:true,get:function(){return Ee.default}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return we.default}});Object.defineProperty(pe,"parse",{enumerable:true,get:function(){return Ce.default}});var he=_interopRequireDefault(Ae(81595));var ge=_interopRequireDefault(Ae(26993));var ye=_interopRequireDefault(Ae(51472));var me=_interopRequireDefault(Ae(16217));var ve=_interopRequireDefault(Ae(32381));var be=_interopRequireDefault(Ae(40427));var Ee=_interopRequireDefault(Ae(92609));var we=_interopRequireDefault(Ae(61458));var Ce=_interopRequireDefault(Ae(26385));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}},5842:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function md5(R){if(Array.isArray(R)){R=Buffer.from(R)}else if(typeof R==="string"){R=Buffer.from(R,"utf8")}return he.default.createHash("md5").update(R).digest()}var ge=md5;pe["default"]=ge},32381:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var Ae="00000000-0000-0000-0000-000000000000";pe["default"]=Ae},26385:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(92609));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function parse(R){if(!(0,he.default)(R)){throw TypeError("Invalid UUID")}let pe;const Ae=new Uint8Array(16);Ae[0]=(pe=parseInt(R.slice(0,8),16))>>>24;Ae[1]=pe>>>16&255;Ae[2]=pe>>>8&255;Ae[3]=pe&255;Ae[4]=(pe=parseInt(R.slice(9,13),16))>>>8;Ae[5]=pe&255;Ae[6]=(pe=parseInt(R.slice(14,18),16))>>>8;Ae[7]=pe&255;Ae[8]=(pe=parseInt(R.slice(19,23),16))>>>8;Ae[9]=pe&255;Ae[10]=(pe=parseInt(R.slice(24,36),16))/1099511627776&255;Ae[11]=pe/4294967296&255;Ae[12]=pe>>>24&255;Ae[13]=pe>>>16&255;Ae[14]=pe>>>8&255;Ae[15]=pe&255;return Ae}var ge=parse;pe["default"]=ge},86230:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var Ae=/^(?:[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;pe["default"]=Ae},9784:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=rng;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ge=new Uint8Array(256);let ye=ge.length;function rng(){if(ye>ge.length-16){he.default.randomFillSync(ge);ye=0}return ge.slice(ye,ye+=16)}},38844:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function sha1(R){if(Array.isArray(R)){R=Buffer.from(R)}else if(typeof R==="string"){R=Buffer.from(R,"utf8")}return he.default.createHash("sha1").update(R).digest()}var ge=sha1;pe["default"]=ge},61458:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(92609));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ge=[];for(let R=0;R<256;++R){ge.push((R+256).toString(16).substr(1))}function stringify(R,pe=0){const Ae=(ge[R[pe+0]]+ge[R[pe+1]]+ge[R[pe+2]]+ge[R[pe+3]]+"-"+ge[R[pe+4]]+ge[R[pe+5]]+"-"+ge[R[pe+6]]+ge[R[pe+7]]+"-"+ge[R[pe+8]]+ge[R[pe+9]]+"-"+ge[R[pe+10]]+ge[R[pe+11]]+ge[R[pe+12]]+ge[R[pe+13]]+ge[R[pe+14]]+ge[R[pe+15]]).toLowerCase();if(!(0,he.default)(Ae)){throw TypeError("Stringified UUID is invalid")}return Ae}var ye=stringify;pe["default"]=ye},81595:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(9784));var ge=_interopRequireDefault(Ae(61458));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}let ye;let me;let ve=0;let be=0;function v1(R,pe,Ae){let Ee=pe&&Ae||0;const we=pe||new Array(16);R=R||{};let Ce=R.node||ye;let _e=R.clockseq!==undefined?R.clockseq:me;if(Ce==null||_e==null){const pe=R.random||(R.rng||he.default)();if(Ce==null){Ce=ye=[pe[0]|1,pe[1],pe[2],pe[3],pe[4],pe[5]]}if(_e==null){_e=me=(pe[6]<<8|pe[7])&16383}}let Ie=R.msecs!==undefined?R.msecs:Date.now();let Se=R.nsecs!==undefined?R.nsecs:be+1;const Be=Ie-ve+(Se-be)/1e4;if(Be<0&&R.clockseq===undefined){_e=_e+1&16383}if((Be<0||Ie>ve)&&R.nsecs===undefined){Se=0}if(Se>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}ve=Ie;be=Se;me=_e;Ie+=122192928e5;const ke=((Ie&268435455)*1e4+Se)%4294967296;we[Ee++]=ke>>>24&255;we[Ee++]=ke>>>16&255;we[Ee++]=ke>>>8&255;we[Ee++]=ke&255;const Oe=Ie/4294967296*1e4&268435455;we[Ee++]=Oe>>>8&255;we[Ee++]=Oe&255;we[Ee++]=Oe>>>24&15|16;we[Ee++]=Oe>>>16&255;we[Ee++]=_e>>>8|128;we[Ee++]=_e&255;for(let R=0;R<6;++R){we[Ee+R]=Ce[R]}return pe||(0,ge.default)(we)}var Ee=v1;pe["default"]=Ee},26993:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(65920));var ge=_interopRequireDefault(Ae(5842));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ye=(0,he.default)("v3",48,ge.default);var me=ye;pe["default"]=me},65920:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=_default;pe.URL=pe.DNS=void 0;var he=_interopRequireDefault(Ae(61458));var ge=_interopRequireDefault(Ae(26385));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function stringToBytes(R){R=unescape(encodeURIComponent(R));const pe=[];for(let Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(9784));var ge=_interopRequireDefault(Ae(61458));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function v4(R,pe,Ae){R=R||{};const ye=R.random||(R.rng||he.default)();ye[6]=ye[6]&15|64;ye[8]=ye[8]&63|128;if(pe){Ae=Ae||0;for(let R=0;R<16;++R){pe[Ae+R]=ye[R]}return pe}return(0,ge.default)(ye)}var ye=v4;pe["default"]=ye},16217:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(65920));var ge=_interopRequireDefault(Ae(38844));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ye=(0,he.default)("v5",80,ge.default);var me=ye;pe["default"]=me},92609:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(86230));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function validate(R){return typeof R==="string"&&he.default.test(R)}var ge=validate;pe["default"]=ge},40427:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(92609));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function version(R){if(!(0,he.default)(R)){throw TypeError("Invalid UUID")}return parseInt(R.substr(14,1),16)}var ge=version;pe["default"]=ge},35526:function(R,pe){"use strict";var Ae=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.PersonalAccessTokenCredentialHandler=pe.BearerCredentialHandler=pe.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(R,pe){this.username=R;this.password=pe}prepareRequest(R){if(!R.headers){throw Error("The request has no headers")}R.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return Ae(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}pe.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(R){this.token=R}prepareRequest(R){if(!R.headers){throw Error("The request has no headers")}R.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return Ae(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}pe.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(R){this.token=R}prepareRequest(R){if(!R.headers){throw Error("The request has no headers")}R.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return Ae(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}pe.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},96255:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.HttpClient=pe.isHttps=pe.HttpClientResponse=pe.HttpClientError=pe.getProxyUrl=pe.MediaTypes=pe.Headers=pe.HttpCodes=void 0;const ve=ye(Ae(13685));const be=ye(Ae(95687));const Ee=ye(Ae(19835));const we=ye(Ae(74294));const Ce=Ae(41773);var _e;(function(R){R[R["OK"]=200]="OK";R[R["MultipleChoices"]=300]="MultipleChoices";R[R["MovedPermanently"]=301]="MovedPermanently";R[R["ResourceMoved"]=302]="ResourceMoved";R[R["SeeOther"]=303]="SeeOther";R[R["NotModified"]=304]="NotModified";R[R["UseProxy"]=305]="UseProxy";R[R["SwitchProxy"]=306]="SwitchProxy";R[R["TemporaryRedirect"]=307]="TemporaryRedirect";R[R["PermanentRedirect"]=308]="PermanentRedirect";R[R["BadRequest"]=400]="BadRequest";R[R["Unauthorized"]=401]="Unauthorized";R[R["PaymentRequired"]=402]="PaymentRequired";R[R["Forbidden"]=403]="Forbidden";R[R["NotFound"]=404]="NotFound";R[R["MethodNotAllowed"]=405]="MethodNotAllowed";R[R["NotAcceptable"]=406]="NotAcceptable";R[R["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";R[R["RequestTimeout"]=408]="RequestTimeout";R[R["Conflict"]=409]="Conflict";R[R["Gone"]=410]="Gone";R[R["TooManyRequests"]=429]="TooManyRequests";R[R["InternalServerError"]=500]="InternalServerError";R[R["NotImplemented"]=501]="NotImplemented";R[R["BadGateway"]=502]="BadGateway";R[R["ServiceUnavailable"]=503]="ServiceUnavailable";R[R["GatewayTimeout"]=504]="GatewayTimeout"})(_e||(pe.HttpCodes=_e={}));var Ie;(function(R){R["Accept"]="accept";R["ContentType"]="content-type"})(Ie||(pe.Headers=Ie={}));var Se;(function(R){R["ApplicationJson"]="application/json"})(Se||(pe.MediaTypes=Se={}));function getProxyUrl(R){const pe=Ee.getProxyUrl(new URL(R));return pe?pe.href:""}pe.getProxyUrl=getProxyUrl;const Be=[_e.MovedPermanently,_e.ResourceMoved,_e.SeeOther,_e.TemporaryRedirect,_e.PermanentRedirect];const ke=[_e.BadGateway,_e.ServiceUnavailable,_e.GatewayTimeout];const Oe=["OPTIONS","GET","DELETE","HEAD"];const Re=10;const Qe=5;class HttpClientError extends Error{constructor(R,pe){super(R);this.name="HttpClientError";this.statusCode=pe;Object.setPrototypeOf(this,HttpClientError.prototype)}}pe.HttpClientError=HttpClientError;class HttpClientResponse{constructor(R){this.message=R}readBody(){return me(this,void 0,void 0,(function*(){return new Promise((R=>me(this,void 0,void 0,(function*(){let pe=Buffer.alloc(0);this.message.on("data",(R=>{pe=Buffer.concat([pe,R])}));this.message.on("end",(()=>{R(pe.toString())}))}))))}))}readBodyBuffer(){return me(this,void 0,void 0,(function*(){return new Promise((R=>me(this,void 0,void 0,(function*(){const pe=[];this.message.on("data",(R=>{pe.push(R)}));this.message.on("end",(()=>{R(Buffer.concat(pe))}))}))))}))}}pe.HttpClientResponse=HttpClientResponse;function isHttps(R){const pe=new URL(R);return pe.protocol==="https:"}pe.isHttps=isHttps;class HttpClient{constructor(R,pe,Ae){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=R;this.handlers=pe||[];this.requestOptions=Ae;if(Ae){if(Ae.ignoreSslError!=null){this._ignoreSslError=Ae.ignoreSslError}this._socketTimeout=Ae.socketTimeout;if(Ae.allowRedirects!=null){this._allowRedirects=Ae.allowRedirects}if(Ae.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=Ae.allowRedirectDowngrade}if(Ae.maxRedirects!=null){this._maxRedirects=Math.max(Ae.maxRedirects,0)}if(Ae.keepAlive!=null){this._keepAlive=Ae.keepAlive}if(Ae.allowRetries!=null){this._allowRetries=Ae.allowRetries}if(Ae.maxRetries!=null){this._maxRetries=Ae.maxRetries}}}options(R,pe){return me(this,void 0,void 0,(function*(){return this.request("OPTIONS",R,null,pe||{})}))}get(R,pe){return me(this,void 0,void 0,(function*(){return this.request("GET",R,null,pe||{})}))}del(R,pe){return me(this,void 0,void 0,(function*(){return this.request("DELETE",R,null,pe||{})}))}post(R,pe,Ae){return me(this,void 0,void 0,(function*(){return this.request("POST",R,pe,Ae||{})}))}patch(R,pe,Ae){return me(this,void 0,void 0,(function*(){return this.request("PATCH",R,pe,Ae||{})}))}put(R,pe,Ae){return me(this,void 0,void 0,(function*(){return this.request("PUT",R,pe,Ae||{})}))}head(R,pe){return me(this,void 0,void 0,(function*(){return this.request("HEAD",R,null,pe||{})}))}sendStream(R,pe,Ae,he){return me(this,void 0,void 0,(function*(){return this.request(R,pe,Ae,he)}))}getJson(R,pe={}){return me(this,void 0,void 0,(function*(){pe[Ie.Accept]=this._getExistingOrDefaultHeader(pe,Ie.Accept,Se.ApplicationJson);const Ae=yield this.get(R,pe);return this._processResponse(Ae,this.requestOptions)}))}postJson(R,pe,Ae={}){return me(this,void 0,void 0,(function*(){const he=JSON.stringify(pe,null,2);Ae[Ie.Accept]=this._getExistingOrDefaultHeader(Ae,Ie.Accept,Se.ApplicationJson);Ae[Ie.ContentType]=this._getExistingOrDefaultHeader(Ae,Ie.ContentType,Se.ApplicationJson);const ge=yield this.post(R,he,Ae);return this._processResponse(ge,this.requestOptions)}))}putJson(R,pe,Ae={}){return me(this,void 0,void 0,(function*(){const he=JSON.stringify(pe,null,2);Ae[Ie.Accept]=this._getExistingOrDefaultHeader(Ae,Ie.Accept,Se.ApplicationJson);Ae[Ie.ContentType]=this._getExistingOrDefaultHeader(Ae,Ie.ContentType,Se.ApplicationJson);const ge=yield this.put(R,he,Ae);return this._processResponse(ge,this.requestOptions)}))}patchJson(R,pe,Ae={}){return me(this,void 0,void 0,(function*(){const he=JSON.stringify(pe,null,2);Ae[Ie.Accept]=this._getExistingOrDefaultHeader(Ae,Ie.Accept,Se.ApplicationJson);Ae[Ie.ContentType]=this._getExistingOrDefaultHeader(Ae,Ie.ContentType,Se.ApplicationJson);const ge=yield this.patch(R,he,Ae);return this._processResponse(ge,this.requestOptions)}))}request(R,pe,Ae,he){return me(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const ge=new URL(pe);let ye=this._prepareRequest(R,ge,he);const me=this._allowRetries&&Oe.includes(R)?this._maxRetries+1:1;let ve=0;let be;do{be=yield this.requestRaw(ye,Ae);if(be&&be.message&&be.message.statusCode===_e.Unauthorized){let R;for(const pe of this.handlers){if(pe.canHandleAuthentication(be)){R=pe;break}}if(R){return R.handleAuthentication(this,ye,Ae)}else{return be}}let pe=this._maxRedirects;while(be.message.statusCode&&Be.includes(be.message.statusCode)&&this._allowRedirects&&pe>0){const me=be.message.headers["location"];if(!me){break}const ve=new URL(me);if(ge.protocol==="https:"&&ge.protocol!==ve.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 be.readBody();if(ve.hostname!==ge.hostname){for(const R in he){if(R.toLowerCase()==="authorization"){delete he[R]}}}ye=this._prepareRequest(R,ve,he);be=yield this.requestRaw(ye,Ae);pe--}if(!be.message.statusCode||!ke.includes(be.message.statusCode)){return be}ve+=1;if(ve{function callbackForResult(R,pe){if(R){he(R)}else if(!pe){he(new Error("Unknown error"))}else{Ae(pe)}}this.requestRawWithCallback(R,pe,callbackForResult)}))}))}requestRawWithCallback(R,pe,Ae){if(typeof pe==="string"){if(!R.options.headers){R.options.headers={}}R.options.headers["Content-Length"]=Buffer.byteLength(pe,"utf8")}let he=false;function handleResult(R,pe){if(!he){he=true;Ae(R,pe)}}const ge=R.httpModule.request(R.options,(R=>{const pe=new HttpClientResponse(R);handleResult(undefined,pe)}));let ye;ge.on("socket",(R=>{ye=R}));ge.setTimeout(this._socketTimeout||3*6e4,(()=>{if(ye){ye.end()}handleResult(new Error(`Request timeout: ${R.options.path}`))}));ge.on("error",(function(R){handleResult(R)}));if(pe&&typeof pe==="string"){ge.write(pe,"utf8")}if(pe&&typeof pe!=="string"){pe.on("close",(function(){ge.end()}));pe.pipe(ge)}else{ge.end()}}getAgent(R){const pe=new URL(R);return this._getAgent(pe)}getAgentDispatcher(R){const pe=new URL(R);const Ae=Ee.getProxyUrl(pe);const he=Ae&&Ae.hostname;if(!he){return}return this._getProxyAgentDispatcher(pe,Ae)}_prepareRequest(R,pe,Ae){const he={};he.parsedUrl=pe;const ge=he.parsedUrl.protocol==="https:";he.httpModule=ge?be:ve;const ye=ge?443:80;he.options={};he.options.host=he.parsedUrl.hostname;he.options.port=he.parsedUrl.port?parseInt(he.parsedUrl.port):ye;he.options.path=(he.parsedUrl.pathname||"")+(he.parsedUrl.search||"");he.options.method=R;he.options.headers=this._mergeHeaders(Ae);if(this.userAgent!=null){he.options.headers["user-agent"]=this.userAgent}he.options.agent=this._getAgent(he.parsedUrl);if(this.handlers){for(const R of this.handlers){R.prepareRequest(he.options)}}return he}_mergeHeaders(R){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(R||{}))}return lowercaseKeys(R||{})}_getExistingOrDefaultHeader(R,pe,Ae){let he;if(this.requestOptions&&this.requestOptions.headers){he=lowercaseKeys(this.requestOptions.headers)[pe]}return R[pe]||he||Ae}_getAgent(R){let pe;const Ae=Ee.getProxyUrl(R);const he=Ae&&Ae.hostname;if(this._keepAlive&&he){pe=this._proxyAgent}if(!he){pe=this._agent}if(pe){return pe}const ge=R.protocol==="https:";let ye=100;if(this.requestOptions){ye=this.requestOptions.maxSockets||ve.globalAgent.maxSockets}if(Ae&&Ae.hostname){const R={maxSockets:ye,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(Ae.username||Ae.password)&&{proxyAuth:`${Ae.username}:${Ae.password}`}),{host:Ae.hostname,port:Ae.port})};let he;const me=Ae.protocol==="https:";if(ge){he=me?we.httpsOverHttps:we.httpsOverHttp}else{he=me?we.httpOverHttps:we.httpOverHttp}pe=he(R);this._proxyAgent=pe}if(!pe){const R={keepAlive:this._keepAlive,maxSockets:ye};pe=ge?new be.Agent(R):new ve.Agent(R);this._agent=pe}if(ge&&this._ignoreSslError){pe.options=Object.assign(pe.options||{},{rejectUnauthorized:false})}return pe}_getProxyAgentDispatcher(R,pe){let Ae;if(this._keepAlive){Ae=this._proxyAgentDispatcher}if(Ae){return Ae}const he=R.protocol==="https:";Ae=new Ce.ProxyAgent(Object.assign({uri:pe.href,pipelining:!this._keepAlive?0:1},(pe.username||pe.password)&&{token:`${pe.username}:${pe.password}`}));this._proxyAgentDispatcher=Ae;if(he&&this._ignoreSslError){Ae.options=Object.assign(Ae.options.requestTls||{},{rejectUnauthorized:false})}return Ae}_performExponentialBackoff(R){return me(this,void 0,void 0,(function*(){R=Math.min(Re,R);const pe=Qe*Math.pow(2,R);return new Promise((R=>setTimeout((()=>R()),pe)))}))}_processResponse(R,pe){return me(this,void 0,void 0,(function*(){return new Promise(((Ae,he)=>me(this,void 0,void 0,(function*(){const ge=R.message.statusCode||0;const ye={statusCode:ge,result:null,headers:{}};if(ge===_e.NotFound){Ae(ye)}function dateTimeDeserializer(R,pe){if(typeof pe==="string"){const R=new Date(pe);if(!isNaN(R.valueOf())){return R}}return pe}let me;let ve;try{ve=yield R.readBody();if(ve&&ve.length>0){if(pe&&pe.deserializeDates){me=JSON.parse(ve,dateTimeDeserializer)}else{me=JSON.parse(ve)}ye.result=me}ye.headers=R.message.headers}catch(R){}if(ge>299){let R;if(me&&me.message){R=me.message}else if(ve&&ve.length>0){R=ve}else{R=`Failed request: (${ge})`}const pe=new HttpClientError(R,ge);pe.result=ye.result;he(pe)}else{Ae(ye)}}))))}))}}pe.HttpClient=HttpClient;const lowercaseKeys=R=>Object.keys(R).reduce(((pe,Ae)=>(pe[Ae.toLowerCase()]=R[Ae],pe)),{})},19835:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.checkBypass=pe.getProxyUrl=void 0;function getProxyUrl(R){const pe=R.protocol==="https:";if(checkBypass(R)){return undefined}const Ae=(()=>{if(pe){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(Ae){try{return new URL(Ae)}catch(R){if(!Ae.startsWith("http://")&&!Ae.startsWith("https://"))return new URL(`http://${Ae}`)}}else{return undefined}}pe.getProxyUrl=getProxyUrl;function checkBypass(R){if(!R.hostname){return false}const pe=R.hostname;if(isLoopbackAddress(pe)){return true}const Ae=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!Ae){return false}let he;if(R.port){he=Number(R.port)}else if(R.protocol==="http:"){he=80}else if(R.protocol==="https:"){he=443}const ge=[R.hostname.toUpperCase()];if(typeof he==="number"){ge.push(`${ge[0]}:${he}`)}for(const R of Ae.split(",").map((R=>R.trim().toUpperCase())).filter((R=>R))){if(R==="*"||ge.some((pe=>pe===R||pe.endsWith(`.${R}`)||R.startsWith(".")&&pe.endsWith(`${R}`)))){return true}}return false}pe.checkBypass=checkBypass;function isLoopbackAddress(R){const pe=R.toLowerCase();return pe==="localhost"||pe.startsWith("127.")||pe.startsWith("[::1]")||pe.startsWith("[0:0:0:0:0:0:0:1]")}},67284:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Attribute=void 0;const he=Ae(4351);const ge=Ae(53499);class Attribute{constructor(R={}){this.attrType="";this.attrValues=[];Object.assign(this,R)}}pe.Attribute=Attribute;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],Attribute.prototype,"attrType",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,repeated:"set"})],Attribute.prototype,"attrValues",void 0)},71061:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CounterSignature=pe.SigningTime=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(46959);let ve=class SigningTime extends ye.Time{};ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve);pe.SigningTime=ve;let be=class CounterSignature extends me.SignerInfo{};be=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Sequence})],be);pe.CounterSignature=be},1093:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.CertificateSet=pe.CertificateChoices=pe.OtherCertificateFormat=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(82288);const ve=Ae(64263);class OtherCertificateFormat{constructor(R={}){this.otherCertFormat="";this.otherCert=new ArrayBuffer(0);Object.assign(this,R)}}pe.OtherCertificateFormat=OtherCertificateFormat;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],OtherCertificateFormat.prototype,"otherCertFormat",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Any})],OtherCertificateFormat.prototype,"otherCert",void 0);let be=class CertificateChoices{constructor(R={}){Object.assign(this,R)}};pe.CertificateChoices=be;ge.__decorate([(0,ye.AsnProp)({type:me.Certificate})],be.prototype,"certificate",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.AttributeCertificate,context:2,implicit:true})],be.prototype,"v2AttrCert",void 0);ge.__decorate([(0,ye.AsnProp)({type:OtherCertificateFormat,context:3,implicit:true})],be.prototype,"other",void 0);pe.CertificateChoices=be=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],be);let Ee=he=class CertificateSet extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.CertificateSet=Ee;pe.CertificateSet=Ee=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:be})],Ee)},69207:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ContentInfo=void 0;const he=Ae(4351);const ge=Ae(53499);class ContentInfo{constructor(R={}){this.contentType="";this.content=new ArrayBuffer(0);Object.assign(this,R)}}pe.ContentInfo=ContentInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],ContentInfo.prototype,"contentType",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:0})],ContentInfo.prototype,"content",void 0)},21377:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncapsulatedContentInfo=pe.EncapsulatedContent=void 0;const he=Ae(4351);const ge=Ae(53499);let ye=class EncapsulatedContent{constructor(R={}){Object.assign(this,R)}};pe.EncapsulatedContent=ye;he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],ye.prototype,"single",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any})],ye.prototype,"any",void 0);pe.EncapsulatedContent=ye=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ye);class EncapsulatedContentInfo{constructor(R={}){this.eContentType="";Object.assign(this,R)}}pe.EncapsulatedContentInfo=EncapsulatedContentInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],EncapsulatedContentInfo.prototype,"eContentType",void 0);he.__decorate([(0,ge.AsnProp)({type:ye,context:0,optional:true})],EncapsulatedContentInfo.prototype,"eContent",void 0)},38800:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncryptedContentInfo=pe.EncryptedContent=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(67119);let me=class EncryptedContent{constructor(R={}){Object.assign(this,R)}};pe.EncryptedContent=me;he.__decorate([(0,ge.AsnProp)({type:ge.OctetString,context:0,implicit:true,optional:true})],me.prototype,"value",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString,converter:ge.AsnConstructedOctetStringConverter,context:0,implicit:true,optional:true,repeated:"sequence"})],me.prototype,"constructedValue",void 0);pe.EncryptedContent=me=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],me);class EncryptedContentInfo{constructor(R={}){this.contentType="";this.contentEncryptionAlgorithm=new ye.ContentEncryptionAlgorithmIdentifier;Object.assign(this,R)}}pe.EncryptedContentInfo=EncryptedContentInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],EncryptedContentInfo.prototype,"contentType",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.ContentEncryptionAlgorithmIdentifier})],EncryptedContentInfo.prototype,"contentEncryptionAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:me,optional:true})],EncryptedContentInfo.prototype,"encryptedContent",void 0)},33333:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.EnvelopedData=pe.UnprotectedAttributes=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(67119);const ve=Ae(67284);const be=Ae(64604);const Ee=Ae(42834);const we=Ae(38800);let Ce=he=class UnprotectedAttributes extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.UnprotectedAttributes=Ce;pe.UnprotectedAttributes=Ce=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:ve.Attribute})],Ce);class EnvelopedData{constructor(R={}){this.version=me.CMSVersion.v0;this.recipientInfos=new be.RecipientInfos;this.encryptedContentInfo=new we.EncryptedContentInfo;Object.assign(this,R)}}pe.EnvelopedData=EnvelopedData;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer})],EnvelopedData.prototype,"version",void 0);ge.__decorate([(0,ye.AsnProp)({type:Ee.OriginatorInfo,context:0,implicit:true,optional:true})],EnvelopedData.prototype,"originatorInfo",void 0);ge.__decorate([(0,ye.AsnProp)({type:be.RecipientInfos})],EnvelopedData.prototype,"recipientInfos",void 0);ge.__decorate([(0,ye.AsnProp)({type:we.EncryptedContentInfo})],EnvelopedData.prototype,"encryptedContentInfo",void 0);ge.__decorate([(0,ye.AsnProp)({type:Ce,context:1,implicit:true,optional:true})],EnvelopedData.prototype,"unprotectedAttrs",void 0)},19493:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(71061),pe);he.__exportStar(Ae(67284),pe);he.__exportStar(Ae(1093),pe);he.__exportStar(Ae(69207),pe);he.__exportStar(Ae(21377),pe);he.__exportStar(Ae(38800),pe);he.__exportStar(Ae(33333),pe);he.__exportStar(Ae(40995),pe);he.__exportStar(Ae(19614),pe);he.__exportStar(Ae(8479),pe);he.__exportStar(Ae(31666),pe);he.__exportStar(Ae(43027),pe);he.__exportStar(Ae(42834),pe);he.__exportStar(Ae(53059),pe);he.__exportStar(Ae(68084),pe);he.__exportStar(Ae(64604),pe);he.__exportStar(Ae(47678),pe);he.__exportStar(Ae(98895),pe);he.__exportStar(Ae(41200),pe);he.__exportStar(Ae(46959),pe);he.__exportStar(Ae(67119),pe)},40995:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IssuerAndSerialNumber=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class IssuerAndSerialNumber{constructor(R={}){this.issuer=new ye.Name;this.serialNumber=new ArrayBuffer(0);Object.assign(this,R)}}pe.IssuerAndSerialNumber=IssuerAndSerialNumber;he.__decorate([(0,ge.AsnProp)({type:ye.Name})],IssuerAndSerialNumber.prototype,"issuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],IssuerAndSerialNumber.prototype,"serialNumber",void 0)},19614:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.KEKRecipientInfo=pe.KEKIdentifier=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(35070);const me=Ae(67119);class KEKIdentifier{constructor(R={}){this.keyIdentifier=new ge.OctetString;Object.assign(this,R)}}pe.KEKIdentifier=KEKIdentifier;he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],KEKIdentifier.prototype,"keyIdentifier",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime,optional:true})],KEKIdentifier.prototype,"date",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.OtherKeyAttribute,optional:true})],KEKIdentifier.prototype,"other",void 0);class KEKRecipientInfo{constructor(R={}){this.version=me.CMSVersion.v4;this.kekid=new KEKIdentifier;this.keyEncryptionAlgorithm=new me.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new ge.OctetString;Object.assign(this,R)}}pe.KEKRecipientInfo=KEKRecipientInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],KEKRecipientInfo.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:KEKIdentifier})],KEKRecipientInfo.prototype,"kekid",void 0);he.__decorate([(0,ge.AsnProp)({type:me.KeyEncryptionAlgorithmIdentifier})],KEKRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],KEKRecipientInfo.prototype,"encryptedKey",void 0)},8479:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.KeyAgreeRecipientInfo=pe.OriginatorIdentifierOrKey=pe.OriginatorPublicKey=pe.RecipientEncryptedKeys=pe.RecipientEncryptedKey=pe.KeyAgreeRecipientIdentifier=pe.RecipientKeyIdentifier=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(67119);const ve=Ae(40995);const be=Ae(82288);const Ee=Ae(35070);class RecipientKeyIdentifier{constructor(R={}){this.subjectKeyIdentifier=new be.SubjectKeyIdentifier;Object.assign(this,R)}}pe.RecipientKeyIdentifier=RecipientKeyIdentifier;ge.__decorate([(0,ye.AsnProp)({type:be.SubjectKeyIdentifier})],RecipientKeyIdentifier.prototype,"subjectKeyIdentifier",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.GeneralizedTime,optional:true})],RecipientKeyIdentifier.prototype,"date",void 0);ge.__decorate([(0,ye.AsnProp)({type:Ee.OtherKeyAttribute,optional:true})],RecipientKeyIdentifier.prototype,"other",void 0);let we=class KeyAgreeRecipientIdentifier{constructor(R={}){Object.assign(this,R)}};pe.KeyAgreeRecipientIdentifier=we;ge.__decorate([(0,ye.AsnProp)({type:RecipientKeyIdentifier,context:0,implicit:true,optional:true})],we.prototype,"rKeyId",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.IssuerAndSerialNumber,optional:true})],we.prototype,"issuerAndSerialNumber",void 0);pe.KeyAgreeRecipientIdentifier=we=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],we);class RecipientEncryptedKey{constructor(R={}){this.rid=new we;this.encryptedKey=new ye.OctetString;Object.assign(this,R)}}pe.RecipientEncryptedKey=RecipientEncryptedKey;ge.__decorate([(0,ye.AsnProp)({type:we})],RecipientEncryptedKey.prototype,"rid",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.OctetString})],RecipientEncryptedKey.prototype,"encryptedKey",void 0);let Ce=he=class RecipientEncryptedKeys extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.RecipientEncryptedKeys=Ce;pe.RecipientEncryptedKeys=Ce=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:RecipientEncryptedKey})],Ce);class OriginatorPublicKey{constructor(R={}){this.algorithm=new be.AlgorithmIdentifier;this.publicKey=new ArrayBuffer(0);Object.assign(this,R)}}pe.OriginatorPublicKey=OriginatorPublicKey;ge.__decorate([(0,ye.AsnProp)({type:be.AlgorithmIdentifier})],OriginatorPublicKey.prototype,"algorithm",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.BitString})],OriginatorPublicKey.prototype,"publicKey",void 0);let _e=class OriginatorIdentifierOrKey{constructor(R={}){Object.assign(this,R)}};pe.OriginatorIdentifierOrKey=_e;ge.__decorate([(0,ye.AsnProp)({type:be.SubjectKeyIdentifier,context:0,implicit:true,optional:true})],_e.prototype,"subjectKeyIdentifier",void 0);ge.__decorate([(0,ye.AsnProp)({type:OriginatorPublicKey,context:1,implicit:true,optional:true})],_e.prototype,"originatorKey",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.IssuerAndSerialNumber,optional:true})],_e.prototype,"issuerAndSerialNumber",void 0);pe.OriginatorIdentifierOrKey=_e=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],_e);class KeyAgreeRecipientInfo{constructor(R={}){this.version=me.CMSVersion.v3;this.originator=new _e;this.keyEncryptionAlgorithm=new me.KeyEncryptionAlgorithmIdentifier;this.recipientEncryptedKeys=new Ce;Object.assign(this,R)}}pe.KeyAgreeRecipientInfo=KeyAgreeRecipientInfo;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer})],KeyAgreeRecipientInfo.prototype,"version",void 0);ge.__decorate([(0,ye.AsnProp)({type:_e,context:0})],KeyAgreeRecipientInfo.prototype,"originator",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.OctetString,context:1,optional:true})],KeyAgreeRecipientInfo.prototype,"ukm",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.KeyEncryptionAlgorithmIdentifier})],KeyAgreeRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);ge.__decorate([(0,ye.AsnProp)({type:Ce})],KeyAgreeRecipientInfo.prototype,"recipientEncryptedKeys",void 0)},31666:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.KeyTransRecipientInfo=pe.RecipientIdentifier=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(67119);const me=Ae(40995);const ve=Ae(82288);let be=class RecipientIdentifier{constructor(R={}){Object.assign(this,R)}};pe.RecipientIdentifier=be;he.__decorate([(0,ge.AsnProp)({type:ve.SubjectKeyIdentifier,context:0,implicit:true})],be.prototype,"subjectKeyIdentifier",void 0);he.__decorate([(0,ge.AsnProp)({type:me.IssuerAndSerialNumber})],be.prototype,"issuerAndSerialNumber",void 0);pe.RecipientIdentifier=be=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],be);class KeyTransRecipientInfo{constructor(R={}){this.version=ye.CMSVersion.v0;this.rid=new be;this.keyEncryptionAlgorithm=new ye.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new ge.OctetString;Object.assign(this,R)}}pe.KeyTransRecipientInfo=KeyTransRecipientInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],KeyTransRecipientInfo.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:be})],KeyTransRecipientInfo.prototype,"rid",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.KeyEncryptionAlgorithmIdentifier})],KeyTransRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],KeyTransRecipientInfo.prototype,"encryptedKey",void 0)},43027:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_authData=pe.id_encryptedData=pe.id_digestedData=pe.id_envelopedData=pe.id_signedData=pe.id_data=pe.id_ct_contentInfo=void 0;pe.id_ct_contentInfo="1.2.840.113549.1.9.16.1.6";pe.id_data="1.2.840.113549.1.7.1";pe.id_signedData="1.2.840.113549.1.7.2";pe.id_envelopedData="1.2.840.113549.1.7.3";pe.id_digestedData="1.2.840.113549.1.7.5";pe.id_encryptedData="1.2.840.113549.1.7.6";pe.id_authData="1.2.840.113549.1.9.16.1.2"},42834:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.OriginatorInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(1093);const me=Ae(47678);class OriginatorInfo{constructor(R={}){Object.assign(this,R)}}pe.OriginatorInfo=OriginatorInfo;he.__decorate([(0,ge.AsnProp)({type:ye.CertificateSet,context:0,implicit:true,optional:true})],OriginatorInfo.prototype,"certs",void 0);he.__decorate([(0,ge.AsnProp)({type:me.RevocationInfoChoices,context:1,implicit:true,optional:true})],OriginatorInfo.prototype,"crls",void 0)},35070:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.OtherKeyAttribute=void 0;const he=Ae(4351);const ge=Ae(53499);class OtherKeyAttribute{constructor(R={}){this.keyAttrId="";Object.assign(this,R)}}pe.OtherKeyAttribute=OtherKeyAttribute;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],OtherKeyAttribute.prototype,"keyAttrId",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,optional:true})],OtherKeyAttribute.prototype,"keyAttr",void 0)},53059:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PasswordRecipientInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(67119);class PasswordRecipientInfo{constructor(R={}){this.version=ye.CMSVersion.v0;this.keyEncryptionAlgorithm=new ye.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new ge.OctetString;Object.assign(this,R)}}pe.PasswordRecipientInfo=PasswordRecipientInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],PasswordRecipientInfo.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.KeyDerivationAlgorithmIdentifier,context:0,optional:true})],PasswordRecipientInfo.prototype,"keyDerivationAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.KeyEncryptionAlgorithmIdentifier})],PasswordRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],PasswordRecipientInfo.prototype,"encryptedKey",void 0)},68084:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RecipientInfo=pe.OtherRecipientInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(8479);const me=Ae(31666);const ve=Ae(19614);const be=Ae(53059);class OtherRecipientInfo{constructor(R={}){this.oriType="";this.oriValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.OtherRecipientInfo=OtherRecipientInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],OtherRecipientInfo.prototype,"oriType",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any})],OtherRecipientInfo.prototype,"oriValue",void 0);let Ee=class RecipientInfo{constructor(R={}){Object.assign(this,R)}};pe.RecipientInfo=Ee;he.__decorate([(0,ge.AsnProp)({type:me.KeyTransRecipientInfo,optional:true})],Ee.prototype,"ktri",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.KeyAgreeRecipientInfo,context:1,implicit:true,optional:true})],Ee.prototype,"kari",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.KEKRecipientInfo,context:2,implicit:true,optional:true})],Ee.prototype,"kekri",void 0);he.__decorate([(0,ge.AsnProp)({type:be.PasswordRecipientInfo,context:3,implicit:true,optional:true})],Ee.prototype,"pwri",void 0);he.__decorate([(0,ge.AsnProp)({type:OtherRecipientInfo,context:4,implicit:true,optional:true})],Ee.prototype,"ori",void 0);pe.RecipientInfo=Ee=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],Ee)},64604:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.RecipientInfos=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(68084);let ve=he=class RecipientInfos extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.RecipientInfos=ve;pe.RecipientInfos=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:me.RecipientInfo})],ve)},47678:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.RevocationInfoChoices=pe.RevocationInfoChoice=pe.OtherRevocationInfoFormat=pe.id_ri_scvp=pe.id_ri_ocsp_response=pe.id_ri=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(82288);pe.id_ri=`${me.id_pkix}.16`;pe.id_ri_ocsp_response=`${pe.id_ri}.2`;pe.id_ri_scvp=`${pe.id_ri}.4`;class OtherRevocationInfoFormat{constructor(R={}){this.otherRevInfoFormat="";this.otherRevInfo=new ArrayBuffer(0);Object.assign(this,R)}}pe.OtherRevocationInfoFormat=OtherRevocationInfoFormat;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],OtherRevocationInfoFormat.prototype,"otherRevInfoFormat",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Any})],OtherRevocationInfoFormat.prototype,"otherRevInfo",void 0);let ve=class RevocationInfoChoice{constructor(R={}){this.other=new OtherRevocationInfoFormat;Object.assign(this,R)}};pe.RevocationInfoChoice=ve;ge.__decorate([(0,ye.AsnProp)({type:OtherRevocationInfoFormat,context:1,implicit:true})],ve.prototype,"other",void 0);pe.RevocationInfoChoice=ve=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],ve);let be=he=class RevocationInfoChoices extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.RevocationInfoChoices=be;pe.RevocationInfoChoices=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:ve})],be)},98895:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SignedData=pe.DigestAlgorithmIdentifiers=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(1093);const ve=Ae(67119);const be=Ae(21377);const Ee=Ae(47678);const we=Ae(46959);let Ce=he=class DigestAlgorithmIdentifiers extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.DigestAlgorithmIdentifiers=Ce;pe.DigestAlgorithmIdentifiers=Ce=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:ve.DigestAlgorithmIdentifier})],Ce);class SignedData{constructor(R={}){this.version=ve.CMSVersion.v0;this.digestAlgorithms=new Ce;this.encapContentInfo=new be.EncapsulatedContentInfo;this.signerInfos=new we.SignerInfos;Object.assign(this,R)}}pe.SignedData=SignedData;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer})],SignedData.prototype,"version",void 0);ge.__decorate([(0,ye.AsnProp)({type:Ce})],SignedData.prototype,"digestAlgorithms",void 0);ge.__decorate([(0,ye.AsnProp)({type:be.EncapsulatedContentInfo})],SignedData.prototype,"encapContentInfo",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.CertificateSet,context:0,implicit:true,optional:true})],SignedData.prototype,"certificates",void 0);ge.__decorate([(0,ye.AsnProp)({type:Ee.RevocationInfoChoices,context:1,implicit:true,optional:true})],SignedData.prototype,"crls",void 0);ge.__decorate([(0,ye.AsnProp)({type:we.SignerInfos})],SignedData.prototype,"signerInfos",void 0)},41200:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SignerIdentifier=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(40995);const me=Ae(82288);let ve=class SignerIdentifier{constructor(R={}){Object.assign(this,R)}};pe.SignerIdentifier=ve;he.__decorate([(0,ge.AsnProp)({type:me.SubjectKeyIdentifier,context:0,implicit:true})],ve.prototype,"subjectKeyIdentifier",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.IssuerAndSerialNumber})],ve.prototype,"issuerAndSerialNumber",void 0);pe.SignerIdentifier=ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve)},46959:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SignerInfos=pe.SignerInfo=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(41200);const ve=Ae(67119);const be=Ae(67284);class SignerInfo{constructor(R={}){this.version=ve.CMSVersion.v0;this.sid=new me.SignerIdentifier;this.digestAlgorithm=new ve.DigestAlgorithmIdentifier;this.signatureAlgorithm=new ve.SignatureAlgorithmIdentifier;this.signature=new ye.OctetString;Object.assign(this,R)}}pe.SignerInfo=SignerInfo;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer})],SignerInfo.prototype,"version",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.SignerIdentifier})],SignerInfo.prototype,"sid",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.DigestAlgorithmIdentifier})],SignerInfo.prototype,"digestAlgorithm",void 0);ge.__decorate([(0,ye.AsnProp)({type:be.Attribute,repeated:"set",context:0,implicit:true,optional:true})],SignerInfo.prototype,"signedAttrs",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.SignatureAlgorithmIdentifier})],SignerInfo.prototype,"signatureAlgorithm",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.OctetString})],SignerInfo.prototype,"signature",void 0);ge.__decorate([(0,ye.AsnProp)({type:be.Attribute,repeated:"set",context:1,implicit:true,optional:true})],SignerInfo.prototype,"unsignedAttrs",void 0);let Ee=he=class SignerInfos extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.SignerInfos=Ee;pe.SignerInfos=Ee=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Set,itemType:SignerInfo})],Ee)},67119:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.KeyDerivationAlgorithmIdentifier=pe.MessageAuthenticationCodeAlgorithm=pe.ContentEncryptionAlgorithmIdentifier=pe.KeyEncryptionAlgorithmIdentifier=pe.SignatureAlgorithmIdentifier=pe.DigestAlgorithmIdentifier=pe.CMSVersion=void 0;const he=Ae(4351);const ge=Ae(82288);const ye=Ae(53499);var me;(function(R){R[R["v0"]=0]="v0";R[R["v1"]=1]="v1";R[R["v2"]=2]="v2";R[R["v3"]=3]="v3";R[R["v4"]=4]="v4";R[R["v5"]=5]="v5"})(me||(pe.CMSVersion=me={}));let ve=class DigestAlgorithmIdentifier extends ge.AlgorithmIdentifier{};pe.DigestAlgorithmIdentifier=ve;pe.DigestAlgorithmIdentifier=ve=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],ve);let be=class SignatureAlgorithmIdentifier extends ge.AlgorithmIdentifier{};pe.SignatureAlgorithmIdentifier=be;pe.SignatureAlgorithmIdentifier=be=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],be);let Ee=class KeyEncryptionAlgorithmIdentifier extends ge.AlgorithmIdentifier{};pe.KeyEncryptionAlgorithmIdentifier=Ee;pe.KeyEncryptionAlgorithmIdentifier=Ee=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],Ee);let we=class ContentEncryptionAlgorithmIdentifier extends ge.AlgorithmIdentifier{};pe.ContentEncryptionAlgorithmIdentifier=we;pe.ContentEncryptionAlgorithmIdentifier=we=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],we);let Ce=class MessageAuthenticationCodeAlgorithm extends ge.AlgorithmIdentifier{};pe.MessageAuthenticationCodeAlgorithm=Ce;pe.MessageAuthenticationCodeAlgorithm=Ce=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],Ce);let _e=class KeyDerivationAlgorithmIdentifier extends ge.AlgorithmIdentifier{};pe.KeyDerivationAlgorithmIdentifier=_e;pe.KeyDerivationAlgorithmIdentifier=_e=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],_e)},93674:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.Attributes=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(82288);let ve=he=class Attributes extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.Attributes=ve;pe.Attributes=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.Attribute})],ve)},75135:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CertificationRequest=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(61301);const me=Ae(82288);class CertificationRequest{constructor(R={}){this.certificationRequestInfo=new ye.CertificationRequestInfo;this.signatureAlgorithm=new me.AlgorithmIdentifier;this.signature=new ArrayBuffer(0);Object.assign(this,R)}}pe.CertificationRequest=CertificationRequest;he.__decorate([(0,ge.AsnProp)({type:ye.CertificationRequestInfo})],CertificationRequest.prototype,"certificationRequestInfo",void 0);he.__decorate([(0,ge.AsnProp)({type:me.AlgorithmIdentifier})],CertificationRequest.prototype,"signatureAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],CertificationRequest.prototype,"signature",void 0)},61301:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CertificationRequestInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(93674);class CertificationRequestInfo{constructor(R={}){this.version=0;this.subject=new ye.Name;this.subjectPKInfo=new ye.SubjectPublicKeyInfo;this.attributes=new me.Attributes;Object.assign(this,R)}}pe.CertificationRequestInfo=CertificationRequestInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],CertificationRequestInfo.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Name})],CertificationRequestInfo.prototype,"subject",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.SubjectPublicKeyInfo})],CertificationRequestInfo.prototype,"subjectPKInfo",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Attributes,implicit:true,context:0})],CertificationRequestInfo.prototype,"attributes",void 0)},86717:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(93674),pe);he.__exportStar(Ae(75135),pe);he.__exportStar(Ae(61301),pe)},14716:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ecdsaWithSHA512=pe.ecdsaWithSHA384=pe.ecdsaWithSHA256=pe.ecdsaWithSHA224=pe.ecdsaWithSHA1=void 0;const he=Ae(82288);const ge=Ae(3193);function create(R){return new he.AlgorithmIdentifier({algorithm:R})}pe.ecdsaWithSHA1=create(ge.id_ecdsaWithSHA1);pe.ecdsaWithSHA224=create(ge.id_ecdsaWithSHA224);pe.ecdsaWithSHA256=create(ge.id_ecdsaWithSHA256);pe.ecdsaWithSHA384=create(ge.id_ecdsaWithSHA384);pe.ecdsaWithSHA512=create(ge.id_ecdsaWithSHA512)},75823:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ECParameters=void 0;const he=Ae(4351);const ge=Ae(53499);let ye=class ECParameters{constructor(R={}){Object.assign(this,R)}};pe.ECParameters=ye;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],ye.prototype,"namedCurve",void 0);pe.ECParameters=ye=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ye)},28673:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ECPrivateKey=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(75823);class ECPrivateKey{constructor(R={}){this.version=1;this.privateKey=new ge.OctetString;Object.assign(this,R)}}pe.ECPrivateKey=ECPrivateKey;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],ECPrivateKey.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],ECPrivateKey.prototype,"privateKey",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.ECParameters,context:0,optional:true})],ECPrivateKey.prototype,"parameters",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString,context:1,optional:true})],ECPrivateKey.prototype,"publicKey",void 0)},82138:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ECDSASigValue=void 0;const he=Ae(4351);const ge=Ae(53499);class ECDSASigValue{constructor(R={}){this.r=new ArrayBuffer(0);this.s=new ArrayBuffer(0);Object.assign(this,R)}}pe.ECDSASigValue=ECDSASigValue;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],ECDSASigValue.prototype,"r",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],ECDSASigValue.prototype,"s",void 0)},8277:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(14716),pe);he.__exportStar(Ae(75823),pe);he.__exportStar(Ae(28673),pe);he.__exportStar(Ae(82138),pe);he.__exportStar(Ae(3193),pe)},3193:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_sect571r1=pe.id_sect571k1=pe.id_secp521r1=pe.id_sect409r1=pe.id_sect409k1=pe.id_secp384r1=pe.id_sect283r1=pe.id_sect283k1=pe.id_secp256r1=pe.id_sect233r1=pe.id_sect233k1=pe.id_secp224r1=pe.id_sect163r2=pe.id_sect163k1=pe.id_secp192r1=pe.id_ecdsaWithSHA512=pe.id_ecdsaWithSHA384=pe.id_ecdsaWithSHA256=pe.id_ecdsaWithSHA224=pe.id_ecdsaWithSHA1=pe.id_ecMQV=pe.id_ecDH=pe.id_ecPublicKey=void 0;pe.id_ecPublicKey="1.2.840.10045.2.1";pe.id_ecDH="1.3.132.1.12";pe.id_ecMQV="1.3.132.1.13";pe.id_ecdsaWithSHA1="1.2.840.10045.4.1";pe.id_ecdsaWithSHA224="1.2.840.10045.4.3.1";pe.id_ecdsaWithSHA256="1.2.840.10045.4.3.2";pe.id_ecdsaWithSHA384="1.2.840.10045.4.3.3";pe.id_ecdsaWithSHA512="1.2.840.10045.4.3.4";pe.id_secp192r1="1.2.840.10045.3.1.1";pe.id_sect163k1="1.3.132.0.1";pe.id_sect163r2="1.3.132.0.15";pe.id_secp224r1="1.3.132.0.33";pe.id_sect233k1="1.3.132.0.26";pe.id_sect233r1="1.3.132.0.27";pe.id_secp256r1="1.2.840.10045.3.1.7";pe.id_sect283k1="1.3.132.0.16";pe.id_sect283r1="1.3.132.0.17";pe.id_secp384r1="1.3.132.0.34";pe.id_sect409k1="1.3.132.0.36";pe.id_sect409r1="1.3.132.0.37";pe.id_secp521r1="1.3.132.0.35";pe.id_sect571k1="1.3.132.0.38";pe.id_sect571r1="1.3.132.0.39"},11757:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.PKCS12AttrSet=pe.PKCS12Attribute=void 0;const ge=Ae(4351);const ye=Ae(53499);class PKCS12Attribute{constructor(R={}){this.attrId="";this.attrValues=[];Object.assign(R)}}pe.PKCS12Attribute=PKCS12Attribute;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],PKCS12Attribute.prototype,"attrId",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Any,repeated:"set"})],PKCS12Attribute.prototype,"attrValues",void 0);let me=he=class PKCS12AttrSet extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.PKCS12AttrSet=me;pe.PKCS12AttrSet=me=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:PKCS12Attribute})],me)},46751:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.AuthenticatedSafe=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(19493);let ve=he=class AuthenticatedSafe extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.AuthenticatedSafe=ve;pe.AuthenticatedSafe=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.ContentInfo})],ve)},77536:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_sdsiCertificate=pe.id_x509Certificate=pe.id_certTypes=pe.CertBag=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(39410);class CertBag{constructor(R={}){this.certId="";this.certValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.CertBag=CertBag;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],CertBag.prototype,"certId",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:0})],CertBag.prototype,"certValue",void 0);pe.id_certTypes=`${ye.id_pkcs_9}.22`;pe.id_x509Certificate=`${pe.id_certTypes}.1`;pe.id_sdsiCertificate=`${pe.id_certTypes}.2`},92039:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_x509CRL=pe.id_crlTypes=pe.CRLBag=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(39410);class CRLBag{constructor(R={}){this.crlId="";this.crltValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.CRLBag=CRLBag;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],CRLBag.prototype,"crlId",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:0})],CRLBag.prototype,"crltValue",void 0);pe.id_crlTypes=`${ye.id_pkcs_9}.23`;pe.id_x509CRL=`${pe.id_crlTypes}.1`},27069:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(77536),pe);he.__exportStar(Ae(92039),pe);he.__exportStar(Ae(11684),pe);he.__exportStar(Ae(51627),pe);he.__exportStar(Ae(93057),pe);he.__exportStar(Ae(39410),pe)},11684:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.KeyBag=void 0;const he=Ae(4351);const ge=Ae(81714);const ye=Ae(53499);let me=class KeyBag extends ge.PrivateKeyInfo{};pe.KeyBag=me;pe.KeyBag=me=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],me)},51627:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PKCS8ShroudedKeyBag=void 0;const he=Ae(4351);const ge=Ae(81714);const ye=Ae(53499);let me=class PKCS8ShroudedKeyBag extends ge.EncryptedPrivateKeyInfo{};pe.PKCS8ShroudedKeyBag=me;pe.PKCS8ShroudedKeyBag=me=he.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],me)},93057:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SecretBag=void 0;const he=Ae(4351);const ge=Ae(53499);class SecretBag{constructor(R={}){this.secretTypeId="";this.secretValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.SecretBag=SecretBag;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],SecretBag.prototype,"secretTypeId",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:0})],SecretBag.prototype,"secretValue",void 0)},39410:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_pkcs_9=pe.id_SafeContents=pe.id_SecretBag=pe.id_CRLBag=pe.id_certBag=pe.id_pkcs8ShroudedKeyBag=pe.id_keyBag=void 0;const he=Ae(35825);pe.id_keyBag=`${he.id_bagtypes}.1`;pe.id_pkcs8ShroudedKeyBag=`${he.id_bagtypes}.2`;pe.id_certBag=`${he.id_bagtypes}.3`;pe.id_CRLBag=`${he.id_bagtypes}.4`;pe.id_SecretBag=`${he.id_bagtypes}.5`;pe.id_SafeContents=`${he.id_bagtypes}.6`;pe.id_pkcs_9="1.2.840.113549.1.9"},84078:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(11757),pe);he.__exportStar(Ae(46751),pe);he.__exportStar(Ae(27069),pe);he.__exportStar(Ae(71180),pe);he.__exportStar(Ae(35825),pe);he.__exportStar(Ae(42153),pe);he.__exportStar(Ae(55901),pe)},71180:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.MacData=void 0;const he=Ae(4351);const ge=Ae(5574);const ye=Ae(53499);class MacData{constructor(R={}){this.mac=new ge.DigestInfo;this.macSalt=new ye.OctetString;this.iterations=1;Object.assign(this,R)}}pe.MacData=MacData;he.__decorate([(0,ye.AsnProp)({type:ge.DigestInfo})],MacData.prototype,"mac",void 0);he.__decorate([(0,ye.AsnProp)({type:ye.OctetString})],MacData.prototype,"macSalt",void 0);he.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,defaultValue:1})],MacData.prototype,"iterations",void 0)},35825:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_bagtypes=pe.id_pbewithSHAAnd40BitRC2_CBC=pe.id_pbeWithSHAAnd128BitRC2_CBC=pe.id_pbeWithSHAAnd2_KeyTripleDES_CBC=pe.id_pbeWithSHAAnd3_KeyTripleDES_CBC=pe.id_pbeWithSHAAnd40BitRC4=pe.id_pbeWithSHAAnd128BitRC4=pe.id_pkcs_12PbeIds=pe.id_pkcs_12=pe.id_pkcs=pe.id_rsadsi=void 0;pe.id_rsadsi="1.2.840.113549";pe.id_pkcs=`${pe.id_rsadsi}.1`;pe.id_pkcs_12=`${pe.id_pkcs}.12`;pe.id_pkcs_12PbeIds=`${pe.id_pkcs_12}.1`;pe.id_pbeWithSHAAnd128BitRC4=`${pe.id_pkcs_12PbeIds}.1`;pe.id_pbeWithSHAAnd40BitRC4=`${pe.id_pkcs_12PbeIds}.2`;pe.id_pbeWithSHAAnd3_KeyTripleDES_CBC=`${pe.id_pkcs_12PbeIds}.3`;pe.id_pbeWithSHAAnd2_KeyTripleDES_CBC=`${pe.id_pkcs_12PbeIds}.4`;pe.id_pbeWithSHAAnd128BitRC2_CBC=`${pe.id_pkcs_12PbeIds}.5`;pe.id_pbewithSHAAnd40BitRC2_CBC=`${pe.id_pkcs_12PbeIds}.6`;pe.id_bagtypes=`${pe.id_pkcs_12}.10.1`},42153:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PFX=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(19493);const me=Ae(71180);class PFX{constructor(R={}){this.version=3;this.authSafe=new ye.ContentInfo;this.macData=new me.MacData;Object.assign(this,R)}}pe.PFX=PFX;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],PFX.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.ContentInfo})],PFX.prototype,"authSafe",void 0);he.__decorate([(0,ge.AsnProp)({type:me.MacData,optional:true})],PFX.prototype,"macData",void 0)},55901:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SafeContents=pe.SafeBag=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(11757);class SafeBag{constructor(R={}){this.bagId="";this.bagValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.SafeBag=SafeBag;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],SafeBag.prototype,"bagId",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Any,context:0})],SafeBag.prototype,"bagValue",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.PKCS12Attribute,repeated:"set",optional:true})],SafeBag.prototype,"bagAttributes",void 0);let ve=he=class SafeContents extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.SafeContents=ve;pe.SafeContents=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:SafeBag})],ve)},20768:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncryptedPrivateKeyInfo=pe.EncryptedData=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class EncryptedData extends ge.OctetString{}pe.EncryptedData=EncryptedData;class EncryptedPrivateKeyInfo{constructor(R={}){this.encryptionAlgorithm=new ye.AlgorithmIdentifier;this.encryptedData=new EncryptedData;Object.assign(this,R)}}pe.EncryptedPrivateKeyInfo=EncryptedPrivateKeyInfo;he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],EncryptedPrivateKeyInfo.prototype,"encryptionAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:EncryptedData})],EncryptedPrivateKeyInfo.prototype,"encryptedData",void 0)},81714:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(20768),pe);he.__exportStar(Ae(35442),pe)},35442:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.PrivateKeyInfo=pe.Attributes=pe.PrivateKey=pe.Version=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(82288);var ve;(function(R){R[R["v1"]=0]="v1"})(ve||(pe.Version=ve={}));class PrivateKey extends ye.OctetString{}pe.PrivateKey=PrivateKey;let be=he=class Attributes extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.Attributes=be;pe.Attributes=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.Attribute})],be);class PrivateKeyInfo{constructor(R={}){this.version=ve.v1;this.privateKeyAlgorithm=new me.AlgorithmIdentifier;this.privateKey=new PrivateKey;Object.assign(this,R)}}pe.PrivateKeyInfo=PrivateKeyInfo;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer})],PrivateKeyInfo.prototype,"version",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.AlgorithmIdentifier})],PrivateKeyInfo.prototype,"privateKeyAlgorithm",void 0);ge.__decorate([(0,ye.AsnProp)({type:PrivateKey})],PrivateKeyInfo.prototype,"privateKey",void 0);ge.__decorate([(0,ye.AsnProp)({type:be,implicit:true,context:0,optional:true})],PrivateKeyInfo.prototype,"attributes",void 0)},55938:(R,pe,Ae)=>{"use strict";var he,ge,ye;Object.defineProperty(pe,"__esModule",{value:true});pe.DateOfBirth=pe.UnstructuredAddress=pe.UnstructuredName=pe.EmailAddress=pe.EncryptedPrivateKeyInfo=pe.UserPKCS12=pe.Pkcs7PDU=pe.PKCS9String=pe.id_at_pseudonym=pe.crlTypes=pe.id_certTypes=pe.id_smime=pe.id_pkcs9_mr_signingTimeMatch=pe.id_pkcs9_mr_caseIgnoreMatch=pe.id_pkcs9_sx_signingTime=pe.id_pkcs9_sx_pkcs9String=pe.id_pkcs9_at_countryOfResidence=pe.id_pkcs9_at_countryOfCitizenship=pe.id_pkcs9_at_gender=pe.id_pkcs9_at_placeOfBirth=pe.id_pkcs9_at_dateOfBirth=pe.id_ietf_at=pe.id_pkcs9_at_pkcs7PDU=pe.id_pkcs9_at_sequenceNumber=pe.id_pkcs9_at_randomNonce=pe.id_pkcs9_at_encryptedPrivateKeyInfo=pe.id_pkcs9_at_pkcs15Token=pe.id_pkcs9_at_userPKCS12=pe.id_pkcs9_at_localKeyId=pe.id_pkcs9_at_friendlyName=pe.id_pkcs9_at_smimeCapabilities=pe.id_pkcs9_at_extensionRequest=pe.id_pkcs9_at_signingDescription=pe.id_pkcs9_at_extendedCertificateAttributes=pe.id_pkcs9_at_unstructuredAddress=pe.id_pkcs9_at_challengePassword=pe.id_pkcs9_at_counterSignature=pe.id_pkcs9_at_signingTime=pe.id_pkcs9_at_messageDigest=pe.id_pkcs9_at_contentType=pe.id_pkcs9_at_unstructuredName=pe.id_pkcs9_at_emailAddress=pe.id_pkcs9_oc_naturalPerson=pe.id_pkcs9_oc_pkcsEntity=pe.id_pkcs9_mr=pe.id_pkcs9_sx=pe.id_pkcs9_at=pe.id_pkcs9_oc=pe.id_pkcs9_mo=pe.id_pkcs9=void 0;pe.SMIMECapabilities=pe.SMIMECapability=pe.SigningDescription=pe.LocalKeyId=pe.FriendlyName=pe.ExtendedCertificateAttributes=pe.ExtensionRequest=pe.ChallengePassword=pe.CounterSignature=pe.SequenceNumber=pe.RandomNonce=pe.SigningTime=pe.MessageDigest=pe.ContentType=pe.Pseudonym=pe.CountryOfResidence=pe.CountryOfCitizenship=pe.Gender=pe.PlaceOfBirth=void 0;const me=Ae(4351);const ve=Ae(53499);const be=Ae(19493);const Ee=Ae(84078);const we=Ae(81714);const Ce=Ae(82288);const _e=Ae(64263);pe.id_pkcs9="1.2.840.113549.1.9";pe.id_pkcs9_mo=`${pe.id_pkcs9}.0`;pe.id_pkcs9_oc=`${pe.id_pkcs9}.24`;pe.id_pkcs9_at=`${pe.id_pkcs9}.25`;pe.id_pkcs9_sx=`${pe.id_pkcs9}.26`;pe.id_pkcs9_mr=`${pe.id_pkcs9}.27`;pe.id_pkcs9_oc_pkcsEntity=`${pe.id_pkcs9_oc}.1`;pe.id_pkcs9_oc_naturalPerson=`${pe.id_pkcs9_oc}.2`;pe.id_pkcs9_at_emailAddress=`${pe.id_pkcs9}.1`;pe.id_pkcs9_at_unstructuredName=`${pe.id_pkcs9}.2`;pe.id_pkcs9_at_contentType=`${pe.id_pkcs9}.3`;pe.id_pkcs9_at_messageDigest=`${pe.id_pkcs9}.4`;pe.id_pkcs9_at_signingTime=`${pe.id_pkcs9}.5`;pe.id_pkcs9_at_counterSignature=`${pe.id_pkcs9}.6`;pe.id_pkcs9_at_challengePassword=`${pe.id_pkcs9}.7`;pe.id_pkcs9_at_unstructuredAddress=`${pe.id_pkcs9}.8`;pe.id_pkcs9_at_extendedCertificateAttributes=`${pe.id_pkcs9}.9`;pe.id_pkcs9_at_signingDescription=`${pe.id_pkcs9}.13`;pe.id_pkcs9_at_extensionRequest=`${pe.id_pkcs9}.14`;pe.id_pkcs9_at_smimeCapabilities=`${pe.id_pkcs9}.15`;pe.id_pkcs9_at_friendlyName=`${pe.id_pkcs9}.20`;pe.id_pkcs9_at_localKeyId=`${pe.id_pkcs9}.21`;pe.id_pkcs9_at_userPKCS12=`2.16.840.1.113730.3.1.216`;pe.id_pkcs9_at_pkcs15Token=`${pe.id_pkcs9_at}.1`;pe.id_pkcs9_at_encryptedPrivateKeyInfo=`${pe.id_pkcs9_at}.2`;pe.id_pkcs9_at_randomNonce=`${pe.id_pkcs9_at}.3`;pe.id_pkcs9_at_sequenceNumber=`${pe.id_pkcs9_at}.4`;pe.id_pkcs9_at_pkcs7PDU=`${pe.id_pkcs9_at}.5`;pe.id_ietf_at=`1.3.6.1.5.5.7.9`;pe.id_pkcs9_at_dateOfBirth=`${pe.id_ietf_at}.1`;pe.id_pkcs9_at_placeOfBirth=`${pe.id_ietf_at}.2`;pe.id_pkcs9_at_gender=`${pe.id_ietf_at}.3`;pe.id_pkcs9_at_countryOfCitizenship=`${pe.id_ietf_at}.4`;pe.id_pkcs9_at_countryOfResidence=`${pe.id_ietf_at}.5`;pe.id_pkcs9_sx_pkcs9String=`${pe.id_pkcs9_sx}.1`;pe.id_pkcs9_sx_signingTime=`${pe.id_pkcs9_sx}.2`;pe.id_pkcs9_mr_caseIgnoreMatch=`${pe.id_pkcs9_mr}.1`;pe.id_pkcs9_mr_signingTimeMatch=`${pe.id_pkcs9_mr}.2`;pe.id_smime=`${pe.id_pkcs9}.16`;pe.id_certTypes=`${pe.id_pkcs9}.22`;pe.crlTypes=`${pe.id_pkcs9}.23`;pe.id_at_pseudonym=`${_e.id_at}.65`;let Ie=class PKCS9String extends Ce.DirectoryString{constructor(R={}){super(R)}toString(){const R={};R.toString();return this.ia5String||super.toString()}};pe.PKCS9String=Ie;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.IA5String})],Ie.prototype,"ia5String",void 0);pe.PKCS9String=Ie=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Ie);let Se=class Pkcs7PDU extends be.ContentInfo{};pe.Pkcs7PDU=Se;pe.Pkcs7PDU=Se=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Se);let Be=class UserPKCS12 extends Ee.PFX{};pe.UserPKCS12=Be;pe.UserPKCS12=Be=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Be);let ke=class EncryptedPrivateKeyInfo extends we.EncryptedPrivateKeyInfo{};pe.EncryptedPrivateKeyInfo=ke;pe.EncryptedPrivateKeyInfo=ke=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],ke);let Oe=class EmailAddress{constructor(R=""){this.value=R}toString(){return this.value}};pe.EmailAddress=Oe;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.IA5String})],Oe.prototype,"value",void 0);pe.EmailAddress=Oe=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Oe);let Re=class UnstructuredName extends Ie{};pe.UnstructuredName=Re;pe.UnstructuredName=Re=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Re);let Qe=class UnstructuredAddress extends Ce.DirectoryString{};pe.UnstructuredAddress=Qe;pe.UnstructuredAddress=Qe=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Qe);let xe=class DateOfBirth{constructor(R=new Date){this.value=R}};pe.DateOfBirth=xe;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.GeneralizedTime})],xe.prototype,"value",void 0);pe.DateOfBirth=xe=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],xe);let Pe=class PlaceOfBirth extends Ce.DirectoryString{};pe.PlaceOfBirth=Pe;pe.PlaceOfBirth=Pe=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Pe);let Te=class Gender{constructor(R="M"){this.value=R}toString(){return this.value}};pe.Gender=Te;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.PrintableString})],Te.prototype,"value",void 0);pe.Gender=Te=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Te);let De=class CountryOfCitizenship{constructor(R=""){this.value=R}toString(){return this.value}};pe.CountryOfCitizenship=De;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.PrintableString})],De.prototype,"value",void 0);pe.CountryOfCitizenship=De=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],De);let Ne=class CountryOfResidence extends De{};pe.CountryOfResidence=Ne;pe.CountryOfResidence=Ne=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Ne);let Me=class Pseudonym extends Ce.DirectoryString{};pe.Pseudonym=Me;pe.Pseudonym=Me=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Me);let je=class ContentType{constructor(R=""){this.value=R}toString(){return this.value}};pe.ContentType=je;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.ObjectIdentifier})],je.prototype,"value",void 0);pe.ContentType=je=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],je);class MessageDigest extends ve.OctetString{}pe.MessageDigest=MessageDigest;let Fe=class SigningTime extends Ce.Time{};pe.SigningTime=Fe;pe.SigningTime=Fe=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Fe);class RandomNonce extends ve.OctetString{}pe.RandomNonce=RandomNonce;let Le=class SequenceNumber{constructor(R=0){this.value=R}toString(){return this.value.toString()}};pe.SequenceNumber=Le;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.Integer})],Le.prototype,"value",void 0);pe.SequenceNumber=Le=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Le);let Ue=class CounterSignature extends be.SignerInfo{};pe.CounterSignature=Ue;pe.CounterSignature=Ue=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Ue);let He=class ChallengePassword extends Ce.DirectoryString{};pe.ChallengePassword=He;pe.ChallengePassword=He=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],He);let Je=he=class ExtensionRequest extends Ce.Extensions{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.ExtensionRequest=Je;pe.ExtensionRequest=Je=he=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Je);let We=ge=class ExtendedCertificateAttributes extends ve.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,ge.prototype)}};pe.ExtendedCertificateAttributes=We;pe.ExtendedCertificateAttributes=We=ge=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Set,itemType:be.Attribute})],We);let Ve=class FriendlyName{constructor(R=""){this.value=R}toString(){return this.value}};pe.FriendlyName=Ve;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.BmpString})],Ve.prototype,"value",void 0);pe.FriendlyName=Ve=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Ve);class LocalKeyId extends ve.OctetString{}pe.LocalKeyId=LocalKeyId;class SigningDescription extends Ce.DirectoryString{}pe.SigningDescription=SigningDescription;let Ke=class SMIMECapability extends Ce.AlgorithmIdentifier{};pe.SMIMECapability=Ke;pe.SMIMECapability=Ke=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Ke);let Ge=ye=class SMIMECapabilities extends ve.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,ye.prototype)}};pe.SMIMECapabilities=Ge;pe.SMIMECapabilities=Ge=ye=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence,itemType:Ke})],Ge)},48243:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.sha512_256WithRSAEncryption=pe.sha512_224WithRSAEncryption=pe.sha512WithRSAEncryption=pe.sha384WithRSAEncryption=pe.sha256WithRSAEncryption=pe.sha224WithRSAEncryption=pe.sha1WithRSAEncryption=pe.md5WithRSAEncryption=pe.md2WithRSAEncryption=pe.rsaEncryption=pe.pSpecifiedEmpty=pe.mgf1SHA1=pe.sha512_256=pe.sha512_224=pe.sha512=pe.sha384=pe.sha256=pe.sha224=pe.sha1=pe.md4=pe.md2=void 0;const he=Ae(53499);const ge=Ae(82288);const ye=Ae(90147);function create(R){return new ge.AlgorithmIdentifier({algorithm:R,parameters:null})}pe.md2=create(ye.id_md2);pe.md4=create(ye.id_md5);pe.sha1=create(ye.id_sha1);pe.sha224=create(ye.id_sha224);pe.sha256=create(ye.id_sha256);pe.sha384=create(ye.id_sha384);pe.sha512=create(ye.id_sha512);pe.sha512_224=create(ye.id_sha512_224);pe.sha512_256=create(ye.id_sha512_256);pe.mgf1SHA1=new ge.AlgorithmIdentifier({algorithm:ye.id_mgf1,parameters:he.AsnConvert.serialize(pe.sha1)});pe.pSpecifiedEmpty=new ge.AlgorithmIdentifier({algorithm:ye.id_pSpecified,parameters:he.AsnConvert.serialize(he.AsnOctetStringConverter.toASN(new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]).buffer))});pe.rsaEncryption=create(ye.id_rsaEncryption);pe.md2WithRSAEncryption=create(ye.id_md2WithRSAEncryption);pe.md5WithRSAEncryption=create(ye.id_md5WithRSAEncryption);pe.sha1WithRSAEncryption=create(ye.id_sha1WithRSAEncryption);pe.sha224WithRSAEncryption=create(ye.id_sha512_224WithRSAEncryption);pe.sha256WithRSAEncryption=create(ye.id_sha512_256WithRSAEncryption);pe.sha384WithRSAEncryption=create(ye.id_sha384WithRSAEncryption);pe.sha512WithRSAEncryption=create(ye.id_sha512WithRSAEncryption);pe.sha512_224WithRSAEncryption=create(ye.id_sha512_224WithRSAEncryption);pe.sha512_256WithRSAEncryption=create(ye.id_sha512_256WithRSAEncryption)},5574:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(60663),pe);he.__exportStar(Ae(48243),pe);he.__exportStar(Ae(90147),pe);he.__exportStar(Ae(41069),pe);he.__exportStar(Ae(89654),pe);he.__exportStar(Ae(39978),pe)},90147:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_mgf1=pe.id_md5=pe.id_md2=pe.id_sha512_256=pe.id_sha512_224=pe.id_sha512=pe.id_sha384=pe.id_sha256=pe.id_sha224=pe.id_sha1=pe.id_sha512_256WithRSAEncryption=pe.id_sha512_224WithRSAEncryption=pe.id_sha512WithRSAEncryption=pe.id_sha384WithRSAEncryption=pe.id_sha256WithRSAEncryption=pe.id_ssha224WithRSAEncryption=pe.id_sha224WithRSAEncryption=pe.id_sha1WithRSAEncryption=pe.id_md5WithRSAEncryption=pe.id_md2WithRSAEncryption=pe.id_RSASSA_PSS=pe.id_pSpecified=pe.id_RSAES_OAEP=pe.id_rsaEncryption=pe.id_pkcs_1=void 0;pe.id_pkcs_1="1.2.840.113549.1.1";pe.id_rsaEncryption=`${pe.id_pkcs_1}.1`;pe.id_RSAES_OAEP=`${pe.id_pkcs_1}.7`;pe.id_pSpecified=`${pe.id_pkcs_1}.9`;pe.id_RSASSA_PSS=`${pe.id_pkcs_1}.10`;pe.id_md2WithRSAEncryption=`${pe.id_pkcs_1}.2`;pe.id_md5WithRSAEncryption=`${pe.id_pkcs_1}.4`;pe.id_sha1WithRSAEncryption=`${pe.id_pkcs_1}.5`;pe.id_sha224WithRSAEncryption=`${pe.id_pkcs_1}.14`;pe.id_ssha224WithRSAEncryption=pe.id_sha224WithRSAEncryption;pe.id_sha256WithRSAEncryption=`${pe.id_pkcs_1}.11`;pe.id_sha384WithRSAEncryption=`${pe.id_pkcs_1}.12`;pe.id_sha512WithRSAEncryption=`${pe.id_pkcs_1}.13`;pe.id_sha512_224WithRSAEncryption=`${pe.id_pkcs_1}.15`;pe.id_sha512_256WithRSAEncryption=`${pe.id_pkcs_1}.16`;pe.id_sha1="1.3.14.3.2.26";pe.id_sha224="2.16.840.1.101.3.4.2.4";pe.id_sha256="2.16.840.1.101.3.4.2.1";pe.id_sha384="2.16.840.1.101.3.4.2.2";pe.id_sha512="2.16.840.1.101.3.4.2.3";pe.id_sha512_224="2.16.840.1.101.3.4.2.5";pe.id_sha512_256="2.16.840.1.101.3.4.2.6";pe.id_md2="1.2.840.113549.2.2";pe.id_md5="1.2.840.113549.2.5";pe.id_mgf1=`${pe.id_pkcs_1}.8`},41069:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.OtherPrimeInfos=pe.OtherPrimeInfo=void 0;const ge=Ae(4351);const ye=Ae(53499);class OtherPrimeInfo{constructor(R={}){this.prime=new ArrayBuffer(0);this.exponent=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,R)}}pe.OtherPrimeInfo=OtherPrimeInfo;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,converter:ye.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"prime",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,converter:ye.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"exponent",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,converter:ye.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"coefficient",void 0);let me=he=class OtherPrimeInfos extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.OtherPrimeInfos=me;pe.OtherPrimeInfos=me=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:OtherPrimeInfo})],me)},60663:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(36657),pe);he.__exportStar(Ae(61770),pe);he.__exportStar(Ae(40462),pe)},36657:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RSAES_OAEP=pe.RsaEsOaepParams=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(90147);const ve=Ae(48243);class RsaEsOaepParams{constructor(R={}){this.hashAlgorithm=new ye.AlgorithmIdentifier(ve.sha1);this.maskGenAlgorithm=new ye.AlgorithmIdentifier({algorithm:me.id_mgf1,parameters:ge.AsnConvert.serialize(ve.sha1)});this.pSourceAlgorithm=new ye.AlgorithmIdentifier(ve.pSpecifiedEmpty);Object.assign(this,R)}}pe.RsaEsOaepParams=RsaEsOaepParams;he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier,context:0,defaultValue:ve.sha1})],RsaEsOaepParams.prototype,"hashAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier,context:1,defaultValue:ve.mgf1SHA1})],RsaEsOaepParams.prototype,"maskGenAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier,context:2,defaultValue:ve.pSpecifiedEmpty})],RsaEsOaepParams.prototype,"pSourceAlgorithm",void 0);pe.RSAES_OAEP=new ye.AlgorithmIdentifier({algorithm:me.id_RSAES_OAEP,parameters:ge.AsnConvert.serialize(new RsaEsOaepParams)})},40462:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.DigestInfo=void 0;const he=Ae(4351);const ge=Ae(82288);const ye=Ae(53499);class DigestInfo{constructor(R={}){this.digestAlgorithm=new ge.AlgorithmIdentifier;this.digest=new ye.OctetString;Object.assign(this,R)}}pe.DigestInfo=DigestInfo;he.__decorate([(0,ye.AsnProp)({type:ge.AlgorithmIdentifier})],DigestInfo.prototype,"digestAlgorithm",void 0);he.__decorate([(0,ye.AsnProp)({type:ye.OctetString})],DigestInfo.prototype,"digest",void 0)},61770:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RSASSA_PSS=pe.RsaSaPssParams=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(90147);const ve=Ae(48243);class RsaSaPssParams{constructor(R={}){this.hashAlgorithm=new ye.AlgorithmIdentifier(ve.sha1);this.maskGenAlgorithm=new ye.AlgorithmIdentifier({algorithm:me.id_mgf1,parameters:ge.AsnConvert.serialize(ve.sha1)});this.saltLength=20;this.trailerField=1;Object.assign(this,R)}}pe.RsaSaPssParams=RsaSaPssParams;he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier,context:0,defaultValue:ve.sha1})],RsaSaPssParams.prototype,"hashAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier,context:1,defaultValue:ve.mgf1SHA1})],RsaSaPssParams.prototype,"maskGenAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:2,defaultValue:20})],RsaSaPssParams.prototype,"saltLength",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:3,defaultValue:1})],RsaSaPssParams.prototype,"trailerField",void 0);pe.RSASSA_PSS=new ye.AlgorithmIdentifier({algorithm:me.id_RSASSA_PSS,parameters:ge.AsnConvert.serialize(new RsaSaPssParams)})},89654:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RSAPrivateKey=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(41069);class RSAPrivateKey{constructor(R={}){this.version=0;this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);this.privateExponent=new ArrayBuffer(0);this.prime1=new ArrayBuffer(0);this.prime2=new ArrayBuffer(0);this.exponent1=new ArrayBuffer(0);this.exponent2=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,R)}}pe.RSAPrivateKey=RSAPrivateKey;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],RSAPrivateKey.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"modulus",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"publicExponent",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"privateExponent",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"prime1",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"prime2",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"exponent1",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"exponent2",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"coefficient",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.OtherPrimeInfos,optional:true})],RSAPrivateKey.prototype,"otherPrimeInfos",void 0)},39978:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RSAPublicKey=void 0;const he=Ae(4351);const ge=Ae(53499);class RSAPublicKey{constructor(R={}){this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);Object.assign(this,R)}}pe.RSAPublicKey=RSAPublicKey;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPublicKey.prototype,"modulus",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RSAPublicKey.prototype,"publicExponent",void 0)},10913:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnConvert=void 0;const he=Ae(3702);const ge=Ae(22420);const ye=Ae(89660);const me=Ae(37770);class AsnConvert{static serialize(R){return me.AsnSerializer.serialize(R)}static parse(R,pe){return ye.AsnParser.parse(R,pe)}static toString(R){const pe=ge.BufferSourceConverter.isBufferSource(R)?ge.BufferSourceConverter.toArrayBuffer(R):AsnConvert.serialize(R);const Ae=he.fromBER(pe);if(Ae.offset===-1){throw new Error(`Cannot decode ASN.1 data. ${Ae.result.error}`)}return Ae.result.toString()}}pe.AsnConvert=AsnConvert},54091:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.defaultConverter=pe.AsnNullConverter=pe.AsnGeneralizedTimeConverter=pe.AsnUTCTimeConverter=pe.AsnCharacterStringConverter=pe.AsnGeneralStringConverter=pe.AsnVisibleStringConverter=pe.AsnGraphicStringConverter=pe.AsnIA5StringConverter=pe.AsnVideotexStringConverter=pe.AsnTeletexStringConverter=pe.AsnPrintableStringConverter=pe.AsnNumericStringConverter=pe.AsnUniversalStringConverter=pe.AsnBmpStringConverter=pe.AsnUtf8StringConverter=pe.AsnConstructedOctetStringConverter=pe.AsnOctetStringConverter=pe.AsnBooleanConverter=pe.AsnObjectIdentifierConverter=pe.AsnBitStringConverter=pe.AsnIntegerBigIntConverter=pe.AsnIntegerArrayBufferConverter=pe.AsnEnumeratedConverter=pe.AsnIntegerConverter=pe.AsnAnyConverter=void 0;const he=Ae(3702);const ge=Ae(40378);const ye=Ae(80756);pe.AsnAnyConverter={fromASN:R=>R instanceof he.Null?null:R.valueBeforeDecodeView,toASN:R=>{if(R===null){return new he.Null}const pe=he.fromBER(R);if(pe.result.error){throw new Error(pe.result.error)}return pe.result}};pe.AsnIntegerConverter={fromASN:R=>R.valueBlock.valueHexView.byteLength>=4?R.valueBlock.toString():R.valueBlock.valueDec,toASN:R=>new he.Integer({value:+R})};pe.AsnEnumeratedConverter={fromASN:R=>R.valueBlock.valueDec,toASN:R=>new he.Enumerated({value:R})};pe.AsnIntegerArrayBufferConverter={fromASN:R=>R.valueBlock.valueHexView,toASN:R=>new he.Integer({valueHex:R})};pe.AsnIntegerBigIntConverter={fromASN:R=>R.toBigInt(),toASN:R=>he.Integer.fromBigInt(R)};pe.AsnBitStringConverter={fromASN:R=>R.valueBlock.valueHexView,toASN:R=>new he.BitString({valueHex:R})};pe.AsnObjectIdentifierConverter={fromASN:R=>R.valueBlock.toString(),toASN:R=>new he.ObjectIdentifier({value:R})};pe.AsnBooleanConverter={fromASN:R=>R.valueBlock.value,toASN:R=>new he.Boolean({value:R})};pe.AsnOctetStringConverter={fromASN:R=>R.valueBlock.valueHexView,toASN:R=>new he.OctetString({valueHex:R})};pe.AsnConstructedOctetStringConverter={fromASN:R=>new ye.OctetString(R.getValue()),toASN:R=>R.toASN()};function createStringConverter(R){return{fromASN:R=>R.valueBlock.value,toASN:pe=>new R({value:pe})}}pe.AsnUtf8StringConverter=createStringConverter(he.Utf8String);pe.AsnBmpStringConverter=createStringConverter(he.BmpString);pe.AsnUniversalStringConverter=createStringConverter(he.UniversalString);pe.AsnNumericStringConverter=createStringConverter(he.NumericString);pe.AsnPrintableStringConverter=createStringConverter(he.PrintableString);pe.AsnTeletexStringConverter=createStringConverter(he.TeletexString);pe.AsnVideotexStringConverter=createStringConverter(he.VideotexString);pe.AsnIA5StringConverter=createStringConverter(he.IA5String);pe.AsnGraphicStringConverter=createStringConverter(he.GraphicString);pe.AsnVisibleStringConverter=createStringConverter(he.VisibleString);pe.AsnGeneralStringConverter=createStringConverter(he.GeneralString);pe.AsnCharacterStringConverter=createStringConverter(he.CharacterString);pe.AsnUTCTimeConverter={fromASN:R=>R.toDate(),toASN:R=>new he.UTCTime({valueDate:R})};pe.AsnGeneralizedTimeConverter={fromASN:R=>R.toDate(),toASN:R=>new he.GeneralizedTime({valueDate:R})};pe.AsnNullConverter={fromASN:()=>null,toASN:()=>new he.Null};function defaultConverter(R){switch(R){case ge.AsnPropTypes.Any:return pe.AsnAnyConverter;case ge.AsnPropTypes.BitString:return pe.AsnBitStringConverter;case ge.AsnPropTypes.BmpString:return pe.AsnBmpStringConverter;case ge.AsnPropTypes.Boolean:return pe.AsnBooleanConverter;case ge.AsnPropTypes.CharacterString:return pe.AsnCharacterStringConverter;case ge.AsnPropTypes.Enumerated:return pe.AsnEnumeratedConverter;case ge.AsnPropTypes.GeneralString:return pe.AsnGeneralStringConverter;case ge.AsnPropTypes.GeneralizedTime:return pe.AsnGeneralizedTimeConverter;case ge.AsnPropTypes.GraphicString:return pe.AsnGraphicStringConverter;case ge.AsnPropTypes.IA5String:return pe.AsnIA5StringConverter;case ge.AsnPropTypes.Integer:return pe.AsnIntegerConverter;case ge.AsnPropTypes.Null:return pe.AsnNullConverter;case ge.AsnPropTypes.NumericString:return pe.AsnNumericStringConverter;case ge.AsnPropTypes.ObjectIdentifier:return pe.AsnObjectIdentifierConverter;case ge.AsnPropTypes.OctetString:return pe.AsnOctetStringConverter;case ge.AsnPropTypes.PrintableString:return pe.AsnPrintableStringConverter;case ge.AsnPropTypes.TeletexString:return pe.AsnTeletexStringConverter;case ge.AsnPropTypes.UTCTime:return pe.AsnUTCTimeConverter;case ge.AsnPropTypes.UniversalString:return pe.AsnUniversalStringConverter;case ge.AsnPropTypes.Utf8String:return pe.AsnUtf8StringConverter;case ge.AsnPropTypes.VideotexString:return pe.AsnVideotexStringConverter;case ge.AsnPropTypes.VisibleString:return pe.AsnVisibleStringConverter;default:return null}}pe.defaultConverter=defaultConverter},10157:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnProp=pe.AsnSequenceType=pe.AsnSetType=pe.AsnChoiceType=pe.AsnType=void 0;const he=Ae(54091);const ge=Ae(40378);const ye=Ae(54652);const AsnType=R=>pe=>{let Ae;if(!ye.schemaStorage.has(pe)){Ae=ye.schemaStorage.createDefault(pe);ye.schemaStorage.set(pe,Ae)}else{Ae=ye.schemaStorage.get(pe)}Object.assign(Ae,R)};pe.AsnType=AsnType;const AsnChoiceType=()=>(0,pe.AsnType)({type:ge.AsnTypeTypes.Choice});pe.AsnChoiceType=AsnChoiceType;const AsnSetType=R=>(0,pe.AsnType)({type:ge.AsnTypeTypes.Set,...R});pe.AsnSetType=AsnSetType;const AsnSequenceType=R=>(0,pe.AsnType)({type:ge.AsnTypeTypes.Sequence,...R});pe.AsnSequenceType=AsnSequenceType;const AsnProp=R=>(pe,Ae)=>{let ge;if(!ye.schemaStorage.has(pe.constructor)){ge=ye.schemaStorage.createDefault(pe.constructor);ye.schemaStorage.set(pe.constructor,ge)}else{ge=ye.schemaStorage.get(pe.constructor)}const me=Object.assign({},R);if(typeof me.type==="number"&&!me.converter){const ge=he.defaultConverter(R.type);if(!ge){throw new Error(`Cannot get default converter for property '${Ae}' of ${pe.constructor.name}`)}me.converter=ge}ge.items[Ae]=me};pe.AsnProp=AsnProp},40378:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnPropTypes=pe.AsnTypeTypes=void 0;var Ae;(function(R){R[R["Sequence"]=0]="Sequence";R[R["Set"]=1]="Set";R[R["Choice"]=2]="Choice"})(Ae||(pe.AsnTypeTypes=Ae={}));var he;(function(R){R[R["Any"]=1]="Any";R[R["Boolean"]=2]="Boolean";R[R["OctetString"]=3]="OctetString";R[R["BitString"]=4]="BitString";R[R["Integer"]=5]="Integer";R[R["Enumerated"]=6]="Enumerated";R[R["ObjectIdentifier"]=7]="ObjectIdentifier";R[R["Utf8String"]=8]="Utf8String";R[R["BmpString"]=9]="BmpString";R[R["UniversalString"]=10]="UniversalString";R[R["NumericString"]=11]="NumericString";R[R["PrintableString"]=12]="PrintableString";R[R["TeletexString"]=13]="TeletexString";R[R["VideotexString"]=14]="VideotexString";R[R["IA5String"]=15]="IA5String";R[R["GraphicString"]=16]="GraphicString";R[R["VisibleString"]=17]="VisibleString";R[R["GeneralString"]=18]="GeneralString";R[R["CharacterString"]=19]="CharacterString";R[R["UTCTime"]=20]="UTCTime";R[R["GeneralizedTime"]=21]="GeneralizedTime";R[R["DATE"]=22]="DATE";R[R["TimeOfDay"]=23]="TimeOfDay";R[R["DateTime"]=24]="DateTime";R[R["Duration"]=25]="Duration";R[R["TIME"]=26]="TIME";R[R["Null"]=27]="Null"})(he||(pe.AsnPropTypes=he={}))},56194:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(27118),pe)},27118:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnSchemaValidationError=void 0;class AsnSchemaValidationError extends Error{constructor(){super(...arguments);this.schemas=[]}}pe.AsnSchemaValidationError=AsnSchemaValidationError},74750:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isArrayEqual=pe.isTypeOfArray=pe.isConvertible=void 0;function isConvertible(R){if(typeof R==="function"&&R.prototype){if(R.prototype.toASN&&R.prototype.fromASN){return true}else{return isConvertible(R.prototype)}}else{return!!(R&&typeof R==="object"&&"toASN"in R&&"fromASN"in R)}}pe.isConvertible=isConvertible;function isTypeOfArray(R){var pe;if(R){const Ae=Object.getPrototypeOf(R);if(((pe=Ae===null||Ae===void 0?void 0:Ae.prototype)===null||pe===void 0?void 0:pe.constructor)===Array){return true}return isTypeOfArray(Ae)}return false}pe.isTypeOfArray=isTypeOfArray;function isArrayEqual(R,pe){if(!(R&&pe)){return false}if(R.byteLength!==pe.byteLength){return false}const Ae=new Uint8Array(R);const he=new Uint8Array(pe);for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnSerializer=pe.AsnParser=pe.AsnPropTypes=pe.AsnTypeTypes=pe.AsnSetType=pe.AsnSequenceType=pe.AsnChoiceType=pe.AsnType=pe.AsnProp=void 0;const he=Ae(4351);he.__exportStar(Ae(54091),pe);he.__exportStar(Ae(80756),pe);var ge=Ae(10157);Object.defineProperty(pe,"AsnProp",{enumerable:true,get:function(){return ge.AsnProp}});Object.defineProperty(pe,"AsnType",{enumerable:true,get:function(){return ge.AsnType}});Object.defineProperty(pe,"AsnChoiceType",{enumerable:true,get:function(){return ge.AsnChoiceType}});Object.defineProperty(pe,"AsnSequenceType",{enumerable:true,get:function(){return ge.AsnSequenceType}});Object.defineProperty(pe,"AsnSetType",{enumerable:true,get:function(){return ge.AsnSetType}});var ye=Ae(40378);Object.defineProperty(pe,"AsnTypeTypes",{enumerable:true,get:function(){return ye.AsnTypeTypes}});Object.defineProperty(pe,"AsnPropTypes",{enumerable:true,get:function(){return ye.AsnPropTypes}});var me=Ae(89660);Object.defineProperty(pe,"AsnParser",{enumerable:true,get:function(){return me.AsnParser}});var ve=Ae(37770);Object.defineProperty(pe,"AsnSerializer",{enumerable:true,get:function(){return ve.AsnSerializer}});he.__exportStar(Ae(56194),pe);he.__exportStar(Ae(53795),pe);he.__exportStar(Ae(10913),pe)},53795:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnArray=void 0;class AsnArray extends Array{constructor(R=[]){if(typeof R==="number"){super(R)}else{super();for(const pe of R){this.push(pe)}}}}pe.AsnArray=AsnArray},89660:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnParser=void 0;const he=Ae(3702);const ge=Ae(40378);const ye=Ae(54091);const me=Ae(56194);const ve=Ae(74750);const be=Ae(54652);class AsnParser{static parse(R,pe){const Ae=he.fromBER(R);if(Ae.result.error){throw new Error(Ae.result.error)}const ge=this.fromASN(Ae.result,pe);return ge}static fromASN(R,pe){var Ae;try{if((0,ve.isConvertible)(pe)){const Ae=new pe;return Ae.fromASN(R)}const Ee=be.schemaStorage.get(pe);be.schemaStorage.cache(pe);let we=Ee.schema;if(R.constructor===he.Constructed&&Ee.type!==ge.AsnTypeTypes.Choice){we=new he.Constructed({idBlock:{tagClass:3,tagNumber:R.idBlock.tagNumber},value:Ee.schema.valueBlock.value});for(const pe in Ee.items){delete R[pe]}}const Ce=he.compareSchema({},R,we);if(!Ce.verified){throw new me.AsnSchemaValidationError(`Data does not match to ${pe.name} ASN1 schema. ${Ce.result.error}`)}const _e=new pe;if((0,ve.isTypeOfArray)(pe)){if(!("value"in R.valueBlock&&Array.isArray(R.valueBlock.value))){throw new Error(`Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.`)}const Ae=Ee.itemType;if(typeof Ae==="number"){const he=ye.defaultConverter(Ae);if(!he){throw new Error(`Cannot get default converter for array item of ${pe.name} ASN1 schema`)}return pe.from(R.valueBlock.value,(R=>he.fromASN(R)))}else{return pe.from(R.valueBlock.value,(R=>this.fromASN(R,Ae)))}}for(const R in Ee.items){const pe=Ce.result[R];if(!pe){continue}const ye=Ee.items[R];const me=ye.type;if(typeof me==="number"||(0,ve.isConvertible)(me)){const be=(Ae=ye.converter)!==null&&Ae!==void 0?Ae:(0,ve.isConvertible)(me)?new me:null;if(!be){throw new Error("Converter is empty")}if(ye.repeated){if(ye.implicit){const Ae=ye.repeated==="sequence"?he.Sequence:he.Set;const ge=new Ae;ge.valueBlock=pe.valueBlock;const me=he.fromBER(ge.toBER(false));if(me.offset===-1){throw new Error(`Cannot parse the child item. ${me.result.error}`)}if(!("value"in me.result.valueBlock&&Array.isArray(me.result.valueBlock.value))){throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.")}const ve=me.result.valueBlock.value;_e[R]=Array.from(ve,(R=>be.fromASN(R)))}else{_e[R]=Array.from(pe,(R=>be.fromASN(R)))}}else{let Ae=pe;if(ye.implicit){let R;if((0,ve.isConvertible)(me)){R=(new me).toSchema("")}else{const pe=ge.AsnPropTypes[me];const Ae=he[pe];if(!Ae){throw new Error(`Cannot get '${pe}' class from asn1js module`)}R=new Ae}R.valueBlock=Ae.valueBlock;Ae=he.fromBER(R.toBER(false)).result}_e[R]=be.fromASN(Ae)}}else{if(ye.repeated){if(!Array.isArray(pe)){throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.")}_e[R]=Array.from(pe,(R=>this.fromASN(R,me)))}else{_e[R]=this.fromASN(pe,me)}}}return _e}catch(R){if(R instanceof me.AsnSchemaValidationError){R.schemas.push(pe.name)}throw R}}}pe.AsnParser=AsnParser},93021:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnSchemaStorage=void 0;const he=Ae(3702);const ge=Ae(40378);const ye=Ae(74750);class AsnSchemaStorage{constructor(){this.items=new WeakMap}has(R){return this.items.has(R)}get(R,pe=false){const Ae=this.items.get(R);if(!Ae){throw new Error(`Cannot get schema for '${R.prototype.constructor.name}' target`)}if(pe&&!Ae.schema){throw new Error(`Schema '${R.prototype.constructor.name}' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'.`)}return Ae}cache(R){const pe=this.get(R);if(!pe.schema){pe.schema=this.create(R,true)}}createDefault(R){const pe={type:ge.AsnTypeTypes.Sequence,items:{}};const Ae=this.findParentSchema(R);if(Ae){Object.assign(pe,Ae);pe.items=Object.assign({},pe.items,Ae.items)}return pe}create(R,pe){const Ae=this.items.get(R)||this.createDefault(R);const me=[];for(const R in Ae.items){const ve=Ae.items[R];const be=pe?R:"";let Ee;if(typeof ve.type==="number"){const R=ge.AsnPropTypes[ve.type];const pe=he[R];if(!pe){throw new Error(`Cannot get ASN1 class by name '${R}'`)}Ee=new pe({name:be})}else if((0,ye.isConvertible)(ve.type)){const R=new ve.type;Ee=R.toSchema(be)}else if(ve.optional){const R=this.get(ve.type);if(R.type===ge.AsnTypeTypes.Choice){Ee=new he.Any({name:be})}else{Ee=this.create(ve.type,false);Ee.name=be}}else{Ee=new he.Any({name:be})}const we=!!ve.optional||ve.defaultValue!==undefined;if(ve.repeated){Ee.name="";const R=ve.repeated==="set"?he.Set:he.Sequence;Ee=new R({name:"",value:[new he.Repeated({name:be,value:Ee})]})}if(ve.context!==null&&ve.context!==undefined){if(ve.implicit){if(typeof ve.type==="number"||(0,ye.isConvertible)(ve.type)){const R=ve.repeated?he.Constructed:he.Primitive;me.push(new R({name:be,optional:we,idBlock:{tagClass:3,tagNumber:ve.context}}))}else{this.cache(ve.type);const R=!!ve.repeated;let pe=!R?this.get(ve.type,true).schema:Ee;pe="valueBlock"in pe?pe.valueBlock.value:pe.value;me.push(new he.Constructed({name:!R?be:"",optional:we,idBlock:{tagClass:3,tagNumber:ve.context},value:pe}))}}else{me.push(new he.Constructed({optional:we,idBlock:{tagClass:3,tagNumber:ve.context},value:[Ee]}))}}else{Ee.optional=we;me.push(Ee)}}switch(Ae.type){case ge.AsnTypeTypes.Sequence:return new he.Sequence({value:me,name:""});case ge.AsnTypeTypes.Set:return new he.Set({value:me,name:""});case ge.AsnTypeTypes.Choice:return new he.Choice({value:me,name:""});default:throw new Error(`Unsupported ASN1 type in use`)}}set(R,pe){this.items.set(R,pe);return this}findParentSchema(R){const pe=Object.getPrototypeOf(R);if(pe){const R=this.items.get(pe);return R||this.findParentSchema(pe)}return null}}pe.AsnSchemaStorage=AsnSchemaStorage},37770:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AsnSerializer=void 0;const he=Ae(3702);const ge=Ae(54091);const ye=Ae(40378);const me=Ae(74750);const ve=Ae(54652);class AsnSerializer{static serialize(R){if(R instanceof he.BaseBlock){return R.toBER(false)}return this.toASN(R).toBER(false)}static toASN(R){if(R&&typeof R==="object"&&(0,me.isConvertible)(R)){return R.toASN()}if(!(R&&typeof R==="object")){throw new TypeError("Parameter 1 should be type of Object.")}const pe=R.constructor;const Ae=ve.schemaStorage.get(pe);ve.schemaStorage.cache(pe);let be=[];if(Ae.itemType){if(!Array.isArray(R)){throw new TypeError("Parameter 1 should be type of Array.")}if(typeof Ae.itemType==="number"){const he=ge.defaultConverter(Ae.itemType);if(!he){throw new Error(`Cannot get default converter for array item of ${pe.name} ASN1 schema`)}be=R.map((R=>he.toASN(R)))}else{be=R.map((R=>this.toAsnItem({type:Ae.itemType},"[]",pe,R)))}}else{for(const ge in Ae.items){const ye=Ae.items[ge];const ve=R[ge];if(ve===undefined||ye.defaultValue===ve||typeof ye.defaultValue==="object"&&typeof ve==="object"&&(0,me.isArrayEqual)(this.serialize(ye.defaultValue),this.serialize(ve))){continue}const Ee=AsnSerializer.toAsnItem(ye,ge,pe,ve);if(typeof ye.context==="number"){if(ye.implicit){if(!ye.repeated&&(typeof ye.type==="number"||(0,me.isConvertible)(ye.type))){const R={};R.valueHex=Ee instanceof he.Null?Ee.valueBeforeDecodeView:Ee.valueBlock.toBER();be.push(new he.Primitive({optional:ye.optional,idBlock:{tagClass:3,tagNumber:ye.context},...R}))}else{be.push(new he.Constructed({optional:ye.optional,idBlock:{tagClass:3,tagNumber:ye.context},value:Ee.valueBlock.value}))}}else{be.push(new he.Constructed({optional:ye.optional,idBlock:{tagClass:3,tagNumber:ye.context},value:[Ee]}))}}else if(ye.repeated){be=be.concat(Ee)}else{be.push(Ee)}}}let Ee;switch(Ae.type){case ye.AsnTypeTypes.Sequence:Ee=new he.Sequence({value:be});break;case ye.AsnTypeTypes.Set:Ee=new he.Set({value:be});break;case ye.AsnTypeTypes.Choice:if(!be[0]){throw new Error(`Schema '${pe.name}' has wrong data. Choice cannot be empty.`)}Ee=be[0];break}return Ee}static toAsnItem(R,pe,Ae,ge){let me;if(typeof R.type==="number"){const ve=R.converter;if(!ve){throw new Error(`Property '${pe}' doesn't have converter for type ${ye.AsnPropTypes[R.type]} in schema '${Ae.name}'`)}if(R.repeated){if(!Array.isArray(ge)){throw new TypeError("Parameter 'objProp' should be type of Array.")}const pe=Array.from(ge,(R=>ve.toASN(R)));const Ae=R.repeated==="sequence"?he.Sequence:he.Set;me=new Ae({value:pe})}else{me=ve.toASN(ge)}}else{if(R.repeated){if(!Array.isArray(ge)){throw new TypeError("Parameter 'objProp' should be type of Array.")}const pe=Array.from(ge,(R=>this.toASN(R)));const Ae=R.repeated==="sequence"?he.Sequence:he.Set;me=new Ae({value:pe})}else{me=this.toASN(ge)}}return me}}pe.AsnSerializer=AsnSerializer},54652:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.schemaStorage=void 0;const he=Ae(93021);pe.schemaStorage=new he.AsnSchemaStorage},63897:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.BitString=void 0;const he=Ae(3702);const ge=Ae(22420);class BitString{constructor(R,pe=0){this.unusedBits=0;this.value=new ArrayBuffer(0);if(R){if(typeof R==="number"){this.fromNumber(R)}else if(ge.BufferSourceConverter.isBufferSource(R)){this.unusedBits=pe;this.value=ge.BufferSourceConverter.toArrayBuffer(R)}else{throw TypeError("Unsupported type of 'params' argument for BitString")}}}fromASN(R){if(!(R instanceof he.BitString)){throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString")}this.unusedBits=R.valueBlock.unusedBits;this.value=R.valueBlock.valueHex;return this}toASN(){return new he.BitString({unusedBits:this.unusedBits,valueHex:this.value})}toSchema(R){return new he.BitString({name:R})}toNumber(){let R="";const pe=new Uint8Array(this.value);for(const Ae of pe){R+=Ae.toString(2).padStart(8,"0")}R=R.split("").reverse().join("");if(this.unusedBits){R=R.slice(this.unusedBits).padStart(this.unusedBits,"0")}return parseInt(R,2)}fromNumber(R){let pe=R.toString(2);const Ae=pe.length+7>>3;this.unusedBits=(Ae<<3)-pe.length;const he=new Uint8Array(Ae);pe=pe.padStart(Ae<<3,"0").split("").reverse().join("");let ge=0;while(ge{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(63897),pe);he.__exportStar(Ae(72060),pe)},72060:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.OctetString=void 0;const he=Ae(3702);const ge=Ae(22420);class OctetString{get byteLength(){return this.buffer.byteLength}get byteOffset(){return 0}constructor(R){if(typeof R==="number"){this.buffer=new ArrayBuffer(R)}else{if(ge.BufferSourceConverter.isBufferSource(R)){this.buffer=ge.BufferSourceConverter.toArrayBuffer(R)}else if(Array.isArray(R)){this.buffer=new Uint8Array(R)}else{this.buffer=new ArrayBuffer(0)}}}fromASN(R){if(!(R instanceof he.OctetString)){throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString")}this.buffer=R.valueBlock.valueHex;return this}toASN(){return new he.OctetString({valueHex:this.buffer})}toSchema(R){return new he.OctetString({name:R})}}pe.OctetString=OctetString},33407:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ACClearAttrs=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class ACClearAttrs{constructor(R={}){this.acIssuer=new ye.GeneralName;this.acSerial=0;this.attrs=[];Object.assign(this,R)}}pe.ACClearAttrs=ACClearAttrs;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName})],ACClearAttrs.prototype,"acIssuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],ACClearAttrs.prototype,"acSerial",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Attribute,repeated:"sequence"})],ACClearAttrs.prototype,"attrs",void 0)},7881:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AAControls=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38160);class AAControls{constructor(R={}){this.permitUnSpecified=true;Object.assign(this,R)}}pe.AAControls=AAControls;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,optional:true})],AAControls.prototype,"pathLenConstraint",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AttrSpec,implicit:true,context:0,optional:true})],AAControls.prototype,"permittedAttrs",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AttrSpec,implicit:true,context:1,optional:true})],AAControls.prototype,"excludedAttrs",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Boolean,defaultValue:true})],AAControls.prototype,"permitUnSpecified",void 0)},30480:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AttCertIssuer=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(5787);let ve=class AttCertIssuer{constructor(R={}){Object.assign(this,R)}};pe.AttCertIssuer=ve;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName,repeated:"sequence"})],ve.prototype,"v1Form",void 0);he.__decorate([(0,ge.AsnProp)({type:me.V2Form,context:0,implicit:true})],ve.prototype,"v2Form",void 0);pe.AttCertIssuer=ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve)},45356:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AttCertValidityPeriod=void 0;const he=Ae(4351);const ge=Ae(53499);class AttCertValidityPeriod{constructor(R={}){this.notBeforeTime=new Date;this.notAfterTime=new Date;Object.assign(this,R)}}pe.AttCertValidityPeriod=AttCertValidityPeriod;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime})],AttCertValidityPeriod.prototype,"notBeforeTime",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime})],AttCertValidityPeriod.prototype,"notAfterTime",void 0)},38160:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.AttrSpec=void 0;const ge=Ae(4351);const ye=Ae(53499);let me=he=class AttrSpec extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.AttrSpec=me;pe.AttrSpec=me=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:ye.AsnPropTypes.ObjectIdentifier})],me)},67943:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AttributeCertificate=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(85881);class AttributeCertificate{constructor(R={}){this.acinfo=new me.AttributeCertificateInfo;this.signatureAlgorithm=new ye.AlgorithmIdentifier;this.signatureValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.AttributeCertificate=AttributeCertificate;he.__decorate([(0,ge.AsnProp)({type:me.AttributeCertificateInfo})],AttributeCertificate.prototype,"acinfo",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],AttributeCertificate.prototype,"signatureAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],AttributeCertificate.prototype,"signatureValue",void 0)},85881:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AttributeCertificateInfo=pe.AttCertVersion=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(97195);const ve=Ae(30480);const be=Ae(45356);var Ee;(function(R){R[R["v2"]=1]="v2"})(Ee||(pe.AttCertVersion=Ee={}));class AttributeCertificateInfo{constructor(R={}){this.version=Ee.v2;this.holder=new me.Holder;this.issuer=new ve.AttCertIssuer;this.signature=new ye.AlgorithmIdentifier;this.serialNumber=new ArrayBuffer(0);this.attrCertValidityPeriod=new be.AttCertValidityPeriod;this.attributes=[];Object.assign(this,R)}}pe.AttributeCertificateInfo=AttributeCertificateInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],AttributeCertificateInfo.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Holder})],AttributeCertificateInfo.prototype,"holder",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.AttCertIssuer})],AttributeCertificateInfo.prototype,"issuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],AttributeCertificateInfo.prototype,"signature",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],AttributeCertificateInfo.prototype,"serialNumber",void 0);he.__decorate([(0,ge.AsnProp)({type:be.AttCertValidityPeriod})],AttributeCertificateInfo.prototype,"attrCertValidityPeriod",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Attribute,repeated:"sequence"})],AttributeCertificateInfo.prototype,"attributes",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString,optional:true})],AttributeCertificateInfo.prototype,"issuerUniqueID",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Extensions,optional:true})],AttributeCertificateInfo.prototype,"extensions",void 0)},2519:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ClassList=pe.ClassListFlags=void 0;const he=Ae(53499);var ge;(function(R){R[R["unmarked"]=1]="unmarked";R[R["unclassified"]=2]="unclassified";R[R["restricted"]=4]="restricted";R[R["confidential"]=8]="confidential";R[R["secret"]=16]="secret";R[R["topSecret"]=32]="topSecret"})(ge||(pe.ClassListFlags=ge={}));class ClassList extends he.BitString{}pe.ClassList=ClassList},31246:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Clearance=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(2519);const me=Ae(46789);class Clearance{constructor(R={}){this.policyId="";this.classList=new ye.ClassList(ye.ClassListFlags.unclassified);Object.assign(this,R)}}pe.Clearance=Clearance;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],Clearance.prototype,"policyId",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.ClassList,defaultValue:new ye.ClassList(ye.ClassListFlags.unclassified)})],Clearance.prototype,"classList",void 0);he.__decorate([(0,ge.AsnProp)({type:me.SecurityCategory,repeated:"set"})],Clearance.prototype,"securityCategories",void 0)},97195:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Holder=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(10462);const me=Ae(82288);const ve=Ae(51952);class Holder{constructor(R={}){Object.assign(this,R)}}pe.Holder=Holder;he.__decorate([(0,ge.AsnProp)({type:ye.IssuerSerial,implicit:true,context:0,optional:true})],Holder.prototype,"baseCertificateID",void 0);he.__decorate([(0,ge.AsnProp)({type:me.GeneralNames,implicit:true,context:1,optional:true})],Holder.prototype,"entityName",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.ObjectDigestInfo,implicit:true,context:2,optional:true})],Holder.prototype,"objectDigestInfo",void 0)},82639:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IetfAttrSyntax=pe.IetfAttrSyntaxValueChoices=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class IetfAttrSyntaxValueChoices{constructor(R={}){Object.assign(this,R)}}pe.IetfAttrSyntaxValueChoices=IetfAttrSyntaxValueChoices;he.__decorate([(0,ge.AsnProp)({type:ge.OctetString})],IetfAttrSyntaxValueChoices.prototype,"cotets",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],IetfAttrSyntaxValueChoices.prototype,"oid",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Utf8String})],IetfAttrSyntaxValueChoices.prototype,"string",void 0);class IetfAttrSyntax{constructor(R={}){this.values=[];Object.assign(this,R)}}pe.IetfAttrSyntax=IetfAttrSyntax;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralNames,implicit:true,context:0,optional:true})],IetfAttrSyntax.prototype,"policyAuthority",void 0);he.__decorate([(0,ge.AsnProp)({type:IetfAttrSyntaxValueChoices,repeated:"sequence"})],IetfAttrSyntax.prototype,"values",void 0)},64263:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(33407),pe);he.__exportStar(Ae(7881),pe);he.__exportStar(Ae(30480),pe);he.__exportStar(Ae(45356),pe);he.__exportStar(Ae(38160),pe);he.__exportStar(Ae(67943),pe);he.__exportStar(Ae(85881),pe);he.__exportStar(Ae(2519),pe);he.__exportStar(Ae(31246),pe);he.__exportStar(Ae(97195),pe);he.__exportStar(Ae(82639),pe);he.__exportStar(Ae(10462),pe);he.__exportStar(Ae(51952),pe);he.__exportStar(Ae(59851),pe);he.__exportStar(Ae(13945),pe);he.__exportStar(Ae(89422),pe);he.__exportStar(Ae(46789),pe);he.__exportStar(Ae(80072),pe);he.__exportStar(Ae(27260),pe);he.__exportStar(Ae(5787),pe)},10462:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IssuerSerial=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class IssuerSerial{constructor(R={}){this.issuer=new ye.GeneralNames;this.serial=new ArrayBuffer(0);this.issuerUID=new ArrayBuffer(0);Object.assign(this,R)}}pe.IssuerSerial=IssuerSerial;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralNames})],IssuerSerial.prototype,"issuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],IssuerSerial.prototype,"serial",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString,optional:true})],IssuerSerial.prototype,"issuerUID",void 0)},51952:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ObjectDigestInfo=pe.DigestedObjectType=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);var me;(function(R){R[R["publicKey"]=0]="publicKey";R[R["publicKeyCert"]=1]="publicKeyCert";R[R["otherObjectTypes"]=2]="otherObjectTypes"})(me||(pe.DigestedObjectType=me={}));class ObjectDigestInfo{constructor(R={}){this.digestedObjectType=me.publicKey;this.digestAlgorithm=new ye.AlgorithmIdentifier;this.objectDigest=new ArrayBuffer(0);Object.assign(this,R)}}pe.ObjectDigestInfo=ObjectDigestInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Enumerated})],ObjectDigestInfo.prototype,"digestedObjectType",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier,optional:true})],ObjectDigestInfo.prototype,"otherObjectTypeID",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],ObjectDigestInfo.prototype,"digestAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],ObjectDigestInfo.prototype,"objectDigest",void 0)},59851:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_at_clearance=pe.id_at_role=pe.id_at=pe.id_aca_encAttrs=pe.id_aca_group=pe.id_aca_chargingIdentity=pe.id_aca_accessIdentity=pe.id_aca_authenticationInfo=pe.id_aca=pe.id_ce_targetInformation=pe.id_pe_ac_proxying=pe.id_pe_aaControls=pe.id_pe_ac_auditIdentity=void 0;const he=Ae(82288);pe.id_pe_ac_auditIdentity=`${he.id_pe}.4`;pe.id_pe_aaControls=`${he.id_pe}.6`;pe.id_pe_ac_proxying=`${he.id_pe}.10`;pe.id_ce_targetInformation=`${he.id_ce}.55`;pe.id_aca=`${he.id_pkix}.10`;pe.id_aca_authenticationInfo=`${pe.id_aca}.1`;pe.id_aca_accessIdentity=`${pe.id_aca}.2`;pe.id_aca_chargingIdentity=`${pe.id_aca}.3`;pe.id_aca_group=`${pe.id_aca}.4`;pe.id_aca_encAttrs=`${pe.id_aca}.6`;pe.id_at="2.5.4";pe.id_at_role=`${pe.id_at}.72`;pe.id_at_clearance="2.5.1.5.55"},13945:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.ProxyInfo=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(27260);let ve=he=class ProxyInfo extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.ProxyInfo=ve;pe.ProxyInfo=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.Targets})],ve)},89422:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RoleSyntax=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class RoleSyntax{constructor(R={}){Object.assign(this,R)}}pe.RoleSyntax=RoleSyntax;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralNames,implicit:true,context:0,optional:true})],RoleSyntax.prototype,"roleAuthority",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName,implicit:true,context:1})],RoleSyntax.prototype,"roleName",void 0)},46789:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SecurityCategory=void 0;const he=Ae(4351);const ge=Ae(53499);class SecurityCategory{constructor(R={}){this.type="";this.value=new ArrayBuffer(0);Object.assign(this,R)}}pe.SecurityCategory=SecurityCategory;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier,implicit:true,context:0})],SecurityCategory.prototype,"type",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,implicit:true,context:1})],SecurityCategory.prototype,"value",void 0)},80072:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SvceAuthInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);class SvceAuthInfo{constructor(R={}){this.service=new ye.GeneralName;this.ident=new ye.GeneralName;Object.assign(this,R)}}pe.SvceAuthInfo=SvceAuthInfo;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName})],SvceAuthInfo.prototype,"service",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName})],SvceAuthInfo.prototype,"ident",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.OctetString,optional:true})],SvceAuthInfo.prototype,"authInfo",void 0)},27260:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.Targets=pe.Target=pe.TargetCert=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(82288);const ve=Ae(10462);const be=Ae(51952);class TargetCert{constructor(R={}){this.targetCertificate=new ve.IssuerSerial;Object.assign(this,R)}}pe.TargetCert=TargetCert;ge.__decorate([(0,ye.AsnProp)({type:ve.IssuerSerial})],TargetCert.prototype,"targetCertificate",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.GeneralName,optional:true})],TargetCert.prototype,"targetName",void 0);ge.__decorate([(0,ye.AsnProp)({type:be.ObjectDigestInfo,optional:true})],TargetCert.prototype,"certDigestInfo",void 0);let Ee=class Target{constructor(R={}){Object.assign(this,R)}};pe.Target=Ee;ge.__decorate([(0,ye.AsnProp)({type:me.GeneralName,context:0,implicit:true})],Ee.prototype,"targetName",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.GeneralName,context:1,implicit:true})],Ee.prototype,"targetGroup",void 0);ge.__decorate([(0,ye.AsnProp)({type:TargetCert,context:2,implicit:true})],Ee.prototype,"targetCert",void 0);pe.Target=Ee=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],Ee);let we=he=class Targets extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.Targets=we;pe.Targets=we=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:Ee})],we)},5787:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.V2Form=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(82288);const me=Ae(10462);const ve=Ae(51952);class V2Form{constructor(R={}){Object.assign(this,R)}}pe.V2Form=V2Form;he.__decorate([(0,ge.AsnProp)({type:ye.GeneralNames,optional:true})],V2Form.prototype,"issuerName",void 0);he.__decorate([(0,ge.AsnProp)({type:me.IssuerSerial,context:0,implicit:true,optional:true})],V2Form.prototype,"baseCertificateID",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.ObjectDigestInfo,context:1,implicit:true,optional:true})],V2Form.prototype,"objectDigestInfo",void 0)},38266:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AlgorithmIdentifier=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(22420);class AlgorithmIdentifier{constructor(R={}){this.algorithm="";Object.assign(this,R)}isEqual(R){return R instanceof AlgorithmIdentifier&&R.algorithm==this.algorithm&&(R.parameters&&this.parameters&&ye.isEqual(R.parameters,this.parameters)||R.parameters===this.parameters)}}pe.AlgorithmIdentifier=AlgorithmIdentifier;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],AlgorithmIdentifier.prototype,"algorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,optional:true})],AlgorithmIdentifier.prototype,"parameters",void 0)},2171:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Attribute=void 0;const he=Ae(4351);const ge=Ae(53499);class Attribute{constructor(R={}){this.type="";this.values=[];Object.assign(this,R)}}pe.Attribute=Attribute;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],Attribute.prototype,"type",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,repeated:"set"})],Attribute.prototype,"values",void 0)},25974:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Certificate=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38266);const me=Ae(49117);class Certificate{constructor(R={}){this.tbsCertificate=new me.TBSCertificate;this.signatureAlgorithm=new ye.AlgorithmIdentifier;this.signatureValue=new ArrayBuffer(0);Object.assign(this,R)}}pe.Certificate=Certificate;he.__decorate([(0,ge.AsnProp)({type:me.TBSCertificate})],Certificate.prototype,"tbsCertificate",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],Certificate.prototype,"signatureAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],Certificate.prototype,"signatureValue",void 0)},13554:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CertificateList=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38266);const me=Ae(13113);class CertificateList{constructor(R={}){this.tbsCertList=new me.TBSCertList;this.signatureAlgorithm=new ye.AlgorithmIdentifier;this.signature=new ArrayBuffer(0);Object.assign(this,R)}}pe.CertificateList=CertificateList;he.__decorate([(0,ge.AsnProp)({type:me.TBSCertList})],CertificateList.prototype,"tbsCertList",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],CertificateList.prototype,"signatureAlgorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],CertificateList.prototype,"signature",void 0)},77908:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.Extensions=pe.Extension=void 0;const ge=Ae(4351);const ye=Ae(53499);class Extension{constructor(R={}){this.extnID="";this.critical=Extension.CRITICAL;this.extnValue=new ye.OctetString;Object.assign(this,R)}}pe.Extension=Extension;Extension.CRITICAL=false;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],Extension.prototype,"extnID",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Boolean,defaultValue:Extension.CRITICAL})],Extension.prototype,"critical",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.OctetString})],Extension.prototype,"extnValue",void 0);let me=he=class Extensions extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.Extensions=me;pe.Extensions=me=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:Extension})],me)},677:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.AuthorityInfoAccessSyntax=pe.AccessDescription=pe.id_pe_authorityInfoAccess=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(83670);const ve=Ae(70725);pe.id_pe_authorityInfoAccess=`${ve.id_pe}.1`;class AccessDescription{constructor(R={}){this.accessMethod="";this.accessLocation=new me.GeneralName;Object.assign(this,R)}}pe.AccessDescription=AccessDescription;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],AccessDescription.prototype,"accessMethod",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.GeneralName})],AccessDescription.prototype,"accessLocation",void 0);let be=he=class AuthorityInfoAccessSyntax extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.AuthorityInfoAccessSyntax=be;pe.AuthorityInfoAccessSyntax=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:AccessDescription})],be)},11583:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.AuthorityKeyIdentifier=pe.KeyIdentifier=pe.id_ce_authorityKeyIdentifier=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(83670);const me=Ae(70725);pe.id_ce_authorityKeyIdentifier=`${me.id_ce}.35`;class KeyIdentifier extends ge.OctetString{}pe.KeyIdentifier=KeyIdentifier;class AuthorityKeyIdentifier{constructor(R={}){if(R){Object.assign(this,R)}}}pe.AuthorityKeyIdentifier=AuthorityKeyIdentifier;he.__decorate([(0,ge.AsnProp)({type:KeyIdentifier,context:0,optional:true,implicit:true})],AuthorityKeyIdentifier.prototype,"keyIdentifier",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.GeneralName,context:1,optional:true,implicit:true,repeated:"sequence"})],AuthorityKeyIdentifier.prototype,"authorityCertIssuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:2,optional:true,implicit:true,converter:ge.AsnIntegerArrayBufferConverter})],AuthorityKeyIdentifier.prototype,"authorityCertSerialNumber",void 0)},20621:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.BasicConstraints=pe.id_ce_basicConstraints=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_basicConstraints=`${ye.id_ce}.19`;class BasicConstraints{constructor(R={}){this.cA=false;Object.assign(this,R)}}pe.BasicConstraints=BasicConstraints;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Boolean,defaultValue:false})],BasicConstraints.prototype,"cA",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,optional:true})],BasicConstraints.prototype,"pathLenConstraint",void 0)},93151:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.CertificateIssuer=pe.id_ce_certificateIssuer=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(13201);const ve=Ae(70725);pe.id_ce_certificateIssuer=`${ve.id_ce}.29`;let be=he=class CertificateIssuer extends me.GeneralNames{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.CertificateIssuer=be;pe.CertificateIssuer=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],be)},44157:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.CertificatePolicies=pe.PolicyInformation=pe.PolicyQualifierInfo=pe.Qualifier=pe.UserNotice=pe.NoticeReference=pe.DisplayText=pe.id_ce_certificatePolicies_anyPolicy=pe.id_ce_certificatePolicies=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(70725);pe.id_ce_certificatePolicies=`${me.id_ce}.32`;pe.id_ce_certificatePolicies_anyPolicy=`${pe.id_ce_certificatePolicies}.0`;let ve=class DisplayText{constructor(R={}){Object.assign(this,R)}toString(){return this.ia5String||this.visibleString||this.bmpString||this.utf8String||""}};pe.DisplayText=ve;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.IA5String})],ve.prototype,"ia5String",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.VisibleString})],ve.prototype,"visibleString",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.BmpString})],ve.prototype,"bmpString",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Utf8String})],ve.prototype,"utf8String",void 0);pe.DisplayText=ve=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],ve);class NoticeReference{constructor(R={}){this.organization=new ve;this.noticeNumbers=[];Object.assign(this,R)}}pe.NoticeReference=NoticeReference;ge.__decorate([(0,ye.AsnProp)({type:ve})],NoticeReference.prototype,"organization",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,repeated:"sequence"})],NoticeReference.prototype,"noticeNumbers",void 0);class UserNotice{constructor(R={}){Object.assign(this,R)}}pe.UserNotice=UserNotice;ge.__decorate([(0,ye.AsnProp)({type:NoticeReference,optional:true})],UserNotice.prototype,"noticeRef",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve,optional:true})],UserNotice.prototype,"explicitText",void 0);let be=class Qualifier{constructor(R={}){Object.assign(this,R)}};pe.Qualifier=be;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.IA5String})],be.prototype,"cPSuri",void 0);ge.__decorate([(0,ye.AsnProp)({type:UserNotice})],be.prototype,"userNotice",void 0);pe.Qualifier=be=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],be);class PolicyQualifierInfo{constructor(R={}){this.policyQualifierId="";this.qualifier=new ArrayBuffer(0);Object.assign(this,R)}}pe.PolicyQualifierInfo=PolicyQualifierInfo;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],PolicyQualifierInfo.prototype,"policyQualifierId",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Any})],PolicyQualifierInfo.prototype,"qualifier",void 0);class PolicyInformation{constructor(R={}){this.policyIdentifier="";Object.assign(this,R)}}pe.PolicyInformation=PolicyInformation;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],PolicyInformation.prototype,"policyIdentifier",void 0);ge.__decorate([(0,ye.AsnProp)({type:PolicyQualifierInfo,repeated:"sequence",optional:true})],PolicyInformation.prototype,"policyQualifiers",void 0);let Ee=he=class CertificatePolicies extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.CertificatePolicies=Ee;pe.CertificatePolicies=Ee=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:PolicyInformation})],Ee)},71335:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.BaseCRLNumber=pe.id_ce_deltaCRLIndicator=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);const me=Ae(88777);pe.id_ce_deltaCRLIndicator=`${ye.id_ce}.27`;let ve=class BaseCRLNumber extends me.CRLNumber{};pe.BaseCRLNumber=ve;pe.BaseCRLNumber=ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve)},50499:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.CRLDistributionPoints=pe.DistributionPoint=pe.DistributionPointName=pe.Reason=pe.ReasonFlags=pe.id_ce_cRLDistributionPoints=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(17429);const ve=Ae(83670);const be=Ae(70725);pe.id_ce_cRLDistributionPoints=`${be.id_ce}.31`;var Ee;(function(R){R[R["unused"]=1]="unused";R[R["keyCompromise"]=2]="keyCompromise";R[R["cACompromise"]=4]="cACompromise";R[R["affiliationChanged"]=8]="affiliationChanged";R[R["superseded"]=16]="superseded";R[R["cessationOfOperation"]=32]="cessationOfOperation";R[R["certificateHold"]=64]="certificateHold";R[R["privilegeWithdrawn"]=128]="privilegeWithdrawn";R[R["aACompromise"]=256]="aACompromise"})(Ee||(pe.ReasonFlags=Ee={}));class Reason extends ye.BitString{toJSON(){const R=[];const pe=this.toNumber();if(pe&Ee.aACompromise){R.push("aACompromise")}if(pe&Ee.affiliationChanged){R.push("affiliationChanged")}if(pe&Ee.cACompromise){R.push("cACompromise")}if(pe&Ee.certificateHold){R.push("certificateHold")}if(pe&Ee.cessationOfOperation){R.push("cessationOfOperation")}if(pe&Ee.keyCompromise){R.push("keyCompromise")}if(pe&Ee.privilegeWithdrawn){R.push("privilegeWithdrawn")}if(pe&Ee.superseded){R.push("superseded")}if(pe&Ee.unused){R.push("unused")}return R}toString(){return`[${this.toJSON().join(", ")}]`}}pe.Reason=Reason;let we=class DistributionPointName{constructor(R={}){Object.assign(this,R)}};pe.DistributionPointName=we;ge.__decorate([(0,ye.AsnProp)({type:ve.GeneralName,context:0,repeated:"sequence",implicit:true})],we.prototype,"fullName",void 0);ge.__decorate([(0,ye.AsnProp)({type:me.RelativeDistinguishedName,context:1,implicit:true})],we.prototype,"nameRelativeToCRLIssuer",void 0);pe.DistributionPointName=we=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Choice})],we);class DistributionPoint{constructor(R={}){Object.assign(this,R)}}pe.DistributionPoint=DistributionPoint;ge.__decorate([(0,ye.AsnProp)({type:we,context:0,optional:true})],DistributionPoint.prototype,"distributionPoint",void 0);ge.__decorate([(0,ye.AsnProp)({type:Reason,context:1,optional:true,implicit:true})],DistributionPoint.prototype,"reasons",void 0);ge.__decorate([(0,ye.AsnProp)({type:ve.GeneralName,context:2,optional:true,repeated:"sequence",implicit:true})],DistributionPoint.prototype,"cRLIssuer",void 0);let Ce=he=class CRLDistributionPoints extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.CRLDistributionPoints=Ce;pe.CRLDistributionPoints=Ce=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:DistributionPoint})],Ce)},8e4:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.FreshestCRL=pe.id_ce_freshestCRL=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(70725);const ve=Ae(50499);pe.id_ce_freshestCRL=`${me.id_ce}.46`;let be=he=class FreshestCRL extends ve.CRLDistributionPoints{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.FreshestCRL=be;pe.FreshestCRL=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:ve.DistributionPoint})],be)},43305:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IssuingDistributionPoint=pe.id_ce_issuingDistributionPoint=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(50499);const me=Ae(70725);const ve=Ae(53499);pe.id_ce_issuingDistributionPoint=`${me.id_ce}.28`;class IssuingDistributionPoint{constructor(R={}){this.onlyContainsUserCerts=IssuingDistributionPoint.ONLY;this.onlyContainsCACerts=IssuingDistributionPoint.ONLY;this.indirectCRL=IssuingDistributionPoint.ONLY;this.onlyContainsAttributeCerts=IssuingDistributionPoint.ONLY;Object.assign(this,R)}}pe.IssuingDistributionPoint=IssuingDistributionPoint;IssuingDistributionPoint.ONLY=false;he.__decorate([(0,ge.AsnProp)({type:ye.DistributionPointName,context:0,optional:true})],IssuingDistributionPoint.prototype,"distributionPoint",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.AsnPropTypes.Boolean,context:1,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsUserCerts",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.AsnPropTypes.Boolean,context:2,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsCACerts",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Reason,context:3,optional:true,implicit:true})],IssuingDistributionPoint.prototype,"onlySomeReasons",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.AsnPropTypes.Boolean,context:4,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"indirectCRL",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.AsnPropTypes.Boolean,context:5,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsAttributeCerts",void 0)},88777:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CRLNumber=pe.id_ce_cRLNumber=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_cRLNumber=`${ye.id_ce}.20`;let me=class CRLNumber{constructor(R=0){this.value=R}};pe.CRLNumber=me;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer})],me.prototype,"value",void 0);pe.CRLNumber=me=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],me)},28857:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CRLReason=pe.CRLReasons=pe.id_ce_cRLReasons=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_cRLReasons=`${ye.id_ce}.21`;var me;(function(R){R[R["unspecified"]=0]="unspecified";R[R["keyCompromise"]=1]="keyCompromise";R[R["cACompromise"]=2]="cACompromise";R[R["affiliationChanged"]=3]="affiliationChanged";R[R["superseded"]=4]="superseded";R[R["cessationOfOperation"]=5]="cessationOfOperation";R[R["certificateHold"]=6]="certificateHold";R[R["removeFromCRL"]=8]="removeFromCRL";R[R["privilegeWithdrawn"]=9]="privilegeWithdrawn";R[R["aACompromise"]=10]="aACompromise"})(me||(pe.CRLReasons=me={}));let ve=class CRLReason{constructor(R=me.unspecified){this.reason=me.unspecified;this.reason=R}toJSON(){return me[this.reason]}toString(){return this.toJSON()}};pe.CRLReason=ve;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Enumerated})],ve.prototype,"reason",void 0);pe.CRLReason=ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve)},52382:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EntrustVersionInfo=pe.EntrustInfo=pe.EntrustInfoFlags=pe.id_entrust_entrustVersInfo=void 0;const he=Ae(4351);const ge=Ae(53499);pe.id_entrust_entrustVersInfo="1.2.840.113533.7.65.0";var ye;(function(R){R[R["keyUpdateAllowed"]=1]="keyUpdateAllowed";R[R["newExtensions"]=2]="newExtensions";R[R["pKIXCertificate"]=4]="pKIXCertificate"})(ye||(pe.EntrustInfoFlags=ye={}));class EntrustInfo extends ge.BitString{toJSON(){const R=[];const pe=this.toNumber();if(pe&ye.pKIXCertificate){R.push("pKIXCertificate")}if(pe&ye.newExtensions){R.push("newExtensions")}if(pe&ye.keyUpdateAllowed){R.push("keyUpdateAllowed")}return R}toString(){return`[${this.toJSON().join(", ")}]`}}pe.EntrustInfo=EntrustInfo;class EntrustVersionInfo{constructor(R={}){this.entrustVers="";this.entrustInfoFlags=new EntrustInfo;Object.assign(this,R)}}pe.EntrustVersionInfo=EntrustVersionInfo;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralString})],EntrustVersionInfo.prototype,"entrustVers",void 0);he.__decorate([(0,ge.AsnProp)({type:EntrustInfo})],EntrustVersionInfo.prototype,"entrustInfoFlags",void 0)},97993:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.id_kp_OCSPSigning=pe.id_kp_timeStamping=pe.id_kp_emailProtection=pe.id_kp_codeSigning=pe.id_kp_clientAuth=pe.id_kp_serverAuth=pe.anyExtendedKeyUsage=pe.ExtendedKeyUsage=pe.id_ce_extKeyUsage=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(70725);pe.id_ce_extKeyUsage=`${me.id_ce}.37`;let ve=he=class ExtendedKeyUsage extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.ExtendedKeyUsage=ve;pe.ExtendedKeyUsage=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:ye.AsnPropTypes.ObjectIdentifier})],ve);pe.anyExtendedKeyUsage=`${pe.id_ce_extKeyUsage}.0`;pe.id_kp_serverAuth=`${me.id_kp}.1`;pe.id_kp_clientAuth=`${me.id_kp}.2`;pe.id_kp_codeSigning=`${me.id_kp}.3`;pe.id_kp_emailProtection=`${me.id_kp}.4`;pe.id_kp_timeStamping=`${me.id_kp}.8`;pe.id_kp_OCSPSigning=`${me.id_kp}.9`},56457:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(677),pe);he.__exportStar(Ae(11583),pe);he.__exportStar(Ae(20621),pe);he.__exportStar(Ae(93151),pe);he.__exportStar(Ae(44157),pe);he.__exportStar(Ae(71335),pe);he.__exportStar(Ae(50499),pe);he.__exportStar(Ae(8e4),pe);he.__exportStar(Ae(43305),pe);he.__exportStar(Ae(88777),pe);he.__exportStar(Ae(28857),pe);he.__exportStar(Ae(97993),pe);he.__exportStar(Ae(81622),pe);he.__exportStar(Ae(74932),pe);he.__exportStar(Ae(76330),pe);he.__exportStar(Ae(1622),pe);he.__exportStar(Ae(7543),pe);he.__exportStar(Ae(35113),pe);he.__exportStar(Ae(3230),pe);he.__exportStar(Ae(88555),pe);he.__exportStar(Ae(62007),pe);he.__exportStar(Ae(53651),pe);he.__exportStar(Ae(65096),pe);he.__exportStar(Ae(52382),pe);he.__exportStar(Ae(57299),pe)},81622:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.InhibitAnyPolicy=pe.id_ce_inhibitAnyPolicy=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_inhibitAnyPolicy=`${ye.id_ce}.54`;let me=class InhibitAnyPolicy{constructor(R=new ArrayBuffer(0)){this.value=R}};pe.InhibitAnyPolicy=me;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],me.prototype,"value",void 0);pe.InhibitAnyPolicy=me=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],me)},74932:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.InvalidityDate=pe.id_ce_invalidityDate=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_invalidityDate=`${ye.id_ce}.24`;let me=class InvalidityDate{constructor(R){this.value=new Date;if(R){this.value=R}}};pe.InvalidityDate=me;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime})],me.prototype,"value",void 0);pe.InvalidityDate=me=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],me)},76330:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.IssueAlternativeName=pe.id_ce_issuerAltName=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(13201);const ve=Ae(70725);pe.id_ce_issuerAltName=`${ve.id_ce}.18`;let be=he=class IssueAlternativeName extends me.GeneralNames{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.IssueAlternativeName=be;pe.IssueAlternativeName=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],be)},1622:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.KeyUsage=pe.KeyUsageFlags=pe.id_ce_keyUsage=void 0;const he=Ae(53499);const ge=Ae(70725);pe.id_ce_keyUsage=`${ge.id_ce}.15`;var ye;(function(R){R[R["digitalSignature"]=1]="digitalSignature";R[R["nonRepudiation"]=2]="nonRepudiation";R[R["keyEncipherment"]=4]="keyEncipherment";R[R["dataEncipherment"]=8]="dataEncipherment";R[R["keyAgreement"]=16]="keyAgreement";R[R["keyCertSign"]=32]="keyCertSign";R[R["cRLSign"]=64]="cRLSign";R[R["encipherOnly"]=128]="encipherOnly";R[R["decipherOnly"]=256]="decipherOnly"})(ye||(pe.KeyUsageFlags=ye={}));class KeyUsage extends he.BitString{toJSON(){const R=this.toNumber();const pe=[];if(R&ye.cRLSign){pe.push("crlSign")}if(R&ye.dataEncipherment){pe.push("dataEncipherment")}if(R&ye.decipherOnly){pe.push("decipherOnly")}if(R&ye.digitalSignature){pe.push("digitalSignature")}if(R&ye.encipherOnly){pe.push("encipherOnly")}if(R&ye.keyAgreement){pe.push("keyAgreement")}if(R&ye.keyCertSign){pe.push("keyCertSign")}if(R&ye.keyEncipherment){pe.push("keyEncipherment")}if(R&ye.nonRepudiation){pe.push("nonRepudiation")}return pe}toString(){return`[${this.toJSON().join(", ")}]`}}pe.KeyUsage=KeyUsage},7543:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.NameConstraints=pe.GeneralSubtrees=pe.GeneralSubtree=pe.id_ce_nameConstraints=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(83670);const ve=Ae(70725);pe.id_ce_nameConstraints=`${ve.id_ce}.30`;class GeneralSubtree{constructor(R={}){this.base=new me.GeneralName;this.minimum=0;Object.assign(this,R)}}pe.GeneralSubtree=GeneralSubtree;ge.__decorate([(0,ye.AsnProp)({type:me.GeneralName})],GeneralSubtree.prototype,"base",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,context:0,defaultValue:0,implicit:true})],GeneralSubtree.prototype,"minimum",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.Integer,context:1,optional:true,implicit:true})],GeneralSubtree.prototype,"maximum",void 0);let be=he=class GeneralSubtrees extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.GeneralSubtrees=be;pe.GeneralSubtrees=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:GeneralSubtree})],be);class NameConstraints{constructor(R={}){Object.assign(this,R)}}pe.NameConstraints=NameConstraints;ge.__decorate([(0,ye.AsnProp)({type:be,context:0,optional:true,implicit:true})],NameConstraints.prototype,"permittedSubtrees",void 0);ge.__decorate([(0,ye.AsnProp)({type:be,context:1,optional:true,implicit:true})],NameConstraints.prototype,"excludedSubtrees",void 0)},35113:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PolicyConstraints=pe.id_ce_policyConstraints=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_policyConstraints=`${ye.id_ce}.36`;class PolicyConstraints{constructor(R={}){Object.assign(this,R)}}pe.PolicyConstraints=PolicyConstraints;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:0,implicit:true,optional:true,converter:ge.AsnIntegerArrayBufferConverter})],PolicyConstraints.prototype,"requireExplicitPolicy",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:1,implicit:true,optional:true,converter:ge.AsnIntegerArrayBufferConverter})],PolicyConstraints.prototype,"inhibitPolicyMapping",void 0)},3230:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.PolicyMappings=pe.PolicyMapping=pe.id_ce_policyMappings=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(70725);pe.id_ce_policyMappings=`${me.id_ce}.33`;class PolicyMapping{constructor(R={}){this.issuerDomainPolicy="";this.subjectDomainPolicy="";Object.assign(this,R)}}pe.PolicyMapping=PolicyMapping;ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],PolicyMapping.prototype,"issuerDomainPolicy",void 0);ge.__decorate([(0,ye.AsnProp)({type:ye.AsnPropTypes.ObjectIdentifier})],PolicyMapping.prototype,"subjectDomainPolicy",void 0);let ve=he=class PolicyMappings extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.PolicyMappings=ve;pe.PolicyMappings=ve=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:PolicyMapping})],ve)},65096:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PrivateKeyUsagePeriod=pe.id_ce_privateKeyUsagePeriod=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(70725);pe.id_ce_privateKeyUsagePeriod=`${ye.id_ce}.16`;class PrivateKeyUsagePeriod{constructor(R={}){Object.assign(this,R)}}pe.PrivateKeyUsagePeriod=PrivateKeyUsagePeriod;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime,context:0,implicit:true,optional:true})],PrivateKeyUsagePeriod.prototype,"notBefore",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime,context:1,implicit:true,optional:true})],PrivateKeyUsagePeriod.prototype,"notAfter",void 0)},88555:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SubjectAlternativeName=pe.id_ce_subjectAltName=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(13201);const ve=Ae(70725);pe.id_ce_subjectAltName=`${ve.id_ce}.17`;let be=he=class SubjectAlternativeName extends me.GeneralNames{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.SubjectAlternativeName=be;pe.SubjectAlternativeName=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence})],be)},62007:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SubjectDirectoryAttributes=pe.id_ce_subjectDirectoryAttributes=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(2171);const ve=Ae(70725);pe.id_ce_subjectDirectoryAttributes=`${ve.id_ce}.9`;let be=he=class SubjectDirectoryAttributes extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.SubjectDirectoryAttributes=be;pe.SubjectDirectoryAttributes=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.Attribute})],be)},57299:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.SubjectInfoAccessSyntax=pe.id_pe_subjectInfoAccess=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(70725);const ve=Ae(677);pe.id_pe_subjectInfoAccess=`${me.id_pe}.11`;let be=he=class SubjectInfoAccessSyntax extends ye.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.SubjectInfoAccessSyntax=be;pe.SubjectInfoAccessSyntax=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:ve.AccessDescription})],be)},53651:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SubjectKeyIdentifier=pe.id_ce_subjectKeyIdentifier=void 0;const he=Ae(70725);const ge=Ae(11583);pe.id_ce_subjectKeyIdentifier=`${he.id_ce}.14`;class SubjectKeyIdentifier extends ge.KeyIdentifier{}pe.SubjectKeyIdentifier=SubjectKeyIdentifier},83670:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralName=pe.EDIPartyName=pe.OtherName=pe.AsnIpConverter=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(621);const me=Ae(17429);pe.AsnIpConverter={fromASN:R=>ye.IpConverter.toString(ge.AsnOctetStringConverter.fromASN(R)),toASN:R=>ge.AsnOctetStringConverter.toASN(ye.IpConverter.fromString(R))};class OtherName{constructor(R={}){this.typeId="";this.value=new ArrayBuffer(0);Object.assign(this,R)}}pe.OtherName=OtherName;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier})],OtherName.prototype,"typeId",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:0})],OtherName.prototype,"value",void 0);class EDIPartyName{constructor(R={}){this.partyName=new me.DirectoryString;Object.assign(this,R)}}pe.EDIPartyName=EDIPartyName;he.__decorate([(0,ge.AsnProp)({type:me.DirectoryString,optional:true,context:0,implicit:true})],EDIPartyName.prototype,"nameAssigner",void 0);he.__decorate([(0,ge.AsnProp)({type:me.DirectoryString,context:1,implicit:true})],EDIPartyName.prototype,"partyName",void 0);let ve=class GeneralName{constructor(R={}){Object.assign(this,R)}};pe.GeneralName=ve;he.__decorate([(0,ge.AsnProp)({type:OtherName,context:0,implicit:true})],ve.prototype,"otherName",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.IA5String,context:1,implicit:true})],ve.prototype,"rfc822Name",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.IA5String,context:2,implicit:true})],ve.prototype,"dNSName",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Any,context:3,implicit:true})],ve.prototype,"x400Address",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Name,context:4,implicit:false})],ve.prototype,"directoryName",void 0);he.__decorate([(0,ge.AsnProp)({type:EDIPartyName,context:5})],ve.prototype,"ediPartyName",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.IA5String,context:6,implicit:true})],ve.prototype,"uniformResourceIdentifier",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.OctetString,context:7,implicit:true,converter:pe.AsnIpConverter})],ve.prototype,"iPAddress",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.ObjectIdentifier,context:8,implicit:true})],ve.prototype,"registeredID",void 0);pe.GeneralName=ve=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ve)},13201:(R,pe,Ae)=>{"use strict";var he;Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralNames=void 0;const ge=Ae(4351);const ye=Ae(53499);const me=Ae(83670);const ve=Ae(53499);let be=he=class GeneralNames extends ve.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.GeneralNames=be;pe.GeneralNames=be=he=ge.__decorate([(0,ye.AsnType)({type:ye.AsnTypeTypes.Sequence,itemType:me.GeneralName})],be)},82288:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(4351);he.__exportStar(Ae(56457),pe);he.__exportStar(Ae(38266),pe);he.__exportStar(Ae(2171),pe);he.__exportStar(Ae(25974),pe);he.__exportStar(Ae(13554),pe);he.__exportStar(Ae(77908),pe);he.__exportStar(Ae(83670),pe);he.__exportStar(Ae(13201),pe);he.__exportStar(Ae(17429),pe);he.__exportStar(Ae(70725),pe);he.__exportStar(Ae(94003),pe);he.__exportStar(Ae(13113),pe);he.__exportStar(Ae(49117),pe);he.__exportStar(Ae(1768),pe);he.__exportStar(Ae(82826),pe);he.__exportStar(Ae(40758),pe)},621:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IpConverter=void 0;const he=Ae(37263);const ge=Ae(22420);class IpConverter{static decodeIP(R){if(R.length===64&&parseInt(R,16)===0){return"::/0"}if(R.length!==16){return R}const pe=parseInt(R.slice(8),16).toString(2).split("").reduce(((R,pe)=>R+ +pe),0);let Ae=R.slice(0,8).replace(/(.{2})/g,(R=>`${parseInt(R,16)}.`));Ae=Ae.slice(0,-1);return`${Ae}/${pe}`}static toString(R){if(R.byteLength===4||R.byteLength===16){const pe=new Uint8Array(R);const Ae=he.fromByteArray(Array.from(pe));return Ae.toString()}return this.decodeIP(ge.Convert.ToHex(R))}static fromString(R){const pe=he.parse(R);return new Uint8Array(pe.toByteArray()).buffer}}pe.IpConverter=IpConverter},17429:(R,pe,Ae)=>{"use strict";var he,ge,ye;Object.defineProperty(pe,"__esModule",{value:true});pe.Name=pe.RDNSequence=pe.RelativeDistinguishedName=pe.AttributeTypeAndValue=pe.AttributeValue=pe.DirectoryString=void 0;const me=Ae(4351);const ve=Ae(53499);const be=Ae(22420);let Ee=class DirectoryString{constructor(R={}){Object.assign(this,R)}toString(){return this.bmpString||this.printableString||this.teletexString||this.universalString||this.utf8String||""}};pe.DirectoryString=Ee;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.TeletexString})],Ee.prototype,"teletexString",void 0);me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.PrintableString})],Ee.prototype,"printableString",void 0);me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.UniversalString})],Ee.prototype,"universalString",void 0);me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.Utf8String})],Ee.prototype,"utf8String",void 0);me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.BmpString})],Ee.prototype,"bmpString",void 0);pe.DirectoryString=Ee=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],Ee);let we=class AttributeValue extends Ee{constructor(R={}){super(R);Object.assign(this,R)}toString(){return this.ia5String||(this.anyValue?be.Convert.ToHex(this.anyValue):super.toString())}};pe.AttributeValue=we;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.IA5String})],we.prototype,"ia5String",void 0);me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.Any})],we.prototype,"anyValue",void 0);pe.AttributeValue=we=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Choice})],we);class AttributeTypeAndValue{constructor(R={}){this.type="";this.value=new we;Object.assign(this,R)}}pe.AttributeTypeAndValue=AttributeTypeAndValue;me.__decorate([(0,ve.AsnProp)({type:ve.AsnPropTypes.ObjectIdentifier})],AttributeTypeAndValue.prototype,"type",void 0);me.__decorate([(0,ve.AsnProp)({type:we})],AttributeTypeAndValue.prototype,"value",void 0);let Ce=he=class RelativeDistinguishedName extends ve.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,he.prototype)}};pe.RelativeDistinguishedName=Ce;pe.RelativeDistinguishedName=Ce=he=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Set,itemType:AttributeTypeAndValue})],Ce);let _e=ge=class RDNSequence extends ve.AsnArray{constructor(R){super(R);Object.setPrototypeOf(this,ge.prototype)}};pe.RDNSequence=_e;pe.RDNSequence=_e=ge=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence,itemType:Ce})],_e);let Ie=ye=class Name extends _e{constructor(R){super(R);Object.setPrototypeOf(this,ye.prototype)}};pe.Name=Ie;pe.Name=Ie=ye=me.__decorate([(0,ve.AsnType)({type:ve.AsnTypeTypes.Sequence})],Ie)},70725:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.id_ce=pe.id_ad_caRepository=pe.id_ad_timeStamping=pe.id_ad_caIssuers=pe.id_ad_ocsp=pe.id_qt_unotice=pe.id_qt_csp=pe.id_ad=pe.id_kp=pe.id_qt=pe.id_pe=pe.id_pkix=void 0;pe.id_pkix="1.3.6.1.5.5.7";pe.id_pe=`${pe.id_pkix}.1`;pe.id_qt=`${pe.id_pkix}.2`;pe.id_kp=`${pe.id_pkix}.3`;pe.id_ad=`${pe.id_pkix}.48`;pe.id_qt_csp=`${pe.id_qt}.1`;pe.id_qt_unotice=`${pe.id_qt}.2`;pe.id_ad_ocsp=`${pe.id_ad}.1`;pe.id_ad_caIssuers=`${pe.id_ad}.2`;pe.id_ad_timeStamping=`${pe.id_ad}.3`;pe.id_ad_caRepository=`${pe.id_ad}.5`;pe.id_ce="2.5.29"},94003:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SubjectPublicKeyInfo=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38266);class SubjectPublicKeyInfo{constructor(R={}){this.algorithm=new ye.AlgorithmIdentifier;this.subjectPublicKey=new ArrayBuffer(0);Object.assign(this,R)}}pe.SubjectPublicKeyInfo=SubjectPublicKeyInfo;he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],SubjectPublicKeyInfo.prototype,"algorithm",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString})],SubjectPublicKeyInfo.prototype,"subjectPublicKey",void 0)},13113:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TBSCertList=pe.RevokedCertificate=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38266);const me=Ae(17429);const ve=Ae(1768);const be=Ae(77908);class RevokedCertificate{constructor(R={}){this.userCertificate=new ArrayBuffer(0);this.revocationDate=new ve.Time;Object.assign(this,R)}}pe.RevokedCertificate=RevokedCertificate;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],RevokedCertificate.prototype,"userCertificate",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.Time})],RevokedCertificate.prototype,"revocationDate",void 0);he.__decorate([(0,ge.AsnProp)({type:be.Extension,optional:true,repeated:"sequence"})],RevokedCertificate.prototype,"crlEntryExtensions",void 0);class TBSCertList{constructor(R={}){this.signature=new ye.AlgorithmIdentifier;this.issuer=new me.Name;this.thisUpdate=new ve.Time;Object.assign(this,R)}}pe.TBSCertList=TBSCertList;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,optional:true})],TBSCertList.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],TBSCertList.prototype,"signature",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Name})],TBSCertList.prototype,"issuer",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.Time})],TBSCertList.prototype,"thisUpdate",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.Time,optional:true})],TBSCertList.prototype,"nextUpdate",void 0);he.__decorate([(0,ge.AsnProp)({type:RevokedCertificate,repeated:"sequence",optional:true})],TBSCertList.prototype,"revokedCertificates",void 0);he.__decorate([(0,ge.AsnProp)({type:be.Extension,optional:true,context:0,repeated:"sequence"})],TBSCertList.prototype,"crlExtensions",void 0)},49117:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TBSCertificate=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(38266);const me=Ae(17429);const ve=Ae(94003);const be=Ae(40758);const Ee=Ae(77908);const we=Ae(82826);class TBSCertificate{constructor(R={}){this.version=we.Version.v1;this.serialNumber=new ArrayBuffer(0);this.signature=new ye.AlgorithmIdentifier;this.issuer=new me.Name;this.validity=new be.Validity;this.subject=new me.Name;this.subjectPublicKeyInfo=new ve.SubjectPublicKeyInfo;Object.assign(this,R)}}pe.TBSCertificate=TBSCertificate;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,context:0,defaultValue:we.Version.v1})],TBSCertificate.prototype,"version",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.Integer,converter:ge.AsnIntegerArrayBufferConverter})],TBSCertificate.prototype,"serialNumber",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.AlgorithmIdentifier})],TBSCertificate.prototype,"signature",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Name})],TBSCertificate.prototype,"issuer",void 0);he.__decorate([(0,ge.AsnProp)({type:be.Validity})],TBSCertificate.prototype,"validity",void 0);he.__decorate([(0,ge.AsnProp)({type:me.Name})],TBSCertificate.prototype,"subject",void 0);he.__decorate([(0,ge.AsnProp)({type:ve.SubjectPublicKeyInfo})],TBSCertificate.prototype,"subjectPublicKeyInfo",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString,context:1,implicit:true,optional:true})],TBSCertificate.prototype,"issuerUniqueID",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.BitString,context:2,implicit:true,optional:true})],TBSCertificate.prototype,"subjectUniqueID",void 0);he.__decorate([(0,ge.AsnProp)({type:Ee.Extensions,context:3,optional:true})],TBSCertificate.prototype,"extensions",void 0)},1768:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Time=void 0;const he=Ae(4351);const ge=Ae(53499);let ye=class Time{constructor(R){if(R){if(typeof R==="string"||typeof R==="number"||R instanceof Date){const pe=new Date(R);if(pe.getUTCFullYear()>2049){this.generalTime=pe}else{this.utcTime=pe}}else{Object.assign(this,R)}}}getTime(){const R=this.utcTime||this.generalTime;if(!R){throw new Error("Cannot get time from CHOICE object")}return R}};pe.Time=ye;he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.UTCTime})],ye.prototype,"utcTime",void 0);he.__decorate([(0,ge.AsnProp)({type:ge.AsnPropTypes.GeneralizedTime})],ye.prototype,"generalTime",void 0);pe.Time=ye=he.__decorate([(0,ge.AsnType)({type:ge.AsnTypeTypes.Choice})],ye)},82826:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Version=void 0;var Ae;(function(R){R[R["v1"]=0]="v1";R[R["v2"]=1]="v2";R[R["v3"]=2]="v3"})(Ae||(pe.Version=Ae={}))},40758:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Validity=void 0;const he=Ae(4351);const ge=Ae(53499);const ye=Ae(1768);class Validity{constructor(R){this.notBefore=new ye.Time(new Date);this.notAfter=new ye.Time(new Date);if(R){this.notBefore=new ye.Time(R.notBefore);this.notAfter=new ye.Time(R.notAfter)}}}pe.Validity=Validity;he.__decorate([(0,ge.AsnProp)({type:ye.Time})],Validity.prototype,"notBefore",void 0);he.__decorate([(0,ge.AsnProp)({type:ye.Time})],Validity.prototype,"notAfter",void 0)},82315:(R,pe,Ae)=>{"use strict"; /*! * MIT License * @@ -23,19 +23,19 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * - */Ae(15202);var he=Ae(53499);var ge=Ae(82288);var ye=Ae(22420);var me=Ae(19493);var ve=Ae(8277);var be=Ae(5574);var Ee=Ae(4351);var Ce=Ae(71069);var we=Ae(55938);var _e=Ae(86717);function _interopNamespaceDefault(R){var pe=Object.create(null);if(R){Object.keys(R).forEach((function(Ae){if(Ae!=="default"){var he=Object.getOwnPropertyDescriptor(R,Ae);Object.defineProperty(pe,Ae,he.get?he:{enumerable:true,get:function(){return R[Ae]}})}}))}pe.default=R;return Object.freeze(pe)}var Ie=_interopNamespaceDefault(ge);var Se=_interopNamespaceDefault(me);var Be=_interopNamespaceDefault(ve);var ke=_interopNamespaceDefault(be);var Oe=_interopNamespaceDefault(we);const Re="crypto.algorithm";class AlgorithmProvider{getAlgorithms(){return Ce.container.resolveAll(Re)}toAsnAlgorithm(R){({...R});for(const pe of this.getAlgorithms()){const Ae=pe.toAsnAlgorithm(R);if(Ae){return Ae}}if(/^[0-9.]+$/.test(R.name)){const pe=new ge.AlgorithmIdentifier({algorithm:R.name});if("parameters"in R){const Ae=R;pe.parameters=Ae.parameters}return pe}throw new Error("Cannot convert WebCrypto algorithm to ASN.1 algorithm")}toWebAlgorithm(R){for(const pe of this.getAlgorithms()){const Ae=pe.toWebAlgorithm(R);if(Ae){return Ae}}const pe={name:R.algorithm,parameters:R.parameters};return pe}}const Qe="crypto.algorithmProvider";Ce.container.registerSingleton(Qe,AlgorithmProvider);var xe;const Pe="1.3.36.3.3.2.8.1.1";const Te=`${Pe}.1`;const De=`${Pe}.2`;const Ne=`${Pe}.3`;const Me=`${Pe}.4`;const je=`${Pe}.5`;const Fe=`${Pe}.6`;const Le=`${Pe}.7`;const Ue=`${Pe}.8`;const He=`${Pe}.9`;const Je=`${Pe}.10`;const We=`${Pe}.11`;const Ve=`${Pe}.12`;const Ke=`${Pe}.13`;const Ge=`${Pe}.14`;const Ye="brainpoolP160r1";const qe="brainpoolP160t1";const $e="brainpoolP192r1";const ze="brainpoolP192t1";const Xe="brainpoolP224r1";const Ze="brainpoolP224t1";const et="brainpoolP256r1";const tt="brainpoolP256t1";const rt="brainpoolP320r1";const nt="brainpoolP320t1";const it="brainpoolP384r1";const ot="brainpoolP384t1";const st="brainpoolP512r1";const at="brainpoolP512t1";const ct="ECDSA";pe.EcAlgorithm=xe=class EcAlgorithm{toAsnAlgorithm(R){switch(R.name.toLowerCase()){case ct.toLowerCase():if("hash"in R){const pe=typeof R.hash==="string"?R.hash:R.hash.name;switch(pe.toLowerCase()){case"sha-1":return Be.ecdsaWithSHA1;case"sha-256":return Be.ecdsaWithSHA256;case"sha-384":return Be.ecdsaWithSHA384;case"sha-512":return Be.ecdsaWithSHA512}}else if("namedCurve"in R){let pe="";switch(R.namedCurve){case"P-256":pe=Be.id_secp256r1;break;case"K-256":pe=xe.SECP256K1;break;case"P-384":pe=Be.id_secp384r1;break;case"P-521":pe=Be.id_secp521r1;break;case Ye:pe=Te;break;case qe:pe=De;break;case $e:pe=Ne;break;case ze:pe=Me;break;case Xe:pe=je;break;case Ze:pe=Fe;break;case et:pe=Le;break;case tt:pe=Ue;break;case rt:pe=He;break;case nt:pe=Je;break;case it:pe=We;break;case ot:pe=Ve;break;case st:pe=Ke;break;case at:pe=Ge;break}if(pe){return new ge.AlgorithmIdentifier({algorithm:Be.id_ecPublicKey,parameters:he.AsnConvert.serialize(new Be.ECParameters({namedCurve:pe}))})}}}return null}toWebAlgorithm(R){switch(R.algorithm){case Be.id_ecdsaWithSHA1:return{name:ct,hash:{name:"SHA-1"}};case Be.id_ecdsaWithSHA256:return{name:ct,hash:{name:"SHA-256"}};case Be.id_ecdsaWithSHA384:return{name:ct,hash:{name:"SHA-384"}};case Be.id_ecdsaWithSHA512:return{name:ct,hash:{name:"SHA-512"}};case Be.id_ecPublicKey:{if(!R.parameters){throw new TypeError("Cannot get required parameters from EC algorithm")}const pe=he.AsnConvert.parse(R.parameters,Be.ECParameters);switch(pe.namedCurve){case Be.id_secp256r1:return{name:ct,namedCurve:"P-256"};case xe.SECP256K1:return{name:ct,namedCurve:"K-256"};case Be.id_secp384r1:return{name:ct,namedCurve:"P-384"};case Be.id_secp521r1:return{name:ct,namedCurve:"P-521"};case Te:return{name:ct,namedCurve:Ye};case De:return{name:ct,namedCurve:qe};case Ne:return{name:ct,namedCurve:$e};case Me:return{name:ct,namedCurve:ze};case je:return{name:ct,namedCurve:Xe};case Fe:return{name:ct,namedCurve:Ze};case Le:return{name:ct,namedCurve:et};case Ue:return{name:ct,namedCurve:tt};case He:return{name:ct,namedCurve:rt};case Je:return{name:ct,namedCurve:nt};case We:return{name:ct,namedCurve:it};case Ve:return{name:ct,namedCurve:ot};case Ke:return{name:ct,namedCurve:st};case Ge:return{name:ct,namedCurve:at}}}}return null}};pe.EcAlgorithm.SECP256K1="1.3.132.0.10";pe.EcAlgorithm=xe=Ee.__decorate([Ce.injectable()],pe.EcAlgorithm);Ce.container.registerSingleton(Re,pe.EcAlgorithm);const ut=Symbol("name");const lt=Symbol("value");class TextObject{constructor(R,pe={},Ae=""){this[ut]=R;this[lt]=Ae;for(const R in pe){this[R]=pe[R]}}}TextObject.NAME=ut;TextObject.VALUE=lt;class DefaultAlgorithmSerializer{static toTextObject(R){const Ae=new TextObject("Algorithm Identifier",{},OidSerializer.toString(R.algorithm));if(R.parameters){switch(R.algorithm){case Be.id_ecPublicKey:{const he=(new pe.EcAlgorithm).toWebAlgorithm(R);if(he&&"namedCurve"in he){Ae["Named Curve"]=he.namedCurve}else{Ae["Parameters"]=R.parameters}break}default:Ae["Parameters"]=R.parameters}}return Ae}}class OidSerializer{static toString(R){const pe=this.items[R];if(pe){return pe}return R}}OidSerializer.items={[ke.id_sha1]:"sha1",[ke.id_sha224]:"sha224",[ke.id_sha256]:"sha256",[ke.id_sha384]:"sha384",[ke.id_sha512]:"sha512",[ke.id_rsaEncryption]:"rsaEncryption",[ke.id_sha1WithRSAEncryption]:"sha1WithRSAEncryption",[ke.id_sha224WithRSAEncryption]:"sha224WithRSAEncryption",[ke.id_sha256WithRSAEncryption]:"sha256WithRSAEncryption",[ke.id_sha384WithRSAEncryption]:"sha384WithRSAEncryption",[ke.id_sha512WithRSAEncryption]:"sha512WithRSAEncryption",[Be.id_ecPublicKey]:"ecPublicKey",[Be.id_ecdsaWithSHA1]:"ecdsaWithSHA1",[Be.id_ecdsaWithSHA224]:"ecdsaWithSHA224",[Be.id_ecdsaWithSHA256]:"ecdsaWithSHA256",[Be.id_ecdsaWithSHA384]:"ecdsaWithSHA384",[Be.id_ecdsaWithSHA512]:"ecdsaWithSHA512",[Ie.id_kp_serverAuth]:"TLS WWW server authentication",[Ie.id_kp_clientAuth]:"TLS WWW client authentication",[Ie.id_kp_codeSigning]:"Code Signing",[Ie.id_kp_emailProtection]:"E-mail Protection",[Ie.id_kp_timeStamping]:"Time Stamping",[Ie.id_kp_OCSPSigning]:"OCSP Signing",[Se.id_signedData]:"Signed Data"};class TextConverter{static serialize(R){return this.serializeObj(R).join("\n")}static pad(R=0){return"".padStart(2*R," ")}static serializeObj(R,pe=0){const Ae=[];let he=this.pad(pe++);let ge="";const me=R[TextObject.VALUE];if(me){ge=` ${me}`}Ae.push(`${he}${R[TextObject.NAME]}:${ge}`);he=this.pad(pe);for(const ge in R){if(typeof ge==="symbol"){continue}const me=R[ge];const ve=ge?`${ge}: `:"";if(typeof me==="string"||typeof me==="number"||typeof me==="boolean"){Ae.push(`${he}${ve}${me}`)}else if(me instanceof Date){Ae.push(`${he}${ve}${me.toUTCString()}`)}else if(Array.isArray(me)){for(const R of me){R[TextObject.NAME]=ge;Ae.push(...this.serializeObj(R,pe))}}else if(me instanceof TextObject){me[TextObject.NAME]=ge;Ae.push(...this.serializeObj(me,pe))}else if(ye.BufferSourceConverter.isBufferSource(me)){if(ge){Ae.push(`${he}${ve}`);Ae.push(...this.serializeBufferSource(me,pe+1))}else{Ae.push(...this.serializeBufferSource(me,pe))}}else if("toTextObject"in me){const R=me.toTextObject();R[TextObject.NAME]=ge;Ae.push(...this.serializeObj(R,pe))}else{throw new TypeError("Cannot serialize data in text format. Unsupported type.")}}return Ae}static serializeBufferSource(R,pe=0){const Ae=this.pad(pe);const he=ye.BufferSourceConverter.toUint8Array(R);const ge=[];for(let R=0;R;])/g,"\\$1").replace(/^([ #])/,"\\$1").replace(/([ ]$)/,"\\$1").replace(/([\r\n\t])/,replaceUnknownCharacter)}class Name{static isASCII(R){for(let pe=0;pe255){return false}}return true}static isPrintableString(R){return/^[A-Za-z0-9 '()+,-./:=?]*$/g.test(R)}constructor(R,pe={}){this.extraNames=new NameIdentifier;this.asn=new ge.Name;for(const R in pe){if(Object.prototype.hasOwnProperty.call(pe,R)){const Ae=pe[R];this.extraNames.register(R,Ae)}}if(typeof R==="string"){this.asn=this.fromString(R)}else if(R instanceof ge.Name){this.asn=R}else if(ye.BufferSourceConverter.isBufferSource(R)){this.asn=he.AsnConvert.parse(R,ge.Name)}else{this.asn=this.fromJSON(R)}}getField(R){const pe=this.extraNames.findId(R)||At.findId(R);const Ae=[];for(const R of this.asn){for(const he of R){if(he.type===pe){Ae.push(he.value.toString())}}}return Ae}getName(R){return this.extraNames.get(R)||At.get(R)}toString(){return this.asn.map((R=>R.map((R=>{const pe=this.getName(R.type)||R.type;const Ae=R.value.anyValue?`#${ye.Convert.ToHex(R.value.anyValue)}`:escape(R.value.toString());return`${pe}=${Ae}`})).join("+"))).join(", ")}toJSON(){var R;const pe=[];for(const Ae of this.asn){const he={};for(const pe of Ae){const Ae=this.getName(pe.type)||pe.type;(R=he[Ae])!==null&&R!==void 0?R:he[Ae]=[];he[Ae].push(pe.value.anyValue?`#${ye.Convert.ToHex(pe.value.anyValue)}`:pe.value.toString())}pe.push(he)}return pe}fromString(R){const pe=new ge.Name;const Ae=/(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g;let he=null;let me=",";while(he=Ae.exec(`${R},`)){let[,R,Ae]=he;const ve=Ae[Ae.length-1];if(ve===","||ve==="+"){Ae=Ae.slice(0,Ae.length-1);he[3]=ve}const be=he[3];if(!/[\d.]+/.test(R)){R=this.getName(R)||""}if(!R){throw new Error(`Cannot get OID for name type '${R}'`)}const Ee=new ge.AttributeTypeAndValue({type:R});if(Ae.charAt(0)==="#"){Ee.value.anyValue=ye.Convert.FromHex(Ae.slice(1))}else{const pe=/"(.*?[^\\])?"/.exec(Ae);if(pe){Ae=pe[1]}Ae=Ae.replace(/\\0a/gi,"\n").replace(/\\0d/gi,"\r").replace(/\\0g/gi,"\t").replace(/\\(.)/g,"$1");if(R===this.getName("E")||R===this.getName("DC")){Ee.value.ia5String=Ae}else{if(Name.isPrintableString(Ae)){Ee.value.printableString=Ae}else{Ee.value.utf8String=Ae}}}if(me==="+"){pe[pe.length-1].push(Ee)}else{pe.push(new ge.RelativeDistinguishedName([Ee]))}me=be}return pe}fromJSON(R){const pe=new ge.Name;for(const Ae of R){const R=new ge.RelativeDistinguishedName;for(const pe in Ae){let he=pe;if(!/[\d.]+/.test(pe)){he=this.getName(pe)||""}if(!he){throw new Error(`Cannot get OID for name type '${pe}'`)}const me=Ae[pe];for(const pe of me){const Ae=new ge.AttributeTypeAndValue({type:he});if(typeof pe==="object"){for(const R in pe){switch(R){case"ia5String":Ae.value.ia5String=pe[R];break;case"utf8String":Ae.value.utf8String=pe[R];break;case"universalString":Ae.value.universalString=pe[R];break;case"bmpString":Ae.value.bmpString=pe[R];break;case"printableString":Ae.value.printableString=pe[R];break}}}else if(pe[0]==="#"){Ae.value.anyValue=ye.Convert.FromHex(pe.slice(1))}else{if(he===this.getName("E")||he===this.getName("DC")){Ae.value.ia5String=pe}else{Ae.value.printableString=pe}}R.push(Ae)}}pe.push(R)}return pe}toArrayBuffer(){return he.AsnConvert.serialize(this.asn)}async getThumbprint(...R){var pe;let Ae;let he="SHA-1";if(R.length>=1&&!((pe=R[0])===null||pe===void 0?void 0:pe.subtle)){he=R[0]||he;Ae=R[1]||ft.get()}else{Ae=R[0]||ft.get()}return await Ae.subtle.digest(he,this.toArrayBuffer())}}const ht="Cannot initialize GeneralName from ASN.1 data.";const gt=`${ht} Unsupported string format in use.`;const yt=`${ht} Value doesn't match to GUID regular expression.`;const mt=/^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i;const vt="1.3.6.1.4.1.311.25.1";const bt="1.3.6.1.4.1.311.20.2.3";const Et="dns";const Ct="dn";const wt="email";const _t="ip";const It="url";const St="guid";const Bt="upn";const kt="id";class GeneralName extends AsnData{constructor(...R){let pe;if(R.length===2){switch(R[0]){case Ct:{const Ae=new Name(R[1]).toArrayBuffer();const ge=he.AsnConvert.parse(Ae,Ie.Name);pe=new Ie.GeneralName({directoryName:ge});break}case Et:pe=new Ie.GeneralName({dNSName:R[1]});break;case wt:pe=new Ie.GeneralName({rfc822Name:R[1]});break;case St:{const Ae=new RegExp(mt,"i").exec(R[1]);if(!Ae){throw new Error("Cannot parse GUID value. Value doesn't match to regular expression")}const ge=Ae.slice(1).map(((R,pe)=>{if(pe<3){return ye.Convert.ToHex(new Uint8Array(ye.Convert.FromHex(R)).reverse())}return R})).join("");pe=new Ie.GeneralName({otherName:new Ie.OtherName({typeId:vt,value:he.AsnConvert.serialize(new he.OctetString(ye.Convert.FromHex(ge)))})});break}case _t:pe=new Ie.GeneralName({iPAddress:R[1]});break;case kt:pe=new Ie.GeneralName({registeredID:R[1]});break;case Bt:{pe=new Ie.GeneralName({otherName:new Ie.OtherName({typeId:bt,value:he.AsnConvert.serialize(he.AsnUtf8StringConverter.toASN(R[1]))})});break}case It:pe=new Ie.GeneralName({uniformResourceIdentifier:R[1]});break;default:throw new Error("Cannot create GeneralName. Unsupported type of the name")}}else if(ye.BufferSourceConverter.isBufferSource(R[0])){pe=he.AsnConvert.parse(R[0],Ie.GeneralName)}else{pe=R[0]}super(pe)}onInit(R){if(R.dNSName!=undefined){this.type=Et;this.value=R.dNSName}else if(R.rfc822Name!=undefined){this.type=wt;this.value=R.rfc822Name}else if(R.iPAddress!=undefined){this.type=_t;this.value=R.iPAddress}else if(R.uniformResourceIdentifier!=undefined){this.type=It;this.value=R.uniformResourceIdentifier}else if(R.registeredID!=undefined){this.type=kt;this.value=R.registeredID}else if(R.directoryName!=undefined){this.type=Ct;this.value=new Name(R.directoryName).toString()}else if(R.otherName!=undefined){if(R.otherName.typeId===vt){this.type=St;const pe=he.AsnConvert.parse(R.otherName.value,he.OctetString);const Ae=new RegExp(mt,"i").exec(ye.Convert.ToHex(pe));if(!Ae){throw new Error(yt)}this.value=Ae.slice(1).map(((R,pe)=>{if(pe<3){return ye.Convert.ToHex(new Uint8Array(ye.Convert.FromHex(R)).reverse())}return R})).join("-")}else if(R.otherName.typeId===bt){this.type=Bt;this.value=he.AsnConvert.parse(R.otherName.value,Ie.DirectoryString).toString()}else{throw new Error(gt)}}else{throw new Error(gt)}}toJSON(){return{type:this.type,value:this.value}}toTextObject(){let R;switch(this.type){case Ct:case Et:case St:case _t:case kt:case Bt:case It:R=this.type.toUpperCase();break;case wt:R="Email";break;default:throw new Error("Unsupported GeneralName type")}let pe=this.value;if(this.type===kt){pe=OidSerializer.toString(pe)}return new TextObject(R,undefined,pe)}}class GeneralNames extends AsnData{constructor(R){let pe;if(R instanceof Ie.GeneralNames){pe=R}else if(Array.isArray(R)){const Ae=[];for(const pe of R){if(pe instanceof Ie.GeneralName){Ae.push(pe)}else{const R=he.AsnConvert.parse(new GeneralName(pe.type,pe.value).rawData,Ie.GeneralName);Ae.push(R)}}pe=new Ie.GeneralNames(Ae)}else if(ye.BufferSourceConverter.isBufferSource(R)){pe=he.AsnConvert.parse(R,Ie.GeneralNames)}else{throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments")}super(pe)}onInit(R){const pe=[];for(const Ae of R){let R=null;try{R=new GeneralName(Ae)}catch{continue}pe.push(R)}this.items=pe}toJSON(){return this.items.map((R=>R.toJSON()))}toTextObject(){const R=super.toTextObjectEmpty();for(const pe of this.items){const Ae=pe.toTextObject();let he=R[Ae[TextObject.NAME]];if(!Array.isArray(he)){he=[];R[Ae[TextObject.NAME]]=he}he.push(Ae)}return R}}GeneralNames.NAME="GeneralNames";const Ot="-{5}";const Rt="\\n";const Qt=`[^${Rt}]+`;const xt=`${Ot}BEGIN (${Qt}(?=${Ot}))${Ot}`;const Pt=`${Ot}END \\1${Ot}`;const Tt="\\n";const Dt=`[^:${Rt}]+`;const Nt=`(?:[^${Rt}]+${Tt}(?: +[^${Rt}]+${Tt})*)`;const Mt="[a-zA-Z0-9=+/]+";const jt=`(?:${Mt}${Tt})+`;const Ft=`${xt}${Tt}(?:((?:${Dt}: ${Nt})+))?${Tt}?(${jt})${Pt}`;class PemConverter{static isPem(R){return typeof R==="string"&&new RegExp(Ft,"g").test(R)}static decodeWithHeaders(R){R=R.replace(/\r/g,"");const pe=new RegExp(Ft,"g");const Ae=[];let he=null;while(he=pe.exec(R)){const R=he[3].replace(new RegExp(`[${Rt}]+`,"g"),"");const pe={type:he[1],headers:[],rawData:ye.Convert.FromBase64(R)};const ge=he[2];if(ge){const R=ge.split(new RegExp(Tt,"g"));let Ae=null;for(const he of R){const[R,ge]=he.split(/:(.*)/);if(ge===undefined){if(!Ae){throw new Error("Cannot parse PEM string. Incorrect header value")}Ae.value+=R.trim()}else{if(Ae){pe.headers.push(Ae)}Ae={key:R,value:ge.trim()}}}if(Ae){pe.headers.push(Ae)}}Ae.push(pe)}return Ae}static decode(R){const pe=this.decodeWithHeaders(R);return pe.map((R=>R.rawData))}static decodeFirst(R){const pe=this.decode(R);if(!pe.length){throw new RangeError("PEM string doesn't contain any objects")}return pe[0]}static encode(R,pe){if(Array.isArray(R)){const Ae=new Array;if(pe){R.forEach((R=>{if(!ye.BufferSourceConverter.isBufferSource(R)){throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource")}Ae.push(this.encodeStruct({type:pe,rawData:ye.BufferSourceConverter.toArrayBuffer(R)}))}))}else{R.forEach((R=>{if(!("type"in R)){throw new TypeError("Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut")}Ae.push(this.encodeStruct(R))}))}return Ae.join("\n")}else{if(!pe){throw new Error("Required argument 'tag' is missed")}return this.encodeStruct({type:pe,rawData:ye.BufferSourceConverter.toArrayBuffer(R)})}}static encodeStruct(R){var pe;const Ae=R.type.toLocaleUpperCase();const he=[];he.push(`-----BEGIN ${Ae}-----`);if((pe=R.headers)===null||pe===void 0?void 0:pe.length){for(const pe of R.headers){he.push(`${pe.key}: ${pe.value}`)}he.push("")}const ge=ye.Convert.ToBase64(R.rawData);let me;let ve=0;const be=Array();while(ve1){ye=R[0]||ye;Ae=R[1]||Ae;pe=R[2]||ft.get()}else{pe=R[0]||ft.get()}let me=this.rawData;const ve=he.AsnConvert.parse(this.rawData,ge.SubjectPublicKeyInfo);if(ve.algorithm.algorithm===be.id_RSASSA_PSS){me=convertSpkiToRsaPkcs1(ve,me)}return pe.subtle.importKey("spki",me,ye,true,Ae)}onInit(R){const pe=Ce.container.resolve(Qe);const Ae=this.algorithm=pe.toWebAlgorithm(R.algorithm);switch(R.algorithm.algorithm){case be.id_rsaEncryption:{const pe=he.AsnConvert.parse(R.subjectPublicKey,be.RSAPublicKey);const ge=ye.BufferSourceConverter.toUint8Array(pe.modulus);Ae.publicExponent=ye.BufferSourceConverter.toUint8Array(pe.publicExponent);Ae.modulusLength=(!ge[0]?ge.slice(1):ge).byteLength<<3;break}}}async getThumbprint(...R){var pe;let Ae;let he="SHA-1";if(R.length>=1&&!((pe=R[0])===null||pe===void 0?void 0:pe.subtle)){he=R[0]||he;Ae=R[1]||ft.get()}else{Ae=R[0]||ft.get()}return await Ae.subtle.digest(he,this.rawData)}async getKeyIdentifier(...R){let pe=ft.get();let Ae="SHA-1";if(R.length===1){if(typeof R[0]==="string"){Ae=R[0]}else{pe=R[0]}}else if(R.length===2){Ae=R[0];pe=R[1]}const ye=he.AsnConvert.parse(this.rawData,ge.SubjectPublicKeyInfo);return await pe.subtle.digest(Ae,ye.subjectPublicKey)}toTextObject(){const R=this.toTextObjectEmpty();const pe=he.AsnConvert.parse(this.rawData,ge.SubjectPublicKeyInfo);R["Algorithm"]=TextConverter.serializeAlgorithm(pe.algorithm);switch(pe.algorithm.algorithm){case ve.id_ecPublicKey:R["EC Point"]=pe.subjectPublicKey;break;case be.id_rsaEncryption:default:R["Raw Data"]=pe.subjectPublicKey}return R}}function convertSpkiToRsaPkcs1(R,pe){R.algorithm=new ge.AlgorithmIdentifier({algorithm:be.id_rsaEncryption,parameters:null});pe=he.AsnConvert.serialize(R);return pe}class AuthorityKeyIdentifierExtension extends Extension{static async create(R,pe=false,Ae=ft.get()){if("name"in R&&"serialNumber"in R){return new AuthorityKeyIdentifierExtension(R,pe)}const he=await PublicKey.create(R,Ae);const ge=await he.getKeyIdentifier(Ae);return new AuthorityKeyIdentifierExtension(ye.Convert.ToHex(ge),pe)}constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else if(typeof R[0]==="string"){const pe=new Ie.AuthorityKeyIdentifier({keyIdentifier:new Ie.KeyIdentifier(ye.Convert.FromHex(R[0]))});super(Ie.id_ce_authorityKeyIdentifier,R[1],he.AsnConvert.serialize(pe))}else{const pe=R[0];const Ae=pe.name instanceof GeneralNames?he.AsnConvert.parse(pe.name.rawData,Ie.GeneralNames):pe.name;const ge=new Ie.AuthorityKeyIdentifier({authorityCertIssuer:Ae,authorityCertSerialNumber:ye.Convert.FromHex(pe.serialNumber)});super(Ie.id_ce_authorityKeyIdentifier,R[1],he.AsnConvert.serialize(ge))}}onInit(R){super.onInit(R);const pe=he.AsnConvert.parse(R.extnValue,Ie.AuthorityKeyIdentifier);if(pe.keyIdentifier){this.keyId=ye.Convert.ToHex(pe.keyIdentifier)}if(pe.authorityCertIssuer||pe.authorityCertSerialNumber){this.certId={name:pe.authorityCertIssuer||[],serialNumber:pe.authorityCertSerialNumber?ye.Convert.ToHex(pe.authorityCertSerialNumber):""}}}toTextObject(){const R=this.toTextObjectWithoutValue();const pe=he.AsnConvert.parse(this.value,Ie.AuthorityKeyIdentifier);if(pe.authorityCertIssuer){R["Authority Issuer"]=new GeneralNames(pe.authorityCertIssuer).toTextObject()}if(pe.authorityCertSerialNumber){R["Authority Serial Number"]=pe.authorityCertSerialNumber}if(pe.keyIdentifier){R[""]=pe.keyIdentifier}return R}}AuthorityKeyIdentifierExtension.NAME="Authority Key Identifier";class BasicConstraintsExtension extends Extension{constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0]);const pe=he.AsnConvert.parse(this.value,ge.BasicConstraints);this.ca=pe.cA;this.pathLength=pe.pathLenConstraint}else{const pe=new ge.BasicConstraints({cA:R[0],pathLenConstraint:R[1]});super(ge.id_ce_basicConstraints,R[2],he.AsnConvert.serialize(pe));this.ca=R[0];this.pathLength=R[1]}}toTextObject(){const R=this.toTextObjectWithoutValue();if(this.ca){R["CA"]=this.ca}if(this.pathLength!==undefined){R["Path Length"]=this.pathLength}return R}}BasicConstraintsExtension.NAME="Basic Constraints";pe.ExtendedKeyUsage=void 0;(function(R){R["serverAuth"]="1.3.6.1.5.5.7.3.1";R["clientAuth"]="1.3.6.1.5.5.7.3.2";R["codeSigning"]="1.3.6.1.5.5.7.3.3";R["emailProtection"]="1.3.6.1.5.5.7.3.4";R["timeStamping"]="1.3.6.1.5.5.7.3.8";R["ocspSigning"]="1.3.6.1.5.5.7.3.9"})(pe.ExtendedKeyUsage||(pe.ExtendedKeyUsage={}));class ExtendedKeyUsageExtension extends Extension{constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0]);const pe=he.AsnConvert.parse(this.value,Ie.ExtendedKeyUsage);this.usages=pe.map((R=>R))}else{const pe=new Ie.ExtendedKeyUsage(R[0]);super(Ie.id_ce_extKeyUsage,R[1],he.AsnConvert.serialize(pe));this.usages=R[0]}}toTextObject(){const R=this.toTextObjectWithoutValue();R[""]=this.usages.map((R=>OidSerializer.toString(R))).join(", ");return R}}ExtendedKeyUsageExtension.NAME="Extended Key Usages";pe.KeyUsageFlags=void 0;(function(R){R[R["digitalSignature"]=1]="digitalSignature";R[R["nonRepudiation"]=2]="nonRepudiation";R[R["keyEncipherment"]=4]="keyEncipherment";R[R["dataEncipherment"]=8]="dataEncipherment";R[R["keyAgreement"]=16]="keyAgreement";R[R["keyCertSign"]=32]="keyCertSign";R[R["cRLSign"]=64]="cRLSign";R[R["encipherOnly"]=128]="encipherOnly";R[R["decipherOnly"]=256]="decipherOnly"})(pe.KeyUsageFlags||(pe.KeyUsageFlags={}));class KeyUsagesExtension extends Extension{constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0]);const pe=he.AsnConvert.parse(this.value,ge.KeyUsage);this.usages=pe.toNumber()}else{const pe=new ge.KeyUsage(R[0]);super(ge.id_ce_keyUsage,R[1],he.AsnConvert.serialize(pe));this.usages=R[0]}}toTextObject(){const R=this.toTextObjectWithoutValue();const pe=he.AsnConvert.parse(this.value,ge.KeyUsage);R[""]=pe.toJSON().join(", ");return R}}KeyUsagesExtension.NAME="Key Usages";class SubjectKeyIdentifierExtension extends Extension{static async create(R,pe=false,Ae=ft.get()){const he=await PublicKey.create(R,Ae);const ge=await he.getKeyIdentifier(Ae);return new SubjectKeyIdentifierExtension(ye.Convert.ToHex(ge),pe)}constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0]);const pe=he.AsnConvert.parse(this.value,Ie.SubjectKeyIdentifier);this.keyId=ye.Convert.ToHex(pe)}else{const pe=typeof R[0]==="string"?ye.Convert.FromHex(R[0]):R[0];const Ae=new Ie.SubjectKeyIdentifier(pe);super(Ie.id_ce_subjectKeyIdentifier,R[1],he.AsnConvert.serialize(Ae));this.keyId=ye.Convert.ToHex(pe)}}toTextObject(){const R=this.toTextObjectWithoutValue();const pe=he.AsnConvert.parse(this.value,Ie.SubjectKeyIdentifier);R[""]=pe;return R}}SubjectKeyIdentifierExtension.NAME="Subject Key Identifier";class SubjectAlternativeNameExtension extends Extension{constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else{super(Ie.id_ce_subjectAltName,R[1],new GeneralNames(R[0]||[]).rawData)}}onInit(R){super.onInit(R);const pe=he.AsnConvert.parse(R.extnValue,Ie.SubjectAlternativeName);this.names=new GeneralNames(pe)}toTextObject(){const R=this.toTextObjectWithoutValue();const pe=this.names.toTextObject();for(const Ae in pe){R[Ae]=pe[Ae]}return R}}SubjectAlternativeNameExtension.NAME="Subject Alternative Name";class ExtensionFactory{static register(R,pe){this.items.set(R,pe)}static create(R){const pe=new Extension(R);const Ae=this.items.get(pe.type);if(Ae){return new Ae(R)}return pe}}ExtensionFactory.items=new Map;class CertificatePolicyExtension extends Extension{constructor(...R){var pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0]);const pe=he.AsnConvert.parse(this.value,Ie.CertificatePolicies);this.policies=pe.map((R=>R.policyIdentifier))}else{const Ae=R[0];const ge=(pe=R[1])!==null&&pe!==void 0?pe:false;const ye=new Ie.CertificatePolicies(Ae.map((R=>new Ie.PolicyInformation({policyIdentifier:R}))));super(Ie.id_ce_certificatePolicies,ge,he.AsnConvert.serialize(ye));this.policies=Ae}}toTextObject(){const R=this.toTextObjectWithoutValue();R["Policy"]=this.policies.map((R=>new TextObject("",{},OidSerializer.toString(R))));return R}}CertificatePolicyExtension.NAME="Certificate Policies";ExtensionFactory.register(Ie.id_ce_certificatePolicies,CertificatePolicyExtension);class CRLDistributionPointsExtension extends Extension{constructor(...R){var pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else if(Array.isArray(R[0])&&typeof R[0][0]==="string"){const pe=R[0];const Ae=pe.map((R=>new Ie.DistributionPoint({distributionPoint:new Ie.DistributionPointName({fullName:[new Ie.GeneralName({uniformResourceIdentifier:R})]})})));const ge=new Ie.CRLDistributionPoints(Ae);super(Ie.id_ce_cRLDistributionPoints,R[1],he.AsnConvert.serialize(ge))}else{const pe=new Ie.CRLDistributionPoints(R[0]);super(Ie.id_ce_cRLDistributionPoints,R[1],he.AsnConvert.serialize(pe))}(pe=this.distributionPoints)!==null&&pe!==void 0?pe:this.distributionPoints=[]}onInit(R){super.onInit(R);const pe=he.AsnConvert.parse(R.extnValue,Ie.CRLDistributionPoints);this.distributionPoints=pe}toTextObject(){const R=this.toTextObjectWithoutValue();R["Distribution Point"]=this.distributionPoints.map((R=>{var pe;const Ae={};if(R.distributionPoint){Ae[""]=(pe=R.distributionPoint.fullName)===null||pe===void 0?void 0:pe.map((R=>new GeneralName(R).toString())).join(", ")}if(R.reasons){Ae["Reasons"]=R.reasons.toString()}if(R.cRLIssuer){Ae["CRL Issuer"]=R.cRLIssuer.map((R=>R.toString())).join(", ")}return Ae}));return R}}CRLDistributionPointsExtension.NAME="CRL Distribution Points";class AuthorityInfoAccessExtension extends Extension{constructor(...R){var pe,Ae,ge,me;if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else if(R[0]instanceof Ie.AuthorityInfoAccessSyntax){const pe=new Ie.AuthorityInfoAccessSyntax(R[0]);super(Ie.id_pe_authorityInfoAccess,R[1],he.AsnConvert.serialize(pe))}else{const pe=R[0];const Ae=new Ie.AuthorityInfoAccessSyntax;addAccessDescriptions(Ae,pe,Ie.id_ad_ocsp,"ocsp");addAccessDescriptions(Ae,pe,Ie.id_ad_caIssuers,"caIssuers");addAccessDescriptions(Ae,pe,Ie.id_ad_timeStamping,"timeStamping");addAccessDescriptions(Ae,pe,Ie.id_ad_caRepository,"caRepository");super(Ie.id_pe_authorityInfoAccess,R[1],he.AsnConvert.serialize(Ae))}(pe=this.ocsp)!==null&&pe!==void 0?pe:this.ocsp=[];(Ae=this.caIssuers)!==null&&Ae!==void 0?Ae:this.caIssuers=[];(ge=this.timeStamping)!==null&&ge!==void 0?ge:this.timeStamping=[];(me=this.caRepository)!==null&&me!==void 0?me:this.caRepository=[]}onInit(R){super.onInit(R);this.ocsp=[];this.caIssuers=[];this.timeStamping=[];this.caRepository=[];const pe=he.AsnConvert.parse(R.extnValue,Ie.AuthorityInfoAccessSyntax);pe.forEach((R=>{switch(R.accessMethod){case Ie.id_ad_ocsp:this.ocsp.push(new GeneralName(R.accessLocation));break;case Ie.id_ad_caIssuers:this.caIssuers.push(new GeneralName(R.accessLocation));break;case Ie.id_ad_timeStamping:this.timeStamping.push(new GeneralName(R.accessLocation));break;case Ie.id_ad_caRepository:this.caRepository.push(new GeneralName(R.accessLocation));break}}))}toTextObject(){const R=this.toTextObjectWithoutValue();if(this.ocsp.length){addUrlsToObject(R,"OCSP",this.ocsp)}if(this.caIssuers.length){addUrlsToObject(R,"CA Issuers",this.caIssuers)}if(this.timeStamping.length){addUrlsToObject(R,"Time Stamping",this.timeStamping)}if(this.caRepository.length){addUrlsToObject(R,"CA Repository",this.caRepository)}return R}}AuthorityInfoAccessExtension.NAME="Authority Info Access";function addUrlsToObject(R,pe,Ae){if(Ae.length===1){R[pe]=Ae[0].toTextObject()}else{const he=new TextObject("");Ae.forEach(((R,pe)=>{const Ae=R.toTextObject();const ge=`${Ae[TextObject.NAME]} ${pe+1}`;let ye=he[ge];if(!Array.isArray(ye)){ye=[];he[ge]=ye}ye.push(Ae)}));R[pe]=he}}function addAccessDescriptions(R,pe,Ae,ge){const ye=pe[ge];if(ye){const pe=Array.isArray(ye)?ye:[ye];pe.forEach((pe=>{if(typeof pe==="string"){pe=new GeneralName("url",pe)}R.push(new Ie.AccessDescription({accessMethod:Ae,accessLocation:he.AsnConvert.parse(pe.rawData,Ie.GeneralName)}))}))}}class Attribute extends AsnData{constructor(...R){let pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){pe=ye.BufferSourceConverter.toArrayBuffer(R[0])}else{const Ae=R[0];const me=Array.isArray(R[1])?R[1].map((R=>ye.BufferSourceConverter.toArrayBuffer(R))):[];pe=he.AsnConvert.serialize(new ge.Attribute({type:Ae,values:me}))}super(pe,ge.Attribute)}onInit(R){this.type=R.type;this.values=R.values}toTextObject(){const R=this.toTextObjectWithoutValue();R["Value"]=this.values.map((R=>new TextObject("",{"":R})));return R}toTextObjectWithoutValue(){const R=this.toTextObjectEmpty();if(R[TextObject.NAME]===Attribute.NAME){R[TextObject.NAME]=OidSerializer.toString(this.type)}return R}}Attribute.NAME="Attribute";class ChallengePasswordAttribute extends Attribute{constructor(...R){var pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else{const pe=new Oe.ChallengePassword({printableString:R[0]});super(Oe.id_pkcs9_at_challengePassword,[he.AsnConvert.serialize(pe)])}(pe=this.password)!==null&&pe!==void 0?pe:this.password=""}onInit(R){super.onInit(R);if(this.values[0]){const R=he.AsnConvert.parse(this.values[0],Oe.ChallengePassword);this.password=R.toString()}}toTextObject(){const R=this.toTextObjectWithoutValue();R[TextObject.VALUE]=this.password;return R}}ChallengePasswordAttribute.NAME="Challenge Password";class ExtensionsAttribute extends Attribute{constructor(...R){var pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else{const pe=R[0];const Ae=new Ie.Extensions;for(const R of pe){Ae.push(he.AsnConvert.parse(R.rawData,Ie.Extension))}super(Oe.id_pkcs9_at_extensionRequest,[he.AsnConvert.serialize(Ae)])}(pe=this.items)!==null&&pe!==void 0?pe:this.items=[]}onInit(R){super.onInit(R);if(this.values[0]){const R=he.AsnConvert.parse(this.values[0],Ie.Extensions);this.items=R.map((R=>ExtensionFactory.create(he.AsnConvert.serialize(R))))}}toTextObject(){const R=this.toTextObjectWithoutValue();const pe=this.items.map((R=>R.toTextObject()));for(const Ae of pe){R[Ae[TextObject.NAME]]=Ae}return R}}ExtensionsAttribute.NAME="Extensions";class AttributeFactory{static register(R,pe){this.items.set(R,pe)}static create(R){const pe=new Attribute(R);const Ae=this.items.get(pe.type);if(Ae){return new Ae(R)}return pe}}AttributeFactory.items=new Map;const Lt="crypto.signatureFormatter";class AsnDefaultSignatureFormatter{toAsnSignature(R,pe){return ye.BufferSourceConverter.toArrayBuffer(pe)}toWebSignature(R,pe){return ye.BufferSourceConverter.toArrayBuffer(pe)}}var Ut;pe.RsaAlgorithm=Ut=class RsaAlgorithm{static createPssParams(R,pe){const Ae=Ut.getHashAlgorithm(R);if(!Ae){return null}return new ke.RsaSaPssParams({hashAlgorithm:Ae,maskGenAlgorithm:new ge.AlgorithmIdentifier({algorithm:ke.id_mgf1,parameters:he.AsnConvert.serialize(Ae)}),saltLength:pe})}static getHashAlgorithm(R){const pe=Ce.container.resolve(Qe);if(typeof R==="string"){return pe.toAsnAlgorithm({name:R})}if(typeof R==="object"&&R&&"name"in R){return pe.toAsnAlgorithm(R)}return null}toAsnAlgorithm(R){switch(R.name.toLowerCase()){case"rsassa-pkcs1-v1_5":if("hash"in R){let pe;if(typeof R.hash==="string"){pe=R.hash}else if(R.hash&&typeof R.hash==="object"&&"name"in R.hash&&typeof R.hash.name==="string"){pe=R.hash.name.toUpperCase()}else{throw new Error("Cannot get hash algorithm name")}switch(pe.toLowerCase()){case"sha-1":return new ge.AlgorithmIdentifier({algorithm:ke.id_sha1WithRSAEncryption,parameters:null});case"sha-256":return new ge.AlgorithmIdentifier({algorithm:ke.id_sha256WithRSAEncryption,parameters:null});case"sha-384":return new ge.AlgorithmIdentifier({algorithm:ke.id_sha384WithRSAEncryption,parameters:null});case"sha-512":return new ge.AlgorithmIdentifier({algorithm:ke.id_sha512WithRSAEncryption,parameters:null})}}else{return new ge.AlgorithmIdentifier({algorithm:ke.id_rsaEncryption,parameters:null})}break;case"rsa-pss":if("hash"in R){if(!("saltLength"in R&&typeof R.saltLength==="number")){throw new Error("Cannot get 'saltLength' from 'alg' argument")}const pe=Ut.createPssParams(R.hash,R.saltLength);if(!pe){throw new Error("Cannot create PSS parameters")}return new ge.AlgorithmIdentifier({algorithm:ke.id_RSASSA_PSS,parameters:he.AsnConvert.serialize(pe)})}else{return new ge.AlgorithmIdentifier({algorithm:ke.id_RSASSA_PSS,parameters:null})}}return null}toWebAlgorithm(R){switch(R.algorithm){case ke.id_rsaEncryption:return{name:"RSASSA-PKCS1-v1_5"};case ke.id_sha1WithRSAEncryption:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}};case ke.id_sha256WithRSAEncryption:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case ke.id_sha384WithRSAEncryption:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}};case ke.id_sha512WithRSAEncryption:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}};case ke.id_RSASSA_PSS:if(R.parameters){const pe=he.AsnConvert.parse(R.parameters,ke.RsaSaPssParams);const Ae=Ce.container.resolve(Qe);const ge=Ae.toWebAlgorithm(pe.hashAlgorithm);return{name:"RSA-PSS",hash:ge,saltLength:pe.saltLength}}else{return{name:"RSA-PSS"}}}return null}};pe.RsaAlgorithm=Ut=Ee.__decorate([Ce.injectable()],pe.RsaAlgorithm);Ce.container.registerSingleton(Re,pe.RsaAlgorithm);pe.ShaAlgorithm=class ShaAlgorithm{toAsnAlgorithm(R){switch(R.name.toLowerCase()){case"sha-1":return new ge.AlgorithmIdentifier({algorithm:be.id_sha1});case"sha-256":return new ge.AlgorithmIdentifier({algorithm:be.id_sha256});case"sha-384":return new ge.AlgorithmIdentifier({algorithm:be.id_sha384});case"sha-512":return new ge.AlgorithmIdentifier({algorithm:be.id_sha512})}return null}toWebAlgorithm(R){switch(R.algorithm){case be.id_sha1:return{name:"SHA-1"};case be.id_sha256:return{name:"SHA-256"};case be.id_sha384:return{name:"SHA-384"};case be.id_sha512:return{name:"SHA-512"}}return null}};pe.ShaAlgorithm=Ee.__decorate([Ce.injectable()],pe.ShaAlgorithm);Ce.container.registerSingleton(Re,pe.ShaAlgorithm);class AsnEcSignatureFormatter{addPadding(R,pe){const Ae=ye.BufferSourceConverter.toUint8Array(pe);const he=new Uint8Array(R);he.set(Ae,R-Ae.length);return he}removePadding(R,pe=false){let Ae=ye.BufferSourceConverter.toUint8Array(R);for(let R=0;R127){const R=new Uint8Array(Ae.length+1);R.set(Ae,1);return R.buffer}return Ae.buffer}toAsnSignature(R,pe){if(R.name==="ECDSA"){const Ae=R.namedCurve;const ge=AsnEcSignatureFormatter.namedCurveSize.get(Ae)||AsnEcSignatureFormatter.defaultNamedCurveSize;const me=new ve.ECDSASigValue;const be=ye.BufferSourceConverter.toUint8Array(pe);me.r=this.removePadding(be.slice(0,ge),true);me.s=this.removePadding(be.slice(ge,ge+ge),true);return he.AsnConvert.serialize(me)}return null}toWebSignature(R,pe){if(R.name==="ECDSA"){const Ae=he.AsnConvert.parse(pe,ve.ECDSASigValue);const ge=R.namedCurve;const me=AsnEcSignatureFormatter.namedCurveSize.get(ge)||AsnEcSignatureFormatter.defaultNamedCurveSize;const be=this.addPadding(me,this.removePadding(Ae.r));const Ee=this.addPadding(me,this.removePadding(Ae.s));return ye.combine(be,Ee)}return null}}AsnEcSignatureFormatter.namedCurveSize=new Map;AsnEcSignatureFormatter.defaultNamedCurveSize=32;const Ht="1.3.101.110";const Jt="1.3.101.111";const Wt="1.3.101.112";const Vt="1.3.101.113";pe.EdAlgorithm=class EdAlgorithm{toAsnAlgorithm(R){let pe=null;switch(R.name.toLowerCase()){case"ed25519":pe=Wt;break;case"x25519":pe=Ht;break;case"eddsa":switch(R.namedCurve.toLowerCase()){case"ed25519":pe=Wt;break;case"ed448":pe=Vt;break}break;case"ecdh-es":switch(R.namedCurve.toLowerCase()){case"x25519":pe=Ht;break;case"x448":pe=Jt;break}}if(pe){return new ge.AlgorithmIdentifier({algorithm:pe})}return null}toWebAlgorithm(R){switch(R.algorithm){case Wt:return{name:"Ed25519"};case Vt:return{name:"EdDSA",namedCurve:"Ed448"};case Ht:return{name:"X25519"};case Jt:return{name:"ECDH-ES",namedCurve:"X448"}}return null}};pe.EdAlgorithm=Ee.__decorate([Ce.injectable()],pe.EdAlgorithm);Ce.container.registerSingleton(Re,pe.EdAlgorithm);class Pkcs10CertificateRequest extends PemData{constructor(R){if(PemData.isAsnEncoded(R)){super(R,_e.CertificationRequest)}else{super(R)}this.tag=PemConverter.CertificateRequestTag}onInit(R){this.tbs=he.AsnConvert.serialize(R.certificationRequestInfo);this.publicKey=new PublicKey(R.certificationRequestInfo.subjectPKInfo);const pe=Ce.container.resolve(Qe);this.signatureAlgorithm=pe.toWebAlgorithm(R.signatureAlgorithm);this.signature=R.signature;this.attributes=R.certificationRequestInfo.attributes.map((R=>AttributeFactory.create(he.AsnConvert.serialize(R))));const Ae=this.getAttribute(we.id_pkcs9_at_extensionRequest);this.extensions=[];if(Ae instanceof ExtensionsAttribute){this.extensions=Ae.items}this.subjectName=new Name(R.certificationRequestInfo.subject);this.subject=this.subjectName.toString()}getAttribute(R){for(const pe of this.attributes){if(pe.type===R){return pe}}return null}getAttributes(R){return this.attributes.filter((pe=>pe.type===R))}getExtension(R){for(const pe of this.extensions){if(pe.type===R){return pe}}return null}getExtensions(R){return this.extensions.filter((pe=>pe.type===R))}async verify(R=ft.get()){const pe={...this.publicKey.algorithm,...this.signatureAlgorithm};const Ae=await this.publicKey.export(pe,["verify"],R);const he=Ce.container.resolveAll(Lt).reverse();let ge=null;for(const R of he){ge=R.toWebSignature(pe,this.signature);if(ge){break}}if(!ge){throw Error("Cannot convert WebCrypto signature value to ASN.1 format")}const ye=await R.subtle.verify(this.signatureAlgorithm,Ae,ge,this.tbs);return ye}toTextObject(){const R=this.toTextObjectEmpty();const pe=he.AsnConvert.parse(this.rawData,_e.CertificationRequest);const Ae=pe.certificationRequestInfo;const ye=new TextObject("",{Version:`${ge.Version[Ae.version]} (${Ae.version})`,Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){const R=new TextObject("");for(const pe of this.attributes){const Ae=pe.toTextObject();R[Ae[TextObject.NAME]]=Ae}ye["Attributes"]=R}R["Data"]=ye;R["Signature"]=new TextObject("",{Algorithm:TextConverter.serializeAlgorithm(pe.signatureAlgorithm),"":pe.signature});return R}}Pkcs10CertificateRequest.NAME="PKCS#10 Certificate Request";class Pkcs10CertificateRequestGenerator{static async create(R,pe=ft.get()){if(!R.keys.privateKey){throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty")}if(!R.keys.publicKey){throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty")}const Ae=await pe.subtle.exportKey("spki",R.keys.publicKey);const ye=new _e.CertificationRequest({certificationRequestInfo:new _e.CertificationRequestInfo({subjectPKInfo:he.AsnConvert.parse(Ae,ge.SubjectPublicKeyInfo)})});if(R.name){const pe=R.name instanceof Name?R.name:new Name(R.name);ye.certificationRequestInfo.subject=he.AsnConvert.parse(pe.toArrayBuffer(),ge.Name)}if(R.attributes){for(const pe of R.attributes){ye.certificationRequestInfo.attributes.push(he.AsnConvert.parse(pe.rawData,ge.Attribute))}}if(R.extensions&&R.extensions.length){const pe=new ge.Attribute({type:we.id_pkcs9_at_extensionRequest});const Ae=new ge.Extensions;for(const pe of R.extensions){Ae.push(he.AsnConvert.parse(pe.rawData,ge.Extension))}pe.values.push(he.AsnConvert.serialize(Ae));ye.certificationRequestInfo.attributes.push(pe)}const me={...R.signingAlgorithm,...R.keys.privateKey.algorithm};const ve=Ce.container.resolve(Qe);ye.signatureAlgorithm=ve.toAsnAlgorithm(me);const be=he.AsnConvert.serialize(ye.certificationRequestInfo);const Ee=await pe.subtle.sign(me,R.keys.privateKey,be);const Ie=Ce.container.resolveAll(Lt).reverse();let Se=null;for(const R of Ie){Se=R.toAsnSignature(me,Ee);if(Se){break}}if(!Se){throw Error("Cannot convert WebCrypto signature value to ASN.1 format")}ye.signature=Se;return new Pkcs10CertificateRequest(he.AsnConvert.serialize(ye))}}class X509Certificate extends PemData{constructor(R){if(PemData.isAsnEncoded(R)){super(R,ge.Certificate)}else{super(R)}this.tag=PemConverter.CertificateTag}onInit(R){const pe=R.tbsCertificate;this.tbs=he.AsnConvert.serialize(pe);this.serialNumber=ye.Convert.ToHex(pe.serialNumber);this.subjectName=new Name(pe.subject);this.subject=new Name(pe.subject).toString();this.issuerName=new Name(pe.issuer);this.issuer=this.issuerName.toString();const Ae=Ce.container.resolve(Qe);this.signatureAlgorithm=Ae.toWebAlgorithm(R.signatureAlgorithm);this.signature=R.signatureValue;const ge=pe.validity.notBefore.utcTime||pe.validity.notBefore.generalTime;if(!ge){throw new Error("Cannot get 'notBefore' value")}this.notBefore=ge;const me=pe.validity.notAfter.utcTime||pe.validity.notAfter.generalTime;if(!me){throw new Error("Cannot get 'notAfter' value")}this.notAfter=me;this.extensions=[];if(pe.extensions){this.extensions=pe.extensions.map((R=>ExtensionFactory.create(he.AsnConvert.serialize(R))))}this.publicKey=new PublicKey(pe.subjectPublicKeyInfo)}getExtension(R){for(const pe of this.extensions){if(typeof R==="string"){if(pe.type===R){return pe}}else{if(pe instanceof R){return pe}}}return null}getExtensions(R){return this.extensions.filter((pe=>{if(typeof R==="string"){return pe.type===R}else{return pe instanceof R}}))}async verify(R={},pe=ft.get()){let Ae;let he;const ge=R.publicKey;try{if(!ge){Ae={...this.publicKey.algorithm,...this.signatureAlgorithm};he=await this.publicKey.export(Ae,["verify"],pe)}else if("publicKey"in ge){Ae={...ge.publicKey.algorithm,...this.signatureAlgorithm};he=await ge.publicKey.export(Ae,["verify"],pe)}else if(ge instanceof PublicKey){Ae={...ge.algorithm,...this.signatureAlgorithm};he=await ge.export(Ae,["verify"],pe)}else if(ye.BufferSourceConverter.isBufferSource(ge)){const R=new PublicKey(ge);Ae={...R.algorithm,...this.signatureAlgorithm};he=await R.export(Ae,["verify"],pe)}else{Ae={...ge.algorithm,...this.signatureAlgorithm};he=ge}}catch(R){return false}const me=Ce.container.resolveAll(Lt).reverse();let ve=null;for(const R of me){ve=R.toWebSignature(Ae,this.signature);if(ve){break}}if(!ve){throw Error("Cannot convert ASN.1 signature value to WebCrypto format")}const be=await pe.subtle.verify(this.signatureAlgorithm,he,ve,this.tbs);if(R.signatureOnly){return be}else{const pe=R.date||new Date;const Ae=pe.getTime();return be&&this.notBefore.getTime()new Se.CertificateChoices({certificate:he.AsnConvert.parse(R.rawData,ge.Certificate)}))));const Ae=new Se.ContentInfo({contentType:Se.id_signedData,content:he.AsnConvert.serialize(pe)});const ye=he.AsnConvert.serialize(Ae);if(R==="raw"){return ye}return this.toString(R)}import(R){const pe=PemData.toArrayBuffer(R);const Ae=he.AsnConvert.parse(pe,Se.ContentInfo);if(Ae.contentType!==Se.id_signedData){throw new TypeError("Cannot parse CMS package. Incoming data is not a SignedData object.")}const ge=he.AsnConvert.parse(Ae.content,Se.SignedData);this.clear();for(const R of ge.certificates||[]){if(R.certificate){this.push(new X509Certificate(R.certificate))}}}clear(){while(this.pop()){}}toString(R="pem"){const pe=this.export("raw");switch(R){case"pem":return PemConverter.encode(pe,"CMS");case"pem-chain":return this.map((R=>R.toString("pem"))).join("\n");case"asn":return he.AsnConvert.toString(pe);case"hex":return ye.Convert.ToHex(pe);case"base64":return ye.Convert.ToBase64(pe);case"base64url":return ye.Convert.ToBase64Url(pe);case"text":return TextConverter.serialize(this.toTextObject());default:throw TypeError("Argument 'format' is unsupported value")}}toTextObject(){const R=he.AsnConvert.parse(this.export("raw"),Se.ContentInfo);const pe=he.AsnConvert.parse(R.content,Se.SignedData);const Ae=new TextObject("X509Certificates",{"Content Type":OidSerializer.toString(R.contentType),Content:new TextObject("",{Version:`${Se.CMSVersion[pe.version]} (${pe.version})`,Certificates:new TextObject("",{Certificate:this.map((R=>R.toTextObject()))})})});return Ae}}class X509ChainBuilder{constructor(R={}){this.certificates=[];if(R.certificates){this.certificates=R.certificates}}async build(R,pe=ft.get()){const Ae=new X509Certificates(R);let he=R;while(he=await this.findIssuer(he,pe)){const R=await he.getThumbprint(pe);for(const he of Ae){const Ae=await he.getThumbprint(pe);if(ye.isEqual(R,Ae)){throw new Error("Cannot build a certificate chain. Circular dependency.")}}Ae.push(he)}return Ae}async findIssuer(R,pe=ft.get()){if(!await R.isSelfSigned(pe)){const Ae=R.getExtension(Ie.id_ce_authorityKeyIdentifier);for(const ge of this.certificates){if(ge.subject!==R.issuer){continue}if(Ae){if(Ae.keyId){const R=ge.getExtension(Ie.id_ce_subjectKeyIdentifier);if(R&&R.keyId!==Ae.keyId){continue}}else if(Ae.certId){const R=ge.getExtension(Ie.id_ce_subjectAltName);if(R&&!(Ae.certId.serialNumber===ge.serialNumber&&ye.isEqual(he.AsnConvert.serialize(Ae.certId.name),he.AsnConvert.serialize(R)))){continue}}}try{const Ae={...ge.publicKey.algorithm,...R.signatureAlgorithm};const he=await ge.publicKey.export(Ae,["verify"],pe);const ye=await R.verify({publicKey:he,signatureOnly:true},pe);if(!ye){continue}}catch(R){continue}return ge}}return null}}class X509CertificateGenerator{static async createSelfSigned(R,pe=ft.get()){if(!R.keys.privateKey){throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty")}if(!R.keys.publicKey){throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty")}return this.create({serialNumber:R.serialNumber,subject:R.name,issuer:R.name,notBefore:R.notBefore,notAfter:R.notAfter,publicKey:R.keys.publicKey,signingKey:R.keys.privateKey,signingAlgorithm:R.signingAlgorithm,extensions:R.extensions},pe)}static async create(R,pe=ft.get()){var Ae;let ge;if(R.publicKey instanceof PublicKey){ge=R.publicKey.rawData}else if("publicKey"in R.publicKey){ge=R.publicKey.publicKey.rawData}else if(ye.BufferSourceConverter.isBufferSource(R.publicKey)){ge=R.publicKey}else{ge=await pe.subtle.exportKey("spki",R.publicKey)}const me=R.serialNumber?ye.BufferSourceConverter.toUint8Array(ye.Convert.FromHex(R.serialNumber)):pe.getRandomValues(new Uint8Array(16));if(me[0]>127){me[0]&=127}if(me.length>1&&me[0]===0){me[1]|=128}const ve=R.notBefore||new Date;const be=R.notAfter||new Date(ve.getTime()+31536e6);const Ee=new Ie.Certificate({tbsCertificate:new Ie.TBSCertificate({version:Ie.Version.v3,serialNumber:me,validity:new Ie.Validity({notBefore:ve,notAfter:be}),extensions:new Ie.Extensions(((Ae=R.extensions)===null||Ae===void 0?void 0:Ae.map((R=>he.AsnConvert.parse(R.rawData,Ie.Extension))))||[]),subjectPublicKeyInfo:he.AsnConvert.parse(ge,Ie.SubjectPublicKeyInfo)})});if(R.subject){const pe=R.subject instanceof Name?R.subject:new Name(R.subject);Ee.tbsCertificate.subject=he.AsnConvert.parse(pe.toArrayBuffer(),Ie.Name)}if(R.issuer){const pe=R.issuer instanceof Name?R.issuer:new Name(R.issuer);Ee.tbsCertificate.issuer=he.AsnConvert.parse(pe.toArrayBuffer(),Ie.Name)}const we={hash:"SHA-256"};const _e="signingKey"in R?{...we,...R.signingAlgorithm,...R.signingKey.algorithm}:{...we,...R.signingAlgorithm};const Se=Ce.container.resolve(Qe);Ee.tbsCertificate.signature=Ee.signatureAlgorithm=Se.toAsnAlgorithm(_e);const Be=he.AsnConvert.serialize(Ee.tbsCertificate);const ke="signingKey"in R?await pe.subtle.sign(_e,R.signingKey,Be):R.signature;const Oe=Ce.container.resolveAll(Lt).reverse();let Re=null;for(const R of Oe){Re=R.toAsnSignature(_e,ke);if(Re){break}}if(!Re){throw Error("Cannot convert ASN.1 signature value to WebCrypto format")}Ee.signatureValue=Re;return new X509Certificate(he.AsnConvert.serialize(Ee))}}pe.X509CrlReason=void 0;(function(R){R[R["unspecified"]=0]="unspecified";R[R["keyCompromise"]=1]="keyCompromise";R[R["cACompromise"]=2]="cACompromise";R[R["affiliationChanged"]=3]="affiliationChanged";R[R["superseded"]=4]="superseded";R[R["cessationOfOperation"]=5]="cessationOfOperation";R[R["certificateHold"]=6]="certificateHold";R[R["removeFromCRL"]=8]="removeFromCRL";R[R["privilegeWithdrawn"]=9]="privilegeWithdrawn";R[R["aACompromise"]=10]="aACompromise"})(pe.X509CrlReason||(pe.X509CrlReason={}));class X509CrlEntry extends AsnData{constructor(...R){let pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){pe=ye.BufferSourceConverter.toArrayBuffer(R[0])}else{pe=he.AsnConvert.serialize(new ge.RevokedCertificate({userCertificate:R[0],revocationDate:new ge.Time(R[1]),crlEntryExtensions:R[2]}))}super(pe,ge.RevokedCertificate)}onInit(R){this.serialNumber=ye.Convert.ToHex(R.userCertificate);this.revocationDate=R.revocationDate.getTime();this.extensions=[];if(R.crlEntryExtensions){this.extensions=R.crlEntryExtensions.map((R=>{const pe=ExtensionFactory.create(he.AsnConvert.serialize(R));switch(pe.type){case ge.id_ce_cRLReasons:this.reason=he.AsnConvert.parse(pe.value,ge.CRLReason).reason;break;case ge.id_ce_invalidityDate:this.invalidity=he.AsnConvert.parse(pe.value,ge.InvalidityDate).value;break}return pe}))}}}class X509Crl extends PemData{constructor(R){if(PemData.isAsnEncoded(R)){super(R,ge.CertificateList)}else{super(R)}this.tag=PemConverter.CrlTag}onInit(R){var pe,Ae;const ge=R.tbsCertList;this.tbs=he.AsnConvert.serialize(ge);this.version=ge.version;const ye=Ce.container.resolve(Qe);this.signatureAlgorithm=ye.toWebAlgorithm(R.signatureAlgorithm);this.tbsCertListSignatureAlgorithm=ge.signature;this.certListSignatureAlgorithm=R.signatureAlgorithm;this.signature=R.signature;this.issuerName=new Name(ge.issuer);this.issuer=this.issuerName.toString();const me=ge.thisUpdate.getTime();if(!me){throw new Error("Cannot get 'thisUpdate' value")}this.thisUpdate=me;const ve=(pe=ge.nextUpdate)===null||pe===void 0?void 0:pe.getTime();this.nextUpdate=ve;this.entries=((Ae=ge.revokedCertificates)===null||Ae===void 0?void 0:Ae.map((R=>new X509CrlEntry(he.AsnConvert.serialize(R)))))||[];this.extensions=[];if(ge.crlExtensions){this.extensions=ge.crlExtensions.map((R=>ExtensionFactory.create(he.AsnConvert.serialize(R))))}}getExtension(R){for(const pe of this.extensions){if(typeof R==="string"){if(pe.type===R){return pe}}else{if(pe instanceof R){return pe}}}return null}getExtensions(R){return this.extensions.filter((pe=>{if(typeof R==="string"){return pe.type===R}else{return pe instanceof R}}))}async verify(R,pe=ft.get()){if(!this.certListSignatureAlgorithm.isEqual(this.tbsCertListSignatureAlgorithm)){throw new Error("algorithm identifier in the sequence tbsCertList and CertificateList mismatch")}let Ae;let he;const ge=R.publicKey;try{if(ge instanceof X509Certificate){Ae={...ge.publicKey.algorithm,...ge.signatureAlgorithm};he=await ge.publicKey.export(Ae,["verify"])}else if(ge instanceof PublicKey){Ae={...ge.algorithm,...this.signature};he=await ge.export(Ae,["verify"])}else{Ae={...ge.algorithm,...this.signature};he=ge}}catch(R){return false}const ye=Ce.container.resolveAll(Lt).reverse();let me=null;for(const R of ye){me=R.toWebSignature(Ae,this.signature);if(me){break}}if(!me){throw Error("Cannot convert ASN.1 signature value to WebCrypto format")}return await pe.subtle.verify(this.signatureAlgorithm,he,me,this.tbs)}async getThumbprint(...R){let pe;let Ae="SHA-1";if(R[0]){if(!R[0].subtle){Ae=R[0]||Ae;pe=R[1]}else{pe=R[0]}}pe!==null&&pe!==void 0?pe:pe=ft.get();return await pe.subtle.digest(Ae,this.rawData)}findRevoked(R){const pe=typeof R==="string"?R:R.serialNumber;for(const R of this.entries){if(R.serialNumber===pe){return R}}return null}}class X509CrlGenerator{static async create(R,pe=ft.get()){var Ae;const me=R.issuer instanceof Name?R.issuer:new Name(R.issuer);const ve=new Ie.CertificateList({tbsCertList:new Ie.TBSCertList({version:Ie.Version.v2,issuer:he.AsnConvert.parse(me.toArrayBuffer(),Ie.Name),thisUpdate:new ge.Time(R.thisUpdate||new Date)})});if(R.nextUpdate){ve.tbsCertList.nextUpdate=new ge.Time(R.nextUpdate)}if(R.extensions&&R.extensions.length){ve.tbsCertList.crlExtensions=new Ie.Extensions(R.extensions.map((R=>he.AsnConvert.parse(R.rawData,Ie.Extension)))||[])}if(R.entries&&R.entries.length){ve.tbsCertList.revokedCertificates=[];for(const pe of R.entries){const me=PemData.toArrayBuffer(pe.serialNumber);const be=ve.tbsCertList.revokedCertificates.findIndex((R=>ye.isEqual(R.userCertificate,me)));if(be>-1){throw new Error(`Certificate serial number ${pe.serialNumber} already exists in tbsCertList`)}const Ee=new ge.RevokedCertificate({userCertificate:me,revocationDate:new ge.Time(pe.revocationDate||new Date)});if("extensions"in pe&&((Ae=pe.extensions)===null||Ae===void 0?void 0:Ae.length)){Ee.crlEntryExtensions=pe.extensions.map((R=>he.AsnConvert.parse(R.rawData,Ie.Extension)))}else{Ee.crlEntryExtensions=[]}if(!(pe instanceof X509CrlEntry)){if(pe.reason){Ee.crlEntryExtensions.push(new Ie.Extension({extnID:Ie.id_ce_cRLReasons,critical:false,extnValue:new he.OctetString(he.AsnConvert.serialize(new Ie.CRLReason(pe.reason)))}))}if(pe.invalidity){Ee.crlEntryExtensions.push(new Ie.Extension({extnID:Ie.id_ce_invalidityDate,critical:false,extnValue:new he.OctetString(he.AsnConvert.serialize(new Ie.InvalidityDate(pe.invalidity)))}))}if(pe.issuer){const pe=R.issuer instanceof Name?R.issuer:new Name(R.issuer);Ee.crlEntryExtensions.push(new Ie.Extension({extnID:Ie.id_ce_certificateIssuer,critical:false,extnValue:new he.OctetString(he.AsnConvert.serialize(he.AsnConvert.parse(pe.toArrayBuffer(),Ie.Name)))}))}}ve.tbsCertList.revokedCertificates.push(Ee)}}const be={...R.signingAlgorithm,...R.signingKey.algorithm};const Ee=Ce.container.resolve(Qe);ve.tbsCertList.signature=ve.signatureAlgorithm=Ee.toAsnAlgorithm(be);const we=he.AsnConvert.serialize(ve.tbsCertList);const _e=await pe.subtle.sign(be,R.signingKey,we);const Se=Ce.container.resolveAll(Lt).reverse();let Be=null;for(const R of Se){Be=R.toAsnSignature(be,_e);if(Be){break}}if(!Be){throw Error("Cannot convert ASN.1 signature value to WebCrypto format")}ve.signature=Be;return new X509Crl(he.AsnConvert.serialize(ve))}}ExtensionFactory.register(Ie.id_ce_basicConstraints,BasicConstraintsExtension);ExtensionFactory.register(Ie.id_ce_extKeyUsage,ExtendedKeyUsageExtension);ExtensionFactory.register(Ie.id_ce_keyUsage,KeyUsagesExtension);ExtensionFactory.register(Ie.id_ce_subjectKeyIdentifier,SubjectKeyIdentifierExtension);ExtensionFactory.register(Ie.id_ce_authorityKeyIdentifier,AuthorityKeyIdentifierExtension);ExtensionFactory.register(Ie.id_ce_subjectAltName,SubjectAlternativeNameExtension);ExtensionFactory.register(Ie.id_ce_cRLDistributionPoints,CRLDistributionPointsExtension);ExtensionFactory.register(Ie.id_pe_authorityInfoAccess,AuthorityInfoAccessExtension);AttributeFactory.register(Oe.id_pkcs9_at_challengePassword,ChallengePasswordAttribute);AttributeFactory.register(Oe.id_pkcs9_at_extensionRequest,ExtensionsAttribute);Ce.container.registerSingleton(Lt,AsnDefaultSignatureFormatter);Ce.container.registerSingleton(Lt,AsnEcSignatureFormatter);AsnEcSignatureFormatter.namedCurveSize.set("P-256",32);AsnEcSignatureFormatter.namedCurveSize.set("K-256",32);AsnEcSignatureFormatter.namedCurveSize.set("P-384",48);AsnEcSignatureFormatter.namedCurveSize.set("P-521",66);pe.AlgorithmProvider=AlgorithmProvider;pe.AsnData=AsnData;pe.AsnDefaultSignatureFormatter=AsnDefaultSignatureFormatter;pe.AsnEcSignatureFormatter=AsnEcSignatureFormatter;pe.Attribute=Attribute;pe.AttributeFactory=AttributeFactory;pe.AuthorityInfoAccessExtension=AuthorityInfoAccessExtension;pe.AuthorityKeyIdentifierExtension=AuthorityKeyIdentifierExtension;pe.BasicConstraintsExtension=BasicConstraintsExtension;pe.CRLDistributionPointsExtension=CRLDistributionPointsExtension;pe.CertificatePolicyExtension=CertificatePolicyExtension;pe.ChallengePasswordAttribute=ChallengePasswordAttribute;pe.CryptoProvider=CryptoProvider;pe.DefaultAlgorithmSerializer=DefaultAlgorithmSerializer;pe.ExtendedKeyUsageExtension=ExtendedKeyUsageExtension;pe.Extension=Extension;pe.ExtensionFactory=ExtensionFactory;pe.ExtensionsAttribute=ExtensionsAttribute;pe.GeneralName=GeneralName;pe.GeneralNames=GeneralNames;pe.KeyUsagesExtension=KeyUsagesExtension;pe.Name=Name;pe.NameIdentifier=NameIdentifier;pe.OidSerializer=OidSerializer;pe.PemConverter=PemConverter;pe.Pkcs10CertificateRequest=Pkcs10CertificateRequest;pe.Pkcs10CertificateRequestGenerator=Pkcs10CertificateRequestGenerator;pe.PublicKey=PublicKey;pe.SubjectAlternativeNameExtension=SubjectAlternativeNameExtension;pe.SubjectKeyIdentifierExtension=SubjectKeyIdentifierExtension;pe.TextConverter=TextConverter;pe.TextObject=TextObject;pe.X509Certificate=X509Certificate;pe.X509CertificateGenerator=X509CertificateGenerator;pe.X509Certificates=X509Certificates;pe.X509ChainBuilder=X509ChainBuilder;pe.X509Crl=X509Crl;pe.X509CrlEntry=X509CrlEntry;pe.X509CrlGenerator=X509CrlGenerator;pe.cryptoProvider=ft;pe.diAlgorithm=Re;pe.diAlgorithmProvider=Qe;pe.diAsnSignatureFormatter=Lt;pe.idEd25519=Wt;pe.idEd448=Vt;pe.idX25519=Ht;pe.idX448=Jt},48246:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Tagged=pe.diagnose=pe.decodeFirstSync=pe.decodeFirst=pe.encodeAsync=pe.decode=pe.encode=pe.encodeCanonical=pe.toArrayBuffer=pe.EMPTY_BUFFER=pe.Sign1Tag=void 0;const he=Ae(4114);Object.defineProperty(pe,"encodeCanonical",{enumerable:true,get:function(){return he.encodeCanonical}});Object.defineProperty(pe,"encode",{enumerable:true,get:function(){return he.encode}});Object.defineProperty(pe,"decode",{enumerable:true,get:function(){return he.decode}});Object.defineProperty(pe,"encodeAsync",{enumerable:true,get:function(){return he.encodeAsync}});Object.defineProperty(pe,"decodeFirst",{enumerable:true,get:function(){return he.decodeFirst}});Object.defineProperty(pe,"decodeFirstSync",{enumerable:true,get:function(){return he.decodeFirstSync}});Object.defineProperty(pe,"diagnose",{enumerable:true,get:function(){return he.diagnose}});Object.defineProperty(pe,"Tagged",{enumerable:true,get:function(){return he.Tagged}});const ge=Ae(63015);Object.defineProperty(pe,"toArrayBuffer",{enumerable:true,get:function(){return ge.toArrayBuffer}});pe.Sign1Tag=18;pe.EMPTY_BUFFER=(0,ge.toArrayBuffer)(new Uint8Array)},63015:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.toArrayBuffer=void 0;const toArrayBuffer=R=>{if(R instanceof ArrayBuffer){return R}return R.buffer.slice(R.byteOffset,R.byteLength+R.byteOffset)};pe.toArrayBuffer=toArrayBuffer},3251:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.COSE_Encrypt=pe.COSE_Sign1=pe.COSE_Encrypt0=pe.Curve=pe.Epk=pe.KeyType=pe.EC2=pe.Direct=pe.KeyWrap=pe.KeyAgreementWithKeyWrap=pe.KeyAgreement=pe.Receipt=pe.Signature=pe.Hash=pe.Aead=pe.A128GCM=pe.Unprotected=pe.Protected=pe.PayloadHashAlgorithm=pe.PayloadPreImageContentType=pe.PayloadLocation=pe.ProofType=pe.ContentType=pe.PartyVOther=pe.PartyVNonce=pe.PartyVIdentity=pe.PartyUOther=pe.PartyUNonce=pe.PartyUIdentity=pe.HeaderParameters=pe.UnprotectedHeader=pe.ProtectedHeader=void 0;const ProtectedHeader=R=>new Map(R);pe.ProtectedHeader=ProtectedHeader;const UnprotectedHeader=R=>new Map(R);pe.UnprotectedHeader=UnprotectedHeader;pe.HeaderParameters={Alg:1,Epk:-1,Kid:4,X5t:34};pe.PartyUIdentity=-21;pe.PartyUNonce=-22;pe.PartyUOther=-23;pe.PartyVIdentity=-24;pe.PartyVNonce=-25;pe.PartyVOther=-26;pe.ContentType=3;pe.ProofType=395;pe.PayloadLocation=-6801;pe.PayloadPreImageContentType=-6802;pe.PayloadHashAlgorithm=-6800;pe.Protected=Object.assign(Object.assign({},pe.HeaderParameters),{PartyUIdentity:pe.PartyUIdentity,PartyUNonce:pe.PartyUNonce,PartyUOther:pe.PartyUOther,PartyVIdentity:pe.PartyVIdentity,PartyVNonce:pe.PartyVNonce,PartyVOther:pe.PartyVOther,ContentType:pe.ContentType,ProofType:pe.ProofType,PayloadHashAlgorithm:pe.PayloadHashAlgorithm,PayloadPreImageContentType:pe.PayloadPreImageContentType,PayloadLocation:pe.PayloadLocation});pe.Unprotected=Object.assign(Object.assign({},pe.HeaderParameters),{Iv:5,Ek:-4});pe.A128GCM=1;pe.Aead={A128GCM:pe.A128GCM};pe.Hash={SHA256:-16};pe.Signature={ES256:-7};pe.Receipt={Inclusion:1};pe.KeyAgreement={"ECDH-ES+HKDF-256":-25};pe.KeyAgreementWithKeyWrap={"ECDH-ES+A128KW":-29};pe.KeyWrap={A128KW:-3};pe.Direct={"HPKE-Base-P256-SHA256-AES128GCM":35};pe.EC2=2;pe.KeyType={EC2:pe.EC2};pe.Epk={Kty:1,Crv:-1,Alg:3};pe.Curve={P256:1};pe.COSE_Encrypt0=16;pe.COSE_Sign1=18;pe.COSE_Encrypt=96},38853:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEAlgorithms=void 0;pe.IANACOSEAlgorithms={0:{Name:"Reserved",Value:"0",Description:"",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},1:{Name:"A128GCM",Value:"1",Description:"AES-GCM mode w/ 128-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},2:{Name:"A192GCM",Value:"2",Description:"AES-GCM mode w/ 192-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},3:{Name:"A256GCM",Value:"3",Description:"AES-GCM mode w/ 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},4:{Name:"HMAC 256/64",Value:"4",Description:"HMAC w/ SHA-256 truncated to 64 bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},5:{Name:"HMAC 256/256",Value:"5",Description:"HMAC w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},6:{Name:"HMAC 384/384",Value:"6",Description:"HMAC w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},7:{Name:"HMAC 512/512",Value:"7",Description:"HMAC w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},10:{Name:"AES-CCM-16-64-128",Value:"10",Description:"AES-CCM mode 128-bit key, 64-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},11:{Name:"AES-CCM-16-64-256",Value:"11",Description:"AES-CCM mode 256-bit key, 64-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},12:{Name:"AES-CCM-64-64-128",Value:"12",Description:"AES-CCM mode 128-bit key, 64-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},13:{Name:"AES-CCM-64-64-256",Value:"13",Description:"AES-CCM mode 256-bit key, 64-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},14:{Name:"AES-MAC 128/64",Value:"14",Description:"AES-MAC 128-bit key, 64-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},15:{Name:"AES-MAC 256/64",Value:"15",Description:"AES-MAC 256-bit key, 64-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},24:{Name:"ChaCha20/Poly1305",Value:"24",Description:"ChaCha20/Poly1305 w/ 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},25:{Name:"AES-MAC 128/128",Value:"25",Description:"AES-MAC 128-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},26:{Name:"AES-MAC 256/128",Value:"26",Description:"AES-MAC 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},30:{Name:"AES-CCM-16-128-128",Value:"30",Description:"AES-CCM mode 128-bit key, 128-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},31:{Name:"AES-CCM-16-128-256",Value:"31",Description:"AES-CCM mode 256-bit key, 128-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},32:{Name:"AES-CCM-64-128-128",Value:"32",Description:"AES-CCM mode 128-bit key, 128-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},33:{Name:"AES-CCM-64-128-256",Value:"33",Description:"AES-CCM mode 256-bit key, 128-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},34:{Name:"IV-GENERATION",Value:"34",Description:"For doing IV generation for symmetric algorithms.",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"less than -65536":{Name:"Reserved for Private Use",Value:"less than -65536",Description:"",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"-65536":{Name:"Unassigned",Value:"-65536",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-65535":{Name:"RS1",Value:"-65535",Description:"RSASSA-PKCS1-v1_5 using SHA-1",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"Deprecated"},"-65534":{Name:"A128CTR",Value:"-65534",Description:"AES-CTR w/ 128-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65533":{Name:"A192CTR",Value:"-65533",Description:"AES-CTR w/ 192-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65532":{Name:"A256CTR",Value:"-65532",Description:"AES-CTR w/ 256-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65531":{Name:"A128CBC",Value:"-65531",Description:"AES-CBC w/ 128-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65530":{Name:"A192CBC",Value:"-65530",Description:"AES-CBC w/ 192-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65529":{Name:"A256CBC",Value:"-65529",Description:"AES-CBC w/ 256-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65528 to -261":{Name:"Unassigned",Value:"-65528 to -261",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-260":{Name:"WalnutDSA",Value:"-260",Description:"WalnutDSA signature",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9021][RFC9053",Recommended:"No"},"-259":{Name:"RS512",Value:"-259",Description:"RSASSA-PKCS1-v1_5 using SHA-512",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-258":{Name:"RS384",Value:"-258",Description:"RSASSA-PKCS1-v1_5 using SHA-384",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-257":{Name:"RS256",Value:"-257",Description:"RSASSA-PKCS1-v1_5 using SHA-256",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-256 to -48":{Name:"Unassigned",Value:"-256 to -48",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-47":{Name:"ES256K",Value:"-47",Description:"ECDSA using secp256k1 curve and SHA-256",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-46":{Name:"HSS-LMS",Value:"-46",Description:"HSS/LMS hash-based digital signature",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8778][RFC9053",Recommended:"Yes"},"-45":{Name:"SHAKE256",Value:"-45",Description:"SHAKE-256 512-bit Hash Value",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-44":{Name:"SHA-512",Value:"-44",Description:"SHA-2 512-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-43":{Name:"SHA-384",Value:"-43",Description:"SHA-2 384-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-42":{Name:"RSAES-OAEP w/ SHA-512",Value:"-42",Description:"RSAES-OAEP w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-41":{Name:"RSAES-OAEP w/ SHA-256",Value:"-41",Description:"RSAES-OAEP w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-40":{Name:"RSAES-OAEP w/ RFC 8017 default parameters",Value:"-40",Description:"RSAES-OAEP w/ SHA-1",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-39":{Name:"PS512",Value:"-39",Description:"RSASSA-PSS w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-38":{Name:"PS384",Value:"-38",Description:"RSASSA-PSS w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-37":{Name:"PS256",Value:"-37",Description:"RSASSA-PSS w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-36":{Name:"ES512",Value:"-36",Description:"ECDSA w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-35":{Name:"ES384",Value:"-35",Description:"ECDSA w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-34":{Name:"ECDH-SS + A256KW",Value:"-34",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-33":{Name:"ECDH-SS + A192KW",Value:"-33",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-32":{Name:"ECDH-SS + A128KW",Value:"-32",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-31":{Name:"ECDH-ES + A256KW",Value:"-31",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-30":{Name:"ECDH-ES + A192KW",Value:"-30",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-29":{Name:"ECDH-ES + A128KW",Value:"-29",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-28":{Name:"ECDH-SS + HKDF-512",Value:"-28",Description:"ECDH SS w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-27":{Name:"ECDH-SS + HKDF-256",Value:"-27",Description:"ECDH SS w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-26":{Name:"ECDH-ES + HKDF-512",Value:"-26",Description:"ECDH ES w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-25":{Name:"ECDH-ES + HKDF-256",Value:"-25",Description:"ECDH ES w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-24 to -19":{Name:"Unassigned",Value:"-24 to -19",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-18":{Name:"SHAKE128",Value:"-18",Description:"SHAKE-128 256-bit Hash Value",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-17":{Name:"SHA-512/256",Value:"-17",Description:"SHA-2 512-bit Hash truncated to 256-bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-16":{Name:"SHA-256",Value:"-16",Description:"SHA-2 256-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-15":{Name:"SHA-256/64",Value:"-15",Description:"SHA-2 256-bit Hash truncated to 64-bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Filter Only"},"-14":{Name:"SHA-1",Value:"-14",Description:"SHA-1 Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Filter Only"},"-13":{Name:"direct+HKDF-AES-256",Value:"-13",Description:"Shared secret w/ AES-MAC 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-12":{Name:"direct+HKDF-AES-128",Value:"-12",Description:"Shared secret w/ AES-MAC 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-11":{Name:"direct+HKDF-SHA-512",Value:"-11",Description:"Shared secret w/ HKDF and SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-10":{Name:"direct+HKDF-SHA-256",Value:"-10",Description:"Shared secret w/ HKDF and SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-9":{Name:"Unassigned",Value:"-9",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-8":{Name:"EdDSA",Value:"-8",Description:"EdDSA",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-7":{Name:"ES256",Value:"-7",Description:"ECDSA w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-6":{Name:"direct",Value:"-6",Description:"Direct use of CEK",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-5":{Name:"A256KW",Value:"-5",Description:"AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-4":{Name:"A192KW",Value:"-4",Description:"AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-3":{Name:"A128KW",Value:"-3",Description:"AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-2 to -1":{Name:"Unassigned",Value:"-2 to -1",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"8-9":{Name:"Unassigned",Value:"8-9",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"16-23":{Name:"Unassigned",Value:"16-23",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"27-29":{Name:"Unassigned",Value:"27-29",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""}}},75824:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=pe.signer=void 0;const ve=ye(Ae(78724));const signer=({remote:R})=>{const pe=ve.signer({remote:R});return{sign:R=>pe.sign(R)}};pe.signer=signer;const verifier=({resolver:R})=>({verify:pe=>me(void 0,void 0,void 0,(function*(){const Ae=ve.verifier({resolver:R});return Ae.verify(pe)}))});pe.verifier=verifier},27464:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=pe.signer=void 0;const ve=ye(Ae(78724));const be=Ae(48246);const Ee=Ae(3251);const signer=({remote:R})=>{const pe=ve.signer({remote:R});return{sign:R=>me(void 0,void 0,void 0,(function*(){if(R.unprotectedHeader===undefined){R.unprotectedHeader=(0,Ee.UnprotectedHeader)([])}const Ae=yield pe.sign(R);const he=(0,be.decodeFirstSync)(Ae);he.value[2]=null;return(0,be.encodeAsync)(new be.Tagged(be.Sign1Tag,he.value),{canonical:true})}))}};pe.signer=signer;const verifier=({resolver:R})=>{const pe=ve.verifier({resolver:R});return{verify:R=>me(void 0,void 0,void 0,(function*(){const Ae=(0,be.decodeFirstSync)(R.coseSign1);const he=(0,be.toArrayBuffer)(R.payload);Ae.value[2]=he;const ge=yield(0,be.encodeAsync)(new be.Tagged(be.Sign1Tag,Ae.value),{canonical:true});return pe.verify({coseSign1:ge})}))}};pe.verifier=verifier},80424:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEEllipticCurves=void 0;pe.IANACOSEEllipticCurves={0:{Name:"Reserved",Value:"0","Key Type":"",Description:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"Integer values less than -65536":{Name:"Reserved for Private Use",Value:"Integer values less than -65536","Key Type":"",Description:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"-65536 to -1":{Name:"Unassigned",Value:"-65536 to -1","Key Type":"",Description:"","Change Controller":"",Reference:"",Recommended:""},"EC2-P-256":{Name:"P-256",Value:"1","Key Type":"EC2",Description:"NIST P-256 also known as secp256r1","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"EC2-P-384":{Name:"P-384",Value:"2","Key Type":"EC2",Description:"NIST P-384 also known as secp384r1","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"EC2-P-521":{Name:"P-521",Value:"3","Key Type":"EC2",Description:"NIST P-521 also known as secp521r1","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"OKP-X25519":{Name:"X25519",Value:"4","Key Type":"OKP",Description:"X25519 for use w/ ECDH only","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"OKP-X448":{Name:"X448",Value:"5","Key Type":"OKP",Description:"X448 for use w/ ECDH only","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"OKP-Ed25519":{Name:"Ed25519",Value:"6","Key Type":"OKP",Description:"Ed25519 for use w/ EdDSA only","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"OKP-Ed448":{Name:"Ed448",Value:"7","Key Type":"OKP",Description:"Ed448 for use w/ EdDSA only","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"EC2-secp256k1":{Name:"secp256k1",Value:"8","Key Type":"EC2",Description:"SECG secp256k1 curve","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812",Recommended:"No"},"9-255":{Name:"Unassigned",Value:"9-255","Key Type":"",Description:"","Change Controller":"",Reference:"",Recommended:""},"EC2-brainpoolP256r1":{Name:"brainpoolP256r1",Value:"256","Key Type":"EC2",Description:"BrainpoolP256r1","Change Controller":"[ISO/IEC JTC 1/SC 17/WG 10]",Reference:"[ISO/IEC 18013-5:2021, 9.1.5.2]",Recommended:"No"},"EC2-brainpoolP320r1":{Name:"brainpoolP320r1",Value:"257","Key Type":"EC2",Description:"BrainpoolP320r1","Change Controller":"[ISO/IEC JTC 1/SC 17/WG 10]",Reference:"[ISO/IEC 18013-5:2021, 9.1.5.2]",Recommended:"No"},"EC2-brainpoolP384r1":{Name:"brainpoolP384r1",Value:"258","Key Type":"EC2",Description:"BrainpoolP384r1","Change Controller":"[ISO/IEC JTC 1/SC 17/WG 10]",Reference:"[ISO/IEC 18013-5:2021, 9.1.5.2]",Recommended:"No"},"EC2-brainpoolP512r1":{Name:"brainpoolP512r1",Value:"259","Key Type":"EC2",Description:"BrainpoolP512r1","Change Controller":"[ISO/IEC JTC 1/SC 17/WG 10]",Reference:"[ISO/IEC 18013-5:2021, 9.1.5.2]",Recommended:"No"}}},2488:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEHeaderParameters=void 0;pe.IANACOSEHeaderParameters={0:{Name:"Reserved",Label:"0","Value Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},1:{Name:"alg",Label:"1","Value Type":"int / tstr","Value Registry":"COSE Algorithms registry",Description:"Cryptographic algorithm to use",Reference:"https://datatracker.ietf.org/doc/RFC9052"},2:{Name:"crit",Label:"2","Value Type":"[+ label]","Value Registry":"COSE Header Parameters registry",Description:"Critical headers to be understood",Reference:"https://datatracker.ietf.org/doc/RFC9052"},3:{Name:"content type",Label:"3","Value Type":"tstr / uint","Value Registry":"[COAP Content-Formats] or [Media Types] registry",Description:"Content type of the payload",Reference:"https://datatracker.ietf.org/doc/RFC9052"},4:{Name:"kid",Label:"4","Value Type":"bstr","Value Registry":"",Description:"Key identifier",Reference:"https://datatracker.ietf.org/doc/RFC9052"},5:{Name:"IV",Label:"5","Value Type":"bstr","Value Registry":"",Description:"Full Initialization Vector",Reference:"https://datatracker.ietf.org/doc/RFC9052"},6:{Name:"Partial IV",Label:"6","Value Type":"bstr","Value Registry":"",Description:"Partial Initialization Vector",Reference:"https://datatracker.ietf.org/doc/RFC9052"},7:{Name:"counter signature",Label:"7","Value Type":"COSE_Signature / [+ COSE_Signature ]","Value Registry":"",Description:"CBOR-encoded signature structure (Deprecated by [RFC9338])",Reference:"https://datatracker.ietf.org/doc/RFC8152"},8:{Name:"Unassigned",Label:"8","Value Type":"","Value Registry":"",Description:"",Reference:""},9:{Name:"CounterSignature0",Label:"9","Value Type":"bstr","Value Registry":"",Description:"Counter signature with implied signer and headers (Deprecated by [RFC9338])",Reference:"https://datatracker.ietf.org/doc/RFC8152"},10:{Name:"kid context",Label:"10","Value Type":"bstr","Value Registry":"",Description:"Identifies the context for the key identifier",Reference:"https://datatracker.ietf.org/doc/RFC8613, Section 5.1"},11:{Name:"Countersignature version 2",Label:"11","Value Type":"COSE_Countersignature / [+ COSE_Countersignature]","Value Registry":"",Description:"V2 countersignature attribute",Reference:"https://datatracker.ietf.org/doc/RFC9338"},12:{Name:"Countersignature0 version 2",Label:"12","Value Type":"COSE_Countersignature0","Value Registry":"",Description:"V2 Abbreviated Countersignature",Reference:"https://datatracker.ietf.org/doc/RFC9338"},13:{Name:"kcwt",Label:"13","Value Type":"COSE_Messages","Value Registry":"",Description:"A CBOR Web Token (CWT) containing a COSE_Key in a 'cnf' claim and possibly other claims. CWT is defined in [RFC8392]. COSE_Messages is defined in [RFC9052].",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-lake-edhoc-22"},14:{Name:"kccs",Label:"14","Value Type":"map","Value Registry":"",Description:"A CWT Claims Set (CCS) containing a COSE_Key in a 'cnf' claim and possibly other claims. CCS is defined in [RFC8392].",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-lake-edhoc-22"},15:{Name:"CWT Claims",Label:"15","Value Type":"map","Value Registry":"",Description:"Location for CWT Claims in COSE Header Parameters.",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-cose-cwt-claims-in-headers-10"},32:{Name:"x5bag",Label:"32","Value Type":"COSE_X509","Value Registry":"",Description:"An unordered bag of X.509 certificates",Reference:"https://datatracker.ietf.org/doc/RFC9360"},33:{Name:"x5chain",Label:"33","Value Type":"COSE_X509","Value Registry":"",Description:"An ordered chain of X.509 certificates",Reference:"https://datatracker.ietf.org/doc/RFC9360"},34:{Name:"x5t",Label:"34","Value Type":"COSE_CertHash","Value Registry":"",Description:"Hash of an X.509 certificate",Reference:"https://datatracker.ietf.org/doc/RFC9360"},35:{Name:"x5u",Label:"35","Value Type":"uri","Value Registry":"",Description:"URI pointing to an X.509 certificate",Reference:"https://datatracker.ietf.org/doc/RFC9360"},256:{Name:"CUPHNonce",Label:"256","Value Type":"bstr","Value Registry":"",Description:"Challenge Nonce",Reference:"[FIDO Device Onboard Specification]"},257:{Name:"CUPHOwnerPubKey",Label:"257","Value Type":"array","Value Registry":"",Description:"Public Key",Reference:"[FIDO Device Onboard Specification]"},"less than -65536":{Name:"Reserved for Private Use",Label:"less than -65536","Value Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},"-65536 to -1":{Name:"delegated to the COSE Header Algorithm Parameters registry",Label:"-65536 to -1","Value Type":"","Value Registry":"",Description:"",Reference:""},"16-31":{Name:"Unassigned",Label:"16-31","Value Type":"","Value Registry":"",Description:"",Reference:""},"36-255":{Name:"Unassigned",Label:"36-255","Value Type":"","Value Registry":"",Description:"",Reference:""}}},91830:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEKeyCommonParameters=void 0;pe.IANACOSEKeyCommonParameters={0:{Name:"Reserved",Label:"0","CBOR Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},1:{Name:"kty",Label:"1","CBOR Type":"tstr / int","Value Registry":"COSE Key Types",Description:"Identification of the key type",Reference:"https://datatracker.ietf.org/doc/RFC9052"},2:{Name:"kid",Label:"2","CBOR Type":"bstr","Value Registry":"",Description:"Key identification value - match to kid in message",Reference:"https://datatracker.ietf.org/doc/RFC9052"},3:{Name:"alg",Label:"3","CBOR Type":"tstr / int","Value Registry":"COSE Algorithms",Description:"Key usage restriction to this algorithm",Reference:"https://datatracker.ietf.org/doc/RFC9052"},4:{Name:"key_ops",Label:"4","CBOR Type":"[+ (tstr/int)]","Value Registry":"",Description:"Restrict set of permissible operations",Reference:"https://datatracker.ietf.org/doc/RFC9052"},5:{Name:"Base IV",Label:"5","CBOR Type":"bstr","Value Registry":"",Description:"Base IV to be XORed with Partial IVs",Reference:"https://datatracker.ietf.org/doc/RFC9052"},"less than -65536":{Name:"Reserved for Private Use",Label:"less than -65536","CBOR Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},"-65536 to -1":{Name:"used for key parameters specific to a single algorithm\n delegated to the COSE Key Type Parameters registry",Label:"-65536 to -1","CBOR Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"}}},82920:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEKeyTypeParameters=void 0;pe.IANACOSEKeyTypeParameters={"1-crv":{"Key Type":"1",Name:"crv",Label:"-1","CBOR Type":"int / tstr",Description:'EC identifier -- Taken from the "COSE Elliptic Curves" registry',Reference:"https://datatracker.ietf.org/doc/RFC9053"},"1-x":{"Key Type":"1",Name:"x",Label:"-2","CBOR Type":"bstr",Description:"Public Key",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"1-d":{"Key Type":"1",Name:"d",Label:"-4","CBOR Type":"bstr",Description:"Private key",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"2-crv":{"Key Type":"2",Name:"crv",Label:"-1","CBOR Type":"int / tstr",Description:'EC identifier -- Taken from the "COSE Elliptic Curves" registry',Reference:"https://datatracker.ietf.org/doc/RFC9053"},"2-x":{"Key Type":"2",Name:"x",Label:"-2","CBOR Type":"bstr",Description:"x-coordinate",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"2-y":{"Key Type":"2",Name:"y",Label:"-3","CBOR Type":"bstr / bool",Description:"y-coordinate",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"2-d":{"Key Type":"2",Name:"d",Label:"-4","CBOR Type":"bstr",Description:"Private key",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"3-n":{"Key Type":"3",Name:"n",Label:"-1","CBOR Type":"bstr",Description:"the RSA modulus n",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-e":{"Key Type":"3",Name:"e",Label:"-2","CBOR Type":"bstr",Description:"the RSA public exponent e",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-d":{"Key Type":"3",Name:"d",Label:"-3","CBOR Type":"bstr",Description:"the RSA private exponent d",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-p":{"Key Type":"3",Name:"p",Label:"-4","CBOR Type":"bstr",Description:"the prime factor p of n",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-q":{"Key Type":"3",Name:"q",Label:"-5","CBOR Type":"bstr",Description:"the prime factor q of n",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-dP":{"Key Type":"3",Name:"dP",Label:"-6","CBOR Type":"bstr",Description:"dP is d mod (p - 1)",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-dQ":{"Key Type":"3",Name:"dQ",Label:"-7","CBOR Type":"bstr",Description:"dQ is d mod (q - 1)",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-qInv":{"Key Type":"3",Name:"qInv",Label:"-8","CBOR Type":"bstr",Description:"qInv is the CRT coefficient q^(-1) mod p",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-other":{"Key Type":"3",Name:"other",Label:"-9","CBOR Type":"array",Description:"other prime infos, an array",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-r_i":{"Key Type":"3",Name:"r_i",Label:"-10","CBOR Type":"bstr",Description:"a prime factor r_i of n, where i >= 3",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-d_i":{"Key Type":"3",Name:"d_i",Label:"-11","CBOR Type":"bstr",Description:"d_i = d mod (r_i - 1)",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-t_i":{"Key Type":"3",Name:"t_i",Label:"-12","CBOR Type":"bstr",Description:"the CRT coefficient t_i = (r_1 * r_2 * ... *\n r_(i-1))^(-1) mod r_i",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"4-k":{"Key Type":"4",Name:"k",Label:"-1","CBOR Type":"bstr",Description:"Key Value",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"5-pub":{"Key Type":"5",Name:"pub",Label:"-1","CBOR Type":"bstr",Description:"Public key for HSS/LMS hash-based digital signature",Reference:"https://datatracker.ietf.org/doc/RFC8778"},"6-N":{"Key Type":"6",Name:"N",Label:"-1","CBOR Type":"uint",Description:"Group and Matrix (NxN) size",Reference:"https://datatracker.ietf.org/doc/RFC9021"},"6-q":{"Key Type":"6",Name:"q",Label:"-2","CBOR Type":"uint",Description:"Finite field F_q",Reference:"https://datatracker.ietf.org/doc/RFC9021"},"6-t-values":{"Key Type":"6",Name:"t-values",Label:"-3","CBOR Type":"array (of uint)",Description:"List of T-values, entries in F_q",Reference:"https://datatracker.ietf.org/doc/RFC9021"},"6-matrix 1":{"Key Type":"6",Name:"matrix 1",Label:"-4","CBOR Type":"array (of array of uint)",Description:"NxN Matrix of entries in F_q in column-major form",Reference:"https://datatracker.ietf.org/doc/RFC9021"},"6-permutation 1":{"Key Type":"6",Name:"permutation 1",Label:"-5","CBOR Type":"array (of uint)",Description:"Permutation associated with matrix 1",Reference:"https://datatracker.ietf.org/doc/RFC9021"},"6-matrix 2":{"Key Type":"6",Name:"matrix 2",Label:"-6","CBOR Type":"array (of array of uint)",Description:"NxN Matrix of entries in F_q in column-major form",Reference:"https://datatracker.ietf.org/doc/RFC9021"}}},74391:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEKeyTypes=void 0;pe.IANACOSEKeyTypes={0:{Name:"Reserved",Value:"0",Description:"This value is reserved",Capabilities:"",Reference:"https://datatracker.ietf.org/doc/RFC9053"},1:{Name:"OKP",Value:"1",Description:"Octet Key Pair",Capabilities:"[kty(1), crv]",Reference:"https://datatracker.ietf.org/doc/RFC9053"},2:{Name:"EC2",Value:"2",Description:"Elliptic Curve Keys w/ x- and y-coordinate pair",Capabilities:"[kty(2), crv]",Reference:"https://datatracker.ietf.org/doc/RFC9053"},3:{Name:"RSA",Value:"3",Description:"RSA Key",Capabilities:"[kty(3)]",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053"},4:{Name:"Symmetric",Value:"4",Description:"Symmetric Keys",Capabilities:"[kty(4)]",Reference:"https://datatracker.ietf.org/doc/RFC9053"},5:{Name:"HSS-LMS",Value:"5",Description:"Public key for HSS/LMS hash-based digital signature",Capabilities:"[kty(5), hash algorithm]",Reference:"https://datatracker.ietf.org/doc/RFC8778][RFC9053"},6:{Name:"WalnutDSA",Value:"6",Description:"WalnutDSA public key",Capabilities:"[kty(6)]",Reference:"https://datatracker.ietf.org/doc/RFC9021][RFC9053"}}},51713:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.convertCoseKeyToJsonWebKey=void 0;const ge=Ae(74806);const ye=Ae(38853);const me=Ae(80424);const ve=Object.values(ye.IANACOSEAlgorithms);const be=Object.values(me.IANACOSEEllipticCurves);const Ee=Ae(74039);const convertCoseKeyToJsonWebKey=R=>he(void 0,void 0,void 0,(function*(){const pe=R.get(1);const Ae=R.get(2);const he=R.get(3);const ye=R.get(-1);if(![2,5].includes(pe)){throw new Error("This library requires does not support the given key type")}const me=ve.find((R=>R.Value===`${he}`));if(!me){throw new Error("This library requires keys to use fully specified algorithms")}const Ce=be.find((R=>R.Value===`${ye}`));if(!Ce){throw new Error("This library requires does not support the given curve")}const we={kty:"EC",alg:me.Name,crv:Ce.Name};const _e=R.get(-2);const Ie=R.get(-3);const Se=R.get(-4);if(_e){we.x=ge.base64url.encode(_e)}if(Ie){we.y=ge.base64url.encode(Ie)}if(Se){we.d=ge.base64url.encode(Se)}if(Ae&&typeof Ae==="string"){we.kid=Ae}else{we.kid=yield(0,ge.calculateJwkThumbprint)(we)}return(0,Ee.formatJwk)(we)}));pe.convertCoseKeyToJsonWebKey=convertCoseKeyToJsonWebKey},69063:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.convertJsonWebKeyToCoseKey=void 0;const ge=Ae(74806);const ye=Ae(48246);const me=Ae(91830);const ve=Ae(38853);const be=Ae(82920);const Ee=Ae(74391);const Ce=Ae(80424);const we=Object.values(ve.IANACOSEAlgorithms);const _e=Object.values(me.IANACOSEKeyCommonParameters);const Ie=Object.values(be.IANACOSEKeyTypeParameters);const Se=Object.values(Ee.IANACOSEKeyTypes);const Be=Object.values(Ce.IANACOSEEllipticCurves);const ke={OKP:Ie.filter((R=>R["Key Type"]==="1")),EC2:Ie.filter((R=>R["Key Type"]==="2"))};const getKeyTypeSpecificLabel=(R,pe)=>{let Ae=pe;let he=ke[R].find((R=>R.Name===pe));if(!he){he=ke[R].find((R=>R.Name===pe))}if(he){Ae=parseInt(he.Label,10)}else{throw new Error(`Unable to find a label for this param (${pe}) for the given key type ${R}`)}return Ae};const convertJsonWebKeyToCoseKey=R=>he(void 0,void 0,void 0,(function*(){const{kty:pe}=R;let Ae=`${pe}`;if(Ae==="EC"){Ae="EC2"}if(!ke[Ae]){throw new Error("Unsupported key type")}const he=new Map;for(const[pe,me]of Object.entries(R)){const R=_e.find((R=>R.Name===pe));let ve=pe;if(R){ve=parseInt(R.Label,10)}switch(pe){case"kty":{const R=Se.find((R=>R.Name===Ae));if(R){he.set(ve,parseInt(R.Value,10))}else{throw new Error("Unsupported key type: "+me)}break}case"kid":{if(R){he.set(ve,me)}else{throw new Error("Expected common parameter was not found in iana registry.")}break}case"alg":{if(R){const R=we.find((R=>R.Name===me));if(R){he.set(ve,parseInt(R.Value,10))}else{throw new Error("Expected algorithm was not found in iana registry.")}}else{throw new Error("Expected common parameter was not found in iana registry.")}break}case"crv":{ve=getKeyTypeSpecificLabel(Ae,"crv");const R=Be.find((R=>R.Name===me));if(R){he.set(ve,parseInt(R.Value,10))}else{throw new Error("Expected curve was not found in iana registry.")}break}case"x":case"y":case"d":{ve=getKeyTypeSpecificLabel(Ae,pe);he.set(ve,(0,ye.toArrayBuffer)(ge.base64url.decode(me)));break}case"x5c":{const R=(me||[]).map((R=>(0,ye.toArrayBuffer)(ge.base64url.decode(R))));he.set(ve,R);break}case"x5t#S256":{he.set(ve,(0,ye.toArrayBuffer)(ge.base64url.decode(me)));break}default:{he.set(ve,me)}}}return he}));pe.convertJsonWebKeyToCoseKey=convertJsonWebKeyToCoseKey},74039:function(R,pe){"use strict";var Ae=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);ge{const{kid:pe,alg:he,kty:ge,crv:ye,x:me,y:ve,d:be}=R,Ee=Ae(R,["kid","alg","kty","crv","x","y","d"]);return JSON.parse(JSON.stringify(Object.assign({kid:pe,alg:he,kty:ge,crv:ye,x:me,y:ve,d:be},Ee)))};pe.formatJwk=formatJwk},14658:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.generate=void 0;const ge=Ae(74806);const ye=Ae(38853);const me=Ae(69063);const ve=Ae(79465);const be=Ae(74039);const generate=(R,pe="application/jwk+json")=>he(void 0,void 0,void 0,(function*(){const Ae=Object.values(ye.IANACOSEAlgorithms).find((pe=>pe.Name===R));if(!Ae){throw new Error("Algorithm is not supported.")}const he=yield(0,ge.generateKeyPair)(Ae.Name,{extractable:true});const Ee=yield(0,ge.exportJWK)(he.privateKey);const Ce=yield(0,ge.calculateJwkThumbprint)(Ee);Ee.kid=Ce;Ee.alg=R;if(pe==="application/jwk+json"){return(0,be.formatJwk)(Ee)}if(pe==="application/cose-key"){delete Ee.kid;const R=yield(0,me.convertJsonWebKeyToCoseKey)(Ee);const pe=yield ve.thumbprint.calculateCoseKeyThumbprint(R);R.set(2,pe);return R}throw new Error("Unsupported content type.")}));pe.generate=generate},56516:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});pe.thumbprint=void 0;const ye=Ae(79465);Object.defineProperty(pe,"thumbprint",{enumerable:true,get:function(){return ye.thumbprint}});ge(Ae(14658),pe);ge(Ae(69063),pe);ge(Ae(51713),pe);ge(Ae(90802),pe);ge(Ae(46272),pe)},90802:function(R,pe){"use strict";var Ae=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);ge{if(R.kty!=="EC"){throw new Error("Only EC keys are supported")}const{d:pe,p:he,q:ge,dp:ye,dq:me,qi:ve,key_ops:be}=R,Ee=Ae(R,["d","p","q","dp","dq","qi","key_ops"]);return Ee};pe.extracePublicKeyJwk=extracePublicKeyJwk;const extractPublicCoseKey=R=>{const pe=new Map(R);if(pe.get(1)!==2){throw new Error("Only EC2 keys are supported")}if(!pe.get(-4)){throw new Error("privateKey is not a secret / private key (has no d / -4)")}pe.delete(-4);return pe};pe.extractPublicCoseKey=extractPublicCoseKey;const publicFromPrivate=R=>{if(R.kty){return(0,pe.extracePublicKeyJwk)(R)}return(0,pe.extractPublicCoseKey)(R)};pe.publicFromPrivate=publicFromPrivate},46272:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.serialize=void 0;const he=Ae(48246);const serialize=R=>{if(R.kty){return JSON.stringify(R,null,2)}return(0,he.encode)(R)};pe.serialize=serialize},79465:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.thumbprint=void 0;const ye=Ae(74806);const me=Ae(48246);const ve=ge(Ae(9282));const calculateCoseKeyThumbprint=R=>he(void 0,void 0,void 0,(function*(){const pe=new Map;const Ae=[1,-1,-2,-3];for(const[he,ge]of R.entries()){if(Ae.includes(he)){pe.set(he,ge)}}const he=(0,me.encodeCanonical)(pe);const ge=yield(0,ve.default)();const ye=ge.digest("SHA-256",he);return ye}));const calculateCoseKeyThumbprintUri=R=>he(void 0,void 0,void 0,(function*(){const pe=`urn:ietf:params:oauth:ckt:sha-256`;const Ae=yield calculateCoseKeyThumbprint(R);return`${pe}:${ye.base64url.encode(new Uint8Array(Ae))}`}));pe.thumbprint={calculateJwkThumbprint:ye.calculateJwkThumbprint,calculateJwkThumbprintUri:ye.calculateJwkThumbprintUri,calculateCoseKeyThumbprint:calculateCoseKeyThumbprint,calculateCoseKeyThumbprintUri:calculateCoseKeyThumbprintUri,uri:calculateCoseKeyThumbprintUri}},83648:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.add=void 0;const ge=Ae(48246);const add=(R,pe)=>he(void 0,void 0,void 0,(function*(){const{tag:Ae,value:he}=(0,ge.decodeFirstSync)(R);if(Ae!==ge.Sign1Tag){throw new Error("Receipts can only be added to cose-sign1")}if(!(he[1]instanceof Map)){he[1]=new Map}const ye=he[1].get(394)||[];ye.push(pe);he[1].set(394,ye);return(0,ge.toArrayBuffer)(yield(0,ge.encodeAsync)(new ge.Tagged(ge.Sign1Tag,he),{canonical:true}))}));pe.add=add},87569:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(77354),pe);ge(Ae(50277),pe)},77354:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.issue=void 0;const ge=Ae(57994);const ye=Ae(88844);const me=Ae(48246);const issue=R=>he(void 0,void 0,void 0,(function*(){const{protectedHeader:pe,receipt:Ae,entries:he,signer:ve}=R;const be=pe.get(395);if(be!==1){throw new Error("Unsupported verifiable data structure. See https://datatracker.ietf.org/doc/draft-ietf-cose-merkle-tree-proofs")}const{tag:Ee,value:Ce}=ye.cbor.decode(Ae);if(Ee!==18){throw new Error("Receipt is not tagged cose sign1")}const[we,_e,Ie]=Ce;const Se=ye.cbor.decode(we);const Be=Se.get(395);if(Be!==1){throw new Error("Unsupported verifiable data structure. See https://datatracker.ietf.org/doc/draft-ietf-cose-merkle-tree-proofs")}const[ke]=_e.get(396).get(-1);if(Ie!==null){throw new Error("payload must be null for this type of proof")}const[Oe,Re,Qe]=ye.cbor.decode(ke);const xe=yield ge.CoMETRE.RFC9162_SHA256.consistency_proof({log_id:"",tree_size:Oe,leaf_index:Re,inclusion_path:Qe},he);const Pe=yield ge.CoMETRE.RFC9162_SHA256.root(he);const Te=new Map;Te.set(-2,[ye.cbor.encode([xe.tree_size_1,xe.tree_size_2,xe.consistency_path.map(me.toArrayBuffer)])]);const De=new Map;De.set(396,Te);const Ne=yield ve.sign({protectedHeader:pe,unprotectedHeader:De,payload:Pe});return{root:Pe,receipt:Ne}}));pe.issue=issue},50277:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verify=void 0;const ge=Ae(57994);const ye=Ae(88844);const verify=R=>he(void 0,void 0,void 0,(function*(){const{newRoot:pe,oldRoot:Ae,receipt:he,verifier:me}=R;const{tag:ve,value:be}=ye.cbor.decode(he);if(ve!==18){throw new Error("Receipt is not tagged cose sign1")}const[Ee,Ce,we]=be;const _e=ye.cbor.decode(Ee);const Ie=_e.get(395);if(Ie!==1){throw new Error("Unsupported verifiable data structure. See https://datatracker.ietf.org/doc/draft-ietf-cose-merkle-tree-proofs")}const Se=Ce.get(396);const[Be]=Se.get(-2);if(we!==null){throw new Error("payload must be null for this type of proof")}const[ke,Oe,Re]=ye.cbor.decode(Be);const Qe=yield me.verify({coseSign1:he,payload:pe});const xe=yield ge.CoMETRE.RFC9162_SHA256.verify_consistency_proof(new Uint8Array(Ae),new Uint8Array(Qe),{log_id:"",tree_size_1:ke,tree_size_2:Oe,consistency_path:Re});return xe}));pe.verify=verify},58472:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.get=void 0;const ge=Ae(48246);const get=R=>he(void 0,void 0,void 0,(function*(){const{tag:pe,value:Ae}=(0,ge.decodeFirstSync)(R);if(pe!==ge.Sign1Tag){throw new Error("Receipts can only be added to cose-sign1")}if(!(Ae[1]instanceof Map)){return[]}const he=Ae[1].get(394)||[];return he}));pe.get=get},43047:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(54358),pe);ge(Ae(88472),pe)},54358:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.issue=void 0;const ge=Ae(57994);const ye=Ae(88844);const issue=R=>he(void 0,void 0,void 0,(function*(){const{protectedHeader:pe,entry:Ae,entries:he,signer:me}=R;const ve=pe.get(395);if(ve!==1){throw new Error("Unsupported verifiable data structure. See https://datatracker.ietf.org/doc/draft-ietf-cose-merkle-tree-proofs")}const be=yield ge.CoMETRE.RFC9162_SHA256.root(he);const Ee=yield ge.CoMETRE.RFC9162_SHA256.inclusion_proof(Ae,he);const Ce=new Map;Ce.set(-1,[ye.cbor.encode([Ee.tree_size,Ee.leaf_index,Ee.inclusion_path.map(ye.cbor.toArrayBuffer)])]);const we=new Map;we.set(396,Ce);return me.sign({protectedHeader:pe,unprotectedHeader:we,payload:be})}));pe.issue=issue},88472:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verify=void 0;const ge=Ae(57994);const ye=Ae(88844);const verify=R=>he(void 0,void 0,void 0,(function*(){const{entry:pe,receipt:Ae,verifier:he}=R;const{tag:me,value:ve}=ye.cbor.decode(Ae);if(me!==18){throw new Error("Receipt is not tagged cose sign1")}const[be,Ee,Ce]=ve;const we=ye.cbor.decode(be);const _e=we.get(395);if(_e!==1){throw new Error("Unsupported verifiable data structure. See https://datatracker.ietf.org/doc/draft-ietf-cose-merkle-tree-proofs")}const Ie=Ee.get(396);const[Se]=Ie.get(-1);if(Ce!==null){throw new Error("payload must be null for this type of proof")}const[Be,ke,Oe]=ye.cbor.decode(Se);const Re=yield ge.CoMETRE.RFC9162_SHA256.verify_inclusion_proof(pe,{log_id:"",tree_size:Be,leaf_index:ke,inclusion_path:Oe});const Qe=he.verify({coseSign1:Ae,payload:Re});return Qe}));pe.verify=verify},3885:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=pe.remove=pe.get=pe.add=pe.consistency=pe.inclusion=pe.leaf=void 0;const me=ye(Ae(43047));pe.inclusion=me;const ve=ye(Ae(87569));pe.consistency=ve;const be=Ae(46193);Object.defineProperty(pe,"leaf",{enumerable:true,get:function(){return be.leaf}});const Ee=Ae(83648);Object.defineProperty(pe,"add",{enumerable:true,get:function(){return Ee.add}});const Ce=Ae(58472);Object.defineProperty(pe,"get",{enumerable:true,get:function(){return Ce.get}});const we=Ae(59178);Object.defineProperty(pe,"remove",{enumerable:true,get:function(){return we.remove}});const _e=Ae(60934);Object.defineProperty(pe,"verifier",{enumerable:true,get:function(){return _e.verifier}})},46193:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.leaf=void 0;const he=Ae(57994);pe.leaf=he.CoMETRE.RFC9162_SHA256.leaf},59178:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.remove=void 0;const ge=Ae(48246);const remove=R=>he(void 0,void 0,void 0,(function*(){const{tag:pe,value:Ae}=(0,ge.decodeFirstSync)(R);if(pe!==ge.Sign1Tag){throw new Error("Receipts can only be added to cose-sign1")}Ae[1]=new Map;return(0,ge.toArrayBuffer)(yield(0,ge.encodeAsync)(new ge.Tagged(ge.Sign1Tag,Ae),{canonical:true}))}));pe.remove=remove},60934:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=void 0;const ve=Ae(88844);const be=Ae(58472);const Ee=ye(Ae(43047));const Ce=Ae(46193);const we=Ae(59178);const getVerifierForMessage=(R,pe)=>me(void 0,void 0,void 0,(function*(){const R=ve.detached.verifier({resolver:pe});return R}));const verifyWithResolve=(R,pe)=>me(void 0,void 0,void 0,(function*(){const Ae=yield getVerifierForMessage(R,pe);const he=yield Ae.verify(R);return he}));const verifier=R=>me(void 0,void 0,void 0,(function*(){return{verify:pe=>me(void 0,void 0,void 0,(function*(){const Ae=yield verifyWithResolve(pe,R);const he={payload:Ae,receipts:[]};const ge=yield(0,we.remove)(pe.coseSign1);const ye=yield(0,be.get)(pe.coseSign1);if(ye.length){for(const pe of ye){const Ae=yield getVerifierForMessage({coseSign1:pe,payload:ge},R);const ye=yield Ee.verify({entry:yield(0,Ce.leaf)(new Uint8Array(ge)),receipt:pe,verifier:Ae});he.receipts.push(ye)}}return he}))}}));pe.verifier=verifier},25582:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(38853);const ge=Object.values(he.IANACOSEAlgorithms);const getAlgFromVerificationKey=R=>{const pe=ge.find((pe=>pe.Name===R));if(!pe){throw new Error("This library requires keys to contain fully specified algorithms")}return parseInt(pe.Value,10)};pe["default"]=getAlgFromVerificationKey},55016:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=new Map;Ae.set("ES256",`SHA-256`);Ae.set("ES384",`SHA-384`);Ae.set("ES512",`SHA-512`);const getDigestFromVerificationKey=R=>{const pe=Ae.get(R);if(!pe){throw new Error("This library requires keys to contain fully specified algorithms")}return pe};pe["default"]=getDigestFromVerificationKey},75068:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.hash=void 0;const ye=ge(Ae(27567));const me=ge(Ae(9282));const ve=Ae(3251);pe.hash={signer:({remote:R})=>({sign:({protectedHeader:pe,unprotectedHeader:Ae,payload:ge})=>he(void 0,void 0,void 0,(function*(){const he=yield(0,me.default)();const be=pe.get(ve.Protected.PayloadHashAlgorithm);if(be!==-16){throw new Error("Unsupported hash envelope algorithm (-16 is only one supported)")}const Ee=yield he.digest("SHA-256",ge);const Ce=(0,ye.default)({remote:R});return new Uint8Array(yield Ce.sign({protectedHeader:pe,unprotectedHeader:Ae,payload:Ee}))}))})}},78724:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.hash=pe.verifier=pe.signer=void 0;const me=ye(Ae(27567));pe.signer=me.default;const ve=ye(Ae(62690));pe.verifier=ve.default;const be=Ae(75068);Object.defineProperty(pe,"hash",{enumerable:true,get:function(){return be.hash}});ge(Ae(37260),pe)},27567:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});const ge=Ae(48246);const signer=({remote:R})=>({sign:({protectedHeader:pe,unprotectedHeader:Ae,externalAAD:ye,payload:me})=>he(void 0,void 0,void 0,(function*(){const he=(0,ge.toArrayBuffer)(me);const ve=pe.size===0?ge.EMPTY_BUFFER:(0,ge.encode)(pe);const be=["Signature1",ve,ye||ge.EMPTY_BUFFER,he];const Ee=(0,ge.encode)(be);const Ce=yield R.sign(Ee);const we=[ve,Ae,he,Ce];return(0,ge.toArrayBuffer)(yield(0,ge.encodeAsync)(new ge.Tagged(ge.Sign1Tag,we),{canonical:true}))}))});pe["default"]=signer},37260:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},62690:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=Ae(48246);const me=ge(Ae(25582));const ve=ge(Ae(52530));const verifier=({resolver:R})=>({verify:({coseSign1:pe,externalAAD:Ae})=>he(void 0,void 0,void 0,(function*(){const he=yield R.resolve(pe);const ge=(0,me.default)(`${he.alg}`);const be=(0,ve.default)({publicKeyJwk:he});const Ee=yield(0,ye.decodeFirst)(pe);const Ce=Ee.value;if(!Array.isArray(Ce)){throw new Error("Expecting Array")}if(Ce.length!==4){throw new Error("Expecting Array of length 4")}const[we,_e,Ie,Se]=Ce;const Be=!we.length?new Map:(0,ye.decodeFirstSync)(we);const ke=Be.get(1);if(ke!==ge){throw new Error("Verification key does not support algorithm: "+ke)}if(!Se){throw new Error("No signature to verify")}const Oe=["Signature1",we,Ae||ye.EMPTY_BUFFER,Ie];const Re=(0,ye.encode)(Oe);yield be.verify(Re,Se);return Ie}))});pe["default"]=verifier},85013:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=pe.signer=void 0;const ge=he(Ae(6723));pe.signer=ge.default;const ye=he(Ae(52530));pe.verifier=ye.default},6723:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=Ae(48246);const me=ge(Ae(9282));const ve=ge(Ae(55016));const signer=({privateKeyJwk:R})=>{const pe=(0,ve.default)(`${R.alg}`);return{sign:Ae=>he(void 0,void 0,void 0,(function*(){const he=yield(0,me.default)();const ge=yield he.importKey("jwk",R,{name:"ECDSA",namedCurve:R.crv},true,["sign"]);const ve=yield he.sign({name:"ECDSA",hash:{name:pe}},ge,Ae);return(0,ye.toArrayBuffer)(ve)}))}};pe["default"]=signer},9282:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});const ve=Promise.resolve().then((()=>ye(Ae(6113)))).catch((()=>{}));pe["default"]=()=>me(void 0,void 0,void 0,(function*(){try{return window.crypto.subtle}catch(R){return(yield yield ve).subtle}}))},52530:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=ge(Ae(55016));const me=ge(Ae(9282));const verifier=({publicKeyJwk:R})=>{const pe=(0,ye.default)(`${R.alg}`);return{verify:(Ae,ge)=>he(void 0,void 0,void 0,(function*(){const he=yield(0,me.default)();const ye=yield he.importKey("jwk",R,{name:"ECDSA",namedCurve:R.crv},true,["verify"]);const ve=yield he.verify({name:"ECDSA",hash:{name:pe}},ye,ge,Ae);if(!ve){throw new Error("Signature verification failed")}return Ae}))}};pe["default"]=verifier},88844:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var me=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.receipt=pe.detached=pe.attached=pe.key=pe.cbor=pe.crypto=void 0;ye(Ae(38853),pe);ye(Ae(2488),pe);ye(Ae(91830),pe);const ve=me(Ae(56516));pe.key=ve;const be=me(Ae(75824));pe.attached=be;const Ee=me(Ae(27464));pe.detached=Ee;ye(Ae(78724),pe);ye(Ae(56441),pe);ye(Ae(3251),pe);const Ce=me(Ae(48246));pe.cbor=Ce;const we=me(Ae(3885));pe.receipt=we;const _e=me(Ae(85013));pe.crypto=_e},54833:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.certificate=void 0;const ve=Ae(74806);const be=ye(Ae(82315));const Ee=Ae(88844);const Ce=Ae(88844);const we=Promise.resolve().then((()=>ye(Ae(6113)))).catch((()=>{}));const _e=true;const provide=()=>me(void 0,void 0,void 0,(function*(){try{return window.crypto}catch(R){return yield yield we}}));const Ie={ES256:{name:"ECDSA",hash:"SHA-256",namedCurve:"P-256"},ES384:{name:"ECDSA",hash:"SHA-384",namedCurve:"P-384"},ES512:{name:"ECDSA",hash:"SHA-512",namedCurve:"P-521"}};const thumbprint=R=>me(void 0,void 0,void 0,(function*(){const pe=new be.X509Certificate(R);return[-16,yield pe.getThumbprint("SHA-256")]}));const root=R=>me(void 0,void 0,void 0,(function*(){const pe=yield provide();be.cryptoProvider.set(pe);const Ae=[];const he=Ie[R.alg];const ge=yield pe.subtle.generateKey(he,_e,["sign","verify"]);const ye=yield be.X509CertificateGenerator.create({serialNumber:"01",subject:R.sub,issuer:R.iss,notBefore:new Date(R.nbf),notAfter:new Date(R.exp),signingAlgorithm:he,publicKey:ge.publicKey,signingKey:ge.privateKey,extensions:[new be.SubjectAlternativeNameExtension(Ae),yield be.SubjectKeyIdentifierExtension.create(ge.publicKey)]});const me=ye.toString();const Ee=yield(0,ve.exportPKCS8)(ge.privateKey);return{public:me,private:Ee}}));const pkcs8Signer=({alg:R,privateKeyPKCS8:pe})=>me(void 0,void 0,void 0,(function*(){const Ae=Object.values(Ee.IANACOSEAlgorithms).find((pe=>pe.Value===`${R}`));if(!Ae){throw new Error("Could not find algorithm in registry for: "+R)}const he=yield(0,ve.exportJWK)(yield(0,ve.importPKCS8)(pe,`${Ae.Name}`));he.alg=Ae.Name;return Ee.detached.signer({remote:Ce.crypto.signer({privateKeyJwk:he})})}));const verifier=({resolver:R})=>({verify:pe=>me(void 0,void 0,void 0,(function*(){const Ae=Ee.detached.verifier({resolver:R});return Ae.verify(pe)}))});pe.certificate={thumbprint:thumbprint,root:root,pkcs8Signer:pkcs8Signer,verifier:verifier}},56441:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(54833),pe)},74806:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.cryptoRuntime=pe.base64url=pe.generateSecret=pe.generateKeyPair=pe.errors=pe.decodeJwt=pe.decodeProtectedHeader=pe.importJWK=pe.importX509=pe.importPKCS8=pe.importSPKI=pe.exportJWK=pe.exportSPKI=pe.exportPKCS8=pe.UnsecuredJWT=pe.createRemoteJWKSet=pe.createLocalJWKSet=pe.EmbeddedJWK=pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=pe.EncryptJWT=pe.SignJWT=pe.GeneralSign=pe.FlattenedSign=pe.CompactSign=pe.FlattenedEncrypt=pe.CompactEncrypt=pe.jwtDecrypt=pe.jwtVerify=pe.generalVerify=pe.flattenedVerify=pe.compactVerify=pe.GeneralEncrypt=pe.generalDecrypt=pe.flattenedDecrypt=pe.compactDecrypt=void 0;var he=Ae(837);Object.defineProperty(pe,"compactDecrypt",{enumerable:true,get:function(){return he.compactDecrypt}});var ge=Ae(59875);Object.defineProperty(pe,"flattenedDecrypt",{enumerable:true,get:function(){return ge.flattenedDecrypt}});var ye=Ae(95564);Object.defineProperty(pe,"generalDecrypt",{enumerable:true,get:function(){return ye.generalDecrypt}});var me=Ae(64128);Object.defineProperty(pe,"GeneralEncrypt",{enumerable:true,get:function(){return me.GeneralEncrypt}});var ve=Ae(53559);Object.defineProperty(pe,"compactVerify",{enumerable:true,get:function(){return ve.compactVerify}});var be=Ae(86418);Object.defineProperty(pe,"flattenedVerify",{enumerable:true,get:function(){return be.flattenedVerify}});var Ee=Ae(67658);Object.defineProperty(pe,"generalVerify",{enumerable:true,get:function(){return Ee.generalVerify}});var Ce=Ae(82352);Object.defineProperty(pe,"jwtVerify",{enumerable:true,get:function(){return Ce.jwtVerify}});var we=Ae(95972);Object.defineProperty(pe,"jwtDecrypt",{enumerable:true,get:function(){return we.jwtDecrypt}});var _e=Ae(98796);Object.defineProperty(pe,"CompactEncrypt",{enumerable:true,get:function(){return _e.CompactEncrypt}});var Ie=Ae(55386);Object.defineProperty(pe,"FlattenedEncrypt",{enumerable:true,get:function(){return Ie.FlattenedEncrypt}});var Se=Ae(9768);Object.defineProperty(pe,"CompactSign",{enumerable:true,get:function(){return Se.CompactSign}});var Be=Ae(49696);Object.defineProperty(pe,"FlattenedSign",{enumerable:true,get:function(){return Be.FlattenedSign}});var ke=Ae(74074);Object.defineProperty(pe,"GeneralSign",{enumerable:true,get:function(){return ke.GeneralSign}});var Oe=Ae(75003);Object.defineProperty(pe,"SignJWT",{enumerable:true,get:function(){return Oe.SignJWT}});var Re=Ae(94773);Object.defineProperty(pe,"EncryptJWT",{enumerable:true,get:function(){return Re.EncryptJWT}});var Qe=Ae(94822);Object.defineProperty(pe,"calculateJwkThumbprint",{enumerable:true,get:function(){return Qe.calculateJwkThumbprint}});Object.defineProperty(pe,"calculateJwkThumbprintUri",{enumerable:true,get:function(){return Qe.calculateJwkThumbprintUri}});var xe=Ae(15535);Object.defineProperty(pe,"EmbeddedJWK",{enumerable:true,get:function(){return xe.EmbeddedJWK}});var Pe=Ae(75036);Object.defineProperty(pe,"createLocalJWKSet",{enumerable:true,get:function(){return Pe.createLocalJWKSet}});var Te=Ae(87716);Object.defineProperty(pe,"createRemoteJWKSet",{enumerable:true,get:function(){return Te.createRemoteJWKSet}});var De=Ae(90314);Object.defineProperty(pe,"UnsecuredJWT",{enumerable:true,get:function(){return De.UnsecuredJWT}});var Ne=Ae(67168);Object.defineProperty(pe,"exportPKCS8",{enumerable:true,get:function(){return Ne.exportPKCS8}});Object.defineProperty(pe,"exportSPKI",{enumerable:true,get:function(){return Ne.exportSPKI}});Object.defineProperty(pe,"exportJWK",{enumerable:true,get:function(){return Ne.exportJWK}});var Me=Ae(59111);Object.defineProperty(pe,"importSPKI",{enumerable:true,get:function(){return Me.importSPKI}});Object.defineProperty(pe,"importPKCS8",{enumerable:true,get:function(){return Me.importPKCS8}});Object.defineProperty(pe,"importX509",{enumerable:true,get:function(){return Me.importX509}});Object.defineProperty(pe,"importJWK",{enumerable:true,get:function(){return Me.importJWK}});var je=Ae(93980);Object.defineProperty(pe,"decodeProtectedHeader",{enumerable:true,get:function(){return je.decodeProtectedHeader}});var Fe=Ae(33514);Object.defineProperty(pe,"decodeJwt",{enumerable:true,get:function(){return Fe.decodeJwt}});pe.errors=Ae(36454);var Le=Ae(41280);Object.defineProperty(pe,"generateKeyPair",{enumerable:true,get:function(){return Le.generateKeyPair}});var Ue=Ae(59670);Object.defineProperty(pe,"generateSecret",{enumerable:true,get:function(){return Ue.generateSecret}});pe.base64url=Ae(52261);var He=Ae(47650);Object.defineProperty(pe,"cryptoRuntime",{enumerable:true,get:function(){return He.default}})},837:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactDecrypt=void 0;const he=Ae(59875);const ge=Ae(36454);const ye=Ae(55925);async function compactDecrypt(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWEInvalid("Compact JWE must be a string or Uint8Array")}const{0:me,1:ve,2:be,3:Ee,4:Ce,length:we}=R.split(".");if(we!==5){throw new ge.JWEInvalid("Invalid Compact JWE")}const _e=await(0,he.flattenedDecrypt)({ciphertext:Ee,iv:be||undefined,protected:me||undefined,tag:Ce||undefined,encrypted_key:ve||undefined},pe,Ae);const Ie={plaintext:_e.plaintext,protectedHeader:_e.protectedHeader};if(typeof pe==="function"){return{...Ie,key:_e.key}}return Ie}pe.compactDecrypt=compactDecrypt},98796:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactEncrypt=void 0;const he=Ae(55386);class CompactEncrypt{constructor(R){this._flattened=new he.FlattenedEncrypt(R)}setContentEncryptionKey(R){this._flattened.setContentEncryptionKey(R);return this}setInitializationVector(R){this._flattened.setInitializationVector(R);return this}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}setKeyManagementParameters(R){this._flattened.setKeyManagementParameters(R);return this}async encrypt(R,pe){const Ae=await this._flattened.encrypt(R,pe);return[Ae.protected,Ae.encrypted_key,Ae.iv,Ae.ciphertext,Ae.tag].join(".")}}pe.CompactEncrypt=CompactEncrypt},59875:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedDecrypt=void 0;const he=Ae(60589);const ge=Ae(78190);const ye=Ae(52284);const me=Ae(36454);const ve=Ae(11218);const be=Ae(61394);const Ee=Ae(48448);const Ce=Ae(55925);const we=Ae(74466);const _e=Ae(52874);const Ie=Ae(99125);async function flattenedDecrypt(R,pe,Ae){var Se;if(!(0,be.default)(R)){throw new me.JWEInvalid("Flattened JWE must be an object")}if(R.protected===undefined&&R.header===undefined&&R.unprotected===undefined){throw new me.JWEInvalid("JOSE Header missing")}if(typeof R.iv!=="string"){throw new me.JWEInvalid("JWE Initialization Vector missing or incorrect type")}if(typeof R.ciphertext!=="string"){throw new me.JWEInvalid("JWE Ciphertext missing or incorrect type")}if(typeof R.tag!=="string"){throw new me.JWEInvalid("JWE Authentication Tag missing or incorrect type")}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new me.JWEInvalid("JWE Protected Header incorrect type")}if(R.encrypted_key!==undefined&&typeof R.encrypted_key!=="string"){throw new me.JWEInvalid("JWE Encrypted Key incorrect type")}if(R.aad!==undefined&&typeof R.aad!=="string"){throw new me.JWEInvalid("JWE AAD incorrect type")}if(R.header!==undefined&&!(0,be.default)(R.header)){throw new me.JWEInvalid("JWE Shared Unprotected Header incorrect type")}if(R.unprotected!==undefined&&!(0,be.default)(R.unprotected)){throw new me.JWEInvalid("JWE Per-Recipient Unprotected Header incorrect type")}let Be;if(R.protected){try{const pe=(0,he.decode)(R.protected);Be=JSON.parse(Ce.decoder.decode(pe))}catch{throw new me.JWEInvalid("JWE Protected Header is invalid")}}if(!(0,ve.default)(Be,R.header,R.unprotected)){throw new me.JWEInvalid("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint")}const ke={...Be,...R.header,...R.unprotected};(0,_e.default)(me.JWEInvalid,new Map,Ae===null||Ae===void 0?void 0:Ae.crit,Be,ke);if(ke.zip!==undefined){if(!Be||!Be.zip){throw new me.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}if(ke.zip!=="DEF"){throw new me.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}}const{alg:Oe,enc:Re}=ke;if(typeof Oe!=="string"||!Oe){throw new me.JWEInvalid("missing JWE Algorithm (alg) in JWE Header")}if(typeof Re!=="string"||!Re){throw new me.JWEInvalid("missing JWE Encryption Algorithm (enc) in JWE Header")}const Qe=Ae&&(0,Ie.default)("keyManagementAlgorithms",Ae.keyManagementAlgorithms);const xe=Ae&&(0,Ie.default)("contentEncryptionAlgorithms",Ae.contentEncryptionAlgorithms);if(Qe&&!Qe.has(Oe)){throw new me.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed')}if(xe&&!xe.has(Re)){throw new me.JOSEAlgNotAllowed('"enc" (Encryption Algorithm) Header Parameter not allowed')}let Pe;if(R.encrypted_key!==undefined){try{Pe=(0,he.decode)(R.encrypted_key)}catch{throw new me.JWEInvalid("Failed to base64url decode the encrypted_key")}}let Te=false;if(typeof pe==="function"){pe=await pe(Be,R);Te=true}let De;try{De=await(0,Ee.default)(Oe,pe,Pe,ke,Ae)}catch(R){if(R instanceof TypeError||R instanceof me.JWEInvalid||R instanceof me.JOSENotSupported){throw R}De=(0,we.default)(Re)}let Ne;let Me;try{Ne=(0,he.decode)(R.iv)}catch{throw new me.JWEInvalid("Failed to base64url decode the iv")}try{Me=(0,he.decode)(R.tag)}catch{throw new me.JWEInvalid("Failed to base64url decode the tag")}const je=Ce.encoder.encode((Se=R.protected)!==null&&Se!==void 0?Se:"");let Fe;if(R.aad!==undefined){Fe=(0,Ce.concat)(je,Ce.encoder.encode("."),Ce.encoder.encode(R.aad))}else{Fe=je}let Le;try{Le=(0,he.decode)(R.ciphertext)}catch{throw new me.JWEInvalid("Failed to base64url decode the ciphertext")}let Ue=await(0,ge.default)(Re,De,Le,Ne,Me,Fe);if(ke.zip==="DEF"){Ue=await((Ae===null||Ae===void 0?void 0:Ae.inflateRaw)||ye.inflate)(Ue)}const He={plaintext:Ue};if(R.protected!==undefined){He.protectedHeader=Be}if(R.aad!==undefined){try{He.additionalAuthenticatedData=(0,he.decode)(R.aad)}catch{throw new me.JWEInvalid("Failed to base64url decode the aad")}}if(R.unprotected!==undefined){He.sharedUnprotectedHeader=R.unprotected}if(R.header!==undefined){He.unprotectedHeader=R.header}if(Te){return{...He,key:pe}}return He}pe.flattenedDecrypt=flattenedDecrypt},55386:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedEncrypt=pe.unprotected=void 0;const he=Ae(60589);const ge=Ae(96115);const ye=Ae(52284);const me=Ae(68408);const ve=Ae(19582);const be=Ae(36454);const Ee=Ae(11218);const Ce=Ae(55925);const we=Ae(52874);pe.unprotected=Symbol();class FlattenedEncrypt{constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("plaintext must be an instance of Uint8Array")}this._plaintext=R}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._sharedUnprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._sharedUnprotectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}async encrypt(R,Ae){if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader){throw new be.JWEInvalid("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()")}if(!(0,Ee.default)(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader)){throw new be.JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint")}const _e={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};(0,we.default)(be.JWEInvalid,new Map,Ae===null||Ae===void 0?void 0:Ae.crit,this._protectedHeader,_e);if(_e.zip!==undefined){if(!this._protectedHeader||!this._protectedHeader.zip){throw new be.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}if(_e.zip!=="DEF"){throw new be.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}}const{alg:Ie,enc:Se}=_e;if(typeof Ie!=="string"||!Ie){throw new be.JWEInvalid('JWE "alg" (Algorithm) Header Parameter missing or invalid')}if(typeof Se!=="string"||!Se){throw new be.JWEInvalid('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid')}let Be;if(Ie==="dir"){if(this._cek){throw new TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}}else if(Ie==="ECDH-ES"){if(this._cek){throw new TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement")}}let ke;{let he;({cek:ke,encryptedKey:Be,parameters:he}=await(0,ve.default)(Ie,Se,R,this._cek,this._keyManagementParameters));if(he){if(Ae&&pe.unprotected in Ae){if(!this._unprotectedHeader){this.setUnprotectedHeader(he)}else{this._unprotectedHeader={...this._unprotectedHeader,...he}}}else{if(!this._protectedHeader){this.setProtectedHeader(he)}else{this._protectedHeader={...this._protectedHeader,...he}}}}}this._iv||(this._iv=(0,me.default)(Se));let Oe;let Re;let Qe;if(this._protectedHeader){Re=Ce.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{Re=Ce.encoder.encode("")}if(this._aad){Qe=(0,he.encode)(this._aad);Oe=(0,Ce.concat)(Re,Ce.encoder.encode("."),Ce.encoder.encode(Qe))}else{Oe=Re}let xe;let Pe;if(_e.zip==="DEF"){const R=await((Ae===null||Ae===void 0?void 0:Ae.deflateRaw)||ye.deflate)(this._plaintext);({ciphertext:xe,tag:Pe}=await(0,ge.default)(Se,R,ke,this._iv,Oe))}else{({ciphertext:xe,tag:Pe}=await(0,ge.default)(Se,this._plaintext,ke,this._iv,Oe))}const Te={ciphertext:(0,he.encode)(xe),iv:(0,he.encode)(this._iv),tag:(0,he.encode)(Pe)};if(Be){Te.encrypted_key=(0,he.encode)(Be)}if(Qe){Te.aad=Qe}if(this._protectedHeader){Te.protected=Ce.decoder.decode(Re)}if(this._sharedUnprotectedHeader){Te.unprotected=this._sharedUnprotectedHeader}if(this._unprotectedHeader){Te.header=this._unprotectedHeader}return Te}}pe.FlattenedEncrypt=FlattenedEncrypt},95564:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalDecrypt=void 0;const he=Ae(59875);const ge=Ae(36454);const ye=Ae(61394);async function generalDecrypt(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWEInvalid("General JWE must be an object")}if(!Array.isArray(R.recipients)||!R.recipients.every(ye.default)){throw new ge.JWEInvalid("JWE Recipients missing or incorrect type")}if(!R.recipients.length){throw new ge.JWEInvalid("JWE Recipients has no members")}for(const ge of R.recipients){try{return await(0,he.flattenedDecrypt)({aad:R.aad,ciphertext:R.ciphertext,encrypted_key:ge.encrypted_key,header:ge.header,iv:R.iv,protected:R.protected,tag:R.tag,unprotected:R.unprotected},pe,Ae)}catch{}}throw new ge.JWEDecryptionFailed}pe.generalDecrypt=generalDecrypt},64128:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralEncrypt=void 0;const he=Ae(55386);const ge=Ae(36454);const ye=Ae(74466);const me=Ae(11218);const ve=Ae(19582);const be=Ae(60589);const Ee=Ae(52874);class IndividualRecipient{constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addRecipient(...R){return this.parent.addRecipient(...R)}encrypt(...R){return this.parent.encrypt(...R)}done(){return this.parent}}class GeneralEncrypt{constructor(R){this._recipients=[];this._plaintext=R}addRecipient(R,pe){const Ae=new IndividualRecipient(this,R,{crit:pe===null||pe===void 0?void 0:pe.crit});this._recipients.push(Ae);return Ae}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}async encrypt(R){var pe,Ae,Ce;if(!this._recipients.length){throw new ge.JWEInvalid("at least one recipient must be added")}R={deflateRaw:R===null||R===void 0?void 0:R.deflateRaw};if(this._recipients.length===1){const[pe]=this._recipients;const Ae=await new he.FlattenedEncrypt(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(pe.unprotectedHeader).encrypt(pe.key,{...pe.options,...R});let ge={ciphertext:Ae.ciphertext,iv:Ae.iv,recipients:[{}],tag:Ae.tag};if(Ae.aad)ge.aad=Ae.aad;if(Ae.protected)ge.protected=Ae.protected;if(Ae.unprotected)ge.unprotected=Ae.unprotected;if(Ae.encrypted_key)ge.recipients[0].encrypted_key=Ae.encrypted_key;if(Ae.header)ge.recipients[0].header=Ae.header;return ge}let we;for(let R=0;R{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EmbeddedJWK=void 0;const he=Ae(59111);const ge=Ae(61394);const ye=Ae(36454);async function EmbeddedJWK(R,pe){const Ae={...R,...pe===null||pe===void 0?void 0:pe.header};if(!(0,ge.default)(Ae.jwk)){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a JSON object')}const me=await(0,he.importJWK)({...Ae.jwk,ext:true},Ae.alg,true);if(me instanceof Uint8Array||me.type!=="public"){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a public key')}return me}pe.EmbeddedJWK=EmbeddedJWK},94822:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=void 0;const he=Ae(46639);const ge=Ae(60589);const ye=Ae(36454);const me=Ae(55925);const ve=Ae(61394);const check=(R,pe)=>{if(typeof R!=="string"||!R){throw new ye.JWKInvalid(`${pe} missing or invalid`)}};async function calculateJwkThumbprint(R,pe){if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe!==null&&pe!==void 0?pe:pe="sha256";if(pe!=="sha256"&&pe!=="sha384"&&pe!=="sha512"){throw new TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"')}let Ae;switch(R.kty){case"EC":check(R.crv,'"crv" (Curve) Parameter');check(R.x,'"x" (X Coordinate) Parameter');check(R.y,'"y" (Y Coordinate) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x,y:R.y};break;case"OKP":check(R.crv,'"crv" (Subtype of Key Pair) Parameter');check(R.x,'"x" (Public Key) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x};break;case"RSA":check(R.e,'"e" (Exponent) Parameter');check(R.n,'"n" (Modulus) Parameter');Ae={e:R.e,kty:R.kty,n:R.n};break;case"oct":check(R.k,'"k" (Key Value) Parameter');Ae={k:R.k,kty:R.kty};break;default:throw new ye.JOSENotSupported('"kty" (Key Type) Parameter missing or unsupported')}const be=me.encoder.encode(JSON.stringify(Ae));return(0,ge.encode)(await(0,he.default)(pe,be))}pe.calculateJwkThumbprint=calculateJwkThumbprint;async function calculateJwkThumbprintUri(R,pe){pe!==null&&pe!==void 0?pe:pe="sha256";const Ae=await calculateJwkThumbprint(R,pe);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${pe.slice(-3)}:${Ae}`}pe.calculateJwkThumbprintUri=calculateJwkThumbprintUri},75036:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createLocalJWKSet=pe.LocalJWKSet=pe.isJWKSLike=void 0;const he=Ae(59111);const ge=Ae(36454);const ye=Ae(61394);function getKtyFromAlg(R){switch(typeof R==="string"&&R.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new ge.JOSENotSupported('Unsupported "alg" value for a JSON Web Key Set')}}function isJWKSLike(R){return R&&typeof R==="object"&&Array.isArray(R.keys)&&R.keys.every(isJWKLike)}pe.isJWKSLike=isJWKSLike;function isJWKLike(R){return(0,ye.default)(R)}function clone(R){if(typeof structuredClone==="function"){return structuredClone(R)}return JSON.parse(JSON.stringify(R))}class LocalJWKSet{constructor(R){this._cached=new WeakMap;if(!isJWKSLike(R)){throw new ge.JWKSInvalid("JSON Web Key Set malformed")}this._jwks=clone(R)}async getKey(R,pe){const{alg:Ae,kid:he}={...R,...pe===null||pe===void 0?void 0:pe.header};const ye=getKtyFromAlg(Ae);const me=this._jwks.keys.filter((R=>{let pe=ye===R.kty;if(pe&&typeof he==="string"){pe=he===R.kid}if(pe&&typeof R.alg==="string"){pe=Ae===R.alg}if(pe&&typeof R.use==="string"){pe=R.use==="sig"}if(pe&&Array.isArray(R.key_ops)){pe=R.key_ops.includes("verify")}if(pe&&Ae==="EdDSA"){pe=R.crv==="Ed25519"||R.crv==="Ed448"}if(pe){switch(Ae){case"ES256":pe=R.crv==="P-256";break;case"ES256K":pe=R.crv==="secp256k1";break;case"ES384":pe=R.crv==="P-384";break;case"ES512":pe=R.crv==="P-521";break}}return pe}));const{0:ve,length:be}=me;if(be===0){throw new ge.JWKSNoMatchingKey}else if(be!==1){const R=new ge.JWKSMultipleMatchingKeys;const{_cached:pe}=this;R[Symbol.asyncIterator]=async function*(){for(const R of me){try{yield await importWithAlgCache(pe,R,Ae)}catch{continue}}};throw R}return importWithAlgCache(this._cached,ve,Ae)}}pe.LocalJWKSet=LocalJWKSet;async function importWithAlgCache(R,pe,Ae){const ye=R.get(pe)||R.set(pe,{}).get(pe);if(ye[Ae]===undefined){const R=await(0,he.importJWK)({...pe,ext:true},Ae);if(R instanceof Uint8Array||R.type!=="public"){throw new ge.JWKSInvalid("JSON Web Key Set members must be public keys")}ye[Ae]=R}return ye[Ae]}function createLocalJWKSet(R){const pe=new LocalJWKSet(R);return async function(R,Ae){return pe.getKey(R,Ae)}}pe.createLocalJWKSet=createLocalJWKSet},87716:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createRemoteJWKSet=void 0;const he=Ae(90898);const ge=Ae(36454);const ye=Ae(75036);function isCloudflareWorkers(){return typeof WebSocketPair!=="undefined"||typeof navigator!=="undefined"&&navigator.userAgent==="Cloudflare-Workers"||typeof EdgeRuntime!=="undefined"&&EdgeRuntime==="vercel"}class RemoteJWKSet extends ye.LocalJWKSet{constructor(R,pe){super({keys:[]});this._jwks=undefined;if(!(R instanceof URL)){throw new TypeError("url must be an instance of URL")}this._url=new URL(R.href);this._options={agent:pe===null||pe===void 0?void 0:pe.agent,headers:pe===null||pe===void 0?void 0:pe.headers};this._timeoutDuration=typeof(pe===null||pe===void 0?void 0:pe.timeoutDuration)==="number"?pe===null||pe===void 0?void 0:pe.timeoutDuration:5e3;this._cooldownDuration=typeof(pe===null||pe===void 0?void 0:pe.cooldownDuration)==="number"?pe===null||pe===void 0?void 0:pe.cooldownDuration:3e4;this._cacheMaxAge=typeof(pe===null||pe===void 0?void 0:pe.cacheMaxAge)==="number"?pe===null||pe===void 0?void 0:pe.cacheMaxAge:6e5}coolingDown(){return typeof this._jwksTimestamp==="number"?Date.now(){if(!(0,ye.isJWKSLike)(R)){throw new ge.JWKSInvalid("JSON Web Key Set malformed")}this._jwks={keys:R.keys};this._jwksTimestamp=Date.now();this._pendingFetch=undefined})).catch((R=>{this._pendingFetch=undefined;throw R})));await this._pendingFetch}}function createRemoteJWKSet(R,pe){const Ae=new RemoteJWKSet(R,pe);return async function(R,pe){return Ae.getKey(R,pe)}}pe.createRemoteJWKSet=createRemoteJWKSet},9768:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactSign=void 0;const he=Ae(49696);class CompactSign{constructor(R){this._flattened=new he.FlattenedSign(R)}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}async sign(R,pe){const Ae=await this._flattened.sign(R,pe);if(Ae.payload===undefined){throw new TypeError("use the flattened module for creating JWS with b64: false")}return`${Ae.protected}.${Ae.payload}.${Ae.signature}`}}pe.CompactSign=CompactSign},53559:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactVerify=void 0;const he=Ae(86418);const ge=Ae(36454);const ye=Ae(55925);async function compactVerify(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWSInvalid("Compact JWS must be a string or Uint8Array")}const{0:me,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3){throw new ge.JWSInvalid("Invalid Compact JWS")}const Ce=await(0,he.flattenedVerify)({payload:ve,protected:me,signature:be},pe,Ae);const we={payload:Ce.payload,protectedHeader:Ce.protectedHeader};if(typeof pe==="function"){return{...we,key:Ce.key}}return we}pe.compactVerify=compactVerify},49696:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedSign=void 0;const he=Ae(60589);const ge=Ae(85513);const ye=Ae(11218);const me=Ae(36454);const ve=Ae(55925);const be=Ae(57113);const Ee=Ae(52874);class FlattenedSign{constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("payload must be an instance of Uint8Array")}this._payload=R}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}async sign(R,pe){if(!this._protectedHeader&&!this._unprotectedHeader){throw new me.JWSInvalid("either setProtectedHeader or setUnprotectedHeader must be called before #sign()")}if(!(0,ye.default)(this._protectedHeader,this._unprotectedHeader)){throw new me.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Ae={...this._protectedHeader,...this._unprotectedHeader};const Ce=(0,Ee.default)(me.JWSInvalid,new Map([["b64",true]]),pe===null||pe===void 0?void 0:pe.crit,this._protectedHeader,Ae);let we=true;if(Ce.has("b64")){we=this._protectedHeader.b64;if(typeof we!=="boolean"){throw new me.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:_e}=Ae;if(typeof _e!=="string"||!_e){throw new me.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}(0,be.default)(_e,R,"sign");let Ie=this._payload;if(we){Ie=ve.encoder.encode((0,he.encode)(Ie))}let Se;if(this._protectedHeader){Se=ve.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{Se=ve.encoder.encode("")}const Be=(0,ve.concat)(Se,ve.encoder.encode("."),Ie);const ke=await(0,ge.default)(_e,R,Be);const Oe={signature:(0,he.encode)(ke),payload:""};if(we){Oe.payload=ve.decoder.decode(Ie)}if(this._unprotectedHeader){Oe.header=this._unprotectedHeader}if(this._protectedHeader){Oe.protected=ve.decoder.decode(Se)}return Oe}}pe.FlattenedSign=FlattenedSign},86418:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedVerify=void 0;const he=Ae(60589);const ge=Ae(34438);const ye=Ae(36454);const me=Ae(55925);const ve=Ae(11218);const be=Ae(61394);const Ee=Ae(57113);const Ce=Ae(52874);const we=Ae(99125);async function flattenedVerify(R,pe,Ae){var _e;if(!(0,be.default)(R)){throw new ye.JWSInvalid("Flattened JWS must be an object")}if(R.protected===undefined&&R.header===undefined){throw new ye.JWSInvalid('Flattened JWS must have either of the "protected" or "header" members')}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new ye.JWSInvalid("JWS Protected Header incorrect type")}if(R.payload===undefined){throw new ye.JWSInvalid("JWS Payload missing")}if(typeof R.signature!=="string"){throw new ye.JWSInvalid("JWS Signature missing or incorrect type")}if(R.header!==undefined&&!(0,be.default)(R.header)){throw new ye.JWSInvalid("JWS Unprotected Header incorrect type")}let Ie={};if(R.protected){try{const pe=(0,he.decode)(R.protected);Ie=JSON.parse(me.decoder.decode(pe))}catch{throw new ye.JWSInvalid("JWS Protected Header is invalid")}}if(!(0,ve.default)(Ie,R.header)){throw new ye.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Se={...Ie,...R.header};const Be=(0,Ce.default)(ye.JWSInvalid,new Map([["b64",true]]),Ae===null||Ae===void 0?void 0:Ae.crit,Ie,Se);let ke=true;if(Be.has("b64")){ke=Ie.b64;if(typeof ke!=="boolean"){throw new ye.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:Oe}=Se;if(typeof Oe!=="string"||!Oe){throw new ye.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}const Re=Ae&&(0,we.default)("algorithms",Ae.algorithms);if(Re&&!Re.has(Oe)){throw new ye.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed')}if(ke){if(typeof R.payload!=="string"){throw new ye.JWSInvalid("JWS Payload must be a string")}}else if(typeof R.payload!=="string"&&!(R.payload instanceof Uint8Array)){throw new ye.JWSInvalid("JWS Payload must be a string or an Uint8Array instance")}let Qe=false;if(typeof pe==="function"){pe=await pe(Ie,R);Qe=true}(0,Ee.default)(Oe,pe,"verify");const xe=(0,me.concat)(me.encoder.encode((_e=R.protected)!==null&&_e!==void 0?_e:""),me.encoder.encode("."),typeof R.payload==="string"?me.encoder.encode(R.payload):R.payload);let Pe;try{Pe=(0,he.decode)(R.signature)}catch{throw new ye.JWSInvalid("Failed to base64url decode the signature")}const Te=await(0,ge.default)(Oe,pe,Pe,xe);if(!Te){throw new ye.JWSSignatureVerificationFailed}let De;if(ke){try{De=(0,he.decode)(R.payload)}catch{throw new ye.JWSInvalid("Failed to base64url decode the payload")}}else if(typeof R.payload==="string"){De=me.encoder.encode(R.payload)}else{De=R.payload}const Ne={payload:De};if(R.protected!==undefined){Ne.protectedHeader=Ie}if(R.header!==undefined){Ne.unprotectedHeader=R.header}if(Qe){return{...Ne,key:pe}}return Ne}pe.flattenedVerify=flattenedVerify},74074:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralSign=void 0;const he=Ae(49696);const ge=Ae(36454);class IndividualSignature{constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setProtectedHeader(R){if(this.protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this.protectedHeader=R;return this}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addSignature(...R){return this.parent.addSignature(...R)}sign(...R){return this.parent.sign(...R)}done(){return this.parent}}class GeneralSign{constructor(R){this._signatures=[];this._payload=R}addSignature(R,pe){const Ae=new IndividualSignature(this,R,pe);this._signatures.push(Ae);return Ae}async sign(){if(!this._signatures.length){throw new ge.JWSInvalid("at least one signature must be added")}const R={signatures:[],payload:""};for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalVerify=void 0;const he=Ae(86418);const ge=Ae(36454);const ye=Ae(61394);async function generalVerify(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWSInvalid("General JWS must be an object")}if(!Array.isArray(R.signatures)||!R.signatures.every(ye.default)){throw new ge.JWSInvalid("JWS Signatures missing or incorrect type")}for(const ge of R.signatures){try{return await(0,he.flattenedVerify)({header:ge.header,payload:R.payload,protected:ge.protected,signature:ge.signature},pe,Ae)}catch{}}throw new ge.JWSSignatureVerificationFailed}pe.generalVerify=generalVerify},95972:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtDecrypt=void 0;const he=Ae(837);const ge=Ae(50868);const ye=Ae(36454);async function jwtDecrypt(R,pe,Ae){const me=await(0,he.compactDecrypt)(R,pe,Ae);const ve=(0,ge.default)(me.protectedHeader,me.plaintext,Ae);const{protectedHeader:be}=me;if(be.iss!==undefined&&be.iss!==ve.iss){throw new ye.JWTClaimValidationFailed('replicated "iss" claim header parameter mismatch',"iss","mismatch")}if(be.sub!==undefined&&be.sub!==ve.sub){throw new ye.JWTClaimValidationFailed('replicated "sub" claim header parameter mismatch',"sub","mismatch")}if(be.aud!==undefined&&JSON.stringify(be.aud)!==JSON.stringify(ve.aud)){throw new ye.JWTClaimValidationFailed('replicated "aud" claim header parameter mismatch',"aud","mismatch")}const Ee={payload:ve,protectedHeader:be};if(typeof pe==="function"){return{...Ee,key:me.key}}return Ee}pe.jwtDecrypt=jwtDecrypt},94773:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncryptJWT=void 0;const he=Ae(98796);const ge=Ae(55925);const ye=Ae(64782);class EncryptJWT extends ye.ProduceJWT{setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}replicateIssuerAsHeader(){this._replicateIssuerAsHeader=true;return this}replicateSubjectAsHeader(){this._replicateSubjectAsHeader=true;return this}replicateAudienceAsHeader(){this._replicateAudienceAsHeader=true;return this}async encrypt(R,pe){const Ae=new he.CompactEncrypt(ge.encoder.encode(JSON.stringify(this._payload)));if(this._replicateIssuerAsHeader){this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}}if(this._replicateSubjectAsHeader){this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}}if(this._replicateAudienceAsHeader){this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}}Ae.setProtectedHeader(this._protectedHeader);if(this._iv){Ae.setInitializationVector(this._iv)}if(this._cek){Ae.setContentEncryptionKey(this._cek)}if(this._keyManagementParameters){Ae.setKeyManagementParameters(this._keyManagementParameters)}return Ae.encrypt(R,pe)}}pe.EncryptJWT=EncryptJWT},64782:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ProduceJWT=void 0;const he=Ae(36660);const ge=Ae(61394);const ye=Ae(58739);class ProduceJWT{constructor(R){if(!(0,ge.default)(R)){throw new TypeError("JWT Claims Set MUST be an object")}this._payload=R}setIssuer(R){this._payload={...this._payload,iss:R};return this}setSubject(R){this._payload={...this._payload,sub:R};return this}setAudience(R){this._payload={...this._payload,aud:R};return this}setJti(R){this._payload={...this._payload,jti:R};return this}setNotBefore(R){if(typeof R==="number"){this._payload={...this._payload,nbf:R}}else{this._payload={...this._payload,nbf:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setExpirationTime(R){if(typeof R==="number"){this._payload={...this._payload,exp:R}}else{this._payload={...this._payload,exp:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setIssuedAt(R){if(typeof R==="undefined"){this._payload={...this._payload,iat:(0,he.default)(new Date)}}else{this._payload={...this._payload,iat:R}}return this}}pe.ProduceJWT=ProduceJWT},75003:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SignJWT=void 0;const he=Ae(9768);const ge=Ae(36454);const ye=Ae(55925);const me=Ae(64782);class SignJWT extends me.ProduceJWT{setProtectedHeader(R){this._protectedHeader=R;return this}async sign(R,pe){var Ae;const me=new he.CompactSign(ye.encoder.encode(JSON.stringify(this._payload)));me.setProtectedHeader(this._protectedHeader);if(Array.isArray((Ae=this._protectedHeader)===null||Ae===void 0?void 0:Ae.crit)&&this._protectedHeader.crit.includes("b64")&&this._protectedHeader.b64===false){throw new ge.JWTInvalid("JWTs MUST NOT use unencoded payload")}return me.sign(R,pe)}}pe.SignJWT=SignJWT},90314:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.UnsecuredJWT=void 0;const he=Ae(60589);const ge=Ae(55925);const ye=Ae(36454);const me=Ae(50868);const ve=Ae(64782);class UnsecuredJWT extends ve.ProduceJWT{encode(){const R=he.encode(JSON.stringify({alg:"none"}));const pe=he.encode(JSON.stringify(this._payload));return`${R}.${pe}.`}static decode(R,pe){if(typeof R!=="string"){throw new ye.JWTInvalid("Unsecured JWT must be a string")}const{0:Ae,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3||be!==""){throw new ye.JWTInvalid("Invalid Unsecured JWT")}let Ce;try{Ce=JSON.parse(ge.decoder.decode(he.decode(Ae)));if(Ce.alg!=="none")throw new Error}catch{throw new ye.JWTInvalid("Invalid Unsecured JWT")}const we=(0,me.default)(Ce,he.decode(ve),pe);return{payload:we,header:Ce}}}pe.UnsecuredJWT=UnsecuredJWT},82352:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtVerify=void 0;const he=Ae(53559);const ge=Ae(50868);const ye=Ae(36454);async function jwtVerify(R,pe,Ae){var me;const ve=await(0,he.compactVerify)(R,pe,Ae);if(((me=ve.protectedHeader.crit)===null||me===void 0?void 0:me.includes("b64"))&&ve.protectedHeader.b64===false){throw new ye.JWTInvalid("JWTs MUST NOT use unencoded payload")}const be=(0,ge.default)(ve.protectedHeader,ve.payload,Ae);const Ee={payload:be,protectedHeader:ve.protectedHeader};if(typeof pe==="function"){return{...Ee,key:ve.key}}return Ee}pe.jwtVerify=jwtVerify},67168:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exportJWK=pe.exportPKCS8=pe.exportSPKI=void 0;const he=Ae(20415);const ge=Ae(20415);const ye=Ae(74948);async function exportSPKI(R){return(0,he.toSPKI)(R)}pe.exportSPKI=exportSPKI;async function exportPKCS8(R){return(0,ge.toPKCS8)(R)}pe.exportPKCS8=exportPKCS8;async function exportJWK(R){return(0,ye.default)(R)}pe.exportJWK=exportJWK},41280:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=void 0;const he=Ae(87757);async function generateKeyPair(R,pe){return(0,he.generateKeyPair)(R,pe)}pe.generateKeyPair=generateKeyPair},59670:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateSecret=void 0;const he=Ae(87757);async function generateSecret(R,pe){return(0,he.generateSecret)(R,pe)}pe.generateSecret=generateSecret},59111:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.importJWK=pe.importPKCS8=pe.importX509=pe.importSPKI=void 0;const he=Ae(60589);const ge=Ae(20415);const ye=Ae(41960);const me=Ae(36454);const ve=Ae(61394);async function importSPKI(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PUBLIC KEY-----")!==0){throw new TypeError('"spki" must be SPKI formatted string')}return(0,ge.fromSPKI)(R,pe,Ae)}pe.importSPKI=importSPKI;async function importX509(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN CERTIFICATE-----")!==0){throw new TypeError('"x509" must be X.509 formatted string')}return(0,ge.fromX509)(R,pe,Ae)}pe.importX509=importX509;async function importPKCS8(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PRIVATE KEY-----")!==0){throw new TypeError('"pkcs8" must be PKCS#8 formatted string')}return(0,ge.fromPKCS8)(R,pe,Ae)}pe.importPKCS8=importPKCS8;async function importJWK(R,pe,Ae){var ge;if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe||(pe=R.alg);switch(R.kty){case"oct":if(typeof R.k!=="string"||!R.k){throw new TypeError('missing "k" (Key Value) Parameter value')}Ae!==null&&Ae!==void 0?Ae:Ae=R.ext!==true;if(Ae){return(0,ye.default)({...R,alg:pe,ext:(ge=R.ext)!==null&&ge!==void 0?ge:false})}return(0,he.decode)(R.k);case"RSA":if(R.oth!==undefined){throw new me.JOSENotSupported('RSA JWK "oth" (Other Primes Info) Parameter value is not supported')}case"EC":case"OKP":return(0,ye.default)({...R,alg:pe});default:throw new me.JOSENotSupported('Unsupported "kty" (Key Type) Parameter value')}}pe.importJWK=importJWK},37175:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(96115);const ge=Ae(78190);const ye=Ae(68408);const me=Ae(60589);async function wrap(R,pe,Ae,ge){const ve=R.slice(0,7);ge||(ge=(0,ye.default)(ve));const{ciphertext:be,tag:Ee}=await(0,he.default)(ve,Ae,pe,ge,new Uint8Array(0));return{encryptedKey:be,iv:(0,me.encode)(ge),tag:(0,me.encode)(Ee)}}pe.wrap=wrap;async function unwrap(R,pe,Ae,he,ye){const me=R.slice(0,7);return(0,ge.default)(me,pe,Ae,he,ye,new Uint8Array(0))}pe.unwrap=unwrap},55925:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatKdf=pe.lengthAndInput=pe.uint32be=pe.uint64be=pe.p2s=pe.concat=pe.decoder=pe.encoder=void 0;const he=Ae(46639);pe.encoder=new TextEncoder;pe.decoder=new TextDecoder;const ge=2**32;function concat(...R){const pe=R.reduce(((R,{length:pe})=>R+pe),0);const Ae=new Uint8Array(pe);let he=0;R.forEach((R=>{Ae.set(R,he);he+=R.length}));return Ae}pe.concat=concat;function p2s(R,Ae){return concat(pe.encoder.encode(R),new Uint8Array([0]),Ae)}pe.p2s=p2s;function writeUInt32BE(R,pe,Ae){if(pe<0||pe>=ge){throw new RangeError(`value must be >= 0 and <= ${ge-1}. Received ${pe}`)}R.set([pe>>>24,pe>>>16,pe>>>8,pe&255],Ae)}function uint64be(R){const pe=Math.floor(R/ge);const Ae=R%ge;const he=new Uint8Array(8);writeUInt32BE(he,pe,0);writeUInt32BE(he,Ae,4);return he}pe.uint64be=uint64be;function uint32be(R){const pe=new Uint8Array(4);writeUInt32BE(pe,R);return pe}pe.uint32be=uint32be;function lengthAndInput(R){return concat(uint32be(R.length),R)}pe.lengthAndInput=lengthAndInput;async function concatKdf(R,pe,Ae){const ge=Math.ceil((pe>>3)/32);const ye=new Uint8Array(ge*32);for(let pe=0;pe>3)}pe.concatKdf=concatKdf},74466:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(36454);const ge=Ae(83738);function bitLength(R){switch(R){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},50681:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);const ge=Ae(68408);const checkIvLength=(R,pe)=>{if(pe.length<<3!==(0,ge.bitLength)(R)){throw new he.JWEInvalid("Invalid Initialization Vector length")}};pe["default"]=checkIvLength},57113:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(3401);const ge=Ae(73923);const symmetricTypeCheck=(R,pe)=>{if(pe instanceof Uint8Array)return;if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types,"Uint8Array"))}if(pe.type!=="secret"){throw new TypeError(`${ge.types.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}};const asymmetricTypeCheck=(R,pe,Ae)=>{if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types))}if(pe.type==="secret"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`)}if(Ae==="sign"&&pe.type==="public"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`)}if(Ae==="decrypt"&&pe.type==="public"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`)}if(pe.algorithm&&Ae==="verify"&&pe.type==="private"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`)}if(pe.algorithm&&Ae==="encrypt"&&pe.type==="private"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)}};const checkKeyType=(R,pe,Ae)=>{const he=R.startsWith("HS")||R==="dir"||R.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(R);if(he){symmetricTypeCheck(R,pe)}else{asymmetricTypeCheck(R,pe,Ae)}};pe["default"]=checkKeyType},84662:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);function checkP2s(R){if(!(R instanceof Uint8Array)||R.length<8){throw new he.JWEInvalid("PBES2 Salt Input must be 8 or more octets")}}pe["default"]=checkP2s},87347:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.checkEncCryptoKey=pe.checkSigCryptoKey=void 0;function unusable(R,pe="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${pe} must be ${R}`)}function isAlgorithm(R,pe){return R.name===pe}function getHashLength(R){return parseInt(R.name.slice(4),10)}function getNamedCurve(R){switch(R){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function checkUsage(R,pe){if(pe.length&&!pe.some((pe=>R.usages.includes(pe)))){let R="CryptoKey does not support this operation, its usages must include ";if(pe.length>2){const Ae=pe.pop();R+=`one of ${pe.join(", ")}, or ${Ae}.`}else if(pe.length===2){R+=`one of ${pe[0]} or ${pe[1]}.`}else{R+=`${pe[0]}.`}throw new TypeError(R)}}function checkSigCryptoKey(R,pe,...Ae){switch(pe){case"HS256":case"HS384":case"HS512":{if(!isAlgorithm(R.algorithm,"HMAC"))throw unusable("HMAC");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!isAlgorithm(R.algorithm,"RSASSA-PKCS1-v1_5"))throw unusable("RSASSA-PKCS1-v1_5");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!isAlgorithm(R.algorithm,"RSA-PSS"))throw unusable("RSA-PSS");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"EdDSA":{if(R.algorithm.name!=="Ed25519"&&R.algorithm.name!=="Ed448"){throw unusable("Ed25519 or Ed448")}break}case"ES256":case"ES384":case"ES512":{if(!isAlgorithm(R.algorithm,"ECDSA"))throw unusable("ECDSA");const Ae=getNamedCurve(pe);const he=R.algorithm.namedCurve;if(he!==Ae)throw unusable(Ae,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkSigCryptoKey=checkSigCryptoKey;function checkEncCryptoKey(R,pe,...Ae){switch(pe){case"A128GCM":case"A192GCM":case"A256GCM":{if(!isAlgorithm(R.algorithm,"AES-GCM"))throw unusable("AES-GCM");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!isAlgorithm(R.algorithm,"AES-KW"))throw unusable("AES-KW");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"ECDH":{switch(R.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw unusable("ECDH, X25519, or X448")}break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!isAlgorithm(R.algorithm,"PBKDF2"))throw unusable("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!isAlgorithm(R.algorithm,"RSA-OAEP"))throw unusable("RSA-OAEP");const Ae=parseInt(pe.slice(9),10)||1;const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkEncCryptoKey=checkEncCryptoKey},48448:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(1980);const ge=Ae(77261);const ye=Ae(15845);const me=Ae(10079);const ve=Ae(60589);const be=Ae(36454);const Ee=Ae(74466);const Ce=Ae(59111);const we=Ae(57113);const _e=Ae(61394);const Ie=Ae(37175);async function decryptKeyManagement(R,pe,Ae,Se,Be){(0,we.default)(R,pe,"decrypt");switch(R){case"dir":{if(Ae!==undefined)throw new be.JWEInvalid("Encountered unexpected JWE Encrypted Key");return pe}case"ECDH-ES":if(Ae!==undefined)throw new be.JWEInvalid("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!(0,_e.default)(Se.epk))throw new be.JWEInvalid(`JOSE Header "epk" (Ephemeral Public Key) missing or invalid`);if(!ge.ecdhAllowed(pe))throw new be.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime");const ye=await(0,Ce.importJWK)(Se.epk,R);let me;let we;if(Se.apu!==undefined){if(typeof Se.apu!=="string")throw new be.JWEInvalid(`JOSE Header "apu" (Agreement PartyUInfo) invalid`);try{me=(0,ve.decode)(Se.apu)}catch{throw new be.JWEInvalid("Failed to base64url decode the apu")}}if(Se.apv!==undefined){if(typeof Se.apv!=="string")throw new be.JWEInvalid(`JOSE Header "apv" (Agreement PartyVInfo) invalid`);try{we=(0,ve.decode)(Se.apv)}catch{throw new be.JWEInvalid("Failed to base64url decode the apv")}}const Ie=await ge.deriveKey(ye,pe,R==="ECDH-ES"?Se.enc:R,R==="ECDH-ES"?(0,Ee.bitLength)(Se.enc):parseInt(R.slice(-5,-2),10),me,we);if(R==="ECDH-ES")return Ie;if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R.slice(-6),Ie,Ae)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,me.decrypt)(R,pe,Ae)}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");if(typeof Se.p2c!=="number")throw new be.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) missing or invalid`);const he=(Be===null||Be===void 0?void 0:Be.maxPBES2Count)||1e4;if(Se.p2c>he)throw new be.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds`);if(typeof Se.p2s!=="string")throw new be.JWEInvalid(`JOSE Header "p2s" (PBES2 Salt) missing or invalid`);let ge;try{ge=(0,ve.decode)(Se.p2s)}catch{throw new be.JWEInvalid("Failed to base64url decode the p2s")}return(0,ye.decrypt)(R,pe,Ae,Se.p2c,ge)}case"A128KW":case"A192KW":case"A256KW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R,pe,Ae)}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");if(typeof Se.iv!=="string")throw new be.JWEInvalid(`JOSE Header "iv" (Initialization Vector) missing or invalid`);if(typeof Se.tag!=="string")throw new be.JWEInvalid(`JOSE Header "tag" (Authentication Tag) missing or invalid`);let he;try{he=(0,ve.decode)(Se.iv)}catch{throw new be.JWEInvalid("Failed to base64url decode the iv")}let ge;try{ge=(0,ve.decode)(Se.tag)}catch{throw new be.JWEInvalid("Failed to base64url decode the tag")}return(0,Ie.unwrap)(R,pe,Ae,he,ge)}default:{throw new be.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}}pe["default"]=decryptKeyManagement},19582:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(1980);const ge=Ae(77261);const ye=Ae(15845);const me=Ae(10079);const ve=Ae(60589);const be=Ae(74466);const Ee=Ae(36454);const Ce=Ae(67168);const we=Ae(57113);const _e=Ae(37175);async function encryptKeyManagement(R,pe,Ae,Ie,Se={}){let Be;let ke;let Oe;(0,we.default)(R,Ae,"encrypt");switch(R){case"dir":{Oe=Ae;break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ge.ecdhAllowed(Ae)){throw new Ee.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime")}const{apu:ye,apv:me}=Se;let{epk:we}=Se;we||(we=(await ge.generateEpk(Ae)).privateKey);const{x:_e,y:Re,crv:Qe,kty:xe}=await(0,Ce.exportJWK)(we);const Pe=await ge.deriveKey(Ae,we,R==="ECDH-ES"?pe:R,R==="ECDH-ES"?(0,be.bitLength)(pe):parseInt(R.slice(-5,-2),10),ye,me);ke={epk:{x:_e,crv:Qe,kty:xe}};if(xe==="EC")ke.epk.y=Re;if(ye)ke.apu=(0,ve.encode)(ye);if(me)ke.apv=(0,ve.encode)(me);if(R==="ECDH-ES"){Oe=Pe;break}Oe=Ie||(0,be.default)(pe);const Te=R.slice(-6);Be=await(0,he.wrap)(Te,Pe,Oe);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{Oe=Ie||(0,be.default)(pe);Be=await(0,me.encrypt)(R,Ae,Oe);break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{Oe=Ie||(0,be.default)(pe);const{p2c:he,p2s:ge}=Se;({encryptedKey:Be,...ke}=await(0,ye.encrypt)(R,Ae,Oe,he,ge));break}case"A128KW":case"A192KW":case"A256KW":{Oe=Ie||(0,be.default)(pe);Be=await(0,he.wrap)(R,Ae,Oe);break}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{Oe=Ie||(0,be.default)(pe);const{iv:he}=Se;({encryptedKey:Be,...ke}=await(0,_e.wrap)(R,Ae,Oe,he));break}default:{throw new Ee.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}return{cek:Oe,encryptedKey:Be,parameters:ke}}pe["default"]=encryptKeyManagement},36660:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=R=>Math.floor(R.getTime()/1e3)},3401:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.withAlg=void 0;function message(R,pe,...Ae){if(Ae.length>2){const pe=Ae.pop();R+=`one of type ${Ae.join(", ")}, or ${pe}.`}else if(Ae.length===2){R+=`one of type ${Ae[0]} or ${Ae[1]}.`}else{R+=`of type ${Ae[0]}.`}if(pe==null){R+=` Received ${pe}`}else if(typeof pe==="function"&&pe.name){R+=` Received function ${pe.name}`}else if(typeof pe==="object"&&pe!=null){if(pe.constructor&&pe.constructor.name){R+=` Received an instance of ${pe.constructor.name}`}}return R}pe["default"]=(R,...pe)=>message("Key must be ",R,...pe);function withAlg(R,pe,...Ae){return message(`Key for the ${R} algorithm must be `,pe,...Ae)}pe.withAlg=withAlg},11218:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const isDisjoint=(...R)=>{const pe=R.filter(Boolean);if(pe.length===0||pe.length===1){return true}let Ae;for(const R of pe){const pe=Object.keys(R);if(!Ae||Ae.size===0){Ae=new Set(pe);continue}for(const R of pe){if(Ae.has(R)){return false}Ae.add(R)}}return true};pe["default"]=isDisjoint},61394:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function isObjectLike(R){return typeof R==="object"&&R!==null}function isObject(R){if(!isObjectLike(R)||Object.prototype.toString.call(R)!=="[object Object]"){return false}if(Object.getPrototypeOf(R)===null){return true}let pe=R;while(Object.getPrototypeOf(pe)!==null){pe=Object.getPrototypeOf(pe)}return Object.getPrototypeOf(R)===pe}pe["default"]=isObject},68408:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(36454);const ge=Ae(83738);function bitLength(R){switch(R){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},50868:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);const ge=Ae(55925);const ye=Ae(36660);const me=Ae(58739);const ve=Ae(61394);const normalizeTyp=R=>R.toLowerCase().replace(/^application\//,"");const checkAudiencePresence=(R,pe)=>{if(typeof R==="string"){return pe.includes(R)}if(Array.isArray(R)){return pe.some(Set.prototype.has.bind(new Set(R)))}return false};pe["default"]=(R,pe,Ae={})=>{const{typ:be}=Ae;if(be&&(typeof R.typ!=="string"||normalizeTyp(R.typ)!==normalizeTyp(be))){throw new he.JWTClaimValidationFailed('unexpected "typ" JWT header value',"typ","check_failed")}let Ee;try{Ee=JSON.parse(ge.decoder.decode(pe))}catch{}if(!(0,ve.default)(Ee)){throw new he.JWTInvalid("JWT Claims Set must be a top-level JSON object")}const{requiredClaims:Ce=[],issuer:we,subject:_e,audience:Ie,maxTokenAge:Se}=Ae;if(Se!==undefined)Ce.push("iat");if(Ie!==undefined)Ce.push("aud");if(_e!==undefined)Ce.push("sub");if(we!==undefined)Ce.push("iss");for(const R of new Set(Ce.reverse())){if(!(R in Ee)){throw new he.JWTClaimValidationFailed(`missing required "${R}" claim`,R,"missing")}}if(we&&!(Array.isArray(we)?we:[we]).includes(Ee.iss)){throw new he.JWTClaimValidationFailed('unexpected "iss" claim value',"iss","check_failed")}if(_e&&Ee.sub!==_e){throw new he.JWTClaimValidationFailed('unexpected "sub" claim value',"sub","check_failed")}if(Ie&&!checkAudiencePresence(Ee.aud,typeof Ie==="string"?[Ie]:Ie)){throw new he.JWTClaimValidationFailed('unexpected "aud" claim value',"aud","check_failed")}let Be;switch(typeof Ae.clockTolerance){case"string":Be=(0,me.default)(Ae.clockTolerance);break;case"number":Be=Ae.clockTolerance;break;case"undefined":Be=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:ke}=Ae;const Oe=(0,ye.default)(ke||new Date);if((Ee.iat!==undefined||Se)&&typeof Ee.iat!=="number"){throw new he.JWTClaimValidationFailed('"iat" claim must be a number',"iat","invalid")}if(Ee.nbf!==undefined){if(typeof Ee.nbf!=="number"){throw new he.JWTClaimValidationFailed('"nbf" claim must be a number',"nbf","invalid")}if(Ee.nbf>Oe+Be){throw new he.JWTClaimValidationFailed('"nbf" claim timestamp check failed',"nbf","check_failed")}}if(Ee.exp!==undefined){if(typeof Ee.exp!=="number"){throw new he.JWTClaimValidationFailed('"exp" claim must be a number',"exp","invalid")}if(Ee.exp<=Oe-Be){throw new he.JWTExpired('"exp" claim timestamp check failed',"exp","check_failed")}}if(Se){const R=Oe-Ee.iat;const pe=typeof Se==="number"?Se:(0,me.default)(Se);if(R-Be>pe){throw new he.JWTExpired('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed")}if(R<0-Be){throw new he.JWTClaimValidationFailed('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}}return Ee}},58739:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=60;const he=Ae*60;const ge=he*24;const ye=ge*7;const me=ge*365.25;const ve=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;pe["default"]=R=>{const pe=ve.exec(R);if(!pe){throw new TypeError("Invalid time period format")}const be=parseFloat(pe[1]);const Ee=pe[2].toLowerCase();switch(Ee){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(be);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(be*Ae);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(be*he);case"day":case"days":case"d":return Math.round(be*ge);case"week":case"weeks":case"w":return Math.round(be*ye);default:return Math.round(be*me)}}},99125:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const validateAlgorithms=(R,pe)=>{if(pe!==undefined&&(!Array.isArray(pe)||pe.some((R=>typeof R!=="string")))){throw new TypeError(`"${R}" option must be an array of strings`)}if(!pe){return undefined}return new Set(pe)};pe["default"]=validateAlgorithms},52874:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);function validateCrit(R,pe,Ae,ge,ye){if(ye.crit!==undefined&&ge.crit===undefined){throw new R('"crit" (Critical) Header Parameter MUST be integrity protected')}if(!ge||ge.crit===undefined){return new Set}if(!Array.isArray(ge.crit)||ge.crit.length===0||ge.crit.some((R=>typeof R!=="string"||R.length===0))){throw new R('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present')}let me;if(Ae!==undefined){me=new Map([...Object.entries(Ae),...pe.entries()])}else{me=pe}for(const pe of ge.crit){if(!me.has(pe)){throw new he.JOSENotSupported(`Extension Header Parameter "${pe}" is not recognized`)}if(ye[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" is missing`)}else if(me.get(pe)&&ge[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" MUST be integrity protected`)}}return new Set(ge.crit)}pe["default"]=validateCrit},1980:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(14300);const ge=Ae(6113);const ye=Ae(36454);const me=Ae(55925);const ve=Ae(8405);const be=Ae(87347);const Ee=Ae(38547);const Ce=Ae(3401);const we=Ae(33447);const _e=Ae(73923);function checkKeySize(R,pe){if(R.symmetricKeySize<<3!==parseInt(pe.slice(1,4),10)){throw new TypeError(`Invalid key size for alg: ${pe}`)}}function ensureKeyObject(R,pe,Ae){if((0,Ee.default)(R)){return R}if(R instanceof Uint8Array){return(0,ge.createSecretKey)(R)}if((0,ve.isCryptoKey)(R)){(0,be.checkEncCryptoKey)(R,pe,Ae);return ge.KeyObject.from(R)}throw new TypeError((0,Ce.default)(R,..._e.types,"Uint8Array"))}const wrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,we.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"wrapKey");checkKeySize(Ee,R);const Ce=(0,ge.createCipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(Ce.update(Ae),Ce.final())};pe.wrap=wrap;const unwrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,we.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"unwrapKey");checkKeySize(Ee,R);const Ce=(0,ge.createDecipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(Ce.update(Ae),Ce.final())};pe.unwrap=unwrap},20415:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromX509=pe.fromSPKI=pe.fromPKCS8=pe.toPKCS8=pe.toSPKI=void 0;const he=Ae(6113);const ge=Ae(14300);const ye=Ae(8405);const me=Ae(38547);const ve=Ae(3401);const be=Ae(73923);const genericExport=(R,pe,Ae)=>{let ge;if((0,ye.isCryptoKey)(Ae)){if(!Ae.extractable){throw new TypeError("CryptoKey is not extractable")}ge=he.KeyObject.from(Ae)}else if((0,me.default)(Ae)){ge=Ae}else{throw new TypeError((0,ve.default)(Ae,...be.types))}if(ge.type!==R){throw new TypeError(`key is not a ${R} key`)}return ge.export({format:"pem",type:pe})};const toSPKI=R=>genericExport("public","spki",R);pe.toSPKI=toSPKI;const toPKCS8=R=>genericExport("private","pkcs8",R);pe.toPKCS8=toPKCS8;const fromPKCS8=R=>(0,he.createPrivateKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,""),"base64"),type:"pkcs8",format:"der"});pe.fromPKCS8=fromPKCS8;const fromSPKI=R=>(0,he.createPublicKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,""),"base64"),type:"spki",format:"der"});pe.fromSPKI=fromSPKI;const fromX509=R=>(0,he.createPublicKey)({key:R,type:"spki",format:"pem"});pe.fromX509=fromX509},85928:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=2;const he=48;class Asn1SequenceDecoder{constructor(R){if(R[0]!==he){throw new TypeError}this.buffer=R;this.offset=1;const pe=this.decodeLength();if(pe!==R.length-this.offset){throw new TypeError}}decodeLength(){let R=this.buffer[this.offset++];if(R&128){const pe=R&~128;R=0;for(let Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(14300);const ge=Ae(36454);const ye=2;const me=3;const ve=4;const be=48;const Ee=he.Buffer.from([0]);const Ce=he.Buffer.from([ye]);const we=he.Buffer.from([me]);const _e=he.Buffer.from([be]);const Ie=he.Buffer.from([ve]);const encodeLength=R=>{if(R<128)return he.Buffer.from([R]);const pe=he.Buffer.alloc(5);pe.writeUInt32BE(R,1);let Ae=1;while(pe[Ae]===0)Ae++;pe[Ae-1]=128|5-Ae;return pe.slice(Ae-1)};const Se=new Map([["P-256",he.Buffer.from("06 08 2A 86 48 CE 3D 03 01 07".replace(/ /g,""),"hex")],["secp256k1",he.Buffer.from("06 05 2B 81 04 00 0A".replace(/ /g,""),"hex")],["P-384",he.Buffer.from("06 05 2B 81 04 00 22".replace(/ /g,""),"hex")],["P-521",he.Buffer.from("06 05 2B 81 04 00 23".replace(/ /g,""),"hex")],["ecPublicKey",he.Buffer.from("06 07 2A 86 48 CE 3D 02 01".replace(/ /g,""),"hex")],["X25519",he.Buffer.from("06 03 2B 65 6E".replace(/ /g,""),"hex")],["X448",he.Buffer.from("06 03 2B 65 6F".replace(/ /g,""),"hex")],["Ed25519",he.Buffer.from("06 03 2B 65 70".replace(/ /g,""),"hex")],["Ed448",he.Buffer.from("06 03 2B 65 71".replace(/ /g,""),"hex")]]);class DumbAsn1Encoder{constructor(){this.length=0;this.elements=[]}oidFor(R){const pe=Se.get(R);if(!pe){throw new ge.JOSENotSupported("Invalid or unsupported OID")}this.elements.push(pe);this.length+=pe.length}zero(){this.elements.push(Ce,he.Buffer.from([1]),Ee);this.length+=3}one(){this.elements.push(Ce,he.Buffer.from([1]),he.Buffer.from([1]));this.length+=3}unsignedInteger(R){if(R[0]&128){const pe=encodeLength(R.length+1);this.elements.push(Ce,pe,Ee,R);this.length+=2+pe.length+R.length}else{let pe=0;while(R[pe]===0&&(R[pe+1]&128)===0)pe++;const Ae=encodeLength(R.length-pe);this.elements.push(Ce,encodeLength(R.length-pe),R.slice(pe));this.length+=1+Ae.length+R.length-pe}}octStr(R){const pe=encodeLength(R.length);this.elements.push(Ie,encodeLength(R.length),R);this.length+=1+pe.length+R.length}bitStr(R){const pe=encodeLength(R.length+1);this.elements.push(we,encodeLength(R.length+1),Ee,R);this.length+=1+pe.length+R.length+1}add(R){this.elements.push(R);this.length+=R.length}end(R=_e){const pe=encodeLength(this.length);return he.Buffer.concat([R,pe,...this.elements],1+pe.length+this.length)}}pe["default"]=DumbAsn1Encoder},60589:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=pe.encodeBase64=pe.decodeBase64=void 0;const he=Ae(14300);const ge=Ae(55925);let ye;function normalize(R){let pe=R;if(pe instanceof Uint8Array){pe=ge.decoder.decode(pe)}return pe}if(he.Buffer.isEncoding("base64url")){pe.encode=ye=R=>he.Buffer.from(R).toString("base64url")}else{pe.encode=ye=R=>he.Buffer.from(R).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}const decodeBase64=R=>he.Buffer.from(R,"base64");pe.decodeBase64=decodeBase64;const encodeBase64=R=>he.Buffer.from(R).toString("base64");pe.encodeBase64=encodeBase64;const decode=R=>he.Buffer.from(normalize(R),"base64");pe.decode=decode},93726:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(55925);function cbcTag(R,pe,Ae,ye,me,ve){const be=(0,ge.concat)(R,pe,Ae,(0,ge.uint64be)(R.length<<3));const Ee=(0,he.createHmac)(`sha${ye}`,me);Ee.update(be);return Ee.digest().slice(0,ve>>3)}pe["default"]=cbcTag},45089:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);const ge=Ae(38547);const checkCekLength=(R,pe)=>{let Ae;switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new he.JOSENotSupported(`Content Encryption Algorithm ${R} is not supported either by JOSE or your javascript runtime`)}if(pe instanceof Uint8Array){const R=pe.byteLength<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}if((0,ge.default)(pe)&&pe.type==="secret"){const R=pe.symmetricKeySize<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}throw new TypeError("Invalid Content Encryption Key type")};pe["default"]=checkCekLength},87980:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.setModulusLength=pe.weakMap=void 0;pe.weakMap=new WeakMap;const getLength=(R,pe)=>{let Ae=R.readUInt8(1);if((Ae&128)===0){if(pe===0){return Ae}return getLength(R.subarray(2+Ae),pe-1)}const he=Ae&127;Ae=0;for(let pe=0;pe{const Ae=R.readUInt8(1);if((Ae&128)===0){return getLength(R.subarray(2),pe)}const he=Ae&127;return getLength(R.subarray(2+he),pe)};const getModulusLength=R=>{var Ae,he;if(pe.weakMap.has(R)){return pe.weakMap.get(R)}const ge=(he=(Ae=R.asymmetricKeyDetails)===null||Ae===void 0?void 0:Ae.modulusLength)!==null&&he!==void 0?he:getLengthOfSeqIndex(R.export({format:"der",type:"pkcs1"}),R.type==="private"?1:0)-1<<3;pe.weakMap.set(R,ge);return ge};const setModulusLength=(R,Ae)=>{pe.weakMap.set(R,Ae)};pe.setModulusLength=setModulusLength;pe["default"]=(R,pe)=>{if(getModulusLength(R)<2048){throw new TypeError(`${pe} requires key modulusLength to be 2048 bits or larger`)}}},33447:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);let ge;pe["default"]=R=>{ge||(ge=new Set((0,he.getCiphers)()));return ge.has(R)}},78190:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(50681);const ye=Ae(45089);const me=Ae(55925);const ve=Ae(36454);const be=Ae(56768);const Ee=Ae(93726);const Ce=Ae(8405);const we=Ae(87347);const _e=Ae(38547);const Ie=Ae(3401);const Se=Ae(33447);const Be=Ae(73923);function cbcDecrypt(R,pe,Ae,ge,ye,Ce){const we=parseInt(R.slice(1,4),10);if((0,_e.default)(pe)){pe=pe.export()}const Ie=pe.subarray(we>>3);const Be=pe.subarray(0,we>>3);const ke=parseInt(R.slice(-3),10);const Oe=`aes-${we}-cbc`;if(!(0,Se.default)(Oe)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Re=(0,Ee.default)(Ce,ge,Ae,ke,Be,we);let Qe;try{Qe=(0,be.default)(ye,Re)}catch{}if(!Qe){throw new ve.JWEDecryptionFailed}let xe;try{const R=(0,he.createDecipheriv)(Oe,Ie,ge);xe=(0,me.concat)(R.update(Ae),R.final())}catch{}if(!xe){throw new ve.JWEDecryptionFailed}return xe}function gcmDecrypt(R,pe,Ae,ge,ye,me){const be=parseInt(R.slice(1,4),10);const Ee=`aes-${be}-gcm`;if(!(0,Se.default)(Ee)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}try{const R=(0,he.createDecipheriv)(Ee,pe,ge,{authTagLength:16});R.setAuthTag(ye);if(me.byteLength){R.setAAD(me,{plaintextLength:Ae.length})}const ve=R.update(Ae);R.final();return ve}catch{throw new ve.JWEDecryptionFailed}}const decrypt=(R,pe,Ae,me,be,Ee)=>{let Se;if((0,Ce.isCryptoKey)(pe)){(0,we.checkEncCryptoKey)(pe,R,"decrypt");Se=he.KeyObject.from(pe)}else if(pe instanceof Uint8Array||(0,_e.default)(pe)){Se=pe}else{throw new TypeError((0,Ie.default)(pe,...Be.types,"Uint8Array"))}(0,ye.default)(R,Se);(0,ge.default)(R,me);switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcDecrypt(R,Se,Ae,me,be,Ee);case"A128GCM":case"A192GCM":case"A256GCM":return gcmDecrypt(R,Se,Ae,me,be,Ee);default:throw new ve.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=decrypt},46639:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const digest=(R,pe)=>(0,he.createHash)(R).update(pe).digest();pe["default"]=digest},28727:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);function dsaDigest(R){switch(R){case"PS256":case"RS256":case"ES256":case"ES256K":return"sha256";case"PS384":case"RS384":case"ES384":return"sha384";case"PS512":case"RS512":case"ES512":return"sha512";case"EdDSA":return undefined;default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=dsaDigest},77261:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ecdhAllowed=pe.generateEpk=pe.deriveKey=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=Ae(76880);const me=Ae(55925);const ve=Ae(36454);const be=Ae(8405);const Ee=Ae(87347);const Ce=Ae(38547);const we=Ae(3401);const _e=Ae(73923);const Ie=(0,ge.promisify)(he.generateKeyPair);async function deriveKey(R,pe,Ae,ge,ye=new Uint8Array(0),ve=new Uint8Array(0)){let Ie;if((0,be.isCryptoKey)(R)){(0,Ee.checkEncCryptoKey)(R,"ECDH");Ie=he.KeyObject.from(R)}else if((0,Ce.default)(R)){Ie=R}else{throw new TypeError((0,we.default)(R,..._e.types))}let Se;if((0,be.isCryptoKey)(pe)){(0,Ee.checkEncCryptoKey)(pe,"ECDH","deriveBits");Se=he.KeyObject.from(pe)}else if((0,Ce.default)(pe)){Se=pe}else{throw new TypeError((0,we.default)(pe,..._e.types))}const Be=(0,me.concat)((0,me.lengthAndInput)(me.encoder.encode(Ae)),(0,me.lengthAndInput)(ye),(0,me.lengthAndInput)(ve),(0,me.uint32be)(ge));const ke=(0,he.diffieHellman)({privateKey:Se,publicKey:Ie});return(0,me.concatKdf)(ke,ge,Be)}pe.deriveKey=deriveKey;async function generateEpk(R){let pe;if((0,be.isCryptoKey)(R)){pe=he.KeyObject.from(R)}else if((0,Ce.default)(R)){pe=R}else{throw new TypeError((0,we.default)(R,..._e.types))}switch(pe.asymmetricKeyType){case"x25519":return Ie("x25519");case"x448":{return Ie("x448")}case"ec":{const R=(0,ye.default)(pe);return Ie("ec",{namedCurve:R})}default:throw new ve.JOSENotSupported("Invalid or unsupported EPK")}}pe.generateEpk=generateEpk;const ecdhAllowed=R=>["P-256","P-384","P-521","X25519","X448"].includes((0,ye.default)(R));pe.ecdhAllowed=ecdhAllowed},96115:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(50681);const ye=Ae(45089);const me=Ae(55925);const ve=Ae(93726);const be=Ae(8405);const Ee=Ae(87347);const Ce=Ae(38547);const we=Ae(3401);const _e=Ae(36454);const Ie=Ae(33447);const Se=Ae(73923);function cbcEncrypt(R,pe,Ae,ge,ye){const be=parseInt(R.slice(1,4),10);if((0,Ce.default)(Ae)){Ae=Ae.export()}const Ee=Ae.subarray(be>>3);const we=Ae.subarray(0,be>>3);const Se=`aes-${be}-cbc`;if(!(0,Ie.default)(Se)){throw new _e.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Be=(0,he.createCipheriv)(Se,Ee,ge);const ke=(0,me.concat)(Be.update(pe),Be.final());const Oe=parseInt(R.slice(-3),10);const Re=(0,ve.default)(ye,ge,ke,Oe,we,be);return{ciphertext:ke,tag:Re}}function gcmEncrypt(R,pe,Ae,ge,ye){const me=parseInt(R.slice(1,4),10);const ve=`aes-${me}-gcm`;if(!(0,Ie.default)(ve)){throw new _e.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const be=(0,he.createCipheriv)(ve,Ae,ge,{authTagLength:16});if(ye.byteLength){be.setAAD(ye,{plaintextLength:pe.length})}const Ee=be.update(pe);be.final();const Ce=be.getAuthTag();return{ciphertext:Ee,tag:Ce}}const encrypt=(R,pe,Ae,me,ve)=>{let Ie;if((0,be.isCryptoKey)(Ae)){(0,Ee.checkEncCryptoKey)(Ae,R,"encrypt");Ie=he.KeyObject.from(Ae)}else if(Ae instanceof Uint8Array||(0,Ce.default)(Ae)){Ie=Ae}else{throw new TypeError((0,we.default)(Ae,...Se.types,"Uint8Array"))}(0,ye.default)(R,Ie);(0,ge.default)(R,me);switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcEncrypt(R,pe,Ie,me,ve);case"A128GCM":case"A192GCM":case"A256GCM":return gcmEncrypt(R,pe,Ie,me,ve);default:throw new _e.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=encrypt},90898:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(13685);const ge=Ae(95687);const ye=Ae(82361);const me=Ae(36454);const ve=Ae(55925);const fetchJwks=async(R,pe,Ae)=>{let be;switch(R.protocol){case"https:":be=ge.get;break;case"http:":be=he.get;break;default:throw new TypeError("Unsupported URL protocol.")}const{agent:Ee,headers:Ce}=Ae;const we=be(R.href,{agent:Ee,timeout:pe,headers:Ce});const[_e]=await Promise.race([(0,ye.once)(we,"response"),(0,ye.once)(we,"timeout")]);if(!_e){we.destroy();throw new me.JWKSTimeout}if(_e.statusCode!==200){throw new me.JOSEError("Expected 200 OK from the JSON Web Key Set HTTP response")}const Ie=[];for await(const R of _e){Ie.push(R)}try{return JSON.parse(ve.decoder.decode((0,ve.concat)(...Ie)))}catch{throw new me.JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON")}};pe["default"]=fetchJwks},99390:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwkImport=pe.jwkExport=pe.rsaPssParams=pe.oneShotCallback=void 0;const[Ae,he]=process.versions.node.split(".").map((R=>parseInt(R,10)));pe.oneShotCallback=Ae>=16||Ae===15&&he>=13;pe.rsaPssParams=!("electron"in process.versions)&&(Ae>=17||Ae===16&&he>=9);pe.jwkExport=Ae>=16||Ae===15&&he>=9;pe.jwkImport=Ae>=16||Ae===15&&he>=12},87757:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=pe.generateSecret=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=Ae(83738);const me=Ae(87980);const ve=Ae(36454);const be=(0,ge.promisify)(he.generateKeyPair);async function generateSecret(R,pe){let Ae;switch(R){case"HS256":case"HS384":case"HS512":case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128KW":case"A192KW":case"A256KW":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new ve.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return(0,he.createSecretKey)((0,ye.default)(new Uint8Array(Ae>>3)))}pe.generateSecret=generateSecret;async function generateKeyPair(R,pe){var Ae,he;switch(R){case"RS256":case"RS384":case"RS512":case"PS256":case"PS384":case"PS512":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":case"RSA1_5":{const R=(Ae=pe===null||pe===void 0?void 0:pe.modulusLength)!==null&&Ae!==void 0?Ae:2048;if(typeof R!=="number"||R<2048){throw new ve.JOSENotSupported("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used")}const he=await be("rsa",{modulusLength:R,publicExponent:65537});(0,me.setModulusLength)(he.privateKey,R);(0,me.setModulusLength)(he.publicKey,R);return he}case"ES256":return be("ec",{namedCurve:"P-256"});case"ES256K":return be("ec",{namedCurve:"secp256k1"});case"ES384":return be("ec",{namedCurve:"P-384"});case"ES512":return be("ec",{namedCurve:"P-521"});case"EdDSA":{switch(pe===null||pe===void 0?void 0:pe.crv){case undefined:case"Ed25519":return be("ed25519");case"Ed448":return be("ed448");default:throw new ve.JOSENotSupported("Invalid or unsupported crv option provided, supported values are Ed25519 and Ed448")}}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":const R=(he=pe===null||pe===void 0?void 0:pe.crv)!==null&&he!==void 0?he:"P-256";switch(R){case undefined:case"P-256":case"P-384":case"P-521":return be("ec",{namedCurve:R});case"X25519":return be("x25519");case"X448":return be("x448");default:throw new ve.JOSENotSupported("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}default:throw new ve.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}}pe.generateKeyPair=generateKeyPair},76880:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.setCurve=pe.weakMap=void 0;const he=Ae(14300);const ge=Ae(6113);const ye=Ae(36454);const me=Ae(8405);const ve=Ae(38547);const be=Ae(3401);const Ee=Ae(73923);const Ce=he.Buffer.from([42,134,72,206,61,3,1,7]);const we=he.Buffer.from([43,129,4,0,34]);const _e=he.Buffer.from([43,129,4,0,35]);const Ie=he.Buffer.from([43,129,4,0,10]);pe.weakMap=new WeakMap;const namedCurveToJOSE=R=>{switch(R){case"prime256v1":return"P-256";case"secp384r1":return"P-384";case"secp521r1":return"P-521";case"secp256k1":return"secp256k1";default:throw new ye.JOSENotSupported("Unsupported key curve for this operation")}};const getNamedCurve=(R,Ae)=>{var he;let Se;if((0,me.isCryptoKey)(R)){Se=ge.KeyObject.from(R)}else if((0,ve.default)(R)){Se=R}else{throw new TypeError((0,be.default)(R,...Ee.types))}if(Se.type==="secret"){throw new TypeError('only "private" or "public" type keys can be used for this operation')}switch(Se.asymmetricKeyType){case"ed25519":case"ed448":return`Ed${Se.asymmetricKeyType.slice(2)}`;case"x25519":case"x448":return`X${Se.asymmetricKeyType.slice(1)}`;case"ec":{if(pe.weakMap.has(Se)){return pe.weakMap.get(Se)}let R=(he=Se.asymmetricKeyDetails)===null||he===void 0?void 0:he.namedCurve;if(!R&&Se.type==="private"){R=getNamedCurve((0,ge.createPublicKey)(Se),true)}else if(!R){const pe=Se.export({format:"der",type:"spki"});const Ae=pe[1]<128?14:15;const he=pe[Ae];const ge=pe.slice(Ae+1,Ae+1+he);if(ge.equals(Ce)){R="prime256v1"}else if(ge.equals(we)){R="secp384r1"}else if(ge.equals(_e)){R="secp521r1"}else if(ge.equals(Ie)){R="secp256k1"}else{throw new ye.JOSENotSupported("Unsupported key curve for this operation")}}if(Ae)return R;const me=namedCurveToJOSE(R);pe.weakMap.set(Se,me);return me}default:throw new TypeError("Invalid asymmetric key type for this operation")}};function setCurve(R,Ae){pe.weakMap.set(R,Ae)}pe.setCurve=setCurve;pe["default"]=getNamedCurve},94398:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(8405);const ye=Ae(87347);const me=Ae(3401);const ve=Ae(73923);function getSignVerifyKey(R,pe,Ae){if(pe instanceof Uint8Array){if(!R.startsWith("HS")){throw new TypeError((0,me.default)(pe,...ve.types))}return(0,he.createSecretKey)(pe)}if(pe instanceof he.KeyObject){return pe}if((0,ge.isCryptoKey)(pe)){(0,ye.checkSigCryptoKey)(pe,R,Ae);return he.KeyObject.from(pe)}throw new TypeError((0,me.default)(pe,...ve.types,"Uint8Array"))}pe["default"]=getSignVerifyKey},86559:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);function hmacDigest(R){switch(R){case"HS256":return"sha256";case"HS384":return"sha384";case"HS512":return"sha512";default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=hmacDigest},73923:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.types=void 0;const he=Ae(8405);const ge=Ae(38547);pe["default"]=R=>(0,ge.default)(R)||(0,he.isCryptoKey)(R);const ye=["KeyObject"];pe.types=ye;if(globalThis.CryptoKey||(he.default===null||he.default===void 0?void 0:he.default.CryptoKey)){ye.push("CryptoKey")}},38547:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);pe["default"]=ge.types.isKeyObject?R=>ge.types.isKeyObject(R):R=>R!=null&&R instanceof he.KeyObject},41960:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(14300);const ge=Ae(6113);const ye=Ae(60589);const me=Ae(36454);const ve=Ae(76880);const be=Ae(87980);const Ee=Ae(34512);const Ce=Ae(99390);const parse=R=>{if(Ce.jwkImport&&R.kty!=="oct"){return R.d?(0,ge.createPrivateKey)({format:"jwk",key:R}):(0,ge.createPublicKey)({format:"jwk",key:R})}switch(R.kty){case"oct":{return(0,ge.createSecretKey)((0,ye.decode)(R.k))}case"RSA":{const pe=new Ee.default;const Ae=R.d!==undefined;const ye=he.Buffer.from(R.n,"base64");const me=he.Buffer.from(R.e,"base64");if(Ae){pe.zero();pe.unsignedInteger(ye);pe.unsignedInteger(me);pe.unsignedInteger(he.Buffer.from(R.d,"base64"));pe.unsignedInteger(he.Buffer.from(R.p,"base64"));pe.unsignedInteger(he.Buffer.from(R.q,"base64"));pe.unsignedInteger(he.Buffer.from(R.dp,"base64"));pe.unsignedInteger(he.Buffer.from(R.dq,"base64"));pe.unsignedInteger(he.Buffer.from(R.qi,"base64"))}else{pe.unsignedInteger(ye);pe.unsignedInteger(me)}const ve=pe.end();const Ce={key:ve,format:"der",type:"pkcs1"};const we=Ae?(0,ge.createPrivateKey)(Ce):(0,ge.createPublicKey)(Ce);(0,be.setModulusLength)(we,ye.length<<3);return we}case"EC":{const pe=new Ee.default;const Ae=R.d!==undefined;const ye=he.Buffer.concat([he.Buffer.alloc(1,4),he.Buffer.from(R.x,"base64"),he.Buffer.from(R.y,"base64")]);if(Ae){pe.zero();const Ae=new Ee.default;Ae.oidFor("ecPublicKey");Ae.oidFor(R.crv);pe.add(Ae.end());const me=new Ee.default;me.one();me.octStr(he.Buffer.from(R.d,"base64"));const be=new Ee.default;be.bitStr(ye);const Ce=be.end(he.Buffer.from([161]));me.add(Ce);const we=me.end();const _e=new Ee.default;_e.add(we);const Ie=_e.end(he.Buffer.from([4]));pe.add(Ie);const Se=pe.end();const Be=(0,ge.createPrivateKey)({key:Se,format:"der",type:"pkcs8"});(0,ve.setCurve)(Be,R.crv);return Be}const me=new Ee.default;me.oidFor("ecPublicKey");me.oidFor(R.crv);pe.add(me.end());pe.bitStr(ye);const be=pe.end();const Ce=(0,ge.createPublicKey)({key:be,format:"der",type:"spki"});(0,ve.setCurve)(Ce,R.crv);return Ce}case"OKP":{const pe=new Ee.default;const Ae=R.d!==undefined;if(Ae){pe.zero();const Ae=new Ee.default;Ae.oidFor(R.crv);pe.add(Ae.end());const ye=new Ee.default;ye.octStr(he.Buffer.from(R.d,"base64"));const me=ye.end(he.Buffer.from([4]));pe.add(me);const ve=pe.end();return(0,ge.createPrivateKey)({key:ve,format:"der",type:"pkcs8"})}const ye=new Ee.default;ye.oidFor(R.crv);pe.add(ye.end());pe.bitStr(he.Buffer.from(R.x,"base64"));const me=pe.end();return(0,ge.createPublicKey)({key:me,format:"der",type:"spki"})}default:throw new me.JOSENotSupported('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}};pe["default"]=parse},74948:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(60589);const ye=Ae(85928);const me=Ae(36454);const ve=Ae(76880);const be=Ae(8405);const Ee=Ae(38547);const Ce=Ae(3401);const we=Ae(73923);const _e=Ae(99390);const keyToJWK=R=>{let pe;if((0,be.isCryptoKey)(R)){if(!R.extractable){throw new TypeError("CryptoKey is not extractable")}pe=he.KeyObject.from(R)}else if((0,Ee.default)(R)){pe=R}else if(R instanceof Uint8Array){return{kty:"oct",k:(0,ge.encode)(R)}}else{throw new TypeError((0,Ce.default)(R,...we.types,"Uint8Array"))}if(_e.jwkExport){if(pe.type!=="secret"&&!["rsa","ec","ed25519","x25519","ed448","x448"].includes(pe.asymmetricKeyType)){throw new me.JOSENotSupported("Unsupported key asymmetricKeyType")}return pe.export({format:"jwk"})}switch(pe.type){case"secret":return{kty:"oct",k:(0,ge.encode)(pe.export())};case"private":case"public":{switch(pe.asymmetricKeyType){case"rsa":{const R=pe.export({format:"der",type:"pkcs1"});const Ae=new ye.default(R);if(pe.type==="private"){Ae.unsignedInteger()}const he=(0,ge.encode)(Ae.unsignedInteger());const me=(0,ge.encode)(Ae.unsignedInteger());let ve;if(pe.type==="private"){ve={d:(0,ge.encode)(Ae.unsignedInteger()),p:(0,ge.encode)(Ae.unsignedInteger()),q:(0,ge.encode)(Ae.unsignedInteger()),dp:(0,ge.encode)(Ae.unsignedInteger()),dq:(0,ge.encode)(Ae.unsignedInteger()),qi:(0,ge.encode)(Ae.unsignedInteger())}}Ae.end();return{kty:"RSA",n:he,e:me,...ve}}case"ec":{const R=(0,ve.default)(pe);let Ae;let ye;let be;switch(R){case"secp256k1":Ae=64;ye=31+2;be=-1;break;case"P-256":Ae=64;ye=34+2;be=-1;break;case"P-384":Ae=96;ye=33+2;be=-3;break;case"P-521":Ae=132;ye=33+2;be=-3;break;default:throw new me.JOSENotSupported("Unsupported curve")}if(pe.type==="public"){const he=pe.export({type:"spki",format:"der"});return{kty:"EC",crv:R,x:(0,ge.encode)(he.subarray(-Ae,-Ae/2)),y:(0,ge.encode)(he.subarray(-Ae/2))}}const Ee=pe.export({type:"pkcs8",format:"der"});if(Ee.length<100){ye+=be}return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ee.subarray(ye,ye+Ae/2))}}case"ed25519":case"x25519":{const R=(0,ve.default)(pe);if(pe.type==="public"){const Ae=pe.export({type:"spki",format:"der"});return{kty:"OKP",crv:R,x:(0,ge.encode)(Ae.subarray(-32))}}const Ae=pe.export({type:"pkcs8",format:"der"});return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ae.subarray(-32))}}case"ed448":case"x448":{const R=(0,ve.default)(pe);if(pe.type==="public"){const Ae=pe.export({type:"spki",format:"der"});return{kty:"OKP",crv:R,x:(0,ge.encode)(Ae.subarray(R==="Ed448"?-57:-56))}}const Ae=pe.export({type:"pkcs8",format:"der"});return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ae.subarray(R==="Ed448"?-57:-56))}}default:throw new me.JOSENotSupported("Unsupported key asymmetricKeyType")}}default:throw new me.JOSENotSupported("Unsupported key type")}};pe["default"]=keyToJWK},15733:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(76880);const ye=Ae(36454);const me=Ae(87980);const ve=Ae(99390);const be={padding:he.constants.RSA_PKCS1_PSS_PADDING,saltLength:he.constants.RSA_PSS_SALTLEN_DIGEST};const Ee=new Map([["ES256","P-256"],["ES256K","secp256k1"],["ES384","P-384"],["ES512","P-521"]]);function keyForCrypto(R,pe){switch(R){case"EdDSA":if(!["ed25519","ed448"].includes(pe.asymmetricKeyType)){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ed25519 or ed448")}return pe;case"RS256":case"RS384":case"RS512":if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,me.default)(pe,R);return pe;case ve.rsaPssParams&&"PS256":case ve.rsaPssParams&&"PS384":case ve.rsaPssParams&&"PS512":if(pe.asymmetricKeyType==="rsa-pss"){const{hashAlgorithm:Ae,mgf1HashAlgorithm:he,saltLength:ge}=pe.asymmetricKeyDetails;const ye=parseInt(R.slice(-3),10);if(Ae!==undefined&&(Ae!==`sha${ye}`||he!==Ae)){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${R}`)}if(ge!==undefined&&ge>ye>>3){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${R}`)}}else if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa or rsa-pss")}(0,me.default)(pe,R);return{key:pe,...be};case!ve.rsaPssParams&&"PS256":case!ve.rsaPssParams&&"PS384":case!ve.rsaPssParams&&"PS512":if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,me.default)(pe,R);return{key:pe,...be};case"ES256":case"ES256K":case"ES384":case"ES512":{if(pe.asymmetricKeyType!=="ec"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ec")}const Ae=(0,ge.default)(pe);const he=Ee.get(R);if(Ae!==he){throw new TypeError(`Invalid key curve for the algorithm, its curve must be ${he}, got ${Ae}`)}return{dsaEncoding:"ieee-p1363",key:pe}}default:throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=keyForCrypto},15845:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(73837);const ge=Ae(6113);const ye=Ae(83738);const me=Ae(55925);const ve=Ae(60589);const be=Ae(1980);const Ee=Ae(84662);const Ce=Ae(8405);const we=Ae(87347);const _e=Ae(38547);const Ie=Ae(3401);const Se=Ae(73923);const Be=(0,he.promisify)(ge.pbkdf2);function getPassword(R,pe){if((0,_e.default)(R)){return R.export()}if(R instanceof Uint8Array){return R}if((0,Ce.isCryptoKey)(R)){(0,we.checkEncCryptoKey)(R,pe,"deriveBits","deriveKey");return ge.KeyObject.from(R).export()}throw new TypeError((0,Ie.default)(R,...Se.types,"Uint8Array"))}const encrypt=async(R,pe,Ae,he=2048,ge=(0,ye.default)(new Uint8Array(16)))=>{(0,Ee.default)(ge);const Ce=(0,me.p2s)(R,ge);const we=parseInt(R.slice(13,16),10)>>3;const _e=getPassword(pe,R);const Ie=await Be(_e,Ce,he,we,`sha${R.slice(8,11)}`);const Se=await(0,be.wrap)(R.slice(-6),Ie,Ae);return{encryptedKey:Se,p2c:he,p2s:(0,ve.encode)(ge)}};pe.encrypt=encrypt;const decrypt=async(R,pe,Ae,he,ge)=>{(0,Ee.default)(ge);const ye=(0,me.p2s)(R,ge);const ve=parseInt(R.slice(13,16),10)>>3;const Ce=getPassword(pe,R);const we=await Be(Ce,ye,he,ve,`sha${R.slice(8,11)}`);return(0,be.unwrap)(R.slice(-6),we,Ae)};pe.decrypt=decrypt},83738:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=Ae(6113);Object.defineProperty(pe,"default",{enumerable:true,get:function(){return he.randomFillSync}})},10079:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(6113);const ge=Ae(87980);const ye=Ae(8405);const me=Ae(87347);const ve=Ae(38547);const be=Ae(3401);const Ee=Ae(73923);const checkKey=(R,pe)=>{if(R.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,ge.default)(R,pe)};const resolvePadding=R=>{switch(R){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return he.constants.RSA_PKCS1_OAEP_PADDING;case"RSA1_5":return he.constants.RSA_PKCS1_PADDING;default:return undefined}};const resolveOaepHash=R=>{switch(R){case"RSA-OAEP":return"sha1";case"RSA-OAEP-256":return"sha256";case"RSA-OAEP-384":return"sha384";case"RSA-OAEP-512":return"sha512";default:return undefined}};function ensureKeyObject(R,pe,...Ae){if((0,ve.default)(R)){return R}if((0,ye.isCryptoKey)(R)){(0,me.checkEncCryptoKey)(R,pe,...Ae);return he.KeyObject.from(R)}throw new TypeError((0,be.default)(R,...Ee.types))}const encrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"wrapKey","encrypt");checkKey(me,R);return(0,he.publicEncrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.encrypt=encrypt;const decrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"unwrapKey","decrypt");checkKey(me,R);return(0,he.privateDecrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.decrypt=decrypt},28145:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]="node:crypto"},85513:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);const ye=Ae(28727);const me=Ae(86559);const ve=Ae(15733);const be=Ae(94398);let Ee;if(he.sign.length>3){Ee=(0,ge.promisify)(he.sign)}else{Ee=he.sign}const sign=async(R,pe,Ae)=>{const ge=(0,be.default)(R,pe,"sign");if(R.startsWith("HS")){const pe=he.createHmac((0,me.default)(R),ge);pe.update(Ae);return pe.digest()}return Ee((0,ye.default)(R),Ae,(0,ve.default)(R,ge))};pe["default"]=sign},56768:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=he.timingSafeEqual;pe["default"]=ge},34438:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);const ye=Ae(28727);const me=Ae(15733);const ve=Ae(85513);const be=Ae(94398);const Ee=Ae(99390);let Ce;if(he.verify.length>4&&Ee.oneShotCallback){Ce=(0,ge.promisify)(he.verify)}else{Ce=he.verify}const verify=async(R,pe,Ae,ge)=>{const Ee=(0,be.default)(R,pe,"verify");if(R.startsWith("HS")){const pe=await(0,ve.default)(R,Ee,ge);const ye=Ae;try{return he.timingSafeEqual(ye,pe)}catch{return false}}const we=(0,ye.default)(R);const _e=(0,me.default)(R,Ee);try{return await Ce(we,ge,_e,Ae)}catch{return false}};pe["default"]=verify},8405:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isCryptoKey=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=he.webcrypto;pe["default"]=ye;pe.isCryptoKey=ge.types.isCryptoKey?R=>ge.types.isCryptoKey(R):R=>false},52284:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.deflate=pe.inflate=void 0;const he=Ae(73837);const ge=Ae(59796);const ye=Ae(36454);const me=(0,he.promisify)(ge.inflateRaw);const ve=(0,he.promisify)(ge.deflateRaw);const inflate=R=>me(R,{maxOutputLength:25e4}).catch((()=>{throw new ye.JWEDecompressionFailed}));pe.inflate=inflate;const deflate=R=>ve(R);pe.deflate=deflate},52261:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=void 0;const he=Ae(60589);pe.encode=he.encode;pe.decode=he.decode},33514:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeJwt=void 0;const he=Ae(52261);const ge=Ae(55925);const ye=Ae(61394);const me=Ae(36454);function decodeJwt(R){if(typeof R!=="string")throw new me.JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");const{1:pe,length:Ae}=R.split(".");if(Ae===5)throw new me.JWTInvalid("Only JWTs using Compact JWS serialization can be decoded");if(Ae!==3)throw new me.JWTInvalid("Invalid JWT");if(!pe)throw new me.JWTInvalid("JWTs must contain a payload");let ve;try{ve=(0,he.decode)(pe)}catch{throw new me.JWTInvalid("Failed to base64url decode the payload")}let be;try{be=JSON.parse(ge.decoder.decode(ve))}catch{throw new me.JWTInvalid("Failed to parse the decoded payload as JSON")}if(!(0,ye.default)(be))throw new me.JWTInvalid("Invalid JWT Claims Set");return be}pe.decodeJwt=decodeJwt},93980:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeProtectedHeader=void 0;const he=Ae(52261);const ge=Ae(55925);const ye=Ae(61394);function decodeProtectedHeader(R){let pe;if(typeof R==="string"){const Ae=R.split(".");if(Ae.length===3||Ae.length===5){[pe]=Ae}}else if(typeof R==="object"&&R){if("protected"in R){pe=R.protected}else{throw new TypeError("Token does not contain a Protected Header")}}try{if(typeof pe!=="string"||!pe){throw new Error}const R=JSON.parse(ge.decoder.decode((0,he.decode)(pe)));if(!(0,ye.default)(R)){throw new Error}return R}catch{throw new TypeError("Invalid Token or Protected Header formatting")}}pe.decodeProtectedHeader=decodeProtectedHeader},36454:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.JWSSignatureVerificationFailed=pe.JWKSTimeout=pe.JWKSMultipleMatchingKeys=pe.JWKSNoMatchingKey=pe.JWKSInvalid=pe.JWKInvalid=pe.JWTInvalid=pe.JWSInvalid=pe.JWEInvalid=pe.JWEDecompressionFailed=pe.JWEDecryptionFailed=pe.JOSENotSupported=pe.JOSEAlgNotAllowed=pe.JWTExpired=pe.JWTClaimValidationFailed=pe.JOSEError=void 0;class JOSEError extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(R){var pe;super(R);this.code="ERR_JOSE_GENERIC";this.name=this.constructor.name;(pe=Error.captureStackTrace)===null||pe===void 0?void 0:pe.call(Error,this,this.constructor)}}pe.JOSEError=JOSEError;class JWTClaimValidationFailed extends JOSEError{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(R,pe="unspecified",Ae="unspecified"){super(R);this.code="ERR_JWT_CLAIM_VALIDATION_FAILED";this.claim=pe;this.reason=Ae}}pe.JWTClaimValidationFailed=JWTClaimValidationFailed;class JWTExpired extends JOSEError{static get code(){return"ERR_JWT_EXPIRED"}constructor(R,pe="unspecified",Ae="unspecified"){super(R);this.code="ERR_JWT_EXPIRED";this.claim=pe;this.reason=Ae}}pe.JWTExpired=JWTExpired;class JOSEAlgNotAllowed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}pe.JOSEAlgNotAllowed=JOSEAlgNotAllowed;class JOSENotSupported extends JOSEError{constructor(){super(...arguments);this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}pe.JOSENotSupported=JOSENotSupported;class JWEDecryptionFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_DECRYPTION_FAILED";this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}pe.JWEDecryptionFailed=JWEDecryptionFailed;class JWEDecompressionFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_DECOMPRESSION_FAILED";this.message="decompression operation failed"}static get code(){return"ERR_JWE_DECOMPRESSION_FAILED"}}pe.JWEDecompressionFailed=JWEDecompressionFailed;class JWEInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}pe.JWEInvalid=JWEInvalid;class JWSInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}pe.JWSInvalid=JWSInvalid;class JWTInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}pe.JWTInvalid=JWTInvalid;class JWKInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}pe.JWKInvalid=JWKInvalid;class JWKSInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}pe.JWKSInvalid=JWKSInvalid;class JWKSNoMatchingKey extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_NO_MATCHING_KEY";this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}pe.JWKSNoMatchingKey=JWKSNoMatchingKey;class JWKSMultipleMatchingKeys extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}pe.JWKSMultipleMatchingKeys=JWKSMultipleMatchingKeys;Symbol.asyncIterator;class JWKSTimeout extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_TIMEOUT";this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}pe.JWKSTimeout=JWKSTimeout;class JWSSignatureVerificationFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}pe.JWSSignatureVerificationFailed=JWSSignatureVerificationFailed},47650:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(28145);pe["default"]=he.default},25683:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEHeaderParameters=void 0;pe.IANACOSEHeaderParameters={0:{Name:"Reserved",Value:"0",Description:"",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},1:{Name:"A128GCM",Value:"1",Description:"AES-GCM mode w/ 128-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},2:{Name:"A192GCM",Value:"2",Description:"AES-GCM mode w/ 192-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},3:{Name:"A256GCM",Value:"3",Description:"AES-GCM mode w/ 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},4:{Name:"HMAC 256/64",Value:"4",Description:"HMAC w/ SHA-256 truncated to 64 bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},5:{Name:"HMAC 256/256",Value:"5",Description:"HMAC w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},6:{Name:"HMAC 384/384",Value:"6",Description:"HMAC w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},7:{Name:"HMAC 512/512",Value:"7",Description:"HMAC w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},10:{Name:"AES-CCM-16-64-128",Value:"10",Description:"AES-CCM mode 128-bit key, 64-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},11:{Name:"AES-CCM-16-64-256",Value:"11",Description:"AES-CCM mode 256-bit key, 64-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},12:{Name:"AES-CCM-64-64-128",Value:"12",Description:"AES-CCM mode 128-bit key, 64-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},13:{Name:"AES-CCM-64-64-256",Value:"13",Description:"AES-CCM mode 256-bit key, 64-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},14:{Name:"AES-MAC 128/64",Value:"14",Description:"AES-MAC 128-bit key, 64-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},15:{Name:"AES-MAC 256/64",Value:"15",Description:"AES-MAC 256-bit key, 64-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},24:{Name:"ChaCha20/Poly1305",Value:"24",Description:"ChaCha20/Poly1305 w/ 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},25:{Name:"AES-MAC 128/128",Value:"25",Description:"AES-MAC 128-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},26:{Name:"AES-MAC 256/128",Value:"26",Description:"AES-MAC 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},30:{Name:"AES-CCM-16-128-128",Value:"30",Description:"AES-CCM mode 128-bit key, 128-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},31:{Name:"AES-CCM-16-128-256",Value:"31",Description:"AES-CCM mode 256-bit key, 128-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},32:{Name:"AES-CCM-64-128-128",Value:"32",Description:"AES-CCM mode 128-bit key, 128-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},33:{Name:"AES-CCM-64-128-256",Value:"33",Description:"AES-CCM mode 256-bit key, 128-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},34:{Name:"IV-GENERATION",Value:"34",Description:"For doing IV generation for symmetric algorithms.",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"less than -65536":{Name:"Reserved for Private Use",Value:"less than -65536",Description:"",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"-65536":{Name:"Unassigned",Value:"-65536",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-65535":{Name:"RS1",Value:"-65535",Description:"RSASSA-PKCS1-v1_5 using SHA-1",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"Deprecated"},"-65534":{Name:"A128CTR",Value:"-65534",Description:"AES-CTR w/ 128-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65533":{Name:"A192CTR",Value:"-65533",Description:"AES-CTR w/ 192-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65532":{Name:"A256CTR",Value:"-65532",Description:"AES-CTR w/ 256-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65531":{Name:"A128CBC",Value:"-65531",Description:"AES-CBC w/ 128-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65530":{Name:"A192CBC",Value:"-65530",Description:"AES-CBC w/ 192-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65529":{Name:"A256CBC",Value:"-65529",Description:"AES-CBC w/ 256-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65528 to -261":{Name:"Unassigned",Value:"-65528 to -261",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-260":{Name:"WalnutDSA",Value:"-260",Description:"WalnutDSA signature",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9021][RFC9053",Recommended:"No"},"-259":{Name:"RS512",Value:"-259",Description:"RSASSA-PKCS1-v1_5 using SHA-512",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-258":{Name:"RS384",Value:"-258",Description:"RSASSA-PKCS1-v1_5 using SHA-384",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-257":{Name:"RS256",Value:"-257",Description:"RSASSA-PKCS1-v1_5 using SHA-256",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-256 to -48":{Name:"Unassigned",Value:"-256 to -48",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-47":{Name:"ES256K",Value:"-47",Description:"ECDSA using secp256k1 curve and SHA-256",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-46":{Name:"HSS-LMS",Value:"-46",Description:"HSS/LMS hash-based digital signature",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8778][RFC9053",Recommended:"Yes"},"-45":{Name:"SHAKE256",Value:"-45",Description:"SHAKE-256 512-bit Hash Value",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-44":{Name:"SHA-512",Value:"-44",Description:"SHA-2 512-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-43":{Name:"SHA-384",Value:"-43",Description:"SHA-2 384-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-42":{Name:"RSAES-OAEP w/ SHA-512",Value:"-42",Description:"RSAES-OAEP w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-41":{Name:"RSAES-OAEP w/ SHA-256",Value:"-41",Description:"RSAES-OAEP w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-40":{Name:"RSAES-OAEP w/ RFC 8017 default parameters",Value:"-40",Description:"RSAES-OAEP w/ SHA-1",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-39":{Name:"PS512",Value:"-39",Description:"RSASSA-PSS w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-38":{Name:"PS384",Value:"-38",Description:"RSASSA-PSS w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-37":{Name:"PS256",Value:"-37",Description:"RSASSA-PSS w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-36":{Name:"ES512",Value:"-36",Description:"ECDSA w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-35":{Name:"ES384",Value:"-35",Description:"ECDSA w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-34":{Name:"ECDH-SS + A256KW",Value:"-34",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-33":{Name:"ECDH-SS + A192KW",Value:"-33",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-32":{Name:"ECDH-SS + A128KW",Value:"-32",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-31":{Name:"ECDH-ES + A256KW",Value:"-31",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-30":{Name:"ECDH-ES + A192KW",Value:"-30",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-29":{Name:"ECDH-ES + A128KW",Value:"-29",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-28":{Name:"ECDH-SS + HKDF-512",Value:"-28",Description:"ECDH SS w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-27":{Name:"ECDH-SS + HKDF-256",Value:"-27",Description:"ECDH SS w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-26":{Name:"ECDH-ES + HKDF-512",Value:"-26",Description:"ECDH ES w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-25":{Name:"ECDH-ES + HKDF-256",Value:"-25",Description:"ECDH ES w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-24 to -19":{Name:"Unassigned",Value:"-24 to -19",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-18":{Name:"SHAKE128",Value:"-18",Description:"SHAKE-128 256-bit Hash Value",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-17":{Name:"SHA-512/256",Value:"-17",Description:"SHA-2 512-bit Hash truncated to 256-bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-16":{Name:"SHA-256",Value:"-16",Description:"SHA-2 256-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-15":{Name:"SHA-256/64",Value:"-15",Description:"SHA-2 256-bit Hash truncated to 64-bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Filter Only"},"-14":{Name:"SHA-1",Value:"-14",Description:"SHA-1 Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Filter Only"},"-13":{Name:"direct+HKDF-AES-256",Value:"-13",Description:"Shared secret w/ AES-MAC 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-12":{Name:"direct+HKDF-AES-128",Value:"-12",Description:"Shared secret w/ AES-MAC 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-11":{Name:"direct+HKDF-SHA-512",Value:"-11",Description:"Shared secret w/ HKDF and SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-10":{Name:"direct+HKDF-SHA-256",Value:"-10",Description:"Shared secret w/ HKDF and SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-9":{Name:"Unassigned",Value:"-9",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-8":{Name:"EdDSA",Value:"-8",Description:"EdDSA",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-7":{Name:"ES256",Value:"-7",Description:"ECDSA w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-6":{Name:"direct",Value:"-6",Description:"Direct use of CEK",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-5":{Name:"A256KW",Value:"-5",Description:"AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-4":{Name:"A192KW",Value:"-4",Description:"AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-3":{Name:"A128KW",Value:"-3",Description:"AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-2 to -1":{Name:"Unassigned",Value:"-2 to -1",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"8-9":{Name:"Unassigned",Value:"8-9",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"16-23":{Name:"Unassigned",Value:"16-23",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"27-29":{Name:"Unassigned",Value:"27-29",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""}}},37148:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEHeaderParameters=void 0;pe.IANACOSEHeaderParameters={0:{Name:"Reserved",Label:"0","Value Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},1:{Name:"alg",Label:"1","Value Type":"int / tstr","Value Registry":"COSE Algorithms registry",Description:"Cryptographic algorithm to use",Reference:"https://datatracker.ietf.org/doc/RFC9052"},2:{Name:"crit",Label:"2","Value Type":"[+ label]","Value Registry":"COSE Header Parameters registry",Description:"Critical headers to be understood",Reference:"https://datatracker.ietf.org/doc/RFC9052"},3:{Name:"content type",Label:"3","Value Type":"tstr / uint","Value Registry":"[COAP Content-Formats] or [Media Types] registry",Description:"Content type of the payload",Reference:"https://datatracker.ietf.org/doc/RFC9052"},4:{Name:"kid",Label:"4","Value Type":"bstr","Value Registry":"",Description:"Key identifier",Reference:"https://datatracker.ietf.org/doc/RFC9052"},5:{Name:"IV",Label:"5","Value Type":"bstr","Value Registry":"",Description:"Full Initialization Vector",Reference:"https://datatracker.ietf.org/doc/RFC9052"},6:{Name:"Partial IV",Label:"6","Value Type":"bstr","Value Registry":"",Description:"Partial Initialization Vector",Reference:"https://datatracker.ietf.org/doc/RFC9052"},7:{Name:"counter signature",Label:"7","Value Type":"COSE_Signature / [+ COSE_Signature ]","Value Registry":"",Description:"CBOR-encoded signature structure (Deprecated by [RFC9338])",Reference:"https://datatracker.ietf.org/doc/RFC8152"},8:{Name:"Unassigned",Label:"8","Value Type":"","Value Registry":"",Description:"",Reference:""},9:{Name:"CounterSignature0",Label:"9","Value Type":"bstr","Value Registry":"",Description:"Counter signature with implied signer and headers (Deprecated by [RFC9338])",Reference:"https://datatracker.ietf.org/doc/RFC8152"},10:{Name:"kid context",Label:"10","Value Type":"bstr","Value Registry":"",Description:"Identifies the context for the key identifier",Reference:"https://datatracker.ietf.org/doc/RFC8613, Section 5.1"},11:{Name:"Countersignature version 2",Label:"11","Value Type":"COSE_Countersignature / [+ COSE_Countersignature]","Value Registry":"",Description:"V2 countersignature attribute",Reference:"https://datatracker.ietf.org/doc/RFC9338"},12:{Name:"Countersignature0 version 2",Label:"12","Value Type":"COSE_Countersignature0","Value Registry":"",Description:"V2 Abbreviated Countersignature",Reference:"https://datatracker.ietf.org/doc/RFC9338"},13:{Name:"kcwt",Label:"13","Value Type":"COSE_Messages","Value Registry":"",Description:"A CBOR Web Token (CWT) containing a COSE_Key in a 'cnf' claim and possibly other claims. CWT is defined in [RFC8392]. COSE_Messages is defined in [RFC9052].",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-lake-edhoc-22"},14:{Name:"kccs",Label:"14","Value Type":"map","Value Registry":"",Description:"A CWT Claims Set (CCS) containing a COSE_Key in a 'cnf' claim and possibly other claims. CCS is defined in [RFC8392].",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-lake-edhoc-22"},15:{Name:"CWT Claims",Label:"15","Value Type":"map","Value Registry":"",Description:"Location for CWT Claims in COSE Header Parameters.",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-cose-cwt-claims-in-headers-10"},32:{Name:"x5bag",Label:"32","Value Type":"COSE_X509","Value Registry":"",Description:"An unordered bag of X.509 certificates",Reference:"https://datatracker.ietf.org/doc/RFC9360"},33:{Name:"x5chain",Label:"33","Value Type":"COSE_X509","Value Registry":"",Description:"An ordered chain of X.509 certificates",Reference:"https://datatracker.ietf.org/doc/RFC9360"},34:{Name:"x5t",Label:"34","Value Type":"COSE_CertHash","Value Registry":"",Description:"Hash of an X.509 certificate",Reference:"https://datatracker.ietf.org/doc/RFC9360"},35:{Name:"x5u",Label:"35","Value Type":"uri","Value Registry":"",Description:"URI pointing to an X.509 certificate",Reference:"https://datatracker.ietf.org/doc/RFC9360"},256:{Name:"CUPHNonce",Label:"256","Value Type":"bstr","Value Registry":"",Description:"Challenge Nonce",Reference:"[FIDO Device Onboard Specification]"},257:{Name:"CUPHOwnerPubKey",Label:"257","Value Type":"array","Value Registry":"",Description:"Public Key",Reference:"[FIDO Device Onboard Specification]"},"less than -65536":{Name:"Reserved for Private Use",Label:"less than -65536","Value Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},"-65536 to -1":{Name:"delegated to the COSE Header Algorithm Parameters registry",Label:"-65536 to -1","Value Type":"","Value Registry":"",Description:"",Reference:""},"16-31":{Name:"Unassigned",Label:"16-31","Value Type":"","Value Registry":"",Description:"",Reference:""},"36-255":{Name:"Unassigned",Label:"36-255","Value Type":"","Value Registry":"",Description:"",Reference:""}}},35417:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.urn=void 0;const he=Ae(34061);const ge=Ae(6113);const ye="sha256";const me=`base64url`;const ve={[ye]:"sha-256"};const urn=(R,pe,Ae)=>{const be=`urn:ietf:params:${R}`;const Ee=he.base64url.encode((0,ge.createHash)(ye).update(Ae).digest());return`${be}:${pe}:${ve[ye]}:${me}:${Ee}`};pe.urn=urn},67585:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});pe.cbor=void 0;const ve=ye(Ae(32940));pe.cbor=ve;me(Ae(86904),pe);me(Ae(28027),pe);me(Ae(52201),pe)},28027:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.parse=void 0;const ge=Ae(32940);const ye=Ae(86904);const parse=R=>he(void 0,void 0,void 0,(function*(){if(typeof R==="string"){return(0,ye.unwrap)(R.trim())}const pe=yield(0,ge.diagnose)(R);return(0,ye.unwrap)(pe.trim())}));pe.parse=parse},52201:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.renderPlaintext=pe.render=void 0;const ve=Ae(86904);const be=Ae(28027);const Ee=Ae(35417);const Ce=ye(Ae(37148));const we=ye(Ae(25683));const render=(R,Ae="text/html")=>me(void 0,void 0,void 0,(function*(){const he=yield(0,be.parse)(R);if(he.tag!==18){throw new Error("Only tagged cose-sign1 are supported")}const ge=(0,Ee.urn)("cose","cose-sign1",R);switch(Ae){case"application/cbor-diagnostic":return(0,pe.renderPlaintext)(ge,he);default:throw new Error("Only application/cbor-diagnostic is supported")}}));pe.render=render;const renderPlaintext=(R,pe)=>me(void 0,void 0,void 0,(function*(){if(pe.tag!==18){throw new Error("Unsupported graph type for plaintext rendering.")}let R=`/ cose-sign1 / 18([\n`;R+=(yield recursiveRenderPlaintext(pe.seq));R+="\n])\n\n";return R.trim()}));pe.renderPlaintext=renderPlaintext;const recursiveRenderPlaintext=R=>me(void 0,void 0,void 0,(function*(){if(R instanceof ve.EDNSeq){return yield renderSeqPlaintext(R)}else if(R instanceof ve.EDNMap){return yield renderMapPlaintext(R)}else{console.error("Unsupported graph instance:",R);throw new Error("Unsupported graph instance for plaintext rendering.")}}));const renderSeqPlaintext=R=>me(void 0,void 0,void 0,(function*(){return(yield Promise.all(R.entries.map(((pe,Ae)=>me(void 0,void 0,void 0,(function*(){let he=Ae>`}return`${pe.edn?" "+pe.edn:yield recursiveRenderPlaintext(pe)}${he}`})))))).join("\n")}));const renderMapPlaintext=R=>me(void 0,void 0,void 0,(function*(){let pe=yield Promise.all(R.entries.map((([R,pe])=>me(void 0,void 0,void 0,(function*(){let Ae=R.label;let he=pe.edn||(yield recursiveRenderPlaintext(pe));if(R.iana){const pe=R.iana;Ae=`/ ${pe.Name} / ${pe.Label} :`}if(pe.iana){const R=pe.iana;he=`${pe.edn.trim()} / ${R.Name} /`}return`\n ${Ae} ${he}`})))));let Ae=R.comment?` / ${R.comment} / `:"";return Ae+"{"+pe.join("\n")+"\n }"}))},86904:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(2192),pe)},2192:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.EDNCoseSign1=pe.EDNSeq=pe.EDNMap=pe.bufferToTruncatedBstr=void 0;const ve=ye(Ae(37148));const isMap=R=>R.startsWith("{")&&R.endsWith("}");const isSeq=R=>R.startsWith("[")&&R.endsWith("]");const isBytes=R=>R.startsWith(`h'`)&&R.endsWith(`'`);const isTextString=R=>R.startsWith(`"`)&&R.endsWith(`"`);const isNumber=R=>`${parseInt(R,10)}`===R;const isNull=R=>`null`===R;const isBoolean=R=>["true","false"].includes(R);const getTag=R=>{const pe=R.indexOf("(");if(pe===-1){return undefined}return R.slice(0,pe)};const removeTag=R=>{const pe=R.indexOf("(");if(pe===-1){return R}return R.slice(pe+1,R.length-1)};const getSymbolBefore=(R,pe)=>{let Ae=R.indexOf(pe);if(Ae===-1){Ae=R.length}return R.slice(0,Ae).trim()};const selectBoundedText=(R,pe,Ae)=>{let he=0;let ge="";for(let ye=0;ye{R=removeFirstComma(R);if(R.startsWith("{")){return selectBoundedText(R,"{","}")}if(R.startsWith("[")){return selectBoundedText(R,"[","]")}if(R.startsWith('"')){return`"${R.slice(1,R.slice(1).indexOf('"')+1)}"`}if(R.startsWith(`h`)){return`h${R.slice(1,R.slice(2).indexOf(`'`)+3)}`}let pe=R.indexOf(",");if(pe===-1){pe=R.length}const Ae=R.slice(0,pe).trim();if(`${parseInt(Ae,10)}`===Ae){return Ae}if(["true","false","null"].includes(Ae)){return Ae}throw new Error("Unknown content: "+R)};const bufferToTruncatedBstr=R=>{if(R===null){return"nil"}const pe=Buffer.from(R);const Ae=`h'${pe.toString("hex").toLowerCase()}'`;return Ae.replace(/h'(.{8}).+(.{8})'/g,`h'$1...$2'`).trim()};pe.bufferToTruncatedBstr=bufferToTruncatedBstr;class EDNBase{}class EDNLabel extends EDNBase{constructor(R){super();this.label=R;if(`${R}`.startsWith('"')){this.label=`${R}`.slice(1,`${R}`.length-1)}else{this.label=parseInt(R,10)}}}class EDNMap extends EDNBase{constructor(){super(...arguments);this.entries=[]}add(R,pe){this.entries.push([R,pe])}get(R){const pe=this.entries.find((([pe,Ae])=>pe.label===R));return pe}}pe.EDNMap=EDNMap;class EDNSeq extends EDNBase{constructor(){super(...arguments);this.entries=[]}add(R){this.entries.push(R)}get(R){return this.entries[R]}}pe.EDNSeq=EDNSeq;class EDNBytes extends EDNBase{constructor(R){super();this.value=Buffer.from(R.split(`'`)[1],"hex");this.edn=(0,pe.bufferToTruncatedBstr)(this.value)}}class EDNNull extends EDNBase{constructor(R){super();this.value=null;this.edn="nil"}}class EDNNumber extends EDNBase{constructor(R){super();this.value=parseInt(R,10);this.edn=R}}class EDNBoolean extends EDNBase{constructor(R){super();this.value=R==="true";this.edn=R}}class EDNTextString extends EDNBase{constructor(R){super();this.value=R;if(`${R}`.startsWith('"')){this.value=`${R}`.slice(1,`${R}`.length-1);this.edn=R}}}class EDNCoseSign1{constructor(R){this.tag=18;this.nested=[];this.comment=()=>me(this,void 0,void 0,(function*(){yield this.protectedHeader();yield this.unprotectedHeader();yield this.payload();yield this.signature()}));this.seq=R}protectedHeader(){const R=this.seq.get(0);R.edn=`/ protected / ${R.edn}`;return R}unprotectedHeader(){const R=this.seq.get(1);R.comment="unprotected";for(const[pe,Ae]of R.entries){const R=ve.IANACOSEHeaderParameters[`${pe.label}`];if(R){pe.iana=R}}return R}payload(){const R=this.seq.get(2);R.edn=`/ payload / ${R.edn}`;return R}signature(){const R=this.seq.get(3);R.edn=`/ signature / ${R.edn}`;return R}}pe.EDNCoseSign1=EDNCoseSign1;const removeFirstComma=R=>{if(R.trim().startsWith(",")){return R.trim().slice(1)}return R.trim()};const unwrapSeq=R=>me(void 0,void 0,void 0,(function*(){if(!isSeq(R)){throw new Error("unwrapSeq called on non seq")}let Ae=new EDNSeq;let he=R.slice(1,R.length-1).trim();while(he.length){const R=selectNextValue(he);if(R.length){Ae.add(yield(0,pe.unwrap)(R));he=he.replace(R,"")}he=removeFirstComma(he)}return Ae}));const unwrapMap=R=>me(void 0,void 0,void 0,(function*(){if(!isMap(R)){throw new Error("unwrapMap called on non map")}let Ae=new EDNMap;let he=R.slice(1,R.length-1);while(he.length){const R=getSymbolBefore(he,":");he=he.replace(`${R}: `,"").trim();const ge=selectNextValue(he);if(ge.length){Ae.add(new EDNLabel(R),yield(0,pe.unwrap)(ge));he=he.replace(ge,"");he=removeFirstComma(he)}}return Ae}));const postProcessCoseSign1=R=>me(void 0,void 0,void 0,(function*(){const pe=new EDNCoseSign1(R);yield pe.comment();return pe}));const postProcessByTag=R=>me(void 0,void 0,void 0,(function*(){if(R.tag===18){return postProcessCoseSign1(R)}return R}));const unwrap=R=>me(void 0,void 0,void 0,(function*(){let pe;let Ae=getTag(R);if(Ae){R=removeTag(R)}if(isMap(R)){pe=yield unwrapMap(R)}else if(isSeq(R)){pe=yield unwrapSeq(R)}else if(isBytes(R)){pe=new EDNBytes(R)}else if(isTextString(R)){pe=new EDNTextString(R)}else if(isNull(R)){pe=new EDNNull(R)}else if(isNumber(R)){pe=new EDNNumber(R)}else if(isBoolean(R)){pe=new EDNBoolean(R)}else{throw new Error("Failed to parse EDN for "+R)}if(pe&&Ae){pe.tag=parseInt(Ae,10);return yield postProcessByTag(pe)}return pe}));pe.unwrap=unwrap},20270:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RFC9162_SHA256=void 0;const he=Ae(31607);const ge=Ae(14341);const ye=Ae(24711);const me=Ae(81347);const ve=Ae(42913);const be=Ae(66465);const leaves=R=>R.map(ge.getLeafFromEntry);const root=R=>(0,he.getRootFromLeaves)(R);const iproof=(R,pe)=>(0,ye.getInclusionProofForLeaf)(R,pe);const viproof=(R,pe)=>(0,me.getRootFromInclusionProof)(R,pe);const cproof=(R,pe)=>(0,ve.getConsistencyProofFromLeaves)(R,pe);const vcproof=(R,pe,Ae)=>(0,be.verifyConsistencyProof)(R,Ae.tree_size_1,pe,Ae.tree_size_2,Ae);const Ee="RFC9162_SHA256";pe.RFC9162_SHA256={tree_alg:Ee,root:root,leaf:ge.getLeafFromEntry,inclusion_proof:iproof,verify_inclusion_proof:viproof,consistency_proof:cproof,verify_consistency_proof:vcproof};pe["default"]=pe.RFC9162_SHA256},42913:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getConsistencyProofFromLeaves=void 0;const ge=Ae(31607);const ye=Ae(50482);const me=Ae(92287);const SUBPROOF=(R,pe,Ae)=>he(void 0,void 0,void 0,(function*(){const he=pe.length;if(R===he){return[yield(0,ge.getRootFromLeaves)(pe)]}if(Rve){const Ae=(0,ye.CUT)(pe,ve,he);const me=yield SUBPROOF(R-ve,Ae,false);const be=yield(0,ge.getRootFromLeaves)((0,ye.CUT)(pe,0,ve));return me.concat(be)}}throw new Error("m cannot be greater than n")}));const getConsistencyProofFromLeaves=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=R.tree_size;const he=pe.length;const ge=yield SUBPROOF(R.tree_size,pe,true);return{log_id:"",tree_size_1:Ae,tree_size_2:he,consistency_path:ge}}));pe.getConsistencyProofFromLeaves=getConsistencyProofFromLeaves},24711:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getInclusionProofForLeaf=void 0;const ge=Ae(92287);const ye=Ae(31607);const PATH=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=pe.length;if(Ae===1&&R===0){return[]}const he=(0,ge.highestPowerOf2LessThanN)(Ae);if(Rhe(void 0,void 0,void 0,(function*(){if(R<0||R>pe.length){throw new Error("Entry is not included in log.")}return{log_id:"",tree_size:pe.length,leaf_index:R,inclusion_path:yield PATH(R,pe)}}));pe.getInclusionProofForLeaf=getInclusionProofForLeaf},14341:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getLeafFromEntry=void 0;const ge=Ae(25775);const ye=Ae(80179);const me=Ae(63212);const getLeafFromEntry=R=>he(void 0,void 0,void 0,(function*(){if(!R){throw new Error("getLeafFromEntry requires a Uint8Array entry.")}const pe=(0,me.hexToBin)("00");return yield(0,ge.HASH)((0,ye.CONCAT)(pe,R))}));pe.getLeafFromEntry=getLeafFromEntry},81347:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getRootFromInclusionProof=void 0;const ge=Ae(80179);const ye=Ae(63212);const me=Ae(25775);const getRootFromInclusionProof=(R,pe)=>he(void 0,void 0,void 0,(function*(){const{tree_size:Ae,leaf_index:he,inclusion_path:ve}=pe;if(he>Ae){throw new Error("leaf index is out of bound")}let be=he;let Ee=Ae-1;let Ce=R;const we=(0,ye.hexToBin)("01");for(const R of ve){if(Ee===0){throw new Error("verification failed, sn is 0")}if(be%2===1||be===Ee){Ce=yield(0,me.HASH)((0,ge.CONCAT)(we,(0,ge.CONCAT)(R,Ce)));while(be%2!==1){be=be>>1;Ee=Ee>>1;if(be===0){break}}}else{Ce=yield(0,me.HASH)((0,ge.CONCAT)(we,(0,ge.CONCAT)(Ce,R)))}be=be>>1;Ee=Ee>>1}const _e=Ee===0;if(!_e){throw new Error("sn is not zero, proof validation failed.")}return Ce}));pe.getRootFromInclusionProof=getRootFromInclusionProof},31607:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getRootFromLeaves=void 0;const ge=Ae(25775);const ye=Ae(80179);const me=Ae(63212);const ve=Ae(22285);const be=Ae(92287);const Ee=Ae(50482);const Ce=(0,ve.strToBin)("");const getRootFromLeaves=R=>he(void 0,void 0,void 0,(function*(){const Ae=R.length;if(Ae===0){return(0,ge.HASH)(Ce)}if(Ae===1){return R[0]}const he=(0,be.highestPowerOf2LessThanN)(Ae);const ve=(0,Ee.CUT)(R,0,he);const we=(0,Ee.CUT)(R,he,Ae);const _e=(0,me.hexToBin)("01");return(0,ge.HASH)((0,ye.CONCAT)(_e,(0,ye.CONCAT)(yield(0,pe.getRootFromLeaves)(ve),yield(0,pe.getRootFromLeaves)(we))))}));pe.getRootFromLeaves=getRootFromLeaves},38232:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(14341),pe);ge(Ae(31607),pe);ge(Ae(81347),pe);ge(Ae(24711),pe);ge(Ae(42913),pe);ge(Ae(66465),pe);ge(Ae(20270),pe)},66465:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifyConsistencyProof=void 0;const ge=Ae(25775);const ye=Ae(80179);const me=Ae(63212);const ve=Ae(9365);const be=Ae(9600);const Ee=(0,me.hexToBin)("01");const Ce=Ae(83793);const verifyConsistencyProof=(R,pe,Ae,me,we)=>he(void 0,void 0,void 0,(function*(){const{consistency_path:he}=we;if(he.length===0){return false}if((0,Ce.EXACT_POWER_OF_2)(pe)){}let _e=pe-1;let Ie=me-1;while((0,ve.LSB)(_e)){_e=_e>>1;Ie=Ie>>1}let Se=he[0];let Be=he[0];for(let R=1;R>1;Ie=Ie>>1}}else{Be=yield(0,ge.HASH)((0,ye.CONCAT)(Ee,(0,ye.CONCAT)(Be,pe)))}_e=_e>>1;Ie=Ie>>1}const ke=Ie===0;if(!ke){throw new Error("sn is not zero, proof validation failed.")}const Oe=(0,be.EQUAL)(Se,R);const Re=(0,be.EQUAL)(Be,Ae);return Oe&&Re}));pe.verifyConsistencyProof=verifyConsistencyProof},80179:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CONCAT=void 0;const CONCAT=(R,pe)=>{const Ae=new Uint8Array(R.length+pe.length);Ae.set(R);Ae.set(pe,R.length);return Ae};pe.CONCAT=CONCAT},50482:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CUT=void 0;const CUT=(R,pe,Ae)=>{const he=[];while(pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EQUAL=void 0;const EQUAL=(R,pe)=>R.length===pe.length&&R.every(((R,Ae)=>R===pe[Ae]));pe.EQUAL=EQUAL},83793:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EXACT_POWER_OF_2=void 0;const EXACT_POWER_OF_2=R=>Math.log(R)/Math.log(2)%1===0;pe.EXACT_POWER_OF_2=EXACT_POWER_OF_2},25775:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.HASH=void 0;const ve=Promise.resolve().then((()=>ye(Ae(6113)))).catch((()=>{}));const HASH=R=>me(void 0,void 0,void 0,(function*(){try{const pe=yield window.crypto.subtle.digest("SHA-256",R);return new Uint8Array(pe)}catch(pe){const Ae=yield(yield ve).createHash("sha256").update(R).digest();return new Uint8Array(Ae)}}));pe.HASH=HASH},9365:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.LSB=void 0;const LSB=R=>R%2===1;pe.LSB=LSB},47301:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.MTH=void 0;const ge=Ae(25775);const ye=Ae(80179);const me=Ae(63212);const ve=Ae(22285);const be=Ae(92287);const Ee=Ae(50482);const Ce=(0,ve.strToBin)("");const MTH=R=>he(void 0,void 0,void 0,(function*(){const Ae=R.length;if(Ae===0){return(0,ge.HASH)(Ce)}if(Ae===1){const pe=(0,me.hexToBin)("00");return(0,ge.HASH)((0,ye.CONCAT)(pe,R[0]))}const he=(0,be.highestPowerOf2LessThanN)(Ae);const ve=(0,Ee.CUT)(R,0,he);const we=(0,Ee.CUT)(R,he,Ae);const _e=(0,me.hexToBin)("01");return(0,ge.HASH)((0,ye.CONCAT)(_e,(0,ye.CONCAT)(yield(0,pe.MTH)(ve),yield(0,pe.MTH)(we))))}));pe.MTH=MTH},5272:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.PATH=void 0;const ge=Ae(47301);const ye=Ae(92287);const PATH=(R,Ae)=>he(void 0,void 0,void 0,(function*(){const he=Ae.length;if(he===1&&R===0){return[]}const me=(0,ye.highestPowerOf2LessThanN)(he);if(Rhe(void 0,void 0,void 0,(function*(){const he=pe.length;if(R===he){return[yield(0,ge.MTH)(pe)]}if(Rve){const Ae=(0,ye.CUT)(pe,ve,he);const me=yield SUBPROOF(R-ve,Ae,false);const be=yield(0,ge.MTH)((0,ye.CUT)(pe,0,ve));return me.concat(be)}}throw new Error("m cannot be greater than n")}));const PROOF=(R,pe)=>he(void 0,void 0,void 0,(function*(){return SUBPROOF(R,pe,true)}));pe.PROOF=PROOF},23505:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.binToHex=void 0;const binToHex=R=>R.reduce(((R,pe)=>R+pe.toString(16).padStart(2,"0")),"");pe.binToHex=binToHex},16721:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.consistencyProof=void 0;const ge=Ae(83690);const consistencyProof=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=R.tree_size;const he=pe.length;const ye=yield(0,ge.PROOF)(R.tree_size,pe);return{log_id:"",tree_size_1:Ae,tree_size_2:he,consistency_path:ye}}));pe.consistencyProof=consistencyProof},63212:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.hexToBin=void 0;const hexToBin=R=>Uint8Array.from(R.match(/.{1,2}/g).map((R=>parseInt(R,16))));pe.hexToBin=hexToBin},92287:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.highestPowerOf2LessThanN=void 0;const highestPowerOf2LessThanN=R=>{let pe=0;if(Math.pow(2,pe)>=R){return pe}else{while(Math.pow(2,pe)=R){pe=pe-1}return Math.pow(2,pe)};pe.highestPowerOf2LessThanN=highestPowerOf2LessThanN},65449:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.inclusionProof=void 0;const ge=Ae(9600);const ye=Ae(5272);const inclusionProof=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=pe.findIndex((pe=>(0,ge.EQUAL)(pe,R)));if(Ae===-1){throw new Error("Entry is not included in log.")}return{log_id:"",tree_size:pe.length,leaf_index:Ae,inclusion_path:yield(0,ye.PATH)(Ae,pe)}}));pe.inclusionProof=inclusionProof},97523:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(25775),pe);ge(Ae(47301),pe);ge(Ae(83690),pe);ge(Ae(5272),pe);ge(Ae(23505),pe);ge(Ae(63212),pe);ge(Ae(22285),pe);ge(Ae(37545),pe);ge(Ae(35829),pe);ge(Ae(78924),pe);ge(Ae(65449),pe);ge(Ae(803),pe);ge(Ae(16721),pe);ge(Ae(71884),pe)},37545:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.leaf=void 0;const he=Ae(47301);const leaf=R=>(0,he.MTH)([R]);pe.leaf=leaf},22285:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.strToBin=void 0;const Ae=new TextEncoder;const strToBin=R=>Ae.encode(R);pe.strToBin=strToBin},35829:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.treeHead=void 0;const he=Ae(47301);const treeHead=R=>(0,he.MTH)(R);pe.treeHead=treeHead},71884:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifyConsistencyProof=void 0;const ge=Ae(25775);const ye=Ae(80179);const me=Ae(63212);const ve=Ae(9365);const be=Ae(9600);const Ee=(0,me.hexToBin)("01");const Ce=Ae(83793);const VERIFY_PROOF=(R,pe,Ae,me,we)=>he(void 0,void 0,void 0,(function*(){if(we.length===0){return false}if((0,Ce.EXACT_POWER_OF_2)(R)){}let he=R-1;let _e=Ae-1;while((0,ve.LSB)(he)){he=he>>1;_e=_e>>1}let Ie=we[0];let Se=we[0];for(let R=1;R>1;_e=_e>>1}}else{Se=yield(0,ge.HASH)((0,ye.CONCAT)(Ee,(0,ye.CONCAT)(Se,pe)))}he=he>>1;_e=_e>>1}const Be=(0,be.EQUAL)(Ie,pe);const ke=(0,be.EQUAL)(Se,me);const Oe=_e===0;return Oe&&Be&&ke}));const verifyConsistencyProof=(R,pe,Ae)=>he(void 0,void 0,void 0,(function*(){return VERIFY_PROOF(Ae.tree_size_1,R,Ae.tree_size_2,pe,Ae.consistency_path)}));pe.verifyConsistencyProof=verifyConsistencyProof},803:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifyInclusionProof=void 0;const ge=Ae(80179);const ye=Ae(63212);const me=Ae(25775);const ve=Ae(9600);const verifyInclusionProof=(R,pe,Ae)=>he(void 0,void 0,void 0,(function*(){const{tree_size:he,leaf_index:be,inclusion_path:Ee}=Ae;if(be>he){return false}let Ce=be;let we=he-1;let _e=pe;const Ie=(0,ye.hexToBin)("01");for(const R of Ee){if(we===0){return false}if(Ce%2===1||Ce===we){_e=yield(0,me.HASH)((0,ge.CONCAT)(Ie,(0,ge.CONCAT)(R,_e)));while(Ce%2!==1){Ce=Ce>>1;we=we>>1;if(Ce===0){break}}}else{_e=yield(0,me.HASH)((0,ge.CONCAT)(Ie,(0,ge.CONCAT)(_e,R)))}Ce=Ce>>1;we=we>>1}const Se=(0,ve.EQUAL)(_e,R);const Be=we===0;return Be&&Se}));pe.verifyInclusionProof=verifyInclusionProof},78924:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifyTree=void 0;const ge=Ae(63212);const ye=Ae(25775);const me=Ae(80179);const ve=Ae(9600);const be=Ae(9365);const getMergeCount=R=>{let pe=0;while((0,be.LSB)(R>>pe)){pe++}return pe};const MERGE=R=>he(void 0,void 0,void 0,(function*(){const pe=(0,ge.hexToBin)("01");const Ae=R.pop();const he=R.pop();R.push(yield(0,ye.HASH)((0,me.CONCAT)(pe,(0,me.CONCAT)(he,Ae))))}));const verifyTree=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=[];const he=pe.length;for(let R=0;R1){yield MERGE(Ae)}const be=Ae[0];const Ee=R;return(0,ve.EQUAL)(be,Ee)}));pe.verifyTree=verifyTree},57994:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.CoMETRE=pe.RFC9162=void 0;const me=ye(Ae(97523));pe.RFC9162=me;const ve=ye(Ae(38232));pe.CoMETRE=ve;const be=me;pe["default"]=be},73772:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var ye=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var me;Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(78125),pe);const ve=Ae(88776);class VerifiableDataPlatfrom extends ve.Api{constructor(){super(...arguments);this.useToken=R=>{this.instance.defaults.headers.common["Authorization"]=`Bearer ${R}`}}}me=VerifiableDataPlatfrom;VerifiableDataPlatfrom.fromEnv=R=>ye(void 0,void 0,void 0,(function*(){const pe=new VerifiableDataPlatfrom({baseURL:R.API_BASE_URL});const Ae=yield pe.oauth.tokenCreate({grant_type:"client_credentials",client_id:R.CLIENT_ID,client_secret:R.CLIENT_SECRET,audience:R.TOKEN_AUDIENCE});pe.useToken(Ae.data.access_token);return pe}));pe["default"]=VerifiableDataPlatfrom},88776:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);ge{this.securityData=R};this.request=R=>he(this,void 0,void 0,(function*(){var{secure:pe,path:Ae,type:he,query:ye,format:me,body:be}=R,Ee=ge(R,["secure","path","type","query","format","body"]);const Ce=(typeof pe==="boolean"?pe:this.secure)&&this.securityWorker&&(yield this.securityWorker(this.securityData))||{};const we=this.mergeRequestParams(Ee,Ce);const _e=me||this.format||undefined;if(he===ve.FormData&&be&&be!==null&&typeof be==="object"){be=this.createFormData(be)}if(he===ve.Text&&be&&be!==null&&typeof be!=="string"){be=JSON.stringify(be)}return this.instance.request(Object.assign(Object.assign({},we),{headers:Object.assign(Object.assign({},we.headers||{}),he&&he!==ve.FormData?{"Content-Type":he}:{}),params:ye,responseType:_e,data:be,url:Ae}))}));this.instance=me.default.create(Object.assign(Object.assign({},be),{baseURL:be.baseURL||""}));this.secure=Ae;this.format=ye;this.securityWorker=pe}mergeRequestParams(R,pe){const Ae=R.method||pe&&pe.method;return Object.assign(Object.assign(Object.assign(Object.assign({},this.instance.defaults),R),pe||{}),{headers:Object.assign(Object.assign(Object.assign({},Ae&&this.instance.defaults.headers[Ae.toLowerCase()]||{}),R.headers||{}),pe&&pe.headers||{})})}stringifyFormItem(R){if(typeof R==="object"&&R!==null){return JSON.stringify(R)}else{return`${R}`}}createFormData(R){return Object.keys(R||{}).reduce(((pe,Ae)=>{const he=R[Ae];const ge=he instanceof Array?he:[he];for(const R of ge){const he=R instanceof Blob||R instanceof File;pe.append(Ae,he?R:this.stringifyFormItem(R))}return pe}),new FormData)}}pe.HttpClient=HttpClient;class Api extends HttpClient{constructor(){super(...arguments);this.oauth={tokenCreate:(R,pe={})=>this.request(Object.assign({path:`/oauth/token`,method:"POST",body:R,type:ve.Json,format:"json"},pe))};this.did={getDids:(R={})=>this.request(Object.assign({path:`/did/identifiers`,method:"GET",secure:true,format:"json"},R)),makeDidDefault:(R,pe={})=>this.request(Object.assign({path:`/did/${R}/make-default`,method:"PUT",secure:true,format:"json"},pe)),didMethodOperations:(R,pe={})=>this.request(Object.assign({path:`/did/method/operations`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe))};this.identifiers={resolve:(R,pe={})=>this.request(Object.assign({path:`/identifiers/${R}`,method:"GET",secure:true,format:"json"},pe))};this.contacts={createContact:(R,pe={})=>this.request(Object.assign({path:`/contacts`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getContacts:(R={})=>this.request(Object.assign({path:`/contacts`,method:"GET",secure:true,format:"json"},R)),updateContact:(R,pe,Ae={})=>this.request(Object.assign({path:`/contacts/${R}`,method:"PUT",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),deleteContact:(R,pe={})=>this.request(Object.assign({path:`/contacts/${R}`,method:"DELETE",secure:true,format:"json"},pe))};this.credentials={issueCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/issue`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),updateCredentialStatus:(R,pe={})=>this.request(Object.assign({path:`/credentials/status`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),deriveCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/derive`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),verifyOrganizationCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/verify`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),storeCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getCredentials:(R={})=>this.request(Object.assign({path:`/credentials`,method:"GET",secure:true,format:"json"},R)),getCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/${R}`,method:"GET",secure:true,format:"json"},pe)),deleteCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/${R}`,method:"DELETE",secure:true,format:"json"},pe)),verifyCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/${R}/verify`,method:"GET",secure:true,format:"json"},pe)),updateCredentialStatus2:(R,pe,Ae={})=>this.request(Object.assign({path:`/credentials/${R}/status`,method:"PATCH",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),getCredentialVisibility:(R,pe={})=>this.request(Object.assign({path:`/credentials/${R}/visibility`,method:"GET",secure:true,format:"json"},pe)),changeCredentialVisibility:(R,pe,Ae={})=>this.request(Object.assign({path:`/credentials/${R}/visibility`,method:"PATCH",body:pe,secure:true,type:ve.Json,format:"json"},Ae))};this.organizations={notifyPresentationAvailable:(R,pe,Ae={})=>this.request(Object.assign({path:`/organizations/${R}/presentations/available`,method:"POST",body:pe,type:ve.Json,format:"json"},Ae)),storePresentation:(R,pe,Ae={})=>this.request(Object.assign({path:`/organizations/${R}/presentations/submissions`,method:"POST",body:pe,type:ve.Json,format:"json"},Ae)),submitPresentationWithOAuth2Security:(R,pe,Ae={})=>this.request(Object.assign({path:`/organizations/${R}/presentations`,method:"POST",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),getOrganizations:(R={})=>this.request(Object.assign({path:`/organizations`,method:"GET",secure:true,format:"json"},R)),getOrganization:(R,pe={})=>this.request(Object.assign({path:`/organizations/${R}`,method:"GET",secure:true,format:"json"},pe)),getOrganizationDidWeb:(R,pe={})=>this.request(Object.assign({path:`/organizations/${R}/did.json`,method:"GET",secure:true,format:"json"},pe))};this.presentations={provePresentation:(R,pe={})=>this.request(Object.assign({path:`/presentations/prove`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),verifyPresentation:(R,pe={})=>this.request(Object.assign({path:`/presentations/verify`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),sendDidAuthPresentation:(R,pe={})=>this.request(Object.assign({path:`/presentations/send-did-auth-presentation`,method:"POST",body:R,type:ve.Json,format:"json"},pe)),getPresentationsSharedWithMe:(R={})=>this.request(Object.assign({path:`/presentations/received`,method:"GET",secure:true,format:"json"},R)),getPresentationsSharedWithOthers:(R={})=>this.request(Object.assign({path:`/presentations/sent`,method:"GET",secure:true,format:"json"},R)),getPresentation:(R,pe={})=>this.request(Object.assign({path:`/presentations/${R}`,method:"GET",secure:true,format:"json"},pe)),deleteSubmission:(R,pe={})=>this.request(Object.assign({path:`/presentations/${R}`,method:"DELETE",secure:true},pe))};this.applications={getApplications:(R={})=>this.request(Object.assign({path:`/applications`,method:"GET",secure:true,format:"json"},R)),getApplication:(R,pe={})=>this.request(Object.assign({path:`/applications/${R}`,method:"GET",secure:true,format:"json"},pe)),updateApplication:(R,pe,Ae={})=>this.request(Object.assign({path:`/applications/${R}`,method:"PUT",body:pe,secure:true,type:ve.Json,format:"json"},Ae))};this.activities={activitiesList:(R={})=>this.request(Object.assign({path:`/activities`,method:"GET",secure:true,format:"json"},R))};this.batches={createBatch:(R,pe={})=>this.request(Object.assign({path:`/batches`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getBatches:(R={})=>this.request(Object.assign({path:`/batches`,method:"GET",secure:true,format:"json"},R)),validateBatch:(R,pe={})=>this.request(Object.assign({path:`/batches/validate`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getBatch:(R,pe={})=>this.request(Object.assign({path:`/batches/${R}`,method:"GET",secure:true,format:"json"},pe))};this.marketplace={getMarketplaceTemplates:(R={})=>this.request(Object.assign({path:`/marketplace/templates`,method:"GET",secure:true,format:"json"},R)),getMarketplaceTemplate:(R,pe={})=>this.request(Object.assign({path:`/marketplace/templates/${R}`,method:"GET",secure:true,format:"json"},pe))};this.mnemonics={getMnemonics:(R={})=>this.request(Object.assign({path:`/mnemonics`,method:"GET",secure:true,format:"json"},R)),createMnemonic:(R,pe={})=>this.request(Object.assign({path:`/mnemonics`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getMnemonic:(R,pe={})=>this.request(Object.assign({path:`/mnemonics/${R}`,method:"GET",secure:true,format:"json"},pe)),updateMnemonic:(R,pe,Ae={})=>this.request(Object.assign({path:`/mnemonics/${R}`,method:"PUT",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),deleteMnemonic:(R,pe={})=>this.request(Object.assign({path:`/mnemonics/${R}`,method:"DELETE",secure:true,format:"json"},pe)),getPrivateKeysForMnemonic:(R,pe={})=>this.request(Object.assign({path:`/mnemonics/${R}/keys`,method:"GET",secure:true,format:"json"},pe))};this.keys={getPrivateKeys:(R={})=>this.request(Object.assign({path:`/keys`,method:"GET",secure:true,format:"json"},R)),updatePrivateKey:(R,pe,Ae={})=>this.request(Object.assign({path:`/keys/${R}`,method:"PATCH",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),deletePrivateKey:(R,pe={})=>this.request(Object.assign({path:`/keys/${R}`,method:"DELETE",secure:true,format:"json"},pe)),derivePrivateKey:(R,pe={})=>this.request(Object.assign({path:`/keys/derive`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),generatePrivateKey:(R,pe={})=>this.request(Object.assign({path:`/keys/generate`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),recoverPrivateKey:(R,pe={})=>this.request(Object.assign({path:`/keys/recover`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),importPrivateKey:(R,pe={})=>this.request(Object.assign({path:`/keys/import`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe))};this.workflows={createWorkflowInstance:(R,pe={})=>this.request(Object.assign({path:`/workflows/instances`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getWorkflowInstances:(R={})=>this.request(Object.assign({path:`/workflows/instances`,method:"GET",secure:true,format:"json"},R)),getWorkflowInstance:(R,pe={})=>this.request(Object.assign({path:`/workflows/instances/${R}`,method:"GET",secure:true,format:"json"},pe)),updateWorkflowInstance:(R,pe,Ae={})=>this.request(Object.assign({path:`/workflows/instances/${R}`,method:"PUT",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),deleteWorkflowInstance:(R,pe={})=>this.request(Object.assign({path:`/workflows/instances/${R}`,method:"DELETE",secure:true,format:"json"},pe)),createWorkflowDefinition:(R,pe={})=>this.request(Object.assign({path:`/workflows/definitions`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getWorkflowDefinitions:(R={})=>this.request(Object.assign({path:`/workflows/definitions`,method:"GET",secure:true,format:"json"},R)),getWorkflowDefinition:(R,pe={})=>this.request(Object.assign({path:`/workflows/definitions/${R}`,method:"GET",secure:true,format:"json"},pe)),updateWorkflowDefinition:(R,pe,Ae={})=>this.request(Object.assign({path:`/workflows/definitions/${R}`,method:"PUT",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),deleteWorkflowDefinition:(R,pe={})=>this.request(Object.assign({path:`/workflows/definitions/${R}`,method:"DELETE",secure:true,format:"json"},pe))}}}pe.Api=Api},62999:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},78125:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(62999),pe)},41762:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.discloseValue=pe.discloseKey=pe.discloseTag=void 0;pe.discloseTag=`!sd`;pe.discloseKey=`_sd`;pe.discloseValue=`...`},58376:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.disclose=pe.redactSource=void 0;const he=Ae(44083);const ge=Ae(41762);const ye=Ae(8477);const me=Ae(25295);const fakePair=R=>{let pe;if(R.value instanceof he.Scalar){pe={value:new he.Scalar(false)}}if(R.value instanceof he.YAMLSeq){pe={value:fakeSequence(R.value.items.length)}}if(R.value instanceof he.YAMLMap){pe=R}return pe};const discloseWalkMap=(R,Ae)=>{const ye=[];for(const pe in R.items){const me=R.items[pe];const ve=Ae.items.find((R=>R.key.value===me.key.value))||fakePair(me);if(me.value instanceof he.YAMLSeq&&ve.value instanceof he.YAMLSeq){discloseWalkList(me.value,ve.value)}if(me.value instanceof he.YAMLMap&&ve.value instanceof he.YAMLMap){discloseWalkMap(me.value,ve.value)}if(me.key.tag===ge.discloseTag&&ve.value.value===false){ye.push(parseInt(pe,10))}}(0,pe.redactSource)(R,ye)};const discloseWalkList=(R,Ae)=>{const ye=[];for(const pe in R.items){const me=R.items[pe];let ve=Ae.items[pe];if(me instanceof he.YAMLSeq){if(ve===undefined||ve.value===false){ve=fakeSequence(me.items.length)}if(ve instanceof he.YAMLSeq){discloseWalkList(me,ve)}}if(me instanceof he.YAMLMap){if(ve instanceof he.YAMLMap){discloseWalkMap(me,ve)}}if(me.tag===ge.discloseTag){if(ve.value===false){ye.push(parseInt(pe,10))}}}(0,pe.redactSource)(R,ye)};const redactSource=(R,pe)=>{R.items=R.items.filter(((Ae,he)=>{discloseReplace(R.items[he]);return!pe.includes(he)}))};pe.redactSource=redactSource;const fakeSequence=R=>{const pe=new he.YAMLSeq;pe.items=new Array(R).fill({value:false});return pe};const discloseReplace=R=>{if(R instanceof he.Scalar||R instanceof he.YAMLSeq||R instanceof he.YAMLMap){const pe=R;delete pe.toJSON;delete pe.sd;delete pe.tag}else if(R instanceof he.Pair){const pe=R;if(typeof pe.key!=="string"){pe.key.value=`${pe.key.value}`;delete pe.key.tag;delete pe.value.toJSON;delete pe.value.sd;delete pe.value.tag}}else{console.log(R);throw new Error("discloseReplace, Unhandled disclosure case")}};const disclose=(R,pe)=>{const Ae=(0,ye.parseCustomTags)(R);const ge=(0,ye.parseCustomTags)(pe);discloseWalkMap(Ae.contents,ge.contents);return(0,he.stringify)(Ae,me.yamlOptions)};pe.disclose=disclose},42163:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(44083);const ge=Ae(8477);const ye=Ae(25295);const me=Ae(86777);const ve=Ae(58376);const dumps=R=>(0,he.stringify)(R,ye.yamlOptions);const roughlyEqual=(R,pe)=>JSON.stringify((0,he.parse)(R))===JSON.stringify((0,he.parse)(pe));const load=R=>{const pe=(0,ge.parseCustomTags)(R).contents;if(pe===null){throw new Error("parsed data cannot be null.")}return pe};const be={load:load,issuancePayload:me.issuancePayload,parseCustomTags:ge.parseCustomTags,loads:he.parse,dumps:dumps,disclose:ve.disclose,roughlyEqual:roughlyEqual};pe["default"]=be},86777:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.issuancePayload=void 0;const ge=Ae(20037);const ye=Ae(44083);const me=Ae(41762);const ve=Ae(58376);const be=Ae(92767);const Ee=Ae(78784);const updateTarget=(R,pe,Ae,he)=>{if(pe instanceof ye.Pair){let pe=R.items.find((R=>R.key.value==="_sd"));if(!pe){const Ae=new ye.Scalar("_sd");const he=new ye.YAMLSeq;pe=new ye.Pair(Ae,he);R.items.push(pe)}pe.value.items.push(he)}else{R.items[Ae]=he}};const getDisclosureItem=(R,pe,Ae)=>he(void 0,void 0,void 0,(function*(){const he=(0,be.serializeDisclosure)(R,pe);const me=ge.base64url.encode(he);const ve=yield Ae.digester.digest(me);Ae.disclosures[me]=ve;const Ee=new ye.Scalar(ve);if(pe instanceof ye.Pair){return Ee}else{const R=new ye.Pair("...",Ee);const pe=new ye.YAMLMap;pe.add(R);return pe}}));const addDisclosure=(R,pe,Ae,ge)=>he(void 0,void 0,void 0,(function*(){const he=yield ge.salter(Ae);if(!he){console.warn(JSON.stringify(Ae,null,2));throw new Error("Unhandled salt disclosure...")}const ye=yield getDisclosureItem(he,Ae,ge);updateTarget(R,Ae,pe,ye)}));const issuanceWalkMap=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=[];for(const he in R.items){const ge=R.items[he];if(ge.value instanceof ye.YAMLSeq){yield issuanceWalkList(ge.value,pe)}if(ge.value instanceof ye.YAMLMap){yield issuanceWalkMap(ge.value,pe)}if(ge.key.tag===me.discloseTag){yield addDisclosure(R,he,ge,pe);Ae.push(parseInt(he,10))}}(0,ve.redactSource)(R,Ae)}));const issuanceWalkList=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=[];for(const Ae in R.items){const he=R.items[Ae];if(he instanceof ye.YAMLSeq){yield issuanceWalkList(he,pe)}if(he instanceof ye.YAMLMap){yield issuanceWalkMap(he,pe)}if(he.tag===me.discloseTag){yield addDisclosure(R,Ae,he,pe)}}(0,ve.redactSource)(R,Ae)}));const disclosureSorter=R=>{if(R.key&&R.key.value==="_sd"){R.value.items.sort(((R,pe)=>{if(R.value>=pe.value){return 1}else{return-1}}))}};const preconditionChecker=R=>{if(R.key&&R.key.value==="_sd"){throw new Error("claims may not contain _sd")}};const issuancePayload=(R,pe)=>he(void 0,void 0,void 0,(function*(){(0,Ee.walkMap)(R,preconditionChecker);yield issuanceWalkMap(R,pe);(0,Ee.walkMap)(R,disclosureSorter);return JSON.parse(JSON.stringify(R))}));pe.issuancePayload=issuancePayload},8477:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.parseCustomTags=void 0;const he=Ae(44083);const ge=Ae(78784);const ye=Ae(25295);const replacer=R=>{};const parseCustomTags=R=>{const pe=(0,he.parseDocument)(R,ye.yamlOptions);(0,ge.walkMap)(pe.contents,replacer);return pe};pe.parseCustomTags=parseCustomTags},92767:function(R,pe,Ae){"use strict";var he=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);geJSON.stringify(JSON.parse(JSON.stringify(R))).replace(/"\:/g,'": ').replace(/,/g,", ");const serializeMap=R=>{const pe=JSON.stringify(R);const Ae=JSON.parse(pe),{_sd:ge}=Ae,ye=he(Ae,["_sd"]);if(Array.isArray(ge)){ge.sort()}return JSON.stringify(Object.assign({_sd:ge},ye)).replace(/"\:/g,'": ').replace(/,/g,", ")};const serializeScalar=R=>`${JSON.stringify(R.value).replace(/,/g,", ")}`;const serializeDisclosure=(R,pe)=>{if(pe instanceof ge.Pair){if(pe.value instanceof ge.YAMLSeq){return`["${R}", "${pe.key.value}", ${serializeList(pe.value)}]`}else if(pe.value instanceof ge.YAMLMap){return`["${R}", "${pe.key.value}", ${serializeMap(pe.value)}]`}else{return`["${R}", ${JSON.stringify(pe.key.value).replace(/,/g,", ")}, ${serializeScalar(pe.value)}]`}}else if(pe instanceof ge.YAMLSeq){return`["${R}", ${serializeList(pe)}]`}else if(pe instanceof ge.YAMLMap){return`["${R}", ${serializeMap(pe)}]`}else{return`["${R}", ${JSON.stringify(JSON.parse(JSON.stringify((0,ge.parse)(pe.value)))).replace(/\:/g,": ")}]`}};pe.serializeDisclosure=serializeDisclosure},19023:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.walkList=void 0;const he=Ae(44083);const ge=Ae(78784);const walkList=(R,Ae)=>{for(const ye in R.items){const me=R.items[ye];if(me instanceof he.YAMLSeq){(0,pe.walkList)(me,Ae)}else if(me instanceof he.YAMLMap){(0,ge.walkMap)(me,Ae)}Ae(me)}};pe.walkList=walkList},78784:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.walkMap=void 0;const he=Ae(44083);const ge=Ae(19023);const walkMap=(R,Ae)=>{if(R===null){return}for(const ye of R.items){if(ye.value instanceof he.YAMLSeq){(0,ge.walkList)(ye.value,Ae)}else if(ye.value instanceof he.YAMLMap){(0,pe.walkMap)(ye.value,Ae)}Ae(ye)}};pe.walkMap=walkMap},25295:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.yamlOptions=void 0;const he=Ae(41762);const ge={tag:he.discloseTag,resolve(R){return R}};pe.yamlOptions={flowCollectionPadding:false,schema:"core",customTags:[ge]}},81203:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const me=ye(Ae(42163));const ve=ye(Ae(50820));const be=ye(Ae(93396));const Ee=ye(Ae(54507));const Ce=ye(Ae(58779));const we=ye(Ae(91620));const _e=ye(Ae(95681));const Ie=ye(Ae(10963));const Se=ye(Ae(85844));const Be=ye(Ae(17687));const ke={YAML:me.default,jwk:ve.default,jws:be.default,parse:Ee.default,key:Ce.default,salter:we.default,digester:_e.default,issuer:Ie.default,holder:Se.default,verifier:Be.default};ge(Ae(24258),pe);pe["default"]=ke},50820:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);ge{const{kid:pe,x5u:Ae,x5c:he,x5t:ye,kty:me,crv:ve,alg:be,key_ops:Ee,x:Ce,y:we,d:_e}=R,Ie=ge(R,["kid","x5u","x5c","x5t","kty","crv","alg","key_ops","x","y","d"]);return JSON.parse(JSON.stringify(Object.assign({kid:pe,x5u:Ae,x5c:he,x5t:ye,kty:me,crv:ve,alg:be,key_ops:Ee,x:Ce,y:we,d:_e},Ie)))};const getPublicKey=R=>{const{d:pe,p:Ae,q:he,dp:ye,dq:me,qi:ve,oth:be,k:Ee,key_ops:Ce}=R,we=ge(R,["d","p","q","dp","dq","qi","oth","k","key_ops"]);return format(we)};pe.getPublicKey=getPublicKey;const getExtractableKeyPair=R=>he(void 0,void 0,void 0,(function*(){const pe=yield(0,ye.generateKeyPair)(R,{extractable:true});const Ae=yield(0,ye.exportJWK)(pe.publicKey);Ae.alg=R;Ae.kid=yield(0,ye.calculateJwkThumbprint)(Ae);const he=yield(0,ye.exportJWK)(pe.privateKey);he.alg=R;he.kid=yield(0,ye.calculateJwkThumbprint)(he);return{publicKeyJwk:format(Ae),privateKeyJwk:format(he)}}));const me={format:format,getPublicKey:pe.getPublicKey,generate:getExtractableKeyPair};pe["default"]=me},93396:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const be=ye(Ae(20037));const Ee=ve(Ae(50820));const signer=R=>me(void 0,void 0,void 0,(function*(){const pe=yield be.importJWK(R);return{sign:({protectedHeader:R,claimset:Ae})=>me(void 0,void 0,void 0,(function*(){return new be.CompactSign((new TextEncoder).encode(JSON.stringify(Ae))).setProtectedHeader(R).sign(pe)}))}}));const verifier=R=>me(void 0,void 0,void 0,(function*(){const pe=yield be.importJWK(Ee.default.getPublicKey(R));return{verify:R=>me(void 0,void 0,void 0,(function*(){const Ae=yield be.compactVerify(R,pe);return{protectedHeader:Ae.protectedHeader,claimset:JSON.parse((new TextDecoder).decode(Ae.payload))}}))}}));const Ce={signer:signer,verifier:verifier};pe["default"]=Ce},54507:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});const ge=Ae(20037);const ye=Ae(7591);const compact=(R,pe={decodeDisclosure:false})=>{var Ae;const he=R.split(ye.COMBINED_serialization_FORMAT_SEPARATOR);const me=he.shift();const ve={jwt:me};if(he[he.length-1].includes(".")){ve.kbt=he.pop()}if(he.length){ve.disclosures=he.filter((R=>R.length>0))}if(pe.decodeDisclosure){ve.disclosures=(Ae=ve.disclosures)===null||Ae===void 0?void 0:Ae.map((R=>JSON.parse((new TextDecoder).decode(ge.base64url.decode(R)))))}if(!ve.disclosures){ve.disclosures=[]}return ve};const expload=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=compact(R);const he=(0,ge.decodeJwt)(Ae.jwt);Ae.issued=he;const ye=pe.digester;const me={};const ve={};for(const R of Ae.disclosures){const pe=yield ye.digest(R);ve[pe]=R;me[pe]=JSON.parse((new TextDecoder).decode(ge.base64url.decode(R)))}Ae.disclosureMap=me;Ae.hashToEncodedDisclosureMap=ve;return Ae}));const me={compact:compact,expload:expload};pe["default"]=me},22180:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(7591);const itemHasDisclosure=R=>typeof R==="object"&&Object.keys(R).length===1&&R[he.SD_LIST_PREFIX]!==undefined&&typeof R[he.SD_LIST_PREFIX]==="string";const _select_disclosures_list=(R,pe,Ae)=>{if(pe===null||pe===undefined){return[]}if(pe===true){pe=[]}if(!Array.isArray(pe)){throw new Error("To disclose array elements, an array must be provided as disclosure information.")}for(const ge in R){const ye=R[ge];let me=pe[ge];if(itemHasDisclosure(ye)){const R=ye[he.SD_LIST_PREFIX];if(!Ae._hash_to_decoded_disclosure[R]){continue}const[pe,ge]=Ae._hash_to_decoded_disclosure[R];if(me===false||me===undefined){continue}Ae.hs_disclosures.push(Ae._hash_to_disclosure[R]);if(Array.isArray(ge)){if(me===true){me=[]}if(typeof me!=="object"){throw new Error("To disclose array elements nested in arrays, provide an array (can be empty).")}_select_disclosures(ge,me,Ae)}else if(typeof ge==="object"){if(me===true){me={}}if(typeof me!=="object"){throw new Error("To disclose object elements in arrays, provide an object (can be empty).")}_select_disclosures(ge,me,Ae)}}else{_select_disclosures(ye,me,Ae)}}};const _select_disclosures_dict=(R,pe,Ae)=>{if(pe===null||pe===undefined){return{}}if(pe===true){pe={}}for(const[ge,ye]of Object.entries(R)){if(ge===he.SD_DIGESTS_KEY){for(const R of ye){if(Ae._hash_to_decoded_disclosure[R]===undefined){continue}const[he,ge,ye]=Ae._hash_to_decoded_disclosure[R];try{if(pe[ge]){Ae.hs_disclosures.push(Ae._hash_to_disclosure[R])}else{}}catch(R){throw new Error("claims_to_disclose does not contain a dict where a dict was expected (found {claims_to_disclose} instead)")}_select_disclosures(ye,pe[ge],Ae)}}else{_select_disclosures(ye,pe[ge],Ae)}}};function _select_disclosures(R,pe,Ae){if(Array.isArray(R)){_select_disclosures_list(R,pe,Ae)}else if(R!==null&&typeof R==="object"){_select_disclosures_dict(R,pe,Ae)}else{}}pe["default"]=_select_disclosures},48730:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(7591);const itemHasDisclosure=R=>R!==null&&typeof R==="object"&&Object.keys(R).length===1&&R[he.SD_LIST_PREFIX]!==undefined&&typeof R[he.SD_LIST_PREFIX]==="string";const _rec_unpack_disclosed_claims=(R,pe)=>{if(Array.isArray(R)){const Ae=[];for(const ge of R){if(itemHasDisclosure(ge)){const R=ge[he.SD_LIST_PREFIX];if(pe._hash_to_decoded_disclosure[R]){const[he,ge]=pe._hash_to_decoded_disclosure[R];Ae.push(_rec_unpack_disclosed_claims(ge,pe))}}else{Ae.push(_rec_unpack_disclosed_claims(ge,pe))}}return Ae}else if(R!==null&&typeof R==="object"){const Ae={};for(const[ge,ye]of Object.entries(R)){if(ge!==he.SD_DIGESTS_KEY&&ge!==he.DIGEST_ALG_KEY){Ae[ge]=_rec_unpack_disclosed_claims(ye,pe)}}for(const ge of R[he.SD_DIGESTS_KEY]||[]){if(pe._duplicate_hash_check[ge]){throw new Error(`Duplicate hash found in SD-JWT: ${ge}`)}pe._duplicate_hash_check.push(ge);if(pe._hash_to_decoded_disclosure[ge]){const[R,he,ye]=pe._hash_to_decoded_disclosure[ge];if(Ae[he]){throw new Error(`Duplicate key found when unpacking disclosed claim: '${he}' in ${Ae}. This is not allowed.`)}const me=_rec_unpack_disclosed_claims(ye,pe);Ae[he]=me}}return Ae}else{return R}};const _unpack_disclosed_claims=(R,pe)=>{pe._duplicate_hash_check=[];return _rec_unpack_disclosed_claims(R,pe)};pe["default"]=_unpack_disclosed_claims},7591:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.UnexpectedSDObjException=pe.SDJWTHasSDClaimException=pe.KB_JWT_TYP_HEADER=pe.COMBINED_serialization_FORMAT_SEPARATOR=pe.SD_LIST_PREFIX=pe.DIGEST_ALG_KEY=pe.SD_DIGESTS_KEY=pe.DEFAULT_SIGNING_ALG=void 0;pe.DEFAULT_SIGNING_ALG="ES256";pe.SD_DIGESTS_KEY="_sd";pe.DIGEST_ALG_KEY="_sd_alg";pe.SD_LIST_PREFIX="...";pe.COMBINED_serialization_FORMAT_SEPARATOR="~";pe.KB_JWT_TYP_HEADER="kb+jwt";pe.SDJWTHasSDClaimException=`Input data contains the special claim '${pe.SD_DIGESTS_KEY}' reserved for SD-JWT internal data.`;pe.UnexpectedSDObjException=`Input data contains a claim value that should not be wrapped by SDObj.`},44487:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});const ve=Ae(20037);const be=Promise.resolve().then((()=>ye(Ae(6113)))).catch((()=>{}));pe["default"]=R=>me(void 0,void 0,void 0,(function*(){try{const pe=(new TextEncoder).encode(R);const Ae=yield window.crypto.subtle.digest("SHA-256",pe);return ve.base64url.encode(new Uint8Array(Ae))}catch(pe){const Ae=(new TextEncoder).encode(R);const he=yield(yield be).createHash("sha256").update(Ae).digest();return ve.base64url.encode(new Uint8Array(he))}}))},95681:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ge=he(Ae(44487));const digester=(R="sha-256")=>{if(R!=="sha-256"){throw new Error("Only sha-256 digest is supported.")}return{name:R,digest:ge.default}};pe["default"]=digester},85844:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const be=ve(Ae(42163));const Ee=ve(Ae(95681));const Ce=ve(Ae(91620));const we=ve(Ae(93396));const _e=ve(Ae(99623));const Ie=ye(Ae(20037));const Se=Ae(7591);const Be=ve(Ae(22180));const ke=ve(Ae(54507));const Oe=Ae(98485);const Re=Ae(71154);const holder=(R={})=>{if(R.privateKeyJwk){R.alg=R.privateKeyJwk.alg}if(!R.digester){R.digester=(0,Ee.default)()}if(!R.salter){R.salter=(0,Ce.default)()}if(!R.alg&&R.signer){throw new Error("alg must be passed as an option or restricted via privateKeyJwk")}return{issue:({token:pe,disclosure:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){if(R.privateKeyJwk){R.signer=yield we.default.signer(R.privateKeyJwk)}const ye=ke.default.compact(pe);const me=Ie.decodeJwt(ye.jwt);const{disclosureMap:ve,hashToEncodedDisclosureMap:Ee}=yield ke.default.expload(pe,R);const Ce={hs_disclosures:[],_hash_to_disclosure:Ee,_hash_to_decoded_disclosure:ve};const Qe=JSON.parse(JSON.stringify(be.default.load(Ae),null,2));(0,Be.default)(me,Qe,Ce);const xe=[...Ce.hs_disclosures];if(me.cnf&&(!he||!ge)){throw new Error("Credential requires confirmation but audience and nonce are missing.")}let Pe=ye.jwt;if(xe.length){Pe+=Se.COMBINED_serialization_FORMAT_SEPARATOR+xe.join(Se.COMBINED_serialization_FORMAT_SEPARATOR)}Pe+=Se.COMBINED_serialization_FORMAT_SEPARATOR;if(he&&ge){if(!me.cnf){throw new Error("Credential does not contain confirmation method, therefore audience and nonce are not supported.")}if(!R.signer){throw new Error("Signer is required.")}const pe=yield Re.sd_hash.compute(Pe);const Ae=yield R.signer.sign({protectedHeader:(0,Oe.sortProtectedHeader)({alg:R.alg,kid:R.kid,typ:Se.KB_JWT_TYP_HEADER}),claimset:{iss:R.iss,iat:(0,_e.default)().unix(),nonce:ge,aud:he,sd_hash:pe}});Pe+=Ae}return Pe}))}};pe["default"]=holder},10963:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=ge(Ae(42163));const me=ge(Ae(95681));const ve=ge(Ae(91620));const be=ge(Ae(93396));const Ee=ge(Ae(99623));const Ce=Ae(7591);const we=Ae(86777);const _e=Ae(98485);const issuer=R=>{if(R.privateKeyJwk){R.alg=R.privateKeyJwk.alg}if(!R.digester){R.digester=(0,me.default)()}if(!R.salter){R.salter=(0,ve.default)()}if(!R.alg&&R.signer){throw new Error("alg must be passed as an option or restricted via privateKeyJwk")}return{issue:({claimset:pe,jwk:Ae,kid:ge,iat:me,exp:ve})=>he(void 0,void 0,void 0,(function*(){if(!R.signer){if(!R.privateKeyJwk){throw new Error("signer or privateKeyJwk required for issuance")}R.signer=yield be.default.signer(R.privateKeyJwk)}if(!R.digester){throw new Error("digester is required.")}const he={disclosures:{},salter:R.salter,digester:R.digester};const Ie=yield(0,we.issuancePayload)(ye.default.load(pe),he);const Se={alg:R.alg,kid:R.kid,typ:R.typ,cty:R.cty};const Be=Object.assign({iss:R.iss,iat:me||(0,Ee.default)().unix(),exp:ve||(0,Ee.default)().add(2,"weeks").unix(),cnf:Ae||ge?{jwk:Ae,kid:ge}:undefined,[Ce.DIGEST_ALG_KEY]:he.digester.name},Ie);const ke=yield R.signer.sign({protectedHeader:(0,_e.sortProtectedHeader)(Se),claimset:Be});const Oe=ke+Ce.COMBINED_serialization_FORMAT_SEPARATOR+Object.keys(he.disclosures).join(Ce.COMBINED_serialization_FORMAT_SEPARATOR);return Oe}))}};pe["default"]=issuer},58779:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ge=he(Ae(50820));const ye=ge.default;pe["default"]=ye},96966:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});const ve=Promise.resolve().then((()=>ye(Ae(6113)))).catch((()=>{}));pe["default"]=(R=16)=>me(void 0,void 0,void 0,(function*(){try{return crypto.getRandomValues(new Uint8Array(R))}catch(pe){return(yield ve).randomFillSync(new Uint8Array(R))}}))},91620:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=Ae(20037);const me=ge(Ae(96966));pe["default"]=()=>{const salter=()=>he(void 0,void 0,void 0,(function*(){const R=yield(0,me.default)(16);const pe=ye.base64url.encode(R);return pe}));return salter}},71154:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.sd_hash=void 0;const ye=ge(Ae(44487));const me=Ae(7591);const compute=R=>he(void 0,void 0,void 0,(function*(){if(!R.includes(me.COMBINED_serialization_FORMAT_SEPARATOR)){throw new Error("_sd_hash can only be computed over +sd-jwt")}return(0,ye.default)(R)}));pe.sd_hash={compute:compute}},98485:function(R,pe){"use strict";var Ae=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);ge{const{alg:pe,iss:he,kid:ge,typ:ye,cty:me}=R,ve=Ae(R,["alg","iss","kid","typ","cty"]);return JSON.parse(JSON.stringify(Object.assign({alg:pe,iss:he,kid:ge,typ:ye,cty:me},ve)))};pe.sortProtectedHeader=sortProtectedHeader},58293:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.validate_public_claims=void 0;const ge=he(Ae(99623));const acceptableAud=(R,pe)=>Array.isArray(pe)?pe.includes(R):pe===R;const validate_public_claims=(R,pe,Ae)=>{const{debug:he,reference_audience:ye,reference_nonce:me}=Ae;const{iat:ve,nbf:be,exp:Ee,aud:Ce,nonce:we}=pe;if(Ce){if(!ye||!acceptableAud(ye,Ce)){throw new Error(`${R} presented audience does not match reference value: ${ye}`)}}if(we!==undefined){if(me!==we){throw new Error(`${R} presented nonce does not match reference value: ${me}`)}}const _e=(0,ge.default)();if(ve){const pe=ge.default.unix(ve);const Ae=_e.isBefore(pe);if(he){console.info(`${R} issued`,pe.fromNow())}if(Ae){throw new Error(`${R} cannot be issued in the future...`+pe.fromNow())}}else{if(he){console.info(`${R} has no issuance time`)}}if(be){const pe=ge.default.unix(be);const Ae=_e.isBefore(pe);if(he){console.info(`${R} activated`,pe.fromNow())}if(Ae){throw new Error(`${R} cannot be activated in the future...`+pe.fromNow())}}else{if(he){console.info(`${R} has no activation time`)}}if(Ee){const pe=ge.default.unix(Ee);const Ae=_e.isAfter(pe);if(he){console.info(`${R} expires`,pe.fromNow())}if(Ae){throw new Error(`${R} cannot be expired in the past...`+pe.fromNow())}}else{if(he){console.info(`${R} has no expiration time`)}}};pe.validate_public_claims=validate_public_claims},51633:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.validate_sd_hash=void 0;const ge=Ae(71154);const validate_sd_hash=(R,pe,Ae=false)=>he(void 0,void 0,void 0,(function*(){const he=R.split("~");he.pop();const ye=he.join("~")+"~";const me=yield ge.sd_hash.compute(ye);const ve=me===pe;if(Ae){console.info("Key Binding Token sd_hash matches presentation token")}if(!ve){throw new Error("Key Binding Token sd_hash does not match presentation token")}}));pe.validate_sd_hash=validate_sd_hash},17687:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=ge(Ae(95681));const me=ge(Ae(93396));const ve=ge(Ae(54507));const be=Ae(7591);const Ee=ge(Ae(48730));const Ce=Ae(20037);const we=Ae(58293);const _e=Ae(51633);function verifier(R){if(!R.digester){R.digester=(0,ye.default)()}if(R.publicKeyJwk){const{publicKeyJwk:pe}=R;R.alg=R.alg||pe.alg;if(!R.alg){throw new Error("alg must be passed as an option or restricted via publicKeyJwk")}R.verifier={verify:R=>he(this,void 0,void 0,(function*(){const{jwt:Ae}=ve.default.compact(R);const he=yield me.default.verifier(pe);return he.verify(Ae)}))}}return{verify:({token:pe,audience:Ae,nonce:ge})=>he(this,void 0,void 0,(function*(){var he;const ye=false;const{jwt:Ie,kbt:Se}=ve.default.compact(pe);const Be=(0,Ce.decodeProtectedHeader)(Ie);let ke;if(R.verifier){ke=yield R.verifier.verify(pe)}else if(R.resolver){if(!Be.kid){throw new Error("kid is required when resolver is used to obtain public keys")}const pe=yield R.resolver.resolve(Be.kid);const Ae=yield me.default.verifier(pe);ke=yield Ae.verify(Ie)}else{throw new Error("a verifier or resolver is required, but not present.")}if(!R.digester){throw new Error("digester is required")}if(ke.claimset[be.DIGEST_ALG_KEY]!==R.digester.name){throw new Error("Invalid hash algorithm")}(0,we.validate_public_claims)("Issuer-signed JWT",ke.claimset,{debug:ye,reference_audience:ke.claimset.aud,reference_nonce:ke.claimset.nonce});if(ye){console.info("Verified Issuer-signed JWT: ",JSON.stringify(ke,null,2))}const{cnf:Oe}=ke.claimset;if(Oe){if(!Se){throw new Error("Verification of this credential requires proof of posession from the holder. Key binding token is expected based on claims, but was not found.")}try{let ve;let be;let Ee;let Ce;const{cnf:Ie}=ke.claimset;if(Ie.jwk){({cnf:{jwk:be}}=ke.claimset);Ee=be;if(ye){console.info("Issued JWT has JWK confirmation method.")}}if(ke.claimset.cnf.kid){({cnf:{kid:ve}}=ke.claimset);if(ye){console.info("Issued JWT has kid confirmation method.")}if(!R.resolver){throw new Error("Resolver is required for kid confirmation method")}Ee=yield(he=R.resolver)===null||he===void 0?void 0:he.resolve(ve)}const Be=yield me.default.verifier(Ee);Ce=yield Be.verify(Se);if(!Ce){throw new Error("Failed to verify key binding token")}yield(0,_e.validate_sd_hash)(pe,Ce.claimset.sd_hash,ye);(0,we.validate_public_claims)("Key Binding Token",Ce.claimset,{debug:ye,reference_audience:Ae,reference_nonce:ge});if(ye){console.info("Verified Key Binding Token: ",JSON.stringify(Ce,null,2))}}catch(R){console.error(R);throw new Error("Failed to validate key binding token.")}}else{if(ye){console.info("Issued JWT has no confirmation method.")}}const{disclosureMap:Re,hashToEncodedDisclosureMap:Qe}=yield ve.default.expload(pe,R);const xe={_hash_to_disclosure:Qe,_hash_to_decoded_disclosure:Re};const Pe=(0,Ee.default)(ke.claimset,xe);const Te=JSON.parse(JSON.stringify({protectedHeader:ke.protectedHeader,claimset:Pe}));return Te}))}}pe["default"]=verifier},24258:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},20037:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.cryptoRuntime=pe.base64url=pe.generateSecret=pe.generateKeyPair=pe.errors=pe.decodeJwt=pe.decodeProtectedHeader=pe.importJWK=pe.importX509=pe.importPKCS8=pe.importSPKI=pe.exportJWK=pe.exportSPKI=pe.exportPKCS8=pe.UnsecuredJWT=pe.createRemoteJWKSet=pe.createLocalJWKSet=pe.EmbeddedJWK=pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=pe.EncryptJWT=pe.SignJWT=pe.GeneralSign=pe.FlattenedSign=pe.CompactSign=pe.FlattenedEncrypt=pe.CompactEncrypt=pe.jwtDecrypt=pe.jwtVerify=pe.generalVerify=pe.flattenedVerify=pe.compactVerify=pe.GeneralEncrypt=pe.generalDecrypt=pe.flattenedDecrypt=pe.compactDecrypt=void 0;var he=Ae(86017);Object.defineProperty(pe,"compactDecrypt",{enumerable:true,get:function(){return he.compactDecrypt}});var ge=Ae(19479);Object.defineProperty(pe,"flattenedDecrypt",{enumerable:true,get:function(){return ge.flattenedDecrypt}});var ye=Ae(48028);Object.defineProperty(pe,"generalDecrypt",{enumerable:true,get:function(){return ye.generalDecrypt}});var me=Ae(71927);Object.defineProperty(pe,"GeneralEncrypt",{enumerable:true,get:function(){return me.GeneralEncrypt}});var ve=Ae(17420);Object.defineProperty(pe,"compactVerify",{enumerable:true,get:function(){return ve.compactVerify}});var be=Ae(20214);Object.defineProperty(pe,"flattenedVerify",{enumerable:true,get:function(){return be.flattenedVerify}});var Ee=Ae(9967);Object.defineProperty(pe,"generalVerify",{enumerable:true,get:function(){return Ee.generalVerify}});var Ce=Ae(46397);Object.defineProperty(pe,"jwtVerify",{enumerable:true,get:function(){return Ce.jwtVerify}});var we=Ae(54485);Object.defineProperty(pe,"jwtDecrypt",{enumerable:true,get:function(){return we.jwtDecrypt}});var _e=Ae(11217);Object.defineProperty(pe,"CompactEncrypt",{enumerable:true,get:function(){return _e.CompactEncrypt}});var Ie=Ae(4164);Object.defineProperty(pe,"FlattenedEncrypt",{enumerable:true,get:function(){return Ie.FlattenedEncrypt}});var Se=Ae(76658);Object.defineProperty(pe,"CompactSign",{enumerable:true,get:function(){return Se.CompactSign}});var Be=Ae(37658);Object.defineProperty(pe,"FlattenedSign",{enumerable:true,get:function(){return Be.FlattenedSign}});var ke=Ae(69635);Object.defineProperty(pe,"GeneralSign",{enumerable:true,get:function(){return ke.GeneralSign}});var Oe=Ae(34321);Object.defineProperty(pe,"SignJWT",{enumerable:true,get:function(){return Oe.SignJWT}});var Re=Ae(73799);Object.defineProperty(pe,"EncryptJWT",{enumerable:true,get:function(){return Re.EncryptJWT}});var Qe=Ae(85213);Object.defineProperty(pe,"calculateJwkThumbprint",{enumerable:true,get:function(){return Qe.calculateJwkThumbprint}});Object.defineProperty(pe,"calculateJwkThumbprintUri",{enumerable:true,get:function(){return Qe.calculateJwkThumbprintUri}});var xe=Ae(51974);Object.defineProperty(pe,"EmbeddedJWK",{enumerable:true,get:function(){return xe.EmbeddedJWK}});var Pe=Ae(29840);Object.defineProperty(pe,"createLocalJWKSet",{enumerable:true,get:function(){return Pe.createLocalJWKSet}});var Te=Ae(10469);Object.defineProperty(pe,"createRemoteJWKSet",{enumerable:true,get:function(){return Te.createRemoteJWKSet}});var De=Ae(35042);Object.defineProperty(pe,"UnsecuredJWT",{enumerable:true,get:function(){return De.UnsecuredJWT}});var Ne=Ae(11055);Object.defineProperty(pe,"exportPKCS8",{enumerable:true,get:function(){return Ne.exportPKCS8}});Object.defineProperty(pe,"exportSPKI",{enumerable:true,get:function(){return Ne.exportSPKI}});Object.defineProperty(pe,"exportJWK",{enumerable:true,get:function(){return Ne.exportJWK}});var Me=Ae(2646);Object.defineProperty(pe,"importSPKI",{enumerable:true,get:function(){return Me.importSPKI}});Object.defineProperty(pe,"importPKCS8",{enumerable:true,get:function(){return Me.importPKCS8}});Object.defineProperty(pe,"importX509",{enumerable:true,get:function(){return Me.importX509}});Object.defineProperty(pe,"importJWK",{enumerable:true,get:function(){return Me.importJWK}});var je=Ae(30672);Object.defineProperty(pe,"decodeProtectedHeader",{enumerable:true,get:function(){return je.decodeProtectedHeader}});var Fe=Ae(22220);Object.defineProperty(pe,"decodeJwt",{enumerable:true,get:function(){return Fe.decodeJwt}});pe.errors=Ae(96204);var Le=Ae(61039);Object.defineProperty(pe,"generateKeyPair",{enumerable:true,get:function(){return Le.generateKeyPair}});var Ue=Ae(78733);Object.defineProperty(pe,"generateSecret",{enumerable:true,get:function(){return Ue.generateSecret}});pe.base64url=Ae(51736);var He=Ae(75646);Object.defineProperty(pe,"cryptoRuntime",{enumerable:true,get:function(){return He.default}})},86017:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactDecrypt=void 0;const he=Ae(19479);const ge=Ae(96204);const ye=Ae(87243);async function compactDecrypt(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWEInvalid("Compact JWE must be a string or Uint8Array")}const{0:me,1:ve,2:be,3:Ee,4:Ce,length:we}=R.split(".");if(we!==5){throw new ge.JWEInvalid("Invalid Compact JWE")}const _e=await(0,he.flattenedDecrypt)({ciphertext:Ee,iv:be||undefined,protected:me||undefined,tag:Ce||undefined,encrypted_key:ve||undefined},pe,Ae);const Ie={plaintext:_e.plaintext,protectedHeader:_e.protectedHeader};if(typeof pe==="function"){return{...Ie,key:_e.key}}return Ie}pe.compactDecrypt=compactDecrypt},11217:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactEncrypt=void 0;const he=Ae(4164);class CompactEncrypt{constructor(R){this._flattened=new he.FlattenedEncrypt(R)}setContentEncryptionKey(R){this._flattened.setContentEncryptionKey(R);return this}setInitializationVector(R){this._flattened.setInitializationVector(R);return this}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}setKeyManagementParameters(R){this._flattened.setKeyManagementParameters(R);return this}async encrypt(R,pe){const Ae=await this._flattened.encrypt(R,pe);return[Ae.protected,Ae.encrypted_key,Ae.iv,Ae.ciphertext,Ae.tag].join(".")}}pe.CompactEncrypt=CompactEncrypt},19479:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedDecrypt=void 0;const he=Ae(78583);const ge=Ae(29547);const ye=Ae(67907);const me=Ae(96204);const ve=Ae(4118);const be=Ae(3240);const Ee=Ae(87782);const Ce=Ae(87243);const we=Ae(64290);const _e=Ae(96029);const Ie=Ae(21834);async function flattenedDecrypt(R,pe,Ae){var Se;if(!(0,be.default)(R)){throw new me.JWEInvalid("Flattened JWE must be an object")}if(R.protected===undefined&&R.header===undefined&&R.unprotected===undefined){throw new me.JWEInvalid("JOSE Header missing")}if(typeof R.iv!=="string"){throw new me.JWEInvalid("JWE Initialization Vector missing or incorrect type")}if(typeof R.ciphertext!=="string"){throw new me.JWEInvalid("JWE Ciphertext missing or incorrect type")}if(typeof R.tag!=="string"){throw new me.JWEInvalid("JWE Authentication Tag missing or incorrect type")}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new me.JWEInvalid("JWE Protected Header incorrect type")}if(R.encrypted_key!==undefined&&typeof R.encrypted_key!=="string"){throw new me.JWEInvalid("JWE Encrypted Key incorrect type")}if(R.aad!==undefined&&typeof R.aad!=="string"){throw new me.JWEInvalid("JWE AAD incorrect type")}if(R.header!==undefined&&!(0,be.default)(R.header)){throw new me.JWEInvalid("JWE Shared Unprotected Header incorrect type")}if(R.unprotected!==undefined&&!(0,be.default)(R.unprotected)){throw new me.JWEInvalid("JWE Per-Recipient Unprotected Header incorrect type")}let Be;if(R.protected){try{const pe=(0,he.decode)(R.protected);Be=JSON.parse(Ce.decoder.decode(pe))}catch{throw new me.JWEInvalid("JWE Protected Header is invalid")}}if(!(0,ve.default)(Be,R.header,R.unprotected)){throw new me.JWEInvalid("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint")}const ke={...Be,...R.header,...R.unprotected};(0,_e.default)(me.JWEInvalid,new Map,Ae===null||Ae===void 0?void 0:Ae.crit,Be,ke);if(ke.zip!==undefined){if(!Be||!Be.zip){throw new me.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}if(ke.zip!=="DEF"){throw new me.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}}const{alg:Oe,enc:Re}=ke;if(typeof Oe!=="string"||!Oe){throw new me.JWEInvalid("missing JWE Algorithm (alg) in JWE Header")}if(typeof Re!=="string"||!Re){throw new me.JWEInvalid("missing JWE Encryption Algorithm (enc) in JWE Header")}const Qe=Ae&&(0,Ie.default)("keyManagementAlgorithms",Ae.keyManagementAlgorithms);const xe=Ae&&(0,Ie.default)("contentEncryptionAlgorithms",Ae.contentEncryptionAlgorithms);if(Qe&&!Qe.has(Oe)){throw new me.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed')}if(xe&&!xe.has(Re)){throw new me.JOSEAlgNotAllowed('"enc" (Encryption Algorithm) Header Parameter not allowed')}let Pe;if(R.encrypted_key!==undefined){try{Pe=(0,he.decode)(R.encrypted_key)}catch{throw new me.JWEInvalid("Failed to base64url decode the encrypted_key")}}let Te=false;if(typeof pe==="function"){pe=await pe(Be,R);Te=true}let De;try{De=await(0,Ee.default)(Oe,pe,Pe,ke,Ae)}catch(R){if(R instanceof TypeError||R instanceof me.JWEInvalid||R instanceof me.JOSENotSupported){throw R}De=(0,we.default)(Re)}let Ne;let Me;try{Ne=(0,he.decode)(R.iv)}catch{throw new me.JWEInvalid("Failed to base64url decode the iv")}try{Me=(0,he.decode)(R.tag)}catch{throw new me.JWEInvalid("Failed to base64url decode the tag")}const je=Ce.encoder.encode((Se=R.protected)!==null&&Se!==void 0?Se:"");let Fe;if(R.aad!==undefined){Fe=(0,Ce.concat)(je,Ce.encoder.encode("."),Ce.encoder.encode(R.aad))}else{Fe=je}let Le;try{Le=(0,he.decode)(R.ciphertext)}catch{throw new me.JWEInvalid("Failed to base64url decode the ciphertext")}let Ue=await(0,ge.default)(Re,De,Le,Ne,Me,Fe);if(ke.zip==="DEF"){Ue=await((Ae===null||Ae===void 0?void 0:Ae.inflateRaw)||ye.inflate)(Ue)}const He={plaintext:Ue};if(R.protected!==undefined){He.protectedHeader=Be}if(R.aad!==undefined){try{He.additionalAuthenticatedData=(0,he.decode)(R.aad)}catch{throw new me.JWEInvalid("Failed to base64url decode the aad")}}if(R.unprotected!==undefined){He.sharedUnprotectedHeader=R.unprotected}if(R.header!==undefined){He.unprotectedHeader=R.header}if(Te){return{...He,key:pe}}return He}pe.flattenedDecrypt=flattenedDecrypt},4164:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedEncrypt=pe.unprotected=void 0;const he=Ae(78583);const ge=Ae(1175);const ye=Ae(67907);const me=Ae(77770);const ve=Ae(94290);const be=Ae(96204);const Ee=Ae(4118);const Ce=Ae(87243);const we=Ae(96029);pe.unprotected=Symbol();class FlattenedEncrypt{constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("plaintext must be an instance of Uint8Array")}this._plaintext=R}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._sharedUnprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._sharedUnprotectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}async encrypt(R,Ae){if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader){throw new be.JWEInvalid("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()")}if(!(0,Ee.default)(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader)){throw new be.JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint")}const _e={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};(0,we.default)(be.JWEInvalid,new Map,Ae===null||Ae===void 0?void 0:Ae.crit,this._protectedHeader,_e);if(_e.zip!==undefined){if(!this._protectedHeader||!this._protectedHeader.zip){throw new be.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}if(_e.zip!=="DEF"){throw new be.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}}const{alg:Ie,enc:Se}=_e;if(typeof Ie!=="string"||!Ie){throw new be.JWEInvalid('JWE "alg" (Algorithm) Header Parameter missing or invalid')}if(typeof Se!=="string"||!Se){throw new be.JWEInvalid('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid')}let Be;if(Ie==="dir"){if(this._cek){throw new TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}}else if(Ie==="ECDH-ES"){if(this._cek){throw new TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement")}}let ke;{let he;({cek:ke,encryptedKey:Be,parameters:he}=await(0,ve.default)(Ie,Se,R,this._cek,this._keyManagementParameters));if(he){if(Ae&&pe.unprotected in Ae){if(!this._unprotectedHeader){this.setUnprotectedHeader(he)}else{this._unprotectedHeader={...this._unprotectedHeader,...he}}}else{if(!this._protectedHeader){this.setProtectedHeader(he)}else{this._protectedHeader={...this._protectedHeader,...he}}}}}this._iv||(this._iv=(0,me.default)(Se));let Oe;let Re;let Qe;if(this._protectedHeader){Re=Ce.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{Re=Ce.encoder.encode("")}if(this._aad){Qe=(0,he.encode)(this._aad);Oe=(0,Ce.concat)(Re,Ce.encoder.encode("."),Ce.encoder.encode(Qe))}else{Oe=Re}let xe;let Pe;if(_e.zip==="DEF"){const R=await((Ae===null||Ae===void 0?void 0:Ae.deflateRaw)||ye.deflate)(this._plaintext);({ciphertext:xe,tag:Pe}=await(0,ge.default)(Se,R,ke,this._iv,Oe))}else{({ciphertext:xe,tag:Pe}=await(0,ge.default)(Se,this._plaintext,ke,this._iv,Oe))}const Te={ciphertext:(0,he.encode)(xe),iv:(0,he.encode)(this._iv),tag:(0,he.encode)(Pe)};if(Be){Te.encrypted_key=(0,he.encode)(Be)}if(Qe){Te.aad=Qe}if(this._protectedHeader){Te.protected=Ce.decoder.decode(Re)}if(this._sharedUnprotectedHeader){Te.unprotected=this._sharedUnprotectedHeader}if(this._unprotectedHeader){Te.header=this._unprotectedHeader}return Te}}pe.FlattenedEncrypt=FlattenedEncrypt},48028:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalDecrypt=void 0;const he=Ae(19479);const ge=Ae(96204);const ye=Ae(3240);async function generalDecrypt(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWEInvalid("General JWE must be an object")}if(!Array.isArray(R.recipients)||!R.recipients.every(ye.default)){throw new ge.JWEInvalid("JWE Recipients missing or incorrect type")}if(!R.recipients.length){throw new ge.JWEInvalid("JWE Recipients has no members")}for(const ge of R.recipients){try{return await(0,he.flattenedDecrypt)({aad:R.aad,ciphertext:R.ciphertext,encrypted_key:ge.encrypted_key,header:ge.header,iv:R.iv,protected:R.protected,tag:R.tag,unprotected:R.unprotected},pe,Ae)}catch{}}throw new ge.JWEDecryptionFailed}pe.generalDecrypt=generalDecrypt},71927:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralEncrypt=void 0;const he=Ae(4164);const ge=Ae(96204);const ye=Ae(64290);const me=Ae(4118);const ve=Ae(94290);const be=Ae(78583);const Ee=Ae(96029);class IndividualRecipient{constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addRecipient(...R){return this.parent.addRecipient(...R)}encrypt(...R){return this.parent.encrypt(...R)}done(){return this.parent}}class GeneralEncrypt{constructor(R){this._recipients=[];this._plaintext=R}addRecipient(R,pe){const Ae=new IndividualRecipient(this,R,{crit:pe===null||pe===void 0?void 0:pe.crit});this._recipients.push(Ae);return Ae}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}async encrypt(R){var pe,Ae,Ce;if(!this._recipients.length){throw new ge.JWEInvalid("at least one recipient must be added")}R={deflateRaw:R===null||R===void 0?void 0:R.deflateRaw};if(this._recipients.length===1){const[pe]=this._recipients;const Ae=await new he.FlattenedEncrypt(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(pe.unprotectedHeader).encrypt(pe.key,{...pe.options,...R});let ge={ciphertext:Ae.ciphertext,iv:Ae.iv,recipients:[{}],tag:Ae.tag};if(Ae.aad)ge.aad=Ae.aad;if(Ae.protected)ge.protected=Ae.protected;if(Ae.unprotected)ge.unprotected=Ae.unprotected;if(Ae.encrypted_key)ge.recipients[0].encrypted_key=Ae.encrypted_key;if(Ae.header)ge.recipients[0].header=Ae.header;return ge}let we;for(let R=0;R{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EmbeddedJWK=void 0;const he=Ae(2646);const ge=Ae(3240);const ye=Ae(96204);async function EmbeddedJWK(R,pe){const Ae={...R,...pe===null||pe===void 0?void 0:pe.header};if(!(0,ge.default)(Ae.jwk)){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a JSON object')}const me=await(0,he.importJWK)({...Ae.jwk,ext:true},Ae.alg,true);if(me instanceof Uint8Array||me.type!=="public"){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a public key')}return me}pe.EmbeddedJWK=EmbeddedJWK},85213:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=void 0;const he=Ae(7461);const ge=Ae(78583);const ye=Ae(96204);const me=Ae(87243);const ve=Ae(3240);const check=(R,pe)=>{if(typeof R!=="string"||!R){throw new ye.JWKInvalid(`${pe} missing or invalid`)}};async function calculateJwkThumbprint(R,pe){if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe!==null&&pe!==void 0?pe:pe="sha256";if(pe!=="sha256"&&pe!=="sha384"&&pe!=="sha512"){throw new TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"')}let Ae;switch(R.kty){case"EC":check(R.crv,'"crv" (Curve) Parameter');check(R.x,'"x" (X Coordinate) Parameter');check(R.y,'"y" (Y Coordinate) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x,y:R.y};break;case"OKP":check(R.crv,'"crv" (Subtype of Key Pair) Parameter');check(R.x,'"x" (Public Key) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x};break;case"RSA":check(R.e,'"e" (Exponent) Parameter');check(R.n,'"n" (Modulus) Parameter');Ae={e:R.e,kty:R.kty,n:R.n};break;case"oct":check(R.k,'"k" (Key Value) Parameter');Ae={k:R.k,kty:R.kty};break;default:throw new ye.JOSENotSupported('"kty" (Key Type) Parameter missing or unsupported')}const be=me.encoder.encode(JSON.stringify(Ae));return(0,ge.encode)(await(0,he.default)(pe,be))}pe.calculateJwkThumbprint=calculateJwkThumbprint;async function calculateJwkThumbprintUri(R,pe){pe!==null&&pe!==void 0?pe:pe="sha256";const Ae=await calculateJwkThumbprint(R,pe);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${pe.slice(-3)}:${Ae}`}pe.calculateJwkThumbprintUri=calculateJwkThumbprintUri},29840:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createLocalJWKSet=pe.LocalJWKSet=pe.isJWKSLike=void 0;const he=Ae(2646);const ge=Ae(96204);const ye=Ae(3240);function getKtyFromAlg(R){switch(typeof R==="string"&&R.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new ge.JOSENotSupported('Unsupported "alg" value for a JSON Web Key Set')}}function isJWKSLike(R){return R&&typeof R==="object"&&Array.isArray(R.keys)&&R.keys.every(isJWKLike)}pe.isJWKSLike=isJWKSLike;function isJWKLike(R){return(0,ye.default)(R)}function clone(R){if(typeof structuredClone==="function"){return structuredClone(R)}return JSON.parse(JSON.stringify(R))}class LocalJWKSet{constructor(R){this._cached=new WeakMap;if(!isJWKSLike(R)){throw new ge.JWKSInvalid("JSON Web Key Set malformed")}this._jwks=clone(R)}async getKey(R,pe){const{alg:Ae,kid:he}={...R,...pe===null||pe===void 0?void 0:pe.header};const ye=getKtyFromAlg(Ae);const me=this._jwks.keys.filter((R=>{let pe=ye===R.kty;if(pe&&typeof he==="string"){pe=he===R.kid}if(pe&&typeof R.alg==="string"){pe=Ae===R.alg}if(pe&&typeof R.use==="string"){pe=R.use==="sig"}if(pe&&Array.isArray(R.key_ops)){pe=R.key_ops.includes("verify")}if(pe&&Ae==="EdDSA"){pe=R.crv==="Ed25519"||R.crv==="Ed448"}if(pe){switch(Ae){case"ES256":pe=R.crv==="P-256";break;case"ES256K":pe=R.crv==="secp256k1";break;case"ES384":pe=R.crv==="P-384";break;case"ES512":pe=R.crv==="P-521";break}}return pe}));const{0:ve,length:be}=me;if(be===0){throw new ge.JWKSNoMatchingKey}else if(be!==1){const R=new ge.JWKSMultipleMatchingKeys;const{_cached:pe}=this;R[Symbol.asyncIterator]=async function*(){for(const R of me){try{yield await importWithAlgCache(pe,R,Ae)}catch{continue}}};throw R}return importWithAlgCache(this._cached,ve,Ae)}}pe.LocalJWKSet=LocalJWKSet;async function importWithAlgCache(R,pe,Ae){const ye=R.get(pe)||R.set(pe,{}).get(pe);if(ye[Ae]===undefined){const R=await(0,he.importJWK)({...pe,ext:true},Ae);if(R instanceof Uint8Array||R.type!=="public"){throw new ge.JWKSInvalid("JSON Web Key Set members must be public keys")}ye[Ae]=R}return ye[Ae]}function createLocalJWKSet(R){const pe=new LocalJWKSet(R);return async function(R,Ae){return pe.getKey(R,Ae)}}pe.createLocalJWKSet=createLocalJWKSet},10469:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createRemoteJWKSet=void 0;const he=Ae(15176);const ge=Ae(96204);const ye=Ae(29840);function isCloudflareWorkers(){return typeof WebSocketPair!=="undefined"||typeof navigator!=="undefined"&&navigator.userAgent==="Cloudflare-Workers"||typeof EdgeRuntime!=="undefined"&&EdgeRuntime==="vercel"}class RemoteJWKSet extends ye.LocalJWKSet{constructor(R,pe){super({keys:[]});this._jwks=undefined;if(!(R instanceof URL)){throw new TypeError("url must be an instance of URL")}this._url=new URL(R.href);this._options={agent:pe===null||pe===void 0?void 0:pe.agent,headers:pe===null||pe===void 0?void 0:pe.headers};this._timeoutDuration=typeof(pe===null||pe===void 0?void 0:pe.timeoutDuration)==="number"?pe===null||pe===void 0?void 0:pe.timeoutDuration:5e3;this._cooldownDuration=typeof(pe===null||pe===void 0?void 0:pe.cooldownDuration)==="number"?pe===null||pe===void 0?void 0:pe.cooldownDuration:3e4;this._cacheMaxAge=typeof(pe===null||pe===void 0?void 0:pe.cacheMaxAge)==="number"?pe===null||pe===void 0?void 0:pe.cacheMaxAge:6e5}coolingDown(){return typeof this._jwksTimestamp==="number"?Date.now(){if(!(0,ye.isJWKSLike)(R)){throw new ge.JWKSInvalid("JSON Web Key Set malformed")}this._jwks={keys:R.keys};this._jwksTimestamp=Date.now();this._pendingFetch=undefined})).catch((R=>{this._pendingFetch=undefined;throw R})));await this._pendingFetch}}function createRemoteJWKSet(R,pe){const Ae=new RemoteJWKSet(R,pe);return async function(R,pe){return Ae.getKey(R,pe)}}pe.createRemoteJWKSet=createRemoteJWKSet},76658:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactSign=void 0;const he=Ae(37658);class CompactSign{constructor(R){this._flattened=new he.FlattenedSign(R)}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}async sign(R,pe){const Ae=await this._flattened.sign(R,pe);if(Ae.payload===undefined){throw new TypeError("use the flattened module for creating JWS with b64: false")}return`${Ae.protected}.${Ae.payload}.${Ae.signature}`}}pe.CompactSign=CompactSign},17420:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactVerify=void 0;const he=Ae(20214);const ge=Ae(96204);const ye=Ae(87243);async function compactVerify(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWSInvalid("Compact JWS must be a string or Uint8Array")}const{0:me,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3){throw new ge.JWSInvalid("Invalid Compact JWS")}const Ce=await(0,he.flattenedVerify)({payload:ve,protected:me,signature:be},pe,Ae);const we={payload:Ce.payload,protectedHeader:Ce.protectedHeader};if(typeof pe==="function"){return{...we,key:Ce.key}}return we}pe.compactVerify=compactVerify},37658:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedSign=void 0;const he=Ae(78583);const ge=Ae(55602);const ye=Ae(4118);const me=Ae(96204);const ve=Ae(87243);const be=Ae(85263);const Ee=Ae(96029);class FlattenedSign{constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("payload must be an instance of Uint8Array")}this._payload=R}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}async sign(R,pe){if(!this._protectedHeader&&!this._unprotectedHeader){throw new me.JWSInvalid("either setProtectedHeader or setUnprotectedHeader must be called before #sign()")}if(!(0,ye.default)(this._protectedHeader,this._unprotectedHeader)){throw new me.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Ae={...this._protectedHeader,...this._unprotectedHeader};const Ce=(0,Ee.default)(me.JWSInvalid,new Map([["b64",true]]),pe===null||pe===void 0?void 0:pe.crit,this._protectedHeader,Ae);let we=true;if(Ce.has("b64")){we=this._protectedHeader.b64;if(typeof we!=="boolean"){throw new me.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:_e}=Ae;if(typeof _e!=="string"||!_e){throw new me.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}(0,be.default)(_e,R,"sign");let Ie=this._payload;if(we){Ie=ve.encoder.encode((0,he.encode)(Ie))}let Se;if(this._protectedHeader){Se=ve.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{Se=ve.encoder.encode("")}const Be=(0,ve.concat)(Se,ve.encoder.encode("."),Ie);const ke=await(0,ge.default)(_e,R,Be);const Oe={signature:(0,he.encode)(ke),payload:""};if(we){Oe.payload=ve.decoder.decode(Ie)}if(this._unprotectedHeader){Oe.header=this._unprotectedHeader}if(this._protectedHeader){Oe.protected=ve.decoder.decode(Se)}return Oe}}pe.FlattenedSign=FlattenedSign},20214:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedVerify=void 0;const he=Ae(78583);const ge=Ae(74706);const ye=Ae(96204);const me=Ae(87243);const ve=Ae(4118);const be=Ae(3240);const Ee=Ae(85263);const Ce=Ae(96029);const we=Ae(21834);async function flattenedVerify(R,pe,Ae){var _e;if(!(0,be.default)(R)){throw new ye.JWSInvalid("Flattened JWS must be an object")}if(R.protected===undefined&&R.header===undefined){throw new ye.JWSInvalid('Flattened JWS must have either of the "protected" or "header" members')}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new ye.JWSInvalid("JWS Protected Header incorrect type")}if(R.payload===undefined){throw new ye.JWSInvalid("JWS Payload missing")}if(typeof R.signature!=="string"){throw new ye.JWSInvalid("JWS Signature missing or incorrect type")}if(R.header!==undefined&&!(0,be.default)(R.header)){throw new ye.JWSInvalid("JWS Unprotected Header incorrect type")}let Ie={};if(R.protected){try{const pe=(0,he.decode)(R.protected);Ie=JSON.parse(me.decoder.decode(pe))}catch{throw new ye.JWSInvalid("JWS Protected Header is invalid")}}if(!(0,ve.default)(Ie,R.header)){throw new ye.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Se={...Ie,...R.header};const Be=(0,Ce.default)(ye.JWSInvalid,new Map([["b64",true]]),Ae===null||Ae===void 0?void 0:Ae.crit,Ie,Se);let ke=true;if(Be.has("b64")){ke=Ie.b64;if(typeof ke!=="boolean"){throw new ye.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:Oe}=Se;if(typeof Oe!=="string"||!Oe){throw new ye.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}const Re=Ae&&(0,we.default)("algorithms",Ae.algorithms);if(Re&&!Re.has(Oe)){throw new ye.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed')}if(ke){if(typeof R.payload!=="string"){throw new ye.JWSInvalid("JWS Payload must be a string")}}else if(typeof R.payload!=="string"&&!(R.payload instanceof Uint8Array)){throw new ye.JWSInvalid("JWS Payload must be a string or an Uint8Array instance")}let Qe=false;if(typeof pe==="function"){pe=await pe(Ie,R);Qe=true}(0,Ee.default)(Oe,pe,"verify");const xe=(0,me.concat)(me.encoder.encode((_e=R.protected)!==null&&_e!==void 0?_e:""),me.encoder.encode("."),typeof R.payload==="string"?me.encoder.encode(R.payload):R.payload);let Pe;try{Pe=(0,he.decode)(R.signature)}catch{throw new ye.JWSInvalid("Failed to base64url decode the signature")}const Te=await(0,ge.default)(Oe,pe,Pe,xe);if(!Te){throw new ye.JWSSignatureVerificationFailed}let De;if(ke){try{De=(0,he.decode)(R.payload)}catch{throw new ye.JWSInvalid("Failed to base64url decode the payload")}}else if(typeof R.payload==="string"){De=me.encoder.encode(R.payload)}else{De=R.payload}const Ne={payload:De};if(R.protected!==undefined){Ne.protectedHeader=Ie}if(R.header!==undefined){Ne.unprotectedHeader=R.header}if(Qe){return{...Ne,key:pe}}return Ne}pe.flattenedVerify=flattenedVerify},69635:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralSign=void 0;const he=Ae(37658);const ge=Ae(96204);class IndividualSignature{constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setProtectedHeader(R){if(this.protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this.protectedHeader=R;return this}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addSignature(...R){return this.parent.addSignature(...R)}sign(...R){return this.parent.sign(...R)}done(){return this.parent}}class GeneralSign{constructor(R){this._signatures=[];this._payload=R}addSignature(R,pe){const Ae=new IndividualSignature(this,R,pe);this._signatures.push(Ae);return Ae}async sign(){if(!this._signatures.length){throw new ge.JWSInvalid("at least one signature must be added")}const R={signatures:[],payload:""};for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalVerify=void 0;const he=Ae(20214);const ge=Ae(96204);const ye=Ae(3240);async function generalVerify(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWSInvalid("General JWS must be an object")}if(!Array.isArray(R.signatures)||!R.signatures.every(ye.default)){throw new ge.JWSInvalid("JWS Signatures missing or incorrect type")}for(const ge of R.signatures){try{return await(0,he.flattenedVerify)({header:ge.header,payload:R.payload,protected:ge.protected,signature:ge.signature},pe,Ae)}catch{}}throw new ge.JWSSignatureVerificationFailed}pe.generalVerify=generalVerify},54485:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtDecrypt=void 0;const he=Ae(86017);const ge=Ae(369);const ye=Ae(96204);async function jwtDecrypt(R,pe,Ae){const me=await(0,he.compactDecrypt)(R,pe,Ae);const ve=(0,ge.default)(me.protectedHeader,me.plaintext,Ae);const{protectedHeader:be}=me;if(be.iss!==undefined&&be.iss!==ve.iss){throw new ye.JWTClaimValidationFailed('replicated "iss" claim header parameter mismatch',"iss","mismatch")}if(be.sub!==undefined&&be.sub!==ve.sub){throw new ye.JWTClaimValidationFailed('replicated "sub" claim header parameter mismatch',"sub","mismatch")}if(be.aud!==undefined&&JSON.stringify(be.aud)!==JSON.stringify(ve.aud)){throw new ye.JWTClaimValidationFailed('replicated "aud" claim header parameter mismatch',"aud","mismatch")}const Ee={payload:ve,protectedHeader:be};if(typeof pe==="function"){return{...Ee,key:me.key}}return Ee}pe.jwtDecrypt=jwtDecrypt},73799:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncryptJWT=void 0;const he=Ae(11217);const ge=Ae(87243);const ye=Ae(35482);class EncryptJWT extends ye.ProduceJWT{setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}replicateIssuerAsHeader(){this._replicateIssuerAsHeader=true;return this}replicateSubjectAsHeader(){this._replicateSubjectAsHeader=true;return this}replicateAudienceAsHeader(){this._replicateAudienceAsHeader=true;return this}async encrypt(R,pe){const Ae=new he.CompactEncrypt(ge.encoder.encode(JSON.stringify(this._payload)));if(this._replicateIssuerAsHeader){this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}}if(this._replicateSubjectAsHeader){this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}}if(this._replicateAudienceAsHeader){this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}}Ae.setProtectedHeader(this._protectedHeader);if(this._iv){Ae.setInitializationVector(this._iv)}if(this._cek){Ae.setContentEncryptionKey(this._cek)}if(this._keyManagementParameters){Ae.setKeyManagementParameters(this._keyManagementParameters)}return Ae.encrypt(R,pe)}}pe.EncryptJWT=EncryptJWT},35482:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ProduceJWT=void 0;const he=Ae(85381);const ge=Ae(3240);const ye=Ae(84289);class ProduceJWT{constructor(R){if(!(0,ge.default)(R)){throw new TypeError("JWT Claims Set MUST be an object")}this._payload=R}setIssuer(R){this._payload={...this._payload,iss:R};return this}setSubject(R){this._payload={...this._payload,sub:R};return this}setAudience(R){this._payload={...this._payload,aud:R};return this}setJti(R){this._payload={...this._payload,jti:R};return this}setNotBefore(R){if(typeof R==="number"){this._payload={...this._payload,nbf:R}}else{this._payload={...this._payload,nbf:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setExpirationTime(R){if(typeof R==="number"){this._payload={...this._payload,exp:R}}else{this._payload={...this._payload,exp:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setIssuedAt(R){if(typeof R==="undefined"){this._payload={...this._payload,iat:(0,he.default)(new Date)}}else{this._payload={...this._payload,iat:R}}return this}}pe.ProduceJWT=ProduceJWT},34321:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SignJWT=void 0;const he=Ae(76658);const ge=Ae(96204);const ye=Ae(87243);const me=Ae(35482);class SignJWT extends me.ProduceJWT{setProtectedHeader(R){this._protectedHeader=R;return this}async sign(R,pe){var Ae;const me=new he.CompactSign(ye.encoder.encode(JSON.stringify(this._payload)));me.setProtectedHeader(this._protectedHeader);if(Array.isArray((Ae=this._protectedHeader)===null||Ae===void 0?void 0:Ae.crit)&&this._protectedHeader.crit.includes("b64")&&this._protectedHeader.b64===false){throw new ge.JWTInvalid("JWTs MUST NOT use unencoded payload")}return me.sign(R,pe)}}pe.SignJWT=SignJWT},35042:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.UnsecuredJWT=void 0;const he=Ae(78583);const ge=Ae(87243);const ye=Ae(96204);const me=Ae(369);const ve=Ae(35482);class UnsecuredJWT extends ve.ProduceJWT{encode(){const R=he.encode(JSON.stringify({alg:"none"}));const pe=he.encode(JSON.stringify(this._payload));return`${R}.${pe}.`}static decode(R,pe){if(typeof R!=="string"){throw new ye.JWTInvalid("Unsecured JWT must be a string")}const{0:Ae,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3||be!==""){throw new ye.JWTInvalid("Invalid Unsecured JWT")}let Ce;try{Ce=JSON.parse(ge.decoder.decode(he.decode(Ae)));if(Ce.alg!=="none")throw new Error}catch{throw new ye.JWTInvalid("Invalid Unsecured JWT")}const we=(0,me.default)(Ce,he.decode(ve),pe);return{payload:we,header:Ce}}}pe.UnsecuredJWT=UnsecuredJWT},46397:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtVerify=void 0;const he=Ae(17420);const ge=Ae(369);const ye=Ae(96204);async function jwtVerify(R,pe,Ae){var me;const ve=await(0,he.compactVerify)(R,pe,Ae);if(((me=ve.protectedHeader.crit)===null||me===void 0?void 0:me.includes("b64"))&&ve.protectedHeader.b64===false){throw new ye.JWTInvalid("JWTs MUST NOT use unencoded payload")}const be=(0,ge.default)(ve.protectedHeader,ve.payload,Ae);const Ee={payload:be,protectedHeader:ve.protectedHeader};if(typeof pe==="function"){return{...Ee,key:ve.key}}return Ee}pe.jwtVerify=jwtVerify},11055:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exportJWK=pe.exportPKCS8=pe.exportSPKI=void 0;const he=Ae(98426);const ge=Ae(98426);const ye=Ae(31986);async function exportSPKI(R){return(0,he.toSPKI)(R)}pe.exportSPKI=exportSPKI;async function exportPKCS8(R){return(0,ge.toPKCS8)(R)}pe.exportPKCS8=exportPKCS8;async function exportJWK(R){return(0,ye.default)(R)}pe.exportJWK=exportJWK},61039:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=void 0;const he=Ae(53782);async function generateKeyPair(R,pe){return(0,he.generateKeyPair)(R,pe)}pe.generateKeyPair=generateKeyPair},78733:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateSecret=void 0;const he=Ae(53782);async function generateSecret(R,pe){return(0,he.generateSecret)(R,pe)}pe.generateSecret=generateSecret},2646:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.importJWK=pe.importPKCS8=pe.importX509=pe.importSPKI=void 0;const he=Ae(78583);const ge=Ae(98426);const ye=Ae(41010);const me=Ae(96204);const ve=Ae(3240);async function importSPKI(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PUBLIC KEY-----")!==0){throw new TypeError('"spki" must be SPKI formatted string')}return(0,ge.fromSPKI)(R,pe,Ae)}pe.importSPKI=importSPKI;async function importX509(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN CERTIFICATE-----")!==0){throw new TypeError('"x509" must be X.509 formatted string')}return(0,ge.fromX509)(R,pe,Ae)}pe.importX509=importX509;async function importPKCS8(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PRIVATE KEY-----")!==0){throw new TypeError('"pkcs8" must be PKCS#8 formatted string')}return(0,ge.fromPKCS8)(R,pe,Ae)}pe.importPKCS8=importPKCS8;async function importJWK(R,pe,Ae){var ge;if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe||(pe=R.alg);switch(R.kty){case"oct":if(typeof R.k!=="string"||!R.k){throw new TypeError('missing "k" (Key Value) Parameter value')}Ae!==null&&Ae!==void 0?Ae:Ae=R.ext!==true;if(Ae){return(0,ye.default)({...R,alg:pe,ext:(ge=R.ext)!==null&&ge!==void 0?ge:false})}return(0,he.decode)(R.k);case"RSA":if(R.oth!==undefined){throw new me.JOSENotSupported('RSA JWK "oth" (Other Primes Info) Parameter value is not supported')}case"EC":case"OKP":return(0,ye.default)({...R,alg:pe});default:throw new me.JOSENotSupported('Unsupported "kty" (Key Type) Parameter value')}}pe.importJWK=importJWK},62857:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(1175);const ge=Ae(29547);const ye=Ae(77770);const me=Ae(78583);async function wrap(R,pe,Ae,ge){const ve=R.slice(0,7);ge||(ge=(0,ye.default)(ve));const{ciphertext:be,tag:Ee}=await(0,he.default)(ve,Ae,pe,ge,new Uint8Array(0));return{encryptedKey:be,iv:(0,me.encode)(ge),tag:(0,me.encode)(Ee)}}pe.wrap=wrap;async function unwrap(R,pe,Ae,he,ye){const me=R.slice(0,7);return(0,ge.default)(me,pe,Ae,he,ye,new Uint8Array(0))}pe.unwrap=unwrap},87243:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatKdf=pe.lengthAndInput=pe.uint32be=pe.uint64be=pe.p2s=pe.concat=pe.decoder=pe.encoder=void 0;const he=Ae(7461);pe.encoder=new TextEncoder;pe.decoder=new TextDecoder;const ge=2**32;function concat(...R){const pe=R.reduce(((R,{length:pe})=>R+pe),0);const Ae=new Uint8Array(pe);let he=0;R.forEach((R=>{Ae.set(R,he);he+=R.length}));return Ae}pe.concat=concat;function p2s(R,Ae){return concat(pe.encoder.encode(R),new Uint8Array([0]),Ae)}pe.p2s=p2s;function writeUInt32BE(R,pe,Ae){if(pe<0||pe>=ge){throw new RangeError(`value must be >= 0 and <= ${ge-1}. Received ${pe}`)}R.set([pe>>>24,pe>>>16,pe>>>8,pe&255],Ae)}function uint64be(R){const pe=Math.floor(R/ge);const Ae=R%ge;const he=new Uint8Array(8);writeUInt32BE(he,pe,0);writeUInt32BE(he,Ae,4);return he}pe.uint64be=uint64be;function uint32be(R){const pe=new Uint8Array(4);writeUInt32BE(pe,R);return pe}pe.uint32be=uint32be;function lengthAndInput(R){return concat(uint32be(R.length),R)}pe.lengthAndInput=lengthAndInput;async function concatKdf(R,pe,Ae){const ge=Math.ceil((pe>>3)/32);const ye=new Uint8Array(ge*32);for(let pe=0;pe>3)}pe.concatKdf=concatKdf},64290:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(96204);const ge=Ae(38516);function bitLength(R){switch(R){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},17594:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);const ge=Ae(77770);const checkIvLength=(R,pe)=>{if(pe.length<<3!==(0,ge.bitLength)(R)){throw new he.JWEInvalid("Invalid Initialization Vector length")}};pe["default"]=checkIvLength},85263:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(99398);const ge=Ae(3053);const symmetricTypeCheck=(R,pe)=>{if(pe instanceof Uint8Array)return;if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types,"Uint8Array"))}if(pe.type!=="secret"){throw new TypeError(`${ge.types.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}};const asymmetricTypeCheck=(R,pe,Ae)=>{if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types))}if(pe.type==="secret"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`)}if(Ae==="sign"&&pe.type==="public"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`)}if(Ae==="decrypt"&&pe.type==="public"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`)}if(pe.algorithm&&Ae==="verify"&&pe.type==="private"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`)}if(pe.algorithm&&Ae==="encrypt"&&pe.type==="private"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)}};const checkKeyType=(R,pe,Ae)=>{const he=R.startsWith("HS")||R==="dir"||R.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(R);if(he){symmetricTypeCheck(R,pe)}else{asymmetricTypeCheck(R,pe,Ae)}};pe["default"]=checkKeyType},10414:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);function checkP2s(R){if(!(R instanceof Uint8Array)||R.length<8){throw new he.JWEInvalid("PBES2 Salt Input must be 8 or more octets")}}pe["default"]=checkP2s},61489:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.checkEncCryptoKey=pe.checkSigCryptoKey=void 0;function unusable(R,pe="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${pe} must be ${R}`)}function isAlgorithm(R,pe){return R.name===pe}function getHashLength(R){return parseInt(R.name.slice(4),10)}function getNamedCurve(R){switch(R){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function checkUsage(R,pe){if(pe.length&&!pe.some((pe=>R.usages.includes(pe)))){let R="CryptoKey does not support this operation, its usages must include ";if(pe.length>2){const Ae=pe.pop();R+=`one of ${pe.join(", ")}, or ${Ae}.`}else if(pe.length===2){R+=`one of ${pe[0]} or ${pe[1]}.`}else{R+=`${pe[0]}.`}throw new TypeError(R)}}function checkSigCryptoKey(R,pe,...Ae){switch(pe){case"HS256":case"HS384":case"HS512":{if(!isAlgorithm(R.algorithm,"HMAC"))throw unusable("HMAC");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!isAlgorithm(R.algorithm,"RSASSA-PKCS1-v1_5"))throw unusable("RSASSA-PKCS1-v1_5");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!isAlgorithm(R.algorithm,"RSA-PSS"))throw unusable("RSA-PSS");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"EdDSA":{if(R.algorithm.name!=="Ed25519"&&R.algorithm.name!=="Ed448"){throw unusable("Ed25519 or Ed448")}break}case"ES256":case"ES384":case"ES512":{if(!isAlgorithm(R.algorithm,"ECDSA"))throw unusable("ECDSA");const Ae=getNamedCurve(pe);const he=R.algorithm.namedCurve;if(he!==Ae)throw unusable(Ae,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkSigCryptoKey=checkSigCryptoKey;function checkEncCryptoKey(R,pe,...Ae){switch(pe){case"A128GCM":case"A192GCM":case"A256GCM":{if(!isAlgorithm(R.algorithm,"AES-GCM"))throw unusable("AES-GCM");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!isAlgorithm(R.algorithm,"AES-KW"))throw unusable("AES-KW");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"ECDH":{switch(R.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw unusable("ECDH, X25519, or X448")}break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!isAlgorithm(R.algorithm,"PBKDF2"))throw unusable("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!isAlgorithm(R.algorithm,"RSA-OAEP"))throw unusable("RSA-OAEP");const Ae=parseInt(pe.slice(9),10)||1;const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkEncCryptoKey=checkEncCryptoKey},87782:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(2666);const ge=Ae(81314);const ye=Ae(63436);const me=Ae(74319);const ve=Ae(78583);const be=Ae(96204);const Ee=Ae(64290);const Ce=Ae(2646);const we=Ae(85263);const _e=Ae(3240);const Ie=Ae(62857);async function decryptKeyManagement(R,pe,Ae,Se,Be){(0,we.default)(R,pe,"decrypt");switch(R){case"dir":{if(Ae!==undefined)throw new be.JWEInvalid("Encountered unexpected JWE Encrypted Key");return pe}case"ECDH-ES":if(Ae!==undefined)throw new be.JWEInvalid("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!(0,_e.default)(Se.epk))throw new be.JWEInvalid(`JOSE Header "epk" (Ephemeral Public Key) missing or invalid`);if(!ge.ecdhAllowed(pe))throw new be.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime");const ye=await(0,Ce.importJWK)(Se.epk,R);let me;let we;if(Se.apu!==undefined){if(typeof Se.apu!=="string")throw new be.JWEInvalid(`JOSE Header "apu" (Agreement PartyUInfo) invalid`);try{me=(0,ve.decode)(Se.apu)}catch{throw new be.JWEInvalid("Failed to base64url decode the apu")}}if(Se.apv!==undefined){if(typeof Se.apv!=="string")throw new be.JWEInvalid(`JOSE Header "apv" (Agreement PartyVInfo) invalid`);try{we=(0,ve.decode)(Se.apv)}catch{throw new be.JWEInvalid("Failed to base64url decode the apv")}}const Ie=await ge.deriveKey(ye,pe,R==="ECDH-ES"?Se.enc:R,R==="ECDH-ES"?(0,Ee.bitLength)(Se.enc):parseInt(R.slice(-5,-2),10),me,we);if(R==="ECDH-ES")return Ie;if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R.slice(-6),Ie,Ae)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,me.decrypt)(R,pe,Ae)}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");if(typeof Se.p2c!=="number")throw new be.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) missing or invalid`);const he=(Be===null||Be===void 0?void 0:Be.maxPBES2Count)||1e4;if(Se.p2c>he)throw new be.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds`);if(typeof Se.p2s!=="string")throw new be.JWEInvalid(`JOSE Header "p2s" (PBES2 Salt) missing or invalid`);let ge;try{ge=(0,ve.decode)(Se.p2s)}catch{throw new be.JWEInvalid("Failed to base64url decode the p2s")}return(0,ye.decrypt)(R,pe,Ae,Se.p2c,ge)}case"A128KW":case"A192KW":case"A256KW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R,pe,Ae)}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");if(typeof Se.iv!=="string")throw new be.JWEInvalid(`JOSE Header "iv" (Initialization Vector) missing or invalid`);if(typeof Se.tag!=="string")throw new be.JWEInvalid(`JOSE Header "tag" (Authentication Tag) missing or invalid`);let he;try{he=(0,ve.decode)(Se.iv)}catch{throw new be.JWEInvalid("Failed to base64url decode the iv")}let ge;try{ge=(0,ve.decode)(Se.tag)}catch{throw new be.JWEInvalid("Failed to base64url decode the tag")}return(0,Ie.unwrap)(R,pe,Ae,he,ge)}default:{throw new be.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}}pe["default"]=decryptKeyManagement},94290:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(2666);const ge=Ae(81314);const ye=Ae(63436);const me=Ae(74319);const ve=Ae(78583);const be=Ae(64290);const Ee=Ae(96204);const Ce=Ae(11055);const we=Ae(85263);const _e=Ae(62857);async function encryptKeyManagement(R,pe,Ae,Ie,Se={}){let Be;let ke;let Oe;(0,we.default)(R,Ae,"encrypt");switch(R){case"dir":{Oe=Ae;break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ge.ecdhAllowed(Ae)){throw new Ee.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime")}const{apu:ye,apv:me}=Se;let{epk:we}=Se;we||(we=(await ge.generateEpk(Ae)).privateKey);const{x:_e,y:Re,crv:Qe,kty:xe}=await(0,Ce.exportJWK)(we);const Pe=await ge.deriveKey(Ae,we,R==="ECDH-ES"?pe:R,R==="ECDH-ES"?(0,be.bitLength)(pe):parseInt(R.slice(-5,-2),10),ye,me);ke={epk:{x:_e,crv:Qe,kty:xe}};if(xe==="EC")ke.epk.y=Re;if(ye)ke.apu=(0,ve.encode)(ye);if(me)ke.apv=(0,ve.encode)(me);if(R==="ECDH-ES"){Oe=Pe;break}Oe=Ie||(0,be.default)(pe);const Te=R.slice(-6);Be=await(0,he.wrap)(Te,Pe,Oe);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{Oe=Ie||(0,be.default)(pe);Be=await(0,me.encrypt)(R,Ae,Oe);break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{Oe=Ie||(0,be.default)(pe);const{p2c:he,p2s:ge}=Se;({encryptedKey:Be,...ke}=await(0,ye.encrypt)(R,Ae,Oe,he,ge));break}case"A128KW":case"A192KW":case"A256KW":{Oe=Ie||(0,be.default)(pe);Be=await(0,he.wrap)(R,Ae,Oe);break}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{Oe=Ie||(0,be.default)(pe);const{iv:he}=Se;({encryptedKey:Be,...ke}=await(0,_e.wrap)(R,Ae,Oe,he));break}default:{throw new Ee.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}return{cek:Oe,encryptedKey:Be,parameters:ke}}pe["default"]=encryptKeyManagement},85381:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=R=>Math.floor(R.getTime()/1e3)},99398:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.withAlg=void 0;function message(R,pe,...Ae){if(Ae.length>2){const pe=Ae.pop();R+=`one of type ${Ae.join(", ")}, or ${pe}.`}else if(Ae.length===2){R+=`one of type ${Ae[0]} or ${Ae[1]}.`}else{R+=`of type ${Ae[0]}.`}if(pe==null){R+=` Received ${pe}`}else if(typeof pe==="function"&&pe.name){R+=` Received function ${pe.name}`}else if(typeof pe==="object"&&pe!=null){if(pe.constructor&&pe.constructor.name){R+=` Received an instance of ${pe.constructor.name}`}}return R}pe["default"]=(R,...pe)=>message("Key must be ",R,...pe);function withAlg(R,pe,...Ae){return message(`Key for the ${R} algorithm must be `,pe,...Ae)}pe.withAlg=withAlg},4118:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const isDisjoint=(...R)=>{const pe=R.filter(Boolean);if(pe.length===0||pe.length===1){return true}let Ae;for(const R of pe){const pe=Object.keys(R);if(!Ae||Ae.size===0){Ae=new Set(pe);continue}for(const R of pe){if(Ae.has(R)){return false}Ae.add(R)}}return true};pe["default"]=isDisjoint},3240:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function isObjectLike(R){return typeof R==="object"&&R!==null}function isObject(R){if(!isObjectLike(R)||Object.prototype.toString.call(R)!=="[object Object]"){return false}if(Object.getPrototypeOf(R)===null){return true}let pe=R;while(Object.getPrototypeOf(pe)!==null){pe=Object.getPrototypeOf(pe)}return Object.getPrototypeOf(R)===pe}pe["default"]=isObject},77770:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(96204);const ge=Ae(38516);function bitLength(R){switch(R){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},369:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);const ge=Ae(87243);const ye=Ae(85381);const me=Ae(84289);const ve=Ae(3240);const normalizeTyp=R=>R.toLowerCase().replace(/^application\//,"");const checkAudiencePresence=(R,pe)=>{if(typeof R==="string"){return pe.includes(R)}if(Array.isArray(R)){return pe.some(Set.prototype.has.bind(new Set(R)))}return false};pe["default"]=(R,pe,Ae={})=>{const{typ:be}=Ae;if(be&&(typeof R.typ!=="string"||normalizeTyp(R.typ)!==normalizeTyp(be))){throw new he.JWTClaimValidationFailed('unexpected "typ" JWT header value',"typ","check_failed")}let Ee;try{Ee=JSON.parse(ge.decoder.decode(pe))}catch{}if(!(0,ve.default)(Ee)){throw new he.JWTInvalid("JWT Claims Set must be a top-level JSON object")}const{requiredClaims:Ce=[],issuer:we,subject:_e,audience:Ie,maxTokenAge:Se}=Ae;if(Se!==undefined)Ce.push("iat");if(Ie!==undefined)Ce.push("aud");if(_e!==undefined)Ce.push("sub");if(we!==undefined)Ce.push("iss");for(const R of new Set(Ce.reverse())){if(!(R in Ee)){throw new he.JWTClaimValidationFailed(`missing required "${R}" claim`,R,"missing")}}if(we&&!(Array.isArray(we)?we:[we]).includes(Ee.iss)){throw new he.JWTClaimValidationFailed('unexpected "iss" claim value',"iss","check_failed")}if(_e&&Ee.sub!==_e){throw new he.JWTClaimValidationFailed('unexpected "sub" claim value',"sub","check_failed")}if(Ie&&!checkAudiencePresence(Ee.aud,typeof Ie==="string"?[Ie]:Ie)){throw new he.JWTClaimValidationFailed('unexpected "aud" claim value',"aud","check_failed")}let Be;switch(typeof Ae.clockTolerance){case"string":Be=(0,me.default)(Ae.clockTolerance);break;case"number":Be=Ae.clockTolerance;break;case"undefined":Be=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:ke}=Ae;const Oe=(0,ye.default)(ke||new Date);if((Ee.iat!==undefined||Se)&&typeof Ee.iat!=="number"){throw new he.JWTClaimValidationFailed('"iat" claim must be a number',"iat","invalid")}if(Ee.nbf!==undefined){if(typeof Ee.nbf!=="number"){throw new he.JWTClaimValidationFailed('"nbf" claim must be a number',"nbf","invalid")}if(Ee.nbf>Oe+Be){throw new he.JWTClaimValidationFailed('"nbf" claim timestamp check failed',"nbf","check_failed")}}if(Ee.exp!==undefined){if(typeof Ee.exp!=="number"){throw new he.JWTClaimValidationFailed('"exp" claim must be a number',"exp","invalid")}if(Ee.exp<=Oe-Be){throw new he.JWTExpired('"exp" claim timestamp check failed',"exp","check_failed")}}if(Se){const R=Oe-Ee.iat;const pe=typeof Se==="number"?Se:(0,me.default)(Se);if(R-Be>pe){throw new he.JWTExpired('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed")}if(R<0-Be){throw new he.JWTClaimValidationFailed('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}}return Ee}},84289:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=60;const he=Ae*60;const ge=he*24;const ye=ge*7;const me=ge*365.25;const ve=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;pe["default"]=R=>{const pe=ve.exec(R);if(!pe){throw new TypeError("Invalid time period format")}const be=parseFloat(pe[1]);const Ee=pe[2].toLowerCase();switch(Ee){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(be);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(be*Ae);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(be*he);case"day":case"days":case"d":return Math.round(be*ge);case"week":case"weeks":case"w":return Math.round(be*ye);default:return Math.round(be*me)}}},21834:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const validateAlgorithms=(R,pe)=>{if(pe!==undefined&&(!Array.isArray(pe)||pe.some((R=>typeof R!=="string")))){throw new TypeError(`"${R}" option must be an array of strings`)}if(!pe){return undefined}return new Set(pe)};pe["default"]=validateAlgorithms},96029:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);function validateCrit(R,pe,Ae,ge,ye){if(ye.crit!==undefined&&ge.crit===undefined){throw new R('"crit" (Critical) Header Parameter MUST be integrity protected')}if(!ge||ge.crit===undefined){return new Set}if(!Array.isArray(ge.crit)||ge.crit.length===0||ge.crit.some((R=>typeof R!=="string"||R.length===0))){throw new R('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present')}let me;if(Ae!==undefined){me=new Map([...Object.entries(Ae),...pe.entries()])}else{me=pe}for(const pe of ge.crit){if(!me.has(pe)){throw new he.JOSENotSupported(`Extension Header Parameter "${pe}" is not recognized`)}if(ye[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" is missing`)}else if(me.get(pe)&&ge[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" MUST be integrity protected`)}}return new Set(ge.crit)}pe["default"]=validateCrit},2666:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(14300);const ge=Ae(6113);const ye=Ae(96204);const me=Ae(87243);const ve=Ae(94899);const be=Ae(61489);const Ee=Ae(26427);const Ce=Ae(99398);const we=Ae(45155);const _e=Ae(3053);function checkKeySize(R,pe){if(R.symmetricKeySize<<3!==parseInt(pe.slice(1,4),10)){throw new TypeError(`Invalid key size for alg: ${pe}`)}}function ensureKeyObject(R,pe,Ae){if((0,Ee.default)(R)){return R}if(R instanceof Uint8Array){return(0,ge.createSecretKey)(R)}if((0,ve.isCryptoKey)(R)){(0,be.checkEncCryptoKey)(R,pe,Ae);return ge.KeyObject.from(R)}throw new TypeError((0,Ce.default)(R,..._e.types,"Uint8Array"))}const wrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,we.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"wrapKey");checkKeySize(Ee,R);const Ce=(0,ge.createCipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(Ce.update(Ae),Ce.final())};pe.wrap=wrap;const unwrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,we.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"unwrapKey");checkKeySize(Ee,R);const Ce=(0,ge.createDecipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(Ce.update(Ae),Ce.final())};pe.unwrap=unwrap},98426:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromX509=pe.fromSPKI=pe.fromPKCS8=pe.toPKCS8=pe.toSPKI=void 0;const he=Ae(6113);const ge=Ae(14300);const ye=Ae(94899);const me=Ae(26427);const ve=Ae(99398);const be=Ae(3053);const genericExport=(R,pe,Ae)=>{let ge;if((0,ye.isCryptoKey)(Ae)){if(!Ae.extractable){throw new TypeError("CryptoKey is not extractable")}ge=he.KeyObject.from(Ae)}else if((0,me.default)(Ae)){ge=Ae}else{throw new TypeError((0,ve.default)(Ae,...be.types))}if(ge.type!==R){throw new TypeError(`key is not a ${R} key`)}return ge.export({format:"pem",type:pe})};const toSPKI=R=>genericExport("public","spki",R);pe.toSPKI=toSPKI;const toPKCS8=R=>genericExport("private","pkcs8",R);pe.toPKCS8=toPKCS8;const fromPKCS8=R=>(0,he.createPrivateKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,""),"base64"),type:"pkcs8",format:"der"});pe.fromPKCS8=fromPKCS8;const fromSPKI=R=>(0,he.createPublicKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,""),"base64"),type:"spki",format:"der"});pe.fromSPKI=fromSPKI;const fromX509=R=>(0,he.createPublicKey)({key:R,type:"spki",format:"pem"});pe.fromX509=fromX509},54236:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=2;const he=48;class Asn1SequenceDecoder{constructor(R){if(R[0]!==he){throw new TypeError}this.buffer=R;this.offset=1;const pe=this.decodeLength();if(pe!==R.length-this.offset){throw new TypeError}}decodeLength(){let R=this.buffer[this.offset++];if(R&128){const pe=R&~128;R=0;for(let Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(14300);const ge=Ae(96204);const ye=2;const me=3;const ve=4;const be=48;const Ee=he.Buffer.from([0]);const Ce=he.Buffer.from([ye]);const we=he.Buffer.from([me]);const _e=he.Buffer.from([be]);const Ie=he.Buffer.from([ve]);const encodeLength=R=>{if(R<128)return he.Buffer.from([R]);const pe=he.Buffer.alloc(5);pe.writeUInt32BE(R,1);let Ae=1;while(pe[Ae]===0)Ae++;pe[Ae-1]=128|5-Ae;return pe.slice(Ae-1)};const Se=new Map([["P-256",he.Buffer.from("06 08 2A 86 48 CE 3D 03 01 07".replace(/ /g,""),"hex")],["secp256k1",he.Buffer.from("06 05 2B 81 04 00 0A".replace(/ /g,""),"hex")],["P-384",he.Buffer.from("06 05 2B 81 04 00 22".replace(/ /g,""),"hex")],["P-521",he.Buffer.from("06 05 2B 81 04 00 23".replace(/ /g,""),"hex")],["ecPublicKey",he.Buffer.from("06 07 2A 86 48 CE 3D 02 01".replace(/ /g,""),"hex")],["X25519",he.Buffer.from("06 03 2B 65 6E".replace(/ /g,""),"hex")],["X448",he.Buffer.from("06 03 2B 65 6F".replace(/ /g,""),"hex")],["Ed25519",he.Buffer.from("06 03 2B 65 70".replace(/ /g,""),"hex")],["Ed448",he.Buffer.from("06 03 2B 65 71".replace(/ /g,""),"hex")]]);class DumbAsn1Encoder{constructor(){this.length=0;this.elements=[]}oidFor(R){const pe=Se.get(R);if(!pe){throw new ge.JOSENotSupported("Invalid or unsupported OID")}this.elements.push(pe);this.length+=pe.length}zero(){this.elements.push(Ce,he.Buffer.from([1]),Ee);this.length+=3}one(){this.elements.push(Ce,he.Buffer.from([1]),he.Buffer.from([1]));this.length+=3}unsignedInteger(R){if(R[0]&128){const pe=encodeLength(R.length+1);this.elements.push(Ce,pe,Ee,R);this.length+=2+pe.length+R.length}else{let pe=0;while(R[pe]===0&&(R[pe+1]&128)===0)pe++;const Ae=encodeLength(R.length-pe);this.elements.push(Ce,encodeLength(R.length-pe),R.slice(pe));this.length+=1+Ae.length+R.length-pe}}octStr(R){const pe=encodeLength(R.length);this.elements.push(Ie,encodeLength(R.length),R);this.length+=1+pe.length+R.length}bitStr(R){const pe=encodeLength(R.length+1);this.elements.push(we,encodeLength(R.length+1),Ee,R);this.length+=1+pe.length+R.length+1}add(R){this.elements.push(R);this.length+=R.length}end(R=_e){const pe=encodeLength(this.length);return he.Buffer.concat([R,pe,...this.elements],1+pe.length+this.length)}}pe["default"]=DumbAsn1Encoder},78583:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=pe.encodeBase64=pe.decodeBase64=void 0;const he=Ae(14300);const ge=Ae(87243);let ye;function normalize(R){let pe=R;if(pe instanceof Uint8Array){pe=ge.decoder.decode(pe)}return pe}if(he.Buffer.isEncoding("base64url")){pe.encode=ye=R=>he.Buffer.from(R).toString("base64url")}else{pe.encode=ye=R=>he.Buffer.from(R).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}const decodeBase64=R=>he.Buffer.from(R,"base64");pe.decodeBase64=decodeBase64;const encodeBase64=R=>he.Buffer.from(R).toString("base64");pe.encodeBase64=encodeBase64;const decode=R=>he.Buffer.from(normalize(R),"base64");pe.decode=decode},794:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(87243);function cbcTag(R,pe,Ae,ye,me,ve){const be=(0,ge.concat)(R,pe,Ae,(0,ge.uint64be)(R.length<<3));const Ee=(0,he.createHmac)(`sha${ye}`,me);Ee.update(be);return Ee.digest().slice(0,ve>>3)}pe["default"]=cbcTag},86114:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);const ge=Ae(26427);const checkCekLength=(R,pe)=>{let Ae;switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new he.JOSENotSupported(`Content Encryption Algorithm ${R} is not supported either by JOSE or your javascript runtime`)}if(pe instanceof Uint8Array){const R=pe.byteLength<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}if((0,ge.default)(pe)&&pe.type==="secret"){const R=pe.symmetricKeySize<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}throw new TypeError("Invalid Content Encryption Key type")};pe["default"]=checkCekLength},65082:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.setModulusLength=pe.weakMap=void 0;pe.weakMap=new WeakMap;const getLength=(R,pe)=>{let Ae=R.readUInt8(1);if((Ae&128)===0){if(pe===0){return Ae}return getLength(R.subarray(2+Ae),pe-1)}const he=Ae&127;Ae=0;for(let pe=0;pe{const Ae=R.readUInt8(1);if((Ae&128)===0){return getLength(R.subarray(2),pe)}const he=Ae&127;return getLength(R.subarray(2+he),pe)};const getModulusLength=R=>{var Ae,he;if(pe.weakMap.has(R)){return pe.weakMap.get(R)}const ge=(he=(Ae=R.asymmetricKeyDetails)===null||Ae===void 0?void 0:Ae.modulusLength)!==null&&he!==void 0?he:getLengthOfSeqIndex(R.export({format:"der",type:"pkcs1"}),R.type==="private"?1:0)-1<<3;pe.weakMap.set(R,ge);return ge};const setModulusLength=(R,Ae)=>{pe.weakMap.set(R,Ae)};pe.setModulusLength=setModulusLength;pe["default"]=(R,pe)=>{if(getModulusLength(R)<2048){throw new TypeError(`${pe} requires key modulusLength to be 2048 bits or larger`)}}},45155:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);let ge;pe["default"]=R=>{ge||(ge=new Set((0,he.getCiphers)()));return ge.has(R)}},29547:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(17594);const ye=Ae(86114);const me=Ae(87243);const ve=Ae(96204);const be=Ae(15411);const Ee=Ae(794);const Ce=Ae(94899);const we=Ae(61489);const _e=Ae(26427);const Ie=Ae(99398);const Se=Ae(45155);const Be=Ae(3053);function cbcDecrypt(R,pe,Ae,ge,ye,Ce){const we=parseInt(R.slice(1,4),10);if((0,_e.default)(pe)){pe=pe.export()}const Ie=pe.subarray(we>>3);const Be=pe.subarray(0,we>>3);const ke=parseInt(R.slice(-3),10);const Oe=`aes-${we}-cbc`;if(!(0,Se.default)(Oe)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Re=(0,Ee.default)(Ce,ge,Ae,ke,Be,we);let Qe;try{Qe=(0,be.default)(ye,Re)}catch{}if(!Qe){throw new ve.JWEDecryptionFailed}let xe;try{const R=(0,he.createDecipheriv)(Oe,Ie,ge);xe=(0,me.concat)(R.update(Ae),R.final())}catch{}if(!xe){throw new ve.JWEDecryptionFailed}return xe}function gcmDecrypt(R,pe,Ae,ge,ye,me){const be=parseInt(R.slice(1,4),10);const Ee=`aes-${be}-gcm`;if(!(0,Se.default)(Ee)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}try{const R=(0,he.createDecipheriv)(Ee,pe,ge,{authTagLength:16});R.setAuthTag(ye);if(me.byteLength){R.setAAD(me,{plaintextLength:Ae.length})}const ve=R.update(Ae);R.final();return ve}catch{throw new ve.JWEDecryptionFailed}}const decrypt=(R,pe,Ae,me,be,Ee)=>{let Se;if((0,Ce.isCryptoKey)(pe)){(0,we.checkEncCryptoKey)(pe,R,"decrypt");Se=he.KeyObject.from(pe)}else if(pe instanceof Uint8Array||(0,_e.default)(pe)){Se=pe}else{throw new TypeError((0,Ie.default)(pe,...Be.types,"Uint8Array"))}(0,ye.default)(R,Se);(0,ge.default)(R,me);switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcDecrypt(R,Se,Ae,me,be,Ee);case"A128GCM":case"A192GCM":case"A256GCM":return gcmDecrypt(R,Se,Ae,me,be,Ee);default:throw new ve.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=decrypt},7461:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const digest=(R,pe)=>(0,he.createHash)(R).update(pe).digest();pe["default"]=digest},67688:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);function dsaDigest(R){switch(R){case"PS256":case"RS256":case"ES256":case"ES256K":return"sha256";case"PS384":case"RS384":case"ES384":return"sha384";case"PS512":case"RS512":case"ES512":return"sha512";case"EdDSA":return undefined;default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=dsaDigest},81314:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ecdhAllowed=pe.generateEpk=pe.deriveKey=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=Ae(75956);const me=Ae(87243);const ve=Ae(96204);const be=Ae(94899);const Ee=Ae(61489);const Ce=Ae(26427);const we=Ae(99398);const _e=Ae(3053);const Ie=(0,ge.promisify)(he.generateKeyPair);async function deriveKey(R,pe,Ae,ge,ye=new Uint8Array(0),ve=new Uint8Array(0)){let Ie;if((0,be.isCryptoKey)(R)){(0,Ee.checkEncCryptoKey)(R,"ECDH");Ie=he.KeyObject.from(R)}else if((0,Ce.default)(R)){Ie=R}else{throw new TypeError((0,we.default)(R,..._e.types))}let Se;if((0,be.isCryptoKey)(pe)){(0,Ee.checkEncCryptoKey)(pe,"ECDH","deriveBits");Se=he.KeyObject.from(pe)}else if((0,Ce.default)(pe)){Se=pe}else{throw new TypeError((0,we.default)(pe,..._e.types))}const Be=(0,me.concat)((0,me.lengthAndInput)(me.encoder.encode(Ae)),(0,me.lengthAndInput)(ye),(0,me.lengthAndInput)(ve),(0,me.uint32be)(ge));const ke=(0,he.diffieHellman)({privateKey:Se,publicKey:Ie});return(0,me.concatKdf)(ke,ge,Be)}pe.deriveKey=deriveKey;async function generateEpk(R){let pe;if((0,be.isCryptoKey)(R)){pe=he.KeyObject.from(R)}else if((0,Ce.default)(R)){pe=R}else{throw new TypeError((0,we.default)(R,..._e.types))}switch(pe.asymmetricKeyType){case"x25519":return Ie("x25519");case"x448":{return Ie("x448")}case"ec":{const R=(0,ye.default)(pe);return Ie("ec",{namedCurve:R})}default:throw new ve.JOSENotSupported("Invalid or unsupported EPK")}}pe.generateEpk=generateEpk;const ecdhAllowed=R=>["P-256","P-384","P-521","X25519","X448"].includes((0,ye.default)(R));pe.ecdhAllowed=ecdhAllowed},1175:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(17594);const ye=Ae(86114);const me=Ae(87243);const ve=Ae(794);const be=Ae(94899);const Ee=Ae(61489);const Ce=Ae(26427);const we=Ae(99398);const _e=Ae(96204);const Ie=Ae(45155);const Se=Ae(3053);function cbcEncrypt(R,pe,Ae,ge,ye){const be=parseInt(R.slice(1,4),10);if((0,Ce.default)(Ae)){Ae=Ae.export()}const Ee=Ae.subarray(be>>3);const we=Ae.subarray(0,be>>3);const Se=`aes-${be}-cbc`;if(!(0,Ie.default)(Se)){throw new _e.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Be=(0,he.createCipheriv)(Se,Ee,ge);const ke=(0,me.concat)(Be.update(pe),Be.final());const Oe=parseInt(R.slice(-3),10);const Re=(0,ve.default)(ye,ge,ke,Oe,we,be);return{ciphertext:ke,tag:Re}}function gcmEncrypt(R,pe,Ae,ge,ye){const me=parseInt(R.slice(1,4),10);const ve=`aes-${me}-gcm`;if(!(0,Ie.default)(ve)){throw new _e.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const be=(0,he.createCipheriv)(ve,Ae,ge,{authTagLength:16});if(ye.byteLength){be.setAAD(ye,{plaintextLength:pe.length})}const Ee=be.update(pe);be.final();const Ce=be.getAuthTag();return{ciphertext:Ee,tag:Ce}}const encrypt=(R,pe,Ae,me,ve)=>{let Ie;if((0,be.isCryptoKey)(Ae)){(0,Ee.checkEncCryptoKey)(Ae,R,"encrypt");Ie=he.KeyObject.from(Ae)}else if(Ae instanceof Uint8Array||(0,Ce.default)(Ae)){Ie=Ae}else{throw new TypeError((0,we.default)(Ae,...Se.types,"Uint8Array"))}(0,ye.default)(R,Ie);(0,ge.default)(R,me);switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcEncrypt(R,pe,Ie,me,ve);case"A128GCM":case"A192GCM":case"A256GCM":return gcmEncrypt(R,pe,Ie,me,ve);default:throw new _e.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=encrypt},15176:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(13685);const ge=Ae(95687);const ye=Ae(82361);const me=Ae(96204);const ve=Ae(87243);const fetchJwks=async(R,pe,Ae)=>{let be;switch(R.protocol){case"https:":be=ge.get;break;case"http:":be=he.get;break;default:throw new TypeError("Unsupported URL protocol.")}const{agent:Ee,headers:Ce}=Ae;const we=be(R.href,{agent:Ee,timeout:pe,headers:Ce});const[_e]=await Promise.race([(0,ye.once)(we,"response"),(0,ye.once)(we,"timeout")]);if(!_e){we.destroy();throw new me.JWKSTimeout}if(_e.statusCode!==200){throw new me.JOSEError("Expected 200 OK from the JSON Web Key Set HTTP response")}const Ie=[];for await(const R of _e){Ie.push(R)}try{return JSON.parse(ve.decoder.decode((0,ve.concat)(...Ie)))}catch{throw new me.JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON")}};pe["default"]=fetchJwks},94350:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwkImport=pe.jwkExport=pe.rsaPssParams=pe.oneShotCallback=void 0;const[Ae,he]=process.versions.node.split(".").map((R=>parseInt(R,10)));pe.oneShotCallback=Ae>=16||Ae===15&&he>=13;pe.rsaPssParams=!("electron"in process.versions)&&(Ae>=17||Ae===16&&he>=9);pe.jwkExport=Ae>=16||Ae===15&&he>=9;pe.jwkImport=Ae>=16||Ae===15&&he>=12},53782:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=pe.generateSecret=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=Ae(38516);const me=Ae(65082);const ve=Ae(96204);const be=(0,ge.promisify)(he.generateKeyPair);async function generateSecret(R,pe){let Ae;switch(R){case"HS256":case"HS384":case"HS512":case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128KW":case"A192KW":case"A256KW":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new ve.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return(0,he.createSecretKey)((0,ye.default)(new Uint8Array(Ae>>3)))}pe.generateSecret=generateSecret;async function generateKeyPair(R,pe){var Ae,he;switch(R){case"RS256":case"RS384":case"RS512":case"PS256":case"PS384":case"PS512":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":case"RSA1_5":{const R=(Ae=pe===null||pe===void 0?void 0:pe.modulusLength)!==null&&Ae!==void 0?Ae:2048;if(typeof R!=="number"||R<2048){throw new ve.JOSENotSupported("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used")}const he=await be("rsa",{modulusLength:R,publicExponent:65537});(0,me.setModulusLength)(he.privateKey,R);(0,me.setModulusLength)(he.publicKey,R);return he}case"ES256":return be("ec",{namedCurve:"P-256"});case"ES256K":return be("ec",{namedCurve:"secp256k1"});case"ES384":return be("ec",{namedCurve:"P-384"});case"ES512":return be("ec",{namedCurve:"P-521"});case"EdDSA":{switch(pe===null||pe===void 0?void 0:pe.crv){case undefined:case"Ed25519":return be("ed25519");case"Ed448":return be("ed448");default:throw new ve.JOSENotSupported("Invalid or unsupported crv option provided, supported values are Ed25519 and Ed448")}}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":const R=(he=pe===null||pe===void 0?void 0:pe.crv)!==null&&he!==void 0?he:"P-256";switch(R){case undefined:case"P-256":case"P-384":case"P-521":return be("ec",{namedCurve:R});case"X25519":return be("x25519");case"X448":return be("x448");default:throw new ve.JOSENotSupported("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}default:throw new ve.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}}pe.generateKeyPair=generateKeyPair},75956:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.setCurve=pe.weakMap=void 0;const he=Ae(14300);const ge=Ae(6113);const ye=Ae(96204);const me=Ae(94899);const ve=Ae(26427);const be=Ae(99398);const Ee=Ae(3053);const Ce=he.Buffer.from([42,134,72,206,61,3,1,7]);const we=he.Buffer.from([43,129,4,0,34]);const _e=he.Buffer.from([43,129,4,0,35]);const Ie=he.Buffer.from([43,129,4,0,10]);pe.weakMap=new WeakMap;const namedCurveToJOSE=R=>{switch(R){case"prime256v1":return"P-256";case"secp384r1":return"P-384";case"secp521r1":return"P-521";case"secp256k1":return"secp256k1";default:throw new ye.JOSENotSupported("Unsupported key curve for this operation")}};const getNamedCurve=(R,Ae)=>{var he;let Se;if((0,me.isCryptoKey)(R)){Se=ge.KeyObject.from(R)}else if((0,ve.default)(R)){Se=R}else{throw new TypeError((0,be.default)(R,...Ee.types))}if(Se.type==="secret"){throw new TypeError('only "private" or "public" type keys can be used for this operation')}switch(Se.asymmetricKeyType){case"ed25519":case"ed448":return`Ed${Se.asymmetricKeyType.slice(2)}`;case"x25519":case"x448":return`X${Se.asymmetricKeyType.slice(1)}`;case"ec":{if(pe.weakMap.has(Se)){return pe.weakMap.get(Se)}let R=(he=Se.asymmetricKeyDetails)===null||he===void 0?void 0:he.namedCurve;if(!R&&Se.type==="private"){R=getNamedCurve((0,ge.createPublicKey)(Se),true)}else if(!R){const pe=Se.export({format:"der",type:"spki"});const Ae=pe[1]<128?14:15;const he=pe[Ae];const ge=pe.slice(Ae+1,Ae+1+he);if(ge.equals(Ce)){R="prime256v1"}else if(ge.equals(we)){R="secp384r1"}else if(ge.equals(_e)){R="secp521r1"}else if(ge.equals(Ie)){R="secp256k1"}else{throw new ye.JOSENotSupported("Unsupported key curve for this operation")}}if(Ae)return R;const me=namedCurveToJOSE(R);pe.weakMap.set(Se,me);return me}default:throw new TypeError("Invalid asymmetric key type for this operation")}};function setCurve(R,Ae){pe.weakMap.set(R,Ae)}pe.setCurve=setCurve;pe["default"]=getNamedCurve},92112:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(94899);const ye=Ae(61489);const me=Ae(99398);const ve=Ae(3053);function getSignVerifyKey(R,pe,Ae){if(pe instanceof Uint8Array){if(!R.startsWith("HS")){throw new TypeError((0,me.default)(pe,...ve.types))}return(0,he.createSecretKey)(pe)}if(pe instanceof he.KeyObject){return pe}if((0,ge.isCryptoKey)(pe)){(0,ye.checkSigCryptoKey)(pe,R,Ae);return he.KeyObject.from(pe)}throw new TypeError((0,me.default)(pe,...ve.types,"Uint8Array"))}pe["default"]=getSignVerifyKey},56538:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);function hmacDigest(R){switch(R){case"HS256":return"sha256";case"HS384":return"sha384";case"HS512":return"sha512";default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=hmacDigest},3053:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.types=void 0;const he=Ae(94899);const ge=Ae(26427);pe["default"]=R=>(0,ge.default)(R)||(0,he.isCryptoKey)(R);const ye=["KeyObject"];pe.types=ye;if(globalThis.CryptoKey||(he.default===null||he.default===void 0?void 0:he.default.CryptoKey)){ye.push("CryptoKey")}},26427:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);pe["default"]=ge.types.isKeyObject?R=>ge.types.isKeyObject(R):R=>R!=null&&R instanceof he.KeyObject},41010:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(14300);const ge=Ae(6113);const ye=Ae(78583);const me=Ae(96204);const ve=Ae(75956);const be=Ae(65082);const Ee=Ae(28820);const Ce=Ae(94350);const parse=R=>{if(Ce.jwkImport&&R.kty!=="oct"){return R.d?(0,ge.createPrivateKey)({format:"jwk",key:R}):(0,ge.createPublicKey)({format:"jwk",key:R})}switch(R.kty){case"oct":{return(0,ge.createSecretKey)((0,ye.decode)(R.k))}case"RSA":{const pe=new Ee.default;const Ae=R.d!==undefined;const ye=he.Buffer.from(R.n,"base64");const me=he.Buffer.from(R.e,"base64");if(Ae){pe.zero();pe.unsignedInteger(ye);pe.unsignedInteger(me);pe.unsignedInteger(he.Buffer.from(R.d,"base64"));pe.unsignedInteger(he.Buffer.from(R.p,"base64"));pe.unsignedInteger(he.Buffer.from(R.q,"base64"));pe.unsignedInteger(he.Buffer.from(R.dp,"base64"));pe.unsignedInteger(he.Buffer.from(R.dq,"base64"));pe.unsignedInteger(he.Buffer.from(R.qi,"base64"))}else{pe.unsignedInteger(ye);pe.unsignedInteger(me)}const ve=pe.end();const Ce={key:ve,format:"der",type:"pkcs1"};const we=Ae?(0,ge.createPrivateKey)(Ce):(0,ge.createPublicKey)(Ce);(0,be.setModulusLength)(we,ye.length<<3);return we}case"EC":{const pe=new Ee.default;const Ae=R.d!==undefined;const ye=he.Buffer.concat([he.Buffer.alloc(1,4),he.Buffer.from(R.x,"base64"),he.Buffer.from(R.y,"base64")]);if(Ae){pe.zero();const Ae=new Ee.default;Ae.oidFor("ecPublicKey");Ae.oidFor(R.crv);pe.add(Ae.end());const me=new Ee.default;me.one();me.octStr(he.Buffer.from(R.d,"base64"));const be=new Ee.default;be.bitStr(ye);const Ce=be.end(he.Buffer.from([161]));me.add(Ce);const we=me.end();const _e=new Ee.default;_e.add(we);const Ie=_e.end(he.Buffer.from([4]));pe.add(Ie);const Se=pe.end();const Be=(0,ge.createPrivateKey)({key:Se,format:"der",type:"pkcs8"});(0,ve.setCurve)(Be,R.crv);return Be}const me=new Ee.default;me.oidFor("ecPublicKey");me.oidFor(R.crv);pe.add(me.end());pe.bitStr(ye);const be=pe.end();const Ce=(0,ge.createPublicKey)({key:be,format:"der",type:"spki"});(0,ve.setCurve)(Ce,R.crv);return Ce}case"OKP":{const pe=new Ee.default;const Ae=R.d!==undefined;if(Ae){pe.zero();const Ae=new Ee.default;Ae.oidFor(R.crv);pe.add(Ae.end());const ye=new Ee.default;ye.octStr(he.Buffer.from(R.d,"base64"));const me=ye.end(he.Buffer.from([4]));pe.add(me);const ve=pe.end();return(0,ge.createPrivateKey)({key:ve,format:"der",type:"pkcs8"})}const ye=new Ee.default;ye.oidFor(R.crv);pe.add(ye.end());pe.bitStr(he.Buffer.from(R.x,"base64"));const me=pe.end();return(0,ge.createPublicKey)({key:me,format:"der",type:"spki"})}default:throw new me.JOSENotSupported('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}};pe["default"]=parse},31986:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(78583);const ye=Ae(54236);const me=Ae(96204);const ve=Ae(75956);const be=Ae(94899);const Ee=Ae(26427);const Ce=Ae(99398);const we=Ae(3053);const _e=Ae(94350);const keyToJWK=R=>{let pe;if((0,be.isCryptoKey)(R)){if(!R.extractable){throw new TypeError("CryptoKey is not extractable")}pe=he.KeyObject.from(R)}else if((0,Ee.default)(R)){pe=R}else if(R instanceof Uint8Array){return{kty:"oct",k:(0,ge.encode)(R)}}else{throw new TypeError((0,Ce.default)(R,...we.types,"Uint8Array"))}if(_e.jwkExport){if(pe.type!=="secret"&&!["rsa","ec","ed25519","x25519","ed448","x448"].includes(pe.asymmetricKeyType)){throw new me.JOSENotSupported("Unsupported key asymmetricKeyType")}return pe.export({format:"jwk"})}switch(pe.type){case"secret":return{kty:"oct",k:(0,ge.encode)(pe.export())};case"private":case"public":{switch(pe.asymmetricKeyType){case"rsa":{const R=pe.export({format:"der",type:"pkcs1"});const Ae=new ye.default(R);if(pe.type==="private"){Ae.unsignedInteger()}const he=(0,ge.encode)(Ae.unsignedInteger());const me=(0,ge.encode)(Ae.unsignedInteger());let ve;if(pe.type==="private"){ve={d:(0,ge.encode)(Ae.unsignedInteger()),p:(0,ge.encode)(Ae.unsignedInteger()),q:(0,ge.encode)(Ae.unsignedInteger()),dp:(0,ge.encode)(Ae.unsignedInteger()),dq:(0,ge.encode)(Ae.unsignedInteger()),qi:(0,ge.encode)(Ae.unsignedInteger())}}Ae.end();return{kty:"RSA",n:he,e:me,...ve}}case"ec":{const R=(0,ve.default)(pe);let Ae;let ye;let be;switch(R){case"secp256k1":Ae=64;ye=31+2;be=-1;break;case"P-256":Ae=64;ye=34+2;be=-1;break;case"P-384":Ae=96;ye=33+2;be=-3;break;case"P-521":Ae=132;ye=33+2;be=-3;break;default:throw new me.JOSENotSupported("Unsupported curve")}if(pe.type==="public"){const he=pe.export({type:"spki",format:"der"});return{kty:"EC",crv:R,x:(0,ge.encode)(he.subarray(-Ae,-Ae/2)),y:(0,ge.encode)(he.subarray(-Ae/2))}}const Ee=pe.export({type:"pkcs8",format:"der"});if(Ee.length<100){ye+=be}return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ee.subarray(ye,ye+Ae/2))}}case"ed25519":case"x25519":{const R=(0,ve.default)(pe);if(pe.type==="public"){const Ae=pe.export({type:"spki",format:"der"});return{kty:"OKP",crv:R,x:(0,ge.encode)(Ae.subarray(-32))}}const Ae=pe.export({type:"pkcs8",format:"der"});return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ae.subarray(-32))}}case"ed448":case"x448":{const R=(0,ve.default)(pe);if(pe.type==="public"){const Ae=pe.export({type:"spki",format:"der"});return{kty:"OKP",crv:R,x:(0,ge.encode)(Ae.subarray(R==="Ed448"?-57:-56))}}const Ae=pe.export({type:"pkcs8",format:"der"});return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ae.subarray(R==="Ed448"?-57:-56))}}default:throw new me.JOSENotSupported("Unsupported key asymmetricKeyType")}}default:throw new me.JOSENotSupported("Unsupported key type")}};pe["default"]=keyToJWK},39381:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(75956);const ye=Ae(96204);const me=Ae(65082);const ve=Ae(94350);const be={padding:he.constants.RSA_PKCS1_PSS_PADDING,saltLength:he.constants.RSA_PSS_SALTLEN_DIGEST};const Ee=new Map([["ES256","P-256"],["ES256K","secp256k1"],["ES384","P-384"],["ES512","P-521"]]);function keyForCrypto(R,pe){switch(R){case"EdDSA":if(!["ed25519","ed448"].includes(pe.asymmetricKeyType)){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ed25519 or ed448")}return pe;case"RS256":case"RS384":case"RS512":if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,me.default)(pe,R);return pe;case ve.rsaPssParams&&"PS256":case ve.rsaPssParams&&"PS384":case ve.rsaPssParams&&"PS512":if(pe.asymmetricKeyType==="rsa-pss"){const{hashAlgorithm:Ae,mgf1HashAlgorithm:he,saltLength:ge}=pe.asymmetricKeyDetails;const ye=parseInt(R.slice(-3),10);if(Ae!==undefined&&(Ae!==`sha${ye}`||he!==Ae)){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${R}`)}if(ge!==undefined&&ge>ye>>3){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${R}`)}}else if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa or rsa-pss")}(0,me.default)(pe,R);return{key:pe,...be};case!ve.rsaPssParams&&"PS256":case!ve.rsaPssParams&&"PS384":case!ve.rsaPssParams&&"PS512":if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,me.default)(pe,R);return{key:pe,...be};case"ES256":case"ES256K":case"ES384":case"ES512":{if(pe.asymmetricKeyType!=="ec"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ec")}const Ae=(0,ge.default)(pe);const he=Ee.get(R);if(Ae!==he){throw new TypeError(`Invalid key curve for the algorithm, its curve must be ${he}, got ${Ae}`)}return{dsaEncoding:"ieee-p1363",key:pe}}default:throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=keyForCrypto},63436:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(73837);const ge=Ae(6113);const ye=Ae(38516);const me=Ae(87243);const ve=Ae(78583);const be=Ae(2666);const Ee=Ae(10414);const Ce=Ae(94899);const we=Ae(61489);const _e=Ae(26427);const Ie=Ae(99398);const Se=Ae(3053);const Be=(0,he.promisify)(ge.pbkdf2);function getPassword(R,pe){if((0,_e.default)(R)){return R.export()}if(R instanceof Uint8Array){return R}if((0,Ce.isCryptoKey)(R)){(0,we.checkEncCryptoKey)(R,pe,"deriveBits","deriveKey");return ge.KeyObject.from(R).export()}throw new TypeError((0,Ie.default)(R,...Se.types,"Uint8Array"))}const encrypt=async(R,pe,Ae,he=2048,ge=(0,ye.default)(new Uint8Array(16)))=>{(0,Ee.default)(ge);const Ce=(0,me.p2s)(R,ge);const we=parseInt(R.slice(13,16),10)>>3;const _e=getPassword(pe,R);const Ie=await Be(_e,Ce,he,we,`sha${R.slice(8,11)}`);const Se=await(0,be.wrap)(R.slice(-6),Ie,Ae);return{encryptedKey:Se,p2c:he,p2s:(0,ve.encode)(ge)}};pe.encrypt=encrypt;const decrypt=async(R,pe,Ae,he,ge)=>{(0,Ee.default)(ge);const ye=(0,me.p2s)(R,ge);const ve=parseInt(R.slice(13,16),10)>>3;const Ce=getPassword(pe,R);const we=await Be(Ce,ye,he,ve,`sha${R.slice(8,11)}`);return(0,be.unwrap)(R.slice(-6),we,Ae)};pe.decrypt=decrypt},38516:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=Ae(6113);Object.defineProperty(pe,"default",{enumerable:true,get:function(){return he.randomFillSync}})},74319:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(6113);const ge=Ae(65082);const ye=Ae(94899);const me=Ae(61489);const ve=Ae(26427);const be=Ae(99398);const Ee=Ae(3053);const checkKey=(R,pe)=>{if(R.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,ge.default)(R,pe)};const resolvePadding=R=>{switch(R){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return he.constants.RSA_PKCS1_OAEP_PADDING;case"RSA1_5":return he.constants.RSA_PKCS1_PADDING;default:return undefined}};const resolveOaepHash=R=>{switch(R){case"RSA-OAEP":return"sha1";case"RSA-OAEP-256":return"sha256";case"RSA-OAEP-384":return"sha384";case"RSA-OAEP-512":return"sha512";default:return undefined}};function ensureKeyObject(R,pe,...Ae){if((0,ve.default)(R)){return R}if((0,ye.isCryptoKey)(R)){(0,me.checkEncCryptoKey)(R,pe,...Ae);return he.KeyObject.from(R)}throw new TypeError((0,be.default)(R,...Ee.types))}const encrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"wrapKey","encrypt");checkKey(me,R);return(0,he.publicEncrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.encrypt=encrypt;const decrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"unwrapKey","decrypt");checkKey(me,R);return(0,he.privateDecrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.decrypt=decrypt},39115:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]="node:crypto"},55602:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);const ye=Ae(67688);const me=Ae(56538);const ve=Ae(39381);const be=Ae(92112);let Ee;if(he.sign.length>3){Ee=(0,ge.promisify)(he.sign)}else{Ee=he.sign}const sign=async(R,pe,Ae)=>{const ge=(0,be.default)(R,pe,"sign");if(R.startsWith("HS")){const pe=he.createHmac((0,me.default)(R),ge);pe.update(Ae);return pe.digest()}return Ee((0,ye.default)(R),Ae,(0,ve.default)(R,ge))};pe["default"]=sign},15411:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=he.timingSafeEqual;pe["default"]=ge},74706:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);const ye=Ae(67688);const me=Ae(39381);const ve=Ae(55602);const be=Ae(92112);const Ee=Ae(94350);let Ce;if(he.verify.length>4&&Ee.oneShotCallback){Ce=(0,ge.promisify)(he.verify)}else{Ce=he.verify}const verify=async(R,pe,Ae,ge)=>{const Ee=(0,be.default)(R,pe,"verify");if(R.startsWith("HS")){const pe=await(0,ve.default)(R,Ee,ge);const ye=Ae;try{return he.timingSafeEqual(ye,pe)}catch{return false}}const we=(0,ye.default)(R);const _e=(0,me.default)(R,Ee);try{return await Ce(we,ge,_e,Ae)}catch{return false}};pe["default"]=verify},94899:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isCryptoKey=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=he.webcrypto;pe["default"]=ye;pe.isCryptoKey=ge.types.isCryptoKey?R=>ge.types.isCryptoKey(R):R=>false},67907:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.deflate=pe.inflate=void 0;const he=Ae(73837);const ge=Ae(59796);const ye=Ae(96204);const me=(0,he.promisify)(ge.inflateRaw);const ve=(0,he.promisify)(ge.deflateRaw);const inflate=R=>me(R,{maxOutputLength:25e4}).catch((()=>{throw new ye.JWEDecompressionFailed}));pe.inflate=inflate;const deflate=R=>ve(R);pe.deflate=deflate},51736:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=void 0;const he=Ae(78583);pe.encode=he.encode;pe.decode=he.decode},22220:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeJwt=void 0;const he=Ae(51736);const ge=Ae(87243);const ye=Ae(3240);const me=Ae(96204);function decodeJwt(R){if(typeof R!=="string")throw new me.JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");const{1:pe,length:Ae}=R.split(".");if(Ae===5)throw new me.JWTInvalid("Only JWTs using Compact JWS serialization can be decoded");if(Ae!==3)throw new me.JWTInvalid("Invalid JWT");if(!pe)throw new me.JWTInvalid("JWTs must contain a payload");let ve;try{ve=(0,he.decode)(pe)}catch{throw new me.JWTInvalid("Failed to base64url decode the payload")}let be;try{be=JSON.parse(ge.decoder.decode(ve))}catch{throw new me.JWTInvalid("Failed to parse the decoded payload as JSON")}if(!(0,ye.default)(be))throw new me.JWTInvalid("Invalid JWT Claims Set");return be}pe.decodeJwt=decodeJwt},30672:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeProtectedHeader=void 0;const he=Ae(51736);const ge=Ae(87243);const ye=Ae(3240);function decodeProtectedHeader(R){let pe;if(typeof R==="string"){const Ae=R.split(".");if(Ae.length===3||Ae.length===5){[pe]=Ae}}else if(typeof R==="object"&&R){if("protected"in R){pe=R.protected}else{throw new TypeError("Token does not contain a Protected Header")}}try{if(typeof pe!=="string"||!pe){throw new Error}const R=JSON.parse(ge.decoder.decode((0,he.decode)(pe)));if(!(0,ye.default)(R)){throw new Error}return R}catch{throw new TypeError("Invalid Token or Protected Header formatting")}}pe.decodeProtectedHeader=decodeProtectedHeader},96204:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.JWSSignatureVerificationFailed=pe.JWKSTimeout=pe.JWKSMultipleMatchingKeys=pe.JWKSNoMatchingKey=pe.JWKSInvalid=pe.JWKInvalid=pe.JWTInvalid=pe.JWSInvalid=pe.JWEInvalid=pe.JWEDecompressionFailed=pe.JWEDecryptionFailed=pe.JOSENotSupported=pe.JOSEAlgNotAllowed=pe.JWTExpired=pe.JWTClaimValidationFailed=pe.JOSEError=void 0;class JOSEError extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(R){var pe;super(R);this.code="ERR_JOSE_GENERIC";this.name=this.constructor.name;(pe=Error.captureStackTrace)===null||pe===void 0?void 0:pe.call(Error,this,this.constructor)}}pe.JOSEError=JOSEError;class JWTClaimValidationFailed extends JOSEError{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(R,pe="unspecified",Ae="unspecified"){super(R);this.code="ERR_JWT_CLAIM_VALIDATION_FAILED";this.claim=pe;this.reason=Ae}}pe.JWTClaimValidationFailed=JWTClaimValidationFailed;class JWTExpired extends JOSEError{static get code(){return"ERR_JWT_EXPIRED"}constructor(R,pe="unspecified",Ae="unspecified"){super(R);this.code="ERR_JWT_EXPIRED";this.claim=pe;this.reason=Ae}}pe.JWTExpired=JWTExpired;class JOSEAlgNotAllowed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}pe.JOSEAlgNotAllowed=JOSEAlgNotAllowed;class JOSENotSupported extends JOSEError{constructor(){super(...arguments);this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}pe.JOSENotSupported=JOSENotSupported;class JWEDecryptionFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_DECRYPTION_FAILED";this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}pe.JWEDecryptionFailed=JWEDecryptionFailed;class JWEDecompressionFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_DECOMPRESSION_FAILED";this.message="decompression operation failed"}static get code(){return"ERR_JWE_DECOMPRESSION_FAILED"}}pe.JWEDecompressionFailed=JWEDecompressionFailed;class JWEInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}pe.JWEInvalid=JWEInvalid;class JWSInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}pe.JWSInvalid=JWSInvalid;class JWTInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}pe.JWTInvalid=JWTInvalid;class JWKInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}pe.JWKInvalid=JWKInvalid;class JWKSInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}pe.JWKSInvalid=JWKSInvalid;class JWKSNoMatchingKey extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_NO_MATCHING_KEY";this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}pe.JWKSNoMatchingKey=JWKSNoMatchingKey;class JWKSMultipleMatchingKeys extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}pe.JWKSMultipleMatchingKeys=JWKSMultipleMatchingKeys;Symbol.asyncIterator;class JWKSTimeout extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_TIMEOUT";this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}pe.JWKSTimeout=JWKSTimeout;class JWSSignatureVerificationFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}pe.JWSSignatureVerificationFailed=JWSSignatureVerificationFailed},75646:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(39115);pe["default"]=he.default},98327:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(6577),pe)},6577:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.parse=void 0;const me=ye(Ae(44083));const parse=R=>{const pe=JSON.parse(JSON.stringify(me.parse(R)));return pe};pe.parse=parse},998:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(25657),pe)},25657:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.issuer=void 0;const be=ve(Ae(81203));const Ee=ye(Ae(98327));const Ce=Ae(62444);const coseSign1CredentialIssuer=R=>({issue:pe=>me(void 0,void 0,void 0,(function*(){if(R.signer===undefined){throw new Error("No signer available.")}const Ae=Ee.parse(Ce.decoder.decode(pe.claimset));return R.signer.sign(Ce.encoder.encode(JSON.stringify(Ae)))}))});const jwtCredentialIssuer=R=>({issue:pe=>me(void 0,void 0,void 0,(function*(){if(R.signer===undefined){throw new Error("No signer available.")}const Ae=Ee.parse(Ce.decoder.decode(pe.claimset));return R.signer.sign(Ce.encoder.encode(JSON.stringify(Ae)))}))});const sdJwtCredentialIssuer=R=>({issue:pe=>me(void 0,void 0,void 0,(function*(){if(R.signer===undefined){throw new Error("No signer available.")}const Ae=yield be.default.salter();const he=yield be.default.digester();const ge=yield be.default.issuer({alg:R.alg,typ:"application/vc-ld+sd-jwt",cty:"application/vc-ld",salter:Ae,digester:he,signer:{sign:({claimset:pe})=>me(void 0,void 0,void 0,(function*(){const Ae=yield R.signer.sign(Ce.encoder.encode(JSON.stringify(pe)));return Ce.decoder.decode(Ae)}))}});const ye=yield ge.issue({claimset:Ce.decoder.decode(pe.claimset)});return Ce.encoder.encode(ye)}))});const issuer=R=>{if(R.type==="application/vc-ld+jwt"){return jwtCredentialIssuer(R)}else if(R.type==="application/vc-ld+sd-jwt"){return sdJwtCredentialIssuer(R)}else if(R.type==="application/vc-ld+cose"){return coseSign1CredentialIssuer(R)}throw new Error("credential type is not supported.")};pe.issuer=issuer},97434:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var me=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.base64url=pe.validator=pe.verifier=pe.holder=pe.issuer=pe.text=pe.status=pe.claimset=pe.key=pe.version=void 0;const ve=Ae(34061);Object.defineProperty(pe,"base64url",{enumerable:true,get:function(){return ve.base64url}});pe.version="https://www.w3.org/TR/2024/CR-vc-data-model-2.0-20240201/";ye(Ae(98668),pe);const be=me(Ae(13806));pe.key=be;const Ee=me(Ae(98327));pe.claimset=Ee;const Ce=me(Ae(28931));pe.status=Ce;const we=me(Ae(62444));pe.text=we;const _e=Ae(998);Object.defineProperty(pe,"issuer",{enumerable:true,get:function(){return _e.issuer}});const Ie=Ae(77411);Object.defineProperty(pe,"holder",{enumerable:true,get:function(){return Ie.holder}});const Se=Ae(66944);Object.defineProperty(pe,"verifier",{enumerable:true,get:function(){return Se.verifier}});const Be=Ae(34702);Object.defineProperty(pe,"validator",{enumerable:true,get:function(){return Be.validator}})},49544:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.generate=void 0;const be=ve(Ae(99623));const Ee=ye(Ae(88844));const Ce=new TextEncoder;const generate=R=>me(void 0,void 0,void 0,(function*(){if(R.type==="application/jwk+json"){const pe=yield Ee.key.generate(R.alg,"application/jwk+json");const Ae=JSON.stringify(pe,null,2);return Ce.encode(Ae)}if(R.type==="application/cose-key"){const pe=yield Ee.key.generate(R.alg,"application/cose-key");return new Uint8Array(Ee.cbor.encode(pe))}if(R.type==="application/pkcs8"){const pe=yield Ee.certificate.root({alg:R.alg,iss:R.iss||"vendor.example",sub:R.sub||"vendor.example",nbf:R.nbf||(0,be.default)().toISOString(),exp:R.nbf||(0,be.default)().add(5,"minutes").toISOString()});return Ce.encode(pe.private)}throw new Error("Unsupported content type for private key")}));pe.generate=generate},62087:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.importJWK=void 0;const ve=ye(Ae(88844));const be=Ae(62444);const importJWK=R=>me(void 0,void 0,void 0,(function*(){if(R.type==="application/jwk+json"){return JSON.parse(be.decoder.decode(R.content))}else if(R.type==="application/cose-key"){const pe=ve.cbor.decode(R.content);const Ae=yield ve.key.convertCoseKeyToJsonWebKey(pe);return Ae}throw new Error("Unsupported key type.")}));pe.importJWK=importJWK},33375:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.importKeyLike=void 0;const ve=ye(Ae(34061));const be=Ae(62087);const importKeyLike=R=>me(void 0,void 0,void 0,(function*(){if(R.type==="application/jwk+json"){const pe=yield(0,be.importJWK)(R);return ve.importJWK(pe)}else if(R.type==="application/cose-key"){const pe=yield(0,be.importJWK)(R);return ve.importJWK(pe)}throw new Error("Unsupported key type.")}));pe.importKeyLike=importKeyLike},13806:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(49544),pe);ge(Ae(62087),pe);ge(Ae(33375),pe);ge(Ae(92153),pe)},92153:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);geme(void 0,void 0,void 0,(function*(){if(R.type==="application/jwk+json"){const pe=JSON.parse(Ee.decoder.decode(R.content)),{d:Ae}=pe,he=ve(pe,["d"]);return Ee.encoder.encode(JSON.stringify(he))}else if(R.type==="application/cose-key"){const pe=be.cbor.decode(R.content);const Ae=yield be.key.convertCoseKeyToJsonWebKey(pe);const{d:he}=Ae,ge=ve(Ae,["d"]);const ye=be.key.convertJsonWebKeyToCoseKey(ge);return be.cbor.encode(ye)}throw new Error("Unsupported key type.")}));pe.publicFromPrivate=publicFromPrivate},79205:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.holder=void 0;const ye=ge(Ae(81203));const me=Ae(34061);const ve=Ae(62444);const presentationToClaims=R=>{const pe=R.presentation;pe.verifiableCredential=[];for(const Ae of R.disclosures){const R=Ae.type.endsWith("+cose")?`base64url,${me.base64url.encode(Ae.credential)}`:ve.decoder.decode(Ae.credential);pe.verifiableCredential.push({"@context":"https://www.w3.org/ns/credentials/v2",id:`data:${Ae.type};${R}`,type:"EnvelopedVerifiableCredential"})}return pe};const jwtPresentationIssuer=R=>({issue:R=>he(void 0,void 0,void 0,(function*(){if(R.signer===undefined){throw new Error("No signer available.")}const pe=presentationToClaims(R);return R.signer.sign(ve.encoder.encode(JSON.stringify(pe)))}))});const coseSign1PresentationIssuer=R=>({issue:R=>he(void 0,void 0,void 0,(function*(){if(R.signer===undefined){throw new Error("No signer available.")}const pe=presentationToClaims(R);return R.signer.sign(ve.encoder.encode(JSON.stringify(pe)))}))});const sdJwtPresentationIssuer=R=>({issue:pe=>he(void 0,void 0,void 0,(function*(){if(!pe.disclosures){throw new Error("disclosures are required for this presentation type")}const Ae={sign:({claimset:R})=>he(void 0,void 0,void 0,(function*(){if(pe.signer===undefined){throw new Error("signer is required for this presentation type")}const Ae=ve.encoder.encode(JSON.stringify(R));return ve.decoder.decode(yield pe.signer.sign(Ae))}))};const ge=yield ye.default.salter();const me=yield ye.default.digester();const be=yield ye.default.holder({alg:R.alg,salter:ge,digester:me,signer:Ae});const Ee=pe.presentation;Ee.verifiableCredential=[];for(const R of pe.disclosures){const pe=yield be.issue({token:ve.decoder.decode(R.credential),disclosure:ve.decoder.decode(R.disclosure),nonce:R.nonce,audience:R.audience});Ee.verifiableCredential.push({"@context":"https://www.w3.org/ns/credentials/v2",id:`data:application/vc-ld+sd-jwt;${pe}`,type:"EnvelopedVerifiableCredential"})}const Ce=yield ye.default.issuer({alg:R.alg,salter:ge,digester:me,signer:Ae});const we=yield Ce.issue({claimset:ye.default.YAML.dumps(Ee)});return ve.encoder.encode(we)}))});const unsecuredPresentationOfSecuredCredentials=R=>({issue:pe=>he(void 0,void 0,void 0,(function*(){if(pe.disclosures==undefined){throw new Error("disclosures is REQUIRED for this presentation type.")}const Ae=yield ye.default.salter();const he=yield ye.default.digester();const ge=yield ye.default.holder({alg:R.alg,salter:Ae,digester:he});const me=pe.presentation;me.verifiableCredential=[];for(const R of pe.disclosures){let pe=undefined;if(R.disclosure){const Ae=yield ge.issue({token:ve.decoder.decode(R.credential),disclosure:ve.decoder.decode(R.disclosure)});pe=`data:${R.type};${Ae}`}else{const Ae=ve.decoder.decode(R.credential);pe=`data:${R.type};${Ae}`}if(pe===undefined){throw new Error("Unable to envelop credential for presentation")}me.verifiableCredential.push({"@context":"https://www.w3.org/ns/credentials/v2",id:pe,type:"EnvelopedVerifiableCredential"})}return ve.encoder.encode(JSON.stringify(me))}))});const holder=R=>{if(R.type==="application/vp-ld+jwt"){return jwtPresentationIssuer(R)}else if(R.type==="application/vp-ld+sd-jwt"){return sdJwtPresentationIssuer(R)}else if(R.type==="application/vp-ld+cose"){return coseSign1PresentationIssuer(R)}else if(R.type==="application/vp-ld"){return unsecuredPresentationOfSecuredCredentials(R)}throw new Error("presentation type is not supported.")};pe.holder=holder},77411:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(79205),pe)},63699:function(R,pe,Ae){"use strict"; + */Ae(15202);var he=Ae(53499);var ge=Ae(82288);var ye=Ae(22420);var me=Ae(19493);var ve=Ae(8277);var be=Ae(5574);var Ee=Ae(4351);var we=Ae(71069);var Ce=Ae(55938);var _e=Ae(86717);function _interopNamespaceDefault(R){var pe=Object.create(null);if(R){Object.keys(R).forEach((function(Ae){if(Ae!=="default"){var he=Object.getOwnPropertyDescriptor(R,Ae);Object.defineProperty(pe,Ae,he.get?he:{enumerable:true,get:function(){return R[Ae]}})}}))}pe.default=R;return Object.freeze(pe)}var Ie=_interopNamespaceDefault(ge);var Se=_interopNamespaceDefault(me);var Be=_interopNamespaceDefault(ve);var ke=_interopNamespaceDefault(be);var Oe=_interopNamespaceDefault(Ce);const Re="crypto.algorithm";class AlgorithmProvider{getAlgorithms(){return we.container.resolveAll(Re)}toAsnAlgorithm(R){({...R});for(const pe of this.getAlgorithms()){const Ae=pe.toAsnAlgorithm(R);if(Ae){return Ae}}if(/^[0-9.]+$/.test(R.name)){const pe=new ge.AlgorithmIdentifier({algorithm:R.name});if("parameters"in R){const Ae=R;pe.parameters=Ae.parameters}return pe}throw new Error("Cannot convert WebCrypto algorithm to ASN.1 algorithm")}toWebAlgorithm(R){for(const pe of this.getAlgorithms()){const Ae=pe.toWebAlgorithm(R);if(Ae){return Ae}}const pe={name:R.algorithm,parameters:R.parameters};return pe}}const Qe="crypto.algorithmProvider";we.container.registerSingleton(Qe,AlgorithmProvider);var xe;const Pe="1.3.36.3.3.2.8.1.1";const Te=`${Pe}.1`;const De=`${Pe}.2`;const Ne=`${Pe}.3`;const Me=`${Pe}.4`;const je=`${Pe}.5`;const Fe=`${Pe}.6`;const Le=`${Pe}.7`;const Ue=`${Pe}.8`;const He=`${Pe}.9`;const Je=`${Pe}.10`;const We=`${Pe}.11`;const Ve=`${Pe}.12`;const Ke=`${Pe}.13`;const Ge=`${Pe}.14`;const Ye="brainpoolP160r1";const qe="brainpoolP160t1";const $e="brainpoolP192r1";const ze="brainpoolP192t1";const Xe="brainpoolP224r1";const Ze="brainpoolP224t1";const et="brainpoolP256r1";const tt="brainpoolP256t1";const rt="brainpoolP320r1";const nt="brainpoolP320t1";const it="brainpoolP384r1";const ot="brainpoolP384t1";const st="brainpoolP512r1";const at="brainpoolP512t1";const ct="ECDSA";pe.EcAlgorithm=xe=class EcAlgorithm{toAsnAlgorithm(R){switch(R.name.toLowerCase()){case ct.toLowerCase():if("hash"in R){const pe=typeof R.hash==="string"?R.hash:R.hash.name;switch(pe.toLowerCase()){case"sha-1":return Be.ecdsaWithSHA1;case"sha-256":return Be.ecdsaWithSHA256;case"sha-384":return Be.ecdsaWithSHA384;case"sha-512":return Be.ecdsaWithSHA512}}else if("namedCurve"in R){let pe="";switch(R.namedCurve){case"P-256":pe=Be.id_secp256r1;break;case"K-256":pe=xe.SECP256K1;break;case"P-384":pe=Be.id_secp384r1;break;case"P-521":pe=Be.id_secp521r1;break;case Ye:pe=Te;break;case qe:pe=De;break;case $e:pe=Ne;break;case ze:pe=Me;break;case Xe:pe=je;break;case Ze:pe=Fe;break;case et:pe=Le;break;case tt:pe=Ue;break;case rt:pe=He;break;case nt:pe=Je;break;case it:pe=We;break;case ot:pe=Ve;break;case st:pe=Ke;break;case at:pe=Ge;break}if(pe){return new ge.AlgorithmIdentifier({algorithm:Be.id_ecPublicKey,parameters:he.AsnConvert.serialize(new Be.ECParameters({namedCurve:pe}))})}}}return null}toWebAlgorithm(R){switch(R.algorithm){case Be.id_ecdsaWithSHA1:return{name:ct,hash:{name:"SHA-1"}};case Be.id_ecdsaWithSHA256:return{name:ct,hash:{name:"SHA-256"}};case Be.id_ecdsaWithSHA384:return{name:ct,hash:{name:"SHA-384"}};case Be.id_ecdsaWithSHA512:return{name:ct,hash:{name:"SHA-512"}};case Be.id_ecPublicKey:{if(!R.parameters){throw new TypeError("Cannot get required parameters from EC algorithm")}const pe=he.AsnConvert.parse(R.parameters,Be.ECParameters);switch(pe.namedCurve){case Be.id_secp256r1:return{name:ct,namedCurve:"P-256"};case xe.SECP256K1:return{name:ct,namedCurve:"K-256"};case Be.id_secp384r1:return{name:ct,namedCurve:"P-384"};case Be.id_secp521r1:return{name:ct,namedCurve:"P-521"};case Te:return{name:ct,namedCurve:Ye};case De:return{name:ct,namedCurve:qe};case Ne:return{name:ct,namedCurve:$e};case Me:return{name:ct,namedCurve:ze};case je:return{name:ct,namedCurve:Xe};case Fe:return{name:ct,namedCurve:Ze};case Le:return{name:ct,namedCurve:et};case Ue:return{name:ct,namedCurve:tt};case He:return{name:ct,namedCurve:rt};case Je:return{name:ct,namedCurve:nt};case We:return{name:ct,namedCurve:it};case Ve:return{name:ct,namedCurve:ot};case Ke:return{name:ct,namedCurve:st};case Ge:return{name:ct,namedCurve:at}}}}return null}};pe.EcAlgorithm.SECP256K1="1.3.132.0.10";pe.EcAlgorithm=xe=Ee.__decorate([we.injectable()],pe.EcAlgorithm);we.container.registerSingleton(Re,pe.EcAlgorithm);const ut=Symbol("name");const lt=Symbol("value");class TextObject{constructor(R,pe={},Ae=""){this[ut]=R;this[lt]=Ae;for(const R in pe){this[R]=pe[R]}}}TextObject.NAME=ut;TextObject.VALUE=lt;class DefaultAlgorithmSerializer{static toTextObject(R){const Ae=new TextObject("Algorithm Identifier",{},OidSerializer.toString(R.algorithm));if(R.parameters){switch(R.algorithm){case Be.id_ecPublicKey:{const he=(new pe.EcAlgorithm).toWebAlgorithm(R);if(he&&"namedCurve"in he){Ae["Named Curve"]=he.namedCurve}else{Ae["Parameters"]=R.parameters}break}default:Ae["Parameters"]=R.parameters}}return Ae}}class OidSerializer{static toString(R){const pe=this.items[R];if(pe){return pe}return R}}OidSerializer.items={[ke.id_sha1]:"sha1",[ke.id_sha224]:"sha224",[ke.id_sha256]:"sha256",[ke.id_sha384]:"sha384",[ke.id_sha512]:"sha512",[ke.id_rsaEncryption]:"rsaEncryption",[ke.id_sha1WithRSAEncryption]:"sha1WithRSAEncryption",[ke.id_sha224WithRSAEncryption]:"sha224WithRSAEncryption",[ke.id_sha256WithRSAEncryption]:"sha256WithRSAEncryption",[ke.id_sha384WithRSAEncryption]:"sha384WithRSAEncryption",[ke.id_sha512WithRSAEncryption]:"sha512WithRSAEncryption",[Be.id_ecPublicKey]:"ecPublicKey",[Be.id_ecdsaWithSHA1]:"ecdsaWithSHA1",[Be.id_ecdsaWithSHA224]:"ecdsaWithSHA224",[Be.id_ecdsaWithSHA256]:"ecdsaWithSHA256",[Be.id_ecdsaWithSHA384]:"ecdsaWithSHA384",[Be.id_ecdsaWithSHA512]:"ecdsaWithSHA512",[Ie.id_kp_serverAuth]:"TLS WWW server authentication",[Ie.id_kp_clientAuth]:"TLS WWW client authentication",[Ie.id_kp_codeSigning]:"Code Signing",[Ie.id_kp_emailProtection]:"E-mail Protection",[Ie.id_kp_timeStamping]:"Time Stamping",[Ie.id_kp_OCSPSigning]:"OCSP Signing",[Se.id_signedData]:"Signed Data"};class TextConverter{static serialize(R){return this.serializeObj(R).join("\n")}static pad(R=0){return"".padStart(2*R," ")}static serializeObj(R,pe=0){const Ae=[];let he=this.pad(pe++);let ge="";const me=R[TextObject.VALUE];if(me){ge=` ${me}`}Ae.push(`${he}${R[TextObject.NAME]}:${ge}`);he=this.pad(pe);for(const ge in R){if(typeof ge==="symbol"){continue}const me=R[ge];const ve=ge?`${ge}: `:"";if(typeof me==="string"||typeof me==="number"||typeof me==="boolean"){Ae.push(`${he}${ve}${me}`)}else if(me instanceof Date){Ae.push(`${he}${ve}${me.toUTCString()}`)}else if(Array.isArray(me)){for(const R of me){R[TextObject.NAME]=ge;Ae.push(...this.serializeObj(R,pe))}}else if(me instanceof TextObject){me[TextObject.NAME]=ge;Ae.push(...this.serializeObj(me,pe))}else if(ye.BufferSourceConverter.isBufferSource(me)){if(ge){Ae.push(`${he}${ve}`);Ae.push(...this.serializeBufferSource(me,pe+1))}else{Ae.push(...this.serializeBufferSource(me,pe))}}else if("toTextObject"in me){const R=me.toTextObject();R[TextObject.NAME]=ge;Ae.push(...this.serializeObj(R,pe))}else{throw new TypeError("Cannot serialize data in text format. Unsupported type.")}}return Ae}static serializeBufferSource(R,pe=0){const Ae=this.pad(pe);const he=ye.BufferSourceConverter.toUint8Array(R);const ge=[];for(let R=0;R;])/g,"\\$1").replace(/^([ #])/,"\\$1").replace(/([ ]$)/,"\\$1").replace(/([\r\n\t])/,replaceUnknownCharacter)}class Name{static isASCII(R){for(let pe=0;pe255){return false}}return true}static isPrintableString(R){return/^[A-Za-z0-9 '()+,-./:=?]*$/g.test(R)}constructor(R,pe={}){this.extraNames=new NameIdentifier;this.asn=new ge.Name;for(const R in pe){if(Object.prototype.hasOwnProperty.call(pe,R)){const Ae=pe[R];this.extraNames.register(R,Ae)}}if(typeof R==="string"){this.asn=this.fromString(R)}else if(R instanceof ge.Name){this.asn=R}else if(ye.BufferSourceConverter.isBufferSource(R)){this.asn=he.AsnConvert.parse(R,ge.Name)}else{this.asn=this.fromJSON(R)}}getField(R){const pe=this.extraNames.findId(R)||At.findId(R);const Ae=[];for(const R of this.asn){for(const he of R){if(he.type===pe){Ae.push(he.value.toString())}}}return Ae}getName(R){return this.extraNames.get(R)||At.get(R)}toString(){return this.asn.map((R=>R.map((R=>{const pe=this.getName(R.type)||R.type;const Ae=R.value.anyValue?`#${ye.Convert.ToHex(R.value.anyValue)}`:escape(R.value.toString());return`${pe}=${Ae}`})).join("+"))).join(", ")}toJSON(){var R;const pe=[];for(const Ae of this.asn){const he={};for(const pe of Ae){const Ae=this.getName(pe.type)||pe.type;(R=he[Ae])!==null&&R!==void 0?R:he[Ae]=[];he[Ae].push(pe.value.anyValue?`#${ye.Convert.ToHex(pe.value.anyValue)}`:pe.value.toString())}pe.push(he)}return pe}fromString(R){const pe=new ge.Name;const Ae=/(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g;let he=null;let me=",";while(he=Ae.exec(`${R},`)){let[,R,Ae]=he;const ve=Ae[Ae.length-1];if(ve===","||ve==="+"){Ae=Ae.slice(0,Ae.length-1);he[3]=ve}const be=he[3];if(!/[\d.]+/.test(R)){R=this.getName(R)||""}if(!R){throw new Error(`Cannot get OID for name type '${R}'`)}const Ee=new ge.AttributeTypeAndValue({type:R});if(Ae.charAt(0)==="#"){Ee.value.anyValue=ye.Convert.FromHex(Ae.slice(1))}else{const pe=/"(.*?[^\\])?"/.exec(Ae);if(pe){Ae=pe[1]}Ae=Ae.replace(/\\0a/gi,"\n").replace(/\\0d/gi,"\r").replace(/\\0g/gi,"\t").replace(/\\(.)/g,"$1");if(R===this.getName("E")||R===this.getName("DC")){Ee.value.ia5String=Ae}else{if(Name.isPrintableString(Ae)){Ee.value.printableString=Ae}else{Ee.value.utf8String=Ae}}}if(me==="+"){pe[pe.length-1].push(Ee)}else{pe.push(new ge.RelativeDistinguishedName([Ee]))}me=be}return pe}fromJSON(R){const pe=new ge.Name;for(const Ae of R){const R=new ge.RelativeDistinguishedName;for(const pe in Ae){let he=pe;if(!/[\d.]+/.test(pe)){he=this.getName(pe)||""}if(!he){throw new Error(`Cannot get OID for name type '${pe}'`)}const me=Ae[pe];for(const pe of me){const Ae=new ge.AttributeTypeAndValue({type:he});if(typeof pe==="object"){for(const R in pe){switch(R){case"ia5String":Ae.value.ia5String=pe[R];break;case"utf8String":Ae.value.utf8String=pe[R];break;case"universalString":Ae.value.universalString=pe[R];break;case"bmpString":Ae.value.bmpString=pe[R];break;case"printableString":Ae.value.printableString=pe[R];break}}}else if(pe[0]==="#"){Ae.value.anyValue=ye.Convert.FromHex(pe.slice(1))}else{if(he===this.getName("E")||he===this.getName("DC")){Ae.value.ia5String=pe}else{Ae.value.printableString=pe}}R.push(Ae)}}pe.push(R)}return pe}toArrayBuffer(){return he.AsnConvert.serialize(this.asn)}async getThumbprint(...R){var pe;let Ae;let he="SHA-1";if(R.length>=1&&!((pe=R[0])===null||pe===void 0?void 0:pe.subtle)){he=R[0]||he;Ae=R[1]||ft.get()}else{Ae=R[0]||ft.get()}return await Ae.subtle.digest(he,this.toArrayBuffer())}}const ht="Cannot initialize GeneralName from ASN.1 data.";const gt=`${ht} Unsupported string format in use.`;const yt=`${ht} Value doesn't match to GUID regular expression.`;const mt=/^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i;const vt="1.3.6.1.4.1.311.25.1";const bt="1.3.6.1.4.1.311.20.2.3";const Et="dns";const wt="dn";const Ct="email";const _t="ip";const It="url";const St="guid";const Bt="upn";const kt="id";class GeneralName extends AsnData{constructor(...R){let pe;if(R.length===2){switch(R[0]){case wt:{const Ae=new Name(R[1]).toArrayBuffer();const ge=he.AsnConvert.parse(Ae,Ie.Name);pe=new Ie.GeneralName({directoryName:ge});break}case Et:pe=new Ie.GeneralName({dNSName:R[1]});break;case Ct:pe=new Ie.GeneralName({rfc822Name:R[1]});break;case St:{const Ae=new RegExp(mt,"i").exec(R[1]);if(!Ae){throw new Error("Cannot parse GUID value. Value doesn't match to regular expression")}const ge=Ae.slice(1).map(((R,pe)=>{if(pe<3){return ye.Convert.ToHex(new Uint8Array(ye.Convert.FromHex(R)).reverse())}return R})).join("");pe=new Ie.GeneralName({otherName:new Ie.OtherName({typeId:vt,value:he.AsnConvert.serialize(new he.OctetString(ye.Convert.FromHex(ge)))})});break}case _t:pe=new Ie.GeneralName({iPAddress:R[1]});break;case kt:pe=new Ie.GeneralName({registeredID:R[1]});break;case Bt:{pe=new Ie.GeneralName({otherName:new Ie.OtherName({typeId:bt,value:he.AsnConvert.serialize(he.AsnUtf8StringConverter.toASN(R[1]))})});break}case It:pe=new Ie.GeneralName({uniformResourceIdentifier:R[1]});break;default:throw new Error("Cannot create GeneralName. Unsupported type of the name")}}else if(ye.BufferSourceConverter.isBufferSource(R[0])){pe=he.AsnConvert.parse(R[0],Ie.GeneralName)}else{pe=R[0]}super(pe)}onInit(R){if(R.dNSName!=undefined){this.type=Et;this.value=R.dNSName}else if(R.rfc822Name!=undefined){this.type=Ct;this.value=R.rfc822Name}else if(R.iPAddress!=undefined){this.type=_t;this.value=R.iPAddress}else if(R.uniformResourceIdentifier!=undefined){this.type=It;this.value=R.uniformResourceIdentifier}else if(R.registeredID!=undefined){this.type=kt;this.value=R.registeredID}else if(R.directoryName!=undefined){this.type=wt;this.value=new Name(R.directoryName).toString()}else if(R.otherName!=undefined){if(R.otherName.typeId===vt){this.type=St;const pe=he.AsnConvert.parse(R.otherName.value,he.OctetString);const Ae=new RegExp(mt,"i").exec(ye.Convert.ToHex(pe));if(!Ae){throw new Error(yt)}this.value=Ae.slice(1).map(((R,pe)=>{if(pe<3){return ye.Convert.ToHex(new Uint8Array(ye.Convert.FromHex(R)).reverse())}return R})).join("-")}else if(R.otherName.typeId===bt){this.type=Bt;this.value=he.AsnConvert.parse(R.otherName.value,Ie.DirectoryString).toString()}else{throw new Error(gt)}}else{throw new Error(gt)}}toJSON(){return{type:this.type,value:this.value}}toTextObject(){let R;switch(this.type){case wt:case Et:case St:case _t:case kt:case Bt:case It:R=this.type.toUpperCase();break;case Ct:R="Email";break;default:throw new Error("Unsupported GeneralName type")}let pe=this.value;if(this.type===kt){pe=OidSerializer.toString(pe)}return new TextObject(R,undefined,pe)}}class GeneralNames extends AsnData{constructor(R){let pe;if(R instanceof Ie.GeneralNames){pe=R}else if(Array.isArray(R)){const Ae=[];for(const pe of R){if(pe instanceof Ie.GeneralName){Ae.push(pe)}else{const R=he.AsnConvert.parse(new GeneralName(pe.type,pe.value).rawData,Ie.GeneralName);Ae.push(R)}}pe=new Ie.GeneralNames(Ae)}else if(ye.BufferSourceConverter.isBufferSource(R)){pe=he.AsnConvert.parse(R,Ie.GeneralNames)}else{throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments")}super(pe)}onInit(R){const pe=[];for(const Ae of R){let R=null;try{R=new GeneralName(Ae)}catch{continue}pe.push(R)}this.items=pe}toJSON(){return this.items.map((R=>R.toJSON()))}toTextObject(){const R=super.toTextObjectEmpty();for(const pe of this.items){const Ae=pe.toTextObject();let he=R[Ae[TextObject.NAME]];if(!Array.isArray(he)){he=[];R[Ae[TextObject.NAME]]=he}he.push(Ae)}return R}}GeneralNames.NAME="GeneralNames";const Ot="-{5}";const Rt="\\n";const Qt=`[^${Rt}]+`;const xt=`${Ot}BEGIN (${Qt}(?=${Ot}))${Ot}`;const Pt=`${Ot}END \\1${Ot}`;const Tt="\\n";const Dt=`[^:${Rt}]+`;const Nt=`(?:[^${Rt}]+${Tt}(?: +[^${Rt}]+${Tt})*)`;const Mt="[a-zA-Z0-9=+/]+";const jt=`(?:${Mt}${Tt})+`;const Ft=`${xt}${Tt}(?:((?:${Dt}: ${Nt})+))?${Tt}?(${jt})${Pt}`;class PemConverter{static isPem(R){return typeof R==="string"&&new RegExp(Ft,"g").test(R)}static decodeWithHeaders(R){R=R.replace(/\r/g,"");const pe=new RegExp(Ft,"g");const Ae=[];let he=null;while(he=pe.exec(R)){const R=he[3].replace(new RegExp(`[${Rt}]+`,"g"),"");const pe={type:he[1],headers:[],rawData:ye.Convert.FromBase64(R)};const ge=he[2];if(ge){const R=ge.split(new RegExp(Tt,"g"));let Ae=null;for(const he of R){const[R,ge]=he.split(/:(.*)/);if(ge===undefined){if(!Ae){throw new Error("Cannot parse PEM string. Incorrect header value")}Ae.value+=R.trim()}else{if(Ae){pe.headers.push(Ae)}Ae={key:R,value:ge.trim()}}}if(Ae){pe.headers.push(Ae)}}Ae.push(pe)}return Ae}static decode(R){const pe=this.decodeWithHeaders(R);return pe.map((R=>R.rawData))}static decodeFirst(R){const pe=this.decode(R);if(!pe.length){throw new RangeError("PEM string doesn't contain any objects")}return pe[0]}static encode(R,pe){if(Array.isArray(R)){const Ae=new Array;if(pe){R.forEach((R=>{if(!ye.BufferSourceConverter.isBufferSource(R)){throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource")}Ae.push(this.encodeStruct({type:pe,rawData:ye.BufferSourceConverter.toArrayBuffer(R)}))}))}else{R.forEach((R=>{if(!("type"in R)){throw new TypeError("Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut")}Ae.push(this.encodeStruct(R))}))}return Ae.join("\n")}else{if(!pe){throw new Error("Required argument 'tag' is missed")}return this.encodeStruct({type:pe,rawData:ye.BufferSourceConverter.toArrayBuffer(R)})}}static encodeStruct(R){var pe;const Ae=R.type.toLocaleUpperCase();const he=[];he.push(`-----BEGIN ${Ae}-----`);if((pe=R.headers)===null||pe===void 0?void 0:pe.length){for(const pe of R.headers){he.push(`${pe.key}: ${pe.value}`)}he.push("")}const ge=ye.Convert.ToBase64(R.rawData);let me;let ve=0;const be=Array();while(ve1){ye=R[0]||ye;Ae=R[1]||Ae;pe=R[2]||ft.get()}else{pe=R[0]||ft.get()}let me=this.rawData;const ve=he.AsnConvert.parse(this.rawData,ge.SubjectPublicKeyInfo);if(ve.algorithm.algorithm===be.id_RSASSA_PSS){me=convertSpkiToRsaPkcs1(ve,me)}return pe.subtle.importKey("spki",me,ye,true,Ae)}onInit(R){const pe=we.container.resolve(Qe);const Ae=this.algorithm=pe.toWebAlgorithm(R.algorithm);switch(R.algorithm.algorithm){case be.id_rsaEncryption:{const pe=he.AsnConvert.parse(R.subjectPublicKey,be.RSAPublicKey);const ge=ye.BufferSourceConverter.toUint8Array(pe.modulus);Ae.publicExponent=ye.BufferSourceConverter.toUint8Array(pe.publicExponent);Ae.modulusLength=(!ge[0]?ge.slice(1):ge).byteLength<<3;break}}}async getThumbprint(...R){var pe;let Ae;let he="SHA-1";if(R.length>=1&&!((pe=R[0])===null||pe===void 0?void 0:pe.subtle)){he=R[0]||he;Ae=R[1]||ft.get()}else{Ae=R[0]||ft.get()}return await Ae.subtle.digest(he,this.rawData)}async getKeyIdentifier(...R){let pe=ft.get();let Ae="SHA-1";if(R.length===1){if(typeof R[0]==="string"){Ae=R[0]}else{pe=R[0]}}else if(R.length===2){Ae=R[0];pe=R[1]}const ye=he.AsnConvert.parse(this.rawData,ge.SubjectPublicKeyInfo);return await pe.subtle.digest(Ae,ye.subjectPublicKey)}toTextObject(){const R=this.toTextObjectEmpty();const pe=he.AsnConvert.parse(this.rawData,ge.SubjectPublicKeyInfo);R["Algorithm"]=TextConverter.serializeAlgorithm(pe.algorithm);switch(pe.algorithm.algorithm){case ve.id_ecPublicKey:R["EC Point"]=pe.subjectPublicKey;break;case be.id_rsaEncryption:default:R["Raw Data"]=pe.subjectPublicKey}return R}}function convertSpkiToRsaPkcs1(R,pe){R.algorithm=new ge.AlgorithmIdentifier({algorithm:be.id_rsaEncryption,parameters:null});pe=he.AsnConvert.serialize(R);return pe}class AuthorityKeyIdentifierExtension extends Extension{static async create(R,pe=false,Ae=ft.get()){if("name"in R&&"serialNumber"in R){return new AuthorityKeyIdentifierExtension(R,pe)}const he=await PublicKey.create(R,Ae);const ge=await he.getKeyIdentifier(Ae);return new AuthorityKeyIdentifierExtension(ye.Convert.ToHex(ge),pe)}constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else if(typeof R[0]==="string"){const pe=new Ie.AuthorityKeyIdentifier({keyIdentifier:new Ie.KeyIdentifier(ye.Convert.FromHex(R[0]))});super(Ie.id_ce_authorityKeyIdentifier,R[1],he.AsnConvert.serialize(pe))}else{const pe=R[0];const Ae=pe.name instanceof GeneralNames?he.AsnConvert.parse(pe.name.rawData,Ie.GeneralNames):pe.name;const ge=new Ie.AuthorityKeyIdentifier({authorityCertIssuer:Ae,authorityCertSerialNumber:ye.Convert.FromHex(pe.serialNumber)});super(Ie.id_ce_authorityKeyIdentifier,R[1],he.AsnConvert.serialize(ge))}}onInit(R){super.onInit(R);const pe=he.AsnConvert.parse(R.extnValue,Ie.AuthorityKeyIdentifier);if(pe.keyIdentifier){this.keyId=ye.Convert.ToHex(pe.keyIdentifier)}if(pe.authorityCertIssuer||pe.authorityCertSerialNumber){this.certId={name:pe.authorityCertIssuer||[],serialNumber:pe.authorityCertSerialNumber?ye.Convert.ToHex(pe.authorityCertSerialNumber):""}}}toTextObject(){const R=this.toTextObjectWithoutValue();const pe=he.AsnConvert.parse(this.value,Ie.AuthorityKeyIdentifier);if(pe.authorityCertIssuer){R["Authority Issuer"]=new GeneralNames(pe.authorityCertIssuer).toTextObject()}if(pe.authorityCertSerialNumber){R["Authority Serial Number"]=pe.authorityCertSerialNumber}if(pe.keyIdentifier){R[""]=pe.keyIdentifier}return R}}AuthorityKeyIdentifierExtension.NAME="Authority Key Identifier";class BasicConstraintsExtension extends Extension{constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0]);const pe=he.AsnConvert.parse(this.value,ge.BasicConstraints);this.ca=pe.cA;this.pathLength=pe.pathLenConstraint}else{const pe=new ge.BasicConstraints({cA:R[0],pathLenConstraint:R[1]});super(ge.id_ce_basicConstraints,R[2],he.AsnConvert.serialize(pe));this.ca=R[0];this.pathLength=R[1]}}toTextObject(){const R=this.toTextObjectWithoutValue();if(this.ca){R["CA"]=this.ca}if(this.pathLength!==undefined){R["Path Length"]=this.pathLength}return R}}BasicConstraintsExtension.NAME="Basic Constraints";pe.ExtendedKeyUsage=void 0;(function(R){R["serverAuth"]="1.3.6.1.5.5.7.3.1";R["clientAuth"]="1.3.6.1.5.5.7.3.2";R["codeSigning"]="1.3.6.1.5.5.7.3.3";R["emailProtection"]="1.3.6.1.5.5.7.3.4";R["timeStamping"]="1.3.6.1.5.5.7.3.8";R["ocspSigning"]="1.3.6.1.5.5.7.3.9"})(pe.ExtendedKeyUsage||(pe.ExtendedKeyUsage={}));class ExtendedKeyUsageExtension extends Extension{constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0]);const pe=he.AsnConvert.parse(this.value,Ie.ExtendedKeyUsage);this.usages=pe.map((R=>R))}else{const pe=new Ie.ExtendedKeyUsage(R[0]);super(Ie.id_ce_extKeyUsage,R[1],he.AsnConvert.serialize(pe));this.usages=R[0]}}toTextObject(){const R=this.toTextObjectWithoutValue();R[""]=this.usages.map((R=>OidSerializer.toString(R))).join(", ");return R}}ExtendedKeyUsageExtension.NAME="Extended Key Usages";pe.KeyUsageFlags=void 0;(function(R){R[R["digitalSignature"]=1]="digitalSignature";R[R["nonRepudiation"]=2]="nonRepudiation";R[R["keyEncipherment"]=4]="keyEncipherment";R[R["dataEncipherment"]=8]="dataEncipherment";R[R["keyAgreement"]=16]="keyAgreement";R[R["keyCertSign"]=32]="keyCertSign";R[R["cRLSign"]=64]="cRLSign";R[R["encipherOnly"]=128]="encipherOnly";R[R["decipherOnly"]=256]="decipherOnly"})(pe.KeyUsageFlags||(pe.KeyUsageFlags={}));class KeyUsagesExtension extends Extension{constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0]);const pe=he.AsnConvert.parse(this.value,ge.KeyUsage);this.usages=pe.toNumber()}else{const pe=new ge.KeyUsage(R[0]);super(ge.id_ce_keyUsage,R[1],he.AsnConvert.serialize(pe));this.usages=R[0]}}toTextObject(){const R=this.toTextObjectWithoutValue();const pe=he.AsnConvert.parse(this.value,ge.KeyUsage);R[""]=pe.toJSON().join(", ");return R}}KeyUsagesExtension.NAME="Key Usages";class SubjectKeyIdentifierExtension extends Extension{static async create(R,pe=false,Ae=ft.get()){const he=await PublicKey.create(R,Ae);const ge=await he.getKeyIdentifier(Ae);return new SubjectKeyIdentifierExtension(ye.Convert.ToHex(ge),pe)}constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0]);const pe=he.AsnConvert.parse(this.value,Ie.SubjectKeyIdentifier);this.keyId=ye.Convert.ToHex(pe)}else{const pe=typeof R[0]==="string"?ye.Convert.FromHex(R[0]):R[0];const Ae=new Ie.SubjectKeyIdentifier(pe);super(Ie.id_ce_subjectKeyIdentifier,R[1],he.AsnConvert.serialize(Ae));this.keyId=ye.Convert.ToHex(pe)}}toTextObject(){const R=this.toTextObjectWithoutValue();const pe=he.AsnConvert.parse(this.value,Ie.SubjectKeyIdentifier);R[""]=pe;return R}}SubjectKeyIdentifierExtension.NAME="Subject Key Identifier";class SubjectAlternativeNameExtension extends Extension{constructor(...R){if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else{super(Ie.id_ce_subjectAltName,R[1],new GeneralNames(R[0]||[]).rawData)}}onInit(R){super.onInit(R);const pe=he.AsnConvert.parse(R.extnValue,Ie.SubjectAlternativeName);this.names=new GeneralNames(pe)}toTextObject(){const R=this.toTextObjectWithoutValue();const pe=this.names.toTextObject();for(const Ae in pe){R[Ae]=pe[Ae]}return R}}SubjectAlternativeNameExtension.NAME="Subject Alternative Name";class ExtensionFactory{static register(R,pe){this.items.set(R,pe)}static create(R){const pe=new Extension(R);const Ae=this.items.get(pe.type);if(Ae){return new Ae(R)}return pe}}ExtensionFactory.items=new Map;class CertificatePolicyExtension extends Extension{constructor(...R){var pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0]);const pe=he.AsnConvert.parse(this.value,Ie.CertificatePolicies);this.policies=pe.map((R=>R.policyIdentifier))}else{const Ae=R[0];const ge=(pe=R[1])!==null&&pe!==void 0?pe:false;const ye=new Ie.CertificatePolicies(Ae.map((R=>new Ie.PolicyInformation({policyIdentifier:R}))));super(Ie.id_ce_certificatePolicies,ge,he.AsnConvert.serialize(ye));this.policies=Ae}}toTextObject(){const R=this.toTextObjectWithoutValue();R["Policy"]=this.policies.map((R=>new TextObject("",{},OidSerializer.toString(R))));return R}}CertificatePolicyExtension.NAME="Certificate Policies";ExtensionFactory.register(Ie.id_ce_certificatePolicies,CertificatePolicyExtension);class CRLDistributionPointsExtension extends Extension{constructor(...R){var pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else if(Array.isArray(R[0])&&typeof R[0][0]==="string"){const pe=R[0];const Ae=pe.map((R=>new Ie.DistributionPoint({distributionPoint:new Ie.DistributionPointName({fullName:[new Ie.GeneralName({uniformResourceIdentifier:R})]})})));const ge=new Ie.CRLDistributionPoints(Ae);super(Ie.id_ce_cRLDistributionPoints,R[1],he.AsnConvert.serialize(ge))}else{const pe=new Ie.CRLDistributionPoints(R[0]);super(Ie.id_ce_cRLDistributionPoints,R[1],he.AsnConvert.serialize(pe))}(pe=this.distributionPoints)!==null&&pe!==void 0?pe:this.distributionPoints=[]}onInit(R){super.onInit(R);const pe=he.AsnConvert.parse(R.extnValue,Ie.CRLDistributionPoints);this.distributionPoints=pe}toTextObject(){const R=this.toTextObjectWithoutValue();R["Distribution Point"]=this.distributionPoints.map((R=>{var pe;const Ae={};if(R.distributionPoint){Ae[""]=(pe=R.distributionPoint.fullName)===null||pe===void 0?void 0:pe.map((R=>new GeneralName(R).toString())).join(", ")}if(R.reasons){Ae["Reasons"]=R.reasons.toString()}if(R.cRLIssuer){Ae["CRL Issuer"]=R.cRLIssuer.map((R=>R.toString())).join(", ")}return Ae}));return R}}CRLDistributionPointsExtension.NAME="CRL Distribution Points";class AuthorityInfoAccessExtension extends Extension{constructor(...R){var pe,Ae,ge,me;if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else if(R[0]instanceof Ie.AuthorityInfoAccessSyntax){const pe=new Ie.AuthorityInfoAccessSyntax(R[0]);super(Ie.id_pe_authorityInfoAccess,R[1],he.AsnConvert.serialize(pe))}else{const pe=R[0];const Ae=new Ie.AuthorityInfoAccessSyntax;addAccessDescriptions(Ae,pe,Ie.id_ad_ocsp,"ocsp");addAccessDescriptions(Ae,pe,Ie.id_ad_caIssuers,"caIssuers");addAccessDescriptions(Ae,pe,Ie.id_ad_timeStamping,"timeStamping");addAccessDescriptions(Ae,pe,Ie.id_ad_caRepository,"caRepository");super(Ie.id_pe_authorityInfoAccess,R[1],he.AsnConvert.serialize(Ae))}(pe=this.ocsp)!==null&&pe!==void 0?pe:this.ocsp=[];(Ae=this.caIssuers)!==null&&Ae!==void 0?Ae:this.caIssuers=[];(ge=this.timeStamping)!==null&&ge!==void 0?ge:this.timeStamping=[];(me=this.caRepository)!==null&&me!==void 0?me:this.caRepository=[]}onInit(R){super.onInit(R);this.ocsp=[];this.caIssuers=[];this.timeStamping=[];this.caRepository=[];const pe=he.AsnConvert.parse(R.extnValue,Ie.AuthorityInfoAccessSyntax);pe.forEach((R=>{switch(R.accessMethod){case Ie.id_ad_ocsp:this.ocsp.push(new GeneralName(R.accessLocation));break;case Ie.id_ad_caIssuers:this.caIssuers.push(new GeneralName(R.accessLocation));break;case Ie.id_ad_timeStamping:this.timeStamping.push(new GeneralName(R.accessLocation));break;case Ie.id_ad_caRepository:this.caRepository.push(new GeneralName(R.accessLocation));break}}))}toTextObject(){const R=this.toTextObjectWithoutValue();if(this.ocsp.length){addUrlsToObject(R,"OCSP",this.ocsp)}if(this.caIssuers.length){addUrlsToObject(R,"CA Issuers",this.caIssuers)}if(this.timeStamping.length){addUrlsToObject(R,"Time Stamping",this.timeStamping)}if(this.caRepository.length){addUrlsToObject(R,"CA Repository",this.caRepository)}return R}}AuthorityInfoAccessExtension.NAME="Authority Info Access";function addUrlsToObject(R,pe,Ae){if(Ae.length===1){R[pe]=Ae[0].toTextObject()}else{const he=new TextObject("");Ae.forEach(((R,pe)=>{const Ae=R.toTextObject();const ge=`${Ae[TextObject.NAME]} ${pe+1}`;let ye=he[ge];if(!Array.isArray(ye)){ye=[];he[ge]=ye}ye.push(Ae)}));R[pe]=he}}function addAccessDescriptions(R,pe,Ae,ge){const ye=pe[ge];if(ye){const pe=Array.isArray(ye)?ye:[ye];pe.forEach((pe=>{if(typeof pe==="string"){pe=new GeneralName("url",pe)}R.push(new Ie.AccessDescription({accessMethod:Ae,accessLocation:he.AsnConvert.parse(pe.rawData,Ie.GeneralName)}))}))}}class Attribute extends AsnData{constructor(...R){let pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){pe=ye.BufferSourceConverter.toArrayBuffer(R[0])}else{const Ae=R[0];const me=Array.isArray(R[1])?R[1].map((R=>ye.BufferSourceConverter.toArrayBuffer(R))):[];pe=he.AsnConvert.serialize(new ge.Attribute({type:Ae,values:me}))}super(pe,ge.Attribute)}onInit(R){this.type=R.type;this.values=R.values}toTextObject(){const R=this.toTextObjectWithoutValue();R["Value"]=this.values.map((R=>new TextObject("",{"":R})));return R}toTextObjectWithoutValue(){const R=this.toTextObjectEmpty();if(R[TextObject.NAME]===Attribute.NAME){R[TextObject.NAME]=OidSerializer.toString(this.type)}return R}}Attribute.NAME="Attribute";class ChallengePasswordAttribute extends Attribute{constructor(...R){var pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else{const pe=new Oe.ChallengePassword({printableString:R[0]});super(Oe.id_pkcs9_at_challengePassword,[he.AsnConvert.serialize(pe)])}(pe=this.password)!==null&&pe!==void 0?pe:this.password=""}onInit(R){super.onInit(R);if(this.values[0]){const R=he.AsnConvert.parse(this.values[0],Oe.ChallengePassword);this.password=R.toString()}}toTextObject(){const R=this.toTextObjectWithoutValue();R[TextObject.VALUE]=this.password;return R}}ChallengePasswordAttribute.NAME="Challenge Password";class ExtensionsAttribute extends Attribute{constructor(...R){var pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){super(R[0])}else{const pe=R[0];const Ae=new Ie.Extensions;for(const R of pe){Ae.push(he.AsnConvert.parse(R.rawData,Ie.Extension))}super(Oe.id_pkcs9_at_extensionRequest,[he.AsnConvert.serialize(Ae)])}(pe=this.items)!==null&&pe!==void 0?pe:this.items=[]}onInit(R){super.onInit(R);if(this.values[0]){const R=he.AsnConvert.parse(this.values[0],Ie.Extensions);this.items=R.map((R=>ExtensionFactory.create(he.AsnConvert.serialize(R))))}}toTextObject(){const R=this.toTextObjectWithoutValue();const pe=this.items.map((R=>R.toTextObject()));for(const Ae of pe){R[Ae[TextObject.NAME]]=Ae}return R}}ExtensionsAttribute.NAME="Extensions";class AttributeFactory{static register(R,pe){this.items.set(R,pe)}static create(R){const pe=new Attribute(R);const Ae=this.items.get(pe.type);if(Ae){return new Ae(R)}return pe}}AttributeFactory.items=new Map;const Lt="crypto.signatureFormatter";class AsnDefaultSignatureFormatter{toAsnSignature(R,pe){return ye.BufferSourceConverter.toArrayBuffer(pe)}toWebSignature(R,pe){return ye.BufferSourceConverter.toArrayBuffer(pe)}}var Ut;pe.RsaAlgorithm=Ut=class RsaAlgorithm{static createPssParams(R,pe){const Ae=Ut.getHashAlgorithm(R);if(!Ae){return null}return new ke.RsaSaPssParams({hashAlgorithm:Ae,maskGenAlgorithm:new ge.AlgorithmIdentifier({algorithm:ke.id_mgf1,parameters:he.AsnConvert.serialize(Ae)}),saltLength:pe})}static getHashAlgorithm(R){const pe=we.container.resolve(Qe);if(typeof R==="string"){return pe.toAsnAlgorithm({name:R})}if(typeof R==="object"&&R&&"name"in R){return pe.toAsnAlgorithm(R)}return null}toAsnAlgorithm(R){switch(R.name.toLowerCase()){case"rsassa-pkcs1-v1_5":if("hash"in R){let pe;if(typeof R.hash==="string"){pe=R.hash}else if(R.hash&&typeof R.hash==="object"&&"name"in R.hash&&typeof R.hash.name==="string"){pe=R.hash.name.toUpperCase()}else{throw new Error("Cannot get hash algorithm name")}switch(pe.toLowerCase()){case"sha-1":return new ge.AlgorithmIdentifier({algorithm:ke.id_sha1WithRSAEncryption,parameters:null});case"sha-256":return new ge.AlgorithmIdentifier({algorithm:ke.id_sha256WithRSAEncryption,parameters:null});case"sha-384":return new ge.AlgorithmIdentifier({algorithm:ke.id_sha384WithRSAEncryption,parameters:null});case"sha-512":return new ge.AlgorithmIdentifier({algorithm:ke.id_sha512WithRSAEncryption,parameters:null})}}else{return new ge.AlgorithmIdentifier({algorithm:ke.id_rsaEncryption,parameters:null})}break;case"rsa-pss":if("hash"in R){if(!("saltLength"in R&&typeof R.saltLength==="number")){throw new Error("Cannot get 'saltLength' from 'alg' argument")}const pe=Ut.createPssParams(R.hash,R.saltLength);if(!pe){throw new Error("Cannot create PSS parameters")}return new ge.AlgorithmIdentifier({algorithm:ke.id_RSASSA_PSS,parameters:he.AsnConvert.serialize(pe)})}else{return new ge.AlgorithmIdentifier({algorithm:ke.id_RSASSA_PSS,parameters:null})}}return null}toWebAlgorithm(R){switch(R.algorithm){case ke.id_rsaEncryption:return{name:"RSASSA-PKCS1-v1_5"};case ke.id_sha1WithRSAEncryption:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}};case ke.id_sha256WithRSAEncryption:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case ke.id_sha384WithRSAEncryption:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}};case ke.id_sha512WithRSAEncryption:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}};case ke.id_RSASSA_PSS:if(R.parameters){const pe=he.AsnConvert.parse(R.parameters,ke.RsaSaPssParams);const Ae=we.container.resolve(Qe);const ge=Ae.toWebAlgorithm(pe.hashAlgorithm);return{name:"RSA-PSS",hash:ge,saltLength:pe.saltLength}}else{return{name:"RSA-PSS"}}}return null}};pe.RsaAlgorithm=Ut=Ee.__decorate([we.injectable()],pe.RsaAlgorithm);we.container.registerSingleton(Re,pe.RsaAlgorithm);pe.ShaAlgorithm=class ShaAlgorithm{toAsnAlgorithm(R){switch(R.name.toLowerCase()){case"sha-1":return new ge.AlgorithmIdentifier({algorithm:be.id_sha1});case"sha-256":return new ge.AlgorithmIdentifier({algorithm:be.id_sha256});case"sha-384":return new ge.AlgorithmIdentifier({algorithm:be.id_sha384});case"sha-512":return new ge.AlgorithmIdentifier({algorithm:be.id_sha512})}return null}toWebAlgorithm(R){switch(R.algorithm){case be.id_sha1:return{name:"SHA-1"};case be.id_sha256:return{name:"SHA-256"};case be.id_sha384:return{name:"SHA-384"};case be.id_sha512:return{name:"SHA-512"}}return null}};pe.ShaAlgorithm=Ee.__decorate([we.injectable()],pe.ShaAlgorithm);we.container.registerSingleton(Re,pe.ShaAlgorithm);class AsnEcSignatureFormatter{addPadding(R,pe){const Ae=ye.BufferSourceConverter.toUint8Array(pe);const he=new Uint8Array(R);he.set(Ae,R-Ae.length);return he}removePadding(R,pe=false){let Ae=ye.BufferSourceConverter.toUint8Array(R);for(let R=0;R127){const R=new Uint8Array(Ae.length+1);R.set(Ae,1);return R.buffer}return Ae.buffer}toAsnSignature(R,pe){if(R.name==="ECDSA"){const Ae=R.namedCurve;const ge=AsnEcSignatureFormatter.namedCurveSize.get(Ae)||AsnEcSignatureFormatter.defaultNamedCurveSize;const me=new ve.ECDSASigValue;const be=ye.BufferSourceConverter.toUint8Array(pe);me.r=this.removePadding(be.slice(0,ge),true);me.s=this.removePadding(be.slice(ge,ge+ge),true);return he.AsnConvert.serialize(me)}return null}toWebSignature(R,pe){if(R.name==="ECDSA"){const Ae=he.AsnConvert.parse(pe,ve.ECDSASigValue);const ge=R.namedCurve;const me=AsnEcSignatureFormatter.namedCurveSize.get(ge)||AsnEcSignatureFormatter.defaultNamedCurveSize;const be=this.addPadding(me,this.removePadding(Ae.r));const Ee=this.addPadding(me,this.removePadding(Ae.s));return ye.combine(be,Ee)}return null}}AsnEcSignatureFormatter.namedCurveSize=new Map;AsnEcSignatureFormatter.defaultNamedCurveSize=32;const Ht="1.3.101.110";const Jt="1.3.101.111";const Wt="1.3.101.112";const Vt="1.3.101.113";pe.EdAlgorithm=class EdAlgorithm{toAsnAlgorithm(R){let pe=null;switch(R.name.toLowerCase()){case"ed25519":pe=Wt;break;case"x25519":pe=Ht;break;case"eddsa":switch(R.namedCurve.toLowerCase()){case"ed25519":pe=Wt;break;case"ed448":pe=Vt;break}break;case"ecdh-es":switch(R.namedCurve.toLowerCase()){case"x25519":pe=Ht;break;case"x448":pe=Jt;break}}if(pe){return new ge.AlgorithmIdentifier({algorithm:pe})}return null}toWebAlgorithm(R){switch(R.algorithm){case Wt:return{name:"Ed25519"};case Vt:return{name:"EdDSA",namedCurve:"Ed448"};case Ht:return{name:"X25519"};case Jt:return{name:"ECDH-ES",namedCurve:"X448"}}return null}};pe.EdAlgorithm=Ee.__decorate([we.injectable()],pe.EdAlgorithm);we.container.registerSingleton(Re,pe.EdAlgorithm);class Pkcs10CertificateRequest extends PemData{constructor(R){if(PemData.isAsnEncoded(R)){super(R,_e.CertificationRequest)}else{super(R)}this.tag=PemConverter.CertificateRequestTag}onInit(R){this.tbs=he.AsnConvert.serialize(R.certificationRequestInfo);this.publicKey=new PublicKey(R.certificationRequestInfo.subjectPKInfo);const pe=we.container.resolve(Qe);this.signatureAlgorithm=pe.toWebAlgorithm(R.signatureAlgorithm);this.signature=R.signature;this.attributes=R.certificationRequestInfo.attributes.map((R=>AttributeFactory.create(he.AsnConvert.serialize(R))));const Ae=this.getAttribute(Ce.id_pkcs9_at_extensionRequest);this.extensions=[];if(Ae instanceof ExtensionsAttribute){this.extensions=Ae.items}this.subjectName=new Name(R.certificationRequestInfo.subject);this.subject=this.subjectName.toString()}getAttribute(R){for(const pe of this.attributes){if(pe.type===R){return pe}}return null}getAttributes(R){return this.attributes.filter((pe=>pe.type===R))}getExtension(R){for(const pe of this.extensions){if(pe.type===R){return pe}}return null}getExtensions(R){return this.extensions.filter((pe=>pe.type===R))}async verify(R=ft.get()){const pe={...this.publicKey.algorithm,...this.signatureAlgorithm};const Ae=await this.publicKey.export(pe,["verify"],R);const he=we.container.resolveAll(Lt).reverse();let ge=null;for(const R of he){ge=R.toWebSignature(pe,this.signature);if(ge){break}}if(!ge){throw Error("Cannot convert WebCrypto signature value to ASN.1 format")}const ye=await R.subtle.verify(this.signatureAlgorithm,Ae,ge,this.tbs);return ye}toTextObject(){const R=this.toTextObjectEmpty();const pe=he.AsnConvert.parse(this.rawData,_e.CertificationRequest);const Ae=pe.certificationRequestInfo;const ye=new TextObject("",{Version:`${ge.Version[Ae.version]} (${Ae.version})`,Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){const R=new TextObject("");for(const pe of this.attributes){const Ae=pe.toTextObject();R[Ae[TextObject.NAME]]=Ae}ye["Attributes"]=R}R["Data"]=ye;R["Signature"]=new TextObject("",{Algorithm:TextConverter.serializeAlgorithm(pe.signatureAlgorithm),"":pe.signature});return R}}Pkcs10CertificateRequest.NAME="PKCS#10 Certificate Request";class Pkcs10CertificateRequestGenerator{static async create(R,pe=ft.get()){if(!R.keys.privateKey){throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty")}if(!R.keys.publicKey){throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty")}const Ae=await pe.subtle.exportKey("spki",R.keys.publicKey);const ye=new _e.CertificationRequest({certificationRequestInfo:new _e.CertificationRequestInfo({subjectPKInfo:he.AsnConvert.parse(Ae,ge.SubjectPublicKeyInfo)})});if(R.name){const pe=R.name instanceof Name?R.name:new Name(R.name);ye.certificationRequestInfo.subject=he.AsnConvert.parse(pe.toArrayBuffer(),ge.Name)}if(R.attributes){for(const pe of R.attributes){ye.certificationRequestInfo.attributes.push(he.AsnConvert.parse(pe.rawData,ge.Attribute))}}if(R.extensions&&R.extensions.length){const pe=new ge.Attribute({type:Ce.id_pkcs9_at_extensionRequest});const Ae=new ge.Extensions;for(const pe of R.extensions){Ae.push(he.AsnConvert.parse(pe.rawData,ge.Extension))}pe.values.push(he.AsnConvert.serialize(Ae));ye.certificationRequestInfo.attributes.push(pe)}const me={...R.signingAlgorithm,...R.keys.privateKey.algorithm};const ve=we.container.resolve(Qe);ye.signatureAlgorithm=ve.toAsnAlgorithm(me);const be=he.AsnConvert.serialize(ye.certificationRequestInfo);const Ee=await pe.subtle.sign(me,R.keys.privateKey,be);const Ie=we.container.resolveAll(Lt).reverse();let Se=null;for(const R of Ie){Se=R.toAsnSignature(me,Ee);if(Se){break}}if(!Se){throw Error("Cannot convert WebCrypto signature value to ASN.1 format")}ye.signature=Se;return new Pkcs10CertificateRequest(he.AsnConvert.serialize(ye))}}class X509Certificate extends PemData{constructor(R){if(PemData.isAsnEncoded(R)){super(R,ge.Certificate)}else{super(R)}this.tag=PemConverter.CertificateTag}onInit(R){const pe=R.tbsCertificate;this.tbs=he.AsnConvert.serialize(pe);this.serialNumber=ye.Convert.ToHex(pe.serialNumber);this.subjectName=new Name(pe.subject);this.subject=new Name(pe.subject).toString();this.issuerName=new Name(pe.issuer);this.issuer=this.issuerName.toString();const Ae=we.container.resolve(Qe);this.signatureAlgorithm=Ae.toWebAlgorithm(R.signatureAlgorithm);this.signature=R.signatureValue;const ge=pe.validity.notBefore.utcTime||pe.validity.notBefore.generalTime;if(!ge){throw new Error("Cannot get 'notBefore' value")}this.notBefore=ge;const me=pe.validity.notAfter.utcTime||pe.validity.notAfter.generalTime;if(!me){throw new Error("Cannot get 'notAfter' value")}this.notAfter=me;this.extensions=[];if(pe.extensions){this.extensions=pe.extensions.map((R=>ExtensionFactory.create(he.AsnConvert.serialize(R))))}this.publicKey=new PublicKey(pe.subjectPublicKeyInfo)}getExtension(R){for(const pe of this.extensions){if(typeof R==="string"){if(pe.type===R){return pe}}else{if(pe instanceof R){return pe}}}return null}getExtensions(R){return this.extensions.filter((pe=>{if(typeof R==="string"){return pe.type===R}else{return pe instanceof R}}))}async verify(R={},pe=ft.get()){let Ae;let he;const ge=R.publicKey;try{if(!ge){Ae={...this.publicKey.algorithm,...this.signatureAlgorithm};he=await this.publicKey.export(Ae,["verify"],pe)}else if("publicKey"in ge){Ae={...ge.publicKey.algorithm,...this.signatureAlgorithm};he=await ge.publicKey.export(Ae,["verify"],pe)}else if(ge instanceof PublicKey){Ae={...ge.algorithm,...this.signatureAlgorithm};he=await ge.export(Ae,["verify"],pe)}else if(ye.BufferSourceConverter.isBufferSource(ge)){const R=new PublicKey(ge);Ae={...R.algorithm,...this.signatureAlgorithm};he=await R.export(Ae,["verify"],pe)}else{Ae={...ge.algorithm,...this.signatureAlgorithm};he=ge}}catch(R){return false}const me=we.container.resolveAll(Lt).reverse();let ve=null;for(const R of me){ve=R.toWebSignature(Ae,this.signature);if(ve){break}}if(!ve){throw Error("Cannot convert ASN.1 signature value to WebCrypto format")}const be=await pe.subtle.verify(this.signatureAlgorithm,he,ve,this.tbs);if(R.signatureOnly){return be}else{const pe=R.date||new Date;const Ae=pe.getTime();return be&&this.notBefore.getTime()new Se.CertificateChoices({certificate:he.AsnConvert.parse(R.rawData,ge.Certificate)}))));const Ae=new Se.ContentInfo({contentType:Se.id_signedData,content:he.AsnConvert.serialize(pe)});const ye=he.AsnConvert.serialize(Ae);if(R==="raw"){return ye}return this.toString(R)}import(R){const pe=PemData.toArrayBuffer(R);const Ae=he.AsnConvert.parse(pe,Se.ContentInfo);if(Ae.contentType!==Se.id_signedData){throw new TypeError("Cannot parse CMS package. Incoming data is not a SignedData object.")}const ge=he.AsnConvert.parse(Ae.content,Se.SignedData);this.clear();for(const R of ge.certificates||[]){if(R.certificate){this.push(new X509Certificate(R.certificate))}}}clear(){while(this.pop()){}}toString(R="pem"){const pe=this.export("raw");switch(R){case"pem":return PemConverter.encode(pe,"CMS");case"pem-chain":return this.map((R=>R.toString("pem"))).join("\n");case"asn":return he.AsnConvert.toString(pe);case"hex":return ye.Convert.ToHex(pe);case"base64":return ye.Convert.ToBase64(pe);case"base64url":return ye.Convert.ToBase64Url(pe);case"text":return TextConverter.serialize(this.toTextObject());default:throw TypeError("Argument 'format' is unsupported value")}}toTextObject(){const R=he.AsnConvert.parse(this.export("raw"),Se.ContentInfo);const pe=he.AsnConvert.parse(R.content,Se.SignedData);const Ae=new TextObject("X509Certificates",{"Content Type":OidSerializer.toString(R.contentType),Content:new TextObject("",{Version:`${Se.CMSVersion[pe.version]} (${pe.version})`,Certificates:new TextObject("",{Certificate:this.map((R=>R.toTextObject()))})})});return Ae}}class X509ChainBuilder{constructor(R={}){this.certificates=[];if(R.certificates){this.certificates=R.certificates}}async build(R,pe=ft.get()){const Ae=new X509Certificates(R);let he=R;while(he=await this.findIssuer(he,pe)){const R=await he.getThumbprint(pe);for(const he of Ae){const Ae=await he.getThumbprint(pe);if(ye.isEqual(R,Ae)){throw new Error("Cannot build a certificate chain. Circular dependency.")}}Ae.push(he)}return Ae}async findIssuer(R,pe=ft.get()){if(!await R.isSelfSigned(pe)){const Ae=R.getExtension(Ie.id_ce_authorityKeyIdentifier);for(const ge of this.certificates){if(ge.subject!==R.issuer){continue}if(Ae){if(Ae.keyId){const R=ge.getExtension(Ie.id_ce_subjectKeyIdentifier);if(R&&R.keyId!==Ae.keyId){continue}}else if(Ae.certId){const R=ge.getExtension(Ie.id_ce_subjectAltName);if(R&&!(Ae.certId.serialNumber===ge.serialNumber&&ye.isEqual(he.AsnConvert.serialize(Ae.certId.name),he.AsnConvert.serialize(R)))){continue}}}try{const Ae={...ge.publicKey.algorithm,...R.signatureAlgorithm};const he=await ge.publicKey.export(Ae,["verify"],pe);const ye=await R.verify({publicKey:he,signatureOnly:true},pe);if(!ye){continue}}catch(R){continue}return ge}}return null}}class X509CertificateGenerator{static async createSelfSigned(R,pe=ft.get()){if(!R.keys.privateKey){throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty")}if(!R.keys.publicKey){throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty")}return this.create({serialNumber:R.serialNumber,subject:R.name,issuer:R.name,notBefore:R.notBefore,notAfter:R.notAfter,publicKey:R.keys.publicKey,signingKey:R.keys.privateKey,signingAlgorithm:R.signingAlgorithm,extensions:R.extensions},pe)}static async create(R,pe=ft.get()){var Ae;let ge;if(R.publicKey instanceof PublicKey){ge=R.publicKey.rawData}else if("publicKey"in R.publicKey){ge=R.publicKey.publicKey.rawData}else if(ye.BufferSourceConverter.isBufferSource(R.publicKey)){ge=R.publicKey}else{ge=await pe.subtle.exportKey("spki",R.publicKey)}const me=R.serialNumber?ye.BufferSourceConverter.toUint8Array(ye.Convert.FromHex(R.serialNumber)):pe.getRandomValues(new Uint8Array(16));if(me[0]>127){me[0]&=127}if(me.length>1&&me[0]===0){me[1]|=128}const ve=R.notBefore||new Date;const be=R.notAfter||new Date(ve.getTime()+31536e6);const Ee=new Ie.Certificate({tbsCertificate:new Ie.TBSCertificate({version:Ie.Version.v3,serialNumber:me,validity:new Ie.Validity({notBefore:ve,notAfter:be}),extensions:new Ie.Extensions(((Ae=R.extensions)===null||Ae===void 0?void 0:Ae.map((R=>he.AsnConvert.parse(R.rawData,Ie.Extension))))||[]),subjectPublicKeyInfo:he.AsnConvert.parse(ge,Ie.SubjectPublicKeyInfo)})});if(R.subject){const pe=R.subject instanceof Name?R.subject:new Name(R.subject);Ee.tbsCertificate.subject=he.AsnConvert.parse(pe.toArrayBuffer(),Ie.Name)}if(R.issuer){const pe=R.issuer instanceof Name?R.issuer:new Name(R.issuer);Ee.tbsCertificate.issuer=he.AsnConvert.parse(pe.toArrayBuffer(),Ie.Name)}const Ce={hash:"SHA-256"};const _e="signingKey"in R?{...Ce,...R.signingAlgorithm,...R.signingKey.algorithm}:{...Ce,...R.signingAlgorithm};const Se=we.container.resolve(Qe);Ee.tbsCertificate.signature=Ee.signatureAlgorithm=Se.toAsnAlgorithm(_e);const Be=he.AsnConvert.serialize(Ee.tbsCertificate);const ke="signingKey"in R?await pe.subtle.sign(_e,R.signingKey,Be):R.signature;const Oe=we.container.resolveAll(Lt).reverse();let Re=null;for(const R of Oe){Re=R.toAsnSignature(_e,ke);if(Re){break}}if(!Re){throw Error("Cannot convert ASN.1 signature value to WebCrypto format")}Ee.signatureValue=Re;return new X509Certificate(he.AsnConvert.serialize(Ee))}}pe.X509CrlReason=void 0;(function(R){R[R["unspecified"]=0]="unspecified";R[R["keyCompromise"]=1]="keyCompromise";R[R["cACompromise"]=2]="cACompromise";R[R["affiliationChanged"]=3]="affiliationChanged";R[R["superseded"]=4]="superseded";R[R["cessationOfOperation"]=5]="cessationOfOperation";R[R["certificateHold"]=6]="certificateHold";R[R["removeFromCRL"]=8]="removeFromCRL";R[R["privilegeWithdrawn"]=9]="privilegeWithdrawn";R[R["aACompromise"]=10]="aACompromise"})(pe.X509CrlReason||(pe.X509CrlReason={}));class X509CrlEntry extends AsnData{constructor(...R){let pe;if(ye.BufferSourceConverter.isBufferSource(R[0])){pe=ye.BufferSourceConverter.toArrayBuffer(R[0])}else{pe=he.AsnConvert.serialize(new ge.RevokedCertificate({userCertificate:R[0],revocationDate:new ge.Time(R[1]),crlEntryExtensions:R[2]}))}super(pe,ge.RevokedCertificate)}onInit(R){this.serialNumber=ye.Convert.ToHex(R.userCertificate);this.revocationDate=R.revocationDate.getTime();this.extensions=[];if(R.crlEntryExtensions){this.extensions=R.crlEntryExtensions.map((R=>{const pe=ExtensionFactory.create(he.AsnConvert.serialize(R));switch(pe.type){case ge.id_ce_cRLReasons:this.reason=he.AsnConvert.parse(pe.value,ge.CRLReason).reason;break;case ge.id_ce_invalidityDate:this.invalidity=he.AsnConvert.parse(pe.value,ge.InvalidityDate).value;break}return pe}))}}}class X509Crl extends PemData{constructor(R){if(PemData.isAsnEncoded(R)){super(R,ge.CertificateList)}else{super(R)}this.tag=PemConverter.CrlTag}onInit(R){var pe,Ae;const ge=R.tbsCertList;this.tbs=he.AsnConvert.serialize(ge);this.version=ge.version;const ye=we.container.resolve(Qe);this.signatureAlgorithm=ye.toWebAlgorithm(R.signatureAlgorithm);this.tbsCertListSignatureAlgorithm=ge.signature;this.certListSignatureAlgorithm=R.signatureAlgorithm;this.signature=R.signature;this.issuerName=new Name(ge.issuer);this.issuer=this.issuerName.toString();const me=ge.thisUpdate.getTime();if(!me){throw new Error("Cannot get 'thisUpdate' value")}this.thisUpdate=me;const ve=(pe=ge.nextUpdate)===null||pe===void 0?void 0:pe.getTime();this.nextUpdate=ve;this.entries=((Ae=ge.revokedCertificates)===null||Ae===void 0?void 0:Ae.map((R=>new X509CrlEntry(he.AsnConvert.serialize(R)))))||[];this.extensions=[];if(ge.crlExtensions){this.extensions=ge.crlExtensions.map((R=>ExtensionFactory.create(he.AsnConvert.serialize(R))))}}getExtension(R){for(const pe of this.extensions){if(typeof R==="string"){if(pe.type===R){return pe}}else{if(pe instanceof R){return pe}}}return null}getExtensions(R){return this.extensions.filter((pe=>{if(typeof R==="string"){return pe.type===R}else{return pe instanceof R}}))}async verify(R,pe=ft.get()){if(!this.certListSignatureAlgorithm.isEqual(this.tbsCertListSignatureAlgorithm)){throw new Error("algorithm identifier in the sequence tbsCertList and CertificateList mismatch")}let Ae;let he;const ge=R.publicKey;try{if(ge instanceof X509Certificate){Ae={...ge.publicKey.algorithm,...ge.signatureAlgorithm};he=await ge.publicKey.export(Ae,["verify"])}else if(ge instanceof PublicKey){Ae={...ge.algorithm,...this.signature};he=await ge.export(Ae,["verify"])}else{Ae={...ge.algorithm,...this.signature};he=ge}}catch(R){return false}const ye=we.container.resolveAll(Lt).reverse();let me=null;for(const R of ye){me=R.toWebSignature(Ae,this.signature);if(me){break}}if(!me){throw Error("Cannot convert ASN.1 signature value to WebCrypto format")}return await pe.subtle.verify(this.signatureAlgorithm,he,me,this.tbs)}async getThumbprint(...R){let pe;let Ae="SHA-1";if(R[0]){if(!R[0].subtle){Ae=R[0]||Ae;pe=R[1]}else{pe=R[0]}}pe!==null&&pe!==void 0?pe:pe=ft.get();return await pe.subtle.digest(Ae,this.rawData)}findRevoked(R){const pe=typeof R==="string"?R:R.serialNumber;for(const R of this.entries){if(R.serialNumber===pe){return R}}return null}}class X509CrlGenerator{static async create(R,pe=ft.get()){var Ae;const me=R.issuer instanceof Name?R.issuer:new Name(R.issuer);const ve=new Ie.CertificateList({tbsCertList:new Ie.TBSCertList({version:Ie.Version.v2,issuer:he.AsnConvert.parse(me.toArrayBuffer(),Ie.Name),thisUpdate:new ge.Time(R.thisUpdate||new Date)})});if(R.nextUpdate){ve.tbsCertList.nextUpdate=new ge.Time(R.nextUpdate)}if(R.extensions&&R.extensions.length){ve.tbsCertList.crlExtensions=new Ie.Extensions(R.extensions.map((R=>he.AsnConvert.parse(R.rawData,Ie.Extension)))||[])}if(R.entries&&R.entries.length){ve.tbsCertList.revokedCertificates=[];for(const pe of R.entries){const me=PemData.toArrayBuffer(pe.serialNumber);const be=ve.tbsCertList.revokedCertificates.findIndex((R=>ye.isEqual(R.userCertificate,me)));if(be>-1){throw new Error(`Certificate serial number ${pe.serialNumber} already exists in tbsCertList`)}const Ee=new ge.RevokedCertificate({userCertificate:me,revocationDate:new ge.Time(pe.revocationDate||new Date)});if("extensions"in pe&&((Ae=pe.extensions)===null||Ae===void 0?void 0:Ae.length)){Ee.crlEntryExtensions=pe.extensions.map((R=>he.AsnConvert.parse(R.rawData,Ie.Extension)))}else{Ee.crlEntryExtensions=[]}if(!(pe instanceof X509CrlEntry)){if(pe.reason){Ee.crlEntryExtensions.push(new Ie.Extension({extnID:Ie.id_ce_cRLReasons,critical:false,extnValue:new he.OctetString(he.AsnConvert.serialize(new Ie.CRLReason(pe.reason)))}))}if(pe.invalidity){Ee.crlEntryExtensions.push(new Ie.Extension({extnID:Ie.id_ce_invalidityDate,critical:false,extnValue:new he.OctetString(he.AsnConvert.serialize(new Ie.InvalidityDate(pe.invalidity)))}))}if(pe.issuer){const pe=R.issuer instanceof Name?R.issuer:new Name(R.issuer);Ee.crlEntryExtensions.push(new Ie.Extension({extnID:Ie.id_ce_certificateIssuer,critical:false,extnValue:new he.OctetString(he.AsnConvert.serialize(he.AsnConvert.parse(pe.toArrayBuffer(),Ie.Name)))}))}}ve.tbsCertList.revokedCertificates.push(Ee)}}const be={...R.signingAlgorithm,...R.signingKey.algorithm};const Ee=we.container.resolve(Qe);ve.tbsCertList.signature=ve.signatureAlgorithm=Ee.toAsnAlgorithm(be);const Ce=he.AsnConvert.serialize(ve.tbsCertList);const _e=await pe.subtle.sign(be,R.signingKey,Ce);const Se=we.container.resolveAll(Lt).reverse();let Be=null;for(const R of Se){Be=R.toAsnSignature(be,_e);if(Be){break}}if(!Be){throw Error("Cannot convert ASN.1 signature value to WebCrypto format")}ve.signature=Be;return new X509Crl(he.AsnConvert.serialize(ve))}}ExtensionFactory.register(Ie.id_ce_basicConstraints,BasicConstraintsExtension);ExtensionFactory.register(Ie.id_ce_extKeyUsage,ExtendedKeyUsageExtension);ExtensionFactory.register(Ie.id_ce_keyUsage,KeyUsagesExtension);ExtensionFactory.register(Ie.id_ce_subjectKeyIdentifier,SubjectKeyIdentifierExtension);ExtensionFactory.register(Ie.id_ce_authorityKeyIdentifier,AuthorityKeyIdentifierExtension);ExtensionFactory.register(Ie.id_ce_subjectAltName,SubjectAlternativeNameExtension);ExtensionFactory.register(Ie.id_ce_cRLDistributionPoints,CRLDistributionPointsExtension);ExtensionFactory.register(Ie.id_pe_authorityInfoAccess,AuthorityInfoAccessExtension);AttributeFactory.register(Oe.id_pkcs9_at_challengePassword,ChallengePasswordAttribute);AttributeFactory.register(Oe.id_pkcs9_at_extensionRequest,ExtensionsAttribute);we.container.registerSingleton(Lt,AsnDefaultSignatureFormatter);we.container.registerSingleton(Lt,AsnEcSignatureFormatter);AsnEcSignatureFormatter.namedCurveSize.set("P-256",32);AsnEcSignatureFormatter.namedCurveSize.set("K-256",32);AsnEcSignatureFormatter.namedCurveSize.set("P-384",48);AsnEcSignatureFormatter.namedCurveSize.set("P-521",66);pe.AlgorithmProvider=AlgorithmProvider;pe.AsnData=AsnData;pe.AsnDefaultSignatureFormatter=AsnDefaultSignatureFormatter;pe.AsnEcSignatureFormatter=AsnEcSignatureFormatter;pe.Attribute=Attribute;pe.AttributeFactory=AttributeFactory;pe.AuthorityInfoAccessExtension=AuthorityInfoAccessExtension;pe.AuthorityKeyIdentifierExtension=AuthorityKeyIdentifierExtension;pe.BasicConstraintsExtension=BasicConstraintsExtension;pe.CRLDistributionPointsExtension=CRLDistributionPointsExtension;pe.CertificatePolicyExtension=CertificatePolicyExtension;pe.ChallengePasswordAttribute=ChallengePasswordAttribute;pe.CryptoProvider=CryptoProvider;pe.DefaultAlgorithmSerializer=DefaultAlgorithmSerializer;pe.ExtendedKeyUsageExtension=ExtendedKeyUsageExtension;pe.Extension=Extension;pe.ExtensionFactory=ExtensionFactory;pe.ExtensionsAttribute=ExtensionsAttribute;pe.GeneralName=GeneralName;pe.GeneralNames=GeneralNames;pe.KeyUsagesExtension=KeyUsagesExtension;pe.Name=Name;pe.NameIdentifier=NameIdentifier;pe.OidSerializer=OidSerializer;pe.PemConverter=PemConverter;pe.Pkcs10CertificateRequest=Pkcs10CertificateRequest;pe.Pkcs10CertificateRequestGenerator=Pkcs10CertificateRequestGenerator;pe.PublicKey=PublicKey;pe.SubjectAlternativeNameExtension=SubjectAlternativeNameExtension;pe.SubjectKeyIdentifierExtension=SubjectKeyIdentifierExtension;pe.TextConverter=TextConverter;pe.TextObject=TextObject;pe.X509Certificate=X509Certificate;pe.X509CertificateGenerator=X509CertificateGenerator;pe.X509Certificates=X509Certificates;pe.X509ChainBuilder=X509ChainBuilder;pe.X509Crl=X509Crl;pe.X509CrlEntry=X509CrlEntry;pe.X509CrlGenerator=X509CrlGenerator;pe.cryptoProvider=ft;pe.diAlgorithm=Re;pe.diAlgorithmProvider=Qe;pe.diAsnSignatureFormatter=Lt;pe.idEd25519=Wt;pe.idEd448=Vt;pe.idX25519=Ht;pe.idX448=Jt},48246:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Tagged=pe.diagnose=pe.decodeFirstSync=pe.decodeFirst=pe.encodeAsync=pe.decode=pe.encode=pe.encodeCanonical=pe.toArrayBuffer=pe.EMPTY_BUFFER=pe.Sign1Tag=void 0;const he=Ae(4114);Object.defineProperty(pe,"encodeCanonical",{enumerable:true,get:function(){return he.encodeCanonical}});Object.defineProperty(pe,"encode",{enumerable:true,get:function(){return he.encode}});Object.defineProperty(pe,"decode",{enumerable:true,get:function(){return he.decode}});Object.defineProperty(pe,"encodeAsync",{enumerable:true,get:function(){return he.encodeAsync}});Object.defineProperty(pe,"decodeFirst",{enumerable:true,get:function(){return he.decodeFirst}});Object.defineProperty(pe,"decodeFirstSync",{enumerable:true,get:function(){return he.decodeFirstSync}});Object.defineProperty(pe,"diagnose",{enumerable:true,get:function(){return he.diagnose}});Object.defineProperty(pe,"Tagged",{enumerable:true,get:function(){return he.Tagged}});const ge=Ae(63015);Object.defineProperty(pe,"toArrayBuffer",{enumerable:true,get:function(){return ge.toArrayBuffer}});pe.Sign1Tag=18;pe.EMPTY_BUFFER=(0,ge.toArrayBuffer)(new Uint8Array)},63015:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.toArrayBuffer=void 0;const toArrayBuffer=R=>{if(R instanceof ArrayBuffer){return R}return R.buffer.slice(R.byteOffset,R.byteLength+R.byteOffset)};pe.toArrayBuffer=toArrayBuffer},3251:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.COSE_Encrypt=pe.COSE_Sign1=pe.COSE_Encrypt0=pe.Curve=pe.Epk=pe.KeyType=pe.EC2=pe.Direct=pe.KeyWrap=pe.KeyAgreementWithKeyWrap=pe.KeyAgreement=pe.Receipt=pe.Signature=pe.Hash=pe.Aead=pe.A128GCM=pe.Unprotected=pe.Protected=pe.PayloadHashAlgorithm=pe.PayloadPreImageContentType=pe.PayloadLocation=pe.ProofType=pe.ContentType=pe.PartyVOther=pe.PartyVNonce=pe.PartyVIdentity=pe.PartyUOther=pe.PartyUNonce=pe.PartyUIdentity=pe.HeaderParameters=pe.UnprotectedHeader=pe.ProtectedHeader=void 0;const ProtectedHeader=R=>new Map(R);pe.ProtectedHeader=ProtectedHeader;const UnprotectedHeader=R=>new Map(R);pe.UnprotectedHeader=UnprotectedHeader;pe.HeaderParameters={Alg:1,Epk:-1,Kid:4,X5t:34};pe.PartyUIdentity=-21;pe.PartyUNonce=-22;pe.PartyUOther=-23;pe.PartyVIdentity=-24;pe.PartyVNonce=-25;pe.PartyVOther=-26;pe.ContentType=3;pe.ProofType=395;pe.PayloadLocation=-6801;pe.PayloadPreImageContentType=-6802;pe.PayloadHashAlgorithm=-6800;pe.Protected=Object.assign(Object.assign({},pe.HeaderParameters),{PartyUIdentity:pe.PartyUIdentity,PartyUNonce:pe.PartyUNonce,PartyUOther:pe.PartyUOther,PartyVIdentity:pe.PartyVIdentity,PartyVNonce:pe.PartyVNonce,PartyVOther:pe.PartyVOther,ContentType:pe.ContentType,ProofType:pe.ProofType,PayloadHashAlgorithm:pe.PayloadHashAlgorithm,PayloadPreImageContentType:pe.PayloadPreImageContentType,PayloadLocation:pe.PayloadLocation});pe.Unprotected=Object.assign(Object.assign({},pe.HeaderParameters),{Iv:5,Ek:-4});pe.A128GCM=1;pe.Aead={A128GCM:pe.A128GCM};pe.Hash={SHA256:-16};pe.Signature={ES256:-7};pe.Receipt={Inclusion:1};pe.KeyAgreement={"ECDH-ES+HKDF-256":-25};pe.KeyAgreementWithKeyWrap={"ECDH-ES+A128KW":-29};pe.KeyWrap={A128KW:-3};pe.Direct={"HPKE-Base-P256-SHA256-AES128GCM":35};pe.EC2=2;pe.KeyType={EC2:pe.EC2};pe.Epk={Kty:1,Crv:-1,Alg:3};pe.Curve={P256:1};pe.COSE_Encrypt0=16;pe.COSE_Sign1=18;pe.COSE_Encrypt=96},38853:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEAlgorithms=void 0;pe.IANACOSEAlgorithms={0:{Name:"Reserved",Value:"0",Description:"",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},1:{Name:"A128GCM",Value:"1",Description:"AES-GCM mode w/ 128-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},2:{Name:"A192GCM",Value:"2",Description:"AES-GCM mode w/ 192-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},3:{Name:"A256GCM",Value:"3",Description:"AES-GCM mode w/ 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},4:{Name:"HMAC 256/64",Value:"4",Description:"HMAC w/ SHA-256 truncated to 64 bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},5:{Name:"HMAC 256/256",Value:"5",Description:"HMAC w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},6:{Name:"HMAC 384/384",Value:"6",Description:"HMAC w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},7:{Name:"HMAC 512/512",Value:"7",Description:"HMAC w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},10:{Name:"AES-CCM-16-64-128",Value:"10",Description:"AES-CCM mode 128-bit key, 64-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},11:{Name:"AES-CCM-16-64-256",Value:"11",Description:"AES-CCM mode 256-bit key, 64-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},12:{Name:"AES-CCM-64-64-128",Value:"12",Description:"AES-CCM mode 128-bit key, 64-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},13:{Name:"AES-CCM-64-64-256",Value:"13",Description:"AES-CCM mode 256-bit key, 64-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},14:{Name:"AES-MAC 128/64",Value:"14",Description:"AES-MAC 128-bit key, 64-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},15:{Name:"AES-MAC 256/64",Value:"15",Description:"AES-MAC 256-bit key, 64-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},24:{Name:"ChaCha20/Poly1305",Value:"24",Description:"ChaCha20/Poly1305 w/ 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},25:{Name:"AES-MAC 128/128",Value:"25",Description:"AES-MAC 128-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},26:{Name:"AES-MAC 256/128",Value:"26",Description:"AES-MAC 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},30:{Name:"AES-CCM-16-128-128",Value:"30",Description:"AES-CCM mode 128-bit key, 128-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},31:{Name:"AES-CCM-16-128-256",Value:"31",Description:"AES-CCM mode 256-bit key, 128-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},32:{Name:"AES-CCM-64-128-128",Value:"32",Description:"AES-CCM mode 128-bit key, 128-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},33:{Name:"AES-CCM-64-128-256",Value:"33",Description:"AES-CCM mode 256-bit key, 128-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},34:{Name:"IV-GENERATION",Value:"34",Description:"For doing IV generation for symmetric algorithms.",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"less than -65536":{Name:"Reserved for Private Use",Value:"less than -65536",Description:"",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"-65536":{Name:"Unassigned",Value:"-65536",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-65535":{Name:"RS1",Value:"-65535",Description:"RSASSA-PKCS1-v1_5 using SHA-1",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"Deprecated"},"-65534":{Name:"A128CTR",Value:"-65534",Description:"AES-CTR w/ 128-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65533":{Name:"A192CTR",Value:"-65533",Description:"AES-CTR w/ 192-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65532":{Name:"A256CTR",Value:"-65532",Description:"AES-CTR w/ 256-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65531":{Name:"A128CBC",Value:"-65531",Description:"AES-CBC w/ 128-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65530":{Name:"A192CBC",Value:"-65530",Description:"AES-CBC w/ 192-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65529":{Name:"A256CBC",Value:"-65529",Description:"AES-CBC w/ 256-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65528 to -261":{Name:"Unassigned",Value:"-65528 to -261",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-260":{Name:"WalnutDSA",Value:"-260",Description:"WalnutDSA signature",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9021][RFC9053",Recommended:"No"},"-259":{Name:"RS512",Value:"-259",Description:"RSASSA-PKCS1-v1_5 using SHA-512",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-258":{Name:"RS384",Value:"-258",Description:"RSASSA-PKCS1-v1_5 using SHA-384",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-257":{Name:"RS256",Value:"-257",Description:"RSASSA-PKCS1-v1_5 using SHA-256",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-256 to -48":{Name:"Unassigned",Value:"-256 to -48",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-47":{Name:"ES256K",Value:"-47",Description:"ECDSA using secp256k1 curve and SHA-256",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-46":{Name:"HSS-LMS",Value:"-46",Description:"HSS/LMS hash-based digital signature",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8778][RFC9053",Recommended:"Yes"},"-45":{Name:"SHAKE256",Value:"-45",Description:"SHAKE-256 512-bit Hash Value",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-44":{Name:"SHA-512",Value:"-44",Description:"SHA-2 512-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-43":{Name:"SHA-384",Value:"-43",Description:"SHA-2 384-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-42":{Name:"RSAES-OAEP w/ SHA-512",Value:"-42",Description:"RSAES-OAEP w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-41":{Name:"RSAES-OAEP w/ SHA-256",Value:"-41",Description:"RSAES-OAEP w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-40":{Name:"RSAES-OAEP w/ RFC 8017 default parameters",Value:"-40",Description:"RSAES-OAEP w/ SHA-1",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-39":{Name:"PS512",Value:"-39",Description:"RSASSA-PSS w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-38":{Name:"PS384",Value:"-38",Description:"RSASSA-PSS w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-37":{Name:"PS256",Value:"-37",Description:"RSASSA-PSS w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-36":{Name:"ES512",Value:"-36",Description:"ECDSA w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-35":{Name:"ES384",Value:"-35",Description:"ECDSA w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-34":{Name:"ECDH-SS + A256KW",Value:"-34",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-33":{Name:"ECDH-SS + A192KW",Value:"-33",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-32":{Name:"ECDH-SS + A128KW",Value:"-32",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-31":{Name:"ECDH-ES + A256KW",Value:"-31",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-30":{Name:"ECDH-ES + A192KW",Value:"-30",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-29":{Name:"ECDH-ES + A128KW",Value:"-29",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-28":{Name:"ECDH-SS + HKDF-512",Value:"-28",Description:"ECDH SS w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-27":{Name:"ECDH-SS + HKDF-256",Value:"-27",Description:"ECDH SS w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-26":{Name:"ECDH-ES + HKDF-512",Value:"-26",Description:"ECDH ES w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-25":{Name:"ECDH-ES + HKDF-256",Value:"-25",Description:"ECDH ES w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-24 to -19":{Name:"Unassigned",Value:"-24 to -19",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-18":{Name:"SHAKE128",Value:"-18",Description:"SHAKE-128 256-bit Hash Value",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-17":{Name:"SHA-512/256",Value:"-17",Description:"SHA-2 512-bit Hash truncated to 256-bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-16":{Name:"SHA-256",Value:"-16",Description:"SHA-2 256-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-15":{Name:"SHA-256/64",Value:"-15",Description:"SHA-2 256-bit Hash truncated to 64-bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Filter Only"},"-14":{Name:"SHA-1",Value:"-14",Description:"SHA-1 Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Filter Only"},"-13":{Name:"direct+HKDF-AES-256",Value:"-13",Description:"Shared secret w/ AES-MAC 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-12":{Name:"direct+HKDF-AES-128",Value:"-12",Description:"Shared secret w/ AES-MAC 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-11":{Name:"direct+HKDF-SHA-512",Value:"-11",Description:"Shared secret w/ HKDF and SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-10":{Name:"direct+HKDF-SHA-256",Value:"-10",Description:"Shared secret w/ HKDF and SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-9":{Name:"Unassigned",Value:"-9",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-8":{Name:"EdDSA",Value:"-8",Description:"EdDSA",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-7":{Name:"ES256",Value:"-7",Description:"ECDSA w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-6":{Name:"direct",Value:"-6",Description:"Direct use of CEK",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-5":{Name:"A256KW",Value:"-5",Description:"AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-4":{Name:"A192KW",Value:"-4",Description:"AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-3":{Name:"A128KW",Value:"-3",Description:"AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-2 to -1":{Name:"Unassigned",Value:"-2 to -1",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"8-9":{Name:"Unassigned",Value:"8-9",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"16-23":{Name:"Unassigned",Value:"16-23",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"27-29":{Name:"Unassigned",Value:"27-29",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""}}},75824:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=pe.signer=void 0;const ve=ye(Ae(78724));const signer=({remote:R})=>{const pe=ve.signer({remote:R});return{sign:R=>pe.sign(R)}};pe.signer=signer;const verifier=({resolver:R})=>({verify:pe=>me(void 0,void 0,void 0,(function*(){const Ae=ve.verifier({resolver:R});return Ae.verify(pe)}))});pe.verifier=verifier},27464:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=pe.signer=void 0;const ve=ye(Ae(78724));const be=Ae(48246);const Ee=Ae(3251);const signer=({remote:R})=>{const pe=ve.signer({remote:R});return{sign:R=>me(void 0,void 0,void 0,(function*(){if(R.unprotectedHeader===undefined){R.unprotectedHeader=(0,Ee.UnprotectedHeader)([])}const Ae=yield pe.sign(R);const he=(0,be.decodeFirstSync)(Ae);he.value[2]=null;return(0,be.encodeAsync)(new be.Tagged(be.Sign1Tag,he.value),{canonical:true})}))}};pe.signer=signer;const verifier=({resolver:R})=>{const pe=ve.verifier({resolver:R});return{verify:R=>me(void 0,void 0,void 0,(function*(){const Ae=(0,be.decodeFirstSync)(R.coseSign1);const he=(0,be.toArrayBuffer)(R.payload);Ae.value[2]=he;const ge=yield(0,be.encodeAsync)(new be.Tagged(be.Sign1Tag,Ae.value),{canonical:true});return pe.verify({coseSign1:ge})}))}};pe.verifier=verifier},80424:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEEllipticCurves=void 0;pe.IANACOSEEllipticCurves={0:{Name:"Reserved",Value:"0","Key Type":"",Description:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"Integer values less than -65536":{Name:"Reserved for Private Use",Value:"Integer values less than -65536","Key Type":"",Description:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"-65536 to -1":{Name:"Unassigned",Value:"-65536 to -1","Key Type":"",Description:"","Change Controller":"",Reference:"",Recommended:""},"EC2-P-256":{Name:"P-256",Value:"1","Key Type":"EC2",Description:"NIST P-256 also known as secp256r1","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"EC2-P-384":{Name:"P-384",Value:"2","Key Type":"EC2",Description:"NIST P-384 also known as secp384r1","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"EC2-P-521":{Name:"P-521",Value:"3","Key Type":"EC2",Description:"NIST P-521 also known as secp521r1","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"OKP-X25519":{Name:"X25519",Value:"4","Key Type":"OKP",Description:"X25519 for use w/ ECDH only","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"OKP-X448":{Name:"X448",Value:"5","Key Type":"OKP",Description:"X448 for use w/ ECDH only","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"OKP-Ed25519":{Name:"Ed25519",Value:"6","Key Type":"OKP",Description:"Ed25519 for use w/ EdDSA only","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"OKP-Ed448":{Name:"Ed448",Value:"7","Key Type":"OKP",Description:"Ed448 for use w/ EdDSA only","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"EC2-secp256k1":{Name:"secp256k1",Value:"8","Key Type":"EC2",Description:"SECG secp256k1 curve","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812",Recommended:"No"},"9-255":{Name:"Unassigned",Value:"9-255","Key Type":"",Description:"","Change Controller":"",Reference:"",Recommended:""},"EC2-brainpoolP256r1":{Name:"brainpoolP256r1",Value:"256","Key Type":"EC2",Description:"BrainpoolP256r1","Change Controller":"[ISO/IEC JTC 1/SC 17/WG 10]",Reference:"[ISO/IEC 18013-5:2021, 9.1.5.2]",Recommended:"No"},"EC2-brainpoolP320r1":{Name:"brainpoolP320r1",Value:"257","Key Type":"EC2",Description:"BrainpoolP320r1","Change Controller":"[ISO/IEC JTC 1/SC 17/WG 10]",Reference:"[ISO/IEC 18013-5:2021, 9.1.5.2]",Recommended:"No"},"EC2-brainpoolP384r1":{Name:"brainpoolP384r1",Value:"258","Key Type":"EC2",Description:"BrainpoolP384r1","Change Controller":"[ISO/IEC JTC 1/SC 17/WG 10]",Reference:"[ISO/IEC 18013-5:2021, 9.1.5.2]",Recommended:"No"},"EC2-brainpoolP512r1":{Name:"brainpoolP512r1",Value:"259","Key Type":"EC2",Description:"BrainpoolP512r1","Change Controller":"[ISO/IEC JTC 1/SC 17/WG 10]",Reference:"[ISO/IEC 18013-5:2021, 9.1.5.2]",Recommended:"No"}}},2488:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEHeaderParameters=void 0;pe.IANACOSEHeaderParameters={0:{Name:"Reserved",Label:"0","Value Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},1:{Name:"alg",Label:"1","Value Type":"int / tstr","Value Registry":"COSE Algorithms registry",Description:"Cryptographic algorithm to use",Reference:"https://datatracker.ietf.org/doc/RFC9052"},2:{Name:"crit",Label:"2","Value Type":"[+ label]","Value Registry":"COSE Header Parameters registry",Description:"Critical headers to be understood",Reference:"https://datatracker.ietf.org/doc/RFC9052"},3:{Name:"content type",Label:"3","Value Type":"tstr / uint","Value Registry":"[COAP Content-Formats] or [Media Types] registry",Description:"Content type of the payload",Reference:"https://datatracker.ietf.org/doc/RFC9052"},4:{Name:"kid",Label:"4","Value Type":"bstr","Value Registry":"",Description:"Key identifier",Reference:"https://datatracker.ietf.org/doc/RFC9052"},5:{Name:"IV",Label:"5","Value Type":"bstr","Value Registry":"",Description:"Full Initialization Vector",Reference:"https://datatracker.ietf.org/doc/RFC9052"},6:{Name:"Partial IV",Label:"6","Value Type":"bstr","Value Registry":"",Description:"Partial Initialization Vector",Reference:"https://datatracker.ietf.org/doc/RFC9052"},7:{Name:"counter signature",Label:"7","Value Type":"COSE_Signature / [+ COSE_Signature ]","Value Registry":"",Description:"CBOR-encoded signature structure (Deprecated by [RFC9338])",Reference:"https://datatracker.ietf.org/doc/RFC8152"},8:{Name:"Unassigned",Label:"8","Value Type":"","Value Registry":"",Description:"",Reference:""},9:{Name:"CounterSignature0",Label:"9","Value Type":"bstr","Value Registry":"",Description:"Counter signature with implied signer and headers (Deprecated by [RFC9338])",Reference:"https://datatracker.ietf.org/doc/RFC8152"},10:{Name:"kid context",Label:"10","Value Type":"bstr","Value Registry":"",Description:"Identifies the context for the key identifier",Reference:"https://datatracker.ietf.org/doc/RFC8613, Section 5.1"},11:{Name:"Countersignature version 2",Label:"11","Value Type":"COSE_Countersignature / [+ COSE_Countersignature]","Value Registry":"",Description:"V2 countersignature attribute",Reference:"https://datatracker.ietf.org/doc/RFC9338"},12:{Name:"Countersignature0 version 2",Label:"12","Value Type":"COSE_Countersignature0","Value Registry":"",Description:"V2 Abbreviated Countersignature",Reference:"https://datatracker.ietf.org/doc/RFC9338"},13:{Name:"kcwt",Label:"13","Value Type":"COSE_Messages","Value Registry":"",Description:"A CBOR Web Token (CWT) containing a COSE_Key in a 'cnf' claim and possibly other claims. CWT is defined in [RFC8392]. COSE_Messages is defined in [RFC9052].",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-lake-edhoc-22"},14:{Name:"kccs",Label:"14","Value Type":"map","Value Registry":"",Description:"A CWT Claims Set (CCS) containing a COSE_Key in a 'cnf' claim and possibly other claims. CCS is defined in [RFC8392].",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-lake-edhoc-22"},15:{Name:"CWT Claims",Label:"15","Value Type":"map","Value Registry":"",Description:"Location for CWT Claims in COSE Header Parameters.",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-cose-cwt-claims-in-headers-10"},32:{Name:"x5bag",Label:"32","Value Type":"COSE_X509","Value Registry":"",Description:"An unordered bag of X.509 certificates",Reference:"https://datatracker.ietf.org/doc/RFC9360"},33:{Name:"x5chain",Label:"33","Value Type":"COSE_X509","Value Registry":"",Description:"An ordered chain of X.509 certificates",Reference:"https://datatracker.ietf.org/doc/RFC9360"},34:{Name:"x5t",Label:"34","Value Type":"COSE_CertHash","Value Registry":"",Description:"Hash of an X.509 certificate",Reference:"https://datatracker.ietf.org/doc/RFC9360"},35:{Name:"x5u",Label:"35","Value Type":"uri","Value Registry":"",Description:"URI pointing to an X.509 certificate",Reference:"https://datatracker.ietf.org/doc/RFC9360"},256:{Name:"CUPHNonce",Label:"256","Value Type":"bstr","Value Registry":"",Description:"Challenge Nonce",Reference:"[FIDO Device Onboard Specification]"},257:{Name:"CUPHOwnerPubKey",Label:"257","Value Type":"array","Value Registry":"",Description:"Public Key",Reference:"[FIDO Device Onboard Specification]"},"less than -65536":{Name:"Reserved for Private Use",Label:"less than -65536","Value Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},"-65536 to -1":{Name:"delegated to the COSE Header Algorithm Parameters registry",Label:"-65536 to -1","Value Type":"","Value Registry":"",Description:"",Reference:""},"16-31":{Name:"Unassigned",Label:"16-31","Value Type":"","Value Registry":"",Description:"",Reference:""},"36-255":{Name:"Unassigned",Label:"36-255","Value Type":"","Value Registry":"",Description:"",Reference:""}}},91830:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEKeyCommonParameters=void 0;pe.IANACOSEKeyCommonParameters={0:{Name:"Reserved",Label:"0","CBOR Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},1:{Name:"kty",Label:"1","CBOR Type":"tstr / int","Value Registry":"COSE Key Types",Description:"Identification of the key type",Reference:"https://datatracker.ietf.org/doc/RFC9052"},2:{Name:"kid",Label:"2","CBOR Type":"bstr","Value Registry":"",Description:"Key identification value - match to kid in message",Reference:"https://datatracker.ietf.org/doc/RFC9052"},3:{Name:"alg",Label:"3","CBOR Type":"tstr / int","Value Registry":"COSE Algorithms",Description:"Key usage restriction to this algorithm",Reference:"https://datatracker.ietf.org/doc/RFC9052"},4:{Name:"key_ops",Label:"4","CBOR Type":"[+ (tstr/int)]","Value Registry":"",Description:"Restrict set of permissible operations",Reference:"https://datatracker.ietf.org/doc/RFC9052"},5:{Name:"Base IV",Label:"5","CBOR Type":"bstr","Value Registry":"",Description:"Base IV to be XORed with Partial IVs",Reference:"https://datatracker.ietf.org/doc/RFC9052"},"less than -65536":{Name:"Reserved for Private Use",Label:"less than -65536","CBOR Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},"-65536 to -1":{Name:"used for key parameters specific to a single algorithm\n delegated to the COSE Key Type Parameters registry",Label:"-65536 to -1","CBOR Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"}}},82920:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEKeyTypeParameters=void 0;pe.IANACOSEKeyTypeParameters={"1-crv":{"Key Type":"1",Name:"crv",Label:"-1","CBOR Type":"int / tstr",Description:'EC identifier -- Taken from the "COSE Elliptic Curves" registry',Reference:"https://datatracker.ietf.org/doc/RFC9053"},"1-x":{"Key Type":"1",Name:"x",Label:"-2","CBOR Type":"bstr",Description:"Public Key",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"1-d":{"Key Type":"1",Name:"d",Label:"-4","CBOR Type":"bstr",Description:"Private key",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"2-crv":{"Key Type":"2",Name:"crv",Label:"-1","CBOR Type":"int / tstr",Description:'EC identifier -- Taken from the "COSE Elliptic Curves" registry',Reference:"https://datatracker.ietf.org/doc/RFC9053"},"2-x":{"Key Type":"2",Name:"x",Label:"-2","CBOR Type":"bstr",Description:"x-coordinate",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"2-y":{"Key Type":"2",Name:"y",Label:"-3","CBOR Type":"bstr / bool",Description:"y-coordinate",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"2-d":{"Key Type":"2",Name:"d",Label:"-4","CBOR Type":"bstr",Description:"Private key",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"3-n":{"Key Type":"3",Name:"n",Label:"-1","CBOR Type":"bstr",Description:"the RSA modulus n",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-e":{"Key Type":"3",Name:"e",Label:"-2","CBOR Type":"bstr",Description:"the RSA public exponent e",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-d":{"Key Type":"3",Name:"d",Label:"-3","CBOR Type":"bstr",Description:"the RSA private exponent d",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-p":{"Key Type":"3",Name:"p",Label:"-4","CBOR Type":"bstr",Description:"the prime factor p of n",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-q":{"Key Type":"3",Name:"q",Label:"-5","CBOR Type":"bstr",Description:"the prime factor q of n",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-dP":{"Key Type":"3",Name:"dP",Label:"-6","CBOR Type":"bstr",Description:"dP is d mod (p - 1)",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-dQ":{"Key Type":"3",Name:"dQ",Label:"-7","CBOR Type":"bstr",Description:"dQ is d mod (q - 1)",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-qInv":{"Key Type":"3",Name:"qInv",Label:"-8","CBOR Type":"bstr",Description:"qInv is the CRT coefficient q^(-1) mod p",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-other":{"Key Type":"3",Name:"other",Label:"-9","CBOR Type":"array",Description:"other prime infos, an array",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-r_i":{"Key Type":"3",Name:"r_i",Label:"-10","CBOR Type":"bstr",Description:"a prime factor r_i of n, where i >= 3",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-d_i":{"Key Type":"3",Name:"d_i",Label:"-11","CBOR Type":"bstr",Description:"d_i = d mod (r_i - 1)",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"3-t_i":{"Key Type":"3",Name:"t_i",Label:"-12","CBOR Type":"bstr",Description:"the CRT coefficient t_i = (r_1 * r_2 * ... *\n r_(i-1))^(-1) mod r_i",Reference:"https://datatracker.ietf.org/doc/RFC8230"},"4-k":{"Key Type":"4",Name:"k",Label:"-1","CBOR Type":"bstr",Description:"Key Value",Reference:"https://datatracker.ietf.org/doc/RFC9053"},"5-pub":{"Key Type":"5",Name:"pub",Label:"-1","CBOR Type":"bstr",Description:"Public key for HSS/LMS hash-based digital signature",Reference:"https://datatracker.ietf.org/doc/RFC8778"},"6-N":{"Key Type":"6",Name:"N",Label:"-1","CBOR Type":"uint",Description:"Group and Matrix (NxN) size",Reference:"https://datatracker.ietf.org/doc/RFC9021"},"6-q":{"Key Type":"6",Name:"q",Label:"-2","CBOR Type":"uint",Description:"Finite field F_q",Reference:"https://datatracker.ietf.org/doc/RFC9021"},"6-t-values":{"Key Type":"6",Name:"t-values",Label:"-3","CBOR Type":"array (of uint)",Description:"List of T-values, entries in F_q",Reference:"https://datatracker.ietf.org/doc/RFC9021"},"6-matrix 1":{"Key Type":"6",Name:"matrix 1",Label:"-4","CBOR Type":"array (of array of uint)",Description:"NxN Matrix of entries in F_q in column-major form",Reference:"https://datatracker.ietf.org/doc/RFC9021"},"6-permutation 1":{"Key Type":"6",Name:"permutation 1",Label:"-5","CBOR Type":"array (of uint)",Description:"Permutation associated with matrix 1",Reference:"https://datatracker.ietf.org/doc/RFC9021"},"6-matrix 2":{"Key Type":"6",Name:"matrix 2",Label:"-6","CBOR Type":"array (of array of uint)",Description:"NxN Matrix of entries in F_q in column-major form",Reference:"https://datatracker.ietf.org/doc/RFC9021"}}},74391:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEKeyTypes=void 0;pe.IANACOSEKeyTypes={0:{Name:"Reserved",Value:"0",Description:"This value is reserved",Capabilities:"",Reference:"https://datatracker.ietf.org/doc/RFC9053"},1:{Name:"OKP",Value:"1",Description:"Octet Key Pair",Capabilities:"[kty(1), crv]",Reference:"https://datatracker.ietf.org/doc/RFC9053"},2:{Name:"EC2",Value:"2",Description:"Elliptic Curve Keys w/ x- and y-coordinate pair",Capabilities:"[kty(2), crv]",Reference:"https://datatracker.ietf.org/doc/RFC9053"},3:{Name:"RSA",Value:"3",Description:"RSA Key",Capabilities:"[kty(3)]",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053"},4:{Name:"Symmetric",Value:"4",Description:"Symmetric Keys",Capabilities:"[kty(4)]",Reference:"https://datatracker.ietf.org/doc/RFC9053"},5:{Name:"HSS-LMS",Value:"5",Description:"Public key for HSS/LMS hash-based digital signature",Capabilities:"[kty(5), hash algorithm]",Reference:"https://datatracker.ietf.org/doc/RFC8778][RFC9053"},6:{Name:"WalnutDSA",Value:"6",Description:"WalnutDSA public key",Capabilities:"[kty(6)]",Reference:"https://datatracker.ietf.org/doc/RFC9021][RFC9053"}}},51713:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.convertCoseKeyToJsonWebKey=void 0;const ge=Ae(74806);const ye=Ae(38853);const me=Ae(80424);const ve=Object.values(ye.IANACOSEAlgorithms);const be=Object.values(me.IANACOSEEllipticCurves);const Ee=Ae(74039);const convertCoseKeyToJsonWebKey=R=>he(void 0,void 0,void 0,(function*(){const pe=R.get(1);const Ae=R.get(2);const he=R.get(3);const ye=R.get(-1);if(![2,5].includes(pe)){throw new Error("This library requires does not support the given key type")}const me=ve.find((R=>R.Value===`${he}`));if(!me){throw new Error("This library requires keys to use fully specified algorithms")}const we=be.find((R=>R.Value===`${ye}`));if(!we){throw new Error("This library requires does not support the given curve")}const Ce={kty:"EC",alg:me.Name,crv:we.Name};const _e=R.get(-2);const Ie=R.get(-3);const Se=R.get(-4);if(_e){Ce.x=ge.base64url.encode(_e)}if(Ie){Ce.y=ge.base64url.encode(Ie)}if(Se){Ce.d=ge.base64url.encode(Se)}if(Ae&&typeof Ae==="string"){Ce.kid=Ae}else{Ce.kid=yield(0,ge.calculateJwkThumbprint)(Ce)}return(0,Ee.formatJwk)(Ce)}));pe.convertCoseKeyToJsonWebKey=convertCoseKeyToJsonWebKey},69063:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.convertJsonWebKeyToCoseKey=void 0;const ge=Ae(74806);const ye=Ae(48246);const me=Ae(91830);const ve=Ae(38853);const be=Ae(82920);const Ee=Ae(74391);const we=Ae(80424);const Ce=Object.values(ve.IANACOSEAlgorithms);const _e=Object.values(me.IANACOSEKeyCommonParameters);const Ie=Object.values(be.IANACOSEKeyTypeParameters);const Se=Object.values(Ee.IANACOSEKeyTypes);const Be=Object.values(we.IANACOSEEllipticCurves);const ke={OKP:Ie.filter((R=>R["Key Type"]==="1")),EC2:Ie.filter((R=>R["Key Type"]==="2"))};const getKeyTypeSpecificLabel=(R,pe)=>{let Ae=pe;let he=ke[R].find((R=>R.Name===pe));if(!he){he=ke[R].find((R=>R.Name===pe))}if(he){Ae=parseInt(he.Label,10)}else{throw new Error(`Unable to find a label for this param (${pe}) for the given key type ${R}`)}return Ae};const convertJsonWebKeyToCoseKey=R=>he(void 0,void 0,void 0,(function*(){const{kty:pe}=R;let Ae=`${pe}`;if(Ae==="EC"){Ae="EC2"}if(!ke[Ae]){throw new Error("Unsupported key type")}const he=new Map;for(const[pe,me]of Object.entries(R)){const R=_e.find((R=>R.Name===pe));let ve=pe;if(R){ve=parseInt(R.Label,10)}switch(pe){case"kty":{const R=Se.find((R=>R.Name===Ae));if(R){he.set(ve,parseInt(R.Value,10))}else{throw new Error("Unsupported key type: "+me)}break}case"kid":{if(R){he.set(ve,me)}else{throw new Error("Expected common parameter was not found in iana registry.")}break}case"alg":{if(R){const R=Ce.find((R=>R.Name===me));if(R){he.set(ve,parseInt(R.Value,10))}else{throw new Error("Expected algorithm was not found in iana registry.")}}else{throw new Error("Expected common parameter was not found in iana registry.")}break}case"crv":{ve=getKeyTypeSpecificLabel(Ae,"crv");const R=Be.find((R=>R.Name===me));if(R){he.set(ve,parseInt(R.Value,10))}else{throw new Error("Expected curve was not found in iana registry.")}break}case"x":case"y":case"d":{ve=getKeyTypeSpecificLabel(Ae,pe);he.set(ve,(0,ye.toArrayBuffer)(ge.base64url.decode(me)));break}case"x5c":{const R=(me||[]).map((R=>(0,ye.toArrayBuffer)(ge.base64url.decode(R))));he.set(ve,R);break}case"x5t#S256":{he.set(ve,(0,ye.toArrayBuffer)(ge.base64url.decode(me)));break}default:{he.set(ve,me)}}}return he}));pe.convertJsonWebKeyToCoseKey=convertJsonWebKeyToCoseKey},74039:function(R,pe){"use strict";var Ae=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);ge{const{kid:pe,alg:he,kty:ge,crv:ye,x:me,y:ve,d:be}=R,Ee=Ae(R,["kid","alg","kty","crv","x","y","d"]);return JSON.parse(JSON.stringify(Object.assign({kid:pe,alg:he,kty:ge,crv:ye,x:me,y:ve,d:be},Ee)))};pe.formatJwk=formatJwk},14658:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.generate=void 0;const ge=Ae(74806);const ye=Ae(38853);const me=Ae(69063);const ve=Ae(79465);const be=Ae(74039);const generate=(R,pe="application/jwk+json")=>he(void 0,void 0,void 0,(function*(){const Ae=Object.values(ye.IANACOSEAlgorithms).find((pe=>pe.Name===R));if(!Ae){throw new Error("Algorithm is not supported.")}const he=yield(0,ge.generateKeyPair)(Ae.Name,{extractable:true});const Ee=yield(0,ge.exportJWK)(he.privateKey);const we=yield(0,ge.calculateJwkThumbprint)(Ee);Ee.kid=we;Ee.alg=R;if(pe==="application/jwk+json"){return(0,be.formatJwk)(Ee)}if(pe==="application/cose-key"){delete Ee.kid;const R=yield(0,me.convertJsonWebKeyToCoseKey)(Ee);const pe=yield ve.thumbprint.calculateCoseKeyThumbprint(R);R.set(2,pe);return R}throw new Error("Unsupported content type.")}));pe.generate=generate},56516:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});pe.thumbprint=void 0;const ye=Ae(79465);Object.defineProperty(pe,"thumbprint",{enumerable:true,get:function(){return ye.thumbprint}});ge(Ae(14658),pe);ge(Ae(69063),pe);ge(Ae(51713),pe);ge(Ae(90802),pe);ge(Ae(46272),pe)},90802:function(R,pe){"use strict";var Ae=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);ge{if(R.kty!=="EC"){throw new Error("Only EC keys are supported")}const{d:pe,p:he,q:ge,dp:ye,dq:me,qi:ve,key_ops:be}=R,Ee=Ae(R,["d","p","q","dp","dq","qi","key_ops"]);return Ee};pe.extracePublicKeyJwk=extracePublicKeyJwk;const extractPublicCoseKey=R=>{const pe=new Map(R);if(pe.get(1)!==2){throw new Error("Only EC2 keys are supported")}if(!pe.get(-4)){throw new Error("privateKey is not a secret / private key (has no d / -4)")}pe.delete(-4);return pe};pe.extractPublicCoseKey=extractPublicCoseKey;const publicFromPrivate=R=>{if(R.kty){return(0,pe.extracePublicKeyJwk)(R)}return(0,pe.extractPublicCoseKey)(R)};pe.publicFromPrivate=publicFromPrivate},46272:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.serialize=void 0;const he=Ae(48246);const serialize=R=>{if(R.kty){return JSON.stringify(R,null,2)}return(0,he.encode)(R)};pe.serialize=serialize},79465:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.thumbprint=void 0;const ye=Ae(74806);const me=Ae(48246);const ve=ge(Ae(9282));const calculateCoseKeyThumbprint=R=>he(void 0,void 0,void 0,(function*(){const pe=new Map;const Ae=[1,-1,-2,-3];for(const[he,ge]of R.entries()){if(Ae.includes(he)){pe.set(he,ge)}}const he=(0,me.encodeCanonical)(pe);const ge=yield(0,ve.default)();const ye=ge.digest("SHA-256",he);return ye}));const calculateCoseKeyThumbprintUri=R=>he(void 0,void 0,void 0,(function*(){const pe=`urn:ietf:params:oauth:ckt:sha-256`;const Ae=yield calculateCoseKeyThumbprint(R);return`${pe}:${ye.base64url.encode(new Uint8Array(Ae))}`}));pe.thumbprint={calculateJwkThumbprint:ye.calculateJwkThumbprint,calculateJwkThumbprintUri:ye.calculateJwkThumbprintUri,calculateCoseKeyThumbprint:calculateCoseKeyThumbprint,calculateCoseKeyThumbprintUri:calculateCoseKeyThumbprintUri,uri:calculateCoseKeyThumbprintUri}},83648:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.add=void 0;const ge=Ae(48246);const add=(R,pe)=>he(void 0,void 0,void 0,(function*(){const{tag:Ae,value:he}=(0,ge.decodeFirstSync)(R);if(Ae!==ge.Sign1Tag){throw new Error("Receipts can only be added to cose-sign1")}if(!(he[1]instanceof Map)){he[1]=new Map}const ye=he[1].get(394)||[];ye.push(pe);he[1].set(394,ye);return(0,ge.toArrayBuffer)(yield(0,ge.encodeAsync)(new ge.Tagged(ge.Sign1Tag,he),{canonical:true}))}));pe.add=add},87569:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(77354),pe);ge(Ae(50277),pe)},77354:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.issue=void 0;const ge=Ae(57994);const ye=Ae(88844);const me=Ae(48246);const issue=R=>he(void 0,void 0,void 0,(function*(){const{protectedHeader:pe,receipt:Ae,entries:he,signer:ve}=R;const be=pe.get(395);if(be!==1){throw new Error("Unsupported verifiable data structure. See https://datatracker.ietf.org/doc/draft-ietf-cose-merkle-tree-proofs")}const{tag:Ee,value:we}=ye.cbor.decode(Ae);if(Ee!==18){throw new Error("Receipt is not tagged cose sign1")}const[Ce,_e,Ie]=we;const Se=ye.cbor.decode(Ce);const Be=Se.get(395);if(Be!==1){throw new Error("Unsupported verifiable data structure. See https://datatracker.ietf.org/doc/draft-ietf-cose-merkle-tree-proofs")}const[ke]=_e.get(396).get(-1);if(Ie!==null){throw new Error("payload must be null for this type of proof")}const[Oe,Re,Qe]=ye.cbor.decode(ke);const xe=yield ge.CoMETRE.RFC9162_SHA256.consistency_proof({log_id:"",tree_size:Oe,leaf_index:Re,inclusion_path:Qe},he);const Pe=yield ge.CoMETRE.RFC9162_SHA256.root(he);const Te=new Map;Te.set(-2,[ye.cbor.encode([xe.tree_size_1,xe.tree_size_2,xe.consistency_path.map(me.toArrayBuffer)])]);const De=new Map;De.set(396,Te);const Ne=yield ve.sign({protectedHeader:pe,unprotectedHeader:De,payload:Pe});return{root:Pe,receipt:Ne}}));pe.issue=issue},50277:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verify=void 0;const ge=Ae(57994);const ye=Ae(88844);const verify=R=>he(void 0,void 0,void 0,(function*(){const{newRoot:pe,oldRoot:Ae,receipt:he,verifier:me}=R;const{tag:ve,value:be}=ye.cbor.decode(he);if(ve!==18){throw new Error("Receipt is not tagged cose sign1")}const[Ee,we,Ce]=be;const _e=ye.cbor.decode(Ee);const Ie=_e.get(395);if(Ie!==1){throw new Error("Unsupported verifiable data structure. See https://datatracker.ietf.org/doc/draft-ietf-cose-merkle-tree-proofs")}const Se=we.get(396);const[Be]=Se.get(-2);if(Ce!==null){throw new Error("payload must be null for this type of proof")}const[ke,Oe,Re]=ye.cbor.decode(Be);const Qe=yield me.verify({coseSign1:he,payload:pe});const xe=yield ge.CoMETRE.RFC9162_SHA256.verify_consistency_proof(new Uint8Array(Ae),new Uint8Array(Qe),{log_id:"",tree_size_1:ke,tree_size_2:Oe,consistency_path:Re});return xe}));pe.verify=verify},58472:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.get=void 0;const ge=Ae(48246);const get=R=>he(void 0,void 0,void 0,(function*(){const{tag:pe,value:Ae}=(0,ge.decodeFirstSync)(R);if(pe!==ge.Sign1Tag){throw new Error("Receipts can only be added to cose-sign1")}if(!(Ae[1]instanceof Map)){return[]}const he=Ae[1].get(394)||[];return he}));pe.get=get},43047:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(54358),pe);ge(Ae(88472),pe)},54358:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.issue=void 0;const ge=Ae(57994);const ye=Ae(88844);const issue=R=>he(void 0,void 0,void 0,(function*(){const{protectedHeader:pe,entry:Ae,entries:he,signer:me}=R;const ve=pe.get(395);if(ve!==1){throw new Error("Unsupported verifiable data structure. See https://datatracker.ietf.org/doc/draft-ietf-cose-merkle-tree-proofs")}const be=yield ge.CoMETRE.RFC9162_SHA256.root(he);const Ee=yield ge.CoMETRE.RFC9162_SHA256.inclusion_proof(Ae,he);const we=new Map;we.set(-1,[ye.cbor.encode([Ee.tree_size,Ee.leaf_index,Ee.inclusion_path.map(ye.cbor.toArrayBuffer)])]);const Ce=new Map;Ce.set(396,we);return me.sign({protectedHeader:pe,unprotectedHeader:Ce,payload:be})}));pe.issue=issue},88472:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verify=void 0;const ge=Ae(57994);const ye=Ae(88844);const verify=R=>he(void 0,void 0,void 0,(function*(){const{entry:pe,receipt:Ae,verifier:he}=R;const{tag:me,value:ve}=ye.cbor.decode(Ae);if(me!==18){throw new Error("Receipt is not tagged cose sign1")}const[be,Ee,we]=ve;const Ce=ye.cbor.decode(be);const _e=Ce.get(395);if(_e!==1){throw new Error("Unsupported verifiable data structure. See https://datatracker.ietf.org/doc/draft-ietf-cose-merkle-tree-proofs")}const Ie=Ee.get(396);const[Se]=Ie.get(-1);if(we!==null){throw new Error("payload must be null for this type of proof")}const[Be,ke,Oe]=ye.cbor.decode(Se);const Re=yield ge.CoMETRE.RFC9162_SHA256.verify_inclusion_proof(pe,{log_id:"",tree_size:Be,leaf_index:ke,inclusion_path:Oe});const Qe=he.verify({coseSign1:Ae,payload:Re});return Qe}));pe.verify=verify},3885:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=pe.remove=pe.get=pe.add=pe.consistency=pe.inclusion=pe.leaf=void 0;const me=ye(Ae(43047));pe.inclusion=me;const ve=ye(Ae(87569));pe.consistency=ve;const be=Ae(46193);Object.defineProperty(pe,"leaf",{enumerable:true,get:function(){return be.leaf}});const Ee=Ae(83648);Object.defineProperty(pe,"add",{enumerable:true,get:function(){return Ee.add}});const we=Ae(58472);Object.defineProperty(pe,"get",{enumerable:true,get:function(){return we.get}});const Ce=Ae(59178);Object.defineProperty(pe,"remove",{enumerable:true,get:function(){return Ce.remove}});const _e=Ae(60934);Object.defineProperty(pe,"verifier",{enumerable:true,get:function(){return _e.verifier}})},46193:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.leaf=void 0;const he=Ae(57994);pe.leaf=he.CoMETRE.RFC9162_SHA256.leaf},59178:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.remove=void 0;const ge=Ae(48246);const remove=R=>he(void 0,void 0,void 0,(function*(){const{tag:pe,value:Ae}=(0,ge.decodeFirstSync)(R);if(pe!==ge.Sign1Tag){throw new Error("Receipts can only be added to cose-sign1")}Ae[1]=new Map;return(0,ge.toArrayBuffer)(yield(0,ge.encodeAsync)(new ge.Tagged(ge.Sign1Tag,Ae),{canonical:true}))}));pe.remove=remove},60934:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=void 0;const ve=Ae(88844);const be=Ae(58472);const Ee=ye(Ae(43047));const we=Ae(46193);const Ce=Ae(59178);const getVerifierForMessage=(R,pe)=>me(void 0,void 0,void 0,(function*(){const R=ve.detached.verifier({resolver:pe});return R}));const verifyWithResolve=(R,pe)=>me(void 0,void 0,void 0,(function*(){const Ae=yield getVerifierForMessage(R,pe);const he=yield Ae.verify(R);return he}));const verifier=R=>me(void 0,void 0,void 0,(function*(){return{verify:pe=>me(void 0,void 0,void 0,(function*(){const Ae=yield verifyWithResolve(pe,R);const he={payload:Ae,receipts:[]};const ge=yield(0,Ce.remove)(pe.coseSign1);const ye=yield(0,be.get)(pe.coseSign1);if(ye.length){for(const pe of ye){const Ae=yield getVerifierForMessage({coseSign1:pe,payload:ge},R);const ye=yield Ee.verify({entry:yield(0,we.leaf)(new Uint8Array(ge)),receipt:pe,verifier:Ae});he.receipts.push(ye)}}return he}))}}));pe.verifier=verifier},25582:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(38853);const ge=Object.values(he.IANACOSEAlgorithms);const getAlgFromVerificationKey=R=>{const pe=ge.find((pe=>pe.Name===R));if(!pe){throw new Error("This library requires keys to contain fully specified algorithms")}return parseInt(pe.Value,10)};pe["default"]=getAlgFromVerificationKey},55016:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=new Map;Ae.set("ES256",`SHA-256`);Ae.set("ES384",`SHA-384`);Ae.set("ES512",`SHA-512`);const getDigestFromVerificationKey=R=>{const pe=Ae.get(R);if(!pe){throw new Error("This library requires keys to contain fully specified algorithms")}return pe};pe["default"]=getDigestFromVerificationKey},75068:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.hash=void 0;const ye=ge(Ae(27567));const me=ge(Ae(9282));const ve=Ae(3251);pe.hash={signer:({remote:R})=>({sign:({protectedHeader:pe,unprotectedHeader:Ae,payload:ge})=>he(void 0,void 0,void 0,(function*(){const he=yield(0,me.default)();const be=pe.get(ve.Protected.PayloadHashAlgorithm);if(be!==-16){throw new Error("Unsupported hash envelope algorithm (-16 is only one supported)")}const Ee=yield he.digest("SHA-256",ge);const we=(0,ye.default)({remote:R});return new Uint8Array(yield we.sign({protectedHeader:pe,unprotectedHeader:Ae,payload:Ee}))}))})}},78724:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.hash=pe.verifier=pe.signer=void 0;const me=ye(Ae(27567));pe.signer=me.default;const ve=ye(Ae(62690));pe.verifier=ve.default;const be=Ae(75068);Object.defineProperty(pe,"hash",{enumerable:true,get:function(){return be.hash}});ge(Ae(37260),pe)},27567:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});const ge=Ae(48246);const signer=({remote:R})=>({sign:({protectedHeader:pe,unprotectedHeader:Ae,externalAAD:ye,payload:me})=>he(void 0,void 0,void 0,(function*(){const he=(0,ge.toArrayBuffer)(me);const ve=pe.size===0?ge.EMPTY_BUFFER:(0,ge.encode)(pe);const be=["Signature1",ve,ye||ge.EMPTY_BUFFER,he];const Ee=(0,ge.encode)(be);const we=yield R.sign(Ee);const Ce=[ve,Ae,he,we];return(0,ge.toArrayBuffer)(yield(0,ge.encodeAsync)(new ge.Tagged(ge.Sign1Tag,Ce),{canonical:true}))}))});pe["default"]=signer},37260:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},62690:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=Ae(48246);const me=ge(Ae(25582));const ve=ge(Ae(52530));const verifier=({resolver:R})=>({verify:({coseSign1:pe,externalAAD:Ae})=>he(void 0,void 0,void 0,(function*(){const he=yield R.resolve(pe);const ge=(0,me.default)(`${he.alg}`);const be=(0,ve.default)({publicKeyJwk:he});const Ee=yield(0,ye.decodeFirst)(pe);const we=Ee.value;if(!Array.isArray(we)){throw new Error("Expecting Array")}if(we.length!==4){throw new Error("Expecting Array of length 4")}const[Ce,_e,Ie,Se]=we;const Be=!Ce.length?new Map:(0,ye.decodeFirstSync)(Ce);const ke=Be.get(1);if(ke!==ge){throw new Error("Verification key does not support algorithm: "+ke)}if(!Se){throw new Error("No signature to verify")}const Oe=["Signature1",Ce,Ae||ye.EMPTY_BUFFER,Ie];const Re=(0,ye.encode)(Oe);yield be.verify(Re,Se);return Ie}))});pe["default"]=verifier},85013:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=pe.signer=void 0;const ge=he(Ae(6723));pe.signer=ge.default;const ye=he(Ae(52530));pe.verifier=ye.default},6723:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=Ae(48246);const me=ge(Ae(9282));const ve=ge(Ae(55016));const signer=({privateKeyJwk:R})=>{const pe=(0,ve.default)(`${R.alg}`);return{sign:Ae=>he(void 0,void 0,void 0,(function*(){const he=yield(0,me.default)();const ge=yield he.importKey("jwk",R,{name:"ECDSA",namedCurve:R.crv},true,["sign"]);const ve=yield he.sign({name:"ECDSA",hash:{name:pe}},ge,Ae);return(0,ye.toArrayBuffer)(ve)}))}};pe["default"]=signer},9282:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});const ve=Promise.resolve().then((()=>ye(Ae(6113)))).catch((()=>{}));pe["default"]=()=>me(void 0,void 0,void 0,(function*(){try{return window.crypto.subtle}catch(R){return(yield yield ve).subtle}}))},52530:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=ge(Ae(55016));const me=ge(Ae(9282));const verifier=({publicKeyJwk:R})=>{const pe=(0,ye.default)(`${R.alg}`);return{verify:(Ae,ge)=>he(void 0,void 0,void 0,(function*(){const he=yield(0,me.default)();const ye=yield he.importKey("jwk",R,{name:"ECDSA",namedCurve:R.crv},true,["verify"]);const ve=yield he.verify({name:"ECDSA",hash:{name:pe}},ye,ge,Ae);if(!ve){throw new Error("Signature verification failed")}return Ae}))}};pe["default"]=verifier},88844:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var me=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.receipt=pe.detached=pe.attached=pe.key=pe.cbor=pe.crypto=void 0;ye(Ae(38853),pe);ye(Ae(2488),pe);ye(Ae(91830),pe);const ve=me(Ae(56516));pe.key=ve;const be=me(Ae(75824));pe.attached=be;const Ee=me(Ae(27464));pe.detached=Ee;ye(Ae(78724),pe);ye(Ae(56441),pe);ye(Ae(3251),pe);const we=me(Ae(48246));pe.cbor=we;const Ce=me(Ae(3885));pe.receipt=Ce;const _e=me(Ae(85013));pe.crypto=_e},54833:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.certificate=void 0;const ve=Ae(74806);const be=ye(Ae(82315));const Ee=Ae(88844);const we=Ae(88844);const Ce=Promise.resolve().then((()=>ye(Ae(6113)))).catch((()=>{}));const _e=true;const provide=()=>me(void 0,void 0,void 0,(function*(){try{return window.crypto}catch(R){return yield yield Ce}}));const Ie={ES256:{name:"ECDSA",hash:"SHA-256",namedCurve:"P-256"},ES384:{name:"ECDSA",hash:"SHA-384",namedCurve:"P-384"},ES512:{name:"ECDSA",hash:"SHA-512",namedCurve:"P-521"}};const thumbprint=R=>me(void 0,void 0,void 0,(function*(){const pe=new be.X509Certificate(R);return[-16,yield pe.getThumbprint("SHA-256")]}));const root=R=>me(void 0,void 0,void 0,(function*(){const pe=yield provide();be.cryptoProvider.set(pe);const Ae=[];const he=Ie[R.alg];const ge=yield pe.subtle.generateKey(he,_e,["sign","verify"]);const ye=yield be.X509CertificateGenerator.create({serialNumber:"01",subject:R.sub,issuer:R.iss,notBefore:new Date(R.nbf),notAfter:new Date(R.exp),signingAlgorithm:he,publicKey:ge.publicKey,signingKey:ge.privateKey,extensions:[new be.SubjectAlternativeNameExtension(Ae),yield be.SubjectKeyIdentifierExtension.create(ge.publicKey)]});const me=ye.toString();const Ee=yield(0,ve.exportPKCS8)(ge.privateKey);return{public:me,private:Ee}}));const pkcs8Signer=({alg:R,privateKeyPKCS8:pe})=>me(void 0,void 0,void 0,(function*(){const Ae=Object.values(Ee.IANACOSEAlgorithms).find((pe=>pe.Value===`${R}`));if(!Ae){throw new Error("Could not find algorithm in registry for: "+R)}const he=yield(0,ve.exportJWK)(yield(0,ve.importPKCS8)(pe,`${Ae.Name}`));he.alg=Ae.Name;return Ee.detached.signer({remote:we.crypto.signer({privateKeyJwk:he})})}));const verifier=({resolver:R})=>({verify:pe=>me(void 0,void 0,void 0,(function*(){const Ae=Ee.detached.verifier({resolver:R});return Ae.verify(pe)}))});pe.certificate={thumbprint:thumbprint,root:root,pkcs8Signer:pkcs8Signer,verifier:verifier}},56441:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(54833),pe)},74806:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.cryptoRuntime=pe.base64url=pe.generateSecret=pe.generateKeyPair=pe.errors=pe.decodeJwt=pe.decodeProtectedHeader=pe.importJWK=pe.importX509=pe.importPKCS8=pe.importSPKI=pe.exportJWK=pe.exportSPKI=pe.exportPKCS8=pe.UnsecuredJWT=pe.createRemoteJWKSet=pe.createLocalJWKSet=pe.EmbeddedJWK=pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=pe.EncryptJWT=pe.SignJWT=pe.GeneralSign=pe.FlattenedSign=pe.CompactSign=pe.FlattenedEncrypt=pe.CompactEncrypt=pe.jwtDecrypt=pe.jwtVerify=pe.generalVerify=pe.flattenedVerify=pe.compactVerify=pe.GeneralEncrypt=pe.generalDecrypt=pe.flattenedDecrypt=pe.compactDecrypt=void 0;var he=Ae(837);Object.defineProperty(pe,"compactDecrypt",{enumerable:true,get:function(){return he.compactDecrypt}});var ge=Ae(59875);Object.defineProperty(pe,"flattenedDecrypt",{enumerable:true,get:function(){return ge.flattenedDecrypt}});var ye=Ae(95564);Object.defineProperty(pe,"generalDecrypt",{enumerable:true,get:function(){return ye.generalDecrypt}});var me=Ae(64128);Object.defineProperty(pe,"GeneralEncrypt",{enumerable:true,get:function(){return me.GeneralEncrypt}});var ve=Ae(53559);Object.defineProperty(pe,"compactVerify",{enumerable:true,get:function(){return ve.compactVerify}});var be=Ae(86418);Object.defineProperty(pe,"flattenedVerify",{enumerable:true,get:function(){return be.flattenedVerify}});var Ee=Ae(67658);Object.defineProperty(pe,"generalVerify",{enumerable:true,get:function(){return Ee.generalVerify}});var we=Ae(82352);Object.defineProperty(pe,"jwtVerify",{enumerable:true,get:function(){return we.jwtVerify}});var Ce=Ae(95972);Object.defineProperty(pe,"jwtDecrypt",{enumerable:true,get:function(){return Ce.jwtDecrypt}});var _e=Ae(98796);Object.defineProperty(pe,"CompactEncrypt",{enumerable:true,get:function(){return _e.CompactEncrypt}});var Ie=Ae(55386);Object.defineProperty(pe,"FlattenedEncrypt",{enumerable:true,get:function(){return Ie.FlattenedEncrypt}});var Se=Ae(9768);Object.defineProperty(pe,"CompactSign",{enumerable:true,get:function(){return Se.CompactSign}});var Be=Ae(49696);Object.defineProperty(pe,"FlattenedSign",{enumerable:true,get:function(){return Be.FlattenedSign}});var ke=Ae(74074);Object.defineProperty(pe,"GeneralSign",{enumerable:true,get:function(){return ke.GeneralSign}});var Oe=Ae(75003);Object.defineProperty(pe,"SignJWT",{enumerable:true,get:function(){return Oe.SignJWT}});var Re=Ae(94773);Object.defineProperty(pe,"EncryptJWT",{enumerable:true,get:function(){return Re.EncryptJWT}});var Qe=Ae(94822);Object.defineProperty(pe,"calculateJwkThumbprint",{enumerable:true,get:function(){return Qe.calculateJwkThumbprint}});Object.defineProperty(pe,"calculateJwkThumbprintUri",{enumerable:true,get:function(){return Qe.calculateJwkThumbprintUri}});var xe=Ae(15535);Object.defineProperty(pe,"EmbeddedJWK",{enumerable:true,get:function(){return xe.EmbeddedJWK}});var Pe=Ae(75036);Object.defineProperty(pe,"createLocalJWKSet",{enumerable:true,get:function(){return Pe.createLocalJWKSet}});var Te=Ae(87716);Object.defineProperty(pe,"createRemoteJWKSet",{enumerable:true,get:function(){return Te.createRemoteJWKSet}});var De=Ae(90314);Object.defineProperty(pe,"UnsecuredJWT",{enumerable:true,get:function(){return De.UnsecuredJWT}});var Ne=Ae(67168);Object.defineProperty(pe,"exportPKCS8",{enumerable:true,get:function(){return Ne.exportPKCS8}});Object.defineProperty(pe,"exportSPKI",{enumerable:true,get:function(){return Ne.exportSPKI}});Object.defineProperty(pe,"exportJWK",{enumerable:true,get:function(){return Ne.exportJWK}});var Me=Ae(59111);Object.defineProperty(pe,"importSPKI",{enumerable:true,get:function(){return Me.importSPKI}});Object.defineProperty(pe,"importPKCS8",{enumerable:true,get:function(){return Me.importPKCS8}});Object.defineProperty(pe,"importX509",{enumerable:true,get:function(){return Me.importX509}});Object.defineProperty(pe,"importJWK",{enumerable:true,get:function(){return Me.importJWK}});var je=Ae(93980);Object.defineProperty(pe,"decodeProtectedHeader",{enumerable:true,get:function(){return je.decodeProtectedHeader}});var Fe=Ae(33514);Object.defineProperty(pe,"decodeJwt",{enumerable:true,get:function(){return Fe.decodeJwt}});pe.errors=Ae(36454);var Le=Ae(41280);Object.defineProperty(pe,"generateKeyPair",{enumerable:true,get:function(){return Le.generateKeyPair}});var Ue=Ae(59670);Object.defineProperty(pe,"generateSecret",{enumerable:true,get:function(){return Ue.generateSecret}});pe.base64url=Ae(52261);var He=Ae(47650);Object.defineProperty(pe,"cryptoRuntime",{enumerable:true,get:function(){return He.default}})},837:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactDecrypt=void 0;const he=Ae(59875);const ge=Ae(36454);const ye=Ae(55925);async function compactDecrypt(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWEInvalid("Compact JWE must be a string or Uint8Array")}const{0:me,1:ve,2:be,3:Ee,4:we,length:Ce}=R.split(".");if(Ce!==5){throw new ge.JWEInvalid("Invalid Compact JWE")}const _e=await(0,he.flattenedDecrypt)({ciphertext:Ee,iv:be||undefined,protected:me||undefined,tag:we||undefined,encrypted_key:ve||undefined},pe,Ae);const Ie={plaintext:_e.plaintext,protectedHeader:_e.protectedHeader};if(typeof pe==="function"){return{...Ie,key:_e.key}}return Ie}pe.compactDecrypt=compactDecrypt},98796:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactEncrypt=void 0;const he=Ae(55386);class CompactEncrypt{constructor(R){this._flattened=new he.FlattenedEncrypt(R)}setContentEncryptionKey(R){this._flattened.setContentEncryptionKey(R);return this}setInitializationVector(R){this._flattened.setInitializationVector(R);return this}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}setKeyManagementParameters(R){this._flattened.setKeyManagementParameters(R);return this}async encrypt(R,pe){const Ae=await this._flattened.encrypt(R,pe);return[Ae.protected,Ae.encrypted_key,Ae.iv,Ae.ciphertext,Ae.tag].join(".")}}pe.CompactEncrypt=CompactEncrypt},59875:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedDecrypt=void 0;const he=Ae(60589);const ge=Ae(78190);const ye=Ae(52284);const me=Ae(36454);const ve=Ae(11218);const be=Ae(61394);const Ee=Ae(48448);const we=Ae(55925);const Ce=Ae(74466);const _e=Ae(52874);const Ie=Ae(99125);async function flattenedDecrypt(R,pe,Ae){var Se;if(!(0,be.default)(R)){throw new me.JWEInvalid("Flattened JWE must be an object")}if(R.protected===undefined&&R.header===undefined&&R.unprotected===undefined){throw new me.JWEInvalid("JOSE Header missing")}if(typeof R.iv!=="string"){throw new me.JWEInvalid("JWE Initialization Vector missing or incorrect type")}if(typeof R.ciphertext!=="string"){throw new me.JWEInvalid("JWE Ciphertext missing or incorrect type")}if(typeof R.tag!=="string"){throw new me.JWEInvalid("JWE Authentication Tag missing or incorrect type")}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new me.JWEInvalid("JWE Protected Header incorrect type")}if(R.encrypted_key!==undefined&&typeof R.encrypted_key!=="string"){throw new me.JWEInvalid("JWE Encrypted Key incorrect type")}if(R.aad!==undefined&&typeof R.aad!=="string"){throw new me.JWEInvalid("JWE AAD incorrect type")}if(R.header!==undefined&&!(0,be.default)(R.header)){throw new me.JWEInvalid("JWE Shared Unprotected Header incorrect type")}if(R.unprotected!==undefined&&!(0,be.default)(R.unprotected)){throw new me.JWEInvalid("JWE Per-Recipient Unprotected Header incorrect type")}let Be;if(R.protected){try{const pe=(0,he.decode)(R.protected);Be=JSON.parse(we.decoder.decode(pe))}catch{throw new me.JWEInvalid("JWE Protected Header is invalid")}}if(!(0,ve.default)(Be,R.header,R.unprotected)){throw new me.JWEInvalid("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint")}const ke={...Be,...R.header,...R.unprotected};(0,_e.default)(me.JWEInvalid,new Map,Ae===null||Ae===void 0?void 0:Ae.crit,Be,ke);if(ke.zip!==undefined){if(!Be||!Be.zip){throw new me.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}if(ke.zip!=="DEF"){throw new me.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}}const{alg:Oe,enc:Re}=ke;if(typeof Oe!=="string"||!Oe){throw new me.JWEInvalid("missing JWE Algorithm (alg) in JWE Header")}if(typeof Re!=="string"||!Re){throw new me.JWEInvalid("missing JWE Encryption Algorithm (enc) in JWE Header")}const Qe=Ae&&(0,Ie.default)("keyManagementAlgorithms",Ae.keyManagementAlgorithms);const xe=Ae&&(0,Ie.default)("contentEncryptionAlgorithms",Ae.contentEncryptionAlgorithms);if(Qe&&!Qe.has(Oe)){throw new me.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed')}if(xe&&!xe.has(Re)){throw new me.JOSEAlgNotAllowed('"enc" (Encryption Algorithm) Header Parameter not allowed')}let Pe;if(R.encrypted_key!==undefined){try{Pe=(0,he.decode)(R.encrypted_key)}catch{throw new me.JWEInvalid("Failed to base64url decode the encrypted_key")}}let Te=false;if(typeof pe==="function"){pe=await pe(Be,R);Te=true}let De;try{De=await(0,Ee.default)(Oe,pe,Pe,ke,Ae)}catch(R){if(R instanceof TypeError||R instanceof me.JWEInvalid||R instanceof me.JOSENotSupported){throw R}De=(0,Ce.default)(Re)}let Ne;let Me;try{Ne=(0,he.decode)(R.iv)}catch{throw new me.JWEInvalid("Failed to base64url decode the iv")}try{Me=(0,he.decode)(R.tag)}catch{throw new me.JWEInvalid("Failed to base64url decode the tag")}const je=we.encoder.encode((Se=R.protected)!==null&&Se!==void 0?Se:"");let Fe;if(R.aad!==undefined){Fe=(0,we.concat)(je,we.encoder.encode("."),we.encoder.encode(R.aad))}else{Fe=je}let Le;try{Le=(0,he.decode)(R.ciphertext)}catch{throw new me.JWEInvalid("Failed to base64url decode the ciphertext")}let Ue=await(0,ge.default)(Re,De,Le,Ne,Me,Fe);if(ke.zip==="DEF"){Ue=await((Ae===null||Ae===void 0?void 0:Ae.inflateRaw)||ye.inflate)(Ue)}const He={plaintext:Ue};if(R.protected!==undefined){He.protectedHeader=Be}if(R.aad!==undefined){try{He.additionalAuthenticatedData=(0,he.decode)(R.aad)}catch{throw new me.JWEInvalid("Failed to base64url decode the aad")}}if(R.unprotected!==undefined){He.sharedUnprotectedHeader=R.unprotected}if(R.header!==undefined){He.unprotectedHeader=R.header}if(Te){return{...He,key:pe}}return He}pe.flattenedDecrypt=flattenedDecrypt},55386:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedEncrypt=pe.unprotected=void 0;const he=Ae(60589);const ge=Ae(96115);const ye=Ae(52284);const me=Ae(68408);const ve=Ae(19582);const be=Ae(36454);const Ee=Ae(11218);const we=Ae(55925);const Ce=Ae(52874);pe.unprotected=Symbol();class FlattenedEncrypt{constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("plaintext must be an instance of Uint8Array")}this._plaintext=R}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._sharedUnprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._sharedUnprotectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}async encrypt(R,Ae){if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader){throw new be.JWEInvalid("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()")}if(!(0,Ee.default)(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader)){throw new be.JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint")}const _e={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};(0,Ce.default)(be.JWEInvalid,new Map,Ae===null||Ae===void 0?void 0:Ae.crit,this._protectedHeader,_e);if(_e.zip!==undefined){if(!this._protectedHeader||!this._protectedHeader.zip){throw new be.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}if(_e.zip!=="DEF"){throw new be.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}}const{alg:Ie,enc:Se}=_e;if(typeof Ie!=="string"||!Ie){throw new be.JWEInvalid('JWE "alg" (Algorithm) Header Parameter missing or invalid')}if(typeof Se!=="string"||!Se){throw new be.JWEInvalid('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid')}let Be;if(Ie==="dir"){if(this._cek){throw new TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}}else if(Ie==="ECDH-ES"){if(this._cek){throw new TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement")}}let ke;{let he;({cek:ke,encryptedKey:Be,parameters:he}=await(0,ve.default)(Ie,Se,R,this._cek,this._keyManagementParameters));if(he){if(Ae&&pe.unprotected in Ae){if(!this._unprotectedHeader){this.setUnprotectedHeader(he)}else{this._unprotectedHeader={...this._unprotectedHeader,...he}}}else{if(!this._protectedHeader){this.setProtectedHeader(he)}else{this._protectedHeader={...this._protectedHeader,...he}}}}}this._iv||(this._iv=(0,me.default)(Se));let Oe;let Re;let Qe;if(this._protectedHeader){Re=we.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{Re=we.encoder.encode("")}if(this._aad){Qe=(0,he.encode)(this._aad);Oe=(0,we.concat)(Re,we.encoder.encode("."),we.encoder.encode(Qe))}else{Oe=Re}let xe;let Pe;if(_e.zip==="DEF"){const R=await((Ae===null||Ae===void 0?void 0:Ae.deflateRaw)||ye.deflate)(this._plaintext);({ciphertext:xe,tag:Pe}=await(0,ge.default)(Se,R,ke,this._iv,Oe))}else{({ciphertext:xe,tag:Pe}=await(0,ge.default)(Se,this._plaintext,ke,this._iv,Oe))}const Te={ciphertext:(0,he.encode)(xe),iv:(0,he.encode)(this._iv),tag:(0,he.encode)(Pe)};if(Be){Te.encrypted_key=(0,he.encode)(Be)}if(Qe){Te.aad=Qe}if(this._protectedHeader){Te.protected=we.decoder.decode(Re)}if(this._sharedUnprotectedHeader){Te.unprotected=this._sharedUnprotectedHeader}if(this._unprotectedHeader){Te.header=this._unprotectedHeader}return Te}}pe.FlattenedEncrypt=FlattenedEncrypt},95564:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalDecrypt=void 0;const he=Ae(59875);const ge=Ae(36454);const ye=Ae(61394);async function generalDecrypt(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWEInvalid("General JWE must be an object")}if(!Array.isArray(R.recipients)||!R.recipients.every(ye.default)){throw new ge.JWEInvalid("JWE Recipients missing or incorrect type")}if(!R.recipients.length){throw new ge.JWEInvalid("JWE Recipients has no members")}for(const ge of R.recipients){try{return await(0,he.flattenedDecrypt)({aad:R.aad,ciphertext:R.ciphertext,encrypted_key:ge.encrypted_key,header:ge.header,iv:R.iv,protected:R.protected,tag:R.tag,unprotected:R.unprotected},pe,Ae)}catch{}}throw new ge.JWEDecryptionFailed}pe.generalDecrypt=generalDecrypt},64128:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralEncrypt=void 0;const he=Ae(55386);const ge=Ae(36454);const ye=Ae(74466);const me=Ae(11218);const ve=Ae(19582);const be=Ae(60589);const Ee=Ae(52874);class IndividualRecipient{constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addRecipient(...R){return this.parent.addRecipient(...R)}encrypt(...R){return this.parent.encrypt(...R)}done(){return this.parent}}class GeneralEncrypt{constructor(R){this._recipients=[];this._plaintext=R}addRecipient(R,pe){const Ae=new IndividualRecipient(this,R,{crit:pe===null||pe===void 0?void 0:pe.crit});this._recipients.push(Ae);return Ae}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}async encrypt(R){var pe,Ae,we;if(!this._recipients.length){throw new ge.JWEInvalid("at least one recipient must be added")}R={deflateRaw:R===null||R===void 0?void 0:R.deflateRaw};if(this._recipients.length===1){const[pe]=this._recipients;const Ae=await new he.FlattenedEncrypt(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(pe.unprotectedHeader).encrypt(pe.key,{...pe.options,...R});let ge={ciphertext:Ae.ciphertext,iv:Ae.iv,recipients:[{}],tag:Ae.tag};if(Ae.aad)ge.aad=Ae.aad;if(Ae.protected)ge.protected=Ae.protected;if(Ae.unprotected)ge.unprotected=Ae.unprotected;if(Ae.encrypted_key)ge.recipients[0].encrypted_key=Ae.encrypted_key;if(Ae.header)ge.recipients[0].header=Ae.header;return ge}let Ce;for(let R=0;R{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EmbeddedJWK=void 0;const he=Ae(59111);const ge=Ae(61394);const ye=Ae(36454);async function EmbeddedJWK(R,pe){const Ae={...R,...pe===null||pe===void 0?void 0:pe.header};if(!(0,ge.default)(Ae.jwk)){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a JSON object')}const me=await(0,he.importJWK)({...Ae.jwk,ext:true},Ae.alg,true);if(me instanceof Uint8Array||me.type!=="public"){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a public key')}return me}pe.EmbeddedJWK=EmbeddedJWK},94822:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=void 0;const he=Ae(46639);const ge=Ae(60589);const ye=Ae(36454);const me=Ae(55925);const ve=Ae(61394);const check=(R,pe)=>{if(typeof R!=="string"||!R){throw new ye.JWKInvalid(`${pe} missing or invalid`)}};async function calculateJwkThumbprint(R,pe){if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe!==null&&pe!==void 0?pe:pe="sha256";if(pe!=="sha256"&&pe!=="sha384"&&pe!=="sha512"){throw new TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"')}let Ae;switch(R.kty){case"EC":check(R.crv,'"crv" (Curve) Parameter');check(R.x,'"x" (X Coordinate) Parameter');check(R.y,'"y" (Y Coordinate) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x,y:R.y};break;case"OKP":check(R.crv,'"crv" (Subtype of Key Pair) Parameter');check(R.x,'"x" (Public Key) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x};break;case"RSA":check(R.e,'"e" (Exponent) Parameter');check(R.n,'"n" (Modulus) Parameter');Ae={e:R.e,kty:R.kty,n:R.n};break;case"oct":check(R.k,'"k" (Key Value) Parameter');Ae={k:R.k,kty:R.kty};break;default:throw new ye.JOSENotSupported('"kty" (Key Type) Parameter missing or unsupported')}const be=me.encoder.encode(JSON.stringify(Ae));return(0,ge.encode)(await(0,he.default)(pe,be))}pe.calculateJwkThumbprint=calculateJwkThumbprint;async function calculateJwkThumbprintUri(R,pe){pe!==null&&pe!==void 0?pe:pe="sha256";const Ae=await calculateJwkThumbprint(R,pe);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${pe.slice(-3)}:${Ae}`}pe.calculateJwkThumbprintUri=calculateJwkThumbprintUri},75036:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createLocalJWKSet=pe.LocalJWKSet=pe.isJWKSLike=void 0;const he=Ae(59111);const ge=Ae(36454);const ye=Ae(61394);function getKtyFromAlg(R){switch(typeof R==="string"&&R.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new ge.JOSENotSupported('Unsupported "alg" value for a JSON Web Key Set')}}function isJWKSLike(R){return R&&typeof R==="object"&&Array.isArray(R.keys)&&R.keys.every(isJWKLike)}pe.isJWKSLike=isJWKSLike;function isJWKLike(R){return(0,ye.default)(R)}function clone(R){if(typeof structuredClone==="function"){return structuredClone(R)}return JSON.parse(JSON.stringify(R))}class LocalJWKSet{constructor(R){this._cached=new WeakMap;if(!isJWKSLike(R)){throw new ge.JWKSInvalid("JSON Web Key Set malformed")}this._jwks=clone(R)}async getKey(R,pe){const{alg:Ae,kid:he}={...R,...pe===null||pe===void 0?void 0:pe.header};const ye=getKtyFromAlg(Ae);const me=this._jwks.keys.filter((R=>{let pe=ye===R.kty;if(pe&&typeof he==="string"){pe=he===R.kid}if(pe&&typeof R.alg==="string"){pe=Ae===R.alg}if(pe&&typeof R.use==="string"){pe=R.use==="sig"}if(pe&&Array.isArray(R.key_ops)){pe=R.key_ops.includes("verify")}if(pe&&Ae==="EdDSA"){pe=R.crv==="Ed25519"||R.crv==="Ed448"}if(pe){switch(Ae){case"ES256":pe=R.crv==="P-256";break;case"ES256K":pe=R.crv==="secp256k1";break;case"ES384":pe=R.crv==="P-384";break;case"ES512":pe=R.crv==="P-521";break}}return pe}));const{0:ve,length:be}=me;if(be===0){throw new ge.JWKSNoMatchingKey}else if(be!==1){const R=new ge.JWKSMultipleMatchingKeys;const{_cached:pe}=this;R[Symbol.asyncIterator]=async function*(){for(const R of me){try{yield await importWithAlgCache(pe,R,Ae)}catch{continue}}};throw R}return importWithAlgCache(this._cached,ve,Ae)}}pe.LocalJWKSet=LocalJWKSet;async function importWithAlgCache(R,pe,Ae){const ye=R.get(pe)||R.set(pe,{}).get(pe);if(ye[Ae]===undefined){const R=await(0,he.importJWK)({...pe,ext:true},Ae);if(R instanceof Uint8Array||R.type!=="public"){throw new ge.JWKSInvalid("JSON Web Key Set members must be public keys")}ye[Ae]=R}return ye[Ae]}function createLocalJWKSet(R){const pe=new LocalJWKSet(R);return async function(R,Ae){return pe.getKey(R,Ae)}}pe.createLocalJWKSet=createLocalJWKSet},87716:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createRemoteJWKSet=void 0;const he=Ae(90898);const ge=Ae(36454);const ye=Ae(75036);function isCloudflareWorkers(){return typeof WebSocketPair!=="undefined"||typeof navigator!=="undefined"&&navigator.userAgent==="Cloudflare-Workers"||typeof EdgeRuntime!=="undefined"&&EdgeRuntime==="vercel"}class RemoteJWKSet extends ye.LocalJWKSet{constructor(R,pe){super({keys:[]});this._jwks=undefined;if(!(R instanceof URL)){throw new TypeError("url must be an instance of URL")}this._url=new URL(R.href);this._options={agent:pe===null||pe===void 0?void 0:pe.agent,headers:pe===null||pe===void 0?void 0:pe.headers};this._timeoutDuration=typeof(pe===null||pe===void 0?void 0:pe.timeoutDuration)==="number"?pe===null||pe===void 0?void 0:pe.timeoutDuration:5e3;this._cooldownDuration=typeof(pe===null||pe===void 0?void 0:pe.cooldownDuration)==="number"?pe===null||pe===void 0?void 0:pe.cooldownDuration:3e4;this._cacheMaxAge=typeof(pe===null||pe===void 0?void 0:pe.cacheMaxAge)==="number"?pe===null||pe===void 0?void 0:pe.cacheMaxAge:6e5}coolingDown(){return typeof this._jwksTimestamp==="number"?Date.now(){if(!(0,ye.isJWKSLike)(R)){throw new ge.JWKSInvalid("JSON Web Key Set malformed")}this._jwks={keys:R.keys};this._jwksTimestamp=Date.now();this._pendingFetch=undefined})).catch((R=>{this._pendingFetch=undefined;throw R})));await this._pendingFetch}}function createRemoteJWKSet(R,pe){const Ae=new RemoteJWKSet(R,pe);return async function(R,pe){return Ae.getKey(R,pe)}}pe.createRemoteJWKSet=createRemoteJWKSet},9768:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactSign=void 0;const he=Ae(49696);class CompactSign{constructor(R){this._flattened=new he.FlattenedSign(R)}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}async sign(R,pe){const Ae=await this._flattened.sign(R,pe);if(Ae.payload===undefined){throw new TypeError("use the flattened module for creating JWS with b64: false")}return`${Ae.protected}.${Ae.payload}.${Ae.signature}`}}pe.CompactSign=CompactSign},53559:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactVerify=void 0;const he=Ae(86418);const ge=Ae(36454);const ye=Ae(55925);async function compactVerify(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWSInvalid("Compact JWS must be a string or Uint8Array")}const{0:me,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3){throw new ge.JWSInvalid("Invalid Compact JWS")}const we=await(0,he.flattenedVerify)({payload:ve,protected:me,signature:be},pe,Ae);const Ce={payload:we.payload,protectedHeader:we.protectedHeader};if(typeof pe==="function"){return{...Ce,key:we.key}}return Ce}pe.compactVerify=compactVerify},49696:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedSign=void 0;const he=Ae(60589);const ge=Ae(85513);const ye=Ae(11218);const me=Ae(36454);const ve=Ae(55925);const be=Ae(57113);const Ee=Ae(52874);class FlattenedSign{constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("payload must be an instance of Uint8Array")}this._payload=R}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}async sign(R,pe){if(!this._protectedHeader&&!this._unprotectedHeader){throw new me.JWSInvalid("either setProtectedHeader or setUnprotectedHeader must be called before #sign()")}if(!(0,ye.default)(this._protectedHeader,this._unprotectedHeader)){throw new me.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Ae={...this._protectedHeader,...this._unprotectedHeader};const we=(0,Ee.default)(me.JWSInvalid,new Map([["b64",true]]),pe===null||pe===void 0?void 0:pe.crit,this._protectedHeader,Ae);let Ce=true;if(we.has("b64")){Ce=this._protectedHeader.b64;if(typeof Ce!=="boolean"){throw new me.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:_e}=Ae;if(typeof _e!=="string"||!_e){throw new me.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}(0,be.default)(_e,R,"sign");let Ie=this._payload;if(Ce){Ie=ve.encoder.encode((0,he.encode)(Ie))}let Se;if(this._protectedHeader){Se=ve.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{Se=ve.encoder.encode("")}const Be=(0,ve.concat)(Se,ve.encoder.encode("."),Ie);const ke=await(0,ge.default)(_e,R,Be);const Oe={signature:(0,he.encode)(ke),payload:""};if(Ce){Oe.payload=ve.decoder.decode(Ie)}if(this._unprotectedHeader){Oe.header=this._unprotectedHeader}if(this._protectedHeader){Oe.protected=ve.decoder.decode(Se)}return Oe}}pe.FlattenedSign=FlattenedSign},86418:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedVerify=void 0;const he=Ae(60589);const ge=Ae(34438);const ye=Ae(36454);const me=Ae(55925);const ve=Ae(11218);const be=Ae(61394);const Ee=Ae(57113);const we=Ae(52874);const Ce=Ae(99125);async function flattenedVerify(R,pe,Ae){var _e;if(!(0,be.default)(R)){throw new ye.JWSInvalid("Flattened JWS must be an object")}if(R.protected===undefined&&R.header===undefined){throw new ye.JWSInvalid('Flattened JWS must have either of the "protected" or "header" members')}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new ye.JWSInvalid("JWS Protected Header incorrect type")}if(R.payload===undefined){throw new ye.JWSInvalid("JWS Payload missing")}if(typeof R.signature!=="string"){throw new ye.JWSInvalid("JWS Signature missing or incorrect type")}if(R.header!==undefined&&!(0,be.default)(R.header)){throw new ye.JWSInvalid("JWS Unprotected Header incorrect type")}let Ie={};if(R.protected){try{const pe=(0,he.decode)(R.protected);Ie=JSON.parse(me.decoder.decode(pe))}catch{throw new ye.JWSInvalid("JWS Protected Header is invalid")}}if(!(0,ve.default)(Ie,R.header)){throw new ye.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Se={...Ie,...R.header};const Be=(0,we.default)(ye.JWSInvalid,new Map([["b64",true]]),Ae===null||Ae===void 0?void 0:Ae.crit,Ie,Se);let ke=true;if(Be.has("b64")){ke=Ie.b64;if(typeof ke!=="boolean"){throw new ye.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:Oe}=Se;if(typeof Oe!=="string"||!Oe){throw new ye.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}const Re=Ae&&(0,Ce.default)("algorithms",Ae.algorithms);if(Re&&!Re.has(Oe)){throw new ye.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed')}if(ke){if(typeof R.payload!=="string"){throw new ye.JWSInvalid("JWS Payload must be a string")}}else if(typeof R.payload!=="string"&&!(R.payload instanceof Uint8Array)){throw new ye.JWSInvalid("JWS Payload must be a string or an Uint8Array instance")}let Qe=false;if(typeof pe==="function"){pe=await pe(Ie,R);Qe=true}(0,Ee.default)(Oe,pe,"verify");const xe=(0,me.concat)(me.encoder.encode((_e=R.protected)!==null&&_e!==void 0?_e:""),me.encoder.encode("."),typeof R.payload==="string"?me.encoder.encode(R.payload):R.payload);let Pe;try{Pe=(0,he.decode)(R.signature)}catch{throw new ye.JWSInvalid("Failed to base64url decode the signature")}const Te=await(0,ge.default)(Oe,pe,Pe,xe);if(!Te){throw new ye.JWSSignatureVerificationFailed}let De;if(ke){try{De=(0,he.decode)(R.payload)}catch{throw new ye.JWSInvalid("Failed to base64url decode the payload")}}else if(typeof R.payload==="string"){De=me.encoder.encode(R.payload)}else{De=R.payload}const Ne={payload:De};if(R.protected!==undefined){Ne.protectedHeader=Ie}if(R.header!==undefined){Ne.unprotectedHeader=R.header}if(Qe){return{...Ne,key:pe}}return Ne}pe.flattenedVerify=flattenedVerify},74074:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralSign=void 0;const he=Ae(49696);const ge=Ae(36454);class IndividualSignature{constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setProtectedHeader(R){if(this.protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this.protectedHeader=R;return this}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addSignature(...R){return this.parent.addSignature(...R)}sign(...R){return this.parent.sign(...R)}done(){return this.parent}}class GeneralSign{constructor(R){this._signatures=[];this._payload=R}addSignature(R,pe){const Ae=new IndividualSignature(this,R,pe);this._signatures.push(Ae);return Ae}async sign(){if(!this._signatures.length){throw new ge.JWSInvalid("at least one signature must be added")}const R={signatures:[],payload:""};for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalVerify=void 0;const he=Ae(86418);const ge=Ae(36454);const ye=Ae(61394);async function generalVerify(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWSInvalid("General JWS must be an object")}if(!Array.isArray(R.signatures)||!R.signatures.every(ye.default)){throw new ge.JWSInvalid("JWS Signatures missing or incorrect type")}for(const ge of R.signatures){try{return await(0,he.flattenedVerify)({header:ge.header,payload:R.payload,protected:ge.protected,signature:ge.signature},pe,Ae)}catch{}}throw new ge.JWSSignatureVerificationFailed}pe.generalVerify=generalVerify},95972:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtDecrypt=void 0;const he=Ae(837);const ge=Ae(50868);const ye=Ae(36454);async function jwtDecrypt(R,pe,Ae){const me=await(0,he.compactDecrypt)(R,pe,Ae);const ve=(0,ge.default)(me.protectedHeader,me.plaintext,Ae);const{protectedHeader:be}=me;if(be.iss!==undefined&&be.iss!==ve.iss){throw new ye.JWTClaimValidationFailed('replicated "iss" claim header parameter mismatch',"iss","mismatch")}if(be.sub!==undefined&&be.sub!==ve.sub){throw new ye.JWTClaimValidationFailed('replicated "sub" claim header parameter mismatch',"sub","mismatch")}if(be.aud!==undefined&&JSON.stringify(be.aud)!==JSON.stringify(ve.aud)){throw new ye.JWTClaimValidationFailed('replicated "aud" claim header parameter mismatch',"aud","mismatch")}const Ee={payload:ve,protectedHeader:be};if(typeof pe==="function"){return{...Ee,key:me.key}}return Ee}pe.jwtDecrypt=jwtDecrypt},94773:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncryptJWT=void 0;const he=Ae(98796);const ge=Ae(55925);const ye=Ae(64782);class EncryptJWT extends ye.ProduceJWT{setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}replicateIssuerAsHeader(){this._replicateIssuerAsHeader=true;return this}replicateSubjectAsHeader(){this._replicateSubjectAsHeader=true;return this}replicateAudienceAsHeader(){this._replicateAudienceAsHeader=true;return this}async encrypt(R,pe){const Ae=new he.CompactEncrypt(ge.encoder.encode(JSON.stringify(this._payload)));if(this._replicateIssuerAsHeader){this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}}if(this._replicateSubjectAsHeader){this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}}if(this._replicateAudienceAsHeader){this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}}Ae.setProtectedHeader(this._protectedHeader);if(this._iv){Ae.setInitializationVector(this._iv)}if(this._cek){Ae.setContentEncryptionKey(this._cek)}if(this._keyManagementParameters){Ae.setKeyManagementParameters(this._keyManagementParameters)}return Ae.encrypt(R,pe)}}pe.EncryptJWT=EncryptJWT},64782:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ProduceJWT=void 0;const he=Ae(36660);const ge=Ae(61394);const ye=Ae(58739);class ProduceJWT{constructor(R){if(!(0,ge.default)(R)){throw new TypeError("JWT Claims Set MUST be an object")}this._payload=R}setIssuer(R){this._payload={...this._payload,iss:R};return this}setSubject(R){this._payload={...this._payload,sub:R};return this}setAudience(R){this._payload={...this._payload,aud:R};return this}setJti(R){this._payload={...this._payload,jti:R};return this}setNotBefore(R){if(typeof R==="number"){this._payload={...this._payload,nbf:R}}else{this._payload={...this._payload,nbf:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setExpirationTime(R){if(typeof R==="number"){this._payload={...this._payload,exp:R}}else{this._payload={...this._payload,exp:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setIssuedAt(R){if(typeof R==="undefined"){this._payload={...this._payload,iat:(0,he.default)(new Date)}}else{this._payload={...this._payload,iat:R}}return this}}pe.ProduceJWT=ProduceJWT},75003:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SignJWT=void 0;const he=Ae(9768);const ge=Ae(36454);const ye=Ae(55925);const me=Ae(64782);class SignJWT extends me.ProduceJWT{setProtectedHeader(R){this._protectedHeader=R;return this}async sign(R,pe){var Ae;const me=new he.CompactSign(ye.encoder.encode(JSON.stringify(this._payload)));me.setProtectedHeader(this._protectedHeader);if(Array.isArray((Ae=this._protectedHeader)===null||Ae===void 0?void 0:Ae.crit)&&this._protectedHeader.crit.includes("b64")&&this._protectedHeader.b64===false){throw new ge.JWTInvalid("JWTs MUST NOT use unencoded payload")}return me.sign(R,pe)}}pe.SignJWT=SignJWT},90314:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.UnsecuredJWT=void 0;const he=Ae(60589);const ge=Ae(55925);const ye=Ae(36454);const me=Ae(50868);const ve=Ae(64782);class UnsecuredJWT extends ve.ProduceJWT{encode(){const R=he.encode(JSON.stringify({alg:"none"}));const pe=he.encode(JSON.stringify(this._payload));return`${R}.${pe}.`}static decode(R,pe){if(typeof R!=="string"){throw new ye.JWTInvalid("Unsecured JWT must be a string")}const{0:Ae,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3||be!==""){throw new ye.JWTInvalid("Invalid Unsecured JWT")}let we;try{we=JSON.parse(ge.decoder.decode(he.decode(Ae)));if(we.alg!=="none")throw new Error}catch{throw new ye.JWTInvalid("Invalid Unsecured JWT")}const Ce=(0,me.default)(we,he.decode(ve),pe);return{payload:Ce,header:we}}}pe.UnsecuredJWT=UnsecuredJWT},82352:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtVerify=void 0;const he=Ae(53559);const ge=Ae(50868);const ye=Ae(36454);async function jwtVerify(R,pe,Ae){var me;const ve=await(0,he.compactVerify)(R,pe,Ae);if(((me=ve.protectedHeader.crit)===null||me===void 0?void 0:me.includes("b64"))&&ve.protectedHeader.b64===false){throw new ye.JWTInvalid("JWTs MUST NOT use unencoded payload")}const be=(0,ge.default)(ve.protectedHeader,ve.payload,Ae);const Ee={payload:be,protectedHeader:ve.protectedHeader};if(typeof pe==="function"){return{...Ee,key:ve.key}}return Ee}pe.jwtVerify=jwtVerify},67168:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exportJWK=pe.exportPKCS8=pe.exportSPKI=void 0;const he=Ae(20415);const ge=Ae(20415);const ye=Ae(74948);async function exportSPKI(R){return(0,he.toSPKI)(R)}pe.exportSPKI=exportSPKI;async function exportPKCS8(R){return(0,ge.toPKCS8)(R)}pe.exportPKCS8=exportPKCS8;async function exportJWK(R){return(0,ye.default)(R)}pe.exportJWK=exportJWK},41280:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=void 0;const he=Ae(87757);async function generateKeyPair(R,pe){return(0,he.generateKeyPair)(R,pe)}pe.generateKeyPair=generateKeyPair},59670:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateSecret=void 0;const he=Ae(87757);async function generateSecret(R,pe){return(0,he.generateSecret)(R,pe)}pe.generateSecret=generateSecret},59111:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.importJWK=pe.importPKCS8=pe.importX509=pe.importSPKI=void 0;const he=Ae(60589);const ge=Ae(20415);const ye=Ae(41960);const me=Ae(36454);const ve=Ae(61394);async function importSPKI(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PUBLIC KEY-----")!==0){throw new TypeError('"spki" must be SPKI formatted string')}return(0,ge.fromSPKI)(R,pe,Ae)}pe.importSPKI=importSPKI;async function importX509(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN CERTIFICATE-----")!==0){throw new TypeError('"x509" must be X.509 formatted string')}return(0,ge.fromX509)(R,pe,Ae)}pe.importX509=importX509;async function importPKCS8(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PRIVATE KEY-----")!==0){throw new TypeError('"pkcs8" must be PKCS#8 formatted string')}return(0,ge.fromPKCS8)(R,pe,Ae)}pe.importPKCS8=importPKCS8;async function importJWK(R,pe,Ae){var ge;if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe||(pe=R.alg);switch(R.kty){case"oct":if(typeof R.k!=="string"||!R.k){throw new TypeError('missing "k" (Key Value) Parameter value')}Ae!==null&&Ae!==void 0?Ae:Ae=R.ext!==true;if(Ae){return(0,ye.default)({...R,alg:pe,ext:(ge=R.ext)!==null&&ge!==void 0?ge:false})}return(0,he.decode)(R.k);case"RSA":if(R.oth!==undefined){throw new me.JOSENotSupported('RSA JWK "oth" (Other Primes Info) Parameter value is not supported')}case"EC":case"OKP":return(0,ye.default)({...R,alg:pe});default:throw new me.JOSENotSupported('Unsupported "kty" (Key Type) Parameter value')}}pe.importJWK=importJWK},37175:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(96115);const ge=Ae(78190);const ye=Ae(68408);const me=Ae(60589);async function wrap(R,pe,Ae,ge){const ve=R.slice(0,7);ge||(ge=(0,ye.default)(ve));const{ciphertext:be,tag:Ee}=await(0,he.default)(ve,Ae,pe,ge,new Uint8Array(0));return{encryptedKey:be,iv:(0,me.encode)(ge),tag:(0,me.encode)(Ee)}}pe.wrap=wrap;async function unwrap(R,pe,Ae,he,ye){const me=R.slice(0,7);return(0,ge.default)(me,pe,Ae,he,ye,new Uint8Array(0))}pe.unwrap=unwrap},55925:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatKdf=pe.lengthAndInput=pe.uint32be=pe.uint64be=pe.p2s=pe.concat=pe.decoder=pe.encoder=void 0;const he=Ae(46639);pe.encoder=new TextEncoder;pe.decoder=new TextDecoder;const ge=2**32;function concat(...R){const pe=R.reduce(((R,{length:pe})=>R+pe),0);const Ae=new Uint8Array(pe);let he=0;R.forEach((R=>{Ae.set(R,he);he+=R.length}));return Ae}pe.concat=concat;function p2s(R,Ae){return concat(pe.encoder.encode(R),new Uint8Array([0]),Ae)}pe.p2s=p2s;function writeUInt32BE(R,pe,Ae){if(pe<0||pe>=ge){throw new RangeError(`value must be >= 0 and <= ${ge-1}. Received ${pe}`)}R.set([pe>>>24,pe>>>16,pe>>>8,pe&255],Ae)}function uint64be(R){const pe=Math.floor(R/ge);const Ae=R%ge;const he=new Uint8Array(8);writeUInt32BE(he,pe,0);writeUInt32BE(he,Ae,4);return he}pe.uint64be=uint64be;function uint32be(R){const pe=new Uint8Array(4);writeUInt32BE(pe,R);return pe}pe.uint32be=uint32be;function lengthAndInput(R){return concat(uint32be(R.length),R)}pe.lengthAndInput=lengthAndInput;async function concatKdf(R,pe,Ae){const ge=Math.ceil((pe>>3)/32);const ye=new Uint8Array(ge*32);for(let pe=0;pe>3)}pe.concatKdf=concatKdf},74466:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(36454);const ge=Ae(83738);function bitLength(R){switch(R){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},50681:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);const ge=Ae(68408);const checkIvLength=(R,pe)=>{if(pe.length<<3!==(0,ge.bitLength)(R)){throw new he.JWEInvalid("Invalid Initialization Vector length")}};pe["default"]=checkIvLength},57113:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(3401);const ge=Ae(73923);const symmetricTypeCheck=(R,pe)=>{if(pe instanceof Uint8Array)return;if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types,"Uint8Array"))}if(pe.type!=="secret"){throw new TypeError(`${ge.types.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}};const asymmetricTypeCheck=(R,pe,Ae)=>{if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types))}if(pe.type==="secret"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`)}if(Ae==="sign"&&pe.type==="public"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`)}if(Ae==="decrypt"&&pe.type==="public"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`)}if(pe.algorithm&&Ae==="verify"&&pe.type==="private"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`)}if(pe.algorithm&&Ae==="encrypt"&&pe.type==="private"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)}};const checkKeyType=(R,pe,Ae)=>{const he=R.startsWith("HS")||R==="dir"||R.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(R);if(he){symmetricTypeCheck(R,pe)}else{asymmetricTypeCheck(R,pe,Ae)}};pe["default"]=checkKeyType},84662:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);function checkP2s(R){if(!(R instanceof Uint8Array)||R.length<8){throw new he.JWEInvalid("PBES2 Salt Input must be 8 or more octets")}}pe["default"]=checkP2s},87347:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.checkEncCryptoKey=pe.checkSigCryptoKey=void 0;function unusable(R,pe="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${pe} must be ${R}`)}function isAlgorithm(R,pe){return R.name===pe}function getHashLength(R){return parseInt(R.name.slice(4),10)}function getNamedCurve(R){switch(R){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function checkUsage(R,pe){if(pe.length&&!pe.some((pe=>R.usages.includes(pe)))){let R="CryptoKey does not support this operation, its usages must include ";if(pe.length>2){const Ae=pe.pop();R+=`one of ${pe.join(", ")}, or ${Ae}.`}else if(pe.length===2){R+=`one of ${pe[0]} or ${pe[1]}.`}else{R+=`${pe[0]}.`}throw new TypeError(R)}}function checkSigCryptoKey(R,pe,...Ae){switch(pe){case"HS256":case"HS384":case"HS512":{if(!isAlgorithm(R.algorithm,"HMAC"))throw unusable("HMAC");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!isAlgorithm(R.algorithm,"RSASSA-PKCS1-v1_5"))throw unusable("RSASSA-PKCS1-v1_5");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!isAlgorithm(R.algorithm,"RSA-PSS"))throw unusable("RSA-PSS");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"EdDSA":{if(R.algorithm.name!=="Ed25519"&&R.algorithm.name!=="Ed448"){throw unusable("Ed25519 or Ed448")}break}case"ES256":case"ES384":case"ES512":{if(!isAlgorithm(R.algorithm,"ECDSA"))throw unusable("ECDSA");const Ae=getNamedCurve(pe);const he=R.algorithm.namedCurve;if(he!==Ae)throw unusable(Ae,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkSigCryptoKey=checkSigCryptoKey;function checkEncCryptoKey(R,pe,...Ae){switch(pe){case"A128GCM":case"A192GCM":case"A256GCM":{if(!isAlgorithm(R.algorithm,"AES-GCM"))throw unusable("AES-GCM");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!isAlgorithm(R.algorithm,"AES-KW"))throw unusable("AES-KW");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"ECDH":{switch(R.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw unusable("ECDH, X25519, or X448")}break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!isAlgorithm(R.algorithm,"PBKDF2"))throw unusable("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!isAlgorithm(R.algorithm,"RSA-OAEP"))throw unusable("RSA-OAEP");const Ae=parseInt(pe.slice(9),10)||1;const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkEncCryptoKey=checkEncCryptoKey},48448:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(1980);const ge=Ae(77261);const ye=Ae(15845);const me=Ae(10079);const ve=Ae(60589);const be=Ae(36454);const Ee=Ae(74466);const we=Ae(59111);const Ce=Ae(57113);const _e=Ae(61394);const Ie=Ae(37175);async function decryptKeyManagement(R,pe,Ae,Se,Be){(0,Ce.default)(R,pe,"decrypt");switch(R){case"dir":{if(Ae!==undefined)throw new be.JWEInvalid("Encountered unexpected JWE Encrypted Key");return pe}case"ECDH-ES":if(Ae!==undefined)throw new be.JWEInvalid("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!(0,_e.default)(Se.epk))throw new be.JWEInvalid(`JOSE Header "epk" (Ephemeral Public Key) missing or invalid`);if(!ge.ecdhAllowed(pe))throw new be.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime");const ye=await(0,we.importJWK)(Se.epk,R);let me;let Ce;if(Se.apu!==undefined){if(typeof Se.apu!=="string")throw new be.JWEInvalid(`JOSE Header "apu" (Agreement PartyUInfo) invalid`);try{me=(0,ve.decode)(Se.apu)}catch{throw new be.JWEInvalid("Failed to base64url decode the apu")}}if(Se.apv!==undefined){if(typeof Se.apv!=="string")throw new be.JWEInvalid(`JOSE Header "apv" (Agreement PartyVInfo) invalid`);try{Ce=(0,ve.decode)(Se.apv)}catch{throw new be.JWEInvalid("Failed to base64url decode the apv")}}const Ie=await ge.deriveKey(ye,pe,R==="ECDH-ES"?Se.enc:R,R==="ECDH-ES"?(0,Ee.bitLength)(Se.enc):parseInt(R.slice(-5,-2),10),me,Ce);if(R==="ECDH-ES")return Ie;if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R.slice(-6),Ie,Ae)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,me.decrypt)(R,pe,Ae)}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");if(typeof Se.p2c!=="number")throw new be.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) missing or invalid`);const he=(Be===null||Be===void 0?void 0:Be.maxPBES2Count)||1e4;if(Se.p2c>he)throw new be.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds`);if(typeof Se.p2s!=="string")throw new be.JWEInvalid(`JOSE Header "p2s" (PBES2 Salt) missing or invalid`);let ge;try{ge=(0,ve.decode)(Se.p2s)}catch{throw new be.JWEInvalid("Failed to base64url decode the p2s")}return(0,ye.decrypt)(R,pe,Ae,Se.p2c,ge)}case"A128KW":case"A192KW":case"A256KW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R,pe,Ae)}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");if(typeof Se.iv!=="string")throw new be.JWEInvalid(`JOSE Header "iv" (Initialization Vector) missing or invalid`);if(typeof Se.tag!=="string")throw new be.JWEInvalid(`JOSE Header "tag" (Authentication Tag) missing or invalid`);let he;try{he=(0,ve.decode)(Se.iv)}catch{throw new be.JWEInvalid("Failed to base64url decode the iv")}let ge;try{ge=(0,ve.decode)(Se.tag)}catch{throw new be.JWEInvalid("Failed to base64url decode the tag")}return(0,Ie.unwrap)(R,pe,Ae,he,ge)}default:{throw new be.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}}pe["default"]=decryptKeyManagement},19582:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(1980);const ge=Ae(77261);const ye=Ae(15845);const me=Ae(10079);const ve=Ae(60589);const be=Ae(74466);const Ee=Ae(36454);const we=Ae(67168);const Ce=Ae(57113);const _e=Ae(37175);async function encryptKeyManagement(R,pe,Ae,Ie,Se={}){let Be;let ke;let Oe;(0,Ce.default)(R,Ae,"encrypt");switch(R){case"dir":{Oe=Ae;break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ge.ecdhAllowed(Ae)){throw new Ee.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime")}const{apu:ye,apv:me}=Se;let{epk:Ce}=Se;Ce||(Ce=(await ge.generateEpk(Ae)).privateKey);const{x:_e,y:Re,crv:Qe,kty:xe}=await(0,we.exportJWK)(Ce);const Pe=await ge.deriveKey(Ae,Ce,R==="ECDH-ES"?pe:R,R==="ECDH-ES"?(0,be.bitLength)(pe):parseInt(R.slice(-5,-2),10),ye,me);ke={epk:{x:_e,crv:Qe,kty:xe}};if(xe==="EC")ke.epk.y=Re;if(ye)ke.apu=(0,ve.encode)(ye);if(me)ke.apv=(0,ve.encode)(me);if(R==="ECDH-ES"){Oe=Pe;break}Oe=Ie||(0,be.default)(pe);const Te=R.slice(-6);Be=await(0,he.wrap)(Te,Pe,Oe);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{Oe=Ie||(0,be.default)(pe);Be=await(0,me.encrypt)(R,Ae,Oe);break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{Oe=Ie||(0,be.default)(pe);const{p2c:he,p2s:ge}=Se;({encryptedKey:Be,...ke}=await(0,ye.encrypt)(R,Ae,Oe,he,ge));break}case"A128KW":case"A192KW":case"A256KW":{Oe=Ie||(0,be.default)(pe);Be=await(0,he.wrap)(R,Ae,Oe);break}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{Oe=Ie||(0,be.default)(pe);const{iv:he}=Se;({encryptedKey:Be,...ke}=await(0,_e.wrap)(R,Ae,Oe,he));break}default:{throw new Ee.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}return{cek:Oe,encryptedKey:Be,parameters:ke}}pe["default"]=encryptKeyManagement},36660:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=R=>Math.floor(R.getTime()/1e3)},3401:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.withAlg=void 0;function message(R,pe,...Ae){if(Ae.length>2){const pe=Ae.pop();R+=`one of type ${Ae.join(", ")}, or ${pe}.`}else if(Ae.length===2){R+=`one of type ${Ae[0]} or ${Ae[1]}.`}else{R+=`of type ${Ae[0]}.`}if(pe==null){R+=` Received ${pe}`}else if(typeof pe==="function"&&pe.name){R+=` Received function ${pe.name}`}else if(typeof pe==="object"&&pe!=null){if(pe.constructor&&pe.constructor.name){R+=` Received an instance of ${pe.constructor.name}`}}return R}pe["default"]=(R,...pe)=>message("Key must be ",R,...pe);function withAlg(R,pe,...Ae){return message(`Key for the ${R} algorithm must be `,pe,...Ae)}pe.withAlg=withAlg},11218:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const isDisjoint=(...R)=>{const pe=R.filter(Boolean);if(pe.length===0||pe.length===1){return true}let Ae;for(const R of pe){const pe=Object.keys(R);if(!Ae||Ae.size===0){Ae=new Set(pe);continue}for(const R of pe){if(Ae.has(R)){return false}Ae.add(R)}}return true};pe["default"]=isDisjoint},61394:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function isObjectLike(R){return typeof R==="object"&&R!==null}function isObject(R){if(!isObjectLike(R)||Object.prototype.toString.call(R)!=="[object Object]"){return false}if(Object.getPrototypeOf(R)===null){return true}let pe=R;while(Object.getPrototypeOf(pe)!==null){pe=Object.getPrototypeOf(pe)}return Object.getPrototypeOf(R)===pe}pe["default"]=isObject},68408:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(36454);const ge=Ae(83738);function bitLength(R){switch(R){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},50868:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);const ge=Ae(55925);const ye=Ae(36660);const me=Ae(58739);const ve=Ae(61394);const normalizeTyp=R=>R.toLowerCase().replace(/^application\//,"");const checkAudiencePresence=(R,pe)=>{if(typeof R==="string"){return pe.includes(R)}if(Array.isArray(R)){return pe.some(Set.prototype.has.bind(new Set(R)))}return false};pe["default"]=(R,pe,Ae={})=>{const{typ:be}=Ae;if(be&&(typeof R.typ!=="string"||normalizeTyp(R.typ)!==normalizeTyp(be))){throw new he.JWTClaimValidationFailed('unexpected "typ" JWT header value',"typ","check_failed")}let Ee;try{Ee=JSON.parse(ge.decoder.decode(pe))}catch{}if(!(0,ve.default)(Ee)){throw new he.JWTInvalid("JWT Claims Set must be a top-level JSON object")}const{requiredClaims:we=[],issuer:Ce,subject:_e,audience:Ie,maxTokenAge:Se}=Ae;if(Se!==undefined)we.push("iat");if(Ie!==undefined)we.push("aud");if(_e!==undefined)we.push("sub");if(Ce!==undefined)we.push("iss");for(const R of new Set(we.reverse())){if(!(R in Ee)){throw new he.JWTClaimValidationFailed(`missing required "${R}" claim`,R,"missing")}}if(Ce&&!(Array.isArray(Ce)?Ce:[Ce]).includes(Ee.iss)){throw new he.JWTClaimValidationFailed('unexpected "iss" claim value',"iss","check_failed")}if(_e&&Ee.sub!==_e){throw new he.JWTClaimValidationFailed('unexpected "sub" claim value',"sub","check_failed")}if(Ie&&!checkAudiencePresence(Ee.aud,typeof Ie==="string"?[Ie]:Ie)){throw new he.JWTClaimValidationFailed('unexpected "aud" claim value',"aud","check_failed")}let Be;switch(typeof Ae.clockTolerance){case"string":Be=(0,me.default)(Ae.clockTolerance);break;case"number":Be=Ae.clockTolerance;break;case"undefined":Be=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:ke}=Ae;const Oe=(0,ye.default)(ke||new Date);if((Ee.iat!==undefined||Se)&&typeof Ee.iat!=="number"){throw new he.JWTClaimValidationFailed('"iat" claim must be a number',"iat","invalid")}if(Ee.nbf!==undefined){if(typeof Ee.nbf!=="number"){throw new he.JWTClaimValidationFailed('"nbf" claim must be a number',"nbf","invalid")}if(Ee.nbf>Oe+Be){throw new he.JWTClaimValidationFailed('"nbf" claim timestamp check failed',"nbf","check_failed")}}if(Ee.exp!==undefined){if(typeof Ee.exp!=="number"){throw new he.JWTClaimValidationFailed('"exp" claim must be a number',"exp","invalid")}if(Ee.exp<=Oe-Be){throw new he.JWTExpired('"exp" claim timestamp check failed',"exp","check_failed")}}if(Se){const R=Oe-Ee.iat;const pe=typeof Se==="number"?Se:(0,me.default)(Se);if(R-Be>pe){throw new he.JWTExpired('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed")}if(R<0-Be){throw new he.JWTClaimValidationFailed('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}}return Ee}},58739:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=60;const he=Ae*60;const ge=he*24;const ye=ge*7;const me=ge*365.25;const ve=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;pe["default"]=R=>{const pe=ve.exec(R);if(!pe){throw new TypeError("Invalid time period format")}const be=parseFloat(pe[1]);const Ee=pe[2].toLowerCase();switch(Ee){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(be);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(be*Ae);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(be*he);case"day":case"days":case"d":return Math.round(be*ge);case"week":case"weeks":case"w":return Math.round(be*ye);default:return Math.round(be*me)}}},99125:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const validateAlgorithms=(R,pe)=>{if(pe!==undefined&&(!Array.isArray(pe)||pe.some((R=>typeof R!=="string")))){throw new TypeError(`"${R}" option must be an array of strings`)}if(!pe){return undefined}return new Set(pe)};pe["default"]=validateAlgorithms},52874:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);function validateCrit(R,pe,Ae,ge,ye){if(ye.crit!==undefined&&ge.crit===undefined){throw new R('"crit" (Critical) Header Parameter MUST be integrity protected')}if(!ge||ge.crit===undefined){return new Set}if(!Array.isArray(ge.crit)||ge.crit.length===0||ge.crit.some((R=>typeof R!=="string"||R.length===0))){throw new R('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present')}let me;if(Ae!==undefined){me=new Map([...Object.entries(Ae),...pe.entries()])}else{me=pe}for(const pe of ge.crit){if(!me.has(pe)){throw new he.JOSENotSupported(`Extension Header Parameter "${pe}" is not recognized`)}if(ye[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" is missing`)}else if(me.get(pe)&&ge[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" MUST be integrity protected`)}}return new Set(ge.crit)}pe["default"]=validateCrit},1980:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(14300);const ge=Ae(6113);const ye=Ae(36454);const me=Ae(55925);const ve=Ae(8405);const be=Ae(87347);const Ee=Ae(38547);const we=Ae(3401);const Ce=Ae(33447);const _e=Ae(73923);function checkKeySize(R,pe){if(R.symmetricKeySize<<3!==parseInt(pe.slice(1,4),10)){throw new TypeError(`Invalid key size for alg: ${pe}`)}}function ensureKeyObject(R,pe,Ae){if((0,Ee.default)(R)){return R}if(R instanceof Uint8Array){return(0,ge.createSecretKey)(R)}if((0,ve.isCryptoKey)(R)){(0,be.checkEncCryptoKey)(R,pe,Ae);return ge.KeyObject.from(R)}throw new TypeError((0,we.default)(R,..._e.types,"Uint8Array"))}const wrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,Ce.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"wrapKey");checkKeySize(Ee,R);const we=(0,ge.createCipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(we.update(Ae),we.final())};pe.wrap=wrap;const unwrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,Ce.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"unwrapKey");checkKeySize(Ee,R);const we=(0,ge.createDecipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(we.update(Ae),we.final())};pe.unwrap=unwrap},20415:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromX509=pe.fromSPKI=pe.fromPKCS8=pe.toPKCS8=pe.toSPKI=void 0;const he=Ae(6113);const ge=Ae(14300);const ye=Ae(8405);const me=Ae(38547);const ve=Ae(3401);const be=Ae(73923);const genericExport=(R,pe,Ae)=>{let ge;if((0,ye.isCryptoKey)(Ae)){if(!Ae.extractable){throw new TypeError("CryptoKey is not extractable")}ge=he.KeyObject.from(Ae)}else if((0,me.default)(Ae)){ge=Ae}else{throw new TypeError((0,ve.default)(Ae,...be.types))}if(ge.type!==R){throw new TypeError(`key is not a ${R} key`)}return ge.export({format:"pem",type:pe})};const toSPKI=R=>genericExport("public","spki",R);pe.toSPKI=toSPKI;const toPKCS8=R=>genericExport("private","pkcs8",R);pe.toPKCS8=toPKCS8;const fromPKCS8=R=>(0,he.createPrivateKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,""),"base64"),type:"pkcs8",format:"der"});pe.fromPKCS8=fromPKCS8;const fromSPKI=R=>(0,he.createPublicKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,""),"base64"),type:"spki",format:"der"});pe.fromSPKI=fromSPKI;const fromX509=R=>(0,he.createPublicKey)({key:R,type:"spki",format:"pem"});pe.fromX509=fromX509},85928:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=2;const he=48;class Asn1SequenceDecoder{constructor(R){if(R[0]!==he){throw new TypeError}this.buffer=R;this.offset=1;const pe=this.decodeLength();if(pe!==R.length-this.offset){throw new TypeError}}decodeLength(){let R=this.buffer[this.offset++];if(R&128){const pe=R&~128;R=0;for(let Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(14300);const ge=Ae(36454);const ye=2;const me=3;const ve=4;const be=48;const Ee=he.Buffer.from([0]);const we=he.Buffer.from([ye]);const Ce=he.Buffer.from([me]);const _e=he.Buffer.from([be]);const Ie=he.Buffer.from([ve]);const encodeLength=R=>{if(R<128)return he.Buffer.from([R]);const pe=he.Buffer.alloc(5);pe.writeUInt32BE(R,1);let Ae=1;while(pe[Ae]===0)Ae++;pe[Ae-1]=128|5-Ae;return pe.slice(Ae-1)};const Se=new Map([["P-256",he.Buffer.from("06 08 2A 86 48 CE 3D 03 01 07".replace(/ /g,""),"hex")],["secp256k1",he.Buffer.from("06 05 2B 81 04 00 0A".replace(/ /g,""),"hex")],["P-384",he.Buffer.from("06 05 2B 81 04 00 22".replace(/ /g,""),"hex")],["P-521",he.Buffer.from("06 05 2B 81 04 00 23".replace(/ /g,""),"hex")],["ecPublicKey",he.Buffer.from("06 07 2A 86 48 CE 3D 02 01".replace(/ /g,""),"hex")],["X25519",he.Buffer.from("06 03 2B 65 6E".replace(/ /g,""),"hex")],["X448",he.Buffer.from("06 03 2B 65 6F".replace(/ /g,""),"hex")],["Ed25519",he.Buffer.from("06 03 2B 65 70".replace(/ /g,""),"hex")],["Ed448",he.Buffer.from("06 03 2B 65 71".replace(/ /g,""),"hex")]]);class DumbAsn1Encoder{constructor(){this.length=0;this.elements=[]}oidFor(R){const pe=Se.get(R);if(!pe){throw new ge.JOSENotSupported("Invalid or unsupported OID")}this.elements.push(pe);this.length+=pe.length}zero(){this.elements.push(we,he.Buffer.from([1]),Ee);this.length+=3}one(){this.elements.push(we,he.Buffer.from([1]),he.Buffer.from([1]));this.length+=3}unsignedInteger(R){if(R[0]&128){const pe=encodeLength(R.length+1);this.elements.push(we,pe,Ee,R);this.length+=2+pe.length+R.length}else{let pe=0;while(R[pe]===0&&(R[pe+1]&128)===0)pe++;const Ae=encodeLength(R.length-pe);this.elements.push(we,encodeLength(R.length-pe),R.slice(pe));this.length+=1+Ae.length+R.length-pe}}octStr(R){const pe=encodeLength(R.length);this.elements.push(Ie,encodeLength(R.length),R);this.length+=1+pe.length+R.length}bitStr(R){const pe=encodeLength(R.length+1);this.elements.push(Ce,encodeLength(R.length+1),Ee,R);this.length+=1+pe.length+R.length+1}add(R){this.elements.push(R);this.length+=R.length}end(R=_e){const pe=encodeLength(this.length);return he.Buffer.concat([R,pe,...this.elements],1+pe.length+this.length)}}pe["default"]=DumbAsn1Encoder},60589:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=pe.encodeBase64=pe.decodeBase64=void 0;const he=Ae(14300);const ge=Ae(55925);let ye;function normalize(R){let pe=R;if(pe instanceof Uint8Array){pe=ge.decoder.decode(pe)}return pe}if(he.Buffer.isEncoding("base64url")){pe.encode=ye=R=>he.Buffer.from(R).toString("base64url")}else{pe.encode=ye=R=>he.Buffer.from(R).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}const decodeBase64=R=>he.Buffer.from(R,"base64");pe.decodeBase64=decodeBase64;const encodeBase64=R=>he.Buffer.from(R).toString("base64");pe.encodeBase64=encodeBase64;const decode=R=>he.Buffer.from(normalize(R),"base64");pe.decode=decode},93726:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(55925);function cbcTag(R,pe,Ae,ye,me,ve){const be=(0,ge.concat)(R,pe,Ae,(0,ge.uint64be)(R.length<<3));const Ee=(0,he.createHmac)(`sha${ye}`,me);Ee.update(be);return Ee.digest().slice(0,ve>>3)}pe["default"]=cbcTag},45089:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);const ge=Ae(38547);const checkCekLength=(R,pe)=>{let Ae;switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new he.JOSENotSupported(`Content Encryption Algorithm ${R} is not supported either by JOSE or your javascript runtime`)}if(pe instanceof Uint8Array){const R=pe.byteLength<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}if((0,ge.default)(pe)&&pe.type==="secret"){const R=pe.symmetricKeySize<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}throw new TypeError("Invalid Content Encryption Key type")};pe["default"]=checkCekLength},87980:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.setModulusLength=pe.weakMap=void 0;pe.weakMap=new WeakMap;const getLength=(R,pe)=>{let Ae=R.readUInt8(1);if((Ae&128)===0){if(pe===0){return Ae}return getLength(R.subarray(2+Ae),pe-1)}const he=Ae&127;Ae=0;for(let pe=0;pe{const Ae=R.readUInt8(1);if((Ae&128)===0){return getLength(R.subarray(2),pe)}const he=Ae&127;return getLength(R.subarray(2+he),pe)};const getModulusLength=R=>{var Ae,he;if(pe.weakMap.has(R)){return pe.weakMap.get(R)}const ge=(he=(Ae=R.asymmetricKeyDetails)===null||Ae===void 0?void 0:Ae.modulusLength)!==null&&he!==void 0?he:getLengthOfSeqIndex(R.export({format:"der",type:"pkcs1"}),R.type==="private"?1:0)-1<<3;pe.weakMap.set(R,ge);return ge};const setModulusLength=(R,Ae)=>{pe.weakMap.set(R,Ae)};pe.setModulusLength=setModulusLength;pe["default"]=(R,pe)=>{if(getModulusLength(R)<2048){throw new TypeError(`${pe} requires key modulusLength to be 2048 bits or larger`)}}},33447:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);let ge;pe["default"]=R=>{ge||(ge=new Set((0,he.getCiphers)()));return ge.has(R)}},78190:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(50681);const ye=Ae(45089);const me=Ae(55925);const ve=Ae(36454);const be=Ae(56768);const Ee=Ae(93726);const we=Ae(8405);const Ce=Ae(87347);const _e=Ae(38547);const Ie=Ae(3401);const Se=Ae(33447);const Be=Ae(73923);function cbcDecrypt(R,pe,Ae,ge,ye,we){const Ce=parseInt(R.slice(1,4),10);if((0,_e.default)(pe)){pe=pe.export()}const Ie=pe.subarray(Ce>>3);const Be=pe.subarray(0,Ce>>3);const ke=parseInt(R.slice(-3),10);const Oe=`aes-${Ce}-cbc`;if(!(0,Se.default)(Oe)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Re=(0,Ee.default)(we,ge,Ae,ke,Be,Ce);let Qe;try{Qe=(0,be.default)(ye,Re)}catch{}if(!Qe){throw new ve.JWEDecryptionFailed}let xe;try{const R=(0,he.createDecipheriv)(Oe,Ie,ge);xe=(0,me.concat)(R.update(Ae),R.final())}catch{}if(!xe){throw new ve.JWEDecryptionFailed}return xe}function gcmDecrypt(R,pe,Ae,ge,ye,me){const be=parseInt(R.slice(1,4),10);const Ee=`aes-${be}-gcm`;if(!(0,Se.default)(Ee)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}try{const R=(0,he.createDecipheriv)(Ee,pe,ge,{authTagLength:16});R.setAuthTag(ye);if(me.byteLength){R.setAAD(me,{plaintextLength:Ae.length})}const ve=R.update(Ae);R.final();return ve}catch{throw new ve.JWEDecryptionFailed}}const decrypt=(R,pe,Ae,me,be,Ee)=>{let Se;if((0,we.isCryptoKey)(pe)){(0,Ce.checkEncCryptoKey)(pe,R,"decrypt");Se=he.KeyObject.from(pe)}else if(pe instanceof Uint8Array||(0,_e.default)(pe)){Se=pe}else{throw new TypeError((0,Ie.default)(pe,...Be.types,"Uint8Array"))}(0,ye.default)(R,Se);(0,ge.default)(R,me);switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcDecrypt(R,Se,Ae,me,be,Ee);case"A128GCM":case"A192GCM":case"A256GCM":return gcmDecrypt(R,Se,Ae,me,be,Ee);default:throw new ve.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=decrypt},46639:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const digest=(R,pe)=>(0,he.createHash)(R).update(pe).digest();pe["default"]=digest},28727:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);function dsaDigest(R){switch(R){case"PS256":case"RS256":case"ES256":case"ES256K":return"sha256";case"PS384":case"RS384":case"ES384":return"sha384";case"PS512":case"RS512":case"ES512":return"sha512";case"EdDSA":return undefined;default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=dsaDigest},77261:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ecdhAllowed=pe.generateEpk=pe.deriveKey=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=Ae(76880);const me=Ae(55925);const ve=Ae(36454);const be=Ae(8405);const Ee=Ae(87347);const we=Ae(38547);const Ce=Ae(3401);const _e=Ae(73923);const Ie=(0,ge.promisify)(he.generateKeyPair);async function deriveKey(R,pe,Ae,ge,ye=new Uint8Array(0),ve=new Uint8Array(0)){let Ie;if((0,be.isCryptoKey)(R)){(0,Ee.checkEncCryptoKey)(R,"ECDH");Ie=he.KeyObject.from(R)}else if((0,we.default)(R)){Ie=R}else{throw new TypeError((0,Ce.default)(R,..._e.types))}let Se;if((0,be.isCryptoKey)(pe)){(0,Ee.checkEncCryptoKey)(pe,"ECDH","deriveBits");Se=he.KeyObject.from(pe)}else if((0,we.default)(pe)){Se=pe}else{throw new TypeError((0,Ce.default)(pe,..._e.types))}const Be=(0,me.concat)((0,me.lengthAndInput)(me.encoder.encode(Ae)),(0,me.lengthAndInput)(ye),(0,me.lengthAndInput)(ve),(0,me.uint32be)(ge));const ke=(0,he.diffieHellman)({privateKey:Se,publicKey:Ie});return(0,me.concatKdf)(ke,ge,Be)}pe.deriveKey=deriveKey;async function generateEpk(R){let pe;if((0,be.isCryptoKey)(R)){pe=he.KeyObject.from(R)}else if((0,we.default)(R)){pe=R}else{throw new TypeError((0,Ce.default)(R,..._e.types))}switch(pe.asymmetricKeyType){case"x25519":return Ie("x25519");case"x448":{return Ie("x448")}case"ec":{const R=(0,ye.default)(pe);return Ie("ec",{namedCurve:R})}default:throw new ve.JOSENotSupported("Invalid or unsupported EPK")}}pe.generateEpk=generateEpk;const ecdhAllowed=R=>["P-256","P-384","P-521","X25519","X448"].includes((0,ye.default)(R));pe.ecdhAllowed=ecdhAllowed},96115:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(50681);const ye=Ae(45089);const me=Ae(55925);const ve=Ae(93726);const be=Ae(8405);const Ee=Ae(87347);const we=Ae(38547);const Ce=Ae(3401);const _e=Ae(36454);const Ie=Ae(33447);const Se=Ae(73923);function cbcEncrypt(R,pe,Ae,ge,ye){const be=parseInt(R.slice(1,4),10);if((0,we.default)(Ae)){Ae=Ae.export()}const Ee=Ae.subarray(be>>3);const Ce=Ae.subarray(0,be>>3);const Se=`aes-${be}-cbc`;if(!(0,Ie.default)(Se)){throw new _e.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Be=(0,he.createCipheriv)(Se,Ee,ge);const ke=(0,me.concat)(Be.update(pe),Be.final());const Oe=parseInt(R.slice(-3),10);const Re=(0,ve.default)(ye,ge,ke,Oe,Ce,be);return{ciphertext:ke,tag:Re}}function gcmEncrypt(R,pe,Ae,ge,ye){const me=parseInt(R.slice(1,4),10);const ve=`aes-${me}-gcm`;if(!(0,Ie.default)(ve)){throw new _e.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const be=(0,he.createCipheriv)(ve,Ae,ge,{authTagLength:16});if(ye.byteLength){be.setAAD(ye,{plaintextLength:pe.length})}const Ee=be.update(pe);be.final();const we=be.getAuthTag();return{ciphertext:Ee,tag:we}}const encrypt=(R,pe,Ae,me,ve)=>{let Ie;if((0,be.isCryptoKey)(Ae)){(0,Ee.checkEncCryptoKey)(Ae,R,"encrypt");Ie=he.KeyObject.from(Ae)}else if(Ae instanceof Uint8Array||(0,we.default)(Ae)){Ie=Ae}else{throw new TypeError((0,Ce.default)(Ae,...Se.types,"Uint8Array"))}(0,ye.default)(R,Ie);(0,ge.default)(R,me);switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcEncrypt(R,pe,Ie,me,ve);case"A128GCM":case"A192GCM":case"A256GCM":return gcmEncrypt(R,pe,Ie,me,ve);default:throw new _e.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=encrypt},90898:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(13685);const ge=Ae(95687);const ye=Ae(82361);const me=Ae(36454);const ve=Ae(55925);const fetchJwks=async(R,pe,Ae)=>{let be;switch(R.protocol){case"https:":be=ge.get;break;case"http:":be=he.get;break;default:throw new TypeError("Unsupported URL protocol.")}const{agent:Ee,headers:we}=Ae;const Ce=be(R.href,{agent:Ee,timeout:pe,headers:we});const[_e]=await Promise.race([(0,ye.once)(Ce,"response"),(0,ye.once)(Ce,"timeout")]);if(!_e){Ce.destroy();throw new me.JWKSTimeout}if(_e.statusCode!==200){throw new me.JOSEError("Expected 200 OK from the JSON Web Key Set HTTP response")}const Ie=[];for await(const R of _e){Ie.push(R)}try{return JSON.parse(ve.decoder.decode((0,ve.concat)(...Ie)))}catch{throw new me.JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON")}};pe["default"]=fetchJwks},99390:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwkImport=pe.jwkExport=pe.rsaPssParams=pe.oneShotCallback=void 0;const[Ae,he]=process.versions.node.split(".").map((R=>parseInt(R,10)));pe.oneShotCallback=Ae>=16||Ae===15&&he>=13;pe.rsaPssParams=!("electron"in process.versions)&&(Ae>=17||Ae===16&&he>=9);pe.jwkExport=Ae>=16||Ae===15&&he>=9;pe.jwkImport=Ae>=16||Ae===15&&he>=12},87757:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=pe.generateSecret=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=Ae(83738);const me=Ae(87980);const ve=Ae(36454);const be=(0,ge.promisify)(he.generateKeyPair);async function generateSecret(R,pe){let Ae;switch(R){case"HS256":case"HS384":case"HS512":case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128KW":case"A192KW":case"A256KW":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new ve.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return(0,he.createSecretKey)((0,ye.default)(new Uint8Array(Ae>>3)))}pe.generateSecret=generateSecret;async function generateKeyPair(R,pe){var Ae,he;switch(R){case"RS256":case"RS384":case"RS512":case"PS256":case"PS384":case"PS512":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":case"RSA1_5":{const R=(Ae=pe===null||pe===void 0?void 0:pe.modulusLength)!==null&&Ae!==void 0?Ae:2048;if(typeof R!=="number"||R<2048){throw new ve.JOSENotSupported("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used")}const he=await be("rsa",{modulusLength:R,publicExponent:65537});(0,me.setModulusLength)(he.privateKey,R);(0,me.setModulusLength)(he.publicKey,R);return he}case"ES256":return be("ec",{namedCurve:"P-256"});case"ES256K":return be("ec",{namedCurve:"secp256k1"});case"ES384":return be("ec",{namedCurve:"P-384"});case"ES512":return be("ec",{namedCurve:"P-521"});case"EdDSA":{switch(pe===null||pe===void 0?void 0:pe.crv){case undefined:case"Ed25519":return be("ed25519");case"Ed448":return be("ed448");default:throw new ve.JOSENotSupported("Invalid or unsupported crv option provided, supported values are Ed25519 and Ed448")}}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":const R=(he=pe===null||pe===void 0?void 0:pe.crv)!==null&&he!==void 0?he:"P-256";switch(R){case undefined:case"P-256":case"P-384":case"P-521":return be("ec",{namedCurve:R});case"X25519":return be("x25519");case"X448":return be("x448");default:throw new ve.JOSENotSupported("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}default:throw new ve.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}}pe.generateKeyPair=generateKeyPair},76880:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.setCurve=pe.weakMap=void 0;const he=Ae(14300);const ge=Ae(6113);const ye=Ae(36454);const me=Ae(8405);const ve=Ae(38547);const be=Ae(3401);const Ee=Ae(73923);const we=he.Buffer.from([42,134,72,206,61,3,1,7]);const Ce=he.Buffer.from([43,129,4,0,34]);const _e=he.Buffer.from([43,129,4,0,35]);const Ie=he.Buffer.from([43,129,4,0,10]);pe.weakMap=new WeakMap;const namedCurveToJOSE=R=>{switch(R){case"prime256v1":return"P-256";case"secp384r1":return"P-384";case"secp521r1":return"P-521";case"secp256k1":return"secp256k1";default:throw new ye.JOSENotSupported("Unsupported key curve for this operation")}};const getNamedCurve=(R,Ae)=>{var he;let Se;if((0,me.isCryptoKey)(R)){Se=ge.KeyObject.from(R)}else if((0,ve.default)(R)){Se=R}else{throw new TypeError((0,be.default)(R,...Ee.types))}if(Se.type==="secret"){throw new TypeError('only "private" or "public" type keys can be used for this operation')}switch(Se.asymmetricKeyType){case"ed25519":case"ed448":return`Ed${Se.asymmetricKeyType.slice(2)}`;case"x25519":case"x448":return`X${Se.asymmetricKeyType.slice(1)}`;case"ec":{if(pe.weakMap.has(Se)){return pe.weakMap.get(Se)}let R=(he=Se.asymmetricKeyDetails)===null||he===void 0?void 0:he.namedCurve;if(!R&&Se.type==="private"){R=getNamedCurve((0,ge.createPublicKey)(Se),true)}else if(!R){const pe=Se.export({format:"der",type:"spki"});const Ae=pe[1]<128?14:15;const he=pe[Ae];const ge=pe.slice(Ae+1,Ae+1+he);if(ge.equals(we)){R="prime256v1"}else if(ge.equals(Ce)){R="secp384r1"}else if(ge.equals(_e)){R="secp521r1"}else if(ge.equals(Ie)){R="secp256k1"}else{throw new ye.JOSENotSupported("Unsupported key curve for this operation")}}if(Ae)return R;const me=namedCurveToJOSE(R);pe.weakMap.set(Se,me);return me}default:throw new TypeError("Invalid asymmetric key type for this operation")}};function setCurve(R,Ae){pe.weakMap.set(R,Ae)}pe.setCurve=setCurve;pe["default"]=getNamedCurve},94398:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(8405);const ye=Ae(87347);const me=Ae(3401);const ve=Ae(73923);function getSignVerifyKey(R,pe,Ae){if(pe instanceof Uint8Array){if(!R.startsWith("HS")){throw new TypeError((0,me.default)(pe,...ve.types))}return(0,he.createSecretKey)(pe)}if(pe instanceof he.KeyObject){return pe}if((0,ge.isCryptoKey)(pe)){(0,ye.checkSigCryptoKey)(pe,R,Ae);return he.KeyObject.from(pe)}throw new TypeError((0,me.default)(pe,...ve.types,"Uint8Array"))}pe["default"]=getSignVerifyKey},86559:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(36454);function hmacDigest(R){switch(R){case"HS256":return"sha256";case"HS384":return"sha384";case"HS512":return"sha512";default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=hmacDigest},73923:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.types=void 0;const he=Ae(8405);const ge=Ae(38547);pe["default"]=R=>(0,ge.default)(R)||(0,he.isCryptoKey)(R);const ye=["KeyObject"];pe.types=ye;if(globalThis.CryptoKey||(he.default===null||he.default===void 0?void 0:he.default.CryptoKey)){ye.push("CryptoKey")}},38547:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);pe["default"]=ge.types.isKeyObject?R=>ge.types.isKeyObject(R):R=>R!=null&&R instanceof he.KeyObject},41960:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(14300);const ge=Ae(6113);const ye=Ae(60589);const me=Ae(36454);const ve=Ae(76880);const be=Ae(87980);const Ee=Ae(34512);const we=Ae(99390);const parse=R=>{if(we.jwkImport&&R.kty!=="oct"){return R.d?(0,ge.createPrivateKey)({format:"jwk",key:R}):(0,ge.createPublicKey)({format:"jwk",key:R})}switch(R.kty){case"oct":{return(0,ge.createSecretKey)((0,ye.decode)(R.k))}case"RSA":{const pe=new Ee.default;const Ae=R.d!==undefined;const ye=he.Buffer.from(R.n,"base64");const me=he.Buffer.from(R.e,"base64");if(Ae){pe.zero();pe.unsignedInteger(ye);pe.unsignedInteger(me);pe.unsignedInteger(he.Buffer.from(R.d,"base64"));pe.unsignedInteger(he.Buffer.from(R.p,"base64"));pe.unsignedInteger(he.Buffer.from(R.q,"base64"));pe.unsignedInteger(he.Buffer.from(R.dp,"base64"));pe.unsignedInteger(he.Buffer.from(R.dq,"base64"));pe.unsignedInteger(he.Buffer.from(R.qi,"base64"))}else{pe.unsignedInteger(ye);pe.unsignedInteger(me)}const ve=pe.end();const we={key:ve,format:"der",type:"pkcs1"};const Ce=Ae?(0,ge.createPrivateKey)(we):(0,ge.createPublicKey)(we);(0,be.setModulusLength)(Ce,ye.length<<3);return Ce}case"EC":{const pe=new Ee.default;const Ae=R.d!==undefined;const ye=he.Buffer.concat([he.Buffer.alloc(1,4),he.Buffer.from(R.x,"base64"),he.Buffer.from(R.y,"base64")]);if(Ae){pe.zero();const Ae=new Ee.default;Ae.oidFor("ecPublicKey");Ae.oidFor(R.crv);pe.add(Ae.end());const me=new Ee.default;me.one();me.octStr(he.Buffer.from(R.d,"base64"));const be=new Ee.default;be.bitStr(ye);const we=be.end(he.Buffer.from([161]));me.add(we);const Ce=me.end();const _e=new Ee.default;_e.add(Ce);const Ie=_e.end(he.Buffer.from([4]));pe.add(Ie);const Se=pe.end();const Be=(0,ge.createPrivateKey)({key:Se,format:"der",type:"pkcs8"});(0,ve.setCurve)(Be,R.crv);return Be}const me=new Ee.default;me.oidFor("ecPublicKey");me.oidFor(R.crv);pe.add(me.end());pe.bitStr(ye);const be=pe.end();const we=(0,ge.createPublicKey)({key:be,format:"der",type:"spki"});(0,ve.setCurve)(we,R.crv);return we}case"OKP":{const pe=new Ee.default;const Ae=R.d!==undefined;if(Ae){pe.zero();const Ae=new Ee.default;Ae.oidFor(R.crv);pe.add(Ae.end());const ye=new Ee.default;ye.octStr(he.Buffer.from(R.d,"base64"));const me=ye.end(he.Buffer.from([4]));pe.add(me);const ve=pe.end();return(0,ge.createPrivateKey)({key:ve,format:"der",type:"pkcs8"})}const ye=new Ee.default;ye.oidFor(R.crv);pe.add(ye.end());pe.bitStr(he.Buffer.from(R.x,"base64"));const me=pe.end();return(0,ge.createPublicKey)({key:me,format:"der",type:"spki"})}default:throw new me.JOSENotSupported('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}};pe["default"]=parse},74948:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(60589);const ye=Ae(85928);const me=Ae(36454);const ve=Ae(76880);const be=Ae(8405);const Ee=Ae(38547);const we=Ae(3401);const Ce=Ae(73923);const _e=Ae(99390);const keyToJWK=R=>{let pe;if((0,be.isCryptoKey)(R)){if(!R.extractable){throw new TypeError("CryptoKey is not extractable")}pe=he.KeyObject.from(R)}else if((0,Ee.default)(R)){pe=R}else if(R instanceof Uint8Array){return{kty:"oct",k:(0,ge.encode)(R)}}else{throw new TypeError((0,we.default)(R,...Ce.types,"Uint8Array"))}if(_e.jwkExport){if(pe.type!=="secret"&&!["rsa","ec","ed25519","x25519","ed448","x448"].includes(pe.asymmetricKeyType)){throw new me.JOSENotSupported("Unsupported key asymmetricKeyType")}return pe.export({format:"jwk"})}switch(pe.type){case"secret":return{kty:"oct",k:(0,ge.encode)(pe.export())};case"private":case"public":{switch(pe.asymmetricKeyType){case"rsa":{const R=pe.export({format:"der",type:"pkcs1"});const Ae=new ye.default(R);if(pe.type==="private"){Ae.unsignedInteger()}const he=(0,ge.encode)(Ae.unsignedInteger());const me=(0,ge.encode)(Ae.unsignedInteger());let ve;if(pe.type==="private"){ve={d:(0,ge.encode)(Ae.unsignedInteger()),p:(0,ge.encode)(Ae.unsignedInteger()),q:(0,ge.encode)(Ae.unsignedInteger()),dp:(0,ge.encode)(Ae.unsignedInteger()),dq:(0,ge.encode)(Ae.unsignedInteger()),qi:(0,ge.encode)(Ae.unsignedInteger())}}Ae.end();return{kty:"RSA",n:he,e:me,...ve}}case"ec":{const R=(0,ve.default)(pe);let Ae;let ye;let be;switch(R){case"secp256k1":Ae=64;ye=31+2;be=-1;break;case"P-256":Ae=64;ye=34+2;be=-1;break;case"P-384":Ae=96;ye=33+2;be=-3;break;case"P-521":Ae=132;ye=33+2;be=-3;break;default:throw new me.JOSENotSupported("Unsupported curve")}if(pe.type==="public"){const he=pe.export({type:"spki",format:"der"});return{kty:"EC",crv:R,x:(0,ge.encode)(he.subarray(-Ae,-Ae/2)),y:(0,ge.encode)(he.subarray(-Ae/2))}}const Ee=pe.export({type:"pkcs8",format:"der"});if(Ee.length<100){ye+=be}return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ee.subarray(ye,ye+Ae/2))}}case"ed25519":case"x25519":{const R=(0,ve.default)(pe);if(pe.type==="public"){const Ae=pe.export({type:"spki",format:"der"});return{kty:"OKP",crv:R,x:(0,ge.encode)(Ae.subarray(-32))}}const Ae=pe.export({type:"pkcs8",format:"der"});return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ae.subarray(-32))}}case"ed448":case"x448":{const R=(0,ve.default)(pe);if(pe.type==="public"){const Ae=pe.export({type:"spki",format:"der"});return{kty:"OKP",crv:R,x:(0,ge.encode)(Ae.subarray(R==="Ed448"?-57:-56))}}const Ae=pe.export({type:"pkcs8",format:"der"});return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ae.subarray(R==="Ed448"?-57:-56))}}default:throw new me.JOSENotSupported("Unsupported key asymmetricKeyType")}}default:throw new me.JOSENotSupported("Unsupported key type")}};pe["default"]=keyToJWK},15733:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(76880);const ye=Ae(36454);const me=Ae(87980);const ve=Ae(99390);const be={padding:he.constants.RSA_PKCS1_PSS_PADDING,saltLength:he.constants.RSA_PSS_SALTLEN_DIGEST};const Ee=new Map([["ES256","P-256"],["ES256K","secp256k1"],["ES384","P-384"],["ES512","P-521"]]);function keyForCrypto(R,pe){switch(R){case"EdDSA":if(!["ed25519","ed448"].includes(pe.asymmetricKeyType)){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ed25519 or ed448")}return pe;case"RS256":case"RS384":case"RS512":if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,me.default)(pe,R);return pe;case ve.rsaPssParams&&"PS256":case ve.rsaPssParams&&"PS384":case ve.rsaPssParams&&"PS512":if(pe.asymmetricKeyType==="rsa-pss"){const{hashAlgorithm:Ae,mgf1HashAlgorithm:he,saltLength:ge}=pe.asymmetricKeyDetails;const ye=parseInt(R.slice(-3),10);if(Ae!==undefined&&(Ae!==`sha${ye}`||he!==Ae)){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${R}`)}if(ge!==undefined&&ge>ye>>3){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${R}`)}}else if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa or rsa-pss")}(0,me.default)(pe,R);return{key:pe,...be};case!ve.rsaPssParams&&"PS256":case!ve.rsaPssParams&&"PS384":case!ve.rsaPssParams&&"PS512":if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,me.default)(pe,R);return{key:pe,...be};case"ES256":case"ES256K":case"ES384":case"ES512":{if(pe.asymmetricKeyType!=="ec"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ec")}const Ae=(0,ge.default)(pe);const he=Ee.get(R);if(Ae!==he){throw new TypeError(`Invalid key curve for the algorithm, its curve must be ${he}, got ${Ae}`)}return{dsaEncoding:"ieee-p1363",key:pe}}default:throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=keyForCrypto},15845:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(73837);const ge=Ae(6113);const ye=Ae(83738);const me=Ae(55925);const ve=Ae(60589);const be=Ae(1980);const Ee=Ae(84662);const we=Ae(8405);const Ce=Ae(87347);const _e=Ae(38547);const Ie=Ae(3401);const Se=Ae(73923);const Be=(0,he.promisify)(ge.pbkdf2);function getPassword(R,pe){if((0,_e.default)(R)){return R.export()}if(R instanceof Uint8Array){return R}if((0,we.isCryptoKey)(R)){(0,Ce.checkEncCryptoKey)(R,pe,"deriveBits","deriveKey");return ge.KeyObject.from(R).export()}throw new TypeError((0,Ie.default)(R,...Se.types,"Uint8Array"))}const encrypt=async(R,pe,Ae,he=2048,ge=(0,ye.default)(new Uint8Array(16)))=>{(0,Ee.default)(ge);const we=(0,me.p2s)(R,ge);const Ce=parseInt(R.slice(13,16),10)>>3;const _e=getPassword(pe,R);const Ie=await Be(_e,we,he,Ce,`sha${R.slice(8,11)}`);const Se=await(0,be.wrap)(R.slice(-6),Ie,Ae);return{encryptedKey:Se,p2c:he,p2s:(0,ve.encode)(ge)}};pe.encrypt=encrypt;const decrypt=async(R,pe,Ae,he,ge)=>{(0,Ee.default)(ge);const ye=(0,me.p2s)(R,ge);const ve=parseInt(R.slice(13,16),10)>>3;const we=getPassword(pe,R);const Ce=await Be(we,ye,he,ve,`sha${R.slice(8,11)}`);return(0,be.unwrap)(R.slice(-6),Ce,Ae)};pe.decrypt=decrypt},83738:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=Ae(6113);Object.defineProperty(pe,"default",{enumerable:true,get:function(){return he.randomFillSync}})},10079:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(6113);const ge=Ae(87980);const ye=Ae(8405);const me=Ae(87347);const ve=Ae(38547);const be=Ae(3401);const Ee=Ae(73923);const checkKey=(R,pe)=>{if(R.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,ge.default)(R,pe)};const resolvePadding=R=>{switch(R){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return he.constants.RSA_PKCS1_OAEP_PADDING;case"RSA1_5":return he.constants.RSA_PKCS1_PADDING;default:return undefined}};const resolveOaepHash=R=>{switch(R){case"RSA-OAEP":return"sha1";case"RSA-OAEP-256":return"sha256";case"RSA-OAEP-384":return"sha384";case"RSA-OAEP-512":return"sha512";default:return undefined}};function ensureKeyObject(R,pe,...Ae){if((0,ve.default)(R)){return R}if((0,ye.isCryptoKey)(R)){(0,me.checkEncCryptoKey)(R,pe,...Ae);return he.KeyObject.from(R)}throw new TypeError((0,be.default)(R,...Ee.types))}const encrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"wrapKey","encrypt");checkKey(me,R);return(0,he.publicEncrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.encrypt=encrypt;const decrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"unwrapKey","decrypt");checkKey(me,R);return(0,he.privateDecrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.decrypt=decrypt},28145:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]="node:crypto"},85513:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);const ye=Ae(28727);const me=Ae(86559);const ve=Ae(15733);const be=Ae(94398);let Ee;if(he.sign.length>3){Ee=(0,ge.promisify)(he.sign)}else{Ee=he.sign}const sign=async(R,pe,Ae)=>{const ge=(0,be.default)(R,pe,"sign");if(R.startsWith("HS")){const pe=he.createHmac((0,me.default)(R),ge);pe.update(Ae);return pe.digest()}return Ee((0,ye.default)(R),Ae,(0,ve.default)(R,ge))};pe["default"]=sign},56768:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=he.timingSafeEqual;pe["default"]=ge},34438:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);const ye=Ae(28727);const me=Ae(15733);const ve=Ae(85513);const be=Ae(94398);const Ee=Ae(99390);let we;if(he.verify.length>4&&Ee.oneShotCallback){we=(0,ge.promisify)(he.verify)}else{we=he.verify}const verify=async(R,pe,Ae,ge)=>{const Ee=(0,be.default)(R,pe,"verify");if(R.startsWith("HS")){const pe=await(0,ve.default)(R,Ee,ge);const ye=Ae;try{return he.timingSafeEqual(ye,pe)}catch{return false}}const Ce=(0,ye.default)(R);const _e=(0,me.default)(R,Ee);try{return await we(Ce,ge,_e,Ae)}catch{return false}};pe["default"]=verify},8405:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isCryptoKey=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=he.webcrypto;pe["default"]=ye;pe.isCryptoKey=ge.types.isCryptoKey?R=>ge.types.isCryptoKey(R):R=>false},52284:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.deflate=pe.inflate=void 0;const he=Ae(73837);const ge=Ae(59796);const ye=Ae(36454);const me=(0,he.promisify)(ge.inflateRaw);const ve=(0,he.promisify)(ge.deflateRaw);const inflate=R=>me(R,{maxOutputLength:25e4}).catch((()=>{throw new ye.JWEDecompressionFailed}));pe.inflate=inflate;const deflate=R=>ve(R);pe.deflate=deflate},52261:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=void 0;const he=Ae(60589);pe.encode=he.encode;pe.decode=he.decode},33514:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeJwt=void 0;const he=Ae(52261);const ge=Ae(55925);const ye=Ae(61394);const me=Ae(36454);function decodeJwt(R){if(typeof R!=="string")throw new me.JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");const{1:pe,length:Ae}=R.split(".");if(Ae===5)throw new me.JWTInvalid("Only JWTs using Compact JWS serialization can be decoded");if(Ae!==3)throw new me.JWTInvalid("Invalid JWT");if(!pe)throw new me.JWTInvalid("JWTs must contain a payload");let ve;try{ve=(0,he.decode)(pe)}catch{throw new me.JWTInvalid("Failed to base64url decode the payload")}let be;try{be=JSON.parse(ge.decoder.decode(ve))}catch{throw new me.JWTInvalid("Failed to parse the decoded payload as JSON")}if(!(0,ye.default)(be))throw new me.JWTInvalid("Invalid JWT Claims Set");return be}pe.decodeJwt=decodeJwt},93980:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeProtectedHeader=void 0;const he=Ae(52261);const ge=Ae(55925);const ye=Ae(61394);function decodeProtectedHeader(R){let pe;if(typeof R==="string"){const Ae=R.split(".");if(Ae.length===3||Ae.length===5){[pe]=Ae}}else if(typeof R==="object"&&R){if("protected"in R){pe=R.protected}else{throw new TypeError("Token does not contain a Protected Header")}}try{if(typeof pe!=="string"||!pe){throw new Error}const R=JSON.parse(ge.decoder.decode((0,he.decode)(pe)));if(!(0,ye.default)(R)){throw new Error}return R}catch{throw new TypeError("Invalid Token or Protected Header formatting")}}pe.decodeProtectedHeader=decodeProtectedHeader},36454:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.JWSSignatureVerificationFailed=pe.JWKSTimeout=pe.JWKSMultipleMatchingKeys=pe.JWKSNoMatchingKey=pe.JWKSInvalid=pe.JWKInvalid=pe.JWTInvalid=pe.JWSInvalid=pe.JWEInvalid=pe.JWEDecompressionFailed=pe.JWEDecryptionFailed=pe.JOSENotSupported=pe.JOSEAlgNotAllowed=pe.JWTExpired=pe.JWTClaimValidationFailed=pe.JOSEError=void 0;class JOSEError extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(R){var pe;super(R);this.code="ERR_JOSE_GENERIC";this.name=this.constructor.name;(pe=Error.captureStackTrace)===null||pe===void 0?void 0:pe.call(Error,this,this.constructor)}}pe.JOSEError=JOSEError;class JWTClaimValidationFailed extends JOSEError{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(R,pe="unspecified",Ae="unspecified"){super(R);this.code="ERR_JWT_CLAIM_VALIDATION_FAILED";this.claim=pe;this.reason=Ae}}pe.JWTClaimValidationFailed=JWTClaimValidationFailed;class JWTExpired extends JOSEError{static get code(){return"ERR_JWT_EXPIRED"}constructor(R,pe="unspecified",Ae="unspecified"){super(R);this.code="ERR_JWT_EXPIRED";this.claim=pe;this.reason=Ae}}pe.JWTExpired=JWTExpired;class JOSEAlgNotAllowed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}pe.JOSEAlgNotAllowed=JOSEAlgNotAllowed;class JOSENotSupported extends JOSEError{constructor(){super(...arguments);this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}pe.JOSENotSupported=JOSENotSupported;class JWEDecryptionFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_DECRYPTION_FAILED";this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}pe.JWEDecryptionFailed=JWEDecryptionFailed;class JWEDecompressionFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_DECOMPRESSION_FAILED";this.message="decompression operation failed"}static get code(){return"ERR_JWE_DECOMPRESSION_FAILED"}}pe.JWEDecompressionFailed=JWEDecompressionFailed;class JWEInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}pe.JWEInvalid=JWEInvalid;class JWSInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}pe.JWSInvalid=JWSInvalid;class JWTInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}pe.JWTInvalid=JWTInvalid;class JWKInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}pe.JWKInvalid=JWKInvalid;class JWKSInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}pe.JWKSInvalid=JWKSInvalid;class JWKSNoMatchingKey extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_NO_MATCHING_KEY";this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}pe.JWKSNoMatchingKey=JWKSNoMatchingKey;class JWKSMultipleMatchingKeys extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}pe.JWKSMultipleMatchingKeys=JWKSMultipleMatchingKeys;Symbol.asyncIterator;class JWKSTimeout extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_TIMEOUT";this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}pe.JWKSTimeout=JWKSTimeout;class JWSSignatureVerificationFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}pe.JWSSignatureVerificationFailed=JWSSignatureVerificationFailed},47650:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(28145);pe["default"]=he.default},25683:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEHeaderParameters=void 0;pe.IANACOSEHeaderParameters={0:{Name:"Reserved",Value:"0",Description:"",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},1:{Name:"A128GCM",Value:"1",Description:"AES-GCM mode w/ 128-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},2:{Name:"A192GCM",Value:"2",Description:"AES-GCM mode w/ 192-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},3:{Name:"A256GCM",Value:"3",Description:"AES-GCM mode w/ 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},4:{Name:"HMAC 256/64",Value:"4",Description:"HMAC w/ SHA-256 truncated to 64 bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},5:{Name:"HMAC 256/256",Value:"5",Description:"HMAC w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},6:{Name:"HMAC 384/384",Value:"6",Description:"HMAC w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},7:{Name:"HMAC 512/512",Value:"7",Description:"HMAC w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},10:{Name:"AES-CCM-16-64-128",Value:"10",Description:"AES-CCM mode 128-bit key, 64-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},11:{Name:"AES-CCM-16-64-256",Value:"11",Description:"AES-CCM mode 256-bit key, 64-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},12:{Name:"AES-CCM-64-64-128",Value:"12",Description:"AES-CCM mode 128-bit key, 64-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},13:{Name:"AES-CCM-64-64-256",Value:"13",Description:"AES-CCM mode 256-bit key, 64-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},14:{Name:"AES-MAC 128/64",Value:"14",Description:"AES-MAC 128-bit key, 64-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},15:{Name:"AES-MAC 256/64",Value:"15",Description:"AES-MAC 256-bit key, 64-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},24:{Name:"ChaCha20/Poly1305",Value:"24",Description:"ChaCha20/Poly1305 w/ 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},25:{Name:"AES-MAC 128/128",Value:"25",Description:"AES-MAC 128-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},26:{Name:"AES-MAC 256/128",Value:"26",Description:"AES-MAC 256-bit key, 128-bit tag",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},30:{Name:"AES-CCM-16-128-128",Value:"30",Description:"AES-CCM mode 128-bit key, 128-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},31:{Name:"AES-CCM-16-128-256",Value:"31",Description:"AES-CCM mode 256-bit key, 128-bit tag, 13-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},32:{Name:"AES-CCM-64-128-128",Value:"32",Description:"AES-CCM mode 128-bit key, 128-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},33:{Name:"AES-CCM-64-128-256",Value:"33",Description:"AES-CCM mode 256-bit key, 128-bit tag, 7-byte nonce",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},34:{Name:"IV-GENERATION",Value:"34",Description:"For doing IV generation for symmetric algorithms.",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"less than -65536":{Name:"Reserved for Private Use",Value:"less than -65536",Description:"",Capabilities:"","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"No"},"-65536":{Name:"Unassigned",Value:"-65536",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-65535":{Name:"RS1",Value:"-65535",Description:"RSASSA-PKCS1-v1_5 using SHA-1",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"Deprecated"},"-65534":{Name:"A128CTR",Value:"-65534",Description:"AES-CTR w/ 128-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65533":{Name:"A192CTR",Value:"-65533",Description:"AES-CTR w/ 192-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65532":{Name:"A256CTR",Value:"-65532",Description:"AES-CTR w/ 256-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65531":{Name:"A128CBC",Value:"-65531",Description:"AES-CBC w/ 128-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65530":{Name:"A192CBC",Value:"-65530",Description:"AES-CBC w/ 192-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65529":{Name:"A256CBC",Value:"-65529",Description:"AES-CBC w/ 256-bit key",Capabilities:"[kty]","Change Controller":"IETF",Reference:"https://datatracker.ietf.org/doc/RFC9459",Recommended:"Deprecated"},"-65528 to -261":{Name:"Unassigned",Value:"-65528 to -261",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-260":{Name:"WalnutDSA",Value:"-260",Description:"WalnutDSA signature",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9021][RFC9053",Recommended:"No"},"-259":{Name:"RS512",Value:"-259",Description:"RSASSA-PKCS1-v1_5 using SHA-512",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-258":{Name:"RS384",Value:"-258",Description:"RSASSA-PKCS1-v1_5 using SHA-384",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-257":{Name:"RS256",Value:"-257",Description:"RSASSA-PKCS1-v1_5 using SHA-256",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-256 to -48":{Name:"Unassigned",Value:"-256 to -48",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-47":{Name:"ES256K",Value:"-47",Description:"ECDSA using secp256k1 curve and SHA-256",Capabilities:"[kty]","Change Controller":"IESG",Reference:"https://datatracker.ietf.org/doc/RFC8812][RFC9053",Recommended:"No"},"-46":{Name:"HSS-LMS",Value:"-46",Description:"HSS/LMS hash-based digital signature",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8778][RFC9053",Recommended:"Yes"},"-45":{Name:"SHAKE256",Value:"-45",Description:"SHAKE-256 512-bit Hash Value",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-44":{Name:"SHA-512",Value:"-44",Description:"SHA-2 512-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-43":{Name:"SHA-384",Value:"-43",Description:"SHA-2 384-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-42":{Name:"RSAES-OAEP w/ SHA-512",Value:"-42",Description:"RSAES-OAEP w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-41":{Name:"RSAES-OAEP w/ SHA-256",Value:"-41",Description:"RSAES-OAEP w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-40":{Name:"RSAES-OAEP w/ RFC 8017 default parameters",Value:"-40",Description:"RSAES-OAEP w/ SHA-1",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-39":{Name:"PS512",Value:"-39",Description:"RSASSA-PSS w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-38":{Name:"PS384",Value:"-38",Description:"RSASSA-PSS w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-37":{Name:"PS256",Value:"-37",Description:"RSASSA-PSS w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC8230][RFC9053",Recommended:"Yes"},"-36":{Name:"ES512",Value:"-36",Description:"ECDSA w/ SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-35":{Name:"ES384",Value:"-35",Description:"ECDSA w/ SHA-384",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-34":{Name:"ECDH-SS + A256KW",Value:"-34",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-33":{Name:"ECDH-SS + A192KW",Value:"-33",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-32":{Name:"ECDH-SS + A128KW",Value:"-32",Description:"ECDH SS w/ Concat KDF and AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-31":{Name:"ECDH-ES + A256KW",Value:"-31",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-30":{Name:"ECDH-ES + A192KW",Value:"-30",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-29":{Name:"ECDH-ES + A128KW",Value:"-29",Description:"ECDH ES w/ Concat KDF and AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-28":{Name:"ECDH-SS + HKDF-512",Value:"-28",Description:"ECDH SS w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-27":{Name:"ECDH-SS + HKDF-256",Value:"-27",Description:"ECDH SS w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-26":{Name:"ECDH-ES + HKDF-512",Value:"-26",Description:"ECDH ES w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-25":{Name:"ECDH-ES + HKDF-256",Value:"-25",Description:"ECDH ES w/ HKDF - generate key directly",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-24 to -19":{Name:"Unassigned",Value:"-24 to -19",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-18":{Name:"SHAKE128",Value:"-18",Description:"SHAKE-128 256-bit Hash Value",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-17":{Name:"SHA-512/256",Value:"-17",Description:"SHA-2 512-bit Hash truncated to 256-bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-16":{Name:"SHA-256",Value:"-16",Description:"SHA-2 256-bit Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Yes"},"-15":{Name:"SHA-256/64",Value:"-15",Description:"SHA-2 256-bit Hash truncated to 64-bits",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Filter Only"},"-14":{Name:"SHA-1",Value:"-14",Description:"SHA-1 Hash",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9054][RFC9053",Recommended:"Filter Only"},"-13":{Name:"direct+HKDF-AES-256",Value:"-13",Description:"Shared secret w/ AES-MAC 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-12":{Name:"direct+HKDF-AES-128",Value:"-12",Description:"Shared secret w/ AES-MAC 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-11":{Name:"direct+HKDF-SHA-512",Value:"-11",Description:"Shared secret w/ HKDF and SHA-512",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-10":{Name:"direct+HKDF-SHA-256",Value:"-10",Description:"Shared secret w/ HKDF and SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-9":{Name:"Unassigned",Value:"-9",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"-8":{Name:"EdDSA",Value:"-8",Description:"EdDSA",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-7":{Name:"ES256",Value:"-7",Description:"ECDSA w/ SHA-256",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-6":{Name:"direct",Value:"-6",Description:"Direct use of CEK",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-5":{Name:"A256KW",Value:"-5",Description:"AES Key Wrap w/ 256-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-4":{Name:"A192KW",Value:"-4",Description:"AES Key Wrap w/ 192-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-3":{Name:"A128KW",Value:"-3",Description:"AES Key Wrap w/ 128-bit key",Capabilities:"[kty]","Change Controller":"",Reference:"https://datatracker.ietf.org/doc/RFC9053",Recommended:"Yes"},"-2 to -1":{Name:"Unassigned",Value:"-2 to -1",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"8-9":{Name:"Unassigned",Value:"8-9",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"16-23":{Name:"Unassigned",Value:"16-23",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""},"27-29":{Name:"Unassigned",Value:"27-29",Description:"",Capabilities:"","Change Controller":"",Reference:"",Recommended:""}}},37148:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.IANACOSEHeaderParameters=void 0;pe.IANACOSEHeaderParameters={0:{Name:"Reserved",Label:"0","Value Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},1:{Name:"alg",Label:"1","Value Type":"int / tstr","Value Registry":"COSE Algorithms registry",Description:"Cryptographic algorithm to use",Reference:"https://datatracker.ietf.org/doc/RFC9052"},2:{Name:"crit",Label:"2","Value Type":"[+ label]","Value Registry":"COSE Header Parameters registry",Description:"Critical headers to be understood",Reference:"https://datatracker.ietf.org/doc/RFC9052"},3:{Name:"content type",Label:"3","Value Type":"tstr / uint","Value Registry":"[COAP Content-Formats] or [Media Types] registry",Description:"Content type of the payload",Reference:"https://datatracker.ietf.org/doc/RFC9052"},4:{Name:"kid",Label:"4","Value Type":"bstr","Value Registry":"",Description:"Key identifier",Reference:"https://datatracker.ietf.org/doc/RFC9052"},5:{Name:"IV",Label:"5","Value Type":"bstr","Value Registry":"",Description:"Full Initialization Vector",Reference:"https://datatracker.ietf.org/doc/RFC9052"},6:{Name:"Partial IV",Label:"6","Value Type":"bstr","Value Registry":"",Description:"Partial Initialization Vector",Reference:"https://datatracker.ietf.org/doc/RFC9052"},7:{Name:"counter signature",Label:"7","Value Type":"COSE_Signature / [+ COSE_Signature ]","Value Registry":"",Description:"CBOR-encoded signature structure (Deprecated by [RFC9338])",Reference:"https://datatracker.ietf.org/doc/RFC8152"},8:{Name:"Unassigned",Label:"8","Value Type":"","Value Registry":"",Description:"",Reference:""},9:{Name:"CounterSignature0",Label:"9","Value Type":"bstr","Value Registry":"",Description:"Counter signature with implied signer and headers (Deprecated by [RFC9338])",Reference:"https://datatracker.ietf.org/doc/RFC8152"},10:{Name:"kid context",Label:"10","Value Type":"bstr","Value Registry":"",Description:"Identifies the context for the key identifier",Reference:"https://datatracker.ietf.org/doc/RFC8613, Section 5.1"},11:{Name:"Countersignature version 2",Label:"11","Value Type":"COSE_Countersignature / [+ COSE_Countersignature]","Value Registry":"",Description:"V2 countersignature attribute",Reference:"https://datatracker.ietf.org/doc/RFC9338"},12:{Name:"Countersignature0 version 2",Label:"12","Value Type":"COSE_Countersignature0","Value Registry":"",Description:"V2 Abbreviated Countersignature",Reference:"https://datatracker.ietf.org/doc/RFC9338"},13:{Name:"kcwt",Label:"13","Value Type":"COSE_Messages","Value Registry":"",Description:"A CBOR Web Token (CWT) containing a COSE_Key in a 'cnf' claim and possibly other claims. CWT is defined in [RFC8392]. COSE_Messages is defined in [RFC9052].",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-lake-edhoc-22"},14:{Name:"kccs",Label:"14","Value Type":"map","Value Registry":"",Description:"A CWT Claims Set (CCS) containing a COSE_Key in a 'cnf' claim and possibly other claims. CCS is defined in [RFC8392].",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-lake-edhoc-22"},15:{Name:"CWT Claims",Label:"15","Value Type":"map","Value Registry":"",Description:"Location for CWT Claims in COSE Header Parameters.",Reference:"https://datatracker.ietf.org/doc/RFC-ietf-cose-cwt-claims-in-headers-10"},32:{Name:"x5bag",Label:"32","Value Type":"COSE_X509","Value Registry":"",Description:"An unordered bag of X.509 certificates",Reference:"https://datatracker.ietf.org/doc/RFC9360"},33:{Name:"x5chain",Label:"33","Value Type":"COSE_X509","Value Registry":"",Description:"An ordered chain of X.509 certificates",Reference:"https://datatracker.ietf.org/doc/RFC9360"},34:{Name:"x5t",Label:"34","Value Type":"COSE_CertHash","Value Registry":"",Description:"Hash of an X.509 certificate",Reference:"https://datatracker.ietf.org/doc/RFC9360"},35:{Name:"x5u",Label:"35","Value Type":"uri","Value Registry":"",Description:"URI pointing to an X.509 certificate",Reference:"https://datatracker.ietf.org/doc/RFC9360"},256:{Name:"CUPHNonce",Label:"256","Value Type":"bstr","Value Registry":"",Description:"Challenge Nonce",Reference:"[FIDO Device Onboard Specification]"},257:{Name:"CUPHOwnerPubKey",Label:"257","Value Type":"array","Value Registry":"",Description:"Public Key",Reference:"[FIDO Device Onboard Specification]"},"less than -65536":{Name:"Reserved for Private Use",Label:"less than -65536","Value Type":"","Value Registry":"",Description:"",Reference:"https://datatracker.ietf.org/doc/RFC9052"},"-65536 to -1":{Name:"delegated to the COSE Header Algorithm Parameters registry",Label:"-65536 to -1","Value Type":"","Value Registry":"",Description:"",Reference:""},"16-31":{Name:"Unassigned",Label:"16-31","Value Type":"","Value Registry":"",Description:"",Reference:""},"36-255":{Name:"Unassigned",Label:"36-255","Value Type":"","Value Registry":"",Description:"",Reference:""}}},35417:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.urn=void 0;const he=Ae(34061);const ge=Ae(6113);const ye="sha256";const me=`base64url`;const ve={[ye]:"sha-256"};const urn=(R,pe,Ae)=>{const be=`urn:ietf:params:${R}`;const Ee=he.base64url.encode((0,ge.createHash)(ye).update(Ae).digest());return`${be}:${pe}:${ve[ye]}:${me}:${Ee}`};pe.urn=urn},67585:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});pe.cbor=void 0;const ve=ye(Ae(32940));pe.cbor=ve;me(Ae(86904),pe);me(Ae(28027),pe);me(Ae(52201),pe)},28027:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.parse=void 0;const ge=Ae(32940);const ye=Ae(86904);const parse=R=>he(void 0,void 0,void 0,(function*(){if(typeof R==="string"){return(0,ye.unwrap)(R.trim())}const pe=yield(0,ge.diagnose)(R);return(0,ye.unwrap)(pe.trim())}));pe.parse=parse},52201:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.renderPlaintext=pe.render=void 0;const ve=Ae(86904);const be=Ae(28027);const Ee=Ae(35417);const we=ye(Ae(37148));const Ce=ye(Ae(25683));const render=(R,Ae="text/html")=>me(void 0,void 0,void 0,(function*(){const he=yield(0,be.parse)(R);if(he.tag!==18){throw new Error("Only tagged cose-sign1 are supported")}const ge=(0,Ee.urn)("cose","cose-sign1",R);switch(Ae){case"application/cbor-diagnostic":return(0,pe.renderPlaintext)(ge,he);default:throw new Error("Only application/cbor-diagnostic is supported")}}));pe.render=render;const renderPlaintext=(R,pe)=>me(void 0,void 0,void 0,(function*(){if(pe.tag!==18){throw new Error("Unsupported graph type for plaintext rendering.")}let R=`/ cose-sign1 / 18([\n`;R+=(yield recursiveRenderPlaintext(pe.seq));R+="\n])\n\n";return R.trim()}));pe.renderPlaintext=renderPlaintext;const recursiveRenderPlaintext=R=>me(void 0,void 0,void 0,(function*(){if(R instanceof ve.EDNSeq){return yield renderSeqPlaintext(R)}else if(R instanceof ve.EDNMap){return yield renderMapPlaintext(R)}else{console.error("Unsupported graph instance:",R);throw new Error("Unsupported graph instance for plaintext rendering.")}}));const renderSeqPlaintext=R=>me(void 0,void 0,void 0,(function*(){return(yield Promise.all(R.entries.map(((pe,Ae)=>me(void 0,void 0,void 0,(function*(){let he=Ae>`}return`${pe.edn?" "+pe.edn:yield recursiveRenderPlaintext(pe)}${he}`})))))).join("\n")}));const renderMapPlaintext=R=>me(void 0,void 0,void 0,(function*(){let pe=yield Promise.all(R.entries.map((([R,pe])=>me(void 0,void 0,void 0,(function*(){let Ae=R.label;let he=pe.edn||(yield recursiveRenderPlaintext(pe));if(R.iana){const pe=R.iana;Ae=`/ ${pe.Name} / ${pe.Label} :`}if(pe.iana){const R=pe.iana;he=`${pe.edn.trim()} / ${R.Name} /`}return`\n ${Ae} ${he}`})))));let Ae=R.comment?` / ${R.comment} / `:"";return Ae+"{"+pe.join("\n")+"\n }"}))},86904:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(2192),pe)},2192:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.EDNCoseSign1=pe.EDNSeq=pe.EDNMap=pe.bufferToTruncatedBstr=void 0;const ve=ye(Ae(37148));const isMap=R=>R.startsWith("{")&&R.endsWith("}");const isSeq=R=>R.startsWith("[")&&R.endsWith("]");const isBytes=R=>R.startsWith(`h'`)&&R.endsWith(`'`);const isTextString=R=>R.startsWith(`"`)&&R.endsWith(`"`);const isNumber=R=>`${parseInt(R,10)}`===R;const isNull=R=>`null`===R;const isBoolean=R=>["true","false"].includes(R);const getTag=R=>{const pe=R.indexOf("(");if(pe===-1){return undefined}return R.slice(0,pe)};const removeTag=R=>{const pe=R.indexOf("(");if(pe===-1){return R}return R.slice(pe+1,R.length-1)};const getSymbolBefore=(R,pe)=>{let Ae=R.indexOf(pe);if(Ae===-1){Ae=R.length}return R.slice(0,Ae).trim()};const selectBoundedText=(R,pe,Ae)=>{let he=0;let ge="";for(let ye=0;ye{R=removeFirstComma(R);if(R.startsWith("{")){return selectBoundedText(R,"{","}")}if(R.startsWith("[")){return selectBoundedText(R,"[","]")}if(R.startsWith('"')){return`"${R.slice(1,R.slice(1).indexOf('"')+1)}"`}if(R.startsWith(`h`)){return`h${R.slice(1,R.slice(2).indexOf(`'`)+3)}`}let pe=R.indexOf(",");if(pe===-1){pe=R.length}const Ae=R.slice(0,pe).trim();if(`${parseInt(Ae,10)}`===Ae){return Ae}if(["true","false","null"].includes(Ae)){return Ae}throw new Error("Unknown content: "+R)};const bufferToTruncatedBstr=R=>{if(R===null){return"nil"}const pe=Buffer.from(R);const Ae=`h'${pe.toString("hex").toLowerCase()}'`;return Ae.replace(/h'(.{8}).+(.{8})'/g,`h'$1...$2'`).trim()};pe.bufferToTruncatedBstr=bufferToTruncatedBstr;class EDNBase{}class EDNLabel extends EDNBase{constructor(R){super();this.label=R;if(`${R}`.startsWith('"')){this.label=`${R}`.slice(1,`${R}`.length-1)}else{this.label=parseInt(R,10)}}}class EDNMap extends EDNBase{constructor(){super(...arguments);this.entries=[]}add(R,pe){this.entries.push([R,pe])}get(R){const pe=this.entries.find((([pe,Ae])=>pe.label===R));return pe}}pe.EDNMap=EDNMap;class EDNSeq extends EDNBase{constructor(){super(...arguments);this.entries=[]}add(R){this.entries.push(R)}get(R){return this.entries[R]}}pe.EDNSeq=EDNSeq;class EDNBytes extends EDNBase{constructor(R){super();this.value=Buffer.from(R.split(`'`)[1],"hex");this.edn=(0,pe.bufferToTruncatedBstr)(this.value)}}class EDNNull extends EDNBase{constructor(R){super();this.value=null;this.edn="nil"}}class EDNNumber extends EDNBase{constructor(R){super();this.value=parseInt(R,10);this.edn=R}}class EDNBoolean extends EDNBase{constructor(R){super();this.value=R==="true";this.edn=R}}class EDNTextString extends EDNBase{constructor(R){super();this.value=R;if(`${R}`.startsWith('"')){this.value=`${R}`.slice(1,`${R}`.length-1);this.edn=R}}}class EDNCoseSign1{constructor(R){this.tag=18;this.nested=[];this.comment=()=>me(this,void 0,void 0,(function*(){yield this.protectedHeader();yield this.unprotectedHeader();yield this.payload();yield this.signature()}));this.seq=R}protectedHeader(){const R=this.seq.get(0);R.edn=`/ protected / ${R.edn}`;return R}unprotectedHeader(){const R=this.seq.get(1);R.comment="unprotected";for(const[pe,Ae]of R.entries){const R=ve.IANACOSEHeaderParameters[`${pe.label}`];if(R){pe.iana=R}}return R}payload(){const R=this.seq.get(2);R.edn=`/ payload / ${R.edn}`;return R}signature(){const R=this.seq.get(3);R.edn=`/ signature / ${R.edn}`;return R}}pe.EDNCoseSign1=EDNCoseSign1;const removeFirstComma=R=>{if(R.trim().startsWith(",")){return R.trim().slice(1)}return R.trim()};const unwrapSeq=R=>me(void 0,void 0,void 0,(function*(){if(!isSeq(R)){throw new Error("unwrapSeq called on non seq")}let Ae=new EDNSeq;let he=R.slice(1,R.length-1).trim();while(he.length){const R=selectNextValue(he);if(R.length){Ae.add(yield(0,pe.unwrap)(R));he=he.replace(R,"")}he=removeFirstComma(he)}return Ae}));const unwrapMap=R=>me(void 0,void 0,void 0,(function*(){if(!isMap(R)){throw new Error("unwrapMap called on non map")}let Ae=new EDNMap;let he=R.slice(1,R.length-1);while(he.length){const R=getSymbolBefore(he,":");he=he.replace(`${R}: `,"").trim();const ge=selectNextValue(he);if(ge.length){Ae.add(new EDNLabel(R),yield(0,pe.unwrap)(ge));he=he.replace(ge,"");he=removeFirstComma(he)}}return Ae}));const postProcessCoseSign1=R=>me(void 0,void 0,void 0,(function*(){const pe=new EDNCoseSign1(R);yield pe.comment();return pe}));const postProcessByTag=R=>me(void 0,void 0,void 0,(function*(){if(R.tag===18){return postProcessCoseSign1(R)}return R}));const unwrap=R=>me(void 0,void 0,void 0,(function*(){let pe;let Ae=getTag(R);if(Ae){R=removeTag(R)}if(isMap(R)){pe=yield unwrapMap(R)}else if(isSeq(R)){pe=yield unwrapSeq(R)}else if(isBytes(R)){pe=new EDNBytes(R)}else if(isTextString(R)){pe=new EDNTextString(R)}else if(isNull(R)){pe=new EDNNull(R)}else if(isNumber(R)){pe=new EDNNumber(R)}else if(isBoolean(R)){pe=new EDNBoolean(R)}else{throw new Error("Failed to parse EDN for "+R)}if(pe&&Ae){pe.tag=parseInt(Ae,10);return yield postProcessByTag(pe)}return pe}));pe.unwrap=unwrap},20270:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.RFC9162_SHA256=void 0;const he=Ae(31607);const ge=Ae(14341);const ye=Ae(24711);const me=Ae(81347);const ve=Ae(42913);const be=Ae(66465);const leaves=R=>R.map(ge.getLeafFromEntry);const root=R=>(0,he.getRootFromLeaves)(R);const iproof=(R,pe)=>(0,ye.getInclusionProofForLeaf)(R,pe);const viproof=(R,pe)=>(0,me.getRootFromInclusionProof)(R,pe);const cproof=(R,pe)=>(0,ve.getConsistencyProofFromLeaves)(R,pe);const vcproof=(R,pe,Ae)=>(0,be.verifyConsistencyProof)(R,Ae.tree_size_1,pe,Ae.tree_size_2,Ae);const Ee="RFC9162_SHA256";pe.RFC9162_SHA256={tree_alg:Ee,root:root,leaf:ge.getLeafFromEntry,inclusion_proof:iproof,verify_inclusion_proof:viproof,consistency_proof:cproof,verify_consistency_proof:vcproof};pe["default"]=pe.RFC9162_SHA256},42913:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getConsistencyProofFromLeaves=void 0;const ge=Ae(31607);const ye=Ae(50482);const me=Ae(92287);const SUBPROOF=(R,pe,Ae)=>he(void 0,void 0,void 0,(function*(){const he=pe.length;if(R===he){return[yield(0,ge.getRootFromLeaves)(pe)]}if(Rve){const Ae=(0,ye.CUT)(pe,ve,he);const me=yield SUBPROOF(R-ve,Ae,false);const be=yield(0,ge.getRootFromLeaves)((0,ye.CUT)(pe,0,ve));return me.concat(be)}}throw new Error("m cannot be greater than n")}));const getConsistencyProofFromLeaves=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=R.tree_size;const he=pe.length;const ge=yield SUBPROOF(R.tree_size,pe,true);return{log_id:"",tree_size_1:Ae,tree_size_2:he,consistency_path:ge}}));pe.getConsistencyProofFromLeaves=getConsistencyProofFromLeaves},24711:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getInclusionProofForLeaf=void 0;const ge=Ae(92287);const ye=Ae(31607);const PATH=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=pe.length;if(Ae===1&&R===0){return[]}const he=(0,ge.highestPowerOf2LessThanN)(Ae);if(Rhe(void 0,void 0,void 0,(function*(){if(R<0||R>pe.length){throw new Error("Entry is not included in log.")}return{log_id:"",tree_size:pe.length,leaf_index:R,inclusion_path:yield PATH(R,pe)}}));pe.getInclusionProofForLeaf=getInclusionProofForLeaf},14341:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getLeafFromEntry=void 0;const ge=Ae(25775);const ye=Ae(80179);const me=Ae(63212);const getLeafFromEntry=R=>he(void 0,void 0,void 0,(function*(){if(!R){throw new Error("getLeafFromEntry requires a Uint8Array entry.")}const pe=(0,me.hexToBin)("00");return yield(0,ge.HASH)((0,ye.CONCAT)(pe,R))}));pe.getLeafFromEntry=getLeafFromEntry},81347:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getRootFromInclusionProof=void 0;const ge=Ae(80179);const ye=Ae(63212);const me=Ae(25775);const getRootFromInclusionProof=(R,pe)=>he(void 0,void 0,void 0,(function*(){const{tree_size:Ae,leaf_index:he,inclusion_path:ve}=pe;if(he>Ae){throw new Error("leaf index is out of bound")}let be=he;let Ee=Ae-1;let we=R;const Ce=(0,ye.hexToBin)("01");for(const R of ve){if(Ee===0){throw new Error("verification failed, sn is 0")}if(be%2===1||be===Ee){we=yield(0,me.HASH)((0,ge.CONCAT)(Ce,(0,ge.CONCAT)(R,we)));while(be%2!==1){be=be>>1;Ee=Ee>>1;if(be===0){break}}}else{we=yield(0,me.HASH)((0,ge.CONCAT)(Ce,(0,ge.CONCAT)(we,R)))}be=be>>1;Ee=Ee>>1}const _e=Ee===0;if(!_e){throw new Error("sn is not zero, proof validation failed.")}return we}));pe.getRootFromInclusionProof=getRootFromInclusionProof},31607:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.getRootFromLeaves=void 0;const ge=Ae(25775);const ye=Ae(80179);const me=Ae(63212);const ve=Ae(22285);const be=Ae(92287);const Ee=Ae(50482);const we=(0,ve.strToBin)("");const getRootFromLeaves=R=>he(void 0,void 0,void 0,(function*(){const Ae=R.length;if(Ae===0){return(0,ge.HASH)(we)}if(Ae===1){return R[0]}const he=(0,be.highestPowerOf2LessThanN)(Ae);const ve=(0,Ee.CUT)(R,0,he);const Ce=(0,Ee.CUT)(R,he,Ae);const _e=(0,me.hexToBin)("01");return(0,ge.HASH)((0,ye.CONCAT)(_e,(0,ye.CONCAT)(yield(0,pe.getRootFromLeaves)(ve),yield(0,pe.getRootFromLeaves)(Ce))))}));pe.getRootFromLeaves=getRootFromLeaves},38232:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(14341),pe);ge(Ae(31607),pe);ge(Ae(81347),pe);ge(Ae(24711),pe);ge(Ae(42913),pe);ge(Ae(66465),pe);ge(Ae(20270),pe)},66465:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifyConsistencyProof=void 0;const ge=Ae(25775);const ye=Ae(80179);const me=Ae(63212);const ve=Ae(9365);const be=Ae(9600);const Ee=(0,me.hexToBin)("01");const we=Ae(83793);const verifyConsistencyProof=(R,pe,Ae,me,Ce)=>he(void 0,void 0,void 0,(function*(){const{consistency_path:he}=Ce;if(he.length===0){return false}if((0,we.EXACT_POWER_OF_2)(pe)){}let _e=pe-1;let Ie=me-1;while((0,ve.LSB)(_e)){_e=_e>>1;Ie=Ie>>1}let Se=he[0];let Be=he[0];for(let R=1;R>1;Ie=Ie>>1}}else{Be=yield(0,ge.HASH)((0,ye.CONCAT)(Ee,(0,ye.CONCAT)(Be,pe)))}_e=_e>>1;Ie=Ie>>1}const ke=Ie===0;if(!ke){throw new Error("sn is not zero, proof validation failed.")}const Oe=(0,be.EQUAL)(Se,R);const Re=(0,be.EQUAL)(Be,Ae);return Oe&&Re}));pe.verifyConsistencyProof=verifyConsistencyProof},80179:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CONCAT=void 0;const CONCAT=(R,pe)=>{const Ae=new Uint8Array(R.length+pe.length);Ae.set(R);Ae.set(pe,R.length);return Ae};pe.CONCAT=CONCAT},50482:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CUT=void 0;const CUT=(R,pe,Ae)=>{const he=[];while(pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EQUAL=void 0;const EQUAL=(R,pe)=>R.length===pe.length&&R.every(((R,Ae)=>R===pe[Ae]));pe.EQUAL=EQUAL},83793:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EXACT_POWER_OF_2=void 0;const EXACT_POWER_OF_2=R=>Math.log(R)/Math.log(2)%1===0;pe.EXACT_POWER_OF_2=EXACT_POWER_OF_2},25775:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.HASH=void 0;const ve=Promise.resolve().then((()=>ye(Ae(6113)))).catch((()=>{}));const HASH=R=>me(void 0,void 0,void 0,(function*(){try{const pe=yield window.crypto.subtle.digest("SHA-256",R);return new Uint8Array(pe)}catch(pe){const Ae=yield(yield ve).createHash("sha256").update(R).digest();return new Uint8Array(Ae)}}));pe.HASH=HASH},9365:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.LSB=void 0;const LSB=R=>R%2===1;pe.LSB=LSB},47301:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.MTH=void 0;const ge=Ae(25775);const ye=Ae(80179);const me=Ae(63212);const ve=Ae(22285);const be=Ae(92287);const Ee=Ae(50482);const we=(0,ve.strToBin)("");const MTH=R=>he(void 0,void 0,void 0,(function*(){const Ae=R.length;if(Ae===0){return(0,ge.HASH)(we)}if(Ae===1){const pe=(0,me.hexToBin)("00");return(0,ge.HASH)((0,ye.CONCAT)(pe,R[0]))}const he=(0,be.highestPowerOf2LessThanN)(Ae);const ve=(0,Ee.CUT)(R,0,he);const Ce=(0,Ee.CUT)(R,he,Ae);const _e=(0,me.hexToBin)("01");return(0,ge.HASH)((0,ye.CONCAT)(_e,(0,ye.CONCAT)(yield(0,pe.MTH)(ve),yield(0,pe.MTH)(Ce))))}));pe.MTH=MTH},5272:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.PATH=void 0;const ge=Ae(47301);const ye=Ae(92287);const PATH=(R,Ae)=>he(void 0,void 0,void 0,(function*(){const he=Ae.length;if(he===1&&R===0){return[]}const me=(0,ye.highestPowerOf2LessThanN)(he);if(Rhe(void 0,void 0,void 0,(function*(){const he=pe.length;if(R===he){return[yield(0,ge.MTH)(pe)]}if(Rve){const Ae=(0,ye.CUT)(pe,ve,he);const me=yield SUBPROOF(R-ve,Ae,false);const be=yield(0,ge.MTH)((0,ye.CUT)(pe,0,ve));return me.concat(be)}}throw new Error("m cannot be greater than n")}));const PROOF=(R,pe)=>he(void 0,void 0,void 0,(function*(){return SUBPROOF(R,pe,true)}));pe.PROOF=PROOF},23505:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.binToHex=void 0;const binToHex=R=>R.reduce(((R,pe)=>R+pe.toString(16).padStart(2,"0")),"");pe.binToHex=binToHex},16721:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.consistencyProof=void 0;const ge=Ae(83690);const consistencyProof=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=R.tree_size;const he=pe.length;const ye=yield(0,ge.PROOF)(R.tree_size,pe);return{log_id:"",tree_size_1:Ae,tree_size_2:he,consistency_path:ye}}));pe.consistencyProof=consistencyProof},63212:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.hexToBin=void 0;const hexToBin=R=>Uint8Array.from(R.match(/.{1,2}/g).map((R=>parseInt(R,16))));pe.hexToBin=hexToBin},92287:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.highestPowerOf2LessThanN=void 0;const highestPowerOf2LessThanN=R=>{let pe=0;if(Math.pow(2,pe)>=R){return pe}else{while(Math.pow(2,pe)=R){pe=pe-1}return Math.pow(2,pe)};pe.highestPowerOf2LessThanN=highestPowerOf2LessThanN},65449:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.inclusionProof=void 0;const ge=Ae(9600);const ye=Ae(5272);const inclusionProof=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=pe.findIndex((pe=>(0,ge.EQUAL)(pe,R)));if(Ae===-1){throw new Error("Entry is not included in log.")}return{log_id:"",tree_size:pe.length,leaf_index:Ae,inclusion_path:yield(0,ye.PATH)(Ae,pe)}}));pe.inclusionProof=inclusionProof},97523:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(25775),pe);ge(Ae(47301),pe);ge(Ae(83690),pe);ge(Ae(5272),pe);ge(Ae(23505),pe);ge(Ae(63212),pe);ge(Ae(22285),pe);ge(Ae(37545),pe);ge(Ae(35829),pe);ge(Ae(78924),pe);ge(Ae(65449),pe);ge(Ae(803),pe);ge(Ae(16721),pe);ge(Ae(71884),pe)},37545:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.leaf=void 0;const he=Ae(47301);const leaf=R=>(0,he.MTH)([R]);pe.leaf=leaf},22285:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.strToBin=void 0;const Ae=new TextEncoder;const strToBin=R=>Ae.encode(R);pe.strToBin=strToBin},35829:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.treeHead=void 0;const he=Ae(47301);const treeHead=R=>(0,he.MTH)(R);pe.treeHead=treeHead},71884:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifyConsistencyProof=void 0;const ge=Ae(25775);const ye=Ae(80179);const me=Ae(63212);const ve=Ae(9365);const be=Ae(9600);const Ee=(0,me.hexToBin)("01");const we=Ae(83793);const VERIFY_PROOF=(R,pe,Ae,me,Ce)=>he(void 0,void 0,void 0,(function*(){if(Ce.length===0){return false}if((0,we.EXACT_POWER_OF_2)(R)){}let he=R-1;let _e=Ae-1;while((0,ve.LSB)(he)){he=he>>1;_e=_e>>1}let Ie=Ce[0];let Se=Ce[0];for(let R=1;R>1;_e=_e>>1}}else{Se=yield(0,ge.HASH)((0,ye.CONCAT)(Ee,(0,ye.CONCAT)(Se,pe)))}he=he>>1;_e=_e>>1}const Be=(0,be.EQUAL)(Ie,pe);const ke=(0,be.EQUAL)(Se,me);const Oe=_e===0;return Oe&&Be&&ke}));const verifyConsistencyProof=(R,pe,Ae)=>he(void 0,void 0,void 0,(function*(){return VERIFY_PROOF(Ae.tree_size_1,R,Ae.tree_size_2,pe,Ae.consistency_path)}));pe.verifyConsistencyProof=verifyConsistencyProof},803:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifyInclusionProof=void 0;const ge=Ae(80179);const ye=Ae(63212);const me=Ae(25775);const ve=Ae(9600);const verifyInclusionProof=(R,pe,Ae)=>he(void 0,void 0,void 0,(function*(){const{tree_size:he,leaf_index:be,inclusion_path:Ee}=Ae;if(be>he){return false}let we=be;let Ce=he-1;let _e=pe;const Ie=(0,ye.hexToBin)("01");for(const R of Ee){if(Ce===0){return false}if(we%2===1||we===Ce){_e=yield(0,me.HASH)((0,ge.CONCAT)(Ie,(0,ge.CONCAT)(R,_e)));while(we%2!==1){we=we>>1;Ce=Ce>>1;if(we===0){break}}}else{_e=yield(0,me.HASH)((0,ge.CONCAT)(Ie,(0,ge.CONCAT)(_e,R)))}we=we>>1;Ce=Ce>>1}const Se=(0,ve.EQUAL)(_e,R);const Be=Ce===0;return Be&&Se}));pe.verifyInclusionProof=verifyInclusionProof},78924:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.verifyTree=void 0;const ge=Ae(63212);const ye=Ae(25775);const me=Ae(80179);const ve=Ae(9600);const be=Ae(9365);const getMergeCount=R=>{let pe=0;while((0,be.LSB)(R>>pe)){pe++}return pe};const MERGE=R=>he(void 0,void 0,void 0,(function*(){const pe=(0,ge.hexToBin)("01");const Ae=R.pop();const he=R.pop();R.push(yield(0,ye.HASH)((0,me.CONCAT)(pe,(0,me.CONCAT)(he,Ae))))}));const verifyTree=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=[];const he=pe.length;for(let R=0;R1){yield MERGE(Ae)}const be=Ae[0];const Ee=R;return(0,ve.EQUAL)(be,Ee)}));pe.verifyTree=verifyTree},57994:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.CoMETRE=pe.RFC9162=void 0;const me=ye(Ae(97523));pe.RFC9162=me;const ve=ye(Ae(38232));pe.CoMETRE=ve;const be=me;pe["default"]=be},73772:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var ye=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var me;Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(78125),pe);const ve=Ae(88776);class VerifiableDataPlatfrom extends ve.Api{constructor(){super(...arguments);this.useToken=R=>{this.instance.defaults.headers.common["Authorization"]=`Bearer ${R}`}}}me=VerifiableDataPlatfrom;VerifiableDataPlatfrom.fromEnv=R=>ye(void 0,void 0,void 0,(function*(){const pe=new VerifiableDataPlatfrom({baseURL:R.API_BASE_URL});const Ae=yield pe.oauth.tokenCreate({grant_type:"client_credentials",client_id:R.CLIENT_ID,client_secret:R.CLIENT_SECRET,audience:R.TOKEN_AUDIENCE});pe.useToken(Ae.data.access_token);return pe}));pe["default"]=VerifiableDataPlatfrom},88776:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);ge{this.securityData=R};this.request=R=>he(this,void 0,void 0,(function*(){var{secure:pe,path:Ae,type:he,query:ye,format:me,body:be}=R,Ee=ge(R,["secure","path","type","query","format","body"]);const we=(typeof pe==="boolean"?pe:this.secure)&&this.securityWorker&&(yield this.securityWorker(this.securityData))||{};const Ce=this.mergeRequestParams(Ee,we);const _e=me||this.format||undefined;if(he===ve.FormData&&be&&be!==null&&typeof be==="object"){be=this.createFormData(be)}if(he===ve.Text&&be&&be!==null&&typeof be!=="string"){be=JSON.stringify(be)}return this.instance.request(Object.assign(Object.assign({},Ce),{headers:Object.assign(Object.assign({},Ce.headers||{}),he&&he!==ve.FormData?{"Content-Type":he}:{}),params:ye,responseType:_e,data:be,url:Ae}))}));this.instance=me.default.create(Object.assign(Object.assign({},be),{baseURL:be.baseURL||""}));this.secure=Ae;this.format=ye;this.securityWorker=pe}mergeRequestParams(R,pe){const Ae=R.method||pe&&pe.method;return Object.assign(Object.assign(Object.assign(Object.assign({},this.instance.defaults),R),pe||{}),{headers:Object.assign(Object.assign(Object.assign({},Ae&&this.instance.defaults.headers[Ae.toLowerCase()]||{}),R.headers||{}),pe&&pe.headers||{})})}stringifyFormItem(R){if(typeof R==="object"&&R!==null){return JSON.stringify(R)}else{return`${R}`}}createFormData(R){return Object.keys(R||{}).reduce(((pe,Ae)=>{const he=R[Ae];const ge=he instanceof Array?he:[he];for(const R of ge){const he=R instanceof Blob||R instanceof File;pe.append(Ae,he?R:this.stringifyFormItem(R))}return pe}),new FormData)}}pe.HttpClient=HttpClient;class Api extends HttpClient{constructor(){super(...arguments);this.oauth={tokenCreate:(R,pe={})=>this.request(Object.assign({path:`/oauth/token`,method:"POST",body:R,type:ve.Json,format:"json"},pe))};this.did={getDids:(R={})=>this.request(Object.assign({path:`/did/identifiers`,method:"GET",secure:true,format:"json"},R)),makeDidDefault:(R,pe={})=>this.request(Object.assign({path:`/did/${R}/make-default`,method:"PUT",secure:true,format:"json"},pe)),didMethodOperations:(R,pe={})=>this.request(Object.assign({path:`/did/method/operations`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe))};this.identifiers={resolve:(R,pe={})=>this.request(Object.assign({path:`/identifiers/${R}`,method:"GET",secure:true,format:"json"},pe))};this.contacts={createContact:(R,pe={})=>this.request(Object.assign({path:`/contacts`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getContacts:(R={})=>this.request(Object.assign({path:`/contacts`,method:"GET",secure:true,format:"json"},R)),updateContact:(R,pe,Ae={})=>this.request(Object.assign({path:`/contacts/${R}`,method:"PUT",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),deleteContact:(R,pe={})=>this.request(Object.assign({path:`/contacts/${R}`,method:"DELETE",secure:true,format:"json"},pe))};this.credentials={issueCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/issue`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),updateCredentialStatus:(R,pe={})=>this.request(Object.assign({path:`/credentials/status`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),deriveCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/derive`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),verifyOrganizationCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/verify`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),storeCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getCredentials:(R={})=>this.request(Object.assign({path:`/credentials`,method:"GET",secure:true,format:"json"},R)),getCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/${R}`,method:"GET",secure:true,format:"json"},pe)),deleteCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/${R}`,method:"DELETE",secure:true,format:"json"},pe)),verifyCredential:(R,pe={})=>this.request(Object.assign({path:`/credentials/${R}/verify`,method:"GET",secure:true,format:"json"},pe)),updateCredentialStatus2:(R,pe,Ae={})=>this.request(Object.assign({path:`/credentials/${R}/status`,method:"PATCH",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),getCredentialVisibility:(R,pe={})=>this.request(Object.assign({path:`/credentials/${R}/visibility`,method:"GET",secure:true,format:"json"},pe)),changeCredentialVisibility:(R,pe,Ae={})=>this.request(Object.assign({path:`/credentials/${R}/visibility`,method:"PATCH",body:pe,secure:true,type:ve.Json,format:"json"},Ae))};this.organizations={notifyPresentationAvailable:(R,pe,Ae={})=>this.request(Object.assign({path:`/organizations/${R}/presentations/available`,method:"POST",body:pe,type:ve.Json,format:"json"},Ae)),storePresentation:(R,pe,Ae={})=>this.request(Object.assign({path:`/organizations/${R}/presentations/submissions`,method:"POST",body:pe,type:ve.Json,format:"json"},Ae)),submitPresentationWithOAuth2Security:(R,pe,Ae={})=>this.request(Object.assign({path:`/organizations/${R}/presentations`,method:"POST",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),getOrganizations:(R={})=>this.request(Object.assign({path:`/organizations`,method:"GET",secure:true,format:"json"},R)),getOrganization:(R,pe={})=>this.request(Object.assign({path:`/organizations/${R}`,method:"GET",secure:true,format:"json"},pe)),getOrganizationDidWeb:(R,pe={})=>this.request(Object.assign({path:`/organizations/${R}/did.json`,method:"GET",secure:true,format:"json"},pe))};this.presentations={provePresentation:(R,pe={})=>this.request(Object.assign({path:`/presentations/prove`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),verifyPresentation:(R,pe={})=>this.request(Object.assign({path:`/presentations/verify`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),sendDidAuthPresentation:(R,pe={})=>this.request(Object.assign({path:`/presentations/send-did-auth-presentation`,method:"POST",body:R,type:ve.Json,format:"json"},pe)),getPresentationsSharedWithMe:(R={})=>this.request(Object.assign({path:`/presentations/received`,method:"GET",secure:true,format:"json"},R)),getPresentationsSharedWithOthers:(R={})=>this.request(Object.assign({path:`/presentations/sent`,method:"GET",secure:true,format:"json"},R)),getPresentation:(R,pe={})=>this.request(Object.assign({path:`/presentations/${R}`,method:"GET",secure:true,format:"json"},pe)),deleteSubmission:(R,pe={})=>this.request(Object.assign({path:`/presentations/${R}`,method:"DELETE",secure:true},pe))};this.applications={getApplications:(R={})=>this.request(Object.assign({path:`/applications`,method:"GET",secure:true,format:"json"},R)),getApplication:(R,pe={})=>this.request(Object.assign({path:`/applications/${R}`,method:"GET",secure:true,format:"json"},pe)),updateApplication:(R,pe,Ae={})=>this.request(Object.assign({path:`/applications/${R}`,method:"PUT",body:pe,secure:true,type:ve.Json,format:"json"},Ae))};this.activities={activitiesList:(R={})=>this.request(Object.assign({path:`/activities`,method:"GET",secure:true,format:"json"},R))};this.batches={createBatch:(R,pe={})=>this.request(Object.assign({path:`/batches`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getBatches:(R={})=>this.request(Object.assign({path:`/batches`,method:"GET",secure:true,format:"json"},R)),validateBatch:(R,pe={})=>this.request(Object.assign({path:`/batches/validate`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getBatch:(R,pe={})=>this.request(Object.assign({path:`/batches/${R}`,method:"GET",secure:true,format:"json"},pe))};this.marketplace={getMarketplaceTemplates:(R={})=>this.request(Object.assign({path:`/marketplace/templates`,method:"GET",secure:true,format:"json"},R)),getMarketplaceTemplate:(R,pe={})=>this.request(Object.assign({path:`/marketplace/templates/${R}`,method:"GET",secure:true,format:"json"},pe))};this.mnemonics={getMnemonics:(R={})=>this.request(Object.assign({path:`/mnemonics`,method:"GET",secure:true,format:"json"},R)),createMnemonic:(R,pe={})=>this.request(Object.assign({path:`/mnemonics`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getMnemonic:(R,pe={})=>this.request(Object.assign({path:`/mnemonics/${R}`,method:"GET",secure:true,format:"json"},pe)),updateMnemonic:(R,pe,Ae={})=>this.request(Object.assign({path:`/mnemonics/${R}`,method:"PUT",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),deleteMnemonic:(R,pe={})=>this.request(Object.assign({path:`/mnemonics/${R}`,method:"DELETE",secure:true,format:"json"},pe)),getPrivateKeysForMnemonic:(R,pe={})=>this.request(Object.assign({path:`/mnemonics/${R}/keys`,method:"GET",secure:true,format:"json"},pe))};this.keys={getPrivateKeys:(R={})=>this.request(Object.assign({path:`/keys`,method:"GET",secure:true,format:"json"},R)),updatePrivateKey:(R,pe,Ae={})=>this.request(Object.assign({path:`/keys/${R}`,method:"PATCH",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),deletePrivateKey:(R,pe={})=>this.request(Object.assign({path:`/keys/${R}`,method:"DELETE",secure:true,format:"json"},pe)),derivePrivateKey:(R,pe={})=>this.request(Object.assign({path:`/keys/derive`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),generatePrivateKey:(R,pe={})=>this.request(Object.assign({path:`/keys/generate`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),recoverPrivateKey:(R,pe={})=>this.request(Object.assign({path:`/keys/recover`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),importPrivateKey:(R,pe={})=>this.request(Object.assign({path:`/keys/import`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe))};this.workflows={createWorkflowInstance:(R,pe={})=>this.request(Object.assign({path:`/workflows/instances`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getWorkflowInstances:(R={})=>this.request(Object.assign({path:`/workflows/instances`,method:"GET",secure:true,format:"json"},R)),getWorkflowInstance:(R,pe={})=>this.request(Object.assign({path:`/workflows/instances/${R}`,method:"GET",secure:true,format:"json"},pe)),updateWorkflowInstance:(R,pe,Ae={})=>this.request(Object.assign({path:`/workflows/instances/${R}`,method:"PUT",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),deleteWorkflowInstance:(R,pe={})=>this.request(Object.assign({path:`/workflows/instances/${R}`,method:"DELETE",secure:true,format:"json"},pe)),createWorkflowDefinition:(R,pe={})=>this.request(Object.assign({path:`/workflows/definitions`,method:"POST",body:R,secure:true,type:ve.Json,format:"json"},pe)),getWorkflowDefinitions:(R={})=>this.request(Object.assign({path:`/workflows/definitions`,method:"GET",secure:true,format:"json"},R)),getWorkflowDefinition:(R,pe={})=>this.request(Object.assign({path:`/workflows/definitions/${R}`,method:"GET",secure:true,format:"json"},pe)),updateWorkflowDefinition:(R,pe,Ae={})=>this.request(Object.assign({path:`/workflows/definitions/${R}`,method:"PUT",body:pe,secure:true,type:ve.Json,format:"json"},Ae)),deleteWorkflowDefinition:(R,pe={})=>this.request(Object.assign({path:`/workflows/definitions/${R}`,method:"DELETE",secure:true,format:"json"},pe))}}}pe.Api=Api},62999:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},78125:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(62999),pe)},41762:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.discloseValue=pe.discloseKey=pe.discloseTag=void 0;pe.discloseTag=`!sd`;pe.discloseKey=`_sd`;pe.discloseValue=`...`},58376:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.disclose=pe.redactSource=void 0;const he=Ae(44083);const ge=Ae(41762);const ye=Ae(8477);const me=Ae(25295);const fakePair=R=>{let pe;if(R.value instanceof he.Scalar){pe={value:new he.Scalar(false)}}if(R.value instanceof he.YAMLSeq){pe={value:fakeSequence(R.value.items.length)}}if(R.value instanceof he.YAMLMap){pe=R}return pe};const discloseWalkMap=(R,Ae)=>{const ye=[];for(const pe in R.items){const me=R.items[pe];const ve=Ae.items.find((R=>R.key.value===me.key.value))||fakePair(me);if(me.value instanceof he.YAMLSeq&&ve.value instanceof he.YAMLSeq){discloseWalkList(me.value,ve.value)}if(me.value instanceof he.YAMLMap&&ve.value instanceof he.YAMLMap){discloseWalkMap(me.value,ve.value)}if(me.key.tag===ge.discloseTag&&ve.value.value===false){ye.push(parseInt(pe,10))}}(0,pe.redactSource)(R,ye)};const discloseWalkList=(R,Ae)=>{const ye=[];for(const pe in R.items){const me=R.items[pe];let ve=Ae.items[pe];if(me instanceof he.YAMLSeq){if(ve===undefined||ve.value===false){ve=fakeSequence(me.items.length)}if(ve instanceof he.YAMLSeq){discloseWalkList(me,ve)}}if(me instanceof he.YAMLMap){if(ve instanceof he.YAMLMap){discloseWalkMap(me,ve)}}if(me.tag===ge.discloseTag){if(ve.value===false){ye.push(parseInt(pe,10))}}}(0,pe.redactSource)(R,ye)};const redactSource=(R,pe)=>{R.items=R.items.filter(((Ae,he)=>{discloseReplace(R.items[he]);return!pe.includes(he)}))};pe.redactSource=redactSource;const fakeSequence=R=>{const pe=new he.YAMLSeq;pe.items=new Array(R).fill({value:false});return pe};const discloseReplace=R=>{if(R instanceof he.Scalar||R instanceof he.YAMLSeq||R instanceof he.YAMLMap){const pe=R;delete pe.toJSON;delete pe.sd;delete pe.tag}else if(R instanceof he.Pair){const pe=R;if(typeof pe.key!=="string"){pe.key.value=`${pe.key.value}`;delete pe.key.tag;delete pe.value.toJSON;delete pe.value.sd;delete pe.value.tag}}else{console.log(R);throw new Error("discloseReplace, Unhandled disclosure case")}};const disclose=(R,pe)=>{const Ae=(0,ye.parseCustomTags)(R);const ge=(0,ye.parseCustomTags)(pe);discloseWalkMap(Ae.contents,ge.contents);return(0,he.stringify)(Ae,me.yamlOptions)};pe.disclose=disclose},42163:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(44083);const ge=Ae(8477);const ye=Ae(25295);const me=Ae(86777);const ve=Ae(58376);const dumps=R=>(0,he.stringify)(R,ye.yamlOptions);const roughlyEqual=(R,pe)=>JSON.stringify((0,he.parse)(R))===JSON.stringify((0,he.parse)(pe));const load=R=>{const pe=(0,ge.parseCustomTags)(R).contents;if(pe===null){throw new Error("parsed data cannot be null.")}return pe};const be={load:load,issuancePayload:me.issuancePayload,parseCustomTags:ge.parseCustomTags,loads:he.parse,dumps:dumps,disclose:ve.disclose,roughlyEqual:roughlyEqual};pe["default"]=be},86777:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.issuancePayload=void 0;const ge=Ae(20037);const ye=Ae(44083);const me=Ae(41762);const ve=Ae(58376);const be=Ae(92767);const Ee=Ae(78784);const updateTarget=(R,pe,Ae,he)=>{if(pe instanceof ye.Pair){let pe=R.items.find((R=>R.key.value==="_sd"));if(!pe){const Ae=new ye.Scalar("_sd");const he=new ye.YAMLSeq;pe=new ye.Pair(Ae,he);R.items.push(pe)}pe.value.items.push(he)}else{R.items[Ae]=he}};const getDisclosureItem=(R,pe,Ae)=>he(void 0,void 0,void 0,(function*(){const he=(0,be.serializeDisclosure)(R,pe);const me=ge.base64url.encode(he);const ve=yield Ae.digester.digest(me);Ae.disclosures[me]=ve;const Ee=new ye.Scalar(ve);if(pe instanceof ye.Pair){return Ee}else{const R=new ye.Pair("...",Ee);const pe=new ye.YAMLMap;pe.add(R);return pe}}));const addDisclosure=(R,pe,Ae,ge)=>he(void 0,void 0,void 0,(function*(){const he=yield ge.salter(Ae);if(!he){console.warn(JSON.stringify(Ae,null,2));throw new Error("Unhandled salt disclosure...")}const ye=yield getDisclosureItem(he,Ae,ge);updateTarget(R,Ae,pe,ye)}));const issuanceWalkMap=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=[];for(const he in R.items){const ge=R.items[he];if(ge.value instanceof ye.YAMLSeq){yield issuanceWalkList(ge.value,pe)}if(ge.value instanceof ye.YAMLMap){yield issuanceWalkMap(ge.value,pe)}if(ge.key.tag===me.discloseTag){yield addDisclosure(R,he,ge,pe);Ae.push(parseInt(he,10))}}(0,ve.redactSource)(R,Ae)}));const issuanceWalkList=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=[];for(const Ae in R.items){const he=R.items[Ae];if(he instanceof ye.YAMLSeq){yield issuanceWalkList(he,pe)}if(he instanceof ye.YAMLMap){yield issuanceWalkMap(he,pe)}if(he.tag===me.discloseTag){yield addDisclosure(R,Ae,he,pe)}}(0,ve.redactSource)(R,Ae)}));const disclosureSorter=R=>{if(R.key&&R.key.value==="_sd"){R.value.items.sort(((R,pe)=>{if(R.value>=pe.value){return 1}else{return-1}}))}};const preconditionChecker=R=>{if(R.key&&R.key.value==="_sd"){throw new Error("claims may not contain _sd")}};const issuancePayload=(R,pe)=>he(void 0,void 0,void 0,(function*(){(0,Ee.walkMap)(R,preconditionChecker);yield issuanceWalkMap(R,pe);(0,Ee.walkMap)(R,disclosureSorter);return JSON.parse(JSON.stringify(R))}));pe.issuancePayload=issuancePayload},8477:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.parseCustomTags=void 0;const he=Ae(44083);const ge=Ae(78784);const ye=Ae(25295);const replacer=R=>{};const parseCustomTags=R=>{const pe=(0,he.parseDocument)(R,ye.yamlOptions);(0,ge.walkMap)(pe.contents,replacer);return pe};pe.parseCustomTags=parseCustomTags},92767:function(R,pe,Ae){"use strict";var he=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);geJSON.stringify(JSON.parse(JSON.stringify(R))).replace(/"\:/g,'": ').replace(/,/g,", ");const serializeMap=R=>{const pe=JSON.stringify(R);const Ae=JSON.parse(pe),{_sd:ge}=Ae,ye=he(Ae,["_sd"]);if(Array.isArray(ge)){ge.sort()}return JSON.stringify(Object.assign({_sd:ge},ye)).replace(/"\:/g,'": ').replace(/,/g,", ")};const serializeScalar=R=>`${JSON.stringify(R.value).replace(/,/g,", ")}`;const serializeDisclosure=(R,pe)=>{if(pe instanceof ge.Pair){if(pe.value instanceof ge.YAMLSeq){return`["${R}", "${pe.key.value}", ${serializeList(pe.value)}]`}else if(pe.value instanceof ge.YAMLMap){return`["${R}", "${pe.key.value}", ${serializeMap(pe.value)}]`}else{return`["${R}", ${JSON.stringify(pe.key.value).replace(/,/g,", ")}, ${serializeScalar(pe.value)}]`}}else if(pe instanceof ge.YAMLSeq){return`["${R}", ${serializeList(pe)}]`}else if(pe instanceof ge.YAMLMap){return`["${R}", ${serializeMap(pe)}]`}else{return`["${R}", ${JSON.stringify(JSON.parse(JSON.stringify((0,ge.parse)(pe.value)))).replace(/\:/g,": ")}]`}};pe.serializeDisclosure=serializeDisclosure},19023:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.walkList=void 0;const he=Ae(44083);const ge=Ae(78784);const walkList=(R,Ae)=>{for(const ye in R.items){const me=R.items[ye];if(me instanceof he.YAMLSeq){(0,pe.walkList)(me,Ae)}else if(me instanceof he.YAMLMap){(0,ge.walkMap)(me,Ae)}Ae(me)}};pe.walkList=walkList},78784:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.walkMap=void 0;const he=Ae(44083);const ge=Ae(19023);const walkMap=(R,Ae)=>{if(R===null){return}for(const ye of R.items){if(ye.value instanceof he.YAMLSeq){(0,ge.walkList)(ye.value,Ae)}else if(ye.value instanceof he.YAMLMap){(0,pe.walkMap)(ye.value,Ae)}Ae(ye)}};pe.walkMap=walkMap},25295:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.yamlOptions=void 0;const he=Ae(41762);const ge={tag:he.discloseTag,resolve(R){return R}};pe.yamlOptions={flowCollectionPadding:false,schema:"core",customTags:[ge]}},81203:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const me=ye(Ae(42163));const ve=ye(Ae(50820));const be=ye(Ae(93396));const Ee=ye(Ae(54507));const we=ye(Ae(58779));const Ce=ye(Ae(91620));const _e=ye(Ae(95681));const Ie=ye(Ae(10963));const Se=ye(Ae(85844));const Be=ye(Ae(17687));const ke={YAML:me.default,jwk:ve.default,jws:be.default,parse:Ee.default,key:we.default,salter:Ce.default,digester:_e.default,issuer:Ie.default,holder:Se.default,verifier:Be.default};ge(Ae(24258),pe);pe["default"]=ke},50820:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);ge{const{kid:pe,x5u:Ae,x5c:he,x5t:ye,kty:me,crv:ve,alg:be,key_ops:Ee,x:we,y:Ce,d:_e}=R,Ie=ge(R,["kid","x5u","x5c","x5t","kty","crv","alg","key_ops","x","y","d"]);return JSON.parse(JSON.stringify(Object.assign({kid:pe,x5u:Ae,x5c:he,x5t:ye,kty:me,crv:ve,alg:be,key_ops:Ee,x:we,y:Ce,d:_e},Ie)))};const getPublicKey=R=>{const{d:pe,p:Ae,q:he,dp:ye,dq:me,qi:ve,oth:be,k:Ee,key_ops:we}=R,Ce=ge(R,["d","p","q","dp","dq","qi","oth","k","key_ops"]);return format(Ce)};pe.getPublicKey=getPublicKey;const getExtractableKeyPair=R=>he(void 0,void 0,void 0,(function*(){const pe=yield(0,ye.generateKeyPair)(R,{extractable:true});const Ae=yield(0,ye.exportJWK)(pe.publicKey);Ae.alg=R;Ae.kid=yield(0,ye.calculateJwkThumbprint)(Ae);const he=yield(0,ye.exportJWK)(pe.privateKey);he.alg=R;he.kid=yield(0,ye.calculateJwkThumbprint)(he);return{publicKeyJwk:format(Ae),privateKeyJwk:format(he)}}));const me={format:format,getPublicKey:pe.getPublicKey,generate:getExtractableKeyPair};pe["default"]=me},93396:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const be=ye(Ae(20037));const Ee=ve(Ae(50820));const signer=R=>me(void 0,void 0,void 0,(function*(){const pe=yield be.importJWK(R);return{sign:({protectedHeader:R,claimset:Ae})=>me(void 0,void 0,void 0,(function*(){return new be.CompactSign((new TextEncoder).encode(JSON.stringify(Ae))).setProtectedHeader(R).sign(pe)}))}}));const verifier=R=>me(void 0,void 0,void 0,(function*(){const pe=yield be.importJWK(Ee.default.getPublicKey(R));return{verify:R=>me(void 0,void 0,void 0,(function*(){const Ae=yield be.compactVerify(R,pe);return{protectedHeader:Ae.protectedHeader,claimset:JSON.parse((new TextDecoder).decode(Ae.payload))}}))}}));const we={signer:signer,verifier:verifier};pe["default"]=we},54507:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});const ge=Ae(20037);const ye=Ae(7591);const compact=(R,pe={decodeDisclosure:false})=>{var Ae;const he=R.split(ye.COMBINED_serialization_FORMAT_SEPARATOR);const me=he.shift();const ve={jwt:me};if(he[he.length-1].includes(".")){ve.kbt=he.pop()}if(he.length){ve.disclosures=he.filter((R=>R.length>0))}if(pe.decodeDisclosure){ve.disclosures=(Ae=ve.disclosures)===null||Ae===void 0?void 0:Ae.map((R=>JSON.parse((new TextDecoder).decode(ge.base64url.decode(R)))))}if(!ve.disclosures){ve.disclosures=[]}return ve};const expload=(R,pe)=>he(void 0,void 0,void 0,(function*(){const Ae=compact(R);const he=(0,ge.decodeJwt)(Ae.jwt);Ae.issued=he;const ye=pe.digester;const me={};const ve={};for(const R of Ae.disclosures){const pe=yield ye.digest(R);ve[pe]=R;me[pe]=JSON.parse((new TextDecoder).decode(ge.base64url.decode(R)))}Ae.disclosureMap=me;Ae.hashToEncodedDisclosureMap=ve;return Ae}));const me={compact:compact,expload:expload};pe["default"]=me},22180:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(7591);const itemHasDisclosure=R=>typeof R==="object"&&Object.keys(R).length===1&&R[he.SD_LIST_PREFIX]!==undefined&&typeof R[he.SD_LIST_PREFIX]==="string";const _select_disclosures_list=(R,pe,Ae)=>{if(pe===null||pe===undefined){return[]}if(pe===true){pe=[]}if(!Array.isArray(pe)){throw new Error("To disclose array elements, an array must be provided as disclosure information.")}for(const ge in R){const ye=R[ge];let me=pe[ge];if(itemHasDisclosure(ye)){const R=ye[he.SD_LIST_PREFIX];if(!Ae._hash_to_decoded_disclosure[R]){continue}const[pe,ge]=Ae._hash_to_decoded_disclosure[R];if(me===false||me===undefined){continue}Ae.hs_disclosures.push(Ae._hash_to_disclosure[R]);if(Array.isArray(ge)){if(me===true){me=[]}if(typeof me!=="object"){throw new Error("To disclose array elements nested in arrays, provide an array (can be empty).")}_select_disclosures(ge,me,Ae)}else if(typeof ge==="object"){if(me===true){me={}}if(typeof me!=="object"){throw new Error("To disclose object elements in arrays, provide an object (can be empty).")}_select_disclosures(ge,me,Ae)}}else{_select_disclosures(ye,me,Ae)}}};const _select_disclosures_dict=(R,pe,Ae)=>{if(pe===null||pe===undefined){return{}}if(pe===true){pe={}}for(const[ge,ye]of Object.entries(R)){if(ge===he.SD_DIGESTS_KEY){for(const R of ye){if(Ae._hash_to_decoded_disclosure[R]===undefined){continue}const[he,ge,ye]=Ae._hash_to_decoded_disclosure[R];try{if(pe[ge]){Ae.hs_disclosures.push(Ae._hash_to_disclosure[R])}else{}}catch(R){throw new Error("claims_to_disclose does not contain a dict where a dict was expected (found {claims_to_disclose} instead)")}_select_disclosures(ye,pe[ge],Ae)}}else{_select_disclosures(ye,pe[ge],Ae)}}};function _select_disclosures(R,pe,Ae){if(Array.isArray(R)){_select_disclosures_list(R,pe,Ae)}else if(R!==null&&typeof R==="object"){_select_disclosures_dict(R,pe,Ae)}else{}}pe["default"]=_select_disclosures},48730:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(7591);const itemHasDisclosure=R=>R!==null&&typeof R==="object"&&Object.keys(R).length===1&&R[he.SD_LIST_PREFIX]!==undefined&&typeof R[he.SD_LIST_PREFIX]==="string";const _rec_unpack_disclosed_claims=(R,pe)=>{if(Array.isArray(R)){const Ae=[];for(const ge of R){if(itemHasDisclosure(ge)){const R=ge[he.SD_LIST_PREFIX];if(pe._hash_to_decoded_disclosure[R]){const[he,ge]=pe._hash_to_decoded_disclosure[R];Ae.push(_rec_unpack_disclosed_claims(ge,pe))}}else{Ae.push(_rec_unpack_disclosed_claims(ge,pe))}}return Ae}else if(R!==null&&typeof R==="object"){const Ae={};for(const[ge,ye]of Object.entries(R)){if(ge!==he.SD_DIGESTS_KEY&&ge!==he.DIGEST_ALG_KEY){Ae[ge]=_rec_unpack_disclosed_claims(ye,pe)}}for(const ge of R[he.SD_DIGESTS_KEY]||[]){if(pe._duplicate_hash_check[ge]){throw new Error(`Duplicate hash found in SD-JWT: ${ge}`)}pe._duplicate_hash_check.push(ge);if(pe._hash_to_decoded_disclosure[ge]){const[R,he,ye]=pe._hash_to_decoded_disclosure[ge];if(Ae[he]){throw new Error(`Duplicate key found when unpacking disclosed claim: '${he}' in ${Ae}. This is not allowed.`)}const me=_rec_unpack_disclosed_claims(ye,pe);Ae[he]=me}}return Ae}else{return R}};const _unpack_disclosed_claims=(R,pe)=>{pe._duplicate_hash_check=[];return _rec_unpack_disclosed_claims(R,pe)};pe["default"]=_unpack_disclosed_claims},7591:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.UnexpectedSDObjException=pe.SDJWTHasSDClaimException=pe.KB_JWT_TYP_HEADER=pe.COMBINED_serialization_FORMAT_SEPARATOR=pe.SD_LIST_PREFIX=pe.DIGEST_ALG_KEY=pe.SD_DIGESTS_KEY=pe.DEFAULT_SIGNING_ALG=void 0;pe.DEFAULT_SIGNING_ALG="ES256";pe.SD_DIGESTS_KEY="_sd";pe.DIGEST_ALG_KEY="_sd_alg";pe.SD_LIST_PREFIX="...";pe.COMBINED_serialization_FORMAT_SEPARATOR="~";pe.KB_JWT_TYP_HEADER="kb+jwt";pe.SDJWTHasSDClaimException=`Input data contains the special claim '${pe.SD_DIGESTS_KEY}' reserved for SD-JWT internal data.`;pe.UnexpectedSDObjException=`Input data contains a claim value that should not be wrapped by SDObj.`},44487:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});const ve=Ae(20037);const be=Promise.resolve().then((()=>ye(Ae(6113)))).catch((()=>{}));pe["default"]=R=>me(void 0,void 0,void 0,(function*(){try{const pe=(new TextEncoder).encode(R);const Ae=yield window.crypto.subtle.digest("SHA-256",pe);return ve.base64url.encode(new Uint8Array(Ae))}catch(pe){const Ae=(new TextEncoder).encode(R);const he=yield(yield be).createHash("sha256").update(Ae).digest();return ve.base64url.encode(new Uint8Array(he))}}))},95681:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ge=he(Ae(44487));const digester=(R="sha-256")=>{if(R!=="sha-256"){throw new Error("Only sha-256 digest is supported.")}return{name:R,digest:ge.default}};pe["default"]=digester},85844:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const be=ve(Ae(42163));const Ee=ve(Ae(95681));const we=ve(Ae(91620));const Ce=ve(Ae(93396));const _e=ve(Ae(99623));const Ie=ye(Ae(20037));const Se=Ae(7591);const Be=ve(Ae(22180));const ke=ve(Ae(54507));const Oe=Ae(98485);const Re=Ae(71154);const holder=(R={})=>{if(R.privateKeyJwk){R.alg=R.privateKeyJwk.alg}if(!R.digester){R.digester=(0,Ee.default)()}if(!R.salter){R.salter=(0,we.default)()}if(!R.alg&&R.signer){throw new Error("alg must be passed as an option or restricted via privateKeyJwk")}return{issue:({token:pe,disclosure:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){if(R.privateKeyJwk){R.signer=yield Ce.default.signer(R.privateKeyJwk)}const ye=ke.default.compact(pe);const me=Ie.decodeJwt(ye.jwt);const{disclosureMap:ve,hashToEncodedDisclosureMap:Ee}=yield ke.default.expload(pe,R);const we={hs_disclosures:[],_hash_to_disclosure:Ee,_hash_to_decoded_disclosure:ve};const Qe=JSON.parse(JSON.stringify(be.default.load(Ae),null,2));(0,Be.default)(me,Qe,we);const xe=[...we.hs_disclosures];if(me.cnf&&(!he||!ge)){throw new Error("Credential requires confirmation but audience and nonce are missing.")}let Pe=ye.jwt;if(xe.length){Pe+=Se.COMBINED_serialization_FORMAT_SEPARATOR+xe.join(Se.COMBINED_serialization_FORMAT_SEPARATOR)}Pe+=Se.COMBINED_serialization_FORMAT_SEPARATOR;if(he&&ge){if(!me.cnf){throw new Error("Credential does not contain confirmation method, therefore audience and nonce are not supported.")}if(!R.signer){throw new Error("Signer is required.")}const pe=yield Re.sd_hash.compute(Pe);const Ae=yield R.signer.sign({protectedHeader:(0,Oe.sortProtectedHeader)({alg:R.alg,kid:R.kid,typ:Se.KB_JWT_TYP_HEADER}),claimset:{iss:R.iss,iat:(0,_e.default)().unix(),nonce:ge,aud:he,sd_hash:pe}});Pe+=Ae}return Pe}))}};pe["default"]=holder},10963:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=ge(Ae(42163));const me=ge(Ae(95681));const ve=ge(Ae(91620));const be=ge(Ae(93396));const Ee=ge(Ae(99623));const we=Ae(7591);const Ce=Ae(86777);const _e=Ae(98485);const issuer=R=>{if(R.privateKeyJwk){R.alg=R.privateKeyJwk.alg}if(!R.digester){R.digester=(0,me.default)()}if(!R.salter){R.salter=(0,ve.default)()}if(!R.alg&&R.signer){throw new Error("alg must be passed as an option or restricted via privateKeyJwk")}return{issue:({claimset:pe,jwk:Ae,kid:ge,iat:me,exp:ve})=>he(void 0,void 0,void 0,(function*(){if(!R.signer){if(!R.privateKeyJwk){throw new Error("signer or privateKeyJwk required for issuance")}R.signer=yield be.default.signer(R.privateKeyJwk)}if(!R.digester){throw new Error("digester is required.")}const he={disclosures:{},salter:R.salter,digester:R.digester};const Ie=yield(0,Ce.issuancePayload)(ye.default.load(pe),he);const Se={alg:R.alg,kid:R.kid,typ:R.typ,cty:R.cty};const Be=Object.assign({iss:R.iss,iat:me||(0,Ee.default)().unix(),exp:ve||(0,Ee.default)().add(2,"weeks").unix(),cnf:Ae||ge?{jwk:Ae,kid:ge}:undefined,[we.DIGEST_ALG_KEY]:he.digester.name},Ie);const ke=yield R.signer.sign({protectedHeader:(0,_e.sortProtectedHeader)(Se),claimset:Be});const Oe=ke+we.COMBINED_serialization_FORMAT_SEPARATOR+Object.keys(he.disclosures).join(we.COMBINED_serialization_FORMAT_SEPARATOR);return Oe}))}};pe["default"]=issuer},58779:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ge=he(Ae(50820));const ye=ge.default;pe["default"]=ye},96966:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});const ve=Promise.resolve().then((()=>ye(Ae(6113)))).catch((()=>{}));pe["default"]=(R=16)=>me(void 0,void 0,void 0,(function*(){try{return crypto.getRandomValues(new Uint8Array(R))}catch(pe){return(yield ve).randomFillSync(new Uint8Array(R))}}))},91620:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=Ae(20037);const me=ge(Ae(96966));pe["default"]=()=>{const salter=()=>he(void 0,void 0,void 0,(function*(){const R=yield(0,me.default)(16);const pe=ye.base64url.encode(R);return pe}));return salter}},71154:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.sd_hash=void 0;const ye=ge(Ae(44487));const me=Ae(7591);const compute=R=>he(void 0,void 0,void 0,(function*(){if(!R.includes(me.COMBINED_serialization_FORMAT_SEPARATOR)){throw new Error("_sd_hash can only be computed over +sd-jwt")}return(0,ye.default)(R)}));pe.sd_hash={compute:compute}},98485:function(R,pe){"use strict";var Ae=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);ge{const{alg:pe,iss:he,kid:ge,typ:ye,cty:me}=R,ve=Ae(R,["alg","iss","kid","typ","cty"]);return JSON.parse(JSON.stringify(Object.assign({alg:pe,iss:he,kid:ge,typ:ye,cty:me},ve)))};pe.sortProtectedHeader=sortProtectedHeader},58293:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.validate_public_claims=void 0;const ge=he(Ae(99623));const acceptableAud=(R,pe)=>Array.isArray(pe)?pe.includes(R):pe===R;const validate_public_claims=(R,pe,Ae)=>{const{debug:he,reference_audience:ye,reference_nonce:me}=Ae;const{iat:ve,nbf:be,exp:Ee,aud:we,nonce:Ce}=pe;if(we){if(!ye||!acceptableAud(ye,we)){throw new Error(`${R} presented audience does not match reference value: ${ye}`)}}if(Ce!==undefined){if(me!==Ce){throw new Error(`${R} presented nonce does not match reference value: ${me}`)}}const _e=(0,ge.default)();if(ve){const pe=ge.default.unix(ve);const Ae=_e.isBefore(pe);if(he){console.info(`${R} issued`,pe.fromNow())}if(Ae){throw new Error(`${R} cannot be issued in the future...`+pe.fromNow())}}else{if(he){console.info(`${R} has no issuance time`)}}if(be){const pe=ge.default.unix(be);const Ae=_e.isBefore(pe);if(he){console.info(`${R} activated`,pe.fromNow())}if(Ae){throw new Error(`${R} cannot be activated in the future...`+pe.fromNow())}}else{if(he){console.info(`${R} has no activation time`)}}if(Ee){const pe=ge.default.unix(Ee);const Ae=_e.isAfter(pe);if(he){console.info(`${R} expires`,pe.fromNow())}if(Ae){throw new Error(`${R} cannot be expired in the past...`+pe.fromNow())}}else{if(he){console.info(`${R} has no expiration time`)}}};pe.validate_public_claims=validate_public_claims},51633:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.validate_sd_hash=void 0;const ge=Ae(71154);const validate_sd_hash=(R,pe,Ae=false)=>he(void 0,void 0,void 0,(function*(){const he=R.split("~");he.pop();const ye=he.join("~")+"~";const me=yield ge.sd_hash.compute(ye);const ve=me===pe;if(Ae){console.info("Key Binding Token sd_hash matches presentation token")}if(!ve){throw new Error("Key Binding Token sd_hash does not match presentation token")}}));pe.validate_sd_hash=validate_sd_hash},17687:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});const ye=ge(Ae(95681));const me=ge(Ae(93396));const ve=ge(Ae(54507));const be=Ae(7591);const Ee=ge(Ae(48730));const we=Ae(20037);const Ce=Ae(58293);const _e=Ae(51633);function verifier(R){if(!R.digester){R.digester=(0,ye.default)()}if(R.publicKeyJwk){const{publicKeyJwk:pe}=R;R.alg=R.alg||pe.alg;if(!R.alg){throw new Error("alg must be passed as an option or restricted via publicKeyJwk")}R.verifier={verify:R=>he(this,void 0,void 0,(function*(){const{jwt:Ae}=ve.default.compact(R);const he=yield me.default.verifier(pe);return he.verify(Ae)}))}}return{verify:({token:pe,audience:Ae,nonce:ge})=>he(this,void 0,void 0,(function*(){var he;const ye=false;const{jwt:Ie,kbt:Se}=ve.default.compact(pe);const Be=(0,we.decodeProtectedHeader)(Ie);let ke;if(R.verifier){ke=yield R.verifier.verify(pe)}else if(R.resolver){if(!Be.kid){throw new Error("kid is required when resolver is used to obtain public keys")}const pe=yield R.resolver.resolve(Be.kid);const Ae=yield me.default.verifier(pe);ke=yield Ae.verify(Ie)}else{throw new Error("a verifier or resolver is required, but not present.")}if(!R.digester){throw new Error("digester is required")}if(ke.claimset[be.DIGEST_ALG_KEY]!==R.digester.name){throw new Error("Invalid hash algorithm")}(0,Ce.validate_public_claims)("Issuer-signed JWT",ke.claimset,{debug:ye,reference_audience:ke.claimset.aud,reference_nonce:ke.claimset.nonce});if(ye){console.info("Verified Issuer-signed JWT: ",JSON.stringify(ke,null,2))}const{cnf:Oe}=ke.claimset;if(Oe){if(!Se){throw new Error("Verification of this credential requires proof of posession from the holder. Key binding token is expected based on claims, but was not found.")}try{let ve;let be;let Ee;let we;const{cnf:Ie}=ke.claimset;if(Ie.jwk){({cnf:{jwk:be}}=ke.claimset);Ee=be;if(ye){console.info("Issued JWT has JWK confirmation method.")}}if(ke.claimset.cnf.kid){({cnf:{kid:ve}}=ke.claimset);if(ye){console.info("Issued JWT has kid confirmation method.")}if(!R.resolver){throw new Error("Resolver is required for kid confirmation method")}Ee=yield(he=R.resolver)===null||he===void 0?void 0:he.resolve(ve)}const Be=yield me.default.verifier(Ee);we=yield Be.verify(Se);if(!we){throw new Error("Failed to verify key binding token")}yield(0,_e.validate_sd_hash)(pe,we.claimset.sd_hash,ye);(0,Ce.validate_public_claims)("Key Binding Token",we.claimset,{debug:ye,reference_audience:Ae,reference_nonce:ge});if(ye){console.info("Verified Key Binding Token: ",JSON.stringify(we,null,2))}}catch(R){console.error(R);throw new Error("Failed to validate key binding token.")}}else{if(ye){console.info("Issued JWT has no confirmation method.")}}const{disclosureMap:Re,hashToEncodedDisclosureMap:Qe}=yield ve.default.expload(pe,R);const xe={_hash_to_disclosure:Qe,_hash_to_decoded_disclosure:Re};const Pe=(0,Ee.default)(ke.claimset,xe);const Te=JSON.parse(JSON.stringify({protectedHeader:ke.protectedHeader,claimset:Pe}));return Te}))}}pe["default"]=verifier},24258:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},20037:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.cryptoRuntime=pe.base64url=pe.generateSecret=pe.generateKeyPair=pe.errors=pe.decodeJwt=pe.decodeProtectedHeader=pe.importJWK=pe.importX509=pe.importPKCS8=pe.importSPKI=pe.exportJWK=pe.exportSPKI=pe.exportPKCS8=pe.UnsecuredJWT=pe.createRemoteJWKSet=pe.createLocalJWKSet=pe.EmbeddedJWK=pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=pe.EncryptJWT=pe.SignJWT=pe.GeneralSign=pe.FlattenedSign=pe.CompactSign=pe.FlattenedEncrypt=pe.CompactEncrypt=pe.jwtDecrypt=pe.jwtVerify=pe.generalVerify=pe.flattenedVerify=pe.compactVerify=pe.GeneralEncrypt=pe.generalDecrypt=pe.flattenedDecrypt=pe.compactDecrypt=void 0;var he=Ae(86017);Object.defineProperty(pe,"compactDecrypt",{enumerable:true,get:function(){return he.compactDecrypt}});var ge=Ae(19479);Object.defineProperty(pe,"flattenedDecrypt",{enumerable:true,get:function(){return ge.flattenedDecrypt}});var ye=Ae(48028);Object.defineProperty(pe,"generalDecrypt",{enumerable:true,get:function(){return ye.generalDecrypt}});var me=Ae(71927);Object.defineProperty(pe,"GeneralEncrypt",{enumerable:true,get:function(){return me.GeneralEncrypt}});var ve=Ae(17420);Object.defineProperty(pe,"compactVerify",{enumerable:true,get:function(){return ve.compactVerify}});var be=Ae(20214);Object.defineProperty(pe,"flattenedVerify",{enumerable:true,get:function(){return be.flattenedVerify}});var Ee=Ae(9967);Object.defineProperty(pe,"generalVerify",{enumerable:true,get:function(){return Ee.generalVerify}});var we=Ae(46397);Object.defineProperty(pe,"jwtVerify",{enumerable:true,get:function(){return we.jwtVerify}});var Ce=Ae(54485);Object.defineProperty(pe,"jwtDecrypt",{enumerable:true,get:function(){return Ce.jwtDecrypt}});var _e=Ae(11217);Object.defineProperty(pe,"CompactEncrypt",{enumerable:true,get:function(){return _e.CompactEncrypt}});var Ie=Ae(4164);Object.defineProperty(pe,"FlattenedEncrypt",{enumerable:true,get:function(){return Ie.FlattenedEncrypt}});var Se=Ae(76658);Object.defineProperty(pe,"CompactSign",{enumerable:true,get:function(){return Se.CompactSign}});var Be=Ae(37658);Object.defineProperty(pe,"FlattenedSign",{enumerable:true,get:function(){return Be.FlattenedSign}});var ke=Ae(69635);Object.defineProperty(pe,"GeneralSign",{enumerable:true,get:function(){return ke.GeneralSign}});var Oe=Ae(34321);Object.defineProperty(pe,"SignJWT",{enumerable:true,get:function(){return Oe.SignJWT}});var Re=Ae(73799);Object.defineProperty(pe,"EncryptJWT",{enumerable:true,get:function(){return Re.EncryptJWT}});var Qe=Ae(85213);Object.defineProperty(pe,"calculateJwkThumbprint",{enumerable:true,get:function(){return Qe.calculateJwkThumbprint}});Object.defineProperty(pe,"calculateJwkThumbprintUri",{enumerable:true,get:function(){return Qe.calculateJwkThumbprintUri}});var xe=Ae(51974);Object.defineProperty(pe,"EmbeddedJWK",{enumerable:true,get:function(){return xe.EmbeddedJWK}});var Pe=Ae(29840);Object.defineProperty(pe,"createLocalJWKSet",{enumerable:true,get:function(){return Pe.createLocalJWKSet}});var Te=Ae(10469);Object.defineProperty(pe,"createRemoteJWKSet",{enumerable:true,get:function(){return Te.createRemoteJWKSet}});var De=Ae(35042);Object.defineProperty(pe,"UnsecuredJWT",{enumerable:true,get:function(){return De.UnsecuredJWT}});var Ne=Ae(11055);Object.defineProperty(pe,"exportPKCS8",{enumerable:true,get:function(){return Ne.exportPKCS8}});Object.defineProperty(pe,"exportSPKI",{enumerable:true,get:function(){return Ne.exportSPKI}});Object.defineProperty(pe,"exportJWK",{enumerable:true,get:function(){return Ne.exportJWK}});var Me=Ae(2646);Object.defineProperty(pe,"importSPKI",{enumerable:true,get:function(){return Me.importSPKI}});Object.defineProperty(pe,"importPKCS8",{enumerable:true,get:function(){return Me.importPKCS8}});Object.defineProperty(pe,"importX509",{enumerable:true,get:function(){return Me.importX509}});Object.defineProperty(pe,"importJWK",{enumerable:true,get:function(){return Me.importJWK}});var je=Ae(30672);Object.defineProperty(pe,"decodeProtectedHeader",{enumerable:true,get:function(){return je.decodeProtectedHeader}});var Fe=Ae(22220);Object.defineProperty(pe,"decodeJwt",{enumerable:true,get:function(){return Fe.decodeJwt}});pe.errors=Ae(96204);var Le=Ae(61039);Object.defineProperty(pe,"generateKeyPair",{enumerable:true,get:function(){return Le.generateKeyPair}});var Ue=Ae(78733);Object.defineProperty(pe,"generateSecret",{enumerable:true,get:function(){return Ue.generateSecret}});pe.base64url=Ae(51736);var He=Ae(75646);Object.defineProperty(pe,"cryptoRuntime",{enumerable:true,get:function(){return He.default}})},86017:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactDecrypt=void 0;const he=Ae(19479);const ge=Ae(96204);const ye=Ae(87243);async function compactDecrypt(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWEInvalid("Compact JWE must be a string or Uint8Array")}const{0:me,1:ve,2:be,3:Ee,4:we,length:Ce}=R.split(".");if(Ce!==5){throw new ge.JWEInvalid("Invalid Compact JWE")}const _e=await(0,he.flattenedDecrypt)({ciphertext:Ee,iv:be||undefined,protected:me||undefined,tag:we||undefined,encrypted_key:ve||undefined},pe,Ae);const Ie={plaintext:_e.plaintext,protectedHeader:_e.protectedHeader};if(typeof pe==="function"){return{...Ie,key:_e.key}}return Ie}pe.compactDecrypt=compactDecrypt},11217:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactEncrypt=void 0;const he=Ae(4164);class CompactEncrypt{constructor(R){this._flattened=new he.FlattenedEncrypt(R)}setContentEncryptionKey(R){this._flattened.setContentEncryptionKey(R);return this}setInitializationVector(R){this._flattened.setInitializationVector(R);return this}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}setKeyManagementParameters(R){this._flattened.setKeyManagementParameters(R);return this}async encrypt(R,pe){const Ae=await this._flattened.encrypt(R,pe);return[Ae.protected,Ae.encrypted_key,Ae.iv,Ae.ciphertext,Ae.tag].join(".")}}pe.CompactEncrypt=CompactEncrypt},19479:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedDecrypt=void 0;const he=Ae(78583);const ge=Ae(29547);const ye=Ae(67907);const me=Ae(96204);const ve=Ae(4118);const be=Ae(3240);const Ee=Ae(87782);const we=Ae(87243);const Ce=Ae(64290);const _e=Ae(96029);const Ie=Ae(21834);async function flattenedDecrypt(R,pe,Ae){var Se;if(!(0,be.default)(R)){throw new me.JWEInvalid("Flattened JWE must be an object")}if(R.protected===undefined&&R.header===undefined&&R.unprotected===undefined){throw new me.JWEInvalid("JOSE Header missing")}if(typeof R.iv!=="string"){throw new me.JWEInvalid("JWE Initialization Vector missing or incorrect type")}if(typeof R.ciphertext!=="string"){throw new me.JWEInvalid("JWE Ciphertext missing or incorrect type")}if(typeof R.tag!=="string"){throw new me.JWEInvalid("JWE Authentication Tag missing or incorrect type")}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new me.JWEInvalid("JWE Protected Header incorrect type")}if(R.encrypted_key!==undefined&&typeof R.encrypted_key!=="string"){throw new me.JWEInvalid("JWE Encrypted Key incorrect type")}if(R.aad!==undefined&&typeof R.aad!=="string"){throw new me.JWEInvalid("JWE AAD incorrect type")}if(R.header!==undefined&&!(0,be.default)(R.header)){throw new me.JWEInvalid("JWE Shared Unprotected Header incorrect type")}if(R.unprotected!==undefined&&!(0,be.default)(R.unprotected)){throw new me.JWEInvalid("JWE Per-Recipient Unprotected Header incorrect type")}let Be;if(R.protected){try{const pe=(0,he.decode)(R.protected);Be=JSON.parse(we.decoder.decode(pe))}catch{throw new me.JWEInvalid("JWE Protected Header is invalid")}}if(!(0,ve.default)(Be,R.header,R.unprotected)){throw new me.JWEInvalid("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint")}const ke={...Be,...R.header,...R.unprotected};(0,_e.default)(me.JWEInvalid,new Map,Ae===null||Ae===void 0?void 0:Ae.crit,Be,ke);if(ke.zip!==undefined){if(!Be||!Be.zip){throw new me.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}if(ke.zip!=="DEF"){throw new me.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}}const{alg:Oe,enc:Re}=ke;if(typeof Oe!=="string"||!Oe){throw new me.JWEInvalid("missing JWE Algorithm (alg) in JWE Header")}if(typeof Re!=="string"||!Re){throw new me.JWEInvalid("missing JWE Encryption Algorithm (enc) in JWE Header")}const Qe=Ae&&(0,Ie.default)("keyManagementAlgorithms",Ae.keyManagementAlgorithms);const xe=Ae&&(0,Ie.default)("contentEncryptionAlgorithms",Ae.contentEncryptionAlgorithms);if(Qe&&!Qe.has(Oe)){throw new me.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed')}if(xe&&!xe.has(Re)){throw new me.JOSEAlgNotAllowed('"enc" (Encryption Algorithm) Header Parameter not allowed')}let Pe;if(R.encrypted_key!==undefined){try{Pe=(0,he.decode)(R.encrypted_key)}catch{throw new me.JWEInvalid("Failed to base64url decode the encrypted_key")}}let Te=false;if(typeof pe==="function"){pe=await pe(Be,R);Te=true}let De;try{De=await(0,Ee.default)(Oe,pe,Pe,ke,Ae)}catch(R){if(R instanceof TypeError||R instanceof me.JWEInvalid||R instanceof me.JOSENotSupported){throw R}De=(0,Ce.default)(Re)}let Ne;let Me;try{Ne=(0,he.decode)(R.iv)}catch{throw new me.JWEInvalid("Failed to base64url decode the iv")}try{Me=(0,he.decode)(R.tag)}catch{throw new me.JWEInvalid("Failed to base64url decode the tag")}const je=we.encoder.encode((Se=R.protected)!==null&&Se!==void 0?Se:"");let Fe;if(R.aad!==undefined){Fe=(0,we.concat)(je,we.encoder.encode("."),we.encoder.encode(R.aad))}else{Fe=je}let Le;try{Le=(0,he.decode)(R.ciphertext)}catch{throw new me.JWEInvalid("Failed to base64url decode the ciphertext")}let Ue=await(0,ge.default)(Re,De,Le,Ne,Me,Fe);if(ke.zip==="DEF"){Ue=await((Ae===null||Ae===void 0?void 0:Ae.inflateRaw)||ye.inflate)(Ue)}const He={plaintext:Ue};if(R.protected!==undefined){He.protectedHeader=Be}if(R.aad!==undefined){try{He.additionalAuthenticatedData=(0,he.decode)(R.aad)}catch{throw new me.JWEInvalid("Failed to base64url decode the aad")}}if(R.unprotected!==undefined){He.sharedUnprotectedHeader=R.unprotected}if(R.header!==undefined){He.unprotectedHeader=R.header}if(Te){return{...He,key:pe}}return He}pe.flattenedDecrypt=flattenedDecrypt},4164:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedEncrypt=pe.unprotected=void 0;const he=Ae(78583);const ge=Ae(1175);const ye=Ae(67907);const me=Ae(77770);const ve=Ae(94290);const be=Ae(96204);const Ee=Ae(4118);const we=Ae(87243);const Ce=Ae(96029);pe.unprotected=Symbol();class FlattenedEncrypt{constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("plaintext must be an instance of Uint8Array")}this._plaintext=R}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._sharedUnprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._sharedUnprotectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}async encrypt(R,Ae){if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader){throw new be.JWEInvalid("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()")}if(!(0,Ee.default)(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader)){throw new be.JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint")}const _e={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};(0,Ce.default)(be.JWEInvalid,new Map,Ae===null||Ae===void 0?void 0:Ae.crit,this._protectedHeader,_e);if(_e.zip!==undefined){if(!this._protectedHeader||!this._protectedHeader.zip){throw new be.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}if(_e.zip!=="DEF"){throw new be.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}}const{alg:Ie,enc:Se}=_e;if(typeof Ie!=="string"||!Ie){throw new be.JWEInvalid('JWE "alg" (Algorithm) Header Parameter missing or invalid')}if(typeof Se!=="string"||!Se){throw new be.JWEInvalid('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid')}let Be;if(Ie==="dir"){if(this._cek){throw new TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}}else if(Ie==="ECDH-ES"){if(this._cek){throw new TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement")}}let ke;{let he;({cek:ke,encryptedKey:Be,parameters:he}=await(0,ve.default)(Ie,Se,R,this._cek,this._keyManagementParameters));if(he){if(Ae&&pe.unprotected in Ae){if(!this._unprotectedHeader){this.setUnprotectedHeader(he)}else{this._unprotectedHeader={...this._unprotectedHeader,...he}}}else{if(!this._protectedHeader){this.setProtectedHeader(he)}else{this._protectedHeader={...this._protectedHeader,...he}}}}}this._iv||(this._iv=(0,me.default)(Se));let Oe;let Re;let Qe;if(this._protectedHeader){Re=we.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{Re=we.encoder.encode("")}if(this._aad){Qe=(0,he.encode)(this._aad);Oe=(0,we.concat)(Re,we.encoder.encode("."),we.encoder.encode(Qe))}else{Oe=Re}let xe;let Pe;if(_e.zip==="DEF"){const R=await((Ae===null||Ae===void 0?void 0:Ae.deflateRaw)||ye.deflate)(this._plaintext);({ciphertext:xe,tag:Pe}=await(0,ge.default)(Se,R,ke,this._iv,Oe))}else{({ciphertext:xe,tag:Pe}=await(0,ge.default)(Se,this._plaintext,ke,this._iv,Oe))}const Te={ciphertext:(0,he.encode)(xe),iv:(0,he.encode)(this._iv),tag:(0,he.encode)(Pe)};if(Be){Te.encrypted_key=(0,he.encode)(Be)}if(Qe){Te.aad=Qe}if(this._protectedHeader){Te.protected=we.decoder.decode(Re)}if(this._sharedUnprotectedHeader){Te.unprotected=this._sharedUnprotectedHeader}if(this._unprotectedHeader){Te.header=this._unprotectedHeader}return Te}}pe.FlattenedEncrypt=FlattenedEncrypt},48028:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalDecrypt=void 0;const he=Ae(19479);const ge=Ae(96204);const ye=Ae(3240);async function generalDecrypt(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWEInvalid("General JWE must be an object")}if(!Array.isArray(R.recipients)||!R.recipients.every(ye.default)){throw new ge.JWEInvalid("JWE Recipients missing or incorrect type")}if(!R.recipients.length){throw new ge.JWEInvalid("JWE Recipients has no members")}for(const ge of R.recipients){try{return await(0,he.flattenedDecrypt)({aad:R.aad,ciphertext:R.ciphertext,encrypted_key:ge.encrypted_key,header:ge.header,iv:R.iv,protected:R.protected,tag:R.tag,unprotected:R.unprotected},pe,Ae)}catch{}}throw new ge.JWEDecryptionFailed}pe.generalDecrypt=generalDecrypt},71927:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralEncrypt=void 0;const he=Ae(4164);const ge=Ae(96204);const ye=Ae(64290);const me=Ae(4118);const ve=Ae(94290);const be=Ae(78583);const Ee=Ae(96029);class IndividualRecipient{constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addRecipient(...R){return this.parent.addRecipient(...R)}encrypt(...R){return this.parent.encrypt(...R)}done(){return this.parent}}class GeneralEncrypt{constructor(R){this._recipients=[];this._plaintext=R}addRecipient(R,pe){const Ae=new IndividualRecipient(this,R,{crit:pe===null||pe===void 0?void 0:pe.crit});this._recipients.push(Ae);return Ae}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}async encrypt(R){var pe,Ae,we;if(!this._recipients.length){throw new ge.JWEInvalid("at least one recipient must be added")}R={deflateRaw:R===null||R===void 0?void 0:R.deflateRaw};if(this._recipients.length===1){const[pe]=this._recipients;const Ae=await new he.FlattenedEncrypt(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(pe.unprotectedHeader).encrypt(pe.key,{...pe.options,...R});let ge={ciphertext:Ae.ciphertext,iv:Ae.iv,recipients:[{}],tag:Ae.tag};if(Ae.aad)ge.aad=Ae.aad;if(Ae.protected)ge.protected=Ae.protected;if(Ae.unprotected)ge.unprotected=Ae.unprotected;if(Ae.encrypted_key)ge.recipients[0].encrypted_key=Ae.encrypted_key;if(Ae.header)ge.recipients[0].header=Ae.header;return ge}let Ce;for(let R=0;R{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EmbeddedJWK=void 0;const he=Ae(2646);const ge=Ae(3240);const ye=Ae(96204);async function EmbeddedJWK(R,pe){const Ae={...R,...pe===null||pe===void 0?void 0:pe.header};if(!(0,ge.default)(Ae.jwk)){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a JSON object')}const me=await(0,he.importJWK)({...Ae.jwk,ext:true},Ae.alg,true);if(me instanceof Uint8Array||me.type!=="public"){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a public key')}return me}pe.EmbeddedJWK=EmbeddedJWK},85213:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=void 0;const he=Ae(7461);const ge=Ae(78583);const ye=Ae(96204);const me=Ae(87243);const ve=Ae(3240);const check=(R,pe)=>{if(typeof R!=="string"||!R){throw new ye.JWKInvalid(`${pe} missing or invalid`)}};async function calculateJwkThumbprint(R,pe){if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe!==null&&pe!==void 0?pe:pe="sha256";if(pe!=="sha256"&&pe!=="sha384"&&pe!=="sha512"){throw new TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"')}let Ae;switch(R.kty){case"EC":check(R.crv,'"crv" (Curve) Parameter');check(R.x,'"x" (X Coordinate) Parameter');check(R.y,'"y" (Y Coordinate) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x,y:R.y};break;case"OKP":check(R.crv,'"crv" (Subtype of Key Pair) Parameter');check(R.x,'"x" (Public Key) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x};break;case"RSA":check(R.e,'"e" (Exponent) Parameter');check(R.n,'"n" (Modulus) Parameter');Ae={e:R.e,kty:R.kty,n:R.n};break;case"oct":check(R.k,'"k" (Key Value) Parameter');Ae={k:R.k,kty:R.kty};break;default:throw new ye.JOSENotSupported('"kty" (Key Type) Parameter missing or unsupported')}const be=me.encoder.encode(JSON.stringify(Ae));return(0,ge.encode)(await(0,he.default)(pe,be))}pe.calculateJwkThumbprint=calculateJwkThumbprint;async function calculateJwkThumbprintUri(R,pe){pe!==null&&pe!==void 0?pe:pe="sha256";const Ae=await calculateJwkThumbprint(R,pe);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${pe.slice(-3)}:${Ae}`}pe.calculateJwkThumbprintUri=calculateJwkThumbprintUri},29840:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createLocalJWKSet=pe.LocalJWKSet=pe.isJWKSLike=void 0;const he=Ae(2646);const ge=Ae(96204);const ye=Ae(3240);function getKtyFromAlg(R){switch(typeof R==="string"&&R.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new ge.JOSENotSupported('Unsupported "alg" value for a JSON Web Key Set')}}function isJWKSLike(R){return R&&typeof R==="object"&&Array.isArray(R.keys)&&R.keys.every(isJWKLike)}pe.isJWKSLike=isJWKSLike;function isJWKLike(R){return(0,ye.default)(R)}function clone(R){if(typeof structuredClone==="function"){return structuredClone(R)}return JSON.parse(JSON.stringify(R))}class LocalJWKSet{constructor(R){this._cached=new WeakMap;if(!isJWKSLike(R)){throw new ge.JWKSInvalid("JSON Web Key Set malformed")}this._jwks=clone(R)}async getKey(R,pe){const{alg:Ae,kid:he}={...R,...pe===null||pe===void 0?void 0:pe.header};const ye=getKtyFromAlg(Ae);const me=this._jwks.keys.filter((R=>{let pe=ye===R.kty;if(pe&&typeof he==="string"){pe=he===R.kid}if(pe&&typeof R.alg==="string"){pe=Ae===R.alg}if(pe&&typeof R.use==="string"){pe=R.use==="sig"}if(pe&&Array.isArray(R.key_ops)){pe=R.key_ops.includes("verify")}if(pe&&Ae==="EdDSA"){pe=R.crv==="Ed25519"||R.crv==="Ed448"}if(pe){switch(Ae){case"ES256":pe=R.crv==="P-256";break;case"ES256K":pe=R.crv==="secp256k1";break;case"ES384":pe=R.crv==="P-384";break;case"ES512":pe=R.crv==="P-521";break}}return pe}));const{0:ve,length:be}=me;if(be===0){throw new ge.JWKSNoMatchingKey}else if(be!==1){const R=new ge.JWKSMultipleMatchingKeys;const{_cached:pe}=this;R[Symbol.asyncIterator]=async function*(){for(const R of me){try{yield await importWithAlgCache(pe,R,Ae)}catch{continue}}};throw R}return importWithAlgCache(this._cached,ve,Ae)}}pe.LocalJWKSet=LocalJWKSet;async function importWithAlgCache(R,pe,Ae){const ye=R.get(pe)||R.set(pe,{}).get(pe);if(ye[Ae]===undefined){const R=await(0,he.importJWK)({...pe,ext:true},Ae);if(R instanceof Uint8Array||R.type!=="public"){throw new ge.JWKSInvalid("JSON Web Key Set members must be public keys")}ye[Ae]=R}return ye[Ae]}function createLocalJWKSet(R){const pe=new LocalJWKSet(R);return async function(R,Ae){return pe.getKey(R,Ae)}}pe.createLocalJWKSet=createLocalJWKSet},10469:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createRemoteJWKSet=void 0;const he=Ae(15176);const ge=Ae(96204);const ye=Ae(29840);function isCloudflareWorkers(){return typeof WebSocketPair!=="undefined"||typeof navigator!=="undefined"&&navigator.userAgent==="Cloudflare-Workers"||typeof EdgeRuntime!=="undefined"&&EdgeRuntime==="vercel"}class RemoteJWKSet extends ye.LocalJWKSet{constructor(R,pe){super({keys:[]});this._jwks=undefined;if(!(R instanceof URL)){throw new TypeError("url must be an instance of URL")}this._url=new URL(R.href);this._options={agent:pe===null||pe===void 0?void 0:pe.agent,headers:pe===null||pe===void 0?void 0:pe.headers};this._timeoutDuration=typeof(pe===null||pe===void 0?void 0:pe.timeoutDuration)==="number"?pe===null||pe===void 0?void 0:pe.timeoutDuration:5e3;this._cooldownDuration=typeof(pe===null||pe===void 0?void 0:pe.cooldownDuration)==="number"?pe===null||pe===void 0?void 0:pe.cooldownDuration:3e4;this._cacheMaxAge=typeof(pe===null||pe===void 0?void 0:pe.cacheMaxAge)==="number"?pe===null||pe===void 0?void 0:pe.cacheMaxAge:6e5}coolingDown(){return typeof this._jwksTimestamp==="number"?Date.now(){if(!(0,ye.isJWKSLike)(R)){throw new ge.JWKSInvalid("JSON Web Key Set malformed")}this._jwks={keys:R.keys};this._jwksTimestamp=Date.now();this._pendingFetch=undefined})).catch((R=>{this._pendingFetch=undefined;throw R})));await this._pendingFetch}}function createRemoteJWKSet(R,pe){const Ae=new RemoteJWKSet(R,pe);return async function(R,pe){return Ae.getKey(R,pe)}}pe.createRemoteJWKSet=createRemoteJWKSet},76658:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactSign=void 0;const he=Ae(37658);class CompactSign{constructor(R){this._flattened=new he.FlattenedSign(R)}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}async sign(R,pe){const Ae=await this._flattened.sign(R,pe);if(Ae.payload===undefined){throw new TypeError("use the flattened module for creating JWS with b64: false")}return`${Ae.protected}.${Ae.payload}.${Ae.signature}`}}pe.CompactSign=CompactSign},17420:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactVerify=void 0;const he=Ae(20214);const ge=Ae(96204);const ye=Ae(87243);async function compactVerify(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWSInvalid("Compact JWS must be a string or Uint8Array")}const{0:me,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3){throw new ge.JWSInvalid("Invalid Compact JWS")}const we=await(0,he.flattenedVerify)({payload:ve,protected:me,signature:be},pe,Ae);const Ce={payload:we.payload,protectedHeader:we.protectedHeader};if(typeof pe==="function"){return{...Ce,key:we.key}}return Ce}pe.compactVerify=compactVerify},37658:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedSign=void 0;const he=Ae(78583);const ge=Ae(55602);const ye=Ae(4118);const me=Ae(96204);const ve=Ae(87243);const be=Ae(85263);const Ee=Ae(96029);class FlattenedSign{constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("payload must be an instance of Uint8Array")}this._payload=R}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}async sign(R,pe){if(!this._protectedHeader&&!this._unprotectedHeader){throw new me.JWSInvalid("either setProtectedHeader or setUnprotectedHeader must be called before #sign()")}if(!(0,ye.default)(this._protectedHeader,this._unprotectedHeader)){throw new me.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Ae={...this._protectedHeader,...this._unprotectedHeader};const we=(0,Ee.default)(me.JWSInvalid,new Map([["b64",true]]),pe===null||pe===void 0?void 0:pe.crit,this._protectedHeader,Ae);let Ce=true;if(we.has("b64")){Ce=this._protectedHeader.b64;if(typeof Ce!=="boolean"){throw new me.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:_e}=Ae;if(typeof _e!=="string"||!_e){throw new me.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}(0,be.default)(_e,R,"sign");let Ie=this._payload;if(Ce){Ie=ve.encoder.encode((0,he.encode)(Ie))}let Se;if(this._protectedHeader){Se=ve.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{Se=ve.encoder.encode("")}const Be=(0,ve.concat)(Se,ve.encoder.encode("."),Ie);const ke=await(0,ge.default)(_e,R,Be);const Oe={signature:(0,he.encode)(ke),payload:""};if(Ce){Oe.payload=ve.decoder.decode(Ie)}if(this._unprotectedHeader){Oe.header=this._unprotectedHeader}if(this._protectedHeader){Oe.protected=ve.decoder.decode(Se)}return Oe}}pe.FlattenedSign=FlattenedSign},20214:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedVerify=void 0;const he=Ae(78583);const ge=Ae(74706);const ye=Ae(96204);const me=Ae(87243);const ve=Ae(4118);const be=Ae(3240);const Ee=Ae(85263);const we=Ae(96029);const Ce=Ae(21834);async function flattenedVerify(R,pe,Ae){var _e;if(!(0,be.default)(R)){throw new ye.JWSInvalid("Flattened JWS must be an object")}if(R.protected===undefined&&R.header===undefined){throw new ye.JWSInvalid('Flattened JWS must have either of the "protected" or "header" members')}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new ye.JWSInvalid("JWS Protected Header incorrect type")}if(R.payload===undefined){throw new ye.JWSInvalid("JWS Payload missing")}if(typeof R.signature!=="string"){throw new ye.JWSInvalid("JWS Signature missing or incorrect type")}if(R.header!==undefined&&!(0,be.default)(R.header)){throw new ye.JWSInvalid("JWS Unprotected Header incorrect type")}let Ie={};if(R.protected){try{const pe=(0,he.decode)(R.protected);Ie=JSON.parse(me.decoder.decode(pe))}catch{throw new ye.JWSInvalid("JWS Protected Header is invalid")}}if(!(0,ve.default)(Ie,R.header)){throw new ye.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Se={...Ie,...R.header};const Be=(0,we.default)(ye.JWSInvalid,new Map([["b64",true]]),Ae===null||Ae===void 0?void 0:Ae.crit,Ie,Se);let ke=true;if(Be.has("b64")){ke=Ie.b64;if(typeof ke!=="boolean"){throw new ye.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:Oe}=Se;if(typeof Oe!=="string"||!Oe){throw new ye.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}const Re=Ae&&(0,Ce.default)("algorithms",Ae.algorithms);if(Re&&!Re.has(Oe)){throw new ye.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed')}if(ke){if(typeof R.payload!=="string"){throw new ye.JWSInvalid("JWS Payload must be a string")}}else if(typeof R.payload!=="string"&&!(R.payload instanceof Uint8Array)){throw new ye.JWSInvalid("JWS Payload must be a string or an Uint8Array instance")}let Qe=false;if(typeof pe==="function"){pe=await pe(Ie,R);Qe=true}(0,Ee.default)(Oe,pe,"verify");const xe=(0,me.concat)(me.encoder.encode((_e=R.protected)!==null&&_e!==void 0?_e:""),me.encoder.encode("."),typeof R.payload==="string"?me.encoder.encode(R.payload):R.payload);let Pe;try{Pe=(0,he.decode)(R.signature)}catch{throw new ye.JWSInvalid("Failed to base64url decode the signature")}const Te=await(0,ge.default)(Oe,pe,Pe,xe);if(!Te){throw new ye.JWSSignatureVerificationFailed}let De;if(ke){try{De=(0,he.decode)(R.payload)}catch{throw new ye.JWSInvalid("Failed to base64url decode the payload")}}else if(typeof R.payload==="string"){De=me.encoder.encode(R.payload)}else{De=R.payload}const Ne={payload:De};if(R.protected!==undefined){Ne.protectedHeader=Ie}if(R.header!==undefined){Ne.unprotectedHeader=R.header}if(Qe){return{...Ne,key:pe}}return Ne}pe.flattenedVerify=flattenedVerify},69635:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralSign=void 0;const he=Ae(37658);const ge=Ae(96204);class IndividualSignature{constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setProtectedHeader(R){if(this.protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this.protectedHeader=R;return this}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addSignature(...R){return this.parent.addSignature(...R)}sign(...R){return this.parent.sign(...R)}done(){return this.parent}}class GeneralSign{constructor(R){this._signatures=[];this._payload=R}addSignature(R,pe){const Ae=new IndividualSignature(this,R,pe);this._signatures.push(Ae);return Ae}async sign(){if(!this._signatures.length){throw new ge.JWSInvalid("at least one signature must be added")}const R={signatures:[],payload:""};for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalVerify=void 0;const he=Ae(20214);const ge=Ae(96204);const ye=Ae(3240);async function generalVerify(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWSInvalid("General JWS must be an object")}if(!Array.isArray(R.signatures)||!R.signatures.every(ye.default)){throw new ge.JWSInvalid("JWS Signatures missing or incorrect type")}for(const ge of R.signatures){try{return await(0,he.flattenedVerify)({header:ge.header,payload:R.payload,protected:ge.protected,signature:ge.signature},pe,Ae)}catch{}}throw new ge.JWSSignatureVerificationFailed}pe.generalVerify=generalVerify},54485:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtDecrypt=void 0;const he=Ae(86017);const ge=Ae(369);const ye=Ae(96204);async function jwtDecrypt(R,pe,Ae){const me=await(0,he.compactDecrypt)(R,pe,Ae);const ve=(0,ge.default)(me.protectedHeader,me.plaintext,Ae);const{protectedHeader:be}=me;if(be.iss!==undefined&&be.iss!==ve.iss){throw new ye.JWTClaimValidationFailed('replicated "iss" claim header parameter mismatch',"iss","mismatch")}if(be.sub!==undefined&&be.sub!==ve.sub){throw new ye.JWTClaimValidationFailed('replicated "sub" claim header parameter mismatch',"sub","mismatch")}if(be.aud!==undefined&&JSON.stringify(be.aud)!==JSON.stringify(ve.aud)){throw new ye.JWTClaimValidationFailed('replicated "aud" claim header parameter mismatch',"aud","mismatch")}const Ee={payload:ve,protectedHeader:be};if(typeof pe==="function"){return{...Ee,key:me.key}}return Ee}pe.jwtDecrypt=jwtDecrypt},73799:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncryptJWT=void 0;const he=Ae(11217);const ge=Ae(87243);const ye=Ae(35482);class EncryptJWT extends ye.ProduceJWT{setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}replicateIssuerAsHeader(){this._replicateIssuerAsHeader=true;return this}replicateSubjectAsHeader(){this._replicateSubjectAsHeader=true;return this}replicateAudienceAsHeader(){this._replicateAudienceAsHeader=true;return this}async encrypt(R,pe){const Ae=new he.CompactEncrypt(ge.encoder.encode(JSON.stringify(this._payload)));if(this._replicateIssuerAsHeader){this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}}if(this._replicateSubjectAsHeader){this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}}if(this._replicateAudienceAsHeader){this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}}Ae.setProtectedHeader(this._protectedHeader);if(this._iv){Ae.setInitializationVector(this._iv)}if(this._cek){Ae.setContentEncryptionKey(this._cek)}if(this._keyManagementParameters){Ae.setKeyManagementParameters(this._keyManagementParameters)}return Ae.encrypt(R,pe)}}pe.EncryptJWT=EncryptJWT},35482:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ProduceJWT=void 0;const he=Ae(85381);const ge=Ae(3240);const ye=Ae(84289);class ProduceJWT{constructor(R){if(!(0,ge.default)(R)){throw new TypeError("JWT Claims Set MUST be an object")}this._payload=R}setIssuer(R){this._payload={...this._payload,iss:R};return this}setSubject(R){this._payload={...this._payload,sub:R};return this}setAudience(R){this._payload={...this._payload,aud:R};return this}setJti(R){this._payload={...this._payload,jti:R};return this}setNotBefore(R){if(typeof R==="number"){this._payload={...this._payload,nbf:R}}else{this._payload={...this._payload,nbf:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setExpirationTime(R){if(typeof R==="number"){this._payload={...this._payload,exp:R}}else{this._payload={...this._payload,exp:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setIssuedAt(R){if(typeof R==="undefined"){this._payload={...this._payload,iat:(0,he.default)(new Date)}}else{this._payload={...this._payload,iat:R}}return this}}pe.ProduceJWT=ProduceJWT},34321:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SignJWT=void 0;const he=Ae(76658);const ge=Ae(96204);const ye=Ae(87243);const me=Ae(35482);class SignJWT extends me.ProduceJWT{setProtectedHeader(R){this._protectedHeader=R;return this}async sign(R,pe){var Ae;const me=new he.CompactSign(ye.encoder.encode(JSON.stringify(this._payload)));me.setProtectedHeader(this._protectedHeader);if(Array.isArray((Ae=this._protectedHeader)===null||Ae===void 0?void 0:Ae.crit)&&this._protectedHeader.crit.includes("b64")&&this._protectedHeader.b64===false){throw new ge.JWTInvalid("JWTs MUST NOT use unencoded payload")}return me.sign(R,pe)}}pe.SignJWT=SignJWT},35042:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.UnsecuredJWT=void 0;const he=Ae(78583);const ge=Ae(87243);const ye=Ae(96204);const me=Ae(369);const ve=Ae(35482);class UnsecuredJWT extends ve.ProduceJWT{encode(){const R=he.encode(JSON.stringify({alg:"none"}));const pe=he.encode(JSON.stringify(this._payload));return`${R}.${pe}.`}static decode(R,pe){if(typeof R!=="string"){throw new ye.JWTInvalid("Unsecured JWT must be a string")}const{0:Ae,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3||be!==""){throw new ye.JWTInvalid("Invalid Unsecured JWT")}let we;try{we=JSON.parse(ge.decoder.decode(he.decode(Ae)));if(we.alg!=="none")throw new Error}catch{throw new ye.JWTInvalid("Invalid Unsecured JWT")}const Ce=(0,me.default)(we,he.decode(ve),pe);return{payload:Ce,header:we}}}pe.UnsecuredJWT=UnsecuredJWT},46397:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtVerify=void 0;const he=Ae(17420);const ge=Ae(369);const ye=Ae(96204);async function jwtVerify(R,pe,Ae){var me;const ve=await(0,he.compactVerify)(R,pe,Ae);if(((me=ve.protectedHeader.crit)===null||me===void 0?void 0:me.includes("b64"))&&ve.protectedHeader.b64===false){throw new ye.JWTInvalid("JWTs MUST NOT use unencoded payload")}const be=(0,ge.default)(ve.protectedHeader,ve.payload,Ae);const Ee={payload:be,protectedHeader:ve.protectedHeader};if(typeof pe==="function"){return{...Ee,key:ve.key}}return Ee}pe.jwtVerify=jwtVerify},11055:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exportJWK=pe.exportPKCS8=pe.exportSPKI=void 0;const he=Ae(98426);const ge=Ae(98426);const ye=Ae(31986);async function exportSPKI(R){return(0,he.toSPKI)(R)}pe.exportSPKI=exportSPKI;async function exportPKCS8(R){return(0,ge.toPKCS8)(R)}pe.exportPKCS8=exportPKCS8;async function exportJWK(R){return(0,ye.default)(R)}pe.exportJWK=exportJWK},61039:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=void 0;const he=Ae(53782);async function generateKeyPair(R,pe){return(0,he.generateKeyPair)(R,pe)}pe.generateKeyPair=generateKeyPair},78733:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateSecret=void 0;const he=Ae(53782);async function generateSecret(R,pe){return(0,he.generateSecret)(R,pe)}pe.generateSecret=generateSecret},2646:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.importJWK=pe.importPKCS8=pe.importX509=pe.importSPKI=void 0;const he=Ae(78583);const ge=Ae(98426);const ye=Ae(41010);const me=Ae(96204);const ve=Ae(3240);async function importSPKI(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PUBLIC KEY-----")!==0){throw new TypeError('"spki" must be SPKI formatted string')}return(0,ge.fromSPKI)(R,pe,Ae)}pe.importSPKI=importSPKI;async function importX509(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN CERTIFICATE-----")!==0){throw new TypeError('"x509" must be X.509 formatted string')}return(0,ge.fromX509)(R,pe,Ae)}pe.importX509=importX509;async function importPKCS8(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PRIVATE KEY-----")!==0){throw new TypeError('"pkcs8" must be PKCS#8 formatted string')}return(0,ge.fromPKCS8)(R,pe,Ae)}pe.importPKCS8=importPKCS8;async function importJWK(R,pe,Ae){var ge;if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe||(pe=R.alg);switch(R.kty){case"oct":if(typeof R.k!=="string"||!R.k){throw new TypeError('missing "k" (Key Value) Parameter value')}Ae!==null&&Ae!==void 0?Ae:Ae=R.ext!==true;if(Ae){return(0,ye.default)({...R,alg:pe,ext:(ge=R.ext)!==null&&ge!==void 0?ge:false})}return(0,he.decode)(R.k);case"RSA":if(R.oth!==undefined){throw new me.JOSENotSupported('RSA JWK "oth" (Other Primes Info) Parameter value is not supported')}case"EC":case"OKP":return(0,ye.default)({...R,alg:pe});default:throw new me.JOSENotSupported('Unsupported "kty" (Key Type) Parameter value')}}pe.importJWK=importJWK},62857:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(1175);const ge=Ae(29547);const ye=Ae(77770);const me=Ae(78583);async function wrap(R,pe,Ae,ge){const ve=R.slice(0,7);ge||(ge=(0,ye.default)(ve));const{ciphertext:be,tag:Ee}=await(0,he.default)(ve,Ae,pe,ge,new Uint8Array(0));return{encryptedKey:be,iv:(0,me.encode)(ge),tag:(0,me.encode)(Ee)}}pe.wrap=wrap;async function unwrap(R,pe,Ae,he,ye){const me=R.slice(0,7);return(0,ge.default)(me,pe,Ae,he,ye,new Uint8Array(0))}pe.unwrap=unwrap},87243:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatKdf=pe.lengthAndInput=pe.uint32be=pe.uint64be=pe.p2s=pe.concat=pe.decoder=pe.encoder=void 0;const he=Ae(7461);pe.encoder=new TextEncoder;pe.decoder=new TextDecoder;const ge=2**32;function concat(...R){const pe=R.reduce(((R,{length:pe})=>R+pe),0);const Ae=new Uint8Array(pe);let he=0;R.forEach((R=>{Ae.set(R,he);he+=R.length}));return Ae}pe.concat=concat;function p2s(R,Ae){return concat(pe.encoder.encode(R),new Uint8Array([0]),Ae)}pe.p2s=p2s;function writeUInt32BE(R,pe,Ae){if(pe<0||pe>=ge){throw new RangeError(`value must be >= 0 and <= ${ge-1}. Received ${pe}`)}R.set([pe>>>24,pe>>>16,pe>>>8,pe&255],Ae)}function uint64be(R){const pe=Math.floor(R/ge);const Ae=R%ge;const he=new Uint8Array(8);writeUInt32BE(he,pe,0);writeUInt32BE(he,Ae,4);return he}pe.uint64be=uint64be;function uint32be(R){const pe=new Uint8Array(4);writeUInt32BE(pe,R);return pe}pe.uint32be=uint32be;function lengthAndInput(R){return concat(uint32be(R.length),R)}pe.lengthAndInput=lengthAndInput;async function concatKdf(R,pe,Ae){const ge=Math.ceil((pe>>3)/32);const ye=new Uint8Array(ge*32);for(let pe=0;pe>3)}pe.concatKdf=concatKdf},64290:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(96204);const ge=Ae(38516);function bitLength(R){switch(R){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},17594:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);const ge=Ae(77770);const checkIvLength=(R,pe)=>{if(pe.length<<3!==(0,ge.bitLength)(R)){throw new he.JWEInvalid("Invalid Initialization Vector length")}};pe["default"]=checkIvLength},85263:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(99398);const ge=Ae(3053);const symmetricTypeCheck=(R,pe)=>{if(pe instanceof Uint8Array)return;if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types,"Uint8Array"))}if(pe.type!=="secret"){throw new TypeError(`${ge.types.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}};const asymmetricTypeCheck=(R,pe,Ae)=>{if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types))}if(pe.type==="secret"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`)}if(Ae==="sign"&&pe.type==="public"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`)}if(Ae==="decrypt"&&pe.type==="public"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`)}if(pe.algorithm&&Ae==="verify"&&pe.type==="private"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`)}if(pe.algorithm&&Ae==="encrypt"&&pe.type==="private"){throw new TypeError(`${ge.types.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)}};const checkKeyType=(R,pe,Ae)=>{const he=R.startsWith("HS")||R==="dir"||R.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(R);if(he){symmetricTypeCheck(R,pe)}else{asymmetricTypeCheck(R,pe,Ae)}};pe["default"]=checkKeyType},10414:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);function checkP2s(R){if(!(R instanceof Uint8Array)||R.length<8){throw new he.JWEInvalid("PBES2 Salt Input must be 8 or more octets")}}pe["default"]=checkP2s},61489:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.checkEncCryptoKey=pe.checkSigCryptoKey=void 0;function unusable(R,pe="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${pe} must be ${R}`)}function isAlgorithm(R,pe){return R.name===pe}function getHashLength(R){return parseInt(R.name.slice(4),10)}function getNamedCurve(R){switch(R){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function checkUsage(R,pe){if(pe.length&&!pe.some((pe=>R.usages.includes(pe)))){let R="CryptoKey does not support this operation, its usages must include ";if(pe.length>2){const Ae=pe.pop();R+=`one of ${pe.join(", ")}, or ${Ae}.`}else if(pe.length===2){R+=`one of ${pe[0]} or ${pe[1]}.`}else{R+=`${pe[0]}.`}throw new TypeError(R)}}function checkSigCryptoKey(R,pe,...Ae){switch(pe){case"HS256":case"HS384":case"HS512":{if(!isAlgorithm(R.algorithm,"HMAC"))throw unusable("HMAC");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!isAlgorithm(R.algorithm,"RSASSA-PKCS1-v1_5"))throw unusable("RSASSA-PKCS1-v1_5");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!isAlgorithm(R.algorithm,"RSA-PSS"))throw unusable("RSA-PSS");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"EdDSA":{if(R.algorithm.name!=="Ed25519"&&R.algorithm.name!=="Ed448"){throw unusable("Ed25519 or Ed448")}break}case"ES256":case"ES384":case"ES512":{if(!isAlgorithm(R.algorithm,"ECDSA"))throw unusable("ECDSA");const Ae=getNamedCurve(pe);const he=R.algorithm.namedCurve;if(he!==Ae)throw unusable(Ae,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkSigCryptoKey=checkSigCryptoKey;function checkEncCryptoKey(R,pe,...Ae){switch(pe){case"A128GCM":case"A192GCM":case"A256GCM":{if(!isAlgorithm(R.algorithm,"AES-GCM"))throw unusable("AES-GCM");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!isAlgorithm(R.algorithm,"AES-KW"))throw unusable("AES-KW");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"ECDH":{switch(R.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw unusable("ECDH, X25519, or X448")}break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!isAlgorithm(R.algorithm,"PBKDF2"))throw unusable("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!isAlgorithm(R.algorithm,"RSA-OAEP"))throw unusable("RSA-OAEP");const Ae=parseInt(pe.slice(9),10)||1;const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkEncCryptoKey=checkEncCryptoKey},87782:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(2666);const ge=Ae(81314);const ye=Ae(63436);const me=Ae(74319);const ve=Ae(78583);const be=Ae(96204);const Ee=Ae(64290);const we=Ae(2646);const Ce=Ae(85263);const _e=Ae(3240);const Ie=Ae(62857);async function decryptKeyManagement(R,pe,Ae,Se,Be){(0,Ce.default)(R,pe,"decrypt");switch(R){case"dir":{if(Ae!==undefined)throw new be.JWEInvalid("Encountered unexpected JWE Encrypted Key");return pe}case"ECDH-ES":if(Ae!==undefined)throw new be.JWEInvalid("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!(0,_e.default)(Se.epk))throw new be.JWEInvalid(`JOSE Header "epk" (Ephemeral Public Key) missing or invalid`);if(!ge.ecdhAllowed(pe))throw new be.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime");const ye=await(0,we.importJWK)(Se.epk,R);let me;let Ce;if(Se.apu!==undefined){if(typeof Se.apu!=="string")throw new be.JWEInvalid(`JOSE Header "apu" (Agreement PartyUInfo) invalid`);try{me=(0,ve.decode)(Se.apu)}catch{throw new be.JWEInvalid("Failed to base64url decode the apu")}}if(Se.apv!==undefined){if(typeof Se.apv!=="string")throw new be.JWEInvalid(`JOSE Header "apv" (Agreement PartyVInfo) invalid`);try{Ce=(0,ve.decode)(Se.apv)}catch{throw new be.JWEInvalid("Failed to base64url decode the apv")}}const Ie=await ge.deriveKey(ye,pe,R==="ECDH-ES"?Se.enc:R,R==="ECDH-ES"?(0,Ee.bitLength)(Se.enc):parseInt(R.slice(-5,-2),10),me,Ce);if(R==="ECDH-ES")return Ie;if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R.slice(-6),Ie,Ae)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,me.decrypt)(R,pe,Ae)}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");if(typeof Se.p2c!=="number")throw new be.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) missing or invalid`);const he=(Be===null||Be===void 0?void 0:Be.maxPBES2Count)||1e4;if(Se.p2c>he)throw new be.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds`);if(typeof Se.p2s!=="string")throw new be.JWEInvalid(`JOSE Header "p2s" (PBES2 Salt) missing or invalid`);let ge;try{ge=(0,ve.decode)(Se.p2s)}catch{throw new be.JWEInvalid("Failed to base64url decode the p2s")}return(0,ye.decrypt)(R,pe,Ae,Se.p2c,ge)}case"A128KW":case"A192KW":case"A256KW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R,pe,Ae)}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{if(Ae===undefined)throw new be.JWEInvalid("JWE Encrypted Key missing");if(typeof Se.iv!=="string")throw new be.JWEInvalid(`JOSE Header "iv" (Initialization Vector) missing or invalid`);if(typeof Se.tag!=="string")throw new be.JWEInvalid(`JOSE Header "tag" (Authentication Tag) missing or invalid`);let he;try{he=(0,ve.decode)(Se.iv)}catch{throw new be.JWEInvalid("Failed to base64url decode the iv")}let ge;try{ge=(0,ve.decode)(Se.tag)}catch{throw new be.JWEInvalid("Failed to base64url decode the tag")}return(0,Ie.unwrap)(R,pe,Ae,he,ge)}default:{throw new be.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}}pe["default"]=decryptKeyManagement},94290:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(2666);const ge=Ae(81314);const ye=Ae(63436);const me=Ae(74319);const ve=Ae(78583);const be=Ae(64290);const Ee=Ae(96204);const we=Ae(11055);const Ce=Ae(85263);const _e=Ae(62857);async function encryptKeyManagement(R,pe,Ae,Ie,Se={}){let Be;let ke;let Oe;(0,Ce.default)(R,Ae,"encrypt");switch(R){case"dir":{Oe=Ae;break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ge.ecdhAllowed(Ae)){throw new Ee.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime")}const{apu:ye,apv:me}=Se;let{epk:Ce}=Se;Ce||(Ce=(await ge.generateEpk(Ae)).privateKey);const{x:_e,y:Re,crv:Qe,kty:xe}=await(0,we.exportJWK)(Ce);const Pe=await ge.deriveKey(Ae,Ce,R==="ECDH-ES"?pe:R,R==="ECDH-ES"?(0,be.bitLength)(pe):parseInt(R.slice(-5,-2),10),ye,me);ke={epk:{x:_e,crv:Qe,kty:xe}};if(xe==="EC")ke.epk.y=Re;if(ye)ke.apu=(0,ve.encode)(ye);if(me)ke.apv=(0,ve.encode)(me);if(R==="ECDH-ES"){Oe=Pe;break}Oe=Ie||(0,be.default)(pe);const Te=R.slice(-6);Be=await(0,he.wrap)(Te,Pe,Oe);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{Oe=Ie||(0,be.default)(pe);Be=await(0,me.encrypt)(R,Ae,Oe);break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{Oe=Ie||(0,be.default)(pe);const{p2c:he,p2s:ge}=Se;({encryptedKey:Be,...ke}=await(0,ye.encrypt)(R,Ae,Oe,he,ge));break}case"A128KW":case"A192KW":case"A256KW":{Oe=Ie||(0,be.default)(pe);Be=await(0,he.wrap)(R,Ae,Oe);break}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{Oe=Ie||(0,be.default)(pe);const{iv:he}=Se;({encryptedKey:Be,...ke}=await(0,_e.wrap)(R,Ae,Oe,he));break}default:{throw new Ee.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}return{cek:Oe,encryptedKey:Be,parameters:ke}}pe["default"]=encryptKeyManagement},85381:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=R=>Math.floor(R.getTime()/1e3)},99398:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.withAlg=void 0;function message(R,pe,...Ae){if(Ae.length>2){const pe=Ae.pop();R+=`one of type ${Ae.join(", ")}, or ${pe}.`}else if(Ae.length===2){R+=`one of type ${Ae[0]} or ${Ae[1]}.`}else{R+=`of type ${Ae[0]}.`}if(pe==null){R+=` Received ${pe}`}else if(typeof pe==="function"&&pe.name){R+=` Received function ${pe.name}`}else if(typeof pe==="object"&&pe!=null){if(pe.constructor&&pe.constructor.name){R+=` Received an instance of ${pe.constructor.name}`}}return R}pe["default"]=(R,...pe)=>message("Key must be ",R,...pe);function withAlg(R,pe,...Ae){return message(`Key for the ${R} algorithm must be `,pe,...Ae)}pe.withAlg=withAlg},4118:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const isDisjoint=(...R)=>{const pe=R.filter(Boolean);if(pe.length===0||pe.length===1){return true}let Ae;for(const R of pe){const pe=Object.keys(R);if(!Ae||Ae.size===0){Ae=new Set(pe);continue}for(const R of pe){if(Ae.has(R)){return false}Ae.add(R)}}return true};pe["default"]=isDisjoint},3240:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function isObjectLike(R){return typeof R==="object"&&R!==null}function isObject(R){if(!isObjectLike(R)||Object.prototype.toString.call(R)!=="[object Object]"){return false}if(Object.getPrototypeOf(R)===null){return true}let pe=R;while(Object.getPrototypeOf(pe)!==null){pe=Object.getPrototypeOf(pe)}return Object.getPrototypeOf(R)===pe}pe["default"]=isObject},77770:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(96204);const ge=Ae(38516);function bitLength(R){switch(R){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},369:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);const ge=Ae(87243);const ye=Ae(85381);const me=Ae(84289);const ve=Ae(3240);const normalizeTyp=R=>R.toLowerCase().replace(/^application\//,"");const checkAudiencePresence=(R,pe)=>{if(typeof R==="string"){return pe.includes(R)}if(Array.isArray(R)){return pe.some(Set.prototype.has.bind(new Set(R)))}return false};pe["default"]=(R,pe,Ae={})=>{const{typ:be}=Ae;if(be&&(typeof R.typ!=="string"||normalizeTyp(R.typ)!==normalizeTyp(be))){throw new he.JWTClaimValidationFailed('unexpected "typ" JWT header value',"typ","check_failed")}let Ee;try{Ee=JSON.parse(ge.decoder.decode(pe))}catch{}if(!(0,ve.default)(Ee)){throw new he.JWTInvalid("JWT Claims Set must be a top-level JSON object")}const{requiredClaims:we=[],issuer:Ce,subject:_e,audience:Ie,maxTokenAge:Se}=Ae;if(Se!==undefined)we.push("iat");if(Ie!==undefined)we.push("aud");if(_e!==undefined)we.push("sub");if(Ce!==undefined)we.push("iss");for(const R of new Set(we.reverse())){if(!(R in Ee)){throw new he.JWTClaimValidationFailed(`missing required "${R}" claim`,R,"missing")}}if(Ce&&!(Array.isArray(Ce)?Ce:[Ce]).includes(Ee.iss)){throw new he.JWTClaimValidationFailed('unexpected "iss" claim value',"iss","check_failed")}if(_e&&Ee.sub!==_e){throw new he.JWTClaimValidationFailed('unexpected "sub" claim value',"sub","check_failed")}if(Ie&&!checkAudiencePresence(Ee.aud,typeof Ie==="string"?[Ie]:Ie)){throw new he.JWTClaimValidationFailed('unexpected "aud" claim value',"aud","check_failed")}let Be;switch(typeof Ae.clockTolerance){case"string":Be=(0,me.default)(Ae.clockTolerance);break;case"number":Be=Ae.clockTolerance;break;case"undefined":Be=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:ke}=Ae;const Oe=(0,ye.default)(ke||new Date);if((Ee.iat!==undefined||Se)&&typeof Ee.iat!=="number"){throw new he.JWTClaimValidationFailed('"iat" claim must be a number',"iat","invalid")}if(Ee.nbf!==undefined){if(typeof Ee.nbf!=="number"){throw new he.JWTClaimValidationFailed('"nbf" claim must be a number',"nbf","invalid")}if(Ee.nbf>Oe+Be){throw new he.JWTClaimValidationFailed('"nbf" claim timestamp check failed',"nbf","check_failed")}}if(Ee.exp!==undefined){if(typeof Ee.exp!=="number"){throw new he.JWTClaimValidationFailed('"exp" claim must be a number',"exp","invalid")}if(Ee.exp<=Oe-Be){throw new he.JWTExpired('"exp" claim timestamp check failed',"exp","check_failed")}}if(Se){const R=Oe-Ee.iat;const pe=typeof Se==="number"?Se:(0,me.default)(Se);if(R-Be>pe){throw new he.JWTExpired('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed")}if(R<0-Be){throw new he.JWTClaimValidationFailed('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}}return Ee}},84289:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=60;const he=Ae*60;const ge=he*24;const ye=ge*7;const me=ge*365.25;const ve=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;pe["default"]=R=>{const pe=ve.exec(R);if(!pe){throw new TypeError("Invalid time period format")}const be=parseFloat(pe[1]);const Ee=pe[2].toLowerCase();switch(Ee){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(be);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(be*Ae);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(be*he);case"day":case"days":case"d":return Math.round(be*ge);case"week":case"weeks":case"w":return Math.round(be*ye);default:return Math.round(be*me)}}},21834:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const validateAlgorithms=(R,pe)=>{if(pe!==undefined&&(!Array.isArray(pe)||pe.some((R=>typeof R!=="string")))){throw new TypeError(`"${R}" option must be an array of strings`)}if(!pe){return undefined}return new Set(pe)};pe["default"]=validateAlgorithms},96029:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);function validateCrit(R,pe,Ae,ge,ye){if(ye.crit!==undefined&&ge.crit===undefined){throw new R('"crit" (Critical) Header Parameter MUST be integrity protected')}if(!ge||ge.crit===undefined){return new Set}if(!Array.isArray(ge.crit)||ge.crit.length===0||ge.crit.some((R=>typeof R!=="string"||R.length===0))){throw new R('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present')}let me;if(Ae!==undefined){me=new Map([...Object.entries(Ae),...pe.entries()])}else{me=pe}for(const pe of ge.crit){if(!me.has(pe)){throw new he.JOSENotSupported(`Extension Header Parameter "${pe}" is not recognized`)}if(ye[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" is missing`)}else if(me.get(pe)&&ge[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" MUST be integrity protected`)}}return new Set(ge.crit)}pe["default"]=validateCrit},2666:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(14300);const ge=Ae(6113);const ye=Ae(96204);const me=Ae(87243);const ve=Ae(94899);const be=Ae(61489);const Ee=Ae(26427);const we=Ae(99398);const Ce=Ae(45155);const _e=Ae(3053);function checkKeySize(R,pe){if(R.symmetricKeySize<<3!==parseInt(pe.slice(1,4),10)){throw new TypeError(`Invalid key size for alg: ${pe}`)}}function ensureKeyObject(R,pe,Ae){if((0,Ee.default)(R)){return R}if(R instanceof Uint8Array){return(0,ge.createSecretKey)(R)}if((0,ve.isCryptoKey)(R)){(0,be.checkEncCryptoKey)(R,pe,Ae);return ge.KeyObject.from(R)}throw new TypeError((0,we.default)(R,..._e.types,"Uint8Array"))}const wrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,Ce.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"wrapKey");checkKeySize(Ee,R);const we=(0,ge.createCipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(we.update(Ae),we.final())};pe.wrap=wrap;const unwrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,Ce.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"unwrapKey");checkKeySize(Ee,R);const we=(0,ge.createDecipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(we.update(Ae),we.final())};pe.unwrap=unwrap},98426:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromX509=pe.fromSPKI=pe.fromPKCS8=pe.toPKCS8=pe.toSPKI=void 0;const he=Ae(6113);const ge=Ae(14300);const ye=Ae(94899);const me=Ae(26427);const ve=Ae(99398);const be=Ae(3053);const genericExport=(R,pe,Ae)=>{let ge;if((0,ye.isCryptoKey)(Ae)){if(!Ae.extractable){throw new TypeError("CryptoKey is not extractable")}ge=he.KeyObject.from(Ae)}else if((0,me.default)(Ae)){ge=Ae}else{throw new TypeError((0,ve.default)(Ae,...be.types))}if(ge.type!==R){throw new TypeError(`key is not a ${R} key`)}return ge.export({format:"pem",type:pe})};const toSPKI=R=>genericExport("public","spki",R);pe.toSPKI=toSPKI;const toPKCS8=R=>genericExport("private","pkcs8",R);pe.toPKCS8=toPKCS8;const fromPKCS8=R=>(0,he.createPrivateKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,""),"base64"),type:"pkcs8",format:"der"});pe.fromPKCS8=fromPKCS8;const fromSPKI=R=>(0,he.createPublicKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,""),"base64"),type:"spki",format:"der"});pe.fromSPKI=fromSPKI;const fromX509=R=>(0,he.createPublicKey)({key:R,type:"spki",format:"pem"});pe.fromX509=fromX509},54236:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=2;const he=48;class Asn1SequenceDecoder{constructor(R){if(R[0]!==he){throw new TypeError}this.buffer=R;this.offset=1;const pe=this.decodeLength();if(pe!==R.length-this.offset){throw new TypeError}}decodeLength(){let R=this.buffer[this.offset++];if(R&128){const pe=R&~128;R=0;for(let Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(14300);const ge=Ae(96204);const ye=2;const me=3;const ve=4;const be=48;const Ee=he.Buffer.from([0]);const we=he.Buffer.from([ye]);const Ce=he.Buffer.from([me]);const _e=he.Buffer.from([be]);const Ie=he.Buffer.from([ve]);const encodeLength=R=>{if(R<128)return he.Buffer.from([R]);const pe=he.Buffer.alloc(5);pe.writeUInt32BE(R,1);let Ae=1;while(pe[Ae]===0)Ae++;pe[Ae-1]=128|5-Ae;return pe.slice(Ae-1)};const Se=new Map([["P-256",he.Buffer.from("06 08 2A 86 48 CE 3D 03 01 07".replace(/ /g,""),"hex")],["secp256k1",he.Buffer.from("06 05 2B 81 04 00 0A".replace(/ /g,""),"hex")],["P-384",he.Buffer.from("06 05 2B 81 04 00 22".replace(/ /g,""),"hex")],["P-521",he.Buffer.from("06 05 2B 81 04 00 23".replace(/ /g,""),"hex")],["ecPublicKey",he.Buffer.from("06 07 2A 86 48 CE 3D 02 01".replace(/ /g,""),"hex")],["X25519",he.Buffer.from("06 03 2B 65 6E".replace(/ /g,""),"hex")],["X448",he.Buffer.from("06 03 2B 65 6F".replace(/ /g,""),"hex")],["Ed25519",he.Buffer.from("06 03 2B 65 70".replace(/ /g,""),"hex")],["Ed448",he.Buffer.from("06 03 2B 65 71".replace(/ /g,""),"hex")]]);class DumbAsn1Encoder{constructor(){this.length=0;this.elements=[]}oidFor(R){const pe=Se.get(R);if(!pe){throw new ge.JOSENotSupported("Invalid or unsupported OID")}this.elements.push(pe);this.length+=pe.length}zero(){this.elements.push(we,he.Buffer.from([1]),Ee);this.length+=3}one(){this.elements.push(we,he.Buffer.from([1]),he.Buffer.from([1]));this.length+=3}unsignedInteger(R){if(R[0]&128){const pe=encodeLength(R.length+1);this.elements.push(we,pe,Ee,R);this.length+=2+pe.length+R.length}else{let pe=0;while(R[pe]===0&&(R[pe+1]&128)===0)pe++;const Ae=encodeLength(R.length-pe);this.elements.push(we,encodeLength(R.length-pe),R.slice(pe));this.length+=1+Ae.length+R.length-pe}}octStr(R){const pe=encodeLength(R.length);this.elements.push(Ie,encodeLength(R.length),R);this.length+=1+pe.length+R.length}bitStr(R){const pe=encodeLength(R.length+1);this.elements.push(Ce,encodeLength(R.length+1),Ee,R);this.length+=1+pe.length+R.length+1}add(R){this.elements.push(R);this.length+=R.length}end(R=_e){const pe=encodeLength(this.length);return he.Buffer.concat([R,pe,...this.elements],1+pe.length+this.length)}}pe["default"]=DumbAsn1Encoder},78583:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=pe.encodeBase64=pe.decodeBase64=void 0;const he=Ae(14300);const ge=Ae(87243);let ye;function normalize(R){let pe=R;if(pe instanceof Uint8Array){pe=ge.decoder.decode(pe)}return pe}if(he.Buffer.isEncoding("base64url")){pe.encode=ye=R=>he.Buffer.from(R).toString("base64url")}else{pe.encode=ye=R=>he.Buffer.from(R).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}const decodeBase64=R=>he.Buffer.from(R,"base64");pe.decodeBase64=decodeBase64;const encodeBase64=R=>he.Buffer.from(R).toString("base64");pe.encodeBase64=encodeBase64;const decode=R=>he.Buffer.from(normalize(R),"base64");pe.decode=decode},794:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(87243);function cbcTag(R,pe,Ae,ye,me,ve){const be=(0,ge.concat)(R,pe,Ae,(0,ge.uint64be)(R.length<<3));const Ee=(0,he.createHmac)(`sha${ye}`,me);Ee.update(be);return Ee.digest().slice(0,ve>>3)}pe["default"]=cbcTag},86114:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);const ge=Ae(26427);const checkCekLength=(R,pe)=>{let Ae;switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new he.JOSENotSupported(`Content Encryption Algorithm ${R} is not supported either by JOSE or your javascript runtime`)}if(pe instanceof Uint8Array){const R=pe.byteLength<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}if((0,ge.default)(pe)&&pe.type==="secret"){const R=pe.symmetricKeySize<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}throw new TypeError("Invalid Content Encryption Key type")};pe["default"]=checkCekLength},65082:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.setModulusLength=pe.weakMap=void 0;pe.weakMap=new WeakMap;const getLength=(R,pe)=>{let Ae=R.readUInt8(1);if((Ae&128)===0){if(pe===0){return Ae}return getLength(R.subarray(2+Ae),pe-1)}const he=Ae&127;Ae=0;for(let pe=0;pe{const Ae=R.readUInt8(1);if((Ae&128)===0){return getLength(R.subarray(2),pe)}const he=Ae&127;return getLength(R.subarray(2+he),pe)};const getModulusLength=R=>{var Ae,he;if(pe.weakMap.has(R)){return pe.weakMap.get(R)}const ge=(he=(Ae=R.asymmetricKeyDetails)===null||Ae===void 0?void 0:Ae.modulusLength)!==null&&he!==void 0?he:getLengthOfSeqIndex(R.export({format:"der",type:"pkcs1"}),R.type==="private"?1:0)-1<<3;pe.weakMap.set(R,ge);return ge};const setModulusLength=(R,Ae)=>{pe.weakMap.set(R,Ae)};pe.setModulusLength=setModulusLength;pe["default"]=(R,pe)=>{if(getModulusLength(R)<2048){throw new TypeError(`${pe} requires key modulusLength to be 2048 bits or larger`)}}},45155:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);let ge;pe["default"]=R=>{ge||(ge=new Set((0,he.getCiphers)()));return ge.has(R)}},29547:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(17594);const ye=Ae(86114);const me=Ae(87243);const ve=Ae(96204);const be=Ae(15411);const Ee=Ae(794);const we=Ae(94899);const Ce=Ae(61489);const _e=Ae(26427);const Ie=Ae(99398);const Se=Ae(45155);const Be=Ae(3053);function cbcDecrypt(R,pe,Ae,ge,ye,we){const Ce=parseInt(R.slice(1,4),10);if((0,_e.default)(pe)){pe=pe.export()}const Ie=pe.subarray(Ce>>3);const Be=pe.subarray(0,Ce>>3);const ke=parseInt(R.slice(-3),10);const Oe=`aes-${Ce}-cbc`;if(!(0,Se.default)(Oe)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Re=(0,Ee.default)(we,ge,Ae,ke,Be,Ce);let Qe;try{Qe=(0,be.default)(ye,Re)}catch{}if(!Qe){throw new ve.JWEDecryptionFailed}let xe;try{const R=(0,he.createDecipheriv)(Oe,Ie,ge);xe=(0,me.concat)(R.update(Ae),R.final())}catch{}if(!xe){throw new ve.JWEDecryptionFailed}return xe}function gcmDecrypt(R,pe,Ae,ge,ye,me){const be=parseInt(R.slice(1,4),10);const Ee=`aes-${be}-gcm`;if(!(0,Se.default)(Ee)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}try{const R=(0,he.createDecipheriv)(Ee,pe,ge,{authTagLength:16});R.setAuthTag(ye);if(me.byteLength){R.setAAD(me,{plaintextLength:Ae.length})}const ve=R.update(Ae);R.final();return ve}catch{throw new ve.JWEDecryptionFailed}}const decrypt=(R,pe,Ae,me,be,Ee)=>{let Se;if((0,we.isCryptoKey)(pe)){(0,Ce.checkEncCryptoKey)(pe,R,"decrypt");Se=he.KeyObject.from(pe)}else if(pe instanceof Uint8Array||(0,_e.default)(pe)){Se=pe}else{throw new TypeError((0,Ie.default)(pe,...Be.types,"Uint8Array"))}(0,ye.default)(R,Se);(0,ge.default)(R,me);switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcDecrypt(R,Se,Ae,me,be,Ee);case"A128GCM":case"A192GCM":case"A256GCM":return gcmDecrypt(R,Se,Ae,me,be,Ee);default:throw new ve.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=decrypt},7461:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const digest=(R,pe)=>(0,he.createHash)(R).update(pe).digest();pe["default"]=digest},67688:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);function dsaDigest(R){switch(R){case"PS256":case"RS256":case"ES256":case"ES256K":return"sha256";case"PS384":case"RS384":case"ES384":return"sha384";case"PS512":case"RS512":case"ES512":return"sha512";case"EdDSA":return undefined;default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=dsaDigest},81314:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ecdhAllowed=pe.generateEpk=pe.deriveKey=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=Ae(75956);const me=Ae(87243);const ve=Ae(96204);const be=Ae(94899);const Ee=Ae(61489);const we=Ae(26427);const Ce=Ae(99398);const _e=Ae(3053);const Ie=(0,ge.promisify)(he.generateKeyPair);async function deriveKey(R,pe,Ae,ge,ye=new Uint8Array(0),ve=new Uint8Array(0)){let Ie;if((0,be.isCryptoKey)(R)){(0,Ee.checkEncCryptoKey)(R,"ECDH");Ie=he.KeyObject.from(R)}else if((0,we.default)(R)){Ie=R}else{throw new TypeError((0,Ce.default)(R,..._e.types))}let Se;if((0,be.isCryptoKey)(pe)){(0,Ee.checkEncCryptoKey)(pe,"ECDH","deriveBits");Se=he.KeyObject.from(pe)}else if((0,we.default)(pe)){Se=pe}else{throw new TypeError((0,Ce.default)(pe,..._e.types))}const Be=(0,me.concat)((0,me.lengthAndInput)(me.encoder.encode(Ae)),(0,me.lengthAndInput)(ye),(0,me.lengthAndInput)(ve),(0,me.uint32be)(ge));const ke=(0,he.diffieHellman)({privateKey:Se,publicKey:Ie});return(0,me.concatKdf)(ke,ge,Be)}pe.deriveKey=deriveKey;async function generateEpk(R){let pe;if((0,be.isCryptoKey)(R)){pe=he.KeyObject.from(R)}else if((0,we.default)(R)){pe=R}else{throw new TypeError((0,Ce.default)(R,..._e.types))}switch(pe.asymmetricKeyType){case"x25519":return Ie("x25519");case"x448":{return Ie("x448")}case"ec":{const R=(0,ye.default)(pe);return Ie("ec",{namedCurve:R})}default:throw new ve.JOSENotSupported("Invalid or unsupported EPK")}}pe.generateEpk=generateEpk;const ecdhAllowed=R=>["P-256","P-384","P-521","X25519","X448"].includes((0,ye.default)(R));pe.ecdhAllowed=ecdhAllowed},1175:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(17594);const ye=Ae(86114);const me=Ae(87243);const ve=Ae(794);const be=Ae(94899);const Ee=Ae(61489);const we=Ae(26427);const Ce=Ae(99398);const _e=Ae(96204);const Ie=Ae(45155);const Se=Ae(3053);function cbcEncrypt(R,pe,Ae,ge,ye){const be=parseInt(R.slice(1,4),10);if((0,we.default)(Ae)){Ae=Ae.export()}const Ee=Ae.subarray(be>>3);const Ce=Ae.subarray(0,be>>3);const Se=`aes-${be}-cbc`;if(!(0,Ie.default)(Se)){throw new _e.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Be=(0,he.createCipheriv)(Se,Ee,ge);const ke=(0,me.concat)(Be.update(pe),Be.final());const Oe=parseInt(R.slice(-3),10);const Re=(0,ve.default)(ye,ge,ke,Oe,Ce,be);return{ciphertext:ke,tag:Re}}function gcmEncrypt(R,pe,Ae,ge,ye){const me=parseInt(R.slice(1,4),10);const ve=`aes-${me}-gcm`;if(!(0,Ie.default)(ve)){throw new _e.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const be=(0,he.createCipheriv)(ve,Ae,ge,{authTagLength:16});if(ye.byteLength){be.setAAD(ye,{plaintextLength:pe.length})}const Ee=be.update(pe);be.final();const we=be.getAuthTag();return{ciphertext:Ee,tag:we}}const encrypt=(R,pe,Ae,me,ve)=>{let Ie;if((0,be.isCryptoKey)(Ae)){(0,Ee.checkEncCryptoKey)(Ae,R,"encrypt");Ie=he.KeyObject.from(Ae)}else if(Ae instanceof Uint8Array||(0,we.default)(Ae)){Ie=Ae}else{throw new TypeError((0,Ce.default)(Ae,...Se.types,"Uint8Array"))}(0,ye.default)(R,Ie);(0,ge.default)(R,me);switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcEncrypt(R,pe,Ie,me,ve);case"A128GCM":case"A192GCM":case"A256GCM":return gcmEncrypt(R,pe,Ie,me,ve);default:throw new _e.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=encrypt},15176:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(13685);const ge=Ae(95687);const ye=Ae(82361);const me=Ae(96204);const ve=Ae(87243);const fetchJwks=async(R,pe,Ae)=>{let be;switch(R.protocol){case"https:":be=ge.get;break;case"http:":be=he.get;break;default:throw new TypeError("Unsupported URL protocol.")}const{agent:Ee,headers:we}=Ae;const Ce=be(R.href,{agent:Ee,timeout:pe,headers:we});const[_e]=await Promise.race([(0,ye.once)(Ce,"response"),(0,ye.once)(Ce,"timeout")]);if(!_e){Ce.destroy();throw new me.JWKSTimeout}if(_e.statusCode!==200){throw new me.JOSEError("Expected 200 OK from the JSON Web Key Set HTTP response")}const Ie=[];for await(const R of _e){Ie.push(R)}try{return JSON.parse(ve.decoder.decode((0,ve.concat)(...Ie)))}catch{throw new me.JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON")}};pe["default"]=fetchJwks},94350:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwkImport=pe.jwkExport=pe.rsaPssParams=pe.oneShotCallback=void 0;const[Ae,he]=process.versions.node.split(".").map((R=>parseInt(R,10)));pe.oneShotCallback=Ae>=16||Ae===15&&he>=13;pe.rsaPssParams=!("electron"in process.versions)&&(Ae>=17||Ae===16&&he>=9);pe.jwkExport=Ae>=16||Ae===15&&he>=9;pe.jwkImport=Ae>=16||Ae===15&&he>=12},53782:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=pe.generateSecret=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=Ae(38516);const me=Ae(65082);const ve=Ae(96204);const be=(0,ge.promisify)(he.generateKeyPair);async function generateSecret(R,pe){let Ae;switch(R){case"HS256":case"HS384":case"HS512":case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128KW":case"A192KW":case"A256KW":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new ve.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return(0,he.createSecretKey)((0,ye.default)(new Uint8Array(Ae>>3)))}pe.generateSecret=generateSecret;async function generateKeyPair(R,pe){var Ae,he;switch(R){case"RS256":case"RS384":case"RS512":case"PS256":case"PS384":case"PS512":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":case"RSA1_5":{const R=(Ae=pe===null||pe===void 0?void 0:pe.modulusLength)!==null&&Ae!==void 0?Ae:2048;if(typeof R!=="number"||R<2048){throw new ve.JOSENotSupported("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used")}const he=await be("rsa",{modulusLength:R,publicExponent:65537});(0,me.setModulusLength)(he.privateKey,R);(0,me.setModulusLength)(he.publicKey,R);return he}case"ES256":return be("ec",{namedCurve:"P-256"});case"ES256K":return be("ec",{namedCurve:"secp256k1"});case"ES384":return be("ec",{namedCurve:"P-384"});case"ES512":return be("ec",{namedCurve:"P-521"});case"EdDSA":{switch(pe===null||pe===void 0?void 0:pe.crv){case undefined:case"Ed25519":return be("ed25519");case"Ed448":return be("ed448");default:throw new ve.JOSENotSupported("Invalid or unsupported crv option provided, supported values are Ed25519 and Ed448")}}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":const R=(he=pe===null||pe===void 0?void 0:pe.crv)!==null&&he!==void 0?he:"P-256";switch(R){case undefined:case"P-256":case"P-384":case"P-521":return be("ec",{namedCurve:R});case"X25519":return be("x25519");case"X448":return be("x448");default:throw new ve.JOSENotSupported("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}default:throw new ve.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}}pe.generateKeyPair=generateKeyPair},75956:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.setCurve=pe.weakMap=void 0;const he=Ae(14300);const ge=Ae(6113);const ye=Ae(96204);const me=Ae(94899);const ve=Ae(26427);const be=Ae(99398);const Ee=Ae(3053);const we=he.Buffer.from([42,134,72,206,61,3,1,7]);const Ce=he.Buffer.from([43,129,4,0,34]);const _e=he.Buffer.from([43,129,4,0,35]);const Ie=he.Buffer.from([43,129,4,0,10]);pe.weakMap=new WeakMap;const namedCurveToJOSE=R=>{switch(R){case"prime256v1":return"P-256";case"secp384r1":return"P-384";case"secp521r1":return"P-521";case"secp256k1":return"secp256k1";default:throw new ye.JOSENotSupported("Unsupported key curve for this operation")}};const getNamedCurve=(R,Ae)=>{var he;let Se;if((0,me.isCryptoKey)(R)){Se=ge.KeyObject.from(R)}else if((0,ve.default)(R)){Se=R}else{throw new TypeError((0,be.default)(R,...Ee.types))}if(Se.type==="secret"){throw new TypeError('only "private" or "public" type keys can be used for this operation')}switch(Se.asymmetricKeyType){case"ed25519":case"ed448":return`Ed${Se.asymmetricKeyType.slice(2)}`;case"x25519":case"x448":return`X${Se.asymmetricKeyType.slice(1)}`;case"ec":{if(pe.weakMap.has(Se)){return pe.weakMap.get(Se)}let R=(he=Se.asymmetricKeyDetails)===null||he===void 0?void 0:he.namedCurve;if(!R&&Se.type==="private"){R=getNamedCurve((0,ge.createPublicKey)(Se),true)}else if(!R){const pe=Se.export({format:"der",type:"spki"});const Ae=pe[1]<128?14:15;const he=pe[Ae];const ge=pe.slice(Ae+1,Ae+1+he);if(ge.equals(we)){R="prime256v1"}else if(ge.equals(Ce)){R="secp384r1"}else if(ge.equals(_e)){R="secp521r1"}else if(ge.equals(Ie)){R="secp256k1"}else{throw new ye.JOSENotSupported("Unsupported key curve for this operation")}}if(Ae)return R;const me=namedCurveToJOSE(R);pe.weakMap.set(Se,me);return me}default:throw new TypeError("Invalid asymmetric key type for this operation")}};function setCurve(R,Ae){pe.weakMap.set(R,Ae)}pe.setCurve=setCurve;pe["default"]=getNamedCurve},92112:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(94899);const ye=Ae(61489);const me=Ae(99398);const ve=Ae(3053);function getSignVerifyKey(R,pe,Ae){if(pe instanceof Uint8Array){if(!R.startsWith("HS")){throw new TypeError((0,me.default)(pe,...ve.types))}return(0,he.createSecretKey)(pe)}if(pe instanceof he.KeyObject){return pe}if((0,ge.isCryptoKey)(pe)){(0,ye.checkSigCryptoKey)(pe,R,Ae);return he.KeyObject.from(pe)}throw new TypeError((0,me.default)(pe,...ve.types,"Uint8Array"))}pe["default"]=getSignVerifyKey},56538:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(96204);function hmacDigest(R){switch(R){case"HS256":return"sha256";case"HS384":return"sha384";case"HS512":return"sha512";default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=hmacDigest},3053:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.types=void 0;const he=Ae(94899);const ge=Ae(26427);pe["default"]=R=>(0,ge.default)(R)||(0,he.isCryptoKey)(R);const ye=["KeyObject"];pe.types=ye;if(globalThis.CryptoKey||(he.default===null||he.default===void 0?void 0:he.default.CryptoKey)){ye.push("CryptoKey")}},26427:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);pe["default"]=ge.types.isKeyObject?R=>ge.types.isKeyObject(R):R=>R!=null&&R instanceof he.KeyObject},41010:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(14300);const ge=Ae(6113);const ye=Ae(78583);const me=Ae(96204);const ve=Ae(75956);const be=Ae(65082);const Ee=Ae(28820);const we=Ae(94350);const parse=R=>{if(we.jwkImport&&R.kty!=="oct"){return R.d?(0,ge.createPrivateKey)({format:"jwk",key:R}):(0,ge.createPublicKey)({format:"jwk",key:R})}switch(R.kty){case"oct":{return(0,ge.createSecretKey)((0,ye.decode)(R.k))}case"RSA":{const pe=new Ee.default;const Ae=R.d!==undefined;const ye=he.Buffer.from(R.n,"base64");const me=he.Buffer.from(R.e,"base64");if(Ae){pe.zero();pe.unsignedInteger(ye);pe.unsignedInteger(me);pe.unsignedInteger(he.Buffer.from(R.d,"base64"));pe.unsignedInteger(he.Buffer.from(R.p,"base64"));pe.unsignedInteger(he.Buffer.from(R.q,"base64"));pe.unsignedInteger(he.Buffer.from(R.dp,"base64"));pe.unsignedInteger(he.Buffer.from(R.dq,"base64"));pe.unsignedInteger(he.Buffer.from(R.qi,"base64"))}else{pe.unsignedInteger(ye);pe.unsignedInteger(me)}const ve=pe.end();const we={key:ve,format:"der",type:"pkcs1"};const Ce=Ae?(0,ge.createPrivateKey)(we):(0,ge.createPublicKey)(we);(0,be.setModulusLength)(Ce,ye.length<<3);return Ce}case"EC":{const pe=new Ee.default;const Ae=R.d!==undefined;const ye=he.Buffer.concat([he.Buffer.alloc(1,4),he.Buffer.from(R.x,"base64"),he.Buffer.from(R.y,"base64")]);if(Ae){pe.zero();const Ae=new Ee.default;Ae.oidFor("ecPublicKey");Ae.oidFor(R.crv);pe.add(Ae.end());const me=new Ee.default;me.one();me.octStr(he.Buffer.from(R.d,"base64"));const be=new Ee.default;be.bitStr(ye);const we=be.end(he.Buffer.from([161]));me.add(we);const Ce=me.end();const _e=new Ee.default;_e.add(Ce);const Ie=_e.end(he.Buffer.from([4]));pe.add(Ie);const Se=pe.end();const Be=(0,ge.createPrivateKey)({key:Se,format:"der",type:"pkcs8"});(0,ve.setCurve)(Be,R.crv);return Be}const me=new Ee.default;me.oidFor("ecPublicKey");me.oidFor(R.crv);pe.add(me.end());pe.bitStr(ye);const be=pe.end();const we=(0,ge.createPublicKey)({key:be,format:"der",type:"spki"});(0,ve.setCurve)(we,R.crv);return we}case"OKP":{const pe=new Ee.default;const Ae=R.d!==undefined;if(Ae){pe.zero();const Ae=new Ee.default;Ae.oidFor(R.crv);pe.add(Ae.end());const ye=new Ee.default;ye.octStr(he.Buffer.from(R.d,"base64"));const me=ye.end(he.Buffer.from([4]));pe.add(me);const ve=pe.end();return(0,ge.createPrivateKey)({key:ve,format:"der",type:"pkcs8"})}const ye=new Ee.default;ye.oidFor(R.crv);pe.add(ye.end());pe.bitStr(he.Buffer.from(R.x,"base64"));const me=pe.end();return(0,ge.createPublicKey)({key:me,format:"der",type:"spki"})}default:throw new me.JOSENotSupported('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}};pe["default"]=parse},31986:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(78583);const ye=Ae(54236);const me=Ae(96204);const ve=Ae(75956);const be=Ae(94899);const Ee=Ae(26427);const we=Ae(99398);const Ce=Ae(3053);const _e=Ae(94350);const keyToJWK=R=>{let pe;if((0,be.isCryptoKey)(R)){if(!R.extractable){throw new TypeError("CryptoKey is not extractable")}pe=he.KeyObject.from(R)}else if((0,Ee.default)(R)){pe=R}else if(R instanceof Uint8Array){return{kty:"oct",k:(0,ge.encode)(R)}}else{throw new TypeError((0,we.default)(R,...Ce.types,"Uint8Array"))}if(_e.jwkExport){if(pe.type!=="secret"&&!["rsa","ec","ed25519","x25519","ed448","x448"].includes(pe.asymmetricKeyType)){throw new me.JOSENotSupported("Unsupported key asymmetricKeyType")}return pe.export({format:"jwk"})}switch(pe.type){case"secret":return{kty:"oct",k:(0,ge.encode)(pe.export())};case"private":case"public":{switch(pe.asymmetricKeyType){case"rsa":{const R=pe.export({format:"der",type:"pkcs1"});const Ae=new ye.default(R);if(pe.type==="private"){Ae.unsignedInteger()}const he=(0,ge.encode)(Ae.unsignedInteger());const me=(0,ge.encode)(Ae.unsignedInteger());let ve;if(pe.type==="private"){ve={d:(0,ge.encode)(Ae.unsignedInteger()),p:(0,ge.encode)(Ae.unsignedInteger()),q:(0,ge.encode)(Ae.unsignedInteger()),dp:(0,ge.encode)(Ae.unsignedInteger()),dq:(0,ge.encode)(Ae.unsignedInteger()),qi:(0,ge.encode)(Ae.unsignedInteger())}}Ae.end();return{kty:"RSA",n:he,e:me,...ve}}case"ec":{const R=(0,ve.default)(pe);let Ae;let ye;let be;switch(R){case"secp256k1":Ae=64;ye=31+2;be=-1;break;case"P-256":Ae=64;ye=34+2;be=-1;break;case"P-384":Ae=96;ye=33+2;be=-3;break;case"P-521":Ae=132;ye=33+2;be=-3;break;default:throw new me.JOSENotSupported("Unsupported curve")}if(pe.type==="public"){const he=pe.export({type:"spki",format:"der"});return{kty:"EC",crv:R,x:(0,ge.encode)(he.subarray(-Ae,-Ae/2)),y:(0,ge.encode)(he.subarray(-Ae/2))}}const Ee=pe.export({type:"pkcs8",format:"der"});if(Ee.length<100){ye+=be}return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ee.subarray(ye,ye+Ae/2))}}case"ed25519":case"x25519":{const R=(0,ve.default)(pe);if(pe.type==="public"){const Ae=pe.export({type:"spki",format:"der"});return{kty:"OKP",crv:R,x:(0,ge.encode)(Ae.subarray(-32))}}const Ae=pe.export({type:"pkcs8",format:"der"});return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ae.subarray(-32))}}case"ed448":case"x448":{const R=(0,ve.default)(pe);if(pe.type==="public"){const Ae=pe.export({type:"spki",format:"der"});return{kty:"OKP",crv:R,x:(0,ge.encode)(Ae.subarray(R==="Ed448"?-57:-56))}}const Ae=pe.export({type:"pkcs8",format:"der"});return{...keyToJWK((0,he.createPublicKey)(pe)),d:(0,ge.encode)(Ae.subarray(R==="Ed448"?-57:-56))}}default:throw new me.JOSENotSupported("Unsupported key asymmetricKeyType")}}default:throw new me.JOSENotSupported("Unsupported key type")}};pe["default"]=keyToJWK},39381:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(75956);const ye=Ae(96204);const me=Ae(65082);const ve=Ae(94350);const be={padding:he.constants.RSA_PKCS1_PSS_PADDING,saltLength:he.constants.RSA_PSS_SALTLEN_DIGEST};const Ee=new Map([["ES256","P-256"],["ES256K","secp256k1"],["ES384","P-384"],["ES512","P-521"]]);function keyForCrypto(R,pe){switch(R){case"EdDSA":if(!["ed25519","ed448"].includes(pe.asymmetricKeyType)){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ed25519 or ed448")}return pe;case"RS256":case"RS384":case"RS512":if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,me.default)(pe,R);return pe;case ve.rsaPssParams&&"PS256":case ve.rsaPssParams&&"PS384":case ve.rsaPssParams&&"PS512":if(pe.asymmetricKeyType==="rsa-pss"){const{hashAlgorithm:Ae,mgf1HashAlgorithm:he,saltLength:ge}=pe.asymmetricKeyDetails;const ye=parseInt(R.slice(-3),10);if(Ae!==undefined&&(Ae!==`sha${ye}`||he!==Ae)){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${R}`)}if(ge!==undefined&&ge>ye>>3){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${R}`)}}else if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa or rsa-pss")}(0,me.default)(pe,R);return{key:pe,...be};case!ve.rsaPssParams&&"PS256":case!ve.rsaPssParams&&"PS384":case!ve.rsaPssParams&&"PS512":if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,me.default)(pe,R);return{key:pe,...be};case"ES256":case"ES256K":case"ES384":case"ES512":{if(pe.asymmetricKeyType!=="ec"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ec")}const Ae=(0,ge.default)(pe);const he=Ee.get(R);if(Ae!==he){throw new TypeError(`Invalid key curve for the algorithm, its curve must be ${he}, got ${Ae}`)}return{dsaEncoding:"ieee-p1363",key:pe}}default:throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=keyForCrypto},63436:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(73837);const ge=Ae(6113);const ye=Ae(38516);const me=Ae(87243);const ve=Ae(78583);const be=Ae(2666);const Ee=Ae(10414);const we=Ae(94899);const Ce=Ae(61489);const _e=Ae(26427);const Ie=Ae(99398);const Se=Ae(3053);const Be=(0,he.promisify)(ge.pbkdf2);function getPassword(R,pe){if((0,_e.default)(R)){return R.export()}if(R instanceof Uint8Array){return R}if((0,we.isCryptoKey)(R)){(0,Ce.checkEncCryptoKey)(R,pe,"deriveBits","deriveKey");return ge.KeyObject.from(R).export()}throw new TypeError((0,Ie.default)(R,...Se.types,"Uint8Array"))}const encrypt=async(R,pe,Ae,he=2048,ge=(0,ye.default)(new Uint8Array(16)))=>{(0,Ee.default)(ge);const we=(0,me.p2s)(R,ge);const Ce=parseInt(R.slice(13,16),10)>>3;const _e=getPassword(pe,R);const Ie=await Be(_e,we,he,Ce,`sha${R.slice(8,11)}`);const Se=await(0,be.wrap)(R.slice(-6),Ie,Ae);return{encryptedKey:Se,p2c:he,p2s:(0,ve.encode)(ge)}};pe.encrypt=encrypt;const decrypt=async(R,pe,Ae,he,ge)=>{(0,Ee.default)(ge);const ye=(0,me.p2s)(R,ge);const ve=parseInt(R.slice(13,16),10)>>3;const we=getPassword(pe,R);const Ce=await Be(we,ye,he,ve,`sha${R.slice(8,11)}`);return(0,be.unwrap)(R.slice(-6),Ce,Ae)};pe.decrypt=decrypt},38516:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=Ae(6113);Object.defineProperty(pe,"default",{enumerable:true,get:function(){return he.randomFillSync}})},74319:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(6113);const ge=Ae(65082);const ye=Ae(94899);const me=Ae(61489);const ve=Ae(26427);const be=Ae(99398);const Ee=Ae(3053);const checkKey=(R,pe)=>{if(R.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,ge.default)(R,pe)};const resolvePadding=R=>{switch(R){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return he.constants.RSA_PKCS1_OAEP_PADDING;case"RSA1_5":return he.constants.RSA_PKCS1_PADDING;default:return undefined}};const resolveOaepHash=R=>{switch(R){case"RSA-OAEP":return"sha1";case"RSA-OAEP-256":return"sha256";case"RSA-OAEP-384":return"sha384";case"RSA-OAEP-512":return"sha512";default:return undefined}};function ensureKeyObject(R,pe,...Ae){if((0,ve.default)(R)){return R}if((0,ye.isCryptoKey)(R)){(0,me.checkEncCryptoKey)(R,pe,...Ae);return he.KeyObject.from(R)}throw new TypeError((0,be.default)(R,...Ee.types))}const encrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"wrapKey","encrypt");checkKey(me,R);return(0,he.publicEncrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.encrypt=encrypt;const decrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"unwrapKey","decrypt");checkKey(me,R);return(0,he.privateDecrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.decrypt=decrypt},39115:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]="node:crypto"},55602:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);const ye=Ae(67688);const me=Ae(56538);const ve=Ae(39381);const be=Ae(92112);let Ee;if(he.sign.length>3){Ee=(0,ge.promisify)(he.sign)}else{Ee=he.sign}const sign=async(R,pe,Ae)=>{const ge=(0,be.default)(R,pe,"sign");if(R.startsWith("HS")){const pe=he.createHmac((0,me.default)(R),ge);pe.update(Ae);return pe.digest()}return Ee((0,ye.default)(R),Ae,(0,ve.default)(R,ge))};pe["default"]=sign},15411:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=he.timingSafeEqual;pe["default"]=ge},74706:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6113);const ge=Ae(73837);const ye=Ae(67688);const me=Ae(39381);const ve=Ae(55602);const be=Ae(92112);const Ee=Ae(94350);let we;if(he.verify.length>4&&Ee.oneShotCallback){we=(0,ge.promisify)(he.verify)}else{we=he.verify}const verify=async(R,pe,Ae,ge)=>{const Ee=(0,be.default)(R,pe,"verify");if(R.startsWith("HS")){const pe=await(0,ve.default)(R,Ee,ge);const ye=Ae;try{return he.timingSafeEqual(ye,pe)}catch{return false}}const Ce=(0,ye.default)(R);const _e=(0,me.default)(R,Ee);try{return await we(Ce,ge,_e,Ae)}catch{return false}};pe["default"]=verify},94899:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isCryptoKey=void 0;const he=Ae(6113);const ge=Ae(73837);const ye=he.webcrypto;pe["default"]=ye;pe.isCryptoKey=ge.types.isCryptoKey?R=>ge.types.isCryptoKey(R):R=>false},67907:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.deflate=pe.inflate=void 0;const he=Ae(73837);const ge=Ae(59796);const ye=Ae(96204);const me=(0,he.promisify)(ge.inflateRaw);const ve=(0,he.promisify)(ge.deflateRaw);const inflate=R=>me(R,{maxOutputLength:25e4}).catch((()=>{throw new ye.JWEDecompressionFailed}));pe.inflate=inflate;const deflate=R=>ve(R);pe.deflate=deflate},51736:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=void 0;const he=Ae(78583);pe.encode=he.encode;pe.decode=he.decode},22220:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeJwt=void 0;const he=Ae(51736);const ge=Ae(87243);const ye=Ae(3240);const me=Ae(96204);function decodeJwt(R){if(typeof R!=="string")throw new me.JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");const{1:pe,length:Ae}=R.split(".");if(Ae===5)throw new me.JWTInvalid("Only JWTs using Compact JWS serialization can be decoded");if(Ae!==3)throw new me.JWTInvalid("Invalid JWT");if(!pe)throw new me.JWTInvalid("JWTs must contain a payload");let ve;try{ve=(0,he.decode)(pe)}catch{throw new me.JWTInvalid("Failed to base64url decode the payload")}let be;try{be=JSON.parse(ge.decoder.decode(ve))}catch{throw new me.JWTInvalid("Failed to parse the decoded payload as JSON")}if(!(0,ye.default)(be))throw new me.JWTInvalid("Invalid JWT Claims Set");return be}pe.decodeJwt=decodeJwt},30672:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeProtectedHeader=void 0;const he=Ae(51736);const ge=Ae(87243);const ye=Ae(3240);function decodeProtectedHeader(R){let pe;if(typeof R==="string"){const Ae=R.split(".");if(Ae.length===3||Ae.length===5){[pe]=Ae}}else if(typeof R==="object"&&R){if("protected"in R){pe=R.protected}else{throw new TypeError("Token does not contain a Protected Header")}}try{if(typeof pe!=="string"||!pe){throw new Error}const R=JSON.parse(ge.decoder.decode((0,he.decode)(pe)));if(!(0,ye.default)(R)){throw new Error}return R}catch{throw new TypeError("Invalid Token or Protected Header formatting")}}pe.decodeProtectedHeader=decodeProtectedHeader},96204:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.JWSSignatureVerificationFailed=pe.JWKSTimeout=pe.JWKSMultipleMatchingKeys=pe.JWKSNoMatchingKey=pe.JWKSInvalid=pe.JWKInvalid=pe.JWTInvalid=pe.JWSInvalid=pe.JWEInvalid=pe.JWEDecompressionFailed=pe.JWEDecryptionFailed=pe.JOSENotSupported=pe.JOSEAlgNotAllowed=pe.JWTExpired=pe.JWTClaimValidationFailed=pe.JOSEError=void 0;class JOSEError extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(R){var pe;super(R);this.code="ERR_JOSE_GENERIC";this.name=this.constructor.name;(pe=Error.captureStackTrace)===null||pe===void 0?void 0:pe.call(Error,this,this.constructor)}}pe.JOSEError=JOSEError;class JWTClaimValidationFailed extends JOSEError{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(R,pe="unspecified",Ae="unspecified"){super(R);this.code="ERR_JWT_CLAIM_VALIDATION_FAILED";this.claim=pe;this.reason=Ae}}pe.JWTClaimValidationFailed=JWTClaimValidationFailed;class JWTExpired extends JOSEError{static get code(){return"ERR_JWT_EXPIRED"}constructor(R,pe="unspecified",Ae="unspecified"){super(R);this.code="ERR_JWT_EXPIRED";this.claim=pe;this.reason=Ae}}pe.JWTExpired=JWTExpired;class JOSEAlgNotAllowed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}pe.JOSEAlgNotAllowed=JOSEAlgNotAllowed;class JOSENotSupported extends JOSEError{constructor(){super(...arguments);this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}pe.JOSENotSupported=JOSENotSupported;class JWEDecryptionFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_DECRYPTION_FAILED";this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}pe.JWEDecryptionFailed=JWEDecryptionFailed;class JWEDecompressionFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_DECOMPRESSION_FAILED";this.message="decompression operation failed"}static get code(){return"ERR_JWE_DECOMPRESSION_FAILED"}}pe.JWEDecompressionFailed=JWEDecompressionFailed;class JWEInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}pe.JWEInvalid=JWEInvalid;class JWSInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}pe.JWSInvalid=JWSInvalid;class JWTInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}pe.JWTInvalid=JWTInvalid;class JWKInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}pe.JWKInvalid=JWKInvalid;class JWKSInvalid extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}pe.JWKSInvalid=JWKSInvalid;class JWKSNoMatchingKey extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_NO_MATCHING_KEY";this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}pe.JWKSNoMatchingKey=JWKSNoMatchingKey;class JWKSMultipleMatchingKeys extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}pe.JWKSMultipleMatchingKeys=JWKSMultipleMatchingKeys;Symbol.asyncIterator;class JWKSTimeout extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWKS_TIMEOUT";this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}pe.JWKSTimeout=JWKSTimeout;class JWSSignatureVerificationFailed extends JOSEError{constructor(){super(...arguments);this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}pe.JWSSignatureVerificationFailed=JWSSignatureVerificationFailed},75646:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(39115);pe["default"]=he.default},98327:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(6577),pe)},6577:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.parse=void 0;const me=ye(Ae(44083));const parse=R=>{const pe=JSON.parse(JSON.stringify(me.parse(R)));return pe};pe.parse=parse},998:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(25657),pe)},25657:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.issuer=void 0;const be=ve(Ae(81203));const Ee=ye(Ae(98327));const we=Ae(62444);const coseSign1CredentialIssuer=R=>({issue:pe=>me(void 0,void 0,void 0,(function*(){if(R.signer===undefined){throw new Error("No signer available.")}const Ae=Ee.parse(we.decoder.decode(pe.claimset));return R.signer.sign(we.encoder.encode(JSON.stringify(Ae)))}))});const jwtCredentialIssuer=R=>({issue:pe=>me(void 0,void 0,void 0,(function*(){if(R.signer===undefined){throw new Error("No signer available.")}const Ae=Ee.parse(we.decoder.decode(pe.claimset));return R.signer.sign(we.encoder.encode(JSON.stringify(Ae)))}))});const sdJwtCredentialIssuer=R=>({issue:pe=>me(void 0,void 0,void 0,(function*(){if(R.signer===undefined){throw new Error("No signer available.")}const Ae=yield be.default.salter();const he=yield be.default.digester();const ge=yield be.default.issuer({alg:R.alg,typ:"application/vc-ld+sd-jwt",cty:"application/vc-ld",salter:Ae,digester:he,signer:{sign:({claimset:pe})=>me(void 0,void 0,void 0,(function*(){const Ae=yield R.signer.sign(we.encoder.encode(JSON.stringify(pe)));return we.decoder.decode(Ae)}))}});const ye=yield ge.issue({claimset:we.decoder.decode(pe.claimset)});return we.encoder.encode(ye)}))});const issuer=R=>{if(R.type==="application/vc-ld+jwt"){return jwtCredentialIssuer(R)}else if(R.type==="application/vc-ld+sd-jwt"){return sdJwtCredentialIssuer(R)}else if(R.type==="application/vc-ld+cose"){return coseSign1CredentialIssuer(R)}throw new Error("credential type is not supported.")};pe.issuer=issuer},97434:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var me=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.base64url=pe.validator=pe.verifier=pe.holder=pe.issuer=pe.text=pe.status=pe.claimset=pe.key=pe.version=void 0;const ve=Ae(34061);Object.defineProperty(pe,"base64url",{enumerable:true,get:function(){return ve.base64url}});pe.version="https://www.w3.org/TR/2024/CR-vc-data-model-2.0-20240201/";ye(Ae(98668),pe);const be=me(Ae(13806));pe.key=be;const Ee=me(Ae(98327));pe.claimset=Ee;const we=me(Ae(28931));pe.status=we;const Ce=me(Ae(62444));pe.text=Ce;const _e=Ae(998);Object.defineProperty(pe,"issuer",{enumerable:true,get:function(){return _e.issuer}});const Ie=Ae(77411);Object.defineProperty(pe,"holder",{enumerable:true,get:function(){return Ie.holder}});const Se=Ae(66944);Object.defineProperty(pe,"verifier",{enumerable:true,get:function(){return Se.verifier}});const Be=Ae(34702);Object.defineProperty(pe,"validator",{enumerable:true,get:function(){return Be.validator}})},49544:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.generate=void 0;const be=ve(Ae(99623));const Ee=ye(Ae(88844));const we=new TextEncoder;const generate=R=>me(void 0,void 0,void 0,(function*(){if(R.type==="application/jwk+json"){const pe=yield Ee.key.generate(R.alg,"application/jwk+json");const Ae=JSON.stringify(pe,null,2);return we.encode(Ae)}if(R.type==="application/cose-key"){const pe=yield Ee.key.generate(R.alg,"application/cose-key");return new Uint8Array(Ee.cbor.encode(pe))}if(R.type==="application/pkcs8"){const pe=yield Ee.certificate.root({alg:R.alg,iss:R.iss||"vendor.example",sub:R.sub||"vendor.example",nbf:R.nbf||(0,be.default)().toISOString(),exp:R.nbf||(0,be.default)().add(5,"minutes").toISOString()});return we.encode(pe.private)}throw new Error("Unsupported content type for private key")}));pe.generate=generate},62087:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.importJWK=void 0;const ve=ye(Ae(88844));const be=Ae(62444);const importJWK=R=>me(void 0,void 0,void 0,(function*(){if(R.type==="application/jwk+json"){return JSON.parse(be.decoder.decode(R.content))}else if(R.type==="application/cose-key"){const pe=ve.cbor.decode(R.content);const Ae=yield ve.key.convertCoseKeyToJsonWebKey(pe);return Ae}throw new Error("Unsupported key type.")}));pe.importJWK=importJWK},33375:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.importKeyLike=void 0;const ve=ye(Ae(34061));const be=Ae(62087);const importKeyLike=R=>me(void 0,void 0,void 0,(function*(){if(R.type==="application/jwk+json"){const pe=yield(0,be.importJWK)(R);return ve.importJWK(pe)}else if(R.type==="application/cose-key"){const pe=yield(0,be.importJWK)(R);return ve.importJWK(pe)}throw new Error("Unsupported key type.")}));pe.importKeyLike=importKeyLike},13806:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(49544),pe);ge(Ae(62087),pe);ge(Ae(33375),pe);ge(Ae(92153),pe)},92153:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__rest||function(R,pe){var Ae={};for(var he in R)if(Object.prototype.hasOwnProperty.call(R,he)&&pe.indexOf(he)<0)Ae[he]=R[he];if(R!=null&&typeof Object.getOwnPropertySymbols==="function")for(var ge=0,he=Object.getOwnPropertySymbols(R);geme(void 0,void 0,void 0,(function*(){if(R.type==="application/jwk+json"){const pe=JSON.parse(Ee.decoder.decode(R.content)),{d:Ae}=pe,he=ve(pe,["d"]);return Ee.encoder.encode(JSON.stringify(he))}else if(R.type==="application/cose-key"){const pe=be.cbor.decode(R.content);const Ae=yield be.key.convertCoseKeyToJsonWebKey(pe);const{d:he}=Ae,ge=ve(Ae,["d"]);const ye=be.key.convertJsonWebKeyToCoseKey(ge);return be.cbor.encode(ye)}throw new Error("Unsupported key type.")}));pe.publicFromPrivate=publicFromPrivate},79205:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.holder=void 0;const ye=ge(Ae(81203));const me=Ae(34061);const ve=Ae(62444);const presentationToClaims=R=>{const pe=R.presentation;pe.verifiableCredential=[];for(const Ae of R.disclosures){const R=Ae.type.endsWith("+cose")?`base64url,${me.base64url.encode(Ae.credential)}`:ve.decoder.decode(Ae.credential);pe.verifiableCredential.push({"@context":"https://www.w3.org/ns/credentials/v2",id:`data:${Ae.type};${R}`,type:"EnvelopedVerifiableCredential"})}return pe};const jwtPresentationIssuer=R=>({issue:R=>he(void 0,void 0,void 0,(function*(){if(R.signer===undefined){throw new Error("No signer available.")}const pe=presentationToClaims(R);return R.signer.sign(ve.encoder.encode(JSON.stringify(pe)))}))});const coseSign1PresentationIssuer=R=>({issue:R=>he(void 0,void 0,void 0,(function*(){if(R.signer===undefined){throw new Error("No signer available.")}const pe=presentationToClaims(R);return R.signer.sign(ve.encoder.encode(JSON.stringify(pe)))}))});const sdJwtPresentationIssuer=R=>({issue:pe=>he(void 0,void 0,void 0,(function*(){if(!pe.disclosures){throw new Error("disclosures are required for this presentation type")}const Ae={sign:({claimset:R})=>he(void 0,void 0,void 0,(function*(){if(pe.signer===undefined){throw new Error("signer is required for this presentation type")}const Ae=ve.encoder.encode(JSON.stringify(R));return ve.decoder.decode(yield pe.signer.sign(Ae))}))};const ge=yield ye.default.salter();const me=yield ye.default.digester();const be=yield ye.default.holder({alg:R.alg,salter:ge,digester:me,signer:Ae});const Ee=pe.presentation;Ee.verifiableCredential=[];for(const R of pe.disclosures){const pe=yield be.issue({token:ve.decoder.decode(R.credential),disclosure:ve.decoder.decode(R.disclosure),nonce:R.nonce,audience:R.audience});Ee.verifiableCredential.push({"@context":"https://www.w3.org/ns/credentials/v2",id:`data:application/vc-ld+sd-jwt;${pe}`,type:"EnvelopedVerifiableCredential"})}const we=yield ye.default.issuer({alg:R.alg,salter:ge,digester:me,signer:Ae});const Ce=yield we.issue({claimset:ye.default.YAML.dumps(Ee)});return ve.encoder.encode(Ce)}))});const unsecuredPresentationOfSecuredCredentials=R=>({issue:pe=>he(void 0,void 0,void 0,(function*(){if(pe.disclosures==undefined){throw new Error("disclosures is REQUIRED for this presentation type.")}const Ae=yield ye.default.salter();const he=yield ye.default.digester();const ge=yield ye.default.holder({alg:R.alg,salter:Ae,digester:he});const me=pe.presentation;me.verifiableCredential=[];for(const R of pe.disclosures){let pe=undefined;if(R.disclosure){const Ae=yield ge.issue({token:ve.decoder.decode(R.credential),disclosure:ve.decoder.decode(R.disclosure)});pe=`data:${R.type};${Ae}`}else{const Ae=ve.decoder.decode(R.credential);pe=`data:${R.type};${Ae}`}if(pe===undefined){throw new Error("Unable to envelop credential for presentation")}me.verifiableCredential.push({"@context":"https://www.w3.org/ns/credentials/v2",id:pe,type:"EnvelopedVerifiableCredential"})}return ve.encoder.encode(JSON.stringify(me))}))});const holder=R=>{if(R.type==="application/vp-ld+jwt"){return jwtPresentationIssuer(R)}else if(R.type==="application/vp-ld+sd-jwt"){return sdJwtPresentationIssuer(R)}else if(R.type==="application/vp-ld+cose"){return coseSign1PresentationIssuer(R)}else if(R.type==="application/vp-ld"){return unsecuredPresentationOfSecuredCredentials(R)}throw new Error("presentation type is not supported.")};pe.holder=holder},77411:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(79205),pe)},63699:function(R,pe,Ae){"use strict"; /*! * Copyright (c) 2020-2023 Digital Bazaar, Inc. All rights reserved. */var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.Bitstring=void 0;const ve=Ae(31726);const be=Ae(34061);const Ee=ye(Ae(12035));class Bitstring{constructor({length:R,buffer:pe,leftToRightIndexing:Ae,littleEndianBits:he}={}){if(R&&pe){throw new Error('Only one of "length" or "buffer" must be given.')}if(R!==undefined){Ee.isPositiveInteger(R,"length")}else{Ee.isUint8Array(pe,"buffer")}if(he!==undefined){if(Ae!==undefined){throw new Error('Using both "littleEndianBits" and "leftToRightIndexing" '+"is not allowed.")}Ee.isBoolean(he,"littleEndianBits");Ae=he}if(Ae===undefined){Ae=true}else{Ee.isBoolean(Ae,"leftToRightIndexing")}if(R){this.bits=new Uint8Array(Math.ceil(R/8));this.length=R}else{this.bits=new Uint8Array(pe.buffer);this.length=pe.length*8}this.leftToRightIndexing=Ae}set(R,pe){Ee.isNumber(R,"position");Ee.isBoolean(pe,"on");const{length:Ae,leftToRightIndexing:he}=this;const{index:ge,bit:ye}=_parsePosition(R,Ae,he);if(pe){this.bits[ge]|=ye}else{this.bits[ge]&=255^ye}}get(R){Ee.isNumber(R,"position");const{length:pe,leftToRightIndexing:Ae}=this;const{index:he,bit:ge}=_parsePosition(R,pe,Ae);return!!(this.bits[he]&ge)}encodeBits(){return me(this,void 0,void 0,(function*(){return be.base64url.encode((0,ve.gzip)(this.bits))}))}static decodeBits({encoded:R}){Ee.isString(R,"encoded");return(0,ve.ungzip)(be.base64url.decode(R))}compressBits(){return me(this,void 0,void 0,(function*(){return(0,ve.gzip)(this.bits)}))}static uncompressBits({compressed:R}){return me(this,void 0,void 0,(function*(){Ee.isUint8Array(R,"compressed");return(0,ve.ungzip)(R)}))}}pe.Bitstring=Bitstring;function _parsePosition(R,pe,Ae){Ee.isNonNegativeInteger(R,"position");Ee.isPositiveInteger(pe,"length");Ee.isBoolean(Ae,"leftToRightIndexing");if(R>=pe){throw new Error(`Position "${R}" is out of range "0-${pe-1}".`)}const he=Math.floor(R/8);const ge=R%8;const ye=Ae?7-ge:ge;const me=1<he(void 0,void 0,void 0,(function*(){const he=JSON.parse(JSON.stringify(me));he.id=R;he.credentialSubject.id=R+"#list";he.credentialSubject.statusPurpose=Ae;he.credentialSubject.encodedList=yield new ye.Bitstring({length:pe}).encodeBits();return he}));StatusList.updateStatus=({claimset:R,position:pe,purpose:Ae,status:ge})=>he(void 0,void 0,void 0,(function*(){if(!R.credentialSubject){throw new Error("claimset is not of RDF type BitstringStatusListCredential")}const he=R;if(he.credentialSubject.statusPurpose!==Ae){throw new Error("claimset is not for RDF purpose "+Ae)}const me=new ye.Bitstring({buffer:yield ye.Bitstring.decodeBits({encoded:he.credentialSubject.encodedList})});me.set(pe,ge);he.credentialSubject.encodedList=yield me.encodeBits();return he}));StatusList.checkStatus=({claimset:R,purpose:pe,position:Ae})=>he(void 0,void 0,void 0,(function*(){if(!R.credentialSubject){throw new Error("claimset is not of RDF type BitstringStatusListCredential")}const he=R;if(he.credentialSubject.statusPurpose!==pe){throw new Error("claimset is not for RDF purpose "+pe)}const ge=new ye.Bitstring({buffer:yield ye.Bitstring.decodeBits({encoded:he.credentialSubject.encodedList})});return ge.get(Ae)}))},12035:(R,pe)=>{"use strict"; /*! * Copyright (c) 2020 Digital Bazaar, Inc. All rights reserved. - */Object.defineProperty(pe,"__esModule",{value:true});pe.isUint8Array=pe.isNonNegativeInteger=pe.isBoolean=pe.isString=pe.isPositiveInteger=pe.isNumber=void 0;function isNumber(R,pe){if(typeof R!=="number"){throw new TypeError(`"${pe}" must be number.`)}}pe.isNumber=isNumber;function isPositiveInteger(R,pe){if(!(Number.isInteger(R)&&R>0)){throw new TypeError(`"${pe}" must be a positive integer.`)}}pe.isPositiveInteger=isPositiveInteger;function isString(R,pe){if(typeof R!=="string"){throw new TypeError(`"${pe}" must be a string.`)}}pe.isString=isString;function isBoolean(R,pe){if(typeof R!=="boolean"){throw new TypeError(`"${pe}" must be a boolean.`)}}pe.isBoolean=isBoolean;function isNonNegativeInteger(R,pe){if(!(Number.isInteger(R)&&R>=0)){throw new TypeError(`"${pe}" must be a non-negative integer.`)}}pe.isNonNegativeInteger=isNonNegativeInteger;function isUint8Array(R,pe){if(!(R instanceof Uint8Array)){throw new TypeError(`"${pe}" must be a Uint8Array.`)}}pe.isUint8Array=isUint8Array},62974:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});const ye=Ae(36354);ge(Ae(6559),pe);pe["default"]=ye.StatusList},6559:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},28931:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.bs=pe.create=void 0;const ye=ge(Ae(44083));const me=Ae(75840);const ve=ge(Ae(62974));const be=Ae(63699);const sortClaims=R=>{const{id:pe,type:Ae,issuer:he,validFrom:ge,validUntil:ye,credentialSubject:me}=R;return JSON.parse(JSON.stringify({"@context":R["@context"],id:pe,type:Ae,issuer:he,validFrom:ge,validUntil:ye,credentialSubject:me}))};const create=({issuer:R,validFrom:pe,validUntil:Ae,id:ge,purpose:be}={issuer:"https://issuer.example",validFrom:(new Date).toISOString(),id:`urn:uuid:${(0,me.v4)()}`,purpose:"revocation"})=>he(void 0,void 0,void 0,(function*(){const he=yield ve.default.create({id:ge,purpose:be,length:131072});he.issuer={id:R};he.validFrom=pe;if(Ae){he.validUntil=Ae}return ye.default.stringify(sortClaims(he))}));pe.create=create;class BS{constructor(R){if(typeof R==="number"){this.bs=new be.Bitstring({length:R})}else{const pe=be.Bitstring.decodeBits({encoded:R});this.bs=new be.Bitstring({buffer:pe})}}set(R,pe){this.bs.set(R,pe);return this}get(R){return this.bs.get(R)}encode(){return this.bs.encodeBits()}}const bs=R=>new BS(R);pe.bs=bs},62444:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decoder=pe.encoder=void 0;pe.encoder=new TextEncoder;pe.decoder=new TextDecoder},98668:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},79656:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.ajv=void 0;const ge=he(Ae(96121));const ye=he(Ae(567));const me=he(Ae(50424));const ve=new ge.default({strict:false,allErrors:true});pe.ajv=ve;(0,ye.default)(ve);(0,me.default)(ve)},34702:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.validator=void 0;const ge=Ae(66944);const ye=Ae(62444);const me=Ae(28931);const ve=Ae(73445);const be=Ae(79656);const validator=({resolver:R})=>({validate:({type:pe,content:Ae})=>he(void 0,void 0,void 0,(function*(){const he=yield(0,ge.verifier)({resolver:R}).verify({type:pe,content:Ae});const Ee={verified:true,content:he,schema:{},status:{},warnings:[]};const{credentialSchema:Ce,credentialStatus:we}=he;if(Ce){const pe=Array.isArray(Ce)?he.credentialSchema:[Ce];for(const Ae of pe){if(Ae.type==="JsonSchema"){const pe=yield R.resolve({id:Ae.id,type:"application/schema+json",purpose:"schema-validation"});if(pe===true){Ee.schema[Ae.id]={validation:"ignored"};continue}const ge=ye.decoder.decode(pe.content);const me=JSON.parse(ge);let ve;let Ce;try{const R=be.ajv.getSchema(me.$id);Ce=R;if(Ce===undefined){Ce=be.ajv.compile(me)}ve=Ce(he)}catch(R){ve=false}Ee.schema[Ae.id]={validation:ve?"succeeded":"failed"};if(!ve){if(Ce===undefined){Ee.schema[Ae.id].errors=[{message:"json schema has invalid syntax"}]}else{Ee.schema[Ae.id].errors=Ce.errors}}}}}if(we){const Ae=Array.isArray(we)?he.credentialStatus:[we];for(const he of Ae){if(he.type==="BitstringStatusListEntry"){const Ae=yield R.resolve({id:he.statusListCredential,type:pe,purpose:"status-check"});const ye=yield(0,ge.verifier)({resolver:R}).verify(Ae);if(he.statusPurpose!==ye.credentialSubject.statusPurpose){Ee.status[`${he.id}`]={[he.statusPurpose]:false,errors:[{message:"status list purpose does not match credential status"}]}}else{const R=(0,me.bs)(ye.credentialSubject.encodedList).get(parseInt(he.statusListIndex,10));Ee.status[`${he.id}`]={[he.statusPurpose]:R}}}}}return(0,ve.conformance)(Ee)}))});pe.validator=validator},73445:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.conformance=void 0;const ge=he(Ae(11017));const ye=["/issuer"];const me=["https"];const isPointerToIdentifier=R=>R.endsWith("/id")||ye.includes(R);const stringIsAValidUrl=(R,pe)=>{try{const Ae=new URL(R);return pe?Ae.protocol?pe.map((R=>`${R.toLowerCase()}:`)).includes(Ae.protocol):false:true}catch(R){return false}};const identifiers=(R,pe,Ae)=>{if(isPointerToIdentifier(pe)){const he=stringIsAValidUrl(Ae,me);if(!he){R.warnings.push({message:`Identifier will not be well understood: ${Ae}`,pointer:pe,reference:"https://www.w3.org/TR/2024/CRD-vc-data-model-2.0-20240205/#identifiers"})}}if(pe.includes("id/")){R.warnings.push({message:`The id property MUST NOT have more than one value.`,pointer:pe,reference:"https://www.w3.org/TR/2024/CRD-vc-data-model-2.0-20240205/#identifiers"})}};const issuer=(R,pe,Ae)=>{if(pe.endsWith("/issuer")||pe.endsWith("/issuer/id")){const he=stringIsAValidUrl(Ae,me);if(!he){R.warnings.push({message:`Issuer MUST be a valid URL or an object containing an id property that is a valid URL`,pointer:pe,reference:"https://www.w3.org/TR/vc-data-model-2.0/#issuer"})}}};const holder=(R,pe,Ae)=>{if(pe.endsWith("/holder")||pe.endsWith("/holder/id")){const he=stringIsAValidUrl(Ae,me);if(!he){R.warnings.push({message:`Holder MUST be a valid URL or an object containing an id property that is a valid URL`,pointer:pe,reference:"https://www.w3.org/TR/vc-data-model-2.0/#presentations-0"})}}};const verifiableCredential=(R,pe,Ae)=>{var he;const ge=pe===null||pe===void 0?void 0:pe.split("/verifiableCredential/").pop();if(pe.startsWith("/verifiableCredential/")&&ge.length===1&&!Number.isNaN(parseInt(ge))){if(typeof Ae!=="object"){R.warnings.push({message:`verifiableCredential MUST NOT be non-object values such as numbers, strings, or URLs`,pointer:pe,reference:"https://www.w3.org/TR/vc-data-model-2.0/#presentations-0"})}}const ye=(he=pe===null||pe===void 0?void 0:pe.split("/verifiableCredential/").pop())===null||he===void 0?void 0:he.split("/")[0];if(pe.endsWith(`/verifiableCredential/${ye}/id`)){if(!Ae.includes("data:")){R.warnings.push({message:`verifiableCredential id value of the object MUST be a data: URL`,pointer:pe,reference:"https://www.w3.org/TR/vc-data-model-2.0/#enveloped-verifiable-credentials"})}}};const types=(R,pe,Ae)=>{};const names_and_descriptions=(R,pe,Ae)=>{if(pe.endsWith("/name")&&typeof Ae!=="string"){R.warnings.push({message:`Names must be strings`,pointer:pe,reference:"https://www.w3.org/TR/2024/CRD-vc-data-model-2.0-20240205/#names-and-descriptions"})}if(pe.endsWith("/description")&&typeof Ae!=="string"){R.warnings.push({message:`Description must be strings`,pointer:pe,reference:"https://www.w3.org/TR/2024/CRD-vc-data-model-2.0-20240205/#names-and-descriptions"})}};const conformance=R=>{const pe=ge.default.dict(R.content);const Ae=Object.keys(pe);if(!R.content["@context"]){R.warnings.push({message:`Credential will not be well understood, missing @context.`,pointer:"/@context",reference:"https://www.w3.org/TR/2024/CRD-vc-data-model-2.0-20240205/#contexts"})}for(const he of Ae){const Ae=pe[he];identifiers(R,he,Ae);types(R,he,Ae);names_and_descriptions(R,he,Ae);issuer(R,he,Ae);holder(R,he,Ae);verifiableCredential(R,he,Ae)}return R};pe.conformance=conformance},66944:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(95262),pe)},95262:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=pe.verifyUnsecuredPresentation=void 0;const be=ye(Ae(34061));const Ee=ye(Ae(88844));const Ce=ve(Ae(81203));const we=Ae(13806);const _e=Ae(62444);const acceptableAudience=(R,pe)=>Array.isArray(pe)?pe.includes(R):pe===R;const verifyJwt=({resolver:R},{type:pe,content:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){const ye=yield R.resolve({type:pe,content:Ae,purpose:"verification-material"});const me=yield(0,we.importKeyLike)(ye);const ve=_e.decoder.decode(Ae);const{payload:Ee}=yield be.jwtVerify(ve,me,{issuer:undefined,audience:he});if(Ee.nonce&&Ee.nonce!==ge){throw new Error("Verifier did not supply nonce: "+Ee.nonce)}if(Ee.aud&&!acceptableAudience(`${he}`,Ee.aud)){throw new Error("Verifier did not supply audience: "+Ee.aud)}return Ee}));const verifyCoseSign1=({resolver:R},{type:pe,content:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){const ye=Ee.attached.verifier({resolver:{resolve:()=>me(void 0,void 0,void 0,(function*(){const he=yield R.resolve({type:pe,content:Ae,purpose:"verification-material"});return(0,we.importJWK)(he)}))}});const ve=yield ye.verify({coseSign1:Ae});const be=JSON.parse(_e.decoder.decode(ve));if(be.nonce&&be.nonce!==ge){throw new Error("Verifier did not supply nonce: "+be.nonce)}if(be.aud&&!acceptableAudience(`${he}`,be.aud)){throw new Error("Verifier did not supply audience: "+be.aud)}return be}));const verifyUnsecuredPresentation=({resolver:R},{content:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){const ye=JSON.parse(_e.decoder.decode(Ae));for(const Ae of ye.verifiableCredential||[]){if(Ae.type!=="EnvelopedVerifiableCredential"){throw new Error("Unsupported verifiable credential type")}const[ye]=Ae.id.split(";");const me=ye.replace("data:","");const ve=_e.encoder.encode(Ae.id.split(";").pop());const{verify:be}=(0,pe.verifier)({resolver:R});yield be({type:me,content:ve,audience:he,nonce:ge})}return ye}));pe.verifyUnsecuredPresentation=verifyUnsecuredPresentation;const verifySdJwtCredential=({resolver:R},{type:pe,content:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){const ye=Ce.default.verifier({resolver:{resolve:()=>me(void 0,void 0,void 0,(function*(){const he=yield R.resolve({type:pe,content:Ae,purpose:"verification-material"});return(0,we.importJWK)(he)}))}});const ve=yield ye.verify({token:_e.decoder.decode(Ae),audience:he,nonce:ge});return ve.claimset}));const verifySdJwtPresentation=({resolver:R},{type:pe,content:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){const ye=Ce.default.verifier({resolver:{resolve:()=>me(void 0,void 0,void 0,(function*(){const he=yield R.resolve({type:pe,content:Ae,purpose:"verification-material"});return(0,we.importJWK)(he)}))}});const ve=yield ye.verify({token:_e.decoder.decode(Ae),audience:he,nonce:ge});return ve.claimset}));const verifier=({resolver:R})=>({verify:({type:Ae,content:he,audience:ge,nonce:ye})=>me(void 0,void 0,void 0,(function*(){switch(Ae){case"application/vc-ld+cose":case"application/vp-ld+cose":{return verifyCoseSign1({resolver:R},{type:Ae,content:he,audience:ge,nonce:ye})}case"application/vc-ld+jwt":case"application/vp-ld+jwt":case"application/kb+jwt":{return verifyJwt({resolver:R},{type:Ae,content:he,audience:ge,nonce:ye})}case"application/vc-ld+sd-jwt":{return verifySdJwtCredential({resolver:R},{type:Ae,content:he,audience:ge,nonce:ye})}case"application/vp-ld+sd-jwt":{return verifySdJwtPresentation({resolver:R},{type:Ae,content:he,audience:ge,nonce:ye})}case"application/vp-ld":{return(0,pe.verifyUnsecuredPresentation)({resolver:R},{type:Ae,content:he,audience:ge,nonce:ye})}default:{throw new Error("Verifier does not support content type: "+Ae)}}}))});pe.verifier=verifier},50424:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(72426);const ge=Ae(19179);const ye=Ae(58358);const me=Ae(18955);const ve=Ae(86150);const be=Ae(10050);const Ee="errorMessage";const Ce=new he.Name("emUsed");const we={required:"missingProperty",dependencies:"property",dependentRequired:"property"};const _e=/\$\{[^}]+\}/;const Ie=/\$\{([^}]+)\}/g;const Se=/^""\s*\+\s*|\s*\+\s*""$/g;function errorMessage(R){return{keyword:Ee,schemaType:["string","object"],post:true,code(pe){const{gen:Ae,data:Be,schema:ke,schemaValue:Oe,it:Re}=pe;if(Re.createErrors===false)return;const Qe=ke;const xe=ge.strConcat(be.default.instancePath,Re.errorPath);Ae.if(he._`${be.default.errors} > 0`,(()=>{if(typeof Qe=="object"){const[R,pe]=keywordErrorsConfig(Qe);if(pe)processKeywordErrors(pe);if(R)processKeywordPropErrors(R);processChildErrors(childErrorsConfig(Qe))}const pe=typeof Qe=="string"?Qe:Qe._;if(pe)processAllErrors(pe);if(!R.keepErrors)removeUsedErrors()}));function childErrorsConfig({properties:R,items:pe}){const Ae={};if(R){Ae.props={};for(const pe in R)Ae.props[pe]=[]}if(pe){Ae.items={};for(let R=0;RAe.if(matchKeywordError(R,ye),(()=>Ae.code(he._`${ye}[${R}.keyword].push(${R})`).assign(he._`${R}.${Ce}`,true)))));const{singleError:Ee}=R;if(Ee){const R=Ae.let("message",he._`""`);const ge=Ae.let("paramsErrors",he._`[]`);loopErrors((pe=>{Ae.if(R,(()=>Ae.code(he._`${R} += ${typeof Ee=="string"?Ee:";"}`)));Ae.code(he._`${R} += ${errMessage(pe)}`);Ae.assign(ge,he._`${ge}.concat(${ye}[${pe}])`)}));ve.reportError(pe,{message:R,params:he._`{errors: ${ge}}`})}else{loopErrors((R=>ve.reportError(pe,{message:errMessage(R),params:he._`{errors: ${ye}[${R}]}`})))}function loopErrors(R){Ae.forIn("key",ye,(pe=>Ae.if(he._`${ye}[${pe}].length`,(()=>R(pe)))))}function errMessage(R){return he._`${R} in ${me} ? ${me}[${R}]() : ${Oe}[${R}]`}}function processKeywordPropErrors(R){const ge=Ae.const("emErrors",he.stringify(R));const ye=[];for(const pe in R){ye.push([pe,getTemplatesCode(R[pe],ke[pe])])}const me=Ae.const("templates",Ae.object(...ye));const Ee=Ae.scopeValue("obj",{ref:we,code:he.stringify(we)});const _e=Ae.let("emPropParams");const Ie=Ae.let("emParamsErrors");Ae.forOf("err",be.default.vErrors,(R=>Ae.if(matchKeywordError(R,ge),(()=>{Ae.assign(_e,he._`${Ee}[${R}.keyword]`);Ae.assign(Ie,he._`${ge}[${R}.keyword][${R}.params[${_e}]]`);Ae.if(Ie,(()=>Ae.code(he._`${Ie}.push(${R})`).assign(he._`${R}.${Ce}`,true)))}))));Ae.forIn("key",ge,(R=>Ae.forIn("keyProp",he._`${ge}[${R}]`,(ye=>{Ae.assign(Ie,he._`${ge}[${R}][${ye}]`);Ae.if(he._`${Ie}.length`,(()=>{const ge=Ae.const("tmpl",he._`${me}[${R}] && ${me}[${R}][${ye}]`);ve.reportError(pe,{message:he._`${ge} ? ${ge}() : ${Oe}[${R}][${ye}]`,params:he._`{errors: ${Ie}}`})}))}))))}function processChildErrors(R){const{props:ye,items:me}=R;if(!ye&&!me)return;const Ee=he._`typeof ${Be} == "object"`;const we=he._`Array.isArray(${Be})`;const _e=Ae.let("emErrors");let Ie;let Se;const Re=Ae.let("templates");if(ye&&me){Ie=Ae.let("emChildKwd");Ae.if(Ee);Ae.if(we,(()=>{init(me,ke.items);Ae.assign(Ie,he.str`items`)}),(()=>{init(ye,ke.properties);Ae.assign(Ie,he.str`properties`)}));Se=he._`[${Ie}]`}else if(me){Ae.if(we);init(me,ke.items);Se=he._`.items`}else if(ye){Ae.if(ge.and(Ee,ge.not(we)));init(ye,ke.properties);Se=he._`.properties`}Ae.forOf("err",be.default.vErrors,(R=>ifMatchesChildError(R,_e,(pe=>Ae.code(he._`${_e}[${pe}].push(${R})`).assign(he._`${R}.${Ce}`,true)))));Ae.forIn("key",_e,(R=>Ae.if(he._`${_e}[${R}].length`,(()=>{ve.reportError(pe,{message:he._`${R} in ${Re} ? ${Re}[${R}]() : ${Oe}${Se}[${R}]`,params:he._`{errors: ${_e}[${R}]}`});Ae.assign(he._`${be.default.vErrors}[${be.default.errors}-1].instancePath`,he._`${xe} + "/" + ${R}.replace(/~/g, "~0").replace(/\\//g, "~1")`)}))));Ae.endIf();function init(R,pe){Ae.assign(_e,he.stringify(R));Ae.assign(Re,getTemplatesCode(R,pe))}}function processAllErrors(R){const ge=Ae.const("emErrs",he._`[]`);Ae.forOf("err",be.default.vErrors,(R=>Ae.if(matchAnyError(R),(()=>Ae.code(he._`${ge}.push(${R})`).assign(he._`${R}.${Ce}`,true)))));Ae.if(he._`${ge}.length`,(()=>ve.reportError(pe,{message:templateExpr(R),params:he._`{errors: ${ge}}`})))}function removeUsedErrors(){const R=Ae.const("emErrs",he._`[]`);Ae.forOf("err",be.default.vErrors,(pe=>Ae.if(he._`!${pe}.${Ce}`,(()=>Ae.code(he._`${R}.push(${pe})`)))));Ae.assign(be.default.vErrors,R).assign(be.default.errors,he._`${R}.length`)}function matchKeywordError(R,pe){return ge.and(he._`${R}.keyword !== ${Ee}`,he._`!${R}.${Ce}`,he._`${R}.instancePath === ${xe}`,he._`${R}.keyword in ${pe}`,he._`${R}.schemaPath.indexOf(${Re.errSchemaPath}) === 0`,he._`/^\\/[^\\/]*$/.test(${R}.schemaPath.slice(${Re.errSchemaPath.length}))`)}function ifMatchesChildError(R,pe,ye){Ae.if(ge.and(he._`${R}.keyword !== ${Ee}`,he._`!${R}.${Ce}`,he._`${R}.instancePath.indexOf(${xe}) === 0`),(()=>{const ge=Ae.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:he._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`});const me=Ae.const("emMatches",he._`${ge}.exec(${R}.instancePath.slice(${xe}.length))`);const ve=Ae.const("emChild",he._`${me} && ${me}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);Ae.if(he._`${ve} !== undefined && ${ve} in ${pe}`,(()=>ye(ve)))}))}function matchAnyError(R){return ge.and(he._`${R}.keyword !== ${Ee}`,he._`!${R}.${Ce}`,ge.or(he._`${R}.instancePath === ${xe}`,ge.and(he._`${R}.instancePath.indexOf(${xe}) === 0`,he._`${R}.instancePath[${xe}.length] === "/"`)),he._`${R}.schemaPath.indexOf(${Re.errSchemaPath}) === 0`,he._`${R}.schemaPath[${Re.errSchemaPath}.length] === "/"`)}function getTemplatesCode(R,pe){const he=[];for(const Ae in R){const R=pe[Ae];if(_e.test(R))he.push([Ae,templateFunc(R)])}return Ae.object(...he)}function templateExpr(R){if(!_e.test(R))return he.stringify(R);return new ye._Code(ye.safeStringify(R).replace(Ie,((R,pe)=>`" + JSON.stringify(${me.getData(pe,Re)}) + "`)).replace(Se,""))}function templateFunc(R){return he._`function(){return ${templateExpr(R)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const ajvErrors=(R,pe={})=>{if(!R.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(R.opts.jsPropertySyntax){throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported")}return R.addKeyword(errorMessage(pe))};pe["default"]=ajvErrors;R.exports=ajvErrors;R.exports["default"]=ajvErrors},20407:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.formatNames=pe.fastFormats=pe.fullFormats=void 0;function fmtDef(R,pe){return{validate:R,compare:pe}}pe.fullFormats={date:fmtDef(date,compareDate),time:fmtDef(getTime(true),compareTime),"date-time":fmtDef(getDateTime(true),compareDateTime),"iso-time":fmtDef(getTime(),compareIsoTime),"iso-date-time":fmtDef(getDateTime(),compareIsoDateTime),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:uri,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:regex,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:byte,int32:{type:"number",validate:validateInt32},int64:{type:"number",validate:validateInt64},float:{type:"number",validate:validateNumber},double:{type:"number",validate:validateNumber},password:true,binary:true};pe.fastFormats={...pe.fullFormats,date:fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,compareDate),time:fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareTime),"date-time":fmtDef(/^\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,compareDateTime),"iso-time":fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoTime),"iso-date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoDateTime),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};pe.formatNames=Object.keys(pe.fullFormats);function isLeapYear(R){return R%4===0&&(R%100!==0||R%400===0)}const Ae=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const he=[0,31,28,31,30,31,30,31,31,30,31,30,31];function date(R){const pe=Ae.exec(R);if(!pe)return false;const ge=+pe[1];const ye=+pe[2];const me=+pe[3];return ye>=1&&ye<=12&&me>=1&&me<=(ye===2&&isLeapYear(ge)?29:he[ye])}function compareDate(R,pe){if(!(R&&pe))return undefined;if(R>pe)return 1;if(R23||Ce>59||R&&!ve)return false;if(he<=23&&ye<=59&&me<60)return true;const we=ye-Ce*be;const _e=he-Ee*be-(we<0?1:0);return(_e===23||_e===-1)&&(we===59||we===-1)&&me<61}}function compareTime(R,pe){if(!(R&&pe))return undefined;const Ae=new Date("2020-01-01T"+R).valueOf();const he=new Date("2020-01-01T"+pe).valueOf();if(!(Ae&&he))return undefined;return Ae-he}function compareIsoTime(R,pe){if(!(R&&pe))return undefined;const Ae=ge.exec(R);const he=ge.exec(pe);if(!(Ae&&he))return undefined;R=Ae[1]+Ae[2]+Ae[3];pe=he[1]+he[2]+he[3];if(R>pe)return 1;if(R=Ee}function validateInt64(R){return Number.isInteger(R)}function validateNumber(){return true}const we=/[^\\]\\Z/;function regex(R){if(we.test(R))return false;try{new RegExp(R);return true}catch(R){return false}}},567:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(20407);const ge=Ae(98433);const ye=Ae(19179);const me=new ye.Name("fullFormats");const ve=new ye.Name("fastFormats");const formatsPlugin=(R,pe={keywords:true})=>{if(Array.isArray(pe)){addFormats(R,pe,he.fullFormats,me);return R}const[Ae,ye]=pe.mode==="fast"?[he.fastFormats,ve]:[he.fullFormats,me];const be=pe.formats||he.formatNames;addFormats(R,be,Ae,ye);if(pe.keywords)(0,ge.default)(R);return R};formatsPlugin.get=(R,pe="full")=>{const Ae=pe==="fast"?he.fastFormats:he.fullFormats;const ge=Ae[R];if(!ge)throw new Error(`Unknown format "${R}"`);return ge};function addFormats(R,pe,Ae,he){var ge;var me;(ge=(me=R.opts.code).formats)!==null&&ge!==void 0?ge:me.formats=(0,ye._)`require("ajv-formats/dist/formats").${he}`;for(const he of pe)R.addFormat(he,Ae[he])}R.exports=pe=formatsPlugin;Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=formatsPlugin},98433:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.formatLimitDefinition=void 0;const he=Ae(72426);const ge=Ae(19179);const ye=ge.operators;const me={formatMaximum:{okStr:"<=",ok:ye.LTE,fail:ye.GT},formatMinimum:{okStr:">=",ok:ye.GTE,fail:ye.LT},formatExclusiveMaximum:{okStr:"<",ok:ye.LT,fail:ye.GTE},formatExclusiveMinimum:{okStr:">",ok:ye.GT,fail:ye.LTE}};const ve={message:({keyword:R,schemaCode:pe})=>(0,ge.str)`should be ${me[R].okStr} ${pe}`,params:({keyword:R,schemaCode:pe})=>(0,ge._)`{comparison: ${me[R].okStr}, limit: ${pe}}`};pe.formatLimitDefinition={keyword:Object.keys(me),type:"string",schemaType:"string",$data:true,error:ve,code(R){const{gen:pe,data:Ae,schemaCode:ye,keyword:ve,it:be}=R;const{opts:Ee,self:Ce}=be;if(!Ee.validateFormats)return;const we=new he.KeywordCxt(be,Ce.RULES.all.format.definition,"format");if(we.$data)validate$DataFormat();else validateFormat();function validate$DataFormat(){const Ae=pe.scopeValue("formats",{ref:Ce.formats,code:Ee.code.formats});const he=pe.const("fmt",(0,ge._)`${Ae}[${we.schemaCode}]`);R.fail$data((0,ge.or)((0,ge._)`typeof ${he} != "object"`,(0,ge._)`${he} instanceof RegExp`,(0,ge._)`typeof ${he}.compare != "function"`,compareCode(he)))}function validateFormat(){const Ae=we.schema;const he=Ce.formats[Ae];if(!he||he===true)return;if(typeof he!="object"||he instanceof RegExp||typeof he.compare!="function"){throw new Error(`"${ve}": format "${Ae}" does not define "compare" function`)}const ye=pe.scopeValue("formats",{key:Ae,ref:he,code:Ee.code.formats?(0,ge._)`${Ee.code.formats}${(0,ge.getProperty)(Ae)}`:undefined});R.fail$data(compareCode(ye))}function compareCode(R){return(0,ge._)`${R}.compare(${Ae}, ${ye}) ${me[ve].fail} 0`}},dependencies:["format"]};const formatLimitPlugin=R=>{R.addKeyword(pe.formatLimitDefinition);return R};pe["default"]=formatLimitPlugin},96121:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.MissingRefError=pe.ValidationError=pe.CodeGen=pe.Name=pe.nil=pe.stringify=pe.str=pe._=pe.KeywordCxt=pe.Ajv2020=void 0;const he=Ae(62685);const ge=Ae(96098);const ye=Ae(14025);const me=Ae(59246);const ve="https://json-schema.org/draft/2020-12/schema";class Ajv2020 extends he.default{constructor(R={}){super({...R,dynamicRef:true,next:true,unevaluated:true})}_addVocabularies(){super._addVocabularies();ge.default.forEach((R=>this.addVocabulary(R)));if(this.opts.discriminator)this.addKeyword(ye.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:R,meta:pe}=this.opts;if(!pe)return;me.default.call(this,R);this.refs["http://json-schema.org/schema"]=ve}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ve)?ve:undefined)}}pe.Ajv2020=Ajv2020;R.exports=pe=Ajv2020;R.exports.Ajv2020=Ajv2020;Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=Ajv2020;var be=Ae(18955);Object.defineProperty(pe,"KeywordCxt",{enumerable:true,get:function(){return be.KeywordCxt}});var Ee=Ae(19179);Object.defineProperty(pe,"_",{enumerable:true,get:function(){return Ee._}});Object.defineProperty(pe,"str",{enumerable:true,get:function(){return Ee.str}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return Ee.stringify}});Object.defineProperty(pe,"nil",{enumerable:true,get:function(){return Ee.nil}});Object.defineProperty(pe,"Name",{enumerable:true,get:function(){return Ee.Name}});Object.defineProperty(pe,"CodeGen",{enumerable:true,get:function(){return Ee.CodeGen}});var Ce=Ae(97616);Object.defineProperty(pe,"ValidationError",{enumerable:true,get:function(){return Ce.default}});var we=Ae(18190);Object.defineProperty(pe,"MissingRefError",{enumerable:true,get:function(){return we.default}})},72426:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.MissingRefError=pe.ValidationError=pe.CodeGen=pe.Name=pe.nil=pe.stringify=pe.str=pe._=pe.KeywordCxt=pe.Ajv=void 0;const he=Ae(62685);const ge=Ae(50691);const ye=Ae(14025);const me=Ae(98);const ve=["/properties"];const be="http://json-schema.org/draft-07/schema";class Ajv extends he.default{_addVocabularies(){super._addVocabularies();ge.default.forEach((R=>this.addVocabulary(R)));if(this.opts.discriminator)this.addKeyword(ye.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const R=this.opts.$data?this.$dataMetaSchema(me,ve):me;this.addMetaSchema(R,be,false);this.refs["http://json-schema.org/schema"]=be}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(be)?be:undefined)}}pe.Ajv=Ajv;R.exports=pe=Ajv;R.exports.Ajv=Ajv;Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=Ajv;var Ee=Ae(18955);Object.defineProperty(pe,"KeywordCxt",{enumerable:true,get:function(){return Ee.KeywordCxt}});var Ce=Ae(19179);Object.defineProperty(pe,"_",{enumerable:true,get:function(){return Ce._}});Object.defineProperty(pe,"str",{enumerable:true,get:function(){return Ce.str}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return Ce.stringify}});Object.defineProperty(pe,"nil",{enumerable:true,get:function(){return Ce.nil}});Object.defineProperty(pe,"Name",{enumerable:true,get:function(){return Ce.Name}});Object.defineProperty(pe,"CodeGen",{enumerable:true,get:function(){return Ce.CodeGen}});var we=Ae(97616);Object.defineProperty(pe,"ValidationError",{enumerable:true,get:function(){return we.default}});var _e=Ae(18190);Object.defineProperty(pe,"MissingRefError",{enumerable:true,get:function(){return _e.default}})},58358:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.regexpCode=pe.getEsmExportName=pe.getProperty=pe.safeStringify=pe.stringify=pe.strConcat=pe.addCodeArg=pe.str=pe._=pe.nil=pe._Code=pe.Name=pe.IDENTIFIER=pe._CodeOrName=void 0;class _CodeOrName{}pe._CodeOrName=_CodeOrName;pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Name extends _CodeOrName{constructor(R){super();if(!pe.IDENTIFIER.test(R))throw new Error("CodeGen: name must be a valid identifier");this.str=R}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}pe.Name=Name;class _Code extends _CodeOrName{constructor(R){super();this._items=typeof R==="string"?[R]:R}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const R=this._items[0];return R===""||R==='""'}get str(){var R;return(R=this._str)!==null&&R!==void 0?R:this._str=this._items.reduce(((R,pe)=>`${R}${pe}`),"")}get names(){var R;return(R=this._names)!==null&&R!==void 0?R:this._names=this._items.reduce(((R,pe)=>{if(pe instanceof Name)R[pe.str]=(R[pe.str]||0)+1;return R}),{})}}pe._Code=_Code;pe.nil=new _Code("");function _(R,...pe){const Ae=[R[0]];let he=0;while(he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.or=pe.and=pe.not=pe.CodeGen=pe.operators=pe.varKinds=pe.ValueScopeName=pe.ValueScope=pe.Scope=pe.Name=pe.regexpCode=pe.stringify=pe.getProperty=pe.nil=pe.strConcat=pe.str=pe._=void 0;const he=Ae(58358);const ge=Ae(52893);var ye=Ae(58358);Object.defineProperty(pe,"_",{enumerable:true,get:function(){return ye._}});Object.defineProperty(pe,"str",{enumerable:true,get:function(){return ye.str}});Object.defineProperty(pe,"strConcat",{enumerable:true,get:function(){return ye.strConcat}});Object.defineProperty(pe,"nil",{enumerable:true,get:function(){return ye.nil}});Object.defineProperty(pe,"getProperty",{enumerable:true,get:function(){return ye.getProperty}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return ye.stringify}});Object.defineProperty(pe,"regexpCode",{enumerable:true,get:function(){return ye.regexpCode}});Object.defineProperty(pe,"Name",{enumerable:true,get:function(){return ye.Name}});var me=Ae(52893);Object.defineProperty(pe,"Scope",{enumerable:true,get:function(){return me.Scope}});Object.defineProperty(pe,"ValueScope",{enumerable:true,get:function(){return me.ValueScope}});Object.defineProperty(pe,"ValueScopeName",{enumerable:true,get:function(){return me.ValueScopeName}});Object.defineProperty(pe,"varKinds",{enumerable:true,get:function(){return me.varKinds}});pe.operators={GT:new he._Code(">"),GTE:new he._Code(">="),LT:new he._Code("<"),LTE:new he._Code("<="),EQ:new he._Code("==="),NEQ:new he._Code("!=="),NOT:new he._Code("!"),OR:new he._Code("||"),AND:new he._Code("&&"),ADD:new he._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(R,pe){return this}}class Def extends Node{constructor(R,pe,Ae){super();this.varKind=R;this.name=pe;this.rhs=Ae}render({es5:R,_n:pe}){const Ae=R?ge.varKinds.var:this.varKind;const he=this.rhs===undefined?"":` = ${this.rhs}`;return`${Ae} ${this.name}${he};`+pe}optimizeNames(R,pe){if(!R[this.name.str])return;if(this.rhs)this.rhs=optimizeExpr(this.rhs,R,pe);return this}get names(){return this.rhs instanceof he._CodeOrName?this.rhs.names:{}}}class Assign extends Node{constructor(R,pe,Ae){super();this.lhs=R;this.rhs=pe;this.sideEffects=Ae}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,pe){if(this.lhs instanceof he.Name&&!R[this.lhs.str]&&!this.sideEffects)return;this.rhs=optimizeExpr(this.rhs,R,pe);return this}get names(){const R=this.lhs instanceof he.Name?{}:{...this.lhs.names};return addExprNames(R,this.rhs)}}class AssignOp extends Assign{constructor(R,pe,Ae,he){super(R,Ae,he);this.op=pe}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}}class Label extends Node{constructor(R){super();this.label=R;this.names={}}render({_n:R}){return`${this.label}:`+R}}class Break extends Node{constructor(R){super();this.label=R;this.names={}}render({_n:R}){const pe=this.label?` ${this.label}`:"";return`break${pe};`+R}}class Throw extends Node{constructor(R){super();this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}}class AnyCode extends Node{constructor(R){super();this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(R,pe){this.code=optimizeExpr(this.code,R,pe);return this}get names(){return this.code instanceof he._CodeOrName?this.code.names:{}}}class ParentNode extends Node{constructor(R=[]){super();this.nodes=R}render(R){return this.nodes.reduce(((pe,Ae)=>pe+Ae.render(R)),"")}optimizeNodes(){const{nodes:R}=this;let pe=R.length;while(pe--){const Ae=R[pe].optimizeNodes();if(Array.isArray(Ae))R.splice(pe,1,...Ae);else if(Ae)R[pe]=Ae;else R.splice(pe,1)}return R.length>0?this:undefined}optimizeNames(R,pe){const{nodes:Ae}=this;let he=Ae.length;while(he--){const ge=Ae[he];if(ge.optimizeNames(R,pe))continue;subtractNames(R,ge.names);Ae.splice(he,1)}return Ae.length>0?this:undefined}get names(){return this.nodes.reduce(((R,pe)=>addNames(R,pe.names)),{})}}class BlockNode extends ParentNode{render(R){return"{"+R._n+super.render(R)+"}"+R._n}}class Root extends ParentNode{}class Else extends BlockNode{}Else.kind="else";class If extends BlockNode{constructor(R,pe){super(pe);this.condition=R}render(R){let pe=`if(${this.condition})`+super.render(R);if(this.else)pe+="else "+this.else.render(R);return pe}optimizeNodes(){super.optimizeNodes();const R=this.condition;if(R===true)return this.nodes;let pe=this.else;if(pe){const R=pe.optimizeNodes();pe=this.else=Array.isArray(R)?new Else(R):R}if(pe){if(R===false)return pe instanceof If?pe:pe.nodes;if(this.nodes.length)return this;return new If(not(R),pe instanceof If?[pe]:pe.nodes)}if(R===false||!this.nodes.length)return undefined;return this}optimizeNames(R,pe){var Ae;this.else=(Ae=this.else)===null||Ae===void 0?void 0:Ae.optimizeNames(R,pe);if(!(super.optimizeNames(R,pe)||this.else))return;this.condition=optimizeExpr(this.condition,R,pe);return this}get names(){const R=super.names;addExprNames(R,this.condition);if(this.else)addNames(R,this.else.names);return R}}If.kind="if";class For extends BlockNode{}For.kind="for";class ForLoop extends For{constructor(R){super();this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,pe){if(!super.optimizeNames(R,pe))return;this.iteration=optimizeExpr(this.iteration,R,pe);return this}get names(){return addNames(super.names,this.iteration.names)}}class ForRange extends For{constructor(R,pe,Ae,he){super();this.varKind=R;this.name=pe;this.from=Ae;this.to=he}render(R){const pe=R.es5?ge.varKinds.var:this.varKind;const{name:Ae,from:he,to:ye}=this;return`for(${pe} ${Ae}=${he}; ${Ae}<${ye}; ${Ae}++)`+super.render(R)}get names(){const R=addExprNames(super.names,this.from);return addExprNames(R,this.to)}}class ForIter extends For{constructor(R,pe,Ae,he){super();this.loop=R;this.varKind=pe;this.name=Ae;this.iterable=he}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,pe){if(!super.optimizeNames(R,pe))return;this.iterable=optimizeExpr(this.iterable,R,pe);return this}get names(){return addNames(super.names,this.iterable.names)}}class Func extends BlockNode{constructor(R,pe,Ae){super();this.name=R;this.args=pe;this.async=Ae}render(R){const pe=this.async?"async ":"";return`${pe}function ${this.name}(${this.args})`+super.render(R)}}Func.kind="func";class Return extends ParentNode{render(R){return"return "+super.render(R)}}Return.kind="return";class Try extends BlockNode{render(R){let pe="try"+super.render(R);if(this.catch)pe+=this.catch.render(R);if(this.finally)pe+=this.finally.render(R);return pe}optimizeNodes(){var R,pe;super.optimizeNodes();(R=this.catch)===null||R===void 0?void 0:R.optimizeNodes();(pe=this.finally)===null||pe===void 0?void 0:pe.optimizeNodes();return this}optimizeNames(R,pe){var Ae,he;super.optimizeNames(R,pe);(Ae=this.catch)===null||Ae===void 0?void 0:Ae.optimizeNames(R,pe);(he=this.finally)===null||he===void 0?void 0:he.optimizeNames(R,pe);return this}get names(){const R=super.names;if(this.catch)addNames(R,this.catch.names);if(this.finally)addNames(R,this.finally.names);return R}}class Catch extends BlockNode{constructor(R){super();this.error=R}render(R){return`catch(${this.error})`+super.render(R)}}Catch.kind="catch";class Finally extends BlockNode{render(R){return"finally"+super.render(R)}}Finally.kind="finally";class CodeGen{constructor(R,pe={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...pe,_n:pe.lines?"\n":""};this._extScope=R;this._scope=new ge.Scope({parent:R});this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,pe){const Ae=this._extScope.value(R,pe);const he=this._values[Ae.prefix]||(this._values[Ae.prefix]=new Set);he.add(Ae);return Ae}getScopeValue(R,pe){return this._extScope.getValue(R,pe)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,pe,Ae,he){const ge=this._scope.toName(pe);if(Ae!==undefined&&he)this._constants[ge.str]=Ae;this._leafNode(new Def(R,ge,Ae));return ge}const(R,pe,Ae){return this._def(ge.varKinds.const,R,pe,Ae)}let(R,pe,Ae){return this._def(ge.varKinds.let,R,pe,Ae)}var(R,pe,Ae){return this._def(ge.varKinds.var,R,pe,Ae)}assign(R,pe,Ae){return this._leafNode(new Assign(R,pe,Ae))}add(R,Ae){return this._leafNode(new AssignOp(R,pe.operators.ADD,Ae))}code(R){if(typeof R=="function")R();else if(R!==he.nil)this._leafNode(new AnyCode(R));return this}object(...R){const pe=["{"];for(const[Ae,ge]of R){if(pe.length>1)pe.push(",");pe.push(Ae);if(Ae!==ge||this.opts.es5){pe.push(":");(0,he.addCodeArg)(pe,ge)}}pe.push("}");return new he._Code(pe)}if(R,pe,Ae){this._blockNode(new If(R));if(pe&&Ae){this.code(pe).else().code(Ae).endIf()}else if(pe){this.code(pe).endIf()}else if(Ae){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(R){return this._elseNode(new If(R))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(R,pe){this._blockNode(R);if(pe)this.code(pe).endFor();return this}for(R,pe){return this._for(new ForLoop(R),pe)}forRange(R,pe,Ae,he,ye=(this.opts.es5?ge.varKinds.var:ge.varKinds.let)){const me=this._scope.toName(R);return this._for(new ForRange(ye,me,pe,Ae),(()=>he(me)))}forOf(R,pe,Ae,ye=ge.varKinds.const){const me=this._scope.toName(R);if(this.opts.es5){const R=pe instanceof he.Name?pe:this.var("_arr",pe);return this.forRange("_i",0,(0,he._)`${R}.length`,(pe=>{this.var(me,(0,he._)`${R}[${pe}]`);Ae(me)}))}return this._for(new ForIter("of",ye,me,pe),(()=>Ae(me)))}forIn(R,pe,Ae,ye=(this.opts.es5?ge.varKinds.var:ge.varKinds.const)){if(this.opts.ownProperties){return this.forOf(R,(0,he._)`Object.keys(${pe})`,Ae)}const me=this._scope.toName(R);return this._for(new ForIter("in",ye,me,pe),(()=>Ae(me)))}endFor(){return this._endBlockNode(For)}label(R){return this._leafNode(new Label(R))}break(R){return this._leafNode(new Break(R))}return(R){const pe=new Return;this._blockNode(pe);this.code(R);if(pe.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(R,pe,Ae){if(!pe&&!Ae)throw new Error('CodeGen: "try" without "catch" and "finally"');const he=new Try;this._blockNode(he);this.code(R);if(pe){const R=this.name("e");this._currNode=he.catch=new Catch(R);pe(R)}if(Ae){this._currNode=he.finally=new Finally;this.code(Ae)}return this._endBlockNode(Catch,Finally)}throw(R){return this._leafNode(new Throw(R))}block(R,pe){this._blockStarts.push(this._nodes.length);if(R)this.code(R).endBlock(pe);return this}endBlock(R){const pe=this._blockStarts.pop();if(pe===undefined)throw new Error("CodeGen: not in self-balancing block");const Ae=this._nodes.length-pe;if(Ae<0||R!==undefined&&Ae!==R){throw new Error(`CodeGen: wrong number of nodes: ${Ae} vs ${R} expected`)}this._nodes.length=pe;return this}func(R,pe=he.nil,Ae,ge){this._blockNode(new Func(R,pe,Ae));if(ge)this.code(ge).endFunc();return this}endFunc(){return this._endBlockNode(Func)}optimize(R=1){while(R-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(R){this._currNode.nodes.push(R);return this}_blockNode(R){this._currNode.nodes.push(R);this._nodes.push(R)}_endBlockNode(R,pe){const Ae=this._currNode;if(Ae instanceof R||pe&&Ae instanceof pe){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${pe?`${R.kind}/${pe.kind}`:R.kind}"`)}_elseNode(R){const pe=this._currNode;if(!(pe instanceof If)){throw new Error('CodeGen: "else" without "if"')}this._currNode=pe.else=R;return this}get _root(){return this._nodes[0]}get _currNode(){const R=this._nodes;return R[R.length-1]}set _currNode(R){const pe=this._nodes;pe[pe.length-1]=R}}pe.CodeGen=CodeGen;function addNames(R,pe){for(const Ae in pe)R[Ae]=(R[Ae]||0)+(pe[Ae]||0);return R}function addExprNames(R,pe){return pe instanceof he._CodeOrName?addNames(R,pe.names):R}function optimizeExpr(R,pe,Ae){if(R instanceof he.Name)return replaceName(R);if(!canOptimize(R))return R;return new he._Code(R._items.reduce(((R,pe)=>{if(pe instanceof he.Name)pe=replaceName(pe);if(pe instanceof he._Code)R.push(...pe._items);else R.push(pe);return R}),[]));function replaceName(R){const he=Ae[R.str];if(he===undefined||pe[R.str]!==1)return R;delete pe[R.str];return he}function canOptimize(R){return R instanceof he._Code&&R._items.some((R=>R instanceof he.Name&&pe[R.str]===1&&Ae[R.str]!==undefined))}}function subtractNames(R,pe){for(const Ae in pe)R[Ae]=(R[Ae]||0)-(pe[Ae]||0)}function not(R){return typeof R=="boolean"||typeof R=="number"||R===null?!R:(0,he._)`!${par(R)}`}pe.not=not;const ve=mappend(pe.operators.AND);function and(...R){return R.reduce(ve)}pe.and=and;const be=mappend(pe.operators.OR);function or(...R){return R.reduce(be)}pe.or=or;function mappend(R){return(pe,Ae)=>pe===he.nil?Ae:Ae===he.nil?pe:(0,he._)`${par(pe)} ${R} ${par(Ae)}`}function par(R){return R instanceof he.Name?R:(0,he._)`(${R})`}},52893:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ValueScope=pe.ValueScopeName=pe.Scope=pe.varKinds=pe.UsedValueState=void 0;const he=Ae(58358);class ValueError extends Error{constructor(R){super(`CodeGen: "code" for ${R} not defined`);this.value=R.value}}var ge;(function(R){R[R["Started"]=0]="Started";R[R["Completed"]=1]="Completed"})(ge||(pe.UsedValueState=ge={}));pe.varKinds={const:new he.Name("const"),let:new he.Name("let"),var:new he.Name("var")};class Scope{constructor({prefixes:R,parent:pe}={}){this._names={};this._prefixes=R;this._parent=pe}toName(R){return R instanceof he.Name?R:this.name(R)}name(R){return new he.Name(this._newName(R))}_newName(R){const pe=this._names[R]||this._nameGroup(R);return`${R}${pe.index++}`}_nameGroup(R){var pe,Ae;if(((Ae=(pe=this._parent)===null||pe===void 0?void 0:pe._prefixes)===null||Ae===void 0?void 0:Ae.has(R))||this._prefixes&&!this._prefixes.has(R)){throw new Error(`CodeGen: prefix "${R}" is not allowed in this scope`)}return this._names[R]={prefix:R,index:0}}}pe.Scope=Scope;class ValueScopeName extends he.Name{constructor(R,pe){super(pe);this.prefix=R}setValue(R,{property:pe,itemIndex:Ae}){this.value=R;this.scopePath=(0,he._)`.${new he.Name(pe)}[${Ae}]`}}pe.ValueScopeName=ValueScopeName;const ye=(0,he._)`\n`;class ValueScope extends Scope{constructor(R){super(R);this._values={};this._scope=R.scope;this.opts={...R,_n:R.lines?ye:he.nil}}get(){return this._scope}name(R){return new ValueScopeName(R,this._newName(R))}value(R,pe){var Ae;if(pe.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const he=this.toName(R);const{prefix:ge}=he;const ye=(Ae=pe.key)!==null&&Ae!==void 0?Ae:pe.ref;let me=this._values[ge];if(me){const R=me.get(ye);if(R)return R}else{me=this._values[ge]=new Map}me.set(ye,he);const ve=this._scope[ge]||(this._scope[ge]=[]);const be=ve.length;ve[be]=pe.ref;he.setValue(pe,{property:ge,itemIndex:be});return he}getValue(R,pe){const Ae=this._values[R];if(!Ae)return;return Ae.get(pe)}scopeRefs(R,pe=this._values){return this._reduceValues(pe,(pe=>{if(pe.scopePath===undefined)throw new Error(`CodeGen: name "${pe}" has no value`);return(0,he._)`${R}${pe.scopePath}`}))}scopeCode(R=this._values,pe,Ae){return this._reduceValues(R,(R=>{if(R.value===undefined)throw new Error(`CodeGen: name "${R}" has no value`);return R.value.code}),pe,Ae)}_reduceValues(R,Ae,ye={},me){let ve=he.nil;for(const be in R){const Ee=R[be];if(!Ee)continue;const Ce=ye[be]=ye[be]||new Map;Ee.forEach((R=>{if(Ce.has(R))return;Ce.set(R,ge.Started);let ye=Ae(R);if(ye){const Ae=this.opts.es5?pe.varKinds.var:pe.varKinds.const;ve=(0,he._)`${ve}${Ae} ${R} = ${ye};${this.opts._n}`}else if(ye=me===null||me===void 0?void 0:me(R)){ve=(0,he._)`${ve}${ye}${this.opts._n}`}else{throw new ValueError(R)}Ce.set(R,ge.Completed)}))}return ve}}pe.ValueScope=ValueScope},86150:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.extendErrors=pe.resetErrorsCount=pe.reportExtraError=pe.reportError=pe.keyword$DataError=pe.keywordError=void 0;const he=Ae(19179);const ge=Ae(3439);const ye=Ae(10050);pe.keywordError={message:({keyword:R})=>(0,he.str)`must pass "${R}" keyword validation`};pe.keyword$DataError={message:({keyword:R,schemaType:pe})=>pe?(0,he.str)`"${R}" keyword must be ${pe} ($data)`:(0,he.str)`"${R}" keyword is invalid ($data)`};function reportError(R,Ae=pe.keywordError,ge,ye){const{it:me}=R;const{gen:ve,compositeRule:be,allErrors:Ee}=me;const Ce=errorObjectCode(R,Ae,ge);if(ye!==null&&ye!==void 0?ye:be||Ee){addError(ve,Ce)}else{returnErrors(me,(0,he._)`[${Ce}]`)}}pe.reportError=reportError;function reportExtraError(R,Ae=pe.keywordError,he){const{it:ge}=R;const{gen:me,compositeRule:ve,allErrors:be}=ge;const Ee=errorObjectCode(R,Ae,he);addError(me,Ee);if(!(ve||be)){returnErrors(ge,ye.default.vErrors)}}pe.reportExtraError=reportExtraError;function resetErrorsCount(R,pe){R.assign(ye.default.errors,pe);R.if((0,he._)`${ye.default.vErrors} !== null`,(()=>R.if(pe,(()=>R.assign((0,he._)`${ye.default.vErrors}.length`,pe)),(()=>R.assign(ye.default.vErrors,null)))))}pe.resetErrorsCount=resetErrorsCount;function extendErrors({gen:R,keyword:pe,schemaValue:Ae,data:ge,errsCount:me,it:ve}){if(me===undefined)throw new Error("ajv implementation error");const be=R.name("err");R.forRange("i",me,ye.default.errors,(me=>{R.const(be,(0,he._)`${ye.default.vErrors}[${me}]`);R.if((0,he._)`${be}.instancePath === undefined`,(()=>R.assign((0,he._)`${be}.instancePath`,(0,he.strConcat)(ye.default.instancePath,ve.errorPath))));R.assign((0,he._)`${be}.schemaPath`,(0,he.str)`${ve.errSchemaPath}/${pe}`);if(ve.opts.verbose){R.assign((0,he._)`${be}.schema`,Ae);R.assign((0,he._)`${be}.data`,ge)}}))}pe.extendErrors=extendErrors;function addError(R,pe){const Ae=R.const("err",pe);R.if((0,he._)`${ye.default.vErrors} === null`,(()=>R.assign(ye.default.vErrors,(0,he._)`[${Ae}]`)),(0,he._)`${ye.default.vErrors}.push(${Ae})`);R.code((0,he._)`${ye.default.errors}++`)}function returnErrors(R,pe){const{gen:Ae,validateName:ge,schemaEnv:ye}=R;if(ye.$async){Ae.throw((0,he._)`new ${R.ValidationError}(${pe})`)}else{Ae.assign((0,he._)`${ge}.errors`,pe);Ae.return(false)}}const me={keyword:new he.Name("keyword"),schemaPath:new he.Name("schemaPath"),params:new he.Name("params"),propertyName:new he.Name("propertyName"),message:new he.Name("message"),schema:new he.Name("schema"),parentSchema:new he.Name("parentSchema")};function errorObjectCode(R,pe,Ae){const{createErrors:ge}=R.it;if(ge===false)return(0,he._)`{}`;return errorObject(R,pe,Ae)}function errorObject(R,pe,Ae={}){const{gen:he,it:ge}=R;const ye=[errorInstancePath(ge,Ae),errorSchemaPath(R,Ae)];extraErrorProps(R,pe,ye);return he.object(...ye)}function errorInstancePath({errorPath:R},{instancePath:pe}){const Ae=pe?(0,he.str)`${R}${(0,ge.getErrorPath)(pe,ge.Type.Str)}`:R;return[ye.default.instancePath,(0,he.strConcat)(ye.default.instancePath,Ae)]}function errorSchemaPath({keyword:R,it:{errSchemaPath:pe}},{schemaPath:Ae,parentSchema:ye}){let ve=ye?pe:(0,he.str)`${pe}/${R}`;if(Ae){ve=(0,he.str)`${ve}${(0,ge.getErrorPath)(Ae,ge.Type.Str)}`}return[me.schemaPath,ve]}function extraErrorProps(R,{params:pe,message:Ae},ge){const{keyword:ve,data:be,schemaValue:Ee,it:Ce}=R;const{opts:we,propertyName:_e,topSchemaRef:Ie,schemaPath:Se}=Ce;ge.push([me.keyword,ve],[me.params,typeof pe=="function"?pe(R):pe||(0,he._)`{}`]);if(we.messages){ge.push([me.message,typeof Ae=="function"?Ae(R):Ae])}if(we.verbose){ge.push([me.schema,Ee],[me.parentSchema,(0,he._)`${Ie}${Se}`],[ye.default.data,be])}if(_e)ge.push([me.propertyName,_e])}},60813:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.resolveSchema=pe.getCompilingSchema=pe.resolveRef=pe.compileSchema=pe.SchemaEnv=void 0;const he=Ae(19179);const ge=Ae(97616);const ye=Ae(10050);const me=Ae(56646);const ve=Ae(3439);const be=Ae(18955);class SchemaEnv{constructor(R){var pe;this.refs={};this.dynamicAnchors={};let Ae;if(typeof R.schema=="object")Ae=R.schema;this.schema=R.schema;this.schemaId=R.schemaId;this.root=R.root||this;this.baseId=(pe=R.baseId)!==null&&pe!==void 0?pe:(0,me.normalizeId)(Ae===null||Ae===void 0?void 0:Ae[R.schemaId||"$id"]);this.schemaPath=R.schemaPath;this.localRefs=R.localRefs;this.meta=R.meta;this.$async=Ae===null||Ae===void 0?void 0:Ae.$async;this.refs={}}}pe.SchemaEnv=SchemaEnv;function compileSchema(R){const pe=getCompilingSchema.call(this,R);if(pe)return pe;const Ae=(0,me.getFullPath)(this.opts.uriResolver,R.root.baseId);const{es5:ve,lines:Ee}=this.opts.code;const{ownProperties:Ce}=this.opts;const we=new he.CodeGen(this.scope,{es5:ve,lines:Ee,ownProperties:Ce});let _e;if(R.$async){_e=we.scopeValue("Error",{ref:ge.default,code:(0,he._)`require("ajv/dist/runtime/validation_error").default`})}const Ie=we.scopeName("validate");R.validateName=Ie;const Se={gen:we,allErrors:this.opts.allErrors,data:ye.default.data,parentData:ye.default.parentData,parentDataProperty:ye.default.parentDataProperty,dataNames:[ye.default.data],dataPathArr:[he.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:we.scopeValue("schema",this.opts.code.source===true?{ref:R.schema,code:(0,he.stringify)(R.schema)}:{ref:R.schema}),validateName:Ie,ValidationError:_e,schema:R.schema,schemaEnv:R,rootId:Ae,baseId:R.baseId||Ae,schemaPath:he.nil,errSchemaPath:R.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,he._)`""`,opts:this.opts,self:this};let Be;try{this._compilations.add(R);(0,be.validateFunctionCode)(Se);we.optimize(this.opts.code.optimize);const pe=we.toString();Be=`${we.scopeRefs(ye.default.scope)}return ${pe}`;if(this.opts.code.process)Be=this.opts.code.process(Be,R);const Ae=new Function(`${ye.default.self}`,`${ye.default.scope}`,Be);const ge=Ae(this,this.scope.get());this.scope.value(Ie,{ref:ge});ge.errors=null;ge.schema=R.schema;ge.schemaEnv=R;if(R.$async)ge.$async=true;if(this.opts.code.source===true){ge.source={validateName:Ie,validateCode:pe,scopeValues:we._values}}if(this.opts.unevaluated){const{props:R,items:pe}=Se;ge.evaluated={props:R instanceof he.Name?undefined:R,items:pe instanceof he.Name?undefined:pe,dynamicProps:R instanceof he.Name,dynamicItems:pe instanceof he.Name};if(ge.source)ge.source.evaluated=(0,he.stringify)(ge.evaluated)}R.validate=ge;return R}catch(pe){delete R.validate;delete R.validateName;if(Be)this.logger.error("Error compiling schema, function code:",Be);throw pe}finally{this._compilations.delete(R)}}pe.compileSchema=compileSchema;function resolveRef(R,pe,Ae){var he;Ae=(0,me.resolveUrl)(this.opts.uriResolver,pe,Ae);const ge=R.refs[Ae];if(ge)return ge;let ye=resolve.call(this,R,Ae);if(ye===undefined){const ge=(he=R.localRefs)===null||he===void 0?void 0:he[Ae];const{schemaId:me}=this.opts;if(ge)ye=new SchemaEnv({schema:ge,schemaId:me,root:R,baseId:pe})}if(ye===undefined)return;return R.refs[Ae]=inlineOrCompile.call(this,ye)}pe.resolveRef=resolveRef;function inlineOrCompile(R){if((0,me.inlineRef)(R.schema,this.opts.inlineRefs))return R.schema;return R.validate?R:compileSchema.call(this,R)}function getCompilingSchema(R){for(const pe of this._compilations){if(sameSchemaEnv(pe,R))return pe}}pe.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(R,pe){return R.schema===pe.schema&&R.root===pe.root&&R.baseId===pe.baseId}function resolve(R,pe){let Ae;while(typeof(Ae=this.refs[pe])=="string")pe=Ae;return Ae||this.schemas[pe]||resolveSchema.call(this,R,pe)}function resolveSchema(R,pe){const Ae=this.opts.uriResolver.parse(pe);const he=(0,me._getFullPath)(this.opts.uriResolver,Ae);let ge=(0,me.getFullPath)(this.opts.uriResolver,R.baseId,undefined);if(Object.keys(R.schema).length>0&&he===ge){return getJsonPointer.call(this,Ae,R)}const ye=(0,me.normalizeId)(he);const ve=this.refs[ye]||this.schemas[ye];if(typeof ve=="string"){const pe=resolveSchema.call(this,R,ve);if(typeof(pe===null||pe===void 0?void 0:pe.schema)!=="object")return;return getJsonPointer.call(this,Ae,pe)}if(typeof(ve===null||ve===void 0?void 0:ve.schema)!=="object")return;if(!ve.validate)compileSchema.call(this,ve);if(ye===(0,me.normalizeId)(pe)){const{schema:pe}=ve;const{schemaId:Ae}=this.opts;const he=pe[Ae];if(he)ge=(0,me.resolveUrl)(this.opts.uriResolver,ge,he);return new SchemaEnv({schema:pe,schemaId:Ae,root:R,baseId:ge})}return getJsonPointer.call(this,Ae,ve)}pe.resolveSchema=resolveSchema;const Ee=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(R,{baseId:pe,schema:Ae,root:he}){var ge;if(((ge=R.fragment)===null||ge===void 0?void 0:ge[0])!=="/")return;for(const he of R.fragment.slice(1).split("/")){if(typeof Ae==="boolean")return;const R=Ae[(0,ve.unescapeFragment)(he)];if(R===undefined)return;Ae=R;const ge=typeof Ae==="object"&&Ae[this.opts.schemaId];if(!Ee.has(he)&&ge){pe=(0,me.resolveUrl)(this.opts.uriResolver,pe,ge)}}let ye;if(typeof Ae!="boolean"&&Ae.$ref&&!(0,ve.schemaHasRulesButRef)(Ae,this.RULES)){const R=(0,me.resolveUrl)(this.opts.uriResolver,pe,Ae.$ref);ye=resolveSchema.call(this,he,R)}const{schemaId:be}=this.opts;ye=ye||new SchemaEnv({schema:Ae,schemaId:be,root:he,baseId:pe});if(ye.schema!==ye.root.schema)return ye;return undefined}},10050:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge={data:new he.Name("data"),valCxt:new he.Name("valCxt"),instancePath:new he.Name("instancePath"),parentData:new he.Name("parentData"),parentDataProperty:new he.Name("parentDataProperty"),rootData:new he.Name("rootData"),dynamicAnchors:new he.Name("dynamicAnchors"),vErrors:new he.Name("vErrors"),errors:new he.Name("errors"),this:new he.Name("this"),self:new he.Name("self"),scope:new he.Name("scope"),json:new he.Name("json"),jsonPos:new he.Name("jsonPos"),jsonLen:new he.Name("jsonLen"),jsonPart:new he.Name("jsonPart")};pe["default"]=ge},18190:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(56646);class MissingRefError extends Error{constructor(R,pe,Ae,ge){super(ge||`can't resolve reference ${Ae} from id ${pe}`);this.missingRef=(0,he.resolveUrl)(R,pe,Ae);this.missingSchema=(0,he.normalizeId)((0,he.getFullPath)(R,this.missingRef))}}pe["default"]=MissingRefError},56646:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.getSchemaRefs=pe.resolveUrl=pe.normalizeId=pe._getFullPath=pe.getFullPath=pe.inlineRef=void 0;const he=Ae(3439);const ge=Ae(28206);const ye=Ae(52533);const me=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function inlineRef(R,pe=true){if(typeof R=="boolean")return true;if(pe===true)return!hasRef(R);if(!pe)return false;return countKeys(R)<=pe}pe.inlineRef=inlineRef;const ve=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(R){for(const pe in R){if(ve.has(pe))return true;const Ae=R[pe];if(Array.isArray(Ae)&&Ae.some(hasRef))return true;if(typeof Ae=="object"&&hasRef(Ae))return true}return false}function countKeys(R){let pe=0;for(const Ae in R){if(Ae==="$ref")return Infinity;pe++;if(me.has(Ae))continue;if(typeof R[Ae]=="object"){(0,he.eachItem)(R[Ae],(R=>pe+=countKeys(R)))}if(pe===Infinity)return Infinity}return pe}function getFullPath(R,pe="",Ae){if(Ae!==false)pe=normalizeId(pe);const he=R.parse(pe);return _getFullPath(R,he)}pe.getFullPath=getFullPath;function _getFullPath(R,pe){const Ae=R.serialize(pe);return Ae.split("#")[0]+"#"}pe._getFullPath=_getFullPath;const be=/#\/?$/;function normalizeId(R){return R?R.replace(be,""):""}pe.normalizeId=normalizeId;function resolveUrl(R,pe,Ae){Ae=normalizeId(Ae);return R.resolve(pe,Ae)}pe.resolveUrl=resolveUrl;const Ee=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(R,pe){if(typeof R=="boolean")return{};const{schemaId:Ae,uriResolver:he}=this.opts;const me=normalizeId(R[Ae]||pe);const ve={"":me};const be=getFullPath(he,me,false);const Ce={};const we=new Set;ye(R,{allKeys:true},((R,pe,he,ge)=>{if(ge===undefined)return;const ye=be+pe;let me=ve[ge];if(typeof R[Ae]=="string")me=addRef.call(this,R[Ae]);addAnchor.call(this,R.$anchor);addAnchor.call(this,R.$dynamicAnchor);ve[pe]=me;function addRef(pe){const Ae=this.opts.uriResolver.resolve;pe=normalizeId(me?Ae(me,pe):pe);if(we.has(pe))throw ambiguos(pe);we.add(pe);let he=this.refs[pe];if(typeof he=="string")he=this.refs[he];if(typeof he=="object"){checkAmbiguosRef(R,he.schema,pe)}else if(pe!==normalizeId(ye)){if(pe[0]==="#"){checkAmbiguosRef(R,Ce[pe],pe);Ce[pe]=R}else{this.refs[pe]=ye}}return pe}function addAnchor(R){if(typeof R=="string"){if(!Ee.test(R))throw new Error(`invalid anchor "${R}"`);addRef.call(this,`#${R}`)}}}));return Ce;function checkAmbiguosRef(R,pe,Ae){if(pe!==undefined&&!ge(R,pe))throw ambiguos(Ae)}function ambiguos(R){return new Error(`reference "${R}" resolves to more than one schema`)}}pe.getSchemaRefs=getSchemaRefs},1785:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.getRules=pe.isJSONType=void 0;const Ae=["string","number","integer","boolean","null","object","array"];const he=new Set(Ae);function isJSONType(R){return typeof R=="string"&&he.has(R)}pe.isJSONType=isJSONType;function getRules(){const R={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...R,integer:true,boolean:true,null:true},rules:[{rules:[]},R.number,R.string,R.array,R.object],post:{rules:[]},all:{},keywords:{}}}pe.getRules=getRules},3439:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.checkStrictMode=pe.getErrorPath=pe.Type=pe.useFunc=pe.setEvaluated=pe.evaluatedPropsToName=pe.mergeEvaluated=pe.eachItem=pe.unescapeJsonPointer=pe.escapeJsonPointer=pe.escapeFragment=pe.unescapeFragment=pe.schemaRefOrVal=pe.schemaHasRulesButRef=pe.schemaHasRules=pe.checkUnknownRules=pe.alwaysValidSchema=pe.toHash=void 0;const he=Ae(19179);const ge=Ae(58358);function toHash(R){const pe={};for(const Ae of R)pe[Ae]=true;return pe}pe.toHash=toHash;function alwaysValidSchema(R,pe){if(typeof pe=="boolean")return pe;if(Object.keys(pe).length===0)return true;checkUnknownRules(R,pe);return!schemaHasRules(pe,R.self.RULES.all)}pe.alwaysValidSchema=alwaysValidSchema;function checkUnknownRules(R,pe=R.schema){const{opts:Ae,self:he}=R;if(!Ae.strictSchema)return;if(typeof pe==="boolean")return;const ge=he.RULES.keywords;for(const Ae in pe){if(!ge[Ae])checkStrictMode(R,`unknown keyword: "${Ae}"`)}}pe.checkUnknownRules=checkUnknownRules;function schemaHasRules(R,pe){if(typeof R=="boolean")return!R;for(const Ae in R)if(pe[Ae])return true;return false}pe.schemaHasRules=schemaHasRules;function schemaHasRulesButRef(R,pe){if(typeof R=="boolean")return!R;for(const Ae in R)if(Ae!=="$ref"&&pe.all[Ae])return true;return false}pe.schemaHasRulesButRef=schemaHasRulesButRef;function schemaRefOrVal({topSchemaRef:R,schemaPath:pe},Ae,ge,ye){if(!ye){if(typeof Ae=="number"||typeof Ae=="boolean")return Ae;if(typeof Ae=="string")return(0,he._)`${Ae}`}return(0,he._)`${R}${pe}${(0,he.getProperty)(ge)}`}pe.schemaRefOrVal=schemaRefOrVal;function unescapeFragment(R){return unescapeJsonPointer(decodeURIComponent(R))}pe.unescapeFragment=unescapeFragment;function escapeFragment(R){return encodeURIComponent(escapeJsonPointer(R))}pe.escapeFragment=escapeFragment;function escapeJsonPointer(R){if(typeof R=="number")return`${R}`;return R.replace(/~/g,"~0").replace(/\//g,"~1")}pe.escapeJsonPointer=escapeJsonPointer;function unescapeJsonPointer(R){return R.replace(/~1/g,"/").replace(/~0/g,"~")}pe.unescapeJsonPointer=unescapeJsonPointer;function eachItem(R,pe){if(Array.isArray(R)){for(const Ae of R)pe(Ae)}else{pe(R)}}pe.eachItem=eachItem;function makeMergeEvaluated({mergeNames:R,mergeToName:pe,mergeValues:Ae,resultToName:ge}){return(ye,me,ve,be)=>{const Ee=ve===undefined?me:ve instanceof he.Name?(me instanceof he.Name?R(ye,me,ve):pe(ye,me,ve),ve):me instanceof he.Name?(pe(ye,ve,me),me):Ae(me,ve);return be===he.Name&&!(Ee instanceof he.Name)?ge(ye,Ee):Ee}}pe.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(R,pe,Ae)=>R.if((0,he._)`${Ae} !== true && ${pe} !== undefined`,(()=>{R.if((0,he._)`${pe} === true`,(()=>R.assign(Ae,true)),(()=>R.assign(Ae,(0,he._)`${Ae} || {}`).code((0,he._)`Object.assign(${Ae}, ${pe})`)))})),mergeToName:(R,pe,Ae)=>R.if((0,he._)`${Ae} !== true`,(()=>{if(pe===true){R.assign(Ae,true)}else{R.assign(Ae,(0,he._)`${Ae} || {}`);setEvaluated(R,Ae,pe)}})),mergeValues:(R,pe)=>R===true?true:{...R,...pe},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(R,pe,Ae)=>R.if((0,he._)`${Ae} !== true && ${pe} !== undefined`,(()=>R.assign(Ae,(0,he._)`${pe} === true ? true : ${Ae} > ${pe} ? ${Ae} : ${pe}`))),mergeToName:(R,pe,Ae)=>R.if((0,he._)`${Ae} !== true`,(()=>R.assign(Ae,pe===true?true:(0,he._)`${Ae} > ${pe} ? ${Ae} : ${pe}`))),mergeValues:(R,pe)=>R===true?true:Math.max(R,pe),resultToName:(R,pe)=>R.var("items",pe)})};function evaluatedPropsToName(R,pe){if(pe===true)return R.var("props",true);const Ae=R.var("props",(0,he._)`{}`);if(pe!==undefined)setEvaluated(R,Ae,pe);return Ae}pe.evaluatedPropsToName=evaluatedPropsToName;function setEvaluated(R,pe,Ae){Object.keys(Ae).forEach((Ae=>R.assign((0,he._)`${pe}${(0,he.getProperty)(Ae)}`,true)))}pe.setEvaluated=setEvaluated;const ye={};function useFunc(R,pe){return R.scopeValue("func",{ref:pe,code:ye[pe.code]||(ye[pe.code]=new ge._Code(pe.code))})}pe.useFunc=useFunc;var me;(function(R){R[R["Num"]=0]="Num";R[R["Str"]=1]="Str"})(me||(pe.Type=me={}));function getErrorPath(R,pe,Ae){if(R instanceof he.Name){const ge=pe===me.Num;return Ae?ge?(0,he._)`"[" + ${R} + "]"`:(0,he._)`"['" + ${R} + "']"`:ge?(0,he._)`"/" + ${R}`:(0,he._)`"/" + ${R}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return Ae?(0,he.getProperty)(R).toString():"/"+escapeJsonPointer(R)}pe.getErrorPath=getErrorPath;function checkStrictMode(R,pe,Ae=R.opts.strictSchema){if(!Ae)return;pe=`strict mode: ${pe}`;if(Ae===true)throw new Error(pe);R.self.logger.warn(pe)}pe.checkStrictMode=checkStrictMode},33627:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.shouldUseRule=pe.shouldUseGroup=pe.schemaHasRulesForType=void 0;function schemaHasRulesForType({schema:R,self:pe},Ae){const he=pe.RULES.types[Ae];return he&&he!==true&&shouldUseGroup(R,he)}pe.schemaHasRulesForType=schemaHasRulesForType;function shouldUseGroup(R,pe){return pe.rules.some((pe=>shouldUseRule(R,pe)))}pe.shouldUseGroup=shouldUseGroup;function shouldUseRule(R,pe){var Ae;return R[pe.keyword]!==undefined||((Ae=pe.definition.implements)===null||Ae===void 0?void 0:Ae.some((pe=>R[pe]!==undefined)))}pe.shouldUseRule=shouldUseRule},6214:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.boolOrEmptySchema=pe.topBoolOrEmptySchema=void 0;const he=Ae(86150);const ge=Ae(19179);const ye=Ae(10050);const me={message:"boolean schema is false"};function topBoolOrEmptySchema(R){const{gen:pe,schema:Ae,validateName:he}=R;if(Ae===false){falseSchemaError(R,false)}else if(typeof Ae=="object"&&Ae.$async===true){pe.return(ye.default.data)}else{pe.assign((0,ge._)`${he}.errors`,null);pe.return(true)}}pe.topBoolOrEmptySchema=topBoolOrEmptySchema;function boolOrEmptySchema(R,pe){const{gen:Ae,schema:he}=R;if(he===false){Ae.var(pe,false);falseSchemaError(R)}else{Ae.var(pe,true)}}pe.boolOrEmptySchema=boolOrEmptySchema;function falseSchemaError(R,pe){const{gen:Ae,data:ge}=R;const ye={gen:Ae,keyword:"false schema",data:ge,schema:false,schemaCode:false,schemaValue:false,params:{},it:R};(0,he.reportError)(ye,me,undefined,pe)}},7725:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.reportTypeError=pe.checkDataTypes=pe.checkDataType=pe.coerceAndCheckDataType=pe.getJSONTypes=pe.getSchemaTypes=pe.DataType=void 0;const he=Ae(1785);const ge=Ae(33627);const ye=Ae(86150);const me=Ae(19179);const ve=Ae(3439);var be;(function(R){R[R["Correct"]=0]="Correct";R[R["Wrong"]=1]="Wrong"})(be||(pe.DataType=be={}));function getSchemaTypes(R){const pe=getJSONTypes(R.type);const Ae=pe.includes("null");if(Ae){if(R.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!pe.length&&R.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(R.nullable===true)pe.push("null")}return pe}pe.getSchemaTypes=getSchemaTypes;function getJSONTypes(R){const pe=Array.isArray(R)?R:R?[R]:[];if(pe.every(he.isJSONType))return pe;throw new Error("type must be JSONType or JSONType[]: "+pe.join(","))}pe.getJSONTypes=getJSONTypes;function coerceAndCheckDataType(R,pe){const{gen:Ae,data:he,opts:ye}=R;const me=coerceToTypes(pe,ye.coerceTypes);const ve=pe.length>0&&!(me.length===0&&pe.length===1&&(0,ge.schemaHasRulesForType)(R,pe[0]));if(ve){const ge=checkDataTypes(pe,he,ye.strictNumbers,be.Wrong);Ae.if(ge,(()=>{if(me.length)coerceData(R,pe,me);else reportTypeError(R)}))}return ve}pe.coerceAndCheckDataType=coerceAndCheckDataType;const Ee=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(R,pe){return pe?R.filter((R=>Ee.has(R)||pe==="array"&&R==="array")):[]}function coerceData(R,pe,Ae){const{gen:he,data:ge,opts:ye}=R;const ve=he.let("dataType",(0,me._)`typeof ${ge}`);const be=he.let("coerced",(0,me._)`undefined`);if(ye.coerceTypes==="array"){he.if((0,me._)`${ve} == 'object' && Array.isArray(${ge}) && ${ge}.length == 1`,(()=>he.assign(ge,(0,me._)`${ge}[0]`).assign(ve,(0,me._)`typeof ${ge}`).if(checkDataTypes(pe,ge,ye.strictNumbers),(()=>he.assign(be,ge)))))}he.if((0,me._)`${be} !== undefined`);for(const R of Ae){if(Ee.has(R)||R==="array"&&ye.coerceTypes==="array"){coerceSpecificType(R)}}he.else();reportTypeError(R);he.endIf();he.if((0,me._)`${be} !== undefined`,(()=>{he.assign(ge,be);assignParentData(R,be)}));function coerceSpecificType(R){switch(R){case"string":he.elseIf((0,me._)`${ve} == "number" || ${ve} == "boolean"`).assign(be,(0,me._)`"" + ${ge}`).elseIf((0,me._)`${ge} === null`).assign(be,(0,me._)`""`);return;case"number":he.elseIf((0,me._)`${ve} == "boolean" || ${ge} === null + */Object.defineProperty(pe,"__esModule",{value:true});pe.isUint8Array=pe.isNonNegativeInteger=pe.isBoolean=pe.isString=pe.isPositiveInteger=pe.isNumber=void 0;function isNumber(R,pe){if(typeof R!=="number"){throw new TypeError(`"${pe}" must be number.`)}}pe.isNumber=isNumber;function isPositiveInteger(R,pe){if(!(Number.isInteger(R)&&R>0)){throw new TypeError(`"${pe}" must be a positive integer.`)}}pe.isPositiveInteger=isPositiveInteger;function isString(R,pe){if(typeof R!=="string"){throw new TypeError(`"${pe}" must be a string.`)}}pe.isString=isString;function isBoolean(R,pe){if(typeof R!=="boolean"){throw new TypeError(`"${pe}" must be a boolean.`)}}pe.isBoolean=isBoolean;function isNonNegativeInteger(R,pe){if(!(Number.isInteger(R)&&R>=0)){throw new TypeError(`"${pe}" must be a non-negative integer.`)}}pe.isNonNegativeInteger=isNonNegativeInteger;function isUint8Array(R,pe){if(!(R instanceof Uint8Array)){throw new TypeError(`"${pe}" must be a Uint8Array.`)}}pe.isUint8Array=isUint8Array},62974:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});const ye=Ae(36354);ge(Ae(6559),pe);pe["default"]=ye.StatusList},6559:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},28931:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.bs=pe.create=void 0;const ye=ge(Ae(44083));const me=Ae(75840);const ve=ge(Ae(62974));const be=Ae(63699);const sortClaims=R=>{const{id:pe,type:Ae,issuer:he,validFrom:ge,validUntil:ye,credentialSubject:me}=R;return JSON.parse(JSON.stringify({"@context":R["@context"],id:pe,type:Ae,issuer:he,validFrom:ge,validUntil:ye,credentialSubject:me}))};const create=({issuer:R,validFrom:pe,validUntil:Ae,id:ge,purpose:be}={issuer:"https://issuer.example",validFrom:(new Date).toISOString(),id:`urn:uuid:${(0,me.v4)()}`,purpose:"revocation"})=>he(void 0,void 0,void 0,(function*(){const he=yield ve.default.create({id:ge,purpose:be,length:131072});he.issuer={id:R};he.validFrom=pe;if(Ae){he.validUntil=Ae}return ye.default.stringify(sortClaims(he))}));pe.create=create;class BS{constructor(R){if(typeof R==="number"){this.bs=new be.Bitstring({length:R})}else{const pe=be.Bitstring.decodeBits({encoded:R});this.bs=new be.Bitstring({buffer:pe})}}set(R,pe){this.bs.set(R,pe);return this}get(R){return this.bs.get(R)}encode(){return this.bs.encodeBits()}}const bs=R=>new BS(R);pe.bs=bs},62444:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decoder=pe.encoder=void 0;pe.encoder=new TextEncoder;pe.decoder=new TextDecoder},98668:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},79656:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.ajv=void 0;const ge=he(Ae(96121));const ye=he(Ae(567));const me=he(Ae(50424));const ve=new ge.default({strict:false,allErrors:true});pe.ajv=ve;(0,ye.default)(ve);(0,me.default)(ve)},34702:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};Object.defineProperty(pe,"__esModule",{value:true});pe.validator=void 0;const ge=Ae(66944);const ye=Ae(62444);const me=Ae(28931);const ve=Ae(73445);const be=Ae(79656);const validator=({resolver:R})=>({validate:({type:pe,content:Ae})=>he(void 0,void 0,void 0,(function*(){const he=yield(0,ge.verifier)({resolver:R}).verify({type:pe,content:Ae});const Ee={verified:true,content:he,schema:{},status:{},warnings:[]};const{credentialSchema:we,credentialStatus:Ce}=he;if(we){const pe=Array.isArray(we)?he.credentialSchema:[we];for(const Ae of pe){if(Ae.type==="JsonSchema"){const pe=yield R.resolve({id:Ae.id,type:"application/schema+json",purpose:"schema-validation"});if(pe===true){Ee.schema[Ae.id]={validation:"ignored"};continue}const ge=ye.decoder.decode(pe.content);const me=JSON.parse(ge);let ve;let we;try{const R=be.ajv.getSchema(me.$id);we=R;if(we===undefined){we=be.ajv.compile(me)}ve=we(he)}catch(R){ve=false}Ee.schema[Ae.id]={validation:ve?"succeeded":"failed"};if(!ve){if(we===undefined){Ee.schema[Ae.id].errors=[{message:"json schema has invalid syntax"}]}else{Ee.schema[Ae.id].errors=we.errors}}}}}if(Ce){const Ae=Array.isArray(Ce)?he.credentialStatus:[Ce];for(const he of Ae){if(he.type==="BitstringStatusListEntry"){const Ae=yield R.resolve({id:he.statusListCredential,type:pe,purpose:"status-check"});const ye=yield(0,ge.verifier)({resolver:R}).verify(Ae);if(he.statusPurpose!==ye.credentialSubject.statusPurpose){Ee.status[`${he.id}`]={[he.statusPurpose]:false,errors:[{message:"status list purpose does not match credential status"}]}}else{const R=(0,me.bs)(ye.credentialSubject.encodedList).get(parseInt(he.statusListIndex,10));Ee.status[`${he.id}`]={[he.statusPurpose]:R}}}}}return(0,ve.conformance)(Ee)}))});pe.validator=validator},73445:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.conformance=void 0;const ge=he(Ae(11017));const ye=["/issuer"];const me=["https"];const isPointerToIdentifier=R=>R.endsWith("/id")||ye.includes(R);const stringIsAValidUrl=(R,pe)=>{try{const Ae=new URL(R);return pe?Ae.protocol?pe.map((R=>`${R.toLowerCase()}:`)).includes(Ae.protocol):false:true}catch(R){return false}};const identifiers=(R,pe,Ae)=>{if(isPointerToIdentifier(pe)){const he=stringIsAValidUrl(Ae,me);if(!he){R.warnings.push({message:`Identifier will not be well understood: ${Ae}`,pointer:pe,reference:"https://www.w3.org/TR/2024/CRD-vc-data-model-2.0-20240205/#identifiers"})}}if(pe.includes("id/")){R.warnings.push({message:`The id property MUST NOT have more than one value.`,pointer:pe,reference:"https://www.w3.org/TR/2024/CRD-vc-data-model-2.0-20240205/#identifiers"})}};const issuer=(R,pe,Ae)=>{if(pe.endsWith("/issuer")||pe.endsWith("/issuer/id")){const he=stringIsAValidUrl(Ae,me);if(!he){R.warnings.push({message:`Issuer MUST be a valid URL or an object containing an id property that is a valid URL`,pointer:pe,reference:"https://www.w3.org/TR/vc-data-model-2.0/#issuer"})}}};const holder=(R,pe,Ae)=>{if(pe.endsWith("/holder")||pe.endsWith("/holder/id")){const he=stringIsAValidUrl(Ae,me);if(!he){R.warnings.push({message:`Holder MUST be a valid URL or an object containing an id property that is a valid URL`,pointer:pe,reference:"https://www.w3.org/TR/vc-data-model-2.0/#presentations-0"})}}};const verifiableCredential=(R,pe,Ae)=>{var he;const ge=pe===null||pe===void 0?void 0:pe.split("/verifiableCredential/").pop();if(pe.startsWith("/verifiableCredential/")&&ge.length===1&&!Number.isNaN(parseInt(ge))){if(typeof Ae!=="object"){R.warnings.push({message:`verifiableCredential MUST NOT be non-object values such as numbers, strings, or URLs`,pointer:pe,reference:"https://www.w3.org/TR/vc-data-model-2.0/#presentations-0"})}}const ye=(he=pe===null||pe===void 0?void 0:pe.split("/verifiableCredential/").pop())===null||he===void 0?void 0:he.split("/")[0];if(pe.endsWith(`/verifiableCredential/${ye}/id`)){if(!Ae.includes("data:")){R.warnings.push({message:`verifiableCredential id value of the object MUST be a data: URL`,pointer:pe,reference:"https://www.w3.org/TR/vc-data-model-2.0/#enveloped-verifiable-credentials"})}}};const types=(R,pe,Ae)=>{};const names_and_descriptions=(R,pe,Ae)=>{if(pe.endsWith("/name")&&typeof Ae!=="string"){R.warnings.push({message:`Names must be strings`,pointer:pe,reference:"https://www.w3.org/TR/2024/CRD-vc-data-model-2.0-20240205/#names-and-descriptions"})}if(pe.endsWith("/description")&&typeof Ae!=="string"){R.warnings.push({message:`Description must be strings`,pointer:pe,reference:"https://www.w3.org/TR/2024/CRD-vc-data-model-2.0-20240205/#names-and-descriptions"})}};const conformance=R=>{const pe=ge.default.dict(R.content);const Ae=Object.keys(pe);if(!R.content["@context"]){R.warnings.push({message:`Credential will not be well understood, missing @context.`,pointer:"/@context",reference:"https://www.w3.org/TR/2024/CRD-vc-data-model-2.0-20240205/#contexts"})}for(const he of Ae){const Ae=pe[he];identifiers(R,he,Ae);types(R,he,Ae);names_and_descriptions(R,he,Ae);issuer(R,he,Ae);holder(R,he,Ae);verifiableCredential(R,he,Ae)}return R};pe.conformance=conformance},66944:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(95262),pe)},95262:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ve=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.verifier=pe.verifyUnsecuredPresentation=void 0;const be=ye(Ae(34061));const Ee=ye(Ae(88844));const we=ve(Ae(81203));const Ce=Ae(13806);const _e=Ae(62444);const acceptableAudience=(R,pe)=>Array.isArray(pe)?pe.includes(R):pe===R;const verifyJwt=({resolver:R},{type:pe,content:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){const ye=yield R.resolve({type:pe,content:Ae,purpose:"verification-material"});const me=yield(0,Ce.importKeyLike)(ye);const ve=_e.decoder.decode(Ae);const{payload:Ee}=yield be.jwtVerify(ve,me,{issuer:undefined,audience:he});if(Ee.nonce&&Ee.nonce!==ge){throw new Error("Verifier did not supply nonce: "+Ee.nonce)}if(Ee.aud&&!acceptableAudience(`${he}`,Ee.aud)){throw new Error("Verifier did not supply audience: "+Ee.aud)}return Ee}));const verifyCoseSign1=({resolver:R},{type:pe,content:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){const ye=Ee.attached.verifier({resolver:{resolve:()=>me(void 0,void 0,void 0,(function*(){const he=yield R.resolve({type:pe,content:Ae,purpose:"verification-material"});return(0,Ce.importJWK)(he)}))}});const ve=yield ye.verify({coseSign1:Ae});const be=JSON.parse(_e.decoder.decode(ve));if(be.nonce&&be.nonce!==ge){throw new Error("Verifier did not supply nonce: "+be.nonce)}if(be.aud&&!acceptableAudience(`${he}`,be.aud)){throw new Error("Verifier did not supply audience: "+be.aud)}return be}));const verifyUnsecuredPresentation=({resolver:R},{content:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){const ye=JSON.parse(_e.decoder.decode(Ae));for(const Ae of ye.verifiableCredential||[]){if(Ae.type!=="EnvelopedVerifiableCredential"){throw new Error("Unsupported verifiable credential type")}const[ye]=Ae.id.split(";");const me=ye.replace("data:","");const ve=_e.encoder.encode(Ae.id.split(";").pop());const{verify:be}=(0,pe.verifier)({resolver:R});yield be({type:me,content:ve,audience:he,nonce:ge})}return ye}));pe.verifyUnsecuredPresentation=verifyUnsecuredPresentation;const verifySdJwtCredential=({resolver:R},{type:pe,content:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){const ye=we.default.verifier({resolver:{resolve:()=>me(void 0,void 0,void 0,(function*(){const he=yield R.resolve({type:pe,content:Ae,purpose:"verification-material"});return(0,Ce.importJWK)(he)}))}});const ve=yield ye.verify({token:_e.decoder.decode(Ae),audience:he,nonce:ge});return ve.claimset}));const verifySdJwtPresentation=({resolver:R},{type:pe,content:Ae,audience:he,nonce:ge})=>me(void 0,void 0,void 0,(function*(){const ye=we.default.verifier({resolver:{resolve:()=>me(void 0,void 0,void 0,(function*(){const he=yield R.resolve({type:pe,content:Ae,purpose:"verification-material"});return(0,Ce.importJWK)(he)}))}});const ve=yield ye.verify({token:_e.decoder.decode(Ae),audience:he,nonce:ge});return ve.claimset}));const verifier=({resolver:R})=>({verify:({type:Ae,content:he,audience:ge,nonce:ye})=>me(void 0,void 0,void 0,(function*(){switch(Ae){case"application/vc-ld+cose":case"application/vp-ld+cose":{return verifyCoseSign1({resolver:R},{type:Ae,content:he,audience:ge,nonce:ye})}case"application/vc-ld+jwt":case"application/vp-ld+jwt":case"application/kb+jwt":{return verifyJwt({resolver:R},{type:Ae,content:he,audience:ge,nonce:ye})}case"application/vc-ld+sd-jwt":{return verifySdJwtCredential({resolver:R},{type:Ae,content:he,audience:ge,nonce:ye})}case"application/vp-ld+sd-jwt":{return verifySdJwtPresentation({resolver:R},{type:Ae,content:he,audience:ge,nonce:ye})}case"application/vp-ld":{return(0,pe.verifyUnsecuredPresentation)({resolver:R},{type:Ae,content:he,audience:ge,nonce:ye})}default:{throw new Error("Verifier does not support content type: "+Ae)}}}))});pe.verifier=verifier},50424:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(72426);const ge=Ae(19179);const ye=Ae(58358);const me=Ae(18955);const ve=Ae(86150);const be=Ae(10050);const Ee="errorMessage";const we=new he.Name("emUsed");const Ce={required:"missingProperty",dependencies:"property",dependentRequired:"property"};const _e=/\$\{[^}]+\}/;const Ie=/\$\{([^}]+)\}/g;const Se=/^""\s*\+\s*|\s*\+\s*""$/g;function errorMessage(R){return{keyword:Ee,schemaType:["string","object"],post:true,code(pe){const{gen:Ae,data:Be,schema:ke,schemaValue:Oe,it:Re}=pe;if(Re.createErrors===false)return;const Qe=ke;const xe=ge.strConcat(be.default.instancePath,Re.errorPath);Ae.if(he._`${be.default.errors} > 0`,(()=>{if(typeof Qe=="object"){const[R,pe]=keywordErrorsConfig(Qe);if(pe)processKeywordErrors(pe);if(R)processKeywordPropErrors(R);processChildErrors(childErrorsConfig(Qe))}const pe=typeof Qe=="string"?Qe:Qe._;if(pe)processAllErrors(pe);if(!R.keepErrors)removeUsedErrors()}));function childErrorsConfig({properties:R,items:pe}){const Ae={};if(R){Ae.props={};for(const pe in R)Ae.props[pe]=[]}if(pe){Ae.items={};for(let R=0;RAe.if(matchKeywordError(R,ye),(()=>Ae.code(he._`${ye}[${R}.keyword].push(${R})`).assign(he._`${R}.${we}`,true)))));const{singleError:Ee}=R;if(Ee){const R=Ae.let("message",he._`""`);const ge=Ae.let("paramsErrors",he._`[]`);loopErrors((pe=>{Ae.if(R,(()=>Ae.code(he._`${R} += ${typeof Ee=="string"?Ee:";"}`)));Ae.code(he._`${R} += ${errMessage(pe)}`);Ae.assign(ge,he._`${ge}.concat(${ye}[${pe}])`)}));ve.reportError(pe,{message:R,params:he._`{errors: ${ge}}`})}else{loopErrors((R=>ve.reportError(pe,{message:errMessage(R),params:he._`{errors: ${ye}[${R}]}`})))}function loopErrors(R){Ae.forIn("key",ye,(pe=>Ae.if(he._`${ye}[${pe}].length`,(()=>R(pe)))))}function errMessage(R){return he._`${R} in ${me} ? ${me}[${R}]() : ${Oe}[${R}]`}}function processKeywordPropErrors(R){const ge=Ae.const("emErrors",he.stringify(R));const ye=[];for(const pe in R){ye.push([pe,getTemplatesCode(R[pe],ke[pe])])}const me=Ae.const("templates",Ae.object(...ye));const Ee=Ae.scopeValue("obj",{ref:Ce,code:he.stringify(Ce)});const _e=Ae.let("emPropParams");const Ie=Ae.let("emParamsErrors");Ae.forOf("err",be.default.vErrors,(R=>Ae.if(matchKeywordError(R,ge),(()=>{Ae.assign(_e,he._`${Ee}[${R}.keyword]`);Ae.assign(Ie,he._`${ge}[${R}.keyword][${R}.params[${_e}]]`);Ae.if(Ie,(()=>Ae.code(he._`${Ie}.push(${R})`).assign(he._`${R}.${we}`,true)))}))));Ae.forIn("key",ge,(R=>Ae.forIn("keyProp",he._`${ge}[${R}]`,(ye=>{Ae.assign(Ie,he._`${ge}[${R}][${ye}]`);Ae.if(he._`${Ie}.length`,(()=>{const ge=Ae.const("tmpl",he._`${me}[${R}] && ${me}[${R}][${ye}]`);ve.reportError(pe,{message:he._`${ge} ? ${ge}() : ${Oe}[${R}][${ye}]`,params:he._`{errors: ${Ie}}`})}))}))))}function processChildErrors(R){const{props:ye,items:me}=R;if(!ye&&!me)return;const Ee=he._`typeof ${Be} == "object"`;const Ce=he._`Array.isArray(${Be})`;const _e=Ae.let("emErrors");let Ie;let Se;const Re=Ae.let("templates");if(ye&&me){Ie=Ae.let("emChildKwd");Ae.if(Ee);Ae.if(Ce,(()=>{init(me,ke.items);Ae.assign(Ie,he.str`items`)}),(()=>{init(ye,ke.properties);Ae.assign(Ie,he.str`properties`)}));Se=he._`[${Ie}]`}else if(me){Ae.if(Ce);init(me,ke.items);Se=he._`.items`}else if(ye){Ae.if(ge.and(Ee,ge.not(Ce)));init(ye,ke.properties);Se=he._`.properties`}Ae.forOf("err",be.default.vErrors,(R=>ifMatchesChildError(R,_e,(pe=>Ae.code(he._`${_e}[${pe}].push(${R})`).assign(he._`${R}.${we}`,true)))));Ae.forIn("key",_e,(R=>Ae.if(he._`${_e}[${R}].length`,(()=>{ve.reportError(pe,{message:he._`${R} in ${Re} ? ${Re}[${R}]() : ${Oe}${Se}[${R}]`,params:he._`{errors: ${_e}[${R}]}`});Ae.assign(he._`${be.default.vErrors}[${be.default.errors}-1].instancePath`,he._`${xe} + "/" + ${R}.replace(/~/g, "~0").replace(/\\//g, "~1")`)}))));Ae.endIf();function init(R,pe){Ae.assign(_e,he.stringify(R));Ae.assign(Re,getTemplatesCode(R,pe))}}function processAllErrors(R){const ge=Ae.const("emErrs",he._`[]`);Ae.forOf("err",be.default.vErrors,(R=>Ae.if(matchAnyError(R),(()=>Ae.code(he._`${ge}.push(${R})`).assign(he._`${R}.${we}`,true)))));Ae.if(he._`${ge}.length`,(()=>ve.reportError(pe,{message:templateExpr(R),params:he._`{errors: ${ge}}`})))}function removeUsedErrors(){const R=Ae.const("emErrs",he._`[]`);Ae.forOf("err",be.default.vErrors,(pe=>Ae.if(he._`!${pe}.${we}`,(()=>Ae.code(he._`${R}.push(${pe})`)))));Ae.assign(be.default.vErrors,R).assign(be.default.errors,he._`${R}.length`)}function matchKeywordError(R,pe){return ge.and(he._`${R}.keyword !== ${Ee}`,he._`!${R}.${we}`,he._`${R}.instancePath === ${xe}`,he._`${R}.keyword in ${pe}`,he._`${R}.schemaPath.indexOf(${Re.errSchemaPath}) === 0`,he._`/^\\/[^\\/]*$/.test(${R}.schemaPath.slice(${Re.errSchemaPath.length}))`)}function ifMatchesChildError(R,pe,ye){Ae.if(ge.and(he._`${R}.keyword !== ${Ee}`,he._`!${R}.${we}`,he._`${R}.instancePath.indexOf(${xe}) === 0`),(()=>{const ge=Ae.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:he._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`});const me=Ae.const("emMatches",he._`${ge}.exec(${R}.instancePath.slice(${xe}.length))`);const ve=Ae.const("emChild",he._`${me} && ${me}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);Ae.if(he._`${ve} !== undefined && ${ve} in ${pe}`,(()=>ye(ve)))}))}function matchAnyError(R){return ge.and(he._`${R}.keyword !== ${Ee}`,he._`!${R}.${we}`,ge.or(he._`${R}.instancePath === ${xe}`,ge.and(he._`${R}.instancePath.indexOf(${xe}) === 0`,he._`${R}.instancePath[${xe}.length] === "/"`)),he._`${R}.schemaPath.indexOf(${Re.errSchemaPath}) === 0`,he._`${R}.schemaPath[${Re.errSchemaPath}.length] === "/"`)}function getTemplatesCode(R,pe){const he=[];for(const Ae in R){const R=pe[Ae];if(_e.test(R))he.push([Ae,templateFunc(R)])}return Ae.object(...he)}function templateExpr(R){if(!_e.test(R))return he.stringify(R);return new ye._Code(ye.safeStringify(R).replace(Ie,((R,pe)=>`" + JSON.stringify(${me.getData(pe,Re)}) + "`)).replace(Se,""))}function templateFunc(R){return he._`function(){return ${templateExpr(R)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const ajvErrors=(R,pe={})=>{if(!R.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(R.opts.jsPropertySyntax){throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported")}return R.addKeyword(errorMessage(pe))};pe["default"]=ajvErrors;R.exports=ajvErrors;R.exports["default"]=ajvErrors},20407:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.formatNames=pe.fastFormats=pe.fullFormats=void 0;function fmtDef(R,pe){return{validate:R,compare:pe}}pe.fullFormats={date:fmtDef(date,compareDate),time:fmtDef(getTime(true),compareTime),"date-time":fmtDef(getDateTime(true),compareDateTime),"iso-time":fmtDef(getTime(),compareIsoTime),"iso-date-time":fmtDef(getDateTime(),compareIsoDateTime),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:uri,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:regex,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:byte,int32:{type:"number",validate:validateInt32},int64:{type:"number",validate:validateInt64},float:{type:"number",validate:validateNumber},double:{type:"number",validate:validateNumber},password:true,binary:true};pe.fastFormats={...pe.fullFormats,date:fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,compareDate),time:fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareTime),"date-time":fmtDef(/^\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,compareDateTime),"iso-time":fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoTime),"iso-date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoDateTime),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};pe.formatNames=Object.keys(pe.fullFormats);function isLeapYear(R){return R%4===0&&(R%100!==0||R%400===0)}const Ae=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const he=[0,31,28,31,30,31,30,31,31,30,31,30,31];function date(R){const pe=Ae.exec(R);if(!pe)return false;const ge=+pe[1];const ye=+pe[2];const me=+pe[3];return ye>=1&&ye<=12&&me>=1&&me<=(ye===2&&isLeapYear(ge)?29:he[ye])}function compareDate(R,pe){if(!(R&&pe))return undefined;if(R>pe)return 1;if(R23||we>59||R&&!ve)return false;if(he<=23&&ye<=59&&me<60)return true;const Ce=ye-we*be;const _e=he-Ee*be-(Ce<0?1:0);return(_e===23||_e===-1)&&(Ce===59||Ce===-1)&&me<61}}function compareTime(R,pe){if(!(R&&pe))return undefined;const Ae=new Date("2020-01-01T"+R).valueOf();const he=new Date("2020-01-01T"+pe).valueOf();if(!(Ae&&he))return undefined;return Ae-he}function compareIsoTime(R,pe){if(!(R&&pe))return undefined;const Ae=ge.exec(R);const he=ge.exec(pe);if(!(Ae&&he))return undefined;R=Ae[1]+Ae[2]+Ae[3];pe=he[1]+he[2]+he[3];if(R>pe)return 1;if(R=Ee}function validateInt64(R){return Number.isInteger(R)}function validateNumber(){return true}const Ce=/[^\\]\\Z/;function regex(R){if(Ce.test(R))return false;try{new RegExp(R);return true}catch(R){return false}}},567:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(20407);const ge=Ae(98433);const ye=Ae(19179);const me=new ye.Name("fullFormats");const ve=new ye.Name("fastFormats");const formatsPlugin=(R,pe={keywords:true})=>{if(Array.isArray(pe)){addFormats(R,pe,he.fullFormats,me);return R}const[Ae,ye]=pe.mode==="fast"?[he.fastFormats,ve]:[he.fullFormats,me];const be=pe.formats||he.formatNames;addFormats(R,be,Ae,ye);if(pe.keywords)(0,ge.default)(R);return R};formatsPlugin.get=(R,pe="full")=>{const Ae=pe==="fast"?he.fastFormats:he.fullFormats;const ge=Ae[R];if(!ge)throw new Error(`Unknown format "${R}"`);return ge};function addFormats(R,pe,Ae,he){var ge;var me;(ge=(me=R.opts.code).formats)!==null&&ge!==void 0?ge:me.formats=(0,ye._)`require("ajv-formats/dist/formats").${he}`;for(const he of pe)R.addFormat(he,Ae[he])}R.exports=pe=formatsPlugin;Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=formatsPlugin},98433:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.formatLimitDefinition=void 0;const he=Ae(72426);const ge=Ae(19179);const ye=ge.operators;const me={formatMaximum:{okStr:"<=",ok:ye.LTE,fail:ye.GT},formatMinimum:{okStr:">=",ok:ye.GTE,fail:ye.LT},formatExclusiveMaximum:{okStr:"<",ok:ye.LT,fail:ye.GTE},formatExclusiveMinimum:{okStr:">",ok:ye.GT,fail:ye.LTE}};const ve={message:({keyword:R,schemaCode:pe})=>(0,ge.str)`should be ${me[R].okStr} ${pe}`,params:({keyword:R,schemaCode:pe})=>(0,ge._)`{comparison: ${me[R].okStr}, limit: ${pe}}`};pe.formatLimitDefinition={keyword:Object.keys(me),type:"string",schemaType:"string",$data:true,error:ve,code(R){const{gen:pe,data:Ae,schemaCode:ye,keyword:ve,it:be}=R;const{opts:Ee,self:we}=be;if(!Ee.validateFormats)return;const Ce=new he.KeywordCxt(be,we.RULES.all.format.definition,"format");if(Ce.$data)validate$DataFormat();else validateFormat();function validate$DataFormat(){const Ae=pe.scopeValue("formats",{ref:we.formats,code:Ee.code.formats});const he=pe.const("fmt",(0,ge._)`${Ae}[${Ce.schemaCode}]`);R.fail$data((0,ge.or)((0,ge._)`typeof ${he} != "object"`,(0,ge._)`${he} instanceof RegExp`,(0,ge._)`typeof ${he}.compare != "function"`,compareCode(he)))}function validateFormat(){const Ae=Ce.schema;const he=we.formats[Ae];if(!he||he===true)return;if(typeof he!="object"||he instanceof RegExp||typeof he.compare!="function"){throw new Error(`"${ve}": format "${Ae}" does not define "compare" function`)}const ye=pe.scopeValue("formats",{key:Ae,ref:he,code:Ee.code.formats?(0,ge._)`${Ee.code.formats}${(0,ge.getProperty)(Ae)}`:undefined});R.fail$data(compareCode(ye))}function compareCode(R){return(0,ge._)`${R}.compare(${Ae}, ${ye}) ${me[ve].fail} 0`}},dependencies:["format"]};const formatLimitPlugin=R=>{R.addKeyword(pe.formatLimitDefinition);return R};pe["default"]=formatLimitPlugin},96121:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.MissingRefError=pe.ValidationError=pe.CodeGen=pe.Name=pe.nil=pe.stringify=pe.str=pe._=pe.KeywordCxt=pe.Ajv2020=void 0;const he=Ae(62685);const ge=Ae(96098);const ye=Ae(14025);const me=Ae(59246);const ve="https://json-schema.org/draft/2020-12/schema";class Ajv2020 extends he.default{constructor(R={}){super({...R,dynamicRef:true,next:true,unevaluated:true})}_addVocabularies(){super._addVocabularies();ge.default.forEach((R=>this.addVocabulary(R)));if(this.opts.discriminator)this.addKeyword(ye.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:R,meta:pe}=this.opts;if(!pe)return;me.default.call(this,R);this.refs["http://json-schema.org/schema"]=ve}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ve)?ve:undefined)}}pe.Ajv2020=Ajv2020;R.exports=pe=Ajv2020;R.exports.Ajv2020=Ajv2020;Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=Ajv2020;var be=Ae(18955);Object.defineProperty(pe,"KeywordCxt",{enumerable:true,get:function(){return be.KeywordCxt}});var Ee=Ae(19179);Object.defineProperty(pe,"_",{enumerable:true,get:function(){return Ee._}});Object.defineProperty(pe,"str",{enumerable:true,get:function(){return Ee.str}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return Ee.stringify}});Object.defineProperty(pe,"nil",{enumerable:true,get:function(){return Ee.nil}});Object.defineProperty(pe,"Name",{enumerable:true,get:function(){return Ee.Name}});Object.defineProperty(pe,"CodeGen",{enumerable:true,get:function(){return Ee.CodeGen}});var we=Ae(97616);Object.defineProperty(pe,"ValidationError",{enumerable:true,get:function(){return we.default}});var Ce=Ae(18190);Object.defineProperty(pe,"MissingRefError",{enumerable:true,get:function(){return Ce.default}})},72426:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.MissingRefError=pe.ValidationError=pe.CodeGen=pe.Name=pe.nil=pe.stringify=pe.str=pe._=pe.KeywordCxt=pe.Ajv=void 0;const he=Ae(62685);const ge=Ae(50691);const ye=Ae(14025);const me=Ae(98);const ve=["/properties"];const be="http://json-schema.org/draft-07/schema";class Ajv extends he.default{_addVocabularies(){super._addVocabularies();ge.default.forEach((R=>this.addVocabulary(R)));if(this.opts.discriminator)this.addKeyword(ye.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const R=this.opts.$data?this.$dataMetaSchema(me,ve):me;this.addMetaSchema(R,be,false);this.refs["http://json-schema.org/schema"]=be}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(be)?be:undefined)}}pe.Ajv=Ajv;R.exports=pe=Ajv;R.exports.Ajv=Ajv;Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=Ajv;var Ee=Ae(18955);Object.defineProperty(pe,"KeywordCxt",{enumerable:true,get:function(){return Ee.KeywordCxt}});var we=Ae(19179);Object.defineProperty(pe,"_",{enumerable:true,get:function(){return we._}});Object.defineProperty(pe,"str",{enumerable:true,get:function(){return we.str}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return we.stringify}});Object.defineProperty(pe,"nil",{enumerable:true,get:function(){return we.nil}});Object.defineProperty(pe,"Name",{enumerable:true,get:function(){return we.Name}});Object.defineProperty(pe,"CodeGen",{enumerable:true,get:function(){return we.CodeGen}});var Ce=Ae(97616);Object.defineProperty(pe,"ValidationError",{enumerable:true,get:function(){return Ce.default}});var _e=Ae(18190);Object.defineProperty(pe,"MissingRefError",{enumerable:true,get:function(){return _e.default}})},58358:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.regexpCode=pe.getEsmExportName=pe.getProperty=pe.safeStringify=pe.stringify=pe.strConcat=pe.addCodeArg=pe.str=pe._=pe.nil=pe._Code=pe.Name=pe.IDENTIFIER=pe._CodeOrName=void 0;class _CodeOrName{}pe._CodeOrName=_CodeOrName;pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Name extends _CodeOrName{constructor(R){super();if(!pe.IDENTIFIER.test(R))throw new Error("CodeGen: name must be a valid identifier");this.str=R}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}pe.Name=Name;class _Code extends _CodeOrName{constructor(R){super();this._items=typeof R==="string"?[R]:R}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const R=this._items[0];return R===""||R==='""'}get str(){var R;return(R=this._str)!==null&&R!==void 0?R:this._str=this._items.reduce(((R,pe)=>`${R}${pe}`),"")}get names(){var R;return(R=this._names)!==null&&R!==void 0?R:this._names=this._items.reduce(((R,pe)=>{if(pe instanceof Name)R[pe.str]=(R[pe.str]||0)+1;return R}),{})}}pe._Code=_Code;pe.nil=new _Code("");function _(R,...pe){const Ae=[R[0]];let he=0;while(he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.or=pe.and=pe.not=pe.CodeGen=pe.operators=pe.varKinds=pe.ValueScopeName=pe.ValueScope=pe.Scope=pe.Name=pe.regexpCode=pe.stringify=pe.getProperty=pe.nil=pe.strConcat=pe.str=pe._=void 0;const he=Ae(58358);const ge=Ae(52893);var ye=Ae(58358);Object.defineProperty(pe,"_",{enumerable:true,get:function(){return ye._}});Object.defineProperty(pe,"str",{enumerable:true,get:function(){return ye.str}});Object.defineProperty(pe,"strConcat",{enumerable:true,get:function(){return ye.strConcat}});Object.defineProperty(pe,"nil",{enumerable:true,get:function(){return ye.nil}});Object.defineProperty(pe,"getProperty",{enumerable:true,get:function(){return ye.getProperty}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return ye.stringify}});Object.defineProperty(pe,"regexpCode",{enumerable:true,get:function(){return ye.regexpCode}});Object.defineProperty(pe,"Name",{enumerable:true,get:function(){return ye.Name}});var me=Ae(52893);Object.defineProperty(pe,"Scope",{enumerable:true,get:function(){return me.Scope}});Object.defineProperty(pe,"ValueScope",{enumerable:true,get:function(){return me.ValueScope}});Object.defineProperty(pe,"ValueScopeName",{enumerable:true,get:function(){return me.ValueScopeName}});Object.defineProperty(pe,"varKinds",{enumerable:true,get:function(){return me.varKinds}});pe.operators={GT:new he._Code(">"),GTE:new he._Code(">="),LT:new he._Code("<"),LTE:new he._Code("<="),EQ:new he._Code("==="),NEQ:new he._Code("!=="),NOT:new he._Code("!"),OR:new he._Code("||"),AND:new he._Code("&&"),ADD:new he._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(R,pe){return this}}class Def extends Node{constructor(R,pe,Ae){super();this.varKind=R;this.name=pe;this.rhs=Ae}render({es5:R,_n:pe}){const Ae=R?ge.varKinds.var:this.varKind;const he=this.rhs===undefined?"":` = ${this.rhs}`;return`${Ae} ${this.name}${he};`+pe}optimizeNames(R,pe){if(!R[this.name.str])return;if(this.rhs)this.rhs=optimizeExpr(this.rhs,R,pe);return this}get names(){return this.rhs instanceof he._CodeOrName?this.rhs.names:{}}}class Assign extends Node{constructor(R,pe,Ae){super();this.lhs=R;this.rhs=pe;this.sideEffects=Ae}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,pe){if(this.lhs instanceof he.Name&&!R[this.lhs.str]&&!this.sideEffects)return;this.rhs=optimizeExpr(this.rhs,R,pe);return this}get names(){const R=this.lhs instanceof he.Name?{}:{...this.lhs.names};return addExprNames(R,this.rhs)}}class AssignOp extends Assign{constructor(R,pe,Ae,he){super(R,Ae,he);this.op=pe}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}}class Label extends Node{constructor(R){super();this.label=R;this.names={}}render({_n:R}){return`${this.label}:`+R}}class Break extends Node{constructor(R){super();this.label=R;this.names={}}render({_n:R}){const pe=this.label?` ${this.label}`:"";return`break${pe};`+R}}class Throw extends Node{constructor(R){super();this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}}class AnyCode extends Node{constructor(R){super();this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(R,pe){this.code=optimizeExpr(this.code,R,pe);return this}get names(){return this.code instanceof he._CodeOrName?this.code.names:{}}}class ParentNode extends Node{constructor(R=[]){super();this.nodes=R}render(R){return this.nodes.reduce(((pe,Ae)=>pe+Ae.render(R)),"")}optimizeNodes(){const{nodes:R}=this;let pe=R.length;while(pe--){const Ae=R[pe].optimizeNodes();if(Array.isArray(Ae))R.splice(pe,1,...Ae);else if(Ae)R[pe]=Ae;else R.splice(pe,1)}return R.length>0?this:undefined}optimizeNames(R,pe){const{nodes:Ae}=this;let he=Ae.length;while(he--){const ge=Ae[he];if(ge.optimizeNames(R,pe))continue;subtractNames(R,ge.names);Ae.splice(he,1)}return Ae.length>0?this:undefined}get names(){return this.nodes.reduce(((R,pe)=>addNames(R,pe.names)),{})}}class BlockNode extends ParentNode{render(R){return"{"+R._n+super.render(R)+"}"+R._n}}class Root extends ParentNode{}class Else extends BlockNode{}Else.kind="else";class If extends BlockNode{constructor(R,pe){super(pe);this.condition=R}render(R){let pe=`if(${this.condition})`+super.render(R);if(this.else)pe+="else "+this.else.render(R);return pe}optimizeNodes(){super.optimizeNodes();const R=this.condition;if(R===true)return this.nodes;let pe=this.else;if(pe){const R=pe.optimizeNodes();pe=this.else=Array.isArray(R)?new Else(R):R}if(pe){if(R===false)return pe instanceof If?pe:pe.nodes;if(this.nodes.length)return this;return new If(not(R),pe instanceof If?[pe]:pe.nodes)}if(R===false||!this.nodes.length)return undefined;return this}optimizeNames(R,pe){var Ae;this.else=(Ae=this.else)===null||Ae===void 0?void 0:Ae.optimizeNames(R,pe);if(!(super.optimizeNames(R,pe)||this.else))return;this.condition=optimizeExpr(this.condition,R,pe);return this}get names(){const R=super.names;addExprNames(R,this.condition);if(this.else)addNames(R,this.else.names);return R}}If.kind="if";class For extends BlockNode{}For.kind="for";class ForLoop extends For{constructor(R){super();this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,pe){if(!super.optimizeNames(R,pe))return;this.iteration=optimizeExpr(this.iteration,R,pe);return this}get names(){return addNames(super.names,this.iteration.names)}}class ForRange extends For{constructor(R,pe,Ae,he){super();this.varKind=R;this.name=pe;this.from=Ae;this.to=he}render(R){const pe=R.es5?ge.varKinds.var:this.varKind;const{name:Ae,from:he,to:ye}=this;return`for(${pe} ${Ae}=${he}; ${Ae}<${ye}; ${Ae}++)`+super.render(R)}get names(){const R=addExprNames(super.names,this.from);return addExprNames(R,this.to)}}class ForIter extends For{constructor(R,pe,Ae,he){super();this.loop=R;this.varKind=pe;this.name=Ae;this.iterable=he}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,pe){if(!super.optimizeNames(R,pe))return;this.iterable=optimizeExpr(this.iterable,R,pe);return this}get names(){return addNames(super.names,this.iterable.names)}}class Func extends BlockNode{constructor(R,pe,Ae){super();this.name=R;this.args=pe;this.async=Ae}render(R){const pe=this.async?"async ":"";return`${pe}function ${this.name}(${this.args})`+super.render(R)}}Func.kind="func";class Return extends ParentNode{render(R){return"return "+super.render(R)}}Return.kind="return";class Try extends BlockNode{render(R){let pe="try"+super.render(R);if(this.catch)pe+=this.catch.render(R);if(this.finally)pe+=this.finally.render(R);return pe}optimizeNodes(){var R,pe;super.optimizeNodes();(R=this.catch)===null||R===void 0?void 0:R.optimizeNodes();(pe=this.finally)===null||pe===void 0?void 0:pe.optimizeNodes();return this}optimizeNames(R,pe){var Ae,he;super.optimizeNames(R,pe);(Ae=this.catch)===null||Ae===void 0?void 0:Ae.optimizeNames(R,pe);(he=this.finally)===null||he===void 0?void 0:he.optimizeNames(R,pe);return this}get names(){const R=super.names;if(this.catch)addNames(R,this.catch.names);if(this.finally)addNames(R,this.finally.names);return R}}class Catch extends BlockNode{constructor(R){super();this.error=R}render(R){return`catch(${this.error})`+super.render(R)}}Catch.kind="catch";class Finally extends BlockNode{render(R){return"finally"+super.render(R)}}Finally.kind="finally";class CodeGen{constructor(R,pe={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...pe,_n:pe.lines?"\n":""};this._extScope=R;this._scope=new ge.Scope({parent:R});this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,pe){const Ae=this._extScope.value(R,pe);const he=this._values[Ae.prefix]||(this._values[Ae.prefix]=new Set);he.add(Ae);return Ae}getScopeValue(R,pe){return this._extScope.getValue(R,pe)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,pe,Ae,he){const ge=this._scope.toName(pe);if(Ae!==undefined&&he)this._constants[ge.str]=Ae;this._leafNode(new Def(R,ge,Ae));return ge}const(R,pe,Ae){return this._def(ge.varKinds.const,R,pe,Ae)}let(R,pe,Ae){return this._def(ge.varKinds.let,R,pe,Ae)}var(R,pe,Ae){return this._def(ge.varKinds.var,R,pe,Ae)}assign(R,pe,Ae){return this._leafNode(new Assign(R,pe,Ae))}add(R,Ae){return this._leafNode(new AssignOp(R,pe.operators.ADD,Ae))}code(R){if(typeof R=="function")R();else if(R!==he.nil)this._leafNode(new AnyCode(R));return this}object(...R){const pe=["{"];for(const[Ae,ge]of R){if(pe.length>1)pe.push(",");pe.push(Ae);if(Ae!==ge||this.opts.es5){pe.push(":");(0,he.addCodeArg)(pe,ge)}}pe.push("}");return new he._Code(pe)}if(R,pe,Ae){this._blockNode(new If(R));if(pe&&Ae){this.code(pe).else().code(Ae).endIf()}else if(pe){this.code(pe).endIf()}else if(Ae){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(R){return this._elseNode(new If(R))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(R,pe){this._blockNode(R);if(pe)this.code(pe).endFor();return this}for(R,pe){return this._for(new ForLoop(R),pe)}forRange(R,pe,Ae,he,ye=(this.opts.es5?ge.varKinds.var:ge.varKinds.let)){const me=this._scope.toName(R);return this._for(new ForRange(ye,me,pe,Ae),(()=>he(me)))}forOf(R,pe,Ae,ye=ge.varKinds.const){const me=this._scope.toName(R);if(this.opts.es5){const R=pe instanceof he.Name?pe:this.var("_arr",pe);return this.forRange("_i",0,(0,he._)`${R}.length`,(pe=>{this.var(me,(0,he._)`${R}[${pe}]`);Ae(me)}))}return this._for(new ForIter("of",ye,me,pe),(()=>Ae(me)))}forIn(R,pe,Ae,ye=(this.opts.es5?ge.varKinds.var:ge.varKinds.const)){if(this.opts.ownProperties){return this.forOf(R,(0,he._)`Object.keys(${pe})`,Ae)}const me=this._scope.toName(R);return this._for(new ForIter("in",ye,me,pe),(()=>Ae(me)))}endFor(){return this._endBlockNode(For)}label(R){return this._leafNode(new Label(R))}break(R){return this._leafNode(new Break(R))}return(R){const pe=new Return;this._blockNode(pe);this.code(R);if(pe.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(R,pe,Ae){if(!pe&&!Ae)throw new Error('CodeGen: "try" without "catch" and "finally"');const he=new Try;this._blockNode(he);this.code(R);if(pe){const R=this.name("e");this._currNode=he.catch=new Catch(R);pe(R)}if(Ae){this._currNode=he.finally=new Finally;this.code(Ae)}return this._endBlockNode(Catch,Finally)}throw(R){return this._leafNode(new Throw(R))}block(R,pe){this._blockStarts.push(this._nodes.length);if(R)this.code(R).endBlock(pe);return this}endBlock(R){const pe=this._blockStarts.pop();if(pe===undefined)throw new Error("CodeGen: not in self-balancing block");const Ae=this._nodes.length-pe;if(Ae<0||R!==undefined&&Ae!==R){throw new Error(`CodeGen: wrong number of nodes: ${Ae} vs ${R} expected`)}this._nodes.length=pe;return this}func(R,pe=he.nil,Ae,ge){this._blockNode(new Func(R,pe,Ae));if(ge)this.code(ge).endFunc();return this}endFunc(){return this._endBlockNode(Func)}optimize(R=1){while(R-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(R){this._currNode.nodes.push(R);return this}_blockNode(R){this._currNode.nodes.push(R);this._nodes.push(R)}_endBlockNode(R,pe){const Ae=this._currNode;if(Ae instanceof R||pe&&Ae instanceof pe){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${pe?`${R.kind}/${pe.kind}`:R.kind}"`)}_elseNode(R){const pe=this._currNode;if(!(pe instanceof If)){throw new Error('CodeGen: "else" without "if"')}this._currNode=pe.else=R;return this}get _root(){return this._nodes[0]}get _currNode(){const R=this._nodes;return R[R.length-1]}set _currNode(R){const pe=this._nodes;pe[pe.length-1]=R}}pe.CodeGen=CodeGen;function addNames(R,pe){for(const Ae in pe)R[Ae]=(R[Ae]||0)+(pe[Ae]||0);return R}function addExprNames(R,pe){return pe instanceof he._CodeOrName?addNames(R,pe.names):R}function optimizeExpr(R,pe,Ae){if(R instanceof he.Name)return replaceName(R);if(!canOptimize(R))return R;return new he._Code(R._items.reduce(((R,pe)=>{if(pe instanceof he.Name)pe=replaceName(pe);if(pe instanceof he._Code)R.push(...pe._items);else R.push(pe);return R}),[]));function replaceName(R){const he=Ae[R.str];if(he===undefined||pe[R.str]!==1)return R;delete pe[R.str];return he}function canOptimize(R){return R instanceof he._Code&&R._items.some((R=>R instanceof he.Name&&pe[R.str]===1&&Ae[R.str]!==undefined))}}function subtractNames(R,pe){for(const Ae in pe)R[Ae]=(R[Ae]||0)-(pe[Ae]||0)}function not(R){return typeof R=="boolean"||typeof R=="number"||R===null?!R:(0,he._)`!${par(R)}`}pe.not=not;const ve=mappend(pe.operators.AND);function and(...R){return R.reduce(ve)}pe.and=and;const be=mappend(pe.operators.OR);function or(...R){return R.reduce(be)}pe.or=or;function mappend(R){return(pe,Ae)=>pe===he.nil?Ae:Ae===he.nil?pe:(0,he._)`${par(pe)} ${R} ${par(Ae)}`}function par(R){return R instanceof he.Name?R:(0,he._)`(${R})`}},52893:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ValueScope=pe.ValueScopeName=pe.Scope=pe.varKinds=pe.UsedValueState=void 0;const he=Ae(58358);class ValueError extends Error{constructor(R){super(`CodeGen: "code" for ${R} not defined`);this.value=R.value}}var ge;(function(R){R[R["Started"]=0]="Started";R[R["Completed"]=1]="Completed"})(ge||(pe.UsedValueState=ge={}));pe.varKinds={const:new he.Name("const"),let:new he.Name("let"),var:new he.Name("var")};class Scope{constructor({prefixes:R,parent:pe}={}){this._names={};this._prefixes=R;this._parent=pe}toName(R){return R instanceof he.Name?R:this.name(R)}name(R){return new he.Name(this._newName(R))}_newName(R){const pe=this._names[R]||this._nameGroup(R);return`${R}${pe.index++}`}_nameGroup(R){var pe,Ae;if(((Ae=(pe=this._parent)===null||pe===void 0?void 0:pe._prefixes)===null||Ae===void 0?void 0:Ae.has(R))||this._prefixes&&!this._prefixes.has(R)){throw new Error(`CodeGen: prefix "${R}" is not allowed in this scope`)}return this._names[R]={prefix:R,index:0}}}pe.Scope=Scope;class ValueScopeName extends he.Name{constructor(R,pe){super(pe);this.prefix=R}setValue(R,{property:pe,itemIndex:Ae}){this.value=R;this.scopePath=(0,he._)`.${new he.Name(pe)}[${Ae}]`}}pe.ValueScopeName=ValueScopeName;const ye=(0,he._)`\n`;class ValueScope extends Scope{constructor(R){super(R);this._values={};this._scope=R.scope;this.opts={...R,_n:R.lines?ye:he.nil}}get(){return this._scope}name(R){return new ValueScopeName(R,this._newName(R))}value(R,pe){var Ae;if(pe.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const he=this.toName(R);const{prefix:ge}=he;const ye=(Ae=pe.key)!==null&&Ae!==void 0?Ae:pe.ref;let me=this._values[ge];if(me){const R=me.get(ye);if(R)return R}else{me=this._values[ge]=new Map}me.set(ye,he);const ve=this._scope[ge]||(this._scope[ge]=[]);const be=ve.length;ve[be]=pe.ref;he.setValue(pe,{property:ge,itemIndex:be});return he}getValue(R,pe){const Ae=this._values[R];if(!Ae)return;return Ae.get(pe)}scopeRefs(R,pe=this._values){return this._reduceValues(pe,(pe=>{if(pe.scopePath===undefined)throw new Error(`CodeGen: name "${pe}" has no value`);return(0,he._)`${R}${pe.scopePath}`}))}scopeCode(R=this._values,pe,Ae){return this._reduceValues(R,(R=>{if(R.value===undefined)throw new Error(`CodeGen: name "${R}" has no value`);return R.value.code}),pe,Ae)}_reduceValues(R,Ae,ye={},me){let ve=he.nil;for(const be in R){const Ee=R[be];if(!Ee)continue;const we=ye[be]=ye[be]||new Map;Ee.forEach((R=>{if(we.has(R))return;we.set(R,ge.Started);let ye=Ae(R);if(ye){const Ae=this.opts.es5?pe.varKinds.var:pe.varKinds.const;ve=(0,he._)`${ve}${Ae} ${R} = ${ye};${this.opts._n}`}else if(ye=me===null||me===void 0?void 0:me(R)){ve=(0,he._)`${ve}${ye}${this.opts._n}`}else{throw new ValueError(R)}we.set(R,ge.Completed)}))}return ve}}pe.ValueScope=ValueScope},86150:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.extendErrors=pe.resetErrorsCount=pe.reportExtraError=pe.reportError=pe.keyword$DataError=pe.keywordError=void 0;const he=Ae(19179);const ge=Ae(3439);const ye=Ae(10050);pe.keywordError={message:({keyword:R})=>(0,he.str)`must pass "${R}" keyword validation`};pe.keyword$DataError={message:({keyword:R,schemaType:pe})=>pe?(0,he.str)`"${R}" keyword must be ${pe} ($data)`:(0,he.str)`"${R}" keyword is invalid ($data)`};function reportError(R,Ae=pe.keywordError,ge,ye){const{it:me}=R;const{gen:ve,compositeRule:be,allErrors:Ee}=me;const we=errorObjectCode(R,Ae,ge);if(ye!==null&&ye!==void 0?ye:be||Ee){addError(ve,we)}else{returnErrors(me,(0,he._)`[${we}]`)}}pe.reportError=reportError;function reportExtraError(R,Ae=pe.keywordError,he){const{it:ge}=R;const{gen:me,compositeRule:ve,allErrors:be}=ge;const Ee=errorObjectCode(R,Ae,he);addError(me,Ee);if(!(ve||be)){returnErrors(ge,ye.default.vErrors)}}pe.reportExtraError=reportExtraError;function resetErrorsCount(R,pe){R.assign(ye.default.errors,pe);R.if((0,he._)`${ye.default.vErrors} !== null`,(()=>R.if(pe,(()=>R.assign((0,he._)`${ye.default.vErrors}.length`,pe)),(()=>R.assign(ye.default.vErrors,null)))))}pe.resetErrorsCount=resetErrorsCount;function extendErrors({gen:R,keyword:pe,schemaValue:Ae,data:ge,errsCount:me,it:ve}){if(me===undefined)throw new Error("ajv implementation error");const be=R.name("err");R.forRange("i",me,ye.default.errors,(me=>{R.const(be,(0,he._)`${ye.default.vErrors}[${me}]`);R.if((0,he._)`${be}.instancePath === undefined`,(()=>R.assign((0,he._)`${be}.instancePath`,(0,he.strConcat)(ye.default.instancePath,ve.errorPath))));R.assign((0,he._)`${be}.schemaPath`,(0,he.str)`${ve.errSchemaPath}/${pe}`);if(ve.opts.verbose){R.assign((0,he._)`${be}.schema`,Ae);R.assign((0,he._)`${be}.data`,ge)}}))}pe.extendErrors=extendErrors;function addError(R,pe){const Ae=R.const("err",pe);R.if((0,he._)`${ye.default.vErrors} === null`,(()=>R.assign(ye.default.vErrors,(0,he._)`[${Ae}]`)),(0,he._)`${ye.default.vErrors}.push(${Ae})`);R.code((0,he._)`${ye.default.errors}++`)}function returnErrors(R,pe){const{gen:Ae,validateName:ge,schemaEnv:ye}=R;if(ye.$async){Ae.throw((0,he._)`new ${R.ValidationError}(${pe})`)}else{Ae.assign((0,he._)`${ge}.errors`,pe);Ae.return(false)}}const me={keyword:new he.Name("keyword"),schemaPath:new he.Name("schemaPath"),params:new he.Name("params"),propertyName:new he.Name("propertyName"),message:new he.Name("message"),schema:new he.Name("schema"),parentSchema:new he.Name("parentSchema")};function errorObjectCode(R,pe,Ae){const{createErrors:ge}=R.it;if(ge===false)return(0,he._)`{}`;return errorObject(R,pe,Ae)}function errorObject(R,pe,Ae={}){const{gen:he,it:ge}=R;const ye=[errorInstancePath(ge,Ae),errorSchemaPath(R,Ae)];extraErrorProps(R,pe,ye);return he.object(...ye)}function errorInstancePath({errorPath:R},{instancePath:pe}){const Ae=pe?(0,he.str)`${R}${(0,ge.getErrorPath)(pe,ge.Type.Str)}`:R;return[ye.default.instancePath,(0,he.strConcat)(ye.default.instancePath,Ae)]}function errorSchemaPath({keyword:R,it:{errSchemaPath:pe}},{schemaPath:Ae,parentSchema:ye}){let ve=ye?pe:(0,he.str)`${pe}/${R}`;if(Ae){ve=(0,he.str)`${ve}${(0,ge.getErrorPath)(Ae,ge.Type.Str)}`}return[me.schemaPath,ve]}function extraErrorProps(R,{params:pe,message:Ae},ge){const{keyword:ve,data:be,schemaValue:Ee,it:we}=R;const{opts:Ce,propertyName:_e,topSchemaRef:Ie,schemaPath:Se}=we;ge.push([me.keyword,ve],[me.params,typeof pe=="function"?pe(R):pe||(0,he._)`{}`]);if(Ce.messages){ge.push([me.message,typeof Ae=="function"?Ae(R):Ae])}if(Ce.verbose){ge.push([me.schema,Ee],[me.parentSchema,(0,he._)`${Ie}${Se}`],[ye.default.data,be])}if(_e)ge.push([me.propertyName,_e])}},60813:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.resolveSchema=pe.getCompilingSchema=pe.resolveRef=pe.compileSchema=pe.SchemaEnv=void 0;const he=Ae(19179);const ge=Ae(97616);const ye=Ae(10050);const me=Ae(56646);const ve=Ae(3439);const be=Ae(18955);class SchemaEnv{constructor(R){var pe;this.refs={};this.dynamicAnchors={};let Ae;if(typeof R.schema=="object")Ae=R.schema;this.schema=R.schema;this.schemaId=R.schemaId;this.root=R.root||this;this.baseId=(pe=R.baseId)!==null&&pe!==void 0?pe:(0,me.normalizeId)(Ae===null||Ae===void 0?void 0:Ae[R.schemaId||"$id"]);this.schemaPath=R.schemaPath;this.localRefs=R.localRefs;this.meta=R.meta;this.$async=Ae===null||Ae===void 0?void 0:Ae.$async;this.refs={}}}pe.SchemaEnv=SchemaEnv;function compileSchema(R){const pe=getCompilingSchema.call(this,R);if(pe)return pe;const Ae=(0,me.getFullPath)(this.opts.uriResolver,R.root.baseId);const{es5:ve,lines:Ee}=this.opts.code;const{ownProperties:we}=this.opts;const Ce=new he.CodeGen(this.scope,{es5:ve,lines:Ee,ownProperties:we});let _e;if(R.$async){_e=Ce.scopeValue("Error",{ref:ge.default,code:(0,he._)`require("ajv/dist/runtime/validation_error").default`})}const Ie=Ce.scopeName("validate");R.validateName=Ie;const Se={gen:Ce,allErrors:this.opts.allErrors,data:ye.default.data,parentData:ye.default.parentData,parentDataProperty:ye.default.parentDataProperty,dataNames:[ye.default.data],dataPathArr:[he.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:Ce.scopeValue("schema",this.opts.code.source===true?{ref:R.schema,code:(0,he.stringify)(R.schema)}:{ref:R.schema}),validateName:Ie,ValidationError:_e,schema:R.schema,schemaEnv:R,rootId:Ae,baseId:R.baseId||Ae,schemaPath:he.nil,errSchemaPath:R.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,he._)`""`,opts:this.opts,self:this};let Be;try{this._compilations.add(R);(0,be.validateFunctionCode)(Se);Ce.optimize(this.opts.code.optimize);const pe=Ce.toString();Be=`${Ce.scopeRefs(ye.default.scope)}return ${pe}`;if(this.opts.code.process)Be=this.opts.code.process(Be,R);const Ae=new Function(`${ye.default.self}`,`${ye.default.scope}`,Be);const ge=Ae(this,this.scope.get());this.scope.value(Ie,{ref:ge});ge.errors=null;ge.schema=R.schema;ge.schemaEnv=R;if(R.$async)ge.$async=true;if(this.opts.code.source===true){ge.source={validateName:Ie,validateCode:pe,scopeValues:Ce._values}}if(this.opts.unevaluated){const{props:R,items:pe}=Se;ge.evaluated={props:R instanceof he.Name?undefined:R,items:pe instanceof he.Name?undefined:pe,dynamicProps:R instanceof he.Name,dynamicItems:pe instanceof he.Name};if(ge.source)ge.source.evaluated=(0,he.stringify)(ge.evaluated)}R.validate=ge;return R}catch(pe){delete R.validate;delete R.validateName;if(Be)this.logger.error("Error compiling schema, function code:",Be);throw pe}finally{this._compilations.delete(R)}}pe.compileSchema=compileSchema;function resolveRef(R,pe,Ae){var he;Ae=(0,me.resolveUrl)(this.opts.uriResolver,pe,Ae);const ge=R.refs[Ae];if(ge)return ge;let ye=resolve.call(this,R,Ae);if(ye===undefined){const ge=(he=R.localRefs)===null||he===void 0?void 0:he[Ae];const{schemaId:me}=this.opts;if(ge)ye=new SchemaEnv({schema:ge,schemaId:me,root:R,baseId:pe})}if(ye===undefined)return;return R.refs[Ae]=inlineOrCompile.call(this,ye)}pe.resolveRef=resolveRef;function inlineOrCompile(R){if((0,me.inlineRef)(R.schema,this.opts.inlineRefs))return R.schema;return R.validate?R:compileSchema.call(this,R)}function getCompilingSchema(R){for(const pe of this._compilations){if(sameSchemaEnv(pe,R))return pe}}pe.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(R,pe){return R.schema===pe.schema&&R.root===pe.root&&R.baseId===pe.baseId}function resolve(R,pe){let Ae;while(typeof(Ae=this.refs[pe])=="string")pe=Ae;return Ae||this.schemas[pe]||resolveSchema.call(this,R,pe)}function resolveSchema(R,pe){const Ae=this.opts.uriResolver.parse(pe);const he=(0,me._getFullPath)(this.opts.uriResolver,Ae);let ge=(0,me.getFullPath)(this.opts.uriResolver,R.baseId,undefined);if(Object.keys(R.schema).length>0&&he===ge){return getJsonPointer.call(this,Ae,R)}const ye=(0,me.normalizeId)(he);const ve=this.refs[ye]||this.schemas[ye];if(typeof ve=="string"){const pe=resolveSchema.call(this,R,ve);if(typeof(pe===null||pe===void 0?void 0:pe.schema)!=="object")return;return getJsonPointer.call(this,Ae,pe)}if(typeof(ve===null||ve===void 0?void 0:ve.schema)!=="object")return;if(!ve.validate)compileSchema.call(this,ve);if(ye===(0,me.normalizeId)(pe)){const{schema:pe}=ve;const{schemaId:Ae}=this.opts;const he=pe[Ae];if(he)ge=(0,me.resolveUrl)(this.opts.uriResolver,ge,he);return new SchemaEnv({schema:pe,schemaId:Ae,root:R,baseId:ge})}return getJsonPointer.call(this,Ae,ve)}pe.resolveSchema=resolveSchema;const Ee=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(R,{baseId:pe,schema:Ae,root:he}){var ge;if(((ge=R.fragment)===null||ge===void 0?void 0:ge[0])!=="/")return;for(const he of R.fragment.slice(1).split("/")){if(typeof Ae==="boolean")return;const R=Ae[(0,ve.unescapeFragment)(he)];if(R===undefined)return;Ae=R;const ge=typeof Ae==="object"&&Ae[this.opts.schemaId];if(!Ee.has(he)&&ge){pe=(0,me.resolveUrl)(this.opts.uriResolver,pe,ge)}}let ye;if(typeof Ae!="boolean"&&Ae.$ref&&!(0,ve.schemaHasRulesButRef)(Ae,this.RULES)){const R=(0,me.resolveUrl)(this.opts.uriResolver,pe,Ae.$ref);ye=resolveSchema.call(this,he,R)}const{schemaId:be}=this.opts;ye=ye||new SchemaEnv({schema:Ae,schemaId:be,root:he,baseId:pe});if(ye.schema!==ye.root.schema)return ye;return undefined}},10050:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge={data:new he.Name("data"),valCxt:new he.Name("valCxt"),instancePath:new he.Name("instancePath"),parentData:new he.Name("parentData"),parentDataProperty:new he.Name("parentDataProperty"),rootData:new he.Name("rootData"),dynamicAnchors:new he.Name("dynamicAnchors"),vErrors:new he.Name("vErrors"),errors:new he.Name("errors"),this:new he.Name("this"),self:new he.Name("self"),scope:new he.Name("scope"),json:new he.Name("json"),jsonPos:new he.Name("jsonPos"),jsonLen:new he.Name("jsonLen"),jsonPart:new he.Name("jsonPart")};pe["default"]=ge},18190:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(56646);class MissingRefError extends Error{constructor(R,pe,Ae,ge){super(ge||`can't resolve reference ${Ae} from id ${pe}`);this.missingRef=(0,he.resolveUrl)(R,pe,Ae);this.missingSchema=(0,he.normalizeId)((0,he.getFullPath)(R,this.missingRef))}}pe["default"]=MissingRefError},56646:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.getSchemaRefs=pe.resolveUrl=pe.normalizeId=pe._getFullPath=pe.getFullPath=pe.inlineRef=void 0;const he=Ae(3439);const ge=Ae(28206);const ye=Ae(52533);const me=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function inlineRef(R,pe=true){if(typeof R=="boolean")return true;if(pe===true)return!hasRef(R);if(!pe)return false;return countKeys(R)<=pe}pe.inlineRef=inlineRef;const ve=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(R){for(const pe in R){if(ve.has(pe))return true;const Ae=R[pe];if(Array.isArray(Ae)&&Ae.some(hasRef))return true;if(typeof Ae=="object"&&hasRef(Ae))return true}return false}function countKeys(R){let pe=0;for(const Ae in R){if(Ae==="$ref")return Infinity;pe++;if(me.has(Ae))continue;if(typeof R[Ae]=="object"){(0,he.eachItem)(R[Ae],(R=>pe+=countKeys(R)))}if(pe===Infinity)return Infinity}return pe}function getFullPath(R,pe="",Ae){if(Ae!==false)pe=normalizeId(pe);const he=R.parse(pe);return _getFullPath(R,he)}pe.getFullPath=getFullPath;function _getFullPath(R,pe){const Ae=R.serialize(pe);return Ae.split("#")[0]+"#"}pe._getFullPath=_getFullPath;const be=/#\/?$/;function normalizeId(R){return R?R.replace(be,""):""}pe.normalizeId=normalizeId;function resolveUrl(R,pe,Ae){Ae=normalizeId(Ae);return R.resolve(pe,Ae)}pe.resolveUrl=resolveUrl;const Ee=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(R,pe){if(typeof R=="boolean")return{};const{schemaId:Ae,uriResolver:he}=this.opts;const me=normalizeId(R[Ae]||pe);const ve={"":me};const be=getFullPath(he,me,false);const we={};const Ce=new Set;ye(R,{allKeys:true},((R,pe,he,ge)=>{if(ge===undefined)return;const ye=be+pe;let me=ve[ge];if(typeof R[Ae]=="string")me=addRef.call(this,R[Ae]);addAnchor.call(this,R.$anchor);addAnchor.call(this,R.$dynamicAnchor);ve[pe]=me;function addRef(pe){const Ae=this.opts.uriResolver.resolve;pe=normalizeId(me?Ae(me,pe):pe);if(Ce.has(pe))throw ambiguos(pe);Ce.add(pe);let he=this.refs[pe];if(typeof he=="string")he=this.refs[he];if(typeof he=="object"){checkAmbiguosRef(R,he.schema,pe)}else if(pe!==normalizeId(ye)){if(pe[0]==="#"){checkAmbiguosRef(R,we[pe],pe);we[pe]=R}else{this.refs[pe]=ye}}return pe}function addAnchor(R){if(typeof R=="string"){if(!Ee.test(R))throw new Error(`invalid anchor "${R}"`);addRef.call(this,`#${R}`)}}}));return we;function checkAmbiguosRef(R,pe,Ae){if(pe!==undefined&&!ge(R,pe))throw ambiguos(Ae)}function ambiguos(R){return new Error(`reference "${R}" resolves to more than one schema`)}}pe.getSchemaRefs=getSchemaRefs},1785:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.getRules=pe.isJSONType=void 0;const Ae=["string","number","integer","boolean","null","object","array"];const he=new Set(Ae);function isJSONType(R){return typeof R=="string"&&he.has(R)}pe.isJSONType=isJSONType;function getRules(){const R={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...R,integer:true,boolean:true,null:true},rules:[{rules:[]},R.number,R.string,R.array,R.object],post:{rules:[]},all:{},keywords:{}}}pe.getRules=getRules},3439:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.checkStrictMode=pe.getErrorPath=pe.Type=pe.useFunc=pe.setEvaluated=pe.evaluatedPropsToName=pe.mergeEvaluated=pe.eachItem=pe.unescapeJsonPointer=pe.escapeJsonPointer=pe.escapeFragment=pe.unescapeFragment=pe.schemaRefOrVal=pe.schemaHasRulesButRef=pe.schemaHasRules=pe.checkUnknownRules=pe.alwaysValidSchema=pe.toHash=void 0;const he=Ae(19179);const ge=Ae(58358);function toHash(R){const pe={};for(const Ae of R)pe[Ae]=true;return pe}pe.toHash=toHash;function alwaysValidSchema(R,pe){if(typeof pe=="boolean")return pe;if(Object.keys(pe).length===0)return true;checkUnknownRules(R,pe);return!schemaHasRules(pe,R.self.RULES.all)}pe.alwaysValidSchema=alwaysValidSchema;function checkUnknownRules(R,pe=R.schema){const{opts:Ae,self:he}=R;if(!Ae.strictSchema)return;if(typeof pe==="boolean")return;const ge=he.RULES.keywords;for(const Ae in pe){if(!ge[Ae])checkStrictMode(R,`unknown keyword: "${Ae}"`)}}pe.checkUnknownRules=checkUnknownRules;function schemaHasRules(R,pe){if(typeof R=="boolean")return!R;for(const Ae in R)if(pe[Ae])return true;return false}pe.schemaHasRules=schemaHasRules;function schemaHasRulesButRef(R,pe){if(typeof R=="boolean")return!R;for(const Ae in R)if(Ae!=="$ref"&&pe.all[Ae])return true;return false}pe.schemaHasRulesButRef=schemaHasRulesButRef;function schemaRefOrVal({topSchemaRef:R,schemaPath:pe},Ae,ge,ye){if(!ye){if(typeof Ae=="number"||typeof Ae=="boolean")return Ae;if(typeof Ae=="string")return(0,he._)`${Ae}`}return(0,he._)`${R}${pe}${(0,he.getProperty)(ge)}`}pe.schemaRefOrVal=schemaRefOrVal;function unescapeFragment(R){return unescapeJsonPointer(decodeURIComponent(R))}pe.unescapeFragment=unescapeFragment;function escapeFragment(R){return encodeURIComponent(escapeJsonPointer(R))}pe.escapeFragment=escapeFragment;function escapeJsonPointer(R){if(typeof R=="number")return`${R}`;return R.replace(/~/g,"~0").replace(/\//g,"~1")}pe.escapeJsonPointer=escapeJsonPointer;function unescapeJsonPointer(R){return R.replace(/~1/g,"/").replace(/~0/g,"~")}pe.unescapeJsonPointer=unescapeJsonPointer;function eachItem(R,pe){if(Array.isArray(R)){for(const Ae of R)pe(Ae)}else{pe(R)}}pe.eachItem=eachItem;function makeMergeEvaluated({mergeNames:R,mergeToName:pe,mergeValues:Ae,resultToName:ge}){return(ye,me,ve,be)=>{const Ee=ve===undefined?me:ve instanceof he.Name?(me instanceof he.Name?R(ye,me,ve):pe(ye,me,ve),ve):me instanceof he.Name?(pe(ye,ve,me),me):Ae(me,ve);return be===he.Name&&!(Ee instanceof he.Name)?ge(ye,Ee):Ee}}pe.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(R,pe,Ae)=>R.if((0,he._)`${Ae} !== true && ${pe} !== undefined`,(()=>{R.if((0,he._)`${pe} === true`,(()=>R.assign(Ae,true)),(()=>R.assign(Ae,(0,he._)`${Ae} || {}`).code((0,he._)`Object.assign(${Ae}, ${pe})`)))})),mergeToName:(R,pe,Ae)=>R.if((0,he._)`${Ae} !== true`,(()=>{if(pe===true){R.assign(Ae,true)}else{R.assign(Ae,(0,he._)`${Ae} || {}`);setEvaluated(R,Ae,pe)}})),mergeValues:(R,pe)=>R===true?true:{...R,...pe},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(R,pe,Ae)=>R.if((0,he._)`${Ae} !== true && ${pe} !== undefined`,(()=>R.assign(Ae,(0,he._)`${pe} === true ? true : ${Ae} > ${pe} ? ${Ae} : ${pe}`))),mergeToName:(R,pe,Ae)=>R.if((0,he._)`${Ae} !== true`,(()=>R.assign(Ae,pe===true?true:(0,he._)`${Ae} > ${pe} ? ${Ae} : ${pe}`))),mergeValues:(R,pe)=>R===true?true:Math.max(R,pe),resultToName:(R,pe)=>R.var("items",pe)})};function evaluatedPropsToName(R,pe){if(pe===true)return R.var("props",true);const Ae=R.var("props",(0,he._)`{}`);if(pe!==undefined)setEvaluated(R,Ae,pe);return Ae}pe.evaluatedPropsToName=evaluatedPropsToName;function setEvaluated(R,pe,Ae){Object.keys(Ae).forEach((Ae=>R.assign((0,he._)`${pe}${(0,he.getProperty)(Ae)}`,true)))}pe.setEvaluated=setEvaluated;const ye={};function useFunc(R,pe){return R.scopeValue("func",{ref:pe,code:ye[pe.code]||(ye[pe.code]=new ge._Code(pe.code))})}pe.useFunc=useFunc;var me;(function(R){R[R["Num"]=0]="Num";R[R["Str"]=1]="Str"})(me||(pe.Type=me={}));function getErrorPath(R,pe,Ae){if(R instanceof he.Name){const ge=pe===me.Num;return Ae?ge?(0,he._)`"[" + ${R} + "]"`:(0,he._)`"['" + ${R} + "']"`:ge?(0,he._)`"/" + ${R}`:(0,he._)`"/" + ${R}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return Ae?(0,he.getProperty)(R).toString():"/"+escapeJsonPointer(R)}pe.getErrorPath=getErrorPath;function checkStrictMode(R,pe,Ae=R.opts.strictSchema){if(!Ae)return;pe=`strict mode: ${pe}`;if(Ae===true)throw new Error(pe);R.self.logger.warn(pe)}pe.checkStrictMode=checkStrictMode},33627:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.shouldUseRule=pe.shouldUseGroup=pe.schemaHasRulesForType=void 0;function schemaHasRulesForType({schema:R,self:pe},Ae){const he=pe.RULES.types[Ae];return he&&he!==true&&shouldUseGroup(R,he)}pe.schemaHasRulesForType=schemaHasRulesForType;function shouldUseGroup(R,pe){return pe.rules.some((pe=>shouldUseRule(R,pe)))}pe.shouldUseGroup=shouldUseGroup;function shouldUseRule(R,pe){var Ae;return R[pe.keyword]!==undefined||((Ae=pe.definition.implements)===null||Ae===void 0?void 0:Ae.some((pe=>R[pe]!==undefined)))}pe.shouldUseRule=shouldUseRule},6214:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.boolOrEmptySchema=pe.topBoolOrEmptySchema=void 0;const he=Ae(86150);const ge=Ae(19179);const ye=Ae(10050);const me={message:"boolean schema is false"};function topBoolOrEmptySchema(R){const{gen:pe,schema:Ae,validateName:he}=R;if(Ae===false){falseSchemaError(R,false)}else if(typeof Ae=="object"&&Ae.$async===true){pe.return(ye.default.data)}else{pe.assign((0,ge._)`${he}.errors`,null);pe.return(true)}}pe.topBoolOrEmptySchema=topBoolOrEmptySchema;function boolOrEmptySchema(R,pe){const{gen:Ae,schema:he}=R;if(he===false){Ae.var(pe,false);falseSchemaError(R)}else{Ae.var(pe,true)}}pe.boolOrEmptySchema=boolOrEmptySchema;function falseSchemaError(R,pe){const{gen:Ae,data:ge}=R;const ye={gen:Ae,keyword:"false schema",data:ge,schema:false,schemaCode:false,schemaValue:false,params:{},it:R};(0,he.reportError)(ye,me,undefined,pe)}},7725:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.reportTypeError=pe.checkDataTypes=pe.checkDataType=pe.coerceAndCheckDataType=pe.getJSONTypes=pe.getSchemaTypes=pe.DataType=void 0;const he=Ae(1785);const ge=Ae(33627);const ye=Ae(86150);const me=Ae(19179);const ve=Ae(3439);var be;(function(R){R[R["Correct"]=0]="Correct";R[R["Wrong"]=1]="Wrong"})(be||(pe.DataType=be={}));function getSchemaTypes(R){const pe=getJSONTypes(R.type);const Ae=pe.includes("null");if(Ae){if(R.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!pe.length&&R.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(R.nullable===true)pe.push("null")}return pe}pe.getSchemaTypes=getSchemaTypes;function getJSONTypes(R){const pe=Array.isArray(R)?R:R?[R]:[];if(pe.every(he.isJSONType))return pe;throw new Error("type must be JSONType or JSONType[]: "+pe.join(","))}pe.getJSONTypes=getJSONTypes;function coerceAndCheckDataType(R,pe){const{gen:Ae,data:he,opts:ye}=R;const me=coerceToTypes(pe,ye.coerceTypes);const ve=pe.length>0&&!(me.length===0&&pe.length===1&&(0,ge.schemaHasRulesForType)(R,pe[0]));if(ve){const ge=checkDataTypes(pe,he,ye.strictNumbers,be.Wrong);Ae.if(ge,(()=>{if(me.length)coerceData(R,pe,me);else reportTypeError(R)}))}return ve}pe.coerceAndCheckDataType=coerceAndCheckDataType;const Ee=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(R,pe){return pe?R.filter((R=>Ee.has(R)||pe==="array"&&R==="array")):[]}function coerceData(R,pe,Ae){const{gen:he,data:ge,opts:ye}=R;const ve=he.let("dataType",(0,me._)`typeof ${ge}`);const be=he.let("coerced",(0,me._)`undefined`);if(ye.coerceTypes==="array"){he.if((0,me._)`${ve} == 'object' && Array.isArray(${ge}) && ${ge}.length == 1`,(()=>he.assign(ge,(0,me._)`${ge}[0]`).assign(ve,(0,me._)`typeof ${ge}`).if(checkDataTypes(pe,ge,ye.strictNumbers),(()=>he.assign(be,ge)))))}he.if((0,me._)`${be} !== undefined`);for(const R of Ae){if(Ee.has(R)||R==="array"&&ye.coerceTypes==="array"){coerceSpecificType(R)}}he.else();reportTypeError(R);he.endIf();he.if((0,me._)`${be} !== undefined`,(()=>{he.assign(ge,be);assignParentData(R,be)}));function coerceSpecificType(R){switch(R){case"string":he.elseIf((0,me._)`${ve} == "number" || ${ve} == "boolean"`).assign(be,(0,me._)`"" + ${ge}`).elseIf((0,me._)`${ge} === null`).assign(be,(0,me._)`""`);return;case"number":he.elseIf((0,me._)`${ve} == "boolean" || ${ge} === null || (${ve} == "string" && ${ge} && ${ge} == +${ge})`).assign(be,(0,me._)`+${ge}`);return;case"integer":he.elseIf((0,me._)`${ve} === "boolean" || ${ge} === null || (${ve} === "string" && ${ge} && ${ge} == +${ge} && !(${ge} % 1))`).assign(be,(0,me._)`+${ge}`);return;case"boolean":he.elseIf((0,me._)`${ge} === "false" || ${ge} === 0 || ${ge} === null`).assign(be,false).elseIf((0,me._)`${ge} === "true" || ${ge} === 1`).assign(be,true);return;case"null":he.elseIf((0,me._)`${ge} === "" || ${ge} === 0 || ${ge} === false`);he.assign(be,null);return;case"array":he.elseIf((0,me._)`${ve} === "string" || ${ve} === "number" - || ${ve} === "boolean" || ${ge} === null`).assign(be,(0,me._)`[${ge}]`)}}}function assignParentData({gen:R,parentData:pe,parentDataProperty:Ae},he){R.if((0,me._)`${pe} !== undefined`,(()=>R.assign((0,me._)`${pe}[${Ae}]`,he)))}function checkDataType(R,pe,Ae,he=be.Correct){const ge=he===be.Correct?me.operators.EQ:me.operators.NEQ;let ye;switch(R){case"null":return(0,me._)`${pe} ${ge} null`;case"array":ye=(0,me._)`Array.isArray(${pe})`;break;case"object":ye=(0,me._)`${pe} && typeof ${pe} == "object" && !Array.isArray(${pe})`;break;case"integer":ye=numCond((0,me._)`!(${pe} % 1) && !isNaN(${pe})`);break;case"number":ye=numCond();break;default:return(0,me._)`typeof ${pe} ${ge} ${R}`}return he===be.Correct?ye:(0,me.not)(ye);function numCond(R=me.nil){return(0,me.and)((0,me._)`typeof ${pe} == "number"`,R,Ae?(0,me._)`isFinite(${pe})`:me.nil)}}pe.checkDataType=checkDataType;function checkDataTypes(R,pe,Ae,he){if(R.length===1){return checkDataType(R[0],pe,Ae,he)}let ge;const ye=(0,ve.toHash)(R);if(ye.array&&ye.object){const R=(0,me._)`typeof ${pe} != "object"`;ge=ye.null?R:(0,me._)`!${pe} || ${R}`;delete ye.null;delete ye.array;delete ye.object}else{ge=me.nil}if(ye.number)delete ye.integer;for(const R in ye)ge=(0,me.and)(ge,checkDataType(R,pe,Ae,he));return ge}pe.checkDataTypes=checkDataTypes;const Ce={message:({schema:R})=>`must be ${R}`,params:({schema:R,schemaValue:pe})=>typeof R=="string"?(0,me._)`{type: ${R}}`:(0,me._)`{type: ${pe}}`};function reportTypeError(R){const pe=getTypeErrorContext(R);(0,ye.reportError)(pe,Ce)}pe.reportTypeError=reportTypeError;function getTypeErrorContext(R){const{gen:pe,data:Ae,schema:he}=R;const ge=(0,ve.schemaRefOrVal)(R,he,"type");return{gen:pe,keyword:"type",data:Ae,schema:he.type,schemaCode:ge,schemaValue:ge,parentSchema:he,params:{},it:R}}},49593:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.assignDefaults=void 0;const he=Ae(19179);const ge=Ae(3439);function assignDefaults(R,pe){const{properties:Ae,items:he}=R.schema;if(pe==="object"&&Ae){for(const pe in Ae){assignDefault(R,pe,Ae[pe].default)}}else if(pe==="array"&&Array.isArray(he)){he.forEach(((pe,Ae)=>assignDefault(R,Ae,pe.default)))}}pe.assignDefaults=assignDefaults;function assignDefault(R,pe,Ae){const{gen:ye,compositeRule:me,data:ve,opts:be}=R;if(Ae===undefined)return;const Ee=(0,he._)`${ve}${(0,he.getProperty)(pe)}`;if(me){(0,ge.checkStrictMode)(R,`default is ignored for: ${Ee}`);return}let Ce=(0,he._)`${Ee} === undefined`;if(be.useDefaults==="empty"){Ce=(0,he._)`${Ce} || ${Ee} === null || ${Ee} === ""`}ye.if(Ce,(0,he._)`${Ee} = ${(0,he.stringify)(Ae)}`)}},18955:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.getData=pe.KeywordCxt=pe.validateFunctionCode=void 0;const he=Ae(6214);const ge=Ae(7725);const ye=Ae(33627);const me=Ae(7725);const ve=Ae(49593);const be=Ae(78732);const Ee=Ae(83896);const Ce=Ae(19179);const we=Ae(10050);const _e=Ae(56646);const Ie=Ae(3439);const Se=Ae(86150);function validateFunctionCode(R){if(isSchemaObj(R)){checkKeywords(R);if(schemaCxtHasRules(R)){topSchemaObjCode(R);return}}validateFunction(R,(()=>(0,he.topBoolOrEmptySchema)(R)))}pe.validateFunctionCode=validateFunctionCode;function validateFunction({gen:R,validateName:pe,schema:Ae,schemaEnv:he,opts:ge},ye){if(ge.code.es5){R.func(pe,(0,Ce._)`${we.default.data}, ${we.default.valCxt}`,he.$async,(()=>{R.code((0,Ce._)`"use strict"; ${funcSourceUrl(Ae,ge)}`);destructureValCxtES5(R,ge);R.code(ye)}))}else{R.func(pe,(0,Ce._)`${we.default.data}, ${destructureValCxt(ge)}`,he.$async,(()=>R.code(funcSourceUrl(Ae,ge)).code(ye)))}}function destructureValCxt(R){return(0,Ce._)`{${we.default.instancePath}="", ${we.default.parentData}, ${we.default.parentDataProperty}, ${we.default.rootData}=${we.default.data}${R.dynamicRef?(0,Ce._)`, ${we.default.dynamicAnchors}={}`:Ce.nil}}={}`}function destructureValCxtES5(R,pe){R.if(we.default.valCxt,(()=>{R.var(we.default.instancePath,(0,Ce._)`${we.default.valCxt}.${we.default.instancePath}`);R.var(we.default.parentData,(0,Ce._)`${we.default.valCxt}.${we.default.parentData}`);R.var(we.default.parentDataProperty,(0,Ce._)`${we.default.valCxt}.${we.default.parentDataProperty}`);R.var(we.default.rootData,(0,Ce._)`${we.default.valCxt}.${we.default.rootData}`);if(pe.dynamicRef)R.var(we.default.dynamicAnchors,(0,Ce._)`${we.default.valCxt}.${we.default.dynamicAnchors}`)}),(()=>{R.var(we.default.instancePath,(0,Ce._)`""`);R.var(we.default.parentData,(0,Ce._)`undefined`);R.var(we.default.parentDataProperty,(0,Ce._)`undefined`);R.var(we.default.rootData,we.default.data);if(pe.dynamicRef)R.var(we.default.dynamicAnchors,(0,Ce._)`{}`)}))}function topSchemaObjCode(R){const{schema:pe,opts:Ae,gen:he}=R;validateFunction(R,(()=>{if(Ae.$comment&&pe.$comment)commentKeyword(R);checkNoDefault(R);he.let(we.default.vErrors,null);he.let(we.default.errors,0);if(Ae.unevaluated)resetEvaluated(R);typeAndKeywords(R);returnResults(R)}));return}function resetEvaluated(R){const{gen:pe,validateName:Ae}=R;R.evaluated=pe.const("evaluated",(0,Ce._)`${Ae}.evaluated`);pe.if((0,Ce._)`${R.evaluated}.dynamicProps`,(()=>pe.assign((0,Ce._)`${R.evaluated}.props`,(0,Ce._)`undefined`)));pe.if((0,Ce._)`${R.evaluated}.dynamicItems`,(()=>pe.assign((0,Ce._)`${R.evaluated}.items`,(0,Ce._)`undefined`)))}function funcSourceUrl(R,pe){const Ae=typeof R=="object"&&R[pe.schemaId];return Ae&&(pe.code.source||pe.code.process)?(0,Ce._)`/*# sourceURL=${Ae} */`:Ce.nil}function subschemaCode(R,pe){if(isSchemaObj(R)){checkKeywords(R);if(schemaCxtHasRules(R)){subSchemaObjCode(R,pe);return}}(0,he.boolOrEmptySchema)(R,pe)}function schemaCxtHasRules({schema:R,self:pe}){if(typeof R=="boolean")return!R;for(const Ae in R)if(pe.RULES.all[Ae])return true;return false}function isSchemaObj(R){return typeof R.schema!="boolean"}function subSchemaObjCode(R,pe){const{schema:Ae,gen:he,opts:ge}=R;if(ge.$comment&&Ae.$comment)commentKeyword(R);updateContext(R);checkAsyncSchema(R);const ye=he.const("_errs",we.default.errors);typeAndKeywords(R,ye);he.var(pe,(0,Ce._)`${ye} === ${we.default.errors}`)}function checkKeywords(R){(0,Ie.checkUnknownRules)(R);checkRefsAndKeywords(R)}function typeAndKeywords(R,pe){if(R.opts.jtd)return schemaKeywords(R,[],false,pe);const Ae=(0,ge.getSchemaTypes)(R.schema);const he=(0,ge.coerceAndCheckDataType)(R,Ae);schemaKeywords(R,Ae,!he,pe)}function checkRefsAndKeywords(R){const{schema:pe,errSchemaPath:Ae,opts:he,self:ge}=R;if(pe.$ref&&he.ignoreKeywordsWithRef&&(0,Ie.schemaHasRulesButRef)(pe,ge.RULES)){ge.logger.warn(`$ref: keywords ignored in schema at path "${Ae}"`)}}function checkNoDefault(R){const{schema:pe,opts:Ae}=R;if(pe.default!==undefined&&Ae.useDefaults&&Ae.strictSchema){(0,Ie.checkStrictMode)(R,"default is ignored in the schema root")}}function updateContext(R){const pe=R.schema[R.opts.schemaId];if(pe)R.baseId=(0,_e.resolveUrl)(R.opts.uriResolver,R.baseId,pe)}function checkAsyncSchema(R){if(R.schema.$async&&!R.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:R,schemaEnv:pe,schema:Ae,errSchemaPath:he,opts:ge}){const ye=Ae.$comment;if(ge.$comment===true){R.code((0,Ce._)`${we.default.self}.logger.log(${ye})`)}else if(typeof ge.$comment=="function"){const Ae=(0,Ce.str)`${he}/$comment`;const ge=R.scopeValue("root",{ref:pe.root});R.code((0,Ce._)`${we.default.self}.opts.$comment(${ye}, ${Ae}, ${ge}.schema)`)}}function returnResults(R){const{gen:pe,schemaEnv:Ae,validateName:he,ValidationError:ge,opts:ye}=R;if(Ae.$async){pe.if((0,Ce._)`${we.default.errors} === 0`,(()=>pe.return(we.default.data)),(()=>pe.throw((0,Ce._)`new ${ge}(${we.default.vErrors})`)))}else{pe.assign((0,Ce._)`${he}.errors`,we.default.vErrors);if(ye.unevaluated)assignEvaluated(R);pe.return((0,Ce._)`${we.default.errors} === 0`)}}function assignEvaluated({gen:R,evaluated:pe,props:Ae,items:he}){if(Ae instanceof Ce.Name)R.assign((0,Ce._)`${pe}.props`,Ae);if(he instanceof Ce.Name)R.assign((0,Ce._)`${pe}.items`,he)}function schemaKeywords(R,pe,Ae,he){const{gen:ge,schema:ve,data:be,allErrors:Ee,opts:_e,self:Se}=R;const{RULES:Be}=Se;if(ve.$ref&&(_e.ignoreKeywordsWithRef||!(0,Ie.schemaHasRulesButRef)(ve,Be))){ge.block((()=>keywordCode(R,"$ref",Be.all.$ref.definition)));return}if(!_e.jtd)checkStrictTypes(R,pe);ge.block((()=>{for(const R of Be.rules)groupKeywords(R);groupKeywords(Be.post)}));function groupKeywords(Ie){if(!(0,ye.shouldUseGroup)(ve,Ie))return;if(Ie.type){ge.if((0,me.checkDataType)(Ie.type,be,_e.strictNumbers));iterateKeywords(R,Ie);if(pe.length===1&&pe[0]===Ie.type&&Ae){ge.else();(0,me.reportTypeError)(R)}ge.endIf()}else{iterateKeywords(R,Ie)}if(!Ee)ge.if((0,Ce._)`${we.default.errors} === ${he||0}`)}}function iterateKeywords(R,pe){const{gen:Ae,schema:he,opts:{useDefaults:ge}}=R;if(ge)(0,ve.assignDefaults)(R,pe.type);Ae.block((()=>{for(const Ae of pe.rules){if((0,ye.shouldUseRule)(he,Ae)){keywordCode(R,Ae.keyword,Ae.definition,pe.type)}}}))}function checkStrictTypes(R,pe){if(R.schemaEnv.meta||!R.opts.strictTypes)return;checkContextTypes(R,pe);if(!R.opts.allowUnionTypes)checkMultipleTypes(R,pe);checkKeywordTypes(R,R.dataTypes)}function checkContextTypes(R,pe){if(!pe.length)return;if(!R.dataTypes.length){R.dataTypes=pe;return}pe.forEach((pe=>{if(!includesType(R.dataTypes,pe)){strictTypesError(R,`type "${pe}" not allowed by context "${R.dataTypes.join(",")}"`)}}));narrowSchemaTypes(R,pe)}function checkMultipleTypes(R,pe){if(pe.length>1&&!(pe.length===2&&pe.includes("null"))){strictTypesError(R,"use allowUnionTypes to allow union type keyword")}}function checkKeywordTypes(R,pe){const Ae=R.self.RULES.all;for(const he in Ae){const ge=Ae[he];if(typeof ge=="object"&&(0,ye.shouldUseRule)(R.schema,ge)){const{type:Ae}=ge.definition;if(Ae.length&&!Ae.some((R=>hasApplicableType(pe,R)))){strictTypesError(R,`missing type "${Ae.join(",")}" for keyword "${he}"`)}}}}function hasApplicableType(R,pe){return R.includes(pe)||pe==="number"&&R.includes("integer")}function includesType(R,pe){return R.includes(pe)||pe==="integer"&&R.includes("number")}function narrowSchemaTypes(R,pe){const Ae=[];for(const he of R.dataTypes){if(includesType(pe,he))Ae.push(he);else if(pe.includes("integer")&&he==="number")Ae.push("integer")}R.dataTypes=Ae}function strictTypesError(R,pe){const Ae=R.schemaEnv.baseId+R.errSchemaPath;pe+=` at "${Ae}" (strictTypes)`;(0,Ie.checkStrictMode)(R,pe,R.opts.strictTypes)}class KeywordCxt{constructor(R,pe,Ae){(0,be.validateKeywordUsage)(R,pe,Ae);this.gen=R.gen;this.allErrors=R.allErrors;this.keyword=Ae;this.data=R.data;this.schema=R.schema[Ae];this.$data=pe.$data&&R.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,Ie.schemaRefOrVal)(R,this.schema,Ae,this.$data);this.schemaType=pe.schemaType;this.parentSchema=R.schema;this.params={};this.it=R;this.def=pe;if(this.$data){this.schemaCode=R.gen.const("vSchema",getData(this.$data,R))}else{this.schemaCode=this.schemaValue;if(!(0,be.validSchemaType)(this.schema,pe.schemaType,pe.allowUndefined)){throw new Error(`${Ae} value must be ${JSON.stringify(pe.schemaType)}`)}}if("code"in pe?pe.trackErrors:pe.errors!==false){this.errsCount=R.gen.const("_errs",we.default.errors)}}result(R,pe,Ae){this.failResult((0,Ce.not)(R),pe,Ae)}failResult(R,pe,Ae){this.gen.if(R);if(Ae)Ae();else this.error();if(pe){this.gen.else();pe();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(R,pe){this.failResult((0,Ce.not)(R),undefined,pe)}fail(R){if(R===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(R);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(R){if(!this.$data)return this.fail(R);const{schemaCode:pe}=this;this.fail((0,Ce._)`${pe} !== undefined && (${(0,Ce.or)(this.invalid$data(),R)})`)}error(R,pe,Ae){if(pe){this.setParams(pe);this._error(R,Ae);this.setParams({});return}this._error(R,Ae)}_error(R,pe){(R?Se.reportExtraError:Se.reportError)(this,this.def.error,pe)}$dataError(){(0,Se.reportError)(this,this.def.$dataError||Se.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,Se.resetErrorsCount)(this.gen,this.errsCount)}ok(R){if(!this.allErrors)this.gen.if(R)}setParams(R,pe){if(pe)Object.assign(this.params,R);else this.params=R}block$data(R,pe,Ae=Ce.nil){this.gen.block((()=>{this.check$data(R,Ae);pe()}))}check$data(R=Ce.nil,pe=Ce.nil){if(!this.$data)return;const{gen:Ae,schemaCode:he,schemaType:ge,def:ye}=this;Ae.if((0,Ce.or)((0,Ce._)`${he} === undefined`,pe));if(R!==Ce.nil)Ae.assign(R,true);if(ge.length||ye.validateSchema){Ae.elseIf(this.invalid$data());this.$dataError();if(R!==Ce.nil)Ae.assign(R,false)}Ae.else()}invalid$data(){const{gen:R,schemaCode:pe,schemaType:Ae,def:he,it:ge}=this;return(0,Ce.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(Ae.length){if(!(pe instanceof Ce.Name))throw new Error("ajv implementation error");const R=Array.isArray(Ae)?Ae:[Ae];return(0,Ce._)`${(0,me.checkDataTypes)(R,pe,ge.opts.strictNumbers,me.DataType.Wrong)}`}return Ce.nil}function invalid$DataSchema(){if(he.validateSchema){const Ae=R.scopeValue("validate$data",{ref:he.validateSchema});return(0,Ce._)`!${Ae}(${pe})`}return Ce.nil}}subschema(R,pe){const Ae=(0,Ee.getSubschema)(this.it,R);(0,Ee.extendSubschemaData)(Ae,this.it,R);(0,Ee.extendSubschemaMode)(Ae,R);const he={...this.it,...Ae,items:undefined,props:undefined};subschemaCode(he,pe);return he}mergeEvaluated(R,pe){const{it:Ae,gen:he}=this;if(!Ae.opts.unevaluated)return;if(Ae.props!==true&&R.props!==undefined){Ae.props=Ie.mergeEvaluated.props(he,R.props,Ae.props,pe)}if(Ae.items!==true&&R.items!==undefined){Ae.items=Ie.mergeEvaluated.items(he,R.items,Ae.items,pe)}}mergeValidEvaluated(R,pe){const{it:Ae,gen:he}=this;if(Ae.opts.unevaluated&&(Ae.props!==true||Ae.items!==true)){he.if(pe,(()=>this.mergeEvaluated(R,Ce.Name)));return true}}}pe.KeywordCxt=KeywordCxt;function keywordCode(R,pe,Ae,he){const ge=new KeywordCxt(R,Ae,pe);if("code"in Ae){Ae.code(ge,he)}else if(ge.$data&&Ae.validate){(0,be.funcKeywordCode)(ge,Ae)}else if("macro"in Ae){(0,be.macroKeywordCode)(ge,Ae)}else if(Ae.compile||Ae.validate){(0,be.funcKeywordCode)(ge,Ae)}}const Be=/^\/(?:[^~]|~0|~1)*$/;const ke=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(R,{dataLevel:pe,dataNames:Ae,dataPathArr:he}){let ge;let ye;if(R==="")return we.default.rootData;if(R[0]==="/"){if(!Be.test(R))throw new Error(`Invalid JSON-pointer: ${R}`);ge=R;ye=we.default.rootData}else{const me=ke.exec(R);if(!me)throw new Error(`Invalid JSON-pointer: ${R}`);const ve=+me[1];ge=me[2];if(ge==="#"){if(ve>=pe)throw new Error(errorMsg("property/index",ve));return he[pe-ve]}if(ve>pe)throw new Error(errorMsg("data",ve));ye=Ae[pe-ve];if(!ge)return ye}let me=ye;const ve=ge.split("/");for(const R of ve){if(R){ye=(0,Ce._)`${ye}${(0,Ce.getProperty)((0,Ie.unescapeJsonPointer)(R))}`;me=(0,Ce._)`${me} && ${ye}`}}return me;function errorMsg(R,Ae){return`Cannot access ${R} ${Ae} levels up, current level is ${pe}`}}pe.getData=getData},78732:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.validateKeywordUsage=pe.validSchemaType=pe.funcKeywordCode=pe.macroKeywordCode=void 0;const he=Ae(19179);const ge=Ae(10050);const ye=Ae(64205);const me=Ae(86150);function macroKeywordCode(R,pe){const{gen:Ae,keyword:ge,schema:ye,parentSchema:me,it:ve}=R;const be=pe.macro.call(ve.self,ye,me,ve);const Ee=useKeyword(Ae,ge,be);if(ve.opts.validateSchema!==false)ve.self.validateSchema(be,true);const Ce=Ae.name("valid");R.subschema({schema:be,schemaPath:he.nil,errSchemaPath:`${ve.errSchemaPath}/${ge}`,topSchemaRef:Ee,compositeRule:true},Ce);R.pass(Ce,(()=>R.error(true)))}pe.macroKeywordCode=macroKeywordCode;function funcKeywordCode(R,pe){var Ae;const{gen:me,keyword:ve,schema:be,parentSchema:Ee,$data:Ce,it:we}=R;checkAsyncKeyword(we,pe);const _e=!Ce&&pe.compile?pe.compile.call(we.self,be,Ee,we):pe.validate;const Ie=useKeyword(me,ve,_e);const Se=me.let("valid");R.block$data(Se,validateKeyword);R.ok((Ae=pe.valid)!==null&&Ae!==void 0?Ae:Se);function validateKeyword(){if(pe.errors===false){assignValid();if(pe.modifying)modifyData(R);reportErrs((()=>R.error()))}else{const Ae=pe.async?validateAsync():validateSync();if(pe.modifying)modifyData(R);reportErrs((()=>addErrs(R,Ae)))}}function validateAsync(){const R=me.let("ruleErrs",null);me.try((()=>assignValid((0,he._)`await `)),(pe=>me.assign(Se,false).if((0,he._)`${pe} instanceof ${we.ValidationError}`,(()=>me.assign(R,(0,he._)`${pe}.errors`)),(()=>me.throw(pe)))));return R}function validateSync(){const R=(0,he._)`${Ie}.errors`;me.assign(R,null);assignValid(he.nil);return R}function assignValid(Ae=(pe.async?(0,he._)`await `:he.nil)){const ve=we.opts.passContext?ge.default.this:ge.default.self;const be=!("compile"in pe&&!Ce||pe.schema===false);me.assign(Se,(0,he._)`${Ae}${(0,ye.callValidateCode)(R,Ie,ve,be)}`,pe.modifying)}function reportErrs(R){var Ae;me.if((0,he.not)((Ae=pe.valid)!==null&&Ae!==void 0?Ae:Se),R)}}pe.funcKeywordCode=funcKeywordCode;function modifyData(R){const{gen:pe,data:Ae,it:ge}=R;pe.if(ge.parentData,(()=>pe.assign(Ae,(0,he._)`${ge.parentData}[${ge.parentDataProperty}]`)))}function addErrs(R,pe){const{gen:Ae}=R;Ae.if((0,he._)`Array.isArray(${pe})`,(()=>{Ae.assign(ge.default.vErrors,(0,he._)`${ge.default.vErrors} === null ? ${pe} : ${ge.default.vErrors}.concat(${pe})`).assign(ge.default.errors,(0,he._)`${ge.default.vErrors}.length`);(0,me.extendErrors)(R)}),(()=>R.error()))}function checkAsyncKeyword({schemaEnv:R},pe){if(pe.async&&!R.$async)throw new Error("async keyword in sync schema")}function useKeyword(R,pe,Ae){if(Ae===undefined)throw new Error(`keyword "${pe}" failed to compile`);return R.scopeValue("keyword",typeof Ae=="function"?{ref:Ae}:{ref:Ae,code:(0,he.stringify)(Ae)})}function validSchemaType(R,pe,Ae=false){return!pe.length||pe.some((pe=>pe==="array"?Array.isArray(R):pe==="object"?R&&typeof R=="object"&&!Array.isArray(R):typeof R==pe||Ae&&typeof R=="undefined"))}pe.validSchemaType=validSchemaType;function validateKeywordUsage({schema:R,opts:pe,self:Ae,errSchemaPath:he},ge,ye){if(Array.isArray(ge.keyword)?!ge.keyword.includes(ye):ge.keyword!==ye){throw new Error("ajv implementation error")}const me=ge.dependencies;if(me===null||me===void 0?void 0:me.some((pe=>!Object.prototype.hasOwnProperty.call(R,pe)))){throw new Error(`parent schema must have dependencies of ${ye}: ${me.join(",")}`)}if(ge.validateSchema){const me=ge.validateSchema(R[ye]);if(!me){const R=`keyword "${ye}" value is invalid at path "${he}": `+Ae.errorsText(ge.validateSchema.errors);if(pe.validateSchema==="log")Ae.logger.error(R);else throw new Error(R)}}}pe.validateKeywordUsage=validateKeywordUsage},83896:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.extendSubschemaMode=pe.extendSubschemaData=pe.getSubschema=void 0;const he=Ae(19179);const ge=Ae(3439);function getSubschema(R,{keyword:pe,schemaProp:Ae,schema:ye,schemaPath:me,errSchemaPath:ve,topSchemaRef:be}){if(pe!==undefined&&ye!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(pe!==undefined){const ye=R.schema[pe];return Ae===undefined?{schema:ye,schemaPath:(0,he._)`${R.schemaPath}${(0,he.getProperty)(pe)}`,errSchemaPath:`${R.errSchemaPath}/${pe}`}:{schema:ye[Ae],schemaPath:(0,he._)`${R.schemaPath}${(0,he.getProperty)(pe)}${(0,he.getProperty)(Ae)}`,errSchemaPath:`${R.errSchemaPath}/${pe}/${(0,ge.escapeFragment)(Ae)}`}}if(ye!==undefined){if(me===undefined||ve===undefined||be===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:ye,schemaPath:me,topSchemaRef:be,errSchemaPath:ve}}throw new Error('either "keyword" or "schema" must be passed')}pe.getSubschema=getSubschema;function extendSubschemaData(R,pe,{dataProp:Ae,dataPropType:ye,data:me,dataTypes:ve,propertyName:be}){if(me!==undefined&&Ae!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:Ee}=pe;if(Ae!==undefined){const{errorPath:me,dataPathArr:ve,opts:be}=pe;const Ce=Ee.let("data",(0,he._)`${pe.data}${(0,he.getProperty)(Ae)}`,true);dataContextProps(Ce);R.errorPath=(0,he.str)`${me}${(0,ge.getErrorPath)(Ae,ye,be.jsPropertySyntax)}`;R.parentDataProperty=(0,he._)`${Ae}`;R.dataPathArr=[...ve,R.parentDataProperty]}if(me!==undefined){const pe=me instanceof he.Name?me:Ee.let("data",me,true);dataContextProps(pe);if(be!==undefined)R.propertyName=be}if(ve)R.dataTypes=ve;function dataContextProps(Ae){R.data=Ae;R.dataLevel=pe.dataLevel+1;R.dataTypes=[];pe.definedProperties=new Set;R.parentData=pe.data;R.dataNames=[...pe.dataNames,Ae]}}pe.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(R,{jtdDiscriminator:pe,jtdMetadata:Ae,compositeRule:he,createErrors:ge,allErrors:ye}){if(he!==undefined)R.compositeRule=he;if(ge!==undefined)R.createErrors=ge;if(ye!==undefined)R.allErrors=ye;R.jtdDiscriminator=pe;R.jtdMetadata=Ae}pe.extendSubschemaMode=extendSubschemaMode},62685:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CodeGen=pe.Name=pe.nil=pe.stringify=pe.str=pe._=pe.KeywordCxt=void 0;var he=Ae(18955);Object.defineProperty(pe,"KeywordCxt",{enumerable:true,get:function(){return he.KeywordCxt}});var ge=Ae(19179);Object.defineProperty(pe,"_",{enumerable:true,get:function(){return ge._}});Object.defineProperty(pe,"str",{enumerable:true,get:function(){return ge.str}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return ge.stringify}});Object.defineProperty(pe,"nil",{enumerable:true,get:function(){return ge.nil}});Object.defineProperty(pe,"Name",{enumerable:true,get:function(){return ge.Name}});Object.defineProperty(pe,"CodeGen",{enumerable:true,get:function(){return ge.CodeGen}});const ye=Ae(97616);const me=Ae(18190);const ve=Ae(1785);const be=Ae(60813);const Ee=Ae(19179);const Ce=Ae(56646);const we=Ae(7725);const _e=Ae(3439);const Ie=Ae(64775);const Se=Ae(50661);const defaultRegExp=(R,pe)=>new RegExp(R,pe);defaultRegExp.code="new RegExp";const Be=["removeAdditional","useDefaults","coerceTypes"];const ke=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const Oe={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const Re={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const Qe=200;function requiredOptions(R){var pe,Ae,he,ge,ye,me,ve,be,Ee,Ce,we,_e,Ie,Be,ke,Oe,Re,xe,Pe,Te,De,Ne,Me,je,Fe;const Le=R.strict;const Ue=(pe=R.code)===null||pe===void 0?void 0:pe.optimize;const He=Ue===true||Ue===undefined?1:Ue||0;const Je=(he=(Ae=R.code)===null||Ae===void 0?void 0:Ae.regExp)!==null&&he!==void 0?he:defaultRegExp;const We=(ge=R.uriResolver)!==null&&ge!==void 0?ge:Se.default;return{strictSchema:(me=(ye=R.strictSchema)!==null&&ye!==void 0?ye:Le)!==null&&me!==void 0?me:true,strictNumbers:(be=(ve=R.strictNumbers)!==null&&ve!==void 0?ve:Le)!==null&&be!==void 0?be:true,strictTypes:(Ce=(Ee=R.strictTypes)!==null&&Ee!==void 0?Ee:Le)!==null&&Ce!==void 0?Ce:"log",strictTuples:(_e=(we=R.strictTuples)!==null&&we!==void 0?we:Le)!==null&&_e!==void 0?_e:"log",strictRequired:(Be=(Ie=R.strictRequired)!==null&&Ie!==void 0?Ie:Le)!==null&&Be!==void 0?Be:false,code:R.code?{...R.code,optimize:He,regExp:Je}:{optimize:He,regExp:Je},loopRequired:(ke=R.loopRequired)!==null&&ke!==void 0?ke:Qe,loopEnum:(Oe=R.loopEnum)!==null&&Oe!==void 0?Oe:Qe,meta:(Re=R.meta)!==null&&Re!==void 0?Re:true,messages:(xe=R.messages)!==null&&xe!==void 0?xe:true,inlineRefs:(Pe=R.inlineRefs)!==null&&Pe!==void 0?Pe:true,schemaId:(Te=R.schemaId)!==null&&Te!==void 0?Te:"$id",addUsedSchema:(De=R.addUsedSchema)!==null&&De!==void 0?De:true,validateSchema:(Ne=R.validateSchema)!==null&&Ne!==void 0?Ne:true,validateFormats:(Me=R.validateFormats)!==null&&Me!==void 0?Me:true,unicodeRegExp:(je=R.unicodeRegExp)!==null&&je!==void 0?je:true,int32range:(Fe=R.int32range)!==null&&Fe!==void 0?Fe:true,uriResolver:We}}class Ajv{constructor(R={}){this.schemas={};this.refs={};this.formats={};this._compilations=new Set;this._loading={};this._cache=new Map;R=this.opts={...R,...requiredOptions(R)};const{es5:pe,lines:Ae}=this.opts.code;this.scope=new Ee.ValueScope({scope:{},prefixes:ke,es5:pe,lines:Ae});this.logger=getLogger(R.logger);const he=R.validateFormats;R.validateFormats=false;this.RULES=(0,ve.getRules)();checkOptions.call(this,Oe,R,"NOT SUPPORTED");checkOptions.call(this,Re,R,"DEPRECATED","warn");this._metaOpts=getMetaSchemaOptions.call(this);if(R.formats)addInitialFormats.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(R.keywords)addInitialKeywords.call(this,R.keywords);if(typeof R.meta=="object")this.addMetaSchema(R.meta);addInitialSchemas.call(this);R.validateFormats=he}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:R,meta:pe,schemaId:Ae}=this.opts;let he=Ie;if(Ae==="id"){he={...Ie};he.id=he.$id;delete he.$id}if(pe&&R)this.addMetaSchema(he,he[Ae],false)}defaultMeta(){const{meta:R,schemaId:pe}=this.opts;return this.opts.defaultMeta=typeof R=="object"?R[pe]||R:undefined}validate(R,pe){let Ae;if(typeof R=="string"){Ae=this.getSchema(R);if(!Ae)throw new Error(`no schema with key or ref "${R}"`)}else{Ae=this.compile(R)}const he=Ae(pe);if(!("$async"in Ae))this.errors=Ae.errors;return he}compile(R,pe){const Ae=this._addSchema(R,pe);return Ae.validate||this._compileSchemaEnv(Ae)}compileAsync(R,pe){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:Ae}=this.opts;return runCompileAsync.call(this,R,pe);async function runCompileAsync(R,pe){await loadMetaSchema.call(this,R.$schema);const Ae=this._addSchema(R,pe);return Ae.validate||_compileAsync.call(this,Ae)}async function loadMetaSchema(R){if(R&&!this.getSchema(R)){await runCompileAsync.call(this,{$ref:R},true)}}async function _compileAsync(R){try{return this._compileSchemaEnv(R)}catch(pe){if(!(pe instanceof me.default))throw pe;checkLoaded.call(this,pe);await loadMissingSchema.call(this,pe.missingSchema);return _compileAsync.call(this,R)}}function checkLoaded({missingSchema:R,missingRef:pe}){if(this.refs[R]){throw new Error(`AnySchema ${R} is loaded but ${pe} cannot be resolved`)}}async function loadMissingSchema(R){const Ae=await _loadSchema.call(this,R);if(!this.refs[R])await loadMetaSchema.call(this,Ae.$schema);if(!this.refs[R])this.addSchema(Ae,R,pe)}async function _loadSchema(R){const pe=this._loading[R];if(pe)return pe;try{return await(this._loading[R]=Ae(R))}finally{delete this._loading[R]}}}addSchema(R,pe,Ae,he=this.opts.validateSchema){if(Array.isArray(R)){for(const pe of R)this.addSchema(pe,undefined,Ae,he);return this}let ge;if(typeof R==="object"){const{schemaId:pe}=this.opts;ge=R[pe];if(ge!==undefined&&typeof ge!="string"){throw new Error(`schema ${pe} must be string`)}}pe=(0,Ce.normalizeId)(pe||ge);this._checkUnique(pe);this.schemas[pe]=this._addSchema(R,Ae,pe,he,true);return this}addMetaSchema(R,pe,Ae=this.opts.validateSchema){this.addSchema(R,pe,true,Ae);return this}validateSchema(R,pe){if(typeof R=="boolean")return true;let Ae;Ae=R.$schema;if(Ae!==undefined&&typeof Ae!="string"){throw new Error("$schema must be a string")}Ae=Ae||this.opts.defaultMeta||this.defaultMeta();if(!Ae){this.logger.warn("meta-schema not available");this.errors=null;return true}const he=this.validate(Ae,R);if(!he&&pe){const R="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(R);else throw new Error(R)}return he}getSchema(R){let pe;while(typeof(pe=getSchEnv.call(this,R))=="string")R=pe;if(pe===undefined){const{schemaId:Ae}=this.opts;const he=new be.SchemaEnv({schema:{},schemaId:Ae});pe=be.resolveSchema.call(this,he,R);if(!pe)return;this.refs[R]=pe}return pe.validate||this._compileSchemaEnv(pe)}removeSchema(R){if(R instanceof RegExp){this._removeAllSchemas(this.schemas,R);this._removeAllSchemas(this.refs,R);return this}switch(typeof R){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const pe=getSchEnv.call(this,R);if(typeof pe=="object")this._cache.delete(pe.schema);delete this.schemas[R];delete this.refs[R];return this}case"object":{const pe=R;this._cache.delete(pe);let Ae=R[this.opts.schemaId];if(Ae){Ae=(0,Ce.normalizeId)(Ae);delete this.schemas[Ae];delete this.refs[Ae]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(R){for(const pe of R)this.addKeyword(pe);return this}addKeyword(R,pe){let Ae;if(typeof R=="string"){Ae=R;if(typeof pe=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");pe.keyword=Ae}}else if(typeof R=="object"&&pe===undefined){pe=R;Ae=pe.keyword;if(Array.isArray(Ae)&&!Ae.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}checkKeyword.call(this,Ae,pe);if(!pe){(0,_e.eachItem)(Ae,(R=>addRule.call(this,R)));return this}keywordMetaschema.call(this,pe);const he={...pe,type:(0,we.getJSONTypes)(pe.type),schemaType:(0,we.getJSONTypes)(pe.schemaType)};(0,_e.eachItem)(Ae,he.type.length===0?R=>addRule.call(this,R,he):R=>he.type.forEach((pe=>addRule.call(this,R,he,pe))));return this}getKeyword(R){const pe=this.RULES.all[R];return typeof pe=="object"?pe.definition:!!pe}removeKeyword(R){const{RULES:pe}=this;delete pe.keywords[R];delete pe.all[R];for(const Ae of pe.rules){const pe=Ae.rules.findIndex((pe=>pe.keyword===R));if(pe>=0)Ae.rules.splice(pe,1)}return this}addFormat(R,pe){if(typeof pe=="string")pe=new RegExp(pe);this.formats[R]=pe;return this}errorsText(R=this.errors,{separator:pe=", ",dataVar:Ae="data"}={}){if(!R||R.length===0)return"No errors";return R.map((R=>`${Ae}${R.instancePath} ${R.message}`)).reduce(((R,Ae)=>R+pe+Ae))}$dataMetaSchema(R,pe){const Ae=this.RULES.all;R=JSON.parse(JSON.stringify(R));for(const he of pe){const pe=he.split("/").slice(1);let ge=R;for(const R of pe)ge=ge[R];for(const R in Ae){const pe=Ae[R];if(typeof pe!="object")continue;const{$data:he}=pe.definition;const ye=ge[R];if(he&&ye)ge[R]=schemaOrData(ye)}}return R}_removeAllSchemas(R,pe){for(const Ae in R){const he=R[Ae];if(!pe||pe.test(Ae)){if(typeof he=="string"){delete R[Ae]}else if(he&&!he.meta){this._cache.delete(he.schema);delete R[Ae]}}}}_addSchema(R,pe,Ae,he=this.opts.validateSchema,ge=this.opts.addUsedSchema){let ye;const{schemaId:me}=this.opts;if(typeof R=="object"){ye=R[me]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof R!="boolean")throw new Error("schema must be object or boolean")}let ve=this._cache.get(R);if(ve!==undefined)return ve;Ae=(0,Ce.normalizeId)(ye||Ae);const Ee=Ce.getSchemaRefs.call(this,R,Ae);ve=new be.SchemaEnv({schema:R,schemaId:me,meta:pe,baseId:Ae,localRefs:Ee});this._cache.set(ve.schema,ve);if(ge&&!Ae.startsWith("#")){if(Ae)this._checkUnique(Ae);this.refs[Ae]=ve}if(he)this.validateSchema(R,true);return ve}_checkUnique(R){if(this.schemas[R]||this.refs[R]){throw new Error(`schema with key or id "${R}" already exists`)}}_compileSchemaEnv(R){if(R.meta)this._compileMetaSchema(R);else be.compileSchema.call(this,R);if(!R.validate)throw new Error("ajv implementation error");return R.validate}_compileMetaSchema(R){const pe=this.opts;this.opts=this._metaOpts;try{be.compileSchema.call(this,R)}finally{this.opts=pe}}}Ajv.ValidationError=ye.default;Ajv.MissingRefError=me.default;pe["default"]=Ajv;function checkOptions(R,pe,Ae,he="error"){for(const ge in R){const ye=ge;if(ye in pe)this.logger[he](`${Ae}: option ${ge}. ${R[ye]}`)}}function getSchEnv(R){R=(0,Ce.normalizeId)(R);return this.schemas[R]||this.refs[R]}function addInitialSchemas(){const R=this.opts.schemas;if(!R)return;if(Array.isArray(R))this.addSchema(R);else for(const pe in R)this.addSchema(R[pe],pe)}function addInitialFormats(){for(const R in this.opts.formats){const pe=this.opts.formats[R];if(pe)this.addFormat(R,pe)}}function addInitialKeywords(R){if(Array.isArray(R)){this.addVocabulary(R);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const pe in R){const Ae=R[pe];if(!Ae.keyword)Ae.keyword=pe;this.addKeyword(Ae)}}function getMetaSchemaOptions(){const R={...this.opts};for(const pe of Be)delete R[pe];return R}const xe={log(){},warn(){},error(){}};function getLogger(R){if(R===false)return xe;if(R===undefined)return console;if(R.log&&R.warn&&R.error)return R;throw new Error("logger must implement log, warn and error methods")}const Pe=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(R,pe){const{RULES:Ae}=this;(0,_e.eachItem)(R,(R=>{if(Ae.keywords[R])throw new Error(`Keyword ${R} is already defined`);if(!Pe.test(R))throw new Error(`Keyword ${R} has invalid name`)}));if(!pe)return;if(pe.$data&&!("code"in pe||"validate"in pe)){throw new Error('$data keyword must have "code" or "validate" function')}}function addRule(R,pe,Ae){var he;const ge=pe===null||pe===void 0?void 0:pe.post;if(Ae&&ge)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:ye}=this;let me=ge?ye.post:ye.rules.find((({type:R})=>R===Ae));if(!me){me={type:Ae,rules:[]};ye.rules.push(me)}ye.keywords[R]=true;if(!pe)return;const ve={keyword:R,definition:{...pe,type:(0,we.getJSONTypes)(pe.type),schemaType:(0,we.getJSONTypes)(pe.schemaType)}};if(pe.before)addBeforeRule.call(this,me,ve,pe.before);else me.rules.push(ve);ye.all[R]=ve;(he=pe.implements)===null||he===void 0?void 0:he.forEach((R=>this.addKeyword(R)))}function addBeforeRule(R,pe,Ae){const he=R.rules.findIndex((R=>R.keyword===Ae));if(he>=0){R.rules.splice(he,0,pe)}else{R.rules.push(pe);this.logger.warn(`rule ${Ae} is not defined`)}}function keywordMetaschema(R){let{metaSchema:pe}=R;if(pe===undefined)return;if(R.$data&&this.opts.$data)pe=schemaOrData(pe);R.validateSchema=this.compile(pe,true)}const Te={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(R){return{anyOf:[R,Te]}}},59246:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(22577);const ge=Ae(90996);const ye=Ae(5568);const me=Ae(46795);const ve=Ae(235);const be=Ae(2567);const Ee=Ae(41233);const Ce=Ae(61968);const we=["/properties"];function addMetaSchema2020(R){[he,ge,ye,me,ve,with$data(this,be),Ee,with$data(this,Ce)].forEach((R=>this.addMetaSchema(R,undefined,false)));return this;function with$data(pe,Ae){return R?pe.$dataMetaSchema(Ae,we):Ae}}pe["default"]=addMetaSchema2020},63809:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(28206);he.code='require("ajv/dist/runtime/equal").default';pe["default"]=he},22470:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function ucs2length(R){const pe=R.length;let Ae=0;let he=0;let ge;while(he=55296&&ge<=56319&&he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(49688);he.code='require("ajv/dist/runtime/uri").default';pe["default"]=he},97616:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});class ValidationError extends Error{constructor(R){super("validation failed");this.errors=R;this.ajv=this.validation=true}}pe["default"]=ValidationError},24720:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.validateAdditionalItems=void 0;const he=Ae(19179);const ge=Ae(3439);const ye={message:({params:{len:R}})=>(0,he.str)`must NOT have more than ${R} items`,params:({params:{len:R}})=>(0,he._)`{limit: ${R}}`};const me={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ye,code(R){const{parentSchema:pe,it:Ae}=R;const{items:he}=pe;if(!Array.isArray(he)){(0,ge.checkStrictMode)(Ae,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(R,he)}};function validateAdditionalItems(R,pe){const{gen:Ae,schema:ye,data:me,keyword:ve,it:be}=R;be.items=true;const Ee=Ae.const("len",(0,he._)`${me}.length`);if(ye===false){R.setParams({len:pe.length});R.pass((0,he._)`${Ee} <= ${pe.length}`)}else if(typeof ye=="object"&&!(0,ge.alwaysValidSchema)(be,ye)){const ge=Ae.var("valid",(0,he._)`${Ee} <= ${pe.length}`);Ae.if((0,he.not)(ge),(()=>validateItems(ge)));R.ok(ge)}function validateItems(ye){Ae.forRange("i",pe.length,Ee,(pe=>{R.subschema({keyword:ve,dataProp:pe,dataPropType:ge.Type.Num},ye);if(!be.allErrors)Ae.if((0,he.not)(ye),(()=>Ae.break()))}))}}pe.validateAdditionalItems=validateAdditionalItems;pe["default"]=me},43481:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64205);const ge=Ae(19179);const ye=Ae(10050);const me=Ae(3439);const ve={message:"must NOT have additional properties",params:({params:R})=>(0,ge._)`{additionalProperty: ${R.additionalProperty}}`};const be={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:ve,code(R){const{gen:pe,schema:Ae,parentSchema:ve,data:be,errsCount:Ee,it:Ce}=R;if(!Ee)throw new Error("ajv implementation error");const{allErrors:we,opts:_e}=Ce;Ce.props=true;if(_e.removeAdditional!=="all"&&(0,me.alwaysValidSchema)(Ce,Ae))return;const Ie=(0,he.allSchemaProperties)(ve.properties);const Se=(0,he.allSchemaProperties)(ve.patternProperties);checkAdditionalProperties();R.ok((0,ge._)`${Ee} === ${ye.default.errors}`);function checkAdditionalProperties(){pe.forIn("key",be,(R=>{if(!Ie.length&&!Se.length)additionalPropertyCode(R);else pe.if(isAdditional(R),(()=>additionalPropertyCode(R)))}))}function isAdditional(Ae){let ye;if(Ie.length>8){const R=(0,me.schemaRefOrVal)(Ce,ve.properties,"properties");ye=(0,he.isOwnProperty)(pe,R,Ae)}else if(Ie.length){ye=(0,ge.or)(...Ie.map((R=>(0,ge._)`${Ae} === ${R}`)))}else{ye=ge.nil}if(Se.length){ye=(0,ge.or)(ye,...Se.map((pe=>(0,ge._)`${(0,he.usePattern)(R,pe)}.test(${Ae})`)))}return(0,ge.not)(ye)}function deleteAdditional(R){pe.code((0,ge._)`delete ${be}[${R}]`)}function additionalPropertyCode(he){if(_e.removeAdditional==="all"||_e.removeAdditional&&Ae===false){deleteAdditional(he);return}if(Ae===false){R.setParams({additionalProperty:he});R.error();if(!we)pe.break();return}if(typeof Ae=="object"&&!(0,me.alwaysValidSchema)(Ce,Ae)){const Ae=pe.name("valid");if(_e.removeAdditional==="failing"){applyAdditionalSchema(he,Ae,false);pe.if((0,ge.not)(Ae),(()=>{R.reset();deleteAdditional(he)}))}else{applyAdditionalSchema(he,Ae);if(!we)pe.if((0,ge.not)(Ae),(()=>pe.break()))}}}function applyAdditionalSchema(pe,Ae,he){const ge={keyword:"additionalProperties",dataProp:pe,dataPropType:me.Type.Str};if(he===false){Object.assign(ge,{compositeRule:true,createErrors:false,allErrors:false})}R.subschema(ge,Ae)}}};pe["default"]=be},78406:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(3439);const ge={keyword:"allOf",schemaType:"array",code(R){const{gen:pe,schema:Ae,it:ge}=R;if(!Array.isArray(Ae))throw new Error("ajv implementation error");const ye=pe.name("valid");Ae.forEach(((pe,Ae)=>{if((0,he.alwaysValidSchema)(ge,pe))return;const me=R.subschema({keyword:"allOf",schemaProp:Ae},ye);R.ok(ye);R.mergeEvaluated(me)}))}};pe["default"]=ge},38168:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64205);const ge={keyword:"anyOf",schemaType:"array",trackErrors:true,code:he.validateUnion,error:{message:"must match a schema in anyOf"}};pe["default"]=ge},99535:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye={message:({params:{min:R,max:pe}})=>pe===undefined?(0,he.str)`must contain at least ${R} valid item(s)`:(0,he.str)`must contain at least ${R} and no more than ${pe} valid item(s)`,params:({params:{min:R,max:pe}})=>pe===undefined?(0,he._)`{minContains: ${R}}`:(0,he._)`{minContains: ${R}, maxContains: ${pe}}`};const me={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:ye,code(R){const{gen:pe,schema:Ae,parentSchema:ye,data:me,it:ve}=R;let be;let Ee;const{minContains:Ce,maxContains:we}=ye;if(ve.opts.next){be=Ce===undefined?1:Ce;Ee=we}else{be=1}const _e=pe.const("len",(0,he._)`${me}.length`);R.setParams({min:be,max:Ee});if(Ee===undefined&&be===0){(0,ge.checkStrictMode)(ve,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(Ee!==undefined&&be>Ee){(0,ge.checkStrictMode)(ve,`"minContains" > "maxContains" is always invalid`);R.fail();return}if((0,ge.alwaysValidSchema)(ve,Ae)){let pe=(0,he._)`${_e} >= ${be}`;if(Ee!==undefined)pe=(0,he._)`${pe} && ${_e} <= ${Ee}`;R.pass(pe);return}ve.items=true;const Ie=pe.name("valid");if(Ee===undefined&&be===1){validateItems(Ie,(()=>pe.if(Ie,(()=>pe.break()))))}else if(be===0){pe.let(Ie,true);if(Ee!==undefined)pe.if((0,he._)`${me}.length > 0`,validateItemsWithCount)}else{pe.let(Ie,false);validateItemsWithCount()}R.result(Ie,(()=>R.reset()));function validateItemsWithCount(){const R=pe.name("_valid");const Ae=pe.let("count",0);validateItems(R,(()=>pe.if(R,(()=>checkLimits(Ae)))))}function validateItems(Ae,he){pe.forRange("i",0,_e,(pe=>{R.subschema({keyword:"contains",dataProp:pe,dataPropType:ge.Type.Num,compositeRule:true},Ae);he()}))}function checkLimits(R){pe.code((0,he._)`${R}++`);if(Ee===undefined){pe.if((0,he._)`${R} >= ${be}`,(()=>pe.assign(Ie,true).break()))}else{pe.if((0,he._)`${R} > ${Ee}`,(()=>pe.assign(Ie,false).break()));if(be===1)pe.assign(Ie,true);else pe.if((0,he._)`${R} >= ${be}`,(()=>pe.assign(Ie,true)))}}}};pe["default"]=me},34611:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.validateSchemaDeps=pe.validatePropertyDeps=pe.error=void 0;const he=Ae(19179);const ge=Ae(3439);const ye=Ae(64205);pe.error={message:({params:{property:R,depsCount:pe,deps:Ae}})=>{const ge=pe===1?"property":"properties";return(0,he.str)`must have ${ge} ${Ae} when property ${R} is present`},params:({params:{property:R,depsCount:pe,deps:Ae,missingProperty:ge}})=>(0,he._)`{property: ${R}, + || ${ve} === "boolean" || ${ge} === null`).assign(be,(0,me._)`[${ge}]`)}}}function assignParentData({gen:R,parentData:pe,parentDataProperty:Ae},he){R.if((0,me._)`${pe} !== undefined`,(()=>R.assign((0,me._)`${pe}[${Ae}]`,he)))}function checkDataType(R,pe,Ae,he=be.Correct){const ge=he===be.Correct?me.operators.EQ:me.operators.NEQ;let ye;switch(R){case"null":return(0,me._)`${pe} ${ge} null`;case"array":ye=(0,me._)`Array.isArray(${pe})`;break;case"object":ye=(0,me._)`${pe} && typeof ${pe} == "object" && !Array.isArray(${pe})`;break;case"integer":ye=numCond((0,me._)`!(${pe} % 1) && !isNaN(${pe})`);break;case"number":ye=numCond();break;default:return(0,me._)`typeof ${pe} ${ge} ${R}`}return he===be.Correct?ye:(0,me.not)(ye);function numCond(R=me.nil){return(0,me.and)((0,me._)`typeof ${pe} == "number"`,R,Ae?(0,me._)`isFinite(${pe})`:me.nil)}}pe.checkDataType=checkDataType;function checkDataTypes(R,pe,Ae,he){if(R.length===1){return checkDataType(R[0],pe,Ae,he)}let ge;const ye=(0,ve.toHash)(R);if(ye.array&&ye.object){const R=(0,me._)`typeof ${pe} != "object"`;ge=ye.null?R:(0,me._)`!${pe} || ${R}`;delete ye.null;delete ye.array;delete ye.object}else{ge=me.nil}if(ye.number)delete ye.integer;for(const R in ye)ge=(0,me.and)(ge,checkDataType(R,pe,Ae,he));return ge}pe.checkDataTypes=checkDataTypes;const we={message:({schema:R})=>`must be ${R}`,params:({schema:R,schemaValue:pe})=>typeof R=="string"?(0,me._)`{type: ${R}}`:(0,me._)`{type: ${pe}}`};function reportTypeError(R){const pe=getTypeErrorContext(R);(0,ye.reportError)(pe,we)}pe.reportTypeError=reportTypeError;function getTypeErrorContext(R){const{gen:pe,data:Ae,schema:he}=R;const ge=(0,ve.schemaRefOrVal)(R,he,"type");return{gen:pe,keyword:"type",data:Ae,schema:he.type,schemaCode:ge,schemaValue:ge,parentSchema:he,params:{},it:R}}},49593:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.assignDefaults=void 0;const he=Ae(19179);const ge=Ae(3439);function assignDefaults(R,pe){const{properties:Ae,items:he}=R.schema;if(pe==="object"&&Ae){for(const pe in Ae){assignDefault(R,pe,Ae[pe].default)}}else if(pe==="array"&&Array.isArray(he)){he.forEach(((pe,Ae)=>assignDefault(R,Ae,pe.default)))}}pe.assignDefaults=assignDefaults;function assignDefault(R,pe,Ae){const{gen:ye,compositeRule:me,data:ve,opts:be}=R;if(Ae===undefined)return;const Ee=(0,he._)`${ve}${(0,he.getProperty)(pe)}`;if(me){(0,ge.checkStrictMode)(R,`default is ignored for: ${Ee}`);return}let we=(0,he._)`${Ee} === undefined`;if(be.useDefaults==="empty"){we=(0,he._)`${we} || ${Ee} === null || ${Ee} === ""`}ye.if(we,(0,he._)`${Ee} = ${(0,he.stringify)(Ae)}`)}},18955:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.getData=pe.KeywordCxt=pe.validateFunctionCode=void 0;const he=Ae(6214);const ge=Ae(7725);const ye=Ae(33627);const me=Ae(7725);const ve=Ae(49593);const be=Ae(78732);const Ee=Ae(83896);const we=Ae(19179);const Ce=Ae(10050);const _e=Ae(56646);const Ie=Ae(3439);const Se=Ae(86150);function validateFunctionCode(R){if(isSchemaObj(R)){checkKeywords(R);if(schemaCxtHasRules(R)){topSchemaObjCode(R);return}}validateFunction(R,(()=>(0,he.topBoolOrEmptySchema)(R)))}pe.validateFunctionCode=validateFunctionCode;function validateFunction({gen:R,validateName:pe,schema:Ae,schemaEnv:he,opts:ge},ye){if(ge.code.es5){R.func(pe,(0,we._)`${Ce.default.data}, ${Ce.default.valCxt}`,he.$async,(()=>{R.code((0,we._)`"use strict"; ${funcSourceUrl(Ae,ge)}`);destructureValCxtES5(R,ge);R.code(ye)}))}else{R.func(pe,(0,we._)`${Ce.default.data}, ${destructureValCxt(ge)}`,he.$async,(()=>R.code(funcSourceUrl(Ae,ge)).code(ye)))}}function destructureValCxt(R){return(0,we._)`{${Ce.default.instancePath}="", ${Ce.default.parentData}, ${Ce.default.parentDataProperty}, ${Ce.default.rootData}=${Ce.default.data}${R.dynamicRef?(0,we._)`, ${Ce.default.dynamicAnchors}={}`:we.nil}}={}`}function destructureValCxtES5(R,pe){R.if(Ce.default.valCxt,(()=>{R.var(Ce.default.instancePath,(0,we._)`${Ce.default.valCxt}.${Ce.default.instancePath}`);R.var(Ce.default.parentData,(0,we._)`${Ce.default.valCxt}.${Ce.default.parentData}`);R.var(Ce.default.parentDataProperty,(0,we._)`${Ce.default.valCxt}.${Ce.default.parentDataProperty}`);R.var(Ce.default.rootData,(0,we._)`${Ce.default.valCxt}.${Ce.default.rootData}`);if(pe.dynamicRef)R.var(Ce.default.dynamicAnchors,(0,we._)`${Ce.default.valCxt}.${Ce.default.dynamicAnchors}`)}),(()=>{R.var(Ce.default.instancePath,(0,we._)`""`);R.var(Ce.default.parentData,(0,we._)`undefined`);R.var(Ce.default.parentDataProperty,(0,we._)`undefined`);R.var(Ce.default.rootData,Ce.default.data);if(pe.dynamicRef)R.var(Ce.default.dynamicAnchors,(0,we._)`{}`)}))}function topSchemaObjCode(R){const{schema:pe,opts:Ae,gen:he}=R;validateFunction(R,(()=>{if(Ae.$comment&&pe.$comment)commentKeyword(R);checkNoDefault(R);he.let(Ce.default.vErrors,null);he.let(Ce.default.errors,0);if(Ae.unevaluated)resetEvaluated(R);typeAndKeywords(R);returnResults(R)}));return}function resetEvaluated(R){const{gen:pe,validateName:Ae}=R;R.evaluated=pe.const("evaluated",(0,we._)`${Ae}.evaluated`);pe.if((0,we._)`${R.evaluated}.dynamicProps`,(()=>pe.assign((0,we._)`${R.evaluated}.props`,(0,we._)`undefined`)));pe.if((0,we._)`${R.evaluated}.dynamicItems`,(()=>pe.assign((0,we._)`${R.evaluated}.items`,(0,we._)`undefined`)))}function funcSourceUrl(R,pe){const Ae=typeof R=="object"&&R[pe.schemaId];return Ae&&(pe.code.source||pe.code.process)?(0,we._)`/*# sourceURL=${Ae} */`:we.nil}function subschemaCode(R,pe){if(isSchemaObj(R)){checkKeywords(R);if(schemaCxtHasRules(R)){subSchemaObjCode(R,pe);return}}(0,he.boolOrEmptySchema)(R,pe)}function schemaCxtHasRules({schema:R,self:pe}){if(typeof R=="boolean")return!R;for(const Ae in R)if(pe.RULES.all[Ae])return true;return false}function isSchemaObj(R){return typeof R.schema!="boolean"}function subSchemaObjCode(R,pe){const{schema:Ae,gen:he,opts:ge}=R;if(ge.$comment&&Ae.$comment)commentKeyword(R);updateContext(R);checkAsyncSchema(R);const ye=he.const("_errs",Ce.default.errors);typeAndKeywords(R,ye);he.var(pe,(0,we._)`${ye} === ${Ce.default.errors}`)}function checkKeywords(R){(0,Ie.checkUnknownRules)(R);checkRefsAndKeywords(R)}function typeAndKeywords(R,pe){if(R.opts.jtd)return schemaKeywords(R,[],false,pe);const Ae=(0,ge.getSchemaTypes)(R.schema);const he=(0,ge.coerceAndCheckDataType)(R,Ae);schemaKeywords(R,Ae,!he,pe)}function checkRefsAndKeywords(R){const{schema:pe,errSchemaPath:Ae,opts:he,self:ge}=R;if(pe.$ref&&he.ignoreKeywordsWithRef&&(0,Ie.schemaHasRulesButRef)(pe,ge.RULES)){ge.logger.warn(`$ref: keywords ignored in schema at path "${Ae}"`)}}function checkNoDefault(R){const{schema:pe,opts:Ae}=R;if(pe.default!==undefined&&Ae.useDefaults&&Ae.strictSchema){(0,Ie.checkStrictMode)(R,"default is ignored in the schema root")}}function updateContext(R){const pe=R.schema[R.opts.schemaId];if(pe)R.baseId=(0,_e.resolveUrl)(R.opts.uriResolver,R.baseId,pe)}function checkAsyncSchema(R){if(R.schema.$async&&!R.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:R,schemaEnv:pe,schema:Ae,errSchemaPath:he,opts:ge}){const ye=Ae.$comment;if(ge.$comment===true){R.code((0,we._)`${Ce.default.self}.logger.log(${ye})`)}else if(typeof ge.$comment=="function"){const Ae=(0,we.str)`${he}/$comment`;const ge=R.scopeValue("root",{ref:pe.root});R.code((0,we._)`${Ce.default.self}.opts.$comment(${ye}, ${Ae}, ${ge}.schema)`)}}function returnResults(R){const{gen:pe,schemaEnv:Ae,validateName:he,ValidationError:ge,opts:ye}=R;if(Ae.$async){pe.if((0,we._)`${Ce.default.errors} === 0`,(()=>pe.return(Ce.default.data)),(()=>pe.throw((0,we._)`new ${ge}(${Ce.default.vErrors})`)))}else{pe.assign((0,we._)`${he}.errors`,Ce.default.vErrors);if(ye.unevaluated)assignEvaluated(R);pe.return((0,we._)`${Ce.default.errors} === 0`)}}function assignEvaluated({gen:R,evaluated:pe,props:Ae,items:he}){if(Ae instanceof we.Name)R.assign((0,we._)`${pe}.props`,Ae);if(he instanceof we.Name)R.assign((0,we._)`${pe}.items`,he)}function schemaKeywords(R,pe,Ae,he){const{gen:ge,schema:ve,data:be,allErrors:Ee,opts:_e,self:Se}=R;const{RULES:Be}=Se;if(ve.$ref&&(_e.ignoreKeywordsWithRef||!(0,Ie.schemaHasRulesButRef)(ve,Be))){ge.block((()=>keywordCode(R,"$ref",Be.all.$ref.definition)));return}if(!_e.jtd)checkStrictTypes(R,pe);ge.block((()=>{for(const R of Be.rules)groupKeywords(R);groupKeywords(Be.post)}));function groupKeywords(Ie){if(!(0,ye.shouldUseGroup)(ve,Ie))return;if(Ie.type){ge.if((0,me.checkDataType)(Ie.type,be,_e.strictNumbers));iterateKeywords(R,Ie);if(pe.length===1&&pe[0]===Ie.type&&Ae){ge.else();(0,me.reportTypeError)(R)}ge.endIf()}else{iterateKeywords(R,Ie)}if(!Ee)ge.if((0,we._)`${Ce.default.errors} === ${he||0}`)}}function iterateKeywords(R,pe){const{gen:Ae,schema:he,opts:{useDefaults:ge}}=R;if(ge)(0,ve.assignDefaults)(R,pe.type);Ae.block((()=>{for(const Ae of pe.rules){if((0,ye.shouldUseRule)(he,Ae)){keywordCode(R,Ae.keyword,Ae.definition,pe.type)}}}))}function checkStrictTypes(R,pe){if(R.schemaEnv.meta||!R.opts.strictTypes)return;checkContextTypes(R,pe);if(!R.opts.allowUnionTypes)checkMultipleTypes(R,pe);checkKeywordTypes(R,R.dataTypes)}function checkContextTypes(R,pe){if(!pe.length)return;if(!R.dataTypes.length){R.dataTypes=pe;return}pe.forEach((pe=>{if(!includesType(R.dataTypes,pe)){strictTypesError(R,`type "${pe}" not allowed by context "${R.dataTypes.join(",")}"`)}}));narrowSchemaTypes(R,pe)}function checkMultipleTypes(R,pe){if(pe.length>1&&!(pe.length===2&&pe.includes("null"))){strictTypesError(R,"use allowUnionTypes to allow union type keyword")}}function checkKeywordTypes(R,pe){const Ae=R.self.RULES.all;for(const he in Ae){const ge=Ae[he];if(typeof ge=="object"&&(0,ye.shouldUseRule)(R.schema,ge)){const{type:Ae}=ge.definition;if(Ae.length&&!Ae.some((R=>hasApplicableType(pe,R)))){strictTypesError(R,`missing type "${Ae.join(",")}" for keyword "${he}"`)}}}}function hasApplicableType(R,pe){return R.includes(pe)||pe==="number"&&R.includes("integer")}function includesType(R,pe){return R.includes(pe)||pe==="integer"&&R.includes("number")}function narrowSchemaTypes(R,pe){const Ae=[];for(const he of R.dataTypes){if(includesType(pe,he))Ae.push(he);else if(pe.includes("integer")&&he==="number")Ae.push("integer")}R.dataTypes=Ae}function strictTypesError(R,pe){const Ae=R.schemaEnv.baseId+R.errSchemaPath;pe+=` at "${Ae}" (strictTypes)`;(0,Ie.checkStrictMode)(R,pe,R.opts.strictTypes)}class KeywordCxt{constructor(R,pe,Ae){(0,be.validateKeywordUsage)(R,pe,Ae);this.gen=R.gen;this.allErrors=R.allErrors;this.keyword=Ae;this.data=R.data;this.schema=R.schema[Ae];this.$data=pe.$data&&R.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,Ie.schemaRefOrVal)(R,this.schema,Ae,this.$data);this.schemaType=pe.schemaType;this.parentSchema=R.schema;this.params={};this.it=R;this.def=pe;if(this.$data){this.schemaCode=R.gen.const("vSchema",getData(this.$data,R))}else{this.schemaCode=this.schemaValue;if(!(0,be.validSchemaType)(this.schema,pe.schemaType,pe.allowUndefined)){throw new Error(`${Ae} value must be ${JSON.stringify(pe.schemaType)}`)}}if("code"in pe?pe.trackErrors:pe.errors!==false){this.errsCount=R.gen.const("_errs",Ce.default.errors)}}result(R,pe,Ae){this.failResult((0,we.not)(R),pe,Ae)}failResult(R,pe,Ae){this.gen.if(R);if(Ae)Ae();else this.error();if(pe){this.gen.else();pe();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(R,pe){this.failResult((0,we.not)(R),undefined,pe)}fail(R){if(R===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(R);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(R){if(!this.$data)return this.fail(R);const{schemaCode:pe}=this;this.fail((0,we._)`${pe} !== undefined && (${(0,we.or)(this.invalid$data(),R)})`)}error(R,pe,Ae){if(pe){this.setParams(pe);this._error(R,Ae);this.setParams({});return}this._error(R,Ae)}_error(R,pe){(R?Se.reportExtraError:Se.reportError)(this,this.def.error,pe)}$dataError(){(0,Se.reportError)(this,this.def.$dataError||Se.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,Se.resetErrorsCount)(this.gen,this.errsCount)}ok(R){if(!this.allErrors)this.gen.if(R)}setParams(R,pe){if(pe)Object.assign(this.params,R);else this.params=R}block$data(R,pe,Ae=we.nil){this.gen.block((()=>{this.check$data(R,Ae);pe()}))}check$data(R=we.nil,pe=we.nil){if(!this.$data)return;const{gen:Ae,schemaCode:he,schemaType:ge,def:ye}=this;Ae.if((0,we.or)((0,we._)`${he} === undefined`,pe));if(R!==we.nil)Ae.assign(R,true);if(ge.length||ye.validateSchema){Ae.elseIf(this.invalid$data());this.$dataError();if(R!==we.nil)Ae.assign(R,false)}Ae.else()}invalid$data(){const{gen:R,schemaCode:pe,schemaType:Ae,def:he,it:ge}=this;return(0,we.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(Ae.length){if(!(pe instanceof we.Name))throw new Error("ajv implementation error");const R=Array.isArray(Ae)?Ae:[Ae];return(0,we._)`${(0,me.checkDataTypes)(R,pe,ge.opts.strictNumbers,me.DataType.Wrong)}`}return we.nil}function invalid$DataSchema(){if(he.validateSchema){const Ae=R.scopeValue("validate$data",{ref:he.validateSchema});return(0,we._)`!${Ae}(${pe})`}return we.nil}}subschema(R,pe){const Ae=(0,Ee.getSubschema)(this.it,R);(0,Ee.extendSubschemaData)(Ae,this.it,R);(0,Ee.extendSubschemaMode)(Ae,R);const he={...this.it,...Ae,items:undefined,props:undefined};subschemaCode(he,pe);return he}mergeEvaluated(R,pe){const{it:Ae,gen:he}=this;if(!Ae.opts.unevaluated)return;if(Ae.props!==true&&R.props!==undefined){Ae.props=Ie.mergeEvaluated.props(he,R.props,Ae.props,pe)}if(Ae.items!==true&&R.items!==undefined){Ae.items=Ie.mergeEvaluated.items(he,R.items,Ae.items,pe)}}mergeValidEvaluated(R,pe){const{it:Ae,gen:he}=this;if(Ae.opts.unevaluated&&(Ae.props!==true||Ae.items!==true)){he.if(pe,(()=>this.mergeEvaluated(R,we.Name)));return true}}}pe.KeywordCxt=KeywordCxt;function keywordCode(R,pe,Ae,he){const ge=new KeywordCxt(R,Ae,pe);if("code"in Ae){Ae.code(ge,he)}else if(ge.$data&&Ae.validate){(0,be.funcKeywordCode)(ge,Ae)}else if("macro"in Ae){(0,be.macroKeywordCode)(ge,Ae)}else if(Ae.compile||Ae.validate){(0,be.funcKeywordCode)(ge,Ae)}}const Be=/^\/(?:[^~]|~0|~1)*$/;const ke=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(R,{dataLevel:pe,dataNames:Ae,dataPathArr:he}){let ge;let ye;if(R==="")return Ce.default.rootData;if(R[0]==="/"){if(!Be.test(R))throw new Error(`Invalid JSON-pointer: ${R}`);ge=R;ye=Ce.default.rootData}else{const me=ke.exec(R);if(!me)throw new Error(`Invalid JSON-pointer: ${R}`);const ve=+me[1];ge=me[2];if(ge==="#"){if(ve>=pe)throw new Error(errorMsg("property/index",ve));return he[pe-ve]}if(ve>pe)throw new Error(errorMsg("data",ve));ye=Ae[pe-ve];if(!ge)return ye}let me=ye;const ve=ge.split("/");for(const R of ve){if(R){ye=(0,we._)`${ye}${(0,we.getProperty)((0,Ie.unescapeJsonPointer)(R))}`;me=(0,we._)`${me} && ${ye}`}}return me;function errorMsg(R,Ae){return`Cannot access ${R} ${Ae} levels up, current level is ${pe}`}}pe.getData=getData},78732:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.validateKeywordUsage=pe.validSchemaType=pe.funcKeywordCode=pe.macroKeywordCode=void 0;const he=Ae(19179);const ge=Ae(10050);const ye=Ae(64205);const me=Ae(86150);function macroKeywordCode(R,pe){const{gen:Ae,keyword:ge,schema:ye,parentSchema:me,it:ve}=R;const be=pe.macro.call(ve.self,ye,me,ve);const Ee=useKeyword(Ae,ge,be);if(ve.opts.validateSchema!==false)ve.self.validateSchema(be,true);const we=Ae.name("valid");R.subschema({schema:be,schemaPath:he.nil,errSchemaPath:`${ve.errSchemaPath}/${ge}`,topSchemaRef:Ee,compositeRule:true},we);R.pass(we,(()=>R.error(true)))}pe.macroKeywordCode=macroKeywordCode;function funcKeywordCode(R,pe){var Ae;const{gen:me,keyword:ve,schema:be,parentSchema:Ee,$data:we,it:Ce}=R;checkAsyncKeyword(Ce,pe);const _e=!we&&pe.compile?pe.compile.call(Ce.self,be,Ee,Ce):pe.validate;const Ie=useKeyword(me,ve,_e);const Se=me.let("valid");R.block$data(Se,validateKeyword);R.ok((Ae=pe.valid)!==null&&Ae!==void 0?Ae:Se);function validateKeyword(){if(pe.errors===false){assignValid();if(pe.modifying)modifyData(R);reportErrs((()=>R.error()))}else{const Ae=pe.async?validateAsync():validateSync();if(pe.modifying)modifyData(R);reportErrs((()=>addErrs(R,Ae)))}}function validateAsync(){const R=me.let("ruleErrs",null);me.try((()=>assignValid((0,he._)`await `)),(pe=>me.assign(Se,false).if((0,he._)`${pe} instanceof ${Ce.ValidationError}`,(()=>me.assign(R,(0,he._)`${pe}.errors`)),(()=>me.throw(pe)))));return R}function validateSync(){const R=(0,he._)`${Ie}.errors`;me.assign(R,null);assignValid(he.nil);return R}function assignValid(Ae=(pe.async?(0,he._)`await `:he.nil)){const ve=Ce.opts.passContext?ge.default.this:ge.default.self;const be=!("compile"in pe&&!we||pe.schema===false);me.assign(Se,(0,he._)`${Ae}${(0,ye.callValidateCode)(R,Ie,ve,be)}`,pe.modifying)}function reportErrs(R){var Ae;me.if((0,he.not)((Ae=pe.valid)!==null&&Ae!==void 0?Ae:Se),R)}}pe.funcKeywordCode=funcKeywordCode;function modifyData(R){const{gen:pe,data:Ae,it:ge}=R;pe.if(ge.parentData,(()=>pe.assign(Ae,(0,he._)`${ge.parentData}[${ge.parentDataProperty}]`)))}function addErrs(R,pe){const{gen:Ae}=R;Ae.if((0,he._)`Array.isArray(${pe})`,(()=>{Ae.assign(ge.default.vErrors,(0,he._)`${ge.default.vErrors} === null ? ${pe} : ${ge.default.vErrors}.concat(${pe})`).assign(ge.default.errors,(0,he._)`${ge.default.vErrors}.length`);(0,me.extendErrors)(R)}),(()=>R.error()))}function checkAsyncKeyword({schemaEnv:R},pe){if(pe.async&&!R.$async)throw new Error("async keyword in sync schema")}function useKeyword(R,pe,Ae){if(Ae===undefined)throw new Error(`keyword "${pe}" failed to compile`);return R.scopeValue("keyword",typeof Ae=="function"?{ref:Ae}:{ref:Ae,code:(0,he.stringify)(Ae)})}function validSchemaType(R,pe,Ae=false){return!pe.length||pe.some((pe=>pe==="array"?Array.isArray(R):pe==="object"?R&&typeof R=="object"&&!Array.isArray(R):typeof R==pe||Ae&&typeof R=="undefined"))}pe.validSchemaType=validSchemaType;function validateKeywordUsage({schema:R,opts:pe,self:Ae,errSchemaPath:he},ge,ye){if(Array.isArray(ge.keyword)?!ge.keyword.includes(ye):ge.keyword!==ye){throw new Error("ajv implementation error")}const me=ge.dependencies;if(me===null||me===void 0?void 0:me.some((pe=>!Object.prototype.hasOwnProperty.call(R,pe)))){throw new Error(`parent schema must have dependencies of ${ye}: ${me.join(",")}`)}if(ge.validateSchema){const me=ge.validateSchema(R[ye]);if(!me){const R=`keyword "${ye}" value is invalid at path "${he}": `+Ae.errorsText(ge.validateSchema.errors);if(pe.validateSchema==="log")Ae.logger.error(R);else throw new Error(R)}}}pe.validateKeywordUsage=validateKeywordUsage},83896:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.extendSubschemaMode=pe.extendSubschemaData=pe.getSubschema=void 0;const he=Ae(19179);const ge=Ae(3439);function getSubschema(R,{keyword:pe,schemaProp:Ae,schema:ye,schemaPath:me,errSchemaPath:ve,topSchemaRef:be}){if(pe!==undefined&&ye!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(pe!==undefined){const ye=R.schema[pe];return Ae===undefined?{schema:ye,schemaPath:(0,he._)`${R.schemaPath}${(0,he.getProperty)(pe)}`,errSchemaPath:`${R.errSchemaPath}/${pe}`}:{schema:ye[Ae],schemaPath:(0,he._)`${R.schemaPath}${(0,he.getProperty)(pe)}${(0,he.getProperty)(Ae)}`,errSchemaPath:`${R.errSchemaPath}/${pe}/${(0,ge.escapeFragment)(Ae)}`}}if(ye!==undefined){if(me===undefined||ve===undefined||be===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:ye,schemaPath:me,topSchemaRef:be,errSchemaPath:ve}}throw new Error('either "keyword" or "schema" must be passed')}pe.getSubschema=getSubschema;function extendSubschemaData(R,pe,{dataProp:Ae,dataPropType:ye,data:me,dataTypes:ve,propertyName:be}){if(me!==undefined&&Ae!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:Ee}=pe;if(Ae!==undefined){const{errorPath:me,dataPathArr:ve,opts:be}=pe;const we=Ee.let("data",(0,he._)`${pe.data}${(0,he.getProperty)(Ae)}`,true);dataContextProps(we);R.errorPath=(0,he.str)`${me}${(0,ge.getErrorPath)(Ae,ye,be.jsPropertySyntax)}`;R.parentDataProperty=(0,he._)`${Ae}`;R.dataPathArr=[...ve,R.parentDataProperty]}if(me!==undefined){const pe=me instanceof he.Name?me:Ee.let("data",me,true);dataContextProps(pe);if(be!==undefined)R.propertyName=be}if(ve)R.dataTypes=ve;function dataContextProps(Ae){R.data=Ae;R.dataLevel=pe.dataLevel+1;R.dataTypes=[];pe.definedProperties=new Set;R.parentData=pe.data;R.dataNames=[...pe.dataNames,Ae]}}pe.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(R,{jtdDiscriminator:pe,jtdMetadata:Ae,compositeRule:he,createErrors:ge,allErrors:ye}){if(he!==undefined)R.compositeRule=he;if(ge!==undefined)R.createErrors=ge;if(ye!==undefined)R.allErrors=ye;R.jtdDiscriminator=pe;R.jtdMetadata=Ae}pe.extendSubschemaMode=extendSubschemaMode},62685:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CodeGen=pe.Name=pe.nil=pe.stringify=pe.str=pe._=pe.KeywordCxt=void 0;var he=Ae(18955);Object.defineProperty(pe,"KeywordCxt",{enumerable:true,get:function(){return he.KeywordCxt}});var ge=Ae(19179);Object.defineProperty(pe,"_",{enumerable:true,get:function(){return ge._}});Object.defineProperty(pe,"str",{enumerable:true,get:function(){return ge.str}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return ge.stringify}});Object.defineProperty(pe,"nil",{enumerable:true,get:function(){return ge.nil}});Object.defineProperty(pe,"Name",{enumerable:true,get:function(){return ge.Name}});Object.defineProperty(pe,"CodeGen",{enumerable:true,get:function(){return ge.CodeGen}});const ye=Ae(97616);const me=Ae(18190);const ve=Ae(1785);const be=Ae(60813);const Ee=Ae(19179);const we=Ae(56646);const Ce=Ae(7725);const _e=Ae(3439);const Ie=Ae(64775);const Se=Ae(50661);const defaultRegExp=(R,pe)=>new RegExp(R,pe);defaultRegExp.code="new RegExp";const Be=["removeAdditional","useDefaults","coerceTypes"];const ke=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const Oe={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const Re={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const Qe=200;function requiredOptions(R){var pe,Ae,he,ge,ye,me,ve,be,Ee,we,Ce,_e,Ie,Be,ke,Oe,Re,xe,Pe,Te,De,Ne,Me,je,Fe;const Le=R.strict;const Ue=(pe=R.code)===null||pe===void 0?void 0:pe.optimize;const He=Ue===true||Ue===undefined?1:Ue||0;const Je=(he=(Ae=R.code)===null||Ae===void 0?void 0:Ae.regExp)!==null&&he!==void 0?he:defaultRegExp;const We=(ge=R.uriResolver)!==null&&ge!==void 0?ge:Se.default;return{strictSchema:(me=(ye=R.strictSchema)!==null&&ye!==void 0?ye:Le)!==null&&me!==void 0?me:true,strictNumbers:(be=(ve=R.strictNumbers)!==null&&ve!==void 0?ve:Le)!==null&&be!==void 0?be:true,strictTypes:(we=(Ee=R.strictTypes)!==null&&Ee!==void 0?Ee:Le)!==null&&we!==void 0?we:"log",strictTuples:(_e=(Ce=R.strictTuples)!==null&&Ce!==void 0?Ce:Le)!==null&&_e!==void 0?_e:"log",strictRequired:(Be=(Ie=R.strictRequired)!==null&&Ie!==void 0?Ie:Le)!==null&&Be!==void 0?Be:false,code:R.code?{...R.code,optimize:He,regExp:Je}:{optimize:He,regExp:Je},loopRequired:(ke=R.loopRequired)!==null&&ke!==void 0?ke:Qe,loopEnum:(Oe=R.loopEnum)!==null&&Oe!==void 0?Oe:Qe,meta:(Re=R.meta)!==null&&Re!==void 0?Re:true,messages:(xe=R.messages)!==null&&xe!==void 0?xe:true,inlineRefs:(Pe=R.inlineRefs)!==null&&Pe!==void 0?Pe:true,schemaId:(Te=R.schemaId)!==null&&Te!==void 0?Te:"$id",addUsedSchema:(De=R.addUsedSchema)!==null&&De!==void 0?De:true,validateSchema:(Ne=R.validateSchema)!==null&&Ne!==void 0?Ne:true,validateFormats:(Me=R.validateFormats)!==null&&Me!==void 0?Me:true,unicodeRegExp:(je=R.unicodeRegExp)!==null&&je!==void 0?je:true,int32range:(Fe=R.int32range)!==null&&Fe!==void 0?Fe:true,uriResolver:We}}class Ajv{constructor(R={}){this.schemas={};this.refs={};this.formats={};this._compilations=new Set;this._loading={};this._cache=new Map;R=this.opts={...R,...requiredOptions(R)};const{es5:pe,lines:Ae}=this.opts.code;this.scope=new Ee.ValueScope({scope:{},prefixes:ke,es5:pe,lines:Ae});this.logger=getLogger(R.logger);const he=R.validateFormats;R.validateFormats=false;this.RULES=(0,ve.getRules)();checkOptions.call(this,Oe,R,"NOT SUPPORTED");checkOptions.call(this,Re,R,"DEPRECATED","warn");this._metaOpts=getMetaSchemaOptions.call(this);if(R.formats)addInitialFormats.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(R.keywords)addInitialKeywords.call(this,R.keywords);if(typeof R.meta=="object")this.addMetaSchema(R.meta);addInitialSchemas.call(this);R.validateFormats=he}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:R,meta:pe,schemaId:Ae}=this.opts;let he=Ie;if(Ae==="id"){he={...Ie};he.id=he.$id;delete he.$id}if(pe&&R)this.addMetaSchema(he,he[Ae],false)}defaultMeta(){const{meta:R,schemaId:pe}=this.opts;return this.opts.defaultMeta=typeof R=="object"?R[pe]||R:undefined}validate(R,pe){let Ae;if(typeof R=="string"){Ae=this.getSchema(R);if(!Ae)throw new Error(`no schema with key or ref "${R}"`)}else{Ae=this.compile(R)}const he=Ae(pe);if(!("$async"in Ae))this.errors=Ae.errors;return he}compile(R,pe){const Ae=this._addSchema(R,pe);return Ae.validate||this._compileSchemaEnv(Ae)}compileAsync(R,pe){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:Ae}=this.opts;return runCompileAsync.call(this,R,pe);async function runCompileAsync(R,pe){await loadMetaSchema.call(this,R.$schema);const Ae=this._addSchema(R,pe);return Ae.validate||_compileAsync.call(this,Ae)}async function loadMetaSchema(R){if(R&&!this.getSchema(R)){await runCompileAsync.call(this,{$ref:R},true)}}async function _compileAsync(R){try{return this._compileSchemaEnv(R)}catch(pe){if(!(pe instanceof me.default))throw pe;checkLoaded.call(this,pe);await loadMissingSchema.call(this,pe.missingSchema);return _compileAsync.call(this,R)}}function checkLoaded({missingSchema:R,missingRef:pe}){if(this.refs[R]){throw new Error(`AnySchema ${R} is loaded but ${pe} cannot be resolved`)}}async function loadMissingSchema(R){const Ae=await _loadSchema.call(this,R);if(!this.refs[R])await loadMetaSchema.call(this,Ae.$schema);if(!this.refs[R])this.addSchema(Ae,R,pe)}async function _loadSchema(R){const pe=this._loading[R];if(pe)return pe;try{return await(this._loading[R]=Ae(R))}finally{delete this._loading[R]}}}addSchema(R,pe,Ae,he=this.opts.validateSchema){if(Array.isArray(R)){for(const pe of R)this.addSchema(pe,undefined,Ae,he);return this}let ge;if(typeof R==="object"){const{schemaId:pe}=this.opts;ge=R[pe];if(ge!==undefined&&typeof ge!="string"){throw new Error(`schema ${pe} must be string`)}}pe=(0,we.normalizeId)(pe||ge);this._checkUnique(pe);this.schemas[pe]=this._addSchema(R,Ae,pe,he,true);return this}addMetaSchema(R,pe,Ae=this.opts.validateSchema){this.addSchema(R,pe,true,Ae);return this}validateSchema(R,pe){if(typeof R=="boolean")return true;let Ae;Ae=R.$schema;if(Ae!==undefined&&typeof Ae!="string"){throw new Error("$schema must be a string")}Ae=Ae||this.opts.defaultMeta||this.defaultMeta();if(!Ae){this.logger.warn("meta-schema not available");this.errors=null;return true}const he=this.validate(Ae,R);if(!he&&pe){const R="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(R);else throw new Error(R)}return he}getSchema(R){let pe;while(typeof(pe=getSchEnv.call(this,R))=="string")R=pe;if(pe===undefined){const{schemaId:Ae}=this.opts;const he=new be.SchemaEnv({schema:{},schemaId:Ae});pe=be.resolveSchema.call(this,he,R);if(!pe)return;this.refs[R]=pe}return pe.validate||this._compileSchemaEnv(pe)}removeSchema(R){if(R instanceof RegExp){this._removeAllSchemas(this.schemas,R);this._removeAllSchemas(this.refs,R);return this}switch(typeof R){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const pe=getSchEnv.call(this,R);if(typeof pe=="object")this._cache.delete(pe.schema);delete this.schemas[R];delete this.refs[R];return this}case"object":{const pe=R;this._cache.delete(pe);let Ae=R[this.opts.schemaId];if(Ae){Ae=(0,we.normalizeId)(Ae);delete this.schemas[Ae];delete this.refs[Ae]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(R){for(const pe of R)this.addKeyword(pe);return this}addKeyword(R,pe){let Ae;if(typeof R=="string"){Ae=R;if(typeof pe=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");pe.keyword=Ae}}else if(typeof R=="object"&&pe===undefined){pe=R;Ae=pe.keyword;if(Array.isArray(Ae)&&!Ae.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}checkKeyword.call(this,Ae,pe);if(!pe){(0,_e.eachItem)(Ae,(R=>addRule.call(this,R)));return this}keywordMetaschema.call(this,pe);const he={...pe,type:(0,Ce.getJSONTypes)(pe.type),schemaType:(0,Ce.getJSONTypes)(pe.schemaType)};(0,_e.eachItem)(Ae,he.type.length===0?R=>addRule.call(this,R,he):R=>he.type.forEach((pe=>addRule.call(this,R,he,pe))));return this}getKeyword(R){const pe=this.RULES.all[R];return typeof pe=="object"?pe.definition:!!pe}removeKeyword(R){const{RULES:pe}=this;delete pe.keywords[R];delete pe.all[R];for(const Ae of pe.rules){const pe=Ae.rules.findIndex((pe=>pe.keyword===R));if(pe>=0)Ae.rules.splice(pe,1)}return this}addFormat(R,pe){if(typeof pe=="string")pe=new RegExp(pe);this.formats[R]=pe;return this}errorsText(R=this.errors,{separator:pe=", ",dataVar:Ae="data"}={}){if(!R||R.length===0)return"No errors";return R.map((R=>`${Ae}${R.instancePath} ${R.message}`)).reduce(((R,Ae)=>R+pe+Ae))}$dataMetaSchema(R,pe){const Ae=this.RULES.all;R=JSON.parse(JSON.stringify(R));for(const he of pe){const pe=he.split("/").slice(1);let ge=R;for(const R of pe)ge=ge[R];for(const R in Ae){const pe=Ae[R];if(typeof pe!="object")continue;const{$data:he}=pe.definition;const ye=ge[R];if(he&&ye)ge[R]=schemaOrData(ye)}}return R}_removeAllSchemas(R,pe){for(const Ae in R){const he=R[Ae];if(!pe||pe.test(Ae)){if(typeof he=="string"){delete R[Ae]}else if(he&&!he.meta){this._cache.delete(he.schema);delete R[Ae]}}}}_addSchema(R,pe,Ae,he=this.opts.validateSchema,ge=this.opts.addUsedSchema){let ye;const{schemaId:me}=this.opts;if(typeof R=="object"){ye=R[me]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof R!="boolean")throw new Error("schema must be object or boolean")}let ve=this._cache.get(R);if(ve!==undefined)return ve;Ae=(0,we.normalizeId)(ye||Ae);const Ee=we.getSchemaRefs.call(this,R,Ae);ve=new be.SchemaEnv({schema:R,schemaId:me,meta:pe,baseId:Ae,localRefs:Ee});this._cache.set(ve.schema,ve);if(ge&&!Ae.startsWith("#")){if(Ae)this._checkUnique(Ae);this.refs[Ae]=ve}if(he)this.validateSchema(R,true);return ve}_checkUnique(R){if(this.schemas[R]||this.refs[R]){throw new Error(`schema with key or id "${R}" already exists`)}}_compileSchemaEnv(R){if(R.meta)this._compileMetaSchema(R);else be.compileSchema.call(this,R);if(!R.validate)throw new Error("ajv implementation error");return R.validate}_compileMetaSchema(R){const pe=this.opts;this.opts=this._metaOpts;try{be.compileSchema.call(this,R)}finally{this.opts=pe}}}Ajv.ValidationError=ye.default;Ajv.MissingRefError=me.default;pe["default"]=Ajv;function checkOptions(R,pe,Ae,he="error"){for(const ge in R){const ye=ge;if(ye in pe)this.logger[he](`${Ae}: option ${ge}. ${R[ye]}`)}}function getSchEnv(R){R=(0,we.normalizeId)(R);return this.schemas[R]||this.refs[R]}function addInitialSchemas(){const R=this.opts.schemas;if(!R)return;if(Array.isArray(R))this.addSchema(R);else for(const pe in R)this.addSchema(R[pe],pe)}function addInitialFormats(){for(const R in this.opts.formats){const pe=this.opts.formats[R];if(pe)this.addFormat(R,pe)}}function addInitialKeywords(R){if(Array.isArray(R)){this.addVocabulary(R);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const pe in R){const Ae=R[pe];if(!Ae.keyword)Ae.keyword=pe;this.addKeyword(Ae)}}function getMetaSchemaOptions(){const R={...this.opts};for(const pe of Be)delete R[pe];return R}const xe={log(){},warn(){},error(){}};function getLogger(R){if(R===false)return xe;if(R===undefined)return console;if(R.log&&R.warn&&R.error)return R;throw new Error("logger must implement log, warn and error methods")}const Pe=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(R,pe){const{RULES:Ae}=this;(0,_e.eachItem)(R,(R=>{if(Ae.keywords[R])throw new Error(`Keyword ${R} is already defined`);if(!Pe.test(R))throw new Error(`Keyword ${R} has invalid name`)}));if(!pe)return;if(pe.$data&&!("code"in pe||"validate"in pe)){throw new Error('$data keyword must have "code" or "validate" function')}}function addRule(R,pe,Ae){var he;const ge=pe===null||pe===void 0?void 0:pe.post;if(Ae&&ge)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:ye}=this;let me=ge?ye.post:ye.rules.find((({type:R})=>R===Ae));if(!me){me={type:Ae,rules:[]};ye.rules.push(me)}ye.keywords[R]=true;if(!pe)return;const ve={keyword:R,definition:{...pe,type:(0,Ce.getJSONTypes)(pe.type),schemaType:(0,Ce.getJSONTypes)(pe.schemaType)}};if(pe.before)addBeforeRule.call(this,me,ve,pe.before);else me.rules.push(ve);ye.all[R]=ve;(he=pe.implements)===null||he===void 0?void 0:he.forEach((R=>this.addKeyword(R)))}function addBeforeRule(R,pe,Ae){const he=R.rules.findIndex((R=>R.keyword===Ae));if(he>=0){R.rules.splice(he,0,pe)}else{R.rules.push(pe);this.logger.warn(`rule ${Ae} is not defined`)}}function keywordMetaschema(R){let{metaSchema:pe}=R;if(pe===undefined)return;if(R.$data&&this.opts.$data)pe=schemaOrData(pe);R.validateSchema=this.compile(pe,true)}const Te={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(R){return{anyOf:[R,Te]}}},59246:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(22577);const ge=Ae(90996);const ye=Ae(5568);const me=Ae(46795);const ve=Ae(235);const be=Ae(2567);const Ee=Ae(41233);const we=Ae(61968);const Ce=["/properties"];function addMetaSchema2020(R){[he,ge,ye,me,ve,with$data(this,be),Ee,with$data(this,we)].forEach((R=>this.addMetaSchema(R,undefined,false)));return this;function with$data(pe,Ae){return R?pe.$dataMetaSchema(Ae,Ce):Ae}}pe["default"]=addMetaSchema2020},63809:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(28206);he.code='require("ajv/dist/runtime/equal").default';pe["default"]=he},22470:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function ucs2length(R){const pe=R.length;let Ae=0;let he=0;let ge;while(he=55296&&ge<=56319&&he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(49688);he.code='require("ajv/dist/runtime/uri").default';pe["default"]=he},97616:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});class ValidationError extends Error{constructor(R){super("validation failed");this.errors=R;this.ajv=this.validation=true}}pe["default"]=ValidationError},24720:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.validateAdditionalItems=void 0;const he=Ae(19179);const ge=Ae(3439);const ye={message:({params:{len:R}})=>(0,he.str)`must NOT have more than ${R} items`,params:({params:{len:R}})=>(0,he._)`{limit: ${R}}`};const me={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ye,code(R){const{parentSchema:pe,it:Ae}=R;const{items:he}=pe;if(!Array.isArray(he)){(0,ge.checkStrictMode)(Ae,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(R,he)}};function validateAdditionalItems(R,pe){const{gen:Ae,schema:ye,data:me,keyword:ve,it:be}=R;be.items=true;const Ee=Ae.const("len",(0,he._)`${me}.length`);if(ye===false){R.setParams({len:pe.length});R.pass((0,he._)`${Ee} <= ${pe.length}`)}else if(typeof ye=="object"&&!(0,ge.alwaysValidSchema)(be,ye)){const ge=Ae.var("valid",(0,he._)`${Ee} <= ${pe.length}`);Ae.if((0,he.not)(ge),(()=>validateItems(ge)));R.ok(ge)}function validateItems(ye){Ae.forRange("i",pe.length,Ee,(pe=>{R.subschema({keyword:ve,dataProp:pe,dataPropType:ge.Type.Num},ye);if(!be.allErrors)Ae.if((0,he.not)(ye),(()=>Ae.break()))}))}}pe.validateAdditionalItems=validateAdditionalItems;pe["default"]=me},43481:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64205);const ge=Ae(19179);const ye=Ae(10050);const me=Ae(3439);const ve={message:"must NOT have additional properties",params:({params:R})=>(0,ge._)`{additionalProperty: ${R.additionalProperty}}`};const be={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:ve,code(R){const{gen:pe,schema:Ae,parentSchema:ve,data:be,errsCount:Ee,it:we}=R;if(!Ee)throw new Error("ajv implementation error");const{allErrors:Ce,opts:_e}=we;we.props=true;if(_e.removeAdditional!=="all"&&(0,me.alwaysValidSchema)(we,Ae))return;const Ie=(0,he.allSchemaProperties)(ve.properties);const Se=(0,he.allSchemaProperties)(ve.patternProperties);checkAdditionalProperties();R.ok((0,ge._)`${Ee} === ${ye.default.errors}`);function checkAdditionalProperties(){pe.forIn("key",be,(R=>{if(!Ie.length&&!Se.length)additionalPropertyCode(R);else pe.if(isAdditional(R),(()=>additionalPropertyCode(R)))}))}function isAdditional(Ae){let ye;if(Ie.length>8){const R=(0,me.schemaRefOrVal)(we,ve.properties,"properties");ye=(0,he.isOwnProperty)(pe,R,Ae)}else if(Ie.length){ye=(0,ge.or)(...Ie.map((R=>(0,ge._)`${Ae} === ${R}`)))}else{ye=ge.nil}if(Se.length){ye=(0,ge.or)(ye,...Se.map((pe=>(0,ge._)`${(0,he.usePattern)(R,pe)}.test(${Ae})`)))}return(0,ge.not)(ye)}function deleteAdditional(R){pe.code((0,ge._)`delete ${be}[${R}]`)}function additionalPropertyCode(he){if(_e.removeAdditional==="all"||_e.removeAdditional&&Ae===false){deleteAdditional(he);return}if(Ae===false){R.setParams({additionalProperty:he});R.error();if(!Ce)pe.break();return}if(typeof Ae=="object"&&!(0,me.alwaysValidSchema)(we,Ae)){const Ae=pe.name("valid");if(_e.removeAdditional==="failing"){applyAdditionalSchema(he,Ae,false);pe.if((0,ge.not)(Ae),(()=>{R.reset();deleteAdditional(he)}))}else{applyAdditionalSchema(he,Ae);if(!Ce)pe.if((0,ge.not)(Ae),(()=>pe.break()))}}}function applyAdditionalSchema(pe,Ae,he){const ge={keyword:"additionalProperties",dataProp:pe,dataPropType:me.Type.Str};if(he===false){Object.assign(ge,{compositeRule:true,createErrors:false,allErrors:false})}R.subschema(ge,Ae)}}};pe["default"]=be},78406:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(3439);const ge={keyword:"allOf",schemaType:"array",code(R){const{gen:pe,schema:Ae,it:ge}=R;if(!Array.isArray(Ae))throw new Error("ajv implementation error");const ye=pe.name("valid");Ae.forEach(((pe,Ae)=>{if((0,he.alwaysValidSchema)(ge,pe))return;const me=R.subschema({keyword:"allOf",schemaProp:Ae},ye);R.ok(ye);R.mergeEvaluated(me)}))}};pe["default"]=ge},38168:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64205);const ge={keyword:"anyOf",schemaType:"array",trackErrors:true,code:he.validateUnion,error:{message:"must match a schema in anyOf"}};pe["default"]=ge},99535:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye={message:({params:{min:R,max:pe}})=>pe===undefined?(0,he.str)`must contain at least ${R} valid item(s)`:(0,he.str)`must contain at least ${R} and no more than ${pe} valid item(s)`,params:({params:{min:R,max:pe}})=>pe===undefined?(0,he._)`{minContains: ${R}}`:(0,he._)`{minContains: ${R}, maxContains: ${pe}}`};const me={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:ye,code(R){const{gen:pe,schema:Ae,parentSchema:ye,data:me,it:ve}=R;let be;let Ee;const{minContains:we,maxContains:Ce}=ye;if(ve.opts.next){be=we===undefined?1:we;Ee=Ce}else{be=1}const _e=pe.const("len",(0,he._)`${me}.length`);R.setParams({min:be,max:Ee});if(Ee===undefined&&be===0){(0,ge.checkStrictMode)(ve,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(Ee!==undefined&&be>Ee){(0,ge.checkStrictMode)(ve,`"minContains" > "maxContains" is always invalid`);R.fail();return}if((0,ge.alwaysValidSchema)(ve,Ae)){let pe=(0,he._)`${_e} >= ${be}`;if(Ee!==undefined)pe=(0,he._)`${pe} && ${_e} <= ${Ee}`;R.pass(pe);return}ve.items=true;const Ie=pe.name("valid");if(Ee===undefined&&be===1){validateItems(Ie,(()=>pe.if(Ie,(()=>pe.break()))))}else if(be===0){pe.let(Ie,true);if(Ee!==undefined)pe.if((0,he._)`${me}.length > 0`,validateItemsWithCount)}else{pe.let(Ie,false);validateItemsWithCount()}R.result(Ie,(()=>R.reset()));function validateItemsWithCount(){const R=pe.name("_valid");const Ae=pe.let("count",0);validateItems(R,(()=>pe.if(R,(()=>checkLimits(Ae)))))}function validateItems(Ae,he){pe.forRange("i",0,_e,(pe=>{R.subschema({keyword:"contains",dataProp:pe,dataPropType:ge.Type.Num,compositeRule:true},Ae);he()}))}function checkLimits(R){pe.code((0,he._)`${R}++`);if(Ee===undefined){pe.if((0,he._)`${R} >= ${be}`,(()=>pe.assign(Ie,true).break()))}else{pe.if((0,he._)`${R} > ${Ee}`,(()=>pe.assign(Ie,false).break()));if(be===1)pe.assign(Ie,true);else pe.if((0,he._)`${R} >= ${be}`,(()=>pe.assign(Ie,true)))}}}};pe["default"]=me},34611:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.validateSchemaDeps=pe.validatePropertyDeps=pe.error=void 0;const he=Ae(19179);const ge=Ae(3439);const ye=Ae(64205);pe.error={message:({params:{property:R,depsCount:pe,deps:Ae}})=>{const ge=pe===1?"property":"properties";return(0,he.str)`must have ${ge} ${Ae} when property ${R} is present`},params:({params:{property:R,depsCount:pe,deps:Ae,missingProperty:ge}})=>(0,he._)`{property: ${R}, missingProperty: ${ge}, depsCount: ${pe}, - deps: ${Ae}}`};const me={keyword:"dependencies",type:"object",schemaType:"object",error:pe.error,code(R){const[pe,Ae]=splitDependencies(R);validatePropertyDeps(R,pe);validateSchemaDeps(R,Ae)}};function splitDependencies({schema:R}){const pe={};const Ae={};for(const he in R){if(he==="__proto__")continue;const ge=Array.isArray(R[he])?pe:Ae;ge[he]=R[he]}return[pe,Ae]}function validatePropertyDeps(R,pe=R.schema){const{gen:Ae,data:ge,it:me}=R;if(Object.keys(pe).length===0)return;const ve=Ae.let("missing");for(const be in pe){const Ee=pe[be];if(Ee.length===0)continue;const Ce=(0,ye.propertyInData)(Ae,ge,be,me.opts.ownProperties);R.setParams({property:be,depsCount:Ee.length,deps:Ee.join(", ")});if(me.allErrors){Ae.if(Ce,(()=>{for(const pe of Ee){(0,ye.checkReportMissingProp)(R,pe)}}))}else{Ae.if((0,he._)`${Ce} && (${(0,ye.checkMissingProp)(R,Ee,ve)})`);(0,ye.reportMissingProp)(R,ve);Ae.else()}}}pe.validatePropertyDeps=validatePropertyDeps;function validateSchemaDeps(R,pe=R.schema){const{gen:Ae,data:he,keyword:me,it:ve}=R;const be=Ae.name("valid");for(const Ee in pe){if((0,ge.alwaysValidSchema)(ve,pe[Ee]))continue;Ae.if((0,ye.propertyInData)(Ae,he,Ee,ve.opts.ownProperties),(()=>{const pe=R.subschema({keyword:me,schemaProp:Ee},be);R.mergeValidEvaluated(pe,be)}),(()=>Ae.var(be,true)));R.ok(be)}}pe.validateSchemaDeps=validateSchemaDeps;pe["default"]=me},86802:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(34611);const ge={keyword:"dependentSchemas",type:"object",schemaType:"object",code:R=>(0,he.validateSchemaDeps)(R)};pe["default"]=ge},57701:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye={message:({params:R})=>(0,he.str)`must match "${R.ifClause}" schema`,params:({params:R})=>(0,he._)`{failingKeyword: ${R.ifClause}}`};const me={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:ye,code(R){const{gen:pe,parentSchema:Ae,it:ye}=R;if(Ae.then===undefined&&Ae.else===undefined){(0,ge.checkStrictMode)(ye,'"if" without "then" and "else" is ignored')}const me=hasSchema(ye,"then");const ve=hasSchema(ye,"else");if(!me&&!ve)return;const be=pe.let("valid",true);const Ee=pe.name("_valid");validateIf();R.reset();if(me&&ve){const Ae=pe.let("ifClause");R.setParams({ifClause:Ae});pe.if(Ee,validateClause("then",Ae),validateClause("else",Ae))}else if(me){pe.if(Ee,validateClause("then"))}else{pe.if((0,he.not)(Ee),validateClause("else"))}R.pass(be,(()=>R.error(true)));function validateIf(){const pe=R.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},Ee);R.mergeEvaluated(pe)}function validateClause(Ae,ge){return()=>{const ye=R.subschema({keyword:Ae},Ee);pe.assign(be,Ee);R.mergeValidEvaluated(ye,be);if(ge)pe.assign(ge,(0,he._)`${Ae}`);else R.setParams({ifClause:Ae})}}}};function hasSchema(R,pe){const Ae=R.schema[pe];return Ae!==undefined&&!(0,ge.alwaysValidSchema)(R,Ae)}pe["default"]=me},53048:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(24720);const ge=Ae(59498);const ye=Ae(98008);const me=Ae(59084);const ve=Ae(99535);const be=Ae(34611);const Ee=Ae(52554);const Ce=Ae(43481);const we=Ae(77666);const _e=Ae(95157);const Ie=Ae(38720);const Se=Ae(38168);const Be=Ae(6434);const ke=Ae(78406);const Oe=Ae(57701);const Re=Ae(37680);function getApplicator(R=false){const pe=[Ie.default,Se.default,Be.default,ke.default,Oe.default,Re.default,Ee.default,Ce.default,be.default,we.default,_e.default];if(R)pe.push(ge.default,me.default);else pe.push(he.default,ye.default);pe.push(ve.default);return pe}pe["default"]=getApplicator},98008:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.validateTuple=void 0;const he=Ae(19179);const ge=Ae(3439);const ye=Ae(64205);const me={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(R){const{schema:pe,it:Ae}=R;if(Array.isArray(pe))return validateTuple(R,"additionalItems",pe);Ae.items=true;if((0,ge.alwaysValidSchema)(Ae,pe))return;R.ok((0,ye.validateArray)(R))}};function validateTuple(R,pe,Ae=R.schema){const{gen:ye,parentSchema:me,data:ve,keyword:be,it:Ee}=R;checkStrictTuple(me);if(Ee.opts.unevaluated&&Ae.length&&Ee.items!==true){Ee.items=ge.mergeEvaluated.items(ye,Ae.length,Ee.items)}const Ce=ye.name("valid");const we=ye.const("len",(0,he._)`${ve}.length`);Ae.forEach(((pe,Ae)=>{if((0,ge.alwaysValidSchema)(Ee,pe))return;ye.if((0,he._)`${we} > ${Ae}`,(()=>R.subschema({keyword:be,schemaProp:Ae,dataProp:Ae},Ce)));R.ok(Ce)}));function checkStrictTuple(R){const{opts:he,errSchemaPath:ye}=Ee;const me=Ae.length;const ve=me===R.minItems&&(me===R.maxItems||R[pe]===false);if(he.strictTuples&&!ve){const R=`"${be}" is ${me}-tuple, but minItems or maxItems/${pe} are not specified or different at path "${ye}"`;(0,ge.checkStrictMode)(Ee,R,he.strictTuples)}}}pe.validateTuple=validateTuple;pe["default"]=me},59084:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye=Ae(64205);const me=Ae(24720);const ve={message:({params:{len:R}})=>(0,he.str)`must NOT have more than ${R} items`,params:({params:{len:R}})=>(0,he._)`{limit: ${R}}`};const be={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:ve,code(R){const{schema:pe,parentSchema:Ae,it:he}=R;const{prefixItems:ve}=Ae;he.items=true;if((0,ge.alwaysValidSchema)(he,pe))return;if(ve)(0,me.validateAdditionalItems)(R,ve);else R.ok((0,ye.validateArray)(R))}};pe["default"]=be},38720:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(3439);const ge={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(R){const{gen:pe,schema:Ae,it:ge}=R;if((0,he.alwaysValidSchema)(ge,Ae)){R.fail();return}const ye=pe.name("valid");R.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},ye);R.failResult(ye,(()=>R.reset()),(()=>R.error()))},error:{message:"must NOT be valid"}};pe["default"]=ge},6434:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye={message:"must match exactly one schema in oneOf",params:({params:R})=>(0,he._)`{passingSchemas: ${R.passing}}`};const me={keyword:"oneOf",schemaType:"array",trackErrors:true,error:ye,code(R){const{gen:pe,schema:Ae,parentSchema:ye,it:me}=R;if(!Array.isArray(Ae))throw new Error("ajv implementation error");if(me.opts.discriminator&&ye.discriminator)return;const ve=Ae;const be=pe.let("valid",false);const Ee=pe.let("passing",null);const Ce=pe.name("_valid");R.setParams({passing:Ee});pe.block(validateOneOf);R.result(be,(()=>R.reset()),(()=>R.error(true)));function validateOneOf(){ve.forEach(((Ae,ye)=>{let ve;if((0,ge.alwaysValidSchema)(me,Ae)){pe.var(Ce,true)}else{ve=R.subschema({keyword:"oneOf",schemaProp:ye,compositeRule:true},Ce)}if(ye>0){pe.if((0,he._)`${Ce} && ${be}`).assign(be,false).assign(Ee,(0,he._)`[${Ee}, ${ye}]`).else()}pe.if(Ce,(()=>{pe.assign(be,true);pe.assign(Ee,ye);if(ve)R.mergeEvaluated(ve,he.Name)}))}))}}};pe["default"]=me},95157:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64205);const ge=Ae(19179);const ye=Ae(3439);const me=Ae(3439);const ve={keyword:"patternProperties",type:"object",schemaType:"object",code(R){const{gen:pe,schema:Ae,data:ve,parentSchema:be,it:Ee}=R;const{opts:Ce}=Ee;const we=(0,he.allSchemaProperties)(Ae);const _e=we.filter((R=>(0,ye.alwaysValidSchema)(Ee,Ae[R])));if(we.length===0||_e.length===we.length&&(!Ee.opts.unevaluated||Ee.props===true)){return}const Ie=Ce.strictSchema&&!Ce.allowMatchingProperties&&be.properties;const Se=pe.name("valid");if(Ee.props!==true&&!(Ee.props instanceof ge.Name)){Ee.props=(0,me.evaluatedPropsToName)(pe,Ee.props)}const{props:Be}=Ee;validatePatternProperties();function validatePatternProperties(){for(const R of we){if(Ie)checkMatchingProperties(R);if(Ee.allErrors){validateProperties(R)}else{pe.var(Se,true);validateProperties(R);pe.if(Se)}}}function checkMatchingProperties(R){for(const pe in Ie){if(new RegExp(R).test(pe)){(0,ye.checkStrictMode)(Ee,`property ${pe} matches pattern ${R} (use allowMatchingProperties)`)}}}function validateProperties(Ae){pe.forIn("key",ve,(ye=>{pe.if((0,ge._)`${(0,he.usePattern)(R,Ae)}.test(${ye})`,(()=>{const he=_e.includes(Ae);if(!he){R.subschema({keyword:"patternProperties",schemaProp:Ae,dataProp:ye,dataPropType:me.Type.Str},Se)}if(Ee.opts.unevaluated&&Be!==true){pe.assign((0,ge._)`${Be}[${ye}]`,true)}else if(!he&&!Ee.allErrors){pe.if((0,ge.not)(Se),(()=>pe.break()))}}))}))}}};pe["default"]=ve},59498:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(98008);const ge={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:R=>(0,he.validateTuple)(R,"items")};pe["default"]=ge},77666:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(18955);const ge=Ae(64205);const ye=Ae(3439);const me=Ae(43481);const ve={keyword:"properties",type:"object",schemaType:"object",code(R){const{gen:pe,schema:Ae,parentSchema:ve,data:be,it:Ee}=R;if(Ee.opts.removeAdditional==="all"&&ve.additionalProperties===undefined){me.default.code(new he.KeywordCxt(Ee,me.default,"additionalProperties"))}const Ce=(0,ge.allSchemaProperties)(Ae);for(const R of Ce){Ee.definedProperties.add(R)}if(Ee.opts.unevaluated&&Ce.length&&Ee.props!==true){Ee.props=ye.mergeEvaluated.props(pe,(0,ye.toHash)(Ce),Ee.props)}const we=Ce.filter((R=>!(0,ye.alwaysValidSchema)(Ee,Ae[R])));if(we.length===0)return;const _e=pe.name("valid");for(const Ae of we){if(hasDefault(Ae)){applyPropertySchema(Ae)}else{pe.if((0,ge.propertyInData)(pe,be,Ae,Ee.opts.ownProperties));applyPropertySchema(Ae);if(!Ee.allErrors)pe.else().var(_e,true);pe.endIf()}R.it.definedProperties.add(Ae);R.ok(_e)}function hasDefault(R){return Ee.opts.useDefaults&&!Ee.compositeRule&&Ae[R].default!==undefined}function applyPropertySchema(pe){R.subschema({keyword:"properties",schemaProp:pe,dataProp:pe},_e)}}};pe["default"]=ve},52554:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye={message:"property name must be valid",params:({params:R})=>(0,he._)`{propertyName: ${R.propertyName}}`};const me={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ye,code(R){const{gen:pe,schema:Ae,data:ye,it:me}=R;if((0,ge.alwaysValidSchema)(me,Ae))return;const ve=pe.name("valid");pe.forIn("key",ye,(Ae=>{R.setParams({propertyName:Ae});R.subschema({keyword:"propertyNames",data:Ae,dataTypes:["string"],propertyName:Ae,compositeRule:true},ve);pe.if((0,he.not)(ve),(()=>{R.error(true);if(!me.allErrors)pe.break()}))}));R.ok(ve)}};pe["default"]=me},37680:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(3439);const ge={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:R,parentSchema:pe,it:Ae}){if(pe.if===undefined)(0,he.checkStrictMode)(Ae,`"${R}" without "if" is ignored`)}};pe["default"]=ge},64205:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.validateUnion=pe.validateArray=pe.usePattern=pe.callValidateCode=pe.schemaProperties=pe.allSchemaProperties=pe.noPropertyInData=pe.propertyInData=pe.isOwnProperty=pe.hasPropFunc=pe.reportMissingProp=pe.checkMissingProp=pe.checkReportMissingProp=void 0;const he=Ae(19179);const ge=Ae(3439);const ye=Ae(10050);const me=Ae(3439);function checkReportMissingProp(R,pe){const{gen:Ae,data:ge,it:ye}=R;Ae.if(noPropertyInData(Ae,ge,pe,ye.opts.ownProperties),(()=>{R.setParams({missingProperty:(0,he._)`${pe}`},true);R.error()}))}pe.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen:R,data:pe,it:{opts:Ae}},ge,ye){return(0,he.or)(...ge.map((ge=>(0,he.and)(noPropertyInData(R,pe,ge,Ae.ownProperties),(0,he._)`${ye} = ${ge}`))))}pe.checkMissingProp=checkMissingProp;function reportMissingProp(R,pe){R.setParams({missingProperty:pe},true);R.error()}pe.reportMissingProp=reportMissingProp;function hasPropFunc(R){return R.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,he._)`Object.prototype.hasOwnProperty`})}pe.hasPropFunc=hasPropFunc;function isOwnProperty(R,pe,Ae){return(0,he._)`${hasPropFunc(R)}.call(${pe}, ${Ae})`}pe.isOwnProperty=isOwnProperty;function propertyInData(R,pe,Ae,ge){const ye=(0,he._)`${pe}${(0,he.getProperty)(Ae)} !== undefined`;return ge?(0,he._)`${ye} && ${isOwnProperty(R,pe,Ae)}`:ye}pe.propertyInData=propertyInData;function noPropertyInData(R,pe,Ae,ge){const ye=(0,he._)`${pe}${(0,he.getProperty)(Ae)} === undefined`;return ge?(0,he.or)(ye,(0,he.not)(isOwnProperty(R,pe,Ae))):ye}pe.noPropertyInData=noPropertyInData;function allSchemaProperties(R){return R?Object.keys(R).filter((R=>R!=="__proto__")):[]}pe.allSchemaProperties=allSchemaProperties;function schemaProperties(R,pe){return allSchemaProperties(pe).filter((Ae=>!(0,ge.alwaysValidSchema)(R,pe[Ae])))}pe.schemaProperties=schemaProperties;function callValidateCode({schemaCode:R,data:pe,it:{gen:Ae,topSchemaRef:ge,schemaPath:me,errorPath:ve},it:be},Ee,Ce,we){const _e=we?(0,he._)`${R}, ${pe}, ${ge}${me}`:pe;const Ie=[[ye.default.instancePath,(0,he.strConcat)(ye.default.instancePath,ve)],[ye.default.parentData,be.parentData],[ye.default.parentDataProperty,be.parentDataProperty],[ye.default.rootData,ye.default.rootData]];if(be.opts.dynamicRef)Ie.push([ye.default.dynamicAnchors,ye.default.dynamicAnchors]);const Se=(0,he._)`${_e}, ${Ae.object(...Ie)}`;return Ce!==he.nil?(0,he._)`${Ee}.call(${Ce}, ${Se})`:(0,he._)`${Ee}(${Se})`}pe.callValidateCode=callValidateCode;const ve=(0,he._)`new RegExp`;function usePattern({gen:R,it:{opts:pe}},Ae){const ge=pe.unicodeRegExp?"u":"";const{regExp:ye}=pe.code;const be=ye(Ae,ge);return R.scopeValue("pattern",{key:be.toString(),ref:be,code:(0,he._)`${ye.code==="new RegExp"?ve:(0,me.useFunc)(R,ye)}(${Ae}, ${ge})`})}pe.usePattern=usePattern;function validateArray(R){const{gen:pe,data:Ae,keyword:ye,it:me}=R;const ve=pe.name("valid");if(me.allErrors){const R=pe.let("valid",true);validateItems((()=>pe.assign(R,false)));return R}pe.var(ve,true);validateItems((()=>pe.break()));return ve;function validateItems(me){const be=pe.const("len",(0,he._)`${Ae}.length`);pe.forRange("i",0,be,(Ae=>{R.subschema({keyword:ye,dataProp:Ae,dataPropType:ge.Type.Num},ve);pe.if((0,he.not)(ve),me)}))}}pe.validateArray=validateArray;function validateUnion(R){const{gen:pe,schema:Ae,keyword:ye,it:me}=R;if(!Array.isArray(Ae))throw new Error("ajv implementation error");const ve=Ae.some((R=>(0,ge.alwaysValidSchema)(me,R)));if(ve&&!me.opts.unevaluated)return;const be=pe.let("valid",false);const Ee=pe.name("_valid");pe.block((()=>Ae.forEach(((Ae,ge)=>{const me=R.subschema({keyword:ye,schemaProp:ge,compositeRule:true},Ee);pe.assign(be,(0,he._)`${be} || ${Ee}`);const ve=R.mergeValidEvaluated(me,Ee);if(!ve)pe.if((0,he.not)(be))}))));R.result(be,(()=>R.reset()),(()=>R.error(true)))}pe.validateUnion=validateUnion},21674:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};pe["default"]=Ae},33707:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(21674);const ge=Ae(16532);const ye=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",he.default,ge.default];pe["default"]=ye},16532:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.callRef=pe.getValidate=void 0;const he=Ae(18190);const ge=Ae(64205);const ye=Ae(19179);const me=Ae(10050);const ve=Ae(60813);const be=Ae(3439);const Ee={keyword:"$ref",schemaType:"string",code(R){const{gen:pe,schema:Ae,it:ge}=R;const{baseId:me,schemaEnv:be,validateName:Ee,opts:Ce,self:we}=ge;const{root:_e}=be;if((Ae==="#"||Ae==="#/")&&me===_e.baseId)return callRootRef();const Ie=ve.resolveRef.call(we,_e,me,Ae);if(Ie===undefined)throw new he.default(ge.opts.uriResolver,me,Ae);if(Ie instanceof ve.SchemaEnv)return callValidate(Ie);return inlineRefSchema(Ie);function callRootRef(){if(be===_e)return callRef(R,Ee,be,be.$async);const Ae=pe.scopeValue("root",{ref:_e});return callRef(R,(0,ye._)`${Ae}.validate`,_e,_e.$async)}function callValidate(pe){const Ae=getValidate(R,pe);callRef(R,Ae,pe,pe.$async)}function inlineRefSchema(he){const ge=pe.scopeValue("schema",Ce.code.source===true?{ref:he,code:(0,ye.stringify)(he)}:{ref:he});const me=pe.name("valid");const ve=R.subschema({schema:he,dataTypes:[],schemaPath:ye.nil,topSchemaRef:ge,errSchemaPath:Ae},me);R.mergeEvaluated(ve);R.ok(me)}}};function getValidate(R,pe){const{gen:Ae}=R;return pe.validate?Ae.scopeValue("validate",{ref:pe.validate}):(0,ye._)`${Ae.scopeValue("wrapper",{ref:pe})}.validate`}pe.getValidate=getValidate;function callRef(R,pe,Ae,he){const{gen:ve,it:Ee}=R;const{allErrors:Ce,schemaEnv:we,opts:_e}=Ee;const Ie=_e.passContext?me.default.this:ye.nil;if(he)callAsyncRef();else callSyncRef();function callAsyncRef(){if(!we.$async)throw new Error("async schema referenced by sync schema");const Ae=ve.let("valid");ve.try((()=>{ve.code((0,ye._)`await ${(0,ge.callValidateCode)(R,pe,Ie)}`);addEvaluatedFrom(pe);if(!Ce)ve.assign(Ae,true)}),(R=>{ve.if((0,ye._)`!(${R} instanceof ${Ee.ValidationError})`,(()=>ve.throw(R)));addErrorsFrom(R);if(!Ce)ve.assign(Ae,false)}));R.ok(Ae)}function callSyncRef(){R.result((0,ge.callValidateCode)(R,pe,Ie),(()=>addEvaluatedFrom(pe)),(()=>addErrorsFrom(pe)))}function addErrorsFrom(R){const pe=(0,ye._)`${R}.errors`;ve.assign(me.default.vErrors,(0,ye._)`${me.default.vErrors} === null ? ${pe} : ${me.default.vErrors}.concat(${pe})`);ve.assign(me.default.errors,(0,ye._)`${me.default.vErrors}.length`)}function addEvaluatedFrom(R){var pe;if(!Ee.opts.unevaluated)return;const he=(pe=Ae===null||Ae===void 0?void 0:Ae.validate)===null||pe===void 0?void 0:pe.evaluated;if(Ee.props!==true){if(he&&!he.dynamicProps){if(he.props!==undefined){Ee.props=be.mergeEvaluated.props(ve,he.props,Ee.props)}}else{const pe=ve.var("props",(0,ye._)`${R}.evaluated.props`);Ee.props=be.mergeEvaluated.props(ve,pe,Ee.props,ye.Name)}}if(Ee.items!==true){if(he&&!he.dynamicItems){if(he.items!==undefined){Ee.items=be.mergeEvaluated.items(ve,he.items,Ee.items)}}else{const pe=ve.var("items",(0,ye._)`${R}.evaluated.items`);Ee.items=be.mergeEvaluated.items(ve,pe,Ee.items,ye.Name)}}}}pe.callRef=callRef;pe["default"]=Ee},14025:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(88374);const ye=Ae(60813);const me=Ae(18190);const ve=Ae(3439);const be={message:({params:{discrError:R,tagName:pe}})=>R===ge.DiscrError.Tag?`tag "${pe}" must be string`:`value of tag "${pe}" must be in oneOf`,params:({params:{discrError:R,tag:pe,tagName:Ae}})=>(0,he._)`{error: ${R}, tag: ${Ae}, tagValue: ${pe}}`};const Ee={keyword:"discriminator",type:"object",schemaType:"object",error:be,code(R){const{gen:pe,data:Ae,schema:be,parentSchema:Ee,it:Ce}=R;const{oneOf:we}=Ee;if(!Ce.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const _e=be.propertyName;if(typeof _e!="string")throw new Error("discriminator: requires propertyName");if(be.mapping)throw new Error("discriminator: mapping is not supported");if(!we)throw new Error("discriminator: requires oneOf keyword");const Ie=pe.let("valid",false);const Se=pe.const("tag",(0,he._)`${Ae}${(0,he.getProperty)(_e)}`);pe.if((0,he._)`typeof ${Se} == "string"`,(()=>validateMapping()),(()=>R.error(false,{discrError:ge.DiscrError.Tag,tag:Se,tagName:_e})));R.ok(Ie);function validateMapping(){const Ae=getMapping();pe.if(false);for(const R in Ae){pe.elseIf((0,he._)`${Se} === ${R}`);pe.assign(Ie,applyTagSchema(Ae[R]))}pe.else();R.error(false,{discrError:ge.DiscrError.Mapping,tag:Se,tagName:_e});pe.endIf()}function applyTagSchema(Ae){const ge=pe.name("valid");const ye=R.subschema({keyword:"oneOf",schemaProp:Ae},ge);R.mergeEvaluated(ye,he.Name);return ge}function getMapping(){var R;const pe={};const Ae=hasRequired(Ee);let he=true;for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.DiscrError=void 0;var Ae;(function(R){R["Tag"]="tag";R["Mapping"]="mapping"})(Ae||(pe.DiscrError=Ae={}))},96098:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(33707);const ge=Ae(39805);const ye=Ae(53048);const me=Ae(79774);const ve=Ae(96405);const be=Ae(53357);const Ee=Ae(54966);const Ce=Ae(35799);const we=[me.default,he.default,ge.default,(0,ye.default)(true),Ee.default,Ce.metadataVocabulary,Ce.contentVocabulary,ve.default,be.default];pe["default"]=we},50691:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(33707);const ge=Ae(39805);const ye=Ae(53048);const me=Ae(54966);const ve=Ae(35799);const be=[he.default,ge.default,(0,ye.default)(),me.default,ve.metadataVocabulary,ve.contentVocabulary];pe["default"]=be},92850:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.dynamicAnchor=void 0;const he=Ae(19179);const ge=Ae(10050);const ye=Ae(60813);const me=Ae(16532);const ve={keyword:"$dynamicAnchor",schemaType:"string",code:R=>dynamicAnchor(R,R.schema)};function dynamicAnchor(R,pe){const{gen:Ae,it:ye}=R;ye.schemaEnv.root.dynamicAnchors[pe]=true;const me=(0,he._)`${ge.default.dynamicAnchors}${(0,he.getProperty)(pe)}`;const ve=ye.errSchemaPath==="#"?ye.validateName:_getValidate(R);Ae.if((0,he._)`!${me}`,(()=>Ae.assign(me,ve)))}pe.dynamicAnchor=dynamicAnchor;function _getValidate(R){const{schemaEnv:pe,schema:Ae,self:he}=R.it;const{root:ge,baseId:ve,localRefs:be,meta:Ee}=pe.root;const{schemaId:Ce}=he.opts;const we=new ye.SchemaEnv({schema:Ae,schemaId:Ce,root:ge,baseId:ve,localRefs:be,meta:Ee});ye.compileSchema.call(he,we);return(0,me.getValidate)(R,we)}pe["default"]=ve},54217:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.dynamicRef=void 0;const he=Ae(19179);const ge=Ae(10050);const ye=Ae(16532);const me={keyword:"$dynamicRef",schemaType:"string",code:R=>dynamicRef(R,R.schema)};function dynamicRef(R,pe){const{gen:Ae,keyword:me,it:ve}=R;if(pe[0]!=="#")throw new Error(`"${me}" only supports hash fragment reference`);const be=pe.slice(1);if(ve.allErrors){_dynamicRef()}else{const pe=Ae.let("valid",false);_dynamicRef(pe);R.ok(pe)}function _dynamicRef(R){if(ve.schemaEnv.root.dynamicAnchors[be]){const pe=Ae.let("_v",(0,he._)`${ge.default.dynamicAnchors}${(0,he.getProperty)(be)}`);Ae.if(pe,_callRef(pe,R),_callRef(ve.validateName,R))}else{_callRef(ve.validateName,R)()}}function _callRef(pe,he){return he?()=>Ae.block((()=>{(0,ye.callRef)(R,pe);Ae.let(he,true)})):()=>(0,ye.callRef)(R,pe)}}pe.dynamicRef=dynamicRef;pe["default"]=me},79774:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(92850);const ge=Ae(54217);const ye=Ae(48334);const me=Ae(8360);const ve=[he.default,ge.default,ye.default,me.default];pe["default"]=ve},48334:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(92850);const ge=Ae(3439);const ye={keyword:"$recursiveAnchor",schemaType:"boolean",code(R){if(R.schema)(0,he.dynamicAnchor)(R,"");else(0,ge.checkStrictMode)(R.it,"$recursiveAnchor: false is ignored")}};pe["default"]=ye},8360:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(54217);const ge={keyword:"$recursiveRef",schemaType:"string",code:R=>(0,he.dynamicRef)(R,R.schema)};pe["default"]=ge},63691:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge={message:({schemaCode:R})=>(0,he.str)`must match format "${R}"`,params:({schemaCode:R})=>(0,he._)`{format: ${R}}`};const ye={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:ge,code(R,pe){const{gen:Ae,data:ge,$data:ye,schema:me,schemaCode:ve,it:be}=R;const{opts:Ee,errSchemaPath:Ce,schemaEnv:we,self:_e}=be;if(!Ee.validateFormats)return;if(ye)validate$DataFormat();else validateFormat();function validate$DataFormat(){const ye=Ae.scopeValue("formats",{ref:_e.formats,code:Ee.code.formats});const me=Ae.const("fDef",(0,he._)`${ye}[${ve}]`);const be=Ae.let("fType");const Ce=Ae.let("format");Ae.if((0,he._)`typeof ${me} == "object" && !(${me} instanceof RegExp)`,(()=>Ae.assign(be,(0,he._)`${me}.type || "string"`).assign(Ce,(0,he._)`${me}.validate`)),(()=>Ae.assign(be,(0,he._)`"string"`).assign(Ce,me)));R.fail$data((0,he.or)(unknownFmt(),invalidFmt()));function unknownFmt(){if(Ee.strictSchema===false)return he.nil;return(0,he._)`${ve} && !${Ce}`}function invalidFmt(){const R=we.$async?(0,he._)`(${me}.async ? await ${Ce}(${ge}) : ${Ce}(${ge}))`:(0,he._)`${Ce}(${ge})`;const Ae=(0,he._)`(typeof ${Ce} == "function" ? ${R} : ${Ce}.test(${ge}))`;return(0,he._)`${Ce} && ${Ce} !== true && ${be} === ${pe} && !${Ae}`}}function validateFormat(){const ye=_e.formats[me];if(!ye){unknownFormat();return}if(ye===true)return;const[ve,be,Ie]=getFormat(ye);if(ve===pe)R.pass(validCondition());function unknownFormat(){if(Ee.strictSchema===false){_e.logger.warn(unknownMsg());return}throw new Error(unknownMsg());function unknownMsg(){return`unknown format "${me}" ignored in schema at path "${Ce}"`}}function getFormat(R){const pe=R instanceof RegExp?(0,he.regexpCode)(R):Ee.code.formats?(0,he._)`${Ee.code.formats}${(0,he.getProperty)(me)}`:undefined;const ge=Ae.scopeValue("formats",{key:me,ref:R,code:pe});if(typeof R=="object"&&!(R instanceof RegExp)){return[R.type||"string",R.validate,(0,he._)`${ge}.validate`]}return["string",R,ge]}function validCondition(){if(typeof ye=="object"&&!(ye instanceof RegExp)&&ye.async){if(!we.$async)throw new Error("async format in sync schema");return(0,he._)`await ${Ie}(${ge})`}return typeof be=="function"?(0,he._)`${Ie}(${ge})`:(0,he._)`${Ie}.test(${ge})`}}}};pe["default"]=ye},54966:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(63691);const ge=[he.default];pe["default"]=ge},35799:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.contentVocabulary=pe.metadataVocabulary=void 0;pe.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];pe.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},96405:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(71973);const ge=Ae(86802);const ye=Ae(2473);const me=[he.default,ge.default,ye.default];pe["default"]=me},53357:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(26217);const ge=Ae(47186);const ye=[he.default,ge.default];pe["default"]=ye},47186:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye={message:({params:{len:R}})=>(0,he.str)`must NOT have more than ${R} items`,params:({params:{len:R}})=>(0,he._)`{limit: ${R}}`};const me={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:ye,code(R){const{gen:pe,schema:Ae,data:ye,it:me}=R;const ve=me.items||0;if(ve===true)return;const be=pe.const("len",(0,he._)`${ye}.length`);if(Ae===false){R.setParams({len:ve});R.fail((0,he._)`${be} > ${ve}`)}else if(typeof Ae=="object"&&!(0,ge.alwaysValidSchema)(me,Ae)){const Ae=pe.var("valid",(0,he._)`${be} <= ${ve}`);pe.if((0,he.not)(Ae),(()=>validateItems(Ae,ve)));R.ok(Ae)}me.items=true;function validateItems(Ae,ye){pe.forRange("i",ye,be,(ye=>{R.subschema({keyword:"unevaluatedItems",dataProp:ye,dataPropType:ge.Type.Num},Ae);if(!me.allErrors)pe.if((0,he.not)(Ae),(()=>pe.break()))}))}}};pe["default"]=me},26217:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye=Ae(10050);const me={message:"must NOT have unevaluated properties",params:({params:R})=>(0,he._)`{unevaluatedProperty: ${R.unevaluatedProperty}}`};const ve={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:true,error:me,code(R){const{gen:pe,schema:Ae,data:me,errsCount:ve,it:be}=R;if(!ve)throw new Error("ajv implementation error");const{allErrors:Ee,props:Ce}=be;if(Ce instanceof he.Name){pe.if((0,he._)`${Ce} !== true`,(()=>pe.forIn("key",me,(R=>pe.if(unevaluatedDynamic(Ce,R),(()=>unevaluatedPropCode(R)))))))}else if(Ce!==true){pe.forIn("key",me,(R=>Ce===undefined?unevaluatedPropCode(R):pe.if(unevaluatedStatic(Ce,R),(()=>unevaluatedPropCode(R)))))}be.props=true;R.ok((0,he._)`${ve} === ${ye.default.errors}`);function unevaluatedPropCode(ye){if(Ae===false){R.setParams({unevaluatedProperty:ye});R.error();if(!Ee)pe.break();return}if(!(0,ge.alwaysValidSchema)(be,Ae)){const Ae=pe.name("valid");R.subschema({keyword:"unevaluatedProperties",dataProp:ye,dataPropType:ge.Type.Str},Ae);if(!Ee)pe.if((0,he.not)(Ae),(()=>pe.break()))}}function unevaluatedDynamic(R,pe){return(0,he._)`!${R} || !${R}[${pe}]`}function unevaluatedStatic(R,pe){const Ae=[];for(const ge in R){if(R[ge]===true)Ae.push((0,he._)`${pe} !== ${ge}`)}return(0,he.and)(...Ae)}}};pe["default"]=ve},63694:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye=Ae(63809);const me={message:"must be equal to constant",params:({schemaCode:R})=>(0,he._)`{allowedValue: ${R}}`};const ve={keyword:"const",$data:true,error:me,code(R){const{gen:pe,data:Ae,$data:me,schemaCode:ve,schema:be}=R;if(me||be&&typeof be=="object"){R.fail$data((0,he._)`!${(0,ge.useFunc)(pe,ye.default)}(${Ae}, ${ve})`)}else{R.fail((0,he._)`${be} !== ${Ae}`)}}};pe["default"]=ve},71973:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(34611);const ge={keyword:"dependentRequired",type:"object",schemaType:"object",error:he.error,code:R=>(0,he.validatePropertyDeps)(R)};pe["default"]=ge},15529:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye=Ae(63809);const me={message:"must be equal to one of the allowed values",params:({schemaCode:R})=>(0,he._)`{allowedValues: ${R}}`};const ve={keyword:"enum",schemaType:"array",$data:true,error:me,code(R){const{gen:pe,data:Ae,$data:me,schema:ve,schemaCode:be,it:Ee}=R;if(!me&&ve.length===0)throw new Error("enum must have non-empty array");const Ce=ve.length>=Ee.opts.loopEnum;let we;const getEql=()=>we!==null&&we!==void 0?we:we=(0,ge.useFunc)(pe,ye.default);let _e;if(Ce||me){_e=pe.let("valid");R.block$data(_e,loopEnum)}else{if(!Array.isArray(ve))throw new Error("ajv implementation error");const R=pe.const("vSchema",be);_e=(0,he.or)(...ve.map(((pe,Ae)=>equalCode(R,Ae))))}R.pass(_e);function loopEnum(){pe.assign(_e,false);pe.forOf("v",be,(R=>pe.if((0,he._)`${getEql()}(${Ae}, ${R})`,(()=>pe.assign(_e,true).break()))))}function equalCode(R,pe){const ge=ve[pe];return typeof ge==="object"&&ge!==null?(0,he._)`${getEql()}(${Ae}, ${R}[${pe}])`:(0,he._)`${Ae} === ${ge}`}}};pe["default"]=ve},39805:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(30345);const ge=Ae(83201);const ye=Ae(97598);const me=Ae(94960);const ve=Ae(13470);const be=Ae(83602);const Ee=Ae(73924);const Ce=Ae(29351);const we=Ae(63694);const _e=Ae(15529);const Ie=[he.default,ge.default,ye.default,me.default,ve.default,be.default,Ee.default,Ce.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},we.default,_e.default];pe["default"]=Ie},2473:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(3439);const ge={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:R,parentSchema:pe,it:Ae}){if(pe.contains===undefined){(0,he.checkStrictMode)(Ae,`"${R}" without "contains" is ignored`)}}};pe["default"]=ge},73924:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge={message({keyword:R,schemaCode:pe}){const Ae=R==="maxItems"?"more":"fewer";return(0,he.str)`must NOT have ${Ae} than ${pe} items`},params:({schemaCode:R})=>(0,he._)`{limit: ${R}}`};const ye={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:ge,code(R){const{keyword:pe,data:Ae,schemaCode:ge}=R;const ye=pe==="maxItems"?he.operators.GT:he.operators.LT;R.fail$data((0,he._)`${Ae}.length ${ye} ${ge}`)}};pe["default"]=ye},97598:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye=Ae(22470);const me={message({keyword:R,schemaCode:pe}){const Ae=R==="maxLength"?"more":"fewer";return(0,he.str)`must NOT have ${Ae} than ${pe} characters`},params:({schemaCode:R})=>(0,he._)`{limit: ${R}}`};const ve={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:me,code(R){const{keyword:pe,data:Ae,schemaCode:me,it:ve}=R;const be=pe==="maxLength"?he.operators.GT:he.operators.LT;const Ee=ve.opts.unicode===false?(0,he._)`${Ae}.length`:(0,he._)`${(0,ge.useFunc)(R.gen,ye.default)}(${Ae})`;R.fail$data((0,he._)`${Ee} ${be} ${me}`)}};pe["default"]=ve},30345:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=he.operators;const ye={maximum:{okStr:"<=",ok:ge.LTE,fail:ge.GT},minimum:{okStr:">=",ok:ge.GTE,fail:ge.LT},exclusiveMaximum:{okStr:"<",ok:ge.LT,fail:ge.GTE},exclusiveMinimum:{okStr:">",ok:ge.GT,fail:ge.LTE}};const me={message:({keyword:R,schemaCode:pe})=>(0,he.str)`must be ${ye[R].okStr} ${pe}`,params:({keyword:R,schemaCode:pe})=>(0,he._)`{comparison: ${ye[R].okStr}, limit: ${pe}}`};const ve={keyword:Object.keys(ye),type:"number",schemaType:"number",$data:true,error:me,code(R){const{keyword:pe,data:Ae,schemaCode:ge}=R;R.fail$data((0,he._)`${Ae} ${ye[pe].fail} ${ge} || isNaN(${Ae})`)}};pe["default"]=ve},13470:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge={message({keyword:R,schemaCode:pe}){const Ae=R==="maxProperties"?"more":"fewer";return(0,he.str)`must NOT have ${Ae} than ${pe} properties`},params:({schemaCode:R})=>(0,he._)`{limit: ${R}}`};const ye={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:ge,code(R){const{keyword:pe,data:Ae,schemaCode:ge}=R;const ye=pe==="maxProperties"?he.operators.GT:he.operators.LT;R.fail$data((0,he._)`Object.keys(${Ae}).length ${ye} ${ge}`)}};pe["default"]=ye},83201:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge={message:({schemaCode:R})=>(0,he.str)`must be multiple of ${R}`,params:({schemaCode:R})=>(0,he._)`{multipleOf: ${R}}`};const ye={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:ge,code(R){const{gen:pe,data:Ae,schemaCode:ge,it:ye}=R;const me=ye.opts.multipleOfPrecision;const ve=pe.let("res");const be=me?(0,he._)`Math.abs(Math.round(${ve}) - ${ve}) > 1e-${me}`:(0,he._)`${ve} !== parseInt(${ve})`;R.fail$data((0,he._)`(${ge} === 0 || (${ve} = ${Ae}/${ge}, ${be}))`)}};pe["default"]=ye},94960:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64205);const ge=Ae(19179);const ye={message:({schemaCode:R})=>(0,ge.str)`must match pattern "${R}"`,params:({schemaCode:R})=>(0,ge._)`{pattern: ${R}}`};const me={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:ye,code(R){const{data:pe,$data:Ae,schema:ye,schemaCode:me,it:ve}=R;const be=ve.opts.unicodeRegExp?"u":"";const Ee=Ae?(0,ge._)`(new RegExp(${me}, ${be}))`:(0,he.usePattern)(R,ye);R.fail$data((0,ge._)`!${Ee}.test(${pe})`)}};pe["default"]=me},83602:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64205);const ge=Ae(19179);const ye=Ae(3439);const me={message:({params:{missingProperty:R}})=>(0,ge.str)`must have required property '${R}'`,params:({params:{missingProperty:R}})=>(0,ge._)`{missingProperty: ${R}}`};const ve={keyword:"required",type:"object",schemaType:"array",$data:true,error:me,code(R){const{gen:pe,schema:Ae,schemaCode:me,data:ve,$data:be,it:Ee}=R;const{opts:Ce}=Ee;if(!be&&Ae.length===0)return;const we=Ae.length>=Ce.loopRequired;if(Ee.allErrors)allErrorsMode();else exitOnErrorMode();if(Ce.strictRequired){const pe=R.parentSchema.properties;const{definedProperties:he}=R.it;for(const R of Ae){if((pe===null||pe===void 0?void 0:pe[R])===undefined&&!he.has(R)){const pe=Ee.schemaEnv.baseId+Ee.errSchemaPath;const Ae=`required property "${R}" is not defined at "${pe}" (strictRequired)`;(0,ye.checkStrictMode)(Ee,Ae,Ee.opts.strictRequired)}}}function allErrorsMode(){if(we||be){R.block$data(ge.nil,loopAllRequired)}else{for(const pe of Ae){(0,he.checkReportMissingProp)(R,pe)}}}function exitOnErrorMode(){const ge=pe.let("missing");if(we||be){const Ae=pe.let("valid",true);R.block$data(Ae,(()=>loopUntilMissing(ge,Ae)));R.ok(Ae)}else{pe.if((0,he.checkMissingProp)(R,Ae,ge));(0,he.reportMissingProp)(R,ge);pe.else()}}function loopAllRequired(){pe.forOf("prop",me,(Ae=>{R.setParams({missingProperty:Ae});pe.if((0,he.noPropertyInData)(pe,ve,Ae,Ce.ownProperties),(()=>R.error()))}))}function loopUntilMissing(Ae,ye){R.setParams({missingProperty:Ae});pe.forOf(Ae,me,(()=>{pe.assign(ye,(0,he.propertyInData)(pe,ve,Ae,Ce.ownProperties));pe.if((0,ge.not)(ye),(()=>{R.error();pe.break()}))}),ge.nil)}}};pe["default"]=ve},29351:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(7725);const ge=Ae(19179);const ye=Ae(3439);const me=Ae(63809);const ve={message:({params:{i:R,j:pe}})=>(0,ge.str)`must NOT have duplicate items (items ## ${pe} and ${R} are identical)`,params:({params:{i:R,j:pe}})=>(0,ge._)`{i: ${R}, j: ${pe}}`};const be={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:ve,code(R){const{gen:pe,data:Ae,$data:ve,schema:be,parentSchema:Ee,schemaCode:Ce,it:we}=R;if(!ve&&!be)return;const _e=pe.let("valid");const Ie=Ee.items?(0,he.getSchemaTypes)(Ee.items):[];R.block$data(_e,validateUniqueItems,(0,ge._)`${Ce} === false`);R.ok(_e);function validateUniqueItems(){const he=pe.let("i",(0,ge._)`${Ae}.length`);const ye=pe.let("j");R.setParams({i:he,j:ye});pe.assign(_e,true);pe.if((0,ge._)`${he} > 1`,(()=>(canOptimize()?loopN:loopN2)(he,ye)))}function canOptimize(){return Ie.length>0&&!Ie.some((R=>R==="object"||R==="array"))}function loopN(ye,me){const ve=pe.name("item");const be=(0,he.checkDataTypes)(Ie,ve,we.opts.strictNumbers,he.DataType.Wrong);const Ee=pe.const("indices",(0,ge._)`{}`);pe.for((0,ge._)`;${ye}--;`,(()=>{pe.let(ve,(0,ge._)`${Ae}[${ye}]`);pe.if(be,(0,ge._)`continue`);if(Ie.length>1)pe.if((0,ge._)`typeof ${ve} == "string"`,(0,ge._)`${ve} += "_"`);pe.if((0,ge._)`typeof ${Ee}[${ve}] == "number"`,(()=>{pe.assign(me,(0,ge._)`${Ee}[${ve}]`);R.error();pe.assign(_e,false).break()})).code((0,ge._)`${Ee}[${ve}] = ${ye}`)}))}function loopN2(he,ve){const be=(0,ye.useFunc)(pe,me.default);const Ee=pe.name("outer");pe.label(Ee).for((0,ge._)`;${he}--;`,(()=>pe.for((0,ge._)`${ve} = ${he}; ${ve}--;`,(()=>pe.if((0,ge._)`${be}(${Ae}[${he}], ${Ae}[${ve}])`,(()=>{R.error();pe.assign(_e,false).break(Ee)}))))))}}};pe["default"]=be},3702:(R,pe,Ae)=>{"use strict"; + deps: ${Ae}}`};const me={keyword:"dependencies",type:"object",schemaType:"object",error:pe.error,code(R){const[pe,Ae]=splitDependencies(R);validatePropertyDeps(R,pe);validateSchemaDeps(R,Ae)}};function splitDependencies({schema:R}){const pe={};const Ae={};for(const he in R){if(he==="__proto__")continue;const ge=Array.isArray(R[he])?pe:Ae;ge[he]=R[he]}return[pe,Ae]}function validatePropertyDeps(R,pe=R.schema){const{gen:Ae,data:ge,it:me}=R;if(Object.keys(pe).length===0)return;const ve=Ae.let("missing");for(const be in pe){const Ee=pe[be];if(Ee.length===0)continue;const we=(0,ye.propertyInData)(Ae,ge,be,me.opts.ownProperties);R.setParams({property:be,depsCount:Ee.length,deps:Ee.join(", ")});if(me.allErrors){Ae.if(we,(()=>{for(const pe of Ee){(0,ye.checkReportMissingProp)(R,pe)}}))}else{Ae.if((0,he._)`${we} && (${(0,ye.checkMissingProp)(R,Ee,ve)})`);(0,ye.reportMissingProp)(R,ve);Ae.else()}}}pe.validatePropertyDeps=validatePropertyDeps;function validateSchemaDeps(R,pe=R.schema){const{gen:Ae,data:he,keyword:me,it:ve}=R;const be=Ae.name("valid");for(const Ee in pe){if((0,ge.alwaysValidSchema)(ve,pe[Ee]))continue;Ae.if((0,ye.propertyInData)(Ae,he,Ee,ve.opts.ownProperties),(()=>{const pe=R.subschema({keyword:me,schemaProp:Ee},be);R.mergeValidEvaluated(pe,be)}),(()=>Ae.var(be,true)));R.ok(be)}}pe.validateSchemaDeps=validateSchemaDeps;pe["default"]=me},86802:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(34611);const ge={keyword:"dependentSchemas",type:"object",schemaType:"object",code:R=>(0,he.validateSchemaDeps)(R)};pe["default"]=ge},57701:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye={message:({params:R})=>(0,he.str)`must match "${R.ifClause}" schema`,params:({params:R})=>(0,he._)`{failingKeyword: ${R.ifClause}}`};const me={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:ye,code(R){const{gen:pe,parentSchema:Ae,it:ye}=R;if(Ae.then===undefined&&Ae.else===undefined){(0,ge.checkStrictMode)(ye,'"if" without "then" and "else" is ignored')}const me=hasSchema(ye,"then");const ve=hasSchema(ye,"else");if(!me&&!ve)return;const be=pe.let("valid",true);const Ee=pe.name("_valid");validateIf();R.reset();if(me&&ve){const Ae=pe.let("ifClause");R.setParams({ifClause:Ae});pe.if(Ee,validateClause("then",Ae),validateClause("else",Ae))}else if(me){pe.if(Ee,validateClause("then"))}else{pe.if((0,he.not)(Ee),validateClause("else"))}R.pass(be,(()=>R.error(true)));function validateIf(){const pe=R.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},Ee);R.mergeEvaluated(pe)}function validateClause(Ae,ge){return()=>{const ye=R.subschema({keyword:Ae},Ee);pe.assign(be,Ee);R.mergeValidEvaluated(ye,be);if(ge)pe.assign(ge,(0,he._)`${Ae}`);else R.setParams({ifClause:Ae})}}}};function hasSchema(R,pe){const Ae=R.schema[pe];return Ae!==undefined&&!(0,ge.alwaysValidSchema)(R,Ae)}pe["default"]=me},53048:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(24720);const ge=Ae(59498);const ye=Ae(98008);const me=Ae(59084);const ve=Ae(99535);const be=Ae(34611);const Ee=Ae(52554);const we=Ae(43481);const Ce=Ae(77666);const _e=Ae(95157);const Ie=Ae(38720);const Se=Ae(38168);const Be=Ae(6434);const ke=Ae(78406);const Oe=Ae(57701);const Re=Ae(37680);function getApplicator(R=false){const pe=[Ie.default,Se.default,Be.default,ke.default,Oe.default,Re.default,Ee.default,we.default,be.default,Ce.default,_e.default];if(R)pe.push(ge.default,me.default);else pe.push(he.default,ye.default);pe.push(ve.default);return pe}pe["default"]=getApplicator},98008:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.validateTuple=void 0;const he=Ae(19179);const ge=Ae(3439);const ye=Ae(64205);const me={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(R){const{schema:pe,it:Ae}=R;if(Array.isArray(pe))return validateTuple(R,"additionalItems",pe);Ae.items=true;if((0,ge.alwaysValidSchema)(Ae,pe))return;R.ok((0,ye.validateArray)(R))}};function validateTuple(R,pe,Ae=R.schema){const{gen:ye,parentSchema:me,data:ve,keyword:be,it:Ee}=R;checkStrictTuple(me);if(Ee.opts.unevaluated&&Ae.length&&Ee.items!==true){Ee.items=ge.mergeEvaluated.items(ye,Ae.length,Ee.items)}const we=ye.name("valid");const Ce=ye.const("len",(0,he._)`${ve}.length`);Ae.forEach(((pe,Ae)=>{if((0,ge.alwaysValidSchema)(Ee,pe))return;ye.if((0,he._)`${Ce} > ${Ae}`,(()=>R.subschema({keyword:be,schemaProp:Ae,dataProp:Ae},we)));R.ok(we)}));function checkStrictTuple(R){const{opts:he,errSchemaPath:ye}=Ee;const me=Ae.length;const ve=me===R.minItems&&(me===R.maxItems||R[pe]===false);if(he.strictTuples&&!ve){const R=`"${be}" is ${me}-tuple, but minItems or maxItems/${pe} are not specified or different at path "${ye}"`;(0,ge.checkStrictMode)(Ee,R,he.strictTuples)}}}pe.validateTuple=validateTuple;pe["default"]=me},59084:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye=Ae(64205);const me=Ae(24720);const ve={message:({params:{len:R}})=>(0,he.str)`must NOT have more than ${R} items`,params:({params:{len:R}})=>(0,he._)`{limit: ${R}}`};const be={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:ve,code(R){const{schema:pe,parentSchema:Ae,it:he}=R;const{prefixItems:ve}=Ae;he.items=true;if((0,ge.alwaysValidSchema)(he,pe))return;if(ve)(0,me.validateAdditionalItems)(R,ve);else R.ok((0,ye.validateArray)(R))}};pe["default"]=be},38720:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(3439);const ge={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(R){const{gen:pe,schema:Ae,it:ge}=R;if((0,he.alwaysValidSchema)(ge,Ae)){R.fail();return}const ye=pe.name("valid");R.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},ye);R.failResult(ye,(()=>R.reset()),(()=>R.error()))},error:{message:"must NOT be valid"}};pe["default"]=ge},6434:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye={message:"must match exactly one schema in oneOf",params:({params:R})=>(0,he._)`{passingSchemas: ${R.passing}}`};const me={keyword:"oneOf",schemaType:"array",trackErrors:true,error:ye,code(R){const{gen:pe,schema:Ae,parentSchema:ye,it:me}=R;if(!Array.isArray(Ae))throw new Error("ajv implementation error");if(me.opts.discriminator&&ye.discriminator)return;const ve=Ae;const be=pe.let("valid",false);const Ee=pe.let("passing",null);const we=pe.name("_valid");R.setParams({passing:Ee});pe.block(validateOneOf);R.result(be,(()=>R.reset()),(()=>R.error(true)));function validateOneOf(){ve.forEach(((Ae,ye)=>{let ve;if((0,ge.alwaysValidSchema)(me,Ae)){pe.var(we,true)}else{ve=R.subschema({keyword:"oneOf",schemaProp:ye,compositeRule:true},we)}if(ye>0){pe.if((0,he._)`${we} && ${be}`).assign(be,false).assign(Ee,(0,he._)`[${Ee}, ${ye}]`).else()}pe.if(we,(()=>{pe.assign(be,true);pe.assign(Ee,ye);if(ve)R.mergeEvaluated(ve,he.Name)}))}))}}};pe["default"]=me},95157:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64205);const ge=Ae(19179);const ye=Ae(3439);const me=Ae(3439);const ve={keyword:"patternProperties",type:"object",schemaType:"object",code(R){const{gen:pe,schema:Ae,data:ve,parentSchema:be,it:Ee}=R;const{opts:we}=Ee;const Ce=(0,he.allSchemaProperties)(Ae);const _e=Ce.filter((R=>(0,ye.alwaysValidSchema)(Ee,Ae[R])));if(Ce.length===0||_e.length===Ce.length&&(!Ee.opts.unevaluated||Ee.props===true)){return}const Ie=we.strictSchema&&!we.allowMatchingProperties&&be.properties;const Se=pe.name("valid");if(Ee.props!==true&&!(Ee.props instanceof ge.Name)){Ee.props=(0,me.evaluatedPropsToName)(pe,Ee.props)}const{props:Be}=Ee;validatePatternProperties();function validatePatternProperties(){for(const R of Ce){if(Ie)checkMatchingProperties(R);if(Ee.allErrors){validateProperties(R)}else{pe.var(Se,true);validateProperties(R);pe.if(Se)}}}function checkMatchingProperties(R){for(const pe in Ie){if(new RegExp(R).test(pe)){(0,ye.checkStrictMode)(Ee,`property ${pe} matches pattern ${R} (use allowMatchingProperties)`)}}}function validateProperties(Ae){pe.forIn("key",ve,(ye=>{pe.if((0,ge._)`${(0,he.usePattern)(R,Ae)}.test(${ye})`,(()=>{const he=_e.includes(Ae);if(!he){R.subschema({keyword:"patternProperties",schemaProp:Ae,dataProp:ye,dataPropType:me.Type.Str},Se)}if(Ee.opts.unevaluated&&Be!==true){pe.assign((0,ge._)`${Be}[${ye}]`,true)}else if(!he&&!Ee.allErrors){pe.if((0,ge.not)(Se),(()=>pe.break()))}}))}))}}};pe["default"]=ve},59498:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(98008);const ge={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:R=>(0,he.validateTuple)(R,"items")};pe["default"]=ge},77666:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(18955);const ge=Ae(64205);const ye=Ae(3439);const me=Ae(43481);const ve={keyword:"properties",type:"object",schemaType:"object",code(R){const{gen:pe,schema:Ae,parentSchema:ve,data:be,it:Ee}=R;if(Ee.opts.removeAdditional==="all"&&ve.additionalProperties===undefined){me.default.code(new he.KeywordCxt(Ee,me.default,"additionalProperties"))}const we=(0,ge.allSchemaProperties)(Ae);for(const R of we){Ee.definedProperties.add(R)}if(Ee.opts.unevaluated&&we.length&&Ee.props!==true){Ee.props=ye.mergeEvaluated.props(pe,(0,ye.toHash)(we),Ee.props)}const Ce=we.filter((R=>!(0,ye.alwaysValidSchema)(Ee,Ae[R])));if(Ce.length===0)return;const _e=pe.name("valid");for(const Ae of Ce){if(hasDefault(Ae)){applyPropertySchema(Ae)}else{pe.if((0,ge.propertyInData)(pe,be,Ae,Ee.opts.ownProperties));applyPropertySchema(Ae);if(!Ee.allErrors)pe.else().var(_e,true);pe.endIf()}R.it.definedProperties.add(Ae);R.ok(_e)}function hasDefault(R){return Ee.opts.useDefaults&&!Ee.compositeRule&&Ae[R].default!==undefined}function applyPropertySchema(pe){R.subschema({keyword:"properties",schemaProp:pe,dataProp:pe},_e)}}};pe["default"]=ve},52554:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye={message:"property name must be valid",params:({params:R})=>(0,he._)`{propertyName: ${R.propertyName}}`};const me={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ye,code(R){const{gen:pe,schema:Ae,data:ye,it:me}=R;if((0,ge.alwaysValidSchema)(me,Ae))return;const ve=pe.name("valid");pe.forIn("key",ye,(Ae=>{R.setParams({propertyName:Ae});R.subschema({keyword:"propertyNames",data:Ae,dataTypes:["string"],propertyName:Ae,compositeRule:true},ve);pe.if((0,he.not)(ve),(()=>{R.error(true);if(!me.allErrors)pe.break()}))}));R.ok(ve)}};pe["default"]=me},37680:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(3439);const ge={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:R,parentSchema:pe,it:Ae}){if(pe.if===undefined)(0,he.checkStrictMode)(Ae,`"${R}" without "if" is ignored`)}};pe["default"]=ge},64205:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.validateUnion=pe.validateArray=pe.usePattern=pe.callValidateCode=pe.schemaProperties=pe.allSchemaProperties=pe.noPropertyInData=pe.propertyInData=pe.isOwnProperty=pe.hasPropFunc=pe.reportMissingProp=pe.checkMissingProp=pe.checkReportMissingProp=void 0;const he=Ae(19179);const ge=Ae(3439);const ye=Ae(10050);const me=Ae(3439);function checkReportMissingProp(R,pe){const{gen:Ae,data:ge,it:ye}=R;Ae.if(noPropertyInData(Ae,ge,pe,ye.opts.ownProperties),(()=>{R.setParams({missingProperty:(0,he._)`${pe}`},true);R.error()}))}pe.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen:R,data:pe,it:{opts:Ae}},ge,ye){return(0,he.or)(...ge.map((ge=>(0,he.and)(noPropertyInData(R,pe,ge,Ae.ownProperties),(0,he._)`${ye} = ${ge}`))))}pe.checkMissingProp=checkMissingProp;function reportMissingProp(R,pe){R.setParams({missingProperty:pe},true);R.error()}pe.reportMissingProp=reportMissingProp;function hasPropFunc(R){return R.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,he._)`Object.prototype.hasOwnProperty`})}pe.hasPropFunc=hasPropFunc;function isOwnProperty(R,pe,Ae){return(0,he._)`${hasPropFunc(R)}.call(${pe}, ${Ae})`}pe.isOwnProperty=isOwnProperty;function propertyInData(R,pe,Ae,ge){const ye=(0,he._)`${pe}${(0,he.getProperty)(Ae)} !== undefined`;return ge?(0,he._)`${ye} && ${isOwnProperty(R,pe,Ae)}`:ye}pe.propertyInData=propertyInData;function noPropertyInData(R,pe,Ae,ge){const ye=(0,he._)`${pe}${(0,he.getProperty)(Ae)} === undefined`;return ge?(0,he.or)(ye,(0,he.not)(isOwnProperty(R,pe,Ae))):ye}pe.noPropertyInData=noPropertyInData;function allSchemaProperties(R){return R?Object.keys(R).filter((R=>R!=="__proto__")):[]}pe.allSchemaProperties=allSchemaProperties;function schemaProperties(R,pe){return allSchemaProperties(pe).filter((Ae=>!(0,ge.alwaysValidSchema)(R,pe[Ae])))}pe.schemaProperties=schemaProperties;function callValidateCode({schemaCode:R,data:pe,it:{gen:Ae,topSchemaRef:ge,schemaPath:me,errorPath:ve},it:be},Ee,we,Ce){const _e=Ce?(0,he._)`${R}, ${pe}, ${ge}${me}`:pe;const Ie=[[ye.default.instancePath,(0,he.strConcat)(ye.default.instancePath,ve)],[ye.default.parentData,be.parentData],[ye.default.parentDataProperty,be.parentDataProperty],[ye.default.rootData,ye.default.rootData]];if(be.opts.dynamicRef)Ie.push([ye.default.dynamicAnchors,ye.default.dynamicAnchors]);const Se=(0,he._)`${_e}, ${Ae.object(...Ie)}`;return we!==he.nil?(0,he._)`${Ee}.call(${we}, ${Se})`:(0,he._)`${Ee}(${Se})`}pe.callValidateCode=callValidateCode;const ve=(0,he._)`new RegExp`;function usePattern({gen:R,it:{opts:pe}},Ae){const ge=pe.unicodeRegExp?"u":"";const{regExp:ye}=pe.code;const be=ye(Ae,ge);return R.scopeValue("pattern",{key:be.toString(),ref:be,code:(0,he._)`${ye.code==="new RegExp"?ve:(0,me.useFunc)(R,ye)}(${Ae}, ${ge})`})}pe.usePattern=usePattern;function validateArray(R){const{gen:pe,data:Ae,keyword:ye,it:me}=R;const ve=pe.name("valid");if(me.allErrors){const R=pe.let("valid",true);validateItems((()=>pe.assign(R,false)));return R}pe.var(ve,true);validateItems((()=>pe.break()));return ve;function validateItems(me){const be=pe.const("len",(0,he._)`${Ae}.length`);pe.forRange("i",0,be,(Ae=>{R.subschema({keyword:ye,dataProp:Ae,dataPropType:ge.Type.Num},ve);pe.if((0,he.not)(ve),me)}))}}pe.validateArray=validateArray;function validateUnion(R){const{gen:pe,schema:Ae,keyword:ye,it:me}=R;if(!Array.isArray(Ae))throw new Error("ajv implementation error");const ve=Ae.some((R=>(0,ge.alwaysValidSchema)(me,R)));if(ve&&!me.opts.unevaluated)return;const be=pe.let("valid",false);const Ee=pe.name("_valid");pe.block((()=>Ae.forEach(((Ae,ge)=>{const me=R.subschema({keyword:ye,schemaProp:ge,compositeRule:true},Ee);pe.assign(be,(0,he._)`${be} || ${Ee}`);const ve=R.mergeValidEvaluated(me,Ee);if(!ve)pe.if((0,he.not)(be))}))));R.result(be,(()=>R.reset()),(()=>R.error(true)))}pe.validateUnion=validateUnion},21674:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};pe["default"]=Ae},33707:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(21674);const ge=Ae(16532);const ye=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",he.default,ge.default];pe["default"]=ye},16532:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.callRef=pe.getValidate=void 0;const he=Ae(18190);const ge=Ae(64205);const ye=Ae(19179);const me=Ae(10050);const ve=Ae(60813);const be=Ae(3439);const Ee={keyword:"$ref",schemaType:"string",code(R){const{gen:pe,schema:Ae,it:ge}=R;const{baseId:me,schemaEnv:be,validateName:Ee,opts:we,self:Ce}=ge;const{root:_e}=be;if((Ae==="#"||Ae==="#/")&&me===_e.baseId)return callRootRef();const Ie=ve.resolveRef.call(Ce,_e,me,Ae);if(Ie===undefined)throw new he.default(ge.opts.uriResolver,me,Ae);if(Ie instanceof ve.SchemaEnv)return callValidate(Ie);return inlineRefSchema(Ie);function callRootRef(){if(be===_e)return callRef(R,Ee,be,be.$async);const Ae=pe.scopeValue("root",{ref:_e});return callRef(R,(0,ye._)`${Ae}.validate`,_e,_e.$async)}function callValidate(pe){const Ae=getValidate(R,pe);callRef(R,Ae,pe,pe.$async)}function inlineRefSchema(he){const ge=pe.scopeValue("schema",we.code.source===true?{ref:he,code:(0,ye.stringify)(he)}:{ref:he});const me=pe.name("valid");const ve=R.subschema({schema:he,dataTypes:[],schemaPath:ye.nil,topSchemaRef:ge,errSchemaPath:Ae},me);R.mergeEvaluated(ve);R.ok(me)}}};function getValidate(R,pe){const{gen:Ae}=R;return pe.validate?Ae.scopeValue("validate",{ref:pe.validate}):(0,ye._)`${Ae.scopeValue("wrapper",{ref:pe})}.validate`}pe.getValidate=getValidate;function callRef(R,pe,Ae,he){const{gen:ve,it:Ee}=R;const{allErrors:we,schemaEnv:Ce,opts:_e}=Ee;const Ie=_e.passContext?me.default.this:ye.nil;if(he)callAsyncRef();else callSyncRef();function callAsyncRef(){if(!Ce.$async)throw new Error("async schema referenced by sync schema");const Ae=ve.let("valid");ve.try((()=>{ve.code((0,ye._)`await ${(0,ge.callValidateCode)(R,pe,Ie)}`);addEvaluatedFrom(pe);if(!we)ve.assign(Ae,true)}),(R=>{ve.if((0,ye._)`!(${R} instanceof ${Ee.ValidationError})`,(()=>ve.throw(R)));addErrorsFrom(R);if(!we)ve.assign(Ae,false)}));R.ok(Ae)}function callSyncRef(){R.result((0,ge.callValidateCode)(R,pe,Ie),(()=>addEvaluatedFrom(pe)),(()=>addErrorsFrom(pe)))}function addErrorsFrom(R){const pe=(0,ye._)`${R}.errors`;ve.assign(me.default.vErrors,(0,ye._)`${me.default.vErrors} === null ? ${pe} : ${me.default.vErrors}.concat(${pe})`);ve.assign(me.default.errors,(0,ye._)`${me.default.vErrors}.length`)}function addEvaluatedFrom(R){var pe;if(!Ee.opts.unevaluated)return;const he=(pe=Ae===null||Ae===void 0?void 0:Ae.validate)===null||pe===void 0?void 0:pe.evaluated;if(Ee.props!==true){if(he&&!he.dynamicProps){if(he.props!==undefined){Ee.props=be.mergeEvaluated.props(ve,he.props,Ee.props)}}else{const pe=ve.var("props",(0,ye._)`${R}.evaluated.props`);Ee.props=be.mergeEvaluated.props(ve,pe,Ee.props,ye.Name)}}if(Ee.items!==true){if(he&&!he.dynamicItems){if(he.items!==undefined){Ee.items=be.mergeEvaluated.items(ve,he.items,Ee.items)}}else{const pe=ve.var("items",(0,ye._)`${R}.evaluated.items`);Ee.items=be.mergeEvaluated.items(ve,pe,Ee.items,ye.Name)}}}}pe.callRef=callRef;pe["default"]=Ee},14025:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(88374);const ye=Ae(60813);const me=Ae(18190);const ve=Ae(3439);const be={message:({params:{discrError:R,tagName:pe}})=>R===ge.DiscrError.Tag?`tag "${pe}" must be string`:`value of tag "${pe}" must be in oneOf`,params:({params:{discrError:R,tag:pe,tagName:Ae}})=>(0,he._)`{error: ${R}, tag: ${Ae}, tagValue: ${pe}}`};const Ee={keyword:"discriminator",type:"object",schemaType:"object",error:be,code(R){const{gen:pe,data:Ae,schema:be,parentSchema:Ee,it:we}=R;const{oneOf:Ce}=Ee;if(!we.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const _e=be.propertyName;if(typeof _e!="string")throw new Error("discriminator: requires propertyName");if(be.mapping)throw new Error("discriminator: mapping is not supported");if(!Ce)throw new Error("discriminator: requires oneOf keyword");const Ie=pe.let("valid",false);const Se=pe.const("tag",(0,he._)`${Ae}${(0,he.getProperty)(_e)}`);pe.if((0,he._)`typeof ${Se} == "string"`,(()=>validateMapping()),(()=>R.error(false,{discrError:ge.DiscrError.Tag,tag:Se,tagName:_e})));R.ok(Ie);function validateMapping(){const Ae=getMapping();pe.if(false);for(const R in Ae){pe.elseIf((0,he._)`${Se} === ${R}`);pe.assign(Ie,applyTagSchema(Ae[R]))}pe.else();R.error(false,{discrError:ge.DiscrError.Mapping,tag:Se,tagName:_e});pe.endIf()}function applyTagSchema(Ae){const ge=pe.name("valid");const ye=R.subschema({keyword:"oneOf",schemaProp:Ae},ge);R.mergeEvaluated(ye,he.Name);return ge}function getMapping(){var R;const pe={};const Ae=hasRequired(Ee);let he=true;for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.DiscrError=void 0;var Ae;(function(R){R["Tag"]="tag";R["Mapping"]="mapping"})(Ae||(pe.DiscrError=Ae={}))},96098:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(33707);const ge=Ae(39805);const ye=Ae(53048);const me=Ae(79774);const ve=Ae(96405);const be=Ae(53357);const Ee=Ae(54966);const we=Ae(35799);const Ce=[me.default,he.default,ge.default,(0,ye.default)(true),Ee.default,we.metadataVocabulary,we.contentVocabulary,ve.default,be.default];pe["default"]=Ce},50691:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(33707);const ge=Ae(39805);const ye=Ae(53048);const me=Ae(54966);const ve=Ae(35799);const be=[he.default,ge.default,(0,ye.default)(),me.default,ve.metadataVocabulary,ve.contentVocabulary];pe["default"]=be},92850:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.dynamicAnchor=void 0;const he=Ae(19179);const ge=Ae(10050);const ye=Ae(60813);const me=Ae(16532);const ve={keyword:"$dynamicAnchor",schemaType:"string",code:R=>dynamicAnchor(R,R.schema)};function dynamicAnchor(R,pe){const{gen:Ae,it:ye}=R;ye.schemaEnv.root.dynamicAnchors[pe]=true;const me=(0,he._)`${ge.default.dynamicAnchors}${(0,he.getProperty)(pe)}`;const ve=ye.errSchemaPath==="#"?ye.validateName:_getValidate(R);Ae.if((0,he._)`!${me}`,(()=>Ae.assign(me,ve)))}pe.dynamicAnchor=dynamicAnchor;function _getValidate(R){const{schemaEnv:pe,schema:Ae,self:he}=R.it;const{root:ge,baseId:ve,localRefs:be,meta:Ee}=pe.root;const{schemaId:we}=he.opts;const Ce=new ye.SchemaEnv({schema:Ae,schemaId:we,root:ge,baseId:ve,localRefs:be,meta:Ee});ye.compileSchema.call(he,Ce);return(0,me.getValidate)(R,Ce)}pe["default"]=ve},54217:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.dynamicRef=void 0;const he=Ae(19179);const ge=Ae(10050);const ye=Ae(16532);const me={keyword:"$dynamicRef",schemaType:"string",code:R=>dynamicRef(R,R.schema)};function dynamicRef(R,pe){const{gen:Ae,keyword:me,it:ve}=R;if(pe[0]!=="#")throw new Error(`"${me}" only supports hash fragment reference`);const be=pe.slice(1);if(ve.allErrors){_dynamicRef()}else{const pe=Ae.let("valid",false);_dynamicRef(pe);R.ok(pe)}function _dynamicRef(R){if(ve.schemaEnv.root.dynamicAnchors[be]){const pe=Ae.let("_v",(0,he._)`${ge.default.dynamicAnchors}${(0,he.getProperty)(be)}`);Ae.if(pe,_callRef(pe,R),_callRef(ve.validateName,R))}else{_callRef(ve.validateName,R)()}}function _callRef(pe,he){return he?()=>Ae.block((()=>{(0,ye.callRef)(R,pe);Ae.let(he,true)})):()=>(0,ye.callRef)(R,pe)}}pe.dynamicRef=dynamicRef;pe["default"]=me},79774:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(92850);const ge=Ae(54217);const ye=Ae(48334);const me=Ae(8360);const ve=[he.default,ge.default,ye.default,me.default];pe["default"]=ve},48334:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(92850);const ge=Ae(3439);const ye={keyword:"$recursiveAnchor",schemaType:"boolean",code(R){if(R.schema)(0,he.dynamicAnchor)(R,"");else(0,ge.checkStrictMode)(R.it,"$recursiveAnchor: false is ignored")}};pe["default"]=ye},8360:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(54217);const ge={keyword:"$recursiveRef",schemaType:"string",code:R=>(0,he.dynamicRef)(R,R.schema)};pe["default"]=ge},63691:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge={message:({schemaCode:R})=>(0,he.str)`must match format "${R}"`,params:({schemaCode:R})=>(0,he._)`{format: ${R}}`};const ye={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:ge,code(R,pe){const{gen:Ae,data:ge,$data:ye,schema:me,schemaCode:ve,it:be}=R;const{opts:Ee,errSchemaPath:we,schemaEnv:Ce,self:_e}=be;if(!Ee.validateFormats)return;if(ye)validate$DataFormat();else validateFormat();function validate$DataFormat(){const ye=Ae.scopeValue("formats",{ref:_e.formats,code:Ee.code.formats});const me=Ae.const("fDef",(0,he._)`${ye}[${ve}]`);const be=Ae.let("fType");const we=Ae.let("format");Ae.if((0,he._)`typeof ${me} == "object" && !(${me} instanceof RegExp)`,(()=>Ae.assign(be,(0,he._)`${me}.type || "string"`).assign(we,(0,he._)`${me}.validate`)),(()=>Ae.assign(be,(0,he._)`"string"`).assign(we,me)));R.fail$data((0,he.or)(unknownFmt(),invalidFmt()));function unknownFmt(){if(Ee.strictSchema===false)return he.nil;return(0,he._)`${ve} && !${we}`}function invalidFmt(){const R=Ce.$async?(0,he._)`(${me}.async ? await ${we}(${ge}) : ${we}(${ge}))`:(0,he._)`${we}(${ge})`;const Ae=(0,he._)`(typeof ${we} == "function" ? ${R} : ${we}.test(${ge}))`;return(0,he._)`${we} && ${we} !== true && ${be} === ${pe} && !${Ae}`}}function validateFormat(){const ye=_e.formats[me];if(!ye){unknownFormat();return}if(ye===true)return;const[ve,be,Ie]=getFormat(ye);if(ve===pe)R.pass(validCondition());function unknownFormat(){if(Ee.strictSchema===false){_e.logger.warn(unknownMsg());return}throw new Error(unknownMsg());function unknownMsg(){return`unknown format "${me}" ignored in schema at path "${we}"`}}function getFormat(R){const pe=R instanceof RegExp?(0,he.regexpCode)(R):Ee.code.formats?(0,he._)`${Ee.code.formats}${(0,he.getProperty)(me)}`:undefined;const ge=Ae.scopeValue("formats",{key:me,ref:R,code:pe});if(typeof R=="object"&&!(R instanceof RegExp)){return[R.type||"string",R.validate,(0,he._)`${ge}.validate`]}return["string",R,ge]}function validCondition(){if(typeof ye=="object"&&!(ye instanceof RegExp)&&ye.async){if(!Ce.$async)throw new Error("async format in sync schema");return(0,he._)`await ${Ie}(${ge})`}return typeof be=="function"?(0,he._)`${Ie}(${ge})`:(0,he._)`${Ie}.test(${ge})`}}}};pe["default"]=ye},54966:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(63691);const ge=[he.default];pe["default"]=ge},35799:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.contentVocabulary=pe.metadataVocabulary=void 0;pe.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];pe.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},96405:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(71973);const ge=Ae(86802);const ye=Ae(2473);const me=[he.default,ge.default,ye.default];pe["default"]=me},53357:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(26217);const ge=Ae(47186);const ye=[he.default,ge.default];pe["default"]=ye},47186:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye={message:({params:{len:R}})=>(0,he.str)`must NOT have more than ${R} items`,params:({params:{len:R}})=>(0,he._)`{limit: ${R}}`};const me={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:ye,code(R){const{gen:pe,schema:Ae,data:ye,it:me}=R;const ve=me.items||0;if(ve===true)return;const be=pe.const("len",(0,he._)`${ye}.length`);if(Ae===false){R.setParams({len:ve});R.fail((0,he._)`${be} > ${ve}`)}else if(typeof Ae=="object"&&!(0,ge.alwaysValidSchema)(me,Ae)){const Ae=pe.var("valid",(0,he._)`${be} <= ${ve}`);pe.if((0,he.not)(Ae),(()=>validateItems(Ae,ve)));R.ok(Ae)}me.items=true;function validateItems(Ae,ye){pe.forRange("i",ye,be,(ye=>{R.subschema({keyword:"unevaluatedItems",dataProp:ye,dataPropType:ge.Type.Num},Ae);if(!me.allErrors)pe.if((0,he.not)(Ae),(()=>pe.break()))}))}}};pe["default"]=me},26217:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye=Ae(10050);const me={message:"must NOT have unevaluated properties",params:({params:R})=>(0,he._)`{unevaluatedProperty: ${R.unevaluatedProperty}}`};const ve={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:true,error:me,code(R){const{gen:pe,schema:Ae,data:me,errsCount:ve,it:be}=R;if(!ve)throw new Error("ajv implementation error");const{allErrors:Ee,props:we}=be;if(we instanceof he.Name){pe.if((0,he._)`${we} !== true`,(()=>pe.forIn("key",me,(R=>pe.if(unevaluatedDynamic(we,R),(()=>unevaluatedPropCode(R)))))))}else if(we!==true){pe.forIn("key",me,(R=>we===undefined?unevaluatedPropCode(R):pe.if(unevaluatedStatic(we,R),(()=>unevaluatedPropCode(R)))))}be.props=true;R.ok((0,he._)`${ve} === ${ye.default.errors}`);function unevaluatedPropCode(ye){if(Ae===false){R.setParams({unevaluatedProperty:ye});R.error();if(!Ee)pe.break();return}if(!(0,ge.alwaysValidSchema)(be,Ae)){const Ae=pe.name("valid");R.subschema({keyword:"unevaluatedProperties",dataProp:ye,dataPropType:ge.Type.Str},Ae);if(!Ee)pe.if((0,he.not)(Ae),(()=>pe.break()))}}function unevaluatedDynamic(R,pe){return(0,he._)`!${R} || !${R}[${pe}]`}function unevaluatedStatic(R,pe){const Ae=[];for(const ge in R){if(R[ge]===true)Ae.push((0,he._)`${pe} !== ${ge}`)}return(0,he.and)(...Ae)}}};pe["default"]=ve},63694:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye=Ae(63809);const me={message:"must be equal to constant",params:({schemaCode:R})=>(0,he._)`{allowedValue: ${R}}`};const ve={keyword:"const",$data:true,error:me,code(R){const{gen:pe,data:Ae,$data:me,schemaCode:ve,schema:be}=R;if(me||be&&typeof be=="object"){R.fail$data((0,he._)`!${(0,ge.useFunc)(pe,ye.default)}(${Ae}, ${ve})`)}else{R.fail((0,he._)`${be} !== ${Ae}`)}}};pe["default"]=ve},71973:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(34611);const ge={keyword:"dependentRequired",type:"object",schemaType:"object",error:he.error,code:R=>(0,he.validatePropertyDeps)(R)};pe["default"]=ge},15529:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye=Ae(63809);const me={message:"must be equal to one of the allowed values",params:({schemaCode:R})=>(0,he._)`{allowedValues: ${R}}`};const ve={keyword:"enum",schemaType:"array",$data:true,error:me,code(R){const{gen:pe,data:Ae,$data:me,schema:ve,schemaCode:be,it:Ee}=R;if(!me&&ve.length===0)throw new Error("enum must have non-empty array");const we=ve.length>=Ee.opts.loopEnum;let Ce;const getEql=()=>Ce!==null&&Ce!==void 0?Ce:Ce=(0,ge.useFunc)(pe,ye.default);let _e;if(we||me){_e=pe.let("valid");R.block$data(_e,loopEnum)}else{if(!Array.isArray(ve))throw new Error("ajv implementation error");const R=pe.const("vSchema",be);_e=(0,he.or)(...ve.map(((pe,Ae)=>equalCode(R,Ae))))}R.pass(_e);function loopEnum(){pe.assign(_e,false);pe.forOf("v",be,(R=>pe.if((0,he._)`${getEql()}(${Ae}, ${R})`,(()=>pe.assign(_e,true).break()))))}function equalCode(R,pe){const ge=ve[pe];return typeof ge==="object"&&ge!==null?(0,he._)`${getEql()}(${Ae}, ${R}[${pe}])`:(0,he._)`${Ae} === ${ge}`}}};pe["default"]=ve},39805:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(30345);const ge=Ae(83201);const ye=Ae(97598);const me=Ae(94960);const ve=Ae(13470);const be=Ae(83602);const Ee=Ae(73924);const we=Ae(29351);const Ce=Ae(63694);const _e=Ae(15529);const Ie=[he.default,ge.default,ye.default,me.default,ve.default,be.default,Ee.default,we.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Ce.default,_e.default];pe["default"]=Ie},2473:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(3439);const ge={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:R,parentSchema:pe,it:Ae}){if(pe.contains===undefined){(0,he.checkStrictMode)(Ae,`"${R}" without "contains" is ignored`)}}};pe["default"]=ge},73924:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge={message({keyword:R,schemaCode:pe}){const Ae=R==="maxItems"?"more":"fewer";return(0,he.str)`must NOT have ${Ae} than ${pe} items`},params:({schemaCode:R})=>(0,he._)`{limit: ${R}}`};const ye={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:ge,code(R){const{keyword:pe,data:Ae,schemaCode:ge}=R;const ye=pe==="maxItems"?he.operators.GT:he.operators.LT;R.fail$data((0,he._)`${Ae}.length ${ye} ${ge}`)}};pe["default"]=ye},97598:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=Ae(3439);const ye=Ae(22470);const me={message({keyword:R,schemaCode:pe}){const Ae=R==="maxLength"?"more":"fewer";return(0,he.str)`must NOT have ${Ae} than ${pe} characters`},params:({schemaCode:R})=>(0,he._)`{limit: ${R}}`};const ve={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:me,code(R){const{keyword:pe,data:Ae,schemaCode:me,it:ve}=R;const be=pe==="maxLength"?he.operators.GT:he.operators.LT;const Ee=ve.opts.unicode===false?(0,he._)`${Ae}.length`:(0,he._)`${(0,ge.useFunc)(R.gen,ye.default)}(${Ae})`;R.fail$data((0,he._)`${Ee} ${be} ${me}`)}};pe["default"]=ve},30345:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge=he.operators;const ye={maximum:{okStr:"<=",ok:ge.LTE,fail:ge.GT},minimum:{okStr:">=",ok:ge.GTE,fail:ge.LT},exclusiveMaximum:{okStr:"<",ok:ge.LT,fail:ge.GTE},exclusiveMinimum:{okStr:">",ok:ge.GT,fail:ge.LTE}};const me={message:({keyword:R,schemaCode:pe})=>(0,he.str)`must be ${ye[R].okStr} ${pe}`,params:({keyword:R,schemaCode:pe})=>(0,he._)`{comparison: ${ye[R].okStr}, limit: ${pe}}`};const ve={keyword:Object.keys(ye),type:"number",schemaType:"number",$data:true,error:me,code(R){const{keyword:pe,data:Ae,schemaCode:ge}=R;R.fail$data((0,he._)`${Ae} ${ye[pe].fail} ${ge} || isNaN(${Ae})`)}};pe["default"]=ve},13470:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge={message({keyword:R,schemaCode:pe}){const Ae=R==="maxProperties"?"more":"fewer";return(0,he.str)`must NOT have ${Ae} than ${pe} properties`},params:({schemaCode:R})=>(0,he._)`{limit: ${R}}`};const ye={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:ge,code(R){const{keyword:pe,data:Ae,schemaCode:ge}=R;const ye=pe==="maxProperties"?he.operators.GT:he.operators.LT;R.fail$data((0,he._)`Object.keys(${Ae}).length ${ye} ${ge}`)}};pe["default"]=ye},83201:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(19179);const ge={message:({schemaCode:R})=>(0,he.str)`must be multiple of ${R}`,params:({schemaCode:R})=>(0,he._)`{multipleOf: ${R}}`};const ye={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:ge,code(R){const{gen:pe,data:Ae,schemaCode:ge,it:ye}=R;const me=ye.opts.multipleOfPrecision;const ve=pe.let("res");const be=me?(0,he._)`Math.abs(Math.round(${ve}) - ${ve}) > 1e-${me}`:(0,he._)`${ve} !== parseInt(${ve})`;R.fail$data((0,he._)`(${ge} === 0 || (${ve} = ${Ae}/${ge}, ${be}))`)}};pe["default"]=ye},94960:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64205);const ge=Ae(19179);const ye={message:({schemaCode:R})=>(0,ge.str)`must match pattern "${R}"`,params:({schemaCode:R})=>(0,ge._)`{pattern: ${R}}`};const me={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:ye,code(R){const{data:pe,$data:Ae,schema:ye,schemaCode:me,it:ve}=R;const be=ve.opts.unicodeRegExp?"u":"";const Ee=Ae?(0,ge._)`(new RegExp(${me}, ${be}))`:(0,he.usePattern)(R,ye);R.fail$data((0,ge._)`!${Ee}.test(${pe})`)}};pe["default"]=me},83602:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64205);const ge=Ae(19179);const ye=Ae(3439);const me={message:({params:{missingProperty:R}})=>(0,ge.str)`must have required property '${R}'`,params:({params:{missingProperty:R}})=>(0,ge._)`{missingProperty: ${R}}`};const ve={keyword:"required",type:"object",schemaType:"array",$data:true,error:me,code(R){const{gen:pe,schema:Ae,schemaCode:me,data:ve,$data:be,it:Ee}=R;const{opts:we}=Ee;if(!be&&Ae.length===0)return;const Ce=Ae.length>=we.loopRequired;if(Ee.allErrors)allErrorsMode();else exitOnErrorMode();if(we.strictRequired){const pe=R.parentSchema.properties;const{definedProperties:he}=R.it;for(const R of Ae){if((pe===null||pe===void 0?void 0:pe[R])===undefined&&!he.has(R)){const pe=Ee.schemaEnv.baseId+Ee.errSchemaPath;const Ae=`required property "${R}" is not defined at "${pe}" (strictRequired)`;(0,ye.checkStrictMode)(Ee,Ae,Ee.opts.strictRequired)}}}function allErrorsMode(){if(Ce||be){R.block$data(ge.nil,loopAllRequired)}else{for(const pe of Ae){(0,he.checkReportMissingProp)(R,pe)}}}function exitOnErrorMode(){const ge=pe.let("missing");if(Ce||be){const Ae=pe.let("valid",true);R.block$data(Ae,(()=>loopUntilMissing(ge,Ae)));R.ok(Ae)}else{pe.if((0,he.checkMissingProp)(R,Ae,ge));(0,he.reportMissingProp)(R,ge);pe.else()}}function loopAllRequired(){pe.forOf("prop",me,(Ae=>{R.setParams({missingProperty:Ae});pe.if((0,he.noPropertyInData)(pe,ve,Ae,we.ownProperties),(()=>R.error()))}))}function loopUntilMissing(Ae,ye){R.setParams({missingProperty:Ae});pe.forOf(Ae,me,(()=>{pe.assign(ye,(0,he.propertyInData)(pe,ve,Ae,we.ownProperties));pe.if((0,ge.not)(ye),(()=>{R.error();pe.break()}))}),ge.nil)}}};pe["default"]=ve},29351:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(7725);const ge=Ae(19179);const ye=Ae(3439);const me=Ae(63809);const ve={message:({params:{i:R,j:pe}})=>(0,ge.str)`must NOT have duplicate items (items ## ${pe} and ${R} are identical)`,params:({params:{i:R,j:pe}})=>(0,ge._)`{i: ${R}, j: ${pe}}`};const be={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:ve,code(R){const{gen:pe,data:Ae,$data:ve,schema:be,parentSchema:Ee,schemaCode:we,it:Ce}=R;if(!ve&&!be)return;const _e=pe.let("valid");const Ie=Ee.items?(0,he.getSchemaTypes)(Ee.items):[];R.block$data(_e,validateUniqueItems,(0,ge._)`${we} === false`);R.ok(_e);function validateUniqueItems(){const he=pe.let("i",(0,ge._)`${Ae}.length`);const ye=pe.let("j");R.setParams({i:he,j:ye});pe.assign(_e,true);pe.if((0,ge._)`${he} > 1`,(()=>(canOptimize()?loopN:loopN2)(he,ye)))}function canOptimize(){return Ie.length>0&&!Ie.some((R=>R==="object"||R==="array"))}function loopN(ye,me){const ve=pe.name("item");const be=(0,he.checkDataTypes)(Ie,ve,Ce.opts.strictNumbers,he.DataType.Wrong);const Ee=pe.const("indices",(0,ge._)`{}`);pe.for((0,ge._)`;${ye}--;`,(()=>{pe.let(ve,(0,ge._)`${Ae}[${ye}]`);pe.if(be,(0,ge._)`continue`);if(Ie.length>1)pe.if((0,ge._)`typeof ${ve} == "string"`,(0,ge._)`${ve} += "_"`);pe.if((0,ge._)`typeof ${Ee}[${ve}] == "number"`,(()=>{pe.assign(me,(0,ge._)`${Ee}[${ve}]`);R.error();pe.assign(_e,false).break()})).code((0,ge._)`${Ee}[${ve}] = ${ye}`)}))}function loopN2(he,ve){const be=(0,ye.useFunc)(pe,me.default);const Ee=pe.name("outer");pe.label(Ee).for((0,ge._)`;${he}--;`,(()=>pe.for((0,ge._)`${ve} = ${he}; ${ve}--;`,(()=>pe.if((0,ge._)`${be}(${Ae}[${he}], ${Ae}[${ve}])`,(()=>{R.error();pe.assign(_e,false).break(Ee)}))))))}}};pe["default"]=be},3702:(R,pe,Ae)=>{"use strict"; /*! * Copyright (c) 2014, GMO GlobalSign * Copyright (c) 2015-2022, Peculiar Ventures @@ -68,13 +68,13 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - */Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(22420);var ge=Ae(65266);function _interopNamespace(R){if(R&&R.__esModule)return R;var pe=Object.create(null);if(R){Object.keys(R).forEach((function(Ae){if(Ae!=="default"){var he=Object.getOwnPropertyDescriptor(R,Ae);Object.defineProperty(pe,Ae,he.get?he:{enumerable:true,get:function(){return R[Ae]}})}}))}pe["default"]=R;return Object.freeze(pe)}var ye=_interopNamespace(he);var me=_interopNamespace(ge);function assertBigInt(){if(typeof BigInt==="undefined"){throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.")}}function concat(R){let pe=0;let Ae=0;for(let Ae=0;Ae=ge.length){this.error="End of input reached before message was fully decoded";return-1}if(R===Ae){Ae+=255;const R=new Uint8Array(Ae);for(let Ae=0;Ae8){this.error="Too big integer";return-1}if(ve+1>ge.length){this.error="End of input reached before message was fully decoded";return-1}const be=pe+1;const Ee=he.subarray(be,be+ve);if(Ee[ve-1]===0)this.warnings.push("Needlessly long encoded length");this.length=me.utilFromBase(Ee,8);if(this.longFormUsed&&this.length<=127)this.warnings.push("Unnecessary usage of long length form");this.blockLength=ve+1;return pe+this.blockLength}toBER(R=false){let pe;let Ae;if(this.length>127)this.longFormUsed=true;if(this.isIndefiniteForm){pe=new ArrayBuffer(1);if(R===false){Ae=new Uint8Array(pe);Ae[0]=128}return pe}if(this.longFormUsed){const he=me.utilToBase(this.length,8);if(he.byteLength>127){this.error="Too big length";return xe}pe=new ArrayBuffer(he.byteLength+1);if(R)return pe;const ge=new Uint8Array(he);Ae=new Uint8Array(pe);Ae[0]=he.byteLength|128;for(let R=0;R{Me.Primitive=je})();Primitive.NAME="PRIMITIVE";function localChangeType(R,pe){if(R instanceof pe){return R}const Ae=new pe;Ae.idBlock=R.idBlock;Ae.lenBlock=R.lenBlock;Ae.warnings=R.warnings;Ae.valueBeforeDecodeView=R.valueBeforeDecodeView;return Ae}function localFromBER(R,pe=0,Ae=R.length){const he=pe;let ge=new BaseBlock({},ValueBlock);const ye=new LocalBaseBlock;if(!checkBufferParams(ye,R,pe,Ae)){ge.error=ye.error;return{offset:-1,result:ge}}const me=R.subarray(pe,pe+Ae);if(!me.length){ge.error="Zero buffer length";return{offset:-1,result:ge}}let ve=ge.idBlock.fromBER(R,pe,Ae);if(ge.idBlock.warnings.length){ge.warnings.concat(ge.idBlock.warnings)}if(ve===-1){ge.error=ge.idBlock.error;return{offset:-1,result:ge}}pe=ve;Ae-=ge.idBlock.blockLength;ve=ge.lenBlock.fromBER(R,pe,Ae);if(ge.lenBlock.warnings.length){ge.warnings.concat(ge.lenBlock.warnings)}if(ve===-1){ge.error=ge.lenBlock.error;return{offset:-1,result:ge}}pe=ve;Ae-=ge.lenBlock.blockLength;if(!ge.idBlock.isConstructed&&ge.lenBlock.isIndefiniteForm){ge.error="Indefinite length form used for primitive encoding form";return{offset:-1,result:ge}}let be=BaseBlock;switch(ge.idBlock.tagClass){case 1:if(ge.idBlock.tagNumber>=37&&ge.idBlock.isHexOnly===false){ge.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard";return{offset:-1,result:ge}}switch(ge.idBlock.tagNumber){case 0:if(ge.idBlock.isConstructed&&ge.lenBlock.length>0){ge.error="Type [UNIVERSAL 0] is reserved";return{offset:-1,result:ge}}be=Me.EndOfContent;break;case 1:be=Me.Boolean;break;case 2:be=Me.Integer;break;case 3:be=Me.BitString;break;case 4:be=Me.OctetString;break;case 5:be=Me.Null;break;case 6:be=Me.ObjectIdentifier;break;case 10:be=Me.Enumerated;break;case 12:be=Me.Utf8String;break;case 13:be=Me.RelativeObjectIdentifier;break;case 14:be=Me.TIME;break;case 15:ge.error="[UNIVERSAL 15] is reserved by ASN.1 standard";return{offset:-1,result:ge};case 16:be=Me.Sequence;break;case 17:be=Me.Set;break;case 18:be=Me.NumericString;break;case 19:be=Me.PrintableString;break;case 20:be=Me.TeletexString;break;case 21:be=Me.VideotexString;break;case 22:be=Me.IA5String;break;case 23:be=Me.UTCTime;break;case 24:be=Me.GeneralizedTime;break;case 25:be=Me.GraphicString;break;case 26:be=Me.VisibleString;break;case 27:be=Me.GeneralString;break;case 28:be=Me.UniversalString;break;case 29:be=Me.CharacterString;break;case 30:be=Me.BmpString;break;case 31:be=Me.DATE;break;case 32:be=Me.TimeOfDay;break;case 33:be=Me.DateTime;break;case 34:be=Me.Duration;break;default:{const R=ge.idBlock.isConstructed?new Me.Constructed:new Me.Primitive;R.idBlock=ge.idBlock;R.lenBlock=ge.lenBlock;R.warnings=ge.warnings;ge=R}}break;case 2:case 3:case 4:default:{be=ge.idBlock.isConstructed?Me.Constructed:Me.Primitive}}ge=localChangeType(ge,be);ve=ge.fromBER(R,pe,ge.lenBlock.isIndefiniteForm?Ae:ge.lenBlock.length);ge.valueBeforeDecodeView=R.subarray(he,he+ge.blockLength);return{offset:ve,result:ge}}function fromBER(R){if(!R.byteLength){const R=new BaseBlock({},ValueBlock);R.error="Input buffer has zero length";return{offset:-1,result:R}}return localFromBER(ye.BufferSourceConverter.toUint8Array(R).slice(),0,R.byteLength)}function checkLen(R,pe){if(R){return 1}return pe}class LocalConstructedValueBlock extends ValueBlock{constructor({value:R=[],isIndefiniteForm:pe=false,...Ae}={}){super(Ae);this.value=R;this.isIndefiniteForm=pe}fromBER(R,pe,Ae){const he=ye.BufferSourceConverter.toUint8Array(R);if(!checkBufferParams(this,he,pe,Ae)){return-1}this.valueBeforeDecodeView=he.subarray(pe,pe+Ae);if(this.valueBeforeDecodeView.length===0){this.warnings.push("Zero buffer length");return pe}let ge=pe;while(checkLen(this.isIndefiniteForm,Ae)>0){const R=localFromBER(he,ge,Ae);if(R.offset===-1){this.error=R.result.error;this.warnings.concat(R.result.warnings);return-1}ge=R.offset;this.blockLength+=R.result.blockLength;Ae-=R.result.blockLength;this.value.push(R.result);if(this.isIndefiniteForm&&R.result.constructor.NAME===Te){break}}if(this.isIndefiniteForm){if(this.value[this.value.length-1].constructor.NAME===Te){this.value.pop()}else{this.warnings.push("No EndOfContent block encoded")}}return ge}toBER(R,pe){const Ae=pe||new ViewWriter;for(let pe=0;pe` ${R}`)).join("\n"))}const pe=this.idBlock.tagClass===3?`[${this.idBlock.tagNumber}]`:this.constructor.NAME;return R.length?`${pe} :\n${R.join("\n")}`:`${pe} :`}}Fe=Constructed;(()=>{Me.Constructed=Fe})();Constructed.NAME="CONSTRUCTED";class LocalEndOfContentValueBlock extends ValueBlock{fromBER(R,pe,Ae){return pe}toBER(R){return xe}}LocalEndOfContentValueBlock.override="EndOfContentValueBlock";var Le;class EndOfContent extends BaseBlock{constructor(R={}){super(R,LocalEndOfContentValueBlock);this.idBlock.tagClass=1;this.idBlock.tagNumber=0}}Le=EndOfContent;(()=>{Me.EndOfContent=Le})();EndOfContent.NAME=Te;var Ue;class Null extends BaseBlock{constructor(R={}){super(R,ValueBlock);this.idBlock.tagClass=1;this.idBlock.tagNumber=5}fromBER(R,pe,Ae){if(this.lenBlock.length>0)this.warnings.push("Non-zero length of value block for Null type");if(!this.idBlock.error.length)this.blockLength+=this.idBlock.blockLength;if(!this.lenBlock.error.length)this.blockLength+=this.lenBlock.blockLength;this.blockLength+=Ae;if(pe+Ae>R.byteLength){this.error="End of input reached before message was fully decoded (inconsistent offset and length values)";return-1}return pe+Ae}toBER(R,pe){const Ae=new ArrayBuffer(2);if(!R){const R=new Uint8Array(Ae);R[0]=5;R[1]=0}if(pe){pe.write(Ae)}return Ae}onAsciiEncoding(){return`${this.constructor.NAME}`}}Ue=Null;(()=>{Me.Null=Ue})();Null.NAME="NULL";class LocalBooleanValueBlock extends(HexBlock(ValueBlock)){constructor({value:R,...pe}={}){super(pe);if(pe.valueHex){this.valueHexView=ye.BufferSourceConverter.toUint8Array(pe.valueHex)}else{this.valueHexView=new Uint8Array(1)}if(R){this.value=R}}get value(){for(const R of this.valueHexView){if(R>0){return true}}return false}set value(R){this.valueHexView[0]=R?255:0}fromBER(R,pe,Ae){const he=ye.BufferSourceConverter.toUint8Array(R);if(!checkBufferParams(this,he,pe,Ae)){return-1}this.valueHexView=he.subarray(pe,pe+Ae);if(Ae>1)this.warnings.push("Boolean value encoded in more then 1 octet");this.isHexOnly=true;me.utilDecodeTC.call(this);this.blockLength=Ae;return pe+Ae}toBER(){return this.valueHexView.slice()}toJSON(){return{...super.toJSON(),value:this.value}}}LocalBooleanValueBlock.NAME="BooleanValueBlock";var He;class Boolean extends BaseBlock{constructor(R={}){super(R,LocalBooleanValueBlock);this.idBlock.tagClass=1;this.idBlock.tagNumber=1}getValue(){return this.valueBlock.value}setValue(R){this.valueBlock.value=R}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.getValue}`}}He=Boolean;(()=>{Me.Boolean=He})();Boolean.NAME="BOOLEAN";class LocalOctetStringValueBlock extends(HexBlock(LocalConstructedValueBlock)){constructor({isConstructed:R=false,...pe}={}){super(pe);this.isConstructed=R}fromBER(R,pe,Ae){let he=0;if(this.isConstructed){this.isHexOnly=false;he=LocalConstructedValueBlock.prototype.fromBER.call(this,R,pe,Ae);if(he===-1)return he;for(let R=0;R{Me.OctetString=Je})();OctetString.NAME=De;class LocalBitStringValueBlock extends(HexBlock(LocalConstructedValueBlock)){constructor({unusedBits:R=0,isConstructed:pe=false,...Ae}={}){super(Ae);this.unusedBits=R;this.isConstructed=pe;this.blockLength=this.valueHexView.byteLength}fromBER(R,pe,Ae){if(!Ae){return pe}let he=-1;if(this.isConstructed){he=LocalConstructedValueBlock.prototype.fromBER.call(this,R,pe,Ae);if(he===-1)return he;for(const R of this.value){const pe=R.constructor.NAME;if(pe===Te){if(this.isIndefiniteForm)break;else{this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only";return-1}}if(pe!==Ne){this.error="BIT STRING may consists of BIT STRINGs only";return-1}const Ae=R.valueBlock;if(this.unusedBits>0&&Ae.unusedBits>0){this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only';return-1}this.unusedBits=Ae.unusedBits}return he}const ge=ye.BufferSourceConverter.toUint8Array(R);if(!checkBufferParams(this,ge,pe,Ae)){return-1}const me=ge.subarray(pe,pe+Ae);this.unusedBits=me[0];if(this.unusedBits>7){this.error="Unused bits for BitString must be in range 0-7";return-1}if(!this.unusedBits){const R=me.subarray(1);try{if(R.byteLength){const pe=localFromBER(R,0,R.byteLength);if(pe.offset!==-1&&pe.offset===Ae-1){this.value=[pe.result]}}}catch(R){}}this.valueHexView=me.subarray(1);this.blockLength=me.length;return pe+Ae}toBER(R,pe){if(this.isConstructed){return LocalConstructedValueBlock.prototype.toBER.call(this,R,pe)}if(R){return new ArrayBuffer(this.valueHexView.byteLength+1)}if(!this.valueHexView.byteLength){return xe}const Ae=new Uint8Array(this.valueHexView.length+1);Ae[0]=this.unusedBits;Ae.set(this.valueHexView,1);return Ae.buffer}toJSON(){return{...super.toJSON(),unusedBits:this.unusedBits,isConstructed:this.isConstructed}}}LocalBitStringValueBlock.NAME="BitStringValueBlock";var We;class BitString extends BaseBlock{constructor({idBlock:R={},lenBlock:pe={},...Ae}={}){var he,ge;(he=Ae.isConstructed)!==null&&he!==void 0?he:Ae.isConstructed=!!((ge=Ae.value)===null||ge===void 0?void 0:ge.length);super({idBlock:{isConstructed:Ae.isConstructed,...R},lenBlock:{...pe,isIndefiniteForm:!!Ae.isIndefiniteForm},...Ae},LocalBitStringValueBlock);this.idBlock.tagClass=1;this.idBlock.tagNumber=3}fromBER(R,pe,Ae){this.valueBlock.isConstructed=this.idBlock.isConstructed;this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;return super.fromBER(R,pe,Ae)}onAsciiEncoding(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length){return Constructed.prototype.onAsciiEncoding.call(this)}else{const R=[];const pe=this.valueBlock.valueHexView;for(const Ae of pe){R.push(Ae.toString(2).padStart(8,"0"))}const Ae=R.join("");return`${this.constructor.NAME} : ${Ae.substring(0,Ae.length-this.valueBlock.unusedBits)}`}}}We=BitString;(()=>{Me.BitString=We})();BitString.NAME=Ne;var Ve;function viewAdd(R,pe){const Ae=new Uint8Array([0]);const he=new Uint8Array(R);const ge=new Uint8Array(pe);let ye=he.slice(0);const ve=ye.length-1;const be=ge.slice(0);const Ee=be.length-1;let Ce=0;const we=Ee=0;R--,_e++){switch(true){case _e=ye.length:ye=me.utilConcatView(new Uint8Array([Ce%10]),ye);break;default:ye[ve-_e]=Ce%10}}if(Ae[0]>0)ye=me.utilConcatView(Ae,ye);return ye}function power2(R){if(R>=ve.length){for(let pe=ve.length;pe<=R;pe++){const R=new Uint8Array([0]);let Ae=ve[pe-1].slice(0);for(let pe=Ae.length-1;pe>=0;pe--){const he=new Uint8Array([(Ae[pe]<<1)+R[0]]);R[0]=he[0]/10;Ae[pe]=he[0]%10}if(R[0]>0)Ae=me.utilConcatView(R,Ae);ve.push(Ae)}}return ve[R]}function viewSub(R,pe){let Ae=0;const he=new Uint8Array(R);const ge=new Uint8Array(pe);const ye=he.slice(0);const me=ye.length-1;const ve=ge.slice(0);const be=ve.length-1;let Ee;let Ce=0;for(let R=be;R>=0;R--,Ce++){Ee=ye[me-Ce]-ve[be-Ce]-Ae;switch(true){case Ee<0:Ae=1;ye[me-Ce]=Ee+10;break;default:Ae=0;ye[me-Ce]=Ee}}if(Ae>0){for(let R=me-be+1;R>=0;R--,Ce++){Ee=ye[me-Ce]-Ae;if(Ee<0){Ae=1;ye[me-Ce]=Ee+10}else{Ae=0;ye[me-Ce]=Ee;break}}}return ye.slice()}class LocalIntegerValueBlock extends(HexBlock(ValueBlock)){constructor({value:R,...pe}={}){super(pe);this._valueDec=0;if(pe.valueHex){this.setValueHex()}if(R!==undefined){this.valueDec=R}}setValueHex(){if(this.valueHexView.length>=4){this.warnings.push("Too big Integer for decoding, hex only");this.isHexOnly=true;this._valueDec=0}else{this.isHexOnly=false;if(this.valueHexView.length>0){this._valueDec=me.utilDecodeTC.call(this)}}}set valueDec(R){this._valueDec=R;this.isHexOnly=false;this.valueHexView=new Uint8Array(me.utilEncodeTC(R))}get valueDec(){return this._valueDec}fromDER(R,pe,Ae,he=0){const ge=this.fromBER(R,pe,Ae);if(ge===-1)return ge;const ye=this.valueHexView;if(ye[0]===0&&(ye[1]&128)!==0){this.valueHexView=ye.subarray(1)}else{if(he!==0){if(ye.length1)he=ye.length+1;this.valueHexView=ye.subarray(he-ye.length)}}}return ge}toDER(R=false){const pe=this.valueHexView;switch(true){case(pe[0]&128)!==0:{const R=new Uint8Array(this.valueHexView.length+1);R[0]=0;R.set(pe,1);this.valueHexView=R}break;case pe[0]===0&&(pe[1]&128)===0:{this.valueHexView=this.valueHexView.subarray(1)}break}return this.toBER(R)}fromBER(R,pe,Ae){const he=super.fromBER(R,pe,Ae);if(he===-1){return he}this.setValueHex();return he}toBER(R){return R?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}toString(){const R=this.valueHexView.length*8-1;let pe=new Uint8Array(this.valueHexView.length*8/3);let Ae=0;let he;const ge=this.valueHexView;let ye="";let me=false;for(let me=ge.byteLength-1;me>=0;me--){he=ge[me];for(let ge=0;ge<8;ge++){if((he&1)===1){switch(Ae){case R:pe=viewSub(power2(Ae),pe);ye="-";break;default:pe=viewAdd(pe,power2(Ae))}}Ae++;he>>=1}}for(let R=0;R{Object.defineProperty(Ve.prototype,"valueHex",{set:function(R){this.valueHexView=new Uint8Array(R);this.setValueHex()},get:function(){return this.valueHexView.slice().buffer}})})();var Ke;class Integer extends BaseBlock{constructor(R={}){super(R,LocalIntegerValueBlock);this.idBlock.tagClass=1;this.idBlock.tagNumber=2}toBigInt(){assertBigInt();return BigInt(this.valueBlock.toString())}static fromBigInt(R){assertBigInt();const pe=BigInt(R);const Ae=new ViewWriter;const he=pe.toString(16).replace(/^-/,"");const ge=new Uint8Array(ye.Convert.FromHex(he));if(pe<0){const R=new Uint8Array(ge.length+(ge[0]&128?1:0));R[0]|=128;const he=BigInt(`0x${ye.Convert.ToHex(R)}`);const me=he+pe;const ve=ye.BufferSourceConverter.toUint8Array(ye.Convert.FromHex(me.toString(16)));ve[0]|=128;Ae.write(ve)}else{if(ge[0]&128){Ae.write(new Uint8Array([0]))}Ae.write(ge)}const me=new Integer({valueHex:Ae.final()});return me}convertToDER(){const R=new Integer({valueHex:this.valueBlock.valueHexView});R.valueBlock.toDER();return R}convertFromDER(){return new Integer({valueHex:this.valueBlock.valueHexView[0]===0?this.valueBlock.valueHexView.subarray(1):this.valueBlock.valueHexView})}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()}`}}Ke=Integer;(()=>{Me.Integer=Ke})();Integer.NAME="INTEGER";var Ge;class Enumerated extends Integer{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=10}}Ge=Enumerated;(()=>{Me.Enumerated=Ge})();Enumerated.NAME="ENUMERATED";class LocalSidValueBlock extends(HexBlock(ValueBlock)){constructor({valueDec:R=-1,isFirstSid:pe=false,...Ae}={}){super(Ae);this.valueDec=R;this.isFirstSid=pe}fromBER(R,pe,Ae){if(!Ae){return pe}const he=ye.BufferSourceConverter.toUint8Array(R);if(!checkBufferParams(this,he,pe,Ae)){return-1}const ge=he.subarray(pe,pe+Ae);this.valueHexView=new Uint8Array(Ae);for(let R=0;R0){const pe=new LocalSidValueBlock;he=pe.fromBER(R,he,Ae);if(he===-1){this.blockLength=0;this.error=pe.error;return he}if(this.value.length===0)pe.isFirstSid=true;this.blockLength+=pe.blockLength;Ae-=pe.blockLength;this.value.push(pe)}return he}toBER(R){const pe=[];for(let Ae=0;AeNumber.MAX_SAFE_INTEGER){assertBigInt();const pe=BigInt(he);R.valueBigInt=pe}else{R.valueDec=parseInt(he,10);if(isNaN(R.valueDec))return}if(!this.value.length){R.isFirstSid=true;ge=true}this.value.push(R)}}while(Ae!==-1)}toString(){let R="";let pe=false;for(let Ae=0;Ae{Me.ObjectIdentifier=Ye})();ObjectIdentifier.NAME="OBJECT IDENTIFIER";class LocalRelativeSidValueBlock extends(HexBlock(LocalBaseBlock)){constructor({valueDec:R=0,...pe}={}){super(pe);this.valueDec=R}fromBER(R,pe,Ae){if(Ae===0)return pe;const he=ye.BufferSourceConverter.toUint8Array(R);if(!checkBufferParams(this,he,pe,Ae))return-1;const ge=he.subarray(pe,pe+Ae);this.valueHexView=new Uint8Array(Ae);for(let R=0;R0){const pe=new LocalRelativeSidValueBlock;he=pe.fromBER(R,he,Ae);if(he===-1){this.blockLength=0;this.error=pe.error;return he}this.blockLength+=pe.blockLength;Ae-=pe.blockLength;this.value.push(pe)}return he}toBER(R,pe){const Ae=[];for(let pe=0;pe{Me.RelativeObjectIdentifier=qe})();RelativeObjectIdentifier.NAME="RelativeObjectIdentifier";var $e;class Sequence extends Constructed{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=16}}$e=Sequence;(()=>{Me.Sequence=$e})();Sequence.NAME="SEQUENCE";var ze;class Set extends Constructed{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=17}}ze=Set;(()=>{Me.Set=ze})();Set.NAME="SET";class LocalStringValueBlock extends(HexBlock(ValueBlock)){constructor({...R}={}){super(R);this.isHexOnly=true;this.value=Qe}toJSON(){return{...super.toJSON(),value:this.value}}}LocalStringValueBlock.NAME="StringValueBlock";class LocalSimpleStringValueBlock extends LocalStringValueBlock{}LocalSimpleStringValueBlock.NAME="SimpleStringValueBlock";class LocalSimpleStringBlock extends BaseStringBlock{constructor({...R}={}){super(R,LocalSimpleStringValueBlock)}fromBuffer(R){this.valueBlock.value=String.fromCharCode.apply(null,ye.BufferSourceConverter.toUint8Array(R))}fromString(R){const pe=R.length;const Ae=this.valueBlock.valueHexView=new Uint8Array(pe);for(let he=0;he{Me.Utf8String=Xe})();Utf8String.NAME="UTF8String";class LocalBmpStringValueBlock extends LocalSimpleStringBlock{fromBuffer(R){this.valueBlock.value=ye.Convert.ToUtf16String(R);this.valueBlock.valueHexView=ye.BufferSourceConverter.toUint8Array(R)}fromString(R){this.valueBlock.value=R;this.valueBlock.valueHexView=new Uint8Array(ye.Convert.FromUtf16String(R))}}LocalBmpStringValueBlock.NAME="BmpStringValueBlock";var Ze;class BmpString extends LocalBmpStringValueBlock{constructor({...R}={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=30}}Ze=BmpString;(()=>{Me.BmpString=Ze})();BmpString.NAME="BMPString";class LocalUniversalStringValueBlock extends LocalSimpleStringBlock{fromBuffer(R){const pe=ArrayBuffer.isView(R)?R.slice().buffer:R.slice(0);const Ae=new Uint8Array(pe);for(let R=0;R4)continue;const ye=4-ge.length;for(let R=ge.length-1;R>=0;R--)Ae[he*4+R+ye]=ge[R]}this.valueBlock.value=R}}LocalUniversalStringValueBlock.NAME="UniversalStringValueBlock";var et;class UniversalString extends LocalUniversalStringValueBlock{constructor({...R}={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=28}}et=UniversalString;(()=>{Me.UniversalString=et})();UniversalString.NAME="UniversalString";var tt;class NumericString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=18}}tt=NumericString;(()=>{Me.NumericString=tt})();NumericString.NAME="NumericString";var rt;class PrintableString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=19}}rt=PrintableString;(()=>{Me.PrintableString=rt})();PrintableString.NAME="PrintableString";var nt;class TeletexString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=20}}nt=TeletexString;(()=>{Me.TeletexString=nt})();TeletexString.NAME="TeletexString";var it;class VideotexString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=21}}it=VideotexString;(()=>{Me.VideotexString=it})();VideotexString.NAME="VideotexString";var ot;class IA5String extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=22}}ot=IA5String;(()=>{Me.IA5String=ot})();IA5String.NAME="IA5String";var st;class GraphicString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=25}}st=GraphicString;(()=>{Me.GraphicString=st})();GraphicString.NAME="GraphicString";var at;class VisibleString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=26}}at=VisibleString;(()=>{Me.VisibleString=at})();VisibleString.NAME="VisibleString";var ct;class GeneralString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=27}}ct=GeneralString;(()=>{Me.GeneralString=ct})();GeneralString.NAME="GeneralString";var ut;class CharacterString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=29}}ut=CharacterString;(()=>{Me.CharacterString=ut})();CharacterString.NAME="CharacterString";var lt;class UTCTime extends VisibleString{constructor({value:R,valueDate:pe,...Ae}={}){super(Ae);this.year=0;this.month=0;this.day=0;this.hour=0;this.minute=0;this.second=0;if(R){this.fromString(R);this.valueBlock.valueHexView=new Uint8Array(R.length);for(let pe=0;pe=50)this.year=1900+he;else this.year=2e3+he;this.month=parseInt(Ae[2],10);this.day=parseInt(Ae[3],10);this.hour=parseInt(Ae[4],10);this.minute=parseInt(Ae[5],10);this.second=parseInt(Ae[6],10)}toString(R="iso"){if(R==="iso"){const R=new Array(7);R[0]=me.padNumber(this.year<2e3?this.year-1900:this.year-2e3,2);R[1]=me.padNumber(this.month,2);R[2]=me.padNumber(this.day,2);R[3]=me.padNumber(this.hour,2);R[4]=me.padNumber(this.minute,2);R[5]=me.padNumber(this.second,2);R[6]="Z";return R.join("")}return super.toString(R)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.toDate().toISOString()}`}toJSON(){return{...super.toJSON(),year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second}}}lt=UTCTime;(()=>{Me.UTCTime=lt})();UTCTime.NAME="UTCTime";var dt;class GeneralizedTime extends UTCTime{constructor(R={}){var pe;super(R);(pe=this.millisecond)!==null&&pe!==void 0?pe:this.millisecond=0;this.idBlock.tagClass=1;this.idBlock.tagNumber=24}fromDate(R){super.fromDate(R);this.millisecond=R.getUTCMilliseconds()}toDate(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond))}fromString(R){let pe=false;let Ae="";let he="";let ge=0;let ye;let me=0;let ve=0;if(R[R.length-1]==="Z"){Ae=R.substring(0,R.length-1);pe=true}else{const pe=new Number(R[R.length-1]);if(isNaN(pe.valueOf()))throw new Error("Wrong input string for conversion");Ae=R}if(pe){if(Ae.indexOf("+")!==-1)throw new Error("Wrong input string for conversion");if(Ae.indexOf("-")!==-1)throw new Error("Wrong input string for conversion")}else{let R=1;let pe=Ae.indexOf("+");let he="";if(pe===-1){pe=Ae.indexOf("-");R=-1}if(pe!==-1){he=Ae.substring(pe+1);Ae=Ae.substring(0,pe);if(he.length!==2&&he.length!==4)throw new Error("Wrong input string for conversion");let ge=parseInt(he.substring(0,2),10);if(isNaN(ge.valueOf()))throw new Error("Wrong input string for conversion");me=R*ge;if(he.length===4){ge=parseInt(he.substring(2,4),10);if(isNaN(ge.valueOf()))throw new Error("Wrong input string for conversion");ve=R*ge}}}let be=Ae.indexOf(".");if(be===-1)be=Ae.indexOf(",");if(be!==-1){const R=new Number(`0${Ae.substring(be)}`);if(isNaN(R.valueOf()))throw new Error("Wrong input string for conversion");ge=R.valueOf();he=Ae.substring(0,be)}else he=Ae;switch(true){case he.length===8:ye=/(\d{4})(\d{2})(\d{2})/gi;if(be!==-1)throw new Error("Wrong input string for conversion");break;case he.length===10:ye=/(\d{4})(\d{2})(\d{2})(\d{2})/gi;if(be!==-1){let R=60*ge;this.minute=Math.floor(R);R=60*(R-this.minute);this.second=Math.floor(R);R=1e3*(R-this.second);this.millisecond=Math.floor(R)}break;case he.length===12:ye=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/gi;if(be!==-1){let R=60*ge;this.second=Math.floor(R);R=1e3*(R-this.second);this.millisecond=Math.floor(R)}break;case he.length===14:ye=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/gi;if(be!==-1){const R=1e3*ge;this.millisecond=Math.floor(R)}break;default:throw new Error("Wrong input string for conversion")}const Ee=ye.exec(he);if(Ee===null)throw new Error("Wrong input string for conversion");for(let R=1;R{Me.GeneralizedTime=dt})();GeneralizedTime.NAME="GeneralizedTime";var ft;class DATE extends Utf8String{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=31}}ft=DATE;(()=>{Me.DATE=ft})();DATE.NAME="DATE";var pt;class TimeOfDay extends Utf8String{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=32}}pt=TimeOfDay;(()=>{Me.TimeOfDay=pt})();TimeOfDay.NAME="TimeOfDay";var At;class DateTime extends Utf8String{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=33}}At=DateTime;(()=>{Me.DateTime=At})();DateTime.NAME="DateTime";var ht;class Duration extends Utf8String{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=34}}ht=Duration;(()=>{Me.Duration=ht})();Duration.NAME="Duration";var gt;class TIME extends Utf8String{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=14}}gt=TIME;(()=>{Me.TIME=gt})();TIME.NAME="TIME";class Any{constructor({name:R=Qe,optional:pe=false}={}){this.name=R;this.optional=pe}}class Choice extends Any{constructor({value:R=[],...pe}={}){super(pe);this.value=R}}class Repeated extends Any{constructor({value:R=new Any,local:pe=false,...Ae}={}){super(Ae);this.value=R;this.local=pe}}class RawData{constructor({data:R=Pe}={}){this.dataView=ye.BufferSourceConverter.toUint8Array(R)}get data(){return this.dataView.slice().buffer}set data(R){this.dataView=ye.BufferSourceConverter.toUint8Array(R)}fromBER(R,pe,Ae){const he=pe+Ae;this.dataView=ye.BufferSourceConverter.toUint8Array(R).subarray(pe,he);return he}toBER(R){return this.dataView.slice().buffer}}function compareSchema(R,pe,Ae){if(Ae instanceof Choice){for(let he=0;he0){if(Ae.valueBlock.value[0]instanceof Repeated){ye=pe.valueBlock.value.length}}if(ye===0){return{verified:true,result:R}}if(pe.valueBlock.value.length===0&&Ae.valueBlock.value.length!==0){let pe=true;for(let R=0;R=pe.valueBlock.value.length){if(Ae.valueBlock.value[me].optional===false){const pe={verified:false,result:R};R.error="Inconsistent length between ASN.1 data and schema";if(Ae.name){Ae.name=Ae.name.replace(/^\s+|\s+$/g,Qe);if(Ae.name){delete R[Ae.name];pe.name=Ae.name}}return pe}}else{if(Ae.valueBlock.value[0]instanceof Repeated){ge=compareSchema(R,pe.valueBlock.value[me],Ae.valueBlock.value[0].value);if(ge.verified===false){if(Ae.valueBlock.value[0].optional)he++;else{if(Ae.name){Ae.name=Ae.name.replace(/^\s+|\s+$/g,Qe);if(Ae.name)delete R[Ae.name]}return ge}}if(Ee in Ae.valueBlock.value[0]&&Ae.valueBlock.value[0].name.length>0){let he={};if(Re in Ae.valueBlock.value[0]&&Ae.valueBlock.value[0].local)he=pe;else he=R;if(typeof he[Ae.valueBlock.value[0].name]==="undefined")he[Ae.valueBlock.value[0].name]=[];he[Ae.valueBlock.value[0].name].push(pe.valueBlock.value[me])}}else{ge=compareSchema(R,pe.valueBlock.value[me-he],Ae.valueBlock.value[me]);if(ge.verified===false){if(Ae.valueBlock.value[me].optional)he++;else{if(Ae.name){Ae.name=Ae.name.replace(/^\s+|\s+$/g,Qe);if(Ae.name)delete R[Ae.name]}return ge}}}}}if(ge.verified===false){const pe={verified:false,result:R};if(Ae.name){Ae.name=Ae.name.replace(/^\s+|\s+$/g,Qe);if(Ae.name){delete R[Ae.name];pe.name=Ae.name}}return pe}return{verified:true,result:R}}if(Ae.primitiveSchema&&Ce in pe.valueBlock){const he=localFromBER(pe.valueBlock.valueHexView);if(he.offset===-1){const pe={verified:false,result:he.result};if(Ae.name){Ae.name=Ae.name.replace(/^\s+|\s+$/g,Qe);if(Ae.name){delete R[Ae.name];pe.name=Ae.name}}return pe}return compareSchema(R,he.result,Ae.primitiveSchema)}return{verified:true,result:R}}function verifySchema(R,pe){if(pe instanceof Object===false){return{verified:false,result:{error:"Wrong ASN.1 schema type"}}}const Ae=localFromBER(ye.BufferSourceConverter.toUint8Array(R));if(Ae.offset===-1){return{verified:false,result:Ae.result}}return compareSchema(Ae.result,Ae.result,pe)}pe.Any=Any;pe.BaseBlock=BaseBlock;pe.BaseStringBlock=BaseStringBlock;pe.BitString=BitString;pe.BmpString=BmpString;pe.Boolean=Boolean;pe.CharacterString=CharacterString;pe.Choice=Choice;pe.Constructed=Constructed;pe.DATE=DATE;pe.DateTime=DateTime;pe.Duration=Duration;pe.EndOfContent=EndOfContent;pe.Enumerated=Enumerated;pe.GeneralString=GeneralString;pe.GeneralizedTime=GeneralizedTime;pe.GraphicString=GraphicString;pe.HexBlock=HexBlock;pe.IA5String=IA5String;pe.Integer=Integer;pe.Null=Null;pe.NumericString=NumericString;pe.ObjectIdentifier=ObjectIdentifier;pe.OctetString=OctetString;pe.Primitive=Primitive;pe.PrintableString=PrintableString;pe.RawData=RawData;pe.RelativeObjectIdentifier=RelativeObjectIdentifier;pe.Repeated=Repeated;pe.Sequence=Sequence;pe.Set=Set;pe.TIME=TIME;pe.TeletexString=TeletexString;pe.TimeOfDay=TimeOfDay;pe.UTCTime=UTCTime;pe.UniversalString=UniversalString;pe.Utf8String=Utf8String;pe.ValueBlock=ValueBlock;pe.VideotexString=VideotexString;pe.ViewWriter=ViewWriter;pe.VisibleString=VisibleString;pe.compareSchema=compareSchema;pe.fromBER=fromBER;pe.verifySchema=verifySchema},14812:(R,pe,Ae)=>{R.exports={parallel:Ae(8210),serial:Ae(50445),serialOrdered:Ae(3578)}},1700:R=>{R.exports=abort;function abort(R){Object.keys(R.jobs).forEach(clean.bind(R));R.jobs={}}function clean(R){if(typeof this.jobs[R]=="function"){this.jobs[R]()}}},72794:(R,pe,Ae)=>{var he=Ae(15295);R.exports=async;function async(R){var pe=false;he((function(){pe=true}));return function async_callback(Ae,ge){if(pe){R(Ae,ge)}else{he((function nextTick_callback(){R(Ae,ge)}))}}}},15295:R=>{R.exports=defer;function defer(R){var pe=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(pe){pe(R)}else{setTimeout(R,0)}}},9023:(R,pe,Ae)=>{var he=Ae(72794),ge=Ae(1700);R.exports=iterate;function iterate(R,pe,Ae,he){var ye=Ae["keyedList"]?Ae["keyedList"][Ae.index]:Ae.index;Ae.jobs[ye]=runJob(pe,ye,R[ye],(function(R,pe){if(!(ye in Ae.jobs)){return}delete Ae.jobs[ye];if(R){ge(Ae)}else{Ae.results[ye]=pe}he(R,Ae.results)}))}function runJob(R,pe,Ae,ge){var ye;if(R.length==2){ye=R(Ae,he(ge))}else{ye=R(Ae,pe,he(ge))}return ye}},42474:R=>{R.exports=state;function state(R,pe){var Ae=!Array.isArray(R),he={index:0,keyedList:Ae||pe?Object.keys(R):null,jobs:{},results:Ae?{}:[],size:Ae?Object.keys(R).length:R.length};if(pe){he.keyedList.sort(Ae?pe:function(Ae,he){return pe(R[Ae],R[he])})}return he}},37942:(R,pe,Ae)=>{var he=Ae(1700),ge=Ae(72794);R.exports=terminator;function terminator(R){if(!Object.keys(this.jobs).length){return}this.index=this.size;he(this);ge(R)(null,this.results)}},8210:(R,pe,Ae)=>{var he=Ae(9023),ge=Ae(42474),ye=Ae(37942);R.exports=parallel;function parallel(R,pe,Ae){var me=ge(R);while(me.index<(me["keyedList"]||R).length){he(R,pe,me,(function(R,pe){if(R){Ae(R,pe);return}if(Object.keys(me.jobs).length===0){Ae(null,me.results);return}}));me.index++}return ye.bind(me,Ae)}},50445:(R,pe,Ae)=>{var he=Ae(3578);R.exports=serial;function serial(R,pe,Ae){return he(R,pe,null,Ae)}},3578:(R,pe,Ae)=>{var he=Ae(9023),ge=Ae(42474),ye=Ae(37942);R.exports=serialOrdered;R.exports.ascending=ascending;R.exports.descending=descending;function serialOrdered(R,pe,Ae,me){var ve=ge(R,Ae);he(R,pe,ve,(function iteratorHandler(Ae,ge){if(Ae){me(Ae,ge);return}ve.index++;if(ve.index<(ve["keyedList"]||R).length){he(R,pe,ve,iteratorHandler);return}me(null,ve.results)}));return ye.bind(ve,me)}function ascending(R,pe){return Rpe?1:0}function descending(R,pe){return-1*ascending(R,pe)}},40641:R=>{"use strict";R.exports=function serialize(R){if(R===null||typeof R!=="object"||R.toJSON!=null){return JSON.stringify(R)}if(Array.isArray(R)){return"["+R.reduce(((R,pe,Ae)=>{const he=Ae===0?"":",";const ge=pe===undefined||typeof pe==="symbol"?null:pe;return R+he+serialize(ge)}),"")+"]"}return"{"+Object.keys(R).sort().reduce(((pe,Ae,he)=>{if(R[Ae]===undefined||typeof R[Ae]==="symbol"){return pe}const ge=pe.length===0?"":",";return pe+ge+serialize(Ae)+":"+serialize(R[Ae])}),"")+"}"}},4114:function(R){ + */Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(22420);var ge=Ae(65266);function _interopNamespace(R){if(R&&R.__esModule)return R;var pe=Object.create(null);if(R){Object.keys(R).forEach((function(Ae){if(Ae!=="default"){var he=Object.getOwnPropertyDescriptor(R,Ae);Object.defineProperty(pe,Ae,he.get?he:{enumerable:true,get:function(){return R[Ae]}})}}))}pe["default"]=R;return Object.freeze(pe)}var ye=_interopNamespace(he);var me=_interopNamespace(ge);function assertBigInt(){if(typeof BigInt==="undefined"){throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.")}}function concat(R){let pe=0;let Ae=0;for(let Ae=0;Ae=ge.length){this.error="End of input reached before message was fully decoded";return-1}if(R===Ae){Ae+=255;const R=new Uint8Array(Ae);for(let Ae=0;Ae8){this.error="Too big integer";return-1}if(ve+1>ge.length){this.error="End of input reached before message was fully decoded";return-1}const be=pe+1;const Ee=he.subarray(be,be+ve);if(Ee[ve-1]===0)this.warnings.push("Needlessly long encoded length");this.length=me.utilFromBase(Ee,8);if(this.longFormUsed&&this.length<=127)this.warnings.push("Unnecessary usage of long length form");this.blockLength=ve+1;return pe+this.blockLength}toBER(R=false){let pe;let Ae;if(this.length>127)this.longFormUsed=true;if(this.isIndefiniteForm){pe=new ArrayBuffer(1);if(R===false){Ae=new Uint8Array(pe);Ae[0]=128}return pe}if(this.longFormUsed){const he=me.utilToBase(this.length,8);if(he.byteLength>127){this.error="Too big length";return xe}pe=new ArrayBuffer(he.byteLength+1);if(R)return pe;const ge=new Uint8Array(he);Ae=new Uint8Array(pe);Ae[0]=he.byteLength|128;for(let R=0;R{Me.Primitive=je})();Primitive.NAME="PRIMITIVE";function localChangeType(R,pe){if(R instanceof pe){return R}const Ae=new pe;Ae.idBlock=R.idBlock;Ae.lenBlock=R.lenBlock;Ae.warnings=R.warnings;Ae.valueBeforeDecodeView=R.valueBeforeDecodeView;return Ae}function localFromBER(R,pe=0,Ae=R.length){const he=pe;let ge=new BaseBlock({},ValueBlock);const ye=new LocalBaseBlock;if(!checkBufferParams(ye,R,pe,Ae)){ge.error=ye.error;return{offset:-1,result:ge}}const me=R.subarray(pe,pe+Ae);if(!me.length){ge.error="Zero buffer length";return{offset:-1,result:ge}}let ve=ge.idBlock.fromBER(R,pe,Ae);if(ge.idBlock.warnings.length){ge.warnings.concat(ge.idBlock.warnings)}if(ve===-1){ge.error=ge.idBlock.error;return{offset:-1,result:ge}}pe=ve;Ae-=ge.idBlock.blockLength;ve=ge.lenBlock.fromBER(R,pe,Ae);if(ge.lenBlock.warnings.length){ge.warnings.concat(ge.lenBlock.warnings)}if(ve===-1){ge.error=ge.lenBlock.error;return{offset:-1,result:ge}}pe=ve;Ae-=ge.lenBlock.blockLength;if(!ge.idBlock.isConstructed&&ge.lenBlock.isIndefiniteForm){ge.error="Indefinite length form used for primitive encoding form";return{offset:-1,result:ge}}let be=BaseBlock;switch(ge.idBlock.tagClass){case 1:if(ge.idBlock.tagNumber>=37&&ge.idBlock.isHexOnly===false){ge.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard";return{offset:-1,result:ge}}switch(ge.idBlock.tagNumber){case 0:if(ge.idBlock.isConstructed&&ge.lenBlock.length>0){ge.error="Type [UNIVERSAL 0] is reserved";return{offset:-1,result:ge}}be=Me.EndOfContent;break;case 1:be=Me.Boolean;break;case 2:be=Me.Integer;break;case 3:be=Me.BitString;break;case 4:be=Me.OctetString;break;case 5:be=Me.Null;break;case 6:be=Me.ObjectIdentifier;break;case 10:be=Me.Enumerated;break;case 12:be=Me.Utf8String;break;case 13:be=Me.RelativeObjectIdentifier;break;case 14:be=Me.TIME;break;case 15:ge.error="[UNIVERSAL 15] is reserved by ASN.1 standard";return{offset:-1,result:ge};case 16:be=Me.Sequence;break;case 17:be=Me.Set;break;case 18:be=Me.NumericString;break;case 19:be=Me.PrintableString;break;case 20:be=Me.TeletexString;break;case 21:be=Me.VideotexString;break;case 22:be=Me.IA5String;break;case 23:be=Me.UTCTime;break;case 24:be=Me.GeneralizedTime;break;case 25:be=Me.GraphicString;break;case 26:be=Me.VisibleString;break;case 27:be=Me.GeneralString;break;case 28:be=Me.UniversalString;break;case 29:be=Me.CharacterString;break;case 30:be=Me.BmpString;break;case 31:be=Me.DATE;break;case 32:be=Me.TimeOfDay;break;case 33:be=Me.DateTime;break;case 34:be=Me.Duration;break;default:{const R=ge.idBlock.isConstructed?new Me.Constructed:new Me.Primitive;R.idBlock=ge.idBlock;R.lenBlock=ge.lenBlock;R.warnings=ge.warnings;ge=R}}break;case 2:case 3:case 4:default:{be=ge.idBlock.isConstructed?Me.Constructed:Me.Primitive}}ge=localChangeType(ge,be);ve=ge.fromBER(R,pe,ge.lenBlock.isIndefiniteForm?Ae:ge.lenBlock.length);ge.valueBeforeDecodeView=R.subarray(he,he+ge.blockLength);return{offset:ve,result:ge}}function fromBER(R){if(!R.byteLength){const R=new BaseBlock({},ValueBlock);R.error="Input buffer has zero length";return{offset:-1,result:R}}return localFromBER(ye.BufferSourceConverter.toUint8Array(R).slice(),0,R.byteLength)}function checkLen(R,pe){if(R){return 1}return pe}class LocalConstructedValueBlock extends ValueBlock{constructor({value:R=[],isIndefiniteForm:pe=false,...Ae}={}){super(Ae);this.value=R;this.isIndefiniteForm=pe}fromBER(R,pe,Ae){const he=ye.BufferSourceConverter.toUint8Array(R);if(!checkBufferParams(this,he,pe,Ae)){return-1}this.valueBeforeDecodeView=he.subarray(pe,pe+Ae);if(this.valueBeforeDecodeView.length===0){this.warnings.push("Zero buffer length");return pe}let ge=pe;while(checkLen(this.isIndefiniteForm,Ae)>0){const R=localFromBER(he,ge,Ae);if(R.offset===-1){this.error=R.result.error;this.warnings.concat(R.result.warnings);return-1}ge=R.offset;this.blockLength+=R.result.blockLength;Ae-=R.result.blockLength;this.value.push(R.result);if(this.isIndefiniteForm&&R.result.constructor.NAME===Te){break}}if(this.isIndefiniteForm){if(this.value[this.value.length-1].constructor.NAME===Te){this.value.pop()}else{this.warnings.push("No EndOfContent block encoded")}}return ge}toBER(R,pe){const Ae=pe||new ViewWriter;for(let pe=0;pe` ${R}`)).join("\n"))}const pe=this.idBlock.tagClass===3?`[${this.idBlock.tagNumber}]`:this.constructor.NAME;return R.length?`${pe} :\n${R.join("\n")}`:`${pe} :`}}Fe=Constructed;(()=>{Me.Constructed=Fe})();Constructed.NAME="CONSTRUCTED";class LocalEndOfContentValueBlock extends ValueBlock{fromBER(R,pe,Ae){return pe}toBER(R){return xe}}LocalEndOfContentValueBlock.override="EndOfContentValueBlock";var Le;class EndOfContent extends BaseBlock{constructor(R={}){super(R,LocalEndOfContentValueBlock);this.idBlock.tagClass=1;this.idBlock.tagNumber=0}}Le=EndOfContent;(()=>{Me.EndOfContent=Le})();EndOfContent.NAME=Te;var Ue;class Null extends BaseBlock{constructor(R={}){super(R,ValueBlock);this.idBlock.tagClass=1;this.idBlock.tagNumber=5}fromBER(R,pe,Ae){if(this.lenBlock.length>0)this.warnings.push("Non-zero length of value block for Null type");if(!this.idBlock.error.length)this.blockLength+=this.idBlock.blockLength;if(!this.lenBlock.error.length)this.blockLength+=this.lenBlock.blockLength;this.blockLength+=Ae;if(pe+Ae>R.byteLength){this.error="End of input reached before message was fully decoded (inconsistent offset and length values)";return-1}return pe+Ae}toBER(R,pe){const Ae=new ArrayBuffer(2);if(!R){const R=new Uint8Array(Ae);R[0]=5;R[1]=0}if(pe){pe.write(Ae)}return Ae}onAsciiEncoding(){return`${this.constructor.NAME}`}}Ue=Null;(()=>{Me.Null=Ue})();Null.NAME="NULL";class LocalBooleanValueBlock extends(HexBlock(ValueBlock)){constructor({value:R,...pe}={}){super(pe);if(pe.valueHex){this.valueHexView=ye.BufferSourceConverter.toUint8Array(pe.valueHex)}else{this.valueHexView=new Uint8Array(1)}if(R){this.value=R}}get value(){for(const R of this.valueHexView){if(R>0){return true}}return false}set value(R){this.valueHexView[0]=R?255:0}fromBER(R,pe,Ae){const he=ye.BufferSourceConverter.toUint8Array(R);if(!checkBufferParams(this,he,pe,Ae)){return-1}this.valueHexView=he.subarray(pe,pe+Ae);if(Ae>1)this.warnings.push("Boolean value encoded in more then 1 octet");this.isHexOnly=true;me.utilDecodeTC.call(this);this.blockLength=Ae;return pe+Ae}toBER(){return this.valueHexView.slice()}toJSON(){return{...super.toJSON(),value:this.value}}}LocalBooleanValueBlock.NAME="BooleanValueBlock";var He;class Boolean extends BaseBlock{constructor(R={}){super(R,LocalBooleanValueBlock);this.idBlock.tagClass=1;this.idBlock.tagNumber=1}getValue(){return this.valueBlock.value}setValue(R){this.valueBlock.value=R}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.getValue}`}}He=Boolean;(()=>{Me.Boolean=He})();Boolean.NAME="BOOLEAN";class LocalOctetStringValueBlock extends(HexBlock(LocalConstructedValueBlock)){constructor({isConstructed:R=false,...pe}={}){super(pe);this.isConstructed=R}fromBER(R,pe,Ae){let he=0;if(this.isConstructed){this.isHexOnly=false;he=LocalConstructedValueBlock.prototype.fromBER.call(this,R,pe,Ae);if(he===-1)return he;for(let R=0;R{Me.OctetString=Je})();OctetString.NAME=De;class LocalBitStringValueBlock extends(HexBlock(LocalConstructedValueBlock)){constructor({unusedBits:R=0,isConstructed:pe=false,...Ae}={}){super(Ae);this.unusedBits=R;this.isConstructed=pe;this.blockLength=this.valueHexView.byteLength}fromBER(R,pe,Ae){if(!Ae){return pe}let he=-1;if(this.isConstructed){he=LocalConstructedValueBlock.prototype.fromBER.call(this,R,pe,Ae);if(he===-1)return he;for(const R of this.value){const pe=R.constructor.NAME;if(pe===Te){if(this.isIndefiniteForm)break;else{this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only";return-1}}if(pe!==Ne){this.error="BIT STRING may consists of BIT STRINGs only";return-1}const Ae=R.valueBlock;if(this.unusedBits>0&&Ae.unusedBits>0){this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only';return-1}this.unusedBits=Ae.unusedBits}return he}const ge=ye.BufferSourceConverter.toUint8Array(R);if(!checkBufferParams(this,ge,pe,Ae)){return-1}const me=ge.subarray(pe,pe+Ae);this.unusedBits=me[0];if(this.unusedBits>7){this.error="Unused bits for BitString must be in range 0-7";return-1}if(!this.unusedBits){const R=me.subarray(1);try{if(R.byteLength){const pe=localFromBER(R,0,R.byteLength);if(pe.offset!==-1&&pe.offset===Ae-1){this.value=[pe.result]}}}catch(R){}}this.valueHexView=me.subarray(1);this.blockLength=me.length;return pe+Ae}toBER(R,pe){if(this.isConstructed){return LocalConstructedValueBlock.prototype.toBER.call(this,R,pe)}if(R){return new ArrayBuffer(this.valueHexView.byteLength+1)}if(!this.valueHexView.byteLength){return xe}const Ae=new Uint8Array(this.valueHexView.length+1);Ae[0]=this.unusedBits;Ae.set(this.valueHexView,1);return Ae.buffer}toJSON(){return{...super.toJSON(),unusedBits:this.unusedBits,isConstructed:this.isConstructed}}}LocalBitStringValueBlock.NAME="BitStringValueBlock";var We;class BitString extends BaseBlock{constructor({idBlock:R={},lenBlock:pe={},...Ae}={}){var he,ge;(he=Ae.isConstructed)!==null&&he!==void 0?he:Ae.isConstructed=!!((ge=Ae.value)===null||ge===void 0?void 0:ge.length);super({idBlock:{isConstructed:Ae.isConstructed,...R},lenBlock:{...pe,isIndefiniteForm:!!Ae.isIndefiniteForm},...Ae},LocalBitStringValueBlock);this.idBlock.tagClass=1;this.idBlock.tagNumber=3}fromBER(R,pe,Ae){this.valueBlock.isConstructed=this.idBlock.isConstructed;this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;return super.fromBER(R,pe,Ae)}onAsciiEncoding(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length){return Constructed.prototype.onAsciiEncoding.call(this)}else{const R=[];const pe=this.valueBlock.valueHexView;for(const Ae of pe){R.push(Ae.toString(2).padStart(8,"0"))}const Ae=R.join("");return`${this.constructor.NAME} : ${Ae.substring(0,Ae.length-this.valueBlock.unusedBits)}`}}}We=BitString;(()=>{Me.BitString=We})();BitString.NAME=Ne;var Ve;function viewAdd(R,pe){const Ae=new Uint8Array([0]);const he=new Uint8Array(R);const ge=new Uint8Array(pe);let ye=he.slice(0);const ve=ye.length-1;const be=ge.slice(0);const Ee=be.length-1;let we=0;const Ce=Ee=0;R--,_e++){switch(true){case _e=ye.length:ye=me.utilConcatView(new Uint8Array([we%10]),ye);break;default:ye[ve-_e]=we%10}}if(Ae[0]>0)ye=me.utilConcatView(Ae,ye);return ye}function power2(R){if(R>=ve.length){for(let pe=ve.length;pe<=R;pe++){const R=new Uint8Array([0]);let Ae=ve[pe-1].slice(0);for(let pe=Ae.length-1;pe>=0;pe--){const he=new Uint8Array([(Ae[pe]<<1)+R[0]]);R[0]=he[0]/10;Ae[pe]=he[0]%10}if(R[0]>0)Ae=me.utilConcatView(R,Ae);ve.push(Ae)}}return ve[R]}function viewSub(R,pe){let Ae=0;const he=new Uint8Array(R);const ge=new Uint8Array(pe);const ye=he.slice(0);const me=ye.length-1;const ve=ge.slice(0);const be=ve.length-1;let Ee;let we=0;for(let R=be;R>=0;R--,we++){Ee=ye[me-we]-ve[be-we]-Ae;switch(true){case Ee<0:Ae=1;ye[me-we]=Ee+10;break;default:Ae=0;ye[me-we]=Ee}}if(Ae>0){for(let R=me-be+1;R>=0;R--,we++){Ee=ye[me-we]-Ae;if(Ee<0){Ae=1;ye[me-we]=Ee+10}else{Ae=0;ye[me-we]=Ee;break}}}return ye.slice()}class LocalIntegerValueBlock extends(HexBlock(ValueBlock)){constructor({value:R,...pe}={}){super(pe);this._valueDec=0;if(pe.valueHex){this.setValueHex()}if(R!==undefined){this.valueDec=R}}setValueHex(){if(this.valueHexView.length>=4){this.warnings.push("Too big Integer for decoding, hex only");this.isHexOnly=true;this._valueDec=0}else{this.isHexOnly=false;if(this.valueHexView.length>0){this._valueDec=me.utilDecodeTC.call(this)}}}set valueDec(R){this._valueDec=R;this.isHexOnly=false;this.valueHexView=new Uint8Array(me.utilEncodeTC(R))}get valueDec(){return this._valueDec}fromDER(R,pe,Ae,he=0){const ge=this.fromBER(R,pe,Ae);if(ge===-1)return ge;const ye=this.valueHexView;if(ye[0]===0&&(ye[1]&128)!==0){this.valueHexView=ye.subarray(1)}else{if(he!==0){if(ye.length1)he=ye.length+1;this.valueHexView=ye.subarray(he-ye.length)}}}return ge}toDER(R=false){const pe=this.valueHexView;switch(true){case(pe[0]&128)!==0:{const R=new Uint8Array(this.valueHexView.length+1);R[0]=0;R.set(pe,1);this.valueHexView=R}break;case pe[0]===0&&(pe[1]&128)===0:{this.valueHexView=this.valueHexView.subarray(1)}break}return this.toBER(R)}fromBER(R,pe,Ae){const he=super.fromBER(R,pe,Ae);if(he===-1){return he}this.setValueHex();return he}toBER(R){return R?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}toString(){const R=this.valueHexView.length*8-1;let pe=new Uint8Array(this.valueHexView.length*8/3);let Ae=0;let he;const ge=this.valueHexView;let ye="";let me=false;for(let me=ge.byteLength-1;me>=0;me--){he=ge[me];for(let ge=0;ge<8;ge++){if((he&1)===1){switch(Ae){case R:pe=viewSub(power2(Ae),pe);ye="-";break;default:pe=viewAdd(pe,power2(Ae))}}Ae++;he>>=1}}for(let R=0;R{Object.defineProperty(Ve.prototype,"valueHex",{set:function(R){this.valueHexView=new Uint8Array(R);this.setValueHex()},get:function(){return this.valueHexView.slice().buffer}})})();var Ke;class Integer extends BaseBlock{constructor(R={}){super(R,LocalIntegerValueBlock);this.idBlock.tagClass=1;this.idBlock.tagNumber=2}toBigInt(){assertBigInt();return BigInt(this.valueBlock.toString())}static fromBigInt(R){assertBigInt();const pe=BigInt(R);const Ae=new ViewWriter;const he=pe.toString(16).replace(/^-/,"");const ge=new Uint8Array(ye.Convert.FromHex(he));if(pe<0){const R=new Uint8Array(ge.length+(ge[0]&128?1:0));R[0]|=128;const he=BigInt(`0x${ye.Convert.ToHex(R)}`);const me=he+pe;const ve=ye.BufferSourceConverter.toUint8Array(ye.Convert.FromHex(me.toString(16)));ve[0]|=128;Ae.write(ve)}else{if(ge[0]&128){Ae.write(new Uint8Array([0]))}Ae.write(ge)}const me=new Integer({valueHex:Ae.final()});return me}convertToDER(){const R=new Integer({valueHex:this.valueBlock.valueHexView});R.valueBlock.toDER();return R}convertFromDER(){return new Integer({valueHex:this.valueBlock.valueHexView[0]===0?this.valueBlock.valueHexView.subarray(1):this.valueBlock.valueHexView})}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()}`}}Ke=Integer;(()=>{Me.Integer=Ke})();Integer.NAME="INTEGER";var Ge;class Enumerated extends Integer{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=10}}Ge=Enumerated;(()=>{Me.Enumerated=Ge})();Enumerated.NAME="ENUMERATED";class LocalSidValueBlock extends(HexBlock(ValueBlock)){constructor({valueDec:R=-1,isFirstSid:pe=false,...Ae}={}){super(Ae);this.valueDec=R;this.isFirstSid=pe}fromBER(R,pe,Ae){if(!Ae){return pe}const he=ye.BufferSourceConverter.toUint8Array(R);if(!checkBufferParams(this,he,pe,Ae)){return-1}const ge=he.subarray(pe,pe+Ae);this.valueHexView=new Uint8Array(Ae);for(let R=0;R0){const pe=new LocalSidValueBlock;he=pe.fromBER(R,he,Ae);if(he===-1){this.blockLength=0;this.error=pe.error;return he}if(this.value.length===0)pe.isFirstSid=true;this.blockLength+=pe.blockLength;Ae-=pe.blockLength;this.value.push(pe)}return he}toBER(R){const pe=[];for(let Ae=0;AeNumber.MAX_SAFE_INTEGER){assertBigInt();const pe=BigInt(he);R.valueBigInt=pe}else{R.valueDec=parseInt(he,10);if(isNaN(R.valueDec))return}if(!this.value.length){R.isFirstSid=true;ge=true}this.value.push(R)}}while(Ae!==-1)}toString(){let R="";let pe=false;for(let Ae=0;Ae{Me.ObjectIdentifier=Ye})();ObjectIdentifier.NAME="OBJECT IDENTIFIER";class LocalRelativeSidValueBlock extends(HexBlock(LocalBaseBlock)){constructor({valueDec:R=0,...pe}={}){super(pe);this.valueDec=R}fromBER(R,pe,Ae){if(Ae===0)return pe;const he=ye.BufferSourceConverter.toUint8Array(R);if(!checkBufferParams(this,he,pe,Ae))return-1;const ge=he.subarray(pe,pe+Ae);this.valueHexView=new Uint8Array(Ae);for(let R=0;R0){const pe=new LocalRelativeSidValueBlock;he=pe.fromBER(R,he,Ae);if(he===-1){this.blockLength=0;this.error=pe.error;return he}this.blockLength+=pe.blockLength;Ae-=pe.blockLength;this.value.push(pe)}return he}toBER(R,pe){const Ae=[];for(let pe=0;pe{Me.RelativeObjectIdentifier=qe})();RelativeObjectIdentifier.NAME="RelativeObjectIdentifier";var $e;class Sequence extends Constructed{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=16}}$e=Sequence;(()=>{Me.Sequence=$e})();Sequence.NAME="SEQUENCE";var ze;class Set extends Constructed{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=17}}ze=Set;(()=>{Me.Set=ze})();Set.NAME="SET";class LocalStringValueBlock extends(HexBlock(ValueBlock)){constructor({...R}={}){super(R);this.isHexOnly=true;this.value=Qe}toJSON(){return{...super.toJSON(),value:this.value}}}LocalStringValueBlock.NAME="StringValueBlock";class LocalSimpleStringValueBlock extends LocalStringValueBlock{}LocalSimpleStringValueBlock.NAME="SimpleStringValueBlock";class LocalSimpleStringBlock extends BaseStringBlock{constructor({...R}={}){super(R,LocalSimpleStringValueBlock)}fromBuffer(R){this.valueBlock.value=String.fromCharCode.apply(null,ye.BufferSourceConverter.toUint8Array(R))}fromString(R){const pe=R.length;const Ae=this.valueBlock.valueHexView=new Uint8Array(pe);for(let he=0;he{Me.Utf8String=Xe})();Utf8String.NAME="UTF8String";class LocalBmpStringValueBlock extends LocalSimpleStringBlock{fromBuffer(R){this.valueBlock.value=ye.Convert.ToUtf16String(R);this.valueBlock.valueHexView=ye.BufferSourceConverter.toUint8Array(R)}fromString(R){this.valueBlock.value=R;this.valueBlock.valueHexView=new Uint8Array(ye.Convert.FromUtf16String(R))}}LocalBmpStringValueBlock.NAME="BmpStringValueBlock";var Ze;class BmpString extends LocalBmpStringValueBlock{constructor({...R}={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=30}}Ze=BmpString;(()=>{Me.BmpString=Ze})();BmpString.NAME="BMPString";class LocalUniversalStringValueBlock extends LocalSimpleStringBlock{fromBuffer(R){const pe=ArrayBuffer.isView(R)?R.slice().buffer:R.slice(0);const Ae=new Uint8Array(pe);for(let R=0;R4)continue;const ye=4-ge.length;for(let R=ge.length-1;R>=0;R--)Ae[he*4+R+ye]=ge[R]}this.valueBlock.value=R}}LocalUniversalStringValueBlock.NAME="UniversalStringValueBlock";var et;class UniversalString extends LocalUniversalStringValueBlock{constructor({...R}={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=28}}et=UniversalString;(()=>{Me.UniversalString=et})();UniversalString.NAME="UniversalString";var tt;class NumericString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=18}}tt=NumericString;(()=>{Me.NumericString=tt})();NumericString.NAME="NumericString";var rt;class PrintableString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=19}}rt=PrintableString;(()=>{Me.PrintableString=rt})();PrintableString.NAME="PrintableString";var nt;class TeletexString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=20}}nt=TeletexString;(()=>{Me.TeletexString=nt})();TeletexString.NAME="TeletexString";var it;class VideotexString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=21}}it=VideotexString;(()=>{Me.VideotexString=it})();VideotexString.NAME="VideotexString";var ot;class IA5String extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=22}}ot=IA5String;(()=>{Me.IA5String=ot})();IA5String.NAME="IA5String";var st;class GraphicString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=25}}st=GraphicString;(()=>{Me.GraphicString=st})();GraphicString.NAME="GraphicString";var at;class VisibleString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=26}}at=VisibleString;(()=>{Me.VisibleString=at})();VisibleString.NAME="VisibleString";var ct;class GeneralString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=27}}ct=GeneralString;(()=>{Me.GeneralString=ct})();GeneralString.NAME="GeneralString";var ut;class CharacterString extends LocalSimpleStringBlock{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=29}}ut=CharacterString;(()=>{Me.CharacterString=ut})();CharacterString.NAME="CharacterString";var lt;class UTCTime extends VisibleString{constructor({value:R,valueDate:pe,...Ae}={}){super(Ae);this.year=0;this.month=0;this.day=0;this.hour=0;this.minute=0;this.second=0;if(R){this.fromString(R);this.valueBlock.valueHexView=new Uint8Array(R.length);for(let pe=0;pe=50)this.year=1900+he;else this.year=2e3+he;this.month=parseInt(Ae[2],10);this.day=parseInt(Ae[3],10);this.hour=parseInt(Ae[4],10);this.minute=parseInt(Ae[5],10);this.second=parseInt(Ae[6],10)}toString(R="iso"){if(R==="iso"){const R=new Array(7);R[0]=me.padNumber(this.year<2e3?this.year-1900:this.year-2e3,2);R[1]=me.padNumber(this.month,2);R[2]=me.padNumber(this.day,2);R[3]=me.padNumber(this.hour,2);R[4]=me.padNumber(this.minute,2);R[5]=me.padNumber(this.second,2);R[6]="Z";return R.join("")}return super.toString(R)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.toDate().toISOString()}`}toJSON(){return{...super.toJSON(),year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second}}}lt=UTCTime;(()=>{Me.UTCTime=lt})();UTCTime.NAME="UTCTime";var dt;class GeneralizedTime extends UTCTime{constructor(R={}){var pe;super(R);(pe=this.millisecond)!==null&&pe!==void 0?pe:this.millisecond=0;this.idBlock.tagClass=1;this.idBlock.tagNumber=24}fromDate(R){super.fromDate(R);this.millisecond=R.getUTCMilliseconds()}toDate(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond))}fromString(R){let pe=false;let Ae="";let he="";let ge=0;let ye;let me=0;let ve=0;if(R[R.length-1]==="Z"){Ae=R.substring(0,R.length-1);pe=true}else{const pe=new Number(R[R.length-1]);if(isNaN(pe.valueOf()))throw new Error("Wrong input string for conversion");Ae=R}if(pe){if(Ae.indexOf("+")!==-1)throw new Error("Wrong input string for conversion");if(Ae.indexOf("-")!==-1)throw new Error("Wrong input string for conversion")}else{let R=1;let pe=Ae.indexOf("+");let he="";if(pe===-1){pe=Ae.indexOf("-");R=-1}if(pe!==-1){he=Ae.substring(pe+1);Ae=Ae.substring(0,pe);if(he.length!==2&&he.length!==4)throw new Error("Wrong input string for conversion");let ge=parseInt(he.substring(0,2),10);if(isNaN(ge.valueOf()))throw new Error("Wrong input string for conversion");me=R*ge;if(he.length===4){ge=parseInt(he.substring(2,4),10);if(isNaN(ge.valueOf()))throw new Error("Wrong input string for conversion");ve=R*ge}}}let be=Ae.indexOf(".");if(be===-1)be=Ae.indexOf(",");if(be!==-1){const R=new Number(`0${Ae.substring(be)}`);if(isNaN(R.valueOf()))throw new Error("Wrong input string for conversion");ge=R.valueOf();he=Ae.substring(0,be)}else he=Ae;switch(true){case he.length===8:ye=/(\d{4})(\d{2})(\d{2})/gi;if(be!==-1)throw new Error("Wrong input string for conversion");break;case he.length===10:ye=/(\d{4})(\d{2})(\d{2})(\d{2})/gi;if(be!==-1){let R=60*ge;this.minute=Math.floor(R);R=60*(R-this.minute);this.second=Math.floor(R);R=1e3*(R-this.second);this.millisecond=Math.floor(R)}break;case he.length===12:ye=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/gi;if(be!==-1){let R=60*ge;this.second=Math.floor(R);R=1e3*(R-this.second);this.millisecond=Math.floor(R)}break;case he.length===14:ye=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/gi;if(be!==-1){const R=1e3*ge;this.millisecond=Math.floor(R)}break;default:throw new Error("Wrong input string for conversion")}const Ee=ye.exec(he);if(Ee===null)throw new Error("Wrong input string for conversion");for(let R=1;R{Me.GeneralizedTime=dt})();GeneralizedTime.NAME="GeneralizedTime";var ft;class DATE extends Utf8String{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=31}}ft=DATE;(()=>{Me.DATE=ft})();DATE.NAME="DATE";var pt;class TimeOfDay extends Utf8String{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=32}}pt=TimeOfDay;(()=>{Me.TimeOfDay=pt})();TimeOfDay.NAME="TimeOfDay";var At;class DateTime extends Utf8String{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=33}}At=DateTime;(()=>{Me.DateTime=At})();DateTime.NAME="DateTime";var ht;class Duration extends Utf8String{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=34}}ht=Duration;(()=>{Me.Duration=ht})();Duration.NAME="Duration";var gt;class TIME extends Utf8String{constructor(R={}){super(R);this.idBlock.tagClass=1;this.idBlock.tagNumber=14}}gt=TIME;(()=>{Me.TIME=gt})();TIME.NAME="TIME";class Any{constructor({name:R=Qe,optional:pe=false}={}){this.name=R;this.optional=pe}}class Choice extends Any{constructor({value:R=[],...pe}={}){super(pe);this.value=R}}class Repeated extends Any{constructor({value:R=new Any,local:pe=false,...Ae}={}){super(Ae);this.value=R;this.local=pe}}class RawData{constructor({data:R=Pe}={}){this.dataView=ye.BufferSourceConverter.toUint8Array(R)}get data(){return this.dataView.slice().buffer}set data(R){this.dataView=ye.BufferSourceConverter.toUint8Array(R)}fromBER(R,pe,Ae){const he=pe+Ae;this.dataView=ye.BufferSourceConverter.toUint8Array(R).subarray(pe,he);return he}toBER(R){return this.dataView.slice().buffer}}function compareSchema(R,pe,Ae){if(Ae instanceof Choice){for(let he=0;he0){if(Ae.valueBlock.value[0]instanceof Repeated){ye=pe.valueBlock.value.length}}if(ye===0){return{verified:true,result:R}}if(pe.valueBlock.value.length===0&&Ae.valueBlock.value.length!==0){let pe=true;for(let R=0;R=pe.valueBlock.value.length){if(Ae.valueBlock.value[me].optional===false){const pe={verified:false,result:R};R.error="Inconsistent length between ASN.1 data and schema";if(Ae.name){Ae.name=Ae.name.replace(/^\s+|\s+$/g,Qe);if(Ae.name){delete R[Ae.name];pe.name=Ae.name}}return pe}}else{if(Ae.valueBlock.value[0]instanceof Repeated){ge=compareSchema(R,pe.valueBlock.value[me],Ae.valueBlock.value[0].value);if(ge.verified===false){if(Ae.valueBlock.value[0].optional)he++;else{if(Ae.name){Ae.name=Ae.name.replace(/^\s+|\s+$/g,Qe);if(Ae.name)delete R[Ae.name]}return ge}}if(Ee in Ae.valueBlock.value[0]&&Ae.valueBlock.value[0].name.length>0){let he={};if(Re in Ae.valueBlock.value[0]&&Ae.valueBlock.value[0].local)he=pe;else he=R;if(typeof he[Ae.valueBlock.value[0].name]==="undefined")he[Ae.valueBlock.value[0].name]=[];he[Ae.valueBlock.value[0].name].push(pe.valueBlock.value[me])}}else{ge=compareSchema(R,pe.valueBlock.value[me-he],Ae.valueBlock.value[me]);if(ge.verified===false){if(Ae.valueBlock.value[me].optional)he++;else{if(Ae.name){Ae.name=Ae.name.replace(/^\s+|\s+$/g,Qe);if(Ae.name)delete R[Ae.name]}return ge}}}}}if(ge.verified===false){const pe={verified:false,result:R};if(Ae.name){Ae.name=Ae.name.replace(/^\s+|\s+$/g,Qe);if(Ae.name){delete R[Ae.name];pe.name=Ae.name}}return pe}return{verified:true,result:R}}if(Ae.primitiveSchema&&we in pe.valueBlock){const he=localFromBER(pe.valueBlock.valueHexView);if(he.offset===-1){const pe={verified:false,result:he.result};if(Ae.name){Ae.name=Ae.name.replace(/^\s+|\s+$/g,Qe);if(Ae.name){delete R[Ae.name];pe.name=Ae.name}}return pe}return compareSchema(R,he.result,Ae.primitiveSchema)}return{verified:true,result:R}}function verifySchema(R,pe){if(pe instanceof Object===false){return{verified:false,result:{error:"Wrong ASN.1 schema type"}}}const Ae=localFromBER(ye.BufferSourceConverter.toUint8Array(R));if(Ae.offset===-1){return{verified:false,result:Ae.result}}return compareSchema(Ae.result,Ae.result,pe)}pe.Any=Any;pe.BaseBlock=BaseBlock;pe.BaseStringBlock=BaseStringBlock;pe.BitString=BitString;pe.BmpString=BmpString;pe.Boolean=Boolean;pe.CharacterString=CharacterString;pe.Choice=Choice;pe.Constructed=Constructed;pe.DATE=DATE;pe.DateTime=DateTime;pe.Duration=Duration;pe.EndOfContent=EndOfContent;pe.Enumerated=Enumerated;pe.GeneralString=GeneralString;pe.GeneralizedTime=GeneralizedTime;pe.GraphicString=GraphicString;pe.HexBlock=HexBlock;pe.IA5String=IA5String;pe.Integer=Integer;pe.Null=Null;pe.NumericString=NumericString;pe.ObjectIdentifier=ObjectIdentifier;pe.OctetString=OctetString;pe.Primitive=Primitive;pe.PrintableString=PrintableString;pe.RawData=RawData;pe.RelativeObjectIdentifier=RelativeObjectIdentifier;pe.Repeated=Repeated;pe.Sequence=Sequence;pe.Set=Set;pe.TIME=TIME;pe.TeletexString=TeletexString;pe.TimeOfDay=TimeOfDay;pe.UTCTime=UTCTime;pe.UniversalString=UniversalString;pe.Utf8String=Utf8String;pe.ValueBlock=ValueBlock;pe.VideotexString=VideotexString;pe.ViewWriter=ViewWriter;pe.VisibleString=VisibleString;pe.compareSchema=compareSchema;pe.fromBER=fromBER;pe.verifySchema=verifySchema},14812:(R,pe,Ae)=>{R.exports={parallel:Ae(8210),serial:Ae(50445),serialOrdered:Ae(3578)}},1700:R=>{R.exports=abort;function abort(R){Object.keys(R.jobs).forEach(clean.bind(R));R.jobs={}}function clean(R){if(typeof this.jobs[R]=="function"){this.jobs[R]()}}},72794:(R,pe,Ae)=>{var he=Ae(15295);R.exports=async;function async(R){var pe=false;he((function(){pe=true}));return function async_callback(Ae,ge){if(pe){R(Ae,ge)}else{he((function nextTick_callback(){R(Ae,ge)}))}}}},15295:R=>{R.exports=defer;function defer(R){var pe=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(pe){pe(R)}else{setTimeout(R,0)}}},9023:(R,pe,Ae)=>{var he=Ae(72794),ge=Ae(1700);R.exports=iterate;function iterate(R,pe,Ae,he){var ye=Ae["keyedList"]?Ae["keyedList"][Ae.index]:Ae.index;Ae.jobs[ye]=runJob(pe,ye,R[ye],(function(R,pe){if(!(ye in Ae.jobs)){return}delete Ae.jobs[ye];if(R){ge(Ae)}else{Ae.results[ye]=pe}he(R,Ae.results)}))}function runJob(R,pe,Ae,ge){var ye;if(R.length==2){ye=R(Ae,he(ge))}else{ye=R(Ae,pe,he(ge))}return ye}},42474:R=>{R.exports=state;function state(R,pe){var Ae=!Array.isArray(R),he={index:0,keyedList:Ae||pe?Object.keys(R):null,jobs:{},results:Ae?{}:[],size:Ae?Object.keys(R).length:R.length};if(pe){he.keyedList.sort(Ae?pe:function(Ae,he){return pe(R[Ae],R[he])})}return he}},37942:(R,pe,Ae)=>{var he=Ae(1700),ge=Ae(72794);R.exports=terminator;function terminator(R){if(!Object.keys(this.jobs).length){return}this.index=this.size;he(this);ge(R)(null,this.results)}},8210:(R,pe,Ae)=>{var he=Ae(9023),ge=Ae(42474),ye=Ae(37942);R.exports=parallel;function parallel(R,pe,Ae){var me=ge(R);while(me.index<(me["keyedList"]||R).length){he(R,pe,me,(function(R,pe){if(R){Ae(R,pe);return}if(Object.keys(me.jobs).length===0){Ae(null,me.results);return}}));me.index++}return ye.bind(me,Ae)}},50445:(R,pe,Ae)=>{var he=Ae(3578);R.exports=serial;function serial(R,pe,Ae){return he(R,pe,null,Ae)}},3578:(R,pe,Ae)=>{var he=Ae(9023),ge=Ae(42474),ye=Ae(37942);R.exports=serialOrdered;R.exports.ascending=ascending;R.exports.descending=descending;function serialOrdered(R,pe,Ae,me){var ve=ge(R,Ae);he(R,pe,ve,(function iteratorHandler(Ae,ge){if(Ae){me(Ae,ge);return}ve.index++;if(ve.index<(ve["keyedList"]||R).length){he(R,pe,ve,iteratorHandler);return}me(null,ve.results)}));return ye.bind(ve,me)}function ascending(R,pe){return Rpe?1:0}function descending(R,pe){return-1*ascending(R,pe)}},40641:R=>{"use strict";R.exports=function serialize(R){if(R===null||typeof R!=="object"||R.toJSON!=null){return JSON.stringify(R)}if(Array.isArray(R)){return"["+R.reduce(((R,pe,Ae)=>{const he=Ae===0?"":",";const ge=pe===undefined||typeof pe==="symbol"?null:pe;return R+he+serialize(ge)}),"")+"]"}return"{"+Object.keys(R).sort().reduce(((pe,Ae,he)=>{if(R[Ae]===undefined||typeof R[Ae]==="symbol"){return pe}const ge=pe.length===0?"":",";return pe+ge+serialize(Ae)+":"+serialize(R[Ae])}),"")+"}"}},4114:function(R){ /*! For license information please see cbor.js.LICENSE.txt */ -!function(pe,Ae){true?R.exports=Ae():0}(this,(()=>(()=>{var R={8599:R=>{"use strict";const{AbortController:pe,AbortSignal:Ae}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;R.exports=pe,R.exports.AbortSignal=Ae,R.exports.default=pe},9742:(R,pe)=>{"use strict";pe.byteLength=function(R){var pe=a(R),Ae=pe[0],he=pe[1];return 3*(Ae+he)/4-he},pe.toByteArray=function(R){var pe,Ae,ye=a(R),me=ye[0],ve=ye[1],be=new ge(function(R,pe,Ae){return 3*(pe+Ae)/4-Ae}(0,me,ve)),Ee=0,Ce=ve>0?me-4:me;for(Ae=0;Ae>16&255,be[Ee++]=pe>>8&255,be[Ee++]=255&pe;return 2===ve&&(pe=he[R.charCodeAt(Ae)]<<2|he[R.charCodeAt(Ae+1)]>>4,be[Ee++]=255&pe),1===ve&&(pe=he[R.charCodeAt(Ae)]<<10|he[R.charCodeAt(Ae+1)]<<4|he[R.charCodeAt(Ae+2)]>>2,be[Ee++]=pe>>8&255,be[Ee++]=255&pe),be},pe.fromByteArray=function(R){for(var pe,he=R.length,ge=he%3,ye=[],me=16383,ve=0,be=he-ge;vebe?be:ve+me));return 1===ge?(pe=R[he-1],ye.push(Ae[pe>>2]+Ae[pe<<4&63]+"==")):2===ge&&(pe=(R[he-2]<<8)+R[he-1],ye.push(Ae[pe>>10]+Ae[pe>>4&63]+Ae[pe<<2&63]+"=")),ye.join("")};for(var Ae=[],he=[],ge="undefined"!=typeof Uint8Array?Uint8Array:Array,ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",me=0;me<64;++me)Ae[me]=ye[me],he[ye.charCodeAt(me)]=me;function a(R){var pe=R.length;if(pe%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Ae=R.indexOf("=");return-1===Ae&&(Ae=pe),[Ae,Ae===pe?0:4-Ae%4]}function l(R,pe,he){for(var ge,ye,me=[],ve=pe;ve>18&63]+Ae[ye>>12&63]+Ae[ye>>6&63]+Ae[63&ye]);return me.join("")}he["-".charCodeAt(0)]=62,he["_".charCodeAt(0)]=63},8764:(R,pe,Ae)=>{"use strict";const he=Ae(9742),ge=Ae(645),ye="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;pe.Buffer=l,pe.SlowBuffer=function(R){return+R!=R&&(R=0),l.alloc(+R)},pe.INSPECT_MAX_BYTES=50;const me=2147483647;function a(R){if(R>me)throw new RangeError('The value "'+R+'" is invalid for option "size"');const pe=new Uint8Array(R);return Object.setPrototypeOf(pe,l.prototype),pe}function l(R,pe,Ae){if("number"==typeof R){if("string"==typeof pe)throw new TypeError('The "string" argument must be of type string. Received type number');return f(R)}return u(R,pe,Ae)}function u(R,pe,Ae){if("string"==typeof R)return function(R,pe){if("string"==typeof pe&&""!==pe||(pe="utf8"),!l.isEncoding(pe))throw new TypeError("Unknown encoding: "+pe);const Ae=0|b(R,pe);let he=a(Ae);const ge=he.write(R,pe);return ge!==Ae&&(he=he.slice(0,ge)),he}(R,pe);if(ArrayBuffer.isView(R))return function(R){if(z(R,Uint8Array)){const pe=new Uint8Array(R);return d(pe.buffer,pe.byteOffset,pe.byteLength)}return h(R)}(R);if(null==R)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R);if(z(R,ArrayBuffer)||R&&z(R.buffer,ArrayBuffer))return d(R,pe,Ae);if("undefined"!=typeof SharedArrayBuffer&&(z(R,SharedArrayBuffer)||R&&z(R.buffer,SharedArrayBuffer)))return d(R,pe,Ae);if("number"==typeof R)throw new TypeError('The "value" argument must not be of type number. Received type number');const he=R.valueOf&&R.valueOf();if(null!=he&&he!==R)return l.from(he,pe,Ae);const ge=function(R){if(l.isBuffer(R)){const pe=0|p(R.length),Ae=a(pe);return 0===Ae.length||R.copy(Ae,0,0,pe),Ae}return void 0!==R.length?"number"!=typeof R.length||X(R.length)?a(0):h(R):"Buffer"===R.type&&Array.isArray(R.data)?h(R.data):void 0}(R);if(ge)return ge;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof R[Symbol.toPrimitive])return l.from(R[Symbol.toPrimitive]("string"),pe,Ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R)}function c(R){if("number"!=typeof R)throw new TypeError('"size" argument must be of type number');if(R<0)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function f(R){return c(R),a(R<0?0:0|p(R))}function h(R){const pe=R.length<0?0:0|p(R.length),Ae=a(pe);for(let he=0;he=me)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+me.toString(16)+" bytes");return 0|R}function b(R,pe){if(l.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||z(R,ArrayBuffer))return R.byteLength;if("string"!=typeof R)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);const Ae=R.length,he=arguments.length>2&&!0===arguments[2];if(!he&&0===Ae)return 0;let ge=!1;for(;;)switch(pe){case"ascii":case"latin1":case"binary":return Ae;case"utf8":case"utf-8":return V(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Ae;case"hex":return Ae>>>1;case"base64":return K(R).length;default:if(ge)return he?-1:V(R).length;pe=(""+pe).toLowerCase(),ge=!0}}function y(R,pe,Ae){let he=!1;if((void 0===pe||pe<0)&&(pe=0),pe>this.length)return"";if((void 0===Ae||Ae>this.length)&&(Ae=this.length),Ae<=0)return"";if((Ae>>>=0)<=(pe>>>=0))return"";for(R||(R="utf8");;)switch(R){case"hex":return L(this,pe,Ae);case"utf8":case"utf-8":return T(this,pe,Ae);case"ascii":return B(this,pe,Ae);case"latin1":case"binary":return N(this,pe,Ae);case"base64":return I(this,pe,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,pe,Ae);default:if(he)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),he=!0}}function g(R,pe,Ae){const he=R[pe];R[pe]=R[Ae],R[Ae]=he}function w(R,pe,Ae,he,ge){if(0===R.length)return-1;if("string"==typeof Ae?(he=Ae,Ae=0):Ae>2147483647?Ae=2147483647:Ae<-2147483648&&(Ae=-2147483648),X(Ae=+Ae)&&(Ae=ge?0:R.length-1),Ae<0&&(Ae=R.length+Ae),Ae>=R.length){if(ge)return-1;Ae=R.length-1}else if(Ae<0){if(!ge)return-1;Ae=0}if("string"==typeof pe&&(pe=l.from(pe,he)),l.isBuffer(pe))return 0===pe.length?-1:_(R,pe,Ae,he,ge);if("number"==typeof pe)return pe&=255,"function"==typeof Uint8Array.prototype.indexOf?ge?Uint8Array.prototype.indexOf.call(R,pe,Ae):Uint8Array.prototype.lastIndexOf.call(R,pe,Ae):_(R,[pe],Ae,he,ge);throw new TypeError("val must be string, number or Buffer")}function _(R,pe,Ae,he,ge){let ye,me=1,ve=R.length,be=pe.length;if(void 0!==he&&("ucs2"===(he=String(he).toLowerCase())||"ucs-2"===he||"utf16le"===he||"utf-16le"===he)){if(R.length<2||pe.length<2)return-1;me=2,ve/=2,be/=2,Ae/=2}function u(R,pe){return 1===me?R[pe]:R.readUInt16BE(pe*me)}if(ge){let he=-1;for(ye=Ae;yeve&&(Ae=ve-be),ye=Ae;ye>=0;ye--){let Ae=!0;for(let he=0;hege&&(he=ge):he=ge;const ye=pe.length;let me;for(he>ye/2&&(he=ye/2),me=0;me>8,ge=Ae%256,ye.push(ge),ye.push(he);return ye}(pe,R.length-Ae),R,Ae,he)}function I(R,pe,Ae){return 0===pe&&Ae===R.length?he.fromByteArray(R):he.fromByteArray(R.slice(pe,Ae))}function T(R,pe,Ae){Ae=Math.min(R.length,Ae);const he=[];let ge=pe;for(;ge239?4:pe>223?3:pe>191?2:1;if(ge+me<=Ae){let Ae,he,ve,be;switch(me){case 1:pe<128&&(ye=pe);break;case 2:Ae=R[ge+1],128==(192&Ae)&&(be=(31&pe)<<6|63&Ae,be>127&&(ye=be));break;case 3:Ae=R[ge+1],he=R[ge+2],128==(192&Ae)&&128==(192&he)&&(be=(15&pe)<<12|(63&Ae)<<6|63&he,be>2047&&(be<55296||be>57343)&&(ye=be));break;case 4:Ae=R[ge+1],he=R[ge+2],ve=R[ge+3],128==(192&Ae)&&128==(192&he)&&128==(192&ve)&&(be=(15&pe)<<18|(63&Ae)<<12|(63&he)<<6|63&ve,be>65535&&be<1114112&&(ye=be))}}null===ye?(ye=65533,me=1):ye>65535&&(ye-=65536,he.push(ye>>>10&1023|55296),ye=56320|1023&ye),he.push(ye),ge+=me}return function(R){const pe=R.length;if(pe<=ve)return String.fromCharCode.apply(String,R);let Ae="",he=0;for(;hehe.length?(l.isBuffer(pe)||(pe=l.from(pe)),pe.copy(he,ge)):Uint8Array.prototype.set.call(he,pe,ge);else{if(!l.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(he,ge)}ge+=pe.length}return he},l.byteLength=b,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const R=this.length;if(R%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let pe=0;peAe&&(R+=" ... "),""},ye&&(l.prototype[ye]=l.prototype.inspect),l.prototype.compare=function(R,pe,Ae,he,ge){if(z(R,Uint8Array)&&(R=l.from(R,R.offset,R.byteLength)),!l.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(void 0===pe&&(pe=0),void 0===Ae&&(Ae=R?R.length:0),void 0===he&&(he=0),void 0===ge&&(ge=this.length),pe<0||Ae>R.length||he<0||ge>this.length)throw new RangeError("out of range index");if(he>=ge&&pe>=Ae)return 0;if(he>=ge)return-1;if(pe>=Ae)return 1;if(this===R)return 0;let ye=(ge>>>=0)-(he>>>=0),me=(Ae>>>=0)-(pe>>>=0);const ve=Math.min(ye,me),be=this.slice(he,ge),Ee=R.slice(pe,Ae);for(let R=0;R>>=0,isFinite(Ae)?(Ae>>>=0,void 0===he&&(he="utf8")):(he=Ae,Ae=void 0)}const ge=this.length-pe;if((void 0===Ae||Ae>ge)&&(Ae=ge),R.length>0&&(Ae<0||pe<0)||pe>this.length)throw new RangeError("Attempt to write outside buffer bounds");he||(he="utf8");let ye=!1;for(;;)switch(he){case"hex":return m(this,R,pe,Ae);case"utf8":case"utf-8":return E(this,R,pe,Ae);case"ascii":case"latin1":case"binary":return S(this,R,pe,Ae);case"base64":return v(this,R,pe,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,R,pe,Ae);default:if(ye)throw new TypeError("Unknown encoding: "+he);he=(""+he).toLowerCase(),ye=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const ve=4096;function B(R,pe,Ae){let he="";Ae=Math.min(R.length,Ae);for(let ge=pe;gehe)&&(Ae=he);let ge="";for(let he=pe;heAe)throw new RangeError("Trying to access beyond buffer length")}function O(R,pe,Ae,he,ge,ye){if(!l.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(pe>ge||peR.length)throw new RangeError("Index out of range")}function x(R,pe,Ae,he,ge){W(pe,he,ge,R,Ae,7);let ye=Number(pe&BigInt(4294967295));R[Ae++]=ye,ye>>=8,R[Ae++]=ye,ye>>=8,R[Ae++]=ye,ye>>=8,R[Ae++]=ye;let me=Number(pe>>BigInt(32)&BigInt(4294967295));return R[Ae++]=me,me>>=8,R[Ae++]=me,me>>=8,R[Ae++]=me,me>>=8,R[Ae++]=me,Ae}function k(R,pe,Ae,he,ge){W(pe,he,ge,R,Ae,7);let ye=Number(pe&BigInt(4294967295));R[Ae+7]=ye,ye>>=8,R[Ae+6]=ye,ye>>=8,R[Ae+5]=ye,ye>>=8,R[Ae+4]=ye;let me=Number(pe>>BigInt(32)&BigInt(4294967295));return R[Ae+3]=me,me>>=8,R[Ae+2]=me,me>>=8,R[Ae+1]=me,me>>=8,R[Ae]=me,Ae+8}function P(R,pe,Ae,he,ge,ye){if(Ae+he>R.length)throw new RangeError("Index out of range");if(Ae<0)throw new RangeError("Index out of range")}function j(R,pe,Ae,he,ye){return pe=+pe,Ae>>>=0,ye||P(R,0,Ae,4),ge.write(R,pe,Ae,he,23,4),Ae+4}function D(R,pe,Ae,he,ye){return pe=+pe,Ae>>>=0,ye||P(R,0,Ae,8),ge.write(R,pe,Ae,he,52,8),Ae+8}l.prototype.slice=function(R,pe){const Ae=this.length;(R=~~R)<0?(R+=Ae)<0&&(R=0):R>Ae&&(R=Ae),(pe=void 0===pe?Ae:~~pe)<0?(pe+=Ae)<0&&(pe=0):pe>Ae&&(pe=Ae),pe>>=0,pe>>>=0,Ae||M(R,pe,this.length);let he=this[R],ge=1,ye=0;for(;++ye>>=0,pe>>>=0,Ae||M(R,pe,this.length);let he=this[R+--pe],ge=1;for(;pe>0&&(ge*=256);)he+=this[R+--pe]*ge;return he},l.prototype.readUint8=l.prototype.readUInt8=function(R,pe){return R>>>=0,pe||M(R,1,this.length),this[R]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(R,pe){return R>>>=0,pe||M(R,2,this.length),this[R]|this[R+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(R,pe){return R>>>=0,pe||M(R,2,this.length),this[R]<<8|this[R+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(R,pe){return R>>>=0,pe||M(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+16777216*this[R+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(R,pe){return R>>>=0,pe||M(R,4,this.length),16777216*this[R]+(this[R+1]<<16|this[R+2]<<8|this[R+3])},l.prototype.readBigUInt64LE=Z((function(R){G(R>>>=0,"offset");const pe=this[R],Ae=this[R+7];void 0!==pe&&void 0!==Ae||Y(R,this.length-8);const he=pe+256*this[++R]+65536*this[++R]+this[++R]*2**24,ge=this[++R]+256*this[++R]+65536*this[++R]+Ae*2**24;return BigInt(he)+(BigInt(ge)<>>=0,"offset");const pe=this[R],Ae=this[R+7];void 0!==pe&&void 0!==Ae||Y(R,this.length-8);const he=pe*2**24+65536*this[++R]+256*this[++R]+this[++R],ge=this[++R]*2**24+65536*this[++R]+256*this[++R]+Ae;return(BigInt(he)<>>=0,pe>>>=0,Ae||M(R,pe,this.length);let he=this[R],ge=1,ye=0;for(;++ye=ge&&(he-=Math.pow(2,8*pe)),he},l.prototype.readIntBE=function(R,pe,Ae){R>>>=0,pe>>>=0,Ae||M(R,pe,this.length);let he=pe,ge=1,ye=this[R+--he];for(;he>0&&(ge*=256);)ye+=this[R+--he]*ge;return ge*=128,ye>=ge&&(ye-=Math.pow(2,8*pe)),ye},l.prototype.readInt8=function(R,pe){return R>>>=0,pe||M(R,1,this.length),128&this[R]?-1*(255-this[R]+1):this[R]},l.prototype.readInt16LE=function(R,pe){R>>>=0,pe||M(R,2,this.length);const Ae=this[R]|this[R+1]<<8;return 32768&Ae?4294901760|Ae:Ae},l.prototype.readInt16BE=function(R,pe){R>>>=0,pe||M(R,2,this.length);const Ae=this[R+1]|this[R]<<8;return 32768&Ae?4294901760|Ae:Ae},l.prototype.readInt32LE=function(R,pe){return R>>>=0,pe||M(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},l.prototype.readInt32BE=function(R,pe){return R>>>=0,pe||M(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},l.prototype.readBigInt64LE=Z((function(R){G(R>>>=0,"offset");const pe=this[R],Ae=this[R+7];void 0!==pe&&void 0!==Ae||Y(R,this.length-8);const he=this[R+4]+256*this[R+5]+65536*this[R+6]+(Ae<<24);return(BigInt(he)<>>=0,"offset");const pe=this[R],Ae=this[R+7];void 0!==pe&&void 0!==Ae||Y(R,this.length-8);const he=(pe<<24)+65536*this[++R]+256*this[++R]+this[++R];return(BigInt(he)<>>=0,pe||M(R,4,this.length),ge.read(this,R,!0,23,4)},l.prototype.readFloatBE=function(R,pe){return R>>>=0,pe||M(R,4,this.length),ge.read(this,R,!1,23,4)},l.prototype.readDoubleLE=function(R,pe){return R>>>=0,pe||M(R,8,this.length),ge.read(this,R,!0,52,8)},l.prototype.readDoubleBE=function(R,pe){return R>>>=0,pe||M(R,8,this.length),ge.read(this,R,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(R,pe,Ae,he){R=+R,pe>>>=0,Ae>>>=0,he||O(this,R,pe,Ae,Math.pow(2,8*Ae)-1,0);let ge=1,ye=0;for(this[pe]=255&R;++ye>>=0,Ae>>>=0,he||O(this,R,pe,Ae,Math.pow(2,8*Ae)-1,0);let ge=Ae-1,ye=1;for(this[pe+ge]=255&R;--ge>=0&&(ye*=256);)this[pe+ge]=R/ye&255;return pe+Ae},l.prototype.writeUint8=l.prototype.writeUInt8=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,1,255,0),this[pe]=255&R,pe+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,2,65535,0),this[pe]=255&R,this[pe+1]=R>>>8,pe+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,2,65535,0),this[pe]=R>>>8,this[pe+1]=255&R,pe+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,4,4294967295,0),this[pe+3]=R>>>24,this[pe+2]=R>>>16,this[pe+1]=R>>>8,this[pe]=255&R,pe+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,4,4294967295,0),this[pe]=R>>>24,this[pe+1]=R>>>16,this[pe+2]=R>>>8,this[pe+3]=255&R,pe+4},l.prototype.writeBigUInt64LE=Z((function(R,pe=0){return x(this,R,pe,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Z((function(R,pe=0){return k(this,R,pe,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(R,pe,Ae,he){if(R=+R,pe>>>=0,!he){const he=Math.pow(2,8*Ae-1);O(this,R,pe,Ae,he-1,-he)}let ge=0,ye=1,me=0;for(this[pe]=255&R;++ge>0)-me&255;return pe+Ae},l.prototype.writeIntBE=function(R,pe,Ae,he){if(R=+R,pe>>>=0,!he){const he=Math.pow(2,8*Ae-1);O(this,R,pe,Ae,he-1,-he)}let ge=Ae-1,ye=1,me=0;for(this[pe+ge]=255&R;--ge>=0&&(ye*=256);)R<0&&0===me&&0!==this[pe+ge+1]&&(me=1),this[pe+ge]=(R/ye>>0)-me&255;return pe+Ae},l.prototype.writeInt8=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,1,127,-128),R<0&&(R=255+R+1),this[pe]=255&R,pe+1},l.prototype.writeInt16LE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,2,32767,-32768),this[pe]=255&R,this[pe+1]=R>>>8,pe+2},l.prototype.writeInt16BE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,2,32767,-32768),this[pe]=R>>>8,this[pe+1]=255&R,pe+2},l.prototype.writeInt32LE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,4,2147483647,-2147483648),this[pe]=255&R,this[pe+1]=R>>>8,this[pe+2]=R>>>16,this[pe+3]=R>>>24,pe+4},l.prototype.writeInt32BE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[pe]=R>>>24,this[pe+1]=R>>>16,this[pe+2]=R>>>8,this[pe+3]=255&R,pe+4},l.prototype.writeBigInt64LE=Z((function(R,pe=0){return x(this,R,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Z((function(R,pe=0){return k(this,R,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(R,pe,Ae){return j(this,R,pe,!0,Ae)},l.prototype.writeFloatBE=function(R,pe,Ae){return j(this,R,pe,!1,Ae)},l.prototype.writeDoubleLE=function(R,pe,Ae){return D(this,R,pe,!0,Ae)},l.prototype.writeDoubleBE=function(R,pe,Ae){return D(this,R,pe,!1,Ae)},l.prototype.copy=function(R,pe,Ae,he){if(!l.isBuffer(R))throw new TypeError("argument should be a Buffer");if(Ae||(Ae=0),he||0===he||(he=this.length),pe>=R.length&&(pe=R.length),pe||(pe=0),he>0&&he=this.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("sourceEnd out of bounds");he>this.length&&(he=this.length),R.length-pe>>=0,Ae=void 0===Ae?this.length:Ae>>>0,R||(R=0),"number"==typeof R)for(ge=pe;ge=he+4;Ae-=3)pe=`_${R.slice(Ae-3,Ae)}${pe}`;return`${R.slice(0,Ae)}${pe}`}function W(R,pe,Ae,he,ge,ye){if(R>Ae||R3?0===pe||pe===BigInt(0)?`>= 0${he} and < 2${he} ** ${8*(ye+1)}${he}`:`>= -(2${he} ** ${8*(ye+1)-1}${he}) and < 2 ** ${8*(ye+1)-1}${he}`:`>= ${pe}${he} and <= ${Ae}${he}`,new be.ERR_OUT_OF_RANGE("value",ge,R)}!function(R,pe,Ae){G(pe,"offset"),void 0!==R[pe]&&void 0!==R[pe+Ae]||Y(pe,R.length-(Ae+1))}(he,ge,ye)}function G(R,pe){if("number"!=typeof R)throw new be.ERR_INVALID_ARG_TYPE(pe,"number",R)}function Y(R,pe,Ae){if(Math.floor(R)!==R)throw G(R,Ae),new be.ERR_OUT_OF_RANGE(Ae||"offset","an integer",R);if(pe<0)throw new be.ERR_BUFFER_OUT_OF_BOUNDS;throw new be.ERR_OUT_OF_RANGE(Ae||"offset",`>= ${Ae?1:0} and <= ${pe}`,R)}C("ERR_BUFFER_OUT_OF_BOUNDS",(function(R){return R?`${R} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),C("ERR_INVALID_ARG_TYPE",(function(R,pe){return`The "${R}" argument must be of type number. Received type ${typeof pe}`}),TypeError),C("ERR_OUT_OF_RANGE",(function(R,pe,Ae){let he=`The value of "${R}" is out of range.`,ge=Ae;return Number.isInteger(Ae)&&Math.abs(Ae)>2**32?ge=$(String(Ae)):"bigint"==typeof Ae&&(ge=String(Ae),(Ae>BigInt(2)**BigInt(32)||Ae<-(BigInt(2)**BigInt(32)))&&(ge=$(ge)),ge+="n"),he+=` It must be ${pe}. Received ${ge}`,he}),RangeError);const Ee=/[^+/0-9A-Za-z-_]/g;function V(R,pe){let Ae;pe=pe||1/0;const he=R.length;let ge=null;const ye=[];for(let me=0;me55295&&Ae<57344){if(!ge){if(Ae>56319){(pe-=3)>-1&&ye.push(239,191,189);continue}if(me+1===he){(pe-=3)>-1&&ye.push(239,191,189);continue}ge=Ae;continue}if(Ae<56320){(pe-=3)>-1&&ye.push(239,191,189),ge=Ae;continue}Ae=65536+(ge-55296<<10|Ae-56320)}else ge&&(pe-=3)>-1&&ye.push(239,191,189);if(ge=null,Ae<128){if((pe-=1)<0)break;ye.push(Ae)}else if(Ae<2048){if((pe-=2)<0)break;ye.push(Ae>>6|192,63&Ae|128)}else if(Ae<65536){if((pe-=3)<0)break;ye.push(Ae>>12|224,Ae>>6&63|128,63&Ae|128)}else{if(!(Ae<1114112))throw new Error("Invalid code point");if((pe-=4)<0)break;ye.push(Ae>>18|240,Ae>>12&63|128,Ae>>6&63|128,63&Ae|128)}}return ye}function K(R){return he.toByteArray(function(R){if((R=(R=R.split("=")[0]).trim().replace(Ee,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(R))}function q(R,pe,Ae,he){let ge;for(ge=0;ge=pe.length||ge>=R.length);++ge)pe[ge+Ae]=R[ge];return ge}function z(R,pe){return R instanceof pe||null!=R&&null!=R.constructor&&null!=R.constructor.name&&R.constructor.name===pe.name}function X(R){return R!=R}const Ce=function(){const R="0123456789abcdef",pe=new Array(256);for(let Ae=0;Ae<16;++Ae){const he=16*Ae;for(let ge=0;ge<16;++ge)pe[he+ge]=R[Ae]+R[ge]}return pe}();function Z(R){return"undefined"==typeof BigInt?Q:R}function Q(){throw new Error("BigInt not supported")}},2141:(R,pe,Ae)=>{"use strict";const he=Ae(2020),ge=Ae(4694),ye=Ae(6774),me=Ae(4666),ve=Ae(9032),be=Ae(4785),Ee=Ae(3070),Ce=Ae(8112);R.exports={Commented:he,Diagnose:ge,Decoder:ye,Encoder:me,Simple:ve,Tagged:be,Map:Ee,SharedValueEncoder:Ce,comment:he.comment,decodeAll:ye.decodeAll,decodeFirst:ye.decodeFirst,decodeAllSync:ye.decodeAllSync,decodeFirstSync:ye.decodeFirstSync,diagnose:ge.diagnose,encode:me.encode,encodeCanonical:me.encodeCanonical,encodeOne:me.encodeOne,encodeAsync:me.encodeAsync,decode:ye.decodeFirstSync,leveldb:{decode:ye.decodeFirstSync,encode:me.encode,buffer:!0,name:"cbor"},reset(){me.reset(),be.reset()}}},2020:(R,pe,Ae)=>{"use strict";const he=Ae(2830),ge=Ae(9873),ye=Ae(6774),me=Ae(4202),{MT:ve,NUMBYTES:be,SYMS:Ee}=Ae(9066),{Buffer:Ce}=Ae(8764);function f(R){return R>1?"s":""}class h extends he.Transform{constructor(R={}){const{depth:pe=1,max_depth:Ae=10,no_summary:he=!1,tags:ge={},preferWeb:ve,encoding:be,...Ee}=R;super({...Ee,readableObjectMode:!1,writableObjectMode:!1}),this.depth=pe,this.max_depth=Ae,this.all=new me,ge[24]||(ge[24]=this._tag_24.bind(this)),this.parser=new ye({tags:ge,max_depth:Ae,preferWeb:ve,encoding:be}),this.parser.on("value",this._on_value.bind(this)),this.parser.on("start",this._on_start.bind(this)),this.parser.on("start-string",this._on_start_string.bind(this)),this.parser.on("stop",this._on_stop.bind(this)),this.parser.on("more-bytes",this._on_more.bind(this)),this.parser.on("error",this._on_error.bind(this)),he||this.parser.on("data",this._on_data.bind(this)),this.parser.bs.on("read",this._on_read.bind(this))}_tag_24(R){const pe=new h({depth:this.depth+1,no_summary:!0});pe.on("data",(R=>this.push(R))),pe.on("error",(R=>this.emit("error",R))),pe.end(R)}_transform(R,pe,Ae){this.parser.write(R,pe,Ae)}_flush(R){return this.parser._flush(R)}static comment(R,pe={},Ae=null){if(null==R)throw new Error("input required");({options:pe,cb:Ae}=function(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"number":return{options:{max_depth:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}(pe,Ae));const he=new me,{encoding:ye="hex",...ve}=pe,be=new h(ve);let Ee=null;return"function"==typeof Ae?(be.on("end",(()=>{Ae(null,he.toString("utf8"))})),be.on("error",Ae)):Ee=new Promise(((R,pe)=>{be.on("end",(()=>{R(he.toString("utf8"))})),be.on("error",pe)})),be.pipe(he),ge.guessEncoding(R,ye).pipe(be),Ee}_on_error(R){this.push("ERROR: "),this.push(R.toString()),this.push("\n")}_on_read(R){this.all.write(R);const pe=R.toString("hex");this.push(new Array(this.depth+1).join(" ")),this.push(pe);let Ae=2*(this.max_depth-this.depth)-pe.length;Ae<1&&(Ae=1),this.push(new Array(Ae+1).join(" ")),this.push("-- ")}_on_more(R,pe,Ae,he){let ge="";switch(this.depth++,R){case ve.POS_INT:ge="Positive number,";break;case ve.NEG_INT:ge="Negative number,";break;case ve.ARRAY:ge="Array, length";break;case ve.MAP:ge="Map, count";break;case ve.BYTE_STRING:ge="Bytes, length";break;case ve.UTF8_STRING:ge="String, length";break;case ve.SIMPLE_FLOAT:ge=1===pe?"Simple value,":"Float,"}this.push(`${ge} next ${pe} byte${f(pe)}\n`)}_on_start_string(R,pe,Ae,he){let ge="";switch(this.depth++,R){case ve.BYTE_STRING:ge=`Bytes, length: ${pe}`;break;case ve.UTF8_STRING:ge=`String, length: ${pe.toString()}`}this.push(`${ge}\n`)}_on_start(R,pe,Ae,he){switch(this.depth++,Ae){case ve.ARRAY:this.push(`[${he}], `);break;case ve.MAP:he%2?this.push(`{Val:${Math.floor(he/2)}}, `):this.push(`{Key:${Math.floor(he/2)}}, `)}switch(R){case ve.TAG:this.push(`Tag #${pe}`),24===pe&&this.push(" Encoded CBOR data item");break;case ve.ARRAY:pe===Ee.STREAM?this.push("Array (streaming)"):this.push(`Array, ${pe} item${f(pe)}`);break;case ve.MAP:pe===Ee.STREAM?this.push("Map (streaming)"):this.push(`Map, ${pe} pair${f(pe)}`);break;case ve.BYTE_STRING:this.push("Bytes (streaming)");break;case ve.UTF8_STRING:this.push("String (streaming)")}this.push("\n")}_on_stop(R){this.depth--}_on_value(R,pe,Ae,he){if(R!==Ee.BREAK)switch(pe){case ve.ARRAY:this.push(`[${Ae}], `);break;case ve.MAP:Ae%2?this.push(`{Val:${Math.floor(Ae/2)}}, `):this.push(`{Key:${Math.floor(Ae/2)}}, `)}const ye=ge.cborValueToString(R,-1/0);switch("string"==typeof R||Ce.isBuffer(R)?(R.length>0&&(this.push(ye),this.push("\n")),this.depth--):(this.push(ye),this.push("\n")),he){case be.ONE:case be.TWO:case be.FOUR:case be.EIGHT:this.depth--}}_on_data(){this.push("0x"),this.push(this.all.read().toString("hex")),this.push("\n")}}R.exports=h},9066:(R,pe)=>{"use strict";pe.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},pe.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36,SET:258},pe.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},pe.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},pe.SYMS={NULL:Symbol.for("github.com/hildjj/node-cbor/null"),UNDEFINED:Symbol.for("github.com/hildjj/node-cbor/undef"),PARENT:Symbol.for("github.com/hildjj/node-cbor/parent"),BREAK:Symbol.for("github.com/hildjj/node-cbor/break"),STREAM:Symbol.for("github.com/hildjj/node-cbor/stream")},pe.SHIFT32=4294967296,pe.BI={MINUS_ONE:BigInt(-1),NEG_MAX:BigInt(-1)-BigInt(Number.MAX_SAFE_INTEGER),MAXINT32:BigInt("0xffffffff"),MAXINT64:BigInt("0xffffffffffffffff"),SHIFT32:BigInt(pe.SHIFT32)}},6774:(R,pe,Ae)=>{"use strict";const he=Ae(71),ge=Ae(4785),ye=Ae(9032),me=Ae(9873),ve=Ae(4202),be=(Ae(2830),Ae(9066)),{MT:Ee,NUMBYTES:Ce,SYMS:we,BI:_e}=be,{Buffer:Ie}=Ae(8764),Se=Symbol("count"),Be=Symbol("major type"),ke=Symbol("error"),Oe=Symbol("not found");function w(R,pe,Ae){const he=[];return he[Se]=Ae,he[we.PARENT]=R,he[Be]=pe,he}function _(R,pe){const Ae=new ve;return Ae[Se]=-1,Ae[we.PARENT]=R,Ae[Be]=pe,Ae}class m extends Error{constructor(R,pe){super(`Unexpected data: 0x${R.toString(16)}`),this.name="UnexpectedDataError",this.byte=R,this.value=pe}}function E(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}class S extends he{constructor(R={}){const{tags:pe={},max_depth:Ae=-1,preferMap:he=!1,preferWeb:ge=!1,required:ye=!1,encoding:me="hex",extendedResults:be=!1,preventDuplicateKeys:Ee=!1,...Ce}=R;super({defaultEncoding:me,...Ce}),this.running=!0,this.max_depth=Ae,this.tags=pe,this.preferMap=he,this.preferWeb=ge,this.extendedResults=be,this.required=ye,this.preventDuplicateKeys=Ee,be&&(this.bs.on("read",this._onRead.bind(this)),this.valueBytes=new ve)}static nullcheck(R){switch(R){case we.NULL:return null;case we.UNDEFINED:return;case Oe:throw new Error("Value not found");default:return R}}static decodeFirstSync(R,pe={}){if(null==R)throw new TypeError("input required");({options:pe}=E(pe));const{encoding:Ae="hex",...he}=pe,ge=new S(he),ye=me.guessEncoding(R,Ae),ve=ge._parse();let be=ve.next();for(;!be.done;){const R=ye.read(be.value);if(null==R||R.length!==be.value)throw new Error("Insufficient data");ge.extendedResults&&ge.valueBytes.write(R),be=ve.next(R)}let Ee=null;if(ge.extendedResults)Ee=be.value,Ee.unused=ye.read();else if(Ee=S.nullcheck(be.value),ye.length>0){const R=ye.read(1);throw ye.unshift(R),new m(R[0],Ee)}return Ee}static decodeAllSync(R,pe={}){if(null==R)throw new TypeError("input required");({options:pe}=E(pe));const{encoding:Ae="hex",...he}=pe,ge=new S(he),ye=me.guessEncoding(R,Ae),ve=[];for(;ye.length>0;){const R=ge._parse();let pe=R.next();for(;!pe.done;){const Ae=ye.read(pe.value);if(null==Ae||Ae.length!==pe.value)throw new Error("Insufficient data");ge.extendedResults&&ge.valueBytes.write(Ae),pe=R.next(Ae)}ve.push(S.nullcheck(pe.value))}return ve}static decodeFirst(R,pe={},Ae=null){if(null==R)throw new TypeError("input required");({options:pe,cb:Ae}=E(pe,Ae));const{encoding:he="hex",required:ge=!1,...ye}=pe,ve=new S(ye);let be=Oe;const Ee=me.guessEncoding(R,he),Ce=new Promise(((R,pe)=>{ve.on("data",(R=>{be=S.nullcheck(R),ve.close()})),ve.once("error",(Ae=>ve.extendedResults&&Ae instanceof m?(be.unused=ve.bs.slice(),R(be)):(be!==Oe&&(Ae.value=be),be=ke,ve.close(),pe(Ae)))),ve.once("end",(()=>{switch(be){case Oe:return ge?pe(new Error("No CBOR found")):R(be);case ke:return;default:return R(be)}}))}));return"function"==typeof Ae&&Ce.then((R=>Ae(null,R)),Ae),Ee.pipe(ve),Ce}static decodeAll(R,pe={},Ae=null){if(null==R)throw new TypeError("input required");({options:pe,cb:Ae}=E(pe,Ae));const{encoding:he="hex",...ge}=pe,ye=new S(ge),ve=[];ye.on("data",(R=>ve.push(S.nullcheck(R))));const be=new Promise(((R,pe)=>{ye.on("error",pe),ye.on("end",(()=>R(ve)))}));return"function"==typeof Ae&&be.then((R=>Ae(void 0,R)),(R=>Ae(R,void 0))),me.guessEncoding(R,he).pipe(ye),be}close(){this.running=!1,this.__fresh=!0}_onRead(R){this.valueBytes.write(R)}*_parse(){let R=null,pe=0,Ae=null;for(;;){if(this.max_depth>=0&&pe>this.max_depth)throw new Error(`Maximum depth ${this.max_depth} exceeded`);const[he]=yield 1;if(!this.running)throw this.bs.unshift(Ie.from([he])),new m(he);const be=he>>5,ke=31&he,Oe=null==R?void 0:R[Be],Re=null==R?void 0:R.length;switch(ke){case Ce.ONE:this.emit("more-bytes",be,1,Oe,Re),[Ae]=yield 1;break;case Ce.TWO:case Ce.FOUR:case Ce.EIGHT:{const R=1<{"use strict";const he=Ae(2830),ge=Ae(6774),ye=Ae(9873),me=Ae(4202),{MT:ve,SYMS:be}=Ae(9066);class u extends he.Transform{constructor(R={}){const{separator:pe="\n",stream_errors:Ae=!1,tags:he,max_depth:ye,preferWeb:me,encoding:ve,...be}=R;super({...be,readableObjectMode:!1,writableObjectMode:!1}),this.float_bytes=-1,this.separator=pe,this.stream_errors=Ae,this.parser=new ge({tags:he,max_depth:ye,preferWeb:me,encoding:ve}),this.parser.on("more-bytes",this._on_more.bind(this)),this.parser.on("value",this._on_value.bind(this)),this.parser.on("start",this._on_start.bind(this)),this.parser.on("stop",this._on_stop.bind(this)),this.parser.on("data",this._on_data.bind(this)),this.parser.on("error",this._on_error.bind(this))}_transform(R,pe,Ae){this.parser.write(R,pe,Ae)}_flush(R){this.parser._flush((pe=>this.stream_errors?(pe&&this._on_error(pe),R()):R(pe)))}static diagnose(R,pe={},Ae=null){if(null==R)throw new TypeError("input required");({options:pe,cb:Ae}=function(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}(pe,Ae));const{encoding:he="hex",...ge}=pe,ve=new me,be=new u(ge);let Ee=null;return"function"==typeof Ae?(be.on("end",(()=>Ae(null,ve.toString("utf8")))),be.on("error",Ae)):Ee=new Promise(((R,pe)=>{be.on("end",(()=>R(ve.toString("utf8")))),be.on("error",pe)})),be.pipe(ve),ye.guessEncoding(R,he).pipe(be),Ee}_on_error(R){this.stream_errors?this.push(R.toString()):this.emit("error",R)}_on_more(R,pe,Ae,he){R===ve.SIMPLE_FLOAT&&(this.float_bytes={2:1,4:2,8:3}[pe])}_fore(R,pe){switch(R){case ve.BYTE_STRING:case ve.UTF8_STRING:case ve.ARRAY:pe>0&&this.push(", ");break;case ve.MAP:pe>0&&(pe%2?this.push(": "):this.push(", "))}}_on_value(R,pe,Ae){if(R===be.BREAK)return;this._fore(pe,Ae);const he=this.float_bytes;this.float_bytes=-1,this.push(ye.cborValueToString(R,he))}_on_start(R,pe,Ae,he){switch(this._fore(Ae,he),R){case ve.TAG:this.push(`${pe}(`);break;case ve.ARRAY:this.push("[");break;case ve.MAP:this.push("{");break;case ve.BYTE_STRING:case ve.UTF8_STRING:this.push("(")}pe===be.STREAM&&this.push("_ ")}_on_stop(R){switch(R){case ve.TAG:this.push(")");break;case ve.ARRAY:this.push("]");break;case ve.MAP:this.push("}");break;case ve.BYTE_STRING:case ve.UTF8_STRING:this.push(")")}}_on_data(){this.push(this.separator)}}R.exports=u},4666:(R,pe,Ae)=>{"use strict";const he=Ae(2830),ge=Ae(4202),ye=Ae(9873),me=Ae(9066),{MT:ve,NUMBYTES:be,SHIFT32:Ee,SIMPLE:Ce,SYMS:we,TAG:_e,BI:Ie}=me,{Buffer:Se}=Ae(8764),Be=ve.SIMPLE_FLOAT<<5|be.TWO,ke=ve.SIMPLE_FLOAT<<5|be.FOUR,Oe=ve.SIMPLE_FLOAT<<5|be.EIGHT,Re=ve.SIMPLE_FLOAT<<5|Ce.TRUE,Qe=ve.SIMPLE_FLOAT<<5|Ce.FALSE,xe=ve.SIMPLE_FLOAT<<5|Ce.UNDEFINED,Pe=ve.SIMPLE_FLOAT<<5|Ce.NULL,Te=Se.from([255]),De=Se.from("f97e00","hex"),Ne=Se.from("f9fc00","hex"),Me=Se.from("f97c00","hex"),je=Se.from("f98000","hex"),Fe={};let Le={};class N extends he.Transform{constructor(R={}){const{canonical:pe=!1,encodeUndefined:Ae,disallowUndefinedKeys:he=!1,dateType:ge="number",collapseBigIntegers:ye=!1,detectLoops:me=!1,omitUndefinedProperties:ve=!1,genTypes:be=[],...Ee}=R;if(super({...Ee,readableObjectMode:!1,writableObjectMode:!0}),this.canonical=pe,this.encodeUndefined=Ae,this.disallowUndefinedKeys=he,this.dateType=function(R){if(!R)return"number";switch(R.toLowerCase()){case"number":return"number";case"float":return"float";case"int":case"integer":return"int";case"string":return"string"}throw new TypeError(`dateType invalid, got "${R}"`)}(ge),this.collapseBigIntegers=!!this.canonical||ye,this.detectLoops=void 0,"boolean"==typeof me)me&&(this.detectLoops=new WeakSet);else{if(!(me instanceof WeakSet))throw new TypeError("detectLoops must be boolean or WeakSet");this.detectLoops=me}if(this.omitUndefinedProperties=ve,this.semanticTypes={...N.SEMANTIC_TYPES},Array.isArray(be))for(let R=0,pe=be.length;R{const Ae=typeof R[pe];return"function"!==Ae&&(!this.omitUndefinedProperties||"undefined"!==Ae)})),he={};if(this.canonical&&Ae.sort(((R,pe)=>{const Ae=he[R]||(he[R]=N.encode(R)),ge=he[pe]||(he[pe]=N.encode(pe));return Ae.compare(ge)})),pe.indefinite){if(!this._pushUInt8(ve.MAP<<5|be.INDEFINITE))return!1}else if(!this._pushInt(Ae.length,ve.MAP))return!1;let ge=null;for(let pe=0,ye=Ae.length;pevoid 0!==pe))),Ae.indefinite){if(!R._pushUInt8(ve.MAP<<5|be.INDEFINITE))return!1}else if(!R._pushInt(he.length,ve.MAP))return!1;if(R.canonical){const pe=new N({genTypes:R.semanticTypes,canonical:R.canonical,detectLoops:Boolean(R.detectLoops),dateType:R.dateType,disallowUndefinedKeys:R.disallowUndefinedKeys,collapseBigIntegers:R.collapseBigIntegers}),Ae=new ge({highWaterMark:R.readableHighWaterMark});pe.pipe(Ae),he.sort((([R],[he])=>{pe.pushAny(R);const ge=Ae.read();pe.pushAny(he);const ye=Ae.read();return ge.compare(ye)}));for(const[pe,Ae]of he){if(R.disallowUndefinedKeys&&void 0===pe)throw new Error("Invalid Map key: undefined");if(!R.pushAny(pe)||!R.pushAny(Ae))return!1}}else for(const[pe,Ae]of he){if(R.disallowUndefinedKeys&&void 0===pe)throw new Error("Invalid Map key: undefined");if(!R.pushAny(pe)||!R.pushAny(Ae))return!1}return!(Ae.indefinite&&!R.push(Te))}static _pushTypedArray(R,pe){let Ae=64,he=pe.BYTES_PER_ELEMENT;const{name:ge}=pe.constructor;return ge.startsWith("Float")?(Ae|=16,he/=2):ge.includes("U")||(Ae|=8),(ge.includes("Clamped")||1!==he&&!ye.isBigEndian())&&(Ae|=4),Ae|={1:0,2:1,4:2,8:3}[he],!!R._pushTag(Ae)&&N._pushBuffer(R,Se.from(pe.buffer,pe.byteOffset,pe.byteLength))}static _pushArrayBuffer(R,pe){return N._pushBuffer(R,Se.from(pe))}static encodeIndefinite(R,pe,Ae={}){if(null==pe){if(null==this)throw new Error("No object to encode");pe=this}const{chunkSize:he=4096}=Ae;let ge=!0;const me=typeof pe;let Ee=null;if("string"===me){ge=ge&&R._pushUInt8(ve.UTF8_STRING<<5|be.INDEFINITE);let Ae=0;for(;Ae{const ge=[],ye=new N(pe);ye.on("data",(R=>ge.push(R))),ye.on("error",he),ye.on("finish",(()=>Ae(Se.concat(ge)))),ye.pushAny(R),ye.end()}))}static get SEMANTIC_TYPES(){return Le}static set SEMANTIC_TYPES(R){Le=R}static reset(){N.SEMANTIC_TYPES={...Fe}}}Object.assign(Fe,{Array:N.pushArray,Date:N._pushDate,Buffer:N._pushBuffer,[Se.name]:N._pushBuffer,Map:N._pushMap,NoFilter:N._pushNoFilter,[ge.name]:N._pushNoFilter,RegExp:N._pushRegexp,Set:N._pushSet,ArrayBuffer:N._pushArrayBuffer,Uint8ClampedArray:N._pushTypedArray,Uint8Array:N._pushTypedArray,Uint16Array:N._pushTypedArray,Uint32Array:N._pushTypedArray,Int8Array:N._pushTypedArray,Int16Array:N._pushTypedArray,Int32Array:N._pushTypedArray,Float32Array:N._pushTypedArray,Float64Array:N._pushTypedArray,URL:N._pushURL,Boolean:N._pushBoxed,Number:N._pushBoxed,String:N._pushBoxed}),"undefined"!=typeof BigUint64Array&&(Fe[BigUint64Array.name]=N._pushTypedArray),"undefined"!=typeof BigInt64Array&&(Fe[BigInt64Array.name]=N._pushTypedArray),N.reset(),R.exports=N},3070:(R,pe,Ae)=>{"use strict";const{Buffer:he}=Ae(8764),ge=Ae(4666),ye=Ae(6774),{MT:me}=Ae(9066);class a extends Map{constructor(R){super(R)}static _encode(R){return ge.encodeCanonical(R).toString("base64")}static _decode(R){return ye.decodeFirstSync(R,"base64")}get(R){return super.get(a._encode(R))}set(R,pe){return super.set(a._encode(R),pe)}delete(R){return super.delete(a._encode(R))}has(R){return super.has(a._encode(R))}*keys(){for(const R of super.keys())yield a._decode(R)}*entries(){for(const R of super.entries())yield[a._decode(R[0]),R[1]]}[Symbol.iterator](){return this.entries()}forEach(R,pe){if("function"!=typeof R)throw new TypeError("Must be function");for(const pe of super.entries())R.call(this,pe[1],a._decode(pe[0]),this)}encodeCBOR(R){if(!R._pushInt(this.size,me.MAP))return!1;if(R.canonical){const pe=Array.from(super.entries()).map((R=>[he.from(R[0],"base64"),R[1]]));pe.sort(((R,pe)=>R[0].compare(pe[0])));for(const Ae of pe)if(!R.push(Ae[0])||!R.pushAny(Ae[1]))return!1}else for(const pe of super.entries())if(!R.push(he.from(pe[0],"base64"))||!R.pushAny(pe[1]))return!1;return!0}}R.exports=a},1226:R=>{"use strict";class t{constructor(){this.clear()}clear(){this.map=new WeakMap,this.count=0,this.recording=!0}stop(){this.recording=!1}check(R){const pe=this.map.get(R);if(pe)return pe.length>1?pe[0]||this.recording?pe[1]:(pe[0]=!0,t.FIRST):this.recording?(pe.push(this.count++),pe[1]):t.NEVER;if(!this.recording)throw new Error("New object detected when not recording");return this.map.set(R,[!1]),t.NEVER}}t.NEVER=-1,t.FIRST=-2,R.exports=t},8112:(R,pe,Ae)=>{"use strict";const he=Ae(4666),ge=Ae(1226),{Buffer:ye}=Ae(8764);class s extends he{constructor(R){super(R),this.valueSharing=new ge}_pushObject(R,pe){if(null!==R){const pe=this.valueSharing.check(R);switch(pe){case ge.FIRST:this._pushTag(28);break;case ge.NEVER:break;default:return this._pushTag(29)&&this._pushIntNum(pe)}}return super._pushObject(R,pe)}stopRecording(){this.valueSharing.stop()}clearRecording(){this.valueSharing.clear()}static encode(...R){const pe=new s;pe.on("data",(()=>{}));for(const Ae of R)pe.pushAny(Ae);return pe.stopRecording(),pe.removeAllListeners("data"),pe._encodeAll(R)}static encodeCanonical(...R){throw new Error("Cannot encode canonically in a SharedValueEncoder, which serializes objects multiple times.")}static encodeOne(R,pe){const Ae=new s(pe);return Ae.on("data",(()=>{})),Ae.pushAny(R),Ae.stopRecording(),Ae.removeAllListeners("data"),Ae._encodeAll([R])}static encodeAsync(R,pe){return new Promise(((Ae,he)=>{const ge=[],me=new s(pe);me.on("data",(()=>{})),me.on("error",he),me.on("finish",(()=>Ae(ye.concat(ge)))),me.pushAny(R),me.stopRecording(),me.removeAllListeners("data"),me.on("data",(R=>ge.push(R))),me.pushAny(R),me.end()}))}}R.exports=s},9032:(R,pe,Ae)=>{"use strict";const{MT:he,SIMPLE:ge,SYMS:ye}=Ae(9066);class s{constructor(R){if("number"!=typeof R)throw new Error("Invalid Simple type: "+typeof R);if(R<0||R>255||(0|R)!==R)throw new Error(`value must be a small positive integer: ${R}`);this.value=R}toString(){return`simple(${this.value})`}[Symbol.for("nodejs.util.inspect.custom")](R,pe){return`simple(${this.value})`}encodeCBOR(R){return R._pushInt(this.value,he.SIMPLE_FLOAT)}static isSimple(R){return R instanceof s}static decode(R,pe=!0,Ae=!1){switch(R){case ge.FALSE:return!1;case ge.TRUE:return!0;case ge.NULL:return pe?null:ye.NULL;case ge.UNDEFINED:if(pe)return;return ye.UNDEFINED;case-1:if(!pe||!Ae)throw new Error("Invalid BREAK");return ye.BREAK;default:return new s(R)}}}R.exports=s},4785:(R,pe,Ae)=>{"use strict";const he=Ae(9066),ge=Ae(9873),ye=Symbol("INTERNAL_JSON");function s(R,pe){if(ge.isBufferish(R))R.toJSON=pe;else if(Array.isArray(R))for(const Ae of R)s(Ae,pe);else if(R&&"object"==typeof R&&(!(R instanceof p)||R.tag<21||R.tag>23))for(const Ae of Object.values(R))s(Ae,pe)}function a(){return ge.base64(this)}function l(){return ge.base64url(this)}function u(){return this.toString("hex")}const me={0:R=>new Date(R),1:R=>new Date(1e3*R),2:R=>ge.bufferToBigInt(R),3:R=>he.BI.MINUS_ONE-ge.bufferToBigInt(R),21:(R,pe)=>(ge.isBufferish(R)?pe[ye]=l:s(R,l),pe),22:(R,pe)=>(ge.isBufferish(R)?pe[ye]=a:s(R,a),pe),23:(R,pe)=>(ge.isBufferish(R)?pe[ye]=u:s(R,u),pe),32:R=>new URL(R),33:(R,pe)=>{if(!R.match(/^[a-zA-Z0-9_-]+$/))throw new Error("Invalid base64url characters");const Ae=R.length%4;if(1===Ae)throw new Error("Invalid base64url length");if(2===Ae){if(-1==="AQgw".indexOf(R[R.length-1]))throw new Error("Invalid base64 padding")}else if(3===Ae&&-1==="AEIMQUYcgkosw048".indexOf(R[R.length-1]))throw new Error("Invalid base64 padding");return pe},34:(R,pe)=>{const Ae=R.match(/^[a-zA-Z0-9+/]+(?={0,2})$/);if(!Ae)throw new Error("Invalid base64 characters");if(R.length%4!=0)throw new Error("Invalid base64 length");if("="===Ae.groups.padding){if(-1==="AQgw".indexOf(R[R.length-2]))throw new Error("Invalid base64 padding")}else if("=="===Ae.groups.padding&&-1==="AEIMQUYcgkosw048".indexOf(R[R.length-3]))throw new Error("Invalid base64 padding");return pe},35:R=>new RegExp(R),258:R=>new Set(R)},ve={64:Uint8Array,65:Uint16Array,66:Uint32Array,68:Uint8ClampedArray,69:Uint16Array,70:Uint32Array,72:Int8Array,73:Int16Array,74:Int32Array,77:Int16Array,78:Int32Array,81:Float32Array,82:Float64Array,85:Float32Array,86:Float64Array};function h(R,pe){if(!ge.isBufferish(R))throw new TypeError("val not a buffer");const{tag:Ae}=pe,he=ve[Ae];if(!he)throw new Error(`Invalid typed array tag: ${Ae}`);const ye=2**(((16&Ae)>>4)+(3&Ae));return!(4&Ae)!==ge.isBigEndian()&&ye>1&&function(R,pe,Ae,he){const ge=new DataView(R),[ye,me]={2:[ge.getUint16,ge.setUint16],4:[ge.getUint32,ge.setUint32],8:[ge.getBigUint64,ge.setBigUint64]}[pe],ve=Ae+he;for(let R=Ae;R0?this.err=R.message:this.err=R,this}}static get TAGS(){return be}static set TAGS(R){be=R}static reset(){p.TAGS={...me}}}p.INTERNAL_JSON=ye,p.reset(),R.exports=p},9873:(R,pe,Ae)=>{"use strict";const{Buffer:he}=Ae(8764),ge=Ae(4202),ye=Ae(2830),me=Ae(9066),{NUMBYTES:ve,SHIFT32:be,BI:Ee,SYMS:Ce}=me,we=new TextDecoder("utf8",{fatal:!0,ignoreBOM:!0});pe.utf8=R=>we.decode(R),pe.utf8.checksUTF8=!0,pe.isBufferish=function(R){return R&&"object"==typeof R&&(he.isBuffer(R)||R instanceof Uint8Array||R instanceof Uint8ClampedArray||R instanceof ArrayBuffer||R instanceof DataView)},pe.bufferishToBuffer=function(R){return he.isBuffer(R)?R:ArrayBuffer.isView(R)?he.from(R.buffer,R.byteOffset,R.byteLength):R instanceof ArrayBuffer?he.from(R):null},pe.parseCBORint=function(R,pe){switch(R){case ve.ONE:return pe.readUInt8(0);case ve.TWO:return pe.readUInt16BE(0);case ve.FOUR:return pe.readUInt32BE(0);case ve.EIGHT:{const R=pe.readUInt32BE(0),Ae=pe.readUInt32BE(4);return R>2097151?BigInt(R)*Ee.SHIFT32+BigInt(Ae):R*be+Ae}default:throw new Error(`Invalid additional info for int: ${R}`)}},pe.writeHalf=function(R,pe){const Ae=he.allocUnsafe(4);Ae.writeFloatBE(pe,0);const ge=Ae.readUInt32BE(0);if(0!=(8191&ge))return!1;let ye=ge>>16&32768;const me=ge>>23&255,ve=8388607≥if(me>=113&&me<=142)ye+=(me-112<<10)+(ve>>13);else{if(!(me>=103&&me<113))return!1;if(ve&(1<<126-me)-1)return!1;ye+=ve+8388608>>126-me}return R.writeUInt16BE(ye),!0},pe.parseHalf=function(R){const pe=128&R[0]?-1:1,Ae=(124&R[0])>>2,he=(3&R[0])<<8|R[1];return Ae?31===Ae?pe*(he?NaN:1/0):pe*2**(Ae-25)*(1024+he):5.960464477539063e-8*pe*he},pe.parseCBORfloat=function(R){switch(R.length){case 2:return pe.parseHalf(R);case 4:return R.readFloatBE(0);case 8:return R.readDoubleBE(0);default:throw new Error(`Invalid float size: ${R.length}`)}},pe.hex=function(R){return he.from(R.replace(/^0x/,""),"hex")},pe.bin=function(R){let pe=0,Ae=(R=R.replace(/\s/g,"")).length%8||8;const ge=[];for(;Ae<=R.length;)ge.push(parseInt(R.slice(pe,Ae),2)),pe=Ae,Ae+=8;return he.from(ge)},pe.arrayEqual=function(R,pe){return null==R&&null==pe||null!=R&&null!=pe&&R.length===pe.length&&R.every(((R,Ae)=>R===pe[Ae]))},pe.bufferToBigInt=function(R){return BigInt(`0x${R.toString("hex")}`)},pe.cborValueToString=function(R,Ae=-1){switch(typeof R){case"symbol":{switch(R){case Ce.NULL:return"null";case Ce.UNDEFINED:return"undefined";case Ce.BREAK:return"BREAK"}if(R.description)return R.description;const pe=R.toString().match(/^Symbol\((?.*)\)/);return pe&&pe.groups.name?pe.groups.name:"Symbol"}case"string":return JSON.stringify(R);case"bigint":return R.toString();case"number":{const pe=Object.is(R,-0)?"-0":String(R);return Ae>0?`${pe}_${Ae}`:pe}case"object":{if(!R)return"null";const he=pe.bufferishToBuffer(R);if(he){const R=he.toString("hex");return Ae===-1/0?R:`h'${R}'`}return R&&"function"==typeof R[Symbol.for("nodejs.util.inspect.custom")]?R[Symbol.for("nodejs.util.inspect.custom")]():Array.isArray(R)?"[]":"{}"}}return String(R)},pe.guessEncoding=function(R,Ae){if("string"==typeof R)return new ge(R,null==Ae?"hex":Ae);const he=pe.bufferishToBuffer(R);if(he)return new ge(he);if((me=R)instanceof ye.Readable||["read","on","pipe"].every((R=>"function"==typeof me[R])))return R;var me;throw new Error("Unknown input type")};const _e={"=":"","+":"-","/":"_"};pe.base64url=function(R){return pe.bufferishToBuffer(R).toString("base64").replace(/[=+/]/g,(R=>_e[R]))},pe.base64=function(R){return pe.bufferishToBuffer(R).toString("base64")},pe.isBigEndian=function(){const R=new Uint8Array(4);return!((new Uint32Array(R.buffer)[0]=1)&R[0])}},4202:(R,pe,Ae)=>{"use strict";const he=Ae(2830),{Buffer:ge}=Ae(8764),ye=new TextDecoder("utf8",{fatal:!0,ignoreBOM:!0});class s extends he.Transform{constructor(R,pe,Ae={}){let he=null,ye=null;switch(typeof R){case"object":ge.isBuffer(R)?he=R:R&&(Ae=R);break;case"string":he=R;break;case"undefined":break;default:throw new TypeError("Invalid input")}switch(typeof pe){case"object":pe&&(Ae=pe);break;case"string":ye=pe;break;case"undefined":break;default:throw new TypeError("Invalid inputEncoding")}if(!Ae||"object"!=typeof Ae)throw new TypeError("Invalid options");null==he&&(he=Ae.input),null==ye&&(ye=Ae.inputEncoding),delete Ae.input,delete Ae.inputEncoding;const me=null==Ae.watchPipe||Ae.watchPipe;delete Ae.watchPipe;const ve=Boolean(Ae.readError);delete Ae.readError,super(Ae),this.readError=ve,me&&this.on("pipe",(R=>{const pe=R._readableState.objectMode;if(this.length>0&&pe!==this._readableState.objectMode)throw new Error("Do not switch objectMode in the middle of the stream");this._readableState.objectMode=pe,this._writableState.objectMode=pe})),null!=he&&this.end(he,ye)}static isNoFilter(R){return R instanceof this}static compare(R,pe){if(!(R instanceof this))throw new TypeError("Arguments must be NoFilters");return R===pe?0:R.compare(pe)}static concat(R,pe){if(!Array.isArray(R))throw new TypeError("list argument must be an Array of NoFilters");if(0===R.length||0===pe)return ge.alloc(0);null==pe&&(pe=R.reduce(((R,pe)=>{if(!(pe instanceof s))throw new TypeError("list argument must be an Array of NoFilters");return R+pe.length}),0));let Ae=!0,he=!0;const ye=R.map((R=>{if(!(R instanceof s))throw new TypeError("list argument must be an Array of NoFilters");const pe=R.slice();return ge.isBuffer(pe)?he=!1:Ae=!1,pe}));if(Ae)return ge.concat(ye,pe);if(he)return[].concat(...ye).slice(0,pe);throw new Error("Concatenating mixed object and byte streams not supported")}_transform(R,pe,Ae){this._readableState.objectMode||ge.isBuffer(R)||(R=ge.from(R,pe)),this.push(R),Ae()}_bufArray(){let R=this._readableState.buffer;if(!Array.isArray(R)){let pe=R.head;for(R=[];null!=pe;)R.push(pe.data),pe=pe.next}return R}read(R){const pe=super.read(R);if(null!=pe){if(this.emit("read",pe),this.readError&&pe.length{this.length>=R?ge(this.read(R)):this.writableFinished?ye(new Error(`Stream finished before ${R} bytes were available`)):(pe=pe=>{this.length>=R&&ge(this.read(R))},Ae=()=>{ye(new Error(`Stream finished before ${R} bytes were available`))},he=ye,this.on("readable",pe),this.on("error",he),this.on("finish",Ae))})).finally((()=>{pe&&(this.removeListener("readable",pe),this.removeListener("error",he),this.removeListener("finish",Ae))}))}promise(R){let pe=!1;return new Promise(((Ae,he)=>{this.on("finish",(()=>{const he=this.read();null==R||pe||(pe=!0,R(null,he)),Ae(he)})),this.on("error",(Ae=>{null==R||pe||(pe=!0,R(Ae)),he(Ae)}))}))}compare(R){if(!(R instanceof s))throw new TypeError("Arguments must be NoFilters");if(this===R)return 0;const pe=this.slice(),Ae=R.slice();if(ge.isBuffer(pe)&&ge.isBuffer(Ae))return pe.compare(Ae);throw new Error("Cannot compare streams in object mode")}equals(R){return 0===this.compare(R)}slice(R,pe){if(this._readableState.objectMode)return this._bufArray().slice(R,pe);const Ae=this._bufArray();switch(Ae.length){case 0:return ge.alloc(0);case 1:return Ae[0].slice(R,pe);default:return ge.concat(Ae).slice(R,pe)}}get(R){return this.slice()[R]}toJSON(){const R=this.slice();return ge.isBuffer(R)?R.toJSON():R}toString(R,pe,Ae){const he=this.slice(pe,Ae);return ge.isBuffer(he)?R&&"utf8"!==R?he.toString(R):ye.decode(he):JSON.stringify(he)}[Symbol.for("nodejs.util.inspect.custom")](R,pe){const Ae=this._bufArray().map((R=>ge.isBuffer(R)?pe.stylize(R.toString("hex"),"string"):JSON.stringify(R))).join(", ");return`${this.constructor.name} [${Ae}]`}get length(){return this._readableState.length}writeBigInt(R){let pe=R.toString(16);if(R<0){const Ae=BigInt(Math.floor(pe.length/2));pe=(R=(BigInt(1)<{"use strict";const he=Ae(2830),ge=Ae(4202);class o extends he.Transform{constructor(R){super(R),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this.bs=new ge,this.__restart()}_transform(R,pe,Ae){for(this.bs.write(R);this.bs.length>=this.__needed;){let pe=null;const he=null===this.__needed?void 0:this.bs.read(this.__needed);try{pe=this.__parser.next(he)}catch(R){return Ae(R)}this.__needed&&(this.__fresh=!1),pe.done?(this.push(pe.value),this.__restart()):this.__needed=pe.value||1/0}return Ae()}*_parse(){throw new Error("Must be implemented in subclass")}__restart(){this.__needed=null,this.__parser=this._parse(),this.__fresh=!0}_flush(R){R(this.__fresh?null:new Error("unexpected end of input"))}}R.exports=o},7187:R=>{"use strict";var pe,Ae="object"==typeof Reflect?Reflect:null,he=Ae&&"function"==typeof Ae.apply?Ae.apply:function(R,pe,Ae){return Function.prototype.apply.call(R,pe,Ae)};pe=Ae&&"function"==typeof Ae.ownKeys?Ae.ownKeys:Object.getOwnPropertySymbols?function(R){return Object.getOwnPropertyNames(R).concat(Object.getOwnPropertySymbols(R))}:function(R){return Object.getOwnPropertyNames(R)};var ge=Number.isNaN||function(R){return R!=R};function o(){o.init.call(this)}R.exports=o,R.exports.once=function(R,pe){return new Promise((function(Ae,he){function i(Ae){R.removeListener(pe,o),he(Ae)}function o(){"function"==typeof R.removeListener&&R.removeListener("error",i),Ae([].slice.call(arguments))}b(R,pe,o,{once:!0}),"error"!==pe&&function(R,pe,Ae){"function"==typeof R.on&&b(R,"error",pe,{once:!0})}(R,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var ye=10;function a(R){if("function"!=typeof R)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof R)}function l(R){return void 0===R._maxListeners?o.defaultMaxListeners:R._maxListeners}function u(R,pe,Ae,he){var ge,ye,me,ve;if(a(Ae),void 0===(ye=R._events)?(ye=R._events=Object.create(null),R._eventsCount=0):(void 0!==ye.newListener&&(R.emit("newListener",pe,Ae.listener?Ae.listener:Ae),ye=R._events),me=ye[pe]),void 0===me)me=ye[pe]=Ae,++R._eventsCount;else if("function"==typeof me?me=ye[pe]=he?[Ae,me]:[me,Ae]:he?me.unshift(Ae):me.push(Ae),(ge=l(R))>0&&me.length>ge&&!me.warned){me.warned=!0;var be=new Error("Possible EventEmitter memory leak detected. "+me.length+" "+String(pe)+" listeners added. Use emitter.setMaxListeners() to increase limit");be.name="MaxListenersExceededWarning",be.emitter=R,be.type=pe,be.count=me.length,ve=be,console&&console.warn&&console.warn(ve)}return R}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(R,pe,Ae){var he={fired:!1,wrapFn:void 0,target:R,type:pe,listener:Ae},ge=c.bind(he);return ge.listener=Ae,he.wrapFn=ge,ge}function h(R,pe,Ae){var he=R._events;if(void 0===he)return[];var ge=he[pe];return void 0===ge?[]:"function"==typeof ge?Ae?[ge.listener||ge]:[ge]:Ae?function(R){for(var pe=new Array(R.length),Ae=0;Ae0&&(me=pe[0]),me instanceof Error)throw me;var ve=new Error("Unhandled error."+(me?" ("+me.message+")":""));throw ve.context=me,ve}var be=ye[R];if(void 0===be)return!1;if("function"==typeof be)he(be,this,pe);else{var Ee=be.length,Ce=p(be,Ee);for(Ae=0;Ae=0;ye--)if(Ae[ye]===pe||Ae[ye].listener===pe){me=Ae[ye].listener,ge=ye;break}if(ge<0)return this;0===ge?Ae.shift():function(R,pe){for(;pe+1=0;he--)this.removeListener(R,pe[he]);return this},o.prototype.listeners=function(R){return h(this,R,!0)},o.prototype.rawListeners=function(R){return h(this,R,!1)},o.listenerCount=function(R,pe){return"function"==typeof R.listenerCount?R.listenerCount(pe):d.call(R,pe)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?pe(this._events):[]}},645:(R,pe)=>{pe.read=function(R,pe,Ae,he,ge){var ye,me,ve=8*ge-he-1,be=(1<>1,Ce=-7,we=Ae?ge-1:0,_e=Ae?-1:1,Ie=R[pe+we];for(we+=_e,ye=Ie&(1<<-Ce)-1,Ie>>=-Ce,Ce+=ve;Ce>0;ye=256*ye+R[pe+we],we+=_e,Ce-=8);for(me=ye&(1<<-Ce)-1,ye>>=-Ce,Ce+=he;Ce>0;me=256*me+R[pe+we],we+=_e,Ce-=8);if(0===ye)ye=1-Ee;else{if(ye===be)return me?NaN:1/0*(Ie?-1:1);me+=Math.pow(2,he),ye-=Ee}return(Ie?-1:1)*me*Math.pow(2,ye-he)},pe.write=function(R,pe,Ae,he,ge,ye){var me,ve,be,Ee=8*ye-ge-1,Ce=(1<>1,_e=23===ge?Math.pow(2,-24)-Math.pow(2,-77):0,Ie=he?0:ye-1,Se=he?1:-1,Be=pe<0||0===pe&&1/pe<0?1:0;for(pe=Math.abs(pe),isNaN(pe)||pe===1/0?(ve=isNaN(pe)?1:0,me=Ce):(me=Math.floor(Math.log(pe)/Math.LN2),pe*(be=Math.pow(2,-me))<1&&(me--,be*=2),(pe+=me+we>=1?_e/be:_e*Math.pow(2,1-we))*be>=2&&(me++,be/=2),me+we>=Ce?(ve=0,me=Ce):me+we>=1?(ve=(pe*be-1)*Math.pow(2,ge),me+=we):(ve=pe*Math.pow(2,we-1)*Math.pow(2,ge),me=0));ge>=8;R[Ae+Ie]=255&ve,Ie+=Se,ve/=256,ge-=8);for(me=me<0;R[Ae+Ie]=255&me,Ie+=Se,me/=256,Ee-=8);R[Ae+Ie-Se]|=128*Be}},5717:R=>{"function"==typeof Object.create?R.exports=function(R,pe){pe&&(R.super_=pe,R.prototype=Object.create(pe.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}))}:R.exports=function(R,pe){if(pe){R.super_=pe;var r=function(){};r.prototype=pe.prototype,R.prototype=new r,R.prototype.constructor=R}}},4155:R=>{var pe,Ae,he=R.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(R){if(pe===setTimeout)return setTimeout(R,0);if((pe===i||!pe)&&setTimeout)return pe=setTimeout,setTimeout(R,0);try{return pe(R,0)}catch(Ae){try{return pe.call(null,R,0)}catch(Ae){return pe.call(this,R,0)}}}!function(){try{pe="function"==typeof setTimeout?setTimeout:i}catch(R){pe=i}try{Ae="function"==typeof clearTimeout?clearTimeout:o}catch(R){Ae=o}}();var ge,ye=[],me=!1,ve=-1;function f(){me&&ge&&(me=!1,ge.length?ye=ge.concat(ye):ve=-1,ye.length&&h())}function h(){if(!me){var R=s(f);me=!0;for(var pe=ye.length;pe;){for(ge=ye,ye=[];++ve1)for(var Ae=1;Ae{"use strict";R.exports=Ae(5099).Duplex},2725:(R,pe,Ae)=>{"use strict";R.exports=Ae(5099).PassThrough},9481:(R,pe,Ae)=>{"use strict";R.exports=Ae(5099).Readable},4605:(R,pe,Ae)=>{"use strict";R.exports=Ae(5099).Transform},4229:(R,pe,Ae)=>{"use strict";R.exports=Ae(5099).Writable},196:(R,pe,Ae)=>{"use strict";const{SymbolDispose:he}=Ae(9061),{AbortError:ge,codes:ye}=Ae(4381),{isNodeStream:me,isWebStream:ve,kControllerErrorFunction:be}=Ae(5874),Ee=Ae(8610),{ERR_INVALID_ARG_TYPE:Ce}=ye;let we;R.exports.addAbortSignal=function(pe,Ae){if(((R,pe)=>{if("object"!=typeof R||!("aborted"in R))throw new Ce("signal","AbortSignal",R)})(pe),!me(Ae)&&!ve(Ae))throw new Ce("stream",["ReadableStream","WritableStream","Stream"],Ae);return R.exports.addAbortSignalNoValidate(pe,Ae)},R.exports.addAbortSignalNoValidate=function(R,pe){if("object"!=typeof R||!("aborted"in R))return pe;const ye=me(pe)?()=>{pe.destroy(new ge(void 0,{cause:R.reason}))}:()=>{pe[be](new ge(void 0,{cause:R.reason}))};if(R.aborted)ye();else{we=we||Ae(6087).addAbortListener;const ge=we(R,ye);Ee(pe,ge[he])}return pe}},7327:(R,pe,Ae)=>{"use strict";const{StringPrototypeSlice:he,SymbolIterator:ge,TypedArrayPrototypeSet:ye,Uint8Array:me}=Ae(9061),{Buffer:ve}=Ae(8764),{inspect:be}=Ae(6087);R.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(R){const pe={data:R,next:null};this.length>0?this.tail.next=pe:this.head=pe,this.tail=pe,++this.length}unshift(R){const pe={data:R,next:this.head};0===this.length&&(this.tail=pe),this.head=pe,++this.length}shift(){if(0===this.length)return;const R=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,R}clear(){this.head=this.tail=null,this.length=0}join(R){if(0===this.length)return"";let pe=this.head,Ae=""+pe.data;for(;null!==(pe=pe.next);)Ae+=R+pe.data;return Ae}concat(R){if(0===this.length)return ve.alloc(0);const pe=ve.allocUnsafe(R>>>0);let Ae=this.head,he=0;for(;Ae;)ye(pe,Ae.data,he),he+=Ae.data.length,Ae=Ae.next;return pe}consume(R,pe){const Ae=this.head.data;if(Rye.length)){R===ye.length?(pe+=ye,++ge,Ae.next?this.head=Ae.next:this.head=this.tail=null):(pe+=he(ye,0,R),this.head=Ae,Ae.data=he(ye,R));break}pe+=ye,R-=ye.length,++ge}while(null!==(Ae=Ae.next));return this.length-=ge,pe}_getBuffer(R){const pe=ve.allocUnsafe(R),Ae=R;let he=this.head,ge=0;do{const ve=he.data;if(!(R>ve.length)){R===ve.length?(ye(pe,ve,Ae-R),++ge,he.next?this.head=he.next:this.head=this.tail=null):(ye(pe,new me(ve.buffer,ve.byteOffset,R),Ae-R),this.head=he,he.data=ve.slice(R));break}ye(pe,ve,Ae-R),R-=ve.length,++ge}while(null!==(he=he.next));return this.length-=ge,pe}[Symbol.for("nodejs.util.inspect.custom")](R,pe){return be(this,{...pe,depth:0,customInspect:!1})}}},299:(R,pe,Ae)=>{"use strict";const{pipeline:he}=Ae(9946),ge=Ae(8672),{destroyer:ye}=Ae(1195),{isNodeStream:me,isReadable:ve,isWritable:be,isWebStream:Ee,isTransformStream:Ce,isWritableStream:we,isReadableStream:_e}=Ae(5874),{AbortError:Ie,codes:{ERR_INVALID_ARG_VALUE:Se,ERR_MISSING_ARGS:Be}}=Ae(4381),ke=Ae(8610);R.exports=function(...R){if(0===R.length)throw new Be("streams");if(1===R.length)return ge.from(R[0]);const pe=[...R];if("function"==typeof R[0]&&(R[0]=ge.from(R[0])),"function"==typeof R[R.length-1]){const pe=R.length-1;R[pe]=ge.from(R[pe])}for(let Ae=0;Ae0&&!(be(R[Ae])||we(R[Ae])||Ce(R[Ae])))throw new Se(`streams[${Ae}]`,pe[Ae],"must be writable")}let Ae,Oe,Re,Qe,xe;const Pe=R[0],Te=he(R,(function(R){const pe=Qe;Qe=null,pe?pe(R):R?xe.destroy(R):Ne||De||xe.destroy()})),De=!!(be(Pe)||we(Pe)||Ce(Pe)),Ne=!!(ve(Te)||_e(Te)||Ce(Te));if(xe=new ge({writableObjectMode:!(null==Pe||!Pe.writableObjectMode),readableObjectMode:!(null==Te||!Te.readableObjectMode),writable:De,readable:Ne}),De){if(me(Pe))xe._write=function(R,pe,he){Pe.write(R,pe)?he():Ae=he},xe._final=function(R){Pe.end(),Oe=R},Pe.on("drain",(function(){if(Ae){const R=Ae;Ae=null,R()}}));else if(Ee(Pe)){const R=(Ce(Pe)?Pe.writable:Pe).getWriter();xe._write=async function(pe,Ae,he){try{await R.ready,R.write(pe).catch((()=>{})),he()}catch(R){he(R)}},xe._final=async function(pe){try{await R.ready,R.close().catch((()=>{})),Oe=pe}catch(R){pe(R)}}}const R=Ce(Te)?Te.readable:Te;ke(R,(()=>{if(Oe){const R=Oe;Oe=null,R()}}))}if(Ne)if(me(Te))Te.on("readable",(function(){if(Re){const R=Re;Re=null,R()}})),Te.on("end",(function(){xe.push(null)})),xe._read=function(){for(;;){const R=Te.read();if(null===R)return void(Re=xe._read);if(!xe.push(R))return}};else if(Ee(Te)){const R=(Ce(Te)?Te.readable:Te).getReader();xe._read=async function(){for(;;)try{const{value:pe,done:Ae}=await R.read();if(!xe.push(pe))return;if(Ae)return void xe.push(null)}catch{return}}}return xe._destroy=function(R,pe){R||null===Qe||(R=new Ie),Re=null,Ae=null,Oe=null,null===Qe?pe(R):(Qe=pe,me(Te)&&ye(Te,R))},xe}},1195:(R,pe,Ae)=>{"use strict";const he=Ae(4155),{aggregateTwoErrors:ge,codes:{ERR_MULTIPLE_CALLBACK:ye},AbortError:me}=Ae(4381),{Symbol:ve}=Ae(9061),{kIsDestroyed:be,isDestroyed:Ee,isFinished:Ce,isServerRequest:we}=Ae(5874),_e=ve("kDestroy"),Ie=ve("kConstruct");function p(R,pe,Ae){R&&(R.stack,pe&&!pe.errored&&(pe.errored=R),Ae&&!Ae.errored&&(Ae.errored=R))}function b(R,pe,Ae){let ge=!1;function o(pe){if(ge)return;ge=!0;const ye=R._readableState,me=R._writableState;p(pe,me,ye),me&&(me.closed=!0),ye&&(ye.closed=!0),"function"==typeof Ae&&Ae(pe),pe?he.nextTick(y,R,pe):he.nextTick(g,R)}try{R._destroy(pe||null,o)}catch(pe){o(pe)}}function y(R,pe){w(R,pe),g(R)}function g(R){const pe=R._readableState,Ae=R._writableState;Ae&&(Ae.closeEmitted=!0),pe&&(pe.closeEmitted=!0),(null!=Ae&&Ae.emitClose||null!=pe&&pe.emitClose)&&R.emit("close")}function w(R,pe){const Ae=R._readableState,he=R._writableState;null!=he&&he.errorEmitted||null!=Ae&&Ae.errorEmitted||(he&&(he.errorEmitted=!0),Ae&&(Ae.errorEmitted=!0),R.emit("error",pe))}function _(R,pe,Ae){const ge=R._readableState,ye=R._writableState;if(null!=ye&&ye.destroyed||null!=ge&&ge.destroyed)return this;null!=ge&&ge.autoDestroy||null!=ye&&ye.autoDestroy?R.destroy(pe):pe&&(pe.stack,ye&&!ye.errored&&(ye.errored=pe),ge&&!ge.errored&&(ge.errored=pe),Ae?he.nextTick(w,R,pe):w(R,pe))}function m(R){let pe=!1;function r(Ae){if(pe)return void _(R,null!=Ae?Ae:new ye);pe=!0;const ge=R._readableState,me=R._writableState,ve=me||ge;ge&&(ge.constructed=!0),me&&(me.constructed=!0),ve.destroyed?R.emit(_e,Ae):Ae?_(R,Ae,!0):he.nextTick(E,R)}try{R._construct((R=>{he.nextTick(r,R)}))}catch(R){he.nextTick(r,R)}}function E(R){R.emit(Ie)}function S(R){return(null==R?void 0:R.setHeader)&&"function"==typeof R.abort}function v(R){R.emit("close")}function A(R,pe){R.emit("error",pe),he.nextTick(v,R)}R.exports={construct:function(R,pe){if("function"!=typeof R._construct)return;const Ae=R._readableState,ge=R._writableState;Ae&&(Ae.constructed=!1),ge&&(ge.constructed=!1),R.once(Ie,pe),R.listenerCount(Ie)>1||he.nextTick(m,R)},destroyer:function(R,pe){R&&!Ee(R)&&(pe||Ce(R)||(pe=new me),we(R)?(R.socket=null,R.destroy(pe)):S(R)?R.abort():S(R.req)?R.req.abort():"function"==typeof R.destroy?R.destroy(pe):"function"==typeof R.close?R.close():pe?he.nextTick(A,R,pe):he.nextTick(v,R),R.destroyed||(R[be]=!0))},destroy:function(R,pe){const Ae=this._readableState,he=this._writableState,ye=he||Ae;return null!=he&&he.destroyed||null!=Ae&&Ae.destroyed?("function"==typeof pe&&pe(),this):(p(R,he,Ae),he&&(he.destroyed=!0),Ae&&(Ae.destroyed=!0),ye.constructed?b(this,R,pe):this.once(_e,(function(Ae){b(this,ge(Ae,R),pe)})),this)},undestroy:function(){const R=this._readableState,pe=this._writableState;R&&(R.constructed=!0,R.closed=!1,R.closeEmitted=!1,R.destroyed=!1,R.errored=null,R.errorEmitted=!1,R.reading=!1,R.ended=!1===R.readable,R.endEmitted=!1===R.readable),pe&&(pe.constructed=!0,pe.destroyed=!1,pe.closed=!1,pe.closeEmitted=!1,pe.errored=null,pe.errorEmitted=!1,pe.finalCalled=!1,pe.prefinished=!1,pe.ended=!1===pe.writable,pe.ending=!1===pe.writable,pe.finished=!1===pe.writable)},errorOrDestroy:_}},8672:(R,pe,Ae)=>{"use strict";const{ObjectDefineProperties:he,ObjectGetOwnPropertyDescriptor:ge,ObjectKeys:ye,ObjectSetPrototypeOf:me}=Ae(9061);R.exports=u;const ve=Ae(911),be=Ae(6304);me(u.prototype,ve.prototype),me(u,ve);{const R=ye(be.prototype);for(let pe=0;pe{const he=Ae(4155),ge=Ae(8764),{isReadable:ye,isWritable:me,isIterable:ve,isNodeStream:be,isReadableNodeStream:Ee,isWritableNodeStream:Ce,isDuplexNodeStream:we,isReadableStream:_e,isWritableStream:Ie}=Ae(5874),Se=Ae(8610),{AbortError:Be,codes:{ERR_INVALID_ARG_TYPE:ke,ERR_INVALID_RETURN_VALUE:Oe}}=Ae(4381),{destroyer:Re}=Ae(1195),Qe=Ae(8672),xe=Ae(911),Pe=Ae(6304),{createDeferredPromise:Te}=Ae(6087),De=Ae(6307),Ne=globalThis.Blob||ge.Blob,Me=void 0!==Ne?function(R){return R instanceof Ne}:function(R){return!1},je=globalThis.AbortController||Ae(8599).AbortController,{FunctionPrototypeCall:Fe}=Ae(9061);class B extends Qe{constructor(R){super(R),!1===(null==R?void 0:R.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==R?void 0:R.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function N(R){const pe=R.readable&&"function"!=typeof R.readable.read?xe.wrap(R.readable):R.readable,Ae=R.writable;let he,ge,ve,be,Ee,Ce=!!ye(pe),we=!!me(Ae);function h(R){const pe=be;be=null,pe?pe(R):R&&Ee.destroy(R)}return Ee=new B({readableObjectMode:!(null==pe||!pe.readableObjectMode),writableObjectMode:!(null==Ae||!Ae.writableObjectMode),readable:Ce,writable:we}),we&&(Se(Ae,(R=>{we=!1,R&&Re(pe,R),h(R)})),Ee._write=function(R,pe,ge){Ae.write(R,pe)?ge():he=ge},Ee._final=function(R){Ae.end(),ge=R},Ae.on("drain",(function(){if(he){const R=he;he=null,R()}})),Ae.on("finish",(function(){if(ge){const R=ge;ge=null,R()}}))),Ce&&(Se(pe,(R=>{Ce=!1,R&&Re(pe,R),h(R)})),pe.on("readable",(function(){if(ve){const R=ve;ve=null,R()}})),pe.on("end",(function(){Ee.push(null)})),Ee._read=function(){for(;;){const R=pe.read();if(null===R)return void(ve=Ee._read);if(!Ee.push(R))return}}),Ee._destroy=function(R,ye){R||null===be||(R=new Be),ve=null,he=null,ge=null,null===be?ye(R):(be=ye,Re(Ae,R),Re(pe,R))},Ee}R.exports=function e(R,pe){if(we(R))return R;if(Ee(R))return N({readable:R});if(Ce(R))return N({writable:R});if(be(R))return N({writable:!1,readable:!1});if(_e(R))return N({readable:xe.fromWeb(R)});if(Ie(R))return N({writable:Pe.fromWeb(R)});if("function"==typeof R){const{value:Ae,write:ge,final:ye,destroy:me}=function(R){let{promise:pe,resolve:Ae}=Te();const ge=new je,ye=ge.signal;return{value:R(async function*(){for(;;){const R=pe;pe=null;const{chunk:ge,done:me,cb:ve}=await R;if(he.nextTick(ve),me)return;if(ye.aborted)throw new Be(void 0,{cause:ye.reason});({promise:pe,resolve:Ae}=Te()),yield ge}}(),{signal:ye}),write(R,pe,he){const ge=Ae;Ae=null,ge({chunk:R,done:!1,cb:he})},final(R){const pe=Ae;Ae=null,pe({done:!0,cb:R})},destroy(R,pe){ge.abort(),pe(R)}}}(R);if(ve(Ae))return De(B,Ae,{objectMode:!0,write:ge,final:ye,destroy:me});const be=null==Ae?void 0:Ae.then;if("function"==typeof be){let R;const pe=Fe(be,Ae,(R=>{if(null!=R)throw new Oe("nully","body",R)}),(pe=>{Re(R,pe)}));return R=new B({objectMode:!0,readable:!1,write:ge,final(R){ye((async()=>{try{await pe,he.nextTick(R,null)}catch(pe){he.nextTick(R,pe)}}))},destroy:me})}throw new Oe("Iterable, AsyncIterable or AsyncFunction",pe,Ae)}if(Me(R))return e(R.arrayBuffer());if(ve(R))return De(B,R,{objectMode:!0,writable:!1});if(_e(null==R?void 0:R.readable)&&Ie(null==R?void 0:R.writable))return B.fromWeb(R);if("object"==typeof(null==R?void 0:R.writable)||"object"==typeof(null==R?void 0:R.readable))return N({readable:null!=R&&R.readable?Ee(null==R?void 0:R.readable)?null==R?void 0:R.readable:e(R.readable):void 0,writable:null!=R&&R.writable?Ce(null==R?void 0:R.writable)?null==R?void 0:R.writable:e(R.writable):void 0});const Ae=null==R?void 0:R.then;if("function"==typeof Ae){let pe;return Fe(Ae,R,(R=>{null!=R&&pe.push(R),pe.push(null)}),(R=>{Re(pe,R)})),pe=new B({objectMode:!0,writable:!1,read(){}})}throw new ke(pe,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],R)}},8610:(R,pe,Ae)=>{const he=Ae(4155),{AbortError:ge,codes:ye}=Ae(4381),{ERR_INVALID_ARG_TYPE:me,ERR_STREAM_PREMATURE_CLOSE:ve}=ye,{kEmptyObject:be,once:Ee}=Ae(6087),{validateAbortSignal:Ce,validateFunction:we,validateObject:_e,validateBoolean:Ie}=Ae(6547),{Promise:Se,PromisePrototypeThen:Be,SymbolDispose:ke}=Ae(9061),{isClosed:Oe,isReadable:Re,isReadableNodeStream:Qe,isReadableStream:xe,isReadableFinished:Pe,isReadableErrored:Te,isWritable:De,isWritableNodeStream:Ne,isWritableStream:Me,isWritableFinished:je,isWritableErrored:Fe,isNodeStream:Le,willEmitClose:Ue,kIsClosedPromise:He}=Ae(5874);let Je;const M=()=>{};function O(R,pe,ye){var Ie,Se;if(2===arguments.length?(ye=pe,pe=be):null==pe?pe=be:_e(pe,"options"),we(ye,"callback"),Ce(pe.signal,"options.signal"),ye=Ee(ye),xe(R)||Me(R))return function(R,pe,ye){let me=!1,ve=M;if(pe.signal)if(ve=()=>{me=!0,ye.call(R,new ge(void 0,{cause:pe.signal.reason}))},pe.signal.aborted)he.nextTick(ve);else{Je=Je||Ae(6087).addAbortListener;const he=Je(pe.signal,ve),ge=ye;ye=Ee(((...pe)=>{he[ke](),ge.apply(R,pe)}))}const l=(...pe)=>{me||he.nextTick((()=>ye.apply(R,pe)))};return Be(R[He].promise,l,l),M}(R,pe,ye);if(!Le(R))throw new me("stream",["ReadableStream","WritableStream","Stream"],R);const We=null!==(Ie=pe.readable)&&void 0!==Ie?Ie:Qe(R),Ve=null!==(Se=pe.writable)&&void 0!==Se?Se:Ne(R),Ke=R._writableState,Ge=R._readableState,j=()=>{R.writable||C()};let Ye=Ue(R)&&Qe(R)===We&&Ne(R)===Ve,qe=je(R,!1);const C=()=>{qe=!0,R.destroyed&&(Ye=!1),(!Ye||R.readable&&!We)&&(We&&!$e||ye.call(R))};let $e=Pe(R,!1);const W=()=>{$e=!0,R.destroyed&&(Ye=!1),(!Ye||R.writable&&!Ve)&&(Ve&&!qe||ye.call(R))},G=pe=>{ye.call(R,pe)};let ze=Oe(R);const H=()=>{ze=!0;const pe=Fe(R)||Te(R);return pe&&"boolean"!=typeof pe?ye.call(R,pe):We&&!$e&&Qe(R,!0)&&!Pe(R,!1)?ye.call(R,new ve):!Ve||qe||je(R,!1)?void ye.call(R):ye.call(R,new ve)},V=()=>{ze=!0;const pe=Fe(R)||Te(R);if(pe&&"boolean"!=typeof pe)return ye.call(R,pe);ye.call(R)},K=()=>{R.req.on("finish",C)};!function(R){return R.setHeader&&"function"==typeof R.abort}(R)?Ve&&!Ke&&(R.on("end",j),R.on("close",j)):(R.on("complete",C),Ye||R.on("abort",H),R.req?K():R.on("request",K)),Ye||"boolean"!=typeof R.aborted||R.on("aborted",H),R.on("end",W),R.on("finish",C),!1!==pe.error&&R.on("error",G),R.on("close",H),ze?he.nextTick(H):null!=Ke&&Ke.errorEmitted||null!=Ge&&Ge.errorEmitted?Ye||he.nextTick(V):(We||Ye&&!Re(R)||!qe&&!1!==De(R))&&(Ve||Ye&&!De(R)||!$e&&!1!==Re(R))?Ge&&R.req&&R.aborted&&he.nextTick(V):he.nextTick(V);const q=()=>{ye=M,R.removeListener("aborted",H),R.removeListener("complete",C),R.removeListener("abort",H),R.removeListener("request",K),R.req&&R.req.removeListener("finish",C),R.removeListener("end",j),R.removeListener("close",j),R.removeListener("finish",C),R.removeListener("end",W),R.removeListener("error",G),R.removeListener("close",H)};if(pe.signal&&!ze){const s=()=>{const Ae=ye;q(),Ae.call(R,new ge(void 0,{cause:pe.signal.reason}))};if(pe.signal.aborted)he.nextTick(s);else{Je=Je||Ae(6087).addAbortListener;const he=Je(pe.signal,s),ge=ye;ye=Ee(((...pe)=>{he[ke](),ge.apply(R,pe)}))}}return q}R.exports=O,R.exports.finished=function(R,pe){var Ae;let he=!1;return null===pe&&(pe=be),null!==(Ae=pe)&&void 0!==Ae&&Ae.cleanup&&(Ie(pe.cleanup,"cleanup"),he=pe.cleanup),new Se(((Ae,ge)=>{const ye=O(R,pe,(R=>{he&&ye(),R?ge(R):Ae()}))}))}},6307:(R,pe,Ae)=>{"use strict";const he=Ae(4155),{PromisePrototypeThen:ge,SymbolAsyncIterator:ye,SymbolIterator:me}=Ae(9061),{Buffer:ve}=Ae(8764),{ERR_INVALID_ARG_TYPE:be,ERR_STREAM_NULL_VALUES:Ee}=Ae(4381).codes;R.exports=function(R,pe,Ae){let Ce,we;if("string"==typeof pe||pe instanceof ve)return new R({objectMode:!0,...Ae,read(){this.push(pe),this.push(null)}});if(pe&&pe[ye])we=!0,Ce=pe[ye]();else{if(!pe||!pe[me])throw new be("iterable",["Iterable"],pe);we=!1,Ce=pe[me]()}const _e=new R({objectMode:!0,highWaterMark:1,...Ae});let Ie=!1;return _e._read=function(){Ie||(Ie=!0,async function(){for(;;){try{const{value:R,done:pe}=we?await Ce.next():Ce.next();if(pe)_e.push(null);else{const pe=R&&"function"==typeof R.then?await R:R;if(null===pe)throw Ie=!1,new Ee;if(_e.push(pe))continue;Ie=!1}}catch(R){_e.destroy(R)}break}}())},_e._destroy=function(R,pe){ge(async function(R){const pe=null!=R,Ae="function"==typeof Ce.throw;if(pe&&Ae){const{value:pe,done:Ae}=await Ce.throw(R);if(await pe,Ae)return}if("function"==typeof Ce.return){const{value:R}=await Ce.return();await R}}(R),(()=>he.nextTick(pe,R)),(Ae=>he.nextTick(pe,Ae||R)))},_e}},4870:(R,pe,Ae)=>{"use strict";const{ArrayIsArray:he,ObjectSetPrototypeOf:ge}=Ae(9061),{EventEmitter:ye}=Ae(7187);function s(R){ye.call(this,R)}function a(R,pe,Ae){if("function"==typeof R.prependListener)return R.prependListener(pe,Ae);R._events&&R._events[pe]?he(R._events[pe])?R._events[pe].unshift(Ae):R._events[pe]=[Ae,R._events[pe]]:R.on(pe,Ae)}ge(s.prototype,ye.prototype),ge(s,ye),s.prototype.pipe=function(R,pe){const Ae=this;function n(pe){R.writable&&!1===R.write(pe)&&Ae.pause&&Ae.pause()}function i(){Ae.readable&&Ae.resume&&Ae.resume()}Ae.on("data",n),R.on("drain",i),R._isStdio||pe&&!1===pe.end||(Ae.on("end",l),Ae.on("close",u));let he=!1;function l(){he||(he=!0,R.end())}function u(){he||(he=!0,"function"==typeof R.destroy&&R.destroy())}function c(R){f(),0===ye.listenerCount(this,"error")&&this.emit("error",R)}function f(){Ae.removeListener("data",n),R.removeListener("drain",i),Ae.removeListener("end",l),Ae.removeListener("close",u),Ae.removeListener("error",c),R.removeListener("error",c),Ae.removeListener("end",f),Ae.removeListener("close",f),R.removeListener("close",f)}return a(Ae,"error",c),a(R,"error",c),Ae.on("end",f),Ae.on("close",f),R.on("close",f),R.emit("pipe",Ae),R},R.exports={Stream:s,prependListener:a}},4382:(R,pe,Ae)=>{"use strict";const he=globalThis.AbortController||Ae(8599).AbortController,{codes:{ERR_INVALID_ARG_VALUE:ge,ERR_INVALID_ARG_TYPE:ye,ERR_MISSING_ARGS:me,ERR_OUT_OF_RANGE:ve},AbortError:be}=Ae(4381),{validateAbortSignal:Ee,validateInteger:Ce,validateObject:we}=Ae(6547),_e=Ae(9061).Symbol("kWeak"),Ie=Ae(9061).Symbol("kResistStopPropagation"),{finished:Se}=Ae(8610),Be=Ae(299),{addAbortSignalNoValidate:ke}=Ae(196),{isWritable:Oe,isNodeStream:Re}=Ae(5874),{deprecate:Qe}=Ae(6087),{ArrayPrototypePush:xe,Boolean:Pe,MathFloor:Te,Number:De,NumberIsNaN:Ne,Promise:Me,PromiseReject:je,PromiseResolve:Fe,PromisePrototypeThen:Le,Symbol:Ue}=Ae(9061),He=Ue("kEmpty"),Je=Ue("kEof");function M(R,pe){if("function"!=typeof R)throw new ye("fn",["Function","AsyncFunction"],R);null!=pe&&we(pe,"options"),null!=(null==pe?void 0:pe.signal)&&Ee(pe.signal,"options.signal");let he=1;null!=(null==pe?void 0:pe.concurrency)&&(he=Te(pe.concurrency));let ge=he-1;return null!=(null==pe?void 0:pe.highWaterMark)&&(ge=Te(pe.highWaterMark)),Ce(he,"options.concurrency",1),Ce(ge,"options.highWaterMark",0),ge+=he,async function*(){const ye=Ae(6087).AbortSignalAny([null==pe?void 0:pe.signal].filter(Pe)),me=this,ve=[],Ee={signal:ye};let Ce,we,_e=!1,Ie=0;function p(){_e=!0,b()}function b(){Ie-=1,y()}function y(){we&&!_e&&Ie=ge||Ie>=he)&&await new Me((R=>{we=R}))}ve.push(Je)}catch(R){const pe=je(R);Le(pe,b,p),ve.push(pe)}finally{_e=!0,Ce&&(Ce(),Ce=null)}}();try{for(;;){for(;ve.length>0;){const R=await ve[0];if(R===Je)return;if(ye.aborted)throw new be;R!==He&&(yield R),ve.shift(),y()}await new Me((R=>{Ce=R}))}}finally{_e=!0,we&&(we(),we=null)}}.call(this)}async function O(R,pe=void 0){for await(const Ae of x.call(this,R,pe))return!0;return!1}function x(R,pe){if("function"!=typeof R)throw new ye("fn",["Function","AsyncFunction"],R);return M.call(this,(async function(pe,Ae){return await R(pe,Ae)?pe:He}),pe)}class k extends me{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function P(R){if(R=De(R),Ne(R))return 0;if(R<0)throw new ve("number",">= 0",R);return R}R.exports.streamReturningOperators={asIndexedPairs:Qe((function(R=void 0){return null!=R&&we(R,"options"),null!=(null==R?void 0:R.signal)&&Ee(R.signal,"options.signal"),async function*(){let pe=0;for await(const he of this){var Ae;if(null!=R&&null!==(Ae=R.signal)&&void 0!==Ae&&Ae.aborted)throw new be({cause:R.signal.reason});yield[pe++,he]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(R,pe=void 0){return null!=pe&&we(pe,"options"),null!=(null==pe?void 0:pe.signal)&&Ee(pe.signal,"options.signal"),R=P(R),async function*(){var Ae;if(null!=pe&&null!==(Ae=pe.signal)&&void 0!==Ae&&Ae.aborted)throw new be;for await(const Ae of this){var he;if(null!=pe&&null!==(he=pe.signal)&&void 0!==he&&he.aborted)throw new be;R--<=0&&(yield Ae)}}.call(this)},filter:x,flatMap:function(R,pe){const Ae=M.call(this,R,pe);return async function*(){for await(const R of Ae)yield*R}.call(this)},map:M,take:function(R,pe=void 0){return null!=pe&&we(pe,"options"),null!=(null==pe?void 0:pe.signal)&&Ee(pe.signal,"options.signal"),R=P(R),async function*(){var Ae;if(null!=pe&&null!==(Ae=pe.signal)&&void 0!==Ae&&Ae.aborted)throw new be;for await(const Ae of this){var he;if(null!=pe&&null!==(he=pe.signal)&&void 0!==he&&he.aborted)throw new be;if(R-- >0&&(yield Ae),R<=0)return}}.call(this)},compose:function(R,pe){if(null!=pe&&we(pe,"options"),null!=(null==pe?void 0:pe.signal)&&Ee(pe.signal,"options.signal"),Re(R)&&!Oe(R))throw new ge("stream",R,"must be writable");const Ae=Be(this,R);return null!=pe&&pe.signal&&ke(pe.signal,Ae),Ae}},R.exports.promiseReturningOperators={every:async function(R,pe=void 0){if("function"!=typeof R)throw new ye("fn",["Function","AsyncFunction"],R);return!await O.call(this,(async(...pe)=>!await R(...pe)),pe)},forEach:async function(R,pe){if("function"!=typeof R)throw new ye("fn",["Function","AsyncFunction"],R);for await(const Ae of M.call(this,(async function(pe,Ae){return await R(pe,Ae),He}),pe));},reduce:async function(R,pe,Ae){var ge;if("function"!=typeof R)throw new ye("reducer",["Function","AsyncFunction"],R);null!=Ae&&we(Ae,"options"),null!=(null==Ae?void 0:Ae.signal)&&Ee(Ae.signal,"options.signal");let me=arguments.length>1;if(null!=Ae&&null!==(ge=Ae.signal)&&void 0!==ge&&ge.aborted){const R=new be(void 0,{cause:Ae.signal.reason});throw this.once("error",(()=>{})),await Se(this.destroy(R)),R}const ve=new he,Ce=ve.signal;if(null!=Ae&&Ae.signal){const R={once:!0,[_e]:this,[Ie]:!0};Ae.signal.addEventListener("abort",(()=>ve.abort()),R)}let Be=!1;try{for await(const he of this){var ke;if(Be=!0,null!=Ae&&null!==(ke=Ae.signal)&&void 0!==ke&&ke.aborted)throw new be;me?pe=await R(pe,he,{signal:Ce}):(pe=he,me=!0)}if(!Be&&!me)throw new k}finally{ve.abort()}return pe},toArray:async function(R){null!=R&&we(R,"options"),null!=(null==R?void 0:R.signal)&&Ee(R.signal,"options.signal");const pe=[];for await(const he of this){var Ae;if(null!=R&&null!==(Ae=R.signal)&&void 0!==Ae&&Ae.aborted)throw new be(void 0,{cause:R.signal.reason});xe(pe,he)}return pe},some:O,find:async function(R,pe){for await(const Ae of x.call(this,R,pe))return Ae}}},917:(R,pe,Ae)=>{"use strict";const{ObjectSetPrototypeOf:he}=Ae(9061);R.exports=o;const ge=Ae(1161);function o(R){if(!(this instanceof o))return new o(R);ge.call(this,R)}he(o.prototype,ge.prototype),he(o,ge),o.prototype._transform=function(R,pe,Ae){Ae(null,R)}},9946:(R,pe,Ae)=>{const he=Ae(4155),{ArrayIsArray:ge,Promise:ye,SymbolAsyncIterator:me,SymbolDispose:ve}=Ae(9061),be=Ae(8610),{once:Ee}=Ae(6087),Ce=Ae(1195),we=Ae(8672),{aggregateTwoErrors:_e,codes:{ERR_INVALID_ARG_TYPE:Ie,ERR_INVALID_RETURN_VALUE:Se,ERR_MISSING_ARGS:Be,ERR_STREAM_DESTROYED:ke,ERR_STREAM_PREMATURE_CLOSE:Oe},AbortError:Re}=Ae(4381),{validateFunction:Qe,validateAbortSignal:xe}=Ae(6547),{isIterable:Pe,isReadable:Te,isReadableNodeStream:De,isNodeStream:Ne,isTransformStream:Me,isWebStream:je,isReadableStream:Fe,isReadableFinished:Le}=Ae(5874),Ue=globalThis.AbortController||Ae(8599).AbortController;let He,Je,We;function O(R,pe,Ae){let he=!1;return R.on("close",(()=>{he=!0})),{destroy:pe=>{he||(he=!0,Ce.destroyer(R,pe||new ke("pipe")))},cleanup:be(R,{readable:pe,writable:Ae},(R=>{he=!R}))}}function x(R){if(Pe(R))return R;if(De(R))return async function*(R){Je||(Je=Ae(911)),yield*Je.prototype[me].call(R)}(R);throw new Ie("val",["Readable","Iterable","AsyncIterable"],R)}async function k(R,pe,Ae,{end:he}){let ge,me=null;const a=R=>{if(R&&(ge=R),me){const R=me;me=null,R()}},u=()=>new ye(((R,pe)=>{ge?pe(ge):me=()=>{ge?pe(ge):R()}}));pe.on("drain",a);const ve=be(pe,{readable:!1},a);try{pe.writableNeedDrain&&await u();for await(const Ae of R)pe.write(Ae)||await u();he&&(pe.end(),await u()),Ae()}catch(R){Ae(ge!==R?_e(ge,R):R)}finally{ve(),pe.off("drain",a)}}async function P(R,pe,Ae,{end:he}){Me(pe)&&(pe=pe.writable);const ge=pe.getWriter();try{for await(const pe of R)await ge.ready,ge.write(pe).catch((()=>{}));await ge.ready,he&&await ge.close(),Ae()}catch(R){try{await ge.abort(R),Ae(R)}catch(R){Ae(R)}}}function j(R,pe,ye){if(1===R.length&&ge(R[0])&&(R=R[0]),R.length<2)throw new Be("streams");const me=new Ue,be=me.signal,Ee=null==ye?void 0:ye.signal,Ce=[];function h(){C(new Re)}let _e,ke,Oe;xe(Ee,"options.signal"),We=We||Ae(6087).addAbortListener,Ee&&(_e=We(Ee,h));const Qe=[];let Le,Je=0;function F(R){C(R,0==--Je)}function C(R,Ae){var ge;if(!R||ke&&"ERR_STREAM_PREMATURE_CLOSE"!==ke.code||(ke=R),ke||Ae){for(;Qe.length;)Qe.shift()(ke);null===(ge=_e)||void 0===ge||ge[ve](),me.abort(),Ae&&(ke||Ce.forEach((R=>R())),he.nextTick(pe,ke,Oe))}}for(let pe=0;pe0,Ee=me||!1!==(null==ye?void 0:ye.end),_e=pe===R.length-1;if(Ne(ge)){if(Ee){const{destroy:R,cleanup:pe}=O(ge,me,ve);Qe.push(R),Te(ge)&&_e&&Ce.push(pe)}function $(R){R&&"AbortError"!==R.name&&"ERR_STREAM_PREMATURE_CLOSE"!==R.code&&F(R)}ge.on("error",$),Te(ge)&&_e&&Ce.push((()=>{ge.removeListener("error",$)}))}if(0===pe)if("function"==typeof ge){if(Le=ge({signal:be}),!Pe(Le))throw new Se("Iterable, AsyncIterable or Stream","source",Le)}else Le=Pe(ge)||De(ge)||Me(ge)?ge:we.from(ge);else if("function"==typeof ge){var Ve;if(Le=Me(Le)?x(null===(Ve=Le)||void 0===Ve?void 0:Ve.readable):x(Le),Le=ge(Le,{signal:be}),me){if(!Pe(Le,!0))throw new Se("AsyncIterable",`transform[${pe-1}]`,Le)}else{var Ke;He||(He=Ae(917));const R=new He({objectMode:!0}),pe=null===(Ke=Le)||void 0===Ke?void 0:Ke.then;if("function"==typeof pe)Je++,pe.call(Le,(pe=>{Oe=pe,null!=pe&&R.write(pe),Ee&&R.end(),he.nextTick(F)}),(pe=>{R.destroy(pe),he.nextTick(F,pe)}));else if(Pe(Le,!0))Je++,k(Le,R,F,{end:Ee});else{if(!Fe(Le)&&!Me(Le))throw new Se("AsyncIterable or Promise","destination",Le);{const pe=Le.readable||Le;Je++,k(pe,R,F,{end:Ee})}}Le=R;const{destroy:ge,cleanup:ye}=O(Le,!1,!0);Qe.push(ge),_e&&Ce.push(ye)}}else if(Ne(ge)){if(De(Le)){Je+=2;const R=D(Le,ge,F,{end:Ee});Te(ge)&&_e&&Ce.push(R)}else if(Me(Le)||Fe(Le)){const R=Le.readable||Le;Je++,k(R,ge,F,{end:Ee})}else{if(!Pe(Le))throw new Ie("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Le);Je++,k(Le,ge,F,{end:Ee})}Le=ge}else if(je(ge)){if(De(Le))Je++,P(x(Le),ge,F,{end:Ee});else if(Fe(Le)||Pe(Le))Je++,P(Le,ge,F,{end:Ee});else{if(!Me(Le))throw new Ie("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Le);Je++,P(Le.readable,ge,F,{end:Ee})}Le=ge}else Le=we.from(ge)}return(null!=be&&be.aborted||null!=Ee&&Ee.aborted)&&he.nextTick(h),Le}function D(R,pe,Ae,{end:ge}){let ye=!1;if(pe.on("close",(()=>{ye||Ae(new Oe)})),R.pipe(pe,{end:!1}),ge){function s(){ye=!0,pe.end()}Le(R)?he.nextTick(s):R.once("end",s)}else Ae();return be(R,{readable:!0,writable:!1},(pe=>{const he=R._readableState;pe&&"ERR_STREAM_PREMATURE_CLOSE"===pe.code&&he&&he.ended&&!he.errored&&!he.errorEmitted?R.once("end",Ae).once("error",Ae):Ae(pe)})),be(pe,{readable:!1,writable:!0},Ae)}R.exports={pipelineImpl:j,pipeline:function(...R){return j(R,Ee(function(R){return Qe(R[R.length-1],"streams[stream.length - 1]"),R.pop()}(R)))}}},911:(R,pe,Ae)=>{const he=Ae(4155),{ArrayPrototypeIndexOf:ge,NumberIsInteger:ye,NumberIsNaN:me,NumberParseInt:ve,ObjectDefineProperties:be,ObjectKeys:Ee,ObjectSetPrototypeOf:Ce,Promise:we,SafeSet:_e,SymbolAsyncDispose:Ie,SymbolAsyncIterator:Se,Symbol:Be}=Ae(9061);R.exports=z,z.ReadableState=q;const{EventEmitter:ke}=Ae(7187),{Stream:Oe,prependListener:Re}=Ae(4870),{Buffer:Qe}=Ae(8764),{addAbortSignal:xe}=Ae(196),Pe=Ae(8610);let Te=Ae(6087).debuglog("stream",(R=>{Te=R}));const De=Ae(7327),Ne=Ae(1195),{getHighWaterMark:Me,getDefaultHighWaterMark:je}=Ae(2457),{aggregateTwoErrors:Fe,codes:{ERR_INVALID_ARG_TYPE:Le,ERR_METHOD_NOT_IMPLEMENTED:Ue,ERR_OUT_OF_RANGE:He,ERR_STREAM_PUSH_AFTER_EOF:Je,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:We},AbortError:Ve}=Ae(4381),{validateObject:Ke}=Ae(6547),Ge=Be("kPaused"),{StringDecoder:Ye}=Ae(2553),qe=Ae(6307);Ce(z.prototype,Oe.prototype),Ce(z,Oe);const D=()=>{},{errorOrDestroy:$e}=Ne,ze=1,Xe=16,Ze=32,et=64,tt=2048,rt=4096,nt=65536;function K(R){return{enumerable:!1,get(){return 0!=(this.state&R)},set(pe){pe?this.state|=R:this.state&=~R}}}function q(R,pe,he){"boolean"!=typeof he&&(he=pe instanceof Ae(8672)),this.state=tt|rt|Xe|Ze,R&&R.objectMode&&(this.state|=ze),he&&R&&R.readableObjectMode&&(this.state|=ze),this.highWaterMark=R?Me(this,R,"readableHighWaterMark",he):je(!1),this.buffer=new De,this.length=0,this.pipes=[],this.flowing=null,this[Ge]=null,R&&!1===R.emitClose&&(this.state&=~tt),R&&!1===R.autoDestroy&&(this.state&=~rt),this.errored=null,this.defaultEncoding=R&&R.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,R&&R.encoding&&(this.decoder=new Ye(R.encoding),this.encoding=R.encoding)}function z(R){if(!(this instanceof z))return new z(R);const pe=this instanceof Ae(8672);this._readableState=new q(R,this,pe),R&&("function"==typeof R.read&&(this._read=R.read),"function"==typeof R.destroy&&(this._destroy=R.destroy),"function"==typeof R.construct&&(this._construct=R.construct),R.signal&&!pe&&xe(R.signal,this)),Oe.call(this,R),Ne.construct(this,(()=>{this._readableState.needReadable&&te(this,this._readableState)}))}function X(R,pe,Ae,he){Te("readableAddChunk",pe);const ge=R._readableState;let ye;if(0==(ge.state&ze)&&("string"==typeof pe?(Ae=Ae||ge.defaultEncoding,ge.encoding!==Ae&&(he&&ge.encoding?pe=Qe.from(pe,Ae).toString(ge.encoding):(pe=Qe.from(pe,Ae),Ae=""))):pe instanceof Qe?Ae="":Oe._isUint8Array(pe)?(pe=Oe._uint8ArrayToBuffer(pe),Ae=""):null!=pe&&(ye=new Le("chunk",["string","Buffer","Uint8Array"],pe))),ye)$e(R,ye);else if(null===pe)ge.state&=-9,function(R,pe){if(Te("onEofChunk"),!pe.ended){if(pe.decoder){const R=pe.decoder.end();R&&R.length&&(pe.buffer.push(R),pe.length+=pe.objectMode?1:R.length)}pe.ended=!0,pe.sync?Q(R):(pe.needReadable=!1,pe.emittedReadable=!0,ee(R))}}(R,ge);else if(0!=(ge.state&ze)||pe&&pe.length>0)if(he)if(0!=(4&ge.state))$e(R,new We);else{if(ge.destroyed||ge.errored)return!1;J(R,ge,pe,!0)}else if(ge.ended)$e(R,new Je);else{if(ge.destroyed||ge.errored)return!1;ge.state&=-9,ge.decoder&&!Ae?(pe=ge.decoder.write(pe),ge.objectMode||0!==pe.length?J(R,ge,pe,!1):te(R,ge)):J(R,ge,pe,!1)}else he||(ge.state&=-9,te(R,ge));return!ge.ended&&(ge.length0?(0!=(pe.state&nt)?pe.awaitDrainWriters.clear():pe.awaitDrainWriters=null,pe.dataEmitted=!0,R.emit("data",Ae)):(pe.length+=pe.objectMode?1:Ae.length,he?pe.buffer.unshift(Ae):pe.buffer.push(Ae),0!=(pe.state&et)&&Q(R)),te(R,pe)}function Z(R,pe){return R<=0||0===pe.length&&pe.ended?0:0!=(pe.state&ze)?1:me(R)?pe.flowing&&pe.length?pe.buffer.first().length:pe.length:R<=pe.length?R:pe.ended?pe.length:0}function Q(R){const pe=R._readableState;Te("emitReadable",pe.needReadable,pe.emittedReadable),pe.needReadable=!1,pe.emittedReadable||(Te("emitReadable",pe.flowing),pe.emittedReadable=!0,he.nextTick(ee,R))}function ee(R){const pe=R._readableState;Te("emitReadable_",pe.destroyed,pe.length,pe.ended),pe.destroyed||pe.errored||!pe.length&&!pe.ended||(R.emit("readable"),pe.emittedReadable=!1),pe.needReadable=!pe.flowing&&!pe.ended&&pe.length<=pe.highWaterMark,se(R)}function te(R,pe){!pe.readingMore&&pe.constructed&&(pe.readingMore=!0,he.nextTick(re,R,pe))}function re(R,pe){for(;!pe.reading&&!pe.ended&&(pe.length0,pe.resumeScheduled&&!1===pe[Ge]?pe.flowing=!0:R.listenerCount("data")>0?R.resume():pe.readableListening||(pe.flowing=null)}function ie(R){Te("readable nexttick read 0"),R.read(0)}function oe(R,pe){Te("resume",pe.reading),pe.reading||R.read(0),pe.resumeScheduled=!1,R.emit("resume"),se(R),pe.flowing&&!pe.reading&&R.read(0)}function se(R){const pe=R._readableState;for(Te("flow",pe.flowing);pe.flowing&&null!==R.read(););}function ae(R,pe){"function"!=typeof R.read&&(R=z.wrap(R,{objectMode:!0}));const Ae=async function*(R,pe){let Ae,he=D;function i(pe){this===R?(he(),he=D):he=pe}R.on("readable",i);const ge=Pe(R,{writable:!1},(R=>{Ae=R?Fe(Ae,R):null,he(),he=D}));try{for(;;){const pe=R.destroyed?null:R.read();if(null!==pe)yield pe;else{if(Ae)throw Ae;if(null===Ae)return;await new we(i)}}}catch(R){throw Ae=Fe(Ae,R),Ae}finally{!Ae&&!1===(null==pe?void 0:pe.destroyOnReturn)||void 0!==Ae&&!R._readableState.autoDestroy?(R.off("readable",i),ge()):Ne.destroyer(R,null)}}(R,pe);return Ae.stream=R,Ae}function le(R,pe){if(0===pe.length)return null;let Ae;return pe.objectMode?Ae=pe.buffer.shift():!R||R>=pe.length?(Ae=pe.decoder?pe.buffer.join(""):1===pe.buffer.length?pe.buffer.first():pe.buffer.concat(pe.length),pe.buffer.clear()):Ae=pe.buffer.consume(R,pe.decoder),Ae}function ue(R){const pe=R._readableState;Te("endReadable",pe.endEmitted),pe.endEmitted||(pe.ended=!0,he.nextTick(ce,pe,R))}function ce(R,pe){if(Te("endReadableNT",R.endEmitted,R.length),!R.errored&&!R.closeEmitted&&!R.endEmitted&&0===R.length)if(R.endEmitted=!0,pe.emit("end"),pe.writable&&!1===pe.allowHalfOpen)he.nextTick(fe,pe);else if(R.autoDestroy){const R=pe._writableState;(!R||R.autoDestroy&&(R.finished||!1===R.writable))&&pe.destroy()}}function fe(R){R.writable&&!R.writableEnded&&!R.destroyed&&R.end()}let it;function de(){return void 0===it&&(it={}),it}be(q.prototype,{objectMode:K(ze),ended:K(2),endEmitted:K(4),reading:K(8),constructed:K(Xe),sync:K(Ze),needReadable:K(et),emittedReadable:K(128),readableListening:K(256),resumeScheduled:K(512),errorEmitted:K(1024),emitClose:K(tt),autoDestroy:K(rt),destroyed:K(8192),closed:K(16384),closeEmitted:K(32768),multiAwaitDrain:K(nt),readingMore:K(1<<17),dataEmitted:K(1<<18)}),z.prototype.destroy=Ne.destroy,z.prototype._undestroy=Ne.undestroy,z.prototype._destroy=function(R,pe){pe(R)},z.prototype[ke.captureRejectionSymbol]=function(R){this.destroy(R)},z.prototype[Ie]=function(){let R;return this.destroyed||(R=this.readableEnded?null:new Ve,this.destroy(R)),new we(((pe,Ae)=>Pe(this,(he=>he&&he!==R?Ae(he):pe(null)))))},z.prototype.push=function(R,pe){return X(this,R,pe,!1)},z.prototype.unshift=function(R,pe){return X(this,R,pe,!0)},z.prototype.isPaused=function(){const R=this._readableState;return!0===R[Ge]||!1===R.flowing},z.prototype.setEncoding=function(R){const pe=new Ye(R);this._readableState.decoder=pe,this._readableState.encoding=this._readableState.decoder.encoding;const Ae=this._readableState.buffer;let he="";for(const R of Ae)he+=pe.write(R);return Ae.clear(),""!==he&&Ae.push(he),this._readableState.length=he.length,this},z.prototype.read=function(R){Te("read",R),void 0===R?R=NaN:ye(R)||(R=ve(R,10));const pe=this._readableState,Ae=R;if(R>pe.highWaterMark&&(pe.highWaterMark=function(R){if(R>1073741824)throw new He("size","<= 1GiB",R);return R--,R|=R>>>1,R|=R>>>2,R|=R>>>4,R|=R>>>8,R|=R>>>16,++R}(R)),0!==R&&(pe.state&=-129),0===R&&pe.needReadable&&((0!==pe.highWaterMark?pe.length>=pe.highWaterMark:pe.length>0)||pe.ended))return Te("read: emitReadable",pe.length,pe.ended),0===pe.length&&pe.ended?ue(this):Q(this),null;if(0===(R=Z(R,pe))&&pe.ended)return 0===pe.length&&ue(this),null;let he,ge=0!=(pe.state&et);if(Te("need readable",ge),(0===pe.length||pe.length-R0?le(R,pe):null,null===he?(pe.needReadable=pe.length<=pe.highWaterMark,R=0):(pe.length-=R,pe.multiAwaitDrain?pe.awaitDrainWriters.clear():pe.awaitDrainWriters=null),0===pe.length&&(pe.ended||(pe.needReadable=!0),Ae!==R&&pe.ended&&ue(this)),null===he||pe.errorEmitted||pe.closeEmitted||(pe.dataEmitted=!0,this.emit("data",he)),he},z.prototype._read=function(R){throw new Ue("_read()")},z.prototype.pipe=function(R,pe){const Ae=this,ge=this._readableState;1===ge.pipes.length&&(ge.multiAwaitDrain||(ge.multiAwaitDrain=!0,ge.awaitDrainWriters=new _e(ge.awaitDrainWriters?[ge.awaitDrainWriters]:[]))),ge.pipes.push(R),Te("pipe count=%d opts=%j",ge.pipes.length,pe);const ye=pe&&!1===pe.end||R===he.stdout||R===he.stderr?b:s;function s(){Te("onend"),R.end()}let me;ge.endEmitted?he.nextTick(ye):Ae.once("end",ye),R.on("unpipe",(function t(pe,he){Te("onunpipe"),pe===Ae&&he&&!1===he.hasUnpiped&&(he.hasUnpiped=!0,Te("cleanup"),R.removeListener("close",d),R.removeListener("finish",p),me&&R.removeListener("drain",me),R.removeListener("error",f),R.removeListener("unpipe",t),Ae.removeListener("end",s),Ae.removeListener("end",b),Ae.removeListener("data",c),ve=!0,me&&ge.awaitDrainWriters&&(!R._writableState||R._writableState.needDrain)&&me())}));let ve=!1;function u(){ve||(1===ge.pipes.length&&ge.pipes[0]===R?(Te("false write response, pause",0),ge.awaitDrainWriters=R,ge.multiAwaitDrain=!1):ge.pipes.length>1&&ge.pipes.includes(R)&&(Te("false write response, pause",ge.awaitDrainWriters.size),ge.awaitDrainWriters.add(R)),Ae.pause()),me||(me=function(R,pe){return function(){const Ae=R._readableState;Ae.awaitDrainWriters===pe?(Te("pipeOnDrain",1),Ae.awaitDrainWriters=null):Ae.multiAwaitDrain&&(Te("pipeOnDrain",Ae.awaitDrainWriters.size),Ae.awaitDrainWriters.delete(pe)),Ae.awaitDrainWriters&&0!==Ae.awaitDrainWriters.size||!R.listenerCount("data")||R.resume()}}(Ae,R),R.on("drain",me))}function c(pe){Te("ondata");const Ae=R.write(pe);Te("dest.write",Ae),!1===Ae&&u()}function f(pe){if(Te("onerror",pe),b(),R.removeListener("error",f),0===R.listenerCount("error")){const Ae=R._writableState||R._readableState;Ae&&!Ae.errorEmitted?$e(R,pe):R.emit("error",pe)}}function d(){R.removeListener("finish",p),b()}function p(){Te("onfinish"),R.removeListener("close",d),b()}function b(){Te("unpipe"),Ae.unpipe(R)}return Ae.on("data",c),Re(R,"error",f),R.once("close",d),R.once("finish",p),R.emit("pipe",Ae),!0===R.writableNeedDrain?u():ge.flowing||(Te("pipe resume"),Ae.resume()),R},z.prototype.unpipe=function(R){const pe=this._readableState;if(0===pe.pipes.length)return this;if(!R){const R=pe.pipes;pe.pipes=[],this.pause();for(let pe=0;pe0,!1!==ge.flowing&&this.resume()):"readable"===R&&(ge.endEmitted||ge.readableListening||(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,Te("on readable",ge.length,ge.reading),ge.length?Q(this):ge.reading||he.nextTick(ie,this))),Ae},z.prototype.addListener=z.prototype.on,z.prototype.removeListener=function(R,pe){const Ae=Oe.prototype.removeListener.call(this,R,pe);return"readable"===R&&he.nextTick(ne,this),Ae},z.prototype.off=z.prototype.removeListener,z.prototype.removeAllListeners=function(R){const pe=Oe.prototype.removeAllListeners.apply(this,arguments);return"readable"!==R&&void 0!==R||he.nextTick(ne,this),pe},z.prototype.resume=function(){const R=this._readableState;return R.flowing||(Te("resume"),R.flowing=!R.readableListening,function(R,pe){pe.resumeScheduled||(pe.resumeScheduled=!0,he.nextTick(oe,R,pe))}(this,R)),R[Ge]=!1,this},z.prototype.pause=function(){return Te("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Te("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Ge]=!0,this},z.prototype.wrap=function(R){let pe=!1;R.on("data",(Ae=>{!this.push(Ae)&&R.pause&&(pe=!0,R.pause())})),R.on("end",(()=>{this.push(null)})),R.on("error",(R=>{$e(this,R)})),R.on("close",(()=>{this.destroy()})),R.on("destroy",(()=>{this.destroy()})),this._read=()=>{pe&&R.resume&&(pe=!1,R.resume())};const Ae=Ee(R);for(let pe=1;pe{"use strict";const{MathFloor:he,NumberIsInteger:ge}=Ae(9061),{validateInteger:ye}=Ae(6547),{ERR_INVALID_ARG_VALUE:me}=Ae(4381).codes;let ve=16384,be=16;function u(R){return R?be:ve}R.exports={getHighWaterMark:function(R,pe,Ae,ye){const ve=function(R,pe,Ae){return null!=R.highWaterMark?R.highWaterMark:pe?R[Ae]:null}(pe,ye,Ae);if(null!=ve){if(!ge(ve)||ve<0)throw new me(ye?`options.${Ae}`:"options.highWaterMark",ve);return he(ve)}return u(R.objectMode)},getDefaultHighWaterMark:u,setDefaultHighWaterMark:function(R,pe){ye(pe,"value",0),R?be=pe:ve=pe}}},1161:(R,pe,Ae)=>{"use strict";const{ObjectSetPrototypeOf:he,Symbol:ge}=Ae(9061);R.exports=u;const{ERR_METHOD_NOT_IMPLEMENTED:ye}=Ae(4381).codes,me=Ae(8672),{getHighWaterMark:ve}=Ae(2457);he(u.prototype,me.prototype),he(u,me);const be=ge("kCallback");function u(R){if(!(this instanceof u))return new u(R);const pe=R?ve(this,R,"readableHighWaterMark",!0):null;0===pe&&(R={...R,highWaterMark:null,readableHighWaterMark:pe,writableHighWaterMark:R.writableHighWaterMark||0}),me.call(this,R),this._readableState.sync=!1,this[be]=null,R&&("function"==typeof R.transform&&(this._transform=R.transform),"function"==typeof R.flush&&(this._flush=R.flush)),this.on("prefinish",f)}function c(R){"function"!=typeof this._flush||this.destroyed?(this.push(null),R&&R()):this._flush(((pe,Ae)=>{pe?R?R(pe):this.destroy(pe):(null!=Ae&&this.push(Ae),this.push(null),R&&R())}))}function f(){this._final!==c&&c.call(this)}u.prototype._final=c,u.prototype._transform=function(R,pe,Ae){throw new ye("_transform()")},u.prototype._write=function(R,pe,Ae){const he=this._readableState,ge=this._writableState,ye=he.length;this._transform(R,pe,((R,pe)=>{R?Ae(R):(null!=pe&&this.push(pe),ge.ended||ye===he.length||he.length{"use strict";const{SymbolAsyncIterator:he,SymbolIterator:ge,SymbolFor:ye}=Ae(9061),me=ye("nodejs.stream.destroyed"),ve=ye("nodejs.stream.errored"),be=ye("nodejs.stream.readable"),Ee=ye("nodejs.stream.writable"),Ce=ye("nodejs.stream.disturbed"),we=ye("nodejs.webstream.isClosedPromise"),_e=ye("nodejs.webstream.controllerErrorFunction");function d(R,pe=!1){var Ae;return!(!R||"function"!=typeof R.pipe||"function"!=typeof R.on||pe&&("function"!=typeof R.pause||"function"!=typeof R.resume)||R._writableState&&!1===(null===(Ae=R._readableState)||void 0===Ae?void 0:Ae.readable)||R._writableState&&!R._readableState)}function p(R){var pe;return!(!R||"function"!=typeof R.write||"function"!=typeof R.on||R._readableState&&!1===(null===(pe=R._writableState)||void 0===pe?void 0:pe.writable))}function b(R){return R&&(R._readableState||R._writableState||"function"==typeof R.write&&"function"==typeof R.on||"function"==typeof R.pipe&&"function"==typeof R.on)}function y(R){return!(!R||b(R)||"function"!=typeof R.pipeThrough||"function"!=typeof R.getReader||"function"!=typeof R.cancel)}function g(R){return!(!R||b(R)||"function"!=typeof R.getWriter||"function"!=typeof R.abort)}function w(R){return!(!R||b(R)||"object"!=typeof R.readable||"object"!=typeof R.writable)}function _(R){if(!b(R))return null;const pe=R._writableState,Ae=R._readableState,he=pe||Ae;return!!(R.destroyed||R[me]||null!=he&&he.destroyed)}function m(R){if(!p(R))return null;if(!0===R.writableEnded)return!0;const pe=R._writableState;return(null==pe||!pe.errored)&&("boolean"!=typeof(null==pe?void 0:pe.ended)?null:pe.ended)}function E(R,pe){if(!d(R))return null;const Ae=R._readableState;return(null==Ae||!Ae.errored)&&("boolean"!=typeof(null==Ae?void 0:Ae.endEmitted)?null:!!(Ae.endEmitted||!1===pe&&!0===Ae.ended&&0===Ae.length))}function S(R){return R&&null!=R[be]?R[be]:"boolean"!=typeof(null==R?void 0:R.readable)?null:!_(R)&&d(R)&&R.readable&&!E(R)}function v(R){return R&&null!=R[Ee]?R[Ee]:"boolean"!=typeof(null==R?void 0:R.writable)?null:!_(R)&&p(R)&&R.writable&&!m(R)}function A(R){return"boolean"==typeof R._closed&&"boolean"==typeof R._defaultKeepAlive&&"boolean"==typeof R._removedConnection&&"boolean"==typeof R._removedContLen}function I(R){return"boolean"==typeof R._sent100&&A(R)}R.exports={isDestroyed:_,kIsDestroyed:me,isDisturbed:function(R){var pe;return!(!R||!(null!==(pe=R[Ce])&&void 0!==pe?pe:R.readableDidRead||R.readableAborted))},kIsDisturbed:Ce,isErrored:function(R){var pe,Ae,he,ge,ye,me,be,Ee,Ce,we;return!(!R||!(null!==(pe=null!==(Ae=null!==(he=null!==(ge=null!==(ye=null!==(me=R[ve])&&void 0!==me?me:R.readableErrored)&&void 0!==ye?ye:R.writableErrored)&&void 0!==ge?ge:null===(be=R._readableState)||void 0===be?void 0:be.errorEmitted)&&void 0!==he?he:null===(Ee=R._writableState)||void 0===Ee?void 0:Ee.errorEmitted)&&void 0!==Ae?Ae:null===(Ce=R._readableState)||void 0===Ce?void 0:Ce.errored)&&void 0!==pe?pe:null===(we=R._writableState)||void 0===we?void 0:we.errored))},kIsErrored:ve,isReadable:S,kIsReadable:be,kIsClosedPromise:we,kControllerErrorFunction:_e,kIsWritable:Ee,isClosed:function(R){if(!b(R))return null;if("boolean"==typeof R.closed)return R.closed;const pe=R._writableState,Ae=R._readableState;return"boolean"==typeof(null==pe?void 0:pe.closed)||"boolean"==typeof(null==Ae?void 0:Ae.closed)?(null==pe?void 0:pe.closed)||(null==Ae?void 0:Ae.closed):"boolean"==typeof R._closed&&A(R)?R._closed:null},isDuplexNodeStream:function(R){return!(!R||"function"!=typeof R.pipe||!R._readableState||"function"!=typeof R.on||"function"!=typeof R.write)},isFinished:function(R,pe){return b(R)?!(!_(R)&&(!1!==(null==pe?void 0:pe.readable)&&S(R)||!1!==(null==pe?void 0:pe.writable)&&v(R))):null},isIterable:function(R,pe){return null!=R&&(!0===pe?"function"==typeof R[he]:!1===pe?"function"==typeof R[ge]:"function"==typeof R[he]||"function"==typeof R[ge])},isReadableNodeStream:d,isReadableStream:y,isReadableEnded:function(R){if(!d(R))return null;if(!0===R.readableEnded)return!0;const pe=R._readableState;return!(!pe||pe.errored)&&("boolean"!=typeof(null==pe?void 0:pe.ended)?null:pe.ended)},isReadableFinished:E,isReadableErrored:function(R){var pe,Ae;return b(R)?R.readableErrored?R.readableErrored:null!==(pe=null===(Ae=R._readableState)||void 0===Ae?void 0:Ae.errored)&&void 0!==pe?pe:null:null},isNodeStream:b,isWebStream:function(R){return y(R)||g(R)||w(R)},isWritable:v,isWritableNodeStream:p,isWritableStream:g,isWritableEnded:m,isWritableFinished:function(R,pe){if(!p(R))return null;if(!0===R.writableFinished)return!0;const Ae=R._writableState;return(null==Ae||!Ae.errored)&&("boolean"!=typeof(null==Ae?void 0:Ae.finished)?null:!!(Ae.finished||!1===pe&&!0===Ae.ended&&0===Ae.length))},isWritableErrored:function(R){var pe,Ae;return b(R)?R.writableErrored?R.writableErrored:null!==(pe=null===(Ae=R._writableState)||void 0===Ae?void 0:Ae.errored)&&void 0!==pe?pe:null:null},isServerRequest:function(R){var pe;return"boolean"==typeof R._consuming&&"boolean"==typeof R._dumped&&void 0===(null===(pe=R.req)||void 0===pe?void 0:pe.upgradeOrConnect)},isServerResponse:I,willEmitClose:function(R){if(!b(R))return null;const pe=R._writableState,Ae=R._readableState,he=pe||Ae;return!he&&I(R)||!!(he&&he.autoDestroy&&he.emitClose&&!1===he.closed)},isTransformStream:w}},6304:(R,pe,Ae)=>{const he=Ae(4155),{ArrayPrototypeSlice:ge,Error:ye,FunctionPrototypeSymbolHasInstance:me,ObjectDefineProperty:ve,ObjectDefineProperties:be,ObjectSetPrototypeOf:Ee,StringPrototypeToLowerCase:Ce,Symbol:we,SymbolHasInstance:_e}=Ae(9061);R.exports=x,x.WritableState=M;const{EventEmitter:Ie}=Ae(7187),Se=Ae(4870).Stream,{Buffer:Be}=Ae(8764),ke=Ae(1195),{addAbortSignal:Oe}=Ae(196),{getHighWaterMark:Re,getDefaultHighWaterMark:Qe}=Ae(2457),{ERR_INVALID_ARG_TYPE:xe,ERR_METHOD_NOT_IMPLEMENTED:Pe,ERR_MULTIPLE_CALLBACK:Te,ERR_STREAM_CANNOT_PIPE:De,ERR_STREAM_DESTROYED:Ne,ERR_STREAM_ALREADY_FINISHED:Me,ERR_STREAM_NULL_VALUES:je,ERR_STREAM_WRITE_AFTER_END:Fe,ERR_UNKNOWN_ENCODING:Le}=Ae(4381).codes,{errorOrDestroy:Ue}=ke;function L(){}Ee(x.prototype,Se.prototype),Ee(x,Se);const He=we("kOnFinished");function M(R,pe,he){"boolean"!=typeof he&&(he=pe instanceof Ae(8672)),this.objectMode=!(!R||!R.objectMode),he&&(this.objectMode=this.objectMode||!(!R||!R.writableObjectMode)),this.highWaterMark=R?Re(this,R,"writableHighWaterMark",he):Qe(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const ge=!(!R||!1!==R.decodeStrings);this.decodeStrings=!ge,this.defaultEncoding=R&&R.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=D.bind(void 0,pe),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,O(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!R||!1!==R.emitClose,this.autoDestroy=!R||!1!==R.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[He]=[]}function O(R){R.buffered=[],R.bufferedIndex=0,R.allBuffers=!0,R.allNoop=!0}function x(R){const pe=this instanceof Ae(8672);if(!pe&&!me(x,this))return new x(R);this._writableState=new M(R,this,pe),R&&("function"==typeof R.write&&(this._write=R.write),"function"==typeof R.writev&&(this._writev=R.writev),"function"==typeof R.destroy&&(this._destroy=R.destroy),"function"==typeof R.final&&(this._final=R.final),"function"==typeof R.construct&&(this._construct=R.construct),R.signal&&Oe(R.signal,this)),Se.call(this,R),ke.construct(this,(()=>{const R=this._writableState;R.writing||W(this,R),Y(this,R)}))}function k(R,pe,Ae,ge){const ye=R._writableState;if("function"==typeof Ae)ge=Ae,Ae=ye.defaultEncoding;else{if(Ae){if("buffer"!==Ae&&!Be.isEncoding(Ae))throw new Le(Ae)}else Ae=ye.defaultEncoding;"function"!=typeof ge&&(ge=L)}if(null===pe)throw new je;if(!ye.objectMode)if("string"==typeof pe)!1!==ye.decodeStrings&&(pe=Be.from(pe,Ae),Ae="buffer");else if(pe instanceof Be)Ae="buffer";else{if(!Se._isUint8Array(pe))throw new xe("chunk",["string","Buffer","Uint8Array"],pe);pe=Se._uint8ArrayToBuffer(pe),Ae="buffer"}let me;return ye.ending?me=new Fe:ye.destroyed&&(me=new Ne("write")),me?(he.nextTick(ge,me),Ue(R,me,!0),me):(ye.pendingcb++,function(R,pe,Ae,he,ge){const ye=pe.objectMode?1:Ae.length;pe.length+=ye;const me=pe.lengthAe.bufferedIndex&&W(R,Ae),ge?null!==Ae.afterWriteTickInfo&&Ae.afterWriteTickInfo.cb===ye?Ae.afterWriteTickInfo.count++:(Ae.afterWriteTickInfo={count:1,cb:ye,stream:R,state:Ae},he.nextTick(F,Ae.afterWriteTickInfo)):C(R,Ae,1,ye))):Ue(R,new Te)}function F({stream:R,state:pe,count:Ae,cb:he}){return pe.afterWriteTickInfo=null,C(R,pe,Ae,he)}function C(R,pe,Ae,he){for(!pe.ending&&!R.destroyed&&0===pe.length&&pe.needDrain&&(pe.needDrain=!1,R.emit("drain"));Ae-- >0;)pe.pendingcb--,he();pe.destroyed&&$(pe),Y(R,pe)}function $(R){if(R.writing)return;for(let Ae=R.bufferedIndex;Ae1&&R._writev){pe.pendingcb-=me-1;const he=pe.allNoop?L:R=>{for(let pe=ve;pe256?(Ae.splice(0,ve),pe.bufferedIndex=0):pe.bufferedIndex=ve}pe.bufferProcessing=!1}function G(R){return R.ending&&!R.destroyed&&R.constructed&&0===R.length&&!R.errored&&0===R.buffered.length&&!R.finished&&!R.writing&&!R.errorEmitted&&!R.closeEmitted}function Y(R,pe,Ae){G(pe)&&(function(R,pe){pe.prefinished||pe.finalCalled||("function"!=typeof R._final||pe.destroyed?(pe.prefinished=!0,R.emit("prefinish")):(pe.finalCalled=!0,function(R,pe){let Ae=!1;function i(ge){if(Ae)Ue(R,null!=ge?ge:Te());else if(Ae=!0,pe.pendingcb--,ge){const Ae=pe[He].splice(0);for(let R=0;R{G(pe)?H(R,pe):pe.pendingcb--}),R,pe)):G(pe)&&(pe.pendingcb++,H(R,pe))))}function H(R,pe){pe.pendingcb--,pe.finished=!0;const Ae=pe[He].splice(0);for(let R=0;R{"use strict";const{ArrayIsArray:he,ArrayPrototypeIncludes:ge,ArrayPrototypeJoin:ye,ArrayPrototypeMap:me,NumberIsInteger:ve,NumberIsNaN:be,NumberMAX_SAFE_INTEGER:Ee,NumberMIN_SAFE_INTEGER:Ce,NumberParseInt:we,ObjectPrototypeHasOwnProperty:_e,RegExpPrototypeExec:Ie,String:Se,StringPrototypeToUpperCase:Be,StringPrototypeTrim:ke}=Ae(9061),{hideStackFrames:Oe,codes:{ERR_SOCKET_BAD_PORT:Re,ERR_INVALID_ARG_TYPE:Qe,ERR_INVALID_ARG_VALUE:xe,ERR_OUT_OF_RANGE:Pe,ERR_UNKNOWN_SIGNAL:Te}}=Ae(4381),{normalizeEncoding:De}=Ae(6087),{isAsyncFunction:Ne,isArrayBufferView:Me}=Ae(6087).types,je={},Fe=/^[0-7]+$/,Le=Oe(((R,pe,Ae=Ce,he=Ee)=>{if("number"!=typeof R)throw new Qe(pe,"number",R);if(!ve(R))throw new Pe(pe,"an integer",R);if(Rhe)throw new Pe(pe,`>= ${Ae} && <= ${he}`,R)})),Ue=Oe(((R,pe,Ae=-2147483648,he=2147483647)=>{if("number"!=typeof R)throw new Qe(pe,"number",R);if(!ve(R))throw new Pe(pe,"an integer",R);if(Rhe)throw new Pe(pe,`>= ${Ae} && <= ${he}`,R)})),He=Oe(((R,pe,Ae=!1)=>{if("number"!=typeof R)throw new Qe(pe,"number",R);if(!ve(R))throw new Pe(pe,"an integer",R);const he=Ae?1:0,ge=4294967295;if(Rge)throw new Pe(pe,`>= ${he} && <= ${ge}`,R)}));function U(R,pe){if("string"!=typeof R)throw new Qe(pe,"string",R)}const Je=Oe(((R,pe,Ae)=>{if(!ge(Ae,R)){const he=ye(me(Ae,(R=>"string"==typeof R?`'${R}'`:Se(R))),", ");throw new xe(pe,R,"must be one of: "+he)}}));function O(R,pe){if("boolean"!=typeof R)throw new Qe(pe,"boolean",R)}function x(R,pe,Ae){return null!=R&&_e(R,pe)?R[pe]:Ae}const We=Oe(((R,pe,Ae=null)=>{const ge=x(Ae,"allowArray",!1),ye=x(Ae,"allowFunction",!1);if(!x(Ae,"nullable",!1)&&null===R||!ge&&he(R)||"object"!=typeof R&&(!ye||"function"!=typeof R))throw new Qe(pe,"Object",R)})),Ve=Oe(((R,pe)=>{if(null!=R&&"object"!=typeof R&&"function"!=typeof R)throw new Qe(pe,"a dictionary",R)})),Ke=Oe(((R,pe,Ae=0)=>{if(!he(R))throw new Qe(pe,"Array",R);if(R.length{if(!Me(R))throw new Qe(pe,["Buffer","TypedArray","DataView"],R)})),Ye=Oe(((R,pe)=>{if(void 0!==R&&(null===R||"object"!=typeof R||!("aborted"in R)))throw new Qe(pe,"AbortSignal",R)})),qe=Oe(((R,pe)=>{if("function"!=typeof R)throw new Qe(pe,"Function",R)})),$e=Oe(((R,pe)=>{if("function"!=typeof R||Ne(R))throw new Qe(pe,"Function",R)})),ze=Oe(((R,pe)=>{if(void 0!==R)throw new Qe(pe,"undefined",R)})),Xe=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Y(R,pe){if(void 0===R||!Ie(Xe,R))throw new xe(pe,R,'must be an array or string of format "; rel=preload; as=style"')}R.exports={isInt32:function(R){return R===(0|R)},isUint32:function(R){return R===R>>>0},parseFileMode:function(R,pe,Ae){if(void 0===R&&(R=Ae),"string"==typeof R){if(null===Ie(Fe,R))throw new xe(pe,R,"must be a 32-bit unsigned integer or an octal string");R=we(R,8)}return He(R,pe),R},validateArray:Ke,validateStringArray:function(R,pe){Ke(R,pe);for(let Ae=0;Aehe||(null!=Ae||null!=he)&&be(R))throw new Pe(pe,`${null!=Ae?`>= ${Ae}`:""}${null!=Ae&&null!=he?" && ":""}${null!=he?`<= ${he}`:""}`,R)},validateObject:We,validateOneOf:Je,validatePlainFunction:$e,validatePort:function(R,pe="Port",Ae=!0){if("number"!=typeof R&&"string"!=typeof R||"string"==typeof R&&0===ke(R).length||+R!=+R>>>0||R>65535||0===R&&!Ae)throw new Re(pe,R,Ae);return 0|R},validateSignalName:function(R,pe="signal"){if(U(R,pe),void 0===je[R]){if(void 0!==je[Be(R)])throw new Te(R+" (signals must use all capital letters)");throw new Te(R)}},validateString:U,validateUint32:He,validateUndefined:ze,validateUnion:function(R,pe,Ae){if(!ge(Ae,R))throw new Qe(pe,`('${ye(Ae,"|")}')`,R)},validateAbortSignal:Ye,validateLinkHeaderValue:function(R){if("string"==typeof R)return Y(R,"hints"),R;if(he(R)){const pe=R.length;let Ae="";if(0===pe)return Ae;for(let he=0;he; rel=preload; as=style"')}}},4381:(R,pe,Ae)=>{"use strict";const{format:he,inspect:ge,AggregateError:ye}=Ae(6087),me=globalThis.AggregateError||ye,ve=Symbol("kIsNodeError"),be=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Ee=/^([A-Z][a-z0-9]*)+$/,Ce={};function f(R,pe){if(!R)throw new Ce.ERR_INTERNAL_ASSERTION(pe)}function h(R){let pe="",Ae=R.length;const he="-"===R[0]?1:0;for(;Ae>=he+4;Ae-=3)pe=`_${R.slice(Ae-3,Ae)}${pe}`;return`${R.slice(0,Ae)}${pe}`}function d(R,pe,Ae){Ae||(Ae=Error);class i extends Ae{constructor(...Ae){super(function(R,pe,Ae){if("function"==typeof pe)return f(pe.length<=Ae.length,`Code: ${R}; The provided arguments length (${Ae.length}) does not match the required ones (${pe.length}).`),pe(...Ae);const ge=(pe.match(/%[dfijoOs]/g)||[]).length;return f(ge===Ae.length,`Code: ${R}; The provided arguments length (${Ae.length}) does not match the required ones (${ge}).`),0===Ae.length?pe:he(pe,...Ae)}(R,pe,Ae))}toString(){return`${this.name} [${R}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:Ae.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${R}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=R,i.prototype[ve]=!0,Ce[R]=i}function p(R){const pe="__node_internal_"+R.name;return Object.defineProperty(R,"name",{value:pe}),R}class b extends Error{constructor(R="The operation was aborted",pe=void 0){if(void 0!==pe&&"object"!=typeof pe)throw new Ce.ERR_INVALID_ARG_TYPE("options","Object",pe);super(R,pe),this.code="ABORT_ERR",this.name="AbortError"}}d("ERR_ASSERTION","%s",Error),d("ERR_INVALID_ARG_TYPE",((R,pe,Ae)=>{f("string"==typeof R,"'name' must be a string"),Array.isArray(pe)||(pe=[pe]);let he="The ";R.endsWith(" argument")?he+=`${R} `:he+=`"${R}" ${R.includes(".")?"property":"argument"} `,he+="must be ";const ye=[],me=[],ve=[];for(const R of pe)f("string"==typeof R,"All expected entries have to be of type string"),be.includes(R)?ye.push(R.toLowerCase()):Ee.test(R)?me.push(R):(f("object"!==R,'The value "object" should be written as "Object"'),ve.push(R));if(me.length>0){const R=ye.indexOf("object");-1!==R&&(ye.splice(ye,R,1),me.push("Object"))}if(ye.length>0){switch(ye.length){case 1:he+=`of type ${ye[0]}`;break;case 2:he+=`one of type ${ye[0]} or ${ye[1]}`;break;default:{const R=ye.pop();he+=`one of type ${ye.join(", ")}, or ${R}`}}(me.length>0||ve.length>0)&&(he+=" or ")}if(me.length>0){switch(me.length){case 1:he+=`an instance of ${me[0]}`;break;case 2:he+=`an instance of ${me[0]} or ${me[1]}`;break;default:{const R=me.pop();he+=`an instance of ${me.join(", ")}, or ${R}`}}ve.length>0&&(he+=" or ")}switch(ve.length){case 0:break;case 1:ve[0].toLowerCase()!==ve[0]&&(he+="an "),he+=`${ve[0]}`;break;case 2:he+=`one of ${ve[0]} or ${ve[1]}`;break;default:{const R=ve.pop();he+=`one of ${ve.join(", ")}, or ${R}`}}if(null==Ae)he+=`. Received ${Ae}`;else if("function"==typeof Ae&&Ae.name)he+=`. Received function ${Ae.name}`;else if("object"==typeof Ae){var Ce;null!==(Ce=Ae.constructor)&&void 0!==Ce&&Ce.name?he+=`. Received an instance of ${Ae.constructor.name}`:he+=`. Received ${ge(Ae,{depth:-1})}`}else{let R=ge(Ae,{colors:!1});R.length>25&&(R=`${R.slice(0,25)}...`),he+=`. Received type ${typeof Ae} (${R})`}return he}),TypeError),d("ERR_INVALID_ARG_VALUE",((R,pe,Ae="is invalid")=>{let he=ge(pe);return he.length>128&&(he=he.slice(0,128)+"..."),`The ${R.includes(".")?"property":"argument"} '${R}' ${Ae}. Received ${he}`}),TypeError),d("ERR_INVALID_RETURN_VALUE",((R,pe,Ae)=>{var he;return`Expected ${R} to be returned from the "${pe}" function but got ${null!=Ae&&null!==(he=Ae.constructor)&&void 0!==he&&he.name?`instance of ${Ae.constructor.name}`:"type "+typeof Ae}.`}),TypeError),d("ERR_MISSING_ARGS",((...R)=>{let pe;f(R.length>0,"At least one arg needs to be specified");const Ae=R.length;switch(R=(Array.isArray(R)?R:[R]).map((R=>`"${R}"`)).join(" or "),Ae){case 1:pe+=`The ${R[0]} argument`;break;case 2:pe+=`The ${R[0]} and ${R[1]} arguments`;break;default:{const Ae=R.pop();pe+=`The ${R.join(", ")}, and ${Ae} arguments`}}return`${pe} must be specified`}),TypeError),d("ERR_OUT_OF_RANGE",((R,pe,Ae)=>{let he;return f(pe,'Missing "range" argument'),Number.isInteger(Ae)&&Math.abs(Ae)>2**32?he=h(String(Ae)):"bigint"==typeof Ae?(he=String(Ae),(Ae>2n**32n||Ae<-(2n**32n))&&(he=h(he)),he+="n"):he=ge(Ae),`The value of "${R}" is out of range. It must be ${pe}. Received ${he}`}),RangeError),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),d("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),d("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),d("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),d("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),d("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),d("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),d("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),d("ERR_STREAM_WRITE_AFTER_END","write after end",Error),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),R.exports={AbortError:b,aggregateTwoErrors:p((function(R,pe){if(R&&pe&&R!==pe){if(Array.isArray(pe.errors))return pe.errors.push(R),pe;const Ae=new me([pe,R],pe.message);return Ae.code=pe.code,Ae}return R||pe})),hideStackFrames:p,codes:Ce}},9061:R=>{"use strict";R.exports={ArrayIsArray:R=>Array.isArray(R),ArrayPrototypeIncludes:(R,pe)=>R.includes(pe),ArrayPrototypeIndexOf:(R,pe)=>R.indexOf(pe),ArrayPrototypeJoin:(R,pe)=>R.join(pe),ArrayPrototypeMap:(R,pe)=>R.map(pe),ArrayPrototypePop:(R,pe)=>R.pop(pe),ArrayPrototypePush:(R,pe)=>R.push(pe),ArrayPrototypeSlice:(R,pe,Ae)=>R.slice(pe,Ae),Error:Error,FunctionPrototypeCall:(R,pe,...Ae)=>R.call(pe,...Ae),FunctionPrototypeSymbolHasInstance:(R,pe)=>Function.prototype[Symbol.hasInstance].call(R,pe),MathFloor:Math.floor,Number:Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(R,pe)=>Object.defineProperties(R,pe),ObjectDefineProperty:(R,pe,Ae)=>Object.defineProperty(R,pe,Ae),ObjectGetOwnPropertyDescriptor:(R,pe)=>Object.getOwnPropertyDescriptor(R,pe),ObjectKeys:R=>Object.keys(R),ObjectSetPrototypeOf:(R,pe)=>Object.setPrototypeOf(R,pe),Promise:Promise,PromisePrototypeCatch:(R,pe)=>R.catch(pe),PromisePrototypeThen:(R,pe,Ae)=>R.then(pe,Ae),PromiseReject:R=>Promise.reject(R),PromiseResolve:R=>Promise.resolve(R),ReflectApply:Reflect.apply,RegExpPrototypeTest:(R,pe)=>R.test(pe),SafeSet:Set,String:String,StringPrototypeSlice:(R,pe,Ae)=>R.slice(pe,Ae),StringPrototypeToLowerCase:R=>R.toLowerCase(),StringPrototypeToUpperCase:R=>R.toUpperCase(),StringPrototypeTrim:R=>R.trim(),Symbol:Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(R,pe,Ae)=>R.set(pe,Ae),Boolean:Boolean,Uint8Array:Uint8Array}},6087:(R,pe,Ae)=>{"use strict";const he=Ae(8764),{kResistStopPropagation:ge,SymbolDispose:ye}=Ae(9061),me=globalThis.AbortSignal||Ae(8599).AbortSignal,ve=globalThis.AbortController||Ae(8599).AbortController,be=Object.getPrototypeOf((async function(){})).constructor,Ee=globalThis.Blob||he.Blob,Ce=void 0!==Ee?function(R){return R instanceof Ee}:function(R){return!1},f=(R,pe)=>{if(void 0!==R&&(null===R||"object"!=typeof R||!("aborted"in R)))throw new ERR_INVALID_ARG_TYPE(pe,"AbortSignal",R)};class h extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError("Expected input to be an Array, got "+typeof R);let pe="";for(let Ae=0;Ae{R=Ae,pe=he})),resolve:R,reject:pe}},promisify:R=>new Promise(((pe,Ae)=>{R(((R,...he)=>R?Ae(R):pe(...he)))})),debuglog:()=>function(){},format:(R,...pe)=>R.replace(/%([sdifj])/g,(function(...[R,Ae]){const he=pe.shift();return"f"===Ae?he.toFixed(6):"j"===Ae?JSON.stringify(he):"s"===Ae&&"object"==typeof he?`${he.constructor!==Object?he.constructor.name:""} {}`.trim():he.toString()})),inspect(R){switch(typeof R){case"string":if(R.includes("'")){if(!R.includes('"'))return`"${R}"`;if(!R.includes("`")&&!R.includes("${"))return`\`${R}\``}return`'${R}'`;case"number":return isNaN(R)?"NaN":Object.is(R,-0)?String(R):R;case"bigint":return`${String(R)}n`;case"boolean":case"undefined":return String(R);case"object":return"{}"}},types:{isAsyncFunction:R=>R instanceof be,isArrayBufferView:R=>ArrayBuffer.isView(R)},isBlob:Ce,deprecate:(R,pe)=>R,addAbortListener:Ae(7187).addAbortListener||function(R,pe){if(void 0===R)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);let Ae;return f(R,"signal"),((R,pe)=>{if("function"!=typeof R)throw new ERR_INVALID_ARG_TYPE("listener","Function",R)})(pe),R.aborted?queueMicrotask((()=>pe())):(R.addEventListener("abort",pe,{__proto__:null,once:!0,[ge]:!0}),Ae=()=>{R.removeEventListener("abort",pe)}),{__proto__:null,[ye](){var R;null===(R=Ae)||void 0===R||R()}}},AbortSignalAny:me.any||function(R){if(1===R.length)return R[0];const pe=new ve,r=()=>pe.abort();return R.forEach((R=>{f(R,"signals"),R.addEventListener("abort",r,{once:!0})})),pe.signal.addEventListener("abort",(()=>{R.forEach((R=>R.removeEventListener("abort",r)))}),{once:!0}),pe.signal}},R.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},5099:(R,pe,Ae)=>{const{Buffer:he}=Ae(8764),{ObjectDefineProperty:ge,ObjectKeys:ye,ReflectApply:me}=Ae(9061),{promisify:{custom:ve}}=Ae(6087),{streamReturningOperators:be,promiseReturningOperators:Ee}=Ae(4382),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Ce}}=Ae(4381),we=Ae(299),{setDefaultHighWaterMark:_e,getDefaultHighWaterMark:Ie}=Ae(2457),{pipeline:Se}=Ae(9946),{destroyer:Be}=Ae(1195),ke=Ae(8610),Oe=Ae(7854),Re=Ae(5874),Qe=R.exports=Ae(4870).Stream;Qe.isDestroyed=Re.isDestroyed,Qe.isDisturbed=Re.isDisturbed,Qe.isErrored=Re.isErrored,Qe.isReadable=Re.isReadable,Qe.isWritable=Re.isWritable,Qe.Readable=Ae(911);for(const R of ye(be)){const pe=be[R];function m(...R){if(new.target)throw Ce();return Qe.Readable.from(me(pe,this,R))}ge(m,"name",{__proto__:null,value:pe.name}),ge(m,"length",{__proto__:null,value:pe.length}),ge(Qe.Readable.prototype,R,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}for(const R of ye(Ee)){const pe=Ee[R];function m(...R){if(new.target)throw Ce();return me(pe,this,R)}ge(m,"name",{__proto__:null,value:pe.name}),ge(m,"length",{__proto__:null,value:pe.length}),ge(Qe.Readable.prototype,R,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}Qe.Writable=Ae(6304),Qe.Duplex=Ae(8672),Qe.Transform=Ae(1161),Qe.PassThrough=Ae(917),Qe.pipeline=Se;const{addAbortSignal:xe}=Ae(196);Qe.addAbortSignal=xe,Qe.finished=ke,Qe.destroy=Be,Qe.compose=we,Qe.setDefaultHighWaterMark=_e,Qe.getDefaultHighWaterMark=Ie,ge(Qe,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>Oe}),ge(Se,ve,{__proto__:null,enumerable:!0,get:()=>Oe.pipeline}),ge(ke,ve,{__proto__:null,enumerable:!0,get:()=>Oe.finished}),Qe.Stream=Qe,Qe._isUint8Array=function(R){return R instanceof Uint8Array},Qe._uint8ArrayToBuffer=function(R){return he.from(R.buffer,R.byteOffset,R.byteLength)}},7854:(R,pe,Ae)=>{"use strict";const{ArrayPrototypePop:he,Promise:ge}=Ae(9061),{isIterable:ye,isNodeStream:me,isWebStream:ve}=Ae(5874),{pipelineImpl:be}=Ae(9946),{finished:Ee}=Ae(8610);Ae(5099),R.exports={finished:Ee,pipeline:function(...R){return new ge(((pe,Ae)=>{let ge,Ee;const Ce=R[R.length-1];if(Ce&&"object"==typeof Ce&&!me(Ce)&&!ye(Ce)&&!ve(Ce)){const pe=he(R);ge=pe.signal,Ee=pe.end}be(R,((R,he)=>{R?Ae(R):pe(he)}),{signal:ge,end:Ee})}))}}},9509:(R,pe,Ae)=>{var he=Ae(8764),ge=he.Buffer;function o(R,pe){for(var Ae in R)pe[Ae]=R[Ae]}function s(R,pe,Ae){return ge(R,pe,Ae)}ge.from&&ge.alloc&&ge.allocUnsafe&&ge.allocUnsafeSlow?R.exports=he:(o(he,pe),pe.Buffer=s),s.prototype=Object.create(ge.prototype),o(ge,s),s.from=function(R,pe,Ae){if("number"==typeof R)throw new TypeError("Argument must not be a number");return ge(R,pe,Ae)},s.alloc=function(R,pe,Ae){if("number"!=typeof R)throw new TypeError("Argument must be a number");var he=ge(R);return void 0!==pe?"string"==typeof Ae?he.fill(pe,Ae):he.fill(pe):he.fill(0),he},s.allocUnsafe=function(R){if("number"!=typeof R)throw new TypeError("Argument must be a number");return ge(R)},s.allocUnsafeSlow=function(R){if("number"!=typeof R)throw new TypeError("Argument must be a number");return he.SlowBuffer(R)}},2830:(R,pe,Ae)=>{R.exports=i;var he=Ae(7187).EventEmitter;function i(){he.call(this)}Ae(5717)(i,he),i.Readable=Ae(9481),i.Writable=Ae(4229),i.Duplex=Ae(6753),i.Transform=Ae(4605),i.PassThrough=Ae(2725),i.finished=Ae(8610),i.pipeline=Ae(9946),i.Stream=i,i.prototype.pipe=function(R,pe){var Ae=this;function i(pe){R.writable&&!1===R.write(pe)&&Ae.pause&&Ae.pause()}function o(){Ae.readable&&Ae.resume&&Ae.resume()}Ae.on("data",i),R.on("drain",o),R._isStdio||pe&&!1===pe.end||(Ae.on("end",a),Ae.on("close",l));var ge=!1;function a(){ge||(ge=!0,R.end())}function l(){ge||(ge=!0,"function"==typeof R.destroy&&R.destroy())}function u(R){if(c(),0===he.listenerCount(this,"error"))throw R}function c(){Ae.removeListener("data",i),R.removeListener("drain",o),Ae.removeListener("end",a),Ae.removeListener("close",l),Ae.removeListener("error",u),R.removeListener("error",u),Ae.removeListener("end",c),Ae.removeListener("close",c),R.removeListener("close",c)}return Ae.on("error",u),R.on("error",u),Ae.on("end",c),Ae.on("close",c),R.on("close",c),R.emit("pipe",Ae),R}},2553:(R,pe,Ae)=>{"use strict";var he=Ae(9509).Buffer,ge=he.isEncoding||function(R){switch((R=""+R)&&R.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(R){var pe;switch(this.encoding=function(R){var pe=function(R){if(!R)return"utf8";for(var pe;;)switch(R){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return R;default:if(pe)return;R=(""+R).toLowerCase(),pe=!0}}(R);if("string"!=typeof pe&&(he.isEncoding===ge||!ge(R)))throw new Error("Unknown encoding: "+R);return pe||R}(R),this.encoding){case"utf16le":this.text=l,this.end=u,pe=4;break;case"utf8":this.fillLast=a,pe=4;break;case"base64":this.text=c,this.end=f,pe=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=he.allocUnsafe(pe)}function s(R){return R<=127?0:R>>5==6?2:R>>4==14?3:R>>3==30?4:R>>6==2?-1:-2}function a(R){var pe=this.lastTotal-this.lastNeed,Ae=function(R,pe,Ae){if(128!=(192&pe[0]))return R.lastNeed=0,"�";if(R.lastNeed>1&&pe.length>1){if(128!=(192&pe[1]))return R.lastNeed=1,"�";if(R.lastNeed>2&&pe.length>2&&128!=(192&pe[2]))return R.lastNeed=2,"�"}}(this,R);return void 0!==Ae?Ae:this.lastNeed<=R.length?(R.copy(this.lastChar,pe,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(R.copy(this.lastChar,pe,0,R.length),void(this.lastNeed-=R.length))}function l(R,pe){if((R.length-pe)%2==0){var Ae=R.toString("utf16le",pe);if(Ae){var he=Ae.charCodeAt(Ae.length-1);if(he>=55296&&he<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1],Ae.slice(0,-1)}return Ae}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=R[R.length-1],R.toString("utf16le",pe,R.length-1)}function u(R){var pe=R&&R.length?this.write(R):"";if(this.lastNeed){var Ae=this.lastTotal-this.lastNeed;return pe+this.lastChar.toString("utf16le",0,Ae)}return pe}function c(R,pe){var Ae=(R.length-pe)%3;return 0===Ae?R.toString("base64",pe):(this.lastNeed=3-Ae,this.lastTotal=3,1===Ae?this.lastChar[0]=R[R.length-1]:(this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1]),R.toString("base64",pe,R.length-Ae))}function f(R){var pe=R&&R.length?this.write(R):"";return this.lastNeed?pe+this.lastChar.toString("base64",0,3-this.lastNeed):pe}function h(R){return R.toString(this.encoding)}function d(R){return R&&R.length?this.write(R):""}pe.StringDecoder=o,o.prototype.write=function(R){if(0===R.length)return"";var pe,Ae;if(this.lastNeed){if(void 0===(pe=this.fillLast(R)))return"";Ae=this.lastNeed,this.lastNeed=0}else Ae=0;return Ae=0?(ge>0&&(R.lastNeed=ge-1),ge):--he=0?(ge>0&&(R.lastNeed=ge-2),ge):--he=0?(ge>0&&(2===ge?ge=0:R.lastNeed=ge-3),ge):0}(this,R,pe);if(!this.lastNeed)return R.toString("utf8",pe);this.lastTotal=Ae;var he=R.length-(Ae-this.lastNeed);return R.copy(this.lastChar,0,he),R.toString("utf8",pe,he)},o.prototype.fillLast=function(R){if(this.lastNeed<=R.length)return R.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);R.copy(this.lastChar,this.lastTotal-this.lastNeed,0,R.length),this.lastNeed-=R.length}}},pe={};function r(Ae){var he=pe[Ae];if(void 0!==he)return he.exports;var ge=pe[Ae]={exports:{}};return R[Ae](ge,ge.exports,r),ge.exports}r.n=R=>{var pe=R&&R.__esModule?()=>R.default:()=>R;return r.d(pe,{a:pe}),pe},r.d=(R,pe)=>{for(var Ae in pe)r.o(pe,Ae)&&!r.o(R,Ae)&&Object.defineProperty(R,Ae,{enumerable:!0,get:pe[Ae]})},r.o=(R,pe)=>Object.prototype.hasOwnProperty.call(R,pe),r.r=R=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(R,"__esModule",{value:!0})};var Ae={};return(()=>{"use strict";r.r(Ae);var R=r(2141),pe={};for(const Ae in R)"default"!==Ae&&(pe[Ae]=()=>R[Ae]);r.d(Ae,pe)})(),Ae})()))},32940:(R,pe,Ae)=>{"use strict";const he=Ae(27017);const ge=Ae(17296);const ye=Ae(88494);const me=Ae(86606);const ve=Ae(28184);const be=Ae(67034);const Ee=Ae(33123);const Ce=Ae(51657);R.exports={Commented:he,Diagnose:ge,Decoder:ye,Encoder:me,Simple:ve,Tagged:be,Map:Ee,SharedValueEncoder:Ce,comment:he.comment,decodeAll:ye.decodeAll,decodeFirst:ye.decodeFirst,decodeAllSync:ye.decodeAllSync,decodeFirstSync:ye.decodeFirstSync,diagnose:ge.diagnose,encode:me.encode,encodeCanonical:me.encodeCanonical,encodeOne:me.encodeOne,encodeAsync:me.encodeAsync,decode:ye.decodeFirstSync,leveldb:{decode:ye.decodeFirstSync,encode:me.encode,buffer:true,name:"cbor"},reset(){me.reset();be.reset()}}},27017:(R,pe,Ae)=>{"use strict";const he=Ae(12781);const ge=Ae(90103);const ye=Ae(88494);const me=Ae(75070);const{MT:ve,NUMBYTES:be,SYMS:Ee}=Ae(41346);const{Buffer:Ce}=Ae(14300);function plural(R){if(R>1){return"s"}return""}function normalizeOptions(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"number":return{options:{max_depth:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}class Commented extends he.Transform{constructor(R={}){const{depth:pe=1,max_depth:Ae=10,no_summary:he=false,tags:ge={},preferWeb:ve,encoding:be,...Ee}=R;super({...Ee,readableObjectMode:false,writableObjectMode:false});this.depth=pe;this.max_depth=Ae;this.all=new me;if(!ge[24]){ge[24]=this._tag_24.bind(this)}this.parser=new ye({tags:ge,max_depth:Ae,preferWeb:ve,encoding:be});this.parser.on("value",this._on_value.bind(this));this.parser.on("start",this._on_start.bind(this));this.parser.on("start-string",this._on_start_string.bind(this));this.parser.on("stop",this._on_stop.bind(this));this.parser.on("more-bytes",this._on_more.bind(this));this.parser.on("error",this._on_error.bind(this));if(!he){this.parser.on("data",this._on_data.bind(this))}this.parser.bs.on("read",this._on_read.bind(this))}_tag_24(R){const pe=new Commented({depth:this.depth+1,no_summary:true});pe.on("data",(R=>this.push(R)));pe.on("error",(R=>this.emit("error",R)));pe.end(R)}_transform(R,pe,Ae){this.parser.write(R,pe,Ae)}_flush(R){return this.parser._flush(R)}static comment(R,pe={},Ae=null){if(R==null){throw new Error("input required")}({options:pe,cb:Ae}=normalizeOptions(pe,Ae));const he=new me;const{encoding:ye="hex",...ve}=pe;const be=new Commented(ve);let Ee=null;if(typeof Ae==="function"){be.on("end",(()=>{Ae(null,he.toString("utf8"))}));be.on("error",Ae)}else{Ee=new Promise(((R,pe)=>{be.on("end",(()=>{R(he.toString("utf8"))}));be.on("error",pe)}))}be.pipe(he);ge.guessEncoding(R,ye).pipe(be);return Ee}_on_error(R){this.push("ERROR: ");this.push(R.toString());this.push("\n")}_on_read(R){this.all.write(R);const pe=R.toString("hex");this.push(new Array(this.depth+1).join(" "));this.push(pe);let Ae=(this.max_depth-this.depth)*2-pe.length;if(Ae<1){Ae=1}this.push(new Array(Ae+1).join(" "));this.push("-- ")}_on_more(R,pe,Ae,he){let ge="";this.depth++;switch(R){case ve.POS_INT:ge="Positive number,";break;case ve.NEG_INT:ge="Negative number,";break;case ve.ARRAY:ge="Array, length";break;case ve.MAP:ge="Map, count";break;case ve.BYTE_STRING:ge="Bytes, length";break;case ve.UTF8_STRING:ge="String, length";break;case ve.SIMPLE_FLOAT:if(pe===1){ge="Simple value,"}else{ge="Float,"}break}this.push(`${ge} next ${pe} byte${plural(pe)}\n`)}_on_start_string(R,pe,Ae,he){let ge="";this.depth++;switch(R){case ve.BYTE_STRING:ge=`Bytes, length: ${pe}`;break;case ve.UTF8_STRING:ge=`String, length: ${pe.toString()}`;break}this.push(`${ge}\n`)}_on_start(R,pe,Ae,he){this.depth++;switch(Ae){case ve.ARRAY:this.push(`[${he}], `);break;case ve.MAP:if(he%2){this.push(`{Val:${Math.floor(he/2)}}, `)}else{this.push(`{Key:${Math.floor(he/2)}}, `)}break}switch(R){case ve.TAG:this.push(`Tag #${pe}`);if(pe===24){this.push(" Encoded CBOR data item")}break;case ve.ARRAY:if(pe===Ee.STREAM){this.push("Array (streaming)")}else{this.push(`Array, ${pe} item${plural(pe)}`)}break;case ve.MAP:if(pe===Ee.STREAM){this.push("Map (streaming)")}else{this.push(`Map, ${pe} pair${plural(pe)}`)}break;case ve.BYTE_STRING:this.push("Bytes (streaming)");break;case ve.UTF8_STRING:this.push("String (streaming)");break}this.push("\n")}_on_stop(R){this.depth--}_on_value(R,pe,Ae,he){if(R!==Ee.BREAK){switch(pe){case ve.ARRAY:this.push(`[${Ae}], `);break;case ve.MAP:if(Ae%2){this.push(`{Val:${Math.floor(Ae/2)}}, `)}else{this.push(`{Key:${Math.floor(Ae/2)}}, `)}break}}const ye=ge.cborValueToString(R,-Infinity);if(typeof R==="string"||Ce.isBuffer(R)){if(R.length>0){this.push(ye);this.push("\n")}this.depth--}else{this.push(ye);this.push("\n")}switch(he){case be.ONE:case be.TWO:case be.FOUR:case be.EIGHT:this.depth--}}_on_data(){this.push("0x");this.push(this.all.read().toString("hex"));this.push("\n")}}R.exports=Commented},41346:(R,pe)=>{"use strict";pe.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7};pe.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36,SET:258};pe.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31};pe.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23};pe.SYMS={NULL:Symbol.for("github.com/hildjj/node-cbor/null"),UNDEFINED:Symbol.for("github.com/hildjj/node-cbor/undef"),PARENT:Symbol.for("github.com/hildjj/node-cbor/parent"),BREAK:Symbol.for("github.com/hildjj/node-cbor/break"),STREAM:Symbol.for("github.com/hildjj/node-cbor/stream")};pe.SHIFT32=4294967296;pe.BI={MINUS_ONE:BigInt(-1),NEG_MAX:BigInt(-1)-BigInt(Number.MAX_SAFE_INTEGER),MAXINT32:BigInt("0xffffffff"),MAXINT64:BigInt("0xffffffffffffffff"),SHIFT32:BigInt(pe.SHIFT32)}},88494:(R,pe,Ae)=>{"use strict";const he=Ae(36992);const ge=Ae(67034);const ye=Ae(28184);const me=Ae(90103);const ve=Ae(75070);const be=Ae(12781);const Ee=Ae(41346);const{MT:Ce,NUMBYTES:we,SYMS:_e,BI:Ie}=Ee;const{Buffer:Se}=Ae(14300);const Be=Symbol("count");const ke=Symbol("major type");const Oe=Symbol("error");const Re=Symbol("not found");function parentArray(R,pe,Ae){const he=[];he[Be]=Ae;he[_e.PARENT]=R;he[ke]=pe;return he}function parentBufferStream(R,pe){const Ae=new ve;Ae[Be]=-1;Ae[_e.PARENT]=R;Ae[ke]=pe;return Ae}class UnexpectedDataError extends Error{constructor(R,pe){super(`Unexpected data: 0x${R.toString(16)}`);this.name="UnexpectedDataError";this.byte=R;this.value=pe}}function normalizeOptions(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}class Decoder extends he{constructor(R={}){const{tags:pe={},max_depth:Ae=-1,preferMap:he=false,preferWeb:ge=false,required:ye=false,encoding:me="hex",extendedResults:be=false,preventDuplicateKeys:Ee=false,...Ce}=R;super({defaultEncoding:me,...Ce});this.running=true;this.max_depth=Ae;this.tags=pe;this.preferMap=he;this.preferWeb=ge;this.extendedResults=be;this.required=ye;this.preventDuplicateKeys=Ee;if(be){this.bs.on("read",this._onRead.bind(this));this.valueBytes=new ve}}static nullcheck(R){switch(R){case _e.NULL:return null;case _e.UNDEFINED:return undefined;case Re:throw new Error("Value not found");default:return R}}static decodeFirstSync(R,pe={}){if(R==null){throw new TypeError("input required")}({options:pe}=normalizeOptions(pe));const{encoding:Ae="hex",...he}=pe;const ge=new Decoder(he);const ye=me.guessEncoding(R,Ae);const ve=ge._parse();let be=ve.next();while(!be.done){const R=ye.read(be.value);if(R==null||R.length!==be.value){throw new Error("Insufficient data")}if(ge.extendedResults){ge.valueBytes.write(R)}be=ve.next(R)}let Ee=null;if(ge.extendedResults){Ee=be.value;Ee.unused=ye.read()}else{Ee=Decoder.nullcheck(be.value);if(ye.length>0){const R=ye.read(1);ye.unshift(R);throw new UnexpectedDataError(R[0],Ee)}}return Ee}static decodeAllSync(R,pe={}){if(R==null){throw new TypeError("input required")}({options:pe}=normalizeOptions(pe));const{encoding:Ae="hex",...he}=pe;const ge=new Decoder(he);const ye=me.guessEncoding(R,Ae);const ve=[];while(ye.length>0){const R=ge._parse();let pe=R.next();while(!pe.done){const Ae=ye.read(pe.value);if(Ae==null||Ae.length!==pe.value){throw new Error("Insufficient data")}if(ge.extendedResults){ge.valueBytes.write(Ae)}pe=R.next(Ae)}ve.push(Decoder.nullcheck(pe.value))}return ve}static decodeFirst(R,pe={},Ae=null){if(R==null){throw new TypeError("input required")}({options:pe,cb:Ae}=normalizeOptions(pe,Ae));const{encoding:he="hex",required:ge=false,...ye}=pe;const ve=new Decoder(ye);let be=Re;const Ee=me.guessEncoding(R,he);const Ce=new Promise(((R,pe)=>{ve.on("data",(R=>{be=Decoder.nullcheck(R);ve.close()}));ve.once("error",(Ae=>{if(ve.extendedResults&&Ae instanceof UnexpectedDataError){be.unused=ve.bs.slice();return R(be)}if(be!==Re){Ae["value"]=be}be=Oe;ve.close();return pe(Ae)}));ve.once("end",(()=>{switch(be){case Re:if(ge){return pe(new Error("No CBOR found"))}return R(be);case Oe:return undefined;default:return R(be)}}))}));if(typeof Ae==="function"){Ce.then((R=>Ae(null,R)),Ae)}Ee.pipe(ve);return Ce}static decodeAll(R,pe={},Ae=null){if(R==null){throw new TypeError("input required")}({options:pe,cb:Ae}=normalizeOptions(pe,Ae));const{encoding:he="hex",...ge}=pe;const ye=new Decoder(ge);const ve=[];ye.on("data",(R=>ve.push(Decoder.nullcheck(R))));const be=new Promise(((R,pe)=>{ye.on("error",pe);ye.on("end",(()=>R(ve)))}));if(typeof Ae==="function"){be.then((R=>Ae(undefined,R)),(R=>Ae(R,undefined)))}me.guessEncoding(R,he).pipe(ye);return be}close(){this.running=false;this.__fresh=true}_onRead(R){this.valueBytes.write(R)}*_parse(){let R=null;let pe=0;let Ae=null;while(true){if(this.max_depth>=0&&pe>this.max_depth){throw new Error(`Maximum depth ${this.max_depth} exceeded`)}const[he]=yield 1;if(!this.running){this.bs.unshift(Se.from([he]));throw new UnexpectedDataError(he)}const be=he>>5;const Ee=he&31;const Oe=R==null?undefined:R[ke];const Re=R==null?undefined:R.length;switch(Ee){case we.ONE:this.emit("more-bytes",be,1,Oe,Re);[Ae]=yield 1;break;case we.TWO:case we.FOUR:case we.EIGHT:{const R=1<{"use strict";const he=Ae(12781);const ge=Ae(88494);const ye=Ae(90103);const me=Ae(75070);const{MT:ve,SYMS:be}=Ae(41346);function normalizeOptions(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}class Diagnose extends he.Transform{constructor(R={}){const{separator:pe="\n",stream_errors:Ae=false,tags:he,max_depth:ye,preferWeb:me,encoding:ve,...be}=R;super({...be,readableObjectMode:false,writableObjectMode:false});this.float_bytes=-1;this.separator=pe;this.stream_errors=Ae;this.parser=new ge({tags:he,max_depth:ye,preferWeb:me,encoding:ve});this.parser.on("more-bytes",this._on_more.bind(this));this.parser.on("value",this._on_value.bind(this));this.parser.on("start",this._on_start.bind(this));this.parser.on("stop",this._on_stop.bind(this));this.parser.on("data",this._on_data.bind(this));this.parser.on("error",this._on_error.bind(this))}_transform(R,pe,Ae){this.parser.write(R,pe,Ae)}_flush(R){this.parser._flush((pe=>{if(this.stream_errors){if(pe){this._on_error(pe)}return R()}return R(pe)}))}static diagnose(R,pe={},Ae=null){if(R==null){throw new TypeError("input required")}({options:pe,cb:Ae}=normalizeOptions(pe,Ae));const{encoding:he="hex",...ge}=pe;const ve=new me;const be=new Diagnose(ge);let Ee=null;if(typeof Ae==="function"){be.on("end",(()=>Ae(null,ve.toString("utf8"))));be.on("error",Ae)}else{Ee=new Promise(((R,pe)=>{be.on("end",(()=>R(ve.toString("utf8"))));be.on("error",pe)}))}be.pipe(ve);ye.guessEncoding(R,he).pipe(be);return Ee}_on_error(R){if(this.stream_errors){this.push(R.toString())}else{this.emit("error",R)}}_on_more(R,pe,Ae,he){if(R===ve.SIMPLE_FLOAT){this.float_bytes={2:1,4:2,8:3}[pe]}}_fore(R,pe){switch(R){case ve.BYTE_STRING:case ve.UTF8_STRING:case ve.ARRAY:if(pe>0){this.push(", ")}break;case ve.MAP:if(pe>0){if(pe%2){this.push(": ")}else{this.push(", ")}}}}_on_value(R,pe,Ae){if(R===be.BREAK){return}this._fore(pe,Ae);const he=this.float_bytes;this.float_bytes=-1;this.push(ye.cborValueToString(R,he))}_on_start(R,pe,Ae,he){this._fore(Ae,he);switch(R){case ve.TAG:this.push(`${pe}(`);break;case ve.ARRAY:this.push("[");break;case ve.MAP:this.push("{");break;case ve.BYTE_STRING:case ve.UTF8_STRING:this.push("(");break}if(pe===be.STREAM){this.push("_ ")}}_on_stop(R){switch(R){case ve.TAG:this.push(")");break;case ve.ARRAY:this.push("]");break;case ve.MAP:this.push("}");break;case ve.BYTE_STRING:case ve.UTF8_STRING:this.push(")");break}}_on_data(){this.push(this.separator)}}R.exports=Diagnose},86606:(R,pe,Ae)=>{"use strict";const he=Ae(12781);const ge=Ae(75070);const ye=Ae(90103);const me=Ae(41346);const{MT:ve,NUMBYTES:be,SHIFT32:Ee,SIMPLE:Ce,SYMS:we,TAG:_e,BI:Ie}=me;const{Buffer:Se}=Ae(14300);const Be=ve.SIMPLE_FLOAT<<5|be.TWO;const ke=ve.SIMPLE_FLOAT<<5|be.FOUR;const Oe=ve.SIMPLE_FLOAT<<5|be.EIGHT;const Re=ve.SIMPLE_FLOAT<<5|Ce.TRUE;const Qe=ve.SIMPLE_FLOAT<<5|Ce.FALSE;const xe=ve.SIMPLE_FLOAT<<5|Ce.UNDEFINED;const Pe=ve.SIMPLE_FLOAT<<5|Ce.NULL;const Te=Se.from([255]);const De=Se.from("f97e00","hex");const Ne=Se.from("f9fc00","hex");const Me=Se.from("f97c00","hex");const je=Se.from("f98000","hex");const Fe={};let Le={};function parseDateType(R){if(!R){return"number"}switch(R.toLowerCase()){case"number":return"number";case"float":return"float";case"int":case"integer":return"int";case"string":return"string"}throw new TypeError(`dateType invalid, got "${R}"`)}class Encoder extends he.Transform{constructor(R={}){const{canonical:pe=false,encodeUndefined:Ae,disallowUndefinedKeys:he=false,dateType:ge="number",collapseBigIntegers:ye=false,detectLoops:me=false,omitUndefinedProperties:ve=false,genTypes:be=[],...Ee}=R;super({...Ee,readableObjectMode:false,writableObjectMode:true});this.canonical=pe;this.encodeUndefined=Ae;this.disallowUndefinedKeys=he;this.dateType=parseDateType(ge);this.collapseBigIntegers=this.canonical?true:ye;this.detectLoops=undefined;if(typeof me==="boolean"){if(me){this.detectLoops=new WeakSet}}else if(me instanceof WeakSet){this.detectLoops=me}else{throw new TypeError("detectLoops must be boolean or WeakSet")}this.omitUndefinedProperties=ve;this.semanticTypes={...Encoder.SEMANTIC_TYPES};if(Array.isArray(be)){for(let R=0,pe=be.length;R{const Ae=typeof R[pe];return Ae!=="function"&&(!this.omitUndefinedProperties||Ae!=="undefined")}));const he={};if(this.canonical){Ae.sort(((R,pe)=>{const Ae=he[R]||(he[R]=Encoder.encode(R));const ge=he[pe]||(he[pe]=Encoder.encode(pe));return Ae.compare(ge)}))}if(pe.indefinite){if(!this._pushUInt8(ve.MAP<<5|be.INDEFINITE)){return false}}else if(!this._pushInt(Ae.length,ve.MAP)){return false}let ge=null;for(let pe=0,ye=Ae.length;pepe!==undefined))}if(Ae.indefinite){if(!R._pushUInt8(ve.MAP<<5|be.INDEFINITE)){return false}}else if(!R._pushInt(he.length,ve.MAP)){return false}if(R.canonical){const pe=new Encoder({genTypes:R.semanticTypes,canonical:R.canonical,detectLoops:Boolean(R.detectLoops),dateType:R.dateType,disallowUndefinedKeys:R.disallowUndefinedKeys,collapseBigIntegers:R.collapseBigIntegers});const Ae=new ge({highWaterMark:R.readableHighWaterMark});pe.pipe(Ae);he.sort((([R],[he])=>{pe.pushAny(R);const ge=Ae.read();pe.pushAny(he);const ye=Ae.read();return ge.compare(ye)}));for(const[pe,Ae]of he){if(R.disallowUndefinedKeys&&typeof pe==="undefined"){throw new Error("Invalid Map key: undefined")}if(!(R.pushAny(pe)&&R.pushAny(Ae))){return false}}}else{for(const[pe,Ae]of he){if(R.disallowUndefinedKeys&&typeof pe==="undefined"){throw new Error("Invalid Map key: undefined")}if(!(R.pushAny(pe)&&R.pushAny(Ae))){return false}}}if(Ae.indefinite){if(!R.push(Te)){return false}}return true}static _pushTypedArray(R,pe){let Ae=64;let he=pe.BYTES_PER_ELEMENT;const{name:ge}=pe.constructor;if(ge.startsWith("Float")){Ae|=16;he/=2}else if(!ge.includes("U")){Ae|=8}if(ge.includes("Clamped")||he!==1&&!ye.isBigEndian()){Ae|=4}Ae|={1:0,2:1,4:2,8:3}[he];if(!R._pushTag(Ae)){return false}return Encoder._pushBuffer(R,Se.from(pe.buffer,pe.byteOffset,pe.byteLength))}static _pushArrayBuffer(R,pe){return Encoder._pushBuffer(R,Se.from(pe))}static encodeIndefinite(R,pe,Ae={}){if(pe==null){if(this==null){throw new Error("No object to encode")}pe=this}const{chunkSize:he=4096}=Ae;let ge=true;const me=typeof pe;let Ee=null;if(me==="string"){ge=ge&&R._pushUInt8(ve.UTF8_STRING<<5|be.INDEFINITE);let Ae=0;while(Ae{const ge=[];const ye=new Encoder(pe);ye.on("data",(R=>ge.push(R)));ye.on("error",he);ye.on("finish",(()=>Ae(Se.concat(ge))));ye.pushAny(R);ye.end()}))}static get SEMANTIC_TYPES(){return Le}static set SEMANTIC_TYPES(R){Le=R}static reset(){Encoder.SEMANTIC_TYPES={...Fe}}}Object.assign(Fe,{Array:Encoder.pushArray,Date:Encoder._pushDate,Buffer:Encoder._pushBuffer,[Se.name]:Encoder._pushBuffer,Map:Encoder._pushMap,NoFilter:Encoder._pushNoFilter,[ge.name]:Encoder._pushNoFilter,RegExp:Encoder._pushRegexp,Set:Encoder._pushSet,ArrayBuffer:Encoder._pushArrayBuffer,Uint8ClampedArray:Encoder._pushTypedArray,Uint8Array:Encoder._pushTypedArray,Uint16Array:Encoder._pushTypedArray,Uint32Array:Encoder._pushTypedArray,Int8Array:Encoder._pushTypedArray,Int16Array:Encoder._pushTypedArray,Int32Array:Encoder._pushTypedArray,Float32Array:Encoder._pushTypedArray,Float64Array:Encoder._pushTypedArray,URL:Encoder._pushURL,Boolean:Encoder._pushBoxed,Number:Encoder._pushBoxed,String:Encoder._pushBoxed});if(typeof BigUint64Array!=="undefined"){Fe[BigUint64Array.name]=Encoder._pushTypedArray}if(typeof BigInt64Array!=="undefined"){Fe[BigInt64Array.name]=Encoder._pushTypedArray}Encoder.reset();R.exports=Encoder},33123:(R,pe,Ae)=>{"use strict";const{Buffer:he}=Ae(14300);const ge=Ae(86606);const ye=Ae(88494);const{MT:me}=Ae(41346);class CborMap extends Map{constructor(R){super(R)}static _encode(R){return ge.encodeCanonical(R).toString("base64")}static _decode(R){return ye.decodeFirstSync(R,"base64")}get(R){return super.get(CborMap._encode(R))}set(R,pe){return super.set(CborMap._encode(R),pe)}delete(R){return super.delete(CborMap._encode(R))}has(R){return super.has(CborMap._encode(R))}*keys(){for(const R of super.keys()){yield CborMap._decode(R)}}*entries(){for(const R of super.entries()){yield[CborMap._decode(R[0]),R[1]]}}[Symbol.iterator](){return this.entries()}forEach(R,pe){if(typeof R!=="function"){throw new TypeError("Must be function")}for(const pe of super.entries()){R.call(this,pe[1],CborMap._decode(pe[0]),this)}}encodeCBOR(R){if(!R._pushInt(this.size,me.MAP)){return false}if(R.canonical){const pe=Array.from(super.entries()).map((R=>[he.from(R[0],"base64"),R[1]]));pe.sort(((R,pe)=>R[0].compare(pe[0])));for(const Ae of pe){if(!(R.push(Ae[0])&&R.pushAny(Ae[1]))){return false}}}else{for(const pe of super.entries()){if(!(R.push(he.from(pe[0],"base64"))&&R.pushAny(pe[1]))){return false}}}return true}}R.exports=CborMap},79551:R=>{"use strict";class ObjectRecorder{constructor(){this.clear()}clear(){this.map=new WeakMap;this.count=0;this.recording=true}stop(){this.recording=false}check(R){const pe=this.map.get(R);if(pe){if(pe.length>1){if(pe[0]||this.recording){return pe[1]}pe[0]=true;return ObjectRecorder.FIRST}if(!this.recording){return ObjectRecorder.NEVER}pe.push(this.count++);return pe[1]}if(!this.recording){throw new Error("New object detected when not recording")}this.map.set(R,[false]);return ObjectRecorder.NEVER}}ObjectRecorder.NEVER=-1;ObjectRecorder.FIRST=-2;R.exports=ObjectRecorder},51657:(R,pe,Ae)=>{"use strict";const he=Ae(86606);const ge=Ae(79551);const{Buffer:ye}=Ae(14300);class SharedValueEncoder extends he{constructor(R){super(R);this.valueSharing=new ge}_pushObject(R,pe){if(R!==null){const pe=this.valueSharing.check(R);switch(pe){case ge.FIRST:this._pushTag(28);break;case ge.NEVER:break;default:return this._pushTag(29)&&this._pushIntNum(pe)}}return super._pushObject(R,pe)}stopRecording(){this.valueSharing.stop()}clearRecording(){this.valueSharing.clear()}static encode(...R){const pe=new SharedValueEncoder;pe.on("data",(()=>{}));for(const Ae of R){pe.pushAny(Ae)}pe.stopRecording();pe.removeAllListeners("data");return pe._encodeAll(R)}static encodeCanonical(...R){throw new Error("Cannot encode canonically in a SharedValueEncoder, which serializes objects multiple times.")}static encodeOne(R,pe){const Ae=new SharedValueEncoder(pe);Ae.on("data",(()=>{}));Ae.pushAny(R);Ae.stopRecording();Ae.removeAllListeners("data");return Ae._encodeAll([R])}static encodeAsync(R,pe){return new Promise(((Ae,he)=>{const ge=[];const me=new SharedValueEncoder(pe);me.on("data",(()=>{}));me.on("error",he);me.on("finish",(()=>Ae(ye.concat(ge))));me.pushAny(R);me.stopRecording();me.removeAllListeners("data");me.on("data",(R=>ge.push(R)));me.pushAny(R);me.end()}))}}R.exports=SharedValueEncoder},28184:(R,pe,Ae)=>{"use strict";const{MT:he,SIMPLE:ge,SYMS:ye}=Ae(41346);class Simple{constructor(R){if(typeof R!=="number"){throw new Error(`Invalid Simple type: ${typeof R}`)}if(R<0||R>255||(R|0)!==R){throw new Error(`value must be a small positive integer: ${R}`)}this.value=R}toString(){return`simple(${this.value})`}[Symbol.for("nodejs.util.inspect.custom")](R,pe){return`simple(${this.value})`}encodeCBOR(R){return R._pushInt(this.value,he.SIMPLE_FLOAT)}static isSimple(R){return R instanceof Simple}static decode(R,pe=true,Ae=false){switch(R){case ge.FALSE:return false;case ge.TRUE:return true;case ge.NULL:if(pe){return null}return ye.NULL;case ge.UNDEFINED:if(pe){return undefined}return ye.UNDEFINED;case-1:if(!pe||!Ae){throw new Error("Invalid BREAK")}return ye.BREAK;default:return new Simple(R)}}}R.exports=Simple},67034:(R,pe,Ae)=>{"use strict";const he=Ae(41346);const ge=Ae(90103);const ye=Symbol("INTERNAL_JSON");function setBuffersToJSON(R,pe){if(ge.isBufferish(R)){R.toJSON=pe}else if(Array.isArray(R)){for(const Ae of R){setBuffersToJSON(Ae,pe)}}else if(R&&typeof R==="object"){if(!(R instanceof Tagged)||R.tag<21||R.tag>23){for(const Ae of Object.values(R)){setBuffersToJSON(Ae,pe)}}}}function b64this(){return ge.base64(this)}function b64urlThis(){return ge.base64url(this)}function hexThis(){return this.toString("hex")}function swapEndian(R,pe,Ae,he){const ge=new DataView(R);const[ye,me]={2:[ge.getUint16,ge.setUint16],4:[ge.getUint32,ge.setUint32],8:[ge.getBigUint64,ge.setBigUint64]}[pe];const ve=Ae+he;for(let R=Ae;Rnew Date(R),1:R=>new Date(R*1e3),2:R=>ge.bufferToBigInt(R),3:R=>he.BI.MINUS_ONE-ge.bufferToBigInt(R),21:(R,pe)=>{if(ge.isBufferish(R)){pe[ye]=b64urlThis}else{setBuffersToJSON(R,b64urlThis)}return pe},22:(R,pe)=>{if(ge.isBufferish(R)){pe[ye]=b64this}else{setBuffersToJSON(R,b64this)}return pe},23:(R,pe)=>{if(ge.isBufferish(R)){pe[ye]=hexThis}else{setBuffersToJSON(R,hexThis)}return pe},32:R=>new URL(R),33:(R,pe)=>{if(!R.match(/^[a-zA-Z0-9_-]+$/)){throw new Error("Invalid base64url characters")}const Ae=R.length%4;if(Ae===1){throw new Error("Invalid base64url length")}if(Ae===2){if("AQgw".indexOf(R[R.length-1])===-1){throw new Error("Invalid base64 padding")}}else if(Ae===3){if("AEIMQUYcgkosw048".indexOf(R[R.length-1])===-1){throw new Error("Invalid base64 padding")}}return pe},34:(R,pe)=>{const Ae=R.match(/^[a-zA-Z0-9+/]+(?={0,2})$/);if(!Ae){throw new Error("Invalid base64 characters")}if(R.length%4!==0){throw new Error("Invalid base64 length")}if(Ae.groups.padding==="="){if("AQgw".indexOf(R[R.length-2])===-1){throw new Error("Invalid base64 padding")}}else if(Ae.groups.padding==="=="){if("AEIMQUYcgkosw048".indexOf(R[R.length-3])===-1){throw new Error("Invalid base64 padding")}}return pe},35:R=>new RegExp(R),258:R=>new Set(R)};const ve={64:Uint8Array,65:Uint16Array,66:Uint32Array,68:Uint8ClampedArray,69:Uint16Array,70:Uint32Array,72:Int8Array,73:Int16Array,74:Int32Array,77:Int16Array,78:Int32Array,81:Float32Array,82:Float64Array,85:Float32Array,86:Float64Array};if(typeof BigUint64Array!=="undefined"){ve[67]=BigUint64Array;ve[71]=BigUint64Array}if(typeof BigInt64Array!=="undefined"){ve[75]=BigInt64Array;ve[79]=BigInt64Array}function _toTypedArray(R,pe){if(!ge.isBufferish(R)){throw new TypeError("val not a buffer")}const{tag:Ae}=pe;const he=ve[Ae];if(!he){throw new Error(`Invalid typed array tag: ${Ae}`)}const ye=Ae&4;const me=(Ae&16)>>4;const be=2**(me+(Ae&3));if(!ye!==ge.isBigEndian()&&be>1){swapEndian(R.buffer,be,R.byteOffset,R.byteLength)}const Ee=R.buffer.slice(R.byteOffset,R.byteOffset+R.byteLength);return new he(Ee)}for(const R of Object.keys(ve)){me[R]=_toTypedArray}let be={};class Tagged{constructor(R,pe,Ae){this.tag=R;this.value=pe;this.err=Ae;if(typeof this.tag!=="number"){throw new Error(`Invalid tag type (${typeof this.tag})`)}if(this.tag<0||(this.tag|0)!==this.tag){throw new Error(`Tag must be a positive integer: ${this.tag}`)}}toJSON(){if(this[ye]){return this[ye].call(this.value)}const R={tag:this.tag,value:this.value};if(this.err){R.err=this.err}return R}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(R){R._pushTag(this.tag);return R.pushAny(this.value)}convert(R){let pe=R==null?undefined:R[this.tag];if(pe===null){return this}if(typeof pe!=="function"){pe=Tagged.TAGS[this.tag];if(typeof pe!=="function"){return this}}try{return pe.call(this,this.value,this)}catch(R){if(R&&R.message&&R.message.length>0){this.err=R.message}else{this.err=R}return this}}static get TAGS(){return be}static set TAGS(R){be=R}static reset(){Tagged.TAGS={...me}}}Tagged.INTERNAL_JSON=ye;Tagged.reset();R.exports=Tagged},90103:(R,pe,Ae)=>{"use strict";const{Buffer:he}=Ae(14300);const ge=Ae(75070);const ye=Ae(12781);const me=Ae(41346);const{NUMBYTES:ve,SHIFT32:be,BI:Ee,SYMS:Ce}=me;const we=2097151;const _e=new TextDecoder("utf8",{fatal:true,ignoreBOM:true});pe.utf8=R=>_e.decode(R);pe.utf8.checksUTF8=true;function isReadable(R){if(R instanceof ye.Readable){return true}return["read","on","pipe"].every((pe=>typeof R[pe]==="function"))}pe.isBufferish=function isBufferish(R){return R&&typeof R==="object"&&(he.isBuffer(R)||R instanceof Uint8Array||R instanceof Uint8ClampedArray||R instanceof ArrayBuffer||R instanceof DataView)};pe.bufferishToBuffer=function bufferishToBuffer(R){if(he.isBuffer(R)){return R}else if(ArrayBuffer.isView(R)){return he.from(R.buffer,R.byteOffset,R.byteLength)}else if(R instanceof ArrayBuffer){return he.from(R)}return null};pe.parseCBORint=function parseCBORint(R,pe){switch(R){case ve.ONE:return pe.readUInt8(0);case ve.TWO:return pe.readUInt16BE(0);case ve.FOUR:return pe.readUInt32BE(0);case ve.EIGHT:{const R=pe.readUInt32BE(0);const Ae=pe.readUInt32BE(4);if(R>we){return BigInt(R)*Ee.SHIFT32+BigInt(Ae)}return R*be+Ae}default:throw new Error(`Invalid additional info for int: ${R}`)}};pe.writeHalf=function writeHalf(R,pe){const Ae=he.allocUnsafe(4);Ae.writeFloatBE(pe,0);const ge=Ae.readUInt32BE(0);if((ge&8191)!==0){return false}let ye=ge>>16&32768;const me=ge>>23&255;const ve=ge&8388607;if(me>=113&&me<=142){ye+=(me-112<<10)+(ve>>13)}else if(me>=103&&me<113){if(ve&(1<<126-me)-1){return false}ye+=ve+8388608>>126-me}else{return false}R.writeUInt16BE(ye);return true};pe.parseHalf=function parseHalf(R){const pe=R[0]&128?-1:1;const Ae=(R[0]&124)>>2;const he=(R[0]&3)<<8|R[1];if(!Ae){return pe*5.960464477539063e-8*he}else if(Ae===31){return pe*(he?NaN:Infinity)}return pe*2**(Ae-25)*(1024+he)};pe.parseCBORfloat=function parseCBORfloat(R){switch(R.length){case 2:return pe.parseHalf(R);case 4:return R.readFloatBE(0);case 8:return R.readDoubleBE(0);default:throw new Error(`Invalid float size: ${R.length}`)}};pe.hex=function hex(R){return he.from(R.replace(/^0x/,""),"hex")};pe.bin=function bin(R){R=R.replace(/\s/g,"");let pe=0;let Ae=R.length%8||8;const ge=[];while(Ae<=R.length){ge.push(parseInt(R.slice(pe,Ae),2));pe=Ae;Ae+=8}return he.from(ge)};pe.arrayEqual=function arrayEqual(R,pe){if(R==null&&pe==null){return true}if(R==null||pe==null){return false}return R.length===pe.length&&R.every(((R,Ae)=>R===pe[Ae]))};pe.bufferToBigInt=function bufferToBigInt(R){return BigInt(`0x${R.toString("hex")}`)};pe.cborValueToString=function cborValueToString(R,Ae=-1){switch(typeof R){case"symbol":{switch(R){case Ce.NULL:return"null";case Ce.UNDEFINED:return"undefined";case Ce.BREAK:return"BREAK"}if(R.description){return R.description}const pe=R.toString();const Ae=pe.match(/^Symbol\((?.*)\)/);if(Ae&&Ae.groups.name){return Ae.groups.name}return"Symbol"}case"string":return JSON.stringify(R);case"bigint":return R.toString();case"number":{const pe=Object.is(R,-0)?"-0":String(R);return Ae>0?`${pe}_${Ae}`:pe}case"object":{if(!R){return"null"}const he=pe.bufferishToBuffer(R);if(he){const R=he.toString("hex");return Ae===-Infinity?R:`h'${R}'`}if(R&&typeof R[Symbol.for("nodejs.util.inspect.custom")]==="function"){return R[Symbol.for("nodejs.util.inspect.custom")]()}if(Array.isArray(R)){return"[]"}return"{}"}}return String(R)};pe.guessEncoding=function guessEncoding(R,Ae){if(typeof R==="string"){return new ge(R,Ae==null?"hex":Ae)}const he=pe.bufferishToBuffer(R);if(he){return new ge(he)}if(isReadable(R)){return R}throw new Error("Unknown input type")};const Ie={"=":"","+":"-","/":"_"};pe.base64url=function base64url(R){return pe.bufferishToBuffer(R).toString("base64").replace(/[=+/]/g,(R=>Ie[R]))};pe.base64=function base64(R){return pe.bufferishToBuffer(R).toString("base64")};pe.isBigEndian=function isBigEndian(){const R=new Uint8Array(4);const pe=new Uint32Array(R.buffer);return!((pe[0]=1)&R[0])}},36992:(R,pe,Ae)=>{"use strict";const he=Ae(12781);const ge=Ae(75070);class BinaryParseStream extends he.Transform{constructor(R){super(R);this["_writableState"].objectMode=false;this["_readableState"].objectMode=true;this.bs=new ge;this.__restart()}_transform(R,pe,Ae){this.bs.write(R);while(this.bs.length>=this.__needed){let R=null;const pe=this.__needed===null?undefined:this.bs.read(this.__needed);try{R=this.__parser.next(pe)}catch(R){return Ae(R)}if(this.__needed){this.__fresh=false}if(R.done){this.push(R.value);this.__restart()}else{this.__needed=R.value||Infinity}}return Ae()}*_parse(){throw new Error("Must be implemented in subclass")}__restart(){this.__needed=null;this.__parser=this._parse();this.__fresh=true}_flush(R){R(this.__fresh?null:new Error("unexpected end of input"))}}R.exports=BinaryParseStream},85443:(R,pe,Ae)=>{var he=Ae(73837);var ge=Ae(12781).Stream;var ye=Ae(18611);R.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}he.inherits(CombinedStream,ge);CombinedStream.create=function(R){var pe=new this;R=R||{};for(var Ae in R){pe[Ae]=R[Ae]}return pe};CombinedStream.isStreamLike=function(R){return typeof R!=="function"&&typeof R!=="string"&&typeof R!=="boolean"&&typeof R!=="number"&&!Buffer.isBuffer(R)};CombinedStream.prototype.append=function(R){var pe=CombinedStream.isStreamLike(R);if(pe){if(!(R instanceof ye)){var Ae=ye.create(R,{maxDataSize:Infinity,pauseStream:this.pauseStreams});R.on("data",this._checkDataSize.bind(this));R=Ae}this._handleErrors(R);if(this.pauseStreams){R.pause()}}this._streams.push(R);return this};CombinedStream.prototype.pipe=function(R,pe){ge.prototype.pipe.call(this,R,pe);this.resume();return R};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var R=this._streams.shift();if(typeof R=="undefined"){this.end();return}if(typeof R!=="function"){this._pipeNext(R);return}var pe=R;pe(function(R){var pe=CombinedStream.isStreamLike(R);if(pe){R.on("data",this._checkDataSize.bind(this));this._handleErrors(R)}this._pipeNext(R)}.bind(this))};CombinedStream.prototype._pipeNext=function(R){this._currentStream=R;var pe=CombinedStream.isStreamLike(R);if(pe){R.on("end",this._getNext.bind(this));R.pipe(this,{end:false});return}var Ae=R;this.write(Ae);this._getNext()};CombinedStream.prototype._handleErrors=function(R){var pe=this;R.on("error",(function(R){pe._emitError(R)}))};CombinedStream.prototype.write=function(R){this.emit("data",R)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var R="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(R))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var R=this;this._streams.forEach((function(pe){if(!pe.dataSize){return}R.dataSize+=pe.dataSize}));if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(R){this._reset();this.emit("error",R)}},28222:(R,pe,Ae)=>{pe.formatArgs=formatArgs;pe.save=save;pe.load=load;pe.useColors=useColors;pe.storage=localstorage();pe.destroy=(()=>{let R=false;return()=>{if(!R){R=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`.")}}})();pe.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 R;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&&(R=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(R[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(pe){pe[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+pe[0]+(this.useColors?"%c ":" ")+"+"+R.exports.humanize(this.diff);if(!this.useColors){return}const Ae="color: "+this.color;pe.splice(1,0,Ae,"color: inherit");let he=0;let ge=0;pe[0].replace(/%[a-zA-Z%]/g,(R=>{if(R==="%%"){return}he++;if(R==="%c"){ge=he}}));pe.splice(ge,0,Ae)}pe.log=console.debug||console.log||(()=>{});function save(R){try{if(R){pe.storage.setItem("debug",R)}else{pe.storage.removeItem("debug")}}catch(R){}}function load(){let R;try{R=pe.storage.getItem("debug")}catch(R){}if(!R&&typeof process!=="undefined"&&"env"in process){R=process.env.DEBUG}return R}function localstorage(){try{return localStorage}catch(R){}}R.exports=Ae(46243)(pe);const{formatters:he}=R.exports;he.j=function(R){try{return JSON.stringify(R)}catch(R){return"[UnexpectedJSONParseError]: "+R.message}}},46243:(R,pe,Ae)=>{function setup(R){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=Ae(80900);createDebug.destroy=destroy;Object.keys(R).forEach((pe=>{createDebug[pe]=R[pe]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(R){let pe=0;for(let Ae=0;Ae{if(pe==="%%"){return"%"}ye++;const ge=createDebug.formatters[he];if(typeof ge==="function"){const he=R[ye];pe=ge.call(Ae,he);R.splice(ye,1);ye--}return pe}));createDebug.formatArgs.call(Ae,R);const me=Ae.log||createDebug.log;me.apply(Ae,R)}debug.namespace=R;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(R);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(Ae!==null){return Ae}if(he!==createDebug.namespaces){he=createDebug.namespaces;ge=createDebug.enabled(R)}return ge},set:R=>{Ae=R}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(R,pe){const Ae=createDebug(this.namespace+(typeof pe==="undefined"?":":pe)+R);Ae.log=this.log;return Ae}function enable(R){createDebug.save(R);createDebug.namespaces=R;createDebug.names=[];createDebug.skips=[];let pe;const Ae=(typeof R==="string"?R:"").split(/[\s,]+/);const he=Ae.length;for(pe=0;pe"-"+R))].join(",");createDebug.enable("");return R}function enabled(R){if(R[R.length-1]==="*"){return true}let pe;let Ae;for(pe=0,Ae=createDebug.skips.length;pe{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){R.exports=Ae(28222)}else{R.exports=Ae(35332)}},35332:(R,pe,Ae)=>{const he=Ae(76224);const ge=Ae(73837);pe.init=init;pe.log=log;pe.formatArgs=formatArgs;pe.save=save;pe.load=load;pe.useColors=useColors;pe.destroy=ge.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");pe.colors=[6,2,3,4,5,1];try{const R=Ae(59318);if(R&&(R.stderr||R).level>=2){pe.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(R){}pe.inspectOpts=Object.keys(process.env).filter((R=>/^debug_/i.test(R))).reduce(((R,pe)=>{const Ae=pe.substring(6).toLowerCase().replace(/_([a-z])/g,((R,pe)=>pe.toUpperCase()));let he=process.env[pe];if(/^(yes|on|true|enabled)$/i.test(he)){he=true}else if(/^(no|off|false|disabled)$/i.test(he)){he=false}else if(he==="null"){he=null}else{he=Number(he)}R[Ae]=he;return R}),{});function useColors(){return"colors"in pe.inspectOpts?Boolean(pe.inspectOpts.colors):he.isatty(process.stderr.fd)}function formatArgs(pe){const{namespace:Ae,useColors:he}=this;if(he){const he=this.color;const ge="[3"+(he<8?he:"8;5;"+he);const ye=` ${ge};1m${Ae} `;pe[0]=ye+pe[0].split("\n").join("\n"+ye);pe.push(ge+"m+"+R.exports.humanize(this.diff)+"")}else{pe[0]=getDate()+Ae+" "+pe[0]}}function getDate(){if(pe.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...R){return process.stderr.write(ge.formatWithOptions(pe.inspectOpts,...R)+"\n")}function save(R){if(R){process.env.DEBUG=R}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(R){R.inspectOpts={};const Ae=Object.keys(pe.inspectOpts);for(let he=0;heR.trim())).join(" ")};ye.O=function(R){this.inspectOpts.colors=this.useColors;return ge.inspect(R,this.inspectOpts)}},18611:(R,pe,Ae)=>{var he=Ae(12781).Stream;var ge=Ae(73837);R.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}ge.inherits(DelayedStream,he);DelayedStream.create=function(R,pe){var Ae=new this;pe=pe||{};for(var he in pe){Ae[he]=pe[he]}Ae.source=R;var ge=R.emit;R.emit=function(){Ae._handleEmit(arguments);return ge.apply(R,arguments)};R.on("error",(function(){}));if(Ae.pauseStream){R.pause()}return Ae};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(R){this.emit.apply(this,R)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var R=he.prototype.pipe.apply(this,arguments);this.resume();return R};DelayedStream.prototype._handleEmit=function(R){if(this._released){this.emit.apply(this,R);return}if(R[0]==="data"){this.dataSize+=R[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(R)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var R="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(R))}},12437:(R,pe,Ae)=>{const he=Ae(57147);const ge=Ae(71017);const ye=Ae(22037);const me=Ae(6113);const ve=Ae(49968);const be=ve.version;const Ee=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(R){const pe={};let Ae=R.toString();Ae=Ae.replace(/\r\n?/gm,"\n");let he;while((he=Ee.exec(Ae))!=null){const R=he[1];let Ae=he[2]||"";Ae=Ae.trim();const ge=Ae[0];Ae=Ae.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(ge==='"'){Ae=Ae.replace(/\\n/g,"\n");Ae=Ae.replace(/\\r/g,"\r")}pe[R]=Ae}return pe}function _parseVault(R){const pe=_vaultPath(R);const Ae=Ce.configDotenv({path:pe});if(!Ae.parsed){const R=new Error(`MISSING_DATA: Cannot parse ${pe} for an unknown reason`);R.code="MISSING_DATA";throw R}const he=_dotenvKey(R).split(",");const ge=he.length;let ye;for(let R=0;R=ge){throw pe}}}return Ce.parse(ye)}function _log(R){console.log(`[dotenv@${be}][INFO] ${R}`)}function _warn(R){console.log(`[dotenv@${be}][WARN] ${R}`)}function _debug(R){console.log(`[dotenv@${be}][DEBUG] ${R}`)}function _dotenvKey(R){if(R&&R.DOTENV_KEY&&R.DOTENV_KEY.length>0){return R.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(R,pe){let Ae;try{Ae=new URL(pe)}catch(R){if(R.code==="ERR_INVALID_URL"){const R=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");R.code="INVALID_DOTENV_KEY";throw R}throw R}const he=Ae.password;if(!he){const R=new Error("INVALID_DOTENV_KEY: Missing key part");R.code="INVALID_DOTENV_KEY";throw R}const ge=Ae.searchParams.get("environment");if(!ge){const R=new Error("INVALID_DOTENV_KEY: Missing environment part");R.code="INVALID_DOTENV_KEY";throw R}const ye=`DOTENV_VAULT_${ge.toUpperCase()}`;const me=R.parsed[ye];if(!me){const R=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${ye} in your .env.vault file.`);R.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw R}return{ciphertext:me,key:he}}function _vaultPath(R){let pe=null;if(R&&R.path&&R.path.length>0){if(Array.isArray(R.path)){for(const Ae of R.path){if(he.existsSync(Ae)){pe=Ae.endsWith(".vault")?Ae:`${Ae}.vault`}}}else{pe=R.path.endsWith(".vault")?R.path:`${R.path}.vault`}}else{pe=ge.resolve(process.cwd(),".env.vault")}if(he.existsSync(pe)){return pe}return null}function _resolveHome(R){return R[0]==="~"?ge.join(ye.homedir(),R.slice(1)):R}function _configVault(R){_log("Loading env from encrypted .env.vault");const pe=Ce._parseVault(R);let Ae=process.env;if(R&&R.processEnv!=null){Ae=R.processEnv}Ce.populate(Ae,pe,R);return{parsed:pe}}function configDotenv(R){const pe=ge.resolve(process.cwd(),".env");let Ae="utf8";const ye=Boolean(R&&R.debug);if(R&&R.encoding){Ae=R.encoding}else{if(ye){_debug("No encoding is specified. UTF-8 is used by default")}}let me=[pe];if(R&&R.path){if(!Array.isArray(R.path)){me=[_resolveHome(R.path)]}else{me=[];for(const pe of R.path){me.push(_resolveHome(pe))}}}let ve;const be={};for(const pe of me){try{const ge=Ce.parse(he.readFileSync(pe,{encoding:Ae}));Ce.populate(be,ge,R)}catch(R){if(ye){_debug(`Failed to load ${pe} ${R.message}`)}ve=R}}let Ee=process.env;if(R&&R.processEnv!=null){Ee=R.processEnv}Ce.populate(Ee,be,R);if(ve){return{parsed:be,error:ve}}else{return{parsed:be}}}function config(R){if(_dotenvKey(R).length===0){return Ce.configDotenv(R)}const pe=_vaultPath(R);if(!pe){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${pe}. Did you forget to build it?`);return Ce.configDotenv(R)}return Ce._configVault(R)}function decrypt(R,pe){const Ae=Buffer.from(pe.slice(-64),"hex");let he=Buffer.from(R,"base64");const ge=he.subarray(0,12);const ye=he.subarray(-16);he=he.subarray(12,-16);try{const R=me.createDecipheriv("aes-256-gcm",Ae,ge);R.setAuthTag(ye);return`${R.update(he)}${R.final()}`}catch(R){const pe=R instanceof RangeError;const Ae=R.message==="Invalid key length";const he=R.message==="Unsupported state or unable to authenticate data";if(pe||Ae){const R=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");R.code="INVALID_DOTENV_KEY";throw R}else if(he){const R=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");R.code="DECRYPTION_FAILED";throw R}else{throw R}}}function populate(R,pe,Ae={}){const he=Boolean(Ae&&Ae.debug);const ge=Boolean(Ae&&Ae.override);if(typeof pe!=="object"){const R=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");R.code="OBJECT_REQUIRED";throw R}for(const Ae of Object.keys(pe)){if(Object.prototype.hasOwnProperty.call(R,Ae)){if(ge===true){R[Ae]=pe[Ae]}if(he){if(ge===true){_debug(`"${Ae}" is already defined and WAS overwritten`)}else{_debug(`"${Ae}" is already defined and was NOT overwritten`)}}}else{R[Ae]=pe[Ae]}}}const Ce={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};R.exports.configDotenv=Ce.configDotenv;R.exports._configVault=Ce._configVault;R.exports._parseVault=Ce._parseVault;R.exports.config=Ce.config;R.exports.decrypt=Ce.decrypt;R.exports.parse=Ce.parse;R.exports.populate=Ce.populate;R.exports=Ce},28206:R=>{"use strict";R.exports=function equal(R,pe){if(R===pe)return true;if(R&&pe&&typeof R=="object"&&typeof pe=="object"){if(R.constructor!==pe.constructor)return false;var Ae,he,ge;if(Array.isArray(R)){Ae=R.length;if(Ae!=pe.length)return false;for(he=Ae;he--!==0;)if(!equal(R[he],pe[he]))return false;return true}if(R.constructor===RegExp)return R.source===pe.source&&R.flags===pe.flags;if(R.valueOf!==Object.prototype.valueOf)return R.valueOf()===pe.valueOf();if(R.toString!==Object.prototype.toString)return R.toString()===pe.toString();ge=Object.keys(R);Ae=ge.length;if(Ae!==Object.keys(pe).length)return false;for(he=Ae;he--!==0;)if(!Object.prototype.hasOwnProperty.call(pe,ge[he]))return false;for(he=Ae;he--!==0;){var ye=ge[he];if(!equal(R[ye],pe[ye]))return false}return true}return R!==R&&pe!==pe}},31133:(R,pe,Ae)=>{var he;R.exports=function(){if(!he){try{he=Ae(38237)("follow-redirects")}catch(R){}if(typeof he!=="function"){he=function(){}}}he.apply(null,arguments)}},67707:(R,pe,Ae)=>{var he=Ae(57310);var ge=he.URL;var ye=Ae(13685);var me=Ae(95687);var ve=Ae(12781).Writable;var be=Ae(39491);var Ee=Ae(31133);var Ce=false;try{be(new ge)}catch(R){Ce=R.code==="ERR_INVALID_URL"}var we=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"];var _e=["abort","aborted","connect","error","socket","timeout"];var Ie=Object.create(null);_e.forEach((function(R){Ie[R]=function(pe,Ae,he){this._redirectable.emit(R,pe,Ae,he)}}));var Se=createErrorType("ERR_INVALID_URL","Invalid URL",TypeError);var Be=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed");var ke=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Be);var Oe=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var Re=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");var Qe=ve.prototype.destroy||noop;function RedirectableRequest(R,pe){ve.call(this);this._sanitizeOptions(R);this._options=R;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(pe){this.on("response",pe)}var Ae=this;this._onNativeResponse=function(R){try{Ae._processResponse(R)}catch(R){Ae.emit("error",R instanceof Be?R:new Be({cause:R}))}};this._performRequest()}RedirectableRequest.prototype=Object.create(ve.prototype);RedirectableRequest.prototype.abort=function(){destroyRequest(this._currentRequest);this._currentRequest.abort();this.emit("abort")};RedirectableRequest.prototype.destroy=function(R){destroyRequest(this._currentRequest,R);Qe.call(this,R);return this};RedirectableRequest.prototype.write=function(R,pe,Ae){if(this._ending){throw new Re}if(!isString(R)&&!isBuffer(R)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(isFunction(pe)){Ae=pe;pe=null}if(R.length===0){if(Ae){Ae()}return}if(this._requestBodyLength+R.length<=this._options.maxBodyLength){this._requestBodyLength+=R.length;this._requestBodyBuffers.push({data:R,encoding:pe});this._currentRequest.write(R,pe,Ae)}else{this.emit("error",new Oe);this.abort()}};RedirectableRequest.prototype.end=function(R,pe,Ae){if(isFunction(R)){Ae=R;R=pe=null}else if(isFunction(pe)){Ae=pe;pe=null}if(!R){this._ended=this._ending=true;this._currentRequest.end(null,null,Ae)}else{var he=this;var ge=this._currentRequest;this.write(R,pe,(function(){he._ended=true;ge.end(null,null,Ae)}));this._ending=true}};RedirectableRequest.prototype.setHeader=function(R,pe){this._options.headers[R]=pe;this._currentRequest.setHeader(R,pe)};RedirectableRequest.prototype.removeHeader=function(R){delete this._options.headers[R];this._currentRequest.removeHeader(R)};RedirectableRequest.prototype.setTimeout=function(R,pe){var Ae=this;function destroyOnTimeout(pe){pe.setTimeout(R);pe.removeListener("timeout",pe.destroy);pe.addListener("timeout",pe.destroy)}function startTimer(pe){if(Ae._timeout){clearTimeout(Ae._timeout)}Ae._timeout=setTimeout((function(){Ae.emit("timeout");clearTimer()}),R);destroyOnTimeout(pe)}function clearTimer(){if(Ae._timeout){clearTimeout(Ae._timeout);Ae._timeout=null}Ae.removeListener("abort",clearTimer);Ae.removeListener("error",clearTimer);Ae.removeListener("response",clearTimer);Ae.removeListener("close",clearTimer);if(pe){Ae.removeListener("timeout",pe)}if(!Ae.socket){Ae._currentRequest.removeListener("socket",startTimer)}}if(pe){this.on("timeout",pe)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.on("abort",clearTimer);this.on("error",clearTimer);this.on("response",clearTimer);this.on("close",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(R){RedirectableRequest.prototype[R]=function(pe,Ae){return this._currentRequest[R](pe,Ae)}}));["aborted","connection","socket"].forEach((function(R){Object.defineProperty(RedirectableRequest.prototype,R,{get:function(){return this._currentRequest[R]}})}));RedirectableRequest.prototype._sanitizeOptions=function(R){if(!R.headers){R.headers={}}if(R.host){if(!R.hostname){R.hostname=R.host}delete R.host}if(!R.pathname&&R.path){var pe=R.path.indexOf("?");if(pe<0){R.pathname=R.path}else{R.pathname=R.path.substring(0,pe);R.search=R.path.substring(pe)}}};RedirectableRequest.prototype._performRequest=function(){var R=this._options.protocol;var pe=this._options.nativeProtocols[R];if(!pe){throw new TypeError("Unsupported protocol "+R)}if(this._options.agents){var Ae=R.slice(0,-1);this._options.agent=this._options.agents[Ae]}var ge=this._currentRequest=pe.request(this._options,this._onNativeResponse);ge._redirectable=this;for(var ye of _e){ge.on(ye,Ie[ye])}this._currentUrl=/^\//.test(this._options.path)?he.format(this._options):this._options.path;if(this._isRedirect){var me=0;var ve=this;var be=this._requestBodyBuffers;(function writeNext(R){if(ge===ve._currentRequest){if(R){ve.emit("error",R)}else if(me=400){R.responseUrl=this._currentUrl;R.redirects=this._redirects;this.emit("response",R);this._requestBodyBuffers=[];return}destroyRequest(this._currentRequest);R.destroy();if(++this._redirectCount>this._options.maxRedirects){throw new ke}var ge;var ye=this._options.beforeRedirect;if(ye){ge=Object.assign({Host:R.req.getHeader("host")},this._options.headers)}var me=this._options.method;if((pe===301||pe===302)&&this._options.method==="POST"||pe===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var ve=removeMatchingHeaders(/^host$/i,this._options.headers);var be=parseUrl(this._currentUrl);var Ce=ve||be.host;var we=/^\w+:/.test(Ae)?this._currentUrl:he.format(Object.assign(be,{host:Ce}));var _e=resolveUrl(Ae,we);Ee("redirecting to",_e.href);this._isRedirect=true;spreadUrlObject(_e,this._options);if(_e.protocol!==be.protocol&&_e.protocol!=="https:"||_e.host!==Ce&&!isSubdomain(_e.host,Ce)){removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers)}if(isFunction(ye)){var Ie={headers:R.headers,statusCode:pe};var Se={url:we,method:me,headers:ge};ye(this._options,Ie,Se);this._sanitizeOptions(this._options)}this._performRequest()};function wrap(R){var pe={maxRedirects:21,maxBodyLength:10*1024*1024};var Ae={};Object.keys(R).forEach((function(he){var ge=he+":";var ye=Ae[ge]=R[he];var me=pe[he]=Object.create(ye);function request(R,he,ye){if(isURL(R)){R=spreadUrlObject(R)}else if(isString(R)){R=spreadUrlObject(parseUrl(R))}else{ye=he;he=validateUrl(R);R={protocol:ge}}if(isFunction(he)){ye=he;he=null}he=Object.assign({maxRedirects:pe.maxRedirects,maxBodyLength:pe.maxBodyLength},R,he);he.nativeProtocols=Ae;if(!isString(he.host)&&!isString(he.hostname)){he.hostname="::1"}be.equal(he.protocol,ge,"protocol mismatch");Ee("options",he);return new RedirectableRequest(he,ye)}function get(R,pe,Ae){var he=me.request(R,pe,Ae);he.end();return he}Object.defineProperties(me,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})}));return pe}function noop(){}function parseUrl(R){var pe;if(Ce){pe=new ge(R)}else{pe=validateUrl(he.parse(R));if(!isString(pe.protocol)){throw new Se({input:R})}}return pe}function resolveUrl(R,pe){return Ce?new ge(R,pe):parseUrl(he.resolve(pe,R))}function validateUrl(R){if(/^\[/.test(R.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(R.hostname)){throw new Se({input:R.href||R})}if(/^\[/.test(R.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(R.host)){throw new Se({input:R.href||R})}return R}function spreadUrlObject(R,pe){var Ae=pe||{};for(var he of we){Ae[he]=R[he]}if(Ae.hostname.startsWith("[")){Ae.hostname=Ae.hostname.slice(1,-1)}if(Ae.port!==""){Ae.port=Number(Ae.port)}Ae.path=Ae.search?Ae.pathname+Ae.search:Ae.pathname;return Ae}function removeMatchingHeaders(R,pe){var Ae;for(var he in pe){if(R.test(he)){Ae=pe[he];delete pe[he]}}return Ae===null||typeof Ae==="undefined"?undefined:String(Ae).trim()}function createErrorType(R,pe,Ae){function CustomError(Ae){Error.captureStackTrace(this,this.constructor);Object.assign(this,Ae||{});this.code=R;this.message=this.cause?pe+": "+this.cause.message:pe}CustomError.prototype=new(Ae||Error);Object.defineProperties(CustomError.prototype,{constructor:{value:CustomError,enumerable:false},name:{value:"Error ["+R+"]",enumerable:false}});return CustomError}function destroyRequest(R,pe){for(var Ae of _e){R.removeListener(Ae,Ie[Ae])}R.on("error",noop);R.destroy(pe)}function isSubdomain(R,pe){be(isString(R)&&isString(pe));var Ae=R.length-pe.length-1;return Ae>0&&R[Ae]==="."&&R.endsWith(pe)}function isString(R){return typeof R==="string"||R instanceof String}function isFunction(R){return typeof R==="function"}function isBuffer(R){return typeof R==="object"&&"length"in R}function isURL(R){return ge&&R instanceof ge}R.exports=wrap({http:ye,https:me});R.exports.wrap=wrap},83083:R=>{var pe=Object.prototype.hasOwnProperty;var Ae=Object.prototype.toString;R.exports=function forEach(R,he,ge){if(Ae.call(he)!=="[object Function]"){throw new TypeError("iterator must be a function")}var ye=R.length;if(ye===+ye){for(var me=0;me{var he=Ae(85443);var ge=Ae(73837);var ye=Ae(71017);var me=Ae(13685);var ve=Ae(95687);var be=Ae(57310).parse;var Ee=Ae(57147);var Ce=Ae(12781).Stream;var we=Ae(43583);var _e=Ae(14812);var Ie=Ae(17142);R.exports=FormData;ge.inherits(FormData,he);function FormData(R){if(!(this instanceof FormData)){return new FormData(R)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];he.call(this);R=R||{};for(var pe in R){this[pe]=R[pe]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(R,pe,Ae){Ae=Ae||{};if(typeof Ae=="string"){Ae={filename:Ae}}var ye=he.prototype.append.bind(this);if(typeof pe=="number"){pe=""+pe}if(ge.isArray(pe)){this._error(new Error("Arrays are not supported."));return}var me=this._multiPartHeader(R,pe,Ae);var ve=this._multiPartFooter();ye(me);ye(pe);ye(ve);this._trackLength(me,pe,Ae)};FormData.prototype._trackLength=function(R,pe,Ae){var he=0;if(Ae.knownLength!=null){he+=+Ae.knownLength}else if(Buffer.isBuffer(pe)){he=pe.length}else if(typeof pe==="string"){he=Buffer.byteLength(pe)}this._valueLength+=he;this._overheadLength+=Buffer.byteLength(R)+FormData.LINE_BREAK.length;if(!pe||!pe.path&&!(pe.readable&&pe.hasOwnProperty("httpVersion"))&&!(pe instanceof Ce)){return}if(!Ae.knownLength){this._valuesToMeasure.push(pe)}};FormData.prototype._lengthRetriever=function(R,pe){if(R.hasOwnProperty("fd")){if(R.end!=undefined&&R.end!=Infinity&&R.start!=undefined){pe(null,R.end+1-(R.start?R.start:0))}else{Ee.stat(R.path,(function(Ae,he){var ge;if(Ae){pe(Ae);return}ge=he.size-(R.start?R.start:0);pe(null,ge)}))}}else if(R.hasOwnProperty("httpVersion")){pe(null,+R.headers["content-length"])}else if(R.hasOwnProperty("httpModule")){R.on("response",(function(Ae){R.pause();pe(null,+Ae.headers["content-length"])}));R.resume()}else{pe("Unknown stream")}};FormData.prototype._multiPartHeader=function(R,pe,Ae){if(typeof Ae.header=="string"){return Ae.header}var he=this._getContentDisposition(pe,Ae);var ge=this._getContentType(pe,Ae);var ye="";var me={"Content-Disposition":["form-data",'name="'+R+'"'].concat(he||[]),"Content-Type":[].concat(ge||[])};if(typeof Ae.header=="object"){Ie(me,Ae.header)}var ve;for(var be in me){if(!me.hasOwnProperty(be))continue;ve=me[be];if(ve==null){continue}if(!Array.isArray(ve)){ve=[ve]}if(ve.length){ye+=be+": "+ve.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+ye+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(R,pe){var Ae,he;if(typeof pe.filepath==="string"){Ae=ye.normalize(pe.filepath).replace(/\\/g,"/")}else if(pe.filename||R.name||R.path){Ae=ye.basename(pe.filename||R.name||R.path)}else if(R.readable&&R.hasOwnProperty("httpVersion")){Ae=ye.basename(R.client._httpMessage.path||"")}if(Ae){he='filename="'+Ae+'"'}return he};FormData.prototype._getContentType=function(R,pe){var Ae=pe.contentType;if(!Ae&&R.name){Ae=we.lookup(R.name)}if(!Ae&&R.path){Ae=we.lookup(R.path)}if(!Ae&&R.readable&&R.hasOwnProperty("httpVersion")){Ae=R.headers["content-type"]}if(!Ae&&(pe.filepath||pe.filename)){Ae=we.lookup(pe.filepath||pe.filename)}if(!Ae&&typeof R=="object"){Ae=FormData.DEFAULT_CONTENT_TYPE}return Ae};FormData.prototype._multiPartFooter=function(){return function(R){var pe=FormData.LINE_BREAK;var Ae=this._streams.length===0;if(Ae){pe+=this._lastBoundary()}R(pe)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(R){var pe;var Ae={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(pe in R){if(R.hasOwnProperty(pe)){Ae[pe.toLowerCase()]=R[pe]}}return Ae};FormData.prototype.setBoundary=function(R){this._boundary=R};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var R=new Buffer.alloc(0);var pe=this.getBoundary();for(var Ae=0,he=this._streams.length;Ae{R.exports=function(R,pe){Object.keys(pe).forEach((function(Ae){R[Ae]=R[Ae]||pe[Ae]}));return R}},31621:R=>{"use strict";R.exports=(R,pe=process.argv)=>{const Ae=R.startsWith("-")?"":R.length===1?"-":"--";const he=pe.indexOf(Ae+R);const ge=pe.indexOf("--");return he!==-1&&(ge===-1||he=0){Ae++}if(R.substr(0,2)==="::"){Ae--}if(R.substr(-2,2)==="::"){Ae--}if(Ae>pe){return null}me=pe-Ae;ye=":";while(me--){ye+="0:"}R=R.replace("::",ye);if(R[0]===":"){R=R.slice(1)}if(R[R.length-1]===":"){R=R.slice(0,-1)}pe=function(){const pe=R.split(":");const Ae=[];for(let R=0;R0){ye=Ae-he;if(ye<0){ye=0}if(R[ge]>>ye!==pe[ge]>>ye){return false}he-=Ae;ge+=1}return true}function parseIntAuto(R){if(ye.test(R)){return parseInt(R,16)}if(R[0]==="0"&&!isNaN(parseInt(R[1],10))){if(ge.test(R)){return parseInt(R,8)}throw new Error(`ipaddr: cannot parse ${R} as octal`)}return parseInt(R,10)}function padPart(R,pe){while(R.length=0;he-=1){ge=this.octets[he];if(ge in Ae){ye=Ae[ge];if(pe&&ye!==0){return null}if(ye!==8){pe=true}R+=ye}else{return null}}return 32-R};IPv4.prototype.range=function(){return Ee.subnetMatch(this,this.SpecialRanges)};IPv4.prototype.toByteArray=function(){return this.octets.slice(0)};IPv4.prototype.toIPv4MappedAddress=function(){return Ee.IPv6.parse(`::ffff:${this.toString()}`)};IPv4.prototype.toNormalizedString=function(){return this.toString()};IPv4.prototype.toString=function(){return this.octets.join(".")};return IPv4}();Ee.IPv4.broadcastAddressFromCIDR=function(R){try{const pe=this.parseCIDR(R);const Ae=pe[0].toByteArray();const he=this.subnetMaskFromPrefixLength(pe[1]).toByteArray();const ge=[];let ye=0;while(ye<4){ge.push(parseInt(Ae[ye],10)|parseInt(he[ye],10)^255);ye++}return new this(ge)}catch(R){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}};Ee.IPv4.isIPv4=function(R){return this.parser(R)!==null};Ee.IPv4.isValid=function(R){try{new this(this.parser(R));return true}catch(R){return false}};Ee.IPv4.isValidCIDR=function(R){try{this.parseCIDR(R);return true}catch(R){return false}};Ee.IPv4.isValidFourPartDecimal=function(R){if(Ee.IPv4.isValid(R)&&R.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/)){return true}else{return false}};Ee.IPv4.networkAddressFromCIDR=function(R){let pe,Ae,he,ge,ye;try{pe=this.parseCIDR(R);he=pe[0].toByteArray();ye=this.subnetMaskFromPrefixLength(pe[1]).toByteArray();ge=[];Ae=0;while(Ae<4){ge.push(parseInt(he[Ae],10)&parseInt(ye[Ae],10));Ae++}return new this(ge)}catch(R){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}};Ee.IPv4.parse=function(R){const pe=this.parser(R);if(pe===null){throw new Error("ipaddr: string is not formatted like an IPv4 Address")}return new this(pe)};Ee.IPv4.parseCIDR=function(R){let pe;if(pe=R.match(/^(.+)\/(\d+)$/)){const R=parseInt(pe[2]);if(R>=0&&R<=32){const Ae=[this.parse(pe[1]),R];Object.defineProperty(Ae,"toString",{value:function(){return this.join("/")}});return Ae}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")};Ee.IPv4.parser=function(R){let pe,Ae,ge;if(pe=R.match(he.fourOctet)){return function(){const R=pe.slice(1,6);const he=[];for(let pe=0;pe4294967295||ge<0){throw new Error("ipaddr: address outside defined range")}return function(){const R=[];let pe;for(pe=0;pe<=24;pe+=8){R.push(ge>>pe&255)}return R}().reverse()}else if(pe=R.match(he.twoOctet)){return function(){const R=pe.slice(1,4);const Ae=[];ge=parseIntAuto(R[1]);if(ge>16777215||ge<0){throw new Error("ipaddr: address outside defined range")}Ae.push(parseIntAuto(R[0]));Ae.push(ge>>16&255);Ae.push(ge>>8&255);Ae.push(ge&255);return Ae}()}else if(pe=R.match(he.threeOctet)){return function(){const R=pe.slice(1,5);const Ae=[];ge=parseIntAuto(R[2]);if(ge>65535||ge<0){throw new Error("ipaddr: address outside defined range")}Ae.push(parseIntAuto(R[0]));Ae.push(parseIntAuto(R[1]));Ae.push(ge>>8&255);Ae.push(ge&255);return Ae}()}else{return null}};Ee.IPv4.subnetMaskFromPrefixLength=function(R){R=parseInt(R);if(R<0||R>32){throw new Error("ipaddr: invalid IPv4 prefix length")}const pe=[0,0,0,0];let Ae=0;const he=Math.floor(R/8);while(Ae=0;ye-=1){he=this.parts[ye];if(he in Ae){ge=Ae[he];if(pe&&ge!==0){return null}if(ge!==16){pe=true}R+=ge}else{return null}}return 128-R};IPv6.prototype.range=function(){return Ee.subnetMatch(this,this.SpecialRanges)};IPv6.prototype.toByteArray=function(){let R;const pe=[];const Ae=this.parts;for(let he=0;he>8);pe.push(R&255)}return pe};IPv6.prototype.toFixedLengthString=function(){const R=function(){const R=[];for(let pe=0;pe>8,pe&255,Ae>>8,Ae&255])};IPv6.prototype.toNormalizedString=function(){const R=function(){const R=[];for(let pe=0;pehe){Ae=ge.index;he=ge[0].length}}if(he<0){return pe}return`${pe.substring(0,Ae)}::${pe.substring(Ae+he)}`};IPv6.prototype.toString=function(){return this.toRFC5952String()};return IPv6}();Ee.IPv6.broadcastAddressFromCIDR=function(R){try{const pe=this.parseCIDR(R);const Ae=pe[0].toByteArray();const he=this.subnetMaskFromPrefixLength(pe[1]).toByteArray();const ge=[];let ye=0;while(ye<16){ge.push(parseInt(Ae[ye],10)|parseInt(he[ye],10)^255);ye++}return new this(ge)}catch(R){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${R})`)}};Ee.IPv6.isIPv6=function(R){return this.parser(R)!==null};Ee.IPv6.isValid=function(R){if(typeof R==="string"&&R.indexOf(":")===-1){return false}try{const pe=this.parser(R);new this(pe.parts,pe.zoneId);return true}catch(R){return false}};Ee.IPv6.isValidCIDR=function(R){if(typeof R==="string"&&R.indexOf(":")===-1){return false}try{this.parseCIDR(R);return true}catch(R){return false}};Ee.IPv6.networkAddressFromCIDR=function(R){let pe,Ae,he,ge,ye;try{pe=this.parseCIDR(R);he=pe[0].toByteArray();ye=this.subnetMaskFromPrefixLength(pe[1]).toByteArray();ge=[];Ae=0;while(Ae<16){ge.push(parseInt(he[Ae],10)&parseInt(ye[Ae],10));Ae++}return new this(ge)}catch(R){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${R})`)}};Ee.IPv6.parse=function(R){const pe=this.parser(R);if(pe.parts===null){throw new Error("ipaddr: string is not formatted like an IPv6 Address")}return new this(pe.parts,pe.zoneId)};Ee.IPv6.parseCIDR=function(R){let pe,Ae,he;if(Ae=R.match(/^(.+)\/(\d+)$/)){pe=parseInt(Ae[2]);if(pe>=0&&pe<=128){he=[this.parse(Ae[1]),pe];Object.defineProperty(he,"toString",{value:function(){return this.join("/")}});return he}}throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")};Ee.IPv6.parser=function(R){let pe,Ae,he,ge,ye,me;if(he=R.match(be.deprecatedTransitional)){return this.parser(`::ffff:${he[1]}`)}if(be.native.test(R)){return expandIPv6(R,8)}if(he=R.match(be.transitional)){me=he[6]||"";pe=he[1];if(!he[1].endsWith("::")){pe=pe.slice(0,-1)}pe=expandIPv6(pe+me,6);if(pe.parts){ye=[parseInt(he[2]),parseInt(he[3]),parseInt(he[4]),parseInt(he[5])];for(Ae=0;Ae128){throw new Error("ipaddr: invalid IPv6 prefix length")}const pe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let Ae=0;const he=Math.floor(R/8);while(Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.cryptoRuntime=pe.base64url=pe.generateSecret=pe.generateKeyPair=pe.errors=pe.decodeJwt=pe.decodeProtectedHeader=pe.importJWK=pe.importX509=pe.importPKCS8=pe.importSPKI=pe.exportJWK=pe.exportSPKI=pe.exportPKCS8=pe.UnsecuredJWT=pe.experimental_jwksCache=pe.createRemoteJWKSet=pe.createLocalJWKSet=pe.EmbeddedJWK=pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=pe.EncryptJWT=pe.SignJWT=pe.GeneralSign=pe.FlattenedSign=pe.CompactSign=pe.FlattenedEncrypt=pe.CompactEncrypt=pe.jwtDecrypt=pe.jwtVerify=pe.generalVerify=pe.flattenedVerify=pe.compactVerify=pe.GeneralEncrypt=pe.generalDecrypt=pe.flattenedDecrypt=pe.compactDecrypt=void 0;var he=Ae(27651);Object.defineProperty(pe,"compactDecrypt",{enumerable:true,get:function(){return he.compactDecrypt}});var ge=Ae(7566);Object.defineProperty(pe,"flattenedDecrypt",{enumerable:true,get:function(){return ge.flattenedDecrypt}});var ye=Ae(85684);Object.defineProperty(pe,"generalDecrypt",{enumerable:true,get:function(){return ye.generalDecrypt}});var me=Ae(43992);Object.defineProperty(pe,"GeneralEncrypt",{enumerable:true,get:function(){return me.GeneralEncrypt}});var ve=Ae(15212);Object.defineProperty(pe,"compactVerify",{enumerable:true,get:function(){return ve.compactVerify}});var be=Ae(32095);Object.defineProperty(pe,"flattenedVerify",{enumerable:true,get:function(){return be.flattenedVerify}});var Ee=Ae(34975);Object.defineProperty(pe,"generalVerify",{enumerable:true,get:function(){return Ee.generalVerify}});var Ce=Ae(99887);Object.defineProperty(pe,"jwtVerify",{enumerable:true,get:function(){return Ce.jwtVerify}});var we=Ae(53378);Object.defineProperty(pe,"jwtDecrypt",{enumerable:true,get:function(){return we.jwtDecrypt}});var _e=Ae(86203);Object.defineProperty(pe,"CompactEncrypt",{enumerable:true,get:function(){return _e.CompactEncrypt}});var Ie=Ae(81555);Object.defineProperty(pe,"FlattenedEncrypt",{enumerable:true,get:function(){return Ie.FlattenedEncrypt}});var Se=Ae(48257);Object.defineProperty(pe,"CompactSign",{enumerable:true,get:function(){return Se.CompactSign}});var Be=Ae(84825);Object.defineProperty(pe,"FlattenedSign",{enumerable:true,get:function(){return Be.FlattenedSign}});var ke=Ae(64268);Object.defineProperty(pe,"GeneralSign",{enumerable:true,get:function(){return ke.GeneralSign}});var Oe=Ae(25356);Object.defineProperty(pe,"SignJWT",{enumerable:true,get:function(){return Oe.SignJWT}});var Re=Ae(10960);Object.defineProperty(pe,"EncryptJWT",{enumerable:true,get:function(){return Re.EncryptJWT}});var Qe=Ae(3494);Object.defineProperty(pe,"calculateJwkThumbprint",{enumerable:true,get:function(){return Qe.calculateJwkThumbprint}});Object.defineProperty(pe,"calculateJwkThumbprintUri",{enumerable:true,get:function(){return Qe.calculateJwkThumbprintUri}});var xe=Ae(1751);Object.defineProperty(pe,"EmbeddedJWK",{enumerable:true,get:function(){return xe.EmbeddedJWK}});var Pe=Ae(29970);Object.defineProperty(pe,"createLocalJWKSet",{enumerable:true,get:function(){return Pe.createLocalJWKSet}});var Te=Ae(79035);Object.defineProperty(pe,"createRemoteJWKSet",{enumerable:true,get:function(){return Te.createRemoteJWKSet}});Object.defineProperty(pe,"experimental_jwksCache",{enumerable:true,get:function(){return Te.experimental_jwksCache}});var De=Ae(88568);Object.defineProperty(pe,"UnsecuredJWT",{enumerable:true,get:function(){return De.UnsecuredJWT}});var Ne=Ae(70465);Object.defineProperty(pe,"exportPKCS8",{enumerable:true,get:function(){return Ne.exportPKCS8}});Object.defineProperty(pe,"exportSPKI",{enumerable:true,get:function(){return Ne.exportSPKI}});Object.defineProperty(pe,"exportJWK",{enumerable:true,get:function(){return Ne.exportJWK}});var Me=Ae(74230);Object.defineProperty(pe,"importSPKI",{enumerable:true,get:function(){return Me.importSPKI}});Object.defineProperty(pe,"importPKCS8",{enumerable:true,get:function(){return Me.importPKCS8}});Object.defineProperty(pe,"importX509",{enumerable:true,get:function(){return Me.importX509}});Object.defineProperty(pe,"importJWK",{enumerable:true,get:function(){return Me.importJWK}});var je=Ae(33991);Object.defineProperty(pe,"decodeProtectedHeader",{enumerable:true,get:function(){return je.decodeProtectedHeader}});var Fe=Ae(65611);Object.defineProperty(pe,"decodeJwt",{enumerable:true,get:function(){return Fe.decodeJwt}});pe.errors=Ae(94419);var Le=Ae(51036);Object.defineProperty(pe,"generateKeyPair",{enumerable:true,get:function(){return Le.generateKeyPair}});var Ue=Ae(76617);Object.defineProperty(pe,"generateSecret",{enumerable:true,get:function(){return Ue.generateSecret}});pe.base64url=Ae(63238);var He=Ae(31173);Object.defineProperty(pe,"cryptoRuntime",{enumerable:true,get:function(){return He.default}})},27651:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactDecrypt=void 0;const he=Ae(7566);const ge=Ae(94419);const ye=Ae(1691);async function compactDecrypt(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWEInvalid("Compact JWE must be a string or Uint8Array")}const{0:me,1:ve,2:be,3:Ee,4:Ce,length:we}=R.split(".");if(we!==5){throw new ge.JWEInvalid("Invalid Compact JWE")}const _e=await(0,he.flattenedDecrypt)({ciphertext:Ee,iv:be||undefined,protected:me,tag:Ce||undefined,encrypted_key:ve||undefined},pe,Ae);const Ie={plaintext:_e.plaintext,protectedHeader:_e.protectedHeader};if(typeof pe==="function"){return{...Ie,key:_e.key}}return Ie}pe.compactDecrypt=compactDecrypt},86203:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactEncrypt=void 0;const he=Ae(81555);class CompactEncrypt{_flattened;constructor(R){this._flattened=new he.FlattenedEncrypt(R)}setContentEncryptionKey(R){this._flattened.setContentEncryptionKey(R);return this}setInitializationVector(R){this._flattened.setInitializationVector(R);return this}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}setKeyManagementParameters(R){this._flattened.setKeyManagementParameters(R);return this}async encrypt(R,pe){const Ae=await this._flattened.encrypt(R,pe);return[Ae.protected,Ae.encrypted_key,Ae.iv,Ae.ciphertext,Ae.tag].join(".")}}pe.CompactEncrypt=CompactEncrypt},7566:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedDecrypt=void 0;const he=Ae(80518);const ge=Ae(66137);const ye=Ae(94419);const me=Ae(6063);const ve=Ae(39127);const be=Ae(26127);const Ee=Ae(1691);const Ce=Ae(43987);const we=Ae(50863);const _e=Ae(55148);async function flattenedDecrypt(R,pe,Ae){if(!(0,ve.default)(R)){throw new ye.JWEInvalid("Flattened JWE must be an object")}if(R.protected===undefined&&R.header===undefined&&R.unprotected===undefined){throw new ye.JWEInvalid("JOSE Header missing")}if(R.iv!==undefined&&typeof R.iv!=="string"){throw new ye.JWEInvalid("JWE Initialization Vector incorrect type")}if(typeof R.ciphertext!=="string"){throw new ye.JWEInvalid("JWE Ciphertext missing or incorrect type")}if(R.tag!==undefined&&typeof R.tag!=="string"){throw new ye.JWEInvalid("JWE Authentication Tag incorrect type")}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new ye.JWEInvalid("JWE Protected Header incorrect type")}if(R.encrypted_key!==undefined&&typeof R.encrypted_key!=="string"){throw new ye.JWEInvalid("JWE Encrypted Key incorrect type")}if(R.aad!==undefined&&typeof R.aad!=="string"){throw new ye.JWEInvalid("JWE AAD incorrect type")}if(R.header!==undefined&&!(0,ve.default)(R.header)){throw new ye.JWEInvalid("JWE Shared Unprotected Header incorrect type")}if(R.unprotected!==undefined&&!(0,ve.default)(R.unprotected)){throw new ye.JWEInvalid("JWE Per-Recipient Unprotected Header incorrect type")}let Ie;if(R.protected){try{const pe=(0,he.decode)(R.protected);Ie=JSON.parse(Ee.decoder.decode(pe))}catch{throw new ye.JWEInvalid("JWE Protected Header is invalid")}}if(!(0,me.default)(Ie,R.header,R.unprotected)){throw new ye.JWEInvalid("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint")}const Se={...Ie,...R.header,...R.unprotected};(0,we.default)(ye.JWEInvalid,new Map,Ae?.crit,Ie,Se);if(Se.zip!==undefined){throw new ye.JOSENotSupported('JWE "zip" (Compression Algorithm) Header Parameter is not supported.')}const{alg:Be,enc:ke}=Se;if(typeof Be!=="string"||!Be){throw new ye.JWEInvalid("missing JWE Algorithm (alg) in JWE Header")}if(typeof ke!=="string"||!ke){throw new ye.JWEInvalid("missing JWE Encryption Algorithm (enc) in JWE Header")}const Oe=Ae&&(0,_e.default)("keyManagementAlgorithms",Ae.keyManagementAlgorithms);const Re=Ae&&(0,_e.default)("contentEncryptionAlgorithms",Ae.contentEncryptionAlgorithms);if(Oe&&!Oe.has(Be)||!Oe&&Be.startsWith("PBES2")){throw new ye.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter value not allowed')}if(Re&&!Re.has(ke)){throw new ye.JOSEAlgNotAllowed('"enc" (Encryption Algorithm) Header Parameter value not allowed')}let Qe;if(R.encrypted_key!==undefined){try{Qe=(0,he.decode)(R.encrypted_key)}catch{throw new ye.JWEInvalid("Failed to base64url decode the encrypted_key")}}let xe=false;if(typeof pe==="function"){pe=await pe(Ie,R);xe=true}let Pe;try{Pe=await(0,be.default)(Be,pe,Qe,Se,Ae)}catch(R){if(R instanceof TypeError||R instanceof ye.JWEInvalid||R instanceof ye.JOSENotSupported){throw R}Pe=(0,Ce.default)(ke)}let Te;let De;if(R.iv!==undefined){try{Te=(0,he.decode)(R.iv)}catch{throw new ye.JWEInvalid("Failed to base64url decode the iv")}}if(R.tag!==undefined){try{De=(0,he.decode)(R.tag)}catch{throw new ye.JWEInvalid("Failed to base64url decode the tag")}}const Ne=Ee.encoder.encode(R.protected??"");let Me;if(R.aad!==undefined){Me=(0,Ee.concat)(Ne,Ee.encoder.encode("."),Ee.encoder.encode(R.aad))}else{Me=Ne}let je;try{je=(0,he.decode)(R.ciphertext)}catch{throw new ye.JWEInvalid("Failed to base64url decode the ciphertext")}const Fe=await(0,ge.default)(ke,Pe,je,Te,De,Me);const Le={plaintext:Fe};if(R.protected!==undefined){Le.protectedHeader=Ie}if(R.aad!==undefined){try{Le.additionalAuthenticatedData=(0,he.decode)(R.aad)}catch{throw new ye.JWEInvalid("Failed to base64url decode the aad")}}if(R.unprotected!==undefined){Le.sharedUnprotectedHeader=R.unprotected}if(R.header!==undefined){Le.unprotectedHeader=R.header}if(xe){return{...Le,key:pe}}return Le}pe.flattenedDecrypt=flattenedDecrypt},81555:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedEncrypt=pe.unprotected=void 0;const he=Ae(80518);const ge=Ae(76476);const ye=Ae(33286);const me=Ae(94419);const ve=Ae(6063);const be=Ae(1691);const Ee=Ae(50863);pe.unprotected=Symbol();class FlattenedEncrypt{_plaintext;_protectedHeader;_sharedUnprotectedHeader;_unprotectedHeader;_aad;_cek;_iv;_keyManagementParameters;constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("plaintext must be an instance of Uint8Array")}this._plaintext=R}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._sharedUnprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._sharedUnprotectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}async encrypt(R,Ae){if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader){throw new me.JWEInvalid("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()")}if(!(0,ve.default)(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader)){throw new me.JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint")}const Ce={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};(0,Ee.default)(me.JWEInvalid,new Map,Ae?.crit,this._protectedHeader,Ce);if(Ce.zip!==undefined){throw new me.JOSENotSupported('JWE "zip" (Compression Algorithm) Header Parameter is not supported.')}const{alg:we,enc:_e}=Ce;if(typeof we!=="string"||!we){throw new me.JWEInvalid('JWE "alg" (Algorithm) Header Parameter missing or invalid')}if(typeof _e!=="string"||!_e){throw new me.JWEInvalid('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid')}let Ie;if(this._cek&&(we==="dir"||we==="ECDH-ES")){throw new TypeError(`setContentEncryptionKey cannot be called with JWE "alg" (Algorithm) Header ${we}`)}let Se;{let he;({cek:Se,encryptedKey:Ie,parameters:he}=await(0,ye.default)(we,_e,R,this._cek,this._keyManagementParameters));if(he){if(Ae&&pe.unprotected in Ae){if(!this._unprotectedHeader){this.setUnprotectedHeader(he)}else{this._unprotectedHeader={...this._unprotectedHeader,...he}}}else if(!this._protectedHeader){this.setProtectedHeader(he)}else{this._protectedHeader={...this._protectedHeader,...he}}}}let Be;let ke;let Oe;if(this._protectedHeader){ke=be.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{ke=be.encoder.encode("")}if(this._aad){Oe=(0,he.encode)(this._aad);Be=(0,be.concat)(ke,be.encoder.encode("."),be.encoder.encode(Oe))}else{Be=ke}const{ciphertext:Re,tag:Qe,iv:xe}=await(0,ge.default)(_e,this._plaintext,Se,this._iv,Be);const Pe={ciphertext:(0,he.encode)(Re)};if(xe){Pe.iv=(0,he.encode)(xe)}if(Qe){Pe.tag=(0,he.encode)(Qe)}if(Ie){Pe.encrypted_key=(0,he.encode)(Ie)}if(Oe){Pe.aad=Oe}if(this._protectedHeader){Pe.protected=be.decoder.decode(ke)}if(this._sharedUnprotectedHeader){Pe.unprotected=this._sharedUnprotectedHeader}if(this._unprotectedHeader){Pe.header=this._unprotectedHeader}return Pe}}pe.FlattenedEncrypt=FlattenedEncrypt},85684:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalDecrypt=void 0;const he=Ae(7566);const ge=Ae(94419);const ye=Ae(39127);async function generalDecrypt(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWEInvalid("General JWE must be an object")}if(!Array.isArray(R.recipients)||!R.recipients.every(ye.default)){throw new ge.JWEInvalid("JWE Recipients missing or incorrect type")}if(!R.recipients.length){throw new ge.JWEInvalid("JWE Recipients has no members")}for(const ge of R.recipients){try{return await(0,he.flattenedDecrypt)({aad:R.aad,ciphertext:R.ciphertext,encrypted_key:ge.encrypted_key,header:ge.header,iv:R.iv,protected:R.protected,tag:R.tag,unprotected:R.unprotected},pe,Ae)}catch{}}throw new ge.JWEDecryptionFailed}pe.generalDecrypt=generalDecrypt},43992:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralEncrypt=void 0;const he=Ae(81555);const ge=Ae(94419);const ye=Ae(43987);const me=Ae(6063);const ve=Ae(33286);const be=Ae(80518);const Ee=Ae(50863);class IndividualRecipient{parent;unprotectedHeader;key;options;constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addRecipient(...R){return this.parent.addRecipient(...R)}encrypt(...R){return this.parent.encrypt(...R)}done(){return this.parent}}class GeneralEncrypt{_plaintext;_recipients=[];_protectedHeader;_unprotectedHeader;_aad;constructor(R){this._plaintext=R}addRecipient(R,pe){const Ae=new IndividualRecipient(this,R,{crit:pe?.crit});this._recipients.push(Ae);return Ae}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}async encrypt(){if(!this._recipients.length){throw new ge.JWEInvalid("at least one recipient must be added")}if(this._recipients.length===1){const[R]=this._recipients;const pe=await new he.FlattenedEncrypt(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(R.unprotectedHeader).encrypt(R.key,{...R.options});const Ae={ciphertext:pe.ciphertext,iv:pe.iv,recipients:[{}],tag:pe.tag};if(pe.aad)Ae.aad=pe.aad;if(pe.protected)Ae.protected=pe.protected;if(pe.unprotected)Ae.unprotected=pe.unprotected;if(pe.encrypted_key)Ae.recipients[0].encrypted_key=pe.encrypted_key;if(pe.header)Ae.recipients[0].header=pe.header;return Ae}let R;for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EmbeddedJWK=void 0;const he=Ae(74230);const ge=Ae(39127);const ye=Ae(94419);async function EmbeddedJWK(R,pe){const Ae={...R,...pe?.header};if(!(0,ge.default)(Ae.jwk)){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a JSON object')}const me=await(0,he.importJWK)({...Ae.jwk,ext:true},Ae.alg);if(me instanceof Uint8Array||me.type!=="public"){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a public key')}return me}pe.EmbeddedJWK=EmbeddedJWK},3494:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=void 0;const he=Ae(52355);const ge=Ae(80518);const ye=Ae(94419);const me=Ae(1691);const ve=Ae(39127);const check=(R,pe)=>{if(typeof R!=="string"||!R){throw new ye.JWKInvalid(`${pe} missing or invalid`)}};async function calculateJwkThumbprint(R,pe){if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe??="sha256";if(pe!=="sha256"&&pe!=="sha384"&&pe!=="sha512"){throw new TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"')}let Ae;switch(R.kty){case"EC":check(R.crv,'"crv" (Curve) Parameter');check(R.x,'"x" (X Coordinate) Parameter');check(R.y,'"y" (Y Coordinate) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x,y:R.y};break;case"OKP":check(R.crv,'"crv" (Subtype of Key Pair) Parameter');check(R.x,'"x" (Public Key) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x};break;case"RSA":check(R.e,'"e" (Exponent) Parameter');check(R.n,'"n" (Modulus) Parameter');Ae={e:R.e,kty:R.kty,n:R.n};break;case"oct":check(R.k,'"k" (Key Value) Parameter');Ae={k:R.k,kty:R.kty};break;default:throw new ye.JOSENotSupported('"kty" (Key Type) Parameter missing or unsupported')}const be=me.encoder.encode(JSON.stringify(Ae));return(0,ge.encode)(await(0,he.default)(pe,be))}pe.calculateJwkThumbprint=calculateJwkThumbprint;async function calculateJwkThumbprintUri(R,pe){pe??="sha256";const Ae=await calculateJwkThumbprint(R,pe);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${pe.slice(-3)}:${Ae}`}pe.calculateJwkThumbprintUri=calculateJwkThumbprintUri},29970:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createLocalJWKSet=pe.LocalJWKSet=void 0;const he=Ae(74230);const ge=Ae(94419);const ye=Ae(39127);function getKtyFromAlg(R){switch(typeof R==="string"&&R.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new ge.JOSENotSupported('Unsupported "alg" value for a JSON Web Key Set')}}function isJWKSLike(R){return R&&typeof R==="object"&&Array.isArray(R.keys)&&R.keys.every(isJWKLike)}function isJWKLike(R){return(0,ye.default)(R)}function clone(R){if(typeof structuredClone==="function"){return structuredClone(R)}return JSON.parse(JSON.stringify(R))}class LocalJWKSet{_jwks;_cached=new WeakMap;constructor(R){if(!isJWKSLike(R)){throw new ge.JWKSInvalid("JSON Web Key Set malformed")}this._jwks=clone(R)}async getKey(R,pe){const{alg:Ae,kid:he}={...R,...pe?.header};const ye=getKtyFromAlg(Ae);const me=this._jwks.keys.filter((R=>{let pe=ye===R.kty;if(pe&&typeof he==="string"){pe=he===R.kid}if(pe&&typeof R.alg==="string"){pe=Ae===R.alg}if(pe&&typeof R.use==="string"){pe=R.use==="sig"}if(pe&&Array.isArray(R.key_ops)){pe=R.key_ops.includes("verify")}if(pe&&Ae==="EdDSA"){pe=R.crv==="Ed25519"||R.crv==="Ed448"}if(pe){switch(Ae){case"ES256":pe=R.crv==="P-256";break;case"ES256K":pe=R.crv==="secp256k1";break;case"ES384":pe=R.crv==="P-384";break;case"ES512":pe=R.crv==="P-521";break}}return pe}));const{0:ve,length:be}=me;if(be===0){throw new ge.JWKSNoMatchingKey}if(be!==1){const R=new ge.JWKSMultipleMatchingKeys;const{_cached:pe}=this;R[Symbol.asyncIterator]=async function*(){for(const R of me){try{yield await importWithAlgCache(pe,R,Ae)}catch{}}};throw R}return importWithAlgCache(this._cached,ve,Ae)}}pe.LocalJWKSet=LocalJWKSet;async function importWithAlgCache(R,pe,Ae){const ye=R.get(pe)||R.set(pe,{}).get(pe);if(ye[Ae]===undefined){const R=await(0,he.importJWK)({...pe,ext:true},Ae);if(R instanceof Uint8Array||R.type!=="public"){throw new ge.JWKSInvalid("JSON Web Key Set members must be public keys")}ye[Ae]=R}return ye[Ae]}function createLocalJWKSet(R){const pe=new LocalJWKSet(R);const localJWKSet=async(R,Ae)=>pe.getKey(R,Ae);Object.defineProperties(localJWKSet,{jwks:{value:()=>clone(pe._jwks),enumerable:true,configurable:false,writable:false}});return localJWKSet}pe.createLocalJWKSet=createLocalJWKSet},79035:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createRemoteJWKSet=pe.experimental_jwksCache=void 0;const he=Ae(43650);const ge=Ae(94419);const ye=Ae(29970);const me=Ae(39127);function isCloudflareWorkers(){return typeof WebSocketPair!=="undefined"||typeof navigator!=="undefined"&&navigator.userAgent==="Cloudflare-Workers"||typeof EdgeRuntime!=="undefined"&&EdgeRuntime==="vercel"}let ve;if(typeof navigator==="undefined"||!navigator.userAgent?.startsWith?.("Mozilla/5.0 ")){const R="jose";const pe="v5.6.3";ve=`${R}/${pe}`}pe.experimental_jwksCache=Symbol();function isFreshJwksCache(R,pe){if(typeof R!=="object"||R===null){return false}if(!("uat"in R)||typeof R.uat!=="number"||Date.now()-R.uat>=pe){return false}if(!("jwks"in R)||!(0,me.default)(R.jwks)||!Array.isArray(R.jwks.keys)||!Array.prototype.every.call(R.jwks.keys,me.default)){return false}return true}class RemoteJWKSet{_url;_timeoutDuration;_cooldownDuration;_cacheMaxAge;_jwksTimestamp;_pendingFetch;_options;_local;_cache;constructor(R,Ae){if(!(R instanceof URL)){throw new TypeError("url must be an instance of URL")}this._url=new URL(R.href);this._options={agent:Ae?.agent,headers:Ae?.headers};this._timeoutDuration=typeof Ae?.timeoutDuration==="number"?Ae?.timeoutDuration:5e3;this._cooldownDuration=typeof Ae?.cooldownDuration==="number"?Ae?.cooldownDuration:3e4;this._cacheMaxAge=typeof Ae?.cacheMaxAge==="number"?Ae?.cacheMaxAge:6e5;if(Ae?.[pe.experimental_jwksCache]!==undefined){this._cache=Ae?.[pe.experimental_jwksCache];if(isFreshJwksCache(Ae?.[pe.experimental_jwksCache],this._cacheMaxAge)){this._jwksTimestamp=this._cache.uat;this._local=(0,ye.createLocalJWKSet)(this._cache.jwks)}}}coolingDown(){return typeof this._jwksTimestamp==="number"?Date.now(){this._local=(0,ye.createLocalJWKSet)(R);if(this._cache){this._cache.uat=Date.now();this._cache.jwks=R}this._jwksTimestamp=Date.now();this._pendingFetch=undefined})).catch((R=>{this._pendingFetch=undefined;throw R}));await this._pendingFetch}}function createRemoteJWKSet(R,pe){const Ae=new RemoteJWKSet(R,pe);const remoteJWKSet=async(R,pe)=>Ae.getKey(R,pe);Object.defineProperties(remoteJWKSet,{coolingDown:{get:()=>Ae.coolingDown(),enumerable:true,configurable:false},fresh:{get:()=>Ae.fresh(),enumerable:true,configurable:false},reload:{value:()=>Ae.reload(),enumerable:true,configurable:false,writable:false},reloading:{get:()=>!!Ae._pendingFetch,enumerable:true,configurable:false},jwks:{value:()=>Ae._local?.jwks(),enumerable:true,configurable:false,writable:false}});return remoteJWKSet}pe.createRemoteJWKSet=createRemoteJWKSet},48257:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactSign=void 0;const he=Ae(84825);class CompactSign{_flattened;constructor(R){this._flattened=new he.FlattenedSign(R)}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}async sign(R,pe){const Ae=await this._flattened.sign(R,pe);if(Ae.payload===undefined){throw new TypeError("use the flattened module for creating JWS with b64: false")}return`${Ae.protected}.${Ae.payload}.${Ae.signature}`}}pe.CompactSign=CompactSign},15212:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactVerify=void 0;const he=Ae(32095);const ge=Ae(94419);const ye=Ae(1691);async function compactVerify(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWSInvalid("Compact JWS must be a string or Uint8Array")}const{0:me,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3){throw new ge.JWSInvalid("Invalid Compact JWS")}const Ce=await(0,he.flattenedVerify)({payload:ve,protected:me,signature:be},pe,Ae);const we={payload:Ce.payload,protectedHeader:Ce.protectedHeader};if(typeof pe==="function"){return{...we,key:Ce.key}}return we}pe.compactVerify=compactVerify},84825:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedSign=void 0;const he=Ae(80518);const ge=Ae(69935);const ye=Ae(6063);const me=Ae(94419);const ve=Ae(1691);const be=Ae(56241);const Ee=Ae(50863);class FlattenedSign{_payload;_protectedHeader;_unprotectedHeader;constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("payload must be an instance of Uint8Array")}this._payload=R}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}async sign(R,pe){if(!this._protectedHeader&&!this._unprotectedHeader){throw new me.JWSInvalid("either setProtectedHeader or setUnprotectedHeader must be called before #sign()")}if(!(0,ye.default)(this._protectedHeader,this._unprotectedHeader)){throw new me.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Ae={...this._protectedHeader,...this._unprotectedHeader};const Ce=(0,Ee.default)(me.JWSInvalid,new Map([["b64",true]]),pe?.crit,this._protectedHeader,Ae);let we=true;if(Ce.has("b64")){we=this._protectedHeader.b64;if(typeof we!=="boolean"){throw new me.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:_e}=Ae;if(typeof _e!=="string"||!_e){throw new me.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}(0,be.default)(_e,R,"sign");let Ie=this._payload;if(we){Ie=ve.encoder.encode((0,he.encode)(Ie))}let Se;if(this._protectedHeader){Se=ve.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{Se=ve.encoder.encode("")}const Be=(0,ve.concat)(Se,ve.encoder.encode("."),Ie);const ke=await(0,ge.default)(_e,R,Be);const Oe={signature:(0,he.encode)(ke),payload:""};if(we){Oe.payload=ve.decoder.decode(Ie)}if(this._unprotectedHeader){Oe.header=this._unprotectedHeader}if(this._protectedHeader){Oe.protected=ve.decoder.decode(Se)}return Oe}}pe.FlattenedSign=FlattenedSign},32095:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedVerify=void 0;const he=Ae(80518);const ge=Ae(3569);const ye=Ae(94419);const me=Ae(1691);const ve=Ae(6063);const be=Ae(39127);const Ee=Ae(56241);const Ce=Ae(50863);const we=Ae(55148);async function flattenedVerify(R,pe,Ae){if(!(0,be.default)(R)){throw new ye.JWSInvalid("Flattened JWS must be an object")}if(R.protected===undefined&&R.header===undefined){throw new ye.JWSInvalid('Flattened JWS must have either of the "protected" or "header" members')}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new ye.JWSInvalid("JWS Protected Header incorrect type")}if(R.payload===undefined){throw new ye.JWSInvalid("JWS Payload missing")}if(typeof R.signature!=="string"){throw new ye.JWSInvalid("JWS Signature missing or incorrect type")}if(R.header!==undefined&&!(0,be.default)(R.header)){throw new ye.JWSInvalid("JWS Unprotected Header incorrect type")}let _e={};if(R.protected){try{const pe=(0,he.decode)(R.protected);_e=JSON.parse(me.decoder.decode(pe))}catch{throw new ye.JWSInvalid("JWS Protected Header is invalid")}}if(!(0,ve.default)(_e,R.header)){throw new ye.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Ie={..._e,...R.header};const Se=(0,Ce.default)(ye.JWSInvalid,new Map([["b64",true]]),Ae?.crit,_e,Ie);let Be=true;if(Se.has("b64")){Be=_e.b64;if(typeof Be!=="boolean"){throw new ye.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:ke}=Ie;if(typeof ke!=="string"||!ke){throw new ye.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}const Oe=Ae&&(0,we.default)("algorithms",Ae.algorithms);if(Oe&&!Oe.has(ke)){throw new ye.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter value not allowed')}if(Be){if(typeof R.payload!=="string"){throw new ye.JWSInvalid("JWS Payload must be a string")}}else if(typeof R.payload!=="string"&&!(R.payload instanceof Uint8Array)){throw new ye.JWSInvalid("JWS Payload must be a string or an Uint8Array instance")}let Re=false;if(typeof pe==="function"){pe=await pe(_e,R);Re=true}(0,Ee.default)(ke,pe,"verify");const Qe=(0,me.concat)(me.encoder.encode(R.protected??""),me.encoder.encode("."),typeof R.payload==="string"?me.encoder.encode(R.payload):R.payload);let xe;try{xe=(0,he.decode)(R.signature)}catch{throw new ye.JWSInvalid("Failed to base64url decode the signature")}const Pe=await(0,ge.default)(ke,pe,xe,Qe);if(!Pe){throw new ye.JWSSignatureVerificationFailed}let Te;if(Be){try{Te=(0,he.decode)(R.payload)}catch{throw new ye.JWSInvalid("Failed to base64url decode the payload")}}else if(typeof R.payload==="string"){Te=me.encoder.encode(R.payload)}else{Te=R.payload}const De={payload:Te};if(R.protected!==undefined){De.protectedHeader=_e}if(R.header!==undefined){De.unprotectedHeader=R.header}if(Re){return{...De,key:pe}}return De}pe.flattenedVerify=flattenedVerify},64268:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralSign=void 0;const he=Ae(84825);const ge=Ae(94419);class IndividualSignature{parent;protectedHeader;unprotectedHeader;options;key;constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setProtectedHeader(R){if(this.protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this.protectedHeader=R;return this}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addSignature(...R){return this.parent.addSignature(...R)}sign(...R){return this.parent.sign(...R)}done(){return this.parent}}class GeneralSign{_payload;_signatures=[];constructor(R){this._payload=R}addSignature(R,pe){const Ae=new IndividualSignature(this,R,pe);this._signatures.push(Ae);return Ae}async sign(){if(!this._signatures.length){throw new ge.JWSInvalid("at least one signature must be added")}const R={signatures:[],payload:""};for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalVerify=void 0;const he=Ae(32095);const ge=Ae(94419);const ye=Ae(39127);async function generalVerify(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWSInvalid("General JWS must be an object")}if(!Array.isArray(R.signatures)||!R.signatures.every(ye.default)){throw new ge.JWSInvalid("JWS Signatures missing or incorrect type")}for(const ge of R.signatures){try{return await(0,he.flattenedVerify)({header:ge.header,payload:R.payload,protected:ge.protected,signature:ge.signature},pe,Ae)}catch{}}throw new ge.JWSSignatureVerificationFailed}pe.generalVerify=generalVerify},53378:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtDecrypt=void 0;const he=Ae(27651);const ge=Ae(7274);const ye=Ae(94419);async function jwtDecrypt(R,pe,Ae){const me=await(0,he.compactDecrypt)(R,pe,Ae);const ve=(0,ge.default)(me.protectedHeader,me.plaintext,Ae);const{protectedHeader:be}=me;if(be.iss!==undefined&&be.iss!==ve.iss){throw new ye.JWTClaimValidationFailed('replicated "iss" claim header parameter mismatch',ve,"iss","mismatch")}if(be.sub!==undefined&&be.sub!==ve.sub){throw new ye.JWTClaimValidationFailed('replicated "sub" claim header parameter mismatch',ve,"sub","mismatch")}if(be.aud!==undefined&&JSON.stringify(be.aud)!==JSON.stringify(ve.aud)){throw new ye.JWTClaimValidationFailed('replicated "aud" claim header parameter mismatch',ve,"aud","mismatch")}const Ee={payload:ve,protectedHeader:be};if(typeof pe==="function"){return{...Ee,key:me.key}}return Ee}pe.jwtDecrypt=jwtDecrypt},10960:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncryptJWT=void 0;const he=Ae(86203);const ge=Ae(1691);const ye=Ae(21908);class EncryptJWT extends ye.ProduceJWT{_cek;_iv;_keyManagementParameters;_protectedHeader;_replicateIssuerAsHeader;_replicateSubjectAsHeader;_replicateAudienceAsHeader;setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}replicateIssuerAsHeader(){this._replicateIssuerAsHeader=true;return this}replicateSubjectAsHeader(){this._replicateSubjectAsHeader=true;return this}replicateAudienceAsHeader(){this._replicateAudienceAsHeader=true;return this}async encrypt(R,pe){const Ae=new he.CompactEncrypt(ge.encoder.encode(JSON.stringify(this._payload)));if(this._replicateIssuerAsHeader){this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}}if(this._replicateSubjectAsHeader){this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}}if(this._replicateAudienceAsHeader){this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}}Ae.setProtectedHeader(this._protectedHeader);if(this._iv){Ae.setInitializationVector(this._iv)}if(this._cek){Ae.setContentEncryptionKey(this._cek)}if(this._keyManagementParameters){Ae.setKeyManagementParameters(this._keyManagementParameters)}return Ae.encrypt(R,pe)}}pe.EncryptJWT=EncryptJWT},21908:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ProduceJWT=void 0;const he=Ae(74476);const ge=Ae(39127);const ye=Ae(37810);function validateInput(R,pe){if(!Number.isFinite(pe)){throw new TypeError(`Invalid ${R} input`)}return pe}class ProduceJWT{_payload;constructor(R={}){if(!(0,ge.default)(R)){throw new TypeError("JWT Claims Set MUST be an object")}this._payload=R}setIssuer(R){this._payload={...this._payload,iss:R};return this}setSubject(R){this._payload={...this._payload,sub:R};return this}setAudience(R){this._payload={...this._payload,aud:R};return this}setJti(R){this._payload={...this._payload,jti:R};return this}setNotBefore(R){if(typeof R==="number"){this._payload={...this._payload,nbf:validateInput("setNotBefore",R)}}else if(R instanceof Date){this._payload={...this._payload,nbf:validateInput("setNotBefore",(0,he.default)(R))}}else{this._payload={...this._payload,nbf:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setExpirationTime(R){if(typeof R==="number"){this._payload={...this._payload,exp:validateInput("setExpirationTime",R)}}else if(R instanceof Date){this._payload={...this._payload,exp:validateInput("setExpirationTime",(0,he.default)(R))}}else{this._payload={...this._payload,exp:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setIssuedAt(R){if(typeof R==="undefined"){this._payload={...this._payload,iat:(0,he.default)(new Date)}}else if(R instanceof Date){this._payload={...this._payload,iat:validateInput("setIssuedAt",(0,he.default)(R))}}else if(typeof R==="string"){this._payload={...this._payload,iat:validateInput("setIssuedAt",(0,he.default)(new Date)+(0,ye.default)(R))}}else{this._payload={...this._payload,iat:validateInput("setIssuedAt",R)}}return this}}pe.ProduceJWT=ProduceJWT},25356:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SignJWT=void 0;const he=Ae(48257);const ge=Ae(94419);const ye=Ae(1691);const me=Ae(21908);class SignJWT extends me.ProduceJWT{_protectedHeader;setProtectedHeader(R){this._protectedHeader=R;return this}async sign(R,pe){const Ae=new he.CompactSign(ye.encoder.encode(JSON.stringify(this._payload)));Ae.setProtectedHeader(this._protectedHeader);if(Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&this._protectedHeader.b64===false){throw new ge.JWTInvalid("JWTs MUST NOT use unencoded payload")}return Ae.sign(R,pe)}}pe.SignJWT=SignJWT},88568:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.UnsecuredJWT=void 0;const he=Ae(80518);const ge=Ae(1691);const ye=Ae(94419);const me=Ae(7274);const ve=Ae(21908);class UnsecuredJWT extends ve.ProduceJWT{encode(){const R=he.encode(JSON.stringify({alg:"none"}));const pe=he.encode(JSON.stringify(this._payload));return`${R}.${pe}.`}static decode(R,pe){if(typeof R!=="string"){throw new ye.JWTInvalid("Unsecured JWT must be a string")}const{0:Ae,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3||be!==""){throw new ye.JWTInvalid("Invalid Unsecured JWT")}let Ce;try{Ce=JSON.parse(ge.decoder.decode(he.decode(Ae)));if(Ce.alg!=="none")throw new Error}catch{throw new ye.JWTInvalid("Invalid Unsecured JWT")}const we=(0,me.default)(Ce,he.decode(ve),pe);return{payload:we,header:Ce}}}pe.UnsecuredJWT=UnsecuredJWT},99887:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtVerify=void 0;const he=Ae(15212);const ge=Ae(7274);const ye=Ae(94419);async function jwtVerify(R,pe,Ae){const me=await(0,he.compactVerify)(R,pe,Ae);if(me.protectedHeader.crit?.includes("b64")&&me.protectedHeader.b64===false){throw new ye.JWTInvalid("JWTs MUST NOT use unencoded payload")}const ve=(0,ge.default)(me.protectedHeader,me.payload,Ae);const be={payload:ve,protectedHeader:me.protectedHeader};if(typeof pe==="function"){return{...be,key:me.key}}return be}pe.jwtVerify=jwtVerify},70465:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exportJWK=pe.exportPKCS8=pe.exportSPKI=void 0;const he=Ae(70858);const ge=Ae(70858);const ye=Ae(40997);async function exportSPKI(R){return(0,he.toSPKI)(R)}pe.exportSPKI=exportSPKI;async function exportPKCS8(R){return(0,ge.toPKCS8)(R)}pe.exportPKCS8=exportPKCS8;async function exportJWK(R){return(0,ye.default)(R)}pe.exportJWK=exportJWK},51036:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=void 0;const he=Ae(29378);async function generateKeyPair(R,pe){return(0,he.generateKeyPair)(R,pe)}pe.generateKeyPair=generateKeyPair},76617:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateSecret=void 0;const he=Ae(29378);async function generateSecret(R,pe){return(0,he.generateSecret)(R,pe)}pe.generateSecret=generateSecret},74230:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.importJWK=pe.importPKCS8=pe.importX509=pe.importSPKI=void 0;const he=Ae(80518);const ge=Ae(70858);const ye=Ae(42659);const me=Ae(94419);const ve=Ae(39127);async function importSPKI(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PUBLIC KEY-----")!==0){throw new TypeError('"spki" must be SPKI formatted string')}return(0,ge.fromSPKI)(R,pe,Ae)}pe.importSPKI=importSPKI;async function importX509(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN CERTIFICATE-----")!==0){throw new TypeError('"x509" must be X.509 formatted string')}return(0,ge.fromX509)(R,pe,Ae)}pe.importX509=importX509;async function importPKCS8(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PRIVATE KEY-----")!==0){throw new TypeError('"pkcs8" must be PKCS#8 formatted string')}return(0,ge.fromPKCS8)(R,pe,Ae)}pe.importPKCS8=importPKCS8;async function importJWK(R,pe){if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe||=R.alg;switch(R.kty){case"oct":if(typeof R.k!=="string"||!R.k){throw new TypeError('missing "k" (Key Value) Parameter value')}return(0,he.decode)(R.k);case"RSA":if(R.oth!==undefined){throw new me.JOSENotSupported('RSA JWK "oth" (Other Primes Info) Parameter value is not supported')}case"EC":case"OKP":return(0,ye.default)({...R,alg:pe});default:throw new me.JOSENotSupported('Unsupported "kty" (Key Type) Parameter value')}}pe.importJWK=importJWK},10233:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(76476);const ge=Ae(66137);const ye=Ae(80518);async function wrap(R,pe,Ae,ge){const me=R.slice(0,7);const ve=await(0,he.default)(me,Ae,pe,ge,new Uint8Array(0));return{encryptedKey:ve.ciphertext,iv:(0,ye.encode)(ve.iv),tag:(0,ye.encode)(ve.tag)}}pe.wrap=wrap;async function unwrap(R,pe,Ae,he,ye){const me=R.slice(0,7);return(0,ge.default)(me,pe,Ae,he,ye,new Uint8Array(0))}pe.unwrap=unwrap},1691:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatKdf=pe.lengthAndInput=pe.uint32be=pe.uint64be=pe.p2s=pe.concat=pe.decoder=pe.encoder=void 0;const he=Ae(52355);pe.encoder=new TextEncoder;pe.decoder=new TextDecoder;const ge=2**32;function concat(...R){const pe=R.reduce(((R,{length:pe})=>R+pe),0);const Ae=new Uint8Array(pe);let he=0;for(const pe of R){Ae.set(pe,he);he+=pe.length}return Ae}pe.concat=concat;function p2s(R,Ae){return concat(pe.encoder.encode(R),new Uint8Array([0]),Ae)}pe.p2s=p2s;function writeUInt32BE(R,pe,Ae){if(pe<0||pe>=ge){throw new RangeError(`value must be >= 0 and <= ${ge-1}. Received ${pe}`)}R.set([pe>>>24,pe>>>16,pe>>>8,pe&255],Ae)}function uint64be(R){const pe=Math.floor(R/ge);const Ae=R%ge;const he=new Uint8Array(8);writeUInt32BE(he,pe,0);writeUInt32BE(he,Ae,4);return he}pe.uint64be=uint64be;function uint32be(R){const pe=new Uint8Array(4);writeUInt32BE(pe,R);return pe}pe.uint32be=uint32be;function lengthAndInput(R){return concat(uint32be(R.length),R)}pe.lengthAndInput=lengthAndInput;async function concatKdf(R,pe,Ae){const ge=Math.ceil((pe>>3)/32);const ye=new Uint8Array(ge*32);for(let pe=0;pe>3)}pe.concatKdf=concatKdf},43987:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(94419);const ge=Ae(75770);function bitLength(R){switch(R){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},41120:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);const ge=Ae(84630);const checkIvLength=(R,pe)=>{if(pe.length<<3!==(0,ge.bitLength)(R)){throw new he.JWEInvalid("Invalid Initialization Vector length")}};pe["default"]=checkIvLength},56241:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(1146);const ge=Ae(17947);const tag=R=>R?.[Symbol.toStringTag];const symmetricTypeCheck=(R,pe)=>{if(pe instanceof Uint8Array)return;if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types,"Uint8Array"))}if(pe.type!=="secret"){throw new TypeError(`${tag(pe)} instances for symmetric algorithms must be of type "secret"`)}};const asymmetricTypeCheck=(R,pe,Ae)=>{if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types))}if(pe.type==="secret"){throw new TypeError(`${tag(pe)} instances for asymmetric algorithms must not be of type "secret"`)}if(Ae==="sign"&&pe.type==="public"){throw new TypeError(`${tag(pe)} instances for asymmetric algorithm signing must be of type "private"`)}if(Ae==="decrypt"&&pe.type==="public"){throw new TypeError(`${tag(pe)} instances for asymmetric algorithm decryption must be of type "private"`)}if(pe.algorithm&&Ae==="verify"&&pe.type==="private"){throw new TypeError(`${tag(pe)} instances for asymmetric algorithm verifying must be of type "public"`)}if(pe.algorithm&&Ae==="encrypt"&&pe.type==="private"){throw new TypeError(`${tag(pe)} instances for asymmetric algorithm encryption must be of type "public"`)}};const checkKeyType=(R,pe,Ae)=>{const he=R.startsWith("HS")||R==="dir"||R.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(R);if(he){symmetricTypeCheck(R,pe)}else{asymmetricTypeCheck(R,pe,Ae)}};pe["default"]=checkKeyType},83499:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);function checkP2s(R){if(!(R instanceof Uint8Array)||R.length<8){throw new he.JWEInvalid("PBES2 Salt Input must be 8 or more octets")}}pe["default"]=checkP2s},73386:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.checkEncCryptoKey=pe.checkSigCryptoKey=void 0;function unusable(R,pe="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${pe} must be ${R}`)}function isAlgorithm(R,pe){return R.name===pe}function getHashLength(R){return parseInt(R.name.slice(4),10)}function getNamedCurve(R){switch(R){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function checkUsage(R,pe){if(pe.length&&!pe.some((pe=>R.usages.includes(pe)))){let R="CryptoKey does not support this operation, its usages must include ";if(pe.length>2){const Ae=pe.pop();R+=`one of ${pe.join(", ")}, or ${Ae}.`}else if(pe.length===2){R+=`one of ${pe[0]} or ${pe[1]}.`}else{R+=`${pe[0]}.`}throw new TypeError(R)}}function checkSigCryptoKey(R,pe,...Ae){switch(pe){case"HS256":case"HS384":case"HS512":{if(!isAlgorithm(R.algorithm,"HMAC"))throw unusable("HMAC");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!isAlgorithm(R.algorithm,"RSASSA-PKCS1-v1_5"))throw unusable("RSASSA-PKCS1-v1_5");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!isAlgorithm(R.algorithm,"RSA-PSS"))throw unusable("RSA-PSS");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"EdDSA":{if(R.algorithm.name!=="Ed25519"&&R.algorithm.name!=="Ed448"){throw unusable("Ed25519 or Ed448")}break}case"ES256":case"ES384":case"ES512":{if(!isAlgorithm(R.algorithm,"ECDSA"))throw unusable("ECDSA");const Ae=getNamedCurve(pe);const he=R.algorithm.namedCurve;if(he!==Ae)throw unusable(Ae,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkSigCryptoKey=checkSigCryptoKey;function checkEncCryptoKey(R,pe,...Ae){switch(pe){case"A128GCM":case"A192GCM":case"A256GCM":{if(!isAlgorithm(R.algorithm,"AES-GCM"))throw unusable("AES-GCM");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!isAlgorithm(R.algorithm,"AES-KW"))throw unusable("AES-KW");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"ECDH":{switch(R.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw unusable("ECDH, X25519, or X448")}break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!isAlgorithm(R.algorithm,"PBKDF2"))throw unusable("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!isAlgorithm(R.algorithm,"RSA-OAEP"))throw unusable("RSA-OAEP");const Ae=parseInt(pe.slice(9),10)||1;const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkEncCryptoKey=checkEncCryptoKey},26127:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(56083);const ge=Ae(33706);const ye=Ae(66898);const me=Ae(89526);const ve=Ae(80518);const be=Ae(33367);const Ee=Ae(94419);const Ce=Ae(43987);const we=Ae(74230);const _e=Ae(56241);const Ie=Ae(39127);const Se=Ae(10233);async function decryptKeyManagement(R,pe,Ae,Be,ke){(0,_e.default)(R,pe,"decrypt");pe=await(be.default.normalizePrivateKey?.(pe,R))||pe;switch(R){case"dir":{if(Ae!==undefined)throw new Ee.JWEInvalid("Encountered unexpected JWE Encrypted Key");return pe}case"ECDH-ES":if(Ae!==undefined)throw new Ee.JWEInvalid("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!(0,Ie.default)(Be.epk))throw new Ee.JWEInvalid(`JOSE Header "epk" (Ephemeral Public Key) missing or invalid`);if(!ge.ecdhAllowed(pe))throw new Ee.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime");const ye=await(0,we.importJWK)(Be.epk,R);let me;let be;if(Be.apu!==undefined){if(typeof Be.apu!=="string")throw new Ee.JWEInvalid(`JOSE Header "apu" (Agreement PartyUInfo) invalid`);try{me=(0,ve.decode)(Be.apu)}catch{throw new Ee.JWEInvalid("Failed to base64url decode the apu")}}if(Be.apv!==undefined){if(typeof Be.apv!=="string")throw new Ee.JWEInvalid(`JOSE Header "apv" (Agreement PartyVInfo) invalid`);try{be=(0,ve.decode)(Be.apv)}catch{throw new Ee.JWEInvalid("Failed to base64url decode the apv")}}const _e=await ge.deriveKey(ye,pe,R==="ECDH-ES"?Be.enc:R,R==="ECDH-ES"?(0,Ce.bitLength)(Be.enc):parseInt(R.slice(-5,-2),10),me,be);if(R==="ECDH-ES")return _e;if(Ae===undefined)throw new Ee.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R.slice(-6),_e,Ae)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(Ae===undefined)throw new Ee.JWEInvalid("JWE Encrypted Key missing");return(0,me.decrypt)(R,pe,Ae)}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{if(Ae===undefined)throw new Ee.JWEInvalid("JWE Encrypted Key missing");if(typeof Be.p2c!=="number")throw new Ee.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) missing or invalid`);const he=ke?.maxPBES2Count||1e4;if(Be.p2c>he)throw new Ee.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds`);if(typeof Be.p2s!=="string")throw new Ee.JWEInvalid(`JOSE Header "p2s" (PBES2 Salt) missing or invalid`);let ge;try{ge=(0,ve.decode)(Be.p2s)}catch{throw new Ee.JWEInvalid("Failed to base64url decode the p2s")}return(0,ye.decrypt)(R,pe,Ae,Be.p2c,ge)}case"A128KW":case"A192KW":case"A256KW":{if(Ae===undefined)throw new Ee.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R,pe,Ae)}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{if(Ae===undefined)throw new Ee.JWEInvalid("JWE Encrypted Key missing");if(typeof Be.iv!=="string")throw new Ee.JWEInvalid(`JOSE Header "iv" (Initialization Vector) missing or invalid`);if(typeof Be.tag!=="string")throw new Ee.JWEInvalid(`JOSE Header "tag" (Authentication Tag) missing or invalid`);let he;try{he=(0,ve.decode)(Be.iv)}catch{throw new Ee.JWEInvalid("Failed to base64url decode the iv")}let ge;try{ge=(0,ve.decode)(Be.tag)}catch{throw new Ee.JWEInvalid("Failed to base64url decode the tag")}return(0,Se.unwrap)(R,pe,Ae,he,ge)}default:{throw new Ee.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}}pe["default"]=decryptKeyManagement},33286:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(56083);const ge=Ae(33706);const ye=Ae(66898);const me=Ae(89526);const ve=Ae(80518);const be=Ae(33367);const Ee=Ae(43987);const Ce=Ae(94419);const we=Ae(70465);const _e=Ae(56241);const Ie=Ae(10233);async function encryptKeyManagement(R,pe,Ae,Se,Be={}){let ke;let Oe;let Re;(0,_e.default)(R,Ae,"encrypt");Ae=await(be.default.normalizePublicKey?.(Ae,R))||Ae;switch(R){case"dir":{Re=Ae;break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ge.ecdhAllowed(Ae)){throw new Ce.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime")}const{apu:ye,apv:me}=Be;let{epk:be}=Be;be||=(await ge.generateEpk(Ae)).privateKey;const{x:_e,y:Ie,crv:Qe,kty:xe}=await(0,we.exportJWK)(be);const Pe=await ge.deriveKey(Ae,be,R==="ECDH-ES"?pe:R,R==="ECDH-ES"?(0,Ee.bitLength)(pe):parseInt(R.slice(-5,-2),10),ye,me);Oe={epk:{x:_e,crv:Qe,kty:xe}};if(xe==="EC")Oe.epk.y=Ie;if(ye)Oe.apu=(0,ve.encode)(ye);if(me)Oe.apv=(0,ve.encode)(me);if(R==="ECDH-ES"){Re=Pe;break}Re=Se||(0,Ee.default)(pe);const Te=R.slice(-6);ke=await(0,he.wrap)(Te,Pe,Re);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{Re=Se||(0,Ee.default)(pe);ke=await(0,me.encrypt)(R,Ae,Re);break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{Re=Se||(0,Ee.default)(pe);const{p2c:he,p2s:ge}=Be;({encryptedKey:ke,...Oe}=await(0,ye.encrypt)(R,Ae,Re,he,ge));break}case"A128KW":case"A192KW":case"A256KW":{Re=Se||(0,Ee.default)(pe);ke=await(0,he.wrap)(R,Ae,Re);break}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{Re=Se||(0,Ee.default)(pe);const{iv:he}=Be;({encryptedKey:ke,...Oe}=await(0,Ie.wrap)(R,Ae,Re,he));break}default:{throw new Ce.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}return{cek:Re,encryptedKey:ke,parameters:Oe}}pe["default"]=encryptKeyManagement},74476:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=R=>Math.floor(R.getTime()/1e3)},1146:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.withAlg=void 0;function message(R,pe,...Ae){if(Ae.length>2){const pe=Ae.pop();R+=`one of type ${Ae.join(", ")}, or ${pe}.`}else if(Ae.length===2){R+=`one of type ${Ae[0]} or ${Ae[1]}.`}else{R+=`of type ${Ae[0]}.`}if(pe==null){R+=` Received ${pe}`}else if(typeof pe==="function"&&pe.name){R+=` Received function ${pe.name}`}else if(typeof pe==="object"&&pe!=null){if(pe.constructor?.name){R+=` Received an instance of ${pe.constructor.name}`}}return R}pe["default"]=(R,...pe)=>message("Key must be ",R,...pe);function withAlg(R,pe,...Ae){return message(`Key for the ${R} algorithm must be `,pe,...Ae)}pe.withAlg=withAlg},6063:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const isDisjoint=(...R)=>{const pe=R.filter(Boolean);if(pe.length===0||pe.length===1){return true}let Ae;for(const R of pe){const pe=Object.keys(R);if(!Ae||Ae.size===0){Ae=new Set(pe);continue}for(const R of pe){if(Ae.has(R)){return false}Ae.add(R)}}return true};pe["default"]=isDisjoint},39127:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function isObjectLike(R){return typeof R==="object"&&R!==null}function isObject(R){if(!isObjectLike(R)||Object.prototype.toString.call(R)!=="[object Object]"){return false}if(Object.getPrototypeOf(R)===null){return true}let pe=R;while(Object.getPrototypeOf(pe)!==null){pe=Object.getPrototypeOf(pe)}return Object.getPrototypeOf(R)===pe}pe["default"]=isObject},84630:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(94419);const ge=Ae(75770);function bitLength(R){switch(R){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},7274:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);const ge=Ae(1691);const ye=Ae(74476);const me=Ae(37810);const ve=Ae(39127);const normalizeTyp=R=>R.toLowerCase().replace(/^application\//,"");const checkAudiencePresence=(R,pe)=>{if(typeof R==="string"){return pe.includes(R)}if(Array.isArray(R)){return pe.some(Set.prototype.has.bind(new Set(R)))}return false};pe["default"]=(R,pe,Ae={})=>{let be;try{be=JSON.parse(ge.decoder.decode(pe))}catch{}if(!(0,ve.default)(be)){throw new he.JWTInvalid("JWT Claims Set must be a top-level JSON object")}const{typ:Ee}=Ae;if(Ee&&(typeof R.typ!=="string"||normalizeTyp(R.typ)!==normalizeTyp(Ee))){throw new he.JWTClaimValidationFailed('unexpected "typ" JWT header value',be,"typ","check_failed")}const{requiredClaims:Ce=[],issuer:we,subject:_e,audience:Ie,maxTokenAge:Se}=Ae;const Be=[...Ce];if(Se!==undefined)Be.push("iat");if(Ie!==undefined)Be.push("aud");if(_e!==undefined)Be.push("sub");if(we!==undefined)Be.push("iss");for(const R of new Set(Be.reverse())){if(!(R in be)){throw new he.JWTClaimValidationFailed(`missing required "${R}" claim`,be,R,"missing")}}if(we&&!(Array.isArray(we)?we:[we]).includes(be.iss)){throw new he.JWTClaimValidationFailed('unexpected "iss" claim value',be,"iss","check_failed")}if(_e&&be.sub!==_e){throw new he.JWTClaimValidationFailed('unexpected "sub" claim value',be,"sub","check_failed")}if(Ie&&!checkAudiencePresence(be.aud,typeof Ie==="string"?[Ie]:Ie)){throw new he.JWTClaimValidationFailed('unexpected "aud" claim value',be,"aud","check_failed")}let ke;switch(typeof Ae.clockTolerance){case"string":ke=(0,me.default)(Ae.clockTolerance);break;case"number":ke=Ae.clockTolerance;break;case"undefined":ke=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:Oe}=Ae;const Re=(0,ye.default)(Oe||new Date);if((be.iat!==undefined||Se)&&typeof be.iat!=="number"){throw new he.JWTClaimValidationFailed('"iat" claim must be a number',be,"iat","invalid")}if(be.nbf!==undefined){if(typeof be.nbf!=="number"){throw new he.JWTClaimValidationFailed('"nbf" claim must be a number',be,"nbf","invalid")}if(be.nbf>Re+ke){throw new he.JWTClaimValidationFailed('"nbf" claim timestamp check failed',be,"nbf","check_failed")}}if(be.exp!==undefined){if(typeof be.exp!=="number"){throw new he.JWTClaimValidationFailed('"exp" claim must be a number',be,"exp","invalid")}if(be.exp<=Re-ke){throw new he.JWTExpired('"exp" claim timestamp check failed',be,"exp","check_failed")}}if(Se){const R=Re-be.iat;const pe=typeof Se==="number"?Se:(0,me.default)(Se);if(R-ke>pe){throw new he.JWTExpired('"iat" claim timestamp check failed (too far in the past)',be,"iat","check_failed")}if(R<0-ke){throw new he.JWTClaimValidationFailed('"iat" claim timestamp check failed (it should be in the past)',be,"iat","check_failed")}}return be}},37810:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=60;const he=Ae*60;const ge=he*24;const ye=ge*7;const me=ge*365.25;const ve=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;pe["default"]=R=>{const pe=ve.exec(R);if(!pe||pe[4]&&pe[1]){throw new TypeError("Invalid time period format")}const be=parseFloat(pe[2]);const Ee=pe[3].toLowerCase();let Ce;switch(Ee){case"sec":case"secs":case"second":case"seconds":case"s":Ce=Math.round(be);break;case"minute":case"minutes":case"min":case"mins":case"m":Ce=Math.round(be*Ae);break;case"hour":case"hours":case"hr":case"hrs":case"h":Ce=Math.round(be*he);break;case"day":case"days":case"d":Ce=Math.round(be*ge);break;case"week":case"weeks":case"w":Ce=Math.round(be*ye);break;default:Ce=Math.round(be*me);break}if(pe[1]==="-"||pe[4]==="ago"){return-Ce}return Ce}},55148:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const validateAlgorithms=(R,pe)=>{if(pe!==undefined&&(!Array.isArray(pe)||pe.some((R=>typeof R!=="string")))){throw new TypeError(`"${R}" option must be an array of strings`)}if(!pe){return undefined}return new Set(pe)};pe["default"]=validateAlgorithms},50863:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);function validateCrit(R,pe,Ae,ge,ye){if(ye.crit!==undefined&&ge?.crit===undefined){throw new R('"crit" (Critical) Header Parameter MUST be integrity protected')}if(!ge||ge.crit===undefined){return new Set}if(!Array.isArray(ge.crit)||ge.crit.length===0||ge.crit.some((R=>typeof R!=="string"||R.length===0))){throw new R('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present')}let me;if(Ae!==undefined){me=new Map([...Object.entries(Ae),...pe.entries()])}else{me=pe}for(const pe of ge.crit){if(!me.has(pe)){throw new he.JOSENotSupported(`Extension Header Parameter "${pe}" is not recognized`)}if(ye[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" is missing`)}if(me.get(pe)&&ge[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" MUST be integrity protected`)}}return new Set(ge.crit)}pe["default"]=validateCrit},56083:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(72254);const ge=Ae(6005);const ye=Ae(94419);const me=Ae(1691);const ve=Ae(86852);const be=Ae(73386);const Ee=Ae(62768);const Ce=Ae(1146);const we=Ae(14618);const _e=Ae(17947);function checkKeySize(R,pe){if(R.symmetricKeySize<<3!==parseInt(pe.slice(1,4),10)){throw new TypeError(`Invalid key size for alg: ${pe}`)}}function ensureKeyObject(R,pe,Ae){if((0,Ee.default)(R)){return R}if(R instanceof Uint8Array){return(0,ge.createSecretKey)(R)}if((0,ve.isCryptoKey)(R)){(0,be.checkEncCryptoKey)(R,pe,Ae);return ge.KeyObject.from(R)}throw new TypeError((0,Ce.default)(R,..._e.types,"Uint8Array"))}const wrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,we.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"wrapKey");checkKeySize(Ee,R);const Ce=(0,ge.createCipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(Ce.update(Ae),Ce.final())};pe.wrap=wrap;const unwrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,we.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"unwrapKey");checkKeySize(Ee,R);const Ce=(0,ge.createDecipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(Ce.update(Ae),Ce.final())};pe.unwrap=unwrap},70858:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromX509=pe.fromSPKI=pe.fromPKCS8=pe.toPKCS8=pe.toSPKI=void 0;const he=Ae(6005);const ge=Ae(72254);const ye=Ae(86852);const me=Ae(62768);const ve=Ae(1146);const be=Ae(17947);const genericExport=(R,pe,Ae)=>{let ge;if((0,ye.isCryptoKey)(Ae)){if(!Ae.extractable){throw new TypeError("CryptoKey is not extractable")}ge=he.KeyObject.from(Ae)}else if((0,me.default)(Ae)){ge=Ae}else{throw new TypeError((0,ve.default)(Ae,...be.types))}if(ge.type!==R){throw new TypeError(`key is not a ${R} key`)}return ge.export({format:"pem",type:pe})};const toSPKI=R=>genericExport("public","spki",R);pe.toSPKI=toSPKI;const toPKCS8=R=>genericExport("private","pkcs8",R);pe.toPKCS8=toPKCS8;const fromPKCS8=R=>(0,he.createPrivateKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,""),"base64"),type:"pkcs8",format:"der"});pe.fromPKCS8=fromPKCS8;const fromSPKI=R=>(0,he.createPublicKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,""),"base64"),type:"spki",format:"der"});pe.fromSPKI=fromSPKI;const fromX509=R=>(0,he.createPublicKey)({key:R,type:"spki",format:"pem"});pe.fromX509=fromX509},80518:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=pe.encodeBase64=pe.decodeBase64=void 0;const he=Ae(72254);const ge=Ae(1691);function normalize(R){let pe=R;if(pe instanceof Uint8Array){pe=ge.decoder.decode(pe)}return pe}const encode=R=>he.Buffer.from(R).toString("base64url");pe.encode=encode;const decodeBase64=R=>new Uint8Array(he.Buffer.from(R,"base64"));pe.decodeBase64=decodeBase64;const encodeBase64=R=>he.Buffer.from(R).toString("base64");pe.encodeBase64=encodeBase64;const decode=R=>new Uint8Array(he.Buffer.from(normalize(R),"base64"));pe.decode=decode},24519:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(1691);function cbcTag(R,pe,Ae,ye,me,ve){const be=(0,ge.concat)(R,pe,Ae,(0,ge.uint64be)(R.length<<3));const Ee=(0,he.createHmac)(`sha${ye}`,me);Ee.update(be);return Ee.digest().slice(0,ve>>3)}pe["default"]=cbcTag},4047:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);const ge=Ae(62768);const checkCekLength=(R,pe)=>{let Ae;switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new he.JOSENotSupported(`Content Encryption Algorithm ${R} is not supported either by JOSE or your javascript runtime`)}if(pe instanceof Uint8Array){const R=pe.byteLength<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}if((0,ge.default)(pe)&&pe.type==="secret"){const R=pe.symmetricKeySize<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}throw new TypeError("Invalid Content Encryption Key type")};pe["default"]=checkCekLength},94647:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=(R,pe)=>{const{modulusLength:Ae}=R.asymmetricKeyDetails;if(typeof Ae!=="number"||Ae<2048){throw new TypeError(`${pe} requires key modulusLength to be 2048 bits or larger`)}}},14618:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);let ge;pe["default"]=R=>{ge||=new Set((0,he.getCiphers)());return ge.has(R)}},66137:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(41120);const ye=Ae(4047);const me=Ae(1691);const ve=Ae(94419);const be=Ae(45390);const Ee=Ae(24519);const Ce=Ae(86852);const we=Ae(73386);const _e=Ae(62768);const Ie=Ae(1146);const Se=Ae(14618);const Be=Ae(17947);function cbcDecrypt(R,pe,Ae,ge,ye,Ce){const we=parseInt(R.slice(1,4),10);if((0,_e.default)(pe)){pe=pe.export()}const Ie=pe.subarray(we>>3);const Be=pe.subarray(0,we>>3);const ke=parseInt(R.slice(-3),10);const Oe=`aes-${we}-cbc`;if(!(0,Se.default)(Oe)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Re=(0,Ee.default)(Ce,ge,Ae,ke,Be,we);let Qe;try{Qe=(0,be.default)(ye,Re)}catch{}if(!Qe){throw new ve.JWEDecryptionFailed}let xe;try{const R=(0,he.createDecipheriv)(Oe,Ie,ge);xe=(0,me.concat)(R.update(Ae),R.final())}catch{}if(!xe){throw new ve.JWEDecryptionFailed}return xe}function gcmDecrypt(R,pe,Ae,ge,ye,me){const be=parseInt(R.slice(1,4),10);const Ee=`aes-${be}-gcm`;if(!(0,Se.default)(Ee)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}try{const R=(0,he.createDecipheriv)(Ee,pe,ge,{authTagLength:16});R.setAuthTag(ye);if(me.byteLength){R.setAAD(me,{plaintextLength:Ae.length})}const ve=R.update(Ae);R.final();return ve}catch{throw new ve.JWEDecryptionFailed}}const decrypt=(R,pe,Ae,me,be,Ee)=>{let Se;if((0,Ce.isCryptoKey)(pe)){(0,we.checkEncCryptoKey)(pe,R,"decrypt");Se=he.KeyObject.from(pe)}else if(pe instanceof Uint8Array||(0,_e.default)(pe)){Se=pe}else{throw new TypeError((0,Ie.default)(pe,...Be.types,"Uint8Array"))}if(!me){throw new ve.JWEInvalid("JWE Initialization Vector missing")}if(!be){throw new ve.JWEInvalid("JWE Authentication Tag missing")}(0,ye.default)(R,Se);(0,ge.default)(R,me);switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcDecrypt(R,Se,Ae,me,be,Ee);case"A128GCM":case"A192GCM":case"A256GCM":return gcmDecrypt(R,Se,Ae,me,be,Ee);default:throw new ve.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=decrypt},52355:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const digest=(R,pe)=>(0,he.createHash)(R).update(pe).digest();pe["default"]=digest},54965:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);function dsaDigest(R){switch(R){case"PS256":case"RS256":case"ES256":case"ES256K":return"sha256";case"PS384":case"RS384":case"ES384":return"sha384";case"PS512":case"RS512":case"ES512":return"sha512";case"EdDSA":return undefined;default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=dsaDigest},33706:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ecdhAllowed=pe.generateEpk=pe.deriveKey=void 0;const he=Ae(6005);const ge=Ae(47261);const ye=Ae(99302);const me=Ae(1691);const ve=Ae(94419);const be=Ae(86852);const Ee=Ae(73386);const Ce=Ae(62768);const we=Ae(1146);const _e=Ae(17947);const Ie=(0,ge.promisify)(he.generateKeyPair);async function deriveKey(R,pe,Ae,ge,ye=new Uint8Array(0),ve=new Uint8Array(0)){let Ie;if((0,be.isCryptoKey)(R)){(0,Ee.checkEncCryptoKey)(R,"ECDH");Ie=he.KeyObject.from(R)}else if((0,Ce.default)(R)){Ie=R}else{throw new TypeError((0,we.default)(R,..._e.types))}let Se;if((0,be.isCryptoKey)(pe)){(0,Ee.checkEncCryptoKey)(pe,"ECDH","deriveBits");Se=he.KeyObject.from(pe)}else if((0,Ce.default)(pe)){Se=pe}else{throw new TypeError((0,we.default)(pe,..._e.types))}const Be=(0,me.concat)((0,me.lengthAndInput)(me.encoder.encode(Ae)),(0,me.lengthAndInput)(ye),(0,me.lengthAndInput)(ve),(0,me.uint32be)(ge));const ke=(0,he.diffieHellman)({privateKey:Se,publicKey:Ie});return(0,me.concatKdf)(ke,ge,Be)}pe.deriveKey=deriveKey;async function generateEpk(R){let pe;if((0,be.isCryptoKey)(R)){pe=he.KeyObject.from(R)}else if((0,Ce.default)(R)){pe=R}else{throw new TypeError((0,we.default)(R,..._e.types))}switch(pe.asymmetricKeyType){case"x25519":return Ie("x25519");case"x448":{return Ie("x448")}case"ec":{const R=(0,ye.default)(pe);return Ie("ec",{namedCurve:R})}default:throw new ve.JOSENotSupported("Invalid or unsupported EPK")}}pe.generateEpk=generateEpk;const ecdhAllowed=R=>["P-256","P-384","P-521","X25519","X448"].includes((0,ye.default)(R));pe.ecdhAllowed=ecdhAllowed},76476:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(41120);const ye=Ae(4047);const me=Ae(1691);const ve=Ae(24519);const be=Ae(86852);const Ee=Ae(73386);const Ce=Ae(62768);const we=Ae(1146);const _e=Ae(84630);const Ie=Ae(94419);const Se=Ae(14618);const Be=Ae(17947);function cbcEncrypt(R,pe,Ae,ge,ye){const be=parseInt(R.slice(1,4),10);if((0,Ce.default)(Ae)){Ae=Ae.export()}const Ee=Ae.subarray(be>>3);const we=Ae.subarray(0,be>>3);const _e=`aes-${be}-cbc`;if(!(0,Se.default)(_e)){throw new Ie.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Be=(0,he.createCipheriv)(_e,Ee,ge);const ke=(0,me.concat)(Be.update(pe),Be.final());const Oe=parseInt(R.slice(-3),10);const Re=(0,ve.default)(ye,ge,ke,Oe,we,be);return{ciphertext:ke,tag:Re,iv:ge}}function gcmEncrypt(R,pe,Ae,ge,ye){const me=parseInt(R.slice(1,4),10);const ve=`aes-${me}-gcm`;if(!(0,Se.default)(ve)){throw new Ie.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const be=(0,he.createCipheriv)(ve,Ae,ge,{authTagLength:16});if(ye.byteLength){be.setAAD(ye,{plaintextLength:pe.length})}const Ee=be.update(pe);be.final();const Ce=be.getAuthTag();return{ciphertext:Ee,tag:Ce,iv:ge}}const encrypt=(R,pe,Ae,me,ve)=>{let Se;if((0,be.isCryptoKey)(Ae)){(0,Ee.checkEncCryptoKey)(Ae,R,"encrypt");Se=he.KeyObject.from(Ae)}else if(Ae instanceof Uint8Array||(0,Ce.default)(Ae)){Se=Ae}else{throw new TypeError((0,we.default)(Ae,...Be.types,"Uint8Array"))}(0,ye.default)(R,Se);if(me){(0,ge.default)(R,me)}else{me=(0,_e.default)(R)}switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcEncrypt(R,pe,Se,me,ve);case"A128GCM":case"A192GCM":case"A256GCM":return gcmEncrypt(R,pe,Se,me,ve);default:throw new Ie.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=encrypt},43650:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(88849);const ge=Ae(22286);const ye=Ae(15673);const me=Ae(94419);const ve=Ae(1691);const fetchJwks=async(R,pe,Ae)=>{let be;switch(R.protocol){case"https:":be=ge.get;break;case"http:":be=he.get;break;default:throw new TypeError("Unsupported URL protocol.")}const{agent:Ee,headers:Ce}=Ae;const we=be(R.href,{agent:Ee,timeout:pe,headers:Ce});const[_e]=await Promise.race([(0,ye.once)(we,"response"),(0,ye.once)(we,"timeout")]);if(!_e){we.destroy();throw new me.JWKSTimeout}if(_e.statusCode!==200){throw new me.JOSEError("Expected 200 OK from the JSON Web Key Set HTTP response")}const Ie=[];for await(const R of _e){Ie.push(R)}try{return JSON.parse(ve.decoder.decode((0,ve.concat)(...Ie)))}catch{throw new me.JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON")}};pe["default"]=fetchJwks},29378:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=pe.generateSecret=void 0;const he=Ae(6005);const ge=Ae(47261);const ye=Ae(75770);const me=Ae(94419);const ve=(0,ge.promisify)(he.generateKeyPair);async function generateSecret(R,pe){let Ae;switch(R){case"HS256":case"HS384":case"HS512":case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128KW":case"A192KW":case"A256KW":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new me.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return(0,he.createSecretKey)((0,ye.default)(new Uint8Array(Ae>>3)))}pe.generateSecret=generateSecret;async function generateKeyPair(R,pe){switch(R){case"RS256":case"RS384":case"RS512":case"PS256":case"PS384":case"PS512":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":case"RSA1_5":{const R=pe?.modulusLength??2048;if(typeof R!=="number"||R<2048){throw new me.JOSENotSupported("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used")}const Ae=await ve("rsa",{modulusLength:R,publicExponent:65537});return Ae}case"ES256":return ve("ec",{namedCurve:"P-256"});case"ES256K":return ve("ec",{namedCurve:"secp256k1"});case"ES384":return ve("ec",{namedCurve:"P-384"});case"ES512":return ve("ec",{namedCurve:"P-521"});case"EdDSA":{switch(pe?.crv){case undefined:case"Ed25519":return ve("ed25519");case"Ed448":return ve("ed448");default:throw new me.JOSENotSupported("Invalid or unsupported crv option provided, supported values are Ed25519 and Ed448")}}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{const R=pe?.crv??"P-256";switch(R){case undefined:case"P-256":case"P-384":case"P-521":return ve("ec",{namedCurve:R});case"X25519":return ve("x25519");case"X448":return ve("x448");default:throw new me.JOSENotSupported("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}}default:throw new me.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}}pe.generateKeyPair=generateKeyPair},99302:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.weakMap=void 0;const he=Ae(6005);const ge=Ae(94419);const ye=Ae(86852);const me=Ae(62768);const ve=Ae(1146);const be=Ae(17947);pe.weakMap=new WeakMap;const namedCurveToJOSE=R=>{switch(R){case"prime256v1":return"P-256";case"secp384r1":return"P-384";case"secp521r1":return"P-521";case"secp256k1":return"secp256k1";default:throw new ge.JOSENotSupported("Unsupported key curve for this operation")}};const getNamedCurve=(R,pe)=>{let Ae;if((0,ye.isCryptoKey)(R)){Ae=he.KeyObject.from(R)}else if((0,me.default)(R)){Ae=R}else{throw new TypeError((0,ve.default)(R,...be.types))}if(Ae.type==="secret"){throw new TypeError('only "private" or "public" type keys can be used for this operation')}switch(Ae.asymmetricKeyType){case"ed25519":case"ed448":return`Ed${Ae.asymmetricKeyType.slice(2)}`;case"x25519":case"x448":return`X${Ae.asymmetricKeyType.slice(1)}`;case"ec":{const R=Ae.asymmetricKeyDetails.namedCurve;if(pe){return R}return namedCurveToJOSE(R)}default:throw new TypeError("Invalid asymmetric key type for this operation")}};pe["default"]=getNamedCurve},53170:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(86852);const ye=Ae(73386);const me=Ae(1146);const ve=Ae(17947);function getSignVerifyKey(R,pe,Ae){if(pe instanceof Uint8Array){if(!R.startsWith("HS")){throw new TypeError((0,me.default)(pe,...ve.types))}return(0,he.createSecretKey)(pe)}if(pe instanceof he.KeyObject){return pe}if((0,ge.isCryptoKey)(pe)){(0,ye.checkSigCryptoKey)(pe,R,Ae);return he.KeyObject.from(pe)}throw new TypeError((0,me.default)(pe,...ve.types,"Uint8Array"))}pe["default"]=getSignVerifyKey},13811:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);function hmacDigest(R){switch(R){case"HS256":return"sha256";case"HS384":return"sha384";case"HS512":return"sha512";default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=hmacDigest},17947:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.types=void 0;const he=Ae(86852);const ge=Ae(62768);pe["default"]=R=>(0,ge.default)(R)||(0,he.isCryptoKey)(R);const ye=["KeyObject"];pe.types=ye;if(globalThis.CryptoKey||he.default?.CryptoKey){ye.push("CryptoKey")}},62768:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(47261);pe["default"]=R=>he.types.isKeyObject(R)},42659:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const parse=R=>(R.d?he.createPrivateKey:he.createPublicKey)({format:"jwk",key:R});pe["default"]=parse},40997:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(80518);const ye=Ae(94419);const me=Ae(86852);const ve=Ae(62768);const be=Ae(1146);const Ee=Ae(17947);const keyToJWK=R=>{let pe;if((0,me.isCryptoKey)(R)){if(!R.extractable){throw new TypeError("CryptoKey is not extractable")}pe=he.KeyObject.from(R)}else if((0,ve.default)(R)){pe=R}else if(R instanceof Uint8Array){return{kty:"oct",k:(0,ge.encode)(R)}}else{throw new TypeError((0,be.default)(R,...Ee.types,"Uint8Array"))}if(pe.type!=="secret"&&!["rsa","ec","ed25519","x25519","ed448","x448"].includes(pe.asymmetricKeyType)){throw new ye.JOSENotSupported("Unsupported key asymmetricKeyType")}return pe.export({format:"jwk"})};pe["default"]=keyToJWK},52413:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(99302);const ye=Ae(94419);const me=Ae(94647);const ve={padding:he.constants.RSA_PKCS1_PSS_PADDING,saltLength:he.constants.RSA_PSS_SALTLEN_DIGEST};const be=new Map([["ES256","P-256"],["ES256K","secp256k1"],["ES384","P-384"],["ES512","P-521"]]);function keyForCrypto(R,pe){switch(R){case"EdDSA":if(!["ed25519","ed448"].includes(pe.asymmetricKeyType)){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ed25519 or ed448")}return pe;case"RS256":case"RS384":case"RS512":if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,me.default)(pe,R);return pe;case"PS256":case"PS384":case"PS512":if(pe.asymmetricKeyType==="rsa-pss"){const{hashAlgorithm:Ae,mgf1HashAlgorithm:he,saltLength:ge}=pe.asymmetricKeyDetails;const ye=parseInt(R.slice(-3),10);if(Ae!==undefined&&(Ae!==`sha${ye}`||he!==Ae)){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${R}`)}if(ge!==undefined&&ge>ye>>3){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${R}`)}}else if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa or rsa-pss")}(0,me.default)(pe,R);return{key:pe,...ve};case"ES256":case"ES256K":case"ES384":case"ES512":{if(pe.asymmetricKeyType!=="ec"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ec")}const Ae=(0,ge.default)(pe);const he=be.get(R);if(Ae!==he){throw new TypeError(`Invalid key curve for the algorithm, its curve must be ${he}, got ${Ae}`)}return{dsaEncoding:"ieee-p1363",key:pe}}default:throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=keyForCrypto},33367:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]={}},66898:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(47261);const ge=Ae(6005);const ye=Ae(75770);const me=Ae(1691);const ve=Ae(80518);const be=Ae(56083);const Ee=Ae(83499);const Ce=Ae(86852);const we=Ae(73386);const _e=Ae(62768);const Ie=Ae(1146);const Se=Ae(17947);const Be=(0,he.promisify)(ge.pbkdf2);function getPassword(R,pe){if((0,_e.default)(R)){return R.export()}if(R instanceof Uint8Array){return R}if((0,Ce.isCryptoKey)(R)){(0,we.checkEncCryptoKey)(R,pe,"deriveBits","deriveKey");return ge.KeyObject.from(R).export()}throw new TypeError((0,Ie.default)(R,...Se.types,"Uint8Array"))}const encrypt=async(R,pe,Ae,he=2048,ge=(0,ye.default)(new Uint8Array(16)))=>{(0,Ee.default)(ge);const Ce=(0,me.p2s)(R,ge);const we=parseInt(R.slice(13,16),10)>>3;const _e=getPassword(pe,R);const Ie=await Be(_e,Ce,he,we,`sha${R.slice(8,11)}`);const Se=await(0,be.wrap)(R.slice(-6),Ie,Ae);return{encryptedKey:Se,p2c:he,p2s:(0,ve.encode)(ge)}};pe.encrypt=encrypt;const decrypt=async(R,pe,Ae,he,ge)=>{(0,Ee.default)(ge);const ye=(0,me.p2s)(R,ge);const ve=parseInt(R.slice(13,16),10)>>3;const Ce=getPassword(pe,R);const we=await Be(Ce,ye,he,ve,`sha${R.slice(8,11)}`);return(0,be.unwrap)(R.slice(-6),we,Ae)};pe.decrypt=decrypt},75770:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=Ae(6005);Object.defineProperty(pe,"default",{enumerable:true,get:function(){return he.randomFillSync}})},89526:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(6005);const ge=Ae(47261);const ye=Ae(94647);const me=Ae(86852);const ve=Ae(73386);const be=Ae(62768);const Ee=Ae(1146);const Ce=Ae(17947);const checkKey=(R,pe)=>{if(R.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,ye.default)(R,pe)};const we=(0,ge.deprecate)((()=>he.constants.RSA_PKCS1_PADDING),'The RSA1_5 "alg" (JWE Algorithm) is deprecated and will be removed in the next major revision.');const resolvePadding=R=>{switch(R){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return he.constants.RSA_PKCS1_OAEP_PADDING;case"RSA1_5":return we();default:return undefined}};const resolveOaepHash=R=>{switch(R){case"RSA-OAEP":return"sha1";case"RSA-OAEP-256":return"sha256";case"RSA-OAEP-384":return"sha384";case"RSA-OAEP-512":return"sha512";default:return undefined}};function ensureKeyObject(R,pe,...Ae){if((0,be.default)(R)){return R}if((0,me.isCryptoKey)(R)){(0,ve.checkEncCryptoKey)(R,pe,...Ae);return he.KeyObject.from(R)}throw new TypeError((0,Ee.default)(R,...Ce.types))}const encrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"wrapKey","encrypt");checkKey(me,R);return(0,he.publicEncrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.encrypt=encrypt;const decrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"unwrapKey","decrypt");checkKey(me,R);return(0,he.privateDecrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.decrypt=decrypt},41622:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]="node:crypto"},69935:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(47261);const ye=Ae(54965);const me=Ae(13811);const ve=Ae(52413);const be=Ae(53170);const Ee=(0,ge.promisify)(he.sign);const sign=async(R,pe,Ae)=>{const ge=(0,be.default)(R,pe,"sign");if(R.startsWith("HS")){const pe=he.createHmac((0,me.default)(R),ge);pe.update(Ae);return pe.digest()}return Ee((0,ye.default)(R),Ae,(0,ve.default)(R,ge))};pe["default"]=sign},45390:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=he.timingSafeEqual;pe["default"]=ge},3569:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(47261);const ye=Ae(54965);const me=Ae(52413);const ve=Ae(69935);const be=Ae(53170);const Ee=(0,ge.promisify)(he.verify);const verify=async(R,pe,Ae,ge)=>{const Ce=(0,be.default)(R,pe,"verify");if(R.startsWith("HS")){const pe=await(0,ve.default)(R,Ce,ge);const ye=Ae;try{return he.timingSafeEqual(ye,pe)}catch{return false}}const we=(0,ye.default)(R);const _e=(0,me.default)(R,Ce);try{return await Ee(we,ge,_e,Ae)}catch{return false}};pe["default"]=verify},86852:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isCryptoKey=void 0;const he=Ae(6005);const ge=Ae(47261);const ye=he.webcrypto;pe["default"]=ye;const isCryptoKey=R=>ge.types.isCryptoKey(R);pe.isCryptoKey=isCryptoKey},63238:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=void 0;const he=Ae(80518);pe.encode=he.encode;pe.decode=he.decode},65611:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeJwt=void 0;const he=Ae(63238);const ge=Ae(1691);const ye=Ae(39127);const me=Ae(94419);function decodeJwt(R){if(typeof R!=="string")throw new me.JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");const{1:pe,length:Ae}=R.split(".");if(Ae===5)throw new me.JWTInvalid("Only JWTs using Compact JWS serialization can be decoded");if(Ae!==3)throw new me.JWTInvalid("Invalid JWT");if(!pe)throw new me.JWTInvalid("JWTs must contain a payload");let ve;try{ve=(0,he.decode)(pe)}catch{throw new me.JWTInvalid("Failed to base64url decode the payload")}let be;try{be=JSON.parse(ge.decoder.decode(ve))}catch{throw new me.JWTInvalid("Failed to parse the decoded payload as JSON")}if(!(0,ye.default)(be))throw new me.JWTInvalid("Invalid JWT Claims Set");return be}pe.decodeJwt=decodeJwt},33991:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeProtectedHeader=void 0;const he=Ae(63238);const ge=Ae(1691);const ye=Ae(39127);function decodeProtectedHeader(R){let pe;if(typeof R==="string"){const Ae=R.split(".");if(Ae.length===3||Ae.length===5){[pe]=Ae}}else if(typeof R==="object"&&R){if("protected"in R){pe=R.protected}else{throw new TypeError("Token does not contain a Protected Header")}}try{if(typeof pe!=="string"||!pe){throw new Error}const R=JSON.parse(ge.decoder.decode((0,he.decode)(pe)));if(!(0,ye.default)(R)){throw new Error}return R}catch{throw new TypeError("Invalid Token or Protected Header formatting")}}pe.decodeProtectedHeader=decodeProtectedHeader},94419:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.JWSSignatureVerificationFailed=pe.JWKSTimeout=pe.JWKSMultipleMatchingKeys=pe.JWKSNoMatchingKey=pe.JWKSInvalid=pe.JWKInvalid=pe.JWTInvalid=pe.JWSInvalid=pe.JWEInvalid=pe.JWEDecryptionFailed=pe.JOSENotSupported=pe.JOSEAlgNotAllowed=pe.JWTExpired=pe.JWTClaimValidationFailed=pe.JOSEError=void 0;class JOSEError extends Error{static get code(){return"ERR_JOSE_GENERIC"}code="ERR_JOSE_GENERIC";constructor(R){super(R);this.name=this.constructor.name;Error.captureStackTrace?.(this,this.constructor)}}pe.JOSEError=JOSEError;class JWTClaimValidationFailed extends JOSEError{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}code="ERR_JWT_CLAIM_VALIDATION_FAILED";claim;reason;payload;constructor(R,pe,Ae="unspecified",he="unspecified"){super(R);this.claim=Ae;this.reason=he;this.payload=pe}}pe.JWTClaimValidationFailed=JWTClaimValidationFailed;class JWTExpired extends JOSEError{static get code(){return"ERR_JWT_EXPIRED"}code="ERR_JWT_EXPIRED";claim;reason;payload;constructor(R,pe,Ae="unspecified",he="unspecified"){super(R);this.claim=Ae;this.reason=he;this.payload=pe}}pe.JWTExpired=JWTExpired;class JOSEAlgNotAllowed extends JOSEError{static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}code="ERR_JOSE_ALG_NOT_ALLOWED"}pe.JOSEAlgNotAllowed=JOSEAlgNotAllowed;class JOSENotSupported extends JOSEError{static get code(){return"ERR_JOSE_NOT_SUPPORTED"}code="ERR_JOSE_NOT_SUPPORTED"}pe.JOSENotSupported=JOSENotSupported;class JWEDecryptionFailed extends JOSEError{static get code(){return"ERR_JWE_DECRYPTION_FAILED"}code="ERR_JWE_DECRYPTION_FAILED";message="decryption operation failed"}pe.JWEDecryptionFailed=JWEDecryptionFailed;class JWEInvalid extends JOSEError{static get code(){return"ERR_JWE_INVALID"}code="ERR_JWE_INVALID"}pe.JWEInvalid=JWEInvalid;class JWSInvalid extends JOSEError{static get code(){return"ERR_JWS_INVALID"}code="ERR_JWS_INVALID"}pe.JWSInvalid=JWSInvalid;class JWTInvalid extends JOSEError{static get code(){return"ERR_JWT_INVALID"}code="ERR_JWT_INVALID"}pe.JWTInvalid=JWTInvalid;class JWKInvalid extends JOSEError{static get code(){return"ERR_JWK_INVALID"}code="ERR_JWK_INVALID"}pe.JWKInvalid=JWKInvalid;class JWKSInvalid extends JOSEError{static get code(){return"ERR_JWKS_INVALID"}code="ERR_JWKS_INVALID"}pe.JWKSInvalid=JWKSInvalid;class JWKSNoMatchingKey extends JOSEError{static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}code="ERR_JWKS_NO_MATCHING_KEY";message="no applicable key found in the JSON Web Key Set"}pe.JWKSNoMatchingKey=JWKSNoMatchingKey;class JWKSMultipleMatchingKeys extends JOSEError{[Symbol.asyncIterator];static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";message="multiple matching keys found in the JSON Web Key Set"}pe.JWKSMultipleMatchingKeys=JWKSMultipleMatchingKeys;class JWKSTimeout extends JOSEError{static get code(){return"ERR_JWKS_TIMEOUT"}code="ERR_JWKS_TIMEOUT";message="request timed out"}pe.JWKSTimeout=JWKSTimeout;class JWSSignatureVerificationFailed extends JOSEError{static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";message="signature verification failed"}pe.JWSSignatureVerificationFailed=JWSSignatureVerificationFailed},31173:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(41622);pe["default"]=he.default},11017:(R,pe,Ae)=>{"use strict";var he=Ae(83083);R.exports=api;function api(R,pe,Ae){if(arguments.length===3){return api.set(R,pe,Ae)}if(arguments.length===2){return api.get(R,pe)}var he=api.bind(api,R);for(var ge in api){if(api.hasOwnProperty(ge)){he[ge]=api[ge].bind(he,R)}}return he}api.get=function get(R,pe){var Ae=Array.isArray(pe)?pe:api.parse(pe);for(var he=0;he{"use strict";var pe=R.exports=function(R,pe,Ae){if(typeof pe=="function"){Ae=pe;pe={}}Ae=pe.cb||Ae;var he=typeof Ae=="function"?Ae:Ae.pre||function(){};var ge=Ae.post||function(){};_traverse(pe,he,ge,R,"",R)};pe.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};pe.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};pe.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};pe.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(R,Ae,he,ge,ye,me,ve,be,Ee,Ce){if(ge&&typeof ge=="object"&&!Array.isArray(ge)){Ae(ge,ye,me,ve,be,Ee,Ce);for(var we in ge){var _e=ge[we];if(Array.isArray(_e)){if(we in pe.arrayKeywords){for(var Ie=0;Ie<_e.length;Ie++)_traverse(R,Ae,he,_e[Ie],ye+"/"+we+"/"+Ie,me,ye,we,ge,Ie)}}else if(we in pe.propsKeywords){if(_e&&typeof _e=="object"){for(var Se in _e)_traverse(R,Ae,he,_e[Se],ye+"/"+we+"/"+escapeJsonPtr(Se),me,ye,we,ge,Se)}}else if(we in pe.keywords||R.allKeys&&!(we in pe.skipKeywords)){_traverse(R,Ae,he,_e,ye+"/"+we,me,ye,we,ge)}}he(ge,ye,me,ve,be,Ee,Ce)}}function escapeJsonPtr(R){return R.replace(/~/g,"~0").replace(/\//g,"~1")}},70756:(R,pe,Ae)=>{"use strict";const{isArray:he,isObject:ge,isString:ye}=Ae(86891);const{asArray:me}=Ae(69450);const{prependBase:ve}=Ae(40651);const be=Ae(11625);const Ee=Ae(7446);const Ce=10;R.exports=class ContextResolver{constructor({sharedCache:R}){this.perOpCache=new Map;this.sharedCache=R}async resolve({activeCtx:R,context:pe,documentLoader:Ae,base:ve,cycles:be=new Set}){if(pe&&ge(pe)&&pe["@context"]){pe=pe["@context"]}pe=me(pe);const Ce=[];for(const me of pe){if(ye(me)){let pe=this._get(me);if(!pe){pe=await this._resolveRemoteContext({activeCtx:R,url:me,documentLoader:Ae,base:ve,cycles:be})}if(he(pe)){Ce.push(...pe)}else{Ce.push(pe)}continue}if(me===null){Ce.push(new Ee({document:null}));continue}if(!ge(me)){_throwInvalidLocalContext(pe)}const we=JSON.stringify(me);let _e=this._get(we);if(!_e){_e=new Ee({document:me});this._cacheResolvedContext({key:we,resolved:_e,tag:"static"})}Ce.push(_e)}return Ce}_get(R){let pe=this.perOpCache.get(R);if(!pe){const Ae=this.sharedCache.get(R);if(Ae){pe=Ae.get("static");if(pe){this.perOpCache.set(R,pe)}}}return pe}_cacheResolvedContext({key:R,resolved:pe,tag:Ae}){this.perOpCache.set(R,pe);if(Ae!==undefined){let he=this.sharedCache.get(R);if(!he){he=new Map;this.sharedCache.set(R,he)}he.set(Ae,pe)}return pe}async _resolveRemoteContext({activeCtx:R,url:pe,documentLoader:Ae,base:he,cycles:ge}){pe=ve(he,pe);const{context:ye,remoteDoc:me}=await this._fetchContext({activeCtx:R,url:pe,documentLoader:Ae,cycles:ge});he=me.documentUrl||pe;_resolveContextUrls({context:ye,base:he});const be=await this.resolve({activeCtx:R,context:ye,documentLoader:Ae,base:he,cycles:ge});this._cacheResolvedContext({key:pe,resolved:be,tag:me.tag});return be}async _fetchContext({activeCtx:R,url:pe,documentLoader:Ae,cycles:me}){if(me.size>Ce){throw new be("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:R.processingMode==="json-ld-1.0"?"loading remote context failed":"context overflow",max:Ce})}if(me.has(pe)){throw new be("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:R.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:pe})}me.add(pe);let ve;let Ee;try{Ee=await Ae(pe);ve=Ee.document||null;if(ye(ve)){ve=JSON.parse(ve)}}catch(R){throw new be("Dereferencing a URL did not result in a valid JSON-LD object. "+"Possible causes are an inaccessible URL perhaps due to "+"a same-origin policy (ensure the server uses CORS if you are "+"using client-side JavaScript), too many redirects, a "+"non-JSON response, or more than one HTTP Link Header was "+"provided for a remote context.","jsonld.InvalidUrl",{code:"loading remote context failed",url:pe,cause:R})}if(!ge(ve)){throw new be("Dereferencing a URL did not result in a JSON object. The "+"response was valid JSON, but it was not a JSON object.","jsonld.InvalidUrl",{code:"invalid remote context",url:pe})}if(!("@context"in ve)){ve={"@context":{}}}else{ve={"@context":ve["@context"]}}if(Ee.contextUrl){if(!he(ve["@context"])){ve["@context"]=[ve["@context"]]}ve["@context"].push(Ee.contextUrl)}return{context:ve,remoteDoc:Ee}}};function _throwInvalidLocalContext(R){throw new be("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:R})}function _resolveContextUrls({context:R,base:pe}){if(!R){return}const Ae=R["@context"];if(ye(Ae)){R["@context"]=ve(pe,Ae);return}if(he(Ae)){for(let R=0;R{"use strict";R.exports=class JsonLdError extends Error{constructor(R="An unspecified JSON-LD error occurred.",pe="jsonld.Error",Ae={}){super(R);this.name=pe;this.message=R;this.details=Ae}}},21677:R=>{"use strict";R.exports=R=>{class JsonLdProcessor{toString(){return"[object JsonLdProcessor]"}}Object.defineProperty(JsonLdProcessor,"prototype",{writable:false,enumerable:false});Object.defineProperty(JsonLdProcessor.prototype,"constructor",{writable:true,enumerable:false,configurable:true,value:JsonLdProcessor});JsonLdProcessor.compact=function(pe,Ae){if(arguments.length<2){return Promise.reject(new TypeError("Could not compact, too few arguments."))}return R.compact(pe,Ae)};JsonLdProcessor.expand=function(pe){if(arguments.length<1){return Promise.reject(new TypeError("Could not expand, too few arguments."))}return R.expand(pe)};JsonLdProcessor.flatten=function(pe){if(arguments.length<1){return Promise.reject(new TypeError("Could not flatten, too few arguments."))}return R.flatten(pe)};return JsonLdProcessor}},13611:(R,pe,Ae)=>{"use strict";R.exports=Ae(43).NQuads},99241:R=>{"use strict";R.exports=class RequestQueue{constructor(){this._requests={}}wrapLoader(R){const pe=this;pe._loader=R;return function(){return pe.add.apply(pe,arguments)}}async add(R){let pe=this._requests[R];if(pe){return Promise.resolve(pe)}pe=this._requests[R]=this._loader(R);try{return await pe}finally{delete this._requests[R]}}}},7446:(R,pe,Ae)=>{"use strict";const he=Ae(51370);const ge=10;R.exports=class ResolvedContext{constructor({document:R}){this.document=R;this.cache=new he({max:ge})}getProcessed(R){return this.cache.get(R)}setProcessed(R,pe){this.cache.set(R,pe)}}},63073:(R,pe,Ae)=>{"use strict";const he=Ae(11625);const{isArray:ge,isObject:ye,isString:me,isUndefined:ve}=Ae(86891);const{isList:be,isValue:Ee,isGraph:Ce,isSimpleGraph:we,isSubjectReference:_e}=Ae(13631);const{expandIri:Ie,getContextValue:Se,isKeyword:Be,process:ke,processingMode:Oe}=Ae(41866);const{removeBase:Re,prependBase:Qe}=Ae(40651);const{REGEX_KEYWORD:xe,addValue:Pe,asArray:Te,compareShortestLeast:De}=Ae(69450);const Ne={};R.exports=Ne;Ne.compact=async({activeCtx:R,activeProperty:pe=null,element:Ae,options:Ie={}})=>{if(ge(Ae)){let he=[];for(let ge=0;ge1){Me=Array.from(Me).sort()}const je=R;for(const pe of Me){const Ae=Ne.compactIri({activeCtx:je,iri:pe,relativeTo:{vocab:true}});const he=Se(xe,Ae,"@context");if(!ve(he)){R=await ke({activeCtx:R,localCtx:he,options:Ie,propagate:false})}}const Fe=Object.keys(Ae).sort();for(const ve of Fe){const _e=Ae[ve];if(ve==="@id"){let pe=Te(_e).map((pe=>Ne.compactIri({activeCtx:R,iri:pe,relativeTo:{vocab:false},base:Ie.base})));if(pe.length===1){pe=pe[0]}const Ae=Ne.compactIri({activeCtx:R,iri:"@id",relativeTo:{vocab:true}});Qe[Ae]=pe;continue}if(ve==="@type"){let pe=Te(_e).map((R=>Ne.compactIri({activeCtx:xe,iri:R,relativeTo:{vocab:true}})));if(pe.length===1){pe=pe[0]}const Ae=Ne.compactIri({activeCtx:R,iri:"@type",relativeTo:{vocab:true}});const he=Se(R,Ae,"@container")||[];const ye=he.includes("@set")&&Oe(R,1.1);const me=ye||ge(pe)&&_e.length===0;Pe(Qe,Ae,pe,{propertyIsArray:me});continue}if(ve==="@reverse"){const pe=await Ne.compact({activeCtx:R,activeProperty:"@reverse",element:_e,options:Ie});for(const Ae in pe){if(R.mappings.has(Ae)&&R.mappings.get(Ae).reverse){const he=pe[Ae];const ge=Se(R,Ae,"@container")||[];const ye=ge.includes("@set")||!Ie.compactArrays;Pe(Qe,Ae,he,{propertyIsArray:ye});delete pe[Ae]}}if(Object.keys(pe).length>0){const Ae=Ne.compactIri({activeCtx:R,iri:ve,relativeTo:{vocab:true}});Pe(Qe,Ae,pe)}continue}if(ve==="@preserve"){const Ae=await Ne.compact({activeCtx:R,activeProperty:pe,element:_e,options:Ie});if(!(ge(Ae)&&Ae.length===0)){Pe(Qe,ve,Ae)}continue}if(ve==="@index"){const Ae=Se(R,pe,"@container")||[];if(Ae.includes("@index")){continue}const he=Ne.compactIri({activeCtx:R,iri:ve,relativeTo:{vocab:true}});Pe(Qe,he,_e);continue}if(ve!=="@graph"&&ve!=="@list"&&ve!=="@included"&&Be(ve)){const pe=Ne.compactIri({activeCtx:R,iri:ve,relativeTo:{vocab:true}});Pe(Qe,pe,_e);continue}if(!ge(_e)){throw new he("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError")}if(_e.length===0){const pe=Ne.compactIri({activeCtx:R,iri:ve,value:_e,relativeTo:{vocab:true},reverse:Re});const Ae=R.mappings.has(pe)?R.mappings.get(pe)["@nest"]:null;let he=Qe;if(Ae){_checkNestProperty(R,Ae,Ie);if(!ye(Qe[Ae])){Qe[Ae]={}}he=Qe[Ae]}Pe(he,pe,_e,{propertyIsArray:true})}for(const pe of _e){const Ae=Ne.compactIri({activeCtx:R,iri:ve,value:pe,relativeTo:{vocab:true},reverse:Re});const he=R.mappings.has(Ae)?R.mappings.get(Ae)["@nest"]:null;let _e=Qe;if(he){_checkNestProperty(R,he,Ie);if(!ye(Qe[he])){Qe[he]={}}_e=Qe[he]}const Be=Se(R,Ae,"@container")||[];const ke=Ce(pe);const Oe=be(pe);let xe;if(Oe){xe=pe["@list"]}else if(ke){xe=pe["@graph"]}let De=await Ne.compact({activeCtx:R,activeProperty:Ae,element:Oe||ke?xe:pe,options:Ie});if(Oe){if(!ge(De)){De=[De]}if(!Be.includes("@list")){De={[Ne.compactIri({activeCtx:R,iri:"@list",relativeTo:{vocab:true}})]:De};if("@index"in pe){De[Ne.compactIri({activeCtx:R,iri:"@index",relativeTo:{vocab:true}})]=pe["@index"]}}else{Pe(_e,Ae,De,{valueIsArray:true,allowDuplicate:true});continue}}if(ke){if(Be.includes("@graph")&&(Be.includes("@id")||Be.includes("@index")&&we(pe))){let he;if(_e.hasOwnProperty(Ae)){he=_e[Ae]}else{_e[Ae]=he={}}const ge=(Be.includes("@id")?pe["@id"]:pe["@index"])||Ne.compactIri({activeCtx:R,iri:"@none",relativeTo:{vocab:true}});Pe(he,ge,De,{propertyIsArray:!Ie.compactArrays||Be.includes("@set")})}else if(Be.includes("@graph")&&we(pe)){if(ge(De)&&De.length>1){De={"@included":De}}Pe(_e,Ae,De,{propertyIsArray:!Ie.compactArrays||Be.includes("@set")})}else{if(ge(De)&&De.length===1&&Ie.compactArrays){De=De[0]}De={[Ne.compactIri({activeCtx:R,iri:"@graph",relativeTo:{vocab:true}})]:De};if("@id"in pe){De[Ne.compactIri({activeCtx:R,iri:"@id",relativeTo:{vocab:true}})]=pe["@id"]}if("@index"in pe){De[Ne.compactIri({activeCtx:R,iri:"@index",relativeTo:{vocab:true}})]=pe["@index"]}Pe(_e,Ae,De,{propertyIsArray:!Ie.compactArrays||Be.includes("@set")})}}else if(Be.includes("@language")||Be.includes("@index")||Be.includes("@id")||Be.includes("@type")){let he;if(_e.hasOwnProperty(Ae)){he=_e[Ae]}else{_e[Ae]=he={}}let ge;if(Be.includes("@language")){if(Ee(De)){De=De["@value"]}ge=pe["@language"]}else if(Be.includes("@index")){const he=Se(R,Ae,"@index")||"@index";const ye=Ne.compactIri({activeCtx:R,iri:he,relativeTo:{vocab:true}});if(he==="@index"){ge=pe["@index"];delete De[ye]}else{let R;[ge,...R]=Te(De[he]||[]);if(!me(ge)){ge=null}else{switch(R.length){case 0:delete De[he];break;case 1:De[he]=R[0];break;default:De[he]=R;break}}}}else if(Be.includes("@id")){const pe=Ne.compactIri({activeCtx:R,iri:"@id",relativeTo:{vocab:true}});ge=De[pe];delete De[pe]}else if(Be.includes("@type")){const he=Ne.compactIri({activeCtx:R,iri:"@type",relativeTo:{vocab:true}});let ye;[ge,...ye]=Te(De[he]||[]);switch(ye.length){case 0:delete De[he];break;case 1:De[he]=ye[0];break;default:De[he]=ye;break}if(Object.keys(De).length===1&&"@id"in pe){De=await Ne.compact({activeCtx:R,activeProperty:Ae,element:{"@id":pe["@id"]},options:Ie})}}if(!ge){ge=Ne.compactIri({activeCtx:R,iri:"@none",relativeTo:{vocab:true}})}Pe(he,ge,De,{propertyIsArray:Be.includes("@set")})}else{const R=!Ie.compactArrays||Be.includes("@set")||Be.includes("@list")||ge(De)&&De.length===0||ve==="@list"||ve==="@graph";Pe(_e,Ae,De,{propertyIsArray:R})}}}return Qe}return Ae};Ne.compactIri=({activeCtx:R,iri:pe,value:Ae=null,relativeTo:ge={vocab:false},reverse:me=false,base:ve=null})=>{if(pe===null){return pe}if(R.isPropertyTermScoped&&R.previousContext){R=R.previousContext}const we=R.getInverse();if(Be(pe)&&pe in we&&"@none"in we[pe]&&"@type"in we[pe]["@none"]&&"@none"in we[pe]["@none"]["@type"]){return we[pe]["@none"]["@type"]["@none"]}if(ge.vocab&&pe in we){const he=R["@language"]||"@none";const ge=[];if(ye(Ae)&&"@index"in Ae&&!("@graph"in Ae)){ge.push("@index","@index@set")}if(ye(Ae)&&"@preserve"in Ae){Ae=Ae["@preserve"][0]}if(Ce(Ae)){if("@index"in Ae){ge.push("@graph@index","@graph@index@set","@index","@index@set")}if("@id"in Ae){ge.push("@graph@id","@graph@id@set")}ge.push("@graph","@graph@set","@set");if(!("@index"in Ae)){ge.push("@graph@index","@graph@index@set","@index","@index@set")}if(!("@id"in Ae)){ge.push("@graph@id","@graph@id@set")}}else if(ye(Ae)&&!Ee(Ae)){ge.push("@id","@id@set","@type","@set@type")}let ve="@language";let we="@null";if(me){ve="@type";we="@reverse";ge.push("@set")}else if(be(Ae)){if(!("@index"in Ae)){ge.push("@list")}const R=Ae["@list"];if(R.length===0){ve="@any";we="@none"}else{let pe=R.length===0?he:null;let Ae=null;for(let he=0;he=0;--he){const ge=Ie[he];const ye=ge.terms;for(const he of ye){const ye=he+":"+pe.substr(ge.iri.length);const me=R.mappings.get(he)._prefix&&(!R.mappings.has(ye)||Ae===null&&R.mappings.get(ye)["@id"]===pe);if(me&&(_e===null||De(ye,_e)<0)){_e=ye}}}if(_e!==null){return _e}for(const[Ae,ge]of R.mappings){if(ge&&ge._prefix&&pe.startsWith(Ae+":")){throw new he(`Absolute IRI "${pe}" confused with prefix "${Ae}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:R})}}if(!ge.vocab){if("@base"in R){if(!R["@base"]){return pe}else{const Ae=Re(Qe(ve,R["@base"]),pe);return xe.test(Ae)?`./${Ae}`:Ae}}else{return Re(ve,pe)}}return pe};Ne.compactValue=({activeCtx:R,activeProperty:pe,value:Ae,options:he})=>{if(Ee(Ae)){const he=Se(R,pe,"@type");const ge=Se(R,pe,"@language");const ye=Se(R,pe,"@direction");const ve=Se(R,pe,"@container")||[];const be="@index"in Ae&&!ve.includes("@index");if(!be&&he!=="@none"){if(Ae["@type"]===he){return Ae["@value"]}if("@language"in Ae&&Ae["@language"]===ge&&"@direction"in Ae&&Ae["@direction"]===ye){return Ae["@value"]}if("@language"in Ae&&Ae["@language"]===ge){return Ae["@value"]}if("@direction"in Ae&&Ae["@direction"]===ye){return Ae["@value"]}}const Ee=Object.keys(Ae).length;const Ce=Ee===1||Ee===2&&"@index"in Ae&&!be;const we="@language"in R;const _e=me(Ae["@value"]);const Ie=R.mappings.has(pe)&&R.mappings.get(pe)["@language"]===null;if(Ce&&he!=="@none"&&(!we||!_e||Ie)){return Ae["@value"]}const Be={};if(be){Be[Ne.compactIri({activeCtx:R,iri:"@index",relativeTo:{vocab:true}})]=Ae["@index"]}if("@type"in Ae){Be[Ne.compactIri({activeCtx:R,iri:"@type",relativeTo:{vocab:true}})]=Ne.compactIri({activeCtx:R,iri:Ae["@type"],relativeTo:{vocab:true}})}else if("@language"in Ae){Be[Ne.compactIri({activeCtx:R,iri:"@language",relativeTo:{vocab:true}})]=Ae["@language"]}if("@direction"in Ae){Be[Ne.compactIri({activeCtx:R,iri:"@direction",relativeTo:{vocab:true}})]=Ae["@direction"]}Be[Ne.compactIri({activeCtx:R,iri:"@value",relativeTo:{vocab:true}})]=Ae["@value"];return Be}const ge=Ie(R,pe,{vocab:true},he);const ye=Se(R,pe,"@type");const ve=Ne.compactIri({activeCtx:R,iri:Ae["@id"],relativeTo:{vocab:ye==="@vocab"},base:he.base});if(ye==="@id"||ye==="@vocab"||ge==="@graph"){return ve}return{[Ne.compactIri({activeCtx:R,iri:"@id",relativeTo:{vocab:true}})]:ve}};function _selectTerm(R,pe,Ae,he,ge,me){if(me===null){me="@null"}const ve=[];if((me==="@id"||me==="@reverse")&&ye(Ae)&&"@id"in Ae){if(me==="@reverse"){ve.push("@reverse")}const pe=Ne.compactIri({activeCtx:R,iri:Ae["@id"],relativeTo:{vocab:true}});if(R.mappings.has(pe)&&R.mappings.get(pe)&&R.mappings.get(pe)["@id"]===Ae["@id"]){ve.push.apply(ve,["@vocab","@id"])}else{ve.push.apply(ve,["@id","@vocab"])}}else{ve.push(me);const R=ve.find((R=>R.includes("_")));if(R){ve.push(R.replace(/^[^_]+_/,"_"))}}ve.push("@none");const be=R.inverse[pe];for(const R of he){if(!(R in be)){continue}const pe=be[R][ge];for(const R of ve){if(!(R in pe)){continue}return pe[R]}}return null}function _checkNestProperty(R,pe,Ae){if(Ie(R,pe,{vocab:true},Ae)!=="@nest"){throw new he("JSON-LD compact error; nested property must have an @nest value "+"resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}}},18441:R=>{"use strict";const pe="http://www.w3.org/1999/02/22-rdf-syntax-ns#";const Ae="http://www.w3.org/2001/XMLSchema#";R.exports={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",LINK_HEADER_CONTEXT:"http://www.w3.org/ns/json-ld#context",RDF:pe,RDF_LIST:pe+"List",RDF_FIRST:pe+"first",RDF_REST:pe+"rest",RDF_NIL:pe+"nil",RDF_TYPE:pe+"type",RDF_PLAIN_LITERAL:pe+"PlainLiteral",RDF_XML_LITERAL:pe+"XMLLiteral",RDF_JSON_LITERAL:pe+"JSON",RDF_OBJECT:pe+"object",RDF_LANGSTRING:pe+"langString",XSD:Ae,XSD_BOOLEAN:Ae+"boolean",XSD_DOUBLE:Ae+"double",XSD_INTEGER:Ae+"integer",XSD_STRING:Ae+"string"}},41866:(R,pe,Ae)=>{"use strict";const he=Ae(69450);const ge=Ae(11625);const{isArray:ye,isObject:me,isString:ve,isUndefined:be}=Ae(86891);const{isAbsolute:Ee,isRelative:Ce,prependBase:we}=Ae(40651);const{handleEvent:_e}=Ae(75836);const{REGEX_BCP47:Ie,REGEX_KEYWORD:Se,asArray:Be,compareShortestLeast:ke}=Ae(69450);const Oe=new Map;const Re=1e4;const Qe={};R.exports=Qe;Qe.process=async({activeCtx:R,localCtx:pe,options:Ae,propagate:he=true,overrideProtected:be=false,cycles:Se=new Set})=>{if(me(pe)&&"@context"in pe&&ye(pe["@context"])){pe=pe["@context"]}const ke=Be(pe);if(ke.length===0){return R}const Oe=[];const Re=[({event:R,next:pe})=>{Oe.push(R);pe()}];if(Ae.eventHandler){Re.push(Ae.eventHandler)}const xe=Ae;Ae={...Ae,eventHandler:Re};const Pe=await Ae.contextResolver.resolve({activeCtx:R,context:pe,documentLoader:Ae.documentLoader,base:Ae.base});if(me(Pe[0].document)&&typeof Pe[0].document["@propagate"]==="boolean"){he=Pe[0].document["@propagate"]}let Te=R;if(!he&&!Te.previousContext){Te=Te.clone();Te.previousContext=R}for(const he of Pe){let{document:ye}=he;R=Te;if(ye===null){if(!be&&Object.keys(R.protected).length!==0){throw new ge("Tried to nullify a context with protected terms outside of "+"a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"})}Te=R=Qe.getInitialContext(Ae).clone();continue}const Be=he.getProcessed(R);if(Be){if(xe.eventHandler){for(const R of Be.events){_e({event:R,options:xe})}}Te=R=Be.context;continue}if(me(ye)&&"@context"in ye){ye=ye["@context"]}if(!me(ye)){throw new ge("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:ye})}Te=Te.clone();const ke=new Map;if("@version"in ye){if(ye["@version"]!==1.1){throw new ge("Unsupported JSON-LD version: "+ye["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:ye})}if(R.processingMode&&R.processingMode==="json-ld-1.0"){throw new ge("@version: "+ye["@version"]+" not compatible with "+R.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:ye})}Te.processingMode="json-ld-1.1";Te["@version"]=ye["@version"];ke.set("@version",true)}Te.processingMode=Te.processingMode||R.processingMode;if("@base"in ye){let R=ye["@base"];if(R===null||Ee(R)){}else if(Ce(R)){R=we(Te["@base"],R)}else{throw new ge('Invalid JSON-LD syntax; the value of "@base" in a '+"@context must be an absolute IRI, a relative IRI, or null.","jsonld.SyntaxError",{code:"invalid base IRI",context:ye})}Te["@base"]=R;ke.set("@base",true)}if("@vocab"in ye){const R=ye["@vocab"];if(R===null){delete Te["@vocab"]}else if(!ve(R)){throw new ge('Invalid JSON-LD syntax; the value of "@vocab" in a '+"@context must be a string or null.","jsonld.SyntaxError",{code:"invalid vocab mapping",context:ye})}else if(!Ee(R)&&Qe.processingMode(Te,1)){throw new ge('Invalid JSON-LD syntax; the value of "@vocab" in a '+"@context must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid vocab mapping",context:ye})}else{const pe=_expandIri(Te,R,{vocab:true,base:true},undefined,undefined,Ae);if(!Ee(pe)){if(Ae.eventHandler){_e({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:pe}},options:Ae})}}Te["@vocab"]=pe}ke.set("@vocab",true)}if("@language"in ye){const R=ye["@language"];if(R===null){delete Te["@language"]}else if(!ve(R)){throw new ge('Invalid JSON-LD syntax; the value of "@language" in a '+"@context must be a string or null.","jsonld.SyntaxError",{code:"invalid default language",context:ye})}else{if(!R.match(Ie)){if(Ae.eventHandler){_e({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:R}},options:Ae})}}Te["@language"]=R.toLowerCase()}ke.set("@language",true)}if("@direction"in ye){const pe=ye["@direction"];if(R.processingMode==="json-ld-1.0"){throw new ge("Invalid JSON-LD syntax; @direction not compatible with "+R.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:ye})}if(pe===null){delete Te["@direction"]}else if(pe!=="ltr"&&pe!=="rtl"){throw new ge('Invalid JSON-LD syntax; the value of "@direction" in a '+'@context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:ye})}else{Te["@direction"]=pe}ke.set("@direction",true)}if("@propagate"in ye){const Ae=ye["@propagate"];if(R.processingMode==="json-ld-1.0"){throw new ge("Invalid JSON-LD syntax; @propagate not compatible with "+R.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:ye})}if(typeof Ae!=="boolean"){throw new ge("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:pe})}ke.set("@propagate",true)}if("@import"in ye){const he=ye["@import"];if(R.processingMode==="json-ld-1.0"){throw new ge("Invalid JSON-LD syntax; @import not compatible with "+R.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:ye})}if(!ve(he)){throw new ge("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:pe})}const me=await Ae.contextResolver.resolve({activeCtx:R,context:he,documentLoader:Ae.documentLoader,base:Ae.base});if(me.length!==1){throw new ge("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:pe})}const be=me[0].getProcessed(R);if(be){ye=be}else{const Ae=me[0].document;if("@import"in Ae){throw new ge("Invalid JSON-LD syntax: "+"imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:pe})}for(const R in Ae){if(!ye.hasOwnProperty(R)){ye[R]=Ae[R]}}me[0].setProcessed(R,ye)}ke.set("@import",true)}ke.set("@protected",ye["@protected"]||false);for(const R in ye){Qe.createTermDefinition({activeCtx:Te,localCtx:ye,term:R,defined:ke,options:Ae,overrideProtected:be});if(me(ye[R])&&"@context"in ye[R]){const pe=ye[R]["@context"];let he=true;if(ve(pe)){const R=we(Ae.base,pe);if(Se.has(R)){he=false}else{Se.add(R)}}if(he){try{await Qe.process({activeCtx:Te.clone(),localCtx:ye[R]["@context"],overrideProtected:true,options:Ae,cycles:Se})}catch(pe){throw new ge("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:ye[R]["@context"],term:R})}}}}he.setProcessed(R,{context:Te,events:Oe})}return Te};Qe.createTermDefinition=({activeCtx:R,localCtx:pe,term:Ae,defined:he,options:be,overrideProtected:Ce=false})=>{if(he.has(Ae)){if(he.get(Ae)){return}throw new ge("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:pe,term:Ae})}he.set(Ae,false);let we;if(pe.hasOwnProperty(Ae)){we=pe[Ae]}if(Ae==="@type"&&me(we)&&(we["@container"]||"@set")==="@set"&&Qe.processingMode(R,1.1)){const R=["@container","@id","@protected"];const he=Object.keys(we);if(he.length===0||he.some((pe=>!R.includes(pe)))){throw new ge("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:pe,term:Ae})}}else if(Qe.isKeyword(Ae)){throw new ge("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:pe,term:Ae})}else if(Ae.match(Se)){if(be.eventHandler){_e({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are '+"reserved for future use and dropped.",details:{term:Ae}},options:be})}return}else if(Ae===""){throw new ge("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:pe})}const Ie=R.mappings.get(Ae);if(R.mappings.has(Ae)){R.mappings.delete(Ae)}let Be=false;if(ve(we)||we===null){Be=true;we={"@id":we}}if(!me(we)){throw new ge("Invalid JSON-LD syntax; @context term values must be "+"strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:pe})}const ke={};R.mappings.set(Ae,ke);ke.reverse=false;const Oe=["@container","@id","@language","@reverse","@type"];if(Qe.processingMode(R,1.1)){Oe.push("@context","@direction","@index","@nest","@prefix","@protected")}for(const R in we){if(!Oe.includes(R)){throw new ge("Invalid JSON-LD syntax; a term definition must not contain "+R,"jsonld.SyntaxError",{code:"invalid term definition",context:pe})}}const Re=Ae.indexOf(":");ke._termHasColon=Re>0;if("@reverse"in we){if("@id"in we){throw new ge("Invalid JSON-LD syntax; a @reverse term definition must not "+"contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:pe})}if("@nest"in we){throw new ge("Invalid JSON-LD syntax; a @reverse term definition must not "+"contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:pe})}const ye=we["@reverse"];if(!ve(ye)){throw new ge("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe})}if(ye.match(Se)){if(be.eventHandler){_e({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are '+"reserved for future use and dropped.",details:{reverse:ye}},options:be})}if(Ie){R.mappings.set(Ae,Ie)}else{R.mappings.delete(Ae)}return}const me=_expandIri(R,ye,{vocab:true,base:false},pe,he,be);if(!Ee(me)){throw new ge("Invalid JSON-LD syntax; a @context @reverse value must be an "+"absolute IRI or a blank node identifier.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe})}ke["@id"]=me;ke.reverse=true}else if("@id"in we){let ye=we["@id"];if(ye&&!ve(ye)){throw new ge("Invalid JSON-LD syntax; a @context @id value must be an array "+"of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe})}if(ye===null){ke["@id"]=null}else if(!Qe.isKeyword(ye)&&ye.match(Se)){if(be.eventHandler){_e({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are '+"reserved for future use and dropped.",details:{id:ye}},options:be})}if(Ie){R.mappings.set(Ae,Ie)}else{R.mappings.delete(Ae)}return}else if(ye!==Ae){ye=_expandIri(R,ye,{vocab:true,base:false},pe,he,be);if(!Ee(ye)&&!Qe.isKeyword(ye)){throw new ge("Invalid JSON-LD syntax; a @context @id value must be an "+"absolute IRI, a blank node identifier, or a keyword.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe})}if(Ae.match(/(?::[^:])|\//)){const me=new Map(he).set(Ae,true);const ve=_expandIri(R,Ae,{vocab:true,base:false},pe,me,be);if(ve!==ye){throw new ge("Invalid JSON-LD syntax; term in form of IRI must "+"expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe})}}ke["@id"]=ye;ke._prefix=Be&&!ke._termHasColon&&ye.match(/[:\/\?#\[\]@]$/)!==null}}if(!("@id"in ke)){if(ke._termHasColon){const ge=Ae.substr(0,Re);if(pe.hasOwnProperty(ge)){Qe.createTermDefinition({activeCtx:R,localCtx:pe,term:ge,defined:he,options:be})}if(R.mappings.has(ge)){const pe=Ae.substr(Re+1);ke["@id"]=R.mappings.get(ge)["@id"]+pe}else{ke["@id"]=Ae}}else if(Ae==="@type"){ke["@id"]=Ae}else{if(!("@vocab"in R)){throw new ge("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe,term:Ae})}ke["@id"]=R["@vocab"]+Ae}}if(we["@protected"]===true||he.get("@protected")===true&&we["@protected"]!==false){R.protected[Ae]=true;ke.protected=true}he.set(Ae,true);if("@type"in we){let Ae=we["@type"];if(!ve(Ae)){throw new ge("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:pe})}if(Ae==="@json"||Ae==="@none"){if(Qe.processingMode(R,1)){throw new ge("Invalid JSON-LD syntax; an @context @type value must not be "+`"${Ae}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:pe})}}else if(Ae!=="@id"&&Ae!=="@vocab"){Ae=_expandIri(R,Ae,{vocab:true,base:false},pe,he,be);if(!Ee(Ae)){throw new ge("Invalid JSON-LD syntax; an @context @type value must be an "+"absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:pe})}if(Ae.indexOf("_:")===0){throw new ge("Invalid JSON-LD syntax; an @context @type value must be an IRI, "+"not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:pe})}}ke["@type"]=Ae}if("@container"in we){const Ae=ve(we["@container"])?[we["@container"]]:we["@container"]||[];const he=["@list","@set","@index","@language"];let me=true;const be=Ae.includes("@set");if(Qe.processingMode(R,1.1)){he.push("@graph","@id","@type");if(Ae.includes("@list")){if(Ae.length!==1){throw new ge("Invalid JSON-LD syntax; @context @container with @list must "+"have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:pe})}}else if(Ae.includes("@graph")){if(Ae.some((R=>R!=="@graph"&&R!=="@id"&&R!=="@index"&&R!=="@set"))){throw new ge("Invalid JSON-LD syntax; @context @container with @graph must "+"have no other values other than @id, @index, and @set","jsonld.SyntaxError",{code:"invalid container mapping",context:pe})}}else{me&=Ae.length<=(be?2:1)}if(Ae.includes("@type")){ke["@type"]=ke["@type"]||"@id";if(!["@id","@vocab"].includes(ke["@type"])){throw new ge("Invalid JSON-LD syntax; container: @type requires @type to be "+"@id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:pe})}}}else{me&=!ye(we["@container"]);me&=Ae.length<=1}me&=Ae.every((R=>he.includes(R)));me&=!(be&&Ae.includes("@list"));if(!me){throw new ge("Invalid JSON-LD syntax; @context @container value must be "+"one of the following: "+he.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:pe})}if(ke.reverse&&!Ae.every((R=>["@index","@set"].includes(R)))){throw new ge("Invalid JSON-LD syntax; @context @container value for a @reverse "+"type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:pe})}ke["@container"]=Ae}if("@index"in we){if(!("@container"in we)||!ke["@container"].includes("@index")){throw new ge("Invalid JSON-LD syntax; @index without @index in @container: "+`"${we["@index"]}" on term "${Ae}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:pe})}if(!ve(we["@index"])||we["@index"].indexOf("@")===0){throw new ge("Invalid JSON-LD syntax; @index must expand to an IRI: "+`"${we["@index"]}" on term "${Ae}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:pe})}ke["@index"]=we["@index"]}if("@context"in we){ke["@context"]=we["@context"]}if("@language"in we&&!("@type"in we)){let R=we["@language"];if(R!==null&&!ve(R)){throw new ge("Invalid JSON-LD syntax; @context @language value must be "+"a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:pe})}if(R!==null){R=R.toLowerCase()}ke["@language"]=R}if("@prefix"in we){if(Ae.match(/:|\//)){throw new ge("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:pe})}if(Qe.isKeyword(ke["@id"])){throw new ge("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:pe})}if(typeof we["@prefix"]==="boolean"){ke._prefix=we["@prefix"]===true}else{throw new ge("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:pe})}}if("@direction"in we){const R=we["@direction"];if(R!==null&&R!=="ltr"&&R!=="rtl"){throw new ge("Invalid JSON-LD syntax; @direction value must be "+'null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:pe})}ke["@direction"]=R}if("@nest"in we){const R=we["@nest"];if(!ve(R)||R!=="@nest"&&R.indexOf("@")===0){throw new ge("Invalid JSON-LD syntax; @context @nest value must be "+"a string which is not a keyword other than @nest.","jsonld.SyntaxError",{code:"invalid @nest value",context:pe})}ke["@nest"]=R} +!function(pe,Ae){true?R.exports=Ae():0}(this,(()=>(()=>{var R={8599:R=>{"use strict";const{AbortController:pe,AbortSignal:Ae}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;R.exports=pe,R.exports.AbortSignal=Ae,R.exports.default=pe},9742:(R,pe)=>{"use strict";pe.byteLength=function(R){var pe=a(R),Ae=pe[0],he=pe[1];return 3*(Ae+he)/4-he},pe.toByteArray=function(R){var pe,Ae,ye=a(R),me=ye[0],ve=ye[1],be=new ge(function(R,pe,Ae){return 3*(pe+Ae)/4-Ae}(0,me,ve)),Ee=0,we=ve>0?me-4:me;for(Ae=0;Ae>16&255,be[Ee++]=pe>>8&255,be[Ee++]=255&pe;return 2===ve&&(pe=he[R.charCodeAt(Ae)]<<2|he[R.charCodeAt(Ae+1)]>>4,be[Ee++]=255&pe),1===ve&&(pe=he[R.charCodeAt(Ae)]<<10|he[R.charCodeAt(Ae+1)]<<4|he[R.charCodeAt(Ae+2)]>>2,be[Ee++]=pe>>8&255,be[Ee++]=255&pe),be},pe.fromByteArray=function(R){for(var pe,he=R.length,ge=he%3,ye=[],me=16383,ve=0,be=he-ge;vebe?be:ve+me));return 1===ge?(pe=R[he-1],ye.push(Ae[pe>>2]+Ae[pe<<4&63]+"==")):2===ge&&(pe=(R[he-2]<<8)+R[he-1],ye.push(Ae[pe>>10]+Ae[pe>>4&63]+Ae[pe<<2&63]+"=")),ye.join("")};for(var Ae=[],he=[],ge="undefined"!=typeof Uint8Array?Uint8Array:Array,ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",me=0;me<64;++me)Ae[me]=ye[me],he[ye.charCodeAt(me)]=me;function a(R){var pe=R.length;if(pe%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Ae=R.indexOf("=");return-1===Ae&&(Ae=pe),[Ae,Ae===pe?0:4-Ae%4]}function l(R,pe,he){for(var ge,ye,me=[],ve=pe;ve>18&63]+Ae[ye>>12&63]+Ae[ye>>6&63]+Ae[63&ye]);return me.join("")}he["-".charCodeAt(0)]=62,he["_".charCodeAt(0)]=63},8764:(R,pe,Ae)=>{"use strict";const he=Ae(9742),ge=Ae(645),ye="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;pe.Buffer=l,pe.SlowBuffer=function(R){return+R!=R&&(R=0),l.alloc(+R)},pe.INSPECT_MAX_BYTES=50;const me=2147483647;function a(R){if(R>me)throw new RangeError('The value "'+R+'" is invalid for option "size"');const pe=new Uint8Array(R);return Object.setPrototypeOf(pe,l.prototype),pe}function l(R,pe,Ae){if("number"==typeof R){if("string"==typeof pe)throw new TypeError('The "string" argument must be of type string. Received type number');return f(R)}return u(R,pe,Ae)}function u(R,pe,Ae){if("string"==typeof R)return function(R,pe){if("string"==typeof pe&&""!==pe||(pe="utf8"),!l.isEncoding(pe))throw new TypeError("Unknown encoding: "+pe);const Ae=0|b(R,pe);let he=a(Ae);const ge=he.write(R,pe);return ge!==Ae&&(he=he.slice(0,ge)),he}(R,pe);if(ArrayBuffer.isView(R))return function(R){if(z(R,Uint8Array)){const pe=new Uint8Array(R);return d(pe.buffer,pe.byteOffset,pe.byteLength)}return h(R)}(R);if(null==R)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R);if(z(R,ArrayBuffer)||R&&z(R.buffer,ArrayBuffer))return d(R,pe,Ae);if("undefined"!=typeof SharedArrayBuffer&&(z(R,SharedArrayBuffer)||R&&z(R.buffer,SharedArrayBuffer)))return d(R,pe,Ae);if("number"==typeof R)throw new TypeError('The "value" argument must not be of type number. Received type number');const he=R.valueOf&&R.valueOf();if(null!=he&&he!==R)return l.from(he,pe,Ae);const ge=function(R){if(l.isBuffer(R)){const pe=0|p(R.length),Ae=a(pe);return 0===Ae.length||R.copy(Ae,0,0,pe),Ae}return void 0!==R.length?"number"!=typeof R.length||X(R.length)?a(0):h(R):"Buffer"===R.type&&Array.isArray(R.data)?h(R.data):void 0}(R);if(ge)return ge;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof R[Symbol.toPrimitive])return l.from(R[Symbol.toPrimitive]("string"),pe,Ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R)}function c(R){if("number"!=typeof R)throw new TypeError('"size" argument must be of type number');if(R<0)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function f(R){return c(R),a(R<0?0:0|p(R))}function h(R){const pe=R.length<0?0:0|p(R.length),Ae=a(pe);for(let he=0;he=me)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+me.toString(16)+" bytes");return 0|R}function b(R,pe){if(l.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||z(R,ArrayBuffer))return R.byteLength;if("string"!=typeof R)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);const Ae=R.length,he=arguments.length>2&&!0===arguments[2];if(!he&&0===Ae)return 0;let ge=!1;for(;;)switch(pe){case"ascii":case"latin1":case"binary":return Ae;case"utf8":case"utf-8":return V(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Ae;case"hex":return Ae>>>1;case"base64":return K(R).length;default:if(ge)return he?-1:V(R).length;pe=(""+pe).toLowerCase(),ge=!0}}function y(R,pe,Ae){let he=!1;if((void 0===pe||pe<0)&&(pe=0),pe>this.length)return"";if((void 0===Ae||Ae>this.length)&&(Ae=this.length),Ae<=0)return"";if((Ae>>>=0)<=(pe>>>=0))return"";for(R||(R="utf8");;)switch(R){case"hex":return L(this,pe,Ae);case"utf8":case"utf-8":return T(this,pe,Ae);case"ascii":return B(this,pe,Ae);case"latin1":case"binary":return N(this,pe,Ae);case"base64":return I(this,pe,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,pe,Ae);default:if(he)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),he=!0}}function g(R,pe,Ae){const he=R[pe];R[pe]=R[Ae],R[Ae]=he}function w(R,pe,Ae,he,ge){if(0===R.length)return-1;if("string"==typeof Ae?(he=Ae,Ae=0):Ae>2147483647?Ae=2147483647:Ae<-2147483648&&(Ae=-2147483648),X(Ae=+Ae)&&(Ae=ge?0:R.length-1),Ae<0&&(Ae=R.length+Ae),Ae>=R.length){if(ge)return-1;Ae=R.length-1}else if(Ae<0){if(!ge)return-1;Ae=0}if("string"==typeof pe&&(pe=l.from(pe,he)),l.isBuffer(pe))return 0===pe.length?-1:_(R,pe,Ae,he,ge);if("number"==typeof pe)return pe&=255,"function"==typeof Uint8Array.prototype.indexOf?ge?Uint8Array.prototype.indexOf.call(R,pe,Ae):Uint8Array.prototype.lastIndexOf.call(R,pe,Ae):_(R,[pe],Ae,he,ge);throw new TypeError("val must be string, number or Buffer")}function _(R,pe,Ae,he,ge){let ye,me=1,ve=R.length,be=pe.length;if(void 0!==he&&("ucs2"===(he=String(he).toLowerCase())||"ucs-2"===he||"utf16le"===he||"utf-16le"===he)){if(R.length<2||pe.length<2)return-1;me=2,ve/=2,be/=2,Ae/=2}function u(R,pe){return 1===me?R[pe]:R.readUInt16BE(pe*me)}if(ge){let he=-1;for(ye=Ae;yeve&&(Ae=ve-be),ye=Ae;ye>=0;ye--){let Ae=!0;for(let he=0;hege&&(he=ge):he=ge;const ye=pe.length;let me;for(he>ye/2&&(he=ye/2),me=0;me>8,ge=Ae%256,ye.push(ge),ye.push(he);return ye}(pe,R.length-Ae),R,Ae,he)}function I(R,pe,Ae){return 0===pe&&Ae===R.length?he.fromByteArray(R):he.fromByteArray(R.slice(pe,Ae))}function T(R,pe,Ae){Ae=Math.min(R.length,Ae);const he=[];let ge=pe;for(;ge239?4:pe>223?3:pe>191?2:1;if(ge+me<=Ae){let Ae,he,ve,be;switch(me){case 1:pe<128&&(ye=pe);break;case 2:Ae=R[ge+1],128==(192&Ae)&&(be=(31&pe)<<6|63&Ae,be>127&&(ye=be));break;case 3:Ae=R[ge+1],he=R[ge+2],128==(192&Ae)&&128==(192&he)&&(be=(15&pe)<<12|(63&Ae)<<6|63&he,be>2047&&(be<55296||be>57343)&&(ye=be));break;case 4:Ae=R[ge+1],he=R[ge+2],ve=R[ge+3],128==(192&Ae)&&128==(192&he)&&128==(192&ve)&&(be=(15&pe)<<18|(63&Ae)<<12|(63&he)<<6|63&ve,be>65535&&be<1114112&&(ye=be))}}null===ye?(ye=65533,me=1):ye>65535&&(ye-=65536,he.push(ye>>>10&1023|55296),ye=56320|1023&ye),he.push(ye),ge+=me}return function(R){const pe=R.length;if(pe<=ve)return String.fromCharCode.apply(String,R);let Ae="",he=0;for(;hehe.length?(l.isBuffer(pe)||(pe=l.from(pe)),pe.copy(he,ge)):Uint8Array.prototype.set.call(he,pe,ge);else{if(!l.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(he,ge)}ge+=pe.length}return he},l.byteLength=b,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const R=this.length;if(R%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let pe=0;peAe&&(R+=" ... "),""},ye&&(l.prototype[ye]=l.prototype.inspect),l.prototype.compare=function(R,pe,Ae,he,ge){if(z(R,Uint8Array)&&(R=l.from(R,R.offset,R.byteLength)),!l.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(void 0===pe&&(pe=0),void 0===Ae&&(Ae=R?R.length:0),void 0===he&&(he=0),void 0===ge&&(ge=this.length),pe<0||Ae>R.length||he<0||ge>this.length)throw new RangeError("out of range index");if(he>=ge&&pe>=Ae)return 0;if(he>=ge)return-1;if(pe>=Ae)return 1;if(this===R)return 0;let ye=(ge>>>=0)-(he>>>=0),me=(Ae>>>=0)-(pe>>>=0);const ve=Math.min(ye,me),be=this.slice(he,ge),Ee=R.slice(pe,Ae);for(let R=0;R>>=0,isFinite(Ae)?(Ae>>>=0,void 0===he&&(he="utf8")):(he=Ae,Ae=void 0)}const ge=this.length-pe;if((void 0===Ae||Ae>ge)&&(Ae=ge),R.length>0&&(Ae<0||pe<0)||pe>this.length)throw new RangeError("Attempt to write outside buffer bounds");he||(he="utf8");let ye=!1;for(;;)switch(he){case"hex":return m(this,R,pe,Ae);case"utf8":case"utf-8":return E(this,R,pe,Ae);case"ascii":case"latin1":case"binary":return S(this,R,pe,Ae);case"base64":return v(this,R,pe,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,R,pe,Ae);default:if(ye)throw new TypeError("Unknown encoding: "+he);he=(""+he).toLowerCase(),ye=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const ve=4096;function B(R,pe,Ae){let he="";Ae=Math.min(R.length,Ae);for(let ge=pe;gehe)&&(Ae=he);let ge="";for(let he=pe;heAe)throw new RangeError("Trying to access beyond buffer length")}function O(R,pe,Ae,he,ge,ye){if(!l.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(pe>ge||peR.length)throw new RangeError("Index out of range")}function x(R,pe,Ae,he,ge){W(pe,he,ge,R,Ae,7);let ye=Number(pe&BigInt(4294967295));R[Ae++]=ye,ye>>=8,R[Ae++]=ye,ye>>=8,R[Ae++]=ye,ye>>=8,R[Ae++]=ye;let me=Number(pe>>BigInt(32)&BigInt(4294967295));return R[Ae++]=me,me>>=8,R[Ae++]=me,me>>=8,R[Ae++]=me,me>>=8,R[Ae++]=me,Ae}function k(R,pe,Ae,he,ge){W(pe,he,ge,R,Ae,7);let ye=Number(pe&BigInt(4294967295));R[Ae+7]=ye,ye>>=8,R[Ae+6]=ye,ye>>=8,R[Ae+5]=ye,ye>>=8,R[Ae+4]=ye;let me=Number(pe>>BigInt(32)&BigInt(4294967295));return R[Ae+3]=me,me>>=8,R[Ae+2]=me,me>>=8,R[Ae+1]=me,me>>=8,R[Ae]=me,Ae+8}function P(R,pe,Ae,he,ge,ye){if(Ae+he>R.length)throw new RangeError("Index out of range");if(Ae<0)throw new RangeError("Index out of range")}function j(R,pe,Ae,he,ye){return pe=+pe,Ae>>>=0,ye||P(R,0,Ae,4),ge.write(R,pe,Ae,he,23,4),Ae+4}function D(R,pe,Ae,he,ye){return pe=+pe,Ae>>>=0,ye||P(R,0,Ae,8),ge.write(R,pe,Ae,he,52,8),Ae+8}l.prototype.slice=function(R,pe){const Ae=this.length;(R=~~R)<0?(R+=Ae)<0&&(R=0):R>Ae&&(R=Ae),(pe=void 0===pe?Ae:~~pe)<0?(pe+=Ae)<0&&(pe=0):pe>Ae&&(pe=Ae),pe>>=0,pe>>>=0,Ae||M(R,pe,this.length);let he=this[R],ge=1,ye=0;for(;++ye>>=0,pe>>>=0,Ae||M(R,pe,this.length);let he=this[R+--pe],ge=1;for(;pe>0&&(ge*=256);)he+=this[R+--pe]*ge;return he},l.prototype.readUint8=l.prototype.readUInt8=function(R,pe){return R>>>=0,pe||M(R,1,this.length),this[R]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(R,pe){return R>>>=0,pe||M(R,2,this.length),this[R]|this[R+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(R,pe){return R>>>=0,pe||M(R,2,this.length),this[R]<<8|this[R+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(R,pe){return R>>>=0,pe||M(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+16777216*this[R+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(R,pe){return R>>>=0,pe||M(R,4,this.length),16777216*this[R]+(this[R+1]<<16|this[R+2]<<8|this[R+3])},l.prototype.readBigUInt64LE=Z((function(R){G(R>>>=0,"offset");const pe=this[R],Ae=this[R+7];void 0!==pe&&void 0!==Ae||Y(R,this.length-8);const he=pe+256*this[++R]+65536*this[++R]+this[++R]*2**24,ge=this[++R]+256*this[++R]+65536*this[++R]+Ae*2**24;return BigInt(he)+(BigInt(ge)<>>=0,"offset");const pe=this[R],Ae=this[R+7];void 0!==pe&&void 0!==Ae||Y(R,this.length-8);const he=pe*2**24+65536*this[++R]+256*this[++R]+this[++R],ge=this[++R]*2**24+65536*this[++R]+256*this[++R]+Ae;return(BigInt(he)<>>=0,pe>>>=0,Ae||M(R,pe,this.length);let he=this[R],ge=1,ye=0;for(;++ye=ge&&(he-=Math.pow(2,8*pe)),he},l.prototype.readIntBE=function(R,pe,Ae){R>>>=0,pe>>>=0,Ae||M(R,pe,this.length);let he=pe,ge=1,ye=this[R+--he];for(;he>0&&(ge*=256);)ye+=this[R+--he]*ge;return ge*=128,ye>=ge&&(ye-=Math.pow(2,8*pe)),ye},l.prototype.readInt8=function(R,pe){return R>>>=0,pe||M(R,1,this.length),128&this[R]?-1*(255-this[R]+1):this[R]},l.prototype.readInt16LE=function(R,pe){R>>>=0,pe||M(R,2,this.length);const Ae=this[R]|this[R+1]<<8;return 32768&Ae?4294901760|Ae:Ae},l.prototype.readInt16BE=function(R,pe){R>>>=0,pe||M(R,2,this.length);const Ae=this[R+1]|this[R]<<8;return 32768&Ae?4294901760|Ae:Ae},l.prototype.readInt32LE=function(R,pe){return R>>>=0,pe||M(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},l.prototype.readInt32BE=function(R,pe){return R>>>=0,pe||M(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},l.prototype.readBigInt64LE=Z((function(R){G(R>>>=0,"offset");const pe=this[R],Ae=this[R+7];void 0!==pe&&void 0!==Ae||Y(R,this.length-8);const he=this[R+4]+256*this[R+5]+65536*this[R+6]+(Ae<<24);return(BigInt(he)<>>=0,"offset");const pe=this[R],Ae=this[R+7];void 0!==pe&&void 0!==Ae||Y(R,this.length-8);const he=(pe<<24)+65536*this[++R]+256*this[++R]+this[++R];return(BigInt(he)<>>=0,pe||M(R,4,this.length),ge.read(this,R,!0,23,4)},l.prototype.readFloatBE=function(R,pe){return R>>>=0,pe||M(R,4,this.length),ge.read(this,R,!1,23,4)},l.prototype.readDoubleLE=function(R,pe){return R>>>=0,pe||M(R,8,this.length),ge.read(this,R,!0,52,8)},l.prototype.readDoubleBE=function(R,pe){return R>>>=0,pe||M(R,8,this.length),ge.read(this,R,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(R,pe,Ae,he){R=+R,pe>>>=0,Ae>>>=0,he||O(this,R,pe,Ae,Math.pow(2,8*Ae)-1,0);let ge=1,ye=0;for(this[pe]=255&R;++ye>>=0,Ae>>>=0,he||O(this,R,pe,Ae,Math.pow(2,8*Ae)-1,0);let ge=Ae-1,ye=1;for(this[pe+ge]=255&R;--ge>=0&&(ye*=256);)this[pe+ge]=R/ye&255;return pe+Ae},l.prototype.writeUint8=l.prototype.writeUInt8=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,1,255,0),this[pe]=255&R,pe+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,2,65535,0),this[pe]=255&R,this[pe+1]=R>>>8,pe+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,2,65535,0),this[pe]=R>>>8,this[pe+1]=255&R,pe+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,4,4294967295,0),this[pe+3]=R>>>24,this[pe+2]=R>>>16,this[pe+1]=R>>>8,this[pe]=255&R,pe+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,4,4294967295,0),this[pe]=R>>>24,this[pe+1]=R>>>16,this[pe+2]=R>>>8,this[pe+3]=255&R,pe+4},l.prototype.writeBigUInt64LE=Z((function(R,pe=0){return x(this,R,pe,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Z((function(R,pe=0){return k(this,R,pe,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(R,pe,Ae,he){if(R=+R,pe>>>=0,!he){const he=Math.pow(2,8*Ae-1);O(this,R,pe,Ae,he-1,-he)}let ge=0,ye=1,me=0;for(this[pe]=255&R;++ge>0)-me&255;return pe+Ae},l.prototype.writeIntBE=function(R,pe,Ae,he){if(R=+R,pe>>>=0,!he){const he=Math.pow(2,8*Ae-1);O(this,R,pe,Ae,he-1,-he)}let ge=Ae-1,ye=1,me=0;for(this[pe+ge]=255&R;--ge>=0&&(ye*=256);)R<0&&0===me&&0!==this[pe+ge+1]&&(me=1),this[pe+ge]=(R/ye>>0)-me&255;return pe+Ae},l.prototype.writeInt8=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,1,127,-128),R<0&&(R=255+R+1),this[pe]=255&R,pe+1},l.prototype.writeInt16LE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,2,32767,-32768),this[pe]=255&R,this[pe+1]=R>>>8,pe+2},l.prototype.writeInt16BE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,2,32767,-32768),this[pe]=R>>>8,this[pe+1]=255&R,pe+2},l.prototype.writeInt32LE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,4,2147483647,-2147483648),this[pe]=255&R,this[pe+1]=R>>>8,this[pe+2]=R>>>16,this[pe+3]=R>>>24,pe+4},l.prototype.writeInt32BE=function(R,pe,Ae){return R=+R,pe>>>=0,Ae||O(this,R,pe,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[pe]=R>>>24,this[pe+1]=R>>>16,this[pe+2]=R>>>8,this[pe+3]=255&R,pe+4},l.prototype.writeBigInt64LE=Z((function(R,pe=0){return x(this,R,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Z((function(R,pe=0){return k(this,R,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(R,pe,Ae){return j(this,R,pe,!0,Ae)},l.prototype.writeFloatBE=function(R,pe,Ae){return j(this,R,pe,!1,Ae)},l.prototype.writeDoubleLE=function(R,pe,Ae){return D(this,R,pe,!0,Ae)},l.prototype.writeDoubleBE=function(R,pe,Ae){return D(this,R,pe,!1,Ae)},l.prototype.copy=function(R,pe,Ae,he){if(!l.isBuffer(R))throw new TypeError("argument should be a Buffer");if(Ae||(Ae=0),he||0===he||(he=this.length),pe>=R.length&&(pe=R.length),pe||(pe=0),he>0&&he=this.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("sourceEnd out of bounds");he>this.length&&(he=this.length),R.length-pe>>=0,Ae=void 0===Ae?this.length:Ae>>>0,R||(R=0),"number"==typeof R)for(ge=pe;ge=he+4;Ae-=3)pe=`_${R.slice(Ae-3,Ae)}${pe}`;return`${R.slice(0,Ae)}${pe}`}function W(R,pe,Ae,he,ge,ye){if(R>Ae||R3?0===pe||pe===BigInt(0)?`>= 0${he} and < 2${he} ** ${8*(ye+1)}${he}`:`>= -(2${he} ** ${8*(ye+1)-1}${he}) and < 2 ** ${8*(ye+1)-1}${he}`:`>= ${pe}${he} and <= ${Ae}${he}`,new be.ERR_OUT_OF_RANGE("value",ge,R)}!function(R,pe,Ae){G(pe,"offset"),void 0!==R[pe]&&void 0!==R[pe+Ae]||Y(pe,R.length-(Ae+1))}(he,ge,ye)}function G(R,pe){if("number"!=typeof R)throw new be.ERR_INVALID_ARG_TYPE(pe,"number",R)}function Y(R,pe,Ae){if(Math.floor(R)!==R)throw G(R,Ae),new be.ERR_OUT_OF_RANGE(Ae||"offset","an integer",R);if(pe<0)throw new be.ERR_BUFFER_OUT_OF_BOUNDS;throw new be.ERR_OUT_OF_RANGE(Ae||"offset",`>= ${Ae?1:0} and <= ${pe}`,R)}C("ERR_BUFFER_OUT_OF_BOUNDS",(function(R){return R?`${R} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),C("ERR_INVALID_ARG_TYPE",(function(R,pe){return`The "${R}" argument must be of type number. Received type ${typeof pe}`}),TypeError),C("ERR_OUT_OF_RANGE",(function(R,pe,Ae){let he=`The value of "${R}" is out of range.`,ge=Ae;return Number.isInteger(Ae)&&Math.abs(Ae)>2**32?ge=$(String(Ae)):"bigint"==typeof Ae&&(ge=String(Ae),(Ae>BigInt(2)**BigInt(32)||Ae<-(BigInt(2)**BigInt(32)))&&(ge=$(ge)),ge+="n"),he+=` It must be ${pe}. Received ${ge}`,he}),RangeError);const Ee=/[^+/0-9A-Za-z-_]/g;function V(R,pe){let Ae;pe=pe||1/0;const he=R.length;let ge=null;const ye=[];for(let me=0;me55295&&Ae<57344){if(!ge){if(Ae>56319){(pe-=3)>-1&&ye.push(239,191,189);continue}if(me+1===he){(pe-=3)>-1&&ye.push(239,191,189);continue}ge=Ae;continue}if(Ae<56320){(pe-=3)>-1&&ye.push(239,191,189),ge=Ae;continue}Ae=65536+(ge-55296<<10|Ae-56320)}else ge&&(pe-=3)>-1&&ye.push(239,191,189);if(ge=null,Ae<128){if((pe-=1)<0)break;ye.push(Ae)}else if(Ae<2048){if((pe-=2)<0)break;ye.push(Ae>>6|192,63&Ae|128)}else if(Ae<65536){if((pe-=3)<0)break;ye.push(Ae>>12|224,Ae>>6&63|128,63&Ae|128)}else{if(!(Ae<1114112))throw new Error("Invalid code point");if((pe-=4)<0)break;ye.push(Ae>>18|240,Ae>>12&63|128,Ae>>6&63|128,63&Ae|128)}}return ye}function K(R){return he.toByteArray(function(R){if((R=(R=R.split("=")[0]).trim().replace(Ee,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(R))}function q(R,pe,Ae,he){let ge;for(ge=0;ge=pe.length||ge>=R.length);++ge)pe[ge+Ae]=R[ge];return ge}function z(R,pe){return R instanceof pe||null!=R&&null!=R.constructor&&null!=R.constructor.name&&R.constructor.name===pe.name}function X(R){return R!=R}const we=function(){const R="0123456789abcdef",pe=new Array(256);for(let Ae=0;Ae<16;++Ae){const he=16*Ae;for(let ge=0;ge<16;++ge)pe[he+ge]=R[Ae]+R[ge]}return pe}();function Z(R){return"undefined"==typeof BigInt?Q:R}function Q(){throw new Error("BigInt not supported")}},2141:(R,pe,Ae)=>{"use strict";const he=Ae(2020),ge=Ae(4694),ye=Ae(6774),me=Ae(4666),ve=Ae(9032),be=Ae(4785),Ee=Ae(3070),we=Ae(8112);R.exports={Commented:he,Diagnose:ge,Decoder:ye,Encoder:me,Simple:ve,Tagged:be,Map:Ee,SharedValueEncoder:we,comment:he.comment,decodeAll:ye.decodeAll,decodeFirst:ye.decodeFirst,decodeAllSync:ye.decodeAllSync,decodeFirstSync:ye.decodeFirstSync,diagnose:ge.diagnose,encode:me.encode,encodeCanonical:me.encodeCanonical,encodeOne:me.encodeOne,encodeAsync:me.encodeAsync,decode:ye.decodeFirstSync,leveldb:{decode:ye.decodeFirstSync,encode:me.encode,buffer:!0,name:"cbor"},reset(){me.reset(),be.reset()}}},2020:(R,pe,Ae)=>{"use strict";const he=Ae(2830),ge=Ae(9873),ye=Ae(6774),me=Ae(4202),{MT:ve,NUMBYTES:be,SYMS:Ee}=Ae(9066),{Buffer:we}=Ae(8764);function f(R){return R>1?"s":""}class h extends he.Transform{constructor(R={}){const{depth:pe=1,max_depth:Ae=10,no_summary:he=!1,tags:ge={},preferWeb:ve,encoding:be,...Ee}=R;super({...Ee,readableObjectMode:!1,writableObjectMode:!1}),this.depth=pe,this.max_depth=Ae,this.all=new me,ge[24]||(ge[24]=this._tag_24.bind(this)),this.parser=new ye({tags:ge,max_depth:Ae,preferWeb:ve,encoding:be}),this.parser.on("value",this._on_value.bind(this)),this.parser.on("start",this._on_start.bind(this)),this.parser.on("start-string",this._on_start_string.bind(this)),this.parser.on("stop",this._on_stop.bind(this)),this.parser.on("more-bytes",this._on_more.bind(this)),this.parser.on("error",this._on_error.bind(this)),he||this.parser.on("data",this._on_data.bind(this)),this.parser.bs.on("read",this._on_read.bind(this))}_tag_24(R){const pe=new h({depth:this.depth+1,no_summary:!0});pe.on("data",(R=>this.push(R))),pe.on("error",(R=>this.emit("error",R))),pe.end(R)}_transform(R,pe,Ae){this.parser.write(R,pe,Ae)}_flush(R){return this.parser._flush(R)}static comment(R,pe={},Ae=null){if(null==R)throw new Error("input required");({options:pe,cb:Ae}=function(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"number":return{options:{max_depth:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}(pe,Ae));const he=new me,{encoding:ye="hex",...ve}=pe,be=new h(ve);let Ee=null;return"function"==typeof Ae?(be.on("end",(()=>{Ae(null,he.toString("utf8"))})),be.on("error",Ae)):Ee=new Promise(((R,pe)=>{be.on("end",(()=>{R(he.toString("utf8"))})),be.on("error",pe)})),be.pipe(he),ge.guessEncoding(R,ye).pipe(be),Ee}_on_error(R){this.push("ERROR: "),this.push(R.toString()),this.push("\n")}_on_read(R){this.all.write(R);const pe=R.toString("hex");this.push(new Array(this.depth+1).join(" ")),this.push(pe);let Ae=2*(this.max_depth-this.depth)-pe.length;Ae<1&&(Ae=1),this.push(new Array(Ae+1).join(" ")),this.push("-- ")}_on_more(R,pe,Ae,he){let ge="";switch(this.depth++,R){case ve.POS_INT:ge="Positive number,";break;case ve.NEG_INT:ge="Negative number,";break;case ve.ARRAY:ge="Array, length";break;case ve.MAP:ge="Map, count";break;case ve.BYTE_STRING:ge="Bytes, length";break;case ve.UTF8_STRING:ge="String, length";break;case ve.SIMPLE_FLOAT:ge=1===pe?"Simple value,":"Float,"}this.push(`${ge} next ${pe} byte${f(pe)}\n`)}_on_start_string(R,pe,Ae,he){let ge="";switch(this.depth++,R){case ve.BYTE_STRING:ge=`Bytes, length: ${pe}`;break;case ve.UTF8_STRING:ge=`String, length: ${pe.toString()}`}this.push(`${ge}\n`)}_on_start(R,pe,Ae,he){switch(this.depth++,Ae){case ve.ARRAY:this.push(`[${he}], `);break;case ve.MAP:he%2?this.push(`{Val:${Math.floor(he/2)}}, `):this.push(`{Key:${Math.floor(he/2)}}, `)}switch(R){case ve.TAG:this.push(`Tag #${pe}`),24===pe&&this.push(" Encoded CBOR data item");break;case ve.ARRAY:pe===Ee.STREAM?this.push("Array (streaming)"):this.push(`Array, ${pe} item${f(pe)}`);break;case ve.MAP:pe===Ee.STREAM?this.push("Map (streaming)"):this.push(`Map, ${pe} pair${f(pe)}`);break;case ve.BYTE_STRING:this.push("Bytes (streaming)");break;case ve.UTF8_STRING:this.push("String (streaming)")}this.push("\n")}_on_stop(R){this.depth--}_on_value(R,pe,Ae,he){if(R!==Ee.BREAK)switch(pe){case ve.ARRAY:this.push(`[${Ae}], `);break;case ve.MAP:Ae%2?this.push(`{Val:${Math.floor(Ae/2)}}, `):this.push(`{Key:${Math.floor(Ae/2)}}, `)}const ye=ge.cborValueToString(R,-1/0);switch("string"==typeof R||we.isBuffer(R)?(R.length>0&&(this.push(ye),this.push("\n")),this.depth--):(this.push(ye),this.push("\n")),he){case be.ONE:case be.TWO:case be.FOUR:case be.EIGHT:this.depth--}}_on_data(){this.push("0x"),this.push(this.all.read().toString("hex")),this.push("\n")}}R.exports=h},9066:(R,pe)=>{"use strict";pe.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},pe.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36,SET:258},pe.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},pe.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},pe.SYMS={NULL:Symbol.for("github.com/hildjj/node-cbor/null"),UNDEFINED:Symbol.for("github.com/hildjj/node-cbor/undef"),PARENT:Symbol.for("github.com/hildjj/node-cbor/parent"),BREAK:Symbol.for("github.com/hildjj/node-cbor/break"),STREAM:Symbol.for("github.com/hildjj/node-cbor/stream")},pe.SHIFT32=4294967296,pe.BI={MINUS_ONE:BigInt(-1),NEG_MAX:BigInt(-1)-BigInt(Number.MAX_SAFE_INTEGER),MAXINT32:BigInt("0xffffffff"),MAXINT64:BigInt("0xffffffffffffffff"),SHIFT32:BigInt(pe.SHIFT32)}},6774:(R,pe,Ae)=>{"use strict";const he=Ae(71),ge=Ae(4785),ye=Ae(9032),me=Ae(9873),ve=Ae(4202),be=(Ae(2830),Ae(9066)),{MT:Ee,NUMBYTES:we,SYMS:Ce,BI:_e}=be,{Buffer:Ie}=Ae(8764),Se=Symbol("count"),Be=Symbol("major type"),ke=Symbol("error"),Oe=Symbol("not found");function w(R,pe,Ae){const he=[];return he[Se]=Ae,he[Ce.PARENT]=R,he[Be]=pe,he}function _(R,pe){const Ae=new ve;return Ae[Se]=-1,Ae[Ce.PARENT]=R,Ae[Be]=pe,Ae}class m extends Error{constructor(R,pe){super(`Unexpected data: 0x${R.toString(16)}`),this.name="UnexpectedDataError",this.byte=R,this.value=pe}}function E(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}class S extends he{constructor(R={}){const{tags:pe={},max_depth:Ae=-1,preferMap:he=!1,preferWeb:ge=!1,required:ye=!1,encoding:me="hex",extendedResults:be=!1,preventDuplicateKeys:Ee=!1,...we}=R;super({defaultEncoding:me,...we}),this.running=!0,this.max_depth=Ae,this.tags=pe,this.preferMap=he,this.preferWeb=ge,this.extendedResults=be,this.required=ye,this.preventDuplicateKeys=Ee,be&&(this.bs.on("read",this._onRead.bind(this)),this.valueBytes=new ve)}static nullcheck(R){switch(R){case Ce.NULL:return null;case Ce.UNDEFINED:return;case Oe:throw new Error("Value not found");default:return R}}static decodeFirstSync(R,pe={}){if(null==R)throw new TypeError("input required");({options:pe}=E(pe));const{encoding:Ae="hex",...he}=pe,ge=new S(he),ye=me.guessEncoding(R,Ae),ve=ge._parse();let be=ve.next();for(;!be.done;){const R=ye.read(be.value);if(null==R||R.length!==be.value)throw new Error("Insufficient data");ge.extendedResults&&ge.valueBytes.write(R),be=ve.next(R)}let Ee=null;if(ge.extendedResults)Ee=be.value,Ee.unused=ye.read();else if(Ee=S.nullcheck(be.value),ye.length>0){const R=ye.read(1);throw ye.unshift(R),new m(R[0],Ee)}return Ee}static decodeAllSync(R,pe={}){if(null==R)throw new TypeError("input required");({options:pe}=E(pe));const{encoding:Ae="hex",...he}=pe,ge=new S(he),ye=me.guessEncoding(R,Ae),ve=[];for(;ye.length>0;){const R=ge._parse();let pe=R.next();for(;!pe.done;){const Ae=ye.read(pe.value);if(null==Ae||Ae.length!==pe.value)throw new Error("Insufficient data");ge.extendedResults&&ge.valueBytes.write(Ae),pe=R.next(Ae)}ve.push(S.nullcheck(pe.value))}return ve}static decodeFirst(R,pe={},Ae=null){if(null==R)throw new TypeError("input required");({options:pe,cb:Ae}=E(pe,Ae));const{encoding:he="hex",required:ge=!1,...ye}=pe,ve=new S(ye);let be=Oe;const Ee=me.guessEncoding(R,he),we=new Promise(((R,pe)=>{ve.on("data",(R=>{be=S.nullcheck(R),ve.close()})),ve.once("error",(Ae=>ve.extendedResults&&Ae instanceof m?(be.unused=ve.bs.slice(),R(be)):(be!==Oe&&(Ae.value=be),be=ke,ve.close(),pe(Ae)))),ve.once("end",(()=>{switch(be){case Oe:return ge?pe(new Error("No CBOR found")):R(be);case ke:return;default:return R(be)}}))}));return"function"==typeof Ae&&we.then((R=>Ae(null,R)),Ae),Ee.pipe(ve),we}static decodeAll(R,pe={},Ae=null){if(null==R)throw new TypeError("input required");({options:pe,cb:Ae}=E(pe,Ae));const{encoding:he="hex",...ge}=pe,ye=new S(ge),ve=[];ye.on("data",(R=>ve.push(S.nullcheck(R))));const be=new Promise(((R,pe)=>{ye.on("error",pe),ye.on("end",(()=>R(ve)))}));return"function"==typeof Ae&&be.then((R=>Ae(void 0,R)),(R=>Ae(R,void 0))),me.guessEncoding(R,he).pipe(ye),be}close(){this.running=!1,this.__fresh=!0}_onRead(R){this.valueBytes.write(R)}*_parse(){let R=null,pe=0,Ae=null;for(;;){if(this.max_depth>=0&&pe>this.max_depth)throw new Error(`Maximum depth ${this.max_depth} exceeded`);const[he]=yield 1;if(!this.running)throw this.bs.unshift(Ie.from([he])),new m(he);const be=he>>5,ke=31&he,Oe=null==R?void 0:R[Be],Re=null==R?void 0:R.length;switch(ke){case we.ONE:this.emit("more-bytes",be,1,Oe,Re),[Ae]=yield 1;break;case we.TWO:case we.FOUR:case we.EIGHT:{const R=1<{"use strict";const he=Ae(2830),ge=Ae(6774),ye=Ae(9873),me=Ae(4202),{MT:ve,SYMS:be}=Ae(9066);class u extends he.Transform{constructor(R={}){const{separator:pe="\n",stream_errors:Ae=!1,tags:he,max_depth:ye,preferWeb:me,encoding:ve,...be}=R;super({...be,readableObjectMode:!1,writableObjectMode:!1}),this.float_bytes=-1,this.separator=pe,this.stream_errors=Ae,this.parser=new ge({tags:he,max_depth:ye,preferWeb:me,encoding:ve}),this.parser.on("more-bytes",this._on_more.bind(this)),this.parser.on("value",this._on_value.bind(this)),this.parser.on("start",this._on_start.bind(this)),this.parser.on("stop",this._on_stop.bind(this)),this.parser.on("data",this._on_data.bind(this)),this.parser.on("error",this._on_error.bind(this))}_transform(R,pe,Ae){this.parser.write(R,pe,Ae)}_flush(R){this.parser._flush((pe=>this.stream_errors?(pe&&this._on_error(pe),R()):R(pe)))}static diagnose(R,pe={},Ae=null){if(null==R)throw new TypeError("input required");({options:pe,cb:Ae}=function(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}(pe,Ae));const{encoding:he="hex",...ge}=pe,ve=new me,be=new u(ge);let Ee=null;return"function"==typeof Ae?(be.on("end",(()=>Ae(null,ve.toString("utf8")))),be.on("error",Ae)):Ee=new Promise(((R,pe)=>{be.on("end",(()=>R(ve.toString("utf8")))),be.on("error",pe)})),be.pipe(ve),ye.guessEncoding(R,he).pipe(be),Ee}_on_error(R){this.stream_errors?this.push(R.toString()):this.emit("error",R)}_on_more(R,pe,Ae,he){R===ve.SIMPLE_FLOAT&&(this.float_bytes={2:1,4:2,8:3}[pe])}_fore(R,pe){switch(R){case ve.BYTE_STRING:case ve.UTF8_STRING:case ve.ARRAY:pe>0&&this.push(", ");break;case ve.MAP:pe>0&&(pe%2?this.push(": "):this.push(", "))}}_on_value(R,pe,Ae){if(R===be.BREAK)return;this._fore(pe,Ae);const he=this.float_bytes;this.float_bytes=-1,this.push(ye.cborValueToString(R,he))}_on_start(R,pe,Ae,he){switch(this._fore(Ae,he),R){case ve.TAG:this.push(`${pe}(`);break;case ve.ARRAY:this.push("[");break;case ve.MAP:this.push("{");break;case ve.BYTE_STRING:case ve.UTF8_STRING:this.push("(")}pe===be.STREAM&&this.push("_ ")}_on_stop(R){switch(R){case ve.TAG:this.push(")");break;case ve.ARRAY:this.push("]");break;case ve.MAP:this.push("}");break;case ve.BYTE_STRING:case ve.UTF8_STRING:this.push(")")}}_on_data(){this.push(this.separator)}}R.exports=u},4666:(R,pe,Ae)=>{"use strict";const he=Ae(2830),ge=Ae(4202),ye=Ae(9873),me=Ae(9066),{MT:ve,NUMBYTES:be,SHIFT32:Ee,SIMPLE:we,SYMS:Ce,TAG:_e,BI:Ie}=me,{Buffer:Se}=Ae(8764),Be=ve.SIMPLE_FLOAT<<5|be.TWO,ke=ve.SIMPLE_FLOAT<<5|be.FOUR,Oe=ve.SIMPLE_FLOAT<<5|be.EIGHT,Re=ve.SIMPLE_FLOAT<<5|we.TRUE,Qe=ve.SIMPLE_FLOAT<<5|we.FALSE,xe=ve.SIMPLE_FLOAT<<5|we.UNDEFINED,Pe=ve.SIMPLE_FLOAT<<5|we.NULL,Te=Se.from([255]),De=Se.from("f97e00","hex"),Ne=Se.from("f9fc00","hex"),Me=Se.from("f97c00","hex"),je=Se.from("f98000","hex"),Fe={};let Le={};class N extends he.Transform{constructor(R={}){const{canonical:pe=!1,encodeUndefined:Ae,disallowUndefinedKeys:he=!1,dateType:ge="number",collapseBigIntegers:ye=!1,detectLoops:me=!1,omitUndefinedProperties:ve=!1,genTypes:be=[],...Ee}=R;if(super({...Ee,readableObjectMode:!1,writableObjectMode:!0}),this.canonical=pe,this.encodeUndefined=Ae,this.disallowUndefinedKeys=he,this.dateType=function(R){if(!R)return"number";switch(R.toLowerCase()){case"number":return"number";case"float":return"float";case"int":case"integer":return"int";case"string":return"string"}throw new TypeError(`dateType invalid, got "${R}"`)}(ge),this.collapseBigIntegers=!!this.canonical||ye,this.detectLoops=void 0,"boolean"==typeof me)me&&(this.detectLoops=new WeakSet);else{if(!(me instanceof WeakSet))throw new TypeError("detectLoops must be boolean or WeakSet");this.detectLoops=me}if(this.omitUndefinedProperties=ve,this.semanticTypes={...N.SEMANTIC_TYPES},Array.isArray(be))for(let R=0,pe=be.length;R{const Ae=typeof R[pe];return"function"!==Ae&&(!this.omitUndefinedProperties||"undefined"!==Ae)})),he={};if(this.canonical&&Ae.sort(((R,pe)=>{const Ae=he[R]||(he[R]=N.encode(R)),ge=he[pe]||(he[pe]=N.encode(pe));return Ae.compare(ge)})),pe.indefinite){if(!this._pushUInt8(ve.MAP<<5|be.INDEFINITE))return!1}else if(!this._pushInt(Ae.length,ve.MAP))return!1;let ge=null;for(let pe=0,ye=Ae.length;pevoid 0!==pe))),Ae.indefinite){if(!R._pushUInt8(ve.MAP<<5|be.INDEFINITE))return!1}else if(!R._pushInt(he.length,ve.MAP))return!1;if(R.canonical){const pe=new N({genTypes:R.semanticTypes,canonical:R.canonical,detectLoops:Boolean(R.detectLoops),dateType:R.dateType,disallowUndefinedKeys:R.disallowUndefinedKeys,collapseBigIntegers:R.collapseBigIntegers}),Ae=new ge({highWaterMark:R.readableHighWaterMark});pe.pipe(Ae),he.sort((([R],[he])=>{pe.pushAny(R);const ge=Ae.read();pe.pushAny(he);const ye=Ae.read();return ge.compare(ye)}));for(const[pe,Ae]of he){if(R.disallowUndefinedKeys&&void 0===pe)throw new Error("Invalid Map key: undefined");if(!R.pushAny(pe)||!R.pushAny(Ae))return!1}}else for(const[pe,Ae]of he){if(R.disallowUndefinedKeys&&void 0===pe)throw new Error("Invalid Map key: undefined");if(!R.pushAny(pe)||!R.pushAny(Ae))return!1}return!(Ae.indefinite&&!R.push(Te))}static _pushTypedArray(R,pe){let Ae=64,he=pe.BYTES_PER_ELEMENT;const{name:ge}=pe.constructor;return ge.startsWith("Float")?(Ae|=16,he/=2):ge.includes("U")||(Ae|=8),(ge.includes("Clamped")||1!==he&&!ye.isBigEndian())&&(Ae|=4),Ae|={1:0,2:1,4:2,8:3}[he],!!R._pushTag(Ae)&&N._pushBuffer(R,Se.from(pe.buffer,pe.byteOffset,pe.byteLength))}static _pushArrayBuffer(R,pe){return N._pushBuffer(R,Se.from(pe))}static encodeIndefinite(R,pe,Ae={}){if(null==pe){if(null==this)throw new Error("No object to encode");pe=this}const{chunkSize:he=4096}=Ae;let ge=!0;const me=typeof pe;let Ee=null;if("string"===me){ge=ge&&R._pushUInt8(ve.UTF8_STRING<<5|be.INDEFINITE);let Ae=0;for(;Ae{const ge=[],ye=new N(pe);ye.on("data",(R=>ge.push(R))),ye.on("error",he),ye.on("finish",(()=>Ae(Se.concat(ge)))),ye.pushAny(R),ye.end()}))}static get SEMANTIC_TYPES(){return Le}static set SEMANTIC_TYPES(R){Le=R}static reset(){N.SEMANTIC_TYPES={...Fe}}}Object.assign(Fe,{Array:N.pushArray,Date:N._pushDate,Buffer:N._pushBuffer,[Se.name]:N._pushBuffer,Map:N._pushMap,NoFilter:N._pushNoFilter,[ge.name]:N._pushNoFilter,RegExp:N._pushRegexp,Set:N._pushSet,ArrayBuffer:N._pushArrayBuffer,Uint8ClampedArray:N._pushTypedArray,Uint8Array:N._pushTypedArray,Uint16Array:N._pushTypedArray,Uint32Array:N._pushTypedArray,Int8Array:N._pushTypedArray,Int16Array:N._pushTypedArray,Int32Array:N._pushTypedArray,Float32Array:N._pushTypedArray,Float64Array:N._pushTypedArray,URL:N._pushURL,Boolean:N._pushBoxed,Number:N._pushBoxed,String:N._pushBoxed}),"undefined"!=typeof BigUint64Array&&(Fe[BigUint64Array.name]=N._pushTypedArray),"undefined"!=typeof BigInt64Array&&(Fe[BigInt64Array.name]=N._pushTypedArray),N.reset(),R.exports=N},3070:(R,pe,Ae)=>{"use strict";const{Buffer:he}=Ae(8764),ge=Ae(4666),ye=Ae(6774),{MT:me}=Ae(9066);class a extends Map{constructor(R){super(R)}static _encode(R){return ge.encodeCanonical(R).toString("base64")}static _decode(R){return ye.decodeFirstSync(R,"base64")}get(R){return super.get(a._encode(R))}set(R,pe){return super.set(a._encode(R),pe)}delete(R){return super.delete(a._encode(R))}has(R){return super.has(a._encode(R))}*keys(){for(const R of super.keys())yield a._decode(R)}*entries(){for(const R of super.entries())yield[a._decode(R[0]),R[1]]}[Symbol.iterator](){return this.entries()}forEach(R,pe){if("function"!=typeof R)throw new TypeError("Must be function");for(const pe of super.entries())R.call(this,pe[1],a._decode(pe[0]),this)}encodeCBOR(R){if(!R._pushInt(this.size,me.MAP))return!1;if(R.canonical){const pe=Array.from(super.entries()).map((R=>[he.from(R[0],"base64"),R[1]]));pe.sort(((R,pe)=>R[0].compare(pe[0])));for(const Ae of pe)if(!R.push(Ae[0])||!R.pushAny(Ae[1]))return!1}else for(const pe of super.entries())if(!R.push(he.from(pe[0],"base64"))||!R.pushAny(pe[1]))return!1;return!0}}R.exports=a},1226:R=>{"use strict";class t{constructor(){this.clear()}clear(){this.map=new WeakMap,this.count=0,this.recording=!0}stop(){this.recording=!1}check(R){const pe=this.map.get(R);if(pe)return pe.length>1?pe[0]||this.recording?pe[1]:(pe[0]=!0,t.FIRST):this.recording?(pe.push(this.count++),pe[1]):t.NEVER;if(!this.recording)throw new Error("New object detected when not recording");return this.map.set(R,[!1]),t.NEVER}}t.NEVER=-1,t.FIRST=-2,R.exports=t},8112:(R,pe,Ae)=>{"use strict";const he=Ae(4666),ge=Ae(1226),{Buffer:ye}=Ae(8764);class s extends he{constructor(R){super(R),this.valueSharing=new ge}_pushObject(R,pe){if(null!==R){const pe=this.valueSharing.check(R);switch(pe){case ge.FIRST:this._pushTag(28);break;case ge.NEVER:break;default:return this._pushTag(29)&&this._pushIntNum(pe)}}return super._pushObject(R,pe)}stopRecording(){this.valueSharing.stop()}clearRecording(){this.valueSharing.clear()}static encode(...R){const pe=new s;pe.on("data",(()=>{}));for(const Ae of R)pe.pushAny(Ae);return pe.stopRecording(),pe.removeAllListeners("data"),pe._encodeAll(R)}static encodeCanonical(...R){throw new Error("Cannot encode canonically in a SharedValueEncoder, which serializes objects multiple times.")}static encodeOne(R,pe){const Ae=new s(pe);return Ae.on("data",(()=>{})),Ae.pushAny(R),Ae.stopRecording(),Ae.removeAllListeners("data"),Ae._encodeAll([R])}static encodeAsync(R,pe){return new Promise(((Ae,he)=>{const ge=[],me=new s(pe);me.on("data",(()=>{})),me.on("error",he),me.on("finish",(()=>Ae(ye.concat(ge)))),me.pushAny(R),me.stopRecording(),me.removeAllListeners("data"),me.on("data",(R=>ge.push(R))),me.pushAny(R),me.end()}))}}R.exports=s},9032:(R,pe,Ae)=>{"use strict";const{MT:he,SIMPLE:ge,SYMS:ye}=Ae(9066);class s{constructor(R){if("number"!=typeof R)throw new Error("Invalid Simple type: "+typeof R);if(R<0||R>255||(0|R)!==R)throw new Error(`value must be a small positive integer: ${R}`);this.value=R}toString(){return`simple(${this.value})`}[Symbol.for("nodejs.util.inspect.custom")](R,pe){return`simple(${this.value})`}encodeCBOR(R){return R._pushInt(this.value,he.SIMPLE_FLOAT)}static isSimple(R){return R instanceof s}static decode(R,pe=!0,Ae=!1){switch(R){case ge.FALSE:return!1;case ge.TRUE:return!0;case ge.NULL:return pe?null:ye.NULL;case ge.UNDEFINED:if(pe)return;return ye.UNDEFINED;case-1:if(!pe||!Ae)throw new Error("Invalid BREAK");return ye.BREAK;default:return new s(R)}}}R.exports=s},4785:(R,pe,Ae)=>{"use strict";const he=Ae(9066),ge=Ae(9873),ye=Symbol("INTERNAL_JSON");function s(R,pe){if(ge.isBufferish(R))R.toJSON=pe;else if(Array.isArray(R))for(const Ae of R)s(Ae,pe);else if(R&&"object"==typeof R&&(!(R instanceof p)||R.tag<21||R.tag>23))for(const Ae of Object.values(R))s(Ae,pe)}function a(){return ge.base64(this)}function l(){return ge.base64url(this)}function u(){return this.toString("hex")}const me={0:R=>new Date(R),1:R=>new Date(1e3*R),2:R=>ge.bufferToBigInt(R),3:R=>he.BI.MINUS_ONE-ge.bufferToBigInt(R),21:(R,pe)=>(ge.isBufferish(R)?pe[ye]=l:s(R,l),pe),22:(R,pe)=>(ge.isBufferish(R)?pe[ye]=a:s(R,a),pe),23:(R,pe)=>(ge.isBufferish(R)?pe[ye]=u:s(R,u),pe),32:R=>new URL(R),33:(R,pe)=>{if(!R.match(/^[a-zA-Z0-9_-]+$/))throw new Error("Invalid base64url characters");const Ae=R.length%4;if(1===Ae)throw new Error("Invalid base64url length");if(2===Ae){if(-1==="AQgw".indexOf(R[R.length-1]))throw new Error("Invalid base64 padding")}else if(3===Ae&&-1==="AEIMQUYcgkosw048".indexOf(R[R.length-1]))throw new Error("Invalid base64 padding");return pe},34:(R,pe)=>{const Ae=R.match(/^[a-zA-Z0-9+/]+(?={0,2})$/);if(!Ae)throw new Error("Invalid base64 characters");if(R.length%4!=0)throw new Error("Invalid base64 length");if("="===Ae.groups.padding){if(-1==="AQgw".indexOf(R[R.length-2]))throw new Error("Invalid base64 padding")}else if("=="===Ae.groups.padding&&-1==="AEIMQUYcgkosw048".indexOf(R[R.length-3]))throw new Error("Invalid base64 padding");return pe},35:R=>new RegExp(R),258:R=>new Set(R)},ve={64:Uint8Array,65:Uint16Array,66:Uint32Array,68:Uint8ClampedArray,69:Uint16Array,70:Uint32Array,72:Int8Array,73:Int16Array,74:Int32Array,77:Int16Array,78:Int32Array,81:Float32Array,82:Float64Array,85:Float32Array,86:Float64Array};function h(R,pe){if(!ge.isBufferish(R))throw new TypeError("val not a buffer");const{tag:Ae}=pe,he=ve[Ae];if(!he)throw new Error(`Invalid typed array tag: ${Ae}`);const ye=2**(((16&Ae)>>4)+(3&Ae));return!(4&Ae)!==ge.isBigEndian()&&ye>1&&function(R,pe,Ae,he){const ge=new DataView(R),[ye,me]={2:[ge.getUint16,ge.setUint16],4:[ge.getUint32,ge.setUint32],8:[ge.getBigUint64,ge.setBigUint64]}[pe],ve=Ae+he;for(let R=Ae;R0?this.err=R.message:this.err=R,this}}static get TAGS(){return be}static set TAGS(R){be=R}static reset(){p.TAGS={...me}}}p.INTERNAL_JSON=ye,p.reset(),R.exports=p},9873:(R,pe,Ae)=>{"use strict";const{Buffer:he}=Ae(8764),ge=Ae(4202),ye=Ae(2830),me=Ae(9066),{NUMBYTES:ve,SHIFT32:be,BI:Ee,SYMS:we}=me,Ce=new TextDecoder("utf8",{fatal:!0,ignoreBOM:!0});pe.utf8=R=>Ce.decode(R),pe.utf8.checksUTF8=!0,pe.isBufferish=function(R){return R&&"object"==typeof R&&(he.isBuffer(R)||R instanceof Uint8Array||R instanceof Uint8ClampedArray||R instanceof ArrayBuffer||R instanceof DataView)},pe.bufferishToBuffer=function(R){return he.isBuffer(R)?R:ArrayBuffer.isView(R)?he.from(R.buffer,R.byteOffset,R.byteLength):R instanceof ArrayBuffer?he.from(R):null},pe.parseCBORint=function(R,pe){switch(R){case ve.ONE:return pe.readUInt8(0);case ve.TWO:return pe.readUInt16BE(0);case ve.FOUR:return pe.readUInt32BE(0);case ve.EIGHT:{const R=pe.readUInt32BE(0),Ae=pe.readUInt32BE(4);return R>2097151?BigInt(R)*Ee.SHIFT32+BigInt(Ae):R*be+Ae}default:throw new Error(`Invalid additional info for int: ${R}`)}},pe.writeHalf=function(R,pe){const Ae=he.allocUnsafe(4);Ae.writeFloatBE(pe,0);const ge=Ae.readUInt32BE(0);if(0!=(8191&ge))return!1;let ye=ge>>16&32768;const me=ge>>23&255,ve=8388607≥if(me>=113&&me<=142)ye+=(me-112<<10)+(ve>>13);else{if(!(me>=103&&me<113))return!1;if(ve&(1<<126-me)-1)return!1;ye+=ve+8388608>>126-me}return R.writeUInt16BE(ye),!0},pe.parseHalf=function(R){const pe=128&R[0]?-1:1,Ae=(124&R[0])>>2,he=(3&R[0])<<8|R[1];return Ae?31===Ae?pe*(he?NaN:1/0):pe*2**(Ae-25)*(1024+he):5.960464477539063e-8*pe*he},pe.parseCBORfloat=function(R){switch(R.length){case 2:return pe.parseHalf(R);case 4:return R.readFloatBE(0);case 8:return R.readDoubleBE(0);default:throw new Error(`Invalid float size: ${R.length}`)}},pe.hex=function(R){return he.from(R.replace(/^0x/,""),"hex")},pe.bin=function(R){let pe=0,Ae=(R=R.replace(/\s/g,"")).length%8||8;const ge=[];for(;Ae<=R.length;)ge.push(parseInt(R.slice(pe,Ae),2)),pe=Ae,Ae+=8;return he.from(ge)},pe.arrayEqual=function(R,pe){return null==R&&null==pe||null!=R&&null!=pe&&R.length===pe.length&&R.every(((R,Ae)=>R===pe[Ae]))},pe.bufferToBigInt=function(R){return BigInt(`0x${R.toString("hex")}`)},pe.cborValueToString=function(R,Ae=-1){switch(typeof R){case"symbol":{switch(R){case we.NULL:return"null";case we.UNDEFINED:return"undefined";case we.BREAK:return"BREAK"}if(R.description)return R.description;const pe=R.toString().match(/^Symbol\((?.*)\)/);return pe&&pe.groups.name?pe.groups.name:"Symbol"}case"string":return JSON.stringify(R);case"bigint":return R.toString();case"number":{const pe=Object.is(R,-0)?"-0":String(R);return Ae>0?`${pe}_${Ae}`:pe}case"object":{if(!R)return"null";const he=pe.bufferishToBuffer(R);if(he){const R=he.toString("hex");return Ae===-1/0?R:`h'${R}'`}return R&&"function"==typeof R[Symbol.for("nodejs.util.inspect.custom")]?R[Symbol.for("nodejs.util.inspect.custom")]():Array.isArray(R)?"[]":"{}"}}return String(R)},pe.guessEncoding=function(R,Ae){if("string"==typeof R)return new ge(R,null==Ae?"hex":Ae);const he=pe.bufferishToBuffer(R);if(he)return new ge(he);if((me=R)instanceof ye.Readable||["read","on","pipe"].every((R=>"function"==typeof me[R])))return R;var me;throw new Error("Unknown input type")};const _e={"=":"","+":"-","/":"_"};pe.base64url=function(R){return pe.bufferishToBuffer(R).toString("base64").replace(/[=+/]/g,(R=>_e[R]))},pe.base64=function(R){return pe.bufferishToBuffer(R).toString("base64")},pe.isBigEndian=function(){const R=new Uint8Array(4);return!((new Uint32Array(R.buffer)[0]=1)&R[0])}},4202:(R,pe,Ae)=>{"use strict";const he=Ae(2830),{Buffer:ge}=Ae(8764),ye=new TextDecoder("utf8",{fatal:!0,ignoreBOM:!0});class s extends he.Transform{constructor(R,pe,Ae={}){let he=null,ye=null;switch(typeof R){case"object":ge.isBuffer(R)?he=R:R&&(Ae=R);break;case"string":he=R;break;case"undefined":break;default:throw new TypeError("Invalid input")}switch(typeof pe){case"object":pe&&(Ae=pe);break;case"string":ye=pe;break;case"undefined":break;default:throw new TypeError("Invalid inputEncoding")}if(!Ae||"object"!=typeof Ae)throw new TypeError("Invalid options");null==he&&(he=Ae.input),null==ye&&(ye=Ae.inputEncoding),delete Ae.input,delete Ae.inputEncoding;const me=null==Ae.watchPipe||Ae.watchPipe;delete Ae.watchPipe;const ve=Boolean(Ae.readError);delete Ae.readError,super(Ae),this.readError=ve,me&&this.on("pipe",(R=>{const pe=R._readableState.objectMode;if(this.length>0&&pe!==this._readableState.objectMode)throw new Error("Do not switch objectMode in the middle of the stream");this._readableState.objectMode=pe,this._writableState.objectMode=pe})),null!=he&&this.end(he,ye)}static isNoFilter(R){return R instanceof this}static compare(R,pe){if(!(R instanceof this))throw new TypeError("Arguments must be NoFilters");return R===pe?0:R.compare(pe)}static concat(R,pe){if(!Array.isArray(R))throw new TypeError("list argument must be an Array of NoFilters");if(0===R.length||0===pe)return ge.alloc(0);null==pe&&(pe=R.reduce(((R,pe)=>{if(!(pe instanceof s))throw new TypeError("list argument must be an Array of NoFilters");return R+pe.length}),0));let Ae=!0,he=!0;const ye=R.map((R=>{if(!(R instanceof s))throw new TypeError("list argument must be an Array of NoFilters");const pe=R.slice();return ge.isBuffer(pe)?he=!1:Ae=!1,pe}));if(Ae)return ge.concat(ye,pe);if(he)return[].concat(...ye).slice(0,pe);throw new Error("Concatenating mixed object and byte streams not supported")}_transform(R,pe,Ae){this._readableState.objectMode||ge.isBuffer(R)||(R=ge.from(R,pe)),this.push(R),Ae()}_bufArray(){let R=this._readableState.buffer;if(!Array.isArray(R)){let pe=R.head;for(R=[];null!=pe;)R.push(pe.data),pe=pe.next}return R}read(R){const pe=super.read(R);if(null!=pe){if(this.emit("read",pe),this.readError&&pe.length{this.length>=R?ge(this.read(R)):this.writableFinished?ye(new Error(`Stream finished before ${R} bytes were available`)):(pe=pe=>{this.length>=R&&ge(this.read(R))},Ae=()=>{ye(new Error(`Stream finished before ${R} bytes were available`))},he=ye,this.on("readable",pe),this.on("error",he),this.on("finish",Ae))})).finally((()=>{pe&&(this.removeListener("readable",pe),this.removeListener("error",he),this.removeListener("finish",Ae))}))}promise(R){let pe=!1;return new Promise(((Ae,he)=>{this.on("finish",(()=>{const he=this.read();null==R||pe||(pe=!0,R(null,he)),Ae(he)})),this.on("error",(Ae=>{null==R||pe||(pe=!0,R(Ae)),he(Ae)}))}))}compare(R){if(!(R instanceof s))throw new TypeError("Arguments must be NoFilters");if(this===R)return 0;const pe=this.slice(),Ae=R.slice();if(ge.isBuffer(pe)&&ge.isBuffer(Ae))return pe.compare(Ae);throw new Error("Cannot compare streams in object mode")}equals(R){return 0===this.compare(R)}slice(R,pe){if(this._readableState.objectMode)return this._bufArray().slice(R,pe);const Ae=this._bufArray();switch(Ae.length){case 0:return ge.alloc(0);case 1:return Ae[0].slice(R,pe);default:return ge.concat(Ae).slice(R,pe)}}get(R){return this.slice()[R]}toJSON(){const R=this.slice();return ge.isBuffer(R)?R.toJSON():R}toString(R,pe,Ae){const he=this.slice(pe,Ae);return ge.isBuffer(he)?R&&"utf8"!==R?he.toString(R):ye.decode(he):JSON.stringify(he)}[Symbol.for("nodejs.util.inspect.custom")](R,pe){const Ae=this._bufArray().map((R=>ge.isBuffer(R)?pe.stylize(R.toString("hex"),"string"):JSON.stringify(R))).join(", ");return`${this.constructor.name} [${Ae}]`}get length(){return this._readableState.length}writeBigInt(R){let pe=R.toString(16);if(R<0){const Ae=BigInt(Math.floor(pe.length/2));pe=(R=(BigInt(1)<{"use strict";const he=Ae(2830),ge=Ae(4202);class o extends he.Transform{constructor(R){super(R),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this.bs=new ge,this.__restart()}_transform(R,pe,Ae){for(this.bs.write(R);this.bs.length>=this.__needed;){let pe=null;const he=null===this.__needed?void 0:this.bs.read(this.__needed);try{pe=this.__parser.next(he)}catch(R){return Ae(R)}this.__needed&&(this.__fresh=!1),pe.done?(this.push(pe.value),this.__restart()):this.__needed=pe.value||1/0}return Ae()}*_parse(){throw new Error("Must be implemented in subclass")}__restart(){this.__needed=null,this.__parser=this._parse(),this.__fresh=!0}_flush(R){R(this.__fresh?null:new Error("unexpected end of input"))}}R.exports=o},7187:R=>{"use strict";var pe,Ae="object"==typeof Reflect?Reflect:null,he=Ae&&"function"==typeof Ae.apply?Ae.apply:function(R,pe,Ae){return Function.prototype.apply.call(R,pe,Ae)};pe=Ae&&"function"==typeof Ae.ownKeys?Ae.ownKeys:Object.getOwnPropertySymbols?function(R){return Object.getOwnPropertyNames(R).concat(Object.getOwnPropertySymbols(R))}:function(R){return Object.getOwnPropertyNames(R)};var ge=Number.isNaN||function(R){return R!=R};function o(){o.init.call(this)}R.exports=o,R.exports.once=function(R,pe){return new Promise((function(Ae,he){function i(Ae){R.removeListener(pe,o),he(Ae)}function o(){"function"==typeof R.removeListener&&R.removeListener("error",i),Ae([].slice.call(arguments))}b(R,pe,o,{once:!0}),"error"!==pe&&function(R,pe,Ae){"function"==typeof R.on&&b(R,"error",pe,{once:!0})}(R,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var ye=10;function a(R){if("function"!=typeof R)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof R)}function l(R){return void 0===R._maxListeners?o.defaultMaxListeners:R._maxListeners}function u(R,pe,Ae,he){var ge,ye,me,ve;if(a(Ae),void 0===(ye=R._events)?(ye=R._events=Object.create(null),R._eventsCount=0):(void 0!==ye.newListener&&(R.emit("newListener",pe,Ae.listener?Ae.listener:Ae),ye=R._events),me=ye[pe]),void 0===me)me=ye[pe]=Ae,++R._eventsCount;else if("function"==typeof me?me=ye[pe]=he?[Ae,me]:[me,Ae]:he?me.unshift(Ae):me.push(Ae),(ge=l(R))>0&&me.length>ge&&!me.warned){me.warned=!0;var be=new Error("Possible EventEmitter memory leak detected. "+me.length+" "+String(pe)+" listeners added. Use emitter.setMaxListeners() to increase limit");be.name="MaxListenersExceededWarning",be.emitter=R,be.type=pe,be.count=me.length,ve=be,console&&console.warn&&console.warn(ve)}return R}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(R,pe,Ae){var he={fired:!1,wrapFn:void 0,target:R,type:pe,listener:Ae},ge=c.bind(he);return ge.listener=Ae,he.wrapFn=ge,ge}function h(R,pe,Ae){var he=R._events;if(void 0===he)return[];var ge=he[pe];return void 0===ge?[]:"function"==typeof ge?Ae?[ge.listener||ge]:[ge]:Ae?function(R){for(var pe=new Array(R.length),Ae=0;Ae0&&(me=pe[0]),me instanceof Error)throw me;var ve=new Error("Unhandled error."+(me?" ("+me.message+")":""));throw ve.context=me,ve}var be=ye[R];if(void 0===be)return!1;if("function"==typeof be)he(be,this,pe);else{var Ee=be.length,we=p(be,Ee);for(Ae=0;Ae=0;ye--)if(Ae[ye]===pe||Ae[ye].listener===pe){me=Ae[ye].listener,ge=ye;break}if(ge<0)return this;0===ge?Ae.shift():function(R,pe){for(;pe+1=0;he--)this.removeListener(R,pe[he]);return this},o.prototype.listeners=function(R){return h(this,R,!0)},o.prototype.rawListeners=function(R){return h(this,R,!1)},o.listenerCount=function(R,pe){return"function"==typeof R.listenerCount?R.listenerCount(pe):d.call(R,pe)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?pe(this._events):[]}},645:(R,pe)=>{pe.read=function(R,pe,Ae,he,ge){var ye,me,ve=8*ge-he-1,be=(1<>1,we=-7,Ce=Ae?ge-1:0,_e=Ae?-1:1,Ie=R[pe+Ce];for(Ce+=_e,ye=Ie&(1<<-we)-1,Ie>>=-we,we+=ve;we>0;ye=256*ye+R[pe+Ce],Ce+=_e,we-=8);for(me=ye&(1<<-we)-1,ye>>=-we,we+=he;we>0;me=256*me+R[pe+Ce],Ce+=_e,we-=8);if(0===ye)ye=1-Ee;else{if(ye===be)return me?NaN:1/0*(Ie?-1:1);me+=Math.pow(2,he),ye-=Ee}return(Ie?-1:1)*me*Math.pow(2,ye-he)},pe.write=function(R,pe,Ae,he,ge,ye){var me,ve,be,Ee=8*ye-ge-1,we=(1<>1,_e=23===ge?Math.pow(2,-24)-Math.pow(2,-77):0,Ie=he?0:ye-1,Se=he?1:-1,Be=pe<0||0===pe&&1/pe<0?1:0;for(pe=Math.abs(pe),isNaN(pe)||pe===1/0?(ve=isNaN(pe)?1:0,me=we):(me=Math.floor(Math.log(pe)/Math.LN2),pe*(be=Math.pow(2,-me))<1&&(me--,be*=2),(pe+=me+Ce>=1?_e/be:_e*Math.pow(2,1-Ce))*be>=2&&(me++,be/=2),me+Ce>=we?(ve=0,me=we):me+Ce>=1?(ve=(pe*be-1)*Math.pow(2,ge),me+=Ce):(ve=pe*Math.pow(2,Ce-1)*Math.pow(2,ge),me=0));ge>=8;R[Ae+Ie]=255&ve,Ie+=Se,ve/=256,ge-=8);for(me=me<0;R[Ae+Ie]=255&me,Ie+=Se,me/=256,Ee-=8);R[Ae+Ie-Se]|=128*Be}},5717:R=>{"function"==typeof Object.create?R.exports=function(R,pe){pe&&(R.super_=pe,R.prototype=Object.create(pe.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}))}:R.exports=function(R,pe){if(pe){R.super_=pe;var r=function(){};r.prototype=pe.prototype,R.prototype=new r,R.prototype.constructor=R}}},4155:R=>{var pe,Ae,he=R.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(R){if(pe===setTimeout)return setTimeout(R,0);if((pe===i||!pe)&&setTimeout)return pe=setTimeout,setTimeout(R,0);try{return pe(R,0)}catch(Ae){try{return pe.call(null,R,0)}catch(Ae){return pe.call(this,R,0)}}}!function(){try{pe="function"==typeof setTimeout?setTimeout:i}catch(R){pe=i}try{Ae="function"==typeof clearTimeout?clearTimeout:o}catch(R){Ae=o}}();var ge,ye=[],me=!1,ve=-1;function f(){me&&ge&&(me=!1,ge.length?ye=ge.concat(ye):ve=-1,ye.length&&h())}function h(){if(!me){var R=s(f);me=!0;for(var pe=ye.length;pe;){for(ge=ye,ye=[];++ve1)for(var Ae=1;Ae{"use strict";R.exports=Ae(5099).Duplex},2725:(R,pe,Ae)=>{"use strict";R.exports=Ae(5099).PassThrough},9481:(R,pe,Ae)=>{"use strict";R.exports=Ae(5099).Readable},4605:(R,pe,Ae)=>{"use strict";R.exports=Ae(5099).Transform},4229:(R,pe,Ae)=>{"use strict";R.exports=Ae(5099).Writable},196:(R,pe,Ae)=>{"use strict";const{SymbolDispose:he}=Ae(9061),{AbortError:ge,codes:ye}=Ae(4381),{isNodeStream:me,isWebStream:ve,kControllerErrorFunction:be}=Ae(5874),Ee=Ae(8610),{ERR_INVALID_ARG_TYPE:we}=ye;let Ce;R.exports.addAbortSignal=function(pe,Ae){if(((R,pe)=>{if("object"!=typeof R||!("aborted"in R))throw new we("signal","AbortSignal",R)})(pe),!me(Ae)&&!ve(Ae))throw new we("stream",["ReadableStream","WritableStream","Stream"],Ae);return R.exports.addAbortSignalNoValidate(pe,Ae)},R.exports.addAbortSignalNoValidate=function(R,pe){if("object"!=typeof R||!("aborted"in R))return pe;const ye=me(pe)?()=>{pe.destroy(new ge(void 0,{cause:R.reason}))}:()=>{pe[be](new ge(void 0,{cause:R.reason}))};if(R.aborted)ye();else{Ce=Ce||Ae(6087).addAbortListener;const ge=Ce(R,ye);Ee(pe,ge[he])}return pe}},7327:(R,pe,Ae)=>{"use strict";const{StringPrototypeSlice:he,SymbolIterator:ge,TypedArrayPrototypeSet:ye,Uint8Array:me}=Ae(9061),{Buffer:ve}=Ae(8764),{inspect:be}=Ae(6087);R.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(R){const pe={data:R,next:null};this.length>0?this.tail.next=pe:this.head=pe,this.tail=pe,++this.length}unshift(R){const pe={data:R,next:this.head};0===this.length&&(this.tail=pe),this.head=pe,++this.length}shift(){if(0===this.length)return;const R=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,R}clear(){this.head=this.tail=null,this.length=0}join(R){if(0===this.length)return"";let pe=this.head,Ae=""+pe.data;for(;null!==(pe=pe.next);)Ae+=R+pe.data;return Ae}concat(R){if(0===this.length)return ve.alloc(0);const pe=ve.allocUnsafe(R>>>0);let Ae=this.head,he=0;for(;Ae;)ye(pe,Ae.data,he),he+=Ae.data.length,Ae=Ae.next;return pe}consume(R,pe){const Ae=this.head.data;if(Rye.length)){R===ye.length?(pe+=ye,++ge,Ae.next?this.head=Ae.next:this.head=this.tail=null):(pe+=he(ye,0,R),this.head=Ae,Ae.data=he(ye,R));break}pe+=ye,R-=ye.length,++ge}while(null!==(Ae=Ae.next));return this.length-=ge,pe}_getBuffer(R){const pe=ve.allocUnsafe(R),Ae=R;let he=this.head,ge=0;do{const ve=he.data;if(!(R>ve.length)){R===ve.length?(ye(pe,ve,Ae-R),++ge,he.next?this.head=he.next:this.head=this.tail=null):(ye(pe,new me(ve.buffer,ve.byteOffset,R),Ae-R),this.head=he,he.data=ve.slice(R));break}ye(pe,ve,Ae-R),R-=ve.length,++ge}while(null!==(he=he.next));return this.length-=ge,pe}[Symbol.for("nodejs.util.inspect.custom")](R,pe){return be(this,{...pe,depth:0,customInspect:!1})}}},299:(R,pe,Ae)=>{"use strict";const{pipeline:he}=Ae(9946),ge=Ae(8672),{destroyer:ye}=Ae(1195),{isNodeStream:me,isReadable:ve,isWritable:be,isWebStream:Ee,isTransformStream:we,isWritableStream:Ce,isReadableStream:_e}=Ae(5874),{AbortError:Ie,codes:{ERR_INVALID_ARG_VALUE:Se,ERR_MISSING_ARGS:Be}}=Ae(4381),ke=Ae(8610);R.exports=function(...R){if(0===R.length)throw new Be("streams");if(1===R.length)return ge.from(R[0]);const pe=[...R];if("function"==typeof R[0]&&(R[0]=ge.from(R[0])),"function"==typeof R[R.length-1]){const pe=R.length-1;R[pe]=ge.from(R[pe])}for(let Ae=0;Ae0&&!(be(R[Ae])||Ce(R[Ae])||we(R[Ae])))throw new Se(`streams[${Ae}]`,pe[Ae],"must be writable")}let Ae,Oe,Re,Qe,xe;const Pe=R[0],Te=he(R,(function(R){const pe=Qe;Qe=null,pe?pe(R):R?xe.destroy(R):Ne||De||xe.destroy()})),De=!!(be(Pe)||Ce(Pe)||we(Pe)),Ne=!!(ve(Te)||_e(Te)||we(Te));if(xe=new ge({writableObjectMode:!(null==Pe||!Pe.writableObjectMode),readableObjectMode:!(null==Te||!Te.readableObjectMode),writable:De,readable:Ne}),De){if(me(Pe))xe._write=function(R,pe,he){Pe.write(R,pe)?he():Ae=he},xe._final=function(R){Pe.end(),Oe=R},Pe.on("drain",(function(){if(Ae){const R=Ae;Ae=null,R()}}));else if(Ee(Pe)){const R=(we(Pe)?Pe.writable:Pe).getWriter();xe._write=async function(pe,Ae,he){try{await R.ready,R.write(pe).catch((()=>{})),he()}catch(R){he(R)}},xe._final=async function(pe){try{await R.ready,R.close().catch((()=>{})),Oe=pe}catch(R){pe(R)}}}const R=we(Te)?Te.readable:Te;ke(R,(()=>{if(Oe){const R=Oe;Oe=null,R()}}))}if(Ne)if(me(Te))Te.on("readable",(function(){if(Re){const R=Re;Re=null,R()}})),Te.on("end",(function(){xe.push(null)})),xe._read=function(){for(;;){const R=Te.read();if(null===R)return void(Re=xe._read);if(!xe.push(R))return}};else if(Ee(Te)){const R=(we(Te)?Te.readable:Te).getReader();xe._read=async function(){for(;;)try{const{value:pe,done:Ae}=await R.read();if(!xe.push(pe))return;if(Ae)return void xe.push(null)}catch{return}}}return xe._destroy=function(R,pe){R||null===Qe||(R=new Ie),Re=null,Ae=null,Oe=null,null===Qe?pe(R):(Qe=pe,me(Te)&&ye(Te,R))},xe}},1195:(R,pe,Ae)=>{"use strict";const he=Ae(4155),{aggregateTwoErrors:ge,codes:{ERR_MULTIPLE_CALLBACK:ye},AbortError:me}=Ae(4381),{Symbol:ve}=Ae(9061),{kIsDestroyed:be,isDestroyed:Ee,isFinished:we,isServerRequest:Ce}=Ae(5874),_e=ve("kDestroy"),Ie=ve("kConstruct");function p(R,pe,Ae){R&&(R.stack,pe&&!pe.errored&&(pe.errored=R),Ae&&!Ae.errored&&(Ae.errored=R))}function b(R,pe,Ae){let ge=!1;function o(pe){if(ge)return;ge=!0;const ye=R._readableState,me=R._writableState;p(pe,me,ye),me&&(me.closed=!0),ye&&(ye.closed=!0),"function"==typeof Ae&&Ae(pe),pe?he.nextTick(y,R,pe):he.nextTick(g,R)}try{R._destroy(pe||null,o)}catch(pe){o(pe)}}function y(R,pe){w(R,pe),g(R)}function g(R){const pe=R._readableState,Ae=R._writableState;Ae&&(Ae.closeEmitted=!0),pe&&(pe.closeEmitted=!0),(null!=Ae&&Ae.emitClose||null!=pe&&pe.emitClose)&&R.emit("close")}function w(R,pe){const Ae=R._readableState,he=R._writableState;null!=he&&he.errorEmitted||null!=Ae&&Ae.errorEmitted||(he&&(he.errorEmitted=!0),Ae&&(Ae.errorEmitted=!0),R.emit("error",pe))}function _(R,pe,Ae){const ge=R._readableState,ye=R._writableState;if(null!=ye&&ye.destroyed||null!=ge&&ge.destroyed)return this;null!=ge&&ge.autoDestroy||null!=ye&&ye.autoDestroy?R.destroy(pe):pe&&(pe.stack,ye&&!ye.errored&&(ye.errored=pe),ge&&!ge.errored&&(ge.errored=pe),Ae?he.nextTick(w,R,pe):w(R,pe))}function m(R){let pe=!1;function r(Ae){if(pe)return void _(R,null!=Ae?Ae:new ye);pe=!0;const ge=R._readableState,me=R._writableState,ve=me||ge;ge&&(ge.constructed=!0),me&&(me.constructed=!0),ve.destroyed?R.emit(_e,Ae):Ae?_(R,Ae,!0):he.nextTick(E,R)}try{R._construct((R=>{he.nextTick(r,R)}))}catch(R){he.nextTick(r,R)}}function E(R){R.emit(Ie)}function S(R){return(null==R?void 0:R.setHeader)&&"function"==typeof R.abort}function v(R){R.emit("close")}function A(R,pe){R.emit("error",pe),he.nextTick(v,R)}R.exports={construct:function(R,pe){if("function"!=typeof R._construct)return;const Ae=R._readableState,ge=R._writableState;Ae&&(Ae.constructed=!1),ge&&(ge.constructed=!1),R.once(Ie,pe),R.listenerCount(Ie)>1||he.nextTick(m,R)},destroyer:function(R,pe){R&&!Ee(R)&&(pe||we(R)||(pe=new me),Ce(R)?(R.socket=null,R.destroy(pe)):S(R)?R.abort():S(R.req)?R.req.abort():"function"==typeof R.destroy?R.destroy(pe):"function"==typeof R.close?R.close():pe?he.nextTick(A,R,pe):he.nextTick(v,R),R.destroyed||(R[be]=!0))},destroy:function(R,pe){const Ae=this._readableState,he=this._writableState,ye=he||Ae;return null!=he&&he.destroyed||null!=Ae&&Ae.destroyed?("function"==typeof pe&&pe(),this):(p(R,he,Ae),he&&(he.destroyed=!0),Ae&&(Ae.destroyed=!0),ye.constructed?b(this,R,pe):this.once(_e,(function(Ae){b(this,ge(Ae,R),pe)})),this)},undestroy:function(){const R=this._readableState,pe=this._writableState;R&&(R.constructed=!0,R.closed=!1,R.closeEmitted=!1,R.destroyed=!1,R.errored=null,R.errorEmitted=!1,R.reading=!1,R.ended=!1===R.readable,R.endEmitted=!1===R.readable),pe&&(pe.constructed=!0,pe.destroyed=!1,pe.closed=!1,pe.closeEmitted=!1,pe.errored=null,pe.errorEmitted=!1,pe.finalCalled=!1,pe.prefinished=!1,pe.ended=!1===pe.writable,pe.ending=!1===pe.writable,pe.finished=!1===pe.writable)},errorOrDestroy:_}},8672:(R,pe,Ae)=>{"use strict";const{ObjectDefineProperties:he,ObjectGetOwnPropertyDescriptor:ge,ObjectKeys:ye,ObjectSetPrototypeOf:me}=Ae(9061);R.exports=u;const ve=Ae(911),be=Ae(6304);me(u.prototype,ve.prototype),me(u,ve);{const R=ye(be.prototype);for(let pe=0;pe{const he=Ae(4155),ge=Ae(8764),{isReadable:ye,isWritable:me,isIterable:ve,isNodeStream:be,isReadableNodeStream:Ee,isWritableNodeStream:we,isDuplexNodeStream:Ce,isReadableStream:_e,isWritableStream:Ie}=Ae(5874),Se=Ae(8610),{AbortError:Be,codes:{ERR_INVALID_ARG_TYPE:ke,ERR_INVALID_RETURN_VALUE:Oe}}=Ae(4381),{destroyer:Re}=Ae(1195),Qe=Ae(8672),xe=Ae(911),Pe=Ae(6304),{createDeferredPromise:Te}=Ae(6087),De=Ae(6307),Ne=globalThis.Blob||ge.Blob,Me=void 0!==Ne?function(R){return R instanceof Ne}:function(R){return!1},je=globalThis.AbortController||Ae(8599).AbortController,{FunctionPrototypeCall:Fe}=Ae(9061);class B extends Qe{constructor(R){super(R),!1===(null==R?void 0:R.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==R?void 0:R.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function N(R){const pe=R.readable&&"function"!=typeof R.readable.read?xe.wrap(R.readable):R.readable,Ae=R.writable;let he,ge,ve,be,Ee,we=!!ye(pe),Ce=!!me(Ae);function h(R){const pe=be;be=null,pe?pe(R):R&&Ee.destroy(R)}return Ee=new B({readableObjectMode:!(null==pe||!pe.readableObjectMode),writableObjectMode:!(null==Ae||!Ae.writableObjectMode),readable:we,writable:Ce}),Ce&&(Se(Ae,(R=>{Ce=!1,R&&Re(pe,R),h(R)})),Ee._write=function(R,pe,ge){Ae.write(R,pe)?ge():he=ge},Ee._final=function(R){Ae.end(),ge=R},Ae.on("drain",(function(){if(he){const R=he;he=null,R()}})),Ae.on("finish",(function(){if(ge){const R=ge;ge=null,R()}}))),we&&(Se(pe,(R=>{we=!1,R&&Re(pe,R),h(R)})),pe.on("readable",(function(){if(ve){const R=ve;ve=null,R()}})),pe.on("end",(function(){Ee.push(null)})),Ee._read=function(){for(;;){const R=pe.read();if(null===R)return void(ve=Ee._read);if(!Ee.push(R))return}}),Ee._destroy=function(R,ye){R||null===be||(R=new Be),ve=null,he=null,ge=null,null===be?ye(R):(be=ye,Re(Ae,R),Re(pe,R))},Ee}R.exports=function e(R,pe){if(Ce(R))return R;if(Ee(R))return N({readable:R});if(we(R))return N({writable:R});if(be(R))return N({writable:!1,readable:!1});if(_e(R))return N({readable:xe.fromWeb(R)});if(Ie(R))return N({writable:Pe.fromWeb(R)});if("function"==typeof R){const{value:Ae,write:ge,final:ye,destroy:me}=function(R){let{promise:pe,resolve:Ae}=Te();const ge=new je,ye=ge.signal;return{value:R(async function*(){for(;;){const R=pe;pe=null;const{chunk:ge,done:me,cb:ve}=await R;if(he.nextTick(ve),me)return;if(ye.aborted)throw new Be(void 0,{cause:ye.reason});({promise:pe,resolve:Ae}=Te()),yield ge}}(),{signal:ye}),write(R,pe,he){const ge=Ae;Ae=null,ge({chunk:R,done:!1,cb:he})},final(R){const pe=Ae;Ae=null,pe({done:!0,cb:R})},destroy(R,pe){ge.abort(),pe(R)}}}(R);if(ve(Ae))return De(B,Ae,{objectMode:!0,write:ge,final:ye,destroy:me});const be=null==Ae?void 0:Ae.then;if("function"==typeof be){let R;const pe=Fe(be,Ae,(R=>{if(null!=R)throw new Oe("nully","body",R)}),(pe=>{Re(R,pe)}));return R=new B({objectMode:!0,readable:!1,write:ge,final(R){ye((async()=>{try{await pe,he.nextTick(R,null)}catch(pe){he.nextTick(R,pe)}}))},destroy:me})}throw new Oe("Iterable, AsyncIterable or AsyncFunction",pe,Ae)}if(Me(R))return e(R.arrayBuffer());if(ve(R))return De(B,R,{objectMode:!0,writable:!1});if(_e(null==R?void 0:R.readable)&&Ie(null==R?void 0:R.writable))return B.fromWeb(R);if("object"==typeof(null==R?void 0:R.writable)||"object"==typeof(null==R?void 0:R.readable))return N({readable:null!=R&&R.readable?Ee(null==R?void 0:R.readable)?null==R?void 0:R.readable:e(R.readable):void 0,writable:null!=R&&R.writable?we(null==R?void 0:R.writable)?null==R?void 0:R.writable:e(R.writable):void 0});const Ae=null==R?void 0:R.then;if("function"==typeof Ae){let pe;return Fe(Ae,R,(R=>{null!=R&&pe.push(R),pe.push(null)}),(R=>{Re(pe,R)})),pe=new B({objectMode:!0,writable:!1,read(){}})}throw new ke(pe,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],R)}},8610:(R,pe,Ae)=>{const he=Ae(4155),{AbortError:ge,codes:ye}=Ae(4381),{ERR_INVALID_ARG_TYPE:me,ERR_STREAM_PREMATURE_CLOSE:ve}=ye,{kEmptyObject:be,once:Ee}=Ae(6087),{validateAbortSignal:we,validateFunction:Ce,validateObject:_e,validateBoolean:Ie}=Ae(6547),{Promise:Se,PromisePrototypeThen:Be,SymbolDispose:ke}=Ae(9061),{isClosed:Oe,isReadable:Re,isReadableNodeStream:Qe,isReadableStream:xe,isReadableFinished:Pe,isReadableErrored:Te,isWritable:De,isWritableNodeStream:Ne,isWritableStream:Me,isWritableFinished:je,isWritableErrored:Fe,isNodeStream:Le,willEmitClose:Ue,kIsClosedPromise:He}=Ae(5874);let Je;const M=()=>{};function O(R,pe,ye){var Ie,Se;if(2===arguments.length?(ye=pe,pe=be):null==pe?pe=be:_e(pe,"options"),Ce(ye,"callback"),we(pe.signal,"options.signal"),ye=Ee(ye),xe(R)||Me(R))return function(R,pe,ye){let me=!1,ve=M;if(pe.signal)if(ve=()=>{me=!0,ye.call(R,new ge(void 0,{cause:pe.signal.reason}))},pe.signal.aborted)he.nextTick(ve);else{Je=Je||Ae(6087).addAbortListener;const he=Je(pe.signal,ve),ge=ye;ye=Ee(((...pe)=>{he[ke](),ge.apply(R,pe)}))}const l=(...pe)=>{me||he.nextTick((()=>ye.apply(R,pe)))};return Be(R[He].promise,l,l),M}(R,pe,ye);if(!Le(R))throw new me("stream",["ReadableStream","WritableStream","Stream"],R);const We=null!==(Ie=pe.readable)&&void 0!==Ie?Ie:Qe(R),Ve=null!==(Se=pe.writable)&&void 0!==Se?Se:Ne(R),Ke=R._writableState,Ge=R._readableState,j=()=>{R.writable||C()};let Ye=Ue(R)&&Qe(R)===We&&Ne(R)===Ve,qe=je(R,!1);const C=()=>{qe=!0,R.destroyed&&(Ye=!1),(!Ye||R.readable&&!We)&&(We&&!$e||ye.call(R))};let $e=Pe(R,!1);const W=()=>{$e=!0,R.destroyed&&(Ye=!1),(!Ye||R.writable&&!Ve)&&(Ve&&!qe||ye.call(R))},G=pe=>{ye.call(R,pe)};let ze=Oe(R);const H=()=>{ze=!0;const pe=Fe(R)||Te(R);return pe&&"boolean"!=typeof pe?ye.call(R,pe):We&&!$e&&Qe(R,!0)&&!Pe(R,!1)?ye.call(R,new ve):!Ve||qe||je(R,!1)?void ye.call(R):ye.call(R,new ve)},V=()=>{ze=!0;const pe=Fe(R)||Te(R);if(pe&&"boolean"!=typeof pe)return ye.call(R,pe);ye.call(R)},K=()=>{R.req.on("finish",C)};!function(R){return R.setHeader&&"function"==typeof R.abort}(R)?Ve&&!Ke&&(R.on("end",j),R.on("close",j)):(R.on("complete",C),Ye||R.on("abort",H),R.req?K():R.on("request",K)),Ye||"boolean"!=typeof R.aborted||R.on("aborted",H),R.on("end",W),R.on("finish",C),!1!==pe.error&&R.on("error",G),R.on("close",H),ze?he.nextTick(H):null!=Ke&&Ke.errorEmitted||null!=Ge&&Ge.errorEmitted?Ye||he.nextTick(V):(We||Ye&&!Re(R)||!qe&&!1!==De(R))&&(Ve||Ye&&!De(R)||!$e&&!1!==Re(R))?Ge&&R.req&&R.aborted&&he.nextTick(V):he.nextTick(V);const q=()=>{ye=M,R.removeListener("aborted",H),R.removeListener("complete",C),R.removeListener("abort",H),R.removeListener("request",K),R.req&&R.req.removeListener("finish",C),R.removeListener("end",j),R.removeListener("close",j),R.removeListener("finish",C),R.removeListener("end",W),R.removeListener("error",G),R.removeListener("close",H)};if(pe.signal&&!ze){const s=()=>{const Ae=ye;q(),Ae.call(R,new ge(void 0,{cause:pe.signal.reason}))};if(pe.signal.aborted)he.nextTick(s);else{Je=Je||Ae(6087).addAbortListener;const he=Je(pe.signal,s),ge=ye;ye=Ee(((...pe)=>{he[ke](),ge.apply(R,pe)}))}}return q}R.exports=O,R.exports.finished=function(R,pe){var Ae;let he=!1;return null===pe&&(pe=be),null!==(Ae=pe)&&void 0!==Ae&&Ae.cleanup&&(Ie(pe.cleanup,"cleanup"),he=pe.cleanup),new Se(((Ae,ge)=>{const ye=O(R,pe,(R=>{he&&ye(),R?ge(R):Ae()}))}))}},6307:(R,pe,Ae)=>{"use strict";const he=Ae(4155),{PromisePrototypeThen:ge,SymbolAsyncIterator:ye,SymbolIterator:me}=Ae(9061),{Buffer:ve}=Ae(8764),{ERR_INVALID_ARG_TYPE:be,ERR_STREAM_NULL_VALUES:Ee}=Ae(4381).codes;R.exports=function(R,pe,Ae){let we,Ce;if("string"==typeof pe||pe instanceof ve)return new R({objectMode:!0,...Ae,read(){this.push(pe),this.push(null)}});if(pe&&pe[ye])Ce=!0,we=pe[ye]();else{if(!pe||!pe[me])throw new be("iterable",["Iterable"],pe);Ce=!1,we=pe[me]()}const _e=new R({objectMode:!0,highWaterMark:1,...Ae});let Ie=!1;return _e._read=function(){Ie||(Ie=!0,async function(){for(;;){try{const{value:R,done:pe}=Ce?await we.next():we.next();if(pe)_e.push(null);else{const pe=R&&"function"==typeof R.then?await R:R;if(null===pe)throw Ie=!1,new Ee;if(_e.push(pe))continue;Ie=!1}}catch(R){_e.destroy(R)}break}}())},_e._destroy=function(R,pe){ge(async function(R){const pe=null!=R,Ae="function"==typeof we.throw;if(pe&&Ae){const{value:pe,done:Ae}=await we.throw(R);if(await pe,Ae)return}if("function"==typeof we.return){const{value:R}=await we.return();await R}}(R),(()=>he.nextTick(pe,R)),(Ae=>he.nextTick(pe,Ae||R)))},_e}},4870:(R,pe,Ae)=>{"use strict";const{ArrayIsArray:he,ObjectSetPrototypeOf:ge}=Ae(9061),{EventEmitter:ye}=Ae(7187);function s(R){ye.call(this,R)}function a(R,pe,Ae){if("function"==typeof R.prependListener)return R.prependListener(pe,Ae);R._events&&R._events[pe]?he(R._events[pe])?R._events[pe].unshift(Ae):R._events[pe]=[Ae,R._events[pe]]:R.on(pe,Ae)}ge(s.prototype,ye.prototype),ge(s,ye),s.prototype.pipe=function(R,pe){const Ae=this;function n(pe){R.writable&&!1===R.write(pe)&&Ae.pause&&Ae.pause()}function i(){Ae.readable&&Ae.resume&&Ae.resume()}Ae.on("data",n),R.on("drain",i),R._isStdio||pe&&!1===pe.end||(Ae.on("end",l),Ae.on("close",u));let he=!1;function l(){he||(he=!0,R.end())}function u(){he||(he=!0,"function"==typeof R.destroy&&R.destroy())}function c(R){f(),0===ye.listenerCount(this,"error")&&this.emit("error",R)}function f(){Ae.removeListener("data",n),R.removeListener("drain",i),Ae.removeListener("end",l),Ae.removeListener("close",u),Ae.removeListener("error",c),R.removeListener("error",c),Ae.removeListener("end",f),Ae.removeListener("close",f),R.removeListener("close",f)}return a(Ae,"error",c),a(R,"error",c),Ae.on("end",f),Ae.on("close",f),R.on("close",f),R.emit("pipe",Ae),R},R.exports={Stream:s,prependListener:a}},4382:(R,pe,Ae)=>{"use strict";const he=globalThis.AbortController||Ae(8599).AbortController,{codes:{ERR_INVALID_ARG_VALUE:ge,ERR_INVALID_ARG_TYPE:ye,ERR_MISSING_ARGS:me,ERR_OUT_OF_RANGE:ve},AbortError:be}=Ae(4381),{validateAbortSignal:Ee,validateInteger:we,validateObject:Ce}=Ae(6547),_e=Ae(9061).Symbol("kWeak"),Ie=Ae(9061).Symbol("kResistStopPropagation"),{finished:Se}=Ae(8610),Be=Ae(299),{addAbortSignalNoValidate:ke}=Ae(196),{isWritable:Oe,isNodeStream:Re}=Ae(5874),{deprecate:Qe}=Ae(6087),{ArrayPrototypePush:xe,Boolean:Pe,MathFloor:Te,Number:De,NumberIsNaN:Ne,Promise:Me,PromiseReject:je,PromiseResolve:Fe,PromisePrototypeThen:Le,Symbol:Ue}=Ae(9061),He=Ue("kEmpty"),Je=Ue("kEof");function M(R,pe){if("function"!=typeof R)throw new ye("fn",["Function","AsyncFunction"],R);null!=pe&&Ce(pe,"options"),null!=(null==pe?void 0:pe.signal)&&Ee(pe.signal,"options.signal");let he=1;null!=(null==pe?void 0:pe.concurrency)&&(he=Te(pe.concurrency));let ge=he-1;return null!=(null==pe?void 0:pe.highWaterMark)&&(ge=Te(pe.highWaterMark)),we(he,"options.concurrency",1),we(ge,"options.highWaterMark",0),ge+=he,async function*(){const ye=Ae(6087).AbortSignalAny([null==pe?void 0:pe.signal].filter(Pe)),me=this,ve=[],Ee={signal:ye};let we,Ce,_e=!1,Ie=0;function p(){_e=!0,b()}function b(){Ie-=1,y()}function y(){Ce&&!_e&&Ie=ge||Ie>=he)&&await new Me((R=>{Ce=R}))}ve.push(Je)}catch(R){const pe=je(R);Le(pe,b,p),ve.push(pe)}finally{_e=!0,we&&(we(),we=null)}}();try{for(;;){for(;ve.length>0;){const R=await ve[0];if(R===Je)return;if(ye.aborted)throw new be;R!==He&&(yield R),ve.shift(),y()}await new Me((R=>{we=R}))}}finally{_e=!0,Ce&&(Ce(),Ce=null)}}.call(this)}async function O(R,pe=void 0){for await(const Ae of x.call(this,R,pe))return!0;return!1}function x(R,pe){if("function"!=typeof R)throw new ye("fn",["Function","AsyncFunction"],R);return M.call(this,(async function(pe,Ae){return await R(pe,Ae)?pe:He}),pe)}class k extends me{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function P(R){if(R=De(R),Ne(R))return 0;if(R<0)throw new ve("number",">= 0",R);return R}R.exports.streamReturningOperators={asIndexedPairs:Qe((function(R=void 0){return null!=R&&Ce(R,"options"),null!=(null==R?void 0:R.signal)&&Ee(R.signal,"options.signal"),async function*(){let pe=0;for await(const he of this){var Ae;if(null!=R&&null!==(Ae=R.signal)&&void 0!==Ae&&Ae.aborted)throw new be({cause:R.signal.reason});yield[pe++,he]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(R,pe=void 0){return null!=pe&&Ce(pe,"options"),null!=(null==pe?void 0:pe.signal)&&Ee(pe.signal,"options.signal"),R=P(R),async function*(){var Ae;if(null!=pe&&null!==(Ae=pe.signal)&&void 0!==Ae&&Ae.aborted)throw new be;for await(const Ae of this){var he;if(null!=pe&&null!==(he=pe.signal)&&void 0!==he&&he.aborted)throw new be;R--<=0&&(yield Ae)}}.call(this)},filter:x,flatMap:function(R,pe){const Ae=M.call(this,R,pe);return async function*(){for await(const R of Ae)yield*R}.call(this)},map:M,take:function(R,pe=void 0){return null!=pe&&Ce(pe,"options"),null!=(null==pe?void 0:pe.signal)&&Ee(pe.signal,"options.signal"),R=P(R),async function*(){var Ae;if(null!=pe&&null!==(Ae=pe.signal)&&void 0!==Ae&&Ae.aborted)throw new be;for await(const Ae of this){var he;if(null!=pe&&null!==(he=pe.signal)&&void 0!==he&&he.aborted)throw new be;if(R-- >0&&(yield Ae),R<=0)return}}.call(this)},compose:function(R,pe){if(null!=pe&&Ce(pe,"options"),null!=(null==pe?void 0:pe.signal)&&Ee(pe.signal,"options.signal"),Re(R)&&!Oe(R))throw new ge("stream",R,"must be writable");const Ae=Be(this,R);return null!=pe&&pe.signal&&ke(pe.signal,Ae),Ae}},R.exports.promiseReturningOperators={every:async function(R,pe=void 0){if("function"!=typeof R)throw new ye("fn",["Function","AsyncFunction"],R);return!await O.call(this,(async(...pe)=>!await R(...pe)),pe)},forEach:async function(R,pe){if("function"!=typeof R)throw new ye("fn",["Function","AsyncFunction"],R);for await(const Ae of M.call(this,(async function(pe,Ae){return await R(pe,Ae),He}),pe));},reduce:async function(R,pe,Ae){var ge;if("function"!=typeof R)throw new ye("reducer",["Function","AsyncFunction"],R);null!=Ae&&Ce(Ae,"options"),null!=(null==Ae?void 0:Ae.signal)&&Ee(Ae.signal,"options.signal");let me=arguments.length>1;if(null!=Ae&&null!==(ge=Ae.signal)&&void 0!==ge&&ge.aborted){const R=new be(void 0,{cause:Ae.signal.reason});throw this.once("error",(()=>{})),await Se(this.destroy(R)),R}const ve=new he,we=ve.signal;if(null!=Ae&&Ae.signal){const R={once:!0,[_e]:this,[Ie]:!0};Ae.signal.addEventListener("abort",(()=>ve.abort()),R)}let Be=!1;try{for await(const he of this){var ke;if(Be=!0,null!=Ae&&null!==(ke=Ae.signal)&&void 0!==ke&&ke.aborted)throw new be;me?pe=await R(pe,he,{signal:we}):(pe=he,me=!0)}if(!Be&&!me)throw new k}finally{ve.abort()}return pe},toArray:async function(R){null!=R&&Ce(R,"options"),null!=(null==R?void 0:R.signal)&&Ee(R.signal,"options.signal");const pe=[];for await(const he of this){var Ae;if(null!=R&&null!==(Ae=R.signal)&&void 0!==Ae&&Ae.aborted)throw new be(void 0,{cause:R.signal.reason});xe(pe,he)}return pe},some:O,find:async function(R,pe){for await(const Ae of x.call(this,R,pe))return Ae}}},917:(R,pe,Ae)=>{"use strict";const{ObjectSetPrototypeOf:he}=Ae(9061);R.exports=o;const ge=Ae(1161);function o(R){if(!(this instanceof o))return new o(R);ge.call(this,R)}he(o.prototype,ge.prototype),he(o,ge),o.prototype._transform=function(R,pe,Ae){Ae(null,R)}},9946:(R,pe,Ae)=>{const he=Ae(4155),{ArrayIsArray:ge,Promise:ye,SymbolAsyncIterator:me,SymbolDispose:ve}=Ae(9061),be=Ae(8610),{once:Ee}=Ae(6087),we=Ae(1195),Ce=Ae(8672),{aggregateTwoErrors:_e,codes:{ERR_INVALID_ARG_TYPE:Ie,ERR_INVALID_RETURN_VALUE:Se,ERR_MISSING_ARGS:Be,ERR_STREAM_DESTROYED:ke,ERR_STREAM_PREMATURE_CLOSE:Oe},AbortError:Re}=Ae(4381),{validateFunction:Qe,validateAbortSignal:xe}=Ae(6547),{isIterable:Pe,isReadable:Te,isReadableNodeStream:De,isNodeStream:Ne,isTransformStream:Me,isWebStream:je,isReadableStream:Fe,isReadableFinished:Le}=Ae(5874),Ue=globalThis.AbortController||Ae(8599).AbortController;let He,Je,We;function O(R,pe,Ae){let he=!1;return R.on("close",(()=>{he=!0})),{destroy:pe=>{he||(he=!0,we.destroyer(R,pe||new ke("pipe")))},cleanup:be(R,{readable:pe,writable:Ae},(R=>{he=!R}))}}function x(R){if(Pe(R))return R;if(De(R))return async function*(R){Je||(Je=Ae(911)),yield*Je.prototype[me].call(R)}(R);throw new Ie("val",["Readable","Iterable","AsyncIterable"],R)}async function k(R,pe,Ae,{end:he}){let ge,me=null;const a=R=>{if(R&&(ge=R),me){const R=me;me=null,R()}},u=()=>new ye(((R,pe)=>{ge?pe(ge):me=()=>{ge?pe(ge):R()}}));pe.on("drain",a);const ve=be(pe,{readable:!1},a);try{pe.writableNeedDrain&&await u();for await(const Ae of R)pe.write(Ae)||await u();he&&(pe.end(),await u()),Ae()}catch(R){Ae(ge!==R?_e(ge,R):R)}finally{ve(),pe.off("drain",a)}}async function P(R,pe,Ae,{end:he}){Me(pe)&&(pe=pe.writable);const ge=pe.getWriter();try{for await(const pe of R)await ge.ready,ge.write(pe).catch((()=>{}));await ge.ready,he&&await ge.close(),Ae()}catch(R){try{await ge.abort(R),Ae(R)}catch(R){Ae(R)}}}function j(R,pe,ye){if(1===R.length&&ge(R[0])&&(R=R[0]),R.length<2)throw new Be("streams");const me=new Ue,be=me.signal,Ee=null==ye?void 0:ye.signal,we=[];function h(){C(new Re)}let _e,ke,Oe;xe(Ee,"options.signal"),We=We||Ae(6087).addAbortListener,Ee&&(_e=We(Ee,h));const Qe=[];let Le,Je=0;function F(R){C(R,0==--Je)}function C(R,Ae){var ge;if(!R||ke&&"ERR_STREAM_PREMATURE_CLOSE"!==ke.code||(ke=R),ke||Ae){for(;Qe.length;)Qe.shift()(ke);null===(ge=_e)||void 0===ge||ge[ve](),me.abort(),Ae&&(ke||we.forEach((R=>R())),he.nextTick(pe,ke,Oe))}}for(let pe=0;pe0,Ee=me||!1!==(null==ye?void 0:ye.end),_e=pe===R.length-1;if(Ne(ge)){if(Ee){const{destroy:R,cleanup:pe}=O(ge,me,ve);Qe.push(R),Te(ge)&&_e&&we.push(pe)}function $(R){R&&"AbortError"!==R.name&&"ERR_STREAM_PREMATURE_CLOSE"!==R.code&&F(R)}ge.on("error",$),Te(ge)&&_e&&we.push((()=>{ge.removeListener("error",$)}))}if(0===pe)if("function"==typeof ge){if(Le=ge({signal:be}),!Pe(Le))throw new Se("Iterable, AsyncIterable or Stream","source",Le)}else Le=Pe(ge)||De(ge)||Me(ge)?ge:Ce.from(ge);else if("function"==typeof ge){var Ve;if(Le=Me(Le)?x(null===(Ve=Le)||void 0===Ve?void 0:Ve.readable):x(Le),Le=ge(Le,{signal:be}),me){if(!Pe(Le,!0))throw new Se("AsyncIterable",`transform[${pe-1}]`,Le)}else{var Ke;He||(He=Ae(917));const R=new He({objectMode:!0}),pe=null===(Ke=Le)||void 0===Ke?void 0:Ke.then;if("function"==typeof pe)Je++,pe.call(Le,(pe=>{Oe=pe,null!=pe&&R.write(pe),Ee&&R.end(),he.nextTick(F)}),(pe=>{R.destroy(pe),he.nextTick(F,pe)}));else if(Pe(Le,!0))Je++,k(Le,R,F,{end:Ee});else{if(!Fe(Le)&&!Me(Le))throw new Se("AsyncIterable or Promise","destination",Le);{const pe=Le.readable||Le;Je++,k(pe,R,F,{end:Ee})}}Le=R;const{destroy:ge,cleanup:ye}=O(Le,!1,!0);Qe.push(ge),_e&&we.push(ye)}}else if(Ne(ge)){if(De(Le)){Je+=2;const R=D(Le,ge,F,{end:Ee});Te(ge)&&_e&&we.push(R)}else if(Me(Le)||Fe(Le)){const R=Le.readable||Le;Je++,k(R,ge,F,{end:Ee})}else{if(!Pe(Le))throw new Ie("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Le);Je++,k(Le,ge,F,{end:Ee})}Le=ge}else if(je(ge)){if(De(Le))Je++,P(x(Le),ge,F,{end:Ee});else if(Fe(Le)||Pe(Le))Je++,P(Le,ge,F,{end:Ee});else{if(!Me(Le))throw new Ie("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Le);Je++,P(Le.readable,ge,F,{end:Ee})}Le=ge}else Le=Ce.from(ge)}return(null!=be&&be.aborted||null!=Ee&&Ee.aborted)&&he.nextTick(h),Le}function D(R,pe,Ae,{end:ge}){let ye=!1;if(pe.on("close",(()=>{ye||Ae(new Oe)})),R.pipe(pe,{end:!1}),ge){function s(){ye=!0,pe.end()}Le(R)?he.nextTick(s):R.once("end",s)}else Ae();return be(R,{readable:!0,writable:!1},(pe=>{const he=R._readableState;pe&&"ERR_STREAM_PREMATURE_CLOSE"===pe.code&&he&&he.ended&&!he.errored&&!he.errorEmitted?R.once("end",Ae).once("error",Ae):Ae(pe)})),be(pe,{readable:!1,writable:!0},Ae)}R.exports={pipelineImpl:j,pipeline:function(...R){return j(R,Ee(function(R){return Qe(R[R.length-1],"streams[stream.length - 1]"),R.pop()}(R)))}}},911:(R,pe,Ae)=>{const he=Ae(4155),{ArrayPrototypeIndexOf:ge,NumberIsInteger:ye,NumberIsNaN:me,NumberParseInt:ve,ObjectDefineProperties:be,ObjectKeys:Ee,ObjectSetPrototypeOf:we,Promise:Ce,SafeSet:_e,SymbolAsyncDispose:Ie,SymbolAsyncIterator:Se,Symbol:Be}=Ae(9061);R.exports=z,z.ReadableState=q;const{EventEmitter:ke}=Ae(7187),{Stream:Oe,prependListener:Re}=Ae(4870),{Buffer:Qe}=Ae(8764),{addAbortSignal:xe}=Ae(196),Pe=Ae(8610);let Te=Ae(6087).debuglog("stream",(R=>{Te=R}));const De=Ae(7327),Ne=Ae(1195),{getHighWaterMark:Me,getDefaultHighWaterMark:je}=Ae(2457),{aggregateTwoErrors:Fe,codes:{ERR_INVALID_ARG_TYPE:Le,ERR_METHOD_NOT_IMPLEMENTED:Ue,ERR_OUT_OF_RANGE:He,ERR_STREAM_PUSH_AFTER_EOF:Je,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:We},AbortError:Ve}=Ae(4381),{validateObject:Ke}=Ae(6547),Ge=Be("kPaused"),{StringDecoder:Ye}=Ae(2553),qe=Ae(6307);we(z.prototype,Oe.prototype),we(z,Oe);const D=()=>{},{errorOrDestroy:$e}=Ne,ze=1,Xe=16,Ze=32,et=64,tt=2048,rt=4096,nt=65536;function K(R){return{enumerable:!1,get(){return 0!=(this.state&R)},set(pe){pe?this.state|=R:this.state&=~R}}}function q(R,pe,he){"boolean"!=typeof he&&(he=pe instanceof Ae(8672)),this.state=tt|rt|Xe|Ze,R&&R.objectMode&&(this.state|=ze),he&&R&&R.readableObjectMode&&(this.state|=ze),this.highWaterMark=R?Me(this,R,"readableHighWaterMark",he):je(!1),this.buffer=new De,this.length=0,this.pipes=[],this.flowing=null,this[Ge]=null,R&&!1===R.emitClose&&(this.state&=~tt),R&&!1===R.autoDestroy&&(this.state&=~rt),this.errored=null,this.defaultEncoding=R&&R.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,R&&R.encoding&&(this.decoder=new Ye(R.encoding),this.encoding=R.encoding)}function z(R){if(!(this instanceof z))return new z(R);const pe=this instanceof Ae(8672);this._readableState=new q(R,this,pe),R&&("function"==typeof R.read&&(this._read=R.read),"function"==typeof R.destroy&&(this._destroy=R.destroy),"function"==typeof R.construct&&(this._construct=R.construct),R.signal&&!pe&&xe(R.signal,this)),Oe.call(this,R),Ne.construct(this,(()=>{this._readableState.needReadable&&te(this,this._readableState)}))}function X(R,pe,Ae,he){Te("readableAddChunk",pe);const ge=R._readableState;let ye;if(0==(ge.state&ze)&&("string"==typeof pe?(Ae=Ae||ge.defaultEncoding,ge.encoding!==Ae&&(he&&ge.encoding?pe=Qe.from(pe,Ae).toString(ge.encoding):(pe=Qe.from(pe,Ae),Ae=""))):pe instanceof Qe?Ae="":Oe._isUint8Array(pe)?(pe=Oe._uint8ArrayToBuffer(pe),Ae=""):null!=pe&&(ye=new Le("chunk",["string","Buffer","Uint8Array"],pe))),ye)$e(R,ye);else if(null===pe)ge.state&=-9,function(R,pe){if(Te("onEofChunk"),!pe.ended){if(pe.decoder){const R=pe.decoder.end();R&&R.length&&(pe.buffer.push(R),pe.length+=pe.objectMode?1:R.length)}pe.ended=!0,pe.sync?Q(R):(pe.needReadable=!1,pe.emittedReadable=!0,ee(R))}}(R,ge);else if(0!=(ge.state&ze)||pe&&pe.length>0)if(he)if(0!=(4&ge.state))$e(R,new We);else{if(ge.destroyed||ge.errored)return!1;J(R,ge,pe,!0)}else if(ge.ended)$e(R,new Je);else{if(ge.destroyed||ge.errored)return!1;ge.state&=-9,ge.decoder&&!Ae?(pe=ge.decoder.write(pe),ge.objectMode||0!==pe.length?J(R,ge,pe,!1):te(R,ge)):J(R,ge,pe,!1)}else he||(ge.state&=-9,te(R,ge));return!ge.ended&&(ge.length0?(0!=(pe.state&nt)?pe.awaitDrainWriters.clear():pe.awaitDrainWriters=null,pe.dataEmitted=!0,R.emit("data",Ae)):(pe.length+=pe.objectMode?1:Ae.length,he?pe.buffer.unshift(Ae):pe.buffer.push(Ae),0!=(pe.state&et)&&Q(R)),te(R,pe)}function Z(R,pe){return R<=0||0===pe.length&&pe.ended?0:0!=(pe.state&ze)?1:me(R)?pe.flowing&&pe.length?pe.buffer.first().length:pe.length:R<=pe.length?R:pe.ended?pe.length:0}function Q(R){const pe=R._readableState;Te("emitReadable",pe.needReadable,pe.emittedReadable),pe.needReadable=!1,pe.emittedReadable||(Te("emitReadable",pe.flowing),pe.emittedReadable=!0,he.nextTick(ee,R))}function ee(R){const pe=R._readableState;Te("emitReadable_",pe.destroyed,pe.length,pe.ended),pe.destroyed||pe.errored||!pe.length&&!pe.ended||(R.emit("readable"),pe.emittedReadable=!1),pe.needReadable=!pe.flowing&&!pe.ended&&pe.length<=pe.highWaterMark,se(R)}function te(R,pe){!pe.readingMore&&pe.constructed&&(pe.readingMore=!0,he.nextTick(re,R,pe))}function re(R,pe){for(;!pe.reading&&!pe.ended&&(pe.length0,pe.resumeScheduled&&!1===pe[Ge]?pe.flowing=!0:R.listenerCount("data")>0?R.resume():pe.readableListening||(pe.flowing=null)}function ie(R){Te("readable nexttick read 0"),R.read(0)}function oe(R,pe){Te("resume",pe.reading),pe.reading||R.read(0),pe.resumeScheduled=!1,R.emit("resume"),se(R),pe.flowing&&!pe.reading&&R.read(0)}function se(R){const pe=R._readableState;for(Te("flow",pe.flowing);pe.flowing&&null!==R.read(););}function ae(R,pe){"function"!=typeof R.read&&(R=z.wrap(R,{objectMode:!0}));const Ae=async function*(R,pe){let Ae,he=D;function i(pe){this===R?(he(),he=D):he=pe}R.on("readable",i);const ge=Pe(R,{writable:!1},(R=>{Ae=R?Fe(Ae,R):null,he(),he=D}));try{for(;;){const pe=R.destroyed?null:R.read();if(null!==pe)yield pe;else{if(Ae)throw Ae;if(null===Ae)return;await new Ce(i)}}}catch(R){throw Ae=Fe(Ae,R),Ae}finally{!Ae&&!1===(null==pe?void 0:pe.destroyOnReturn)||void 0!==Ae&&!R._readableState.autoDestroy?(R.off("readable",i),ge()):Ne.destroyer(R,null)}}(R,pe);return Ae.stream=R,Ae}function le(R,pe){if(0===pe.length)return null;let Ae;return pe.objectMode?Ae=pe.buffer.shift():!R||R>=pe.length?(Ae=pe.decoder?pe.buffer.join(""):1===pe.buffer.length?pe.buffer.first():pe.buffer.concat(pe.length),pe.buffer.clear()):Ae=pe.buffer.consume(R,pe.decoder),Ae}function ue(R){const pe=R._readableState;Te("endReadable",pe.endEmitted),pe.endEmitted||(pe.ended=!0,he.nextTick(ce,pe,R))}function ce(R,pe){if(Te("endReadableNT",R.endEmitted,R.length),!R.errored&&!R.closeEmitted&&!R.endEmitted&&0===R.length)if(R.endEmitted=!0,pe.emit("end"),pe.writable&&!1===pe.allowHalfOpen)he.nextTick(fe,pe);else if(R.autoDestroy){const R=pe._writableState;(!R||R.autoDestroy&&(R.finished||!1===R.writable))&&pe.destroy()}}function fe(R){R.writable&&!R.writableEnded&&!R.destroyed&&R.end()}let it;function de(){return void 0===it&&(it={}),it}be(q.prototype,{objectMode:K(ze),ended:K(2),endEmitted:K(4),reading:K(8),constructed:K(Xe),sync:K(Ze),needReadable:K(et),emittedReadable:K(128),readableListening:K(256),resumeScheduled:K(512),errorEmitted:K(1024),emitClose:K(tt),autoDestroy:K(rt),destroyed:K(8192),closed:K(16384),closeEmitted:K(32768),multiAwaitDrain:K(nt),readingMore:K(1<<17),dataEmitted:K(1<<18)}),z.prototype.destroy=Ne.destroy,z.prototype._undestroy=Ne.undestroy,z.prototype._destroy=function(R,pe){pe(R)},z.prototype[ke.captureRejectionSymbol]=function(R){this.destroy(R)},z.prototype[Ie]=function(){let R;return this.destroyed||(R=this.readableEnded?null:new Ve,this.destroy(R)),new Ce(((pe,Ae)=>Pe(this,(he=>he&&he!==R?Ae(he):pe(null)))))},z.prototype.push=function(R,pe){return X(this,R,pe,!1)},z.prototype.unshift=function(R,pe){return X(this,R,pe,!0)},z.prototype.isPaused=function(){const R=this._readableState;return!0===R[Ge]||!1===R.flowing},z.prototype.setEncoding=function(R){const pe=new Ye(R);this._readableState.decoder=pe,this._readableState.encoding=this._readableState.decoder.encoding;const Ae=this._readableState.buffer;let he="";for(const R of Ae)he+=pe.write(R);return Ae.clear(),""!==he&&Ae.push(he),this._readableState.length=he.length,this},z.prototype.read=function(R){Te("read",R),void 0===R?R=NaN:ye(R)||(R=ve(R,10));const pe=this._readableState,Ae=R;if(R>pe.highWaterMark&&(pe.highWaterMark=function(R){if(R>1073741824)throw new He("size","<= 1GiB",R);return R--,R|=R>>>1,R|=R>>>2,R|=R>>>4,R|=R>>>8,R|=R>>>16,++R}(R)),0!==R&&(pe.state&=-129),0===R&&pe.needReadable&&((0!==pe.highWaterMark?pe.length>=pe.highWaterMark:pe.length>0)||pe.ended))return Te("read: emitReadable",pe.length,pe.ended),0===pe.length&&pe.ended?ue(this):Q(this),null;if(0===(R=Z(R,pe))&&pe.ended)return 0===pe.length&&ue(this),null;let he,ge=0!=(pe.state&et);if(Te("need readable",ge),(0===pe.length||pe.length-R0?le(R,pe):null,null===he?(pe.needReadable=pe.length<=pe.highWaterMark,R=0):(pe.length-=R,pe.multiAwaitDrain?pe.awaitDrainWriters.clear():pe.awaitDrainWriters=null),0===pe.length&&(pe.ended||(pe.needReadable=!0),Ae!==R&&pe.ended&&ue(this)),null===he||pe.errorEmitted||pe.closeEmitted||(pe.dataEmitted=!0,this.emit("data",he)),he},z.prototype._read=function(R){throw new Ue("_read()")},z.prototype.pipe=function(R,pe){const Ae=this,ge=this._readableState;1===ge.pipes.length&&(ge.multiAwaitDrain||(ge.multiAwaitDrain=!0,ge.awaitDrainWriters=new _e(ge.awaitDrainWriters?[ge.awaitDrainWriters]:[]))),ge.pipes.push(R),Te("pipe count=%d opts=%j",ge.pipes.length,pe);const ye=pe&&!1===pe.end||R===he.stdout||R===he.stderr?b:s;function s(){Te("onend"),R.end()}let me;ge.endEmitted?he.nextTick(ye):Ae.once("end",ye),R.on("unpipe",(function t(pe,he){Te("onunpipe"),pe===Ae&&he&&!1===he.hasUnpiped&&(he.hasUnpiped=!0,Te("cleanup"),R.removeListener("close",d),R.removeListener("finish",p),me&&R.removeListener("drain",me),R.removeListener("error",f),R.removeListener("unpipe",t),Ae.removeListener("end",s),Ae.removeListener("end",b),Ae.removeListener("data",c),ve=!0,me&&ge.awaitDrainWriters&&(!R._writableState||R._writableState.needDrain)&&me())}));let ve=!1;function u(){ve||(1===ge.pipes.length&&ge.pipes[0]===R?(Te("false write response, pause",0),ge.awaitDrainWriters=R,ge.multiAwaitDrain=!1):ge.pipes.length>1&&ge.pipes.includes(R)&&(Te("false write response, pause",ge.awaitDrainWriters.size),ge.awaitDrainWriters.add(R)),Ae.pause()),me||(me=function(R,pe){return function(){const Ae=R._readableState;Ae.awaitDrainWriters===pe?(Te("pipeOnDrain",1),Ae.awaitDrainWriters=null):Ae.multiAwaitDrain&&(Te("pipeOnDrain",Ae.awaitDrainWriters.size),Ae.awaitDrainWriters.delete(pe)),Ae.awaitDrainWriters&&0!==Ae.awaitDrainWriters.size||!R.listenerCount("data")||R.resume()}}(Ae,R),R.on("drain",me))}function c(pe){Te("ondata");const Ae=R.write(pe);Te("dest.write",Ae),!1===Ae&&u()}function f(pe){if(Te("onerror",pe),b(),R.removeListener("error",f),0===R.listenerCount("error")){const Ae=R._writableState||R._readableState;Ae&&!Ae.errorEmitted?$e(R,pe):R.emit("error",pe)}}function d(){R.removeListener("finish",p),b()}function p(){Te("onfinish"),R.removeListener("close",d),b()}function b(){Te("unpipe"),Ae.unpipe(R)}return Ae.on("data",c),Re(R,"error",f),R.once("close",d),R.once("finish",p),R.emit("pipe",Ae),!0===R.writableNeedDrain?u():ge.flowing||(Te("pipe resume"),Ae.resume()),R},z.prototype.unpipe=function(R){const pe=this._readableState;if(0===pe.pipes.length)return this;if(!R){const R=pe.pipes;pe.pipes=[],this.pause();for(let pe=0;pe0,!1!==ge.flowing&&this.resume()):"readable"===R&&(ge.endEmitted||ge.readableListening||(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,Te("on readable",ge.length,ge.reading),ge.length?Q(this):ge.reading||he.nextTick(ie,this))),Ae},z.prototype.addListener=z.prototype.on,z.prototype.removeListener=function(R,pe){const Ae=Oe.prototype.removeListener.call(this,R,pe);return"readable"===R&&he.nextTick(ne,this),Ae},z.prototype.off=z.prototype.removeListener,z.prototype.removeAllListeners=function(R){const pe=Oe.prototype.removeAllListeners.apply(this,arguments);return"readable"!==R&&void 0!==R||he.nextTick(ne,this),pe},z.prototype.resume=function(){const R=this._readableState;return R.flowing||(Te("resume"),R.flowing=!R.readableListening,function(R,pe){pe.resumeScheduled||(pe.resumeScheduled=!0,he.nextTick(oe,R,pe))}(this,R)),R[Ge]=!1,this},z.prototype.pause=function(){return Te("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Te("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Ge]=!0,this},z.prototype.wrap=function(R){let pe=!1;R.on("data",(Ae=>{!this.push(Ae)&&R.pause&&(pe=!0,R.pause())})),R.on("end",(()=>{this.push(null)})),R.on("error",(R=>{$e(this,R)})),R.on("close",(()=>{this.destroy()})),R.on("destroy",(()=>{this.destroy()})),this._read=()=>{pe&&R.resume&&(pe=!1,R.resume())};const Ae=Ee(R);for(let pe=1;pe{"use strict";const{MathFloor:he,NumberIsInteger:ge}=Ae(9061),{validateInteger:ye}=Ae(6547),{ERR_INVALID_ARG_VALUE:me}=Ae(4381).codes;let ve=16384,be=16;function u(R){return R?be:ve}R.exports={getHighWaterMark:function(R,pe,Ae,ye){const ve=function(R,pe,Ae){return null!=R.highWaterMark?R.highWaterMark:pe?R[Ae]:null}(pe,ye,Ae);if(null!=ve){if(!ge(ve)||ve<0)throw new me(ye?`options.${Ae}`:"options.highWaterMark",ve);return he(ve)}return u(R.objectMode)},getDefaultHighWaterMark:u,setDefaultHighWaterMark:function(R,pe){ye(pe,"value",0),R?be=pe:ve=pe}}},1161:(R,pe,Ae)=>{"use strict";const{ObjectSetPrototypeOf:he,Symbol:ge}=Ae(9061);R.exports=u;const{ERR_METHOD_NOT_IMPLEMENTED:ye}=Ae(4381).codes,me=Ae(8672),{getHighWaterMark:ve}=Ae(2457);he(u.prototype,me.prototype),he(u,me);const be=ge("kCallback");function u(R){if(!(this instanceof u))return new u(R);const pe=R?ve(this,R,"readableHighWaterMark",!0):null;0===pe&&(R={...R,highWaterMark:null,readableHighWaterMark:pe,writableHighWaterMark:R.writableHighWaterMark||0}),me.call(this,R),this._readableState.sync=!1,this[be]=null,R&&("function"==typeof R.transform&&(this._transform=R.transform),"function"==typeof R.flush&&(this._flush=R.flush)),this.on("prefinish",f)}function c(R){"function"!=typeof this._flush||this.destroyed?(this.push(null),R&&R()):this._flush(((pe,Ae)=>{pe?R?R(pe):this.destroy(pe):(null!=Ae&&this.push(Ae),this.push(null),R&&R())}))}function f(){this._final!==c&&c.call(this)}u.prototype._final=c,u.prototype._transform=function(R,pe,Ae){throw new ye("_transform()")},u.prototype._write=function(R,pe,Ae){const he=this._readableState,ge=this._writableState,ye=he.length;this._transform(R,pe,((R,pe)=>{R?Ae(R):(null!=pe&&this.push(pe),ge.ended||ye===he.length||he.length{"use strict";const{SymbolAsyncIterator:he,SymbolIterator:ge,SymbolFor:ye}=Ae(9061),me=ye("nodejs.stream.destroyed"),ve=ye("nodejs.stream.errored"),be=ye("nodejs.stream.readable"),Ee=ye("nodejs.stream.writable"),we=ye("nodejs.stream.disturbed"),Ce=ye("nodejs.webstream.isClosedPromise"),_e=ye("nodejs.webstream.controllerErrorFunction");function d(R,pe=!1){var Ae;return!(!R||"function"!=typeof R.pipe||"function"!=typeof R.on||pe&&("function"!=typeof R.pause||"function"!=typeof R.resume)||R._writableState&&!1===(null===(Ae=R._readableState)||void 0===Ae?void 0:Ae.readable)||R._writableState&&!R._readableState)}function p(R){var pe;return!(!R||"function"!=typeof R.write||"function"!=typeof R.on||R._readableState&&!1===(null===(pe=R._writableState)||void 0===pe?void 0:pe.writable))}function b(R){return R&&(R._readableState||R._writableState||"function"==typeof R.write&&"function"==typeof R.on||"function"==typeof R.pipe&&"function"==typeof R.on)}function y(R){return!(!R||b(R)||"function"!=typeof R.pipeThrough||"function"!=typeof R.getReader||"function"!=typeof R.cancel)}function g(R){return!(!R||b(R)||"function"!=typeof R.getWriter||"function"!=typeof R.abort)}function w(R){return!(!R||b(R)||"object"!=typeof R.readable||"object"!=typeof R.writable)}function _(R){if(!b(R))return null;const pe=R._writableState,Ae=R._readableState,he=pe||Ae;return!!(R.destroyed||R[me]||null!=he&&he.destroyed)}function m(R){if(!p(R))return null;if(!0===R.writableEnded)return!0;const pe=R._writableState;return(null==pe||!pe.errored)&&("boolean"!=typeof(null==pe?void 0:pe.ended)?null:pe.ended)}function E(R,pe){if(!d(R))return null;const Ae=R._readableState;return(null==Ae||!Ae.errored)&&("boolean"!=typeof(null==Ae?void 0:Ae.endEmitted)?null:!!(Ae.endEmitted||!1===pe&&!0===Ae.ended&&0===Ae.length))}function S(R){return R&&null!=R[be]?R[be]:"boolean"!=typeof(null==R?void 0:R.readable)?null:!_(R)&&d(R)&&R.readable&&!E(R)}function v(R){return R&&null!=R[Ee]?R[Ee]:"boolean"!=typeof(null==R?void 0:R.writable)?null:!_(R)&&p(R)&&R.writable&&!m(R)}function A(R){return"boolean"==typeof R._closed&&"boolean"==typeof R._defaultKeepAlive&&"boolean"==typeof R._removedConnection&&"boolean"==typeof R._removedContLen}function I(R){return"boolean"==typeof R._sent100&&A(R)}R.exports={isDestroyed:_,kIsDestroyed:me,isDisturbed:function(R){var pe;return!(!R||!(null!==(pe=R[we])&&void 0!==pe?pe:R.readableDidRead||R.readableAborted))},kIsDisturbed:we,isErrored:function(R){var pe,Ae,he,ge,ye,me,be,Ee,we,Ce;return!(!R||!(null!==(pe=null!==(Ae=null!==(he=null!==(ge=null!==(ye=null!==(me=R[ve])&&void 0!==me?me:R.readableErrored)&&void 0!==ye?ye:R.writableErrored)&&void 0!==ge?ge:null===(be=R._readableState)||void 0===be?void 0:be.errorEmitted)&&void 0!==he?he:null===(Ee=R._writableState)||void 0===Ee?void 0:Ee.errorEmitted)&&void 0!==Ae?Ae:null===(we=R._readableState)||void 0===we?void 0:we.errored)&&void 0!==pe?pe:null===(Ce=R._writableState)||void 0===Ce?void 0:Ce.errored))},kIsErrored:ve,isReadable:S,kIsReadable:be,kIsClosedPromise:Ce,kControllerErrorFunction:_e,kIsWritable:Ee,isClosed:function(R){if(!b(R))return null;if("boolean"==typeof R.closed)return R.closed;const pe=R._writableState,Ae=R._readableState;return"boolean"==typeof(null==pe?void 0:pe.closed)||"boolean"==typeof(null==Ae?void 0:Ae.closed)?(null==pe?void 0:pe.closed)||(null==Ae?void 0:Ae.closed):"boolean"==typeof R._closed&&A(R)?R._closed:null},isDuplexNodeStream:function(R){return!(!R||"function"!=typeof R.pipe||!R._readableState||"function"!=typeof R.on||"function"!=typeof R.write)},isFinished:function(R,pe){return b(R)?!(!_(R)&&(!1!==(null==pe?void 0:pe.readable)&&S(R)||!1!==(null==pe?void 0:pe.writable)&&v(R))):null},isIterable:function(R,pe){return null!=R&&(!0===pe?"function"==typeof R[he]:!1===pe?"function"==typeof R[ge]:"function"==typeof R[he]||"function"==typeof R[ge])},isReadableNodeStream:d,isReadableStream:y,isReadableEnded:function(R){if(!d(R))return null;if(!0===R.readableEnded)return!0;const pe=R._readableState;return!(!pe||pe.errored)&&("boolean"!=typeof(null==pe?void 0:pe.ended)?null:pe.ended)},isReadableFinished:E,isReadableErrored:function(R){var pe,Ae;return b(R)?R.readableErrored?R.readableErrored:null!==(pe=null===(Ae=R._readableState)||void 0===Ae?void 0:Ae.errored)&&void 0!==pe?pe:null:null},isNodeStream:b,isWebStream:function(R){return y(R)||g(R)||w(R)},isWritable:v,isWritableNodeStream:p,isWritableStream:g,isWritableEnded:m,isWritableFinished:function(R,pe){if(!p(R))return null;if(!0===R.writableFinished)return!0;const Ae=R._writableState;return(null==Ae||!Ae.errored)&&("boolean"!=typeof(null==Ae?void 0:Ae.finished)?null:!!(Ae.finished||!1===pe&&!0===Ae.ended&&0===Ae.length))},isWritableErrored:function(R){var pe,Ae;return b(R)?R.writableErrored?R.writableErrored:null!==(pe=null===(Ae=R._writableState)||void 0===Ae?void 0:Ae.errored)&&void 0!==pe?pe:null:null},isServerRequest:function(R){var pe;return"boolean"==typeof R._consuming&&"boolean"==typeof R._dumped&&void 0===(null===(pe=R.req)||void 0===pe?void 0:pe.upgradeOrConnect)},isServerResponse:I,willEmitClose:function(R){if(!b(R))return null;const pe=R._writableState,Ae=R._readableState,he=pe||Ae;return!he&&I(R)||!!(he&&he.autoDestroy&&he.emitClose&&!1===he.closed)},isTransformStream:w}},6304:(R,pe,Ae)=>{const he=Ae(4155),{ArrayPrototypeSlice:ge,Error:ye,FunctionPrototypeSymbolHasInstance:me,ObjectDefineProperty:ve,ObjectDefineProperties:be,ObjectSetPrototypeOf:Ee,StringPrototypeToLowerCase:we,Symbol:Ce,SymbolHasInstance:_e}=Ae(9061);R.exports=x,x.WritableState=M;const{EventEmitter:Ie}=Ae(7187),Se=Ae(4870).Stream,{Buffer:Be}=Ae(8764),ke=Ae(1195),{addAbortSignal:Oe}=Ae(196),{getHighWaterMark:Re,getDefaultHighWaterMark:Qe}=Ae(2457),{ERR_INVALID_ARG_TYPE:xe,ERR_METHOD_NOT_IMPLEMENTED:Pe,ERR_MULTIPLE_CALLBACK:Te,ERR_STREAM_CANNOT_PIPE:De,ERR_STREAM_DESTROYED:Ne,ERR_STREAM_ALREADY_FINISHED:Me,ERR_STREAM_NULL_VALUES:je,ERR_STREAM_WRITE_AFTER_END:Fe,ERR_UNKNOWN_ENCODING:Le}=Ae(4381).codes,{errorOrDestroy:Ue}=ke;function L(){}Ee(x.prototype,Se.prototype),Ee(x,Se);const He=Ce("kOnFinished");function M(R,pe,he){"boolean"!=typeof he&&(he=pe instanceof Ae(8672)),this.objectMode=!(!R||!R.objectMode),he&&(this.objectMode=this.objectMode||!(!R||!R.writableObjectMode)),this.highWaterMark=R?Re(this,R,"writableHighWaterMark",he):Qe(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const ge=!(!R||!1!==R.decodeStrings);this.decodeStrings=!ge,this.defaultEncoding=R&&R.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=D.bind(void 0,pe),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,O(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!R||!1!==R.emitClose,this.autoDestroy=!R||!1!==R.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[He]=[]}function O(R){R.buffered=[],R.bufferedIndex=0,R.allBuffers=!0,R.allNoop=!0}function x(R){const pe=this instanceof Ae(8672);if(!pe&&!me(x,this))return new x(R);this._writableState=new M(R,this,pe),R&&("function"==typeof R.write&&(this._write=R.write),"function"==typeof R.writev&&(this._writev=R.writev),"function"==typeof R.destroy&&(this._destroy=R.destroy),"function"==typeof R.final&&(this._final=R.final),"function"==typeof R.construct&&(this._construct=R.construct),R.signal&&Oe(R.signal,this)),Se.call(this,R),ke.construct(this,(()=>{const R=this._writableState;R.writing||W(this,R),Y(this,R)}))}function k(R,pe,Ae,ge){const ye=R._writableState;if("function"==typeof Ae)ge=Ae,Ae=ye.defaultEncoding;else{if(Ae){if("buffer"!==Ae&&!Be.isEncoding(Ae))throw new Le(Ae)}else Ae=ye.defaultEncoding;"function"!=typeof ge&&(ge=L)}if(null===pe)throw new je;if(!ye.objectMode)if("string"==typeof pe)!1!==ye.decodeStrings&&(pe=Be.from(pe,Ae),Ae="buffer");else if(pe instanceof Be)Ae="buffer";else{if(!Se._isUint8Array(pe))throw new xe("chunk",["string","Buffer","Uint8Array"],pe);pe=Se._uint8ArrayToBuffer(pe),Ae="buffer"}let me;return ye.ending?me=new Fe:ye.destroyed&&(me=new Ne("write")),me?(he.nextTick(ge,me),Ue(R,me,!0),me):(ye.pendingcb++,function(R,pe,Ae,he,ge){const ye=pe.objectMode?1:Ae.length;pe.length+=ye;const me=pe.lengthAe.bufferedIndex&&W(R,Ae),ge?null!==Ae.afterWriteTickInfo&&Ae.afterWriteTickInfo.cb===ye?Ae.afterWriteTickInfo.count++:(Ae.afterWriteTickInfo={count:1,cb:ye,stream:R,state:Ae},he.nextTick(F,Ae.afterWriteTickInfo)):C(R,Ae,1,ye))):Ue(R,new Te)}function F({stream:R,state:pe,count:Ae,cb:he}){return pe.afterWriteTickInfo=null,C(R,pe,Ae,he)}function C(R,pe,Ae,he){for(!pe.ending&&!R.destroyed&&0===pe.length&&pe.needDrain&&(pe.needDrain=!1,R.emit("drain"));Ae-- >0;)pe.pendingcb--,he();pe.destroyed&&$(pe),Y(R,pe)}function $(R){if(R.writing)return;for(let Ae=R.bufferedIndex;Ae1&&R._writev){pe.pendingcb-=me-1;const he=pe.allNoop?L:R=>{for(let pe=ve;pe256?(Ae.splice(0,ve),pe.bufferedIndex=0):pe.bufferedIndex=ve}pe.bufferProcessing=!1}function G(R){return R.ending&&!R.destroyed&&R.constructed&&0===R.length&&!R.errored&&0===R.buffered.length&&!R.finished&&!R.writing&&!R.errorEmitted&&!R.closeEmitted}function Y(R,pe,Ae){G(pe)&&(function(R,pe){pe.prefinished||pe.finalCalled||("function"!=typeof R._final||pe.destroyed?(pe.prefinished=!0,R.emit("prefinish")):(pe.finalCalled=!0,function(R,pe){let Ae=!1;function i(ge){if(Ae)Ue(R,null!=ge?ge:Te());else if(Ae=!0,pe.pendingcb--,ge){const Ae=pe[He].splice(0);for(let R=0;R{G(pe)?H(R,pe):pe.pendingcb--}),R,pe)):G(pe)&&(pe.pendingcb++,H(R,pe))))}function H(R,pe){pe.pendingcb--,pe.finished=!0;const Ae=pe[He].splice(0);for(let R=0;R{"use strict";const{ArrayIsArray:he,ArrayPrototypeIncludes:ge,ArrayPrototypeJoin:ye,ArrayPrototypeMap:me,NumberIsInteger:ve,NumberIsNaN:be,NumberMAX_SAFE_INTEGER:Ee,NumberMIN_SAFE_INTEGER:we,NumberParseInt:Ce,ObjectPrototypeHasOwnProperty:_e,RegExpPrototypeExec:Ie,String:Se,StringPrototypeToUpperCase:Be,StringPrototypeTrim:ke}=Ae(9061),{hideStackFrames:Oe,codes:{ERR_SOCKET_BAD_PORT:Re,ERR_INVALID_ARG_TYPE:Qe,ERR_INVALID_ARG_VALUE:xe,ERR_OUT_OF_RANGE:Pe,ERR_UNKNOWN_SIGNAL:Te}}=Ae(4381),{normalizeEncoding:De}=Ae(6087),{isAsyncFunction:Ne,isArrayBufferView:Me}=Ae(6087).types,je={},Fe=/^[0-7]+$/,Le=Oe(((R,pe,Ae=we,he=Ee)=>{if("number"!=typeof R)throw new Qe(pe,"number",R);if(!ve(R))throw new Pe(pe,"an integer",R);if(Rhe)throw new Pe(pe,`>= ${Ae} && <= ${he}`,R)})),Ue=Oe(((R,pe,Ae=-2147483648,he=2147483647)=>{if("number"!=typeof R)throw new Qe(pe,"number",R);if(!ve(R))throw new Pe(pe,"an integer",R);if(Rhe)throw new Pe(pe,`>= ${Ae} && <= ${he}`,R)})),He=Oe(((R,pe,Ae=!1)=>{if("number"!=typeof R)throw new Qe(pe,"number",R);if(!ve(R))throw new Pe(pe,"an integer",R);const he=Ae?1:0,ge=4294967295;if(Rge)throw new Pe(pe,`>= ${he} && <= ${ge}`,R)}));function U(R,pe){if("string"!=typeof R)throw new Qe(pe,"string",R)}const Je=Oe(((R,pe,Ae)=>{if(!ge(Ae,R)){const he=ye(me(Ae,(R=>"string"==typeof R?`'${R}'`:Se(R))),", ");throw new xe(pe,R,"must be one of: "+he)}}));function O(R,pe){if("boolean"!=typeof R)throw new Qe(pe,"boolean",R)}function x(R,pe,Ae){return null!=R&&_e(R,pe)?R[pe]:Ae}const We=Oe(((R,pe,Ae=null)=>{const ge=x(Ae,"allowArray",!1),ye=x(Ae,"allowFunction",!1);if(!x(Ae,"nullable",!1)&&null===R||!ge&&he(R)||"object"!=typeof R&&(!ye||"function"!=typeof R))throw new Qe(pe,"Object",R)})),Ve=Oe(((R,pe)=>{if(null!=R&&"object"!=typeof R&&"function"!=typeof R)throw new Qe(pe,"a dictionary",R)})),Ke=Oe(((R,pe,Ae=0)=>{if(!he(R))throw new Qe(pe,"Array",R);if(R.length{if(!Me(R))throw new Qe(pe,["Buffer","TypedArray","DataView"],R)})),Ye=Oe(((R,pe)=>{if(void 0!==R&&(null===R||"object"!=typeof R||!("aborted"in R)))throw new Qe(pe,"AbortSignal",R)})),qe=Oe(((R,pe)=>{if("function"!=typeof R)throw new Qe(pe,"Function",R)})),$e=Oe(((R,pe)=>{if("function"!=typeof R||Ne(R))throw new Qe(pe,"Function",R)})),ze=Oe(((R,pe)=>{if(void 0!==R)throw new Qe(pe,"undefined",R)})),Xe=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Y(R,pe){if(void 0===R||!Ie(Xe,R))throw new xe(pe,R,'must be an array or string of format "; rel=preload; as=style"')}R.exports={isInt32:function(R){return R===(0|R)},isUint32:function(R){return R===R>>>0},parseFileMode:function(R,pe,Ae){if(void 0===R&&(R=Ae),"string"==typeof R){if(null===Ie(Fe,R))throw new xe(pe,R,"must be a 32-bit unsigned integer or an octal string");R=Ce(R,8)}return He(R,pe),R},validateArray:Ke,validateStringArray:function(R,pe){Ke(R,pe);for(let Ae=0;Aehe||(null!=Ae||null!=he)&&be(R))throw new Pe(pe,`${null!=Ae?`>= ${Ae}`:""}${null!=Ae&&null!=he?" && ":""}${null!=he?`<= ${he}`:""}`,R)},validateObject:We,validateOneOf:Je,validatePlainFunction:$e,validatePort:function(R,pe="Port",Ae=!0){if("number"!=typeof R&&"string"!=typeof R||"string"==typeof R&&0===ke(R).length||+R!=+R>>>0||R>65535||0===R&&!Ae)throw new Re(pe,R,Ae);return 0|R},validateSignalName:function(R,pe="signal"){if(U(R,pe),void 0===je[R]){if(void 0!==je[Be(R)])throw new Te(R+" (signals must use all capital letters)");throw new Te(R)}},validateString:U,validateUint32:He,validateUndefined:ze,validateUnion:function(R,pe,Ae){if(!ge(Ae,R))throw new Qe(pe,`('${ye(Ae,"|")}')`,R)},validateAbortSignal:Ye,validateLinkHeaderValue:function(R){if("string"==typeof R)return Y(R,"hints"),R;if(he(R)){const pe=R.length;let Ae="";if(0===pe)return Ae;for(let he=0;he; rel=preload; as=style"')}}},4381:(R,pe,Ae)=>{"use strict";const{format:he,inspect:ge,AggregateError:ye}=Ae(6087),me=globalThis.AggregateError||ye,ve=Symbol("kIsNodeError"),be=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Ee=/^([A-Z][a-z0-9]*)+$/,we={};function f(R,pe){if(!R)throw new we.ERR_INTERNAL_ASSERTION(pe)}function h(R){let pe="",Ae=R.length;const he="-"===R[0]?1:0;for(;Ae>=he+4;Ae-=3)pe=`_${R.slice(Ae-3,Ae)}${pe}`;return`${R.slice(0,Ae)}${pe}`}function d(R,pe,Ae){Ae||(Ae=Error);class i extends Ae{constructor(...Ae){super(function(R,pe,Ae){if("function"==typeof pe)return f(pe.length<=Ae.length,`Code: ${R}; The provided arguments length (${Ae.length}) does not match the required ones (${pe.length}).`),pe(...Ae);const ge=(pe.match(/%[dfijoOs]/g)||[]).length;return f(ge===Ae.length,`Code: ${R}; The provided arguments length (${Ae.length}) does not match the required ones (${ge}).`),0===Ae.length?pe:he(pe,...Ae)}(R,pe,Ae))}toString(){return`${this.name} [${R}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:Ae.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${R}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=R,i.prototype[ve]=!0,we[R]=i}function p(R){const pe="__node_internal_"+R.name;return Object.defineProperty(R,"name",{value:pe}),R}class b extends Error{constructor(R="The operation was aborted",pe=void 0){if(void 0!==pe&&"object"!=typeof pe)throw new we.ERR_INVALID_ARG_TYPE("options","Object",pe);super(R,pe),this.code="ABORT_ERR",this.name="AbortError"}}d("ERR_ASSERTION","%s",Error),d("ERR_INVALID_ARG_TYPE",((R,pe,Ae)=>{f("string"==typeof R,"'name' must be a string"),Array.isArray(pe)||(pe=[pe]);let he="The ";R.endsWith(" argument")?he+=`${R} `:he+=`"${R}" ${R.includes(".")?"property":"argument"} `,he+="must be ";const ye=[],me=[],ve=[];for(const R of pe)f("string"==typeof R,"All expected entries have to be of type string"),be.includes(R)?ye.push(R.toLowerCase()):Ee.test(R)?me.push(R):(f("object"!==R,'The value "object" should be written as "Object"'),ve.push(R));if(me.length>0){const R=ye.indexOf("object");-1!==R&&(ye.splice(ye,R,1),me.push("Object"))}if(ye.length>0){switch(ye.length){case 1:he+=`of type ${ye[0]}`;break;case 2:he+=`one of type ${ye[0]} or ${ye[1]}`;break;default:{const R=ye.pop();he+=`one of type ${ye.join(", ")}, or ${R}`}}(me.length>0||ve.length>0)&&(he+=" or ")}if(me.length>0){switch(me.length){case 1:he+=`an instance of ${me[0]}`;break;case 2:he+=`an instance of ${me[0]} or ${me[1]}`;break;default:{const R=me.pop();he+=`an instance of ${me.join(", ")}, or ${R}`}}ve.length>0&&(he+=" or ")}switch(ve.length){case 0:break;case 1:ve[0].toLowerCase()!==ve[0]&&(he+="an "),he+=`${ve[0]}`;break;case 2:he+=`one of ${ve[0]} or ${ve[1]}`;break;default:{const R=ve.pop();he+=`one of ${ve.join(", ")}, or ${R}`}}if(null==Ae)he+=`. Received ${Ae}`;else if("function"==typeof Ae&&Ae.name)he+=`. Received function ${Ae.name}`;else if("object"==typeof Ae){var we;null!==(we=Ae.constructor)&&void 0!==we&&we.name?he+=`. Received an instance of ${Ae.constructor.name}`:he+=`. Received ${ge(Ae,{depth:-1})}`}else{let R=ge(Ae,{colors:!1});R.length>25&&(R=`${R.slice(0,25)}...`),he+=`. Received type ${typeof Ae} (${R})`}return he}),TypeError),d("ERR_INVALID_ARG_VALUE",((R,pe,Ae="is invalid")=>{let he=ge(pe);return he.length>128&&(he=he.slice(0,128)+"..."),`The ${R.includes(".")?"property":"argument"} '${R}' ${Ae}. Received ${he}`}),TypeError),d("ERR_INVALID_RETURN_VALUE",((R,pe,Ae)=>{var he;return`Expected ${R} to be returned from the "${pe}" function but got ${null!=Ae&&null!==(he=Ae.constructor)&&void 0!==he&&he.name?`instance of ${Ae.constructor.name}`:"type "+typeof Ae}.`}),TypeError),d("ERR_MISSING_ARGS",((...R)=>{let pe;f(R.length>0,"At least one arg needs to be specified");const Ae=R.length;switch(R=(Array.isArray(R)?R:[R]).map((R=>`"${R}"`)).join(" or "),Ae){case 1:pe+=`The ${R[0]} argument`;break;case 2:pe+=`The ${R[0]} and ${R[1]} arguments`;break;default:{const Ae=R.pop();pe+=`The ${R.join(", ")}, and ${Ae} arguments`}}return`${pe} must be specified`}),TypeError),d("ERR_OUT_OF_RANGE",((R,pe,Ae)=>{let he;return f(pe,'Missing "range" argument'),Number.isInteger(Ae)&&Math.abs(Ae)>2**32?he=h(String(Ae)):"bigint"==typeof Ae?(he=String(Ae),(Ae>2n**32n||Ae<-(2n**32n))&&(he=h(he)),he+="n"):he=ge(Ae),`The value of "${R}" is out of range. It must be ${pe}. Received ${he}`}),RangeError),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),d("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),d("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),d("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),d("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),d("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),d("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),d("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),d("ERR_STREAM_WRITE_AFTER_END","write after end",Error),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),R.exports={AbortError:b,aggregateTwoErrors:p((function(R,pe){if(R&&pe&&R!==pe){if(Array.isArray(pe.errors))return pe.errors.push(R),pe;const Ae=new me([pe,R],pe.message);return Ae.code=pe.code,Ae}return R||pe})),hideStackFrames:p,codes:we}},9061:R=>{"use strict";R.exports={ArrayIsArray:R=>Array.isArray(R),ArrayPrototypeIncludes:(R,pe)=>R.includes(pe),ArrayPrototypeIndexOf:(R,pe)=>R.indexOf(pe),ArrayPrototypeJoin:(R,pe)=>R.join(pe),ArrayPrototypeMap:(R,pe)=>R.map(pe),ArrayPrototypePop:(R,pe)=>R.pop(pe),ArrayPrototypePush:(R,pe)=>R.push(pe),ArrayPrototypeSlice:(R,pe,Ae)=>R.slice(pe,Ae),Error:Error,FunctionPrototypeCall:(R,pe,...Ae)=>R.call(pe,...Ae),FunctionPrototypeSymbolHasInstance:(R,pe)=>Function.prototype[Symbol.hasInstance].call(R,pe),MathFloor:Math.floor,Number:Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(R,pe)=>Object.defineProperties(R,pe),ObjectDefineProperty:(R,pe,Ae)=>Object.defineProperty(R,pe,Ae),ObjectGetOwnPropertyDescriptor:(R,pe)=>Object.getOwnPropertyDescriptor(R,pe),ObjectKeys:R=>Object.keys(R),ObjectSetPrototypeOf:(R,pe)=>Object.setPrototypeOf(R,pe),Promise:Promise,PromisePrototypeCatch:(R,pe)=>R.catch(pe),PromisePrototypeThen:(R,pe,Ae)=>R.then(pe,Ae),PromiseReject:R=>Promise.reject(R),PromiseResolve:R=>Promise.resolve(R),ReflectApply:Reflect.apply,RegExpPrototypeTest:(R,pe)=>R.test(pe),SafeSet:Set,String:String,StringPrototypeSlice:(R,pe,Ae)=>R.slice(pe,Ae),StringPrototypeToLowerCase:R=>R.toLowerCase(),StringPrototypeToUpperCase:R=>R.toUpperCase(),StringPrototypeTrim:R=>R.trim(),Symbol:Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(R,pe,Ae)=>R.set(pe,Ae),Boolean:Boolean,Uint8Array:Uint8Array}},6087:(R,pe,Ae)=>{"use strict";const he=Ae(8764),{kResistStopPropagation:ge,SymbolDispose:ye}=Ae(9061),me=globalThis.AbortSignal||Ae(8599).AbortSignal,ve=globalThis.AbortController||Ae(8599).AbortController,be=Object.getPrototypeOf((async function(){})).constructor,Ee=globalThis.Blob||he.Blob,we=void 0!==Ee?function(R){return R instanceof Ee}:function(R){return!1},f=(R,pe)=>{if(void 0!==R&&(null===R||"object"!=typeof R||!("aborted"in R)))throw new ERR_INVALID_ARG_TYPE(pe,"AbortSignal",R)};class h extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError("Expected input to be an Array, got "+typeof R);let pe="";for(let Ae=0;Ae{R=Ae,pe=he})),resolve:R,reject:pe}},promisify:R=>new Promise(((pe,Ae)=>{R(((R,...he)=>R?Ae(R):pe(...he)))})),debuglog:()=>function(){},format:(R,...pe)=>R.replace(/%([sdifj])/g,(function(...[R,Ae]){const he=pe.shift();return"f"===Ae?he.toFixed(6):"j"===Ae?JSON.stringify(he):"s"===Ae&&"object"==typeof he?`${he.constructor!==Object?he.constructor.name:""} {}`.trim():he.toString()})),inspect(R){switch(typeof R){case"string":if(R.includes("'")){if(!R.includes('"'))return`"${R}"`;if(!R.includes("`")&&!R.includes("${"))return`\`${R}\``}return`'${R}'`;case"number":return isNaN(R)?"NaN":Object.is(R,-0)?String(R):R;case"bigint":return`${String(R)}n`;case"boolean":case"undefined":return String(R);case"object":return"{}"}},types:{isAsyncFunction:R=>R instanceof be,isArrayBufferView:R=>ArrayBuffer.isView(R)},isBlob:we,deprecate:(R,pe)=>R,addAbortListener:Ae(7187).addAbortListener||function(R,pe){if(void 0===R)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);let Ae;return f(R,"signal"),((R,pe)=>{if("function"!=typeof R)throw new ERR_INVALID_ARG_TYPE("listener","Function",R)})(pe),R.aborted?queueMicrotask((()=>pe())):(R.addEventListener("abort",pe,{__proto__:null,once:!0,[ge]:!0}),Ae=()=>{R.removeEventListener("abort",pe)}),{__proto__:null,[ye](){var R;null===(R=Ae)||void 0===R||R()}}},AbortSignalAny:me.any||function(R){if(1===R.length)return R[0];const pe=new ve,r=()=>pe.abort();return R.forEach((R=>{f(R,"signals"),R.addEventListener("abort",r,{once:!0})})),pe.signal.addEventListener("abort",(()=>{R.forEach((R=>R.removeEventListener("abort",r)))}),{once:!0}),pe.signal}},R.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},5099:(R,pe,Ae)=>{const{Buffer:he}=Ae(8764),{ObjectDefineProperty:ge,ObjectKeys:ye,ReflectApply:me}=Ae(9061),{promisify:{custom:ve}}=Ae(6087),{streamReturningOperators:be,promiseReturningOperators:Ee}=Ae(4382),{codes:{ERR_ILLEGAL_CONSTRUCTOR:we}}=Ae(4381),Ce=Ae(299),{setDefaultHighWaterMark:_e,getDefaultHighWaterMark:Ie}=Ae(2457),{pipeline:Se}=Ae(9946),{destroyer:Be}=Ae(1195),ke=Ae(8610),Oe=Ae(7854),Re=Ae(5874),Qe=R.exports=Ae(4870).Stream;Qe.isDestroyed=Re.isDestroyed,Qe.isDisturbed=Re.isDisturbed,Qe.isErrored=Re.isErrored,Qe.isReadable=Re.isReadable,Qe.isWritable=Re.isWritable,Qe.Readable=Ae(911);for(const R of ye(be)){const pe=be[R];function m(...R){if(new.target)throw we();return Qe.Readable.from(me(pe,this,R))}ge(m,"name",{__proto__:null,value:pe.name}),ge(m,"length",{__proto__:null,value:pe.length}),ge(Qe.Readable.prototype,R,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}for(const R of ye(Ee)){const pe=Ee[R];function m(...R){if(new.target)throw we();return me(pe,this,R)}ge(m,"name",{__proto__:null,value:pe.name}),ge(m,"length",{__proto__:null,value:pe.length}),ge(Qe.Readable.prototype,R,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}Qe.Writable=Ae(6304),Qe.Duplex=Ae(8672),Qe.Transform=Ae(1161),Qe.PassThrough=Ae(917),Qe.pipeline=Se;const{addAbortSignal:xe}=Ae(196);Qe.addAbortSignal=xe,Qe.finished=ke,Qe.destroy=Be,Qe.compose=Ce,Qe.setDefaultHighWaterMark=_e,Qe.getDefaultHighWaterMark=Ie,ge(Qe,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>Oe}),ge(Se,ve,{__proto__:null,enumerable:!0,get:()=>Oe.pipeline}),ge(ke,ve,{__proto__:null,enumerable:!0,get:()=>Oe.finished}),Qe.Stream=Qe,Qe._isUint8Array=function(R){return R instanceof Uint8Array},Qe._uint8ArrayToBuffer=function(R){return he.from(R.buffer,R.byteOffset,R.byteLength)}},7854:(R,pe,Ae)=>{"use strict";const{ArrayPrototypePop:he,Promise:ge}=Ae(9061),{isIterable:ye,isNodeStream:me,isWebStream:ve}=Ae(5874),{pipelineImpl:be}=Ae(9946),{finished:Ee}=Ae(8610);Ae(5099),R.exports={finished:Ee,pipeline:function(...R){return new ge(((pe,Ae)=>{let ge,Ee;const we=R[R.length-1];if(we&&"object"==typeof we&&!me(we)&&!ye(we)&&!ve(we)){const pe=he(R);ge=pe.signal,Ee=pe.end}be(R,((R,he)=>{R?Ae(R):pe(he)}),{signal:ge,end:Ee})}))}}},9509:(R,pe,Ae)=>{var he=Ae(8764),ge=he.Buffer;function o(R,pe){for(var Ae in R)pe[Ae]=R[Ae]}function s(R,pe,Ae){return ge(R,pe,Ae)}ge.from&&ge.alloc&&ge.allocUnsafe&&ge.allocUnsafeSlow?R.exports=he:(o(he,pe),pe.Buffer=s),s.prototype=Object.create(ge.prototype),o(ge,s),s.from=function(R,pe,Ae){if("number"==typeof R)throw new TypeError("Argument must not be a number");return ge(R,pe,Ae)},s.alloc=function(R,pe,Ae){if("number"!=typeof R)throw new TypeError("Argument must be a number");var he=ge(R);return void 0!==pe?"string"==typeof Ae?he.fill(pe,Ae):he.fill(pe):he.fill(0),he},s.allocUnsafe=function(R){if("number"!=typeof R)throw new TypeError("Argument must be a number");return ge(R)},s.allocUnsafeSlow=function(R){if("number"!=typeof R)throw new TypeError("Argument must be a number");return he.SlowBuffer(R)}},2830:(R,pe,Ae)=>{R.exports=i;var he=Ae(7187).EventEmitter;function i(){he.call(this)}Ae(5717)(i,he),i.Readable=Ae(9481),i.Writable=Ae(4229),i.Duplex=Ae(6753),i.Transform=Ae(4605),i.PassThrough=Ae(2725),i.finished=Ae(8610),i.pipeline=Ae(9946),i.Stream=i,i.prototype.pipe=function(R,pe){var Ae=this;function i(pe){R.writable&&!1===R.write(pe)&&Ae.pause&&Ae.pause()}function o(){Ae.readable&&Ae.resume&&Ae.resume()}Ae.on("data",i),R.on("drain",o),R._isStdio||pe&&!1===pe.end||(Ae.on("end",a),Ae.on("close",l));var ge=!1;function a(){ge||(ge=!0,R.end())}function l(){ge||(ge=!0,"function"==typeof R.destroy&&R.destroy())}function u(R){if(c(),0===he.listenerCount(this,"error"))throw R}function c(){Ae.removeListener("data",i),R.removeListener("drain",o),Ae.removeListener("end",a),Ae.removeListener("close",l),Ae.removeListener("error",u),R.removeListener("error",u),Ae.removeListener("end",c),Ae.removeListener("close",c),R.removeListener("close",c)}return Ae.on("error",u),R.on("error",u),Ae.on("end",c),Ae.on("close",c),R.on("close",c),R.emit("pipe",Ae),R}},2553:(R,pe,Ae)=>{"use strict";var he=Ae(9509).Buffer,ge=he.isEncoding||function(R){switch((R=""+R)&&R.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(R){var pe;switch(this.encoding=function(R){var pe=function(R){if(!R)return"utf8";for(var pe;;)switch(R){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return R;default:if(pe)return;R=(""+R).toLowerCase(),pe=!0}}(R);if("string"!=typeof pe&&(he.isEncoding===ge||!ge(R)))throw new Error("Unknown encoding: "+R);return pe||R}(R),this.encoding){case"utf16le":this.text=l,this.end=u,pe=4;break;case"utf8":this.fillLast=a,pe=4;break;case"base64":this.text=c,this.end=f,pe=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=he.allocUnsafe(pe)}function s(R){return R<=127?0:R>>5==6?2:R>>4==14?3:R>>3==30?4:R>>6==2?-1:-2}function a(R){var pe=this.lastTotal-this.lastNeed,Ae=function(R,pe,Ae){if(128!=(192&pe[0]))return R.lastNeed=0,"�";if(R.lastNeed>1&&pe.length>1){if(128!=(192&pe[1]))return R.lastNeed=1,"�";if(R.lastNeed>2&&pe.length>2&&128!=(192&pe[2]))return R.lastNeed=2,"�"}}(this,R);return void 0!==Ae?Ae:this.lastNeed<=R.length?(R.copy(this.lastChar,pe,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(R.copy(this.lastChar,pe,0,R.length),void(this.lastNeed-=R.length))}function l(R,pe){if((R.length-pe)%2==0){var Ae=R.toString("utf16le",pe);if(Ae){var he=Ae.charCodeAt(Ae.length-1);if(he>=55296&&he<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1],Ae.slice(0,-1)}return Ae}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=R[R.length-1],R.toString("utf16le",pe,R.length-1)}function u(R){var pe=R&&R.length?this.write(R):"";if(this.lastNeed){var Ae=this.lastTotal-this.lastNeed;return pe+this.lastChar.toString("utf16le",0,Ae)}return pe}function c(R,pe){var Ae=(R.length-pe)%3;return 0===Ae?R.toString("base64",pe):(this.lastNeed=3-Ae,this.lastTotal=3,1===Ae?this.lastChar[0]=R[R.length-1]:(this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1]),R.toString("base64",pe,R.length-Ae))}function f(R){var pe=R&&R.length?this.write(R):"";return this.lastNeed?pe+this.lastChar.toString("base64",0,3-this.lastNeed):pe}function h(R){return R.toString(this.encoding)}function d(R){return R&&R.length?this.write(R):""}pe.StringDecoder=o,o.prototype.write=function(R){if(0===R.length)return"";var pe,Ae;if(this.lastNeed){if(void 0===(pe=this.fillLast(R)))return"";Ae=this.lastNeed,this.lastNeed=0}else Ae=0;return Ae=0?(ge>0&&(R.lastNeed=ge-1),ge):--he=0?(ge>0&&(R.lastNeed=ge-2),ge):--he=0?(ge>0&&(2===ge?ge=0:R.lastNeed=ge-3),ge):0}(this,R,pe);if(!this.lastNeed)return R.toString("utf8",pe);this.lastTotal=Ae;var he=R.length-(Ae-this.lastNeed);return R.copy(this.lastChar,0,he),R.toString("utf8",pe,he)},o.prototype.fillLast=function(R){if(this.lastNeed<=R.length)return R.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);R.copy(this.lastChar,this.lastTotal-this.lastNeed,0,R.length),this.lastNeed-=R.length}}},pe={};function r(Ae){var he=pe[Ae];if(void 0!==he)return he.exports;var ge=pe[Ae]={exports:{}};return R[Ae](ge,ge.exports,r),ge.exports}r.n=R=>{var pe=R&&R.__esModule?()=>R.default:()=>R;return r.d(pe,{a:pe}),pe},r.d=(R,pe)=>{for(var Ae in pe)r.o(pe,Ae)&&!r.o(R,Ae)&&Object.defineProperty(R,Ae,{enumerable:!0,get:pe[Ae]})},r.o=(R,pe)=>Object.prototype.hasOwnProperty.call(R,pe),r.r=R=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(R,"__esModule",{value:!0})};var Ae={};return(()=>{"use strict";r.r(Ae);var R=r(2141),pe={};for(const Ae in R)"default"!==Ae&&(pe[Ae]=()=>R[Ae]);r.d(Ae,pe)})(),Ae})()))},32940:(R,pe,Ae)=>{"use strict";const he=Ae(27017);const ge=Ae(17296);const ye=Ae(88494);const me=Ae(86606);const ve=Ae(28184);const be=Ae(67034);const Ee=Ae(33123);const we=Ae(51657);R.exports={Commented:he,Diagnose:ge,Decoder:ye,Encoder:me,Simple:ve,Tagged:be,Map:Ee,SharedValueEncoder:we,comment:he.comment,decodeAll:ye.decodeAll,decodeFirst:ye.decodeFirst,decodeAllSync:ye.decodeAllSync,decodeFirstSync:ye.decodeFirstSync,diagnose:ge.diagnose,encode:me.encode,encodeCanonical:me.encodeCanonical,encodeOne:me.encodeOne,encodeAsync:me.encodeAsync,decode:ye.decodeFirstSync,leveldb:{decode:ye.decodeFirstSync,encode:me.encode,buffer:true,name:"cbor"},reset(){me.reset();be.reset()}}},27017:(R,pe,Ae)=>{"use strict";const he=Ae(12781);const ge=Ae(90103);const ye=Ae(88494);const me=Ae(75070);const{MT:ve,NUMBYTES:be,SYMS:Ee}=Ae(41346);const{Buffer:we}=Ae(14300);function plural(R){if(R>1){return"s"}return""}function normalizeOptions(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"number":return{options:{max_depth:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}class Commented extends he.Transform{constructor(R={}){const{depth:pe=1,max_depth:Ae=10,no_summary:he=false,tags:ge={},preferWeb:ve,encoding:be,...Ee}=R;super({...Ee,readableObjectMode:false,writableObjectMode:false});this.depth=pe;this.max_depth=Ae;this.all=new me;if(!ge[24]){ge[24]=this._tag_24.bind(this)}this.parser=new ye({tags:ge,max_depth:Ae,preferWeb:ve,encoding:be});this.parser.on("value",this._on_value.bind(this));this.parser.on("start",this._on_start.bind(this));this.parser.on("start-string",this._on_start_string.bind(this));this.parser.on("stop",this._on_stop.bind(this));this.parser.on("more-bytes",this._on_more.bind(this));this.parser.on("error",this._on_error.bind(this));if(!he){this.parser.on("data",this._on_data.bind(this))}this.parser.bs.on("read",this._on_read.bind(this))}_tag_24(R){const pe=new Commented({depth:this.depth+1,no_summary:true});pe.on("data",(R=>this.push(R)));pe.on("error",(R=>this.emit("error",R)));pe.end(R)}_transform(R,pe,Ae){this.parser.write(R,pe,Ae)}_flush(R){return this.parser._flush(R)}static comment(R,pe={},Ae=null){if(R==null){throw new Error("input required")}({options:pe,cb:Ae}=normalizeOptions(pe,Ae));const he=new me;const{encoding:ye="hex",...ve}=pe;const be=new Commented(ve);let Ee=null;if(typeof Ae==="function"){be.on("end",(()=>{Ae(null,he.toString("utf8"))}));be.on("error",Ae)}else{Ee=new Promise(((R,pe)=>{be.on("end",(()=>{R(he.toString("utf8"))}));be.on("error",pe)}))}be.pipe(he);ge.guessEncoding(R,ye).pipe(be);return Ee}_on_error(R){this.push("ERROR: ");this.push(R.toString());this.push("\n")}_on_read(R){this.all.write(R);const pe=R.toString("hex");this.push(new Array(this.depth+1).join(" "));this.push(pe);let Ae=(this.max_depth-this.depth)*2-pe.length;if(Ae<1){Ae=1}this.push(new Array(Ae+1).join(" "));this.push("-- ")}_on_more(R,pe,Ae,he){let ge="";this.depth++;switch(R){case ve.POS_INT:ge="Positive number,";break;case ve.NEG_INT:ge="Negative number,";break;case ve.ARRAY:ge="Array, length";break;case ve.MAP:ge="Map, count";break;case ve.BYTE_STRING:ge="Bytes, length";break;case ve.UTF8_STRING:ge="String, length";break;case ve.SIMPLE_FLOAT:if(pe===1){ge="Simple value,"}else{ge="Float,"}break}this.push(`${ge} next ${pe} byte${plural(pe)}\n`)}_on_start_string(R,pe,Ae,he){let ge="";this.depth++;switch(R){case ve.BYTE_STRING:ge=`Bytes, length: ${pe}`;break;case ve.UTF8_STRING:ge=`String, length: ${pe.toString()}`;break}this.push(`${ge}\n`)}_on_start(R,pe,Ae,he){this.depth++;switch(Ae){case ve.ARRAY:this.push(`[${he}], `);break;case ve.MAP:if(he%2){this.push(`{Val:${Math.floor(he/2)}}, `)}else{this.push(`{Key:${Math.floor(he/2)}}, `)}break}switch(R){case ve.TAG:this.push(`Tag #${pe}`);if(pe===24){this.push(" Encoded CBOR data item")}break;case ve.ARRAY:if(pe===Ee.STREAM){this.push("Array (streaming)")}else{this.push(`Array, ${pe} item${plural(pe)}`)}break;case ve.MAP:if(pe===Ee.STREAM){this.push("Map (streaming)")}else{this.push(`Map, ${pe} pair${plural(pe)}`)}break;case ve.BYTE_STRING:this.push("Bytes (streaming)");break;case ve.UTF8_STRING:this.push("String (streaming)");break}this.push("\n")}_on_stop(R){this.depth--}_on_value(R,pe,Ae,he){if(R!==Ee.BREAK){switch(pe){case ve.ARRAY:this.push(`[${Ae}], `);break;case ve.MAP:if(Ae%2){this.push(`{Val:${Math.floor(Ae/2)}}, `)}else{this.push(`{Key:${Math.floor(Ae/2)}}, `)}break}}const ye=ge.cborValueToString(R,-Infinity);if(typeof R==="string"||we.isBuffer(R)){if(R.length>0){this.push(ye);this.push("\n")}this.depth--}else{this.push(ye);this.push("\n")}switch(he){case be.ONE:case be.TWO:case be.FOUR:case be.EIGHT:this.depth--}}_on_data(){this.push("0x");this.push(this.all.read().toString("hex"));this.push("\n")}}R.exports=Commented},41346:(R,pe)=>{"use strict";pe.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7};pe.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36,SET:258};pe.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31};pe.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23};pe.SYMS={NULL:Symbol.for("github.com/hildjj/node-cbor/null"),UNDEFINED:Symbol.for("github.com/hildjj/node-cbor/undef"),PARENT:Symbol.for("github.com/hildjj/node-cbor/parent"),BREAK:Symbol.for("github.com/hildjj/node-cbor/break"),STREAM:Symbol.for("github.com/hildjj/node-cbor/stream")};pe.SHIFT32=4294967296;pe.BI={MINUS_ONE:BigInt(-1),NEG_MAX:BigInt(-1)-BigInt(Number.MAX_SAFE_INTEGER),MAXINT32:BigInt("0xffffffff"),MAXINT64:BigInt("0xffffffffffffffff"),SHIFT32:BigInt(pe.SHIFT32)}},88494:(R,pe,Ae)=>{"use strict";const he=Ae(36992);const ge=Ae(67034);const ye=Ae(28184);const me=Ae(90103);const ve=Ae(75070);const be=Ae(12781);const Ee=Ae(41346);const{MT:we,NUMBYTES:Ce,SYMS:_e,BI:Ie}=Ee;const{Buffer:Se}=Ae(14300);const Be=Symbol("count");const ke=Symbol("major type");const Oe=Symbol("error");const Re=Symbol("not found");function parentArray(R,pe,Ae){const he=[];he[Be]=Ae;he[_e.PARENT]=R;he[ke]=pe;return he}function parentBufferStream(R,pe){const Ae=new ve;Ae[Be]=-1;Ae[_e.PARENT]=R;Ae[ke]=pe;return Ae}class UnexpectedDataError extends Error{constructor(R,pe){super(`Unexpected data: 0x${R.toString(16)}`);this.name="UnexpectedDataError";this.byte=R;this.value=pe}}function normalizeOptions(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}class Decoder extends he{constructor(R={}){const{tags:pe={},max_depth:Ae=-1,preferMap:he=false,preferWeb:ge=false,required:ye=false,encoding:me="hex",extendedResults:be=false,preventDuplicateKeys:Ee=false,...we}=R;super({defaultEncoding:me,...we});this.running=true;this.max_depth=Ae;this.tags=pe;this.preferMap=he;this.preferWeb=ge;this.extendedResults=be;this.required=ye;this.preventDuplicateKeys=Ee;if(be){this.bs.on("read",this._onRead.bind(this));this.valueBytes=new ve}}static nullcheck(R){switch(R){case _e.NULL:return null;case _e.UNDEFINED:return undefined;case Re:throw new Error("Value not found");default:return R}}static decodeFirstSync(R,pe={}){if(R==null){throw new TypeError("input required")}({options:pe}=normalizeOptions(pe));const{encoding:Ae="hex",...he}=pe;const ge=new Decoder(he);const ye=me.guessEncoding(R,Ae);const ve=ge._parse();let be=ve.next();while(!be.done){const R=ye.read(be.value);if(R==null||R.length!==be.value){throw new Error("Insufficient data")}if(ge.extendedResults){ge.valueBytes.write(R)}be=ve.next(R)}let Ee=null;if(ge.extendedResults){Ee=be.value;Ee.unused=ye.read()}else{Ee=Decoder.nullcheck(be.value);if(ye.length>0){const R=ye.read(1);ye.unshift(R);throw new UnexpectedDataError(R[0],Ee)}}return Ee}static decodeAllSync(R,pe={}){if(R==null){throw new TypeError("input required")}({options:pe}=normalizeOptions(pe));const{encoding:Ae="hex",...he}=pe;const ge=new Decoder(he);const ye=me.guessEncoding(R,Ae);const ve=[];while(ye.length>0){const R=ge._parse();let pe=R.next();while(!pe.done){const Ae=ye.read(pe.value);if(Ae==null||Ae.length!==pe.value){throw new Error("Insufficient data")}if(ge.extendedResults){ge.valueBytes.write(Ae)}pe=R.next(Ae)}ve.push(Decoder.nullcheck(pe.value))}return ve}static decodeFirst(R,pe={},Ae=null){if(R==null){throw new TypeError("input required")}({options:pe,cb:Ae}=normalizeOptions(pe,Ae));const{encoding:he="hex",required:ge=false,...ye}=pe;const ve=new Decoder(ye);let be=Re;const Ee=me.guessEncoding(R,he);const we=new Promise(((R,pe)=>{ve.on("data",(R=>{be=Decoder.nullcheck(R);ve.close()}));ve.once("error",(Ae=>{if(ve.extendedResults&&Ae instanceof UnexpectedDataError){be.unused=ve.bs.slice();return R(be)}if(be!==Re){Ae["value"]=be}be=Oe;ve.close();return pe(Ae)}));ve.once("end",(()=>{switch(be){case Re:if(ge){return pe(new Error("No CBOR found"))}return R(be);case Oe:return undefined;default:return R(be)}}))}));if(typeof Ae==="function"){we.then((R=>Ae(null,R)),Ae)}Ee.pipe(ve);return we}static decodeAll(R,pe={},Ae=null){if(R==null){throw new TypeError("input required")}({options:pe,cb:Ae}=normalizeOptions(pe,Ae));const{encoding:he="hex",...ge}=pe;const ye=new Decoder(ge);const ve=[];ye.on("data",(R=>ve.push(Decoder.nullcheck(R))));const be=new Promise(((R,pe)=>{ye.on("error",pe);ye.on("end",(()=>R(ve)))}));if(typeof Ae==="function"){be.then((R=>Ae(undefined,R)),(R=>Ae(R,undefined)))}me.guessEncoding(R,he).pipe(ye);return be}close(){this.running=false;this.__fresh=true}_onRead(R){this.valueBytes.write(R)}*_parse(){let R=null;let pe=0;let Ae=null;while(true){if(this.max_depth>=0&&pe>this.max_depth){throw new Error(`Maximum depth ${this.max_depth} exceeded`)}const[he]=yield 1;if(!this.running){this.bs.unshift(Se.from([he]));throw new UnexpectedDataError(he)}const be=he>>5;const Ee=he&31;const Oe=R==null?undefined:R[ke];const Re=R==null?undefined:R.length;switch(Ee){case Ce.ONE:this.emit("more-bytes",be,1,Oe,Re);[Ae]=yield 1;break;case Ce.TWO:case Ce.FOUR:case Ce.EIGHT:{const R=1<{"use strict";const he=Ae(12781);const ge=Ae(88494);const ye=Ae(90103);const me=Ae(75070);const{MT:ve,SYMS:be}=Ae(41346);function normalizeOptions(R,pe){switch(typeof R){case"function":return{options:{},cb:R};case"string":return{options:{encoding:R},cb:pe};case"object":return{options:R||{},cb:pe};default:throw new TypeError("Unknown option type")}}class Diagnose extends he.Transform{constructor(R={}){const{separator:pe="\n",stream_errors:Ae=false,tags:he,max_depth:ye,preferWeb:me,encoding:ve,...be}=R;super({...be,readableObjectMode:false,writableObjectMode:false});this.float_bytes=-1;this.separator=pe;this.stream_errors=Ae;this.parser=new ge({tags:he,max_depth:ye,preferWeb:me,encoding:ve});this.parser.on("more-bytes",this._on_more.bind(this));this.parser.on("value",this._on_value.bind(this));this.parser.on("start",this._on_start.bind(this));this.parser.on("stop",this._on_stop.bind(this));this.parser.on("data",this._on_data.bind(this));this.parser.on("error",this._on_error.bind(this))}_transform(R,pe,Ae){this.parser.write(R,pe,Ae)}_flush(R){this.parser._flush((pe=>{if(this.stream_errors){if(pe){this._on_error(pe)}return R()}return R(pe)}))}static diagnose(R,pe={},Ae=null){if(R==null){throw new TypeError("input required")}({options:pe,cb:Ae}=normalizeOptions(pe,Ae));const{encoding:he="hex",...ge}=pe;const ve=new me;const be=new Diagnose(ge);let Ee=null;if(typeof Ae==="function"){be.on("end",(()=>Ae(null,ve.toString("utf8"))));be.on("error",Ae)}else{Ee=new Promise(((R,pe)=>{be.on("end",(()=>R(ve.toString("utf8"))));be.on("error",pe)}))}be.pipe(ve);ye.guessEncoding(R,he).pipe(be);return Ee}_on_error(R){if(this.stream_errors){this.push(R.toString())}else{this.emit("error",R)}}_on_more(R,pe,Ae,he){if(R===ve.SIMPLE_FLOAT){this.float_bytes={2:1,4:2,8:3}[pe]}}_fore(R,pe){switch(R){case ve.BYTE_STRING:case ve.UTF8_STRING:case ve.ARRAY:if(pe>0){this.push(", ")}break;case ve.MAP:if(pe>0){if(pe%2){this.push(": ")}else{this.push(", ")}}}}_on_value(R,pe,Ae){if(R===be.BREAK){return}this._fore(pe,Ae);const he=this.float_bytes;this.float_bytes=-1;this.push(ye.cborValueToString(R,he))}_on_start(R,pe,Ae,he){this._fore(Ae,he);switch(R){case ve.TAG:this.push(`${pe}(`);break;case ve.ARRAY:this.push("[");break;case ve.MAP:this.push("{");break;case ve.BYTE_STRING:case ve.UTF8_STRING:this.push("(");break}if(pe===be.STREAM){this.push("_ ")}}_on_stop(R){switch(R){case ve.TAG:this.push(")");break;case ve.ARRAY:this.push("]");break;case ve.MAP:this.push("}");break;case ve.BYTE_STRING:case ve.UTF8_STRING:this.push(")");break}}_on_data(){this.push(this.separator)}}R.exports=Diagnose},86606:(R,pe,Ae)=>{"use strict";const he=Ae(12781);const ge=Ae(75070);const ye=Ae(90103);const me=Ae(41346);const{MT:ve,NUMBYTES:be,SHIFT32:Ee,SIMPLE:we,SYMS:Ce,TAG:_e,BI:Ie}=me;const{Buffer:Se}=Ae(14300);const Be=ve.SIMPLE_FLOAT<<5|be.TWO;const ke=ve.SIMPLE_FLOAT<<5|be.FOUR;const Oe=ve.SIMPLE_FLOAT<<5|be.EIGHT;const Re=ve.SIMPLE_FLOAT<<5|we.TRUE;const Qe=ve.SIMPLE_FLOAT<<5|we.FALSE;const xe=ve.SIMPLE_FLOAT<<5|we.UNDEFINED;const Pe=ve.SIMPLE_FLOAT<<5|we.NULL;const Te=Se.from([255]);const De=Se.from("f97e00","hex");const Ne=Se.from("f9fc00","hex");const Me=Se.from("f97c00","hex");const je=Se.from("f98000","hex");const Fe={};let Le={};function parseDateType(R){if(!R){return"number"}switch(R.toLowerCase()){case"number":return"number";case"float":return"float";case"int":case"integer":return"int";case"string":return"string"}throw new TypeError(`dateType invalid, got "${R}"`)}class Encoder extends he.Transform{constructor(R={}){const{canonical:pe=false,encodeUndefined:Ae,disallowUndefinedKeys:he=false,dateType:ge="number",collapseBigIntegers:ye=false,detectLoops:me=false,omitUndefinedProperties:ve=false,genTypes:be=[],...Ee}=R;super({...Ee,readableObjectMode:false,writableObjectMode:true});this.canonical=pe;this.encodeUndefined=Ae;this.disallowUndefinedKeys=he;this.dateType=parseDateType(ge);this.collapseBigIntegers=this.canonical?true:ye;this.detectLoops=undefined;if(typeof me==="boolean"){if(me){this.detectLoops=new WeakSet}}else if(me instanceof WeakSet){this.detectLoops=me}else{throw new TypeError("detectLoops must be boolean or WeakSet")}this.omitUndefinedProperties=ve;this.semanticTypes={...Encoder.SEMANTIC_TYPES};if(Array.isArray(be)){for(let R=0,pe=be.length;R{const Ae=typeof R[pe];return Ae!=="function"&&(!this.omitUndefinedProperties||Ae!=="undefined")}));const he={};if(this.canonical){Ae.sort(((R,pe)=>{const Ae=he[R]||(he[R]=Encoder.encode(R));const ge=he[pe]||(he[pe]=Encoder.encode(pe));return Ae.compare(ge)}))}if(pe.indefinite){if(!this._pushUInt8(ve.MAP<<5|be.INDEFINITE)){return false}}else if(!this._pushInt(Ae.length,ve.MAP)){return false}let ge=null;for(let pe=0,ye=Ae.length;pepe!==undefined))}if(Ae.indefinite){if(!R._pushUInt8(ve.MAP<<5|be.INDEFINITE)){return false}}else if(!R._pushInt(he.length,ve.MAP)){return false}if(R.canonical){const pe=new Encoder({genTypes:R.semanticTypes,canonical:R.canonical,detectLoops:Boolean(R.detectLoops),dateType:R.dateType,disallowUndefinedKeys:R.disallowUndefinedKeys,collapseBigIntegers:R.collapseBigIntegers});const Ae=new ge({highWaterMark:R.readableHighWaterMark});pe.pipe(Ae);he.sort((([R],[he])=>{pe.pushAny(R);const ge=Ae.read();pe.pushAny(he);const ye=Ae.read();return ge.compare(ye)}));for(const[pe,Ae]of he){if(R.disallowUndefinedKeys&&typeof pe==="undefined"){throw new Error("Invalid Map key: undefined")}if(!(R.pushAny(pe)&&R.pushAny(Ae))){return false}}}else{for(const[pe,Ae]of he){if(R.disallowUndefinedKeys&&typeof pe==="undefined"){throw new Error("Invalid Map key: undefined")}if(!(R.pushAny(pe)&&R.pushAny(Ae))){return false}}}if(Ae.indefinite){if(!R.push(Te)){return false}}return true}static _pushTypedArray(R,pe){let Ae=64;let he=pe.BYTES_PER_ELEMENT;const{name:ge}=pe.constructor;if(ge.startsWith("Float")){Ae|=16;he/=2}else if(!ge.includes("U")){Ae|=8}if(ge.includes("Clamped")||he!==1&&!ye.isBigEndian()){Ae|=4}Ae|={1:0,2:1,4:2,8:3}[he];if(!R._pushTag(Ae)){return false}return Encoder._pushBuffer(R,Se.from(pe.buffer,pe.byteOffset,pe.byteLength))}static _pushArrayBuffer(R,pe){return Encoder._pushBuffer(R,Se.from(pe))}static encodeIndefinite(R,pe,Ae={}){if(pe==null){if(this==null){throw new Error("No object to encode")}pe=this}const{chunkSize:he=4096}=Ae;let ge=true;const me=typeof pe;let Ee=null;if(me==="string"){ge=ge&&R._pushUInt8(ve.UTF8_STRING<<5|be.INDEFINITE);let Ae=0;while(Ae{const ge=[];const ye=new Encoder(pe);ye.on("data",(R=>ge.push(R)));ye.on("error",he);ye.on("finish",(()=>Ae(Se.concat(ge))));ye.pushAny(R);ye.end()}))}static get SEMANTIC_TYPES(){return Le}static set SEMANTIC_TYPES(R){Le=R}static reset(){Encoder.SEMANTIC_TYPES={...Fe}}}Object.assign(Fe,{Array:Encoder.pushArray,Date:Encoder._pushDate,Buffer:Encoder._pushBuffer,[Se.name]:Encoder._pushBuffer,Map:Encoder._pushMap,NoFilter:Encoder._pushNoFilter,[ge.name]:Encoder._pushNoFilter,RegExp:Encoder._pushRegexp,Set:Encoder._pushSet,ArrayBuffer:Encoder._pushArrayBuffer,Uint8ClampedArray:Encoder._pushTypedArray,Uint8Array:Encoder._pushTypedArray,Uint16Array:Encoder._pushTypedArray,Uint32Array:Encoder._pushTypedArray,Int8Array:Encoder._pushTypedArray,Int16Array:Encoder._pushTypedArray,Int32Array:Encoder._pushTypedArray,Float32Array:Encoder._pushTypedArray,Float64Array:Encoder._pushTypedArray,URL:Encoder._pushURL,Boolean:Encoder._pushBoxed,Number:Encoder._pushBoxed,String:Encoder._pushBoxed});if(typeof BigUint64Array!=="undefined"){Fe[BigUint64Array.name]=Encoder._pushTypedArray}if(typeof BigInt64Array!=="undefined"){Fe[BigInt64Array.name]=Encoder._pushTypedArray}Encoder.reset();R.exports=Encoder},33123:(R,pe,Ae)=>{"use strict";const{Buffer:he}=Ae(14300);const ge=Ae(86606);const ye=Ae(88494);const{MT:me}=Ae(41346);class CborMap extends Map{constructor(R){super(R)}static _encode(R){return ge.encodeCanonical(R).toString("base64")}static _decode(R){return ye.decodeFirstSync(R,"base64")}get(R){return super.get(CborMap._encode(R))}set(R,pe){return super.set(CborMap._encode(R),pe)}delete(R){return super.delete(CborMap._encode(R))}has(R){return super.has(CborMap._encode(R))}*keys(){for(const R of super.keys()){yield CborMap._decode(R)}}*entries(){for(const R of super.entries()){yield[CborMap._decode(R[0]),R[1]]}}[Symbol.iterator](){return this.entries()}forEach(R,pe){if(typeof R!=="function"){throw new TypeError("Must be function")}for(const pe of super.entries()){R.call(this,pe[1],CborMap._decode(pe[0]),this)}}encodeCBOR(R){if(!R._pushInt(this.size,me.MAP)){return false}if(R.canonical){const pe=Array.from(super.entries()).map((R=>[he.from(R[0],"base64"),R[1]]));pe.sort(((R,pe)=>R[0].compare(pe[0])));for(const Ae of pe){if(!(R.push(Ae[0])&&R.pushAny(Ae[1]))){return false}}}else{for(const pe of super.entries()){if(!(R.push(he.from(pe[0],"base64"))&&R.pushAny(pe[1]))){return false}}}return true}}R.exports=CborMap},79551:R=>{"use strict";class ObjectRecorder{constructor(){this.clear()}clear(){this.map=new WeakMap;this.count=0;this.recording=true}stop(){this.recording=false}check(R){const pe=this.map.get(R);if(pe){if(pe.length>1){if(pe[0]||this.recording){return pe[1]}pe[0]=true;return ObjectRecorder.FIRST}if(!this.recording){return ObjectRecorder.NEVER}pe.push(this.count++);return pe[1]}if(!this.recording){throw new Error("New object detected when not recording")}this.map.set(R,[false]);return ObjectRecorder.NEVER}}ObjectRecorder.NEVER=-1;ObjectRecorder.FIRST=-2;R.exports=ObjectRecorder},51657:(R,pe,Ae)=>{"use strict";const he=Ae(86606);const ge=Ae(79551);const{Buffer:ye}=Ae(14300);class SharedValueEncoder extends he{constructor(R){super(R);this.valueSharing=new ge}_pushObject(R,pe){if(R!==null){const pe=this.valueSharing.check(R);switch(pe){case ge.FIRST:this._pushTag(28);break;case ge.NEVER:break;default:return this._pushTag(29)&&this._pushIntNum(pe)}}return super._pushObject(R,pe)}stopRecording(){this.valueSharing.stop()}clearRecording(){this.valueSharing.clear()}static encode(...R){const pe=new SharedValueEncoder;pe.on("data",(()=>{}));for(const Ae of R){pe.pushAny(Ae)}pe.stopRecording();pe.removeAllListeners("data");return pe._encodeAll(R)}static encodeCanonical(...R){throw new Error("Cannot encode canonically in a SharedValueEncoder, which serializes objects multiple times.")}static encodeOne(R,pe){const Ae=new SharedValueEncoder(pe);Ae.on("data",(()=>{}));Ae.pushAny(R);Ae.stopRecording();Ae.removeAllListeners("data");return Ae._encodeAll([R])}static encodeAsync(R,pe){return new Promise(((Ae,he)=>{const ge=[];const me=new SharedValueEncoder(pe);me.on("data",(()=>{}));me.on("error",he);me.on("finish",(()=>Ae(ye.concat(ge))));me.pushAny(R);me.stopRecording();me.removeAllListeners("data");me.on("data",(R=>ge.push(R)));me.pushAny(R);me.end()}))}}R.exports=SharedValueEncoder},28184:(R,pe,Ae)=>{"use strict";const{MT:he,SIMPLE:ge,SYMS:ye}=Ae(41346);class Simple{constructor(R){if(typeof R!=="number"){throw new Error(`Invalid Simple type: ${typeof R}`)}if(R<0||R>255||(R|0)!==R){throw new Error(`value must be a small positive integer: ${R}`)}this.value=R}toString(){return`simple(${this.value})`}[Symbol.for("nodejs.util.inspect.custom")](R,pe){return`simple(${this.value})`}encodeCBOR(R){return R._pushInt(this.value,he.SIMPLE_FLOAT)}static isSimple(R){return R instanceof Simple}static decode(R,pe=true,Ae=false){switch(R){case ge.FALSE:return false;case ge.TRUE:return true;case ge.NULL:if(pe){return null}return ye.NULL;case ge.UNDEFINED:if(pe){return undefined}return ye.UNDEFINED;case-1:if(!pe||!Ae){throw new Error("Invalid BREAK")}return ye.BREAK;default:return new Simple(R)}}}R.exports=Simple},67034:(R,pe,Ae)=>{"use strict";const he=Ae(41346);const ge=Ae(90103);const ye=Symbol("INTERNAL_JSON");function setBuffersToJSON(R,pe){if(ge.isBufferish(R)){R.toJSON=pe}else if(Array.isArray(R)){for(const Ae of R){setBuffersToJSON(Ae,pe)}}else if(R&&typeof R==="object"){if(!(R instanceof Tagged)||R.tag<21||R.tag>23){for(const Ae of Object.values(R)){setBuffersToJSON(Ae,pe)}}}}function b64this(){return ge.base64(this)}function b64urlThis(){return ge.base64url(this)}function hexThis(){return this.toString("hex")}function swapEndian(R,pe,Ae,he){const ge=new DataView(R);const[ye,me]={2:[ge.getUint16,ge.setUint16],4:[ge.getUint32,ge.setUint32],8:[ge.getBigUint64,ge.setBigUint64]}[pe];const ve=Ae+he;for(let R=Ae;Rnew Date(R),1:R=>new Date(R*1e3),2:R=>ge.bufferToBigInt(R),3:R=>he.BI.MINUS_ONE-ge.bufferToBigInt(R),21:(R,pe)=>{if(ge.isBufferish(R)){pe[ye]=b64urlThis}else{setBuffersToJSON(R,b64urlThis)}return pe},22:(R,pe)=>{if(ge.isBufferish(R)){pe[ye]=b64this}else{setBuffersToJSON(R,b64this)}return pe},23:(R,pe)=>{if(ge.isBufferish(R)){pe[ye]=hexThis}else{setBuffersToJSON(R,hexThis)}return pe},32:R=>new URL(R),33:(R,pe)=>{if(!R.match(/^[a-zA-Z0-9_-]+$/)){throw new Error("Invalid base64url characters")}const Ae=R.length%4;if(Ae===1){throw new Error("Invalid base64url length")}if(Ae===2){if("AQgw".indexOf(R[R.length-1])===-1){throw new Error("Invalid base64 padding")}}else if(Ae===3){if("AEIMQUYcgkosw048".indexOf(R[R.length-1])===-1){throw new Error("Invalid base64 padding")}}return pe},34:(R,pe)=>{const Ae=R.match(/^[a-zA-Z0-9+/]+(?={0,2})$/);if(!Ae){throw new Error("Invalid base64 characters")}if(R.length%4!==0){throw new Error("Invalid base64 length")}if(Ae.groups.padding==="="){if("AQgw".indexOf(R[R.length-2])===-1){throw new Error("Invalid base64 padding")}}else if(Ae.groups.padding==="=="){if("AEIMQUYcgkosw048".indexOf(R[R.length-3])===-1){throw new Error("Invalid base64 padding")}}return pe},35:R=>new RegExp(R),258:R=>new Set(R)};const ve={64:Uint8Array,65:Uint16Array,66:Uint32Array,68:Uint8ClampedArray,69:Uint16Array,70:Uint32Array,72:Int8Array,73:Int16Array,74:Int32Array,77:Int16Array,78:Int32Array,81:Float32Array,82:Float64Array,85:Float32Array,86:Float64Array};if(typeof BigUint64Array!=="undefined"){ve[67]=BigUint64Array;ve[71]=BigUint64Array}if(typeof BigInt64Array!=="undefined"){ve[75]=BigInt64Array;ve[79]=BigInt64Array}function _toTypedArray(R,pe){if(!ge.isBufferish(R)){throw new TypeError("val not a buffer")}const{tag:Ae}=pe;const he=ve[Ae];if(!he){throw new Error(`Invalid typed array tag: ${Ae}`)}const ye=Ae&4;const me=(Ae&16)>>4;const be=2**(me+(Ae&3));if(!ye!==ge.isBigEndian()&&be>1){swapEndian(R.buffer,be,R.byteOffset,R.byteLength)}const Ee=R.buffer.slice(R.byteOffset,R.byteOffset+R.byteLength);return new he(Ee)}for(const R of Object.keys(ve)){me[R]=_toTypedArray}let be={};class Tagged{constructor(R,pe,Ae){this.tag=R;this.value=pe;this.err=Ae;if(typeof this.tag!=="number"){throw new Error(`Invalid tag type (${typeof this.tag})`)}if(this.tag<0||(this.tag|0)!==this.tag){throw new Error(`Tag must be a positive integer: ${this.tag}`)}}toJSON(){if(this[ye]){return this[ye].call(this.value)}const R={tag:this.tag,value:this.value};if(this.err){R.err=this.err}return R}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(R){R._pushTag(this.tag);return R.pushAny(this.value)}convert(R){let pe=R==null?undefined:R[this.tag];if(pe===null){return this}if(typeof pe!=="function"){pe=Tagged.TAGS[this.tag];if(typeof pe!=="function"){return this}}try{return pe.call(this,this.value,this)}catch(R){if(R&&R.message&&R.message.length>0){this.err=R.message}else{this.err=R}return this}}static get TAGS(){return be}static set TAGS(R){be=R}static reset(){Tagged.TAGS={...me}}}Tagged.INTERNAL_JSON=ye;Tagged.reset();R.exports=Tagged},90103:(R,pe,Ae)=>{"use strict";const{Buffer:he}=Ae(14300);const ge=Ae(75070);const ye=Ae(12781);const me=Ae(41346);const{NUMBYTES:ve,SHIFT32:be,BI:Ee,SYMS:we}=me;const Ce=2097151;const _e=new TextDecoder("utf8",{fatal:true,ignoreBOM:true});pe.utf8=R=>_e.decode(R);pe.utf8.checksUTF8=true;function isReadable(R){if(R instanceof ye.Readable){return true}return["read","on","pipe"].every((pe=>typeof R[pe]==="function"))}pe.isBufferish=function isBufferish(R){return R&&typeof R==="object"&&(he.isBuffer(R)||R instanceof Uint8Array||R instanceof Uint8ClampedArray||R instanceof ArrayBuffer||R instanceof DataView)};pe.bufferishToBuffer=function bufferishToBuffer(R){if(he.isBuffer(R)){return R}else if(ArrayBuffer.isView(R)){return he.from(R.buffer,R.byteOffset,R.byteLength)}else if(R instanceof ArrayBuffer){return he.from(R)}return null};pe.parseCBORint=function parseCBORint(R,pe){switch(R){case ve.ONE:return pe.readUInt8(0);case ve.TWO:return pe.readUInt16BE(0);case ve.FOUR:return pe.readUInt32BE(0);case ve.EIGHT:{const R=pe.readUInt32BE(0);const Ae=pe.readUInt32BE(4);if(R>Ce){return BigInt(R)*Ee.SHIFT32+BigInt(Ae)}return R*be+Ae}default:throw new Error(`Invalid additional info for int: ${R}`)}};pe.writeHalf=function writeHalf(R,pe){const Ae=he.allocUnsafe(4);Ae.writeFloatBE(pe,0);const ge=Ae.readUInt32BE(0);if((ge&8191)!==0){return false}let ye=ge>>16&32768;const me=ge>>23&255;const ve=ge&8388607;if(me>=113&&me<=142){ye+=(me-112<<10)+(ve>>13)}else if(me>=103&&me<113){if(ve&(1<<126-me)-1){return false}ye+=ve+8388608>>126-me}else{return false}R.writeUInt16BE(ye);return true};pe.parseHalf=function parseHalf(R){const pe=R[0]&128?-1:1;const Ae=(R[0]&124)>>2;const he=(R[0]&3)<<8|R[1];if(!Ae){return pe*5.960464477539063e-8*he}else if(Ae===31){return pe*(he?NaN:Infinity)}return pe*2**(Ae-25)*(1024+he)};pe.parseCBORfloat=function parseCBORfloat(R){switch(R.length){case 2:return pe.parseHalf(R);case 4:return R.readFloatBE(0);case 8:return R.readDoubleBE(0);default:throw new Error(`Invalid float size: ${R.length}`)}};pe.hex=function hex(R){return he.from(R.replace(/^0x/,""),"hex")};pe.bin=function bin(R){R=R.replace(/\s/g,"");let pe=0;let Ae=R.length%8||8;const ge=[];while(Ae<=R.length){ge.push(parseInt(R.slice(pe,Ae),2));pe=Ae;Ae+=8}return he.from(ge)};pe.arrayEqual=function arrayEqual(R,pe){if(R==null&&pe==null){return true}if(R==null||pe==null){return false}return R.length===pe.length&&R.every(((R,Ae)=>R===pe[Ae]))};pe.bufferToBigInt=function bufferToBigInt(R){return BigInt(`0x${R.toString("hex")}`)};pe.cborValueToString=function cborValueToString(R,Ae=-1){switch(typeof R){case"symbol":{switch(R){case we.NULL:return"null";case we.UNDEFINED:return"undefined";case we.BREAK:return"BREAK"}if(R.description){return R.description}const pe=R.toString();const Ae=pe.match(/^Symbol\((?.*)\)/);if(Ae&&Ae.groups.name){return Ae.groups.name}return"Symbol"}case"string":return JSON.stringify(R);case"bigint":return R.toString();case"number":{const pe=Object.is(R,-0)?"-0":String(R);return Ae>0?`${pe}_${Ae}`:pe}case"object":{if(!R){return"null"}const he=pe.bufferishToBuffer(R);if(he){const R=he.toString("hex");return Ae===-Infinity?R:`h'${R}'`}if(R&&typeof R[Symbol.for("nodejs.util.inspect.custom")]==="function"){return R[Symbol.for("nodejs.util.inspect.custom")]()}if(Array.isArray(R)){return"[]"}return"{}"}}return String(R)};pe.guessEncoding=function guessEncoding(R,Ae){if(typeof R==="string"){return new ge(R,Ae==null?"hex":Ae)}const he=pe.bufferishToBuffer(R);if(he){return new ge(he)}if(isReadable(R)){return R}throw new Error("Unknown input type")};const Ie={"=":"","+":"-","/":"_"};pe.base64url=function base64url(R){return pe.bufferishToBuffer(R).toString("base64").replace(/[=+/]/g,(R=>Ie[R]))};pe.base64=function base64(R){return pe.bufferishToBuffer(R).toString("base64")};pe.isBigEndian=function isBigEndian(){const R=new Uint8Array(4);const pe=new Uint32Array(R.buffer);return!((pe[0]=1)&R[0])}},36992:(R,pe,Ae)=>{"use strict";const he=Ae(12781);const ge=Ae(75070);class BinaryParseStream extends he.Transform{constructor(R){super(R);this["_writableState"].objectMode=false;this["_readableState"].objectMode=true;this.bs=new ge;this.__restart()}_transform(R,pe,Ae){this.bs.write(R);while(this.bs.length>=this.__needed){let R=null;const pe=this.__needed===null?undefined:this.bs.read(this.__needed);try{R=this.__parser.next(pe)}catch(R){return Ae(R)}if(this.__needed){this.__fresh=false}if(R.done){this.push(R.value);this.__restart()}else{this.__needed=R.value||Infinity}}return Ae()}*_parse(){throw new Error("Must be implemented in subclass")}__restart(){this.__needed=null;this.__parser=this._parse();this.__fresh=true}_flush(R){R(this.__fresh?null:new Error("unexpected end of input"))}}R.exports=BinaryParseStream},85443:(R,pe,Ae)=>{var he=Ae(73837);var ge=Ae(12781).Stream;var ye=Ae(18611);R.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}he.inherits(CombinedStream,ge);CombinedStream.create=function(R){var pe=new this;R=R||{};for(var Ae in R){pe[Ae]=R[Ae]}return pe};CombinedStream.isStreamLike=function(R){return typeof R!=="function"&&typeof R!=="string"&&typeof R!=="boolean"&&typeof R!=="number"&&!Buffer.isBuffer(R)};CombinedStream.prototype.append=function(R){var pe=CombinedStream.isStreamLike(R);if(pe){if(!(R instanceof ye)){var Ae=ye.create(R,{maxDataSize:Infinity,pauseStream:this.pauseStreams});R.on("data",this._checkDataSize.bind(this));R=Ae}this._handleErrors(R);if(this.pauseStreams){R.pause()}}this._streams.push(R);return this};CombinedStream.prototype.pipe=function(R,pe){ge.prototype.pipe.call(this,R,pe);this.resume();return R};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var R=this._streams.shift();if(typeof R=="undefined"){this.end();return}if(typeof R!=="function"){this._pipeNext(R);return}var pe=R;pe(function(R){var pe=CombinedStream.isStreamLike(R);if(pe){R.on("data",this._checkDataSize.bind(this));this._handleErrors(R)}this._pipeNext(R)}.bind(this))};CombinedStream.prototype._pipeNext=function(R){this._currentStream=R;var pe=CombinedStream.isStreamLike(R);if(pe){R.on("end",this._getNext.bind(this));R.pipe(this,{end:false});return}var Ae=R;this.write(Ae);this._getNext()};CombinedStream.prototype._handleErrors=function(R){var pe=this;R.on("error",(function(R){pe._emitError(R)}))};CombinedStream.prototype.write=function(R){this.emit("data",R)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var R="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(R))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var R=this;this._streams.forEach((function(pe){if(!pe.dataSize){return}R.dataSize+=pe.dataSize}));if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(R){this._reset();this.emit("error",R)}},28222:(R,pe,Ae)=>{pe.formatArgs=formatArgs;pe.save=save;pe.load=load;pe.useColors=useColors;pe.storage=localstorage();pe.destroy=(()=>{let R=false;return()=>{if(!R){R=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`.")}}})();pe.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 R;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&&(R=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(R[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(pe){pe[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+pe[0]+(this.useColors?"%c ":" ")+"+"+R.exports.humanize(this.diff);if(!this.useColors){return}const Ae="color: "+this.color;pe.splice(1,0,Ae,"color: inherit");let he=0;let ge=0;pe[0].replace(/%[a-zA-Z%]/g,(R=>{if(R==="%%"){return}he++;if(R==="%c"){ge=he}}));pe.splice(ge,0,Ae)}pe.log=console.debug||console.log||(()=>{});function save(R){try{if(R){pe.storage.setItem("debug",R)}else{pe.storage.removeItem("debug")}}catch(R){}}function load(){let R;try{R=pe.storage.getItem("debug")}catch(R){}if(!R&&typeof process!=="undefined"&&"env"in process){R=process.env.DEBUG}return R}function localstorage(){try{return localStorage}catch(R){}}R.exports=Ae(46243)(pe);const{formatters:he}=R.exports;he.j=function(R){try{return JSON.stringify(R)}catch(R){return"[UnexpectedJSONParseError]: "+R.message}}},46243:(R,pe,Ae)=>{function setup(R){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=Ae(80900);createDebug.destroy=destroy;Object.keys(R).forEach((pe=>{createDebug[pe]=R[pe]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(R){let pe=0;for(let Ae=0;Ae{if(pe==="%%"){return"%"}ye++;const ge=createDebug.formatters[he];if(typeof ge==="function"){const he=R[ye];pe=ge.call(Ae,he);R.splice(ye,1);ye--}return pe}));createDebug.formatArgs.call(Ae,R);const me=Ae.log||createDebug.log;me.apply(Ae,R)}debug.namespace=R;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(R);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(Ae!==null){return Ae}if(he!==createDebug.namespaces){he=createDebug.namespaces;ge=createDebug.enabled(R)}return ge},set:R=>{Ae=R}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(R,pe){const Ae=createDebug(this.namespace+(typeof pe==="undefined"?":":pe)+R);Ae.log=this.log;return Ae}function enable(R){createDebug.save(R);createDebug.namespaces=R;createDebug.names=[];createDebug.skips=[];let pe;const Ae=(typeof R==="string"?R:"").split(/[\s,]+/);const he=Ae.length;for(pe=0;pe"-"+R))].join(",");createDebug.enable("");return R}function enabled(R){if(R[R.length-1]==="*"){return true}let pe;let Ae;for(pe=0,Ae=createDebug.skips.length;pe{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){R.exports=Ae(28222)}else{R.exports=Ae(35332)}},35332:(R,pe,Ae)=>{const he=Ae(76224);const ge=Ae(73837);pe.init=init;pe.log=log;pe.formatArgs=formatArgs;pe.save=save;pe.load=load;pe.useColors=useColors;pe.destroy=ge.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");pe.colors=[6,2,3,4,5,1];try{const R=Ae(59318);if(R&&(R.stderr||R).level>=2){pe.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(R){}pe.inspectOpts=Object.keys(process.env).filter((R=>/^debug_/i.test(R))).reduce(((R,pe)=>{const Ae=pe.substring(6).toLowerCase().replace(/_([a-z])/g,((R,pe)=>pe.toUpperCase()));let he=process.env[pe];if(/^(yes|on|true|enabled)$/i.test(he)){he=true}else if(/^(no|off|false|disabled)$/i.test(he)){he=false}else if(he==="null"){he=null}else{he=Number(he)}R[Ae]=he;return R}),{});function useColors(){return"colors"in pe.inspectOpts?Boolean(pe.inspectOpts.colors):he.isatty(process.stderr.fd)}function formatArgs(pe){const{namespace:Ae,useColors:he}=this;if(he){const he=this.color;const ge="[3"+(he<8?he:"8;5;"+he);const ye=` ${ge};1m${Ae} `;pe[0]=ye+pe[0].split("\n").join("\n"+ye);pe.push(ge+"m+"+R.exports.humanize(this.diff)+"")}else{pe[0]=getDate()+Ae+" "+pe[0]}}function getDate(){if(pe.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...R){return process.stderr.write(ge.formatWithOptions(pe.inspectOpts,...R)+"\n")}function save(R){if(R){process.env.DEBUG=R}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(R){R.inspectOpts={};const Ae=Object.keys(pe.inspectOpts);for(let he=0;heR.trim())).join(" ")};ye.O=function(R){this.inspectOpts.colors=this.useColors;return ge.inspect(R,this.inspectOpts)}},18611:(R,pe,Ae)=>{var he=Ae(12781).Stream;var ge=Ae(73837);R.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}ge.inherits(DelayedStream,he);DelayedStream.create=function(R,pe){var Ae=new this;pe=pe||{};for(var he in pe){Ae[he]=pe[he]}Ae.source=R;var ge=R.emit;R.emit=function(){Ae._handleEmit(arguments);return ge.apply(R,arguments)};R.on("error",(function(){}));if(Ae.pauseStream){R.pause()}return Ae};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(R){this.emit.apply(this,R)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var R=he.prototype.pipe.apply(this,arguments);this.resume();return R};DelayedStream.prototype._handleEmit=function(R){if(this._released){this.emit.apply(this,R);return}if(R[0]==="data"){this.dataSize+=R[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(R)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var R="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(R))}},12437:(R,pe,Ae)=>{const he=Ae(57147);const ge=Ae(71017);const ye=Ae(22037);const me=Ae(6113);const ve=Ae(49968);const be=ve.version;const Ee=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(R){const pe={};let Ae=R.toString();Ae=Ae.replace(/\r\n?/gm,"\n");let he;while((he=Ee.exec(Ae))!=null){const R=he[1];let Ae=he[2]||"";Ae=Ae.trim();const ge=Ae[0];Ae=Ae.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(ge==='"'){Ae=Ae.replace(/\\n/g,"\n");Ae=Ae.replace(/\\r/g,"\r")}pe[R]=Ae}return pe}function _parseVault(R){const pe=_vaultPath(R);const Ae=we.configDotenv({path:pe});if(!Ae.parsed){const R=new Error(`MISSING_DATA: Cannot parse ${pe} for an unknown reason`);R.code="MISSING_DATA";throw R}const he=_dotenvKey(R).split(",");const ge=he.length;let ye;for(let R=0;R=ge){throw pe}}}return we.parse(ye)}function _log(R){console.log(`[dotenv@${be}][INFO] ${R}`)}function _warn(R){console.log(`[dotenv@${be}][WARN] ${R}`)}function _debug(R){console.log(`[dotenv@${be}][DEBUG] ${R}`)}function _dotenvKey(R){if(R&&R.DOTENV_KEY&&R.DOTENV_KEY.length>0){return R.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(R,pe){let Ae;try{Ae=new URL(pe)}catch(R){if(R.code==="ERR_INVALID_URL"){const R=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");R.code="INVALID_DOTENV_KEY";throw R}throw R}const he=Ae.password;if(!he){const R=new Error("INVALID_DOTENV_KEY: Missing key part");R.code="INVALID_DOTENV_KEY";throw R}const ge=Ae.searchParams.get("environment");if(!ge){const R=new Error("INVALID_DOTENV_KEY: Missing environment part");R.code="INVALID_DOTENV_KEY";throw R}const ye=`DOTENV_VAULT_${ge.toUpperCase()}`;const me=R.parsed[ye];if(!me){const R=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${ye} in your .env.vault file.`);R.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw R}return{ciphertext:me,key:he}}function _vaultPath(R){let pe=null;if(R&&R.path&&R.path.length>0){if(Array.isArray(R.path)){for(const Ae of R.path){if(he.existsSync(Ae)){pe=Ae.endsWith(".vault")?Ae:`${Ae}.vault`}}}else{pe=R.path.endsWith(".vault")?R.path:`${R.path}.vault`}}else{pe=ge.resolve(process.cwd(),".env.vault")}if(he.existsSync(pe)){return pe}return null}function _resolveHome(R){return R[0]==="~"?ge.join(ye.homedir(),R.slice(1)):R}function _configVault(R){_log("Loading env from encrypted .env.vault");const pe=we._parseVault(R);let Ae=process.env;if(R&&R.processEnv!=null){Ae=R.processEnv}we.populate(Ae,pe,R);return{parsed:pe}}function configDotenv(R){const pe=ge.resolve(process.cwd(),".env");let Ae="utf8";const ye=Boolean(R&&R.debug);if(R&&R.encoding){Ae=R.encoding}else{if(ye){_debug("No encoding is specified. UTF-8 is used by default")}}let me=[pe];if(R&&R.path){if(!Array.isArray(R.path)){me=[_resolveHome(R.path)]}else{me=[];for(const pe of R.path){me.push(_resolveHome(pe))}}}let ve;const be={};for(const pe of me){try{const ge=we.parse(he.readFileSync(pe,{encoding:Ae}));we.populate(be,ge,R)}catch(R){if(ye){_debug(`Failed to load ${pe} ${R.message}`)}ve=R}}let Ee=process.env;if(R&&R.processEnv!=null){Ee=R.processEnv}we.populate(Ee,be,R);if(ve){return{parsed:be,error:ve}}else{return{parsed:be}}}function config(R){if(_dotenvKey(R).length===0){return we.configDotenv(R)}const pe=_vaultPath(R);if(!pe){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${pe}. Did you forget to build it?`);return we.configDotenv(R)}return we._configVault(R)}function decrypt(R,pe){const Ae=Buffer.from(pe.slice(-64),"hex");let he=Buffer.from(R,"base64");const ge=he.subarray(0,12);const ye=he.subarray(-16);he=he.subarray(12,-16);try{const R=me.createDecipheriv("aes-256-gcm",Ae,ge);R.setAuthTag(ye);return`${R.update(he)}${R.final()}`}catch(R){const pe=R instanceof RangeError;const Ae=R.message==="Invalid key length";const he=R.message==="Unsupported state or unable to authenticate data";if(pe||Ae){const R=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");R.code="INVALID_DOTENV_KEY";throw R}else if(he){const R=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");R.code="DECRYPTION_FAILED";throw R}else{throw R}}}function populate(R,pe,Ae={}){const he=Boolean(Ae&&Ae.debug);const ge=Boolean(Ae&&Ae.override);if(typeof pe!=="object"){const R=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");R.code="OBJECT_REQUIRED";throw R}for(const Ae of Object.keys(pe)){if(Object.prototype.hasOwnProperty.call(R,Ae)){if(ge===true){R[Ae]=pe[Ae]}if(he){if(ge===true){_debug(`"${Ae}" is already defined and WAS overwritten`)}else{_debug(`"${Ae}" is already defined and was NOT overwritten`)}}}else{R[Ae]=pe[Ae]}}}const we={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};R.exports.configDotenv=we.configDotenv;R.exports._configVault=we._configVault;R.exports._parseVault=we._parseVault;R.exports.config=we.config;R.exports.decrypt=we.decrypt;R.exports.parse=we.parse;R.exports.populate=we.populate;R.exports=we},28206:R=>{"use strict";R.exports=function equal(R,pe){if(R===pe)return true;if(R&&pe&&typeof R=="object"&&typeof pe=="object"){if(R.constructor!==pe.constructor)return false;var Ae,he,ge;if(Array.isArray(R)){Ae=R.length;if(Ae!=pe.length)return false;for(he=Ae;he--!==0;)if(!equal(R[he],pe[he]))return false;return true}if(R.constructor===RegExp)return R.source===pe.source&&R.flags===pe.flags;if(R.valueOf!==Object.prototype.valueOf)return R.valueOf()===pe.valueOf();if(R.toString!==Object.prototype.toString)return R.toString()===pe.toString();ge=Object.keys(R);Ae=ge.length;if(Ae!==Object.keys(pe).length)return false;for(he=Ae;he--!==0;)if(!Object.prototype.hasOwnProperty.call(pe,ge[he]))return false;for(he=Ae;he--!==0;){var ye=ge[he];if(!equal(R[ye],pe[ye]))return false}return true}return R!==R&&pe!==pe}},31133:(R,pe,Ae)=>{var he;R.exports=function(){if(!he){try{he=Ae(38237)("follow-redirects")}catch(R){}if(typeof he!=="function"){he=function(){}}}he.apply(null,arguments)}},67707:(R,pe,Ae)=>{var he=Ae(57310);var ge=he.URL;var ye=Ae(13685);var me=Ae(95687);var ve=Ae(12781).Writable;var be=Ae(39491);var Ee=Ae(31133);var we=false;try{be(new ge)}catch(R){we=R.code==="ERR_INVALID_URL"}var Ce=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"];var _e=["abort","aborted","connect","error","socket","timeout"];var Ie=Object.create(null);_e.forEach((function(R){Ie[R]=function(pe,Ae,he){this._redirectable.emit(R,pe,Ae,he)}}));var Se=createErrorType("ERR_INVALID_URL","Invalid URL",TypeError);var Be=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed");var ke=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Be);var Oe=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var Re=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");var Qe=ve.prototype.destroy||noop;function RedirectableRequest(R,pe){ve.call(this);this._sanitizeOptions(R);this._options=R;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(pe){this.on("response",pe)}var Ae=this;this._onNativeResponse=function(R){try{Ae._processResponse(R)}catch(R){Ae.emit("error",R instanceof Be?R:new Be({cause:R}))}};this._performRequest()}RedirectableRequest.prototype=Object.create(ve.prototype);RedirectableRequest.prototype.abort=function(){destroyRequest(this._currentRequest);this._currentRequest.abort();this.emit("abort")};RedirectableRequest.prototype.destroy=function(R){destroyRequest(this._currentRequest,R);Qe.call(this,R);return this};RedirectableRequest.prototype.write=function(R,pe,Ae){if(this._ending){throw new Re}if(!isString(R)&&!isBuffer(R)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(isFunction(pe)){Ae=pe;pe=null}if(R.length===0){if(Ae){Ae()}return}if(this._requestBodyLength+R.length<=this._options.maxBodyLength){this._requestBodyLength+=R.length;this._requestBodyBuffers.push({data:R,encoding:pe});this._currentRequest.write(R,pe,Ae)}else{this.emit("error",new Oe);this.abort()}};RedirectableRequest.prototype.end=function(R,pe,Ae){if(isFunction(R)){Ae=R;R=pe=null}else if(isFunction(pe)){Ae=pe;pe=null}if(!R){this._ended=this._ending=true;this._currentRequest.end(null,null,Ae)}else{var he=this;var ge=this._currentRequest;this.write(R,pe,(function(){he._ended=true;ge.end(null,null,Ae)}));this._ending=true}};RedirectableRequest.prototype.setHeader=function(R,pe){this._options.headers[R]=pe;this._currentRequest.setHeader(R,pe)};RedirectableRequest.prototype.removeHeader=function(R){delete this._options.headers[R];this._currentRequest.removeHeader(R)};RedirectableRequest.prototype.setTimeout=function(R,pe){var Ae=this;function destroyOnTimeout(pe){pe.setTimeout(R);pe.removeListener("timeout",pe.destroy);pe.addListener("timeout",pe.destroy)}function startTimer(pe){if(Ae._timeout){clearTimeout(Ae._timeout)}Ae._timeout=setTimeout((function(){Ae.emit("timeout");clearTimer()}),R);destroyOnTimeout(pe)}function clearTimer(){if(Ae._timeout){clearTimeout(Ae._timeout);Ae._timeout=null}Ae.removeListener("abort",clearTimer);Ae.removeListener("error",clearTimer);Ae.removeListener("response",clearTimer);Ae.removeListener("close",clearTimer);if(pe){Ae.removeListener("timeout",pe)}if(!Ae.socket){Ae._currentRequest.removeListener("socket",startTimer)}}if(pe){this.on("timeout",pe)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.on("abort",clearTimer);this.on("error",clearTimer);this.on("response",clearTimer);this.on("close",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(R){RedirectableRequest.prototype[R]=function(pe,Ae){return this._currentRequest[R](pe,Ae)}}));["aborted","connection","socket"].forEach((function(R){Object.defineProperty(RedirectableRequest.prototype,R,{get:function(){return this._currentRequest[R]}})}));RedirectableRequest.prototype._sanitizeOptions=function(R){if(!R.headers){R.headers={}}if(R.host){if(!R.hostname){R.hostname=R.host}delete R.host}if(!R.pathname&&R.path){var pe=R.path.indexOf("?");if(pe<0){R.pathname=R.path}else{R.pathname=R.path.substring(0,pe);R.search=R.path.substring(pe)}}};RedirectableRequest.prototype._performRequest=function(){var R=this._options.protocol;var pe=this._options.nativeProtocols[R];if(!pe){throw new TypeError("Unsupported protocol "+R)}if(this._options.agents){var Ae=R.slice(0,-1);this._options.agent=this._options.agents[Ae]}var ge=this._currentRequest=pe.request(this._options,this._onNativeResponse);ge._redirectable=this;for(var ye of _e){ge.on(ye,Ie[ye])}this._currentUrl=/^\//.test(this._options.path)?he.format(this._options):this._options.path;if(this._isRedirect){var me=0;var ve=this;var be=this._requestBodyBuffers;(function writeNext(R){if(ge===ve._currentRequest){if(R){ve.emit("error",R)}else if(me=400){R.responseUrl=this._currentUrl;R.redirects=this._redirects;this.emit("response",R);this._requestBodyBuffers=[];return}destroyRequest(this._currentRequest);R.destroy();if(++this._redirectCount>this._options.maxRedirects){throw new ke}var ge;var ye=this._options.beforeRedirect;if(ye){ge=Object.assign({Host:R.req.getHeader("host")},this._options.headers)}var me=this._options.method;if((pe===301||pe===302)&&this._options.method==="POST"||pe===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var ve=removeMatchingHeaders(/^host$/i,this._options.headers);var be=parseUrl(this._currentUrl);var we=ve||be.host;var Ce=/^\w+:/.test(Ae)?this._currentUrl:he.format(Object.assign(be,{host:we}));var _e=resolveUrl(Ae,Ce);Ee("redirecting to",_e.href);this._isRedirect=true;spreadUrlObject(_e,this._options);if(_e.protocol!==be.protocol&&_e.protocol!=="https:"||_e.host!==we&&!isSubdomain(_e.host,we)){removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers)}if(isFunction(ye)){var Ie={headers:R.headers,statusCode:pe};var Se={url:Ce,method:me,headers:ge};ye(this._options,Ie,Se);this._sanitizeOptions(this._options)}this._performRequest()};function wrap(R){var pe={maxRedirects:21,maxBodyLength:10*1024*1024};var Ae={};Object.keys(R).forEach((function(he){var ge=he+":";var ye=Ae[ge]=R[he];var me=pe[he]=Object.create(ye);function request(R,he,ye){if(isURL(R)){R=spreadUrlObject(R)}else if(isString(R)){R=spreadUrlObject(parseUrl(R))}else{ye=he;he=validateUrl(R);R={protocol:ge}}if(isFunction(he)){ye=he;he=null}he=Object.assign({maxRedirects:pe.maxRedirects,maxBodyLength:pe.maxBodyLength},R,he);he.nativeProtocols=Ae;if(!isString(he.host)&&!isString(he.hostname)){he.hostname="::1"}be.equal(he.protocol,ge,"protocol mismatch");Ee("options",he);return new RedirectableRequest(he,ye)}function get(R,pe,Ae){var he=me.request(R,pe,Ae);he.end();return he}Object.defineProperties(me,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})}));return pe}function noop(){}function parseUrl(R){var pe;if(we){pe=new ge(R)}else{pe=validateUrl(he.parse(R));if(!isString(pe.protocol)){throw new Se({input:R})}}return pe}function resolveUrl(R,pe){return we?new ge(R,pe):parseUrl(he.resolve(pe,R))}function validateUrl(R){if(/^\[/.test(R.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(R.hostname)){throw new Se({input:R.href||R})}if(/^\[/.test(R.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(R.host)){throw new Se({input:R.href||R})}return R}function spreadUrlObject(R,pe){var Ae=pe||{};for(var he of Ce){Ae[he]=R[he]}if(Ae.hostname.startsWith("[")){Ae.hostname=Ae.hostname.slice(1,-1)}if(Ae.port!==""){Ae.port=Number(Ae.port)}Ae.path=Ae.search?Ae.pathname+Ae.search:Ae.pathname;return Ae}function removeMatchingHeaders(R,pe){var Ae;for(var he in pe){if(R.test(he)){Ae=pe[he];delete pe[he]}}return Ae===null||typeof Ae==="undefined"?undefined:String(Ae).trim()}function createErrorType(R,pe,Ae){function CustomError(Ae){Error.captureStackTrace(this,this.constructor);Object.assign(this,Ae||{});this.code=R;this.message=this.cause?pe+": "+this.cause.message:pe}CustomError.prototype=new(Ae||Error);Object.defineProperties(CustomError.prototype,{constructor:{value:CustomError,enumerable:false},name:{value:"Error ["+R+"]",enumerable:false}});return CustomError}function destroyRequest(R,pe){for(var Ae of _e){R.removeListener(Ae,Ie[Ae])}R.on("error",noop);R.destroy(pe)}function isSubdomain(R,pe){be(isString(R)&&isString(pe));var Ae=R.length-pe.length-1;return Ae>0&&R[Ae]==="."&&R.endsWith(pe)}function isString(R){return typeof R==="string"||R instanceof String}function isFunction(R){return typeof R==="function"}function isBuffer(R){return typeof R==="object"&&"length"in R}function isURL(R){return ge&&R instanceof ge}R.exports=wrap({http:ye,https:me});R.exports.wrap=wrap},83083:R=>{var pe=Object.prototype.hasOwnProperty;var Ae=Object.prototype.toString;R.exports=function forEach(R,he,ge){if(Ae.call(he)!=="[object Function]"){throw new TypeError("iterator must be a function")}var ye=R.length;if(ye===+ye){for(var me=0;me{var he=Ae(85443);var ge=Ae(73837);var ye=Ae(71017);var me=Ae(13685);var ve=Ae(95687);var be=Ae(57310).parse;var Ee=Ae(57147);var we=Ae(12781).Stream;var Ce=Ae(43583);var _e=Ae(14812);var Ie=Ae(17142);R.exports=FormData;ge.inherits(FormData,he);function FormData(R){if(!(this instanceof FormData)){return new FormData(R)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];he.call(this);R=R||{};for(var pe in R){this[pe]=R[pe]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(R,pe,Ae){Ae=Ae||{};if(typeof Ae=="string"){Ae={filename:Ae}}var ye=he.prototype.append.bind(this);if(typeof pe=="number"){pe=""+pe}if(ge.isArray(pe)){this._error(new Error("Arrays are not supported."));return}var me=this._multiPartHeader(R,pe,Ae);var ve=this._multiPartFooter();ye(me);ye(pe);ye(ve);this._trackLength(me,pe,Ae)};FormData.prototype._trackLength=function(R,pe,Ae){var he=0;if(Ae.knownLength!=null){he+=+Ae.knownLength}else if(Buffer.isBuffer(pe)){he=pe.length}else if(typeof pe==="string"){he=Buffer.byteLength(pe)}this._valueLength+=he;this._overheadLength+=Buffer.byteLength(R)+FormData.LINE_BREAK.length;if(!pe||!pe.path&&!(pe.readable&&pe.hasOwnProperty("httpVersion"))&&!(pe instanceof we)){return}if(!Ae.knownLength){this._valuesToMeasure.push(pe)}};FormData.prototype._lengthRetriever=function(R,pe){if(R.hasOwnProperty("fd")){if(R.end!=undefined&&R.end!=Infinity&&R.start!=undefined){pe(null,R.end+1-(R.start?R.start:0))}else{Ee.stat(R.path,(function(Ae,he){var ge;if(Ae){pe(Ae);return}ge=he.size-(R.start?R.start:0);pe(null,ge)}))}}else if(R.hasOwnProperty("httpVersion")){pe(null,+R.headers["content-length"])}else if(R.hasOwnProperty("httpModule")){R.on("response",(function(Ae){R.pause();pe(null,+Ae.headers["content-length"])}));R.resume()}else{pe("Unknown stream")}};FormData.prototype._multiPartHeader=function(R,pe,Ae){if(typeof Ae.header=="string"){return Ae.header}var he=this._getContentDisposition(pe,Ae);var ge=this._getContentType(pe,Ae);var ye="";var me={"Content-Disposition":["form-data",'name="'+R+'"'].concat(he||[]),"Content-Type":[].concat(ge||[])};if(typeof Ae.header=="object"){Ie(me,Ae.header)}var ve;for(var be in me){if(!me.hasOwnProperty(be))continue;ve=me[be];if(ve==null){continue}if(!Array.isArray(ve)){ve=[ve]}if(ve.length){ye+=be+": "+ve.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+ye+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(R,pe){var Ae,he;if(typeof pe.filepath==="string"){Ae=ye.normalize(pe.filepath).replace(/\\/g,"/")}else if(pe.filename||R.name||R.path){Ae=ye.basename(pe.filename||R.name||R.path)}else if(R.readable&&R.hasOwnProperty("httpVersion")){Ae=ye.basename(R.client._httpMessage.path||"")}if(Ae){he='filename="'+Ae+'"'}return he};FormData.prototype._getContentType=function(R,pe){var Ae=pe.contentType;if(!Ae&&R.name){Ae=Ce.lookup(R.name)}if(!Ae&&R.path){Ae=Ce.lookup(R.path)}if(!Ae&&R.readable&&R.hasOwnProperty("httpVersion")){Ae=R.headers["content-type"]}if(!Ae&&(pe.filepath||pe.filename)){Ae=Ce.lookup(pe.filepath||pe.filename)}if(!Ae&&typeof R=="object"){Ae=FormData.DEFAULT_CONTENT_TYPE}return Ae};FormData.prototype._multiPartFooter=function(){return function(R){var pe=FormData.LINE_BREAK;var Ae=this._streams.length===0;if(Ae){pe+=this._lastBoundary()}R(pe)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(R){var pe;var Ae={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(pe in R){if(R.hasOwnProperty(pe)){Ae[pe.toLowerCase()]=R[pe]}}return Ae};FormData.prototype.setBoundary=function(R){this._boundary=R};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var R=new Buffer.alloc(0);var pe=this.getBoundary();for(var Ae=0,he=this._streams.length;Ae{R.exports=function(R,pe){Object.keys(pe).forEach((function(Ae){R[Ae]=R[Ae]||pe[Ae]}));return R}},31621:R=>{"use strict";R.exports=(R,pe=process.argv)=>{const Ae=R.startsWith("-")?"":R.length===1?"-":"--";const he=pe.indexOf(Ae+R);const ge=pe.indexOf("--");return he!==-1&&(ge===-1||he=0){Ae++}if(R.substr(0,2)==="::"){Ae--}if(R.substr(-2,2)==="::"){Ae--}if(Ae>pe){return null}me=pe-Ae;ye=":";while(me--){ye+="0:"}R=R.replace("::",ye);if(R[0]===":"){R=R.slice(1)}if(R[R.length-1]===":"){R=R.slice(0,-1)}pe=function(){const pe=R.split(":");const Ae=[];for(let R=0;R0){ye=Ae-he;if(ye<0){ye=0}if(R[ge]>>ye!==pe[ge]>>ye){return false}he-=Ae;ge+=1}return true}function parseIntAuto(R){if(ye.test(R)){return parseInt(R,16)}if(R[0]==="0"&&!isNaN(parseInt(R[1],10))){if(ge.test(R)){return parseInt(R,8)}throw new Error(`ipaddr: cannot parse ${R} as octal`)}return parseInt(R,10)}function padPart(R,pe){while(R.length=0;he-=1){ge=this.octets[he];if(ge in Ae){ye=Ae[ge];if(pe&&ye!==0){return null}if(ye!==8){pe=true}R+=ye}else{return null}}return 32-R};IPv4.prototype.range=function(){return Ee.subnetMatch(this,this.SpecialRanges)};IPv4.prototype.toByteArray=function(){return this.octets.slice(0)};IPv4.prototype.toIPv4MappedAddress=function(){return Ee.IPv6.parse(`::ffff:${this.toString()}`)};IPv4.prototype.toNormalizedString=function(){return this.toString()};IPv4.prototype.toString=function(){return this.octets.join(".")};return IPv4}();Ee.IPv4.broadcastAddressFromCIDR=function(R){try{const pe=this.parseCIDR(R);const Ae=pe[0].toByteArray();const he=this.subnetMaskFromPrefixLength(pe[1]).toByteArray();const ge=[];let ye=0;while(ye<4){ge.push(parseInt(Ae[ye],10)|parseInt(he[ye],10)^255);ye++}return new this(ge)}catch(R){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}};Ee.IPv4.isIPv4=function(R){return this.parser(R)!==null};Ee.IPv4.isValid=function(R){try{new this(this.parser(R));return true}catch(R){return false}};Ee.IPv4.isValidCIDR=function(R){try{this.parseCIDR(R);return true}catch(R){return false}};Ee.IPv4.isValidFourPartDecimal=function(R){if(Ee.IPv4.isValid(R)&&R.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/)){return true}else{return false}};Ee.IPv4.networkAddressFromCIDR=function(R){let pe,Ae,he,ge,ye;try{pe=this.parseCIDR(R);he=pe[0].toByteArray();ye=this.subnetMaskFromPrefixLength(pe[1]).toByteArray();ge=[];Ae=0;while(Ae<4){ge.push(parseInt(he[Ae],10)&parseInt(ye[Ae],10));Ae++}return new this(ge)}catch(R){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}};Ee.IPv4.parse=function(R){const pe=this.parser(R);if(pe===null){throw new Error("ipaddr: string is not formatted like an IPv4 Address")}return new this(pe)};Ee.IPv4.parseCIDR=function(R){let pe;if(pe=R.match(/^(.+)\/(\d+)$/)){const R=parseInt(pe[2]);if(R>=0&&R<=32){const Ae=[this.parse(pe[1]),R];Object.defineProperty(Ae,"toString",{value:function(){return this.join("/")}});return Ae}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")};Ee.IPv4.parser=function(R){let pe,Ae,ge;if(pe=R.match(he.fourOctet)){return function(){const R=pe.slice(1,6);const he=[];for(let pe=0;pe4294967295||ge<0){throw new Error("ipaddr: address outside defined range")}return function(){const R=[];let pe;for(pe=0;pe<=24;pe+=8){R.push(ge>>pe&255)}return R}().reverse()}else if(pe=R.match(he.twoOctet)){return function(){const R=pe.slice(1,4);const Ae=[];ge=parseIntAuto(R[1]);if(ge>16777215||ge<0){throw new Error("ipaddr: address outside defined range")}Ae.push(parseIntAuto(R[0]));Ae.push(ge>>16&255);Ae.push(ge>>8&255);Ae.push(ge&255);return Ae}()}else if(pe=R.match(he.threeOctet)){return function(){const R=pe.slice(1,5);const Ae=[];ge=parseIntAuto(R[2]);if(ge>65535||ge<0){throw new Error("ipaddr: address outside defined range")}Ae.push(parseIntAuto(R[0]));Ae.push(parseIntAuto(R[1]));Ae.push(ge>>8&255);Ae.push(ge&255);return Ae}()}else{return null}};Ee.IPv4.subnetMaskFromPrefixLength=function(R){R=parseInt(R);if(R<0||R>32){throw new Error("ipaddr: invalid IPv4 prefix length")}const pe=[0,0,0,0];let Ae=0;const he=Math.floor(R/8);while(Ae=0;ye-=1){he=this.parts[ye];if(he in Ae){ge=Ae[he];if(pe&&ge!==0){return null}if(ge!==16){pe=true}R+=ge}else{return null}}return 128-R};IPv6.prototype.range=function(){return Ee.subnetMatch(this,this.SpecialRanges)};IPv6.prototype.toByteArray=function(){let R;const pe=[];const Ae=this.parts;for(let he=0;he>8);pe.push(R&255)}return pe};IPv6.prototype.toFixedLengthString=function(){const R=function(){const R=[];for(let pe=0;pe>8,pe&255,Ae>>8,Ae&255])};IPv6.prototype.toNormalizedString=function(){const R=function(){const R=[];for(let pe=0;pehe){Ae=ge.index;he=ge[0].length}}if(he<0){return pe}return`${pe.substring(0,Ae)}::${pe.substring(Ae+he)}`};IPv6.prototype.toString=function(){return this.toRFC5952String()};return IPv6}();Ee.IPv6.broadcastAddressFromCIDR=function(R){try{const pe=this.parseCIDR(R);const Ae=pe[0].toByteArray();const he=this.subnetMaskFromPrefixLength(pe[1]).toByteArray();const ge=[];let ye=0;while(ye<16){ge.push(parseInt(Ae[ye],10)|parseInt(he[ye],10)^255);ye++}return new this(ge)}catch(R){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${R})`)}};Ee.IPv6.isIPv6=function(R){return this.parser(R)!==null};Ee.IPv6.isValid=function(R){if(typeof R==="string"&&R.indexOf(":")===-1){return false}try{const pe=this.parser(R);new this(pe.parts,pe.zoneId);return true}catch(R){return false}};Ee.IPv6.isValidCIDR=function(R){if(typeof R==="string"&&R.indexOf(":")===-1){return false}try{this.parseCIDR(R);return true}catch(R){return false}};Ee.IPv6.networkAddressFromCIDR=function(R){let pe,Ae,he,ge,ye;try{pe=this.parseCIDR(R);he=pe[0].toByteArray();ye=this.subnetMaskFromPrefixLength(pe[1]).toByteArray();ge=[];Ae=0;while(Ae<16){ge.push(parseInt(he[Ae],10)&parseInt(ye[Ae],10));Ae++}return new this(ge)}catch(R){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${R})`)}};Ee.IPv6.parse=function(R){const pe=this.parser(R);if(pe.parts===null){throw new Error("ipaddr: string is not formatted like an IPv6 Address")}return new this(pe.parts,pe.zoneId)};Ee.IPv6.parseCIDR=function(R){let pe,Ae,he;if(Ae=R.match(/^(.+)\/(\d+)$/)){pe=parseInt(Ae[2]);if(pe>=0&&pe<=128){he=[this.parse(Ae[1]),pe];Object.defineProperty(he,"toString",{value:function(){return this.join("/")}});return he}}throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")};Ee.IPv6.parser=function(R){let pe,Ae,he,ge,ye,me;if(he=R.match(be.deprecatedTransitional)){return this.parser(`::ffff:${he[1]}`)}if(be.native.test(R)){return expandIPv6(R,8)}if(he=R.match(be.transitional)){me=he[6]||"";pe=he[1];if(!he[1].endsWith("::")){pe=pe.slice(0,-1)}pe=expandIPv6(pe+me,6);if(pe.parts){ye=[parseInt(he[2]),parseInt(he[3]),parseInt(he[4]),parseInt(he[5])];for(Ae=0;Ae128){throw new Error("ipaddr: invalid IPv6 prefix length")}const pe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let Ae=0;const he=Math.floor(R/8);while(Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.cryptoRuntime=pe.base64url=pe.generateSecret=pe.generateKeyPair=pe.errors=pe.decodeJwt=pe.decodeProtectedHeader=pe.importJWK=pe.importX509=pe.importPKCS8=pe.importSPKI=pe.exportJWK=pe.exportSPKI=pe.exportPKCS8=pe.UnsecuredJWT=pe.experimental_jwksCache=pe.createRemoteJWKSet=pe.createLocalJWKSet=pe.EmbeddedJWK=pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=pe.EncryptJWT=pe.SignJWT=pe.GeneralSign=pe.FlattenedSign=pe.CompactSign=pe.FlattenedEncrypt=pe.CompactEncrypt=pe.jwtDecrypt=pe.jwtVerify=pe.generalVerify=pe.flattenedVerify=pe.compactVerify=pe.GeneralEncrypt=pe.generalDecrypt=pe.flattenedDecrypt=pe.compactDecrypt=void 0;var he=Ae(27651);Object.defineProperty(pe,"compactDecrypt",{enumerable:true,get:function(){return he.compactDecrypt}});var ge=Ae(7566);Object.defineProperty(pe,"flattenedDecrypt",{enumerable:true,get:function(){return ge.flattenedDecrypt}});var ye=Ae(85684);Object.defineProperty(pe,"generalDecrypt",{enumerable:true,get:function(){return ye.generalDecrypt}});var me=Ae(43992);Object.defineProperty(pe,"GeneralEncrypt",{enumerable:true,get:function(){return me.GeneralEncrypt}});var ve=Ae(15212);Object.defineProperty(pe,"compactVerify",{enumerable:true,get:function(){return ve.compactVerify}});var be=Ae(32095);Object.defineProperty(pe,"flattenedVerify",{enumerable:true,get:function(){return be.flattenedVerify}});var Ee=Ae(34975);Object.defineProperty(pe,"generalVerify",{enumerable:true,get:function(){return Ee.generalVerify}});var we=Ae(99887);Object.defineProperty(pe,"jwtVerify",{enumerable:true,get:function(){return we.jwtVerify}});var Ce=Ae(53378);Object.defineProperty(pe,"jwtDecrypt",{enumerable:true,get:function(){return Ce.jwtDecrypt}});var _e=Ae(86203);Object.defineProperty(pe,"CompactEncrypt",{enumerable:true,get:function(){return _e.CompactEncrypt}});var Ie=Ae(81555);Object.defineProperty(pe,"FlattenedEncrypt",{enumerable:true,get:function(){return Ie.FlattenedEncrypt}});var Se=Ae(48257);Object.defineProperty(pe,"CompactSign",{enumerable:true,get:function(){return Se.CompactSign}});var Be=Ae(84825);Object.defineProperty(pe,"FlattenedSign",{enumerable:true,get:function(){return Be.FlattenedSign}});var ke=Ae(64268);Object.defineProperty(pe,"GeneralSign",{enumerable:true,get:function(){return ke.GeneralSign}});var Oe=Ae(25356);Object.defineProperty(pe,"SignJWT",{enumerable:true,get:function(){return Oe.SignJWT}});var Re=Ae(10960);Object.defineProperty(pe,"EncryptJWT",{enumerable:true,get:function(){return Re.EncryptJWT}});var Qe=Ae(3494);Object.defineProperty(pe,"calculateJwkThumbprint",{enumerable:true,get:function(){return Qe.calculateJwkThumbprint}});Object.defineProperty(pe,"calculateJwkThumbprintUri",{enumerable:true,get:function(){return Qe.calculateJwkThumbprintUri}});var xe=Ae(1751);Object.defineProperty(pe,"EmbeddedJWK",{enumerable:true,get:function(){return xe.EmbeddedJWK}});var Pe=Ae(29970);Object.defineProperty(pe,"createLocalJWKSet",{enumerable:true,get:function(){return Pe.createLocalJWKSet}});var Te=Ae(79035);Object.defineProperty(pe,"createRemoteJWKSet",{enumerable:true,get:function(){return Te.createRemoteJWKSet}});Object.defineProperty(pe,"experimental_jwksCache",{enumerable:true,get:function(){return Te.experimental_jwksCache}});var De=Ae(88568);Object.defineProperty(pe,"UnsecuredJWT",{enumerable:true,get:function(){return De.UnsecuredJWT}});var Ne=Ae(70465);Object.defineProperty(pe,"exportPKCS8",{enumerable:true,get:function(){return Ne.exportPKCS8}});Object.defineProperty(pe,"exportSPKI",{enumerable:true,get:function(){return Ne.exportSPKI}});Object.defineProperty(pe,"exportJWK",{enumerable:true,get:function(){return Ne.exportJWK}});var Me=Ae(74230);Object.defineProperty(pe,"importSPKI",{enumerable:true,get:function(){return Me.importSPKI}});Object.defineProperty(pe,"importPKCS8",{enumerable:true,get:function(){return Me.importPKCS8}});Object.defineProperty(pe,"importX509",{enumerable:true,get:function(){return Me.importX509}});Object.defineProperty(pe,"importJWK",{enumerable:true,get:function(){return Me.importJWK}});var je=Ae(33991);Object.defineProperty(pe,"decodeProtectedHeader",{enumerable:true,get:function(){return je.decodeProtectedHeader}});var Fe=Ae(65611);Object.defineProperty(pe,"decodeJwt",{enumerable:true,get:function(){return Fe.decodeJwt}});pe.errors=Ae(94419);var Le=Ae(51036);Object.defineProperty(pe,"generateKeyPair",{enumerable:true,get:function(){return Le.generateKeyPair}});var Ue=Ae(76617);Object.defineProperty(pe,"generateSecret",{enumerable:true,get:function(){return Ue.generateSecret}});pe.base64url=Ae(63238);var He=Ae(31173);Object.defineProperty(pe,"cryptoRuntime",{enumerable:true,get:function(){return He.default}})},27651:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactDecrypt=void 0;const he=Ae(7566);const ge=Ae(94419);const ye=Ae(1691);async function compactDecrypt(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWEInvalid("Compact JWE must be a string or Uint8Array")}const{0:me,1:ve,2:be,3:Ee,4:we,length:Ce}=R.split(".");if(Ce!==5){throw new ge.JWEInvalid("Invalid Compact JWE")}const _e=await(0,he.flattenedDecrypt)({ciphertext:Ee,iv:be||undefined,protected:me,tag:we||undefined,encrypted_key:ve||undefined},pe,Ae);const Ie={plaintext:_e.plaintext,protectedHeader:_e.protectedHeader};if(typeof pe==="function"){return{...Ie,key:_e.key}}return Ie}pe.compactDecrypt=compactDecrypt},86203:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactEncrypt=void 0;const he=Ae(81555);class CompactEncrypt{_flattened;constructor(R){this._flattened=new he.FlattenedEncrypt(R)}setContentEncryptionKey(R){this._flattened.setContentEncryptionKey(R);return this}setInitializationVector(R){this._flattened.setInitializationVector(R);return this}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}setKeyManagementParameters(R){this._flattened.setKeyManagementParameters(R);return this}async encrypt(R,pe){const Ae=await this._flattened.encrypt(R,pe);return[Ae.protected,Ae.encrypted_key,Ae.iv,Ae.ciphertext,Ae.tag].join(".")}}pe.CompactEncrypt=CompactEncrypt},7566:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedDecrypt=void 0;const he=Ae(80518);const ge=Ae(66137);const ye=Ae(94419);const me=Ae(6063);const ve=Ae(39127);const be=Ae(26127);const Ee=Ae(1691);const we=Ae(43987);const Ce=Ae(50863);const _e=Ae(55148);async function flattenedDecrypt(R,pe,Ae){if(!(0,ve.default)(R)){throw new ye.JWEInvalid("Flattened JWE must be an object")}if(R.protected===undefined&&R.header===undefined&&R.unprotected===undefined){throw new ye.JWEInvalid("JOSE Header missing")}if(R.iv!==undefined&&typeof R.iv!=="string"){throw new ye.JWEInvalid("JWE Initialization Vector incorrect type")}if(typeof R.ciphertext!=="string"){throw new ye.JWEInvalid("JWE Ciphertext missing or incorrect type")}if(R.tag!==undefined&&typeof R.tag!=="string"){throw new ye.JWEInvalid("JWE Authentication Tag incorrect type")}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new ye.JWEInvalid("JWE Protected Header incorrect type")}if(R.encrypted_key!==undefined&&typeof R.encrypted_key!=="string"){throw new ye.JWEInvalid("JWE Encrypted Key incorrect type")}if(R.aad!==undefined&&typeof R.aad!=="string"){throw new ye.JWEInvalid("JWE AAD incorrect type")}if(R.header!==undefined&&!(0,ve.default)(R.header)){throw new ye.JWEInvalid("JWE Shared Unprotected Header incorrect type")}if(R.unprotected!==undefined&&!(0,ve.default)(R.unprotected)){throw new ye.JWEInvalid("JWE Per-Recipient Unprotected Header incorrect type")}let Ie;if(R.protected){try{const pe=(0,he.decode)(R.protected);Ie=JSON.parse(Ee.decoder.decode(pe))}catch{throw new ye.JWEInvalid("JWE Protected Header is invalid")}}if(!(0,me.default)(Ie,R.header,R.unprotected)){throw new ye.JWEInvalid("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint")}const Se={...Ie,...R.header,...R.unprotected};(0,Ce.default)(ye.JWEInvalid,new Map,Ae?.crit,Ie,Se);if(Se.zip!==undefined){throw new ye.JOSENotSupported('JWE "zip" (Compression Algorithm) Header Parameter is not supported.')}const{alg:Be,enc:ke}=Se;if(typeof Be!=="string"||!Be){throw new ye.JWEInvalid("missing JWE Algorithm (alg) in JWE Header")}if(typeof ke!=="string"||!ke){throw new ye.JWEInvalid("missing JWE Encryption Algorithm (enc) in JWE Header")}const Oe=Ae&&(0,_e.default)("keyManagementAlgorithms",Ae.keyManagementAlgorithms);const Re=Ae&&(0,_e.default)("contentEncryptionAlgorithms",Ae.contentEncryptionAlgorithms);if(Oe&&!Oe.has(Be)||!Oe&&Be.startsWith("PBES2")){throw new ye.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter value not allowed')}if(Re&&!Re.has(ke)){throw new ye.JOSEAlgNotAllowed('"enc" (Encryption Algorithm) Header Parameter value not allowed')}let Qe;if(R.encrypted_key!==undefined){try{Qe=(0,he.decode)(R.encrypted_key)}catch{throw new ye.JWEInvalid("Failed to base64url decode the encrypted_key")}}let xe=false;if(typeof pe==="function"){pe=await pe(Ie,R);xe=true}let Pe;try{Pe=await(0,be.default)(Be,pe,Qe,Se,Ae)}catch(R){if(R instanceof TypeError||R instanceof ye.JWEInvalid||R instanceof ye.JOSENotSupported){throw R}Pe=(0,we.default)(ke)}let Te;let De;if(R.iv!==undefined){try{Te=(0,he.decode)(R.iv)}catch{throw new ye.JWEInvalid("Failed to base64url decode the iv")}}if(R.tag!==undefined){try{De=(0,he.decode)(R.tag)}catch{throw new ye.JWEInvalid("Failed to base64url decode the tag")}}const Ne=Ee.encoder.encode(R.protected??"");let Me;if(R.aad!==undefined){Me=(0,Ee.concat)(Ne,Ee.encoder.encode("."),Ee.encoder.encode(R.aad))}else{Me=Ne}let je;try{je=(0,he.decode)(R.ciphertext)}catch{throw new ye.JWEInvalid("Failed to base64url decode the ciphertext")}const Fe=await(0,ge.default)(ke,Pe,je,Te,De,Me);const Le={plaintext:Fe};if(R.protected!==undefined){Le.protectedHeader=Ie}if(R.aad!==undefined){try{Le.additionalAuthenticatedData=(0,he.decode)(R.aad)}catch{throw new ye.JWEInvalid("Failed to base64url decode the aad")}}if(R.unprotected!==undefined){Le.sharedUnprotectedHeader=R.unprotected}if(R.header!==undefined){Le.unprotectedHeader=R.header}if(xe){return{...Le,key:pe}}return Le}pe.flattenedDecrypt=flattenedDecrypt},81555:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedEncrypt=pe.unprotected=void 0;const he=Ae(80518);const ge=Ae(76476);const ye=Ae(33286);const me=Ae(94419);const ve=Ae(6063);const be=Ae(1691);const Ee=Ae(50863);pe.unprotected=Symbol();class FlattenedEncrypt{_plaintext;_protectedHeader;_sharedUnprotectedHeader;_unprotectedHeader;_aad;_cek;_iv;_keyManagementParameters;constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("plaintext must be an instance of Uint8Array")}this._plaintext=R}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._sharedUnprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._sharedUnprotectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}async encrypt(R,Ae){if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader){throw new me.JWEInvalid("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()")}if(!(0,ve.default)(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader)){throw new me.JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint")}const we={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};(0,Ee.default)(me.JWEInvalid,new Map,Ae?.crit,this._protectedHeader,we);if(we.zip!==undefined){throw new me.JOSENotSupported('JWE "zip" (Compression Algorithm) Header Parameter is not supported.')}const{alg:Ce,enc:_e}=we;if(typeof Ce!=="string"||!Ce){throw new me.JWEInvalid('JWE "alg" (Algorithm) Header Parameter missing or invalid')}if(typeof _e!=="string"||!_e){throw new me.JWEInvalid('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid')}let Ie;if(this._cek&&(Ce==="dir"||Ce==="ECDH-ES")){throw new TypeError(`setContentEncryptionKey cannot be called with JWE "alg" (Algorithm) Header ${Ce}`)}let Se;{let he;({cek:Se,encryptedKey:Ie,parameters:he}=await(0,ye.default)(Ce,_e,R,this._cek,this._keyManagementParameters));if(he){if(Ae&&pe.unprotected in Ae){if(!this._unprotectedHeader){this.setUnprotectedHeader(he)}else{this._unprotectedHeader={...this._unprotectedHeader,...he}}}else if(!this._protectedHeader){this.setProtectedHeader(he)}else{this._protectedHeader={...this._protectedHeader,...he}}}}let Be;let ke;let Oe;if(this._protectedHeader){ke=be.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{ke=be.encoder.encode("")}if(this._aad){Oe=(0,he.encode)(this._aad);Be=(0,be.concat)(ke,be.encoder.encode("."),be.encoder.encode(Oe))}else{Be=ke}const{ciphertext:Re,tag:Qe,iv:xe}=await(0,ge.default)(_e,this._plaintext,Se,this._iv,Be);const Pe={ciphertext:(0,he.encode)(Re)};if(xe){Pe.iv=(0,he.encode)(xe)}if(Qe){Pe.tag=(0,he.encode)(Qe)}if(Ie){Pe.encrypted_key=(0,he.encode)(Ie)}if(Oe){Pe.aad=Oe}if(this._protectedHeader){Pe.protected=be.decoder.decode(ke)}if(this._sharedUnprotectedHeader){Pe.unprotected=this._sharedUnprotectedHeader}if(this._unprotectedHeader){Pe.header=this._unprotectedHeader}return Pe}}pe.FlattenedEncrypt=FlattenedEncrypt},85684:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalDecrypt=void 0;const he=Ae(7566);const ge=Ae(94419);const ye=Ae(39127);async function generalDecrypt(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWEInvalid("General JWE must be an object")}if(!Array.isArray(R.recipients)||!R.recipients.every(ye.default)){throw new ge.JWEInvalid("JWE Recipients missing or incorrect type")}if(!R.recipients.length){throw new ge.JWEInvalid("JWE Recipients has no members")}for(const ge of R.recipients){try{return await(0,he.flattenedDecrypt)({aad:R.aad,ciphertext:R.ciphertext,encrypted_key:ge.encrypted_key,header:ge.header,iv:R.iv,protected:R.protected,tag:R.tag,unprotected:R.unprotected},pe,Ae)}catch{}}throw new ge.JWEDecryptionFailed}pe.generalDecrypt=generalDecrypt},43992:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralEncrypt=void 0;const he=Ae(81555);const ge=Ae(94419);const ye=Ae(43987);const me=Ae(6063);const ve=Ae(33286);const be=Ae(80518);const Ee=Ae(50863);class IndividualRecipient{parent;unprotectedHeader;key;options;constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addRecipient(...R){return this.parent.addRecipient(...R)}encrypt(...R){return this.parent.encrypt(...R)}done(){return this.parent}}class GeneralEncrypt{_plaintext;_recipients=[];_protectedHeader;_unprotectedHeader;_aad;constructor(R){this._plaintext=R}addRecipient(R,pe){const Ae=new IndividualRecipient(this,R,{crit:pe?.crit});this._recipients.push(Ae);return Ae}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setSharedUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setSharedUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}setAdditionalAuthenticatedData(R){this._aad=R;return this}async encrypt(){if(!this._recipients.length){throw new ge.JWEInvalid("at least one recipient must be added")}if(this._recipients.length===1){const[R]=this._recipients;const pe=await new he.FlattenedEncrypt(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(R.unprotectedHeader).encrypt(R.key,{...R.options});const Ae={ciphertext:pe.ciphertext,iv:pe.iv,recipients:[{}],tag:pe.tag};if(pe.aad)Ae.aad=pe.aad;if(pe.protected)Ae.protected=pe.protected;if(pe.unprotected)Ae.unprotected=pe.unprotected;if(pe.encrypted_key)Ae.recipients[0].encrypted_key=pe.encrypted_key;if(pe.header)Ae.recipients[0].header=pe.header;return Ae}let R;for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EmbeddedJWK=void 0;const he=Ae(74230);const ge=Ae(39127);const ye=Ae(94419);async function EmbeddedJWK(R,pe){const Ae={...R,...pe?.header};if(!(0,ge.default)(Ae.jwk)){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a JSON object')}const me=await(0,he.importJWK)({...Ae.jwk,ext:true},Ae.alg);if(me instanceof Uint8Array||me.type!=="public"){throw new ye.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a public key')}return me}pe.EmbeddedJWK=EmbeddedJWK},3494:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.calculateJwkThumbprintUri=pe.calculateJwkThumbprint=void 0;const he=Ae(52355);const ge=Ae(80518);const ye=Ae(94419);const me=Ae(1691);const ve=Ae(39127);const check=(R,pe)=>{if(typeof R!=="string"||!R){throw new ye.JWKInvalid(`${pe} missing or invalid`)}};async function calculateJwkThumbprint(R,pe){if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe??="sha256";if(pe!=="sha256"&&pe!=="sha384"&&pe!=="sha512"){throw new TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"')}let Ae;switch(R.kty){case"EC":check(R.crv,'"crv" (Curve) Parameter');check(R.x,'"x" (X Coordinate) Parameter');check(R.y,'"y" (Y Coordinate) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x,y:R.y};break;case"OKP":check(R.crv,'"crv" (Subtype of Key Pair) Parameter');check(R.x,'"x" (Public Key) Parameter');Ae={crv:R.crv,kty:R.kty,x:R.x};break;case"RSA":check(R.e,'"e" (Exponent) Parameter');check(R.n,'"n" (Modulus) Parameter');Ae={e:R.e,kty:R.kty,n:R.n};break;case"oct":check(R.k,'"k" (Key Value) Parameter');Ae={k:R.k,kty:R.kty};break;default:throw new ye.JOSENotSupported('"kty" (Key Type) Parameter missing or unsupported')}const be=me.encoder.encode(JSON.stringify(Ae));return(0,ge.encode)(await(0,he.default)(pe,be))}pe.calculateJwkThumbprint=calculateJwkThumbprint;async function calculateJwkThumbprintUri(R,pe){pe??="sha256";const Ae=await calculateJwkThumbprint(R,pe);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${pe.slice(-3)}:${Ae}`}pe.calculateJwkThumbprintUri=calculateJwkThumbprintUri},29970:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createLocalJWKSet=pe.LocalJWKSet=void 0;const he=Ae(74230);const ge=Ae(94419);const ye=Ae(39127);function getKtyFromAlg(R){switch(typeof R==="string"&&R.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new ge.JOSENotSupported('Unsupported "alg" value for a JSON Web Key Set')}}function isJWKSLike(R){return R&&typeof R==="object"&&Array.isArray(R.keys)&&R.keys.every(isJWKLike)}function isJWKLike(R){return(0,ye.default)(R)}function clone(R){if(typeof structuredClone==="function"){return structuredClone(R)}return JSON.parse(JSON.stringify(R))}class LocalJWKSet{_jwks;_cached=new WeakMap;constructor(R){if(!isJWKSLike(R)){throw new ge.JWKSInvalid("JSON Web Key Set malformed")}this._jwks=clone(R)}async getKey(R,pe){const{alg:Ae,kid:he}={...R,...pe?.header};const ye=getKtyFromAlg(Ae);const me=this._jwks.keys.filter((R=>{let pe=ye===R.kty;if(pe&&typeof he==="string"){pe=he===R.kid}if(pe&&typeof R.alg==="string"){pe=Ae===R.alg}if(pe&&typeof R.use==="string"){pe=R.use==="sig"}if(pe&&Array.isArray(R.key_ops)){pe=R.key_ops.includes("verify")}if(pe&&Ae==="EdDSA"){pe=R.crv==="Ed25519"||R.crv==="Ed448"}if(pe){switch(Ae){case"ES256":pe=R.crv==="P-256";break;case"ES256K":pe=R.crv==="secp256k1";break;case"ES384":pe=R.crv==="P-384";break;case"ES512":pe=R.crv==="P-521";break}}return pe}));const{0:ve,length:be}=me;if(be===0){throw new ge.JWKSNoMatchingKey}if(be!==1){const R=new ge.JWKSMultipleMatchingKeys;const{_cached:pe}=this;R[Symbol.asyncIterator]=async function*(){for(const R of me){try{yield await importWithAlgCache(pe,R,Ae)}catch{}}};throw R}return importWithAlgCache(this._cached,ve,Ae)}}pe.LocalJWKSet=LocalJWKSet;async function importWithAlgCache(R,pe,Ae){const ye=R.get(pe)||R.set(pe,{}).get(pe);if(ye[Ae]===undefined){const R=await(0,he.importJWK)({...pe,ext:true},Ae);if(R instanceof Uint8Array||R.type!=="public"){throw new ge.JWKSInvalid("JSON Web Key Set members must be public keys")}ye[Ae]=R}return ye[Ae]}function createLocalJWKSet(R){const pe=new LocalJWKSet(R);const localJWKSet=async(R,Ae)=>pe.getKey(R,Ae);Object.defineProperties(localJWKSet,{jwks:{value:()=>clone(pe._jwks),enumerable:true,configurable:false,writable:false}});return localJWKSet}pe.createLocalJWKSet=createLocalJWKSet},79035:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createRemoteJWKSet=pe.experimental_jwksCache=void 0;const he=Ae(43650);const ge=Ae(94419);const ye=Ae(29970);const me=Ae(39127);function isCloudflareWorkers(){return typeof WebSocketPair!=="undefined"||typeof navigator!=="undefined"&&navigator.userAgent==="Cloudflare-Workers"||typeof EdgeRuntime!=="undefined"&&EdgeRuntime==="vercel"}let ve;if(typeof navigator==="undefined"||!navigator.userAgent?.startsWith?.("Mozilla/5.0 ")){const R="jose";const pe="v5.6.3";ve=`${R}/${pe}`}pe.experimental_jwksCache=Symbol();function isFreshJwksCache(R,pe){if(typeof R!=="object"||R===null){return false}if(!("uat"in R)||typeof R.uat!=="number"||Date.now()-R.uat>=pe){return false}if(!("jwks"in R)||!(0,me.default)(R.jwks)||!Array.isArray(R.jwks.keys)||!Array.prototype.every.call(R.jwks.keys,me.default)){return false}return true}class RemoteJWKSet{_url;_timeoutDuration;_cooldownDuration;_cacheMaxAge;_jwksTimestamp;_pendingFetch;_options;_local;_cache;constructor(R,Ae){if(!(R instanceof URL)){throw new TypeError("url must be an instance of URL")}this._url=new URL(R.href);this._options={agent:Ae?.agent,headers:Ae?.headers};this._timeoutDuration=typeof Ae?.timeoutDuration==="number"?Ae?.timeoutDuration:5e3;this._cooldownDuration=typeof Ae?.cooldownDuration==="number"?Ae?.cooldownDuration:3e4;this._cacheMaxAge=typeof Ae?.cacheMaxAge==="number"?Ae?.cacheMaxAge:6e5;if(Ae?.[pe.experimental_jwksCache]!==undefined){this._cache=Ae?.[pe.experimental_jwksCache];if(isFreshJwksCache(Ae?.[pe.experimental_jwksCache],this._cacheMaxAge)){this._jwksTimestamp=this._cache.uat;this._local=(0,ye.createLocalJWKSet)(this._cache.jwks)}}}coolingDown(){return typeof this._jwksTimestamp==="number"?Date.now(){this._local=(0,ye.createLocalJWKSet)(R);if(this._cache){this._cache.uat=Date.now();this._cache.jwks=R}this._jwksTimestamp=Date.now();this._pendingFetch=undefined})).catch((R=>{this._pendingFetch=undefined;throw R}));await this._pendingFetch}}function createRemoteJWKSet(R,pe){const Ae=new RemoteJWKSet(R,pe);const remoteJWKSet=async(R,pe)=>Ae.getKey(R,pe);Object.defineProperties(remoteJWKSet,{coolingDown:{get:()=>Ae.coolingDown(),enumerable:true,configurable:false},fresh:{get:()=>Ae.fresh(),enumerable:true,configurable:false},reload:{value:()=>Ae.reload(),enumerable:true,configurable:false,writable:false},reloading:{get:()=>!!Ae._pendingFetch,enumerable:true,configurable:false},jwks:{value:()=>Ae._local?.jwks(),enumerable:true,configurable:false,writable:false}});return remoteJWKSet}pe.createRemoteJWKSet=createRemoteJWKSet},48257:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.CompactSign=void 0;const he=Ae(84825);class CompactSign{_flattened;constructor(R){this._flattened=new he.FlattenedSign(R)}setProtectedHeader(R){this._flattened.setProtectedHeader(R);return this}async sign(R,pe){const Ae=await this._flattened.sign(R,pe);if(Ae.payload===undefined){throw new TypeError("use the flattened module for creating JWS with b64: false")}return`${Ae.protected}.${Ae.payload}.${Ae.signature}`}}pe.CompactSign=CompactSign},15212:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.compactVerify=void 0;const he=Ae(32095);const ge=Ae(94419);const ye=Ae(1691);async function compactVerify(R,pe,Ae){if(R instanceof Uint8Array){R=ye.decoder.decode(R)}if(typeof R!=="string"){throw new ge.JWSInvalid("Compact JWS must be a string or Uint8Array")}const{0:me,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3){throw new ge.JWSInvalid("Invalid Compact JWS")}const we=await(0,he.flattenedVerify)({payload:ve,protected:me,signature:be},pe,Ae);const Ce={payload:we.payload,protectedHeader:we.protectedHeader};if(typeof pe==="function"){return{...Ce,key:we.key}}return Ce}pe.compactVerify=compactVerify},84825:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FlattenedSign=void 0;const he=Ae(80518);const ge=Ae(69935);const ye=Ae(6063);const me=Ae(94419);const ve=Ae(1691);const be=Ae(56241);const Ee=Ae(50863);class FlattenedSign{_payload;_protectedHeader;_unprotectedHeader;constructor(R){if(!(R instanceof Uint8Array)){throw new TypeError("payload must be an instance of Uint8Array")}this._payload=R}setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setUnprotectedHeader(R){if(this._unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this._unprotectedHeader=R;return this}async sign(R,pe){if(!this._protectedHeader&&!this._unprotectedHeader){throw new me.JWSInvalid("either setProtectedHeader or setUnprotectedHeader must be called before #sign()")}if(!(0,ye.default)(this._protectedHeader,this._unprotectedHeader)){throw new me.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Ae={...this._protectedHeader,...this._unprotectedHeader};const we=(0,Ee.default)(me.JWSInvalid,new Map([["b64",true]]),pe?.crit,this._protectedHeader,Ae);let Ce=true;if(we.has("b64")){Ce=this._protectedHeader.b64;if(typeof Ce!=="boolean"){throw new me.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:_e}=Ae;if(typeof _e!=="string"||!_e){throw new me.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}(0,be.default)(_e,R,"sign");let Ie=this._payload;if(Ce){Ie=ve.encoder.encode((0,he.encode)(Ie))}let Se;if(this._protectedHeader){Se=ve.encoder.encode((0,he.encode)(JSON.stringify(this._protectedHeader)))}else{Se=ve.encoder.encode("")}const Be=(0,ve.concat)(Se,ve.encoder.encode("."),Ie);const ke=await(0,ge.default)(_e,R,Be);const Oe={signature:(0,he.encode)(ke),payload:""};if(Ce){Oe.payload=ve.decoder.decode(Ie)}if(this._unprotectedHeader){Oe.header=this._unprotectedHeader}if(this._protectedHeader){Oe.protected=ve.decoder.decode(Se)}return Oe}}pe.FlattenedSign=FlattenedSign},32095:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flattenedVerify=void 0;const he=Ae(80518);const ge=Ae(3569);const ye=Ae(94419);const me=Ae(1691);const ve=Ae(6063);const be=Ae(39127);const Ee=Ae(56241);const we=Ae(50863);const Ce=Ae(55148);async function flattenedVerify(R,pe,Ae){if(!(0,be.default)(R)){throw new ye.JWSInvalid("Flattened JWS must be an object")}if(R.protected===undefined&&R.header===undefined){throw new ye.JWSInvalid('Flattened JWS must have either of the "protected" or "header" members')}if(R.protected!==undefined&&typeof R.protected!=="string"){throw new ye.JWSInvalid("JWS Protected Header incorrect type")}if(R.payload===undefined){throw new ye.JWSInvalid("JWS Payload missing")}if(typeof R.signature!=="string"){throw new ye.JWSInvalid("JWS Signature missing or incorrect type")}if(R.header!==undefined&&!(0,be.default)(R.header)){throw new ye.JWSInvalid("JWS Unprotected Header incorrect type")}let _e={};if(R.protected){try{const pe=(0,he.decode)(R.protected);_e=JSON.parse(me.decoder.decode(pe))}catch{throw new ye.JWSInvalid("JWS Protected Header is invalid")}}if(!(0,ve.default)(_e,R.header)){throw new ye.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const Ie={..._e,...R.header};const Se=(0,we.default)(ye.JWSInvalid,new Map([["b64",true]]),Ae?.crit,_e,Ie);let Be=true;if(Se.has("b64")){Be=_e.b64;if(typeof Be!=="boolean"){throw new ye.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:ke}=Ie;if(typeof ke!=="string"||!ke){throw new ye.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}const Oe=Ae&&(0,Ce.default)("algorithms",Ae.algorithms);if(Oe&&!Oe.has(ke)){throw new ye.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter value not allowed')}if(Be){if(typeof R.payload!=="string"){throw new ye.JWSInvalid("JWS Payload must be a string")}}else if(typeof R.payload!=="string"&&!(R.payload instanceof Uint8Array)){throw new ye.JWSInvalid("JWS Payload must be a string or an Uint8Array instance")}let Re=false;if(typeof pe==="function"){pe=await pe(_e,R);Re=true}(0,Ee.default)(ke,pe,"verify");const Qe=(0,me.concat)(me.encoder.encode(R.protected??""),me.encoder.encode("."),typeof R.payload==="string"?me.encoder.encode(R.payload):R.payload);let xe;try{xe=(0,he.decode)(R.signature)}catch{throw new ye.JWSInvalid("Failed to base64url decode the signature")}const Pe=await(0,ge.default)(ke,pe,xe,Qe);if(!Pe){throw new ye.JWSSignatureVerificationFailed}let Te;if(Be){try{Te=(0,he.decode)(R.payload)}catch{throw new ye.JWSInvalid("Failed to base64url decode the payload")}}else if(typeof R.payload==="string"){Te=me.encoder.encode(R.payload)}else{Te=R.payload}const De={payload:Te};if(R.protected!==undefined){De.protectedHeader=_e}if(R.header!==undefined){De.unprotectedHeader=R.header}if(Re){return{...De,key:pe}}return De}pe.flattenedVerify=flattenedVerify},64268:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.GeneralSign=void 0;const he=Ae(84825);const ge=Ae(94419);class IndividualSignature{parent;protectedHeader;unprotectedHeader;options;key;constructor(R,pe,Ae){this.parent=R;this.key=pe;this.options=Ae}setProtectedHeader(R){if(this.protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this.protectedHeader=R;return this}setUnprotectedHeader(R){if(this.unprotectedHeader){throw new TypeError("setUnprotectedHeader can only be called once")}this.unprotectedHeader=R;return this}addSignature(...R){return this.parent.addSignature(...R)}sign(...R){return this.parent.sign(...R)}done(){return this.parent}}class GeneralSign{_payload;_signatures=[];constructor(R){this._payload=R}addSignature(R,pe){const Ae=new IndividualSignature(this,R,pe);this._signatures.push(Ae);return Ae}async sign(){if(!this._signatures.length){throw new ge.JWSInvalid("at least one signature must be added")}const R={signatures:[],payload:""};for(let pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generalVerify=void 0;const he=Ae(32095);const ge=Ae(94419);const ye=Ae(39127);async function generalVerify(R,pe,Ae){if(!(0,ye.default)(R)){throw new ge.JWSInvalid("General JWS must be an object")}if(!Array.isArray(R.signatures)||!R.signatures.every(ye.default)){throw new ge.JWSInvalid("JWS Signatures missing or incorrect type")}for(const ge of R.signatures){try{return await(0,he.flattenedVerify)({header:ge.header,payload:R.payload,protected:ge.protected,signature:ge.signature},pe,Ae)}catch{}}throw new ge.JWSSignatureVerificationFailed}pe.generalVerify=generalVerify},53378:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtDecrypt=void 0;const he=Ae(27651);const ge=Ae(7274);const ye=Ae(94419);async function jwtDecrypt(R,pe,Ae){const me=await(0,he.compactDecrypt)(R,pe,Ae);const ve=(0,ge.default)(me.protectedHeader,me.plaintext,Ae);const{protectedHeader:be}=me;if(be.iss!==undefined&&be.iss!==ve.iss){throw new ye.JWTClaimValidationFailed('replicated "iss" claim header parameter mismatch',ve,"iss","mismatch")}if(be.sub!==undefined&&be.sub!==ve.sub){throw new ye.JWTClaimValidationFailed('replicated "sub" claim header parameter mismatch',ve,"sub","mismatch")}if(be.aud!==undefined&&JSON.stringify(be.aud)!==JSON.stringify(ve.aud)){throw new ye.JWTClaimValidationFailed('replicated "aud" claim header parameter mismatch',ve,"aud","mismatch")}const Ee={payload:ve,protectedHeader:be};if(typeof pe==="function"){return{...Ee,key:me.key}}return Ee}pe.jwtDecrypt=jwtDecrypt},10960:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EncryptJWT=void 0;const he=Ae(86203);const ge=Ae(1691);const ye=Ae(21908);class EncryptJWT extends ye.ProduceJWT{_cek;_iv;_keyManagementParameters;_protectedHeader;_replicateIssuerAsHeader;_replicateSubjectAsHeader;_replicateAudienceAsHeader;setProtectedHeader(R){if(this._protectedHeader){throw new TypeError("setProtectedHeader can only be called once")}this._protectedHeader=R;return this}setKeyManagementParameters(R){if(this._keyManagementParameters){throw new TypeError("setKeyManagementParameters can only be called once")}this._keyManagementParameters=R;return this}setContentEncryptionKey(R){if(this._cek){throw new TypeError("setContentEncryptionKey can only be called once")}this._cek=R;return this}setInitializationVector(R){if(this._iv){throw new TypeError("setInitializationVector can only be called once")}this._iv=R;return this}replicateIssuerAsHeader(){this._replicateIssuerAsHeader=true;return this}replicateSubjectAsHeader(){this._replicateSubjectAsHeader=true;return this}replicateAudienceAsHeader(){this._replicateAudienceAsHeader=true;return this}async encrypt(R,pe){const Ae=new he.CompactEncrypt(ge.encoder.encode(JSON.stringify(this._payload)));if(this._replicateIssuerAsHeader){this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}}if(this._replicateSubjectAsHeader){this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}}if(this._replicateAudienceAsHeader){this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}}Ae.setProtectedHeader(this._protectedHeader);if(this._iv){Ae.setInitializationVector(this._iv)}if(this._cek){Ae.setContentEncryptionKey(this._cek)}if(this._keyManagementParameters){Ae.setKeyManagementParameters(this._keyManagementParameters)}return Ae.encrypt(R,pe)}}pe.EncryptJWT=EncryptJWT},21908:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ProduceJWT=void 0;const he=Ae(74476);const ge=Ae(39127);const ye=Ae(37810);function validateInput(R,pe){if(!Number.isFinite(pe)){throw new TypeError(`Invalid ${R} input`)}return pe}class ProduceJWT{_payload;constructor(R={}){if(!(0,ge.default)(R)){throw new TypeError("JWT Claims Set MUST be an object")}this._payload=R}setIssuer(R){this._payload={...this._payload,iss:R};return this}setSubject(R){this._payload={...this._payload,sub:R};return this}setAudience(R){this._payload={...this._payload,aud:R};return this}setJti(R){this._payload={...this._payload,jti:R};return this}setNotBefore(R){if(typeof R==="number"){this._payload={...this._payload,nbf:validateInput("setNotBefore",R)}}else if(R instanceof Date){this._payload={...this._payload,nbf:validateInput("setNotBefore",(0,he.default)(R))}}else{this._payload={...this._payload,nbf:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setExpirationTime(R){if(typeof R==="number"){this._payload={...this._payload,exp:validateInput("setExpirationTime",R)}}else if(R instanceof Date){this._payload={...this._payload,exp:validateInput("setExpirationTime",(0,he.default)(R))}}else{this._payload={...this._payload,exp:(0,he.default)(new Date)+(0,ye.default)(R)}}return this}setIssuedAt(R){if(typeof R==="undefined"){this._payload={...this._payload,iat:(0,he.default)(new Date)}}else if(R instanceof Date){this._payload={...this._payload,iat:validateInput("setIssuedAt",(0,he.default)(R))}}else if(typeof R==="string"){this._payload={...this._payload,iat:validateInput("setIssuedAt",(0,he.default)(new Date)+(0,ye.default)(R))}}else{this._payload={...this._payload,iat:validateInput("setIssuedAt",R)}}return this}}pe.ProduceJWT=ProduceJWT},25356:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SignJWT=void 0;const he=Ae(48257);const ge=Ae(94419);const ye=Ae(1691);const me=Ae(21908);class SignJWT extends me.ProduceJWT{_protectedHeader;setProtectedHeader(R){this._protectedHeader=R;return this}async sign(R,pe){const Ae=new he.CompactSign(ye.encoder.encode(JSON.stringify(this._payload)));Ae.setProtectedHeader(this._protectedHeader);if(Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&this._protectedHeader.b64===false){throw new ge.JWTInvalid("JWTs MUST NOT use unencoded payload")}return Ae.sign(R,pe)}}pe.SignJWT=SignJWT},88568:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.UnsecuredJWT=void 0;const he=Ae(80518);const ge=Ae(1691);const ye=Ae(94419);const me=Ae(7274);const ve=Ae(21908);class UnsecuredJWT extends ve.ProduceJWT{encode(){const R=he.encode(JSON.stringify({alg:"none"}));const pe=he.encode(JSON.stringify(this._payload));return`${R}.${pe}.`}static decode(R,pe){if(typeof R!=="string"){throw new ye.JWTInvalid("Unsecured JWT must be a string")}const{0:Ae,1:ve,2:be,length:Ee}=R.split(".");if(Ee!==3||be!==""){throw new ye.JWTInvalid("Invalid Unsecured JWT")}let we;try{we=JSON.parse(ge.decoder.decode(he.decode(Ae)));if(we.alg!=="none")throw new Error}catch{throw new ye.JWTInvalid("Invalid Unsecured JWT")}const Ce=(0,me.default)(we,he.decode(ve),pe);return{payload:Ce,header:we}}}pe.UnsecuredJWT=UnsecuredJWT},99887:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.jwtVerify=void 0;const he=Ae(15212);const ge=Ae(7274);const ye=Ae(94419);async function jwtVerify(R,pe,Ae){const me=await(0,he.compactVerify)(R,pe,Ae);if(me.protectedHeader.crit?.includes("b64")&&me.protectedHeader.b64===false){throw new ye.JWTInvalid("JWTs MUST NOT use unencoded payload")}const ve=(0,ge.default)(me.protectedHeader,me.payload,Ae);const be={payload:ve,protectedHeader:me.protectedHeader};if(typeof pe==="function"){return{...be,key:me.key}}return be}pe.jwtVerify=jwtVerify},70465:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exportJWK=pe.exportPKCS8=pe.exportSPKI=void 0;const he=Ae(70858);const ge=Ae(70858);const ye=Ae(40997);async function exportSPKI(R){return(0,he.toSPKI)(R)}pe.exportSPKI=exportSPKI;async function exportPKCS8(R){return(0,ge.toPKCS8)(R)}pe.exportPKCS8=exportPKCS8;async function exportJWK(R){return(0,ye.default)(R)}pe.exportJWK=exportJWK},51036:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=void 0;const he=Ae(29378);async function generateKeyPair(R,pe){return(0,he.generateKeyPair)(R,pe)}pe.generateKeyPair=generateKeyPair},76617:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateSecret=void 0;const he=Ae(29378);async function generateSecret(R,pe){return(0,he.generateSecret)(R,pe)}pe.generateSecret=generateSecret},74230:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.importJWK=pe.importPKCS8=pe.importX509=pe.importSPKI=void 0;const he=Ae(80518);const ge=Ae(70858);const ye=Ae(42659);const me=Ae(94419);const ve=Ae(39127);async function importSPKI(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PUBLIC KEY-----")!==0){throw new TypeError('"spki" must be SPKI formatted string')}return(0,ge.fromSPKI)(R,pe,Ae)}pe.importSPKI=importSPKI;async function importX509(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN CERTIFICATE-----")!==0){throw new TypeError('"x509" must be X.509 formatted string')}return(0,ge.fromX509)(R,pe,Ae)}pe.importX509=importX509;async function importPKCS8(R,pe,Ae){if(typeof R!=="string"||R.indexOf("-----BEGIN PRIVATE KEY-----")!==0){throw new TypeError('"pkcs8" must be PKCS#8 formatted string')}return(0,ge.fromPKCS8)(R,pe,Ae)}pe.importPKCS8=importPKCS8;async function importJWK(R,pe){if(!(0,ve.default)(R)){throw new TypeError("JWK must be an object")}pe||=R.alg;switch(R.kty){case"oct":if(typeof R.k!=="string"||!R.k){throw new TypeError('missing "k" (Key Value) Parameter value')}return(0,he.decode)(R.k);case"RSA":if(R.oth!==undefined){throw new me.JOSENotSupported('RSA JWK "oth" (Other Primes Info) Parameter value is not supported')}case"EC":case"OKP":return(0,ye.default)({...R,alg:pe});default:throw new me.JOSENotSupported('Unsupported "kty" (Key Type) Parameter value')}}pe.importJWK=importJWK},10233:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(76476);const ge=Ae(66137);const ye=Ae(80518);async function wrap(R,pe,Ae,ge){const me=R.slice(0,7);const ve=await(0,he.default)(me,Ae,pe,ge,new Uint8Array(0));return{encryptedKey:ve.ciphertext,iv:(0,ye.encode)(ve.iv),tag:(0,ye.encode)(ve.tag)}}pe.wrap=wrap;async function unwrap(R,pe,Ae,he,ye){const me=R.slice(0,7);return(0,ge.default)(me,pe,Ae,he,ye,new Uint8Array(0))}pe.unwrap=unwrap},1691:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatKdf=pe.lengthAndInput=pe.uint32be=pe.uint64be=pe.p2s=pe.concat=pe.decoder=pe.encoder=void 0;const he=Ae(52355);pe.encoder=new TextEncoder;pe.decoder=new TextDecoder;const ge=2**32;function concat(...R){const pe=R.reduce(((R,{length:pe})=>R+pe),0);const Ae=new Uint8Array(pe);let he=0;for(const pe of R){Ae.set(pe,he);he+=pe.length}return Ae}pe.concat=concat;function p2s(R,Ae){return concat(pe.encoder.encode(R),new Uint8Array([0]),Ae)}pe.p2s=p2s;function writeUInt32BE(R,pe,Ae){if(pe<0||pe>=ge){throw new RangeError(`value must be >= 0 and <= ${ge-1}. Received ${pe}`)}R.set([pe>>>24,pe>>>16,pe>>>8,pe&255],Ae)}function uint64be(R){const pe=Math.floor(R/ge);const Ae=R%ge;const he=new Uint8Array(8);writeUInt32BE(he,pe,0);writeUInt32BE(he,Ae,4);return he}pe.uint64be=uint64be;function uint32be(R){const pe=new Uint8Array(4);writeUInt32BE(pe,R);return pe}pe.uint32be=uint32be;function lengthAndInput(R){return concat(uint32be(R.length),R)}pe.lengthAndInput=lengthAndInput;async function concatKdf(R,pe,Ae){const ge=Math.ceil((pe>>3)/32);const ye=new Uint8Array(ge*32);for(let pe=0;pe>3)}pe.concatKdf=concatKdf},43987:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(94419);const ge=Ae(75770);function bitLength(R){switch(R){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},41120:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);const ge=Ae(84630);const checkIvLength=(R,pe)=>{if(pe.length<<3!==(0,ge.bitLength)(R)){throw new he.JWEInvalid("Invalid Initialization Vector length")}};pe["default"]=checkIvLength},56241:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(1146);const ge=Ae(17947);const tag=R=>R?.[Symbol.toStringTag];const symmetricTypeCheck=(R,pe)=>{if(pe instanceof Uint8Array)return;if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types,"Uint8Array"))}if(pe.type!=="secret"){throw new TypeError(`${tag(pe)} instances for symmetric algorithms must be of type "secret"`)}};const asymmetricTypeCheck=(R,pe,Ae)=>{if(!(0,ge.default)(pe)){throw new TypeError((0,he.withAlg)(R,pe,...ge.types))}if(pe.type==="secret"){throw new TypeError(`${tag(pe)} instances for asymmetric algorithms must not be of type "secret"`)}if(Ae==="sign"&&pe.type==="public"){throw new TypeError(`${tag(pe)} instances for asymmetric algorithm signing must be of type "private"`)}if(Ae==="decrypt"&&pe.type==="public"){throw new TypeError(`${tag(pe)} instances for asymmetric algorithm decryption must be of type "private"`)}if(pe.algorithm&&Ae==="verify"&&pe.type==="private"){throw new TypeError(`${tag(pe)} instances for asymmetric algorithm verifying must be of type "public"`)}if(pe.algorithm&&Ae==="encrypt"&&pe.type==="private"){throw new TypeError(`${tag(pe)} instances for asymmetric algorithm encryption must be of type "public"`)}};const checkKeyType=(R,pe,Ae)=>{const he=R.startsWith("HS")||R==="dir"||R.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(R);if(he){symmetricTypeCheck(R,pe)}else{asymmetricTypeCheck(R,pe,Ae)}};pe["default"]=checkKeyType},83499:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);function checkP2s(R){if(!(R instanceof Uint8Array)||R.length<8){throw new he.JWEInvalid("PBES2 Salt Input must be 8 or more octets")}}pe["default"]=checkP2s},73386:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.checkEncCryptoKey=pe.checkSigCryptoKey=void 0;function unusable(R,pe="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${pe} must be ${R}`)}function isAlgorithm(R,pe){return R.name===pe}function getHashLength(R){return parseInt(R.name.slice(4),10)}function getNamedCurve(R){switch(R){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function checkUsage(R,pe){if(pe.length&&!pe.some((pe=>R.usages.includes(pe)))){let R="CryptoKey does not support this operation, its usages must include ";if(pe.length>2){const Ae=pe.pop();R+=`one of ${pe.join(", ")}, or ${Ae}.`}else if(pe.length===2){R+=`one of ${pe[0]} or ${pe[1]}.`}else{R+=`${pe[0]}.`}throw new TypeError(R)}}function checkSigCryptoKey(R,pe,...Ae){switch(pe){case"HS256":case"HS384":case"HS512":{if(!isAlgorithm(R.algorithm,"HMAC"))throw unusable("HMAC");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!isAlgorithm(R.algorithm,"RSASSA-PKCS1-v1_5"))throw unusable("RSASSA-PKCS1-v1_5");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!isAlgorithm(R.algorithm,"RSA-PSS"))throw unusable("RSA-PSS");const Ae=parseInt(pe.slice(2),10);const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}case"EdDSA":{if(R.algorithm.name!=="Ed25519"&&R.algorithm.name!=="Ed448"){throw unusable("Ed25519 or Ed448")}break}case"ES256":case"ES384":case"ES512":{if(!isAlgorithm(R.algorithm,"ECDSA"))throw unusable("ECDSA");const Ae=getNamedCurve(pe);const he=R.algorithm.namedCurve;if(he!==Ae)throw unusable(Ae,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkSigCryptoKey=checkSigCryptoKey;function checkEncCryptoKey(R,pe,...Ae){switch(pe){case"A128GCM":case"A192GCM":case"A256GCM":{if(!isAlgorithm(R.algorithm,"AES-GCM"))throw unusable("AES-GCM");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!isAlgorithm(R.algorithm,"AES-KW"))throw unusable("AES-KW");const Ae=parseInt(pe.slice(1,4),10);const he=R.algorithm.length;if(he!==Ae)throw unusable(Ae,"algorithm.length");break}case"ECDH":{switch(R.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw unusable("ECDH, X25519, or X448")}break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!isAlgorithm(R.algorithm,"PBKDF2"))throw unusable("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!isAlgorithm(R.algorithm,"RSA-OAEP"))throw unusable("RSA-OAEP");const Ae=parseInt(pe.slice(9),10)||1;const he=getHashLength(R.algorithm.hash);if(he!==Ae)throw unusable(`SHA-${Ae}`,"algorithm.hash");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(R,Ae)}pe.checkEncCryptoKey=checkEncCryptoKey},26127:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(56083);const ge=Ae(33706);const ye=Ae(66898);const me=Ae(89526);const ve=Ae(80518);const be=Ae(33367);const Ee=Ae(94419);const we=Ae(43987);const Ce=Ae(74230);const _e=Ae(56241);const Ie=Ae(39127);const Se=Ae(10233);async function decryptKeyManagement(R,pe,Ae,Be,ke){(0,_e.default)(R,pe,"decrypt");pe=await(be.default.normalizePrivateKey?.(pe,R))||pe;switch(R){case"dir":{if(Ae!==undefined)throw new Ee.JWEInvalid("Encountered unexpected JWE Encrypted Key");return pe}case"ECDH-ES":if(Ae!==undefined)throw new Ee.JWEInvalid("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!(0,Ie.default)(Be.epk))throw new Ee.JWEInvalid(`JOSE Header "epk" (Ephemeral Public Key) missing or invalid`);if(!ge.ecdhAllowed(pe))throw new Ee.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime");const ye=await(0,Ce.importJWK)(Be.epk,R);let me;let be;if(Be.apu!==undefined){if(typeof Be.apu!=="string")throw new Ee.JWEInvalid(`JOSE Header "apu" (Agreement PartyUInfo) invalid`);try{me=(0,ve.decode)(Be.apu)}catch{throw new Ee.JWEInvalid("Failed to base64url decode the apu")}}if(Be.apv!==undefined){if(typeof Be.apv!=="string")throw new Ee.JWEInvalid(`JOSE Header "apv" (Agreement PartyVInfo) invalid`);try{be=(0,ve.decode)(Be.apv)}catch{throw new Ee.JWEInvalid("Failed to base64url decode the apv")}}const _e=await ge.deriveKey(ye,pe,R==="ECDH-ES"?Be.enc:R,R==="ECDH-ES"?(0,we.bitLength)(Be.enc):parseInt(R.slice(-5,-2),10),me,be);if(R==="ECDH-ES")return _e;if(Ae===undefined)throw new Ee.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R.slice(-6),_e,Ae)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(Ae===undefined)throw new Ee.JWEInvalid("JWE Encrypted Key missing");return(0,me.decrypt)(R,pe,Ae)}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{if(Ae===undefined)throw new Ee.JWEInvalid("JWE Encrypted Key missing");if(typeof Be.p2c!=="number")throw new Ee.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) missing or invalid`);const he=ke?.maxPBES2Count||1e4;if(Be.p2c>he)throw new Ee.JWEInvalid(`JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds`);if(typeof Be.p2s!=="string")throw new Ee.JWEInvalid(`JOSE Header "p2s" (PBES2 Salt) missing or invalid`);let ge;try{ge=(0,ve.decode)(Be.p2s)}catch{throw new Ee.JWEInvalid("Failed to base64url decode the p2s")}return(0,ye.decrypt)(R,pe,Ae,Be.p2c,ge)}case"A128KW":case"A192KW":case"A256KW":{if(Ae===undefined)throw new Ee.JWEInvalid("JWE Encrypted Key missing");return(0,he.unwrap)(R,pe,Ae)}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{if(Ae===undefined)throw new Ee.JWEInvalid("JWE Encrypted Key missing");if(typeof Be.iv!=="string")throw new Ee.JWEInvalid(`JOSE Header "iv" (Initialization Vector) missing or invalid`);if(typeof Be.tag!=="string")throw new Ee.JWEInvalid(`JOSE Header "tag" (Authentication Tag) missing or invalid`);let he;try{he=(0,ve.decode)(Be.iv)}catch{throw new Ee.JWEInvalid("Failed to base64url decode the iv")}let ge;try{ge=(0,ve.decode)(Be.tag)}catch{throw new Ee.JWEInvalid("Failed to base64url decode the tag")}return(0,Se.unwrap)(R,pe,Ae,he,ge)}default:{throw new Ee.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}}pe["default"]=decryptKeyManagement},33286:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(56083);const ge=Ae(33706);const ye=Ae(66898);const me=Ae(89526);const ve=Ae(80518);const be=Ae(33367);const Ee=Ae(43987);const we=Ae(94419);const Ce=Ae(70465);const _e=Ae(56241);const Ie=Ae(10233);async function encryptKeyManagement(R,pe,Ae,Se,Be={}){let ke;let Oe;let Re;(0,_e.default)(R,Ae,"encrypt");Ae=await(be.default.normalizePublicKey?.(Ae,R))||Ae;switch(R){case"dir":{Re=Ae;break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ge.ecdhAllowed(Ae)){throw new we.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime")}const{apu:ye,apv:me}=Be;let{epk:be}=Be;be||=(await ge.generateEpk(Ae)).privateKey;const{x:_e,y:Ie,crv:Qe,kty:xe}=await(0,Ce.exportJWK)(be);const Pe=await ge.deriveKey(Ae,be,R==="ECDH-ES"?pe:R,R==="ECDH-ES"?(0,Ee.bitLength)(pe):parseInt(R.slice(-5,-2),10),ye,me);Oe={epk:{x:_e,crv:Qe,kty:xe}};if(xe==="EC")Oe.epk.y=Ie;if(ye)Oe.apu=(0,ve.encode)(ye);if(me)Oe.apv=(0,ve.encode)(me);if(R==="ECDH-ES"){Re=Pe;break}Re=Se||(0,Ee.default)(pe);const Te=R.slice(-6);ke=await(0,he.wrap)(Te,Pe,Re);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{Re=Se||(0,Ee.default)(pe);ke=await(0,me.encrypt)(R,Ae,Re);break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{Re=Se||(0,Ee.default)(pe);const{p2c:he,p2s:ge}=Be;({encryptedKey:ke,...Oe}=await(0,ye.encrypt)(R,Ae,Re,he,ge));break}case"A128KW":case"A192KW":case"A256KW":{Re=Se||(0,Ee.default)(pe);ke=await(0,he.wrap)(R,Ae,Re);break}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{Re=Se||(0,Ee.default)(pe);const{iv:he}=Be;({encryptedKey:ke,...Oe}=await(0,Ie.wrap)(R,Ae,Re,he));break}default:{throw new we.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}return{cek:Re,encryptedKey:ke,parameters:Oe}}pe["default"]=encryptKeyManagement},74476:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=R=>Math.floor(R.getTime()/1e3)},1146:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.withAlg=void 0;function message(R,pe,...Ae){if(Ae.length>2){const pe=Ae.pop();R+=`one of type ${Ae.join(", ")}, or ${pe}.`}else if(Ae.length===2){R+=`one of type ${Ae[0]} or ${Ae[1]}.`}else{R+=`of type ${Ae[0]}.`}if(pe==null){R+=` Received ${pe}`}else if(typeof pe==="function"&&pe.name){R+=` Received function ${pe.name}`}else if(typeof pe==="object"&&pe!=null){if(pe.constructor?.name){R+=` Received an instance of ${pe.constructor.name}`}}return R}pe["default"]=(R,...pe)=>message("Key must be ",R,...pe);function withAlg(R,pe,...Ae){return message(`Key for the ${R} algorithm must be `,pe,...Ae)}pe.withAlg=withAlg},6063:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const isDisjoint=(...R)=>{const pe=R.filter(Boolean);if(pe.length===0||pe.length===1){return true}let Ae;for(const R of pe){const pe=Object.keys(R);if(!Ae||Ae.size===0){Ae=new Set(pe);continue}for(const R of pe){if(Ae.has(R)){return false}Ae.add(R)}}return true};pe["default"]=isDisjoint},39127:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function isObjectLike(R){return typeof R==="object"&&R!==null}function isObject(R){if(!isObjectLike(R)||Object.prototype.toString.call(R)!=="[object Object]"){return false}if(Object.getPrototypeOf(R)===null){return true}let pe=R;while(Object.getPrototypeOf(pe)!==null){pe=Object.getPrototypeOf(pe)}return Object.getPrototypeOf(R)===pe}pe["default"]=isObject},84630:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bitLength=void 0;const he=Ae(94419);const ge=Ae(75770);function bitLength(R){switch(R){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new he.JOSENotSupported(`Unsupported JWE Algorithm: ${R}`)}}pe.bitLength=bitLength;pe["default"]=R=>(0,ge.default)(new Uint8Array(bitLength(R)>>3))},7274:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);const ge=Ae(1691);const ye=Ae(74476);const me=Ae(37810);const ve=Ae(39127);const normalizeTyp=R=>R.toLowerCase().replace(/^application\//,"");const checkAudiencePresence=(R,pe)=>{if(typeof R==="string"){return pe.includes(R)}if(Array.isArray(R)){return pe.some(Set.prototype.has.bind(new Set(R)))}return false};pe["default"]=(R,pe,Ae={})=>{let be;try{be=JSON.parse(ge.decoder.decode(pe))}catch{}if(!(0,ve.default)(be)){throw new he.JWTInvalid("JWT Claims Set must be a top-level JSON object")}const{typ:Ee}=Ae;if(Ee&&(typeof R.typ!=="string"||normalizeTyp(R.typ)!==normalizeTyp(Ee))){throw new he.JWTClaimValidationFailed('unexpected "typ" JWT header value',be,"typ","check_failed")}const{requiredClaims:we=[],issuer:Ce,subject:_e,audience:Ie,maxTokenAge:Se}=Ae;const Be=[...we];if(Se!==undefined)Be.push("iat");if(Ie!==undefined)Be.push("aud");if(_e!==undefined)Be.push("sub");if(Ce!==undefined)Be.push("iss");for(const R of new Set(Be.reverse())){if(!(R in be)){throw new he.JWTClaimValidationFailed(`missing required "${R}" claim`,be,R,"missing")}}if(Ce&&!(Array.isArray(Ce)?Ce:[Ce]).includes(be.iss)){throw new he.JWTClaimValidationFailed('unexpected "iss" claim value',be,"iss","check_failed")}if(_e&&be.sub!==_e){throw new he.JWTClaimValidationFailed('unexpected "sub" claim value',be,"sub","check_failed")}if(Ie&&!checkAudiencePresence(be.aud,typeof Ie==="string"?[Ie]:Ie)){throw new he.JWTClaimValidationFailed('unexpected "aud" claim value',be,"aud","check_failed")}let ke;switch(typeof Ae.clockTolerance){case"string":ke=(0,me.default)(Ae.clockTolerance);break;case"number":ke=Ae.clockTolerance;break;case"undefined":ke=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:Oe}=Ae;const Re=(0,ye.default)(Oe||new Date);if((be.iat!==undefined||Se)&&typeof be.iat!=="number"){throw new he.JWTClaimValidationFailed('"iat" claim must be a number',be,"iat","invalid")}if(be.nbf!==undefined){if(typeof be.nbf!=="number"){throw new he.JWTClaimValidationFailed('"nbf" claim must be a number',be,"nbf","invalid")}if(be.nbf>Re+ke){throw new he.JWTClaimValidationFailed('"nbf" claim timestamp check failed',be,"nbf","check_failed")}}if(be.exp!==undefined){if(typeof be.exp!=="number"){throw new he.JWTClaimValidationFailed('"exp" claim must be a number',be,"exp","invalid")}if(be.exp<=Re-ke){throw new he.JWTExpired('"exp" claim timestamp check failed',be,"exp","check_failed")}}if(Se){const R=Re-be.iat;const pe=typeof Se==="number"?Se:(0,me.default)(Se);if(R-ke>pe){throw new he.JWTExpired('"iat" claim timestamp check failed (too far in the past)',be,"iat","check_failed")}if(R<0-ke){throw new he.JWTClaimValidationFailed('"iat" claim timestamp check failed (it should be in the past)',be,"iat","check_failed")}}return be}},37810:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const Ae=60;const he=Ae*60;const ge=he*24;const ye=ge*7;const me=ge*365.25;const ve=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;pe["default"]=R=>{const pe=ve.exec(R);if(!pe||pe[4]&&pe[1]){throw new TypeError("Invalid time period format")}const be=parseFloat(pe[2]);const Ee=pe[3].toLowerCase();let we;switch(Ee){case"sec":case"secs":case"second":case"seconds":case"s":we=Math.round(be);break;case"minute":case"minutes":case"min":case"mins":case"m":we=Math.round(be*Ae);break;case"hour":case"hours":case"hr":case"hrs":case"h":we=Math.round(be*he);break;case"day":case"days":case"d":we=Math.round(be*ge);break;case"week":case"weeks":case"w":we=Math.round(be*ye);break;default:we=Math.round(be*me);break}if(pe[1]==="-"||pe[4]==="ago"){return-we}return we}},55148:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const validateAlgorithms=(R,pe)=>{if(pe!==undefined&&(!Array.isArray(pe)||pe.some((R=>typeof R!=="string")))){throw new TypeError(`"${R}" option must be an array of strings`)}if(!pe){return undefined}return new Set(pe)};pe["default"]=validateAlgorithms},50863:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);function validateCrit(R,pe,Ae,ge,ye){if(ye.crit!==undefined&&ge?.crit===undefined){throw new R('"crit" (Critical) Header Parameter MUST be integrity protected')}if(!ge||ge.crit===undefined){return new Set}if(!Array.isArray(ge.crit)||ge.crit.length===0||ge.crit.some((R=>typeof R!=="string"||R.length===0))){throw new R('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present')}let me;if(Ae!==undefined){me=new Map([...Object.entries(Ae),...pe.entries()])}else{me=pe}for(const pe of ge.crit){if(!me.has(pe)){throw new he.JOSENotSupported(`Extension Header Parameter "${pe}" is not recognized`)}if(ye[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" is missing`)}if(me.get(pe)&&ge[pe]===undefined){throw new R(`Extension Header Parameter "${pe}" MUST be integrity protected`)}}return new Set(ge.crit)}pe["default"]=validateCrit},56083:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.unwrap=pe.wrap=void 0;const he=Ae(72254);const ge=Ae(6005);const ye=Ae(94419);const me=Ae(1691);const ve=Ae(86852);const be=Ae(73386);const Ee=Ae(62768);const we=Ae(1146);const Ce=Ae(14618);const _e=Ae(17947);function checkKeySize(R,pe){if(R.symmetricKeySize<<3!==parseInt(pe.slice(1,4),10)){throw new TypeError(`Invalid key size for alg: ${pe}`)}}function ensureKeyObject(R,pe,Ae){if((0,Ee.default)(R)){return R}if(R instanceof Uint8Array){return(0,ge.createSecretKey)(R)}if((0,ve.isCryptoKey)(R)){(0,be.checkEncCryptoKey)(R,pe,Ae);return ge.KeyObject.from(R)}throw new TypeError((0,we.default)(R,..._e.types,"Uint8Array"))}const wrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,Ce.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"wrapKey");checkKeySize(Ee,R);const we=(0,ge.createCipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(we.update(Ae),we.final())};pe.wrap=wrap;const unwrap=(R,pe,Ae)=>{const ve=parseInt(R.slice(1,4),10);const be=`aes${ve}-wrap`;if(!(0,Ce.default)(be)){throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}const Ee=ensureKeyObject(pe,R,"unwrapKey");checkKeySize(Ee,R);const we=(0,ge.createDecipheriv)(be,Ee,he.Buffer.alloc(8,166));return(0,me.concat)(we.update(Ae),we.final())};pe.unwrap=unwrap},70858:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromX509=pe.fromSPKI=pe.fromPKCS8=pe.toPKCS8=pe.toSPKI=void 0;const he=Ae(6005);const ge=Ae(72254);const ye=Ae(86852);const me=Ae(62768);const ve=Ae(1146);const be=Ae(17947);const genericExport=(R,pe,Ae)=>{let ge;if((0,ye.isCryptoKey)(Ae)){if(!Ae.extractable){throw new TypeError("CryptoKey is not extractable")}ge=he.KeyObject.from(Ae)}else if((0,me.default)(Ae)){ge=Ae}else{throw new TypeError((0,ve.default)(Ae,...be.types))}if(ge.type!==R){throw new TypeError(`key is not a ${R} key`)}return ge.export({format:"pem",type:pe})};const toSPKI=R=>genericExport("public","spki",R);pe.toSPKI=toSPKI;const toPKCS8=R=>genericExport("private","pkcs8",R);pe.toPKCS8=toPKCS8;const fromPKCS8=R=>(0,he.createPrivateKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,""),"base64"),type:"pkcs8",format:"der"});pe.fromPKCS8=fromPKCS8;const fromSPKI=R=>(0,he.createPublicKey)({key:ge.Buffer.from(R.replace(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,""),"base64"),type:"spki",format:"der"});pe.fromSPKI=fromSPKI;const fromX509=R=>(0,he.createPublicKey)({key:R,type:"spki",format:"pem"});pe.fromX509=fromX509},80518:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=pe.encodeBase64=pe.decodeBase64=void 0;const he=Ae(72254);const ge=Ae(1691);function normalize(R){let pe=R;if(pe instanceof Uint8Array){pe=ge.decoder.decode(pe)}return pe}const encode=R=>he.Buffer.from(R).toString("base64url");pe.encode=encode;const decodeBase64=R=>new Uint8Array(he.Buffer.from(R,"base64"));pe.decodeBase64=decodeBase64;const encodeBase64=R=>he.Buffer.from(R).toString("base64");pe.encodeBase64=encodeBase64;const decode=R=>new Uint8Array(he.Buffer.from(normalize(R),"base64"));pe.decode=decode},24519:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(1691);function cbcTag(R,pe,Ae,ye,me,ve){const be=(0,ge.concat)(R,pe,Ae,(0,ge.uint64be)(R.length<<3));const Ee=(0,he.createHmac)(`sha${ye}`,me);Ee.update(be);return Ee.digest().slice(0,ve>>3)}pe["default"]=cbcTag},4047:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);const ge=Ae(62768);const checkCekLength=(R,pe)=>{let Ae;switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new he.JOSENotSupported(`Content Encryption Algorithm ${R} is not supported either by JOSE or your javascript runtime`)}if(pe instanceof Uint8Array){const R=pe.byteLength<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}if((0,ge.default)(pe)&&pe.type==="secret"){const R=pe.symmetricKeySize<<3;if(R!==Ae){throw new he.JWEInvalid(`Invalid Content Encryption Key length. Expected ${Ae} bits, got ${R} bits`)}return}throw new TypeError("Invalid Content Encryption Key type")};pe["default"]=checkCekLength},94647:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=(R,pe)=>{const{modulusLength:Ae}=R.asymmetricKeyDetails;if(typeof Ae!=="number"||Ae<2048){throw new TypeError(`${pe} requires key modulusLength to be 2048 bits or larger`)}}},14618:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);let ge;pe["default"]=R=>{ge||=new Set((0,he.getCiphers)());return ge.has(R)}},66137:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(41120);const ye=Ae(4047);const me=Ae(1691);const ve=Ae(94419);const be=Ae(45390);const Ee=Ae(24519);const we=Ae(86852);const Ce=Ae(73386);const _e=Ae(62768);const Ie=Ae(1146);const Se=Ae(14618);const Be=Ae(17947);function cbcDecrypt(R,pe,Ae,ge,ye,we){const Ce=parseInt(R.slice(1,4),10);if((0,_e.default)(pe)){pe=pe.export()}const Ie=pe.subarray(Ce>>3);const Be=pe.subarray(0,Ce>>3);const ke=parseInt(R.slice(-3),10);const Oe=`aes-${Ce}-cbc`;if(!(0,Se.default)(Oe)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Re=(0,Ee.default)(we,ge,Ae,ke,Be,Ce);let Qe;try{Qe=(0,be.default)(ye,Re)}catch{}if(!Qe){throw new ve.JWEDecryptionFailed}let xe;try{const R=(0,he.createDecipheriv)(Oe,Ie,ge);xe=(0,me.concat)(R.update(Ae),R.final())}catch{}if(!xe){throw new ve.JWEDecryptionFailed}return xe}function gcmDecrypt(R,pe,Ae,ge,ye,me){const be=parseInt(R.slice(1,4),10);const Ee=`aes-${be}-gcm`;if(!(0,Se.default)(Ee)){throw new ve.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}try{const R=(0,he.createDecipheriv)(Ee,pe,ge,{authTagLength:16});R.setAuthTag(ye);if(me.byteLength){R.setAAD(me,{plaintextLength:Ae.length})}const ve=R.update(Ae);R.final();return ve}catch{throw new ve.JWEDecryptionFailed}}const decrypt=(R,pe,Ae,me,be,Ee)=>{let Se;if((0,we.isCryptoKey)(pe)){(0,Ce.checkEncCryptoKey)(pe,R,"decrypt");Se=he.KeyObject.from(pe)}else if(pe instanceof Uint8Array||(0,_e.default)(pe)){Se=pe}else{throw new TypeError((0,Ie.default)(pe,...Be.types,"Uint8Array"))}if(!me){throw new ve.JWEInvalid("JWE Initialization Vector missing")}if(!be){throw new ve.JWEInvalid("JWE Authentication Tag missing")}(0,ye.default)(R,Se);(0,ge.default)(R,me);switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcDecrypt(R,Se,Ae,me,be,Ee);case"A128GCM":case"A192GCM":case"A256GCM":return gcmDecrypt(R,Se,Ae,me,be,Ee);default:throw new ve.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=decrypt},52355:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const digest=(R,pe)=>(0,he.createHash)(R).update(pe).digest();pe["default"]=digest},54965:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);function dsaDigest(R){switch(R){case"PS256":case"RS256":case"ES256":case"ES256K":return"sha256";case"PS384":case"RS384":case"ES384":return"sha384";case"PS512":case"RS512":case"ES512":return"sha512";case"EdDSA":return undefined;default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=dsaDigest},33706:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ecdhAllowed=pe.generateEpk=pe.deriveKey=void 0;const he=Ae(6005);const ge=Ae(47261);const ye=Ae(99302);const me=Ae(1691);const ve=Ae(94419);const be=Ae(86852);const Ee=Ae(73386);const we=Ae(62768);const Ce=Ae(1146);const _e=Ae(17947);const Ie=(0,ge.promisify)(he.generateKeyPair);async function deriveKey(R,pe,Ae,ge,ye=new Uint8Array(0),ve=new Uint8Array(0)){let Ie;if((0,be.isCryptoKey)(R)){(0,Ee.checkEncCryptoKey)(R,"ECDH");Ie=he.KeyObject.from(R)}else if((0,we.default)(R)){Ie=R}else{throw new TypeError((0,Ce.default)(R,..._e.types))}let Se;if((0,be.isCryptoKey)(pe)){(0,Ee.checkEncCryptoKey)(pe,"ECDH","deriveBits");Se=he.KeyObject.from(pe)}else if((0,we.default)(pe)){Se=pe}else{throw new TypeError((0,Ce.default)(pe,..._e.types))}const Be=(0,me.concat)((0,me.lengthAndInput)(me.encoder.encode(Ae)),(0,me.lengthAndInput)(ye),(0,me.lengthAndInput)(ve),(0,me.uint32be)(ge));const ke=(0,he.diffieHellman)({privateKey:Se,publicKey:Ie});return(0,me.concatKdf)(ke,ge,Be)}pe.deriveKey=deriveKey;async function generateEpk(R){let pe;if((0,be.isCryptoKey)(R)){pe=he.KeyObject.from(R)}else if((0,we.default)(R)){pe=R}else{throw new TypeError((0,Ce.default)(R,..._e.types))}switch(pe.asymmetricKeyType){case"x25519":return Ie("x25519");case"x448":{return Ie("x448")}case"ec":{const R=(0,ye.default)(pe);return Ie("ec",{namedCurve:R})}default:throw new ve.JOSENotSupported("Invalid or unsupported EPK")}}pe.generateEpk=generateEpk;const ecdhAllowed=R=>["P-256","P-384","P-521","X25519","X448"].includes((0,ye.default)(R));pe.ecdhAllowed=ecdhAllowed},76476:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(41120);const ye=Ae(4047);const me=Ae(1691);const ve=Ae(24519);const be=Ae(86852);const Ee=Ae(73386);const we=Ae(62768);const Ce=Ae(1146);const _e=Ae(84630);const Ie=Ae(94419);const Se=Ae(14618);const Be=Ae(17947);function cbcEncrypt(R,pe,Ae,ge,ye){const be=parseInt(R.slice(1,4),10);if((0,we.default)(Ae)){Ae=Ae.export()}const Ee=Ae.subarray(be>>3);const Ce=Ae.subarray(0,be>>3);const _e=`aes-${be}-cbc`;if(!(0,Se.default)(_e)){throw new Ie.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const Be=(0,he.createCipheriv)(_e,Ee,ge);const ke=(0,me.concat)(Be.update(pe),Be.final());const Oe=parseInt(R.slice(-3),10);const Re=(0,ve.default)(ye,ge,ke,Oe,Ce,be);return{ciphertext:ke,tag:Re,iv:ge}}function gcmEncrypt(R,pe,Ae,ge,ye){const me=parseInt(R.slice(1,4),10);const ve=`aes-${me}-gcm`;if(!(0,Se.default)(ve)){throw new Ie.JOSENotSupported(`alg ${R} is not supported by your javascript runtime`)}const be=(0,he.createCipheriv)(ve,Ae,ge,{authTagLength:16});if(ye.byteLength){be.setAAD(ye,{plaintextLength:pe.length})}const Ee=be.update(pe);be.final();const we=be.getAuthTag();return{ciphertext:Ee,tag:we,iv:ge}}const encrypt=(R,pe,Ae,me,ve)=>{let Se;if((0,be.isCryptoKey)(Ae)){(0,Ee.checkEncCryptoKey)(Ae,R,"encrypt");Se=he.KeyObject.from(Ae)}else if(Ae instanceof Uint8Array||(0,we.default)(Ae)){Se=Ae}else{throw new TypeError((0,Ce.default)(Ae,...Be.types,"Uint8Array"))}(0,ye.default)(R,Se);if(me){(0,ge.default)(R,me)}else{me=(0,_e.default)(R)}switch(R){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return cbcEncrypt(R,pe,Se,me,ve);case"A128GCM":case"A192GCM":case"A256GCM":return gcmEncrypt(R,pe,Se,me,ve);default:throw new Ie.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}};pe["default"]=encrypt},43650:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(88849);const ge=Ae(22286);const ye=Ae(15673);const me=Ae(94419);const ve=Ae(1691);const fetchJwks=async(R,pe,Ae)=>{let be;switch(R.protocol){case"https:":be=ge.get;break;case"http:":be=he.get;break;default:throw new TypeError("Unsupported URL protocol.")}const{agent:Ee,headers:we}=Ae;const Ce=be(R.href,{agent:Ee,timeout:pe,headers:we});const[_e]=await Promise.race([(0,ye.once)(Ce,"response"),(0,ye.once)(Ce,"timeout")]);if(!_e){Ce.destroy();throw new me.JWKSTimeout}if(_e.statusCode!==200){throw new me.JOSEError("Expected 200 OK from the JSON Web Key Set HTTP response")}const Ie=[];for await(const R of _e){Ie.push(R)}try{return JSON.parse(ve.decoder.decode((0,ve.concat)(...Ie)))}catch{throw new me.JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON")}};pe["default"]=fetchJwks},29378:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.generateKeyPair=pe.generateSecret=void 0;const he=Ae(6005);const ge=Ae(47261);const ye=Ae(75770);const me=Ae(94419);const ve=(0,ge.promisify)(he.generateKeyPair);async function generateSecret(R,pe){let Ae;switch(R){case"HS256":case"HS384":case"HS512":case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":Ae=parseInt(R.slice(-3),10);break;case"A128KW":case"A192KW":case"A256KW":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":Ae=parseInt(R.slice(1,4),10);break;default:throw new me.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return(0,he.createSecretKey)((0,ye.default)(new Uint8Array(Ae>>3)))}pe.generateSecret=generateSecret;async function generateKeyPair(R,pe){switch(R){case"RS256":case"RS384":case"RS512":case"PS256":case"PS384":case"PS512":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":case"RSA1_5":{const R=pe?.modulusLength??2048;if(typeof R!=="number"||R<2048){throw new me.JOSENotSupported("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used")}const Ae=await ve("rsa",{modulusLength:R,publicExponent:65537});return Ae}case"ES256":return ve("ec",{namedCurve:"P-256"});case"ES256K":return ve("ec",{namedCurve:"secp256k1"});case"ES384":return ve("ec",{namedCurve:"P-384"});case"ES512":return ve("ec",{namedCurve:"P-521"});case"EdDSA":{switch(pe?.crv){case undefined:case"Ed25519":return ve("ed25519");case"Ed448":return ve("ed448");default:throw new me.JOSENotSupported("Invalid or unsupported crv option provided, supported values are Ed25519 and Ed448")}}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{const R=pe?.crv??"P-256";switch(R){case undefined:case"P-256":case"P-384":case"P-521":return ve("ec",{namedCurve:R});case"X25519":return ve("x25519");case"X448":return ve("x448");default:throw new me.JOSENotSupported("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}}default:throw new me.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}}pe.generateKeyPair=generateKeyPair},99302:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.weakMap=void 0;const he=Ae(6005);const ge=Ae(94419);const ye=Ae(86852);const me=Ae(62768);const ve=Ae(1146);const be=Ae(17947);pe.weakMap=new WeakMap;const namedCurveToJOSE=R=>{switch(R){case"prime256v1":return"P-256";case"secp384r1":return"P-384";case"secp521r1":return"P-521";case"secp256k1":return"secp256k1";default:throw new ge.JOSENotSupported("Unsupported key curve for this operation")}};const getNamedCurve=(R,pe)=>{let Ae;if((0,ye.isCryptoKey)(R)){Ae=he.KeyObject.from(R)}else if((0,me.default)(R)){Ae=R}else{throw new TypeError((0,ve.default)(R,...be.types))}if(Ae.type==="secret"){throw new TypeError('only "private" or "public" type keys can be used for this operation')}switch(Ae.asymmetricKeyType){case"ed25519":case"ed448":return`Ed${Ae.asymmetricKeyType.slice(2)}`;case"x25519":case"x448":return`X${Ae.asymmetricKeyType.slice(1)}`;case"ec":{const R=Ae.asymmetricKeyDetails.namedCurve;if(pe){return R}return namedCurveToJOSE(R)}default:throw new TypeError("Invalid asymmetric key type for this operation")}};pe["default"]=getNamedCurve},53170:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(86852);const ye=Ae(73386);const me=Ae(1146);const ve=Ae(17947);function getSignVerifyKey(R,pe,Ae){if(pe instanceof Uint8Array){if(!R.startsWith("HS")){throw new TypeError((0,me.default)(pe,...ve.types))}return(0,he.createSecretKey)(pe)}if(pe instanceof he.KeyObject){return pe}if((0,ge.isCryptoKey)(pe)){(0,ye.checkSigCryptoKey)(pe,R,Ae);return he.KeyObject.from(pe)}throw new TypeError((0,me.default)(pe,...ve.types,"Uint8Array"))}pe["default"]=getSignVerifyKey},13811:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(94419);function hmacDigest(R){switch(R){case"HS256":return"sha256";case"HS384":return"sha384";case"HS512":return"sha512";default:throw new he.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=hmacDigest},17947:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.types=void 0;const he=Ae(86852);const ge=Ae(62768);pe["default"]=R=>(0,ge.default)(R)||(0,he.isCryptoKey)(R);const ye=["KeyObject"];pe.types=ye;if(globalThis.CryptoKey||he.default?.CryptoKey){ye.push("CryptoKey")}},62768:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(47261);pe["default"]=R=>he.types.isKeyObject(R)},42659:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const parse=R=>(R.d?he.createPrivateKey:he.createPublicKey)({format:"jwk",key:R});pe["default"]=parse},40997:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(80518);const ye=Ae(94419);const me=Ae(86852);const ve=Ae(62768);const be=Ae(1146);const Ee=Ae(17947);const keyToJWK=R=>{let pe;if((0,me.isCryptoKey)(R)){if(!R.extractable){throw new TypeError("CryptoKey is not extractable")}pe=he.KeyObject.from(R)}else if((0,ve.default)(R)){pe=R}else if(R instanceof Uint8Array){return{kty:"oct",k:(0,ge.encode)(R)}}else{throw new TypeError((0,be.default)(R,...Ee.types,"Uint8Array"))}if(pe.type!=="secret"&&!["rsa","ec","ed25519","x25519","ed448","x448"].includes(pe.asymmetricKeyType)){throw new ye.JOSENotSupported("Unsupported key asymmetricKeyType")}return pe.export({format:"jwk"})};pe["default"]=keyToJWK},52413:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(99302);const ye=Ae(94419);const me=Ae(94647);const ve={padding:he.constants.RSA_PKCS1_PSS_PADDING,saltLength:he.constants.RSA_PSS_SALTLEN_DIGEST};const be=new Map([["ES256","P-256"],["ES256K","secp256k1"],["ES384","P-384"],["ES512","P-521"]]);function keyForCrypto(R,pe){switch(R){case"EdDSA":if(!["ed25519","ed448"].includes(pe.asymmetricKeyType)){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ed25519 or ed448")}return pe;case"RS256":case"RS384":case"RS512":if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,me.default)(pe,R);return pe;case"PS256":case"PS384":case"PS512":if(pe.asymmetricKeyType==="rsa-pss"){const{hashAlgorithm:Ae,mgf1HashAlgorithm:he,saltLength:ge}=pe.asymmetricKeyDetails;const ye=parseInt(R.slice(-3),10);if(Ae!==undefined&&(Ae!==`sha${ye}`||he!==Ae)){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${R}`)}if(ge!==undefined&&ge>ye>>3){throw new TypeError(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${R}`)}}else if(pe.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa or rsa-pss")}(0,me.default)(pe,R);return{key:pe,...ve};case"ES256":case"ES256K":case"ES384":case"ES512":{if(pe.asymmetricKeyType!=="ec"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be ec")}const Ae=(0,ge.default)(pe);const he=be.get(R);if(Ae!==he){throw new TypeError(`Invalid key curve for the algorithm, its curve must be ${he}, got ${Ae}`)}return{dsaEncoding:"ieee-p1363",key:pe}}default:throw new ye.JOSENotSupported(`alg ${R} is not supported either by JOSE or your javascript runtime`)}}pe["default"]=keyForCrypto},33367:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]={}},66898:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(47261);const ge=Ae(6005);const ye=Ae(75770);const me=Ae(1691);const ve=Ae(80518);const be=Ae(56083);const Ee=Ae(83499);const we=Ae(86852);const Ce=Ae(73386);const _e=Ae(62768);const Ie=Ae(1146);const Se=Ae(17947);const Be=(0,he.promisify)(ge.pbkdf2);function getPassword(R,pe){if((0,_e.default)(R)){return R.export()}if(R instanceof Uint8Array){return R}if((0,we.isCryptoKey)(R)){(0,Ce.checkEncCryptoKey)(R,pe,"deriveBits","deriveKey");return ge.KeyObject.from(R).export()}throw new TypeError((0,Ie.default)(R,...Se.types,"Uint8Array"))}const encrypt=async(R,pe,Ae,he=2048,ge=(0,ye.default)(new Uint8Array(16)))=>{(0,Ee.default)(ge);const we=(0,me.p2s)(R,ge);const Ce=parseInt(R.slice(13,16),10)>>3;const _e=getPassword(pe,R);const Ie=await Be(_e,we,he,Ce,`sha${R.slice(8,11)}`);const Se=await(0,be.wrap)(R.slice(-6),Ie,Ae);return{encryptedKey:Se,p2c:he,p2s:(0,ve.encode)(ge)}};pe.encrypt=encrypt;const decrypt=async(R,pe,Ae,he,ge)=>{(0,Ee.default)(ge);const ye=(0,me.p2s)(R,ge);const ve=parseInt(R.slice(13,16),10)>>3;const we=getPassword(pe,R);const Ce=await Be(we,ye,he,ve,`sha${R.slice(8,11)}`);return(0,be.unwrap)(R.slice(-6),Ce,Ae)};pe.decrypt=decrypt},75770:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=Ae(6005);Object.defineProperty(pe,"default",{enumerable:true,get:function(){return he.randomFillSync}})},89526:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decrypt=pe.encrypt=void 0;const he=Ae(6005);const ge=Ae(47261);const ye=Ae(94647);const me=Ae(86852);const ve=Ae(73386);const be=Ae(62768);const Ee=Ae(1146);const we=Ae(17947);const checkKey=(R,pe)=>{if(R.asymmetricKeyType!=="rsa"){throw new TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa")}(0,ye.default)(R,pe)};const Ce=(0,ge.deprecate)((()=>he.constants.RSA_PKCS1_PADDING),'The RSA1_5 "alg" (JWE Algorithm) is deprecated and will be removed in the next major revision.');const resolvePadding=R=>{switch(R){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return he.constants.RSA_PKCS1_OAEP_PADDING;case"RSA1_5":return Ce();default:return undefined}};const resolveOaepHash=R=>{switch(R){case"RSA-OAEP":return"sha1";case"RSA-OAEP-256":return"sha256";case"RSA-OAEP-384":return"sha384";case"RSA-OAEP-512":return"sha512";default:return undefined}};function ensureKeyObject(R,pe,...Ae){if((0,be.default)(R)){return R}if((0,me.isCryptoKey)(R)){(0,ve.checkEncCryptoKey)(R,pe,...Ae);return he.KeyObject.from(R)}throw new TypeError((0,Ee.default)(R,...we.types))}const encrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"wrapKey","encrypt");checkKey(me,R);return(0,he.publicEncrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.encrypt=encrypt;const decrypt=(R,pe,Ae)=>{const ge=resolvePadding(R);const ye=resolveOaepHash(R);const me=ensureKeyObject(pe,R,"unwrapKey","decrypt");checkKey(me,R);return(0,he.privateDecrypt)({key:me,oaepHash:ye,padding:ge},Ae)};pe.decrypt=decrypt},41622:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]="node:crypto"},69935:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(47261);const ye=Ae(54965);const me=Ae(13811);const ve=Ae(52413);const be=Ae(53170);const Ee=(0,ge.promisify)(he.sign);const sign=async(R,pe,Ae)=>{const ge=(0,be.default)(R,pe,"sign");if(R.startsWith("HS")){const pe=he.createHmac((0,me.default)(R),ge);pe.update(Ae);return pe.digest()}return Ee((0,ye.default)(R),Ae,(0,ve.default)(R,ge))};pe["default"]=sign},45390:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=he.timingSafeEqual;pe["default"]=ge},3569:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(6005);const ge=Ae(47261);const ye=Ae(54965);const me=Ae(52413);const ve=Ae(69935);const be=Ae(53170);const Ee=(0,ge.promisify)(he.verify);const verify=async(R,pe,Ae,ge)=>{const we=(0,be.default)(R,pe,"verify");if(R.startsWith("HS")){const pe=await(0,ve.default)(R,we,ge);const ye=Ae;try{return he.timingSafeEqual(ye,pe)}catch{return false}}const Ce=(0,ye.default)(R);const _e=(0,me.default)(R,we);try{return await Ee(Ce,ge,_e,Ae)}catch{return false}};pe["default"]=verify},86852:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isCryptoKey=void 0;const he=Ae(6005);const ge=Ae(47261);const ye=he.webcrypto;pe["default"]=ye;const isCryptoKey=R=>ge.types.isCryptoKey(R);pe.isCryptoKey=isCryptoKey},63238:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decode=pe.encode=void 0;const he=Ae(80518);pe.encode=he.encode;pe.decode=he.decode},65611:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeJwt=void 0;const he=Ae(63238);const ge=Ae(1691);const ye=Ae(39127);const me=Ae(94419);function decodeJwt(R){if(typeof R!=="string")throw new me.JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");const{1:pe,length:Ae}=R.split(".");if(Ae===5)throw new me.JWTInvalid("Only JWTs using Compact JWS serialization can be decoded");if(Ae!==3)throw new me.JWTInvalid("Invalid JWT");if(!pe)throw new me.JWTInvalid("JWTs must contain a payload");let ve;try{ve=(0,he.decode)(pe)}catch{throw new me.JWTInvalid("Failed to base64url decode the payload")}let be;try{be=JSON.parse(ge.decoder.decode(ve))}catch{throw new me.JWTInvalid("Failed to parse the decoded payload as JSON")}if(!(0,ye.default)(be))throw new me.JWTInvalid("Invalid JWT Claims Set");return be}pe.decodeJwt=decodeJwt},33991:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.decodeProtectedHeader=void 0;const he=Ae(63238);const ge=Ae(1691);const ye=Ae(39127);function decodeProtectedHeader(R){let pe;if(typeof R==="string"){const Ae=R.split(".");if(Ae.length===3||Ae.length===5){[pe]=Ae}}else if(typeof R==="object"&&R){if("protected"in R){pe=R.protected}else{throw new TypeError("Token does not contain a Protected Header")}}try{if(typeof pe!=="string"||!pe){throw new Error}const R=JSON.parse(ge.decoder.decode((0,he.decode)(pe)));if(!(0,ye.default)(R)){throw new Error}return R}catch{throw new TypeError("Invalid Token or Protected Header formatting")}}pe.decodeProtectedHeader=decodeProtectedHeader},94419:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.JWSSignatureVerificationFailed=pe.JWKSTimeout=pe.JWKSMultipleMatchingKeys=pe.JWKSNoMatchingKey=pe.JWKSInvalid=pe.JWKInvalid=pe.JWTInvalid=pe.JWSInvalid=pe.JWEInvalid=pe.JWEDecryptionFailed=pe.JOSENotSupported=pe.JOSEAlgNotAllowed=pe.JWTExpired=pe.JWTClaimValidationFailed=pe.JOSEError=void 0;class JOSEError extends Error{static get code(){return"ERR_JOSE_GENERIC"}code="ERR_JOSE_GENERIC";constructor(R){super(R);this.name=this.constructor.name;Error.captureStackTrace?.(this,this.constructor)}}pe.JOSEError=JOSEError;class JWTClaimValidationFailed extends JOSEError{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}code="ERR_JWT_CLAIM_VALIDATION_FAILED";claim;reason;payload;constructor(R,pe,Ae="unspecified",he="unspecified"){super(R);this.claim=Ae;this.reason=he;this.payload=pe}}pe.JWTClaimValidationFailed=JWTClaimValidationFailed;class JWTExpired extends JOSEError{static get code(){return"ERR_JWT_EXPIRED"}code="ERR_JWT_EXPIRED";claim;reason;payload;constructor(R,pe,Ae="unspecified",he="unspecified"){super(R);this.claim=Ae;this.reason=he;this.payload=pe}}pe.JWTExpired=JWTExpired;class JOSEAlgNotAllowed extends JOSEError{static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}code="ERR_JOSE_ALG_NOT_ALLOWED"}pe.JOSEAlgNotAllowed=JOSEAlgNotAllowed;class JOSENotSupported extends JOSEError{static get code(){return"ERR_JOSE_NOT_SUPPORTED"}code="ERR_JOSE_NOT_SUPPORTED"}pe.JOSENotSupported=JOSENotSupported;class JWEDecryptionFailed extends JOSEError{static get code(){return"ERR_JWE_DECRYPTION_FAILED"}code="ERR_JWE_DECRYPTION_FAILED";message="decryption operation failed"}pe.JWEDecryptionFailed=JWEDecryptionFailed;class JWEInvalid extends JOSEError{static get code(){return"ERR_JWE_INVALID"}code="ERR_JWE_INVALID"}pe.JWEInvalid=JWEInvalid;class JWSInvalid extends JOSEError{static get code(){return"ERR_JWS_INVALID"}code="ERR_JWS_INVALID"}pe.JWSInvalid=JWSInvalid;class JWTInvalid extends JOSEError{static get code(){return"ERR_JWT_INVALID"}code="ERR_JWT_INVALID"}pe.JWTInvalid=JWTInvalid;class JWKInvalid extends JOSEError{static get code(){return"ERR_JWK_INVALID"}code="ERR_JWK_INVALID"}pe.JWKInvalid=JWKInvalid;class JWKSInvalid extends JOSEError{static get code(){return"ERR_JWKS_INVALID"}code="ERR_JWKS_INVALID"}pe.JWKSInvalid=JWKSInvalid;class JWKSNoMatchingKey extends JOSEError{static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}code="ERR_JWKS_NO_MATCHING_KEY";message="no applicable key found in the JSON Web Key Set"}pe.JWKSNoMatchingKey=JWKSNoMatchingKey;class JWKSMultipleMatchingKeys extends JOSEError{[Symbol.asyncIterator];static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";message="multiple matching keys found in the JSON Web Key Set"}pe.JWKSMultipleMatchingKeys=JWKSMultipleMatchingKeys;class JWKSTimeout extends JOSEError{static get code(){return"ERR_JWKS_TIMEOUT"}code="ERR_JWKS_TIMEOUT";message="request timed out"}pe.JWKSTimeout=JWKSTimeout;class JWSSignatureVerificationFailed extends JOSEError{static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";message="signature verification failed"}pe.JWSSignatureVerificationFailed=JWSSignatureVerificationFailed},31173:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(41622);pe["default"]=he.default},11017:(R,pe,Ae)=>{"use strict";var he=Ae(83083);R.exports=api;function api(R,pe,Ae){if(arguments.length===3){return api.set(R,pe,Ae)}if(arguments.length===2){return api.get(R,pe)}var he=api.bind(api,R);for(var ge in api){if(api.hasOwnProperty(ge)){he[ge]=api[ge].bind(he,R)}}return he}api.get=function get(R,pe){var Ae=Array.isArray(pe)?pe:api.parse(pe);for(var he=0;he{"use strict";var pe=R.exports=function(R,pe,Ae){if(typeof pe=="function"){Ae=pe;pe={}}Ae=pe.cb||Ae;var he=typeof Ae=="function"?Ae:Ae.pre||function(){};var ge=Ae.post||function(){};_traverse(pe,he,ge,R,"",R)};pe.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};pe.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};pe.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};pe.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(R,Ae,he,ge,ye,me,ve,be,Ee,we){if(ge&&typeof ge=="object"&&!Array.isArray(ge)){Ae(ge,ye,me,ve,be,Ee,we);for(var Ce in ge){var _e=ge[Ce];if(Array.isArray(_e)){if(Ce in pe.arrayKeywords){for(var Ie=0;Ie<_e.length;Ie++)_traverse(R,Ae,he,_e[Ie],ye+"/"+Ce+"/"+Ie,me,ye,Ce,ge,Ie)}}else if(Ce in pe.propsKeywords){if(_e&&typeof _e=="object"){for(var Se in _e)_traverse(R,Ae,he,_e[Se],ye+"/"+Ce+"/"+escapeJsonPtr(Se),me,ye,Ce,ge,Se)}}else if(Ce in pe.keywords||R.allKeys&&!(Ce in pe.skipKeywords)){_traverse(R,Ae,he,_e,ye+"/"+Ce,me,ye,Ce,ge)}}he(ge,ye,me,ve,be,Ee,we)}}function escapeJsonPtr(R){return R.replace(/~/g,"~0").replace(/\//g,"~1")}},70756:(R,pe,Ae)=>{"use strict";const{isArray:he,isObject:ge,isString:ye}=Ae(86891);const{asArray:me}=Ae(69450);const{prependBase:ve}=Ae(40651);const be=Ae(11625);const Ee=Ae(7446);const we=10;R.exports=class ContextResolver{constructor({sharedCache:R}){this.perOpCache=new Map;this.sharedCache=R}async resolve({activeCtx:R,context:pe,documentLoader:Ae,base:ve,cycles:be=new Set}){if(pe&&ge(pe)&&pe["@context"]){pe=pe["@context"]}pe=me(pe);const we=[];for(const me of pe){if(ye(me)){let pe=this._get(me);if(!pe){pe=await this._resolveRemoteContext({activeCtx:R,url:me,documentLoader:Ae,base:ve,cycles:be})}if(he(pe)){we.push(...pe)}else{we.push(pe)}continue}if(me===null){we.push(new Ee({document:null}));continue}if(!ge(me)){_throwInvalidLocalContext(pe)}const Ce=JSON.stringify(me);let _e=this._get(Ce);if(!_e){_e=new Ee({document:me});this._cacheResolvedContext({key:Ce,resolved:_e,tag:"static"})}we.push(_e)}return we}_get(R){let pe=this.perOpCache.get(R);if(!pe){const Ae=this.sharedCache.get(R);if(Ae){pe=Ae.get("static");if(pe){this.perOpCache.set(R,pe)}}}return pe}_cacheResolvedContext({key:R,resolved:pe,tag:Ae}){this.perOpCache.set(R,pe);if(Ae!==undefined){let he=this.sharedCache.get(R);if(!he){he=new Map;this.sharedCache.set(R,he)}he.set(Ae,pe)}return pe}async _resolveRemoteContext({activeCtx:R,url:pe,documentLoader:Ae,base:he,cycles:ge}){pe=ve(he,pe);const{context:ye,remoteDoc:me}=await this._fetchContext({activeCtx:R,url:pe,documentLoader:Ae,cycles:ge});he=me.documentUrl||pe;_resolveContextUrls({context:ye,base:he});const be=await this.resolve({activeCtx:R,context:ye,documentLoader:Ae,base:he,cycles:ge});this._cacheResolvedContext({key:pe,resolved:be,tag:me.tag});return be}async _fetchContext({activeCtx:R,url:pe,documentLoader:Ae,cycles:me}){if(me.size>we){throw new be("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:R.processingMode==="json-ld-1.0"?"loading remote context failed":"context overflow",max:we})}if(me.has(pe)){throw new be("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:R.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:pe})}me.add(pe);let ve;let Ee;try{Ee=await Ae(pe);ve=Ee.document||null;if(ye(ve)){ve=JSON.parse(ve)}}catch(R){throw new be("Dereferencing a URL did not result in a valid JSON-LD object. "+"Possible causes are an inaccessible URL perhaps due to "+"a same-origin policy (ensure the server uses CORS if you are "+"using client-side JavaScript), too many redirects, a "+"non-JSON response, or more than one HTTP Link Header was "+"provided for a remote context.","jsonld.InvalidUrl",{code:"loading remote context failed",url:pe,cause:R})}if(!ge(ve)){throw new be("Dereferencing a URL did not result in a JSON object. The "+"response was valid JSON, but it was not a JSON object.","jsonld.InvalidUrl",{code:"invalid remote context",url:pe})}if(!("@context"in ve)){ve={"@context":{}}}else{ve={"@context":ve["@context"]}}if(Ee.contextUrl){if(!he(ve["@context"])){ve["@context"]=[ve["@context"]]}ve["@context"].push(Ee.contextUrl)}return{context:ve,remoteDoc:Ee}}};function _throwInvalidLocalContext(R){throw new be("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:R})}function _resolveContextUrls({context:R,base:pe}){if(!R){return}const Ae=R["@context"];if(ye(Ae)){R["@context"]=ve(pe,Ae);return}if(he(Ae)){for(let R=0;R{"use strict";R.exports=class JsonLdError extends Error{constructor(R="An unspecified JSON-LD error occurred.",pe="jsonld.Error",Ae={}){super(R);this.name=pe;this.message=R;this.details=Ae}}},21677:R=>{"use strict";R.exports=R=>{class JsonLdProcessor{toString(){return"[object JsonLdProcessor]"}}Object.defineProperty(JsonLdProcessor,"prototype",{writable:false,enumerable:false});Object.defineProperty(JsonLdProcessor.prototype,"constructor",{writable:true,enumerable:false,configurable:true,value:JsonLdProcessor});JsonLdProcessor.compact=function(pe,Ae){if(arguments.length<2){return Promise.reject(new TypeError("Could not compact, too few arguments."))}return R.compact(pe,Ae)};JsonLdProcessor.expand=function(pe){if(arguments.length<1){return Promise.reject(new TypeError("Could not expand, too few arguments."))}return R.expand(pe)};JsonLdProcessor.flatten=function(pe){if(arguments.length<1){return Promise.reject(new TypeError("Could not flatten, too few arguments."))}return R.flatten(pe)};return JsonLdProcessor}},13611:(R,pe,Ae)=>{"use strict";R.exports=Ae(43).NQuads},99241:R=>{"use strict";R.exports=class RequestQueue{constructor(){this._requests={}}wrapLoader(R){const pe=this;pe._loader=R;return function(){return pe.add.apply(pe,arguments)}}async add(R){let pe=this._requests[R];if(pe){return Promise.resolve(pe)}pe=this._requests[R]=this._loader(R);try{return await pe}finally{delete this._requests[R]}}}},7446:(R,pe,Ae)=>{"use strict";const he=Ae(51370);const ge=10;R.exports=class ResolvedContext{constructor({document:R}){this.document=R;this.cache=new he({max:ge})}getProcessed(R){return this.cache.get(R)}setProcessed(R,pe){this.cache.set(R,pe)}}},63073:(R,pe,Ae)=>{"use strict";const he=Ae(11625);const{isArray:ge,isObject:ye,isString:me,isUndefined:ve}=Ae(86891);const{isList:be,isValue:Ee,isGraph:we,isSimpleGraph:Ce,isSubjectReference:_e}=Ae(13631);const{expandIri:Ie,getContextValue:Se,isKeyword:Be,process:ke,processingMode:Oe}=Ae(41866);const{removeBase:Re,prependBase:Qe}=Ae(40651);const{REGEX_KEYWORD:xe,addValue:Pe,asArray:Te,compareShortestLeast:De}=Ae(69450);const Ne={};R.exports=Ne;Ne.compact=async({activeCtx:R,activeProperty:pe=null,element:Ae,options:Ie={}})=>{if(ge(Ae)){let he=[];for(let ge=0;ge1){Me=Array.from(Me).sort()}const je=R;for(const pe of Me){const Ae=Ne.compactIri({activeCtx:je,iri:pe,relativeTo:{vocab:true}});const he=Se(xe,Ae,"@context");if(!ve(he)){R=await ke({activeCtx:R,localCtx:he,options:Ie,propagate:false})}}const Fe=Object.keys(Ae).sort();for(const ve of Fe){const _e=Ae[ve];if(ve==="@id"){let pe=Te(_e).map((pe=>Ne.compactIri({activeCtx:R,iri:pe,relativeTo:{vocab:false},base:Ie.base})));if(pe.length===1){pe=pe[0]}const Ae=Ne.compactIri({activeCtx:R,iri:"@id",relativeTo:{vocab:true}});Qe[Ae]=pe;continue}if(ve==="@type"){let pe=Te(_e).map((R=>Ne.compactIri({activeCtx:xe,iri:R,relativeTo:{vocab:true}})));if(pe.length===1){pe=pe[0]}const Ae=Ne.compactIri({activeCtx:R,iri:"@type",relativeTo:{vocab:true}});const he=Se(R,Ae,"@container")||[];const ye=he.includes("@set")&&Oe(R,1.1);const me=ye||ge(pe)&&_e.length===0;Pe(Qe,Ae,pe,{propertyIsArray:me});continue}if(ve==="@reverse"){const pe=await Ne.compact({activeCtx:R,activeProperty:"@reverse",element:_e,options:Ie});for(const Ae in pe){if(R.mappings.has(Ae)&&R.mappings.get(Ae).reverse){const he=pe[Ae];const ge=Se(R,Ae,"@container")||[];const ye=ge.includes("@set")||!Ie.compactArrays;Pe(Qe,Ae,he,{propertyIsArray:ye});delete pe[Ae]}}if(Object.keys(pe).length>0){const Ae=Ne.compactIri({activeCtx:R,iri:ve,relativeTo:{vocab:true}});Pe(Qe,Ae,pe)}continue}if(ve==="@preserve"){const Ae=await Ne.compact({activeCtx:R,activeProperty:pe,element:_e,options:Ie});if(!(ge(Ae)&&Ae.length===0)){Pe(Qe,ve,Ae)}continue}if(ve==="@index"){const Ae=Se(R,pe,"@container")||[];if(Ae.includes("@index")){continue}const he=Ne.compactIri({activeCtx:R,iri:ve,relativeTo:{vocab:true}});Pe(Qe,he,_e);continue}if(ve!=="@graph"&&ve!=="@list"&&ve!=="@included"&&Be(ve)){const pe=Ne.compactIri({activeCtx:R,iri:ve,relativeTo:{vocab:true}});Pe(Qe,pe,_e);continue}if(!ge(_e)){throw new he("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError")}if(_e.length===0){const pe=Ne.compactIri({activeCtx:R,iri:ve,value:_e,relativeTo:{vocab:true},reverse:Re});const Ae=R.mappings.has(pe)?R.mappings.get(pe)["@nest"]:null;let he=Qe;if(Ae){_checkNestProperty(R,Ae,Ie);if(!ye(Qe[Ae])){Qe[Ae]={}}he=Qe[Ae]}Pe(he,pe,_e,{propertyIsArray:true})}for(const pe of _e){const Ae=Ne.compactIri({activeCtx:R,iri:ve,value:pe,relativeTo:{vocab:true},reverse:Re});const he=R.mappings.has(Ae)?R.mappings.get(Ae)["@nest"]:null;let _e=Qe;if(he){_checkNestProperty(R,he,Ie);if(!ye(Qe[he])){Qe[he]={}}_e=Qe[he]}const Be=Se(R,Ae,"@container")||[];const ke=we(pe);const Oe=be(pe);let xe;if(Oe){xe=pe["@list"]}else if(ke){xe=pe["@graph"]}let De=await Ne.compact({activeCtx:R,activeProperty:Ae,element:Oe||ke?xe:pe,options:Ie});if(Oe){if(!ge(De)){De=[De]}if(!Be.includes("@list")){De={[Ne.compactIri({activeCtx:R,iri:"@list",relativeTo:{vocab:true}})]:De};if("@index"in pe){De[Ne.compactIri({activeCtx:R,iri:"@index",relativeTo:{vocab:true}})]=pe["@index"]}}else{Pe(_e,Ae,De,{valueIsArray:true,allowDuplicate:true});continue}}if(ke){if(Be.includes("@graph")&&(Be.includes("@id")||Be.includes("@index")&&Ce(pe))){let he;if(_e.hasOwnProperty(Ae)){he=_e[Ae]}else{_e[Ae]=he={}}const ge=(Be.includes("@id")?pe["@id"]:pe["@index"])||Ne.compactIri({activeCtx:R,iri:"@none",relativeTo:{vocab:true}});Pe(he,ge,De,{propertyIsArray:!Ie.compactArrays||Be.includes("@set")})}else if(Be.includes("@graph")&&Ce(pe)){if(ge(De)&&De.length>1){De={"@included":De}}Pe(_e,Ae,De,{propertyIsArray:!Ie.compactArrays||Be.includes("@set")})}else{if(ge(De)&&De.length===1&&Ie.compactArrays){De=De[0]}De={[Ne.compactIri({activeCtx:R,iri:"@graph",relativeTo:{vocab:true}})]:De};if("@id"in pe){De[Ne.compactIri({activeCtx:R,iri:"@id",relativeTo:{vocab:true}})]=pe["@id"]}if("@index"in pe){De[Ne.compactIri({activeCtx:R,iri:"@index",relativeTo:{vocab:true}})]=pe["@index"]}Pe(_e,Ae,De,{propertyIsArray:!Ie.compactArrays||Be.includes("@set")})}}else if(Be.includes("@language")||Be.includes("@index")||Be.includes("@id")||Be.includes("@type")){let he;if(_e.hasOwnProperty(Ae)){he=_e[Ae]}else{_e[Ae]=he={}}let ge;if(Be.includes("@language")){if(Ee(De)){De=De["@value"]}ge=pe["@language"]}else if(Be.includes("@index")){const he=Se(R,Ae,"@index")||"@index";const ye=Ne.compactIri({activeCtx:R,iri:he,relativeTo:{vocab:true}});if(he==="@index"){ge=pe["@index"];delete De[ye]}else{let R;[ge,...R]=Te(De[he]||[]);if(!me(ge)){ge=null}else{switch(R.length){case 0:delete De[he];break;case 1:De[he]=R[0];break;default:De[he]=R;break}}}}else if(Be.includes("@id")){const pe=Ne.compactIri({activeCtx:R,iri:"@id",relativeTo:{vocab:true}});ge=De[pe];delete De[pe]}else if(Be.includes("@type")){const he=Ne.compactIri({activeCtx:R,iri:"@type",relativeTo:{vocab:true}});let ye;[ge,...ye]=Te(De[he]||[]);switch(ye.length){case 0:delete De[he];break;case 1:De[he]=ye[0];break;default:De[he]=ye;break}if(Object.keys(De).length===1&&"@id"in pe){De=await Ne.compact({activeCtx:R,activeProperty:Ae,element:{"@id":pe["@id"]},options:Ie})}}if(!ge){ge=Ne.compactIri({activeCtx:R,iri:"@none",relativeTo:{vocab:true}})}Pe(he,ge,De,{propertyIsArray:Be.includes("@set")})}else{const R=!Ie.compactArrays||Be.includes("@set")||Be.includes("@list")||ge(De)&&De.length===0||ve==="@list"||ve==="@graph";Pe(_e,Ae,De,{propertyIsArray:R})}}}return Qe}return Ae};Ne.compactIri=({activeCtx:R,iri:pe,value:Ae=null,relativeTo:ge={vocab:false},reverse:me=false,base:ve=null})=>{if(pe===null){return pe}if(R.isPropertyTermScoped&&R.previousContext){R=R.previousContext}const Ce=R.getInverse();if(Be(pe)&&pe in Ce&&"@none"in Ce[pe]&&"@type"in Ce[pe]["@none"]&&"@none"in Ce[pe]["@none"]["@type"]){return Ce[pe]["@none"]["@type"]["@none"]}if(ge.vocab&&pe in Ce){const he=R["@language"]||"@none";const ge=[];if(ye(Ae)&&"@index"in Ae&&!("@graph"in Ae)){ge.push("@index","@index@set")}if(ye(Ae)&&"@preserve"in Ae){Ae=Ae["@preserve"][0]}if(we(Ae)){if("@index"in Ae){ge.push("@graph@index","@graph@index@set","@index","@index@set")}if("@id"in Ae){ge.push("@graph@id","@graph@id@set")}ge.push("@graph","@graph@set","@set");if(!("@index"in Ae)){ge.push("@graph@index","@graph@index@set","@index","@index@set")}if(!("@id"in Ae)){ge.push("@graph@id","@graph@id@set")}}else if(ye(Ae)&&!Ee(Ae)){ge.push("@id","@id@set","@type","@set@type")}let ve="@language";let Ce="@null";if(me){ve="@type";Ce="@reverse";ge.push("@set")}else if(be(Ae)){if(!("@index"in Ae)){ge.push("@list")}const R=Ae["@list"];if(R.length===0){ve="@any";Ce="@none"}else{let pe=R.length===0?he:null;let Ae=null;for(let he=0;he=0;--he){const ge=Ie[he];const ye=ge.terms;for(const he of ye){const ye=he+":"+pe.substr(ge.iri.length);const me=R.mappings.get(he)._prefix&&(!R.mappings.has(ye)||Ae===null&&R.mappings.get(ye)["@id"]===pe);if(me&&(_e===null||De(ye,_e)<0)){_e=ye}}}if(_e!==null){return _e}for(const[Ae,ge]of R.mappings){if(ge&&ge._prefix&&pe.startsWith(Ae+":")){throw new he(`Absolute IRI "${pe}" confused with prefix "${Ae}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:R})}}if(!ge.vocab){if("@base"in R){if(!R["@base"]){return pe}else{const Ae=Re(Qe(ve,R["@base"]),pe);return xe.test(Ae)?`./${Ae}`:Ae}}else{return Re(ve,pe)}}return pe};Ne.compactValue=({activeCtx:R,activeProperty:pe,value:Ae,options:he})=>{if(Ee(Ae)){const he=Se(R,pe,"@type");const ge=Se(R,pe,"@language");const ye=Se(R,pe,"@direction");const ve=Se(R,pe,"@container")||[];const be="@index"in Ae&&!ve.includes("@index");if(!be&&he!=="@none"){if(Ae["@type"]===he){return Ae["@value"]}if("@language"in Ae&&Ae["@language"]===ge&&"@direction"in Ae&&Ae["@direction"]===ye){return Ae["@value"]}if("@language"in Ae&&Ae["@language"]===ge){return Ae["@value"]}if("@direction"in Ae&&Ae["@direction"]===ye){return Ae["@value"]}}const Ee=Object.keys(Ae).length;const we=Ee===1||Ee===2&&"@index"in Ae&&!be;const Ce="@language"in R;const _e=me(Ae["@value"]);const Ie=R.mappings.has(pe)&&R.mappings.get(pe)["@language"]===null;if(we&&he!=="@none"&&(!Ce||!_e||Ie)){return Ae["@value"]}const Be={};if(be){Be[Ne.compactIri({activeCtx:R,iri:"@index",relativeTo:{vocab:true}})]=Ae["@index"]}if("@type"in Ae){Be[Ne.compactIri({activeCtx:R,iri:"@type",relativeTo:{vocab:true}})]=Ne.compactIri({activeCtx:R,iri:Ae["@type"],relativeTo:{vocab:true}})}else if("@language"in Ae){Be[Ne.compactIri({activeCtx:R,iri:"@language",relativeTo:{vocab:true}})]=Ae["@language"]}if("@direction"in Ae){Be[Ne.compactIri({activeCtx:R,iri:"@direction",relativeTo:{vocab:true}})]=Ae["@direction"]}Be[Ne.compactIri({activeCtx:R,iri:"@value",relativeTo:{vocab:true}})]=Ae["@value"];return Be}const ge=Ie(R,pe,{vocab:true},he);const ye=Se(R,pe,"@type");const ve=Ne.compactIri({activeCtx:R,iri:Ae["@id"],relativeTo:{vocab:ye==="@vocab"},base:he.base});if(ye==="@id"||ye==="@vocab"||ge==="@graph"){return ve}return{[Ne.compactIri({activeCtx:R,iri:"@id",relativeTo:{vocab:true}})]:ve}};function _selectTerm(R,pe,Ae,he,ge,me){if(me===null){me="@null"}const ve=[];if((me==="@id"||me==="@reverse")&&ye(Ae)&&"@id"in Ae){if(me==="@reverse"){ve.push("@reverse")}const pe=Ne.compactIri({activeCtx:R,iri:Ae["@id"],relativeTo:{vocab:true}});if(R.mappings.has(pe)&&R.mappings.get(pe)&&R.mappings.get(pe)["@id"]===Ae["@id"]){ve.push.apply(ve,["@vocab","@id"])}else{ve.push.apply(ve,["@id","@vocab"])}}else{ve.push(me);const R=ve.find((R=>R.includes("_")));if(R){ve.push(R.replace(/^[^_]+_/,"_"))}}ve.push("@none");const be=R.inverse[pe];for(const R of he){if(!(R in be)){continue}const pe=be[R][ge];for(const R of ve){if(!(R in pe)){continue}return pe[R]}}return null}function _checkNestProperty(R,pe,Ae){if(Ie(R,pe,{vocab:true},Ae)!=="@nest"){throw new he("JSON-LD compact error; nested property must have an @nest value "+"resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}}},18441:R=>{"use strict";const pe="http://www.w3.org/1999/02/22-rdf-syntax-ns#";const Ae="http://www.w3.org/2001/XMLSchema#";R.exports={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",LINK_HEADER_CONTEXT:"http://www.w3.org/ns/json-ld#context",RDF:pe,RDF_LIST:pe+"List",RDF_FIRST:pe+"first",RDF_REST:pe+"rest",RDF_NIL:pe+"nil",RDF_TYPE:pe+"type",RDF_PLAIN_LITERAL:pe+"PlainLiteral",RDF_XML_LITERAL:pe+"XMLLiteral",RDF_JSON_LITERAL:pe+"JSON",RDF_OBJECT:pe+"object",RDF_LANGSTRING:pe+"langString",XSD:Ae,XSD_BOOLEAN:Ae+"boolean",XSD_DOUBLE:Ae+"double",XSD_INTEGER:Ae+"integer",XSD_STRING:Ae+"string"}},41866:(R,pe,Ae)=>{"use strict";const he=Ae(69450);const ge=Ae(11625);const{isArray:ye,isObject:me,isString:ve,isUndefined:be}=Ae(86891);const{isAbsolute:Ee,isRelative:we,prependBase:Ce}=Ae(40651);const{handleEvent:_e}=Ae(75836);const{REGEX_BCP47:Ie,REGEX_KEYWORD:Se,asArray:Be,compareShortestLeast:ke}=Ae(69450);const Oe=new Map;const Re=1e4;const Qe={};R.exports=Qe;Qe.process=async({activeCtx:R,localCtx:pe,options:Ae,propagate:he=true,overrideProtected:be=false,cycles:Se=new Set})=>{if(me(pe)&&"@context"in pe&&ye(pe["@context"])){pe=pe["@context"]}const ke=Be(pe);if(ke.length===0){return R}const Oe=[];const Re=[({event:R,next:pe})=>{Oe.push(R);pe()}];if(Ae.eventHandler){Re.push(Ae.eventHandler)}const xe=Ae;Ae={...Ae,eventHandler:Re};const Pe=await Ae.contextResolver.resolve({activeCtx:R,context:pe,documentLoader:Ae.documentLoader,base:Ae.base});if(me(Pe[0].document)&&typeof Pe[0].document["@propagate"]==="boolean"){he=Pe[0].document["@propagate"]}let Te=R;if(!he&&!Te.previousContext){Te=Te.clone();Te.previousContext=R}for(const he of Pe){let{document:ye}=he;R=Te;if(ye===null){if(!be&&Object.keys(R.protected).length!==0){throw new ge("Tried to nullify a context with protected terms outside of "+"a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"})}Te=R=Qe.getInitialContext(Ae).clone();continue}const Be=he.getProcessed(R);if(Be){if(xe.eventHandler){for(const R of Be.events){_e({event:R,options:xe})}}Te=R=Be.context;continue}if(me(ye)&&"@context"in ye){ye=ye["@context"]}if(!me(ye)){throw new ge("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:ye})}Te=Te.clone();const ke=new Map;if("@version"in ye){if(ye["@version"]!==1.1){throw new ge("Unsupported JSON-LD version: "+ye["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:ye})}if(R.processingMode&&R.processingMode==="json-ld-1.0"){throw new ge("@version: "+ye["@version"]+" not compatible with "+R.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:ye})}Te.processingMode="json-ld-1.1";Te["@version"]=ye["@version"];ke.set("@version",true)}Te.processingMode=Te.processingMode||R.processingMode;if("@base"in ye){let R=ye["@base"];if(R===null||Ee(R)){}else if(we(R)){R=Ce(Te["@base"],R)}else{throw new ge('Invalid JSON-LD syntax; the value of "@base" in a '+"@context must be an absolute IRI, a relative IRI, or null.","jsonld.SyntaxError",{code:"invalid base IRI",context:ye})}Te["@base"]=R;ke.set("@base",true)}if("@vocab"in ye){const R=ye["@vocab"];if(R===null){delete Te["@vocab"]}else if(!ve(R)){throw new ge('Invalid JSON-LD syntax; the value of "@vocab" in a '+"@context must be a string or null.","jsonld.SyntaxError",{code:"invalid vocab mapping",context:ye})}else if(!Ee(R)&&Qe.processingMode(Te,1)){throw new ge('Invalid JSON-LD syntax; the value of "@vocab" in a '+"@context must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid vocab mapping",context:ye})}else{const pe=_expandIri(Te,R,{vocab:true,base:true},undefined,undefined,Ae);if(!Ee(pe)){if(Ae.eventHandler){_e({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:pe}},options:Ae})}}Te["@vocab"]=pe}ke.set("@vocab",true)}if("@language"in ye){const R=ye["@language"];if(R===null){delete Te["@language"]}else if(!ve(R)){throw new ge('Invalid JSON-LD syntax; the value of "@language" in a '+"@context must be a string or null.","jsonld.SyntaxError",{code:"invalid default language",context:ye})}else{if(!R.match(Ie)){if(Ae.eventHandler){_e({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:R}},options:Ae})}}Te["@language"]=R.toLowerCase()}ke.set("@language",true)}if("@direction"in ye){const pe=ye["@direction"];if(R.processingMode==="json-ld-1.0"){throw new ge("Invalid JSON-LD syntax; @direction not compatible with "+R.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:ye})}if(pe===null){delete Te["@direction"]}else if(pe!=="ltr"&&pe!=="rtl"){throw new ge('Invalid JSON-LD syntax; the value of "@direction" in a '+'@context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:ye})}else{Te["@direction"]=pe}ke.set("@direction",true)}if("@propagate"in ye){const Ae=ye["@propagate"];if(R.processingMode==="json-ld-1.0"){throw new ge("Invalid JSON-LD syntax; @propagate not compatible with "+R.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:ye})}if(typeof Ae!=="boolean"){throw new ge("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:pe})}ke.set("@propagate",true)}if("@import"in ye){const he=ye["@import"];if(R.processingMode==="json-ld-1.0"){throw new ge("Invalid JSON-LD syntax; @import not compatible with "+R.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:ye})}if(!ve(he)){throw new ge("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:pe})}const me=await Ae.contextResolver.resolve({activeCtx:R,context:he,documentLoader:Ae.documentLoader,base:Ae.base});if(me.length!==1){throw new ge("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:pe})}const be=me[0].getProcessed(R);if(be){ye=be}else{const Ae=me[0].document;if("@import"in Ae){throw new ge("Invalid JSON-LD syntax: "+"imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:pe})}for(const R in Ae){if(!ye.hasOwnProperty(R)){ye[R]=Ae[R]}}me[0].setProcessed(R,ye)}ke.set("@import",true)}ke.set("@protected",ye["@protected"]||false);for(const R in ye){Qe.createTermDefinition({activeCtx:Te,localCtx:ye,term:R,defined:ke,options:Ae,overrideProtected:be});if(me(ye[R])&&"@context"in ye[R]){const pe=ye[R]["@context"];let he=true;if(ve(pe)){const R=Ce(Ae.base,pe);if(Se.has(R)){he=false}else{Se.add(R)}}if(he){try{await Qe.process({activeCtx:Te.clone(),localCtx:ye[R]["@context"],overrideProtected:true,options:Ae,cycles:Se})}catch(pe){throw new ge("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:ye[R]["@context"],term:R})}}}}he.setProcessed(R,{context:Te,events:Oe})}return Te};Qe.createTermDefinition=({activeCtx:R,localCtx:pe,term:Ae,defined:he,options:be,overrideProtected:we=false})=>{if(he.has(Ae)){if(he.get(Ae)){return}throw new ge("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:pe,term:Ae})}he.set(Ae,false);let Ce;if(pe.hasOwnProperty(Ae)){Ce=pe[Ae]}if(Ae==="@type"&&me(Ce)&&(Ce["@container"]||"@set")==="@set"&&Qe.processingMode(R,1.1)){const R=["@container","@id","@protected"];const he=Object.keys(Ce);if(he.length===0||he.some((pe=>!R.includes(pe)))){throw new ge("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:pe,term:Ae})}}else if(Qe.isKeyword(Ae)){throw new ge("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:pe,term:Ae})}else if(Ae.match(Se)){if(be.eventHandler){_e({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are '+"reserved for future use and dropped.",details:{term:Ae}},options:be})}return}else if(Ae===""){throw new ge("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:pe})}const Ie=R.mappings.get(Ae);if(R.mappings.has(Ae)){R.mappings.delete(Ae)}let Be=false;if(ve(Ce)||Ce===null){Be=true;Ce={"@id":Ce}}if(!me(Ce)){throw new ge("Invalid JSON-LD syntax; @context term values must be "+"strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:pe})}const ke={};R.mappings.set(Ae,ke);ke.reverse=false;const Oe=["@container","@id","@language","@reverse","@type"];if(Qe.processingMode(R,1.1)){Oe.push("@context","@direction","@index","@nest","@prefix","@protected")}for(const R in Ce){if(!Oe.includes(R)){throw new ge("Invalid JSON-LD syntax; a term definition must not contain "+R,"jsonld.SyntaxError",{code:"invalid term definition",context:pe})}}const Re=Ae.indexOf(":");ke._termHasColon=Re>0;if("@reverse"in Ce){if("@id"in Ce){throw new ge("Invalid JSON-LD syntax; a @reverse term definition must not "+"contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:pe})}if("@nest"in Ce){throw new ge("Invalid JSON-LD syntax; a @reverse term definition must not "+"contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:pe})}const ye=Ce["@reverse"];if(!ve(ye)){throw new ge("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe})}if(ye.match(Se)){if(be.eventHandler){_e({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are '+"reserved for future use and dropped.",details:{reverse:ye}},options:be})}if(Ie){R.mappings.set(Ae,Ie)}else{R.mappings.delete(Ae)}return}const me=_expandIri(R,ye,{vocab:true,base:false},pe,he,be);if(!Ee(me)){throw new ge("Invalid JSON-LD syntax; a @context @reverse value must be an "+"absolute IRI or a blank node identifier.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe})}ke["@id"]=me;ke.reverse=true}else if("@id"in Ce){let ye=Ce["@id"];if(ye&&!ve(ye)){throw new ge("Invalid JSON-LD syntax; a @context @id value must be an array "+"of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe})}if(ye===null){ke["@id"]=null}else if(!Qe.isKeyword(ye)&&ye.match(Se)){if(be.eventHandler){_e({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are '+"reserved for future use and dropped.",details:{id:ye}},options:be})}if(Ie){R.mappings.set(Ae,Ie)}else{R.mappings.delete(Ae)}return}else if(ye!==Ae){ye=_expandIri(R,ye,{vocab:true,base:false},pe,he,be);if(!Ee(ye)&&!Qe.isKeyword(ye)){throw new ge("Invalid JSON-LD syntax; a @context @id value must be an "+"absolute IRI, a blank node identifier, or a keyword.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe})}if(Ae.match(/(?::[^:])|\//)){const me=new Map(he).set(Ae,true);const ve=_expandIri(R,Ae,{vocab:true,base:false},pe,me,be);if(ve!==ye){throw new ge("Invalid JSON-LD syntax; term in form of IRI must "+"expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe})}}ke["@id"]=ye;ke._prefix=Be&&!ke._termHasColon&&ye.match(/[:\/\?#\[\]@]$/)!==null}}if(!("@id"in ke)){if(ke._termHasColon){const ge=Ae.substr(0,Re);if(pe.hasOwnProperty(ge)){Qe.createTermDefinition({activeCtx:R,localCtx:pe,term:ge,defined:he,options:be})}if(R.mappings.has(ge)){const pe=Ae.substr(Re+1);ke["@id"]=R.mappings.get(ge)["@id"]+pe}else{ke["@id"]=Ae}}else if(Ae==="@type"){ke["@id"]=Ae}else{if(!("@vocab"in R)){throw new ge("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:pe,term:Ae})}ke["@id"]=R["@vocab"]+Ae}}if(Ce["@protected"]===true||he.get("@protected")===true&&Ce["@protected"]!==false){R.protected[Ae]=true;ke.protected=true}he.set(Ae,true);if("@type"in Ce){let Ae=Ce["@type"];if(!ve(Ae)){throw new ge("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:pe})}if(Ae==="@json"||Ae==="@none"){if(Qe.processingMode(R,1)){throw new ge("Invalid JSON-LD syntax; an @context @type value must not be "+`"${Ae}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:pe})}}else if(Ae!=="@id"&&Ae!=="@vocab"){Ae=_expandIri(R,Ae,{vocab:true,base:false},pe,he,be);if(!Ee(Ae)){throw new ge("Invalid JSON-LD syntax; an @context @type value must be an "+"absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:pe})}if(Ae.indexOf("_:")===0){throw new ge("Invalid JSON-LD syntax; an @context @type value must be an IRI, "+"not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:pe})}}ke["@type"]=Ae}if("@container"in Ce){const Ae=ve(Ce["@container"])?[Ce["@container"]]:Ce["@container"]||[];const he=["@list","@set","@index","@language"];let me=true;const be=Ae.includes("@set");if(Qe.processingMode(R,1.1)){he.push("@graph","@id","@type");if(Ae.includes("@list")){if(Ae.length!==1){throw new ge("Invalid JSON-LD syntax; @context @container with @list must "+"have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:pe})}}else if(Ae.includes("@graph")){if(Ae.some((R=>R!=="@graph"&&R!=="@id"&&R!=="@index"&&R!=="@set"))){throw new ge("Invalid JSON-LD syntax; @context @container with @graph must "+"have no other values other than @id, @index, and @set","jsonld.SyntaxError",{code:"invalid container mapping",context:pe})}}else{me&=Ae.length<=(be?2:1)}if(Ae.includes("@type")){ke["@type"]=ke["@type"]||"@id";if(!["@id","@vocab"].includes(ke["@type"])){throw new ge("Invalid JSON-LD syntax; container: @type requires @type to be "+"@id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:pe})}}}else{me&=!ye(Ce["@container"]);me&=Ae.length<=1}me&=Ae.every((R=>he.includes(R)));me&=!(be&&Ae.includes("@list"));if(!me){throw new ge("Invalid JSON-LD syntax; @context @container value must be "+"one of the following: "+he.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:pe})}if(ke.reverse&&!Ae.every((R=>["@index","@set"].includes(R)))){throw new ge("Invalid JSON-LD syntax; @context @container value for a @reverse "+"type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:pe})}ke["@container"]=Ae}if("@index"in Ce){if(!("@container"in Ce)||!ke["@container"].includes("@index")){throw new ge("Invalid JSON-LD syntax; @index without @index in @container: "+`"${Ce["@index"]}" on term "${Ae}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:pe})}if(!ve(Ce["@index"])||Ce["@index"].indexOf("@")===0){throw new ge("Invalid JSON-LD syntax; @index must expand to an IRI: "+`"${Ce["@index"]}" on term "${Ae}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:pe})}ke["@index"]=Ce["@index"]}if("@context"in Ce){ke["@context"]=Ce["@context"]}if("@language"in Ce&&!("@type"in Ce)){let R=Ce["@language"];if(R!==null&&!ve(R)){throw new ge("Invalid JSON-LD syntax; @context @language value must be "+"a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:pe})}if(R!==null){R=R.toLowerCase()}ke["@language"]=R}if("@prefix"in Ce){if(Ae.match(/:|\//)){throw new ge("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:pe})}if(Qe.isKeyword(ke["@id"])){throw new ge("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:pe})}if(typeof Ce["@prefix"]==="boolean"){ke._prefix=Ce["@prefix"]===true}else{throw new ge("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:pe})}}if("@direction"in Ce){const R=Ce["@direction"];if(R!==null&&R!=="ltr"&&R!=="rtl"){throw new ge("Invalid JSON-LD syntax; @direction value must be "+'null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:pe})}ke["@direction"]=R}if("@nest"in Ce){const R=Ce["@nest"];if(!ve(R)||R!=="@nest"&&R.indexOf("@")===0){throw new ge("Invalid JSON-LD syntax; @context @nest value must be "+"a string which is not a keyword other than @nest.","jsonld.SyntaxError",{code:"invalid @nest value",context:pe})}ke["@nest"]=R} // disallow aliasing @context and @preserve -const xe=ke["@id"];if(xe==="@context"||xe==="@preserve"){throw new ge("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:pe})}if(Ie&&Ie.protected&&!Ce){R.protected[Ae]=true;ke.protected=true;if(!_deepCompare(Ie,ke)){throw new ge("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:pe,term:Ae})}}};Qe.expandIri=(R,pe,Ae,he)=>_expandIri(R,pe,Ae,undefined,undefined,he);function _expandIri(R,pe,Ae,he,ge,ye){if(pe===null||!ve(pe)||Qe.isKeyword(pe)){return pe}if(pe.match(Se)){return null}if(he&&he.hasOwnProperty(pe)&&ge.get(pe)!==true){Qe.createTermDefinition({activeCtx:R,localCtx:he,term:pe,defined:ge,options:ye})}Ae=Ae||{};if(Ae.vocab){const Ae=R.mappings.get(pe);if(Ae===null){return null}if(me(Ae)&&"@id"in Ae){return Ae["@id"]}}const be=pe.indexOf(":");if(be>0){const Ae=pe.substr(0,be);const me=pe.substr(be+1);if(Ae==="_"||me.indexOf("//")===0){return pe}if(he&&he.hasOwnProperty(Ae)){Qe.createTermDefinition({activeCtx:R,localCtx:he,term:Ae,defined:ge,options:ye})}const ve=R.mappings.get(Ae);if(ve&&ve._prefix){return ve["@id"]+me}if(Ee(pe)){return pe}}if(Ae.vocab&&"@vocab"in R){const Ae=R["@vocab"]+pe;pe=Ae}else if(Ae.base){let Ae;let he;if("@base"in R){if(R["@base"]){he=we(ye.base,R["@base"]);Ae=we(he,pe)}else{he=R["@base"];Ae=pe}}else{he=ye.base;Ae=we(ye.base,pe)}pe=Ae}return pe}Qe.getInitialContext=R=>{const pe=JSON.stringify({processingMode:R.processingMode});const Ae=Oe.get(pe);if(Ae){return Ae}const ge={processingMode:R.processingMode,mappings:new Map,inverse:null,getInverse:_createInverseContext,clone:_cloneActiveContext,revertToPreviousContext:_revertToPreviousContext,protected:{}};if(Oe.size===Re){Oe.clear()}Oe.set(pe,ge);return ge;function _createInverseContext(){const R=this;if(R.inverse){return R.inverse}const pe=R.inverse={};const Ae=R.fastCurieMap={};const he={};const ge=(R["@language"]||"@none").toLowerCase();const ye=R["@direction"];const me=R.mappings;const ve=[...me.keys()].sort(ke);for(const R of ve){const ve=me.get(R);if(ve===null){continue}let be=ve["@container"]||"@none";be=[].concat(be).sort().join("");if(ve["@id"]===null){continue}const Ee=Be(ve["@id"]);for(const me of Ee){let Ee=pe[me];const Ce=Qe.isKeyword(me);if(!Ee){pe[me]=Ee={};if(!Ce&&!ve._termHasColon){he[me]=[R];const pe={iri:me,terms:he[me]};if(me[0]in Ae){Ae[me[0]].push(pe)}else{Ae[me[0]]=[pe]}}}else if(!Ce&&!ve._termHasColon){he[me].push(R)}if(!Ee[be]){Ee[be]={"@language":{},"@type":{},"@any":{}}}Ee=Ee[be];_addPreferredTerm(R,Ee["@any"],"@none");if(ve.reverse){_addPreferredTerm(R,Ee["@type"],"@reverse")}else if(ve["@type"]==="@none"){_addPreferredTerm(R,Ee["@any"],"@none");_addPreferredTerm(R,Ee["@language"],"@none");_addPreferredTerm(R,Ee["@type"],"@none")}else if("@type"in ve){_addPreferredTerm(R,Ee["@type"],ve["@type"])}else if("@language"in ve&&"@direction"in ve){const pe=ve["@language"];const Ae=ve["@direction"];if(pe&&Ae){_addPreferredTerm(R,Ee["@language"],`${pe}_${Ae}`.toLowerCase())}else if(pe){_addPreferredTerm(R,Ee["@language"],pe.toLowerCase())}else if(Ae){_addPreferredTerm(R,Ee["@language"],`_${Ae}`)}else{_addPreferredTerm(R,Ee["@language"],"@null")}}else if("@language"in ve){_addPreferredTerm(R,Ee["@language"],(ve["@language"]||"@null").toLowerCase())}else if("@direction"in ve){if(ve["@direction"]){_addPreferredTerm(R,Ee["@language"],`_${ve["@direction"]}`)}else{_addPreferredTerm(R,Ee["@language"],"@none")}}else if(ye){_addPreferredTerm(R,Ee["@language"],`_${ye}`);_addPreferredTerm(R,Ee["@language"],"@none");_addPreferredTerm(R,Ee["@type"],"@none")}else{_addPreferredTerm(R,Ee["@language"],ge);_addPreferredTerm(R,Ee["@language"],"@none");_addPreferredTerm(R,Ee["@type"],"@none")}}}for(const R in Ae){_buildIriMap(Ae,R,1)}return pe}function _buildIriMap(R,pe,Ae){const he=R[pe];const ge=R[pe]={};let ye;let me;for(const R of he){ye=R.iri;if(Ae>=ye.length){me=""}else{me=ye[Ae]}if(me in ge){ge[me].push(R)}else{ge[me]=[R]}}for(const R in ge){if(R===""){continue}_buildIriMap(ge,R,Ae+1)}}function _addPreferredTerm(R,pe,Ae){if(!pe.hasOwnProperty(Ae)){pe[Ae]=R}}function _cloneActiveContext(){const R={};R.mappings=he.clone(this.mappings);R.clone=this.clone;R.inverse=null;R.getInverse=this.getInverse;R.protected=he.clone(this.protected);if(this.previousContext){R.previousContext=this.previousContext.clone()}R.revertToPreviousContext=this.revertToPreviousContext;if("@base"in this){R["@base"]=this["@base"]}if("@language"in this){R["@language"]=this["@language"]}if("@vocab"in this){R["@vocab"]=this["@vocab"]}return R}function _revertToPreviousContext(){if(!this.previousContext){return this}return this.previousContext.clone()}};Qe.getContextValue=(R,pe,Ae)=>{if(pe===null){if(Ae==="@context"){return undefined}return null}if(R.mappings.has(pe)){const he=R.mappings.get(pe);if(be(Ae)){return he}if(he.hasOwnProperty(Ae)){return he[Ae]}}if(Ae==="@language"&&Ae in R){return R[Ae]}if(Ae==="@direction"&&Ae in R){return R[Ae]}if(Ae==="@context"){return undefined}return null};Qe.processingMode=(R,pe)=>{if(pe.toString()>="1.1"){return!R.processingMode||R.processingMode>="json-ld-"+pe.toString()}else{return R.processingMode==="json-ld-1.0"}};Qe.isKeyword=R=>{if(!ve(R)||R[0]!=="@"){return false}switch(R){case"@base":case"@container":case"@context":case"@default":case"@direction":case"@embed":case"@explicit":case"@graph":case"@id":case"@included":case"@index":case"@json":case"@language":case"@list":case"@nest":case"@none":case"@omitDefault":case"@prefix":case"@preserve":case"@protected":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@version":case"@vocab":return true}return false};function _deepCompare(R,pe){if(!(R&&typeof R==="object")||!(pe&&typeof pe==="object")){return R===pe}const Ae=Array.isArray(R);if(Ae!==Array.isArray(pe)){return false}if(Ae){if(R.length!==pe.length){return false}for(let Ae=0;Ae{"use strict";const he=Ae(95687);const{parseLinkHeader:ge,buildHeaders:ye}=Ae(69450);const{LINK_HEADER_CONTEXT:me}=Ae(18441);const ve=Ae(11625);const be=Ae(99241);const{prependBase:Ee}=Ae(40651);const{httpClient:Ce}=Ae(10698);R.exports=({secure:R,strictSSL:pe=true,maxRedirects:he=-1,headers:Ce={},httpAgent:we,httpsAgent:_e}={strictSSL:true,maxRedirects:-1,headers:{}})=>{Ce=ye(Ce);if(!("user-agent"in Ce)){Ce=Object.assign({},Ce,{"user-agent":"jsonld.js"})}const Ie=Ae(13685);const Se=new be;return Se.wrapLoader((function(R){return loadDocument(R,[])}));async function loadDocument(Ae,ye){const be=Ae.startsWith("http:");const Se=Ae.startsWith("https:");if(!be&&!Se){throw new ve('URL could not be dereferenced; only "http" and "https" URLs are '+"supported.","jsonld.InvalidUrl",{code:"loading document failed",url:Ae})}if(R&&!Se){throw new ve("URL could not be dereferenced; secure mode is enabled and "+'the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:Ae})}let Be=null;if(Be!==null){return Be}let ke=null;const{res:Oe,body:Re}=await _fetch({url:Ae,headers:Ce,strictSSL:pe,httpAgent:we,httpsAgent:_e});Be={contextUrl:null,documentUrl:Ae,document:Re||null};const Qe=Ie.STATUS_CODES[Oe.status];if(Oe.status>=400){throw new ve(`URL "${Ae}" could not be dereferenced: ${Qe}`,"jsonld.InvalidUrl",{code:"loading document failed",url:Ae,httpStatusCode:Oe.status})}const xe=Oe.headers.get("link");let Pe=Oe.headers.get("location");const Te=Oe.headers.get("content-type");if(xe&&Te!=="application/ld+json"){const R=ge(xe);const pe=R[me];if(Array.isArray(pe)){throw new ve("URL could not be dereferenced, it has more than one associated "+"HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:Ae})}if(pe){Be.contextUrl=pe.target}ke=R.alternate;if(ke&&ke.type=="application/ld+json"&&!(Te||"").match(/^application\/(\w*\+)?json$/)){Pe=Ee(Ae,ke.target)}}if((ke||Oe.status>=300&&Oe.status<400)&&Pe){if(ye.length===he){throw new ve("URL could not be dereferenced; there were too many redirects.","jsonld.TooManyRedirects",{code:"loading document failed",url:Ae,httpStatusCode:Oe.status,redirects:ye})}if(ye.indexOf(Ae)!==-1){throw new ve("URL could not be dereferenced; infinite redirection was detected.","jsonld.InfiniteRedirectDetected",{code:"recursive context inclusion",url:Ae,httpStatusCode:Oe.status,redirects:ye})}ye.push(Ae);const R=new URL(Pe,Ae).href;return loadDocument(R,ye)}ye.push(Ae);return Be}};async function _fetch({url:R,headers:pe,strictSSL:Ae,httpAgent:ge,httpsAgent:ye}){try{const me={headers:pe,redirect:"manual",throwHttpErrors:false};const ve=R.startsWith("https:");if(ve){me.agent=ye||new he.Agent({rejectUnauthorized:Ae})}else{if(ge){me.agent=ge}}const be=await Ce.get(R,me);return{res:be,body:be.data}}catch(pe){if(pe.response){return{res:pe.response,body:null}}throw new ve("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:R,cause:pe})}}},75836:(R,pe,Ae)=>{"use strict";const he=Ae(11625);const{isArray:ge}=Ae(86891);const{asArray:ye}=Ae(69450);const me={};R.exports=me;me.defaultEventHandler=null;me.setupEventHandler=({options:R={}})=>{const pe=[].concat(R.safe?me.safeEventHandler:[],R.eventHandler?ye(R.eventHandler):[],me.defaultEventHandler?me.defaultEventHandler:[]);return pe.length===0?null:pe};me.handleEvent=({event:R,options:pe})=>{_handle({event:R,handlers:pe.eventHandler})};function _handle({event:R,handlers:pe}){let Ae=true;for(let ye=0;Ae&&ye{Ae=true}})}else if(typeof me==="object"){if(R.code in me){me[R.code]({event:R,next:()=>{Ae=true}})}else{Ae=true}}else{throw new he("Invalid event handler.","jsonld.InvalidEventHandler",{event:R})}}return Ae}const ve=new Set(["empty object","free-floating scalar","invalid @language value","invalid property","null @id value","null @value value","object with only @id","object with only @language","object with only @list","object with only @value","relative @id reference","relative @type reference","relative @vocab reference","reserved @id value","reserved @reverse value","reserved term","blank node predicate","relative graph reference","relative object reference","relative predicate reference","relative subject reference","rdfDirection not set"]);me.safeEventHandler=function safeEventHandler({event:R,next:pe}){if(R.level==="warning"&&ve.has(R.code)){throw new he("Safe mode validation error.","jsonld.ValidationError",{event:R})}pe()};me.logEventHandler=function logEventHandler({event:R,next:pe}){console.log(`EVENT: ${R.message}`,{event:R});pe()};me.logWarningEventHandler=function logWarningEventHandler({event:R,next:pe}){if(R.level==="warning"){console.warn(`WARNING: ${R.message}`,{event:R})}pe()};me.unhandledEventHandler=function unhandledEventHandler({event:R}){throw new he("No handler for event.","jsonld.UnhandledEvent",{event:R})};me.setDefaultEventHandler=function({eventHandler:R}={}){me.defaultEventHandler=R?ye(R):null}},99969:(R,pe,Ae)=>{"use strict";const he=Ae(11625);const{isArray:ge,isObject:ye,isEmptyObject:me,isString:ve,isUndefined:be}=Ae(86891);const{isList:Ee,isValue:Ce,isGraph:we,isSubject:_e}=Ae(13631);const{expandIri:Ie,getContextValue:Se,isKeyword:Be,process:ke,processingMode:Oe}=Ae(41866);const{isAbsolute:Re}=Ae(40651);const{REGEX_BCP47:Qe,REGEX_KEYWORD:xe,addValue:Pe,asArray:Te,getValues:De,validateTypeValue:Ne}=Ae(69450);const{handleEvent:Me}=Ae(75836);const je={};R.exports=je;je.expand=async({activeCtx:R,activeProperty:pe=null,element:Ae,options:Ee={},insideList:Ce=false,insideIndex:we=false,typeScopedContext:_e=null})=>{if(Ae===null||Ae===undefined){return null}if(pe==="@default"){Ee=Object.assign({},Ee,{isFrame:false})}if(!ge(Ae)&&!ye(Ae)){if(!Ce&&(pe===null||Ie(R,pe,{vocab:true},Ee)==="@graph")){if(Ee.eventHandler){Me({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:Ae}},options:Ee})}return null}return _expandValue({activeCtx:R,activeProperty:pe,value:Ae,options:Ee})}if(ge(Ae)){let he=[];const ye=Se(R,pe,"@container")||[];Ce=Ce||ye.includes("@list");for(let ye=0;ye1?he.slice().sort():he:[he];for(const pe of ge){const Ae=Se(_e,pe,"@context");if(!be(Ae)){R=await ke({activeCtx:R,localCtx:Ae,options:Ee,propagate:false})}}}}let Fe={};await _expandObject({activeCtx:R,activeProperty:pe,expandedActiveProperty:Be,element:Ae,expandedParent:Fe,options:Ee,insideList:Ce,typeKey:Ne,typeScopedContext:_e});xe=Object.keys(Fe);let Le=xe.length;if("@value"in Fe){if("@type"in Fe&&("@language"in Fe||"@direction"in Fe)){throw new he('Invalid JSON-LD syntax; an element containing "@value" may not '+'contain both "@type" and either "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:Fe})}let pe=Le-1;if("@type"in Fe){pe-=1}if("@index"in Fe){pe-=1}if("@language"in Fe){pe-=1}if("@direction"in Fe){pe-=1}if(pe!==0){throw new he('Invalid JSON-LD syntax; an element containing "@value" may only '+'have an "@index" property and either "@type" '+'or either or both "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:Fe})}const Ae=Fe["@value"]===null?[]:Te(Fe["@value"]);const ge=De(Fe,"@type");if(Oe(R,1.1)&&ge.includes("@json")&&ge.length===1){}else if(Ae.length===0){if(Ee.eventHandler){Me({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:Fe}},options:Ee})}Fe=null}else if(!Ae.every((R=>ve(R)||me(R)))&&"@language"in Fe){throw new he("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:Fe})}else if(!ge.every((R=>Re(R)&&!(ve(R)&&R.indexOf("_:")===0)||me(R)))){throw new he('Invalid JSON-LD syntax; an element containing "@value" and "@type" '+'must have an absolute IRI for the value of "@type".',"jsonld.SyntaxError",{code:"invalid typed value",element:Fe})}}else if("@type"in Fe&&!ge(Fe["@type"])){Fe["@type"]=[Fe["@type"]]}else if("@set"in Fe||"@list"in Fe){if(Le>1&&!(Le===2&&"@index"in Fe)){throw new he('Invalid JSON-LD syntax; if an element has the property "@set" '+'or "@list", then it can have at most one other property that is '+'"@index".',"jsonld.SyntaxError",{code:"invalid set or list object",element:Fe})}if("@set"in Fe){Fe=Fe["@set"];xe=Object.keys(Fe);Le=xe.length}}else if(Le===1&&"@language"in Fe){if(Ee.eventHandler){Me({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:Fe}},options:Ee})}Fe=null}if(ye(Fe)&&!Ee.keepFreeFloatingNodes&&!Ce&&(pe===null||Be==="@graph"||(Se(R,pe,"@container")||[]).includes("@graph"))){Fe=_dropUnsafeObject({value:Fe,count:Le,options:Ee})}return Fe};function _dropUnsafeObject({value:R,count:pe,options:Ae}){if(pe===0||"@value"in R||"@list"in R||pe===1&&"@id"in R){if(Ae.eventHandler){let he;let ge;if(pe===0){he="empty object";ge="Dropping empty object."}else if("@value"in R){he="object with only @value";ge="Dropping object with only @value."}else if("@list"in R){he="object with only @list";ge="Dropping object with only @list."}else if(pe===1&&"@id"in R){he="object with only @id";ge="Dropping object with only @id."}Me({event:{type:["JsonLdEvent"],code:he,level:"warning",message:ge,details:{value:R}},options:Ae})}return null}return R}async function _expandObject({activeCtx:R,activeProperty:pe,expandedActiveProperty:Ae,element:we,expandedParent:xe,options:De={},insideList:Fe,typeKey:Le,typeScopedContext:Ue}){const He=Object.keys(we).sort();const Je=[];let We;const Ve=we[Le]&&Ie(R,ge(we[Le])?we[Le][0]:we[Le],{vocab:true},{...De,typeExpansion:true})==="@json";for(const Fe of He){let Le=we[Fe];let He;if(Fe==="@context"){continue}const Ke=Ie(R,Fe,{vocab:true},De);if(Ke===null||!(Re(Ke)||Be(Ke))){if(De.eventHandler){Me({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an "+"absolute IRI or keyword.",details:{property:Fe,expandedProperty:Ke}},options:De})}continue}if(Be(Ke)){if(Ae==="@reverse"){throw new he("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse "+"property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:Le})}if(Ke in xe&&Ke!=="@included"&&Ke!=="@type"){throw new he("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:Ke})}}if(Ke==="@id"){if(!ve(Le)){if(!De.isFrame){throw new he('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:Le})}if(ye(Le)){if(!me(Le)){throw new he('Invalid JSON-LD syntax; "@id" value an empty object or array '+"of strings, if framing","jsonld.SyntaxError",{code:"invalid @id value",value:Le})}}else if(ge(Le)){if(!Le.every((R=>ve(R)))){throw new he('Invalid JSON-LD syntax; "@id" value an empty object or array '+"of strings, if framing","jsonld.SyntaxError",{code:"invalid @id value",value:Le})}}else{throw new he('Invalid JSON-LD syntax; "@id" value an empty object or array '+"of strings, if framing","jsonld.SyntaxError",{code:"invalid @id value",value:Le})}}Pe(xe,"@id",Te(Le).map((pe=>{if(ve(pe)){const Ae=Ie(R,pe,{base:true},De);if(De.eventHandler){if(Ae===null){if(pe===null){Me({event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:pe}},options:De})}else{Me({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:pe}},options:De})}}else if(!Re(Ae)){Me({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:pe,expandedId:Ae}},options:De})}}return Ae}return pe})),{propertyIsArray:De.isFrame});continue}if(Ke==="@type"){if(ye(Le)){Le=Object.fromEntries(Object.entries(Le).map((([R,pe])=>[Ie(Ue,R,{vocab:true}),Te(pe).map((R=>Ie(Ue,R,{base:true,vocab:true},{...De,typeExpansion:true})))])))}Ne(Le,De.isFrame);Pe(xe,"@type",Te(Le).map((R=>{if(ve(R)){const pe=Ie(Ue,R,{base:true,vocab:true},{...De,typeExpansion:true});if(pe!=="@json"&&!Re(pe)){if(De.eventHandler){Me({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:R}},options:De})}}return pe}return R})),{propertyIsArray:!!De.isFrame});continue}if(Ke==="@included"&&Oe(R,1.1)){const Ae=Te(await je.expand({activeCtx:R,activeProperty:pe,element:Le,options:De}));if(!Ae.every((R=>_e(R)))){throw new he("Invalid JSON-LD syntax; "+"values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:Le})}Pe(xe,"@included",Ae,{propertyIsArray:true});continue}if(Ke==="@graph"&&!(ye(Le)||ge(Le))){throw new he('Invalid JSON-LD syntax; "@graph" value must not be an '+"object or an array.","jsonld.SyntaxError",{code:"invalid @graph value",value:Le})}if(Ke==="@value"){We=Le;if(Ve&&Oe(R,1.1)){xe["@value"]=Le}else{Pe(xe,"@value",Le,{propertyIsArray:De.isFrame})}continue}if(Ke==="@language"){if(Le===null){continue}if(!ve(Le)&&!De.isFrame){throw new he('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:Le})}Le=Te(Le).map((R=>ve(R)?R.toLowerCase():R));for(const R of Le){if(ve(R)&&!R.match(Qe)){if(De.eventHandler){Me({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:R}},options:De})}}}Pe(xe,"@language",Le,{propertyIsArray:De.isFrame});continue}if(Ke==="@direction"){if(!ve(Le)&&!De.isFrame){throw new he('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:Le})}Le=Te(Le);for(const R of Le){if(ve(R)&&R!=="ltr"&&R!=="rtl"){throw new he('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:Le})}}Pe(xe,"@direction",Le,{propertyIsArray:De.isFrame});continue}if(Ke==="@index"){if(!ve(Le)){throw new he('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:Le})}Pe(xe,"@index",Le);continue}if(Ke==="@reverse"){if(!ye(Le)){throw new he('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:Le})}He=await je.expand({activeCtx:R,activeProperty:"@reverse",element:Le,options:De});if("@reverse"in He){for(const R in He["@reverse"]){Pe(xe,R,He["@reverse"][R],{propertyIsArray:true})}}let pe=xe["@reverse"]||null;for(const R in He){if(R==="@reverse"){continue}if(pe===null){pe=xe["@reverse"]={}}Pe(pe,R,[],{propertyIsArray:true});const Ae=He[R];for(let ge=0;geR==="@id"||R==="@index"))){He=Te(He);if(!De.isFrame){He=He.filter((R=>{const pe=Object.keys(R).length;return _dropUnsafeObject({value:R,count:pe,options:De})!==null}))}if(He.length===0){continue}He=He.map((R=>({"@graph":Te(R)})))}if(Ge.mappings.has(Fe)&&Ge.mappings.get(Fe).reverse){const R=xe["@reverse"]=xe["@reverse"]||{};He=Te(He);for(let pe=0;peIe(R,pe,{vocab:true},De)==="@value"))){throw new he("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:ge})}await _expandObject({activeCtx:R,activeProperty:pe,expandedActiveProperty:Ae,element:ge,expandedParent:xe,options:De,insideList:Fe,typeScopedContext:Ue,typeKey:Le})}}}function _expandValue({activeCtx:R,activeProperty:pe,value:Ae,options:he}){if(Ae===null||Ae===undefined){return null}const ge=Ie(R,pe,{vocab:true},he);if(ge==="@id"){return Ie(R,Ae,{base:true},he)}else if(ge==="@type"){return Ie(R,Ae,{vocab:true,base:true},{...he,typeExpansion:true})}const ye=Se(R,pe,"@type");if((ye==="@id"||ge==="@graph")&&ve(Ae)){const ge=Ie(R,Ae,{base:true},he);if(ge===null&&Ae.match(xe)){if(he.eventHandler){Me({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:pe}},options:he})}}return{"@id":ge}}if(ye==="@vocab"&&ve(Ae)){return{"@id":Ie(R,Ae,{vocab:true,base:true},he)}}if(Be(ge)){return Ae}const me={};if(ye&&!["@id","@vocab","@none"].includes(ye)){me["@type"]=ye}else if(ve(Ae)){const Ae=Se(R,pe,"@language");if(Ae!==null){me["@language"]=Ae}const he=Se(R,pe,"@direction");if(he!==null){me["@direction"]=he}}if(!["boolean","number","string"].includes(typeof Ae)){Ae=Ae.toString()}me["@value"]=Ae;return me}function _expandLanguageMap(R,pe,Ae,ye){const me=[];const be=Object.keys(pe).sort();for(const Ee of be){const be=Ie(R,Ee,{vocab:true},ye);let Ce=pe[Ee];if(!ge(Ce)){Ce=[Ce]}for(const R of Ce){if(R===null){continue}if(!ve(R)){throw new he("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:pe})}const ge={"@value":R};if(be!=="@none"){if(!Ee.match(Qe)){if(ye.eventHandler){Me({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:Ee}},options:ye})}}ge["@language"]=Ee.toLowerCase()}if(Ae){ge["@direction"]=Ae}me.push(ge)}}return me}async function _expandIndexMap({activeCtx:R,options:pe,activeProperty:Ae,value:ye,asGraph:me,indexKey:ve,propertyIndex:Ee}){const _e=[];const Be=Object.keys(ye).sort();const Oe=ve==="@type";for(let Re of Be){if(Oe){const Ae=Se(R,Re,"@context");if(!be(Ae)){R=await ke({activeCtx:R,localCtx:Ae,propagate:false,options:pe})}}let Be=ye[Re];if(!ge(Be)){Be=[Be]}Be=await je.expand({activeCtx:R,activeProperty:Ae,element:Be,options:pe,insideList:false,insideIndex:true});let Qe;if(Ee){if(Re==="@none"){Qe="@none"}else{Qe=_expandValue({activeCtx:R,activeProperty:ve,value:Re,options:pe})}}else{Qe=Ie(R,Re,{vocab:true},pe)}if(ve==="@id"){Re=Ie(R,Re,{base:true},pe)}else if(Oe){Re=Qe}for(let R of Be){if(me&&!we(R)){R={"@graph":[R]}}if(ve==="@type"){if(Qe==="@none"){}else if(R["@type"]){R["@type"]=[Re].concat(R["@type"])}else{R["@type"]=[Re]}}else if(Ce(R)&&!["@language","@type","@index"].includes(ve)){throw new he("Invalid JSON-LD syntax; Attempt to add illegal key to value "+`object: "${ve}".`,"jsonld.SyntaxError",{code:"invalid value object",value:R})}else if(Ee){if(Qe!=="@none"){Pe(R,Ee,Qe,{propertyIsArray:true,prependValue:true})}}else if(Qe!=="@none"&&!(ve in R)){R[ve]=Re}_e.push(R)}}return _e}},59030:(R,pe,Ae)=>{"use strict";const{isSubjectReference:he}=Ae(13631);const{createMergedNodeMap:ge}=Ae(99618);const ye={};R.exports=ye;ye.flatten=R=>{const pe=ge(R);const Ae=[];const ye=Object.keys(pe).sort();for(let R=0;R{"use strict";const{isKeyword:he}=Ae(41866);const ge=Ae(13631);const ye=Ae(86891);const me=Ae(69450);const ve=Ae(40651);const be=Ae(11625);const{createNodeMap:Ee,mergeNodeMapGraphs:Ce}=Ae(99618);const we={};R.exports=we;we.frameMergedOrDefault=(R,pe,Ae)=>{const he={options:Ae,embedded:false,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}};const ge=new me.IdentifierIssuer("_:b");Ee(R,he.graphMap,"@default",ge);if(Ae.merged){he.graphMap["@merged"]=Ce(he.graphMap);he.graph="@merged"}he.subjects=he.graphMap[he.graph];const ye=[];we.frame(he,Object.keys(he.subjects).sort(),pe,ye);if(Ae.pruneBlankNodeIdentifiers){Ae.bnodesToClear=Object.keys(he.bnodeMap).filter((R=>he.bnodeMap[R].length===1))} +const xe=ke["@id"];if(xe==="@context"||xe==="@preserve"){throw new ge("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:pe})}if(Ie&&Ie.protected&&!we){R.protected[Ae]=true;ke.protected=true;if(!_deepCompare(Ie,ke)){throw new ge("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:pe,term:Ae})}}};Qe.expandIri=(R,pe,Ae,he)=>_expandIri(R,pe,Ae,undefined,undefined,he);function _expandIri(R,pe,Ae,he,ge,ye){if(pe===null||!ve(pe)||Qe.isKeyword(pe)){return pe}if(pe.match(Se)){return null}if(he&&he.hasOwnProperty(pe)&&ge.get(pe)!==true){Qe.createTermDefinition({activeCtx:R,localCtx:he,term:pe,defined:ge,options:ye})}Ae=Ae||{};if(Ae.vocab){const Ae=R.mappings.get(pe);if(Ae===null){return null}if(me(Ae)&&"@id"in Ae){return Ae["@id"]}}const be=pe.indexOf(":");if(be>0){const Ae=pe.substr(0,be);const me=pe.substr(be+1);if(Ae==="_"||me.indexOf("//")===0){return pe}if(he&&he.hasOwnProperty(Ae)){Qe.createTermDefinition({activeCtx:R,localCtx:he,term:Ae,defined:ge,options:ye})}const ve=R.mappings.get(Ae);if(ve&&ve._prefix){return ve["@id"]+me}if(Ee(pe)){return pe}}if(Ae.vocab&&"@vocab"in R){const Ae=R["@vocab"]+pe;pe=Ae}else if(Ae.base){let Ae;let he;if("@base"in R){if(R["@base"]){he=Ce(ye.base,R["@base"]);Ae=Ce(he,pe)}else{he=R["@base"];Ae=pe}}else{he=ye.base;Ae=Ce(ye.base,pe)}pe=Ae}return pe}Qe.getInitialContext=R=>{const pe=JSON.stringify({processingMode:R.processingMode});const Ae=Oe.get(pe);if(Ae){return Ae}const ge={processingMode:R.processingMode,mappings:new Map,inverse:null,getInverse:_createInverseContext,clone:_cloneActiveContext,revertToPreviousContext:_revertToPreviousContext,protected:{}};if(Oe.size===Re){Oe.clear()}Oe.set(pe,ge);return ge;function _createInverseContext(){const R=this;if(R.inverse){return R.inverse}const pe=R.inverse={};const Ae=R.fastCurieMap={};const he={};const ge=(R["@language"]||"@none").toLowerCase();const ye=R["@direction"];const me=R.mappings;const ve=[...me.keys()].sort(ke);for(const R of ve){const ve=me.get(R);if(ve===null){continue}let be=ve["@container"]||"@none";be=[].concat(be).sort().join("");if(ve["@id"]===null){continue}const Ee=Be(ve["@id"]);for(const me of Ee){let Ee=pe[me];const we=Qe.isKeyword(me);if(!Ee){pe[me]=Ee={};if(!we&&!ve._termHasColon){he[me]=[R];const pe={iri:me,terms:he[me]};if(me[0]in Ae){Ae[me[0]].push(pe)}else{Ae[me[0]]=[pe]}}}else if(!we&&!ve._termHasColon){he[me].push(R)}if(!Ee[be]){Ee[be]={"@language":{},"@type":{},"@any":{}}}Ee=Ee[be];_addPreferredTerm(R,Ee["@any"],"@none");if(ve.reverse){_addPreferredTerm(R,Ee["@type"],"@reverse")}else if(ve["@type"]==="@none"){_addPreferredTerm(R,Ee["@any"],"@none");_addPreferredTerm(R,Ee["@language"],"@none");_addPreferredTerm(R,Ee["@type"],"@none")}else if("@type"in ve){_addPreferredTerm(R,Ee["@type"],ve["@type"])}else if("@language"in ve&&"@direction"in ve){const pe=ve["@language"];const Ae=ve["@direction"];if(pe&&Ae){_addPreferredTerm(R,Ee["@language"],`${pe}_${Ae}`.toLowerCase())}else if(pe){_addPreferredTerm(R,Ee["@language"],pe.toLowerCase())}else if(Ae){_addPreferredTerm(R,Ee["@language"],`_${Ae}`)}else{_addPreferredTerm(R,Ee["@language"],"@null")}}else if("@language"in ve){_addPreferredTerm(R,Ee["@language"],(ve["@language"]||"@null").toLowerCase())}else if("@direction"in ve){if(ve["@direction"]){_addPreferredTerm(R,Ee["@language"],`_${ve["@direction"]}`)}else{_addPreferredTerm(R,Ee["@language"],"@none")}}else if(ye){_addPreferredTerm(R,Ee["@language"],`_${ye}`);_addPreferredTerm(R,Ee["@language"],"@none");_addPreferredTerm(R,Ee["@type"],"@none")}else{_addPreferredTerm(R,Ee["@language"],ge);_addPreferredTerm(R,Ee["@language"],"@none");_addPreferredTerm(R,Ee["@type"],"@none")}}}for(const R in Ae){_buildIriMap(Ae,R,1)}return pe}function _buildIriMap(R,pe,Ae){const he=R[pe];const ge=R[pe]={};let ye;let me;for(const R of he){ye=R.iri;if(Ae>=ye.length){me=""}else{me=ye[Ae]}if(me in ge){ge[me].push(R)}else{ge[me]=[R]}}for(const R in ge){if(R===""){continue}_buildIriMap(ge,R,Ae+1)}}function _addPreferredTerm(R,pe,Ae){if(!pe.hasOwnProperty(Ae)){pe[Ae]=R}}function _cloneActiveContext(){const R={};R.mappings=he.clone(this.mappings);R.clone=this.clone;R.inverse=null;R.getInverse=this.getInverse;R.protected=he.clone(this.protected);if(this.previousContext){R.previousContext=this.previousContext.clone()}R.revertToPreviousContext=this.revertToPreviousContext;if("@base"in this){R["@base"]=this["@base"]}if("@language"in this){R["@language"]=this["@language"]}if("@vocab"in this){R["@vocab"]=this["@vocab"]}return R}function _revertToPreviousContext(){if(!this.previousContext){return this}return this.previousContext.clone()}};Qe.getContextValue=(R,pe,Ae)=>{if(pe===null){if(Ae==="@context"){return undefined}return null}if(R.mappings.has(pe)){const he=R.mappings.get(pe);if(be(Ae)){return he}if(he.hasOwnProperty(Ae)){return he[Ae]}}if(Ae==="@language"&&Ae in R){return R[Ae]}if(Ae==="@direction"&&Ae in R){return R[Ae]}if(Ae==="@context"){return undefined}return null};Qe.processingMode=(R,pe)=>{if(pe.toString()>="1.1"){return!R.processingMode||R.processingMode>="json-ld-"+pe.toString()}else{return R.processingMode==="json-ld-1.0"}};Qe.isKeyword=R=>{if(!ve(R)||R[0]!=="@"){return false}switch(R){case"@base":case"@container":case"@context":case"@default":case"@direction":case"@embed":case"@explicit":case"@graph":case"@id":case"@included":case"@index":case"@json":case"@language":case"@list":case"@nest":case"@none":case"@omitDefault":case"@prefix":case"@preserve":case"@protected":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@version":case"@vocab":return true}return false};function _deepCompare(R,pe){if(!(R&&typeof R==="object")||!(pe&&typeof pe==="object")){return R===pe}const Ae=Array.isArray(R);if(Ae!==Array.isArray(pe)){return false}if(Ae){if(R.length!==pe.length){return false}for(let Ae=0;Ae{"use strict";const he=Ae(95687);const{parseLinkHeader:ge,buildHeaders:ye}=Ae(69450);const{LINK_HEADER_CONTEXT:me}=Ae(18441);const ve=Ae(11625);const be=Ae(99241);const{prependBase:Ee}=Ae(40651);const{httpClient:we}=Ae(10698);R.exports=({secure:R,strictSSL:pe=true,maxRedirects:he=-1,headers:we={},httpAgent:Ce,httpsAgent:_e}={strictSSL:true,maxRedirects:-1,headers:{}})=>{we=ye(we);if(!("user-agent"in we)){we=Object.assign({},we,{"user-agent":"jsonld.js"})}const Ie=Ae(13685);const Se=new be;return Se.wrapLoader((function(R){return loadDocument(R,[])}));async function loadDocument(Ae,ye){const be=Ae.startsWith("http:");const Se=Ae.startsWith("https:");if(!be&&!Se){throw new ve('URL could not be dereferenced; only "http" and "https" URLs are '+"supported.","jsonld.InvalidUrl",{code:"loading document failed",url:Ae})}if(R&&!Se){throw new ve("URL could not be dereferenced; secure mode is enabled and "+'the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:Ae})}let Be=null;if(Be!==null){return Be}let ke=null;const{res:Oe,body:Re}=await _fetch({url:Ae,headers:we,strictSSL:pe,httpAgent:Ce,httpsAgent:_e});Be={contextUrl:null,documentUrl:Ae,document:Re||null};const Qe=Ie.STATUS_CODES[Oe.status];if(Oe.status>=400){throw new ve(`URL "${Ae}" could not be dereferenced: ${Qe}`,"jsonld.InvalidUrl",{code:"loading document failed",url:Ae,httpStatusCode:Oe.status})}const xe=Oe.headers.get("link");let Pe=Oe.headers.get("location");const Te=Oe.headers.get("content-type");if(xe&&Te!=="application/ld+json"){const R=ge(xe);const pe=R[me];if(Array.isArray(pe)){throw new ve("URL could not be dereferenced, it has more than one associated "+"HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:Ae})}if(pe){Be.contextUrl=pe.target}ke=R.alternate;if(ke&&ke.type=="application/ld+json"&&!(Te||"").match(/^application\/(\w*\+)?json$/)){Pe=Ee(Ae,ke.target)}}if((ke||Oe.status>=300&&Oe.status<400)&&Pe){if(ye.length===he){throw new ve("URL could not be dereferenced; there were too many redirects.","jsonld.TooManyRedirects",{code:"loading document failed",url:Ae,httpStatusCode:Oe.status,redirects:ye})}if(ye.indexOf(Ae)!==-1){throw new ve("URL could not be dereferenced; infinite redirection was detected.","jsonld.InfiniteRedirectDetected",{code:"recursive context inclusion",url:Ae,httpStatusCode:Oe.status,redirects:ye})}ye.push(Ae);const R=new URL(Pe,Ae).href;return loadDocument(R,ye)}ye.push(Ae);return Be}};async function _fetch({url:R,headers:pe,strictSSL:Ae,httpAgent:ge,httpsAgent:ye}){try{const me={headers:pe,redirect:"manual",throwHttpErrors:false};const ve=R.startsWith("https:");if(ve){me.agent=ye||new he.Agent({rejectUnauthorized:Ae})}else{if(ge){me.agent=ge}}const be=await we.get(R,me);return{res:be,body:be.data}}catch(pe){if(pe.response){return{res:pe.response,body:null}}throw new ve("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:R,cause:pe})}}},75836:(R,pe,Ae)=>{"use strict";const he=Ae(11625);const{isArray:ge}=Ae(86891);const{asArray:ye}=Ae(69450);const me={};R.exports=me;me.defaultEventHandler=null;me.setupEventHandler=({options:R={}})=>{const pe=[].concat(R.safe?me.safeEventHandler:[],R.eventHandler?ye(R.eventHandler):[],me.defaultEventHandler?me.defaultEventHandler:[]);return pe.length===0?null:pe};me.handleEvent=({event:R,options:pe})=>{_handle({event:R,handlers:pe.eventHandler})};function _handle({event:R,handlers:pe}){let Ae=true;for(let ye=0;Ae&&ye{Ae=true}})}else if(typeof me==="object"){if(R.code in me){me[R.code]({event:R,next:()=>{Ae=true}})}else{Ae=true}}else{throw new he("Invalid event handler.","jsonld.InvalidEventHandler",{event:R})}}return Ae}const ve=new Set(["empty object","free-floating scalar","invalid @language value","invalid property","null @id value","null @value value","object with only @id","object with only @language","object with only @list","object with only @value","relative @id reference","relative @type reference","relative @vocab reference","reserved @id value","reserved @reverse value","reserved term","blank node predicate","relative graph reference","relative object reference","relative predicate reference","relative subject reference","rdfDirection not set"]);me.safeEventHandler=function safeEventHandler({event:R,next:pe}){if(R.level==="warning"&&ve.has(R.code)){throw new he("Safe mode validation error.","jsonld.ValidationError",{event:R})}pe()};me.logEventHandler=function logEventHandler({event:R,next:pe}){console.log(`EVENT: ${R.message}`,{event:R});pe()};me.logWarningEventHandler=function logWarningEventHandler({event:R,next:pe}){if(R.level==="warning"){console.warn(`WARNING: ${R.message}`,{event:R})}pe()};me.unhandledEventHandler=function unhandledEventHandler({event:R}){throw new he("No handler for event.","jsonld.UnhandledEvent",{event:R})};me.setDefaultEventHandler=function({eventHandler:R}={}){me.defaultEventHandler=R?ye(R):null}},99969:(R,pe,Ae)=>{"use strict";const he=Ae(11625);const{isArray:ge,isObject:ye,isEmptyObject:me,isString:ve,isUndefined:be}=Ae(86891);const{isList:Ee,isValue:we,isGraph:Ce,isSubject:_e}=Ae(13631);const{expandIri:Ie,getContextValue:Se,isKeyword:Be,process:ke,processingMode:Oe}=Ae(41866);const{isAbsolute:Re}=Ae(40651);const{REGEX_BCP47:Qe,REGEX_KEYWORD:xe,addValue:Pe,asArray:Te,getValues:De,validateTypeValue:Ne}=Ae(69450);const{handleEvent:Me}=Ae(75836);const je={};R.exports=je;je.expand=async({activeCtx:R,activeProperty:pe=null,element:Ae,options:Ee={},insideList:we=false,insideIndex:Ce=false,typeScopedContext:_e=null})=>{if(Ae===null||Ae===undefined){return null}if(pe==="@default"){Ee=Object.assign({},Ee,{isFrame:false})}if(!ge(Ae)&&!ye(Ae)){if(!we&&(pe===null||Ie(R,pe,{vocab:true},Ee)==="@graph")){if(Ee.eventHandler){Me({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:Ae}},options:Ee})}return null}return _expandValue({activeCtx:R,activeProperty:pe,value:Ae,options:Ee})}if(ge(Ae)){let he=[];const ye=Se(R,pe,"@container")||[];we=we||ye.includes("@list");for(let ye=0;ye1?he.slice().sort():he:[he];for(const pe of ge){const Ae=Se(_e,pe,"@context");if(!be(Ae)){R=await ke({activeCtx:R,localCtx:Ae,options:Ee,propagate:false})}}}}let Fe={};await _expandObject({activeCtx:R,activeProperty:pe,expandedActiveProperty:Be,element:Ae,expandedParent:Fe,options:Ee,insideList:we,typeKey:Ne,typeScopedContext:_e});xe=Object.keys(Fe);let Le=xe.length;if("@value"in Fe){if("@type"in Fe&&("@language"in Fe||"@direction"in Fe)){throw new he('Invalid JSON-LD syntax; an element containing "@value" may not '+'contain both "@type" and either "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:Fe})}let pe=Le-1;if("@type"in Fe){pe-=1}if("@index"in Fe){pe-=1}if("@language"in Fe){pe-=1}if("@direction"in Fe){pe-=1}if(pe!==0){throw new he('Invalid JSON-LD syntax; an element containing "@value" may only '+'have an "@index" property and either "@type" '+'or either or both "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:Fe})}const Ae=Fe["@value"]===null?[]:Te(Fe["@value"]);const ge=De(Fe,"@type");if(Oe(R,1.1)&&ge.includes("@json")&&ge.length===1){}else if(Ae.length===0){if(Ee.eventHandler){Me({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:Fe}},options:Ee})}Fe=null}else if(!Ae.every((R=>ve(R)||me(R)))&&"@language"in Fe){throw new he("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:Fe})}else if(!ge.every((R=>Re(R)&&!(ve(R)&&R.indexOf("_:")===0)||me(R)))){throw new he('Invalid JSON-LD syntax; an element containing "@value" and "@type" '+'must have an absolute IRI for the value of "@type".',"jsonld.SyntaxError",{code:"invalid typed value",element:Fe})}}else if("@type"in Fe&&!ge(Fe["@type"])){Fe["@type"]=[Fe["@type"]]}else if("@set"in Fe||"@list"in Fe){if(Le>1&&!(Le===2&&"@index"in Fe)){throw new he('Invalid JSON-LD syntax; if an element has the property "@set" '+'or "@list", then it can have at most one other property that is '+'"@index".',"jsonld.SyntaxError",{code:"invalid set or list object",element:Fe})}if("@set"in Fe){Fe=Fe["@set"];xe=Object.keys(Fe);Le=xe.length}}else if(Le===1&&"@language"in Fe){if(Ee.eventHandler){Me({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:Fe}},options:Ee})}Fe=null}if(ye(Fe)&&!Ee.keepFreeFloatingNodes&&!we&&(pe===null||Be==="@graph"||(Se(R,pe,"@container")||[]).includes("@graph"))){Fe=_dropUnsafeObject({value:Fe,count:Le,options:Ee})}return Fe};function _dropUnsafeObject({value:R,count:pe,options:Ae}){if(pe===0||"@value"in R||"@list"in R||pe===1&&"@id"in R){if(Ae.eventHandler){let he;let ge;if(pe===0){he="empty object";ge="Dropping empty object."}else if("@value"in R){he="object with only @value";ge="Dropping object with only @value."}else if("@list"in R){he="object with only @list";ge="Dropping object with only @list."}else if(pe===1&&"@id"in R){he="object with only @id";ge="Dropping object with only @id."}Me({event:{type:["JsonLdEvent"],code:he,level:"warning",message:ge,details:{value:R}},options:Ae})}return null}return R}async function _expandObject({activeCtx:R,activeProperty:pe,expandedActiveProperty:Ae,element:Ce,expandedParent:xe,options:De={},insideList:Fe,typeKey:Le,typeScopedContext:Ue}){const He=Object.keys(Ce).sort();const Je=[];let We;const Ve=Ce[Le]&&Ie(R,ge(Ce[Le])?Ce[Le][0]:Ce[Le],{vocab:true},{...De,typeExpansion:true})==="@json";for(const Fe of He){let Le=Ce[Fe];let He;if(Fe==="@context"){continue}const Ke=Ie(R,Fe,{vocab:true},De);if(Ke===null||!(Re(Ke)||Be(Ke))){if(De.eventHandler){Me({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an "+"absolute IRI or keyword.",details:{property:Fe,expandedProperty:Ke}},options:De})}continue}if(Be(Ke)){if(Ae==="@reverse"){throw new he("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse "+"property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:Le})}if(Ke in xe&&Ke!=="@included"&&Ke!=="@type"){throw new he("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:Ke})}}if(Ke==="@id"){if(!ve(Le)){if(!De.isFrame){throw new he('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:Le})}if(ye(Le)){if(!me(Le)){throw new he('Invalid JSON-LD syntax; "@id" value an empty object or array '+"of strings, if framing","jsonld.SyntaxError",{code:"invalid @id value",value:Le})}}else if(ge(Le)){if(!Le.every((R=>ve(R)))){throw new he('Invalid JSON-LD syntax; "@id" value an empty object or array '+"of strings, if framing","jsonld.SyntaxError",{code:"invalid @id value",value:Le})}}else{throw new he('Invalid JSON-LD syntax; "@id" value an empty object or array '+"of strings, if framing","jsonld.SyntaxError",{code:"invalid @id value",value:Le})}}Pe(xe,"@id",Te(Le).map((pe=>{if(ve(pe)){const Ae=Ie(R,pe,{base:true},De);if(De.eventHandler){if(Ae===null){if(pe===null){Me({event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:pe}},options:De})}else{Me({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:pe}},options:De})}}else if(!Re(Ae)){Me({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:pe,expandedId:Ae}},options:De})}}return Ae}return pe})),{propertyIsArray:De.isFrame});continue}if(Ke==="@type"){if(ye(Le)){Le=Object.fromEntries(Object.entries(Le).map((([R,pe])=>[Ie(Ue,R,{vocab:true}),Te(pe).map((R=>Ie(Ue,R,{base:true,vocab:true},{...De,typeExpansion:true})))])))}Ne(Le,De.isFrame);Pe(xe,"@type",Te(Le).map((R=>{if(ve(R)){const pe=Ie(Ue,R,{base:true,vocab:true},{...De,typeExpansion:true});if(pe!=="@json"&&!Re(pe)){if(De.eventHandler){Me({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:R}},options:De})}}return pe}return R})),{propertyIsArray:!!De.isFrame});continue}if(Ke==="@included"&&Oe(R,1.1)){const Ae=Te(await je.expand({activeCtx:R,activeProperty:pe,element:Le,options:De}));if(!Ae.every((R=>_e(R)))){throw new he("Invalid JSON-LD syntax; "+"values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:Le})}Pe(xe,"@included",Ae,{propertyIsArray:true});continue}if(Ke==="@graph"&&!(ye(Le)||ge(Le))){throw new he('Invalid JSON-LD syntax; "@graph" value must not be an '+"object or an array.","jsonld.SyntaxError",{code:"invalid @graph value",value:Le})}if(Ke==="@value"){We=Le;if(Ve&&Oe(R,1.1)){xe["@value"]=Le}else{Pe(xe,"@value",Le,{propertyIsArray:De.isFrame})}continue}if(Ke==="@language"){if(Le===null){continue}if(!ve(Le)&&!De.isFrame){throw new he('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:Le})}Le=Te(Le).map((R=>ve(R)?R.toLowerCase():R));for(const R of Le){if(ve(R)&&!R.match(Qe)){if(De.eventHandler){Me({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:R}},options:De})}}}Pe(xe,"@language",Le,{propertyIsArray:De.isFrame});continue}if(Ke==="@direction"){if(!ve(Le)&&!De.isFrame){throw new he('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:Le})}Le=Te(Le);for(const R of Le){if(ve(R)&&R!=="ltr"&&R!=="rtl"){throw new he('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:Le})}}Pe(xe,"@direction",Le,{propertyIsArray:De.isFrame});continue}if(Ke==="@index"){if(!ve(Le)){throw new he('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:Le})}Pe(xe,"@index",Le);continue}if(Ke==="@reverse"){if(!ye(Le)){throw new he('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:Le})}He=await je.expand({activeCtx:R,activeProperty:"@reverse",element:Le,options:De});if("@reverse"in He){for(const R in He["@reverse"]){Pe(xe,R,He["@reverse"][R],{propertyIsArray:true})}}let pe=xe["@reverse"]||null;for(const R in He){if(R==="@reverse"){continue}if(pe===null){pe=xe["@reverse"]={}}Pe(pe,R,[],{propertyIsArray:true});const Ae=He[R];for(let ge=0;geR==="@id"||R==="@index"))){He=Te(He);if(!De.isFrame){He=He.filter((R=>{const pe=Object.keys(R).length;return _dropUnsafeObject({value:R,count:pe,options:De})!==null}))}if(He.length===0){continue}He=He.map((R=>({"@graph":Te(R)})))}if(Ge.mappings.has(Fe)&&Ge.mappings.get(Fe).reverse){const R=xe["@reverse"]=xe["@reverse"]||{};He=Te(He);for(let pe=0;peIe(R,pe,{vocab:true},De)==="@value"))){throw new he("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:ge})}await _expandObject({activeCtx:R,activeProperty:pe,expandedActiveProperty:Ae,element:ge,expandedParent:xe,options:De,insideList:Fe,typeScopedContext:Ue,typeKey:Le})}}}function _expandValue({activeCtx:R,activeProperty:pe,value:Ae,options:he}){if(Ae===null||Ae===undefined){return null}const ge=Ie(R,pe,{vocab:true},he);if(ge==="@id"){return Ie(R,Ae,{base:true},he)}else if(ge==="@type"){return Ie(R,Ae,{vocab:true,base:true},{...he,typeExpansion:true})}const ye=Se(R,pe,"@type");if((ye==="@id"||ge==="@graph")&&ve(Ae)){const ge=Ie(R,Ae,{base:true},he);if(ge===null&&Ae.match(xe)){if(he.eventHandler){Me({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:pe}},options:he})}}return{"@id":ge}}if(ye==="@vocab"&&ve(Ae)){return{"@id":Ie(R,Ae,{vocab:true,base:true},he)}}if(Be(ge)){return Ae}const me={};if(ye&&!["@id","@vocab","@none"].includes(ye)){me["@type"]=ye}else if(ve(Ae)){const Ae=Se(R,pe,"@language");if(Ae!==null){me["@language"]=Ae}const he=Se(R,pe,"@direction");if(he!==null){me["@direction"]=he}}if(!["boolean","number","string"].includes(typeof Ae)){Ae=Ae.toString()}me["@value"]=Ae;return me}function _expandLanguageMap(R,pe,Ae,ye){const me=[];const be=Object.keys(pe).sort();for(const Ee of be){const be=Ie(R,Ee,{vocab:true},ye);let we=pe[Ee];if(!ge(we)){we=[we]}for(const R of we){if(R===null){continue}if(!ve(R)){throw new he("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:pe})}const ge={"@value":R};if(be!=="@none"){if(!Ee.match(Qe)){if(ye.eventHandler){Me({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:Ee}},options:ye})}}ge["@language"]=Ee.toLowerCase()}if(Ae){ge["@direction"]=Ae}me.push(ge)}}return me}async function _expandIndexMap({activeCtx:R,options:pe,activeProperty:Ae,value:ye,asGraph:me,indexKey:ve,propertyIndex:Ee}){const _e=[];const Be=Object.keys(ye).sort();const Oe=ve==="@type";for(let Re of Be){if(Oe){const Ae=Se(R,Re,"@context");if(!be(Ae)){R=await ke({activeCtx:R,localCtx:Ae,propagate:false,options:pe})}}let Be=ye[Re];if(!ge(Be)){Be=[Be]}Be=await je.expand({activeCtx:R,activeProperty:Ae,element:Be,options:pe,insideList:false,insideIndex:true});let Qe;if(Ee){if(Re==="@none"){Qe="@none"}else{Qe=_expandValue({activeCtx:R,activeProperty:ve,value:Re,options:pe})}}else{Qe=Ie(R,Re,{vocab:true},pe)}if(ve==="@id"){Re=Ie(R,Re,{base:true},pe)}else if(Oe){Re=Qe}for(let R of Be){if(me&&!Ce(R)){R={"@graph":[R]}}if(ve==="@type"){if(Qe==="@none"){}else if(R["@type"]){R["@type"]=[Re].concat(R["@type"])}else{R["@type"]=[Re]}}else if(we(R)&&!["@language","@type","@index"].includes(ve)){throw new he("Invalid JSON-LD syntax; Attempt to add illegal key to value "+`object: "${ve}".`,"jsonld.SyntaxError",{code:"invalid value object",value:R})}else if(Ee){if(Qe!=="@none"){Pe(R,Ee,Qe,{propertyIsArray:true,prependValue:true})}}else if(Qe!=="@none"&&!(ve in R)){R[ve]=Re}_e.push(R)}}return _e}},59030:(R,pe,Ae)=>{"use strict";const{isSubjectReference:he}=Ae(13631);const{createMergedNodeMap:ge}=Ae(99618);const ye={};R.exports=ye;ye.flatten=R=>{const pe=ge(R);const Ae=[];const ye=Object.keys(pe).sort();for(let R=0;R{"use strict";const{isKeyword:he}=Ae(41866);const ge=Ae(13631);const ye=Ae(86891);const me=Ae(69450);const ve=Ae(40651);const be=Ae(11625);const{createNodeMap:Ee,mergeNodeMapGraphs:we}=Ae(99618);const Ce={};R.exports=Ce;Ce.frameMergedOrDefault=(R,pe,Ae)=>{const he={options:Ae,embedded:false,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}};const ge=new me.IdentifierIssuer("_:b");Ee(R,he.graphMap,"@default",ge);if(Ae.merged){he.graphMap["@merged"]=we(he.graphMap);he.graph="@merged"}he.subjects=he.graphMap[he.graph];const ye=[];Ce.frame(he,Object.keys(he.subjects).sort(),pe,ye);if(Ae.pruneBlankNodeIdentifiers){Ae.bnodesToClear=Object.keys(he.bnodeMap).filter((R=>he.bnodeMap[R].length===1))} // remove @preserve from results -Ae.link={};return _cleanupPreserve(ye,Ae)};we.frame=(R,pe,Ae,ve,Ee=null)=>{_validateFrame(Ae);Ae=Ae[0];const Ce=R.options;const _e={embed:_getFrameFlag(Ae,Ce,"embed"),explicit:_getFrameFlag(Ae,Ce,"explicit"),requireAll:_getFrameFlag(Ae,Ce,"requireAll")};if(!R.link.hasOwnProperty(R.graph)){R.link[R.graph]={}}const Ie=R.link[R.graph];const Se=_filterSubjects(R,pe,Ae,_e);const Be=Object.keys(Se).sort();for(const ke of Be){const Be=Se[ke];if(Ee===null){R.uniqueEmbeds={[R.graph]:{}}}else{R.uniqueEmbeds[R.graph]=R.uniqueEmbeds[R.graph]||{}}if(_e.embed==="@link"&&ke in Ie){_addFrameOutput(ve,Ee,Ie[ke]);continue}const Oe={"@id":ke};if(ke.indexOf("_:")===0){me.addValue(R.bnodeMap,ke,Oe,{propertyIsArray:true})}Ie[ke]=Oe;if((_e.embed==="@first"||_e.embed==="@last")&&R.is11){throw new be("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:Ae})}if(!R.embedded&&R.uniqueEmbeds[R.graph].hasOwnProperty(ke)){continue}if(R.embedded&&(_e.embed==="@never"||_createsCircularReference(Be,R.graph,R.subjectStack))){_addFrameOutput(ve,Ee,Oe);continue}if(R.embedded&&(_e.embed=="@first"||_e.embed=="@once")&&R.uniqueEmbeds[R.graph].hasOwnProperty(ke)){_addFrameOutput(ve,Ee,Oe);continue}if(_e.embed==="@last"){if(ke in R.uniqueEmbeds[R.graph]){_removeEmbed(R,ke)}}R.uniqueEmbeds[R.graph][ke]={parent:ve,property:Ee};R.subjectStack.push({subject:Be,graph:R.graph});if(ke in R.graphMap){let pe=false;let he=null;if(!("@graph"in Ae)){pe=R.graph!=="@merged";he={}}else{he=Ae["@graph"][0];pe=!(ke==="@merged"||ke==="@default");if(!ye.isObject(he)){he={}}}if(pe){we.frame({...R,graph:ke,embedded:false},Object.keys(R.graphMap[ke]).sort(),[he],Oe,"@graph")}}if("@included"in Ae){we.frame({...R,embedded:false},pe,Ae["@included"],Oe,"@included")}for(const pe of Object.keys(Be).sort()){if(he(pe)){Oe[pe]=me.clone(Be[pe]);if(pe==="@type"){for(const pe of Be["@type"]){if(pe.indexOf("_:")===0){me.addValue(R.bnodeMap,pe,Oe,{propertyIsArray:true})}}}continue}if(_e.explicit&&!(pe in Ae)){continue}for(const he of Be[pe]){const ye=pe in Ae?Ae[pe]:_createImplicitFrame(_e);if(ge.isList(he)){const ye=Ae[pe]&&Ae[pe][0]&&Ae[pe][0]["@list"]?Ae[pe][0]["@list"]:_createImplicitFrame(_e);const ve={"@list":[]};_addFrameOutput(Oe,pe,ve);const be=he["@list"];for(const pe of be){if(ge.isSubjectReference(pe)){we.frame({...R,embedded:true},[pe["@id"]],ye,ve,"@list")}else{_addFrameOutput(ve,"@list",me.clone(pe))}}}else if(ge.isSubjectReference(he)){we.frame({...R,embedded:true},[he["@id"]],ye,Oe,pe)}else if(_valueMatch(ye[0],he)){_addFrameOutput(Oe,pe,me.clone(he))}}}for(const R of Object.keys(Ae).sort()){if(R==="@type"){if(!ye.isObject(Ae[R][0])||!("@default"in Ae[R][0])){continue}}else if(he(R)){continue}const pe=Ae[R][0]||{};const ge=_getFrameFlag(pe,Ce,"omitDefault");if(!ge&&!(R in Oe)){let Ae="@null";if("@default"in pe){Ae=me.clone(pe["@default"])}if(!ye.isArray(Ae)){Ae=[Ae]}Oe[R]=[{"@preserve":Ae}]}}for(const pe of Object.keys(Ae["@reverse"]||{}).sort()){const he=Ae["@reverse"][pe];for(const Ae of Object.keys(R.subjects)){const ge=me.getValues(R.subjects[Ae],pe);if(ge.some((R=>R["@id"]===ke))){Oe["@reverse"]=Oe["@reverse"]||{};me.addValue(Oe["@reverse"],pe,[],{propertyIsArray:true});we.frame({...R,embedded:true},[Ae],he,Oe["@reverse"][pe],Ee)}}}_addFrameOutput(ve,Ee,Oe);R.subjectStack.pop()}};we.cleanupNull=(R,pe)=>{if(ye.isArray(R)){const Ae=R.map((R=>we.cleanupNull(R,pe)));return Ae.filter((R=>R))}if(R==="@null"){return null}if(ye.isObject(R)){if("@id"in R){const Ae=R["@id"];if(pe.link.hasOwnProperty(Ae)){const he=pe.link[Ae].indexOf(R);if(he!==-1){return pe.link[Ae][he]}pe.link[Ae].push(R)}else{pe.link[Ae]=[R]}}for(const Ae in R){R[Ae]=we.cleanupNull(R[Ae],pe)}}return R};function _createImplicitFrame(R){const pe={};for(const Ae in R){if(R[Ae]!==undefined){pe["@"+Ae]=[R[Ae]]}}return[pe]}function _createsCircularReference(R,pe,Ae){for(let he=Ae.length-1;he>=0;--he){const ge=Ae[he];if(ge.graph===pe&&ge.subject["@id"]===R["@id"]){return true}}return false}function _getFrameFlag(R,pe,Ae){const he="@"+Ae;let ge=he in R?R[he][0]:pe[Ae];if(Ae==="embed"){if(ge===true){ge="@once"}else if(ge===false){ge="@never"}else if(ge!=="@always"&&ge!=="@never"&&ge!=="@link"&&ge!=="@first"&&ge!=="@last"&&ge!=="@once"){throw new be("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:R})}}return ge}function _validateFrame(R){if(!ye.isArray(R)||R.length!==1||!ye.isObject(R[0])){throw new be("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:R})}if("@id"in R[0]){for(const pe of me.asArray(R[0]["@id"])){if(!(ye.isObject(pe)||ve.isAbsolute(pe))||ye.isString(pe)&&pe.indexOf("_:")===0){throw new be("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:R})}}}if("@type"in R[0]){for(const pe of me.asArray(R[0]["@type"])){if(!(ye.isObject(pe)||ve.isAbsolute(pe)||pe==="@json")||ye.isString(pe)&&pe.indexOf("_:")===0){throw new be("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:R})}}}}function _filterSubjects(R,pe,Ae,he){const ge={};for(const ye of pe){const pe=R.graphMap[R.graph][ye];if(_filterSubject(R,pe,Ae,he)){ge[ye]=pe}}return ge}function _filterSubject(R,pe,Ae,ve){let be=true;let Ee=false;for(const Ce in Ae){let we=false;const _e=me.getValues(pe,Ce);const Ie=me.getValues(Ae,Ce).length===0;if(Ce==="@id"){if(ye.isEmptyObject(Ae["@id"][0]||{})){we=true}else if(Ae["@id"].length>=0){we=Ae["@id"].includes(_e[0])}if(!ve.requireAll){return we}}else if(Ce==="@type"){be=false;if(Ie){if(_e.length>0){return false}we=true}else if(Ae["@type"].length===1&&ye.isEmptyObject(Ae["@type"][0])){we=_e.length>0}else{for(const R of Ae["@type"]){if(ye.isObject(R)&&"@default"in R){we=true}else{we=we||_e.some((pe=>pe===R))}}}if(!ve.requireAll){return we}}else if(he(Ce)){continue}else{const pe=me.getValues(Ae,Ce)[0];let he=false;if(pe){_validateFrame([pe]);he="@default"in pe}be=false;if(_e.length===0&&he){continue}if(_e.length>0&&Ie){return false}if(pe===undefined){if(_e.length>0){return false}we=true}else{if(ge.isList(pe)){const Ae=pe["@list"][0];if(ge.isList(_e[0])){const pe=_e[0]["@list"];if(ge.isValue(Ae)){we=pe.some((R=>_valueMatch(Ae,R)))}else if(ge.isSubject(Ae)||ge.isSubjectReference(Ae)){we=pe.some((pe=>_nodeMatch(R,Ae,pe,ve)))}}}else if(ge.isValue(pe)){we=_e.some((R=>_valueMatch(pe,R)))}else if(ge.isSubjectReference(pe)){we=_e.some((Ae=>_nodeMatch(R,pe,Ae,ve)))}else if(ye.isObject(pe)){we=_e.length>0}else{we=false}}}if(!we&&ve.requireAll){return false}Ee=Ee||we}return be||Ee}function _removeEmbed(R,pe){const Ae=R.uniqueEmbeds[R.graph];const he=Ae[pe];const ge=he.parent;const ve=he.property;const be={"@id":pe};if(ye.isArray(ge)){for(let R=0;R{const pe=Object.keys(Ae);for(const he of pe){if(he in Ae&&ye.isObject(Ae[he].parent)&&Ae[he].parent["@id"]===R){delete Ae[he];removeDependents(he)}}};removeDependents(pe)} +Ae.link={};return _cleanupPreserve(ye,Ae)};Ce.frame=(R,pe,Ae,ve,Ee=null)=>{_validateFrame(Ae);Ae=Ae[0];const we=R.options;const _e={embed:_getFrameFlag(Ae,we,"embed"),explicit:_getFrameFlag(Ae,we,"explicit"),requireAll:_getFrameFlag(Ae,we,"requireAll")};if(!R.link.hasOwnProperty(R.graph)){R.link[R.graph]={}}const Ie=R.link[R.graph];const Se=_filterSubjects(R,pe,Ae,_e);const Be=Object.keys(Se).sort();for(const ke of Be){const Be=Se[ke];if(Ee===null){R.uniqueEmbeds={[R.graph]:{}}}else{R.uniqueEmbeds[R.graph]=R.uniqueEmbeds[R.graph]||{}}if(_e.embed==="@link"&&ke in Ie){_addFrameOutput(ve,Ee,Ie[ke]);continue}const Oe={"@id":ke};if(ke.indexOf("_:")===0){me.addValue(R.bnodeMap,ke,Oe,{propertyIsArray:true})}Ie[ke]=Oe;if((_e.embed==="@first"||_e.embed==="@last")&&R.is11){throw new be("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:Ae})}if(!R.embedded&&R.uniqueEmbeds[R.graph].hasOwnProperty(ke)){continue}if(R.embedded&&(_e.embed==="@never"||_createsCircularReference(Be,R.graph,R.subjectStack))){_addFrameOutput(ve,Ee,Oe);continue}if(R.embedded&&(_e.embed=="@first"||_e.embed=="@once")&&R.uniqueEmbeds[R.graph].hasOwnProperty(ke)){_addFrameOutput(ve,Ee,Oe);continue}if(_e.embed==="@last"){if(ke in R.uniqueEmbeds[R.graph]){_removeEmbed(R,ke)}}R.uniqueEmbeds[R.graph][ke]={parent:ve,property:Ee};R.subjectStack.push({subject:Be,graph:R.graph});if(ke in R.graphMap){let pe=false;let he=null;if(!("@graph"in Ae)){pe=R.graph!=="@merged";he={}}else{he=Ae["@graph"][0];pe=!(ke==="@merged"||ke==="@default");if(!ye.isObject(he)){he={}}}if(pe){Ce.frame({...R,graph:ke,embedded:false},Object.keys(R.graphMap[ke]).sort(),[he],Oe,"@graph")}}if("@included"in Ae){Ce.frame({...R,embedded:false},pe,Ae["@included"],Oe,"@included")}for(const pe of Object.keys(Be).sort()){if(he(pe)){Oe[pe]=me.clone(Be[pe]);if(pe==="@type"){for(const pe of Be["@type"]){if(pe.indexOf("_:")===0){me.addValue(R.bnodeMap,pe,Oe,{propertyIsArray:true})}}}continue}if(_e.explicit&&!(pe in Ae)){continue}for(const he of Be[pe]){const ye=pe in Ae?Ae[pe]:_createImplicitFrame(_e);if(ge.isList(he)){const ye=Ae[pe]&&Ae[pe][0]&&Ae[pe][0]["@list"]?Ae[pe][0]["@list"]:_createImplicitFrame(_e);const ve={"@list":[]};_addFrameOutput(Oe,pe,ve);const be=he["@list"];for(const pe of be){if(ge.isSubjectReference(pe)){Ce.frame({...R,embedded:true},[pe["@id"]],ye,ve,"@list")}else{_addFrameOutput(ve,"@list",me.clone(pe))}}}else if(ge.isSubjectReference(he)){Ce.frame({...R,embedded:true},[he["@id"]],ye,Oe,pe)}else if(_valueMatch(ye[0],he)){_addFrameOutput(Oe,pe,me.clone(he))}}}for(const R of Object.keys(Ae).sort()){if(R==="@type"){if(!ye.isObject(Ae[R][0])||!("@default"in Ae[R][0])){continue}}else if(he(R)){continue}const pe=Ae[R][0]||{};const ge=_getFrameFlag(pe,we,"omitDefault");if(!ge&&!(R in Oe)){let Ae="@null";if("@default"in pe){Ae=me.clone(pe["@default"])}if(!ye.isArray(Ae)){Ae=[Ae]}Oe[R]=[{"@preserve":Ae}]}}for(const pe of Object.keys(Ae["@reverse"]||{}).sort()){const he=Ae["@reverse"][pe];for(const Ae of Object.keys(R.subjects)){const ge=me.getValues(R.subjects[Ae],pe);if(ge.some((R=>R["@id"]===ke))){Oe["@reverse"]=Oe["@reverse"]||{};me.addValue(Oe["@reverse"],pe,[],{propertyIsArray:true});Ce.frame({...R,embedded:true},[Ae],he,Oe["@reverse"][pe],Ee)}}}_addFrameOutput(ve,Ee,Oe);R.subjectStack.pop()}};Ce.cleanupNull=(R,pe)=>{if(ye.isArray(R)){const Ae=R.map((R=>Ce.cleanupNull(R,pe)));return Ae.filter((R=>R))}if(R==="@null"){return null}if(ye.isObject(R)){if("@id"in R){const Ae=R["@id"];if(pe.link.hasOwnProperty(Ae)){const he=pe.link[Ae].indexOf(R);if(he!==-1){return pe.link[Ae][he]}pe.link[Ae].push(R)}else{pe.link[Ae]=[R]}}for(const Ae in R){R[Ae]=Ce.cleanupNull(R[Ae],pe)}}return R};function _createImplicitFrame(R){const pe={};for(const Ae in R){if(R[Ae]!==undefined){pe["@"+Ae]=[R[Ae]]}}return[pe]}function _createsCircularReference(R,pe,Ae){for(let he=Ae.length-1;he>=0;--he){const ge=Ae[he];if(ge.graph===pe&&ge.subject["@id"]===R["@id"]){return true}}return false}function _getFrameFlag(R,pe,Ae){const he="@"+Ae;let ge=he in R?R[he][0]:pe[Ae];if(Ae==="embed"){if(ge===true){ge="@once"}else if(ge===false){ge="@never"}else if(ge!=="@always"&&ge!=="@never"&&ge!=="@link"&&ge!=="@first"&&ge!=="@last"&&ge!=="@once"){throw new be("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:R})}}return ge}function _validateFrame(R){if(!ye.isArray(R)||R.length!==1||!ye.isObject(R[0])){throw new be("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:R})}if("@id"in R[0]){for(const pe of me.asArray(R[0]["@id"])){if(!(ye.isObject(pe)||ve.isAbsolute(pe))||ye.isString(pe)&&pe.indexOf("_:")===0){throw new be("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:R})}}}if("@type"in R[0]){for(const pe of me.asArray(R[0]["@type"])){if(!(ye.isObject(pe)||ve.isAbsolute(pe)||pe==="@json")||ye.isString(pe)&&pe.indexOf("_:")===0){throw new be("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:R})}}}}function _filterSubjects(R,pe,Ae,he){const ge={};for(const ye of pe){const pe=R.graphMap[R.graph][ye];if(_filterSubject(R,pe,Ae,he)){ge[ye]=pe}}return ge}function _filterSubject(R,pe,Ae,ve){let be=true;let Ee=false;for(const we in Ae){let Ce=false;const _e=me.getValues(pe,we);const Ie=me.getValues(Ae,we).length===0;if(we==="@id"){if(ye.isEmptyObject(Ae["@id"][0]||{})){Ce=true}else if(Ae["@id"].length>=0){Ce=Ae["@id"].includes(_e[0])}if(!ve.requireAll){return Ce}}else if(we==="@type"){be=false;if(Ie){if(_e.length>0){return false}Ce=true}else if(Ae["@type"].length===1&&ye.isEmptyObject(Ae["@type"][0])){Ce=_e.length>0}else{for(const R of Ae["@type"]){if(ye.isObject(R)&&"@default"in R){Ce=true}else{Ce=Ce||_e.some((pe=>pe===R))}}}if(!ve.requireAll){return Ce}}else if(he(we)){continue}else{const pe=me.getValues(Ae,we)[0];let he=false;if(pe){_validateFrame([pe]);he="@default"in pe}be=false;if(_e.length===0&&he){continue}if(_e.length>0&&Ie){return false}if(pe===undefined){if(_e.length>0){return false}Ce=true}else{if(ge.isList(pe)){const Ae=pe["@list"][0];if(ge.isList(_e[0])){const pe=_e[0]["@list"];if(ge.isValue(Ae)){Ce=pe.some((R=>_valueMatch(Ae,R)))}else if(ge.isSubject(Ae)||ge.isSubjectReference(Ae)){Ce=pe.some((pe=>_nodeMatch(R,Ae,pe,ve)))}}}else if(ge.isValue(pe)){Ce=_e.some((R=>_valueMatch(pe,R)))}else if(ge.isSubjectReference(pe)){Ce=_e.some((Ae=>_nodeMatch(R,pe,Ae,ve)))}else if(ye.isObject(pe)){Ce=_e.length>0}else{Ce=false}}}if(!Ce&&ve.requireAll){return false}Ee=Ee||Ce}return be||Ee}function _removeEmbed(R,pe){const Ae=R.uniqueEmbeds[R.graph];const he=Ae[pe];const ge=he.parent;const ve=he.property;const be={"@id":pe};if(ye.isArray(ge)){for(let R=0;R{const pe=Object.keys(Ae);for(const he of pe){if(he in Ae&&ye.isObject(Ae[he].parent)&&Ae[he].parent["@id"]===R){delete Ae[he];removeDependents(he)}}};removeDependents(pe)} /** * Removes the @preserve keywords from expanded result of framing. * @@ -84,7 +84,7 @@ Ae.link={};return _cleanupPreserve(ye,Ae)};we.frame=(R,pe,Ae,ve,Ee=null)=>{_vali * @return the resulting output. */function _cleanupPreserve(R,pe){if(ye.isArray(R)){return R.map((R=>_cleanupPreserve(R,pe)))}if(ye.isObject(R)){ // remove @preserve -if("@preserve"in R){return R["@preserve"][0]}if(ge.isValue(R)){return R}if(ge.isList(R)){R["@list"]=_cleanupPreserve(R["@list"],pe);return R}if("@id"in R){const Ae=R["@id"];if(pe.link.hasOwnProperty(Ae)){const he=pe.link[Ae].indexOf(R);if(he!==-1){return pe.link[Ae][he]}pe.link[Ae].push(R)}else{pe.link[Ae]=[R]}}for(const Ae in R){if(Ae==="@id"&&pe.bnodesToClear.includes(R[Ae])){delete R["@id"];continue}R[Ae]=_cleanupPreserve(R[Ae],pe)}}return R}function _addFrameOutput(R,pe,Ae){if(ye.isObject(R)){me.addValue(R,pe,Ae,{propertyIsArray:true})}else{R.push(Ae)}}function _nodeMatch(R,pe,Ae,he){if(!("@id"in Ae)){return false}const ge=R.subjects[Ae["@id"]];return ge&&_filterSubject(R,ge,pe,he)}function _valueMatch(R,pe){const Ae=pe["@value"];const he=pe["@type"];const ge=pe["@language"];const me=R["@value"]?ye.isArray(R["@value"])?R["@value"]:[R["@value"]]:[];const ve=R["@type"]?ye.isArray(R["@type"])?R["@type"]:[R["@type"]]:[];const be=R["@language"]?ye.isArray(R["@language"])?R["@language"]:[R["@language"]]:[];if(me.length===0&&ve.length===0&&be.length===0){return true}if(!(me.includes(Ae)||ye.isEmptyObject(me[0]))){return false}if(!(!he&&ve.length===0||ve.includes(he)||he&&ye.isEmptyObject(ve[0]))){return false}if(!(!ge&&be.length===0||be.includes(ge)||ge&&ye.isEmptyObject(be[0]))){return false}return true}},10999:(R,pe,Ae)=>{"use strict";const he=Ae(11625);const ge=Ae(13631);const ye=Ae(86891);const{REGEX_BCP47:me,addValue:ve}=Ae(69450);const{handleEvent:be}=Ae(75836);const{RDF_LIST:Ee,RDF_FIRST:Ce,RDF_REST:we,RDF_NIL:_e,RDF_TYPE:Ie,RDF_JSON_LITERAL:Se,XSD_BOOLEAN:Be,XSD_DOUBLE:ke,XSD_INTEGER:Oe,XSD_STRING:Re}=Ae(18441);const Qe={};R.exports=Qe;Qe.fromRDF=async(R,pe)=>{const{useRdfType:Ae=false,useNativeTypes:me=false,rdfDirection:be=null}=pe;const Se={};const Be={"@default":Se};const ke={};if(be){if(be==="compound-literal"){throw new he("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:be})}else if(be!=="i18n-datatype"){throw new he("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:be})}}for(const he of R){const R=he.graph.termType==="DefaultGraph"?"@default":he.graph.value;if(!(R in Be)){Be[R]={}}if(R!=="@default"&&!(R in Se)){Se[R]={"@id":R}}const ge=Be[R];const ye=he.subject.value;const Ee=he.predicate.value;const Ce=he.object;if(!(ye in ge)){ge[ye]={"@id":ye}}const we=ge[ye];const Oe=Ce.termType.endsWith("Node");if(Oe&&!(Ce.value in ge)){ge[Ce.value]={"@id":Ce.value}}if(Ee===Ie&&!Ae&&Oe){ve(we,"@type",Ce.value,{propertyIsArray:true});continue}const Re=_RDFToObject(Ce,me,be,pe);ve(we,Ee,Re,{propertyIsArray:true});if(Oe){if(Ce.value===_e){const R=ge[Ce.value];if(!("usages"in R)){R.usages=[]}R.usages.push({node:we,property:Ee,value:Re})}else if(Ce.value in ke){ke[Ce.value]=false}else{ke[Ce.value]={node:we,property:Ee,value:Re}}}}for(const R in Be){const pe=Be[R];if(!(_e in pe)){continue}const Ae=pe[_e];if(!Ae.usages){continue}for(let R of Ae.usages){let Ae=R.node;let he=R.property;let me=R.value;const ve=[];const be=[];let _e=Object.keys(Ae).length;while(he===we&&ye.isObject(ke[Ae["@id"]])&&ye.isArray(Ae[Ce])&&Ae[Ce].length===1&&ye.isArray(Ae[we])&&Ae[we].length===1&&(_e===3||_e===4&&ye.isArray(Ae["@type"])&&Ae["@type"].length===1&&Ae["@type"][0]===Ee)){ve.push(Ae[Ce][0]);be.push(Ae["@id"]);R=ke[Ae["@id"]];Ae=R.node;he=R.property;me=R.value;_e=Object.keys(Ae).length;if(!ge.isBlankNode(Ae)){break}}delete me["@id"];me["@list"]=ve.reverse();for(const R of be){delete pe[R]}}delete Ae.usages}const Oe=[];const Re=Object.keys(Se).sort();for(const R of Re){const pe=Se[R];if(R in Be){const Ae=pe["@graph"]=[];const he=Be[R];const ye=Object.keys(he).sort();for(const R of ye){const pe=he[R];if(!ge.isSubjectReference(pe)){Ae.push(pe)}}}if(!ge.isSubjectReference(pe)){Oe.push(pe)}}return Oe};function _RDFToObject(R,pe,Ae,ge){if(R.termType.endsWith("Node")){return{"@id":R.value}}const ve={"@value":R.value};if(R.language){if(!R.language.match(me)){if(ge.eventHandler){be({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:R.language}},options:ge})}}ve["@language"]=R.language}else{let Ee=R.datatype.value;if(!Ee){Ee=Re}if(Ee===Se){Ee="@json";try{ve["@value"]=JSON.parse(ve["@value"])}catch(R){throw new he("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:ve["@value"],cause:R})}}if(pe){if(Ee===Be){if(ve["@value"]==="true"){ve["@value"]=true}else if(ve["@value"]==="false"){ve["@value"]=false}}else if(ye.isNumeric(ve["@value"])){if(Ee===Oe){const R=parseInt(ve["@value"],10);if(R.toFixed(0)===ve["@value"]){ve["@value"]=R}}else if(Ee===ke){ve["@value"]=parseFloat(ve["@value"])}}if(![Be,Oe,ke,Re].includes(Ee)){ve["@type"]=Ee}}else if(Ae==="i18n-datatype"&&Ee.startsWith("https://www.w3.org/ns/i18n#")){const[,R,pe]=Ee.split(/[#_]/);if(R.length>0){ve["@language"]=R;if(!R.match(me)){if(ge.eventHandler){be({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:R}},options:ge})}}}ve["@direction"]=pe}else if(Ee!==Re){ve["@type"]=Ee}}return ve}},13631:(R,pe,Ae)=>{"use strict";const he=Ae(86891);const ge={};R.exports=ge;ge.isSubject=R=>{if(he.isObject(R)&&!("@value"in R||"@set"in R||"@list"in R)){const pe=Object.keys(R).length;return pe>1||!("@id"in R)}return false};ge.isSubjectReference=R=>he.isObject(R)&&Object.keys(R).length===1&&"@id"in R;ge.isValue=R=>he.isObject(R)&&"@value"in R;ge.isList=R=>he.isObject(R)&&"@list"in R;ge.isGraph=R=>he.isObject(R)&&"@graph"in R&&Object.keys(R).filter((R=>R!=="@id"&&R!=="@index")).length===1;ge.isSimpleGraph=R=>ge.isGraph(R)&&!("@id"in R);ge.isBlankNode=R=>{if(he.isObject(R)){if("@id"in R){const pe=R["@id"];return!he.isString(pe)||pe.indexOf("_:")===0}return Object.keys(R).length===0||!("@value"in R||"@set"in R||"@list"in R)}return false}},11171:(R,pe,Ae)=>{R.exports=Ae(63156)},63156:(R,pe,Ae)=>{ +if("@preserve"in R){return R["@preserve"][0]}if(ge.isValue(R)){return R}if(ge.isList(R)){R["@list"]=_cleanupPreserve(R["@list"],pe);return R}if("@id"in R){const Ae=R["@id"];if(pe.link.hasOwnProperty(Ae)){const he=pe.link[Ae].indexOf(R);if(he!==-1){return pe.link[Ae][he]}pe.link[Ae].push(R)}else{pe.link[Ae]=[R]}}for(const Ae in R){if(Ae==="@id"&&pe.bnodesToClear.includes(R[Ae])){delete R["@id"];continue}R[Ae]=_cleanupPreserve(R[Ae],pe)}}return R}function _addFrameOutput(R,pe,Ae){if(ye.isObject(R)){me.addValue(R,pe,Ae,{propertyIsArray:true})}else{R.push(Ae)}}function _nodeMatch(R,pe,Ae,he){if(!("@id"in Ae)){return false}const ge=R.subjects[Ae["@id"]];return ge&&_filterSubject(R,ge,pe,he)}function _valueMatch(R,pe){const Ae=pe["@value"];const he=pe["@type"];const ge=pe["@language"];const me=R["@value"]?ye.isArray(R["@value"])?R["@value"]:[R["@value"]]:[];const ve=R["@type"]?ye.isArray(R["@type"])?R["@type"]:[R["@type"]]:[];const be=R["@language"]?ye.isArray(R["@language"])?R["@language"]:[R["@language"]]:[];if(me.length===0&&ve.length===0&&be.length===0){return true}if(!(me.includes(Ae)||ye.isEmptyObject(me[0]))){return false}if(!(!he&&ve.length===0||ve.includes(he)||he&&ye.isEmptyObject(ve[0]))){return false}if(!(!ge&&be.length===0||be.includes(ge)||ge&&ye.isEmptyObject(be[0]))){return false}return true}},10999:(R,pe,Ae)=>{"use strict";const he=Ae(11625);const ge=Ae(13631);const ye=Ae(86891);const{REGEX_BCP47:me,addValue:ve}=Ae(69450);const{handleEvent:be}=Ae(75836);const{RDF_LIST:Ee,RDF_FIRST:we,RDF_REST:Ce,RDF_NIL:_e,RDF_TYPE:Ie,RDF_JSON_LITERAL:Se,XSD_BOOLEAN:Be,XSD_DOUBLE:ke,XSD_INTEGER:Oe,XSD_STRING:Re}=Ae(18441);const Qe={};R.exports=Qe;Qe.fromRDF=async(R,pe)=>{const{useRdfType:Ae=false,useNativeTypes:me=false,rdfDirection:be=null}=pe;const Se={};const Be={"@default":Se};const ke={};if(be){if(be==="compound-literal"){throw new he("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:be})}else if(be!=="i18n-datatype"){throw new he("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:be})}}for(const he of R){const R=he.graph.termType==="DefaultGraph"?"@default":he.graph.value;if(!(R in Be)){Be[R]={}}if(R!=="@default"&&!(R in Se)){Se[R]={"@id":R}}const ge=Be[R];const ye=he.subject.value;const Ee=he.predicate.value;const we=he.object;if(!(ye in ge)){ge[ye]={"@id":ye}}const Ce=ge[ye];const Oe=we.termType.endsWith("Node");if(Oe&&!(we.value in ge)){ge[we.value]={"@id":we.value}}if(Ee===Ie&&!Ae&&Oe){ve(Ce,"@type",we.value,{propertyIsArray:true});continue}const Re=_RDFToObject(we,me,be,pe);ve(Ce,Ee,Re,{propertyIsArray:true});if(Oe){if(we.value===_e){const R=ge[we.value];if(!("usages"in R)){R.usages=[]}R.usages.push({node:Ce,property:Ee,value:Re})}else if(we.value in ke){ke[we.value]=false}else{ke[we.value]={node:Ce,property:Ee,value:Re}}}}for(const R in Be){const pe=Be[R];if(!(_e in pe)){continue}const Ae=pe[_e];if(!Ae.usages){continue}for(let R of Ae.usages){let Ae=R.node;let he=R.property;let me=R.value;const ve=[];const be=[];let _e=Object.keys(Ae).length;while(he===Ce&&ye.isObject(ke[Ae["@id"]])&&ye.isArray(Ae[we])&&Ae[we].length===1&&ye.isArray(Ae[Ce])&&Ae[Ce].length===1&&(_e===3||_e===4&&ye.isArray(Ae["@type"])&&Ae["@type"].length===1&&Ae["@type"][0]===Ee)){ve.push(Ae[we][0]);be.push(Ae["@id"]);R=ke[Ae["@id"]];Ae=R.node;he=R.property;me=R.value;_e=Object.keys(Ae).length;if(!ge.isBlankNode(Ae)){break}}delete me["@id"];me["@list"]=ve.reverse();for(const R of be){delete pe[R]}}delete Ae.usages}const Oe=[];const Re=Object.keys(Se).sort();for(const R of Re){const pe=Se[R];if(R in Be){const Ae=pe["@graph"]=[];const he=Be[R];const ye=Object.keys(he).sort();for(const R of ye){const pe=he[R];if(!ge.isSubjectReference(pe)){Ae.push(pe)}}}if(!ge.isSubjectReference(pe)){Oe.push(pe)}}return Oe};function _RDFToObject(R,pe,Ae,ge){if(R.termType.endsWith("Node")){return{"@id":R.value}}const ve={"@value":R.value};if(R.language){if(!R.language.match(me)){if(ge.eventHandler){be({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:R.language}},options:ge})}}ve["@language"]=R.language}else{let Ee=R.datatype.value;if(!Ee){Ee=Re}if(Ee===Se){Ee="@json";try{ve["@value"]=JSON.parse(ve["@value"])}catch(R){throw new he("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:ve["@value"],cause:R})}}if(pe){if(Ee===Be){if(ve["@value"]==="true"){ve["@value"]=true}else if(ve["@value"]==="false"){ve["@value"]=false}}else if(ye.isNumeric(ve["@value"])){if(Ee===Oe){const R=parseInt(ve["@value"],10);if(R.toFixed(0)===ve["@value"]){ve["@value"]=R}}else if(Ee===ke){ve["@value"]=parseFloat(ve["@value"])}}if(![Be,Oe,ke,Re].includes(Ee)){ve["@type"]=Ee}}else if(Ae==="i18n-datatype"&&Ee.startsWith("https://www.w3.org/ns/i18n#")){const[,R,pe]=Ee.split(/[#_]/);if(R.length>0){ve["@language"]=R;if(!R.match(me)){if(ge.eventHandler){be({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:R}},options:ge})}}}ve["@direction"]=pe}else if(Ee!==Re){ve["@type"]=Ee}}return ve}},13631:(R,pe,Ae)=>{"use strict";const he=Ae(86891);const ge={};R.exports=ge;ge.isSubject=R=>{if(he.isObject(R)&&!("@value"in R||"@set"in R||"@list"in R)){const pe=Object.keys(R).length;return pe>1||!("@id"in R)}return false};ge.isSubjectReference=R=>he.isObject(R)&&Object.keys(R).length===1&&"@id"in R;ge.isValue=R=>he.isObject(R)&&"@value"in R;ge.isList=R=>he.isObject(R)&&"@list"in R;ge.isGraph=R=>he.isObject(R)&&"@graph"in R&&Object.keys(R).filter((R=>R!=="@id"&&R!=="@index")).length===1;ge.isSimpleGraph=R=>ge.isGraph(R)&&!("@id"in R);ge.isBlankNode=R=>{if(he.isObject(R)){if("@id"in R){const pe=R["@id"];return!he.isString(pe)||pe.indexOf("_:")===0}return Object.keys(R).length===0||!("@value"in R||"@set"in R||"@list"in R)}return false}},11171:(R,pe,Ae)=>{R.exports=Ae(63156)},63156:(R,pe,Ae)=>{ /** * A JavaScript implementation of the JSON-LD API. * @@ -120,7 +120,7 @@ if("@preserve"in R){return R["@preserve"][0]}if(ge.isValue(R)){return R}if(ge.is * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -const he=Ae(43);const ge=Ae(8631);const ye=Ae(69450);const me=Ae(70756);const ve=ye.IdentifierIssuer;const be=Ae(11625);const Ee=Ae(51370);const Ce=Ae(13611);const{expand:we}=Ae(99969);const{flatten:_e}=Ae(59030);const{fromRDF:Ie}=Ae(10999);const{toRDF:Se}=Ae(29760);const{frameMergedOrDefault:Be,cleanupNull:ke}=Ae(36661);const{isArray:Oe,isObject:Re,isString:Qe}=Ae(86891);const{isSubjectReference:xe}=Ae(13631);const{expandIri:Pe,getInitialContext:Te,process:De,processingMode:Ne}=Ae(41866);const{compact:Me,compactIri:je}=Ae(63073);const{createNodeMap:Fe,createMergedNodeMap:Le,mergeNodeMaps:Ue}=Ae(99618);const{logEventHandler:He,logWarningEventHandler:Je,safeEventHandler:We,setDefaultEventHandler:Ve,setupEventHandler:Ke,strictEventHandler:Ge,unhandledEventHandler:Ye}=Ae(75836);const wrapper=function(R){const pe={};const qe=100;const $e=new Ee({max:qe});R.compact=async function(pe,Ae,he){if(arguments.length<2){throw new TypeError("Could not compact, too few arguments.")}if(Ae===null){throw new be("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"})}if(pe===null){return null}he=_setDefaults(he,{base:Qe(pe)?pe:"",compactArrays:true,compactToRelative:true,graph:false,skipExpansion:false,link:false,issuer:new ve("_:b"),contextResolver:new me({sharedCache:$e})});if(he.link){he.skipExpansion=true}if(!he.compactToRelative){delete he.base}let ge;if(he.skipExpansion){ge=pe}else{ge=await R.expand(pe,he)}const Ee=await R.processContext(Te(he),Ae,he);let Ce=await Me({activeCtx:Ee,element:ge,options:he});if(he.compactArrays&&!he.graph&&Oe(Ce)){if(Ce.length===1){Ce=Ce[0]}else if(Ce.length===0){Ce={}}}else if(he.graph&&Re(Ce)){Ce=[Ce]}if(Re(Ae)&&"@context"in Ae){Ae=Ae["@context"]}Ae=ye.clone(Ae);if(!Oe(Ae)){Ae=[Ae]}const we=Ae;Ae=[];for(let R=0;R0){Ae.push(we[R])}}const _e=Ae.length>0;if(Ae.length===1){Ae=Ae[0]}if(Oe(Ce)){const R=je({activeCtx:Ee,iri:"@graph",relativeTo:{vocab:true}});const pe=Ce;Ce={};if(_e){Ce["@context"]=Ae}Ce[R]=pe}else if(Re(Ce)&&_e){const R=Ce;Ce={"@context":Ae};for(const pe in R){Ce[pe]=R[pe]}}return Ce};R.expand=async function(pe,Ae){if(arguments.length<1){throw new TypeError("Could not expand, too few arguments.")}Ae=_setDefaults(Ae,{keepFreeFloatingNodes:false,contextResolver:new me({sharedCache:$e})});const he={};const ge=[];if("expandContext"in Ae){const R=ye.clone(Ae.expandContext);if(Re(R)&&"@context"in R){he.expandContext=R}else{he.expandContext={"@context":R}}ge.push(he.expandContext)}let ve;if(!Qe(pe)){he.input=ye.clone(pe)}else{const ye=await R.get(pe,Ae);ve=ye.documentUrl;he.input=ye.document;if(ye.contextUrl){he.remoteContext={"@context":ye.contextUrl};ge.push(he.remoteContext)}}if(!("base"in Ae)){Ae.base=ve||""}let be=Te(Ae);for(const R of ge){be=await De({activeCtx:be,localCtx:R,options:Ae})}let Ee=await we({activeCtx:be,element:he.input,options:Ae});if(Re(Ee)&&"@graph"in Ee&&Object.keys(Ee).length===1){Ee=Ee["@graph"]}else if(Ee===null){Ee=[]}if(!Oe(Ee)){Ee=[Ee]}return Ee};R.flatten=async function(pe,Ae,he){if(arguments.length<1){return new TypeError("Could not flatten, too few arguments.")}if(typeof Ae==="function"){Ae=null}else{Ae=Ae||null}he=_setDefaults(he,{base:Qe(pe)?pe:"",contextResolver:new me({sharedCache:$e})});const ge=await R.expand(pe,he);const ye=_e(ge);if(Ae===null){return ye}he.graph=true;he.skipExpansion=true;const ve=await R.compact(ye,Ae,he);return ve};R.frame=async function(pe,Ae,he){if(arguments.length<2){throw new TypeError("Could not frame, too few arguments.")}he=_setDefaults(he,{base:Qe(pe)?pe:"",embed:"@once",explicit:false,requireAll:false,omitDefault:false,bnodesToClear:[],contextResolver:new me({sharedCache:$e})});if(Qe(Ae)){const pe=await R.get(Ae,he);Ae=pe.document;if(pe.contextUrl){let R=Ae["@context"];if(!R){R=pe.contextUrl}else if(Oe(R)){R.push(pe.contextUrl)}else{R=[R,pe.contextUrl]}Ae["@context"]=R}}const ge=Ae?Ae["@context"]||{}:{};const ye=await R.processContext(Te(he),ge,he);if(!he.hasOwnProperty("omitGraph")){he.omitGraph=Ne(ye,1.1)}if(!he.hasOwnProperty("pruneBlankNodeIdentifiers")){he.pruneBlankNodeIdentifiers=Ne(ye,1.1)}const ve=await R.expand(pe,he);const be={...he};be.isFrame=true;be.keepFreeFloatingNodes=true;const Ee=await R.expand(Ae,be);const Ce=Object.keys(Ae).map((R=>Pe(ye,R,{vocab:true})));be.merged=!Ce.includes("@graph");be.is11=Ne(ye,1.1);const we=Be(ve,Ee,be);be.graph=!he.omitGraph;be.skipExpansion=true;be.link={};be.framing=true;let _e=await R.compact(we,ge,be);be.link={};_e=ke(_e,be);return _e};R.link=async function(pe,Ae,he){const ge={};if(Ae){ge["@context"]=Ae}ge["@embed"]="@link";return R.frame(pe,ge,he)};R.normalize=R.canonize=async function(pe,Ae){if(arguments.length<1){throw new TypeError("Could not canonize, too few arguments.")}Ae=_setDefaults(Ae,{base:Qe(pe)?pe:null,algorithm:"URDNA2015",skipExpansion:false,safe:true,contextResolver:new me({sharedCache:$e})});if("inputFormat"in Ae){if(Ae.inputFormat!=="application/n-quads"&&Ae.inputFormat!=="application/nquads"){throw new be("Unknown canonicalization input format.","jsonld.CanonizeError")}const R=Ce.parse(pe);return he.canonize(R,Ae)}const ge={...Ae};delete ge.format;ge.produceGeneralizedRdf=false;const ye=await R.toRDF(pe,ge);return he.canonize(ye,Ae)};R.fromRDF=async function(R,Ae){if(arguments.length<1){throw new TypeError("Could not convert from RDF, too few arguments.")}Ae=_setDefaults(Ae,{format:Qe(R)?"application/n-quads":undefined});const{format:he}=Ae;let{rdfParser:ge}=Ae;if(he){ge=ge||pe[he];if(!ge){throw new be("Unknown input format.","jsonld.UnknownFormat",{format:he})}}else{ge=()=>R}const ye=await ge(R);return Ie(ye,Ae)};R.toRDF=async function(pe,Ae){if(arguments.length<1){throw new TypeError("Could not convert to RDF, too few arguments.")}Ae=_setDefaults(Ae,{base:Qe(pe)?pe:"",skipExpansion:false,contextResolver:new me({sharedCache:$e})});let he;if(Ae.skipExpansion){he=pe}else{he=await R.expand(pe,Ae)}const ge=Se(he,Ae);if(Ae.format){if(Ae.format==="application/n-quads"||Ae.format==="application/nquads"){return Ce.serialize(ge)}throw new be("Unknown output format.","jsonld.UnknownFormat",{format:Ae.format})}return ge};R.createNodeMap=async function(pe,Ae){if(arguments.length<1){throw new TypeError("Could not create node map, too few arguments.")}Ae=_setDefaults(Ae,{base:Qe(pe)?pe:"",contextResolver:new me({sharedCache:$e})});const he=await R.expand(pe,Ae);return Le(he,Ae)};R.merge=async function(pe,Ae,he){if(arguments.length<1){throw new TypeError("Could not merge, too few arguments.")}if(!Oe(pe)){throw new TypeError('Could not merge, "docs" must be an array.')}if(typeof Ae==="function"){Ae=null}else{Ae=Ae||null}he=_setDefaults(he,{contextResolver:new me({sharedCache:$e})});const ge=await Promise.all(pe.map((pe=>{const Ae={...he};return R.expand(pe,Ae)})));let be=true;if("mergeNodes"in he){be=he.mergeNodes}const Ee=he.issuer||new ve("_:b");const Ce={"@default":{}};for(let R=0;RR._documentLoader,set:pe=>R._documentLoader=pe});R.documentLoader=async R=>{throw new be("Could not retrieve a JSON-LD document from the URL. URL "+"dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:R})};R.get=async function(pe,Ae){let he;if(typeof Ae.documentLoader==="function"){he=Ae.documentLoader}else{he=R.documentLoader}const ge=await he(pe);try{if(!ge.document){throw new be("No remote document found at the given URL.","jsonld.NullRemoteDocument")}if(Qe(ge.document)){ge.document=JSON.parse(ge.document)}}catch(R){throw new be("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:R,remoteDoc:ge})}return ge};R.processContext=async function(R,pe,Ae){Ae=_setDefaults(Ae,{base:"",contextResolver:new me({sharedCache:$e})});if(pe===null){return Te(Ae)}pe=ye.clone(pe);if(!(Re(pe)&&"@context"in pe)){pe={"@context":pe}}return De({activeCtx:R,localCtx:pe,options:Ae})};R.getContextValue=Ae(41866).getContextValue;R.documentLoaders={};R.useDocumentLoader=function(pe){if(!(pe in R.documentLoaders)){throw new be('Unknown document loader type: "'+pe+'"',"jsonld.UnknownDocumentLoader",{type:pe})}R.documentLoader=R.documentLoaders[pe].apply(R,Array.prototype.slice.call(arguments,1))};R.registerRDFParser=function(R,Ae){pe[R]=Ae};R.unregisterRDFParser=function(R){delete pe[R]};R.registerRDFParser("application/n-quads",Ce.parse);R.registerRDFParser("application/nquads",Ce.parse);R.url=Ae(40651);R.logEventHandler=He;R.logWarningEventHandler=Je;R.safeEventHandler=We;R.setDefaultEventHandler=Ve;R.strictEventHandler=Ge;R.unhandledEventHandler=Ye;R.util=ye;Object.assign(R,ye);R.promises=R;R.RequestQueue=Ae(99241);R.JsonLdProcessor=Ae(21677)(R);ge.setupGlobals(R);ge.setupDocumentLoaders(R);function _setDefaults(pe,{documentLoader:Ae=R.documentLoader,...he}){if(pe&&"compactionMap"in pe){throw new be('"compactionMap" not supported.',"jsonld.OptionsError")}if(pe&&"expansionMap"in pe){throw new be('"expansionMap" not supported.',"jsonld.OptionsError")}return Object.assign({},{documentLoader:Ae},he,pe,{eventHandler:Ke({options:pe})})}return R};const factory=function(){return wrapper((function(){return factory()}))};wrapper(factory);R.exports=factory},99618:(R,pe,Ae)=>{"use strict";const{isKeyword:he}=Ae(41866);const ge=Ae(13631);const ye=Ae(86891);const me=Ae(69450);const ve=Ae(11625);const be={};R.exports=be;be.createMergedNodeMap=(R,pe)=>{pe=pe||{};const Ae=pe.issuer||new me.IdentifierIssuer("_:b");const he={"@default":{}};be.createNodeMap(R,he,"@default",Ae);return be.mergeNodeMaps(he)};be.createNodeMap=(R,pe,Ae,Ee,Ce,we)=>{if(ye.isArray(R)){for(const he of R){be.createNodeMap(he,pe,Ae,Ee,undefined,we)}return}if(!ye.isObject(R)){if(we){we.push(R)}return}if(ge.isValue(R)){if("@type"in R){let pe=R["@type"];if(pe.indexOf("_:")===0){R["@type"]=pe=Ee.getId(pe)}}if(we){we.push(R)}return}else if(we&&ge.isList(R)){const he=[];be.createNodeMap(R["@list"],pe,Ae,Ee,Ce,he);we.push({"@list":he});return}if("@type"in R){const pe=R["@type"];for(const R of pe){if(R.indexOf("_:")===0){Ee.getId(R)}}}if(ye.isUndefined(Ce)){Ce=ge.isBlankNode(R)?Ee.getId(R["@id"]):R["@id"]}if(we){we.push({"@id":Ce})}const _e=pe[Ae];const Ie=_e[Ce]=_e[Ce]||{};Ie["@id"]=Ce;const Se=Object.keys(R).sort();for(let ye of Se){if(ye==="@id"){continue}if(ye==="@reverse"){const he={"@id":Ce};const ye=R["@reverse"];for(const R in ye){const ve=ye[R];for(const ye of ve){let ve=ye["@id"];if(ge.isBlankNode(ye)){ve=Ee.getId(ve)}be.createNodeMap(ye,pe,Ae,Ee,ve);me.addValue(_e[ve],R,he,{propertyIsArray:true,allowDuplicate:false})}}continue}if(ye==="@graph"){if(!(Ce in pe)){pe[Ce]={}}be.createNodeMap(R[ye],pe,Ce,Ee);continue}if(ye==="@included"){be.createNodeMap(R[ye],pe,Ae,Ee);continue}if(ye!=="@type"&&he(ye)){if(ye==="@index"&&ye in Ie&&(R[ye]!==Ie[ye]||R[ye]["@id"]!==Ie[ye]["@id"])){throw new ve("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:Ie})}Ie[ye]=R[ye];continue}const we=R[ye];if(ye.indexOf("_:")===0){ye=Ee.getId(ye)}if(we.length===0){me.addValue(Ie,ye,[],{propertyIsArray:true});continue}for(let R of we){if(ye==="@type"){R=R.indexOf("_:")===0?Ee.getId(R):R}if(ge.isSubject(R)||ge.isSubjectReference(R)){if("@id"in R&&!R["@id"]){continue}const he=ge.isBlankNode(R)?Ee.getId(R["@id"]):R["@id"];me.addValue(Ie,ye,{"@id":he},{propertyIsArray:true,allowDuplicate:false});be.createNodeMap(R,pe,Ae,Ee,he)}else if(ge.isValue(R)){me.addValue(Ie,ye,R,{propertyIsArray:true,allowDuplicate:false})}else if(ge.isList(R)){const he=[];be.createNodeMap(R["@list"],pe,Ae,Ee,Ce,he);R={"@list":he};me.addValue(Ie,ye,R,{propertyIsArray:true,allowDuplicate:false})}else{be.createNodeMap(R,pe,Ae,Ee,Ce);me.addValue(Ie,ye,R,{propertyIsArray:true,allowDuplicate:false})}}}};be.mergeNodeMapGraphs=R=>{const pe={};for(const Ae of Object.keys(R).sort()){for(const ge of Object.keys(R[Ae]).sort()){const ye=R[Ae][ge];if(!(ge in pe)){pe[ge]={"@id":ge}}const ve=pe[ge];for(const R of Object.keys(ye).sort()){if(he(R)&&R!=="@type"){ve[R]=me.clone(ye[R])}else{for(const pe of ye[R]){me.addValue(ve,R,me.clone(pe),{propertyIsArray:true,allowDuplicate:false})}}}}}return pe};be.mergeNodeMaps=R=>{const pe=R["@default"];const Ae=Object.keys(R).sort();for(const he of Ae){if(he==="@default"){continue}const Ae=R[he];let ye=pe[he];if(!ye){pe[he]=ye={"@id":he,"@graph":[]}}else if(!("@graph"in ye)){ye["@graph"]=[]}const me=ye["@graph"];for(const R of Object.keys(Ae).sort()){const pe=Ae[R];if(!ge.isSubjectReference(pe)){me.push(pe)}}}return pe}},8631:(R,pe,Ae)=>{"use strict";const he=Ae(61189);const ge={};R.exports=ge;ge.setupDocumentLoaders=function(R){R.documentLoaders.node=he;R.useDocumentLoader("node")};ge.setupGlobals=function(R){}},29760:(R,pe,Ae)=>{"use strict";const{createNodeMap:he}=Ae(99618);const{isKeyword:ge}=Ae(41866);const ye=Ae(13631);const me=Ae(40641);const ve=Ae(11625);const be=Ae(86891);const Ee=Ae(69450);const{handleEvent:Ce}=Ae(75836);const{RDF_FIRST:we,RDF_REST:_e,RDF_NIL:Ie,RDF_TYPE:Se,RDF_JSON_LITERAL:Be,RDF_LANGSTRING:ke,XSD_BOOLEAN:Oe,XSD_DOUBLE:Re,XSD_INTEGER:Qe,XSD_STRING:xe}=Ae(18441);const{isAbsolute:Pe}=Ae(40651);const Te={};R.exports=Te;Te.toRDF=(R,pe)=>{const Ae=new Ee.IdentifierIssuer("_:b");const ge={"@default":{}};he(R,ge,"@default",Ae);const ye=[];const me=Object.keys(ge).sort();for(const R of me){let he;if(R==="@default"){he={termType:"DefaultGraph",value:""}}else if(Pe(R)){if(R.startsWith("_:")){he={termType:"BlankNode"}}else{he={termType:"NamedNode"}}he.value=R}else{if(pe.eventHandler){Ce({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:R}},options:pe})}continue}_graphToRDF(ye,ge[R],he,Ae,pe)}return ye};function _graphToRDF(R,pe,Ae,he,ye){const me=Object.keys(pe).sort();for(const ve of me){const me=pe[ve];const be=Object.keys(me).sort();for(let pe of be){const be=me[pe];if(pe==="@type"){pe=Se}else if(ge(pe)){continue}for(const ge of be){const me={termType:ve.startsWith("_:")?"BlankNode":"NamedNode",value:ve};if(!Pe(ve)){if(ye.eventHandler){Ce({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:ve}},options:ye})}continue}const be={termType:pe.startsWith("_:")?"BlankNode":"NamedNode",value:pe};if(!Pe(pe)){if(ye.eventHandler){Ce({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:pe}},options:ye})}continue}if(be.termType==="BlankNode"&&!ye.produceGeneralizedRdf){if(ye.eventHandler){Ce({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:he.getOldIds().find((R=>he.getId(R)===pe))}},options:ye})}continue}const Ee=_objectToRDF(ge,he,R,Ae,ye.rdfDirection,ye);if(Ee){R.push({subject:me,predicate:be,object:Ee,graph:Ae})}}}}}function _listToRDF(R,pe,Ae,he,ge,ye){const me={termType:"NamedNode",value:we};const ve={termType:"NamedNode",value:_e};const be={termType:"NamedNode",value:Ie};const Ee=R.pop();const Ce=Ee?{termType:"BlankNode",value:pe.getId()}:be;let Se=Ce;for(const be of R){const R=_objectToRDF(be,pe,Ae,he,ge,ye);const Ee={termType:"BlankNode",value:pe.getId()};Ae.push({subject:Se,predicate:me,object:R,graph:he});Ae.push({subject:Se,predicate:ve,object:Ee,graph:he});Se=Ee}if(Ee){const R=_objectToRDF(Ee,pe,Ae,he,ge,ye);Ae.push({subject:Se,predicate:me,object:R,graph:he});Ae.push({subject:Se,predicate:ve,object:be,graph:he})}return Ce}function _objectToRDF(R,pe,Ae,he,ge,Ee){const we={};if(ye.isValue(R)){we.termType="Literal";we.value=undefined;we.datatype={termType:"NamedNode"};let pe=R["@value"];const Ae=R["@type"]||null;if(Ae==="@json"){we.value=me(pe);we.datatype.value=Be}else if(be.isBoolean(pe)){we.value=pe.toString();we.datatype.value=Ae||Oe}else if(be.isDouble(pe)||Ae===Re){if(!be.isDouble(pe)){pe=parseFloat(pe)}we.value=pe.toExponential(15).replace(/(\d)0*e\+?/,"$1E");we.datatype.value=Ae||Re}else if(be.isNumber(pe)){we.value=pe.toFixed(0);we.datatype.value=Ae||Qe}else if("@direction"in R&&ge==="i18n-datatype"){const Ae=(R["@language"]||"").toLowerCase();const he=R["@direction"];const ge=`https://www.w3.org/ns/i18n#${Ae}_${he}`;we.datatype.value=ge;we.value=pe}else if("@direction"in R&&ge==="compound-literal"){throw new ve("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:ge})}else if("@direction"in R&&ge){throw new ve("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:ge})}else if("@language"in R){if("@direction"in R&&!ge){if(Ee.eventHandler){Ce({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:we.value}},options:Ee})}}we.value=pe;we.datatype.value=Ae||ke;we.language=R["@language"]}else{if("@direction"in R&&!ge){if(Ee.eventHandler){Ce({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:we.value}},options:Ee})}}we.value=pe;we.datatype.value=Ae||xe}}else if(ye.isList(R)){const ye=_listToRDF(R["@list"],pe,Ae,he,ge,Ee);we.termType=ye.termType;we.value=ye.value}else{const pe=be.isObject(R)?R["@id"]:R;we.termType=pe.startsWith("_:")?"BlankNode":"NamedNode";we.value=pe}if(we.termType==="NamedNode"&&!Pe(we.value)){if(Ee.eventHandler){Ce({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:we.value}},options:Ee})}return null}return we}},86891:R=>{"use strict";const pe={};R.exports=pe;pe.isArray=Array.isArray;pe.isBoolean=R=>typeof R==="boolean"||Object.prototype.toString.call(R)==="[object Boolean]";pe.isDouble=R=>pe.isNumber(R)&&(String(R).indexOf(".")!==-1||Math.abs(R)>=1e21);pe.isEmptyObject=R=>pe.isObject(R)&&Object.keys(R).length===0;pe.isNumber=R=>typeof R==="number"||Object.prototype.toString.call(R)==="[object Number]";pe.isNumeric=R=>!isNaN(parseFloat(R))&&isFinite(R);pe.isObject=R=>Object.prototype.toString.call(R)==="[object Object]";pe.isString=R=>typeof R==="string"||Object.prototype.toString.call(R)==="[object String]";pe.isUndefined=R=>typeof R==="undefined"},40651:(R,pe,Ae)=>{"use strict";const he=Ae(86891);const ge={};R.exports=ge;ge.parsers={simple:{keys:["href","scheme","authority","path","query","fragment"],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:["href","protocol","scheme","authority","auth","user","password","hostname","port","path","directory","file","query","fragment"],regex:/^(([a-zA-Z][a-zA-Z0-9+-.]*):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}};ge.parse=(R,pe)=>{const Ae={};const he=ge.parsers[pe||"full"];const ye=he.regex.exec(R);let me=he.keys.length;while(me--){Ae[he.keys[me]]=ye[me]===undefined?null:ye[me]}if(Ae.scheme==="https"&&Ae.port==="443"||Ae.scheme==="http"&&Ae.port==="80"){Ae.href=Ae.href.replace(":"+Ae.port,"");Ae.authority=Ae.authority.replace(":"+Ae.port,"");Ae.port=null}Ae.normalizedPath=ge.removeDotSegments(Ae.path);return Ae};ge.prependBase=(R,pe)=>{if(R===null){return pe}if(ge.isAbsolute(pe)){return pe}if(!R||he.isString(R)){R=ge.parse(R||"")}const Ae=ge.parse(pe);const ye={protocol:R.protocol||""};if(Ae.authority!==null){ye.authority=Ae.authority;ye.path=Ae.path;ye.query=Ae.query}else{ye.authority=R.authority;if(Ae.path===""){ye.path=R.path;if(Ae.query!==null){ye.query=Ae.query}else{ye.query=R.query}}else{if(Ae.path.indexOf("/")===0){ye.path=Ae.path}else{let pe=R.path;pe=pe.substr(0,pe.lastIndexOf("/")+1);if((pe.length>0||R.authority)&&pe.substr(-1)!=="/"){pe+="/"}pe+=Ae.path;ye.path=pe}ye.query=Ae.query}}if(Ae.path!==""){ye.path=ge.removeDotSegments(ye.path)}let me=ye.protocol;if(ye.authority!==null){me+="//"+ye.authority}me+=ye.path;if(ye.query!==null){me+="?"+ye.query}if(Ae.fragment!==null){me+="#"+Ae.fragment}if(me===""){me="./"}return me};ge.removeBase=(R,pe)=>{if(R===null){return pe}if(!R||he.isString(R)){R=ge.parse(R||"")}let Ae="";if(R.href!==""){Ae+=(R.protocol||"")+"//"+(R.authority||"")}else if(pe.indexOf("//")){Ae+="//"}if(pe.indexOf(Ae)!==0){return pe}const ye=ge.parse(pe.substr(Ae.length));const me=R.normalizedPath.split("/");const ve=ye.normalizedPath.split("/");const be=ye.fragment||ye.query?0:1;while(me.length>0&&ve.length>be){if(me[0]!==ve[0]){break}me.shift();ve.shift()}let Ee="";if(me.length>0){me.pop();for(let R=0;R{if(R.length===0){return""}const pe=R.split("/");const Ae=[];while(pe.length>0){const R=pe.shift();const he=pe.length===0;if(R==="."){if(he){Ae.push("")}continue}if(R===".."){Ae.pop();if(he){Ae.push("")}continue}Ae.push(R)}if(R[0]==="/"&&Ae.length>0&&Ae[0]!==""){Ae.unshift("")}if(Ae.length===1&&Ae[0]===""){return"/"}return Ae.join("/")};const ye=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;ge.isAbsolute=R=>he.isString(R)&&ye.test(R);ge.isRelative=R=>he.isString(R)},69450:(R,pe,Ae)=>{"use strict";const he=Ae(13631);const ge=Ae(86891);const ye=Ae(43).IdentifierIssuer;const me=Ae(11625);const ve=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/;const be=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g;const Ee=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/;const Ce=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g;const we=/^@[a-zA-Z]+$/;const _e={headers:{accept:"application/ld+json, application/json"}};const Ie={};R.exports=Ie;Ie.IdentifierIssuer=ye;Ie.REGEX_BCP47=ve;Ie.REGEX_KEYWORD=we;Ie.clone=function(R){if(R&&typeof R==="object"){let pe;if(ge.isArray(R)){pe=[];for(let Ae=0;Ae{const pe=Object.keys(R).some((R=>R.toLowerCase()==="accept"));if(pe){throw new RangeError('Accept header may not be specified; only "'+_e.headers.accept+'" is supported.')}return Object.assign({Accept:_e.headers.accept},R)};Ie.parseLinkHeader=R=>{const pe={};const Ae=R.match(be);for(let R=0;R{if(ge.isString(R)){return}if(ge.isArray(R)&&R.every((R=>ge.isString(R)))){return}if(pe&&ge.isObject(R)){switch(Object.keys(R).length){case 0:return;case 1:if("@default"in R&&Ie.asArray(R["@default"]).every((R=>ge.isString(R)))){return}}}throw new me('Invalid JSON-LD syntax; "@type" value must a string, an array of '+"strings, an empty object, "+"or a default object.","jsonld.SyntaxError",{code:"invalid type value",value:R})};Ie.hasProperty=(R,pe)=>{if(R.hasOwnProperty(pe)){const Ae=R[pe];return!ge.isArray(Ae)||Ae.length>0}return false};Ie.hasValue=(R,pe,Ae)=>{if(Ie.hasProperty(R,pe)){let ye=R[pe];const me=he.isList(ye);if(ge.isArray(ye)||me){if(me){ye=ye["@list"]}for(let R=0;R{he=he||{};if(!("propertyIsArray"in he)){he.propertyIsArray=false}if(!("valueIsArray"in he)){he.valueIsArray=false}if(!("allowDuplicate"in he)){he.allowDuplicate=true}if(!("prependValue"in he)){he.prependValue=false}if(he.valueIsArray){R[pe]=Ae}else if(ge.isArray(Ae)){if(Ae.length===0&&he.propertyIsArray&&!R.hasOwnProperty(pe)){R[pe]=[]}if(he.prependValue){Ae=Ae.concat(R[pe]);R[pe]=[]}for(let ge=0;ge[].concat(R[pe]||[]);Ie.removeProperty=(R,pe)=>{delete R[pe]};Ie.removeValue=(R,pe,Ae,he)=>{he=he||{};if(!("propertyIsArray"in he)){he.propertyIsArray=false}const ge=Ie.getValues(R,pe).filter((R=>!Ie.compareValues(R,Ae)));if(ge.length===0){Ie.removeProperty(R,pe)}else if(ge.length===1&&!he.propertyIsArray){R[pe]=ge[0]}else{R[pe]=ge}};Ie.relabelBlankNodes=(R,pe)=>{pe=pe||{};const Ae=pe.issuer||new ye("_:b");return _labelBlankNodes(Ae,R)};Ie.compareValues=(R,pe)=>{if(R===pe){return true}if(he.isValue(R)&&he.isValue(pe)&&R["@value"]===pe["@value"]&&R["@type"]===pe["@type"]&&R["@language"]===pe["@language"]&&R["@index"]===pe["@index"]){return true}if(ge.isObject(R)&&"@id"in R&&ge.isObject(pe)&&"@id"in pe){return R["@id"]===pe["@id"]}return false};Ie.compareShortestLeast=(R,pe)=>{if(R.length{"use strict";const he=Ae(53622);const ge=Symbol("max");const ye=Symbol("length");const me=Symbol("lengthCalculator");const ve=Symbol("allowStale");const be=Symbol("maxAge");const Ee=Symbol("dispose");const Ce=Symbol("noDisposeOnSet");const we=Symbol("lruList");const _e=Symbol("cache");const Ie=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(R){if(typeof R==="number")R={max:R};if(!R)R={};if(R.max&&(typeof R.max!=="number"||R.max<0))throw new TypeError("max must be a non-negative number");const pe=this[ge]=R.max||Infinity;const Ae=R.length||naiveLength;this[me]=typeof Ae!=="function"?naiveLength:Ae;this[ve]=R.stale||false;if(R.maxAge&&typeof R.maxAge!=="number")throw new TypeError("maxAge must be a number");this[be]=R.maxAge||0;this[Ee]=R.dispose;this[Ce]=R.noDisposeOnSet||false;this[Ie]=R.updateAgeOnGet||false;this.reset()}set max(R){if(typeof R!=="number"||R<0)throw new TypeError("max must be a non-negative number");this[ge]=R||Infinity;trim(this)}get max(){return this[ge]}set allowStale(R){this[ve]=!!R}get allowStale(){return this[ve]}set maxAge(R){if(typeof R!=="number")throw new TypeError("maxAge must be a non-negative number");this[be]=R;trim(this)}get maxAge(){return this[be]}set lengthCalculator(R){if(typeof R!=="function")R=naiveLength;if(R!==this[me]){this[me]=R;this[ye]=0;this[we].forEach((R=>{R.length=this[me](R.value,R.key);this[ye]+=R.length}))}trim(this)}get lengthCalculator(){return this[me]}get length(){return this[ye]}get itemCount(){return this[we].length}rforEach(R,pe){pe=pe||this;for(let Ae=this[we].tail;Ae!==null;){const he=Ae.prev;forEachStep(this,R,Ae,pe);Ae=he}}forEach(R,pe){pe=pe||this;for(let Ae=this[we].head;Ae!==null;){const he=Ae.next;forEachStep(this,R,Ae,pe);Ae=he}}keys(){return this[we].toArray().map((R=>R.key))}values(){return this[we].toArray().map((R=>R.value))}reset(){if(this[Ee]&&this[we]&&this[we].length){this[we].forEach((R=>this[Ee](R.key,R.value)))}this[_e]=new Map;this[we]=new he;this[ye]=0}dump(){return this[we].map((R=>isStale(this,R)?false:{k:R.key,v:R.value,e:R.now+(R.maxAge||0)})).toArray().filter((R=>R))}dumpLru(){return this[we]}set(R,pe,Ae){Ae=Ae||this[be];if(Ae&&typeof Ae!=="number")throw new TypeError("maxAge must be a number");const he=Ae?Date.now():0;const ve=this[me](pe,R);if(this[_e].has(R)){if(ve>this[ge]){del(this,this[_e].get(R));return false}const me=this[_e].get(R);const be=me.value;if(this[Ee]){if(!this[Ce])this[Ee](R,be.value)}be.now=he;be.maxAge=Ae;be.value=pe;this[ye]+=ve-be.length;be.length=ve;this.get(R);trim(this);return true}const Ie=new Entry(R,pe,ve,he,Ae);if(Ie.length>this[ge]){if(this[Ee])this[Ee](R,pe);return false}this[ye]+=Ie.length;this[we].unshift(Ie);this[_e].set(R,this[we].head);trim(this);return true}has(R){if(!this[_e].has(R))return false;const pe=this[_e].get(R).value;return!isStale(this,pe)}get(R){return get(this,R,true)}peek(R){return get(this,R,false)}pop(){const R=this[we].tail;if(!R)return null;del(this,R);return R.value}del(R){del(this,this[_e].get(R))}load(R){this.reset();const pe=Date.now();for(let Ae=R.length-1;Ae>=0;Ae--){const he=R[Ae];const ge=he.e||0;if(ge===0)this.set(he.k,he.v);else{const R=ge-pe;if(R>0){this.set(he.k,he.v,R)}}}}prune(){this[_e].forEach(((R,pe)=>get(this,pe,false)))}}const get=(R,pe,Ae)=>{const he=R[_e].get(pe);if(he){const pe=he.value;if(isStale(R,pe)){del(R,he);if(!R[ve])return undefined}else{if(Ae){if(R[Ie])he.value.now=Date.now();R[we].unshiftNode(he)}}return pe.value}};const isStale=(R,pe)=>{if(!pe||!pe.maxAge&&!R[be])return false;const Ae=Date.now()-pe.now;return pe.maxAge?Ae>pe.maxAge:R[be]&&Ae>R[be]};const trim=R=>{if(R[ye]>R[ge]){for(let pe=R[we].tail;R[ye]>R[ge]&&pe!==null;){const Ae=pe.prev;del(R,pe);pe=Ae}}};const del=(R,pe)=>{if(pe){const Ae=pe.value;if(R[Ee])R[Ee](Ae.key,Ae.value);R[ye]-=Ae.length;R[_e].delete(Ae.key);R[we].removeNode(pe)}};class Entry{constructor(R,pe,Ae,he,ge){this.key=R;this.value=pe;this.length=Ae;this.now=he;this.maxAge=ge||0}}const forEachStep=(R,pe,Ae,he)=>{let ge=Ae.value;if(isStale(R,ge)){del(R,Ae);if(!R[ve])ge=undefined}if(ge)pe.call(he,ge.value,ge.key,R)};R.exports=LRUCache},73180:R=>{"use strict";R.exports=function(R){R.prototype[Symbol.iterator]=function*(){for(let R=this.head;R;R=R.next){yield R.value}}}},53622:(R,pe,Ae)=>{"use strict";R.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(R){var pe=this;if(!(pe instanceof Yallist)){pe=new Yallist}pe.tail=null;pe.head=null;pe.length=0;if(R&&typeof R.forEach==="function"){R.forEach((function(R){pe.push(R)}))}else if(arguments.length>0){for(var Ae=0,he=arguments.length;Ae1){Ae=pe}else if(this.head){he=this.head.next;Ae=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var ge=0;he!==null;ge++){Ae=R(Ae,he.value,ge);he=he.next}return Ae};Yallist.prototype.reduceReverse=function(R,pe){var Ae;var he=this.tail;if(arguments.length>1){Ae=pe}else if(this.tail){he=this.tail.prev;Ae=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var ge=this.length-1;he!==null;ge--){Ae=R(Ae,he.value,ge);he=he.prev}return Ae};Yallist.prototype.toArray=function(){var R=new Array(this.length);for(var pe=0,Ae=this.head;Ae!==null;pe++){R[pe]=Ae.value;Ae=Ae.next}return R};Yallist.prototype.toArrayReverse=function(){var R=new Array(this.length);for(var pe=0,Ae=this.tail;Ae!==null;pe++){R[pe]=Ae.value;Ae=Ae.prev}return R};Yallist.prototype.slice=function(R,pe){pe=pe||this.length;if(pe<0){pe+=this.length}R=R||0;if(R<0){R+=this.length}var Ae=new Yallist;if(pethis.length){pe=this.length}for(var he=0,ge=this.head;ge!==null&&hethis.length){pe=this.length}for(var he=this.length,ge=this.tail;ge!==null&&he>pe;he--){ge=ge.prev}for(;ge!==null&&he>R;he--,ge=ge.prev){Ae.push(ge.value)}return Ae};Yallist.prototype.splice=function(R,pe,...Ae){if(R>this.length){R=this.length-1}if(R<0){R=this.length+R}for(var he=0,ge=this.head;ge!==null&&he{ +const he=Ae(43);const ge=Ae(8631);const ye=Ae(69450);const me=Ae(70756);const ve=ye.IdentifierIssuer;const be=Ae(11625);const Ee=Ae(51370);const we=Ae(13611);const{expand:Ce}=Ae(99969);const{flatten:_e}=Ae(59030);const{fromRDF:Ie}=Ae(10999);const{toRDF:Se}=Ae(29760);const{frameMergedOrDefault:Be,cleanupNull:ke}=Ae(36661);const{isArray:Oe,isObject:Re,isString:Qe}=Ae(86891);const{isSubjectReference:xe}=Ae(13631);const{expandIri:Pe,getInitialContext:Te,process:De,processingMode:Ne}=Ae(41866);const{compact:Me,compactIri:je}=Ae(63073);const{createNodeMap:Fe,createMergedNodeMap:Le,mergeNodeMaps:Ue}=Ae(99618);const{logEventHandler:He,logWarningEventHandler:Je,safeEventHandler:We,setDefaultEventHandler:Ve,setupEventHandler:Ke,strictEventHandler:Ge,unhandledEventHandler:Ye}=Ae(75836);const wrapper=function(R){const pe={};const qe=100;const $e=new Ee({max:qe});R.compact=async function(pe,Ae,he){if(arguments.length<2){throw new TypeError("Could not compact, too few arguments.")}if(Ae===null){throw new be("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"})}if(pe===null){return null}he=_setDefaults(he,{base:Qe(pe)?pe:"",compactArrays:true,compactToRelative:true,graph:false,skipExpansion:false,link:false,issuer:new ve("_:b"),contextResolver:new me({sharedCache:$e})});if(he.link){he.skipExpansion=true}if(!he.compactToRelative){delete he.base}let ge;if(he.skipExpansion){ge=pe}else{ge=await R.expand(pe,he)}const Ee=await R.processContext(Te(he),Ae,he);let we=await Me({activeCtx:Ee,element:ge,options:he});if(he.compactArrays&&!he.graph&&Oe(we)){if(we.length===1){we=we[0]}else if(we.length===0){we={}}}else if(he.graph&&Re(we)){we=[we]}if(Re(Ae)&&"@context"in Ae){Ae=Ae["@context"]}Ae=ye.clone(Ae);if(!Oe(Ae)){Ae=[Ae]}const Ce=Ae;Ae=[];for(let R=0;R0){Ae.push(Ce[R])}}const _e=Ae.length>0;if(Ae.length===1){Ae=Ae[0]}if(Oe(we)){const R=je({activeCtx:Ee,iri:"@graph",relativeTo:{vocab:true}});const pe=we;we={};if(_e){we["@context"]=Ae}we[R]=pe}else if(Re(we)&&_e){const R=we;we={"@context":Ae};for(const pe in R){we[pe]=R[pe]}}return we};R.expand=async function(pe,Ae){if(arguments.length<1){throw new TypeError("Could not expand, too few arguments.")}Ae=_setDefaults(Ae,{keepFreeFloatingNodes:false,contextResolver:new me({sharedCache:$e})});const he={};const ge=[];if("expandContext"in Ae){const R=ye.clone(Ae.expandContext);if(Re(R)&&"@context"in R){he.expandContext=R}else{he.expandContext={"@context":R}}ge.push(he.expandContext)}let ve;if(!Qe(pe)){he.input=ye.clone(pe)}else{const ye=await R.get(pe,Ae);ve=ye.documentUrl;he.input=ye.document;if(ye.contextUrl){he.remoteContext={"@context":ye.contextUrl};ge.push(he.remoteContext)}}if(!("base"in Ae)){Ae.base=ve||""}let be=Te(Ae);for(const R of ge){be=await De({activeCtx:be,localCtx:R,options:Ae})}let Ee=await Ce({activeCtx:be,element:he.input,options:Ae});if(Re(Ee)&&"@graph"in Ee&&Object.keys(Ee).length===1){Ee=Ee["@graph"]}else if(Ee===null){Ee=[]}if(!Oe(Ee)){Ee=[Ee]}return Ee};R.flatten=async function(pe,Ae,he){if(arguments.length<1){return new TypeError("Could not flatten, too few arguments.")}if(typeof Ae==="function"){Ae=null}else{Ae=Ae||null}he=_setDefaults(he,{base:Qe(pe)?pe:"",contextResolver:new me({sharedCache:$e})});const ge=await R.expand(pe,he);const ye=_e(ge);if(Ae===null){return ye}he.graph=true;he.skipExpansion=true;const ve=await R.compact(ye,Ae,he);return ve};R.frame=async function(pe,Ae,he){if(arguments.length<2){throw new TypeError("Could not frame, too few arguments.")}he=_setDefaults(he,{base:Qe(pe)?pe:"",embed:"@once",explicit:false,requireAll:false,omitDefault:false,bnodesToClear:[],contextResolver:new me({sharedCache:$e})});if(Qe(Ae)){const pe=await R.get(Ae,he);Ae=pe.document;if(pe.contextUrl){let R=Ae["@context"];if(!R){R=pe.contextUrl}else if(Oe(R)){R.push(pe.contextUrl)}else{R=[R,pe.contextUrl]}Ae["@context"]=R}}const ge=Ae?Ae["@context"]||{}:{};const ye=await R.processContext(Te(he),ge,he);if(!he.hasOwnProperty("omitGraph")){he.omitGraph=Ne(ye,1.1)}if(!he.hasOwnProperty("pruneBlankNodeIdentifiers")){he.pruneBlankNodeIdentifiers=Ne(ye,1.1)}const ve=await R.expand(pe,he);const be={...he};be.isFrame=true;be.keepFreeFloatingNodes=true;const Ee=await R.expand(Ae,be);const we=Object.keys(Ae).map((R=>Pe(ye,R,{vocab:true})));be.merged=!we.includes("@graph");be.is11=Ne(ye,1.1);const Ce=Be(ve,Ee,be);be.graph=!he.omitGraph;be.skipExpansion=true;be.link={};be.framing=true;let _e=await R.compact(Ce,ge,be);be.link={};_e=ke(_e,be);return _e};R.link=async function(pe,Ae,he){const ge={};if(Ae){ge["@context"]=Ae}ge["@embed"]="@link";return R.frame(pe,ge,he)};R.normalize=R.canonize=async function(pe,Ae){if(arguments.length<1){throw new TypeError("Could not canonize, too few arguments.")}Ae=_setDefaults(Ae,{base:Qe(pe)?pe:null,algorithm:"URDNA2015",skipExpansion:false,safe:true,contextResolver:new me({sharedCache:$e})});if("inputFormat"in Ae){if(Ae.inputFormat!=="application/n-quads"&&Ae.inputFormat!=="application/nquads"){throw new be("Unknown canonicalization input format.","jsonld.CanonizeError")}const R=we.parse(pe);return he.canonize(R,Ae)}const ge={...Ae};delete ge.format;ge.produceGeneralizedRdf=false;const ye=await R.toRDF(pe,ge);return he.canonize(ye,Ae)};R.fromRDF=async function(R,Ae){if(arguments.length<1){throw new TypeError("Could not convert from RDF, too few arguments.")}Ae=_setDefaults(Ae,{format:Qe(R)?"application/n-quads":undefined});const{format:he}=Ae;let{rdfParser:ge}=Ae;if(he){ge=ge||pe[he];if(!ge){throw new be("Unknown input format.","jsonld.UnknownFormat",{format:he})}}else{ge=()=>R}const ye=await ge(R);return Ie(ye,Ae)};R.toRDF=async function(pe,Ae){if(arguments.length<1){throw new TypeError("Could not convert to RDF, too few arguments.")}Ae=_setDefaults(Ae,{base:Qe(pe)?pe:"",skipExpansion:false,contextResolver:new me({sharedCache:$e})});let he;if(Ae.skipExpansion){he=pe}else{he=await R.expand(pe,Ae)}const ge=Se(he,Ae);if(Ae.format){if(Ae.format==="application/n-quads"||Ae.format==="application/nquads"){return we.serialize(ge)}throw new be("Unknown output format.","jsonld.UnknownFormat",{format:Ae.format})}return ge};R.createNodeMap=async function(pe,Ae){if(arguments.length<1){throw new TypeError("Could not create node map, too few arguments.")}Ae=_setDefaults(Ae,{base:Qe(pe)?pe:"",contextResolver:new me({sharedCache:$e})});const he=await R.expand(pe,Ae);return Le(he,Ae)};R.merge=async function(pe,Ae,he){if(arguments.length<1){throw new TypeError("Could not merge, too few arguments.")}if(!Oe(pe)){throw new TypeError('Could not merge, "docs" must be an array.')}if(typeof Ae==="function"){Ae=null}else{Ae=Ae||null}he=_setDefaults(he,{contextResolver:new me({sharedCache:$e})});const ge=await Promise.all(pe.map((pe=>{const Ae={...he};return R.expand(pe,Ae)})));let be=true;if("mergeNodes"in he){be=he.mergeNodes}const Ee=he.issuer||new ve("_:b");const we={"@default":{}};for(let R=0;RR._documentLoader,set:pe=>R._documentLoader=pe});R.documentLoader=async R=>{throw new be("Could not retrieve a JSON-LD document from the URL. URL "+"dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:R})};R.get=async function(pe,Ae){let he;if(typeof Ae.documentLoader==="function"){he=Ae.documentLoader}else{he=R.documentLoader}const ge=await he(pe);try{if(!ge.document){throw new be("No remote document found at the given URL.","jsonld.NullRemoteDocument")}if(Qe(ge.document)){ge.document=JSON.parse(ge.document)}}catch(R){throw new be("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:R,remoteDoc:ge})}return ge};R.processContext=async function(R,pe,Ae){Ae=_setDefaults(Ae,{base:"",contextResolver:new me({sharedCache:$e})});if(pe===null){return Te(Ae)}pe=ye.clone(pe);if(!(Re(pe)&&"@context"in pe)){pe={"@context":pe}}return De({activeCtx:R,localCtx:pe,options:Ae})};R.getContextValue=Ae(41866).getContextValue;R.documentLoaders={};R.useDocumentLoader=function(pe){if(!(pe in R.documentLoaders)){throw new be('Unknown document loader type: "'+pe+'"',"jsonld.UnknownDocumentLoader",{type:pe})}R.documentLoader=R.documentLoaders[pe].apply(R,Array.prototype.slice.call(arguments,1))};R.registerRDFParser=function(R,Ae){pe[R]=Ae};R.unregisterRDFParser=function(R){delete pe[R]};R.registerRDFParser("application/n-quads",we.parse);R.registerRDFParser("application/nquads",we.parse);R.url=Ae(40651);R.logEventHandler=He;R.logWarningEventHandler=Je;R.safeEventHandler=We;R.setDefaultEventHandler=Ve;R.strictEventHandler=Ge;R.unhandledEventHandler=Ye;R.util=ye;Object.assign(R,ye);R.promises=R;R.RequestQueue=Ae(99241);R.JsonLdProcessor=Ae(21677)(R);ge.setupGlobals(R);ge.setupDocumentLoaders(R);function _setDefaults(pe,{documentLoader:Ae=R.documentLoader,...he}){if(pe&&"compactionMap"in pe){throw new be('"compactionMap" not supported.',"jsonld.OptionsError")}if(pe&&"expansionMap"in pe){throw new be('"expansionMap" not supported.',"jsonld.OptionsError")}return Object.assign({},{documentLoader:Ae},he,pe,{eventHandler:Ke({options:pe})})}return R};const factory=function(){return wrapper((function(){return factory()}))};wrapper(factory);R.exports=factory},99618:(R,pe,Ae)=>{"use strict";const{isKeyword:he}=Ae(41866);const ge=Ae(13631);const ye=Ae(86891);const me=Ae(69450);const ve=Ae(11625);const be={};R.exports=be;be.createMergedNodeMap=(R,pe)=>{pe=pe||{};const Ae=pe.issuer||new me.IdentifierIssuer("_:b");const he={"@default":{}};be.createNodeMap(R,he,"@default",Ae);return be.mergeNodeMaps(he)};be.createNodeMap=(R,pe,Ae,Ee,we,Ce)=>{if(ye.isArray(R)){for(const he of R){be.createNodeMap(he,pe,Ae,Ee,undefined,Ce)}return}if(!ye.isObject(R)){if(Ce){Ce.push(R)}return}if(ge.isValue(R)){if("@type"in R){let pe=R["@type"];if(pe.indexOf("_:")===0){R["@type"]=pe=Ee.getId(pe)}}if(Ce){Ce.push(R)}return}else if(Ce&&ge.isList(R)){const he=[];be.createNodeMap(R["@list"],pe,Ae,Ee,we,he);Ce.push({"@list":he});return}if("@type"in R){const pe=R["@type"];for(const R of pe){if(R.indexOf("_:")===0){Ee.getId(R)}}}if(ye.isUndefined(we)){we=ge.isBlankNode(R)?Ee.getId(R["@id"]):R["@id"]}if(Ce){Ce.push({"@id":we})}const _e=pe[Ae];const Ie=_e[we]=_e[we]||{};Ie["@id"]=we;const Se=Object.keys(R).sort();for(let ye of Se){if(ye==="@id"){continue}if(ye==="@reverse"){const he={"@id":we};const ye=R["@reverse"];for(const R in ye){const ve=ye[R];for(const ye of ve){let ve=ye["@id"];if(ge.isBlankNode(ye)){ve=Ee.getId(ve)}be.createNodeMap(ye,pe,Ae,Ee,ve);me.addValue(_e[ve],R,he,{propertyIsArray:true,allowDuplicate:false})}}continue}if(ye==="@graph"){if(!(we in pe)){pe[we]={}}be.createNodeMap(R[ye],pe,we,Ee);continue}if(ye==="@included"){be.createNodeMap(R[ye],pe,Ae,Ee);continue}if(ye!=="@type"&&he(ye)){if(ye==="@index"&&ye in Ie&&(R[ye]!==Ie[ye]||R[ye]["@id"]!==Ie[ye]["@id"])){throw new ve("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:Ie})}Ie[ye]=R[ye];continue}const Ce=R[ye];if(ye.indexOf("_:")===0){ye=Ee.getId(ye)}if(Ce.length===0){me.addValue(Ie,ye,[],{propertyIsArray:true});continue}for(let R of Ce){if(ye==="@type"){R=R.indexOf("_:")===0?Ee.getId(R):R}if(ge.isSubject(R)||ge.isSubjectReference(R)){if("@id"in R&&!R["@id"]){continue}const he=ge.isBlankNode(R)?Ee.getId(R["@id"]):R["@id"];me.addValue(Ie,ye,{"@id":he},{propertyIsArray:true,allowDuplicate:false});be.createNodeMap(R,pe,Ae,Ee,he)}else if(ge.isValue(R)){me.addValue(Ie,ye,R,{propertyIsArray:true,allowDuplicate:false})}else if(ge.isList(R)){const he=[];be.createNodeMap(R["@list"],pe,Ae,Ee,we,he);R={"@list":he};me.addValue(Ie,ye,R,{propertyIsArray:true,allowDuplicate:false})}else{be.createNodeMap(R,pe,Ae,Ee,we);me.addValue(Ie,ye,R,{propertyIsArray:true,allowDuplicate:false})}}}};be.mergeNodeMapGraphs=R=>{const pe={};for(const Ae of Object.keys(R).sort()){for(const ge of Object.keys(R[Ae]).sort()){const ye=R[Ae][ge];if(!(ge in pe)){pe[ge]={"@id":ge}}const ve=pe[ge];for(const R of Object.keys(ye).sort()){if(he(R)&&R!=="@type"){ve[R]=me.clone(ye[R])}else{for(const pe of ye[R]){me.addValue(ve,R,me.clone(pe),{propertyIsArray:true,allowDuplicate:false})}}}}}return pe};be.mergeNodeMaps=R=>{const pe=R["@default"];const Ae=Object.keys(R).sort();for(const he of Ae){if(he==="@default"){continue}const Ae=R[he];let ye=pe[he];if(!ye){pe[he]=ye={"@id":he,"@graph":[]}}else if(!("@graph"in ye)){ye["@graph"]=[]}const me=ye["@graph"];for(const R of Object.keys(Ae).sort()){const pe=Ae[R];if(!ge.isSubjectReference(pe)){me.push(pe)}}}return pe}},8631:(R,pe,Ae)=>{"use strict";const he=Ae(61189);const ge={};R.exports=ge;ge.setupDocumentLoaders=function(R){R.documentLoaders.node=he;R.useDocumentLoader("node")};ge.setupGlobals=function(R){}},29760:(R,pe,Ae)=>{"use strict";const{createNodeMap:he}=Ae(99618);const{isKeyword:ge}=Ae(41866);const ye=Ae(13631);const me=Ae(40641);const ve=Ae(11625);const be=Ae(86891);const Ee=Ae(69450);const{handleEvent:we}=Ae(75836);const{RDF_FIRST:Ce,RDF_REST:_e,RDF_NIL:Ie,RDF_TYPE:Se,RDF_JSON_LITERAL:Be,RDF_LANGSTRING:ke,XSD_BOOLEAN:Oe,XSD_DOUBLE:Re,XSD_INTEGER:Qe,XSD_STRING:xe}=Ae(18441);const{isAbsolute:Pe}=Ae(40651);const Te={};R.exports=Te;Te.toRDF=(R,pe)=>{const Ae=new Ee.IdentifierIssuer("_:b");const ge={"@default":{}};he(R,ge,"@default",Ae);const ye=[];const me=Object.keys(ge).sort();for(const R of me){let he;if(R==="@default"){he={termType:"DefaultGraph",value:""}}else if(Pe(R)){if(R.startsWith("_:")){he={termType:"BlankNode"}}else{he={termType:"NamedNode"}}he.value=R}else{if(pe.eventHandler){we({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:R}},options:pe})}continue}_graphToRDF(ye,ge[R],he,Ae,pe)}return ye};function _graphToRDF(R,pe,Ae,he,ye){const me=Object.keys(pe).sort();for(const ve of me){const me=pe[ve];const be=Object.keys(me).sort();for(let pe of be){const be=me[pe];if(pe==="@type"){pe=Se}else if(ge(pe)){continue}for(const ge of be){const me={termType:ve.startsWith("_:")?"BlankNode":"NamedNode",value:ve};if(!Pe(ve)){if(ye.eventHandler){we({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:ve}},options:ye})}continue}const be={termType:pe.startsWith("_:")?"BlankNode":"NamedNode",value:pe};if(!Pe(pe)){if(ye.eventHandler){we({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:pe}},options:ye})}continue}if(be.termType==="BlankNode"&&!ye.produceGeneralizedRdf){if(ye.eventHandler){we({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:he.getOldIds().find((R=>he.getId(R)===pe))}},options:ye})}continue}const Ee=_objectToRDF(ge,he,R,Ae,ye.rdfDirection,ye);if(Ee){R.push({subject:me,predicate:be,object:Ee,graph:Ae})}}}}}function _listToRDF(R,pe,Ae,he,ge,ye){const me={termType:"NamedNode",value:Ce};const ve={termType:"NamedNode",value:_e};const be={termType:"NamedNode",value:Ie};const Ee=R.pop();const we=Ee?{termType:"BlankNode",value:pe.getId()}:be;let Se=we;for(const be of R){const R=_objectToRDF(be,pe,Ae,he,ge,ye);const Ee={termType:"BlankNode",value:pe.getId()};Ae.push({subject:Se,predicate:me,object:R,graph:he});Ae.push({subject:Se,predicate:ve,object:Ee,graph:he});Se=Ee}if(Ee){const R=_objectToRDF(Ee,pe,Ae,he,ge,ye);Ae.push({subject:Se,predicate:me,object:R,graph:he});Ae.push({subject:Se,predicate:ve,object:be,graph:he})}return we}function _objectToRDF(R,pe,Ae,he,ge,Ee){const Ce={};if(ye.isValue(R)){Ce.termType="Literal";Ce.value=undefined;Ce.datatype={termType:"NamedNode"};let pe=R["@value"];const Ae=R["@type"]||null;if(Ae==="@json"){Ce.value=me(pe);Ce.datatype.value=Be}else if(be.isBoolean(pe)){Ce.value=pe.toString();Ce.datatype.value=Ae||Oe}else if(be.isDouble(pe)||Ae===Re){if(!be.isDouble(pe)){pe=parseFloat(pe)}Ce.value=pe.toExponential(15).replace(/(\d)0*e\+?/,"$1E");Ce.datatype.value=Ae||Re}else if(be.isNumber(pe)){Ce.value=pe.toFixed(0);Ce.datatype.value=Ae||Qe}else if("@direction"in R&&ge==="i18n-datatype"){const Ae=(R["@language"]||"").toLowerCase();const he=R["@direction"];const ge=`https://www.w3.org/ns/i18n#${Ae}_${he}`;Ce.datatype.value=ge;Ce.value=pe}else if("@direction"in R&&ge==="compound-literal"){throw new ve("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:ge})}else if("@direction"in R&&ge){throw new ve("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:ge})}else if("@language"in R){if("@direction"in R&&!ge){if(Ee.eventHandler){we({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:Ce.value}},options:Ee})}}Ce.value=pe;Ce.datatype.value=Ae||ke;Ce.language=R["@language"]}else{if("@direction"in R&&!ge){if(Ee.eventHandler){we({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:Ce.value}},options:Ee})}}Ce.value=pe;Ce.datatype.value=Ae||xe}}else if(ye.isList(R)){const ye=_listToRDF(R["@list"],pe,Ae,he,ge,Ee);Ce.termType=ye.termType;Ce.value=ye.value}else{const pe=be.isObject(R)?R["@id"]:R;Ce.termType=pe.startsWith("_:")?"BlankNode":"NamedNode";Ce.value=pe}if(Ce.termType==="NamedNode"&&!Pe(Ce.value)){if(Ee.eventHandler){we({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:Ce.value}},options:Ee})}return null}return Ce}},86891:R=>{"use strict";const pe={};R.exports=pe;pe.isArray=Array.isArray;pe.isBoolean=R=>typeof R==="boolean"||Object.prototype.toString.call(R)==="[object Boolean]";pe.isDouble=R=>pe.isNumber(R)&&(String(R).indexOf(".")!==-1||Math.abs(R)>=1e21);pe.isEmptyObject=R=>pe.isObject(R)&&Object.keys(R).length===0;pe.isNumber=R=>typeof R==="number"||Object.prototype.toString.call(R)==="[object Number]";pe.isNumeric=R=>!isNaN(parseFloat(R))&&isFinite(R);pe.isObject=R=>Object.prototype.toString.call(R)==="[object Object]";pe.isString=R=>typeof R==="string"||Object.prototype.toString.call(R)==="[object String]";pe.isUndefined=R=>typeof R==="undefined"},40651:(R,pe,Ae)=>{"use strict";const he=Ae(86891);const ge={};R.exports=ge;ge.parsers={simple:{keys:["href","scheme","authority","path","query","fragment"],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:["href","protocol","scheme","authority","auth","user","password","hostname","port","path","directory","file","query","fragment"],regex:/^(([a-zA-Z][a-zA-Z0-9+-.]*):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}};ge.parse=(R,pe)=>{const Ae={};const he=ge.parsers[pe||"full"];const ye=he.regex.exec(R);let me=he.keys.length;while(me--){Ae[he.keys[me]]=ye[me]===undefined?null:ye[me]}if(Ae.scheme==="https"&&Ae.port==="443"||Ae.scheme==="http"&&Ae.port==="80"){Ae.href=Ae.href.replace(":"+Ae.port,"");Ae.authority=Ae.authority.replace(":"+Ae.port,"");Ae.port=null}Ae.normalizedPath=ge.removeDotSegments(Ae.path);return Ae};ge.prependBase=(R,pe)=>{if(R===null){return pe}if(ge.isAbsolute(pe)){return pe}if(!R||he.isString(R)){R=ge.parse(R||"")}const Ae=ge.parse(pe);const ye={protocol:R.protocol||""};if(Ae.authority!==null){ye.authority=Ae.authority;ye.path=Ae.path;ye.query=Ae.query}else{ye.authority=R.authority;if(Ae.path===""){ye.path=R.path;if(Ae.query!==null){ye.query=Ae.query}else{ye.query=R.query}}else{if(Ae.path.indexOf("/")===0){ye.path=Ae.path}else{let pe=R.path;pe=pe.substr(0,pe.lastIndexOf("/")+1);if((pe.length>0||R.authority)&&pe.substr(-1)!=="/"){pe+="/"}pe+=Ae.path;ye.path=pe}ye.query=Ae.query}}if(Ae.path!==""){ye.path=ge.removeDotSegments(ye.path)}let me=ye.protocol;if(ye.authority!==null){me+="//"+ye.authority}me+=ye.path;if(ye.query!==null){me+="?"+ye.query}if(Ae.fragment!==null){me+="#"+Ae.fragment}if(me===""){me="./"}return me};ge.removeBase=(R,pe)=>{if(R===null){return pe}if(!R||he.isString(R)){R=ge.parse(R||"")}let Ae="";if(R.href!==""){Ae+=(R.protocol||"")+"//"+(R.authority||"")}else if(pe.indexOf("//")){Ae+="//"}if(pe.indexOf(Ae)!==0){return pe}const ye=ge.parse(pe.substr(Ae.length));const me=R.normalizedPath.split("/");const ve=ye.normalizedPath.split("/");const be=ye.fragment||ye.query?0:1;while(me.length>0&&ve.length>be){if(me[0]!==ve[0]){break}me.shift();ve.shift()}let Ee="";if(me.length>0){me.pop();for(let R=0;R{if(R.length===0){return""}const pe=R.split("/");const Ae=[];while(pe.length>0){const R=pe.shift();const he=pe.length===0;if(R==="."){if(he){Ae.push("")}continue}if(R===".."){Ae.pop();if(he){Ae.push("")}continue}Ae.push(R)}if(R[0]==="/"&&Ae.length>0&&Ae[0]!==""){Ae.unshift("")}if(Ae.length===1&&Ae[0]===""){return"/"}return Ae.join("/")};const ye=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;ge.isAbsolute=R=>he.isString(R)&&ye.test(R);ge.isRelative=R=>he.isString(R)},69450:(R,pe,Ae)=>{"use strict";const he=Ae(13631);const ge=Ae(86891);const ye=Ae(43).IdentifierIssuer;const me=Ae(11625);const ve=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/;const be=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g;const Ee=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/;const we=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g;const Ce=/^@[a-zA-Z]+$/;const _e={headers:{accept:"application/ld+json, application/json"}};const Ie={};R.exports=Ie;Ie.IdentifierIssuer=ye;Ie.REGEX_BCP47=ve;Ie.REGEX_KEYWORD=Ce;Ie.clone=function(R){if(R&&typeof R==="object"){let pe;if(ge.isArray(R)){pe=[];for(let Ae=0;Ae{const pe=Object.keys(R).some((R=>R.toLowerCase()==="accept"));if(pe){throw new RangeError('Accept header may not be specified; only "'+_e.headers.accept+'" is supported.')}return Object.assign({Accept:_e.headers.accept},R)};Ie.parseLinkHeader=R=>{const pe={};const Ae=R.match(be);for(let R=0;R{if(ge.isString(R)){return}if(ge.isArray(R)&&R.every((R=>ge.isString(R)))){return}if(pe&&ge.isObject(R)){switch(Object.keys(R).length){case 0:return;case 1:if("@default"in R&&Ie.asArray(R["@default"]).every((R=>ge.isString(R)))){return}}}throw new me('Invalid JSON-LD syntax; "@type" value must a string, an array of '+"strings, an empty object, "+"or a default object.","jsonld.SyntaxError",{code:"invalid type value",value:R})};Ie.hasProperty=(R,pe)=>{if(R.hasOwnProperty(pe)){const Ae=R[pe];return!ge.isArray(Ae)||Ae.length>0}return false};Ie.hasValue=(R,pe,Ae)=>{if(Ie.hasProperty(R,pe)){let ye=R[pe];const me=he.isList(ye);if(ge.isArray(ye)||me){if(me){ye=ye["@list"]}for(let R=0;R{he=he||{};if(!("propertyIsArray"in he)){he.propertyIsArray=false}if(!("valueIsArray"in he)){he.valueIsArray=false}if(!("allowDuplicate"in he)){he.allowDuplicate=true}if(!("prependValue"in he)){he.prependValue=false}if(he.valueIsArray){R[pe]=Ae}else if(ge.isArray(Ae)){if(Ae.length===0&&he.propertyIsArray&&!R.hasOwnProperty(pe)){R[pe]=[]}if(he.prependValue){Ae=Ae.concat(R[pe]);R[pe]=[]}for(let ge=0;ge[].concat(R[pe]||[]);Ie.removeProperty=(R,pe)=>{delete R[pe]};Ie.removeValue=(R,pe,Ae,he)=>{he=he||{};if(!("propertyIsArray"in he)){he.propertyIsArray=false}const ge=Ie.getValues(R,pe).filter((R=>!Ie.compareValues(R,Ae)));if(ge.length===0){Ie.removeProperty(R,pe)}else if(ge.length===1&&!he.propertyIsArray){R[pe]=ge[0]}else{R[pe]=ge}};Ie.relabelBlankNodes=(R,pe)=>{pe=pe||{};const Ae=pe.issuer||new ye("_:b");return _labelBlankNodes(Ae,R)};Ie.compareValues=(R,pe)=>{if(R===pe){return true}if(he.isValue(R)&&he.isValue(pe)&&R["@value"]===pe["@value"]&&R["@type"]===pe["@type"]&&R["@language"]===pe["@language"]&&R["@index"]===pe["@index"]){return true}if(ge.isObject(R)&&"@id"in R&&ge.isObject(pe)&&"@id"in pe){return R["@id"]===pe["@id"]}return false};Ie.compareShortestLeast=(R,pe)=>{if(R.length{"use strict";const he=Ae(53622);const ge=Symbol("max");const ye=Symbol("length");const me=Symbol("lengthCalculator");const ve=Symbol("allowStale");const be=Symbol("maxAge");const Ee=Symbol("dispose");const we=Symbol("noDisposeOnSet");const Ce=Symbol("lruList");const _e=Symbol("cache");const Ie=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(R){if(typeof R==="number")R={max:R};if(!R)R={};if(R.max&&(typeof R.max!=="number"||R.max<0))throw new TypeError("max must be a non-negative number");const pe=this[ge]=R.max||Infinity;const Ae=R.length||naiveLength;this[me]=typeof Ae!=="function"?naiveLength:Ae;this[ve]=R.stale||false;if(R.maxAge&&typeof R.maxAge!=="number")throw new TypeError("maxAge must be a number");this[be]=R.maxAge||0;this[Ee]=R.dispose;this[we]=R.noDisposeOnSet||false;this[Ie]=R.updateAgeOnGet||false;this.reset()}set max(R){if(typeof R!=="number"||R<0)throw new TypeError("max must be a non-negative number");this[ge]=R||Infinity;trim(this)}get max(){return this[ge]}set allowStale(R){this[ve]=!!R}get allowStale(){return this[ve]}set maxAge(R){if(typeof R!=="number")throw new TypeError("maxAge must be a non-negative number");this[be]=R;trim(this)}get maxAge(){return this[be]}set lengthCalculator(R){if(typeof R!=="function")R=naiveLength;if(R!==this[me]){this[me]=R;this[ye]=0;this[Ce].forEach((R=>{R.length=this[me](R.value,R.key);this[ye]+=R.length}))}trim(this)}get lengthCalculator(){return this[me]}get length(){return this[ye]}get itemCount(){return this[Ce].length}rforEach(R,pe){pe=pe||this;for(let Ae=this[Ce].tail;Ae!==null;){const he=Ae.prev;forEachStep(this,R,Ae,pe);Ae=he}}forEach(R,pe){pe=pe||this;for(let Ae=this[Ce].head;Ae!==null;){const he=Ae.next;forEachStep(this,R,Ae,pe);Ae=he}}keys(){return this[Ce].toArray().map((R=>R.key))}values(){return this[Ce].toArray().map((R=>R.value))}reset(){if(this[Ee]&&this[Ce]&&this[Ce].length){this[Ce].forEach((R=>this[Ee](R.key,R.value)))}this[_e]=new Map;this[Ce]=new he;this[ye]=0}dump(){return this[Ce].map((R=>isStale(this,R)?false:{k:R.key,v:R.value,e:R.now+(R.maxAge||0)})).toArray().filter((R=>R))}dumpLru(){return this[Ce]}set(R,pe,Ae){Ae=Ae||this[be];if(Ae&&typeof Ae!=="number")throw new TypeError("maxAge must be a number");const he=Ae?Date.now():0;const ve=this[me](pe,R);if(this[_e].has(R)){if(ve>this[ge]){del(this,this[_e].get(R));return false}const me=this[_e].get(R);const be=me.value;if(this[Ee]){if(!this[we])this[Ee](R,be.value)}be.now=he;be.maxAge=Ae;be.value=pe;this[ye]+=ve-be.length;be.length=ve;this.get(R);trim(this);return true}const Ie=new Entry(R,pe,ve,he,Ae);if(Ie.length>this[ge]){if(this[Ee])this[Ee](R,pe);return false}this[ye]+=Ie.length;this[Ce].unshift(Ie);this[_e].set(R,this[Ce].head);trim(this);return true}has(R){if(!this[_e].has(R))return false;const pe=this[_e].get(R).value;return!isStale(this,pe)}get(R){return get(this,R,true)}peek(R){return get(this,R,false)}pop(){const R=this[Ce].tail;if(!R)return null;del(this,R);return R.value}del(R){del(this,this[_e].get(R))}load(R){this.reset();const pe=Date.now();for(let Ae=R.length-1;Ae>=0;Ae--){const he=R[Ae];const ge=he.e||0;if(ge===0)this.set(he.k,he.v);else{const R=ge-pe;if(R>0){this.set(he.k,he.v,R)}}}}prune(){this[_e].forEach(((R,pe)=>get(this,pe,false)))}}const get=(R,pe,Ae)=>{const he=R[_e].get(pe);if(he){const pe=he.value;if(isStale(R,pe)){del(R,he);if(!R[ve])return undefined}else{if(Ae){if(R[Ie])he.value.now=Date.now();R[Ce].unshiftNode(he)}}return pe.value}};const isStale=(R,pe)=>{if(!pe||!pe.maxAge&&!R[be])return false;const Ae=Date.now()-pe.now;return pe.maxAge?Ae>pe.maxAge:R[be]&&Ae>R[be]};const trim=R=>{if(R[ye]>R[ge]){for(let pe=R[Ce].tail;R[ye]>R[ge]&&pe!==null;){const Ae=pe.prev;del(R,pe);pe=Ae}}};const del=(R,pe)=>{if(pe){const Ae=pe.value;if(R[Ee])R[Ee](Ae.key,Ae.value);R[ye]-=Ae.length;R[_e].delete(Ae.key);R[Ce].removeNode(pe)}};class Entry{constructor(R,pe,Ae,he,ge){this.key=R;this.value=pe;this.length=Ae;this.now=he;this.maxAge=ge||0}}const forEachStep=(R,pe,Ae,he)=>{let ge=Ae.value;if(isStale(R,ge)){del(R,Ae);if(!R[ve])ge=undefined}if(ge)pe.call(he,ge.value,ge.key,R)};R.exports=LRUCache},73180:R=>{"use strict";R.exports=function(R){R.prototype[Symbol.iterator]=function*(){for(let R=this.head;R;R=R.next){yield R.value}}}},53622:(R,pe,Ae)=>{"use strict";R.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(R){var pe=this;if(!(pe instanceof Yallist)){pe=new Yallist}pe.tail=null;pe.head=null;pe.length=0;if(R&&typeof R.forEach==="function"){R.forEach((function(R){pe.push(R)}))}else if(arguments.length>0){for(var Ae=0,he=arguments.length;Ae1){Ae=pe}else if(this.head){he=this.head.next;Ae=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var ge=0;he!==null;ge++){Ae=R(Ae,he.value,ge);he=he.next}return Ae};Yallist.prototype.reduceReverse=function(R,pe){var Ae;var he=this.tail;if(arguments.length>1){Ae=pe}else if(this.tail){he=this.tail.prev;Ae=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var ge=this.length-1;he!==null;ge--){Ae=R(Ae,he.value,ge);he=he.prev}return Ae};Yallist.prototype.toArray=function(){var R=new Array(this.length);for(var pe=0,Ae=this.head;Ae!==null;pe++){R[pe]=Ae.value;Ae=Ae.next}return R};Yallist.prototype.toArrayReverse=function(){var R=new Array(this.length);for(var pe=0,Ae=this.tail;Ae!==null;pe++){R[pe]=Ae.value;Ae=Ae.prev}return R};Yallist.prototype.slice=function(R,pe){pe=pe||this.length;if(pe<0){pe+=this.length}R=R||0;if(R<0){R+=this.length}var Ae=new Yallist;if(pethis.length){pe=this.length}for(var he=0,ge=this.head;ge!==null&&hethis.length){pe=this.length}for(var he=this.length,ge=this.tail;ge!==null&&he>pe;he--){ge=ge.prev}for(;ge!==null&&he>R;he--,ge=ge.prev){Ae.push(ge.value)}return Ae};Yallist.prototype.splice=function(R,pe,...Ae){if(R>this.length){R=this.length-1}if(R<0){R=this.length+R}for(var he=0,ge=this.head;ge!==null&&he{ /*! * mime-db * Copyright(c) 2014 Jonathan Ong @@ -133,15 +133,15 @@ R.exports=Ae(53765)},43583:(R,pe,Ae)=>{"use strict"; * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed - */var he=Ae(47426);var ge=Ae(71017).extname;var ye=/^\s*([^;\s]*)(?:;|\s|$)/;var me=/^text\//i;pe.charset=charset;pe.charsets={lookup:charset};pe.contentType=contentType;pe.extension=extension;pe.extensions=Object.create(null);pe.lookup=lookup;pe.types=Object.create(null);populateMaps(pe.extensions,pe.types);function charset(R){if(!R||typeof R!=="string"){return false}var pe=ye.exec(R);var Ae=pe&&he[pe[1].toLowerCase()];if(Ae&&Ae.charset){return Ae.charset}if(pe&&me.test(pe[1])){return"UTF-8"}return false}function contentType(R){if(!R||typeof R!=="string"){return false}var Ae=R.indexOf("/")===-1?pe.lookup(R):R;if(!Ae){return false}if(Ae.indexOf("charset")===-1){var he=pe.charset(Ae);if(he)Ae+="; charset="+he.toLowerCase()}return Ae}function extension(R){if(!R||typeof R!=="string"){return false}var Ae=ye.exec(R);var he=Ae&&pe.extensions[Ae[1].toLowerCase()];if(!he||!he.length){return false}return he[0]}function lookup(R){if(!R||typeof R!=="string"){return false}var Ae=ge("x."+R).toLowerCase().substr(1);if(!Ae){return false}return pe.types[Ae]||false}function populateMaps(R,pe){var Ae=["nginx","apache",undefined,"iana"];Object.keys(he).forEach((function forEachMimeType(ge){var ye=he[ge];var me=ye.extensions;if(!me||!me.length){return}R[ge]=me;for(var ve=0;veCe||Ee===Ce&&pe[be].substr(0,12)==="application/")){continue}}pe[be]=ge}}))}},99623:function(R,pe,Ae){R=Ae.nmd(R); + */var he=Ae(47426);var ge=Ae(71017).extname;var ye=/^\s*([^;\s]*)(?:;|\s|$)/;var me=/^text\//i;pe.charset=charset;pe.charsets={lookup:charset};pe.contentType=contentType;pe.extension=extension;pe.extensions=Object.create(null);pe.lookup=lookup;pe.types=Object.create(null);populateMaps(pe.extensions,pe.types);function charset(R){if(!R||typeof R!=="string"){return false}var pe=ye.exec(R);var Ae=pe&&he[pe[1].toLowerCase()];if(Ae&&Ae.charset){return Ae.charset}if(pe&&me.test(pe[1])){return"UTF-8"}return false}function contentType(R){if(!R||typeof R!=="string"){return false}var Ae=R.indexOf("/")===-1?pe.lookup(R):R;if(!Ae){return false}if(Ae.indexOf("charset")===-1){var he=pe.charset(Ae);if(he)Ae+="; charset="+he.toLowerCase()}return Ae}function extension(R){if(!R||typeof R!=="string"){return false}var Ae=ye.exec(R);var he=Ae&&pe.extensions[Ae[1].toLowerCase()];if(!he||!he.length){return false}return he[0]}function lookup(R){if(!R||typeof R!=="string"){return false}var Ae=ge("x."+R).toLowerCase().substr(1);if(!Ae){return false}return pe.types[Ae]||false}function populateMaps(R,pe){var Ae=["nginx","apache",undefined,"iana"];Object.keys(he).forEach((function forEachMimeType(ge){var ye=he[ge];var me=ye.extensions;if(!me||!me.length){return}R[ge]=me;for(var ve=0;vewe||Ee===we&&pe[be].substr(0,12)==="application/")){continue}}pe[be]=ge}}))}},99623:function(R,pe,Ae){R=Ae.nmd(R); //! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -(function(pe,Ae){true?R.exports=Ae():0})(this,(function(){"use strict";var pe;function hooks(){return pe.apply(null,arguments)}function setHookCallback(R){pe=R}function isArray(R){return R instanceof Array||Object.prototype.toString.call(R)==="[object Array]"}function isObject(R){return R!=null&&Object.prototype.toString.call(R)==="[object Object]"}function hasOwnProp(R,pe){return Object.prototype.hasOwnProperty.call(R,pe)}function isObjectEmpty(R){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(R).length===0}else{var pe;for(pe in R){if(hasOwnProp(R,pe)){return false}}return true}}function isUndefined(R){return R===void 0}function isNumber(R){return typeof R==="number"||Object.prototype.toString.call(R)==="[object Number]"}function isDate(R){return R instanceof Date||Object.prototype.toString.call(R)==="[object Date]"}function map(R,pe){var Ae=[],he,ge=R.length;for(he=0;he>>0,he;for(he=0;he0){for(Ae=0;Ae=0;return(ye?Ae?"+":"":"-")+Math.pow(10,Math.max(0,ge)).toString().substr(1)+he}var be=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ee=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ce={},we={};function addFormatToken(R,pe,Ae,he){var ge=he;if(typeof he==="string"){ge=function(){return this[he]()}}if(R){we[R]=ge}if(pe){we[pe[0]]=function(){return zeroFill(ge.apply(this,arguments),pe[1],pe[2])}}if(Ae){we[Ae]=function(){return this.localeData().ordinal(ge.apply(this,arguments),R)}}}function removeFormattingTokens(R){if(R.match(/\[[\s\S]/)){return R.replace(/^\[|\]$/g,"")}return R.replace(/\\/g,"")}function makeFormatFunction(R){var pe=R.match(be),Ae,he;for(Ae=0,he=pe.length;Ae=0&&Ee.test(R)){R=R.replace(Ee,replaceLongDateFormatTokens);Ee.lastIndex=0;Ae-=1}return R}var _e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(R){var pe=this._longDateFormat[R],Ae=this._longDateFormat[R.toUpperCase()];if(pe||!Ae){return pe}this._longDateFormat[R]=Ae.match(be).map((function(R){if(R==="MMMM"||R==="MM"||R==="DD"||R==="dddd"){return R.slice(1)}return R})).join("");return this._longDateFormat[R]}var Ie="Invalid date";function invalidDate(){return this._invalidDate}var Se="%d",Be=/\d{1,2}/;function ordinal(R){return this._ordinal.replace("%d",R)}var ke={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(R,pe,Ae,he){var ge=this._relativeTime[Ae];return isFunction(ge)?ge(R,pe,Ae,he):ge.replace(/%d/i,R)}function pastFuture(R,pe){var Ae=this._relativeTime[R>0?"future":"past"];return isFunction(Ae)?Ae(pe):Ae.replace(/%s/i,pe)}var Oe={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function normalizeUnits(R){return typeof R==="string"?Oe[R]||Oe[R.toLowerCase()]:undefined}function normalizeObjectUnits(R){var pe={},Ae,he;for(he in R){if(hasOwnProp(R,he)){Ae=normalizeUnits(he);if(Ae){pe[Ae]=R[he]}}}return pe}var Re={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function getPrioritizedUnits(R){var pe=[],Ae;for(Ae in R){if(hasOwnProp(R,Ae)){pe.push({unit:Ae,priority:Re[Ae]})}}pe.sort((function(R,pe){return R.priority-pe.priority}));return pe}var Qe=/\d/,xe=/\d\d/,Pe=/\d{3}/,Te=/\d{4}/,De=/[+-]?\d{6}/,Ne=/\d\d?/,Me=/\d\d\d\d?/,je=/\d\d\d\d\d\d?/,Fe=/\d{1,3}/,Le=/\d{1,4}/,Ue=/[+-]?\d{1,6}/,He=/\d+/,Je=/[+-]?\d+/,We=/Z|[+-]\d\d:?\d\d/gi,Ve=/Z|[+-]\d\d(?::?\d\d)?/gi,Ke=/[+-]?\d+(\.\d{1,3})?/,Ge=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ye=/^[1-9]\d?/,qe=/^([1-9]\d|\d)/,$e;$e={};function addRegexToken(R,pe,Ae){$e[R]=isFunction(pe)?pe:function(R,he){return R&&Ae?Ae:pe}}function getParseRegexForToken(R,pe){if(!hasOwnProp($e,R)){return new RegExp(unescapeFormat(R))}return $e[R](pe._strict,pe._locale)}function unescapeFormat(R){return regexEscape(R.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(R,pe,Ae,he,ge){return pe||Ae||he||ge})))}function regexEscape(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(R){if(R<0){return Math.ceil(R)||0}else{return Math.floor(R)}}function toInt(R){var pe=+R,Ae=0;if(pe!==0&&isFinite(pe)){Ae=absFloor(pe)}return Ae}var ze={};function addParseToken(R,pe){var Ae,he=pe,ge;if(typeof R==="string"){R=[R]}if(isNumber(pe)){he=function(R,Ae){Ae[pe]=toInt(R)}}ge=R.length;for(Ae=0;Ae68?1900:2e3)};var at=makeGetSet("FullYear",true);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(R,pe){return function(Ae){if(Ae!=null){set$1(this,R,Ae);hooks.updateOffset(this,pe);return this}else{return get(this,R)}}}function get(R,pe){if(!R.isValid()){return NaN}var Ae=R._d,he=R._isUTC;switch(pe){case"Milliseconds":return he?Ae.getUTCMilliseconds():Ae.getMilliseconds();case"Seconds":return he?Ae.getUTCSeconds():Ae.getSeconds();case"Minutes":return he?Ae.getUTCMinutes():Ae.getMinutes();case"Hours":return he?Ae.getUTCHours():Ae.getHours();case"Date":return he?Ae.getUTCDate():Ae.getDate();case"Day":return he?Ae.getUTCDay():Ae.getDay();case"Month":return he?Ae.getUTCMonth():Ae.getMonth();case"FullYear":return he?Ae.getUTCFullYear():Ae.getFullYear();default:return NaN}}function set$1(R,pe,Ae){var he,ge,ye,me,ve;if(!R.isValid()||isNaN(Ae)){return}he=R._d;ge=R._isUTC;switch(pe){case"Milliseconds":return void(ge?he.setUTCMilliseconds(Ae):he.setMilliseconds(Ae));case"Seconds":return void(ge?he.setUTCSeconds(Ae):he.setSeconds(Ae));case"Minutes":return void(ge?he.setUTCMinutes(Ae):he.setMinutes(Ae));case"Hours":return void(ge?he.setUTCHours(Ae):he.setHours(Ae));case"Date":return void(ge?he.setUTCDate(Ae):he.setDate(Ae));case"FullYear":break;default:return}ye=Ae;me=R.month();ve=R.date();ve=ve===29&&me===1&&!isLeapYear(ye)?28:ve;void(ge?he.setUTCFullYear(ye,me,ve):he.setFullYear(ye,me,ve))}function stringGet(R){R=normalizeUnits(R);if(isFunction(this[R])){return this[R]()}return this}function stringSet(R,pe){if(typeof R==="object"){R=normalizeObjectUnits(R);var Ae=getPrioritizedUnits(R),he,ge=Ae.length;for(he=0;he=0){ve=new Date(R+400,pe,Ae,he,ge,ye,me);if(isFinite(ve.getFullYear())){ve.setFullYear(R)}}else{ve=new Date(R,pe,Ae,he,ge,ye,me)}return ve}function createUTCDate(R){var pe,Ae;if(R<100&&R>=0){Ae=Array.prototype.slice.call(arguments);Ae[0]=R+400;pe=new Date(Date.UTC.apply(null,Ae));if(isFinite(pe.getUTCFullYear())){pe.setUTCFullYear(R)}}else{pe=new Date(Date.UTC.apply(null,arguments))}return pe}function firstWeekOffset(R,pe,Ae){var he=7+pe-Ae,ge=(7+createUTCDate(R,0,he).getUTCDay()-pe)%7;return-ge+he-1}function dayOfYearFromWeeks(R,pe,Ae,he,ge){var ye=(7+Ae-he)%7,me=firstWeekOffset(R,he,ge),ve=1+7*(pe-1)+ye+me,be,Ee;if(ve<=0){be=R-1;Ee=daysInYear(be)+ve}else if(ve>daysInYear(R)){be=R+1;Ee=ve-daysInYear(R)}else{be=R;Ee=ve}return{year:be,dayOfYear:Ee}}function weekOfYear(R,pe,Ae){var he=firstWeekOffset(R.year(),pe,Ae),ge=Math.floor((R.dayOfYear()-he-1)/7)+1,ye,me;if(ge<1){me=R.year()-1;ye=ge+weeksInYear(me,pe,Ae)}else if(ge>weeksInYear(R.year(),pe,Ae)){ye=ge-weeksInYear(R.year(),pe,Ae);me=R.year()+1}else{me=R.year();ye=ge}return{week:ye,year:me}}function weeksInYear(R,pe,Ae){var he=firstWeekOffset(R,pe,Ae),ge=firstWeekOffset(R+1,pe,Ae);return(daysInYear(R)-he+ge)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addRegexToken("w",Ne,Ye);addRegexToken("ww",Ne,xe);addRegexToken("W",Ne,Ye);addRegexToken("WW",Ne,xe);addWeekParseToken(["w","ww","W","WW"],(function(R,pe,Ae,he){pe[he.substr(0,1)]=toInt(R)}));function localeWeek(R){return weekOfYear(R,this._week.dow,this._week.doy).week}var At={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(R){var pe=this.localeData().week(this);return R==null?pe:this.add((R-pe)*7,"d")}function getSetISOWeek(R){var pe=weekOfYear(this,1,4).week;return R==null?pe:this.add((R-pe)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,(function(R){return this.localeData().weekdaysMin(this,R)}));addFormatToken("ddd",0,0,(function(R){return this.localeData().weekdaysShort(this,R)}));addFormatToken("dddd",0,0,(function(R){return this.localeData().weekdays(this,R)}));addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addRegexToken("d",Ne);addRegexToken("e",Ne);addRegexToken("E",Ne);addRegexToken("dd",(function(R,pe){return pe.weekdaysMinRegex(R)}));addRegexToken("ddd",(function(R,pe){return pe.weekdaysShortRegex(R)}));addRegexToken("dddd",(function(R,pe){return pe.weekdaysRegex(R)}));addWeekParseToken(["dd","ddd","dddd"],(function(R,pe,Ae,he){var ge=Ae._locale.weekdaysParse(R,he,Ae._strict);if(ge!=null){pe.d=ge}else{getParsingFlags(Ae).invalidWeekday=R}}));addWeekParseToken(["d","e","E"],(function(R,pe,Ae,he){pe[he]=toInt(R)}));function parseWeekday(R,pe){if(typeof R!=="string"){return R}if(!isNaN(R)){return parseInt(R,10)}R=pe.weekdaysParse(R);if(typeof R==="number"){return R}return null}function parseIsoWeekday(R,pe){if(typeof R==="string"){return pe.weekdaysParse(R)%7||7}return isNaN(R)?null:R}function shiftWeekdays(R,pe){return R.slice(pe,7).concat(R.slice(0,pe))}var ht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),mt=Ge,vt=Ge,bt=Ge;function localeWeekdays(R,pe){var Ae=isArray(this._weekdays)?this._weekdays:this._weekdays[R&&R!==true&&this._weekdays.isFormat.test(pe)?"format":"standalone"];return R===true?shiftWeekdays(Ae,this._week.dow):R?Ae[R.day()]:Ae}function localeWeekdaysShort(R){return R===true?shiftWeekdays(this._weekdaysShort,this._week.dow):R?this._weekdaysShort[R.day()]:this._weekdaysShort}function localeWeekdaysMin(R){return R===true?shiftWeekdays(this._weekdaysMin,this._week.dow):R?this._weekdaysMin[R.day()]:this._weekdaysMin}function handleStrictParse$1(R,pe,Ae){var he,ge,ye,me=R.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(he=0;he<7;++he){ye=createUTC([2e3,1]).day(he);this._minWeekdaysParse[he]=this.weekdaysMin(ye,"").toLocaleLowerCase();this._shortWeekdaysParse[he]=this.weekdaysShort(ye,"").toLocaleLowerCase();this._weekdaysParse[he]=this.weekdays(ye,"").toLocaleLowerCase()}}if(Ae){if(pe==="dddd"){ge=ct.call(this._weekdaysParse,me);return ge!==-1?ge:null}else if(pe==="ddd"){ge=ct.call(this._shortWeekdaysParse,me);return ge!==-1?ge:null}else{ge=ct.call(this._minWeekdaysParse,me);return ge!==-1?ge:null}}else{if(pe==="dddd"){ge=ct.call(this._weekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._shortWeekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._minWeekdaysParse,me);return ge!==-1?ge:null}else if(pe==="ddd"){ge=ct.call(this._shortWeekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._weekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._minWeekdaysParse,me);return ge!==-1?ge:null}else{ge=ct.call(this._minWeekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._weekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._shortWeekdaysParse,me);return ge!==-1?ge:null}}}function localeWeekdaysParse(R,pe,Ae){var he,ge,ye;if(this._weekdaysParseExact){return handleStrictParse$1.call(this,R,pe,Ae)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(he=0;he<7;he++){ge=createUTC([2e3,1]).day(he);if(Ae&&!this._fullWeekdaysParse[he]){this._fullWeekdaysParse[he]=new RegExp("^"+this.weekdays(ge,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[he]=new RegExp("^"+this.weekdaysShort(ge,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[he]=new RegExp("^"+this.weekdaysMin(ge,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[he]){ye="^"+this.weekdays(ge,"")+"|^"+this.weekdaysShort(ge,"")+"|^"+this.weekdaysMin(ge,"");this._weekdaysParse[he]=new RegExp(ye.replace(".",""),"i")}if(Ae&&pe==="dddd"&&this._fullWeekdaysParse[he].test(R)){return he}else if(Ae&&pe==="ddd"&&this._shortWeekdaysParse[he].test(R)){return he}else if(Ae&&pe==="dd"&&this._minWeekdaysParse[he].test(R)){return he}else if(!Ae&&this._weekdaysParse[he].test(R)){return he}}}function getSetDayOfWeek(R){if(!this.isValid()){return R!=null?this:NaN}var pe=get(this,"Day");if(R!=null){R=parseWeekday(R,this.localeData());return this.add(R-pe,"d")}else{return pe}}function getSetLocaleDayOfWeek(R){if(!this.isValid()){return R!=null?this:NaN}var pe=(this.day()+7-this.localeData()._week.dow)%7;return R==null?pe:this.add(R-pe,"d")}function getSetISODayOfWeek(R){if(!this.isValid()){return R!=null?this:NaN}if(R!=null){var pe=parseIsoWeekday(R,this.localeData());return this.day(this.day()%7?pe:pe-7)}else{return this.day()||7}}function weekdaysRegex(R){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(R){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!hasOwnProp(this,"_weekdaysRegex")){this._weekdaysRegex=mt}return this._weekdaysStrictRegex&&R?this._weekdaysStrictRegex:this._weekdaysRegex}}function weekdaysShortRegex(R){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(R){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!hasOwnProp(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=vt}return this._weekdaysShortStrictRegex&&R?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function weekdaysMinRegex(R){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(R){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!hasOwnProp(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=bt}return this._weekdaysMinStrictRegex&&R?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function computeWeekdaysParse(){function cmpLenRev(R,pe){return pe.length-R.length}var R=[],pe=[],Ae=[],he=[],ge,ye,me,ve,be;for(ge=0;ge<7;ge++){ye=createUTC([2e3,1]).day(ge);me=regexEscape(this.weekdaysMin(ye,""));ve=regexEscape(this.weekdaysShort(ye,""));be=regexEscape(this.weekdays(ye,""));R.push(me);pe.push(ve);Ae.push(be);he.push(me);he.push(ve);he.push(be)}R.sort(cmpLenRev);pe.sort(cmpLenRev);Ae.sort(cmpLenRev);he.sort(cmpLenRev);this._weekdaysRegex=new RegExp("^("+he.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+Ae.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+pe.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+R.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)}));addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}));addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)}));addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}));function meridiem(R,pe){addFormatToken(R,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),pe)}))}meridiem("a",true);meridiem("A",false);function matchMeridiem(R,pe){return pe._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",Ne,qe);addRegexToken("h",Ne,Ye);addRegexToken("k",Ne,Ye);addRegexToken("HH",Ne,xe);addRegexToken("hh",Ne,xe);addRegexToken("kk",Ne,xe);addRegexToken("hmm",Me);addRegexToken("hmmss",je);addRegexToken("Hmm",Me);addRegexToken("Hmmss",je);addParseToken(["H","HH"],tt);addParseToken(["k","kk"],(function(R,pe,Ae){var he=toInt(R);pe[tt]=he===24?0:he}));addParseToken(["a","A"],(function(R,pe,Ae){Ae._isPm=Ae._locale.isPM(R);Ae._meridiem=R}));addParseToken(["h","hh"],(function(R,pe,Ae){pe[tt]=toInt(R);getParsingFlags(Ae).bigHour=true}));addParseToken("hmm",(function(R,pe,Ae){var he=R.length-2;pe[tt]=toInt(R.substr(0,he));pe[rt]=toInt(R.substr(he));getParsingFlags(Ae).bigHour=true}));addParseToken("hmmss",(function(R,pe,Ae){var he=R.length-4,ge=R.length-2;pe[tt]=toInt(R.substr(0,he));pe[rt]=toInt(R.substr(he,2));pe[nt]=toInt(R.substr(ge));getParsingFlags(Ae).bigHour=true}));addParseToken("Hmm",(function(R,pe,Ae){var he=R.length-2;pe[tt]=toInt(R.substr(0,he));pe[rt]=toInt(R.substr(he))}));addParseToken("Hmmss",(function(R,pe,Ae){var he=R.length-4,ge=R.length-2;pe[tt]=toInt(R.substr(0,he));pe[rt]=toInt(R.substr(he,2));pe[nt]=toInt(R.substr(ge))}));function localeIsPM(R){return(R+"").toLowerCase().charAt(0)==="p"}var Et=/[ap]\.?m?\.?/i,Ct=makeGetSet("Hours",true);function localeMeridiem(R,pe,Ae){if(R>11){return Ae?"pm":"PM"}else{return Ae?"am":"AM"}}var wt={calendar:ve,longDateFormat:_e,invalidDate:Ie,ordinal:Se,dayOfMonthOrdinalParse:Be,relativeTime:ke,months:ut,monthsShort:lt,week:At,weekdays:ht,weekdaysMin:yt,weekdaysShort:gt,meridiemParse:Et};var _t={},It={},St;function commonPrefix(R,pe){var Ae,he=Math.min(R.length,pe.length);for(Ae=0;Ae0){ge=loadLocale(ye.slice(0,Ae).join("-"));if(ge){return ge}if(he&&he.length>=Ae&&commonPrefix(ye,he)>=Ae-1){break}Ae--}pe++}return St}function isLocaleNameSane(R){return!!(R&&R.match("^[^/\\\\]*$"))}function loadLocale(pe){var Ae=null,he;if(_t[pe]===undefined&&"object"!=="undefined"&&R&&R.exports&&isLocaleNameSane(pe)){try{Ae=St._abbr;he=require;he("./locale/"+pe);getSetGlobalLocale(Ae)}catch(R){_t[pe]=null}}return _t[pe]}function getSetGlobalLocale(R,pe){var Ae;if(R){if(isUndefined(pe)){Ae=getLocale(R)}else{Ae=defineLocale(R,pe)}if(Ae){St=Ae}else{if(typeof console!=="undefined"&&console.warn){console.warn("Locale "+R+" not found. Did you forget to load it?")}}}return St._abbr}function defineLocale(R,pe){if(pe!==null){var Ae,he=wt;pe.abbr=R;if(_t[R]!=null){deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change "+"an existing locale. moment.defineLocale(localeName, "+"config) should only be used for creating a new locale "+"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");he=_t[R]._config}else if(pe.parentLocale!=null){if(_t[pe.parentLocale]!=null){he=_t[pe.parentLocale]._config}else{Ae=loadLocale(pe.parentLocale);if(Ae!=null){he=Ae._config}else{if(!It[pe.parentLocale]){It[pe.parentLocale]=[]}It[pe.parentLocale].push({name:R,config:pe});return null}}}_t[R]=new Locale(mergeConfigs(he,pe));if(It[R]){It[R].forEach((function(R){defineLocale(R.name,R.config)}))}getSetGlobalLocale(R);return _t[R]}else{delete _t[R];return null}}function updateLocale(R,pe){if(pe!=null){var Ae,he,ge=wt;if(_t[R]!=null&&_t[R].parentLocale!=null){_t[R].set(mergeConfigs(_t[R]._config,pe))}else{he=loadLocale(R);if(he!=null){ge=he._config}pe=mergeConfigs(ge,pe);if(he==null){pe.abbr=R}Ae=new Locale(pe);Ae.parentLocale=_t[R];_t[R]=Ae}getSetGlobalLocale(R)}else{if(_t[R]!=null){if(_t[R].parentLocale!=null){_t[R]=_t[R].parentLocale;if(R===getSetGlobalLocale()){getSetGlobalLocale(R)}}else if(_t[R]!=null){delete _t[R]}}}return _t[R]}function getLocale(R){var pe;if(R&&R._locale&&R._locale._abbr){R=R._locale._abbr}if(!R){return St}if(!isArray(R)){pe=loadLocale(R);if(pe){return pe}R=[R]}return chooseLocale(R)}function listLocales(){return me(_t)}function checkOverflow(R){var pe,Ae=R._a;if(Ae&&getParsingFlags(R).overflow===-2){pe=Ae[Ze]<0||Ae[Ze]>11?Ze:Ae[et]<1||Ae[et]>daysInMonth(Ae[Xe],Ae[Ze])?et:Ae[tt]<0||Ae[tt]>24||Ae[tt]===24&&(Ae[rt]!==0||Ae[nt]!==0||Ae[it]!==0)?tt:Ae[rt]<0||Ae[rt]>59?rt:Ae[nt]<0||Ae[nt]>59?nt:Ae[it]<0||Ae[it]>999?it:-1;if(getParsingFlags(R)._overflowDayOfYear&&(peet)){pe=et}if(getParsingFlags(R)._overflowWeeks&&pe===-1){pe=ot}if(getParsingFlags(R)._overflowWeekday&&pe===-1){pe=st}getParsingFlags(R).overflow=pe}return R}var Bt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ot=/Z|[+-]\d\d(?::?\d\d)?/,Rt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],Qt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xt=/^\/?Date\((-?\d+)/i,Pt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(R){var pe,Ae,he=R._i,ge=Bt.exec(he)||kt.exec(he),ye,me,ve,be,Ee=Rt.length,Ce=Qt.length;if(ge){getParsingFlags(R).iso=true;for(pe=0,Ae=Ee;pedaysInYear(me)||R._dayOfYear===0){getParsingFlags(R)._overflowDayOfYear=true}Ae=createUTCDate(me,0,R._dayOfYear);R._a[Ze]=Ae.getUTCMonth();R._a[et]=Ae.getUTCDate()}for(pe=0;pe<3&&R._a[pe]==null;++pe){R._a[pe]=he[pe]=ge[pe]}for(;pe<7;pe++){R._a[pe]=he[pe]=R._a[pe]==null?pe===2?1:0:R._a[pe]}if(R._a[tt]===24&&R._a[rt]===0&&R._a[nt]===0&&R._a[it]===0){R._nextDay=true;R._a[tt]=0}R._d=(R._useUTC?createUTCDate:createDate).apply(null,he);ye=R._useUTC?R._d.getUTCDay():R._d.getDay();if(R._tzm!=null){R._d.setUTCMinutes(R._d.getUTCMinutes()-R._tzm)}if(R._nextDay){R._a[tt]=24}if(R._w&&typeof R._w.d!=="undefined"&&R._w.d!==ye){getParsingFlags(R).weekdayMismatch=true}}function dayOfYearFromWeekInfo(R){var pe,Ae,he,ge,ye,me,ve,be,Ee;pe=R._w;if(pe.GG!=null||pe.W!=null||pe.E!=null){ye=1;me=4;Ae=defaults(pe.GG,R._a[Xe],weekOfYear(createLocal(),1,4).year);he=defaults(pe.W,1);ge=defaults(pe.E,1);if(ge<1||ge>7){be=true}}else{ye=R._locale._week.dow;me=R._locale._week.doy;Ee=weekOfYear(createLocal(),ye,me);Ae=defaults(pe.gg,R._a[Xe],Ee.year);he=defaults(pe.w,Ee.week);if(pe.d!=null){ge=pe.d;if(ge<0||ge>6){be=true}}else if(pe.e!=null){ge=pe.e+ye;if(pe.e<0||pe.e>6){be=true}}else{ge=ye}}if(he<1||he>weeksInYear(Ae,ye,me)){getParsingFlags(R)._overflowWeeks=true}else if(be!=null){getParsingFlags(R)._overflowWeekday=true}else{ve=dayOfYearFromWeeks(Ae,he,ge,ye,me);R._a[Xe]=ve.year;R._dayOfYear=ve.dayOfYear}}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(R){if(R._f===hooks.ISO_8601){configFromISO(R);return}if(R._f===hooks.RFC_2822){configFromRFC2822(R);return}R._a=[];getParsingFlags(R).empty=true;var pe=""+R._i,Ae,he,ge,ye,me,ve=pe.length,Ee=0,Ce,_e;ge=expandFormat(R._f,R._locale).match(be)||[];_e=ge.length;for(Ae=0;Ae<_e;Ae++){ye=ge[Ae];he=(pe.match(getParseRegexForToken(ye,R))||[])[0];if(he){me=pe.substr(0,pe.indexOf(he));if(me.length>0){getParsingFlags(R).unusedInput.push(me)}pe=pe.slice(pe.indexOf(he)+he.length);Ee+=he.length}if(we[ye]){if(he){getParsingFlags(R).empty=false}else{getParsingFlags(R).unusedTokens.push(ye)}addTimeToArrayFromToken(ye,he,R)}else if(R._strict&&!he){getParsingFlags(R).unusedTokens.push(ye)}}getParsingFlags(R).charsLeftOver=ve-Ee;if(pe.length>0){getParsingFlags(R).unusedInput.push(pe)}if(R._a[tt]<=12&&getParsingFlags(R).bigHour===true&&R._a[tt]>0){getParsingFlags(R).bigHour=undefined}getParsingFlags(R).parsedDateParts=R._a.slice(0);getParsingFlags(R).meridiem=R._meridiem;R._a[tt]=meridiemFixWrap(R._locale,R._a[tt],R._meridiem);Ce=getParsingFlags(R).era;if(Ce!==null){R._a[Xe]=R._locale.erasConvertYear(Ce,R._a[Xe])}configFromArray(R);checkOverflow(R)}function meridiemFixWrap(R,pe,Ae){var he;if(Ae==null){return pe}if(R.meridiemHour!=null){return R.meridiemHour(pe,Ae)}else if(R.isPM!=null){he=R.isPM(Ae);if(he&&pe<12){pe+=12}if(!he&&pe===12){pe=0}return pe}else{return pe}}function configFromStringAndArray(R){var pe,Ae,he,ge,ye,me,ve=false,be=R._f.length;if(be===0){getParsingFlags(R).invalidFormat=true;R._d=new Date(NaN);return}for(ge=0;gethis?this:R}else{return createInvalid()}}));function pickBy(R,pe){var Ae,he;if(pe.length===1&&isArray(pe[0])){pe=pe[0]}if(!pe.length){return createLocal()}Ae=pe[0];for(he=1;hethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted)){return this._isDSTShifted}var R={},pe;copyConfig(R,this);R=prepareConfig(R);if(R._a){pe=R._isUTC?createUTC(R._a):createLocal(R._a);this._isDSTShifted=this.isValid()&&compareArrays(R._a,pe.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:false}function isUtcOffset(){return this.isValid()?this._isUTC:false}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:false}var Ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Lt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(R,pe){var Ae=R,he=null,ge,ye,me;if(isDuration(R)){Ae={ms:R._milliseconds,d:R._days,M:R._months}}else if(isNumber(R)||!isNaN(+R)){Ae={};if(pe){Ae[pe]=+R}else{Ae.milliseconds=+R}}else if(he=Ft.exec(R)){ge=he[1]==="-"?-1:1;Ae={y:0,d:toInt(he[et])*ge,h:toInt(he[tt])*ge,m:toInt(he[rt])*ge,s:toInt(he[nt])*ge,ms:toInt(absRound(he[it]*1e3))*ge}}else if(he=Lt.exec(R)){ge=he[1]==="-"?-1:1;Ae={y:parseIso(he[2],ge),M:parseIso(he[3],ge),w:parseIso(he[4],ge),d:parseIso(he[5],ge),h:parseIso(he[6],ge),m:parseIso(he[7],ge),s:parseIso(he[8],ge)}}else if(Ae==null){Ae={}}else if(typeof Ae==="object"&&("from"in Ae||"to"in Ae)){me=momentsDifference(createLocal(Ae.from),createLocal(Ae.to));Ae={};Ae.ms=me.milliseconds;Ae.M=me.months}ye=new Duration(Ae);if(isDuration(R)&&hasOwnProp(R,"_locale")){ye._locale=R._locale}if(isDuration(R)&&hasOwnProp(R,"_isValid")){ye._isValid=R._isValid}return ye}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(R,pe){var Ae=R&&parseFloat(R.replace(",","."));return(isNaN(Ae)?0:Ae)*pe}function positiveMomentsDifference(R,pe){var Ae={};Ae.months=pe.month()-R.month()+(pe.year()-R.year())*12;if(R.clone().add(Ae.months,"M").isAfter(pe)){--Ae.months}Ae.milliseconds=+pe-+R.clone().add(Ae.months,"M");return Ae}function momentsDifference(R,pe){var Ae;if(!(R.isValid()&&pe.isValid())){return{milliseconds:0,months:0}}pe=cloneWithOffset(pe,R);if(R.isBefore(pe)){Ae=positiveMomentsDifference(R,pe)}else{Ae=positiveMomentsDifference(pe,R);Ae.milliseconds=-Ae.milliseconds;Ae.months=-Ae.months}return Ae}function createAdder(R,pe){return function(Ae,he){var ge,ye;if(he!==null&&!isNaN(+he)){deprecateSimple(pe,"moment()."+pe+"(period, number) is deprecated. Please use moment()."+pe+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");ye=Ae;Ae=he;he=ye}ge=createDuration(Ae,he);addSubtract(this,ge,R);return this}}function addSubtract(R,pe,Ae,he){var ge=pe._milliseconds,ye=absRound(pe._days),me=absRound(pe._months);if(!R.isValid()){return}he=he==null?true:he;if(me){setMonth(R,get(R,"Month")+me*Ae)}if(ye){set$1(R,"Date",get(R,"Date")+ye*Ae)}if(ge){R._d.setTime(R._d.valueOf()+ge*Ae)}if(he){hooks.updateOffset(R,ye||me)}}var Ut=createAdder(1,"add"),Ht=createAdder(-1,"subtract");function isString(R){return typeof R==="string"||R instanceof String}function isMomentInput(R){return isMoment(R)||isDate(R)||isString(R)||isNumber(R)||isNumberOrStringArray(R)||isMomentInputObject(R)||R===null||R===undefined}function isMomentInputObject(R){var pe=isObject(R)&&!isObjectEmpty(R),Ae=false,he=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ge,ye,me=he.length;for(ge=0;geAe.valueOf()}else{return Ae.valueOf()9999){return formatMoment(Ae,pe?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ")}if(isFunction(Date.prototype.toISOString)){if(pe){return this.toDate().toISOString()}else{return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(Ae,"Z"))}}return formatMoment(Ae,pe?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid()){return"moment.invalid(/* "+this._i+" */)"}var R="moment",pe="",Ae,he,ge,ye;if(!this.isLocal()){R=this.utcOffset()===0?"moment.utc":"moment.parseZone";pe="Z"}Ae="["+R+'("]';he=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";ge="-MM-DD[T]HH:mm:ss.SSS";ye=pe+'[")]';return this.format(Ae+he+ge+ye)}function format(R){if(!R){R=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat}var pe=formatMoment(this,R);return this.localeData().postformat(pe)}function from(R,pe){if(this.isValid()&&(isMoment(R)&&R.isValid()||createLocal(R).isValid())){return createDuration({to:this,from:R}).locale(this.locale()).humanize(!pe)}else{return this.localeData().invalidDate()}}function fromNow(R){return this.from(createLocal(),R)}function to(R,pe){if(this.isValid()&&(isMoment(R)&&R.isValid()||createLocal(R).isValid())){return createDuration({from:this,to:R}).locale(this.locale()).humanize(!pe)}else{return this.localeData().invalidDate()}}function toNow(R){return this.to(createLocal(),R)}function locale(R){var pe;if(R===undefined){return this._locale._abbr}else{pe=getLocale(R);if(pe!=null){this._locale=pe}return this}}var Jt=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(R){if(R===undefined){return this.localeData()}else{return this.locale(R)}}));function localeData(){return this._locale}var Wt=1e3,Vt=60*Wt,Kt=60*Vt,Gt=(365*400+97)*24*Kt;function mod$1(R,pe){return(R%pe+pe)%pe}function localStartOfDate(R,pe,Ae){if(R<100&&R>=0){return new Date(R+400,pe,Ae)-Gt}else{return new Date(R,pe,Ae).valueOf()}}function utcStartOfDate(R,pe,Ae){if(R<100&&R>=0){return Date.UTC(R+400,pe,Ae)-Gt}else{return Date.UTC(R,pe,Ae)}}function startOf(R){var pe,Ae;R=normalizeUnits(R);if(R===undefined||R==="millisecond"||!this.isValid()){return this}Ae=this._isUTC?utcStartOfDate:localStartOfDate;switch(R){case"year":pe=Ae(this.year(),0,1);break;case"quarter":pe=Ae(this.year(),this.month()-this.month()%3,1);break;case"month":pe=Ae(this.year(),this.month(),1);break;case"week":pe=Ae(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":pe=Ae(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":pe=Ae(this.year(),this.month(),this.date());break;case"hour":pe=this._d.valueOf();pe-=mod$1(pe+(this._isUTC?0:this.utcOffset()*Vt),Kt);break;case"minute":pe=this._d.valueOf();pe-=mod$1(pe,Vt);break;case"second":pe=this._d.valueOf();pe-=mod$1(pe,Wt);break}this._d.setTime(pe);hooks.updateOffset(this,true);return this}function endOf(R){var pe,Ae;R=normalizeUnits(R);if(R===undefined||R==="millisecond"||!this.isValid()){return this}Ae=this._isUTC?utcStartOfDate:localStartOfDate;switch(R){case"year":pe=Ae(this.year()+1,0,1)-1;break;case"quarter":pe=Ae(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":pe=Ae(this.year(),this.month()+1,1)-1;break;case"week":pe=Ae(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":pe=Ae(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":pe=Ae(this.year(),this.month(),this.date()+1)-1;break;case"hour":pe=this._d.valueOf();pe+=Kt-mod$1(pe+(this._isUTC?0:this.utcOffset()*Vt),Kt)-1;break;case"minute":pe=this._d.valueOf();pe+=Vt-mod$1(pe,Vt)-1;break;case"second":pe=this._d.valueOf();pe+=Wt-mod$1(pe,Wt)-1;break}this._d.setTime(pe);hooks.updateOffset(this,true);return this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var R=this;return[R.year(),R.month(),R.date(),R.hour(),R.minute(),R.second(),R.millisecond()]}function toObject(){var R=this;return{years:R.year(),months:R.month(),date:R.date(),hours:R.hours(),minutes:R.minutes(),seconds:R.seconds(),milliseconds:R.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],(function(R,pe,Ae,he){var ge=Ae._locale.erasParse(R,he,Ae._strict);if(ge){getParsingFlags(Ae).era=ge}else{getParsingFlags(Ae).invalidEra=R}}));addRegexToken("y",He);addRegexToken("yy",He);addRegexToken("yyy",He);addRegexToken("yyyy",He);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],Xe);addParseToken(["yo"],(function(R,pe,Ae,he){var ge;if(Ae._locale._eraYearOrdinalRegex){ge=R.match(Ae._locale._eraYearOrdinalRegex)}if(Ae._locale.eraYearOrdinalParse){pe[Xe]=Ae._locale.eraYearOrdinalParse(R,ge)}else{pe[Xe]=parseInt(R,10)}}));function localeEras(R,pe){var Ae,he,ge,ye=this._eras||getLocale("en")._eras;for(Ae=0,he=ye.length;Ae=0){return ye[he]}}}function localeErasConvertYear(R,pe){var Ae=R.since<=R.until?+1:-1;if(pe===undefined){return hooks(R.since).year()}else{return hooks(R.since).year()+(pe-R.offset)*Ae}}function getEraName(){var R,pe,Ae,he=this.localeData().eras();for(R=0,pe=he.length;Rye){pe=ye}return setWeekAll.call(this,R,pe,Ae,he,ge)}}function setWeekAll(R,pe,Ae,he,ge){var ye=dayOfYearFromWeeks(R,pe,Ae,he,ge),me=createUTCDate(ye.year,0,ye.dayOfYear);this.year(me.getUTCFullYear());this.month(me.getUTCMonth());this.date(me.getUTCDate());return this}addFormatToken("Q",0,"Qo","quarter");addRegexToken("Q",Qe);addParseToken("Q",(function(R,pe){pe[Ze]=(toInt(R)-1)*3}));function getSetQuarter(R){return R==null?Math.ceil((this.month()+1)/3):this.month((R-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addRegexToken("D",Ne,Ye);addRegexToken("DD",Ne,xe);addRegexToken("Do",(function(R,pe){return R?pe._dayOfMonthOrdinalParse||pe._ordinalParse:pe._dayOfMonthOrdinalParseLenient}));addParseToken(["D","DD"],et);addParseToken("Do",(function(R,pe){pe[et]=toInt(R.match(Ne)[0])}));var Yt=makeGetSet("Date",true);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addRegexToken("DDD",Fe);addRegexToken("DDDD",Pe);addParseToken(["DDD","DDDD"],(function(R,pe,Ae){Ae._dayOfYear=toInt(R)}));function getSetDayOfYear(R){var pe=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return R==null?pe:this.add(R-pe,"d")}addFormatToken("m",["mm",2],0,"minute");addRegexToken("m",Ne,qe);addRegexToken("mm",Ne,xe);addParseToken(["m","mm"],rt);var qt=makeGetSet("Minutes",false);addFormatToken("s",["ss",2],0,"second");addRegexToken("s",Ne,qe);addRegexToken("ss",Ne,xe);addParseToken(["s","ss"],nt);var $t=makeGetSet("Seconds",false);addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)}));addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)}));addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,(function(){return this.millisecond()*10}));addFormatToken(0,["SSSSS",5],0,(function(){return this.millisecond()*100}));addFormatToken(0,["SSSSSS",6],0,(function(){return this.millisecond()*1e3}));addFormatToken(0,["SSSSSSS",7],0,(function(){return this.millisecond()*1e4}));addFormatToken(0,["SSSSSSSS",8],0,(function(){return this.millisecond()*1e5}));addFormatToken(0,["SSSSSSSSS",9],0,(function(){return this.millisecond()*1e6}));addRegexToken("S",Fe,Qe);addRegexToken("SS",Fe,xe);addRegexToken("SSS",Fe,Pe);var zt,Xt;for(zt="SSSS";zt.length<=9;zt+="S"){addRegexToken(zt,He)}function parseMs(R,pe){pe[it]=toInt(("0."+R)*1e3)}for(zt="S";zt.length<=9;zt+="S"){addParseToken(zt,parseMs)}Xt=makeGetSet("Milliseconds",false);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var Zt=Moment.prototype;Zt.add=Ut;Zt.calendar=calendar$1;Zt.clone=clone;Zt.diff=diff;Zt.endOf=endOf;Zt.format=format;Zt.from=from;Zt.fromNow=fromNow;Zt.to=to;Zt.toNow=toNow;Zt.get=stringGet;Zt.invalidAt=invalidAt;Zt.isAfter=isAfter;Zt.isBefore=isBefore;Zt.isBetween=isBetween;Zt.isSame=isSame;Zt.isSameOrAfter=isSameOrAfter;Zt.isSameOrBefore=isSameOrBefore;Zt.isValid=isValid$2;Zt.lang=Jt;Zt.locale=locale;Zt.localeData=localeData;Zt.max=Nt;Zt.min=Dt;Zt.parsingFlags=parsingFlags;Zt.set=stringSet;Zt.startOf=startOf;Zt.subtract=Ht;Zt.toArray=toArray;Zt.toObject=toObject;Zt.toDate=toDate;Zt.toISOString=toISOString;Zt.inspect=inspect;if(typeof Symbol!=="undefined"&&Symbol.for!=null){Zt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}}Zt.toJSON=toJSON;Zt.toString=toString;Zt.unix=unix;Zt.valueOf=valueOf;Zt.creationData=creationData;Zt.eraName=getEraName;Zt.eraNarrow=getEraNarrow;Zt.eraAbbr=getEraAbbr;Zt.eraYear=getEraYear;Zt.year=at;Zt.isLeapYear=getIsLeapYear;Zt.weekYear=getSetWeekYear;Zt.isoWeekYear=getSetISOWeekYear;Zt.quarter=Zt.quarters=getSetQuarter;Zt.month=getSetMonth;Zt.daysInMonth=getDaysInMonth;Zt.week=Zt.weeks=getSetWeek;Zt.isoWeek=Zt.isoWeeks=getSetISOWeek;Zt.weeksInYear=getWeeksInYear;Zt.weeksInWeekYear=getWeeksInWeekYear;Zt.isoWeeksInYear=getISOWeeksInYear;Zt.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;Zt.date=Yt;Zt.day=Zt.days=getSetDayOfWeek;Zt.weekday=getSetLocaleDayOfWeek;Zt.isoWeekday=getSetISODayOfWeek;Zt.dayOfYear=getSetDayOfYear;Zt.hour=Zt.hours=Ct;Zt.minute=Zt.minutes=qt;Zt.second=Zt.seconds=$t;Zt.millisecond=Zt.milliseconds=Xt;Zt.utcOffset=getSetOffset;Zt.utc=setOffsetToUTC;Zt.local=setOffsetToLocal;Zt.parseZone=setOffsetToParsedOffset;Zt.hasAlignedHourOffset=hasAlignedHourOffset;Zt.isDST=isDaylightSavingTime;Zt.isLocal=isLocal;Zt.isUtcOffset=isUtcOffset;Zt.isUtc=isUtc;Zt.isUTC=isUtc;Zt.zoneAbbr=getZoneAbbr;Zt.zoneName=getZoneName;Zt.dates=deprecate("dates accessor is deprecated. Use date instead.",Yt);Zt.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);Zt.years=deprecate("years accessor is deprecated. Use year instead",at);Zt.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);Zt.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(R){return createLocal(R*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(R){return R}var er=Locale.prototype;er.calendar=calendar;er.longDateFormat=longDateFormat;er.invalidDate=invalidDate;er.ordinal=ordinal;er.preparse=preParsePostFormat;er.postformat=preParsePostFormat;er.relativeTime=relativeTime;er.pastFuture=pastFuture;er.set=set;er.eras=localeEras;er.erasParse=localeErasParse;er.erasConvertYear=localeErasConvertYear;er.erasAbbrRegex=erasAbbrRegex;er.erasNameRegex=erasNameRegex;er.erasNarrowRegex=erasNarrowRegex;er.months=localeMonths;er.monthsShort=localeMonthsShort;er.monthsParse=localeMonthsParse;er.monthsRegex=monthsRegex;er.monthsShortRegex=monthsShortRegex;er.week=localeWeek;er.firstDayOfYear=localeFirstDayOfYear;er.firstDayOfWeek=localeFirstDayOfWeek;er.weekdays=localeWeekdays;er.weekdaysMin=localeWeekdaysMin;er.weekdaysShort=localeWeekdaysShort;er.weekdaysParse=localeWeekdaysParse;er.weekdaysRegex=weekdaysRegex;er.weekdaysShortRegex=weekdaysShortRegex;er.weekdaysMinRegex=weekdaysMinRegex;er.isPM=localeIsPM;er.meridiem=localeMeridiem;function get$1(R,pe,Ae,he){var ge=getLocale(),ye=createUTC().set(he,pe);return ge[Ae](ye,R)}function listMonthsImpl(R,pe,Ae){if(isNumber(R)){pe=R;R=undefined}R=R||"";if(pe!=null){return get$1(R,pe,Ae,"month")}var he,ge=[];for(he=0;he<12;he++){ge[he]=get$1(R,he,Ae,"month")}return ge}function listWeekdaysImpl(R,pe,Ae,he){if(typeof R==="boolean"){if(isNumber(pe)){Ae=pe;pe=undefined}pe=pe||""}else{pe=R;Ae=pe;R=false;if(isNumber(pe)){Ae=pe;pe=undefined}pe=pe||""}var ge=getLocale(),ye=R?ge._week.dow:0,me,ve=[];if(Ae!=null){return get$1(pe,(Ae+ye)%7,he,"day")}for(me=0;me<7;me++){ve[me]=get$1(pe,(me+ye)%7,he,"day")}return ve}function listMonths(R,pe){return listMonthsImpl(R,pe,"months")}function listMonthsShort(R,pe){return listMonthsImpl(R,pe,"monthsShort")}function listWeekdays(R,pe,Ae){return listWeekdaysImpl(R,pe,Ae,"weekdays")}function listWeekdaysShort(R,pe,Ae){return listWeekdaysImpl(R,pe,Ae,"weekdaysShort")}function listWeekdaysMin(R,pe,Ae){return listWeekdaysImpl(R,pe,Ae,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(R){var pe=R%10,Ae=toInt(R%100/10)===1?"th":pe===1?"st":pe===2?"nd":pe===3?"rd":"th";return R+Ae}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var tr=Math.abs;function abs(){var R=this._data;this._milliseconds=tr(this._milliseconds);this._days=tr(this._days);this._months=tr(this._months);R.milliseconds=tr(R.milliseconds);R.seconds=tr(R.seconds);R.minutes=tr(R.minutes);R.hours=tr(R.hours);R.months=tr(R.months);R.years=tr(R.years);return this}function addSubtract$1(R,pe,Ae,he){var ge=createDuration(pe,Ae);R._milliseconds+=he*ge._milliseconds;R._days+=he*ge._days;R._months+=he*ge._months;return R._bubble()}function add$1(R,pe){return addSubtract$1(this,R,pe,1)}function subtract$1(R,pe){return addSubtract$1(this,R,pe,-1)}function absCeil(R){if(R<0){return Math.floor(R)}else{return Math.ceil(R)}}function bubble(){var R=this._milliseconds,pe=this._days,Ae=this._months,he=this._data,ge,ye,me,ve,be;if(!(R>=0&&pe>=0&&Ae>=0||R<=0&&pe<=0&&Ae<=0)){R+=absCeil(monthsToDays(Ae)+pe)*864e5;pe=0;Ae=0}he.milliseconds=R%1e3;ge=absFloor(R/1e3);he.seconds=ge%60;ye=absFloor(ge/60);he.minutes=ye%60;me=absFloor(ye/60);he.hours=me%24;pe+=absFloor(me/24);be=absFloor(daysToMonths(pe));Ae+=be;pe-=absCeil(monthsToDays(be));ve=absFloor(Ae/12);Ae%=12;he.days=pe;he.months=Ae;he.years=ve;return this}function daysToMonths(R){return R*4800/146097}function monthsToDays(R){return R*146097/4800}function as(R){if(!this.isValid()){return NaN}var pe,Ae,he=this._milliseconds;R=normalizeUnits(R);if(R==="month"||R==="quarter"||R==="year"){pe=this._days+he/864e5;Ae=this._months+daysToMonths(pe);switch(R){case"month":return Ae;case"quarter":return Ae/3;case"year":return Ae/12}}else{pe=this._days+Math.round(monthsToDays(this._months));switch(R){case"week":return pe/7+he/6048e5;case"day":return pe+he/864e5;case"hour":return pe*24+he/36e5;case"minute":return pe*1440+he/6e4;case"second":return pe*86400+he/1e3;case"millisecond":return Math.floor(pe*864e5)+he;default:throw new Error("Unknown unit "+R)}}}function makeAs(R){return function(){return this.as(R)}}var rr=makeAs("ms"),nr=makeAs("s"),ir=makeAs("m"),sr=makeAs("h"),ar=makeAs("d"),cr=makeAs("w"),ur=makeAs("M"),lr=makeAs("Q"),dr=makeAs("y"),fr=rr;function clone$1(){return createDuration(this)}function get$2(R){R=normalizeUnits(R);return this.isValid()?this[R+"s"]():NaN}function makeGetter(R){return function(){return this.isValid()?this._data[R]:NaN}}var pr=makeGetter("milliseconds"),Ar=makeGetter("seconds"),hr=makeGetter("minutes"),gr=makeGetter("hours"),yr=makeGetter("days"),mr=makeGetter("months"),vr=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var br=Math.round,Er={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(R,pe,Ae,he,ge){return ge.relativeTime(pe||1,!!Ae,R,he)}function relativeTime$1(R,pe,Ae,he){var ge=createDuration(R).abs(),ye=br(ge.as("s")),me=br(ge.as("m")),ve=br(ge.as("h")),be=br(ge.as("d")),Ee=br(ge.as("M")),Ce=br(ge.as("w")),we=br(ge.as("y")),_e=ye<=Ae.ss&&["s",ye]||ye0;_e[4]=he;return substituteTimeAgo.apply(null,_e)}function getSetRelativeTimeRounding(R){if(R===undefined){return br}if(typeof R==="function"){br=R;return true}return false}function getSetRelativeTimeThreshold(R,pe){if(Er[R]===undefined){return false}if(pe===undefined){return Er[R]}Er[R]=pe;if(R==="s"){Er.ss=pe-1}return true}function humanize(R,pe){if(!this.isValid()){return this.localeData().invalidDate()}var Ae=false,he=Er,ge,ye;if(typeof R==="object"){pe=R;R=false}if(typeof R==="boolean"){Ae=R}if(typeof pe==="object"){he=Object.assign({},Er,pe);if(pe.s!=null&&pe.ss==null){he.ss=pe.s-1}}ge=this.localeData();ye=relativeTime$1(this,!Ae,he,ge);if(Ae){ye=ge.pastFuture(+this,ye)}return ge.postformat(ye)}var Cr=Math.abs;function sign(R){return(R>0)-(R<0)||+R}function toISOString$1(){if(!this.isValid()){return this.localeData().invalidDate()}var R=Cr(this._milliseconds)/1e3,pe=Cr(this._days),Ae=Cr(this._months),he,ge,ye,me,ve=this.asSeconds(),be,Ee,Ce,we;if(!ve){return"P0D"}he=absFloor(R/60);ge=absFloor(he/60);R%=60;he%=60;ye=absFloor(Ae/12);Ae%=12;me=R?R.toFixed(3).replace(/\.?0+$/,""):"";be=ve<0?"-":"";Ee=sign(this._months)!==sign(ve)?"-":"";Ce=sign(this._days)!==sign(ve)?"-":"";we=sign(this._milliseconds)!==sign(ve)?"-":"";return be+"P"+(ye?Ee+ye+"Y":"")+(Ae?Ee+Ae+"M":"")+(pe?Ce+pe+"D":"")+(ge||he||R?"T":"")+(ge?we+ge+"H":"")+(he?we+he+"M":"")+(R?we+me+"S":"")}var wr=Duration.prototype;wr.isValid=isValid$1;wr.abs=abs;wr.add=add$1;wr.subtract=subtract$1;wr.as=as;wr.asMilliseconds=rr;wr.asSeconds=nr;wr.asMinutes=ir;wr.asHours=sr;wr.asDays=ar;wr.asWeeks=cr;wr.asMonths=ur;wr.asQuarters=lr;wr.asYears=dr;wr.valueOf=fr;wr._bubble=bubble;wr.clone=clone$1;wr.get=get$2;wr.milliseconds=pr;wr.seconds=Ar;wr.minutes=hr;wr.hours=gr;wr.days=yr;wr.weeks=weeks;wr.months=mr;wr.years=vr;wr.humanize=humanize;wr.toISOString=toISOString$1;wr.toString=toISOString$1;wr.toJSON=toISOString$1;wr.locale=locale;wr.localeData=localeData;wr.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);wr.lang=Jt;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",Je);addRegexToken("X",Ke);addParseToken("X",(function(R,pe,Ae){Ae._d=new Date(parseFloat(R)*1e3)}));addParseToken("x",(function(R,pe,Ae){Ae._d=new Date(toInt(R))})); +(function(pe,Ae){true?R.exports=Ae():0})(this,(function(){"use strict";var pe;function hooks(){return pe.apply(null,arguments)}function setHookCallback(R){pe=R}function isArray(R){return R instanceof Array||Object.prototype.toString.call(R)==="[object Array]"}function isObject(R){return R!=null&&Object.prototype.toString.call(R)==="[object Object]"}function hasOwnProp(R,pe){return Object.prototype.hasOwnProperty.call(R,pe)}function isObjectEmpty(R){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(R).length===0}else{var pe;for(pe in R){if(hasOwnProp(R,pe)){return false}}return true}}function isUndefined(R){return R===void 0}function isNumber(R){return typeof R==="number"||Object.prototype.toString.call(R)==="[object Number]"}function isDate(R){return R instanceof Date||Object.prototype.toString.call(R)==="[object Date]"}function map(R,pe){var Ae=[],he,ge=R.length;for(he=0;he>>0,he;for(he=0;he0){for(Ae=0;Ae=0;return(ye?Ae?"+":"":"-")+Math.pow(10,Math.max(0,ge)).toString().substr(1)+he}var be=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ee=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,we={},Ce={};function addFormatToken(R,pe,Ae,he){var ge=he;if(typeof he==="string"){ge=function(){return this[he]()}}if(R){Ce[R]=ge}if(pe){Ce[pe[0]]=function(){return zeroFill(ge.apply(this,arguments),pe[1],pe[2])}}if(Ae){Ce[Ae]=function(){return this.localeData().ordinal(ge.apply(this,arguments),R)}}}function removeFormattingTokens(R){if(R.match(/\[[\s\S]/)){return R.replace(/^\[|\]$/g,"")}return R.replace(/\\/g,"")}function makeFormatFunction(R){var pe=R.match(be),Ae,he;for(Ae=0,he=pe.length;Ae=0&&Ee.test(R)){R=R.replace(Ee,replaceLongDateFormatTokens);Ee.lastIndex=0;Ae-=1}return R}var _e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(R){var pe=this._longDateFormat[R],Ae=this._longDateFormat[R.toUpperCase()];if(pe||!Ae){return pe}this._longDateFormat[R]=Ae.match(be).map((function(R){if(R==="MMMM"||R==="MM"||R==="DD"||R==="dddd"){return R.slice(1)}return R})).join("");return this._longDateFormat[R]}var Ie="Invalid date";function invalidDate(){return this._invalidDate}var Se="%d",Be=/\d{1,2}/;function ordinal(R){return this._ordinal.replace("%d",R)}var ke={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(R,pe,Ae,he){var ge=this._relativeTime[Ae];return isFunction(ge)?ge(R,pe,Ae,he):ge.replace(/%d/i,R)}function pastFuture(R,pe){var Ae=this._relativeTime[R>0?"future":"past"];return isFunction(Ae)?Ae(pe):Ae.replace(/%s/i,pe)}var Oe={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function normalizeUnits(R){return typeof R==="string"?Oe[R]||Oe[R.toLowerCase()]:undefined}function normalizeObjectUnits(R){var pe={},Ae,he;for(he in R){if(hasOwnProp(R,he)){Ae=normalizeUnits(he);if(Ae){pe[Ae]=R[he]}}}return pe}var Re={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function getPrioritizedUnits(R){var pe=[],Ae;for(Ae in R){if(hasOwnProp(R,Ae)){pe.push({unit:Ae,priority:Re[Ae]})}}pe.sort((function(R,pe){return R.priority-pe.priority}));return pe}var Qe=/\d/,xe=/\d\d/,Pe=/\d{3}/,Te=/\d{4}/,De=/[+-]?\d{6}/,Ne=/\d\d?/,Me=/\d\d\d\d?/,je=/\d\d\d\d\d\d?/,Fe=/\d{1,3}/,Le=/\d{1,4}/,Ue=/[+-]?\d{1,6}/,He=/\d+/,Je=/[+-]?\d+/,We=/Z|[+-]\d\d:?\d\d/gi,Ve=/Z|[+-]\d\d(?::?\d\d)?/gi,Ke=/[+-]?\d+(\.\d{1,3})?/,Ge=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ye=/^[1-9]\d?/,qe=/^([1-9]\d|\d)/,$e;$e={};function addRegexToken(R,pe,Ae){$e[R]=isFunction(pe)?pe:function(R,he){return R&&Ae?Ae:pe}}function getParseRegexForToken(R,pe){if(!hasOwnProp($e,R)){return new RegExp(unescapeFormat(R))}return $e[R](pe._strict,pe._locale)}function unescapeFormat(R){return regexEscape(R.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(R,pe,Ae,he,ge){return pe||Ae||he||ge})))}function regexEscape(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(R){if(R<0){return Math.ceil(R)||0}else{return Math.floor(R)}}function toInt(R){var pe=+R,Ae=0;if(pe!==0&&isFinite(pe)){Ae=absFloor(pe)}return Ae}var ze={};function addParseToken(R,pe){var Ae,he=pe,ge;if(typeof R==="string"){R=[R]}if(isNumber(pe)){he=function(R,Ae){Ae[pe]=toInt(R)}}ge=R.length;for(Ae=0;Ae68?1900:2e3)};var at=makeGetSet("FullYear",true);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(R,pe){return function(Ae){if(Ae!=null){set$1(this,R,Ae);hooks.updateOffset(this,pe);return this}else{return get(this,R)}}}function get(R,pe){if(!R.isValid()){return NaN}var Ae=R._d,he=R._isUTC;switch(pe){case"Milliseconds":return he?Ae.getUTCMilliseconds():Ae.getMilliseconds();case"Seconds":return he?Ae.getUTCSeconds():Ae.getSeconds();case"Minutes":return he?Ae.getUTCMinutes():Ae.getMinutes();case"Hours":return he?Ae.getUTCHours():Ae.getHours();case"Date":return he?Ae.getUTCDate():Ae.getDate();case"Day":return he?Ae.getUTCDay():Ae.getDay();case"Month":return he?Ae.getUTCMonth():Ae.getMonth();case"FullYear":return he?Ae.getUTCFullYear():Ae.getFullYear();default:return NaN}}function set$1(R,pe,Ae){var he,ge,ye,me,ve;if(!R.isValid()||isNaN(Ae)){return}he=R._d;ge=R._isUTC;switch(pe){case"Milliseconds":return void(ge?he.setUTCMilliseconds(Ae):he.setMilliseconds(Ae));case"Seconds":return void(ge?he.setUTCSeconds(Ae):he.setSeconds(Ae));case"Minutes":return void(ge?he.setUTCMinutes(Ae):he.setMinutes(Ae));case"Hours":return void(ge?he.setUTCHours(Ae):he.setHours(Ae));case"Date":return void(ge?he.setUTCDate(Ae):he.setDate(Ae));case"FullYear":break;default:return}ye=Ae;me=R.month();ve=R.date();ve=ve===29&&me===1&&!isLeapYear(ye)?28:ve;void(ge?he.setUTCFullYear(ye,me,ve):he.setFullYear(ye,me,ve))}function stringGet(R){R=normalizeUnits(R);if(isFunction(this[R])){return this[R]()}return this}function stringSet(R,pe){if(typeof R==="object"){R=normalizeObjectUnits(R);var Ae=getPrioritizedUnits(R),he,ge=Ae.length;for(he=0;he=0){ve=new Date(R+400,pe,Ae,he,ge,ye,me);if(isFinite(ve.getFullYear())){ve.setFullYear(R)}}else{ve=new Date(R,pe,Ae,he,ge,ye,me)}return ve}function createUTCDate(R){var pe,Ae;if(R<100&&R>=0){Ae=Array.prototype.slice.call(arguments);Ae[0]=R+400;pe=new Date(Date.UTC.apply(null,Ae));if(isFinite(pe.getUTCFullYear())){pe.setUTCFullYear(R)}}else{pe=new Date(Date.UTC.apply(null,arguments))}return pe}function firstWeekOffset(R,pe,Ae){var he=7+pe-Ae,ge=(7+createUTCDate(R,0,he).getUTCDay()-pe)%7;return-ge+he-1}function dayOfYearFromWeeks(R,pe,Ae,he,ge){var ye=(7+Ae-he)%7,me=firstWeekOffset(R,he,ge),ve=1+7*(pe-1)+ye+me,be,Ee;if(ve<=0){be=R-1;Ee=daysInYear(be)+ve}else if(ve>daysInYear(R)){be=R+1;Ee=ve-daysInYear(R)}else{be=R;Ee=ve}return{year:be,dayOfYear:Ee}}function weekOfYear(R,pe,Ae){var he=firstWeekOffset(R.year(),pe,Ae),ge=Math.floor((R.dayOfYear()-he-1)/7)+1,ye,me;if(ge<1){me=R.year()-1;ye=ge+weeksInYear(me,pe,Ae)}else if(ge>weeksInYear(R.year(),pe,Ae)){ye=ge-weeksInYear(R.year(),pe,Ae);me=R.year()+1}else{me=R.year();ye=ge}return{week:ye,year:me}}function weeksInYear(R,pe,Ae){var he=firstWeekOffset(R,pe,Ae),ge=firstWeekOffset(R+1,pe,Ae);return(daysInYear(R)-he+ge)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addRegexToken("w",Ne,Ye);addRegexToken("ww",Ne,xe);addRegexToken("W",Ne,Ye);addRegexToken("WW",Ne,xe);addWeekParseToken(["w","ww","W","WW"],(function(R,pe,Ae,he){pe[he.substr(0,1)]=toInt(R)}));function localeWeek(R){return weekOfYear(R,this._week.dow,this._week.doy).week}var At={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(R){var pe=this.localeData().week(this);return R==null?pe:this.add((R-pe)*7,"d")}function getSetISOWeek(R){var pe=weekOfYear(this,1,4).week;return R==null?pe:this.add((R-pe)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,(function(R){return this.localeData().weekdaysMin(this,R)}));addFormatToken("ddd",0,0,(function(R){return this.localeData().weekdaysShort(this,R)}));addFormatToken("dddd",0,0,(function(R){return this.localeData().weekdays(this,R)}));addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addRegexToken("d",Ne);addRegexToken("e",Ne);addRegexToken("E",Ne);addRegexToken("dd",(function(R,pe){return pe.weekdaysMinRegex(R)}));addRegexToken("ddd",(function(R,pe){return pe.weekdaysShortRegex(R)}));addRegexToken("dddd",(function(R,pe){return pe.weekdaysRegex(R)}));addWeekParseToken(["dd","ddd","dddd"],(function(R,pe,Ae,he){var ge=Ae._locale.weekdaysParse(R,he,Ae._strict);if(ge!=null){pe.d=ge}else{getParsingFlags(Ae).invalidWeekday=R}}));addWeekParseToken(["d","e","E"],(function(R,pe,Ae,he){pe[he]=toInt(R)}));function parseWeekday(R,pe){if(typeof R!=="string"){return R}if(!isNaN(R)){return parseInt(R,10)}R=pe.weekdaysParse(R);if(typeof R==="number"){return R}return null}function parseIsoWeekday(R,pe){if(typeof R==="string"){return pe.weekdaysParse(R)%7||7}return isNaN(R)?null:R}function shiftWeekdays(R,pe){return R.slice(pe,7).concat(R.slice(0,pe))}var ht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),mt=Ge,vt=Ge,bt=Ge;function localeWeekdays(R,pe){var Ae=isArray(this._weekdays)?this._weekdays:this._weekdays[R&&R!==true&&this._weekdays.isFormat.test(pe)?"format":"standalone"];return R===true?shiftWeekdays(Ae,this._week.dow):R?Ae[R.day()]:Ae}function localeWeekdaysShort(R){return R===true?shiftWeekdays(this._weekdaysShort,this._week.dow):R?this._weekdaysShort[R.day()]:this._weekdaysShort}function localeWeekdaysMin(R){return R===true?shiftWeekdays(this._weekdaysMin,this._week.dow):R?this._weekdaysMin[R.day()]:this._weekdaysMin}function handleStrictParse$1(R,pe,Ae){var he,ge,ye,me=R.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(he=0;he<7;++he){ye=createUTC([2e3,1]).day(he);this._minWeekdaysParse[he]=this.weekdaysMin(ye,"").toLocaleLowerCase();this._shortWeekdaysParse[he]=this.weekdaysShort(ye,"").toLocaleLowerCase();this._weekdaysParse[he]=this.weekdays(ye,"").toLocaleLowerCase()}}if(Ae){if(pe==="dddd"){ge=ct.call(this._weekdaysParse,me);return ge!==-1?ge:null}else if(pe==="ddd"){ge=ct.call(this._shortWeekdaysParse,me);return ge!==-1?ge:null}else{ge=ct.call(this._minWeekdaysParse,me);return ge!==-1?ge:null}}else{if(pe==="dddd"){ge=ct.call(this._weekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._shortWeekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._minWeekdaysParse,me);return ge!==-1?ge:null}else if(pe==="ddd"){ge=ct.call(this._shortWeekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._weekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._minWeekdaysParse,me);return ge!==-1?ge:null}else{ge=ct.call(this._minWeekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._weekdaysParse,me);if(ge!==-1){return ge}ge=ct.call(this._shortWeekdaysParse,me);return ge!==-1?ge:null}}}function localeWeekdaysParse(R,pe,Ae){var he,ge,ye;if(this._weekdaysParseExact){return handleStrictParse$1.call(this,R,pe,Ae)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(he=0;he<7;he++){ge=createUTC([2e3,1]).day(he);if(Ae&&!this._fullWeekdaysParse[he]){this._fullWeekdaysParse[he]=new RegExp("^"+this.weekdays(ge,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[he]=new RegExp("^"+this.weekdaysShort(ge,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[he]=new RegExp("^"+this.weekdaysMin(ge,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[he]){ye="^"+this.weekdays(ge,"")+"|^"+this.weekdaysShort(ge,"")+"|^"+this.weekdaysMin(ge,"");this._weekdaysParse[he]=new RegExp(ye.replace(".",""),"i")}if(Ae&&pe==="dddd"&&this._fullWeekdaysParse[he].test(R)){return he}else if(Ae&&pe==="ddd"&&this._shortWeekdaysParse[he].test(R)){return he}else if(Ae&&pe==="dd"&&this._minWeekdaysParse[he].test(R)){return he}else if(!Ae&&this._weekdaysParse[he].test(R)){return he}}}function getSetDayOfWeek(R){if(!this.isValid()){return R!=null?this:NaN}var pe=get(this,"Day");if(R!=null){R=parseWeekday(R,this.localeData());return this.add(R-pe,"d")}else{return pe}}function getSetLocaleDayOfWeek(R){if(!this.isValid()){return R!=null?this:NaN}var pe=(this.day()+7-this.localeData()._week.dow)%7;return R==null?pe:this.add(R-pe,"d")}function getSetISODayOfWeek(R){if(!this.isValid()){return R!=null?this:NaN}if(R!=null){var pe=parseIsoWeekday(R,this.localeData());return this.day(this.day()%7?pe:pe-7)}else{return this.day()||7}}function weekdaysRegex(R){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(R){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!hasOwnProp(this,"_weekdaysRegex")){this._weekdaysRegex=mt}return this._weekdaysStrictRegex&&R?this._weekdaysStrictRegex:this._weekdaysRegex}}function weekdaysShortRegex(R){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(R){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!hasOwnProp(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=vt}return this._weekdaysShortStrictRegex&&R?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function weekdaysMinRegex(R){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(R){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!hasOwnProp(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=bt}return this._weekdaysMinStrictRegex&&R?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function computeWeekdaysParse(){function cmpLenRev(R,pe){return pe.length-R.length}var R=[],pe=[],Ae=[],he=[],ge,ye,me,ve,be;for(ge=0;ge<7;ge++){ye=createUTC([2e3,1]).day(ge);me=regexEscape(this.weekdaysMin(ye,""));ve=regexEscape(this.weekdaysShort(ye,""));be=regexEscape(this.weekdays(ye,""));R.push(me);pe.push(ve);Ae.push(be);he.push(me);he.push(ve);he.push(be)}R.sort(cmpLenRev);pe.sort(cmpLenRev);Ae.sort(cmpLenRev);he.sort(cmpLenRev);this._weekdaysRegex=new RegExp("^("+he.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+Ae.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+pe.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+R.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)}));addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}));addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)}));addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}));function meridiem(R,pe){addFormatToken(R,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),pe)}))}meridiem("a",true);meridiem("A",false);function matchMeridiem(R,pe){return pe._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",Ne,qe);addRegexToken("h",Ne,Ye);addRegexToken("k",Ne,Ye);addRegexToken("HH",Ne,xe);addRegexToken("hh",Ne,xe);addRegexToken("kk",Ne,xe);addRegexToken("hmm",Me);addRegexToken("hmmss",je);addRegexToken("Hmm",Me);addRegexToken("Hmmss",je);addParseToken(["H","HH"],tt);addParseToken(["k","kk"],(function(R,pe,Ae){var he=toInt(R);pe[tt]=he===24?0:he}));addParseToken(["a","A"],(function(R,pe,Ae){Ae._isPm=Ae._locale.isPM(R);Ae._meridiem=R}));addParseToken(["h","hh"],(function(R,pe,Ae){pe[tt]=toInt(R);getParsingFlags(Ae).bigHour=true}));addParseToken("hmm",(function(R,pe,Ae){var he=R.length-2;pe[tt]=toInt(R.substr(0,he));pe[rt]=toInt(R.substr(he));getParsingFlags(Ae).bigHour=true}));addParseToken("hmmss",(function(R,pe,Ae){var he=R.length-4,ge=R.length-2;pe[tt]=toInt(R.substr(0,he));pe[rt]=toInt(R.substr(he,2));pe[nt]=toInt(R.substr(ge));getParsingFlags(Ae).bigHour=true}));addParseToken("Hmm",(function(R,pe,Ae){var he=R.length-2;pe[tt]=toInt(R.substr(0,he));pe[rt]=toInt(R.substr(he))}));addParseToken("Hmmss",(function(R,pe,Ae){var he=R.length-4,ge=R.length-2;pe[tt]=toInt(R.substr(0,he));pe[rt]=toInt(R.substr(he,2));pe[nt]=toInt(R.substr(ge))}));function localeIsPM(R){return(R+"").toLowerCase().charAt(0)==="p"}var Et=/[ap]\.?m?\.?/i,wt=makeGetSet("Hours",true);function localeMeridiem(R,pe,Ae){if(R>11){return Ae?"pm":"PM"}else{return Ae?"am":"AM"}}var Ct={calendar:ve,longDateFormat:_e,invalidDate:Ie,ordinal:Se,dayOfMonthOrdinalParse:Be,relativeTime:ke,months:ut,monthsShort:lt,week:At,weekdays:ht,weekdaysMin:yt,weekdaysShort:gt,meridiemParse:Et};var _t={},It={},St;function commonPrefix(R,pe){var Ae,he=Math.min(R.length,pe.length);for(Ae=0;Ae0){ge=loadLocale(ye.slice(0,Ae).join("-"));if(ge){return ge}if(he&&he.length>=Ae&&commonPrefix(ye,he)>=Ae-1){break}Ae--}pe++}return St}function isLocaleNameSane(R){return!!(R&&R.match("^[^/\\\\]*$"))}function loadLocale(pe){var Ae=null,he;if(_t[pe]===undefined&&"object"!=="undefined"&&R&&R.exports&&isLocaleNameSane(pe)){try{Ae=St._abbr;he=require;he("./locale/"+pe);getSetGlobalLocale(Ae)}catch(R){_t[pe]=null}}return _t[pe]}function getSetGlobalLocale(R,pe){var Ae;if(R){if(isUndefined(pe)){Ae=getLocale(R)}else{Ae=defineLocale(R,pe)}if(Ae){St=Ae}else{if(typeof console!=="undefined"&&console.warn){console.warn("Locale "+R+" not found. Did you forget to load it?")}}}return St._abbr}function defineLocale(R,pe){if(pe!==null){var Ae,he=Ct;pe.abbr=R;if(_t[R]!=null){deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change "+"an existing locale. moment.defineLocale(localeName, "+"config) should only be used for creating a new locale "+"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");he=_t[R]._config}else if(pe.parentLocale!=null){if(_t[pe.parentLocale]!=null){he=_t[pe.parentLocale]._config}else{Ae=loadLocale(pe.parentLocale);if(Ae!=null){he=Ae._config}else{if(!It[pe.parentLocale]){It[pe.parentLocale]=[]}It[pe.parentLocale].push({name:R,config:pe});return null}}}_t[R]=new Locale(mergeConfigs(he,pe));if(It[R]){It[R].forEach((function(R){defineLocale(R.name,R.config)}))}getSetGlobalLocale(R);return _t[R]}else{delete _t[R];return null}}function updateLocale(R,pe){if(pe!=null){var Ae,he,ge=Ct;if(_t[R]!=null&&_t[R].parentLocale!=null){_t[R].set(mergeConfigs(_t[R]._config,pe))}else{he=loadLocale(R);if(he!=null){ge=he._config}pe=mergeConfigs(ge,pe);if(he==null){pe.abbr=R}Ae=new Locale(pe);Ae.parentLocale=_t[R];_t[R]=Ae}getSetGlobalLocale(R)}else{if(_t[R]!=null){if(_t[R].parentLocale!=null){_t[R]=_t[R].parentLocale;if(R===getSetGlobalLocale()){getSetGlobalLocale(R)}}else if(_t[R]!=null){delete _t[R]}}}return _t[R]}function getLocale(R){var pe;if(R&&R._locale&&R._locale._abbr){R=R._locale._abbr}if(!R){return St}if(!isArray(R)){pe=loadLocale(R);if(pe){return pe}R=[R]}return chooseLocale(R)}function listLocales(){return me(_t)}function checkOverflow(R){var pe,Ae=R._a;if(Ae&&getParsingFlags(R).overflow===-2){pe=Ae[Ze]<0||Ae[Ze]>11?Ze:Ae[et]<1||Ae[et]>daysInMonth(Ae[Xe],Ae[Ze])?et:Ae[tt]<0||Ae[tt]>24||Ae[tt]===24&&(Ae[rt]!==0||Ae[nt]!==0||Ae[it]!==0)?tt:Ae[rt]<0||Ae[rt]>59?rt:Ae[nt]<0||Ae[nt]>59?nt:Ae[it]<0||Ae[it]>999?it:-1;if(getParsingFlags(R)._overflowDayOfYear&&(peet)){pe=et}if(getParsingFlags(R)._overflowWeeks&&pe===-1){pe=ot}if(getParsingFlags(R)._overflowWeekday&&pe===-1){pe=st}getParsingFlags(R).overflow=pe}return R}var Bt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ot=/Z|[+-]\d\d(?::?\d\d)?/,Rt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],Qt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xt=/^\/?Date\((-?\d+)/i,Pt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(R){var pe,Ae,he=R._i,ge=Bt.exec(he)||kt.exec(he),ye,me,ve,be,Ee=Rt.length,we=Qt.length;if(ge){getParsingFlags(R).iso=true;for(pe=0,Ae=Ee;pedaysInYear(me)||R._dayOfYear===0){getParsingFlags(R)._overflowDayOfYear=true}Ae=createUTCDate(me,0,R._dayOfYear);R._a[Ze]=Ae.getUTCMonth();R._a[et]=Ae.getUTCDate()}for(pe=0;pe<3&&R._a[pe]==null;++pe){R._a[pe]=he[pe]=ge[pe]}for(;pe<7;pe++){R._a[pe]=he[pe]=R._a[pe]==null?pe===2?1:0:R._a[pe]}if(R._a[tt]===24&&R._a[rt]===0&&R._a[nt]===0&&R._a[it]===0){R._nextDay=true;R._a[tt]=0}R._d=(R._useUTC?createUTCDate:createDate).apply(null,he);ye=R._useUTC?R._d.getUTCDay():R._d.getDay();if(R._tzm!=null){R._d.setUTCMinutes(R._d.getUTCMinutes()-R._tzm)}if(R._nextDay){R._a[tt]=24}if(R._w&&typeof R._w.d!=="undefined"&&R._w.d!==ye){getParsingFlags(R).weekdayMismatch=true}}function dayOfYearFromWeekInfo(R){var pe,Ae,he,ge,ye,me,ve,be,Ee;pe=R._w;if(pe.GG!=null||pe.W!=null||pe.E!=null){ye=1;me=4;Ae=defaults(pe.GG,R._a[Xe],weekOfYear(createLocal(),1,4).year);he=defaults(pe.W,1);ge=defaults(pe.E,1);if(ge<1||ge>7){be=true}}else{ye=R._locale._week.dow;me=R._locale._week.doy;Ee=weekOfYear(createLocal(),ye,me);Ae=defaults(pe.gg,R._a[Xe],Ee.year);he=defaults(pe.w,Ee.week);if(pe.d!=null){ge=pe.d;if(ge<0||ge>6){be=true}}else if(pe.e!=null){ge=pe.e+ye;if(pe.e<0||pe.e>6){be=true}}else{ge=ye}}if(he<1||he>weeksInYear(Ae,ye,me)){getParsingFlags(R)._overflowWeeks=true}else if(be!=null){getParsingFlags(R)._overflowWeekday=true}else{ve=dayOfYearFromWeeks(Ae,he,ge,ye,me);R._a[Xe]=ve.year;R._dayOfYear=ve.dayOfYear}}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(R){if(R._f===hooks.ISO_8601){configFromISO(R);return}if(R._f===hooks.RFC_2822){configFromRFC2822(R);return}R._a=[];getParsingFlags(R).empty=true;var pe=""+R._i,Ae,he,ge,ye,me,ve=pe.length,Ee=0,we,_e;ge=expandFormat(R._f,R._locale).match(be)||[];_e=ge.length;for(Ae=0;Ae<_e;Ae++){ye=ge[Ae];he=(pe.match(getParseRegexForToken(ye,R))||[])[0];if(he){me=pe.substr(0,pe.indexOf(he));if(me.length>0){getParsingFlags(R).unusedInput.push(me)}pe=pe.slice(pe.indexOf(he)+he.length);Ee+=he.length}if(Ce[ye]){if(he){getParsingFlags(R).empty=false}else{getParsingFlags(R).unusedTokens.push(ye)}addTimeToArrayFromToken(ye,he,R)}else if(R._strict&&!he){getParsingFlags(R).unusedTokens.push(ye)}}getParsingFlags(R).charsLeftOver=ve-Ee;if(pe.length>0){getParsingFlags(R).unusedInput.push(pe)}if(R._a[tt]<=12&&getParsingFlags(R).bigHour===true&&R._a[tt]>0){getParsingFlags(R).bigHour=undefined}getParsingFlags(R).parsedDateParts=R._a.slice(0);getParsingFlags(R).meridiem=R._meridiem;R._a[tt]=meridiemFixWrap(R._locale,R._a[tt],R._meridiem);we=getParsingFlags(R).era;if(we!==null){R._a[Xe]=R._locale.erasConvertYear(we,R._a[Xe])}configFromArray(R);checkOverflow(R)}function meridiemFixWrap(R,pe,Ae){var he;if(Ae==null){return pe}if(R.meridiemHour!=null){return R.meridiemHour(pe,Ae)}else if(R.isPM!=null){he=R.isPM(Ae);if(he&&pe<12){pe+=12}if(!he&&pe===12){pe=0}return pe}else{return pe}}function configFromStringAndArray(R){var pe,Ae,he,ge,ye,me,ve=false,be=R._f.length;if(be===0){getParsingFlags(R).invalidFormat=true;R._d=new Date(NaN);return}for(ge=0;gethis?this:R}else{return createInvalid()}}));function pickBy(R,pe){var Ae,he;if(pe.length===1&&isArray(pe[0])){pe=pe[0]}if(!pe.length){return createLocal()}Ae=pe[0];for(he=1;hethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted)){return this._isDSTShifted}var R={},pe;copyConfig(R,this);R=prepareConfig(R);if(R._a){pe=R._isUTC?createUTC(R._a):createLocal(R._a);this._isDSTShifted=this.isValid()&&compareArrays(R._a,pe.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:false}function isUtcOffset(){return this.isValid()?this._isUTC:false}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:false}var Ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Lt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(R,pe){var Ae=R,he=null,ge,ye,me;if(isDuration(R)){Ae={ms:R._milliseconds,d:R._days,M:R._months}}else if(isNumber(R)||!isNaN(+R)){Ae={};if(pe){Ae[pe]=+R}else{Ae.milliseconds=+R}}else if(he=Ft.exec(R)){ge=he[1]==="-"?-1:1;Ae={y:0,d:toInt(he[et])*ge,h:toInt(he[tt])*ge,m:toInt(he[rt])*ge,s:toInt(he[nt])*ge,ms:toInt(absRound(he[it]*1e3))*ge}}else if(he=Lt.exec(R)){ge=he[1]==="-"?-1:1;Ae={y:parseIso(he[2],ge),M:parseIso(he[3],ge),w:parseIso(he[4],ge),d:parseIso(he[5],ge),h:parseIso(he[6],ge),m:parseIso(he[7],ge),s:parseIso(he[8],ge)}}else if(Ae==null){Ae={}}else if(typeof Ae==="object"&&("from"in Ae||"to"in Ae)){me=momentsDifference(createLocal(Ae.from),createLocal(Ae.to));Ae={};Ae.ms=me.milliseconds;Ae.M=me.months}ye=new Duration(Ae);if(isDuration(R)&&hasOwnProp(R,"_locale")){ye._locale=R._locale}if(isDuration(R)&&hasOwnProp(R,"_isValid")){ye._isValid=R._isValid}return ye}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(R,pe){var Ae=R&&parseFloat(R.replace(",","."));return(isNaN(Ae)?0:Ae)*pe}function positiveMomentsDifference(R,pe){var Ae={};Ae.months=pe.month()-R.month()+(pe.year()-R.year())*12;if(R.clone().add(Ae.months,"M").isAfter(pe)){--Ae.months}Ae.milliseconds=+pe-+R.clone().add(Ae.months,"M");return Ae}function momentsDifference(R,pe){var Ae;if(!(R.isValid()&&pe.isValid())){return{milliseconds:0,months:0}}pe=cloneWithOffset(pe,R);if(R.isBefore(pe)){Ae=positiveMomentsDifference(R,pe)}else{Ae=positiveMomentsDifference(pe,R);Ae.milliseconds=-Ae.milliseconds;Ae.months=-Ae.months}return Ae}function createAdder(R,pe){return function(Ae,he){var ge,ye;if(he!==null&&!isNaN(+he)){deprecateSimple(pe,"moment()."+pe+"(period, number) is deprecated. Please use moment()."+pe+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");ye=Ae;Ae=he;he=ye}ge=createDuration(Ae,he);addSubtract(this,ge,R);return this}}function addSubtract(R,pe,Ae,he){var ge=pe._milliseconds,ye=absRound(pe._days),me=absRound(pe._months);if(!R.isValid()){return}he=he==null?true:he;if(me){setMonth(R,get(R,"Month")+me*Ae)}if(ye){set$1(R,"Date",get(R,"Date")+ye*Ae)}if(ge){R._d.setTime(R._d.valueOf()+ge*Ae)}if(he){hooks.updateOffset(R,ye||me)}}var Ut=createAdder(1,"add"),Ht=createAdder(-1,"subtract");function isString(R){return typeof R==="string"||R instanceof String}function isMomentInput(R){return isMoment(R)||isDate(R)||isString(R)||isNumber(R)||isNumberOrStringArray(R)||isMomentInputObject(R)||R===null||R===undefined}function isMomentInputObject(R){var pe=isObject(R)&&!isObjectEmpty(R),Ae=false,he=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ge,ye,me=he.length;for(ge=0;geAe.valueOf()}else{return Ae.valueOf()9999){return formatMoment(Ae,pe?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ")}if(isFunction(Date.prototype.toISOString)){if(pe){return this.toDate().toISOString()}else{return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(Ae,"Z"))}}return formatMoment(Ae,pe?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid()){return"moment.invalid(/* "+this._i+" */)"}var R="moment",pe="",Ae,he,ge,ye;if(!this.isLocal()){R=this.utcOffset()===0?"moment.utc":"moment.parseZone";pe="Z"}Ae="["+R+'("]';he=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";ge="-MM-DD[T]HH:mm:ss.SSS";ye=pe+'[")]';return this.format(Ae+he+ge+ye)}function format(R){if(!R){R=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat}var pe=formatMoment(this,R);return this.localeData().postformat(pe)}function from(R,pe){if(this.isValid()&&(isMoment(R)&&R.isValid()||createLocal(R).isValid())){return createDuration({to:this,from:R}).locale(this.locale()).humanize(!pe)}else{return this.localeData().invalidDate()}}function fromNow(R){return this.from(createLocal(),R)}function to(R,pe){if(this.isValid()&&(isMoment(R)&&R.isValid()||createLocal(R).isValid())){return createDuration({from:this,to:R}).locale(this.locale()).humanize(!pe)}else{return this.localeData().invalidDate()}}function toNow(R){return this.to(createLocal(),R)}function locale(R){var pe;if(R===undefined){return this._locale._abbr}else{pe=getLocale(R);if(pe!=null){this._locale=pe}return this}}var Jt=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(R){if(R===undefined){return this.localeData()}else{return this.locale(R)}}));function localeData(){return this._locale}var Wt=1e3,Vt=60*Wt,Kt=60*Vt,Gt=(365*400+97)*24*Kt;function mod$1(R,pe){return(R%pe+pe)%pe}function localStartOfDate(R,pe,Ae){if(R<100&&R>=0){return new Date(R+400,pe,Ae)-Gt}else{return new Date(R,pe,Ae).valueOf()}}function utcStartOfDate(R,pe,Ae){if(R<100&&R>=0){return Date.UTC(R+400,pe,Ae)-Gt}else{return Date.UTC(R,pe,Ae)}}function startOf(R){var pe,Ae;R=normalizeUnits(R);if(R===undefined||R==="millisecond"||!this.isValid()){return this}Ae=this._isUTC?utcStartOfDate:localStartOfDate;switch(R){case"year":pe=Ae(this.year(),0,1);break;case"quarter":pe=Ae(this.year(),this.month()-this.month()%3,1);break;case"month":pe=Ae(this.year(),this.month(),1);break;case"week":pe=Ae(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":pe=Ae(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":pe=Ae(this.year(),this.month(),this.date());break;case"hour":pe=this._d.valueOf();pe-=mod$1(pe+(this._isUTC?0:this.utcOffset()*Vt),Kt);break;case"minute":pe=this._d.valueOf();pe-=mod$1(pe,Vt);break;case"second":pe=this._d.valueOf();pe-=mod$1(pe,Wt);break}this._d.setTime(pe);hooks.updateOffset(this,true);return this}function endOf(R){var pe,Ae;R=normalizeUnits(R);if(R===undefined||R==="millisecond"||!this.isValid()){return this}Ae=this._isUTC?utcStartOfDate:localStartOfDate;switch(R){case"year":pe=Ae(this.year()+1,0,1)-1;break;case"quarter":pe=Ae(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":pe=Ae(this.year(),this.month()+1,1)-1;break;case"week":pe=Ae(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":pe=Ae(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":pe=Ae(this.year(),this.month(),this.date()+1)-1;break;case"hour":pe=this._d.valueOf();pe+=Kt-mod$1(pe+(this._isUTC?0:this.utcOffset()*Vt),Kt)-1;break;case"minute":pe=this._d.valueOf();pe+=Vt-mod$1(pe,Vt)-1;break;case"second":pe=this._d.valueOf();pe+=Wt-mod$1(pe,Wt)-1;break}this._d.setTime(pe);hooks.updateOffset(this,true);return this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var R=this;return[R.year(),R.month(),R.date(),R.hour(),R.minute(),R.second(),R.millisecond()]}function toObject(){var R=this;return{years:R.year(),months:R.month(),date:R.date(),hours:R.hours(),minutes:R.minutes(),seconds:R.seconds(),milliseconds:R.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],(function(R,pe,Ae,he){var ge=Ae._locale.erasParse(R,he,Ae._strict);if(ge){getParsingFlags(Ae).era=ge}else{getParsingFlags(Ae).invalidEra=R}}));addRegexToken("y",He);addRegexToken("yy",He);addRegexToken("yyy",He);addRegexToken("yyyy",He);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],Xe);addParseToken(["yo"],(function(R,pe,Ae,he){var ge;if(Ae._locale._eraYearOrdinalRegex){ge=R.match(Ae._locale._eraYearOrdinalRegex)}if(Ae._locale.eraYearOrdinalParse){pe[Xe]=Ae._locale.eraYearOrdinalParse(R,ge)}else{pe[Xe]=parseInt(R,10)}}));function localeEras(R,pe){var Ae,he,ge,ye=this._eras||getLocale("en")._eras;for(Ae=0,he=ye.length;Ae=0){return ye[he]}}}function localeErasConvertYear(R,pe){var Ae=R.since<=R.until?+1:-1;if(pe===undefined){return hooks(R.since).year()}else{return hooks(R.since).year()+(pe-R.offset)*Ae}}function getEraName(){var R,pe,Ae,he=this.localeData().eras();for(R=0,pe=he.length;Rye){pe=ye}return setWeekAll.call(this,R,pe,Ae,he,ge)}}function setWeekAll(R,pe,Ae,he,ge){var ye=dayOfYearFromWeeks(R,pe,Ae,he,ge),me=createUTCDate(ye.year,0,ye.dayOfYear);this.year(me.getUTCFullYear());this.month(me.getUTCMonth());this.date(me.getUTCDate());return this}addFormatToken("Q",0,"Qo","quarter");addRegexToken("Q",Qe);addParseToken("Q",(function(R,pe){pe[Ze]=(toInt(R)-1)*3}));function getSetQuarter(R){return R==null?Math.ceil((this.month()+1)/3):this.month((R-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addRegexToken("D",Ne,Ye);addRegexToken("DD",Ne,xe);addRegexToken("Do",(function(R,pe){return R?pe._dayOfMonthOrdinalParse||pe._ordinalParse:pe._dayOfMonthOrdinalParseLenient}));addParseToken(["D","DD"],et);addParseToken("Do",(function(R,pe){pe[et]=toInt(R.match(Ne)[0])}));var Yt=makeGetSet("Date",true);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addRegexToken("DDD",Fe);addRegexToken("DDDD",Pe);addParseToken(["DDD","DDDD"],(function(R,pe,Ae){Ae._dayOfYear=toInt(R)}));function getSetDayOfYear(R){var pe=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return R==null?pe:this.add(R-pe,"d")}addFormatToken("m",["mm",2],0,"minute");addRegexToken("m",Ne,qe);addRegexToken("mm",Ne,xe);addParseToken(["m","mm"],rt);var qt=makeGetSet("Minutes",false);addFormatToken("s",["ss",2],0,"second");addRegexToken("s",Ne,qe);addRegexToken("ss",Ne,xe);addParseToken(["s","ss"],nt);var $t=makeGetSet("Seconds",false);addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)}));addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)}));addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,(function(){return this.millisecond()*10}));addFormatToken(0,["SSSSS",5],0,(function(){return this.millisecond()*100}));addFormatToken(0,["SSSSSS",6],0,(function(){return this.millisecond()*1e3}));addFormatToken(0,["SSSSSSS",7],0,(function(){return this.millisecond()*1e4}));addFormatToken(0,["SSSSSSSS",8],0,(function(){return this.millisecond()*1e5}));addFormatToken(0,["SSSSSSSSS",9],0,(function(){return this.millisecond()*1e6}));addRegexToken("S",Fe,Qe);addRegexToken("SS",Fe,xe);addRegexToken("SSS",Fe,Pe);var zt,Xt;for(zt="SSSS";zt.length<=9;zt+="S"){addRegexToken(zt,He)}function parseMs(R,pe){pe[it]=toInt(("0."+R)*1e3)}for(zt="S";zt.length<=9;zt+="S"){addParseToken(zt,parseMs)}Xt=makeGetSet("Milliseconds",false);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var Zt=Moment.prototype;Zt.add=Ut;Zt.calendar=calendar$1;Zt.clone=clone;Zt.diff=diff;Zt.endOf=endOf;Zt.format=format;Zt.from=from;Zt.fromNow=fromNow;Zt.to=to;Zt.toNow=toNow;Zt.get=stringGet;Zt.invalidAt=invalidAt;Zt.isAfter=isAfter;Zt.isBefore=isBefore;Zt.isBetween=isBetween;Zt.isSame=isSame;Zt.isSameOrAfter=isSameOrAfter;Zt.isSameOrBefore=isSameOrBefore;Zt.isValid=isValid$2;Zt.lang=Jt;Zt.locale=locale;Zt.localeData=localeData;Zt.max=Nt;Zt.min=Dt;Zt.parsingFlags=parsingFlags;Zt.set=stringSet;Zt.startOf=startOf;Zt.subtract=Ht;Zt.toArray=toArray;Zt.toObject=toObject;Zt.toDate=toDate;Zt.toISOString=toISOString;Zt.inspect=inspect;if(typeof Symbol!=="undefined"&&Symbol.for!=null){Zt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}}Zt.toJSON=toJSON;Zt.toString=toString;Zt.unix=unix;Zt.valueOf=valueOf;Zt.creationData=creationData;Zt.eraName=getEraName;Zt.eraNarrow=getEraNarrow;Zt.eraAbbr=getEraAbbr;Zt.eraYear=getEraYear;Zt.year=at;Zt.isLeapYear=getIsLeapYear;Zt.weekYear=getSetWeekYear;Zt.isoWeekYear=getSetISOWeekYear;Zt.quarter=Zt.quarters=getSetQuarter;Zt.month=getSetMonth;Zt.daysInMonth=getDaysInMonth;Zt.week=Zt.weeks=getSetWeek;Zt.isoWeek=Zt.isoWeeks=getSetISOWeek;Zt.weeksInYear=getWeeksInYear;Zt.weeksInWeekYear=getWeeksInWeekYear;Zt.isoWeeksInYear=getISOWeeksInYear;Zt.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;Zt.date=Yt;Zt.day=Zt.days=getSetDayOfWeek;Zt.weekday=getSetLocaleDayOfWeek;Zt.isoWeekday=getSetISODayOfWeek;Zt.dayOfYear=getSetDayOfYear;Zt.hour=Zt.hours=wt;Zt.minute=Zt.minutes=qt;Zt.second=Zt.seconds=$t;Zt.millisecond=Zt.milliseconds=Xt;Zt.utcOffset=getSetOffset;Zt.utc=setOffsetToUTC;Zt.local=setOffsetToLocal;Zt.parseZone=setOffsetToParsedOffset;Zt.hasAlignedHourOffset=hasAlignedHourOffset;Zt.isDST=isDaylightSavingTime;Zt.isLocal=isLocal;Zt.isUtcOffset=isUtcOffset;Zt.isUtc=isUtc;Zt.isUTC=isUtc;Zt.zoneAbbr=getZoneAbbr;Zt.zoneName=getZoneName;Zt.dates=deprecate("dates accessor is deprecated. Use date instead.",Yt);Zt.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);Zt.years=deprecate("years accessor is deprecated. Use year instead",at);Zt.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);Zt.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(R){return createLocal(R*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(R){return R}var er=Locale.prototype;er.calendar=calendar;er.longDateFormat=longDateFormat;er.invalidDate=invalidDate;er.ordinal=ordinal;er.preparse=preParsePostFormat;er.postformat=preParsePostFormat;er.relativeTime=relativeTime;er.pastFuture=pastFuture;er.set=set;er.eras=localeEras;er.erasParse=localeErasParse;er.erasConvertYear=localeErasConvertYear;er.erasAbbrRegex=erasAbbrRegex;er.erasNameRegex=erasNameRegex;er.erasNarrowRegex=erasNarrowRegex;er.months=localeMonths;er.monthsShort=localeMonthsShort;er.monthsParse=localeMonthsParse;er.monthsRegex=monthsRegex;er.monthsShortRegex=monthsShortRegex;er.week=localeWeek;er.firstDayOfYear=localeFirstDayOfYear;er.firstDayOfWeek=localeFirstDayOfWeek;er.weekdays=localeWeekdays;er.weekdaysMin=localeWeekdaysMin;er.weekdaysShort=localeWeekdaysShort;er.weekdaysParse=localeWeekdaysParse;er.weekdaysRegex=weekdaysRegex;er.weekdaysShortRegex=weekdaysShortRegex;er.weekdaysMinRegex=weekdaysMinRegex;er.isPM=localeIsPM;er.meridiem=localeMeridiem;function get$1(R,pe,Ae,he){var ge=getLocale(),ye=createUTC().set(he,pe);return ge[Ae](ye,R)}function listMonthsImpl(R,pe,Ae){if(isNumber(R)){pe=R;R=undefined}R=R||"";if(pe!=null){return get$1(R,pe,Ae,"month")}var he,ge=[];for(he=0;he<12;he++){ge[he]=get$1(R,he,Ae,"month")}return ge}function listWeekdaysImpl(R,pe,Ae,he){if(typeof R==="boolean"){if(isNumber(pe)){Ae=pe;pe=undefined}pe=pe||""}else{pe=R;Ae=pe;R=false;if(isNumber(pe)){Ae=pe;pe=undefined}pe=pe||""}var ge=getLocale(),ye=R?ge._week.dow:0,me,ve=[];if(Ae!=null){return get$1(pe,(Ae+ye)%7,he,"day")}for(me=0;me<7;me++){ve[me]=get$1(pe,(me+ye)%7,he,"day")}return ve}function listMonths(R,pe){return listMonthsImpl(R,pe,"months")}function listMonthsShort(R,pe){return listMonthsImpl(R,pe,"monthsShort")}function listWeekdays(R,pe,Ae){return listWeekdaysImpl(R,pe,Ae,"weekdays")}function listWeekdaysShort(R,pe,Ae){return listWeekdaysImpl(R,pe,Ae,"weekdaysShort")}function listWeekdaysMin(R,pe,Ae){return listWeekdaysImpl(R,pe,Ae,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(R){var pe=R%10,Ae=toInt(R%100/10)===1?"th":pe===1?"st":pe===2?"nd":pe===3?"rd":"th";return R+Ae}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var tr=Math.abs;function abs(){var R=this._data;this._milliseconds=tr(this._milliseconds);this._days=tr(this._days);this._months=tr(this._months);R.milliseconds=tr(R.milliseconds);R.seconds=tr(R.seconds);R.minutes=tr(R.minutes);R.hours=tr(R.hours);R.months=tr(R.months);R.years=tr(R.years);return this}function addSubtract$1(R,pe,Ae,he){var ge=createDuration(pe,Ae);R._milliseconds+=he*ge._milliseconds;R._days+=he*ge._days;R._months+=he*ge._months;return R._bubble()}function add$1(R,pe){return addSubtract$1(this,R,pe,1)}function subtract$1(R,pe){return addSubtract$1(this,R,pe,-1)}function absCeil(R){if(R<0){return Math.floor(R)}else{return Math.ceil(R)}}function bubble(){var R=this._milliseconds,pe=this._days,Ae=this._months,he=this._data,ge,ye,me,ve,be;if(!(R>=0&&pe>=0&&Ae>=0||R<=0&&pe<=0&&Ae<=0)){R+=absCeil(monthsToDays(Ae)+pe)*864e5;pe=0;Ae=0}he.milliseconds=R%1e3;ge=absFloor(R/1e3);he.seconds=ge%60;ye=absFloor(ge/60);he.minutes=ye%60;me=absFloor(ye/60);he.hours=me%24;pe+=absFloor(me/24);be=absFloor(daysToMonths(pe));Ae+=be;pe-=absCeil(monthsToDays(be));ve=absFloor(Ae/12);Ae%=12;he.days=pe;he.months=Ae;he.years=ve;return this}function daysToMonths(R){return R*4800/146097}function monthsToDays(R){return R*146097/4800}function as(R){if(!this.isValid()){return NaN}var pe,Ae,he=this._milliseconds;R=normalizeUnits(R);if(R==="month"||R==="quarter"||R==="year"){pe=this._days+he/864e5;Ae=this._months+daysToMonths(pe);switch(R){case"month":return Ae;case"quarter":return Ae/3;case"year":return Ae/12}}else{pe=this._days+Math.round(monthsToDays(this._months));switch(R){case"week":return pe/7+he/6048e5;case"day":return pe+he/864e5;case"hour":return pe*24+he/36e5;case"minute":return pe*1440+he/6e4;case"second":return pe*86400+he/1e3;case"millisecond":return Math.floor(pe*864e5)+he;default:throw new Error("Unknown unit "+R)}}}function makeAs(R){return function(){return this.as(R)}}var rr=makeAs("ms"),nr=makeAs("s"),ir=makeAs("m"),sr=makeAs("h"),ar=makeAs("d"),cr=makeAs("w"),ur=makeAs("M"),lr=makeAs("Q"),dr=makeAs("y"),fr=rr;function clone$1(){return createDuration(this)}function get$2(R){R=normalizeUnits(R);return this.isValid()?this[R+"s"]():NaN}function makeGetter(R){return function(){return this.isValid()?this._data[R]:NaN}}var pr=makeGetter("milliseconds"),Ar=makeGetter("seconds"),hr=makeGetter("minutes"),gr=makeGetter("hours"),yr=makeGetter("days"),mr=makeGetter("months"),vr=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var br=Math.round,Er={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(R,pe,Ae,he,ge){return ge.relativeTime(pe||1,!!Ae,R,he)}function relativeTime$1(R,pe,Ae,he){var ge=createDuration(R).abs(),ye=br(ge.as("s")),me=br(ge.as("m")),ve=br(ge.as("h")),be=br(ge.as("d")),Ee=br(ge.as("M")),we=br(ge.as("w")),Ce=br(ge.as("y")),_e=ye<=Ae.ss&&["s",ye]||ye0;_e[4]=he;return substituteTimeAgo.apply(null,_e)}function getSetRelativeTimeRounding(R){if(R===undefined){return br}if(typeof R==="function"){br=R;return true}return false}function getSetRelativeTimeThreshold(R,pe){if(Er[R]===undefined){return false}if(pe===undefined){return Er[R]}Er[R]=pe;if(R==="s"){Er.ss=pe-1}return true}function humanize(R,pe){if(!this.isValid()){return this.localeData().invalidDate()}var Ae=false,he=Er,ge,ye;if(typeof R==="object"){pe=R;R=false}if(typeof R==="boolean"){Ae=R}if(typeof pe==="object"){he=Object.assign({},Er,pe);if(pe.s!=null&&pe.ss==null){he.ss=pe.s-1}}ge=this.localeData();ye=relativeTime$1(this,!Ae,he,ge);if(Ae){ye=ge.pastFuture(+this,ye)}return ge.postformat(ye)}var wr=Math.abs;function sign(R){return(R>0)-(R<0)||+R}function toISOString$1(){if(!this.isValid()){return this.localeData().invalidDate()}var R=wr(this._milliseconds)/1e3,pe=wr(this._days),Ae=wr(this._months),he,ge,ye,me,ve=this.asSeconds(),be,Ee,we,Ce;if(!ve){return"P0D"}he=absFloor(R/60);ge=absFloor(he/60);R%=60;he%=60;ye=absFloor(Ae/12);Ae%=12;me=R?R.toFixed(3).replace(/\.?0+$/,""):"";be=ve<0?"-":"";Ee=sign(this._months)!==sign(ve)?"-":"";we=sign(this._days)!==sign(ve)?"-":"";Ce=sign(this._milliseconds)!==sign(ve)?"-":"";return be+"P"+(ye?Ee+ye+"Y":"")+(Ae?Ee+Ae+"M":"")+(pe?we+pe+"D":"")+(ge||he||R?"T":"")+(ge?Ce+ge+"H":"")+(he?Ce+he+"M":"")+(R?Ce+me+"S":"")}var Cr=Duration.prototype;Cr.isValid=isValid$1;Cr.abs=abs;Cr.add=add$1;Cr.subtract=subtract$1;Cr.as=as;Cr.asMilliseconds=rr;Cr.asSeconds=nr;Cr.asMinutes=ir;Cr.asHours=sr;Cr.asDays=ar;Cr.asWeeks=cr;Cr.asMonths=ur;Cr.asQuarters=lr;Cr.asYears=dr;Cr.valueOf=fr;Cr._bubble=bubble;Cr.clone=clone$1;Cr.get=get$2;Cr.milliseconds=pr;Cr.seconds=Ar;Cr.minutes=hr;Cr.hours=gr;Cr.days=yr;Cr.weeks=weeks;Cr.months=mr;Cr.years=vr;Cr.humanize=humanize;Cr.toISOString=toISOString$1;Cr.toString=toISOString$1;Cr.toJSON=toISOString$1;Cr.locale=locale;Cr.localeData=localeData;Cr.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);Cr.lang=Jt;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",Je);addRegexToken("X",Ke);addParseToken("X",(function(R,pe,Ae){Ae._d=new Date(parseFloat(R)*1e3)}));addParseToken("x",(function(R,pe,Ae){Ae._d=new Date(toInt(R))})); //! moment.js -hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=Zt;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=Zt;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},80900:R=>{var pe=1e3;var Ae=pe*60;var he=Ae*60;var ge=he*24;var ye=ge*7;var me=ge*365.25;R.exports=function(R,pe){pe=pe||{};var Ae=typeof R;if(Ae==="string"&&R.length>0){return parse(R)}else if(Ae==="number"&&isFinite(R)){return pe.long?fmtLong(R):fmtShort(R)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(R))};function parse(R){R=String(R);if(R.length>100){return}var ve=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(R);if(!ve){return}var be=parseFloat(ve[1]);var Ee=(ve[2]||"ms").toLowerCase();switch(Ee){case"years":case"year":case"yrs":case"yr":case"y":return be*me;case"weeks":case"week":case"w":return be*ye;case"days":case"day":case"d":return be*ge;case"hours":case"hour":case"hrs":case"hr":case"h":return be*he;case"minutes":case"minute":case"mins":case"min":case"m":return be*Ae;case"seconds":case"second":case"secs":case"sec":case"s":return be*pe;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return be;default:return undefined}}function fmtShort(R){var ye=Math.abs(R);if(ye>=ge){return Math.round(R/ge)+"d"}if(ye>=he){return Math.round(R/he)+"h"}if(ye>=Ae){return Math.round(R/Ae)+"m"}if(ye>=pe){return Math.round(R/pe)+"s"}return R+"ms"}function fmtLong(R){var ye=Math.abs(R);if(ye>=ge){return plural(R,ye,ge,"day")}if(ye>=he){return plural(R,ye,he,"hour")}if(ye>=Ae){return plural(R,ye,Ae,"minute")}if(ye>=pe){return plural(R,ye,pe,"second")}return R+" ms"}function plural(R,pe,Ae,he){var ge=pe>=Ae*1.5;return Math.round(R/Ae)+" "+he+(ge?"s":"")}},93653:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.assertNotificationFilterIsEmpty=pe.assertImpersonatedUserIsEmpty=pe.assertTxConfigIsEmpty=pe.assertDatabaseIsEmpty=void 0;var he=Ae(55065);var ge=Ae(17526);function assertTxConfigIsEmpty(R,pe,Ae){if(pe===void 0){pe=function(){}}if(R&&!R.isEmpty()){var ge=(0,he.newError)("Driver is connected to the database that does not support transaction configuration. "+"Please upgrade to neo4j 3.5.0 or later in order to use this functionality");pe(ge.message);Ae.onError(ge);throw ge}}pe.assertTxConfigIsEmpty=assertTxConfigIsEmpty;function assertDatabaseIsEmpty(R,pe,Ae){if(pe===void 0){pe=function(){}}if(R){var ge=(0,he.newError)("Driver is connected to the database that does not support multiple databases. "+"Please upgrade to neo4j 4.0.0 or later in order to use this functionality");pe(ge.message);Ae.onError(ge);throw ge}}pe.assertDatabaseIsEmpty=assertDatabaseIsEmpty;function assertImpersonatedUserIsEmpty(R,pe,Ae){if(pe===void 0){pe=function(){}}if(R){var ge=(0,he.newError)("Driver is connected to the database that does not support user impersonation. "+"Please upgrade to neo4j 4.4.0 or later in order to use this functionality. "+"Trying to impersonate ".concat(R,"."));pe(ge.message);Ae.onError(ge);throw ge}}pe.assertImpersonatedUserIsEmpty=assertImpersonatedUserIsEmpty;function assertNotificationFilterIsEmpty(R,pe,Ae){if(pe===void 0){pe=function(){}}if(R!==undefined){var ge=(0,he.newError)("Driver is connected to a database that does not support user notification filters. "+"Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. "+"Trying to set notifications to ".concat(he.json.stringify(R),"."));pe(ge.message);Ae.onError(ge);throw ge}}pe.assertNotificationFilterIsEmpty=assertNotificationFilterIsEmpty},54472:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ve=Ae(93653);var be=Ae(31131);var Ee=Ae(32423);var Ce=ye(Ae(67923));var we=Ae(17526);var _e=Ae(55065);var Ie=me(Ae(16383));var Se=me(Ae(28859));var Be=_e.internal.bookmarks.Bookmarks,ke=_e.internal.constants,Oe=ke.ACCESS_MODE_WRITE,Re=ke.BOLT_PROTOCOL_V1,Qe=_e.internal.logger.Logger,xe=_e.internal.txConfig.TxConfig;var Pe=function(){function BoltProtocol(R,pe,Ae,he,ge,ye){var me=Ae===void 0?{}:Ae,ve=me.disableLosslessIntegers,be=me.useBigInt;if(he===void 0){he=function(){return null}}this._server=R||{};this._chunker=pe;this._packer=this._createPacker(pe);this._unpacker=this._createUnpacker(ve,be);this._responseHandler=he(this);this._log=ge;this._onProtocolError=ye;this._fatalError=null;this._lastMessageSignature=null;this._config={disableLosslessIntegers:ve,useBigInt:be}}Object.defineProperty(BoltProtocol.prototype,"transformer",{get:function(){var R=this;if(this._transformer===undefined){this._transformer=new Se.default(Object.values(Ie.default).map((function(pe){return pe(R._config,R._log)})))}return this._transformer},enumerable:false,configurable:true});Object.defineProperty(BoltProtocol.prototype,"version",{get:function(){return Re},enumerable:false,configurable:true});Object.defineProperty(BoltProtocol.prototype,"supportsReAuth",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(BoltProtocol.prototype,"initialized",{get:function(){return!!this._initialized},enumerable:false,configurable:true});Object.defineProperty(BoltProtocol.prototype,"authToken",{get:function(){return this._authToken},enumerable:false,configurable:true});BoltProtocol.prototype.packer=function(){return this._packer};BoltProtocol.prototype.packable=function(R){return this._packer.packable(R,this.transformer.toStructure)};BoltProtocol.prototype.unpacker=function(){return this._unpacker};BoltProtocol.prototype.unpack=function(R){return this._unpacker.unpack(R,this.transformer.fromStructure)};BoltProtocol.prototype.transformMetadata=function(R){return R};BoltProtocol.prototype.initialize=function(R){var pe=this;var Ae=R===void 0?{}:R,he=Ae.userAgent,ge=Ae.boltAgent,ye=Ae.authToken,me=Ae.notificationFilter,be=Ae.onError,Ee=Ae.onComplete;var _e=new we.LoginObserver({onError:function(R){return pe._onLoginError(R,be)},onCompleted:function(R){return pe._onLoginCompleted(R,Ee)}});(0,ve.assertNotificationFilterIsEmpty)(me,this._onProtocolError,_e);this.write(Ce.default.init(he,ye),_e,true);return _e};BoltProtocol.prototype.logoff=function(R){var pe=R===void 0?{}:R,Ae=pe.onComplete,he=pe.onError,ge=pe.flush;var ye=new we.LogoffObserver({onCompleted:Ae,onError:he});var me=(0,_e.newError)("Driver is connected to a database that does not support logoff. "+"Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.");this._onProtocolError(me.message);ye.onError(me);throw me};BoltProtocol.prototype.logon=function(R){var pe=this;var Ae=R===void 0?{}:R,he=Ae.authToken,ge=Ae.onComplete,ye=Ae.onError,me=Ae.flush;var ve=new we.LoginObserver({onCompleted:function(){return pe._onLoginCompleted({},he,ge)},onError:function(R){return pe._onLoginError(R,ye)}});var be=(0,_e.newError)("Driver is connected to a database that does not support logon. "+"Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.");this._onProtocolError(be.message);ve.onError(be);throw be};BoltProtocol.prototype.prepareToClose=function(){};BoltProtocol.prototype.beginTransaction=function(R){var pe=R===void 0?{}:R,Ae=pe.bookmarks,he=pe.txConfig,ge=pe.database,ye=pe.mode,me=pe.impersonatedUser,ve=pe.notificationFilter,be=pe.beforeError,Ee=pe.afterError,Ce=pe.beforeComplete,we=pe.afterComplete;return this.run("BEGIN",Ae?Ae.asBeginTransactionParameters():{},{bookmarks:Ae,txConfig:he,database:ge,mode:ye,impersonatedUser:me,notificationFilter:ve,beforeError:be,afterError:Ee,beforeComplete:Ce,afterComplete:we,flush:false})};BoltProtocol.prototype.commitTransaction=function(R){var pe=R===void 0?{}:R,Ae=pe.beforeError,he=pe.afterError,ge=pe.beforeComplete,ye=pe.afterComplete;return this.run("COMMIT",{},{bookmarks:Be.empty(),txConfig:xe.empty(),mode:Oe,beforeError:Ae,afterError:he,beforeComplete:ge,afterComplete:ye})};BoltProtocol.prototype.rollbackTransaction=function(R){var pe=R===void 0?{}:R,Ae=pe.beforeError,he=pe.afterError,ge=pe.beforeComplete,ye=pe.afterComplete;return this.run("ROLLBACK",{},{bookmarks:Be.empty(),txConfig:xe.empty(),mode:Oe,beforeError:Ae,afterError:he,beforeComplete:ge,afterComplete:ye})};BoltProtocol.prototype.run=function(R,pe,Ae){var he=Ae===void 0?{}:Ae,ge=he.bookmarks,ye=he.txConfig,me=he.database,be=he.mode,Ee=he.impersonatedUser,_e=he.notificationFilter,Ie=he.beforeKeys,Se=he.afterKeys,Be=he.beforeError,ke=he.afterError,Oe=he.beforeComplete,Re=he.afterComplete,Qe=he.flush,xe=Qe===void 0?true:Qe,Pe=he.highRecordWatermark,Te=Pe===void 0?Number.MAX_VALUE:Pe,De=he.lowRecordWatermark,Ne=De===void 0?Number.MAX_VALUE:De;var Me=new we.ResultStreamObserver({server:this._server,beforeKeys:Ie,afterKeys:Se,beforeError:Be,afterError:ke,beforeComplete:Oe,afterComplete:Re,highRecordWatermark:Te,lowRecordWatermark:Ne});(0,ve.assertTxConfigIsEmpty)(ye,this._onProtocolError,Me);(0,ve.assertDatabaseIsEmpty)(me,this._onProtocolError,Me);(0,ve.assertImpersonatedUserIsEmpty)(Ee,this._onProtocolError,Me);(0,ve.assertNotificationFilterIsEmpty)(_e,this._onProtocolError,Me);this.write(Ce.default.run(R,pe),Me,false);this.write(Ce.default.pullAll(),Me,xe);return Me};Object.defineProperty(BoltProtocol.prototype,"currentFailure",{get:function(){return this._responseHandler.currentFailure},enumerable:false,configurable:true});BoltProtocol.prototype.reset=function(R){var pe=R===void 0?{}:R,Ae=pe.onError,he=pe.onComplete;var ge=new we.ResetObserver({onProtocolError:this._onProtocolError,onError:Ae,onComplete:he});this.write(Ce.default.reset(),ge,true);return ge};BoltProtocol.prototype.telemetry=function(R,pe){var Ae=R.api;var he=pe===void 0?{}:pe,ge=he.onError,ye=he.onCompleted;var me=new we.CompletedObserver;if(ye){ye()}return me};BoltProtocol.prototype._createPacker=function(R){return new Ee.v1.Packer(R)};BoltProtocol.prototype._createUnpacker=function(R,pe){return new Ee.v1.Unpacker(R,pe)};BoltProtocol.prototype.write=function(R,pe,Ae){var he=this.queueObserverIfProtocolIsNotBroken(pe);if(he){if(this._log.isDebugEnabled()){this._log.debug("C: ".concat(R))}this._lastMessageSignature=R.signature;var ge=new Ee.structure.Structure(R.signature,R.fields);this.packable(ge)();this._chunker.messageBoundary();if(Ae){this._chunker.flush()}}};BoltProtocol.prototype.isLastMessageLogon=function(){return this._lastMessageSignature===Ce.SIGNATURES.HELLO||this._lastMessageSignature===Ce.SIGNATURES.LOGON};BoltProtocol.prototype.isLastMessageReset=function(){return this._lastMessageSignature===Ce.SIGNATURES.RESET};BoltProtocol.prototype.notifyFatalError=function(R){this._fatalError=R;return this._responseHandler._notifyErrorToObservers(R)};BoltProtocol.prototype.updateCurrentObserver=function(){return this._responseHandler._updateCurrentObserver()};BoltProtocol.prototype.hasOngoingObservableRequests=function(){return this._responseHandler.hasOngoingObservableRequests()};BoltProtocol.prototype.queueObserverIfProtocolIsNotBroken=function(R){if(this.isBroken()){this.notifyFatalErrorToObserver(R);return false}return this._responseHandler._queueObserver(R)};BoltProtocol.prototype.isBroken=function(){return!!this._fatalError};BoltProtocol.prototype.notifyFatalErrorToObserver=function(R){if(R&&R.onError){R.onError(this._fatalError)}};BoltProtocol.prototype.resetFailure=function(){this._responseHandler._resetFailure()};BoltProtocol.prototype._onLoginCompleted=function(R,pe,Ae){this._initialized=true;this._authToken=pe;if(R){var he=R.server;if(!this._server.version){this._server.version=he}}if(Ae){Ae(R)}};BoltProtocol.prototype._onLoginError=function(R,pe){this._onProtocolError(R.message);if(pe){pe(R)}};return BoltProtocol}();pe["default"]=Pe},16383:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};Object.defineProperty(pe,"__esModule",{value:true});var ge=Ae(55065);var ye=Ae(32423);var me=Ae(28859);var ve=ge.error.PROTOCOL_ERROR;var be=78;var Ee=3;var Ce=82;var we=5;var _e=114;var Ie=3;var Se=80;var Be=3;function createNodeTransformer(){return new me.TypeTransformer({signature:be,isTypeInstance:function(R){return R instanceof ge.Node},toStructure:function(R){throw(0,ge.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(R),ve)},fromStructure:function(R){ye.structure.verifyStructSize("Node",Ee,R.size);var pe=he(R.fields,3),Ae=pe[0],me=pe[1],ve=pe[2];return new ge.Node(Ae,me,ve)}})}function createRelationshipTransformer(){return new me.TypeTransformer({signature:Ce,isTypeInstance:function(R){return R instanceof ge.Relationship},toStructure:function(R){throw(0,ge.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(R),ve)},fromStructure:function(R){ye.structure.verifyStructSize("Relationship",we,R.size);var pe=he(R.fields,5),Ae=pe[0],me=pe[1],ve=pe[2],be=pe[3],Ee=pe[4];return new ge.Relationship(Ae,me,ve,be,Ee)}})}function createUnboundRelationshipTransformer(){return new me.TypeTransformer({signature:_e,isTypeInstance:function(R){return R instanceof ge.UnboundRelationship},toStructure:function(R){throw(0,ge.newError)("It is not allowed to pass unbound relationships in query parameters, given: ".concat(R),ve)},fromStructure:function(R){ye.structure.verifyStructSize("UnboundRelationship",Ie,R.size);var pe=he(R.fields,3),Ae=pe[0],me=pe[1],ve=pe[2];return new ge.UnboundRelationship(Ae,me,ve)}})}function createPathTransformer(){return new me.TypeTransformer({signature:Se,isTypeInstance:function(R){return R instanceof ge.Path},toStructure:function(R){throw(0,ge.newError)("It is not allowed to pass paths in query parameters, given: ".concat(R),ve)},fromStructure:function(R){ye.structure.verifyStructSize("Path",Be,R.size);var pe=he(R.fields,3),Ae=pe[0],me=pe[1],ve=pe[2];var be=[];var Ee=Ae[0];for(var Ce=0;Ce0){Ie=me[_e-1];if(Ie instanceof ge.UnboundRelationship){me[_e-1]=Ie=Ie.bindTo(Ee,we)}}else{Ie=me[-_e-1];if(Ie instanceof ge.UnboundRelationship){me[-_e-1]=Ie=Ie.bindTo(we,Ee)}}be.push(new ge.PathSegment(Ee,Ie,we));Ee=we}return new ge.Path(Ae[0],Ae[Ae.length-1],be)}})}pe["default"]={createNodeTransformer:createNodeTransformer,createRelationshipTransformer:createRelationshipTransformer,createUnboundRelationshipTransformer:createUnboundRelationshipTransformer,createPathTransformer:createPathTransformer}},65633:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=ge(Ae(54472));var me=ge(Ae(32423));var ve=Ae(55065);var be=ge(Ae(96859));var Ee=ge(Ae(28859));var Ce=ve.internal.constants.BOLT_PROTOCOL_V2;var we=function(R){he(BoltProtocol,R);function BoltProtocol(){return R!==null&&R.apply(this,arguments)||this}BoltProtocol.prototype._createPacker=function(R){return new me.default.Packer(R)};BoltProtocol.prototype._createUnpacker=function(R,pe){return new me.default.Unpacker(R,pe)};Object.defineProperty(BoltProtocol.prototype,"transformer",{get:function(){var R=this;if(this._transformer===undefined){this._transformer=new Ee.default(Object.values(be.default).map((function(pe){return pe(R._config,R._log)})))}return this._transformer},enumerable:false,configurable:true});Object.defineProperty(BoltProtocol.prototype,"version",{get:function(){return Ce},enumerable:false,configurable:true});return BoltProtocol}(ye.default);pe["default"]=we},96859:function(R,pe,Ae){"use strict";var he=this&&this.__assign||function(){he=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var me=Ae(55065);var ve=Ae(32423);var be=Ae(28859);var Ee=Ae(35243);var Ce=ye(Ae(16383));var we=me.internal.temporalUtil,_e=we.dateToEpochDay,Ie=we.localDateTimeToEpochSecond,Se=we.localTimeToNanoOfDay;var Be=88;var ke=3;var Oe=89;var Re=4;var Qe=69;var xe=4;var Pe=116;var Te=1;var De=84;var Ne=2;var Me=68;var je=1;var Fe=100;var Le=2;var Ue=70;var He=3;var Je=102;var We=3;function createPoint2DTransformer(){return new be.TypeTransformer({signature:Be,isTypeInstance:function(R){return(0,me.isPoint)(R)&&(R.z===null||R.z===undefined)},toStructure:function(R){return new ve.structure.Structure(Be,[(0,me.int)(R.srid),R.x,R.y])},fromStructure:function(R){ve.structure.verifyStructSize("Point2D",ke,R.size);var pe=ge(R.fields,3),Ae=pe[0],he=pe[1],ye=pe[2];return new me.Point(Ae,he,ye,undefined)}})}function createPoint3DTransformer(){return new be.TypeTransformer({signature:Oe,isTypeInstance:function(R){return(0,me.isPoint)(R)&&R.z!==null&&R.z!==undefined},toStructure:function(R){return new ve.structure.Structure(Oe,[(0,me.int)(R.srid),R.x,R.y,R.z])},fromStructure:function(R){ve.structure.verifyStructSize("Point3D",Re,R.size);var pe=ge(R.fields,4),Ae=pe[0],he=pe[1],ye=pe[2],be=pe[3];return new me.Point(Ae,he,ye,be)}})}function createDurationTransformer(){return new be.TypeTransformer({signature:Qe,isTypeInstance:me.isDuration,toStructure:function(R){var pe=(0,me.int)(R.months);var Ae=(0,me.int)(R.days);var he=(0,me.int)(R.seconds);var ge=(0,me.int)(R.nanoseconds);return new ve.structure.Structure(Qe,[pe,Ae,he,ge])},fromStructure:function(R){ve.structure.verifyStructSize("Duration",xe,R.size);var pe=ge(R.fields,4),Ae=pe[0],he=pe[1],ye=pe[2],be=pe[3];return new me.Duration(Ae,he,ye,be)}})}function createLocalTimeTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:Pe,isTypeInstance:me.isLocalTime,toStructure:function(R){var pe=Se(R.hour,R.minute,R.second,R.nanosecond);return new ve.structure.Structure(Pe,[pe])},fromStructure:function(R){ve.structure.verifyStructSize("LocalTime",Te,R.size);var he=ge(R.fields,1),ye=he[0];var me=(0,Ee.nanoOfDayToLocalTime)(ye);return convertIntegerPropsIfNeeded(me,pe,Ae)}})}function createTimeTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:De,isTypeInstance:me.isTime,toStructure:function(R){var pe=Se(R.hour,R.minute,R.second,R.nanosecond);var Ae=(0,me.int)(R.timeZoneOffsetSeconds);return new ve.structure.Structure(De,[pe,Ae])},fromStructure:function(R){ve.structure.verifyStructSize("Time",Ne,R.size);var he=ge(R.fields,2),ye=he[0],be=he[1];var Ce=(0,Ee.nanoOfDayToLocalTime)(ye);var we=new me.Time(Ce.hour,Ce.minute,Ce.second,Ce.nanosecond,be);return convertIntegerPropsIfNeeded(we,pe,Ae)}})}function createDateTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:Me,isTypeInstance:me.isDate,toStructure:function(R){var pe=_e(R.year,R.month,R.day);return new ve.structure.Structure(Me,[pe])},fromStructure:function(R){ve.structure.verifyStructSize("Date",je,R.size);var he=ge(R.fields,1),ye=he[0];var me=(0,Ee.epochDayToDate)(ye);return convertIntegerPropsIfNeeded(me,pe,Ae)}})}function createLocalDateTimeTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:Fe,isTypeInstance:me.isLocalDateTime,toStructure:function(R){var pe=Ie(R.year,R.month,R.day,R.hour,R.minute,R.second,R.nanosecond);var Ae=(0,me.int)(R.nanosecond);return new ve.structure.Structure(Fe,[pe,Ae])},fromStructure:function(R){ve.structure.verifyStructSize("LocalDateTime",Le,R.size);var he=ge(R.fields,2),ye=he[0],me=he[1];var be=(0,Ee.epochSecondAndNanoToLocalDateTime)(ye,me);return convertIntegerPropsIfNeeded(be,pe,Ae)}})}function createDateTimeWithZoneIdTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:Je,isTypeInstance:function(R){return(0,me.isDateTime)(R)&&R.timeZoneId!=null},toStructure:function(R){var pe=Ie(R.year,R.month,R.day,R.hour,R.minute,R.second,R.nanosecond);var Ae=(0,me.int)(R.nanosecond);var he=R.timeZoneId;return new ve.structure.Structure(Je,[pe,Ae,he])},fromStructure:function(R){ve.structure.verifyStructSize("DateTimeWithZoneId",We,R.size);var he=ge(R.fields,3),ye=he[0],be=he[1],Ce=he[2];var we=(0,Ee.epochSecondAndNanoToLocalDateTime)(ye,be);var _e=new me.DateTime(we.year,we.month,we.day,we.hour,we.minute,we.second,we.nanosecond,null,Ce);return convertIntegerPropsIfNeeded(_e,pe,Ae)}})}function createDateTimeWithOffsetTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:Ue,isTypeInstance:function(R){return(0,me.isDateTime)(R)&&R.timeZoneId==null},toStructure:function(R){var pe=Ie(R.year,R.month,R.day,R.hour,R.minute,R.second,R.nanosecond);var Ae=(0,me.int)(R.nanosecond);var he=(0,me.int)(R.timeZoneOffsetSeconds);return new ve.structure.Structure(Ue,[pe,Ae,he])},fromStructure:function(R){ve.structure.verifyStructSize("DateTimeWithZoneOffset",He,R.size);var he=ge(R.fields,3),ye=he[0],be=he[1],Ce=he[2];var we=(0,Ee.epochSecondAndNanoToLocalDateTime)(ye,be);var _e=new me.DateTime(we.year,we.month,we.day,we.hour,we.minute,we.second,we.nanosecond,Ce,null);return convertIntegerPropsIfNeeded(_e,pe,Ae)}})}function convertIntegerPropsIfNeeded(R,pe,Ae){if(!pe&&!Ae){return R}var convert=function(R){return Ae?R.toBigInt():R.toNumberOrInfinity()};var he=Object.create(Object.getPrototypeOf(R));for(var ge in R){if(Object.prototype.hasOwnProperty.call(R,ge)===true){var ye=R[ge];he[ge]=(0,me.isInt)(ye)?convert(ye):ye}}Object.freeze(he);return he}pe["default"]=he(he({},Ce.default),{createPoint2DTransformer:createPoint2DTransformer,createPoint3DTransformer:createPoint3DTransformer,createDurationTransformer:createDurationTransformer,createLocalTimeTransformer:createLocalTimeTransformer,createTimeTransformer:createTimeTransformer,createDateTransformer:createDateTransformer,createLocalDateTimeTransformer:createLocalDateTimeTransformer,createDateTimeWithZoneIdTransformer:createDateTimeWithZoneIdTransformer,createDateTimeWithOffsetTransformer:createDateTimeWithOffsetTransformer})},35510:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__assign||function(){ge=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var me=Ae(32423);var ve=Ae(55065);var be=ye(Ae(18966));var Ee=ye(Ae(75522));var Ce=4;var we=8;var _e=4;function createNodeTransformer(R){var pe=be.default.createNodeTransformer(R);return pe.extendsWith({fromStructure:function(R){me.structure.verifyStructSize("Node",Ce,R.size);var pe=ge(R.fields,4),Ae=pe[0],he=pe[1],ye=pe[2],be=pe[3];return new ve.Node(Ae,he,ye,be)}})}function createRelationshipTransformer(R){var pe=be.default.createRelationshipTransformer(R);return pe.extendsWith({fromStructure:function(R){me.structure.verifyStructSize("Relationship",we,R.size);var pe=ge(R.fields,8),Ae=pe[0],he=pe[1],ye=pe[2],be=pe[3],Ee=pe[4],Ce=pe[5],_e=pe[6],Ie=pe[7];return new ve.Relationship(Ae,he,ye,be,Ee,Ce,_e,Ie)}})}function createUnboundRelationshipTransformer(R){var pe=be.default.createUnboundRelationshipTransformer(R);return pe.extendsWith({fromStructure:function(R){me.structure.verifyStructSize("UnboundRelationship",_e,R.size);var pe=ge(R.fields,4),Ae=pe[0],he=pe[1],ye=pe[2],be=pe[3];return new ve.UnboundRelationship(Ae,he,ye,be)}})}pe["default"]=he(he(he({},be.default),Ee.default),{createNodeTransformer:createNodeTransformer,createRelationshipTransformer:createRelationshipTransformer,createUnboundRelationshipTransformer:createUnboundRelationshipTransformer})},75522:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=Ae(32423);var me=Ae(55065);var ve=ge(Ae(18966));var be=Ae(35243);var Ee=Ae(85625);var Ce=me.internal.temporalUtil.localDateTimeToEpochSecond;var we=73;var _e=3;var Ie=105;var Se=3;function createDateTimeWithZoneIdTransformer(R,pe){var Ae=R.disableLosslessIntegers,ge=R.useBigInt;var be=ve.default.createDateTimeWithZoneIdTransformer(R);return be.extendsWith({signature:Ie,fromStructure:function(R){ye.structure.verifyStructSize("DateTimeWithZoneId",Se,R.size);var pe=he(R.fields,3),ve=pe[0],be=pe[1],Ee=pe[2];var Ce=getTimeInZoneId(Ee,ve,be);var we=new me.DateTime(Ce.year,Ce.month,Ce.day,Ce.hour,Ce.minute,Ce.second,(0,me.int)(be),Ce.timeZoneOffsetSeconds,Ee);return convertIntegerPropsIfNeeded(we,Ae,ge)},toStructure:function(R){var Ae=Ce(R.year,R.month,R.day,R.hour,R.minute,R.second,R.nanosecond);var he=R.timeZoneOffsetSeconds!=null?R.timeZoneOffsetSeconds:getOffsetFromZoneId(R.timeZoneId,Ae,R.nanosecond);if(R.timeZoneOffsetSeconds==null){pe.warn('DateTime objects without "timeZoneOffsetSeconds" property '+"are prune to bugs related to ambiguous times. For instance, "+"2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.")}var ge=Ae.subtract(he);var ve=(0,me.int)(R.nanosecond);var be=R.timeZoneId;return new ye.structure.Structure(Ie,[ge,ve,be])}})}function getOffsetFromZoneId(R,pe,Ae){var he=getTimeInZoneId(R,pe,Ae);var ge=Ce(he.year,he.month,he.day,he.hour,he.minute,he.second,Ae);var ye=ge.subtract(pe);var me=pe.subtract(ye);var ve=getTimeInZoneId(R,me,Ae);var be=Ce(ve.year,ve.month,ve.day,ve.hour,ve.minute,ve.second,Ae);var Ee=be.subtract(me);return Ee}var Be=new Map;function getDateTimeFormatForZoneId(R){if(!Be.has(R)){var pe=new Intl.DateTimeFormat("en-US",{timeZone:R,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:false,era:"narrow"});Be.set(R,pe)}return Be.get(R)}function getTimeInZoneId(R,pe,Ae){var he=getDateTimeFormatForZoneId(R);var ge=(0,me.int)(pe).multiply(1e3).add((0,me.int)(Ae).div(1e6)).toNumber();var ye=he.formatToParts(ge);var ve=ye.reduce((function(R,pe){if(pe.type==="era"){R.adjustEra=pe.value.toUpperCase()==="B"?function(R){return R.subtract(1).negate()}:Ee.identity}else if(pe.type==="hour"){R.hour=(0,me.int)(pe.value).modulo(24)}else if(pe.type!=="literal"){R[pe.type]=(0,me.int)(pe.value)}return R}),{});ve.year=ve.adjustEra(ve.year);var be=Ce(ve.year,ve.month,ve.day,ve.hour,ve.minute,ve.second,ve.nanosecond);ve.timeZoneOffsetSeconds=be.subtract(pe);ve.hour=ve.hour.modulo(24);return ve}function createDateTimeWithOffsetTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;var ge=ve.default.createDateTimeWithOffsetTransformer(R);return ge.extendsWith({signature:we,toStructure:function(R){var pe=Ce(R.year,R.month,R.day,R.hour,R.minute,R.second,R.nanosecond);var Ae=(0,me.int)(R.nanosecond);var he=(0,me.int)(R.timeZoneOffsetSeconds);var ge=pe.subtract(he);return new ye.structure.Structure(we,[ge,Ae,he])},fromStructure:function(R){ye.structure.verifyStructSize("DateTimeWithZoneOffset",_e,R.size);var ge=he(R.fields,3),ve=ge[0],Ee=ge[1],Ce=ge[2];var we=(0,me.int)(ve).add(Ce);var Ie=(0,be.epochSecondAndNanoToLocalDateTime)(we,Ee);var Se=new me.DateTime(Ie.year,Ie.month,Ie.day,Ie.hour,Ie.minute,Ie.second,Ie.nanosecond,Ce,null);return convertIntegerPropsIfNeeded(Se,pe,Ae)}})}function convertIntegerPropsIfNeeded(R,pe,Ae){if(!pe&&!Ae){return R}var convert=function(R){return Ae?R.toBigInt():R.toNumberOrInfinity()};var he=Object.create(Object.getPrototypeOf(R));for(var ge in R){if(Object.prototype.hasOwnProperty.call(R,ge)===true){var ye=R[ge];he[ge]=(0,me.isInt)(ye)?convert(ye):ye}}Object.freeze(he);return he}pe["default"]={createDateTimeWithZoneIdTransformer:createDateTimeWithZoneIdTransformer,createDateTimeWithOffsetTransformer:createDateTimeWithOffsetTransformer}},59727:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__assign||function(){ge=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(31131);var ge=Ae(55065);var ye=1616949271;function version(R,pe){return{major:R,minor:pe}}function createHandshakeMessage(R){if(R.length>4){throw(0,ge.newError)("It should not have more than 4 versions of the protocol")}var pe=(0,he.alloc)(5*4);pe.writeInt32(ye);R.forEach((function(R){if(R instanceof Array){var Ae=R[0],he=Ae.major,ge=Ae.minor;var ye=R[1].minor;var me=ge-ye;pe.writeInt32(me<<16|ge<<8|he)}else{var he=R.major,ge=R.minor;pe.writeInt32(ge<<8|he)}}));pe.reset();return pe}function parseNegotiatedResponse(R,pe){var Ae=[R.readUInt8(),R.readUInt8(),R.readUInt8(),R.readUInt8()];if(Ae[0]===72&&Ae[1]===84&&Ae[2]===84&&Ae[3]===80){pe.error("Handshake failed since server responded with HTTP.");throw(0,ge.newError)("Server responded HTTP. Make sure you are not trying to connect to the http endpoint "+"(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)")}return Number(Ae[3]+"."+Ae[2])}function newHandshakeBuffer(){return createHandshakeMessage([[version(5,6),version(5,0)],[version(4,4),version(4,2)],version(4,1),version(3,0)])}function handshake(R,pe){var Ae=this;return new Promise((function(he,ge){var handshakeErrorHandler=function(R){ge(R)};R.onerror=handshakeErrorHandler.bind(Ae);if(R._error){handshakeErrorHandler(R._error)}R.onmessage=function(R){try{var Ae=parseNegotiatedResponse(R,pe);he({protocolVersion:Ae,consumeRemainingBuffer:function(pe){if(R.hasRemaining()){pe(R.readSlice(R.remaining()))}}})}catch(R){ge(R)}};R.write(newHandshakeBuffer())}))}pe["default"]=handshake},86934:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.RawRoutingTable=pe.BoltProtocol=void 0;var me=ye(Ae(34529));var ve=ye(Ae(23536));var be=ye(Ae(64137));var Ee=ye(Ae(18805));ge(Ae(17526),pe);pe.BoltProtocol=be.default;pe.RawRoutingTable=Ee.default;pe["default"]={handshake:me.default,create:ve.default}},67923:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SIGNATURES=void 0;var he=Ae(55065);var ge=he.internal.constants,ye=ge.ACCESS_MODE_READ,me=ge.FETCH_ALL,ve=he.internal.util.assertString;var be=1;var Ee=14;var Ce=15;var we=16;var _e=47;var Ie=63;var Se=1;var Be=2;var ke=17;var Oe=18;var Re=19;var Qe=84;var xe=102;var Pe=106;var Te=107;var De=47;var Ne=63;var Me="r";var je=-1;var Fe=Object.freeze({INIT:be,RESET:Ce,RUN:we,PULL_ALL:Ie,HELLO:Se,GOODBYE:Be,BEGIN:ke,COMMIT:Oe,ROLLBACK:Re,TELEMETRY:Qe,ROUTE:xe,LOGON:Pe,LOGOFF:Te,DISCARD:De,PULL:Ne});pe.SIGNATURES=Fe;var Le=function(){function RequestMessage(R,pe,Ae){this.signature=R;this.fields=pe;this.toString=Ae}RequestMessage.init=function(R,pe){return new RequestMessage(be,[R,pe],(function(){return"INIT ".concat(R," {...}")}))};RequestMessage.run=function(R,pe){return new RequestMessage(we,[R,pe],(function(){return"RUN ".concat(R," ").concat(he.json.stringify(pe))}))};RequestMessage.pullAll=function(){return Ue};RequestMessage.reset=function(){return He};RequestMessage.hello=function(R,pe,Ae,he){if(Ae===void 0){Ae=null}if(he===void 0){he=null}var ge=Object.assign({user_agent:R},pe);if(Ae){ge.routing=Ae}if(he){ge.patch_bolt=he}return new RequestMessage(Se,[ge],(function(){return"HELLO {user_agent: '".concat(R,"', ...}")}))};RequestMessage.hello5x1=function(R,pe){if(pe===void 0){pe=null}var Ae={user_agent:R};if(pe){Ae.routing=pe}return new RequestMessage(Se,[Ae],(function(){return"HELLO {user_agent: '".concat(R,"', ...}")}))};RequestMessage.hello5x2=function(R,pe,Ae){if(pe===void 0){pe=null}if(Ae===void 0){Ae=null}var ge={user_agent:R};appendLegacyNotificationFilterToMetadata(ge,pe);if(Ae){ge.routing=Ae}return new RequestMessage(Se,[ge],(function(){return"HELLO ".concat(he.json.stringify(ge))}))};RequestMessage.hello5x3=function(R,pe,Ae,ge){if(Ae===void 0){Ae=null}if(ge===void 0){ge=null}var ye={};if(R){ye.user_agent=R}if(pe){ye.bolt_agent={product:pe.product,platform:pe.platform,language:pe.language,language_details:pe.languageDetails}}appendLegacyNotificationFilterToMetadata(ye,Ae);if(ge){ye.routing=ge}return new RequestMessage(Se,[ye],(function(){return"HELLO ".concat(he.json.stringify(ye))}))};RequestMessage.hello5x5=function(R,pe,Ae,ge){if(Ae===void 0){Ae=null}if(ge===void 0){ge=null}var ye={};if(R){ye.user_agent=R}if(pe){ye.bolt_agent={product:pe.product,platform:pe.platform,language:pe.language,language_details:pe.languageDetails}}appendGqlNotificationFilterToMetadata(ye,Ae);if(ge){ye.routing=ge}return new RequestMessage(Se,[ye],(function(){return"HELLO ".concat(he.json.stringify(ye))}))};RequestMessage.logon=function(R){return new RequestMessage(Pe,[R],(function(){return"LOGON { ... }"}))};RequestMessage.logoff=function(){return new RequestMessage(Te,[],(function(){return"LOGOFF"}))};RequestMessage.begin=function(R){var pe=R===void 0?{}:R,Ae=pe.bookmarks,ge=pe.txConfig,ye=pe.database,me=pe.mode,ve=pe.impersonatedUser,be=pe.notificationFilter;var Ee=buildTxMetadata(Ae,ge,ye,me,ve,be);return new RequestMessage(ke,[Ee],(function(){return"BEGIN ".concat(he.json.stringify(Ee))}))};RequestMessage.begin5x5=function(R){var pe=R===void 0?{}:R,Ae=pe.bookmarks,ge=pe.txConfig,ye=pe.database,me=pe.mode,ve=pe.impersonatedUser,be=pe.notificationFilter;var Ee=buildTxMetadata(Ae,ge,ye,me,ve,be,{appendNotificationFilter:appendGqlNotificationFilterToMetadata});return new RequestMessage(ke,[Ee],(function(){return"BEGIN ".concat(he.json.stringify(Ee))}))};RequestMessage.commit=function(){return Je};RequestMessage.rollback=function(){return We};RequestMessage.runWithMetadata=function(R,pe,Ae){var ge=Ae===void 0?{}:Ae,ye=ge.bookmarks,me=ge.txConfig,ve=ge.database,be=ge.mode,Ee=ge.impersonatedUser,Ce=ge.notificationFilter;var _e=buildTxMetadata(ye,me,ve,be,Ee,Ce);return new RequestMessage(we,[R,pe,_e],(function(){return"RUN ".concat(R," ").concat(he.json.stringify(pe)," ").concat(he.json.stringify(_e))}))};RequestMessage.runWithMetadata5x5=function(R,pe,Ae){var ge=Ae===void 0?{}:Ae,ye=ge.bookmarks,me=ge.txConfig,ve=ge.database,be=ge.mode,Ee=ge.impersonatedUser,Ce=ge.notificationFilter;var _e=buildTxMetadata(ye,me,ve,be,Ee,Ce,{appendNotificationFilter:appendGqlNotificationFilterToMetadata});return new RequestMessage(we,[R,pe,_e],(function(){return"RUN ".concat(R," ").concat(he.json.stringify(pe)," ").concat(he.json.stringify(_e))}))};RequestMessage.goodbye=function(){return Ve};RequestMessage.pull=function(R){var pe=R===void 0?{}:R,Ae=pe.stmtId,ge=Ae===void 0?je:Ae,ye=pe.n,ve=ye===void 0?me:ye;var be=buildStreamMetadata(ge===null||ge===undefined?je:ge,ve||me);return new RequestMessage(Ne,[be],(function(){return"PULL ".concat(he.json.stringify(be))}))};RequestMessage.discard=function(R){var pe=R===void 0?{}:R,Ae=pe.stmtId,ge=Ae===void 0?je:Ae,ye=pe.n,ve=ye===void 0?me:ye;var be=buildStreamMetadata(ge===null||ge===undefined?je:ge,ve||me);return new RequestMessage(De,[be],(function(){return"DISCARD ".concat(he.json.stringify(be))}))};RequestMessage.telemetry=function(R){var pe=R.api;var Ae=(0,he.int)(pe);return new RequestMessage(Qe,[Ae],(function(){return"TELEMETRY ".concat(Ae.toString())}))};RequestMessage.route=function(R,pe,Ae){if(R===void 0){R={}}if(pe===void 0){pe=[]}if(Ae===void 0){Ae=null}return new RequestMessage(xe,[R,pe,Ae],(function(){return"ROUTE ".concat(he.json.stringify(R)," ").concat(he.json.stringify(pe)," ").concat(Ae)}))};RequestMessage.routeV4x4=function(R,pe,Ae){if(R===void 0){R={}}if(pe===void 0){pe=[]}if(Ae===void 0){Ae={}}var ge={};if(Ae.databaseName){ge.db=Ae.databaseName}if(Ae.impersonatedUser){ge.imp_user=Ae.impersonatedUser}return new RequestMessage(xe,[R,pe,ge],(function(){return"ROUTE ".concat(he.json.stringify(R)," ").concat(he.json.stringify(pe)," ").concat(he.json.stringify(ge))}))};return RequestMessage}();pe["default"]=Le;function buildTxMetadata(R,pe,Ae,he,ge,me,be){var Ee;if(be===void 0){be={}}var Ce={};if(!R.isEmpty()){Ce.bookmarks=R.values()}if(pe.timeout!==null){Ce.tx_timeout=pe.timeout}if(pe.metadata){Ce.tx_metadata=pe.metadata}if(Ae){Ce.db=ve(Ae,"database")}if(ge){Ce.imp_user=ve(ge,"impersonatedUser")}if(he===ye){Ce.mode=Me}var we=(Ee=be.appendNotificationFilter)!==null&&Ee!==void 0?Ee:appendLegacyNotificationFilterToMetadata;we(Ce,me);return Ce}function buildStreamMetadata(R,pe){var Ae={n:(0,he.int)(pe)};if(R!==je){Ae.qid=(0,he.int)(R)}return Ae}function appendLegacyNotificationFilterToMetadata(R,pe){if(pe){if(pe.minimumSeverityLevel){R.notifications_minimum_severity=pe.minimumSeverityLevel}if(pe.disabledCategories){R.notifications_disabled_categories=pe.disabledCategories}if(pe.disabledClassifications){R.notifications_disabled_categories=pe.disabledClassifications}}}function appendGqlNotificationFilterToMetadata(R,pe){if(pe){if(pe.minimumSeverityLevel){R.notifications_minimum_severity=pe.minimumSeverityLevel}if(pe.disabledCategories){R.notifications_disabled_classifications=pe.disabledCategories}if(pe.disabledClassifications){R.notifications_disabled_classifications=pe.disabledClassifications}}}var Ue=new Le(Ie,[],(function(){return"PULL_ALL"}));var He=new Le(Ce,[],(function(){return"RESET"}));var Je=new Le(Oe,[],(function(){return"COMMIT"}));var We=new Le(Re,[],(function(){return"ROLLBACK"}));var Ve=new Le(Be,[],(function(){return"GOODBYE"}))},61221:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(55065);var ge=112;var ye=113;var me=126;var ve=127;function NO_OP(){}function NO_OP_IDENTITY(R){return R}var be={onNext:NO_OP,onCompleted:NO_OP,onError:NO_OP};var Ee=function(){function ResponseHandler(R){var pe=R===void 0?{}:R,Ae=pe.transformMetadata,he=pe.log,ge=pe.observer;this._pendingObservers=[];this._log=he;this._transformMetadata=Ae||NO_OP_IDENTITY;this._observer=Object.assign({onObserversCountChange:NO_OP,onError:NO_OP,onFailure:NO_OP,onErrorApplyTransformation:NO_OP_IDENTITY},ge)}Object.defineProperty(ResponseHandler.prototype,"currentFailure",{get:function(){return this._currentFailure},enumerable:false,configurable:true});ResponseHandler.prototype.handleResponse=function(R){var pe=R.fields[0];switch(R.signature){case ye:if(this._log.isDebugEnabled()){this._log.debug("S: RECORD ".concat(he.json.stringify(R)))}this._currentObserver.onNext(pe);break;case ge:if(this._log.isDebugEnabled()){this._log.debug("S: SUCCESS ".concat(he.json.stringify(R)))}try{var Ae=this._transformMetadata(pe);this._currentObserver.onCompleted(Ae)}finally{this._updateCurrentObserver()}break;case ve:if(this._log.isDebugEnabled()){this._log.debug("S: FAILURE ".concat(he.json.stringify(R)))}try{var be=_standardizeCode(pe.code);var Ee=(0,he.newError)(pe.message,be);this._currentFailure=this._observer.onErrorApplyTransformation(Ee);this._currentObserver.onError(this._currentFailure)}finally{this._updateCurrentObserver();this._observer.onFailure(this._currentFailure)}break;case me:if(this._log.isDebugEnabled()){this._log.debug("S: IGNORED ".concat(he.json.stringify(R)))}try{if(this._currentFailure&&this._currentObserver.onError){this._currentObserver.onError(this._currentFailure)}else if(this._currentObserver.onError){this._currentObserver.onError((0,he.newError)("Ignored either because of an error or RESET"))}}finally{this._updateCurrentObserver()}break;default:this._observer.onError((0,he.newError)("Unknown Bolt protocol message: "+R))}};ResponseHandler.prototype._updateCurrentObserver=function(){this._currentObserver=this._pendingObservers.shift();this._observer.onObserversCountChange(this._observersCount)};Object.defineProperty(ResponseHandler.prototype,"_observersCount",{get:function(){return this._currentObserver==null?this._pendingObservers.length:this._pendingObservers.length+1},enumerable:false,configurable:true});ResponseHandler.prototype._queueObserver=function(R){R=R||be;R.onCompleted=R.onCompleted||NO_OP;R.onError=R.onError||NO_OP;R.onNext=R.onNext||NO_OP;if(this._currentObserver===undefined){this._currentObserver=R}else{this._pendingObservers.push(R)}this._observer.onObserversCountChange(this._observersCount);return true};ResponseHandler.prototype._notifyErrorToObservers=function(R){if(this._currentObserver&&this._currentObserver.onError){this._currentObserver.onError(R)}while(this._pendingObservers.length>0){var pe=this._pendingObservers.shift();if(pe&&pe.onError){pe.onError(R)}}};ResponseHandler.prototype.hasOngoingObservableRequests=function(){return this._currentObserver!=null||this._pendingObservers.length>0};ResponseHandler.prototype._resetFailure=function(){this._currentFailure=null};return ResponseHandler}();pe["default"]=Ee;function _standardizeCode(R){if(R==="Neo.TransientError.Transaction.Terminated"){return"Neo.ClientError.Transaction.Terminated"}else if(R==="Neo.TransientError.Transaction.LockClientStopped"){return"Neo.ClientError.Transaction.LockClientStopped"}return R}},18805:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=ge(Ae(55065));var me=function(){function RawRoutingTable(){}RawRoutingTable.ofRecord=function(R){if(R===null){return RawRoutingTable.ofNull()}return new Ee(R)};RawRoutingTable.ofMessageResponse=function(R){if(R===null){return RawRoutingTable.ofNull()}return new ve(R)};RawRoutingTable.ofNull=function(){return new be};Object.defineProperty(RawRoutingTable.prototype,"ttl",{get:function(){throw new Error("Not implemented")},enumerable:false,configurable:true});Object.defineProperty(RawRoutingTable.prototype,"db",{get:function(){throw new Error("Not implemented")},enumerable:false,configurable:true});Object.defineProperty(RawRoutingTable.prototype,"servers",{get:function(){throw new Error("Not implemented")},enumerable:false,configurable:true});Object.defineProperty(RawRoutingTable.prototype,"isNull",{get:function(){throw new Error("Not implemented")},enumerable:false,configurable:true});return RawRoutingTable}();pe["default"]=me;var ve=function(R){he(ResponseRawRoutingTable,R);function ResponseRawRoutingTable(pe){var Ae=R.call(this)||this;Ae._response=pe;return Ae}Object.defineProperty(ResponseRawRoutingTable.prototype,"ttl",{get:function(){return this._response.rt.ttl},enumerable:false,configurable:true});Object.defineProperty(ResponseRawRoutingTable.prototype,"servers",{get:function(){return this._response.rt.servers},enumerable:false,configurable:true});Object.defineProperty(ResponseRawRoutingTable.prototype,"db",{get:function(){return this._response.rt.db},enumerable:false,configurable:true});Object.defineProperty(ResponseRawRoutingTable.prototype,"isNull",{get:function(){return this._response===null},enumerable:false,configurable:true});return ResponseRawRoutingTable}(me);var be=function(R){he(NullRawRoutingTable,R);function NullRawRoutingTable(){return R!==null&&R.apply(this,arguments)||this}Object.defineProperty(NullRawRoutingTable.prototype,"isNull",{get:function(){return true},enumerable:false,configurable:true});return NullRawRoutingTable}(me);var Ee=function(R){he(RecordRawRoutingTable,R);function RecordRawRoutingTable(pe){var Ae=R.call(this)||this;Ae._record=pe;return Ae}Object.defineProperty(RecordRawRoutingTable.prototype,"ttl",{get:function(){return this._record.get("ttl")},enumerable:false,configurable:true});Object.defineProperty(RecordRawRoutingTable.prototype,"servers",{get:function(){return this._record.get("servers")},enumerable:false,configurable:true});Object.defineProperty(RecordRawRoutingTable.prototype,"db",{get:function(){return this._record.has("db")?this._record.get("db"):null},enumerable:false,configurable:true});Object.defineProperty(RecordRawRoutingTable.prototype,"isNull",{get:function(){return this._record===null},enumerable:false,configurable:true});return RecordRawRoutingTable}(me)},17526:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.TelemetryObserver=pe.ProcedureRouteObserver=pe.RouteObserver=pe.CompletedObserver=pe.FailedObserver=pe.ResetObserver=pe.LogoffObserver=pe.LoginObserver=pe.ResultStreamObserver=pe.StreamObserver=void 0;var ye=Ae(55065);var me=ge(Ae(18805));var ve=Ae(1059);var be=ye.internal.constants.FETCH_ALL;var Ee=ye.error.PROTOCOL_ERROR;var Ce=function(){function StreamObserver(){}StreamObserver.prototype.onNext=function(R){};StreamObserver.prototype.onError=function(R){};StreamObserver.prototype.onCompleted=function(R){};return StreamObserver}();pe.StreamObserver=Ce;var we=function(R){he(ResultStreamObserver,R);function ResultStreamObserver(pe){var Ae=pe===void 0?{}:pe,he=Ae.reactive,ge=he===void 0?false:he,ye=Ae.moreFunction,me=Ae.discardFunction,Ee=Ae.fetchSize,Ce=Ee===void 0?be:Ee,we=Ae.beforeError,_e=Ae.afterError,Ie=Ae.beforeKeys,Se=Ae.afterKeys,Be=Ae.beforeComplete,ke=Ae.afterComplete,Oe=Ae.server,Re=Ae.highRecordWatermark,Qe=Re===void 0?Number.MAX_VALUE:Re,Pe=Ae.lowRecordWatermark,Te=Pe===void 0?Number.MAX_VALUE:Pe,De=Ae.enrichMetadata;var Ne=R.call(this)||this;Ne._fieldKeys=null;Ne._fieldLookup=null;Ne._head=null;Ne._queuedRecords=[];Ne._tail=null;Ne._error=null;Ne._observers=[];Ne._meta={};Ne._server=Oe;Ne._beforeError=we;Ne._afterError=_e;Ne._beforeKeys=Ie;Ne._afterKeys=Se;Ne._beforeComplete=Be;Ne._afterComplete=ke;Ne._enrichMetadata=De||ve.functional.identity;Ne._queryId=null;Ne._moreFunction=ye;Ne._discardFunction=me;Ne._discard=false;Ne._fetchSize=Ce;Ne._lowRecordWatermark=Te;Ne._highRecordWatermark=Qe;Ne._setState(ge?xe.READY:xe.READY_STREAMING);Ne._setupAutoPull();Ne._paused=false;Ne._pulled=!ge;Ne._haveRecordStreamed=false;return Ne}ResultStreamObserver.prototype.pause=function(){this._paused=true};ResultStreamObserver.prototype.resume=function(){this._paused=false;this._setupAutoPull(true);this._state.pull(this)};ResultStreamObserver.prototype.onNext=function(R){this._haveRecordStreamed=true;var pe=new ye.Record(this._fieldKeys,R,this._fieldLookup);if(this._observers.some((function(R){return R.onNext}))){this._observers.forEach((function(R){if(R.onNext){R.onNext(pe)}}))}else{this._queuedRecords.push(pe);if(this._queuedRecords.length>this._highRecordWatermark){this._autoPull=false}}};ResultStreamObserver.prototype.onCompleted=function(R){this._state.onSuccess(this,R)};ResultStreamObserver.prototype.onError=function(R){this._state.onError(this,R)};ResultStreamObserver.prototype.cancel=function(){this._discard=true};ResultStreamObserver.prototype.prepareToHandleSingleResponse=function(){this._head=[];this._fieldKeys=[];this._setState(xe.STREAMING)};ResultStreamObserver.prototype.markCompleted=function(){this._head=[];this._fieldKeys=[];this._tail={};this._setState(xe.SUCCEEDED)};ResultStreamObserver.prototype.subscribe=function(R){if(this._head&&R.onKeys){R.onKeys(this._head)}if(this._queuedRecords.length>0&&R.onNext){for(var pe=0;pe0}},R));if(![undefined,null,"r","w","rw","s"].includes(Ae.type)){this.onError((0,ye.newError)('Server returned invalid query type. Expected one of [undefined, null, "r", "w", "rw", "s"] but got \''.concat(Ae.type,"'"),Ee));return}this._setState(xe.SUCCEEDED);var he=null;if(this._beforeComplete){he=this._beforeComplete(Ae)}var continuation=function(){pe._tail=Ae;if(pe._observers.some((function(R){return R.onCompleted}))){pe._observers.forEach((function(R){if(R.onCompleted){R.onCompleted(Ae)}}))}if(pe._afterComplete){pe._afterComplete(Ae)}};if(he){Promise.resolve(he).then((function(){return continuation()}))}else{continuation()}};ResultStreamObserver.prototype._handleRunSuccess=function(R,pe){var Ae=this;if(this._fieldKeys===null){this._fieldKeys=[];this._fieldLookup={};if(R.fields&&R.fields.length>0){this._fieldKeys=R.fields;for(var he=0;he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.epochSecondAndNanoToLocalDateTime=pe.nanoOfDayToLocalTime=pe.epochDayToDate=void 0;var he=Ae(55065);var ge=he.internal.temporalUtil,ye=ge.DAYS_0000_TO_1970,me=ge.DAYS_PER_400_YEAR_CYCLE,ve=ge.NANOS_PER_HOUR,be=ge.NANOS_PER_MINUTE,Ee=ge.NANOS_PER_SECOND,Ce=ge.SECONDS_PER_DAY,we=ge.floorDiv,_e=ge.floorMod;function epochDayToDate(R){R=(0,he.int)(R);var pe=R.add(ye).subtract(60);var Ae=(0,he.int)(0);if(pe.lessThan(0)){var ge=pe.add(1).div(me).subtract(1);Ae=ge.multiply(400);pe=pe.add(ge.multiply(-me))}var ve=pe.multiply(400).add(591).div(me);var be=pe.subtract(ve.multiply(365).add(ve.div(4)).subtract(ve.div(100)).add(ve.div(400)));if(be.lessThan(0)){ve=ve.subtract(1);be=pe.subtract(ve.multiply(365).add(ve.div(4)).subtract(ve.div(100)).add(ve.div(400)))}ve=ve.add(Ae);var Ee=be;var Ce=Ee.multiply(5).add(2).div(153);var we=Ce.add(2).modulo(12).add(1);var _e=Ee.subtract(Ce.multiply(306).add(5).div(10)).add(1);ve=ve.add(Ce.div(10));return new he.Date(ve,we,_e)}pe.epochDayToDate=epochDayToDate;function nanoOfDayToLocalTime(R){R=(0,he.int)(R);var pe=R.div(ve);R=R.subtract(pe.multiply(ve));var Ae=R.div(be);R=R.subtract(Ae.multiply(be));var ge=R.div(Ee);var ye=R.subtract(ge.multiply(Ee));return new he.LocalTime(pe,Ae,ge,ye)}pe.nanoOfDayToLocalTime=nanoOfDayToLocalTime;function epochSecondAndNanoToLocalDateTime(R,pe){var Ae=we(R,Ce);var ge=_e(R,Ce);var ye=ge.multiply(Ee).add(pe);var me=epochDayToDate(Ae);var ve=nanoOfDayToLocalTime(ye);return new he.LocalDateTime(me.year,me.month,me.day,ve.hour,ve.minute,ve.second,ve.nanosecond)}pe.epochSecondAndNanoToLocalDateTime=epochSecondAndNanoToLocalDateTime},28859:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TypeTransformer=void 0;var he=Ae(32423);var ge=Ae(55065);var ye=ge.internal.objectUtil;var me=function(){function Transformer(R){this._transformers=R;this._transformersPerSignature=new Map(R.map((function(R){return[R.signature,R]})));this.fromStructure=this.fromStructure.bind(this);this.toStructure=this.toStructure.bind(this);Object.freeze(this)}Transformer.prototype.fromStructure=function(R){try{if(R instanceof he.structure.Structure&&this._transformersPerSignature.has(R.signature)){var pe=this._transformersPerSignature.get(R.signature).fromStructure;return pe(R)}return R}catch(R){return ye.createBrokenObject(R)}};Transformer.prototype.toStructure=function(R){var pe=this._transformers.find((function(pe){var Ae=pe.isTypeInstance;return Ae(R)}));if(pe!==undefined){return pe.toStructure(R)}return R};return Transformer}();pe["default"]=me;var ve=function(){function TypeTransformer(R){var pe=R.signature,Ae=R.fromStructure,he=R.toStructure,ge=R.isTypeInstance;this.signature=pe;this.isTypeInstance=ge;this.fromStructure=Ae;this.toStructure=he;Object.freeze(this)}TypeTransformer.prototype.extendsWith=function(R){var pe=R.signature,Ae=R.fromStructure,he=R.toStructure,ge=R.isTypeInstance;return new TypeTransformer({signature:pe||this.signature,fromStructure:Ae||this.fromStructure,toStructure:he||this.toStructure,isTypeInstance:ge||this.isTypeInstance})};return TypeTransformer}();pe.TypeTransformer=ve},15730:function(R,pe){"use strict";var Ae=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});var he=function(){function BaseBuffer(R){this.position=0;this.length=R}BaseBuffer.prototype.getUInt8=function(R){throw new Error("Not implemented")};BaseBuffer.prototype.getInt8=function(R){throw new Error("Not implemented")};BaseBuffer.prototype.getFloat64=function(R){throw new Error("Not implemented")};BaseBuffer.prototype.putUInt8=function(R,pe){throw new Error("Not implemented")};BaseBuffer.prototype.putInt8=function(R,pe){throw new Error("Not implemented")};BaseBuffer.prototype.putFloat64=function(R,pe){throw new Error("Not implemented")};BaseBuffer.prototype.getInt16=function(R){return this.getInt8(R)<<8|this.getUInt8(R+1)};BaseBuffer.prototype.getUInt16=function(R){return this.getUInt8(R)<<8|this.getUInt8(R+1)};BaseBuffer.prototype.getInt32=function(R){return this.getInt8(R)<<24|this.getUInt8(R+1)<<16|this.getUInt8(R+2)<<8|this.getUInt8(R+3)};BaseBuffer.prototype.getUInt32=function(R){return this.getUInt8(R)<<24|this.getUInt8(R+1)<<16|this.getUInt8(R+2)<<8|this.getUInt8(R+3)};BaseBuffer.prototype.getInt64=function(R){return this.getInt8(R)<<56|this.getUInt8(R+1)<<48|this.getUInt8(R+2)<<40|this.getUInt8(R+3)<<32|this.getUInt8(R+4)<<24|this.getUInt8(R+5)<<16|this.getUInt8(R+6)<<8|this.getUInt8(R+7)};BaseBuffer.prototype.getSlice=function(R,pe){return new ge(R,pe,this)};BaseBuffer.prototype.putInt16=function(R,pe){this.putInt8(R,pe>>8);this.putUInt8(R+1,pe&255)};BaseBuffer.prototype.putUInt16=function(R,pe){this.putUInt8(R,pe>>8&255);this.putUInt8(R+1,pe&255)};BaseBuffer.prototype.putInt32=function(R,pe){this.putInt8(R,pe>>24);this.putUInt8(R+1,pe>>16&255);this.putUInt8(R+2,pe>>8&255);this.putUInt8(R+3,pe&255)};BaseBuffer.prototype.putUInt32=function(R,pe){this.putUInt8(R,pe>>24&255);this.putUInt8(R+1,pe>>16&255);this.putUInt8(R+2,pe>>8&255);this.putUInt8(R+3,pe&255)};BaseBuffer.prototype.putInt64=function(R,pe){this.putInt8(R,pe>>48);this.putUInt8(R+1,pe>>42&255);this.putUInt8(R+2,pe>>36&255);this.putUInt8(R+3,pe>>30&255);this.putUInt8(R+4,pe>>24&255);this.putUInt8(R+5,pe>>16&255);this.putUInt8(R+6,pe>>8&255);this.putUInt8(R+7,pe&255)};BaseBuffer.prototype.putBytes=function(R,pe){for(var Ae=0,he=pe.remaining();Ae0};BaseBuffer.prototype.reset=function(){this.position=0};BaseBuffer.prototype.toString=function(){return this.constructor.name+"( position="+this.position+" )\n "+this.toHex()};BaseBuffer.prototype.toHex=function(){var R="";for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(55065);var ge=he.internal.util,ye=ge.ENCRYPTION_OFF,me=ge.ENCRYPTION_ON;var ve=he.error.SERVICE_UNAVAILABLE;var be=[null,undefined,true,false,me,ye];var Ee=[null,undefined,"TRUST_ALL_CERTIFICATES","TRUST_CUSTOM_CA_SIGNED_CERTIFICATES","TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"];var Ce=function(){function ChannelConfig(R,pe,Ae,he){this.address=R;this.encrypted=extractEncrypted(pe);this.trust=extractTrust(pe);this.trustedCertificates=extractTrustedCertificates(pe);this.knownHostsPath=extractKnownHostsPath(pe);this.connectionErrorCode=Ae||ve;this.connectionTimeout=pe.connectionTimeout;this.clientCertificate=he}return ChannelConfig}();pe["default"]=Ce;function extractEncrypted(R){var pe=R.encrypted;if(be.indexOf(pe)===-1){throw(0,he.newError)("Illegal value of the encrypted setting ".concat(pe,". Expected one of ").concat(be))}return pe}function extractTrust(R){var pe=R.trust;if(Ee.indexOf(pe)===-1){throw(0,he.newError)("Illegal value of the trust setting ".concat(pe,". Expected one of ").concat(Ee))}return pe}function extractTrustedCertificates(R){return R.trustedCertificates||[]}function extractKnownHostsPath(R){return R.knownHosts||null}},12613:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.Dechunker=pe.Chunker=void 0;var ye=ge(Ae(15730));var me=Ae(27164);var ve=ge(Ae(33190));var be=2;var Ee=0;var Ce=1400;var we=function(R){he(Chunker,R);function Chunker(pe,Ae){var he=R.call(this,0)||this;he._bufferSize=Ae||Ce;he._ch=pe;he._buffer=(0,me.alloc)(he._bufferSize);he._currentChunkStart=0;he._chunkOpen=false;return he}Chunker.prototype.putUInt8=function(R,pe){this._ensure(1);this._buffer.writeUInt8(pe)};Chunker.prototype.putInt8=function(R,pe){this._ensure(1);this._buffer.writeInt8(pe)};Chunker.prototype.putFloat64=function(R,pe){this._ensure(8);this._buffer.writeFloat64(pe)};Chunker.prototype.putBytes=function(R,pe){while(pe.remaining()>0){this._ensure(1);if(this._buffer.remaining()>pe.remaining()){this._buffer.writeBytes(pe)}else{this._buffer.writeBytes(pe.readSlice(this._buffer.remaining()))}}return this};Chunker.prototype.flush=function(){if(this._buffer.position>0){this._closeChunkIfOpen();var R=this._buffer;this._buffer=null;this._ch.write(R.getSlice(0,R.position));this._buffer=(0,me.alloc)(this._bufferSize);this._chunkOpen=false}return this};Chunker.prototype.messageBoundary=function(){this._closeChunkIfOpen();if(this._buffer.remaining()=2){return this._onHeader(R.readUInt16())}else{this._partialChunkHeader=R.readUInt8()<<8;return this.IN_HEADER}};Dechunker.prototype.IN_HEADER=function(R){return this._onHeader((this._partialChunkHeader|R.readUInt8())&65535)};Dechunker.prototype.IN_CHUNK=function(R){if(this._chunkSize<=R.remaining()){this._currentMessage.push(R.readSlice(this._chunkSize));return this.AWAITING_CHUNK}else{this._chunkSize-=R.remaining();this._currentMessage.push(R.readSlice(R.remaining()));return this.IN_CHUNK}};Dechunker.prototype.CLOSED=function(R){};Dechunker.prototype._onHeader=function(R){if(R===0){var pe=void 0;switch(this._currentMessage.length){case 0:return this.AWAITING_CHUNK;case 1:pe=this._currentMessage[0];break;default:pe=new ve.default(this._currentMessage);break}this._currentMessage=[];this.onmessage(pe);return this.AWAITING_CHUNK}else{this._chunkSize=R;return this.IN_CHUNK}};Dechunker.prototype.write=function(R){while(R.hasRemaining()){this._state=this._state(R)}};return Dechunker}();pe.Dechunker=_e},33190:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});var ge=Ae(35509);var ye=Ae(27164);var me=function(R){he(CombinedBuffer,R);function CombinedBuffer(pe){var Ae=this;var he=0;for(var ge=0;ge=Ae.length){R-=Ae.length}else{return Ae.getUInt8(R)}}};CombinedBuffer.prototype.getInt8=function(R){for(var pe=0;pe=Ae.length){R-=Ae.length}else{return Ae.getInt8(R)}}};CombinedBuffer.prototype.getFloat64=function(R){var pe=(0,ye.alloc)(8);for(var Ae=0;Ae<8;Ae++){pe.putUInt8(Ae,this.getUInt8(R+Ae))}return pe.getFloat64(0)};return CombinedBuffer}(ge.BaseBuffer);pe["default"]=me},31131:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.utf8=pe.alloc=pe.ChannelConfig=void 0;ge(Ae(51567),pe);ge(Ae(12613),pe);var me=Ae(83810);Object.defineProperty(pe,"ChannelConfig",{enumerable:true,get:function(){return ye(me).default}});var ve=Ae(27164);Object.defineProperty(pe,"alloc",{enumerable:true,get:function(){return ve.alloc}});var be=Ae(52864);Object.defineProperty(pe,"utf8",{enumerable:true,get:function(){return ye(be).default}})},51567:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.ClientCertificatesLoader=pe.HostNameResolver=pe.Channel=void 0;var ge=he(Ae(26767));var ye=he(Ae(30494));var me=he(Ae(6312));pe.Channel=ge.default;pe.HostNameResolver=ye.default;pe.ClientCertificatesLoader=me.default},26767:function(R,pe,Ae){"use strict";var he=this&&this.__assign||function(){he=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ve=me(Ae(57147));function readFile(R){return new Promise((function(pe,Ae){return ve.default.readFile(R,(function(R,he){if(R){return Ae(R)}return pe(he)}))}))}function loadCert(R){if(Array.isArray(R)){return Promise.all(R.map(loadCert))}return readFile(R)}function loadKey(R){if(Array.isArray(R)){return Promise.all(R.map(loadKey))}if(typeof R==="string"){return readFile(R)}return readFile(R.path).then((function(pe){return{pem:pe,passphrase:R.password}}))}pe["default"]={load:function(R){return he(this,void 0,void 0,(function(){var pe,Ae,he,me,ve;return ge(this,(function(ge){switch(ge.label){case 0:pe=loadCert(R.certfile);Ae=loadKey(R.keyfile);return[4,Promise.all([pe,Ae])];case 1:he=ye.apply(void 0,[ge.sent(),2]),me=he[0],ve=he[1];return[2,{cert:me,key:ve,passphrase:R.password}]}}))}))}}},30494:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=ge(Ae(9523));var me=Ae(55065);var ve=me.internal.resolver.BaseHostNameResolver;var be=function(R){he(NodeHostNameResolver,R);function NodeHostNameResolver(){return R!==null&&R.apply(this,arguments)||this}NodeHostNameResolver.prototype.resolve=function(R){return new Promise((function(pe){ye.default.lookup(R.host(),{all:true},(function(Ae,he){if(Ae){pe([R])}else{var ge=he.map((function(pe){return R.resolveWith(pe.address)}));pe(ge)}}))}))};return NodeHostNameResolver}(ve);pe["default"]=be},52864:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ge=he(Ae(27164));var ye=Ae(55065);var me=he(Ae(14300));var ve=Ae(71576);var be=new ve.StringDecoder("utf8");function encode(R){return new ge.default(newBuffer(R))}function decode(R,pe){if(Object.prototype.hasOwnProperty.call(R,"_buffer")){return decodeChannelBuffer(R,pe)}else if(Object.prototype.hasOwnProperty.call(R,"_buffers")){return decodeCombinedBuffer(R,pe)}else{throw(0,ye.newError)("Don't know how to decode strings from '".concat(R,"'"))}}function decodeChannelBuffer(R,pe){var Ae=R.position;var he=Ae+pe;R.position=Math.min(he,R.length);return R._buffer.toString("utf8",Ae,he)}function decodeCombinedBuffer(R,pe){return streamDecodeCombinedBuffer(R,pe,(function(R){return be.write(R._buffer)}),(function(){return be.end()}))}function streamDecodeCombinedBuffer(R,pe,Ae,he){var ge=pe;var ye=R.position;R._updatePos(Math.min(pe,R.length-ye));var me=R._buffers.reduce((function(R,pe){if(ge<=0){return R}else if(ye>=pe.length){ye-=pe.length;return""}else{pe._updatePos(ye-pe.position);var he=Math.min(pe.length-ye,ge);var me=pe.readSlice(he);pe._updatePos(he);ge=Math.max(ge-me.length,0);ye=0;return R+Ae(me)}}),"");return me+he()}function newBuffer(R){if(typeof me.default.Buffer.from==="function"){return me.default.Buffer.from(R,"utf8")}else{return new me.default.Buffer(R,"utf8")}}pe["default"]={encode:encode,decode:decode}},40050:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=_e}))];case 1:return[2,R.sent()]}}))}))};DirectConnectionProvider.prototype.getNegotiatedProtocolVersion=function(){var R=this;return new Promise((function(pe,Ae){R._hasProtocolVersion(pe).catch(Ae)}))};DirectConnectionProvider.prototype.supportsTransactionConfig=function(){return ge(this,void 0,void 0,(function(){return ye(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=we}))];case 1:return[2,R.sent()]}}))}))};DirectConnectionProvider.prototype.supportsUserImpersonation=function(){return ge(this,void 0,void 0,(function(){return ye(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=Ie}))];case 1:return[2,R.sent()]}}))}))};DirectConnectionProvider.prototype.supportsSessionAuth=function(){return ge(this,void 0,void 0,(function(){return ye(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=Se}))];case 1:return[2,R.sent()]}}))}))};DirectConnectionProvider.prototype.verifyAuthentication=function(R){var pe=R.auth;return ge(this,void 0,void 0,(function(){var R=this;return ye(this,(function(Ae){return[2,this._verifyAuthentication({auth:pe,getAddress:function(){return R._address}})]}))}))};DirectConnectionProvider.prototype.verifyConnectivityAndGetServerInfo=function(){return ge(this,void 0,void 0,(function(){return ye(this,(function(R){switch(R.label){case 0:return[4,this._verifyConnectivityAndGetServerVersion({address:this._address})];case 1:return[2,R.sent()]}}))}))};return DirectConnectionProvider}(ve.default);pe["default"]=ke},65390:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ye=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var me=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))ge(pe,R,Ae);ye(pe,R);return pe};var ve=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var be=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var Ce=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;hepe){return false}return true};PooledConnectionProvider.prototype._destroyConnection=function(R){delete this._openConnections[R.id];return R.close()};PooledConnectionProvider.prototype._verifyConnectivityAndGetServerVersion=function(R){var pe=R.address;return ve(this,void 0,void 0,(function(){var R,Ae;return be(this,(function(he){switch(he.label){case 0:return[4,this._connectionPool.acquire({},pe)];case 1:R=he.sent();Ae=new Se.ServerInfo(R.server,R.protocol().version);he.label=2;case 2:he.trys.push([2,,5,7]);if(!!R.protocol().isLastMessageLogon())return[3,4];return[4,R.resetAndFlush()];case 3:he.sent();he.label=4;case 4:return[3,7];case 5:return[4,R.release()];case 6:he.sent();return[7];case 7:return[2,Ae]}}))}))};PooledConnectionProvider.prototype._verifyAuthentication=function(R){var pe=R.getAddress,Ae=R.auth;return ve(this,void 0,void 0,(function(){var R,he,ge,ye,me,ve;return be(this,(function(be){switch(be.label){case 0:R=[];be.label=1;case 1:be.trys.push([1,8,9,11]);return[4,pe()];case 2:he=be.sent();return[4,this._connectionPool.acquire({auth:Ae,skipReAuth:true},he)];case 3:ge=be.sent();R.push(ge);ye=!ge.protocol().isLastMessageLogon();if(!ge.supportsReAuth){throw(0,Se.newError)("Driver is connected to a database that does not support user switch.")}if(!(ye&&ge.supportsReAuth))return[3,5];return[4,this._authenticationProvider.authenticate({connection:ge,auth:Ae,waitReAuth:true,forceReAuth:true})];case 4:be.sent();return[3,7];case 5:if(!(ye&&!ge.supportsReAuth))return[3,7];return[4,this._connectionPool.acquire({auth:Ae},he,{requireNew:true})];case 6:me=be.sent();me._sticky=true;R.push(me);be.label=7;case 7:return[2,true];case 8:ve=be.sent();if(xe.includes(ve.code)){return[2,false]}throw ve;case 9:return[4,Promise.all(R.map((function(R){return R.release()})))];case 10:be.sent();return[7];case 11:return[2]}}))}))};PooledConnectionProvider.prototype._verifyStickyConnection=function(R){var pe=R.auth,Ae=R.connection,he=R.address;return ve(this,void 0,void 0,(function(){var R,he;return be(this,(function(ge){switch(ge.label){case 0:R=ke.object.equals(pe,Ae.authToken);he=!R;Ae._sticky=R&&!Ae.supportsReAuth;if(!(he||Ae._sticky))return[3,2];return[4,Ae.release()];case 1:ge.sent();throw(0,Se.newError)("Driver is connected to a database that does not support user switch.");case 2:return[2]}}))}))};PooledConnectionProvider.prototype.close=function(){return ve(this,void 0,void 0,(function(){return be(this,(function(R){switch(R.label){case 0:return[4,this._connectionPool.close()];case 1:R.sent();return[4,Promise.all(Object.values(this._openConnections).map((function(R){return R.close()})))];case 2:R.sent();return[2]}}))}))};PooledConnectionProvider._installIdleObserverOnConnection=function(R,pe){R._setIdle(pe)};PooledConnectionProvider._removeIdleObserverOnConnection=function(R){R._unsetIdle()};PooledConnectionProvider.prototype._handleSecurityError=function(R,pe,Ae){var he=this._authenticationProvider.handleError({connection:Ae,code:R.code});if(he){R.retriable=true}if(R.code==="Neo.ClientError.Security.AuthorizationExpired"){this._connectionPool.apply(pe,(function(R){R.authToken=null}))}if(Ae){Ae.close().catch((function(){return undefined}))}return R};return PooledConnectionProvider}(Se.ConnectionProvider);pe["default"]=Pe},2970:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__assign||function(){ge=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};var we=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var _e=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var Ie=Ae(55065);var Se=ve(Ae(47845));var Be=Ae(31131);var ke=_e(Ae(59761));var Oe=_e(Ae(65390));var Re=Ae(30247);var Qe=Ae(55994);var xe=Ae(1059);var Pe=Ie.error.SERVICE_UNAVAILABLE,Te=Ie.error.SESSION_EXPIRED;var De=Ie.internal.bookmarks.Bookmarks,Ne=Ie.internal.constants,Me=Ne.ACCESS_MODE_READ,je=Ne.ACCESS_MODE_WRITE,Fe=Ne.BOLT_PROTOCOL_V3,Le=Ne.BOLT_PROTOCOL_V4_0,Ue=Ne.BOLT_PROTOCOL_V4_4,He=Ne.BOLT_PROTOCOL_V5_1;var Je="Neo.ClientError.Procedure.ProcedureNotFound";var We="Neo.ClientError.Database.DatabaseNotFound";var Ve="Neo.ClientError.Transaction.InvalidBookmark";var Ke="Neo.ClientError.Transaction.InvalidBookmarkMixture";var Ge="Neo.ClientError.Security.AuthorizationExpired";var Ye="Neo.ClientError.Statement.ArgumentError";var qe="Neo.ClientError.Request.Invalid";var $e="Neo.ClientError.Statement.TypeError";var ze="N/A";var Xe="system";var Ze=null;var et=(0,Ie.int)(3e4);var tt=function(R){he(RoutingConnectionProvider,R);function RoutingConnectionProvider(pe){var Ae=pe.id,he=pe.address,ye=pe.routingContext,me=pe.hostNameResolver,ve=pe.config,Ce=pe.log,we=pe.userAgent,_e=pe.boltAgent,ke=pe.authTokenManager,Oe=pe.routingTablePurgeDelay,Pe=pe.newPool;var Te=R.call(this,{id:Ae,config:ve,log:Ce,userAgent:we,boltAgent:_e,authTokenManager:ke,newPool:Pe},(function(R){return be(Te,void 0,void 0,(function(){var pe,Ae;return Ee(this,(function(he){switch(he.label){case 0:pe=Qe.createChannelConnection;Ae=[R,this._config,this._createConnectionErrorHandler(),this._log];return[4,this._clientCertificateHolder.getClientCertificate()];case 1:return[2,pe.apply(void 0,Ae.concat([he.sent(),this._routingContext]))]}}))}))}))||this;Te._routingContext=ge(ge({},ye),{address:he.toString()});Te._seedRouter=he;Te._rediscovery=new Se.default(Te._routingContext);Te._loadBalancingStrategy=new Re.LeastConnectedLoadBalancingStrategy(Te._connectionPool);Te._hostNameResolver=me;Te._dnsResolver=new Be.HostNameResolver;Te._log=Ce;Te._useSeedRouter=true;Te._routingTableRegistry=new rt(Oe?(0,Ie.int)(Oe):et);Te._refreshRoutingTable=xe.functional.reuseOngoingRequest(Te._refreshRoutingTable,Te);return Te}RoutingConnectionProvider.prototype._createConnectionErrorHandler=function(){return new Qe.ConnectionErrorHandler(Te)};RoutingConnectionProvider.prototype._handleUnavailability=function(R,pe,Ae){this._log.warn("Routing driver ".concat(this._id," will forget ").concat(pe," for database '").concat(Ae,"' because of an error ").concat(R.code," '").concat(R.message,"'"));this.forget(pe,Ae||Ze);return R};RoutingConnectionProvider.prototype._handleSecurityError=function(pe,Ae,he,ge){this._log.warn("Routing driver ".concat(this._id," will close connections to ").concat(Ae," for database '").concat(ge,"' because of an error ").concat(pe.code," '").concat(pe.message,"'"));return R.prototype._handleSecurityError.call(this,pe,Ae,he,ge)};RoutingConnectionProvider.prototype._handleWriteFailure=function(R,pe,Ae){this._log.warn("Routing driver ".concat(this._id," will forget writer ").concat(pe," for database '").concat(Ae,"' because of an error ").concat(R.code," '").concat(R.message,"'"));this.forgetWriter(pe,Ae||Ze);return(0,Ie.newError)("No longer possible to write to server at "+pe,Te,R)};RoutingConnectionProvider.prototype.acquireConnection=function(R){var pe=R===void 0?{}:R,Ae=pe.accessMode,he=pe.database,ge=pe.bookmarks,ye=pe.impersonatedUser,me=pe.onDatabaseNameResolved,ve=pe.auth;return be(this,void 0,void 0,(function(){var R,pe,be,Ce,we,_e,Se,Be;var ke=this;return Ee(this,(function(Ee){switch(Ee.label){case 0:be={database:he||Ze};Ce=new Qe.ConnectionErrorHandler(Te,(function(R,pe){return ke._handleUnavailability(R,pe,be.database)}),(function(R,pe){return ke._handleWriteFailure(R,pe,be.database)}),(function(R,pe,Ae){return ke._handleSecurityError(R,pe,Ae,be.database)}));return[4,this._freshRoutingTable({accessMode:Ae,database:be.database,bookmarks:ge,impersonatedUser:ye,auth:ve,onDatabaseNameResolved:function(R){be.database=be.database||R;if(me){me(R)}}})];case 1:we=Ee.sent();if(Ae===Me){pe=this._loadBalancingStrategy.selectReader(we.readers);R="read"}else if(Ae===je){pe=this._loadBalancingStrategy.selectWriter(we.writers);R="write"}else{throw(0,Ie.newError)("Illegal mode "+Ae)}if(!pe){throw(0,Ie.newError)("Failed to obtain connection towards ".concat(R," server. Known routing table is: ").concat(we),Te)}Ee.label=2;case 2:Ee.trys.push([2,6,,7]);return[4,this._connectionPool.acquire({auth:ve},pe)];case 3:_e=Ee.sent();if(!ve)return[3,5];return[4,this._verifyStickyConnection({auth:ve,connection:_e,address:pe})];case 4:Ee.sent();return[2,_e];case 5:return[2,new Qe.DelegateConnection(_e,Ce)];case 6:Se=Ee.sent();Be=Ce.handleAndTransformError(Se,pe);throw Be;case 7:return[2]}}))}))};RoutingConnectionProvider.prototype._hasProtocolVersion=function(R){return be(this,void 0,void 0,(function(){var pe,Ae,he,ge,ye,me;return Ee(this,(function(ve){switch(ve.label){case 0:return[4,this._resolveSeedRouter(this._seedRouter)];case 1:pe=ve.sent();he=0;ve.label=2;case 2:if(!(he=Le}))];case 1:return[2,R.sent()]}}))}))};RoutingConnectionProvider.prototype.supportsTransactionConfig=function(){return be(this,void 0,void 0,(function(){return Ee(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=Fe}))];case 1:return[2,R.sent()]}}))}))};RoutingConnectionProvider.prototype.supportsUserImpersonation=function(){return be(this,void 0,void 0,(function(){return Ee(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=Ue}))];case 1:return[2,R.sent()]}}))}))};RoutingConnectionProvider.prototype.supportsSessionAuth=function(){return be(this,void 0,void 0,(function(){return Ee(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=He}))];case 1:return[2,R.sent()]}}))}))};RoutingConnectionProvider.prototype.getNegotiatedProtocolVersion=function(){var R=this;return new Promise((function(pe,Ae){R._hasProtocolVersion(pe).catch(Ae)}))};RoutingConnectionProvider.prototype.verifyAuthentication=function(R){var pe=R.database,Ae=R.accessMode,he=R.auth;return be(this,void 0,void 0,(function(){var R=this;return Ee(this,(function(ge){return[2,this._verifyAuthentication({auth:he,getAddress:function(){return be(R,void 0,void 0,(function(){var R,ge,ye;return Ee(this,(function(me){switch(me.label){case 0:R={database:pe||Ze};return[4,this._freshRoutingTable({accessMode:Ae,database:R.database,auth:he,onDatabaseNameResolved:function(pe){R.database=R.database||pe}})];case 1:ge=me.sent();ye=Ae===je?ge.writers:ge.readers;if(ye.length===0){throw(0,Ie.newError)("No servers available for database '".concat(R.database,"' with access mode '").concat(Ae,"'"),Pe)}return[2,ye[0]]}}))}))}})]}))}))};RoutingConnectionProvider.prototype.verifyConnectivityAndGetServerInfo=function(R){var pe=R.database,Ae=R.accessMode;return be(this,void 0,void 0,(function(){var R,he,ge,ye,me,ve,be,we,_e,Se;var Be,ke;return Ee(this,(function(Ee){switch(Ee.label){case 0:R={database:pe||Ze};return[4,this._freshRoutingTable({accessMode:Ae,database:R.database,onDatabaseNameResolved:function(pe){R.database=R.database||pe}})];case 1:he=Ee.sent();ge=Ae===je?he.writers:he.readers;ye=(0,Ie.newError)("No servers available for database '".concat(R.database,"' with access mode '").concat(Ae,"'"),Pe);Ee.label=2;case 2:Ee.trys.push([2,9,10,11]);me=Ce(ge),ve=me.next();Ee.label=3;case 3:if(!!ve.done)return[3,8];be=ve.value;Ee.label=4;case 4:Ee.trys.push([4,6,,7]);return[4,this._verifyConnectivityAndGetServerVersion({address:be})];case 5:we=Ee.sent();return[2,we];case 6:_e=Ee.sent();ye=_e;return[3,7];case 7:ve=me.next();return[3,3];case 8:return[3,11];case 9:Se=Ee.sent();Be={error:Se};return[3,11];case 10:try{if(ve&&!ve.done&&(ke=me.return))ke.call(me)}finally{if(Be)throw Be.error}return[7];case 11:throw ye}}))}))};RoutingConnectionProvider.prototype.forget=function(R,pe){this._routingTableRegistry.apply(pe,{applyWhenExists:function(pe){return pe.forget(R)}});this._connectionPool.purge(R).catch((function(){}))};RoutingConnectionProvider.prototype.forgetWriter=function(R,pe){this._routingTableRegistry.apply(pe,{applyWhenExists:function(pe){return pe.forgetWriter(R)}})};RoutingConnectionProvider.prototype._freshRoutingTable=function(R){var pe=R===void 0?{}:R,Ae=pe.accessMode,he=pe.database,ge=pe.bookmarks,ye=pe.impersonatedUser,me=pe.onDatabaseNameResolved,ve=pe.auth;var be=this._routingTableRegistry.get(he,(function(){return new Se.RoutingTable({database:he})}));if(!be.isStaleFor(Ae)){return be}this._log.info('Routing table is stale for database: "'.concat(he,'" and access mode: "').concat(Ae,'": ').concat(be));return this._refreshRoutingTable(be,ge,ye,ve).then((function(R){me(R.database);return R}))};RoutingConnectionProvider.prototype._refreshRoutingTable=function(R,pe,Ae,he){var ge=R.routers;if(this._useSeedRouter){return this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(ge,R,pe,Ae,he)}return this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(ge,R,pe,Ae,he)};RoutingConnectionProvider.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters=function(R,pe,Ae,he,ge){return be(this,void 0,void 0,(function(){var ye,me,ve,be,Ce,_e,Ie;return Ee(this,(function(Ee){switch(Ee.label){case 0:ye=[];return[4,this._fetchRoutingTableUsingSeedRouter(ye,this._seedRouter,pe,Ae,he,ge)];case 1:me=we.apply(void 0,[Ee.sent(),2]),ve=me[0],be=me[1];if(!ve)return[3,2];this._useSeedRouter=false;return[3,4];case 2:return[4,this._fetchRoutingTableUsingKnownRouters(R,pe,Ae,he,ge)];case 3:Ce=we.apply(void 0,[Ee.sent(),2]),_e=Ce[0],Ie=Ce[1];ve=_e;be=Ie||be;Ee.label=4;case 4:return[4,this._applyRoutingTableIfPossible(pe,ve,be)];case 5:return[2,Ee.sent()]}}))}))};RoutingConnectionProvider.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter=function(R,pe,Ae,he,ge){return be(this,void 0,void 0,(function(){var ye,me,ve;var be;return Ee(this,(function(Ee){switch(Ee.label){case 0:return[4,this._fetchRoutingTableUsingKnownRouters(R,pe,Ae,he,ge)];case 1:ye=we.apply(void 0,[Ee.sent(),2]),me=ye[0],ve=ye[1];if(!!me)return[3,3];return[4,this._fetchRoutingTableUsingSeedRouter(R,this._seedRouter,pe,Ae,he,ge)];case 2:be=we.apply(void 0,[Ee.sent(),2]),me=be[0],ve=be[1];Ee.label=3;case 3:return[4,this._applyRoutingTableIfPossible(pe,me,ve)];case 4:return[2,Ee.sent()]}}))}))};RoutingConnectionProvider.prototype._fetchRoutingTableUsingKnownRouters=function(R,pe,Ae,he,ge){return be(this,void 0,void 0,(function(){var ye,me,ve,be;return Ee(this,(function(Ee){switch(Ee.label){case 0:return[4,this._fetchRoutingTable(R,pe,Ae,he,ge)];case 1:ye=we.apply(void 0,[Ee.sent(),2]),me=ye[0],ve=ye[1];if(me){return[2,[me,null]]}be=R.length-1;RoutingConnectionProvider._forgetRouter(pe,R,be);return[2,[null,ve]]}}))}))};RoutingConnectionProvider.prototype._fetchRoutingTableUsingSeedRouter=function(R,pe,Ae,he,ge,ye){return be(this,void 0,void 0,(function(){var me,ve;return Ee(this,(function(be){switch(be.label){case 0:return[4,this._resolveSeedRouter(pe)];case 1:me=be.sent();ve=me.filter((function(pe){return R.indexOf(pe)<0}));return[4,this._fetchRoutingTable(ve,Ae,he,ge,ye)];case 2:return[2,be.sent()]}}))}))};RoutingConnectionProvider.prototype._resolveSeedRouter=function(R){return be(this,void 0,void 0,(function(){var pe,Ae;var he=this;return Ee(this,(function(ge){switch(ge.label){case 0:return[4,this._hostNameResolver.resolve(R)];case 1:pe=ge.sent();return[4,Promise.all(pe.map((function(R){return he._dnsResolver.resolve(R)})))];case 2:Ae=ge.sent();return[2,[].concat.apply([],Ae)]}}))}))};RoutingConnectionProvider.prototype._fetchRoutingTable=function(R,pe,Ae,he,ge){return be(this,void 0,void 0,(function(){var ye=this;return Ee(this,(function(me){return[2,R.reduce((function(me,ve,Ce){return be(ye,void 0,void 0,(function(){var ye,be,_e,Ie,Se,Be,ke;return Ee(this,(function(Ee){switch(Ee.label){case 0:return[4,me];case 1:ye=we.apply(void 0,[Ee.sent(),1]),be=ye[0];if(be){return[2,[be,null]]}else{_e=Ce-1;RoutingConnectionProvider._forgetRouter(pe,R,_e)}return[4,this._createSessionForRediscovery(ve,Ae,he,ge)];case 2:Ie=we.apply(void 0,[Ee.sent(),2]),Se=Ie[0],Be=Ie[1];if(!Se)return[3,8];Ee.label=3;case 3:Ee.trys.push([3,5,6,7]);return[4,this._rediscovery.lookupRoutingTableOnRouter(Se,pe.database,ve,he)];case 4:return[2,[Ee.sent(),null]];case 5:ke=Ee.sent();return[2,this._handleRediscoveryError(ke,ve)];case 6:Se.close();return[7];case 7:return[3,9];case 8:return[2,[null,Be]];case 9:return[2]}}))}))}),Promise.resolve([null,null]))]}))}))};RoutingConnectionProvider.prototype._createSessionForRediscovery=function(R,pe,Ae,he){return be(this,void 0,void 0,(function(){var ge,ye,me,ve,be,Ce;var we=this;return Ee(this,(function(Ee){switch(Ee.label){case 0:Ee.trys.push([0,4,,5]);return[4,this._connectionPool.acquire({auth:he},R)];case 1:ge=Ee.sent();if(!he)return[3,3];return[4,this._verifyStickyConnection({auth:he,connection:ge,address:R})];case 2:Ee.sent();Ee.label=3;case 3:ye=Qe.ConnectionErrorHandler.create({errorCode:Te,handleSecurityError:function(R,pe,Ae){return we._handleSecurityError(R,pe,Ae)}});me=!ge._sticky?new Qe.DelegateConnection(ge,ye):new Qe.DelegateConnection(ge);ve=new ke.default(me);be=ge.protocol().version;if(be<4){return[2,[new Ie.Session({mode:je,bookmarks:De.empty(),connectionProvider:ve}),null]]}return[2,[new Ie.Session({mode:Me,database:Xe,bookmarks:pe,connectionProvider:ve,impersonatedUser:Ae}),null]];case 4:Ce=Ee.sent();return[2,this._handleRediscoveryError(Ce,R)];case 5:return[2]}}))}))};RoutingConnectionProvider.prototype._handleRediscoveryError=function(R,pe){if(_isFailFastError(R)||_isFailFastSecurityError(R)){throw R}else if(R.code===Je){throw(0,Ie.newError)("Server at ".concat(pe.asHostPort()," can't perform routing. Make sure you are connecting to a causal cluster"),Pe,R)}this._log.warn("unable to fetch routing table because of an error ".concat(R));return[null,R]};RoutingConnectionProvider.prototype._applyRoutingTableIfPossible=function(R,pe,Ae){return be(this,void 0,void 0,(function(){return Ee(this,(function(he){switch(he.label){case 0:if(!pe){throw(0,Ie.newError)("Could not perform discovery. No routing servers available. Known routing table: ".concat(R),Pe,Ae)}if(pe.writers.length===0){this._useSeedRouter=true}return[4,this._updateRoutingTable(pe)];case 1:he.sent();return[2,pe]}}))}))};RoutingConnectionProvider.prototype._updateRoutingTable=function(R){return be(this,void 0,void 0,(function(){return Ee(this,(function(pe){switch(pe.label){case 0:return[4,this._connectionPool.keepAll(R.allServers())];case 1:pe.sent();this._routingTableRegistry.removeExpired();this._routingTableRegistry.register(R);this._log.info("Updated routing table ".concat(R));return[2]}}))}))};RoutingConnectionProvider._forgetRouter=function(R,pe,Ae){var he=pe[Ae];if(R&&he){R.forgetRouter(he)}};return RoutingConnectionProvider}(Oe.default);pe["default"]=tt;var rt=function(){function RoutingTableRegistry(R){this._tables=new Map;this._routingTablePurgeDelay=R}RoutingTableRegistry.prototype.register=function(R){this._tables.set(R.database,R);return this};RoutingTableRegistry.prototype.apply=function(R,pe){var Ae=pe===void 0?{}:pe,he=Ae.applyWhenExists,ge=Ae.applyWhenDontExists,ye=ge===void 0?function(){}:ge;if(this._tables.has(R)){he(this._tables.get(R))}else if(typeof R==="string"||R===null){ye()}else{this._forEach(he)}return this};RoutingTableRegistry.prototype.get=function(R,pe){if(this._tables.has(R)){return this._tables.get(R)}return typeof pe==="function"?pe():pe};RoutingTableRegistry.prototype.removeExpired=function(){var R=this;return this._removeIf((function(pe){return pe.isExpiredFor(R._routingTablePurgeDelay)}))};RoutingTableRegistry.prototype._forEach=function(R){var pe,Ae;try{for(var he=Ce(this._tables),ge=he.next();!ge.done;ge=he.next()){var ye=we(ge.value,2),me=ye[1];R(me)}}catch(R){pe={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he.return))Ae.call(he)}finally{if(pe)throw pe.error}}return this};RoutingTableRegistry.prototype._remove=function(R){this._tables.delete(R);return this};RoutingTableRegistry.prototype._removeIf=function(R){var pe,Ae;try{for(var he=Ce(this._tables),ge=he.next();!ge.done;ge=he.next()){var ye=we(ge.value,2),me=ye[0],ve=ye[1];if(R(ve)){this._remove(me)}}}catch(R){pe={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he.return))Ae.call(he)}finally{if(pe)throw pe.error}}return this};return RoutingTableRegistry}();function _isFailFastError(R){return[We,Ve,Ke,Ye,qe,$e,ze].includes(R.code)}function _isFailFastSecurityError(R){return R.code.startsWith("Neo.ClientError.Security.")&&![Ge].includes(R.code)}},59761:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});var ge=Ae(55065);var ye=function(R){he(SingleConnectionProvider,R);function SingleConnectionProvider(pe){var Ae=R.call(this)||this;Ae._connection=pe;return Ae}SingleConnectionProvider.prototype.acquireConnection=function(R){var pe=R===void 0?{}:R,Ae=pe.accessMode,he=pe.database,ge=pe.bookmarks;var ye=this._connection;this._connection=null;return Promise.resolve(ye)};return SingleConnectionProvider}(ge.ConnectionProvider);pe["default"]=ye},73640:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.RoutingConnectionProvider=pe.DirectConnectionProvider=pe.PooledConnectionProvider=pe.SingleConnectionProvider=void 0;var ge=Ae(59761);Object.defineProperty(pe,"SingleConnectionProvider",{enumerable:true,get:function(){return he(ge).default}});var ye=Ae(65390);Object.defineProperty(pe,"PooledConnectionProvider",{enumerable:true,get:function(){return he(ye).default}});var me=Ae(42808);Object.defineProperty(pe,"DirectConnectionProvider",{enumerable:true,get:function(){return he(me).default}});var ve=Ae(2970);Object.defineProperty(pe,"RoutingConnectionProvider",{enumerable:true,get:function(){return he(ve).default}})},26327:function(R,pe){"use strict";var Ae=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var he=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]this._connectionLivenessCheckTimeout))return[3,2];return[4,R.resetAndFlush().then((function(){return true}))];case 1:return[2,Ae.sent()];case 2:return[2,true]}}))}))};Object.defineProperty(LivenessCheckProvider.prototype,"_isCheckDisabled",{get:function(){return this._connectionLivenessCheckTimeout==null||this._connectionLivenessCheckTimeout<0},enumerable:false,configurable:true});LivenessCheckProvider.prototype._isNewlyCreatedConnection=function(R){return R.authToken==null};return LivenessCheckProvider}();pe["default"]=ge},7176:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ye=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0){he._ch.setupReceiveTimeout(ve*1e3)}else{he._log.info("Server located at ".concat(he._address," supplied an invalid connection receive timeout value (").concat(ve,"). ")+"Please, verify the server configuration and status because this can be the symptom of a bigger issue.")}}var Ee=R.hints["telemetry.enabled"];if(Ee===true){he._telemetryDisabledConnection=false}}}ye(ge)}})}))};ChannelConnection.prototype.protocol=function(){return this._protocol};Object.defineProperty(ChannelConnection.prototype,"address",{get:function(){return this._address},enumerable:false,configurable:true});Object.defineProperty(ChannelConnection.prototype,"version",{get:function(){return this._server.version},set:function(R){this._server.version=R},enumerable:false,configurable:true});Object.defineProperty(ChannelConnection.prototype,"server",{get:function(){return this._server},enumerable:false,configurable:true});Object.defineProperty(ChannelConnection.prototype,"logger",{get:function(){return this._log},enumerable:false,configurable:true});ChannelConnection.prototype._handleFatalError=function(R){this._isBroken=true;this._error=this.handleAndTransformError(this._protocol.currentFailure||R,this._address);if(this._log.isErrorEnabled()){this._log.error("experienced a fatal error caused by ".concat(this._error," (").concat(be.json.stringify(this._error),")"))}this._protocol.notifyFatalError(this._error)};ChannelConnection.prototype._setIdle=function(R){this._idle=true;this._ch.stopReceiveTimeout();this._protocol.queueObserverIfProtocolIsNotBroken(R)};ChannelConnection.prototype._unsetIdle=function(){this._idle=false;this._updateCurrentObserver()};ChannelConnection.prototype._queueObserver=function(R){return this._protocol.queueObserverIfProtocolIsNotBroken(R)};ChannelConnection.prototype.hasOngoingObservableRequests=function(){return!this._idle&&this._protocol.hasOngoingObservableRequests()};ChannelConnection.prototype.resetAndFlush=function(){var R=this;return new Promise((function(pe,Ae){R._reset({onError:function(pe){if(R._isBroken){Ae(pe)}else{var he=R._handleProtocolError("Received FAILURE as a response for RESET: "+pe);Ae(he)}},onComplete:function(){pe()}})}))};ChannelConnection.prototype._resetOnFailure=function(){var R=this;if(!this.isOpen()){return}this._reset({onError:function(){R._protocol.resetFailure()},onComplete:function(){R._protocol.resetFailure()}})};ChannelConnection.prototype._reset=function(R){var pe=this;if(this._reseting){if(!this._protocol.isLastMessageReset()){this._protocol.reset({onError:function(pe){R.onError(pe)},onComplete:function(){R.onComplete()}})}else{this._resetObservers.push(R)}return}this._resetObservers.push(R);this._reseting=true;var notifyFinish=function(R){pe._reseting=false;var Ae=pe._resetObservers;pe._resetObservers=[];Ae.forEach(R)};this._protocol.reset({onError:function(R){notifyFinish((function(pe){return pe.onError(R)}))},onComplete:function(){notifyFinish((function(R){return R.onComplete()}))}})};ChannelConnection.prototype._updateCurrentObserver=function(){this._protocol.updateCurrentObserver()};ChannelConnection.prototype.isOpen=function(){return!this._isBroken&&this._ch._open};ChannelConnection.prototype._handleOngoingRequestsNumberChange=function(R){if(this._idle){return}if(R===0){this._ch.stopReceiveTimeout()}else{this._ch.startReceiveTimeout()}};ChannelConnection.prototype.close=function(){return ge(this,void 0,void 0,(function(){return ye(this,(function(R){switch(R.label){case 0:if(this._log.isDebugEnabled()){this._log.debug("closing")}if(this._protocol&&this.isOpen()){this._protocol.prepareToClose()}return[4,this._ch.close()];case 1:R.sent();if(this._log.isDebugEnabled()){this._log.debug("closed")}return[2]}}))}))};ChannelConnection.prototype.toString=function(){return"Connection [".concat(this.id,"][").concat(this.databaseId||"","]")};ChannelConnection.prototype._handleProtocolError=function(R){this._protocol.resetFailure();this._updateCurrentObserver();var pe=(0,be.newError)(R,we);this._handleFatalError(pe);return pe};return ChannelConnection}(Ee.default);pe["default"]=Se;function createConnectionLogger(R,pe){return new _e(pe._level,(function(Ae,he){return pe._loggerFunction(Ae,"".concat(R," ").concat(he))}))}},71209:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=ge(Ae(27341));var me=function(R){he(DelegateConnection,R);function DelegateConnection(pe,Ae){var he=R.call(this,Ae)||this;if(Ae){he._originalErrorHandler=pe._errorHandler;pe._errorHandler=he._errorHandler}he._delegate=pe;return he}DelegateConnection.prototype.beginTransaction=function(R){return this._delegate.beginTransaction(R)};DelegateConnection.prototype.run=function(R,pe,Ae){return this._delegate.run(R,pe,Ae)};DelegateConnection.prototype.commitTransaction=function(R){return this._delegate.commitTransaction(R)};DelegateConnection.prototype.rollbackTransaction=function(R){return this._delegate.rollbackTransaction(R)};DelegateConnection.prototype.getProtocolVersion=function(){return this._delegate.getProtocolVersion()};Object.defineProperty(DelegateConnection.prototype,"id",{get:function(){return this._delegate.id},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"databaseId",{get:function(){return this._delegate.databaseId},set:function(R){this._delegate.databaseId=R},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"server",{get:function(){return this._delegate.server},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"authToken",{get:function(){return this._delegate.authToken},set:function(R){this._delegate.authToken=R},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"supportsReAuth",{get:function(){return this._delegate.supportsReAuth},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"address",{get:function(){return this._delegate.address},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"version",{get:function(){return this._delegate.version},set:function(R){this._delegate.version=R},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"creationTimestamp",{get:function(){return this._delegate.creationTimestamp},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"idleTimestamp",{get:function(){return this._delegate.idleTimestamp},set:function(R){this._delegate.idleTimestamp=R},enumerable:false,configurable:true});DelegateConnection.prototype.isOpen=function(){return this._delegate.isOpen()};DelegateConnection.prototype.protocol=function(){return this._delegate.protocol()};DelegateConnection.prototype.connect=function(R,pe,Ae,he){return this._delegate.connect(R,pe,Ae,he)};DelegateConnection.prototype.write=function(R,pe,Ae){return this._delegate.write(R,pe,Ae)};DelegateConnection.prototype.resetAndFlush=function(){return this._delegate.resetAndFlush()};DelegateConnection.prototype.hasOngoingObservableRequests=function(){return this._delegate.hasOngoingObservableRequests()};DelegateConnection.prototype.close=function(){return this._delegate.close()};DelegateConnection.prototype.release=function(){if(this._originalErrorHandler){this._delegate._errorHandler=this._originalErrorHandler}return this._delegate.release()};return DelegateConnection}(ye.default);pe["default"]=me},95902:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(55065);var ge=he.error.SERVICE_UNAVAILABLE,ye=he.error.SESSION_EXPIRED;var me=function(){function ConnectionErrorHandler(R,pe,Ae,he){this._errorCode=R;this._handleUnavailability=pe||noOpHandler;this._handleWriteFailure=Ae||noOpHandler;this._handleSecurityError=he||noOpHandler}ConnectionErrorHandler.create=function(R){var pe=R.errorCode,Ae=R.handleUnavailability,he=R.handleWriteFailure,ge=R.handleSecurityError;return new ConnectionErrorHandler(pe,Ae,he,ge)};ConnectionErrorHandler.prototype.errorCode=function(){return this._errorCode};ConnectionErrorHandler.prototype.handleAndTransformError=function(R,pe,Ae){if(isSecurityError(R)){return this._handleSecurityError(R,pe,Ae)}if(isAvailabilityError(R)){return this._handleUnavailability(R,pe,Ae)}if(isFailureToWrite(R)){return this._handleWriteFailure(R,pe,Ae)}return R};return ConnectionErrorHandler}();pe["default"]=me;function isSecurityError(R){return R!=null&&R.code!=null&&R.code.startsWith("Neo.ClientError.Security.")}function isAvailabilityError(R){if(R){return R.code===ye||R.code===ge||R.code==="Neo.TransientError.General.DatabaseUnavailable"}return false}function isFailureToWrite(R){if(R){return R.code==="Neo.ClientError.Cluster.NotALeader"||R.code==="Neo.ClientError.General.ForbiddenOnReadOnlyDatabase"}return false}function noOpHandler(R){return R}},27341:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});var ge=Ae(86934);var ye=Ae(55065);var me=function(R){he(Connection,R);function Connection(pe){var Ae=R.call(this)||this;Ae._errorHandler=pe;return Ae}Object.defineProperty(Connection.prototype,"id",{get:function(){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"databaseId",{get:function(){throw new Error("not implemented")},set:function(R){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"authToken",{get:function(){throw new Error("not implemented")},set:function(R){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"supportsReAuth",{get:function(){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"creationTimestamp",{get:function(){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"idleTimestamp",{get:function(){throw new Error("not implemented")},set:function(R){throw new Error("not implemented")},enumerable:false,configurable:true});Connection.prototype.protocol=function(){throw new Error("not implemented")};Object.defineProperty(Connection.prototype,"address",{get:function(){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"version",{get:function(){throw new Error("not implemented")},set:function(R){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"server",{get:function(){throw new Error("not implemented")},enumerable:false,configurable:true});Connection.prototype.connect=function(R,pe,Ae,he){throw new Error("not implemented")};Connection.prototype.write=function(R,pe,Ae){throw new Error("not implemented")};Connection.prototype.close=function(){throw new Error("not implemented")};Connection.prototype.handleAndTransformError=function(R,pe){if(this._errorHandler){return this._errorHandler.handleAndTransformError(R,pe,this)}return R};return Connection}(ye.Connection);pe["default"]=me},55994:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.createChannelConnection=pe.ConnectionErrorHandler=pe.DelegateConnection=pe.ChannelConnection=pe.Connection=void 0;var ve=me(Ae(27341));pe.Connection=ve.default;var be=ye(Ae(7176));pe.ChannelConnection=be.default;Object.defineProperty(pe,"createChannelConnection",{enumerable:true,get:function(){return be.createChannelConnection}});var Ee=me(Ae(71209));pe.DelegateConnection=Ee.default;var Ce=me(Ae(95902));pe.ConnectionErrorHandler=Ce.default;pe["default"]=ve.default},95167:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});pe.pool=pe.packstream=pe.channel=pe.buf=pe.bolt=pe.loadBalancing=void 0;pe.loadBalancing=ye(Ae(30247));pe.bolt=ye(Ae(86934));pe.buf=ye(Ae(35509));pe.channel=ye(Ae(31131));pe.packstream=ye(Ae(32423));pe.pool=ye(Ae(38154));me(Ae(73640),pe)},85625:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.reuseOngoingRequest=pe.identity=void 0;var he=Ae(55065);function identity(R){return R}pe.identity=identity;function reuseOngoingRequest(R,pe){if(pe===void 0){pe=null}var Ae=new Map;return function(){var ge=[];for(var ye=0;ye=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.equals=void 0;function equals(R,pe){var he,ge;if(R===pe){return true}if(R===null||pe===null){return false}if(typeof R==="object"&&typeof pe==="object"){var ye=Object.keys(R);var me=Object.keys(pe);if(ye.length!==me.length){return false}try{for(var ve=Ae(ye),be=ve.next();!be.done;be=ve.next()){var Ee=be.value;if(R[Ee]!==pe[Ee]){return false}}}catch(R){he={error:R}}finally{try{if(be&&!be.done&&(ge=ve.return))ge.call(ve)}finally{if(he)throw he.error}}return true}return false}pe.equals=equals},30247:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.LeastConnectedLoadBalancingStrategy=pe.LoadBalancingStrategy=void 0;var ge=he(Ae(59744));pe.LoadBalancingStrategy=ge.default;var ye=he(Ae(10978));pe.LeastConnectedLoadBalancingStrategy=ye.default;pe["default"]=ye.default},10978:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=ge(Ae(64450));var me=ge(Ae(59744));var ve=function(R){he(LeastConnectedLoadBalancingStrategy,R);function LeastConnectedLoadBalancingStrategy(pe){var Ae=R.call(this)||this;Ae._readersIndex=new ye.default;Ae._writersIndex=new ye.default;Ae._connectionPool=pe;return Ae}LeastConnectedLoadBalancingStrategy.prototype.selectReader=function(R){return this._select(R,this._readersIndex)};LeastConnectedLoadBalancingStrategy.prototype.selectWriter=function(R){return this._select(R,this._writersIndex)};LeastConnectedLoadBalancingStrategy.prototype._select=function(R,pe){var Ae=R.length;if(Ae===0){return null}var he=pe.next(Ae);var ge=he;var ye=null;var me=Number.MAX_SAFE_INTEGER;do{var ve=R[ge];var be=this._connectionPool.activeResourceCount(ve);if(be{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function LoadBalancingStrategy(){}LoadBalancingStrategy.prototype.selectReader=function(R){throw new Error("Abstract function")};LoadBalancingStrategy.prototype.selectWriter=function(R){throw new Error("Abstract function")};return LoadBalancingStrategy}();pe["default"]=Ae},64450:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function RoundRobinArrayIndex(R){this._offset=R||0}RoundRobinArrayIndex.prototype.next=function(R){if(R===0){return-1}var pe=this._offset;this._offset+=1;if(this._offset===Number.MAX_SAFE_INTEGER){this._offset=0}return pe%R};return RoundRobinArrayIndex}();pe["default"]=Ae},32423:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.structure=pe.v2=pe.v1=void 0;var me=ye(Ae(69607));pe.v1=me;var ve=ye(Ae(75261));pe.v2=ve;var be=ye(Ae(48466));pe.structure=be;pe["default"]=ve},69607:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Unpacker=pe.Packer=void 0;var he=Ae(31131);var ge=Ae(1059);var ye=Ae(48466);var me=Ae(55065);var ve=me.error.PROTOCOL_ERROR;var be=128;var Ee=144;var Ce=160;var we=176;var _e=192;var Ie=193;var Se=194;var Be=195;var ke=200;var Oe=201;var Re=202;var Qe=203;var xe=208;var Pe=209;var Te=210;var De=212;var Ne=213;var Me=214;var je=204;var Fe=205;var Le=206;var Ue=216;var He=217;var Je=218;var We=220;var Ve=221;var Ke=function(){function Packer(R){this._ch=R;this._byteArraysSupported=true}Packer.prototype.packable=function(R,pe){var Ae=this;if(pe===void 0){pe=ge.functional.identity}try{R=pe(R)}catch(R){return function(){throw R}}if(R===null){return function(){return Ae._ch.writeUInt8(_e)}}else if(R===true){return function(){return Ae._ch.writeUInt8(Be)}}else if(R===false){return function(){return Ae._ch.writeUInt8(Se)}}else if(typeof R==="number"){return function(){return Ae.packFloat(R)}}else if(typeof R==="string"){return function(){return Ae.packString(R)}}else if(typeof R==="bigint"){return function(){return Ae.packInteger((0,me.int)(R))}}else if((0,me.isInt)(R)){return function(){return Ae.packInteger(R)}}else if(R instanceof Int8Array){return function(){return Ae.packBytes(R)}}else if(R instanceof Array){return function(){Ae.packListHeader(R.length);for(var he=0;he>0);this._ch.writeUInt8(Ae%256);this._ch.writeBytes(pe)}else if(Ae<4294967296){this._ch.writeUInt8(Te);this._ch.writeUInt8((Ae/16777216>>0)%256);this._ch.writeUInt8((Ae/65536>>0)%256);this._ch.writeUInt8((Ae/256>>0)%256);this._ch.writeUInt8(Ae%256);this._ch.writeBytes(pe)}else{throw(0,me.newError)("UTF-8 strings of size "+Ae+" are not supported")}};Packer.prototype.packListHeader=function(R){if(R<16){this._ch.writeUInt8(Ee|R)}else if(R<256){this._ch.writeUInt8(De);this._ch.writeUInt8(R)}else if(R<65536){this._ch.writeUInt8(Ne);this._ch.writeUInt8((R/256>>0)%256);this._ch.writeUInt8(R%256)}else if(R<4294967296){this._ch.writeUInt8(Me);this._ch.writeUInt8((R/16777216>>0)%256);this._ch.writeUInt8((R/65536>>0)%256);this._ch.writeUInt8((R/256>>0)%256);this._ch.writeUInt8(R%256)}else{throw(0,me.newError)("Lists of size "+R+" are not supported")}};Packer.prototype.packBytes=function(R){if(this._byteArraysSupported){this.packBytesHeader(R.length);for(var pe=0;pe>0)%256);this._ch.writeUInt8(R%256)}else if(R<4294967296){this._ch.writeUInt8(Le);this._ch.writeUInt8((R/16777216>>0)%256);this._ch.writeUInt8((R/65536>>0)%256);this._ch.writeUInt8((R/256>>0)%256);this._ch.writeUInt8(R%256)}else{throw(0,me.newError)("Byte arrays of size "+R+" are not supported")}};Packer.prototype.packMapHeader=function(R){if(R<16){this._ch.writeUInt8(Ce|R)}else if(R<256){this._ch.writeUInt8(Ue);this._ch.writeUInt8(R)}else if(R<65536){this._ch.writeUInt8(He);this._ch.writeUInt8(R/256>>0);this._ch.writeUInt8(R%256)}else if(R<4294967296){this._ch.writeUInt8(Je);this._ch.writeUInt8((R/16777216>>0)%256);this._ch.writeUInt8((R/65536>>0)%256);this._ch.writeUInt8((R/256>>0)%256);this._ch.writeUInt8(R%256)}else{throw(0,me.newError)("Maps of size "+R+" are not supported")}};Packer.prototype.packStructHeader=function(R,pe){if(R<16){this._ch.writeUInt8(we|R);this._ch.writeUInt8(pe)}else if(R<256){this._ch.writeUInt8(We);this._ch.writeUInt8(R);this._ch.writeUInt8(pe)}else if(R<65536){this._ch.writeUInt8(Ve);this._ch.writeUInt8(R/256>>0);this._ch.writeUInt8(R%256)}else{throw(0,me.newError)("Structures of size "+R+" are not supported")}};Packer.prototype.disableByteArrays=function(){this._byteArraysSupported=false};Packer.prototype._nonPackableValue=function(R){return function(){throw(0,me.newError)(R,ve)}};return Packer}();pe.Packer=Ke;var Ge=function(){function Unpacker(R,pe){if(R===void 0){R=false}if(pe===void 0){pe=false}this._disableLosslessIntegers=R;this._useBigInt=pe}Unpacker.prototype.unpack=function(R,pe){if(pe===void 0){pe=ge.functional.identity}var Ae=R.readUInt8();var he=Ae&240;var ye=Ae&15;if(Ae===_e){return null}var ve=this._unpackBoolean(Ae);if(ve!==null){return ve}var be=this._unpackNumberOrInteger(Ae,R);if(be!==null){if((0,me.isInt)(be)){if(this._useBigInt){return be.toBigInt()}else if(this._disableLosslessIntegers){return be.toNumberOrInfinity()}}return be}var Ee=this._unpackString(Ae,he,ye,R);if(Ee!==null){return Ee}var Ce=this._unpackList(Ae,he,ye,R,pe);if(Ce!==null){return Ce}var we=this._unpackByteArray(Ae,R);if(we!==null){return we}var Ie=this._unpackMap(Ae,he,ye,R,pe);if(Ie!==null){return Ie}var Se=this._unpackStruct(Ae,he,ye,R,pe);if(Se!==null){return Se}throw(0,me.newError)("Unknown packed value with marker "+Ae.toString(16))};Unpacker.prototype.unpackInteger=function(R){var pe=R.readUInt8();var Ae=this._unpackInteger(pe,R);if(Ae==null){throw(0,me.newError)("Unable to unpack integer value with marker "+pe.toString(16))}return Ae};Unpacker.prototype._unpackBoolean=function(R){if(R===Be){return true}else if(R===Se){return false}else{return null}};Unpacker.prototype._unpackNumberOrInteger=function(R,pe){if(R===Ie){return pe.readFloat64()}else{return this._unpackInteger(R,pe)}};Unpacker.prototype._unpackInteger=function(R,pe){if(R>=0&&R<128){return(0,me.int)(R)}else if(R>=240&&R<256){return(0,me.int)(R-256)}else if(R===ke){return(0,me.int)(pe.readInt8())}else if(R===Oe){return(0,me.int)(pe.readInt16())}else if(R===Re){var Ae=pe.readInt32();return(0,me.int)(Ae)}else if(R===Qe){var he=pe.readInt32();var ge=pe.readInt32();return new me.Integer(ge,he)}else{return null}};Unpacker.prototype._unpackString=function(R,pe,Ae,ge){if(pe===be){return he.utf8.decode(ge,Ae)}else if(R===xe){return he.utf8.decode(ge,ge.readUInt8())}else if(R===Pe){return he.utf8.decode(ge,ge.readUInt16())}else if(R===Te){return he.utf8.decode(ge,ge.readUInt32())}else{return null}};Unpacker.prototype._unpackList=function(R,pe,Ae,he,ge){if(pe===Ee){return this._unpackListWithSize(Ae,he,ge)}else if(R===De){return this._unpackListWithSize(he.readUInt8(),he,ge)}else if(R===Ne){return this._unpackListWithSize(he.readUInt16(),he,ge)}else if(R===Me){return this._unpackListWithSize(he.readUInt32(),he,ge)}else{return null}};Unpacker.prototype._unpackListWithSize=function(R,pe,Ae){var he=[];for(var ge=0;ge{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.verifyStructSize=pe.Structure=void 0;var he=Ae(55065);var ge=he.error.PROTOCOL_ERROR;var ye=function(){function Structure(R,pe){this.signature=R;this.fields=pe}Object.defineProperty(Structure.prototype,"size",{get:function(){return this.fields.length},enumerable:false,configurable:true});Structure.prototype.toString=function(){var R="";for(var pe=0;pe0){R+=", "}R+=this.fields[pe]}return"Structure("+this.signature+", ["+R+"])"};return Structure}();pe.Structure=ye;function verifyStructSize(R,pe,Ae){if(pe!==Ae){throw(0,he.newError)("Wrong struct size for ".concat(R,", expected ").concat(pe," but was ").concat(Ae),ge)}}pe.verifyStructSize=verifyStructSize;pe["default"]=ye},38154:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.DEFAULT_MAX_SIZE=pe.DEFAULT_ACQUISITION_TIMEOUT=pe.PoolConfig=pe.Pool=void 0;var ve=ye(Ae(3838));pe.PoolConfig=ve.default;Object.defineProperty(pe,"DEFAULT_ACQUISITION_TIMEOUT",{enumerable:true,get:function(){return ve.DEFAULT_ACQUISITION_TIMEOUT}});Object.defineProperty(pe,"DEFAULT_MAX_SIZE",{enumerable:true,get:function(){return ve.DEFAULT_MAX_SIZE}});var be=me(Ae(64736));pe.Pool=be.default;pe["default"]=be.default},3838:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.DEFAULT_ACQUISITION_TIMEOUT=pe.DEFAULT_MAX_SIZE=void 0;var Ae=100;pe.DEFAULT_MAX_SIZE=Ae;var he=60*1e3;pe.DEFAULT_ACQUISITION_TIMEOUT=he;var ge=function(){function PoolConfig(R,pe){this.maxSize=valueOrDefault(R,Ae);this.acquisitionTimeout=valueOrDefault(pe,he)}PoolConfig.defaultConfig=function(){return new PoolConfig(Ae,he)};PoolConfig.fromDriverConfig=function(R){var pe=isConfigured(R.maxConnectionPoolSize);var ge=pe?R.maxConnectionPoolSize:Ae;var ye=isConfigured(R.connectionAcquisitionTimeout);var me=ye?R.connectionAcquisitionTimeout:he;return new PoolConfig(ge,me)};return PoolConfig}();pe["default"]=ge;function valueOrDefault(R,pe){return R===0||R?R:pe}function isConfigured(R){return R===0||R}},64736:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0){be=this.activeResourceCount(pe)+this._pendingCreates[he];if(be>=this._maxSize){return[2,{resource:null,pool:ye}]}}this._pendingCreates[he]=this._pendingCreates[he]+1;ge.label=7;case 7:ge.trys.push([7,,11,12]);be=this.activeResourceCount(pe)+ye.length;if(!(be>=this._maxSize&&Ae))return[3,9];Ce=ye.pop();if(this._removeIdleObserver){this._removeIdleObserver(Ce)}ye.removeInUse(Ce);return[4,this._destroy(Ce)];case 8:ge.sent();ge.label=9;case 9:return[4,this._create(R,pe,(function(R,pe){return we._release(R,pe,ye)}))];case 10:Ee=ge.sent();ye.pushInUse(Ee);resourceAcquired(he,this._activeResourceCounts);if(this._log.isDebugEnabled()){this._log.debug("".concat(Ee," created for the pool ").concat(he))}return[3,12];case 11:this._pendingCreates[he]=this._pendingCreates[he]-1;return[7];case 12:return[2,{resource:Ee,pool:ye}]}}))}))};Pool.prototype._release=function(R,pe,Ae){return he(this,void 0,void 0,(function(){var he;var ye=this;return ge(this,(function(ge){switch(ge.label){case 0:he=R.asKey();ge.label=1;case 1:ge.trys.push([1,,9,10]);if(!Ae.isActive())return[3,6];return[4,this._validateOnRelease(pe)];case 2:if(!!ge.sent())return[3,4];if(this._log.isDebugEnabled()){this._log.debug("".concat(pe," destroyed and can't be released to the pool ").concat(he," because it is not functional"))}Ae.removeInUse(pe);return[4,this._destroy(pe)];case 3:ge.sent();return[3,5];case 4:if(this._installIdleObserver){this._installIdleObserver(pe,{onError:function(R){ye._log.debug("Idle connection ".concat(pe," destroyed because of error: ").concat(R));var Ae=ye._pools[he];if(Ae){ye._pools[he]=Ae.filter((function(R){return R!==pe}));Ae.removeInUse(pe)}ye._destroy(pe).catch((function(){}))}})}Ae.push(pe);if(this._log.isDebugEnabled()){this._log.debug("".concat(pe," released to the pool ").concat(he))}ge.label=5;case 5:return[3,8];case 6:if(this._log.isDebugEnabled()){this._log.debug("".concat(pe," destroyed and can't be released to the pool ").concat(he," because pool has been purged"))}Ae.removeInUse(pe);return[4,this._destroy(pe)];case 7:ge.sent();ge.label=8;case 8:return[3,10];case 9:resourceReleased(he,this._activeResourceCounts);this._processPendingAcquireRequests(R);return[7];case 10:return[2]}}))}))};Pool.prototype._purgeKey=function(R){return he(this,void 0,void 0,(function(){var pe,Ae,he;return ge(this,(function(ge){switch(ge.label){case 0:pe=this._pools[R];Ae=[];if(!pe)return[3,2];while(pe.length){he=pe.pop();if(this._removeIdleObserver){this._removeIdleObserver(he)}Ae.push(this._destroy(he))}pe.close();delete this._pools[R];return[4,Promise.all(Ae)];case 1:ge.sent();ge.label=2;case 2:return[2]}}))}))};Pool.prototype._processPendingAcquireRequests=function(R){var pe=this;var Ae=R.asKey();var he=this._acquireRequests[Ae];if(he){var ge=he.shift();if(ge){this._acquire(ge.context,R,ge.requireNew).catch((function(R){ge.reject(R);return{resource:null}})).then((function(he){var ye=he.resource,me=he.pool;if(ye){if(ge.isCompleted()){pe._release(R,ye,me)}else{ge.resolve(ye)}}else{if(!ge.isCompleted()){if(!pe._acquireRequests[Ae]){pe._acquireRequests[Ae]=[]}pe._acquireRequests[Ae].unshift(ge)}}}))}else{delete this._acquireRequests[Ae]}}};return Pool}();function resourceAcquired(R,pe){var Ae=pe[R]||0;pe[R]=Ae+1}function resourceReleased(R,pe){var Ae=pe[R]||0;var he=Ae-1;if(he>0){pe[R]=he}else{delete pe[R]}}var Ce=function(){function PendingRequest(R,pe,Ae,he,ge,ye,me){this._key=R;this._context=pe;this._resolve=he;this._reject=ge;this._timeoutId=ye;this._log=me;this._completed=false;this._config=Ae||{}}Object.defineProperty(PendingRequest.prototype,"context",{get:function(){return this._context},enumerable:false,configurable:true});Object.defineProperty(PendingRequest.prototype,"requireNew",{get:function(){return this._config.requireNew||false},enumerable:false,configurable:true});PendingRequest.prototype.isCompleted=function(){return this._completed};PendingRequest.prototype.resolve=function(R){if(this._completed){return}this._completed=true;clearTimeout(this._timeoutId);if(this._log.isDebugEnabled()){this._log.debug("".concat(R," acquired from the pool ").concat(this._key))}this._resolve(R)};PendingRequest.prototype.reject=function(R){if(this._completed){return}this._completed=true;clearTimeout(this._timeoutId);this._reject(R)};return PendingRequest}();var we=function(){function SingleAddressPool(){this._active=true;this._elements=[];this._elementsInUse=new Set}SingleAddressPool.prototype.isActive=function(){return this._active};SingleAddressPool.prototype.close=function(){this._active=false;this._elements=[];this._elementsInUse=new Set};SingleAddressPool.prototype.filter=function(R){this._elements=this._elements.filter(R);return this};SingleAddressPool.prototype.apply=function(R){this._elements.forEach(R);this._elementsInUse.forEach(R)};Object.defineProperty(SingleAddressPool.prototype,"length",{get:function(){return this._elements.length},enumerable:false,configurable:true});SingleAddressPool.prototype.pop=function(){var R=this._elements.pop();this._elementsInUse.add(R);return R};SingleAddressPool.prototype.push=function(R){this._elementsInUse.delete(R);return this._elements.push(R)};SingleAddressPool.prototype.pushInUse=function(R){this._elementsInUse.add(R)};SingleAddressPool.prototype.removeInUse=function(R){this._elementsInUse.delete(R)};return SingleAddressPool}();pe["default"]=Ee},47845:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.RoutingTable=pe.Rediscovery=void 0;var ge=he(Ae(73159));pe.Rediscovery=ge.default;var ye=he(Ae(36478));pe.RoutingTable=ye.default;pe["default"]=ge.default},73159:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ge=he(Ae(36478));var ye=Ae(55065);var me=function(){function Rediscovery(R){this._routingContext=R}Rediscovery.prototype.lookupRoutingTableOnRouter=function(R,pe,Ae,he){var ye=this;return R._acquireConnection((function(me){return ye._requestRawRoutingTable(me,R,pe,Ae,he).then((function(R){if(R.isNull){return null}return ge.default.fromRawRoutingTable(pe,Ae,R)}))}))};Rediscovery.prototype._requestRawRoutingTable=function(R,pe,Ae,he,ge){var ye=this;return new Promise((function(he,me){R.protocol().requestRoutingInformation({routingContext:ye._routingContext,databaseName:Ae,impersonatedUser:ge,sessionContext:{bookmarks:pe._lastBookmarks,mode:pe._mode,database:pe._database,afterComplete:pe._onComplete},onCompleted:he,onError:me})}))};return Rediscovery}();pe["default"]=me},36478:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;he0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae={basic:function(R,pe,Ae){if(Ae!=null){return{scheme:"basic",principal:R,credentials:pe,realm:Ae}}else{return{scheme:"basic",principal:R,credentials:pe}}},kerberos:function(R){return{scheme:"kerberos",principal:"",credentials:R}},bearer:function(R){return{scheme:"bearer",credentials:R}},none:function(){return{scheme:"none"}},custom:function(R,pe,Ae,he,ge){var ye={scheme:he,principal:R};if(isNotEmpty(pe)){ye.credentials=pe}if(isNotEmpty(Ae)){ye.realm=Ae}if(isNotEmpty(ge)){ye.parameters=ge}return ye}};function isNotEmpty(R){return!(R===null||R===undefined||R===""||Object.getPrototypeOf(R)===Object.prototype&&Object.keys(R).length===0)}pe["default"]=Ae},81445:function(R,pe){"use strict";var Ae=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var he=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};var ye=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var me=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;he0)&&R.filter(pe).length===R.length}function isStringOrNotPresent(R,pe){return!(R in pe)||pe[R]==null||typeof pe[R]==="string"}var Se=function(){function InternalRotatingClientCertificateProvider(R,pe){if(pe===void 0){pe=false}this._certificate=R;this._updated=pe}InternalRotatingClientCertificateProvider.prototype.hasUpdate=function(){try{return this._updated}finally{this._updated=false}};InternalRotatingClientCertificateProvider.prototype.getClientCertificate=function(){return this._certificate};InternalRotatingClientCertificateProvider.prototype.updateCertificate=function(R){if(!isClientClientCertificate(R)){throw new TypeError("certificate should be ClientCertificate, but got ".concat(be.stringify(R)))}this._certificate=ge({},R);this._updated=true};return InternalRotatingClientCertificateProvider}()},50651:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Releasable=void 0;var Ae=function(){function Releasable(){}Releasable.prototype.release=function(){throw new Error("Not implemented")};return Releasable}();pe.Releasable=Ae;var he=function(){function ConnectionProvider(){}ConnectionProvider.prototype.acquireConnection=function(R){throw Error("Not implemented")};ConnectionProvider.prototype.supportsMultiDb=function(){throw Error("Not implemented")};ConnectionProvider.prototype.supportsTransactionConfig=function(){throw Error("Not implemented")};ConnectionProvider.prototype.supportsUserImpersonation=function(){throw Error("Not implemented")};ConnectionProvider.prototype.supportsSessionAuth=function(){throw Error("Not implemented")};ConnectionProvider.prototype.verifyConnectivityAndGetServerInfo=function(R){throw Error("Not implemented")};ConnectionProvider.prototype.verifyAuthentication=function(R){throw Error("Not implemented")};ConnectionProvider.prototype.getNegotiatedProtocolVersion=function(){throw Error("Not Implemented")};ConnectionProvider.prototype.close=function(){throw Error("Not implemented")};return ConnectionProvider}();pe["default"]=he},10985:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function Connection(){}Connection.prototype.beginTransaction=function(R){throw new Error("Not implemented")};Connection.prototype.run=function(R,pe,Ae){throw new Error("Not implemented")};Connection.prototype.commitTransaction=function(R){throw new Error("Not implemented")};Connection.prototype.rollbackTransaction=function(R){throw new Error("Not implemented")};Connection.prototype.resetAndFlush=function(){throw new Error("Not implemented")};Connection.prototype.isOpen=function(){throw new Error("Not implemented")};Connection.prototype.getProtocolVersion=function(){throw new Error("Not implemented")};Connection.prototype.hasOngoingObservableRequests=function(){throw new Error("Not implemented")};return Connection}();pe["default"]=Ae},92148:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0||Ae===0){return Ae}else if(Ae<0){return Number.MAX_SAFE_INTEGER}else{return pe}}function validateFetchSizeValue(R,pe){var Ae=parseInt(R,10);if(Ae>0||Ae===be.FETCH_ALL){return Ae}else if(Ae===0||Ae<0){throw new Error("The fetch size can only be a positive value or ".concat(be.FETCH_ALL," for ALL. However fetchSize = ").concat(Ae))}else{return pe}}function extractConnectionTimeout(R){var pe=parseInt(R.connectionTimeout,10);if(pe===0){return null}else if(!isNaN(pe)&&pe<0){return null}else if(isNaN(pe)){return be.DEFAULT_CONNECTION_TIMEOUT_MILLIS}else{return pe}}function validateConnectionLivenessCheckTimeoutSizeValue(R){if(R==null){return undefined}var pe=parseInt(R,10);if(pe<0||Number.isNaN(pe)){throw new Error("The connectionLivenessCheckTimeout can only be a positive value or 0 for always. However connectionLivenessCheckTimeout = ".concat(pe))}return pe}function createHostNameResolver(R){return new ve.default(R.resolver)}pe["default"]=je},5542:function(R,pe){"use strict";var Ae=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.PROTOCOL_ERROR=pe.SESSION_EXPIRED=pe.SERVICE_UNAVAILABLE=pe.Neo4jError=pe.isRetriableError=pe.newError=void 0;var he="ServiceUnavailable";pe.SERVICE_UNAVAILABLE=he;var ge="SessionExpired";pe.SESSION_EXPIRED=ge;var ye="ProtocolError";pe.PROTOCOL_ERROR=ye;var me="N/A";var ve=function(R){Ae(Neo4jError,R);function Neo4jError(pe,Ae,he){var ge=R.call(this,pe,he!=null?{cause:he}:undefined)||this;ge.constructor=Neo4jError;ge.__proto__=Neo4jError.prototype;ge.code=Ae;ge.name="Neo4jError";ge.retriable=_isRetriableCode(Ae);return ge}Neo4jError.isRetriable=function(R){return R!==null&&R!==undefined&&R instanceof Neo4jError&&R.retriable};return Neo4jError}(Error);pe.Neo4jError=ve;function newError(R,pe,Ae){return new ve(R,pe!==null&&pe!==void 0?pe:me,Ae)}pe.newError=newError;var be=ve.isRetriable;pe.isRetriableError=be;function _isRetriableCode(R){return R===he||R===ge||_isAuthorizationExpired(R)||_isTransientError(R)}function _isTransientError(R){return(R===null||R===void 0?void 0:R.includes("TransientError"))===true}function _isAuthorizationExpired(R){return R==="Neo.ClientError.Security.AuthorizationExpired"}},86847:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isPathSegment=pe.PathSegment=pe.isPath=pe.Path=pe.isUnboundRelationship=pe.UnboundRelationship=pe.isRelationship=pe.Relationship=pe.isNode=pe.Node=void 0;var he=Ae(86322);var ge={value:true,enumerable:false,configurable:false,writable:false};var ye="__isNode__";var me="__isRelationship__";var ve="__isUnboundRelationship__";var be="__isPath__";var Ee="__isPathSegment__";function hasIdentifierProperty(R,pe){return R!=null&&R[pe]===true}var Ce=function(){function Node(R,pe,Ae,he){this.identity=R;this.labels=pe;this.properties=Ae;this.elementId=_valueOrGetDefault(he,(function(){return R.toString()}))}Node.prototype.toString=function(){var R="("+this.elementId;for(var pe=0;pe0){R+=" {";for(var pe=0;pe0)R+=",";R+=Ae[pe]+":"+(0,he.stringify)(this.properties[Ae[pe]])}R+="}"}R+=")";return R};return Node}();pe.Node=Ce;Object.defineProperty(Ce.prototype,ye,ge);function isNode(R){return hasIdentifierProperty(R,ye)}pe.isNode=isNode;var we=function(){function Relationship(R,pe,Ae,he,ge,ye,me,ve){this.identity=R;this.start=pe;this.end=Ae;this.type=he;this.properties=ge;this.elementId=_valueOrGetDefault(ye,(function(){return R.toString()}));this.startNodeElementId=_valueOrGetDefault(me,(function(){return pe.toString()}));this.endNodeElementId=_valueOrGetDefault(ve,(function(){return Ae.toString()}))}Relationship.prototype.toString=function(){var R="("+this.startNodeElementId+")-[:"+this.type;var pe=Object.keys(this.properties);if(pe.length>0){R+=" {";for(var Ae=0;Ae0)R+=",";R+=pe[Ae]+":"+(0,he.stringify)(this.properties[pe[Ae]])}R+="}"}R+="]->("+this.endNodeElementId+")";return R};return Relationship}();pe.Relationship=we;Object.defineProperty(we.prototype,me,ge);function isRelationship(R){return hasIdentifierProperty(R,me)}pe.isRelationship=isRelationship;var _e=function(){function UnboundRelationship(R,pe,Ae,he){this.identity=R;this.type=pe;this.properties=Ae;this.elementId=_valueOrGetDefault(he,(function(){return R.toString()}))}UnboundRelationship.prototype.bind=function(R,pe){return new we(this.identity,R,pe,this.type,this.properties,this.elementId)};UnboundRelationship.prototype.bindTo=function(R,pe){return new we(this.identity,R.identity,pe.identity,this.type,this.properties,this.elementId,R.elementId,pe.elementId)};UnboundRelationship.prototype.toString=function(){var R="-[:"+this.type;var pe=Object.keys(this.properties);if(pe.length>0){R+=" {";for(var Ae=0;Ae0)R+=",";R+=pe[Ae]+":"+(0,he.stringify)(this.properties[pe[Ae]])}R+="}"}R+="]->";return R};return UnboundRelationship}();pe.UnboundRelationship=_e;Object.defineProperty(_e.prototype,ve,ge);function isUnboundRelationship(R){return hasIdentifierProperty(R,ve)}pe.isUnboundRelationship=isUnboundRelationship;var Ie=function(){function PathSegment(R,pe,Ae){this.start=R;this.relationship=pe;this.end=Ae}return PathSegment}();pe.PathSegment=Ie;Object.defineProperty(Ie.prototype,Ee,ge);function isPathSegment(R){return hasIdentifierProperty(R,Ee)}pe.isPathSegment=isPathSegment;var Se=function(){function Path(R,pe,Ae){this.start=R;this.end=pe;this.segments=Ae;this.length=Ae.length}return Path}();pe.Path=Se;Object.defineProperty(Se.prototype,be,ge);function isPath(R){return hasIdentifierProperty(R,be)}pe.isPath=isPath;function _valueOrGetDefault(R,pe){return R===undefined||R===null?pe():R}},55065:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.Releasable=pe.ConnectionProvider=pe.EagerResult=pe.Result=pe.Stats=pe.QueryStatistics=pe.ProfiledPlan=pe.Plan=pe.GqlStatusObject=pe.Notification=pe.ServerInfo=pe.queryType=pe.ResultSummary=pe.Record=pe.isPathSegment=pe.PathSegment=pe.isPath=pe.Path=pe.isUnboundRelationship=pe.UnboundRelationship=pe.isRelationship=pe.Relationship=pe.isNode=pe.Node=pe.Time=pe.LocalTime=pe.LocalDateTime=pe.isTime=pe.isLocalTime=pe.isLocalDateTime=pe.isDuration=pe.isDateTime=pe.isDate=pe.Duration=pe.DateTime=pe.Date=pe.Point=pe.isPoint=pe.internal=pe.toString=pe.toNumber=pe.inSafeRange=pe.isInt=pe.int=pe.Integer=pe.error=pe.isRetriableError=pe.Neo4jError=pe.newError=pe.authTokenManagers=void 0;pe.resolveCertificateProvider=pe.clientCertificateProviders=pe.notificationFilterMinimumSeverityLevel=pe.notificationFilterDisabledClassification=pe.notificationFilterDisabledCategory=pe.notificationSeverityLevel=pe.notificationClassification=pe.notificationCategory=pe.resultTransformers=pe.routing=pe.staticAuthTokenManager=pe.bookmarkManager=pe.auth=pe.json=pe.driver=pe.types=pe.Driver=pe.Session=pe.TransactionPromise=pe.ManagedTransaction=pe.Transaction=pe.Connection=void 0;var ve=Ae(5542);Object.defineProperty(pe,"newError",{enumerable:true,get:function(){return ve.newError}});Object.defineProperty(pe,"Neo4jError",{enumerable:true,get:function(){return ve.Neo4jError}});Object.defineProperty(pe,"isRetriableError",{enumerable:true,get:function(){return ve.isRetriableError}});var be=ye(Ae(6049));pe.Integer=be.default;Object.defineProperty(pe,"int",{enumerable:true,get:function(){return be.int}});Object.defineProperty(pe,"isInt",{enumerable:true,get:function(){return be.isInt}});Object.defineProperty(pe,"inSafeRange",{enumerable:true,get:function(){return be.inSafeRange}});Object.defineProperty(pe,"toNumber",{enumerable:true,get:function(){return be.toNumber}});Object.defineProperty(pe,"toString",{enumerable:true,get:function(){return be.toString}});var Ee=Ae(45797);Object.defineProperty(pe,"Date",{enumerable:true,get:function(){return Ee.Date}});Object.defineProperty(pe,"DateTime",{enumerable:true,get:function(){return Ee.DateTime}});Object.defineProperty(pe,"Duration",{enumerable:true,get:function(){return Ee.Duration}});Object.defineProperty(pe,"isDate",{enumerable:true,get:function(){return Ee.isDate}});Object.defineProperty(pe,"isDateTime",{enumerable:true,get:function(){return Ee.isDateTime}});Object.defineProperty(pe,"isDuration",{enumerable:true,get:function(){return Ee.isDuration}});Object.defineProperty(pe,"isLocalDateTime",{enumerable:true,get:function(){return Ee.isLocalDateTime}});Object.defineProperty(pe,"isLocalTime",{enumerable:true,get:function(){return Ee.isLocalTime}});Object.defineProperty(pe,"isTime",{enumerable:true,get:function(){return Ee.isTime}});Object.defineProperty(pe,"LocalDateTime",{enumerable:true,get:function(){return Ee.LocalDateTime}});Object.defineProperty(pe,"LocalTime",{enumerable:true,get:function(){return Ee.LocalTime}});Object.defineProperty(pe,"Time",{enumerable:true,get:function(){return Ee.Time}});var Ce=Ae(86847);Object.defineProperty(pe,"Node",{enumerable:true,get:function(){return Ce.Node}});Object.defineProperty(pe,"isNode",{enumerable:true,get:function(){return Ce.isNode}});Object.defineProperty(pe,"Relationship",{enumerable:true,get:function(){return Ce.Relationship}});Object.defineProperty(pe,"isRelationship",{enumerable:true,get:function(){return Ce.isRelationship}});Object.defineProperty(pe,"UnboundRelationship",{enumerable:true,get:function(){return Ce.UnboundRelationship}});Object.defineProperty(pe,"isUnboundRelationship",{enumerable:true,get:function(){return Ce.isUnboundRelationship}});Object.defineProperty(pe,"Path",{enumerable:true,get:function(){return Ce.Path}});Object.defineProperty(pe,"isPath",{enumerable:true,get:function(){return Ce.isPath}});Object.defineProperty(pe,"PathSegment",{enumerable:true,get:function(){return Ce.PathSegment}});Object.defineProperty(pe,"isPathSegment",{enumerable:true,get:function(){return Ce.isPathSegment}});var we=me(Ae(62918));pe.Record=we.default;var _e=Ae(66364);Object.defineProperty(pe,"isPoint",{enumerable:true,get:function(){return _e.isPoint}});Object.defineProperty(pe,"Point",{enumerable:true,get:function(){return _e.Point}});var Ie=ye(Ae(1381));pe.ResultSummary=Ie.default;Object.defineProperty(pe,"queryType",{enumerable:true,get:function(){return Ie.queryType}});Object.defineProperty(pe,"ServerInfo",{enumerable:true,get:function(){return Ie.ServerInfo}});Object.defineProperty(pe,"Plan",{enumerable:true,get:function(){return Ie.Plan}});Object.defineProperty(pe,"ProfiledPlan",{enumerable:true,get:function(){return Ie.ProfiledPlan}});Object.defineProperty(pe,"QueryStatistics",{enumerable:true,get:function(){return Ie.QueryStatistics}});Object.defineProperty(pe,"Stats",{enumerable:true,get:function(){return Ie.Stats}});var Se=ye(Ae(64777));pe.Notification=Se.default;Object.defineProperty(pe,"GqlStatusObject",{enumerable:true,get:function(){return Se.GqlStatusObject}});Object.defineProperty(pe,"notificationCategory",{enumerable:true,get:function(){return Se.notificationCategory}});Object.defineProperty(pe,"notificationClassification",{enumerable:true,get:function(){return Se.notificationClassification}});Object.defineProperty(pe,"notificationSeverityLevel",{enumerable:true,get:function(){return Se.notificationSeverityLevel}});var Be=Ae(66007);Object.defineProperty(pe,"notificationFilterDisabledCategory",{enumerable:true,get:function(){return Be.notificationFilterDisabledCategory}});Object.defineProperty(pe,"notificationFilterDisabledClassification",{enumerable:true,get:function(){return Be.notificationFilterDisabledClassification}});Object.defineProperty(pe,"notificationFilterMinimumSeverityLevel",{enumerable:true,get:function(){return Be.notificationFilterMinimumSeverityLevel}});var ke=me(Ae(58536));pe.Result=ke.default;var Oe=me(Ae(6391));pe.EagerResult=Oe.default;var Re=ye(Ae(50651));pe.ConnectionProvider=Re.default;Object.defineProperty(pe,"Releasable",{enumerable:true,get:function(){return Re.Releasable}});var Qe=me(Ae(10985));pe.Connection=Qe.default;var xe=me(Ae(32241));pe.Transaction=xe.default;var Pe=me(Ae(93169));pe.ManagedTransaction=Pe.default;var Te=me(Ae(37269));pe.TransactionPromise=Te.default;var De=me(Ae(55739));pe.Session=De.default;var Ne=ye(Ae(92148)),Me=Ne;pe.Driver=Ne.default;pe.driver=Me;var je=me(Ae(8841));pe.auth=je.default;var Fe=Ae(81445);Object.defineProperty(pe,"bookmarkManager",{enumerable:true,get:function(){return Fe.bookmarkManager}});var Le=Ae(57432);Object.defineProperty(pe,"authTokenManagers",{enumerable:true,get:function(){return Le.authTokenManagers}});Object.defineProperty(pe,"staticAuthTokenManager",{enumerable:true,get:function(){return Le.staticAuthTokenManager}});var Ue=Ae(92148);Object.defineProperty(pe,"routing",{enumerable:true,get:function(){return Ue.routing}});var He=ye(Ae(47558));pe.types=He;var Je=ye(Ae(86322));pe.json=Je;var We=me(Ae(36584));pe.resultTransformers=We.default;var Ve=Ae(65177);Object.defineProperty(pe,"clientCertificateProviders",{enumerable:true,get:function(){return Ve.clientCertificateProviders}});Object.defineProperty(pe,"resolveCertificateProvider",{enumerable:true,get:function(){return Ve.resolveCertificateProvider}});var Ke=ye(Ae(9318));pe.internal=Ke;var Ge={SERVICE_UNAVAILABLE:ve.SERVICE_UNAVAILABLE,SESSION_EXPIRED:ve.SESSION_EXPIRED,PROTOCOL_ERROR:ve.PROTOCOL_ERROR};pe.error=Ge;var Ye={authTokenManagers:Le.authTokenManagers,newError:ve.newError,Neo4jError:ve.Neo4jError,isRetriableError:ve.isRetriableError,error:Ge,Integer:be.default,int:be.int,isInt:be.isInt,inSafeRange:be.inSafeRange,toNumber:be.toNumber,toString:be.toString,internal:Ke,isPoint:_e.isPoint,Point:_e.Point,Date:Ee.Date,DateTime:Ee.DateTime,Duration:Ee.Duration,isDate:Ee.isDate,isDateTime:Ee.isDateTime,isDuration:Ee.isDuration,isLocalDateTime:Ee.isLocalDateTime,isLocalTime:Ee.isLocalTime,isTime:Ee.isTime,LocalDateTime:Ee.LocalDateTime,LocalTime:Ee.LocalTime,Time:Ee.Time,Node:Ce.Node,isNode:Ce.isNode,Relationship:Ce.Relationship,isRelationship:Ce.isRelationship,UnboundRelationship:Ce.UnboundRelationship,isUnboundRelationship:Ce.isUnboundRelationship,Path:Ce.Path,isPath:Ce.isPath,PathSegment:Ce.PathSegment,isPathSegment:Ce.isPathSegment,Record:we.default,ResultSummary:Ie.default,queryType:Ie.queryType,ServerInfo:Ie.ServerInfo,Notification:Se.default,GqlStatusObject:Se.GqlStatusObject,Plan:Ie.Plan,ProfiledPlan:Ie.ProfiledPlan,QueryStatistics:Ie.QueryStatistics,Stats:Ie.Stats,Result:ke.default,EagerResult:Oe.default,Transaction:xe.default,ManagedTransaction:Pe.default,TransactionPromise:Te.default,Session:De.default,Driver:Ne.default,Connection:Qe.default,Releasable:Re.Releasable,types:He,driver:Me,json:Je,auth:je.default,bookmarkManager:Fe.bookmarkManager,routing:Ue.routing,resultTransformers:We.default,notificationCategory:Se.notificationCategory,notificationClassification:Se.notificationClassification,notificationSeverityLevel:Se.notificationSeverityLevel,notificationFilterDisabledCategory:Be.notificationFilterDisabledCategory,notificationFilterDisabledClassification:Be.notificationFilterDisabledClassification,notificationFilterMinimumSeverityLevel:Be.notificationFilterMinimumSeverityLevel,clientCertificateProviders:Ve.clientCertificateProviders,resolveCertificateProvider:Ve.resolveCertificateProvider};pe["default"]=Ye},6049:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.toString=pe.toNumber=pe.inSafeRange=pe.isInt=pe.int=void 0;var he=Ae(5542);var ge=new Map;var ye=function(){function Integer(R,pe){this.low=R!==null&&R!==void 0?R:0;this.high=pe!==null&&pe!==void 0?pe:0}Integer.prototype.inSafeRange=function(){return this.greaterThanOrEqual(Integer.MIN_SAFE_VALUE)&&this.lessThanOrEqual(Integer.MAX_SAFE_VALUE)};Integer.prototype.toInt=function(){return this.low};Integer.prototype.toNumber=function(){return this.high*be+(this.low>>>0)};Integer.prototype.toBigInt=function(){if(this.isZero()){return BigInt(0)}else if(this.isPositive()){return BigInt(this.high>>>0)*BigInt(be)+BigInt(this.low>>>0)}else{var R=this.negate();return BigInt(-1)*(BigInt(R.high>>>0)*BigInt(be)+BigInt(R.low>>>0))}};Integer.prototype.toNumberOrInfinity=function(){if(this.lessThan(Integer.MIN_SAFE_VALUE)){return Number.NEGATIVE_INFINITY}else if(this.greaterThan(Integer.MAX_SAFE_VALUE)){return Number.POSITIVE_INFINITY}else{return this.toNumber()}};Integer.prototype.toString=function(R){R=R!==null&&R!==void 0?R:10;if(R<2||R>36){throw RangeError("radix out of range: "+R.toString())}if(this.isZero()){return"0"}var pe;if(this.isNegative()){if(this.equals(Integer.MIN_VALUE)){var Ae=Integer.fromNumber(R);var he=this.div(Ae);pe=he.multiply(Ae).subtract(this);return he.toString(R)+pe.toInt().toString(R)}else{return"-"+this.negate().toString(R)}}var ge=Integer.fromNumber(Math.pow(R,6));pe=this;var ye="";while(true){var me=pe.div(ge);var ve=pe.subtract(me.multiply(ge)).toInt()>>>0;var be=ve.toString(R);pe=me;if(pe.isZero()){return be+ye}else{while(be.length<6){be="0"+be}ye=""+be+ye}}};Integer.prototype.valueOf=function(){return this.toBigInt()};Integer.prototype.getHighBits=function(){return this.high};Integer.prototype.getLowBits=function(){return this.low};Integer.prototype.getNumBitsAbs=function(){if(this.isNegative()){return this.equals(Integer.MIN_VALUE)?64:this.negate().getNumBitsAbs()}var R=this.high!==0?this.high:this.low;var pe=0;for(pe=31;pe>0;pe--){if((R&1<=0};Integer.prototype.isOdd=function(){return(this.low&1)===1};Integer.prototype.isEven=function(){return(this.low&1)===0};Integer.prototype.equals=function(R){var pe=Integer.fromValue(R);return this.high===pe.high&&this.low===pe.low};Integer.prototype.notEquals=function(R){return!this.equals(R)};Integer.prototype.lessThan=function(R){return this.compare(R)<0};Integer.prototype.lessThanOrEqual=function(R){return this.compare(R)<=0};Integer.prototype.greaterThan=function(R){return this.compare(R)>0};Integer.prototype.greaterThanOrEqual=function(R){return this.compare(R)>=0};Integer.prototype.compare=function(R){var pe=Integer.fromValue(R);if(this.equals(pe)){return 0}var Ae=this.isNegative();var he=pe.isNegative();if(Ae&&!he){return-1}if(!Ae&&he){return 1}return this.subtract(pe).isNegative()?-1:1};Integer.prototype.negate=function(){if(this.equals(Integer.MIN_VALUE)){return Integer.MIN_VALUE}return this.not().add(Integer.ONE)};Integer.prototype.add=function(R){var pe=Integer.fromValue(R);var Ae=this.high>>>16;var he=this.high&65535;var ge=this.low>>>16;var ye=this.low&65535;var me=pe.high>>>16;var ve=pe.high&65535;var be=pe.low>>>16;var Ee=pe.low&65535;var Ce=0;var we=0;var _e=0;var Ie=0;Ie+=ye+Ee;_e+=Ie>>>16;Ie&=65535;_e+=ge+be;we+=_e>>>16;_e&=65535;we+=he+ve;Ce+=we>>>16;we&=65535;Ce+=Ae+me;Ce&=65535;return Integer.fromBits(_e<<16|Ie,Ce<<16|we)};Integer.prototype.subtract=function(R){var pe=Integer.fromValue(R);return this.add(pe.negate())};Integer.prototype.multiply=function(R){if(this.isZero()){return Integer.ZERO}var pe=Integer.fromValue(R);if(pe.isZero()){return Integer.ZERO}if(this.equals(Integer.MIN_VALUE)){return pe.isOdd()?Integer.MIN_VALUE:Integer.ZERO}if(pe.equals(Integer.MIN_VALUE)){return this.isOdd()?Integer.MIN_VALUE:Integer.ZERO}if(this.isNegative()){if(pe.isNegative()){return this.negate().multiply(pe.negate())}else{return this.negate().multiply(pe).negate()}}else if(pe.isNegative()){return this.multiply(pe.negate()).negate()}if(this.lessThan(we)&&pe.lessThan(we)){return Integer.fromNumber(this.toNumber()*pe.toNumber())}var Ae=this.high>>>16;var he=this.high&65535;var ge=this.low>>>16;var ye=this.low&65535;var me=pe.high>>>16;var ve=pe.high&65535;var be=pe.low>>>16;var Ee=pe.low&65535;var Ce=0;var _e=0;var Ie=0;var Se=0;Se+=ye*Ee;Ie+=Se>>>16;Se&=65535;Ie+=ge*Ee;_e+=Ie>>>16;Ie&=65535;Ie+=ye*be;_e+=Ie>>>16;Ie&=65535;_e+=he*Ee;Ce+=_e>>>16;_e&=65535;_e+=ge*be;Ce+=_e>>>16;_e&=65535;_e+=ye*ve;Ce+=_e>>>16;_e&=65535;Ce+=Ae*Ee+he*be+ge*ve+ye*me;Ce&=65535;return Integer.fromBits(Ie<<16|Se,Ce<<16|_e)};Integer.prototype.div=function(R){var pe=Integer.fromValue(R);if(pe.isZero()){throw(0,he.newError)("division by zero")}if(this.isZero()){return Integer.ZERO}var Ae,ge,ye;if(this.equals(Integer.MIN_VALUE)){if(pe.equals(Integer.ONE)||pe.equals(Integer.NEG_ONE)){return Integer.MIN_VALUE}if(pe.equals(Integer.MIN_VALUE)){return Integer.ONE}else{var me=this.shiftRight(1);Ae=me.div(pe).shiftLeft(1);if(Ae.equals(Integer.ZERO)){return pe.isNegative()?Integer.ONE:Integer.NEG_ONE}else{ge=this.subtract(pe.multiply(Ae));ye=Ae.add(ge.div(pe));return ye}}}else if(pe.equals(Integer.MIN_VALUE)){return Integer.ZERO}if(this.isNegative()){if(pe.isNegative()){return this.negate().div(pe.negate())}return this.negate().div(pe).negate()}else if(pe.isNegative()){return this.div(pe.negate()).negate()}ye=Integer.ZERO;ge=this;while(ge.greaterThanOrEqual(pe)){Ae=Math.max(1,Math.floor(ge.toNumber()/pe.toNumber()));var ve=Math.ceil(Math.log(Ae)/Math.LN2);var be=ve<=48?1:Math.pow(2,ve-48);var Ee=Integer.fromNumber(Ae);var Ce=Ee.multiply(pe);while(Ce.isNegative()||Ce.greaterThan(ge)){Ae-=be;Ee=Integer.fromNumber(Ae);Ce=Ee.multiply(pe)}if(Ee.isZero()){Ee=Integer.ONE}ye=ye.add(Ee);ge=ge.subtract(Ce)}return ye};Integer.prototype.modulo=function(R){var pe=Integer.fromValue(R);return this.subtract(this.div(pe).multiply(pe))};Integer.prototype.not=function(){return Integer.fromBits(~this.low,~this.high)};Integer.prototype.and=function(R){var pe=Integer.fromValue(R);return Integer.fromBits(this.low&pe.low,this.high&pe.high)};Integer.prototype.or=function(R){var pe=Integer.fromValue(R);return Integer.fromBits(this.low|pe.low,this.high|pe.high)};Integer.prototype.xor=function(R){var pe=Integer.fromValue(R);return Integer.fromBits(this.low^pe.low,this.high^pe.high)};Integer.prototype.shiftLeft=function(R){var pe=Integer.toNumber(R);if((pe&=63)===0){return Integer.ZERO}else if(pe<32){return Integer.fromBits(this.low<>>32-pe)}else{return Integer.fromBits(0,this.low<>>pe|this.high<<32-pe,this.high>>pe)}else{return Integer.fromBits(this.high>>pe-32,this.high>=0?0:-1)}};Integer.isInteger=function(R){return(R===null||R===void 0?void 0:R.__isInteger__)===true};Integer.fromInt=function(R){var pe;R=R|0;if(R>=-128&&R<128){pe=ge.get(R);if(pe!=null){return pe}}var Ae=new Integer(R,R<0?-1:0);if(R>=-128&&R<128){ge.set(R,Ae)}return Ae};Integer.fromBits=function(R,pe){return new Integer(R,pe)};Integer.fromNumber=function(R){if(isNaN(R)||!isFinite(R)){return Integer.ZERO}if(R<=-Ce){return Integer.MIN_VALUE}if(R+1>=Ce){return Integer.MAX_VALUE}if(R<0){return Integer.fromNumber(-R).negate()}return new Integer(R%be|0,R/be|0)};Integer.fromString=function(R,pe,Ae){var ge=Ae===void 0?{}:Ae,ye=ge.strictStringValidation;if(R.length===0){throw(0,he.newError)("number format error: empty string")}if(R==="NaN"||R==="Infinity"||R==="+Infinity"||R==="-Infinity"){return Integer.ZERO}pe=pe!==null&&pe!==void 0?pe:10;if(pe<2||pe>36){throw(0,he.newError)("radix out of range: "+pe.toString())}var me;if((me=R.indexOf("-"))>0){throw(0,he.newError)('number format error: interior "-" character: '+R)}else if(me===0){return Integer.fromString(R.substring(1),pe).negate()}var ve=Integer.fromNumber(Math.pow(pe,8));var be=Integer.ZERO;for(var Ee=0;Ee{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromVersion=void 0;var he=Ae(22037);function fromVersion(R,pe){if(pe===void 0){pe=function(){return{hostArch:process.config.variables.host_arch,nodeVersion:process.versions.node,v8Version:process.versions.v8,get platform(){return(0,he.platform)()},get release(){return(0,he.release)()}}}}var Ae=pe();var ge=Ae.hostArch;var ye="Node/"+Ae.nodeVersion;var me=Ae.v8Version;var ve="".concat(Ae.platform," ").concat(Ae.release);return{product:"neo4j-javascript/".concat(R),platform:"".concat(ve,"; ").concat(ge),languageDetails:"".concat(ye," (v8 ").concat(me,")")}}pe.fromVersion=fromVersion},17571:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(14874),pe)},54108:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ve=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;he0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TELEMETRY_APIS=pe.BOLT_PROTOCOL_V5_6=pe.BOLT_PROTOCOL_V5_5=pe.BOLT_PROTOCOL_V5_4=pe.BOLT_PROTOCOL_V5_3=pe.BOLT_PROTOCOL_V5_2=pe.BOLT_PROTOCOL_V5_1=pe.BOLT_PROTOCOL_V5_0=pe.BOLT_PROTOCOL_V4_4=pe.BOLT_PROTOCOL_V4_3=pe.BOLT_PROTOCOL_V4_2=pe.BOLT_PROTOCOL_V4_1=pe.BOLT_PROTOCOL_V4_0=pe.BOLT_PROTOCOL_V3=pe.BOLT_PROTOCOL_V2=pe.BOLT_PROTOCOL_V1=pe.DEFAULT_POOL_MAX_SIZE=pe.DEFAULT_POOL_ACQUISITION_TIMEOUT=pe.DEFAULT_CONNECTION_TIMEOUT_MILLIS=pe.ACCESS_MODE_WRITE=pe.ACCESS_MODE_READ=pe.FETCH_ALL=void 0;var Ae=-1;pe.FETCH_ALL=Ae;var he=60*1e3;pe.DEFAULT_POOL_ACQUISITION_TIMEOUT=he;var ge=100;pe.DEFAULT_POOL_MAX_SIZE=ge;var ye=3e4;pe.DEFAULT_CONNECTION_TIMEOUT_MILLIS=ye;var me="READ";pe.ACCESS_MODE_READ=me;var ve="WRITE";pe.ACCESS_MODE_WRITE=ve;var be=1;pe.BOLT_PROTOCOL_V1=be;var Ee=2;pe.BOLT_PROTOCOL_V2=Ee;var Ce=3;pe.BOLT_PROTOCOL_V3=Ce;var we=4;pe.BOLT_PROTOCOL_V4_0=we;var _e=4.1;pe.BOLT_PROTOCOL_V4_1=_e;var Ie=4.2;pe.BOLT_PROTOCOL_V4_2=Ie;var Se=4.3;pe.BOLT_PROTOCOL_V4_3=Se;var Be=4.4;pe.BOLT_PROTOCOL_V4_4=Be;var ke=5;pe.BOLT_PROTOCOL_V5_0=ke;var Oe=5.1;pe.BOLT_PROTOCOL_V5_1=Oe;var Re=5.2;pe.BOLT_PROTOCOL_V5_2=Re;var Qe=5.3;pe.BOLT_PROTOCOL_V5_3=Qe;var xe=5.4;pe.BOLT_PROTOCOL_V5_4=xe;var Pe=5.5;pe.BOLT_PROTOCOL_V5_5=Pe;var Te=5.6;pe.BOLT_PROTOCOL_V5_6=Te;var De={MANAGED_TRANSACTION:0,UNMANAGED_TRANSACTION:1,AUTO_COMMIT_TRANSACTION:2,EXECUTE_QUERY:3};pe.TELEMETRY_APIS=De},9318:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.boltAgent=pe.objectUtil=pe.resolver=pe.serverAddress=pe.urlUtil=pe.logger=pe.transactionExecutor=pe.txConfig=pe.connectionHolder=pe.constants=pe.bookmarks=pe.observer=pe.temporalUtil=pe.util=void 0;var me=ye(Ae(56517));pe.util=me;var ve=ye(Ae(87151));pe.temporalUtil=ve;var be=ye(Ae(95400));pe.observer=be;var Ee=ye(Ae(54108));pe.bookmarks=Ee;var Ce=ye(Ae(8178));pe.constants=Ce;var we=ye(Ae(95461));pe.connectionHolder=we;var _e=ye(Ae(74059));pe.txConfig=_e;var Ie=ye(Ae(59480));pe.transactionExecutor=Ie;var Se=ye(Ae(11425));pe.logger=Se;var Be=ye(Ae(48842));pe.urlUtil=Be;var ke=ye(Ae(19728));pe.serverAddress=ke;var Oe=ye(Ae(19379));pe.resolver=Oe;var Re=ye(Ae(58690));pe.objectUtil=Re;var Qe=ye(Ae(23007));pe.boltAgent=Qe},11425:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge;Object.defineProperty(pe,"__esModule",{value:true});pe.Logger=void 0;var ye=Ae(5542);var me="error";var ve="warn";var be="info";var Ee="debug";var Ce=be;var we=(ge={},ge[me]=0,ge[ve]=1,ge[be]=2,ge[Ee]=3,ge);var _e=function(){function Logger(R,pe){this._level=R;this._loggerFunction=pe}Logger.create=function(R){if((R===null||R===void 0?void 0:R.logging)!=null){var pe=R.logging;var Ae=extractConfiguredLevel(pe);var he=extractConfiguredLogger(pe);return new Logger(Ae,he)}return this.noOp()};Logger.noOp=function(){return Se};Logger.prototype.isErrorEnabled=function(){return isLevelEnabled(this._level,me)};Logger.prototype.error=function(R){if(this.isErrorEnabled()){this._loggerFunction(me,R)}};Logger.prototype.isWarnEnabled=function(){return isLevelEnabled(this._level,ve)};Logger.prototype.warn=function(R){if(this.isWarnEnabled()){this._loggerFunction(ve,R)}};Logger.prototype.isInfoEnabled=function(){return isLevelEnabled(this._level,be)};Logger.prototype.info=function(R){if(this.isInfoEnabled()){this._loggerFunction(be,R)}};Logger.prototype.isDebugEnabled=function(){return isLevelEnabled(this._level,Ee)};Logger.prototype.debug=function(R){if(this.isDebugEnabled()){this._loggerFunction(Ee,R)}};return Logger}();pe.Logger=_e;var Ie=function(R){he(NoOpLogger,R);function NoOpLogger(){return R.call(this,be,(function(R,pe){}))||this}NoOpLogger.prototype.isErrorEnabled=function(){return false};NoOpLogger.prototype.error=function(R){};NoOpLogger.prototype.isWarnEnabled=function(){return false};NoOpLogger.prototype.warn=function(R){};NoOpLogger.prototype.isInfoEnabled=function(){return false};NoOpLogger.prototype.info=function(R){};NoOpLogger.prototype.isDebugEnabled=function(){return false};NoOpLogger.prototype.debug=function(R){};return NoOpLogger}(_e);var Se=new Ie;function isLevelEnabled(R,pe){return we[R]>=we[pe]}function extractConfiguredLevel(R){if((R===null||R===void 0?void 0:R.level)!=null){var pe=R.level;var Ae=we[pe];if(Ae==null&&Ae!==0){throw(0,ye.newError)("Illegal logging level: ".concat(pe,". Supported levels are: ").concat(Object.keys(we).toString()))}return pe}return Ce}function extractConfiguredLogger(R){var pe,Ae;if((R===null||R===void 0?void 0:R.logger)!=null){var he=R.logger;if(he!=null&&typeof he==="function"){return he}}throw(0,ye.newError)("Illegal logger function: ".concat((Ae=(pe=R===null||R===void 0?void 0:R.logger)===null||pe===void 0?void 0:pe.toString())!==null&&Ae!==void 0?Ae:"undefined"))}},58690:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.getBrokenObjectReason=pe.isBrokenObject=pe.createBrokenObject=void 0;var Ae="__isBrokenObject__";var he="__reason__";function createBrokenObject(R,pe){if(pe===void 0){pe={}}var fail=function(){throw R};return new Proxy(pe,{get:function(pe,ge){if(ge===Ae){return true}else if(ge===he){return R}else if(ge==="toJSON"){return undefined}fail()},set:fail,apply:fail,construct:fail,defineProperty:fail,deleteProperty:fail,getOwnPropertyDescriptor:fail,getPrototypeOf:fail,has:fail,isExtensible:fail,ownKeys:fail,preventExtensions:fail,setPrototypeOf:fail})}pe.createBrokenObject=createBrokenObject;function isBrokenObject(R){return R!==null&&typeof R==="object"&&R[Ae]===true}pe.isBrokenObject=isBrokenObject;function getBrokenObjectReason(R){return R[he]}pe.getBrokenObjectReason=getBrokenObjectReason},95400:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FailedObserver=pe.CompletedObserver=void 0;var Ae=function(){function CompletedObserver(){}CompletedObserver.prototype.subscribe=function(R){apply(R,R.onKeys,[]);apply(R,R.onCompleted,{})};CompletedObserver.prototype.cancel=function(){};CompletedObserver.prototype.pause=function(){};CompletedObserver.prototype.resume=function(){};CompletedObserver.prototype.prepareToHandleSingleResponse=function(){};CompletedObserver.prototype.markCompleted=function(){};CompletedObserver.prototype.onError=function(R){throw new Error("CompletedObserver not supposed to call onError",{cause:R})};return CompletedObserver}();pe.CompletedObserver=Ae;var he=function(){function FailedObserver(R){var pe=R.error,Ae=R.onError;this._error=pe;this._beforeError=Ae;this._observers=[];this.onError(pe)}FailedObserver.prototype.subscribe=function(R){apply(R,R.onError,this._error);this._observers.push(R)};FailedObserver.prototype.onError=function(R){apply(this,this._beforeError,R);this._observers.forEach((function(pe){return apply(pe,pe.onError,R)}))};FailedObserver.prototype.cancel=function(){};FailedObserver.prototype.pause=function(){};FailedObserver.prototype.resume=function(){};FailedObserver.prototype.markCompleted=function(){};FailedObserver.prototype.prepareToHandleSingleResponse=function(){};return FailedObserver}();pe.FailedObserver=he;function apply(R,pe,Ae){if(pe!=null){pe.bind(R)(Ae)}}},99051:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function BaseHostNameResolver(){}BaseHostNameResolver.prototype.resolve=function(){throw new Error("Abstract function")};BaseHostNameResolver.prototype._resolveToItself=function(R){return Promise.resolve([R])};return BaseHostNameResolver}();pe["default"]=Ae},51992:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(19728);function resolveToSelf(R){return Promise.resolve([R])}var ge=function(){function ConfiguredCustomResolver(R){this._resolverFunction=R!==null&&R!==void 0?R:resolveToSelf}ConfiguredCustomResolver.prototype.resolve=function(R){var pe=this;return new Promise((function(Ae){return Ae(pe._resolverFunction(R.asHostPort()))})).then((function(R){if(!Array.isArray(R)){throw new TypeError("Configured resolver function should either return an array of addresses or a Promise resolved with an array of addresses."+"Each address is ':'. Got: ".concat(R))}return R.map((function(R){return he.ServerAddress.fromUrl(R)}))}))};return ConfiguredCustomResolver}();pe["default"]=ge},19379:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.ConfiguredCustomResolver=pe.BaseHostNameResolver=void 0;var ge=he(Ae(31061));pe.BaseHostNameResolver=ge.default;var ye=he(Ae(51992));pe.ConfiguredCustomResolver=ye.default},19728:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.ServerAddress=void 0;var me=Ae(56517);var ve=ye(Ae(48842));var be=function(){function ServerAddress(R,pe,Ae,he){this._host=(0,me.assertString)(R,"host");this._resolved=pe!=null?(0,me.assertString)(pe,"resolved"):null;this._port=(0,me.assertNumber)(Ae,"port");this._hostPort=he;this._stringValue=pe!=null?"".concat(he,"(").concat(pe,")"):"".concat(he)}ServerAddress.prototype.host=function(){return this._host};ServerAddress.prototype.resolvedHost=function(){return this._resolved!=null?this._resolved:this._host};ServerAddress.prototype.port=function(){return this._port};ServerAddress.prototype.resolveWith=function(R){return new ServerAddress(this._host,R,this._port,this._hostPort)};ServerAddress.prototype.asHostPort=function(){return this._hostPort};ServerAddress.prototype.asKey=function(){return this._hostPort};ServerAddress.prototype.toString=function(){return this._stringValue};ServerAddress.fromUrl=function(R){var pe=ve.parseDatabaseUrl(R);return new ServerAddress(pe.host,null,pe.port,pe.hostAndPort)};return ServerAddress}();pe.ServerAddress=be},87151:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.floorMod=pe.floorDiv=pe.assertValidZoneId=pe.assertValidNanosecond=pe.assertValidSecond=pe.assertValidMinute=pe.assertValidHour=pe.assertValidDay=pe.assertValidMonth=pe.assertValidYear=pe.timeZoneOffsetInSeconds=pe.totalNanoseconds=pe.newDate=pe.toStandardDate=pe.isoStringToStandardDate=pe.dateToIsoString=pe.timeZoneOffsetToIsoString=pe.timeToIsoString=pe.durationToIsoString=pe.dateToEpochDay=pe.localDateTimeToEpochSecond=pe.localTimeToNanoOfDay=pe.normalizeNanosecondsForDuration=pe.normalizeSecondsForDuration=pe.SECONDS_PER_DAY=pe.DAYS_PER_400_YEAR_CYCLE=pe.DAYS_0000_TO_1970=pe.NANOS_PER_HOUR=pe.NANOS_PER_MINUTE=pe.NANOS_PER_MILLISECOND=pe.NANOS_PER_SECOND=pe.SECONDS_PER_HOUR=pe.SECONDS_PER_MINUTE=pe.MINUTES_PER_HOUR=pe.NANOSECOND_OF_SECOND_RANGE=pe.SECOND_OF_MINUTE_RANGE=pe.MINUTE_OF_HOUR_RANGE=pe.HOUR_OF_DAY_RANGE=pe.DAY_OF_MONTH_RANGE=pe.MONTH_OF_YEAR_RANGE=pe.YEAR_RANGE=void 0;var me=ye(Ae(6049));var ve=Ae(5542);var be=Ae(56517);var Ee=function(){function ValueRange(R,pe){this._minNumber=R;this._maxNumber=pe;this._minInteger=(0,me.int)(R);this._maxInteger=(0,me.int)(pe)}ValueRange.prototype.contains=function(R){if((0,me.isInt)(R)&&R instanceof me.default){return R.greaterThanOrEqual(this._minInteger)&&R.lessThanOrEqual(this._maxInteger)}else if(typeof R==="bigint"){var pe=(0,me.int)(R);return pe.greaterThanOrEqual(this._minInteger)&&pe.lessThanOrEqual(this._maxInteger)}else{return R>=this._minNumber&&R<=this._maxNumber}};ValueRange.prototype.toString=function(){return"[".concat(this._minNumber,", ").concat(this._maxNumber,"]")};return ValueRange}();pe.YEAR_RANGE=new Ee(-999999999,999999999);pe.MONTH_OF_YEAR_RANGE=new Ee(1,12);pe.DAY_OF_MONTH_RANGE=new Ee(1,31);pe.HOUR_OF_DAY_RANGE=new Ee(0,23);pe.MINUTE_OF_HOUR_RANGE=new Ee(0,59);pe.SECOND_OF_MINUTE_RANGE=new Ee(0,59);pe.NANOSECOND_OF_SECOND_RANGE=new Ee(0,999999999);pe.MINUTES_PER_HOUR=60;pe.SECONDS_PER_MINUTE=60;pe.SECONDS_PER_HOUR=pe.SECONDS_PER_MINUTE*pe.MINUTES_PER_HOUR;pe.NANOS_PER_SECOND=1e9;pe.NANOS_PER_MILLISECOND=1e6;pe.NANOS_PER_MINUTE=pe.NANOS_PER_SECOND*pe.SECONDS_PER_MINUTE;pe.NANOS_PER_HOUR=pe.NANOS_PER_MINUTE*pe.MINUTES_PER_HOUR;pe.DAYS_0000_TO_1970=719528;pe.DAYS_PER_400_YEAR_CYCLE=146097;pe.SECONDS_PER_DAY=86400;function normalizeSecondsForDuration(R,Ae){return(0,me.int)(R).add(floorDiv(Ae,pe.NANOS_PER_SECOND))}pe.normalizeSecondsForDuration=normalizeSecondsForDuration;function normalizeNanosecondsForDuration(R){return floorMod(R,pe.NANOS_PER_SECOND)}pe.normalizeNanosecondsForDuration=normalizeNanosecondsForDuration;function localTimeToNanoOfDay(R,Ae,he,ge){R=(0,me.int)(R);Ae=(0,me.int)(Ae);he=(0,me.int)(he);ge=(0,me.int)(ge);var ye=R.multiply(pe.NANOS_PER_HOUR);ye=ye.add(Ae.multiply(pe.NANOS_PER_MINUTE));ye=ye.add(he.multiply(pe.NANOS_PER_SECOND));return ye.add(ge)}pe.localTimeToNanoOfDay=localTimeToNanoOfDay;function localDateTimeToEpochSecond(R,Ae,he,ge,ye,me,ve){var be=dateToEpochDay(R,Ae,he);var Ee=localTimeToSecondOfDay(ge,ye,me);return be.multiply(pe.SECONDS_PER_DAY).add(Ee)}pe.localDateTimeToEpochSecond=localDateTimeToEpochSecond;function dateToEpochDay(R,Ae,he){R=(0,me.int)(R);Ae=(0,me.int)(Ae);he=(0,me.int)(he);var ge=R.multiply(365);if(R.greaterThanOrEqual(0)){ge=ge.add(R.add(3).div(4).subtract(R.add(99).div(100)).add(R.add(399).div(400)))}else{ge=ge.subtract(R.div(-4).subtract(R.div(-100)).add(R.div(-400)))}ge=ge.add(Ae.multiply(367).subtract(362).div(12));ge=ge.add(he.subtract(1));if(Ae.greaterThan(2)){ge=ge.subtract(1);if(!isLeapYear(R)){ge=ge.subtract(1)}}return ge.subtract(pe.DAYS_0000_TO_1970)}pe.dateToEpochDay=dateToEpochDay;function durationToIsoString(R,pe,Ae,he){var ge=formatNumber(R);var ye=formatNumber(pe);var me=formatSecondsAndNanosecondsForDuration(Ae,he);return"P".concat(ge,"M").concat(ye,"DT").concat(me,"S")}pe.durationToIsoString=durationToIsoString;function timeToIsoString(R,pe,Ae,he){var ge=formatNumber(R,2);var ye=formatNumber(pe,2);var me=formatNumber(Ae,2);var ve=formatNanosecond(he);return"".concat(ge,":").concat(ye,":").concat(me).concat(ve)}pe.timeToIsoString=timeToIsoString;function timeZoneOffsetToIsoString(R){R=(0,me.int)(R);if(R.equals(0)){return"Z"}var Ae=R.isNegative();if(Ae){R=R.multiply(-1)}var he=Ae?"-":"+";var ge=formatNumber(R.div(pe.SECONDS_PER_HOUR),2);var ye=formatNumber(R.div(pe.SECONDS_PER_MINUTE).modulo(pe.MINUTES_PER_HOUR),2);var ve=R.modulo(pe.SECONDS_PER_MINUTE);var be=ve.equals(0)?null:formatNumber(ve,2);return be!=null?"".concat(he).concat(ge,":").concat(ye,":").concat(be):"".concat(he).concat(ge,":").concat(ye)}pe.timeZoneOffsetToIsoString=timeZoneOffsetToIsoString;function dateToIsoString(R,pe,Ae){var he=formatYear(R);var ge=formatNumber(pe,2);var ye=formatNumber(Ae,2);return"".concat(he,"-").concat(ge,"-").concat(ye)}pe.dateToIsoString=dateToIsoString;function isoStringToStandardDate(R){return new Date(R)}pe.isoStringToStandardDate=isoStringToStandardDate;function toStandardDate(R){return new Date(R)}pe.toStandardDate=toStandardDate;function newDate(R){return new Date(R)}pe.newDate=newDate;function totalNanoseconds(R,Ae){Ae=Ae!==null&&Ae!==void 0?Ae:0;var he=R.getMilliseconds()*pe.NANOS_PER_MILLISECOND;return add(Ae,he)}pe.totalNanoseconds=totalNanoseconds;function timeZoneOffsetInSeconds(R){var Ae=R.getSeconds()>=R.getUTCSeconds()?R.getSeconds()-R.getUTCSeconds():R.getSeconds()-R.getUTCSeconds()+60;var he=R.getTimezoneOffset();if(he===0){return 0+Ae}return-1*he*pe.SECONDS_PER_MINUTE+Ae}pe.timeZoneOffsetInSeconds=timeZoneOffsetInSeconds;function assertValidYear(R){return assertValidTemporalValue(R,pe.YEAR_RANGE,"Year")}pe.assertValidYear=assertValidYear;function assertValidMonth(R){return assertValidTemporalValue(R,pe.MONTH_OF_YEAR_RANGE,"Month")}pe.assertValidMonth=assertValidMonth;function assertValidDay(R){return assertValidTemporalValue(R,pe.DAY_OF_MONTH_RANGE,"Day")}pe.assertValidDay=assertValidDay;function assertValidHour(R){return assertValidTemporalValue(R,pe.HOUR_OF_DAY_RANGE,"Hour")}pe.assertValidHour=assertValidHour;function assertValidMinute(R){return assertValidTemporalValue(R,pe.MINUTE_OF_HOUR_RANGE,"Minute")}pe.assertValidMinute=assertValidMinute;function assertValidSecond(R){return assertValidTemporalValue(R,pe.SECOND_OF_MINUTE_RANGE,"Second")}pe.assertValidSecond=assertValidSecond;function assertValidNanosecond(R){return assertValidTemporalValue(R,pe.NANOSECOND_OF_SECOND_RANGE,"Nanosecond")}pe.assertValidNanosecond=assertValidNanosecond;var Ce=new Map;var newInvalidZoneIdError=function(R,pe){return(0,ve.newError)("".concat(pe,' is expected to be a valid ZoneId but was: "').concat(R,'"'))};function assertValidZoneId(R,pe){var Ae=Ce.get(pe);if(Ae===true){return}if(Ae===false){throw newInvalidZoneIdError(pe,R)}try{Intl.DateTimeFormat(undefined,{timeZone:pe});Ce.set(pe,true)}catch(Ae){Ce.set(pe,false);throw newInvalidZoneIdError(pe,R)}}pe.assertValidZoneId=assertValidZoneId;function assertValidTemporalValue(R,pe,Ae){(0,be.assertNumberOrInteger)(R,Ae);if(!pe.contains(R)){throw(0,ve.newError)("".concat(Ae," is expected to be in range ").concat(pe.toString()," but was: ").concat(R.toString()))}return R}function localTimeToSecondOfDay(R,Ae,he){R=(0,me.int)(R);Ae=(0,me.int)(Ae);he=(0,me.int)(he);var ge=R.multiply(pe.SECONDS_PER_HOUR);ge=ge.add(Ae.multiply(pe.SECONDS_PER_MINUTE));return ge.add(he)}function isLeapYear(R){R=(0,me.int)(R);if(!R.modulo(4).equals(0)){return false}else if(!R.modulo(100).equals(0)){return true}else if(!R.modulo(400).equals(0)){return false}else{return true}}function floorDiv(R,pe){R=(0,me.int)(R);pe=(0,me.int)(pe);var Ae=R.div(pe);if(R.isPositive()!==pe.isPositive()&&Ae.multiply(pe).notEquals(R)){Ae=Ae.subtract(1)}return Ae}pe.floorDiv=floorDiv;function floorMod(R,pe){R=(0,me.int)(R);pe=(0,me.int)(pe);return R.subtract(floorDiv(R,pe).multiply(pe))}pe.floorMod=floorMod;function formatSecondsAndNanosecondsForDuration(R,Ae){R=(0,me.int)(R);Ae=(0,me.int)(Ae);var he;var ge;var ye=R.isNegative();var ve=Ae.greaterThan(0);if(ye&&ve){if(R.equals(-1)){he="-0"}else{he=R.add(1).toString()}}else{he=R.toString()}if(ve){if(ye){ge=formatNanosecond(Ae.negate().add(2*pe.NANOS_PER_SECOND).modulo(pe.NANOS_PER_SECOND))}else{ge=formatNanosecond(Ae.add(pe.NANOS_PER_SECOND).modulo(pe.NANOS_PER_SECOND))}}return ge!=null?he+ge:he}function formatNanosecond(R){R=(0,me.int)(R);return R.equals(0)?"":"."+formatNumber(R,9)}function formatYear(R){var pe=(0,me.int)(R);if(pe.isNegative()||pe.greaterThan(9999)){return formatNumber(pe,6,{usePositiveSign:true})}return formatNumber(pe,4)}function formatNumber(R,pe,Ae){R=(0,me.int)(R);var he=R.isNegative();if(he){R=R.negate()}var ge=R.toString();if(pe!=null){while(ge.length0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ve=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;hethis._maxRetryTimeMs||!(0,be.isRetriableError)(Ae)){return Promise.reject(Ae)}return new Promise((function(Ae,he){var be=ve._computeDelayWithJitter(ge);var Ee=ve._setTimeout((function(){ve._inFlightTimeoutIds=ve._inFlightTimeoutIds.filter((function(R){return R!==Ee}));ve._executeTransactionInsidePromise(R,pe,Ae,he,ye,me).catch(he)}),be);ve._inFlightTimeoutIds.push(Ee)})).catch((function(Ae){var be=ge*ve._multiplier;return ve._retryTransactionPromise(R,pe,Ae,he,be,ye,me)}))};TransactionExecutor.prototype._executeTransactionInsidePromise=function(R,pe,Ae,me,ve,be){return ge(this,void 0,void 0,(function(){var ge,Ee,Ce,we,_e,Ie,Se;var Be=this;return ye(this,(function(ye){switch(ye.label){case 0:ye.trys.push([0,4,,5]);Ee=R((be===null||be===void 0?void 0:be.apiTransactionConfig)!=null?he({},be===null||be===void 0?void 0:be.apiTransactionConfig):undefined);if(!this.pipelineBegin)return[3,1];Ce=Ee;return[3,3];case 1:return[4,Ee];case 2:Ce=ye.sent();ye.label=3;case 3:ge=Ce;return[3,5];case 4:we=ye.sent();me(we);return[2];case 5:_e=ve!==null&&ve!==void 0?ve:function(R){return R};Ie=_e(ge);Se=this._safeExecuteTransactionWork(Ie,pe);Se.then((function(R){return Be._handleTransactionWorkSuccess(R,ge,Ae,me)})).catch((function(R){return Be._handleTransactionWorkFailure(R,ge,me)}));return[2]}}))}))};TransactionExecutor.prototype._safeExecuteTransactionWork=function(R,pe){try{var Ae=pe(R);return Promise.resolve(Ae)}catch(R){return Promise.reject(R)}};TransactionExecutor.prototype._handleTransactionWorkSuccess=function(R,pe,Ae,he){if(pe.isOpen()){pe.commit().then((function(){Ae(R)})).catch((function(R){he(R)}))}else{Ae(R)}};TransactionExecutor.prototype._handleTransactionWorkFailure=function(R,pe,Ae){if(pe.isOpen()){pe.rollback().catch((function(R){})).then((function(){return Ae(R)})).catch(Ae)}else{Ae(R)}};TransactionExecutor.prototype._computeDelayWithJitter=function(R){var pe=R*this._jitterFactor;var Ae=R-pe;var he=R+pe;return Math.random()*(he-Ae)+Ae};TransactionExecutor.prototype._verifyAfterConstruction=function(){if(this._maxRetryTimeMs<0){throw(0,be.newError)("Max retry time should be >= 0: "+this._maxRetryTimeMs.toString())}if(this._initialRetryDelayMs<0){throw(0,be.newError)("Initial retry delay should >= 0: "+this._initialRetryDelayMs.toString())}if(this._multiplier<1){throw(0,be.newError)("Multiplier should be >= 1.0: "+this._multiplier.toString())}if(this._jitterFactor<0||this._jitterFactor>1){throw(0,be.newError)("Jitter factor should be in [0.0, 1.0]: "+this._jitterFactor.toFixed())}};return TransactionExecutor}();pe.TransactionExecutor=Se;function _valueOrDefault(R,pe){if(R!=null){return R}return pe}},74059:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.TxConfig=void 0;var me=ye(Ae(56517));var ve=Ae(5542);var be=Ae(6049);var Ee=function(){function TxConfig(R,pe){assertValidConfig(R);this.timeout=extractTimeout(R,pe);this.metadata=extractMetadata(R)}TxConfig.empty=function(){return Ce};TxConfig.prototype.isEmpty=function(){return Object.values(this).every((function(R){return R==null}))};return TxConfig}();pe.TxConfig=Ee;var Ce=new Ee({});function extractTimeout(R,pe){if(me.isObject(R)&&R.timeout!=null){me.assertNumberOrInteger(R.timeout,"Transaction timeout");if(isTimeoutFloat(R)&&(pe===null||pe===void 0?void 0:pe.isInfoEnabled())===true){pe===null||pe===void 0?void 0:pe.info("Transaction timeout expected to be an integer, got: ".concat(R.timeout,". The value will be rounded up."))}var Ae=(0,be.int)(R.timeout,{ceilFloat:true});if(Ae.isNegative()){throw(0,ve.newError)("Transaction timeout should not be negative")}return Ae}return null}function isTimeoutFloat(R){return typeof R.timeout==="number"&&!Number.isInteger(R.timeout)}function extractMetadata(R){if(me.isObject(R)&&R.metadata!=null){var pe=R.metadata;me.assertObject(pe,"config.metadata");if(Object.keys(pe).length!==0){return pe}}return null}function assertValidConfig(R){if(R!=null){me.assertObject(R,"Transaction config")}}},48842:function(R,pe,Ae){"use strict";var he=this&&this.__assign||function(){he=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};Object.defineProperty(pe,"__esModule",{value:true});pe.Url=pe.formatIPv6Address=pe.formatIPv4Address=pe.defaultPortForScheme=pe.parseDatabaseUrl=void 0;var ye=Ae(56517);var me=7687;var ve=7474;var be=7473;var Ee=function(){function Url(R,pe,Ae,he,ge){this.scheme=R;this.host=pe;this.port=Ae;this.hostAndPort=he;this.query=ge}return Url}();pe.Url=Ee;function parseDatabaseUrl(R){var pe;(0,ye.assertString)(R,"URL");var Ae=sanitizeUrl(R);var he=uriJsParse(Ae.url);var ge=Ae.schemeMissing?null:extractScheme(he.scheme);var me=extractHost(he.host);var ve=formatHost(me);var be=extractPort(he.port,ge);var Ce="".concat(ve,":").concat(be);var we=extractQuery((pe=he.query)!==null&&pe!==void 0?pe:extractResourceQueryString(he.resourceName),R);return new Ee(ge,me,be,Ce,we)}pe.parseDatabaseUrl=parseDatabaseUrl;function extractResourceQueryString(R){if(typeof R!=="string"){return null}var pe=ge(R.split("?"),2),Ae=pe[1];return Ae}function sanitizeUrl(R){R=R.trim();if(!R.includes("://")){return{schemeMissing:true,url:"none://".concat(R)}}return{schemeMissing:false,url:R}}function extractScheme(R){if(R!=null){R=R.trim();if(R.charAt(R.length-1)===":"){R=R.substring(0,R.length-1)}return R}return null}function extractHost(R,pe){if(R==null){throw new Error("Unable to extract host from null or undefined URL")}return R.trim()}function extractPort(R,pe){var Ae=typeof R==="string"?parseInt(R,10):R;return Ae!=null&&!isNaN(Ae)?Ae:defaultPortForScheme(pe)}function extractQuery(R,pe){var Ae=R!=null?trimAndSanitizeQuery(R):null;var he={};if(Ae!=null){Ae.split("&").forEach((function(R){var Ae=R.split("=");if(Ae.length!==2){throw new Error("Invalid parameters: '".concat(Ae.toString(),"' in URL '").concat(pe,"'."))}var ge=trimAndVerifyQueryElement(Ae[0],"key",pe);var ye=trimAndVerifyQueryElement(Ae[1],"value",pe);if(he[ge]!==undefined){throw new Error("Duplicated query parameters with key '".concat(ge,"' in URL '").concat(pe,"'"))}he[ge]=ye}))}return he}function trimAndSanitizeQuery(R){R=(R!==null&&R!==void 0?R:"").trim();if((R===null||R===void 0?void 0:R.charAt(0))==="?"){R=R.substring(1,R.length)}return R}function trimAndVerifyQueryElement(R,pe,Ae){R=(R!==null&&R!==void 0?R:"").trim();if(R===""){throw new Error("Illegal empty ".concat(pe," in URL query '").concat(Ae,"'"))}return R}function escapeIPv6Address(R){var pe=R.charAt(0)==="[";var Ae=R.charAt(R.length-1)==="]";if(!pe&&!Ae){return"[".concat(R,"]")}else if(pe&&Ae){return R}else{throw new Error("Illegal IPv6 address ".concat(R))}}function formatHost(R){if(R===""||R==null){throw new Error("Illegal host ".concat(R))}var pe=R.includes(":");return pe?escapeIPv6Address(R):R}function formatIPv4Address(R,pe){return"".concat(R,":").concat(pe)}pe.formatIPv4Address=formatIPv4Address;function formatIPv6Address(R,pe){var Ae=escapeIPv6Address(R);return"".concat(Ae,":").concat(pe)}pe.formatIPv6Address=formatIPv6Address;function defaultPortForScheme(R){if(R==="http"){return ve}else if(R==="https"){return be}else{return me}}pe.defaultPortForScheme=defaultPortForScheme;function uriJsParse(R){function partition(R,pe){var Ae=R.indexOf(pe);if(Ae>=0)return[R.substring(0,Ae),R[Ae],R.substring(Ae+1)];else return[R,"",""]}function rpartition(R,pe){var Ae=R.lastIndexOf(pe);if(Ae>=0)return[R.substring(0,Ae),R[Ae],R.substring(Ae+1)];else return["","",R]}function between(R,pe,Ae){var he=partition(R,pe);var ge=partition(he[2],Ae);return[ge[0],ge[2]]}function parseAuthority(R){var pe={};var Ae;Ae=rpartition(R,"@");if(Ae[1]==="@"){pe.userInfo=decodeURIComponent(Ae[0]);R=Ae[2]}var he=ge(between(R,"[","]"),2),ye=he[0],me=he[1];if(ye!==""){pe.host=ye;Ae=partition(me,":")}else{Ae=partition(R,":");pe.host=Ae[0]}if(Ae[1]===":"){pe.port=Ae[2]}return pe}var pe={};var Ae;Ae=partition(R,":");if(Ae[1]===":"){pe.scheme=decodeURIComponent(Ae[0]);R=Ae[2]}Ae=partition(R,"#");if(Ae[1]==="#"){pe.fragment=decodeURIComponent(Ae[2]);R=Ae[0]}Ae=partition(R,"?");if(Ae[1]==="?"){pe.query=Ae[2];R=Ae[0]}if(R.startsWith("//")){Ae=partition(R.substr(2),"/");pe=he(he({},pe),parseAuthority(Ae[0]));pe.path=Ae[1]+Ae[2]}else{pe.path=R}return pe}},56517:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.ENCRYPTION_OFF=pe.ENCRYPTION_ON=pe.equals=pe.validateQueryAndParameters=pe.toNumber=pe.assertValidDate=pe.assertNumberOrInteger=pe.assertNumber=pe.assertString=pe.assertObject=pe.isString=pe.isObject=pe.isEmptyObjectOrNull=void 0;var ve=ye(Ae(6049));var be=Ae(86322);var Ee="ENCRYPTION_ON";pe.ENCRYPTION_ON=Ee;var Ce="ENCRYPTION_OFF";pe.ENCRYPTION_OFF=Ce;function isEmptyObjectOrNull(R){if(R===null){return true}if(!isObject(R)){return false}for(var pe in R){if(R[pe]!==undefined){return false}}return true}pe.isEmptyObjectOrNull=isEmptyObjectOrNull;function isObject(R){return typeof R==="object"&&!Array.isArray(R)&&R!==null}pe.isObject=isObject;function validateQueryAndParameters(R,pe,Ae){var he,ge;var ye="";var me=pe!==null&&pe!==void 0?pe:{};var ve=(he=Ae===null||Ae===void 0?void 0:Ae.skipAsserts)!==null&&he!==void 0?he:false;if(typeof R==="string"){ye=R}else if(R instanceof String){ye=R.toString()}else if(typeof R==="object"&&R.text!=null){ye=R.text;me=(ge=R.parameters)!==null&&ge!==void 0?ge:{}}if(!ve){assertCypherQuery(ye);assertQueryParameters(me)}return{validatedQuery:ye,params:me}}pe.validateQueryAndParameters=validateQueryAndParameters;function assertObject(R,pe){if(!isObject(R)){throw new TypeError(pe+" expected to be an object but was: "+(0,be.stringify)(R))}return R}pe.assertObject=assertObject;function assertString(R,pe){if(!isString(R)){throw new TypeError((0,be.stringify)(pe)+" expected to be string but was: "+(0,be.stringify)(R))}return R}pe.assertString=assertString;function assertNumber(R,pe){if(typeof R!=="number"){throw new TypeError(pe+" expected to be a number but was: "+(0,be.stringify)(R))}return R}pe.assertNumber=assertNumber;function assertNumberOrInteger(R,pe){if(typeof R!=="number"&&typeof R!=="bigint"&&!(0,ve.isInt)(R)){throw new TypeError(pe+" expected to be either a number or an Integer object but was: "+(0,be.stringify)(R))}return R}pe.assertNumberOrInteger=assertNumberOrInteger;function assertValidDate(R,pe){if(Object.prototype.toString.call(R)!=="[object Date]"){throw new TypeError(pe+" expected to be a standard JavaScript Date but was: "+(0,be.stringify)(R))}if(Number.isNaN(R.getTime())){throw new TypeError(pe+" expected to be valid JavaScript Date but its time was NaN: "+(0,be.stringify)(R))}return R}pe.assertValidDate=assertValidDate;function assertCypherQuery(R){assertString(R,"Cypher query");if(R.trim().length===0){throw new TypeError("Cypher query is expected to be a non-empty string.")}}function assertQueryParameters(R){if(!isObject(R)){var pe=R.constructor!=null?" "+R.constructor.name:"";throw new TypeError("Query parameters are expected to either be undefined/null or an object, given:".concat(pe," ").concat(JSON.stringify(R)))}}function isString(R){return Object.prototype.toString.call(R)==="[object String]"}pe.isString=isString;function equals(R,pe){var Ae,he;if(R===pe){return true}if(R===null||pe===null){return false}if(typeof R==="object"&&typeof pe==="object"){var ge=Object.keys(R);var ye=Object.keys(pe);if(ge.length!==ye.length){return false}try{for(var ve=me(ge),be=ve.next();!be.done;be=ve.next()){var Ee=be.value;if(!equals(R[Ee],pe[Ee])){return false}}}catch(R){Ae={error:R}}finally{try{if(be&&!be.done&&(he=ve.return))he.call(ve)}finally{if(Ae)throw Ae.error}}return true}return false}pe.equals=equals;function toNumber(R){if(R instanceof ve.default){return R.toNumber()}else if(typeof R==="bigint"){return(0,ve.int)(R).toNumber()}else{return R}}pe.toNumber=toNumber},86322:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.stringify=void 0;var he=Ae(58690);function stringify(R,pe){return JSON.stringify(R,(function(R,Ae){if((0,he.isBrokenObject)(Ae)){return{__isBrokenObject__:true,__reason__:(0,he.getBrokenObjectReason)(Ae)}}if(typeof Ae==="bigint"){return"".concat(Ae,"n")}if((pe===null||pe===void 0?void 0:pe.useCustomToString)===true&&typeof Ae==="object"&&!Array.isArray(Ae)&&typeof Ae.toString==="function"&&Ae.toString!==Object.prototype.toString){return Ae===null||Ae===void 0?void 0:Ae.toString()}return Ae}))}pe.stringify=stringify},66007:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.notificationFilterDisabledClassification=pe.notificationFilterDisabledCategory=pe.notificationFilterMinimumSeverityLevel=void 0;var Ae={OFF:"OFF",WARNING:"WARNING",INFORMATION:"INFORMATION"};pe.notificationFilterMinimumSeverityLevel=Ae;Object.freeze(Ae);var he={HINT:"HINT",UNRECOGNIZED:"UNRECOGNIZED",UNSUPPORTED:"UNSUPPORTED",PERFORMANCE:"PERFORMANCE",TOPOLOGY:"TOPOLOGY",SECURITY:"SECURITY",DEPRECATION:"DEPRECATION",GENERIC:"GENERIC"};pe.notificationFilterDisabledCategory=he;Object.freeze(he);var ge=he;pe.notificationFilterDisabledClassification=ge;var ye=function(){function NotificationFilter(){this.minimumSeverityLevel=undefined;this.disabledCategories=undefined;this.disabledClassifications=undefined;throw new Error("Not implemented")}return NotificationFilter}();pe["default"]=ye},64777:function(R,pe,Ae){"use strict";var he=this&&this.__assign||function(){he=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var be=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;he0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};var ye=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};Object.defineProperty(pe,"__esModule",{value:true});var me=Ae(5542);function generateFieldLookup(R){var pe={};R.forEach((function(R,Ae){pe[R]=Ae}));return pe}var ve=function(){function Record(R,pe,Ae){this.keys=R;this.length=R.length;this._fields=pe;this._fieldLookup=Ae!==null&&Ae!==void 0?Ae:generateFieldLookup(R)}Record.prototype.forEach=function(R){var pe,Ae;try{for(var he=ge(this.entries()),me=he.next();!me.done;me=he.next()){var ve=ye(me.value,2),be=ve[0],Ee=ve[1];R(Ee,be,this)}}catch(R){pe={error:R}}finally{try{if(me&&!me.done&&(Ae=he.return))Ae.call(he)}finally{if(pe)throw pe.error}}};Record.prototype.map=function(R){var pe,Ae;var he=[];try{for(var me=ge(this.entries()),ve=me.next();!ve.done;ve=me.next()){var be=ye(ve.value,2),Ee=be[0],Ce=be[1];he.push(R(Ce,Ee,this))}}catch(R){pe={error:R}}finally{try{if(ve&&!ve.done&&(Ae=me.return))Ae.call(me)}finally{if(pe)throw pe.error}}return he};Record.prototype.entries=function(){var R;return he(this,(function(pe){switch(pe.label){case 0:R=0;pe.label=1;case 1:if(!(Rthis._fields.length-1||pe<0){throw(0,me.newError)("This record has no field with index '"+pe.toString()+"'. Remember that indexes start at `0`, "+"and make sure your query returns records in the shape you meant it to.")}return this._fields[pe]};Record.prototype.has=function(R){if(typeof R==="number"){return R>=0&&R{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function EagerResult(R,pe,Ae){this.keys=R;this.records=pe;this.summary=Ae}return EagerResult}();pe["default"]=Ae},1381:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Stats=pe.QueryStatistics=pe.ProfiledPlan=pe.Plan=pe.ServerInfo=pe.queryType=void 0;var he=Ae(9318);var ge=Ae(64777);var ye=function(){function ResultSummary(R,pe,Ae,he){var ye,be,we;this.query={text:R,parameters:pe};this.queryType=Ae.type;this.counters=new Ee((ye=Ae.stats)!==null&&ye!==void 0?ye:{});this.updateStatistics=this.counters;this.plan=Ae.plan!=null||Ae.profile!=null?new me((be=Ae.plan)!==null&&be!==void 0?be:Ae.profile):false;this.profile=Ae.profile!=null?new ve(Ae.profile):false;this.notifications=(0,ge.buildNotificationsFromMetadata)(Ae);this.gqlStatusObjects=(0,ge.buildGqlStatusObjectFromMetadata)(Ae);this.server=new Ce(Ae.server,he);this.resultConsumedAfter=Ae.result_consumed_after;this.resultAvailableAfter=Ae.result_available_after;this.database={name:(we=Ae.db)!==null&&we!==void 0?we:null}}ResultSummary.prototype.hasPlan=function(){return this.plan instanceof me};ResultSummary.prototype.hasProfile=function(){return this.profile instanceof ve};return ResultSummary}();var me=function(){function Plan(R){this.operatorType=R.operatorType;this.identifiers=R.identifiers;this.arguments=R.args;this.children=R.children!=null?R.children.map((function(R){return new Plan(R)})):[]}return Plan}();pe.Plan=me;var ve=function(){function ProfiledPlan(R){this.operatorType=R.operatorType;this.identifiers=R.identifiers;this.arguments=R.args;this.dbHits=valueOrDefault("dbHits",R);this.rows=valueOrDefault("rows",R);this.pageCacheMisses=valueOrDefault("pageCacheMisses",R);this.pageCacheHits=valueOrDefault("pageCacheHits",R);this.pageCacheHitRatio=valueOrDefault("pageCacheHitRatio",R);this.time=valueOrDefault("time",R);this.children=R.children!=null?R.children.map((function(R){return new ProfiledPlan(R)})):[]}ProfiledPlan.prototype.hasPageCacheStats=function(){return this.pageCacheMisses>0||this.pageCacheHits>0||this.pageCacheHitRatio>0};return ProfiledPlan}();pe.ProfiledPlan=ve;var be=function(){function Stats(){this.nodesCreated=0;this.nodesDeleted=0;this.relationshipsCreated=0;this.relationshipsDeleted=0;this.propertiesSet=0;this.labelsAdded=0;this.labelsRemoved=0;this.indexesAdded=0;this.indexesRemoved=0;this.constraintsAdded=0;this.constraintsRemoved=0}return Stats}();pe.Stats=be;var Ee=function(){function QueryStatistics(R){var pe=this;this._stats={nodesCreated:0,nodesDeleted:0,relationshipsCreated:0,relationshipsDeleted:0,propertiesSet:0,labelsAdded:0,labelsRemoved:0,indexesAdded:0,indexesRemoved:0,constraintsAdded:0,constraintsRemoved:0};this._systemUpdates=0;Object.keys(R).forEach((function(Ae){var ge=Ae.replace(/(-\w)/g,(function(R){return R[1].toUpperCase()}));if(ge in pe._stats){pe._stats[ge]=he.util.toNumber(R[Ae])}else if(ge==="systemUpdates"){pe._systemUpdates=he.util.toNumber(R[Ae])}else if(ge==="containsSystemUpdates"){pe._containsSystemUpdates=R[Ae]}else if(ge==="containsUpdates"){pe._containsUpdates=R[Ae]}}));this._stats=Object.freeze(this._stats)}QueryStatistics.prototype.containsUpdates=function(){var R=this;return this._containsUpdates!==undefined?this._containsUpdates:Object.keys(this._stats).reduce((function(pe,Ae){return pe+R._stats[Ae]}),0)>0};QueryStatistics.prototype.updates=function(){return this._stats};QueryStatistics.prototype.containsSystemUpdates=function(){return this._containsSystemUpdates!==undefined?this._containsSystemUpdates:this._systemUpdates>0};QueryStatistics.prototype.systemUpdates=function(){return this._systemUpdates};return QueryStatistics}();pe.QueryStatistics=Ee;var Ce=function(){function ServerInfo(R,pe){if(R!=null){this.address=R.address;this.agent=R.version}this.protocolVersion=pe}return ServerInfo}();pe.ServerInfo=Ce;function valueOrDefault(R,pe,Ae){if(Ae===void 0){Ae=0}if(pe!==false&&R in pe){var ge=pe[R];return he.util.toNumber(ge)}else{return Ae}}var we={READ_ONLY:"r",READ_WRITE:"rw",WRITE_ONLY:"w",SCHEMA_WRITE:"s"};pe.queryType=we;pe["default"]=ye},36584:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=R._watermarks.high;var me=ge<=R._watermarks.low;if(ye&&!Ae.paused){Ae.paused=true;Ae.streaming.pause()}else if(me&&Ae.paused||Ae.firstRun&&!ye){Ae.firstRun=false;Ae.paused=false;Ae.streaming.resume()}};var initializeObserver=function(){return he(R,void 0,void 0,(function(){var R;return ge(this,(function(pe){switch(pe.label){case 0:if(!(Ae.queuedObserver===undefined))return[3,2];Ae.queuedObserver=this._createQueuedResultObserver(controlFlow);R=Ae;return[4,this._subscribe(Ae.queuedObserver,true).catch((function(){return undefined}))];case 1:R.streaming=pe.sent();controlFlow();pe.label=2;case 2:return[2,Ae.queuedObserver]}}))}))};var assertSummary=function(R){if(R===undefined){throw(0,Ee.newError)("InvalidState: Result stream finished without Summary",Ee.PROTOCOL_ERROR)}return true};return{next:function(){return he(R,void 0,void 0,(function(){var R,pe;return ge(this,(function(he){switch(he.label){case 0:if(Ae.finished){if(assertSummary(Ae.summary)){return[2,{done:true,value:Ae.summary}]}}return[4,initializeObserver()];case 1:R=he.sent();return[4,R.dequeue()];case 2:pe=he.sent();if(pe.done===true){Ae.finished=pe.done;Ae.summary=pe.value}return[2,pe]}}))}))},return:function(pe){return he(R,void 0,void 0,(function(){var R,he;var ye;return ge(this,(function(ge){switch(ge.label){case 0:if(Ae.finished){if(assertSummary(Ae.summary)){return[2,{done:true,value:pe!==null&&pe!==void 0?pe:Ae.summary}]}}(ye=Ae.streaming)===null||ye===void 0?void 0:ye.cancel();return[4,initializeObserver()];case 1:R=ge.sent();return[4,R.dequeueUntilDone()];case 2:he=ge.sent();Ae.finished=true;he.value=pe!==null&&pe!==void 0?pe:he.value;Ae.summary=he.value;return[2,he]}}))}))},peek:function(){return he(R,void 0,void 0,(function(){var R;return ge(this,(function(pe){switch(pe.label){case 0:if(Ae.finished){if(assertSummary(Ae.summary)){return[2,{done:true,value:Ae.summary}]}}return[4,initializeObserver()];case 1:R=pe.sent();return[4,R.head()];case 2:return[2,pe.sent()]}}))}))}}};Result.prototype.then=function(R,pe){return this._getOrCreatePromise().then(R,pe)};Result.prototype.catch=function(R){return this._getOrCreatePromise().catch(R)};Result.prototype.finally=function(R){return this._getOrCreatePromise().finally(R)};Result.prototype.subscribe=function(R){this._subscribe(R).catch((function(){}))};Result.prototype.isOpen=function(){return this._summary===null&&this._error===null};Result.prototype._subscribe=function(R,pe){if(pe===void 0){pe=false}var Ae=this._decorateObserver(R);return this._streamObserverPromise.then((function(R){if(pe){R.pause()}R.subscribe(Ae);return R})).catch((function(R){if(Ae.onError!=null){Ae.onError(R)}return Promise.reject(R)}))};Result.prototype._decorateObserver=function(R){var pe=this;var Ae,he,ge;var ye=(Ae=R.onCompleted)!==null&&Ae!==void 0?Ae:DEFAULT_ON_COMPLETED;var me=(he=R.onError)!==null&&he!==void 0?he:DEFAULT_ON_ERROR;var ve=(ge=R.onKeys)!==null&&ge!==void 0?ge:DEFAULT_ON_KEYS;var onCompletedWrapper=function(Ae){pe._releaseConnectionAndGetSummary(Ae).then((function(Ae){if(pe._summary!==null){return ye.call(R,pe._summary)}pe._summary=Ae;return ye.call(R,Ae)})).catch(me)};var onErrorWrapper=function(Ae){pe._connectionHolder.releaseConnection().then((function(){replaceStacktrace(Ae,pe._stack);pe._error=Ae;me.call(R,Ae)})).catch(me)};var onKeysWrapper=function(Ae){pe._keys=Ae;return ve.call(R,Ae)};return{onNext:R.onNext!=null?R.onNext.bind(R):undefined,onKeys:onKeysWrapper,onCompleted:onCompletedWrapper,onError:onErrorWrapper}};Result.prototype._cancel=function(){if(this._summary===null&&this._error===null){this._streamObserverPromise.then((function(R){return R.cancel()})).catch((function(){}))}};Result.prototype._releaseConnectionAndGetSummary=function(R){var pe=be.util.validateQueryAndParameters(this._query,this._parameters,{skipAsserts:true}),Ae=pe.validatedQuery,he=pe.params;var ge=this._connectionHolder;return ge.getConnection().then((function(R){return ge.releaseConnection().then((function(){return R===null||R===void 0?void 0:R.getProtocolVersion()}))}),(function(R){return undefined})).then((function(pe){return new ve.default(Ae,he,R,pe)}))};Result.prototype._createQueuedResultObserver=function(R){var pe=this;function createResolvablePromise(){var R={};R.promise=new Promise((function(pe,Ae){R.resolve=pe;R.reject=Ae}));return R}function isError(R){return R instanceof Error}function dequeue(){var pe;return he(this,void 0,void 0,(function(){var he;return ge(this,(function(ge){switch(ge.label){case 0:if(Ae.length>0){he=(pe=Ae.shift())!==null&&pe!==void 0?pe:(0,Ee.newError)("Unexpected empty buffer",Ee.PROTOCOL_ERROR);R();if(isError(he)){throw he}return[2,he]}ye.resolvable=createResolvablePromise();return[4,ye.resolvable.promise];case 1:return[2,ge.sent()]}}))}))}var Ae=[];var ye={resolvable:null};var me={onNext:function(R){me._push({done:false,value:R})},onCompleted:function(R){me._push({done:true,value:R})},onError:function(R){me._push(R)},_push:function(pe){if(ye.resolvable!==null){var he=ye.resolvable;ye.resolvable=null;if(isError(pe)){he.reject(pe)}else{he.resolve(pe)}}else{Ae.push(pe);R()}},dequeue:dequeue,dequeueUntilDone:function(){return he(pe,void 0,void 0,(function(){var R;return ge(this,(function(pe){switch(pe.label){case 0:if(false){}return[4,dequeue()];case 1:R=pe.sent();if(R.done===true){return[2,R]}return[3,0];case 2:return[2]}}))}))},head:function(){return he(pe,void 0,void 0,(function(){var pe,pe,he;return ge(this,(function(ge){switch(ge.label){case 0:if(Ae.length>0){pe=Ae[0];if(isError(pe)){throw pe}return[2,pe]}ye.resolvable=createResolvablePromise();ge.label=1;case 1:ge.trys.push([1,3,4,5]);return[4,ye.resolvable.promise];case 2:pe=ge.sent();Ae.unshift(pe);return[2,pe];case 3:he=ge.sent();Ae.unshift(he);throw he;case 4:R();return[7];case 5:return[2]}}))}))},get size(){return Ae.length}};return me};return Result}();me=Symbol.toStringTag;function captureStacktrace(){var R=new Error("");if(R.stack!=null){return R.stack.replace(/^Error(\n\r)*/,"")}return null}function replaceStacktrace(R,pe){if(pe!=null){R.stack=R.toString()+"\n"+pe}}pe["default"]=we},55739:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var me=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isPoint=pe.Point=void 0;var he=Ae(56517);var ge="__isPoint__";var ye=function(){function Point(R,pe,Ae,ge){this.srid=(0,he.assertNumberOrInteger)(R,"SRID");this.x=(0,he.assertNumber)(pe,"X coordinate");this.y=(0,he.assertNumber)(Ae,"Y coordinate");this.z=ge===null||ge===undefined?ge:(0,he.assertNumber)(ge,"Z coordinate");Object.freeze(this)}Point.prototype.toString=function(){return this.z!=null&&!isNaN(this.z)?"Point{srid=".concat(formatAsFloat(this.srid),", x=").concat(formatAsFloat(this.x),", y=").concat(formatAsFloat(this.y),", z=").concat(formatAsFloat(this.z),"}"):"Point{srid=".concat(formatAsFloat(this.srid),", x=").concat(formatAsFloat(this.x),", y=").concat(formatAsFloat(this.y),"}")};return Point}();pe.Point=ye;function formatAsFloat(R){return Number.isInteger(R)?R.toString()+".0":R.toString()}Object.defineProperty(ye.prototype,ge,{value:true,enumerable:false,configurable:false,writable:false});function isPoint(R){var pe=R;return R!=null&&pe[ge]===true}pe.isPoint=isPoint},45797:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};Object.defineProperty(pe,"__esModule",{value:true});pe.isDateTime=pe.DateTime=pe.isLocalDateTime=pe.LocalDateTime=pe.isDate=pe.Date=pe.isTime=pe.Time=pe.isLocalTime=pe.LocalTime=pe.isDuration=pe.Duration=void 0;var ve=ye(Ae(87151));var be=Ae(56517);var Ee=Ae(5542);var Ce=ye(Ae(6049));var we={value:true,enumerable:false,configurable:false,writable:false};var _e="__isDuration__";var Ie="__isLocalTime__";var Se="__isTime__";var Be="__isDate__";var ke="__isLocalDateTime__";var Oe="__isDateTime__";var Re=function(){function Duration(R,pe,Ae,he){this.months=(0,be.assertNumberOrInteger)(R,"Months");this.days=(0,be.assertNumberOrInteger)(pe,"Days");(0,be.assertNumberOrInteger)(Ae,"Seconds");(0,be.assertNumberOrInteger)(he,"Nanoseconds");this.seconds=ve.normalizeSecondsForDuration(Ae,he);this.nanoseconds=ve.normalizeNanosecondsForDuration(he);Object.freeze(this)}Duration.prototype.toString=function(){return ve.durationToIsoString(this.months,this.days,this.seconds,this.nanoseconds)};return Duration}();pe.Duration=Re;Object.defineProperty(Re.prototype,_e,we);function isDuration(R){return hasIdentifierProperty(R,_e)}pe.isDuration=isDuration;var Qe=function(){function LocalTime(R,pe,Ae,he){this.hour=ve.assertValidHour(R);this.minute=ve.assertValidMinute(pe);this.second=ve.assertValidSecond(Ae);this.nanosecond=ve.assertValidNanosecond(he);Object.freeze(this)}LocalTime.fromStandardDate=function(R,pe){verifyStandardDateAndNanos(R,pe);var Ae=ve.totalNanoseconds(R,pe);return new LocalTime(R.getHours(),R.getMinutes(),R.getSeconds(),Ae instanceof Ce.default?Ae.toInt():typeof Ae==="bigint"?(0,Ce.int)(Ae).toInt():Ae)};LocalTime.prototype.toString=function(){return ve.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)};return LocalTime}();pe.LocalTime=Qe;Object.defineProperty(Qe.prototype,Ie,we);function isLocalTime(R){return hasIdentifierProperty(R,Ie)}pe.isLocalTime=isLocalTime;var xe=function(){function Time(R,pe,Ae,he,ge){this.hour=ve.assertValidHour(R);this.minute=ve.assertValidMinute(pe);this.second=ve.assertValidSecond(Ae);this.nanosecond=ve.assertValidNanosecond(he);this.timeZoneOffsetSeconds=(0,be.assertNumberOrInteger)(ge,"Time zone offset in seconds");Object.freeze(this)}Time.fromStandardDate=function(R,pe){verifyStandardDateAndNanos(R,pe);return new Time(R.getHours(),R.getMinutes(),R.getSeconds(),(0,Ce.toNumber)(ve.totalNanoseconds(R,pe)),ve.timeZoneOffsetInSeconds(R))};Time.prototype.toString=function(){return ve.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)+ve.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds)};return Time}();pe.Time=xe;Object.defineProperty(xe.prototype,Se,we);function isTime(R){return hasIdentifierProperty(R,Se)}pe.isTime=isTime;var Pe=function(){function Date(R,pe,Ae){this.year=ve.assertValidYear(R);this.month=ve.assertValidMonth(pe);this.day=ve.assertValidDay(Ae);Object.freeze(this)}Date.fromStandardDate=function(R){verifyStandardDateAndNanos(R);return new Date(R.getFullYear(),R.getMonth()+1,R.getDate())};Date.prototype.toStandardDate=function(){return ve.isoStringToStandardDate(this.toString())};Date.prototype.toString=function(){return ve.dateToIsoString(this.year,this.month,this.day)};return Date}();pe.Date=Pe;Object.defineProperty(Pe.prototype,Be,we);function isDate(R){return hasIdentifierProperty(R,Be)}pe.isDate=isDate;var Te=function(){function LocalDateTime(R,pe,Ae,he,ge,ye,me){this.year=ve.assertValidYear(R);this.month=ve.assertValidMonth(pe);this.day=ve.assertValidDay(Ae);this.hour=ve.assertValidHour(he);this.minute=ve.assertValidMinute(ge);this.second=ve.assertValidSecond(ye);this.nanosecond=ve.assertValidNanosecond(me);Object.freeze(this)}LocalDateTime.fromStandardDate=function(R,pe){verifyStandardDateAndNanos(R,pe);return new LocalDateTime(R.getFullYear(),R.getMonth()+1,R.getDate(),R.getHours(),R.getMinutes(),R.getSeconds(),(0,Ce.toNumber)(ve.totalNanoseconds(R,pe)))};LocalDateTime.prototype.toStandardDate=function(){return ve.isoStringToStandardDate(this.toString())};LocalDateTime.prototype.toString=function(){return localDateTimeToString(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)};return LocalDateTime}();pe.LocalDateTime=Te;Object.defineProperty(Te.prototype,ke,we);function isLocalDateTime(R){return hasIdentifierProperty(R,ke)}pe.isLocalDateTime=isLocalDateTime;var De=function(){function DateTime(R,pe,Ae,he,ge,ye,be,Ee,Ce){this.year=ve.assertValidYear(R);this.month=ve.assertValidMonth(pe);this.day=ve.assertValidDay(Ae);this.hour=ve.assertValidHour(he);this.minute=ve.assertValidMinute(ge);this.second=ve.assertValidSecond(ye);this.nanosecond=ve.assertValidNanosecond(be);var we=me(verifyTimeZoneArguments(Ee,Ce),2),_e=we[0],Ie=we[1];this.timeZoneOffsetSeconds=_e;this.timeZoneId=Ie!==null&&Ie!==void 0?Ie:undefined;Object.freeze(this)}DateTime.fromStandardDate=function(R,pe){verifyStandardDateAndNanos(R,pe);return new DateTime(R.getFullYear(),R.getMonth()+1,R.getDate(),R.getHours(),R.getMinutes(),R.getSeconds(),(0,Ce.toNumber)(ve.totalNanoseconds(R,pe)),ve.timeZoneOffsetInSeconds(R),null)};DateTime.prototype.toStandardDate=function(){return ve.toStandardDate(this._toUTC())};DateTime.prototype.toString=function(){var R;var pe=localDateTimeToString(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond);var Ae=this.timeZoneOffsetSeconds!=null?ve.timeZoneOffsetToIsoString((R=this.timeZoneOffsetSeconds)!==null&&R!==void 0?R:0):"";var he=this.timeZoneId!=null?"[".concat(this.timeZoneId,"]"):"";return pe+Ae+he};DateTime.prototype._toUTC=function(){var R;if(this.timeZoneOffsetSeconds===undefined){throw new Error("Requires DateTime created with time zone offset")}var pe=ve.localDateTimeToEpochSecond(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond);var Ae=pe.subtract((R=this.timeZoneOffsetSeconds)!==null&&R!==void 0?R:0);return(0,Ce.int)(Ae).multiply(1e3).add((0,Ce.int)(this.nanosecond).div(1e6)).toNumber()};return DateTime}();pe.DateTime=De;Object.defineProperty(De.prototype,Oe,we);function isDateTime(R){return hasIdentifierProperty(R,Oe)}pe.isDateTime=isDateTime;function hasIdentifierProperty(R,pe){return R!=null&&R[pe]===true}function localDateTimeToString(R,pe,Ae,he,ge,ye,me){return ve.dateToIsoString(R,pe,Ae)+"T"+ve.timeToIsoString(he,ge,ye,me)}function verifyTimeZoneArguments(R,pe){var Ae=R!==null&&R!==undefined;var he=pe!==null&&pe!==undefined&&pe!=="";if(!Ae&&!he){throw(0,Ee.newError)("Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: ".concat(R," and id: ").concat(pe))}var ge=[undefined,undefined];if(Ae){(0,be.assertNumberOrInteger)(R,"Time zone offset in seconds");ge[0]=R}if(he){(0,be.assertString)(pe,"Time zone ID");ve.assertValidZoneId("Time zone ID",pe);ge[1]=pe}return ge}function verifyStandardDateAndNanos(R,pe){(0,be.assertValidDate)(R,"Standard date");if(pe!==null&&pe!==undefined){(0,be.assertNumberOrInteger)(pe,"Nanosecond")}}},93169:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function ManagedTransaction(R){var pe=R.run;this._run=pe}ManagedTransaction.fromTransaction=function(R){return new ManagedTransaction({run:R.run.bind(R)})};ManagedTransaction.prototype.run=function(R,pe){return this._run(R,pe)};return ManagedTransaction}();pe["default"]=Ae},37269:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__assign||function(){ge=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0||Ae===ve){return Ae}else if(Ae===0||Ae<0){throw new Error("The fetch size can only be a positive value or ".concat(ve," for ALL. However fetchSize = ").concat(Ae))}else{return pe}}pe["default"]=Ce},42934:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(55065);var ge=Ae(1752);var ye=Ae(50749);var me=he.internal.logger.Logger;var ve=he.error.SERVICE_UNAVAILABLE;var be=30*1e3;var Ee=1e3;var Ce=2;var we=.2;var _e=function(){function RxRetryLogic(R){var pe=R===void 0?{}:R,Ae=pe.maxRetryTimeout,he=Ae===void 0?be:Ae,ge=pe.initialDelay,ye=ge===void 0?Ee:ge,me=pe.delayMultiplier,ve=me===void 0?Ce:me,_e=pe.delayJitter,Ie=_e===void 0?we:_e,Se=pe.logger,Be=Se===void 0?null:Se;this._maxRetryTimeout=valueOrDefault(he,be);this._initialDelay=valueOrDefault(ye,Ee);this._delayMultiplier=valueOrDefault(ve,Ce);this._delayJitter=valueOrDefault(Ie,we);this._logger=Be}RxRetryLogic.prototype.retry=function(R){var pe=this;return R.pipe((0,ye.retryWhen)((function(R){var Ae=[];var me=Date.now();var be=1;var Ee=pe._initialDelay;return R.pipe((0,ye.mergeMap)((function(R){if(!(0,he.isRetriableError)(R)){return(0,ge.throwError)((function(){return R}))}Ae.push(R);if(be>=2&&Date.now()-me>=pe._maxRetryTimeout){var Ce=(0,he.newError)("Failed after retried for ".concat(be," times in ").concat(pe._maxRetryTimeout," ms. Make sure that your database is online and retry again."),ve);Ce.seenErrors=Ae;return(0,ge.throwError)((function(){return Ce}))}var we=pe._computeNextDelay(Ee);Ee=Ee*pe._delayMultiplier;be++;if(pe._logger){pe._logger.warn("Transaction failed and will be retried in ".concat(we))}return(0,ge.of)(1).pipe((0,ye.delay)(we))})))})))};RxRetryLogic.prototype._computeNextDelay=function(R){var pe=R*this._delayJitter;return R-pe+2*pe*Math.random()};return RxRetryLogic}();pe["default"]=_e;function valueOrDefault(R,pe){if(R||R===0){return R}return pe}},70211:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]="5.23.0"},75070:(R,pe,Ae)=>{"use strict";const he=Ae(12781);const{Buffer:ge}=Ae(14300);const ye=new TextDecoder("utf8",{fatal:true,ignoreBOM:true});class NoFilter extends he.Transform{constructor(R,pe,Ae={}){let he=null;let ye=null;switch(typeof R){case"object":if(ge.isBuffer(R)){he=R}else if(R){Ae=R}break;case"string":he=R;break;case"undefined":break;default:throw new TypeError("Invalid input")}switch(typeof pe){case"object":if(pe){Ae=pe}break;case"string":ye=pe;break;case"undefined":break;default:throw new TypeError("Invalid inputEncoding")}if(!Ae||typeof Ae!=="object"){throw new TypeError("Invalid options")}if(he==null){he=Ae.input}if(ye==null){ye=Ae.inputEncoding}delete Ae.input;delete Ae.inputEncoding;const me=Ae.watchPipe==null?true:Ae.watchPipe;delete Ae.watchPipe;const ve=Boolean(Ae.readError);delete Ae.readError;super(Ae);this.readError=ve;if(me){this.on("pipe",(R=>{const pe=R._readableState.objectMode;if(this.length>0&&pe!==this._readableState.objectMode){throw new Error("Do not switch objectMode in the middle of the stream")}this._readableState.objectMode=pe;this._writableState.objectMode=pe}))}if(he!=null){this.end(he,ye)}}static isNoFilter(R){return R instanceof this}static compare(R,pe){if(!(R instanceof this)){throw new TypeError("Arguments must be NoFilters")}if(R===pe){return 0}return R.compare(pe)}static concat(R,pe){if(!Array.isArray(R)){throw new TypeError("list argument must be an Array of NoFilters")}if(R.length===0||pe===0){return ge.alloc(0)}if(pe==null){pe=R.reduce(((R,pe)=>{if(!(pe instanceof NoFilter)){throw new TypeError("list argument must be an Array of NoFilters")}return R+pe.length}),0)}let Ae=true;let he=true;const ye=R.map((R=>{if(!(R instanceof NoFilter)){throw new TypeError("list argument must be an Array of NoFilters")}const pe=R.slice();if(ge.isBuffer(pe)){he=false}else{Ae=false}return pe}));if(Ae){return ge.concat(ye,pe)}if(he){return[].concat(...ye).slice(0,pe)}throw new Error("Concatenating mixed object and byte streams not supported")}_transform(R,pe,Ae){if(!this._readableState.objectMode&&!ge.isBuffer(R)){R=ge.from(R,pe)}this.push(R);Ae()}_bufArray(){let R=this._readableState.buffer;if(!Array.isArray(R)){let pe=R.head;R=[];while(pe!=null){R.push(pe.data);pe=pe.next}}return R}read(R){const pe=super.read(R);if(pe!=null){this.emit("read",pe);if(this.readError&&pe.length{if(this.length>=R){ge(this.read(R));return}if(this.writableFinished){ye(new Error(`Stream finished before ${R} bytes were available`));return}pe=pe=>{if(this.length>=R){ge(this.read(R))}};Ae=()=>{ye(new Error(`Stream finished before ${R} bytes were available`))};he=ye;this.on("readable",pe);this.on("error",he);this.on("finish",Ae)})).finally((()=>{if(pe){this.removeListener("readable",pe);this.removeListener("error",he);this.removeListener("finish",Ae)}}))}promise(R){let pe=false;return new Promise(((Ae,he)=>{this.on("finish",(()=>{const he=this.read();if(R!=null&&!pe){pe=true;R(null,he)}Ae(he)}));this.on("error",(Ae=>{if(R!=null&&!pe){pe=true;R(Ae)}he(Ae)}))}))}compare(R){if(!(R instanceof NoFilter)){throw new TypeError("Arguments must be NoFilters")}if(this===R){return 0}const pe=this.slice();const Ae=R.slice();if(ge.isBuffer(pe)&&ge.isBuffer(Ae)){return pe.compare(Ae)}throw new Error("Cannot compare streams in object mode")}equals(R){return this.compare(R)===0}slice(R,pe){if(this._readableState.objectMode){return this._bufArray().slice(R,pe)}const Ae=this._bufArray();switch(Ae.length){case 0:return ge.alloc(0);case 1:return Ae[0].slice(R,pe);default:{const he=ge.concat(Ae);return he.slice(R,pe)}}}get(R){return this.slice()[R]}toJSON(){const R=this.slice();if(ge.isBuffer(R)){return R.toJSON()}return R}toString(R,pe,Ae){const he=this.slice(pe,Ae);if(!ge.isBuffer(he)){return JSON.stringify(he)}if(!R||R==="utf8"){return ye.decode(he)}return he.toString(R)}[Symbol.for("nodejs.util.inspect.custom")](R,pe){const Ae=this._bufArray();const he=Ae.map((R=>{if(ge.isBuffer(R)){return pe.stylize(R.toString("hex"),"string")}return JSON.stringify(R)})).join(", ");return`${this.constructor.name} [${he}]`}get length(){return this._readableState.length}writeBigInt(R){let pe=R.toString(16);if(R<0){const Ae=BigInt(Math.floor(pe.length/2));const he=BigInt(1)<{"use strict";const{Deflate:he,deflate:ge,deflateRaw:ye,gzip:me}=Ae(17265);const{Inflate:ve,inflate:be,inflateRaw:Ee,ungzip:Ce}=Ae(96522);const we=Ae(58282);R.exports.Deflate=he;R.exports.deflate=ge;R.exports.deflateRaw=ye;R.exports.gzip=me;R.exports.Inflate=ve;R.exports.inflate=be;R.exports.inflateRaw=Ee;R.exports.ungzip=Ce;R.exports.constants=we},17265:(R,pe,Ae)=>{"use strict";const he=Ae(70978);const ge=Ae(5483);const ye=Ae(42380);const me=Ae(1890);const ve=Ae(86442);const be=Object.prototype.toString;const{Z_NO_FLUSH:Ee,Z_SYNC_FLUSH:Ce,Z_FULL_FLUSH:we,Z_FINISH:_e,Z_OK:Ie,Z_STREAM_END:Se,Z_DEFAULT_COMPRESSION:Be,Z_DEFAULT_STRATEGY:ke,Z_DEFLATED:Oe}=Ae(58282);function Deflate(R){this.options=ge.assign({level:Be,method:Oe,chunkSize:16384,windowBits:15,memLevel:8,strategy:ke},R||{});let pe=this.options;if(pe.raw&&pe.windowBits>0){pe.windowBits=-pe.windowBits}else if(pe.gzip&&pe.windowBits>0&&pe.windowBits<16){pe.windowBits+=16}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new ve;this.strm.avail_out=0;let Ae=he.deflateInit2(this.strm,pe.level,pe.method,pe.windowBits,pe.memLevel,pe.strategy);if(Ae!==Ie){throw new Error(me[Ae])}if(pe.header){he.deflateSetHeader(this.strm,pe.header)}if(pe.dictionary){let R;if(typeof pe.dictionary==="string"){R=ye.string2buf(pe.dictionary)}else if(be.call(pe.dictionary)==="[object ArrayBuffer]"){R=new Uint8Array(pe.dictionary)}else{R=pe.dictionary}Ae=he.deflateSetDictionary(this.strm,R);if(Ae!==Ie){throw new Error(me[Ae])}this._dict_set=true}}Deflate.prototype.push=function(R,pe){const Ae=this.strm;const ge=this.options.chunkSize;let me,ve;if(this.ended){return false}if(pe===~~pe)ve=pe;else ve=pe===true?_e:Ee;if(typeof R==="string"){Ae.input=ye.string2buf(R)}else if(be.call(R)==="[object ArrayBuffer]"){Ae.input=new Uint8Array(R)}else{Ae.input=R}Ae.next_in=0;Ae.avail_in=Ae.input.length;for(;;){if(Ae.avail_out===0){Ae.output=new Uint8Array(ge);Ae.next_out=0;Ae.avail_out=ge}if((ve===Ce||ve===we)&&Ae.avail_out<=6){this.onData(Ae.output.subarray(0,Ae.next_out));Ae.avail_out=0;continue}me=he.deflate(Ae,ve);if(me===Se){if(Ae.next_out>0){this.onData(Ae.output.subarray(0,Ae.next_out))}me=he.deflateEnd(this.strm);this.onEnd(me);this.ended=true;return me===Ie}if(Ae.avail_out===0){this.onData(Ae.output);continue}if(ve>0&&Ae.next_out>0){this.onData(Ae.output.subarray(0,Ae.next_out));Ae.avail_out=0;continue}if(Ae.avail_in===0)break}return true};Deflate.prototype.onData=function(R){this.chunks.push(R)};Deflate.prototype.onEnd=function(R){if(R===Ie){this.result=ge.flattenChunks(this.chunks)}this.chunks=[];this.err=R;this.msg=this.strm.msg};function deflate(R,pe){const Ae=new Deflate(pe);Ae.push(R,true);if(Ae.err){throw Ae.msg||me[Ae.err]}return Ae.result}function deflateRaw(R,pe){pe=pe||{};pe.raw=true;return deflate(R,pe)}function gzip(R,pe){pe=pe||{};pe.gzip=true;return deflate(R,pe)}R.exports.Deflate=Deflate;R.exports.deflate=deflate;R.exports.deflateRaw=deflateRaw;R.exports.gzip=gzip;R.exports.constants=Ae(58282)},96522:(R,pe,Ae)=>{"use strict";const he=Ae(90409);const ge=Ae(5483);const ye=Ae(42380);const me=Ae(1890);const ve=Ae(86442);const be=Ae(35105);const Ee=Object.prototype.toString;const{Z_NO_FLUSH:Ce,Z_FINISH:we,Z_OK:_e,Z_STREAM_END:Ie,Z_NEED_DICT:Se,Z_STREAM_ERROR:Be,Z_DATA_ERROR:ke,Z_MEM_ERROR:Oe}=Ae(58282);function Inflate(R){this.options=ge.assign({chunkSize:1024*64,windowBits:15,to:""},R||{});const pe=this.options;if(pe.raw&&pe.windowBits>=0&&pe.windowBits<16){pe.windowBits=-pe.windowBits;if(pe.windowBits===0){pe.windowBits=-15}}if(pe.windowBits>=0&&pe.windowBits<16&&!(R&&R.windowBits)){pe.windowBits+=32}if(pe.windowBits>15&&pe.windowBits<48){if((pe.windowBits&15)===0){pe.windowBits|=15}}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new ve;this.strm.avail_out=0;let Ae=he.inflateInit2(this.strm,pe.windowBits);if(Ae!==_e){throw new Error(me[Ae])}this.header=new be;he.inflateGetHeader(this.strm,this.header);if(pe.dictionary){if(typeof pe.dictionary==="string"){pe.dictionary=ye.string2buf(pe.dictionary)}else if(Ee.call(pe.dictionary)==="[object ArrayBuffer]"){pe.dictionary=new Uint8Array(pe.dictionary)}if(pe.raw){Ae=he.inflateSetDictionary(this.strm,pe.dictionary);if(Ae!==_e){throw new Error(me[Ae])}}}}Inflate.prototype.push=function(R,pe){const Ae=this.strm;const ge=this.options.chunkSize;const me=this.options.dictionary;let ve,be,Re;if(this.ended)return false;if(pe===~~pe)be=pe;else be=pe===true?we:Ce;if(Ee.call(R)==="[object ArrayBuffer]"){Ae.input=new Uint8Array(R)}else{Ae.input=R}Ae.next_in=0;Ae.avail_in=Ae.input.length;for(;;){if(Ae.avail_out===0){Ae.output=new Uint8Array(ge);Ae.next_out=0;Ae.avail_out=ge}ve=he.inflate(Ae,be);if(ve===Se&&me){ve=he.inflateSetDictionary(Ae,me);if(ve===_e){ve=he.inflate(Ae,be)}else if(ve===ke){ve=Se}}while(Ae.avail_in>0&&ve===Ie&&Ae.state.wrap>0&&R[Ae.next_in]!==0){he.inflateReset(Ae);ve=he.inflate(Ae,be)}switch(ve){case Be:case ke:case Se:case Oe:this.onEnd(ve);this.ended=true;return false}Re=Ae.avail_out;if(Ae.next_out){if(Ae.avail_out===0||ve===Ie){if(this.options.to==="string"){let R=ye.utf8border(Ae.output,Ae.next_out);let pe=Ae.next_out-R;let he=ye.buf2string(Ae.output,R);Ae.next_out=pe;Ae.avail_out=ge-pe;if(pe)Ae.output.set(Ae.output.subarray(R,R+pe),0);this.onData(he)}else{this.onData(Ae.output.length===Ae.next_out?Ae.output:Ae.output.subarray(0,Ae.next_out))}}}if(ve===_e&&Re===0)continue;if(ve===Ie){ve=he.inflateEnd(this.strm);this.onEnd(ve);this.ended=true;return true}if(Ae.avail_in===0)break}return true};Inflate.prototype.onData=function(R){this.chunks.push(R)};Inflate.prototype.onEnd=function(R){if(R===_e){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=ge.flattenChunks(this.chunks)}}this.chunks=[];this.err=R;this.msg=this.strm.msg};function inflate(R,pe){const Ae=new Inflate(pe);Ae.push(R);if(Ae.err)throw Ae.msg||me[Ae.err];return Ae.result}function inflateRaw(R,pe){pe=pe||{};pe.raw=true;return inflate(R,pe)}R.exports.Inflate=Inflate;R.exports.inflate=inflate;R.exports.inflateRaw=inflateRaw;R.exports.ungzip=inflate;R.exports.constants=Ae(58282)},5483:R=>{"use strict";const _has=(R,pe)=>Object.prototype.hasOwnProperty.call(R,pe);R.exports.assign=function(R){const pe=Array.prototype.slice.call(arguments,1);while(pe.length){const Ae=pe.shift();if(!Ae){continue}if(typeof Ae!=="object"){throw new TypeError(Ae+"must be non-object")}for(const pe in Ae){if(_has(Ae,pe)){R[pe]=Ae[pe]}}}return R};R.exports.flattenChunks=R=>{let pe=0;for(let Ae=0,he=R.length;Ae{"use strict";let pe=true;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(R){pe=false}const Ae=new Uint8Array(256);for(let R=0;R<256;R++){Ae[R]=R>=252?6:R>=248?5:R>=240?4:R>=224?3:R>=192?2:1}Ae[254]=Ae[254]=1;R.exports.string2buf=R=>{if(typeof TextEncoder==="function"&&TextEncoder.prototype.encode){return(new TextEncoder).encode(R)}let pe,Ae,he,ge,ye,me=R.length,ve=0;for(ge=0;ge>>6;pe[ye++]=128|Ae&63}else if(Ae<65536){pe[ye++]=224|Ae>>>12;pe[ye++]=128|Ae>>>6&63;pe[ye++]=128|Ae&63}else{pe[ye++]=240|Ae>>>18;pe[ye++]=128|Ae>>>12&63;pe[ye++]=128|Ae>>>6&63;pe[ye++]=128|Ae&63}}return pe};const buf2binstring=(R,Ae)=>{if(Ae<65534){if(R.subarray&&pe){return String.fromCharCode.apply(null,R.length===Ae?R:R.subarray(0,Ae))}}let he="";for(let pe=0;pe{const he=pe||R.length;if(typeof TextDecoder==="function"&&TextDecoder.prototype.decode){return(new TextDecoder).decode(R.subarray(0,pe))}let ge,ye;const me=new Array(he*2);for(ye=0,ge=0;ge4){me[ye++]=65533;ge+=ve-1;continue}pe&=ve===2?31:ve===3?15:7;while(ve>1&&ge1){me[ye++]=65533;continue}if(pe<65536){me[ye++]=pe}else{pe-=65536;me[ye++]=55296|pe>>10&1023;me[ye++]=56320|pe&1023}}return buf2binstring(me,ye)};R.exports.utf8border=(R,pe)=>{pe=pe||R.length;if(pe>R.length){pe=R.length}let he=pe-1;while(he>=0&&(R[he]&192)===128){he--}if(he<0){return pe}if(he===0){return pe}return he+Ae[R[he]]>pe?he:pe}},86924:R=>{"use strict";const adler32=(R,pe,Ae,he)=>{let ge=R&65535|0,ye=R>>>16&65535|0,me=0;while(Ae!==0){me=Ae>2e3?2e3:Ae;Ae-=me;do{ge=ge+pe[he++]|0;ye=ye+ge|0}while(--me);ge%=65521;ye%=65521}return ge|ye<<16|0};R.exports=adler32},58282:R=>{"use strict";R.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}},87242:R=>{"use strict";const makeTable=()=>{let R,pe=[];for(var Ae=0;Ae<256;Ae++){R=Ae;for(var he=0;he<8;he++){R=R&1?3988292384^R>>>1:R>>>1}pe[Ae]=R}return pe};const pe=new Uint32Array(makeTable());const crc32=(R,Ae,he,ge)=>{const ye=pe;const me=ge+he;R^=-1;for(let pe=ge;pe>>8^ye[(R^Ae[pe])&255]}return R^-1};R.exports=crc32},70978:(R,pe,Ae)=>{"use strict";const{_tr_init:he,_tr_stored_block:ge,_tr_flush_block:ye,_tr_tally:me,_tr_align:ve}=Ae(78754);const be=Ae(86924);const Ee=Ae(87242);const Ce=Ae(1890);const{Z_NO_FLUSH:we,Z_PARTIAL_FLUSH:_e,Z_FULL_FLUSH:Ie,Z_FINISH:Se,Z_BLOCK:Be,Z_OK:ke,Z_STREAM_END:Oe,Z_STREAM_ERROR:Re,Z_DATA_ERROR:Qe,Z_BUF_ERROR:xe,Z_DEFAULT_COMPRESSION:Pe,Z_FILTERED:Te,Z_HUFFMAN_ONLY:De,Z_RLE:Ne,Z_FIXED:Me,Z_DEFAULT_STRATEGY:je,Z_UNKNOWN:Fe,Z_DEFLATED:Le}=Ae(58282);const Ue=9;const He=15;const Je=8;const We=29;const Ve=256;const Ke=Ve+1+We;const Ge=30;const Ye=19;const qe=2*Ke+1;const $e=15;const ze=3;const Xe=258;const Ze=Xe+ze+1;const et=32;const tt=42;const rt=57;const nt=69;const it=73;const ot=91;const st=103;const at=113;const ct=666;const ut=1;const lt=2;const dt=3;const ft=4;const pt=3;const err=(R,pe)=>{R.msg=Ce[pe];return pe};const rank=R=>R*2-(R>4?9:0);const zero=R=>{let pe=R.length;while(--pe>=0){R[pe]=0}};const slide_hash=R=>{let pe,Ae;let he;let ge=R.w_size;pe=R.hash_size;he=pe;do{Ae=R.head[--he];R.head[he]=Ae>=ge?Ae-ge:0}while(--pe);pe=ge;he=pe;do{Ae=R.prev[--he];R.prev[he]=Ae>=ge?Ae-ge:0}while(--pe)};let HASH_ZLIB=(R,pe,Ae)=>(pe<{const pe=R.state;let Ae=pe.pending;if(Ae>R.avail_out){Ae=R.avail_out}if(Ae===0){return}R.output.set(pe.pending_buf.subarray(pe.pending_out,pe.pending_out+Ae),R.next_out);R.next_out+=Ae;pe.pending_out+=Ae;R.total_out+=Ae;R.avail_out-=Ae;pe.pending-=Ae;if(pe.pending===0){pe.pending_out=0}};const flush_block_only=(R,pe)=>{ye(R,R.block_start>=0?R.block_start:-1,R.strstart-R.block_start,pe);R.block_start=R.strstart;flush_pending(R.strm)};const put_byte=(R,pe)=>{R.pending_buf[R.pending++]=pe};const putShortMSB=(R,pe)=>{R.pending_buf[R.pending++]=pe>>>8&255;R.pending_buf[R.pending++]=pe&255};const read_buf=(R,pe,Ae,he)=>{let ge=R.avail_in;if(ge>he){ge=he}if(ge===0){return 0}R.avail_in-=ge;pe.set(R.input.subarray(R.next_in,R.next_in+ge),Ae);if(R.state.wrap===1){R.adler=be(R.adler,pe,ge,Ae)}else if(R.state.wrap===2){R.adler=Ee(R.adler,pe,ge,Ae)}R.next_in+=ge;R.total_in+=ge;return ge};const longest_match=(R,pe)=>{let Ae=R.max_chain_length;let he=R.strstart;let ge;let ye;let me=R.prev_length;let ve=R.nice_match;const be=R.strstart>R.w_size-Ze?R.strstart-(R.w_size-Ze):0;const Ee=R.window;const Ce=R.w_mask;const we=R.prev;const _e=R.strstart+Xe;let Ie=Ee[he+me-1];let Se=Ee[he+me];if(R.prev_length>=R.good_match){Ae>>=2}if(ve>R.lookahead){ve=R.lookahead}do{ge=pe;if(Ee[ge+me]!==Se||Ee[ge+me-1]!==Ie||Ee[ge]!==Ee[he]||Ee[++ge]!==Ee[he+1]){continue}he+=2;ge++;do{}while(Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&he<_e);ye=Xe-(_e-he);he=_e-Xe;if(ye>me){R.match_start=pe;me=ye;if(ye>=ve){break}Ie=Ee[he+me-1];Se=Ee[he+me]}}while((pe=we[pe&Ce])>be&&--Ae!==0);if(me<=R.lookahead){return me}return R.lookahead};const fill_window=R=>{const pe=R.w_size;let Ae,he,ge;do{he=R.window_size-R.lookahead-R.strstart;if(R.strstart>=pe+(pe-Ze)){R.window.set(R.window.subarray(pe,pe+pe-he),0);R.match_start-=pe;R.strstart-=pe;R.block_start-=pe;if(R.insert>R.strstart){R.insert=R.strstart}slide_hash(R);he+=pe}if(R.strm.avail_in===0){break}Ae=read_buf(R.strm,R.window,R.strstart+R.lookahead,he);R.lookahead+=Ae;if(R.lookahead+R.insert>=ze){ge=R.strstart-R.insert;R.ins_h=R.window[ge];R.ins_h=At(R,R.ins_h,R.window[ge+1]);while(R.insert){R.ins_h=At(R,R.ins_h,R.window[ge+ze-1]);R.prev[ge&R.w_mask]=R.head[R.ins_h];R.head[R.ins_h]=ge;ge++;R.insert--;if(R.lookahead+R.insert{let Ae=R.pending_buf_size-5>R.w_size?R.w_size:R.pending_buf_size-5;let he,ye,me,ve=0;let be=R.strm.avail_in;do{he=65535;me=R.bi_valid+42>>3;if(R.strm.avail_outye+R.strm.avail_in){he=ye+R.strm.avail_in}if(he>me){he=me}if(he>8;R.pending_buf[R.pending-2]=~he;R.pending_buf[R.pending-1]=~he>>8;flush_pending(R.strm);if(ye){if(ye>he){ye=he}R.strm.output.set(R.window.subarray(R.block_start,R.block_start+ye),R.strm.next_out);R.strm.next_out+=ye;R.strm.avail_out-=ye;R.strm.total_out+=ye;R.block_start+=ye;he-=ye}if(he){read_buf(R.strm,R.strm.output,R.strm.next_out,he);R.strm.next_out+=he;R.strm.avail_out-=he;R.strm.total_out+=he}}while(ve===0);be-=R.strm.avail_in;if(be){if(be>=R.w_size){R.matches=2;R.window.set(R.strm.input.subarray(R.strm.next_in-R.w_size,R.strm.next_in),0);R.strstart=R.w_size;R.insert=R.strstart}else{if(R.window_size-R.strstart<=be){R.strstart-=R.w_size;R.window.set(R.window.subarray(R.w_size,R.w_size+R.strstart),0);if(R.matches<2){R.matches++}if(R.insert>R.strstart){R.insert=R.strstart}}R.window.set(R.strm.input.subarray(R.strm.next_in-be,R.strm.next_in),R.strstart);R.strstart+=be;R.insert+=be>R.w_size-R.insert?R.w_size-R.insert:be}R.block_start=R.strstart}if(R.high_waterme&&R.block_start>=R.w_size){R.block_start-=R.w_size;R.strstart-=R.w_size;R.window.set(R.window.subarray(R.w_size,R.w_size+R.strstart),0);if(R.matches<2){R.matches++}me+=R.w_size;if(R.insert>R.strstart){R.insert=R.strstart}}if(me>R.strm.avail_in){me=R.strm.avail_in}if(me){read_buf(R.strm,R.window,R.strstart,me);R.strstart+=me;R.insert+=me>R.w_size-R.insert?R.w_size-R.insert:me}if(R.high_water>3;me=R.pending_buf_size-me>65535?65535:R.pending_buf_size-me;Ae=me>R.w_size?R.w_size:me;ye=R.strstart-R.block_start;if(ye>=Ae||(ye||pe===Se)&&pe!==we&&R.strm.avail_in===0&&ye<=me){he=ye>me?me:ye;ve=pe===Se&&R.strm.avail_in===0&&he===ye?1:0;ge(R,R.block_start,he,ve);R.block_start+=he;flush_pending(R.strm)}return ve?dt:ut};const deflate_fast=(R,pe)=>{let Ae;let he;for(;;){if(R.lookahead=ze){R.ins_h=At(R,R.ins_h,R.window[R.strstart+ze-1]);Ae=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h];R.head[R.ins_h]=R.strstart}if(Ae!==0&&R.strstart-Ae<=R.w_size-Ze){R.match_length=longest_match(R,Ae)}if(R.match_length>=ze){he=me(R,R.strstart-R.match_start,R.match_length-ze);R.lookahead-=R.match_length;if(R.match_length<=R.max_lazy_match&&R.lookahead>=ze){R.match_length--;do{R.strstart++;R.ins_h=At(R,R.ins_h,R.window[R.strstart+ze-1]);Ae=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h];R.head[R.ins_h]=R.strstart}while(--R.match_length!==0);R.strstart++}else{R.strstart+=R.match_length;R.match_length=0;R.ins_h=R.window[R.strstart];R.ins_h=At(R,R.ins_h,R.window[R.strstart+1])}}else{he=me(R,0,R.window[R.strstart]);R.lookahead--;R.strstart++}if(he){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}}R.insert=R.strstart{let Ae;let he;let ge;for(;;){if(R.lookahead=ze){R.ins_h=At(R,R.ins_h,R.window[R.strstart+ze-1]);Ae=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h];R.head[R.ins_h]=R.strstart}R.prev_length=R.match_length;R.prev_match=R.match_start;R.match_length=ze-1;if(Ae!==0&&R.prev_length4096)){R.match_length=ze-1}}if(R.prev_length>=ze&&R.match_length<=R.prev_length){ge=R.strstart+R.lookahead-ze;he=me(R,R.strstart-1-R.prev_match,R.prev_length-ze);R.lookahead-=R.prev_length-1;R.prev_length-=2;do{if(++R.strstart<=ge){R.ins_h=At(R,R.ins_h,R.window[R.strstart+ze-1]);Ae=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h];R.head[R.ins_h]=R.strstart}}while(--R.prev_length!==0);R.match_available=0;R.match_length=ze-1;R.strstart++;if(he){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}}else if(R.match_available){he=me(R,0,R.window[R.strstart-1]);if(he){flush_block_only(R,false)}R.strstart++;R.lookahead--;if(R.strm.avail_out===0){return ut}}else{R.match_available=1;R.strstart++;R.lookahead--}}if(R.match_available){he=me(R,0,R.window[R.strstart-1]);R.match_available=0}R.insert=R.strstart{let Ae;let he;let ge,ye;const ve=R.window;for(;;){if(R.lookahead<=Xe){fill_window(R);if(R.lookahead<=Xe&&pe===we){return ut}if(R.lookahead===0){break}}R.match_length=0;if(R.lookahead>=ze&&R.strstart>0){ge=R.strstart-1;he=ve[ge];if(he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]){ye=R.strstart+Xe;do{}while(he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&geR.lookahead){R.match_length=R.lookahead}}}if(R.match_length>=ze){Ae=me(R,1,R.match_length-ze);R.lookahead-=R.match_length;R.strstart+=R.match_length;R.match_length=0}else{Ae=me(R,0,R.window[R.strstart]);R.lookahead--;R.strstart++}if(Ae){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}}R.insert=0;if(pe===Se){flush_block_only(R,true);if(R.strm.avail_out===0){return dt}return ft}if(R.sym_next){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}return lt};const deflate_huff=(R,pe)=>{let Ae;for(;;){if(R.lookahead===0){fill_window(R);if(R.lookahead===0){if(pe===we){return ut}break}}R.match_length=0;Ae=me(R,0,R.window[R.strstart]);R.lookahead--;R.strstart++;if(Ae){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}}R.insert=0;if(pe===Se){flush_block_only(R,true);if(R.strm.avail_out===0){return dt}return ft}if(R.sym_next){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}return lt};function Config(R,pe,Ae,he,ge){this.good_length=R;this.max_lazy=pe;this.nice_length=Ae;this.max_chain=he;this.func=ge}const ht=[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=R=>{R.window_size=2*R.w_size;zero(R.head);R.max_lazy_match=ht[R.level].max_lazy;R.good_match=ht[R.level].good_length;R.nice_match=ht[R.level].nice_length;R.max_chain_length=ht[R.level].max_chain;R.strstart=0;R.block_start=0;R.lookahead=0;R.insert=0;R.match_length=R.prev_length=ze-1;R.match_available=0;R.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=Le;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(qe*2);this.dyn_dtree=new Uint16Array((2*Ge+1)*2);this.bl_tree=new Uint16Array((2*Ye+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($e+1);this.heap=new Uint16Array(2*Ke+1);zero(this.heap);this.heap_len=0;this.heap_max=0;this.depth=new Uint16Array(2*Ke+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=R=>{if(!R){return 1}const pe=R.state;if(!pe||pe.strm!==R||pe.status!==tt&&pe.status!==rt&&pe.status!==nt&&pe.status!==it&&pe.status!==ot&&pe.status!==st&&pe.status!==at&&pe.status!==ct){return 1}return 0};const deflateResetKeep=R=>{if(deflateStateCheck(R)){return err(R,Re)}R.total_in=R.total_out=0;R.data_type=Fe;const pe=R.state;pe.pending=0;pe.pending_out=0;if(pe.wrap<0){pe.wrap=-pe.wrap}pe.status=pe.wrap===2?rt:pe.wrap?tt:at;R.adler=pe.wrap===2?0:1;pe.last_flush=-2;he(pe);return ke};const deflateReset=R=>{const pe=deflateResetKeep(R);if(pe===ke){lm_init(R.state)}return pe};const deflateSetHeader=(R,pe)=>{if(deflateStateCheck(R)||R.state.wrap!==2){return Re}R.state.gzhead=pe;return ke};const deflateInit2=(R,pe,Ae,he,ge,ye)=>{if(!R){return Re}let me=1;if(pe===Pe){pe=6}if(he<0){me=0;he=-he}else if(he>15){me=2;he-=16}if(ge<1||ge>Ue||Ae!==Le||he<8||he>15||pe<0||pe>9||ye<0||ye>Me||he===8&&me!==1){return err(R,Re)}if(he===8){he=9}const ve=new DeflateState;R.state=ve;ve.strm=R;ve.status=tt;ve.wrap=me;ve.gzhead=null;ve.w_bits=he;ve.w_size=1<deflateInit2(R,pe,Le,He,Je,je);const deflate=(R,pe)=>{if(deflateStateCheck(R)||pe>Be||pe<0){return R?err(R,Re):Re}const Ae=R.state;if(!R.output||R.avail_in!==0&&!R.input||Ae.status===ct&&pe!==Se){return err(R,R.avail_out===0?xe:Re)}const he=Ae.last_flush;Ae.last_flush=pe;if(Ae.pending!==0){flush_pending(R);if(R.avail_out===0){Ae.last_flush=-1;return ke}}else if(R.avail_in===0&&rank(pe)<=rank(he)&&pe!==Se){return err(R,xe)}if(Ae.status===ct&&R.avail_in!==0){return err(R,xe)}if(Ae.status===tt&&Ae.wrap===0){Ae.status=at}if(Ae.status===tt){let pe=Le+(Ae.w_bits-8<<4)<<8;let he=-1;if(Ae.strategy>=De||Ae.level<2){he=0}else if(Ae.level<6){he=1}else if(Ae.level===6){he=2}else{he=3}pe|=he<<6;if(Ae.strstart!==0){pe|=et}pe+=31-pe%31;putShortMSB(Ae,pe);if(Ae.strstart!==0){putShortMSB(Ae,R.adler>>>16);putShortMSB(Ae,R.adler&65535)}R.adler=1;Ae.status=at;flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}}if(Ae.status===rt){R.adler=0;put_byte(Ae,31);put_byte(Ae,139);put_byte(Ae,8);if(!Ae.gzhead){put_byte(Ae,0);put_byte(Ae,0);put_byte(Ae,0);put_byte(Ae,0);put_byte(Ae,0);put_byte(Ae,Ae.level===9?2:Ae.strategy>=De||Ae.level<2?4:0);put_byte(Ae,pt);Ae.status=at;flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}}else{put_byte(Ae,(Ae.gzhead.text?1:0)+(Ae.gzhead.hcrc?2:0)+(!Ae.gzhead.extra?0:4)+(!Ae.gzhead.name?0:8)+(!Ae.gzhead.comment?0:16));put_byte(Ae,Ae.gzhead.time&255);put_byte(Ae,Ae.gzhead.time>>8&255);put_byte(Ae,Ae.gzhead.time>>16&255);put_byte(Ae,Ae.gzhead.time>>24&255);put_byte(Ae,Ae.level===9?2:Ae.strategy>=De||Ae.level<2?4:0);put_byte(Ae,Ae.gzhead.os&255);if(Ae.gzhead.extra&&Ae.gzhead.extra.length){put_byte(Ae,Ae.gzhead.extra.length&255);put_byte(Ae,Ae.gzhead.extra.length>>8&255)}if(Ae.gzhead.hcrc){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending,0)}Ae.gzindex=0;Ae.status=nt}}if(Ae.status===nt){if(Ae.gzhead.extra){let pe=Ae.pending;let he=(Ae.gzhead.extra.length&65535)-Ae.gzindex;while(Ae.pending+he>Ae.pending_buf_size){let ge=Ae.pending_buf_size-Ae.pending;Ae.pending_buf.set(Ae.gzhead.extra.subarray(Ae.gzindex,Ae.gzindex+ge),Ae.pending);Ae.pending=Ae.pending_buf_size;if(Ae.gzhead.hcrc&&Ae.pending>pe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}Ae.gzindex+=ge;flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}pe=0;he-=ge}let ge=new Uint8Array(Ae.gzhead.extra);Ae.pending_buf.set(ge.subarray(Ae.gzindex,Ae.gzindex+he),Ae.pending);Ae.pending+=he;if(Ae.gzhead.hcrc&&Ae.pending>pe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}Ae.gzindex=0}Ae.status=it}if(Ae.status===it){if(Ae.gzhead.name){let pe=Ae.pending;let he;do{if(Ae.pending===Ae.pending_buf_size){if(Ae.gzhead.hcrc&&Ae.pending>pe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}pe=0}if(Ae.gzindexpe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}Ae.gzindex=0}Ae.status=ot}if(Ae.status===ot){if(Ae.gzhead.comment){let pe=Ae.pending;let he;do{if(Ae.pending===Ae.pending_buf_size){if(Ae.gzhead.hcrc&&Ae.pending>pe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}pe=0}if(Ae.gzindexpe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}}Ae.status=st}if(Ae.status===st){if(Ae.gzhead.hcrc){if(Ae.pending+2>Ae.pending_buf_size){flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}}put_byte(Ae,R.adler&255);put_byte(Ae,R.adler>>8&255);R.adler=0}Ae.status=at;flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}}if(R.avail_in!==0||Ae.lookahead!==0||pe!==we&&Ae.status!==ct){let he=Ae.level===0?deflate_stored(Ae,pe):Ae.strategy===De?deflate_huff(Ae,pe):Ae.strategy===Ne?deflate_rle(Ae,pe):ht[Ae.level].func(Ae,pe);if(he===dt||he===ft){Ae.status=ct}if(he===ut||he===dt){if(R.avail_out===0){Ae.last_flush=-1}return ke}if(he===lt){if(pe===_e){ve(Ae)}else if(pe!==Be){ge(Ae,0,0,false);if(pe===Ie){zero(Ae.head);if(Ae.lookahead===0){Ae.strstart=0;Ae.block_start=0;Ae.insert=0}}}flush_pending(R);if(R.avail_out===0){Ae.last_flush=-1;return ke}}}if(pe!==Se){return ke}if(Ae.wrap<=0){return Oe}if(Ae.wrap===2){put_byte(Ae,R.adler&255);put_byte(Ae,R.adler>>8&255);put_byte(Ae,R.adler>>16&255);put_byte(Ae,R.adler>>24&255);put_byte(Ae,R.total_in&255);put_byte(Ae,R.total_in>>8&255);put_byte(Ae,R.total_in>>16&255);put_byte(Ae,R.total_in>>24&255)}else{putShortMSB(Ae,R.adler>>>16);putShortMSB(Ae,R.adler&65535)}flush_pending(R);if(Ae.wrap>0){Ae.wrap=-Ae.wrap}return Ae.pending!==0?ke:Oe};const deflateEnd=R=>{if(deflateStateCheck(R)){return Re}const pe=R.state.status;R.state=null;return pe===at?err(R,Qe):ke};const deflateSetDictionary=(R,pe)=>{let Ae=pe.length;if(deflateStateCheck(R)){return Re}const he=R.state;const ge=he.wrap;if(ge===2||ge===1&&he.status!==tt||he.lookahead){return Re}if(ge===1){R.adler=be(R.adler,pe,Ae,0)}he.wrap=0;if(Ae>=he.w_size){if(ge===0){zero(he.head);he.strstart=0;he.block_start=0;he.insert=0}let R=new Uint8Array(he.w_size);R.set(pe.subarray(Ae-he.w_size,Ae),0);pe=R;Ae=he.w_size}const ye=R.avail_in;const me=R.next_in;const ve=R.input;R.avail_in=Ae;R.next_in=0;R.input=pe;fill_window(he);while(he.lookahead>=ze){let R=he.strstart;let pe=he.lookahead-(ze-1);do{he.ins_h=At(he,he.ins_h,he.window[R+ze-1]);he.prev[R&he.w_mask]=he.head[he.ins_h];he.head[he.ins_h]=R;R++}while(--pe);he.strstart=R;he.lookahead=ze-1;fill_window(he)}he.strstart+=he.lookahead;he.block_start=he.strstart;he.insert=he.lookahead;he.lookahead=0;he.match_length=he.prev_length=ze-1;he.match_available=0;R.next_in=me;R.input=ve;R.avail_in=ye;he.wrap=ge;return ke};R.exports.deflateInit=deflateInit;R.exports.deflateInit2=deflateInit2;R.exports.deflateReset=deflateReset;R.exports.deflateResetKeep=deflateResetKeep;R.exports.deflateSetHeader=deflateSetHeader;R.exports.deflate=deflate;R.exports.deflateEnd=deflateEnd;R.exports.deflateSetDictionary=deflateSetDictionary;R.exports.deflateInfo="pako deflate (from Nodeca project)"},35105:R=>{"use strict";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}R.exports=GZheader},65349:R=>{"use strict";const pe=16209;const Ae=16191;R.exports=function inflate_fast(R,he){let ge;let ye;let me;let ve;let be;let Ee;let Ce;let we;let _e;let Ie;let Se;let Be;let ke;let Oe;let Re;let Qe;let xe;let Pe;let Te;let De;let Ne;let Me;let je,Fe;const Le=R.state;ge=R.next_in;je=R.input;ye=ge+(R.avail_in-5);me=R.next_out;Fe=R.output;ve=me-(he-R.avail_out);be=me+(R.avail_out-257);Ee=Le.dmax;Ce=Le.wsize;we=Le.whave;_e=Le.wnext;Ie=Le.window;Se=Le.hold;Be=Le.bits;ke=Le.lencode;Oe=Le.distcode;Re=(1<>>24;Se>>>=Pe;Be-=Pe;Pe=xe>>>16&255;if(Pe===0){Fe[me++]=xe&65535}else if(Pe&16){Te=xe&65535;Pe&=15;if(Pe){if(Be>>=Pe;Be-=Pe}if(Be<15){Se+=je[ge++]<>>24;Se>>>=Pe;Be-=Pe;Pe=xe>>>16&255;if(Pe&16){De=xe&65535;Pe&=15;if(BeEe){R.msg="invalid distance too far back";Le.mode=pe;break e}Se>>>=Pe;Be-=Pe;Pe=me-ve;if(De>Pe){Pe=De-Pe;if(Pe>we){if(Le.sane){R.msg="invalid distance too far back";Le.mode=pe;break e}}Ne=0;Me=Ie;if(_e===0){Ne+=Ce-Pe;if(Pe2){Fe[me++]=Me[Ne++];Fe[me++]=Me[Ne++];Fe[me++]=Me[Ne++];Te-=3}if(Te){Fe[me++]=Me[Ne++];if(Te>1){Fe[me++]=Me[Ne++]}}}else{Ne=me-De;do{Fe[me++]=Fe[Ne++];Fe[me++]=Fe[Ne++];Fe[me++]=Fe[Ne++];Te-=3}while(Te>2);if(Te){Fe[me++]=Fe[Ne++];if(Te>1){Fe[me++]=Fe[Ne++]}}}}else if((Pe&64)===0){xe=Oe[(xe&65535)+(Se&(1<>3;ge-=Te;Be-=Te<<3;Se&=(1<{"use strict";const he=Ae(86924);const ge=Ae(87242);const ye=Ae(65349);const me=Ae(56895);const ve=0;const be=1;const Ee=2;const{Z_FINISH:Ce,Z_BLOCK:we,Z_TREES:_e,Z_OK:Ie,Z_STREAM_END:Se,Z_NEED_DICT:Be,Z_STREAM_ERROR:ke,Z_DATA_ERROR:Oe,Z_MEM_ERROR:Re,Z_BUF_ERROR:Qe,Z_DEFLATED:xe}=Ae(58282);const Pe=16180;const Te=16181;const De=16182;const Ne=16183;const Me=16184;const je=16185;const Fe=16186;const Le=16187;const Ue=16188;const He=16189;const Je=16190;const We=16191;const Ve=16192;const Ke=16193;const Ge=16194;const Ye=16195;const qe=16196;const $e=16197;const ze=16198;const Xe=16199;const Ze=16200;const et=16201;const tt=16202;const rt=16203;const nt=16204;const it=16205;const ot=16206;const st=16207;const at=16208;const ct=16209;const ut=16210;const lt=16211;const dt=852;const ft=592;const pt=15;const At=pt;const zswap32=R=>(R>>>24&255)+(R>>>8&65280)+((R&65280)<<8)+((R&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=R=>{if(!R){return 1}const pe=R.state;if(!pe||pe.strm!==R||pe.modelt){return 1}return 0};const inflateResetKeep=R=>{if(inflateStateCheck(R)){return ke}const pe=R.state;R.total_in=R.total_out=pe.total=0;R.msg="";if(pe.wrap){R.adler=pe.wrap&1}pe.mode=Pe;pe.last=0;pe.havedict=0;pe.flags=-1;pe.dmax=32768;pe.head=null;pe.hold=0;pe.bits=0;pe.lencode=pe.lendyn=new Int32Array(dt);pe.distcode=pe.distdyn=new Int32Array(ft);pe.sane=1;pe.back=-1;return Ie};const inflateReset=R=>{if(inflateStateCheck(R)){return ke}const pe=R.state;pe.wsize=0;pe.whave=0;pe.wnext=0;return inflateResetKeep(R)};const inflateReset2=(R,pe)=>{let Ae;if(inflateStateCheck(R)){return ke}const he=R.state;if(pe<0){Ae=0;pe=-pe}else{Ae=(pe>>4)+5;if(pe<48){pe&=15}}if(pe&&(pe<8||pe>15)){return ke}if(he.window!==null&&he.wbits!==pe){he.window=null}he.wrap=Ae;he.wbits=pe;return inflateReset(R)};const inflateInit2=(R,pe)=>{if(!R){return ke}const Ae=new InflateState;R.state=Ae;Ae.strm=R;Ae.window=null;Ae.mode=Pe;const he=inflateReset2(R,pe);if(he!==Ie){R.state=null}return he};const inflateInit=R=>inflateInit2(R,At);let ht=true;let gt,yt;const fixedtables=R=>{if(ht){gt=new Int32Array(512);yt=new Int32Array(32);let pe=0;while(pe<144){R.lens[pe++]=8}while(pe<256){R.lens[pe++]=9}while(pe<280){R.lens[pe++]=7}while(pe<288){R.lens[pe++]=8}me(be,R.lens,0,288,gt,0,R.work,{bits:9});pe=0;while(pe<32){R.lens[pe++]=5}me(Ee,R.lens,0,32,yt,0,R.work,{bits:5});ht=false}R.lencode=gt;R.lenbits=9;R.distcode=yt;R.distbits=5};const updatewindow=(R,pe,Ae,he)=>{let ge;const ye=R.state;if(ye.window===null){ye.wsize=1<=ye.wsize){ye.window.set(pe.subarray(Ae-ye.wsize,Ae),0);ye.wnext=0;ye.whave=ye.wsize}else{ge=ye.wsize-ye.wnext;if(ge>he){ge=he}ye.window.set(pe.subarray(Ae-he,Ae-he+ge),ye.wnext);he-=ge;if(he){ye.window.set(pe.subarray(Ae-he,Ae),0);ye.wnext=he;ye.whave=ye.wsize}else{ye.wnext+=ge;if(ye.wnext===ye.wsize){ye.wnext=0}if(ye.whave{let Ae;let dt,ft;let pt;let At;let ht,gt;let yt;let mt;let vt,bt;let Et;let Ct;let wt;let _t=0;let It,St,Bt;let kt,Ot,Rt;let Qt;let xt;const Pt=new Uint8Array(4);let Tt;let Dt;const Nt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(R)||!R.output||!R.input&&R.avail_in!==0){return ke}Ae=R.state;if(Ae.mode===We){Ae.mode=Ve}At=R.next_out;ft=R.output;gt=R.avail_out;pt=R.next_in;dt=R.input;ht=R.avail_in;yt=Ae.hold;mt=Ae.bits;vt=ht;bt=gt;xt=Ie;e:for(;;){switch(Ae.mode){case Pe:if(Ae.wrap===0){Ae.mode=Ve;break}while(mt<16){if(ht===0){break e}ht--;yt+=dt[pt++]<>>8&255;Ae.check=ge(Ae.check,Pt,2,0);yt=0;mt=0;Ae.mode=Te;break}if(Ae.head){Ae.head.done=false}if(!(Ae.wrap&1)||(((yt&255)<<8)+(yt>>8))%31){R.msg="incorrect header check";Ae.mode=ct;break}if((yt&15)!==xe){R.msg="unknown compression method";Ae.mode=ct;break}yt>>>=4;mt-=4;Qt=(yt&15)+8;if(Ae.wbits===0){Ae.wbits=Qt}if(Qt>15||Qt>Ae.wbits){R.msg="invalid window size";Ae.mode=ct;break}Ae.dmax=1<>8&1}if(Ae.flags&512&&Ae.wrap&4){Pt[0]=yt&255;Pt[1]=yt>>>8&255;Ae.check=ge(Ae.check,Pt,2,0)}yt=0;mt=0;Ae.mode=De;case De:while(mt<32){if(ht===0){break e}ht--;yt+=dt[pt++]<>>8&255;Pt[2]=yt>>>16&255;Pt[3]=yt>>>24&255;Ae.check=ge(Ae.check,Pt,4,0)}yt=0;mt=0;Ae.mode=Ne;case Ne:while(mt<16){if(ht===0){break e}ht--;yt+=dt[pt++]<>8}if(Ae.flags&512&&Ae.wrap&4){Pt[0]=yt&255;Pt[1]=yt>>>8&255;Ae.check=ge(Ae.check,Pt,2,0)}yt=0;mt=0;Ae.mode=Me;case Me:if(Ae.flags&1024){while(mt<16){if(ht===0){break e}ht--;yt+=dt[pt++]<>>8&255;Ae.check=ge(Ae.check,Pt,2,0)}yt=0;mt=0}else if(Ae.head){Ae.head.extra=null}Ae.mode=je;case je:if(Ae.flags&1024){Et=Ae.length;if(Et>ht){Et=ht}if(Et){if(Ae.head){Qt=Ae.head.extra_len-Ae.length;if(!Ae.head.extra){Ae.head.extra=new Uint8Array(Ae.head.extra_len)}Ae.head.extra.set(dt.subarray(pt,pt+Et),Qt)}if(Ae.flags&512&&Ae.wrap&4){Ae.check=ge(Ae.check,dt,Et,pt)}ht-=Et;pt+=Et;Ae.length-=Et}if(Ae.length){break e}}Ae.length=0;Ae.mode=Fe;case Fe:if(Ae.flags&2048){if(ht===0){break e}Et=0;do{Qt=dt[pt+Et++];if(Ae.head&&Qt&&Ae.length<65536){Ae.head.name+=String.fromCharCode(Qt)}}while(Qt&&Et>9&1;Ae.head.done=true}R.adler=Ae.check=0;Ae.mode=We;break;case He:while(mt<32){if(ht===0){break e}ht--;yt+=dt[pt++]<>>=mt&7;mt-=mt&7;Ae.mode=ot;break}while(mt<3){if(ht===0){break e}ht--;yt+=dt[pt++]<>>=1;mt-=1;switch(yt&3){case 0:Ae.mode=Ke;break;case 1:fixedtables(Ae);Ae.mode=Xe;if(pe===_e){yt>>>=2;mt-=2;break e}break;case 2:Ae.mode=qe;break;case 3:R.msg="invalid block type";Ae.mode=ct}yt>>>=2;mt-=2;break;case Ke:yt>>>=mt&7;mt-=mt&7;while(mt<32){if(ht===0){break e}ht--;yt+=dt[pt++]<>>16^65535)){R.msg="invalid stored block lengths";Ae.mode=ct;break}Ae.length=yt&65535;yt=0;mt=0;Ae.mode=Ge;if(pe===_e){break e}case Ge:Ae.mode=Ye;case Ye:Et=Ae.length;if(Et){if(Et>ht){Et=ht}if(Et>gt){Et=gt}if(Et===0){break e}ft.set(dt.subarray(pt,pt+Et),At);ht-=Et;pt+=Et;gt-=Et;At+=Et;Ae.length-=Et;break}Ae.mode=We;break;case qe:while(mt<14){if(ht===0){break e}ht--;yt+=dt[pt++]<>>=5;mt-=5;Ae.ndist=(yt&31)+1;yt>>>=5;mt-=5;Ae.ncode=(yt&15)+4;yt>>>=4;mt-=4;if(Ae.nlen>286||Ae.ndist>30){R.msg="too many length or distance symbols";Ae.mode=ct;break}Ae.have=0;Ae.mode=$e;case $e:while(Ae.have>>=3;mt-=3}while(Ae.have<19){Ae.lens[Nt[Ae.have++]]=0}Ae.lencode=Ae.lendyn;Ae.lenbits=7;Tt={bits:Ae.lenbits};xt=me(ve,Ae.lens,0,19,Ae.lencode,0,Ae.work,Tt);Ae.lenbits=Tt.bits;if(xt){R.msg="invalid code lengths set";Ae.mode=ct;break}Ae.have=0;Ae.mode=ze;case ze:while(Ae.have>>24;St=_t>>>16&255;Bt=_t&65535;if(It<=mt){break}if(ht===0){break e}ht--;yt+=dt[pt++]<>>=It;mt-=It;Ae.lens[Ae.have++]=Bt}else{if(Bt===16){Dt=It+2;while(mt>>=It;mt-=It;if(Ae.have===0){R.msg="invalid bit length repeat";Ae.mode=ct;break}Qt=Ae.lens[Ae.have-1];Et=3+(yt&3);yt>>>=2;mt-=2}else if(Bt===17){Dt=It+3;while(mt>>=It;mt-=It;Qt=0;Et=3+(yt&7);yt>>>=3;mt-=3}else{Dt=It+7;while(mt>>=It;mt-=It;Qt=0;Et=11+(yt&127);yt>>>=7;mt-=7}if(Ae.have+Et>Ae.nlen+Ae.ndist){R.msg="invalid bit length repeat";Ae.mode=ct;break}while(Et--){Ae.lens[Ae.have++]=Qt}}}if(Ae.mode===ct){break}if(Ae.lens[256]===0){R.msg="invalid code -- missing end-of-block";Ae.mode=ct;break}Ae.lenbits=9;Tt={bits:Ae.lenbits};xt=me(be,Ae.lens,0,Ae.nlen,Ae.lencode,0,Ae.work,Tt);Ae.lenbits=Tt.bits;if(xt){R.msg="invalid literal/lengths set";Ae.mode=ct;break}Ae.distbits=6;Ae.distcode=Ae.distdyn;Tt={bits:Ae.distbits};xt=me(Ee,Ae.lens,Ae.nlen,Ae.ndist,Ae.distcode,0,Ae.work,Tt);Ae.distbits=Tt.bits;if(xt){R.msg="invalid distances set";Ae.mode=ct;break}Ae.mode=Xe;if(pe===_e){break e}case Xe:Ae.mode=Ze;case Ze:if(ht>=6&>>=258){R.next_out=At;R.avail_out=gt;R.next_in=pt;R.avail_in=ht;Ae.hold=yt;Ae.bits=mt;ye(R,bt);At=R.next_out;ft=R.output;gt=R.avail_out;pt=R.next_in;dt=R.input;ht=R.avail_in;yt=Ae.hold;mt=Ae.bits;if(Ae.mode===We){Ae.back=-1}break}Ae.back=0;for(;;){_t=Ae.lencode[yt&(1<>>24;St=_t>>>16&255;Bt=_t&65535;if(It<=mt){break}if(ht===0){break e}ht--;yt+=dt[pt++]<>kt)];It=_t>>>24;St=_t>>>16&255;Bt=_t&65535;if(kt+It<=mt){break}if(ht===0){break e}ht--;yt+=dt[pt++]<>>=kt;mt-=kt;Ae.back+=kt}yt>>>=It;mt-=It;Ae.back+=It;Ae.length=Bt;if(St===0){Ae.mode=it;break}if(St&32){Ae.back=-1;Ae.mode=We;break}if(St&64){R.msg="invalid literal/length code";Ae.mode=ct;break}Ae.extra=St&15;Ae.mode=et;case et:if(Ae.extra){Dt=Ae.extra;while(mt>>=Ae.extra;mt-=Ae.extra;Ae.back+=Ae.extra}Ae.was=Ae.length;Ae.mode=tt;case tt:for(;;){_t=Ae.distcode[yt&(1<>>24;St=_t>>>16&255;Bt=_t&65535;if(It<=mt){break}if(ht===0){break e}ht--;yt+=dt[pt++]<>kt)];It=_t>>>24;St=_t>>>16&255;Bt=_t&65535;if(kt+It<=mt){break}if(ht===0){break e}ht--;yt+=dt[pt++]<>>=kt;mt-=kt;Ae.back+=kt}yt>>>=It;mt-=It;Ae.back+=It;if(St&64){R.msg="invalid distance code";Ae.mode=ct;break}Ae.offset=Bt;Ae.extra=St&15;Ae.mode=rt;case rt:if(Ae.extra){Dt=Ae.extra;while(mt>>=Ae.extra;mt-=Ae.extra;Ae.back+=Ae.extra}if(Ae.offset>Ae.dmax){R.msg="invalid distance too far back";Ae.mode=ct;break}Ae.mode=nt;case nt:if(gt===0){break e}Et=bt-gt;if(Ae.offset>Et){Et=Ae.offset-Et;if(Et>Ae.whave){if(Ae.sane){R.msg="invalid distance too far back";Ae.mode=ct;break}}if(Et>Ae.wnext){Et-=Ae.wnext;Ct=Ae.wsize-Et}else{Ct=Ae.wnext-Et}if(Et>Ae.length){Et=Ae.length}wt=Ae.window}else{wt=ft;Ct=At-Ae.offset;Et=Ae.length}if(Et>gt){Et=gt}gt-=Et;Ae.length-=Et;do{ft[At++]=wt[Ct++]}while(--Et);if(Ae.length===0){Ae.mode=Ze}break;case it:if(gt===0){break e}ft[At++]=Ae.length;gt--;Ae.mode=Ze;break;case ot:if(Ae.wrap){while(mt<32){if(ht===0){break e}ht--;yt|=dt[pt++]<{if(inflateStateCheck(R)){return ke}let pe=R.state;if(pe.window){pe.window=null}R.state=null;return Ie};const inflateGetHeader=(R,pe)=>{if(inflateStateCheck(R)){return ke}const Ae=R.state;if((Ae.wrap&2)===0){return ke}Ae.head=pe;pe.done=false;return Ie};const inflateSetDictionary=(R,pe)=>{const Ae=pe.length;let ge;let ye;let me;if(inflateStateCheck(R)){return ke}ge=R.state;if(ge.wrap!==0&&ge.mode!==Je){return ke}if(ge.mode===Je){ye=1;ye=he(ye,pe,Ae,0);if(ye!==ge.check){return Oe}}me=updatewindow(R,pe,Ae,Ae);if(me){ge.mode=ut;return Re}ge.havedict=1;return Ie};R.exports.inflateReset=inflateReset;R.exports.inflateReset2=inflateReset2;R.exports.inflateResetKeep=inflateResetKeep;R.exports.inflateInit=inflateInit;R.exports.inflateInit2=inflateInit2;R.exports.inflate=inflate;R.exports.inflateEnd=inflateEnd;R.exports.inflateGetHeader=inflateGetHeader;R.exports.inflateSetDictionary=inflateSetDictionary;R.exports.inflateInfo="pako inflate (from Nodeca project)"},56895:R=>{"use strict";const pe=15;const Ae=852;const he=592;const ge=0;const ye=1;const me=2;const ve=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 be=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 Ee=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 Ce=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=(R,we,_e,Ie,Se,Be,ke,Oe)=>{const Re=Oe.bits;let Qe=0;let xe=0;let Pe=0,Te=0;let De=0;let Ne=0;let Me=0;let je=0;let Fe=0;let Le=0;let Ue;let He;let Je;let We;let Ve;let Ke=null;let Ge;const Ye=new Uint16Array(pe+1);const qe=new Uint16Array(pe+1);let $e=null;let ze,Xe,Ze;for(Qe=0;Qe<=pe;Qe++){Ye[Qe]=0}for(xe=0;xe=1;Te--){if(Ye[Te]!==0){break}}if(De>Te){De=Te}if(Te===0){Se[Be++]=1<<24|64<<16|0;Se[Be++]=1<<24|64<<16|0;Oe.bits=1;return 0}for(Pe=1;Pe0&&(R===ge||Te!==1)){return-1}qe[1]=0;for(Qe=1;QeAe||R===me&&Fe>he){return 1}for(;;){ze=Qe-Me;if(ke[xe]+1=Ge){Xe=$e[ke[xe]-Ge];Ze=Ke[ke[xe]-Ge]}else{Xe=32+64;Ze=0}Ue=1<>Me)+He]=ze<<24|Xe<<16|Ze|0}while(He!==0);Ue=1<>=1}if(Ue!==0){Le&=Ue-1;Le+=Ue}else{Le=0}xe++;if(--Ye[Qe]===0){if(Qe===Te){break}Qe=we[_e+ke[xe]]}if(Qe>De&&(Le&We)!==Je){if(Me===0){Me=De}Ve+=Pe;Ne=Qe-Me;je=1<Ae||R===me&&Fe>he){return 1}Je=Le&We;Se[Je]=De<<24|Ne<<16|Ve-Be|0}}if(Le!==0){Se[Ve+Le]=Qe-Me<<24|64<<16|0}Oe.bits=De;return 0};R.exports=inflate_table},1890:R=>{"use strict";R.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"}},78754:R=>{"use strict";const pe=4;const Ae=0;const he=1;const ge=2;function zero(R){let pe=R.length;while(--pe>=0){R[pe]=0}}const ye=0;const me=1;const ve=2;const be=3;const Ee=258;const Ce=29;const we=256;const _e=we+1+Ce;const Ie=30;const Se=19;const Be=2*_e+1;const ke=15;const Oe=16;const Re=7;const Qe=256;const xe=16;const Pe=17;const Te=18;const De=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 Ne=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 Me=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]);const je=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);const Fe=512;const Le=new Array((_e+2)*2);zero(Le);const Ue=new Array(Ie*2);zero(Ue);const He=new Array(Fe);zero(He);const Je=new Array(Ee-be+1);zero(Je);const We=new Array(Ce);zero(We);const Ve=new Array(Ie);zero(Ve);function StaticTreeDesc(R,pe,Ae,he,ge){this.static_tree=R;this.extra_bits=pe;this.extra_base=Ae;this.elems=he;this.max_length=ge;this.has_stree=R&&R.length}let Ke;let Ge;let Ye;function TreeDesc(R,pe){this.dyn_tree=R;this.max_code=0;this.stat_desc=pe}const d_code=R=>R<256?He[R]:He[256+(R>>>7)];const put_short=(R,pe)=>{R.pending_buf[R.pending++]=pe&255;R.pending_buf[R.pending++]=pe>>>8&255};const send_bits=(R,pe,Ae)=>{if(R.bi_valid>Oe-Ae){R.bi_buf|=pe<>Oe-R.bi_valid;R.bi_valid+=Ae-Oe}else{R.bi_buf|=pe<{send_bits(R,Ae[pe*2],Ae[pe*2+1])};const bi_reverse=(R,pe)=>{let Ae=0;do{Ae|=R&1;R>>>=1;Ae<<=1}while(--pe>0);return Ae>>>1};const bi_flush=R=>{if(R.bi_valid===16){put_short(R,R.bi_buf);R.bi_buf=0;R.bi_valid=0}else if(R.bi_valid>=8){R.pending_buf[R.pending++]=R.bi_buf&255;R.bi_buf>>=8;R.bi_valid-=8}};const gen_bitlen=(R,pe)=>{const Ae=pe.dyn_tree;const he=pe.max_code;const ge=pe.stat_desc.static_tree;const ye=pe.stat_desc.has_stree;const me=pe.stat_desc.extra_bits;const ve=pe.stat_desc.extra_base;const be=pe.stat_desc.max_length;let Ee;let Ce,we;let _e;let Ie;let Se;let Oe=0;for(_e=0;_e<=ke;_e++){R.bl_count[_e]=0}Ae[R.heap[R.heap_max]*2+1]=0;for(Ee=R.heap_max+1;Eebe){_e=be;Oe++}Ae[Ce*2+1]=_e;if(Ce>he){continue}R.bl_count[_e]++;Ie=0;if(Ce>=ve){Ie=me[Ce-ve]}Se=Ae[Ce*2];R.opt_len+=Se*(_e+Ie);if(ye){R.static_len+=Se*(ge[Ce*2+1]+Ie)}}if(Oe===0){return}do{_e=be-1;while(R.bl_count[_e]===0){_e--}R.bl_count[_e]--;R.bl_count[_e+1]+=2;R.bl_count[be]--;Oe-=2}while(Oe>0);for(_e=be;_e!==0;_e--){Ce=R.bl_count[_e];while(Ce!==0){we=R.heap[--Ee];if(we>he){continue}if(Ae[we*2+1]!==_e){R.opt_len+=(_e-Ae[we*2+1])*Ae[we*2];Ae[we*2+1]=_e}Ce--}}};const gen_codes=(R,pe,Ae)=>{const he=new Array(ke+1);let ge=0;let ye;let me;for(ye=1;ye<=ke;ye++){ge=ge+Ae[ye-1]<<1;he[ye]=ge}for(me=0;me<=pe;me++){let pe=R[me*2+1];if(pe===0){continue}R[me*2]=bi_reverse(he[pe]++,pe)}};const tr_static_init=()=>{let R;let pe;let Ae;let he;let ge;const ye=new Array(ke+1);Ae=0;for(he=0;he>=7;for(;he{let pe;for(pe=0;pe<_e;pe++){R.dyn_ltree[pe*2]=0}for(pe=0;pe{if(R.bi_valid>8){put_short(R,R.bi_buf)}else if(R.bi_valid>0){R.pending_buf[R.pending++]=R.bi_buf}R.bi_buf=0;R.bi_valid=0};const smaller=(R,pe,Ae,he)=>{const ge=pe*2;const ye=Ae*2;return R[ge]{const he=R.heap[Ae];let ge=Ae<<1;while(ge<=R.heap_len){if(ge{let he;let ge;let ye=0;let me;let ve;if(R.sym_next!==0){do{he=R.pending_buf[R.sym_buf+ye++]&255;he+=(R.pending_buf[R.sym_buf+ye++]&255)<<8;ge=R.pending_buf[R.sym_buf+ye++];if(he===0){send_code(R,ge,pe)}else{me=Je[ge];send_code(R,me+we+1,pe);ve=De[me];if(ve!==0){ge-=We[me];send_bits(R,ge,ve)}he--;me=d_code(he);send_code(R,me,Ae);ve=Ne[me];if(ve!==0){he-=Ve[me];send_bits(R,he,ve)}}}while(ye{const Ae=pe.dyn_tree;const he=pe.stat_desc.static_tree;const ge=pe.stat_desc.has_stree;const ye=pe.stat_desc.elems;let me,ve;let be=-1;let Ee;R.heap_len=0;R.heap_max=Be;for(me=0;me>1;me>=1;me--){pqdownheap(R,Ae,me)}Ee=ye;do{me=R.heap[1];R.heap[1]=R.heap[R.heap_len--];pqdownheap(R,Ae,1);ve=R.heap[1];R.heap[--R.heap_max]=me;R.heap[--R.heap_max]=ve;Ae[Ee*2]=Ae[me*2]+Ae[ve*2];R.depth[Ee]=(R.depth[me]>=R.depth[ve]?R.depth[me]:R.depth[ve])+1;Ae[me*2+1]=Ae[ve*2+1]=Ee;R.heap[1]=Ee++;pqdownheap(R,Ae,1)}while(R.heap_len>=2);R.heap[--R.heap_max]=R.heap[1];gen_bitlen(R,pe);gen_codes(Ae,be,R.bl_count)};const scan_tree=(R,pe,Ae)=>{let he;let ge=-1;let ye;let me=pe[0*2+1];let ve=0;let be=7;let Ee=4;if(me===0){be=138;Ee=3}pe[(Ae+1)*2+1]=65535;for(he=0;he<=Ae;he++){ye=me;me=pe[(he+1)*2+1];if(++ve{let he;let ge=-1;let ye;let me=pe[0*2+1];let ve=0;let be=7;let Ee=4;if(me===0){be=138;Ee=3}for(he=0;he<=Ae;he++){ye=me;me=pe[(he+1)*2+1];if(++ve{let pe;scan_tree(R,R.dyn_ltree,R.l_desc.max_code);scan_tree(R,R.dyn_dtree,R.d_desc.max_code);build_tree(R,R.bl_desc);for(pe=Se-1;pe>=3;pe--){if(R.bl_tree[je[pe]*2+1]!==0){break}}R.opt_len+=3*(pe+1)+5+5+4;return pe};const send_all_trees=(R,pe,Ae,he)=>{let ge;send_bits(R,pe-257,5);send_bits(R,Ae-1,5);send_bits(R,he-4,4);for(ge=0;ge{let pe=4093624447;let ge;for(ge=0;ge<=31;ge++,pe>>>=1){if(pe&1&&R.dyn_ltree[ge*2]!==0){return Ae}}if(R.dyn_ltree[9*2]!==0||R.dyn_ltree[10*2]!==0||R.dyn_ltree[13*2]!==0){return he}for(ge=32;ge{if(!qe){tr_static_init();qe=true}R.l_desc=new TreeDesc(R.dyn_ltree,Ke);R.d_desc=new TreeDesc(R.dyn_dtree,Ge);R.bl_desc=new TreeDesc(R.bl_tree,Ye);R.bi_buf=0;R.bi_valid=0;init_block(R)};const _tr_stored_block=(R,pe,Ae,he)=>{send_bits(R,(ye<<1)+(he?1:0),3);bi_windup(R);put_short(R,Ae);put_short(R,~Ae);if(Ae){R.pending_buf.set(R.window.subarray(pe,pe+Ae),R.pending)}R.pending+=Ae};const _tr_align=R=>{send_bits(R,me<<1,3);send_code(R,Qe,Le);bi_flush(R)};const _tr_flush_block=(R,Ae,he,ye)=>{let be,Ee;let Ce=0;if(R.level>0){if(R.strm.data_type===ge){R.strm.data_type=detect_data_type(R)}build_tree(R,R.l_desc);build_tree(R,R.d_desc);Ce=build_bl_tree(R);be=R.opt_len+3+7>>>3;Ee=R.static_len+3+7>>>3;if(Ee<=be){be=Ee}}else{be=Ee=he+5}if(he+4<=be&&Ae!==-1){_tr_stored_block(R,Ae,he,ye)}else if(R.strategy===pe||Ee===be){send_bits(R,(me<<1)+(ye?1:0),3);compress_block(R,Le,Ue)}else{send_bits(R,(ve<<1)+(ye?1:0),3);send_all_trees(R,R.l_desc.max_code+1,R.d_desc.max_code+1,Ce+1);compress_block(R,R.dyn_ltree,R.dyn_dtree)}init_block(R);if(ye){bi_windup(R)}};const _tr_tally=(R,pe,Ae)=>{R.pending_buf[R.sym_buf+R.sym_next++]=pe;R.pending_buf[R.sym_buf+R.sym_next++]=pe>>8;R.pending_buf[R.sym_buf+R.sym_next++]=Ae;if(pe===0){R.dyn_ltree[Ae*2]++}else{R.matches++;pe--;R.dyn_ltree[(Je[Ae]+we+1)*2]++;R.dyn_dtree[d_code(pe)*2]++}return R.sym_next===R.sym_end};R.exports._tr_init=_tr_init;R.exports._tr_stored_block=_tr_stored_block;R.exports._tr_flush_block=_tr_flush_block;R.exports._tr_tally=_tr_tally;R.exports._tr_align=_tr_align},86442:R=>{"use strict";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}R.exports=ZStream},63329:(R,pe,Ae)=>{"use strict";var he=Ae(57310).parse;var ge={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};var ye=String.prototype.endsWith||function(R){return R.length<=this.length&&this.indexOf(R,this.length-R.length)!==-1};function getProxyForUrl(R){var pe=typeof R==="string"?he(R):R||{};var Ae=pe.protocol;var ye=pe.host;var me=pe.port;if(typeof ye!=="string"||!ye||typeof Ae!=="string"){return""}Ae=Ae.split(":",1)[0];ye=ye.replace(/:\d*$/,"");me=parseInt(me)||ge[Ae]||0;if(!shouldProxy(ye,me)){return""}var ve=getEnv("npm_config_"+Ae+"_proxy")||getEnv(Ae+"_proxy")||getEnv("npm_config_proxy")||getEnv("all_proxy");if(ve&&ve.indexOf("://")===-1){ve=Ae+"://"+ve}return ve}function shouldProxy(R,pe){var Ae=(getEnv("npm_config_no_proxy")||getEnv("no_proxy")).toLowerCase();if(!Ae){return true}if(Ae==="*"){return false}return Ae.split(/[,\s]/).every((function(Ae){if(!Ae){return true}var he=Ae.match(/^(.+):(\d+)$/);var ge=he?he[1]:Ae;var me=he?parseInt(he[2]):0;if(me&&me!==pe){return true}if(!/^[.*]/.test(ge)){return R!==ge}if(ge.charAt(0)==="*"){ge=ge.slice(1)}return!ye.call(R,ge)}))}function getEnv(R){return process.env[R.toLowerCase()]||process.env[R.toUpperCase()]||""}pe.getProxyForUrl=getProxyForUrl},22420:(R,pe)=>{"use strict"; +hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=Zt;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=Zt;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},80900:R=>{var pe=1e3;var Ae=pe*60;var he=Ae*60;var ge=he*24;var ye=ge*7;var me=ge*365.25;R.exports=function(R,pe){pe=pe||{};var Ae=typeof R;if(Ae==="string"&&R.length>0){return parse(R)}else if(Ae==="number"&&isFinite(R)){return pe.long?fmtLong(R):fmtShort(R)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(R))};function parse(R){R=String(R);if(R.length>100){return}var ve=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(R);if(!ve){return}var be=parseFloat(ve[1]);var Ee=(ve[2]||"ms").toLowerCase();switch(Ee){case"years":case"year":case"yrs":case"yr":case"y":return be*me;case"weeks":case"week":case"w":return be*ye;case"days":case"day":case"d":return be*ge;case"hours":case"hour":case"hrs":case"hr":case"h":return be*he;case"minutes":case"minute":case"mins":case"min":case"m":return be*Ae;case"seconds":case"second":case"secs":case"sec":case"s":return be*pe;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return be;default:return undefined}}function fmtShort(R){var ye=Math.abs(R);if(ye>=ge){return Math.round(R/ge)+"d"}if(ye>=he){return Math.round(R/he)+"h"}if(ye>=Ae){return Math.round(R/Ae)+"m"}if(ye>=pe){return Math.round(R/pe)+"s"}return R+"ms"}function fmtLong(R){var ye=Math.abs(R);if(ye>=ge){return plural(R,ye,ge,"day")}if(ye>=he){return plural(R,ye,he,"hour")}if(ye>=Ae){return plural(R,ye,Ae,"minute")}if(ye>=pe){return plural(R,ye,pe,"second")}return R+" ms"}function plural(R,pe,Ae,he){var ge=pe>=Ae*1.5;return Math.round(R/Ae)+" "+he+(ge?"s":"")}},93653:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.assertNotificationFilterIsEmpty=pe.assertImpersonatedUserIsEmpty=pe.assertTxConfigIsEmpty=pe.assertDatabaseIsEmpty=void 0;var he=Ae(55065);var ge=Ae(17526);function assertTxConfigIsEmpty(R,pe,Ae){if(pe===void 0){pe=function(){}}if(R&&!R.isEmpty()){var ge=(0,he.newError)("Driver is connected to the database that does not support transaction configuration. "+"Please upgrade to neo4j 3.5.0 or later in order to use this functionality");pe(ge.message);Ae.onError(ge);throw ge}}pe.assertTxConfigIsEmpty=assertTxConfigIsEmpty;function assertDatabaseIsEmpty(R,pe,Ae){if(pe===void 0){pe=function(){}}if(R){var ge=(0,he.newError)("Driver is connected to the database that does not support multiple databases. "+"Please upgrade to neo4j 4.0.0 or later in order to use this functionality");pe(ge.message);Ae.onError(ge);throw ge}}pe.assertDatabaseIsEmpty=assertDatabaseIsEmpty;function assertImpersonatedUserIsEmpty(R,pe,Ae){if(pe===void 0){pe=function(){}}if(R){var ge=(0,he.newError)("Driver is connected to the database that does not support user impersonation. "+"Please upgrade to neo4j 4.4.0 or later in order to use this functionality. "+"Trying to impersonate ".concat(R,"."));pe(ge.message);Ae.onError(ge);throw ge}}pe.assertImpersonatedUserIsEmpty=assertImpersonatedUserIsEmpty;function assertNotificationFilterIsEmpty(R,pe,Ae){if(pe===void 0){pe=function(){}}if(R!==undefined){var ge=(0,he.newError)("Driver is connected to a database that does not support user notification filters. "+"Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. "+"Trying to set notifications to ".concat(he.json.stringify(R),"."));pe(ge.message);Ae.onError(ge);throw ge}}pe.assertNotificationFilterIsEmpty=assertNotificationFilterIsEmpty},54472:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ve=Ae(93653);var be=Ae(31131);var Ee=Ae(32423);var we=ye(Ae(67923));var Ce=Ae(17526);var _e=Ae(55065);var Ie=me(Ae(16383));var Se=me(Ae(28859));var Be=_e.internal.bookmarks.Bookmarks,ke=_e.internal.constants,Oe=ke.ACCESS_MODE_WRITE,Re=ke.BOLT_PROTOCOL_V1,Qe=_e.internal.logger.Logger,xe=_e.internal.txConfig.TxConfig;var Pe=function(){function BoltProtocol(R,pe,Ae,he,ge,ye){var me=Ae===void 0?{}:Ae,ve=me.disableLosslessIntegers,be=me.useBigInt;if(he===void 0){he=function(){return null}}this._server=R||{};this._chunker=pe;this._packer=this._createPacker(pe);this._unpacker=this._createUnpacker(ve,be);this._responseHandler=he(this);this._log=ge;this._onProtocolError=ye;this._fatalError=null;this._lastMessageSignature=null;this._config={disableLosslessIntegers:ve,useBigInt:be}}Object.defineProperty(BoltProtocol.prototype,"transformer",{get:function(){var R=this;if(this._transformer===undefined){this._transformer=new Se.default(Object.values(Ie.default).map((function(pe){return pe(R._config,R._log)})))}return this._transformer},enumerable:false,configurable:true});Object.defineProperty(BoltProtocol.prototype,"version",{get:function(){return Re},enumerable:false,configurable:true});Object.defineProperty(BoltProtocol.prototype,"supportsReAuth",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(BoltProtocol.prototype,"initialized",{get:function(){return!!this._initialized},enumerable:false,configurable:true});Object.defineProperty(BoltProtocol.prototype,"authToken",{get:function(){return this._authToken},enumerable:false,configurable:true});BoltProtocol.prototype.packer=function(){return this._packer};BoltProtocol.prototype.packable=function(R){return this._packer.packable(R,this.transformer.toStructure)};BoltProtocol.prototype.unpacker=function(){return this._unpacker};BoltProtocol.prototype.unpack=function(R){return this._unpacker.unpack(R,this.transformer.fromStructure)};BoltProtocol.prototype.transformMetadata=function(R){return R};BoltProtocol.prototype.initialize=function(R){var pe=this;var Ae=R===void 0?{}:R,he=Ae.userAgent,ge=Ae.boltAgent,ye=Ae.authToken,me=Ae.notificationFilter,be=Ae.onError,Ee=Ae.onComplete;var _e=new Ce.LoginObserver({onError:function(R){return pe._onLoginError(R,be)},onCompleted:function(R){return pe._onLoginCompleted(R,Ee)}});(0,ve.assertNotificationFilterIsEmpty)(me,this._onProtocolError,_e);this.write(we.default.init(he,ye),_e,true);return _e};BoltProtocol.prototype.logoff=function(R){var pe=R===void 0?{}:R,Ae=pe.onComplete,he=pe.onError,ge=pe.flush;var ye=new Ce.LogoffObserver({onCompleted:Ae,onError:he});var me=(0,_e.newError)("Driver is connected to a database that does not support logoff. "+"Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.");this._onProtocolError(me.message);ye.onError(me);throw me};BoltProtocol.prototype.logon=function(R){var pe=this;var Ae=R===void 0?{}:R,he=Ae.authToken,ge=Ae.onComplete,ye=Ae.onError,me=Ae.flush;var ve=new Ce.LoginObserver({onCompleted:function(){return pe._onLoginCompleted({},he,ge)},onError:function(R){return pe._onLoginError(R,ye)}});var be=(0,_e.newError)("Driver is connected to a database that does not support logon. "+"Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.");this._onProtocolError(be.message);ve.onError(be);throw be};BoltProtocol.prototype.prepareToClose=function(){};BoltProtocol.prototype.beginTransaction=function(R){var pe=R===void 0?{}:R,Ae=pe.bookmarks,he=pe.txConfig,ge=pe.database,ye=pe.mode,me=pe.impersonatedUser,ve=pe.notificationFilter,be=pe.beforeError,Ee=pe.afterError,we=pe.beforeComplete,Ce=pe.afterComplete;return this.run("BEGIN",Ae?Ae.asBeginTransactionParameters():{},{bookmarks:Ae,txConfig:he,database:ge,mode:ye,impersonatedUser:me,notificationFilter:ve,beforeError:be,afterError:Ee,beforeComplete:we,afterComplete:Ce,flush:false})};BoltProtocol.prototype.commitTransaction=function(R){var pe=R===void 0?{}:R,Ae=pe.beforeError,he=pe.afterError,ge=pe.beforeComplete,ye=pe.afterComplete;return this.run("COMMIT",{},{bookmarks:Be.empty(),txConfig:xe.empty(),mode:Oe,beforeError:Ae,afterError:he,beforeComplete:ge,afterComplete:ye})};BoltProtocol.prototype.rollbackTransaction=function(R){var pe=R===void 0?{}:R,Ae=pe.beforeError,he=pe.afterError,ge=pe.beforeComplete,ye=pe.afterComplete;return this.run("ROLLBACK",{},{bookmarks:Be.empty(),txConfig:xe.empty(),mode:Oe,beforeError:Ae,afterError:he,beforeComplete:ge,afterComplete:ye})};BoltProtocol.prototype.run=function(R,pe,Ae){var he=Ae===void 0?{}:Ae,ge=he.bookmarks,ye=he.txConfig,me=he.database,be=he.mode,Ee=he.impersonatedUser,_e=he.notificationFilter,Ie=he.beforeKeys,Se=he.afterKeys,Be=he.beforeError,ke=he.afterError,Oe=he.beforeComplete,Re=he.afterComplete,Qe=he.flush,xe=Qe===void 0?true:Qe,Pe=he.highRecordWatermark,Te=Pe===void 0?Number.MAX_VALUE:Pe,De=he.lowRecordWatermark,Ne=De===void 0?Number.MAX_VALUE:De;var Me=new Ce.ResultStreamObserver({server:this._server,beforeKeys:Ie,afterKeys:Se,beforeError:Be,afterError:ke,beforeComplete:Oe,afterComplete:Re,highRecordWatermark:Te,lowRecordWatermark:Ne});(0,ve.assertTxConfigIsEmpty)(ye,this._onProtocolError,Me);(0,ve.assertDatabaseIsEmpty)(me,this._onProtocolError,Me);(0,ve.assertImpersonatedUserIsEmpty)(Ee,this._onProtocolError,Me);(0,ve.assertNotificationFilterIsEmpty)(_e,this._onProtocolError,Me);this.write(we.default.run(R,pe),Me,false);this.write(we.default.pullAll(),Me,xe);return Me};Object.defineProperty(BoltProtocol.prototype,"currentFailure",{get:function(){return this._responseHandler.currentFailure},enumerable:false,configurable:true});BoltProtocol.prototype.reset=function(R){var pe=R===void 0?{}:R,Ae=pe.onError,he=pe.onComplete;var ge=new Ce.ResetObserver({onProtocolError:this._onProtocolError,onError:Ae,onComplete:he});this.write(we.default.reset(),ge,true);return ge};BoltProtocol.prototype.telemetry=function(R,pe){var Ae=R.api;var he=pe===void 0?{}:pe,ge=he.onError,ye=he.onCompleted;var me=new Ce.CompletedObserver;if(ye){ye()}return me};BoltProtocol.prototype._createPacker=function(R){return new Ee.v1.Packer(R)};BoltProtocol.prototype._createUnpacker=function(R,pe){return new Ee.v1.Unpacker(R,pe)};BoltProtocol.prototype.write=function(R,pe,Ae){var he=this.queueObserverIfProtocolIsNotBroken(pe);if(he){if(this._log.isDebugEnabled()){this._log.debug("C: ".concat(R))}this._lastMessageSignature=R.signature;var ge=new Ee.structure.Structure(R.signature,R.fields);this.packable(ge)();this._chunker.messageBoundary();if(Ae){this._chunker.flush()}}};BoltProtocol.prototype.isLastMessageLogon=function(){return this._lastMessageSignature===we.SIGNATURES.HELLO||this._lastMessageSignature===we.SIGNATURES.LOGON};BoltProtocol.prototype.isLastMessageReset=function(){return this._lastMessageSignature===we.SIGNATURES.RESET};BoltProtocol.prototype.notifyFatalError=function(R){this._fatalError=R;return this._responseHandler._notifyErrorToObservers(R)};BoltProtocol.prototype.updateCurrentObserver=function(){return this._responseHandler._updateCurrentObserver()};BoltProtocol.prototype.hasOngoingObservableRequests=function(){return this._responseHandler.hasOngoingObservableRequests()};BoltProtocol.prototype.queueObserverIfProtocolIsNotBroken=function(R){if(this.isBroken()){this.notifyFatalErrorToObserver(R);return false}return this._responseHandler._queueObserver(R)};BoltProtocol.prototype.isBroken=function(){return!!this._fatalError};BoltProtocol.prototype.notifyFatalErrorToObserver=function(R){if(R&&R.onError){R.onError(this._fatalError)}};BoltProtocol.prototype.resetFailure=function(){this._responseHandler._resetFailure()};BoltProtocol.prototype._onLoginCompleted=function(R,pe,Ae){this._initialized=true;this._authToken=pe;if(R){var he=R.server;if(!this._server.version){this._server.version=he}}if(Ae){Ae(R)}};BoltProtocol.prototype._onLoginError=function(R,pe){this._onProtocolError(R.message);if(pe){pe(R)}};return BoltProtocol}();pe["default"]=Pe},16383:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};Object.defineProperty(pe,"__esModule",{value:true});var ge=Ae(55065);var ye=Ae(32423);var me=Ae(28859);var ve=ge.error.PROTOCOL_ERROR;var be=78;var Ee=3;var we=82;var Ce=5;var _e=114;var Ie=3;var Se=80;var Be=3;function createNodeTransformer(){return new me.TypeTransformer({signature:be,isTypeInstance:function(R){return R instanceof ge.Node},toStructure:function(R){throw(0,ge.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(R),ve)},fromStructure:function(R){ye.structure.verifyStructSize("Node",Ee,R.size);var pe=he(R.fields,3),Ae=pe[0],me=pe[1],ve=pe[2];return new ge.Node(Ae,me,ve)}})}function createRelationshipTransformer(){return new me.TypeTransformer({signature:we,isTypeInstance:function(R){return R instanceof ge.Relationship},toStructure:function(R){throw(0,ge.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(R),ve)},fromStructure:function(R){ye.structure.verifyStructSize("Relationship",Ce,R.size);var pe=he(R.fields,5),Ae=pe[0],me=pe[1],ve=pe[2],be=pe[3],Ee=pe[4];return new ge.Relationship(Ae,me,ve,be,Ee)}})}function createUnboundRelationshipTransformer(){return new me.TypeTransformer({signature:_e,isTypeInstance:function(R){return R instanceof ge.UnboundRelationship},toStructure:function(R){throw(0,ge.newError)("It is not allowed to pass unbound relationships in query parameters, given: ".concat(R),ve)},fromStructure:function(R){ye.structure.verifyStructSize("UnboundRelationship",Ie,R.size);var pe=he(R.fields,3),Ae=pe[0],me=pe[1],ve=pe[2];return new ge.UnboundRelationship(Ae,me,ve)}})}function createPathTransformer(){return new me.TypeTransformer({signature:Se,isTypeInstance:function(R){return R instanceof ge.Path},toStructure:function(R){throw(0,ge.newError)("It is not allowed to pass paths in query parameters, given: ".concat(R),ve)},fromStructure:function(R){ye.structure.verifyStructSize("Path",Be,R.size);var pe=he(R.fields,3),Ae=pe[0],me=pe[1],ve=pe[2];var be=[];var Ee=Ae[0];for(var we=0;we0){Ie=me[_e-1];if(Ie instanceof ge.UnboundRelationship){me[_e-1]=Ie=Ie.bindTo(Ee,Ce)}}else{Ie=me[-_e-1];if(Ie instanceof ge.UnboundRelationship){me[-_e-1]=Ie=Ie.bindTo(Ce,Ee)}}be.push(new ge.PathSegment(Ee,Ie,Ce));Ee=Ce}return new ge.Path(Ae[0],Ae[Ae.length-1],be)}})}pe["default"]={createNodeTransformer:createNodeTransformer,createRelationshipTransformer:createRelationshipTransformer,createUnboundRelationshipTransformer:createUnboundRelationshipTransformer,createPathTransformer:createPathTransformer}},65633:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=ge(Ae(54472));var me=ge(Ae(32423));var ve=Ae(55065);var be=ge(Ae(96859));var Ee=ge(Ae(28859));var we=ve.internal.constants.BOLT_PROTOCOL_V2;var Ce=function(R){he(BoltProtocol,R);function BoltProtocol(){return R!==null&&R.apply(this,arguments)||this}BoltProtocol.prototype._createPacker=function(R){return new me.default.Packer(R)};BoltProtocol.prototype._createUnpacker=function(R,pe){return new me.default.Unpacker(R,pe)};Object.defineProperty(BoltProtocol.prototype,"transformer",{get:function(){var R=this;if(this._transformer===undefined){this._transformer=new Ee.default(Object.values(be.default).map((function(pe){return pe(R._config,R._log)})))}return this._transformer},enumerable:false,configurable:true});Object.defineProperty(BoltProtocol.prototype,"version",{get:function(){return we},enumerable:false,configurable:true});return BoltProtocol}(ye.default);pe["default"]=Ce},96859:function(R,pe,Ae){"use strict";var he=this&&this.__assign||function(){he=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var me=Ae(55065);var ve=Ae(32423);var be=Ae(28859);var Ee=Ae(35243);var we=ye(Ae(16383));var Ce=me.internal.temporalUtil,_e=Ce.dateToEpochDay,Ie=Ce.localDateTimeToEpochSecond,Se=Ce.localTimeToNanoOfDay;var Be=88;var ke=3;var Oe=89;var Re=4;var Qe=69;var xe=4;var Pe=116;var Te=1;var De=84;var Ne=2;var Me=68;var je=1;var Fe=100;var Le=2;var Ue=70;var He=3;var Je=102;var We=3;function createPoint2DTransformer(){return new be.TypeTransformer({signature:Be,isTypeInstance:function(R){return(0,me.isPoint)(R)&&(R.z===null||R.z===undefined)},toStructure:function(R){return new ve.structure.Structure(Be,[(0,me.int)(R.srid),R.x,R.y])},fromStructure:function(R){ve.structure.verifyStructSize("Point2D",ke,R.size);var pe=ge(R.fields,3),Ae=pe[0],he=pe[1],ye=pe[2];return new me.Point(Ae,he,ye,undefined)}})}function createPoint3DTransformer(){return new be.TypeTransformer({signature:Oe,isTypeInstance:function(R){return(0,me.isPoint)(R)&&R.z!==null&&R.z!==undefined},toStructure:function(R){return new ve.structure.Structure(Oe,[(0,me.int)(R.srid),R.x,R.y,R.z])},fromStructure:function(R){ve.structure.verifyStructSize("Point3D",Re,R.size);var pe=ge(R.fields,4),Ae=pe[0],he=pe[1],ye=pe[2],be=pe[3];return new me.Point(Ae,he,ye,be)}})}function createDurationTransformer(){return new be.TypeTransformer({signature:Qe,isTypeInstance:me.isDuration,toStructure:function(R){var pe=(0,me.int)(R.months);var Ae=(0,me.int)(R.days);var he=(0,me.int)(R.seconds);var ge=(0,me.int)(R.nanoseconds);return new ve.structure.Structure(Qe,[pe,Ae,he,ge])},fromStructure:function(R){ve.structure.verifyStructSize("Duration",xe,R.size);var pe=ge(R.fields,4),Ae=pe[0],he=pe[1],ye=pe[2],be=pe[3];return new me.Duration(Ae,he,ye,be)}})}function createLocalTimeTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:Pe,isTypeInstance:me.isLocalTime,toStructure:function(R){var pe=Se(R.hour,R.minute,R.second,R.nanosecond);return new ve.structure.Structure(Pe,[pe])},fromStructure:function(R){ve.structure.verifyStructSize("LocalTime",Te,R.size);var he=ge(R.fields,1),ye=he[0];var me=(0,Ee.nanoOfDayToLocalTime)(ye);return convertIntegerPropsIfNeeded(me,pe,Ae)}})}function createTimeTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:De,isTypeInstance:me.isTime,toStructure:function(R){var pe=Se(R.hour,R.minute,R.second,R.nanosecond);var Ae=(0,me.int)(R.timeZoneOffsetSeconds);return new ve.structure.Structure(De,[pe,Ae])},fromStructure:function(R){ve.structure.verifyStructSize("Time",Ne,R.size);var he=ge(R.fields,2),ye=he[0],be=he[1];var we=(0,Ee.nanoOfDayToLocalTime)(ye);var Ce=new me.Time(we.hour,we.minute,we.second,we.nanosecond,be);return convertIntegerPropsIfNeeded(Ce,pe,Ae)}})}function createDateTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:Me,isTypeInstance:me.isDate,toStructure:function(R){var pe=_e(R.year,R.month,R.day);return new ve.structure.Structure(Me,[pe])},fromStructure:function(R){ve.structure.verifyStructSize("Date",je,R.size);var he=ge(R.fields,1),ye=he[0];var me=(0,Ee.epochDayToDate)(ye);return convertIntegerPropsIfNeeded(me,pe,Ae)}})}function createLocalDateTimeTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:Fe,isTypeInstance:me.isLocalDateTime,toStructure:function(R){var pe=Ie(R.year,R.month,R.day,R.hour,R.minute,R.second,R.nanosecond);var Ae=(0,me.int)(R.nanosecond);return new ve.structure.Structure(Fe,[pe,Ae])},fromStructure:function(R){ve.structure.verifyStructSize("LocalDateTime",Le,R.size);var he=ge(R.fields,2),ye=he[0],me=he[1];var be=(0,Ee.epochSecondAndNanoToLocalDateTime)(ye,me);return convertIntegerPropsIfNeeded(be,pe,Ae)}})}function createDateTimeWithZoneIdTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:Je,isTypeInstance:function(R){return(0,me.isDateTime)(R)&&R.timeZoneId!=null},toStructure:function(R){var pe=Ie(R.year,R.month,R.day,R.hour,R.minute,R.second,R.nanosecond);var Ae=(0,me.int)(R.nanosecond);var he=R.timeZoneId;return new ve.structure.Structure(Je,[pe,Ae,he])},fromStructure:function(R){ve.structure.verifyStructSize("DateTimeWithZoneId",We,R.size);var he=ge(R.fields,3),ye=he[0],be=he[1],we=he[2];var Ce=(0,Ee.epochSecondAndNanoToLocalDateTime)(ye,be);var _e=new me.DateTime(Ce.year,Ce.month,Ce.day,Ce.hour,Ce.minute,Ce.second,Ce.nanosecond,null,we);return convertIntegerPropsIfNeeded(_e,pe,Ae)}})}function createDateTimeWithOffsetTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;return new be.TypeTransformer({signature:Ue,isTypeInstance:function(R){return(0,me.isDateTime)(R)&&R.timeZoneId==null},toStructure:function(R){var pe=Ie(R.year,R.month,R.day,R.hour,R.minute,R.second,R.nanosecond);var Ae=(0,me.int)(R.nanosecond);var he=(0,me.int)(R.timeZoneOffsetSeconds);return new ve.structure.Structure(Ue,[pe,Ae,he])},fromStructure:function(R){ve.structure.verifyStructSize("DateTimeWithZoneOffset",He,R.size);var he=ge(R.fields,3),ye=he[0],be=he[1],we=he[2];var Ce=(0,Ee.epochSecondAndNanoToLocalDateTime)(ye,be);var _e=new me.DateTime(Ce.year,Ce.month,Ce.day,Ce.hour,Ce.minute,Ce.second,Ce.nanosecond,we,null);return convertIntegerPropsIfNeeded(_e,pe,Ae)}})}function convertIntegerPropsIfNeeded(R,pe,Ae){if(!pe&&!Ae){return R}var convert=function(R){return Ae?R.toBigInt():R.toNumberOrInfinity()};var he=Object.create(Object.getPrototypeOf(R));for(var ge in R){if(Object.prototype.hasOwnProperty.call(R,ge)===true){var ye=R[ge];he[ge]=(0,me.isInt)(ye)?convert(ye):ye}}Object.freeze(he);return he}pe["default"]=he(he({},we.default),{createPoint2DTransformer:createPoint2DTransformer,createPoint3DTransformer:createPoint3DTransformer,createDurationTransformer:createDurationTransformer,createLocalTimeTransformer:createLocalTimeTransformer,createTimeTransformer:createTimeTransformer,createDateTransformer:createDateTransformer,createLocalDateTimeTransformer:createLocalDateTimeTransformer,createDateTimeWithZoneIdTransformer:createDateTimeWithZoneIdTransformer,createDateTimeWithOffsetTransformer:createDateTimeWithOffsetTransformer})},35510:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__assign||function(){ge=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var me=Ae(32423);var ve=Ae(55065);var be=ye(Ae(18966));var Ee=ye(Ae(75522));var we=4;var Ce=8;var _e=4;function createNodeTransformer(R){var pe=be.default.createNodeTransformer(R);return pe.extendsWith({fromStructure:function(R){me.structure.verifyStructSize("Node",we,R.size);var pe=ge(R.fields,4),Ae=pe[0],he=pe[1],ye=pe[2],be=pe[3];return new ve.Node(Ae,he,ye,be)}})}function createRelationshipTransformer(R){var pe=be.default.createRelationshipTransformer(R);return pe.extendsWith({fromStructure:function(R){me.structure.verifyStructSize("Relationship",Ce,R.size);var pe=ge(R.fields,8),Ae=pe[0],he=pe[1],ye=pe[2],be=pe[3],Ee=pe[4],we=pe[5],_e=pe[6],Ie=pe[7];return new ve.Relationship(Ae,he,ye,be,Ee,we,_e,Ie)}})}function createUnboundRelationshipTransformer(R){var pe=be.default.createUnboundRelationshipTransformer(R);return pe.extendsWith({fromStructure:function(R){me.structure.verifyStructSize("UnboundRelationship",_e,R.size);var pe=ge(R.fields,4),Ae=pe[0],he=pe[1],ye=pe[2],be=pe[3];return new ve.UnboundRelationship(Ae,he,ye,be)}})}pe["default"]=he(he(he({},be.default),Ee.default),{createNodeTransformer:createNodeTransformer,createRelationshipTransformer:createRelationshipTransformer,createUnboundRelationshipTransformer:createUnboundRelationshipTransformer})},75522:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=Ae(32423);var me=Ae(55065);var ve=ge(Ae(18966));var be=Ae(35243);var Ee=Ae(85625);var we=me.internal.temporalUtil.localDateTimeToEpochSecond;var Ce=73;var _e=3;var Ie=105;var Se=3;function createDateTimeWithZoneIdTransformer(R,pe){var Ae=R.disableLosslessIntegers,ge=R.useBigInt;var be=ve.default.createDateTimeWithZoneIdTransformer(R);return be.extendsWith({signature:Ie,fromStructure:function(R){ye.structure.verifyStructSize("DateTimeWithZoneId",Se,R.size);var pe=he(R.fields,3),ve=pe[0],be=pe[1],Ee=pe[2];var we=getTimeInZoneId(Ee,ve,be);var Ce=new me.DateTime(we.year,we.month,we.day,we.hour,we.minute,we.second,(0,me.int)(be),we.timeZoneOffsetSeconds,Ee);return convertIntegerPropsIfNeeded(Ce,Ae,ge)},toStructure:function(R){var Ae=we(R.year,R.month,R.day,R.hour,R.minute,R.second,R.nanosecond);var he=R.timeZoneOffsetSeconds!=null?R.timeZoneOffsetSeconds:getOffsetFromZoneId(R.timeZoneId,Ae,R.nanosecond);if(R.timeZoneOffsetSeconds==null){pe.warn('DateTime objects without "timeZoneOffsetSeconds" property '+"are prune to bugs related to ambiguous times. For instance, "+"2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.")}var ge=Ae.subtract(he);var ve=(0,me.int)(R.nanosecond);var be=R.timeZoneId;return new ye.structure.Structure(Ie,[ge,ve,be])}})}function getOffsetFromZoneId(R,pe,Ae){var he=getTimeInZoneId(R,pe,Ae);var ge=we(he.year,he.month,he.day,he.hour,he.minute,he.second,Ae);var ye=ge.subtract(pe);var me=pe.subtract(ye);var ve=getTimeInZoneId(R,me,Ae);var be=we(ve.year,ve.month,ve.day,ve.hour,ve.minute,ve.second,Ae);var Ee=be.subtract(me);return Ee}var Be=new Map;function getDateTimeFormatForZoneId(R){if(!Be.has(R)){var pe=new Intl.DateTimeFormat("en-US",{timeZone:R,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:false,era:"narrow"});Be.set(R,pe)}return Be.get(R)}function getTimeInZoneId(R,pe,Ae){var he=getDateTimeFormatForZoneId(R);var ge=(0,me.int)(pe).multiply(1e3).add((0,me.int)(Ae).div(1e6)).toNumber();var ye=he.formatToParts(ge);var ve=ye.reduce((function(R,pe){if(pe.type==="era"){R.adjustEra=pe.value.toUpperCase()==="B"?function(R){return R.subtract(1).negate()}:Ee.identity}else if(pe.type==="hour"){R.hour=(0,me.int)(pe.value).modulo(24)}else if(pe.type!=="literal"){R[pe.type]=(0,me.int)(pe.value)}return R}),{});ve.year=ve.adjustEra(ve.year);var be=we(ve.year,ve.month,ve.day,ve.hour,ve.minute,ve.second,ve.nanosecond);ve.timeZoneOffsetSeconds=be.subtract(pe);ve.hour=ve.hour.modulo(24);return ve}function createDateTimeWithOffsetTransformer(R){var pe=R.disableLosslessIntegers,Ae=R.useBigInt;var ge=ve.default.createDateTimeWithOffsetTransformer(R);return ge.extendsWith({signature:Ce,toStructure:function(R){var pe=we(R.year,R.month,R.day,R.hour,R.minute,R.second,R.nanosecond);var Ae=(0,me.int)(R.nanosecond);var he=(0,me.int)(R.timeZoneOffsetSeconds);var ge=pe.subtract(he);return new ye.structure.Structure(Ce,[ge,Ae,he])},fromStructure:function(R){ye.structure.verifyStructSize("DateTimeWithZoneOffset",_e,R.size);var ge=he(R.fields,3),ve=ge[0],Ee=ge[1],we=ge[2];var Ce=(0,me.int)(ve).add(we);var Ie=(0,be.epochSecondAndNanoToLocalDateTime)(Ce,Ee);var Se=new me.DateTime(Ie.year,Ie.month,Ie.day,Ie.hour,Ie.minute,Ie.second,Ie.nanosecond,we,null);return convertIntegerPropsIfNeeded(Se,pe,Ae)}})}function convertIntegerPropsIfNeeded(R,pe,Ae){if(!pe&&!Ae){return R}var convert=function(R){return Ae?R.toBigInt():R.toNumberOrInfinity()};var he=Object.create(Object.getPrototypeOf(R));for(var ge in R){if(Object.prototype.hasOwnProperty.call(R,ge)===true){var ye=R[ge];he[ge]=(0,me.isInt)(ye)?convert(ye):ye}}Object.freeze(he);return he}pe["default"]={createDateTimeWithZoneIdTransformer:createDateTimeWithZoneIdTransformer,createDateTimeWithOffsetTransformer:createDateTimeWithOffsetTransformer}},59727:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__assign||function(){ge=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(31131);var ge=Ae(55065);var ye=1616949271;function version(R,pe){return{major:R,minor:pe}}function createHandshakeMessage(R){if(R.length>4){throw(0,ge.newError)("It should not have more than 4 versions of the protocol")}var pe=(0,he.alloc)(5*4);pe.writeInt32(ye);R.forEach((function(R){if(R instanceof Array){var Ae=R[0],he=Ae.major,ge=Ae.minor;var ye=R[1].minor;var me=ge-ye;pe.writeInt32(me<<16|ge<<8|he)}else{var he=R.major,ge=R.minor;pe.writeInt32(ge<<8|he)}}));pe.reset();return pe}function parseNegotiatedResponse(R,pe){var Ae=[R.readUInt8(),R.readUInt8(),R.readUInt8(),R.readUInt8()];if(Ae[0]===72&&Ae[1]===84&&Ae[2]===84&&Ae[3]===80){pe.error("Handshake failed since server responded with HTTP.");throw(0,ge.newError)("Server responded HTTP. Make sure you are not trying to connect to the http endpoint "+"(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)")}return Number(Ae[3]+"."+Ae[2])}function newHandshakeBuffer(){return createHandshakeMessage([[version(5,6),version(5,0)],[version(4,4),version(4,2)],version(4,1),version(3,0)])}function handshake(R,pe){var Ae=this;return new Promise((function(he,ge){var handshakeErrorHandler=function(R){ge(R)};R.onerror=handshakeErrorHandler.bind(Ae);if(R._error){handshakeErrorHandler(R._error)}R.onmessage=function(R){try{var Ae=parseNegotiatedResponse(R,pe);he({protocolVersion:Ae,consumeRemainingBuffer:function(pe){if(R.hasRemaining()){pe(R.readSlice(R.remaining()))}}})}catch(R){ge(R)}};R.write(newHandshakeBuffer())}))}pe["default"]=handshake},86934:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.RawRoutingTable=pe.BoltProtocol=void 0;var me=ye(Ae(34529));var ve=ye(Ae(23536));var be=ye(Ae(64137));var Ee=ye(Ae(18805));ge(Ae(17526),pe);pe.BoltProtocol=be.default;pe.RawRoutingTable=Ee.default;pe["default"]={handshake:me.default,create:ve.default}},67923:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SIGNATURES=void 0;var he=Ae(55065);var ge=he.internal.constants,ye=ge.ACCESS_MODE_READ,me=ge.FETCH_ALL,ve=he.internal.util.assertString;var be=1;var Ee=14;var we=15;var Ce=16;var _e=47;var Ie=63;var Se=1;var Be=2;var ke=17;var Oe=18;var Re=19;var Qe=84;var xe=102;var Pe=106;var Te=107;var De=47;var Ne=63;var Me="r";var je=-1;var Fe=Object.freeze({INIT:be,RESET:we,RUN:Ce,PULL_ALL:Ie,HELLO:Se,GOODBYE:Be,BEGIN:ke,COMMIT:Oe,ROLLBACK:Re,TELEMETRY:Qe,ROUTE:xe,LOGON:Pe,LOGOFF:Te,DISCARD:De,PULL:Ne});pe.SIGNATURES=Fe;var Le=function(){function RequestMessage(R,pe,Ae){this.signature=R;this.fields=pe;this.toString=Ae}RequestMessage.init=function(R,pe){return new RequestMessage(be,[R,pe],(function(){return"INIT ".concat(R," {...}")}))};RequestMessage.run=function(R,pe){return new RequestMessage(Ce,[R,pe],(function(){return"RUN ".concat(R," ").concat(he.json.stringify(pe))}))};RequestMessage.pullAll=function(){return Ue};RequestMessage.reset=function(){return He};RequestMessage.hello=function(R,pe,Ae,he){if(Ae===void 0){Ae=null}if(he===void 0){he=null}var ge=Object.assign({user_agent:R},pe);if(Ae){ge.routing=Ae}if(he){ge.patch_bolt=he}return new RequestMessage(Se,[ge],(function(){return"HELLO {user_agent: '".concat(R,"', ...}")}))};RequestMessage.hello5x1=function(R,pe){if(pe===void 0){pe=null}var Ae={user_agent:R};if(pe){Ae.routing=pe}return new RequestMessage(Se,[Ae],(function(){return"HELLO {user_agent: '".concat(R,"', ...}")}))};RequestMessage.hello5x2=function(R,pe,Ae){if(pe===void 0){pe=null}if(Ae===void 0){Ae=null}var ge={user_agent:R};appendLegacyNotificationFilterToMetadata(ge,pe);if(Ae){ge.routing=Ae}return new RequestMessage(Se,[ge],(function(){return"HELLO ".concat(he.json.stringify(ge))}))};RequestMessage.hello5x3=function(R,pe,Ae,ge){if(Ae===void 0){Ae=null}if(ge===void 0){ge=null}var ye={};if(R){ye.user_agent=R}if(pe){ye.bolt_agent={product:pe.product,platform:pe.platform,language:pe.language,language_details:pe.languageDetails}}appendLegacyNotificationFilterToMetadata(ye,Ae);if(ge){ye.routing=ge}return new RequestMessage(Se,[ye],(function(){return"HELLO ".concat(he.json.stringify(ye))}))};RequestMessage.hello5x5=function(R,pe,Ae,ge){if(Ae===void 0){Ae=null}if(ge===void 0){ge=null}var ye={};if(R){ye.user_agent=R}if(pe){ye.bolt_agent={product:pe.product,platform:pe.platform,language:pe.language,language_details:pe.languageDetails}}appendGqlNotificationFilterToMetadata(ye,Ae);if(ge){ye.routing=ge}return new RequestMessage(Se,[ye],(function(){return"HELLO ".concat(he.json.stringify(ye))}))};RequestMessage.logon=function(R){return new RequestMessage(Pe,[R],(function(){return"LOGON { ... }"}))};RequestMessage.logoff=function(){return new RequestMessage(Te,[],(function(){return"LOGOFF"}))};RequestMessage.begin=function(R){var pe=R===void 0?{}:R,Ae=pe.bookmarks,ge=pe.txConfig,ye=pe.database,me=pe.mode,ve=pe.impersonatedUser,be=pe.notificationFilter;var Ee=buildTxMetadata(Ae,ge,ye,me,ve,be);return new RequestMessage(ke,[Ee],(function(){return"BEGIN ".concat(he.json.stringify(Ee))}))};RequestMessage.begin5x5=function(R){var pe=R===void 0?{}:R,Ae=pe.bookmarks,ge=pe.txConfig,ye=pe.database,me=pe.mode,ve=pe.impersonatedUser,be=pe.notificationFilter;var Ee=buildTxMetadata(Ae,ge,ye,me,ve,be,{appendNotificationFilter:appendGqlNotificationFilterToMetadata});return new RequestMessage(ke,[Ee],(function(){return"BEGIN ".concat(he.json.stringify(Ee))}))};RequestMessage.commit=function(){return Je};RequestMessage.rollback=function(){return We};RequestMessage.runWithMetadata=function(R,pe,Ae){var ge=Ae===void 0?{}:Ae,ye=ge.bookmarks,me=ge.txConfig,ve=ge.database,be=ge.mode,Ee=ge.impersonatedUser,we=ge.notificationFilter;var _e=buildTxMetadata(ye,me,ve,be,Ee,we);return new RequestMessage(Ce,[R,pe,_e],(function(){return"RUN ".concat(R," ").concat(he.json.stringify(pe)," ").concat(he.json.stringify(_e))}))};RequestMessage.runWithMetadata5x5=function(R,pe,Ae){var ge=Ae===void 0?{}:Ae,ye=ge.bookmarks,me=ge.txConfig,ve=ge.database,be=ge.mode,Ee=ge.impersonatedUser,we=ge.notificationFilter;var _e=buildTxMetadata(ye,me,ve,be,Ee,we,{appendNotificationFilter:appendGqlNotificationFilterToMetadata});return new RequestMessage(Ce,[R,pe,_e],(function(){return"RUN ".concat(R," ").concat(he.json.stringify(pe)," ").concat(he.json.stringify(_e))}))};RequestMessage.goodbye=function(){return Ve};RequestMessage.pull=function(R){var pe=R===void 0?{}:R,Ae=pe.stmtId,ge=Ae===void 0?je:Ae,ye=pe.n,ve=ye===void 0?me:ye;var be=buildStreamMetadata(ge===null||ge===undefined?je:ge,ve||me);return new RequestMessage(Ne,[be],(function(){return"PULL ".concat(he.json.stringify(be))}))};RequestMessage.discard=function(R){var pe=R===void 0?{}:R,Ae=pe.stmtId,ge=Ae===void 0?je:Ae,ye=pe.n,ve=ye===void 0?me:ye;var be=buildStreamMetadata(ge===null||ge===undefined?je:ge,ve||me);return new RequestMessage(De,[be],(function(){return"DISCARD ".concat(he.json.stringify(be))}))};RequestMessage.telemetry=function(R){var pe=R.api;var Ae=(0,he.int)(pe);return new RequestMessage(Qe,[Ae],(function(){return"TELEMETRY ".concat(Ae.toString())}))};RequestMessage.route=function(R,pe,Ae){if(R===void 0){R={}}if(pe===void 0){pe=[]}if(Ae===void 0){Ae=null}return new RequestMessage(xe,[R,pe,Ae],(function(){return"ROUTE ".concat(he.json.stringify(R)," ").concat(he.json.stringify(pe)," ").concat(Ae)}))};RequestMessage.routeV4x4=function(R,pe,Ae){if(R===void 0){R={}}if(pe===void 0){pe=[]}if(Ae===void 0){Ae={}}var ge={};if(Ae.databaseName){ge.db=Ae.databaseName}if(Ae.impersonatedUser){ge.imp_user=Ae.impersonatedUser}return new RequestMessage(xe,[R,pe,ge],(function(){return"ROUTE ".concat(he.json.stringify(R)," ").concat(he.json.stringify(pe)," ").concat(he.json.stringify(ge))}))};return RequestMessage}();pe["default"]=Le;function buildTxMetadata(R,pe,Ae,he,ge,me,be){var Ee;if(be===void 0){be={}}var we={};if(!R.isEmpty()){we.bookmarks=R.values()}if(pe.timeout!==null){we.tx_timeout=pe.timeout}if(pe.metadata){we.tx_metadata=pe.metadata}if(Ae){we.db=ve(Ae,"database")}if(ge){we.imp_user=ve(ge,"impersonatedUser")}if(he===ye){we.mode=Me}var Ce=(Ee=be.appendNotificationFilter)!==null&&Ee!==void 0?Ee:appendLegacyNotificationFilterToMetadata;Ce(we,me);return we}function buildStreamMetadata(R,pe){var Ae={n:(0,he.int)(pe)};if(R!==je){Ae.qid=(0,he.int)(R)}return Ae}function appendLegacyNotificationFilterToMetadata(R,pe){if(pe){if(pe.minimumSeverityLevel){R.notifications_minimum_severity=pe.minimumSeverityLevel}if(pe.disabledCategories){R.notifications_disabled_categories=pe.disabledCategories}if(pe.disabledClassifications){R.notifications_disabled_categories=pe.disabledClassifications}}}function appendGqlNotificationFilterToMetadata(R,pe){if(pe){if(pe.minimumSeverityLevel){R.notifications_minimum_severity=pe.minimumSeverityLevel}if(pe.disabledCategories){R.notifications_disabled_classifications=pe.disabledCategories}if(pe.disabledClassifications){R.notifications_disabled_classifications=pe.disabledClassifications}}}var Ue=new Le(Ie,[],(function(){return"PULL_ALL"}));var He=new Le(we,[],(function(){return"RESET"}));var Je=new Le(Oe,[],(function(){return"COMMIT"}));var We=new Le(Re,[],(function(){return"ROLLBACK"}));var Ve=new Le(Be,[],(function(){return"GOODBYE"}))},61221:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(55065);var ge=112;var ye=113;var me=126;var ve=127;function NO_OP(){}function NO_OP_IDENTITY(R){return R}var be={onNext:NO_OP,onCompleted:NO_OP,onError:NO_OP};var Ee=function(){function ResponseHandler(R){var pe=R===void 0?{}:R,Ae=pe.transformMetadata,he=pe.log,ge=pe.observer;this._pendingObservers=[];this._log=he;this._transformMetadata=Ae||NO_OP_IDENTITY;this._observer=Object.assign({onObserversCountChange:NO_OP,onError:NO_OP,onFailure:NO_OP,onErrorApplyTransformation:NO_OP_IDENTITY},ge)}Object.defineProperty(ResponseHandler.prototype,"currentFailure",{get:function(){return this._currentFailure},enumerable:false,configurable:true});ResponseHandler.prototype.handleResponse=function(R){var pe=R.fields[0];switch(R.signature){case ye:if(this._log.isDebugEnabled()){this._log.debug("S: RECORD ".concat(he.json.stringify(R)))}this._currentObserver.onNext(pe);break;case ge:if(this._log.isDebugEnabled()){this._log.debug("S: SUCCESS ".concat(he.json.stringify(R)))}try{var Ae=this._transformMetadata(pe);this._currentObserver.onCompleted(Ae)}finally{this._updateCurrentObserver()}break;case ve:if(this._log.isDebugEnabled()){this._log.debug("S: FAILURE ".concat(he.json.stringify(R)))}try{var be=_standardizeCode(pe.code);var Ee=(0,he.newError)(pe.message,be);this._currentFailure=this._observer.onErrorApplyTransformation(Ee);this._currentObserver.onError(this._currentFailure)}finally{this._updateCurrentObserver();this._observer.onFailure(this._currentFailure)}break;case me:if(this._log.isDebugEnabled()){this._log.debug("S: IGNORED ".concat(he.json.stringify(R)))}try{if(this._currentFailure&&this._currentObserver.onError){this._currentObserver.onError(this._currentFailure)}else if(this._currentObserver.onError){this._currentObserver.onError((0,he.newError)("Ignored either because of an error or RESET"))}}finally{this._updateCurrentObserver()}break;default:this._observer.onError((0,he.newError)("Unknown Bolt protocol message: "+R))}};ResponseHandler.prototype._updateCurrentObserver=function(){this._currentObserver=this._pendingObservers.shift();this._observer.onObserversCountChange(this._observersCount)};Object.defineProperty(ResponseHandler.prototype,"_observersCount",{get:function(){return this._currentObserver==null?this._pendingObservers.length:this._pendingObservers.length+1},enumerable:false,configurable:true});ResponseHandler.prototype._queueObserver=function(R){R=R||be;R.onCompleted=R.onCompleted||NO_OP;R.onError=R.onError||NO_OP;R.onNext=R.onNext||NO_OP;if(this._currentObserver===undefined){this._currentObserver=R}else{this._pendingObservers.push(R)}this._observer.onObserversCountChange(this._observersCount);return true};ResponseHandler.prototype._notifyErrorToObservers=function(R){if(this._currentObserver&&this._currentObserver.onError){this._currentObserver.onError(R)}while(this._pendingObservers.length>0){var pe=this._pendingObservers.shift();if(pe&&pe.onError){pe.onError(R)}}};ResponseHandler.prototype.hasOngoingObservableRequests=function(){return this._currentObserver!=null||this._pendingObservers.length>0};ResponseHandler.prototype._resetFailure=function(){this._currentFailure=null};return ResponseHandler}();pe["default"]=Ee;function _standardizeCode(R){if(R==="Neo.TransientError.Transaction.Terminated"){return"Neo.ClientError.Transaction.Terminated"}else if(R==="Neo.TransientError.Transaction.LockClientStopped"){return"Neo.ClientError.Transaction.LockClientStopped"}return R}},18805:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=ge(Ae(55065));var me=function(){function RawRoutingTable(){}RawRoutingTable.ofRecord=function(R){if(R===null){return RawRoutingTable.ofNull()}return new Ee(R)};RawRoutingTable.ofMessageResponse=function(R){if(R===null){return RawRoutingTable.ofNull()}return new ve(R)};RawRoutingTable.ofNull=function(){return new be};Object.defineProperty(RawRoutingTable.prototype,"ttl",{get:function(){throw new Error("Not implemented")},enumerable:false,configurable:true});Object.defineProperty(RawRoutingTable.prototype,"db",{get:function(){throw new Error("Not implemented")},enumerable:false,configurable:true});Object.defineProperty(RawRoutingTable.prototype,"servers",{get:function(){throw new Error("Not implemented")},enumerable:false,configurable:true});Object.defineProperty(RawRoutingTable.prototype,"isNull",{get:function(){throw new Error("Not implemented")},enumerable:false,configurable:true});return RawRoutingTable}();pe["default"]=me;var ve=function(R){he(ResponseRawRoutingTable,R);function ResponseRawRoutingTable(pe){var Ae=R.call(this)||this;Ae._response=pe;return Ae}Object.defineProperty(ResponseRawRoutingTable.prototype,"ttl",{get:function(){return this._response.rt.ttl},enumerable:false,configurable:true});Object.defineProperty(ResponseRawRoutingTable.prototype,"servers",{get:function(){return this._response.rt.servers},enumerable:false,configurable:true});Object.defineProperty(ResponseRawRoutingTable.prototype,"db",{get:function(){return this._response.rt.db},enumerable:false,configurable:true});Object.defineProperty(ResponseRawRoutingTable.prototype,"isNull",{get:function(){return this._response===null},enumerable:false,configurable:true});return ResponseRawRoutingTable}(me);var be=function(R){he(NullRawRoutingTable,R);function NullRawRoutingTable(){return R!==null&&R.apply(this,arguments)||this}Object.defineProperty(NullRawRoutingTable.prototype,"isNull",{get:function(){return true},enumerable:false,configurable:true});return NullRawRoutingTable}(me);var Ee=function(R){he(RecordRawRoutingTable,R);function RecordRawRoutingTable(pe){var Ae=R.call(this)||this;Ae._record=pe;return Ae}Object.defineProperty(RecordRawRoutingTable.prototype,"ttl",{get:function(){return this._record.get("ttl")},enumerable:false,configurable:true});Object.defineProperty(RecordRawRoutingTable.prototype,"servers",{get:function(){return this._record.get("servers")},enumerable:false,configurable:true});Object.defineProperty(RecordRawRoutingTable.prototype,"db",{get:function(){return this._record.has("db")?this._record.get("db"):null},enumerable:false,configurable:true});Object.defineProperty(RecordRawRoutingTable.prototype,"isNull",{get:function(){return this._record===null},enumerable:false,configurable:true});return RecordRawRoutingTable}(me)},17526:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.TelemetryObserver=pe.ProcedureRouteObserver=pe.RouteObserver=pe.CompletedObserver=pe.FailedObserver=pe.ResetObserver=pe.LogoffObserver=pe.LoginObserver=pe.ResultStreamObserver=pe.StreamObserver=void 0;var ye=Ae(55065);var me=ge(Ae(18805));var ve=Ae(1059);var be=ye.internal.constants.FETCH_ALL;var Ee=ye.error.PROTOCOL_ERROR;var we=function(){function StreamObserver(){}StreamObserver.prototype.onNext=function(R){};StreamObserver.prototype.onError=function(R){};StreamObserver.prototype.onCompleted=function(R){};return StreamObserver}();pe.StreamObserver=we;var Ce=function(R){he(ResultStreamObserver,R);function ResultStreamObserver(pe){var Ae=pe===void 0?{}:pe,he=Ae.reactive,ge=he===void 0?false:he,ye=Ae.moreFunction,me=Ae.discardFunction,Ee=Ae.fetchSize,we=Ee===void 0?be:Ee,Ce=Ae.beforeError,_e=Ae.afterError,Ie=Ae.beforeKeys,Se=Ae.afterKeys,Be=Ae.beforeComplete,ke=Ae.afterComplete,Oe=Ae.server,Re=Ae.highRecordWatermark,Qe=Re===void 0?Number.MAX_VALUE:Re,Pe=Ae.lowRecordWatermark,Te=Pe===void 0?Number.MAX_VALUE:Pe,De=Ae.enrichMetadata;var Ne=R.call(this)||this;Ne._fieldKeys=null;Ne._fieldLookup=null;Ne._head=null;Ne._queuedRecords=[];Ne._tail=null;Ne._error=null;Ne._observers=[];Ne._meta={};Ne._server=Oe;Ne._beforeError=Ce;Ne._afterError=_e;Ne._beforeKeys=Ie;Ne._afterKeys=Se;Ne._beforeComplete=Be;Ne._afterComplete=ke;Ne._enrichMetadata=De||ve.functional.identity;Ne._queryId=null;Ne._moreFunction=ye;Ne._discardFunction=me;Ne._discard=false;Ne._fetchSize=we;Ne._lowRecordWatermark=Te;Ne._highRecordWatermark=Qe;Ne._setState(ge?xe.READY:xe.READY_STREAMING);Ne._setupAutoPull();Ne._paused=false;Ne._pulled=!ge;Ne._haveRecordStreamed=false;return Ne}ResultStreamObserver.prototype.pause=function(){this._paused=true};ResultStreamObserver.prototype.resume=function(){this._paused=false;this._setupAutoPull(true);this._state.pull(this)};ResultStreamObserver.prototype.onNext=function(R){this._haveRecordStreamed=true;var pe=new ye.Record(this._fieldKeys,R,this._fieldLookup);if(this._observers.some((function(R){return R.onNext}))){this._observers.forEach((function(R){if(R.onNext){R.onNext(pe)}}))}else{this._queuedRecords.push(pe);if(this._queuedRecords.length>this._highRecordWatermark){this._autoPull=false}}};ResultStreamObserver.prototype.onCompleted=function(R){this._state.onSuccess(this,R)};ResultStreamObserver.prototype.onError=function(R){this._state.onError(this,R)};ResultStreamObserver.prototype.cancel=function(){this._discard=true};ResultStreamObserver.prototype.prepareToHandleSingleResponse=function(){this._head=[];this._fieldKeys=[];this._setState(xe.STREAMING)};ResultStreamObserver.prototype.markCompleted=function(){this._head=[];this._fieldKeys=[];this._tail={};this._setState(xe.SUCCEEDED)};ResultStreamObserver.prototype.subscribe=function(R){if(this._head&&R.onKeys){R.onKeys(this._head)}if(this._queuedRecords.length>0&&R.onNext){for(var pe=0;pe0}},R));if(![undefined,null,"r","w","rw","s"].includes(Ae.type)){this.onError((0,ye.newError)('Server returned invalid query type. Expected one of [undefined, null, "r", "w", "rw", "s"] but got \''.concat(Ae.type,"'"),Ee));return}this._setState(xe.SUCCEEDED);var he=null;if(this._beforeComplete){he=this._beforeComplete(Ae)}var continuation=function(){pe._tail=Ae;if(pe._observers.some((function(R){return R.onCompleted}))){pe._observers.forEach((function(R){if(R.onCompleted){R.onCompleted(Ae)}}))}if(pe._afterComplete){pe._afterComplete(Ae)}};if(he){Promise.resolve(he).then((function(){return continuation()}))}else{continuation()}};ResultStreamObserver.prototype._handleRunSuccess=function(R,pe){var Ae=this;if(this._fieldKeys===null){this._fieldKeys=[];this._fieldLookup={};if(R.fields&&R.fields.length>0){this._fieldKeys=R.fields;for(var he=0;he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.epochSecondAndNanoToLocalDateTime=pe.nanoOfDayToLocalTime=pe.epochDayToDate=void 0;var he=Ae(55065);var ge=he.internal.temporalUtil,ye=ge.DAYS_0000_TO_1970,me=ge.DAYS_PER_400_YEAR_CYCLE,ve=ge.NANOS_PER_HOUR,be=ge.NANOS_PER_MINUTE,Ee=ge.NANOS_PER_SECOND,we=ge.SECONDS_PER_DAY,Ce=ge.floorDiv,_e=ge.floorMod;function epochDayToDate(R){R=(0,he.int)(R);var pe=R.add(ye).subtract(60);var Ae=(0,he.int)(0);if(pe.lessThan(0)){var ge=pe.add(1).div(me).subtract(1);Ae=ge.multiply(400);pe=pe.add(ge.multiply(-me))}var ve=pe.multiply(400).add(591).div(me);var be=pe.subtract(ve.multiply(365).add(ve.div(4)).subtract(ve.div(100)).add(ve.div(400)));if(be.lessThan(0)){ve=ve.subtract(1);be=pe.subtract(ve.multiply(365).add(ve.div(4)).subtract(ve.div(100)).add(ve.div(400)))}ve=ve.add(Ae);var Ee=be;var we=Ee.multiply(5).add(2).div(153);var Ce=we.add(2).modulo(12).add(1);var _e=Ee.subtract(we.multiply(306).add(5).div(10)).add(1);ve=ve.add(we.div(10));return new he.Date(ve,Ce,_e)}pe.epochDayToDate=epochDayToDate;function nanoOfDayToLocalTime(R){R=(0,he.int)(R);var pe=R.div(ve);R=R.subtract(pe.multiply(ve));var Ae=R.div(be);R=R.subtract(Ae.multiply(be));var ge=R.div(Ee);var ye=R.subtract(ge.multiply(Ee));return new he.LocalTime(pe,Ae,ge,ye)}pe.nanoOfDayToLocalTime=nanoOfDayToLocalTime;function epochSecondAndNanoToLocalDateTime(R,pe){var Ae=Ce(R,we);var ge=_e(R,we);var ye=ge.multiply(Ee).add(pe);var me=epochDayToDate(Ae);var ve=nanoOfDayToLocalTime(ye);return new he.LocalDateTime(me.year,me.month,me.day,ve.hour,ve.minute,ve.second,ve.nanosecond)}pe.epochSecondAndNanoToLocalDateTime=epochSecondAndNanoToLocalDateTime},28859:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TypeTransformer=void 0;var he=Ae(32423);var ge=Ae(55065);var ye=ge.internal.objectUtil;var me=function(){function Transformer(R){this._transformers=R;this._transformersPerSignature=new Map(R.map((function(R){return[R.signature,R]})));this.fromStructure=this.fromStructure.bind(this);this.toStructure=this.toStructure.bind(this);Object.freeze(this)}Transformer.prototype.fromStructure=function(R){try{if(R instanceof he.structure.Structure&&this._transformersPerSignature.has(R.signature)){var pe=this._transformersPerSignature.get(R.signature).fromStructure;return pe(R)}return R}catch(R){return ye.createBrokenObject(R)}};Transformer.prototype.toStructure=function(R){var pe=this._transformers.find((function(pe){var Ae=pe.isTypeInstance;return Ae(R)}));if(pe!==undefined){return pe.toStructure(R)}return R};return Transformer}();pe["default"]=me;var ve=function(){function TypeTransformer(R){var pe=R.signature,Ae=R.fromStructure,he=R.toStructure,ge=R.isTypeInstance;this.signature=pe;this.isTypeInstance=ge;this.fromStructure=Ae;this.toStructure=he;Object.freeze(this)}TypeTransformer.prototype.extendsWith=function(R){var pe=R.signature,Ae=R.fromStructure,he=R.toStructure,ge=R.isTypeInstance;return new TypeTransformer({signature:pe||this.signature,fromStructure:Ae||this.fromStructure,toStructure:he||this.toStructure,isTypeInstance:ge||this.isTypeInstance})};return TypeTransformer}();pe.TypeTransformer=ve},15730:function(R,pe){"use strict";var Ae=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});var he=function(){function BaseBuffer(R){this.position=0;this.length=R}BaseBuffer.prototype.getUInt8=function(R){throw new Error("Not implemented")};BaseBuffer.prototype.getInt8=function(R){throw new Error("Not implemented")};BaseBuffer.prototype.getFloat64=function(R){throw new Error("Not implemented")};BaseBuffer.prototype.putUInt8=function(R,pe){throw new Error("Not implemented")};BaseBuffer.prototype.putInt8=function(R,pe){throw new Error("Not implemented")};BaseBuffer.prototype.putFloat64=function(R,pe){throw new Error("Not implemented")};BaseBuffer.prototype.getInt16=function(R){return this.getInt8(R)<<8|this.getUInt8(R+1)};BaseBuffer.prototype.getUInt16=function(R){return this.getUInt8(R)<<8|this.getUInt8(R+1)};BaseBuffer.prototype.getInt32=function(R){return this.getInt8(R)<<24|this.getUInt8(R+1)<<16|this.getUInt8(R+2)<<8|this.getUInt8(R+3)};BaseBuffer.prototype.getUInt32=function(R){return this.getUInt8(R)<<24|this.getUInt8(R+1)<<16|this.getUInt8(R+2)<<8|this.getUInt8(R+3)};BaseBuffer.prototype.getInt64=function(R){return this.getInt8(R)<<56|this.getUInt8(R+1)<<48|this.getUInt8(R+2)<<40|this.getUInt8(R+3)<<32|this.getUInt8(R+4)<<24|this.getUInt8(R+5)<<16|this.getUInt8(R+6)<<8|this.getUInt8(R+7)};BaseBuffer.prototype.getSlice=function(R,pe){return new ge(R,pe,this)};BaseBuffer.prototype.putInt16=function(R,pe){this.putInt8(R,pe>>8);this.putUInt8(R+1,pe&255)};BaseBuffer.prototype.putUInt16=function(R,pe){this.putUInt8(R,pe>>8&255);this.putUInt8(R+1,pe&255)};BaseBuffer.prototype.putInt32=function(R,pe){this.putInt8(R,pe>>24);this.putUInt8(R+1,pe>>16&255);this.putUInt8(R+2,pe>>8&255);this.putUInt8(R+3,pe&255)};BaseBuffer.prototype.putUInt32=function(R,pe){this.putUInt8(R,pe>>24&255);this.putUInt8(R+1,pe>>16&255);this.putUInt8(R+2,pe>>8&255);this.putUInt8(R+3,pe&255)};BaseBuffer.prototype.putInt64=function(R,pe){this.putInt8(R,pe>>48);this.putUInt8(R+1,pe>>42&255);this.putUInt8(R+2,pe>>36&255);this.putUInt8(R+3,pe>>30&255);this.putUInt8(R+4,pe>>24&255);this.putUInt8(R+5,pe>>16&255);this.putUInt8(R+6,pe>>8&255);this.putUInt8(R+7,pe&255)};BaseBuffer.prototype.putBytes=function(R,pe){for(var Ae=0,he=pe.remaining();Ae0};BaseBuffer.prototype.reset=function(){this.position=0};BaseBuffer.prototype.toString=function(){return this.constructor.name+"( position="+this.position+" )\n "+this.toHex()};BaseBuffer.prototype.toHex=function(){var R="";for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(55065);var ge=he.internal.util,ye=ge.ENCRYPTION_OFF,me=ge.ENCRYPTION_ON;var ve=he.error.SERVICE_UNAVAILABLE;var be=[null,undefined,true,false,me,ye];var Ee=[null,undefined,"TRUST_ALL_CERTIFICATES","TRUST_CUSTOM_CA_SIGNED_CERTIFICATES","TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"];var we=function(){function ChannelConfig(R,pe,Ae,he){this.address=R;this.encrypted=extractEncrypted(pe);this.trust=extractTrust(pe);this.trustedCertificates=extractTrustedCertificates(pe);this.knownHostsPath=extractKnownHostsPath(pe);this.connectionErrorCode=Ae||ve;this.connectionTimeout=pe.connectionTimeout;this.clientCertificate=he}return ChannelConfig}();pe["default"]=we;function extractEncrypted(R){var pe=R.encrypted;if(be.indexOf(pe)===-1){throw(0,he.newError)("Illegal value of the encrypted setting ".concat(pe,". Expected one of ").concat(be))}return pe}function extractTrust(R){var pe=R.trust;if(Ee.indexOf(pe)===-1){throw(0,he.newError)("Illegal value of the trust setting ".concat(pe,". Expected one of ").concat(Ee))}return pe}function extractTrustedCertificates(R){return R.trustedCertificates||[]}function extractKnownHostsPath(R){return R.knownHosts||null}},12613:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.Dechunker=pe.Chunker=void 0;var ye=ge(Ae(15730));var me=Ae(27164);var ve=ge(Ae(33190));var be=2;var Ee=0;var we=1400;var Ce=function(R){he(Chunker,R);function Chunker(pe,Ae){var he=R.call(this,0)||this;he._bufferSize=Ae||we;he._ch=pe;he._buffer=(0,me.alloc)(he._bufferSize);he._currentChunkStart=0;he._chunkOpen=false;return he}Chunker.prototype.putUInt8=function(R,pe){this._ensure(1);this._buffer.writeUInt8(pe)};Chunker.prototype.putInt8=function(R,pe){this._ensure(1);this._buffer.writeInt8(pe)};Chunker.prototype.putFloat64=function(R,pe){this._ensure(8);this._buffer.writeFloat64(pe)};Chunker.prototype.putBytes=function(R,pe){while(pe.remaining()>0){this._ensure(1);if(this._buffer.remaining()>pe.remaining()){this._buffer.writeBytes(pe)}else{this._buffer.writeBytes(pe.readSlice(this._buffer.remaining()))}}return this};Chunker.prototype.flush=function(){if(this._buffer.position>0){this._closeChunkIfOpen();var R=this._buffer;this._buffer=null;this._ch.write(R.getSlice(0,R.position));this._buffer=(0,me.alloc)(this._bufferSize);this._chunkOpen=false}return this};Chunker.prototype.messageBoundary=function(){this._closeChunkIfOpen();if(this._buffer.remaining()=2){return this._onHeader(R.readUInt16())}else{this._partialChunkHeader=R.readUInt8()<<8;return this.IN_HEADER}};Dechunker.prototype.IN_HEADER=function(R){return this._onHeader((this._partialChunkHeader|R.readUInt8())&65535)};Dechunker.prototype.IN_CHUNK=function(R){if(this._chunkSize<=R.remaining()){this._currentMessage.push(R.readSlice(this._chunkSize));return this.AWAITING_CHUNK}else{this._chunkSize-=R.remaining();this._currentMessage.push(R.readSlice(R.remaining()));return this.IN_CHUNK}};Dechunker.prototype.CLOSED=function(R){};Dechunker.prototype._onHeader=function(R){if(R===0){var pe=void 0;switch(this._currentMessage.length){case 0:return this.AWAITING_CHUNK;case 1:pe=this._currentMessage[0];break;default:pe=new ve.default(this._currentMessage);break}this._currentMessage=[];this.onmessage(pe);return this.AWAITING_CHUNK}else{this._chunkSize=R;return this.IN_CHUNK}};Dechunker.prototype.write=function(R){while(R.hasRemaining()){this._state=this._state(R)}};return Dechunker}();pe.Dechunker=_e},33190:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});var ge=Ae(35509);var ye=Ae(27164);var me=function(R){he(CombinedBuffer,R);function CombinedBuffer(pe){var Ae=this;var he=0;for(var ge=0;ge=Ae.length){R-=Ae.length}else{return Ae.getUInt8(R)}}};CombinedBuffer.prototype.getInt8=function(R){for(var pe=0;pe=Ae.length){R-=Ae.length}else{return Ae.getInt8(R)}}};CombinedBuffer.prototype.getFloat64=function(R){var pe=(0,ye.alloc)(8);for(var Ae=0;Ae<8;Ae++){pe.putUInt8(Ae,this.getUInt8(R+Ae))}return pe.getFloat64(0)};return CombinedBuffer}(ge.BaseBuffer);pe["default"]=me},31131:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};var ye=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.utf8=pe.alloc=pe.ChannelConfig=void 0;ge(Ae(51567),pe);ge(Ae(12613),pe);var me=Ae(83810);Object.defineProperty(pe,"ChannelConfig",{enumerable:true,get:function(){return ye(me).default}});var ve=Ae(27164);Object.defineProperty(pe,"alloc",{enumerable:true,get:function(){return ve.alloc}});var be=Ae(52864);Object.defineProperty(pe,"utf8",{enumerable:true,get:function(){return ye(be).default}})},51567:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.ClientCertificatesLoader=pe.HostNameResolver=pe.Channel=void 0;var ge=he(Ae(26767));var ye=he(Ae(30494));var me=he(Ae(6312));pe.Channel=ge.default;pe.HostNameResolver=ye.default;pe.ClientCertificatesLoader=me.default},26767:function(R,pe,Ae){"use strict";var he=this&&this.__assign||function(){he=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ve=me(Ae(57147));function readFile(R){return new Promise((function(pe,Ae){return ve.default.readFile(R,(function(R,he){if(R){return Ae(R)}return pe(he)}))}))}function loadCert(R){if(Array.isArray(R)){return Promise.all(R.map(loadCert))}return readFile(R)}function loadKey(R){if(Array.isArray(R)){return Promise.all(R.map(loadKey))}if(typeof R==="string"){return readFile(R)}return readFile(R.path).then((function(pe){return{pem:pe,passphrase:R.password}}))}pe["default"]={load:function(R){return he(this,void 0,void 0,(function(){var pe,Ae,he,me,ve;return ge(this,(function(ge){switch(ge.label){case 0:pe=loadCert(R.certfile);Ae=loadKey(R.keyfile);return[4,Promise.all([pe,Ae])];case 1:he=ye.apply(void 0,[ge.sent(),2]),me=he[0],ve=he[1];return[2,{cert:me,key:ve,passphrase:R.password}]}}))}))}}},30494:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=ge(Ae(9523));var me=Ae(55065);var ve=me.internal.resolver.BaseHostNameResolver;var be=function(R){he(NodeHostNameResolver,R);function NodeHostNameResolver(){return R!==null&&R.apply(this,arguments)||this}NodeHostNameResolver.prototype.resolve=function(R){return new Promise((function(pe){ye.default.lookup(R.host(),{all:true},(function(Ae,he){if(Ae){pe([R])}else{var ge=he.map((function(pe){return R.resolveWith(pe.address)}));pe(ge)}}))}))};return NodeHostNameResolver}(ve);pe["default"]=be},52864:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ge=he(Ae(27164));var ye=Ae(55065);var me=he(Ae(14300));var ve=Ae(71576);var be=new ve.StringDecoder("utf8");function encode(R){return new ge.default(newBuffer(R))}function decode(R,pe){if(Object.prototype.hasOwnProperty.call(R,"_buffer")){return decodeChannelBuffer(R,pe)}else if(Object.prototype.hasOwnProperty.call(R,"_buffers")){return decodeCombinedBuffer(R,pe)}else{throw(0,ye.newError)("Don't know how to decode strings from '".concat(R,"'"))}}function decodeChannelBuffer(R,pe){var Ae=R.position;var he=Ae+pe;R.position=Math.min(he,R.length);return R._buffer.toString("utf8",Ae,he)}function decodeCombinedBuffer(R,pe){return streamDecodeCombinedBuffer(R,pe,(function(R){return be.write(R._buffer)}),(function(){return be.end()}))}function streamDecodeCombinedBuffer(R,pe,Ae,he){var ge=pe;var ye=R.position;R._updatePos(Math.min(pe,R.length-ye));var me=R._buffers.reduce((function(R,pe){if(ge<=0){return R}else if(ye>=pe.length){ye-=pe.length;return""}else{pe._updatePos(ye-pe.position);var he=Math.min(pe.length-ye,ge);var me=pe.readSlice(he);pe._updatePos(he);ge=Math.max(ge-me.length,0);ye=0;return R+Ae(me)}}),"");return me+he()}function newBuffer(R){if(typeof me.default.Buffer.from==="function"){return me.default.Buffer.from(R,"utf8")}else{return new me.default.Buffer(R,"utf8")}}pe["default"]={encode:encode,decode:decode}},40050:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=_e}))];case 1:return[2,R.sent()]}}))}))};DirectConnectionProvider.prototype.getNegotiatedProtocolVersion=function(){var R=this;return new Promise((function(pe,Ae){R._hasProtocolVersion(pe).catch(Ae)}))};DirectConnectionProvider.prototype.supportsTransactionConfig=function(){return ge(this,void 0,void 0,(function(){return ye(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=Ce}))];case 1:return[2,R.sent()]}}))}))};DirectConnectionProvider.prototype.supportsUserImpersonation=function(){return ge(this,void 0,void 0,(function(){return ye(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=Ie}))];case 1:return[2,R.sent()]}}))}))};DirectConnectionProvider.prototype.supportsSessionAuth=function(){return ge(this,void 0,void 0,(function(){return ye(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=Se}))];case 1:return[2,R.sent()]}}))}))};DirectConnectionProvider.prototype.verifyAuthentication=function(R){var pe=R.auth;return ge(this,void 0,void 0,(function(){var R=this;return ye(this,(function(Ae){return[2,this._verifyAuthentication({auth:pe,getAddress:function(){return R._address}})]}))}))};DirectConnectionProvider.prototype.verifyConnectivityAndGetServerInfo=function(){return ge(this,void 0,void 0,(function(){return ye(this,(function(R){switch(R.label){case 0:return[4,this._verifyConnectivityAndGetServerVersion({address:this._address})];case 1:return[2,R.sent()]}}))}))};return DirectConnectionProvider}(ve.default);pe["default"]=ke},65390:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ye=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var me=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))ge(pe,R,Ae);ye(pe,R);return pe};var ve=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var be=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var we=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;hepe){return false}return true};PooledConnectionProvider.prototype._destroyConnection=function(R){delete this._openConnections[R.id];return R.close()};PooledConnectionProvider.prototype._verifyConnectivityAndGetServerVersion=function(R){var pe=R.address;return ve(this,void 0,void 0,(function(){var R,Ae;return be(this,(function(he){switch(he.label){case 0:return[4,this._connectionPool.acquire({},pe)];case 1:R=he.sent();Ae=new Se.ServerInfo(R.server,R.protocol().version);he.label=2;case 2:he.trys.push([2,,5,7]);if(!!R.protocol().isLastMessageLogon())return[3,4];return[4,R.resetAndFlush()];case 3:he.sent();he.label=4;case 4:return[3,7];case 5:return[4,R.release()];case 6:he.sent();return[7];case 7:return[2,Ae]}}))}))};PooledConnectionProvider.prototype._verifyAuthentication=function(R){var pe=R.getAddress,Ae=R.auth;return ve(this,void 0,void 0,(function(){var R,he,ge,ye,me,ve;return be(this,(function(be){switch(be.label){case 0:R=[];be.label=1;case 1:be.trys.push([1,8,9,11]);return[4,pe()];case 2:he=be.sent();return[4,this._connectionPool.acquire({auth:Ae,skipReAuth:true},he)];case 3:ge=be.sent();R.push(ge);ye=!ge.protocol().isLastMessageLogon();if(!ge.supportsReAuth){throw(0,Se.newError)("Driver is connected to a database that does not support user switch.")}if(!(ye&&ge.supportsReAuth))return[3,5];return[4,this._authenticationProvider.authenticate({connection:ge,auth:Ae,waitReAuth:true,forceReAuth:true})];case 4:be.sent();return[3,7];case 5:if(!(ye&&!ge.supportsReAuth))return[3,7];return[4,this._connectionPool.acquire({auth:Ae},he,{requireNew:true})];case 6:me=be.sent();me._sticky=true;R.push(me);be.label=7;case 7:return[2,true];case 8:ve=be.sent();if(xe.includes(ve.code)){return[2,false]}throw ve;case 9:return[4,Promise.all(R.map((function(R){return R.release()})))];case 10:be.sent();return[7];case 11:return[2]}}))}))};PooledConnectionProvider.prototype._verifyStickyConnection=function(R){var pe=R.auth,Ae=R.connection,he=R.address;return ve(this,void 0,void 0,(function(){var R,he;return be(this,(function(ge){switch(ge.label){case 0:R=ke.object.equals(pe,Ae.authToken);he=!R;Ae._sticky=R&&!Ae.supportsReAuth;if(!(he||Ae._sticky))return[3,2];return[4,Ae.release()];case 1:ge.sent();throw(0,Se.newError)("Driver is connected to a database that does not support user switch.");case 2:return[2]}}))}))};PooledConnectionProvider.prototype.close=function(){return ve(this,void 0,void 0,(function(){return be(this,(function(R){switch(R.label){case 0:return[4,this._connectionPool.close()];case 1:R.sent();return[4,Promise.all(Object.values(this._openConnections).map((function(R){return R.close()})))];case 2:R.sent();return[2]}}))}))};PooledConnectionProvider._installIdleObserverOnConnection=function(R,pe){R._setIdle(pe)};PooledConnectionProvider._removeIdleObserverOnConnection=function(R){R._unsetIdle()};PooledConnectionProvider.prototype._handleSecurityError=function(R,pe,Ae){var he=this._authenticationProvider.handleError({connection:Ae,code:R.code});if(he){R.retriable=true}if(R.code==="Neo.ClientError.Security.AuthorizationExpired"){this._connectionPool.apply(pe,(function(R){R.authToken=null}))}if(Ae){Ae.close().catch((function(){return undefined}))}return R};return PooledConnectionProvider}(Se.ConnectionProvider);pe["default"]=Pe},2970:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__assign||function(){ge=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};var Ce=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var _e=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var Ie=Ae(55065);var Se=ve(Ae(47845));var Be=Ae(31131);var ke=_e(Ae(59761));var Oe=_e(Ae(65390));var Re=Ae(30247);var Qe=Ae(55994);var xe=Ae(1059);var Pe=Ie.error.SERVICE_UNAVAILABLE,Te=Ie.error.SESSION_EXPIRED;var De=Ie.internal.bookmarks.Bookmarks,Ne=Ie.internal.constants,Me=Ne.ACCESS_MODE_READ,je=Ne.ACCESS_MODE_WRITE,Fe=Ne.BOLT_PROTOCOL_V3,Le=Ne.BOLT_PROTOCOL_V4_0,Ue=Ne.BOLT_PROTOCOL_V4_4,He=Ne.BOLT_PROTOCOL_V5_1;var Je="Neo.ClientError.Procedure.ProcedureNotFound";var We="Neo.ClientError.Database.DatabaseNotFound";var Ve="Neo.ClientError.Transaction.InvalidBookmark";var Ke="Neo.ClientError.Transaction.InvalidBookmarkMixture";var Ge="Neo.ClientError.Security.AuthorizationExpired";var Ye="Neo.ClientError.Statement.ArgumentError";var qe="Neo.ClientError.Request.Invalid";var $e="Neo.ClientError.Statement.TypeError";var ze="N/A";var Xe="system";var Ze=null;var et=(0,Ie.int)(3e4);var tt=function(R){he(RoutingConnectionProvider,R);function RoutingConnectionProvider(pe){var Ae=pe.id,he=pe.address,ye=pe.routingContext,me=pe.hostNameResolver,ve=pe.config,we=pe.log,Ce=pe.userAgent,_e=pe.boltAgent,ke=pe.authTokenManager,Oe=pe.routingTablePurgeDelay,Pe=pe.newPool;var Te=R.call(this,{id:Ae,config:ve,log:we,userAgent:Ce,boltAgent:_e,authTokenManager:ke,newPool:Pe},(function(R){return be(Te,void 0,void 0,(function(){var pe,Ae;return Ee(this,(function(he){switch(he.label){case 0:pe=Qe.createChannelConnection;Ae=[R,this._config,this._createConnectionErrorHandler(),this._log];return[4,this._clientCertificateHolder.getClientCertificate()];case 1:return[2,pe.apply(void 0,Ae.concat([he.sent(),this._routingContext]))]}}))}))}))||this;Te._routingContext=ge(ge({},ye),{address:he.toString()});Te._seedRouter=he;Te._rediscovery=new Se.default(Te._routingContext);Te._loadBalancingStrategy=new Re.LeastConnectedLoadBalancingStrategy(Te._connectionPool);Te._hostNameResolver=me;Te._dnsResolver=new Be.HostNameResolver;Te._log=we;Te._useSeedRouter=true;Te._routingTableRegistry=new rt(Oe?(0,Ie.int)(Oe):et);Te._refreshRoutingTable=xe.functional.reuseOngoingRequest(Te._refreshRoutingTable,Te);return Te}RoutingConnectionProvider.prototype._createConnectionErrorHandler=function(){return new Qe.ConnectionErrorHandler(Te)};RoutingConnectionProvider.prototype._handleUnavailability=function(R,pe,Ae){this._log.warn("Routing driver ".concat(this._id," will forget ").concat(pe," for database '").concat(Ae,"' because of an error ").concat(R.code," '").concat(R.message,"'"));this.forget(pe,Ae||Ze);return R};RoutingConnectionProvider.prototype._handleSecurityError=function(pe,Ae,he,ge){this._log.warn("Routing driver ".concat(this._id," will close connections to ").concat(Ae," for database '").concat(ge,"' because of an error ").concat(pe.code," '").concat(pe.message,"'"));return R.prototype._handleSecurityError.call(this,pe,Ae,he,ge)};RoutingConnectionProvider.prototype._handleWriteFailure=function(R,pe,Ae){this._log.warn("Routing driver ".concat(this._id," will forget writer ").concat(pe," for database '").concat(Ae,"' because of an error ").concat(R.code," '").concat(R.message,"'"));this.forgetWriter(pe,Ae||Ze);return(0,Ie.newError)("No longer possible to write to server at "+pe,Te,R)};RoutingConnectionProvider.prototype.acquireConnection=function(R){var pe=R===void 0?{}:R,Ae=pe.accessMode,he=pe.database,ge=pe.bookmarks,ye=pe.impersonatedUser,me=pe.onDatabaseNameResolved,ve=pe.auth;return be(this,void 0,void 0,(function(){var R,pe,be,we,Ce,_e,Se,Be;var ke=this;return Ee(this,(function(Ee){switch(Ee.label){case 0:be={database:he||Ze};we=new Qe.ConnectionErrorHandler(Te,(function(R,pe){return ke._handleUnavailability(R,pe,be.database)}),(function(R,pe){return ke._handleWriteFailure(R,pe,be.database)}),(function(R,pe,Ae){return ke._handleSecurityError(R,pe,Ae,be.database)}));return[4,this._freshRoutingTable({accessMode:Ae,database:be.database,bookmarks:ge,impersonatedUser:ye,auth:ve,onDatabaseNameResolved:function(R){be.database=be.database||R;if(me){me(R)}}})];case 1:Ce=Ee.sent();if(Ae===Me){pe=this._loadBalancingStrategy.selectReader(Ce.readers);R="read"}else if(Ae===je){pe=this._loadBalancingStrategy.selectWriter(Ce.writers);R="write"}else{throw(0,Ie.newError)("Illegal mode "+Ae)}if(!pe){throw(0,Ie.newError)("Failed to obtain connection towards ".concat(R," server. Known routing table is: ").concat(Ce),Te)}Ee.label=2;case 2:Ee.trys.push([2,6,,7]);return[4,this._connectionPool.acquire({auth:ve},pe)];case 3:_e=Ee.sent();if(!ve)return[3,5];return[4,this._verifyStickyConnection({auth:ve,connection:_e,address:pe})];case 4:Ee.sent();return[2,_e];case 5:return[2,new Qe.DelegateConnection(_e,we)];case 6:Se=Ee.sent();Be=we.handleAndTransformError(Se,pe);throw Be;case 7:return[2]}}))}))};RoutingConnectionProvider.prototype._hasProtocolVersion=function(R){return be(this,void 0,void 0,(function(){var pe,Ae,he,ge,ye,me;return Ee(this,(function(ve){switch(ve.label){case 0:return[4,this._resolveSeedRouter(this._seedRouter)];case 1:pe=ve.sent();he=0;ve.label=2;case 2:if(!(he=Le}))];case 1:return[2,R.sent()]}}))}))};RoutingConnectionProvider.prototype.supportsTransactionConfig=function(){return be(this,void 0,void 0,(function(){return Ee(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=Fe}))];case 1:return[2,R.sent()]}}))}))};RoutingConnectionProvider.prototype.supportsUserImpersonation=function(){return be(this,void 0,void 0,(function(){return Ee(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=Ue}))];case 1:return[2,R.sent()]}}))}))};RoutingConnectionProvider.prototype.supportsSessionAuth=function(){return be(this,void 0,void 0,(function(){return Ee(this,(function(R){switch(R.label){case 0:return[4,this._hasProtocolVersion((function(R){return R>=He}))];case 1:return[2,R.sent()]}}))}))};RoutingConnectionProvider.prototype.getNegotiatedProtocolVersion=function(){var R=this;return new Promise((function(pe,Ae){R._hasProtocolVersion(pe).catch(Ae)}))};RoutingConnectionProvider.prototype.verifyAuthentication=function(R){var pe=R.database,Ae=R.accessMode,he=R.auth;return be(this,void 0,void 0,(function(){var R=this;return Ee(this,(function(ge){return[2,this._verifyAuthentication({auth:he,getAddress:function(){return be(R,void 0,void 0,(function(){var R,ge,ye;return Ee(this,(function(me){switch(me.label){case 0:R={database:pe||Ze};return[4,this._freshRoutingTable({accessMode:Ae,database:R.database,auth:he,onDatabaseNameResolved:function(pe){R.database=R.database||pe}})];case 1:ge=me.sent();ye=Ae===je?ge.writers:ge.readers;if(ye.length===0){throw(0,Ie.newError)("No servers available for database '".concat(R.database,"' with access mode '").concat(Ae,"'"),Pe)}return[2,ye[0]]}}))}))}})]}))}))};RoutingConnectionProvider.prototype.verifyConnectivityAndGetServerInfo=function(R){var pe=R.database,Ae=R.accessMode;return be(this,void 0,void 0,(function(){var R,he,ge,ye,me,ve,be,Ce,_e,Se;var Be,ke;return Ee(this,(function(Ee){switch(Ee.label){case 0:R={database:pe||Ze};return[4,this._freshRoutingTable({accessMode:Ae,database:R.database,onDatabaseNameResolved:function(pe){R.database=R.database||pe}})];case 1:he=Ee.sent();ge=Ae===je?he.writers:he.readers;ye=(0,Ie.newError)("No servers available for database '".concat(R.database,"' with access mode '").concat(Ae,"'"),Pe);Ee.label=2;case 2:Ee.trys.push([2,9,10,11]);me=we(ge),ve=me.next();Ee.label=3;case 3:if(!!ve.done)return[3,8];be=ve.value;Ee.label=4;case 4:Ee.trys.push([4,6,,7]);return[4,this._verifyConnectivityAndGetServerVersion({address:be})];case 5:Ce=Ee.sent();return[2,Ce];case 6:_e=Ee.sent();ye=_e;return[3,7];case 7:ve=me.next();return[3,3];case 8:return[3,11];case 9:Se=Ee.sent();Be={error:Se};return[3,11];case 10:try{if(ve&&!ve.done&&(ke=me.return))ke.call(me)}finally{if(Be)throw Be.error}return[7];case 11:throw ye}}))}))};RoutingConnectionProvider.prototype.forget=function(R,pe){this._routingTableRegistry.apply(pe,{applyWhenExists:function(pe){return pe.forget(R)}});this._connectionPool.purge(R).catch((function(){}))};RoutingConnectionProvider.prototype.forgetWriter=function(R,pe){this._routingTableRegistry.apply(pe,{applyWhenExists:function(pe){return pe.forgetWriter(R)}})};RoutingConnectionProvider.prototype._freshRoutingTable=function(R){var pe=R===void 0?{}:R,Ae=pe.accessMode,he=pe.database,ge=pe.bookmarks,ye=pe.impersonatedUser,me=pe.onDatabaseNameResolved,ve=pe.auth;var be=this._routingTableRegistry.get(he,(function(){return new Se.RoutingTable({database:he})}));if(!be.isStaleFor(Ae)){return be}this._log.info('Routing table is stale for database: "'.concat(he,'" and access mode: "').concat(Ae,'": ').concat(be));return this._refreshRoutingTable(be,ge,ye,ve).then((function(R){me(R.database);return R}))};RoutingConnectionProvider.prototype._refreshRoutingTable=function(R,pe,Ae,he){var ge=R.routers;if(this._useSeedRouter){return this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(ge,R,pe,Ae,he)}return this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(ge,R,pe,Ae,he)};RoutingConnectionProvider.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters=function(R,pe,Ae,he,ge){return be(this,void 0,void 0,(function(){var ye,me,ve,be,we,_e,Ie;return Ee(this,(function(Ee){switch(Ee.label){case 0:ye=[];return[4,this._fetchRoutingTableUsingSeedRouter(ye,this._seedRouter,pe,Ae,he,ge)];case 1:me=Ce.apply(void 0,[Ee.sent(),2]),ve=me[0],be=me[1];if(!ve)return[3,2];this._useSeedRouter=false;return[3,4];case 2:return[4,this._fetchRoutingTableUsingKnownRouters(R,pe,Ae,he,ge)];case 3:we=Ce.apply(void 0,[Ee.sent(),2]),_e=we[0],Ie=we[1];ve=_e;be=Ie||be;Ee.label=4;case 4:return[4,this._applyRoutingTableIfPossible(pe,ve,be)];case 5:return[2,Ee.sent()]}}))}))};RoutingConnectionProvider.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter=function(R,pe,Ae,he,ge){return be(this,void 0,void 0,(function(){var ye,me,ve;var be;return Ee(this,(function(Ee){switch(Ee.label){case 0:return[4,this._fetchRoutingTableUsingKnownRouters(R,pe,Ae,he,ge)];case 1:ye=Ce.apply(void 0,[Ee.sent(),2]),me=ye[0],ve=ye[1];if(!!me)return[3,3];return[4,this._fetchRoutingTableUsingSeedRouter(R,this._seedRouter,pe,Ae,he,ge)];case 2:be=Ce.apply(void 0,[Ee.sent(),2]),me=be[0],ve=be[1];Ee.label=3;case 3:return[4,this._applyRoutingTableIfPossible(pe,me,ve)];case 4:return[2,Ee.sent()]}}))}))};RoutingConnectionProvider.prototype._fetchRoutingTableUsingKnownRouters=function(R,pe,Ae,he,ge){return be(this,void 0,void 0,(function(){var ye,me,ve,be;return Ee(this,(function(Ee){switch(Ee.label){case 0:return[4,this._fetchRoutingTable(R,pe,Ae,he,ge)];case 1:ye=Ce.apply(void 0,[Ee.sent(),2]),me=ye[0],ve=ye[1];if(me){return[2,[me,null]]}be=R.length-1;RoutingConnectionProvider._forgetRouter(pe,R,be);return[2,[null,ve]]}}))}))};RoutingConnectionProvider.prototype._fetchRoutingTableUsingSeedRouter=function(R,pe,Ae,he,ge,ye){return be(this,void 0,void 0,(function(){var me,ve;return Ee(this,(function(be){switch(be.label){case 0:return[4,this._resolveSeedRouter(pe)];case 1:me=be.sent();ve=me.filter((function(pe){return R.indexOf(pe)<0}));return[4,this._fetchRoutingTable(ve,Ae,he,ge,ye)];case 2:return[2,be.sent()]}}))}))};RoutingConnectionProvider.prototype._resolveSeedRouter=function(R){return be(this,void 0,void 0,(function(){var pe,Ae;var he=this;return Ee(this,(function(ge){switch(ge.label){case 0:return[4,this._hostNameResolver.resolve(R)];case 1:pe=ge.sent();return[4,Promise.all(pe.map((function(R){return he._dnsResolver.resolve(R)})))];case 2:Ae=ge.sent();return[2,[].concat.apply([],Ae)]}}))}))};RoutingConnectionProvider.prototype._fetchRoutingTable=function(R,pe,Ae,he,ge){return be(this,void 0,void 0,(function(){var ye=this;return Ee(this,(function(me){return[2,R.reduce((function(me,ve,we){return be(ye,void 0,void 0,(function(){var ye,be,_e,Ie,Se,Be,ke;return Ee(this,(function(Ee){switch(Ee.label){case 0:return[4,me];case 1:ye=Ce.apply(void 0,[Ee.sent(),1]),be=ye[0];if(be){return[2,[be,null]]}else{_e=we-1;RoutingConnectionProvider._forgetRouter(pe,R,_e)}return[4,this._createSessionForRediscovery(ve,Ae,he,ge)];case 2:Ie=Ce.apply(void 0,[Ee.sent(),2]),Se=Ie[0],Be=Ie[1];if(!Se)return[3,8];Ee.label=3;case 3:Ee.trys.push([3,5,6,7]);return[4,this._rediscovery.lookupRoutingTableOnRouter(Se,pe.database,ve,he)];case 4:return[2,[Ee.sent(),null]];case 5:ke=Ee.sent();return[2,this._handleRediscoveryError(ke,ve)];case 6:Se.close();return[7];case 7:return[3,9];case 8:return[2,[null,Be]];case 9:return[2]}}))}))}),Promise.resolve([null,null]))]}))}))};RoutingConnectionProvider.prototype._createSessionForRediscovery=function(R,pe,Ae,he){return be(this,void 0,void 0,(function(){var ge,ye,me,ve,be,we;var Ce=this;return Ee(this,(function(Ee){switch(Ee.label){case 0:Ee.trys.push([0,4,,5]);return[4,this._connectionPool.acquire({auth:he},R)];case 1:ge=Ee.sent();if(!he)return[3,3];return[4,this._verifyStickyConnection({auth:he,connection:ge,address:R})];case 2:Ee.sent();Ee.label=3;case 3:ye=Qe.ConnectionErrorHandler.create({errorCode:Te,handleSecurityError:function(R,pe,Ae){return Ce._handleSecurityError(R,pe,Ae)}});me=!ge._sticky?new Qe.DelegateConnection(ge,ye):new Qe.DelegateConnection(ge);ve=new ke.default(me);be=ge.protocol().version;if(be<4){return[2,[new Ie.Session({mode:je,bookmarks:De.empty(),connectionProvider:ve}),null]]}return[2,[new Ie.Session({mode:Me,database:Xe,bookmarks:pe,connectionProvider:ve,impersonatedUser:Ae}),null]];case 4:we=Ee.sent();return[2,this._handleRediscoveryError(we,R)];case 5:return[2]}}))}))};RoutingConnectionProvider.prototype._handleRediscoveryError=function(R,pe){if(_isFailFastError(R)||_isFailFastSecurityError(R)){throw R}else if(R.code===Je){throw(0,Ie.newError)("Server at ".concat(pe.asHostPort()," can't perform routing. Make sure you are connecting to a causal cluster"),Pe,R)}this._log.warn("unable to fetch routing table because of an error ".concat(R));return[null,R]};RoutingConnectionProvider.prototype._applyRoutingTableIfPossible=function(R,pe,Ae){return be(this,void 0,void 0,(function(){return Ee(this,(function(he){switch(he.label){case 0:if(!pe){throw(0,Ie.newError)("Could not perform discovery. No routing servers available. Known routing table: ".concat(R),Pe,Ae)}if(pe.writers.length===0){this._useSeedRouter=true}return[4,this._updateRoutingTable(pe)];case 1:he.sent();return[2,pe]}}))}))};RoutingConnectionProvider.prototype._updateRoutingTable=function(R){return be(this,void 0,void 0,(function(){return Ee(this,(function(pe){switch(pe.label){case 0:return[4,this._connectionPool.keepAll(R.allServers())];case 1:pe.sent();this._routingTableRegistry.removeExpired();this._routingTableRegistry.register(R);this._log.info("Updated routing table ".concat(R));return[2]}}))}))};RoutingConnectionProvider._forgetRouter=function(R,pe,Ae){var he=pe[Ae];if(R&&he){R.forgetRouter(he)}};return RoutingConnectionProvider}(Oe.default);pe["default"]=tt;var rt=function(){function RoutingTableRegistry(R){this._tables=new Map;this._routingTablePurgeDelay=R}RoutingTableRegistry.prototype.register=function(R){this._tables.set(R.database,R);return this};RoutingTableRegistry.prototype.apply=function(R,pe){var Ae=pe===void 0?{}:pe,he=Ae.applyWhenExists,ge=Ae.applyWhenDontExists,ye=ge===void 0?function(){}:ge;if(this._tables.has(R)){he(this._tables.get(R))}else if(typeof R==="string"||R===null){ye()}else{this._forEach(he)}return this};RoutingTableRegistry.prototype.get=function(R,pe){if(this._tables.has(R)){return this._tables.get(R)}return typeof pe==="function"?pe():pe};RoutingTableRegistry.prototype.removeExpired=function(){var R=this;return this._removeIf((function(pe){return pe.isExpiredFor(R._routingTablePurgeDelay)}))};RoutingTableRegistry.prototype._forEach=function(R){var pe,Ae;try{for(var he=we(this._tables),ge=he.next();!ge.done;ge=he.next()){var ye=Ce(ge.value,2),me=ye[1];R(me)}}catch(R){pe={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he.return))Ae.call(he)}finally{if(pe)throw pe.error}}return this};RoutingTableRegistry.prototype._remove=function(R){this._tables.delete(R);return this};RoutingTableRegistry.prototype._removeIf=function(R){var pe,Ae;try{for(var he=we(this._tables),ge=he.next();!ge.done;ge=he.next()){var ye=Ce(ge.value,2),me=ye[0],ve=ye[1];if(R(ve)){this._remove(me)}}}catch(R){pe={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he.return))Ae.call(he)}finally{if(pe)throw pe.error}}return this};return RoutingTableRegistry}();function _isFailFastError(R){return[We,Ve,Ke,Ye,qe,$e,ze].includes(R.code)}function _isFailFastSecurityError(R){return R.code.startsWith("Neo.ClientError.Security.")&&![Ge].includes(R.code)}},59761:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});var ge=Ae(55065);var ye=function(R){he(SingleConnectionProvider,R);function SingleConnectionProvider(pe){var Ae=R.call(this)||this;Ae._connection=pe;return Ae}SingleConnectionProvider.prototype.acquireConnection=function(R){var pe=R===void 0?{}:R,Ae=pe.accessMode,he=pe.database,ge=pe.bookmarks;var ye=this._connection;this._connection=null;return Promise.resolve(ye)};return SingleConnectionProvider}(ge.ConnectionProvider);pe["default"]=ye},73640:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.RoutingConnectionProvider=pe.DirectConnectionProvider=pe.PooledConnectionProvider=pe.SingleConnectionProvider=void 0;var ge=Ae(59761);Object.defineProperty(pe,"SingleConnectionProvider",{enumerable:true,get:function(){return he(ge).default}});var ye=Ae(65390);Object.defineProperty(pe,"PooledConnectionProvider",{enumerable:true,get:function(){return he(ye).default}});var me=Ae(42808);Object.defineProperty(pe,"DirectConnectionProvider",{enumerable:true,get:function(){return he(me).default}});var ve=Ae(2970);Object.defineProperty(pe,"RoutingConnectionProvider",{enumerable:true,get:function(){return he(ve).default}})},26327:function(R,pe){"use strict";var Ae=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var he=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]this._connectionLivenessCheckTimeout))return[3,2];return[4,R.resetAndFlush().then((function(){return true}))];case 1:return[2,Ae.sent()];case 2:return[2,true]}}))}))};Object.defineProperty(LivenessCheckProvider.prototype,"_isCheckDisabled",{get:function(){return this._connectionLivenessCheckTimeout==null||this._connectionLivenessCheckTimeout<0},enumerable:false,configurable:true});LivenessCheckProvider.prototype._isNewlyCreatedConnection=function(R){return R.authToken==null};return LivenessCheckProvider}();pe["default"]=ge},7176:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ye=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0){he._ch.setupReceiveTimeout(ve*1e3)}else{he._log.info("Server located at ".concat(he._address," supplied an invalid connection receive timeout value (").concat(ve,"). ")+"Please, verify the server configuration and status because this can be the symptom of a bigger issue.")}}var Ee=R.hints["telemetry.enabled"];if(Ee===true){he._telemetryDisabledConnection=false}}}ye(ge)}})}))};ChannelConnection.prototype.protocol=function(){return this._protocol};Object.defineProperty(ChannelConnection.prototype,"address",{get:function(){return this._address},enumerable:false,configurable:true});Object.defineProperty(ChannelConnection.prototype,"version",{get:function(){return this._server.version},set:function(R){this._server.version=R},enumerable:false,configurable:true});Object.defineProperty(ChannelConnection.prototype,"server",{get:function(){return this._server},enumerable:false,configurable:true});Object.defineProperty(ChannelConnection.prototype,"logger",{get:function(){return this._log},enumerable:false,configurable:true});ChannelConnection.prototype._handleFatalError=function(R){this._isBroken=true;this._error=this.handleAndTransformError(this._protocol.currentFailure||R,this._address);if(this._log.isErrorEnabled()){this._log.error("experienced a fatal error caused by ".concat(this._error," (").concat(be.json.stringify(this._error),")"))}this._protocol.notifyFatalError(this._error)};ChannelConnection.prototype._setIdle=function(R){this._idle=true;this._ch.stopReceiveTimeout();this._protocol.queueObserverIfProtocolIsNotBroken(R)};ChannelConnection.prototype._unsetIdle=function(){this._idle=false;this._updateCurrentObserver()};ChannelConnection.prototype._queueObserver=function(R){return this._protocol.queueObserverIfProtocolIsNotBroken(R)};ChannelConnection.prototype.hasOngoingObservableRequests=function(){return!this._idle&&this._protocol.hasOngoingObservableRequests()};ChannelConnection.prototype.resetAndFlush=function(){var R=this;return new Promise((function(pe,Ae){R._reset({onError:function(pe){if(R._isBroken){Ae(pe)}else{var he=R._handleProtocolError("Received FAILURE as a response for RESET: "+pe);Ae(he)}},onComplete:function(){pe()}})}))};ChannelConnection.prototype._resetOnFailure=function(){var R=this;if(!this.isOpen()){return}this._reset({onError:function(){R._protocol.resetFailure()},onComplete:function(){R._protocol.resetFailure()}})};ChannelConnection.prototype._reset=function(R){var pe=this;if(this._reseting){if(!this._protocol.isLastMessageReset()){this._protocol.reset({onError:function(pe){R.onError(pe)},onComplete:function(){R.onComplete()}})}else{this._resetObservers.push(R)}return}this._resetObservers.push(R);this._reseting=true;var notifyFinish=function(R){pe._reseting=false;var Ae=pe._resetObservers;pe._resetObservers=[];Ae.forEach(R)};this._protocol.reset({onError:function(R){notifyFinish((function(pe){return pe.onError(R)}))},onComplete:function(){notifyFinish((function(R){return R.onComplete()}))}})};ChannelConnection.prototype._updateCurrentObserver=function(){this._protocol.updateCurrentObserver()};ChannelConnection.prototype.isOpen=function(){return!this._isBroken&&this._ch._open};ChannelConnection.prototype._handleOngoingRequestsNumberChange=function(R){if(this._idle){return}if(R===0){this._ch.stopReceiveTimeout()}else{this._ch.startReceiveTimeout()}};ChannelConnection.prototype.close=function(){return ge(this,void 0,void 0,(function(){return ye(this,(function(R){switch(R.label){case 0:if(this._log.isDebugEnabled()){this._log.debug("closing")}if(this._protocol&&this.isOpen()){this._protocol.prepareToClose()}return[4,this._ch.close()];case 1:R.sent();if(this._log.isDebugEnabled()){this._log.debug("closed")}return[2]}}))}))};ChannelConnection.prototype.toString=function(){return"Connection [".concat(this.id,"][").concat(this.databaseId||"","]")};ChannelConnection.prototype._handleProtocolError=function(R){this._protocol.resetFailure();this._updateCurrentObserver();var pe=(0,be.newError)(R,Ce);this._handleFatalError(pe);return pe};return ChannelConnection}(Ee.default);pe["default"]=Se;function createConnectionLogger(R,pe){return new _e(pe._level,(function(Ae,he){return pe._loggerFunction(Ae,"".concat(R," ").concat(he))}))}},71209:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=ge(Ae(27341));var me=function(R){he(DelegateConnection,R);function DelegateConnection(pe,Ae){var he=R.call(this,Ae)||this;if(Ae){he._originalErrorHandler=pe._errorHandler;pe._errorHandler=he._errorHandler}he._delegate=pe;return he}DelegateConnection.prototype.beginTransaction=function(R){return this._delegate.beginTransaction(R)};DelegateConnection.prototype.run=function(R,pe,Ae){return this._delegate.run(R,pe,Ae)};DelegateConnection.prototype.commitTransaction=function(R){return this._delegate.commitTransaction(R)};DelegateConnection.prototype.rollbackTransaction=function(R){return this._delegate.rollbackTransaction(R)};DelegateConnection.prototype.getProtocolVersion=function(){return this._delegate.getProtocolVersion()};Object.defineProperty(DelegateConnection.prototype,"id",{get:function(){return this._delegate.id},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"databaseId",{get:function(){return this._delegate.databaseId},set:function(R){this._delegate.databaseId=R},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"server",{get:function(){return this._delegate.server},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"authToken",{get:function(){return this._delegate.authToken},set:function(R){this._delegate.authToken=R},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"supportsReAuth",{get:function(){return this._delegate.supportsReAuth},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"address",{get:function(){return this._delegate.address},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"version",{get:function(){return this._delegate.version},set:function(R){this._delegate.version=R},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"creationTimestamp",{get:function(){return this._delegate.creationTimestamp},enumerable:false,configurable:true});Object.defineProperty(DelegateConnection.prototype,"idleTimestamp",{get:function(){return this._delegate.idleTimestamp},set:function(R){this._delegate.idleTimestamp=R},enumerable:false,configurable:true});DelegateConnection.prototype.isOpen=function(){return this._delegate.isOpen()};DelegateConnection.prototype.protocol=function(){return this._delegate.protocol()};DelegateConnection.prototype.connect=function(R,pe,Ae,he){return this._delegate.connect(R,pe,Ae,he)};DelegateConnection.prototype.write=function(R,pe,Ae){return this._delegate.write(R,pe,Ae)};DelegateConnection.prototype.resetAndFlush=function(){return this._delegate.resetAndFlush()};DelegateConnection.prototype.hasOngoingObservableRequests=function(){return this._delegate.hasOngoingObservableRequests()};DelegateConnection.prototype.close=function(){return this._delegate.close()};DelegateConnection.prototype.release=function(){if(this._originalErrorHandler){this._delegate._errorHandler=this._originalErrorHandler}return this._delegate.release()};return DelegateConnection}(ye.default);pe["default"]=me},95902:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(55065);var ge=he.error.SERVICE_UNAVAILABLE,ye=he.error.SESSION_EXPIRED;var me=function(){function ConnectionErrorHandler(R,pe,Ae,he){this._errorCode=R;this._handleUnavailability=pe||noOpHandler;this._handleWriteFailure=Ae||noOpHandler;this._handleSecurityError=he||noOpHandler}ConnectionErrorHandler.create=function(R){var pe=R.errorCode,Ae=R.handleUnavailability,he=R.handleWriteFailure,ge=R.handleSecurityError;return new ConnectionErrorHandler(pe,Ae,he,ge)};ConnectionErrorHandler.prototype.errorCode=function(){return this._errorCode};ConnectionErrorHandler.prototype.handleAndTransformError=function(R,pe,Ae){if(isSecurityError(R)){return this._handleSecurityError(R,pe,Ae)}if(isAvailabilityError(R)){return this._handleUnavailability(R,pe,Ae)}if(isFailureToWrite(R)){return this._handleWriteFailure(R,pe,Ae)}return R};return ConnectionErrorHandler}();pe["default"]=me;function isSecurityError(R){return R!=null&&R.code!=null&&R.code.startsWith("Neo.ClientError.Security.")}function isAvailabilityError(R){if(R){return R.code===ye||R.code===ge||R.code==="Neo.TransientError.General.DatabaseUnavailable"}return false}function isFailureToWrite(R){if(R){return R.code==="Neo.ClientError.Cluster.NotALeader"||R.code==="Neo.ClientError.General.ForbiddenOnReadOnlyDatabase"}return false}function noOpHandler(R){return R}},27341:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});var ge=Ae(86934);var ye=Ae(55065);var me=function(R){he(Connection,R);function Connection(pe){var Ae=R.call(this)||this;Ae._errorHandler=pe;return Ae}Object.defineProperty(Connection.prototype,"id",{get:function(){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"databaseId",{get:function(){throw new Error("not implemented")},set:function(R){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"authToken",{get:function(){throw new Error("not implemented")},set:function(R){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"supportsReAuth",{get:function(){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"creationTimestamp",{get:function(){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"idleTimestamp",{get:function(){throw new Error("not implemented")},set:function(R){throw new Error("not implemented")},enumerable:false,configurable:true});Connection.prototype.protocol=function(){throw new Error("not implemented")};Object.defineProperty(Connection.prototype,"address",{get:function(){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"version",{get:function(){throw new Error("not implemented")},set:function(R){throw new Error("not implemented")},enumerable:false,configurable:true});Object.defineProperty(Connection.prototype,"server",{get:function(){throw new Error("not implemented")},enumerable:false,configurable:true});Connection.prototype.connect=function(R,pe,Ae,he){throw new Error("not implemented")};Connection.prototype.write=function(R,pe,Ae){throw new Error("not implemented")};Connection.prototype.close=function(){throw new Error("not implemented")};Connection.prototype.handleAndTransformError=function(R,pe){if(this._errorHandler){return this._errorHandler.handleAndTransformError(R,pe,this)}return R};return Connection}(ye.Connection);pe["default"]=me},55994:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.createChannelConnection=pe.ConnectionErrorHandler=pe.DelegateConnection=pe.ChannelConnection=pe.Connection=void 0;var ve=me(Ae(27341));pe.Connection=ve.default;var be=ye(Ae(7176));pe.ChannelConnection=be.default;Object.defineProperty(pe,"createChannelConnection",{enumerable:true,get:function(){return be.createChannelConnection}});var Ee=me(Ae(71209));pe.DelegateConnection=Ee.default;var we=me(Ae(95902));pe.ConnectionErrorHandler=we.default;pe["default"]=ve.default},95167:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});pe.pool=pe.packstream=pe.channel=pe.buf=pe.bolt=pe.loadBalancing=void 0;pe.loadBalancing=ye(Ae(30247));pe.bolt=ye(Ae(86934));pe.buf=ye(Ae(35509));pe.channel=ye(Ae(31131));pe.packstream=ye(Ae(32423));pe.pool=ye(Ae(38154));me(Ae(73640),pe)},85625:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.reuseOngoingRequest=pe.identity=void 0;var he=Ae(55065);function identity(R){return R}pe.identity=identity;function reuseOngoingRequest(R,pe){if(pe===void 0){pe=null}var Ae=new Map;return function(){var ge=[];for(var ye=0;ye=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.equals=void 0;function equals(R,pe){var he,ge;if(R===pe){return true}if(R===null||pe===null){return false}if(typeof R==="object"&&typeof pe==="object"){var ye=Object.keys(R);var me=Object.keys(pe);if(ye.length!==me.length){return false}try{for(var ve=Ae(ye),be=ve.next();!be.done;be=ve.next()){var Ee=be.value;if(R[Ee]!==pe[Ee]){return false}}}catch(R){he={error:R}}finally{try{if(be&&!be.done&&(ge=ve.return))ge.call(ve)}finally{if(he)throw he.error}}return true}return false}pe.equals=equals},30247:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.LeastConnectedLoadBalancingStrategy=pe.LoadBalancingStrategy=void 0;var ge=he(Ae(59744));pe.LoadBalancingStrategy=ge.default;var ye=he(Ae(10978));pe.LeastConnectedLoadBalancingStrategy=ye.default;pe["default"]=ye.default},10978:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ye=ge(Ae(64450));var me=ge(Ae(59744));var ve=function(R){he(LeastConnectedLoadBalancingStrategy,R);function LeastConnectedLoadBalancingStrategy(pe){var Ae=R.call(this)||this;Ae._readersIndex=new ye.default;Ae._writersIndex=new ye.default;Ae._connectionPool=pe;return Ae}LeastConnectedLoadBalancingStrategy.prototype.selectReader=function(R){return this._select(R,this._readersIndex)};LeastConnectedLoadBalancingStrategy.prototype.selectWriter=function(R){return this._select(R,this._writersIndex)};LeastConnectedLoadBalancingStrategy.prototype._select=function(R,pe){var Ae=R.length;if(Ae===0){return null}var he=pe.next(Ae);var ge=he;var ye=null;var me=Number.MAX_SAFE_INTEGER;do{var ve=R[ge];var be=this._connectionPool.activeResourceCount(ve);if(be{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function LoadBalancingStrategy(){}LoadBalancingStrategy.prototype.selectReader=function(R){throw new Error("Abstract function")};LoadBalancingStrategy.prototype.selectWriter=function(R){throw new Error("Abstract function")};return LoadBalancingStrategy}();pe["default"]=Ae},64450:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function RoundRobinArrayIndex(R){this._offset=R||0}RoundRobinArrayIndex.prototype.next=function(R){if(R===0){return-1}var pe=this._offset;this._offset+=1;if(this._offset===Number.MAX_SAFE_INTEGER){this._offset=0}return pe%R};return RoundRobinArrayIndex}();pe["default"]=Ae},32423:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.structure=pe.v2=pe.v1=void 0;var me=ye(Ae(69607));pe.v1=me;var ve=ye(Ae(75261));pe.v2=ve;var be=ye(Ae(48466));pe.structure=be;pe["default"]=ve},69607:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Unpacker=pe.Packer=void 0;var he=Ae(31131);var ge=Ae(1059);var ye=Ae(48466);var me=Ae(55065);var ve=me.error.PROTOCOL_ERROR;var be=128;var Ee=144;var we=160;var Ce=176;var _e=192;var Ie=193;var Se=194;var Be=195;var ke=200;var Oe=201;var Re=202;var Qe=203;var xe=208;var Pe=209;var Te=210;var De=212;var Ne=213;var Me=214;var je=204;var Fe=205;var Le=206;var Ue=216;var He=217;var Je=218;var We=220;var Ve=221;var Ke=function(){function Packer(R){this._ch=R;this._byteArraysSupported=true}Packer.prototype.packable=function(R,pe){var Ae=this;if(pe===void 0){pe=ge.functional.identity}try{R=pe(R)}catch(R){return function(){throw R}}if(R===null){return function(){return Ae._ch.writeUInt8(_e)}}else if(R===true){return function(){return Ae._ch.writeUInt8(Be)}}else if(R===false){return function(){return Ae._ch.writeUInt8(Se)}}else if(typeof R==="number"){return function(){return Ae.packFloat(R)}}else if(typeof R==="string"){return function(){return Ae.packString(R)}}else if(typeof R==="bigint"){return function(){return Ae.packInteger((0,me.int)(R))}}else if((0,me.isInt)(R)){return function(){return Ae.packInteger(R)}}else if(R instanceof Int8Array){return function(){return Ae.packBytes(R)}}else if(R instanceof Array){return function(){Ae.packListHeader(R.length);for(var he=0;he>0);this._ch.writeUInt8(Ae%256);this._ch.writeBytes(pe)}else if(Ae<4294967296){this._ch.writeUInt8(Te);this._ch.writeUInt8((Ae/16777216>>0)%256);this._ch.writeUInt8((Ae/65536>>0)%256);this._ch.writeUInt8((Ae/256>>0)%256);this._ch.writeUInt8(Ae%256);this._ch.writeBytes(pe)}else{throw(0,me.newError)("UTF-8 strings of size "+Ae+" are not supported")}};Packer.prototype.packListHeader=function(R){if(R<16){this._ch.writeUInt8(Ee|R)}else if(R<256){this._ch.writeUInt8(De);this._ch.writeUInt8(R)}else if(R<65536){this._ch.writeUInt8(Ne);this._ch.writeUInt8((R/256>>0)%256);this._ch.writeUInt8(R%256)}else if(R<4294967296){this._ch.writeUInt8(Me);this._ch.writeUInt8((R/16777216>>0)%256);this._ch.writeUInt8((R/65536>>0)%256);this._ch.writeUInt8((R/256>>0)%256);this._ch.writeUInt8(R%256)}else{throw(0,me.newError)("Lists of size "+R+" are not supported")}};Packer.prototype.packBytes=function(R){if(this._byteArraysSupported){this.packBytesHeader(R.length);for(var pe=0;pe>0)%256);this._ch.writeUInt8(R%256)}else if(R<4294967296){this._ch.writeUInt8(Le);this._ch.writeUInt8((R/16777216>>0)%256);this._ch.writeUInt8((R/65536>>0)%256);this._ch.writeUInt8((R/256>>0)%256);this._ch.writeUInt8(R%256)}else{throw(0,me.newError)("Byte arrays of size "+R+" are not supported")}};Packer.prototype.packMapHeader=function(R){if(R<16){this._ch.writeUInt8(we|R)}else if(R<256){this._ch.writeUInt8(Ue);this._ch.writeUInt8(R)}else if(R<65536){this._ch.writeUInt8(He);this._ch.writeUInt8(R/256>>0);this._ch.writeUInt8(R%256)}else if(R<4294967296){this._ch.writeUInt8(Je);this._ch.writeUInt8((R/16777216>>0)%256);this._ch.writeUInt8((R/65536>>0)%256);this._ch.writeUInt8((R/256>>0)%256);this._ch.writeUInt8(R%256)}else{throw(0,me.newError)("Maps of size "+R+" are not supported")}};Packer.prototype.packStructHeader=function(R,pe){if(R<16){this._ch.writeUInt8(Ce|R);this._ch.writeUInt8(pe)}else if(R<256){this._ch.writeUInt8(We);this._ch.writeUInt8(R);this._ch.writeUInt8(pe)}else if(R<65536){this._ch.writeUInt8(Ve);this._ch.writeUInt8(R/256>>0);this._ch.writeUInt8(R%256)}else{throw(0,me.newError)("Structures of size "+R+" are not supported")}};Packer.prototype.disableByteArrays=function(){this._byteArraysSupported=false};Packer.prototype._nonPackableValue=function(R){return function(){throw(0,me.newError)(R,ve)}};return Packer}();pe.Packer=Ke;var Ge=function(){function Unpacker(R,pe){if(R===void 0){R=false}if(pe===void 0){pe=false}this._disableLosslessIntegers=R;this._useBigInt=pe}Unpacker.prototype.unpack=function(R,pe){if(pe===void 0){pe=ge.functional.identity}var Ae=R.readUInt8();var he=Ae&240;var ye=Ae&15;if(Ae===_e){return null}var ve=this._unpackBoolean(Ae);if(ve!==null){return ve}var be=this._unpackNumberOrInteger(Ae,R);if(be!==null){if((0,me.isInt)(be)){if(this._useBigInt){return be.toBigInt()}else if(this._disableLosslessIntegers){return be.toNumberOrInfinity()}}return be}var Ee=this._unpackString(Ae,he,ye,R);if(Ee!==null){return Ee}var we=this._unpackList(Ae,he,ye,R,pe);if(we!==null){return we}var Ce=this._unpackByteArray(Ae,R);if(Ce!==null){return Ce}var Ie=this._unpackMap(Ae,he,ye,R,pe);if(Ie!==null){return Ie}var Se=this._unpackStruct(Ae,he,ye,R,pe);if(Se!==null){return Se}throw(0,me.newError)("Unknown packed value with marker "+Ae.toString(16))};Unpacker.prototype.unpackInteger=function(R){var pe=R.readUInt8();var Ae=this._unpackInteger(pe,R);if(Ae==null){throw(0,me.newError)("Unable to unpack integer value with marker "+pe.toString(16))}return Ae};Unpacker.prototype._unpackBoolean=function(R){if(R===Be){return true}else if(R===Se){return false}else{return null}};Unpacker.prototype._unpackNumberOrInteger=function(R,pe){if(R===Ie){return pe.readFloat64()}else{return this._unpackInteger(R,pe)}};Unpacker.prototype._unpackInteger=function(R,pe){if(R>=0&&R<128){return(0,me.int)(R)}else if(R>=240&&R<256){return(0,me.int)(R-256)}else if(R===ke){return(0,me.int)(pe.readInt8())}else if(R===Oe){return(0,me.int)(pe.readInt16())}else if(R===Re){var Ae=pe.readInt32();return(0,me.int)(Ae)}else if(R===Qe){var he=pe.readInt32();var ge=pe.readInt32();return new me.Integer(ge,he)}else{return null}};Unpacker.prototype._unpackString=function(R,pe,Ae,ge){if(pe===be){return he.utf8.decode(ge,Ae)}else if(R===xe){return he.utf8.decode(ge,ge.readUInt8())}else if(R===Pe){return he.utf8.decode(ge,ge.readUInt16())}else if(R===Te){return he.utf8.decode(ge,ge.readUInt32())}else{return null}};Unpacker.prototype._unpackList=function(R,pe,Ae,he,ge){if(pe===Ee){return this._unpackListWithSize(Ae,he,ge)}else if(R===De){return this._unpackListWithSize(he.readUInt8(),he,ge)}else if(R===Ne){return this._unpackListWithSize(he.readUInt16(),he,ge)}else if(R===Me){return this._unpackListWithSize(he.readUInt32(),he,ge)}else{return null}};Unpacker.prototype._unpackListWithSize=function(R,pe,Ae){var he=[];for(var ge=0;ge{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.verifyStructSize=pe.Structure=void 0;var he=Ae(55065);var ge=he.error.PROTOCOL_ERROR;var ye=function(){function Structure(R,pe){this.signature=R;this.fields=pe}Object.defineProperty(Structure.prototype,"size",{get:function(){return this.fields.length},enumerable:false,configurable:true});Structure.prototype.toString=function(){var R="";for(var pe=0;pe0){R+=", "}R+=this.fields[pe]}return"Structure("+this.signature+", ["+R+"])"};return Structure}();pe.Structure=ye;function verifyStructSize(R,pe,Ae){if(pe!==Ae){throw(0,he.newError)("Wrong struct size for ".concat(R,", expected ").concat(pe," but was ").concat(Ae),ge)}}pe.verifyStructSize=verifyStructSize;pe["default"]=ye},38154:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.DEFAULT_MAX_SIZE=pe.DEFAULT_ACQUISITION_TIMEOUT=pe.PoolConfig=pe.Pool=void 0;var ve=ye(Ae(3838));pe.PoolConfig=ve.default;Object.defineProperty(pe,"DEFAULT_ACQUISITION_TIMEOUT",{enumerable:true,get:function(){return ve.DEFAULT_ACQUISITION_TIMEOUT}});Object.defineProperty(pe,"DEFAULT_MAX_SIZE",{enumerable:true,get:function(){return ve.DEFAULT_MAX_SIZE}});var be=me(Ae(64736));pe.Pool=be.default;pe["default"]=be.default},3838:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.DEFAULT_ACQUISITION_TIMEOUT=pe.DEFAULT_MAX_SIZE=void 0;var Ae=100;pe.DEFAULT_MAX_SIZE=Ae;var he=60*1e3;pe.DEFAULT_ACQUISITION_TIMEOUT=he;var ge=function(){function PoolConfig(R,pe){this.maxSize=valueOrDefault(R,Ae);this.acquisitionTimeout=valueOrDefault(pe,he)}PoolConfig.defaultConfig=function(){return new PoolConfig(Ae,he)};PoolConfig.fromDriverConfig=function(R){var pe=isConfigured(R.maxConnectionPoolSize);var ge=pe?R.maxConnectionPoolSize:Ae;var ye=isConfigured(R.connectionAcquisitionTimeout);var me=ye?R.connectionAcquisitionTimeout:he;return new PoolConfig(ge,me)};return PoolConfig}();pe["default"]=ge;function valueOrDefault(R,pe){return R===0||R?R:pe}function isConfigured(R){return R===0||R}},64736:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0){be=this.activeResourceCount(pe)+this._pendingCreates[he];if(be>=this._maxSize){return[2,{resource:null,pool:ye}]}}this._pendingCreates[he]=this._pendingCreates[he]+1;ge.label=7;case 7:ge.trys.push([7,,11,12]);be=this.activeResourceCount(pe)+ye.length;if(!(be>=this._maxSize&&Ae))return[3,9];we=ye.pop();if(this._removeIdleObserver){this._removeIdleObserver(we)}ye.removeInUse(we);return[4,this._destroy(we)];case 8:ge.sent();ge.label=9;case 9:return[4,this._create(R,pe,(function(R,pe){return Ce._release(R,pe,ye)}))];case 10:Ee=ge.sent();ye.pushInUse(Ee);resourceAcquired(he,this._activeResourceCounts);if(this._log.isDebugEnabled()){this._log.debug("".concat(Ee," created for the pool ").concat(he))}return[3,12];case 11:this._pendingCreates[he]=this._pendingCreates[he]-1;return[7];case 12:return[2,{resource:Ee,pool:ye}]}}))}))};Pool.prototype._release=function(R,pe,Ae){return he(this,void 0,void 0,(function(){var he;var ye=this;return ge(this,(function(ge){switch(ge.label){case 0:he=R.asKey();ge.label=1;case 1:ge.trys.push([1,,9,10]);if(!Ae.isActive())return[3,6];return[4,this._validateOnRelease(pe)];case 2:if(!!ge.sent())return[3,4];if(this._log.isDebugEnabled()){this._log.debug("".concat(pe," destroyed and can't be released to the pool ").concat(he," because it is not functional"))}Ae.removeInUse(pe);return[4,this._destroy(pe)];case 3:ge.sent();return[3,5];case 4:if(this._installIdleObserver){this._installIdleObserver(pe,{onError:function(R){ye._log.debug("Idle connection ".concat(pe," destroyed because of error: ").concat(R));var Ae=ye._pools[he];if(Ae){ye._pools[he]=Ae.filter((function(R){return R!==pe}));Ae.removeInUse(pe)}ye._destroy(pe).catch((function(){}))}})}Ae.push(pe);if(this._log.isDebugEnabled()){this._log.debug("".concat(pe," released to the pool ").concat(he))}ge.label=5;case 5:return[3,8];case 6:if(this._log.isDebugEnabled()){this._log.debug("".concat(pe," destroyed and can't be released to the pool ").concat(he," because pool has been purged"))}Ae.removeInUse(pe);return[4,this._destroy(pe)];case 7:ge.sent();ge.label=8;case 8:return[3,10];case 9:resourceReleased(he,this._activeResourceCounts);this._processPendingAcquireRequests(R);return[7];case 10:return[2]}}))}))};Pool.prototype._purgeKey=function(R){return he(this,void 0,void 0,(function(){var pe,Ae,he;return ge(this,(function(ge){switch(ge.label){case 0:pe=this._pools[R];Ae=[];if(!pe)return[3,2];while(pe.length){he=pe.pop();if(this._removeIdleObserver){this._removeIdleObserver(he)}Ae.push(this._destroy(he))}pe.close();delete this._pools[R];return[4,Promise.all(Ae)];case 1:ge.sent();ge.label=2;case 2:return[2]}}))}))};Pool.prototype._processPendingAcquireRequests=function(R){var pe=this;var Ae=R.asKey();var he=this._acquireRequests[Ae];if(he){var ge=he.shift();if(ge){this._acquire(ge.context,R,ge.requireNew).catch((function(R){ge.reject(R);return{resource:null}})).then((function(he){var ye=he.resource,me=he.pool;if(ye){if(ge.isCompleted()){pe._release(R,ye,me)}else{ge.resolve(ye)}}else{if(!ge.isCompleted()){if(!pe._acquireRequests[Ae]){pe._acquireRequests[Ae]=[]}pe._acquireRequests[Ae].unshift(ge)}}}))}else{delete this._acquireRequests[Ae]}}};return Pool}();function resourceAcquired(R,pe){var Ae=pe[R]||0;pe[R]=Ae+1}function resourceReleased(R,pe){var Ae=pe[R]||0;var he=Ae-1;if(he>0){pe[R]=he}else{delete pe[R]}}var we=function(){function PendingRequest(R,pe,Ae,he,ge,ye,me){this._key=R;this._context=pe;this._resolve=he;this._reject=ge;this._timeoutId=ye;this._log=me;this._completed=false;this._config=Ae||{}}Object.defineProperty(PendingRequest.prototype,"context",{get:function(){return this._context},enumerable:false,configurable:true});Object.defineProperty(PendingRequest.prototype,"requireNew",{get:function(){return this._config.requireNew||false},enumerable:false,configurable:true});PendingRequest.prototype.isCompleted=function(){return this._completed};PendingRequest.prototype.resolve=function(R){if(this._completed){return}this._completed=true;clearTimeout(this._timeoutId);if(this._log.isDebugEnabled()){this._log.debug("".concat(R," acquired from the pool ").concat(this._key))}this._resolve(R)};PendingRequest.prototype.reject=function(R){if(this._completed){return}this._completed=true;clearTimeout(this._timeoutId);this._reject(R)};return PendingRequest}();var Ce=function(){function SingleAddressPool(){this._active=true;this._elements=[];this._elementsInUse=new Set}SingleAddressPool.prototype.isActive=function(){return this._active};SingleAddressPool.prototype.close=function(){this._active=false;this._elements=[];this._elementsInUse=new Set};SingleAddressPool.prototype.filter=function(R){this._elements=this._elements.filter(R);return this};SingleAddressPool.prototype.apply=function(R){this._elements.forEach(R);this._elementsInUse.forEach(R)};Object.defineProperty(SingleAddressPool.prototype,"length",{get:function(){return this._elements.length},enumerable:false,configurable:true});SingleAddressPool.prototype.pop=function(){var R=this._elements.pop();this._elementsInUse.add(R);return R};SingleAddressPool.prototype.push=function(R){this._elementsInUse.delete(R);return this._elements.push(R)};SingleAddressPool.prototype.pushInUse=function(R){this._elementsInUse.add(R)};SingleAddressPool.prototype.removeInUse=function(R){this._elementsInUse.delete(R)};return SingleAddressPool}();pe["default"]=Ee},47845:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.RoutingTable=pe.Rediscovery=void 0;var ge=he(Ae(73159));pe.Rediscovery=ge.default;var ye=he(Ae(36478));pe.RoutingTable=ye.default;pe["default"]=ge.default},73159:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});var ge=he(Ae(36478));var ye=Ae(55065);var me=function(){function Rediscovery(R){this._routingContext=R}Rediscovery.prototype.lookupRoutingTableOnRouter=function(R,pe,Ae,he){var ye=this;return R._acquireConnection((function(me){return ye._requestRawRoutingTable(me,R,pe,Ae,he).then((function(R){if(R.isNull){return null}return ge.default.fromRawRoutingTable(pe,Ae,R)}))}))};Rediscovery.prototype._requestRawRoutingTable=function(R,pe,Ae,he,ge){var ye=this;return new Promise((function(he,me){R.protocol().requestRoutingInformation({routingContext:ye._routingContext,databaseName:Ae,impersonatedUser:ge,sessionContext:{bookmarks:pe._lastBookmarks,mode:pe._mode,database:pe._database,afterComplete:pe._onComplete},onCompleted:he,onError:me})}))};return Rediscovery}();pe["default"]=me},36478:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;he0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae={basic:function(R,pe,Ae){if(Ae!=null){return{scheme:"basic",principal:R,credentials:pe,realm:Ae}}else{return{scheme:"basic",principal:R,credentials:pe}}},kerberos:function(R){return{scheme:"kerberos",principal:"",credentials:R}},bearer:function(R){return{scheme:"bearer",credentials:R}},none:function(){return{scheme:"none"}},custom:function(R,pe,Ae,he,ge){var ye={scheme:he,principal:R};if(isNotEmpty(pe)){ye.credentials=pe}if(isNotEmpty(Ae)){ye.realm=Ae}if(isNotEmpty(ge)){ye.parameters=ge}return ye}};function isNotEmpty(R){return!(R===null||R===undefined||R===""||Object.getPrototypeOf(R)===Object.prototype&&Object.keys(R).length===0)}pe["default"]=Ae},81445:function(R,pe){"use strict";var Ae=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var he=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};var ye=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var me=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;he0)&&R.filter(pe).length===R.length}function isStringOrNotPresent(R,pe){return!(R in pe)||pe[R]==null||typeof pe[R]==="string"}var Se=function(){function InternalRotatingClientCertificateProvider(R,pe){if(pe===void 0){pe=false}this._certificate=R;this._updated=pe}InternalRotatingClientCertificateProvider.prototype.hasUpdate=function(){try{return this._updated}finally{this._updated=false}};InternalRotatingClientCertificateProvider.prototype.getClientCertificate=function(){return this._certificate};InternalRotatingClientCertificateProvider.prototype.updateCertificate=function(R){if(!isClientClientCertificate(R)){throw new TypeError("certificate should be ClientCertificate, but got ".concat(be.stringify(R)))}this._certificate=ge({},R);this._updated=true};return InternalRotatingClientCertificateProvider}()},50651:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Releasable=void 0;var Ae=function(){function Releasable(){}Releasable.prototype.release=function(){throw new Error("Not implemented")};return Releasable}();pe.Releasable=Ae;var he=function(){function ConnectionProvider(){}ConnectionProvider.prototype.acquireConnection=function(R){throw Error("Not implemented")};ConnectionProvider.prototype.supportsMultiDb=function(){throw Error("Not implemented")};ConnectionProvider.prototype.supportsTransactionConfig=function(){throw Error("Not implemented")};ConnectionProvider.prototype.supportsUserImpersonation=function(){throw Error("Not implemented")};ConnectionProvider.prototype.supportsSessionAuth=function(){throw Error("Not implemented")};ConnectionProvider.prototype.verifyConnectivityAndGetServerInfo=function(R){throw Error("Not implemented")};ConnectionProvider.prototype.verifyAuthentication=function(R){throw Error("Not implemented")};ConnectionProvider.prototype.getNegotiatedProtocolVersion=function(){throw Error("Not Implemented")};ConnectionProvider.prototype.close=function(){throw Error("Not implemented")};return ConnectionProvider}();pe["default"]=he},10985:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function Connection(){}Connection.prototype.beginTransaction=function(R){throw new Error("Not implemented")};Connection.prototype.run=function(R,pe,Ae){throw new Error("Not implemented")};Connection.prototype.commitTransaction=function(R){throw new Error("Not implemented")};Connection.prototype.rollbackTransaction=function(R){throw new Error("Not implemented")};Connection.prototype.resetAndFlush=function(){throw new Error("Not implemented")};Connection.prototype.isOpen=function(){throw new Error("Not implemented")};Connection.prototype.getProtocolVersion=function(){throw new Error("Not implemented")};Connection.prototype.hasOngoingObservableRequests=function(){throw new Error("Not implemented")};return Connection}();pe["default"]=Ae},92148:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0||Ae===0){return Ae}else if(Ae<0){return Number.MAX_SAFE_INTEGER}else{return pe}}function validateFetchSizeValue(R,pe){var Ae=parseInt(R,10);if(Ae>0||Ae===be.FETCH_ALL){return Ae}else if(Ae===0||Ae<0){throw new Error("The fetch size can only be a positive value or ".concat(be.FETCH_ALL," for ALL. However fetchSize = ").concat(Ae))}else{return pe}}function extractConnectionTimeout(R){var pe=parseInt(R.connectionTimeout,10);if(pe===0){return null}else if(!isNaN(pe)&&pe<0){return null}else if(isNaN(pe)){return be.DEFAULT_CONNECTION_TIMEOUT_MILLIS}else{return pe}}function validateConnectionLivenessCheckTimeoutSizeValue(R){if(R==null){return undefined}var pe=parseInt(R,10);if(pe<0||Number.isNaN(pe)){throw new Error("The connectionLivenessCheckTimeout can only be a positive value or 0 for always. However connectionLivenessCheckTimeout = ".concat(pe))}return pe}function createHostNameResolver(R){return new ve.default(R.resolver)}pe["default"]=je},5542:function(R,pe){"use strict";var Ae=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.PROTOCOL_ERROR=pe.SESSION_EXPIRED=pe.SERVICE_UNAVAILABLE=pe.Neo4jError=pe.isRetriableError=pe.newError=void 0;var he="ServiceUnavailable";pe.SERVICE_UNAVAILABLE=he;var ge="SessionExpired";pe.SESSION_EXPIRED=ge;var ye="ProtocolError";pe.PROTOCOL_ERROR=ye;var me="N/A";var ve=function(R){Ae(Neo4jError,R);function Neo4jError(pe,Ae,he){var ge=R.call(this,pe,he!=null?{cause:he}:undefined)||this;ge.constructor=Neo4jError;ge.__proto__=Neo4jError.prototype;ge.code=Ae;ge.name="Neo4jError";ge.retriable=_isRetriableCode(Ae);return ge}Neo4jError.isRetriable=function(R){return R!==null&&R!==undefined&&R instanceof Neo4jError&&R.retriable};return Neo4jError}(Error);pe.Neo4jError=ve;function newError(R,pe,Ae){return new ve(R,pe!==null&&pe!==void 0?pe:me,Ae)}pe.newError=newError;var be=ve.isRetriable;pe.isRetriableError=be;function _isRetriableCode(R){return R===he||R===ge||_isAuthorizationExpired(R)||_isTransientError(R)}function _isTransientError(R){return(R===null||R===void 0?void 0:R.includes("TransientError"))===true}function _isAuthorizationExpired(R){return R==="Neo.ClientError.Security.AuthorizationExpired"}},86847:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isPathSegment=pe.PathSegment=pe.isPath=pe.Path=pe.isUnboundRelationship=pe.UnboundRelationship=pe.isRelationship=pe.Relationship=pe.isNode=pe.Node=void 0;var he=Ae(86322);var ge={value:true,enumerable:false,configurable:false,writable:false};var ye="__isNode__";var me="__isRelationship__";var ve="__isUnboundRelationship__";var be="__isPath__";var Ee="__isPathSegment__";function hasIdentifierProperty(R,pe){return R!=null&&R[pe]===true}var we=function(){function Node(R,pe,Ae,he){this.identity=R;this.labels=pe;this.properties=Ae;this.elementId=_valueOrGetDefault(he,(function(){return R.toString()}))}Node.prototype.toString=function(){var R="("+this.elementId;for(var pe=0;pe0){R+=" {";for(var pe=0;pe0)R+=",";R+=Ae[pe]+":"+(0,he.stringify)(this.properties[Ae[pe]])}R+="}"}R+=")";return R};return Node}();pe.Node=we;Object.defineProperty(we.prototype,ye,ge);function isNode(R){return hasIdentifierProperty(R,ye)}pe.isNode=isNode;var Ce=function(){function Relationship(R,pe,Ae,he,ge,ye,me,ve){this.identity=R;this.start=pe;this.end=Ae;this.type=he;this.properties=ge;this.elementId=_valueOrGetDefault(ye,(function(){return R.toString()}));this.startNodeElementId=_valueOrGetDefault(me,(function(){return pe.toString()}));this.endNodeElementId=_valueOrGetDefault(ve,(function(){return Ae.toString()}))}Relationship.prototype.toString=function(){var R="("+this.startNodeElementId+")-[:"+this.type;var pe=Object.keys(this.properties);if(pe.length>0){R+=" {";for(var Ae=0;Ae0)R+=",";R+=pe[Ae]+":"+(0,he.stringify)(this.properties[pe[Ae]])}R+="}"}R+="]->("+this.endNodeElementId+")";return R};return Relationship}();pe.Relationship=Ce;Object.defineProperty(Ce.prototype,me,ge);function isRelationship(R){return hasIdentifierProperty(R,me)}pe.isRelationship=isRelationship;var _e=function(){function UnboundRelationship(R,pe,Ae,he){this.identity=R;this.type=pe;this.properties=Ae;this.elementId=_valueOrGetDefault(he,(function(){return R.toString()}))}UnboundRelationship.prototype.bind=function(R,pe){return new Ce(this.identity,R,pe,this.type,this.properties,this.elementId)};UnboundRelationship.prototype.bindTo=function(R,pe){return new Ce(this.identity,R.identity,pe.identity,this.type,this.properties,this.elementId,R.elementId,pe.elementId)};UnboundRelationship.prototype.toString=function(){var R="-[:"+this.type;var pe=Object.keys(this.properties);if(pe.length>0){R+=" {";for(var Ae=0;Ae0)R+=",";R+=pe[Ae]+":"+(0,he.stringify)(this.properties[pe[Ae]])}R+="}"}R+="]->";return R};return UnboundRelationship}();pe.UnboundRelationship=_e;Object.defineProperty(_e.prototype,ve,ge);function isUnboundRelationship(R){return hasIdentifierProperty(R,ve)}pe.isUnboundRelationship=isUnboundRelationship;var Ie=function(){function PathSegment(R,pe,Ae){this.start=R;this.relationship=pe;this.end=Ae}return PathSegment}();pe.PathSegment=Ie;Object.defineProperty(Ie.prototype,Ee,ge);function isPathSegment(R){return hasIdentifierProperty(R,Ee)}pe.isPathSegment=isPathSegment;var Se=function(){function Path(R,pe,Ae){this.start=R;this.end=pe;this.segments=Ae;this.length=Ae.length}return Path}();pe.Path=Se;Object.defineProperty(Se.prototype,be,ge);function isPath(R){return hasIdentifierProperty(R,be)}pe.isPath=isPath;function _valueOrGetDefault(R,pe){return R===undefined||R===null?pe():R}},55065:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.Releasable=pe.ConnectionProvider=pe.EagerResult=pe.Result=pe.Stats=pe.QueryStatistics=pe.ProfiledPlan=pe.Plan=pe.GqlStatusObject=pe.Notification=pe.ServerInfo=pe.queryType=pe.ResultSummary=pe.Record=pe.isPathSegment=pe.PathSegment=pe.isPath=pe.Path=pe.isUnboundRelationship=pe.UnboundRelationship=pe.isRelationship=pe.Relationship=pe.isNode=pe.Node=pe.Time=pe.LocalTime=pe.LocalDateTime=pe.isTime=pe.isLocalTime=pe.isLocalDateTime=pe.isDuration=pe.isDateTime=pe.isDate=pe.Duration=pe.DateTime=pe.Date=pe.Point=pe.isPoint=pe.internal=pe.toString=pe.toNumber=pe.inSafeRange=pe.isInt=pe.int=pe.Integer=pe.error=pe.isRetriableError=pe.Neo4jError=pe.newError=pe.authTokenManagers=void 0;pe.resolveCertificateProvider=pe.clientCertificateProviders=pe.notificationFilterMinimumSeverityLevel=pe.notificationFilterDisabledClassification=pe.notificationFilterDisabledCategory=pe.notificationSeverityLevel=pe.notificationClassification=pe.notificationCategory=pe.resultTransformers=pe.routing=pe.staticAuthTokenManager=pe.bookmarkManager=pe.auth=pe.json=pe.driver=pe.types=pe.Driver=pe.Session=pe.TransactionPromise=pe.ManagedTransaction=pe.Transaction=pe.Connection=void 0;var ve=Ae(5542);Object.defineProperty(pe,"newError",{enumerable:true,get:function(){return ve.newError}});Object.defineProperty(pe,"Neo4jError",{enumerable:true,get:function(){return ve.Neo4jError}});Object.defineProperty(pe,"isRetriableError",{enumerable:true,get:function(){return ve.isRetriableError}});var be=ye(Ae(6049));pe.Integer=be.default;Object.defineProperty(pe,"int",{enumerable:true,get:function(){return be.int}});Object.defineProperty(pe,"isInt",{enumerable:true,get:function(){return be.isInt}});Object.defineProperty(pe,"inSafeRange",{enumerable:true,get:function(){return be.inSafeRange}});Object.defineProperty(pe,"toNumber",{enumerable:true,get:function(){return be.toNumber}});Object.defineProperty(pe,"toString",{enumerable:true,get:function(){return be.toString}});var Ee=Ae(45797);Object.defineProperty(pe,"Date",{enumerable:true,get:function(){return Ee.Date}});Object.defineProperty(pe,"DateTime",{enumerable:true,get:function(){return Ee.DateTime}});Object.defineProperty(pe,"Duration",{enumerable:true,get:function(){return Ee.Duration}});Object.defineProperty(pe,"isDate",{enumerable:true,get:function(){return Ee.isDate}});Object.defineProperty(pe,"isDateTime",{enumerable:true,get:function(){return Ee.isDateTime}});Object.defineProperty(pe,"isDuration",{enumerable:true,get:function(){return Ee.isDuration}});Object.defineProperty(pe,"isLocalDateTime",{enumerable:true,get:function(){return Ee.isLocalDateTime}});Object.defineProperty(pe,"isLocalTime",{enumerable:true,get:function(){return Ee.isLocalTime}});Object.defineProperty(pe,"isTime",{enumerable:true,get:function(){return Ee.isTime}});Object.defineProperty(pe,"LocalDateTime",{enumerable:true,get:function(){return Ee.LocalDateTime}});Object.defineProperty(pe,"LocalTime",{enumerable:true,get:function(){return Ee.LocalTime}});Object.defineProperty(pe,"Time",{enumerable:true,get:function(){return Ee.Time}});var we=Ae(86847);Object.defineProperty(pe,"Node",{enumerable:true,get:function(){return we.Node}});Object.defineProperty(pe,"isNode",{enumerable:true,get:function(){return we.isNode}});Object.defineProperty(pe,"Relationship",{enumerable:true,get:function(){return we.Relationship}});Object.defineProperty(pe,"isRelationship",{enumerable:true,get:function(){return we.isRelationship}});Object.defineProperty(pe,"UnboundRelationship",{enumerable:true,get:function(){return we.UnboundRelationship}});Object.defineProperty(pe,"isUnboundRelationship",{enumerable:true,get:function(){return we.isUnboundRelationship}});Object.defineProperty(pe,"Path",{enumerable:true,get:function(){return we.Path}});Object.defineProperty(pe,"isPath",{enumerable:true,get:function(){return we.isPath}});Object.defineProperty(pe,"PathSegment",{enumerable:true,get:function(){return we.PathSegment}});Object.defineProperty(pe,"isPathSegment",{enumerable:true,get:function(){return we.isPathSegment}});var Ce=me(Ae(62918));pe.Record=Ce.default;var _e=Ae(66364);Object.defineProperty(pe,"isPoint",{enumerable:true,get:function(){return _e.isPoint}});Object.defineProperty(pe,"Point",{enumerable:true,get:function(){return _e.Point}});var Ie=ye(Ae(1381));pe.ResultSummary=Ie.default;Object.defineProperty(pe,"queryType",{enumerable:true,get:function(){return Ie.queryType}});Object.defineProperty(pe,"ServerInfo",{enumerable:true,get:function(){return Ie.ServerInfo}});Object.defineProperty(pe,"Plan",{enumerable:true,get:function(){return Ie.Plan}});Object.defineProperty(pe,"ProfiledPlan",{enumerable:true,get:function(){return Ie.ProfiledPlan}});Object.defineProperty(pe,"QueryStatistics",{enumerable:true,get:function(){return Ie.QueryStatistics}});Object.defineProperty(pe,"Stats",{enumerable:true,get:function(){return Ie.Stats}});var Se=ye(Ae(64777));pe.Notification=Se.default;Object.defineProperty(pe,"GqlStatusObject",{enumerable:true,get:function(){return Se.GqlStatusObject}});Object.defineProperty(pe,"notificationCategory",{enumerable:true,get:function(){return Se.notificationCategory}});Object.defineProperty(pe,"notificationClassification",{enumerable:true,get:function(){return Se.notificationClassification}});Object.defineProperty(pe,"notificationSeverityLevel",{enumerable:true,get:function(){return Se.notificationSeverityLevel}});var Be=Ae(66007);Object.defineProperty(pe,"notificationFilterDisabledCategory",{enumerable:true,get:function(){return Be.notificationFilterDisabledCategory}});Object.defineProperty(pe,"notificationFilterDisabledClassification",{enumerable:true,get:function(){return Be.notificationFilterDisabledClassification}});Object.defineProperty(pe,"notificationFilterMinimumSeverityLevel",{enumerable:true,get:function(){return Be.notificationFilterMinimumSeverityLevel}});var ke=me(Ae(58536));pe.Result=ke.default;var Oe=me(Ae(6391));pe.EagerResult=Oe.default;var Re=ye(Ae(50651));pe.ConnectionProvider=Re.default;Object.defineProperty(pe,"Releasable",{enumerable:true,get:function(){return Re.Releasable}});var Qe=me(Ae(10985));pe.Connection=Qe.default;var xe=me(Ae(32241));pe.Transaction=xe.default;var Pe=me(Ae(93169));pe.ManagedTransaction=Pe.default;var Te=me(Ae(37269));pe.TransactionPromise=Te.default;var De=me(Ae(55739));pe.Session=De.default;var Ne=ye(Ae(92148)),Me=Ne;pe.Driver=Ne.default;pe.driver=Me;var je=me(Ae(8841));pe.auth=je.default;var Fe=Ae(81445);Object.defineProperty(pe,"bookmarkManager",{enumerable:true,get:function(){return Fe.bookmarkManager}});var Le=Ae(57432);Object.defineProperty(pe,"authTokenManagers",{enumerable:true,get:function(){return Le.authTokenManagers}});Object.defineProperty(pe,"staticAuthTokenManager",{enumerable:true,get:function(){return Le.staticAuthTokenManager}});var Ue=Ae(92148);Object.defineProperty(pe,"routing",{enumerable:true,get:function(){return Ue.routing}});var He=ye(Ae(47558));pe.types=He;var Je=ye(Ae(86322));pe.json=Je;var We=me(Ae(36584));pe.resultTransformers=We.default;var Ve=Ae(65177);Object.defineProperty(pe,"clientCertificateProviders",{enumerable:true,get:function(){return Ve.clientCertificateProviders}});Object.defineProperty(pe,"resolveCertificateProvider",{enumerable:true,get:function(){return Ve.resolveCertificateProvider}});var Ke=ye(Ae(9318));pe.internal=Ke;var Ge={SERVICE_UNAVAILABLE:ve.SERVICE_UNAVAILABLE,SESSION_EXPIRED:ve.SESSION_EXPIRED,PROTOCOL_ERROR:ve.PROTOCOL_ERROR};pe.error=Ge;var Ye={authTokenManagers:Le.authTokenManagers,newError:ve.newError,Neo4jError:ve.Neo4jError,isRetriableError:ve.isRetriableError,error:Ge,Integer:be.default,int:be.int,isInt:be.isInt,inSafeRange:be.inSafeRange,toNumber:be.toNumber,toString:be.toString,internal:Ke,isPoint:_e.isPoint,Point:_e.Point,Date:Ee.Date,DateTime:Ee.DateTime,Duration:Ee.Duration,isDate:Ee.isDate,isDateTime:Ee.isDateTime,isDuration:Ee.isDuration,isLocalDateTime:Ee.isLocalDateTime,isLocalTime:Ee.isLocalTime,isTime:Ee.isTime,LocalDateTime:Ee.LocalDateTime,LocalTime:Ee.LocalTime,Time:Ee.Time,Node:we.Node,isNode:we.isNode,Relationship:we.Relationship,isRelationship:we.isRelationship,UnboundRelationship:we.UnboundRelationship,isUnboundRelationship:we.isUnboundRelationship,Path:we.Path,isPath:we.isPath,PathSegment:we.PathSegment,isPathSegment:we.isPathSegment,Record:Ce.default,ResultSummary:Ie.default,queryType:Ie.queryType,ServerInfo:Ie.ServerInfo,Notification:Se.default,GqlStatusObject:Se.GqlStatusObject,Plan:Ie.Plan,ProfiledPlan:Ie.ProfiledPlan,QueryStatistics:Ie.QueryStatistics,Stats:Ie.Stats,Result:ke.default,EagerResult:Oe.default,Transaction:xe.default,ManagedTransaction:Pe.default,TransactionPromise:Te.default,Session:De.default,Driver:Ne.default,Connection:Qe.default,Releasable:Re.Releasable,types:He,driver:Me,json:Je,auth:je.default,bookmarkManager:Fe.bookmarkManager,routing:Ue.routing,resultTransformers:We.default,notificationCategory:Se.notificationCategory,notificationClassification:Se.notificationClassification,notificationSeverityLevel:Se.notificationSeverityLevel,notificationFilterDisabledCategory:Be.notificationFilterDisabledCategory,notificationFilterDisabledClassification:Be.notificationFilterDisabledClassification,notificationFilterMinimumSeverityLevel:Be.notificationFilterMinimumSeverityLevel,clientCertificateProviders:Ve.clientCertificateProviders,resolveCertificateProvider:Ve.resolveCertificateProvider};pe["default"]=Ye},6049:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.toString=pe.toNumber=pe.inSafeRange=pe.isInt=pe.int=void 0;var he=Ae(5542);var ge=new Map;var ye=function(){function Integer(R,pe){this.low=R!==null&&R!==void 0?R:0;this.high=pe!==null&&pe!==void 0?pe:0}Integer.prototype.inSafeRange=function(){return this.greaterThanOrEqual(Integer.MIN_SAFE_VALUE)&&this.lessThanOrEqual(Integer.MAX_SAFE_VALUE)};Integer.prototype.toInt=function(){return this.low};Integer.prototype.toNumber=function(){return this.high*be+(this.low>>>0)};Integer.prototype.toBigInt=function(){if(this.isZero()){return BigInt(0)}else if(this.isPositive()){return BigInt(this.high>>>0)*BigInt(be)+BigInt(this.low>>>0)}else{var R=this.negate();return BigInt(-1)*(BigInt(R.high>>>0)*BigInt(be)+BigInt(R.low>>>0))}};Integer.prototype.toNumberOrInfinity=function(){if(this.lessThan(Integer.MIN_SAFE_VALUE)){return Number.NEGATIVE_INFINITY}else if(this.greaterThan(Integer.MAX_SAFE_VALUE)){return Number.POSITIVE_INFINITY}else{return this.toNumber()}};Integer.prototype.toString=function(R){R=R!==null&&R!==void 0?R:10;if(R<2||R>36){throw RangeError("radix out of range: "+R.toString())}if(this.isZero()){return"0"}var pe;if(this.isNegative()){if(this.equals(Integer.MIN_VALUE)){var Ae=Integer.fromNumber(R);var he=this.div(Ae);pe=he.multiply(Ae).subtract(this);return he.toString(R)+pe.toInt().toString(R)}else{return"-"+this.negate().toString(R)}}var ge=Integer.fromNumber(Math.pow(R,6));pe=this;var ye="";while(true){var me=pe.div(ge);var ve=pe.subtract(me.multiply(ge)).toInt()>>>0;var be=ve.toString(R);pe=me;if(pe.isZero()){return be+ye}else{while(be.length<6){be="0"+be}ye=""+be+ye}}};Integer.prototype.valueOf=function(){return this.toBigInt()};Integer.prototype.getHighBits=function(){return this.high};Integer.prototype.getLowBits=function(){return this.low};Integer.prototype.getNumBitsAbs=function(){if(this.isNegative()){return this.equals(Integer.MIN_VALUE)?64:this.negate().getNumBitsAbs()}var R=this.high!==0?this.high:this.low;var pe=0;for(pe=31;pe>0;pe--){if((R&1<=0};Integer.prototype.isOdd=function(){return(this.low&1)===1};Integer.prototype.isEven=function(){return(this.low&1)===0};Integer.prototype.equals=function(R){var pe=Integer.fromValue(R);return this.high===pe.high&&this.low===pe.low};Integer.prototype.notEquals=function(R){return!this.equals(R)};Integer.prototype.lessThan=function(R){return this.compare(R)<0};Integer.prototype.lessThanOrEqual=function(R){return this.compare(R)<=0};Integer.prototype.greaterThan=function(R){return this.compare(R)>0};Integer.prototype.greaterThanOrEqual=function(R){return this.compare(R)>=0};Integer.prototype.compare=function(R){var pe=Integer.fromValue(R);if(this.equals(pe)){return 0}var Ae=this.isNegative();var he=pe.isNegative();if(Ae&&!he){return-1}if(!Ae&&he){return 1}return this.subtract(pe).isNegative()?-1:1};Integer.prototype.negate=function(){if(this.equals(Integer.MIN_VALUE)){return Integer.MIN_VALUE}return this.not().add(Integer.ONE)};Integer.prototype.add=function(R){var pe=Integer.fromValue(R);var Ae=this.high>>>16;var he=this.high&65535;var ge=this.low>>>16;var ye=this.low&65535;var me=pe.high>>>16;var ve=pe.high&65535;var be=pe.low>>>16;var Ee=pe.low&65535;var we=0;var Ce=0;var _e=0;var Ie=0;Ie+=ye+Ee;_e+=Ie>>>16;Ie&=65535;_e+=ge+be;Ce+=_e>>>16;_e&=65535;Ce+=he+ve;we+=Ce>>>16;Ce&=65535;we+=Ae+me;we&=65535;return Integer.fromBits(_e<<16|Ie,we<<16|Ce)};Integer.prototype.subtract=function(R){var pe=Integer.fromValue(R);return this.add(pe.negate())};Integer.prototype.multiply=function(R){if(this.isZero()){return Integer.ZERO}var pe=Integer.fromValue(R);if(pe.isZero()){return Integer.ZERO}if(this.equals(Integer.MIN_VALUE)){return pe.isOdd()?Integer.MIN_VALUE:Integer.ZERO}if(pe.equals(Integer.MIN_VALUE)){return this.isOdd()?Integer.MIN_VALUE:Integer.ZERO}if(this.isNegative()){if(pe.isNegative()){return this.negate().multiply(pe.negate())}else{return this.negate().multiply(pe).negate()}}else if(pe.isNegative()){return this.multiply(pe.negate()).negate()}if(this.lessThan(Ce)&&pe.lessThan(Ce)){return Integer.fromNumber(this.toNumber()*pe.toNumber())}var Ae=this.high>>>16;var he=this.high&65535;var ge=this.low>>>16;var ye=this.low&65535;var me=pe.high>>>16;var ve=pe.high&65535;var be=pe.low>>>16;var Ee=pe.low&65535;var we=0;var _e=0;var Ie=0;var Se=0;Se+=ye*Ee;Ie+=Se>>>16;Se&=65535;Ie+=ge*Ee;_e+=Ie>>>16;Ie&=65535;Ie+=ye*be;_e+=Ie>>>16;Ie&=65535;_e+=he*Ee;we+=_e>>>16;_e&=65535;_e+=ge*be;we+=_e>>>16;_e&=65535;_e+=ye*ve;we+=_e>>>16;_e&=65535;we+=Ae*Ee+he*be+ge*ve+ye*me;we&=65535;return Integer.fromBits(Ie<<16|Se,we<<16|_e)};Integer.prototype.div=function(R){var pe=Integer.fromValue(R);if(pe.isZero()){throw(0,he.newError)("division by zero")}if(this.isZero()){return Integer.ZERO}var Ae,ge,ye;if(this.equals(Integer.MIN_VALUE)){if(pe.equals(Integer.ONE)||pe.equals(Integer.NEG_ONE)){return Integer.MIN_VALUE}if(pe.equals(Integer.MIN_VALUE)){return Integer.ONE}else{var me=this.shiftRight(1);Ae=me.div(pe).shiftLeft(1);if(Ae.equals(Integer.ZERO)){return pe.isNegative()?Integer.ONE:Integer.NEG_ONE}else{ge=this.subtract(pe.multiply(Ae));ye=Ae.add(ge.div(pe));return ye}}}else if(pe.equals(Integer.MIN_VALUE)){return Integer.ZERO}if(this.isNegative()){if(pe.isNegative()){return this.negate().div(pe.negate())}return this.negate().div(pe).negate()}else if(pe.isNegative()){return this.div(pe.negate()).negate()}ye=Integer.ZERO;ge=this;while(ge.greaterThanOrEqual(pe)){Ae=Math.max(1,Math.floor(ge.toNumber()/pe.toNumber()));var ve=Math.ceil(Math.log(Ae)/Math.LN2);var be=ve<=48?1:Math.pow(2,ve-48);var Ee=Integer.fromNumber(Ae);var we=Ee.multiply(pe);while(we.isNegative()||we.greaterThan(ge)){Ae-=be;Ee=Integer.fromNumber(Ae);we=Ee.multiply(pe)}if(Ee.isZero()){Ee=Integer.ONE}ye=ye.add(Ee);ge=ge.subtract(we)}return ye};Integer.prototype.modulo=function(R){var pe=Integer.fromValue(R);return this.subtract(this.div(pe).multiply(pe))};Integer.prototype.not=function(){return Integer.fromBits(~this.low,~this.high)};Integer.prototype.and=function(R){var pe=Integer.fromValue(R);return Integer.fromBits(this.low&pe.low,this.high&pe.high)};Integer.prototype.or=function(R){var pe=Integer.fromValue(R);return Integer.fromBits(this.low|pe.low,this.high|pe.high)};Integer.prototype.xor=function(R){var pe=Integer.fromValue(R);return Integer.fromBits(this.low^pe.low,this.high^pe.high)};Integer.prototype.shiftLeft=function(R){var pe=Integer.toNumber(R);if((pe&=63)===0){return Integer.ZERO}else if(pe<32){return Integer.fromBits(this.low<>>32-pe)}else{return Integer.fromBits(0,this.low<>>pe|this.high<<32-pe,this.high>>pe)}else{return Integer.fromBits(this.high>>pe-32,this.high>=0?0:-1)}};Integer.isInteger=function(R){return(R===null||R===void 0?void 0:R.__isInteger__)===true};Integer.fromInt=function(R){var pe;R=R|0;if(R>=-128&&R<128){pe=ge.get(R);if(pe!=null){return pe}}var Ae=new Integer(R,R<0?-1:0);if(R>=-128&&R<128){ge.set(R,Ae)}return Ae};Integer.fromBits=function(R,pe){return new Integer(R,pe)};Integer.fromNumber=function(R){if(isNaN(R)||!isFinite(R)){return Integer.ZERO}if(R<=-we){return Integer.MIN_VALUE}if(R+1>=we){return Integer.MAX_VALUE}if(R<0){return Integer.fromNumber(-R).negate()}return new Integer(R%be|0,R/be|0)};Integer.fromString=function(R,pe,Ae){var ge=Ae===void 0?{}:Ae,ye=ge.strictStringValidation;if(R.length===0){throw(0,he.newError)("number format error: empty string")}if(R==="NaN"||R==="Infinity"||R==="+Infinity"||R==="-Infinity"){return Integer.ZERO}pe=pe!==null&&pe!==void 0?pe:10;if(pe<2||pe>36){throw(0,he.newError)("radix out of range: "+pe.toString())}var me;if((me=R.indexOf("-"))>0){throw(0,he.newError)('number format error: interior "-" character: '+R)}else if(me===0){return Integer.fromString(R.substring(1),pe).negate()}var ve=Integer.fromNumber(Math.pow(pe,8));var be=Integer.ZERO;for(var Ee=0;Ee{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromVersion=void 0;var he=Ae(22037);function fromVersion(R,pe){if(pe===void 0){pe=function(){return{hostArch:process.config.variables.host_arch,nodeVersion:process.versions.node,v8Version:process.versions.v8,get platform(){return(0,he.platform)()},get release(){return(0,he.release)()}}}}var Ae=pe();var ge=Ae.hostArch;var ye="Node/"+Ae.nodeVersion;var me=Ae.v8Version;var ve="".concat(Ae.platform," ").concat(Ae.release);return{product:"neo4j-javascript/".concat(R),platform:"".concat(ve,"; ").concat(ge),languageDetails:"".concat(ye," (v8 ").concat(me,")")}}pe.fromVersion=fromVersion},17571:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(14874),pe)},54108:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ve=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;he0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TELEMETRY_APIS=pe.BOLT_PROTOCOL_V5_6=pe.BOLT_PROTOCOL_V5_5=pe.BOLT_PROTOCOL_V5_4=pe.BOLT_PROTOCOL_V5_3=pe.BOLT_PROTOCOL_V5_2=pe.BOLT_PROTOCOL_V5_1=pe.BOLT_PROTOCOL_V5_0=pe.BOLT_PROTOCOL_V4_4=pe.BOLT_PROTOCOL_V4_3=pe.BOLT_PROTOCOL_V4_2=pe.BOLT_PROTOCOL_V4_1=pe.BOLT_PROTOCOL_V4_0=pe.BOLT_PROTOCOL_V3=pe.BOLT_PROTOCOL_V2=pe.BOLT_PROTOCOL_V1=pe.DEFAULT_POOL_MAX_SIZE=pe.DEFAULT_POOL_ACQUISITION_TIMEOUT=pe.DEFAULT_CONNECTION_TIMEOUT_MILLIS=pe.ACCESS_MODE_WRITE=pe.ACCESS_MODE_READ=pe.FETCH_ALL=void 0;var Ae=-1;pe.FETCH_ALL=Ae;var he=60*1e3;pe.DEFAULT_POOL_ACQUISITION_TIMEOUT=he;var ge=100;pe.DEFAULT_POOL_MAX_SIZE=ge;var ye=3e4;pe.DEFAULT_CONNECTION_TIMEOUT_MILLIS=ye;var me="READ";pe.ACCESS_MODE_READ=me;var ve="WRITE";pe.ACCESS_MODE_WRITE=ve;var be=1;pe.BOLT_PROTOCOL_V1=be;var Ee=2;pe.BOLT_PROTOCOL_V2=Ee;var we=3;pe.BOLT_PROTOCOL_V3=we;var Ce=4;pe.BOLT_PROTOCOL_V4_0=Ce;var _e=4.1;pe.BOLT_PROTOCOL_V4_1=_e;var Ie=4.2;pe.BOLT_PROTOCOL_V4_2=Ie;var Se=4.3;pe.BOLT_PROTOCOL_V4_3=Se;var Be=4.4;pe.BOLT_PROTOCOL_V4_4=Be;var ke=5;pe.BOLT_PROTOCOL_V5_0=ke;var Oe=5.1;pe.BOLT_PROTOCOL_V5_1=Oe;var Re=5.2;pe.BOLT_PROTOCOL_V5_2=Re;var Qe=5.3;pe.BOLT_PROTOCOL_V5_3=Qe;var xe=5.4;pe.BOLT_PROTOCOL_V5_4=xe;var Pe=5.5;pe.BOLT_PROTOCOL_V5_5=Pe;var Te=5.6;pe.BOLT_PROTOCOL_V5_6=Te;var De={MANAGED_TRANSACTION:0,UNMANAGED_TRANSACTION:1,AUTO_COMMIT_TRANSACTION:2,EXECUTE_QUERY:3};pe.TELEMETRY_APIS=De},9318:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.boltAgent=pe.objectUtil=pe.resolver=pe.serverAddress=pe.urlUtil=pe.logger=pe.transactionExecutor=pe.txConfig=pe.connectionHolder=pe.constants=pe.bookmarks=pe.observer=pe.temporalUtil=pe.util=void 0;var me=ye(Ae(56517));pe.util=me;var ve=ye(Ae(87151));pe.temporalUtil=ve;var be=ye(Ae(95400));pe.observer=be;var Ee=ye(Ae(54108));pe.bookmarks=Ee;var we=ye(Ae(8178));pe.constants=we;var Ce=ye(Ae(95461));pe.connectionHolder=Ce;var _e=ye(Ae(74059));pe.txConfig=_e;var Ie=ye(Ae(59480));pe.transactionExecutor=Ie;var Se=ye(Ae(11425));pe.logger=Se;var Be=ye(Ae(48842));pe.urlUtil=Be;var ke=ye(Ae(19728));pe.serverAddress=ke;var Oe=ye(Ae(19379));pe.resolver=Oe;var Re=ye(Ae(58690));pe.objectUtil=Re;var Qe=ye(Ae(23007));pe.boltAgent=Qe},11425:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge;Object.defineProperty(pe,"__esModule",{value:true});pe.Logger=void 0;var ye=Ae(5542);var me="error";var ve="warn";var be="info";var Ee="debug";var we=be;var Ce=(ge={},ge[me]=0,ge[ve]=1,ge[be]=2,ge[Ee]=3,ge);var _e=function(){function Logger(R,pe){this._level=R;this._loggerFunction=pe}Logger.create=function(R){if((R===null||R===void 0?void 0:R.logging)!=null){var pe=R.logging;var Ae=extractConfiguredLevel(pe);var he=extractConfiguredLogger(pe);return new Logger(Ae,he)}return this.noOp()};Logger.noOp=function(){return Se};Logger.prototype.isErrorEnabled=function(){return isLevelEnabled(this._level,me)};Logger.prototype.error=function(R){if(this.isErrorEnabled()){this._loggerFunction(me,R)}};Logger.prototype.isWarnEnabled=function(){return isLevelEnabled(this._level,ve)};Logger.prototype.warn=function(R){if(this.isWarnEnabled()){this._loggerFunction(ve,R)}};Logger.prototype.isInfoEnabled=function(){return isLevelEnabled(this._level,be)};Logger.prototype.info=function(R){if(this.isInfoEnabled()){this._loggerFunction(be,R)}};Logger.prototype.isDebugEnabled=function(){return isLevelEnabled(this._level,Ee)};Logger.prototype.debug=function(R){if(this.isDebugEnabled()){this._loggerFunction(Ee,R)}};return Logger}();pe.Logger=_e;var Ie=function(R){he(NoOpLogger,R);function NoOpLogger(){return R.call(this,be,(function(R,pe){}))||this}NoOpLogger.prototype.isErrorEnabled=function(){return false};NoOpLogger.prototype.error=function(R){};NoOpLogger.prototype.isWarnEnabled=function(){return false};NoOpLogger.prototype.warn=function(R){};NoOpLogger.prototype.isInfoEnabled=function(){return false};NoOpLogger.prototype.info=function(R){};NoOpLogger.prototype.isDebugEnabled=function(){return false};NoOpLogger.prototype.debug=function(R){};return NoOpLogger}(_e);var Se=new Ie;function isLevelEnabled(R,pe){return Ce[R]>=Ce[pe]}function extractConfiguredLevel(R){if((R===null||R===void 0?void 0:R.level)!=null){var pe=R.level;var Ae=Ce[pe];if(Ae==null&&Ae!==0){throw(0,ye.newError)("Illegal logging level: ".concat(pe,". Supported levels are: ").concat(Object.keys(Ce).toString()))}return pe}return we}function extractConfiguredLogger(R){var pe,Ae;if((R===null||R===void 0?void 0:R.logger)!=null){var he=R.logger;if(he!=null&&typeof he==="function"){return he}}throw(0,ye.newError)("Illegal logger function: ".concat((Ae=(pe=R===null||R===void 0?void 0:R.logger)===null||pe===void 0?void 0:pe.toString())!==null&&Ae!==void 0?Ae:"undefined"))}},58690:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.getBrokenObjectReason=pe.isBrokenObject=pe.createBrokenObject=void 0;var Ae="__isBrokenObject__";var he="__reason__";function createBrokenObject(R,pe){if(pe===void 0){pe={}}var fail=function(){throw R};return new Proxy(pe,{get:function(pe,ge){if(ge===Ae){return true}else if(ge===he){return R}else if(ge==="toJSON"){return undefined}fail()},set:fail,apply:fail,construct:fail,defineProperty:fail,deleteProperty:fail,getOwnPropertyDescriptor:fail,getPrototypeOf:fail,has:fail,isExtensible:fail,ownKeys:fail,preventExtensions:fail,setPrototypeOf:fail})}pe.createBrokenObject=createBrokenObject;function isBrokenObject(R){return R!==null&&typeof R==="object"&&R[Ae]===true}pe.isBrokenObject=isBrokenObject;function getBrokenObjectReason(R){return R[he]}pe.getBrokenObjectReason=getBrokenObjectReason},95400:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.FailedObserver=pe.CompletedObserver=void 0;var Ae=function(){function CompletedObserver(){}CompletedObserver.prototype.subscribe=function(R){apply(R,R.onKeys,[]);apply(R,R.onCompleted,{})};CompletedObserver.prototype.cancel=function(){};CompletedObserver.prototype.pause=function(){};CompletedObserver.prototype.resume=function(){};CompletedObserver.prototype.prepareToHandleSingleResponse=function(){};CompletedObserver.prototype.markCompleted=function(){};CompletedObserver.prototype.onError=function(R){throw new Error("CompletedObserver not supposed to call onError",{cause:R})};return CompletedObserver}();pe.CompletedObserver=Ae;var he=function(){function FailedObserver(R){var pe=R.error,Ae=R.onError;this._error=pe;this._beforeError=Ae;this._observers=[];this.onError(pe)}FailedObserver.prototype.subscribe=function(R){apply(R,R.onError,this._error);this._observers.push(R)};FailedObserver.prototype.onError=function(R){apply(this,this._beforeError,R);this._observers.forEach((function(pe){return apply(pe,pe.onError,R)}))};FailedObserver.prototype.cancel=function(){};FailedObserver.prototype.pause=function(){};FailedObserver.prototype.resume=function(){};FailedObserver.prototype.markCompleted=function(){};FailedObserver.prototype.prepareToHandleSingleResponse=function(){};return FailedObserver}();pe.FailedObserver=he;function apply(R,pe,Ae){if(pe!=null){pe.bind(R)(Ae)}}},99051:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function BaseHostNameResolver(){}BaseHostNameResolver.prototype.resolve=function(){throw new Error("Abstract function")};BaseHostNameResolver.prototype._resolveToItself=function(R){return Promise.resolve([R])};return BaseHostNameResolver}();pe["default"]=Ae},51992:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(19728);function resolveToSelf(R){return Promise.resolve([R])}var ge=function(){function ConfiguredCustomResolver(R){this._resolverFunction=R!==null&&R!==void 0?R:resolveToSelf}ConfiguredCustomResolver.prototype.resolve=function(R){var pe=this;return new Promise((function(Ae){return Ae(pe._resolverFunction(R.asHostPort()))})).then((function(R){if(!Array.isArray(R)){throw new TypeError("Configured resolver function should either return an array of addresses or a Promise resolved with an array of addresses."+"Each address is ':'. Got: ".concat(R))}return R.map((function(R){return he.ServerAddress.fromUrl(R)}))}))};return ConfiguredCustomResolver}();pe["default"]=ge},19379:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.ConfiguredCustomResolver=pe.BaseHostNameResolver=void 0;var ge=he(Ae(31061));pe.BaseHostNameResolver=ge.default;var ye=he(Ae(51992));pe.ConfiguredCustomResolver=ye.default},19728:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.ServerAddress=void 0;var me=Ae(56517);var ve=ye(Ae(48842));var be=function(){function ServerAddress(R,pe,Ae,he){this._host=(0,me.assertString)(R,"host");this._resolved=pe!=null?(0,me.assertString)(pe,"resolved"):null;this._port=(0,me.assertNumber)(Ae,"port");this._hostPort=he;this._stringValue=pe!=null?"".concat(he,"(").concat(pe,")"):"".concat(he)}ServerAddress.prototype.host=function(){return this._host};ServerAddress.prototype.resolvedHost=function(){return this._resolved!=null?this._resolved:this._host};ServerAddress.prototype.port=function(){return this._port};ServerAddress.prototype.resolveWith=function(R){return new ServerAddress(this._host,R,this._port,this._hostPort)};ServerAddress.prototype.asHostPort=function(){return this._hostPort};ServerAddress.prototype.asKey=function(){return this._hostPort};ServerAddress.prototype.toString=function(){return this._stringValue};ServerAddress.fromUrl=function(R){var pe=ve.parseDatabaseUrl(R);return new ServerAddress(pe.host,null,pe.port,pe.hostAndPort)};return ServerAddress}();pe.ServerAddress=be},87151:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.floorMod=pe.floorDiv=pe.assertValidZoneId=pe.assertValidNanosecond=pe.assertValidSecond=pe.assertValidMinute=pe.assertValidHour=pe.assertValidDay=pe.assertValidMonth=pe.assertValidYear=pe.timeZoneOffsetInSeconds=pe.totalNanoseconds=pe.newDate=pe.toStandardDate=pe.isoStringToStandardDate=pe.dateToIsoString=pe.timeZoneOffsetToIsoString=pe.timeToIsoString=pe.durationToIsoString=pe.dateToEpochDay=pe.localDateTimeToEpochSecond=pe.localTimeToNanoOfDay=pe.normalizeNanosecondsForDuration=pe.normalizeSecondsForDuration=pe.SECONDS_PER_DAY=pe.DAYS_PER_400_YEAR_CYCLE=pe.DAYS_0000_TO_1970=pe.NANOS_PER_HOUR=pe.NANOS_PER_MINUTE=pe.NANOS_PER_MILLISECOND=pe.NANOS_PER_SECOND=pe.SECONDS_PER_HOUR=pe.SECONDS_PER_MINUTE=pe.MINUTES_PER_HOUR=pe.NANOSECOND_OF_SECOND_RANGE=pe.SECOND_OF_MINUTE_RANGE=pe.MINUTE_OF_HOUR_RANGE=pe.HOUR_OF_DAY_RANGE=pe.DAY_OF_MONTH_RANGE=pe.MONTH_OF_YEAR_RANGE=pe.YEAR_RANGE=void 0;var me=ye(Ae(6049));var ve=Ae(5542);var be=Ae(56517);var Ee=function(){function ValueRange(R,pe){this._minNumber=R;this._maxNumber=pe;this._minInteger=(0,me.int)(R);this._maxInteger=(0,me.int)(pe)}ValueRange.prototype.contains=function(R){if((0,me.isInt)(R)&&R instanceof me.default){return R.greaterThanOrEqual(this._minInteger)&&R.lessThanOrEqual(this._maxInteger)}else if(typeof R==="bigint"){var pe=(0,me.int)(R);return pe.greaterThanOrEqual(this._minInteger)&&pe.lessThanOrEqual(this._maxInteger)}else{return R>=this._minNumber&&R<=this._maxNumber}};ValueRange.prototype.toString=function(){return"[".concat(this._minNumber,", ").concat(this._maxNumber,"]")};return ValueRange}();pe.YEAR_RANGE=new Ee(-999999999,999999999);pe.MONTH_OF_YEAR_RANGE=new Ee(1,12);pe.DAY_OF_MONTH_RANGE=new Ee(1,31);pe.HOUR_OF_DAY_RANGE=new Ee(0,23);pe.MINUTE_OF_HOUR_RANGE=new Ee(0,59);pe.SECOND_OF_MINUTE_RANGE=new Ee(0,59);pe.NANOSECOND_OF_SECOND_RANGE=new Ee(0,999999999);pe.MINUTES_PER_HOUR=60;pe.SECONDS_PER_MINUTE=60;pe.SECONDS_PER_HOUR=pe.SECONDS_PER_MINUTE*pe.MINUTES_PER_HOUR;pe.NANOS_PER_SECOND=1e9;pe.NANOS_PER_MILLISECOND=1e6;pe.NANOS_PER_MINUTE=pe.NANOS_PER_SECOND*pe.SECONDS_PER_MINUTE;pe.NANOS_PER_HOUR=pe.NANOS_PER_MINUTE*pe.MINUTES_PER_HOUR;pe.DAYS_0000_TO_1970=719528;pe.DAYS_PER_400_YEAR_CYCLE=146097;pe.SECONDS_PER_DAY=86400;function normalizeSecondsForDuration(R,Ae){return(0,me.int)(R).add(floorDiv(Ae,pe.NANOS_PER_SECOND))}pe.normalizeSecondsForDuration=normalizeSecondsForDuration;function normalizeNanosecondsForDuration(R){return floorMod(R,pe.NANOS_PER_SECOND)}pe.normalizeNanosecondsForDuration=normalizeNanosecondsForDuration;function localTimeToNanoOfDay(R,Ae,he,ge){R=(0,me.int)(R);Ae=(0,me.int)(Ae);he=(0,me.int)(he);ge=(0,me.int)(ge);var ye=R.multiply(pe.NANOS_PER_HOUR);ye=ye.add(Ae.multiply(pe.NANOS_PER_MINUTE));ye=ye.add(he.multiply(pe.NANOS_PER_SECOND));return ye.add(ge)}pe.localTimeToNanoOfDay=localTimeToNanoOfDay;function localDateTimeToEpochSecond(R,Ae,he,ge,ye,me,ve){var be=dateToEpochDay(R,Ae,he);var Ee=localTimeToSecondOfDay(ge,ye,me);return be.multiply(pe.SECONDS_PER_DAY).add(Ee)}pe.localDateTimeToEpochSecond=localDateTimeToEpochSecond;function dateToEpochDay(R,Ae,he){R=(0,me.int)(R);Ae=(0,me.int)(Ae);he=(0,me.int)(he);var ge=R.multiply(365);if(R.greaterThanOrEqual(0)){ge=ge.add(R.add(3).div(4).subtract(R.add(99).div(100)).add(R.add(399).div(400)))}else{ge=ge.subtract(R.div(-4).subtract(R.div(-100)).add(R.div(-400)))}ge=ge.add(Ae.multiply(367).subtract(362).div(12));ge=ge.add(he.subtract(1));if(Ae.greaterThan(2)){ge=ge.subtract(1);if(!isLeapYear(R)){ge=ge.subtract(1)}}return ge.subtract(pe.DAYS_0000_TO_1970)}pe.dateToEpochDay=dateToEpochDay;function durationToIsoString(R,pe,Ae,he){var ge=formatNumber(R);var ye=formatNumber(pe);var me=formatSecondsAndNanosecondsForDuration(Ae,he);return"P".concat(ge,"M").concat(ye,"DT").concat(me,"S")}pe.durationToIsoString=durationToIsoString;function timeToIsoString(R,pe,Ae,he){var ge=formatNumber(R,2);var ye=formatNumber(pe,2);var me=formatNumber(Ae,2);var ve=formatNanosecond(he);return"".concat(ge,":").concat(ye,":").concat(me).concat(ve)}pe.timeToIsoString=timeToIsoString;function timeZoneOffsetToIsoString(R){R=(0,me.int)(R);if(R.equals(0)){return"Z"}var Ae=R.isNegative();if(Ae){R=R.multiply(-1)}var he=Ae?"-":"+";var ge=formatNumber(R.div(pe.SECONDS_PER_HOUR),2);var ye=formatNumber(R.div(pe.SECONDS_PER_MINUTE).modulo(pe.MINUTES_PER_HOUR),2);var ve=R.modulo(pe.SECONDS_PER_MINUTE);var be=ve.equals(0)?null:formatNumber(ve,2);return be!=null?"".concat(he).concat(ge,":").concat(ye,":").concat(be):"".concat(he).concat(ge,":").concat(ye)}pe.timeZoneOffsetToIsoString=timeZoneOffsetToIsoString;function dateToIsoString(R,pe,Ae){var he=formatYear(R);var ge=formatNumber(pe,2);var ye=formatNumber(Ae,2);return"".concat(he,"-").concat(ge,"-").concat(ye)}pe.dateToIsoString=dateToIsoString;function isoStringToStandardDate(R){return new Date(R)}pe.isoStringToStandardDate=isoStringToStandardDate;function toStandardDate(R){return new Date(R)}pe.toStandardDate=toStandardDate;function newDate(R){return new Date(R)}pe.newDate=newDate;function totalNanoseconds(R,Ae){Ae=Ae!==null&&Ae!==void 0?Ae:0;var he=R.getMilliseconds()*pe.NANOS_PER_MILLISECOND;return add(Ae,he)}pe.totalNanoseconds=totalNanoseconds;function timeZoneOffsetInSeconds(R){var Ae=R.getSeconds()>=R.getUTCSeconds()?R.getSeconds()-R.getUTCSeconds():R.getSeconds()-R.getUTCSeconds()+60;var he=R.getTimezoneOffset();if(he===0){return 0+Ae}return-1*he*pe.SECONDS_PER_MINUTE+Ae}pe.timeZoneOffsetInSeconds=timeZoneOffsetInSeconds;function assertValidYear(R){return assertValidTemporalValue(R,pe.YEAR_RANGE,"Year")}pe.assertValidYear=assertValidYear;function assertValidMonth(R){return assertValidTemporalValue(R,pe.MONTH_OF_YEAR_RANGE,"Month")}pe.assertValidMonth=assertValidMonth;function assertValidDay(R){return assertValidTemporalValue(R,pe.DAY_OF_MONTH_RANGE,"Day")}pe.assertValidDay=assertValidDay;function assertValidHour(R){return assertValidTemporalValue(R,pe.HOUR_OF_DAY_RANGE,"Hour")}pe.assertValidHour=assertValidHour;function assertValidMinute(R){return assertValidTemporalValue(R,pe.MINUTE_OF_HOUR_RANGE,"Minute")}pe.assertValidMinute=assertValidMinute;function assertValidSecond(R){return assertValidTemporalValue(R,pe.SECOND_OF_MINUTE_RANGE,"Second")}pe.assertValidSecond=assertValidSecond;function assertValidNanosecond(R){return assertValidTemporalValue(R,pe.NANOSECOND_OF_SECOND_RANGE,"Nanosecond")}pe.assertValidNanosecond=assertValidNanosecond;var we=new Map;var newInvalidZoneIdError=function(R,pe){return(0,ve.newError)("".concat(pe,' is expected to be a valid ZoneId but was: "').concat(R,'"'))};function assertValidZoneId(R,pe){var Ae=we.get(pe);if(Ae===true){return}if(Ae===false){throw newInvalidZoneIdError(pe,R)}try{Intl.DateTimeFormat(undefined,{timeZone:pe});we.set(pe,true)}catch(Ae){we.set(pe,false);throw newInvalidZoneIdError(pe,R)}}pe.assertValidZoneId=assertValidZoneId;function assertValidTemporalValue(R,pe,Ae){(0,be.assertNumberOrInteger)(R,Ae);if(!pe.contains(R)){throw(0,ve.newError)("".concat(Ae," is expected to be in range ").concat(pe.toString()," but was: ").concat(R.toString()))}return R}function localTimeToSecondOfDay(R,Ae,he){R=(0,me.int)(R);Ae=(0,me.int)(Ae);he=(0,me.int)(he);var ge=R.multiply(pe.SECONDS_PER_HOUR);ge=ge.add(Ae.multiply(pe.SECONDS_PER_MINUTE));return ge.add(he)}function isLeapYear(R){R=(0,me.int)(R);if(!R.modulo(4).equals(0)){return false}else if(!R.modulo(100).equals(0)){return true}else if(!R.modulo(400).equals(0)){return false}else{return true}}function floorDiv(R,pe){R=(0,me.int)(R);pe=(0,me.int)(pe);var Ae=R.div(pe);if(R.isPositive()!==pe.isPositive()&&Ae.multiply(pe).notEquals(R)){Ae=Ae.subtract(1)}return Ae}pe.floorDiv=floorDiv;function floorMod(R,pe){R=(0,me.int)(R);pe=(0,me.int)(pe);return R.subtract(floorDiv(R,pe).multiply(pe))}pe.floorMod=floorMod;function formatSecondsAndNanosecondsForDuration(R,Ae){R=(0,me.int)(R);Ae=(0,me.int)(Ae);var he;var ge;var ye=R.isNegative();var ve=Ae.greaterThan(0);if(ye&&ve){if(R.equals(-1)){he="-0"}else{he=R.add(1).toString()}}else{he=R.toString()}if(ve){if(ye){ge=formatNanosecond(Ae.negate().add(2*pe.NANOS_PER_SECOND).modulo(pe.NANOS_PER_SECOND))}else{ge=formatNanosecond(Ae.add(pe.NANOS_PER_SECOND).modulo(pe.NANOS_PER_SECOND))}}return ge!=null?he+ge:he}function formatNanosecond(R){R=(0,me.int)(R);return R.equals(0)?"":"."+formatNumber(R,9)}function formatYear(R){var pe=(0,me.int)(R);if(pe.isNegative()||pe.greaterThan(9999)){return formatNumber(pe,6,{usePositiveSign:true})}return formatNumber(pe,4)}function formatNumber(R,pe,Ae){R=(0,me.int)(R);var he=R.isNegative();if(he){R=R.negate()}var ge=R.toString();if(pe!=null){while(ge.length0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ve=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;hethis._maxRetryTimeMs||!(0,be.isRetriableError)(Ae)){return Promise.reject(Ae)}return new Promise((function(Ae,he){var be=ve._computeDelayWithJitter(ge);var Ee=ve._setTimeout((function(){ve._inFlightTimeoutIds=ve._inFlightTimeoutIds.filter((function(R){return R!==Ee}));ve._executeTransactionInsidePromise(R,pe,Ae,he,ye,me).catch(he)}),be);ve._inFlightTimeoutIds.push(Ee)})).catch((function(Ae){var be=ge*ve._multiplier;return ve._retryTransactionPromise(R,pe,Ae,he,be,ye,me)}))};TransactionExecutor.prototype._executeTransactionInsidePromise=function(R,pe,Ae,me,ve,be){return ge(this,void 0,void 0,(function(){var ge,Ee,we,Ce,_e,Ie,Se;var Be=this;return ye(this,(function(ye){switch(ye.label){case 0:ye.trys.push([0,4,,5]);Ee=R((be===null||be===void 0?void 0:be.apiTransactionConfig)!=null?he({},be===null||be===void 0?void 0:be.apiTransactionConfig):undefined);if(!this.pipelineBegin)return[3,1];we=Ee;return[3,3];case 1:return[4,Ee];case 2:we=ye.sent();ye.label=3;case 3:ge=we;return[3,5];case 4:Ce=ye.sent();me(Ce);return[2];case 5:_e=ve!==null&&ve!==void 0?ve:function(R){return R};Ie=_e(ge);Se=this._safeExecuteTransactionWork(Ie,pe);Se.then((function(R){return Be._handleTransactionWorkSuccess(R,ge,Ae,me)})).catch((function(R){return Be._handleTransactionWorkFailure(R,ge,me)}));return[2]}}))}))};TransactionExecutor.prototype._safeExecuteTransactionWork=function(R,pe){try{var Ae=pe(R);return Promise.resolve(Ae)}catch(R){return Promise.reject(R)}};TransactionExecutor.prototype._handleTransactionWorkSuccess=function(R,pe,Ae,he){if(pe.isOpen()){pe.commit().then((function(){Ae(R)})).catch((function(R){he(R)}))}else{Ae(R)}};TransactionExecutor.prototype._handleTransactionWorkFailure=function(R,pe,Ae){if(pe.isOpen()){pe.rollback().catch((function(R){})).then((function(){return Ae(R)})).catch(Ae)}else{Ae(R)}};TransactionExecutor.prototype._computeDelayWithJitter=function(R){var pe=R*this._jitterFactor;var Ae=R-pe;var he=R+pe;return Math.random()*(he-Ae)+Ae};TransactionExecutor.prototype._verifyAfterConstruction=function(){if(this._maxRetryTimeMs<0){throw(0,be.newError)("Max retry time should be >= 0: "+this._maxRetryTimeMs.toString())}if(this._initialRetryDelayMs<0){throw(0,be.newError)("Initial retry delay should >= 0: "+this._initialRetryDelayMs.toString())}if(this._multiplier<1){throw(0,be.newError)("Multiplier should be >= 1.0: "+this._multiplier.toString())}if(this._jitterFactor<0||this._jitterFactor>1){throw(0,be.newError)("Jitter factor should be in [0.0, 1.0]: "+this._jitterFactor.toFixed())}};return TransactionExecutor}();pe.TransactionExecutor=Se;function _valueOrDefault(R,pe){if(R!=null){return R}return pe}},74059:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.TxConfig=void 0;var me=ye(Ae(56517));var ve=Ae(5542);var be=Ae(6049);var Ee=function(){function TxConfig(R,pe){assertValidConfig(R);this.timeout=extractTimeout(R,pe);this.metadata=extractMetadata(R)}TxConfig.empty=function(){return we};TxConfig.prototype.isEmpty=function(){return Object.values(this).every((function(R){return R==null}))};return TxConfig}();pe.TxConfig=Ee;var we=new Ee({});function extractTimeout(R,pe){if(me.isObject(R)&&R.timeout!=null){me.assertNumberOrInteger(R.timeout,"Transaction timeout");if(isTimeoutFloat(R)&&(pe===null||pe===void 0?void 0:pe.isInfoEnabled())===true){pe===null||pe===void 0?void 0:pe.info("Transaction timeout expected to be an integer, got: ".concat(R.timeout,". The value will be rounded up."))}var Ae=(0,be.int)(R.timeout,{ceilFloat:true});if(Ae.isNegative()){throw(0,ve.newError)("Transaction timeout should not be negative")}return Ae}return null}function isTimeoutFloat(R){return typeof R.timeout==="number"&&!Number.isInteger(R.timeout)}function extractMetadata(R){if(me.isObject(R)&&R.metadata!=null){var pe=R.metadata;me.assertObject(pe,"config.metadata");if(Object.keys(pe).length!==0){return pe}}return null}function assertValidConfig(R){if(R!=null){me.assertObject(R,"Transaction config")}}},48842:function(R,pe,Ae){"use strict";var he=this&&this.__assign||function(){he=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};Object.defineProperty(pe,"__esModule",{value:true});pe.Url=pe.formatIPv6Address=pe.formatIPv4Address=pe.defaultPortForScheme=pe.parseDatabaseUrl=void 0;var ye=Ae(56517);var me=7687;var ve=7474;var be=7473;var Ee=function(){function Url(R,pe,Ae,he,ge){this.scheme=R;this.host=pe;this.port=Ae;this.hostAndPort=he;this.query=ge}return Url}();pe.Url=Ee;function parseDatabaseUrl(R){var pe;(0,ye.assertString)(R,"URL");var Ae=sanitizeUrl(R);var he=uriJsParse(Ae.url);var ge=Ae.schemeMissing?null:extractScheme(he.scheme);var me=extractHost(he.host);var ve=formatHost(me);var be=extractPort(he.port,ge);var we="".concat(ve,":").concat(be);var Ce=extractQuery((pe=he.query)!==null&&pe!==void 0?pe:extractResourceQueryString(he.resourceName),R);return new Ee(ge,me,be,we,Ce)}pe.parseDatabaseUrl=parseDatabaseUrl;function extractResourceQueryString(R){if(typeof R!=="string"){return null}var pe=ge(R.split("?"),2),Ae=pe[1];return Ae}function sanitizeUrl(R){R=R.trim();if(!R.includes("://")){return{schemeMissing:true,url:"none://".concat(R)}}return{schemeMissing:false,url:R}}function extractScheme(R){if(R!=null){R=R.trim();if(R.charAt(R.length-1)===":"){R=R.substring(0,R.length-1)}return R}return null}function extractHost(R,pe){if(R==null){throw new Error("Unable to extract host from null or undefined URL")}return R.trim()}function extractPort(R,pe){var Ae=typeof R==="string"?parseInt(R,10):R;return Ae!=null&&!isNaN(Ae)?Ae:defaultPortForScheme(pe)}function extractQuery(R,pe){var Ae=R!=null?trimAndSanitizeQuery(R):null;var he={};if(Ae!=null){Ae.split("&").forEach((function(R){var Ae=R.split("=");if(Ae.length!==2){throw new Error("Invalid parameters: '".concat(Ae.toString(),"' in URL '").concat(pe,"'."))}var ge=trimAndVerifyQueryElement(Ae[0],"key",pe);var ye=trimAndVerifyQueryElement(Ae[1],"value",pe);if(he[ge]!==undefined){throw new Error("Duplicated query parameters with key '".concat(ge,"' in URL '").concat(pe,"'"))}he[ge]=ye}))}return he}function trimAndSanitizeQuery(R){R=(R!==null&&R!==void 0?R:"").trim();if((R===null||R===void 0?void 0:R.charAt(0))==="?"){R=R.substring(1,R.length)}return R}function trimAndVerifyQueryElement(R,pe,Ae){R=(R!==null&&R!==void 0?R:"").trim();if(R===""){throw new Error("Illegal empty ".concat(pe," in URL query '").concat(Ae,"'"))}return R}function escapeIPv6Address(R){var pe=R.charAt(0)==="[";var Ae=R.charAt(R.length-1)==="]";if(!pe&&!Ae){return"[".concat(R,"]")}else if(pe&&Ae){return R}else{throw new Error("Illegal IPv6 address ".concat(R))}}function formatHost(R){if(R===""||R==null){throw new Error("Illegal host ".concat(R))}var pe=R.includes(":");return pe?escapeIPv6Address(R):R}function formatIPv4Address(R,pe){return"".concat(R,":").concat(pe)}pe.formatIPv4Address=formatIPv4Address;function formatIPv6Address(R,pe){var Ae=escapeIPv6Address(R);return"".concat(Ae,":").concat(pe)}pe.formatIPv6Address=formatIPv6Address;function defaultPortForScheme(R){if(R==="http"){return ve}else if(R==="https"){return be}else{return me}}pe.defaultPortForScheme=defaultPortForScheme;function uriJsParse(R){function partition(R,pe){var Ae=R.indexOf(pe);if(Ae>=0)return[R.substring(0,Ae),R[Ae],R.substring(Ae+1)];else return[R,"",""]}function rpartition(R,pe){var Ae=R.lastIndexOf(pe);if(Ae>=0)return[R.substring(0,Ae),R[Ae],R.substring(Ae+1)];else return["","",R]}function between(R,pe,Ae){var he=partition(R,pe);var ge=partition(he[2],Ae);return[ge[0],ge[2]]}function parseAuthority(R){var pe={};var Ae;Ae=rpartition(R,"@");if(Ae[1]==="@"){pe.userInfo=decodeURIComponent(Ae[0]);R=Ae[2]}var he=ge(between(R,"[","]"),2),ye=he[0],me=he[1];if(ye!==""){pe.host=ye;Ae=partition(me,":")}else{Ae=partition(R,":");pe.host=Ae[0]}if(Ae[1]===":"){pe.port=Ae[2]}return pe}var pe={};var Ae;Ae=partition(R,":");if(Ae[1]===":"){pe.scheme=decodeURIComponent(Ae[0]);R=Ae[2]}Ae=partition(R,"#");if(Ae[1]==="#"){pe.fragment=decodeURIComponent(Ae[2]);R=Ae[0]}Ae=partition(R,"?");if(Ae[1]==="?"){pe.query=Ae[2];R=Ae[0]}if(R.startsWith("//")){Ae=partition(R.substr(2),"/");pe=he(he({},pe),parseAuthority(Ae[0]));pe.path=Ae[1]+Ae[2]}else{pe.path=R}return pe}},56517:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.ENCRYPTION_OFF=pe.ENCRYPTION_ON=pe.equals=pe.validateQueryAndParameters=pe.toNumber=pe.assertValidDate=pe.assertNumberOrInteger=pe.assertNumber=pe.assertString=pe.assertObject=pe.isString=pe.isObject=pe.isEmptyObjectOrNull=void 0;var ve=ye(Ae(6049));var be=Ae(86322);var Ee="ENCRYPTION_ON";pe.ENCRYPTION_ON=Ee;var we="ENCRYPTION_OFF";pe.ENCRYPTION_OFF=we;function isEmptyObjectOrNull(R){if(R===null){return true}if(!isObject(R)){return false}for(var pe in R){if(R[pe]!==undefined){return false}}return true}pe.isEmptyObjectOrNull=isEmptyObjectOrNull;function isObject(R){return typeof R==="object"&&!Array.isArray(R)&&R!==null}pe.isObject=isObject;function validateQueryAndParameters(R,pe,Ae){var he,ge;var ye="";var me=pe!==null&&pe!==void 0?pe:{};var ve=(he=Ae===null||Ae===void 0?void 0:Ae.skipAsserts)!==null&&he!==void 0?he:false;if(typeof R==="string"){ye=R}else if(R instanceof String){ye=R.toString()}else if(typeof R==="object"&&R.text!=null){ye=R.text;me=(ge=R.parameters)!==null&&ge!==void 0?ge:{}}if(!ve){assertCypherQuery(ye);assertQueryParameters(me)}return{validatedQuery:ye,params:me}}pe.validateQueryAndParameters=validateQueryAndParameters;function assertObject(R,pe){if(!isObject(R)){throw new TypeError(pe+" expected to be an object but was: "+(0,be.stringify)(R))}return R}pe.assertObject=assertObject;function assertString(R,pe){if(!isString(R)){throw new TypeError((0,be.stringify)(pe)+" expected to be string but was: "+(0,be.stringify)(R))}return R}pe.assertString=assertString;function assertNumber(R,pe){if(typeof R!=="number"){throw new TypeError(pe+" expected to be a number but was: "+(0,be.stringify)(R))}return R}pe.assertNumber=assertNumber;function assertNumberOrInteger(R,pe){if(typeof R!=="number"&&typeof R!=="bigint"&&!(0,ve.isInt)(R)){throw new TypeError(pe+" expected to be either a number or an Integer object but was: "+(0,be.stringify)(R))}return R}pe.assertNumberOrInteger=assertNumberOrInteger;function assertValidDate(R,pe){if(Object.prototype.toString.call(R)!=="[object Date]"){throw new TypeError(pe+" expected to be a standard JavaScript Date but was: "+(0,be.stringify)(R))}if(Number.isNaN(R.getTime())){throw new TypeError(pe+" expected to be valid JavaScript Date but its time was NaN: "+(0,be.stringify)(R))}return R}pe.assertValidDate=assertValidDate;function assertCypherQuery(R){assertString(R,"Cypher query");if(R.trim().length===0){throw new TypeError("Cypher query is expected to be a non-empty string.")}}function assertQueryParameters(R){if(!isObject(R)){var pe=R.constructor!=null?" "+R.constructor.name:"";throw new TypeError("Query parameters are expected to either be undefined/null or an object, given:".concat(pe," ").concat(JSON.stringify(R)))}}function isString(R){return Object.prototype.toString.call(R)==="[object String]"}pe.isString=isString;function equals(R,pe){var Ae,he;if(R===pe){return true}if(R===null||pe===null){return false}if(typeof R==="object"&&typeof pe==="object"){var ge=Object.keys(R);var ye=Object.keys(pe);if(ge.length!==ye.length){return false}try{for(var ve=me(ge),be=ve.next();!be.done;be=ve.next()){var Ee=be.value;if(!equals(R[Ee],pe[Ee])){return false}}}catch(R){Ae={error:R}}finally{try{if(be&&!be.done&&(he=ve.return))he.call(ve)}finally{if(Ae)throw Ae.error}}return true}return false}pe.equals=equals;function toNumber(R){if(R instanceof ve.default){return R.toNumber()}else if(typeof R==="bigint"){return(0,ve.int)(R).toNumber()}else{return R}}pe.toNumber=toNumber},86322:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.stringify=void 0;var he=Ae(58690);function stringify(R,pe){return JSON.stringify(R,(function(R,Ae){if((0,he.isBrokenObject)(Ae)){return{__isBrokenObject__:true,__reason__:(0,he.getBrokenObjectReason)(Ae)}}if(typeof Ae==="bigint"){return"".concat(Ae,"n")}if((pe===null||pe===void 0?void 0:pe.useCustomToString)===true&&typeof Ae==="object"&&!Array.isArray(Ae)&&typeof Ae.toString==="function"&&Ae.toString!==Object.prototype.toString){return Ae===null||Ae===void 0?void 0:Ae.toString()}return Ae}))}pe.stringify=stringify},66007:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.notificationFilterDisabledClassification=pe.notificationFilterDisabledCategory=pe.notificationFilterMinimumSeverityLevel=void 0;var Ae={OFF:"OFF",WARNING:"WARNING",INFORMATION:"INFORMATION"};pe.notificationFilterMinimumSeverityLevel=Ae;Object.freeze(Ae);var he={HINT:"HINT",UNRECOGNIZED:"UNRECOGNIZED",UNSUPPORTED:"UNSUPPORTED",PERFORMANCE:"PERFORMANCE",TOPOLOGY:"TOPOLOGY",SECURITY:"SECURITY",DEPRECATION:"DEPRECATION",GENERIC:"GENERIC"};pe.notificationFilterDisabledCategory=he;Object.freeze(he);var ge=he;pe.notificationFilterDisabledClassification=ge;var ye=function(){function NotificationFilter(){this.minimumSeverityLevel=undefined;this.disabledCategories=undefined;this.disabledClassifications=undefined;throw new Error("Not implemented")}return NotificationFilter}();pe["default"]=ye},64777:function(R,pe,Ae){"use strict";var he=this&&this.__assign||function(){he=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var be=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;he0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};var ye=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};Object.defineProperty(pe,"__esModule",{value:true});var me=Ae(5542);function generateFieldLookup(R){var pe={};R.forEach((function(R,Ae){pe[R]=Ae}));return pe}var ve=function(){function Record(R,pe,Ae){this.keys=R;this.length=R.length;this._fields=pe;this._fieldLookup=Ae!==null&&Ae!==void 0?Ae:generateFieldLookup(R)}Record.prototype.forEach=function(R){var pe,Ae;try{for(var he=ge(this.entries()),me=he.next();!me.done;me=he.next()){var ve=ye(me.value,2),be=ve[0],Ee=ve[1];R(Ee,be,this)}}catch(R){pe={error:R}}finally{try{if(me&&!me.done&&(Ae=he.return))Ae.call(he)}finally{if(pe)throw pe.error}}};Record.prototype.map=function(R){var pe,Ae;var he=[];try{for(var me=ge(this.entries()),ve=me.next();!ve.done;ve=me.next()){var be=ye(ve.value,2),Ee=be[0],we=be[1];he.push(R(we,Ee,this))}}catch(R){pe={error:R}}finally{try{if(ve&&!ve.done&&(Ae=me.return))Ae.call(me)}finally{if(pe)throw pe.error}}return he};Record.prototype.entries=function(){var R;return he(this,(function(pe){switch(pe.label){case 0:R=0;pe.label=1;case 1:if(!(Rthis._fields.length-1||pe<0){throw(0,me.newError)("This record has no field with index '"+pe.toString()+"'. Remember that indexes start at `0`, "+"and make sure your query returns records in the shape you meant it to.")}return this._fields[pe]};Record.prototype.has=function(R){if(typeof R==="number"){return R>=0&&R{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function EagerResult(R,pe,Ae){this.keys=R;this.records=pe;this.summary=Ae}return EagerResult}();pe["default"]=Ae},1381:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Stats=pe.QueryStatistics=pe.ProfiledPlan=pe.Plan=pe.ServerInfo=pe.queryType=void 0;var he=Ae(9318);var ge=Ae(64777);var ye=function(){function ResultSummary(R,pe,Ae,he){var ye,be,Ce;this.query={text:R,parameters:pe};this.queryType=Ae.type;this.counters=new Ee((ye=Ae.stats)!==null&&ye!==void 0?ye:{});this.updateStatistics=this.counters;this.plan=Ae.plan!=null||Ae.profile!=null?new me((be=Ae.plan)!==null&&be!==void 0?be:Ae.profile):false;this.profile=Ae.profile!=null?new ve(Ae.profile):false;this.notifications=(0,ge.buildNotificationsFromMetadata)(Ae);this.gqlStatusObjects=(0,ge.buildGqlStatusObjectFromMetadata)(Ae);this.server=new we(Ae.server,he);this.resultConsumedAfter=Ae.result_consumed_after;this.resultAvailableAfter=Ae.result_available_after;this.database={name:(Ce=Ae.db)!==null&&Ce!==void 0?Ce:null}}ResultSummary.prototype.hasPlan=function(){return this.plan instanceof me};ResultSummary.prototype.hasProfile=function(){return this.profile instanceof ve};return ResultSummary}();var me=function(){function Plan(R){this.operatorType=R.operatorType;this.identifiers=R.identifiers;this.arguments=R.args;this.children=R.children!=null?R.children.map((function(R){return new Plan(R)})):[]}return Plan}();pe.Plan=me;var ve=function(){function ProfiledPlan(R){this.operatorType=R.operatorType;this.identifiers=R.identifiers;this.arguments=R.args;this.dbHits=valueOrDefault("dbHits",R);this.rows=valueOrDefault("rows",R);this.pageCacheMisses=valueOrDefault("pageCacheMisses",R);this.pageCacheHits=valueOrDefault("pageCacheHits",R);this.pageCacheHitRatio=valueOrDefault("pageCacheHitRatio",R);this.time=valueOrDefault("time",R);this.children=R.children!=null?R.children.map((function(R){return new ProfiledPlan(R)})):[]}ProfiledPlan.prototype.hasPageCacheStats=function(){return this.pageCacheMisses>0||this.pageCacheHits>0||this.pageCacheHitRatio>0};return ProfiledPlan}();pe.ProfiledPlan=ve;var be=function(){function Stats(){this.nodesCreated=0;this.nodesDeleted=0;this.relationshipsCreated=0;this.relationshipsDeleted=0;this.propertiesSet=0;this.labelsAdded=0;this.labelsRemoved=0;this.indexesAdded=0;this.indexesRemoved=0;this.constraintsAdded=0;this.constraintsRemoved=0}return Stats}();pe.Stats=be;var Ee=function(){function QueryStatistics(R){var pe=this;this._stats={nodesCreated:0,nodesDeleted:0,relationshipsCreated:0,relationshipsDeleted:0,propertiesSet:0,labelsAdded:0,labelsRemoved:0,indexesAdded:0,indexesRemoved:0,constraintsAdded:0,constraintsRemoved:0};this._systemUpdates=0;Object.keys(R).forEach((function(Ae){var ge=Ae.replace(/(-\w)/g,(function(R){return R[1].toUpperCase()}));if(ge in pe._stats){pe._stats[ge]=he.util.toNumber(R[Ae])}else if(ge==="systemUpdates"){pe._systemUpdates=he.util.toNumber(R[Ae])}else if(ge==="containsSystemUpdates"){pe._containsSystemUpdates=R[Ae]}else if(ge==="containsUpdates"){pe._containsUpdates=R[Ae]}}));this._stats=Object.freeze(this._stats)}QueryStatistics.prototype.containsUpdates=function(){var R=this;return this._containsUpdates!==undefined?this._containsUpdates:Object.keys(this._stats).reduce((function(pe,Ae){return pe+R._stats[Ae]}),0)>0};QueryStatistics.prototype.updates=function(){return this._stats};QueryStatistics.prototype.containsSystemUpdates=function(){return this._containsSystemUpdates!==undefined?this._containsSystemUpdates:this._systemUpdates>0};QueryStatistics.prototype.systemUpdates=function(){return this._systemUpdates};return QueryStatistics}();pe.QueryStatistics=Ee;var we=function(){function ServerInfo(R,pe){if(R!=null){this.address=R.address;this.agent=R.version}this.protocolVersion=pe}return ServerInfo}();pe.ServerInfo=we;function valueOrDefault(R,pe,Ae){if(Ae===void 0){Ae=0}if(pe!==false&&R in pe){var ge=pe[R];return he.util.toNumber(ge)}else{return Ae}}var Ce={READ_ONLY:"r",READ_WRITE:"rw",WRITE_ONLY:"w",SCHEMA_WRITE:"s"};pe.queryType=Ce;pe["default"]=ye},36584:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=R._watermarks.high;var me=ge<=R._watermarks.low;if(ye&&!Ae.paused){Ae.paused=true;Ae.streaming.pause()}else if(me&&Ae.paused||Ae.firstRun&&!ye){Ae.firstRun=false;Ae.paused=false;Ae.streaming.resume()}};var initializeObserver=function(){return he(R,void 0,void 0,(function(){var R;return ge(this,(function(pe){switch(pe.label){case 0:if(!(Ae.queuedObserver===undefined))return[3,2];Ae.queuedObserver=this._createQueuedResultObserver(controlFlow);R=Ae;return[4,this._subscribe(Ae.queuedObserver,true).catch((function(){return undefined}))];case 1:R.streaming=pe.sent();controlFlow();pe.label=2;case 2:return[2,Ae.queuedObserver]}}))}))};var assertSummary=function(R){if(R===undefined){throw(0,Ee.newError)("InvalidState: Result stream finished without Summary",Ee.PROTOCOL_ERROR)}return true};return{next:function(){return he(R,void 0,void 0,(function(){var R,pe;return ge(this,(function(he){switch(he.label){case 0:if(Ae.finished){if(assertSummary(Ae.summary)){return[2,{done:true,value:Ae.summary}]}}return[4,initializeObserver()];case 1:R=he.sent();return[4,R.dequeue()];case 2:pe=he.sent();if(pe.done===true){Ae.finished=pe.done;Ae.summary=pe.value}return[2,pe]}}))}))},return:function(pe){return he(R,void 0,void 0,(function(){var R,he;var ye;return ge(this,(function(ge){switch(ge.label){case 0:if(Ae.finished){if(assertSummary(Ae.summary)){return[2,{done:true,value:pe!==null&&pe!==void 0?pe:Ae.summary}]}}(ye=Ae.streaming)===null||ye===void 0?void 0:ye.cancel();return[4,initializeObserver()];case 1:R=ge.sent();return[4,R.dequeueUntilDone()];case 2:he=ge.sent();Ae.finished=true;he.value=pe!==null&&pe!==void 0?pe:he.value;Ae.summary=he.value;return[2,he]}}))}))},peek:function(){return he(R,void 0,void 0,(function(){var R;return ge(this,(function(pe){switch(pe.label){case 0:if(Ae.finished){if(assertSummary(Ae.summary)){return[2,{done:true,value:Ae.summary}]}}return[4,initializeObserver()];case 1:R=pe.sent();return[4,R.head()];case 2:return[2,pe.sent()]}}))}))}}};Result.prototype.then=function(R,pe){return this._getOrCreatePromise().then(R,pe)};Result.prototype.catch=function(R){return this._getOrCreatePromise().catch(R)};Result.prototype.finally=function(R){return this._getOrCreatePromise().finally(R)};Result.prototype.subscribe=function(R){this._subscribe(R).catch((function(){}))};Result.prototype.isOpen=function(){return this._summary===null&&this._error===null};Result.prototype._subscribe=function(R,pe){if(pe===void 0){pe=false}var Ae=this._decorateObserver(R);return this._streamObserverPromise.then((function(R){if(pe){R.pause()}R.subscribe(Ae);return R})).catch((function(R){if(Ae.onError!=null){Ae.onError(R)}return Promise.reject(R)}))};Result.prototype._decorateObserver=function(R){var pe=this;var Ae,he,ge;var ye=(Ae=R.onCompleted)!==null&&Ae!==void 0?Ae:DEFAULT_ON_COMPLETED;var me=(he=R.onError)!==null&&he!==void 0?he:DEFAULT_ON_ERROR;var ve=(ge=R.onKeys)!==null&&ge!==void 0?ge:DEFAULT_ON_KEYS;var onCompletedWrapper=function(Ae){pe._releaseConnectionAndGetSummary(Ae).then((function(Ae){if(pe._summary!==null){return ye.call(R,pe._summary)}pe._summary=Ae;return ye.call(R,Ae)})).catch(me)};var onErrorWrapper=function(Ae){pe._connectionHolder.releaseConnection().then((function(){replaceStacktrace(Ae,pe._stack);pe._error=Ae;me.call(R,Ae)})).catch(me)};var onKeysWrapper=function(Ae){pe._keys=Ae;return ve.call(R,Ae)};return{onNext:R.onNext!=null?R.onNext.bind(R):undefined,onKeys:onKeysWrapper,onCompleted:onCompletedWrapper,onError:onErrorWrapper}};Result.prototype._cancel=function(){if(this._summary===null&&this._error===null){this._streamObserverPromise.then((function(R){return R.cancel()})).catch((function(){}))}};Result.prototype._releaseConnectionAndGetSummary=function(R){var pe=be.util.validateQueryAndParameters(this._query,this._parameters,{skipAsserts:true}),Ae=pe.validatedQuery,he=pe.params;var ge=this._connectionHolder;return ge.getConnection().then((function(R){return ge.releaseConnection().then((function(){return R===null||R===void 0?void 0:R.getProtocolVersion()}))}),(function(R){return undefined})).then((function(pe){return new ve.default(Ae,he,R,pe)}))};Result.prototype._createQueuedResultObserver=function(R){var pe=this;function createResolvablePromise(){var R={};R.promise=new Promise((function(pe,Ae){R.resolve=pe;R.reject=Ae}));return R}function isError(R){return R instanceof Error}function dequeue(){var pe;return he(this,void 0,void 0,(function(){var he;return ge(this,(function(ge){switch(ge.label){case 0:if(Ae.length>0){he=(pe=Ae.shift())!==null&&pe!==void 0?pe:(0,Ee.newError)("Unexpected empty buffer",Ee.PROTOCOL_ERROR);R();if(isError(he)){throw he}return[2,he]}ye.resolvable=createResolvablePromise();return[4,ye.resolvable.promise];case 1:return[2,ge.sent()]}}))}))}var Ae=[];var ye={resolvable:null};var me={onNext:function(R){me._push({done:false,value:R})},onCompleted:function(R){me._push({done:true,value:R})},onError:function(R){me._push(R)},_push:function(pe){if(ye.resolvable!==null){var he=ye.resolvable;ye.resolvable=null;if(isError(pe)){he.reject(pe)}else{he.resolve(pe)}}else{Ae.push(pe);R()}},dequeue:dequeue,dequeueUntilDone:function(){return he(pe,void 0,void 0,(function(){var R;return ge(this,(function(pe){switch(pe.label){case 0:if(false){}return[4,dequeue()];case 1:R=pe.sent();if(R.done===true){return[2,R]}return[3,0];case 2:return[2]}}))}))},head:function(){return he(pe,void 0,void 0,(function(){var pe,pe,he;return ge(this,(function(ge){switch(ge.label){case 0:if(Ae.length>0){pe=Ae[0];if(isError(pe)){throw pe}return[2,pe]}ye.resolvable=createResolvablePromise();ge.label=1;case 1:ge.trys.push([1,3,4,5]);return[4,ye.resolvable.promise];case 2:pe=ge.sent();Ae.unshift(pe);return[2,pe];case 3:he=ge.sent();Ae.unshift(he);throw he;case 4:R();return[7];case 5:return[2]}}))}))},get size(){return Ae.length}};return me};return Result}();me=Symbol.toStringTag;function captureStacktrace(){var R=new Error("");if(R.stack!=null){return R.stack.replace(/^Error(\n\r)*/,"")}return null}function replaceStacktrace(R,pe){if(pe!=null){R.stack=R.toString()+"\n"+pe}}pe["default"]=Ce},55739:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var me=this&&this.__spreadArray||function(R,pe,Ae){if(Ae||arguments.length===2)for(var he=0,ge=pe.length,ye;he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isPoint=pe.Point=void 0;var he=Ae(56517);var ge="__isPoint__";var ye=function(){function Point(R,pe,Ae,ge){this.srid=(0,he.assertNumberOrInteger)(R,"SRID");this.x=(0,he.assertNumber)(pe,"X coordinate");this.y=(0,he.assertNumber)(Ae,"Y coordinate");this.z=ge===null||ge===undefined?ge:(0,he.assertNumber)(ge,"Z coordinate");Object.freeze(this)}Point.prototype.toString=function(){return this.z!=null&&!isNaN(this.z)?"Point{srid=".concat(formatAsFloat(this.srid),", x=").concat(formatAsFloat(this.x),", y=").concat(formatAsFloat(this.y),", z=").concat(formatAsFloat(this.z),"}"):"Point{srid=".concat(formatAsFloat(this.srid),", x=").concat(formatAsFloat(this.x),", y=").concat(formatAsFloat(this.y),"}")};return Point}();pe.Point=ye;function formatAsFloat(R){return Number.isInteger(R)?R.toString()+".0":R.toString()}Object.defineProperty(ye.prototype,ge,{value:true,enumerable:false,configurable:false,writable:false});function isPoint(R){var pe=R;return R!=null&&pe[ge]===true}pe.isPoint=isPoint},45797:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};Object.defineProperty(pe,"__esModule",{value:true});pe.isDateTime=pe.DateTime=pe.isLocalDateTime=pe.LocalDateTime=pe.isDate=pe.Date=pe.isTime=pe.Time=pe.isLocalTime=pe.LocalTime=pe.isDuration=pe.Duration=void 0;var ve=ye(Ae(87151));var be=Ae(56517);var Ee=Ae(5542);var we=ye(Ae(6049));var Ce={value:true,enumerable:false,configurable:false,writable:false};var _e="__isDuration__";var Ie="__isLocalTime__";var Se="__isTime__";var Be="__isDate__";var ke="__isLocalDateTime__";var Oe="__isDateTime__";var Re=function(){function Duration(R,pe,Ae,he){this.months=(0,be.assertNumberOrInteger)(R,"Months");this.days=(0,be.assertNumberOrInteger)(pe,"Days");(0,be.assertNumberOrInteger)(Ae,"Seconds");(0,be.assertNumberOrInteger)(he,"Nanoseconds");this.seconds=ve.normalizeSecondsForDuration(Ae,he);this.nanoseconds=ve.normalizeNanosecondsForDuration(he);Object.freeze(this)}Duration.prototype.toString=function(){return ve.durationToIsoString(this.months,this.days,this.seconds,this.nanoseconds)};return Duration}();pe.Duration=Re;Object.defineProperty(Re.prototype,_e,Ce);function isDuration(R){return hasIdentifierProperty(R,_e)}pe.isDuration=isDuration;var Qe=function(){function LocalTime(R,pe,Ae,he){this.hour=ve.assertValidHour(R);this.minute=ve.assertValidMinute(pe);this.second=ve.assertValidSecond(Ae);this.nanosecond=ve.assertValidNanosecond(he);Object.freeze(this)}LocalTime.fromStandardDate=function(R,pe){verifyStandardDateAndNanos(R,pe);var Ae=ve.totalNanoseconds(R,pe);return new LocalTime(R.getHours(),R.getMinutes(),R.getSeconds(),Ae instanceof we.default?Ae.toInt():typeof Ae==="bigint"?(0,we.int)(Ae).toInt():Ae)};LocalTime.prototype.toString=function(){return ve.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)};return LocalTime}();pe.LocalTime=Qe;Object.defineProperty(Qe.prototype,Ie,Ce);function isLocalTime(R){return hasIdentifierProperty(R,Ie)}pe.isLocalTime=isLocalTime;var xe=function(){function Time(R,pe,Ae,he,ge){this.hour=ve.assertValidHour(R);this.minute=ve.assertValidMinute(pe);this.second=ve.assertValidSecond(Ae);this.nanosecond=ve.assertValidNanosecond(he);this.timeZoneOffsetSeconds=(0,be.assertNumberOrInteger)(ge,"Time zone offset in seconds");Object.freeze(this)}Time.fromStandardDate=function(R,pe){verifyStandardDateAndNanos(R,pe);return new Time(R.getHours(),R.getMinutes(),R.getSeconds(),(0,we.toNumber)(ve.totalNanoseconds(R,pe)),ve.timeZoneOffsetInSeconds(R))};Time.prototype.toString=function(){return ve.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)+ve.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds)};return Time}();pe.Time=xe;Object.defineProperty(xe.prototype,Se,Ce);function isTime(R){return hasIdentifierProperty(R,Se)}pe.isTime=isTime;var Pe=function(){function Date(R,pe,Ae){this.year=ve.assertValidYear(R);this.month=ve.assertValidMonth(pe);this.day=ve.assertValidDay(Ae);Object.freeze(this)}Date.fromStandardDate=function(R){verifyStandardDateAndNanos(R);return new Date(R.getFullYear(),R.getMonth()+1,R.getDate())};Date.prototype.toStandardDate=function(){return ve.isoStringToStandardDate(this.toString())};Date.prototype.toString=function(){return ve.dateToIsoString(this.year,this.month,this.day)};return Date}();pe.Date=Pe;Object.defineProperty(Pe.prototype,Be,Ce);function isDate(R){return hasIdentifierProperty(R,Be)}pe.isDate=isDate;var Te=function(){function LocalDateTime(R,pe,Ae,he,ge,ye,me){this.year=ve.assertValidYear(R);this.month=ve.assertValidMonth(pe);this.day=ve.assertValidDay(Ae);this.hour=ve.assertValidHour(he);this.minute=ve.assertValidMinute(ge);this.second=ve.assertValidSecond(ye);this.nanosecond=ve.assertValidNanosecond(me);Object.freeze(this)}LocalDateTime.fromStandardDate=function(R,pe){verifyStandardDateAndNanos(R,pe);return new LocalDateTime(R.getFullYear(),R.getMonth()+1,R.getDate(),R.getHours(),R.getMinutes(),R.getSeconds(),(0,we.toNumber)(ve.totalNanoseconds(R,pe)))};LocalDateTime.prototype.toStandardDate=function(){return ve.isoStringToStandardDate(this.toString())};LocalDateTime.prototype.toString=function(){return localDateTimeToString(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)};return LocalDateTime}();pe.LocalDateTime=Te;Object.defineProperty(Te.prototype,ke,Ce);function isLocalDateTime(R){return hasIdentifierProperty(R,ke)}pe.isLocalDateTime=isLocalDateTime;var De=function(){function DateTime(R,pe,Ae,he,ge,ye,be,Ee,we){this.year=ve.assertValidYear(R);this.month=ve.assertValidMonth(pe);this.day=ve.assertValidDay(Ae);this.hour=ve.assertValidHour(he);this.minute=ve.assertValidMinute(ge);this.second=ve.assertValidSecond(ye);this.nanosecond=ve.assertValidNanosecond(be);var Ce=me(verifyTimeZoneArguments(Ee,we),2),_e=Ce[0],Ie=Ce[1];this.timeZoneOffsetSeconds=_e;this.timeZoneId=Ie!==null&&Ie!==void 0?Ie:undefined;Object.freeze(this)}DateTime.fromStandardDate=function(R,pe){verifyStandardDateAndNanos(R,pe);return new DateTime(R.getFullYear(),R.getMonth()+1,R.getDate(),R.getHours(),R.getMinutes(),R.getSeconds(),(0,we.toNumber)(ve.totalNanoseconds(R,pe)),ve.timeZoneOffsetInSeconds(R),null)};DateTime.prototype.toStandardDate=function(){return ve.toStandardDate(this._toUTC())};DateTime.prototype.toString=function(){var R;var pe=localDateTimeToString(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond);var Ae=this.timeZoneOffsetSeconds!=null?ve.timeZoneOffsetToIsoString((R=this.timeZoneOffsetSeconds)!==null&&R!==void 0?R:0):"";var he=this.timeZoneId!=null?"[".concat(this.timeZoneId,"]"):"";return pe+Ae+he};DateTime.prototype._toUTC=function(){var R;if(this.timeZoneOffsetSeconds===undefined){throw new Error("Requires DateTime created with time zone offset")}var pe=ve.localDateTimeToEpochSecond(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond);var Ae=pe.subtract((R=this.timeZoneOffsetSeconds)!==null&&R!==void 0?R:0);return(0,we.int)(Ae).multiply(1e3).add((0,we.int)(this.nanosecond).div(1e6)).toNumber()};return DateTime}();pe.DateTime=De;Object.defineProperty(De.prototype,Oe,Ce);function isDateTime(R){return hasIdentifierProperty(R,Oe)}pe.isDateTime=isDateTime;function hasIdentifierProperty(R,pe){return R!=null&&R[pe]===true}function localDateTimeToString(R,pe,Ae,he,ge,ye,me){return ve.dateToIsoString(R,pe,Ae)+"T"+ve.timeToIsoString(he,ge,ye,me)}function verifyTimeZoneArguments(R,pe){var Ae=R!==null&&R!==undefined;var he=pe!==null&&pe!==undefined&&pe!=="";if(!Ae&&!he){throw(0,Ee.newError)("Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: ".concat(R," and id: ").concat(pe))}var ge=[undefined,undefined];if(Ae){(0,be.assertNumberOrInteger)(R,"Time zone offset in seconds");ge[0]=R}if(he){(0,be.assertString)(pe,"Time zone ID");ve.assertValidZoneId("Time zone ID",pe);ge[1]=pe}return ge}function verifyStandardDateAndNanos(R,pe){(0,be.assertValidDate)(R,"Standard date");if(pe!==null&&pe!==undefined){(0,be.assertNumberOrInteger)(pe,"Nanosecond")}}},93169:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae=function(){function ManagedTransaction(R){var pe=R.run;this._run=pe}ManagedTransaction.fromTransaction=function(R){return new ManagedTransaction({run:R.run.bind(R)})};ManagedTransaction.prototype.run=function(R,pe){return this._run(R,pe)};return ManagedTransaction}();pe["default"]=Ae},37269:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__assign||function(){ge=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]0||Ae===ve){return Ae}else if(Ae===0||Ae<0){throw new Error("The fetch size can only be a positive value or ".concat(ve," for ALL. However fetchSize = ").concat(Ae))}else{return pe}}pe["default"]=we},42934:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(55065);var ge=Ae(1752);var ye=Ae(50749);var me=he.internal.logger.Logger;var ve=he.error.SERVICE_UNAVAILABLE;var be=30*1e3;var Ee=1e3;var we=2;var Ce=.2;var _e=function(){function RxRetryLogic(R){var pe=R===void 0?{}:R,Ae=pe.maxRetryTimeout,he=Ae===void 0?be:Ae,ge=pe.initialDelay,ye=ge===void 0?Ee:ge,me=pe.delayMultiplier,ve=me===void 0?we:me,_e=pe.delayJitter,Ie=_e===void 0?Ce:_e,Se=pe.logger,Be=Se===void 0?null:Se;this._maxRetryTimeout=valueOrDefault(he,be);this._initialDelay=valueOrDefault(ye,Ee);this._delayMultiplier=valueOrDefault(ve,we);this._delayJitter=valueOrDefault(Ie,Ce);this._logger=Be}RxRetryLogic.prototype.retry=function(R){var pe=this;return R.pipe((0,ye.retryWhen)((function(R){var Ae=[];var me=Date.now();var be=1;var Ee=pe._initialDelay;return R.pipe((0,ye.mergeMap)((function(R){if(!(0,he.isRetriableError)(R)){return(0,ge.throwError)((function(){return R}))}Ae.push(R);if(be>=2&&Date.now()-me>=pe._maxRetryTimeout){var we=(0,he.newError)("Failed after retried for ".concat(be," times in ").concat(pe._maxRetryTimeout," ms. Make sure that your database is online and retry again."),ve);we.seenErrors=Ae;return(0,ge.throwError)((function(){return we}))}var Ce=pe._computeNextDelay(Ee);Ee=Ee*pe._delayMultiplier;be++;if(pe._logger){pe._logger.warn("Transaction failed and will be retried in ".concat(Ce))}return(0,ge.of)(1).pipe((0,ye.delay)(Ce))})))})))};RxRetryLogic.prototype._computeNextDelay=function(R){var pe=R*this._delayJitter;return R-pe+2*pe*Math.random()};return RxRetryLogic}();pe["default"]=_e;function valueOrDefault(R,pe){if(R||R===0){return R}return pe}},70211:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(ve){if(he)throw new TypeError("Generator is already executing.");while(me&&(me=0,ve[0]&&(Ae=0)),Ae)try{if(he=1,ge&&(ye=ve[0]&2?ge["return"]:ve[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,ve[1])).done)return ye;if(ge=0,ye)ve=[ve[0]&2,ye.value];switch(ve[0]){case 0:case 1:ye=ve;break;case 4:Ae.label++;return{value:ve[1],done:false};case 5:Ae.label++;ge=ve[1];ve=[0];continue;case 7:ve=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]="5.23.0"},75070:(R,pe,Ae)=>{"use strict";const he=Ae(12781);const{Buffer:ge}=Ae(14300);const ye=new TextDecoder("utf8",{fatal:true,ignoreBOM:true});class NoFilter extends he.Transform{constructor(R,pe,Ae={}){let he=null;let ye=null;switch(typeof R){case"object":if(ge.isBuffer(R)){he=R}else if(R){Ae=R}break;case"string":he=R;break;case"undefined":break;default:throw new TypeError("Invalid input")}switch(typeof pe){case"object":if(pe){Ae=pe}break;case"string":ye=pe;break;case"undefined":break;default:throw new TypeError("Invalid inputEncoding")}if(!Ae||typeof Ae!=="object"){throw new TypeError("Invalid options")}if(he==null){he=Ae.input}if(ye==null){ye=Ae.inputEncoding}delete Ae.input;delete Ae.inputEncoding;const me=Ae.watchPipe==null?true:Ae.watchPipe;delete Ae.watchPipe;const ve=Boolean(Ae.readError);delete Ae.readError;super(Ae);this.readError=ve;if(me){this.on("pipe",(R=>{const pe=R._readableState.objectMode;if(this.length>0&&pe!==this._readableState.objectMode){throw new Error("Do not switch objectMode in the middle of the stream")}this._readableState.objectMode=pe;this._writableState.objectMode=pe}))}if(he!=null){this.end(he,ye)}}static isNoFilter(R){return R instanceof this}static compare(R,pe){if(!(R instanceof this)){throw new TypeError("Arguments must be NoFilters")}if(R===pe){return 0}return R.compare(pe)}static concat(R,pe){if(!Array.isArray(R)){throw new TypeError("list argument must be an Array of NoFilters")}if(R.length===0||pe===0){return ge.alloc(0)}if(pe==null){pe=R.reduce(((R,pe)=>{if(!(pe instanceof NoFilter)){throw new TypeError("list argument must be an Array of NoFilters")}return R+pe.length}),0)}let Ae=true;let he=true;const ye=R.map((R=>{if(!(R instanceof NoFilter)){throw new TypeError("list argument must be an Array of NoFilters")}const pe=R.slice();if(ge.isBuffer(pe)){he=false}else{Ae=false}return pe}));if(Ae){return ge.concat(ye,pe)}if(he){return[].concat(...ye).slice(0,pe)}throw new Error("Concatenating mixed object and byte streams not supported")}_transform(R,pe,Ae){if(!this._readableState.objectMode&&!ge.isBuffer(R)){R=ge.from(R,pe)}this.push(R);Ae()}_bufArray(){let R=this._readableState.buffer;if(!Array.isArray(R)){let pe=R.head;R=[];while(pe!=null){R.push(pe.data);pe=pe.next}}return R}read(R){const pe=super.read(R);if(pe!=null){this.emit("read",pe);if(this.readError&&pe.length{if(this.length>=R){ge(this.read(R));return}if(this.writableFinished){ye(new Error(`Stream finished before ${R} bytes were available`));return}pe=pe=>{if(this.length>=R){ge(this.read(R))}};Ae=()=>{ye(new Error(`Stream finished before ${R} bytes were available`))};he=ye;this.on("readable",pe);this.on("error",he);this.on("finish",Ae)})).finally((()=>{if(pe){this.removeListener("readable",pe);this.removeListener("error",he);this.removeListener("finish",Ae)}}))}promise(R){let pe=false;return new Promise(((Ae,he)=>{this.on("finish",(()=>{const he=this.read();if(R!=null&&!pe){pe=true;R(null,he)}Ae(he)}));this.on("error",(Ae=>{if(R!=null&&!pe){pe=true;R(Ae)}he(Ae)}))}))}compare(R){if(!(R instanceof NoFilter)){throw new TypeError("Arguments must be NoFilters")}if(this===R){return 0}const pe=this.slice();const Ae=R.slice();if(ge.isBuffer(pe)&&ge.isBuffer(Ae)){return pe.compare(Ae)}throw new Error("Cannot compare streams in object mode")}equals(R){return this.compare(R)===0}slice(R,pe){if(this._readableState.objectMode){return this._bufArray().slice(R,pe)}const Ae=this._bufArray();switch(Ae.length){case 0:return ge.alloc(0);case 1:return Ae[0].slice(R,pe);default:{const he=ge.concat(Ae);return he.slice(R,pe)}}}get(R){return this.slice()[R]}toJSON(){const R=this.slice();if(ge.isBuffer(R)){return R.toJSON()}return R}toString(R,pe,Ae){const he=this.slice(pe,Ae);if(!ge.isBuffer(he)){return JSON.stringify(he)}if(!R||R==="utf8"){return ye.decode(he)}return he.toString(R)}[Symbol.for("nodejs.util.inspect.custom")](R,pe){const Ae=this._bufArray();const he=Ae.map((R=>{if(ge.isBuffer(R)){return pe.stylize(R.toString("hex"),"string")}return JSON.stringify(R)})).join(", ");return`${this.constructor.name} [${he}]`}get length(){return this._readableState.length}writeBigInt(R){let pe=R.toString(16);if(R<0){const Ae=BigInt(Math.floor(pe.length/2));const he=BigInt(1)<{"use strict";const{Deflate:he,deflate:ge,deflateRaw:ye,gzip:me}=Ae(17265);const{Inflate:ve,inflate:be,inflateRaw:Ee,ungzip:we}=Ae(96522);const Ce=Ae(58282);R.exports.Deflate=he;R.exports.deflate=ge;R.exports.deflateRaw=ye;R.exports.gzip=me;R.exports.Inflate=ve;R.exports.inflate=be;R.exports.inflateRaw=Ee;R.exports.ungzip=we;R.exports.constants=Ce},17265:(R,pe,Ae)=>{"use strict";const he=Ae(70978);const ge=Ae(5483);const ye=Ae(42380);const me=Ae(1890);const ve=Ae(86442);const be=Object.prototype.toString;const{Z_NO_FLUSH:Ee,Z_SYNC_FLUSH:we,Z_FULL_FLUSH:Ce,Z_FINISH:_e,Z_OK:Ie,Z_STREAM_END:Se,Z_DEFAULT_COMPRESSION:Be,Z_DEFAULT_STRATEGY:ke,Z_DEFLATED:Oe}=Ae(58282);function Deflate(R){this.options=ge.assign({level:Be,method:Oe,chunkSize:16384,windowBits:15,memLevel:8,strategy:ke},R||{});let pe=this.options;if(pe.raw&&pe.windowBits>0){pe.windowBits=-pe.windowBits}else if(pe.gzip&&pe.windowBits>0&&pe.windowBits<16){pe.windowBits+=16}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new ve;this.strm.avail_out=0;let Ae=he.deflateInit2(this.strm,pe.level,pe.method,pe.windowBits,pe.memLevel,pe.strategy);if(Ae!==Ie){throw new Error(me[Ae])}if(pe.header){he.deflateSetHeader(this.strm,pe.header)}if(pe.dictionary){let R;if(typeof pe.dictionary==="string"){R=ye.string2buf(pe.dictionary)}else if(be.call(pe.dictionary)==="[object ArrayBuffer]"){R=new Uint8Array(pe.dictionary)}else{R=pe.dictionary}Ae=he.deflateSetDictionary(this.strm,R);if(Ae!==Ie){throw new Error(me[Ae])}this._dict_set=true}}Deflate.prototype.push=function(R,pe){const Ae=this.strm;const ge=this.options.chunkSize;let me,ve;if(this.ended){return false}if(pe===~~pe)ve=pe;else ve=pe===true?_e:Ee;if(typeof R==="string"){Ae.input=ye.string2buf(R)}else if(be.call(R)==="[object ArrayBuffer]"){Ae.input=new Uint8Array(R)}else{Ae.input=R}Ae.next_in=0;Ae.avail_in=Ae.input.length;for(;;){if(Ae.avail_out===0){Ae.output=new Uint8Array(ge);Ae.next_out=0;Ae.avail_out=ge}if((ve===we||ve===Ce)&&Ae.avail_out<=6){this.onData(Ae.output.subarray(0,Ae.next_out));Ae.avail_out=0;continue}me=he.deflate(Ae,ve);if(me===Se){if(Ae.next_out>0){this.onData(Ae.output.subarray(0,Ae.next_out))}me=he.deflateEnd(this.strm);this.onEnd(me);this.ended=true;return me===Ie}if(Ae.avail_out===0){this.onData(Ae.output);continue}if(ve>0&&Ae.next_out>0){this.onData(Ae.output.subarray(0,Ae.next_out));Ae.avail_out=0;continue}if(Ae.avail_in===0)break}return true};Deflate.prototype.onData=function(R){this.chunks.push(R)};Deflate.prototype.onEnd=function(R){if(R===Ie){this.result=ge.flattenChunks(this.chunks)}this.chunks=[];this.err=R;this.msg=this.strm.msg};function deflate(R,pe){const Ae=new Deflate(pe);Ae.push(R,true);if(Ae.err){throw Ae.msg||me[Ae.err]}return Ae.result}function deflateRaw(R,pe){pe=pe||{};pe.raw=true;return deflate(R,pe)}function gzip(R,pe){pe=pe||{};pe.gzip=true;return deflate(R,pe)}R.exports.Deflate=Deflate;R.exports.deflate=deflate;R.exports.deflateRaw=deflateRaw;R.exports.gzip=gzip;R.exports.constants=Ae(58282)},96522:(R,pe,Ae)=>{"use strict";const he=Ae(90409);const ge=Ae(5483);const ye=Ae(42380);const me=Ae(1890);const ve=Ae(86442);const be=Ae(35105);const Ee=Object.prototype.toString;const{Z_NO_FLUSH:we,Z_FINISH:Ce,Z_OK:_e,Z_STREAM_END:Ie,Z_NEED_DICT:Se,Z_STREAM_ERROR:Be,Z_DATA_ERROR:ke,Z_MEM_ERROR:Oe}=Ae(58282);function Inflate(R){this.options=ge.assign({chunkSize:1024*64,windowBits:15,to:""},R||{});const pe=this.options;if(pe.raw&&pe.windowBits>=0&&pe.windowBits<16){pe.windowBits=-pe.windowBits;if(pe.windowBits===0){pe.windowBits=-15}}if(pe.windowBits>=0&&pe.windowBits<16&&!(R&&R.windowBits)){pe.windowBits+=32}if(pe.windowBits>15&&pe.windowBits<48){if((pe.windowBits&15)===0){pe.windowBits|=15}}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new ve;this.strm.avail_out=0;let Ae=he.inflateInit2(this.strm,pe.windowBits);if(Ae!==_e){throw new Error(me[Ae])}this.header=new be;he.inflateGetHeader(this.strm,this.header);if(pe.dictionary){if(typeof pe.dictionary==="string"){pe.dictionary=ye.string2buf(pe.dictionary)}else if(Ee.call(pe.dictionary)==="[object ArrayBuffer]"){pe.dictionary=new Uint8Array(pe.dictionary)}if(pe.raw){Ae=he.inflateSetDictionary(this.strm,pe.dictionary);if(Ae!==_e){throw new Error(me[Ae])}}}}Inflate.prototype.push=function(R,pe){const Ae=this.strm;const ge=this.options.chunkSize;const me=this.options.dictionary;let ve,be,Re;if(this.ended)return false;if(pe===~~pe)be=pe;else be=pe===true?Ce:we;if(Ee.call(R)==="[object ArrayBuffer]"){Ae.input=new Uint8Array(R)}else{Ae.input=R}Ae.next_in=0;Ae.avail_in=Ae.input.length;for(;;){if(Ae.avail_out===0){Ae.output=new Uint8Array(ge);Ae.next_out=0;Ae.avail_out=ge}ve=he.inflate(Ae,be);if(ve===Se&&me){ve=he.inflateSetDictionary(Ae,me);if(ve===_e){ve=he.inflate(Ae,be)}else if(ve===ke){ve=Se}}while(Ae.avail_in>0&&ve===Ie&&Ae.state.wrap>0&&R[Ae.next_in]!==0){he.inflateReset(Ae);ve=he.inflate(Ae,be)}switch(ve){case Be:case ke:case Se:case Oe:this.onEnd(ve);this.ended=true;return false}Re=Ae.avail_out;if(Ae.next_out){if(Ae.avail_out===0||ve===Ie){if(this.options.to==="string"){let R=ye.utf8border(Ae.output,Ae.next_out);let pe=Ae.next_out-R;let he=ye.buf2string(Ae.output,R);Ae.next_out=pe;Ae.avail_out=ge-pe;if(pe)Ae.output.set(Ae.output.subarray(R,R+pe),0);this.onData(he)}else{this.onData(Ae.output.length===Ae.next_out?Ae.output:Ae.output.subarray(0,Ae.next_out))}}}if(ve===_e&&Re===0)continue;if(ve===Ie){ve=he.inflateEnd(this.strm);this.onEnd(ve);this.ended=true;return true}if(Ae.avail_in===0)break}return true};Inflate.prototype.onData=function(R){this.chunks.push(R)};Inflate.prototype.onEnd=function(R){if(R===_e){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=ge.flattenChunks(this.chunks)}}this.chunks=[];this.err=R;this.msg=this.strm.msg};function inflate(R,pe){const Ae=new Inflate(pe);Ae.push(R);if(Ae.err)throw Ae.msg||me[Ae.err];return Ae.result}function inflateRaw(R,pe){pe=pe||{};pe.raw=true;return inflate(R,pe)}R.exports.Inflate=Inflate;R.exports.inflate=inflate;R.exports.inflateRaw=inflateRaw;R.exports.ungzip=inflate;R.exports.constants=Ae(58282)},5483:R=>{"use strict";const _has=(R,pe)=>Object.prototype.hasOwnProperty.call(R,pe);R.exports.assign=function(R){const pe=Array.prototype.slice.call(arguments,1);while(pe.length){const Ae=pe.shift();if(!Ae){continue}if(typeof Ae!=="object"){throw new TypeError(Ae+"must be non-object")}for(const pe in Ae){if(_has(Ae,pe)){R[pe]=Ae[pe]}}}return R};R.exports.flattenChunks=R=>{let pe=0;for(let Ae=0,he=R.length;Ae{"use strict";let pe=true;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(R){pe=false}const Ae=new Uint8Array(256);for(let R=0;R<256;R++){Ae[R]=R>=252?6:R>=248?5:R>=240?4:R>=224?3:R>=192?2:1}Ae[254]=Ae[254]=1;R.exports.string2buf=R=>{if(typeof TextEncoder==="function"&&TextEncoder.prototype.encode){return(new TextEncoder).encode(R)}let pe,Ae,he,ge,ye,me=R.length,ve=0;for(ge=0;ge>>6;pe[ye++]=128|Ae&63}else if(Ae<65536){pe[ye++]=224|Ae>>>12;pe[ye++]=128|Ae>>>6&63;pe[ye++]=128|Ae&63}else{pe[ye++]=240|Ae>>>18;pe[ye++]=128|Ae>>>12&63;pe[ye++]=128|Ae>>>6&63;pe[ye++]=128|Ae&63}}return pe};const buf2binstring=(R,Ae)=>{if(Ae<65534){if(R.subarray&&pe){return String.fromCharCode.apply(null,R.length===Ae?R:R.subarray(0,Ae))}}let he="";for(let pe=0;pe{const he=pe||R.length;if(typeof TextDecoder==="function"&&TextDecoder.prototype.decode){return(new TextDecoder).decode(R.subarray(0,pe))}let ge,ye;const me=new Array(he*2);for(ye=0,ge=0;ge4){me[ye++]=65533;ge+=ve-1;continue}pe&=ve===2?31:ve===3?15:7;while(ve>1&&ge1){me[ye++]=65533;continue}if(pe<65536){me[ye++]=pe}else{pe-=65536;me[ye++]=55296|pe>>10&1023;me[ye++]=56320|pe&1023}}return buf2binstring(me,ye)};R.exports.utf8border=(R,pe)=>{pe=pe||R.length;if(pe>R.length){pe=R.length}let he=pe-1;while(he>=0&&(R[he]&192)===128){he--}if(he<0){return pe}if(he===0){return pe}return he+Ae[R[he]]>pe?he:pe}},86924:R=>{"use strict";const adler32=(R,pe,Ae,he)=>{let ge=R&65535|0,ye=R>>>16&65535|0,me=0;while(Ae!==0){me=Ae>2e3?2e3:Ae;Ae-=me;do{ge=ge+pe[he++]|0;ye=ye+ge|0}while(--me);ge%=65521;ye%=65521}return ge|ye<<16|0};R.exports=adler32},58282:R=>{"use strict";R.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}},87242:R=>{"use strict";const makeTable=()=>{let R,pe=[];for(var Ae=0;Ae<256;Ae++){R=Ae;for(var he=0;he<8;he++){R=R&1?3988292384^R>>>1:R>>>1}pe[Ae]=R}return pe};const pe=new Uint32Array(makeTable());const crc32=(R,Ae,he,ge)=>{const ye=pe;const me=ge+he;R^=-1;for(let pe=ge;pe>>8^ye[(R^Ae[pe])&255]}return R^-1};R.exports=crc32},70978:(R,pe,Ae)=>{"use strict";const{_tr_init:he,_tr_stored_block:ge,_tr_flush_block:ye,_tr_tally:me,_tr_align:ve}=Ae(78754);const be=Ae(86924);const Ee=Ae(87242);const we=Ae(1890);const{Z_NO_FLUSH:Ce,Z_PARTIAL_FLUSH:_e,Z_FULL_FLUSH:Ie,Z_FINISH:Se,Z_BLOCK:Be,Z_OK:ke,Z_STREAM_END:Oe,Z_STREAM_ERROR:Re,Z_DATA_ERROR:Qe,Z_BUF_ERROR:xe,Z_DEFAULT_COMPRESSION:Pe,Z_FILTERED:Te,Z_HUFFMAN_ONLY:De,Z_RLE:Ne,Z_FIXED:Me,Z_DEFAULT_STRATEGY:je,Z_UNKNOWN:Fe,Z_DEFLATED:Le}=Ae(58282);const Ue=9;const He=15;const Je=8;const We=29;const Ve=256;const Ke=Ve+1+We;const Ge=30;const Ye=19;const qe=2*Ke+1;const $e=15;const ze=3;const Xe=258;const Ze=Xe+ze+1;const et=32;const tt=42;const rt=57;const nt=69;const it=73;const ot=91;const st=103;const at=113;const ct=666;const ut=1;const lt=2;const dt=3;const ft=4;const pt=3;const err=(R,pe)=>{R.msg=we[pe];return pe};const rank=R=>R*2-(R>4?9:0);const zero=R=>{let pe=R.length;while(--pe>=0){R[pe]=0}};const slide_hash=R=>{let pe,Ae;let he;let ge=R.w_size;pe=R.hash_size;he=pe;do{Ae=R.head[--he];R.head[he]=Ae>=ge?Ae-ge:0}while(--pe);pe=ge;he=pe;do{Ae=R.prev[--he];R.prev[he]=Ae>=ge?Ae-ge:0}while(--pe)};let HASH_ZLIB=(R,pe,Ae)=>(pe<{const pe=R.state;let Ae=pe.pending;if(Ae>R.avail_out){Ae=R.avail_out}if(Ae===0){return}R.output.set(pe.pending_buf.subarray(pe.pending_out,pe.pending_out+Ae),R.next_out);R.next_out+=Ae;pe.pending_out+=Ae;R.total_out+=Ae;R.avail_out-=Ae;pe.pending-=Ae;if(pe.pending===0){pe.pending_out=0}};const flush_block_only=(R,pe)=>{ye(R,R.block_start>=0?R.block_start:-1,R.strstart-R.block_start,pe);R.block_start=R.strstart;flush_pending(R.strm)};const put_byte=(R,pe)=>{R.pending_buf[R.pending++]=pe};const putShortMSB=(R,pe)=>{R.pending_buf[R.pending++]=pe>>>8&255;R.pending_buf[R.pending++]=pe&255};const read_buf=(R,pe,Ae,he)=>{let ge=R.avail_in;if(ge>he){ge=he}if(ge===0){return 0}R.avail_in-=ge;pe.set(R.input.subarray(R.next_in,R.next_in+ge),Ae);if(R.state.wrap===1){R.adler=be(R.adler,pe,ge,Ae)}else if(R.state.wrap===2){R.adler=Ee(R.adler,pe,ge,Ae)}R.next_in+=ge;R.total_in+=ge;return ge};const longest_match=(R,pe)=>{let Ae=R.max_chain_length;let he=R.strstart;let ge;let ye;let me=R.prev_length;let ve=R.nice_match;const be=R.strstart>R.w_size-Ze?R.strstart-(R.w_size-Ze):0;const Ee=R.window;const we=R.w_mask;const Ce=R.prev;const _e=R.strstart+Xe;let Ie=Ee[he+me-1];let Se=Ee[he+me];if(R.prev_length>=R.good_match){Ae>>=2}if(ve>R.lookahead){ve=R.lookahead}do{ge=pe;if(Ee[ge+me]!==Se||Ee[ge+me-1]!==Ie||Ee[ge]!==Ee[he]||Ee[++ge]!==Ee[he+1]){continue}he+=2;ge++;do{}while(Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&Ee[++he]===Ee[++ge]&&he<_e);ye=Xe-(_e-he);he=_e-Xe;if(ye>me){R.match_start=pe;me=ye;if(ye>=ve){break}Ie=Ee[he+me-1];Se=Ee[he+me]}}while((pe=Ce[pe&we])>be&&--Ae!==0);if(me<=R.lookahead){return me}return R.lookahead};const fill_window=R=>{const pe=R.w_size;let Ae,he,ge;do{he=R.window_size-R.lookahead-R.strstart;if(R.strstart>=pe+(pe-Ze)){R.window.set(R.window.subarray(pe,pe+pe-he),0);R.match_start-=pe;R.strstart-=pe;R.block_start-=pe;if(R.insert>R.strstart){R.insert=R.strstart}slide_hash(R);he+=pe}if(R.strm.avail_in===0){break}Ae=read_buf(R.strm,R.window,R.strstart+R.lookahead,he);R.lookahead+=Ae;if(R.lookahead+R.insert>=ze){ge=R.strstart-R.insert;R.ins_h=R.window[ge];R.ins_h=At(R,R.ins_h,R.window[ge+1]);while(R.insert){R.ins_h=At(R,R.ins_h,R.window[ge+ze-1]);R.prev[ge&R.w_mask]=R.head[R.ins_h];R.head[R.ins_h]=ge;ge++;R.insert--;if(R.lookahead+R.insert{let Ae=R.pending_buf_size-5>R.w_size?R.w_size:R.pending_buf_size-5;let he,ye,me,ve=0;let be=R.strm.avail_in;do{he=65535;me=R.bi_valid+42>>3;if(R.strm.avail_outye+R.strm.avail_in){he=ye+R.strm.avail_in}if(he>me){he=me}if(he>8;R.pending_buf[R.pending-2]=~he;R.pending_buf[R.pending-1]=~he>>8;flush_pending(R.strm);if(ye){if(ye>he){ye=he}R.strm.output.set(R.window.subarray(R.block_start,R.block_start+ye),R.strm.next_out);R.strm.next_out+=ye;R.strm.avail_out-=ye;R.strm.total_out+=ye;R.block_start+=ye;he-=ye}if(he){read_buf(R.strm,R.strm.output,R.strm.next_out,he);R.strm.next_out+=he;R.strm.avail_out-=he;R.strm.total_out+=he}}while(ve===0);be-=R.strm.avail_in;if(be){if(be>=R.w_size){R.matches=2;R.window.set(R.strm.input.subarray(R.strm.next_in-R.w_size,R.strm.next_in),0);R.strstart=R.w_size;R.insert=R.strstart}else{if(R.window_size-R.strstart<=be){R.strstart-=R.w_size;R.window.set(R.window.subarray(R.w_size,R.w_size+R.strstart),0);if(R.matches<2){R.matches++}if(R.insert>R.strstart){R.insert=R.strstart}}R.window.set(R.strm.input.subarray(R.strm.next_in-be,R.strm.next_in),R.strstart);R.strstart+=be;R.insert+=be>R.w_size-R.insert?R.w_size-R.insert:be}R.block_start=R.strstart}if(R.high_waterme&&R.block_start>=R.w_size){R.block_start-=R.w_size;R.strstart-=R.w_size;R.window.set(R.window.subarray(R.w_size,R.w_size+R.strstart),0);if(R.matches<2){R.matches++}me+=R.w_size;if(R.insert>R.strstart){R.insert=R.strstart}}if(me>R.strm.avail_in){me=R.strm.avail_in}if(me){read_buf(R.strm,R.window,R.strstart,me);R.strstart+=me;R.insert+=me>R.w_size-R.insert?R.w_size-R.insert:me}if(R.high_water>3;me=R.pending_buf_size-me>65535?65535:R.pending_buf_size-me;Ae=me>R.w_size?R.w_size:me;ye=R.strstart-R.block_start;if(ye>=Ae||(ye||pe===Se)&&pe!==Ce&&R.strm.avail_in===0&&ye<=me){he=ye>me?me:ye;ve=pe===Se&&R.strm.avail_in===0&&he===ye?1:0;ge(R,R.block_start,he,ve);R.block_start+=he;flush_pending(R.strm)}return ve?dt:ut};const deflate_fast=(R,pe)=>{let Ae;let he;for(;;){if(R.lookahead=ze){R.ins_h=At(R,R.ins_h,R.window[R.strstart+ze-1]);Ae=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h];R.head[R.ins_h]=R.strstart}if(Ae!==0&&R.strstart-Ae<=R.w_size-Ze){R.match_length=longest_match(R,Ae)}if(R.match_length>=ze){he=me(R,R.strstart-R.match_start,R.match_length-ze);R.lookahead-=R.match_length;if(R.match_length<=R.max_lazy_match&&R.lookahead>=ze){R.match_length--;do{R.strstart++;R.ins_h=At(R,R.ins_h,R.window[R.strstart+ze-1]);Ae=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h];R.head[R.ins_h]=R.strstart}while(--R.match_length!==0);R.strstart++}else{R.strstart+=R.match_length;R.match_length=0;R.ins_h=R.window[R.strstart];R.ins_h=At(R,R.ins_h,R.window[R.strstart+1])}}else{he=me(R,0,R.window[R.strstart]);R.lookahead--;R.strstart++}if(he){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}}R.insert=R.strstart{let Ae;let he;let ge;for(;;){if(R.lookahead=ze){R.ins_h=At(R,R.ins_h,R.window[R.strstart+ze-1]);Ae=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h];R.head[R.ins_h]=R.strstart}R.prev_length=R.match_length;R.prev_match=R.match_start;R.match_length=ze-1;if(Ae!==0&&R.prev_length4096)){R.match_length=ze-1}}if(R.prev_length>=ze&&R.match_length<=R.prev_length){ge=R.strstart+R.lookahead-ze;he=me(R,R.strstart-1-R.prev_match,R.prev_length-ze);R.lookahead-=R.prev_length-1;R.prev_length-=2;do{if(++R.strstart<=ge){R.ins_h=At(R,R.ins_h,R.window[R.strstart+ze-1]);Ae=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h];R.head[R.ins_h]=R.strstart}}while(--R.prev_length!==0);R.match_available=0;R.match_length=ze-1;R.strstart++;if(he){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}}else if(R.match_available){he=me(R,0,R.window[R.strstart-1]);if(he){flush_block_only(R,false)}R.strstart++;R.lookahead--;if(R.strm.avail_out===0){return ut}}else{R.match_available=1;R.strstart++;R.lookahead--}}if(R.match_available){he=me(R,0,R.window[R.strstart-1]);R.match_available=0}R.insert=R.strstart{let Ae;let he;let ge,ye;const ve=R.window;for(;;){if(R.lookahead<=Xe){fill_window(R);if(R.lookahead<=Xe&&pe===Ce){return ut}if(R.lookahead===0){break}}R.match_length=0;if(R.lookahead>=ze&&R.strstart>0){ge=R.strstart-1;he=ve[ge];if(he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]){ye=R.strstart+Xe;do{}while(he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&he===ve[++ge]&&geR.lookahead){R.match_length=R.lookahead}}}if(R.match_length>=ze){Ae=me(R,1,R.match_length-ze);R.lookahead-=R.match_length;R.strstart+=R.match_length;R.match_length=0}else{Ae=me(R,0,R.window[R.strstart]);R.lookahead--;R.strstart++}if(Ae){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}}R.insert=0;if(pe===Se){flush_block_only(R,true);if(R.strm.avail_out===0){return dt}return ft}if(R.sym_next){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}return lt};const deflate_huff=(R,pe)=>{let Ae;for(;;){if(R.lookahead===0){fill_window(R);if(R.lookahead===0){if(pe===Ce){return ut}break}}R.match_length=0;Ae=me(R,0,R.window[R.strstart]);R.lookahead--;R.strstart++;if(Ae){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}}R.insert=0;if(pe===Se){flush_block_only(R,true);if(R.strm.avail_out===0){return dt}return ft}if(R.sym_next){flush_block_only(R,false);if(R.strm.avail_out===0){return ut}}return lt};function Config(R,pe,Ae,he,ge){this.good_length=R;this.max_lazy=pe;this.nice_length=Ae;this.max_chain=he;this.func=ge}const ht=[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=R=>{R.window_size=2*R.w_size;zero(R.head);R.max_lazy_match=ht[R.level].max_lazy;R.good_match=ht[R.level].good_length;R.nice_match=ht[R.level].nice_length;R.max_chain_length=ht[R.level].max_chain;R.strstart=0;R.block_start=0;R.lookahead=0;R.insert=0;R.match_length=R.prev_length=ze-1;R.match_available=0;R.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=Le;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(qe*2);this.dyn_dtree=new Uint16Array((2*Ge+1)*2);this.bl_tree=new Uint16Array((2*Ye+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($e+1);this.heap=new Uint16Array(2*Ke+1);zero(this.heap);this.heap_len=0;this.heap_max=0;this.depth=new Uint16Array(2*Ke+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=R=>{if(!R){return 1}const pe=R.state;if(!pe||pe.strm!==R||pe.status!==tt&&pe.status!==rt&&pe.status!==nt&&pe.status!==it&&pe.status!==ot&&pe.status!==st&&pe.status!==at&&pe.status!==ct){return 1}return 0};const deflateResetKeep=R=>{if(deflateStateCheck(R)){return err(R,Re)}R.total_in=R.total_out=0;R.data_type=Fe;const pe=R.state;pe.pending=0;pe.pending_out=0;if(pe.wrap<0){pe.wrap=-pe.wrap}pe.status=pe.wrap===2?rt:pe.wrap?tt:at;R.adler=pe.wrap===2?0:1;pe.last_flush=-2;he(pe);return ke};const deflateReset=R=>{const pe=deflateResetKeep(R);if(pe===ke){lm_init(R.state)}return pe};const deflateSetHeader=(R,pe)=>{if(deflateStateCheck(R)||R.state.wrap!==2){return Re}R.state.gzhead=pe;return ke};const deflateInit2=(R,pe,Ae,he,ge,ye)=>{if(!R){return Re}let me=1;if(pe===Pe){pe=6}if(he<0){me=0;he=-he}else if(he>15){me=2;he-=16}if(ge<1||ge>Ue||Ae!==Le||he<8||he>15||pe<0||pe>9||ye<0||ye>Me||he===8&&me!==1){return err(R,Re)}if(he===8){he=9}const ve=new DeflateState;R.state=ve;ve.strm=R;ve.status=tt;ve.wrap=me;ve.gzhead=null;ve.w_bits=he;ve.w_size=1<deflateInit2(R,pe,Le,He,Je,je);const deflate=(R,pe)=>{if(deflateStateCheck(R)||pe>Be||pe<0){return R?err(R,Re):Re}const Ae=R.state;if(!R.output||R.avail_in!==0&&!R.input||Ae.status===ct&&pe!==Se){return err(R,R.avail_out===0?xe:Re)}const he=Ae.last_flush;Ae.last_flush=pe;if(Ae.pending!==0){flush_pending(R);if(R.avail_out===0){Ae.last_flush=-1;return ke}}else if(R.avail_in===0&&rank(pe)<=rank(he)&&pe!==Se){return err(R,xe)}if(Ae.status===ct&&R.avail_in!==0){return err(R,xe)}if(Ae.status===tt&&Ae.wrap===0){Ae.status=at}if(Ae.status===tt){let pe=Le+(Ae.w_bits-8<<4)<<8;let he=-1;if(Ae.strategy>=De||Ae.level<2){he=0}else if(Ae.level<6){he=1}else if(Ae.level===6){he=2}else{he=3}pe|=he<<6;if(Ae.strstart!==0){pe|=et}pe+=31-pe%31;putShortMSB(Ae,pe);if(Ae.strstart!==0){putShortMSB(Ae,R.adler>>>16);putShortMSB(Ae,R.adler&65535)}R.adler=1;Ae.status=at;flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}}if(Ae.status===rt){R.adler=0;put_byte(Ae,31);put_byte(Ae,139);put_byte(Ae,8);if(!Ae.gzhead){put_byte(Ae,0);put_byte(Ae,0);put_byte(Ae,0);put_byte(Ae,0);put_byte(Ae,0);put_byte(Ae,Ae.level===9?2:Ae.strategy>=De||Ae.level<2?4:0);put_byte(Ae,pt);Ae.status=at;flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}}else{put_byte(Ae,(Ae.gzhead.text?1:0)+(Ae.gzhead.hcrc?2:0)+(!Ae.gzhead.extra?0:4)+(!Ae.gzhead.name?0:8)+(!Ae.gzhead.comment?0:16));put_byte(Ae,Ae.gzhead.time&255);put_byte(Ae,Ae.gzhead.time>>8&255);put_byte(Ae,Ae.gzhead.time>>16&255);put_byte(Ae,Ae.gzhead.time>>24&255);put_byte(Ae,Ae.level===9?2:Ae.strategy>=De||Ae.level<2?4:0);put_byte(Ae,Ae.gzhead.os&255);if(Ae.gzhead.extra&&Ae.gzhead.extra.length){put_byte(Ae,Ae.gzhead.extra.length&255);put_byte(Ae,Ae.gzhead.extra.length>>8&255)}if(Ae.gzhead.hcrc){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending,0)}Ae.gzindex=0;Ae.status=nt}}if(Ae.status===nt){if(Ae.gzhead.extra){let pe=Ae.pending;let he=(Ae.gzhead.extra.length&65535)-Ae.gzindex;while(Ae.pending+he>Ae.pending_buf_size){let ge=Ae.pending_buf_size-Ae.pending;Ae.pending_buf.set(Ae.gzhead.extra.subarray(Ae.gzindex,Ae.gzindex+ge),Ae.pending);Ae.pending=Ae.pending_buf_size;if(Ae.gzhead.hcrc&&Ae.pending>pe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}Ae.gzindex+=ge;flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}pe=0;he-=ge}let ge=new Uint8Array(Ae.gzhead.extra);Ae.pending_buf.set(ge.subarray(Ae.gzindex,Ae.gzindex+he),Ae.pending);Ae.pending+=he;if(Ae.gzhead.hcrc&&Ae.pending>pe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}Ae.gzindex=0}Ae.status=it}if(Ae.status===it){if(Ae.gzhead.name){let pe=Ae.pending;let he;do{if(Ae.pending===Ae.pending_buf_size){if(Ae.gzhead.hcrc&&Ae.pending>pe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}pe=0}if(Ae.gzindexpe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}Ae.gzindex=0}Ae.status=ot}if(Ae.status===ot){if(Ae.gzhead.comment){let pe=Ae.pending;let he;do{if(Ae.pending===Ae.pending_buf_size){if(Ae.gzhead.hcrc&&Ae.pending>pe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}pe=0}if(Ae.gzindexpe){R.adler=Ee(R.adler,Ae.pending_buf,Ae.pending-pe,pe)}}Ae.status=st}if(Ae.status===st){if(Ae.gzhead.hcrc){if(Ae.pending+2>Ae.pending_buf_size){flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}}put_byte(Ae,R.adler&255);put_byte(Ae,R.adler>>8&255);R.adler=0}Ae.status=at;flush_pending(R);if(Ae.pending!==0){Ae.last_flush=-1;return ke}}if(R.avail_in!==0||Ae.lookahead!==0||pe!==Ce&&Ae.status!==ct){let he=Ae.level===0?deflate_stored(Ae,pe):Ae.strategy===De?deflate_huff(Ae,pe):Ae.strategy===Ne?deflate_rle(Ae,pe):ht[Ae.level].func(Ae,pe);if(he===dt||he===ft){Ae.status=ct}if(he===ut||he===dt){if(R.avail_out===0){Ae.last_flush=-1}return ke}if(he===lt){if(pe===_e){ve(Ae)}else if(pe!==Be){ge(Ae,0,0,false);if(pe===Ie){zero(Ae.head);if(Ae.lookahead===0){Ae.strstart=0;Ae.block_start=0;Ae.insert=0}}}flush_pending(R);if(R.avail_out===0){Ae.last_flush=-1;return ke}}}if(pe!==Se){return ke}if(Ae.wrap<=0){return Oe}if(Ae.wrap===2){put_byte(Ae,R.adler&255);put_byte(Ae,R.adler>>8&255);put_byte(Ae,R.adler>>16&255);put_byte(Ae,R.adler>>24&255);put_byte(Ae,R.total_in&255);put_byte(Ae,R.total_in>>8&255);put_byte(Ae,R.total_in>>16&255);put_byte(Ae,R.total_in>>24&255)}else{putShortMSB(Ae,R.adler>>>16);putShortMSB(Ae,R.adler&65535)}flush_pending(R);if(Ae.wrap>0){Ae.wrap=-Ae.wrap}return Ae.pending!==0?ke:Oe};const deflateEnd=R=>{if(deflateStateCheck(R)){return Re}const pe=R.state.status;R.state=null;return pe===at?err(R,Qe):ke};const deflateSetDictionary=(R,pe)=>{let Ae=pe.length;if(deflateStateCheck(R)){return Re}const he=R.state;const ge=he.wrap;if(ge===2||ge===1&&he.status!==tt||he.lookahead){return Re}if(ge===1){R.adler=be(R.adler,pe,Ae,0)}he.wrap=0;if(Ae>=he.w_size){if(ge===0){zero(he.head);he.strstart=0;he.block_start=0;he.insert=0}let R=new Uint8Array(he.w_size);R.set(pe.subarray(Ae-he.w_size,Ae),0);pe=R;Ae=he.w_size}const ye=R.avail_in;const me=R.next_in;const ve=R.input;R.avail_in=Ae;R.next_in=0;R.input=pe;fill_window(he);while(he.lookahead>=ze){let R=he.strstart;let pe=he.lookahead-(ze-1);do{he.ins_h=At(he,he.ins_h,he.window[R+ze-1]);he.prev[R&he.w_mask]=he.head[he.ins_h];he.head[he.ins_h]=R;R++}while(--pe);he.strstart=R;he.lookahead=ze-1;fill_window(he)}he.strstart+=he.lookahead;he.block_start=he.strstart;he.insert=he.lookahead;he.lookahead=0;he.match_length=he.prev_length=ze-1;he.match_available=0;R.next_in=me;R.input=ve;R.avail_in=ye;he.wrap=ge;return ke};R.exports.deflateInit=deflateInit;R.exports.deflateInit2=deflateInit2;R.exports.deflateReset=deflateReset;R.exports.deflateResetKeep=deflateResetKeep;R.exports.deflateSetHeader=deflateSetHeader;R.exports.deflate=deflate;R.exports.deflateEnd=deflateEnd;R.exports.deflateSetDictionary=deflateSetDictionary;R.exports.deflateInfo="pako deflate (from Nodeca project)"},35105:R=>{"use strict";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}R.exports=GZheader},65349:R=>{"use strict";const pe=16209;const Ae=16191;R.exports=function inflate_fast(R,he){let ge;let ye;let me;let ve;let be;let Ee;let we;let Ce;let _e;let Ie;let Se;let Be;let ke;let Oe;let Re;let Qe;let xe;let Pe;let Te;let De;let Ne;let Me;let je,Fe;const Le=R.state;ge=R.next_in;je=R.input;ye=ge+(R.avail_in-5);me=R.next_out;Fe=R.output;ve=me-(he-R.avail_out);be=me+(R.avail_out-257);Ee=Le.dmax;we=Le.wsize;Ce=Le.whave;_e=Le.wnext;Ie=Le.window;Se=Le.hold;Be=Le.bits;ke=Le.lencode;Oe=Le.distcode;Re=(1<>>24;Se>>>=Pe;Be-=Pe;Pe=xe>>>16&255;if(Pe===0){Fe[me++]=xe&65535}else if(Pe&16){Te=xe&65535;Pe&=15;if(Pe){if(Be>>=Pe;Be-=Pe}if(Be<15){Se+=je[ge++]<>>24;Se>>>=Pe;Be-=Pe;Pe=xe>>>16&255;if(Pe&16){De=xe&65535;Pe&=15;if(BeEe){R.msg="invalid distance too far back";Le.mode=pe;break e}Se>>>=Pe;Be-=Pe;Pe=me-ve;if(De>Pe){Pe=De-Pe;if(Pe>Ce){if(Le.sane){R.msg="invalid distance too far back";Le.mode=pe;break e}}Ne=0;Me=Ie;if(_e===0){Ne+=we-Pe;if(Pe2){Fe[me++]=Me[Ne++];Fe[me++]=Me[Ne++];Fe[me++]=Me[Ne++];Te-=3}if(Te){Fe[me++]=Me[Ne++];if(Te>1){Fe[me++]=Me[Ne++]}}}else{Ne=me-De;do{Fe[me++]=Fe[Ne++];Fe[me++]=Fe[Ne++];Fe[me++]=Fe[Ne++];Te-=3}while(Te>2);if(Te){Fe[me++]=Fe[Ne++];if(Te>1){Fe[me++]=Fe[Ne++]}}}}else if((Pe&64)===0){xe=Oe[(xe&65535)+(Se&(1<>3;ge-=Te;Be-=Te<<3;Se&=(1<{"use strict";const he=Ae(86924);const ge=Ae(87242);const ye=Ae(65349);const me=Ae(56895);const ve=0;const be=1;const Ee=2;const{Z_FINISH:we,Z_BLOCK:Ce,Z_TREES:_e,Z_OK:Ie,Z_STREAM_END:Se,Z_NEED_DICT:Be,Z_STREAM_ERROR:ke,Z_DATA_ERROR:Oe,Z_MEM_ERROR:Re,Z_BUF_ERROR:Qe,Z_DEFLATED:xe}=Ae(58282);const Pe=16180;const Te=16181;const De=16182;const Ne=16183;const Me=16184;const je=16185;const Fe=16186;const Le=16187;const Ue=16188;const He=16189;const Je=16190;const We=16191;const Ve=16192;const Ke=16193;const Ge=16194;const Ye=16195;const qe=16196;const $e=16197;const ze=16198;const Xe=16199;const Ze=16200;const et=16201;const tt=16202;const rt=16203;const nt=16204;const it=16205;const ot=16206;const st=16207;const at=16208;const ct=16209;const ut=16210;const lt=16211;const dt=852;const ft=592;const pt=15;const At=pt;const zswap32=R=>(R>>>24&255)+(R>>>8&65280)+((R&65280)<<8)+((R&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=R=>{if(!R){return 1}const pe=R.state;if(!pe||pe.strm!==R||pe.modelt){return 1}return 0};const inflateResetKeep=R=>{if(inflateStateCheck(R)){return ke}const pe=R.state;R.total_in=R.total_out=pe.total=0;R.msg="";if(pe.wrap){R.adler=pe.wrap&1}pe.mode=Pe;pe.last=0;pe.havedict=0;pe.flags=-1;pe.dmax=32768;pe.head=null;pe.hold=0;pe.bits=0;pe.lencode=pe.lendyn=new Int32Array(dt);pe.distcode=pe.distdyn=new Int32Array(ft);pe.sane=1;pe.back=-1;return Ie};const inflateReset=R=>{if(inflateStateCheck(R)){return ke}const pe=R.state;pe.wsize=0;pe.whave=0;pe.wnext=0;return inflateResetKeep(R)};const inflateReset2=(R,pe)=>{let Ae;if(inflateStateCheck(R)){return ke}const he=R.state;if(pe<0){Ae=0;pe=-pe}else{Ae=(pe>>4)+5;if(pe<48){pe&=15}}if(pe&&(pe<8||pe>15)){return ke}if(he.window!==null&&he.wbits!==pe){he.window=null}he.wrap=Ae;he.wbits=pe;return inflateReset(R)};const inflateInit2=(R,pe)=>{if(!R){return ke}const Ae=new InflateState;R.state=Ae;Ae.strm=R;Ae.window=null;Ae.mode=Pe;const he=inflateReset2(R,pe);if(he!==Ie){R.state=null}return he};const inflateInit=R=>inflateInit2(R,At);let ht=true;let gt,yt;const fixedtables=R=>{if(ht){gt=new Int32Array(512);yt=new Int32Array(32);let pe=0;while(pe<144){R.lens[pe++]=8}while(pe<256){R.lens[pe++]=9}while(pe<280){R.lens[pe++]=7}while(pe<288){R.lens[pe++]=8}me(be,R.lens,0,288,gt,0,R.work,{bits:9});pe=0;while(pe<32){R.lens[pe++]=5}me(Ee,R.lens,0,32,yt,0,R.work,{bits:5});ht=false}R.lencode=gt;R.lenbits=9;R.distcode=yt;R.distbits=5};const updatewindow=(R,pe,Ae,he)=>{let ge;const ye=R.state;if(ye.window===null){ye.wsize=1<=ye.wsize){ye.window.set(pe.subarray(Ae-ye.wsize,Ae),0);ye.wnext=0;ye.whave=ye.wsize}else{ge=ye.wsize-ye.wnext;if(ge>he){ge=he}ye.window.set(pe.subarray(Ae-he,Ae-he+ge),ye.wnext);he-=ge;if(he){ye.window.set(pe.subarray(Ae-he,Ae),0);ye.wnext=he;ye.whave=ye.wsize}else{ye.wnext+=ge;if(ye.wnext===ye.wsize){ye.wnext=0}if(ye.whave{let Ae;let dt,ft;let pt;let At;let ht,gt;let yt;let mt;let vt,bt;let Et;let wt;let Ct;let _t=0;let It,St,Bt;let kt,Ot,Rt;let Qt;let xt;const Pt=new Uint8Array(4);let Tt;let Dt;const Nt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(R)||!R.output||!R.input&&R.avail_in!==0){return ke}Ae=R.state;if(Ae.mode===We){Ae.mode=Ve}At=R.next_out;ft=R.output;gt=R.avail_out;pt=R.next_in;dt=R.input;ht=R.avail_in;yt=Ae.hold;mt=Ae.bits;vt=ht;bt=gt;xt=Ie;e:for(;;){switch(Ae.mode){case Pe:if(Ae.wrap===0){Ae.mode=Ve;break}while(mt<16){if(ht===0){break e}ht--;yt+=dt[pt++]<>>8&255;Ae.check=ge(Ae.check,Pt,2,0);yt=0;mt=0;Ae.mode=Te;break}if(Ae.head){Ae.head.done=false}if(!(Ae.wrap&1)||(((yt&255)<<8)+(yt>>8))%31){R.msg="incorrect header check";Ae.mode=ct;break}if((yt&15)!==xe){R.msg="unknown compression method";Ae.mode=ct;break}yt>>>=4;mt-=4;Qt=(yt&15)+8;if(Ae.wbits===0){Ae.wbits=Qt}if(Qt>15||Qt>Ae.wbits){R.msg="invalid window size";Ae.mode=ct;break}Ae.dmax=1<>8&1}if(Ae.flags&512&&Ae.wrap&4){Pt[0]=yt&255;Pt[1]=yt>>>8&255;Ae.check=ge(Ae.check,Pt,2,0)}yt=0;mt=0;Ae.mode=De;case De:while(mt<32){if(ht===0){break e}ht--;yt+=dt[pt++]<>>8&255;Pt[2]=yt>>>16&255;Pt[3]=yt>>>24&255;Ae.check=ge(Ae.check,Pt,4,0)}yt=0;mt=0;Ae.mode=Ne;case Ne:while(mt<16){if(ht===0){break e}ht--;yt+=dt[pt++]<>8}if(Ae.flags&512&&Ae.wrap&4){Pt[0]=yt&255;Pt[1]=yt>>>8&255;Ae.check=ge(Ae.check,Pt,2,0)}yt=0;mt=0;Ae.mode=Me;case Me:if(Ae.flags&1024){while(mt<16){if(ht===0){break e}ht--;yt+=dt[pt++]<>>8&255;Ae.check=ge(Ae.check,Pt,2,0)}yt=0;mt=0}else if(Ae.head){Ae.head.extra=null}Ae.mode=je;case je:if(Ae.flags&1024){Et=Ae.length;if(Et>ht){Et=ht}if(Et){if(Ae.head){Qt=Ae.head.extra_len-Ae.length;if(!Ae.head.extra){Ae.head.extra=new Uint8Array(Ae.head.extra_len)}Ae.head.extra.set(dt.subarray(pt,pt+Et),Qt)}if(Ae.flags&512&&Ae.wrap&4){Ae.check=ge(Ae.check,dt,Et,pt)}ht-=Et;pt+=Et;Ae.length-=Et}if(Ae.length){break e}}Ae.length=0;Ae.mode=Fe;case Fe:if(Ae.flags&2048){if(ht===0){break e}Et=0;do{Qt=dt[pt+Et++];if(Ae.head&&Qt&&Ae.length<65536){Ae.head.name+=String.fromCharCode(Qt)}}while(Qt&&Et>9&1;Ae.head.done=true}R.adler=Ae.check=0;Ae.mode=We;break;case He:while(mt<32){if(ht===0){break e}ht--;yt+=dt[pt++]<>>=mt&7;mt-=mt&7;Ae.mode=ot;break}while(mt<3){if(ht===0){break e}ht--;yt+=dt[pt++]<>>=1;mt-=1;switch(yt&3){case 0:Ae.mode=Ke;break;case 1:fixedtables(Ae);Ae.mode=Xe;if(pe===_e){yt>>>=2;mt-=2;break e}break;case 2:Ae.mode=qe;break;case 3:R.msg="invalid block type";Ae.mode=ct}yt>>>=2;mt-=2;break;case Ke:yt>>>=mt&7;mt-=mt&7;while(mt<32){if(ht===0){break e}ht--;yt+=dt[pt++]<>>16^65535)){R.msg="invalid stored block lengths";Ae.mode=ct;break}Ae.length=yt&65535;yt=0;mt=0;Ae.mode=Ge;if(pe===_e){break e}case Ge:Ae.mode=Ye;case Ye:Et=Ae.length;if(Et){if(Et>ht){Et=ht}if(Et>gt){Et=gt}if(Et===0){break e}ft.set(dt.subarray(pt,pt+Et),At);ht-=Et;pt+=Et;gt-=Et;At+=Et;Ae.length-=Et;break}Ae.mode=We;break;case qe:while(mt<14){if(ht===0){break e}ht--;yt+=dt[pt++]<>>=5;mt-=5;Ae.ndist=(yt&31)+1;yt>>>=5;mt-=5;Ae.ncode=(yt&15)+4;yt>>>=4;mt-=4;if(Ae.nlen>286||Ae.ndist>30){R.msg="too many length or distance symbols";Ae.mode=ct;break}Ae.have=0;Ae.mode=$e;case $e:while(Ae.have>>=3;mt-=3}while(Ae.have<19){Ae.lens[Nt[Ae.have++]]=0}Ae.lencode=Ae.lendyn;Ae.lenbits=7;Tt={bits:Ae.lenbits};xt=me(ve,Ae.lens,0,19,Ae.lencode,0,Ae.work,Tt);Ae.lenbits=Tt.bits;if(xt){R.msg="invalid code lengths set";Ae.mode=ct;break}Ae.have=0;Ae.mode=ze;case ze:while(Ae.have>>24;St=_t>>>16&255;Bt=_t&65535;if(It<=mt){break}if(ht===0){break e}ht--;yt+=dt[pt++]<>>=It;mt-=It;Ae.lens[Ae.have++]=Bt}else{if(Bt===16){Dt=It+2;while(mt>>=It;mt-=It;if(Ae.have===0){R.msg="invalid bit length repeat";Ae.mode=ct;break}Qt=Ae.lens[Ae.have-1];Et=3+(yt&3);yt>>>=2;mt-=2}else if(Bt===17){Dt=It+3;while(mt>>=It;mt-=It;Qt=0;Et=3+(yt&7);yt>>>=3;mt-=3}else{Dt=It+7;while(mt>>=It;mt-=It;Qt=0;Et=11+(yt&127);yt>>>=7;mt-=7}if(Ae.have+Et>Ae.nlen+Ae.ndist){R.msg="invalid bit length repeat";Ae.mode=ct;break}while(Et--){Ae.lens[Ae.have++]=Qt}}}if(Ae.mode===ct){break}if(Ae.lens[256]===0){R.msg="invalid code -- missing end-of-block";Ae.mode=ct;break}Ae.lenbits=9;Tt={bits:Ae.lenbits};xt=me(be,Ae.lens,0,Ae.nlen,Ae.lencode,0,Ae.work,Tt);Ae.lenbits=Tt.bits;if(xt){R.msg="invalid literal/lengths set";Ae.mode=ct;break}Ae.distbits=6;Ae.distcode=Ae.distdyn;Tt={bits:Ae.distbits};xt=me(Ee,Ae.lens,Ae.nlen,Ae.ndist,Ae.distcode,0,Ae.work,Tt);Ae.distbits=Tt.bits;if(xt){R.msg="invalid distances set";Ae.mode=ct;break}Ae.mode=Xe;if(pe===_e){break e}case Xe:Ae.mode=Ze;case Ze:if(ht>=6&>>=258){R.next_out=At;R.avail_out=gt;R.next_in=pt;R.avail_in=ht;Ae.hold=yt;Ae.bits=mt;ye(R,bt);At=R.next_out;ft=R.output;gt=R.avail_out;pt=R.next_in;dt=R.input;ht=R.avail_in;yt=Ae.hold;mt=Ae.bits;if(Ae.mode===We){Ae.back=-1}break}Ae.back=0;for(;;){_t=Ae.lencode[yt&(1<>>24;St=_t>>>16&255;Bt=_t&65535;if(It<=mt){break}if(ht===0){break e}ht--;yt+=dt[pt++]<>kt)];It=_t>>>24;St=_t>>>16&255;Bt=_t&65535;if(kt+It<=mt){break}if(ht===0){break e}ht--;yt+=dt[pt++]<>>=kt;mt-=kt;Ae.back+=kt}yt>>>=It;mt-=It;Ae.back+=It;Ae.length=Bt;if(St===0){Ae.mode=it;break}if(St&32){Ae.back=-1;Ae.mode=We;break}if(St&64){R.msg="invalid literal/length code";Ae.mode=ct;break}Ae.extra=St&15;Ae.mode=et;case et:if(Ae.extra){Dt=Ae.extra;while(mt>>=Ae.extra;mt-=Ae.extra;Ae.back+=Ae.extra}Ae.was=Ae.length;Ae.mode=tt;case tt:for(;;){_t=Ae.distcode[yt&(1<>>24;St=_t>>>16&255;Bt=_t&65535;if(It<=mt){break}if(ht===0){break e}ht--;yt+=dt[pt++]<>kt)];It=_t>>>24;St=_t>>>16&255;Bt=_t&65535;if(kt+It<=mt){break}if(ht===0){break e}ht--;yt+=dt[pt++]<>>=kt;mt-=kt;Ae.back+=kt}yt>>>=It;mt-=It;Ae.back+=It;if(St&64){R.msg="invalid distance code";Ae.mode=ct;break}Ae.offset=Bt;Ae.extra=St&15;Ae.mode=rt;case rt:if(Ae.extra){Dt=Ae.extra;while(mt>>=Ae.extra;mt-=Ae.extra;Ae.back+=Ae.extra}if(Ae.offset>Ae.dmax){R.msg="invalid distance too far back";Ae.mode=ct;break}Ae.mode=nt;case nt:if(gt===0){break e}Et=bt-gt;if(Ae.offset>Et){Et=Ae.offset-Et;if(Et>Ae.whave){if(Ae.sane){R.msg="invalid distance too far back";Ae.mode=ct;break}}if(Et>Ae.wnext){Et-=Ae.wnext;wt=Ae.wsize-Et}else{wt=Ae.wnext-Et}if(Et>Ae.length){Et=Ae.length}Ct=Ae.window}else{Ct=ft;wt=At-Ae.offset;Et=Ae.length}if(Et>gt){Et=gt}gt-=Et;Ae.length-=Et;do{ft[At++]=Ct[wt++]}while(--Et);if(Ae.length===0){Ae.mode=Ze}break;case it:if(gt===0){break e}ft[At++]=Ae.length;gt--;Ae.mode=Ze;break;case ot:if(Ae.wrap){while(mt<32){if(ht===0){break e}ht--;yt|=dt[pt++]<{if(inflateStateCheck(R)){return ke}let pe=R.state;if(pe.window){pe.window=null}R.state=null;return Ie};const inflateGetHeader=(R,pe)=>{if(inflateStateCheck(R)){return ke}const Ae=R.state;if((Ae.wrap&2)===0){return ke}Ae.head=pe;pe.done=false;return Ie};const inflateSetDictionary=(R,pe)=>{const Ae=pe.length;let ge;let ye;let me;if(inflateStateCheck(R)){return ke}ge=R.state;if(ge.wrap!==0&&ge.mode!==Je){return ke}if(ge.mode===Je){ye=1;ye=he(ye,pe,Ae,0);if(ye!==ge.check){return Oe}}me=updatewindow(R,pe,Ae,Ae);if(me){ge.mode=ut;return Re}ge.havedict=1;return Ie};R.exports.inflateReset=inflateReset;R.exports.inflateReset2=inflateReset2;R.exports.inflateResetKeep=inflateResetKeep;R.exports.inflateInit=inflateInit;R.exports.inflateInit2=inflateInit2;R.exports.inflate=inflate;R.exports.inflateEnd=inflateEnd;R.exports.inflateGetHeader=inflateGetHeader;R.exports.inflateSetDictionary=inflateSetDictionary;R.exports.inflateInfo="pako inflate (from Nodeca project)"},56895:R=>{"use strict";const pe=15;const Ae=852;const he=592;const ge=0;const ye=1;const me=2;const ve=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 be=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 Ee=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 we=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=(R,Ce,_e,Ie,Se,Be,ke,Oe)=>{const Re=Oe.bits;let Qe=0;let xe=0;let Pe=0,Te=0;let De=0;let Ne=0;let Me=0;let je=0;let Fe=0;let Le=0;let Ue;let He;let Je;let We;let Ve;let Ke=null;let Ge;const Ye=new Uint16Array(pe+1);const qe=new Uint16Array(pe+1);let $e=null;let ze,Xe,Ze;for(Qe=0;Qe<=pe;Qe++){Ye[Qe]=0}for(xe=0;xe=1;Te--){if(Ye[Te]!==0){break}}if(De>Te){De=Te}if(Te===0){Se[Be++]=1<<24|64<<16|0;Se[Be++]=1<<24|64<<16|0;Oe.bits=1;return 0}for(Pe=1;Pe0&&(R===ge||Te!==1)){return-1}qe[1]=0;for(Qe=1;QeAe||R===me&&Fe>he){return 1}for(;;){ze=Qe-Me;if(ke[xe]+1=Ge){Xe=$e[ke[xe]-Ge];Ze=Ke[ke[xe]-Ge]}else{Xe=32+64;Ze=0}Ue=1<>Me)+He]=ze<<24|Xe<<16|Ze|0}while(He!==0);Ue=1<>=1}if(Ue!==0){Le&=Ue-1;Le+=Ue}else{Le=0}xe++;if(--Ye[Qe]===0){if(Qe===Te){break}Qe=Ce[_e+ke[xe]]}if(Qe>De&&(Le&We)!==Je){if(Me===0){Me=De}Ve+=Pe;Ne=Qe-Me;je=1<Ae||R===me&&Fe>he){return 1}Je=Le&We;Se[Je]=De<<24|Ne<<16|Ve-Be|0}}if(Le!==0){Se[Ve+Le]=Qe-Me<<24|64<<16|0}Oe.bits=De;return 0};R.exports=inflate_table},1890:R=>{"use strict";R.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"}},78754:R=>{"use strict";const pe=4;const Ae=0;const he=1;const ge=2;function zero(R){let pe=R.length;while(--pe>=0){R[pe]=0}}const ye=0;const me=1;const ve=2;const be=3;const Ee=258;const we=29;const Ce=256;const _e=Ce+1+we;const Ie=30;const Se=19;const Be=2*_e+1;const ke=15;const Oe=16;const Re=7;const Qe=256;const xe=16;const Pe=17;const Te=18;const De=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 Ne=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 Me=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]);const je=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);const Fe=512;const Le=new Array((_e+2)*2);zero(Le);const Ue=new Array(Ie*2);zero(Ue);const He=new Array(Fe);zero(He);const Je=new Array(Ee-be+1);zero(Je);const We=new Array(we);zero(We);const Ve=new Array(Ie);zero(Ve);function StaticTreeDesc(R,pe,Ae,he,ge){this.static_tree=R;this.extra_bits=pe;this.extra_base=Ae;this.elems=he;this.max_length=ge;this.has_stree=R&&R.length}let Ke;let Ge;let Ye;function TreeDesc(R,pe){this.dyn_tree=R;this.max_code=0;this.stat_desc=pe}const d_code=R=>R<256?He[R]:He[256+(R>>>7)];const put_short=(R,pe)=>{R.pending_buf[R.pending++]=pe&255;R.pending_buf[R.pending++]=pe>>>8&255};const send_bits=(R,pe,Ae)=>{if(R.bi_valid>Oe-Ae){R.bi_buf|=pe<>Oe-R.bi_valid;R.bi_valid+=Ae-Oe}else{R.bi_buf|=pe<{send_bits(R,Ae[pe*2],Ae[pe*2+1])};const bi_reverse=(R,pe)=>{let Ae=0;do{Ae|=R&1;R>>>=1;Ae<<=1}while(--pe>0);return Ae>>>1};const bi_flush=R=>{if(R.bi_valid===16){put_short(R,R.bi_buf);R.bi_buf=0;R.bi_valid=0}else if(R.bi_valid>=8){R.pending_buf[R.pending++]=R.bi_buf&255;R.bi_buf>>=8;R.bi_valid-=8}};const gen_bitlen=(R,pe)=>{const Ae=pe.dyn_tree;const he=pe.max_code;const ge=pe.stat_desc.static_tree;const ye=pe.stat_desc.has_stree;const me=pe.stat_desc.extra_bits;const ve=pe.stat_desc.extra_base;const be=pe.stat_desc.max_length;let Ee;let we,Ce;let _e;let Ie;let Se;let Oe=0;for(_e=0;_e<=ke;_e++){R.bl_count[_e]=0}Ae[R.heap[R.heap_max]*2+1]=0;for(Ee=R.heap_max+1;Eebe){_e=be;Oe++}Ae[we*2+1]=_e;if(we>he){continue}R.bl_count[_e]++;Ie=0;if(we>=ve){Ie=me[we-ve]}Se=Ae[we*2];R.opt_len+=Se*(_e+Ie);if(ye){R.static_len+=Se*(ge[we*2+1]+Ie)}}if(Oe===0){return}do{_e=be-1;while(R.bl_count[_e]===0){_e--}R.bl_count[_e]--;R.bl_count[_e+1]+=2;R.bl_count[be]--;Oe-=2}while(Oe>0);for(_e=be;_e!==0;_e--){we=R.bl_count[_e];while(we!==0){Ce=R.heap[--Ee];if(Ce>he){continue}if(Ae[Ce*2+1]!==_e){R.opt_len+=(_e-Ae[Ce*2+1])*Ae[Ce*2];Ae[Ce*2+1]=_e}we--}}};const gen_codes=(R,pe,Ae)=>{const he=new Array(ke+1);let ge=0;let ye;let me;for(ye=1;ye<=ke;ye++){ge=ge+Ae[ye-1]<<1;he[ye]=ge}for(me=0;me<=pe;me++){let pe=R[me*2+1];if(pe===0){continue}R[me*2]=bi_reverse(he[pe]++,pe)}};const tr_static_init=()=>{let R;let pe;let Ae;let he;let ge;const ye=new Array(ke+1);Ae=0;for(he=0;he>=7;for(;he{let pe;for(pe=0;pe<_e;pe++){R.dyn_ltree[pe*2]=0}for(pe=0;pe{if(R.bi_valid>8){put_short(R,R.bi_buf)}else if(R.bi_valid>0){R.pending_buf[R.pending++]=R.bi_buf}R.bi_buf=0;R.bi_valid=0};const smaller=(R,pe,Ae,he)=>{const ge=pe*2;const ye=Ae*2;return R[ge]{const he=R.heap[Ae];let ge=Ae<<1;while(ge<=R.heap_len){if(ge{let he;let ge;let ye=0;let me;let ve;if(R.sym_next!==0){do{he=R.pending_buf[R.sym_buf+ye++]&255;he+=(R.pending_buf[R.sym_buf+ye++]&255)<<8;ge=R.pending_buf[R.sym_buf+ye++];if(he===0){send_code(R,ge,pe)}else{me=Je[ge];send_code(R,me+Ce+1,pe);ve=De[me];if(ve!==0){ge-=We[me];send_bits(R,ge,ve)}he--;me=d_code(he);send_code(R,me,Ae);ve=Ne[me];if(ve!==0){he-=Ve[me];send_bits(R,he,ve)}}}while(ye{const Ae=pe.dyn_tree;const he=pe.stat_desc.static_tree;const ge=pe.stat_desc.has_stree;const ye=pe.stat_desc.elems;let me,ve;let be=-1;let Ee;R.heap_len=0;R.heap_max=Be;for(me=0;me>1;me>=1;me--){pqdownheap(R,Ae,me)}Ee=ye;do{me=R.heap[1];R.heap[1]=R.heap[R.heap_len--];pqdownheap(R,Ae,1);ve=R.heap[1];R.heap[--R.heap_max]=me;R.heap[--R.heap_max]=ve;Ae[Ee*2]=Ae[me*2]+Ae[ve*2];R.depth[Ee]=(R.depth[me]>=R.depth[ve]?R.depth[me]:R.depth[ve])+1;Ae[me*2+1]=Ae[ve*2+1]=Ee;R.heap[1]=Ee++;pqdownheap(R,Ae,1)}while(R.heap_len>=2);R.heap[--R.heap_max]=R.heap[1];gen_bitlen(R,pe);gen_codes(Ae,be,R.bl_count)};const scan_tree=(R,pe,Ae)=>{let he;let ge=-1;let ye;let me=pe[0*2+1];let ve=0;let be=7;let Ee=4;if(me===0){be=138;Ee=3}pe[(Ae+1)*2+1]=65535;for(he=0;he<=Ae;he++){ye=me;me=pe[(he+1)*2+1];if(++ve{let he;let ge=-1;let ye;let me=pe[0*2+1];let ve=0;let be=7;let Ee=4;if(me===0){be=138;Ee=3}for(he=0;he<=Ae;he++){ye=me;me=pe[(he+1)*2+1];if(++ve{let pe;scan_tree(R,R.dyn_ltree,R.l_desc.max_code);scan_tree(R,R.dyn_dtree,R.d_desc.max_code);build_tree(R,R.bl_desc);for(pe=Se-1;pe>=3;pe--){if(R.bl_tree[je[pe]*2+1]!==0){break}}R.opt_len+=3*(pe+1)+5+5+4;return pe};const send_all_trees=(R,pe,Ae,he)=>{let ge;send_bits(R,pe-257,5);send_bits(R,Ae-1,5);send_bits(R,he-4,4);for(ge=0;ge{let pe=4093624447;let ge;for(ge=0;ge<=31;ge++,pe>>>=1){if(pe&1&&R.dyn_ltree[ge*2]!==0){return Ae}}if(R.dyn_ltree[9*2]!==0||R.dyn_ltree[10*2]!==0||R.dyn_ltree[13*2]!==0){return he}for(ge=32;ge{if(!qe){tr_static_init();qe=true}R.l_desc=new TreeDesc(R.dyn_ltree,Ke);R.d_desc=new TreeDesc(R.dyn_dtree,Ge);R.bl_desc=new TreeDesc(R.bl_tree,Ye);R.bi_buf=0;R.bi_valid=0;init_block(R)};const _tr_stored_block=(R,pe,Ae,he)=>{send_bits(R,(ye<<1)+(he?1:0),3);bi_windup(R);put_short(R,Ae);put_short(R,~Ae);if(Ae){R.pending_buf.set(R.window.subarray(pe,pe+Ae),R.pending)}R.pending+=Ae};const _tr_align=R=>{send_bits(R,me<<1,3);send_code(R,Qe,Le);bi_flush(R)};const _tr_flush_block=(R,Ae,he,ye)=>{let be,Ee;let we=0;if(R.level>0){if(R.strm.data_type===ge){R.strm.data_type=detect_data_type(R)}build_tree(R,R.l_desc);build_tree(R,R.d_desc);we=build_bl_tree(R);be=R.opt_len+3+7>>>3;Ee=R.static_len+3+7>>>3;if(Ee<=be){be=Ee}}else{be=Ee=he+5}if(he+4<=be&&Ae!==-1){_tr_stored_block(R,Ae,he,ye)}else if(R.strategy===pe||Ee===be){send_bits(R,(me<<1)+(ye?1:0),3);compress_block(R,Le,Ue)}else{send_bits(R,(ve<<1)+(ye?1:0),3);send_all_trees(R,R.l_desc.max_code+1,R.d_desc.max_code+1,we+1);compress_block(R,R.dyn_ltree,R.dyn_dtree)}init_block(R);if(ye){bi_windup(R)}};const _tr_tally=(R,pe,Ae)=>{R.pending_buf[R.sym_buf+R.sym_next++]=pe;R.pending_buf[R.sym_buf+R.sym_next++]=pe>>8;R.pending_buf[R.sym_buf+R.sym_next++]=Ae;if(pe===0){R.dyn_ltree[Ae*2]++}else{R.matches++;pe--;R.dyn_ltree[(Je[Ae]+Ce+1)*2]++;R.dyn_dtree[d_code(pe)*2]++}return R.sym_next===R.sym_end};R.exports._tr_init=_tr_init;R.exports._tr_stored_block=_tr_stored_block;R.exports._tr_flush_block=_tr_flush_block;R.exports._tr_tally=_tr_tally;R.exports._tr_align=_tr_align},86442:R=>{"use strict";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}R.exports=ZStream},63329:(R,pe,Ae)=>{"use strict";var he=Ae(57310).parse;var ge={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};var ye=String.prototype.endsWith||function(R){return R.length<=this.length&&this.indexOf(R,this.length-R.length)!==-1};function getProxyForUrl(R){var pe=typeof R==="string"?he(R):R||{};var Ae=pe.protocol;var ye=pe.host;var me=pe.port;if(typeof ye!=="string"||!ye||typeof Ae!=="string"){return""}Ae=Ae.split(":",1)[0];ye=ye.replace(/:\d*$/,"");me=parseInt(me)||ge[Ae]||0;if(!shouldProxy(ye,me)){return""}var ve=getEnv("npm_config_"+Ae+"_proxy")||getEnv(Ae+"_proxy")||getEnv("npm_config_proxy")||getEnv("all_proxy");if(ve&&ve.indexOf("://")===-1){ve=Ae+"://"+ve}return ve}function shouldProxy(R,pe){var Ae=(getEnv("npm_config_no_proxy")||getEnv("no_proxy")).toLowerCase();if(!Ae){return true}if(Ae==="*"){return false}return Ae.split(/[,\s]/).every((function(Ae){if(!Ae){return true}var he=Ae.match(/^(.+):(\d+)$/);var ge=he?he[1]:Ae;var me=he?parseInt(he[2]):0;if(me&&me!==pe){return true}if(!/^[.*]/.test(ge)){return R!==ge}if(ge.charAt(0)==="*"){ge=ge.slice(1)}return!ye.call(R,ge)}))}function getEnv(R){return process.env[R.toLowerCase()]||process.env[R.toUpperCase()]||""}pe.getProxyForUrl=getProxyForUrl},22420:(R,pe)=>{"use strict"; /*! * MIT License * @@ -168,10 +168,10 @@ hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=Zt;hooks.min=min;ho */const Ae="[object ArrayBuffer]";class BufferSourceConverter{static isArrayBuffer(R){return Object.prototype.toString.call(R)===Ae}static toArrayBuffer(R){if(this.isArrayBuffer(R)){return R}if(R.byteLength===R.buffer.byteLength){return R.buffer}if(R.byteOffset===0&&R.byteLength===R.buffer.byteLength){return R.buffer}return this.toUint8Array(R.buffer).slice(R.byteOffset,R.byteOffset+R.byteLength).buffer}static toUint8Array(R){return this.toView(R,Uint8Array)}static toView(R,pe){if(R.constructor===pe){return R}if(this.isArrayBuffer(R)){return new pe(R)}if(this.isArrayBufferView(R)){return new pe(R.buffer,R.byteOffset,R.byteLength)}throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}static isBufferSource(R){return this.isArrayBufferView(R)||this.isArrayBuffer(R)}static isArrayBufferView(R){return ArrayBuffer.isView(R)||R&&this.isArrayBuffer(R.buffer)}static isEqual(R,pe){const Ae=BufferSourceConverter.toUint8Array(R);const he=BufferSourceConverter.toUint8Array(pe);if(Ae.length!==he.byteLength){return false}for(let R=0;RR.byteLength)).reduce(((R,pe)=>R+pe));const Ae=new Uint8Array(pe);let he=0;R.map((R=>new Uint8Array(R))).forEach((R=>{for(const pe of R){Ae[he++]=pe}}));return Ae.buffer}function isEqual(R,pe){if(!(R&&pe)){return false}if(R.byteLength!==pe.byteLength){return false}const Ae=new Uint8Array(R);const he=new Uint8Array(pe);for(let pe=0;pe{"use strict"; /*! Copyright (c) Peculiar Ventures, LLC -*/Object.defineProperty(pe,"__esModule",{value:true});function getUTCDate(R){return new Date(R.getTime()+R.getTimezoneOffset()*6e4)}function getParametersValue(R,pe,Ae){var he;if(R instanceof Object===false){return Ae}return(he=R[pe])!==null&&he!==void 0?he:Ae}function bufferToHexCodes(R,pe=0,Ae=R.byteLength-pe,he=false){let ge="";for(const ye of new Uint8Array(R,pe,Ae)){const R=ye.toString(16).toUpperCase();if(R.length===1){ge+="0"}ge+=R;if(he){ge+=" "}}return ge.trim()}function checkBufferParams(R,pe,Ae,he){if(!(pe instanceof ArrayBuffer)){R.error='Wrong parameter: inputBuffer must be "ArrayBuffer"';return false}if(!pe.byteLength){R.error="Wrong parameter: inputBuffer has zero length";return false}if(Ae<0){R.error="Wrong parameter: inputOffset less than zero";return false}if(he<0){R.error="Wrong parameter: inputLength less than zero";return false}if(pe.byteLength-Ae-he<0){R.error="End of input reached before message was fully decoded (inconsistent offset and length values)";return false}return true}function utilFromBase(R,pe){let Ae=0;if(R.length===1){return R[0]}for(let he=R.length-1;he>=0;he--){Ae+=R[R.length-1-he]*Math.pow(2,pe*he)}return Ae}function utilToBase(R,pe,Ae=-1){const he=Ae;let ge=R;let ye=0;let me=Math.pow(2,pe);for(let Ae=1;Ae<8;Ae++){if(R=0;R--){const Ae=Math.pow(2,R*pe);me[ye-R-1]=Math.floor(ge/Ae);ge-=me[ye-R-1]*Ae}return R}me*=Math.pow(2,pe)}return new ArrayBuffer(0)}function utilConcatBuf(...R){let pe=0;let Ae=0;for(const Ae of R){pe+=Ae.byteLength}const he=new ArrayBuffer(pe);const ge=new Uint8Array(he);for(const pe of R){ge.set(new Uint8Array(pe),Ae);Ae+=pe.byteLength}return he}function utilConcatView(...R){let pe=0;let Ae=0;for(const Ae of R){pe+=Ae.length}const he=new ArrayBuffer(pe);const ge=new Uint8Array(he);for(const pe of R){ge.set(pe,Ae);Ae+=pe.length}return ge}function utilDecodeTC(){const R=new Uint8Array(this.valueHex);if(this.valueHex.byteLength>=2){const pe=R[0]===255&&R[1]&128;const Ae=R[0]===0&&(R[1]&128)===0;if(pe||Ae){this.warnings.push("Needlessly long format")}}const pe=new ArrayBuffer(this.valueHex.byteLength);const Ae=new Uint8Array(pe);for(let R=0;R=R.length){ve=1}const Ae=R.charCodeAt(me++);if(me>=R.length){be=1}const he=R.charCodeAt(me++);const ye=pe>>2;const we=(pe&3)<<4|Ae>>4;let _e=(Ae&15)<<2|he>>6;let Ie=he&63;if(ve===1){_e=Ie=64}else{if(be===1){Ie=64}}if(ge){if(_e===64){Ee+=`${Ce.charAt(ye)}${Ce.charAt(we)}`}else{if(Ie===64){Ee+=`${Ce.charAt(ye)}${Ce.charAt(we)}${Ce.charAt(_e)}`}else{Ee+=`${Ce.charAt(ye)}${Ce.charAt(we)}${Ce.charAt(_e)}${Ce.charAt(Ie)}`}}}else{Ee+=`${Ce.charAt(ye)}${Ce.charAt(we)}${Ce.charAt(_e)}${Ce.charAt(Ie)}`}}return Ee}function fromBase64(R,pe=false,ge=false){const ye=pe?he:Ae;function indexOf(R){for(let pe=0;pe<64;pe++){if(ye.charAt(pe)===R)return pe}return 64}function test(R){return R===64?0:R}let me=0;let ve="";while(me=R.length?0:indexOf(R.charAt(me++));const he=me>=R.length?0:indexOf(R.charAt(me++));const ge=me>=R.length?0:indexOf(R.charAt(me++));const ye=test(pe)<<2|test(Ae)>>4;const be=(test(Ae)&15)<<4|test(he)>>2;const Ee=(test(he)&3)<<6|test(ge);ve+=String.fromCharCode(ye);if(he!==64){ve+=String.fromCharCode(be)}if(ge!==64){ve+=String.fromCharCode(Ee)}}if(ge){const R=ve.length;let pe=-1;for(let Ae=R-1;Ae>=0;Ae--){if(ve.charCodeAt(Ae)!==0){pe=Ae;break}}if(pe!==-1){ve=ve.slice(0,pe+1)}else{ve=""}}return ve}function arrayBufferToString(R){let pe="";const Ae=new Uint8Array(R);for(const R of Ae){pe+=String.fromCharCode(R)}return pe}function stringToArrayBuffer(R){const pe=R.length;const Ae=new ArrayBuffer(pe);const he=new Uint8Array(Ae);for(let Ae=0;Ae{R.exports=Ae(26874)},11239:R=>{"use strict";R.exports=class IdentifierIssuer{constructor(R,pe=new Map,Ae=0){this.prefix=R;this._existing=pe;this.counter=Ae}clone(){const{prefix:R,_existing:pe,counter:Ae}=this;return new IdentifierIssuer(R,new Map(pe),Ae)}getId(R){const pe=R&&this._existing.get(R);if(pe){return pe}const Ae=this.prefix+this.counter;this.counter++;if(R){this._existing.set(R,Ae)}return Ae}hasId(R){return this._existing.has(R)}getOldIds(){return[...this._existing.keys()]}}},82282:(R,pe,Ae)=>{"use strict";const he=Ae(6113);R.exports=class MessageDigest{constructor(R){this.md=he.createHash(R)}update(R){this.md.update(R,"utf8")}digest(){return this.md.digest("hex")}}},31e3:R=>{"use strict"; +*/Object.defineProperty(pe,"__esModule",{value:true});function getUTCDate(R){return new Date(R.getTime()+R.getTimezoneOffset()*6e4)}function getParametersValue(R,pe,Ae){var he;if(R instanceof Object===false){return Ae}return(he=R[pe])!==null&&he!==void 0?he:Ae}function bufferToHexCodes(R,pe=0,Ae=R.byteLength-pe,he=false){let ge="";for(const ye of new Uint8Array(R,pe,Ae)){const R=ye.toString(16).toUpperCase();if(R.length===1){ge+="0"}ge+=R;if(he){ge+=" "}}return ge.trim()}function checkBufferParams(R,pe,Ae,he){if(!(pe instanceof ArrayBuffer)){R.error='Wrong parameter: inputBuffer must be "ArrayBuffer"';return false}if(!pe.byteLength){R.error="Wrong parameter: inputBuffer has zero length";return false}if(Ae<0){R.error="Wrong parameter: inputOffset less than zero";return false}if(he<0){R.error="Wrong parameter: inputLength less than zero";return false}if(pe.byteLength-Ae-he<0){R.error="End of input reached before message was fully decoded (inconsistent offset and length values)";return false}return true}function utilFromBase(R,pe){let Ae=0;if(R.length===1){return R[0]}for(let he=R.length-1;he>=0;he--){Ae+=R[R.length-1-he]*Math.pow(2,pe*he)}return Ae}function utilToBase(R,pe,Ae=-1){const he=Ae;let ge=R;let ye=0;let me=Math.pow(2,pe);for(let Ae=1;Ae<8;Ae++){if(R=0;R--){const Ae=Math.pow(2,R*pe);me[ye-R-1]=Math.floor(ge/Ae);ge-=me[ye-R-1]*Ae}return R}me*=Math.pow(2,pe)}return new ArrayBuffer(0)}function utilConcatBuf(...R){let pe=0;let Ae=0;for(const Ae of R){pe+=Ae.byteLength}const he=new ArrayBuffer(pe);const ge=new Uint8Array(he);for(const pe of R){ge.set(new Uint8Array(pe),Ae);Ae+=pe.byteLength}return he}function utilConcatView(...R){let pe=0;let Ae=0;for(const Ae of R){pe+=Ae.length}const he=new ArrayBuffer(pe);const ge=new Uint8Array(he);for(const pe of R){ge.set(pe,Ae);Ae+=pe.length}return ge}function utilDecodeTC(){const R=new Uint8Array(this.valueHex);if(this.valueHex.byteLength>=2){const pe=R[0]===255&&R[1]&128;const Ae=R[0]===0&&(R[1]&128)===0;if(pe||Ae){this.warnings.push("Needlessly long format")}}const pe=new ArrayBuffer(this.valueHex.byteLength);const Ae=new Uint8Array(pe);for(let R=0;R=R.length){ve=1}const Ae=R.charCodeAt(me++);if(me>=R.length){be=1}const he=R.charCodeAt(me++);const ye=pe>>2;const Ce=(pe&3)<<4|Ae>>4;let _e=(Ae&15)<<2|he>>6;let Ie=he&63;if(ve===1){_e=Ie=64}else{if(be===1){Ie=64}}if(ge){if(_e===64){Ee+=`${we.charAt(ye)}${we.charAt(Ce)}`}else{if(Ie===64){Ee+=`${we.charAt(ye)}${we.charAt(Ce)}${we.charAt(_e)}`}else{Ee+=`${we.charAt(ye)}${we.charAt(Ce)}${we.charAt(_e)}${we.charAt(Ie)}`}}}else{Ee+=`${we.charAt(ye)}${we.charAt(Ce)}${we.charAt(_e)}${we.charAt(Ie)}`}}return Ee}function fromBase64(R,pe=false,ge=false){const ye=pe?he:Ae;function indexOf(R){for(let pe=0;pe<64;pe++){if(ye.charAt(pe)===R)return pe}return 64}function test(R){return R===64?0:R}let me=0;let ve="";while(me=R.length?0:indexOf(R.charAt(me++));const he=me>=R.length?0:indexOf(R.charAt(me++));const ge=me>=R.length?0:indexOf(R.charAt(me++));const ye=test(pe)<<2|test(Ae)>>4;const be=(test(Ae)&15)<<4|test(he)>>2;const Ee=(test(he)&3)<<6|test(ge);ve+=String.fromCharCode(ye);if(he!==64){ve+=String.fromCharCode(be)}if(ge!==64){ve+=String.fromCharCode(Ee)}}if(ge){const R=ve.length;let pe=-1;for(let Ae=R-1;Ae>=0;Ae--){if(ve.charCodeAt(Ae)!==0){pe=Ae;break}}if(pe!==-1){ve=ve.slice(0,pe+1)}else{ve=""}}return ve}function arrayBufferToString(R){let pe="";const Ae=new Uint8Array(R);for(const R of Ae){pe+=String.fromCharCode(R)}return pe}function stringToArrayBuffer(R){const pe=R.length;const Ae=new ArrayBuffer(pe);const he=new Uint8Array(Ae);for(let Ae=0;Ae{R.exports=Ae(26874)},11239:R=>{"use strict";R.exports=class IdentifierIssuer{constructor(R,pe=new Map,Ae=0){this.prefix=R;this._existing=pe;this.counter=Ae}clone(){const{prefix:R,_existing:pe,counter:Ae}=this;return new IdentifierIssuer(R,new Map(pe),Ae)}getId(R){const pe=R&&this._existing.get(R);if(pe){return pe}const Ae=this.prefix+this.counter;this.counter++;if(R){this._existing.set(R,Ae)}return Ae}hasId(R){return this._existing.has(R)}getOldIds(){return[...this._existing.keys()]}}},82282:(R,pe,Ae)=>{"use strict";const he=Ae(6113);R.exports=class MessageDigest{constructor(R){this.md=he.createHash(R)}update(R){this.md.update(R,"utf8")}digest(){return this.md.digest("hex")}}},31e3:R=>{"use strict"; /*! * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. - */const pe=null&&["subject","predicate","object","graph"];const Ae="http://www.w3.org/1999/02/22-rdf-syntax-ns#";const he=Ae+"langString";const ge="http://www.w3.org/2001/XMLSchema#string";const ye="NamedNode";const me="BlankNode";const ve="Literal";const be="DefaultGraph";const Ee={};(()=>{const R="(?:<([^:]+:[^>]*)>)";const pe="A-Z"+"a-z"+"À-Ö"+"Ø-ö"+"ø-˿"+"Ͱ-ͽ"+"Ϳ-῿"+"‌-‍"+"⁰-↏"+"Ⰰ-⿯"+"、-퟿"+"豈-﷏"+"ﷰ-�";const Ae=pe+"_";const he=Ae+"0-9"+"-"+"·"+"̀-ͯ"+"‿-⁀";const ge="(_:"+"(?:["+Ae+"0-9])"+"(?:(?:["+he+".])*(?:["+he+"]))?"+")";const ye=ge;const me='"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"';const ve="(?:\\^\\^"+R+")";const be="(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*))";const Ce="(?:"+me+"(?:"+ve+"|"+be+")?)";const we="[ \\t]+";const _e="[ \\t]*";const Ie="(?:"+R+"|"+ye+")"+we;const Se=R+we;const Be="(?:"+R+"|"+ye+"|"+Ce+")"+_e;const ke="(?:\\.|(?:(?:"+R+"|"+ye+")"+_e+"\\.))";Ee.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g;Ee.empty=new RegExp("^"+_e+"$");Ee.quad=new RegExp("^"+_e+Ie+Se+Be+ke+_e+"$")})();R.exports=class NQuads{static parse(R){const pe=[];const Ae={};const Ce=R.split(Ee.eoln);let we=0;for(const R of Ce){we++;if(Ee.empty.test(R)){continue}const Ce=R.match(Ee.quad);if(Ce===null){throw new Error("N-Quads parse error on line "+we+".")}const _e={subject:null,predicate:null,object:null,graph:null};if(Ce[1]!==undefined){_e.subject={termType:ye,value:Ce[1]}}else{_e.subject={termType:me,value:Ce[2]}}_e.predicate={termType:ye,value:Ce[3]};if(Ce[4]!==undefined){_e.object={termType:ye,value:Ce[4]}}else if(Ce[5]!==undefined){_e.object={termType:me,value:Ce[5]}}else{_e.object={termType:ve,value:undefined,datatype:{termType:ye}};if(Ce[7]!==undefined){_e.object.datatype.value=Ce[7]}else if(Ce[8]!==undefined){_e.object.datatype.value=he;_e.object.language=Ce[8]}else{_e.object.datatype.value=ge}_e.object.value=_unescape(Ce[6])}if(Ce[9]!==undefined){_e.graph={termType:ye,value:Ce[9]}}else if(Ce[10]!==undefined){_e.graph={termType:me,value:Ce[10]}}else{_e.graph={termType:be,value:""}}if(!(_e.graph.value in Ae)){Ae[_e.graph.value]=[_e];pe.push(_e)}else{let R=true;const he=Ae[_e.graph.value];for(const pe of he){if(_compareTriples(pe,_e)){R=false;break}}if(R){he.push(_e);pe.push(_e)}}}return pe}static serialize(R){if(!Array.isArray(R)){R=NQuads.legacyDatasetToQuads(R)}const pe=[];for(const Ae of R){pe.push(NQuads.serializeQuad(Ae))}return pe.sort().join("")}static serializeQuadComponents(R,pe,Ae,ve){let be="";if(R.termType===ye){be+=`<${R.value}>`}else{be+=`${R.value}`}be+=` <${pe.value}> `;if(Ae.termType===ye){be+=`<${Ae.value}>`}else if(Ae.termType===me){be+=Ae.value}else{be+=`"${_escape(Ae.value)}"`;if(Ae.datatype.value===he){if(Ae.language){be+=`@${Ae.language}`}}else if(Ae.datatype.value!==ge){be+=`^^<${Ae.datatype.value}>`}}if(ve.termType===ye){be+=` <${ve.value}>`}else if(ve.termType===me){be+=` ${ve.value}`}be+=" .\n";return be}static serializeQuad(R){return NQuads.serializeQuadComponents(R.subject,R.predicate,R.object,R.graph)}static legacyDatasetToQuads(R){const pe=[];const Ae={"blank node":me,IRI:ye,literal:ve};for(const Ee in R){const Ce=R[Ee];Ce.forEach((R=>{const Ce={};for(const pe in R){const me=R[pe];const be={termType:Ae[me.type],value:me.value};if(be.termType===ve){be.datatype={termType:ye};if("datatype"in me){be.datatype.value=me.datatype}if("language"in me){if(!("datatype"in me)){be.datatype.value=he}be.language=me.language}else if(!("datatype"in me)){be.datatype.value=ge}}Ce[pe]=be}if(Ee==="@default"){Ce.graph={termType:be,value:""}}else{Ce.graph={termType:Ee.startsWith("_:")?me:ye,value:Ee}}pe.push(Ce)}))}return pe}};function _compareTriples(R,pe){if(!(R.subject.termType===pe.subject.termType&&R.object.termType===pe.object.termType)){return false}if(!(R.subject.value===pe.subject.value&&R.predicate.value===pe.predicate.value&&R.object.value===pe.object.value)){return false}if(R.object.termType!==ve){return true}return R.object.datatype.termType===pe.object.datatype.termType&&R.object.language===pe.object.language&&R.object.datatype.value===pe.object.datatype.value}const Ce=/["\\\n\r]/g;function _escape(R){return R.replace(Ce,(function(R){switch(R){case'"':return'\\"';case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r"}}))}const we=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function _unescape(R){return R.replace(we,(function(R,pe,Ae,he){if(pe){switch(pe){case"t":return"\t";case"b":return"\b";case"n":return"\n";case"r":return"\r";case"f":return"\f";case'"':return'"';case"'":return"'";case"\\":return"\\"}}if(Ae){return String.fromCharCode(parseInt(Ae,16))}if(he){throw new Error("Unsupported U escape")}}))}},14099:R=>{"use strict"; + */const pe=null&&["subject","predicate","object","graph"];const Ae="http://www.w3.org/1999/02/22-rdf-syntax-ns#";const he=Ae+"langString";const ge="http://www.w3.org/2001/XMLSchema#string";const ye="NamedNode";const me="BlankNode";const ve="Literal";const be="DefaultGraph";const Ee={};(()=>{const R="(?:<([^:]+:[^>]*)>)";const pe="A-Z"+"a-z"+"À-Ö"+"Ø-ö"+"ø-˿"+"Ͱ-ͽ"+"Ϳ-῿"+"‌-‍"+"⁰-↏"+"Ⰰ-⿯"+"、-퟿"+"豈-﷏"+"ﷰ-�";const Ae=pe+"_";const he=Ae+"0-9"+"-"+"·"+"̀-ͯ"+"‿-⁀";const ge="(_:"+"(?:["+Ae+"0-9])"+"(?:(?:["+he+".])*(?:["+he+"]))?"+")";const ye=ge;const me='"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"';const ve="(?:\\^\\^"+R+")";const be="(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*))";const we="(?:"+me+"(?:"+ve+"|"+be+")?)";const Ce="[ \\t]+";const _e="[ \\t]*";const Ie="(?:"+R+"|"+ye+")"+Ce;const Se=R+Ce;const Be="(?:"+R+"|"+ye+"|"+we+")"+_e;const ke="(?:\\.|(?:(?:"+R+"|"+ye+")"+_e+"\\.))";Ee.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g;Ee.empty=new RegExp("^"+_e+"$");Ee.quad=new RegExp("^"+_e+Ie+Se+Be+ke+_e+"$")})();R.exports=class NQuads{static parse(R){const pe=[];const Ae={};const we=R.split(Ee.eoln);let Ce=0;for(const R of we){Ce++;if(Ee.empty.test(R)){continue}const we=R.match(Ee.quad);if(we===null){throw new Error("N-Quads parse error on line "+Ce+".")}const _e={subject:null,predicate:null,object:null,graph:null};if(we[1]!==undefined){_e.subject={termType:ye,value:we[1]}}else{_e.subject={termType:me,value:we[2]}}_e.predicate={termType:ye,value:we[3]};if(we[4]!==undefined){_e.object={termType:ye,value:we[4]}}else if(we[5]!==undefined){_e.object={termType:me,value:we[5]}}else{_e.object={termType:ve,value:undefined,datatype:{termType:ye}};if(we[7]!==undefined){_e.object.datatype.value=we[7]}else if(we[8]!==undefined){_e.object.datatype.value=he;_e.object.language=we[8]}else{_e.object.datatype.value=ge}_e.object.value=_unescape(we[6])}if(we[9]!==undefined){_e.graph={termType:ye,value:we[9]}}else if(we[10]!==undefined){_e.graph={termType:me,value:we[10]}}else{_e.graph={termType:be,value:""}}if(!(_e.graph.value in Ae)){Ae[_e.graph.value]=[_e];pe.push(_e)}else{let R=true;const he=Ae[_e.graph.value];for(const pe of he){if(_compareTriples(pe,_e)){R=false;break}}if(R){he.push(_e);pe.push(_e)}}}return pe}static serialize(R){if(!Array.isArray(R)){R=NQuads.legacyDatasetToQuads(R)}const pe=[];for(const Ae of R){pe.push(NQuads.serializeQuad(Ae))}return pe.sort().join("")}static serializeQuadComponents(R,pe,Ae,ve){let be="";if(R.termType===ye){be+=`<${R.value}>`}else{be+=`${R.value}`}be+=` <${pe.value}> `;if(Ae.termType===ye){be+=`<${Ae.value}>`}else if(Ae.termType===me){be+=Ae.value}else{be+=`"${_escape(Ae.value)}"`;if(Ae.datatype.value===he){if(Ae.language){be+=`@${Ae.language}`}}else if(Ae.datatype.value!==ge){be+=`^^<${Ae.datatype.value}>`}}if(ve.termType===ye){be+=` <${ve.value}>`}else if(ve.termType===me){be+=` ${ve.value}`}be+=" .\n";return be}static serializeQuad(R){return NQuads.serializeQuadComponents(R.subject,R.predicate,R.object,R.graph)}static legacyDatasetToQuads(R){const pe=[];const Ae={"blank node":me,IRI:ye,literal:ve};for(const Ee in R){const we=R[Ee];we.forEach((R=>{const we={};for(const pe in R){const me=R[pe];const be={termType:Ae[me.type],value:me.value};if(be.termType===ve){be.datatype={termType:ye};if("datatype"in me){be.datatype.value=me.datatype}if("language"in me){if(!("datatype"in me)){be.datatype.value=he}be.language=me.language}else if(!("datatype"in me)){be.datatype.value=ge}}we[pe]=be}if(Ee==="@default"){we.graph={termType:be,value:""}}else{we.graph={termType:Ee.startsWith("_:")?me:ye,value:Ee}}pe.push(we)}))}return pe}};function _compareTriples(R,pe){if(!(R.subject.termType===pe.subject.termType&&R.object.termType===pe.object.termType)){return false}if(!(R.subject.value===pe.subject.value&&R.predicate.value===pe.predicate.value&&R.object.value===pe.object.value)){return false}if(R.object.termType!==ve){return true}return R.object.datatype.termType===pe.object.datatype.termType&&R.object.language===pe.object.language&&R.object.datatype.value===pe.object.datatype.value}const we=/["\\\n\r]/g;function _escape(R){return R.replace(we,(function(R){switch(R){case'"':return'\\"';case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r"}}))}const Ce=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function _unescape(R){return R.replace(Ce,(function(R,pe,Ae,he){if(pe){switch(pe){case"t":return"\t";case"b":return"\b";case"n":return"\n";case"r":return"\r";case"f":return"\f";case'"':return'"';case"'":return"'";case"\\":return"\\"}}if(Ae){return String.fromCharCode(parseInt(Ae,16))}if(he){throw new Error("Unsupported U escape")}}))}},14099:R=>{"use strict"; /*! * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. */R.exports=class Permuter{constructor(R){this.current=R.sort();this.done=false;this.dir=new Map;for(let pe=0;pehe)&&(ve&&Ae>0&&me>R[Ae-1]||!ve&&AeR[Ae+1])){he=me;ge=Ae}}if(he===null){this.done=true}else{const Ae=pe.get(he)?ge-1:ge+1;R[ge]=R[Ae];R[Ae]=he;for(const Ae of R){if(Ae>he){pe.set(Ae,!pe.get(Ae))}}}return Ae}}},78721:(R,pe,Ae)=>{"use strict"; @@ -186,7 +186,7 @@ hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=Zt;hooks.min=min;ho */const he=Ae(82282);const ge=Ae(78721);R.exports=class URDNA2012 extends ge{constructor(){super();this.name="URGNA2012";this.createMessageDigest=()=>new he("sha1")}modifyFirstDegreeComponent(R,pe,Ae){if(pe.termType!=="BlankNode"){return pe}if(Ae==="graph"){return{termType:"BlankNode",value:"_:g"}}return{termType:"BlankNode",value:pe.value===R?"_:a":"_:z"}}getRelatedPredicate(R){return R.predicate.value}async createHashToRelated(R,pe){const Ae=new Map;const he=this.blankNodeInfo.get(R).quads;let ge=0;for(const ye of he){let he;let me;if(ye.subject.termType==="BlankNode"&&ye.subject.value!==R){me=ye.subject.value;he="p"}else if(ye.object.termType==="BlankNode"&&ye.object.value!==R){me=ye.object.value;he="r"}else{continue}if(++ge%100===0){await this._yield()}const ve=await this.hashRelatedBlankNode(me,ye,pe,he);const be=Ae.get(ve);if(be){be.push(me)}else{Ae.set(ve,[me])}}return Ae}}},46843:(R,pe,Ae)=>{"use strict"; /*! * Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved. - */const he=Ae(82282);const ge=Ae(23153);R.exports=class URDNA2012Sync extends ge{constructor(){super();this.name="URGNA2012";this.createMessageDigest=()=>new he("sha1")}modifyFirstDegreeComponent(R,pe,Ae){if(pe.termType!=="BlankNode"){return pe}if(Ae==="graph"){return{termType:"BlankNode",value:"_:g"}}return{termType:"BlankNode",value:pe.value===R?"_:a":"_:z"}}getRelatedPredicate(R){return R.predicate.value}createHashToRelated(R,pe){const Ae=new Map;const he=this.blankNodeInfo.get(R).quads;for(const ge of he){let he;let ye;if(ge.subject.termType==="BlankNode"&&ge.subject.value!==R){ye=ge.subject.value;he="p"}else if(ge.object.termType==="BlankNode"&&ge.object.value!==R){ye=ge.object.value;he="r"}else{continue}const me=this.hashRelatedBlankNode(ye,ge,pe,he);const ve=Ae.get(me);if(ve){ve.push(ye)}else{Ae.set(me,[ye])}}return Ae}}},26874:(R,pe,Ae)=>{"use strict";const he=Ae(78721);const ge=Ae(61100);const ye=Ae(23153);const me=Ae(46843);let ve;try{ve=Ae(12276)}catch(R){}function _inputToDataset(R){if(!Array.isArray(R)){return pe.NQuads.legacyDatasetToQuads(R)}return R}pe.NQuads=Ae(31e3);pe.IdentifierIssuer=Ae(11239);pe._rdfCanonizeNative=function(R){if(R){ve=R}return ve};pe.canonize=async function(R,pe){const Ae=_inputToDataset(R,pe);if(pe.useNative){if(!ve){throw new Error("rdf-canonize-native not available")}if(pe.createMessageDigest){throw new Error('"createMessageDigest" cannot be used with "useNative".')}return new Promise(((R,he)=>ve.canonize(Ae,pe,((pe,Ae)=>pe?he(pe):R(Ae)))))}if(pe.algorithm==="URDNA2015"){return new he(pe).main(Ae)}if(pe.algorithm==="URGNA2012"){if(pe.createMessageDigest){throw new Error('"createMessageDigest" cannot be used with "URGNA2012".')}return new ge(pe).main(Ae)}if(!("algorithm"in pe)){throw new Error("No RDF Dataset Canonicalization algorithm specified.")}throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+pe.algorithm)};pe._canonizeSync=function(R,pe){const Ae=_inputToDataset(R,pe);if(pe.useNative){if(!ve){throw new Error("rdf-canonize-native not available")}if(pe.createMessageDigest){throw new Error('"createMessageDigest" cannot be used with "useNative".')}return ve.canonizeSync(Ae,pe)}if(pe.algorithm==="URDNA2015"){return new ye(pe).main(Ae)}if(pe.algorithm==="URGNA2012"){if(pe.createMessageDigest){throw new Error('"createMessageDigest" cannot be used with "URGNA2012".')}return new me(pe).main(Ae)}if(!("algorithm"in pe)){throw new Error("No RDF Dataset Canonicalization algorithm specified.")}throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+pe.algorithm)}},1752:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;Object.defineProperty(R,he,{enumerable:true,get:function(){return pe[Ae]}})}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});pe.interval=pe.iif=pe.generate=pe.fromEventPattern=pe.fromEvent=pe.from=pe.forkJoin=pe.empty=pe.defer=pe.connectable=pe.concat=pe.combineLatest=pe.bindNodeCallback=pe.bindCallback=pe.UnsubscriptionError=pe.TimeoutError=pe.SequenceError=pe.ObjectUnsubscribedError=pe.NotFoundError=pe.EmptyError=pe.ArgumentOutOfRangeError=pe.firstValueFrom=pe.lastValueFrom=pe.isObservable=pe.identity=pe.noop=pe.pipe=pe.NotificationKind=pe.Notification=pe.Subscriber=pe.Subscription=pe.Scheduler=pe.VirtualAction=pe.VirtualTimeScheduler=pe.animationFrameScheduler=pe.animationFrame=pe.queueScheduler=pe.queue=pe.asyncScheduler=pe.async=pe.asapScheduler=pe.asap=pe.AsyncSubject=pe.ReplaySubject=pe.BehaviorSubject=pe.Subject=pe.animationFrames=pe.observable=pe.ConnectableObservable=pe.Observable=void 0;pe.filter=pe.expand=pe.exhaustMap=pe.exhaustAll=pe.exhaust=pe.every=pe.endWith=pe.elementAt=pe.distinctUntilKeyChanged=pe.distinctUntilChanged=pe.distinct=pe.dematerialize=pe.delayWhen=pe.delay=pe.defaultIfEmpty=pe.debounceTime=pe.debounce=pe.count=pe.connect=pe.concatWith=pe.concatMapTo=pe.concatMap=pe.concatAll=pe.combineLatestWith=pe.combineLatestAll=pe.combineAll=pe.catchError=pe.bufferWhen=pe.bufferToggle=pe.bufferTime=pe.bufferCount=pe.buffer=pe.auditTime=pe.audit=pe.config=pe.NEVER=pe.EMPTY=pe.scheduled=pe.zip=pe.using=pe.timer=pe.throwError=pe.range=pe.race=pe.partition=pe.pairs=pe.onErrorResumeNext=pe.of=pe.never=pe.merge=void 0;pe.switchMap=pe.switchAll=pe.subscribeOn=pe.startWith=pe.skipWhile=pe.skipUntil=pe.skipLast=pe.skip=pe.single=pe.shareReplay=pe.share=pe.sequenceEqual=pe.scan=pe.sampleTime=pe.sample=pe.refCount=pe.retryWhen=pe.retry=pe.repeatWhen=pe.repeat=pe.reduce=pe.raceWith=pe.publishReplay=pe.publishLast=pe.publishBehavior=pe.publish=pe.pluck=pe.pairwise=pe.onErrorResumeNextWith=pe.observeOn=pe.multicast=pe.min=pe.mergeWith=pe.mergeScan=pe.mergeMapTo=pe.mergeMap=pe.flatMap=pe.mergeAll=pe.max=pe.materialize=pe.mapTo=pe.map=pe.last=pe.isEmpty=pe.ignoreElements=pe.groupBy=pe.first=pe.findIndex=pe.find=pe.finalize=void 0;pe.zipWith=pe.zipAll=pe.withLatestFrom=pe.windowWhen=pe.windowToggle=pe.windowTime=pe.windowCount=pe.window=pe.toArray=pe.timestamp=pe.timeoutWith=pe.timeout=pe.timeInterval=pe.throwIfEmpty=pe.throttleTime=pe.throttle=pe.tap=pe.takeWhile=pe.takeUntil=pe.takeLast=pe.take=pe.switchScan=pe.switchMapTo=void 0;var ye=Ae(53014);Object.defineProperty(pe,"Observable",{enumerable:true,get:function(){return ye.Observable}});var me=Ae(30420);Object.defineProperty(pe,"ConnectableObservable",{enumerable:true,get:function(){return me.ConnectableObservable}});var ve=Ae(17186);Object.defineProperty(pe,"observable",{enumerable:true,get:function(){return ve.observable}});var be=Ae(38197);Object.defineProperty(pe,"animationFrames",{enumerable:true,get:function(){return be.animationFrames}});var Ee=Ae(49944);Object.defineProperty(pe,"Subject",{enumerable:true,get:function(){return Ee.Subject}});var Ce=Ae(23473);Object.defineProperty(pe,"BehaviorSubject",{enumerable:true,get:function(){return Ce.BehaviorSubject}});var we=Ae(22351);Object.defineProperty(pe,"ReplaySubject",{enumerable:true,get:function(){return we.ReplaySubject}});var _e=Ae(9747);Object.defineProperty(pe,"AsyncSubject",{enumerable:true,get:function(){return _e.AsyncSubject}});var Ie=Ae(43905);Object.defineProperty(pe,"asap",{enumerable:true,get:function(){return Ie.asap}});Object.defineProperty(pe,"asapScheduler",{enumerable:true,get:function(){return Ie.asapScheduler}});var Se=Ae(76072);Object.defineProperty(pe,"async",{enumerable:true,get:function(){return Se.async}});Object.defineProperty(pe,"asyncScheduler",{enumerable:true,get:function(){return Se.asyncScheduler}});var Be=Ae(82059);Object.defineProperty(pe,"queue",{enumerable:true,get:function(){return Be.queue}});Object.defineProperty(pe,"queueScheduler",{enumerable:true,get:function(){return Be.queueScheduler}});var ke=Ae(51359);Object.defineProperty(pe,"animationFrame",{enumerable:true,get:function(){return ke.animationFrame}});Object.defineProperty(pe,"animationFrameScheduler",{enumerable:true,get:function(){return ke.animationFrameScheduler}});var Oe=Ae(75348);Object.defineProperty(pe,"VirtualTimeScheduler",{enumerable:true,get:function(){return Oe.VirtualTimeScheduler}});Object.defineProperty(pe,"VirtualAction",{enumerable:true,get:function(){return Oe.VirtualAction}});var Re=Ae(76243);Object.defineProperty(pe,"Scheduler",{enumerable:true,get:function(){return Re.Scheduler}});var Qe=Ae(79548);Object.defineProperty(pe,"Subscription",{enumerable:true,get:function(){return Qe.Subscription}});var xe=Ae(67121);Object.defineProperty(pe,"Subscriber",{enumerable:true,get:function(){return xe.Subscriber}});var Pe=Ae(12241);Object.defineProperty(pe,"Notification",{enumerable:true,get:function(){return Pe.Notification}});Object.defineProperty(pe,"NotificationKind",{enumerable:true,get:function(){return Pe.NotificationKind}});var Te=Ae(49587);Object.defineProperty(pe,"pipe",{enumerable:true,get:function(){return Te.pipe}});var De=Ae(11642);Object.defineProperty(pe,"noop",{enumerable:true,get:function(){return De.noop}});var Ne=Ae(60283);Object.defineProperty(pe,"identity",{enumerable:true,get:function(){return Ne.identity}});var Me=Ae(72259);Object.defineProperty(pe,"isObservable",{enumerable:true,get:function(){return Me.isObservable}});var je=Ae(49713);Object.defineProperty(pe,"lastValueFrom",{enumerable:true,get:function(){return je.lastValueFrom}});var Fe=Ae(19369);Object.defineProperty(pe,"firstValueFrom",{enumerable:true,get:function(){return Fe.firstValueFrom}});var Le=Ae(49796);Object.defineProperty(pe,"ArgumentOutOfRangeError",{enumerable:true,get:function(){return Le.ArgumentOutOfRangeError}});var Ue=Ae(99391);Object.defineProperty(pe,"EmptyError",{enumerable:true,get:function(){return Ue.EmptyError}});var He=Ae(74431);Object.defineProperty(pe,"NotFoundError",{enumerable:true,get:function(){return He.NotFoundError}});var Je=Ae(95266);Object.defineProperty(pe,"ObjectUnsubscribedError",{enumerable:true,get:function(){return Je.ObjectUnsubscribedError}});var We=Ae(49048);Object.defineProperty(pe,"SequenceError",{enumerable:true,get:function(){return We.SequenceError}});var Ve=Ae(12051);Object.defineProperty(pe,"TimeoutError",{enumerable:true,get:function(){return Ve.TimeoutError}});var Ke=Ae(56776);Object.defineProperty(pe,"UnsubscriptionError",{enumerable:true,get:function(){return Ke.UnsubscriptionError}});var Ge=Ae(16949);Object.defineProperty(pe,"bindCallback",{enumerable:true,get:function(){return Ge.bindCallback}});var Ye=Ae(51150);Object.defineProperty(pe,"bindNodeCallback",{enumerable:true,get:function(){return Ye.bindNodeCallback}});var qe=Ae(89958);Object.defineProperty(pe,"combineLatest",{enumerable:true,get:function(){return qe.combineLatest}});var $e=Ae(4675);Object.defineProperty(pe,"concat",{enumerable:true,get:function(){return $e.concat}});var ze=Ae(13152);Object.defineProperty(pe,"connectable",{enumerable:true,get:function(){return ze.connectable}});var Xe=Ae(27672);Object.defineProperty(pe,"defer",{enumerable:true,get:function(){return Xe.defer}});var Ze=Ae(70437);Object.defineProperty(pe,"empty",{enumerable:true,get:function(){return Ze.empty}});var et=Ae(47358);Object.defineProperty(pe,"forkJoin",{enumerable:true,get:function(){return et.forkJoin}});var tt=Ae(18309);Object.defineProperty(pe,"from",{enumerable:true,get:function(){return tt.from}});var rt=Ae(93238);Object.defineProperty(pe,"fromEvent",{enumerable:true,get:function(){return rt.fromEvent}});var nt=Ae(65680);Object.defineProperty(pe,"fromEventPattern",{enumerable:true,get:function(){return nt.fromEventPattern}});var it=Ae(52668);Object.defineProperty(pe,"generate",{enumerable:true,get:function(){return it.generate}});var ot=Ae(26514);Object.defineProperty(pe,"iif",{enumerable:true,get:function(){return ot.iif}});var st=Ae(20029);Object.defineProperty(pe,"interval",{enumerable:true,get:function(){return st.interval}});var at=Ae(75122);Object.defineProperty(pe,"merge",{enumerable:true,get:function(){return at.merge}});var ct=Ae(6228);Object.defineProperty(pe,"never",{enumerable:true,get:function(){return ct.never}});var ut=Ae(72163);Object.defineProperty(pe,"of",{enumerable:true,get:function(){return ut.of}});var lt=Ae(16089);Object.defineProperty(pe,"onErrorResumeNext",{enumerable:true,get:function(){return lt.onErrorResumeNext}});var dt=Ae(30505);Object.defineProperty(pe,"pairs",{enumerable:true,get:function(){return dt.pairs}});var ft=Ae(15506);Object.defineProperty(pe,"partition",{enumerable:true,get:function(){return ft.partition}});var pt=Ae(16940);Object.defineProperty(pe,"race",{enumerable:true,get:function(){return pt.race}});var At=Ae(88538);Object.defineProperty(pe,"range",{enumerable:true,get:function(){return At.range}});var ht=Ae(66381);Object.defineProperty(pe,"throwError",{enumerable:true,get:function(){return ht.throwError}});var gt=Ae(59757);Object.defineProperty(pe,"timer",{enumerable:true,get:function(){return gt.timer}});var yt=Ae(8445);Object.defineProperty(pe,"using",{enumerable:true,get:function(){return yt.using}});var mt=Ae(62504);Object.defineProperty(pe,"zip",{enumerable:true,get:function(){return mt.zip}});var vt=Ae(6151);Object.defineProperty(pe,"scheduled",{enumerable:true,get:function(){return vt.scheduled}});var bt=Ae(70437);Object.defineProperty(pe,"EMPTY",{enumerable:true,get:function(){return bt.EMPTY}});var Et=Ae(6228);Object.defineProperty(pe,"NEVER",{enumerable:true,get:function(){return Et.NEVER}});ge(Ae(36639),pe);var Ct=Ae(92233);Object.defineProperty(pe,"config",{enumerable:true,get:function(){return Ct.config}});var wt=Ae(82704);Object.defineProperty(pe,"audit",{enumerable:true,get:function(){return wt.audit}});var _t=Ae(18780);Object.defineProperty(pe,"auditTime",{enumerable:true,get:function(){return _t.auditTime}});var It=Ae(34253);Object.defineProperty(pe,"buffer",{enumerable:true,get:function(){return It.buffer}});var St=Ae(17253);Object.defineProperty(pe,"bufferCount",{enumerable:true,get:function(){return St.bufferCount}});var Bt=Ae(73102);Object.defineProperty(pe,"bufferTime",{enumerable:true,get:function(){return Bt.bufferTime}});var kt=Ae(83781);Object.defineProperty(pe,"bufferToggle",{enumerable:true,get:function(){return kt.bufferToggle}});var Ot=Ae(82855);Object.defineProperty(pe,"bufferWhen",{enumerable:true,get:function(){return Ot.bufferWhen}});var Rt=Ae(37765);Object.defineProperty(pe,"catchError",{enumerable:true,get:function(){return Rt.catchError}});var Qt=Ae(88817);Object.defineProperty(pe,"combineAll",{enumerable:true,get:function(){return Qt.combineAll}});var xt=Ae(91063);Object.defineProperty(pe,"combineLatestAll",{enumerable:true,get:function(){return xt.combineLatestAll}});var Pt=Ae(19044);Object.defineProperty(pe,"combineLatestWith",{enumerable:true,get:function(){return Pt.combineLatestWith}});var Tt=Ae(88049);Object.defineProperty(pe,"concatAll",{enumerable:true,get:function(){return Tt.concatAll}});var Dt=Ae(19130);Object.defineProperty(pe,"concatMap",{enumerable:true,get:function(){return Dt.concatMap}});var Nt=Ae(61596);Object.defineProperty(pe,"concatMapTo",{enumerable:true,get:function(){return Nt.concatMapTo}});var Mt=Ae(97998);Object.defineProperty(pe,"concatWith",{enumerable:true,get:function(){return Mt.concatWith}});var jt=Ae(51101);Object.defineProperty(pe,"connect",{enumerable:true,get:function(){return jt.connect}});var Ft=Ae(36571);Object.defineProperty(pe,"count",{enumerable:true,get:function(){return Ft.count}});var Lt=Ae(19348);Object.defineProperty(pe,"debounce",{enumerable:true,get:function(){return Lt.debounce}});var Ut=Ae(62379);Object.defineProperty(pe,"debounceTime",{enumerable:true,get:function(){return Ut.debounceTime}});var Ht=Ae(30621);Object.defineProperty(pe,"defaultIfEmpty",{enumerable:true,get:function(){return Ht.defaultIfEmpty}});var Jt=Ae(99818);Object.defineProperty(pe,"delay",{enumerable:true,get:function(){return Jt.delay}});var Wt=Ae(16994);Object.defineProperty(pe,"delayWhen",{enumerable:true,get:function(){return Wt.delayWhen}});var Vt=Ae(95338);Object.defineProperty(pe,"dematerialize",{enumerable:true,get:function(){return Vt.dematerialize}});var Kt=Ae(52594);Object.defineProperty(pe,"distinct",{enumerable:true,get:function(){return Kt.distinct}});var Gt=Ae(20632);Object.defineProperty(pe,"distinctUntilChanged",{enumerable:true,get:function(){return Gt.distinctUntilChanged}});var Yt=Ae(13809);Object.defineProperty(pe,"distinctUntilKeyChanged",{enumerable:true,get:function(){return Yt.distinctUntilKeyChanged}});var qt=Ae(73381);Object.defineProperty(pe,"elementAt",{enumerable:true,get:function(){return qt.elementAt}});var $t=Ae(42961);Object.defineProperty(pe,"endWith",{enumerable:true,get:function(){return $t.endWith}});var zt=Ae(69559);Object.defineProperty(pe,"every",{enumerable:true,get:function(){return zt.every}});var Xt=Ae(75686);Object.defineProperty(pe,"exhaust",{enumerable:true,get:function(){return Xt.exhaust}});var Zt=Ae(79777);Object.defineProperty(pe,"exhaustAll",{enumerable:true,get:function(){return Zt.exhaustAll}});var er=Ae(21527);Object.defineProperty(pe,"exhaustMap",{enumerable:true,get:function(){return er.exhaustMap}});var tr=Ae(21585);Object.defineProperty(pe,"expand",{enumerable:true,get:function(){return tr.expand}});var rr=Ae(36894);Object.defineProperty(pe,"filter",{enumerable:true,get:function(){return rr.filter}});var nr=Ae(4013);Object.defineProperty(pe,"finalize",{enumerable:true,get:function(){return nr.finalize}});var ir=Ae(28981);Object.defineProperty(pe,"find",{enumerable:true,get:function(){return ir.find}});var sr=Ae(92602);Object.defineProperty(pe,"findIndex",{enumerable:true,get:function(){return sr.findIndex}});var ar=Ae(63345);Object.defineProperty(pe,"first",{enumerable:true,get:function(){return ar.first}});var cr=Ae(51650);Object.defineProperty(pe,"groupBy",{enumerable:true,get:function(){return cr.groupBy}});var ur=Ae(31062);Object.defineProperty(pe,"ignoreElements",{enumerable:true,get:function(){return ur.ignoreElements}});var lr=Ae(77722);Object.defineProperty(pe,"isEmpty",{enumerable:true,get:function(){return lr.isEmpty}});var dr=Ae(46831);Object.defineProperty(pe,"last",{enumerable:true,get:function(){return dr.last}});var fr=Ae(5987);Object.defineProperty(pe,"map",{enumerable:true,get:function(){return fr.map}});var pr=Ae(52300);Object.defineProperty(pe,"mapTo",{enumerable:true,get:function(){return pr.mapTo}});var Ar=Ae(67108);Object.defineProperty(pe,"materialize",{enumerable:true,get:function(){return Ar.materialize}});var hr=Ae(17314);Object.defineProperty(pe,"max",{enumerable:true,get:function(){return hr.max}});var gr=Ae(2057);Object.defineProperty(pe,"mergeAll",{enumerable:true,get:function(){return gr.mergeAll}});var yr=Ae(40186);Object.defineProperty(pe,"flatMap",{enumerable:true,get:function(){return yr.flatMap}});var mr=Ae(69914);Object.defineProperty(pe,"mergeMap",{enumerable:true,get:function(){return mr.mergeMap}});var vr=Ae(49151);Object.defineProperty(pe,"mergeMapTo",{enumerable:true,get:function(){return vr.mergeMapTo}});var br=Ae(11519);Object.defineProperty(pe,"mergeScan",{enumerable:true,get:function(){return br.mergeScan}});var Er=Ae(31564);Object.defineProperty(pe,"mergeWith",{enumerable:true,get:function(){return Er.mergeWith}});var Cr=Ae(87641);Object.defineProperty(pe,"min",{enumerable:true,get:function(){return Cr.min}});var wr=Ae(65457);Object.defineProperty(pe,"multicast",{enumerable:true,get:function(){return wr.multicast}});var _r=Ae(22451);Object.defineProperty(pe,"observeOn",{enumerable:true,get:function(){return _r.observeOn}});var Ir=Ae(33569);Object.defineProperty(pe,"onErrorResumeNextWith",{enumerable:true,get:function(){return Ir.onErrorResumeNextWith}});var Sr=Ae(52206);Object.defineProperty(pe,"pairwise",{enumerable:true,get:function(){return Sr.pairwise}});var Br=Ae(16073);Object.defineProperty(pe,"pluck",{enumerable:true,get:function(){return Br.pluck}});var kr=Ae(84084);Object.defineProperty(pe,"publish",{enumerable:true,get:function(){return kr.publish}});var Or=Ae(40045);Object.defineProperty(pe,"publishBehavior",{enumerable:true,get:function(){return Or.publishBehavior}});var Rr=Ae(84149);Object.defineProperty(pe,"publishLast",{enumerable:true,get:function(){return Rr.publishLast}});var Qr=Ae(47656);Object.defineProperty(pe,"publishReplay",{enumerable:true,get:function(){return Qr.publishReplay}});var xr=Ae(58008);Object.defineProperty(pe,"raceWith",{enumerable:true,get:function(){return xr.raceWith}});var Pr=Ae(73694);Object.defineProperty(pe,"reduce",{enumerable:true,get:function(){return Pr.reduce}});var Tr=Ae(22418);Object.defineProperty(pe,"repeat",{enumerable:true,get:function(){return Tr.repeat}});var Dr=Ae(70754);Object.defineProperty(pe,"repeatWhen",{enumerable:true,get:function(){return Dr.repeatWhen}});var Nr=Ae(56251);Object.defineProperty(pe,"retry",{enumerable:true,get:function(){return Nr.retry}});var Mr=Ae(69018);Object.defineProperty(pe,"retryWhen",{enumerable:true,get:function(){return Mr.retryWhen}});var jr=Ae(2331);Object.defineProperty(pe,"refCount",{enumerable:true,get:function(){return jr.refCount}});var Fr=Ae(13774);Object.defineProperty(pe,"sample",{enumerable:true,get:function(){return Fr.sample}});var Lr=Ae(49807);Object.defineProperty(pe,"sampleTime",{enumerable:true,get:function(){return Lr.sampleTime}});var Ur=Ae(25578);Object.defineProperty(pe,"scan",{enumerable:true,get:function(){return Ur.scan}});var Hr=Ae(16126);Object.defineProperty(pe,"sequenceEqual",{enumerable:true,get:function(){return Hr.sequenceEqual}});var Jr=Ae(48960);Object.defineProperty(pe,"share",{enumerable:true,get:function(){return Jr.share}});var Wr=Ae(92118);Object.defineProperty(pe,"shareReplay",{enumerable:true,get:function(){return Wr.shareReplay}});var Vr=Ae(58441);Object.defineProperty(pe,"single",{enumerable:true,get:function(){return Vr.single}});var Kr=Ae(80947);Object.defineProperty(pe,"skip",{enumerable:true,get:function(){return Kr.skip}});var Gr=Ae(65865);Object.defineProperty(pe,"skipLast",{enumerable:true,get:function(){return Gr.skipLast}});var Yr=Ae(41110);Object.defineProperty(pe,"skipUntil",{enumerable:true,get:function(){return Yr.skipUntil}});var qr=Ae(92550);Object.defineProperty(pe,"skipWhile",{enumerable:true,get:function(){return qr.skipWhile}});var $r=Ae(25471);Object.defineProperty(pe,"startWith",{enumerable:true,get:function(){return $r.startWith}});var zr=Ae(7224);Object.defineProperty(pe,"subscribeOn",{enumerable:true,get:function(){return zr.subscribeOn}});var Xr=Ae(40327);Object.defineProperty(pe,"switchAll",{enumerable:true,get:function(){return Xr.switchAll}});var Zr=Ae(26704);Object.defineProperty(pe,"switchMap",{enumerable:true,get:function(){return Zr.switchMap}});var en=Ae(1713);Object.defineProperty(pe,"switchMapTo",{enumerable:true,get:function(){return en.switchMapTo}});var tn=Ae(13355);Object.defineProperty(pe,"switchScan",{enumerable:true,get:function(){return tn.switchScan}});var rn=Ae(33698);Object.defineProperty(pe,"take",{enumerable:true,get:function(){return rn.take}});var nn=Ae(65041);Object.defineProperty(pe,"takeLast",{enumerable:true,get:function(){return nn.takeLast}});var on=Ae(55150);Object.defineProperty(pe,"takeUntil",{enumerable:true,get:function(){return on.takeUntil}});var sn=Ae(76700);Object.defineProperty(pe,"takeWhile",{enumerable:true,get:function(){return sn.takeWhile}});var an=Ae(48845);Object.defineProperty(pe,"tap",{enumerable:true,get:function(){return an.tap}});var cn=Ae(36713);Object.defineProperty(pe,"throttle",{enumerable:true,get:function(){return cn.throttle}});var un=Ae(83435);Object.defineProperty(pe,"throttleTime",{enumerable:true,get:function(){return un.throttleTime}});var ln=Ae(91566);Object.defineProperty(pe,"throwIfEmpty",{enumerable:true,get:function(){return ln.throwIfEmpty}});var dn=Ae(14643);Object.defineProperty(pe,"timeInterval",{enumerable:true,get:function(){return dn.timeInterval}});var fn=Ae(12051);Object.defineProperty(pe,"timeout",{enumerable:true,get:function(){return fn.timeout}});var pn=Ae(43540);Object.defineProperty(pe,"timeoutWith",{enumerable:true,get:function(){return pn.timeoutWith}});var An=Ae(75518);Object.defineProperty(pe,"timestamp",{enumerable:true,get:function(){return An.timestamp}});var hn=Ae(35114);Object.defineProperty(pe,"toArray",{enumerable:true,get:function(){return hn.toArray}});var gn=Ae(98255);Object.defineProperty(pe,"window",{enumerable:true,get:function(){return gn.window}});var yn=Ae(73144);Object.defineProperty(pe,"windowCount",{enumerable:true,get:function(){return yn.windowCount}});var mn=Ae(2738);Object.defineProperty(pe,"windowTime",{enumerable:true,get:function(){return mn.windowTime}});var vn=Ae(52741);Object.defineProperty(pe,"windowToggle",{enumerable:true,get:function(){return vn.windowToggle}});var bn=Ae(82645);Object.defineProperty(pe,"windowWhen",{enumerable:true,get:function(){return bn.windowWhen}});var En=Ae(20501);Object.defineProperty(pe,"withLatestFrom",{enumerable:true,get:function(){return En.withLatestFrom}});var Cn=Ae(92335);Object.defineProperty(pe,"zipAll",{enumerable:true,get:function(){return Cn.zipAll}});var wn=Ae(95520);Object.defineProperty(pe,"zipWith",{enumerable:true,get:function(){return wn.zipWith}})},9747:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AsyncSubject=void 0;var ge=Ae(49944);var ye=function(R){he(AsyncSubject,R);function AsyncSubject(){var pe=R!==null&&R.apply(this,arguments)||this;pe._value=null;pe._hasValue=false;pe._isComplete=false;return pe}AsyncSubject.prototype._checkFinalizedStatuses=function(R){var pe=this,Ae=pe.hasError,he=pe._hasValue,ge=pe._value,ye=pe.thrownError,me=pe.isStopped,ve=pe._isComplete;if(Ae){R.error(ye)}else if(me||ve){he&&R.next(ge);R.complete()}};AsyncSubject.prototype.next=function(R){if(!this.isStopped){this._value=R;this._hasValue=true}};AsyncSubject.prototype.complete=function(){var pe=this,Ae=pe._hasValue,he=pe._value,ge=pe._isComplete;if(!ge){this._isComplete=true;Ae&&R.prototype.next.call(this,he);R.prototype.complete.call(this)}};return AsyncSubject}(ge.Subject);pe.AsyncSubject=ye},23473:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.BehaviorSubject=void 0;var ge=Ae(49944);var ye=function(R){he(BehaviorSubject,R);function BehaviorSubject(pe){var Ae=R.call(this)||this;Ae._value=pe;return Ae}Object.defineProperty(BehaviorSubject.prototype,"value",{get:function(){return this.getValue()},enumerable:false,configurable:true});BehaviorSubject.prototype._subscribe=function(pe){var Ae=R.prototype._subscribe.call(this,pe);!Ae.closed&&pe.next(this._value);return Ae};BehaviorSubject.prototype.getValue=function(){var R=this,pe=R.hasError,Ae=R.thrownError,he=R._value;if(pe){throw Ae}this._throwIfClosed();return he};BehaviorSubject.prototype.next=function(pe){R.prototype.next.call(this,this._value=pe)};return BehaviorSubject}(ge.Subject);pe.BehaviorSubject=ye},12241:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.observeNotification=pe.Notification=pe.NotificationKind=void 0;var he=Ae(70437);var ge=Ae(72163);var ye=Ae(66381);var me=Ae(67206);var ve;(function(R){R["NEXT"]="N";R["ERROR"]="E";R["COMPLETE"]="C"})(ve=pe.NotificationKind||(pe.NotificationKind={}));var be=function(){function Notification(R,pe,Ae){this.kind=R;this.value=pe;this.error=Ae;this.hasValue=R==="N"}Notification.prototype.observe=function(R){return observeNotification(this,R)};Notification.prototype.do=function(R,pe,Ae){var he=this,ge=he.kind,ye=he.value,me=he.error;return ge==="N"?R===null||R===void 0?void 0:R(ye):ge==="E"?pe===null||pe===void 0?void 0:pe(me):Ae===null||Ae===void 0?void 0:Ae()};Notification.prototype.accept=function(R,pe,Ae){var he;return me.isFunction((he=R)===null||he===void 0?void 0:he.next)?this.observe(R):this.do(R,pe,Ae)};Notification.prototype.toObservable=function(){var R=this,pe=R.kind,Ae=R.value,me=R.error;var ve=pe==="N"?ge.of(Ae):pe==="E"?ye.throwError((function(){return me})):pe==="C"?he.EMPTY:0;if(!ve){throw new TypeError("Unexpected notification kind "+pe)}return ve};Notification.createNext=function(R){return new Notification("N",R)};Notification.createError=function(R){return new Notification("E",undefined,R)};Notification.createComplete=function(){return Notification.completeNotification};Notification.completeNotification=new Notification("C");return Notification}();pe.Notification=be;function observeNotification(R,pe){var Ae,he,ge;var ye=R,me=ye.kind,ve=ye.value,be=ye.error;if(typeof me!=="string"){throw new TypeError('Invalid notification, missing "kind"')}me==="N"?(Ae=pe.next)===null||Ae===void 0?void 0:Ae.call(pe,ve):me==="E"?(he=pe.error)===null||he===void 0?void 0:he.call(pe,be):(ge=pe.complete)===null||ge===void 0?void 0:ge.call(pe)}pe.observeNotification=observeNotification},2500:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createNotification=pe.nextNotification=pe.errorNotification=pe.COMPLETE_NOTIFICATION=void 0;pe.COMPLETE_NOTIFICATION=function(){return createNotification("C",undefined,undefined)}();function errorNotification(R){return createNotification("E",undefined,R)}pe.errorNotification=errorNotification;function nextNotification(R){return createNotification("N",R,undefined)}pe.nextNotification=nextNotification;function createNotification(R,pe,Ae){return{kind:R,value:pe,error:Ae}}pe.createNotification=createNotification},53014:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Observable=void 0;var he=Ae(67121);var ge=Ae(79548);var ye=Ae(17186);var me=Ae(49587);var ve=Ae(92233);var be=Ae(67206);var Ee=Ae(31199);var Ce=function(){function Observable(R){if(R){this._subscribe=R}}Observable.prototype.lift=function(R){var pe=new Observable;pe.source=this;pe.operator=R;return pe};Observable.prototype.subscribe=function(R,pe,Ae){var ge=this;var ye=isSubscriber(R)?R:new he.SafeSubscriber(R,pe,Ae);Ee.errorContext((function(){var R=ge,pe=R.operator,Ae=R.source;ye.add(pe?pe.call(ye,Ae):Ae?ge._subscribe(ye):ge._trySubscribe(ye))}));return ye};Observable.prototype._trySubscribe=function(R){try{return this._subscribe(R)}catch(pe){R.error(pe)}};Observable.prototype.forEach=function(R,pe){var Ae=this;pe=getPromiseCtor(pe);return new pe((function(pe,ge){var ye=new he.SafeSubscriber({next:function(pe){try{R(pe)}catch(R){ge(R);ye.unsubscribe()}},error:ge,complete:pe});Ae.subscribe(ye)}))};Observable.prototype._subscribe=function(R){var pe;return(pe=this.source)===null||pe===void 0?void 0:pe.subscribe(R)};Observable.prototype[ye.observable]=function(){return this};Observable.prototype.pipe=function(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Scheduler=void 0;var he=Ae(91395);var ge=function(){function Scheduler(R,pe){if(pe===void 0){pe=Scheduler.now}this.schedulerActionCtor=R;this.now=pe}Scheduler.prototype.schedule=function(R,pe,Ae){if(pe===void 0){pe=0}return new this.schedulerActionCtor(this,R).schedule(Ae,pe)};Scheduler.now=he.dateTimestampProvider.now;return Scheduler}();pe.Scheduler=ge},49944:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.AnonymousSubject=pe.Subject=void 0;var ye=Ae(53014);var me=Ae(79548);var ve=Ae(95266);var be=Ae(68499);var Ee=Ae(31199);var Ce=function(R){he(Subject,R);function Subject(){var pe=R.call(this)||this;pe.closed=false;pe.currentObservers=null;pe.observers=[];pe.isStopped=false;pe.hasError=false;pe.thrownError=null;return pe}Subject.prototype.lift=function(R){var pe=new we(this,this);pe.operator=R;return pe};Subject.prototype._throwIfClosed=function(){if(this.closed){throw new ve.ObjectUnsubscribedError}};Subject.prototype.next=function(R){var pe=this;Ee.errorContext((function(){var Ae,he;pe._throwIfClosed();if(!pe.isStopped){if(!pe.currentObservers){pe.currentObservers=Array.from(pe.observers)}try{for(var ye=ge(pe.currentObservers),me=ye.next();!me.done;me=ye.next()){var ve=me.value;ve.next(R)}}catch(R){Ae={error:R}}finally{try{if(me&&!me.done&&(he=ye.return))he.call(ye)}finally{if(Ae)throw Ae.error}}}}))};Subject.prototype.error=function(R){var pe=this;Ee.errorContext((function(){pe._throwIfClosed();if(!pe.isStopped){pe.hasError=pe.isStopped=true;pe.thrownError=R;var Ae=pe.observers;while(Ae.length){Ae.shift().error(R)}}}))};Subject.prototype.complete=function(){var R=this;Ee.errorContext((function(){R._throwIfClosed();if(!R.isStopped){R.isStopped=true;var pe=R.observers;while(pe.length){pe.shift().complete()}}}))};Subject.prototype.unsubscribe=function(){this.isStopped=this.closed=true;this.observers=this.currentObservers=null};Object.defineProperty(Subject.prototype,"observed",{get:function(){var R;return((R=this.observers)===null||R===void 0?void 0:R.length)>0},enumerable:false,configurable:true});Subject.prototype._trySubscribe=function(pe){this._throwIfClosed();return R.prototype._trySubscribe.call(this,pe)};Subject.prototype._subscribe=function(R){this._throwIfClosed();this._checkFinalizedStatuses(R);return this._innerSubscribe(R)};Subject.prototype._innerSubscribe=function(R){var pe=this;var Ae=this,he=Ae.hasError,ge=Ae.isStopped,ye=Ae.observers;if(he||ge){return me.EMPTY_SUBSCRIPTION}this.currentObservers=null;ye.push(R);return new me.Subscription((function(){pe.currentObservers=null;be.arrRemove(ye,R)}))};Subject.prototype._checkFinalizedStatuses=function(R){var pe=this,Ae=pe.hasError,he=pe.thrownError,ge=pe.isStopped;if(Ae){R.error(he)}else if(ge){R.complete()}};Subject.prototype.asObservable=function(){var R=new ye.Observable;R.source=this;return R};Subject.create=function(R,pe){return new we(R,pe)};return Subject}(ye.Observable);pe.Subject=Ce;var we=function(R){he(AnonymousSubject,R);function AnonymousSubject(pe,Ae){var he=R.call(this)||this;he.destination=pe;he.source=Ae;return he}AnonymousSubject.prototype.next=function(R){var pe,Ae;(Ae=(pe=this.destination)===null||pe===void 0?void 0:pe.next)===null||Ae===void 0?void 0:Ae.call(pe,R)};AnonymousSubject.prototype.error=function(R){var pe,Ae;(Ae=(pe=this.destination)===null||pe===void 0?void 0:pe.error)===null||Ae===void 0?void 0:Ae.call(pe,R)};AnonymousSubject.prototype.complete=function(){var R,pe;(pe=(R=this.destination)===null||R===void 0?void 0:R.complete)===null||pe===void 0?void 0:pe.call(R)};AnonymousSubject.prototype._subscribe=function(R){var pe,Ae;return(Ae=(pe=this.source)===null||pe===void 0?void 0:pe.subscribe(R))!==null&&Ae!==void 0?Ae:me.EMPTY_SUBSCRIPTION};return AnonymousSubject}(Ce);pe.AnonymousSubject=we},67121:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.EMPTY_OBSERVER=pe.SafeSubscriber=pe.Subscriber=void 0;var ge=Ae(67206);var ye=Ae(79548);var me=Ae(92233);var ve=Ae(92445);var be=Ae(11642);var Ee=Ae(2500);var Ce=Ae(1613);var we=Ae(31199);var _e=function(R){he(Subscriber,R);function Subscriber(Ae){var he=R.call(this)||this;he.isStopped=false;if(Ae){he.destination=Ae;if(ye.isSubscription(Ae)){Ae.add(he)}}else{he.destination=pe.EMPTY_OBSERVER}return he}Subscriber.create=function(R,pe,Ae){return new Be(R,pe,Ae)};Subscriber.prototype.next=function(R){if(this.isStopped){handleStoppedNotification(Ee.nextNotification(R),this)}else{this._next(R)}};Subscriber.prototype.error=function(R){if(this.isStopped){handleStoppedNotification(Ee.errorNotification(R),this)}else{this.isStopped=true;this._error(R)}};Subscriber.prototype.complete=function(){if(this.isStopped){handleStoppedNotification(Ee.COMPLETE_NOTIFICATION,this)}else{this.isStopped=true;this._complete()}};Subscriber.prototype.unsubscribe=function(){if(!this.closed){this.isStopped=true;R.prototype.unsubscribe.call(this);this.destination=null}};Subscriber.prototype._next=function(R){this.destination.next(R)};Subscriber.prototype._error=function(R){try{this.destination.error(R)}finally{this.unsubscribe()}};Subscriber.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};return Subscriber}(ye.Subscription);pe.Subscriber=_e;var Ie=Function.prototype.bind;function bind(R,pe){return Ie.call(R,pe)}var Se=function(){function ConsumerObserver(R){this.partialObserver=R}ConsumerObserver.prototype.next=function(R){var pe=this.partialObserver;if(pe.next){try{pe.next(R)}catch(R){handleUnhandledError(R)}}};ConsumerObserver.prototype.error=function(R){var pe=this.partialObserver;if(pe.error){try{pe.error(R)}catch(R){handleUnhandledError(R)}}else{handleUnhandledError(R)}};ConsumerObserver.prototype.complete=function(){var R=this.partialObserver;if(R.complete){try{R.complete()}catch(R){handleUnhandledError(R)}}};return ConsumerObserver}();var Be=function(R){he(SafeSubscriber,R);function SafeSubscriber(pe,Ae,he){var ye=R.call(this)||this;var ve;if(ge.isFunction(pe)||!pe){ve={next:pe!==null&&pe!==void 0?pe:undefined,error:Ae!==null&&Ae!==void 0?Ae:undefined,complete:he!==null&&he!==void 0?he:undefined}}else{var be;if(ye&&me.config.useDeprecatedNextContext){be=Object.create(pe);be.unsubscribe=function(){return ye.unsubscribe()};ve={next:pe.next&&bind(pe.next,be),error:pe.error&&bind(pe.error,be),complete:pe.complete&&bind(pe.complete,be)}}else{ve=pe}}ye.destination=new Se(ve);return ye}return SafeSubscriber}(_e);pe.SafeSubscriber=Be;function handleUnhandledError(R){if(me.config.useDeprecatedSynchronousErrorHandling){we.captureError(R)}else{ve.reportUnhandledError(R)}}function defaultErrorHandler(R){throw R}function handleStoppedNotification(R,pe){var Ae=me.config.onStoppedNotification;Ae&&Ce.timeoutProvider.setTimeout((function(){return Ae(R,pe)}))}pe.EMPTY_OBSERVER={closed:true,next:be.noop,error:defaultErrorHandler,complete:be.noop}},79548:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};var ge=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ye=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.config=void 0;pe.config={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false}},19369:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.firstValueFrom=void 0;var he=Ae(99391);var ge=Ae(67121);function firstValueFrom(R,pe){var Ae=typeof pe==="object";return new Promise((function(ye,me){var ve=new ge.SafeSubscriber({next:function(R){ye(R);ve.unsubscribe()},error:me,complete:function(){if(Ae){ye(pe.defaultValue)}else{me(new he.EmptyError)}}});R.subscribe(ve)}))}pe.firstValueFrom=firstValueFrom},49713:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.lastValueFrom=void 0;var he=Ae(99391);function lastValueFrom(R,pe){var Ae=typeof pe==="object";return new Promise((function(ge,ye){var me=false;var ve;R.subscribe({next:function(R){ve=R;me=true},error:ye,complete:function(){if(me){ge(ve)}else if(Ae){ge(pe.defaultValue)}else{ye(new he.EmptyError)}}})}))}pe.lastValueFrom=lastValueFrom},30420:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.ConnectableObservable=void 0;var ge=Ae(53014);var ye=Ae(79548);var me=Ae(2331);var ve=Ae(69549);var be=Ae(38669);var Ee=function(R){he(ConnectableObservable,R);function ConnectableObservable(pe,Ae){var he=R.call(this)||this;he.source=pe;he.subjectFactory=Ae;he._subject=null;he._refCount=0;he._connection=null;if(be.hasLift(pe)){he.lift=pe.lift}return he}ConnectableObservable.prototype._subscribe=function(R){return this.getSubject().subscribe(R)};ConnectableObservable.prototype.getSubject=function(){var R=this._subject;if(!R||R.isStopped){this._subject=this.subjectFactory()}return this._subject};ConnectableObservable.prototype._teardown=function(){this._refCount=0;var R=this._connection;this._subject=this._connection=null;R===null||R===void 0?void 0:R.unsubscribe()};ConnectableObservable.prototype.connect=function(){var R=this;var pe=this._connection;if(!pe){pe=this._connection=new ye.Subscription;var Ae=this.getSubject();pe.add(this.source.subscribe(ve.createOperatorSubscriber(Ae,undefined,(function(){R._teardown();Ae.complete()}),(function(pe){R._teardown();Ae.error(pe)}),(function(){return R._teardown()}))));if(pe.closed){this._connection=null;pe=ye.Subscription.EMPTY}}return pe};ConnectableObservable.prototype.refCount=function(){return me.refCount()(this)};return ConnectableObservable}(ge.Observable);pe.ConnectableObservable=Ee},16949:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bindCallback=void 0;var he=Ae(30585);function bindCallback(R,pe,Ae){return he.bindCallbackInternals(false,R,pe,Ae)}pe.bindCallback=bindCallback},30585:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bindNodeCallback=void 0;var he=Ae(30585);function bindNodeCallback(R,pe,Ae){return he.bindCallbackInternals(true,R,pe,Ae)}pe.bindNodeCallback=bindNodeCallback},89958:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.combineLatestInit=pe.combineLatest=void 0;var he=Ae(53014);var ge=Ae(12920);var ye=Ae(18309);var me=Ae(60283);var ve=Ae(78934);var be=Ae(34890);var Ee=Ae(57834);var Ce=Ae(69549);var we=Ae(82877);function combineLatest(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concat=void 0;var he=Ae(88049);var ge=Ae(34890);var ye=Ae(18309);function concat(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.connectable=void 0;var he=Ae(49944);var ge=Ae(53014);var ye=Ae(27672);var me={connector:function(){return new he.Subject},resetOnDisconnect:true};function connectable(R,pe){if(pe===void 0){pe=me}var Ae=null;var he=pe.connector,ve=pe.resetOnDisconnect,be=ve===void 0?true:ve;var Ee=he();var Ce=new ge.Observable((function(R){return Ee.subscribe(R)}));Ce.connect=function(){if(!Ae||Ae.closed){Ae=ye.defer((function(){return R})).subscribe(Ee);if(be){Ae.add((function(){return Ee=he()}))}}return Ae};return Ce}pe.connectable=connectable},27672:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.defer=void 0;var he=Ae(53014);var ge=Ae(57105);function defer(R){return new he.Observable((function(pe){ge.innerFrom(R()).subscribe(pe)}))}pe.defer=defer},38197:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.animationFrames=void 0;var he=Ae(53014);var ge=Ae(70143);var ye=Ae(62738);function animationFrames(R){return R?animationFramesFactory(R):me}pe.animationFrames=animationFrames;function animationFramesFactory(R){return new he.Observable((function(pe){var Ae=R||ge.performanceTimestampProvider;var he=Ae.now();var me=0;var run=function(){if(!pe.closed){me=ye.animationFrameProvider.requestAnimationFrame((function(ge){me=0;var ye=Ae.now();pe.next({timestamp:R?ye:ge,elapsed:ye-he});run()}))}};run();return function(){if(me){ye.animationFrameProvider.cancelAnimationFrame(me)}}}))}var me=animationFramesFactory()},70437:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.empty=pe.EMPTY=void 0;var he=Ae(53014);pe.EMPTY=new he.Observable((function(R){return R.complete()}));function empty(R){return R?emptyScheduled(R):pe.EMPTY}pe.empty=empty;function emptyScheduled(R){return new he.Observable((function(pe){return R.schedule((function(){return pe.complete()}))}))}},47358:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.forkJoin=void 0;var he=Ae(53014);var ge=Ae(12920);var ye=Ae(57105);var me=Ae(34890);var ve=Ae(69549);var be=Ae(78934);var Ee=Ae(57834);function forkJoin(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.from=void 0;var he=Ae(6151);var ge=Ae(57105);function from(R,pe){return pe?he.scheduled(R,pe):ge.innerFrom(R)}pe.from=from},93238:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};Object.defineProperty(pe,"__esModule",{value:true});pe.fromEvent=void 0;var ge=Ae(57105);var ye=Ae(53014);var me=Ae(69914);var ve=Ae(24461);var be=Ae(67206);var Ee=Ae(78934);var Ce=["addListener","removeListener"];var we=["addEventListener","removeEventListener"];var _e=["on","off"];function fromEvent(R,pe,Ae,Ie){if(be.isFunction(Ae)){Ie=Ae;Ae=undefined}if(Ie){return fromEvent(R,pe,Ae).pipe(Ee.mapOneOrManyArgs(Ie))}var Se=he(isEventTarget(R)?we.map((function(he){return function(ge){return R[he](pe,ge,Ae)}})):isNodeStyleEventEmitter(R)?Ce.map(toCommonHandlerRegistry(R,pe)):isJQueryStyleEventEmitter(R)?_e.map(toCommonHandlerRegistry(R,pe)):[],2),Be=Se[0],ke=Se[1];if(!Be){if(ve.isArrayLike(R)){return me.mergeMap((function(R){return fromEvent(R,pe,Ae)}))(ge.innerFrom(R))}}if(!Be){throw new TypeError("Invalid event target")}return new ye.Observable((function(R){var handler=function(){var pe=[];for(var Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromEventPattern=void 0;var he=Ae(53014);var ge=Ae(67206);var ye=Ae(78934);function fromEventPattern(R,pe,Ae){if(Ae){return fromEventPattern(R,pe).pipe(ye.mapOneOrManyArgs(Ae))}return new he.Observable((function(Ae){var handler=function(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromSubscribable=void 0;var he=Ae(53014);function fromSubscribable(R){return new he.Observable((function(pe){return R.subscribe(pe)}))}pe.fromSubscribable=fromSubscribable},52668:function(R,pe,Ae){"use strict";var he=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(me){if(he)throw new TypeError("Generator is already executing.");while(Ae)try{if(he=1,ge&&(ye=me[0]&2?ge["return"]:me[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,me[1])).done)return ye;if(ge=0,ye)me=[me[0]&2,ye.value];switch(me[0]){case 0:case 1:ye=me;break;case 4:Ae.label++;return{value:me[1],done:false};case 5:Ae.label++;ge=me[1];me=[0];continue;case 7:me=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(me[0]===6||me[0]===2)){Ae=0;continue}if(me[0]===3&&(!ye||me[1]>ye[0]&&me[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.iif=void 0;var he=Ae(27672);function iif(R,pe,Ae){return he.defer((function(){return R()?pe:Ae}))}pe.iif=iif},57105:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(me){if(he)throw new TypeError("Generator is already executing.");while(Ae)try{if(he=1,ge&&(ye=me[0]&2?ge["return"]:me[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,me[1])).done)return ye;if(ge=0,ye)me=[me[0]&2,ye.value];switch(me[0]){case 0:case 1:ye=me;break;case 4:Ae.label++;return{value:me[1],done:false};case 5:Ae.label++;ge=me[1];me=[0];continue;case 7:me=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(me[0]===6||me[0]===2)){Ae=0;continue}if(me[0]===3&&(!ye||me[1]>ye[0]&&me[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.fromReadableStreamLike=pe.fromAsyncIterable=pe.fromIterable=pe.fromPromise=pe.fromArrayLike=pe.fromInteropObservable=pe.innerFrom=void 0;var ve=Ae(24461);var be=Ae(65585);var Ee=Ae(53014);var Ce=Ae(67984);var we=Ae(44408);var _e=Ae(97364);var Ie=Ae(94292);var Se=Ae(99621);var Be=Ae(67206);var ke=Ae(92445);var Oe=Ae(17186);function innerFrom(R){if(R instanceof Ee.Observable){return R}if(R!=null){if(Ce.isInteropObservable(R)){return fromInteropObservable(R)}if(ve.isArrayLike(R)){return fromArrayLike(R)}if(be.isPromise(R)){return fromPromise(R)}if(we.isAsyncIterable(R)){return fromAsyncIterable(R)}if(Ie.isIterable(R)){return fromIterable(R)}if(Se.isReadableStreamLike(R)){return fromReadableStreamLike(R)}}throw _e.createInvalidObservableTypeError(R)}pe.innerFrom=innerFrom;function fromInteropObservable(R){return new Ee.Observable((function(pe){var Ae=R[Oe.observable]();if(Be.isFunction(Ae.subscribe)){return Ae.subscribe(pe)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}pe.fromInteropObservable=fromInteropObservable;function fromArrayLike(R){return new Ee.Observable((function(pe){for(var Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.interval=void 0;var he=Ae(76072);var ge=Ae(59757);function interval(R,pe){if(R===void 0){R=0}if(pe===void 0){pe=he.asyncScheduler}if(R<0){R=0}return ge.timer(R,R,pe)}pe.interval=interval},75122:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.merge=void 0;var he=Ae(2057);var ge=Ae(57105);var ye=Ae(70437);var me=Ae(34890);var ve=Ae(18309);function merge(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.never=pe.NEVER=void 0;var he=Ae(53014);var ge=Ae(11642);pe.NEVER=new he.Observable(ge.noop);function never(){return pe.NEVER}pe.never=never},72163:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.of=void 0;var he=Ae(34890);var ge=Ae(18309);function of(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.onErrorResumeNext=void 0;var he=Ae(53014);var ge=Ae(18824);var ye=Ae(69549);var me=Ae(11642);var ve=Ae(57105);function onErrorResumeNext(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.pairs=void 0;var he=Ae(18309);function pairs(R,pe){return he.from(Object.entries(R),pe)}pe.pairs=pairs},15506:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.partition=void 0;var he=Ae(54338);var ge=Ae(36894);var ye=Ae(57105);function partition(R,pe,Ae){return[ge.filter(pe,Ae)(ye.innerFrom(R)),ge.filter(he.not(pe,Ae))(ye.innerFrom(R))]}pe.partition=partition},16940:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.raceInit=pe.race=void 0;var he=Ae(53014);var ge=Ae(57105);var ye=Ae(18824);var me=Ae(69549);function race(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.range=void 0;var he=Ae(53014);var ge=Ae(70437);function range(R,pe,Ae){if(pe==null){pe=R;R=0}if(pe<=0){return ge.EMPTY}var ye=pe+R;return new he.Observable(Ae?function(pe){var he=R;return Ae.schedule((function(){if(he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.throwError=void 0;var he=Ae(53014);var ge=Ae(67206);function throwError(R,pe){var Ae=ge.isFunction(R)?R:function(){return R};var init=function(R){return R.error(Ae())};return new he.Observable(pe?function(R){return pe.schedule(init,0,R)}:init)}pe.throwError=throwError},59757:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.timer=void 0;var he=Ae(53014);var ge=Ae(76072);var ye=Ae(16500);var me=Ae(60935);function timer(R,pe,Ae){if(R===void 0){R=0}if(Ae===void 0){Ae=ge.async}var ve=-1;if(pe!=null){if(ye.isScheduler(pe)){Ae=pe}else{ve=pe}}return new he.Observable((function(pe){var he=me.isValidDate(R)?+R-Ae.now():R;if(he<0){he=0}var ge=0;return Ae.schedule((function(){if(!pe.closed){pe.next(ge++);if(0<=ve){this.schedule(undefined,ve)}else{pe.complete()}}}),he)}))}pe.timer=timer},8445:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.using=void 0;var he=Ae(53014);var ge=Ae(57105);var ye=Ae(70437);function using(R,pe){return new he.Observable((function(Ae){var he=R();var me=pe(he);var ve=me?ge.innerFrom(me):ye.EMPTY;ve.subscribe(Ae);return function(){if(he){he.unsubscribe()}}}))}pe.using=using},62504:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.audit=void 0;var he=Ae(38669);var ge=Ae(57105);var ye=Ae(69549);function audit(R){return he.operate((function(pe,Ae){var he=false;var me=null;var ve=null;var be=false;var endDuration=function(){ve===null||ve===void 0?void 0:ve.unsubscribe();ve=null;if(he){he=false;var R=me;me=null;Ae.next(R)}be&&Ae.complete()};var cleanupDuration=function(){ve=null;be&&Ae.complete()};pe.subscribe(ye.createOperatorSubscriber(Ae,(function(pe){he=true;me=pe;if(!ve){ge.innerFrom(R(pe)).subscribe(ve=ye.createOperatorSubscriber(Ae,endDuration,cleanupDuration))}}),(function(){be=true;(!he||!ve||ve.closed)&&Ae.complete()})))}))}pe.audit=audit},18780:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.auditTime=void 0;var he=Ae(76072);var ge=Ae(82704);var ye=Ae(59757);function auditTime(R,pe){if(pe===void 0){pe=he.asyncScheduler}return ge.audit((function(){return ye.timer(R,pe)}))}pe.auditTime=auditTime},34253:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.buffer=void 0;var he=Ae(38669);var ge=Ae(11642);var ye=Ae(69549);var me=Ae(57105);function buffer(R){return he.operate((function(pe,Ae){var he=[];pe.subscribe(ye.createOperatorSubscriber(Ae,(function(R){return he.push(R)}),(function(){Ae.next(he);Ae.complete()})));me.innerFrom(R).subscribe(ye.createOperatorSubscriber(Ae,(function(){var R=he;he=[];Ae.next(R)}),ge.noop));return function(){he=null}}))}pe.buffer=buffer},17253:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.bufferCount=void 0;var ge=Ae(38669);var ye=Ae(69549);var me=Ae(68499);function bufferCount(R,pe){if(pe===void 0){pe=null}pe=pe!==null&&pe!==void 0?pe:R;return ge.operate((function(Ae,ge){var ve=[];var be=0;Ae.subscribe(ye.createOperatorSubscriber(ge,(function(Ae){var ye,Ee,Ce,we;var _e=null;if(be++%pe===0){ve.push([])}try{for(var Ie=he(ve),Se=Ie.next();!Se.done;Se=Ie.next()){var Be=Se.value;Be.push(Ae);if(R<=Be.length){_e=_e!==null&&_e!==void 0?_e:[];_e.push(Be)}}}catch(R){ye={error:R}}finally{try{if(Se&&!Se.done&&(Ee=Ie.return))Ee.call(Ie)}finally{if(ye)throw ye.error}}if(_e){try{for(var ke=he(_e),Oe=ke.next();!Oe.done;Oe=ke.next()){var Be=Oe.value;me.arrRemove(ve,Be);ge.next(Be)}}catch(R){Ce={error:R}}finally{try{if(Oe&&!Oe.done&&(we=ke.return))we.call(ke)}finally{if(Ce)throw Ce.error}}}}),(function(){var R,pe;try{for(var Ae=he(ve),ye=Ae.next();!ye.done;ye=Ae.next()){var me=ye.value;ge.next(me)}}catch(pe){R={error:pe}}finally{try{if(ye&&!ye.done&&(pe=Ae.return))pe.call(Ae)}finally{if(R)throw R.error}}ge.complete()}),undefined,(function(){ve=null})))}))}pe.bufferCount=bufferCount},73102:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.bufferTime=void 0;var ge=Ae(79548);var ye=Ae(38669);var me=Ae(69549);var ve=Ae(68499);var be=Ae(76072);var Ee=Ae(34890);var Ce=Ae(82877);function bufferTime(R){var pe,Ae;var we=[];for(var _e=1;_e=0){Ce.executeSchedule(Ae,Ie,startBuffer,Se,true)}else{be=true}startBuffer();var Ee=me.createOperatorSubscriber(Ae,(function(R){var pe,Ae;var ge=ye.slice();try{for(var me=he(ge),ve=me.next();!ve.done;ve=me.next()){var be=ve.value;var Ee=be.buffer;Ee.push(R);Be<=Ee.length&&emit(be)}}catch(R){pe={error:R}}finally{try{if(ve&&!ve.done&&(Ae=me.return))Ae.call(me)}finally{if(pe)throw pe.error}}}),(function(){while(ye===null||ye===void 0?void 0:ye.length){Ae.next(ye.shift().buffer)}Ee===null||Ee===void 0?void 0:Ee.unsubscribe();Ae.complete();Ae.unsubscribe()}),undefined,(function(){return ye=null}));pe.subscribe(Ee)}))}pe.bufferTime=bufferTime},83781:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.bufferToggle=void 0;var ge=Ae(79548);var ye=Ae(38669);var me=Ae(57105);var ve=Ae(69549);var be=Ae(11642);var Ee=Ae(68499);function bufferToggle(R,pe){return ye.operate((function(Ae,ye){var Ce=[];me.innerFrom(R).subscribe(ve.createOperatorSubscriber(ye,(function(R){var Ae=[];Ce.push(Ae);var he=new ge.Subscription;var emitBuffer=function(){Ee.arrRemove(Ce,Ae);ye.next(Ae);he.unsubscribe()};he.add(me.innerFrom(pe(R)).subscribe(ve.createOperatorSubscriber(ye,emitBuffer,be.noop)))}),be.noop));Ae.subscribe(ve.createOperatorSubscriber(ye,(function(R){var pe,Ae;try{for(var ge=he(Ce),ye=ge.next();!ye.done;ye=ge.next()){var me=ye.value;me.push(R)}}catch(R){pe={error:R}}finally{try{if(ye&&!ye.done&&(Ae=ge.return))Ae.call(ge)}finally{if(pe)throw pe.error}}}),(function(){while(Ce.length>0){ye.next(Ce.shift())}ye.complete()})))}))}pe.bufferToggle=bufferToggle},82855:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bufferWhen=void 0;var he=Ae(38669);var ge=Ae(11642);var ye=Ae(69549);var me=Ae(57105);function bufferWhen(R){return he.operate((function(pe,Ae){var he=null;var ve=null;var openBuffer=function(){ve===null||ve===void 0?void 0:ve.unsubscribe();var pe=he;he=[];pe&&Ae.next(pe);me.innerFrom(R()).subscribe(ve=ye.createOperatorSubscriber(Ae,openBuffer,ge.noop))};openBuffer();pe.subscribe(ye.createOperatorSubscriber(Ae,(function(R){return he===null||he===void 0?void 0:he.push(R)}),(function(){he&&Ae.next(he);Ae.complete()}),undefined,(function(){return he=ve=null})))}))}pe.bufferWhen=bufferWhen},37765:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.catchError=void 0;var he=Ae(57105);var ge=Ae(69549);var ye=Ae(38669);function catchError(R){return ye.operate((function(pe,Ae){var ye=null;var me=false;var ve;ye=pe.subscribe(ge.createOperatorSubscriber(Ae,undefined,undefined,(function(ge){ve=he.innerFrom(R(ge,catchError(R)(pe)));if(ye){ye.unsubscribe();ye=null;ve.subscribe(Ae)}else{me=true}})));if(me){ye.unsubscribe();ye=null;ve.subscribe(Ae)}}))}pe.catchError=catchError},88817:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.combineAll=void 0;var he=Ae(91063);pe.combineAll=he.combineLatestAll},96008:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.combineLatestAll=void 0;var he=Ae(89958);var ge=Ae(29341);function combineLatestAll(R){return ge.joinAllInternals(he.combineLatest,R)}pe.combineLatestAll=combineLatestAll},19044:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatAll=void 0;var he=Ae(2057);function concatAll(){return he.mergeAll(1)}pe.concatAll=concatAll},19130:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatMap=void 0;var he=Ae(69914);var ge=Ae(67206);function concatMap(R,pe){return ge.isFunction(pe)?he.mergeMap(R,pe,1):he.mergeMap(R,1)}pe.concatMap=concatMap},61596:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatMapTo=void 0;var he=Ae(19130);var ge=Ae(67206);function concatMapTo(R,pe){return ge.isFunction(pe)?he.concatMap((function(){return R}),pe):he.concatMap((function(){return R}))}pe.concatMapTo=concatMapTo},97998:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.connect=void 0;var he=Ae(49944);var ge=Ae(57105);var ye=Ae(38669);var me=Ae(66513);var ve={connector:function(){return new he.Subject}};function connect(R,pe){if(pe===void 0){pe=ve}var Ae=pe.connector;return ye.operate((function(pe,he){var ye=Ae();ge.innerFrom(R(me.fromSubscribable(ye))).subscribe(he);he.add(pe.subscribe(ye))}))}pe.connect=connect},36571:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.count=void 0;var he=Ae(73694);function count(R){return he.reduce((function(pe,Ae,he){return!R||R(Ae,he)?pe+1:pe}),0)}pe.count=count},19348:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.debounce=void 0;var he=Ae(38669);var ge=Ae(11642);var ye=Ae(69549);var me=Ae(57105);function debounce(R){return he.operate((function(pe,Ae){var he=false;var ve=null;var be=null;var emit=function(){be===null||be===void 0?void 0:be.unsubscribe();be=null;if(he){he=false;var R=ve;ve=null;Ae.next(R)}};pe.subscribe(ye.createOperatorSubscriber(Ae,(function(pe){be===null||be===void 0?void 0:be.unsubscribe();he=true;ve=pe;be=ye.createOperatorSubscriber(Ae,emit,ge.noop);me.innerFrom(R(pe)).subscribe(be)}),(function(){emit();Ae.complete()}),undefined,(function(){ve=be=null})))}))}pe.debounce=debounce},62379:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.debounceTime=void 0;var he=Ae(76072);var ge=Ae(38669);var ye=Ae(69549);function debounceTime(R,pe){if(pe===void 0){pe=he.asyncScheduler}return ge.operate((function(Ae,he){var ge=null;var me=null;var ve=null;var emit=function(){if(ge){ge.unsubscribe();ge=null;var R=me;me=null;he.next(R)}};function emitWhenIdle(){var Ae=ve+R;var ye=pe.now();if(ye{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.defaultIfEmpty=void 0;var he=Ae(38669);var ge=Ae(69549);function defaultIfEmpty(R){return he.operate((function(pe,Ae){var he=false;pe.subscribe(ge.createOperatorSubscriber(Ae,(function(R){he=true;Ae.next(R)}),(function(){if(!he){Ae.next(R)}Ae.complete()})))}))}pe.defaultIfEmpty=defaultIfEmpty},99818:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.delay=void 0;var he=Ae(76072);var ge=Ae(16994);var ye=Ae(59757);function delay(R,pe){if(pe===void 0){pe=he.asyncScheduler}var Ae=ye.timer(R,pe);return ge.delayWhen((function(){return Ae}))}pe.delay=delay},16994:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.delayWhen=void 0;var he=Ae(4675);var ge=Ae(33698);var ye=Ae(31062);var me=Ae(52300);var ve=Ae(69914);var be=Ae(57105);function delayWhen(R,pe){if(pe){return function(Ae){return he.concat(pe.pipe(ge.take(1),ye.ignoreElements()),Ae.pipe(delayWhen(R)))}}return ve.mergeMap((function(pe,Ae){return be.innerFrom(R(pe,Ae)).pipe(ge.take(1),me.mapTo(pe))}))}pe.delayWhen=delayWhen},95338:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.dematerialize=void 0;var he=Ae(12241);var ge=Ae(38669);var ye=Ae(69549);function dematerialize(){return ge.operate((function(R,pe){R.subscribe(ye.createOperatorSubscriber(pe,(function(R){return he.observeNotification(R,pe)})))}))}pe.dematerialize=dematerialize},52594:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.distinct=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(11642);var me=Ae(57105);function distinct(R,pe){return he.operate((function(Ae,he){var ve=new Set;Ae.subscribe(ge.createOperatorSubscriber(he,(function(pe){var Ae=R?R(pe):pe;if(!ve.has(Ae)){ve.add(Ae);he.next(pe)}})));pe&&me.innerFrom(pe).subscribe(ge.createOperatorSubscriber(he,(function(){return ve.clear()}),ye.noop))}))}pe.distinct=distinct},20632:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.distinctUntilChanged=void 0;var he=Ae(60283);var ge=Ae(38669);var ye=Ae(69549);function distinctUntilChanged(R,pe){if(pe===void 0){pe=he.identity}R=R!==null&&R!==void 0?R:defaultCompare;return ge.operate((function(Ae,he){var ge;var me=true;Ae.subscribe(ye.createOperatorSubscriber(he,(function(Ae){var ye=pe(Ae);if(me||!R(ge,ye)){me=false;ge=ye;he.next(Ae)}})))}))}pe.distinctUntilChanged=distinctUntilChanged;function defaultCompare(R,pe){return R===pe}},13809:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.distinctUntilKeyChanged=void 0;var he=Ae(20632);function distinctUntilKeyChanged(R,pe){return he.distinctUntilChanged((function(Ae,he){return pe?pe(Ae[R],he[R]):Ae[R]===he[R]}))}pe.distinctUntilKeyChanged=distinctUntilKeyChanged},73381:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.elementAt=void 0;var he=Ae(49796);var ge=Ae(36894);var ye=Ae(91566);var me=Ae(30621);var ve=Ae(33698);function elementAt(R,pe){if(R<0){throw new he.ArgumentOutOfRangeError}var Ae=arguments.length>=2;return function(be){return be.pipe(ge.filter((function(pe,Ae){return Ae===R})),ve.take(1),Ae?me.defaultIfEmpty(pe):ye.throwIfEmpty((function(){return new he.ArgumentOutOfRangeError})))}}pe.elementAt=elementAt},42961:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.every=void 0;var he=Ae(38669);var ge=Ae(69549);function every(R,pe){return he.operate((function(Ae,he){var ye=0;Ae.subscribe(ge.createOperatorSubscriber(he,(function(ge){if(!R.call(pe,ge,ye++,Ae)){he.next(false);he.complete()}}),(function(){he.next(true);he.complete()})))}))}pe.every=every},75686:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exhaust=void 0;var he=Ae(79777);pe.exhaust=he.exhaustAll},79777:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exhaustAll=void 0;var he=Ae(21527);var ge=Ae(60283);function exhaustAll(){return he.exhaustMap(ge.identity)}pe.exhaustAll=exhaustAll},21527:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exhaustMap=void 0;var he=Ae(5987);var ge=Ae(57105);var ye=Ae(38669);var me=Ae(69549);function exhaustMap(R,pe){if(pe){return function(Ae){return Ae.pipe(exhaustMap((function(Ae,ye){return ge.innerFrom(R(Ae,ye)).pipe(he.map((function(R,he){return pe(Ae,R,ye,he)})))})))}}return ye.operate((function(pe,Ae){var he=0;var ye=null;var ve=false;pe.subscribe(me.createOperatorSubscriber(Ae,(function(pe){if(!ye){ye=me.createOperatorSubscriber(Ae,undefined,(function(){ye=null;ve&&Ae.complete()}));ge.innerFrom(R(pe,he++)).subscribe(ye)}}),(function(){ve=true;!ye&&Ae.complete()})))}))}pe.exhaustMap=exhaustMap},21585:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.expand=void 0;var he=Ae(38669);var ge=Ae(78463);function expand(R,pe,Ae){if(pe===void 0){pe=Infinity}pe=(pe||0)<1?Infinity:pe;return he.operate((function(he,ye){return ge.mergeInternals(he,ye,R,pe,undefined,true,Ae)}))}pe.expand=expand},36894:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.filter=void 0;var he=Ae(38669);var ge=Ae(69549);function filter(R,pe){return he.operate((function(Ae,he){var ye=0;Ae.subscribe(ge.createOperatorSubscriber(he,(function(Ae){return R.call(pe,Ae,ye++)&&he.next(Ae)})))}))}pe.filter=filter},4013:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.finalize=void 0;var he=Ae(38669);function finalize(R){return he.operate((function(pe,Ae){try{pe.subscribe(Ae)}finally{Ae.add(R)}}))}pe.finalize=finalize},28981:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createFind=pe.find=void 0;var he=Ae(38669);var ge=Ae(69549);function find(R,pe){return he.operate(createFind(R,pe,"value"))}pe.find=find;function createFind(R,pe,Ae){var he=Ae==="index";return function(Ae,ye){var me=0;Ae.subscribe(ge.createOperatorSubscriber(ye,(function(ge){var ve=me++;if(R.call(pe,ge,ve,Ae)){ye.next(he?ve:ge);ye.complete()}}),(function(){ye.next(he?-1:undefined);ye.complete()})))}}pe.createFind=createFind},92602:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.findIndex=void 0;var he=Ae(38669);var ge=Ae(28981);function findIndex(R,pe){return he.operate(ge.createFind(R,pe,"index"))}pe.findIndex=findIndex},63345:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.first=void 0;var he=Ae(99391);var ge=Ae(36894);var ye=Ae(33698);var me=Ae(30621);var ve=Ae(91566);var be=Ae(60283);function first(R,pe){var Ae=arguments.length>=2;return function(Ee){return Ee.pipe(R?ge.filter((function(pe,Ae){return R(pe,Ae,Ee)})):be.identity,ye.take(1),Ae?me.defaultIfEmpty(pe):ve.throwIfEmpty((function(){return new he.EmptyError})))}}pe.first=first},40186:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flatMap=void 0;var he=Ae(69914);pe.flatMap=he.mergeMap},51650:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.groupBy=void 0;var he=Ae(53014);var ge=Ae(57105);var ye=Ae(49944);var me=Ae(38669);var ve=Ae(69549);function groupBy(R,pe,Ae,be){return me.operate((function(me,Ee){var Ce;if(!pe||typeof pe==="function"){Ce=pe}else{Ae=pe.duration,Ce=pe.element,be=pe.connector}var we=new Map;var notify=function(R){we.forEach(R);R(Ee)};var handleError=function(R){return notify((function(pe){return pe.error(R)}))};var _e=0;var Ie=false;var Se=new ve.OperatorSubscriber(Ee,(function(pe){try{var he=R(pe);var me=we.get(he);if(!me){we.set(he,me=be?be():new ye.Subject);var _e=createGroupedObservable(he,me);Ee.next(_e);if(Ae){var Ie=ve.createOperatorSubscriber(me,(function(){me.complete();Ie===null||Ie===void 0?void 0:Ie.unsubscribe()}),undefined,undefined,(function(){return we.delete(he)}));Se.add(ge.innerFrom(Ae(_e)).subscribe(Ie))}}me.next(Ce?Ce(pe):pe)}catch(R){handleError(R)}}),(function(){return notify((function(R){return R.complete()}))}),handleError,(function(){return we.clear()}),(function(){Ie=true;return _e===0}));me.subscribe(Se);function createGroupedObservable(R,pe){var Ae=new he.Observable((function(R){_e++;var Ae=pe.subscribe(R);return function(){Ae.unsubscribe();--_e===0&&Ie&&Se.unsubscribe()}}));Ae.key=R;return Ae}}))}pe.groupBy=groupBy},31062:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ignoreElements=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(11642);function ignoreElements(){return he.operate((function(R,pe){R.subscribe(ge.createOperatorSubscriber(pe,ye.noop))}))}pe.ignoreElements=ignoreElements},77722:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isEmpty=void 0;var he=Ae(38669);var ge=Ae(69549);function isEmpty(){return he.operate((function(R,pe){R.subscribe(ge.createOperatorSubscriber(pe,(function(){pe.next(false);pe.complete()}),(function(){pe.next(true);pe.complete()})))}))}pe.isEmpty=isEmpty},29341:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.joinAllInternals=void 0;var he=Ae(60283);var ge=Ae(78934);var ye=Ae(49587);var me=Ae(69914);var ve=Ae(35114);function joinAllInternals(R,pe){return ye.pipe(ve.toArray(),me.mergeMap((function(pe){return R(pe)})),pe?ge.mapOneOrManyArgs(pe):he.identity)}pe.joinAllInternals=joinAllInternals},46831:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.last=void 0;var he=Ae(99391);var ge=Ae(36894);var ye=Ae(65041);var me=Ae(91566);var ve=Ae(30621);var be=Ae(60283);function last(R,pe){var Ae=arguments.length>=2;return function(Ee){return Ee.pipe(R?ge.filter((function(pe,Ae){return R(pe,Ae,Ee)})):be.identity,ye.takeLast(1),Ae?ve.defaultIfEmpty(pe):me.throwIfEmpty((function(){return new he.EmptyError})))}}pe.last=last},5987:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.map=void 0;var he=Ae(38669);var ge=Ae(69549);function map(R,pe){return he.operate((function(Ae,he){var ye=0;Ae.subscribe(ge.createOperatorSubscriber(he,(function(Ae){he.next(R.call(pe,Ae,ye++))})))}))}pe.map=map},52300:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mapTo=void 0;var he=Ae(5987);function mapTo(R){return he.map((function(){return R}))}pe.mapTo=mapTo},67108:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.materialize=void 0;var he=Ae(12241);var ge=Ae(38669);var ye=Ae(69549);function materialize(){return ge.operate((function(R,pe){R.subscribe(ye.createOperatorSubscriber(pe,(function(R){pe.next(he.Notification.createNext(R))}),(function(){pe.next(he.Notification.createComplete());pe.complete()}),(function(R){pe.next(he.Notification.createError(R));pe.complete()})))}))}pe.materialize=materialize},17314:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.max=void 0;var he=Ae(73694);var ge=Ae(67206);function max(R){return he.reduce(ge.isFunction(R)?function(pe,Ae){return R(pe,Ae)>0?pe:Ae}:function(R,pe){return R>pe?R:pe})}pe.max=max},39510:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeAll=void 0;var he=Ae(69914);var ge=Ae(60283);function mergeAll(R){if(R===void 0){R=Infinity}return he.mergeMap(ge.identity,R)}pe.mergeAll=mergeAll},78463:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeInternals=void 0;var he=Ae(57105);var ge=Ae(82877);var ye=Ae(69549);function mergeInternals(R,pe,Ae,me,ve,be,Ee,Ce){var we=[];var _e=0;var Ie=0;var Se=false;var checkComplete=function(){if(Se&&!we.length&&!_e){pe.complete()}};var outerNext=function(R){return _e{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeMap=void 0;var he=Ae(5987);var ge=Ae(57105);var ye=Ae(38669);var me=Ae(78463);var ve=Ae(67206);function mergeMap(R,pe,Ae){if(Ae===void 0){Ae=Infinity}if(ve.isFunction(pe)){return mergeMap((function(Ae,ye){return he.map((function(R,he){return pe(Ae,R,ye,he)}))(ge.innerFrom(R(Ae,ye)))}),Ae)}else if(typeof pe==="number"){Ae=pe}return ye.operate((function(pe,he){return me.mergeInternals(pe,he,R,Ae)}))}pe.mergeMap=mergeMap},49151:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeMapTo=void 0;var he=Ae(69914);var ge=Ae(67206);function mergeMapTo(R,pe,Ae){if(Ae===void 0){Ae=Infinity}if(ge.isFunction(pe)){return he.mergeMap((function(){return R}),pe,Ae)}if(typeof pe==="number"){Ae=pe}return he.mergeMap((function(){return R}),Ae)}pe.mergeMapTo=mergeMapTo},11519:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeScan=void 0;var he=Ae(38669);var ge=Ae(78463);function mergeScan(R,pe,Ae){if(Ae===void 0){Ae=Infinity}return he.operate((function(he,ye){var me=pe;return ge.mergeInternals(he,ye,(function(pe,Ae){return R(me,pe,Ae)}),Ae,(function(R){me=R}),false,undefined,(function(){return me=null}))}))}pe.mergeScan=mergeScan},31564:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.min=void 0;var he=Ae(73694);var ge=Ae(67206);function min(R){return he.reduce(ge.isFunction(R)?function(pe,Ae){return R(pe,Ae)<0?pe:Ae}:function(R,pe){return R{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.multicast=void 0;var he=Ae(30420);var ge=Ae(67206);var ye=Ae(51101);function multicast(R,pe){var Ae=ge.isFunction(R)?R:function(){return R};if(ge.isFunction(pe)){return ye.connect(pe,{connector:Ae})}return function(R){return new he.ConnectableObservable(R,Ae)}}pe.multicast=multicast},22451:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.observeOn=void 0;var he=Ae(82877);var ge=Ae(38669);var ye=Ae(69549);function observeOn(R,pe){if(pe===void 0){pe=0}return ge.operate((function(Ae,ge){Ae.subscribe(ye.createOperatorSubscriber(ge,(function(Ae){return he.executeSchedule(ge,R,(function(){return ge.next(Ae)}),pe)}),(function(){return he.executeSchedule(ge,R,(function(){return ge.complete()}),pe)}),(function(Ae){return he.executeSchedule(ge,R,(function(){return ge.error(Ae)}),pe)})))}))}pe.observeOn=observeOn},33569:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.pairwise=void 0;var he=Ae(38669);var ge=Ae(69549);function pairwise(){return he.operate((function(R,pe){var Ae;var he=false;R.subscribe(ge.createOperatorSubscriber(pe,(function(R){var ge=Ae;Ae=R;he&&pe.next([ge,R]);he=true})))}))}pe.pairwise=pairwise},55949:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.partition=void 0;var he=Ae(54338);var ge=Ae(36894);function partition(R,pe){return function(Ae){return[ge.filter(R,pe)(Ae),ge.filter(he.not(R,pe))(Ae)]}}pe.partition=partition},16073:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.pluck=void 0;var he=Ae(5987);function pluck(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.publish=void 0;var he=Ae(49944);var ge=Ae(65457);var ye=Ae(51101);function publish(R){return R?function(pe){return ye.connect(R)(pe)}:function(R){return ge.multicast(new he.Subject)(R)}}pe.publish=publish},40045:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.publishBehavior=void 0;var he=Ae(23473);var ge=Ae(30420);function publishBehavior(R){return function(pe){var Ae=new he.BehaviorSubject(R);return new ge.ConnectableObservable(pe,(function(){return Ae}))}}pe.publishBehavior=publishBehavior},84149:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.publishLast=void 0;var he=Ae(9747);var ge=Ae(30420);function publishLast(){return function(R){var pe=new he.AsyncSubject;return new ge.ConnectableObservable(R,(function(){return pe}))}}pe.publishLast=publishLast},47656:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.publishReplay=void 0;var he=Ae(22351);var ge=Ae(65457);var ye=Ae(67206);function publishReplay(R,pe,Ae,me){if(Ae&&!ye.isFunction(Ae)){me=Ae}var ve=ye.isFunction(Ae)?Ae:undefined;return function(Ae){return ge.multicast(new he.ReplaySubject(R,pe,me),ve)(Ae)}}pe.publishReplay=publishReplay},85846:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.reduce=void 0;var he=Ae(20998);var ge=Ae(38669);function reduce(R,pe){return ge.operate(he.scanInternals(R,pe,arguments.length>=2,false,true))}pe.reduce=reduce},2331:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.refCount=void 0;var he=Ae(38669);var ge=Ae(69549);function refCount(){return he.operate((function(R,pe){var Ae=null;R._refCount++;var he=ge.createOperatorSubscriber(pe,undefined,undefined,undefined,(function(){if(!R||R._refCount<=0||0<--R._refCount){Ae=null;return}var he=R._connection;var ge=Ae;Ae=null;if(he&&(!ge||he===ge)){he.unsubscribe()}pe.unsubscribe()}));R.subscribe(he);if(!he.closed){Ae=R.connect()}}))}pe.refCount=refCount},22418:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.repeat=void 0;var he=Ae(70437);var ge=Ae(38669);var ye=Ae(69549);var me=Ae(57105);var ve=Ae(59757);function repeat(R){var pe;var Ae=Infinity;var be;if(R!=null){if(typeof R==="object"){pe=R.count,Ae=pe===void 0?Infinity:pe,be=R.delay}else{Ae=R}}return Ae<=0?function(){return he.EMPTY}:ge.operate((function(R,pe){var he=0;var ge;var resubscribe=function(){ge===null||ge===void 0?void 0:ge.unsubscribe();ge=null;if(be!=null){var R=typeof be==="number"?ve.timer(be):me.innerFrom(be(he));var Ae=ye.createOperatorSubscriber(pe,(function(){Ae.unsubscribe();subscribeToSource()}));R.subscribe(Ae)}else{subscribeToSource()}};var subscribeToSource=function(){var me=false;ge=R.subscribe(ye.createOperatorSubscriber(pe,undefined,(function(){if(++he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.repeatWhen=void 0;var he=Ae(57105);var ge=Ae(49944);var ye=Ae(38669);var me=Ae(69549);function repeatWhen(R){return ye.operate((function(pe,Ae){var ye;var ve=false;var be;var Ee=false;var Ce=false;var checkComplete=function(){return Ce&&Ee&&(Ae.complete(),true)};var getCompletionSubject=function(){if(!be){be=new ge.Subject;he.innerFrom(R(be)).subscribe(me.createOperatorSubscriber(Ae,(function(){if(ye){subscribeForRepeatWhen()}else{ve=true}}),(function(){Ee=true;checkComplete()})))}return be};var subscribeForRepeatWhen=function(){Ce=false;ye=pe.subscribe(me.createOperatorSubscriber(Ae,undefined,(function(){Ce=true;!checkComplete()&&getCompletionSubject().next()})));if(ve){ye.unsubscribe();ye=null;ve=false;subscribeForRepeatWhen()}};subscribeForRepeatWhen()}))}pe.repeatWhen=repeatWhen},56251:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.retry=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(60283);var me=Ae(59757);var ve=Ae(57105);function retry(R){if(R===void 0){R=Infinity}var pe;if(R&&typeof R==="object"){pe=R}else{pe={count:R}}var Ae=pe.count,be=Ae===void 0?Infinity:Ae,Ee=pe.delay,Ce=pe.resetOnSuccess,we=Ce===void 0?false:Ce;return be<=0?ye.identity:he.operate((function(R,pe){var Ae=0;var he;var subscribeForRetry=function(){var ye=false;he=R.subscribe(ge.createOperatorSubscriber(pe,(function(R){if(we){Ae=0}pe.next(R)}),undefined,(function(R){if(Ae++{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.retryWhen=void 0;var he=Ae(57105);var ge=Ae(49944);var ye=Ae(38669);var me=Ae(69549);function retryWhen(R){return ye.operate((function(pe,Ae){var ye;var ve=false;var be;var subscribeForRetryWhen=function(){ye=pe.subscribe(me.createOperatorSubscriber(Ae,undefined,undefined,(function(pe){if(!be){be=new ge.Subject;he.innerFrom(R(be)).subscribe(me.createOperatorSubscriber(Ae,(function(){return ye?subscribeForRetryWhen():ve=true})))}if(be){be.next(pe)}})));if(ve){ye.unsubscribe();ye=null;ve=false;subscribeForRetryWhen()}};subscribeForRetryWhen()}))}pe.retryWhen=retryWhen},13774:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.sample=void 0;var he=Ae(57105);var ge=Ae(38669);var ye=Ae(11642);var me=Ae(69549);function sample(R){return ge.operate((function(pe,Ae){var ge=false;var ve=null;pe.subscribe(me.createOperatorSubscriber(Ae,(function(R){ge=true;ve=R})));he.innerFrom(R).subscribe(me.createOperatorSubscriber(Ae,(function(){if(ge){ge=false;var R=ve;ve=null;Ae.next(R)}}),ye.noop))}))}pe.sample=sample},49807:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.sampleTime=void 0;var he=Ae(76072);var ge=Ae(13774);var ye=Ae(20029);function sampleTime(R,pe){if(pe===void 0){pe=he.asyncScheduler}return ge.sample(ye.interval(R,pe))}pe.sampleTime=sampleTime},25578:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scan=void 0;var he=Ae(38669);var ge=Ae(20998);function scan(R,pe){return he.operate(ge.scanInternals(R,pe,arguments.length>=2,true))}pe.scan=scan},20998:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scanInternals=void 0;var he=Ae(69549);function scanInternals(R,pe,Ae,ge,ye){return function(me,ve){var be=Ae;var Ee=pe;var Ce=0;me.subscribe(he.createOperatorSubscriber(ve,(function(pe){var Ae=Ce++;Ee=be?R(Ee,pe,Ae):(be=true,pe);ge&&ve.next(Ee)}),ye&&function(){be&&ve.next(Ee);ve.complete()}))}}pe.scanInternals=scanInternals},16126:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.sequenceEqual=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(57105);function sequenceEqual(R,pe){if(pe===void 0){pe=function(R,pe){return R===pe}}return he.operate((function(Ae,he){var me=createState();var ve=createState();var emit=function(R){he.next(R);he.complete()};var createSubscriber=function(R,Ae){var ye=ge.createOperatorSubscriber(he,(function(he){var ge=Ae.buffer,ye=Ae.complete;if(ge.length===0){ye?emit(false):R.buffer.push(he)}else{!pe(he,ge.shift())&&emit(false)}}),(function(){R.complete=true;var pe=Ae.complete,he=Ae.buffer;pe&&emit(he.length===0);ye===null||ye===void 0?void 0:ye.unsubscribe()}));return ye};Ae.subscribe(createSubscriber(me,ve));ye.innerFrom(R).subscribe(createSubscriber(ve,me))}))}pe.sequenceEqual=sequenceEqual;function createState(){return{buffer:[],complete:false}}},48960:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae0){pe=new ve.SafeSubscriber({next:function(R){return Se.next(R)},error:function(R){Ie=true;cancelReset();he=handleReset(reset,ge,R);Se.error(R)},complete:function(){we=true;cancelReset();he=handleReset(reset,Ce);Se.complete()}});ye.innerFrom(R).subscribe(pe)}}))(R)}}pe.share=share;function handleReset(R,pe){var Ae=[];for(var me=2;me{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.shareReplay=void 0;var he=Ae(22351);var ge=Ae(48960);function shareReplay(R,pe,Ae){var ye,me,ve;var be;var Ee=false;if(R&&typeof R==="object"){ye=R.bufferSize,be=ye===void 0?Infinity:ye,me=R.windowTime,pe=me===void 0?Infinity:me,ve=R.refCount,Ee=ve===void 0?false:ve,Ae=R.scheduler}else{be=R!==null&&R!==void 0?R:Infinity}return ge.share({connector:function(){return new he.ReplaySubject(be,pe,Ae)},resetOnError:true,resetOnComplete:false,resetOnRefCountZero:Ee})}pe.shareReplay=shareReplay},58441:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.single=void 0;var he=Ae(99391);var ge=Ae(49048);var ye=Ae(74431);var me=Ae(38669);var ve=Ae(69549);function single(R){return me.operate((function(pe,Ae){var me=false;var be;var Ee=false;var Ce=0;pe.subscribe(ve.createOperatorSubscriber(Ae,(function(he){Ee=true;if(!R||R(he,Ce++,pe)){me&&Ae.error(new ge.SequenceError("Too many matching values"));me=true;be=he}}),(function(){if(me){Ae.next(be);Ae.complete()}else{Ae.error(Ee?new ye.NotFoundError("No matching values"):new he.EmptyError)}})))}))}pe.single=single},80947:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.skip=void 0;var he=Ae(36894);function skip(R){return he.filter((function(pe,Ae){return R<=Ae}))}pe.skip=skip},65865:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.skipLast=void 0;var he=Ae(60283);var ge=Ae(38669);var ye=Ae(69549);function skipLast(R){return R<=0?he.identity:ge.operate((function(pe,Ae){var he=new Array(R);var ge=0;pe.subscribe(ye.createOperatorSubscriber(Ae,(function(pe){var ye=ge++;if(ye{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.skipUntil=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(57105);var me=Ae(11642);function skipUntil(R){return he.operate((function(pe,Ae){var he=false;var ve=ge.createOperatorSubscriber(Ae,(function(){ve===null||ve===void 0?void 0:ve.unsubscribe();he=true}),me.noop);ye.innerFrom(R).subscribe(ve);pe.subscribe(ge.createOperatorSubscriber(Ae,(function(R){return he&&Ae.next(R)})))}))}pe.skipUntil=skipUntil},92550:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.skipWhile=void 0;var he=Ae(38669);var ge=Ae(69549);function skipWhile(R){return he.operate((function(pe,Ae){var he=false;var ye=0;pe.subscribe(ge.createOperatorSubscriber(Ae,(function(pe){return(he||(he=!R(pe,ye++)))&&Ae.next(pe)})))}))}pe.skipWhile=skipWhile},25471:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.startWith=void 0;var he=Ae(4675);var ge=Ae(34890);var ye=Ae(38669);function startWith(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.subscribeOn=void 0;var he=Ae(38669);function subscribeOn(R,pe){if(pe===void 0){pe=0}return he.operate((function(Ae,he){he.add(R.schedule((function(){return Ae.subscribe(he)}),pe))}))}pe.subscribeOn=subscribeOn},40327:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.switchAll=void 0;var he=Ae(26704);var ge=Ae(60283);function switchAll(){return he.switchMap(ge.identity)}pe.switchAll=switchAll},26704:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.switchMap=void 0;var he=Ae(57105);var ge=Ae(38669);var ye=Ae(69549);function switchMap(R,pe){return ge.operate((function(Ae,ge){var me=null;var ve=0;var be=false;var checkComplete=function(){return be&&!me&&ge.complete()};Ae.subscribe(ye.createOperatorSubscriber(ge,(function(Ae){me===null||me===void 0?void 0:me.unsubscribe();var be=0;var Ee=ve++;he.innerFrom(R(Ae,Ee)).subscribe(me=ye.createOperatorSubscriber(ge,(function(R){return ge.next(pe?pe(Ae,R,Ee,be++):R)}),(function(){me=null;checkComplete()})))}),(function(){be=true;checkComplete()})))}))}pe.switchMap=switchMap},1713:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.switchMapTo=void 0;var he=Ae(26704);var ge=Ae(67206);function switchMapTo(R,pe){return ge.isFunction(pe)?he.switchMap((function(){return R}),pe):he.switchMap((function(){return R}))}pe.switchMapTo=switchMapTo},13355:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.switchScan=void 0;var he=Ae(26704);var ge=Ae(38669);function switchScan(R,pe){return ge.operate((function(Ae,ge){var ye=pe;he.switchMap((function(pe,Ae){return R(ye,pe,Ae)}),(function(R,pe){return ye=pe,pe}))(Ae).subscribe(ge);return function(){ye=null}}))}pe.switchScan=switchScan},33698:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.take=void 0;var he=Ae(70437);var ge=Ae(38669);var ye=Ae(69549);function take(R){return R<=0?function(){return he.EMPTY}:ge.operate((function(pe,Ae){var he=0;pe.subscribe(ye.createOperatorSubscriber(Ae,(function(pe){if(++he<=R){Ae.next(pe);if(R<=he){Ae.complete()}}})))}))}pe.take=take},65041:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.takeLast=void 0;var ge=Ae(70437);var ye=Ae(38669);var me=Ae(69549);function takeLast(R){return R<=0?function(){return ge.EMPTY}:ye.operate((function(pe,Ae){var ge=[];pe.subscribe(me.createOperatorSubscriber(Ae,(function(pe){ge.push(pe);R{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.takeUntil=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(57105);var me=Ae(11642);function takeUntil(R){return he.operate((function(pe,Ae){ye.innerFrom(R).subscribe(ge.createOperatorSubscriber(Ae,(function(){return Ae.complete()}),me.noop));!Ae.closed&&pe.subscribe(Ae)}))}pe.takeUntil=takeUntil},76700:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.takeWhile=void 0;var he=Ae(38669);var ge=Ae(69549);function takeWhile(R,pe){if(pe===void 0){pe=false}return he.operate((function(Ae,he){var ye=0;Ae.subscribe(ge.createOperatorSubscriber(he,(function(Ae){var ge=R(Ae,ye++);(ge||pe)&&he.next(Ae);!ge&&he.complete()})))}))}pe.takeWhile=takeWhile},48845:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.tap=void 0;var he=Ae(67206);var ge=Ae(38669);var ye=Ae(69549);var me=Ae(60283);function tap(R,pe,Ae){var ve=he.isFunction(R)||pe||Ae?{next:R,error:pe,complete:Ae}:R;return ve?ge.operate((function(R,pe){var Ae;(Ae=ve.subscribe)===null||Ae===void 0?void 0:Ae.call(ve);var he=true;R.subscribe(ye.createOperatorSubscriber(pe,(function(R){var Ae;(Ae=ve.next)===null||Ae===void 0?void 0:Ae.call(ve,R);pe.next(R)}),(function(){var R;he=false;(R=ve.complete)===null||R===void 0?void 0:R.call(ve);pe.complete()}),(function(R){var Ae;he=false;(Ae=ve.error)===null||Ae===void 0?void 0:Ae.call(ve,R);pe.error(R)}),(function(){var R,pe;if(he){(R=ve.unsubscribe)===null||R===void 0?void 0:R.call(ve)}(pe=ve.finalize)===null||pe===void 0?void 0:pe.call(ve)})))})):me.identity}pe.tap=tap},36713:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.throttle=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(57105);function throttle(R,pe){return he.operate((function(Ae,he){var me=pe!==null&&pe!==void 0?pe:{},ve=me.leading,be=ve===void 0?true:ve,Ee=me.trailing,Ce=Ee===void 0?false:Ee;var we=false;var _e=null;var Ie=null;var Se=false;var endThrottling=function(){Ie===null||Ie===void 0?void 0:Ie.unsubscribe();Ie=null;if(Ce){send();Se&&he.complete()}};var cleanupThrottling=function(){Ie=null;Se&&he.complete()};var startThrottle=function(pe){return Ie=ye.innerFrom(R(pe)).subscribe(ge.createOperatorSubscriber(he,endThrottling,cleanupThrottling))};var send=function(){if(we){we=false;var R=_e;_e=null;he.next(R);!Se&&startThrottle(R)}};Ae.subscribe(ge.createOperatorSubscriber(he,(function(R){we=true;_e=R;!(Ie&&!Ie.closed)&&(be?send():startThrottle(R))}),(function(){Se=true;!(Ce&&we&&Ie&&!Ie.closed)&&he.complete()})))}))}pe.throttle=throttle},83435:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.throttleTime=void 0;var he=Ae(76072);var ge=Ae(36713);var ye=Ae(59757);function throttleTime(R,pe,Ae){if(pe===void 0){pe=he.asyncScheduler}var me=ye.timer(R,pe);return ge.throttle((function(){return me}),Ae)}pe.throttleTime=throttleTime},91566:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.throwIfEmpty=void 0;var he=Ae(99391);var ge=Ae(38669);var ye=Ae(69549);function throwIfEmpty(R){if(R===void 0){R=defaultErrorFactory}return ge.operate((function(pe,Ae){var he=false;pe.subscribe(ye.createOperatorSubscriber(Ae,(function(R){he=true;Ae.next(R)}),(function(){return he?Ae.complete():Ae.error(R())})))}))}pe.throwIfEmpty=throwIfEmpty;function defaultErrorFactory(){return new he.EmptyError}},14643:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TimeInterval=pe.timeInterval=void 0;var he=Ae(76072);var ge=Ae(38669);var ye=Ae(69549);function timeInterval(R){if(R===void 0){R=he.asyncScheduler}return ge.operate((function(pe,Ae){var he=R.now();pe.subscribe(ye.createOperatorSubscriber(Ae,(function(pe){var ge=R.now();var ye=ge-he;he=ge;Ae.next(new me(pe,ye))})))}))}pe.timeInterval=timeInterval;var me=function(){function TimeInterval(R,pe){this.value=R;this.interval=pe}return TimeInterval}();pe.TimeInterval=me},12051:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.timeout=pe.TimeoutError=void 0;var he=Ae(76072);var ge=Ae(60935);var ye=Ae(38669);var me=Ae(57105);var ve=Ae(8858);var be=Ae(69549);var Ee=Ae(82877);pe.TimeoutError=ve.createErrorClass((function(R){return function TimeoutErrorImpl(pe){if(pe===void 0){pe=null}R(this);this.message="Timeout has occurred";this.name="TimeoutError";this.info=pe}}));function timeout(R,pe){var Ae=ge.isValidDate(R)?{first:R}:typeof R==="number"?{each:R}:R,ve=Ae.first,Ce=Ae.each,we=Ae.with,_e=we===void 0?timeoutErrorFactory:we,Ie=Ae.scheduler,Se=Ie===void 0?pe!==null&&pe!==void 0?pe:he.asyncScheduler:Ie,Be=Ae.meta,ke=Be===void 0?null:Be;if(ve==null&&Ce==null){throw new TypeError("No timeout provided.")}return ye.operate((function(R,pe){var Ae;var he;var ge=null;var ye=0;var startTimer=function(R){he=Ee.executeSchedule(pe,Se,(function(){try{Ae.unsubscribe();me.innerFrom(_e({meta:ke,lastValue:ge,seen:ye})).subscribe(pe)}catch(R){pe.error(R)}}),R)};Ae=R.subscribe(be.createOperatorSubscriber(pe,(function(R){he===null||he===void 0?void 0:he.unsubscribe();ye++;pe.next(ge=R);Ce>0&&startTimer(Ce)}),undefined,undefined,(function(){if(!(he===null||he===void 0?void 0:he.closed)){he===null||he===void 0?void 0:he.unsubscribe()}ge=null})));!ye&&startTimer(ve!=null?typeof ve==="number"?ve:+ve-Se.now():Ce)}))}pe.timeout=timeout;function timeoutErrorFactory(R){throw new pe.TimeoutError(R)}},43540:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.timeoutWith=void 0;var he=Ae(76072);var ge=Ae(60935);var ye=Ae(12051);function timeoutWith(R,pe,Ae){var me;var ve;var be;Ae=Ae!==null&&Ae!==void 0?Ae:he.async;if(ge.isValidDate(R)){me=R}else if(typeof R==="number"){ve=R}if(pe){be=function(){return pe}}else{throw new TypeError("No observable provided to switch to")}if(me==null&&ve==null){throw new TypeError("No timeout provided.")}return ye.timeout({first:me,each:ve,scheduler:Ae,with:be})}pe.timeoutWith=timeoutWith},75518:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.timestamp=void 0;var he=Ae(91395);var ge=Ae(5987);function timestamp(R){if(R===void 0){R=he.dateTimestampProvider}return ge.map((function(pe){return{value:pe,timestamp:R.now()}}))}pe.timestamp=timestamp},35114:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.toArray=void 0;var he=Ae(73694);var ge=Ae(38669);var arrReducer=function(R,pe){return R.push(pe),R};function toArray(){return ge.operate((function(R,pe){he.reduce(arrReducer,[])(R).subscribe(pe)}))}pe.toArray=toArray},98255:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.window=void 0;var he=Ae(49944);var ge=Ae(38669);var ye=Ae(69549);var me=Ae(11642);var ve=Ae(57105);function window(R){return ge.operate((function(pe,Ae){var ge=new he.Subject;Ae.next(ge.asObservable());var errorHandler=function(R){ge.error(R);Ae.error(R)};pe.subscribe(ye.createOperatorSubscriber(Ae,(function(R){return ge===null||ge===void 0?void 0:ge.next(R)}),(function(){ge.complete();Ae.complete()}),errorHandler));ve.innerFrom(R).subscribe(ye.createOperatorSubscriber(Ae,(function(){ge.complete();Ae.next(ge=new he.Subject)}),me.noop,errorHandler));return function(){ge===null||ge===void 0?void 0:ge.unsubscribe();ge=null}}))}pe.window=window},73144:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.windowCount=void 0;var ge=Ae(49944);var ye=Ae(38669);var me=Ae(69549);function windowCount(R,pe){if(pe===void 0){pe=0}var Ae=pe>0?pe:R;return ye.operate((function(pe,ye){var ve=[new ge.Subject];var be=[];var Ee=0;ye.next(ve[0].asObservable());pe.subscribe(me.createOperatorSubscriber(ye,(function(pe){var me,be;try{for(var Ce=he(ve),we=Ce.next();!we.done;we=Ce.next()){var _e=we.value;_e.next(pe)}}catch(R){me={error:R}}finally{try{if(we&&!we.done&&(be=Ce.return))be.call(Ce)}finally{if(me)throw me.error}}var Ie=Ee-R+1;if(Ie>=0&&Ie%Ae===0){ve.shift().complete()}if(++Ee%Ae===0){var Se=new ge.Subject;ve.push(Se);ye.next(Se.asObservable())}}),(function(){while(ve.length>0){ve.shift().complete()}ye.complete()}),(function(R){while(ve.length>0){ve.shift().error(R)}ye.error(R)}),(function(){be=null;ve=null})))}))}pe.windowCount=windowCount},2738:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.windowTime=void 0;var he=Ae(49944);var ge=Ae(76072);var ye=Ae(79548);var me=Ae(38669);var ve=Ae(69549);var be=Ae(68499);var Ee=Ae(34890);var Ce=Ae(82877);function windowTime(R){var pe,Ae;var we=[];for(var _e=1;_e=0){Ce.executeSchedule(Ae,Ie,startWindow,Se,true)}else{me=true}startWindow();var loop=function(R){return ge.slice().forEach(R)};var terminate=function(R){loop((function(pe){var Ae=pe.window;return R(Ae)}));R(Ae);Ae.unsubscribe()};pe.subscribe(ve.createOperatorSubscriber(Ae,(function(R){loop((function(pe){pe.window.next(R);Be<=++pe.seen&&closeWindow(pe)}))}),(function(){return terminate((function(R){return R.complete()}))}),(function(R){return terminate((function(pe){return pe.error(R)}))})));return function(){ge=null}}))}pe.windowTime=windowTime},52741:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.windowToggle=void 0;var ge=Ae(49944);var ye=Ae(79548);var me=Ae(38669);var ve=Ae(57105);var be=Ae(69549);var Ee=Ae(11642);var Ce=Ae(68499);function windowToggle(R,pe){return me.operate((function(Ae,me){var we=[];var handleError=function(R){while(0{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.windowWhen=void 0;var he=Ae(49944);var ge=Ae(38669);var ye=Ae(69549);var me=Ae(57105);function windowWhen(R){return ge.operate((function(pe,Ae){var ge;var ve;var handleError=function(R){ge.error(R);Ae.error(R)};var openWindow=function(){ve===null||ve===void 0?void 0:ve.unsubscribe();ge===null||ge===void 0?void 0:ge.complete();ge=new he.Subject;Ae.next(ge.asObservable());var pe;try{pe=me.innerFrom(R())}catch(R){handleError(R);return}pe.subscribe(ve=ye.createOperatorSubscriber(Ae,openWindow,openWindow,handleError))};openWindow();pe.subscribe(ye.createOperatorSubscriber(Ae,(function(R){return ge.next(R)}),(function(){ge.complete();Ae.complete()}),handleError,(function(){ve===null||ve===void 0?void 0:ve.unsubscribe();ge=null})))}))}pe.windowWhen=windowWhen},20501:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.zipAll=void 0;var he=Ae(62504);var ge=Ae(29341);function zipAll(R){return ge.joinAllInternals(he.zip,R)}pe.zipAll=zipAll},95520:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduleArray=void 0;var he=Ae(53014);function scheduleArray(R,pe){return new he.Observable((function(Ae){var he=0;return pe.schedule((function(){if(he===R.length){Ae.complete()}else{Ae.next(R[he++]);if(!Ae.closed){this.schedule()}}}))}))}pe.scheduleArray=scheduleArray},75347:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduleAsyncIterable=void 0;var he=Ae(53014);var ge=Ae(82877);function scheduleAsyncIterable(R,pe){if(!R){throw new Error("Iterable cannot be null")}return new he.Observable((function(Ae){ge.executeSchedule(Ae,pe,(function(){var he=R[Symbol.asyncIterator]();ge.executeSchedule(Ae,pe,(function(){he.next().then((function(R){if(R.done){Ae.complete()}else{Ae.next(R.value)}}))}),0,true)}))}))}pe.scheduleAsyncIterable=scheduleAsyncIterable},59461:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduleIterable=void 0;var he=Ae(53014);var ge=Ae(85517);var ye=Ae(67206);var me=Ae(82877);function scheduleIterable(R,pe){return new he.Observable((function(Ae){var he;me.executeSchedule(Ae,pe,(function(){he=R[ge.iterator]();me.executeSchedule(Ae,pe,(function(){var R;var pe;var ge;try{R=he.next(),pe=R.value,ge=R.done}catch(R){Ae.error(R);return}if(ge){Ae.complete()}else{Ae.next(pe)}}),0,true)}));return function(){return ye.isFunction(he===null||he===void 0?void 0:he.return)&&he.return()}}))}pe.scheduleIterable=scheduleIterable},17096:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduleObservable=void 0;var he=Ae(57105);var ge=Ae(22451);var ye=Ae(7224);function scheduleObservable(R,pe){return he.innerFrom(R).pipe(ye.subscribeOn(pe),ge.observeOn(pe))}pe.scheduleObservable=scheduleObservable},24087:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.schedulePromise=void 0;var he=Ae(57105);var ge=Ae(22451);var ye=Ae(7224);function schedulePromise(R,pe){return he.innerFrom(R).pipe(ye.subscribeOn(pe),ge.observeOn(pe))}pe.schedulePromise=schedulePromise},5967:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduleReadableStreamLike=void 0;var he=Ae(75347);var ge=Ae(99621);function scheduleReadableStreamLike(R,pe){return he.scheduleAsyncIterable(ge.readableStreamLikeToAsyncGenerator(R),pe)}pe.scheduleReadableStreamLike=scheduleReadableStreamLike},6151:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduled=void 0;var he=Ae(17096);var ge=Ae(24087);var ye=Ae(11348);var me=Ae(59461);var ve=Ae(75347);var be=Ae(67984);var Ee=Ae(65585);var Ce=Ae(24461);var we=Ae(94292);var _e=Ae(44408);var Ie=Ae(97364);var Se=Ae(99621);var Be=Ae(5967);function scheduled(R,pe){if(R!=null){if(be.isInteropObservable(R)){return he.scheduleObservable(R,pe)}if(Ce.isArrayLike(R)){return ye.scheduleArray(R,pe)}if(Ee.isPromise(R)){return ge.schedulePromise(R,pe)}if(_e.isAsyncIterable(R)){return ve.scheduleAsyncIterable(R,pe)}if(we.isIterable(R)){return me.scheduleIterable(R,pe)}if(Se.isReadableStreamLike(R)){return Be.scheduleReadableStreamLike(R,pe)}}throw Ie.createInvalidObservableTypeError(R)}pe.scheduled=scheduled},83848:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.Action=void 0;var ge=Ae(79548);var ye=function(R){he(Action,R);function Action(pe,Ae){return R.call(this)||this}Action.prototype.schedule=function(R,pe){if(pe===void 0){pe=0}return this};return Action}(ge.Subscription);pe.Action=ye},95991:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AnimationFrameAction=void 0;var ge=Ae(13280);var ye=Ae(62738);var me=function(R){he(AnimationFrameAction,R);function AnimationFrameAction(pe,Ae){var he=R.call(this,pe,Ae)||this;he.scheduler=pe;he.work=Ae;return he}AnimationFrameAction.prototype.requestAsyncId=function(pe,Ae,he){if(he===void 0){he=0}if(he!==null&&he>0){return R.prototype.requestAsyncId.call(this,pe,Ae,he)}pe.actions.push(this);return pe._scheduled||(pe._scheduled=ye.animationFrameProvider.requestAnimationFrame((function(){return pe.flush(undefined)})))};AnimationFrameAction.prototype.recycleAsyncId=function(pe,Ae,he){var ge;if(he===void 0){he=0}if(he!=null?he>0:this.delay>0){return R.prototype.recycleAsyncId.call(this,pe,Ae,he)}var me=pe.actions;if(Ae!=null&&((ge=me[me.length-1])===null||ge===void 0?void 0:ge.id)!==Ae){ye.animationFrameProvider.cancelAnimationFrame(Ae);pe._scheduled=undefined}return undefined};return AnimationFrameAction}(ge.AsyncAction);pe.AnimationFrameAction=me},98768:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AnimationFrameScheduler=void 0;var ge=Ae(61673);var ye=function(R){he(AnimationFrameScheduler,R);function AnimationFrameScheduler(){return R!==null&&R.apply(this,arguments)||this}AnimationFrameScheduler.prototype.flush=function(R){this._active=true;var pe=this._scheduled;this._scheduled=undefined;var Ae=this.actions;var he;R=R||Ae.shift();do{if(he=R.execute(R.state,R.delay)){break}}while((R=Ae[0])&&R.id===pe&&Ae.shift());this._active=false;if(he){while((R=Ae[0])&&R.id===pe&&Ae.shift()){R.unsubscribe()}throw he}};return AnimationFrameScheduler}(ge.AsyncScheduler);pe.AnimationFrameScheduler=ye},12424:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AsapAction=void 0;var ge=Ae(13280);var ye=Ae(63475);var me=function(R){he(AsapAction,R);function AsapAction(pe,Ae){var he=R.call(this,pe,Ae)||this;he.scheduler=pe;he.work=Ae;return he}AsapAction.prototype.requestAsyncId=function(pe,Ae,he){if(he===void 0){he=0}if(he!==null&&he>0){return R.prototype.requestAsyncId.call(this,pe,Ae,he)}pe.actions.push(this);return pe._scheduled||(pe._scheduled=ye.immediateProvider.setImmediate(pe.flush.bind(pe,undefined)))};AsapAction.prototype.recycleAsyncId=function(pe,Ae,he){var ge;if(he===void 0){he=0}if(he!=null?he>0:this.delay>0){return R.prototype.recycleAsyncId.call(this,pe,Ae,he)}var me=pe.actions;if(Ae!=null&&((ge=me[me.length-1])===null||ge===void 0?void 0:ge.id)!==Ae){ye.immediateProvider.clearImmediate(Ae);if(pe._scheduled===Ae){pe._scheduled=undefined}}return undefined};return AsapAction}(ge.AsyncAction);pe.AsapAction=me},76641:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AsapScheduler=void 0;var ge=Ae(61673);var ye=function(R){he(AsapScheduler,R);function AsapScheduler(){return R!==null&&R.apply(this,arguments)||this}AsapScheduler.prototype.flush=function(R){this._active=true;var pe=this._scheduled;this._scheduled=undefined;var Ae=this.actions;var he;R=R||Ae.shift();do{if(he=R.execute(R.state,R.delay)){break}}while((R=Ae[0])&&R.id===pe&&Ae.shift());this._active=false;if(he){while((R=Ae[0])&&R.id===pe&&Ae.shift()){R.unsubscribe()}throw he}};return AsapScheduler}(ge.AsyncScheduler);pe.AsapScheduler=ye},13280:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AsyncAction=void 0;var ge=Ae(83848);var ye=Ae(55341);var me=Ae(68499);var ve=function(R){he(AsyncAction,R);function AsyncAction(pe,Ae){var he=R.call(this,pe,Ae)||this;he.scheduler=pe;he.work=Ae;he.pending=false;return he}AsyncAction.prototype.schedule=function(R,pe){var Ae;if(pe===void 0){pe=0}if(this.closed){return this}this.state=R;var he=this.id;var ge=this.scheduler;if(he!=null){this.id=this.recycleAsyncId(ge,he,pe)}this.pending=true;this.delay=pe;this.id=(Ae=this.id)!==null&&Ae!==void 0?Ae:this.requestAsyncId(ge,this.id,pe);return this};AsyncAction.prototype.requestAsyncId=function(R,pe,Ae){if(Ae===void 0){Ae=0}return ye.intervalProvider.setInterval(R.flush.bind(R,this),Ae)};AsyncAction.prototype.recycleAsyncId=function(R,pe,Ae){if(Ae===void 0){Ae=0}if(Ae!=null&&this.delay===Ae&&this.pending===false){return pe}if(pe!=null){ye.intervalProvider.clearInterval(pe)}return undefined};AsyncAction.prototype.execute=function(R,pe){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;var Ae=this._execute(R,pe);if(Ae){return Ae}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}};AsyncAction.prototype._execute=function(R,pe){var Ae=false;var he;try{this.work(R)}catch(R){Ae=true;he=R?R:new Error("Scheduled action threw falsy error")}if(Ae){this.unsubscribe();return he}};AsyncAction.prototype.unsubscribe=function(){if(!this.closed){var pe=this,Ae=pe.id,he=pe.scheduler;var ge=he.actions;this.work=this.state=this.scheduler=null;this.pending=false;me.arrRemove(ge,this);if(Ae!=null){this.id=this.recycleAsyncId(he,Ae,null)}this.delay=null;R.prototype.unsubscribe.call(this)}};return AsyncAction}(ge.Action);pe.AsyncAction=ve},61673:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AsyncScheduler=void 0;var ge=Ae(76243);var ye=function(R){he(AsyncScheduler,R);function AsyncScheduler(pe,Ae){if(Ae===void 0){Ae=ge.Scheduler.now}var he=R.call(this,pe,Ae)||this;he.actions=[];he._active=false;return he}AsyncScheduler.prototype.flush=function(R){var pe=this.actions;if(this._active){pe.push(R);return}var Ae;this._active=true;do{if(Ae=R.execute(R.state,R.delay)){break}}while(R=pe.shift());this._active=false;if(Ae){while(R=pe.shift()){R.unsubscribe()}throw Ae}};return AsyncScheduler}(ge.Scheduler);pe.AsyncScheduler=ye},32161:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.QueueAction=void 0;var ge=Ae(13280);var ye=function(R){he(QueueAction,R);function QueueAction(pe,Ae){var he=R.call(this,pe,Ae)||this;he.scheduler=pe;he.work=Ae;return he}QueueAction.prototype.schedule=function(pe,Ae){if(Ae===void 0){Ae=0}if(Ae>0){return R.prototype.schedule.call(this,pe,Ae)}this.delay=Ae;this.state=pe;this.scheduler.flush(this);return this};QueueAction.prototype.execute=function(pe,Ae){return Ae>0||this.closed?R.prototype.execute.call(this,pe,Ae):this._execute(pe,Ae)};QueueAction.prototype.requestAsyncId=function(pe,Ae,he){if(he===void 0){he=0}if(he!=null&&he>0||he==null&&this.delay>0){return R.prototype.requestAsyncId.call(this,pe,Ae,he)}pe.flush(this);return 0};return QueueAction}(ge.AsyncAction);pe.QueueAction=ye},48527:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.QueueScheduler=void 0;var ge=Ae(61673);var ye=function(R){he(QueueScheduler,R);function QueueScheduler(){return R!==null&&R.apply(this,arguments)||this}return QueueScheduler}(ge.AsyncScheduler);pe.QueueScheduler=ye},75348:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.VirtualAction=pe.VirtualTimeScheduler=void 0;var ge=Ae(13280);var ye=Ae(79548);var me=Ae(61673);var ve=function(R){he(VirtualTimeScheduler,R);function VirtualTimeScheduler(pe,Ae){if(pe===void 0){pe=be}if(Ae===void 0){Ae=Infinity}var he=R.call(this,pe,(function(){return he.frame}))||this;he.maxFrames=Ae;he.frame=0;he.index=-1;return he}VirtualTimeScheduler.prototype.flush=function(){var R=this,pe=R.actions,Ae=R.maxFrames;var he;var ge;while((ge=pe[0])&&ge.delay<=Ae){pe.shift();this.frame=ge.delay;if(he=ge.execute(ge.state,ge.delay)){break}}if(he){while(ge=pe.shift()){ge.unsubscribe()}throw he}};VirtualTimeScheduler.frameTimeFactor=10;return VirtualTimeScheduler}(me.AsyncScheduler);pe.VirtualTimeScheduler=ve;var be=function(R){he(VirtualAction,R);function VirtualAction(pe,Ae,he){if(he===void 0){he=pe.index+=1}var ge=R.call(this,pe,Ae)||this;ge.scheduler=pe;ge.work=Ae;ge.index=he;ge.active=true;ge.index=pe.index=he;return ge}VirtualAction.prototype.schedule=function(pe,Ae){if(Ae===void 0){Ae=0}if(Number.isFinite(Ae)){if(!this.id){return R.prototype.schedule.call(this,pe,Ae)}this.active=false;var he=new VirtualAction(this.scheduler,this.work);this.add(he);return he.schedule(pe,Ae)}else{return ye.Subscription.EMPTY}};VirtualAction.prototype.requestAsyncId=function(R,pe,Ae){if(Ae===void 0){Ae=0}this.delay=R.frame+Ae;var he=R.actions;he.push(this);he.sort(VirtualAction.sortActions);return 1};VirtualAction.prototype.recycleAsyncId=function(R,pe,Ae){if(Ae===void 0){Ae=0}return undefined};VirtualAction.prototype._execute=function(pe,Ae){if(this.active===true){return R.prototype._execute.call(this,pe,Ae)}};VirtualAction.sortActions=function(R,pe){if(R.delay===pe.delay){if(R.index===pe.index){return 0}else if(R.index>pe.index){return 1}else{return-1}}else if(R.delay>pe.delay){return 1}else{return-1}};return VirtualAction}(ge.AsyncAction);pe.VirtualAction=be},51359:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.animationFrame=pe.animationFrameScheduler=void 0;var he=Ae(95991);var ge=Ae(98768);pe.animationFrameScheduler=new ge.AnimationFrameScheduler(he.AnimationFrameAction);pe.animationFrame=pe.animationFrameScheduler},62738:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.asap=pe.asapScheduler=void 0;var he=Ae(12424);var ge=Ae(76641);pe.asapScheduler=new ge.AsapScheduler(he.AsapAction);pe.asap=pe.asapScheduler},76072:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.async=pe.asyncScheduler=void 0;var he=Ae(13280);var ge=Ae(61673);pe.asyncScheduler=new ge.AsyncScheduler(he.AsyncAction);pe.async=pe.asyncScheduler},91395:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.dateTimestampProvider=void 0;pe.dateTimestampProvider={now:function(){return(pe.dateTimestampProvider.delegate||Date).now()},delegate:undefined}},63475:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var he=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.performanceTimestampProvider=void 0;pe.performanceTimestampProvider={now:function(){return(pe.performanceTimestampProvider.delegate||performance).now()},delegate:undefined}},82059:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.queue=pe.queueScheduler=void 0;var he=Ae(32161);var ge=Ae(48527);pe.queueScheduler=new ge.QueueScheduler(he.QueueAction);pe.queue=pe.queueScheduler},1613:function(R,pe){"use strict";var Ae=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var he=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.iterator=pe.getSymbolIterator=void 0;function getSymbolIterator(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}pe.getSymbolIterator=getSymbolIterator;pe.iterator=getSymbolIterator()},17186:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.observable=void 0;pe.observable=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}()},36639:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},49796:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ArgumentOutOfRangeError=void 0;var he=Ae(8858);pe.ArgumentOutOfRangeError=he.createErrorClass((function(R){return function ArgumentOutOfRangeErrorImpl(){R(this);this.name="ArgumentOutOfRangeError";this.message="argument out of range"}}))},99391:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EmptyError=void 0;var he=Ae(8858);pe.EmptyError=he.createErrorClass((function(R){return function EmptyErrorImpl(){R(this);this.name="EmptyError";this.message="no elements in sequence"}}))},73555:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TestTools=pe.Immediate=void 0;var Ae=1;var he;var ge={};function findAndClearHandle(R){if(R in ge){delete ge[R];return true}return false}pe.Immediate={setImmediate:function(R){var pe=Ae++;ge[pe]=true;if(!he){he=Promise.resolve()}he.then((function(){return findAndClearHandle(pe)&&R()}));return pe},clearImmediate:function(R){findAndClearHandle(R)}};pe.TestTools={pending:function(){return Object.keys(ge).length}}},74431:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.NotFoundError=void 0;var he=Ae(8858);pe.NotFoundError=he.createErrorClass((function(R){return function NotFoundErrorImpl(pe){R(this);this.name="NotFoundError";this.message=pe}}))},95266:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ObjectUnsubscribedError=void 0;var he=Ae(8858);pe.ObjectUnsubscribedError=he.createErrorClass((function(R){return function ObjectUnsubscribedErrorImpl(){R(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}}))},49048:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SequenceError=void 0;var he=Ae(8858);pe.SequenceError=he.createErrorClass((function(R){return function SequenceErrorImpl(pe){R(this);this.name="SequenceError";this.message=pe}}))},56776:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.UnsubscriptionError=void 0;var he=Ae(8858);pe.UnsubscriptionError=he.createErrorClass((function(R){return function UnsubscriptionErrorImpl(pe){R(this);this.message=pe?pe.length+" errors occurred during unsubscription:\n"+pe.map((function(R,pe){return pe+1+") "+R.toString()})).join("\n "):"";this.name="UnsubscriptionError";this.errors=pe}}))},34890:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.popNumber=pe.popScheduler=pe.popResultSelector=void 0;var he=Ae(67206);var ge=Ae(16500);function last(R){return R[R.length-1]}function popResultSelector(R){return he.isFunction(last(R))?R.pop():undefined}pe.popResultSelector=popResultSelector;function popScheduler(R){return ge.isScheduler(last(R))?R.pop():undefined}pe.popScheduler=popScheduler;function popNumber(R,pe){return typeof last(R)==="number"?R.pop():pe}pe.popNumber=popNumber},12920:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.argsArgArrayOrObject=void 0;var Ae=Array.isArray;var he=Object.getPrototypeOf,ge=Object.prototype,ye=Object.keys;function argsArgArrayOrObject(R){if(R.length===1){var pe=R[0];if(Ae(pe)){return{args:pe,keys:null}}if(isPOJO(pe)){var he=ye(pe);return{args:he.map((function(R){return pe[R]})),keys:he}}}return{args:R,keys:null}}pe.argsArgArrayOrObject=argsArgArrayOrObject;function isPOJO(R){return R&&typeof R==="object"&&he(R)===ge}},18824:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.argsOrArgArray=void 0;var Ae=Array.isArray;function argsOrArgArray(R){return R.length===1&&Ae(R[0])?R[0]:R}pe.argsOrArgArray=argsOrArgArray},68499:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.arrRemove=void 0;function arrRemove(R,pe){if(R){var Ae=R.indexOf(pe);0<=Ae&&R.splice(Ae,1)}}pe.arrRemove=arrRemove},8858:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createErrorClass=void 0;function createErrorClass(R){var _super=function(R){Error.call(R);R.stack=(new Error).stack};var pe=R(_super);pe.prototype=Object.create(Error.prototype);pe.prototype.constructor=pe;return pe}pe.createErrorClass=createErrorClass},57834:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createObject=void 0;function createObject(R,pe){return R.reduce((function(R,Ae,he){return R[Ae]=pe[he],R}),{})}pe.createObject=createObject},31199:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.captureError=pe.errorContext=void 0;var he=Ae(92233);var ge=null;function errorContext(R){if(he.config.useDeprecatedSynchronousErrorHandling){var pe=!ge;if(pe){ge={errorThrown:false,error:null}}R();if(pe){var Ae=ge,ye=Ae.errorThrown,me=Ae.error;ge=null;if(ye){throw me}}}else{R()}}pe.errorContext=errorContext;function captureError(R){if(he.config.useDeprecatedSynchronousErrorHandling&&ge){ge.errorThrown=true;ge.error=R}}pe.captureError=captureError},82877:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.executeSchedule=void 0;function executeSchedule(R,pe,Ae,he,ge){if(he===void 0){he=0}if(ge===void 0){ge=false}var ye=pe.schedule((function(){Ae();if(ge){R.add(this.schedule(null,he))}else{this.unsubscribe()}}),he);R.add(ye);if(!ge){return ye}}pe.executeSchedule=executeSchedule},60283:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.identity=void 0;function identity(R){return R}pe.identity=identity},24461:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isArrayLike=void 0;pe.isArrayLike=function(R){return R&&typeof R.length==="number"&&typeof R!=="function"}},44408:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isAsyncIterable=void 0;var he=Ae(67206);function isAsyncIterable(R){return Symbol.asyncIterator&&he.isFunction(R===null||R===void 0?void 0:R[Symbol.asyncIterator])}pe.isAsyncIterable=isAsyncIterable},60935:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isValidDate=void 0;function isValidDate(R){return R instanceof Date&&!isNaN(R)}pe.isValidDate=isValidDate},67206:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isFunction=void 0;function isFunction(R){return typeof R==="function"}pe.isFunction=isFunction},67984:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isInteropObservable=void 0;var he=Ae(17186);var ge=Ae(67206);function isInteropObservable(R){return ge.isFunction(R[he.observable])}pe.isInteropObservable=isInteropObservable},94292:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isIterable=void 0;var he=Ae(85517);var ge=Ae(67206);function isIterable(R){return ge.isFunction(R===null||R===void 0?void 0:R[he.iterator])}pe.isIterable=isIterable},72259:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isObservable=void 0;var he=Ae(53014);var ge=Ae(67206);function isObservable(R){return!!R&&(R instanceof he.Observable||ge.isFunction(R.lift)&&ge.isFunction(R.subscribe))}pe.isObservable=isObservable},65585:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isPromise=void 0;var he=Ae(67206);function isPromise(R){return he.isFunction(R===null||R===void 0?void 0:R.then)}pe.isPromise=isPromise},99621:function(R,pe,Ae){"use strict";var he=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(me){if(he)throw new TypeError("Generator is already executing.");while(Ae)try{if(he=1,ge&&(ye=me[0]&2?ge["return"]:me[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,me[1])).done)return ye;if(ge=0,ye)me=[me[0]&2,ye.value];switch(me[0]){case 0:case 1:ye=me;break;case 4:Ae.label++;return{value:me[1],done:false};case 5:Ae.label++;ge=me[1];me=[0];continue;case 7:me=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(me[0]===6||me[0]===2)){Ae=0;continue}if(me[0]===3&&(!ye||me[1]>ye[0]&&me[1]1||resume(R,pe)}))}}function resume(R,pe){try{step(he[R](pe))}catch(R){settle(me[0][3],R)}}function step(R){R.value instanceof ge?Promise.resolve(R.value.v).then(fulfill,reject):settle(me[0][2],R)}function fulfill(R){resume("next",R)}function reject(R){resume("throw",R)}function settle(R,pe){if(R(pe),me.shift(),me.length)resume(me[0][0],me[0][1])}};Object.defineProperty(pe,"__esModule",{value:true});pe.isReadableStreamLike=pe.readableStreamLikeToAsyncGenerator=void 0;var me=Ae(67206);function readableStreamLikeToAsyncGenerator(R){return ye(this,arguments,(function readableStreamLikeToAsyncGenerator_1(){var pe,Ae,ye,me;return he(this,(function(he){switch(he.label){case 0:pe=R.getReader();he.label=1;case 1:he.trys.push([1,,9,10]);he.label=2;case 2:if(false){}return[4,ge(pe.read())];case 3:Ae=he.sent(),ye=Ae.value,me=Ae.done;if(!me)return[3,5];return[4,ge(void 0)];case 4:return[2,he.sent()];case 5:return[4,ge(ye)];case 6:return[4,he.sent()];case 7:he.sent();return[3,2];case 8:return[3,10];case 9:pe.releaseLock();return[7];case 10:return[2]}}))}))}pe.readableStreamLikeToAsyncGenerator=readableStreamLikeToAsyncGenerator;function isReadableStreamLike(R){return me.isFunction(R===null||R===void 0?void 0:R.getReader)}pe.isReadableStreamLike=isReadableStreamLike},16500:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isScheduler=void 0;var he=Ae(67206);function isScheduler(R){return R&&he.isFunction(R.schedule)}pe.isScheduler=isScheduler},38669:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.operate=pe.hasLift=void 0;var he=Ae(67206);function hasLift(R){return he.isFunction(R===null||R===void 0?void 0:R.lift)}pe.hasLift=hasLift;function operate(R){return function(pe){if(hasLift(pe)){return pe.lift((function(pe){try{return R(pe,this)}catch(R){this.error(R)}}))}throw new TypeError("Unable to lift unknown Observable type")}}pe.operate=operate},78934:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.noop=void 0;function noop(){}pe.noop=noop},54338:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.not=void 0;function not(R,pe){return function(Ae,he){return!R.call(pe,Ae,he)}}pe.not=not},49587:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.pipeFromArray=pe.pipe=void 0;var he=Ae(60283);function pipe(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.reportUnhandledError=void 0;var he=Ae(92233);var ge=Ae(1613);function reportUnhandledError(R){ge.timeoutProvider.setTimeout((function(){var pe=he.config.onUnhandledError;if(pe){pe(R)}else{throw R}}))}pe.reportUnhandledError=reportUnhandledError},97364:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createInvalidObservableTypeError=void 0;function createInvalidObservableTypeError(R){return new TypeError("You provided "+(R!==null&&typeof R==="object"?"an invalid object":"'"+R+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}pe.createInvalidObservableTypeError=createInvalidObservableTypeError},50749:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeAll=pe.merge=pe.max=pe.materialize=pe.mapTo=pe.map=pe.last=pe.isEmpty=pe.ignoreElements=pe.groupBy=pe.first=pe.findIndex=pe.find=pe.finalize=pe.filter=pe.expand=pe.exhaustMap=pe.exhaustAll=pe.exhaust=pe.every=pe.endWith=pe.elementAt=pe.distinctUntilKeyChanged=pe.distinctUntilChanged=pe.distinct=pe.dematerialize=pe.delayWhen=pe.delay=pe.defaultIfEmpty=pe.debounceTime=pe.debounce=pe.count=pe.connect=pe.concatWith=pe.concatMapTo=pe.concatMap=pe.concatAll=pe.concat=pe.combineLatestWith=pe.combineLatest=pe.combineLatestAll=pe.combineAll=pe.catchError=pe.bufferWhen=pe.bufferToggle=pe.bufferTime=pe.bufferCount=pe.buffer=pe.auditTime=pe.audit=void 0;pe.timeInterval=pe.throwIfEmpty=pe.throttleTime=pe.throttle=pe.tap=pe.takeWhile=pe.takeUntil=pe.takeLast=pe.take=pe.switchScan=pe.switchMapTo=pe.switchMap=pe.switchAll=pe.subscribeOn=pe.startWith=pe.skipWhile=pe.skipUntil=pe.skipLast=pe.skip=pe.single=pe.shareReplay=pe.share=pe.sequenceEqual=pe.scan=pe.sampleTime=pe.sample=pe.refCount=pe.retryWhen=pe.retry=pe.repeatWhen=pe.repeat=pe.reduce=pe.raceWith=pe.race=pe.publishReplay=pe.publishLast=pe.publishBehavior=pe.publish=pe.pluck=pe.partition=pe.pairwise=pe.onErrorResumeNext=pe.observeOn=pe.multicast=pe.min=pe.mergeWith=pe.mergeScan=pe.mergeMapTo=pe.mergeMap=pe.flatMap=void 0;pe.zipWith=pe.zipAll=pe.zip=pe.withLatestFrom=pe.windowWhen=pe.windowToggle=pe.windowTime=pe.windowCount=pe.window=pe.toArray=pe.timestamp=pe.timeoutWith=pe.timeout=void 0;var he=Ae(82704);Object.defineProperty(pe,"audit",{enumerable:true,get:function(){return he.audit}});var ge=Ae(18780);Object.defineProperty(pe,"auditTime",{enumerable:true,get:function(){return ge.auditTime}});var ye=Ae(34253);Object.defineProperty(pe,"buffer",{enumerable:true,get:function(){return ye.buffer}});var me=Ae(17253);Object.defineProperty(pe,"bufferCount",{enumerable:true,get:function(){return me.bufferCount}});var ve=Ae(73102);Object.defineProperty(pe,"bufferTime",{enumerable:true,get:function(){return ve.bufferTime}});var be=Ae(83781);Object.defineProperty(pe,"bufferToggle",{enumerable:true,get:function(){return be.bufferToggle}});var Ee=Ae(82855);Object.defineProperty(pe,"bufferWhen",{enumerable:true,get:function(){return Ee.bufferWhen}});var Ce=Ae(37765);Object.defineProperty(pe,"catchError",{enumerable:true,get:function(){return Ce.catchError}});var we=Ae(88817);Object.defineProperty(pe,"combineAll",{enumerable:true,get:function(){return we.combineAll}});var _e=Ae(91063);Object.defineProperty(pe,"combineLatestAll",{enumerable:true,get:function(){return _e.combineLatestAll}});var Ie=Ae(96008);Object.defineProperty(pe,"combineLatest",{enumerable:true,get:function(){return Ie.combineLatest}});var Se=Ae(19044);Object.defineProperty(pe,"combineLatestWith",{enumerable:true,get:function(){return Se.combineLatestWith}});var Be=Ae(18500);Object.defineProperty(pe,"concat",{enumerable:true,get:function(){return Be.concat}});var ke=Ae(88049);Object.defineProperty(pe,"concatAll",{enumerable:true,get:function(){return ke.concatAll}});var Oe=Ae(19130);Object.defineProperty(pe,"concatMap",{enumerable:true,get:function(){return Oe.concatMap}});var Re=Ae(61596);Object.defineProperty(pe,"concatMapTo",{enumerable:true,get:function(){return Re.concatMapTo}});var Qe=Ae(97998);Object.defineProperty(pe,"concatWith",{enumerable:true,get:function(){return Qe.concatWith}});var xe=Ae(51101);Object.defineProperty(pe,"connect",{enumerable:true,get:function(){return xe.connect}});var Pe=Ae(36571);Object.defineProperty(pe,"count",{enumerable:true,get:function(){return Pe.count}});var Te=Ae(19348);Object.defineProperty(pe,"debounce",{enumerable:true,get:function(){return Te.debounce}});var De=Ae(62379);Object.defineProperty(pe,"debounceTime",{enumerable:true,get:function(){return De.debounceTime}});var Ne=Ae(30621);Object.defineProperty(pe,"defaultIfEmpty",{enumerable:true,get:function(){return Ne.defaultIfEmpty}});var Me=Ae(99818);Object.defineProperty(pe,"delay",{enumerable:true,get:function(){return Me.delay}});var je=Ae(16994);Object.defineProperty(pe,"delayWhen",{enumerable:true,get:function(){return je.delayWhen}});var Fe=Ae(95338);Object.defineProperty(pe,"dematerialize",{enumerable:true,get:function(){return Fe.dematerialize}});var Le=Ae(52594);Object.defineProperty(pe,"distinct",{enumerable:true,get:function(){return Le.distinct}});var Ue=Ae(20632);Object.defineProperty(pe,"distinctUntilChanged",{enumerable:true,get:function(){return Ue.distinctUntilChanged}});var He=Ae(13809);Object.defineProperty(pe,"distinctUntilKeyChanged",{enumerable:true,get:function(){return He.distinctUntilKeyChanged}});var Je=Ae(73381);Object.defineProperty(pe,"elementAt",{enumerable:true,get:function(){return Je.elementAt}});var We=Ae(42961);Object.defineProperty(pe,"endWith",{enumerable:true,get:function(){return We.endWith}});var Ve=Ae(69559);Object.defineProperty(pe,"every",{enumerable:true,get:function(){return Ve.every}});var Ke=Ae(75686);Object.defineProperty(pe,"exhaust",{enumerable:true,get:function(){return Ke.exhaust}});var Ge=Ae(79777);Object.defineProperty(pe,"exhaustAll",{enumerable:true,get:function(){return Ge.exhaustAll}});var Ye=Ae(21527);Object.defineProperty(pe,"exhaustMap",{enumerable:true,get:function(){return Ye.exhaustMap}});var qe=Ae(21585);Object.defineProperty(pe,"expand",{enumerable:true,get:function(){return qe.expand}});var $e=Ae(36894);Object.defineProperty(pe,"filter",{enumerable:true,get:function(){return $e.filter}});var ze=Ae(4013);Object.defineProperty(pe,"finalize",{enumerable:true,get:function(){return ze.finalize}});var Xe=Ae(28981);Object.defineProperty(pe,"find",{enumerable:true,get:function(){return Xe.find}});var Ze=Ae(92602);Object.defineProperty(pe,"findIndex",{enumerable:true,get:function(){return Ze.findIndex}});var et=Ae(63345);Object.defineProperty(pe,"first",{enumerable:true,get:function(){return et.first}});var tt=Ae(51650);Object.defineProperty(pe,"groupBy",{enumerable:true,get:function(){return tt.groupBy}});var rt=Ae(31062);Object.defineProperty(pe,"ignoreElements",{enumerable:true,get:function(){return rt.ignoreElements}});var nt=Ae(77722);Object.defineProperty(pe,"isEmpty",{enumerable:true,get:function(){return nt.isEmpty}});var it=Ae(46831);Object.defineProperty(pe,"last",{enumerable:true,get:function(){return it.last}});var ot=Ae(5987);Object.defineProperty(pe,"map",{enumerable:true,get:function(){return ot.map}});var st=Ae(52300);Object.defineProperty(pe,"mapTo",{enumerable:true,get:function(){return st.mapTo}});var at=Ae(67108);Object.defineProperty(pe,"materialize",{enumerable:true,get:function(){return at.materialize}});var ct=Ae(17314);Object.defineProperty(pe,"max",{enumerable:true,get:function(){return ct.max}});var ut=Ae(39510);Object.defineProperty(pe,"merge",{enumerable:true,get:function(){return ut.merge}});var lt=Ae(2057);Object.defineProperty(pe,"mergeAll",{enumerable:true,get:function(){return lt.mergeAll}});var dt=Ae(40186);Object.defineProperty(pe,"flatMap",{enumerable:true,get:function(){return dt.flatMap}});var ft=Ae(69914);Object.defineProperty(pe,"mergeMap",{enumerable:true,get:function(){return ft.mergeMap}});var pt=Ae(49151);Object.defineProperty(pe,"mergeMapTo",{enumerable:true,get:function(){return pt.mergeMapTo}});var At=Ae(11519);Object.defineProperty(pe,"mergeScan",{enumerable:true,get:function(){return At.mergeScan}});var ht=Ae(31564);Object.defineProperty(pe,"mergeWith",{enumerable:true,get:function(){return ht.mergeWith}});var gt=Ae(87641);Object.defineProperty(pe,"min",{enumerable:true,get:function(){return gt.min}});var yt=Ae(65457);Object.defineProperty(pe,"multicast",{enumerable:true,get:function(){return yt.multicast}});var mt=Ae(22451);Object.defineProperty(pe,"observeOn",{enumerable:true,get:function(){return mt.observeOn}});var vt=Ae(33569);Object.defineProperty(pe,"onErrorResumeNext",{enumerable:true,get:function(){return vt.onErrorResumeNext}});var bt=Ae(52206);Object.defineProperty(pe,"pairwise",{enumerable:true,get:function(){return bt.pairwise}});var Et=Ae(55949);Object.defineProperty(pe,"partition",{enumerable:true,get:function(){return Et.partition}});var Ct=Ae(16073);Object.defineProperty(pe,"pluck",{enumerable:true,get:function(){return Ct.pluck}});var wt=Ae(84084);Object.defineProperty(pe,"publish",{enumerable:true,get:function(){return wt.publish}});var _t=Ae(40045);Object.defineProperty(pe,"publishBehavior",{enumerable:true,get:function(){return _t.publishBehavior}});var It=Ae(84149);Object.defineProperty(pe,"publishLast",{enumerable:true,get:function(){return It.publishLast}});var St=Ae(47656);Object.defineProperty(pe,"publishReplay",{enumerable:true,get:function(){return St.publishReplay}});var Bt=Ae(85846);Object.defineProperty(pe,"race",{enumerable:true,get:function(){return Bt.race}});var kt=Ae(58008);Object.defineProperty(pe,"raceWith",{enumerable:true,get:function(){return kt.raceWith}});var Ot=Ae(73694);Object.defineProperty(pe,"reduce",{enumerable:true,get:function(){return Ot.reduce}});var Rt=Ae(22418);Object.defineProperty(pe,"repeat",{enumerable:true,get:function(){return Rt.repeat}});var Qt=Ae(70754);Object.defineProperty(pe,"repeatWhen",{enumerable:true,get:function(){return Qt.repeatWhen}});var xt=Ae(56251);Object.defineProperty(pe,"retry",{enumerable:true,get:function(){return xt.retry}});var Pt=Ae(69018);Object.defineProperty(pe,"retryWhen",{enumerable:true,get:function(){return Pt.retryWhen}});var Tt=Ae(2331);Object.defineProperty(pe,"refCount",{enumerable:true,get:function(){return Tt.refCount}});var Dt=Ae(13774);Object.defineProperty(pe,"sample",{enumerable:true,get:function(){return Dt.sample}});var Nt=Ae(49807);Object.defineProperty(pe,"sampleTime",{enumerable:true,get:function(){return Nt.sampleTime}});var Mt=Ae(25578);Object.defineProperty(pe,"scan",{enumerable:true,get:function(){return Mt.scan}});var jt=Ae(16126);Object.defineProperty(pe,"sequenceEqual",{enumerable:true,get:function(){return jt.sequenceEqual}});var Ft=Ae(48960);Object.defineProperty(pe,"share",{enumerable:true,get:function(){return Ft.share}});var Lt=Ae(92118);Object.defineProperty(pe,"shareReplay",{enumerable:true,get:function(){return Lt.shareReplay}});var Ut=Ae(58441);Object.defineProperty(pe,"single",{enumerable:true,get:function(){return Ut.single}});var Ht=Ae(80947);Object.defineProperty(pe,"skip",{enumerable:true,get:function(){return Ht.skip}});var Jt=Ae(65865);Object.defineProperty(pe,"skipLast",{enumerable:true,get:function(){return Jt.skipLast}});var Wt=Ae(41110);Object.defineProperty(pe,"skipUntil",{enumerable:true,get:function(){return Wt.skipUntil}});var Vt=Ae(92550);Object.defineProperty(pe,"skipWhile",{enumerable:true,get:function(){return Vt.skipWhile}});var Kt=Ae(25471);Object.defineProperty(pe,"startWith",{enumerable:true,get:function(){return Kt.startWith}});var Gt=Ae(7224);Object.defineProperty(pe,"subscribeOn",{enumerable:true,get:function(){return Gt.subscribeOn}});var Yt=Ae(40327);Object.defineProperty(pe,"switchAll",{enumerable:true,get:function(){return Yt.switchAll}});var qt=Ae(26704);Object.defineProperty(pe,"switchMap",{enumerable:true,get:function(){return qt.switchMap}});var $t=Ae(1713);Object.defineProperty(pe,"switchMapTo",{enumerable:true,get:function(){return $t.switchMapTo}});var zt=Ae(13355);Object.defineProperty(pe,"switchScan",{enumerable:true,get:function(){return zt.switchScan}});var Xt=Ae(33698);Object.defineProperty(pe,"take",{enumerable:true,get:function(){return Xt.take}});var Zt=Ae(65041);Object.defineProperty(pe,"takeLast",{enumerable:true,get:function(){return Zt.takeLast}});var er=Ae(55150);Object.defineProperty(pe,"takeUntil",{enumerable:true,get:function(){return er.takeUntil}});var tr=Ae(76700);Object.defineProperty(pe,"takeWhile",{enumerable:true,get:function(){return tr.takeWhile}});var rr=Ae(48845);Object.defineProperty(pe,"tap",{enumerable:true,get:function(){return rr.tap}});var nr=Ae(36713);Object.defineProperty(pe,"throttle",{enumerable:true,get:function(){return nr.throttle}});var ir=Ae(83435);Object.defineProperty(pe,"throttleTime",{enumerable:true,get:function(){return ir.throttleTime}});var sr=Ae(91566);Object.defineProperty(pe,"throwIfEmpty",{enumerable:true,get:function(){return sr.throwIfEmpty}});var ar=Ae(14643);Object.defineProperty(pe,"timeInterval",{enumerable:true,get:function(){return ar.timeInterval}});var cr=Ae(12051);Object.defineProperty(pe,"timeout",{enumerable:true,get:function(){return cr.timeout}});var ur=Ae(43540);Object.defineProperty(pe,"timeoutWith",{enumerable:true,get:function(){return ur.timeoutWith}});var lr=Ae(75518);Object.defineProperty(pe,"timestamp",{enumerable:true,get:function(){return lr.timestamp}});var dr=Ae(35114);Object.defineProperty(pe,"toArray",{enumerable:true,get:function(){return dr.toArray}});var fr=Ae(98255);Object.defineProperty(pe,"window",{enumerable:true,get:function(){return fr.window}});var pr=Ae(73144);Object.defineProperty(pe,"windowCount",{enumerable:true,get:function(){return pr.windowCount}});var Ar=Ae(2738);Object.defineProperty(pe,"windowTime",{enumerable:true,get:function(){return Ar.windowTime}});var hr=Ae(52741);Object.defineProperty(pe,"windowToggle",{enumerable:true,get:function(){return hr.windowToggle}});var gr=Ae(82645);Object.defineProperty(pe,"windowWhen",{enumerable:true,get:function(){return gr.windowWhen}});var yr=Ae(20501);Object.defineProperty(pe,"withLatestFrom",{enumerable:true,get:function(){return yr.withLatestFrom}});var mr=Ae(17600);Object.defineProperty(pe,"zip",{enumerable:true,get:function(){return mr.zip}});var vr=Ae(92335);Object.defineProperty(pe,"zipAll",{enumerable:true,get:function(){return vr.zipAll}});var br=Ae(95520);Object.defineProperty(pe,"zipWith",{enumerable:true,get:function(){return br.zipWith}})},59318:(R,pe,Ae)=>{"use strict";const he=Ae(22037);const ge=Ae(76224);const ye=Ae(31621);const{env:me}=process;let ve;if(ye("no-color")||ye("no-colors")||ye("color=false")||ye("color=never")){ve=0}else if(ye("color")||ye("colors")||ye("color=true")||ye("color=always")){ve=1}if("FORCE_COLOR"in me){if(me.FORCE_COLOR==="true"){ve=1}else if(me.FORCE_COLOR==="false"){ve=0}else{ve=me.FORCE_COLOR.length===0?1:Math.min(parseInt(me.FORCE_COLOR,10),3)}}function translateLevel(R){if(R===0){return false}return{level:R,hasBasic:true,has256:R>=2,has16m:R>=3}}function supportsColor(R,pe){if(ve===0){return 0}if(ye("color=16m")||ye("color=full")||ye("color=truecolor")){return 3}if(ye("color=256")){return 2}if(R&&!pe&&ve===undefined){return 0}const Ae=ve||0;if(me.TERM==="dumb"){return Ae}if(process.platform==="win32"){const R=he.release().split(".");if(Number(R[0])>=10&&Number(R[2])>=10586){return Number(R[2])>=14931?3:2}return 1}if("CI"in me){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((R=>R in me))||me.CI_NAME==="codeship"){return 1}return Ae}if("TEAMCITY_VERSION"in me){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(me.TEAMCITY_VERSION)?1:0}if(me.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in me){const R=parseInt((me.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(me.TERM_PROGRAM){case"iTerm.app":return R>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(me.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(me.TERM)){return 1}if("COLORTERM"in me){return 1}return Ae}function getSupportLevel(R){const pe=supportsColor(R,R&&R.isTTY);return translateLevel(pe)}R.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,ge.isatty(1))),stderr:translateLevel(supportsColor(true,ge.isatty(2)))}},4351:R=>{var pe;var Ae;var he;var ge;var ye;var me;var ve;var be;var Ee;var Ce;var we;var _e;var Ie;var Se;var Be;var ke;var Oe;var Re;var Qe;var xe;var Pe;var Te;var De;var Ne;var Me;var je;var Fe;var Le;var Ue;var He;var Je;(function(pe){var Ae=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(R){pe(createExporter(Ae,createExporter(R)))}))}else if(true&&typeof R.exports==="object"){pe(createExporter(Ae,createExporter(R.exports)))}else{pe(createExporter(Ae))}function createExporter(R,pe){if(R!==Ae){if(typeof Object.create==="function"){Object.defineProperty(R,"__esModule",{value:true})}else{R.__esModule=true}}return function(Ae,he){return R[Ae]=pe?pe(Ae,he):he}}})((function(R){var We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};pe=function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");We(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)};Ae=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae=0;ve--)if(me=R[ve])ye=(ge<3?me(ye):ge>3?me(pe,Ae,ye):me(pe,Ae))||ye;return ge>3&&ye&&Object.defineProperty(pe,Ae,ye),ye};ye=function(R,pe){return function(Ae,he){pe(Ae,he,R)}};me=function(R,pe,Ae,he,ge,ye){function accept(R){if(R!==void 0&&typeof R!=="function")throw new TypeError("Function expected");return R}var me=he.kind,ve=me==="getter"?"get":me==="setter"?"set":"value";var be=!pe&&R?he["static"]?R:R.prototype:null;var Ee=pe||(be?Object.getOwnPropertyDescriptor(be,he.name):{});var Ce,we=false;for(var _e=Ae.length-1;_e>=0;_e--){var Ie={};for(var Se in he)Ie[Se]=Se==="access"?{}:he[Se];for(var Se in he.access)Ie.access[Se]=he.access[Se];Ie.addInitializer=function(R){if(we)throw new TypeError("Cannot add initializers after decoration has completed");ye.push(accept(R||null))};var Be=(0,Ae[_e])(me==="accessor"?{get:Ee.get,set:Ee.set}:Ee[ve],Ie);if(me==="accessor"){if(Be===void 0)continue;if(Be===null||typeof Be!=="object")throw new TypeError("Object expected");if(Ce=accept(Be.get))Ee.get=Ce;if(Ce=accept(Be.set))Ee.set=Ce;if(Ce=accept(Be.init))ge.unshift(Ce)}else if(Ce=accept(Be)){if(me==="field")ge.unshift(Ce);else Ee[ve]=Ce}}if(be)Object.defineProperty(be,he.name,Ee);we=true};ve=function(R,pe,Ae){var he=arguments.length>2;for(var ge=0;ge0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Be=function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};ke=function(){for(var R=[],pe=0;pe1||resume(R,pe)}))};if(pe)ge[R]=pe(ge[R])}}function resume(R,pe){try{step(he[R](pe))}catch(R){settle(ye[0][3],R)}}function step(R){R.value instanceof Qe?Promise.resolve(R.value.v).then(fulfill,reject):settle(ye[0][2],R)}function fulfill(R){resume("next",R)}function reject(R){resume("throw",R)}function settle(R,pe){if(R(pe),ye.shift(),ye.length)resume(ye[0][0],ye[0][1])}};Pe=function(R){var pe,Ae;return pe={},verb("next"),verb("throw",(function(R){throw R})),verb("return"),pe[Symbol.iterator]=function(){return this},pe;function verb(he,ge){pe[he]=R[he]?function(pe){return(Ae=!Ae)?{value:Qe(R[he](pe)),done:false}:ge?ge(pe):pe}:ge}};Te=function(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var pe=R[Symbol.asyncIterator],Ae;return pe?pe.call(R):(R=typeof Se==="function"?Se(R):R[Symbol.iterator](),Ae={},verb("next"),verb("throw"),verb("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae);function verb(pe){Ae[pe]=R[pe]&&function(Ae){return new Promise((function(he,ge){Ae=R[pe](Ae),settle(he,ge,Ae.done,Ae.value)}))}}function settle(R,pe,Ae,he){Promise.resolve(he).then((function(pe){R({value:pe,done:Ae})}),pe)}};De=function(R,pe){if(Object.defineProperty){Object.defineProperty(R,"raw",{value:pe})}else{R.raw=pe}return R};var Ve=Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe};Ne=function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))Ue(pe,R,Ae);Ve(pe,R);return pe};Me=function(R){return R&&R.__esModule?R:{default:R}};je=function(R,pe,Ae,he){if(Ae==="a"&&!he)throw new TypeError("Private accessor was defined without a getter");if(typeof pe==="function"?R!==pe||!he:!pe.has(R))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Ae==="m"?he:Ae==="a"?he.call(R):he?he.value:pe.get(R)};Fe=function(R,pe,Ae,he,ge){if(he==="m")throw new TypeError("Private method is not writable");if(he==="a"&&!ge)throw new TypeError("Private accessor was defined without a setter");if(typeof pe==="function"?R!==pe||!ge:!pe.has(R))throw new TypeError("Cannot write private member to an object whose class did not declare it");return he==="a"?ge.call(R,Ae):ge?ge.value=Ae:pe.set(R,Ae),Ae};Le=function(R,pe){if(pe===null||typeof pe!=="object"&&typeof pe!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof R==="function"?pe===R:R.has(pe)};He=function(R,pe,Ae){if(pe!==null&&pe!==void 0){if(typeof pe!=="object"&&typeof pe!=="function")throw new TypeError("Object expected.");var he,ge;if(Ae){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");he=pe[Symbol.asyncDispose]}if(he===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");he=pe[Symbol.dispose];if(Ae)ge=he}if(typeof he!=="function")throw new TypeError("Object not disposable.");if(ge)he=function(){try{ge.call(this)}catch(R){return Promise.reject(R)}};R.stack.push({value:pe,dispose:he,async:Ae})}else if(Ae){R.stack.push({async:true})}return pe};var Ke=typeof SuppressedError==="function"?SuppressedError:function(R,pe,Ae){var he=new Error(Ae);return he.name="SuppressedError",he.error=R,he.suppressed=pe,he};Je=function(R){function fail(pe){R.error=R.hasError?new Ke(pe,R.error,"An error was suppressed during disposal."):pe;R.hasError=true}function next(){while(R.stack.length){var pe=R.stack.pop();try{var Ae=pe.dispose&&pe.dispose.call(pe.value);if(pe.async)return Promise.resolve(Ae).then(next,(function(R){fail(R);return next()}))}catch(R){fail(R)}}if(R.hasError)throw R.error}return next()};R("__extends",pe);R("__assign",Ae);R("__rest",he);R("__decorate",ge);R("__param",ye);R("__esDecorate",me);R("__runInitializers",ve);R("__propKey",be);R("__setFunctionName",Ee);R("__metadata",Ce);R("__awaiter",we);R("__generator",_e);R("__exportStar",Ie);R("__createBinding",Ue);R("__values",Se);R("__read",Be);R("__spread",ke);R("__spreadArrays",Oe);R("__spreadArray",Re);R("__await",Qe);R("__asyncGenerator",xe);R("__asyncDelegator",Pe);R("__asyncValues",Te);R("__makeTemplateObject",De);R("__importStar",Ne);R("__importDefault",Me);R("__classPrivateFieldGet",je);R("__classPrivateFieldSet",Fe);R("__classPrivateFieldIn",Le);R("__addDisposableResource",He);R("__disposeResources",Je)}))},21701:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);const ge=Ae(87120);const ye=Ae(2032);const me=Ae(87160);function autoInjectable(){return function(R){const pe=he.getParamInfo(R);return class extends R{constructor(...Ae){super(...Ae.concat(pe.slice(Ae.length).map(((pe,he)=>{try{if(ye.isTokenDescriptor(pe)){if(ye.isTransformDescriptor(pe)){return pe.multiple?ge.instance.resolve(pe.transform).transform(ge.instance.resolveAll(pe.token),...pe.transformArgs):ge.instance.resolve(pe.transform).transform(ge.instance.resolve(pe.token),...pe.transformArgs)}else{return pe.multiple?ge.instance.resolveAll(pe.token):ge.instance.resolve(pe.token)}}else if(ye.isTransformDescriptor(pe)){return ge.instance.resolve(pe.transform).transform(ge.instance.resolve(pe.token),...pe.transformArgs)}return ge.instance.resolve(pe)}catch(pe){const ge=he+Ae.length;throw new Error(me.formatErrorCtor(R,ge,pe))}}))))}}}}pe["default"]=autoInjectable},16840:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(21701);Object.defineProperty(pe,"autoInjectable",{enumerable:true,get:function(){return he.default}});var ge=Ae(92468);Object.defineProperty(pe,"inject",{enumerable:true,get:function(){return ge.default}});var ye=Ae(9394);Object.defineProperty(pe,"injectable",{enumerable:true,get:function(){return ye.default}});var me=Ae(79297);Object.defineProperty(pe,"registry",{enumerable:true,get:function(){return me.default}});var ve=Ae(93384);Object.defineProperty(pe,"singleton",{enumerable:true,get:function(){return ve.default}});var be=Ae(60754);Object.defineProperty(pe,"injectAll",{enumerable:true,get:function(){return be.default}});var Ee=Ae(35777);Object.defineProperty(pe,"injectAllWithTransform",{enumerable:true,get:function(){return Ee.default}});var Ce=Ae(49882);Object.defineProperty(pe,"injectWithTransform",{enumerable:true,get:function(){return Ce.default}});var we=Ae(92072);Object.defineProperty(pe,"scoped",{enumerable:true,get:function(){return we.default}})},35777:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);function injectAllWithTransform(R,pe,...Ae){const ge={token:R,multiple:true,transform:pe,transformArgs:Ae};return he.defineInjectionTokenMetadata(ge)}pe["default"]=injectAllWithTransform},60754:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);function injectAll(R){const pe={token:R,multiple:true};return he.defineInjectionTokenMetadata(pe)}pe["default"]=injectAll},49882:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);function injectWithTransform(R,pe,...Ae){return he.defineInjectionTokenMetadata(R,{transformToken:pe,args:Ae})}pe["default"]=injectWithTransform},92468:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);function inject(R){return he.defineInjectionTokenMetadata(R)}pe["default"]=inject},9394:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);const ge=Ae(87120);function injectable(){return function(R){ge.typeInfo.set(R,he.getParamInfo(R))}}pe["default"]=injectable},79297:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(61470);const ge=Ae(87120);function registry(R=[]){return function(pe){R.forEach((R=>{var{token:pe,options:Ae}=R,ye=he.__rest(R,["token","options"]);return ge.instance.register(pe,ye,Ae)}));return pe}}pe["default"]=registry},92072:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(9394);const ge=Ae(87120);function scoped(R,pe){return function(Ae){he.default()(Ae);ge.instance.register(pe||Ae,Ae,{lifecycle:R})}}pe["default"]=scoped},93384:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(9394);const ge=Ae(87120);function singleton(){return function(R){he.default()(R);ge.instance.registerSingleton(R)}}pe["default"]=singleton},87120:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.instance=pe.typeInfo=void 0;const he=Ae(61470);const ge=Ae(11372);const ye=Ae(59177);const me=Ae(2032);const ve=Ae(75941);const be=Ae(56501);const Ee=Ae(64330);const Ce=Ae(87160);const we=Ae(21782);const _e=Ae(358);const Ie=Ae(21780);pe.typeInfo=new Map;class InternalDependencyContainer{constructor(R){this.parent=R;this._registry=new ve.default;this.interceptors=new Ie.default;this.disposed=false;this.disposables=new Set}register(R,pe,Ae={lifecycle:be.default.Transient}){this.ensureNotDisposed();let he;if(!ye.isProvider(pe)){he={useClass:pe}}else{he=pe}if(ge.isTokenProvider(he)){const pe=[R];let Ae=he;while(Ae!=null){const R=Ae.useToken;if(pe.includes(R)){throw new Error(`Token registration cycle detected! ${[...pe,R].join(" -> ")}`)}pe.push(R);const he=this._registry.get(R);if(he&&ge.isTokenProvider(he.provider)){Ae=he.provider}else{Ae=null}}}if(Ae.lifecycle===be.default.Singleton||Ae.lifecycle==be.default.ContainerScoped||Ae.lifecycle==be.default.ResolutionScoped){if(ge.isValueProvider(he)||ge.isFactoryProvider(he)){throw new Error(`Cannot use lifecycle "${be.default[Ae.lifecycle]}" with ValueProviders or FactoryProviders`)}}this._registry.set(R,{provider:he,options:Ae});return this}registerType(R,pe){this.ensureNotDisposed();if(ge.isNormalToken(pe)){return this.register(R,{useToken:pe})}return this.register(R,{useClass:pe})}registerInstance(R,pe){this.ensureNotDisposed();return this.register(R,{useValue:pe})}registerSingleton(R,pe){this.ensureNotDisposed();if(ge.isNormalToken(R)){if(ge.isNormalToken(pe)){return this.register(R,{useToken:pe},{lifecycle:be.default.Singleton})}else if(pe){return this.register(R,{useClass:pe},{lifecycle:be.default.Singleton})}throw new Error('Cannot register a type name as a singleton without a "to" token')}let Ae=R;if(pe&&!ge.isNormalToken(pe)){Ae=pe}return this.register(R,{useClass:Ae},{lifecycle:be.default.Singleton})}resolve(R,pe=new Ee.default){this.ensureNotDisposed();const Ae=this.getRegistration(R);if(!Ae&&ge.isNormalToken(R)){throw new Error(`Attempted to resolve unregistered dependency token: "${R.toString()}"`)}this.executePreResolutionInterceptor(R,"Single");if(Ae){const he=this.resolveRegistration(Ae,pe);this.executePostResolutionInterceptor(R,he,"Single");return he}if(me.isConstructorToken(R)){const Ae=this.construct(R,pe);this.executePostResolutionInterceptor(R,Ae,"Single");return Ae}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")}executePreResolutionInterceptor(R,pe){if(this.interceptors.preResolution.has(R)){const Ae=[];for(const he of this.interceptors.preResolution.getAll(R)){if(he.options.frequency!="Once"){Ae.push(he)}he.callback(R,pe)}this.interceptors.preResolution.setAll(R,Ae)}}executePostResolutionInterceptor(R,pe,Ae){if(this.interceptors.postResolution.has(R)){const he=[];for(const ge of this.interceptors.postResolution.getAll(R)){if(ge.options.frequency!="Once"){he.push(ge)}ge.callback(R,pe,Ae)}this.interceptors.postResolution.setAll(R,he)}}resolveRegistration(R,pe){this.ensureNotDisposed();if(R.options.lifecycle===be.default.ResolutionScoped&&pe.scopedResolutions.has(R)){return pe.scopedResolutions.get(R)}const Ae=R.options.lifecycle===be.default.Singleton;const he=R.options.lifecycle===be.default.ContainerScoped;const ye=Ae||he;let me;if(ge.isValueProvider(R.provider)){me=R.provider.useValue}else if(ge.isTokenProvider(R.provider)){me=ye?R.instance||(R.instance=this.resolve(R.provider.useToken,pe)):this.resolve(R.provider.useToken,pe)}else if(ge.isClassProvider(R.provider)){me=ye?R.instance||(R.instance=this.construct(R.provider.useClass,pe)):this.construct(R.provider.useClass,pe)}else if(ge.isFactoryProvider(R.provider)){me=R.provider.useFactory(this)}else{me=this.construct(R.provider,pe)}if(R.options.lifecycle===be.default.ResolutionScoped){pe.scopedResolutions.set(R,me)}return me}resolveAll(R,pe=new Ee.default){this.ensureNotDisposed();const Ae=this.getAllRegistrations(R);if(!Ae&&ge.isNormalToken(R)){throw new Error(`Attempted to resolve unregistered dependency token: "${R.toString()}"`)}this.executePreResolutionInterceptor(R,"All");if(Ae){const he=Ae.map((R=>this.resolveRegistration(R,pe)));this.executePostResolutionInterceptor(R,he,"All");return he}const he=[this.construct(R,pe)];this.executePostResolutionInterceptor(R,he,"All");return he}isRegistered(R,pe=false){this.ensureNotDisposed();return this._registry.has(R)||pe&&(this.parent||false)&&this.parent.isRegistered(R,true)}reset(){this.ensureNotDisposed();this._registry.clear();this.interceptors.preResolution.clear();this.interceptors.postResolution.clear()}clearInstances(){this.ensureNotDisposed();for(const[R,pe]of this._registry.entries()){this._registry.setAll(R,pe.filter((R=>!ge.isValueProvider(R.provider))).map((R=>{R.instance=undefined;return R})))}}createChildContainer(){this.ensureNotDisposed();const R=new InternalDependencyContainer(this);for(const[pe,Ae]of this._registry.entries()){if(Ae.some((({options:R})=>R.lifecycle===be.default.ContainerScoped))){R._registry.setAll(pe,Ae.map((R=>{if(R.options.lifecycle===be.default.ContainerScoped){return{provider:R.provider,options:R.options}}return R})))}}return R}beforeResolution(R,pe,Ae={frequency:"Always"}){this.interceptors.preResolution.set(R,{callback:pe,options:Ae})}afterResolution(R,pe,Ae={frequency:"Always"}){this.interceptors.postResolution.set(R,{callback:pe,options:Ae})}dispose(){return he.__awaiter(this,void 0,void 0,(function*(){this.disposed=true;const R=[];this.disposables.forEach((pe=>{const Ae=pe.dispose();if(Ae){R.push(Ae)}}));yield Promise.all(R)}))}getRegistration(R){if(this.isRegistered(R)){return this._registry.get(R)}if(this.parent){return this.parent.getRegistration(R)}return null}getAllRegistrations(R){if(this.isRegistered(R)){return this._registry.getAll(R)}if(this.parent){return this.parent.getAllRegistrations(R)}return null}construct(R,Ae){if(R instanceof we.DelayedConstructor){return R.createProxy((R=>this.resolve(R,Ae)))}const he=(()=>{const he=pe.typeInfo.get(R);if(!he||he.length===0){if(R.length===0){return new R}else{throw new Error(`TypeInfo not known for "${R.name}"`)}}const ge=he.map(this.resolveParams(Ae,R));return new R(...ge)})();if(_e.isDisposable(he)){this.disposables.add(he)}return he}resolveParams(R,pe){return(Ae,he)=>{try{if(me.isTokenDescriptor(Ae)){if(me.isTransformDescriptor(Ae)){return Ae.multiple?this.resolve(Ae.transform).transform(this.resolveAll(Ae.token),...Ae.transformArgs):this.resolve(Ae.transform).transform(this.resolve(Ae.token,R),...Ae.transformArgs)}else{return Ae.multiple?this.resolveAll(Ae.token):this.resolve(Ae.token,R)}}else if(me.isTransformDescriptor(Ae)){return this.resolve(Ae.transform,R).transform(this.resolve(Ae.token,R),...Ae.transformArgs)}return this.resolve(Ae,R)}catch(R){throw new Error(Ce.formatErrorCtor(pe,he,R))}}}ensureNotDisposed(){if(this.disposed){throw new Error("This container has been disposed, you cannot interact with a disposed container")}}}pe.instance=new InternalDependencyContainer;pe["default"]=pe.instance},87160:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.formatErrorCtor=void 0;function formatDependency(R,pe){if(R===null){return`at position #${pe}`}const Ae=R.split(",")[pe].trim();return`"${Ae}" at position #${pe}`}function composeErrorMessage(R,pe,Ae=" "){return[R,...pe.message.split("\n").map((R=>Ae+R))].join("\n")}function formatErrorCtor(R,pe,Ae){const[,he=null]=R.toString().match(/constructor\(([\w, ]+)\)/)||[];const ge=formatDependency(he,pe);return composeErrorMessage(`Cannot inject the dependency ${ge} of "${R.name}" constructor. Reason:`,Ae)}pe.formatErrorCtor=formatErrorCtor},16150:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(20675);Object.defineProperty(pe,"instanceCachingFactory",{enumerable:true,get:function(){return he.default}});var ge=Ae(41368);Object.defineProperty(pe,"instancePerContainerCachingFactory",{enumerable:true,get:function(){return ge.default}});var ye=Ae(57418);Object.defineProperty(pe,"predicateAwareClassFactory",{enumerable:true,get:function(){return ye.default}})},20675:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function instanceCachingFactory(R){let pe;return Ae=>{if(pe==undefined){pe=R(Ae)}return pe}}pe["default"]=instanceCachingFactory},41368:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function instancePerContainerCachingFactory(R){const pe=new WeakMap;return Ae=>{let he=pe.get(Ae);if(he==undefined){he=R(Ae);pe.set(Ae,he)}return he}}pe["default"]=instancePerContainerCachingFactory},57418:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function predicateAwareClassFactory(R,pe,Ae,he=true){let ge;let ye;return me=>{const ve=R(me);if(!he||ye!==ve){if(ye=ve){ge=me.resolve(pe)}else{ge=me.resolve(Ae)}}return ge}}pe["default"]=predicateAwareClassFactory},71069:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(61470);if(typeof Reflect==="undefined"||!Reflect.getMetadata){throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`)}var ge=Ae(46907);Object.defineProperty(pe,"Lifecycle",{enumerable:true,get:function(){return ge.Lifecycle}});he.__exportStar(Ae(16840),pe);he.__exportStar(Ae(16150),pe);he.__exportStar(Ae(11372),pe);var ye=Ae(21782);Object.defineProperty(pe,"delay",{enumerable:true,get:function(){return ye.delay}});var me=Ae(87120);Object.defineProperty(pe,"container",{enumerable:true,get:function(){return me.instance}})},21780:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PostResolutionInterceptors=pe.PreResolutionInterceptors=void 0;const he=Ae(64653);class PreResolutionInterceptors extends he.default{}pe.PreResolutionInterceptors=PreResolutionInterceptors;class PostResolutionInterceptors extends he.default{}pe.PostResolutionInterceptors=PostResolutionInterceptors;class Interceptors{constructor(){this.preResolution=new PreResolutionInterceptors;this.postResolution=new PostResolutionInterceptors}}pe["default"]=Interceptors},21782:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.delay=pe.DelayedConstructor=void 0;class DelayedConstructor{constructor(R){this.wrap=R;this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}createProxy(R){const pe={};let Ae=false;let he;const delayedObject=()=>{if(!Ae){he=R(this.wrap());Ae=true}return he};return new Proxy(pe,this.createHandler(delayedObject))}createHandler(R){const pe={};const install=Ae=>{pe[Ae]=(...pe)=>{pe[0]=R();const he=Reflect[Ae];return he(...pe)}};this.reflectMethods.forEach(install);return pe}}pe.DelayedConstructor=DelayedConstructor;function delay(R){if(typeof R==="undefined"){throw new Error("Attempt to `delay` undefined. Constructor must be wrapped in a callback")}return new DelayedConstructor(R)}pe.delay=delay},43751:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isClassProvider=void 0;function isClassProvider(R){return!!R.useClass}pe.isClassProvider=isClassProvider},55874:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isFactoryProvider=void 0;function isFactoryProvider(R){return!!R.useFactory}pe.isFactoryProvider=isFactoryProvider},11372:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(43751);Object.defineProperty(pe,"isClassProvider",{enumerable:true,get:function(){return he.isClassProvider}});var ge=Ae(55874);Object.defineProperty(pe,"isFactoryProvider",{enumerable:true,get:function(){return ge.isFactoryProvider}});var ye=Ae(2032);Object.defineProperty(pe,"isNormalToken",{enumerable:true,get:function(){return ye.isNormalToken}});var me=Ae(96627);Object.defineProperty(pe,"isTokenProvider",{enumerable:true,get:function(){return me.isTokenProvider}});var ve=Ae(76753);Object.defineProperty(pe,"isValueProvider",{enumerable:true,get:function(){return ve.isValueProvider}})},2032:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isConstructorToken=pe.isTransformDescriptor=pe.isTokenDescriptor=pe.isNormalToken=void 0;const he=Ae(21782);function isNormalToken(R){return typeof R==="string"||typeof R==="symbol"}pe.isNormalToken=isNormalToken;function isTokenDescriptor(R){return typeof R==="object"&&"token"in R&&"multiple"in R}pe.isTokenDescriptor=isTokenDescriptor;function isTransformDescriptor(R){return typeof R==="object"&&"token"in R&&"transform"in R}pe.isTransformDescriptor=isTransformDescriptor;function isConstructorToken(R){return typeof R==="function"||R instanceof he.DelayedConstructor}pe.isConstructorToken=isConstructorToken},59177:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isProvider=void 0;const he=Ae(43751);const ge=Ae(76753);const ye=Ae(96627);const me=Ae(55874);function isProvider(R){return he.isClassProvider(R)||ge.isValueProvider(R)||ye.isTokenProvider(R)||me.isFactoryProvider(R)}pe.isProvider=isProvider},96627:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isTokenProvider=void 0;function isTokenProvider(R){return!!R.useToken}pe.isTokenProvider=isTokenProvider},76753:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isValueProvider=void 0;function isValueProvider(R){return R.useValue!=undefined}pe.isValueProvider=isValueProvider},46939:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.defineInjectionTokenMetadata=pe.getParamInfo=pe.INJECTION_TOKEN_METADATA_KEY=void 0;pe.INJECTION_TOKEN_METADATA_KEY="injectionTokens";function getParamInfo(R){const Ae=Reflect.getMetadata("design:paramtypes",R)||[];const he=Reflect.getOwnMetadata(pe.INJECTION_TOKEN_METADATA_KEY,R)||{};Object.keys(he).forEach((R=>{Ae[+R]=he[R]}));return Ae}pe.getParamInfo=getParamInfo;function defineInjectionTokenMetadata(R,Ae){return function(he,ge,ye){const me=Reflect.getOwnMetadata(pe.INJECTION_TOKEN_METADATA_KEY,he)||{};me[ye]=Ae?{token:R,transform:Ae.transformToken,transformArgs:Ae.args||[]}:R;Reflect.defineMetadata(pe.INJECTION_TOKEN_METADATA_KEY,me,he)}}pe.defineInjectionTokenMetadata=defineInjectionTokenMetadata},64653:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});class RegistryBase{constructor(){this._registryMap=new Map}entries(){return this._registryMap.entries()}getAll(R){this.ensure(R);return this._registryMap.get(R)}get(R){this.ensure(R);const pe=this._registryMap.get(R);return pe[pe.length-1]||null}set(R,pe){this.ensure(R);this._registryMap.get(R).push(pe)}setAll(R,pe){this._registryMap.set(R,pe)}has(R){this.ensure(R);return this._registryMap.get(R).length>0}clear(){this._registryMap.clear()}ensure(R){if(!this._registryMap.has(R)){this._registryMap.set(R,[])}}}pe["default"]=RegistryBase},75941:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64653);class Registry extends he.default{}pe["default"]=Registry},64330:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});class ResolutionContext{constructor(){this.scopedResolutions=new Map}}pe["default"]=ResolutionContext},358:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isDisposable=void 0;function isDisposable(R){if(typeof R.dispose!=="function")return false;const pe=R.dispose;if(pe.length>0){return false}return true}pe.isDisposable=isDisposable},46907:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(56501);Object.defineProperty(pe,"Lifecycle",{enumerable:true,get:function(){return he.default}})},56501:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae;(function(R){R[R["Transient"]=0]="Transient";R[R["Singleton"]=1]="Singleton";R[R["ResolutionScoped"]=2]="ResolutionScoped";R[R["ContainerScoped"]=3]="ContainerScoped"})(Ae||(Ae={}));pe["default"]=Ae},61470:R=>{ + */const he=Ae(82282);const ge=Ae(23153);R.exports=class URDNA2012Sync extends ge{constructor(){super();this.name="URGNA2012";this.createMessageDigest=()=>new he("sha1")}modifyFirstDegreeComponent(R,pe,Ae){if(pe.termType!=="BlankNode"){return pe}if(Ae==="graph"){return{termType:"BlankNode",value:"_:g"}}return{termType:"BlankNode",value:pe.value===R?"_:a":"_:z"}}getRelatedPredicate(R){return R.predicate.value}createHashToRelated(R,pe){const Ae=new Map;const he=this.blankNodeInfo.get(R).quads;for(const ge of he){let he;let ye;if(ge.subject.termType==="BlankNode"&&ge.subject.value!==R){ye=ge.subject.value;he="p"}else if(ge.object.termType==="BlankNode"&&ge.object.value!==R){ye=ge.object.value;he="r"}else{continue}const me=this.hashRelatedBlankNode(ye,ge,pe,he);const ve=Ae.get(me);if(ve){ve.push(ye)}else{Ae.set(me,[ye])}}return Ae}}},26874:(R,pe,Ae)=>{"use strict";const he=Ae(78721);const ge=Ae(61100);const ye=Ae(23153);const me=Ae(46843);let ve;try{ve=Ae(12276)}catch(R){}function _inputToDataset(R){if(!Array.isArray(R)){return pe.NQuads.legacyDatasetToQuads(R)}return R}pe.NQuads=Ae(31e3);pe.IdentifierIssuer=Ae(11239);pe._rdfCanonizeNative=function(R){if(R){ve=R}return ve};pe.canonize=async function(R,pe){const Ae=_inputToDataset(R,pe);if(pe.useNative){if(!ve){throw new Error("rdf-canonize-native not available")}if(pe.createMessageDigest){throw new Error('"createMessageDigest" cannot be used with "useNative".')}return new Promise(((R,he)=>ve.canonize(Ae,pe,((pe,Ae)=>pe?he(pe):R(Ae)))))}if(pe.algorithm==="URDNA2015"){return new he(pe).main(Ae)}if(pe.algorithm==="URGNA2012"){if(pe.createMessageDigest){throw new Error('"createMessageDigest" cannot be used with "URGNA2012".')}return new ge(pe).main(Ae)}if(!("algorithm"in pe)){throw new Error("No RDF Dataset Canonicalization algorithm specified.")}throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+pe.algorithm)};pe._canonizeSync=function(R,pe){const Ae=_inputToDataset(R,pe);if(pe.useNative){if(!ve){throw new Error("rdf-canonize-native not available")}if(pe.createMessageDigest){throw new Error('"createMessageDigest" cannot be used with "useNative".')}return ve.canonizeSync(Ae,pe)}if(pe.algorithm==="URDNA2015"){return new ye(pe).main(Ae)}if(pe.algorithm==="URGNA2012"){if(pe.createMessageDigest){throw new Error('"createMessageDigest" cannot be used with "URGNA2012".')}return new me(pe).main(Ae)}if(!("algorithm"in pe)){throw new Error("No RDF Dataset Canonicalization algorithm specified.")}throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+pe.algorithm)}},1752:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;Object.defineProperty(R,he,{enumerable:true,get:function(){return pe[Ae]}})}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});pe.interval=pe.iif=pe.generate=pe.fromEventPattern=pe.fromEvent=pe.from=pe.forkJoin=pe.empty=pe.defer=pe.connectable=pe.concat=pe.combineLatest=pe.bindNodeCallback=pe.bindCallback=pe.UnsubscriptionError=pe.TimeoutError=pe.SequenceError=pe.ObjectUnsubscribedError=pe.NotFoundError=pe.EmptyError=pe.ArgumentOutOfRangeError=pe.firstValueFrom=pe.lastValueFrom=pe.isObservable=pe.identity=pe.noop=pe.pipe=pe.NotificationKind=pe.Notification=pe.Subscriber=pe.Subscription=pe.Scheduler=pe.VirtualAction=pe.VirtualTimeScheduler=pe.animationFrameScheduler=pe.animationFrame=pe.queueScheduler=pe.queue=pe.asyncScheduler=pe.async=pe.asapScheduler=pe.asap=pe.AsyncSubject=pe.ReplaySubject=pe.BehaviorSubject=pe.Subject=pe.animationFrames=pe.observable=pe.ConnectableObservable=pe.Observable=void 0;pe.filter=pe.expand=pe.exhaustMap=pe.exhaustAll=pe.exhaust=pe.every=pe.endWith=pe.elementAt=pe.distinctUntilKeyChanged=pe.distinctUntilChanged=pe.distinct=pe.dematerialize=pe.delayWhen=pe.delay=pe.defaultIfEmpty=pe.debounceTime=pe.debounce=pe.count=pe.connect=pe.concatWith=pe.concatMapTo=pe.concatMap=pe.concatAll=pe.combineLatestWith=pe.combineLatestAll=pe.combineAll=pe.catchError=pe.bufferWhen=pe.bufferToggle=pe.bufferTime=pe.bufferCount=pe.buffer=pe.auditTime=pe.audit=pe.config=pe.NEVER=pe.EMPTY=pe.scheduled=pe.zip=pe.using=pe.timer=pe.throwError=pe.range=pe.race=pe.partition=pe.pairs=pe.onErrorResumeNext=pe.of=pe.never=pe.merge=void 0;pe.switchMap=pe.switchAll=pe.subscribeOn=pe.startWith=pe.skipWhile=pe.skipUntil=pe.skipLast=pe.skip=pe.single=pe.shareReplay=pe.share=pe.sequenceEqual=pe.scan=pe.sampleTime=pe.sample=pe.refCount=pe.retryWhen=pe.retry=pe.repeatWhen=pe.repeat=pe.reduce=pe.raceWith=pe.publishReplay=pe.publishLast=pe.publishBehavior=pe.publish=pe.pluck=pe.pairwise=pe.onErrorResumeNextWith=pe.observeOn=pe.multicast=pe.min=pe.mergeWith=pe.mergeScan=pe.mergeMapTo=pe.mergeMap=pe.flatMap=pe.mergeAll=pe.max=pe.materialize=pe.mapTo=pe.map=pe.last=pe.isEmpty=pe.ignoreElements=pe.groupBy=pe.first=pe.findIndex=pe.find=pe.finalize=void 0;pe.zipWith=pe.zipAll=pe.withLatestFrom=pe.windowWhen=pe.windowToggle=pe.windowTime=pe.windowCount=pe.window=pe.toArray=pe.timestamp=pe.timeoutWith=pe.timeout=pe.timeInterval=pe.throwIfEmpty=pe.throttleTime=pe.throttle=pe.tap=pe.takeWhile=pe.takeUntil=pe.takeLast=pe.take=pe.switchScan=pe.switchMapTo=void 0;var ye=Ae(53014);Object.defineProperty(pe,"Observable",{enumerable:true,get:function(){return ye.Observable}});var me=Ae(30420);Object.defineProperty(pe,"ConnectableObservable",{enumerable:true,get:function(){return me.ConnectableObservable}});var ve=Ae(17186);Object.defineProperty(pe,"observable",{enumerable:true,get:function(){return ve.observable}});var be=Ae(38197);Object.defineProperty(pe,"animationFrames",{enumerable:true,get:function(){return be.animationFrames}});var Ee=Ae(49944);Object.defineProperty(pe,"Subject",{enumerable:true,get:function(){return Ee.Subject}});var we=Ae(23473);Object.defineProperty(pe,"BehaviorSubject",{enumerable:true,get:function(){return we.BehaviorSubject}});var Ce=Ae(22351);Object.defineProperty(pe,"ReplaySubject",{enumerable:true,get:function(){return Ce.ReplaySubject}});var _e=Ae(9747);Object.defineProperty(pe,"AsyncSubject",{enumerable:true,get:function(){return _e.AsyncSubject}});var Ie=Ae(43905);Object.defineProperty(pe,"asap",{enumerable:true,get:function(){return Ie.asap}});Object.defineProperty(pe,"asapScheduler",{enumerable:true,get:function(){return Ie.asapScheduler}});var Se=Ae(76072);Object.defineProperty(pe,"async",{enumerable:true,get:function(){return Se.async}});Object.defineProperty(pe,"asyncScheduler",{enumerable:true,get:function(){return Se.asyncScheduler}});var Be=Ae(82059);Object.defineProperty(pe,"queue",{enumerable:true,get:function(){return Be.queue}});Object.defineProperty(pe,"queueScheduler",{enumerable:true,get:function(){return Be.queueScheduler}});var ke=Ae(51359);Object.defineProperty(pe,"animationFrame",{enumerable:true,get:function(){return ke.animationFrame}});Object.defineProperty(pe,"animationFrameScheduler",{enumerable:true,get:function(){return ke.animationFrameScheduler}});var Oe=Ae(75348);Object.defineProperty(pe,"VirtualTimeScheduler",{enumerable:true,get:function(){return Oe.VirtualTimeScheduler}});Object.defineProperty(pe,"VirtualAction",{enumerable:true,get:function(){return Oe.VirtualAction}});var Re=Ae(76243);Object.defineProperty(pe,"Scheduler",{enumerable:true,get:function(){return Re.Scheduler}});var Qe=Ae(79548);Object.defineProperty(pe,"Subscription",{enumerable:true,get:function(){return Qe.Subscription}});var xe=Ae(67121);Object.defineProperty(pe,"Subscriber",{enumerable:true,get:function(){return xe.Subscriber}});var Pe=Ae(12241);Object.defineProperty(pe,"Notification",{enumerable:true,get:function(){return Pe.Notification}});Object.defineProperty(pe,"NotificationKind",{enumerable:true,get:function(){return Pe.NotificationKind}});var Te=Ae(49587);Object.defineProperty(pe,"pipe",{enumerable:true,get:function(){return Te.pipe}});var De=Ae(11642);Object.defineProperty(pe,"noop",{enumerable:true,get:function(){return De.noop}});var Ne=Ae(60283);Object.defineProperty(pe,"identity",{enumerable:true,get:function(){return Ne.identity}});var Me=Ae(72259);Object.defineProperty(pe,"isObservable",{enumerable:true,get:function(){return Me.isObservable}});var je=Ae(49713);Object.defineProperty(pe,"lastValueFrom",{enumerable:true,get:function(){return je.lastValueFrom}});var Fe=Ae(19369);Object.defineProperty(pe,"firstValueFrom",{enumerable:true,get:function(){return Fe.firstValueFrom}});var Le=Ae(49796);Object.defineProperty(pe,"ArgumentOutOfRangeError",{enumerable:true,get:function(){return Le.ArgumentOutOfRangeError}});var Ue=Ae(99391);Object.defineProperty(pe,"EmptyError",{enumerable:true,get:function(){return Ue.EmptyError}});var He=Ae(74431);Object.defineProperty(pe,"NotFoundError",{enumerable:true,get:function(){return He.NotFoundError}});var Je=Ae(95266);Object.defineProperty(pe,"ObjectUnsubscribedError",{enumerable:true,get:function(){return Je.ObjectUnsubscribedError}});var We=Ae(49048);Object.defineProperty(pe,"SequenceError",{enumerable:true,get:function(){return We.SequenceError}});var Ve=Ae(12051);Object.defineProperty(pe,"TimeoutError",{enumerable:true,get:function(){return Ve.TimeoutError}});var Ke=Ae(56776);Object.defineProperty(pe,"UnsubscriptionError",{enumerable:true,get:function(){return Ke.UnsubscriptionError}});var Ge=Ae(16949);Object.defineProperty(pe,"bindCallback",{enumerable:true,get:function(){return Ge.bindCallback}});var Ye=Ae(51150);Object.defineProperty(pe,"bindNodeCallback",{enumerable:true,get:function(){return Ye.bindNodeCallback}});var qe=Ae(89958);Object.defineProperty(pe,"combineLatest",{enumerable:true,get:function(){return qe.combineLatest}});var $e=Ae(4675);Object.defineProperty(pe,"concat",{enumerable:true,get:function(){return $e.concat}});var ze=Ae(13152);Object.defineProperty(pe,"connectable",{enumerable:true,get:function(){return ze.connectable}});var Xe=Ae(27672);Object.defineProperty(pe,"defer",{enumerable:true,get:function(){return Xe.defer}});var Ze=Ae(70437);Object.defineProperty(pe,"empty",{enumerable:true,get:function(){return Ze.empty}});var et=Ae(47358);Object.defineProperty(pe,"forkJoin",{enumerable:true,get:function(){return et.forkJoin}});var tt=Ae(18309);Object.defineProperty(pe,"from",{enumerable:true,get:function(){return tt.from}});var rt=Ae(93238);Object.defineProperty(pe,"fromEvent",{enumerable:true,get:function(){return rt.fromEvent}});var nt=Ae(65680);Object.defineProperty(pe,"fromEventPattern",{enumerable:true,get:function(){return nt.fromEventPattern}});var it=Ae(52668);Object.defineProperty(pe,"generate",{enumerable:true,get:function(){return it.generate}});var ot=Ae(26514);Object.defineProperty(pe,"iif",{enumerable:true,get:function(){return ot.iif}});var st=Ae(20029);Object.defineProperty(pe,"interval",{enumerable:true,get:function(){return st.interval}});var at=Ae(75122);Object.defineProperty(pe,"merge",{enumerable:true,get:function(){return at.merge}});var ct=Ae(6228);Object.defineProperty(pe,"never",{enumerable:true,get:function(){return ct.never}});var ut=Ae(72163);Object.defineProperty(pe,"of",{enumerable:true,get:function(){return ut.of}});var lt=Ae(16089);Object.defineProperty(pe,"onErrorResumeNext",{enumerable:true,get:function(){return lt.onErrorResumeNext}});var dt=Ae(30505);Object.defineProperty(pe,"pairs",{enumerable:true,get:function(){return dt.pairs}});var ft=Ae(15506);Object.defineProperty(pe,"partition",{enumerable:true,get:function(){return ft.partition}});var pt=Ae(16940);Object.defineProperty(pe,"race",{enumerable:true,get:function(){return pt.race}});var At=Ae(88538);Object.defineProperty(pe,"range",{enumerable:true,get:function(){return At.range}});var ht=Ae(66381);Object.defineProperty(pe,"throwError",{enumerable:true,get:function(){return ht.throwError}});var gt=Ae(59757);Object.defineProperty(pe,"timer",{enumerable:true,get:function(){return gt.timer}});var yt=Ae(8445);Object.defineProperty(pe,"using",{enumerable:true,get:function(){return yt.using}});var mt=Ae(62504);Object.defineProperty(pe,"zip",{enumerable:true,get:function(){return mt.zip}});var vt=Ae(6151);Object.defineProperty(pe,"scheduled",{enumerable:true,get:function(){return vt.scheduled}});var bt=Ae(70437);Object.defineProperty(pe,"EMPTY",{enumerable:true,get:function(){return bt.EMPTY}});var Et=Ae(6228);Object.defineProperty(pe,"NEVER",{enumerable:true,get:function(){return Et.NEVER}});ge(Ae(36639),pe);var wt=Ae(92233);Object.defineProperty(pe,"config",{enumerable:true,get:function(){return wt.config}});var Ct=Ae(82704);Object.defineProperty(pe,"audit",{enumerable:true,get:function(){return Ct.audit}});var _t=Ae(18780);Object.defineProperty(pe,"auditTime",{enumerable:true,get:function(){return _t.auditTime}});var It=Ae(34253);Object.defineProperty(pe,"buffer",{enumerable:true,get:function(){return It.buffer}});var St=Ae(17253);Object.defineProperty(pe,"bufferCount",{enumerable:true,get:function(){return St.bufferCount}});var Bt=Ae(73102);Object.defineProperty(pe,"bufferTime",{enumerable:true,get:function(){return Bt.bufferTime}});var kt=Ae(83781);Object.defineProperty(pe,"bufferToggle",{enumerable:true,get:function(){return kt.bufferToggle}});var Ot=Ae(82855);Object.defineProperty(pe,"bufferWhen",{enumerable:true,get:function(){return Ot.bufferWhen}});var Rt=Ae(37765);Object.defineProperty(pe,"catchError",{enumerable:true,get:function(){return Rt.catchError}});var Qt=Ae(88817);Object.defineProperty(pe,"combineAll",{enumerable:true,get:function(){return Qt.combineAll}});var xt=Ae(91063);Object.defineProperty(pe,"combineLatestAll",{enumerable:true,get:function(){return xt.combineLatestAll}});var Pt=Ae(19044);Object.defineProperty(pe,"combineLatestWith",{enumerable:true,get:function(){return Pt.combineLatestWith}});var Tt=Ae(88049);Object.defineProperty(pe,"concatAll",{enumerable:true,get:function(){return Tt.concatAll}});var Dt=Ae(19130);Object.defineProperty(pe,"concatMap",{enumerable:true,get:function(){return Dt.concatMap}});var Nt=Ae(61596);Object.defineProperty(pe,"concatMapTo",{enumerable:true,get:function(){return Nt.concatMapTo}});var Mt=Ae(97998);Object.defineProperty(pe,"concatWith",{enumerable:true,get:function(){return Mt.concatWith}});var jt=Ae(51101);Object.defineProperty(pe,"connect",{enumerable:true,get:function(){return jt.connect}});var Ft=Ae(36571);Object.defineProperty(pe,"count",{enumerable:true,get:function(){return Ft.count}});var Lt=Ae(19348);Object.defineProperty(pe,"debounce",{enumerable:true,get:function(){return Lt.debounce}});var Ut=Ae(62379);Object.defineProperty(pe,"debounceTime",{enumerable:true,get:function(){return Ut.debounceTime}});var Ht=Ae(30621);Object.defineProperty(pe,"defaultIfEmpty",{enumerable:true,get:function(){return Ht.defaultIfEmpty}});var Jt=Ae(99818);Object.defineProperty(pe,"delay",{enumerable:true,get:function(){return Jt.delay}});var Wt=Ae(16994);Object.defineProperty(pe,"delayWhen",{enumerable:true,get:function(){return Wt.delayWhen}});var Vt=Ae(95338);Object.defineProperty(pe,"dematerialize",{enumerable:true,get:function(){return Vt.dematerialize}});var Kt=Ae(52594);Object.defineProperty(pe,"distinct",{enumerable:true,get:function(){return Kt.distinct}});var Gt=Ae(20632);Object.defineProperty(pe,"distinctUntilChanged",{enumerable:true,get:function(){return Gt.distinctUntilChanged}});var Yt=Ae(13809);Object.defineProperty(pe,"distinctUntilKeyChanged",{enumerable:true,get:function(){return Yt.distinctUntilKeyChanged}});var qt=Ae(73381);Object.defineProperty(pe,"elementAt",{enumerable:true,get:function(){return qt.elementAt}});var $t=Ae(42961);Object.defineProperty(pe,"endWith",{enumerable:true,get:function(){return $t.endWith}});var zt=Ae(69559);Object.defineProperty(pe,"every",{enumerable:true,get:function(){return zt.every}});var Xt=Ae(75686);Object.defineProperty(pe,"exhaust",{enumerable:true,get:function(){return Xt.exhaust}});var Zt=Ae(79777);Object.defineProperty(pe,"exhaustAll",{enumerable:true,get:function(){return Zt.exhaustAll}});var er=Ae(21527);Object.defineProperty(pe,"exhaustMap",{enumerable:true,get:function(){return er.exhaustMap}});var tr=Ae(21585);Object.defineProperty(pe,"expand",{enumerable:true,get:function(){return tr.expand}});var rr=Ae(36894);Object.defineProperty(pe,"filter",{enumerable:true,get:function(){return rr.filter}});var nr=Ae(4013);Object.defineProperty(pe,"finalize",{enumerable:true,get:function(){return nr.finalize}});var ir=Ae(28981);Object.defineProperty(pe,"find",{enumerable:true,get:function(){return ir.find}});var sr=Ae(92602);Object.defineProperty(pe,"findIndex",{enumerable:true,get:function(){return sr.findIndex}});var ar=Ae(63345);Object.defineProperty(pe,"first",{enumerable:true,get:function(){return ar.first}});var cr=Ae(51650);Object.defineProperty(pe,"groupBy",{enumerable:true,get:function(){return cr.groupBy}});var ur=Ae(31062);Object.defineProperty(pe,"ignoreElements",{enumerable:true,get:function(){return ur.ignoreElements}});var lr=Ae(77722);Object.defineProperty(pe,"isEmpty",{enumerable:true,get:function(){return lr.isEmpty}});var dr=Ae(46831);Object.defineProperty(pe,"last",{enumerable:true,get:function(){return dr.last}});var fr=Ae(5987);Object.defineProperty(pe,"map",{enumerable:true,get:function(){return fr.map}});var pr=Ae(52300);Object.defineProperty(pe,"mapTo",{enumerable:true,get:function(){return pr.mapTo}});var Ar=Ae(67108);Object.defineProperty(pe,"materialize",{enumerable:true,get:function(){return Ar.materialize}});var hr=Ae(17314);Object.defineProperty(pe,"max",{enumerable:true,get:function(){return hr.max}});var gr=Ae(2057);Object.defineProperty(pe,"mergeAll",{enumerable:true,get:function(){return gr.mergeAll}});var yr=Ae(40186);Object.defineProperty(pe,"flatMap",{enumerable:true,get:function(){return yr.flatMap}});var mr=Ae(69914);Object.defineProperty(pe,"mergeMap",{enumerable:true,get:function(){return mr.mergeMap}});var vr=Ae(49151);Object.defineProperty(pe,"mergeMapTo",{enumerable:true,get:function(){return vr.mergeMapTo}});var br=Ae(11519);Object.defineProperty(pe,"mergeScan",{enumerable:true,get:function(){return br.mergeScan}});var Er=Ae(31564);Object.defineProperty(pe,"mergeWith",{enumerable:true,get:function(){return Er.mergeWith}});var wr=Ae(87641);Object.defineProperty(pe,"min",{enumerable:true,get:function(){return wr.min}});var Cr=Ae(65457);Object.defineProperty(pe,"multicast",{enumerable:true,get:function(){return Cr.multicast}});var _r=Ae(22451);Object.defineProperty(pe,"observeOn",{enumerable:true,get:function(){return _r.observeOn}});var Ir=Ae(33569);Object.defineProperty(pe,"onErrorResumeNextWith",{enumerable:true,get:function(){return Ir.onErrorResumeNextWith}});var Sr=Ae(52206);Object.defineProperty(pe,"pairwise",{enumerable:true,get:function(){return Sr.pairwise}});var Br=Ae(16073);Object.defineProperty(pe,"pluck",{enumerable:true,get:function(){return Br.pluck}});var kr=Ae(84084);Object.defineProperty(pe,"publish",{enumerable:true,get:function(){return kr.publish}});var Or=Ae(40045);Object.defineProperty(pe,"publishBehavior",{enumerable:true,get:function(){return Or.publishBehavior}});var Rr=Ae(84149);Object.defineProperty(pe,"publishLast",{enumerable:true,get:function(){return Rr.publishLast}});var Qr=Ae(47656);Object.defineProperty(pe,"publishReplay",{enumerable:true,get:function(){return Qr.publishReplay}});var xr=Ae(58008);Object.defineProperty(pe,"raceWith",{enumerable:true,get:function(){return xr.raceWith}});var Pr=Ae(73694);Object.defineProperty(pe,"reduce",{enumerable:true,get:function(){return Pr.reduce}});var Tr=Ae(22418);Object.defineProperty(pe,"repeat",{enumerable:true,get:function(){return Tr.repeat}});var Dr=Ae(70754);Object.defineProperty(pe,"repeatWhen",{enumerable:true,get:function(){return Dr.repeatWhen}});var Nr=Ae(56251);Object.defineProperty(pe,"retry",{enumerable:true,get:function(){return Nr.retry}});var Mr=Ae(69018);Object.defineProperty(pe,"retryWhen",{enumerable:true,get:function(){return Mr.retryWhen}});var jr=Ae(2331);Object.defineProperty(pe,"refCount",{enumerable:true,get:function(){return jr.refCount}});var Fr=Ae(13774);Object.defineProperty(pe,"sample",{enumerable:true,get:function(){return Fr.sample}});var Lr=Ae(49807);Object.defineProperty(pe,"sampleTime",{enumerable:true,get:function(){return Lr.sampleTime}});var Ur=Ae(25578);Object.defineProperty(pe,"scan",{enumerable:true,get:function(){return Ur.scan}});var Hr=Ae(16126);Object.defineProperty(pe,"sequenceEqual",{enumerable:true,get:function(){return Hr.sequenceEqual}});var Jr=Ae(48960);Object.defineProperty(pe,"share",{enumerable:true,get:function(){return Jr.share}});var Wr=Ae(92118);Object.defineProperty(pe,"shareReplay",{enumerable:true,get:function(){return Wr.shareReplay}});var Vr=Ae(58441);Object.defineProperty(pe,"single",{enumerable:true,get:function(){return Vr.single}});var Kr=Ae(80947);Object.defineProperty(pe,"skip",{enumerable:true,get:function(){return Kr.skip}});var Gr=Ae(65865);Object.defineProperty(pe,"skipLast",{enumerable:true,get:function(){return Gr.skipLast}});var Yr=Ae(41110);Object.defineProperty(pe,"skipUntil",{enumerable:true,get:function(){return Yr.skipUntil}});var qr=Ae(92550);Object.defineProperty(pe,"skipWhile",{enumerable:true,get:function(){return qr.skipWhile}});var $r=Ae(25471);Object.defineProperty(pe,"startWith",{enumerable:true,get:function(){return $r.startWith}});var zr=Ae(7224);Object.defineProperty(pe,"subscribeOn",{enumerable:true,get:function(){return zr.subscribeOn}});var Xr=Ae(40327);Object.defineProperty(pe,"switchAll",{enumerable:true,get:function(){return Xr.switchAll}});var Zr=Ae(26704);Object.defineProperty(pe,"switchMap",{enumerable:true,get:function(){return Zr.switchMap}});var en=Ae(1713);Object.defineProperty(pe,"switchMapTo",{enumerable:true,get:function(){return en.switchMapTo}});var tn=Ae(13355);Object.defineProperty(pe,"switchScan",{enumerable:true,get:function(){return tn.switchScan}});var rn=Ae(33698);Object.defineProperty(pe,"take",{enumerable:true,get:function(){return rn.take}});var nn=Ae(65041);Object.defineProperty(pe,"takeLast",{enumerable:true,get:function(){return nn.takeLast}});var on=Ae(55150);Object.defineProperty(pe,"takeUntil",{enumerable:true,get:function(){return on.takeUntil}});var sn=Ae(76700);Object.defineProperty(pe,"takeWhile",{enumerable:true,get:function(){return sn.takeWhile}});var an=Ae(48845);Object.defineProperty(pe,"tap",{enumerable:true,get:function(){return an.tap}});var cn=Ae(36713);Object.defineProperty(pe,"throttle",{enumerable:true,get:function(){return cn.throttle}});var un=Ae(83435);Object.defineProperty(pe,"throttleTime",{enumerable:true,get:function(){return un.throttleTime}});var ln=Ae(91566);Object.defineProperty(pe,"throwIfEmpty",{enumerable:true,get:function(){return ln.throwIfEmpty}});var dn=Ae(14643);Object.defineProperty(pe,"timeInterval",{enumerable:true,get:function(){return dn.timeInterval}});var fn=Ae(12051);Object.defineProperty(pe,"timeout",{enumerable:true,get:function(){return fn.timeout}});var pn=Ae(43540);Object.defineProperty(pe,"timeoutWith",{enumerable:true,get:function(){return pn.timeoutWith}});var An=Ae(75518);Object.defineProperty(pe,"timestamp",{enumerable:true,get:function(){return An.timestamp}});var hn=Ae(35114);Object.defineProperty(pe,"toArray",{enumerable:true,get:function(){return hn.toArray}});var gn=Ae(98255);Object.defineProperty(pe,"window",{enumerable:true,get:function(){return gn.window}});var yn=Ae(73144);Object.defineProperty(pe,"windowCount",{enumerable:true,get:function(){return yn.windowCount}});var mn=Ae(2738);Object.defineProperty(pe,"windowTime",{enumerable:true,get:function(){return mn.windowTime}});var vn=Ae(52741);Object.defineProperty(pe,"windowToggle",{enumerable:true,get:function(){return vn.windowToggle}});var bn=Ae(82645);Object.defineProperty(pe,"windowWhen",{enumerable:true,get:function(){return bn.windowWhen}});var En=Ae(20501);Object.defineProperty(pe,"withLatestFrom",{enumerable:true,get:function(){return En.withLatestFrom}});var wn=Ae(92335);Object.defineProperty(pe,"zipAll",{enumerable:true,get:function(){return wn.zipAll}});var Cn=Ae(95520);Object.defineProperty(pe,"zipWith",{enumerable:true,get:function(){return Cn.zipWith}})},9747:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AsyncSubject=void 0;var ge=Ae(49944);var ye=function(R){he(AsyncSubject,R);function AsyncSubject(){var pe=R!==null&&R.apply(this,arguments)||this;pe._value=null;pe._hasValue=false;pe._isComplete=false;return pe}AsyncSubject.prototype._checkFinalizedStatuses=function(R){var pe=this,Ae=pe.hasError,he=pe._hasValue,ge=pe._value,ye=pe.thrownError,me=pe.isStopped,ve=pe._isComplete;if(Ae){R.error(ye)}else if(me||ve){he&&R.next(ge);R.complete()}};AsyncSubject.prototype.next=function(R){if(!this.isStopped){this._value=R;this._hasValue=true}};AsyncSubject.prototype.complete=function(){var pe=this,Ae=pe._hasValue,he=pe._value,ge=pe._isComplete;if(!ge){this._isComplete=true;Ae&&R.prototype.next.call(this,he);R.prototype.complete.call(this)}};return AsyncSubject}(ge.Subject);pe.AsyncSubject=ye},23473:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.BehaviorSubject=void 0;var ge=Ae(49944);var ye=function(R){he(BehaviorSubject,R);function BehaviorSubject(pe){var Ae=R.call(this)||this;Ae._value=pe;return Ae}Object.defineProperty(BehaviorSubject.prototype,"value",{get:function(){return this.getValue()},enumerable:false,configurable:true});BehaviorSubject.prototype._subscribe=function(pe){var Ae=R.prototype._subscribe.call(this,pe);!Ae.closed&&pe.next(this._value);return Ae};BehaviorSubject.prototype.getValue=function(){var R=this,pe=R.hasError,Ae=R.thrownError,he=R._value;if(pe){throw Ae}this._throwIfClosed();return he};BehaviorSubject.prototype.next=function(pe){R.prototype.next.call(this,this._value=pe)};return BehaviorSubject}(ge.Subject);pe.BehaviorSubject=ye},12241:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.observeNotification=pe.Notification=pe.NotificationKind=void 0;var he=Ae(70437);var ge=Ae(72163);var ye=Ae(66381);var me=Ae(67206);var ve;(function(R){R["NEXT"]="N";R["ERROR"]="E";R["COMPLETE"]="C"})(ve=pe.NotificationKind||(pe.NotificationKind={}));var be=function(){function Notification(R,pe,Ae){this.kind=R;this.value=pe;this.error=Ae;this.hasValue=R==="N"}Notification.prototype.observe=function(R){return observeNotification(this,R)};Notification.prototype.do=function(R,pe,Ae){var he=this,ge=he.kind,ye=he.value,me=he.error;return ge==="N"?R===null||R===void 0?void 0:R(ye):ge==="E"?pe===null||pe===void 0?void 0:pe(me):Ae===null||Ae===void 0?void 0:Ae()};Notification.prototype.accept=function(R,pe,Ae){var he;return me.isFunction((he=R)===null||he===void 0?void 0:he.next)?this.observe(R):this.do(R,pe,Ae)};Notification.prototype.toObservable=function(){var R=this,pe=R.kind,Ae=R.value,me=R.error;var ve=pe==="N"?ge.of(Ae):pe==="E"?ye.throwError((function(){return me})):pe==="C"?he.EMPTY:0;if(!ve){throw new TypeError("Unexpected notification kind "+pe)}return ve};Notification.createNext=function(R){return new Notification("N",R)};Notification.createError=function(R){return new Notification("E",undefined,R)};Notification.createComplete=function(){return Notification.completeNotification};Notification.completeNotification=new Notification("C");return Notification}();pe.Notification=be;function observeNotification(R,pe){var Ae,he,ge;var ye=R,me=ye.kind,ve=ye.value,be=ye.error;if(typeof me!=="string"){throw new TypeError('Invalid notification, missing "kind"')}me==="N"?(Ae=pe.next)===null||Ae===void 0?void 0:Ae.call(pe,ve):me==="E"?(he=pe.error)===null||he===void 0?void 0:he.call(pe,be):(ge=pe.complete)===null||ge===void 0?void 0:ge.call(pe)}pe.observeNotification=observeNotification},2500:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createNotification=pe.nextNotification=pe.errorNotification=pe.COMPLETE_NOTIFICATION=void 0;pe.COMPLETE_NOTIFICATION=function(){return createNotification("C",undefined,undefined)}();function errorNotification(R){return createNotification("E",undefined,R)}pe.errorNotification=errorNotification;function nextNotification(R){return createNotification("N",R,undefined)}pe.nextNotification=nextNotification;function createNotification(R,pe,Ae){return{kind:R,value:pe,error:Ae}}pe.createNotification=createNotification},53014:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Observable=void 0;var he=Ae(67121);var ge=Ae(79548);var ye=Ae(17186);var me=Ae(49587);var ve=Ae(92233);var be=Ae(67206);var Ee=Ae(31199);var we=function(){function Observable(R){if(R){this._subscribe=R}}Observable.prototype.lift=function(R){var pe=new Observable;pe.source=this;pe.operator=R;return pe};Observable.prototype.subscribe=function(R,pe,Ae){var ge=this;var ye=isSubscriber(R)?R:new he.SafeSubscriber(R,pe,Ae);Ee.errorContext((function(){var R=ge,pe=R.operator,Ae=R.source;ye.add(pe?pe.call(ye,Ae):Ae?ge._subscribe(ye):ge._trySubscribe(ye))}));return ye};Observable.prototype._trySubscribe=function(R){try{return this._subscribe(R)}catch(pe){R.error(pe)}};Observable.prototype.forEach=function(R,pe){var Ae=this;pe=getPromiseCtor(pe);return new pe((function(pe,ge){var ye=new he.SafeSubscriber({next:function(pe){try{R(pe)}catch(R){ge(R);ye.unsubscribe()}},error:ge,complete:pe});Ae.subscribe(ye)}))};Observable.prototype._subscribe=function(R){var pe;return(pe=this.source)===null||pe===void 0?void 0:pe.subscribe(R)};Observable.prototype[ye.observable]=function(){return this};Observable.prototype.pipe=function(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.Scheduler=void 0;var he=Ae(91395);var ge=function(){function Scheduler(R,pe){if(pe===void 0){pe=Scheduler.now}this.schedulerActionCtor=R;this.now=pe}Scheduler.prototype.schedule=function(R,pe,Ae){if(pe===void 0){pe=0}return new this.schedulerActionCtor(this,R).schedule(Ae,pe)};Scheduler.now=he.dateTimestampProvider.now;return Scheduler}();pe.Scheduler=ge},49944:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();var ge=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.AnonymousSubject=pe.Subject=void 0;var ye=Ae(53014);var me=Ae(79548);var ve=Ae(95266);var be=Ae(68499);var Ee=Ae(31199);var we=function(R){he(Subject,R);function Subject(){var pe=R.call(this)||this;pe.closed=false;pe.currentObservers=null;pe.observers=[];pe.isStopped=false;pe.hasError=false;pe.thrownError=null;return pe}Subject.prototype.lift=function(R){var pe=new Ce(this,this);pe.operator=R;return pe};Subject.prototype._throwIfClosed=function(){if(this.closed){throw new ve.ObjectUnsubscribedError}};Subject.prototype.next=function(R){var pe=this;Ee.errorContext((function(){var Ae,he;pe._throwIfClosed();if(!pe.isStopped){if(!pe.currentObservers){pe.currentObservers=Array.from(pe.observers)}try{for(var ye=ge(pe.currentObservers),me=ye.next();!me.done;me=ye.next()){var ve=me.value;ve.next(R)}}catch(R){Ae={error:R}}finally{try{if(me&&!me.done&&(he=ye.return))he.call(ye)}finally{if(Ae)throw Ae.error}}}}))};Subject.prototype.error=function(R){var pe=this;Ee.errorContext((function(){pe._throwIfClosed();if(!pe.isStopped){pe.hasError=pe.isStopped=true;pe.thrownError=R;var Ae=pe.observers;while(Ae.length){Ae.shift().error(R)}}}))};Subject.prototype.complete=function(){var R=this;Ee.errorContext((function(){R._throwIfClosed();if(!R.isStopped){R.isStopped=true;var pe=R.observers;while(pe.length){pe.shift().complete()}}}))};Subject.prototype.unsubscribe=function(){this.isStopped=this.closed=true;this.observers=this.currentObservers=null};Object.defineProperty(Subject.prototype,"observed",{get:function(){var R;return((R=this.observers)===null||R===void 0?void 0:R.length)>0},enumerable:false,configurable:true});Subject.prototype._trySubscribe=function(pe){this._throwIfClosed();return R.prototype._trySubscribe.call(this,pe)};Subject.prototype._subscribe=function(R){this._throwIfClosed();this._checkFinalizedStatuses(R);return this._innerSubscribe(R)};Subject.prototype._innerSubscribe=function(R){var pe=this;var Ae=this,he=Ae.hasError,ge=Ae.isStopped,ye=Ae.observers;if(he||ge){return me.EMPTY_SUBSCRIPTION}this.currentObservers=null;ye.push(R);return new me.Subscription((function(){pe.currentObservers=null;be.arrRemove(ye,R)}))};Subject.prototype._checkFinalizedStatuses=function(R){var pe=this,Ae=pe.hasError,he=pe.thrownError,ge=pe.isStopped;if(Ae){R.error(he)}else if(ge){R.complete()}};Subject.prototype.asObservable=function(){var R=new ye.Observable;R.source=this;return R};Subject.create=function(R,pe){return new Ce(R,pe)};return Subject}(ye.Observable);pe.Subject=we;var Ce=function(R){he(AnonymousSubject,R);function AnonymousSubject(pe,Ae){var he=R.call(this)||this;he.destination=pe;he.source=Ae;return he}AnonymousSubject.prototype.next=function(R){var pe,Ae;(Ae=(pe=this.destination)===null||pe===void 0?void 0:pe.next)===null||Ae===void 0?void 0:Ae.call(pe,R)};AnonymousSubject.prototype.error=function(R){var pe,Ae;(Ae=(pe=this.destination)===null||pe===void 0?void 0:pe.error)===null||Ae===void 0?void 0:Ae.call(pe,R)};AnonymousSubject.prototype.complete=function(){var R,pe;(pe=(R=this.destination)===null||R===void 0?void 0:R.complete)===null||pe===void 0?void 0:pe.call(R)};AnonymousSubject.prototype._subscribe=function(R){var pe,Ae;return(Ae=(pe=this.source)===null||pe===void 0?void 0:pe.subscribe(R))!==null&&Ae!==void 0?Ae:me.EMPTY_SUBSCRIPTION};return AnonymousSubject}(we);pe.AnonymousSubject=Ce},67121:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.EMPTY_OBSERVER=pe.SafeSubscriber=pe.Subscriber=void 0;var ge=Ae(67206);var ye=Ae(79548);var me=Ae(92233);var ve=Ae(92445);var be=Ae(11642);var Ee=Ae(2500);var we=Ae(1613);var Ce=Ae(31199);var _e=function(R){he(Subscriber,R);function Subscriber(Ae){var he=R.call(this)||this;he.isStopped=false;if(Ae){he.destination=Ae;if(ye.isSubscription(Ae)){Ae.add(he)}}else{he.destination=pe.EMPTY_OBSERVER}return he}Subscriber.create=function(R,pe,Ae){return new Be(R,pe,Ae)};Subscriber.prototype.next=function(R){if(this.isStopped){handleStoppedNotification(Ee.nextNotification(R),this)}else{this._next(R)}};Subscriber.prototype.error=function(R){if(this.isStopped){handleStoppedNotification(Ee.errorNotification(R),this)}else{this.isStopped=true;this._error(R)}};Subscriber.prototype.complete=function(){if(this.isStopped){handleStoppedNotification(Ee.COMPLETE_NOTIFICATION,this)}else{this.isStopped=true;this._complete()}};Subscriber.prototype.unsubscribe=function(){if(!this.closed){this.isStopped=true;R.prototype.unsubscribe.call(this);this.destination=null}};Subscriber.prototype._next=function(R){this.destination.next(R)};Subscriber.prototype._error=function(R){try{this.destination.error(R)}finally{this.unsubscribe()}};Subscriber.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};return Subscriber}(ye.Subscription);pe.Subscriber=_e;var Ie=Function.prototype.bind;function bind(R,pe){return Ie.call(R,pe)}var Se=function(){function ConsumerObserver(R){this.partialObserver=R}ConsumerObserver.prototype.next=function(R){var pe=this.partialObserver;if(pe.next){try{pe.next(R)}catch(R){handleUnhandledError(R)}}};ConsumerObserver.prototype.error=function(R){var pe=this.partialObserver;if(pe.error){try{pe.error(R)}catch(R){handleUnhandledError(R)}}else{handleUnhandledError(R)}};ConsumerObserver.prototype.complete=function(){var R=this.partialObserver;if(R.complete){try{R.complete()}catch(R){handleUnhandledError(R)}}};return ConsumerObserver}();var Be=function(R){he(SafeSubscriber,R);function SafeSubscriber(pe,Ae,he){var ye=R.call(this)||this;var ve;if(ge.isFunction(pe)||!pe){ve={next:pe!==null&&pe!==void 0?pe:undefined,error:Ae!==null&&Ae!==void 0?Ae:undefined,complete:he!==null&&he!==void 0?he:undefined}}else{var be;if(ye&&me.config.useDeprecatedNextContext){be=Object.create(pe);be.unsubscribe=function(){return ye.unsubscribe()};ve={next:pe.next&&bind(pe.next,be),error:pe.error&&bind(pe.error,be),complete:pe.complete&&bind(pe.complete,be)}}else{ve=pe}}ye.destination=new Se(ve);return ye}return SafeSubscriber}(_e);pe.SafeSubscriber=Be;function handleUnhandledError(R){if(me.config.useDeprecatedSynchronousErrorHandling){Ce.captureError(R)}else{ve.reportUnhandledError(R)}}function defaultErrorHandler(R){throw R}function handleStoppedNotification(R,pe){var Ae=me.config.onStoppedNotification;Ae&&we.timeoutProvider.setTimeout((function(){return Ae(R,pe)}))}pe.EMPTY_OBSERVER={closed:true,next:be.noop,error:defaultErrorHandler,complete:be.noop}},79548:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};var ge=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ye=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.config=void 0;pe.config={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false}},19369:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.firstValueFrom=void 0;var he=Ae(99391);var ge=Ae(67121);function firstValueFrom(R,pe){var Ae=typeof pe==="object";return new Promise((function(ye,me){var ve=new ge.SafeSubscriber({next:function(R){ye(R);ve.unsubscribe()},error:me,complete:function(){if(Ae){ye(pe.defaultValue)}else{me(new he.EmptyError)}}});R.subscribe(ve)}))}pe.firstValueFrom=firstValueFrom},49713:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.lastValueFrom=void 0;var he=Ae(99391);function lastValueFrom(R,pe){var Ae=typeof pe==="object";return new Promise((function(ge,ye){var me=false;var ve;R.subscribe({next:function(R){ve=R;me=true},error:ye,complete:function(){if(me){ge(ve)}else if(Ae){ge(pe.defaultValue)}else{ye(new he.EmptyError)}}})}))}pe.lastValueFrom=lastValueFrom},30420:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.ConnectableObservable=void 0;var ge=Ae(53014);var ye=Ae(79548);var me=Ae(2331);var ve=Ae(69549);var be=Ae(38669);var Ee=function(R){he(ConnectableObservable,R);function ConnectableObservable(pe,Ae){var he=R.call(this)||this;he.source=pe;he.subjectFactory=Ae;he._subject=null;he._refCount=0;he._connection=null;if(be.hasLift(pe)){he.lift=pe.lift}return he}ConnectableObservable.prototype._subscribe=function(R){return this.getSubject().subscribe(R)};ConnectableObservable.prototype.getSubject=function(){var R=this._subject;if(!R||R.isStopped){this._subject=this.subjectFactory()}return this._subject};ConnectableObservable.prototype._teardown=function(){this._refCount=0;var R=this._connection;this._subject=this._connection=null;R===null||R===void 0?void 0:R.unsubscribe()};ConnectableObservable.prototype.connect=function(){var R=this;var pe=this._connection;if(!pe){pe=this._connection=new ye.Subscription;var Ae=this.getSubject();pe.add(this.source.subscribe(ve.createOperatorSubscriber(Ae,undefined,(function(){R._teardown();Ae.complete()}),(function(pe){R._teardown();Ae.error(pe)}),(function(){return R._teardown()}))));if(pe.closed){this._connection=null;pe=ye.Subscription.EMPTY}}return pe};ConnectableObservable.prototype.refCount=function(){return me.refCount()(this)};return ConnectableObservable}(ge.Observable);pe.ConnectableObservable=Ee},16949:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bindCallback=void 0;var he=Ae(30585);function bindCallback(R,pe,Ae){return he.bindCallbackInternals(false,R,pe,Ae)}pe.bindCallback=bindCallback},30585:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bindNodeCallback=void 0;var he=Ae(30585);function bindNodeCallback(R,pe,Ae){return he.bindCallbackInternals(true,R,pe,Ae)}pe.bindNodeCallback=bindNodeCallback},89958:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.combineLatestInit=pe.combineLatest=void 0;var he=Ae(53014);var ge=Ae(12920);var ye=Ae(18309);var me=Ae(60283);var ve=Ae(78934);var be=Ae(34890);var Ee=Ae(57834);var we=Ae(69549);var Ce=Ae(82877);function combineLatest(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concat=void 0;var he=Ae(88049);var ge=Ae(34890);var ye=Ae(18309);function concat(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.connectable=void 0;var he=Ae(49944);var ge=Ae(53014);var ye=Ae(27672);var me={connector:function(){return new he.Subject},resetOnDisconnect:true};function connectable(R,pe){if(pe===void 0){pe=me}var Ae=null;var he=pe.connector,ve=pe.resetOnDisconnect,be=ve===void 0?true:ve;var Ee=he();var we=new ge.Observable((function(R){return Ee.subscribe(R)}));we.connect=function(){if(!Ae||Ae.closed){Ae=ye.defer((function(){return R})).subscribe(Ee);if(be){Ae.add((function(){return Ee=he()}))}}return Ae};return we}pe.connectable=connectable},27672:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.defer=void 0;var he=Ae(53014);var ge=Ae(57105);function defer(R){return new he.Observable((function(pe){ge.innerFrom(R()).subscribe(pe)}))}pe.defer=defer},38197:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.animationFrames=void 0;var he=Ae(53014);var ge=Ae(70143);var ye=Ae(62738);function animationFrames(R){return R?animationFramesFactory(R):me}pe.animationFrames=animationFrames;function animationFramesFactory(R){return new he.Observable((function(pe){var Ae=R||ge.performanceTimestampProvider;var he=Ae.now();var me=0;var run=function(){if(!pe.closed){me=ye.animationFrameProvider.requestAnimationFrame((function(ge){me=0;var ye=Ae.now();pe.next({timestamp:R?ye:ge,elapsed:ye-he});run()}))}};run();return function(){if(me){ye.animationFrameProvider.cancelAnimationFrame(me)}}}))}var me=animationFramesFactory()},70437:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.empty=pe.EMPTY=void 0;var he=Ae(53014);pe.EMPTY=new he.Observable((function(R){return R.complete()}));function empty(R){return R?emptyScheduled(R):pe.EMPTY}pe.empty=empty;function emptyScheduled(R){return new he.Observable((function(pe){return R.schedule((function(){return pe.complete()}))}))}},47358:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.forkJoin=void 0;var he=Ae(53014);var ge=Ae(12920);var ye=Ae(57105);var me=Ae(34890);var ve=Ae(69549);var be=Ae(78934);var Ee=Ae(57834);function forkJoin(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.from=void 0;var he=Ae(6151);var ge=Ae(57105);function from(R,pe){return pe?he.scheduled(R,pe):ge.innerFrom(R)}pe.from=from},93238:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};Object.defineProperty(pe,"__esModule",{value:true});pe.fromEvent=void 0;var ge=Ae(57105);var ye=Ae(53014);var me=Ae(69914);var ve=Ae(24461);var be=Ae(67206);var Ee=Ae(78934);var we=["addListener","removeListener"];var Ce=["addEventListener","removeEventListener"];var _e=["on","off"];function fromEvent(R,pe,Ae,Ie){if(be.isFunction(Ae)){Ie=Ae;Ae=undefined}if(Ie){return fromEvent(R,pe,Ae).pipe(Ee.mapOneOrManyArgs(Ie))}var Se=he(isEventTarget(R)?Ce.map((function(he){return function(ge){return R[he](pe,ge,Ae)}})):isNodeStyleEventEmitter(R)?we.map(toCommonHandlerRegistry(R,pe)):isJQueryStyleEventEmitter(R)?_e.map(toCommonHandlerRegistry(R,pe)):[],2),Be=Se[0],ke=Se[1];if(!Be){if(ve.isArrayLike(R)){return me.mergeMap((function(R){return fromEvent(R,pe,Ae)}))(ge.innerFrom(R))}}if(!Be){throw new TypeError("Invalid event target")}return new ye.Observable((function(R){var handler=function(){var pe=[];for(var Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromEventPattern=void 0;var he=Ae(53014);var ge=Ae(67206);var ye=Ae(78934);function fromEventPattern(R,pe,Ae){if(Ae){return fromEventPattern(R,pe).pipe(ye.mapOneOrManyArgs(Ae))}return new he.Observable((function(Ae){var handler=function(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.fromSubscribable=void 0;var he=Ae(53014);function fromSubscribable(R){return new he.Observable((function(pe){return R.subscribe(pe)}))}pe.fromSubscribable=fromSubscribable},52668:function(R,pe,Ae){"use strict";var he=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(me){if(he)throw new TypeError("Generator is already executing.");while(Ae)try{if(he=1,ge&&(ye=me[0]&2?ge["return"]:me[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,me[1])).done)return ye;if(ge=0,ye)me=[me[0]&2,ye.value];switch(me[0]){case 0:case 1:ye=me;break;case 4:Ae.label++;return{value:me[1],done:false};case 5:Ae.label++;ge=me[1];me=[0];continue;case 7:me=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(me[0]===6||me[0]===2)){Ae=0;continue}if(me[0]===3&&(!ye||me[1]>ye[0]&&me[1]{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.iif=void 0;var he=Ae(27672);function iif(R,pe,Ae){return he.defer((function(){return R()?pe:Ae}))}pe.iif=iif},57105:function(R,pe,Ae){"use strict";var he=this&&this.__awaiter||function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};var ge=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(me){if(he)throw new TypeError("Generator is already executing.");while(Ae)try{if(he=1,ge&&(ye=me[0]&2?ge["return"]:me[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,me[1])).done)return ye;if(ge=0,ye)me=[me[0]&2,ye.value];switch(me[0]){case 0:case 1:ye=me;break;case 4:Ae.label++;return{value:me[1],done:false};case 5:Ae.label++;ge=me[1];me=[0];continue;case 7:me=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(me[0]===6||me[0]===2)){Ae=0;continue}if(me[0]===3&&(!ye||me[1]>ye[0]&&me[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.fromReadableStreamLike=pe.fromAsyncIterable=pe.fromIterable=pe.fromPromise=pe.fromArrayLike=pe.fromInteropObservable=pe.innerFrom=void 0;var ve=Ae(24461);var be=Ae(65585);var Ee=Ae(53014);var we=Ae(67984);var Ce=Ae(44408);var _e=Ae(97364);var Ie=Ae(94292);var Se=Ae(99621);var Be=Ae(67206);var ke=Ae(92445);var Oe=Ae(17186);function innerFrom(R){if(R instanceof Ee.Observable){return R}if(R!=null){if(we.isInteropObservable(R)){return fromInteropObservable(R)}if(ve.isArrayLike(R)){return fromArrayLike(R)}if(be.isPromise(R)){return fromPromise(R)}if(Ce.isAsyncIterable(R)){return fromAsyncIterable(R)}if(Ie.isIterable(R)){return fromIterable(R)}if(Se.isReadableStreamLike(R)){return fromReadableStreamLike(R)}}throw _e.createInvalidObservableTypeError(R)}pe.innerFrom=innerFrom;function fromInteropObservable(R){return new Ee.Observable((function(pe){var Ae=R[Oe.observable]();if(Be.isFunction(Ae.subscribe)){return Ae.subscribe(pe)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}pe.fromInteropObservable=fromInteropObservable;function fromArrayLike(R){return new Ee.Observable((function(pe){for(var Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.interval=void 0;var he=Ae(76072);var ge=Ae(59757);function interval(R,pe){if(R===void 0){R=0}if(pe===void 0){pe=he.asyncScheduler}if(R<0){R=0}return ge.timer(R,R,pe)}pe.interval=interval},75122:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.merge=void 0;var he=Ae(2057);var ge=Ae(57105);var ye=Ae(70437);var me=Ae(34890);var ve=Ae(18309);function merge(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.never=pe.NEVER=void 0;var he=Ae(53014);var ge=Ae(11642);pe.NEVER=new he.Observable(ge.noop);function never(){return pe.NEVER}pe.never=never},72163:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.of=void 0;var he=Ae(34890);var ge=Ae(18309);function of(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.onErrorResumeNext=void 0;var he=Ae(53014);var ge=Ae(18824);var ye=Ae(69549);var me=Ae(11642);var ve=Ae(57105);function onErrorResumeNext(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.pairs=void 0;var he=Ae(18309);function pairs(R,pe){return he.from(Object.entries(R),pe)}pe.pairs=pairs},15506:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.partition=void 0;var he=Ae(54338);var ge=Ae(36894);var ye=Ae(57105);function partition(R,pe,Ae){return[ge.filter(pe,Ae)(ye.innerFrom(R)),ge.filter(he.not(pe,Ae))(ye.innerFrom(R))]}pe.partition=partition},16940:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.raceInit=pe.race=void 0;var he=Ae(53014);var ge=Ae(57105);var ye=Ae(18824);var me=Ae(69549);function race(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.range=void 0;var he=Ae(53014);var ge=Ae(70437);function range(R,pe,Ae){if(pe==null){pe=R;R=0}if(pe<=0){return ge.EMPTY}var ye=pe+R;return new he.Observable(Ae?function(pe){var he=R;return Ae.schedule((function(){if(he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.throwError=void 0;var he=Ae(53014);var ge=Ae(67206);function throwError(R,pe){var Ae=ge.isFunction(R)?R:function(){return R};var init=function(R){return R.error(Ae())};return new he.Observable(pe?function(R){return pe.schedule(init,0,R)}:init)}pe.throwError=throwError},59757:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.timer=void 0;var he=Ae(53014);var ge=Ae(76072);var ye=Ae(16500);var me=Ae(60935);function timer(R,pe,Ae){if(R===void 0){R=0}if(Ae===void 0){Ae=ge.async}var ve=-1;if(pe!=null){if(ye.isScheduler(pe)){Ae=pe}else{ve=pe}}return new he.Observable((function(pe){var he=me.isValidDate(R)?+R-Ae.now():R;if(he<0){he=0}var ge=0;return Ae.schedule((function(){if(!pe.closed){pe.next(ge++);if(0<=ve){this.schedule(undefined,ve)}else{pe.complete()}}}),he)}))}pe.timer=timer},8445:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.using=void 0;var he=Ae(53014);var ge=Ae(57105);var ye=Ae(70437);function using(R,pe){return new he.Observable((function(Ae){var he=R();var me=pe(he);var ve=me?ge.innerFrom(me):ye.EMPTY;ve.subscribe(Ae);return function(){if(he){he.unsubscribe()}}}))}pe.using=using},62504:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.audit=void 0;var he=Ae(38669);var ge=Ae(57105);var ye=Ae(69549);function audit(R){return he.operate((function(pe,Ae){var he=false;var me=null;var ve=null;var be=false;var endDuration=function(){ve===null||ve===void 0?void 0:ve.unsubscribe();ve=null;if(he){he=false;var R=me;me=null;Ae.next(R)}be&&Ae.complete()};var cleanupDuration=function(){ve=null;be&&Ae.complete()};pe.subscribe(ye.createOperatorSubscriber(Ae,(function(pe){he=true;me=pe;if(!ve){ge.innerFrom(R(pe)).subscribe(ve=ye.createOperatorSubscriber(Ae,endDuration,cleanupDuration))}}),(function(){be=true;(!he||!ve||ve.closed)&&Ae.complete()})))}))}pe.audit=audit},18780:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.auditTime=void 0;var he=Ae(76072);var ge=Ae(82704);var ye=Ae(59757);function auditTime(R,pe){if(pe===void 0){pe=he.asyncScheduler}return ge.audit((function(){return ye.timer(R,pe)}))}pe.auditTime=auditTime},34253:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.buffer=void 0;var he=Ae(38669);var ge=Ae(11642);var ye=Ae(69549);var me=Ae(57105);function buffer(R){return he.operate((function(pe,Ae){var he=[];pe.subscribe(ye.createOperatorSubscriber(Ae,(function(R){return he.push(R)}),(function(){Ae.next(he);Ae.complete()})));me.innerFrom(R).subscribe(ye.createOperatorSubscriber(Ae,(function(){var R=he;he=[];Ae.next(R)}),ge.noop));return function(){he=null}}))}pe.buffer=buffer},17253:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.bufferCount=void 0;var ge=Ae(38669);var ye=Ae(69549);var me=Ae(68499);function bufferCount(R,pe){if(pe===void 0){pe=null}pe=pe!==null&&pe!==void 0?pe:R;return ge.operate((function(Ae,ge){var ve=[];var be=0;Ae.subscribe(ye.createOperatorSubscriber(ge,(function(Ae){var ye,Ee,we,Ce;var _e=null;if(be++%pe===0){ve.push([])}try{for(var Ie=he(ve),Se=Ie.next();!Se.done;Se=Ie.next()){var Be=Se.value;Be.push(Ae);if(R<=Be.length){_e=_e!==null&&_e!==void 0?_e:[];_e.push(Be)}}}catch(R){ye={error:R}}finally{try{if(Se&&!Se.done&&(Ee=Ie.return))Ee.call(Ie)}finally{if(ye)throw ye.error}}if(_e){try{for(var ke=he(_e),Oe=ke.next();!Oe.done;Oe=ke.next()){var Be=Oe.value;me.arrRemove(ve,Be);ge.next(Be)}}catch(R){we={error:R}}finally{try{if(Oe&&!Oe.done&&(Ce=ke.return))Ce.call(ke)}finally{if(we)throw we.error}}}}),(function(){var R,pe;try{for(var Ae=he(ve),ye=Ae.next();!ye.done;ye=Ae.next()){var me=ye.value;ge.next(me)}}catch(pe){R={error:pe}}finally{try{if(ye&&!ye.done&&(pe=Ae.return))pe.call(Ae)}finally{if(R)throw R.error}}ge.complete()}),undefined,(function(){ve=null})))}))}pe.bufferCount=bufferCount},73102:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.bufferTime=void 0;var ge=Ae(79548);var ye=Ae(38669);var me=Ae(69549);var ve=Ae(68499);var be=Ae(76072);var Ee=Ae(34890);var we=Ae(82877);function bufferTime(R){var pe,Ae;var Ce=[];for(var _e=1;_e=0){we.executeSchedule(Ae,Ie,startBuffer,Se,true)}else{be=true}startBuffer();var Ee=me.createOperatorSubscriber(Ae,(function(R){var pe,Ae;var ge=ye.slice();try{for(var me=he(ge),ve=me.next();!ve.done;ve=me.next()){var be=ve.value;var Ee=be.buffer;Ee.push(R);Be<=Ee.length&&emit(be)}}catch(R){pe={error:R}}finally{try{if(ve&&!ve.done&&(Ae=me.return))Ae.call(me)}finally{if(pe)throw pe.error}}}),(function(){while(ye===null||ye===void 0?void 0:ye.length){Ae.next(ye.shift().buffer)}Ee===null||Ee===void 0?void 0:Ee.unsubscribe();Ae.complete();Ae.unsubscribe()}),undefined,(function(){return ye=null}));pe.subscribe(Ee)}))}pe.bufferTime=bufferTime},83781:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.bufferToggle=void 0;var ge=Ae(79548);var ye=Ae(38669);var me=Ae(57105);var ve=Ae(69549);var be=Ae(11642);var Ee=Ae(68499);function bufferToggle(R,pe){return ye.operate((function(Ae,ye){var we=[];me.innerFrom(R).subscribe(ve.createOperatorSubscriber(ye,(function(R){var Ae=[];we.push(Ae);var he=new ge.Subscription;var emitBuffer=function(){Ee.arrRemove(we,Ae);ye.next(Ae);he.unsubscribe()};he.add(me.innerFrom(pe(R)).subscribe(ve.createOperatorSubscriber(ye,emitBuffer,be.noop)))}),be.noop));Ae.subscribe(ve.createOperatorSubscriber(ye,(function(R){var pe,Ae;try{for(var ge=he(we),ye=ge.next();!ye.done;ye=ge.next()){var me=ye.value;me.push(R)}}catch(R){pe={error:R}}finally{try{if(ye&&!ye.done&&(Ae=ge.return))Ae.call(ge)}finally{if(pe)throw pe.error}}}),(function(){while(we.length>0){ye.next(we.shift())}ye.complete()})))}))}pe.bufferToggle=bufferToggle},82855:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.bufferWhen=void 0;var he=Ae(38669);var ge=Ae(11642);var ye=Ae(69549);var me=Ae(57105);function bufferWhen(R){return he.operate((function(pe,Ae){var he=null;var ve=null;var openBuffer=function(){ve===null||ve===void 0?void 0:ve.unsubscribe();var pe=he;he=[];pe&&Ae.next(pe);me.innerFrom(R()).subscribe(ve=ye.createOperatorSubscriber(Ae,openBuffer,ge.noop))};openBuffer();pe.subscribe(ye.createOperatorSubscriber(Ae,(function(R){return he===null||he===void 0?void 0:he.push(R)}),(function(){he&&Ae.next(he);Ae.complete()}),undefined,(function(){return he=ve=null})))}))}pe.bufferWhen=bufferWhen},37765:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.catchError=void 0;var he=Ae(57105);var ge=Ae(69549);var ye=Ae(38669);function catchError(R){return ye.operate((function(pe,Ae){var ye=null;var me=false;var ve;ye=pe.subscribe(ge.createOperatorSubscriber(Ae,undefined,undefined,(function(ge){ve=he.innerFrom(R(ge,catchError(R)(pe)));if(ye){ye.unsubscribe();ye=null;ve.subscribe(Ae)}else{me=true}})));if(me){ye.unsubscribe();ye=null;ve.subscribe(Ae)}}))}pe.catchError=catchError},88817:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.combineAll=void 0;var he=Ae(91063);pe.combineAll=he.combineLatestAll},96008:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.combineLatestAll=void 0;var he=Ae(89958);var ge=Ae(29341);function combineLatestAll(R){return ge.joinAllInternals(he.combineLatest,R)}pe.combineLatestAll=combineLatestAll},19044:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatAll=void 0;var he=Ae(2057);function concatAll(){return he.mergeAll(1)}pe.concatAll=concatAll},19130:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatMap=void 0;var he=Ae(69914);var ge=Ae(67206);function concatMap(R,pe){return ge.isFunction(pe)?he.mergeMap(R,pe,1):he.mergeMap(R,1)}pe.concatMap=concatMap},61596:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.concatMapTo=void 0;var he=Ae(19130);var ge=Ae(67206);function concatMapTo(R,pe){return ge.isFunction(pe)?he.concatMap((function(){return R}),pe):he.concatMap((function(){return R}))}pe.concatMapTo=concatMapTo},97998:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.connect=void 0;var he=Ae(49944);var ge=Ae(57105);var ye=Ae(38669);var me=Ae(66513);var ve={connector:function(){return new he.Subject}};function connect(R,pe){if(pe===void 0){pe=ve}var Ae=pe.connector;return ye.operate((function(pe,he){var ye=Ae();ge.innerFrom(R(me.fromSubscribable(ye))).subscribe(he);he.add(pe.subscribe(ye))}))}pe.connect=connect},36571:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.count=void 0;var he=Ae(73694);function count(R){return he.reduce((function(pe,Ae,he){return!R||R(Ae,he)?pe+1:pe}),0)}pe.count=count},19348:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.debounce=void 0;var he=Ae(38669);var ge=Ae(11642);var ye=Ae(69549);var me=Ae(57105);function debounce(R){return he.operate((function(pe,Ae){var he=false;var ve=null;var be=null;var emit=function(){be===null||be===void 0?void 0:be.unsubscribe();be=null;if(he){he=false;var R=ve;ve=null;Ae.next(R)}};pe.subscribe(ye.createOperatorSubscriber(Ae,(function(pe){be===null||be===void 0?void 0:be.unsubscribe();he=true;ve=pe;be=ye.createOperatorSubscriber(Ae,emit,ge.noop);me.innerFrom(R(pe)).subscribe(be)}),(function(){emit();Ae.complete()}),undefined,(function(){ve=be=null})))}))}pe.debounce=debounce},62379:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.debounceTime=void 0;var he=Ae(76072);var ge=Ae(38669);var ye=Ae(69549);function debounceTime(R,pe){if(pe===void 0){pe=he.asyncScheduler}return ge.operate((function(Ae,he){var ge=null;var me=null;var ve=null;var emit=function(){if(ge){ge.unsubscribe();ge=null;var R=me;me=null;he.next(R)}};function emitWhenIdle(){var Ae=ve+R;var ye=pe.now();if(ye{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.defaultIfEmpty=void 0;var he=Ae(38669);var ge=Ae(69549);function defaultIfEmpty(R){return he.operate((function(pe,Ae){var he=false;pe.subscribe(ge.createOperatorSubscriber(Ae,(function(R){he=true;Ae.next(R)}),(function(){if(!he){Ae.next(R)}Ae.complete()})))}))}pe.defaultIfEmpty=defaultIfEmpty},99818:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.delay=void 0;var he=Ae(76072);var ge=Ae(16994);var ye=Ae(59757);function delay(R,pe){if(pe===void 0){pe=he.asyncScheduler}var Ae=ye.timer(R,pe);return ge.delayWhen((function(){return Ae}))}pe.delay=delay},16994:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.delayWhen=void 0;var he=Ae(4675);var ge=Ae(33698);var ye=Ae(31062);var me=Ae(52300);var ve=Ae(69914);var be=Ae(57105);function delayWhen(R,pe){if(pe){return function(Ae){return he.concat(pe.pipe(ge.take(1),ye.ignoreElements()),Ae.pipe(delayWhen(R)))}}return ve.mergeMap((function(pe,Ae){return be.innerFrom(R(pe,Ae)).pipe(ge.take(1),me.mapTo(pe))}))}pe.delayWhen=delayWhen},95338:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.dematerialize=void 0;var he=Ae(12241);var ge=Ae(38669);var ye=Ae(69549);function dematerialize(){return ge.operate((function(R,pe){R.subscribe(ye.createOperatorSubscriber(pe,(function(R){return he.observeNotification(R,pe)})))}))}pe.dematerialize=dematerialize},52594:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.distinct=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(11642);var me=Ae(57105);function distinct(R,pe){return he.operate((function(Ae,he){var ve=new Set;Ae.subscribe(ge.createOperatorSubscriber(he,(function(pe){var Ae=R?R(pe):pe;if(!ve.has(Ae)){ve.add(Ae);he.next(pe)}})));pe&&me.innerFrom(pe).subscribe(ge.createOperatorSubscriber(he,(function(){return ve.clear()}),ye.noop))}))}pe.distinct=distinct},20632:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.distinctUntilChanged=void 0;var he=Ae(60283);var ge=Ae(38669);var ye=Ae(69549);function distinctUntilChanged(R,pe){if(pe===void 0){pe=he.identity}R=R!==null&&R!==void 0?R:defaultCompare;return ge.operate((function(Ae,he){var ge;var me=true;Ae.subscribe(ye.createOperatorSubscriber(he,(function(Ae){var ye=pe(Ae);if(me||!R(ge,ye)){me=false;ge=ye;he.next(Ae)}})))}))}pe.distinctUntilChanged=distinctUntilChanged;function defaultCompare(R,pe){return R===pe}},13809:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.distinctUntilKeyChanged=void 0;var he=Ae(20632);function distinctUntilKeyChanged(R,pe){return he.distinctUntilChanged((function(Ae,he){return pe?pe(Ae[R],he[R]):Ae[R]===he[R]}))}pe.distinctUntilKeyChanged=distinctUntilKeyChanged},73381:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.elementAt=void 0;var he=Ae(49796);var ge=Ae(36894);var ye=Ae(91566);var me=Ae(30621);var ve=Ae(33698);function elementAt(R,pe){if(R<0){throw new he.ArgumentOutOfRangeError}var Ae=arguments.length>=2;return function(be){return be.pipe(ge.filter((function(pe,Ae){return Ae===R})),ve.take(1),Ae?me.defaultIfEmpty(pe):ye.throwIfEmpty((function(){return new he.ArgumentOutOfRangeError})))}}pe.elementAt=elementAt},42961:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.every=void 0;var he=Ae(38669);var ge=Ae(69549);function every(R,pe){return he.operate((function(Ae,he){var ye=0;Ae.subscribe(ge.createOperatorSubscriber(he,(function(ge){if(!R.call(pe,ge,ye++,Ae)){he.next(false);he.complete()}}),(function(){he.next(true);he.complete()})))}))}pe.every=every},75686:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exhaust=void 0;var he=Ae(79777);pe.exhaust=he.exhaustAll},79777:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exhaustAll=void 0;var he=Ae(21527);var ge=Ae(60283);function exhaustAll(){return he.exhaustMap(ge.identity)}pe.exhaustAll=exhaustAll},21527:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.exhaustMap=void 0;var he=Ae(5987);var ge=Ae(57105);var ye=Ae(38669);var me=Ae(69549);function exhaustMap(R,pe){if(pe){return function(Ae){return Ae.pipe(exhaustMap((function(Ae,ye){return ge.innerFrom(R(Ae,ye)).pipe(he.map((function(R,he){return pe(Ae,R,ye,he)})))})))}}return ye.operate((function(pe,Ae){var he=0;var ye=null;var ve=false;pe.subscribe(me.createOperatorSubscriber(Ae,(function(pe){if(!ye){ye=me.createOperatorSubscriber(Ae,undefined,(function(){ye=null;ve&&Ae.complete()}));ge.innerFrom(R(pe,he++)).subscribe(ye)}}),(function(){ve=true;!ye&&Ae.complete()})))}))}pe.exhaustMap=exhaustMap},21585:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.expand=void 0;var he=Ae(38669);var ge=Ae(78463);function expand(R,pe,Ae){if(pe===void 0){pe=Infinity}pe=(pe||0)<1?Infinity:pe;return he.operate((function(he,ye){return ge.mergeInternals(he,ye,R,pe,undefined,true,Ae)}))}pe.expand=expand},36894:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.filter=void 0;var he=Ae(38669);var ge=Ae(69549);function filter(R,pe){return he.operate((function(Ae,he){var ye=0;Ae.subscribe(ge.createOperatorSubscriber(he,(function(Ae){return R.call(pe,Ae,ye++)&&he.next(Ae)})))}))}pe.filter=filter},4013:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.finalize=void 0;var he=Ae(38669);function finalize(R){return he.operate((function(pe,Ae){try{pe.subscribe(Ae)}finally{Ae.add(R)}}))}pe.finalize=finalize},28981:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createFind=pe.find=void 0;var he=Ae(38669);var ge=Ae(69549);function find(R,pe){return he.operate(createFind(R,pe,"value"))}pe.find=find;function createFind(R,pe,Ae){var he=Ae==="index";return function(Ae,ye){var me=0;Ae.subscribe(ge.createOperatorSubscriber(ye,(function(ge){var ve=me++;if(R.call(pe,ge,ve,Ae)){ye.next(he?ve:ge);ye.complete()}}),(function(){ye.next(he?-1:undefined);ye.complete()})))}}pe.createFind=createFind},92602:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.findIndex=void 0;var he=Ae(38669);var ge=Ae(28981);function findIndex(R,pe){return he.operate(ge.createFind(R,pe,"index"))}pe.findIndex=findIndex},63345:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.first=void 0;var he=Ae(99391);var ge=Ae(36894);var ye=Ae(33698);var me=Ae(30621);var ve=Ae(91566);var be=Ae(60283);function first(R,pe){var Ae=arguments.length>=2;return function(Ee){return Ee.pipe(R?ge.filter((function(pe,Ae){return R(pe,Ae,Ee)})):be.identity,ye.take(1),Ae?me.defaultIfEmpty(pe):ve.throwIfEmpty((function(){return new he.EmptyError})))}}pe.first=first},40186:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.flatMap=void 0;var he=Ae(69914);pe.flatMap=he.mergeMap},51650:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.groupBy=void 0;var he=Ae(53014);var ge=Ae(57105);var ye=Ae(49944);var me=Ae(38669);var ve=Ae(69549);function groupBy(R,pe,Ae,be){return me.operate((function(me,Ee){var we;if(!pe||typeof pe==="function"){we=pe}else{Ae=pe.duration,we=pe.element,be=pe.connector}var Ce=new Map;var notify=function(R){Ce.forEach(R);R(Ee)};var handleError=function(R){return notify((function(pe){return pe.error(R)}))};var _e=0;var Ie=false;var Se=new ve.OperatorSubscriber(Ee,(function(pe){try{var he=R(pe);var me=Ce.get(he);if(!me){Ce.set(he,me=be?be():new ye.Subject);var _e=createGroupedObservable(he,me);Ee.next(_e);if(Ae){var Ie=ve.createOperatorSubscriber(me,(function(){me.complete();Ie===null||Ie===void 0?void 0:Ie.unsubscribe()}),undefined,undefined,(function(){return Ce.delete(he)}));Se.add(ge.innerFrom(Ae(_e)).subscribe(Ie))}}me.next(we?we(pe):pe)}catch(R){handleError(R)}}),(function(){return notify((function(R){return R.complete()}))}),handleError,(function(){return Ce.clear()}),(function(){Ie=true;return _e===0}));me.subscribe(Se);function createGroupedObservable(R,pe){var Ae=new he.Observable((function(R){_e++;var Ae=pe.subscribe(R);return function(){Ae.unsubscribe();--_e===0&&Ie&&Se.unsubscribe()}}));Ae.key=R;return Ae}}))}pe.groupBy=groupBy},31062:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ignoreElements=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(11642);function ignoreElements(){return he.operate((function(R,pe){R.subscribe(ge.createOperatorSubscriber(pe,ye.noop))}))}pe.ignoreElements=ignoreElements},77722:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isEmpty=void 0;var he=Ae(38669);var ge=Ae(69549);function isEmpty(){return he.operate((function(R,pe){R.subscribe(ge.createOperatorSubscriber(pe,(function(){pe.next(false);pe.complete()}),(function(){pe.next(true);pe.complete()})))}))}pe.isEmpty=isEmpty},29341:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.joinAllInternals=void 0;var he=Ae(60283);var ge=Ae(78934);var ye=Ae(49587);var me=Ae(69914);var ve=Ae(35114);function joinAllInternals(R,pe){return ye.pipe(ve.toArray(),me.mergeMap((function(pe){return R(pe)})),pe?ge.mapOneOrManyArgs(pe):he.identity)}pe.joinAllInternals=joinAllInternals},46831:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.last=void 0;var he=Ae(99391);var ge=Ae(36894);var ye=Ae(65041);var me=Ae(91566);var ve=Ae(30621);var be=Ae(60283);function last(R,pe){var Ae=arguments.length>=2;return function(Ee){return Ee.pipe(R?ge.filter((function(pe,Ae){return R(pe,Ae,Ee)})):be.identity,ye.takeLast(1),Ae?ve.defaultIfEmpty(pe):me.throwIfEmpty((function(){return new he.EmptyError})))}}pe.last=last},5987:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.map=void 0;var he=Ae(38669);var ge=Ae(69549);function map(R,pe){return he.operate((function(Ae,he){var ye=0;Ae.subscribe(ge.createOperatorSubscriber(he,(function(Ae){he.next(R.call(pe,Ae,ye++))})))}))}pe.map=map},52300:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mapTo=void 0;var he=Ae(5987);function mapTo(R){return he.map((function(){return R}))}pe.mapTo=mapTo},67108:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.materialize=void 0;var he=Ae(12241);var ge=Ae(38669);var ye=Ae(69549);function materialize(){return ge.operate((function(R,pe){R.subscribe(ye.createOperatorSubscriber(pe,(function(R){pe.next(he.Notification.createNext(R))}),(function(){pe.next(he.Notification.createComplete());pe.complete()}),(function(R){pe.next(he.Notification.createError(R));pe.complete()})))}))}pe.materialize=materialize},17314:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.max=void 0;var he=Ae(73694);var ge=Ae(67206);function max(R){return he.reduce(ge.isFunction(R)?function(pe,Ae){return R(pe,Ae)>0?pe:Ae}:function(R,pe){return R>pe?R:pe})}pe.max=max},39510:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeAll=void 0;var he=Ae(69914);var ge=Ae(60283);function mergeAll(R){if(R===void 0){R=Infinity}return he.mergeMap(ge.identity,R)}pe.mergeAll=mergeAll},78463:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeInternals=void 0;var he=Ae(57105);var ge=Ae(82877);var ye=Ae(69549);function mergeInternals(R,pe,Ae,me,ve,be,Ee,we){var Ce=[];var _e=0;var Ie=0;var Se=false;var checkComplete=function(){if(Se&&!Ce.length&&!_e){pe.complete()}};var outerNext=function(R){return _e{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeMap=void 0;var he=Ae(5987);var ge=Ae(57105);var ye=Ae(38669);var me=Ae(78463);var ve=Ae(67206);function mergeMap(R,pe,Ae){if(Ae===void 0){Ae=Infinity}if(ve.isFunction(pe)){return mergeMap((function(Ae,ye){return he.map((function(R,he){return pe(Ae,R,ye,he)}))(ge.innerFrom(R(Ae,ye)))}),Ae)}else if(typeof pe==="number"){Ae=pe}return ye.operate((function(pe,he){return me.mergeInternals(pe,he,R,Ae)}))}pe.mergeMap=mergeMap},49151:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeMapTo=void 0;var he=Ae(69914);var ge=Ae(67206);function mergeMapTo(R,pe,Ae){if(Ae===void 0){Ae=Infinity}if(ge.isFunction(pe)){return he.mergeMap((function(){return R}),pe,Ae)}if(typeof pe==="number"){Ae=pe}return he.mergeMap((function(){return R}),Ae)}pe.mergeMapTo=mergeMapTo},11519:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeScan=void 0;var he=Ae(38669);var ge=Ae(78463);function mergeScan(R,pe,Ae){if(Ae===void 0){Ae=Infinity}return he.operate((function(he,ye){var me=pe;return ge.mergeInternals(he,ye,(function(pe,Ae){return R(me,pe,Ae)}),Ae,(function(R){me=R}),false,undefined,(function(){return me=null}))}))}pe.mergeScan=mergeScan},31564:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.min=void 0;var he=Ae(73694);var ge=Ae(67206);function min(R){return he.reduce(ge.isFunction(R)?function(pe,Ae){return R(pe,Ae)<0?pe:Ae}:function(R,pe){return R{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.multicast=void 0;var he=Ae(30420);var ge=Ae(67206);var ye=Ae(51101);function multicast(R,pe){var Ae=ge.isFunction(R)?R:function(){return R};if(ge.isFunction(pe)){return ye.connect(pe,{connector:Ae})}return function(R){return new he.ConnectableObservable(R,Ae)}}pe.multicast=multicast},22451:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.observeOn=void 0;var he=Ae(82877);var ge=Ae(38669);var ye=Ae(69549);function observeOn(R,pe){if(pe===void 0){pe=0}return ge.operate((function(Ae,ge){Ae.subscribe(ye.createOperatorSubscriber(ge,(function(Ae){return he.executeSchedule(ge,R,(function(){return ge.next(Ae)}),pe)}),(function(){return he.executeSchedule(ge,R,(function(){return ge.complete()}),pe)}),(function(Ae){return he.executeSchedule(ge,R,(function(){return ge.error(Ae)}),pe)})))}))}pe.observeOn=observeOn},33569:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.pairwise=void 0;var he=Ae(38669);var ge=Ae(69549);function pairwise(){return he.operate((function(R,pe){var Ae;var he=false;R.subscribe(ge.createOperatorSubscriber(pe,(function(R){var ge=Ae;Ae=R;he&&pe.next([ge,R]);he=true})))}))}pe.pairwise=pairwise},55949:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.partition=void 0;var he=Ae(54338);var ge=Ae(36894);function partition(R,pe){return function(Ae){return[ge.filter(R,pe)(Ae),ge.filter(he.not(R,pe))(Ae)]}}pe.partition=partition},16073:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.pluck=void 0;var he=Ae(5987);function pluck(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.publish=void 0;var he=Ae(49944);var ge=Ae(65457);var ye=Ae(51101);function publish(R){return R?function(pe){return ye.connect(R)(pe)}:function(R){return ge.multicast(new he.Subject)(R)}}pe.publish=publish},40045:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.publishBehavior=void 0;var he=Ae(23473);var ge=Ae(30420);function publishBehavior(R){return function(pe){var Ae=new he.BehaviorSubject(R);return new ge.ConnectableObservable(pe,(function(){return Ae}))}}pe.publishBehavior=publishBehavior},84149:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.publishLast=void 0;var he=Ae(9747);var ge=Ae(30420);function publishLast(){return function(R){var pe=new he.AsyncSubject;return new ge.ConnectableObservable(R,(function(){return pe}))}}pe.publishLast=publishLast},47656:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.publishReplay=void 0;var he=Ae(22351);var ge=Ae(65457);var ye=Ae(67206);function publishReplay(R,pe,Ae,me){if(Ae&&!ye.isFunction(Ae)){me=Ae}var ve=ye.isFunction(Ae)?Ae:undefined;return function(Ae){return ge.multicast(new he.ReplaySubject(R,pe,me),ve)(Ae)}}pe.publishReplay=publishReplay},85846:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.reduce=void 0;var he=Ae(20998);var ge=Ae(38669);function reduce(R,pe){return ge.operate(he.scanInternals(R,pe,arguments.length>=2,false,true))}pe.reduce=reduce},2331:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.refCount=void 0;var he=Ae(38669);var ge=Ae(69549);function refCount(){return he.operate((function(R,pe){var Ae=null;R._refCount++;var he=ge.createOperatorSubscriber(pe,undefined,undefined,undefined,(function(){if(!R||R._refCount<=0||0<--R._refCount){Ae=null;return}var he=R._connection;var ge=Ae;Ae=null;if(he&&(!ge||he===ge)){he.unsubscribe()}pe.unsubscribe()}));R.subscribe(he);if(!he.closed){Ae=R.connect()}}))}pe.refCount=refCount},22418:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.repeat=void 0;var he=Ae(70437);var ge=Ae(38669);var ye=Ae(69549);var me=Ae(57105);var ve=Ae(59757);function repeat(R){var pe;var Ae=Infinity;var be;if(R!=null){if(typeof R==="object"){pe=R.count,Ae=pe===void 0?Infinity:pe,be=R.delay}else{Ae=R}}return Ae<=0?function(){return he.EMPTY}:ge.operate((function(R,pe){var he=0;var ge;var resubscribe=function(){ge===null||ge===void 0?void 0:ge.unsubscribe();ge=null;if(be!=null){var R=typeof be==="number"?ve.timer(be):me.innerFrom(be(he));var Ae=ye.createOperatorSubscriber(pe,(function(){Ae.unsubscribe();subscribeToSource()}));R.subscribe(Ae)}else{subscribeToSource()}};var subscribeToSource=function(){var me=false;ge=R.subscribe(ye.createOperatorSubscriber(pe,undefined,(function(){if(++he{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.repeatWhen=void 0;var he=Ae(57105);var ge=Ae(49944);var ye=Ae(38669);var me=Ae(69549);function repeatWhen(R){return ye.operate((function(pe,Ae){var ye;var ve=false;var be;var Ee=false;var we=false;var checkComplete=function(){return we&&Ee&&(Ae.complete(),true)};var getCompletionSubject=function(){if(!be){be=new ge.Subject;he.innerFrom(R(be)).subscribe(me.createOperatorSubscriber(Ae,(function(){if(ye){subscribeForRepeatWhen()}else{ve=true}}),(function(){Ee=true;checkComplete()})))}return be};var subscribeForRepeatWhen=function(){we=false;ye=pe.subscribe(me.createOperatorSubscriber(Ae,undefined,(function(){we=true;!checkComplete()&&getCompletionSubject().next()})));if(ve){ye.unsubscribe();ye=null;ve=false;subscribeForRepeatWhen()}};subscribeForRepeatWhen()}))}pe.repeatWhen=repeatWhen},56251:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.retry=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(60283);var me=Ae(59757);var ve=Ae(57105);function retry(R){if(R===void 0){R=Infinity}var pe;if(R&&typeof R==="object"){pe=R}else{pe={count:R}}var Ae=pe.count,be=Ae===void 0?Infinity:Ae,Ee=pe.delay,we=pe.resetOnSuccess,Ce=we===void 0?false:we;return be<=0?ye.identity:he.operate((function(R,pe){var Ae=0;var he;var subscribeForRetry=function(){var ye=false;he=R.subscribe(ge.createOperatorSubscriber(pe,(function(R){if(Ce){Ae=0}pe.next(R)}),undefined,(function(R){if(Ae++{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.retryWhen=void 0;var he=Ae(57105);var ge=Ae(49944);var ye=Ae(38669);var me=Ae(69549);function retryWhen(R){return ye.operate((function(pe,Ae){var ye;var ve=false;var be;var subscribeForRetryWhen=function(){ye=pe.subscribe(me.createOperatorSubscriber(Ae,undefined,undefined,(function(pe){if(!be){be=new ge.Subject;he.innerFrom(R(be)).subscribe(me.createOperatorSubscriber(Ae,(function(){return ye?subscribeForRetryWhen():ve=true})))}if(be){be.next(pe)}})));if(ve){ye.unsubscribe();ye=null;ve=false;subscribeForRetryWhen()}};subscribeForRetryWhen()}))}pe.retryWhen=retryWhen},13774:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.sample=void 0;var he=Ae(57105);var ge=Ae(38669);var ye=Ae(11642);var me=Ae(69549);function sample(R){return ge.operate((function(pe,Ae){var ge=false;var ve=null;pe.subscribe(me.createOperatorSubscriber(Ae,(function(R){ge=true;ve=R})));he.innerFrom(R).subscribe(me.createOperatorSubscriber(Ae,(function(){if(ge){ge=false;var R=ve;ve=null;Ae.next(R)}}),ye.noop))}))}pe.sample=sample},49807:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.sampleTime=void 0;var he=Ae(76072);var ge=Ae(13774);var ye=Ae(20029);function sampleTime(R,pe){if(pe===void 0){pe=he.asyncScheduler}return ge.sample(ye.interval(R,pe))}pe.sampleTime=sampleTime},25578:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scan=void 0;var he=Ae(38669);var ge=Ae(20998);function scan(R,pe){return he.operate(ge.scanInternals(R,pe,arguments.length>=2,true))}pe.scan=scan},20998:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scanInternals=void 0;var he=Ae(69549);function scanInternals(R,pe,Ae,ge,ye){return function(me,ve){var be=Ae;var Ee=pe;var we=0;me.subscribe(he.createOperatorSubscriber(ve,(function(pe){var Ae=we++;Ee=be?R(Ee,pe,Ae):(be=true,pe);ge&&ve.next(Ee)}),ye&&function(){be&&ve.next(Ee);ve.complete()}))}}pe.scanInternals=scanInternals},16126:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.sequenceEqual=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(57105);function sequenceEqual(R,pe){if(pe===void 0){pe=function(R,pe){return R===pe}}return he.operate((function(Ae,he){var me=createState();var ve=createState();var emit=function(R){he.next(R);he.complete()};var createSubscriber=function(R,Ae){var ye=ge.createOperatorSubscriber(he,(function(he){var ge=Ae.buffer,ye=Ae.complete;if(ge.length===0){ye?emit(false):R.buffer.push(he)}else{!pe(he,ge.shift())&&emit(false)}}),(function(){R.complete=true;var pe=Ae.complete,he=Ae.buffer;pe&&emit(he.length===0);ye===null||ye===void 0?void 0:ye.unsubscribe()}));return ye};Ae.subscribe(createSubscriber(me,ve));ye.innerFrom(R).subscribe(createSubscriber(ve,me))}))}pe.sequenceEqual=sequenceEqual;function createState(){return{buffer:[],complete:false}}},48960:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae0){pe=new ve.SafeSubscriber({next:function(R){return Se.next(R)},error:function(R){Ie=true;cancelReset();he=handleReset(reset,ge,R);Se.error(R)},complete:function(){Ce=true;cancelReset();he=handleReset(reset,we);Se.complete()}});ye.innerFrom(R).subscribe(pe)}}))(R)}}pe.share=share;function handleReset(R,pe){var Ae=[];for(var me=2;me{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.shareReplay=void 0;var he=Ae(22351);var ge=Ae(48960);function shareReplay(R,pe,Ae){var ye,me,ve;var be;var Ee=false;if(R&&typeof R==="object"){ye=R.bufferSize,be=ye===void 0?Infinity:ye,me=R.windowTime,pe=me===void 0?Infinity:me,ve=R.refCount,Ee=ve===void 0?false:ve,Ae=R.scheduler}else{be=R!==null&&R!==void 0?R:Infinity}return ge.share({connector:function(){return new he.ReplaySubject(be,pe,Ae)},resetOnError:true,resetOnComplete:false,resetOnRefCountZero:Ee})}pe.shareReplay=shareReplay},58441:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.single=void 0;var he=Ae(99391);var ge=Ae(49048);var ye=Ae(74431);var me=Ae(38669);var ve=Ae(69549);function single(R){return me.operate((function(pe,Ae){var me=false;var be;var Ee=false;var we=0;pe.subscribe(ve.createOperatorSubscriber(Ae,(function(he){Ee=true;if(!R||R(he,we++,pe)){me&&Ae.error(new ge.SequenceError("Too many matching values"));me=true;be=he}}),(function(){if(me){Ae.next(be);Ae.complete()}else{Ae.error(Ee?new ye.NotFoundError("No matching values"):new he.EmptyError)}})))}))}pe.single=single},80947:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.skip=void 0;var he=Ae(36894);function skip(R){return he.filter((function(pe,Ae){return R<=Ae}))}pe.skip=skip},65865:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.skipLast=void 0;var he=Ae(60283);var ge=Ae(38669);var ye=Ae(69549);function skipLast(R){return R<=0?he.identity:ge.operate((function(pe,Ae){var he=new Array(R);var ge=0;pe.subscribe(ye.createOperatorSubscriber(Ae,(function(pe){var ye=ge++;if(ye{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.skipUntil=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(57105);var me=Ae(11642);function skipUntil(R){return he.operate((function(pe,Ae){var he=false;var ve=ge.createOperatorSubscriber(Ae,(function(){ve===null||ve===void 0?void 0:ve.unsubscribe();he=true}),me.noop);ye.innerFrom(R).subscribe(ve);pe.subscribe(ge.createOperatorSubscriber(Ae,(function(R){return he&&Ae.next(R)})))}))}pe.skipUntil=skipUntil},92550:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.skipWhile=void 0;var he=Ae(38669);var ge=Ae(69549);function skipWhile(R){return he.operate((function(pe,Ae){var he=false;var ye=0;pe.subscribe(ge.createOperatorSubscriber(Ae,(function(pe){return(he||(he=!R(pe,ye++)))&&Ae.next(pe)})))}))}pe.skipWhile=skipWhile},25471:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.startWith=void 0;var he=Ae(4675);var ge=Ae(34890);var ye=Ae(38669);function startWith(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.subscribeOn=void 0;var he=Ae(38669);function subscribeOn(R,pe){if(pe===void 0){pe=0}return he.operate((function(Ae,he){he.add(R.schedule((function(){return Ae.subscribe(he)}),pe))}))}pe.subscribeOn=subscribeOn},40327:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.switchAll=void 0;var he=Ae(26704);var ge=Ae(60283);function switchAll(){return he.switchMap(ge.identity)}pe.switchAll=switchAll},26704:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.switchMap=void 0;var he=Ae(57105);var ge=Ae(38669);var ye=Ae(69549);function switchMap(R,pe){return ge.operate((function(Ae,ge){var me=null;var ve=0;var be=false;var checkComplete=function(){return be&&!me&&ge.complete()};Ae.subscribe(ye.createOperatorSubscriber(ge,(function(Ae){me===null||me===void 0?void 0:me.unsubscribe();var be=0;var Ee=ve++;he.innerFrom(R(Ae,Ee)).subscribe(me=ye.createOperatorSubscriber(ge,(function(R){return ge.next(pe?pe(Ae,R,Ee,be++):R)}),(function(){me=null;checkComplete()})))}),(function(){be=true;checkComplete()})))}))}pe.switchMap=switchMap},1713:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.switchMapTo=void 0;var he=Ae(26704);var ge=Ae(67206);function switchMapTo(R,pe){return ge.isFunction(pe)?he.switchMap((function(){return R}),pe):he.switchMap((function(){return R}))}pe.switchMapTo=switchMapTo},13355:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.switchScan=void 0;var he=Ae(26704);var ge=Ae(38669);function switchScan(R,pe){return ge.operate((function(Ae,ge){var ye=pe;he.switchMap((function(pe,Ae){return R(ye,pe,Ae)}),(function(R,pe){return ye=pe,pe}))(Ae).subscribe(ge);return function(){ye=null}}))}pe.switchScan=switchScan},33698:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.take=void 0;var he=Ae(70437);var ge=Ae(38669);var ye=Ae(69549);function take(R){return R<=0?function(){return he.EMPTY}:ge.operate((function(pe,Ae){var he=0;pe.subscribe(ye.createOperatorSubscriber(Ae,(function(pe){if(++he<=R){Ae.next(pe);if(R<=he){Ae.complete()}}})))}))}pe.take=take},65041:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.takeLast=void 0;var ge=Ae(70437);var ye=Ae(38669);var me=Ae(69549);function takeLast(R){return R<=0?function(){return ge.EMPTY}:ye.operate((function(pe,Ae){var ge=[];pe.subscribe(me.createOperatorSubscriber(Ae,(function(pe){ge.push(pe);R{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.takeUntil=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(57105);var me=Ae(11642);function takeUntil(R){return he.operate((function(pe,Ae){ye.innerFrom(R).subscribe(ge.createOperatorSubscriber(Ae,(function(){return Ae.complete()}),me.noop));!Ae.closed&&pe.subscribe(Ae)}))}pe.takeUntil=takeUntil},76700:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.takeWhile=void 0;var he=Ae(38669);var ge=Ae(69549);function takeWhile(R,pe){if(pe===void 0){pe=false}return he.operate((function(Ae,he){var ye=0;Ae.subscribe(ge.createOperatorSubscriber(he,(function(Ae){var ge=R(Ae,ye++);(ge||pe)&&he.next(Ae);!ge&&he.complete()})))}))}pe.takeWhile=takeWhile},48845:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.tap=void 0;var he=Ae(67206);var ge=Ae(38669);var ye=Ae(69549);var me=Ae(60283);function tap(R,pe,Ae){var ve=he.isFunction(R)||pe||Ae?{next:R,error:pe,complete:Ae}:R;return ve?ge.operate((function(R,pe){var Ae;(Ae=ve.subscribe)===null||Ae===void 0?void 0:Ae.call(ve);var he=true;R.subscribe(ye.createOperatorSubscriber(pe,(function(R){var Ae;(Ae=ve.next)===null||Ae===void 0?void 0:Ae.call(ve,R);pe.next(R)}),(function(){var R;he=false;(R=ve.complete)===null||R===void 0?void 0:R.call(ve);pe.complete()}),(function(R){var Ae;he=false;(Ae=ve.error)===null||Ae===void 0?void 0:Ae.call(ve,R);pe.error(R)}),(function(){var R,pe;if(he){(R=ve.unsubscribe)===null||R===void 0?void 0:R.call(ve)}(pe=ve.finalize)===null||pe===void 0?void 0:pe.call(ve)})))})):me.identity}pe.tap=tap},36713:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.throttle=void 0;var he=Ae(38669);var ge=Ae(69549);var ye=Ae(57105);function throttle(R,pe){return he.operate((function(Ae,he){var me=pe!==null&&pe!==void 0?pe:{},ve=me.leading,be=ve===void 0?true:ve,Ee=me.trailing,we=Ee===void 0?false:Ee;var Ce=false;var _e=null;var Ie=null;var Se=false;var endThrottling=function(){Ie===null||Ie===void 0?void 0:Ie.unsubscribe();Ie=null;if(we){send();Se&&he.complete()}};var cleanupThrottling=function(){Ie=null;Se&&he.complete()};var startThrottle=function(pe){return Ie=ye.innerFrom(R(pe)).subscribe(ge.createOperatorSubscriber(he,endThrottling,cleanupThrottling))};var send=function(){if(Ce){Ce=false;var R=_e;_e=null;he.next(R);!Se&&startThrottle(R)}};Ae.subscribe(ge.createOperatorSubscriber(he,(function(R){Ce=true;_e=R;!(Ie&&!Ie.closed)&&(be?send():startThrottle(R))}),(function(){Se=true;!(we&&Ce&&Ie&&!Ie.closed)&&he.complete()})))}))}pe.throttle=throttle},83435:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.throttleTime=void 0;var he=Ae(76072);var ge=Ae(36713);var ye=Ae(59757);function throttleTime(R,pe,Ae){if(pe===void 0){pe=he.asyncScheduler}var me=ye.timer(R,pe);return ge.throttle((function(){return me}),Ae)}pe.throttleTime=throttleTime},91566:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.throwIfEmpty=void 0;var he=Ae(99391);var ge=Ae(38669);var ye=Ae(69549);function throwIfEmpty(R){if(R===void 0){R=defaultErrorFactory}return ge.operate((function(pe,Ae){var he=false;pe.subscribe(ye.createOperatorSubscriber(Ae,(function(R){he=true;Ae.next(R)}),(function(){return he?Ae.complete():Ae.error(R())})))}))}pe.throwIfEmpty=throwIfEmpty;function defaultErrorFactory(){return new he.EmptyError}},14643:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TimeInterval=pe.timeInterval=void 0;var he=Ae(76072);var ge=Ae(38669);var ye=Ae(69549);function timeInterval(R){if(R===void 0){R=he.asyncScheduler}return ge.operate((function(pe,Ae){var he=R.now();pe.subscribe(ye.createOperatorSubscriber(Ae,(function(pe){var ge=R.now();var ye=ge-he;he=ge;Ae.next(new me(pe,ye))})))}))}pe.timeInterval=timeInterval;var me=function(){function TimeInterval(R,pe){this.value=R;this.interval=pe}return TimeInterval}();pe.TimeInterval=me},12051:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.timeout=pe.TimeoutError=void 0;var he=Ae(76072);var ge=Ae(60935);var ye=Ae(38669);var me=Ae(57105);var ve=Ae(8858);var be=Ae(69549);var Ee=Ae(82877);pe.TimeoutError=ve.createErrorClass((function(R){return function TimeoutErrorImpl(pe){if(pe===void 0){pe=null}R(this);this.message="Timeout has occurred";this.name="TimeoutError";this.info=pe}}));function timeout(R,pe){var Ae=ge.isValidDate(R)?{first:R}:typeof R==="number"?{each:R}:R,ve=Ae.first,we=Ae.each,Ce=Ae.with,_e=Ce===void 0?timeoutErrorFactory:Ce,Ie=Ae.scheduler,Se=Ie===void 0?pe!==null&&pe!==void 0?pe:he.asyncScheduler:Ie,Be=Ae.meta,ke=Be===void 0?null:Be;if(ve==null&&we==null){throw new TypeError("No timeout provided.")}return ye.operate((function(R,pe){var Ae;var he;var ge=null;var ye=0;var startTimer=function(R){he=Ee.executeSchedule(pe,Se,(function(){try{Ae.unsubscribe();me.innerFrom(_e({meta:ke,lastValue:ge,seen:ye})).subscribe(pe)}catch(R){pe.error(R)}}),R)};Ae=R.subscribe(be.createOperatorSubscriber(pe,(function(R){he===null||he===void 0?void 0:he.unsubscribe();ye++;pe.next(ge=R);we>0&&startTimer(we)}),undefined,undefined,(function(){if(!(he===null||he===void 0?void 0:he.closed)){he===null||he===void 0?void 0:he.unsubscribe()}ge=null})));!ye&&startTimer(ve!=null?typeof ve==="number"?ve:+ve-Se.now():we)}))}pe.timeout=timeout;function timeoutErrorFactory(R){throw new pe.TimeoutError(R)}},43540:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.timeoutWith=void 0;var he=Ae(76072);var ge=Ae(60935);var ye=Ae(12051);function timeoutWith(R,pe,Ae){var me;var ve;var be;Ae=Ae!==null&&Ae!==void 0?Ae:he.async;if(ge.isValidDate(R)){me=R}else if(typeof R==="number"){ve=R}if(pe){be=function(){return pe}}else{throw new TypeError("No observable provided to switch to")}if(me==null&&ve==null){throw new TypeError("No timeout provided.")}return ye.timeout({first:me,each:ve,scheduler:Ae,with:be})}pe.timeoutWith=timeoutWith},75518:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.timestamp=void 0;var he=Ae(91395);var ge=Ae(5987);function timestamp(R){if(R===void 0){R=he.dateTimestampProvider}return ge.map((function(pe){return{value:pe,timestamp:R.now()}}))}pe.timestamp=timestamp},35114:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.toArray=void 0;var he=Ae(73694);var ge=Ae(38669);var arrReducer=function(R,pe){return R.push(pe),R};function toArray(){return ge.operate((function(R,pe){he.reduce(arrReducer,[])(R).subscribe(pe)}))}pe.toArray=toArray},98255:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.window=void 0;var he=Ae(49944);var ge=Ae(38669);var ye=Ae(69549);var me=Ae(11642);var ve=Ae(57105);function window(R){return ge.operate((function(pe,Ae){var ge=new he.Subject;Ae.next(ge.asObservable());var errorHandler=function(R){ge.error(R);Ae.error(R)};pe.subscribe(ye.createOperatorSubscriber(Ae,(function(R){return ge===null||ge===void 0?void 0:ge.next(R)}),(function(){ge.complete();Ae.complete()}),errorHandler));ve.innerFrom(R).subscribe(ye.createOperatorSubscriber(Ae,(function(){ge.complete();Ae.next(ge=new he.Subject)}),me.noop,errorHandler));return function(){ge===null||ge===void 0?void 0:ge.unsubscribe();ge=null}}))}pe.window=window},73144:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.windowCount=void 0;var ge=Ae(49944);var ye=Ae(38669);var me=Ae(69549);function windowCount(R,pe){if(pe===void 0){pe=0}var Ae=pe>0?pe:R;return ye.operate((function(pe,ye){var ve=[new ge.Subject];var be=[];var Ee=0;ye.next(ve[0].asObservable());pe.subscribe(me.createOperatorSubscriber(ye,(function(pe){var me,be;try{for(var we=he(ve),Ce=we.next();!Ce.done;Ce=we.next()){var _e=Ce.value;_e.next(pe)}}catch(R){me={error:R}}finally{try{if(Ce&&!Ce.done&&(be=we.return))be.call(we)}finally{if(me)throw me.error}}var Ie=Ee-R+1;if(Ie>=0&&Ie%Ae===0){ve.shift().complete()}if(++Ee%Ae===0){var Se=new ge.Subject;ve.push(Se);ye.next(Se.asObservable())}}),(function(){while(ve.length>0){ve.shift().complete()}ye.complete()}),(function(R){while(ve.length>0){ve.shift().error(R)}ye.error(R)}),(function(){be=null;ve=null})))}))}pe.windowCount=windowCount},2738:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.windowTime=void 0;var he=Ae(49944);var ge=Ae(76072);var ye=Ae(79548);var me=Ae(38669);var ve=Ae(69549);var be=Ae(68499);var Ee=Ae(34890);var we=Ae(82877);function windowTime(R){var pe,Ae;var Ce=[];for(var _e=1;_e=0){we.executeSchedule(Ae,Ie,startWindow,Se,true)}else{me=true}startWindow();var loop=function(R){return ge.slice().forEach(R)};var terminate=function(R){loop((function(pe){var Ae=pe.window;return R(Ae)}));R(Ae);Ae.unsubscribe()};pe.subscribe(ve.createOperatorSubscriber(Ae,(function(R){loop((function(pe){pe.window.next(R);Be<=++pe.seen&&closeWindow(pe)}))}),(function(){return terminate((function(R){return R.complete()}))}),(function(R){return terminate((function(pe){return pe.error(R)}))})));return function(){ge=null}}))}pe.windowTime=windowTime},52741:function(R,pe,Ae){"use strict";var he=this&&this.__values||function(R){var pe=typeof Symbol==="function"&&Symbol.iterator,Ae=pe&&R[pe],he=0;if(Ae)return Ae.call(R);if(R&&typeof R.length==="number")return{next:function(){if(R&&he>=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pe,"__esModule",{value:true});pe.windowToggle=void 0;var ge=Ae(49944);var ye=Ae(79548);var me=Ae(38669);var ve=Ae(57105);var be=Ae(69549);var Ee=Ae(11642);var we=Ae(68499);function windowToggle(R,pe){return me.operate((function(Ae,me){var Ce=[];var handleError=function(R){while(0{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.windowWhen=void 0;var he=Ae(49944);var ge=Ae(38669);var ye=Ae(69549);var me=Ae(57105);function windowWhen(R){return ge.operate((function(pe,Ae){var ge;var ve;var handleError=function(R){ge.error(R);Ae.error(R)};var openWindow=function(){ve===null||ve===void 0?void 0:ve.unsubscribe();ge===null||ge===void 0?void 0:ge.complete();ge=new he.Subject;Ae.next(ge.asObservable());var pe;try{pe=me.innerFrom(R())}catch(R){handleError(R);return}pe.subscribe(ve=ye.createOperatorSubscriber(Ae,openWindow,openWindow,handleError))};openWindow();pe.subscribe(ye.createOperatorSubscriber(Ae,(function(R){return ge.next(R)}),(function(){ge.complete();Ae.complete()}),handleError,(function(){ve===null||ve===void 0?void 0:ve.unsubscribe();ge=null})))}))}pe.windowWhen=windowWhen},20501:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.zipAll=void 0;var he=Ae(62504);var ge=Ae(29341);function zipAll(R){return ge.joinAllInternals(he.zip,R)}pe.zipAll=zipAll},95520:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduleArray=void 0;var he=Ae(53014);function scheduleArray(R,pe){return new he.Observable((function(Ae){var he=0;return pe.schedule((function(){if(he===R.length){Ae.complete()}else{Ae.next(R[he++]);if(!Ae.closed){this.schedule()}}}))}))}pe.scheduleArray=scheduleArray},75347:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduleAsyncIterable=void 0;var he=Ae(53014);var ge=Ae(82877);function scheduleAsyncIterable(R,pe){if(!R){throw new Error("Iterable cannot be null")}return new he.Observable((function(Ae){ge.executeSchedule(Ae,pe,(function(){var he=R[Symbol.asyncIterator]();ge.executeSchedule(Ae,pe,(function(){he.next().then((function(R){if(R.done){Ae.complete()}else{Ae.next(R.value)}}))}),0,true)}))}))}pe.scheduleAsyncIterable=scheduleAsyncIterable},59461:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduleIterable=void 0;var he=Ae(53014);var ge=Ae(85517);var ye=Ae(67206);var me=Ae(82877);function scheduleIterable(R,pe){return new he.Observable((function(Ae){var he;me.executeSchedule(Ae,pe,(function(){he=R[ge.iterator]();me.executeSchedule(Ae,pe,(function(){var R;var pe;var ge;try{R=he.next(),pe=R.value,ge=R.done}catch(R){Ae.error(R);return}if(ge){Ae.complete()}else{Ae.next(pe)}}),0,true)}));return function(){return ye.isFunction(he===null||he===void 0?void 0:he.return)&&he.return()}}))}pe.scheduleIterable=scheduleIterable},17096:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduleObservable=void 0;var he=Ae(57105);var ge=Ae(22451);var ye=Ae(7224);function scheduleObservable(R,pe){return he.innerFrom(R).pipe(ye.subscribeOn(pe),ge.observeOn(pe))}pe.scheduleObservable=scheduleObservable},24087:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.schedulePromise=void 0;var he=Ae(57105);var ge=Ae(22451);var ye=Ae(7224);function schedulePromise(R,pe){return he.innerFrom(R).pipe(ye.subscribeOn(pe),ge.observeOn(pe))}pe.schedulePromise=schedulePromise},5967:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduleReadableStreamLike=void 0;var he=Ae(75347);var ge=Ae(99621);function scheduleReadableStreamLike(R,pe){return he.scheduleAsyncIterable(ge.readableStreamLikeToAsyncGenerator(R),pe)}pe.scheduleReadableStreamLike=scheduleReadableStreamLike},6151:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.scheduled=void 0;var he=Ae(17096);var ge=Ae(24087);var ye=Ae(11348);var me=Ae(59461);var ve=Ae(75347);var be=Ae(67984);var Ee=Ae(65585);var we=Ae(24461);var Ce=Ae(94292);var _e=Ae(44408);var Ie=Ae(97364);var Se=Ae(99621);var Be=Ae(5967);function scheduled(R,pe){if(R!=null){if(be.isInteropObservable(R)){return he.scheduleObservable(R,pe)}if(we.isArrayLike(R)){return ye.scheduleArray(R,pe)}if(Ee.isPromise(R)){return ge.schedulePromise(R,pe)}if(_e.isAsyncIterable(R)){return ve.scheduleAsyncIterable(R,pe)}if(Ce.isIterable(R)){return me.scheduleIterable(R,pe)}if(Se.isReadableStreamLike(R)){return Be.scheduleReadableStreamLike(R,pe)}}throw Ie.createInvalidObservableTypeError(R)}pe.scheduled=scheduled},83848:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.Action=void 0;var ge=Ae(79548);var ye=function(R){he(Action,R);function Action(pe,Ae){return R.call(this)||this}Action.prototype.schedule=function(R,pe){if(pe===void 0){pe=0}return this};return Action}(ge.Subscription);pe.Action=ye},95991:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AnimationFrameAction=void 0;var ge=Ae(13280);var ye=Ae(62738);var me=function(R){he(AnimationFrameAction,R);function AnimationFrameAction(pe,Ae){var he=R.call(this,pe,Ae)||this;he.scheduler=pe;he.work=Ae;return he}AnimationFrameAction.prototype.requestAsyncId=function(pe,Ae,he){if(he===void 0){he=0}if(he!==null&&he>0){return R.prototype.requestAsyncId.call(this,pe,Ae,he)}pe.actions.push(this);return pe._scheduled||(pe._scheduled=ye.animationFrameProvider.requestAnimationFrame((function(){return pe.flush(undefined)})))};AnimationFrameAction.prototype.recycleAsyncId=function(pe,Ae,he){var ge;if(he===void 0){he=0}if(he!=null?he>0:this.delay>0){return R.prototype.recycleAsyncId.call(this,pe,Ae,he)}var me=pe.actions;if(Ae!=null&&((ge=me[me.length-1])===null||ge===void 0?void 0:ge.id)!==Ae){ye.animationFrameProvider.cancelAnimationFrame(Ae);pe._scheduled=undefined}return undefined};return AnimationFrameAction}(ge.AsyncAction);pe.AnimationFrameAction=me},98768:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AnimationFrameScheduler=void 0;var ge=Ae(61673);var ye=function(R){he(AnimationFrameScheduler,R);function AnimationFrameScheduler(){return R!==null&&R.apply(this,arguments)||this}AnimationFrameScheduler.prototype.flush=function(R){this._active=true;var pe=this._scheduled;this._scheduled=undefined;var Ae=this.actions;var he;R=R||Ae.shift();do{if(he=R.execute(R.state,R.delay)){break}}while((R=Ae[0])&&R.id===pe&&Ae.shift());this._active=false;if(he){while((R=Ae[0])&&R.id===pe&&Ae.shift()){R.unsubscribe()}throw he}};return AnimationFrameScheduler}(ge.AsyncScheduler);pe.AnimationFrameScheduler=ye},12424:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AsapAction=void 0;var ge=Ae(13280);var ye=Ae(63475);var me=function(R){he(AsapAction,R);function AsapAction(pe,Ae){var he=R.call(this,pe,Ae)||this;he.scheduler=pe;he.work=Ae;return he}AsapAction.prototype.requestAsyncId=function(pe,Ae,he){if(he===void 0){he=0}if(he!==null&&he>0){return R.prototype.requestAsyncId.call(this,pe,Ae,he)}pe.actions.push(this);return pe._scheduled||(pe._scheduled=ye.immediateProvider.setImmediate(pe.flush.bind(pe,undefined)))};AsapAction.prototype.recycleAsyncId=function(pe,Ae,he){var ge;if(he===void 0){he=0}if(he!=null?he>0:this.delay>0){return R.prototype.recycleAsyncId.call(this,pe,Ae,he)}var me=pe.actions;if(Ae!=null&&((ge=me[me.length-1])===null||ge===void 0?void 0:ge.id)!==Ae){ye.immediateProvider.clearImmediate(Ae);if(pe._scheduled===Ae){pe._scheduled=undefined}}return undefined};return AsapAction}(ge.AsyncAction);pe.AsapAction=me},76641:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AsapScheduler=void 0;var ge=Ae(61673);var ye=function(R){he(AsapScheduler,R);function AsapScheduler(){return R!==null&&R.apply(this,arguments)||this}AsapScheduler.prototype.flush=function(R){this._active=true;var pe=this._scheduled;this._scheduled=undefined;var Ae=this.actions;var he;R=R||Ae.shift();do{if(he=R.execute(R.state,R.delay)){break}}while((R=Ae[0])&&R.id===pe&&Ae.shift());this._active=false;if(he){while((R=Ae[0])&&R.id===pe&&Ae.shift()){R.unsubscribe()}throw he}};return AsapScheduler}(ge.AsyncScheduler);pe.AsapScheduler=ye},13280:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AsyncAction=void 0;var ge=Ae(83848);var ye=Ae(55341);var me=Ae(68499);var ve=function(R){he(AsyncAction,R);function AsyncAction(pe,Ae){var he=R.call(this,pe,Ae)||this;he.scheduler=pe;he.work=Ae;he.pending=false;return he}AsyncAction.prototype.schedule=function(R,pe){var Ae;if(pe===void 0){pe=0}if(this.closed){return this}this.state=R;var he=this.id;var ge=this.scheduler;if(he!=null){this.id=this.recycleAsyncId(ge,he,pe)}this.pending=true;this.delay=pe;this.id=(Ae=this.id)!==null&&Ae!==void 0?Ae:this.requestAsyncId(ge,this.id,pe);return this};AsyncAction.prototype.requestAsyncId=function(R,pe,Ae){if(Ae===void 0){Ae=0}return ye.intervalProvider.setInterval(R.flush.bind(R,this),Ae)};AsyncAction.prototype.recycleAsyncId=function(R,pe,Ae){if(Ae===void 0){Ae=0}if(Ae!=null&&this.delay===Ae&&this.pending===false){return pe}if(pe!=null){ye.intervalProvider.clearInterval(pe)}return undefined};AsyncAction.prototype.execute=function(R,pe){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;var Ae=this._execute(R,pe);if(Ae){return Ae}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}};AsyncAction.prototype._execute=function(R,pe){var Ae=false;var he;try{this.work(R)}catch(R){Ae=true;he=R?R:new Error("Scheduled action threw falsy error")}if(Ae){this.unsubscribe();return he}};AsyncAction.prototype.unsubscribe=function(){if(!this.closed){var pe=this,Ae=pe.id,he=pe.scheduler;var ge=he.actions;this.work=this.state=this.scheduler=null;this.pending=false;me.arrRemove(ge,this);if(Ae!=null){this.id=this.recycleAsyncId(he,Ae,null)}this.delay=null;R.prototype.unsubscribe.call(this)}};return AsyncAction}(ge.Action);pe.AsyncAction=ve},61673:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.AsyncScheduler=void 0;var ge=Ae(76243);var ye=function(R){he(AsyncScheduler,R);function AsyncScheduler(pe,Ae){if(Ae===void 0){Ae=ge.Scheduler.now}var he=R.call(this,pe,Ae)||this;he.actions=[];he._active=false;return he}AsyncScheduler.prototype.flush=function(R){var pe=this.actions;if(this._active){pe.push(R);return}var Ae;this._active=true;do{if(Ae=R.execute(R.state,R.delay)){break}}while(R=pe.shift());this._active=false;if(Ae){while(R=pe.shift()){R.unsubscribe()}throw Ae}};return AsyncScheduler}(ge.Scheduler);pe.AsyncScheduler=ye},32161:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.QueueAction=void 0;var ge=Ae(13280);var ye=function(R){he(QueueAction,R);function QueueAction(pe,Ae){var he=R.call(this,pe,Ae)||this;he.scheduler=pe;he.work=Ae;return he}QueueAction.prototype.schedule=function(pe,Ae){if(Ae===void 0){Ae=0}if(Ae>0){return R.prototype.schedule.call(this,pe,Ae)}this.delay=Ae;this.state=pe;this.scheduler.flush(this);return this};QueueAction.prototype.execute=function(pe,Ae){return Ae>0||this.closed?R.prototype.execute.call(this,pe,Ae):this._execute(pe,Ae)};QueueAction.prototype.requestAsyncId=function(pe,Ae,he){if(he===void 0){he=0}if(he!=null&&he>0||he==null&&this.delay>0){return R.prototype.requestAsyncId.call(this,pe,Ae,he)}pe.flush(this);return 0};return QueueAction}(ge.AsyncAction);pe.QueueAction=ye},48527:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.QueueScheduler=void 0;var ge=Ae(61673);var ye=function(R){he(QueueScheduler,R);function QueueScheduler(){return R!==null&&R.apply(this,arguments)||this}return QueueScheduler}(ge.AsyncScheduler);pe.QueueScheduler=ye},75348:function(R,pe,Ae){"use strict";var he=this&&this.__extends||function(){var extendStatics=function(R,pe){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};return extendStatics(R,pe)};return function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");extendStatics(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)}}();Object.defineProperty(pe,"__esModule",{value:true});pe.VirtualAction=pe.VirtualTimeScheduler=void 0;var ge=Ae(13280);var ye=Ae(79548);var me=Ae(61673);var ve=function(R){he(VirtualTimeScheduler,R);function VirtualTimeScheduler(pe,Ae){if(pe===void 0){pe=be}if(Ae===void 0){Ae=Infinity}var he=R.call(this,pe,(function(){return he.frame}))||this;he.maxFrames=Ae;he.frame=0;he.index=-1;return he}VirtualTimeScheduler.prototype.flush=function(){var R=this,pe=R.actions,Ae=R.maxFrames;var he;var ge;while((ge=pe[0])&&ge.delay<=Ae){pe.shift();this.frame=ge.delay;if(he=ge.execute(ge.state,ge.delay)){break}}if(he){while(ge=pe.shift()){ge.unsubscribe()}throw he}};VirtualTimeScheduler.frameTimeFactor=10;return VirtualTimeScheduler}(me.AsyncScheduler);pe.VirtualTimeScheduler=ve;var be=function(R){he(VirtualAction,R);function VirtualAction(pe,Ae,he){if(he===void 0){he=pe.index+=1}var ge=R.call(this,pe,Ae)||this;ge.scheduler=pe;ge.work=Ae;ge.index=he;ge.active=true;ge.index=pe.index=he;return ge}VirtualAction.prototype.schedule=function(pe,Ae){if(Ae===void 0){Ae=0}if(Number.isFinite(Ae)){if(!this.id){return R.prototype.schedule.call(this,pe,Ae)}this.active=false;var he=new VirtualAction(this.scheduler,this.work);this.add(he);return he.schedule(pe,Ae)}else{return ye.Subscription.EMPTY}};VirtualAction.prototype.requestAsyncId=function(R,pe,Ae){if(Ae===void 0){Ae=0}this.delay=R.frame+Ae;var he=R.actions;he.push(this);he.sort(VirtualAction.sortActions);return 1};VirtualAction.prototype.recycleAsyncId=function(R,pe,Ae){if(Ae===void 0){Ae=0}return undefined};VirtualAction.prototype._execute=function(pe,Ae){if(this.active===true){return R.prototype._execute.call(this,pe,Ae)}};VirtualAction.sortActions=function(R,pe){if(R.delay===pe.delay){if(R.index===pe.index){return 0}else if(R.index>pe.index){return 1}else{return-1}}else if(R.delay>pe.delay){return 1}else{return-1}};return VirtualAction}(ge.AsyncAction);pe.VirtualAction=be},51359:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.animationFrame=pe.animationFrameScheduler=void 0;var he=Ae(95991);var ge=Ae(98768);pe.animationFrameScheduler=new ge.AnimationFrameScheduler(he.AnimationFrameAction);pe.animationFrame=pe.animationFrameScheduler},62738:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.asap=pe.asapScheduler=void 0;var he=Ae(12424);var ge=Ae(76641);pe.asapScheduler=new ge.AsapScheduler(he.AsapAction);pe.asap=pe.asapScheduler},76072:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.async=pe.asyncScheduler=void 0;var he=Ae(13280);var ge=Ae(61673);pe.asyncScheduler=new ge.AsyncScheduler(he.AsyncAction);pe.async=pe.asyncScheduler},91395:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.dateTimestampProvider=void 0;pe.dateTimestampProvider={now:function(){return(pe.dateTimestampProvider.delegate||Date).now()},delegate:undefined}},63475:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var he=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.performanceTimestampProvider=void 0;pe.performanceTimestampProvider={now:function(){return(pe.performanceTimestampProvider.delegate||performance).now()},delegate:undefined}},82059:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.queue=pe.queueScheduler=void 0;var he=Ae(32161);var ge=Ae(48527);pe.queueScheduler=new ge.QueueScheduler(he.QueueAction);pe.queue=pe.queueScheduler},1613:function(R,pe){"use strict";var Ae=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var he=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.iterator=pe.getSymbolIterator=void 0;function getSymbolIterator(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}pe.getSymbolIterator=getSymbolIterator;pe.iterator=getSymbolIterator()},17186:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.observable=void 0;pe.observable=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}()},36639:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true})},49796:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ArgumentOutOfRangeError=void 0;var he=Ae(8858);pe.ArgumentOutOfRangeError=he.createErrorClass((function(R){return function ArgumentOutOfRangeErrorImpl(){R(this);this.name="ArgumentOutOfRangeError";this.message="argument out of range"}}))},99391:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.EmptyError=void 0;var he=Ae(8858);pe.EmptyError=he.createErrorClass((function(R){return function EmptyErrorImpl(){R(this);this.name="EmptyError";this.message="no elements in sequence"}}))},73555:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.TestTools=pe.Immediate=void 0;var Ae=1;var he;var ge={};function findAndClearHandle(R){if(R in ge){delete ge[R];return true}return false}pe.Immediate={setImmediate:function(R){var pe=Ae++;ge[pe]=true;if(!he){he=Promise.resolve()}he.then((function(){return findAndClearHandle(pe)&&R()}));return pe},clearImmediate:function(R){findAndClearHandle(R)}};pe.TestTools={pending:function(){return Object.keys(ge).length}}},74431:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.NotFoundError=void 0;var he=Ae(8858);pe.NotFoundError=he.createErrorClass((function(R){return function NotFoundErrorImpl(pe){R(this);this.name="NotFoundError";this.message=pe}}))},95266:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.ObjectUnsubscribedError=void 0;var he=Ae(8858);pe.ObjectUnsubscribedError=he.createErrorClass((function(R){return function ObjectUnsubscribedErrorImpl(){R(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}}))},49048:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SequenceError=void 0;var he=Ae(8858);pe.SequenceError=he.createErrorClass((function(R){return function SequenceErrorImpl(pe){R(this);this.name="SequenceError";this.message=pe}}))},56776:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.UnsubscriptionError=void 0;var he=Ae(8858);pe.UnsubscriptionError=he.createErrorClass((function(R){return function UnsubscriptionErrorImpl(pe){R(this);this.message=pe?pe.length+" errors occurred during unsubscription:\n"+pe.map((function(R,pe){return pe+1+") "+R.toString()})).join("\n "):"";this.name="UnsubscriptionError";this.errors=pe}}))},34890:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.popNumber=pe.popScheduler=pe.popResultSelector=void 0;var he=Ae(67206);var ge=Ae(16500);function last(R){return R[R.length-1]}function popResultSelector(R){return he.isFunction(last(R))?R.pop():undefined}pe.popResultSelector=popResultSelector;function popScheduler(R){return ge.isScheduler(last(R))?R.pop():undefined}pe.popScheduler=popScheduler;function popNumber(R,pe){return typeof last(R)==="number"?R.pop():pe}pe.popNumber=popNumber},12920:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.argsArgArrayOrObject=void 0;var Ae=Array.isArray;var he=Object.getPrototypeOf,ge=Object.prototype,ye=Object.keys;function argsArgArrayOrObject(R){if(R.length===1){var pe=R[0];if(Ae(pe)){return{args:pe,keys:null}}if(isPOJO(pe)){var he=ye(pe);return{args:he.map((function(R){return pe[R]})),keys:he}}}return{args:R,keys:null}}pe.argsArgArrayOrObject=argsArgArrayOrObject;function isPOJO(R){return R&&typeof R==="object"&&he(R)===ge}},18824:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.argsOrArgArray=void 0;var Ae=Array.isArray;function argsOrArgArray(R){return R.length===1&&Ae(R[0])?R[0]:R}pe.argsOrArgArray=argsOrArgArray},68499:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.arrRemove=void 0;function arrRemove(R,pe){if(R){var Ae=R.indexOf(pe);0<=Ae&&R.splice(Ae,1)}}pe.arrRemove=arrRemove},8858:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createErrorClass=void 0;function createErrorClass(R){var _super=function(R){Error.call(R);R.stack=(new Error).stack};var pe=R(_super);pe.prototype=Object.create(Error.prototype);pe.prototype.constructor=pe;return pe}pe.createErrorClass=createErrorClass},57834:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createObject=void 0;function createObject(R,pe){return R.reduce((function(R,Ae,he){return R[Ae]=pe[he],R}),{})}pe.createObject=createObject},31199:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.captureError=pe.errorContext=void 0;var he=Ae(92233);var ge=null;function errorContext(R){if(he.config.useDeprecatedSynchronousErrorHandling){var pe=!ge;if(pe){ge={errorThrown:false,error:null}}R();if(pe){var Ae=ge,ye=Ae.errorThrown,me=Ae.error;ge=null;if(ye){throw me}}}else{R()}}pe.errorContext=errorContext;function captureError(R){if(he.config.useDeprecatedSynchronousErrorHandling&&ge){ge.errorThrown=true;ge.error=R}}pe.captureError=captureError},82877:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.executeSchedule=void 0;function executeSchedule(R,pe,Ae,he,ge){if(he===void 0){he=0}if(ge===void 0){ge=false}var ye=pe.schedule((function(){Ae();if(ge){R.add(this.schedule(null,he))}else{this.unsubscribe()}}),he);R.add(ye);if(!ge){return ye}}pe.executeSchedule=executeSchedule},60283:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.identity=void 0;function identity(R){return R}pe.identity=identity},24461:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isArrayLike=void 0;pe.isArrayLike=function(R){return R&&typeof R.length==="number"&&typeof R!=="function"}},44408:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isAsyncIterable=void 0;var he=Ae(67206);function isAsyncIterable(R){return Symbol.asyncIterator&&he.isFunction(R===null||R===void 0?void 0:R[Symbol.asyncIterator])}pe.isAsyncIterable=isAsyncIterable},60935:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isValidDate=void 0;function isValidDate(R){return R instanceof Date&&!isNaN(R)}pe.isValidDate=isValidDate},67206:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isFunction=void 0;function isFunction(R){return typeof R==="function"}pe.isFunction=isFunction},67984:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isInteropObservable=void 0;var he=Ae(17186);var ge=Ae(67206);function isInteropObservable(R){return ge.isFunction(R[he.observable])}pe.isInteropObservable=isInteropObservable},94292:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isIterable=void 0;var he=Ae(85517);var ge=Ae(67206);function isIterable(R){return ge.isFunction(R===null||R===void 0?void 0:R[he.iterator])}pe.isIterable=isIterable},72259:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isObservable=void 0;var he=Ae(53014);var ge=Ae(67206);function isObservable(R){return!!R&&(R instanceof he.Observable||ge.isFunction(R.lift)&&ge.isFunction(R.subscribe))}pe.isObservable=isObservable},65585:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isPromise=void 0;var he=Ae(67206);function isPromise(R){return he.isFunction(R===null||R===void 0?void 0:R.then)}pe.isPromise=isPromise},99621:function(R,pe,Ae){"use strict";var he=this&&this.__generator||function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(me){if(he)throw new TypeError("Generator is already executing.");while(Ae)try{if(he=1,ge&&(ye=me[0]&2?ge["return"]:me[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,me[1])).done)return ye;if(ge=0,ye)me=[me[0]&2,ye.value];switch(me[0]){case 0:case 1:ye=me;break;case 4:Ae.label++;return{value:me[1],done:false};case 5:Ae.label++;ge=me[1];me=[0];continue;case 7:me=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(me[0]===6||me[0]===2)){Ae=0;continue}if(me[0]===3&&(!ye||me[1]>ye[0]&&me[1]1||resume(R,pe)}))}}function resume(R,pe){try{step(he[R](pe))}catch(R){settle(me[0][3],R)}}function step(R){R.value instanceof ge?Promise.resolve(R.value.v).then(fulfill,reject):settle(me[0][2],R)}function fulfill(R){resume("next",R)}function reject(R){resume("throw",R)}function settle(R,pe){if(R(pe),me.shift(),me.length)resume(me[0][0],me[0][1])}};Object.defineProperty(pe,"__esModule",{value:true});pe.isReadableStreamLike=pe.readableStreamLikeToAsyncGenerator=void 0;var me=Ae(67206);function readableStreamLikeToAsyncGenerator(R){return ye(this,arguments,(function readableStreamLikeToAsyncGenerator_1(){var pe,Ae,ye,me;return he(this,(function(he){switch(he.label){case 0:pe=R.getReader();he.label=1;case 1:he.trys.push([1,,9,10]);he.label=2;case 2:if(false){}return[4,ge(pe.read())];case 3:Ae=he.sent(),ye=Ae.value,me=Ae.done;if(!me)return[3,5];return[4,ge(void 0)];case 4:return[2,he.sent()];case 5:return[4,ge(ye)];case 6:return[4,he.sent()];case 7:he.sent();return[3,2];case 8:return[3,10];case 9:pe.releaseLock();return[7];case 10:return[2]}}))}))}pe.readableStreamLikeToAsyncGenerator=readableStreamLikeToAsyncGenerator;function isReadableStreamLike(R){return me.isFunction(R===null||R===void 0?void 0:R.getReader)}pe.isReadableStreamLike=isReadableStreamLike},16500:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isScheduler=void 0;var he=Ae(67206);function isScheduler(R){return R&&he.isFunction(R.schedule)}pe.isScheduler=isScheduler},38669:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.operate=pe.hasLift=void 0;var he=Ae(67206);function hasLift(R){return he.isFunction(R===null||R===void 0?void 0:R.lift)}pe.hasLift=hasLift;function operate(R){return function(pe){if(hasLift(pe)){return pe.lift((function(pe){try{return R(pe,this)}catch(R){this.error(R)}}))}throw new TypeError("Unable to lift unknown Observable type")}}pe.operate=operate},78934:function(R,pe,Ae){"use strict";var he=this&&this.__read||function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};var ge=this&&this.__spreadArray||function(R,pe){for(var Ae=0,he=pe.length,ge=R.length;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.noop=void 0;function noop(){}pe.noop=noop},54338:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.not=void 0;function not(R,pe){return function(Ae,he){return!R.call(pe,Ae,he)}}pe.not=not},49587:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.pipeFromArray=pe.pipe=void 0;var he=Ae(60283);function pipe(){var R=[];for(var pe=0;pe{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.reportUnhandledError=void 0;var he=Ae(92233);var ge=Ae(1613);function reportUnhandledError(R){ge.timeoutProvider.setTimeout((function(){var pe=he.config.onUnhandledError;if(pe){pe(R)}else{throw R}}))}pe.reportUnhandledError=reportUnhandledError},97364:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.createInvalidObservableTypeError=void 0;function createInvalidObservableTypeError(R){return new TypeError("You provided "+(R!==null&&typeof R==="object"?"an invalid object":"'"+R+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}pe.createInvalidObservableTypeError=createInvalidObservableTypeError},50749:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.mergeAll=pe.merge=pe.max=pe.materialize=pe.mapTo=pe.map=pe.last=pe.isEmpty=pe.ignoreElements=pe.groupBy=pe.first=pe.findIndex=pe.find=pe.finalize=pe.filter=pe.expand=pe.exhaustMap=pe.exhaustAll=pe.exhaust=pe.every=pe.endWith=pe.elementAt=pe.distinctUntilKeyChanged=pe.distinctUntilChanged=pe.distinct=pe.dematerialize=pe.delayWhen=pe.delay=pe.defaultIfEmpty=pe.debounceTime=pe.debounce=pe.count=pe.connect=pe.concatWith=pe.concatMapTo=pe.concatMap=pe.concatAll=pe.concat=pe.combineLatestWith=pe.combineLatest=pe.combineLatestAll=pe.combineAll=pe.catchError=pe.bufferWhen=pe.bufferToggle=pe.bufferTime=pe.bufferCount=pe.buffer=pe.auditTime=pe.audit=void 0;pe.timeInterval=pe.throwIfEmpty=pe.throttleTime=pe.throttle=pe.tap=pe.takeWhile=pe.takeUntil=pe.takeLast=pe.take=pe.switchScan=pe.switchMapTo=pe.switchMap=pe.switchAll=pe.subscribeOn=pe.startWith=pe.skipWhile=pe.skipUntil=pe.skipLast=pe.skip=pe.single=pe.shareReplay=pe.share=pe.sequenceEqual=pe.scan=pe.sampleTime=pe.sample=pe.refCount=pe.retryWhen=pe.retry=pe.repeatWhen=pe.repeat=pe.reduce=pe.raceWith=pe.race=pe.publishReplay=pe.publishLast=pe.publishBehavior=pe.publish=pe.pluck=pe.partition=pe.pairwise=pe.onErrorResumeNext=pe.observeOn=pe.multicast=pe.min=pe.mergeWith=pe.mergeScan=pe.mergeMapTo=pe.mergeMap=pe.flatMap=void 0;pe.zipWith=pe.zipAll=pe.zip=pe.withLatestFrom=pe.windowWhen=pe.windowToggle=pe.windowTime=pe.windowCount=pe.window=pe.toArray=pe.timestamp=pe.timeoutWith=pe.timeout=void 0;var he=Ae(82704);Object.defineProperty(pe,"audit",{enumerable:true,get:function(){return he.audit}});var ge=Ae(18780);Object.defineProperty(pe,"auditTime",{enumerable:true,get:function(){return ge.auditTime}});var ye=Ae(34253);Object.defineProperty(pe,"buffer",{enumerable:true,get:function(){return ye.buffer}});var me=Ae(17253);Object.defineProperty(pe,"bufferCount",{enumerable:true,get:function(){return me.bufferCount}});var ve=Ae(73102);Object.defineProperty(pe,"bufferTime",{enumerable:true,get:function(){return ve.bufferTime}});var be=Ae(83781);Object.defineProperty(pe,"bufferToggle",{enumerable:true,get:function(){return be.bufferToggle}});var Ee=Ae(82855);Object.defineProperty(pe,"bufferWhen",{enumerable:true,get:function(){return Ee.bufferWhen}});var we=Ae(37765);Object.defineProperty(pe,"catchError",{enumerable:true,get:function(){return we.catchError}});var Ce=Ae(88817);Object.defineProperty(pe,"combineAll",{enumerable:true,get:function(){return Ce.combineAll}});var _e=Ae(91063);Object.defineProperty(pe,"combineLatestAll",{enumerable:true,get:function(){return _e.combineLatestAll}});var Ie=Ae(96008);Object.defineProperty(pe,"combineLatest",{enumerable:true,get:function(){return Ie.combineLatest}});var Se=Ae(19044);Object.defineProperty(pe,"combineLatestWith",{enumerable:true,get:function(){return Se.combineLatestWith}});var Be=Ae(18500);Object.defineProperty(pe,"concat",{enumerable:true,get:function(){return Be.concat}});var ke=Ae(88049);Object.defineProperty(pe,"concatAll",{enumerable:true,get:function(){return ke.concatAll}});var Oe=Ae(19130);Object.defineProperty(pe,"concatMap",{enumerable:true,get:function(){return Oe.concatMap}});var Re=Ae(61596);Object.defineProperty(pe,"concatMapTo",{enumerable:true,get:function(){return Re.concatMapTo}});var Qe=Ae(97998);Object.defineProperty(pe,"concatWith",{enumerable:true,get:function(){return Qe.concatWith}});var xe=Ae(51101);Object.defineProperty(pe,"connect",{enumerable:true,get:function(){return xe.connect}});var Pe=Ae(36571);Object.defineProperty(pe,"count",{enumerable:true,get:function(){return Pe.count}});var Te=Ae(19348);Object.defineProperty(pe,"debounce",{enumerable:true,get:function(){return Te.debounce}});var De=Ae(62379);Object.defineProperty(pe,"debounceTime",{enumerable:true,get:function(){return De.debounceTime}});var Ne=Ae(30621);Object.defineProperty(pe,"defaultIfEmpty",{enumerable:true,get:function(){return Ne.defaultIfEmpty}});var Me=Ae(99818);Object.defineProperty(pe,"delay",{enumerable:true,get:function(){return Me.delay}});var je=Ae(16994);Object.defineProperty(pe,"delayWhen",{enumerable:true,get:function(){return je.delayWhen}});var Fe=Ae(95338);Object.defineProperty(pe,"dematerialize",{enumerable:true,get:function(){return Fe.dematerialize}});var Le=Ae(52594);Object.defineProperty(pe,"distinct",{enumerable:true,get:function(){return Le.distinct}});var Ue=Ae(20632);Object.defineProperty(pe,"distinctUntilChanged",{enumerable:true,get:function(){return Ue.distinctUntilChanged}});var He=Ae(13809);Object.defineProperty(pe,"distinctUntilKeyChanged",{enumerable:true,get:function(){return He.distinctUntilKeyChanged}});var Je=Ae(73381);Object.defineProperty(pe,"elementAt",{enumerable:true,get:function(){return Je.elementAt}});var We=Ae(42961);Object.defineProperty(pe,"endWith",{enumerable:true,get:function(){return We.endWith}});var Ve=Ae(69559);Object.defineProperty(pe,"every",{enumerable:true,get:function(){return Ve.every}});var Ke=Ae(75686);Object.defineProperty(pe,"exhaust",{enumerable:true,get:function(){return Ke.exhaust}});var Ge=Ae(79777);Object.defineProperty(pe,"exhaustAll",{enumerable:true,get:function(){return Ge.exhaustAll}});var Ye=Ae(21527);Object.defineProperty(pe,"exhaustMap",{enumerable:true,get:function(){return Ye.exhaustMap}});var qe=Ae(21585);Object.defineProperty(pe,"expand",{enumerable:true,get:function(){return qe.expand}});var $e=Ae(36894);Object.defineProperty(pe,"filter",{enumerable:true,get:function(){return $e.filter}});var ze=Ae(4013);Object.defineProperty(pe,"finalize",{enumerable:true,get:function(){return ze.finalize}});var Xe=Ae(28981);Object.defineProperty(pe,"find",{enumerable:true,get:function(){return Xe.find}});var Ze=Ae(92602);Object.defineProperty(pe,"findIndex",{enumerable:true,get:function(){return Ze.findIndex}});var et=Ae(63345);Object.defineProperty(pe,"first",{enumerable:true,get:function(){return et.first}});var tt=Ae(51650);Object.defineProperty(pe,"groupBy",{enumerable:true,get:function(){return tt.groupBy}});var rt=Ae(31062);Object.defineProperty(pe,"ignoreElements",{enumerable:true,get:function(){return rt.ignoreElements}});var nt=Ae(77722);Object.defineProperty(pe,"isEmpty",{enumerable:true,get:function(){return nt.isEmpty}});var it=Ae(46831);Object.defineProperty(pe,"last",{enumerable:true,get:function(){return it.last}});var ot=Ae(5987);Object.defineProperty(pe,"map",{enumerable:true,get:function(){return ot.map}});var st=Ae(52300);Object.defineProperty(pe,"mapTo",{enumerable:true,get:function(){return st.mapTo}});var at=Ae(67108);Object.defineProperty(pe,"materialize",{enumerable:true,get:function(){return at.materialize}});var ct=Ae(17314);Object.defineProperty(pe,"max",{enumerable:true,get:function(){return ct.max}});var ut=Ae(39510);Object.defineProperty(pe,"merge",{enumerable:true,get:function(){return ut.merge}});var lt=Ae(2057);Object.defineProperty(pe,"mergeAll",{enumerable:true,get:function(){return lt.mergeAll}});var dt=Ae(40186);Object.defineProperty(pe,"flatMap",{enumerable:true,get:function(){return dt.flatMap}});var ft=Ae(69914);Object.defineProperty(pe,"mergeMap",{enumerable:true,get:function(){return ft.mergeMap}});var pt=Ae(49151);Object.defineProperty(pe,"mergeMapTo",{enumerable:true,get:function(){return pt.mergeMapTo}});var At=Ae(11519);Object.defineProperty(pe,"mergeScan",{enumerable:true,get:function(){return At.mergeScan}});var ht=Ae(31564);Object.defineProperty(pe,"mergeWith",{enumerable:true,get:function(){return ht.mergeWith}});var gt=Ae(87641);Object.defineProperty(pe,"min",{enumerable:true,get:function(){return gt.min}});var yt=Ae(65457);Object.defineProperty(pe,"multicast",{enumerable:true,get:function(){return yt.multicast}});var mt=Ae(22451);Object.defineProperty(pe,"observeOn",{enumerable:true,get:function(){return mt.observeOn}});var vt=Ae(33569);Object.defineProperty(pe,"onErrorResumeNext",{enumerable:true,get:function(){return vt.onErrorResumeNext}});var bt=Ae(52206);Object.defineProperty(pe,"pairwise",{enumerable:true,get:function(){return bt.pairwise}});var Et=Ae(55949);Object.defineProperty(pe,"partition",{enumerable:true,get:function(){return Et.partition}});var wt=Ae(16073);Object.defineProperty(pe,"pluck",{enumerable:true,get:function(){return wt.pluck}});var Ct=Ae(84084);Object.defineProperty(pe,"publish",{enumerable:true,get:function(){return Ct.publish}});var _t=Ae(40045);Object.defineProperty(pe,"publishBehavior",{enumerable:true,get:function(){return _t.publishBehavior}});var It=Ae(84149);Object.defineProperty(pe,"publishLast",{enumerable:true,get:function(){return It.publishLast}});var St=Ae(47656);Object.defineProperty(pe,"publishReplay",{enumerable:true,get:function(){return St.publishReplay}});var Bt=Ae(85846);Object.defineProperty(pe,"race",{enumerable:true,get:function(){return Bt.race}});var kt=Ae(58008);Object.defineProperty(pe,"raceWith",{enumerable:true,get:function(){return kt.raceWith}});var Ot=Ae(73694);Object.defineProperty(pe,"reduce",{enumerable:true,get:function(){return Ot.reduce}});var Rt=Ae(22418);Object.defineProperty(pe,"repeat",{enumerable:true,get:function(){return Rt.repeat}});var Qt=Ae(70754);Object.defineProperty(pe,"repeatWhen",{enumerable:true,get:function(){return Qt.repeatWhen}});var xt=Ae(56251);Object.defineProperty(pe,"retry",{enumerable:true,get:function(){return xt.retry}});var Pt=Ae(69018);Object.defineProperty(pe,"retryWhen",{enumerable:true,get:function(){return Pt.retryWhen}});var Tt=Ae(2331);Object.defineProperty(pe,"refCount",{enumerable:true,get:function(){return Tt.refCount}});var Dt=Ae(13774);Object.defineProperty(pe,"sample",{enumerable:true,get:function(){return Dt.sample}});var Nt=Ae(49807);Object.defineProperty(pe,"sampleTime",{enumerable:true,get:function(){return Nt.sampleTime}});var Mt=Ae(25578);Object.defineProperty(pe,"scan",{enumerable:true,get:function(){return Mt.scan}});var jt=Ae(16126);Object.defineProperty(pe,"sequenceEqual",{enumerable:true,get:function(){return jt.sequenceEqual}});var Ft=Ae(48960);Object.defineProperty(pe,"share",{enumerable:true,get:function(){return Ft.share}});var Lt=Ae(92118);Object.defineProperty(pe,"shareReplay",{enumerable:true,get:function(){return Lt.shareReplay}});var Ut=Ae(58441);Object.defineProperty(pe,"single",{enumerable:true,get:function(){return Ut.single}});var Ht=Ae(80947);Object.defineProperty(pe,"skip",{enumerable:true,get:function(){return Ht.skip}});var Jt=Ae(65865);Object.defineProperty(pe,"skipLast",{enumerable:true,get:function(){return Jt.skipLast}});var Wt=Ae(41110);Object.defineProperty(pe,"skipUntil",{enumerable:true,get:function(){return Wt.skipUntil}});var Vt=Ae(92550);Object.defineProperty(pe,"skipWhile",{enumerable:true,get:function(){return Vt.skipWhile}});var Kt=Ae(25471);Object.defineProperty(pe,"startWith",{enumerable:true,get:function(){return Kt.startWith}});var Gt=Ae(7224);Object.defineProperty(pe,"subscribeOn",{enumerable:true,get:function(){return Gt.subscribeOn}});var Yt=Ae(40327);Object.defineProperty(pe,"switchAll",{enumerable:true,get:function(){return Yt.switchAll}});var qt=Ae(26704);Object.defineProperty(pe,"switchMap",{enumerable:true,get:function(){return qt.switchMap}});var $t=Ae(1713);Object.defineProperty(pe,"switchMapTo",{enumerable:true,get:function(){return $t.switchMapTo}});var zt=Ae(13355);Object.defineProperty(pe,"switchScan",{enumerable:true,get:function(){return zt.switchScan}});var Xt=Ae(33698);Object.defineProperty(pe,"take",{enumerable:true,get:function(){return Xt.take}});var Zt=Ae(65041);Object.defineProperty(pe,"takeLast",{enumerable:true,get:function(){return Zt.takeLast}});var er=Ae(55150);Object.defineProperty(pe,"takeUntil",{enumerable:true,get:function(){return er.takeUntil}});var tr=Ae(76700);Object.defineProperty(pe,"takeWhile",{enumerable:true,get:function(){return tr.takeWhile}});var rr=Ae(48845);Object.defineProperty(pe,"tap",{enumerable:true,get:function(){return rr.tap}});var nr=Ae(36713);Object.defineProperty(pe,"throttle",{enumerable:true,get:function(){return nr.throttle}});var ir=Ae(83435);Object.defineProperty(pe,"throttleTime",{enumerable:true,get:function(){return ir.throttleTime}});var sr=Ae(91566);Object.defineProperty(pe,"throwIfEmpty",{enumerable:true,get:function(){return sr.throwIfEmpty}});var ar=Ae(14643);Object.defineProperty(pe,"timeInterval",{enumerable:true,get:function(){return ar.timeInterval}});var cr=Ae(12051);Object.defineProperty(pe,"timeout",{enumerable:true,get:function(){return cr.timeout}});var ur=Ae(43540);Object.defineProperty(pe,"timeoutWith",{enumerable:true,get:function(){return ur.timeoutWith}});var lr=Ae(75518);Object.defineProperty(pe,"timestamp",{enumerable:true,get:function(){return lr.timestamp}});var dr=Ae(35114);Object.defineProperty(pe,"toArray",{enumerable:true,get:function(){return dr.toArray}});var fr=Ae(98255);Object.defineProperty(pe,"window",{enumerable:true,get:function(){return fr.window}});var pr=Ae(73144);Object.defineProperty(pe,"windowCount",{enumerable:true,get:function(){return pr.windowCount}});var Ar=Ae(2738);Object.defineProperty(pe,"windowTime",{enumerable:true,get:function(){return Ar.windowTime}});var hr=Ae(52741);Object.defineProperty(pe,"windowToggle",{enumerable:true,get:function(){return hr.windowToggle}});var gr=Ae(82645);Object.defineProperty(pe,"windowWhen",{enumerable:true,get:function(){return gr.windowWhen}});var yr=Ae(20501);Object.defineProperty(pe,"withLatestFrom",{enumerable:true,get:function(){return yr.withLatestFrom}});var mr=Ae(17600);Object.defineProperty(pe,"zip",{enumerable:true,get:function(){return mr.zip}});var vr=Ae(92335);Object.defineProperty(pe,"zipAll",{enumerable:true,get:function(){return vr.zipAll}});var br=Ae(95520);Object.defineProperty(pe,"zipWith",{enumerable:true,get:function(){return br.zipWith}})},59318:(R,pe,Ae)=>{"use strict";const he=Ae(22037);const ge=Ae(76224);const ye=Ae(31621);const{env:me}=process;let ve;if(ye("no-color")||ye("no-colors")||ye("color=false")||ye("color=never")){ve=0}else if(ye("color")||ye("colors")||ye("color=true")||ye("color=always")){ve=1}if("FORCE_COLOR"in me){if(me.FORCE_COLOR==="true"){ve=1}else if(me.FORCE_COLOR==="false"){ve=0}else{ve=me.FORCE_COLOR.length===0?1:Math.min(parseInt(me.FORCE_COLOR,10),3)}}function translateLevel(R){if(R===0){return false}return{level:R,hasBasic:true,has256:R>=2,has16m:R>=3}}function supportsColor(R,pe){if(ve===0){return 0}if(ye("color=16m")||ye("color=full")||ye("color=truecolor")){return 3}if(ye("color=256")){return 2}if(R&&!pe&&ve===undefined){return 0}const Ae=ve||0;if(me.TERM==="dumb"){return Ae}if(process.platform==="win32"){const R=he.release().split(".");if(Number(R[0])>=10&&Number(R[2])>=10586){return Number(R[2])>=14931?3:2}return 1}if("CI"in me){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((R=>R in me))||me.CI_NAME==="codeship"){return 1}return Ae}if("TEAMCITY_VERSION"in me){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(me.TEAMCITY_VERSION)?1:0}if(me.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in me){const R=parseInt((me.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(me.TERM_PROGRAM){case"iTerm.app":return R>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(me.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(me.TERM)){return 1}if("COLORTERM"in me){return 1}return Ae}function getSupportLevel(R){const pe=supportsColor(R,R&&R.isTTY);return translateLevel(pe)}R.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,ge.isatty(1))),stderr:translateLevel(supportsColor(true,ge.isatty(2)))}},4351:R=>{var pe;var Ae;var he;var ge;var ye;var me;var ve;var be;var Ee;var we;var Ce;var _e;var Ie;var Se;var Be;var ke;var Oe;var Re;var Qe;var xe;var Pe;var Te;var De;var Ne;var Me;var je;var Fe;var Le;var Ue;var He;var Je;(function(pe){var Ae=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(R){pe(createExporter(Ae,createExporter(R)))}))}else if(true&&typeof R.exports==="object"){pe(createExporter(Ae,createExporter(R.exports)))}else{pe(createExporter(Ae))}function createExporter(R,pe){if(R!==Ae){if(typeof Object.create==="function"){Object.defineProperty(R,"__esModule",{value:true})}else{R.__esModule=true}}return function(Ae,he){return R[Ae]=pe?pe(Ae,he):he}}})((function(R){var We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(Object.prototype.hasOwnProperty.call(pe,Ae))R[Ae]=pe[Ae]};pe=function(R,pe){if(typeof pe!=="function"&&pe!==null)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");We(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)};Ae=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae=0;ve--)if(me=R[ve])ye=(ge<3?me(ye):ge>3?me(pe,Ae,ye):me(pe,Ae))||ye;return ge>3&&ye&&Object.defineProperty(pe,Ae,ye),ye};ye=function(R,pe){return function(Ae,he){pe(Ae,he,R)}};me=function(R,pe,Ae,he,ge,ye){function accept(R){if(R!==void 0&&typeof R!=="function")throw new TypeError("Function expected");return R}var me=he.kind,ve=me==="getter"?"get":me==="setter"?"set":"value";var be=!pe&&R?he["static"]?R:R.prototype:null;var Ee=pe||(be?Object.getOwnPropertyDescriptor(be,he.name):{});var we,Ce=false;for(var _e=Ae.length-1;_e>=0;_e--){var Ie={};for(var Se in he)Ie[Se]=Se==="access"?{}:he[Se];for(var Se in he.access)Ie.access[Se]=he.access[Se];Ie.addInitializer=function(R){if(Ce)throw new TypeError("Cannot add initializers after decoration has completed");ye.push(accept(R||null))};var Be=(0,Ae[_e])(me==="accessor"?{get:Ee.get,set:Ee.set}:Ee[ve],Ie);if(me==="accessor"){if(Be===void 0)continue;if(Be===null||typeof Be!=="object")throw new TypeError("Object expected");if(we=accept(Be.get))Ee.get=we;if(we=accept(Be.set))Ee.set=we;if(we=accept(Be.init))ge.unshift(we)}else if(we=accept(Be)){if(me==="field")ge.unshift(we);else Ee[ve]=we}}if(be)Object.defineProperty(be,he.name,Ee);Ce=true};ve=function(R,pe,Ae){var he=arguments.length>2;for(var ge=0;ge0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){Ae=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Be=function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};ke=function(){for(var R=[],pe=0;pe1||resume(R,pe)}))};if(pe)ge[R]=pe(ge[R])}}function resume(R,pe){try{step(he[R](pe))}catch(R){settle(ye[0][3],R)}}function step(R){R.value instanceof Qe?Promise.resolve(R.value.v).then(fulfill,reject):settle(ye[0][2],R)}function fulfill(R){resume("next",R)}function reject(R){resume("throw",R)}function settle(R,pe){if(R(pe),ye.shift(),ye.length)resume(ye[0][0],ye[0][1])}};Pe=function(R){var pe,Ae;return pe={},verb("next"),verb("throw",(function(R){throw R})),verb("return"),pe[Symbol.iterator]=function(){return this},pe;function verb(he,ge){pe[he]=R[he]?function(pe){return(Ae=!Ae)?{value:Qe(R[he](pe)),done:false}:ge?ge(pe):pe}:ge}};Te=function(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var pe=R[Symbol.asyncIterator],Ae;return pe?pe.call(R):(R=typeof Se==="function"?Se(R):R[Symbol.iterator](),Ae={},verb("next"),verb("throw"),verb("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae);function verb(pe){Ae[pe]=R[pe]&&function(Ae){return new Promise((function(he,ge){Ae=R[pe](Ae),settle(he,ge,Ae.done,Ae.value)}))}}function settle(R,pe,Ae,he){Promise.resolve(he).then((function(pe){R({value:pe,done:Ae})}),pe)}};De=function(R,pe){if(Object.defineProperty){Object.defineProperty(R,"raw",{value:pe})}else{R.raw=pe}return R};var Ve=Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe};Ne=function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))Ue(pe,R,Ae);Ve(pe,R);return pe};Me=function(R){return R&&R.__esModule?R:{default:R}};je=function(R,pe,Ae,he){if(Ae==="a"&&!he)throw new TypeError("Private accessor was defined without a getter");if(typeof pe==="function"?R!==pe||!he:!pe.has(R))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Ae==="m"?he:Ae==="a"?he.call(R):he?he.value:pe.get(R)};Fe=function(R,pe,Ae,he,ge){if(he==="m")throw new TypeError("Private method is not writable");if(he==="a"&&!ge)throw new TypeError("Private accessor was defined without a setter");if(typeof pe==="function"?R!==pe||!ge:!pe.has(R))throw new TypeError("Cannot write private member to an object whose class did not declare it");return he==="a"?ge.call(R,Ae):ge?ge.value=Ae:pe.set(R,Ae),Ae};Le=function(R,pe){if(pe===null||typeof pe!=="object"&&typeof pe!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof R==="function"?pe===R:R.has(pe)};He=function(R,pe,Ae){if(pe!==null&&pe!==void 0){if(typeof pe!=="object"&&typeof pe!=="function")throw new TypeError("Object expected.");var he,ge;if(Ae){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");he=pe[Symbol.asyncDispose]}if(he===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");he=pe[Symbol.dispose];if(Ae)ge=he}if(typeof he!=="function")throw new TypeError("Object not disposable.");if(ge)he=function(){try{ge.call(this)}catch(R){return Promise.reject(R)}};R.stack.push({value:pe,dispose:he,async:Ae})}else if(Ae){R.stack.push({async:true})}return pe};var Ke=typeof SuppressedError==="function"?SuppressedError:function(R,pe,Ae){var he=new Error(Ae);return he.name="SuppressedError",he.error=R,he.suppressed=pe,he};Je=function(R){function fail(pe){R.error=R.hasError?new Ke(pe,R.error,"An error was suppressed during disposal."):pe;R.hasError=true}function next(){while(R.stack.length){var pe=R.stack.pop();try{var Ae=pe.dispose&&pe.dispose.call(pe.value);if(pe.async)return Promise.resolve(Ae).then(next,(function(R){fail(R);return next()}))}catch(R){fail(R)}}if(R.hasError)throw R.error}return next()};R("__extends",pe);R("__assign",Ae);R("__rest",he);R("__decorate",ge);R("__param",ye);R("__esDecorate",me);R("__runInitializers",ve);R("__propKey",be);R("__setFunctionName",Ee);R("__metadata",we);R("__awaiter",Ce);R("__generator",_e);R("__exportStar",Ie);R("__createBinding",Ue);R("__values",Se);R("__read",Be);R("__spread",ke);R("__spreadArrays",Oe);R("__spreadArray",Re);R("__await",Qe);R("__asyncGenerator",xe);R("__asyncDelegator",Pe);R("__asyncValues",Te);R("__makeTemplateObject",De);R("__importStar",Ne);R("__importDefault",Me);R("__classPrivateFieldGet",je);R("__classPrivateFieldSet",Fe);R("__classPrivateFieldIn",Le);R("__addDisposableResource",He);R("__disposeResources",Je)}))},21701:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);const ge=Ae(87120);const ye=Ae(2032);const me=Ae(87160);function autoInjectable(){return function(R){const pe=he.getParamInfo(R);return class extends R{constructor(...Ae){super(...Ae.concat(pe.slice(Ae.length).map(((pe,he)=>{try{if(ye.isTokenDescriptor(pe)){if(ye.isTransformDescriptor(pe)){return pe.multiple?ge.instance.resolve(pe.transform).transform(ge.instance.resolveAll(pe.token),...pe.transformArgs):ge.instance.resolve(pe.transform).transform(ge.instance.resolve(pe.token),...pe.transformArgs)}else{return pe.multiple?ge.instance.resolveAll(pe.token):ge.instance.resolve(pe.token)}}else if(ye.isTransformDescriptor(pe)){return ge.instance.resolve(pe.transform).transform(ge.instance.resolve(pe.token),...pe.transformArgs)}return ge.instance.resolve(pe)}catch(pe){const ge=he+Ae.length;throw new Error(me.formatErrorCtor(R,ge,pe))}}))))}}}}pe["default"]=autoInjectable},16840:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(21701);Object.defineProperty(pe,"autoInjectable",{enumerable:true,get:function(){return he.default}});var ge=Ae(92468);Object.defineProperty(pe,"inject",{enumerable:true,get:function(){return ge.default}});var ye=Ae(9394);Object.defineProperty(pe,"injectable",{enumerable:true,get:function(){return ye.default}});var me=Ae(79297);Object.defineProperty(pe,"registry",{enumerable:true,get:function(){return me.default}});var ve=Ae(93384);Object.defineProperty(pe,"singleton",{enumerable:true,get:function(){return ve.default}});var be=Ae(60754);Object.defineProperty(pe,"injectAll",{enumerable:true,get:function(){return be.default}});var Ee=Ae(35777);Object.defineProperty(pe,"injectAllWithTransform",{enumerable:true,get:function(){return Ee.default}});var we=Ae(49882);Object.defineProperty(pe,"injectWithTransform",{enumerable:true,get:function(){return we.default}});var Ce=Ae(92072);Object.defineProperty(pe,"scoped",{enumerable:true,get:function(){return Ce.default}})},35777:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);function injectAllWithTransform(R,pe,...Ae){const ge={token:R,multiple:true,transform:pe,transformArgs:Ae};return he.defineInjectionTokenMetadata(ge)}pe["default"]=injectAllWithTransform},60754:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);function injectAll(R){const pe={token:R,multiple:true};return he.defineInjectionTokenMetadata(pe)}pe["default"]=injectAll},49882:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);function injectWithTransform(R,pe,...Ae){return he.defineInjectionTokenMetadata(R,{transformToken:pe,args:Ae})}pe["default"]=injectWithTransform},92468:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);function inject(R){return he.defineInjectionTokenMetadata(R)}pe["default"]=inject},9394:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(46939);const ge=Ae(87120);function injectable(){return function(R){ge.typeInfo.set(R,he.getParamInfo(R))}}pe["default"]=injectable},79297:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(61470);const ge=Ae(87120);function registry(R=[]){return function(pe){R.forEach((R=>{var{token:pe,options:Ae}=R,ye=he.__rest(R,["token","options"]);return ge.instance.register(pe,ye,Ae)}));return pe}}pe["default"]=registry},92072:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(9394);const ge=Ae(87120);function scoped(R,pe){return function(Ae){he.default()(Ae);ge.instance.register(pe||Ae,Ae,{lifecycle:R})}}pe["default"]=scoped},93384:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(9394);const ge=Ae(87120);function singleton(){return function(R){he.default()(R);ge.instance.registerSingleton(R)}}pe["default"]=singleton},87120:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.instance=pe.typeInfo=void 0;const he=Ae(61470);const ge=Ae(11372);const ye=Ae(59177);const me=Ae(2032);const ve=Ae(75941);const be=Ae(56501);const Ee=Ae(64330);const we=Ae(87160);const Ce=Ae(21782);const _e=Ae(358);const Ie=Ae(21780);pe.typeInfo=new Map;class InternalDependencyContainer{constructor(R){this.parent=R;this._registry=new ve.default;this.interceptors=new Ie.default;this.disposed=false;this.disposables=new Set}register(R,pe,Ae={lifecycle:be.default.Transient}){this.ensureNotDisposed();let he;if(!ye.isProvider(pe)){he={useClass:pe}}else{he=pe}if(ge.isTokenProvider(he)){const pe=[R];let Ae=he;while(Ae!=null){const R=Ae.useToken;if(pe.includes(R)){throw new Error(`Token registration cycle detected! ${[...pe,R].join(" -> ")}`)}pe.push(R);const he=this._registry.get(R);if(he&&ge.isTokenProvider(he.provider)){Ae=he.provider}else{Ae=null}}}if(Ae.lifecycle===be.default.Singleton||Ae.lifecycle==be.default.ContainerScoped||Ae.lifecycle==be.default.ResolutionScoped){if(ge.isValueProvider(he)||ge.isFactoryProvider(he)){throw new Error(`Cannot use lifecycle "${be.default[Ae.lifecycle]}" with ValueProviders or FactoryProviders`)}}this._registry.set(R,{provider:he,options:Ae});return this}registerType(R,pe){this.ensureNotDisposed();if(ge.isNormalToken(pe)){return this.register(R,{useToken:pe})}return this.register(R,{useClass:pe})}registerInstance(R,pe){this.ensureNotDisposed();return this.register(R,{useValue:pe})}registerSingleton(R,pe){this.ensureNotDisposed();if(ge.isNormalToken(R)){if(ge.isNormalToken(pe)){return this.register(R,{useToken:pe},{lifecycle:be.default.Singleton})}else if(pe){return this.register(R,{useClass:pe},{lifecycle:be.default.Singleton})}throw new Error('Cannot register a type name as a singleton without a "to" token')}let Ae=R;if(pe&&!ge.isNormalToken(pe)){Ae=pe}return this.register(R,{useClass:Ae},{lifecycle:be.default.Singleton})}resolve(R,pe=new Ee.default){this.ensureNotDisposed();const Ae=this.getRegistration(R);if(!Ae&&ge.isNormalToken(R)){throw new Error(`Attempted to resolve unregistered dependency token: "${R.toString()}"`)}this.executePreResolutionInterceptor(R,"Single");if(Ae){const he=this.resolveRegistration(Ae,pe);this.executePostResolutionInterceptor(R,he,"Single");return he}if(me.isConstructorToken(R)){const Ae=this.construct(R,pe);this.executePostResolutionInterceptor(R,Ae,"Single");return Ae}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")}executePreResolutionInterceptor(R,pe){if(this.interceptors.preResolution.has(R)){const Ae=[];for(const he of this.interceptors.preResolution.getAll(R)){if(he.options.frequency!="Once"){Ae.push(he)}he.callback(R,pe)}this.interceptors.preResolution.setAll(R,Ae)}}executePostResolutionInterceptor(R,pe,Ae){if(this.interceptors.postResolution.has(R)){const he=[];for(const ge of this.interceptors.postResolution.getAll(R)){if(ge.options.frequency!="Once"){he.push(ge)}ge.callback(R,pe,Ae)}this.interceptors.postResolution.setAll(R,he)}}resolveRegistration(R,pe){this.ensureNotDisposed();if(R.options.lifecycle===be.default.ResolutionScoped&&pe.scopedResolutions.has(R)){return pe.scopedResolutions.get(R)}const Ae=R.options.lifecycle===be.default.Singleton;const he=R.options.lifecycle===be.default.ContainerScoped;const ye=Ae||he;let me;if(ge.isValueProvider(R.provider)){me=R.provider.useValue}else if(ge.isTokenProvider(R.provider)){me=ye?R.instance||(R.instance=this.resolve(R.provider.useToken,pe)):this.resolve(R.provider.useToken,pe)}else if(ge.isClassProvider(R.provider)){me=ye?R.instance||(R.instance=this.construct(R.provider.useClass,pe)):this.construct(R.provider.useClass,pe)}else if(ge.isFactoryProvider(R.provider)){me=R.provider.useFactory(this)}else{me=this.construct(R.provider,pe)}if(R.options.lifecycle===be.default.ResolutionScoped){pe.scopedResolutions.set(R,me)}return me}resolveAll(R,pe=new Ee.default){this.ensureNotDisposed();const Ae=this.getAllRegistrations(R);if(!Ae&&ge.isNormalToken(R)){throw new Error(`Attempted to resolve unregistered dependency token: "${R.toString()}"`)}this.executePreResolutionInterceptor(R,"All");if(Ae){const he=Ae.map((R=>this.resolveRegistration(R,pe)));this.executePostResolutionInterceptor(R,he,"All");return he}const he=[this.construct(R,pe)];this.executePostResolutionInterceptor(R,he,"All");return he}isRegistered(R,pe=false){this.ensureNotDisposed();return this._registry.has(R)||pe&&(this.parent||false)&&this.parent.isRegistered(R,true)}reset(){this.ensureNotDisposed();this._registry.clear();this.interceptors.preResolution.clear();this.interceptors.postResolution.clear()}clearInstances(){this.ensureNotDisposed();for(const[R,pe]of this._registry.entries()){this._registry.setAll(R,pe.filter((R=>!ge.isValueProvider(R.provider))).map((R=>{R.instance=undefined;return R})))}}createChildContainer(){this.ensureNotDisposed();const R=new InternalDependencyContainer(this);for(const[pe,Ae]of this._registry.entries()){if(Ae.some((({options:R})=>R.lifecycle===be.default.ContainerScoped))){R._registry.setAll(pe,Ae.map((R=>{if(R.options.lifecycle===be.default.ContainerScoped){return{provider:R.provider,options:R.options}}return R})))}}return R}beforeResolution(R,pe,Ae={frequency:"Always"}){this.interceptors.preResolution.set(R,{callback:pe,options:Ae})}afterResolution(R,pe,Ae={frequency:"Always"}){this.interceptors.postResolution.set(R,{callback:pe,options:Ae})}dispose(){return he.__awaiter(this,void 0,void 0,(function*(){this.disposed=true;const R=[];this.disposables.forEach((pe=>{const Ae=pe.dispose();if(Ae){R.push(Ae)}}));yield Promise.all(R)}))}getRegistration(R){if(this.isRegistered(R)){return this._registry.get(R)}if(this.parent){return this.parent.getRegistration(R)}return null}getAllRegistrations(R){if(this.isRegistered(R)){return this._registry.getAll(R)}if(this.parent){return this.parent.getAllRegistrations(R)}return null}construct(R,Ae){if(R instanceof Ce.DelayedConstructor){return R.createProxy((R=>this.resolve(R,Ae)))}const he=(()=>{const he=pe.typeInfo.get(R);if(!he||he.length===0){if(R.length===0){return new R}else{throw new Error(`TypeInfo not known for "${R.name}"`)}}const ge=he.map(this.resolveParams(Ae,R));return new R(...ge)})();if(_e.isDisposable(he)){this.disposables.add(he)}return he}resolveParams(R,pe){return(Ae,he)=>{try{if(me.isTokenDescriptor(Ae)){if(me.isTransformDescriptor(Ae)){return Ae.multiple?this.resolve(Ae.transform).transform(this.resolveAll(Ae.token),...Ae.transformArgs):this.resolve(Ae.transform).transform(this.resolve(Ae.token,R),...Ae.transformArgs)}else{return Ae.multiple?this.resolveAll(Ae.token):this.resolve(Ae.token,R)}}else if(me.isTransformDescriptor(Ae)){return this.resolve(Ae.transform,R).transform(this.resolve(Ae.token,R),...Ae.transformArgs)}return this.resolve(Ae,R)}catch(R){throw new Error(we.formatErrorCtor(pe,he,R))}}}ensureNotDisposed(){if(this.disposed){throw new Error("This container has been disposed, you cannot interact with a disposed container")}}}pe.instance=new InternalDependencyContainer;pe["default"]=pe.instance},87160:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.formatErrorCtor=void 0;function formatDependency(R,pe){if(R===null){return`at position #${pe}`}const Ae=R.split(",")[pe].trim();return`"${Ae}" at position #${pe}`}function composeErrorMessage(R,pe,Ae=" "){return[R,...pe.message.split("\n").map((R=>Ae+R))].join("\n")}function formatErrorCtor(R,pe,Ae){const[,he=null]=R.toString().match(/constructor\(([\w, ]+)\)/)||[];const ge=formatDependency(he,pe);return composeErrorMessage(`Cannot inject the dependency ${ge} of "${R.name}" constructor. Reason:`,Ae)}pe.formatErrorCtor=formatErrorCtor},16150:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(20675);Object.defineProperty(pe,"instanceCachingFactory",{enumerable:true,get:function(){return he.default}});var ge=Ae(41368);Object.defineProperty(pe,"instancePerContainerCachingFactory",{enumerable:true,get:function(){return ge.default}});var ye=Ae(57418);Object.defineProperty(pe,"predicateAwareClassFactory",{enumerable:true,get:function(){return ye.default}})},20675:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function instanceCachingFactory(R){let pe;return Ae=>{if(pe==undefined){pe=R(Ae)}return pe}}pe["default"]=instanceCachingFactory},41368:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function instancePerContainerCachingFactory(R){const pe=new WeakMap;return Ae=>{let he=pe.get(Ae);if(he==undefined){he=R(Ae);pe.set(Ae,he)}return he}}pe["default"]=instancePerContainerCachingFactory},57418:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});function predicateAwareClassFactory(R,pe,Ae,he=true){let ge;let ye;return me=>{const ve=R(me);if(!he||ye!==ve){if(ye=ve){ge=me.resolve(pe)}else{ge=me.resolve(Ae)}}return ge}}pe["default"]=predicateAwareClassFactory},71069:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(61470);if(typeof Reflect==="undefined"||!Reflect.getMetadata){throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`)}var ge=Ae(46907);Object.defineProperty(pe,"Lifecycle",{enumerable:true,get:function(){return ge.Lifecycle}});he.__exportStar(Ae(16840),pe);he.__exportStar(Ae(16150),pe);he.__exportStar(Ae(11372),pe);var ye=Ae(21782);Object.defineProperty(pe,"delay",{enumerable:true,get:function(){return ye.delay}});var me=Ae(87120);Object.defineProperty(pe,"container",{enumerable:true,get:function(){return me.instance}})},21780:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.PostResolutionInterceptors=pe.PreResolutionInterceptors=void 0;const he=Ae(64653);class PreResolutionInterceptors extends he.default{}pe.PreResolutionInterceptors=PreResolutionInterceptors;class PostResolutionInterceptors extends he.default{}pe.PostResolutionInterceptors=PostResolutionInterceptors;class Interceptors{constructor(){this.preResolution=new PreResolutionInterceptors;this.postResolution=new PostResolutionInterceptors}}pe["default"]=Interceptors},21782:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.delay=pe.DelayedConstructor=void 0;class DelayedConstructor{constructor(R){this.wrap=R;this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}createProxy(R){const pe={};let Ae=false;let he;const delayedObject=()=>{if(!Ae){he=R(this.wrap());Ae=true}return he};return new Proxy(pe,this.createHandler(delayedObject))}createHandler(R){const pe={};const install=Ae=>{pe[Ae]=(...pe)=>{pe[0]=R();const he=Reflect[Ae];return he(...pe)}};this.reflectMethods.forEach(install);return pe}}pe.DelayedConstructor=DelayedConstructor;function delay(R){if(typeof R==="undefined"){throw new Error("Attempt to `delay` undefined. Constructor must be wrapped in a callback")}return new DelayedConstructor(R)}pe.delay=delay},43751:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isClassProvider=void 0;function isClassProvider(R){return!!R.useClass}pe.isClassProvider=isClassProvider},55874:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isFactoryProvider=void 0;function isFactoryProvider(R){return!!R.useFactory}pe.isFactoryProvider=isFactoryProvider},11372:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(43751);Object.defineProperty(pe,"isClassProvider",{enumerable:true,get:function(){return he.isClassProvider}});var ge=Ae(55874);Object.defineProperty(pe,"isFactoryProvider",{enumerable:true,get:function(){return ge.isFactoryProvider}});var ye=Ae(2032);Object.defineProperty(pe,"isNormalToken",{enumerable:true,get:function(){return ye.isNormalToken}});var me=Ae(96627);Object.defineProperty(pe,"isTokenProvider",{enumerable:true,get:function(){return me.isTokenProvider}});var ve=Ae(76753);Object.defineProperty(pe,"isValueProvider",{enumerable:true,get:function(){return ve.isValueProvider}})},2032:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isConstructorToken=pe.isTransformDescriptor=pe.isTokenDescriptor=pe.isNormalToken=void 0;const he=Ae(21782);function isNormalToken(R){return typeof R==="string"||typeof R==="symbol"}pe.isNormalToken=isNormalToken;function isTokenDescriptor(R){return typeof R==="object"&&"token"in R&&"multiple"in R}pe.isTokenDescriptor=isTokenDescriptor;function isTransformDescriptor(R){return typeof R==="object"&&"token"in R&&"transform"in R}pe.isTransformDescriptor=isTransformDescriptor;function isConstructorToken(R){return typeof R==="function"||R instanceof he.DelayedConstructor}pe.isConstructorToken=isConstructorToken},59177:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isProvider=void 0;const he=Ae(43751);const ge=Ae(76753);const ye=Ae(96627);const me=Ae(55874);function isProvider(R){return he.isClassProvider(R)||ge.isValueProvider(R)||ye.isTokenProvider(R)||me.isFactoryProvider(R)}pe.isProvider=isProvider},96627:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isTokenProvider=void 0;function isTokenProvider(R){return!!R.useToken}pe.isTokenProvider=isTokenProvider},76753:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isValueProvider=void 0;function isValueProvider(R){return R.useValue!=undefined}pe.isValueProvider=isValueProvider},46939:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.defineInjectionTokenMetadata=pe.getParamInfo=pe.INJECTION_TOKEN_METADATA_KEY=void 0;pe.INJECTION_TOKEN_METADATA_KEY="injectionTokens";function getParamInfo(R){const Ae=Reflect.getMetadata("design:paramtypes",R)||[];const he=Reflect.getOwnMetadata(pe.INJECTION_TOKEN_METADATA_KEY,R)||{};Object.keys(he).forEach((R=>{Ae[+R]=he[R]}));return Ae}pe.getParamInfo=getParamInfo;function defineInjectionTokenMetadata(R,Ae){return function(he,ge,ye){const me=Reflect.getOwnMetadata(pe.INJECTION_TOKEN_METADATA_KEY,he)||{};me[ye]=Ae?{token:R,transform:Ae.transformToken,transformArgs:Ae.args||[]}:R;Reflect.defineMetadata(pe.INJECTION_TOKEN_METADATA_KEY,me,he)}}pe.defineInjectionTokenMetadata=defineInjectionTokenMetadata},64653:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});class RegistryBase{constructor(){this._registryMap=new Map}entries(){return this._registryMap.entries()}getAll(R){this.ensure(R);return this._registryMap.get(R)}get(R){this.ensure(R);const pe=this._registryMap.get(R);return pe[pe.length-1]||null}set(R,pe){this.ensure(R);this._registryMap.get(R).push(pe)}setAll(R,pe){this._registryMap.set(R,pe)}has(R){this.ensure(R);return this._registryMap.get(R).length>0}clear(){this._registryMap.clear()}ensure(R){if(!this._registryMap.has(R)){this._registryMap.set(R,[])}}}pe["default"]=RegistryBase},75941:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});const he=Ae(64653);class Registry extends he.default{}pe["default"]=Registry},64330:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});class ResolutionContext{constructor(){this.scopedResolutions=new Map}}pe["default"]=ResolutionContext},358:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.isDisposable=void 0;function isDisposable(R){if(typeof R.dispose!=="function")return false;const pe=R.dispose;if(pe.length>0){return false}return true}pe.isDisposable=isDisposable},46907:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var he=Ae(56501);Object.defineProperty(pe,"Lifecycle",{enumerable:true,get:function(){return he.default}})},56501:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});var Ae;(function(R){R[R["Transient"]=0]="Transient";R[R["Singleton"]=1]="Singleton";R[R["ResolutionScoped"]=2]="ResolutionScoped";R[R["ContainerScoped"]=3]="ContainerScoped"})(Ae||(Ae={}));pe["default"]=Ae},61470:R=>{ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -201,9 +201,9 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var pe;var Ae;var he;var ge;var ye;var me;var ve;var be;var Ee;var Ce;var we;var _e;var Ie;var Se;var Be;var ke;var Oe;var Re;var Qe;var xe;var Pe;var Te;var De;(function(pe){var Ae=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(R){pe(createExporter(Ae,createExporter(R)))}))}else if(true&&typeof R.exports==="object"){pe(createExporter(Ae,createExporter(R.exports)))}else{pe(createExporter(Ae))}function createExporter(R,pe){if(R!==Ae){if(typeof Object.create==="function"){Object.defineProperty(R,"__esModule",{value:true})}else{R.__esModule=true}}return function(Ae,he){return R[Ae]=pe?pe(Ae,he):he}}})((function(R){var Ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(pe.hasOwnProperty(Ae))R[Ae]=pe[Ae]};pe=function(R,pe){Ne(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)};Ae=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae=0;ve--)if(me=R[ve])ye=(ge<3?me(ye):ge>3?me(pe,Ae,ye):me(pe,Ae))||ye;return ge>3&&ye&&Object.defineProperty(pe,Ae,ye),ye};ye=function(R,pe){return function(Ae,he){pe(Ae,he,R)}};me=function(R,pe){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(R,pe)};ve=function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};be=function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(me){if(he)throw new TypeError("Generator is already executing.");while(Ae)try{if(he=1,ge&&(ye=me[0]&2?ge["return"]:me[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,me[1])).done)return ye;if(ge=0,ye)me=[me[0]&2,ye.value];switch(me[0]){case 0:case 1:ye=me;break;case 4:Ae.label++;return{value:me[1],done:false};case 5:Ae.label++;ge=me[1];me=[0];continue;case 7:me=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(me[0]===6||me[0]===2)){Ae=0;continue}if(me[0]===3&&(!ye||me[1]>ye[0]&&me[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};we=function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};_e=function(){for(var R=[],pe=0;pe1||resume(R,pe)}))}}function resume(R,pe){try{step(he[R](pe))}catch(R){settle(ye[0][3],R)}}function step(R){R.value instanceof Se?Promise.resolve(R.value.v).then(fulfill,reject):settle(ye[0][2],R)}function fulfill(R){resume("next",R)}function reject(R){resume("throw",R)}function settle(R,pe){if(R(pe),ye.shift(),ye.length)resume(ye[0][0],ye[0][1])}};ke=function(R){var pe,Ae;return pe={},verb("next"),verb("throw",(function(R){throw R})),verb("return"),pe[Symbol.iterator]=function(){return this},pe;function verb(he,ge){pe[he]=R[he]?function(pe){return(Ae=!Ae)?{value:Se(R[he](pe)),done:he==="return"}:ge?ge(pe):pe}:ge}};Oe=function(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var pe=R[Symbol.asyncIterator],Ae;return pe?pe.call(R):(R=typeof Ce==="function"?Ce(R):R[Symbol.iterator](),Ae={},verb("next"),verb("throw"),verb("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae);function verb(pe){Ae[pe]=R[pe]&&function(Ae){return new Promise((function(he,ge){Ae=R[pe](Ae),settle(he,ge,Ae.done,Ae.value)}))}}function settle(R,pe,Ae,he){Promise.resolve(he).then((function(pe){R({value:pe,done:Ae})}),pe)}};Re=function(R,pe){if(Object.defineProperty){Object.defineProperty(R,"raw",{value:pe})}else{R.raw=pe}return R};Qe=function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Object.hasOwnProperty.call(R,Ae))pe[Ae]=R[Ae];pe["default"]=R;return pe};xe=function(R){return R&&R.__esModule?R:{default:R}};Pe=function(R,pe){if(!pe.has(R)){throw new TypeError("attempted to get private field on non-instance")}return pe.get(R)};Te=function(R,pe,Ae){if(!pe.has(R)){throw new TypeError("attempted to set private field on non-instance")}pe.set(R,Ae);return Ae};R("__extends",pe);R("__assign",Ae);R("__rest",he);R("__decorate",ge);R("__param",ye);R("__metadata",me);R("__awaiter",ve);R("__generator",be);R("__exportStar",Ee);R("__createBinding",De);R("__values",Ce);R("__read",we);R("__spread",_e);R("__spreadArrays",Ie);R("__await",Se);R("__asyncGenerator",Be);R("__asyncDelegator",ke);R("__asyncValues",Oe);R("__makeTemplateObject",Re);R("__importStar",Qe);R("__importDefault",xe);R("__classPrivateFieldGet",Pe);R("__classPrivateFieldSet",Te)}))},74294:(R,pe,Ae)=>{R.exports=Ae(54219)},54219:(R,pe,Ae)=>{"use strict";var he=Ae(41808);var ge=Ae(24404);var ye=Ae(13685);var me=Ae(95687);var ve=Ae(82361);var be=Ae(39491);var Ee=Ae(73837);pe.httpOverHttp=httpOverHttp;pe.httpsOverHttp=httpsOverHttp;pe.httpOverHttps=httpOverHttps;pe.httpsOverHttps=httpsOverHttps;function httpOverHttp(R){var pe=new TunnelingAgent(R);pe.request=ye.request;return pe}function httpsOverHttp(R){var pe=new TunnelingAgent(R);pe.request=ye.request;pe.createSocket=createSecureSocket;pe.defaultPort=443;return pe}function httpOverHttps(R){var pe=new TunnelingAgent(R);pe.request=me.request;return pe}function httpsOverHttps(R){var pe=new TunnelingAgent(R);pe.request=me.request;pe.createSocket=createSecureSocket;pe.defaultPort=443;return pe}function TunnelingAgent(R){var pe=this;pe.options=R||{};pe.proxyOptions=pe.options.proxy||{};pe.maxSockets=pe.options.maxSockets||ye.Agent.defaultMaxSockets;pe.requests=[];pe.sockets=[];pe.on("free",(function onFree(R,Ae,he,ge){var ye=toOptions(Ae,he,ge);for(var me=0,ve=pe.requests.length;me=this.maxSockets){ge.requests.push(ye);return}ge.createSocket(ye,(function(pe){pe.on("free",onFree);pe.on("close",onCloseOrRemove);pe.on("agentRemove",onCloseOrRemove);R.onSocket(pe);function onFree(){ge.emit("free",pe,ye)}function onCloseOrRemove(R){ge.removeSocket(pe);pe.removeListener("free",onFree);pe.removeListener("close",onCloseOrRemove);pe.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(R,pe){var Ae=this;var he={};Ae.sockets.push(he);var ge=mergeOptions({},Ae.proxyOptions,{method:"CONNECT",path:R.host+":"+R.port,agent:false,headers:{host:R.host+":"+R.port}});if(R.localAddress){ge.localAddress=R.localAddress}if(ge.proxyAuth){ge.headers=ge.headers||{};ge.headers["Proxy-Authorization"]="Basic "+new Buffer(ge.proxyAuth).toString("base64")}Ce("making CONNECT request");var ye=Ae.request(ge);ye.useChunkedEncodingByDefault=false;ye.once("response",onResponse);ye.once("upgrade",onUpgrade);ye.once("connect",onConnect);ye.once("error",onError);ye.end();function onResponse(R){R.upgrade=true}function onUpgrade(R,pe,Ae){process.nextTick((function(){onConnect(R,pe,Ae)}))}function onConnect(ge,me,ve){ye.removeAllListeners();me.removeAllListeners();if(ge.statusCode!==200){Ce("tunneling socket could not be established, statusCode=%d",ge.statusCode);me.destroy();var be=new Error("tunneling socket could not be established, "+"statusCode="+ge.statusCode);be.code="ECONNRESET";R.request.emit("error",be);Ae.removeSocket(he);return}if(ve.length>0){Ce("got illegal response body from proxy");me.destroy();var be=new Error("got illegal response body from proxy");be.code="ECONNRESET";R.request.emit("error",be);Ae.removeSocket(he);return}Ce("tunneling connection has established");Ae.sockets[Ae.sockets.indexOf(he)]=me;return pe(me)}function onError(pe){ye.removeAllListeners();Ce("tunneling socket could not be established, cause=%s\n",pe.message,pe.stack);var ge=new Error("tunneling socket could not be established, "+"cause="+pe.message);ge.code="ECONNRESET";R.request.emit("error",ge);Ae.removeSocket(he)}};TunnelingAgent.prototype.removeSocket=function removeSocket(R){var pe=this.sockets.indexOf(R);if(pe===-1){return}this.sockets.splice(pe,1);var Ae=this.requests.shift();if(Ae){this.createSocket(Ae,(function(R){Ae.request.onSocket(R)}))}};function createSecureSocket(R,pe){var Ae=this;TunnelingAgent.prototype.createSocket.call(Ae,R,(function(he){var ye=R.request.getHeader("host");var me=mergeOptions({},Ae.options,{socket:he,servername:ye?ye.replace(/:.*$/,""):R.host});var ve=ge.connect(0,me);Ae.sockets[Ae.sockets.indexOf(he)]=ve;pe(ve)}))}function toOptions(R,pe,Ae){if(typeof R==="string"){return{host:R,port:pe,localAddress:Ae}}return R}function mergeOptions(R){for(var pe=1,Ae=arguments.length;pe{"use strict";const he=Ae(33598);const ge=Ae(60412);const ye=Ae(48045);const me=Ae(4634);const ve=Ae(37931);const be=Ae(7890);const Ee=Ae(83983);const{InvalidArgumentError:Ce}=ye;const we=Ae(44059);const _e=Ae(82067);const Ie=Ae(58687);const Se=Ae(66771);const Be=Ae(26193);const ke=Ae(50888);const Oe=Ae(97858);const Re=Ae(82286);const{getGlobalDispatcher:Qe,setGlobalDispatcher:xe}=Ae(21892);const Pe=Ae(46930);const Te=Ae(72860);const De=Ae(38861);let Ne;try{Ae(6113);Ne=true}catch{Ne=false}Object.assign(ge.prototype,we);R.exports.Dispatcher=ge;R.exports.Client=he;R.exports.Pool=me;R.exports.BalancedPool=ve;R.exports.Agent=be;R.exports.ProxyAgent=Oe;R.exports.RetryHandler=Re;R.exports.DecoratorHandler=Pe;R.exports.RedirectHandler=Te;R.exports.createRedirectInterceptor=De;R.exports.buildConnector=_e;R.exports.errors=ye;function makeDispatcher(R){return(pe,Ae,he)=>{if(typeof Ae==="function"){he=Ae;Ae=null}if(!pe||typeof pe!=="string"&&typeof pe!=="object"&&!(pe instanceof URL)){throw new Ce("invalid url")}if(Ae!=null&&typeof Ae!=="object"){throw new Ce("invalid opts")}if(Ae&&Ae.path!=null){if(typeof Ae.path!=="string"){throw new Ce("invalid opts.path")}let R=Ae.path;if(!Ae.path.startsWith("/")){R=`/${R}`}pe=new URL(Ee.parseOrigin(pe).origin+R)}else{if(!Ae){Ae=typeof pe==="object"?pe:{}}pe=Ee.parseURL(pe)}const{agent:ge,dispatcher:ye=Qe()}=Ae;if(ge){throw new Ce("unsupported opts.agent. Did you mean opts.client?")}return R.call(ye,{...Ae,origin:pe.origin,path:pe.search?`${pe.pathname}${pe.search}`:pe.pathname,method:Ae.method||(Ae.body?"PUT":"GET")},he)}}R.exports.setGlobalDispatcher=xe;R.exports.getGlobalDispatcher=Qe;if(Ee.nodeMajor>16||Ee.nodeMajor===16&&Ee.nodeMinor>=8){let pe=null;R.exports.fetch=async function fetch(R){if(!pe){pe=Ae(74881).fetch}try{return await pe(...arguments)}catch(R){if(typeof R==="object"){Error.captureStackTrace(R,this)}throw R}};R.exports.Headers=Ae(10554).Headers;R.exports.Response=Ae(27823).Response;R.exports.Request=Ae(48359).Request;R.exports.FormData=Ae(72015).FormData;R.exports.File=Ae(78511).File;R.exports.FileReader=Ae(1446).FileReader;const{setGlobalOrigin:he,getGlobalOrigin:ge}=Ae(71246);R.exports.setGlobalOrigin=he;R.exports.getGlobalOrigin=ge;const{CacheStorage:ye}=Ae(37907);const{kConstruct:me}=Ae(29174);R.exports.caches=new ye(me)}if(Ee.nodeMajor>=16){const{deleteCookie:pe,getCookies:he,getSetCookies:ge,setCookie:ye}=Ae(41724);R.exports.deleteCookie=pe;R.exports.getCookies=he;R.exports.getSetCookies=ge;R.exports.setCookie=ye;const{parseMIMEType:me,serializeAMimeType:ve}=Ae(685);R.exports.parseMIMEType=me;R.exports.serializeAMimeType=ve}if(Ee.nodeMajor>=18&&Ne){const{WebSocket:pe}=Ae(54284);R.exports.WebSocket=pe}R.exports.request=makeDispatcher(we.request);R.exports.stream=makeDispatcher(we.stream);R.exports.pipeline=makeDispatcher(we.pipeline);R.exports.connect=makeDispatcher(we.connect);R.exports.upgrade=makeDispatcher(we.upgrade);R.exports.MockClient=Ie;R.exports.MockPool=Be;R.exports.MockAgent=Se;R.exports.mockErrors=ke},7890:(R,pe,Ae)=>{"use strict";const{InvalidArgumentError:he}=Ae(48045);const{kClients:ge,kRunning:ye,kClose:me,kDestroy:ve,kDispatch:be,kInterceptors:Ee}=Ae(72785);const Ce=Ae(74839);const we=Ae(4634);const _e=Ae(33598);const Ie=Ae(83983);const Se=Ae(38861);const{WeakRef:Be,FinalizationRegistry:ke}=Ae(56436)();const Oe=Symbol("onConnect");const Re=Symbol("onDisconnect");const Qe=Symbol("onConnectionError");const xe=Symbol("maxRedirections");const Pe=Symbol("onDrain");const Te=Symbol("factory");const De=Symbol("finalizer");const Ne=Symbol("options");function defaultFactory(R,pe){return pe&&pe.connections===1?new _e(R,pe):new we(R,pe)}class Agent extends Ce{constructor({factory:R=defaultFactory,maxRedirections:pe=0,connect:Ae,...ye}={}){super();if(typeof R!=="function"){throw new he("factory must be a function.")}if(Ae!=null&&typeof Ae!=="function"&&typeof Ae!=="object"){throw new he("connect must be a function or an object")}if(!Number.isInteger(pe)||pe<0){throw new he("maxRedirections must be a positive number")}if(Ae&&typeof Ae!=="function"){Ae={...Ae}}this[Ee]=ye.interceptors&&ye.interceptors.Agent&&Array.isArray(ye.interceptors.Agent)?ye.interceptors.Agent:[Se({maxRedirections:pe})];this[Ne]={...Ie.deepClone(ye),connect:Ae};this[Ne].interceptors=ye.interceptors?{...ye.interceptors}:undefined;this[xe]=pe;this[Te]=R;this[ge]=new Map;this[De]=new ke((R=>{const pe=this[ge].get(R);if(pe!==undefined&&pe.deref()===undefined){this[ge].delete(R)}}));const me=this;this[Pe]=(R,pe)=>{me.emit("drain",R,[me,...pe])};this[Oe]=(R,pe)=>{me.emit("connect",R,[me,...pe])};this[Re]=(R,pe,Ae)=>{me.emit("disconnect",R,[me,...pe],Ae)};this[Qe]=(R,pe,Ae)=>{me.emit("connectionError",R,[me,...pe],Ae)}}get[ye](){let R=0;for(const pe of this[ge].values()){const Ae=pe.deref();if(Ae){R+=Ae[ye]}}return R}[be](R,pe){let Ae;if(R.origin&&(typeof R.origin==="string"||R.origin instanceof URL)){Ae=String(R.origin)}else{throw new he("opts.origin must be a non-empty string or URL.")}const ye=this[ge].get(Ae);let me=ye?ye.deref():null;if(!me){me=this[Te](R.origin,this[Ne]).on("drain",this[Pe]).on("connect",this[Oe]).on("disconnect",this[Re]).on("connectionError",this[Qe]);this[ge].set(Ae,new Be(me));this[De].register(me,Ae)}return me.dispatch(R,pe)}async[me](){const R=[];for(const pe of this[ge].values()){const Ae=pe.deref();if(Ae){R.push(Ae.close())}}await Promise.all(R)}async[ve](R){const pe=[];for(const Ae of this[ge].values()){const he=Ae.deref();if(he){pe.push(he.destroy(R))}}await Promise.all(pe)}}R.exports=Agent},7032:(R,pe,Ae)=>{const{addAbortListener:he}=Ae(83983);const{RequestAbortedError:ge}=Ae(48045);const ye=Symbol("kListener");const me=Symbol("kSignal");function abort(R){if(R.abort){R.abort()}else{R.onError(new ge)}}function addSignal(R,pe){R[me]=null;R[ye]=null;if(!pe){return}if(pe.aborted){abort(R);return}R[me]=pe;R[ye]=()=>{abort(R)};he(R[me],R[ye])}function removeSignal(R){if(!R[me]){return}if("removeEventListener"in R[me]){R[me].removeEventListener("abort",R[ye])}else{R[me].removeListener("abort",R[ye])}R[me]=null;R[ye]=null}R.exports={addSignal:addSignal,removeSignal:removeSignal}},29744:(R,pe,Ae)=>{"use strict";const{AsyncResource:he}=Ae(50852);const{InvalidArgumentError:ge,RequestAbortedError:ye,SocketError:me}=Ae(48045);const ve=Ae(83983);const{addSignal:be,removeSignal:Ee}=Ae(7032);class ConnectHandler extends he{constructor(R,pe){if(!R||typeof R!=="object"){throw new ge("invalid opts")}if(typeof pe!=="function"){throw new ge("invalid callback")}const{signal:Ae,opaque:he,responseHeaders:ye}=R;if(Ae&&typeof Ae.on!=="function"&&typeof Ae.addEventListener!=="function"){throw new ge("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=he||null;this.responseHeaders=ye||null;this.callback=pe;this.abort=null;be(this,Ae)}onConnect(R,pe){if(!this.callback){throw new ye}this.abort=R;this.context=pe}onHeaders(){throw new me("bad connect",null)}onUpgrade(R,pe,Ae){const{callback:he,opaque:ge,context:ye}=this;Ee(this);this.callback=null;let me=pe;if(me!=null){me=this.responseHeaders==="raw"?ve.parseRawHeaders(pe):ve.parseHeaders(pe)}this.runInAsyncScope(he,null,null,{statusCode:R,headers:me,socket:Ae,opaque:ge,context:ye})}onError(R){const{callback:pe,opaque:Ae}=this;Ee(this);if(pe){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(pe,null,R,{opaque:Ae})}))}}}function connect(R,pe){if(pe===undefined){return new Promise(((pe,Ae)=>{connect.call(this,R,((R,he)=>R?Ae(R):pe(he)))}))}try{const Ae=new ConnectHandler(R,pe);this.dispatch({...R,method:"CONNECT"},Ae)}catch(Ae){if(typeof pe!=="function"){throw Ae}const he=R&&R.opaque;queueMicrotask((()=>pe(Ae,{opaque:he})))}}R.exports=connect},28752:(R,pe,Ae)=>{"use strict";const{Readable:he,Duplex:ge,PassThrough:ye}=Ae(12781);const{InvalidArgumentError:me,InvalidReturnValueError:ve,RequestAbortedError:be}=Ae(48045);const Ee=Ae(83983);const{AsyncResource:Ce}=Ae(50852);const{addSignal:we,removeSignal:_e}=Ae(7032);const Ie=Ae(39491);const Se=Symbol("resume");class PipelineRequest extends he{constructor(){super({autoDestroy:true});this[Se]=null}_read(){const{[Se]:R}=this;if(R){this[Se]=null;R()}}_destroy(R,pe){this._read();pe(R)}}class PipelineResponse extends he{constructor(R){super({autoDestroy:true});this[Se]=R}_read(){this[Se]()}_destroy(R,pe){if(!R&&!this._readableState.endEmitted){R=new be}pe(R)}}class PipelineHandler extends Ce{constructor(R,pe){if(!R||typeof R!=="object"){throw new me("invalid opts")}if(typeof pe!=="function"){throw new me("invalid handler")}const{signal:Ae,method:he,opaque:ye,onInfo:ve,responseHeaders:Ce}=R;if(Ae&&typeof Ae.on!=="function"&&typeof Ae.addEventListener!=="function"){throw new me("signal must be an EventEmitter or EventTarget")}if(he==="CONNECT"){throw new me("invalid method")}if(ve&&typeof ve!=="function"){throw new me("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=ye||null;this.responseHeaders=Ce||null;this.handler=pe;this.abort=null;this.context=null;this.onInfo=ve||null;this.req=(new PipelineRequest).on("error",Ee.nop);this.ret=new ge({readableObjectMode:R.objectMode,autoDestroy:true,read:()=>{const{body:R}=this;if(R&&R.resume){R.resume()}},write:(R,pe,Ae)=>{const{req:he}=this;if(he.push(R,pe)||he._readableState.destroyed){Ae()}else{he[Se]=Ae}},destroy:(R,pe)=>{const{body:Ae,req:he,res:ge,ret:ye,abort:me}=this;if(!R&&!ye._readableState.endEmitted){R=new be}if(me&&R){me()}Ee.destroy(Ae,R);Ee.destroy(he,R);Ee.destroy(ge,R);_e(this);pe(R)}}).on("prefinish",(()=>{const{req:R}=this;R.push(null)}));this.res=null;we(this,Ae)}onConnect(R,pe){const{ret:Ae,res:he}=this;Ie(!he,"pipeline cannot be retried");if(Ae.destroyed){throw new be}this.abort=R;this.context=pe}onHeaders(R,pe,Ae){const{opaque:he,handler:ge,context:ye}=this;if(R<200){if(this.onInfo){const Ae=this.responseHeaders==="raw"?Ee.parseRawHeaders(pe):Ee.parseHeaders(pe);this.onInfo({statusCode:R,headers:Ae})}return}this.res=new PipelineResponse(Ae);let me;try{this.handler=null;const Ae=this.responseHeaders==="raw"?Ee.parseRawHeaders(pe):Ee.parseHeaders(pe);me=this.runInAsyncScope(ge,null,{statusCode:R,headers:Ae,opaque:he,body:this.res,context:ye})}catch(R){this.res.on("error",Ee.nop);throw R}if(!me||typeof me.on!=="function"){throw new ve("expected Readable")}me.on("data",(R=>{const{ret:pe,body:Ae}=this;if(!pe.push(R)&&Ae.pause){Ae.pause()}})).on("error",(R=>{const{ret:pe}=this;Ee.destroy(pe,R)})).on("end",(()=>{const{ret:R}=this;R.push(null)})).on("close",(()=>{const{ret:R}=this;if(!R._readableState.ended){Ee.destroy(R,new be)}}));this.body=me}onData(R){const{res:pe}=this;return pe.push(R)}onComplete(R){const{res:pe}=this;pe.push(null)}onError(R){const{ret:pe}=this;this.handler=null;Ee.destroy(pe,R)}}function pipeline(R,pe){try{const Ae=new PipelineHandler(R,pe);this.dispatch({...R,body:Ae.req},Ae);return Ae.ret}catch(R){return(new ye).destroy(R)}}R.exports=pipeline},55448:(R,pe,Ae)=>{"use strict";const he=Ae(73858);const{InvalidArgumentError:ge,RequestAbortedError:ye}=Ae(48045);const me=Ae(83983);const{getResolveErrorBodyCallback:ve}=Ae(77474);const{AsyncResource:be}=Ae(50852);const{addSignal:Ee,removeSignal:Ce}=Ae(7032);class RequestHandler extends be{constructor(R,pe){if(!R||typeof R!=="object"){throw new ge("invalid opts")}const{signal:Ae,method:he,opaque:ye,body:ve,onInfo:be,responseHeaders:Ce,throwOnError:we,highWaterMark:_e}=R;try{if(typeof pe!=="function"){throw new ge("invalid callback")}if(_e&&(typeof _e!=="number"||_e<0)){throw new ge("invalid highWaterMark")}if(Ae&&typeof Ae.on!=="function"&&typeof Ae.addEventListener!=="function"){throw new ge("signal must be an EventEmitter or EventTarget")}if(he==="CONNECT"){throw new ge("invalid method")}if(be&&typeof be!=="function"){throw new ge("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(R){if(me.isStream(ve)){me.destroy(ve.on("error",me.nop),R)}throw R}this.responseHeaders=Ce||null;this.opaque=ye||null;this.callback=pe;this.res=null;this.abort=null;this.body=ve;this.trailers={};this.context=null;this.onInfo=be||null;this.throwOnError=we;this.highWaterMark=_e;if(me.isStream(ve)){ve.on("error",(R=>{this.onError(R)}))}Ee(this,Ae)}onConnect(R,pe){if(!this.callback){throw new ye}this.abort=R;this.context=pe}onHeaders(R,pe,Ae,ge){const{callback:ye,opaque:be,abort:Ee,context:Ce,responseHeaders:we,highWaterMark:_e}=this;const Ie=we==="raw"?me.parseRawHeaders(pe):me.parseHeaders(pe);if(R<200){if(this.onInfo){this.onInfo({statusCode:R,headers:Ie})}return}const Se=we==="raw"?me.parseHeaders(pe):Ie;const Be=Se["content-type"];const ke=new he({resume:Ae,abort:Ee,contentType:Be,highWaterMark:_e});this.callback=null;this.res=ke;if(ye!==null){if(this.throwOnError&&R>=400){this.runInAsyncScope(ve,null,{callback:ye,body:ke,contentType:Be,statusCode:R,statusMessage:ge,headers:Ie})}else{this.runInAsyncScope(ye,null,null,{statusCode:R,headers:Ie,trailers:this.trailers,opaque:be,body:ke,context:Ce})}}}onData(R){const{res:pe}=this;return pe.push(R)}onComplete(R){const{res:pe}=this;Ce(this);me.parseHeaders(R,this.trailers);pe.push(null)}onError(R){const{res:pe,callback:Ae,body:he,opaque:ge}=this;Ce(this);if(Ae){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(Ae,null,R,{opaque:ge})}))}if(pe){this.res=null;queueMicrotask((()=>{me.destroy(pe,R)}))}if(he){this.body=null;me.destroy(he,R)}}}function request(R,pe){if(pe===undefined){return new Promise(((pe,Ae)=>{request.call(this,R,((R,he)=>R?Ae(R):pe(he)))}))}try{this.dispatch(R,new RequestHandler(R,pe))}catch(Ae){if(typeof pe!=="function"){throw Ae}const he=R&&R.opaque;queueMicrotask((()=>pe(Ae,{opaque:he})))}}R.exports=request;R.exports.RequestHandler=RequestHandler},75395:(R,pe,Ae)=>{"use strict";const{finished:he,PassThrough:ge}=Ae(12781);const{InvalidArgumentError:ye,InvalidReturnValueError:me,RequestAbortedError:ve}=Ae(48045);const be=Ae(83983);const{getResolveErrorBodyCallback:Ee}=Ae(77474);const{AsyncResource:Ce}=Ae(50852);const{addSignal:we,removeSignal:_e}=Ae(7032);class StreamHandler extends Ce{constructor(R,pe,Ae){if(!R||typeof R!=="object"){throw new ye("invalid opts")}const{signal:he,method:ge,opaque:me,body:ve,onInfo:Ee,responseHeaders:Ce,throwOnError:_e}=R;try{if(typeof Ae!=="function"){throw new ye("invalid callback")}if(typeof pe!=="function"){throw new ye("invalid factory")}if(he&&typeof he.on!=="function"&&typeof he.addEventListener!=="function"){throw new ye("signal must be an EventEmitter or EventTarget")}if(ge==="CONNECT"){throw new ye("invalid method")}if(Ee&&typeof Ee!=="function"){throw new ye("invalid onInfo callback")}super("UNDICI_STREAM")}catch(R){if(be.isStream(ve)){be.destroy(ve.on("error",be.nop),R)}throw R}this.responseHeaders=Ce||null;this.opaque=me||null;this.factory=pe;this.callback=Ae;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=ve;this.onInfo=Ee||null;this.throwOnError=_e||false;if(be.isStream(ve)){ve.on("error",(R=>{this.onError(R)}))}we(this,he)}onConnect(R,pe){if(!this.callback){throw new ve}this.abort=R;this.context=pe}onHeaders(R,pe,Ae,ye){const{factory:ve,opaque:Ce,context:we,callback:_e,responseHeaders:Ie}=this;const Se=Ie==="raw"?be.parseRawHeaders(pe):be.parseHeaders(pe);if(R<200){if(this.onInfo){this.onInfo({statusCode:R,headers:Se})}return}this.factory=null;let Be;if(this.throwOnError&&R>=400){const Ae=Ie==="raw"?be.parseHeaders(pe):Se;const he=Ae["content-type"];Be=new ge;this.callback=null;this.runInAsyncScope(Ee,null,{callback:_e,body:Be,contentType:he,statusCode:R,statusMessage:ye,headers:Se})}else{if(ve===null){return}Be=this.runInAsyncScope(ve,null,{statusCode:R,headers:Se,opaque:Ce,context:we});if(!Be||typeof Be.write!=="function"||typeof Be.end!=="function"||typeof Be.on!=="function"){throw new me("expected Writable")}he(Be,{readable:false},(R=>{const{callback:pe,res:Ae,opaque:he,trailers:ge,abort:ye}=this;this.res=null;if(R||!Ae.readable){be.destroy(Ae,R)}this.callback=null;this.runInAsyncScope(pe,null,R||null,{opaque:he,trailers:ge});if(R){ye()}}))}Be.on("drain",Ae);this.res=Be;const ke=Be.writableNeedDrain!==undefined?Be.writableNeedDrain:Be._writableState&&Be._writableState.needDrain;return ke!==true}onData(R){const{res:pe}=this;return pe?pe.write(R):true}onComplete(R){const{res:pe}=this;_e(this);if(!pe){return}this.trailers=be.parseHeaders(R);pe.end()}onError(R){const{res:pe,callback:Ae,opaque:he,body:ge}=this;_e(this);this.factory=null;if(pe){this.res=null;be.destroy(pe,R)}else if(Ae){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(Ae,null,R,{opaque:he})}))}if(ge){this.body=null;be.destroy(ge,R)}}}function stream(R,pe,Ae){if(Ae===undefined){return new Promise(((Ae,he)=>{stream.call(this,R,pe,((R,pe)=>R?he(R):Ae(pe)))}))}try{this.dispatch(R,new StreamHandler(R,pe,Ae))}catch(pe){if(typeof Ae!=="function"){throw pe}const he=R&&R.opaque;queueMicrotask((()=>Ae(pe,{opaque:he})))}}R.exports=stream},36923:(R,pe,Ae)=>{"use strict";const{InvalidArgumentError:he,RequestAbortedError:ge,SocketError:ye}=Ae(48045);const{AsyncResource:me}=Ae(50852);const ve=Ae(83983);const{addSignal:be,removeSignal:Ee}=Ae(7032);const Ce=Ae(39491);class UpgradeHandler extends me{constructor(R,pe){if(!R||typeof R!=="object"){throw new he("invalid opts")}if(typeof pe!=="function"){throw new he("invalid callback")}const{signal:Ae,opaque:ge,responseHeaders:ye}=R;if(Ae&&typeof Ae.on!=="function"&&typeof Ae.addEventListener!=="function"){throw new he("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=ye||null;this.opaque=ge||null;this.callback=pe;this.abort=null;this.context=null;be(this,Ae)}onConnect(R,pe){if(!this.callback){throw new ge}this.abort=R;this.context=null}onHeaders(){throw new ye("bad upgrade",null)}onUpgrade(R,pe,Ae){const{callback:he,opaque:ge,context:ye}=this;Ce.strictEqual(R,101);Ee(this);this.callback=null;const me=this.responseHeaders==="raw"?ve.parseRawHeaders(pe):ve.parseHeaders(pe);this.runInAsyncScope(he,null,null,{headers:me,socket:Ae,opaque:ge,context:ye})}onError(R){const{callback:pe,opaque:Ae}=this;Ee(this);if(pe){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(pe,null,R,{opaque:Ae})}))}}}function upgrade(R,pe){if(pe===undefined){return new Promise(((pe,Ae)=>{upgrade.call(this,R,((R,he)=>R?Ae(R):pe(he)))}))}try{const Ae=new UpgradeHandler(R,pe);this.dispatch({...R,method:R.method||"GET",upgrade:R.protocol||"Websocket"},Ae)}catch(Ae){if(typeof pe!=="function"){throw Ae}const he=R&&R.opaque;queueMicrotask((()=>pe(Ae,{opaque:he})))}}R.exports=upgrade},44059:(R,pe,Ae)=>{"use strict";R.exports.request=Ae(55448);R.exports.stream=Ae(75395);R.exports.pipeline=Ae(28752);R.exports.upgrade=Ae(36923);R.exports.connect=Ae(29744)},73858:(R,pe,Ae)=>{"use strict";const he=Ae(39491);const{Readable:ge}=Ae(12781);const{RequestAbortedError:ye,NotSupportedError:me,InvalidArgumentError:ve}=Ae(48045);const be=Ae(83983);const{ReadableStreamFrom:Ee,toUSVString:Ce}=Ae(83983);let we;const _e=Symbol("kConsume");const Ie=Symbol("kReading");const Se=Symbol("kBody");const Be=Symbol("abort");const ke=Symbol("kContentType");const noop=()=>{};R.exports=class BodyReadable extends ge{constructor({resume:R,abort:pe,contentType:Ae="",highWaterMark:he=64*1024}){super({autoDestroy:true,read:R,highWaterMark:he});this._readableState.dataEmitted=false;this[Be]=pe;this[_e]=null;this[Se]=null;this[ke]=Ae;this[Ie]=false}destroy(R){if(this.destroyed){return this}if(!R&&!this._readableState.endEmitted){R=new ye}if(R){this[Be]()}return super.destroy(R)}emit(R,...pe){if(R==="data"){this._readableState.dataEmitted=true}else if(R==="error"){this._readableState.errorEmitted=true}return super.emit(R,...pe)}on(R,...pe){if(R==="data"||R==="readable"){this[Ie]=true}return super.on(R,...pe)}addListener(R,...pe){return this.on(R,...pe)}off(R,...pe){const Ae=super.off(R,...pe);if(R==="data"||R==="readable"){this[Ie]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return Ae}removeListener(R,...pe){return this.off(R,...pe)}push(R){if(this[_e]&&R!==null&&this.readableLength===0){consumePush(this[_e],R);return this[Ie]?super.push(R):true}return super.push(R)}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 me}get bodyUsed(){return be.isDisturbed(this)}get body(){if(!this[Se]){this[Se]=Ee(this);if(this[_e]){this[Se].getReader();he(this[Se].locked)}}return this[Se]}dump(R){let pe=R&&Number.isFinite(R.limit)?R.limit:262144;const Ae=R&&R.signal;if(Ae){try{if(typeof Ae!=="object"||!("aborted"in Ae)){throw new ve("signal must be an AbortSignal")}be.throwIfAborted(Ae)}catch(R){return Promise.reject(R)}}if(this.closed){return Promise.resolve(null)}return new Promise(((R,he)=>{const ge=Ae?be.addAbortListener(Ae,(()=>{this.destroy()})):noop;this.on("close",(function(){ge();if(Ae&&Ae.aborted){he(Ae.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{R(null)}})).on("error",noop).on("data",(function(R){pe-=R.length;if(pe<=0){this.destroy()}})).resume()}))}};function isLocked(R){return R[Se]&&R[Se].locked===true||R[_e]}function isUnusable(R){return be.isDisturbed(R)||isLocked(R)}async function consume(R,pe){if(isUnusable(R)){throw new TypeError("unusable")}he(!R[_e]);return new Promise(((Ae,he)=>{R[_e]={type:pe,stream:R,resolve:Ae,reject:he,length:0,body:[]};R.on("error",(function(R){consumeFinish(this[_e],R)})).on("close",(function(){if(this[_e].body!==null){consumeFinish(this[_e],new ye)}}));process.nextTick(consumeStart,R[_e])}))}function consumeStart(R){if(R.body===null){return}const{_readableState:pe}=R.stream;for(const Ae of pe.buffer){consumePush(R,Ae)}if(pe.endEmitted){consumeEnd(this[_e])}else{R.stream.on("end",(function(){consumeEnd(this[_e])}))}R.stream.resume();while(R.stream.read()!=null){}}function consumeEnd(R){const{type:pe,body:he,resolve:ge,stream:ye,length:me}=R;try{if(pe==="text"){ge(Ce(Buffer.concat(he)))}else if(pe==="json"){ge(JSON.parse(Buffer.concat(he)))}else if(pe==="arrayBuffer"){const R=new Uint8Array(me);let pe=0;for(const Ae of he){R.set(Ae,pe);pe+=Ae.byteLength}ge(R.buffer)}else if(pe==="blob"){if(!we){we=Ae(14300).Blob}ge(new we(he,{type:ye[ke]}))}consumeFinish(R)}catch(R){ye.destroy(R)}}function consumePush(R,pe){R.length+=pe.length;R.body.push(pe)}function consumeFinish(R,pe){if(R.body===null){return}if(pe){R.reject(pe)}else{R.resolve()}R.type=null;R.stream=null;R.resolve=null;R.reject=null;R.length=0;R.body=null}},77474:(R,pe,Ae)=>{const he=Ae(39491);const{ResponseStatusCodeError:ge}=Ae(48045);const{toUSVString:ye}=Ae(83983);async function getResolveErrorBodyCallback({callback:R,body:pe,contentType:Ae,statusCode:me,statusMessage:ve,headers:be}){he(pe);let Ee=[];let Ce=0;for await(const R of pe){Ee.push(R);Ce+=R.length;if(Ce>128*1024){Ee=null;break}}if(me===204||!Ae||!Ee){process.nextTick(R,new ge(`Response status code ${me}${ve?`: ${ve}`:""}`,me,be));return}try{if(Ae.startsWith("application/json")){const pe=JSON.parse(ye(Buffer.concat(Ee)));process.nextTick(R,new ge(`Response status code ${me}${ve?`: ${ve}`:""}`,me,be,pe));return}if(Ae.startsWith("text/")){const pe=ye(Buffer.concat(Ee));process.nextTick(R,new ge(`Response status code ${me}${ve?`: ${ve}`:""}`,me,be,pe));return}}catch(R){}process.nextTick(R,new ge(`Response status code ${me}${ve?`: ${ve}`:""}`,me,be))}R.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},37931:(R,pe,Ae)=>{"use strict";const{BalancedPoolMissingUpstreamError:he,InvalidArgumentError:ge}=Ae(48045);const{PoolBase:ye,kClients:me,kNeedDrain:ve,kAddClient:be,kRemoveClient:Ee,kGetDispatcher:Ce}=Ae(73198);const we=Ae(4634);const{kUrl:_e,kInterceptors:Ie}=Ae(72785);const{parseOrigin:Se}=Ae(83983);const Be=Symbol("factory");const ke=Symbol("options");const Oe=Symbol("kGreatestCommonDivisor");const Re=Symbol("kCurrentWeight");const Qe=Symbol("kIndex");const xe=Symbol("kWeight");const Pe=Symbol("kMaxWeightPerServer");const Te=Symbol("kErrorPenalty");function getGreatestCommonDivisor(R,pe){if(pe===0)return R;return getGreatestCommonDivisor(pe,R%pe)}function defaultFactory(R,pe){return new we(R,pe)}class BalancedPool extends ye{constructor(R=[],{factory:pe=defaultFactory,...Ae}={}){super();this[ke]=Ae;this[Qe]=-1;this[Re]=0;this[Pe]=this[ke].maxWeightPerServer||100;this[Te]=this[ke].errorPenalty||15;if(!Array.isArray(R)){R=[R]}if(typeof pe!=="function"){throw new ge("factory must be a function.")}this[Ie]=Ae.interceptors&&Ae.interceptors.BalancedPool&&Array.isArray(Ae.interceptors.BalancedPool)?Ae.interceptors.BalancedPool:[];this[Be]=pe;for(const pe of R){this.addUpstream(pe)}this._updateBalancedPoolStats()}addUpstream(R){const pe=Se(R).origin;if(this[me].find((R=>R[_e].origin===pe&&R.closed!==true&&R.destroyed!==true))){return this}const Ae=this[Be](pe,Object.assign({},this[ke]));this[be](Ae);Ae.on("connect",(()=>{Ae[xe]=Math.min(this[Pe],Ae[xe]+this[Te])}));Ae.on("connectionError",(()=>{Ae[xe]=Math.max(1,Ae[xe]-this[Te]);this._updateBalancedPoolStats()}));Ae.on("disconnect",((...R)=>{const pe=R[2];if(pe&&pe.code==="UND_ERR_SOCKET"){Ae[xe]=Math.max(1,Ae[xe]-this[Te]);this._updateBalancedPoolStats()}}));for(const R of this[me]){R[xe]=this[Pe]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[Oe]=this[me].map((R=>R[xe])).reduce(getGreatestCommonDivisor,0)}removeUpstream(R){const pe=Se(R).origin;const Ae=this[me].find((R=>R[_e].origin===pe&&R.closed!==true&&R.destroyed!==true));if(Ae){this[Ee](Ae)}return this}get upstreams(){return this[me].filter((R=>R.closed!==true&&R.destroyed!==true)).map((R=>R[_e].origin))}[Ce](){if(this[me].length===0){throw new he}const R=this[me].find((R=>!R[ve]&&R.closed!==true&&R.destroyed!==true));if(!R){return}const pe=this[me].map((R=>R[ve])).reduce(((R,pe)=>R&&pe),true);if(pe){return}let Ae=0;let ge=this[me].findIndex((R=>!R[ve]));while(Ae++this[me][ge][xe]&&!R[ve]){ge=this[Qe]}if(this[Qe]===0){this[Re]=this[Re]-this[Oe];if(this[Re]<=0){this[Re]=this[Pe]}}if(R[xe]>=this[Re]&&!R[ve]){return R}}this[Re]=this[me][ge][xe];this[Qe]=ge;return this[me][ge]}}R.exports=BalancedPool},66101:(R,pe,Ae)=>{"use strict";const{kConstruct:he}=Ae(29174);const{urlEquals:ge,fieldValues:ye}=Ae(82396);const{kEnumerableProperty:me,isDisturbed:ve}=Ae(83983);const{kHeadersList:be}=Ae(72785);const{webidl:Ee}=Ae(21744);const{Response:Ce,cloneResponse:we}=Ae(27823);const{Request:_e}=Ae(48359);const{kState:Ie,kHeaders:Se,kGuard:Be,kRealm:ke}=Ae(15861);const{fetching:Oe}=Ae(74881);const{urlIsHttpHttpsScheme:Re,createDeferredPromise:Qe,readAllBytes:xe}=Ae(52538);const Pe=Ae(39491);const{getGlobalDispatcher:Te}=Ae(21892);class Cache{#e;constructor(){if(arguments[0]!==he){Ee.illegalConstructor()}this.#e=arguments[1]}async match(R,pe={}){Ee.brandCheck(this,Cache);Ee.argumentLengthCheck(arguments,1,{header:"Cache.match"});R=Ee.converters.RequestInfo(R);pe=Ee.converters.CacheQueryOptions(pe);const Ae=await this.matchAll(R,pe);if(Ae.length===0){return}return Ae[0]}async matchAll(R=undefined,pe={}){Ee.brandCheck(this,Cache);if(R!==undefined)R=Ee.converters.RequestInfo(R);pe=Ee.converters.CacheQueryOptions(pe);let Ae=null;if(R!==undefined){if(R instanceof _e){Ae=R[Ie];if(Ae.method!=="GET"&&!pe.ignoreMethod){return[]}}else if(typeof R==="string"){Ae=new _e(R)[Ie]}}const he=[];if(R===undefined){for(const R of this.#e){he.push(R[1])}}else{const R=this.#t(Ae,pe);for(const pe of R){he.push(pe[1])}}const ge=[];for(const R of he){const pe=new Ce(R.body?.source??null);const Ae=pe[Ie].body;pe[Ie]=R;pe[Ie].body=Ae;pe[Se][be]=R.headersList;pe[Se][Be]="immutable";ge.push(pe)}return Object.freeze(ge)}async add(R){Ee.brandCheck(this,Cache);Ee.argumentLengthCheck(arguments,1,{header:"Cache.add"});R=Ee.converters.RequestInfo(R);const pe=[R];const Ae=this.addAll(pe);return await Ae}async addAll(R){Ee.brandCheck(this,Cache);Ee.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});R=Ee.converters["sequence"](R);const pe=[];const Ae=[];for(const pe of R){if(typeof pe==="string"){continue}const R=pe[Ie];if(!Re(R.url)||R.method!=="GET"){throw Ee.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const he=[];for(const ge of R){const R=new _e(ge)[Ie];if(!Re(R.url)){throw Ee.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}R.initiator="fetch";R.destination="subresource";Ae.push(R);const me=Qe();he.push(Oe({request:R,dispatcher:Te(),processResponse(R){if(R.type==="error"||R.status===206||R.status<200||R.status>299){me.reject(Ee.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(R.headersList.contains("vary")){const pe=ye(R.headersList.get("vary"));for(const R of pe){if(R==="*"){me.reject(Ee.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const R of he){R.abort()}return}}}},processResponseEndOfBody(R){if(R.aborted){me.reject(new DOMException("aborted","AbortError"));return}me.resolve(R)}}));pe.push(me.promise)}const ge=Promise.all(pe);const me=await ge;const ve=[];let be=0;for(const R of me){const pe={type:"put",request:Ae[be],response:R};ve.push(pe);be++}const Ce=Qe();let we=null;try{this.#r(ve)}catch(R){we=R}queueMicrotask((()=>{if(we===null){Ce.resolve(undefined)}else{Ce.reject(we)}}));return Ce.promise}async put(R,pe){Ee.brandCheck(this,Cache);Ee.argumentLengthCheck(arguments,2,{header:"Cache.put"});R=Ee.converters.RequestInfo(R);pe=Ee.converters.Response(pe);let Ae=null;if(R instanceof _e){Ae=R[Ie]}else{Ae=new _e(R)[Ie]}if(!Re(Ae.url)||Ae.method!=="GET"){throw Ee.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const he=pe[Ie];if(he.status===206){throw Ee.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(he.headersList.contains("vary")){const R=ye(he.headersList.get("vary"));for(const pe of R){if(pe==="*"){throw Ee.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(he.body&&(ve(he.body.stream)||he.body.stream.locked)){throw Ee.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const ge=we(he);const me=Qe();if(he.body!=null){const R=he.body.stream;const pe=R.getReader();xe(pe).then(me.resolve,me.reject)}else{me.resolve(undefined)}const be=[];const Ce={type:"put",request:Ae,response:ge};be.push(Ce);const Se=await me.promise;if(ge.body!=null){ge.body.source=Se}const Be=Qe();let ke=null;try{this.#r(be)}catch(R){ke=R}queueMicrotask((()=>{if(ke===null){Be.resolve()}else{Be.reject(ke)}}));return Be.promise}async delete(R,pe={}){Ee.brandCheck(this,Cache);Ee.argumentLengthCheck(arguments,1,{header:"Cache.delete"});R=Ee.converters.RequestInfo(R);pe=Ee.converters.CacheQueryOptions(pe);let Ae=null;if(R instanceof _e){Ae=R[Ie];if(Ae.method!=="GET"&&!pe.ignoreMethod){return false}}else{Pe(typeof R==="string");Ae=new _e(R)[Ie]}const he=[];const ge={type:"delete",request:Ae,options:pe};he.push(ge);const ye=Qe();let me=null;let ve;try{ve=this.#r(he)}catch(R){me=R}queueMicrotask((()=>{if(me===null){ye.resolve(!!ve?.length)}else{ye.reject(me)}}));return ye.promise}async keys(R=undefined,pe={}){Ee.brandCheck(this,Cache);if(R!==undefined)R=Ee.converters.RequestInfo(R);pe=Ee.converters.CacheQueryOptions(pe);let Ae=null;if(R!==undefined){if(R instanceof _e){Ae=R[Ie];if(Ae.method!=="GET"&&!pe.ignoreMethod){return[]}}else if(typeof R==="string"){Ae=new _e(R)[Ie]}}const he=Qe();const ge=[];if(R===undefined){for(const R of this.#e){ge.push(R[0])}}else{const R=this.#t(Ae,pe);for(const pe of R){ge.push(pe[0])}}queueMicrotask((()=>{const R=[];for(const pe of ge){const Ae=new _e("https://a");Ae[Ie]=pe;Ae[Se][be]=pe.headersList;Ae[Se][Be]="immutable";Ae[ke]=pe.client;R.push(Ae)}he.resolve(Object.freeze(R))}));return he.promise}#r(R){const pe=this.#e;const Ae=[...pe];const he=[];const ge=[];try{for(const Ae of R){if(Ae.type!=="delete"&&Ae.type!=="put"){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(Ae.type==="delete"&&Ae.response!=null){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(Ae.request,Ae.options,he).length){throw new DOMException("???","InvalidStateError")}let R;if(Ae.type==="delete"){R=this.#t(Ae.request,Ae.options);if(R.length===0){return[]}for(const Ae of R){const R=pe.indexOf(Ae);Pe(R!==-1);pe.splice(R,1)}}else if(Ae.type==="put"){if(Ae.response==null){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const ge=Ae.request;if(!Re(ge.url)){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(ge.method!=="GET"){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(Ae.options!=null){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}R=this.#t(Ae.request);for(const Ae of R){const R=pe.indexOf(Ae);Pe(R!==-1);pe.splice(R,1)}pe.push([Ae.request,Ae.response]);he.push([Ae.request,Ae.response])}ge.push([Ae.request,Ae.response])}return ge}catch(R){this.#e.length=0;this.#e=Ae;throw R}}#t(R,pe,Ae){const he=[];const ge=Ae??this.#e;for(const Ae of ge){const[ge,ye]=Ae;if(this.#n(R,ge,ye,pe)){he.push(Ae)}}return he}#n(R,pe,Ae=null,he){const me=new URL(R.url);const ve=new URL(pe.url);if(he?.ignoreSearch){ve.search="";me.search=""}if(!ge(me,ve,true)){return false}if(Ae==null||he?.ignoreVary||!Ae.headersList.contains("vary")){return true}const be=ye(Ae.headersList.get("vary"));for(const Ae of be){if(Ae==="*"){return false}const he=pe.headersList.get(Ae);const ge=R.headersList.get(Ae);if(he!==ge){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:me,matchAll:me,add:me,addAll:me,put:me,delete:me,keys:me});const De=[{key:"ignoreSearch",converter:Ee.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:Ee.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:Ee.converters.boolean,defaultValue:false}];Ee.converters.CacheQueryOptions=Ee.dictionaryConverter(De);Ee.converters.MultiCacheQueryOptions=Ee.dictionaryConverter([...De,{key:"cacheName",converter:Ee.converters.DOMString}]);Ee.converters.Response=Ee.interfaceConverter(Ce);Ee.converters["sequence"]=Ee.sequenceConverter(Ee.converters.RequestInfo);R.exports={Cache:Cache}},37907:(R,pe,Ae)=>{"use strict";const{kConstruct:he}=Ae(29174);const{Cache:ge}=Ae(66101);const{webidl:ye}=Ae(21744);const{kEnumerableProperty:me}=Ae(83983);class CacheStorage{#i=new Map;constructor(){if(arguments[0]!==he){ye.illegalConstructor()}}async match(R,pe={}){ye.brandCheck(this,CacheStorage);ye.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});R=ye.converters.RequestInfo(R);pe=ye.converters.MultiCacheQueryOptions(pe);if(pe.cacheName!=null){if(this.#i.has(pe.cacheName)){const Ae=this.#i.get(pe.cacheName);const ye=new ge(he,Ae);return await ye.match(R,pe)}}else{for(const Ae of this.#i.values()){const ye=new ge(he,Ae);const me=await ye.match(R,pe);if(me!==undefined){return me}}}}async has(R){ye.brandCheck(this,CacheStorage);ye.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});R=ye.converters.DOMString(R);return this.#i.has(R)}async open(R){ye.brandCheck(this,CacheStorage);ye.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});R=ye.converters.DOMString(R);if(this.#i.has(R)){const pe=this.#i.get(R);return new ge(he,pe)}const pe=[];this.#i.set(R,pe);return new ge(he,pe)}async delete(R){ye.brandCheck(this,CacheStorage);ye.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});R=ye.converters.DOMString(R);return this.#i.delete(R)}async keys(){ye.brandCheck(this,CacheStorage);const R=this.#i.keys();return[...R]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:me,has:me,open:me,delete:me,keys:me});R.exports={CacheStorage:CacheStorage}},29174:(R,pe,Ae)=>{"use strict";R.exports={kConstruct:Ae(72785).kConstruct}},82396:(R,pe,Ae)=>{"use strict";const he=Ae(39491);const{URLSerializer:ge}=Ae(685);const{isValidHeaderName:ye}=Ae(52538);function urlEquals(R,pe,Ae=false){const he=ge(R,Ae);const ye=ge(pe,Ae);return he===ye}function fieldValues(R){he(R!==null);const pe=[];for(let Ae of R.split(",")){Ae=Ae.trim();if(!Ae.length){continue}else if(!ye(Ae)){continue}pe.push(Ae)}return pe}R.exports={urlEquals:urlEquals,fieldValues:fieldValues}},33598:(R,pe,Ae)=>{"use strict";const he=Ae(39491);const ge=Ae(41808);const ye=Ae(13685);const{pipeline:me}=Ae(12781);const ve=Ae(83983);const be=Ae(29459);const Ee=Ae(62905);const Ce=Ae(74839);const{RequestContentLengthMismatchError:we,ResponseContentLengthMismatchError:_e,InvalidArgumentError:Ie,RequestAbortedError:Se,HeadersTimeoutError:Be,HeadersOverflowError:ke,SocketError:Oe,InformationalError:Re,BodyTimeoutError:Qe,HTTPParserError:xe,ResponseExceededMaxSizeError:Pe,ClientDestroyedError:Te}=Ae(48045);const De=Ae(82067);const{kUrl:Ne,kReset:Me,kServerName:je,kClient:Fe,kBusy:Le,kParser:Ue,kConnect:He,kBlocking:Je,kResuming:We,kRunning:Ve,kPending:Ke,kSize:Ge,kWriting:Ye,kQueue:qe,kConnected:$e,kConnecting:ze,kNeedDrain:Xe,kNoRef:Ze,kKeepAliveDefaultTimeout:et,kHostHeader:tt,kPendingIdx:rt,kRunningIdx:nt,kError:it,kPipelining:ot,kSocket:st,kKeepAliveTimeoutValue:at,kMaxHeadersSize:ct,kKeepAliveMaxTimeout:ut,kKeepAliveTimeoutThreshold:lt,kHeadersTimeout:dt,kBodyTimeout:ft,kStrictContentLength:pt,kConnector:At,kMaxRedirections:ht,kMaxRequests:gt,kCounter:yt,kClose:mt,kDestroy:vt,kDispatch:bt,kInterceptors:Et,kLocalAddress:Ct,kMaxResponseSize:wt,kHTTPConnVersion:_t,kHost:It,kHTTP2Session:St,kHTTP2SessionState:Bt,kHTTP2BuildRequest:kt,kHTTP2CopyHeaders:Ot,kHTTP1BuildRequest:Rt}=Ae(72785);let Qt;try{Qt=Ae(85158)}catch{Qt={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:xt,HTTP2_HEADER_METHOD:Pt,HTTP2_HEADER_PATH:Tt,HTTP2_HEADER_SCHEME:Dt,HTTP2_HEADER_CONTENT_LENGTH:Nt,HTTP2_HEADER_EXPECT:Mt,HTTP2_HEADER_STATUS:jt}}=Qt;let Ft=false;const Lt=Buffer[Symbol.species];const Ut=Symbol("kClosedResolve");const Ht={};try{const R=Ae(67643);Ht.sendHeaders=R.channel("undici:client:sendHeaders");Ht.beforeConnect=R.channel("undici:client:beforeConnect");Ht.connectError=R.channel("undici:client:connectError");Ht.connected=R.channel("undici:client:connected")}catch{Ht.sendHeaders={hasSubscribers:false};Ht.beforeConnect={hasSubscribers:false};Ht.connectError={hasSubscribers:false};Ht.connected={hasSubscribers:false}}class Client extends Ce{constructor(R,{interceptors:pe,maxHeaderSize:Ae,headersTimeout:he,socketTimeout:me,requestTimeout:be,connectTimeout:Ee,bodyTimeout:Ce,idleTimeout:we,keepAlive:_e,keepAliveTimeout:Se,maxKeepAliveTimeout:Be,keepAliveMaxTimeout:ke,keepAliveTimeoutThreshold:Oe,socketPath:Re,pipelining:Qe,tls:xe,strictContentLength:Pe,maxCachedSessions:Te,maxRedirections:Me,connect:Fe,maxRequestsPerClient:Le,localAddress:Ue,maxResponseSize:He,autoSelectFamily:Je,autoSelectFamilyAttemptTimeout:Ve,allowH2:Ke,maxConcurrentStreams:Ge}={}){super();if(_e!==undefined){throw new Ie("unsupported keepAlive, use pipelining=0 instead")}if(me!==undefined){throw new Ie("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(be!==undefined){throw new Ie("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(we!==undefined){throw new Ie("unsupported idleTimeout, use keepAliveTimeout instead")}if(Be!==undefined){throw new Ie("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(Ae!=null&&!Number.isFinite(Ae)){throw new Ie("invalid maxHeaderSize")}if(Re!=null&&typeof Re!=="string"){throw new Ie("invalid socketPath")}if(Ee!=null&&(!Number.isFinite(Ee)||Ee<0)){throw new Ie("invalid connectTimeout")}if(Se!=null&&(!Number.isFinite(Se)||Se<=0)){throw new Ie("invalid keepAliveTimeout")}if(ke!=null&&(!Number.isFinite(ke)||ke<=0)){throw new Ie("invalid keepAliveMaxTimeout")}if(Oe!=null&&!Number.isFinite(Oe)){throw new Ie("invalid keepAliveTimeoutThreshold")}if(he!=null&&(!Number.isInteger(he)||he<0)){throw new Ie("headersTimeout must be a positive integer or zero")}if(Ce!=null&&(!Number.isInteger(Ce)||Ce<0)){throw new Ie("bodyTimeout must be a positive integer or zero")}if(Fe!=null&&typeof Fe!=="function"&&typeof Fe!=="object"){throw new Ie("connect must be a function or an object")}if(Me!=null&&(!Number.isInteger(Me)||Me<0)){throw new Ie("maxRedirections must be a positive number")}if(Le!=null&&(!Number.isInteger(Le)||Le<0)){throw new Ie("maxRequestsPerClient must be a positive number")}if(Ue!=null&&(typeof Ue!=="string"||ge.isIP(Ue)===0)){throw new Ie("localAddress must be valid string IP address")}if(He!=null&&(!Number.isInteger(He)||He<-1)){throw new Ie("maxResponseSize must be a positive number")}if(Ve!=null&&(!Number.isInteger(Ve)||Ve<-1)){throw new Ie("autoSelectFamilyAttemptTimeout must be a positive number")}if(Ke!=null&&typeof Ke!=="boolean"){throw new Ie("allowH2 must be a valid boolean value")}if(Ge!=null&&(typeof Ge!=="number"||Ge<1)){throw new Ie("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof Fe!=="function"){Fe=De({...xe,maxCachedSessions:Te,allowH2:Ke,socketPath:Re,timeout:Ee,...ve.nodeHasAutoSelectFamily&&Je?{autoSelectFamily:Je,autoSelectFamilyAttemptTimeout:Ve}:undefined,...Fe})}this[Et]=pe&&pe.Client&&Array.isArray(pe.Client)?pe.Client:[Wt({maxRedirections:Me})];this[Ne]=ve.parseOrigin(R);this[At]=Fe;this[st]=null;this[ot]=Qe!=null?Qe:1;this[ct]=Ae||ye.maxHeaderSize;this[et]=Se==null?4e3:Se;this[ut]=ke==null?6e5:ke;this[lt]=Oe==null?1e3:Oe;this[at]=this[et];this[je]=null;this[Ct]=Ue!=null?Ue:null;this[We]=0;this[Xe]=0;this[tt]=`host: ${this[Ne].hostname}${this[Ne].port?`:${this[Ne].port}`:""}\r\n`;this[ft]=Ce!=null?Ce:3e5;this[dt]=he!=null?he:3e5;this[pt]=Pe==null?true:Pe;this[ht]=Me;this[gt]=Le;this[Ut]=null;this[wt]=He>-1?He:-1;this[_t]="h1";this[St]=null;this[Bt]=!Ke?null:{openStreams:0,maxConcurrentStreams:Ge!=null?Ge:100};this[It]=`${this[Ne].hostname}${this[Ne].port?`:${this[Ne].port}`:""}`;this[qe]=[];this[nt]=0;this[rt]=0}get pipelining(){return this[ot]}set pipelining(R){this[ot]=R;resume(this,true)}get[Ke](){return this[qe].length-this[rt]}get[Ve](){return this[rt]-this[nt]}get[Ge](){return this[qe].length-this[nt]}get[$e](){return!!this[st]&&!this[ze]&&!this[st].destroyed}get[Le](){const R=this[st];return R&&(R[Me]||R[Ye]||R[Je])||this[Ge]>=(this[ot]||1)||this[Ke]>0}[He](R){connect(this);this.once("connect",R)}[bt](R,pe){const Ae=R.origin||this[Ne].origin;const he=this[_t]==="h2"?Ee[kt](Ae,R,pe):Ee[Rt](Ae,R,pe);this[qe].push(he);if(this[We]){}else if(ve.bodyLength(he.body)==null&&ve.isIterable(he.body)){this[We]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[We]&&this[Xe]!==2&&this[Le]){this[Xe]=2}return this[Xe]<2}async[mt](){return new Promise((R=>{if(!this[Ge]){R(null)}else{this[Ut]=R}}))}async[vt](R){return new Promise((pe=>{const Ae=this[qe].splice(this[rt]);for(let pe=0;pe{if(this[Ut]){this[Ut]();this[Ut]=null}pe()};if(this[St]!=null){ve.destroy(this[St],R);this[St]=null;this[Bt]=null}if(!this[st]){queueMicrotask(callback)}else{ve.destroy(this[st].on("close",callback),R)}resume(this)}))}}function onHttp2SessionError(R){he(R.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[st][it]=R;onError(this[Fe],R)}function onHttp2FrameError(R,pe,Ae){const he=new Re(`HTTP/2: "frameError" received - type ${R}, code ${pe}`);if(Ae===0){this[st][it]=he;onError(this[Fe],he)}}function onHttp2SessionEnd(){ve.destroy(this,new Oe("other side closed"));ve.destroy(this[st],new Oe("other side closed"))}function onHTTP2GoAway(R){const pe=this[Fe];const Ae=new Re(`HTTP/2: "GOAWAY" frame received with code ${R}`);pe[st]=null;pe[St]=null;if(pe.destroyed){he(this[Ke]===0);const R=pe[qe].splice(pe[nt]);for(let pe=0;pe0){const R=pe[qe][pe[nt]];pe[qe][pe[nt]++]=null;errorRequest(pe,R,Ae)}pe[rt]=pe[nt];he(pe[Ve]===0);pe.emit("disconnect",pe[Ne],[pe],Ae);resume(pe)}const Jt=Ae(30953);const Wt=Ae(38861);const Vt=Buffer.alloc(0);async function lazyllhttp(){const R=process.env.JEST_WORKER_ID?Ae(61145):undefined;let pe;try{pe=await WebAssembly.compile(Buffer.from(Ae(95627),"base64"))}catch(he){pe=await WebAssembly.compile(Buffer.from(R||Ae(61145),"base64"))}return await WebAssembly.instantiate(pe,{env:{wasm_on_url:(R,pe,Ae)=>0,wasm_on_status:(R,pe,Ae)=>{he.strictEqual(Yt.ptr,R);const ge=pe-zt+qt.byteOffset;return Yt.onStatus(new Lt(qt.buffer,ge,Ae))||0},wasm_on_message_begin:R=>{he.strictEqual(Yt.ptr,R);return Yt.onMessageBegin()||0},wasm_on_header_field:(R,pe,Ae)=>{he.strictEqual(Yt.ptr,R);const ge=pe-zt+qt.byteOffset;return Yt.onHeaderField(new Lt(qt.buffer,ge,Ae))||0},wasm_on_header_value:(R,pe,Ae)=>{he.strictEqual(Yt.ptr,R);const ge=pe-zt+qt.byteOffset;return Yt.onHeaderValue(new Lt(qt.buffer,ge,Ae))||0},wasm_on_headers_complete:(R,pe,Ae,ge)=>{he.strictEqual(Yt.ptr,R);return Yt.onHeadersComplete(pe,Boolean(Ae),Boolean(ge))||0},wasm_on_body:(R,pe,Ae)=>{he.strictEqual(Yt.ptr,R);const ge=pe-zt+qt.byteOffset;return Yt.onBody(new Lt(qt.buffer,ge,Ae))||0},wasm_on_message_complete:R=>{he.strictEqual(Yt.ptr,R);return Yt.onMessageComplete()||0}}})}let Kt=null;let Gt=lazyllhttp();Gt.catch();let Yt=null;let qt=null;let $t=0;let zt=null;const Xt=1;const Zt=2;const er=3;class Parser{constructor(R,pe,{exports:Ae}){he(Number.isFinite(R[ct])&&R[ct]>0);this.llhttp=Ae;this.ptr=this.llhttp.llhttp_alloc(Jt.TYPE.RESPONSE);this.client=R;this.socket=pe;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=R[ct];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=R[wt]}setTimeout(R,pe){this.timeoutType=pe;if(R!==this.timeoutValue){be.clearTimeout(this.timeout);if(R){this.timeout=be.setTimeout(onParserTimeout,R,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=R}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}he(this.ptr!=null);he(Yt==null);this.llhttp.llhttp_resume(this.ptr);he(this.timeoutType===Zt);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||Vt);this.readMore()}readMore(){while(!this.paused&&this.ptr){const R=this.socket.read();if(R===null){break}this.execute(R)}}execute(R){he(this.ptr!=null);he(Yt==null);he(!this.paused);const{socket:pe,llhttp:Ae}=this;if(R.length>$t){if(zt){Ae.free(zt)}$t=Math.ceil(R.length/4096)*4096;zt=Ae.malloc($t)}new Uint8Array(Ae.memory.buffer,zt,$t).set(R);try{let he;try{qt=R;Yt=this;he=Ae.llhttp_execute(this.ptr,zt,R.length)}catch(R){throw R}finally{Yt=null;qt=null}const ge=Ae.llhttp_get_error_pos(this.ptr)-zt;if(he===Jt.ERROR.PAUSED_UPGRADE){this.onUpgrade(R.slice(ge))}else if(he===Jt.ERROR.PAUSED){this.paused=true;pe.unshift(R.slice(ge))}else if(he!==Jt.ERROR.OK){const pe=Ae.llhttp_get_error_reason(this.ptr);let ye="";if(pe){const R=new Uint8Array(Ae.memory.buffer,pe).indexOf(0);ye="Response does not match the HTTP/1.1 protocol ("+Buffer.from(Ae.memory.buffer,pe,R).toString()+")"}throw new xe(ye,Jt.ERROR[he],R.slice(ge))}}catch(R){ve.destroy(pe,R)}}destroy(){he(this.ptr!=null);he(Yt==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;be.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(R){this.statusText=R.toString()}onMessageBegin(){const{socket:R,client:pe}=this;if(R.destroyed){return-1}const Ae=pe[qe][pe[nt]];if(!Ae){return-1}}onHeaderField(R){const pe=this.headers.length;if((pe&1)===0){this.headers.push(R)}else{this.headers[pe-1]=Buffer.concat([this.headers[pe-1],R])}this.trackHeader(R.length)}onHeaderValue(R){let pe=this.headers.length;if((pe&1)===1){this.headers.push(R);pe+=1}else{this.headers[pe-1]=Buffer.concat([this.headers[pe-1],R])}const Ae=this.headers[pe-2];if(Ae.length===10&&Ae.toString().toLowerCase()==="keep-alive"){this.keepAlive+=R.toString()}else if(Ae.length===10&&Ae.toString().toLowerCase()==="connection"){this.connection+=R.toString()}else if(Ae.length===14&&Ae.toString().toLowerCase()==="content-length"){this.contentLength+=R.toString()}this.trackHeader(R.length)}trackHeader(R){this.headersSize+=R;if(this.headersSize>=this.headersMaxSize){ve.destroy(this.socket,new ke)}}onUpgrade(R){const{upgrade:pe,client:Ae,socket:ge,headers:ye,statusCode:me}=this;he(pe);const be=Ae[qe][Ae[nt]];he(be);he(!ge.destroyed);he(ge===Ae[st]);he(!this.paused);he(be.upgrade||be.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;he(this.headers.length%2===0);this.headers=[];this.headersSize=0;ge.unshift(R);ge[Ue].destroy();ge[Ue]=null;ge[Fe]=null;ge[it]=null;ge.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);Ae[st]=null;Ae[qe][Ae[nt]++]=null;Ae.emit("disconnect",Ae[Ne],[Ae],new Re("upgrade"));try{be.onUpgrade(me,ye,ge)}catch(R){ve.destroy(ge,R)}resume(Ae)}onHeadersComplete(R,pe,Ae){const{client:ge,socket:ye,headers:me,statusText:be}=this;if(ye.destroyed){return-1}const Ee=ge[qe][ge[nt]];if(!Ee){return-1}he(!this.upgrade);he(this.statusCode<200);if(R===100){ve.destroy(ye,new Oe("bad response",ve.getSocketInfo(ye)));return-1}if(pe&&!Ee.upgrade){ve.destroy(ye,new Oe("bad upgrade",ve.getSocketInfo(ye)));return-1}he.strictEqual(this.timeoutType,Xt);this.statusCode=R;this.shouldKeepAlive=Ae||Ee.method==="HEAD"&&!ye[Me]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const R=Ee.bodyTimeout!=null?Ee.bodyTimeout:ge[ft];this.setTimeout(R,Zt)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(Ee.method==="CONNECT"){he(ge[Ve]===1);this.upgrade=true;return 2}if(pe){he(ge[Ve]===1);this.upgrade=true;return 2}he(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&ge[ot]){const R=this.keepAlive?ve.parseKeepAliveTimeout(this.keepAlive):null;if(R!=null){const pe=Math.min(R-ge[lt],ge[ut]);if(pe<=0){ye[Me]=true}else{ge[at]=pe}}else{ge[at]=ge[et]}}else{ye[Me]=true}const Ce=Ee.onHeaders(R,me,this.resume,be)===false;if(Ee.aborted){return-1}if(Ee.method==="HEAD"){return 1}if(R<200){return 1}if(ye[Je]){ye[Je]=false;resume(ge)}return Ce?Jt.ERROR.PAUSED:0}onBody(R){const{client:pe,socket:Ae,statusCode:ge,maxResponseSize:ye}=this;if(Ae.destroyed){return-1}const me=pe[qe][pe[nt]];he(me);he.strictEqual(this.timeoutType,Zt);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}he(ge>=200);if(ye>-1&&this.bytesRead+R.length>ye){ve.destroy(Ae,new Pe);return-1}this.bytesRead+=R.length;if(me.onData(R)===false){return Jt.ERROR.PAUSED}}onMessageComplete(){const{client:R,socket:pe,statusCode:Ae,upgrade:ge,headers:ye,contentLength:me,bytesRead:be,shouldKeepAlive:Ee}=this;if(pe.destroyed&&(!Ae||Ee)){return-1}if(ge){return}const Ce=R[qe][R[nt]];he(Ce);he(Ae>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";he(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(Ae<200){return}if(Ce.method!=="HEAD"&&me&&be!==parseInt(me,10)){ve.destroy(pe,new _e);return-1}Ce.onComplete(ye);R[qe][R[nt]++]=null;if(pe[Ye]){he.strictEqual(R[Ve],0);ve.destroy(pe,new Re("reset"));return Jt.ERROR.PAUSED}else if(!Ee){ve.destroy(pe,new Re("reset"));return Jt.ERROR.PAUSED}else if(pe[Me]&&R[Ve]===0){ve.destroy(pe,new Re("reset"));return Jt.ERROR.PAUSED}else if(R[ot]===1){setImmediate(resume,R)}else{resume(R)}}}function onParserTimeout(R){const{socket:pe,timeoutType:Ae,client:ge}=R;if(Ae===Xt){if(!pe[Ye]||pe.writableNeedDrain||ge[Ve]>1){he(!R.paused,"cannot be paused while waiting for headers");ve.destroy(pe,new Be)}}else if(Ae===Zt){if(!R.paused){ve.destroy(pe,new Qe)}}else if(Ae===er){he(ge[Ve]===0&&ge[at]);ve.destroy(pe,new Re("socket idle timeout"))}}function onSocketReadable(){const{[Ue]:R}=this;if(R){R.readMore()}}function onSocketError(R){const{[Fe]:pe,[Ue]:Ae}=this;he(R.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(pe[_t]!=="h2"){if(R.code==="ECONNRESET"&&Ae.statusCode&&!Ae.shouldKeepAlive){Ae.onMessageComplete();return}}this[it]=R;onError(this[Fe],R)}function onError(R,pe){if(R[Ve]===0&&pe.code!=="UND_ERR_INFO"&&pe.code!=="UND_ERR_SOCKET"){he(R[rt]===R[nt]);const Ae=R[qe].splice(R[nt]);for(let he=0;he0&&Ae.code!=="UND_ERR_INFO"){const pe=R[qe][R[nt]];R[qe][R[nt]++]=null;errorRequest(R,pe,Ae)}R[rt]=R[nt];he(R[Ve]===0);R.emit("disconnect",R[Ne],[R],Ae);resume(R)}async function connect(R){he(!R[ze]);he(!R[st]);let{host:pe,hostname:Ae,protocol:ye,port:me}=R[Ne];if(Ae[0]==="["){const R=Ae.indexOf("]");he(R!==-1);const pe=Ae.substring(1,R);he(ge.isIP(pe));Ae=pe}R[ze]=true;if(Ht.beforeConnect.hasSubscribers){Ht.beforeConnect.publish({connectParams:{host:pe,hostname:Ae,protocol:ye,port:me,servername:R[je],localAddress:R[Ct]},connector:R[At]})}try{const ge=await new Promise(((he,ge)=>{R[At]({host:pe,hostname:Ae,protocol:ye,port:me,servername:R[je],localAddress:R[Ct]},((R,pe)=>{if(R){ge(R)}else{he(pe)}}))}));if(R.destroyed){ve.destroy(ge.on("error",(()=>{})),new Te);return}R[ze]=false;he(ge);const be=ge.alpnProtocol==="h2";if(be){if(!Ft){Ft=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const pe=Qt.connect(R[Ne],{createConnection:()=>ge,peerMaxConcurrentStreams:R[Bt].maxConcurrentStreams});R[_t]="h2";pe[Fe]=R;pe[st]=ge;pe.on("error",onHttp2SessionError);pe.on("frameError",onHttp2FrameError);pe.on("end",onHttp2SessionEnd);pe.on("goaway",onHTTP2GoAway);pe.on("close",onSocketClose);pe.unref();R[St]=pe;ge[St]=pe}else{if(!Kt){Kt=await Gt;Gt=null}ge[Ze]=false;ge[Ye]=false;ge[Me]=false;ge[Je]=false;ge[Ue]=new Parser(R,ge,Kt)}ge[yt]=0;ge[gt]=R[gt];ge[Fe]=R;ge[it]=null;ge.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);R[st]=ge;if(Ht.connected.hasSubscribers){Ht.connected.publish({connectParams:{host:pe,hostname:Ae,protocol:ye,port:me,servername:R[je],localAddress:R[Ct]},connector:R[At],socket:ge})}R.emit("connect",R[Ne],[R])}catch(ge){if(R.destroyed){return}R[ze]=false;if(Ht.connectError.hasSubscribers){Ht.connectError.publish({connectParams:{host:pe,hostname:Ae,protocol:ye,port:me,servername:R[je],localAddress:R[Ct]},connector:R[At],error:ge})}if(ge.code==="ERR_TLS_CERT_ALTNAME_INVALID"){he(R[Ve]===0);while(R[Ke]>0&&R[qe][R[rt]].servername===R[je]){const pe=R[qe][R[rt]++];errorRequest(R,pe,ge)}}else{onError(R,ge)}R.emit("connectionError",R[Ne],[R],ge)}resume(R)}function emitDrain(R){R[Xe]=0;R.emit("drain",R[Ne],[R])}function resume(R,pe){if(R[We]===2){return}R[We]=2;_resume(R,pe);R[We]=0;if(R[nt]>256){R[qe].splice(0,R[nt]);R[rt]-=R[nt];R[nt]=0}}function _resume(R,pe){while(true){if(R.destroyed){he(R[Ke]===0);return}if(R[Ut]&&!R[Ge]){R[Ut]();R[Ut]=null;return}const Ae=R[st];if(Ae&&!Ae.destroyed&&Ae.alpnProtocol!=="h2"){if(R[Ge]===0){if(!Ae[Ze]&&Ae.unref){Ae.unref();Ae[Ze]=true}}else if(Ae[Ze]&&Ae.ref){Ae.ref();Ae[Ze]=false}if(R[Ge]===0){if(Ae[Ue].timeoutType!==er){Ae[Ue].setTimeout(R[at],er)}}else if(R[Ve]>0&&Ae[Ue].statusCode<200){if(Ae[Ue].timeoutType!==Xt){const pe=R[qe][R[nt]];const he=pe.headersTimeout!=null?pe.headersTimeout:R[dt];Ae[Ue].setTimeout(he,Xt)}}}if(R[Le]){R[Xe]=2}else if(R[Xe]===2){if(pe){R[Xe]=1;process.nextTick(emitDrain,R)}else{emitDrain(R)}continue}if(R[Ke]===0){return}if(R[Ve]>=(R[ot]||1)){return}const ge=R[qe][R[rt]];if(R[Ne].protocol==="https:"&&R[je]!==ge.servername){if(R[Ve]>0){return}R[je]=ge.servername;if(Ae&&Ae.servername!==ge.servername){ve.destroy(Ae,new Re("servername changed"));return}}if(R[ze]){return}if(!Ae&&!R[St]){connect(R);return}if(Ae.destroyed||Ae[Ye]||Ae[Me]||Ae[Je]){return}if(R[Ve]>0&&!ge.idempotent){return}if(R[Ve]>0&&(ge.upgrade||ge.method==="CONNECT")){return}if(R[Ve]>0&&ve.bodyLength(ge.body)!==0&&(ve.isStream(ge.body)||ve.isAsyncIterable(ge.body))){return}if(!ge.aborted&&write(R,ge)){R[rt]++}else{R[qe].splice(R[rt],1)}}}function shouldSendContentLength(R){return R!=="GET"&&R!=="HEAD"&&R!=="OPTIONS"&&R!=="TRACE"&&R!=="CONNECT"}function write(R,pe){if(R[_t]==="h2"){writeH2(R,R[St],pe);return}const{body:Ae,method:ge,path:ye,host:me,upgrade:be,headers:Ee,blocking:Ce,reset:_e}=pe;const Ie=ge==="PUT"||ge==="POST"||ge==="PATCH";if(Ae&&typeof Ae.read==="function"){Ae.read(0)}const Be=ve.bodyLength(Ae);let ke=Be;if(ke===null){ke=pe.contentLength}if(ke===0&&!Ie){ke=null}if(shouldSendContentLength(ge)&&ke>0&&pe.contentLength!==null&&pe.contentLength!==ke){if(R[pt]){errorRequest(R,pe,new we);return false}process.emitWarning(new we)}const Oe=R[st];try{pe.onConnect((Ae=>{if(pe.aborted||pe.completed){return}errorRequest(R,pe,Ae||new Se);ve.destroy(Oe,new Re("aborted"))}))}catch(Ae){errorRequest(R,pe,Ae)}if(pe.aborted){return false}if(ge==="HEAD"){Oe[Me]=true}if(be||ge==="CONNECT"){Oe[Me]=true}if(_e!=null){Oe[Me]=_e}if(R[gt]&&Oe[yt]++>=R[gt]){Oe[Me]=true}if(Ce){Oe[Je]=true}let Qe=`${ge} ${ye} HTTP/1.1\r\n`;if(typeof me==="string"){Qe+=`host: ${me}\r\n`}else{Qe+=R[tt]}if(be){Qe+=`connection: upgrade\r\nupgrade: ${be}\r\n`}else if(R[ot]&&!Oe[Me]){Qe+="connection: keep-alive\r\n"}else{Qe+="connection: close\r\n"}if(Ee){Qe+=Ee}if(Ht.sendHeaders.hasSubscribers){Ht.sendHeaders.publish({request:pe,headers:Qe,socket:Oe})}if(!Ae||Be===0){if(ke===0){Oe.write(`${Qe}content-length: 0\r\n\r\n`,"latin1")}else{he(ke===null,"no body must not have content length");Oe.write(`${Qe}\r\n`,"latin1")}pe.onRequestSent()}else if(ve.isBuffer(Ae)){he(ke===Ae.byteLength,"buffer body must have content length");Oe.cork();Oe.write(`${Qe}content-length: ${ke}\r\n\r\n`,"latin1");Oe.write(Ae);Oe.uncork();pe.onBodySent(Ae);pe.onRequestSent();if(!Ie){Oe[Me]=true}}else if(ve.isBlobLike(Ae)){if(typeof Ae.stream==="function"){writeIterable({body:Ae.stream(),client:R,request:pe,socket:Oe,contentLength:ke,header:Qe,expectsPayload:Ie})}else{writeBlob({body:Ae,client:R,request:pe,socket:Oe,contentLength:ke,header:Qe,expectsPayload:Ie})}}else if(ve.isStream(Ae)){writeStream({body:Ae,client:R,request:pe,socket:Oe,contentLength:ke,header:Qe,expectsPayload:Ie})}else if(ve.isIterable(Ae)){writeIterable({body:Ae,client:R,request:pe,socket:Oe,contentLength:ke,header:Qe,expectsPayload:Ie})}else{he(false)}return true}function writeH2(R,pe,Ae){const{body:ge,method:ye,path:me,host:be,upgrade:Ce,expectContinue:_e,signal:Ie,headers:Be}=Ae;let ke;if(typeof Be==="string")ke=Ee[Ot](Be.trim());else ke=Be;if(Ce){errorRequest(R,Ae,new Error("Upgrade not supported for H2"));return false}try{Ae.onConnect((pe=>{if(Ae.aborted||Ae.completed){return}errorRequest(R,Ae,pe||new Se)}))}catch(pe){errorRequest(R,Ae,pe)}if(Ae.aborted){return false}let Oe;const Qe=R[Bt];ke[xt]=be||R[It];ke[Pt]=ye;if(ye==="CONNECT"){pe.ref();Oe=pe.request(ke,{endStream:false,signal:Ie});if(Oe.id&&!Oe.pending){Ae.onUpgrade(null,null,Oe);++Qe.openStreams}else{Oe.once("ready",(()=>{Ae.onUpgrade(null,null,Oe);++Qe.openStreams}))}Oe.once("close",(()=>{Qe.openStreams-=1;if(Qe.openStreams===0)pe.unref()}));return true}ke[Tt]=me;ke[Dt]="https";const xe=ye==="PUT"||ye==="POST"||ye==="PATCH";if(ge&&typeof ge.read==="function"){ge.read(0)}let Pe=ve.bodyLength(ge);if(Pe==null){Pe=Ae.contentLength}if(Pe===0||!xe){Pe=null}if(shouldSendContentLength(ye)&&Pe>0&&Ae.contentLength!=null&&Ae.contentLength!==Pe){if(R[pt]){errorRequest(R,Ae,new we);return false}process.emitWarning(new we)}if(Pe!=null){he(ge,"no body must not have content length");ke[Nt]=`${Pe}`}pe.ref();const Te=ye==="GET"||ye==="HEAD";if(_e){ke[Mt]="100-continue";Oe=pe.request(ke,{endStream:Te,signal:Ie});Oe.once("continue",writeBodyH2)}else{Oe=pe.request(ke,{endStream:Te,signal:Ie});writeBodyH2()}++Qe.openStreams;Oe.once("response",(R=>{const{[jt]:pe,...he}=R;if(Ae.onHeaders(Number(pe),he,Oe.resume.bind(Oe),"")===false){Oe.pause()}}));Oe.once("end",(()=>{Ae.onComplete([])}));Oe.on("data",(R=>{if(Ae.onData(R)===false){Oe.pause()}}));Oe.once("close",(()=>{Qe.openStreams-=1;if(Qe.openStreams===0){pe.unref()}}));Oe.once("error",(function(pe){if(R[St]&&!R[St].destroyed&&!this.closed&&!this.destroyed){Qe.streams-=1;ve.destroy(Oe,pe)}}));Oe.once("frameError",((pe,he)=>{const ge=new Re(`HTTP/2: "frameError" received - type ${pe}, code ${he}`);errorRequest(R,Ae,ge);if(R[St]&&!R[St].destroyed&&!this.closed&&!this.destroyed){Qe.streams-=1;ve.destroy(Oe,ge)}}));return true;function writeBodyH2(){if(!ge){Ae.onRequestSent()}else if(ve.isBuffer(ge)){he(Pe===ge.byteLength,"buffer body must have content length");Oe.cork();Oe.write(ge);Oe.uncork();Oe.end();Ae.onBodySent(ge);Ae.onRequestSent()}else if(ve.isBlobLike(ge)){if(typeof ge.stream==="function"){writeIterable({client:R,request:Ae,contentLength:Pe,h2stream:Oe,expectsPayload:xe,body:ge.stream(),socket:R[st],header:""})}else{writeBlob({body:ge,client:R,request:Ae,contentLength:Pe,expectsPayload:xe,h2stream:Oe,header:"",socket:R[st]})}}else if(ve.isStream(ge)){writeStream({body:ge,client:R,request:Ae,contentLength:Pe,expectsPayload:xe,socket:R[st],h2stream:Oe,header:""})}else if(ve.isIterable(ge)){writeIterable({body:ge,client:R,request:Ae,contentLength:Pe,expectsPayload:xe,header:"",h2stream:Oe,socket:R[st]})}else{he(false)}}}function writeStream({h2stream:R,body:pe,client:Ae,request:ge,socket:ye,contentLength:be,header:Ee,expectsPayload:Ce}){he(be!==0||Ae[Ve]===0,"stream body cannot be pipelined");if(Ae[_t]==="h2"){const Ae=me(pe,R,(Ae=>{if(Ae){ve.destroy(pe,Ae);ve.destroy(R,Ae)}else{ge.onRequestSent()}}));Ae.on("data",onPipeData);Ae.once("end",(()=>{Ae.removeListener("data",onPipeData);ve.destroy(Ae)}));function onPipeData(R){ge.onBodySent(R)}return}let we=false;const _e=new AsyncWriter({socket:ye,request:ge,contentLength:be,client:Ae,expectsPayload:Ce,header:Ee});const onData=function(R){if(we){return}try{if(!_e.write(R)&&this.pause){this.pause()}}catch(R){ve.destroy(this,R)}};const onDrain=function(){if(we){return}if(pe.resume){pe.resume()}};const onAbort=function(){if(we){return}const R=new Se;queueMicrotask((()=>onFinished(R)))};const onFinished=function(R){if(we){return}we=true;he(ye.destroyed||ye[Ye]&&Ae[Ve]<=1);ye.off("drain",onDrain).off("error",onFinished);pe.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!R){try{_e.end()}catch(pe){R=pe}}_e.destroy(R);if(R&&(R.code!=="UND_ERR_INFO"||R.message!=="reset")){ve.destroy(pe,R)}else{ve.destroy(pe)}};pe.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(pe.resume){pe.resume()}ye.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:R,body:pe,client:Ae,request:ge,socket:ye,contentLength:me,header:be,expectsPayload:Ee}){he(me===pe.size,"blob body must have content length");const Ce=Ae[_t]==="h2";try{if(me!=null&&me!==pe.size){throw new we}const he=Buffer.from(await pe.arrayBuffer());if(Ce){R.cork();R.write(he);R.uncork()}else{ye.cork();ye.write(`${be}content-length: ${me}\r\n\r\n`,"latin1");ye.write(he);ye.uncork()}ge.onBodySent(he);ge.onRequestSent();if(!Ee){ye[Me]=true}resume(Ae)}catch(pe){ve.destroy(Ce?R:ye,pe)}}async function writeIterable({h2stream:R,body:pe,client:Ae,request:ge,socket:ye,contentLength:me,header:ve,expectsPayload:be}){he(me!==0||Ae[Ve]===0,"iterator body cannot be pipelined");let Ee=null;function onDrain(){if(Ee){const R=Ee;Ee=null;R()}}const waitForDrain=()=>new Promise(((R,pe)=>{he(Ee===null);if(ye[it]){pe(ye[it])}else{Ee=R}}));if(Ae[_t]==="h2"){R.on("close",onDrain).on("drain",onDrain);try{for await(const Ae of pe){if(ye[it]){throw ye[it]}const pe=R.write(Ae);ge.onBodySent(Ae);if(!pe){await waitForDrain()}}}catch(pe){R.destroy(pe)}finally{ge.onRequestSent();R.end();R.off("close",onDrain).off("drain",onDrain)}return}ye.on("close",onDrain).on("drain",onDrain);const Ce=new AsyncWriter({socket:ye,request:ge,contentLength:me,client:Ae,expectsPayload:be,header:ve});try{for await(const R of pe){if(ye[it]){throw ye[it]}if(!Ce.write(R)){await waitForDrain()}}Ce.end()}catch(R){Ce.destroy(R)}finally{ye.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:R,request:pe,contentLength:Ae,client:he,expectsPayload:ge,header:ye}){this.socket=R;this.request=pe;this.contentLength=Ae;this.client=he;this.bytesWritten=0;this.expectsPayload=ge;this.header=ye;R[Ye]=true}write(R){const{socket:pe,request:Ae,contentLength:he,client:ge,bytesWritten:ye,expectsPayload:me,header:ve}=this;if(pe[it]){throw pe[it]}if(pe.destroyed){return false}const be=Buffer.byteLength(R);if(!be){return true}if(he!==null&&ye+be>he){if(ge[pt]){throw new we}process.emitWarning(new we)}pe.cork();if(ye===0){if(!me){pe[Me]=true}if(he===null){pe.write(`${ve}transfer-encoding: chunked\r\n`,"latin1")}else{pe.write(`${ve}content-length: ${he}\r\n\r\n`,"latin1")}}if(he===null){pe.write(`\r\n${be.toString(16)}\r\n`,"latin1")}this.bytesWritten+=be;const Ee=pe.write(R);pe.uncork();Ae.onBodySent(R);if(!Ee){if(pe[Ue].timeout&&pe[Ue].timeoutType===Xt){if(pe[Ue].timeout.refresh){pe[Ue].timeout.refresh()}}}return Ee}end(){const{socket:R,contentLength:pe,client:Ae,bytesWritten:he,expectsPayload:ge,header:ye,request:me}=this;me.onRequestSent();R[Ye]=false;if(R[it]){throw R[it]}if(R.destroyed){return}if(he===0){if(ge){R.write(`${ye}content-length: 0\r\n\r\n`,"latin1")}else{R.write(`${ye}\r\n`,"latin1")}}else if(pe===null){R.write("\r\n0\r\n\r\n","latin1")}if(pe!==null&&he!==pe){if(Ae[pt]){throw new we}else{process.emitWarning(new we)}}if(R[Ue].timeout&&R[Ue].timeoutType===Xt){if(R[Ue].timeout.refresh){R[Ue].timeout.refresh()}}resume(Ae)}destroy(R){const{socket:pe,client:Ae}=this;pe[Ye]=false;if(R){he(Ae[Ve]<=1,"pipeline should only contain this request");ve.destroy(pe,R)}}}function errorRequest(R,pe,Ae){try{pe.onError(Ae);he(pe.aborted)}catch(Ae){R.emit("error",Ae)}}R.exports=Client},56436:(R,pe,Ae)=>{"use strict";const{kConnected:he,kSize:ge}=Ae(72785);class CompatWeakRef{constructor(R){this.value=R}deref(){return this.value[he]===0&&this.value[ge]===0?undefined:this.value}}class CompatFinalizer{constructor(R){this.finalizer=R}register(R,pe){if(R.on){R.on("disconnect",(()=>{if(R[he]===0&&R[ge]===0){this.finalizer(pe)}}))}}}R.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},20663:R=>{"use strict";const pe=1024;const Ae=4096;R.exports={maxAttributeValueSize:pe,maxNameValuePairSize:Ae}},41724:(R,pe,Ae)=>{"use strict";const{parseSetCookie:he}=Ae(24408);const{stringify:ge,getHeadersList:ye}=Ae(43121);const{webidl:me}=Ae(21744);const{Headers:ve}=Ae(10554);function getCookies(R){me.argumentLengthCheck(arguments,1,{header:"getCookies"});me.brandCheck(R,ve,{strict:false});const pe=R.get("cookie");const Ae={};if(!pe){return Ae}for(const R of pe.split(";")){const[pe,...he]=R.split("=");Ae[pe.trim()]=he.join("=")}return Ae}function deleteCookie(R,pe,Ae){me.argumentLengthCheck(arguments,2,{header:"deleteCookie"});me.brandCheck(R,ve,{strict:false});pe=me.converters.DOMString(pe);Ae=me.converters.DeleteCookieAttributes(Ae);setCookie(R,{name:pe,value:"",expires:new Date(0),...Ae})}function getSetCookies(R){me.argumentLengthCheck(arguments,1,{header:"getSetCookies"});me.brandCheck(R,ve,{strict:false});const pe=ye(R).cookies;if(!pe){return[]}return pe.map((R=>he(Array.isArray(R)?R[1]:R)))}function setCookie(R,pe){me.argumentLengthCheck(arguments,2,{header:"setCookie"});me.brandCheck(R,ve,{strict:false});pe=me.converters.Cookie(pe);const Ae=ge(pe);if(Ae){R.append("Set-Cookie",ge(pe))}}me.converters.DeleteCookieAttributes=me.dictionaryConverter([{converter:me.nullableConverter(me.converters.DOMString),key:"path",defaultValue:null},{converter:me.nullableConverter(me.converters.DOMString),key:"domain",defaultValue:null}]);me.converters.Cookie=me.dictionaryConverter([{converter:me.converters.DOMString,key:"name"},{converter:me.converters.DOMString,key:"value"},{converter:me.nullableConverter((R=>{if(typeof R==="number"){return me.converters["unsigned long long"](R)}return new Date(R)})),key:"expires",defaultValue:null},{converter:me.nullableConverter(me.converters["long long"]),key:"maxAge",defaultValue:null},{converter:me.nullableConverter(me.converters.DOMString),key:"domain",defaultValue:null},{converter:me.nullableConverter(me.converters.DOMString),key:"path",defaultValue:null},{converter:me.nullableConverter(me.converters.boolean),key:"secure",defaultValue:null},{converter:me.nullableConverter(me.converters.boolean),key:"httpOnly",defaultValue:null},{converter:me.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:me.sequenceConverter(me.converters.DOMString),key:"unparsed",defaultValue:[]}]);R.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},24408:(R,pe,Ae)=>{"use strict";const{maxNameValuePairSize:he,maxAttributeValueSize:ge}=Ae(20663);const{isCTLExcludingHtab:ye}=Ae(43121);const{collectASequenceOfCodePointsFast:me}=Ae(685);const ve=Ae(39491);function parseSetCookie(R){if(ye(R)){return null}let pe="";let Ae="";let ge="";let ve="";if(R.includes(";")){const he={position:0};pe=me(";",R,he);Ae=R.slice(he.position)}else{pe=R}if(!pe.includes("=")){ve=pe}else{const R={position:0};ge=me("=",pe,R);ve=pe.slice(R.position+1)}ge=ge.trim();ve=ve.trim();if(ge.length+ve.length>he){return null}return{name:ge,value:ve,...parseUnparsedAttributes(Ae)}}function parseUnparsedAttributes(R,pe={}){if(R.length===0){return pe}ve(R[0]===";");R=R.slice(1);let Ae="";if(R.includes(";")){Ae=me(";",R,{position:0});R=R.slice(Ae.length)}else{Ae=R;R=""}let he="";let ye="";if(Ae.includes("=")){const R={position:0};he=me("=",Ae,R);ye=Ae.slice(R.position+1)}else{he=Ae}he=he.trim();ye=ye.trim();if(ye.length>ge){return parseUnparsedAttributes(R,pe)}const be=he.toLowerCase();if(be==="expires"){const R=new Date(ye);pe.expires=R}else if(be==="max-age"){const Ae=ye.charCodeAt(0);if((Ae<48||Ae>57)&&ye[0]!=="-"){return parseUnparsedAttributes(R,pe)}if(!/^\d+$/.test(ye)){return parseUnparsedAttributes(R,pe)}const he=Number(ye);pe.maxAge=he}else if(be==="domain"){let R=ye;if(R[0]==="."){R=R.slice(1)}R=R.toLowerCase();pe.domain=R}else if(be==="path"){let R="";if(ye.length===0||ye[0]!=="/"){R="/"}else{R=ye}pe.path=R}else if(be==="secure"){pe.secure=true}else if(be==="httponly"){pe.httpOnly=true}else if(be==="samesite"){let R="Default";const Ae=ye.toLowerCase();if(Ae.includes("none")){R="None"}if(Ae.includes("strict")){R="Strict"}if(Ae.includes("lax")){R="Lax"}pe.sameSite=R}else{pe.unparsed??=[];pe.unparsed.push(`${he}=${ye}`)}return parseUnparsedAttributes(R,pe)}R.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},43121:(R,pe,Ae)=>{"use strict";const he=Ae(39491);const{kHeadersList:ge}=Ae(72785);function isCTLExcludingHtab(R){if(R.length===0){return false}for(const pe of R){const R=pe.charCodeAt(0);if(R>=0||R<=8||(R>=10||R<=31)||R===127){return false}}}function validateCookieName(R){for(const pe of R){const R=pe.charCodeAt(0);if(R<=32||R>127||pe==="("||pe===")"||pe===">"||pe==="<"||pe==="@"||pe===","||pe===";"||pe===":"||pe==="\\"||pe==='"'||pe==="/"||pe==="["||pe==="]"||pe==="?"||pe==="="||pe==="{"||pe==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(R){for(const pe of R){const R=pe.charCodeAt(0);if(R<33||R===34||R===44||R===59||R===92||R>126){throw new Error("Invalid header value")}}}function validateCookiePath(R){for(const pe of R){const R=pe.charCodeAt(0);if(R<33||pe===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(R){if(R.startsWith("-")||R.endsWith(".")||R.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(R){if(typeof R==="number"){R=new Date(R)}const pe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const Ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const he=pe[R.getUTCDay()];const ge=R.getUTCDate().toString().padStart(2,"0");const ye=Ae[R.getUTCMonth()];const me=R.getUTCFullYear();const ve=R.getUTCHours().toString().padStart(2,"0");const be=R.getUTCMinutes().toString().padStart(2,"0");const Ee=R.getUTCSeconds().toString().padStart(2,"0");return`${he}, ${ge} ${ye} ${me} ${ve}:${be}:${Ee} GMT`}function validateCookieMaxAge(R){if(R<0){throw new Error("Invalid cookie max-age")}}function stringify(R){if(R.name.length===0){return null}validateCookieName(R.name);validateCookieValue(R.value);const pe=[`${R.name}=${R.value}`];if(R.name.startsWith("__Secure-")){R.secure=true}if(R.name.startsWith("__Host-")){R.secure=true;R.domain=null;R.path="/"}if(R.secure){pe.push("Secure")}if(R.httpOnly){pe.push("HttpOnly")}if(typeof R.maxAge==="number"){validateCookieMaxAge(R.maxAge);pe.push(`Max-Age=${R.maxAge}`)}if(R.domain){validateCookieDomain(R.domain);pe.push(`Domain=${R.domain}`)}if(R.path){validateCookiePath(R.path);pe.push(`Path=${R.path}`)}if(R.expires&&R.expires.toString()!=="Invalid Date"){pe.push(`Expires=${toIMFDate(R.expires)}`)}if(R.sameSite){pe.push(`SameSite=${R.sameSite}`)}for(const Ae of R.unparsed){if(!Ae.includes("=")){throw new Error("Invalid unparsed")}const[R,...he]=Ae.split("=");pe.push(`${R.trim()}=${he.join("=")}`)}return pe.join("; ")}let ye;function getHeadersList(R){if(R[ge]){return R[ge]}if(!ye){ye=Object.getOwnPropertySymbols(R).find((R=>R.description==="headers list"));he(ye,"Headers cannot be parsed")}const pe=R[ye];he(pe);return pe}R.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},82067:(R,pe,Ae)=>{"use strict";const he=Ae(41808);const ge=Ae(39491);const ye=Ae(83983);const{InvalidArgumentError:me,ConnectTimeoutError:ve}=Ae(48045);let be;let Ee;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){Ee=class WeakSessionCache{constructor(R){this._maxCachedSessions=R;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((R=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:R}=this._sessionCache.keys().next();this._sessionCache.delete(R)}this._sessionCache.set(R,pe)}}}function buildConnector({allowH2:R,maxCachedSessions:pe,socketPath:ve,timeout:Ce,...we}){if(pe!=null&&(!Number.isInteger(pe)||pe<0)){throw new me("maxCachedSessions must be a positive integer or zero")}const _e={path:ve,...we};const Ie=new Ee(pe==null?100:pe);Ce=Ce==null?1e4:Ce;R=R!=null?R:false;return function connect({hostname:pe,host:me,protocol:ve,port:Ee,servername:we,localAddress:Se,httpSocket:Be},ke){let Oe;if(ve==="https:"){if(!be){be=Ae(24404)}we=we||_e.servername||ye.getServerName(me)||null;const he=we||pe;const ve=Ie.get(he)||null;ge(he);Oe=be.connect({highWaterMark:16384,..._e,servername:we,session:ve,localAddress:Se,ALPNProtocols:R?["http/1.1","h2"]:["http/1.1"],socket:Be,port:Ee||443,host:pe});Oe.on("session",(function(R){Ie.set(he,R)}))}else{ge(!Be,"httpSocket can only be sent on TLS update");Oe=he.connect({highWaterMark:64*1024,..._e,localAddress:Se,port:Ee||80,host:pe})}if(_e.keepAlive==null||_e.keepAlive){const R=_e.keepAliveInitialDelay===undefined?6e4:_e.keepAliveInitialDelay;Oe.setKeepAlive(true,R)}const Re=setupTimeout((()=>onConnectTimeout(Oe)),Ce);Oe.setNoDelay(true).once(ve==="https:"?"secureConnect":"connect",(function(){Re();if(ke){const R=ke;ke=null;R(null,this)}})).on("error",(function(R){Re();if(ke){const pe=ke;ke=null;pe(R)}}));return Oe}}function setupTimeout(R,pe){if(!pe){return()=>{}}let Ae=null;let he=null;const ge=setTimeout((()=>{Ae=setImmediate((()=>{if(process.platform==="win32"){he=setImmediate((()=>R()))}else{R()}}))}),pe);return()=>{clearTimeout(ge);clearImmediate(Ae);clearImmediate(he)}}function onConnectTimeout(R){ye.destroy(R,new ve)}R.exports=buildConnector},14462:R=>{"use strict";const pe={};const Ae=["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 R=0;R{"use strict";class UndiciError extends Error{constructor(R){super(R);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=R||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=R||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=R||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=R||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(R,pe,Ae,he){super(R);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=R||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=he;this.status=pe;this.statusCode=pe;this.headers=Ae}}class InvalidArgumentError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=R||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=R||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=R||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=R||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=R||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=R||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=R||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=R||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(R,pe){super(R);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=R||"Socket error";this.code="UND_ERR_SOCKET";this.socket=pe}}class NotSupportedError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=R||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=R||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(R,pe,Ae){super(R);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=pe?`HPE_${pe}`:undefined;this.data=Ae?Ae.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=R||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(R,pe,{headers:Ae,data:he}){super(R);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=R||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=pe;this.data=he;this.headers=Ae}}R.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}},62905:(R,pe,Ae)=>{"use strict";const{InvalidArgumentError:he,NotSupportedError:ge}=Ae(48045);const ye=Ae(39491);const{kHTTP2BuildRequest:me,kHTTP2CopyHeaders:ve,kHTTP1BuildRequest:be}=Ae(72785);const Ee=Ae(83983);const Ce=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const we=/[^\t\x20-\x7e\x80-\xff]/;const _e=/[^\u0021-\u00ff]/;const Ie=Symbol("handler");const Se={};let Be;try{const R=Ae(67643);Se.create=R.channel("undici:request:create");Se.bodySent=R.channel("undici:request:bodySent");Se.headers=R.channel("undici:request:headers");Se.trailers=R.channel("undici:request:trailers");Se.error=R.channel("undici:request:error")}catch{Se.create={hasSubscribers:false};Se.bodySent={hasSubscribers:false};Se.headers={hasSubscribers:false};Se.trailers={hasSubscribers:false};Se.error={hasSubscribers:false}}class Request{constructor(R,{path:pe,method:ge,body:ye,headers:me,query:ve,idempotent:be,blocking:we,upgrade:ke,headersTimeout:Oe,bodyTimeout:Re,reset:Qe,throwOnError:xe,expectContinue:Pe},Te){if(typeof pe!=="string"){throw new he("path must be a string")}else if(pe[0]!=="/"&&!(pe.startsWith("http://")||pe.startsWith("https://"))&&ge!=="CONNECT"){throw new he("path must be an absolute URL or start with a slash")}else if(_e.exec(pe)!==null){throw new he("invalid request path")}if(typeof ge!=="string"){throw new he("method must be a string")}else if(Ce.exec(ge)===null){throw new he("invalid request method")}if(ke&&typeof ke!=="string"){throw new he("upgrade must be a string")}if(Oe!=null&&(!Number.isFinite(Oe)||Oe<0)){throw new he("invalid headersTimeout")}if(Re!=null&&(!Number.isFinite(Re)||Re<0)){throw new he("invalid bodyTimeout")}if(Qe!=null&&typeof Qe!=="boolean"){throw new he("invalid reset")}if(Pe!=null&&typeof Pe!=="boolean"){throw new he("invalid expectContinue")}this.headersTimeout=Oe;this.bodyTimeout=Re;this.throwOnError=xe===true;this.method=ge;this.abort=null;if(ye==null){this.body=null}else if(Ee.isStream(ye)){this.body=ye;const R=this.body._readableState;if(!R||!R.autoDestroy){this.endHandler=function autoDestroy(){Ee.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=R=>{if(this.abort){this.abort(R)}else{this.error=R}};this.body.on("error",this.errorHandler)}else if(Ee.isBuffer(ye)){this.body=ye.byteLength?ye:null}else if(ArrayBuffer.isView(ye)){this.body=ye.buffer.byteLength?Buffer.from(ye.buffer,ye.byteOffset,ye.byteLength):null}else if(ye instanceof ArrayBuffer){this.body=ye.byteLength?Buffer.from(ye):null}else if(typeof ye==="string"){this.body=ye.length?Buffer.from(ye):null}else if(Ee.isFormDataLike(ye)||Ee.isIterable(ye)||Ee.isBlobLike(ye)){this.body=ye}else{throw new he("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=ke||null;this.path=ve?Ee.buildURL(pe,ve):pe;this.origin=R;this.idempotent=be==null?ge==="HEAD"||ge==="GET":be;this.blocking=we==null?false:we;this.reset=Qe==null?null:Qe;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=Pe!=null?Pe:false;if(Array.isArray(me)){if(me.length%2!==0){throw new he("headers array must be even")}for(let R=0;R{R.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")}},83983:(R,pe,Ae)=>{"use strict";const he=Ae(39491);const{kDestroyed:ge,kBodyUsed:ye}=Ae(72785);const{IncomingMessage:me}=Ae(13685);const ve=Ae(12781);const be=Ae(41808);const{InvalidArgumentError:Ee}=Ae(48045);const{Blob:Ce}=Ae(14300);const we=Ae(73837);const{stringify:_e}=Ae(63477);const{headerNameLowerCasedRecord:Ie}=Ae(14462);const[Se,Be]=process.versions.node.split(".").map((R=>Number(R)));function nop(){}function isStream(R){return R&&typeof R==="object"&&typeof R.pipe==="function"&&typeof R.on==="function"}function isBlobLike(R){return Ce&&R instanceof Ce||R&&typeof R==="object"&&(typeof R.stream==="function"||typeof R.arrayBuffer==="function")&&/^(Blob|File)$/.test(R[Symbol.toStringTag])}function buildURL(R,pe){if(R.includes("?")||R.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const Ae=_e(pe);if(Ae){R+="?"+Ae}return R}function parseURL(R){if(typeof R==="string"){R=new URL(R);if(!/^https?:/.test(R.origin||R.protocol)){throw new Ee("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return R}if(!R||typeof R!=="object"){throw new Ee("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(R.origin||R.protocol)){throw new Ee("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(R instanceof URL)){if(R.port!=null&&R.port!==""&&!Number.isFinite(parseInt(R.port))){throw new Ee("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(R.path!=null&&typeof R.path!=="string"){throw new Ee("Invalid URL path: the path must be a string or null/undefined.")}if(R.pathname!=null&&typeof R.pathname!=="string"){throw new Ee("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(R.hostname!=null&&typeof R.hostname!=="string"){throw new Ee("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(R.origin!=null&&typeof R.origin!=="string"){throw new Ee("Invalid URL origin: the origin must be a string or null/undefined.")}const pe=R.port!=null?R.port:R.protocol==="https:"?443:80;let Ae=R.origin!=null?R.origin:`${R.protocol}//${R.hostname}:${pe}`;let he=R.path!=null?R.path:`${R.pathname||""}${R.search||""}`;if(Ae.endsWith("/")){Ae=Ae.substring(0,Ae.length-1)}if(he&&!he.startsWith("/")){he=`/${he}`}R=new URL(Ae+he)}return R}function parseOrigin(R){R=parseURL(R);if(R.pathname!=="/"||R.search||R.hash){throw new Ee("invalid url")}return R}function getHostname(R){if(R[0]==="["){const pe=R.indexOf("]");he(pe!==-1);return R.substring(1,pe)}const pe=R.indexOf(":");if(pe===-1)return R;return R.substring(0,pe)}function getServerName(R){if(!R){return null}he.strictEqual(typeof R,"string");const pe=getHostname(R);if(be.isIP(pe)){return""}return pe}function deepClone(R){return JSON.parse(JSON.stringify(R))}function isAsyncIterable(R){return!!(R!=null&&typeof R[Symbol.asyncIterator]==="function")}function isIterable(R){return!!(R!=null&&(typeof R[Symbol.iterator]==="function"||typeof R[Symbol.asyncIterator]==="function"))}function bodyLength(R){if(R==null){return 0}else if(isStream(R)){const pe=R._readableState;return pe&&pe.objectMode===false&&pe.ended===true&&Number.isFinite(pe.length)?pe.length:null}else if(isBlobLike(R)){return R.size!=null?R.size:null}else if(isBuffer(R)){return R.byteLength}return null}function isDestroyed(R){return!R||!!(R.destroyed||R[ge])}function isReadableAborted(R){const pe=R&&R._readableState;return isDestroyed(R)&&pe&&!pe.endEmitted}function destroy(R,pe){if(R==null||!isStream(R)||isDestroyed(R)){return}if(typeof R.destroy==="function"){if(Object.getPrototypeOf(R).constructor===me){R.socket=null}R.destroy(pe)}else if(pe){process.nextTick(((R,pe)=>{R.emit("error",pe)}),R,pe)}if(R.destroyed!==true){R[ge]=true}}const ke=/timeout=(\d+)/;function parseKeepAliveTimeout(R){const pe=R.toString().match(ke);return pe?parseInt(pe[1],10)*1e3:null}function headerNameToString(R){return Ie[R]||R.toLowerCase()}function parseHeaders(R,pe={}){if(!Array.isArray(R))return R;for(let Ae=0;AeR.toString("utf8")))}else{pe[he]=R[Ae+1].toString("utf8")}}else{if(!Array.isArray(ge)){ge=[ge];pe[he]=ge}ge.push(R[Ae+1].toString("utf8"))}}if("content-length"in pe&&"content-disposition"in pe){pe["content-disposition"]=Buffer.from(pe["content-disposition"]).toString("latin1")}return pe}function parseRawHeaders(R){const pe=[];let Ae=false;let he=-1;for(let ge=0;ge{R.close()}))}else{const pe=Buffer.isBuffer(he)?he:Buffer.from(he);R.enqueue(new Uint8Array(pe))}return R.desiredSize>0},async cancel(R){await pe.return()}},0)}function isFormDataLike(R){return R&&typeof R==="object"&&typeof R.append==="function"&&typeof R.delete==="function"&&typeof R.get==="function"&&typeof R.getAll==="function"&&typeof R.has==="function"&&typeof R.set==="function"&&R[Symbol.toStringTag]==="FormData"}function throwIfAborted(R){if(!R){return}if(typeof R.throwIfAborted==="function"){R.throwIfAborted()}else{if(R.aborted){const R=new Error("The operation was aborted");R.name="AbortError";throw R}}}function addAbortListener(R,pe){if("addEventListener"in R){R.addEventListener("abort",pe,{once:true});return()=>R.removeEventListener("abort",pe)}R.addListener("abort",pe);return()=>R.removeListener("abort",pe)}const Re=!!String.prototype.toWellFormed;function toUSVString(R){if(Re){return`${R}`.toWellFormed()}else if(we.toUSVString){return we.toUSVString(R)}return`${R}`}function parseRangeHeader(R){if(R==null||R==="")return{start:0,end:null,size:null};const pe=R?R.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return pe?{start:parseInt(pe[1]),end:pe[2]?parseInt(pe[2]):null,size:pe[3]?parseInt(pe[3]):null}:null}const Qe=Object.create(null);Qe.enumerable=true;R.exports={kEnumerableProperty:Qe,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:Se,nodeMinor:Be,nodeHasAutoSelectFamily:Se>18||Se===18&&Be>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},74839:(R,pe,Ae)=>{"use strict";const he=Ae(60412);const{ClientDestroyedError:ge,ClientClosedError:ye,InvalidArgumentError:me}=Ae(48045);const{kDestroy:ve,kClose:be,kDispatch:Ee,kInterceptors:Ce}=Ae(72785);const we=Symbol("destroyed");const _e=Symbol("closed");const Ie=Symbol("onDestroyed");const Se=Symbol("onClosed");const Be=Symbol("Intercepted Dispatch");class DispatcherBase extends he{constructor(){super();this[we]=false;this[Ie]=null;this[_e]=false;this[Se]=[]}get destroyed(){return this[we]}get closed(){return this[_e]}get interceptors(){return this[Ce]}set interceptors(R){if(R){for(let pe=R.length-1;pe>=0;pe--){const R=this[Ce][pe];if(typeof R!=="function"){throw new me("interceptor must be an function")}}}this[Ce]=R}close(R){if(R===undefined){return new Promise(((R,pe)=>{this.close(((Ae,he)=>Ae?pe(Ae):R(he)))}))}if(typeof R!=="function"){throw new me("invalid callback")}if(this[we]){queueMicrotask((()=>R(new ge,null)));return}if(this[_e]){if(this[Se]){this[Se].push(R)}else{queueMicrotask((()=>R(null,null)))}return}this[_e]=true;this[Se].push(R);const onClosed=()=>{const R=this[Se];this[Se]=null;for(let pe=0;pethis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(R,pe){if(typeof R==="function"){pe=R;R=null}if(pe===undefined){return new Promise(((pe,Ae)=>{this.destroy(R,((R,he)=>R?Ae(R):pe(he)))}))}if(typeof pe!=="function"){throw new me("invalid callback")}if(this[we]){if(this[Ie]){this[Ie].push(pe)}else{queueMicrotask((()=>pe(null,null)))}return}if(!R){R=new ge}this[we]=true;this[Ie]=this[Ie]||[];this[Ie].push(pe);const onDestroyed=()=>{const R=this[Ie];this[Ie]=null;for(let pe=0;pe{queueMicrotask(onDestroyed)}))}[Be](R,pe){if(!this[Ce]||this[Ce].length===0){this[Be]=this[Ee];return this[Ee](R,pe)}let Ae=this[Ee].bind(this);for(let R=this[Ce].length-1;R>=0;R--){Ae=this[Ce][R](Ae)}this[Be]=Ae;return Ae(R,pe)}dispatch(R,pe){if(!pe||typeof pe!=="object"){throw new me("handler must be an object")}try{if(!R||typeof R!=="object"){throw new me("opts must be an object.")}if(this[we]||this[Ie]){throw new ge}if(this[_e]){throw new ye}return this[Be](R,pe)}catch(R){if(typeof pe.onError!=="function"){throw new me("invalid onError method")}pe.onError(R);return false}}}R.exports=DispatcherBase},60412:(R,pe,Ae)=>{"use strict";const he=Ae(82361);class Dispatcher extends he{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}R.exports=Dispatcher},41472:(R,pe,Ae)=>{"use strict";const he=Ae(50727);const ge=Ae(83983);const{ReadableStreamFrom:ye,isBlobLike:me,isReadableStreamLike:ve,readableStreamClose:be,createDeferredPromise:Ee,fullyReadBody:Ce}=Ae(52538);const{FormData:we}=Ae(72015);const{kState:_e}=Ae(15861);const{webidl:Ie}=Ae(21744);const{DOMException:Se,structuredClone:Be}=Ae(41037);const{Blob:ke,File:Oe}=Ae(14300);const{kBodyUsed:Re}=Ae(72785);const Qe=Ae(39491);const{isErrored:xe}=Ae(83983);const{isUint8Array:Pe,isArrayBuffer:Te}=Ae(29830);const{File:De}=Ae(78511);const{parseMIMEType:Ne,serializeAMimeType:Me}=Ae(685);let je=globalThis.ReadableStream;const Fe=Oe??De;const Le=new TextEncoder;const Ue=new TextDecoder;function extractBody(R,pe=false){if(!je){je=Ae(35356).ReadableStream}let he=null;if(R instanceof je){he=R}else if(me(R)){he=R.stream()}else{he=new je({async pull(R){R.enqueue(typeof Ce==="string"?Le.encode(Ce):Ce);queueMicrotask((()=>be(R)))},start(){},type:undefined})}Qe(ve(he));let Ee=null;let Ce=null;let we=null;let _e=null;if(typeof R==="string"){Ce=R;_e="text/plain;charset=UTF-8"}else if(R instanceof URLSearchParams){Ce=R.toString();_e="application/x-www-form-urlencoded;charset=UTF-8"}else if(Te(R)){Ce=new Uint8Array(R.slice())}else if(ArrayBuffer.isView(R)){Ce=new Uint8Array(R.buffer.slice(R.byteOffset,R.byteOffset+R.byteLength))}else if(ge.isFormDataLike(R)){const pe=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const Ae=`--${pe}\r\nContent-Disposition: form-data` -/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=R=>R.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=R=>R.replace(/\r?\n|\r/g,"\r\n");const he=[];const ge=new Uint8Array([13,10]);we=0;let ye=false;for(const[pe,me]of R){if(typeof me==="string"){const R=Le.encode(Ae+`; name="${escape(normalizeLinefeeds(pe))}"`+`\r\n\r\n${normalizeLinefeeds(me)}\r\n`);he.push(R);we+=R.byteLength}else{const R=Le.encode(`${Ae}; name="${escape(normalizeLinefeeds(pe))}"`+(me.name?`; filename="${escape(me.name)}"`:"")+"\r\n"+`Content-Type: ${me.type||"application/octet-stream"}\r\n\r\n`);he.push(R,me,ge);if(typeof me.size==="number"){we+=R.byteLength+me.size+ge.byteLength}else{ye=true}}}const me=Le.encode(`--${pe}--`);he.push(me);we+=me.byteLength;if(ye){we=null}Ce=R;Ee=async function*(){for(const R of he){if(R.stream){yield*R.stream()}else{yield R}}};_e="multipart/form-data; boundary="+pe}else if(me(R)){Ce=R;we=R.size;if(R.type){_e=R.type}}else if(typeof R[Symbol.asyncIterator]==="function"){if(pe){throw new TypeError("keepalive")}if(ge.isDisturbed(R)||R.locked){throw new TypeError("Response body object should not be disturbed or locked")}he=R instanceof je?R:ye(R)}if(typeof Ce==="string"||ge.isBuffer(Ce)){we=Buffer.byteLength(Ce)}if(Ee!=null){let pe;he=new je({async start(){pe=Ee(R)[Symbol.asyncIterator]()},async pull(R){const{value:Ae,done:ge}=await pe.next();if(ge){queueMicrotask((()=>{R.close()}))}else{if(!xe(he)){R.enqueue(new Uint8Array(Ae))}}return R.desiredSize>0},async cancel(R){await pe.return()},type:undefined})}const Ie={stream:he,source:Ce,length:we};return[Ie,_e]}function safelyExtractBody(R,pe=false){if(!je){je=Ae(35356).ReadableStream}if(R instanceof je){Qe(!ge.isDisturbed(R),"The body has already been consumed.");Qe(!R.locked,"The stream is locked.")}return extractBody(R,pe)}function cloneBody(R){const[pe,Ae]=R.stream.tee();const he=Be(Ae,{transfer:[Ae]});const[,ge]=he.tee();R.stream=pe;return{stream:ge,length:R.length,source:R.source}}async function*consumeBody(R){if(R){if(Pe(R)){yield R}else{const pe=R.stream;if(ge.isDisturbed(pe)){throw new TypeError("The body has already been consumed.")}if(pe.locked){throw new TypeError("The stream is locked.")}pe[Re]=true;yield*pe}}}function throwIfAborted(R){if(R.aborted){throw new Se("The operation was aborted.","AbortError")}}function bodyMixinMethods(R){const pe={blob(){return specConsumeBody(this,(R=>{let pe=bodyMimeType(this);if(pe==="failure"){pe=""}else if(pe){pe=Me(pe)}return new ke([R],{type:pe})}),R)},arrayBuffer(){return specConsumeBody(this,(R=>new Uint8Array(R).buffer),R)},text(){return specConsumeBody(this,utf8DecodeBytes,R)},json(){return specConsumeBody(this,parseJSONFromBytes,R)},async formData(){Ie.brandCheck(this,R);throwIfAborted(this[_e]);const pe=this.headers.get("Content-Type");if(/multipart\/form-data/.test(pe)){const R={};for(const[pe,Ae]of this.headers)R[pe.toLowerCase()]=Ae;const pe=new we;let Ae;try{Ae=new he({headers:R,preservePath:true})}catch(R){throw new Se(`${R}`,"AbortError")}Ae.on("field",((R,Ae)=>{pe.append(R,Ae)}));Ae.on("file",((R,Ae,he,ge,ye)=>{const me=[];if(ge==="base64"||ge.toLowerCase()==="base64"){let ge="";Ae.on("data",(R=>{ge+=R.toString().replace(/[\r\n]/gm,"");const pe=ge.length-ge.length%4;me.push(Buffer.from(ge.slice(0,pe),"base64"));ge=ge.slice(pe)}));Ae.on("end",(()=>{me.push(Buffer.from(ge,"base64"));pe.append(R,new Fe(me,he,{type:ye}))}))}else{Ae.on("data",(R=>{me.push(R)}));Ae.on("end",(()=>{pe.append(R,new Fe(me,he,{type:ye}))}))}}));const ge=new Promise(((R,pe)=>{Ae.on("finish",R);Ae.on("error",(R=>pe(new TypeError(R))))}));if(this.body!==null)for await(const R of consumeBody(this[_e].body))Ae.write(R);Ae.end();await ge;return pe}else if(/application\/x-www-form-urlencoded/.test(pe)){let R;try{let pe="";const Ae=new TextDecoder("utf-8",{ignoreBOM:true});for await(const R of consumeBody(this[_e].body)){if(!Pe(R)){throw new TypeError("Expected Uint8Array chunk")}pe+=Ae.decode(R,{stream:true})}pe+=Ae.decode();R=new URLSearchParams(pe)}catch(R){throw Object.assign(new TypeError,{cause:R})}const pe=new we;for(const[Ae,he]of R){pe.append(Ae,he)}return pe}else{await Promise.resolve();throwIfAborted(this[_e]);throw Ie.errors.exception({header:`${R.name}.formData`,message:"Could not parse content as FormData."})}}};return pe}function mixinBody(R){Object.assign(R.prototype,bodyMixinMethods(R))}async function specConsumeBody(R,pe,Ae){Ie.brandCheck(R,Ae);throwIfAborted(R[_e]);if(bodyUnusable(R[_e].body)){throw new TypeError("Body is unusable")}const he=Ee();const errorSteps=R=>he.reject(R);const successSteps=R=>{try{he.resolve(pe(R))}catch(R){errorSteps(R)}};if(R[_e].body==null){successSteps(new Uint8Array);return he.promise}await Ce(R[_e].body,successSteps,errorSteps);return he.promise}function bodyUnusable(R){return R!=null&&(R.stream.locked||ge.isDisturbed(R.stream))}function utf8DecodeBytes(R){if(R.length===0){return""}if(R[0]===239&&R[1]===187&&R[2]===191){R=R.subarray(3)}const pe=Ue.decode(R);return pe}function parseJSONFromBytes(R){return JSON.parse(utf8DecodeBytes(R))}function bodyMimeType(R){const{headersList:pe}=R[_e];const Ae=pe.get("content-type");if(Ae===null){return"failure"}return Ne(Ae)}R.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},41037:(R,pe,Ae)=>{"use strict";const{MessageChannel:he,receiveMessageOnPort:ge}=Ae(71267);const ye=["GET","HEAD","POST"];const me=new Set(ye);const ve=[101,204,205,304];const be=[301,302,303,307,308];const Ee=new Set(be);const Ce=["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 we=new Set(Ce);const _e=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const Ie=new Set(_e);const Se=["follow","manual","error"];const Be=["GET","HEAD","OPTIONS","TRACE"];const ke=new Set(Be);const Oe=["navigate","same-origin","no-cors","cors"];const Re=["omit","same-origin","include"];const Qe=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const xe=["content-encoding","content-language","content-location","content-type","content-length"];const Pe=["half"];const Te=["CONNECT","TRACE","TRACK"];const De=new Set(Te);const Ne=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const Me=new Set(Ne);const je=globalThis.DOMException??(()=>{try{atob("~")}catch(R){return Object.getPrototypeOf(R).constructor}})();let Fe;const Le=globalThis.structuredClone??function structuredClone(R,pe=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!Fe){Fe=new he}Fe.port1.unref();Fe.port2.unref();Fe.port1.postMessage(R,pe?.transfer);return ge(Fe.port2).message};R.exports={DOMException:je,structuredClone:Le,subresource:Ne,forbiddenMethods:Te,requestBodyHeader:xe,referrerPolicy:_e,requestRedirect:Se,requestMode:Oe,requestCredentials:Re,requestCache:Qe,redirectStatus:be,corsSafeListedMethods:ye,nullBodyStatus:ve,safeMethods:Be,badPorts:Ce,requestDuplex:Pe,subresourceSet:Me,badPortsSet:we,redirectStatusSet:Ee,corsSafeListedMethodsSet:me,safeMethodsSet:ke,forbiddenMethodsSet:De,referrerPolicySet:Ie}},685:(R,pe,Ae)=>{const he=Ae(39491);const{atob:ge}=Ae(14300);const{isomorphicDecode:ye}=Ae(52538);const me=new TextEncoder;const ve=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const be=/(\u000A|\u000D|\u0009|\u0020)/;const Ee=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(R){he(R.protocol==="data:");let pe=URLSerializer(R,true);pe=pe.slice(5);const Ae={position:0};let ge=collectASequenceOfCodePointsFast(",",pe,Ae);const me=ge.length;ge=removeASCIIWhitespace(ge,true,true);if(Ae.position>=pe.length){return"failure"}Ae.position++;const ve=pe.slice(me+1);let be=stringPercentDecode(ve);if(/;(\u0020){0,}base64$/i.test(ge)){const R=ye(be);be=forgivingBase64(R);if(be==="failure"){return"failure"}ge=ge.slice(0,-6);ge=ge.replace(/(\u0020)+$/,"");ge=ge.slice(0,-1)}if(ge.startsWith(";")){ge="text/plain"+ge}let Ee=parseMIMEType(ge);if(Ee==="failure"){Ee=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:Ee,body:be}}function URLSerializer(R,pe=false){if(!pe){return R.href}const Ae=R.href;const he=R.hash.length;return he===0?Ae:Ae.substring(0,Ae.length-he)}function collectASequenceOfCodePoints(R,pe,Ae){let he="";while(Ae.positionR.length){return"failure"}pe.position++;let he=collectASequenceOfCodePointsFast(";",R,pe);he=removeHTTPWhitespace(he,false,true);if(he.length===0||!ve.test(he)){return"failure"}const ge=Ae.toLowerCase();const ye=he.toLowerCase();const me={type:ge,subtype:ye,parameters:new Map,essence:`${ge}/${ye}`};while(pe.positionbe.test(R)),R,pe);let Ae=collectASequenceOfCodePoints((R=>R!==";"&&R!=="="),R,pe);Ae=Ae.toLowerCase();if(pe.positionR.length){break}let he=null;if(R[pe.position]==='"'){he=collectAnHTTPQuotedString(R,pe,true);collectASequenceOfCodePointsFast(";",R,pe)}else{he=collectASequenceOfCodePointsFast(";",R,pe);he=removeHTTPWhitespace(he,false,true);if(he.length===0){continue}}if(Ae.length!==0&&ve.test(Ae)&&(he.length===0||Ee.test(he))&&!me.parameters.has(Ae)){me.parameters.set(Ae,he)}}return me}function forgivingBase64(R){R=R.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(R.length%4===0){R=R.replace(/=?=$/,"")}if(R.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(R)){return"failure"}const pe=ge(R);const Ae=new Uint8Array(pe.length);for(let R=0;RR!=='"'&&R!=="\\"),R,pe);if(pe.position>=R.length){break}const Ae=R[pe.position];pe.position++;if(Ae==="\\"){if(pe.position>=R.length){ye+="\\";break}ye+=R[pe.position];pe.position++}else{he(Ae==='"');break}}if(Ae){return ye}return R.slice(ge,pe.position)}function serializeAMimeType(R){he(R!=="failure");const{parameters:pe,essence:Ae}=R;let ge=Ae;for(let[R,Ae]of pe.entries()){ge+=";";ge+=R;ge+="=";if(!ve.test(Ae)){Ae=Ae.replace(/(\\|")/g,"\\$1");Ae='"'+Ae;Ae+='"'}ge+=Ae}return ge}function isHTTPWhiteSpace(R){return R==="\r"||R==="\n"||R==="\t"||R===" "}function removeHTTPWhitespace(R,pe=true,Ae=true){let he=0;let ge=R.length-1;if(pe){for(;he0&&isHTTPWhiteSpace(R[ge]);ge--);}return R.slice(he,ge+1)}function isASCIIWhitespace(R){return R==="\r"||R==="\n"||R==="\t"||R==="\f"||R===" "}function removeASCIIWhitespace(R,pe=true,Ae=true){let he=0;let ge=R.length-1;if(pe){for(;he0&&isASCIIWhitespace(R[ge]);ge--);}return R.slice(he,ge+1)}R.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},78511:(R,pe,Ae)=>{"use strict";const{Blob:he,File:ge}=Ae(14300);const{types:ye}=Ae(73837);const{kState:me}=Ae(15861);const{isBlobLike:ve}=Ae(52538);const{webidl:be}=Ae(21744);const{parseMIMEType:Ee,serializeAMimeType:Ce}=Ae(685);const{kEnumerableProperty:we}=Ae(83983);const _e=new TextEncoder;class File extends he{constructor(R,pe,Ae={}){be.argumentLengthCheck(arguments,2,{header:"File constructor"});R=be.converters["sequence"](R);pe=be.converters.USVString(pe);Ae=be.converters.FilePropertyBag(Ae);const he=pe;let ge=Ae.type;let ye;e:{if(ge){ge=Ee(ge);if(ge==="failure"){ge="";break e}ge=Ce(ge).toLowerCase()}ye=Ae.lastModified}super(processBlobParts(R,Ae),{type:ge});this[me]={name:he,lastModified:ye,type:ge}}get name(){be.brandCheck(this,File);return this[me].name}get lastModified(){be.brandCheck(this,File);return this[me].lastModified}get type(){be.brandCheck(this,File);return this[me].type}}class FileLike{constructor(R,pe,Ae={}){const he=pe;const ge=Ae.type;const ye=Ae.lastModified??Date.now();this[me]={blobLike:R,name:he,type:ge,lastModified:ye}}stream(...R){be.brandCheck(this,FileLike);return this[me].blobLike.stream(...R)}arrayBuffer(...R){be.brandCheck(this,FileLike);return this[me].blobLike.arrayBuffer(...R)}slice(...R){be.brandCheck(this,FileLike);return this[me].blobLike.slice(...R)}text(...R){be.brandCheck(this,FileLike);return this[me].blobLike.text(...R)}get size(){be.brandCheck(this,FileLike);return this[me].blobLike.size}get type(){be.brandCheck(this,FileLike);return this[me].blobLike.type}get name(){be.brandCheck(this,FileLike);return this[me].name}get lastModified(){be.brandCheck(this,FileLike);return this[me].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:we,lastModified:we});be.converters.Blob=be.interfaceConverter(he);be.converters.BlobPart=function(R,pe){if(be.util.Type(R)==="Object"){if(ve(R)){return be.converters.Blob(R,{strict:false})}if(ArrayBuffer.isView(R)||ye.isAnyArrayBuffer(R)){return be.converters.BufferSource(R,pe)}}return be.converters.USVString(R,pe)};be.converters["sequence"]=be.sequenceConverter(be.converters.BlobPart);be.converters.FilePropertyBag=be.dictionaryConverter([{key:"lastModified",converter:be.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:be.converters.DOMString,defaultValue:""},{key:"endings",converter:R=>{R=be.converters.DOMString(R);R=R.toLowerCase();if(R!=="native"){R="transparent"}return R},defaultValue:"transparent"}]);function processBlobParts(R,pe){const Ae=[];for(const he of R){if(typeof he==="string"){let R=he;if(pe.endings==="native"){R=convertLineEndingsNative(R)}Ae.push(_e.encode(R))}else if(ye.isAnyArrayBuffer(he)||ye.isTypedArray(he)){if(!he.buffer){Ae.push(new Uint8Array(he))}else{Ae.push(new Uint8Array(he.buffer,he.byteOffset,he.byteLength))}}else if(ve(he)){Ae.push(he)}}return Ae}function convertLineEndingsNative(R){let pe="\n";if(process.platform==="win32"){pe="\r\n"}return R.replace(/\r?\n/g,pe)}function isFileLike(R){return ge&&R instanceof ge||R instanceof File||R&&(typeof R.stream==="function"||typeof R.arrayBuffer==="function")&&R[Symbol.toStringTag]==="File"}R.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},72015:(R,pe,Ae)=>{"use strict";const{isBlobLike:he,toUSVString:ge,makeIterator:ye}=Ae(52538);const{kState:me}=Ae(15861);const{File:ve,FileLike:be,isFileLike:Ee}=Ae(78511);const{webidl:Ce}=Ae(21744);const{Blob:we,File:_e}=Ae(14300);const Ie=_e??ve;class FormData{constructor(R){if(R!==undefined){throw Ce.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[me]=[]}append(R,pe,Ae=undefined){Ce.brandCheck(this,FormData);Ce.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!he(pe)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}R=Ce.converters.USVString(R);pe=he(pe)?Ce.converters.Blob(pe,{strict:false}):Ce.converters.USVString(pe);Ae=arguments.length===3?Ce.converters.USVString(Ae):undefined;const ge=makeEntry(R,pe,Ae);this[me].push(ge)}delete(R){Ce.brandCheck(this,FormData);Ce.argumentLengthCheck(arguments,1,{header:"FormData.delete"});R=Ce.converters.USVString(R);this[me]=this[me].filter((pe=>pe.name!==R))}get(R){Ce.brandCheck(this,FormData);Ce.argumentLengthCheck(arguments,1,{header:"FormData.get"});R=Ce.converters.USVString(R);const pe=this[me].findIndex((pe=>pe.name===R));if(pe===-1){return null}return this[me][pe].value}getAll(R){Ce.brandCheck(this,FormData);Ce.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});R=Ce.converters.USVString(R);return this[me].filter((pe=>pe.name===R)).map((R=>R.value))}has(R){Ce.brandCheck(this,FormData);Ce.argumentLengthCheck(arguments,1,{header:"FormData.has"});R=Ce.converters.USVString(R);return this[me].findIndex((pe=>pe.name===R))!==-1}set(R,pe,Ae=undefined){Ce.brandCheck(this,FormData);Ce.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!he(pe)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}R=Ce.converters.USVString(R);pe=he(pe)?Ce.converters.Blob(pe,{strict:false}):Ce.converters.USVString(pe);Ae=arguments.length===3?ge(Ae):undefined;const ye=makeEntry(R,pe,Ae);const ve=this[me].findIndex((pe=>pe.name===R));if(ve!==-1){this[me]=[...this[me].slice(0,ve),ye,...this[me].slice(ve+1).filter((pe=>pe.name!==R))]}else{this[me].push(ye)}}entries(){Ce.brandCheck(this,FormData);return ye((()=>this[me].map((R=>[R.name,R.value]))),"FormData","key+value")}keys(){Ce.brandCheck(this,FormData);return ye((()=>this[me].map((R=>[R.name,R.value]))),"FormData","key")}values(){Ce.brandCheck(this,FormData);return ye((()=>this[me].map((R=>[R.name,R.value]))),"FormData","value")}forEach(R,pe=globalThis){Ce.brandCheck(this,FormData);Ce.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof R!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[Ae,he]of this){R.apply(pe,[he,Ae,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(R,pe,Ae){R=Buffer.from(R).toString("utf8");if(typeof pe==="string"){pe=Buffer.from(pe).toString("utf8")}else{if(!Ee(pe)){pe=pe instanceof we?new Ie([pe],"blob",{type:pe.type}):new be(pe,"blob",{type:pe.type})}if(Ae!==undefined){const R={type:pe.type,lastModified:pe.lastModified};pe=_e&&pe instanceof _e||pe instanceof ve?new Ie([pe],Ae,R):new be(pe,Ae,R)}}return{name:R,value:pe}}R.exports={FormData:FormData}},71246:R=>{"use strict";const pe=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[pe]}function setGlobalOrigin(R){if(R===undefined){Object.defineProperty(globalThis,pe,{value:undefined,writable:true,enumerable:false,configurable:false});return}const Ae=new URL(R);if(Ae.protocol!=="http:"&&Ae.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${Ae.protocol}`)}Object.defineProperty(globalThis,pe,{value:Ae,writable:true,enumerable:false,configurable:false})}R.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},10554:(R,pe,Ae)=>{"use strict";const{kHeadersList:he,kConstruct:ge}=Ae(72785);const{kGuard:ye}=Ae(15861);const{kEnumerableProperty:me}=Ae(83983);const{makeIterator:ve,isValidHeaderName:be,isValidHeaderValue:Ee}=Ae(52538);const{webidl:Ce}=Ae(21744);const we=Ae(39491);const _e=Symbol("headers map");const Ie=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(R){return R===10||R===13||R===9||R===32}function headerValueNormalize(R){let pe=0;let Ae=R.length;while(Ae>pe&&isHTTPWhiteSpaceCharCode(R.charCodeAt(Ae-1)))--Ae;while(Ae>pe&&isHTTPWhiteSpaceCharCode(R.charCodeAt(pe)))++pe;return pe===0&&Ae===R.length?R:R.substring(pe,Ae)}function fill(R,pe){if(Array.isArray(pe)){for(let Ae=0;Ae>","record"]})}}function appendHeader(R,pe,Ae){Ae=headerValueNormalize(Ae);if(!be(pe)){throw Ce.errors.invalidArgument({prefix:"Headers.append",value:pe,type:"header name"})}else if(!Ee(Ae)){throw Ce.errors.invalidArgument({prefix:"Headers.append",value:Ae,type:"header value"})}if(R[ye]==="immutable"){throw new TypeError("immutable")}else if(R[ye]==="request-no-cors"){}return R[he].append(pe,Ae)}class HeadersList{cookies=null;constructor(R){if(R instanceof HeadersList){this[_e]=new Map(R[_e]);this[Ie]=R[Ie];this.cookies=R.cookies===null?null:[...R.cookies]}else{this[_e]=new Map(R);this[Ie]=null}}contains(R){R=R.toLowerCase();return this[_e].has(R)}clear(){this[_e].clear();this[Ie]=null;this.cookies=null}append(R,pe){this[Ie]=null;const Ae=R.toLowerCase();const he=this[_e].get(Ae);if(he){const R=Ae==="cookie"?"; ":", ";this[_e].set(Ae,{name:he.name,value:`${he.value}${R}${pe}`})}else{this[_e].set(Ae,{name:R,value:pe})}if(Ae==="set-cookie"){this.cookies??=[];this.cookies.push(pe)}}set(R,pe){this[Ie]=null;const Ae=R.toLowerCase();if(Ae==="set-cookie"){this.cookies=[pe]}this[_e].set(Ae,{name:R,value:pe})}delete(R){this[Ie]=null;R=R.toLowerCase();if(R==="set-cookie"){this.cookies=null}this[_e].delete(R)}get(R){const pe=this[_e].get(R.toLowerCase());return pe===undefined?null:pe.value}*[Symbol.iterator](){for(const[R,{value:pe}]of this[_e]){yield[R,pe]}}get entries(){const R={};if(this[_e].size){for(const{name:pe,value:Ae}of this[_e].values()){R[pe]=Ae}}return R}}class Headers{constructor(R=undefined){if(R===ge){return}this[he]=new HeadersList;this[ye]="none";if(R!==undefined){R=Ce.converters.HeadersInit(R);fill(this,R)}}append(R,pe){Ce.brandCheck(this,Headers);Ce.argumentLengthCheck(arguments,2,{header:"Headers.append"});R=Ce.converters.ByteString(R);pe=Ce.converters.ByteString(pe);return appendHeader(this,R,pe)}delete(R){Ce.brandCheck(this,Headers);Ce.argumentLengthCheck(arguments,1,{header:"Headers.delete"});R=Ce.converters.ByteString(R);if(!be(R)){throw Ce.errors.invalidArgument({prefix:"Headers.delete",value:R,type:"header name"})}if(this[ye]==="immutable"){throw new TypeError("immutable")}else if(this[ye]==="request-no-cors"){}if(!this[he].contains(R)){return}this[he].delete(R)}get(R){Ce.brandCheck(this,Headers);Ce.argumentLengthCheck(arguments,1,{header:"Headers.get"});R=Ce.converters.ByteString(R);if(!be(R)){throw Ce.errors.invalidArgument({prefix:"Headers.get",value:R,type:"header name"})}return this[he].get(R)}has(R){Ce.brandCheck(this,Headers);Ce.argumentLengthCheck(arguments,1,{header:"Headers.has"});R=Ce.converters.ByteString(R);if(!be(R)){throw Ce.errors.invalidArgument({prefix:"Headers.has",value:R,type:"header name"})}return this[he].contains(R)}set(R,pe){Ce.brandCheck(this,Headers);Ce.argumentLengthCheck(arguments,2,{header:"Headers.set"});R=Ce.converters.ByteString(R);pe=Ce.converters.ByteString(pe);pe=headerValueNormalize(pe);if(!be(R)){throw Ce.errors.invalidArgument({prefix:"Headers.set",value:R,type:"header name"})}else if(!Ee(pe)){throw Ce.errors.invalidArgument({prefix:"Headers.set",value:pe,type:"header value"})}if(this[ye]==="immutable"){throw new TypeError("immutable")}else if(this[ye]==="request-no-cors"){}this[he].set(R,pe)}getSetCookie(){Ce.brandCheck(this,Headers);const R=this[he].cookies;if(R){return[...R]}return[]}get[Ie](){if(this[he][Ie]){return this[he][Ie]}const R=[];const pe=[...this[he]].sort(((R,pe)=>R[0]R),"Headers","key")}return ve((()=>[...this[Ie].values()]),"Headers","key")}values(){Ce.brandCheck(this,Headers);if(this[ye]==="immutable"){const R=this[Ie];return ve((()=>R),"Headers","value")}return ve((()=>[...this[Ie].values()]),"Headers","value")}entries(){Ce.brandCheck(this,Headers);if(this[ye]==="immutable"){const R=this[Ie];return ve((()=>R),"Headers","key+value")}return ve((()=>[...this[Ie].values()]),"Headers","key+value")}forEach(R,pe=globalThis){Ce.brandCheck(this,Headers);Ce.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof R!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[Ae,he]of this){R.apply(pe,[he,Ae,this])}}[Symbol.for("nodejs.util.inspect.custom")](){Ce.brandCheck(this,Headers);return this[he]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:me,delete:me,get:me,has:me,set:me,getSetCookie:me,keys:me,values:me,entries:me,forEach:me,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});Ce.converters.HeadersInit=function(R){if(Ce.util.Type(R)==="Object"){if(R[Symbol.iterator]){return Ce.converters["sequence>"](R)}return Ce.converters["record"](R)}throw Ce.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};R.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},74881:(R,pe,Ae)=>{"use strict";const{Response:he,makeNetworkError:ge,makeAppropriateNetworkError:ye,filterResponse:me,makeResponse:ve}=Ae(27823);const{Headers:be}=Ae(10554);const{Request:Ee,makeRequest:Ce}=Ae(48359);const we=Ae(59796);const{bytesMatch:_e,makePolicyContainer:Ie,clonePolicyContainer:Se,requestBadPort:Be,TAOCheck:ke,appendRequestOriginHeader:Oe,responseLocationURL:Re,requestCurrentURL:Qe,setRequestReferrerPolicyOnRedirect:xe,tryUpgradeRequestToAPotentiallyTrustworthyURL:Pe,createOpaqueTimingInfo:Te,appendFetchMetadata:De,corsCheck:Ne,crossOriginResourcePolicyCheck:Me,determineRequestsReferrer:je,coarsenedSharedCurrentTime:Fe,createDeferredPromise:Le,isBlobLike:Ue,sameOrigin:He,isCancelled:Je,isAborted:We,isErrorLike:Ve,fullyReadBody:Ke,readableStreamClose:Ge,isomorphicEncode:Ye,urlIsLocal:qe,urlIsHttpHttpsScheme:$e,urlHasHttpsScheme:ze}=Ae(52538);const{kState:Xe,kHeaders:Ze,kGuard:et,kRealm:tt}=Ae(15861);const rt=Ae(39491);const{safelyExtractBody:nt}=Ae(41472);const{redirectStatusSet:it,nullBodyStatus:ot,safeMethodsSet:st,requestBodyHeader:at,subresourceSet:ct,DOMException:ut}=Ae(41037);const{kHeadersList:lt}=Ae(72785);const dt=Ae(82361);const{Readable:ft,pipeline:pt}=Ae(12781);const{addAbortListener:At,isErrored:ht,isReadable:gt,nodeMajor:yt,nodeMinor:mt}=Ae(83983);const{dataURLProcessor:vt,serializeAMimeType:bt}=Ae(685);const{TransformStream:Et}=Ae(35356);const{getGlobalDispatcher:Ct}=Ae(21892);const{webidl:wt}=Ae(21744);const{STATUS_CODES:_t}=Ae(13685);const It=["GET","HEAD"];let St;let Bt=globalThis.ReadableStream;class Fetch extends dt{constructor(R){super();this.dispatcher=R;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(R){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(R);this.emit("terminated",R)}abort(R){if(this.state!=="ongoing"){return}this.state="aborted";if(!R){R=new ut("The operation was aborted.","AbortError")}this.serializedAbortReason=R;this.connection?.destroy(R);this.emit("terminated",R)}}function fetch(R,pe={}){wt.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const Ae=Le();let ge;try{ge=new Ee(R,pe)}catch(R){Ae.reject(R);return Ae.promise}const ye=ge[Xe];if(ge.signal.aborted){abortFetch(Ae,ye,null,ge.signal.reason);return Ae.promise}const me=ye.client.globalObject;if(me?.constructor?.name==="ServiceWorkerGlobalScope"){ye.serviceWorkers="none"}let ve=null;const be=null;let Ce=false;let we=null;At(ge.signal,(()=>{Ce=true;rt(we!=null);we.abort(ge.signal.reason);abortFetch(Ae,ye,ve,ge.signal.reason)}));const handleFetchDone=R=>finalizeAndReportTiming(R,"fetch");const processResponse=R=>{if(Ce){return Promise.resolve()}if(R.aborted){abortFetch(Ae,ye,ve,we.serializedAbortReason);return Promise.resolve()}if(R.type==="error"){Ae.reject(Object.assign(new TypeError("fetch failed"),{cause:R.error}));return Promise.resolve()}ve=new he;ve[Xe]=R;ve[tt]=be;ve[Ze][lt]=R.headersList;ve[Ze][et]="immutable";ve[Ze][tt]=be;Ae.resolve(ve)};we=fetching({request:ye,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:pe.dispatcher??Ct()});return Ae.promise}function finalizeAndReportTiming(R,pe="other"){if(R.type==="error"&&R.aborted){return}if(!R.urlList?.length){return}const Ae=R.urlList[0];let he=R.timingInfo;let ge=R.cacheState;if(!$e(Ae)){return}if(he===null){return}if(!R.timingAllowPassed){he=Te({startTime:he.startTime});ge=""}he.endTime=Fe();R.timingInfo=he;markResourceTiming(he,Ae,pe,globalThis,ge)}function markResourceTiming(R,pe,Ae,he,ge){if(yt>18||yt===18&&mt>=2){performance.markResourceTiming(R,pe.href,Ae,he,ge)}}function abortFetch(R,pe,Ae,he){if(!he){he=new ut("The operation was aborted.","AbortError")}R.reject(he);if(pe.body!=null&>(pe.body?.stream)){pe.body.stream.cancel(he).catch((R=>{if(R.code==="ERR_INVALID_STATE"){return}throw R}))}if(Ae==null){return}const ge=Ae[Xe];if(ge.body!=null&>(ge.body?.stream)){ge.body.stream.cancel(he).catch((R=>{if(R.code==="ERR_INVALID_STATE"){return}throw R}))}}function fetching({request:R,processRequestBodyChunkLength:pe,processRequestEndOfBody:Ae,processResponse:he,processResponseEndOfBody:ge,processResponseConsumeBody:ye,useParallelQueue:me=false,dispatcher:ve}){let be=null;let Ee=false;if(R.client!=null){be=R.client.globalObject;Ee=R.client.crossOriginIsolatedCapability}const Ce=Fe(Ee);const we=Te({startTime:Ce});const _e={controller:new Fetch(ve),request:R,timingInfo:we,processRequestBodyChunkLength:pe,processRequestEndOfBody:Ae,processResponse:he,processResponseConsumeBody:ye,processResponseEndOfBody:ge,taskDestination:be,crossOriginIsolatedCapability:Ee};rt(!R.body||R.body.stream);if(R.window==="client"){R.window=R.client?.globalObject?.constructor?.name==="Window"?R.client:"no-window"}if(R.origin==="client"){R.origin=R.client?.origin}if(R.policyContainer==="client"){if(R.client!=null){R.policyContainer=Se(R.client.policyContainer)}else{R.policyContainer=Ie()}}if(!R.headersList.contains("accept")){const pe="*/*";R.headersList.append("accept",pe)}if(!R.headersList.contains("accept-language")){R.headersList.append("accept-language","*")}if(R.priority===null){}if(ct.has(R.destination)){}mainFetch(_e).catch((R=>{_e.controller.terminate(R)}));return _e.controller}async function mainFetch(R,pe=false){const Ae=R.request;let he=null;if(Ae.localURLsOnly&&!qe(Qe(Ae))){he=ge("local URLs only")}Pe(Ae);if(Be(Ae)==="blocked"){he=ge("bad port")}if(Ae.referrerPolicy===""){Ae.referrerPolicy=Ae.policyContainer.referrerPolicy}if(Ae.referrer!=="no-referrer"){Ae.referrer=je(Ae)}if(he===null){he=await(async()=>{const pe=Qe(Ae);if(He(pe,Ae.url)&&Ae.responseTainting==="basic"||pe.protocol==="data:"||(Ae.mode==="navigate"||Ae.mode==="websocket")){Ae.responseTainting="basic";return await schemeFetch(R)}if(Ae.mode==="same-origin"){return ge('request mode cannot be "same-origin"')}if(Ae.mode==="no-cors"){if(Ae.redirect!=="follow"){return ge('redirect mode cannot be "follow" for "no-cors" request')}Ae.responseTainting="opaque";return await schemeFetch(R)}if(!$e(Qe(Ae))){return ge("URL scheme must be a HTTP(S) scheme")}Ae.responseTainting="cors";return await httpFetch(R)})()}if(pe){return he}if(he.status!==0&&!he.internalResponse){if(Ae.responseTainting==="cors"){}if(Ae.responseTainting==="basic"){he=me(he,"basic")}else if(Ae.responseTainting==="cors"){he=me(he,"cors")}else if(Ae.responseTainting==="opaque"){he=me(he,"opaque")}else{rt(false)}}let ye=he.status===0?he:he.internalResponse;if(ye.urlList.length===0){ye.urlList.push(...Ae.urlList)}if(!Ae.timingAllowFailed){he.timingAllowPassed=true}if(he.type==="opaque"&&ye.status===206&&ye.rangeRequested&&!Ae.headers.contains("range")){he=ye=ge()}if(he.status!==0&&(Ae.method==="HEAD"||Ae.method==="CONNECT"||ot.includes(ye.status))){ye.body=null;R.controller.dump=true}if(Ae.integrity){const processBodyError=pe=>fetchFinale(R,ge(pe));if(Ae.responseTainting==="opaque"||he.body==null){processBodyError(he.error);return}const processBody=pe=>{if(!_e(pe,Ae.integrity)){processBodyError("integrity mismatch");return}he.body=nt(pe)[0];fetchFinale(R,he)};await Ke(he.body,processBody,processBodyError)}else{fetchFinale(R,he)}}function schemeFetch(R){if(Je(R)&&R.request.redirectCount===0){return Promise.resolve(ye(R))}const{request:pe}=R;const{protocol:he}=Qe(pe);switch(he){case"about:":{return Promise.resolve(ge("about scheme is not supported"))}case"blob:":{if(!St){St=Ae(14300).resolveObjectURL}const R=Qe(pe);if(R.search.length!==0){return Promise.resolve(ge("NetworkError when attempting to fetch resource."))}const he=St(R.toString());if(pe.method!=="GET"||!Ue(he)){return Promise.resolve(ge("invalid method"))}const ye=nt(he);const me=ye[0];const be=Ye(`${me.length}`);const Ee=ye[1]??"";const Ce=ve({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:be}],["content-type",{name:"Content-Type",value:Ee}]]});Ce.body=me;return Promise.resolve(Ce)}case"data:":{const R=Qe(pe);const Ae=vt(R);if(Ae==="failure"){return Promise.resolve(ge("failed to fetch the data URL"))}const he=bt(Ae.mimeType);return Promise.resolve(ve({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:he}]],body:nt(Ae.body)[0]}))}case"file:":{return Promise.resolve(ge("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(R).catch((R=>ge(R)))}default:{return Promise.resolve(ge("unknown scheme"))}}}function finalizeResponse(R,pe){R.request.done=true;if(R.processResponseDone!=null){queueMicrotask((()=>R.processResponseDone(pe)))}}function fetchFinale(R,pe){if(pe.type==="error"){pe.urlList=[R.request.urlList[0]];pe.timingInfo=Te({startTime:R.timingInfo.startTime})}const processResponseEndOfBody=()=>{R.request.done=true;if(R.processResponseEndOfBody!=null){queueMicrotask((()=>R.processResponseEndOfBody(pe)))}};if(R.processResponse!=null){queueMicrotask((()=>R.processResponse(pe)))}if(pe.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(R,pe)=>{pe.enqueue(R)};const R=new Et({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});pe.body={stream:pe.body.stream.pipeThrough(R)}}if(R.processResponseConsumeBody!=null){const processBody=Ae=>R.processResponseConsumeBody(pe,Ae);const processBodyError=Ae=>R.processResponseConsumeBody(pe,Ae);if(pe.body==null){queueMicrotask((()=>processBody(null)))}else{return Ke(pe.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(R){const pe=R.request;let Ae=null;let he=null;const ye=R.timingInfo;if(pe.serviceWorkers==="all"){}if(Ae===null){if(pe.redirect==="follow"){pe.serviceWorkers="none"}he=Ae=await httpNetworkOrCacheFetch(R);if(pe.responseTainting==="cors"&&Ne(pe,Ae)==="failure"){return ge("cors failure")}if(ke(pe,Ae)==="failure"){pe.timingAllowFailed=true}}if((pe.responseTainting==="opaque"||Ae.type==="opaque")&&Me(pe.origin,pe.client,pe.destination,he)==="blocked"){return ge("blocked")}if(it.has(he.status)){if(pe.redirect!=="manual"){R.controller.connection.destroy()}if(pe.redirect==="error"){Ae=ge("unexpected redirect")}else if(pe.redirect==="manual"){Ae=he}else if(pe.redirect==="follow"){Ae=await httpRedirectFetch(R,Ae)}else{rt(false)}}Ae.timingInfo=ye;return Ae}function httpRedirectFetch(R,pe){const Ae=R.request;const he=pe.internalResponse?pe.internalResponse:pe;let ye;try{ye=Re(he,Qe(Ae).hash);if(ye==null){return pe}}catch(R){return Promise.resolve(ge(R))}if(!$e(ye)){return Promise.resolve(ge("URL scheme must be a HTTP(S) scheme"))}if(Ae.redirectCount===20){return Promise.resolve(ge("redirect count exceeded"))}Ae.redirectCount+=1;if(Ae.mode==="cors"&&(ye.username||ye.password)&&!He(Ae,ye)){return Promise.resolve(ge('cross origin not allowed for request mode "cors"'))}if(Ae.responseTainting==="cors"&&(ye.username||ye.password)){return Promise.resolve(ge('URL cannot contain credentials for request mode "cors"'))}if(he.status!==303&&Ae.body!=null&&Ae.body.source==null){return Promise.resolve(ge())}if([301,302].includes(he.status)&&Ae.method==="POST"||he.status===303&&!It.includes(Ae.method)){Ae.method="GET";Ae.body=null;for(const R of at){Ae.headersList.delete(R)}}if(!He(Qe(Ae),ye)){Ae.headersList.delete("authorization");Ae.headersList.delete("proxy-authorization",true);Ae.headersList.delete("cookie");Ae.headersList.delete("host")}if(Ae.body!=null){rt(Ae.body.source!=null);Ae.body=nt(Ae.body.source)[0]}const me=R.timingInfo;me.redirectEndTime=me.postRedirectStartTime=Fe(R.crossOriginIsolatedCapability);if(me.redirectStartTime===0){me.redirectStartTime=me.startTime}Ae.urlList.push(ye);xe(Ae,he);return mainFetch(R,true)}async function httpNetworkOrCacheFetch(R,pe=false,Ae=false){const he=R.request;let me=null;let ve=null;let be=null;const Ee=null;const we=false;if(he.window==="no-window"&&he.redirect==="error"){me=R;ve=he}else{ve=Ce(he);me={...R};me.request=ve}const _e=he.credentials==="include"||he.credentials==="same-origin"&&he.responseTainting==="basic";const Ie=ve.body?ve.body.length:null;let Se=null;if(ve.body==null&&["POST","PUT"].includes(ve.method)){Se="0"}if(Ie!=null){Se=Ye(`${Ie}`)}if(Se!=null){ve.headersList.append("content-length",Se)}if(Ie!=null&&ve.keepalive){}if(ve.referrer instanceof URL){ve.headersList.append("referer",Ye(ve.referrer.href))}Oe(ve);De(ve);if(!ve.headersList.contains("user-agent")){ve.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(ve.cache==="default"&&(ve.headersList.contains("if-modified-since")||ve.headersList.contains("if-none-match")||ve.headersList.contains("if-unmodified-since")||ve.headersList.contains("if-match")||ve.headersList.contains("if-range"))){ve.cache="no-store"}if(ve.cache==="no-cache"&&!ve.preventNoCacheCacheControlHeaderModification&&!ve.headersList.contains("cache-control")){ve.headersList.append("cache-control","max-age=0")}if(ve.cache==="no-store"||ve.cache==="reload"){if(!ve.headersList.contains("pragma")){ve.headersList.append("pragma","no-cache")}if(!ve.headersList.contains("cache-control")){ve.headersList.append("cache-control","no-cache")}}if(ve.headersList.contains("range")){ve.headersList.append("accept-encoding","identity")}if(!ve.headersList.contains("accept-encoding")){if(ze(Qe(ve))){ve.headersList.append("accept-encoding","br, gzip, deflate")}else{ve.headersList.append("accept-encoding","gzip, deflate")}}ve.headersList.delete("host");if(_e){}if(Ee==null){ve.cache="no-store"}if(ve.mode!=="no-store"&&ve.mode!=="reload"){}if(be==null){if(ve.mode==="only-if-cached"){return ge("only if cached")}const R=await httpNetworkFetch(me,_e,Ae);if(!st.has(ve.method)&&R.status>=200&&R.status<=399){}if(we&&R.status===304){}if(be==null){be=R}}be.urlList=[...ve.urlList];if(ve.headersList.contains("range")){be.rangeRequested=true}be.requestIncludesCredentials=_e;if(be.status===407){if(he.window==="no-window"){return ge()}if(Je(R)){return ye(R)}return ge("proxy authentication required")}if(be.status===421&&!Ae&&(he.body==null||he.body.source!=null)){if(Je(R)){return ye(R)}R.controller.connection.destroy();be=await httpNetworkOrCacheFetch(R,pe,true)}if(pe){}return be}async function httpNetworkFetch(R,pe=false,he=false){rt(!R.controller.connection||R.controller.connection.destroyed);R.controller.connection={abort:null,destroyed:false,destroy(R){if(!this.destroyed){this.destroyed=true;this.abort?.(R??new ut("The operation was aborted.","AbortError"))}}};const me=R.request;let Ee=null;const Ce=R.timingInfo;const _e=null;if(_e==null){me.cache="no-store"}const Ie=he?"yes":"no";if(me.mode==="websocket"){}else{}let Se=null;if(me.body==null&&R.processRequestEndOfBody){queueMicrotask((()=>R.processRequestEndOfBody()))}else if(me.body!=null){const processBodyChunk=async function*(pe){if(Je(R)){return}yield pe;R.processRequestBodyChunkLength?.(pe.byteLength)};const processEndOfBody=()=>{if(Je(R)){return}if(R.processRequestEndOfBody){R.processRequestEndOfBody()}};const processBodyError=pe=>{if(Je(R)){return}if(pe.name==="AbortError"){R.controller.abort()}else{R.controller.terminate(pe)}};Se=async function*(){try{for await(const R of me.body.stream){yield*processBodyChunk(R)}processEndOfBody()}catch(R){processBodyError(R)}}()}try{const{body:pe,status:Ae,statusText:he,headersList:ge,socket:ye}=await dispatch({body:Se});if(ye){Ee=ve({status:Ae,statusText:he,headersList:ge,socket:ye})}else{const ye=pe[Symbol.asyncIterator]();R.controller.next=()=>ye.next();Ee=ve({status:Ae,statusText:he,headersList:ge})}}catch(pe){if(pe.name==="AbortError"){R.controller.connection.destroy();return ye(R,pe)}return ge(pe)}const pullAlgorithm=()=>{R.controller.resume()};const cancelAlgorithm=pe=>{R.controller.abort(pe)};if(!Bt){Bt=Ae(35356).ReadableStream}const Be=new Bt({async start(pe){R.controller.controller=pe},async pull(R){await pullAlgorithm(R)},async cancel(R){await cancelAlgorithm(R)}},{highWaterMark:0,size(){return 1}});Ee.body={stream:Be};R.controller.on("terminated",onAborted);R.controller.resume=async()=>{while(true){let pe;let Ae;try{const{done:Ae,value:he}=await R.controller.next();if(We(R)){break}pe=Ae?undefined:he}catch(he){if(R.controller.ended&&!Ce.encodedBodySize){pe=undefined}else{pe=he;Ae=true}}if(pe===undefined){Ge(R.controller.controller);finalizeResponse(R,Ee);return}Ce.decodedBodySize+=pe?.byteLength??0;if(Ae){R.controller.terminate(pe);return}R.controller.controller.enqueue(new Uint8Array(pe));if(ht(Be)){R.controller.terminate();return}if(!R.controller.controller.desiredSize){return}}};function onAborted(pe){if(We(R)){Ee.aborted=true;if(gt(Be)){R.controller.controller.error(R.controller.serializedAbortReason)}}else{if(gt(Be)){R.controller.controller.error(new TypeError("terminated",{cause:Ve(pe)?pe:undefined}))}}R.controller.connection.destroy()}return Ee;async function dispatch({body:pe}){const Ae=Qe(me);const he=R.controller.dispatcher;return new Promise(((ge,ye)=>he.dispatch({path:Ae.pathname+Ae.search,origin:Ae.origin,method:me.method,body:R.controller.dispatcher.isMockActive?me.body&&(me.body.source||me.body.stream):pe,headers:me.headersList.entries,maxRedirections:0,upgrade:me.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(pe){const{connection:Ae}=R.controller;if(Ae.destroyed){pe(new ut("The operation was aborted.","AbortError"))}else{R.controller.on("terminated",pe);this.abort=Ae.abort=pe}},onHeaders(R,pe,Ae,he){if(R<200){return}let ye=[];let ve="";const Ee=new be;if(Array.isArray(pe)){for(let R=0;RR.trim()))}else if(Ae.toLowerCase()==="location"){ve=he}Ee[lt].append(Ae,he)}}else{const R=Object.keys(pe);for(const Ae of R){const R=pe[Ae];if(Ae.toLowerCase()==="content-encoding"){ye=R.toLowerCase().split(",").map((R=>R.trim())).reverse()}else if(Ae.toLowerCase()==="location"){ve=R}Ee[lt].append(Ae,R)}}this.body=new ft({read:Ae});const Ce=[];const _e=me.redirect==="follow"&&ve&&it.has(R);if(me.method!=="HEAD"&&me.method!=="CONNECT"&&!ot.includes(R)&&!_e){for(const R of ye){if(R==="x-gzip"||R==="gzip"){Ce.push(we.createGunzip({flush:we.constants.Z_SYNC_FLUSH,finishFlush:we.constants.Z_SYNC_FLUSH}))}else if(R==="deflate"){Ce.push(we.createInflate())}else if(R==="br"){Ce.push(we.createBrotliDecompress())}else{Ce.length=0;break}}}ge({status:R,statusText:he,headersList:Ee[lt],body:Ce.length?pt(this.body,...Ce,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(pe){if(R.controller.dump){return}const Ae=pe;Ce.encodedBodySize+=Ae.byteLength;return this.body.push(Ae)},onComplete(){if(this.abort){R.controller.off("terminated",this.abort)}R.controller.ended=true;this.body.push(null)},onError(pe){if(this.abort){R.controller.off("terminated",this.abort)}this.body?.destroy(pe);R.controller.terminate(pe);ye(pe)},onUpgrade(R,pe,Ae){if(R!==101){return}const he=new be;for(let R=0;R{"use strict";const{extractBody:he,mixinBody:ge,cloneBody:ye}=Ae(41472);const{Headers:me,fill:ve,HeadersList:be}=Ae(10554);const{FinalizationRegistry:Ee}=Ae(56436)();const Ce=Ae(83983);const{isValidHTTPToken:we,sameOrigin:_e,normalizeMethod:Ie,makePolicyContainer:Se,normalizeMethodRecord:Be}=Ae(52538);const{forbiddenMethodsSet:ke,corsSafeListedMethodsSet:Oe,referrerPolicy:Re,requestRedirect:Qe,requestMode:xe,requestCredentials:Pe,requestCache:Te,requestDuplex:De}=Ae(41037);const{kEnumerableProperty:Ne}=Ce;const{kHeaders:Me,kSignal:je,kState:Fe,kGuard:Le,kRealm:Ue}=Ae(15861);const{webidl:He}=Ae(21744);const{getGlobalOrigin:Je}=Ae(71246);const{URLSerializer:We}=Ae(685);const{kHeadersList:Ve,kConstruct:Ke}=Ae(72785);const Ge=Ae(39491);const{getMaxListeners:Ye,setMaxListeners:qe,getEventListeners:$e,defaultMaxListeners:ze}=Ae(82361);let Xe=globalThis.TransformStream;const Ze=Symbol("abortController");const et=new Ee((({signal:R,abort:pe})=>{R.removeEventListener("abort",pe)}));class Request{constructor(R,pe={}){if(R===Ke){return}He.argumentLengthCheck(arguments,1,{header:"Request constructor"});R=He.converters.RequestInfo(R);pe=He.converters.RequestInit(pe);this[Ue]={settingsObject:{baseUrl:Je(),get origin(){return this.baseUrl?.origin},policyContainer:Se()}};let ge=null;let ye=null;const Ee=this[Ue].settingsObject.baseUrl;let Re=null;if(typeof R==="string"){let pe;try{pe=new URL(R,Ee)}catch(pe){throw new TypeError("Failed to parse URL from "+R,{cause:pe})}if(pe.username||pe.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+R)}ge=makeRequest({urlList:[pe]});ye="cors"}else{Ge(R instanceof Request);ge=R[Fe];Re=R[je]}const Qe=this[Ue].settingsObject.origin;let xe="client";if(ge.window?.constructor?.name==="EnvironmentSettingsObject"&&_e(ge.window,Qe)){xe=ge.window}if(pe.window!=null){throw new TypeError(`'window' option '${xe}' must be null`)}if("window"in pe){xe="no-window"}ge=makeRequest({method:ge.method,headersList:ge.headersList,unsafeRequest:ge.unsafeRequest,client:this[Ue].settingsObject,window:xe,priority:ge.priority,origin:ge.origin,referrer:ge.referrer,referrerPolicy:ge.referrerPolicy,mode:ge.mode,credentials:ge.credentials,cache:ge.cache,redirect:ge.redirect,integrity:ge.integrity,keepalive:ge.keepalive,reloadNavigation:ge.reloadNavigation,historyNavigation:ge.historyNavigation,urlList:[...ge.urlList]});const Pe=Object.keys(pe).length!==0;if(Pe){if(ge.mode==="navigate"){ge.mode="same-origin"}ge.reloadNavigation=false;ge.historyNavigation=false;ge.origin="client";ge.referrer="client";ge.referrerPolicy="";ge.url=ge.urlList[ge.urlList.length-1];ge.urlList=[ge.url]}if(pe.referrer!==undefined){const R=pe.referrer;if(R===""){ge.referrer="no-referrer"}else{let pe;try{pe=new URL(R,Ee)}catch(pe){throw new TypeError(`Referrer "${R}" is not a valid URL.`,{cause:pe})}if(pe.protocol==="about:"&&pe.hostname==="client"||Qe&&!_e(pe,this[Ue].settingsObject.baseUrl)){ge.referrer="client"}else{ge.referrer=pe}}}if(pe.referrerPolicy!==undefined){ge.referrerPolicy=pe.referrerPolicy}let Te;if(pe.mode!==undefined){Te=pe.mode}else{Te=ye}if(Te==="navigate"){throw He.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(Te!=null){ge.mode=Te}if(pe.credentials!==undefined){ge.credentials=pe.credentials}if(pe.cache!==undefined){ge.cache=pe.cache}if(ge.cache==="only-if-cached"&&ge.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(pe.redirect!==undefined){ge.redirect=pe.redirect}if(pe.integrity!=null){ge.integrity=String(pe.integrity)}if(pe.keepalive!==undefined){ge.keepalive=Boolean(pe.keepalive)}if(pe.method!==undefined){let R=pe.method;if(!we(R)){throw new TypeError(`'${R}' is not a valid HTTP method.`)}if(ke.has(R.toUpperCase())){throw new TypeError(`'${R}' HTTP method is unsupported.`)}R=Be[R]??Ie(R);ge.method=R}if(pe.signal!==undefined){Re=pe.signal}this[Fe]=ge;const De=new AbortController;this[je]=De.signal;this[je][Ue]=this[Ue];if(Re!=null){if(!Re||typeof Re.aborted!=="boolean"||typeof Re.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(Re.aborted){De.abort(Re.reason)}else{this[Ze]=De;const R=new WeakRef(De);const abort=function(){const pe=R.deref();if(pe!==undefined){pe.abort(this.reason)}};try{if(typeof Ye==="function"&&Ye(Re)===ze){qe(100,Re)}else if($e(Re,"abort").length>=ze){qe(100,Re)}}catch{}Ce.addAbortListener(Re,abort);et.register(De,{signal:Re,abort:abort})}}this[Me]=new me(Ke);this[Me][Ve]=ge.headersList;this[Me][Le]="request";this[Me][Ue]=this[Ue];if(Te==="no-cors"){if(!Oe.has(ge.method)){throw new TypeError(`'${ge.method} is unsupported in no-cors mode.`)}this[Me][Le]="request-no-cors"}if(Pe){const R=this[Me][Ve];const Ae=pe.headers!==undefined?pe.headers:new be(R);R.clear();if(Ae instanceof be){for(const[pe,he]of Ae){R.append(pe,he)}R.cookies=Ae.cookies}else{ve(this[Me],Ae)}}const Ne=R instanceof Request?R[Fe].body:null;if((pe.body!=null||Ne!=null)&&(ge.method==="GET"||ge.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let We=null;if(pe.body!=null){const[R,Ae]=he(pe.body,ge.keepalive);We=R;if(Ae&&!this[Me][Ve].contains("content-type")){this[Me].append("content-type",Ae)}}const tt=We??Ne;if(tt!=null&&tt.source==null){if(We!=null&&pe.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(ge.mode!=="same-origin"&&ge.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}ge.useCORSPreflightFlag=true}let rt=tt;if(We==null&&Ne!=null){if(Ce.isDisturbed(Ne.stream)||Ne.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!Xe){Xe=Ae(35356).TransformStream}const R=new Xe;Ne.stream.pipeThrough(R);rt={source:Ne.source,length:Ne.length,stream:R.readable}}this[Fe].body=rt}get method(){He.brandCheck(this,Request);return this[Fe].method}get url(){He.brandCheck(this,Request);return We(this[Fe].url)}get headers(){He.brandCheck(this,Request);return this[Me]}get destination(){He.brandCheck(this,Request);return this[Fe].destination}get referrer(){He.brandCheck(this,Request);if(this[Fe].referrer==="no-referrer"){return""}if(this[Fe].referrer==="client"){return"about:client"}return this[Fe].referrer.toString()}get referrerPolicy(){He.brandCheck(this,Request);return this[Fe].referrerPolicy}get mode(){He.brandCheck(this,Request);return this[Fe].mode}get credentials(){return this[Fe].credentials}get cache(){He.brandCheck(this,Request);return this[Fe].cache}get redirect(){He.brandCheck(this,Request);return this[Fe].redirect}get integrity(){He.brandCheck(this,Request);return this[Fe].integrity}get keepalive(){He.brandCheck(this,Request);return this[Fe].keepalive}get isReloadNavigation(){He.brandCheck(this,Request);return this[Fe].reloadNavigation}get isHistoryNavigation(){He.brandCheck(this,Request);return this[Fe].historyNavigation}get signal(){He.brandCheck(this,Request);return this[je]}get body(){He.brandCheck(this,Request);return this[Fe].body?this[Fe].body.stream:null}get bodyUsed(){He.brandCheck(this,Request);return!!this[Fe].body&&Ce.isDisturbed(this[Fe].body.stream)}get duplex(){He.brandCheck(this,Request);return"half"}clone(){He.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const R=cloneRequest(this[Fe]);const pe=new Request(Ke);pe[Fe]=R;pe[Ue]=this[Ue];pe[Me]=new me(Ke);pe[Me][Ve]=R.headersList;pe[Me][Le]=this[Me][Le];pe[Me][Ue]=this[Me][Ue];const Ae=new AbortController;if(this.signal.aborted){Ae.abort(this.signal.reason)}else{Ce.addAbortListener(this.signal,(()=>{Ae.abort(this.signal.reason)}))}pe[je]=Ae.signal;return pe}}ge(Request);function makeRequest(R){const pe={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,...R,headersList:R.headersList?new be(R.headersList):new be};pe.url=pe.urlList[0];return pe}function cloneRequest(R){const pe=makeRequest({...R,body:null});if(R.body!=null){pe.body=ye(R.body)}return pe}Object.defineProperties(Request.prototype,{method:Ne,url:Ne,headers:Ne,redirect:Ne,clone:Ne,signal:Ne,duplex:Ne,destination:Ne,body:Ne,bodyUsed:Ne,isHistoryNavigation:Ne,isReloadNavigation:Ne,keepalive:Ne,integrity:Ne,cache:Ne,credentials:Ne,attribute:Ne,referrerPolicy:Ne,referrer:Ne,mode:Ne,[Symbol.toStringTag]:{value:"Request",configurable:true}});He.converters.Request=He.interfaceConverter(Request);He.converters.RequestInfo=function(R){if(typeof R==="string"){return He.converters.USVString(R)}if(R instanceof Request){return He.converters.Request(R)}return He.converters.USVString(R)};He.converters.AbortSignal=He.interfaceConverter(AbortSignal);He.converters.RequestInit=He.dictionaryConverter([{key:"method",converter:He.converters.ByteString},{key:"headers",converter:He.converters.HeadersInit},{key:"body",converter:He.nullableConverter(He.converters.BodyInit)},{key:"referrer",converter:He.converters.USVString},{key:"referrerPolicy",converter:He.converters.DOMString,allowedValues:Re},{key:"mode",converter:He.converters.DOMString,allowedValues:xe},{key:"credentials",converter:He.converters.DOMString,allowedValues:Pe},{key:"cache",converter:He.converters.DOMString,allowedValues:Te},{key:"redirect",converter:He.converters.DOMString,allowedValues:Qe},{key:"integrity",converter:He.converters.DOMString},{key:"keepalive",converter:He.converters.boolean},{key:"signal",converter:He.nullableConverter((R=>He.converters.AbortSignal(R,{strict:false})))},{key:"window",converter:He.converters.any},{key:"duplex",converter:He.converters.DOMString,allowedValues:De}]);R.exports={Request:Request,makeRequest:makeRequest}},27823:(R,pe,Ae)=>{"use strict";const{Headers:he,HeadersList:ge,fill:ye}=Ae(10554);const{extractBody:me,cloneBody:ve,mixinBody:be}=Ae(41472);const Ee=Ae(83983);const{kEnumerableProperty:Ce}=Ee;const{isValidReasonPhrase:we,isCancelled:_e,isAborted:Ie,isBlobLike:Se,serializeJavascriptValueToJSONString:Be,isErrorLike:ke,isomorphicEncode:Oe}=Ae(52538);const{redirectStatusSet:Re,nullBodyStatus:Qe,DOMException:xe}=Ae(41037);const{kState:Pe,kHeaders:Te,kGuard:De,kRealm:Ne}=Ae(15861);const{webidl:Me}=Ae(21744);const{FormData:je}=Ae(72015);const{getGlobalOrigin:Fe}=Ae(71246);const{URLSerializer:Le}=Ae(685);const{kHeadersList:Ue,kConstruct:He}=Ae(72785);const Je=Ae(39491);const{types:We}=Ae(73837);const Ve=globalThis.ReadableStream||Ae(35356).ReadableStream;const Ke=new TextEncoder("utf-8");class Response{static error(){const R={settingsObject:{}};const pe=new Response;pe[Pe]=makeNetworkError();pe[Ne]=R;pe[Te][Ue]=pe[Pe].headersList;pe[Te][De]="immutable";pe[Te][Ne]=R;return pe}static json(R,pe={}){Me.argumentLengthCheck(arguments,1,{header:"Response.json"});if(pe!==null){pe=Me.converters.ResponseInit(pe)}const Ae=Ke.encode(Be(R));const he=me(Ae);const ge={settingsObject:{}};const ye=new Response;ye[Ne]=ge;ye[Te][De]="response";ye[Te][Ne]=ge;initializeResponse(ye,pe,{body:he[0],type:"application/json"});return ye}static redirect(R,pe=302){const Ae={settingsObject:{}};Me.argumentLengthCheck(arguments,1,{header:"Response.redirect"});R=Me.converters.USVString(R);pe=Me.converters["unsigned short"](pe);let he;try{he=new URL(R,Fe())}catch(pe){throw Object.assign(new TypeError("Failed to parse URL from "+R),{cause:pe})}if(!Re.has(pe)){throw new RangeError("Invalid status code "+pe)}const ge=new Response;ge[Ne]=Ae;ge[Te][De]="immutable";ge[Te][Ne]=Ae;ge[Pe].status=pe;const ye=Oe(Le(he));ge[Pe].headersList.append("location",ye);return ge}constructor(R=null,pe={}){if(R!==null){R=Me.converters.BodyInit(R)}pe=Me.converters.ResponseInit(pe);this[Ne]={settingsObject:{}};this[Pe]=makeResponse({});this[Te]=new he(He);this[Te][De]="response";this[Te][Ue]=this[Pe].headersList;this[Te][Ne]=this[Ne];let Ae=null;if(R!=null){const[pe,he]=me(R);Ae={body:pe,type:he}}initializeResponse(this,pe,Ae)}get type(){Me.brandCheck(this,Response);return this[Pe].type}get url(){Me.brandCheck(this,Response);const R=this[Pe].urlList;const pe=R[R.length-1]??null;if(pe===null){return""}return Le(pe,true)}get redirected(){Me.brandCheck(this,Response);return this[Pe].urlList.length>1}get status(){Me.brandCheck(this,Response);return this[Pe].status}get ok(){Me.brandCheck(this,Response);return this[Pe].status>=200&&this[Pe].status<=299}get statusText(){Me.brandCheck(this,Response);return this[Pe].statusText}get headers(){Me.brandCheck(this,Response);return this[Te]}get body(){Me.brandCheck(this,Response);return this[Pe].body?this[Pe].body.stream:null}get bodyUsed(){Me.brandCheck(this,Response);return!!this[Pe].body&&Ee.isDisturbed(this[Pe].body.stream)}clone(){Me.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw Me.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const R=cloneResponse(this[Pe]);const pe=new Response;pe[Pe]=R;pe[Ne]=this[Ne];pe[Te][Ue]=R.headersList;pe[Te][De]=this[Te][De];pe[Te][Ne]=this[Te][Ne];return pe}}be(Response);Object.defineProperties(Response.prototype,{type:Ce,url:Ce,status:Ce,ok:Ce,redirected:Ce,statusText:Ce,headers:Ce,clone:Ce,body:Ce,bodyUsed:Ce,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:Ce,redirect:Ce,error:Ce});function cloneResponse(R){if(R.internalResponse){return filterResponse(cloneResponse(R.internalResponse),R.type)}const pe=makeResponse({...R,body:null});if(R.body!=null){pe.body=ve(R.body)}return pe}function makeResponse(R){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...R,headersList:R.headersList?new ge(R.headersList):new ge,urlList:R.urlList?[...R.urlList]:[]}}function makeNetworkError(R){const pe=ke(R);return makeResponse({type:"error",status:0,error:pe?R:new Error(R?String(R):R),aborted:R&&R.name==="AbortError"})}function makeFilteredResponse(R,pe){pe={internalResponse:R,...pe};return new Proxy(R,{get(R,Ae){return Ae in pe?pe[Ae]:R[Ae]},set(R,Ae,he){Je(!(Ae in pe));R[Ae]=he;return true}})}function filterResponse(R,pe){if(pe==="basic"){return makeFilteredResponse(R,{type:"basic",headersList:R.headersList})}else if(pe==="cors"){return makeFilteredResponse(R,{type:"cors",headersList:R.headersList})}else if(pe==="opaque"){return makeFilteredResponse(R,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(pe==="opaqueredirect"){return makeFilteredResponse(R,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{Je(false)}}function makeAppropriateNetworkError(R,pe=null){Je(_e(R));return Ie(R)?makeNetworkError(Object.assign(new xe("The operation was aborted.","AbortError"),{cause:pe})):makeNetworkError(Object.assign(new xe("Request was cancelled."),{cause:pe}))}function initializeResponse(R,pe,Ae){if(pe.status!==null&&(pe.status<200||pe.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in pe&&pe.statusText!=null){if(!we(String(pe.statusText))){throw new TypeError("Invalid statusText")}}if("status"in pe&&pe.status!=null){R[Pe].status=pe.status}if("statusText"in pe&&pe.statusText!=null){R[Pe].statusText=pe.statusText}if("headers"in pe&&pe.headers!=null){ye(R[Te],pe.headers)}if(Ae){if(Qe.includes(R.status)){throw Me.errors.exception({header:"Response constructor",message:"Invalid response status code "+R.status})}R[Pe].body=Ae.body;if(Ae.type!=null&&!R[Pe].headersList.contains("Content-Type")){R[Pe].headersList.append("content-type",Ae.type)}}}Me.converters.ReadableStream=Me.interfaceConverter(Ve);Me.converters.FormData=Me.interfaceConverter(je);Me.converters.URLSearchParams=Me.interfaceConverter(URLSearchParams);Me.converters.XMLHttpRequestBodyInit=function(R){if(typeof R==="string"){return Me.converters.USVString(R)}if(Se(R)){return Me.converters.Blob(R,{strict:false})}if(We.isArrayBuffer(R)||We.isTypedArray(R)||We.isDataView(R)){return Me.converters.BufferSource(R)}if(Ee.isFormDataLike(R)){return Me.converters.FormData(R,{strict:false})}if(R instanceof URLSearchParams){return Me.converters.URLSearchParams(R)}return Me.converters.DOMString(R)};Me.converters.BodyInit=function(R){if(R instanceof Ve){return Me.converters.ReadableStream(R)}if(R?.[Symbol.asyncIterator]){return R}return Me.converters.XMLHttpRequestBodyInit(R)};Me.converters.ResponseInit=Me.dictionaryConverter([{key:"status",converter:Me.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:Me.converters.ByteString,defaultValue:""},{key:"headers",converter:Me.converters.HeadersInit}]);R.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},15861:R=>{"use strict";R.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},52538:(R,pe,Ae)=>{"use strict";const{redirectStatusSet:he,referrerPolicySet:ge,badPortsSet:ye}=Ae(41037);const{getGlobalOrigin:me}=Ae(71246);const{performance:ve}=Ae(4074);const{isBlobLike:be,toUSVString:Ee,ReadableStreamFrom:Ce}=Ae(83983);const we=Ae(39491);const{isUint8Array:_e}=Ae(29830);let Ie=[];let Se;try{Se=Ae(6113);const R=["sha256","sha384","sha512"];Ie=Se.getHashes().filter((pe=>R.includes(pe)))}catch{}function responseURL(R){const pe=R.urlList;const Ae=pe.length;return Ae===0?null:pe[Ae-1].toString()}function responseLocationURL(R,pe){if(!he.has(R.status)){return null}let Ae=R.headersList.get("location");if(Ae!==null&&isValidHeaderValue(Ae)){Ae=new URL(Ae,responseURL(R))}if(Ae&&!Ae.hash){Ae.hash=pe}return Ae}function requestCurrentURL(R){return R.urlList[R.urlList.length-1]}function requestBadPort(R){const pe=requestCurrentURL(R);if(urlIsHttpHttpsScheme(pe)&&ye.has(pe.port)){return"blocked"}return"allowed"}function isErrorLike(R){return R instanceof Error||(R?.constructor?.name==="Error"||R?.constructor?.name==="DOMException")}function isValidReasonPhrase(R){for(let pe=0;pe=32&&Ae<=126||Ae>=128&&Ae<=255)){return false}}return true}function isTokenCharCode(R){switch(R){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 R>=33&&R<=126}}function isValidHTTPToken(R){if(R.length===0){return false}for(let pe=0;pe0){for(let R=he.length;R!==0;R--){const pe=he[R-1].trim();if(ge.has(pe)){ye=pe;break}}}if(ye!==""){R.referrerPolicy=ye}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(R){let pe=null;pe=R.mode;R.headersList.set("sec-fetch-mode",pe)}function appendRequestOriginHeader(R){let pe=R.origin;if(R.responseTainting==="cors"||R.mode==="websocket"){if(pe){R.headersList.append("origin",pe)}}else if(R.method!=="GET"&&R.method!=="HEAD"){switch(R.referrerPolicy){case"no-referrer":pe=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(R.origin&&urlHasHttpsScheme(R.origin)&&!urlHasHttpsScheme(requestCurrentURL(R))){pe=null}break;case"same-origin":if(!sameOrigin(R,requestCurrentURL(R))){pe=null}break;default:}if(pe){R.headersList.append("origin",pe)}}}function coarsenedSharedCurrentTime(R){return ve.now()}function createOpaqueTimingInfo(R){return{startTime:R.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:R.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(R){return{referrerPolicy:R.referrerPolicy}}function determineRequestsReferrer(R){const pe=R.referrerPolicy;we(pe);let Ae=null;if(R.referrer==="client"){const R=me();if(!R||R.origin==="null"){return"no-referrer"}Ae=new URL(R)}else if(R.referrer instanceof URL){Ae=R.referrer}let he=stripURLForReferrer(Ae);const ge=stripURLForReferrer(Ae,true);if(he.toString().length>4096){he=ge}const ye=sameOrigin(R,he);const ve=isURLPotentiallyTrustworthy(he)&&!isURLPotentiallyTrustworthy(R.url);switch(pe){case"origin":return ge!=null?ge:stripURLForReferrer(Ae,true);case"unsafe-url":return he;case"same-origin":return ye?ge:"no-referrer";case"origin-when-cross-origin":return ye?he:ge;case"strict-origin-when-cross-origin":{const pe=requestCurrentURL(R);if(sameOrigin(he,pe)){return he}if(isURLPotentiallyTrustworthy(he)&&!isURLPotentiallyTrustworthy(pe)){return"no-referrer"}return ge}case"strict-origin":case"no-referrer-when-downgrade":default:return ve?"no-referrer":ge}}function stripURLForReferrer(R,pe){we(R instanceof URL);if(R.protocol==="file:"||R.protocol==="about:"||R.protocol==="blank:"){return"no-referrer"}R.username="";R.password="";R.hash="";if(pe){R.pathname="";R.search=""}return R}function isURLPotentiallyTrustworthy(R){if(!(R instanceof URL)){return false}if(R.href==="about:blank"||R.href==="about:srcdoc"){return true}if(R.protocol==="data:")return true;if(R.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(R.origin);function isOriginPotentiallyTrustworthy(R){if(R==null||R==="null")return false;const pe=new URL(R);if(pe.protocol==="https:"||pe.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(pe.hostname)||(pe.hostname==="localhost"||pe.hostname.includes("localhost."))||pe.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(R,pe){if(Se===undefined){return true}const Ae=parseMetadata(pe);if(Ae==="no metadata"){return true}if(Ae.length===0){return true}const he=getStrongestMetadata(Ae);const ge=filterMetadataListByAlgorithm(Ae,he);for(const pe of ge){const Ae=pe.algo;const he=pe.hash;let ge=Se.createHash(Ae).update(R).digest("base64");if(ge[ge.length-1]==="="){if(ge[ge.length-2]==="="){ge=ge.slice(0,-2)}else{ge=ge.slice(0,-1)}}if(compareBase64Mixed(ge,he)){return true}}return false}const Be=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(R){const pe=[];let Ae=true;for(const he of R.split(" ")){Ae=false;const R=Be.exec(he);if(R===null||R.groups===undefined||R.groups.algo===undefined){continue}const ge=R.groups.algo.toLowerCase();if(Ie.includes(ge)){pe.push(R.groups)}}if(Ae===true){return"no metadata"}return pe}function getStrongestMetadata(R){let pe=R[0].algo;if(pe[3]==="5"){return pe}for(let Ae=1;Ae{R=Ae;pe=he}));return{promise:Ae,resolve:R,reject:pe}}function isAborted(R){return R.controller.state==="aborted"}function isCancelled(R){return R.controller.state==="aborted"||R.controller.state==="terminated"}const ke={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(ke,null);function normalizeMethod(R){return ke[R.toLowerCase()]??R}function serializeJavascriptValueToJSONString(R){const pe=JSON.stringify(R);if(pe===undefined){throw new TypeError("Value is not JSON serializable")}we(typeof pe==="string");return pe}const Oe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(R,pe,Ae){const he={index:0,kind:Ae,target:R};const ge={next(){if(Object.getPrototypeOf(this)!==ge){throw new TypeError(`'next' called on an object that does not implement interface ${pe} Iterator.`)}const{index:R,kind:Ae,target:ye}=he;const me=ye();const ve=me.length;if(R>=ve){return{value:undefined,done:true}}const be=me[R];he.index=R+1;return iteratorResult(be,Ae)},[Symbol.toStringTag]:`${pe} Iterator`};Object.setPrototypeOf(ge,Oe);return Object.setPrototypeOf({},ge)}function iteratorResult(R,pe){let Ae;switch(pe){case"key":{Ae=R[0];break}case"value":{Ae=R[1];break}case"key+value":{Ae=R;break}}return{value:Ae,done:false}}async function fullyReadBody(R,pe,Ae){const he=pe;const ge=Ae;let ye;try{ye=R.stream.getReader()}catch(R){ge(R);return}try{const R=await readAllBytes(ye);he(R)}catch(R){ge(R)}}let Re=globalThis.ReadableStream;function isReadableStreamLike(R){if(!Re){Re=Ae(35356).ReadableStream}return R instanceof Re||R[Symbol.toStringTag]==="ReadableStream"&&typeof R.tee==="function"}const Qe=65535;function isomorphicDecode(R){if(R.lengthR+String.fromCharCode(pe)),"")}function readableStreamClose(R){try{R.close()}catch(R){if(!R.message.includes("Controller is already closed")){throw R}}}function isomorphicEncode(R){for(let pe=0;peObject.prototype.hasOwnProperty.call(R,pe));R.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:Ce,toUSVString:Ee,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:be,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:xe,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:ke,parseMetadata:parseMetadata}},21744:(R,pe,Ae)=>{"use strict";const{types:he}=Ae(73837);const{hasOwn:ge,toUSVString:ye}=Ae(52538);const me={};me.converters={};me.util={};me.errors={};me.errors.exception=function(R){return new TypeError(`${R.header}: ${R.message}`)};me.errors.conversionFailed=function(R){const pe=R.types.length===1?"":" one of";const Ae=`${R.argument} could not be converted to`+`${pe}: ${R.types.join(", ")}.`;return me.errors.exception({header:R.prefix,message:Ae})};me.errors.invalidArgument=function(R){return me.errors.exception({header:R.prefix,message:`"${R.value}" is an invalid ${R.type}.`})};me.brandCheck=function(R,pe,Ae=undefined){if(Ae?.strict!==false&&!(R instanceof pe)){throw new TypeError("Illegal invocation")}else{return R?.[Symbol.toStringTag]===pe.prototype[Symbol.toStringTag]}};me.argumentLengthCheck=function({length:R},pe,Ae){if(Rge){throw me.errors.exception({header:"Integer conversion",message:`Value must be between ${ye}-${ge}, got ${ve}.`})}return ve}if(!Number.isNaN(ve)&&he.clamp===true){ve=Math.min(Math.max(ve,ye),ge);if(Math.floor(ve)%2===0){ve=Math.floor(ve)}else{ve=Math.ceil(ve)}return ve}if(Number.isNaN(ve)||ve===0&&Object.is(0,ve)||ve===Number.POSITIVE_INFINITY||ve===Number.NEGATIVE_INFINITY){return 0}ve=me.util.IntegerPart(ve);ve=ve%Math.pow(2,pe);if(Ae==="signed"&&ve>=Math.pow(2,pe)-1){return ve-Math.pow(2,pe)}return ve};me.util.IntegerPart=function(R){const pe=Math.floor(Math.abs(R));if(R<0){return-1*pe}return pe};me.sequenceConverter=function(R){return pe=>{if(me.util.Type(pe)!=="Object"){throw me.errors.exception({header:"Sequence",message:`Value of type ${me.util.Type(pe)} is not an Object.`})}const Ae=pe?.[Symbol.iterator]?.();const he=[];if(Ae===undefined||typeof Ae.next!=="function"){throw me.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:pe,value:ge}=Ae.next();if(pe){break}he.push(R(ge))}return he}};me.recordConverter=function(R,pe){return Ae=>{if(me.util.Type(Ae)!=="Object"){throw me.errors.exception({header:"Record",message:`Value of type ${me.util.Type(Ae)} is not an Object.`})}const ge={};if(!he.isProxy(Ae)){const he=Object.keys(Ae);for(const ye of he){const he=R(ye);const me=pe(Ae[ye]);ge[he]=me}return ge}const ye=Reflect.ownKeys(Ae);for(const he of ye){const ye=Reflect.getOwnPropertyDescriptor(Ae,he);if(ye?.enumerable){const ye=R(he);const me=pe(Ae[he]);ge[ye]=me}}return ge}};me.interfaceConverter=function(R){return(pe,Ae={})=>{if(Ae.strict!==false&&!(pe instanceof R)){throw me.errors.exception({header:R.name,message:`Expected ${pe} to be an instance of ${R.name}.`})}return pe}};me.dictionaryConverter=function(R){return pe=>{const Ae=me.util.Type(pe);const he={};if(Ae==="Null"||Ae==="Undefined"){return he}else if(Ae!=="Object"){throw me.errors.exception({header:"Dictionary",message:`Expected ${pe} to be one of: Null, Undefined, Object.`})}for(const Ae of R){const{key:R,defaultValue:ye,required:ve,converter:be}=Ae;if(ve===true){if(!ge(pe,R)){throw me.errors.exception({header:"Dictionary",message:`Missing required key "${R}".`})}}let Ee=pe[R];const Ce=ge(Ae,"defaultValue");if(Ce&&Ee!==null){Ee=Ee??ye}if(ve||Ce||Ee!==undefined){Ee=be(Ee);if(Ae.allowedValues&&!Ae.allowedValues.includes(Ee)){throw me.errors.exception({header:"Dictionary",message:`${Ee} is not an accepted type. Expected one of ${Ae.allowedValues.join(", ")}.`})}he[R]=Ee}}return he}};me.nullableConverter=function(R){return pe=>{if(pe===null){return pe}return R(pe)}};me.converters.DOMString=function(R,pe={}){if(R===null&&pe.legacyNullToEmptyString){return""}if(typeof R==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(R)};me.converters.ByteString=function(R){const pe=me.converters.DOMString(R);for(let R=0;R255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${R} has a value of ${pe.charCodeAt(R)} which is greater than 255.`)}}return pe};me.converters.USVString=ye;me.converters.boolean=function(R){const pe=Boolean(R);return pe};me.converters.any=function(R){return R};me.converters["long long"]=function(R){const pe=me.util.ConvertToInt(R,64,"signed");return pe};me.converters["unsigned long long"]=function(R){const pe=me.util.ConvertToInt(R,64,"unsigned");return pe};me.converters["unsigned long"]=function(R){const pe=me.util.ConvertToInt(R,32,"unsigned");return pe};me.converters["unsigned short"]=function(R,pe){const Ae=me.util.ConvertToInt(R,16,"unsigned",pe);return Ae};me.converters.ArrayBuffer=function(R,pe={}){if(me.util.Type(R)!=="Object"||!he.isAnyArrayBuffer(R)){throw me.errors.conversionFailed({prefix:`${R}`,argument:`${R}`,types:["ArrayBuffer"]})}if(pe.allowShared===false&&he.isSharedArrayBuffer(R)){throw me.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return R};me.converters.TypedArray=function(R,pe,Ae={}){if(me.util.Type(R)!=="Object"||!he.isTypedArray(R)||R.constructor.name!==pe.name){throw me.errors.conversionFailed({prefix:`${pe.name}`,argument:`${R}`,types:[pe.name]})}if(Ae.allowShared===false&&he.isSharedArrayBuffer(R.buffer)){throw me.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return R};me.converters.DataView=function(R,pe={}){if(me.util.Type(R)!=="Object"||!he.isDataView(R)){throw me.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(pe.allowShared===false&&he.isSharedArrayBuffer(R.buffer)){throw me.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return R};me.converters.BufferSource=function(R,pe={}){if(he.isAnyArrayBuffer(R)){return me.converters.ArrayBuffer(R,pe)}if(he.isTypedArray(R)){return me.converters.TypedArray(R,R.constructor)}if(he.isDataView(R)){return me.converters.DataView(R,pe)}throw new TypeError(`Could not convert ${R} to a BufferSource.`)};me.converters["sequence"]=me.sequenceConverter(me.converters.ByteString);me.converters["sequence>"]=me.sequenceConverter(me.converters["sequence"]);me.converters["record"]=me.recordConverter(me.converters.ByteString,me.converters.ByteString);R.exports={webidl:me}},84854:R=>{"use strict";function getEncoding(R){if(!R){return"failure"}switch(R.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"}}R.exports={getEncoding:getEncoding}},1446:(R,pe,Ae)=>{"use strict";const{staticPropertyDescriptors:he,readOperation:ge,fireAProgressEvent:ye}=Ae(87530);const{kState:me,kError:ve,kResult:be,kEvents:Ee,kAborted:Ce}=Ae(29054);const{webidl:we}=Ae(21744);const{kEnumerableProperty:_e}=Ae(83983);class FileReader extends EventTarget{constructor(){super();this[me]="empty";this[be]=null;this[ve]=null;this[Ee]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(R){we.brandCheck(this,FileReader);we.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});R=we.converters.Blob(R,{strict:false});ge(this,R,"ArrayBuffer")}readAsBinaryString(R){we.brandCheck(this,FileReader);we.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});R=we.converters.Blob(R,{strict:false});ge(this,R,"BinaryString")}readAsText(R,pe=undefined){we.brandCheck(this,FileReader);we.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});R=we.converters.Blob(R,{strict:false});if(pe!==undefined){pe=we.converters.DOMString(pe)}ge(this,R,"Text",pe)}readAsDataURL(R){we.brandCheck(this,FileReader);we.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});R=we.converters.Blob(R,{strict:false});ge(this,R,"DataURL")}abort(){if(this[me]==="empty"||this[me]==="done"){this[be]=null;return}if(this[me]==="loading"){this[me]="done";this[be]=null}this[Ce]=true;ye("abort",this);if(this[me]!=="loading"){ye("loadend",this)}}get readyState(){we.brandCheck(this,FileReader);switch(this[me]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){we.brandCheck(this,FileReader);return this[be]}get error(){we.brandCheck(this,FileReader);return this[ve]}get onloadend(){we.brandCheck(this,FileReader);return this[Ee].loadend}set onloadend(R){we.brandCheck(this,FileReader);if(this[Ee].loadend){this.removeEventListener("loadend",this[Ee].loadend)}if(typeof R==="function"){this[Ee].loadend=R;this.addEventListener("loadend",R)}else{this[Ee].loadend=null}}get onerror(){we.brandCheck(this,FileReader);return this[Ee].error}set onerror(R){we.brandCheck(this,FileReader);if(this[Ee].error){this.removeEventListener("error",this[Ee].error)}if(typeof R==="function"){this[Ee].error=R;this.addEventListener("error",R)}else{this[Ee].error=null}}get onloadstart(){we.brandCheck(this,FileReader);return this[Ee].loadstart}set onloadstart(R){we.brandCheck(this,FileReader);if(this[Ee].loadstart){this.removeEventListener("loadstart",this[Ee].loadstart)}if(typeof R==="function"){this[Ee].loadstart=R;this.addEventListener("loadstart",R)}else{this[Ee].loadstart=null}}get onprogress(){we.brandCheck(this,FileReader);return this[Ee].progress}set onprogress(R){we.brandCheck(this,FileReader);if(this[Ee].progress){this.removeEventListener("progress",this[Ee].progress)}if(typeof R==="function"){this[Ee].progress=R;this.addEventListener("progress",R)}else{this[Ee].progress=null}}get onload(){we.brandCheck(this,FileReader);return this[Ee].load}set onload(R){we.brandCheck(this,FileReader);if(this[Ee].load){this.removeEventListener("load",this[Ee].load)}if(typeof R==="function"){this[Ee].load=R;this.addEventListener("load",R)}else{this[Ee].load=null}}get onabort(){we.brandCheck(this,FileReader);return this[Ee].abort}set onabort(R){we.brandCheck(this,FileReader);if(this[Ee].abort){this.removeEventListener("abort",this[Ee].abort)}if(typeof R==="function"){this[Ee].abort=R;this.addEventListener("abort",R)}else{this[Ee].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:he,LOADING:he,DONE:he,readAsArrayBuffer:_e,readAsBinaryString:_e,readAsText:_e,readAsDataURL:_e,abort:_e,readyState:_e,result:_e,error:_e,onloadstart:_e,onprogress:_e,onload:_e,onabort:_e,onerror:_e,onloadend:_e,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:he,LOADING:he,DONE:he});R.exports={FileReader:FileReader}},55504:(R,pe,Ae)=>{"use strict";const{webidl:he}=Ae(21744);const ge=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(R,pe={}){R=he.converters.DOMString(R);pe=he.converters.ProgressEventInit(pe??{});super(R,pe);this[ge]={lengthComputable:pe.lengthComputable,loaded:pe.loaded,total:pe.total}}get lengthComputable(){he.brandCheck(this,ProgressEvent);return this[ge].lengthComputable}get loaded(){he.brandCheck(this,ProgressEvent);return this[ge].loaded}get total(){he.brandCheck(this,ProgressEvent);return this[ge].total}}he.converters.ProgressEventInit=he.dictionaryConverter([{key:"lengthComputable",converter:he.converters.boolean,defaultValue:false},{key:"loaded",converter:he.converters["unsigned long long"],defaultValue:0},{key:"total",converter:he.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:he.converters.boolean,defaultValue:false},{key:"cancelable",converter:he.converters.boolean,defaultValue:false},{key:"composed",converter:he.converters.boolean,defaultValue:false}]);R.exports={ProgressEvent:ProgressEvent}},29054:R=>{"use strict";R.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")}},87530:(R,pe,Ae)=>{"use strict";const{kState:he,kError:ge,kResult:ye,kAborted:me,kLastProgressEventFired:ve}=Ae(29054);const{ProgressEvent:be}=Ae(55504);const{getEncoding:Ee}=Ae(84854);const{DOMException:Ce}=Ae(41037);const{serializeAMimeType:we,parseMIMEType:_e}=Ae(685);const{types:Ie}=Ae(73837);const{StringDecoder:Se}=Ae(71576);const{btoa:Be}=Ae(14300);const ke={enumerable:true,writable:false,configurable:false};function readOperation(R,pe,Ae,be){if(R[he]==="loading"){throw new Ce("Invalid state","InvalidStateError")}R[he]="loading";R[ye]=null;R[ge]=null;const Ee=pe.stream();const we=Ee.getReader();const _e=[];let Se=we.read();let Be=true;(async()=>{while(!R[me]){try{const{done:Ee,value:Ce}=await Se;if(Be&&!R[me]){queueMicrotask((()=>{fireAProgressEvent("loadstart",R)}))}Be=false;if(!Ee&&Ie.isUint8Array(Ce)){_e.push(Ce);if((R[ve]===undefined||Date.now()-R[ve]>=50)&&!R[me]){R[ve]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",R)}))}Se=we.read()}else if(Ee){queueMicrotask((()=>{R[he]="done";try{const he=packageData(_e,Ae,pe.type,be);if(R[me]){return}R[ye]=he;fireAProgressEvent("load",R)}catch(pe){R[ge]=pe;fireAProgressEvent("error",R)}if(R[he]!=="loading"){fireAProgressEvent("loadend",R)}}));break}}catch(pe){if(R[me]){return}queueMicrotask((()=>{R[he]="done";R[ge]=pe;fireAProgressEvent("error",R);if(R[he]!=="loading"){fireAProgressEvent("loadend",R)}}));break}}})()}function fireAProgressEvent(R,pe){const Ae=new be(R,{bubbles:false,cancelable:false});pe.dispatchEvent(Ae)}function packageData(R,pe,Ae,he){switch(pe){case"DataURL":{let pe="data:";const he=_e(Ae||"application/octet-stream");if(he!=="failure"){pe+=we(he)}pe+=";base64,";const ge=new Se("latin1");for(const Ae of R){pe+=Be(ge.write(Ae))}pe+=Be(ge.end());return pe}case"Text":{let pe="failure";if(he){pe=Ee(he)}if(pe==="failure"&&Ae){const R=_e(Ae);if(R!=="failure"){pe=Ee(R.parameters.get("charset"))}}if(pe==="failure"){pe="UTF-8"}return decode(R,pe)}case"ArrayBuffer":{const pe=combineByteSequences(R);return pe.buffer}case"BinaryString":{let pe="";const Ae=new Se("latin1");for(const he of R){pe+=Ae.write(he)}pe+=Ae.end();return pe}}}function decode(R,pe){const Ae=combineByteSequences(R);const he=BOMSniffing(Ae);let ge=0;if(he!==null){pe=he;ge=he==="UTF-8"?3:2}const ye=Ae.slice(ge);return new TextDecoder(pe).decode(ye)}function BOMSniffing(R){const[pe,Ae,he]=R;if(pe===239&&Ae===187&&he===191){return"UTF-8"}else if(pe===254&&Ae===255){return"UTF-16BE"}else if(pe===255&&Ae===254){return"UTF-16LE"}return null}function combineByteSequences(R){const pe=R.reduce(((R,pe)=>R+pe.byteLength),0);let Ae=0;return R.reduce(((R,pe)=>{R.set(pe,Ae);Ae+=pe.byteLength;return R}),new Uint8Array(pe))}R.exports={staticPropertyDescriptors:ke,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},21892:(R,pe,Ae)=>{"use strict";const he=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:ge}=Ae(48045);const ye=Ae(7890);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new ye)}function setGlobalDispatcher(R){if(!R||typeof R.dispatch!=="function"){throw new ge("Argument agent must implement Agent")}Object.defineProperty(globalThis,he,{value:R,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[he]}R.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},46930:R=>{"use strict";R.exports=class DecoratorHandler{constructor(R){this.handler=R}onConnect(...R){return this.handler.onConnect(...R)}onError(...R){return this.handler.onError(...R)}onUpgrade(...R){return this.handler.onUpgrade(...R)}onHeaders(...R){return this.handler.onHeaders(...R)}onData(...R){return this.handler.onData(...R)}onComplete(...R){return this.handler.onComplete(...R)}onBodySent(...R){return this.handler.onBodySent(...R)}}},72860:(R,pe,Ae)=>{"use strict";const he=Ae(83983);const{kBodyUsed:ge}=Ae(72785);const ye=Ae(39491);const{InvalidArgumentError:me}=Ae(48045);const ve=Ae(82361);const be=[300,301,302,303,307,308];const Ee=Symbol("body");class BodyAsyncIterable{constructor(R){this[Ee]=R;this[ge]=false}async*[Symbol.asyncIterator](){ye(!this[ge],"disturbed");this[ge]=true;yield*this[Ee]}}class RedirectHandler{constructor(R,pe,Ae,be){if(pe!=null&&(!Number.isInteger(pe)||pe<0)){throw new me("maxRedirections must be a positive number")}he.validateHandler(be,Ae.method,Ae.upgrade);this.dispatch=R;this.location=null;this.abort=null;this.opts={...Ae,maxRedirections:0};this.maxRedirections=pe;this.handler=be;this.history=[];if(he.isStream(this.opts.body)){if(he.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){ye(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[ge]=false;ve.prototype.on.call(this.opts.body,"data",(function(){this[ge]=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)&&he.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(R){this.abort=R;this.handler.onConnect(R,{history:this.history})}onUpgrade(R,pe,Ae){this.handler.onUpgrade(R,pe,Ae)}onError(R){this.handler.onError(R)}onHeaders(R,pe,Ae,ge){this.location=this.history.length>=this.maxRedirections||he.isDisturbed(this.opts.body)?null:parseLocation(R,pe);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(R,pe,Ae,ge)}const{origin:ye,pathname:me,search:ve}=he.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const be=ve?`${me}${ve}`:me;this.opts.headers=cleanRequestHeaders(this.opts.headers,R===303,this.opts.origin!==ye);this.opts.path=be;this.opts.origin=ye;this.opts.maxRedirections=0;this.opts.query=null;if(R===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(R){if(this.location){}else{return this.handler.onData(R)}}onComplete(R){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(R)}}onBodySent(R){if(this.handler.onBodySent){this.handler.onBodySent(R)}}}function parseLocation(R,pe){if(be.indexOf(R)===-1){return null}for(let R=0;R{const he=Ae(39491);const{kRetryHandlerDefaultRetry:ge}=Ae(72785);const{RequestRetryError:ye}=Ae(48045);const{isDisturbed:me,parseHeaders:ve,parseRangeHeader:be}=Ae(83983);function calculateRetryAfterHeader(R){const pe=Date.now();const Ae=new Date(R).getTime()-pe;return Ae}class RetryHandler{constructor(R,pe){const{retryOptions:Ae,...he}=R;const{retry:ye,maxRetries:me,maxTimeout:ve,minTimeout:be,timeoutFactor:Ee,methods:Ce,errorCodes:we,retryAfter:_e,statusCodes:Ie}=Ae??{};this.dispatch=pe.dispatch;this.handler=pe.handler;this.opts=he;this.abort=null;this.aborted=false;this.retryOpts={retry:ye??RetryHandler[ge],retryAfter:_e??true,maxTimeout:ve??30*1e3,timeout:be??500,timeoutFactor:Ee??2,maxRetries:me??5,methods:Ce??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:Ie??[500,502,503,504,429],errorCodes:we??["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((R=>{this.aborted=true;if(this.abort){this.abort(R)}else{this.reason=R}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(R,pe,Ae){if(this.handler.onUpgrade){this.handler.onUpgrade(R,pe,Ae)}}onConnect(R){if(this.aborted){R(this.reason)}else{this.abort=R}}onBodySent(R){if(this.handler.onBodySent)return this.handler.onBodySent(R)}static[ge](R,{state:pe,opts:Ae},he){const{statusCode:ge,code:ye,headers:me}=R;const{method:ve,retryOptions:be}=Ae;const{maxRetries:Ee,timeout:Ce,maxTimeout:we,timeoutFactor:_e,statusCodes:Ie,errorCodes:Se,methods:Be}=be;let{counter:ke,currentTimeout:Oe}=pe;Oe=Oe!=null&&Oe>0?Oe:Ce;if(ye&&ye!=="UND_ERR_REQ_RETRY"&&ye!=="UND_ERR_SOCKET"&&!Se.includes(ye)){he(R);return}if(Array.isArray(Be)&&!Be.includes(ve)){he(R);return}if(ge!=null&&Array.isArray(Ie)&&!Ie.includes(ge)){he(R);return}if(ke>Ee){he(R);return}let Re=me!=null&&me["retry-after"];if(Re){Re=Number(Re);Re=isNaN(Re)?calculateRetryAfterHeader(Re):Re*1e3}const Qe=Re>0?Math.min(Re,we):Math.min(Oe*_e**ke,we);pe.currentTimeout=Qe;setTimeout((()=>he(null)),Qe)}onHeaders(R,pe,Ae,ge){const me=ve(pe);this.retryCount+=1;if(R>=300){this.abort(new ye("Request failed",R,{headers:me,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(R!==206){return true}const pe=be(me["content-range"]);if(!pe){this.abort(new ye("Content-Range mismatch",R,{headers:me,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==me.etag){this.abort(new ye("ETag mismatch",R,{headers:me,count:this.retryCount}));return false}const{start:ge,size:ve,end:Ee=ve}=pe;he(this.start===ge,"content-range mismatch");he(this.end==null||this.end===Ee,"content-range mismatch");this.resume=Ae;return true}if(this.end==null){if(R===206){const ye=be(me["content-range"]);if(ye==null){return this.handler.onHeaders(R,pe,Ae,ge)}const{start:ve,size:Ee,end:Ce=Ee}=ye;he(ve!=null&&Number.isFinite(ve)&&this.start!==ve,"content-range mismatch");he(Number.isFinite(ve));he(Ce!=null&&Number.isFinite(Ce)&&this.end!==Ce,"invalid content-length");this.start=ve;this.end=Ce}if(this.end==null){const R=me["content-length"];this.end=R!=null?Number(R):null}he(Number.isFinite(this.start));he(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=Ae;this.etag=me.etag!=null?me.etag:null;return this.handler.onHeaders(R,pe,Ae,ge)}const Ee=new ye("Request failed",R,{headers:me,count:this.retryCount});this.abort(Ee);return false}onData(R){this.start+=R.length;return this.handler.onData(R)}onComplete(R){this.retryCount=0;return this.handler.onComplete(R)}onError(R){if(this.aborted||me(this.opts.body)){return this.handler.onError(R)}this.retryOpts.retry(R,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(R){if(R!=null||this.aborted||me(this.opts.body)){return this.handler.onError(R)}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(R){this.handler.onError(R)}}}}R.exports=RetryHandler},38861:(R,pe,Ae)=>{"use strict";const he=Ae(72860);function createRedirectInterceptor({maxRedirections:R}){return pe=>function Intercept(Ae,ge){const{maxRedirections:ye=R}=Ae;if(!ye){return pe(Ae,ge)}const me=new he(pe,ye,Ae,ge);Ae={...Ae,maxRedirections:0};return pe(Ae,me)}}R.exports=createRedirectInterceptor},30953:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SPECIAL_HEADERS=pe.HEADER_STATE=pe.MINOR=pe.MAJOR=pe.CONNECTION_TOKEN_CHARS=pe.HEADER_CHARS=pe.TOKEN=pe.STRICT_TOKEN=pe.HEX=pe.URL_CHAR=pe.STRICT_URL_CHAR=pe.USERINFO_CHARS=pe.MARK=pe.ALPHANUM=pe.NUM=pe.HEX_MAP=pe.NUM_MAP=pe.ALPHA=pe.FINISH=pe.H_METHOD_MAP=pe.METHOD_MAP=pe.METHODS_RTSP=pe.METHODS_ICE=pe.METHODS_HTTP=pe.METHODS=pe.LENIENT_FLAGS=pe.FLAGS=pe.TYPE=pe.ERROR=void 0;const he=Ae(41891);var ge;(function(R){R[R["OK"]=0]="OK";R[R["INTERNAL"]=1]="INTERNAL";R[R["STRICT"]=2]="STRICT";R[R["LF_EXPECTED"]=3]="LF_EXPECTED";R[R["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";R[R["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";R[R["INVALID_METHOD"]=6]="INVALID_METHOD";R[R["INVALID_URL"]=7]="INVALID_URL";R[R["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";R[R["INVALID_VERSION"]=9]="INVALID_VERSION";R[R["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";R[R["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";R[R["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";R[R["INVALID_STATUS"]=13]="INVALID_STATUS";R[R["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";R[R["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";R[R["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";R[R["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";R[R["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";R[R["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";R[R["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";R[R["PAUSED"]=21]="PAUSED";R[R["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";R[R["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";R[R["USER"]=24]="USER"})(ge=pe.ERROR||(pe.ERROR={}));var ye;(function(R){R[R["BOTH"]=0]="BOTH";R[R["REQUEST"]=1]="REQUEST";R[R["RESPONSE"]=2]="RESPONSE"})(ye=pe.TYPE||(pe.TYPE={}));var me;(function(R){R[R["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";R[R["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";R[R["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";R[R["CHUNKED"]=8]="CHUNKED";R[R["UPGRADE"]=16]="UPGRADE";R[R["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";R[R["SKIPBODY"]=64]="SKIPBODY";R[R["TRAILING"]=128]="TRAILING";R[R["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(me=pe.FLAGS||(pe.FLAGS={}));var ve;(function(R){R[R["HEADERS"]=1]="HEADERS";R[R["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";R[R["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(ve=pe.LENIENT_FLAGS||(pe.LENIENT_FLAGS={}));var be;(function(R){R[R["DELETE"]=0]="DELETE";R[R["GET"]=1]="GET";R[R["HEAD"]=2]="HEAD";R[R["POST"]=3]="POST";R[R["PUT"]=4]="PUT";R[R["CONNECT"]=5]="CONNECT";R[R["OPTIONS"]=6]="OPTIONS";R[R["TRACE"]=7]="TRACE";R[R["COPY"]=8]="COPY";R[R["LOCK"]=9]="LOCK";R[R["MKCOL"]=10]="MKCOL";R[R["MOVE"]=11]="MOVE";R[R["PROPFIND"]=12]="PROPFIND";R[R["PROPPATCH"]=13]="PROPPATCH";R[R["SEARCH"]=14]="SEARCH";R[R["UNLOCK"]=15]="UNLOCK";R[R["BIND"]=16]="BIND";R[R["REBIND"]=17]="REBIND";R[R["UNBIND"]=18]="UNBIND";R[R["ACL"]=19]="ACL";R[R["REPORT"]=20]="REPORT";R[R["MKACTIVITY"]=21]="MKACTIVITY";R[R["CHECKOUT"]=22]="CHECKOUT";R[R["MERGE"]=23]="MERGE";R[R["M-SEARCH"]=24]="M-SEARCH";R[R["NOTIFY"]=25]="NOTIFY";R[R["SUBSCRIBE"]=26]="SUBSCRIBE";R[R["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";R[R["PATCH"]=28]="PATCH";R[R["PURGE"]=29]="PURGE";R[R["MKCALENDAR"]=30]="MKCALENDAR";R[R["LINK"]=31]="LINK";R[R["UNLINK"]=32]="UNLINK";R[R["SOURCE"]=33]="SOURCE";R[R["PRI"]=34]="PRI";R[R["DESCRIBE"]=35]="DESCRIBE";R[R["ANNOUNCE"]=36]="ANNOUNCE";R[R["SETUP"]=37]="SETUP";R[R["PLAY"]=38]="PLAY";R[R["PAUSE"]=39]="PAUSE";R[R["TEARDOWN"]=40]="TEARDOWN";R[R["GET_PARAMETER"]=41]="GET_PARAMETER";R[R["SET_PARAMETER"]=42]="SET_PARAMETER";R[R["REDIRECT"]=43]="REDIRECT";R[R["RECORD"]=44]="RECORD";R[R["FLUSH"]=45]="FLUSH"})(be=pe.METHODS||(pe.METHODS={}));pe.METHODS_HTTP=[be.DELETE,be.GET,be.HEAD,be.POST,be.PUT,be.CONNECT,be.OPTIONS,be.TRACE,be.COPY,be.LOCK,be.MKCOL,be.MOVE,be.PROPFIND,be.PROPPATCH,be.SEARCH,be.UNLOCK,be.BIND,be.REBIND,be.UNBIND,be.ACL,be.REPORT,be.MKACTIVITY,be.CHECKOUT,be.MERGE,be["M-SEARCH"],be.NOTIFY,be.SUBSCRIBE,be.UNSUBSCRIBE,be.PATCH,be.PURGE,be.MKCALENDAR,be.LINK,be.UNLINK,be.PRI,be.SOURCE];pe.METHODS_ICE=[be.SOURCE];pe.METHODS_RTSP=[be.OPTIONS,be.DESCRIBE,be.ANNOUNCE,be.SETUP,be.PLAY,be.PAUSE,be.TEARDOWN,be.GET_PARAMETER,be.SET_PARAMETER,be.REDIRECT,be.RECORD,be.FLUSH,be.GET,be.POST];pe.METHOD_MAP=he.enumToMap(be);pe.H_METHOD_MAP={};Object.keys(pe.METHOD_MAP).forEach((R=>{if(/^H/.test(R)){pe.H_METHOD_MAP[R]=pe.METHOD_MAP[R]}}));var Ee;(function(R){R[R["SAFE"]=0]="SAFE";R[R["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";R[R["UNSAFE"]=2]="UNSAFE"})(Ee=pe.FINISH||(pe.FINISH={}));pe.ALPHA=[];for(let R="A".charCodeAt(0);R<="Z".charCodeAt(0);R++){pe.ALPHA.push(String.fromCharCode(R));pe.ALPHA.push(String.fromCharCode(R+32))}pe.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};pe.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};pe.NUM=["0","1","2","3","4","5","6","7","8","9"];pe.ALPHANUM=pe.ALPHA.concat(pe.NUM);pe.MARK=["-","_",".","!","~","*","'","(",")"];pe.USERINFO_CHARS=pe.ALPHANUM.concat(pe.MARK).concat(["%",";",":","&","=","+","$",","]);pe.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(pe.ALPHANUM);pe.URL_CHAR=pe.STRICT_URL_CHAR.concat(["\t","\f"]);for(let R=128;R<=255;R++){pe.URL_CHAR.push(R)}pe.HEX=pe.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);pe.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(pe.ALPHANUM);pe.TOKEN=pe.STRICT_TOKEN.concat([" "]);pe.HEADER_CHARS=["\t"];for(let R=32;R<=255;R++){if(R!==127){pe.HEADER_CHARS.push(R)}}pe.CONNECTION_TOKEN_CHARS=pe.HEADER_CHARS.filter((R=>R!==44));pe.MAJOR=pe.NUM_MAP;pe.MINOR=pe.MAJOR;var Ce;(function(R){R[R["GENERAL"]=0]="GENERAL";R[R["CONNECTION"]=1]="CONNECTION";R[R["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";R[R["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";R[R["UPGRADE"]=4]="UPGRADE";R[R["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";R[R["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";R[R["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";R[R["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(Ce=pe.HEADER_STATE||(pe.HEADER_STATE={}));pe.SPECIAL_HEADERS={connection:Ce.CONNECTION,"content-length":Ce.CONTENT_LENGTH,"proxy-connection":Ce.CONNECTION,"transfer-encoding":Ce.TRANSFER_ENCODING,upgrade:Ce.UPGRADE}},61145:R=>{R.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ2V0X3VwZ3JhZGUAEwxsbGh0dHBfcmVzZXQAFA5sbGh0dHBfZXhlY3V0ZQAVFGxsaHR0cF9zZXR0aW5nc19pbml0ABYNbGxodHRwX2ZpbmlzaAAXDGxsaHR0cF9wYXVzZQAYDWxsaHR0cF9yZXN1bWUAGRtsbGh0dHBfcmVzdW1lX2FmdGVyX3VwZ3JhZGUAGhBsbGh0dHBfZ2V0X2Vycm5vABsXbGxodHRwX2dldF9lcnJvcl9yZWFzb24AHBdsbGh0dHBfc2V0X2Vycm9yX3JlYXNvbgAdFGxsaHR0cF9nZXRfZXJyb3JfcG9zAB4RbGxodHRwX2Vycm5vX25hbWUAHxJsbGh0dHBfbWV0aG9kX25hbWUAIBJs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ADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4ABgQGCAYMBhAGFAYYBhwGIAYkB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QAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxweHyAhIyUoP0BBREVGR0hJSktMTU9QUVJT3gNXWVtcXWBiZWZnaGlqa2xtb3BxcnN0dXZ3eHl6e3x9foABggGFAYYBhwGJAYsBjAGNAY4BjwGQAZEBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBuAG5AboBuwG8Ab0BvgG/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/wFxQQpPDQAgACAQOgAqIAFBAWohAUHPACEQDKIBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQrYCAgAAiBA0AIAEhAQynAQsgAEHeADYCHCAAIAE2AhQgACAENgIMQQAhEAy6AQsgAEEANgIAIBdBAWohAQJAIAAtAClBI08NACABIQEMWQsgAEEANgIcIAAgATYCFCAAQdOJgIAANgIQIABBCDYCDEEAIRAMuQELIABBADYCAAtBACEQIABBADYCHCAAIAE2AhQgAEGQs4CAADYCECAAQQg2AgwMtwELIABBADYCACAXQQFqIQECQCAALQApQSFHDQAgASEBDFYLIABBADYCHCAAIAE2AhQgAEGbioCAADYCECAAQQg2AgxBACEQDLYBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKSIQQV1qQQtPDQAgASEBDFULAkAgEEEGSw0AQQEgEHRBygBxRQ0AIAEhAQxVC0EAIRAgAEEANgIcIAAgATYCFCAAQfeJgIAANgIQIABBCDYCDAy1AQsgEEEVRg1xIABBADYCHCAAIAE2AhQgAEG5jYCAADYCECAAQRo2AgxBACEQDLQBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxUCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLMBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDLIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAU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YWdlX2JlZ2luYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlYCBjYWxsYmFjayBlcnJvcgBgb25fc3RhdHVzX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdmVyc2lvbl9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3VybF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX3ZhbHVlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21ldGhvZF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl9maWVsZF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lYCBjYWxsYmFjayBlcnJvcgBVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNlcnZlcgBJbnZhbGlkIGhlYWRlciB2YWx1ZSBjaGFyAEludmFsaWQgaGVhZGVyIGZpZWxkIGNoYXIAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl92ZXJzaW9uAEludmFsaWQgbWlub3IgdmVyc2lvbgBJbnZhbGlkIG1ham9yIHZlcnNpb24ARXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgdmVyc2lvbgBFeHBlY3RlZCBDUkxGIGFmdGVyIHZlcnNpb24ASW52YWxpZCBIVFRQIHZlcnNpb24ASW52YWxpZCBoZWFkZXIgdG9rZW4AU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl91cmwASW52YWxpZCBjaGFyYWN0ZXJzIGluIHVybABVbmV4cGVjdGVkIHN0YXJ0IGNoYXIgaW4gdXJsAERvdWJsZSBAIGluIHVybABFbXB0eSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXJhY3RlciBpbiBDb250ZW50LUxlbmd0aABEdXBsaWNhdGUgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyIGluIHVybCBwYXRoAENvbnRlbnQtTGVuZ3RoIGNhbid0IGJlIHByZXNlbnQgd2l0aCBUcmFuc2Zlci1FbmNvZGluZwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBzaXplAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25faGVhZGVyX3ZhbHVlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgdmFsdWUATWlzc2luZyBleHBlY3RlZCBMRiBhZnRlciBoZWFkZXIgdmFsdWUASW52YWxpZCBgVHJhbnNmZXItRW5jb2RpbmdgIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGVkIHZhbHVlAFBhdXNlZCBieSBvbl9oZWFkZXJzX2NvbXBsZXRlAEludmFsaWQgRU9GIHN0YXRlAG9uX3Jlc2V0IHBhdXNlAG9uX2NodW5rX2hlYWRlciBwYXVzZQBvbl9tZXNzYWdlX2JlZ2luIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZSBwYXVzZQBvbl9zdGF0dXNfY29tcGxldGUgcGF1c2UAb25fdmVyc2lvbl9jb21wbGV0ZSBwYXVzZQBvbl91cmxfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX3ZhbHVlX2NvbXBsZXRlIHBhdXNlAG9uX21lc3NhZ2VfY29tcGxldGUgcGF1c2UAb25fbWV0aG9kX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl9maWVsZF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fbmFtZSBwYXVzZQBVbmV4cGVjdGVkIHNwYWNlIGFmdGVyIHN0YXJ0IGxpbmUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fbmFtZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIG5hbWUAUGF1c2Ugb24gQ09OTkVDVC9VcGdyYWRlAFBhdXNlIG9uIFBSSS9VcGdyYWRlAEV4cGVjdGVkIEhUVFAvMiBDb25uZWN0aW9uIFByZWZhY2UAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9tZXRob2QARXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgbWV0aG9kAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25faGVhZGVyX2ZpZWxkAFBhdXNlZABJbnZhbGlkIHdvcmQgZW5jb3VudGVyZWQASW52YWxpZCBtZXRob2QgZW5jb3VudGVyZWQAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzY2hlbWEAUmVxdWVzdCBoYXMgaW52YWxpZCBgVHJhbnNmZXItRW5jb2RpbmdgAFNXSVRDSF9QUk9YWQBVU0VfUFJPWFkATUtBQ1RJVklUWQBVTlBST0NFU1NBQkxFX0VOVElUWQBDT1BZAE1PVkVEX1BFUk1BTkVOVExZAFRPT19FQVJMWQBOT1RJRlkARkFJTEVEX0RFUEVOREVOQ1kAQkFEX0dBVEVXQVkAUExBWQBQVVQAQ0hFQ0tPVVQAR0FURVdBWV9USU1FT1VUAFJFUVVFU1RfVElNRU9VVABORVRXT1JLX0NPTk5FQ1RfVElNRU9VVABDT05ORUNUSU9OX1RJTUVPVVQATE9HSU5fVElNRU9VVABORVRXT1JLX1JFQURfVElNRU9VVABQT1NUAE1JU0RJUkVDVEVEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfTE9BRF9CQUxBTkNFRF9SRVFVRVNUAEJBRF9SRVFVRVNUAEhUVFBfUkVRVUVTVF9TRU5UX1RPX0hUVFBTX1BPUlQAUkVQT1JUAElNX0FfVEVBUE9UAFJFU0VUX0NPTlRFTlQATk9fQ09OVEVOVABQQVJUSUFMX0NPTlRFTlQASFBFX0lOVkFMSURfQ09OU1RBTlQASFBFX0NCX1JFU0VUAEdFVABIUEVfU1RSSUNUAENPTkZMSUNUAFRFTVBPUkFSWV9SRURJUkVDVABQRVJNQU5FTlRfUkVESVJFQ1QAQ09OTkVDVABNVUxUSV9TVEFUVVMASFBFX0lOVkFMSURfU1RBVFVTAFRPT19NQU5ZX1JFUVVFU1RTAEVBUkxZX0hJTlRTAFVOQVZBSUxBQkxFX0ZPUl9MRUdBTF9SRUFTT05TAE9QVElPTlMAU1dJVENISU5HX1BST1RPQ09MUwBWQVJJQU5UX0FMU09fTkVHT1RJQVRFUwBNVUxUSVBMRV9DSE9JQ0VTAElOVEVSTkFMX1NFUlZFUl9FUlJPUgBXRUJfU0VSVkVSX1VOS05PV05fRVJST1IAUkFJTEdVTl9FUlJPUgBJREVOVElUWV9QUk9WSURFUl9BVVRIRU5USUNBVElPTl9FUlJPUgBTU0xfQ0VSVElGSUNBVEVfRVJST1IASU5WQUxJRF9YX0ZPUldBUkRFRF9GT1IAU0VUX1BBUkFNRVRFUgBHRVRfUEFSQU1FVEVSAEhQRV9VU0VSAFNFRV9PVEhFUgBIUEVfQ0JfQ0hVTktfSEVBREVSAE1LQ0FMRU5EQVIAU0VUVVAAV0VCX1NFUlZFUl9JU19ET1dOAFRFQVJET1dOAEhQRV9DTE9TRURfQ09OTkVDVElPTgBIRVVSSVNUSUNfRVhQSVJBVElPTgBESVNDT05ORUNURURfT1BFUkFUSU9OAE5PTl9BVVRIT1JJVEFUSVZFX0lORk9STUFUSU9OAEhQRV9JTlZBTElEX1ZFUlNJT04ASFBFX0NCX01FU1NBR0VfQkVHSU4AU0lURV9JU19GUk9aRU4ASFBFX0lOVkFMSURfSEVBREVSX1RPS0VOAElOVkFMSURfVE9LRU4ARk9SQklEREVOAEVOSEFOQ0VfWU9VUl9DQUxNAEhQRV9JTlZBTElEX1VSTABCTE9DS0VEX0JZX1BBUkVOVEFMX0NPTlRST0wATUtDT0wAQUNMAEhQRV9JTlRFUk5BTABSRVFVRVNUX0hFQURFUl9GSUVMRFNfVE9PX0xBUkdFX1VOT0ZGSUNJQUwASFBFX09LAFVOTElOSwBVTkxPQ0sAUFJJAFJFVFJZX1dJVEgASFBFX0lOVkFMSURfQ09OVEVOVF9MRU5HVEgASFBFX1VORVhQRUNURURfQ09OVEVOVF9MRU5HVEgARkxVU0gAUFJPUFBBVENIAE0tU0VBUkNIAFVSSV9UT09fTE9ORwBQUk9DRVNTSU5HAE1JU0NFTExBTkVPVVNfUEVSU0lTVEVOVF9XQVJOSU5HAE1JU0NFTExBTkVPVVNfV0FSTklORwBIUEVfSU5WQUxJRF9UUkFOU0ZFUl9FTkNPRElORwBFeHBlY3RlZCBDUkxGAEhQRV9JTlZBTElEX0NIVU5LX1NJWkUATU9WRQBDT05USU5VRQBIUEVfQ0JfU1RBVFVTX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJTX0NPTVBMRVRFAEhQRV9DQl9WRVJTSU9OX0NPTVBMRVRFAEhQRV9DQl9VUkxfQ09NUExFVEUASFBFX0NCX0NIVU5LX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX05BTUVfQ09NUExFVEUASFBFX0NCX01FU1NBR0VfQ09NUExFVEUASFBFX0NCX01FVEhPRF9DT01QTEVURQBIUEVfQ0JfSEVBREVSX0ZJRUxEX0NPTVBMRVRFAERFTEVURQBIUEVfSU5WQUxJRF9FT0ZfU1RBVEUASU5WQUxJRF9TU0xfQ0VSVElGSUNBVEUAUEFVU0UATk9fUkVTUE9OU0UAVU5TVVBQT1JURURfTUVESUFfVFlQRQBHT05FAE5PVF9BQ0NFUFRBQkxFAFNFUlZJQ0VfVU5BVkFJTEFCTEUAUkFOR0VfTk9UX1NBVElTRklBQkxFAE9SSUdJTl9JU19VTlJFQUNIQUJMRQBSRVNQT05TRV9JU19TVEFMRQBQVVJHRQBNRVJHRQBSRVFVRVNUX0hFQURFUl9GSUVMRFNfVE9PX0xBUkdFAFJFUVVFU1RfSEVBREVSX1RPT19MQVJHRQBQQVlMT0FEX1RPT19MQVJHRQBJTlNVRkZJQ0lFTlRfU1RPUkFHRQBIUEVfUEFVU0VEX1VQR1JBREUASFBFX1BBVVNFRF9IMl9VUEdSQURFAFNPVVJDRQBBTk5PVU5DRQBUUkFDRQBIUEVfVU5FWFBFQ1RFRF9TUEFDRQBERVNDUklCRQBVTlNVQlNDUklCRQBSRUNPUkQASFBFX0lOVkFMSURfTUVUSE9EAE5PVF9GT1VORABQUk9QRklORABVTkJJTkQAUkVCSU5EAFVOQVVUSE9SSVpFRABNRVRIT0RfTk9UX0FMTE9XRUQASFRUUF9WRVJTSU9OX05PVF9TVVBQT1JURUQAQUxSRUFEWV9SRVBPUlRFRABBQ0NFUFRFRABOT1RfSU1QTEVNRU5URUQATE9PUF9ERVRFQ1RFRABIUEVfQ1JfRVhQRUNURUQASFBFX0xGX0VYUEVDVEVEAENSRUFURUQASU1fVVNFRABIUEVfUEFVU0VEAFRJTUVPVVRfT0NDVVJFRABQQVlNRU5UX1JFUVVJUkVEAFBSRUNPTkRJVElPTl9SRVFVSVJFRABQUk9YWV9BVVRIRU5USUNBVElPTl9SRVFVSVJFRABORVRXT1JLX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAExFTkdUSF9SRVFVSVJFRABTU0xfQ0VSVElGSUNBVEVfUkVRVUlSRUQAVVBHUkFERV9SRVFVSVJFRABQQUdFX0VYUElSRUQAUFJFQ09ORElUSU9OX0ZBSUxFRABFWFBFQ1RBVElPTl9GQUlMRUQAUkVWQUxJREFUSU9OX0ZBSUxFRABTU0xfSEFORFNIQUtFX0ZBSUxFRABMT0NLRUQAVFJBTlNGT1JNQVRJT05fQVBQTElFRABOT1RfTU9ESUZJRUQATk9UX0VYVEVOREVEAEJBTkRXSURUSF9MSU1JVF9FWENFRURFRABTSVRFX0lTX09WRVJMT0FERUQASEVBRABFeHBlY3RlZCBIVFRQLwAAXhMAACYTAAAwEAAA8BcAAJ0TAAAVEgAAORcAAPASAAAKEAAAdRIAAK0SAACCEwAATxQAAH8QAACgFQAAIxQAAIkSAACLFAAATRUAANQRAADPFAAAEBgAAMkWAADcFgAAwREAAOAXAAC7FAAAdBQAAHwVAADlFAAACBcAAB8QAABlFQAAoxQAACgVAAACFQAAmRUAACwQAACLGQAATw8AANQOAABqEAAAzhAAAAIXAACJDgAAbhMAABwTAABmFAAAVhcAAMETAADNEwAAbBMAAGgXAABmFwAAXxcAACITAADODwAAaQ4AANgOAABjFgAAyxMAAKoOAAAoFwAAJhcAAMUTAABdFgAA6BEAAGcTAABlEwAA8hYAAHMTAAAdFwAA+RYAAPMRAADPDgAAzhUAAAwSAACzEQAApREAAGEQAAAyFwAAuxMAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIDAgICAgIAAAICAAICAAICAgICAgICAgIABAAAAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAACAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbG9zZWVlcC1hbGl2ZQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEAAQEBAQEAAAEBAAEBAAEBAQEBAQEBAQEAAAAAAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AAAAAAAAAAAAAAAAAAAByYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AAAAAAAAAAAAAAAABAgABAwAAAAAAAAAAAAAAAAAAAAAAAAQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAQIAAQMAAAAAAAAAAAAAAAAAAAAAAAAEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAAAAQAAAgAAAAAAAAAAAAAAAAAAAAAAAAMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAIAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABOT1VOQ0VFQ0tPVVRORUNURVRFQ1JJQkVMVVNIRVRFQURTRUFSQ0hSR0VDVElWSVRZTEVOREFSVkVPVElGWVBUSU9OU0NIU0VBWVNUQVRDSEdFT1JESVJFQ1RPUlRSQ0hQQVJBTUVURVJVUkNFQlNDUklCRUFSRE9XTkFDRUlORE5LQ0tVQlNDUklCRUhUVFAvQURUUC8="},95627:R=>{R.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ2V0X3VwZ3JhZGUAEwxsbGh0dHBfcmVzZXQAFA5sbGh0dHBfZXhlY3V0ZQAVFGxsaHR0cF9zZXR0aW5nc19pbml0ABYNbGxodHRwX2ZpbmlzaAAXDGxsaHR0cF9wYXVzZQAYDWxsaHR0cF9yZXN1bWUAGRtsbGh0dHBfcmVzdW1lX2FmdGVyX3VwZ3JhZGUAGhBsbGh0dHBfZ2V0X2Vycm5vABsXbGxodHRwX2dldF9lcnJvcl9yZWFzb24AHBdsbGh0dHBfc2V0X2Vycm9yX3JlYXNvbgAdFGxsaHR0cF9nZXRfZXJyb3JfcG9zAB4RbGxodHRwX2Vycm5vX25hbWUAHxJsbGh0dHBfbWV0aG9kX25hbWUAIBJs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IAH9CwMAIABBMGogAf0LAwAgAEEgaiAB/QsDACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBExQVFhcYGRob4AHfARwdHtUBHyAhIiMkJdQBJicoKSorLNMB0gEtLtEB0AEvMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUbbAUdISUrPAc4BS80BTMwBTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEB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QAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAAQID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YWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABsb3NlZWVwLWFsaXZlAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgAAAAAAAAAAAAAAAAAAAHJhbnNmZXItZW5jb2RpbmdwZ3JhZGUNCg0KDQpTTQ0KDQpUVFAvQ0UvVFNQLwAAAAAAAAAAAAAAAAECAAEDAAAAAAAAAAAAAAAAAAAAAAAABAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAABAgABAwAAAAAAAAAAAAAAAAAAAAAAAAQBAQUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAABAAACAAAAAAAAAAAAAAAAAAAAAAAAAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},41891:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.enumToMap=void 0;function enumToMap(R){const pe={};Object.keys(R).forEach((Ae=>{const he=R[Ae];if(typeof he==="number"){pe[Ae]=he}}));return pe}pe.enumToMap=enumToMap},66771:(R,pe,Ae)=>{"use strict";const{kClients:he}=Ae(72785);const ge=Ae(7890);const{kAgent:ye,kMockAgentSet:me,kMockAgentGet:ve,kDispatches:be,kIsMockActive:Ee,kNetConnect:Ce,kGetNetConnect:we,kOptions:_e,kFactory:Ie}=Ae(24347);const Se=Ae(58687);const Be=Ae(26193);const{matchValue:ke,buildMockOptions:Oe}=Ae(79323);const{InvalidArgumentError:Re,UndiciError:Qe}=Ae(48045);const xe=Ae(60412);const Pe=Ae(78891);const Te=Ae(86823);class FakeWeakRef{constructor(R){this.value=R}deref(){return this.value}}class MockAgent extends xe{constructor(R){super(R);this[Ce]=true;this[Ee]=true;if(R&&R.agent&&typeof R.agent.dispatch!=="function"){throw new Re("Argument opts.agent must implement Agent")}const pe=R&&R.agent?R.agent:new ge(R);this[ye]=pe;this[he]=pe[he];this[_e]=Oe(R)}get(R){let pe=this[ve](R);if(!pe){pe=this[Ie](R);this[me](R,pe)}return pe}dispatch(R,pe){this.get(R.origin);return this[ye].dispatch(R,pe)}async close(){await this[ye].close();this[he].clear()}deactivate(){this[Ee]=false}activate(){this[Ee]=true}enableNetConnect(R){if(typeof R==="string"||typeof R==="function"||R instanceof RegExp){if(Array.isArray(this[Ce])){this[Ce].push(R)}else{this[Ce]=[R]}}else if(typeof R==="undefined"){this[Ce]=true}else{throw new Re("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[Ce]=false}get isMockActive(){return this[Ee]}[me](R,pe){this[he].set(R,new FakeWeakRef(pe))}[Ie](R){const pe=Object.assign({agent:this},this[_e]);return this[_e]&&this[_e].connections===1?new Se(R,pe):new Be(R,pe)}[ve](R){const pe=this[he].get(R);if(pe){return pe.deref()}if(typeof R!=="string"){const pe=this[Ie]("http://localhost:9999");this[me](R,pe);return pe}for(const[pe,Ae]of Array.from(this[he])){const he=Ae.deref();if(he&&typeof pe!=="string"&&ke(pe,R)){const pe=this[Ie](R);this[me](R,pe);pe[be]=he[be];return pe}}}[we](){return this[Ce]}pendingInterceptors(){const R=this[he];return Array.from(R.entries()).flatMap((([R,pe])=>pe.deref()[be].map((pe=>({...pe,origin:R}))))).filter((({pending:R})=>R))}assertNoPendingInterceptors({pendingInterceptorsFormatter:R=new Te}={}){const pe=this.pendingInterceptors();if(pe.length===0){return}const Ae=new Pe("interceptor","interceptors").pluralize(pe.length);throw new Qe(`\n${Ae.count} ${Ae.noun} ${Ae.is} pending:\n\n${R.format(pe)}\n`.trim())}}R.exports=MockAgent},58687:(R,pe,Ae)=>{"use strict";const{promisify:he}=Ae(73837);const ge=Ae(33598);const{buildMockDispatch:ye}=Ae(79323);const{kDispatches:me,kMockAgent:ve,kClose:be,kOriginalClose:Ee,kOrigin:Ce,kOriginalDispatch:we,kConnected:_e}=Ae(24347);const{MockInterceptor:Ie}=Ae(90410);const Se=Ae(72785);const{InvalidArgumentError:Be}=Ae(48045);class MockClient extends ge{constructor(R,pe){super(R,pe);if(!pe||!pe.agent||typeof pe.agent.dispatch!=="function"){throw new Be("Argument opts.agent must implement Agent")}this[ve]=pe.agent;this[Ce]=R;this[me]=[];this[_e]=1;this[we]=this.dispatch;this[Ee]=this.close.bind(this);this.dispatch=ye.call(this);this.close=this[be]}get[Se.kConnected](){return this[_e]}intercept(R){return new Ie(R,this[me])}async[be](){await he(this[Ee])();this[_e]=0;this[ve][Se.kClients].delete(this[Ce])}}R.exports=MockClient},50888:(R,pe,Ae)=>{"use strict";const{UndiciError:he}=Ae(48045);class MockNotMatchedError extends he{constructor(R){super(R);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=R||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}R.exports={MockNotMatchedError:MockNotMatchedError}},90410:(R,pe,Ae)=>{"use strict";const{getResponseData:he,buildKey:ge,addMockDispatch:ye}=Ae(79323);const{kDispatches:me,kDispatchKey:ve,kDefaultHeaders:be,kDefaultTrailers:Ee,kContentLength:Ce,kMockDispatch:we}=Ae(24347);const{InvalidArgumentError:_e}=Ae(48045);const{buildURL:Ie}=Ae(83983);class MockScope{constructor(R){this[we]=R}delay(R){if(typeof R!=="number"||!Number.isInteger(R)||R<=0){throw new _e("waitInMs must be a valid integer > 0")}this[we].delay=R;return this}persist(){this[we].persist=true;return this}times(R){if(typeof R!=="number"||!Number.isInteger(R)||R<=0){throw new _e("repeatTimes must be a valid integer > 0")}this[we].times=R;return this}}class MockInterceptor{constructor(R,pe){if(typeof R!=="object"){throw new _e("opts must be an object")}if(typeof R.path==="undefined"){throw new _e("opts.path must be defined")}if(typeof R.method==="undefined"){R.method="GET"}if(typeof R.path==="string"){if(R.query){R.path=Ie(R.path,R.query)}else{const pe=new URL(R.path,"data://");R.path=pe.pathname+pe.search}}if(typeof R.method==="string"){R.method=R.method.toUpperCase()}this[ve]=ge(R);this[me]=pe;this[be]={};this[Ee]={};this[Ce]=false}createMockScopeDispatchData(R,pe,Ae={}){const ge=he(pe);const ye=this[Ce]?{"content-length":ge.length}:{};const me={...this[be],...ye,...Ae.headers};const ve={...this[Ee],...Ae.trailers};return{statusCode:R,data:pe,headers:me,trailers:ve}}validateReplyParameters(R,pe,Ae){if(typeof R==="undefined"){throw new _e("statusCode must be defined")}if(typeof pe==="undefined"){throw new _e("data must be defined")}if(typeof Ae!=="object"){throw new _e("responseOptions must be an object")}}reply(R){if(typeof R==="function"){const wrappedDefaultsCallback=pe=>{const Ae=R(pe);if(typeof Ae!=="object"){throw new _e("reply options callback must return an object")}const{statusCode:he,data:ge="",responseOptions:ye={}}=Ae;this.validateReplyParameters(he,ge,ye);return{...this.createMockScopeDispatchData(he,ge,ye)}};const pe=ye(this[me],this[ve],wrappedDefaultsCallback);return new MockScope(pe)}const[pe,Ae="",he={}]=[...arguments];this.validateReplyParameters(pe,Ae,he);const ge=this.createMockScopeDispatchData(pe,Ae,he);const be=ye(this[me],this[ve],ge);return new MockScope(be)}replyWithError(R){if(typeof R==="undefined"){throw new _e("error must be defined")}const pe=ye(this[me],this[ve],{error:R});return new MockScope(pe)}defaultReplyHeaders(R){if(typeof R==="undefined"){throw new _e("headers must be defined")}this[be]=R;return this}defaultReplyTrailers(R){if(typeof R==="undefined"){throw new _e("trailers must be defined")}this[Ee]=R;return this}replyContentLength(){this[Ce]=true;return this}}R.exports.MockInterceptor=MockInterceptor;R.exports.MockScope=MockScope},26193:(R,pe,Ae)=>{"use strict";const{promisify:he}=Ae(73837);const ge=Ae(4634);const{buildMockDispatch:ye}=Ae(79323);const{kDispatches:me,kMockAgent:ve,kClose:be,kOriginalClose:Ee,kOrigin:Ce,kOriginalDispatch:we,kConnected:_e}=Ae(24347);const{MockInterceptor:Ie}=Ae(90410);const Se=Ae(72785);const{InvalidArgumentError:Be}=Ae(48045);class MockPool extends ge{constructor(R,pe){super(R,pe);if(!pe||!pe.agent||typeof pe.agent.dispatch!=="function"){throw new Be("Argument opts.agent must implement Agent")}this[ve]=pe.agent;this[Ce]=R;this[me]=[];this[_e]=1;this[we]=this.dispatch;this[Ee]=this.close.bind(this);this.dispatch=ye.call(this);this.close=this[be]}get[Se.kConnected](){return this[_e]}intercept(R){return new Ie(R,this[me])}async[be](){await he(this[Ee])();this[_e]=0;this[ve][Se.kClients].delete(this[Ce])}}R.exports=MockPool},24347:R=>{"use strict";R.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")}},79323:(R,pe,Ae)=>{"use strict";const{MockNotMatchedError:he}=Ae(50888);const{kDispatches:ge,kMockAgent:ye,kOriginalDispatch:me,kOrigin:ve,kGetNetConnect:be}=Ae(24347);const{buildURL:Ee,nop:Ce}=Ae(83983);const{STATUS_CODES:we}=Ae(13685);const{types:{isPromise:_e}}=Ae(73837);function matchValue(R,pe){if(typeof R==="string"){return R===pe}if(R instanceof RegExp){return R.test(pe)}if(typeof R==="function"){return R(pe)===true}return false}function lowerCaseEntries(R){return Object.fromEntries(Object.entries(R).map((([R,pe])=>[R.toLocaleLowerCase(),pe])))}function getHeaderByName(R,pe){if(Array.isArray(R)){for(let Ae=0;Ae!R)).filter((({path:R})=>matchValue(safeUrl(R),ge)));if(ye.length===0){throw new he(`Mock dispatch not matched for path '${ge}'`)}ye=ye.filter((({method:R})=>matchValue(R,pe.method)));if(ye.length===0){throw new he(`Mock dispatch not matched for method '${pe.method}'`)}ye=ye.filter((({body:R})=>typeof R!=="undefined"?matchValue(R,pe.body):true));if(ye.length===0){throw new he(`Mock dispatch not matched for body '${pe.body}'`)}ye=ye.filter((R=>matchHeaders(R,pe.headers)));if(ye.length===0){throw new he(`Mock dispatch not matched for headers '${typeof pe.headers==="object"?JSON.stringify(pe.headers):pe.headers}'`)}return ye[0]}function addMockDispatch(R,pe,Ae){const he={timesInvoked:0,times:1,persist:false,consumed:false};const ge=typeof Ae==="function"?{callback:Ae}:{...Ae};const ye={...he,...pe,pending:true,data:{error:null,...ge}};R.push(ye);return ye}function deleteMockDispatch(R,pe){const Ae=R.findIndex((R=>{if(!R.consumed){return false}return matchKey(R,pe)}));if(Ae!==-1){R.splice(Ae,1)}}function buildKey(R){const{path:pe,method:Ae,body:he,headers:ge,query:ye}=R;return{path:pe,method:Ae,body:he,headers:ge,query:ye}}function generateKeyValues(R){return Object.entries(R).reduce(((R,[pe,Ae])=>[...R,Buffer.from(`${pe}`),Array.isArray(Ae)?Ae.map((R=>Buffer.from(`${R}`))):Buffer.from(`${Ae}`)]),[])}function getStatusText(R){return we[R]||"unknown"}async function getResponse(R){const pe=[];for await(const Ae of R){pe.push(Ae)}return Buffer.concat(pe).toString("utf8")}function mockDispatch(R,pe){const Ae=buildKey(R);const he=getMockDispatch(this[ge],Ae);he.timesInvoked++;if(he.data.callback){he.data={...he.data,...he.data.callback(R)}}const{data:{statusCode:ye,data:me,headers:ve,trailers:be,error:Ee},delay:we,persist:Ie}=he;const{timesInvoked:Se,times:Be}=he;he.consumed=!Ie&&Se>=Be;he.pending=Se0){setTimeout((()=>{handleReply(this[ge])}),we)}else{handleReply(this[ge])}function handleReply(he,ge=me){const Ee=Array.isArray(R.headers)?buildHeadersFromArray(R.headers):R.headers;const we=typeof ge==="function"?ge({...R,headers:Ee}):ge;if(_e(we)){we.then((R=>handleReply(he,R)));return}const Ie=getResponseData(we);const Se=generateKeyValues(ve);const Be=generateKeyValues(be);pe.abort=Ce;pe.onHeaders(ye,Se,resume,getStatusText(ye));pe.onData(Buffer.from(Ie));pe.onComplete(Be);deleteMockDispatch(he,Ae)}function resume(){}return true}function buildMockDispatch(){const R=this[ye];const pe=this[ve];const Ae=this[me];return function dispatch(ge,ye){if(R.isMockActive){try{mockDispatch.call(this,ge,ye)}catch(me){if(me instanceof he){const ve=R[be]();if(ve===false){throw new he(`${me.message}: subsequent request to origin ${pe} was not allowed (net.connect disabled)`)}if(checkNetConnect(ve,pe)){Ae.call(this,ge,ye)}else{throw new he(`${me.message}: subsequent request to origin ${pe} was not allowed (net.connect is not enabled for this origin)`)}}else{throw me}}}else{Ae.call(this,ge,ye)}}}function checkNetConnect(R,pe){const Ae=new URL(pe);if(R===true){return true}else if(Array.isArray(R)&&R.some((R=>matchValue(R,Ae.host)))){return true}return false}function buildMockOptions(R){if(R){const{agent:pe,...Ae}=R;return Ae}}R.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}},86823:(R,pe,Ae)=>{"use strict";const{Transform:he}=Ae(12781);const{Console:ge}=Ae(96206);R.exports=class PendingInterceptorsFormatter{constructor({disableColors:R}={}){this.transform=new he({transform(R,pe,Ae){Ae(null,R)}});this.logger=new ge({stdout:this.transform,inspectOptions:{colors:!R&&!process.env.CI}})}format(R){const pe=R.map((({method:R,path:pe,data:{statusCode:Ae},persist:he,times:ge,timesInvoked:ye,origin:me})=>({Method:R,Origin:me,Path:pe,"Status code":Ae,Persistent:he?"✅":"❌",Invocations:ye,Remaining:he?Infinity:ge-ye})));this.logger.table(pe);return this.transform.read().toString()}}},78891:R=>{"use strict";const pe={pronoun:"it",is:"is",was:"was",this:"this"};const Ae={pronoun:"they",is:"are",was:"were",this:"these"};R.exports=class Pluralizer{constructor(R,pe){this.singular=R;this.plural=pe}pluralize(R){const he=R===1;const ge=he?pe:Ae;const ye=he?this.singular:this.plural;return{...ge,count:R,noun:ye}}}},68266:R=>{"use strict";const pe=2048;const Ae=pe-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(pe);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&Ae)===this.bottom}push(R){this.list[this.top]=R;this.top=this.top+1&Ae}shift(){const R=this.list[this.bottom];if(R===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&Ae;return R}}R.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(R){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(R)}shift(){const R=this.tail;const pe=R.shift();if(R.isEmpty()&&R.next!==null){this.tail=R.next}return pe}}},73198:(R,pe,Ae)=>{"use strict";const he=Ae(74839);const ge=Ae(68266);const{kConnected:ye,kSize:me,kRunning:ve,kPending:be,kQueued:Ee,kBusy:Ce,kFree:we,kUrl:_e,kClose:Ie,kDestroy:Se,kDispatch:Be}=Ae(72785);const ke=Ae(39689);const Oe=Symbol("clients");const Re=Symbol("needDrain");const Qe=Symbol("queue");const xe=Symbol("closed resolve");const Pe=Symbol("onDrain");const Te=Symbol("onConnect");const De=Symbol("onDisconnect");const Ne=Symbol("onConnectionError");const Me=Symbol("get dispatcher");const je=Symbol("add client");const Fe=Symbol("remove client");const Le=Symbol("stats");class PoolBase extends he{constructor(){super();this[Qe]=new ge;this[Oe]=[];this[Ee]=0;const R=this;this[Pe]=function onDrain(pe,Ae){const he=R[Qe];let ge=false;while(!ge){const pe=he.shift();if(!pe){break}R[Ee]--;ge=!this.dispatch(pe.opts,pe.handler)}this[Re]=ge;if(!this[Re]&&R[Re]){R[Re]=false;R.emit("drain",pe,[R,...Ae])}if(R[xe]&&he.isEmpty()){Promise.all(R[Oe].map((R=>R.close()))).then(R[xe])}};this[Te]=(pe,Ae)=>{R.emit("connect",pe,[R,...Ae])};this[De]=(pe,Ae,he)=>{R.emit("disconnect",pe,[R,...Ae],he)};this[Ne]=(pe,Ae,he)=>{R.emit("connectionError",pe,[R,...Ae],he)};this[Le]=new ke(this)}get[Ce](){return this[Re]}get[ye](){return this[Oe].filter((R=>R[ye])).length}get[we](){return this[Oe].filter((R=>R[ye]&&!R[Re])).length}get[be](){let R=this[Ee];for(const{[be]:pe}of this[Oe]){R+=pe}return R}get[ve](){let R=0;for(const{[ve]:pe}of this[Oe]){R+=pe}return R}get[me](){let R=this[Ee];for(const{[me]:pe}of this[Oe]){R+=pe}return R}get stats(){return this[Le]}async[Ie](){if(this[Qe].isEmpty()){return Promise.all(this[Oe].map((R=>R.close())))}else{return new Promise((R=>{this[xe]=R}))}}async[Se](R){while(true){const pe=this[Qe].shift();if(!pe){break}pe.handler.onError(R)}return Promise.all(this[Oe].map((pe=>pe.destroy(R))))}[Be](R,pe){const Ae=this[Me]();if(!Ae){this[Re]=true;this[Qe].push({opts:R,handler:pe});this[Ee]++}else if(!Ae.dispatch(R,pe)){Ae[Re]=true;this[Re]=!this[Me]()}return!this[Re]}[je](R){R.on("drain",this[Pe]).on("connect",this[Te]).on("disconnect",this[De]).on("connectionError",this[Ne]);this[Oe].push(R);if(this[Re]){process.nextTick((()=>{if(this[Re]){this[Pe](R[_e],[this,R])}}))}return this}[Fe](R){R.close((()=>{const pe=this[Oe].indexOf(R);if(pe!==-1){this[Oe].splice(pe,1)}}));this[Re]=this[Oe].some((R=>!R[Re]&&R.closed!==true&&R.destroyed!==true))}}R.exports={PoolBase:PoolBase,kClients:Oe,kNeedDrain:Re,kAddClient:je,kRemoveClient:Fe,kGetDispatcher:Me}},39689:(R,pe,Ae)=>{const{kFree:he,kConnected:ge,kPending:ye,kQueued:me,kRunning:ve,kSize:be}=Ae(72785);const Ee=Symbol("pool");class PoolStats{constructor(R){this[Ee]=R}get connected(){return this[Ee][ge]}get free(){return this[Ee][he]}get pending(){return this[Ee][ye]}get queued(){return this[Ee][me]}get running(){return this[Ee][ve]}get size(){return this[Ee][be]}}R.exports=PoolStats},4634:(R,pe,Ae)=>{"use strict";const{PoolBase:he,kClients:ge,kNeedDrain:ye,kAddClient:me,kGetDispatcher:ve}=Ae(73198);const be=Ae(33598);const{InvalidArgumentError:Ee}=Ae(48045);const Ce=Ae(83983);const{kUrl:we,kInterceptors:_e}=Ae(72785);const Ie=Ae(82067);const Se=Symbol("options");const Be=Symbol("connections");const ke=Symbol("factory");function defaultFactory(R,pe){return new be(R,pe)}class Pool extends he{constructor(R,{connections:pe,factory:Ae=defaultFactory,connect:he,connectTimeout:ge,tls:ye,maxCachedSessions:me,socketPath:ve,autoSelectFamily:be,autoSelectFamilyAttemptTimeout:Oe,allowH2:Re,...Qe}={}){super();if(pe!=null&&(!Number.isFinite(pe)||pe<0)){throw new Ee("invalid connections")}if(typeof Ae!=="function"){throw new Ee("factory must be a function.")}if(he!=null&&typeof he!=="function"&&typeof he!=="object"){throw new Ee("connect must be a function or an object")}if(typeof he!=="function"){he=Ie({...ye,maxCachedSessions:me,allowH2:Re,socketPath:ve,timeout:ge,...Ce.nodeHasAutoSelectFamily&&be?{autoSelectFamily:be,autoSelectFamilyAttemptTimeout:Oe}:undefined,...he})}this[_e]=Qe.interceptors&&Qe.interceptors.Pool&&Array.isArray(Qe.interceptors.Pool)?Qe.interceptors.Pool:[];this[Be]=pe||null;this[we]=Ce.parseOrigin(R);this[Se]={...Ce.deepClone(Qe),connect:he,allowH2:Re};this[Se].interceptors=Qe.interceptors?{...Qe.interceptors}:undefined;this[ke]=Ae}[ve](){let R=this[ge].find((R=>!R[ye]));if(R){return R}if(!this[Be]||this[ge].length{"use strict";const{kProxy:he,kClose:ge,kDestroy:ye,kInterceptors:me}=Ae(72785);const{URL:ve}=Ae(57310);const be=Ae(7890);const Ee=Ae(4634);const Ce=Ae(74839);const{InvalidArgumentError:we,RequestAbortedError:_e}=Ae(48045);const Ie=Ae(82067);const Se=Symbol("proxy agent");const Be=Symbol("proxy client");const ke=Symbol("proxy headers");const Oe=Symbol("request tls settings");const Re=Symbol("proxy tls settings");const Qe=Symbol("connect endpoint function");function defaultProtocolPort(R){return R==="https:"?443:80}function buildProxyOptions(R){if(typeof R==="string"){R={uri:R}}if(!R||!R.uri){throw new we("Proxy opts.uri is mandatory")}return{uri:R.uri,protocol:R.protocol||"https"}}function defaultFactory(R,pe){return new Ee(R,pe)}class ProxyAgent extends Ce{constructor(R){super(R);this[he]=buildProxyOptions(R);this[Se]=new be(R);this[me]=R.interceptors&&R.interceptors.ProxyAgent&&Array.isArray(R.interceptors.ProxyAgent)?R.interceptors.ProxyAgent:[];if(typeof R==="string"){R={uri:R}}if(!R||!R.uri){throw new we("Proxy opts.uri is mandatory")}const{clientFactory:pe=defaultFactory}=R;if(typeof pe!=="function"){throw new we("Proxy opts.clientFactory must be a function.")}this[Oe]=R.requestTls;this[Re]=R.proxyTls;this[ke]=R.headers||{};const Ae=new ve(R.uri);const{origin:ge,port:ye,host:Ee,username:Ce,password:xe}=Ae;if(R.auth&&R.token){throw new we("opts.auth cannot be used in combination with opts.token")}else if(R.auth){this[ke]["proxy-authorization"]=`Basic ${R.auth}`}else if(R.token){this[ke]["proxy-authorization"]=R.token}else if(Ce&&xe){this[ke]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(Ce)}:${decodeURIComponent(xe)}`).toString("base64")}`}const Pe=Ie({...R.proxyTls});this[Qe]=Ie({...R.requestTls});this[Be]=pe(Ae,{connect:Pe});this[Se]=new be({...R,connect:async(R,pe)=>{let Ae=R.host;if(!R.port){Ae+=`:${defaultProtocolPort(R.protocol)}`}try{const{socket:he,statusCode:me}=await this[Be].connect({origin:ge,port:ye,path:Ae,signal:R.signal,headers:{...this[ke],host:Ee}});if(me!==200){he.on("error",(()=>{})).destroy();pe(new _e(`Proxy response (${me}) !== 200 when HTTP Tunneling`))}if(R.protocol!=="https:"){pe(null,he);return}let ve;if(this[Oe]){ve=this[Oe].servername}else{ve=R.servername}this[Qe]({...R,servername:ve,httpSocket:he},pe)}catch(R){pe(R)}}})}dispatch(R,pe){const{host:Ae}=new ve(R.origin);const he=buildHeaders(R.headers);throwIfProxyAuthIsSent(he);return this[Se].dispatch({...R,headers:{...he,host:Ae}},pe)}async[ge](){await this[Se].close();await this[Be].close()}async[ye](){await this[Se].destroy();await this[Be].destroy()}}function buildHeaders(R){if(Array.isArray(R)){const pe={};for(let Ae=0;AeR.toLowerCase()==="proxy-authorization"));if(pe){throw new we("Proxy-Authorization should be sent in ProxyAgent constructor")}}R.exports=ProxyAgent},29459:R=>{"use strict";let pe=Date.now();let Ae;const he=[];function onTimeout(){pe=Date.now();let R=he.length;let Ae=0;while(Ae0&&pe>=ge.state){ge.state=-1;ge.callback(ge.opaque)}if(ge.state===-1){ge.state=-2;if(Ae!==R-1){he[Ae]=he.pop()}else{he.pop()}R-=1}else{Ae+=1}}if(he.length>0){refreshTimeout()}}function refreshTimeout(){if(Ae&&Ae.refresh){Ae.refresh()}else{clearTimeout(Ae);Ae=setTimeout(onTimeout,1e3);if(Ae.unref){Ae.unref()}}}class Timeout{constructor(R,pe,Ae){this.callback=R;this.delay=pe;this.opaque=Ae;this.state=-2;this.refresh()}refresh(){if(this.state===-2){he.push(this);if(!Ae||he.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}R.exports={setTimeout(R,pe,Ae){return pe<1e3?setTimeout(R,pe,Ae):new Timeout(R,pe,Ae)},clearTimeout(R){if(R instanceof Timeout){R.clear()}else{clearTimeout(R)}}}},35354:(R,pe,Ae)=>{"use strict";const he=Ae(67643);const{uid:ge,states:ye}=Ae(19188);const{kReadyState:me,kSentClose:ve,kByteParser:be,kReceivedClose:Ee}=Ae(37578);const{fireEvent:Ce,failWebsocketConnection:we}=Ae(25515);const{CloseEvent:_e}=Ae(52611);const{makeRequest:Ie}=Ae(48359);const{fetching:Se}=Ae(74881);const{Headers:Be}=Ae(10554);const{getGlobalDispatcher:ke}=Ae(21892);const{kHeadersList:Oe}=Ae(72785);const Re={};Re.open=he.channel("undici:websocket:open");Re.close=he.channel("undici:websocket:close");Re.socketError=he.channel("undici:websocket:socket_error");let Qe;try{Qe=Ae(6113)}catch{}function establishWebSocketConnection(R,pe,Ae,he,ye){const me=R;me.protocol=R.protocol==="ws:"?"http:":"https:";const ve=Ie({urlList:[me],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(ye.headers){const R=new Be(ye.headers)[Oe];ve.headersList=R}const be=Qe.randomBytes(16).toString("base64");ve.headersList.append("sec-websocket-key",be);ve.headersList.append("sec-websocket-version","13");for(const R of pe){ve.headersList.append("sec-websocket-protocol",R)}const Ee="";const Ce=Se({request:ve,useParallelQueue:true,dispatcher:ye.dispatcher??ke(),processResponse(R){if(R.type==="error"||R.status!==101){we(Ae,"Received network error or non-101 status code.");return}if(pe.length!==0&&!R.headersList.get("Sec-WebSocket-Protocol")){we(Ae,"Server did not respond with sent protocols.");return}if(R.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){we(Ae,'Server did not set Upgrade header to "websocket".');return}if(R.headersList.get("Connection")?.toLowerCase()!=="upgrade"){we(Ae,'Server did not set Connection header to "upgrade".');return}const ye=R.headersList.get("Sec-WebSocket-Accept");const me=Qe.createHash("sha1").update(be+ge).digest("base64");if(ye!==me){we(Ae,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const Ce=R.headersList.get("Sec-WebSocket-Extensions");if(Ce!==null&&Ce!==Ee){we(Ae,"Received different permessage-deflate than the one set.");return}const _e=R.headersList.get("Sec-WebSocket-Protocol");if(_e!==null&&_e!==ve.headersList.get("Sec-WebSocket-Protocol")){we(Ae,"Protocol was not set in the opening handshake.");return}R.socket.on("data",onSocketData);R.socket.on("close",onSocketClose);R.socket.on("error",onSocketError);if(Re.open.hasSubscribers){Re.open.publish({address:R.socket.address(),protocol:_e,extensions:Ce})}he(R)}});return Ce}function onSocketData(R){if(!this.ws[be].write(R)){this.pause()}}function onSocketClose(){const{ws:R}=this;const pe=R[ve]&&R[Ee];let Ae=1005;let he="";const ge=R[be].closingInfo;if(ge){Ae=ge.code??1005;he=ge.reason}else if(!R[ve]){Ae=1006}R[me]=ye.CLOSED;Ce("close",R,_e,{wasClean:pe,code:Ae,reason:he});if(Re.close.hasSubscribers){Re.close.publish({websocket:R,code:Ae,reason:he})}}function onSocketError(R){const{ws:pe}=this;pe[me]=ye.CLOSING;if(Re.socketError.hasSubscribers){Re.socketError.publish(R)}this.destroy()}R.exports={establishWebSocketConnection:establishWebSocketConnection}},19188:R=>{"use strict";const pe="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const Ae={enumerable:true,writable:false,configurable:false};const he={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const ge={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const ye=2**16-1;const me={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const ve=Buffer.allocUnsafe(0);R.exports={uid:pe,staticPropertyDescriptors:Ae,states:he,opcodes:ge,maxUnsigned16Bit:ye,parserStates:me,emptyBuffer:ve}},52611:(R,pe,Ae)=>{"use strict";const{webidl:he}=Ae(21744);const{kEnumerableProperty:ge}=Ae(83983);const{MessagePort:ye}=Ae(71267);class MessageEvent extends Event{#o;constructor(R,pe={}){he.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});R=he.converters.DOMString(R);pe=he.converters.MessageEventInit(pe);super(R,pe);this.#o=pe}get data(){he.brandCheck(this,MessageEvent);return this.#o.data}get origin(){he.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){he.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){he.brandCheck(this,MessageEvent);return this.#o.source}get ports(){he.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(R,pe=false,Ae=false,ge=null,ye="",me="",ve=null,be=[]){he.brandCheck(this,MessageEvent);he.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(R,{bubbles:pe,cancelable:Ae,data:ge,origin:ye,lastEventId:me,source:ve,ports:be})}}class CloseEvent extends Event{#o;constructor(R,pe={}){he.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});R=he.converters.DOMString(R);pe=he.converters.CloseEventInit(pe);super(R,pe);this.#o=pe}get wasClean(){he.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){he.brandCheck(this,CloseEvent);return this.#o.code}get reason(){he.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(R,pe){he.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(R,pe);R=he.converters.DOMString(R);pe=he.converters.ErrorEventInit(pe??{});this.#o=pe}get message(){he.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){he.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){he.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){he.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){he.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:ge,origin:ge,lastEventId:ge,source:ge,ports:ge,initMessageEvent:ge});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:ge,code:ge,wasClean:ge});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:ge,filename:ge,lineno:ge,colno:ge,error:ge});he.converters.MessagePort=he.interfaceConverter(ye);he.converters["sequence"]=he.sequenceConverter(he.converters.MessagePort);const me=[{key:"bubbles",converter:he.converters.boolean,defaultValue:false},{key:"cancelable",converter:he.converters.boolean,defaultValue:false},{key:"composed",converter:he.converters.boolean,defaultValue:false}];he.converters.MessageEventInit=he.dictionaryConverter([...me,{key:"data",converter:he.converters.any,defaultValue:null},{key:"origin",converter:he.converters.USVString,defaultValue:""},{key:"lastEventId",converter:he.converters.DOMString,defaultValue:""},{key:"source",converter:he.nullableConverter(he.converters.MessagePort),defaultValue:null},{key:"ports",converter:he.converters["sequence"],get defaultValue(){return[]}}]);he.converters.CloseEventInit=he.dictionaryConverter([...me,{key:"wasClean",converter:he.converters.boolean,defaultValue:false},{key:"code",converter:he.converters["unsigned short"],defaultValue:0},{key:"reason",converter:he.converters.USVString,defaultValue:""}]);he.converters.ErrorEventInit=he.dictionaryConverter([...me,{key:"message",converter:he.converters.DOMString,defaultValue:""},{key:"filename",converter:he.converters.USVString,defaultValue:""},{key:"lineno",converter:he.converters["unsigned long"],defaultValue:0},{key:"colno",converter:he.converters["unsigned long"],defaultValue:0},{key:"error",converter:he.converters.any}]);R.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},25444:(R,pe,Ae)=>{"use strict";const{maxUnsigned16Bit:he}=Ae(19188);let ge;try{ge=Ae(6113)}catch{}class WebsocketFrameSend{constructor(R){this.frameData=R;this.maskKey=ge.randomBytes(4)}createFrame(R){const pe=this.frameData?.byteLength??0;let Ae=pe;let ge=6;if(pe>he){ge+=8;Ae=127}else if(pe>125){ge+=2;Ae=126}const ye=Buffer.allocUnsafe(pe+ge);ye[0]=ye[1]=0;ye[0]|=128;ye[0]=(ye[0]&240)+R; -/*! ws. MIT License. Einar Otto Stangvik */ye[ge-4]=this.maskKey[0];ye[ge-3]=this.maskKey[1];ye[ge-2]=this.maskKey[2];ye[ge-1]=this.maskKey[3];ye[1]=Ae;if(Ae===126){ye.writeUInt16BE(pe,2)}else if(Ae===127){ye[2]=ye[3]=0;ye.writeUIntBE(pe,4,6)}ye[1]|=128;for(let R=0;R{"use strict";const{Writable:he}=Ae(12781);const ge=Ae(67643);const{parserStates:ye,opcodes:me,states:ve,emptyBuffer:be}=Ae(19188);const{kReadyState:Ee,kSentClose:Ce,kResponse:we,kReceivedClose:_e}=Ae(37578);const{isValidStatusCode:Ie,failWebsocketConnection:Se,websocketMessageReceived:Be}=Ae(25515);const{WebsocketFrameSend:ke}=Ae(25444);const Oe={};Oe.ping=ge.channel("undici:websocket:ping");Oe.pong=ge.channel("undici:websocket:pong");class ByteParser extends he{#s=[];#a=0;#c=ye.INFO;#u={};#l=[];constructor(R){super();this.ws=R}_write(R,pe,Ae){this.#s.push(R);this.#a+=R.length;this.run(Ae)}run(R){while(true){if(this.#c===ye.INFO){if(this.#a<2){return R()}const pe=this.consume(2);this.#u.fin=(pe[0]&128)!==0;this.#u.opcode=pe[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==me.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==me.BINARY&&this.#u.opcode!==me.TEXT){Se(this.ws,"Invalid frame type was fragmented.");return}const Ae=pe[1]&127;if(Ae<=125){this.#u.payloadLength=Ae;this.#c=ye.READ_DATA}else if(Ae===126){this.#c=ye.PAYLOADLENGTH_16}else if(Ae===127){this.#c=ye.PAYLOADLENGTH_64}if(this.#u.fragmented&&Ae>125){Se(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===me.PING||this.#u.opcode===me.PONG||this.#u.opcode===me.CLOSE)&&Ae>125){Se(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===me.CLOSE){if(Ae===1){Se(this.ws,"Received close frame with a 1-byte body.");return}const R=this.consume(Ae);this.#u.closeInfo=this.parseCloseBody(false,R);if(!this.ws[Ce]){const R=Buffer.allocUnsafe(2);R.writeUInt16BE(this.#u.closeInfo.code,0);const pe=new ke(R);this.ws[we].socket.write(pe.createFrame(me.CLOSE),(R=>{if(!R){this.ws[Ce]=true}}))}this.ws[Ee]=ve.CLOSING;this.ws[_e]=true;this.end();return}else if(this.#u.opcode===me.PING){const pe=this.consume(Ae);if(!this.ws[_e]){const R=new ke(pe);this.ws[we].socket.write(R.createFrame(me.PONG));if(Oe.ping.hasSubscribers){Oe.ping.publish({payload:pe})}}this.#c=ye.INFO;if(this.#a>0){continue}else{R();return}}else if(this.#u.opcode===me.PONG){const pe=this.consume(Ae);if(Oe.pong.hasSubscribers){Oe.pong.publish({payload:pe})}if(this.#a>0){continue}else{R();return}}}else if(this.#c===ye.PAYLOADLENGTH_16){if(this.#a<2){return R()}const pe=this.consume(2);this.#u.payloadLength=pe.readUInt16BE(0);this.#c=ye.READ_DATA}else if(this.#c===ye.PAYLOADLENGTH_64){if(this.#a<8){return R()}const pe=this.consume(8);const Ae=pe.readUInt32BE(0);if(Ae>2**31-1){Se(this.ws,"Received payload length > 2^31 bytes.");return}const he=pe.readUInt32BE(4);this.#u.payloadLength=(Ae<<8)+he;this.#c=ye.READ_DATA}else if(this.#c===ye.READ_DATA){if(this.#a=this.#u.payloadLength){const R=this.consume(this.#u.payloadLength);this.#l.push(R);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===me.CONTINUATION){const R=Buffer.concat(this.#l);Be(this.ws,this.#u.originalOpcode,R);this.#u={};this.#l.length=0}this.#c=ye.INFO}}if(this.#a>0){continue}else{R();break}}}consume(R){if(R>this.#a){return null}else if(R===0){return be}if(this.#s[0].length===R){this.#a-=this.#s[0].length;return this.#s.shift()}const pe=Buffer.allocUnsafe(R);let Ae=0;while(Ae!==R){const he=this.#s[0];const{length:ge}=he;if(ge+Ae===R){pe.set(this.#s.shift(),Ae);break}else if(ge+Ae>R){pe.set(he.subarray(0,R-Ae),Ae);this.#s[0]=he.subarray(R-Ae);break}else{pe.set(this.#s.shift(),Ae);Ae+=he.length}}this.#a-=R;return pe}parseCloseBody(R,pe){let Ae;if(pe.length>=2){Ae=pe.readUInt16BE(0)}if(R){if(!Ie(Ae)){return null}return{code:Ae}}let he=pe.subarray(2);if(he[0]===239&&he[1]===187&&he[2]===191){he=he.subarray(3)}if(Ae!==undefined&&!Ie(Ae)){return null}try{he=new TextDecoder("utf-8",{fatal:true}).decode(he)}catch{return null}return{code:Ae,reason:he}}get closingInfo(){return this.#u.closeInfo}}R.exports={ByteParser:ByteParser}},37578:R=>{"use strict";R.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")}},25515:(R,pe,Ae)=>{"use strict";const{kReadyState:he,kController:ge,kResponse:ye,kBinaryType:me,kWebSocketURL:ve}=Ae(37578);const{states:be,opcodes:Ee}=Ae(19188);const{MessageEvent:Ce,ErrorEvent:we}=Ae(52611);function isEstablished(R){return R[he]===be.OPEN}function isClosing(R){return R[he]===be.CLOSING}function isClosed(R){return R[he]===be.CLOSED}function fireEvent(R,pe,Ae=Event,he){const ge=new Ae(R,he);pe.dispatchEvent(ge)}function websocketMessageReceived(R,pe,Ae){if(R[he]!==be.OPEN){return}let ge;if(pe===Ee.TEXT){try{ge=new TextDecoder("utf-8",{fatal:true}).decode(Ae)}catch{failWebsocketConnection(R,"Received invalid UTF-8 in text frame.");return}}else if(pe===Ee.BINARY){if(R[me]==="blob"){ge=new Blob([Ae])}else{ge=new Uint8Array(Ae).buffer}}fireEvent("message",R,Ce,{origin:R[ve].origin,data:ge})}function isValidSubprotocol(R){if(R.length===0){return false}for(const pe of R){const R=pe.charCodeAt(0);if(R<33||R>126||pe==="("||pe===")"||pe==="<"||pe===">"||pe==="@"||pe===","||pe===";"||pe===":"||pe==="\\"||pe==='"'||pe==="/"||pe==="["||pe==="]"||pe==="?"||pe==="="||pe==="{"||pe==="}"||R===32||R===9){return false}}return true}function isValidStatusCode(R){if(R>=1e3&&R<1015){return R!==1004&&R!==1005&&R!==1006}return R>=3e3&&R<=4999}function failWebsocketConnection(R,pe){const{[ge]:Ae,[ye]:he}=R;Ae.abort();if(he?.socket&&!he.socket.destroyed){he.socket.destroy()}if(pe){fireEvent("error",R,we,{error:new Error(pe)})}}R.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},54284:(R,pe,Ae)=>{"use strict";const{webidl:he}=Ae(21744);const{DOMException:ge}=Ae(41037);const{URLSerializer:ye}=Ae(685);const{getGlobalOrigin:me}=Ae(71246);const{staticPropertyDescriptors:ve,states:be,opcodes:Ee,emptyBuffer:Ce}=Ae(19188);const{kWebSocketURL:we,kReadyState:_e,kController:Ie,kBinaryType:Se,kResponse:Be,kSentClose:ke,kByteParser:Oe}=Ae(37578);const{isEstablished:Re,isClosing:Qe,isValidSubprotocol:xe,failWebsocketConnection:Pe,fireEvent:Te}=Ae(25515);const{establishWebSocketConnection:De}=Ae(35354);const{WebsocketFrameSend:Ne}=Ae(25444);const{ByteParser:Me}=Ae(11688);const{kEnumerableProperty:je,isBlobLike:Fe}=Ae(83983);const{getGlobalDispatcher:Le}=Ae(21892);const{types:Ue}=Ae(73837);let He=false;class WebSocket extends EventTarget{#d={open:null,error:null,close:null,message:null};#f=0;#p="";#A="";constructor(R,pe=[]){super();he.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!He){He=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const Ae=he.converters["DOMString or sequence or WebSocketInit"](pe);R=he.converters.USVString(R);pe=Ae.protocols;const ye=me();let ve;try{ve=new URL(R,ye)}catch(R){throw new ge(R,"SyntaxError")}if(ve.protocol==="http:"){ve.protocol="ws:"}else if(ve.protocol==="https:"){ve.protocol="wss:"}if(ve.protocol!=="ws:"&&ve.protocol!=="wss:"){throw new ge(`Expected a ws: or wss: protocol, got ${ve.protocol}`,"SyntaxError")}if(ve.hash||ve.href.endsWith("#")){throw new ge("Got fragment","SyntaxError")}if(typeof pe==="string"){pe=[pe]}if(pe.length!==new Set(pe.map((R=>R.toLowerCase()))).size){throw new ge("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(pe.length>0&&!pe.every((R=>xe(R)))){throw new ge("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[we]=new URL(ve.href);this[Ie]=De(ve,pe,this,(R=>this.#h(R)),Ae);this[_e]=WebSocket.CONNECTING;this[Se]="blob"}close(R=undefined,pe=undefined){he.brandCheck(this,WebSocket);if(R!==undefined){R=he.converters["unsigned short"](R,{clamp:true})}if(pe!==undefined){pe=he.converters.USVString(pe)}if(R!==undefined){if(R!==1e3&&(R<3e3||R>4999)){throw new ge("invalid code","InvalidAccessError")}}let Ae=0;if(pe!==undefined){Ae=Buffer.byteLength(pe);if(Ae>123){throw new ge(`Reason must be less than 123 bytes; received ${Ae}`,"SyntaxError")}}if(this[_e]===WebSocket.CLOSING||this[_e]===WebSocket.CLOSED){}else if(!Re(this)){Pe(this,"Connection was closed before it was established.");this[_e]=WebSocket.CLOSING}else if(!Qe(this)){const he=new Ne;if(R!==undefined&&pe===undefined){he.frameData=Buffer.allocUnsafe(2);he.frameData.writeUInt16BE(R,0)}else if(R!==undefined&&pe!==undefined){he.frameData=Buffer.allocUnsafe(2+Ae);he.frameData.writeUInt16BE(R,0);he.frameData.write(pe,2,"utf-8")}else{he.frameData=Ce}const ge=this[Be].socket;ge.write(he.createFrame(Ee.CLOSE),(R=>{if(!R){this[ke]=true}}));this[_e]=be.CLOSING}else{this[_e]=WebSocket.CLOSING}}send(R){he.brandCheck(this,WebSocket);he.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});R=he.converters.WebSocketSendData(R);if(this[_e]===WebSocket.CONNECTING){throw new ge("Sent before connected.","InvalidStateError")}if(!Re(this)||Qe(this)){return}const pe=this[Be].socket;if(typeof R==="string"){const Ae=Buffer.from(R);const he=new Ne(Ae);const ge=he.createFrame(Ee.TEXT);this.#f+=Ae.byteLength;pe.write(ge,(()=>{this.#f-=Ae.byteLength}))}else if(Ue.isArrayBuffer(R)){const Ae=Buffer.from(R);const he=new Ne(Ae);const ge=he.createFrame(Ee.BINARY);this.#f+=Ae.byteLength;pe.write(ge,(()=>{this.#f-=Ae.byteLength}))}else if(ArrayBuffer.isView(R)){const Ae=Buffer.from(R,R.byteOffset,R.byteLength);const he=new Ne(Ae);const ge=he.createFrame(Ee.BINARY);this.#f+=Ae.byteLength;pe.write(ge,(()=>{this.#f-=Ae.byteLength}))}else if(Fe(R)){const Ae=new Ne;R.arrayBuffer().then((R=>{const he=Buffer.from(R);Ae.frameData=he;const ge=Ae.createFrame(Ee.BINARY);this.#f+=he.byteLength;pe.write(ge,(()=>{this.#f-=he.byteLength}))}))}}get readyState(){he.brandCheck(this,WebSocket);return this[_e]}get bufferedAmount(){he.brandCheck(this,WebSocket);return this.#f}get url(){he.brandCheck(this,WebSocket);return ye(this[we])}get extensions(){he.brandCheck(this,WebSocket);return this.#A}get protocol(){he.brandCheck(this,WebSocket);return this.#p}get onopen(){he.brandCheck(this,WebSocket);return this.#d.open}set onopen(R){he.brandCheck(this,WebSocket);if(this.#d.open){this.removeEventListener("open",this.#d.open)}if(typeof R==="function"){this.#d.open=R;this.addEventListener("open",R)}else{this.#d.open=null}}get onerror(){he.brandCheck(this,WebSocket);return this.#d.error}set onerror(R){he.brandCheck(this,WebSocket);if(this.#d.error){this.removeEventListener("error",this.#d.error)}if(typeof R==="function"){this.#d.error=R;this.addEventListener("error",R)}else{this.#d.error=null}}get onclose(){he.brandCheck(this,WebSocket);return this.#d.close}set onclose(R){he.brandCheck(this,WebSocket);if(this.#d.close){this.removeEventListener("close",this.#d.close)}if(typeof R==="function"){this.#d.close=R;this.addEventListener("close",R)}else{this.#d.close=null}}get onmessage(){he.brandCheck(this,WebSocket);return this.#d.message}set onmessage(R){he.brandCheck(this,WebSocket);if(this.#d.message){this.removeEventListener("message",this.#d.message)}if(typeof R==="function"){this.#d.message=R;this.addEventListener("message",R)}else{this.#d.message=null}}get binaryType(){he.brandCheck(this,WebSocket);return this[Se]}set binaryType(R){he.brandCheck(this,WebSocket);if(R!=="blob"&&R!=="arraybuffer"){this[Se]="blob"}else{this[Se]=R}}#h(R){this[Be]=R;const pe=new Me(this);pe.on("drain",(function onParserDrain(){this.ws[Be].socket.resume()}));R.socket.ws=this;this[Oe]=pe;this[_e]=be.OPEN;const Ae=R.headersList.get("sec-websocket-extensions");if(Ae!==null){this.#A=Ae}const he=R.headersList.get("sec-websocket-protocol");if(he!==null){this.#p=he}Te("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=be.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=be.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=be.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=be.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:ve,OPEN:ve,CLOSING:ve,CLOSED:ve,url:je,readyState:je,bufferedAmount:je,onopen:je,onerror:je,onclose:je,close:je,onmessage:je,binaryType:je,send:je,extensions:je,protocol:je,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:ve,OPEN:ve,CLOSING:ve,CLOSED:ve});he.converters["sequence"]=he.sequenceConverter(he.converters.DOMString);he.converters["DOMString or sequence"]=function(R){if(he.util.Type(R)==="Object"&&Symbol.iterator in R){return he.converters["sequence"](R)}return he.converters.DOMString(R)};he.converters.WebSocketInit=he.dictionaryConverter([{key:"protocols",converter:he.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:R=>R,get defaultValue(){return Le()}},{key:"headers",converter:he.nullableConverter(he.converters.HeadersInit)}]);he.converters["DOMString or sequence or WebSocketInit"]=function(R){if(he.util.Type(R)==="Object"&&!(Symbol.iterator in R)){return he.converters.WebSocketInit(R)}return{protocols:he.converters["DOMString or sequence"](R)}};he.converters.WebSocketSendData=function(R){if(he.util.Type(R)==="Object"){if(Fe(R)){return he.converters.Blob(R,{strict:false})}if(ArrayBuffer.isView(R)||Ue.isAnyArrayBuffer(R)){return he.converters.BufferSource(R)}}return he.converters.USVString(R)};R.exports={WebSocket:WebSocket}},75840:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});Object.defineProperty(pe,"NIL",{enumerable:true,get:function(){return ve.default}});Object.defineProperty(pe,"parse",{enumerable:true,get:function(){return we.default}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return Ce.default}});Object.defineProperty(pe,"v1",{enumerable:true,get:function(){return he.default}});Object.defineProperty(pe,"v3",{enumerable:true,get:function(){return ge.default}});Object.defineProperty(pe,"v4",{enumerable:true,get:function(){return ye.default}});Object.defineProperty(pe,"v5",{enumerable:true,get:function(){return me.default}});Object.defineProperty(pe,"validate",{enumerable:true,get:function(){return Ee.default}});Object.defineProperty(pe,"version",{enumerable:true,get:function(){return be.default}});var he=_interopRequireDefault(Ae(78628));var ge=_interopRequireDefault(Ae(86409));var ye=_interopRequireDefault(Ae(85122));var me=_interopRequireDefault(Ae(79120));var ve=_interopRequireDefault(Ae(25332));var be=_interopRequireDefault(Ae(32414));var Ee=_interopRequireDefault(Ae(66900));var Ce=_interopRequireDefault(Ae(18950));var we=_interopRequireDefault(Ae(62746));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}},4569:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function md5(R){if(Array.isArray(R)){R=Buffer.from(R)}else if(typeof R==="string"){R=Buffer.from(R,"utf8")}return he.default.createHash("md5").update(R).digest()}var ge=md5;pe["default"]=ge},82054:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}var ge={randomUUID:he.default.randomUUID};pe["default"]=ge},25332:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var Ae="00000000-0000-0000-0000-000000000000";pe["default"]=Ae},62746:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(66900));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function parse(R){if(!(0,he.default)(R)){throw TypeError("Invalid UUID")}let pe;const Ae=new Uint8Array(16);Ae[0]=(pe=parseInt(R.slice(0,8),16))>>>24;Ae[1]=pe>>>16&255;Ae[2]=pe>>>8&255;Ae[3]=pe&255;Ae[4]=(pe=parseInt(R.slice(9,13),16))>>>8;Ae[5]=pe&255;Ae[6]=(pe=parseInt(R.slice(14,18),16))>>>8;Ae[7]=pe&255;Ae[8]=(pe=parseInt(R.slice(19,23),16))>>>8;Ae[9]=pe&255;Ae[10]=(pe=parseInt(R.slice(24,36),16))/1099511627776&255;Ae[11]=pe/4294967296&255;Ae[12]=pe>>>24&255;Ae[13]=pe>>>16&255;Ae[14]=pe>>>8&255;Ae[15]=pe&255;return Ae}var ge=parse;pe["default"]=ge},40814:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var Ae=/^(?:[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;pe["default"]=Ae},50807:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=rng;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ge=new Uint8Array(256);let ye=ge.length;function rng(){if(ye>ge.length-16){he.default.randomFillSync(ge);ye=0}return ge.slice(ye,ye+=16)}},85274:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function sha1(R){if(Array.isArray(R)){R=Buffer.from(R)}else if(typeof R==="string"){R=Buffer.from(R,"utf8")}return he.default.createHash("sha1").update(R).digest()}var ge=sha1;pe["default"]=ge},18950:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;pe.unsafeStringify=unsafeStringify;var he=_interopRequireDefault(Ae(66900));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ge=[];for(let R=0;R<256;++R){ge.push((R+256).toString(16).slice(1))}function unsafeStringify(R,pe=0){return ge[R[pe+0]]+ge[R[pe+1]]+ge[R[pe+2]]+ge[R[pe+3]]+"-"+ge[R[pe+4]]+ge[R[pe+5]]+"-"+ge[R[pe+6]]+ge[R[pe+7]]+"-"+ge[R[pe+8]]+ge[R[pe+9]]+"-"+ge[R[pe+10]]+ge[R[pe+11]]+ge[R[pe+12]]+ge[R[pe+13]]+ge[R[pe+14]]+ge[R[pe+15]]}function stringify(R,pe=0){const Ae=unsafeStringify(R,pe);if(!(0,he.default)(Ae)){throw TypeError("Stringified UUID is invalid")}return Ae}var ye=stringify;pe["default"]=ye},78628:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(50807));var ge=Ae(18950);function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}let ye;let me;let ve=0;let be=0;function v1(R,pe,Ae){let Ee=pe&&Ae||0;const Ce=pe||new Array(16);R=R||{};let we=R.node||ye;let _e=R.clockseq!==undefined?R.clockseq:me;if(we==null||_e==null){const pe=R.random||(R.rng||he.default)();if(we==null){we=ye=[pe[0]|1,pe[1],pe[2],pe[3],pe[4],pe[5]]}if(_e==null){_e=me=(pe[6]<<8|pe[7])&16383}}let Ie=R.msecs!==undefined?R.msecs:Date.now();let Se=R.nsecs!==undefined?R.nsecs:be+1;const Be=Ie-ve+(Se-be)/1e4;if(Be<0&&R.clockseq===undefined){_e=_e+1&16383}if((Be<0||Ie>ve)&&R.nsecs===undefined){Se=0}if(Se>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}ve=Ie;be=Se;me=_e;Ie+=122192928e5;const ke=((Ie&268435455)*1e4+Se)%4294967296;Ce[Ee++]=ke>>>24&255;Ce[Ee++]=ke>>>16&255;Ce[Ee++]=ke>>>8&255;Ce[Ee++]=ke&255;const Oe=Ie/4294967296*1e4&268435455;Ce[Ee++]=Oe>>>8&255;Ce[Ee++]=Oe&255;Ce[Ee++]=Oe>>>24&15|16;Ce[Ee++]=Oe>>>16&255;Ce[Ee++]=_e>>>8|128;Ce[Ee++]=_e&255;for(let R=0;R<6;++R){Ce[Ee+R]=we[R]}return pe||(0,ge.unsafeStringify)(Ce)}var Ee=v1;pe["default"]=Ee},86409:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(65998));var ge=_interopRequireDefault(Ae(4569));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ye=(0,he.default)("v3",48,ge.default);var me=ye;pe["default"]=me},65998:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.URL=pe.DNS=void 0;pe["default"]=v35;var he=Ae(18950);var ge=_interopRequireDefault(Ae(62746));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function stringToBytes(R){R=unescape(encodeURIComponent(R));const pe=[];for(let Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(82054));var ge=_interopRequireDefault(Ae(50807));var ye=Ae(18950);function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function v4(R,pe,Ae){if(he.default.randomUUID&&!pe&&!R){return he.default.randomUUID()}R=R||{};const me=R.random||(R.rng||ge.default)();me[6]=me[6]&15|64;me[8]=me[8]&63|128;if(pe){Ae=Ae||0;for(let R=0;R<16;++R){pe[Ae+R]=me[R]}return pe}return(0,ye.unsafeStringify)(me)}var me=v4;pe["default"]=me},79120:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(65998));var ge=_interopRequireDefault(Ae(85274));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ye=(0,he.default)("v5",80,ge.default);var me=ye;pe["default"]=me},66900:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(40814));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function validate(R){return typeof R==="string"&&he.default.test(R)}var ge=validate;pe["default"]=ge},32414:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(66900));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function version(R){if(!(0,he.default)(R)){throw TypeError("Invalid UUID")}return parseInt(R.slice(14,15),16)}var ge=version;pe["default"]=ge},67627:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.args=void 0;const he=Ae(47261);const ge=Ae(42186);const ye=Ae(78571);const args=R=>{const pe=/"[^"]+"|'[^']+'|\S+/g;if(ye.env.github()&&!ye.env.mock()){R=(0,ge.getInput)("transmute")}return(0,he.parseArgs)({allowPositionals:true,args:R.match(pe)||[],options:{verbose:{type:"boolean",short:"v"},detached:{type:"boolean",short:"d"},compact:{type:"boolean",short:"c"},output:{type:"string",short:"o"},push:{type:"boolean"},env:{type:"string"},"credential-type":{type:"string"},"presentation-type":{type:"string"},"graph-type":{type:"string"},iss:{type:"string"},sub:{type:"string"},kid:{type:"string"},alg:{type:"string"},enc:{type:"string"},crv:{type:"string"},log:{type:"string"}}})};pe.args=args},78571:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.env=void 0;const github=()=>!!process.env.GITHUB_ACTION;const mock=()=>process.env.GITHUB_ACTION==="jest-mock";pe.env={github:github,mock:mock}},94700:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.facade=void 0;const he=Ae(42186);const ge=Ae(67627);const ye=Ae(14452);const me=Ae(78571);async function facade(R=process.argv.slice(2).join(" ")){try{await(0,ye.handler)((0,ge.args)(R))}catch(R){const pe="💀 Internal Error.";if(me.env.github()&&!me.env.mock()){(0,he.setFailed)(pe)}else{console.error(R)}}}pe.facade=facade},14452:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=void 0;const me=ye(Ae(95370));const ve=ye(Ae(15314));const be=ye(Ae(38600));const Ee=ye(Ae(1340));const Ce=ye(Ae(86117));const we={jose:me,cose:ve,scitt:be,vcwg:Ee,graph:Ce};const handler=async R=>{const[pe]=R.positionals;if(we[pe]){await we[pe].handler(R)}else{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}};pe.handler=handler},37875:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(78571),pe);ge(Ae(94700),pe);ge(Ae(14452),pe)},65841:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=void 0;const ve=me(Ae(57147));const be=ye(Ae(88844));const Ee=ye(Ae(67585));const Ce=Ae(42186);const we=Ae(37875);const handler=async function({positionals:R,values:pe}){R=R.slice(1);const Ae=R.shift();switch(Ae){case"keygen":{const R=pe.output;const Ae=pe.alg||"ES256";const he=pe.verbose||false;const ge=await be.key.generate(Ae,"application/cose-key");const ye=ge.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(ge);if(he){const R=`🔑 ${Buffer.from(ye).toString("hex")}`;(0,Ce.debug)(R)}if(R){ve.default.writeFileSync(R,be.cbor.encode(ge))}const me=Buffer.from(be.cbor.encode(ge));if(we.env.github()){const R=ge.get(-4);if(R){(0,Ce.setSecret)(Buffer.from(R).toString("hex"))}(0,Ce.setOutput)("cbor",me.toString("hex"))}else{const R=await be.cbor.diagnose(me);console.log(R)}break}case"keypub":{const Ae=pe.output;const he=pe.verbose||false;const[ge]=R;const ye=be.cbor.decode(ve.default.readFileSync(ge));if(we.env.github()){if(ye.get(-4)){(0,Ce.setSecret)(ye.get(-4))}}const me=be.key.extractPublicCoseKey(ye);const Ee=me.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(me);if(he){const R=`🔑 ${Buffer.from(Ee).toString("hex")}`;(0,Ce.debug)(R)}const _e=be.cbor.encode(me);if(Ae){ve.default.writeFileSync(Ae,_e)}if(we.env.github()){(0,Ce.setOutput)("cbor",Buffer.from(_e).toString("hex"))}else{const R=await be.cbor.diagnose(_e);console.log(R)}break}case"sign":{const Ae=pe.output;const he=pe.detached||false;const ge=pe.verbose||false;const[ye,me]=R;const _e=be.cbor.decode(ve.default.readFileSync(ye));const Ie=_e.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(_e);if(ge){const R=`🔑 ${Buffer.from(Ie).toString("hex")}`;(0,Ce.debug)(R)}if(we.env.github()){if(_e.get(-4)){(0,Ce.setSecret)(Buffer.from(_e.get(-4)).toString("hex"))}}let Se=pe.alg;if(_e.get(3)){Se=be.IANACOSEAlgorithms[`${_e.get(3)}`].Name}if(!Se){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Be=ve.default.readFileSync(me);let ke;if(he){const R=be.detached.signer({remote:be.crypto.signer({privateKeyJwk:await be.key.convertCoseKeyToJsonWebKey(_e)})});ke=await R.sign({protectedHeader:be.ProtectedHeader([[be.Protected.Alg,_e.get(3)]]),unprotectedHeader:new Map,payload:Be})}else{const R=be.attached.signer({remote:be.crypto.signer({privateKeyJwk:await be.key.convertCoseKeyToJsonWebKey(_e)})});ke=await R.sign({protectedHeader:be.ProtectedHeader([[be.Protected.Alg,_e.get(3)]]),unprotectedHeader:new Map,payload:Be})}if(Ae){ve.default.writeFileSync(Ae,Buffer.from(ke))}if(we.env.github()){(0,Ce.setOutput)("cbor",Buffer.from(ke).toString("hex"))}else{const R=await Ee.render(Buffer.from(ke),"application/cbor-diagnostic");console.log(R)}break}case"verify":{const Ae=pe.output;const he=pe.verbose||false;const ge=pe.detached||false;const[ye,me,_e]=R;const Ie=be.cbor.decode(ve.default.readFileSync(ye));const Se=Ie.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(Ie);if(he){const R=`🔑 ${Buffer.from(Se).toString("hex")}`;(0,Ce.debug)(R)}if(we.env.github()){if(Ie.get(-4)){(0,Ce.setSecret)(Buffer.from(Ie.get(-4)).toString("hex"))}}let Be=pe.alg;if(Ie.get(3)){Be=be.IANACOSEAlgorithms[`${Ie.get(3)}`].Name}if(!Be){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}const ke=ve.default.readFileSync(me);let Oe;if(ge){const R=be.detached.verifier({resolver:{resolve:async()=>be.key.convertCoseKeyToJsonWebKey(Ie)}});Oe=await R.verify({payload:ve.default.readFileSync(_e),coseSign1:ke})}else{const R=be.attached.verifier({resolver:{resolve:async()=>be.key.convertCoseKeyToJsonWebKey(Ie)}});Oe=await R.verify({coseSign1:ke})}if(Ae){ve.default.writeFileSync(Ae,Buffer.from(Oe))}if(we.env.github()){(0,Ce.setOutput)("cbor",Buffer.from(Oe).toString("hex"))}else{const R=await Ee.render(Buffer.from(ke),"application/cbor-diagnostic");console.log(R)}break}default:{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}}};pe.handler=handler},15314:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(65841),pe)},45493:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.annotate=void 0;const getLabelFromIri=R=>R.split("/").pop().split("#").pop();const Ae=["https://www.w3.org/2018/credentials#verifiableCredential"];const addLabelsFromEdge=(R,pe,Ae,he)=>{const ge=R.edges.filter((R=>R.label===Ae));ge.forEach((Ae=>{const ge=R.nodes[Ae[pe]];ge.labels=ge.labels.filter((R=>R!=="Node"));const ye=Ae[he];ge.labels.push(ye)}))};const removeRdfTypes=R=>{const pe=R.edges.filter((R=>R.label==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"));pe.forEach((pe=>{const Ae=R.nodes[pe.source];Ae.labels=Ae.labels.filter((R=>R!=="Node"));Ae.labels.push(pe.target);delete R.nodes[pe.target];const he=R.edges.findIndex((R=>JSON.stringify(R)===JSON.stringify(pe)));R.edges.splice(he,1)}))};const readableEdges=R=>{R.edges=R.edges.map((R=>({...R,label:getLabelFromIri(R.label),predicate:R.label})))};const addVCDMVocab=R=>{R.edges.forEach((pe=>{if(pe.label&&pe.label.startsWith("https://www.w3.org/2018/credentials")){if(!Ae.includes(pe.label)){addLabelsFromEdge(R,"target",pe.label,"label")}}if(pe.label&&pe.label.startsWith("https://www.w3.org/ns/credentials/examples")){if(!Ae.includes(pe.label)){addLabelsFromEdge(R,"target",pe.label,"label")}}if(pe.label&&pe.label.startsWith("https://w3id.org/security")){if(pe.target&&pe.target.startsWith("https://w3id.org/security")){addLabelsFromEdge(R,"target",pe.label,"target")}else{addLabelsFromEdge(R,"target",pe.label,"label")}}}))};const annotate=R=>{addVCDMVocab(R);removeRdfTypes(R);readableEdges(R);return R};pe.annotate=annotate},75593:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.canonize=void 0;const ge=he(Ae(11171));const ye=Ae(43);const me=Ae(54310);const ve=["subject","predicate","object","graph"];const signBlankNodeComponents=async({quad:R,signer:pe})=>{const Ae=JSON.parse(JSON.stringify(R));for(const he of ve){if(R[he].termType==="BlankNode"){Ae[he].value=await pe.sign(R[he].value)}}return Ae};const canonize=async({signer:R,labels:pe,document:Ae,documentLoader:he})=>{if(!(Ae&&typeof Ae==="object")){throw new TypeError('"document" must be an object.')}const ve=await ge.default.canonize(Ae,{algorithm:"URDNA2015",format:"application/n-quads",documentLoader:he,safe:false});const be=ve.split("\n").sort().join("\n");const Ee=await(0,me.remoteBlankNodeSigner)({labels:pe,signer:R});const Ce=await Promise.all(ye.NQuads.parse(be).map((R=>signBlankNodeComponents({quad:R,signer:Ee}))));return Ce.sort()};pe.canonize=canonize},81103:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.contexts=void 0;const ge=he(Ae(82817));const ye=he(Ae(67117));const me=he(Ae(67587));const ve=he(Ae(38428));pe.contexts={"https://www.w3.org/2018/credentials/v1":ge.default,"https://www.w3.org/ns/credentials/v2":ye.default,"https://www.w3.org/ns/credentials/examples/v2":me.default,"https://w3id.org/traceability/v1":ve.default}},1835:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.documentLoader=pe.defaultContext=void 0;const he=Ae(81103);pe.defaultContext={"@context":{"@vocab":"https://jsld.org/default#"}};const documentLoader=async R=>{if(he.contexts[R]){return{document:he.contexts[R]}}console.log("Unsupported iri: "+R);return{document:pe.defaultContext}};pe.documentLoader=documentLoader},19711:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.push=pe.driver=void 0;const ge=he(Ae(42934));const ye=Ae(42186);const driver=()=>{const R=ge.default.driver(`${process.env.NEO4J_URI||(0,ye.getInput)("neo4j-uri")}`,ge.default.auth.basic(`${process.env.NEO4J_USERNAME||(0,ye.getInput)("neo4j-user")}`,`${process.env.NEO4J_PASSWORD||(0,ye.getInput)("neo4j-password")}`));return R};pe.driver=driver;const push=async(R,pe)=>{await R.run({text:`${pe.query}`,parameters:pe.params})};pe.push=push},30498:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.injection=pe.query=void 0;const ge=he(Ae(99623));const setParam=(R,pe)=>{const Ae=Object.keys(pe).length;pe[Ae]=R;const he="$"+Ae.toString();if((0,ge.default)(R,ge.default.ISO_8601).isValid()){return`datetime(${he})`}return he};const setProperties=(R,pe,Ae)=>{let he="";if(Object.keys(pe).length>1){const{id:ge,labels:ye,target:me,source:ve,...be}=pe;const Ee=Object.keys(be);const Ce=[];for(const pe in Ee){const he=Ee[pe];const ge=be[Ee[pe]];Ce.push(` SET ${R}.\`${he}\`=${setParam(ge,Ae)}`)}he=Ce.join("\n")+"\n"}return he};const addNodes=(R,pe,Ae)=>{const he={};const ge=Object.values(R.nodes);for(const R in ge){const ye=ge[R];const{id:me,labels:ve}=ye;he[me]=`n${R}`;const be=Array.isArray(ve)?ve.join("`:`"):ve;pe+=`MERGE (n${R}:\`${be}\`{id:${setParam(me,Ae)}}) \n`;pe+=setProperties(`n${R}`,ye,Ae)}return{nodes:he,query:pe,params:Ae}};const addEdges=(R,pe,Ae,he)=>{for(const ge in R.edges){const ye=R.edges[ge];const me=pe[ye.source];const ve=pe[ye.target];const be=ye.label;Ae+=`MERGE (${me})-[e${ge}:\`${be}\`]->(${ve})\n`;Ae+=setProperties(`e${ge}`,ye,he)}return Ae};const removeEmptyLines=R=>R.split("\n").filter((R=>R!=="")).join("\n");const query=async R=>{const pe={};const Ae=addNodes(R,``,pe);Ae.query=addEdges(R,Ae.nodes,Ae.query,pe);Ae.query+=`RETURN ${Object.values(Ae.nodes)}\n`;Ae.query=removeEmptyLines(Ae.query);Ae.query+="\n";Ae.params=pe;return Ae};pe.query=query;const injection=({query:R,params:pe})=>{for(const Ae of Object.keys(pe)){R=R.replace(`$${Ae}`,pe[Ae])}return R};pe.injection=injection},5196:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.hmac=void 0;const ge=he(Ae(6113));const ye=Ae(34061);const me=new Uint8Array(32);me[0]=1;me[31]=1;const key=()=>ge.default.webcrypto.getRandomValues(new Uint8Array(32));const ve={HS256:"sha256"};const signer=async R=>{const pe="HS256";const Ae=ve[pe];if(!Ae){throw new Error("Unsupoorted HMAC")}return{export:(Ae="#hmac")=>{const he={kid:Ae,kty:"oct",alg:pe,use:"sig",key_ops:["sign"],k:ye.base64url.encode(R)};return he},sign:async pe=>{const he=ge.default.createHmac(Ae,R);return new Uint8Array(he.update(pe).digest())}}};pe.hmac={key:key,signer:signer,testKey:me}},33030:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.jsongraph=void 0;const me=ye(Ae(34061));const ve=Ae(1835);const be=Ae(45493);const Ee=Ae(75593);const Ce=Ae(5196);const addGraphNode=({graph:R,id:pe})=>{R.nodes[pe]={...R.nodes[pe]||{id:pe,labels:["Node"]}}};const addGraphNodeProperty=(R,pe,Ae,he)=>{R.nodes[pe]={...R.nodes[pe],[Ae]:he}};const addGraphEdge=({graph:R,source:pe,label:Ae,target:he})=>{R.edges.push(JSON.parse(JSON.stringify({source:pe,label:Ae,target:he})))};const updateGraph=(R,pe)=>{addGraphNode({graph:R,id:pe.subject.value});if(!pe.object.datatype){addGraphNode({graph:R,id:pe.object.value});addGraphEdge({graph:R,source:pe.subject.value,label:pe.predicate.value,target:pe.object.value})}else{addGraphNodeProperty(R,pe.subject.value,pe.predicate.value,pe.object.value)}};const fromNQuads=R=>{const pe={nodes:{},edges:[]};R.forEach((R=>{updateGraph(pe,R)}));return pe};const fromJsonLd=async({document:R,signer:pe})=>{const Ae=await(0,Ee.canonize)({signer:pe,document:R,documentLoader:ve.documentLoader});return fromNQuads(Ae)};const fromCredential=async R=>{const{proof:pe,...Ae}=R;const he=Ce.hmac.key();const ge=await Ce.hmac.signer(he);const ye=await fromJsonLd({document:Ae,signer:ge});if(pe!==undefined){const R=Array.isArray(pe)?pe:[pe];await Promise.all(R.map((async R=>{const pe=Ce.hmac.key();const he=await Ce.hmac.signer(pe);const ge=await fromJsonLd({document:{"@context":Ae["@context"],...R},signer:he});const me=Object.keys(ye.nodes)[0];const ve=Object.keys(ge.nodes)[0];ye.nodes={...ye.nodes,...ge.nodes};ye.edges=[...ye.edges,{source:ve,label:"https://w3id.org/security#proof",target:me},...ge.edges]})))}return ye};const fromPresentation=async R=>{const{proof:pe,verifiableCredential:Ae,...he}=R;const ge=Ce.hmac.key();const ye=await Ce.hmac.signer(ge);const ve=await fromJsonLd({document:he,signer:ye});if(Ae!==undefined){const R=Array.isArray(Ae)?Ae:[Ae];const pe=ve.edges.find((R=>R.target==="https://www.w3.org/2018/credentials#VerifiablePresentation"));await Promise.all(R.map((async R=>{const Ae=Array.isArray(R.type)?R.type:[R.type];let he=undefined;if(Ae.includes("EnvelopedVerifiableCredential")){if(R.id&&R.id.includes("+sd-jwt;")){const pe=R.id.split("+sd-jwt;").pop();const Ae=me.decodeJwt(pe);he=await fromCredential(Ae)}if(R.id&&R.id.includes("+jwt;")){const pe=R.id.split("+jwt;").pop();const Ae=me.decodeJwt(pe);he=await fromCredential(Ae)}}else{he=await fromCredential(R)}const ge=he.edges.find((R=>R.target==="https://www.w3.org/2018/credentials#VerifiableCredential"));const ye=pe.source;const be=ge.source;ve.nodes={...ve.nodes,...he.nodes};ve.edges=[...ve.edges,{source:ye,label:"https://www.w3.org/2018/credentials#verifiableCredential",target:be},...he.edges]})))}if(pe!==undefined){const Ae=Array.isArray(pe)?pe:[pe];await Promise.all(Ae.map((async pe=>{const Ae=Ce.hmac.key();const he=await Ce.hmac.signer(Ae);const ge=await fromJsonLd({document:{"@context":R["@context"],...pe},signer:he});const ye=Object.keys(ve.nodes)[0];const me=Object.keys(ge.nodes)[0];ve.nodes={...ve.nodes,...ge.nodes};ve.edges=[...ve.edges,{source:me,label:"https://w3id.org/security#proof",target:ye},...ge.edges]})))}return ve};const graph=async(R,pe)=>{let Ae;const tokenToClaimset=R=>{const[pe,Ae,he]=(new TextDecoder).decode(R).split(".");return JSON.parse((new TextDecoder).decode(me.base64url.decode(Ae)))};switch(pe){case"application/vc":{Ae=await fromCredential(JSON.parse((new TextDecoder).decode(R)));break}case"application/vp":{Ae=await fromPresentation(R);break}case"application/vc-ld+jwt":case"application/vc-ld+sd-jwt":{Ae=await fromCredential(tokenToClaimset(R));break}case"application/vp-ld+jwt":case"application/vp-ld+sd-jwt":{Ae=await fromPresentation(tokenToClaimset(R));break}default:{throw new Error("Cannot compute graph from unsupported content type: "+pe)}}return(0,be.annotate)(Ae)};pe.jsongraph={graph:graph,fromNQuads:fromNQuads,fromCredential:fromCredential,fromPresentation:fromPresentation}},54310:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.remoteBlankNodeSigner=void 0;const he=Ae(34061);const ge=new TextEncoder;const remoteBlankNodeSigner=async({labels:R,signer:pe})=>R?{sign:async pe=>`_:${R.get(pe.slice(2))}`}:{sign:async R=>{const Ae=ge.encode(R.slice(2));const ye=await pe.sign(Ae);return`_:u${he.base64url.encode(ye)}`}};pe.remoteBlankNodeSigner=remoteBlankNodeSigner},21651:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=void 0;const ge=he(Ae(57147));const ye=Ae(42186);const me=Ae(37875);const ve=Ae(33030);const be=Ae(30498);const Ee=Ae(19711);const Ce=he(Ae(12437));const we=Ae(22276);const handler=async function({positionals:R,values:pe}){R=R.slice(1);const Ae=R.shift();const he=new TextEncoder;switch(Ae){case"assist":{const Ae=pe.output;const _e=pe["graph-type"]||"application/vnd.jgf+json";const Ie=pe["credential-type"]||pe["presentation-type"];const Se=pe.verbose||false;const[Be]=R;if(Se){const R=`🕸️ ${_e}`;(0,ye.debug)(R)}const ke=pe.env;if(ke){Ce.default.config({path:ke})}let Oe;let Re;if(!Be){let R="";const Ce=[];const Ie=await(0,we.getApi)();const{items:Be}=await(0,we.getPresentations)({sent:true,received:true,api:Ie});const ke=await(0,Ee.driver)();const Re=ke.session();for(const Ae of Be){try{const ge=he.encode(Ae.content);Oe=await ve.jsongraph.graph(ge,"application/vp-ld+sd-jwt");Ce.push(Oe);const ye=await(0,be.query)(Oe);const me=await(0,be.injection)(ye);R+=me+"\n";if(Se){const R=`\n${me}\n`;console.log(R)}if(pe.push){await(0,Ee.push)(Re,ye)}}catch(R){if(Se){const pe=`⛔ ${Ae.id}`;console.error(pe);console.error(R)}}}if(Ae){ge.default.writeFileSync(Ae,R)}if(me.env.github()){if(_e==="application/gql"){(0,ye.setOutput)("gql",R)}if(_e==="application/vnd.jgf+json"){(0,ye.setOutput)("json",Ce)}}else{if(!Ae){console.log(R)}}await ke.close()}else{const R=new Uint8Array(ge.default.readFileSync(Be));Oe=await ve.jsongraph.graph(R,Ie);Re=JSON.stringify(Oe,null,2);if(_e==="application/gql"){const R=await(0,be.query)(Oe);const Ae=await(0,be.injection)(R);Re=Ae;if(pe.push){const pe=await(0,Ee.driver)();const Ae=pe.session();await(0,Ee.push)(Ae,R);await pe.close()}}if(Ae){ge.default.writeFileSync(Ae,Re)}if(me.env.github()){if(_e==="application/gql"){(0,ye.setOutput)("gql",Re)}if(_e==="application/vnd.jgf+json"){(0,ye.setOutput)("json",Oe)}}else{if(!Ae){console.log(Re)}}}break}default:{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}}};pe.handler=handler},86117:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(21651),pe)},22276:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.getPresentations=pe.getApi=void 0;const ge=he(Ae(73772));const ye=Ae(42186);const getApi=async()=>await ge.default.fromEnv({CLIENT_ID:`${process.env.CLIENT_ID||(0,ye.getInput)("transmute-client-id")}`,CLIENT_SECRET:`${process.env.CLIENT_SECRET||(0,ye.getInput)("transmute-client-secret")}`,API_BASE_URL:`${process.env.API_BASE_URL||(0,ye.getInput)("transmute-api")}`,TOKEN_AUDIENCE:`${process.env.API_BASE_URL||(0,ye.getInput)("transmute-api")}`});pe.getApi=getApi;const getPresentations=async({sent:R,received:pe,api:Ae})=>{const he={items:[]};if(pe){const R=await Ae.presentations.getPresentationsSharedWithMe();const pe=R.data;if(R.data){he.page=pe.page;he.count=pe.count;he.items=[...he.items,...pe.items.map((R=>({id:R.id,content:R.verifiablePresentation})))]}}if(R){const R=await Ae.presentations.getPresentationsSharedWithOthers();const ge=R.data;if(R.data){he.page=ge.page;he.count=ge.count;he.items=[...he.items,...ge.items.map((R=>({id:R.id,content:R.verifiablePresentation})))]}if(pe){delete he.page;delete he.count}}return he};pe.getPresentations=getPresentations},95467:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=pe.toPublicKey=pe.prettyKey=void 0;const ve=me(Ae(57147));const be=ye(Ae(34061));const Ee=Ae(42186);const Ce=Ae(37875);const prettyKey=R=>{const{kid:pe,kty:Ae,crv:he,alg:ge,x:ye,y:me,d:ve}=R;return{kid:pe,kty:Ae,crv:he,alg:ge,x:ye,y:me,d:ve}};pe.prettyKey=prettyKey;const toPublicKey=R=>{const{kid:pe,kty:Ae,crv:he,alg:ge,x:ye,y:me}=R;return{kid:pe,kty:Ae,crv:he,alg:ge,x:ye,y:me}};pe.toPublicKey=toPublicKey;const handler=async function({positionals:R,values:Ae}){R=R.slice(1);const he=R.shift();switch(he){case"keygen":{const R=Ae.output;const he=Ae.alg||"ES256";const ge=Ae.crv||"Ed25519";const ye=Ae.verbose||false;const me=await be.generateKeyPair(he,{crv:ge});const we=await be.exportJWK(me.privateKey);we.kid=await be.calculateJwkThumbprint(we);we.alg=he;if(ye){const R=`🔑 ${we.kid}`;(0,Ee.debug)(R)}if(R){ve.default.writeFileSync(R,JSON.stringify((0,pe.prettyKey)(we),null,2))}if(Ce.env.github()){if(we.d){(0,Ee.setSecret)(we.d)}(0,Ee.setOutput)("json",(0,pe.prettyKey)(we))}else{console.log(JSON.stringify((0,pe.prettyKey)(we),null,2))}break}case"keypub":{const he=Ae.output;const ge=Ae.verbose||false;const[ye]=R;const me=JSON.parse(ve.default.readFileSync(ye).toString());if(Ce.env.github()){if(me.d){(0,Ee.setSecret)(me.d)}}const be=(0,pe.toPublicKey)(me);if(ge){const R=`🔑 ${be.kid}`;(0,Ee.debug)(R)}if(he){ve.default.writeFileSync(he,JSON.stringify(be,null,2))}if(Ce.env.github()){(0,Ee.setOutput)("json",be)}else{console.log(JSON.stringify(be,null,2))}break}case"sign":{const pe=Ae.output;const he=Ae.compact||false;const ge=Ae.verbose||false;const ye=Ae.detached||false;const[me,we]=R;const _e=JSON.parse(ve.default.readFileSync(me).toString());if(Ce.env.github()){if(_e.d){(0,Ee.setSecret)(_e.d)}}const Ie=_e.alg||Ae.alg;if(!Ie){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Se={alg:Ie};if(ye){Se.b64=false;Se.crit=["b64"]}const Be=new Uint8Array(ve.default.readFileSync(we));const ke=await new be.FlattenedSign(Be).setProtectedHeader(Se).sign(await be.importJWK(_e));if(ge){const R=`🔑 ${_e.kid}`;(0,Ee.debug)(R)}if(pe){if(he){ve.default.writeFileSync(pe,`${ke.protected}.${ke.payload}.${ke.signature}`)}else{ve.default.writeFileSync(pe,JSON.stringify(ke,null,2))}}if(Ce.env.github()){if(he){(0,Ee.setOutput)("jws",`${ke.protected}.${ke.payload}.${ke.signature}`)}else{(0,Ee.setOutput)("json",ke)}}else{if(!pe){if(he){console.log(`${ke.protected}.${ke.payload}.${ke.signature}`)}else{console.log(JSON.stringify(ke,null,2))}}}break}case"verify":{const pe=Ae.output;const he=Ae.compact||false;const ge=Ae.verbose||false;const ye=Ae.detached||false;const[me,we,_e]=R;const Ie=JSON.parse(ve.default.readFileSync(me).toString());const Se=Ie.alg||Ae.alg;if(!Se){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}let Be=ve.default.readFileSync(we).toString();if(he){const[R,pe,Ae]=Be.split(".");Be={protected:R,payload:pe,signature:Ae}}else{Be=JSON.parse(Be)}if(ye){Be.payload=new Uint8Array(ve.default.readFileSync(_e))}const{payload:ke,protectedHeader:Oe}=await be.flattenedVerify(Be,await be.importJWK(Ie));if(ge){const R=`🔑 ${Ie.kid}`;(0,Ee.debug)(R)}if(pe){ve.default.writeFileSync(pe,ke)}if(Ce.env.github()){(0,Ee.setOutput)("json",Oe)}else{console.log(JSON.stringify(Oe,null,2))}break}case"encrypt":{const pe=Ae.compact||false;const he=Ae.enc||false;const ge=Ae.verbose||false;const[ye,me]=R;const we=JSON.parse(ve.default.readFileSync(ye).toString());const _e=we.alg||Ae.alg;if(!he){const R=`❌ --enc is required.`;console.error(R);throw new Error(R)}if(!_e){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}const Ie=new Uint8Array(ve.default.readFileSync(me));const Se={alg:_e};let Be;if(pe){Be=await new be.CompactEncrypt(Ie).setProtectedHeader({enc:he,alg:`${we.alg}`}).encrypt(await be.importJWK(we))}else{Be=await new be.GeneralEncrypt(Ie).setProtectedHeader({enc:he}).addRecipient(await be.importJWK(we)).setUnprotectedHeader(Se).encrypt()}if(ge){const R=`🔑 ${we.kid}`;(0,Ee.debug)(R)}if(Ce.env.github()){if(pe){(0,Ee.setOutput)("jwe",Be)}else{(0,Ee.setOutput)("json",Be)}}else{if(pe){console.log(Be)}else{console.log(JSON.stringify(Be,null,2))}}break}case"decrypt":{const pe=Ae.output;const he=Ae.compact||false;const ge=Ae.verbose||false;const[ye,me]=R;const we=JSON.parse(ve.default.readFileSync(ye).toString());if(Ce.env.github()){if(we.d){(0,Ee.setSecret)(we.d)}}let _e=ve.default.readFileSync(me).toString();let Ie;if(he){Ie=await be.compactDecrypt(_e,await be.importJWK(we))}else{_e=JSON.parse(_e);Ie=await be.generalDecrypt(_e,await be.importJWK(we))}const{plaintext:Se,protectedHeader:Be}=Ie;if(ge){const R=`🔑 ${we.kid}`;(0,Ee.debug)(R)}if(pe){ve.default.writeFileSync(pe,Se)}if(Ce.env.github()){(0,Ee.setOutput)("json",Be)}else{console.log(JSON.stringify(Be,null,2))}break}default:{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}}};pe.handler=handler},95370:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(95467),pe)},75294:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=void 0;const ve=me(Ae(57147));const be=ye(Ae(88844));const Ee=Ae(42186);const Ce=Ae(37875);const we=Ae(34061);const handler=async function({positionals:R,values:pe}){R=R.slice(1);const Ae=R.shift();switch(Ae){case"issue-statement":{const Ae=pe.output;const he=pe.verbose||false;const[ge,ye]=R;const me=be.cbor.decode(ve.default.readFileSync(ge));const we=me.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(me);if(he){const R=`🔑 ${Buffer.from(we).toString("hex")}`;(0,Ee.debug)(R)}if(Ce.env.github()){if(me.get(-4)){(0,Ee.setSecret)(Buffer.from(me.get(-4)).toString("hex"))}}let _e=pe.alg;if(me.get(3)){_e=be.IANACOSEAlgorithms[`${me.get(3)}`].Name}if(!_e){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Ie=ve.default.readFileSync(ye);const Se=await be.hash.signer({remote:be.crypto.signer({privateKeyJwk:await be.key.convertCoseKeyToJsonWebKey(me)})}).sign({protectedHeader:be.ProtectedHeader([[be.Protected.Alg,me.get(3)],[be.Protected.PayloadHashAlgorithm,be.Hash.SHA256]]),unprotectedHeader:new Map,payload:Ie});if(Ae){ve.default.writeFileSync(Ae,Buffer.from(Se))}if(Ce.env.github()){(0,Ee.setOutput)("cbor",Buffer.from(Se).toString("hex"))}else{const R=await be.cbor.diagnose(Buffer.from(Se));console.log(R)}break}case"verify-statement-hash":{const Ae=pe.output;const he=pe.verbose||false;const[ge,ye,me]=R;const we=be.cbor.decode(ve.default.readFileSync(ge));const _e=we.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(we);if(he){const R=`🔑 ${Buffer.from(_e).toString("hex")}`;(0,Ee.debug)(R)}let Ie=pe.alg;if(we.get(3)){Ie=be.IANACOSEAlgorithms[`${we.get(3)}`].Name}if(!Ie){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}const Se=ve.default.readFileSync(ye);const Be=await be.attached.verifier({resolver:{resolve:async()=>be.key.convertCoseKeyToJsonWebKey(we)}}).verify({coseSign1:Se});if(me){if(me.toLowerCase()!==Buffer.from(Be).toString("hex")){throw new Error(`Signature verification failed for hash: ${Buffer.from(Be).toString("hex")}`)}}else{throw new Error(`Unable to verify signature for hash: ${Buffer.from(Be).toString("hex")}`)}if(Ae){ve.default.writeFileSync(Ae,Buffer.from(Be))}if(Ce.env.github()){(0,Ee.setOutput)("cbor",Buffer.from(Be).toString("hex"))}else{const R=await be.cbor.diagnose(Buffer.from(Se));console.log(R)}break}case"issue-receipt":{const Ae=pe.log;const he=pe.output;const ge=pe.verbose||false;const[ye,me]=R;const _e=be.cbor.decode(ve.default.readFileSync(ye));const Ie=_e.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(_e);if(!Ae){const R=`❌ --log is required (only JSON is supported)`;console.error(R);throw new Error(R)}if(ge){const R=`🔑 ${Buffer.from(Ie).toString("hex")}`;(0,Ee.debug)(R)}if(Ce.env.github()){if(_e.get(-4)){(0,Ee.setSecret)(Buffer.from(_e.get(-4)).toString("hex"))}}let Se=pe.alg;if(_e.get(3)){Se=be.IANACOSEAlgorithms[`${_e.get(3)}`].Name}if(!Se){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Be=ve.default.readFileSync(me);const ke=be.detached.signer({remote:be.crypto.signer({privateKeyJwk:await be.key.convertCoseKeyToJsonWebKey(_e)})});let Oe=[];try{Oe=JSON.parse(ve.default.readFileSync(Ae).toString()).entries.map((R=>we.base64url.decode(R)))}catch(R){}const Re=await be.receipt.leaf(Be);Oe.push(Re);const Qe=await be.receipt.inclusion.issue({protectedHeader:be.ProtectedHeader([[be.Protected.Alg,be.Signature.ES256],[be.Protected.ProofType,be.Receipt.Inclusion]]),entry:Oe.length-1,entries:Oe,signer:ke});const xe=Oe.map((R=>we.base64url.encode(R)));const Pe=await be.receipt.add(Be,Qe);if(he){ve.default.writeFileSync(Ae,JSON.stringify({entries:xe},null,2));ve.default.writeFileSync(he,Buffer.from(Pe))}if(Ce.env.github()){(0,Ee.setOutput)("cbor",Buffer.from(Pe).toString("hex"))}else{const R=await be.cbor.diagnose(Buffer.from(Pe));console.log(R)}break}case"verify-receipt-hash":{const Ae=pe.output;const he=pe.verbose||false;const[ge,ye,me]=R;const we=be.cbor.decode(ve.default.readFileSync(ge));const _e=we.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(we);if(he){const R=`🔑 ${Buffer.from(_e).toString("hex")}`;(0,Ee.debug)(R)}const Ie=await be.receipt.verifier({resolve:async()=>await be.key.convertCoseKeyToJsonWebKey(we)});const Se=ve.default.readFileSync(ye);const Be=await Ie.verify({coseSign1:Se,payload:Buffer.from(me,"hex")});if(Buffer.from(Be.payload).toString("hex")!==Buffer.from(me,"hex").toString("hex")){throw new Error(`Signature verification failed for hash: ${Buffer.from(Be.payload).toString("hex")}`)}if(Ae){ve.default.writeFileSync(Ae,Buffer.from(Be.payload))}if(Ce.env.github()){(0,Ee.setOutput)("cbor",Buffer.from(Be.payload).toString("hex"))}else{const R=await be.cbor.diagnose(Buffer.from(Se));console.log(R)}break}default:{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}}};pe.handler=handler},38600:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(75294),pe)},31674:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=void 0;const ve=me(Ae(57147));const be=ye(Ae(34061));const Ee=ye(Ae(88844));const Ce=ye(Ae(97434));const we=me(Ae(44083));const _e=Ae(42186);const Ie=Ae(37875);const handler=async function({positionals:R,values:pe}){R=R.slice(1);const Ae=R.shift();switch(Ae){case"issuer-claims":{const Ae=pe.output;const he=pe.verbose||false;const[ge]=R;const ye=JSON.parse(ve.default.readFileSync(ge).toString());const me=we.default.stringify(ye);if(he){const R=me;(0,_e.debug)(R)}if(Ae){ve.default.writeFileSync(Ae,me)}else{if(Ie.env.github()){(0,_e.setOutput)("yaml",me)}else{console.log(me)}}break}case"issue-credential":{const Ae=pe.output;const he=pe["credential-type"];const ge=pe.verbose||false;const[ye,me]=R;const we=JSON.parse(ve.default.readFileSync(ye).toString());if(Ie.env.github()){if(we.d){(0,_e.setSecret)(we.d)}}if(ge){const R=`🔑 ${we.kid}`;(0,_e.debug)(R)}const Se=we.alg||pe.alg;if(!Se){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Be=we.kid||pe.kid;const ke=await Ce.issuer({alg:Se,type:he,signer:{sign:async R=>{if(he.includes("+cose")){const pe=Ee.attached.signer({remote:Ee.crypto.signer({privateKeyJwk:await Ce.key.importJWK({type:"application/jwk+json",content:Ce.text.encoder.encode(JSON.stringify(we))})})});const Ae=Object.values(Ee.IANACOSEAlgorithms).find((R=>R.Name===Se));const he=Ae?parseInt(Ae===null||Ae===void 0?void 0:Ae.Value,10):-7;const ge=await pe.sign({protectedHeader:new Map([[1,he]]),unprotectedHeader:new Map,payload:R});return new Uint8Array(ge)}else{const pe=await new be.CompactSign(R).setProtectedHeader({kid:Be,alg:Se}).sign(await be.importJWK(we));return Ce.text.encoder.encode(pe)}}}}).issue({claimset:ve.default.readFileSync(me)});if(Ae){ve.default.writeFileSync(Ae,Buffer.from(ke))}if(Ie.env.github()){if(he.endsWith("+jwt")){(0,_e.setOutput)("jwt",Ce.text.decoder.decode(ke))}if(he.endsWith("+sd-jwt")){(0,_e.setOutput)("sd-jwt",Ce.text.decoder.decode(ke))}if(he.endsWith("+cose")){(0,_e.setOutput)("cbor",Buffer.from(ke).toString("hex"))}}else{if(!Ae){if(he.endsWith("+jwt")){console.log(Ce.text.decoder.decode(ke))}if(he.endsWith("+sd-jwt")){console.log(Ce.text.decoder.decode(ke))}if(he.endsWith("+cose")){console.log(Buffer.from(ke).toString("hex"))}}}break}case"verify-credential":{const Ae=pe.output;const he=pe["credential-type"];const ge=pe.verbose||false;const[ye,me]=R;const be=JSON.parse(ve.default.readFileSync(ye).toString());if(ge){const R=`🔑 ${be.kid}`;(0,_e.debug)(R)}const Ee=be.alg||pe.alg;if(!Ee){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}const we=await Ce.validator({resolver:{resolve:async({id:R,type:pe,content:Ae})=>{if(Ae!=undefined&&pe===he){return{type:"application/jwk+json",content:Ce.text.encoder.encode(JSON.stringify(be))}}}}}).validate({type:he,content:ve.default.readFileSync(me)});if(!we.verified){throw new Error("Credential verification failed.")}if(Ae){ve.default.writeFileSync(Ae,JSON.stringify(we,null,2))}if(Ie.env.github()){(0,_e.setOutput)("json",we)}else{if(!Ae){console.log(JSON.stringify(we,null,2))}}break}case"issue-presentation":{const Ae=pe.output;const he=pe["credential-type"];const ge=pe["presentation-type"];const ye=pe.verbose||false;const[me,we,Se]=R;const Be=JSON.parse(ve.default.readFileSync(me).toString());if(Ie.env.github()){if(Be.d){(0,_e.setSecret)(Be.d)}}if(ye){const R=`🔑 ${Be.kid}`;(0,_e.debug)(R)}const ke=Be.alg||pe.alg;if(!ke){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Oe=Be.kid||pe.kid;const Re=pe.sub;const Qe=await Ce.holder({alg:ke,type:ge}).issue({presentation:{"@context":["https://www.w3.org/ns/credentials/v2"],type:["VerifiablePresentation"],holder:Re},disclosures:[{type:he,credential:ve.default.readFileSync(we),disclosure:Se?ve.default.readFileSync(Se):undefined}],signer:{sign:async R=>{if(he.includes("+cose")){const pe=Ee.attached.signer({remote:Ee.crypto.signer({privateKeyJwk:await Ce.key.importJWK({type:"application/jwk+json",content:Ce.text.encoder.encode(JSON.stringify(Be))})})});const Ae=Object.values(Ee.IANACOSEAlgorithms).find((R=>R.Name===ke));const he=Ae?parseInt(Ae===null||Ae===void 0?void 0:Ae.Value,10):-7;const ge=await pe.sign({protectedHeader:new Map([[1,he]]),unprotectedHeader:new Map,payload:R});return new Uint8Array(ge)}else{const pe=await new be.CompactSign(R).setProtectedHeader({kid:Oe,alg:ke}).sign(await be.importJWK(Be));return Ce.text.encoder.encode(pe)}}}});if(Ae){ve.default.writeFileSync(Ae,Qe)}if(Ie.env.github()){if(ge.endsWith("+jwt")){(0,_e.setOutput)("jwt",Ce.text.decoder.decode(Qe))}if(ge.endsWith("+sd-jwt")){(0,_e.setOutput)("sd-jwt",Ce.text.decoder.decode(Qe))}if(ge.endsWith("+cose")){(0,_e.setOutput)("cbor",Buffer.from(Qe).toString("hex"))}}else{if(!Ae){if(ge.endsWith("+jwt")){console.log(Ce.text.decoder.decode(Qe))}if(ge.endsWith("+sd-jwt")){console.log(Ce.text.decoder.decode(Qe))}if(ge.endsWith("+cose")){console.log(Buffer.from(Qe).toString("hex"))}}}break}case"verify-presentation":{const Ae=pe.output;const he=pe["presentation-type"];const ge=pe.verbose||false;const[ye,me]=R;const be=JSON.parse(ve.default.readFileSync(ye).toString());if(ge){const R=`🔑 ${be.kid}`;(0,_e.debug)(R)}const Ee=be.alg||pe.alg;if(!Ee){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}const we=await Ce.validator({resolver:{resolve:async({id:R,type:pe,content:Ae})=>{if(Ae!=undefined&&pe===he){return{type:"application/jwk+json",content:Ce.text.encoder.encode(JSON.stringify(be))}}}}}).validate({type:he,content:ve.default.readFileSync(me)});if(!we.verified){throw new Error("Presentation verification failed.")}if(Ae){ve.default.writeFileSync(Ae,JSON.stringify(we,null,2))}if(Ie.env.github()){(0,_e.setOutput)("json",we)}else{if(!Ae){console.log(JSON.stringify(we,null,2))}}break}default:{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}}};pe.handler=handler},1340:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(31674),pe)},12276:module=>{module.exports=eval("require")("rdf-canonize-native")},39491:R=>{"use strict";R.exports=require("assert")},50852:R=>{"use strict";R.exports=require("async_hooks")},14300:R=>{"use strict";R.exports=require("buffer")},96206:R=>{"use strict";R.exports=require("console")},6113:R=>{"use strict";R.exports=require("crypto")},67643:R=>{"use strict";R.exports=require("diagnostics_channel")},9523:R=>{"use strict";R.exports=require("dns")},82361:R=>{"use strict";R.exports=require("events")},57147:R=>{"use strict";R.exports=require("fs")},13685:R=>{"use strict";R.exports=require("http")},85158:R=>{"use strict";R.exports=require("http2")},95687:R=>{"use strict";R.exports=require("https")},41808:R=>{"use strict";R.exports=require("net")},72254:R=>{"use strict";R.exports=require("node:buffer")},6005:R=>{"use strict";R.exports=require("node:crypto")},15673:R=>{"use strict";R.exports=require("node:events")},87561:R=>{"use strict";R.exports=require("node:fs")},88849:R=>{"use strict";R.exports=require("node:http")},22286:R=>{"use strict";R.exports=require("node:https")},87503:R=>{"use strict";R.exports=require("node:net")},49411:R=>{"use strict";R.exports=require("node:path")},97742:R=>{"use strict";R.exports=require("node:process")},84492:R=>{"use strict";R.exports=require("node:stream")},72477:R=>{"use strict";R.exports=require("node:stream/web")},41041:R=>{"use strict";R.exports=require("node:url")},47261:R=>{"use strict";R.exports=require("node:util")},65628:R=>{"use strict";R.exports=require("node:zlib")},22037:R=>{"use strict";R.exports=require("os")},71017:R=>{"use strict";R.exports=require("path")},4074:R=>{"use strict";R.exports=require("perf_hooks")},63477:R=>{"use strict";R.exports=require("querystring")},12781:R=>{"use strict";R.exports=require("stream")},35356:R=>{"use strict";R.exports=require("stream/web")},71576:R=>{"use strict";R.exports=require("string_decoder")},24404:R=>{"use strict";R.exports=require("tls")},76224:R=>{"use strict";R.exports=require("tty")},57310:R=>{"use strict";R.exports=require("url")},73837:R=>{"use strict";R.exports=require("util")},29830:R=>{"use strict";R.exports=require("util/types")},71267:R=>{"use strict";R.exports=require("worker_threads")},59796:R=>{"use strict";R.exports=require("zlib")},92960:(R,pe,Ae)=>{"use strict";const he=Ae(84492).Writable;const ge=Ae(47261).inherits;const ye=Ae(51142);const me=Ae(81620);const ve=Ae(92032);const be=45;const Ee=Buffer.from("-");const Ce=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(R){if(!(this instanceof Dicer)){return new Dicer(R)}he.call(this,R);if(!R||!R.headerFirst&&typeof R.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof R.boundary==="string"){this.setBoundary(R.boundary)}else{this._bparser=undefined}this._headerFirst=R.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:R.partHwm};this._pause=false;const pe=this;this._hparser=new ve(R);this._hparser.on("header",(function(R){pe._inHeader=false;pe._part.emit("header",R)}))}ge(Dicer,he);Dicer.prototype.emit=function(R){if(R==="finish"&&!this._realFinish){if(!this._finished){const R=this;process.nextTick((function(){R.emit("error",new Error("Unexpected end of multipart data"));if(R._part&&!R._ignoreData){const pe=R._isPreamble?"Preamble":"Part";R._part.emit("error",new Error(pe+" terminated early due to unexpected end of multipart data"));R._part.push(null);process.nextTick((function(){R._realFinish=true;R.emit("finish");R._realFinish=false}));return}R._realFinish=true;R.emit("finish");R._realFinish=false}))}}else{he.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(R,pe,Ae){if(!this._hparser&&!this._bparser){return Ae()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new me(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const pe=this._hparser.push(R);if(!this._inHeader&&pe!==undefined&&pe{"use strict";const he=Ae(15673).EventEmitter;const ge=Ae(47261).inherits;const ye=Ae(21467);const me=Ae(51142);const ve=Buffer.from("\r\n\r\n");const be=/\r\n/g;const Ee=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(R){he.call(this);R=R||{};const pe=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=ye(R,"maxHeaderPairs",2e3);this.maxHeaderSize=ye(R,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new me(ve);this.ss.on("info",(function(R,Ae,he,ge){if(Ae&&!pe.maxed){if(pe.nread+ge-he>=pe.maxHeaderSize){ge=pe.maxHeaderSize-pe.nread+he;pe.nread=pe.maxHeaderSize;pe.maxed=true}else{pe.nread+=ge-he}pe.buffer+=Ae.toString("binary",he,ge)}if(R){pe._finish()}}))}ge(HeaderParser,he);HeaderParser.prototype.push=function(R){const pe=this.ss.push(R);if(this.finished){return pe}};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 R=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",R)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const R=this.buffer.split(be);const pe=R.length;let Ae,he;for(var ge=0;ge{"use strict";const he=Ae(47261).inherits;const ge=Ae(84492).Readable;function PartStream(R){ge.call(this,R)}he(PartStream,ge);PartStream.prototype._read=function(R){};R.exports=PartStream},51142:(R,pe,Ae)=>{"use strict";const he=Ae(15673).EventEmitter;const ge=Ae(47261).inherits;function SBMH(R){if(typeof R==="string"){R=Buffer.from(R)}if(!Buffer.isBuffer(R)){throw new TypeError("The needle has to be a String or a Buffer.")}const pe=R.length;if(pe===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(pe>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(pe);this._lookbehind_size=0;this._needle=R;this._bufpos=0;this._lookbehind=Buffer.alloc(pe);for(var Ae=0;Ae=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const Ae=this._lookbehind_size+ye;if(Ae>0){this.emit("info",false,this._lookbehind,0,Ae)}this._lookbehind.copy(this._lookbehind,0,Ae,this._lookbehind_size-Ae);this._lookbehind_size-=Ae;R.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=pe;this._bufpos=pe;return pe}}ye+=(ye>=0)*this._bufpos;if(R.indexOf(Ae,ye)!==-1){ye=R.indexOf(Ae,ye);++this.matches;if(ye>0){this.emit("info",true,R,this._bufpos,ye)}else{this.emit("info",true)}return this._bufpos=ye+he}else{ye=pe-he}while(ye0){this.emit("info",false,R,this._bufpos,ye{"use strict";const he=Ae(84492).Writable;const{inherits:ge}=Ae(47261);const ye=Ae(92960);const me=Ae(32183);const ve=Ae(78306);const be=Ae(31854);function Busboy(R){if(!(this instanceof Busboy)){return new Busboy(R)}if(typeof R!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof R.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof R.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:pe,...Ae}=R;this.opts={autoDestroy:false,...Ae};he.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(pe);this._finished=false}ge(Busboy,he);Busboy.prototype.emit=function(R){if(R==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}he.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(R){const pe=be(R["content-type"]);const Ae={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:R,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:pe,preservePath:this.opts.preservePath};if(me.detect.test(pe[0])){return new me(this,Ae)}if(ve.detect.test(pe[0])){return new ve(this,Ae)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(R,pe,Ae){this._parser.write(R,Ae)};R.exports=Busboy;R.exports["default"]=Busboy;R.exports.Busboy=Busboy;R.exports.Dicer=ye},32183:(R,pe,Ae)=>{"use strict";const{Readable:he}=Ae(84492);const{inherits:ge}=Ae(47261);const ye=Ae(92960);const me=Ae(31854);const ve=Ae(84619);const be=Ae(48647);const Ee=Ae(21467);const Ce=/^boundary$/i;const we=/^form-data$/i;const _e=/^charset$/i;const Ie=/^filename$/i;const Se=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(R,pe){let Ae;let he;const ge=this;let Be;const ke=pe.limits;const Oe=pe.isPartAFile||((R,pe,Ae)=>pe==="application/octet-stream"||Ae!==undefined);const Re=pe.parsedConType||[];const Qe=pe.defCharset||"utf8";const xe=pe.preservePath;const Pe={highWaterMark:pe.fileHwm};for(Ae=0,he=Re.length;Aeje){ge.parser.removeListener("part",onPart);ge.parser.on("part",skipPart);R.hitPartsLimit=true;R.emit("partsLimit");return skipPart(pe)}if(Ve){const R=Ve;R.emit("end");R.removeAllListeners("end")}pe.on("header",(function(ye){let Ee;let Ce;let Be;let ke;let Re;let je;let Fe=0;if(ye["content-type"]){Be=me(ye["content-type"][0]);if(Be[0]){Ee=Be[0].toLowerCase();for(Ae=0,he=Be.length;AeDe){const he=De-Fe+R.length;if(he>0){Ae.push(R.slice(0,he))}Ae.truncated=true;Ae.bytesRead=De;pe.removeAllListeners("data");Ae.emit("limit");return}else if(!Ae.push(R)){ge._pause=true}Ae.bytesRead=Fe};Ke=function(){We=undefined;Ae.push(null)}}else{if(He===Me){if(!R.hitFieldsLimit){R.hitFieldsLimit=true;R.emit("fieldsLimit")}return skipPart(pe)}++He;++Je;let Ae="";let he=false;Ve=pe;Le=function(R){if((Fe+=R.length)>Te){const ge=Te-(Fe-R.length);Ae+=R.toString("binary",0,ge);he=true;pe.removeAllListeners("data")}else{Ae+=R.toString("binary")}};Ke=function(){Ve=undefined;if(Ae.length){Ae=ve(Ae,"binary",ke)}R.emit("field",Ce,Ae,false,he,Re,Ee);--Je;checkFinished()}}pe._readableState.sync=false;pe.on("data",Le);pe.on("end",Ke)})).on("error",(function(R){if(We){We.emit("error",R)}}))})).on("error",(function(pe){R.emit("error",pe)})).on("finish",(function(){Ke=true;checkFinished()}))}Multipart.prototype.write=function(R,pe){const Ae=this.parser.write(R);if(Ae&&!this._pause){pe()}else{this._needDrain=!Ae;this._cb=pe}};Multipart.prototype.end=function(){const R=this;if(R.parser.writable){R.parser.end()}else if(!R._boy._done){process.nextTick((function(){R._boy._done=true;R._boy.emit("finish")}))}};function skipPart(R){R.resume()}function FileStream(R){he.call(this,R);this.bytesRead=0;this.truncated=false}ge(FileStream,he);FileStream.prototype._read=function(R){};R.exports=Multipart},78306:(R,pe,Ae)=>{"use strict";const he=Ae(27100);const ge=Ae(84619);const ye=Ae(21467);const me=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(R,pe){const Ae=pe.limits;const ge=pe.parsedConType;this.boy=R;this.fieldSizeLimit=ye(Ae,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=ye(Ae,"fieldNameSize",100);this.fieldsLimit=ye(Ae,"fields",Infinity);let ve;for(var be=0,Ee=ge.length;beme){this._key+=this.decoder.write(R.toString("binary",me,Ae))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();me=Ae+1}else if(he!==undefined){++this._fields;let Ae;const ye=this._keyTrunc;if(he>me){Ae=this._key+=this.decoder.write(R.toString("binary",me,he))}else{Ae=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(Ae.length){this.boy.emit("field",ge(Ae,"binary",this.charset),"",ye,false)}me=he+1;if(this._fields===this.fieldsLimit){return pe()}}else if(this._hitLimit){if(ye>me){this._key+=this.decoder.write(R.toString("binary",me,ye))}me=ye;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(meme){this._val+=this.decoder.write(R.toString("binary",me,he))}this.boy.emit("field",ge(this._key,"binary",this.charset),ge(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();me=he+1;if(this._fields===this.fieldsLimit){return pe()}}else if(this._hitLimit){if(ye>me){this._val+=this.decoder.write(R.toString("binary",me,ye))}me=ye;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(me0){this.boy.emit("field",ge(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",ge(this._key,"binary",this.charset),ge(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};R.exports=UrlEncoded},27100:R=>{"use strict";const pe=/\+/g;const Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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(R){R=R.replace(pe," ");let he="";let ge=0;let ye=0;const me=R.length;for(;geye){he+=R.substring(ye,ge);ye=ge}this.buffer="";++ye}}if(ye{"use strict";R.exports=function basename(R){if(typeof R!=="string"){return""}for(var pe=R.length-1;pe>=0;--pe){switch(R.charCodeAt(pe)){case 47:case 92:R=R.slice(pe+1);return R===".."||R==="."?"":R}}return R===".."||R==="."?"":R}},84619:function(R){"use strict";const pe=new TextDecoder("utf-8");const Ae=new Map([["utf-8",pe],["utf8",pe]]);function getDecoder(R){let pe;while(true){switch(R){case"utf-8":case"utf8":return he.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 he.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return he.utf16le;case"base64":return he.base64;default:if(pe===undefined){pe=true;R=R.toLowerCase();continue}return he.other.bind(R)}}}const he={utf8:(R,pe)=>{if(R.length===0){return""}if(typeof R==="string"){R=Buffer.from(R,pe)}return R.utf8Slice(0,R.length)},latin1:(R,pe)=>{if(R.length===0){return""}if(typeof R==="string"){return R}return R.latin1Slice(0,R.length)},utf16le:(R,pe)=>{if(R.length===0){return""}if(typeof R==="string"){R=Buffer.from(R,pe)}return R.ucs2Slice(0,R.length)},base64:(R,pe)=>{if(R.length===0){return""}if(typeof R==="string"){R=Buffer.from(R,pe)}return R.base64Slice(0,R.length)},other:(R,pe)=>{if(R.length===0){return""}if(typeof R==="string"){R=Buffer.from(R,pe)}if(Ae.has(this.toString())){try{return Ae.get(this).decode(R)}catch{}}return typeof R==="string"?R:R.toString()}};function decodeText(R,pe,Ae){if(R){return getDecoder(Ae)(R,pe)}return R}R.exports=decodeText},21467:R=>{"use strict";R.exports=function getLimit(R,pe,Ae){if(!R||R[pe]===undefined||R[pe]===null){return Ae}if(typeof R[pe]!=="number"||isNaN(R[pe])){throw new TypeError("Limit "+pe+" is not a valid number")}return R[pe]}},31854:(R,pe,Ae)=>{"use strict";const he=Ae(84619);const ge=/%[a-fA-F0-9][a-fA-F0-9]/g;const ye={"%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(R){return ye[R]}const me=0;const ve=1;const be=2;const Ee=3;function parseParams(R){const pe=[];let Ae=me;let ye="";let Ce=false;let we=false;let _e=0;let Ie="";const Se=R.length;for(var Be=0;Be{"use strict";const{normalizeIPv6:he,normalizeIPv4:ge,removeDotSegments:ye,recomposeAuthority:me,normalizeComponentEncoding:ve}=Ae(96743);const be=Ae(4923);function normalize(R,pe){if(typeof R==="string"){R=serialize(parse(R,pe),pe)}else if(typeof R==="object"){R=parse(serialize(R,pe),pe)}return R}function resolve(R,pe,Ae){const he=Object.assign({scheme:"null"},Ae);const ge=resolveComponents(parse(R,he),parse(pe,he),he,true);return serialize(ge,{...he,skipEscape:true})}function resolveComponents(R,pe,Ae,he){const ge={};if(!he){R=parse(serialize(R,Ae),Ae);pe=parse(serialize(pe,Ae),Ae)}Ae=Ae||{};if(!Ae.tolerant&&pe.scheme){ge.scheme=pe.scheme;ge.userinfo=pe.userinfo;ge.host=pe.host;ge.port=pe.port;ge.path=ye(pe.path||"");ge.query=pe.query}else{if(pe.userinfo!==undefined||pe.host!==undefined||pe.port!==undefined){ge.userinfo=pe.userinfo;ge.host=pe.host;ge.port=pe.port;ge.path=ye(pe.path||"");ge.query=pe.query}else{if(!pe.path){ge.path=R.path;if(pe.query!==undefined){ge.query=pe.query}else{ge.query=R.query}}else{if(pe.path.charAt(0)==="/"){ge.path=ye(pe.path)}else{if((R.userinfo!==undefined||R.host!==undefined||R.port!==undefined)&&!R.path){ge.path="/"+pe.path}else if(!R.path){ge.path=pe.path}else{ge.path=R.path.slice(0,R.path.lastIndexOf("/")+1)+pe.path}ge.path=ye(ge.path)}ge.query=pe.query}ge.userinfo=R.userinfo;ge.host=R.host;ge.port=R.port}ge.scheme=R.scheme}ge.fragment=pe.fragment;return ge}function equal(R,pe,Ae){if(typeof R==="string"){R=unescape(R);R=serialize(ve(parse(R,Ae),true),{...Ae,skipEscape:true})}else if(typeof R==="object"){R=serialize(ve(R,true),{...Ae,skipEscape:true})}if(typeof pe==="string"){pe=unescape(pe);pe=serialize(ve(parse(pe,Ae),true),{...Ae,skipEscape:true})}else if(typeof pe==="object"){pe=serialize(ve(pe,true),{...Ae,skipEscape:true})}return R.toLowerCase()===pe.toLowerCase()}function serialize(R,pe){const Ae={host:R.host,scheme:R.scheme,userinfo:R.userinfo,port:R.port,path:R.path,query:R.query,nid:R.nid,nss:R.nss,uuid:R.uuid,fragment:R.fragment,reference:R.reference,resourceName:R.resourceName,secure:R.secure,error:""};const he=Object.assign({},pe);const ge=[];const ve=be[(he.scheme||Ae.scheme||"").toLowerCase()];if(ve&&ve.serialize)ve.serialize(Ae,he);if(Ae.path!==undefined){if(!he.skipEscape){Ae.path=escape(Ae.path);if(Ae.scheme!==undefined){Ae.path=Ae.path.split("%3A").join(":")}}else{Ae.path=unescape(Ae.path)}}if(he.reference!=="suffix"&&Ae.scheme){ge.push(Ae.scheme);ge.push(":")}const Ee=me(Ae,he);if(Ee!==undefined){if(he.reference!=="suffix"){ge.push("//")}ge.push(Ee);if(Ae.path&&Ae.path.charAt(0)!=="/"){ge.push("/")}}if(Ae.path!==undefined){let R=Ae.path;if(!he.absolutePath&&(!ve||!ve.absolutePath)){R=ye(R)}if(Ee===undefined){R=R.replace(/^\/\//u,"/%2F")}ge.push(R)}if(Ae.query!==undefined){ge.push("?");ge.push(Ae.query)}if(Ae.fragment!==undefined){ge.push("#");ge.push(Ae.fragment)}return ge.join("")}const Ee=Array.from({length:127},((R,pe)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(pe))));function nonSimpleDomain(R){let pe=0;for(let Ae=0,he=R.length;Ae126||Ee[pe]){return true}}return false}const Ce=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function parse(R,pe){const Ae=Object.assign({},pe);const ye={scheme:undefined,userinfo:undefined,host:"",port:undefined,path:"",query:undefined,fragment:undefined};const me=R.indexOf("%")!==-1;let ve=false;if(Ae.reference==="suffix")R=(Ae.scheme?Ae.scheme+":":"")+"//"+R;const Ee=R.match(Ce);if(Ee){ye.scheme=Ee[1];ye.userinfo=Ee[3];ye.host=Ee[4];ye.port=parseInt(Ee[5],10);ye.path=Ee[6]||"";ye.query=Ee[7];ye.fragment=Ee[8];if(isNaN(ye.port)){ye.port=Ee[5]}if(ye.host){const R=ge(ye.host);if(R.isIPV4===false){const pe=he(R.host,{isIPV4:false});ye.host=pe.host.toLowerCase();ve=pe.isIPV6}else{ye.host=R.host;ve=true}}if(ye.scheme===undefined&&ye.userinfo===undefined&&ye.host===undefined&&ye.port===undefined&&!ye.path&&ye.query===undefined){ye.reference="same-document"}else if(ye.scheme===undefined){ye.reference="relative"}else if(ye.fragment===undefined){ye.reference="absolute"}else{ye.reference="uri"}if(Ae.reference&&Ae.reference!=="suffix"&&Ae.reference!==ye.reference){ye.error=ye.error||"URI is not a "+Ae.reference+" reference."}const R=be[(Ae.scheme||ye.scheme||"").toLowerCase()];if(!Ae.unicodeSupport&&(!R||!R.unicodeSupport)){if(ye.host&&(Ae.domainHost||R&&R.domainHost)&&ve===false&&nonSimpleDomain(ye.host)){try{ye.host=URL.domainToASCII(ye.host.toLowerCase())}catch(R){ye.error=ye.error||"Host's domain name can not be converted to ASCII: "+R}}}if(!R||R&&!R.skipNormalize){if(me&&ye.scheme!==undefined){ye.scheme=unescape(ye.scheme)}if(me&&ye.userinfo!==undefined){ye.userinfo=unescape(ye.userinfo)}if(me&&ye.host!==undefined){ye.host=unescape(ye.host)}if(ye.path!==undefined&&ye.path.length){ye.path=escape(unescape(ye.path))}if(ye.fragment!==undefined&&ye.fragment.length){ye.fragment=encodeURI(decodeURIComponent(ye.fragment))}}if(R&&R.parse){R.parse(ye,Ae)}}else{ye.error=ye.error||"URI can not be parsed."}return ye}const we={SCHEMES:be,normalize:normalize,resolve:resolve,resolveComponents:resolveComponents,equal:equal,serialize:serialize,parse:parse};R.exports=we;R.exports["default"]=we;R.exports.fastUri=we},4923:R=>{"use strict";const pe=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu;const Ae=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function isSecure(R){return typeof R.secure==="boolean"?R.secure:String(R.scheme).toLowerCase()==="wss"}function httpParse(R){if(!R.host){R.error=R.error||"HTTP URIs must have a host."}return R}function httpSerialize(R){const pe=String(R.scheme).toLowerCase()==="https";if(R.port===(pe?443:80)||R.port===""){R.port=undefined}if(!R.path){R.path="/"}return R}function wsParse(R){R.secure=isSecure(R);R.resourceName=(R.path||"/")+(R.query?"?"+R.query:"");R.path=undefined;R.query=undefined;return R}function wsSerialize(R){if(R.port===(isSecure(R)?443:80)||R.port===""){R.port=undefined}if(typeof R.secure==="boolean"){R.scheme=R.secure?"wss":"ws";R.secure=undefined}if(R.resourceName){const[pe,Ae]=R.resourceName.split("?");R.path=pe&&pe!=="/"?pe:undefined;R.query=Ae;R.resourceName=undefined}R.fragment=undefined;return R}function urnParse(R,pe){if(!R.path){R.error="URN can not be parsed";return R}const he=R.path.match(Ae);if(he){const Ae=pe.scheme||R.scheme||"urn";R.nid=he[1].toLowerCase();R.nss=he[2];const ge=`${Ae}:${pe.nid||R.nid}`;const ye=Ee[ge];R.path=undefined;if(ye){R=ye.parse(R,pe)}}else{R.error=R.error||"URN can not be parsed."}return R}function urnSerialize(R,pe){const Ae=pe.scheme||R.scheme||"urn";const he=R.nid.toLowerCase();const ge=`${Ae}:${pe.nid||he}`;const ye=Ee[ge];if(ye){R=ye.serialize(R,pe)}const me=R;const ve=R.nss;me.path=`${he||pe.nid}:${ve}`;pe.skipEscape=true;return me}function urnuuidParse(R,Ae){const he=R;he.uuid=he.nss;he.nss=undefined;if(!Ae.tolerant&&(!he.uuid||!pe.test(he.uuid))){he.error=he.error||"UUID is not valid."}return he}function urnuuidSerialize(R){const pe=R;pe.nss=(R.uuid||"").toLowerCase();return pe}const he={scheme:"http",domainHost:true,parse:httpParse,serialize:httpSerialize};const ge={scheme:"https",domainHost:he.domainHost,parse:httpParse,serialize:httpSerialize};const ye={scheme:"ws",domainHost:true,parse:wsParse,serialize:wsSerialize};const me={scheme:"wss",domainHost:ye.domainHost,parse:ye.parse,serialize:ye.serialize};const ve={scheme:"urn",parse:urnParse,serialize:urnSerialize,skipNormalize:true};const be={scheme:"urn:uuid",parse:urnuuidParse,serialize:urnuuidSerialize,skipNormalize:true};const Ee={http:he,https:ge,ws:ye,wss:me,urn:ve,"urn:uuid":be};R.exports=Ee},83157:R=>{"use strict";const pe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};R.exports={HEX:pe}},96743:(R,pe,Ae)=>{"use strict";const{HEX:he}=Ae(83157);function normalizeIPv4(R){if(findToken(R,".")<3){return{host:R,isIPV4:false}}const pe=R.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[];const[Ae]=pe;if(Ae){return{host:stripLeadingZeros(Ae,"."),isIPV4:true}}else{return{host:R,isIPV4:false}}}function stringArrayToHexStripped(R,pe=false){let Ae="";let ge=true;for(const pe of R){if(he[pe]===undefined)return undefined;if(pe!=="0"&&ge===true)ge=false;if(!ge)Ae+=pe}if(pe&&Ae.length===0)Ae="0";return Ae}function getIPV6(R){let pe=0;const Ae={error:false,address:"",zone:""};const he=[];const ge=[];let ye=false;let me=false;let ve=false;function consume(){if(ge.length){if(ye===false){const R=stringArrayToHexStripped(ge);if(R!==undefined){he.push(R)}else{Ae.error=true;return false}}ge.length=0}return true}for(let be=0;be7){Ae.error=true;break}if(be-1>=0&&R[be-1]===":"){me=true}continue}else if(Ee==="%"){if(!consume()){break}ye=true}else{ge.push(Ee);continue}}if(ge.length){if(ye){Ae.zone=ge.join("")}else if(ve){he.push(ge.join(""))}else{he.push(stringArrayToHexStripped(ge))}}Ae.address=he.join("");return Ae}function normalizeIPv6(R,pe={}){if(findToken(R,":")<2){return{host:R,isIPV6:false}}const Ae=getIPV6(R);if(!Ae.error){let R=Ae.address;let pe=Ae.address;if(Ae.zone){R+="%"+Ae.zone;pe+="%25"+Ae.zone}return{host:R,escapedHost:pe,isIPV6:true}}else{return{host:R,isIPV6:false}}}function stripLeadingZeros(R,pe){let Ae="";let he=true;const ge=R.length;for(let ye=0;ye{ +var pe;var Ae;var he;var ge;var ye;var me;var ve;var be;var Ee;var we;var Ce;var _e;var Ie;var Se;var Be;var ke;var Oe;var Re;var Qe;var xe;var Pe;var Te;var De;(function(pe){var Ae=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(R){pe(createExporter(Ae,createExporter(R)))}))}else if(true&&typeof R.exports==="object"){pe(createExporter(Ae,createExporter(R.exports)))}else{pe(createExporter(Ae))}function createExporter(R,pe){if(R!==Ae){if(typeof Object.create==="function"){Object.defineProperty(R,"__esModule",{value:true})}else{R.__esModule=true}}return function(Ae,he){return R[Ae]=pe?pe(Ae,he):he}}})((function(R){var Ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,pe){R.__proto__=pe}||function(R,pe){for(var Ae in pe)if(pe.hasOwnProperty(Ae))R[Ae]=pe[Ae]};pe=function(R,pe){Ne(R,pe);function __(){this.constructor=R}R.prototype=pe===null?Object.create(pe):(__.prototype=pe.prototype,new __)};Ae=Object.assign||function(R){for(var pe,Ae=1,he=arguments.length;Ae=0;ve--)if(me=R[ve])ye=(ge<3?me(ye):ge>3?me(pe,Ae,ye):me(pe,Ae))||ye;return ge>3&&ye&&Object.defineProperty(pe,Ae,ye),ye};ye=function(R,pe){return function(Ae,he){pe(Ae,he,R)}};me=function(R,pe){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(R,pe)};ve=function(R,pe,Ae,he){function adopt(R){return R instanceof Ae?R:new Ae((function(pe){pe(R)}))}return new(Ae||(Ae=Promise))((function(Ae,ge){function fulfilled(R){try{step(he.next(R))}catch(R){ge(R)}}function rejected(R){try{step(he["throw"](R))}catch(R){ge(R)}}function step(R){R.done?Ae(R.value):adopt(R.value).then(fulfilled,rejected)}step((he=he.apply(R,pe||[])).next())}))};be=function(R,pe){var Ae={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},he,ge,ye,me;return me={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(me[Symbol.iterator]=function(){return this}),me;function verb(R){return function(pe){return step([R,pe])}}function step(me){if(he)throw new TypeError("Generator is already executing.");while(Ae)try{if(he=1,ge&&(ye=me[0]&2?ge["return"]:me[0]?ge["throw"]||((ye=ge["return"])&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,me[1])).done)return ye;if(ge=0,ye)me=[me[0]&2,ye.value];switch(me[0]){case 0:case 1:ye=me;break;case 4:Ae.label++;return{value:me[1],done:false};case 5:Ae.label++;ge=me[1];me=[0];continue;case 7:me=Ae.ops.pop();Ae.trys.pop();continue;default:if(!(ye=Ae.trys,ye=ye.length>0&&ye[ye.length-1])&&(me[0]===6||me[0]===2)){Ae=0;continue}if(me[0]===3&&(!ye||me[1]>ye[0]&&me[1]=R.length)R=void 0;return{value:R&&R[he++],done:!R}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")};Ce=function(R,pe){var Ae=typeof Symbol==="function"&&R[Symbol.iterator];if(!Ae)return R;var he=Ae.call(R),ge,ye=[],me;try{while((pe===void 0||pe-- >0)&&!(ge=he.next()).done)ye.push(ge.value)}catch(R){me={error:R}}finally{try{if(ge&&!ge.done&&(Ae=he["return"]))Ae.call(he)}finally{if(me)throw me.error}}return ye};_e=function(){for(var R=[],pe=0;pe1||resume(R,pe)}))}}function resume(R,pe){try{step(he[R](pe))}catch(R){settle(ye[0][3],R)}}function step(R){R.value instanceof Se?Promise.resolve(R.value.v).then(fulfill,reject):settle(ye[0][2],R)}function fulfill(R){resume("next",R)}function reject(R){resume("throw",R)}function settle(R,pe){if(R(pe),ye.shift(),ye.length)resume(ye[0][0],ye[0][1])}};ke=function(R){var pe,Ae;return pe={},verb("next"),verb("throw",(function(R){throw R})),verb("return"),pe[Symbol.iterator]=function(){return this},pe;function verb(he,ge){pe[he]=R[he]?function(pe){return(Ae=!Ae)?{value:Se(R[he](pe)),done:he==="return"}:ge?ge(pe):pe}:ge}};Oe=function(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var pe=R[Symbol.asyncIterator],Ae;return pe?pe.call(R):(R=typeof we==="function"?we(R):R[Symbol.iterator](),Ae={},verb("next"),verb("throw"),verb("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae);function verb(pe){Ae[pe]=R[pe]&&function(Ae){return new Promise((function(he,ge){Ae=R[pe](Ae),settle(he,ge,Ae.done,Ae.value)}))}}function settle(R,pe,Ae,he){Promise.resolve(he).then((function(pe){R({value:pe,done:Ae})}),pe)}};Re=function(R,pe){if(Object.defineProperty){Object.defineProperty(R,"raw",{value:pe})}else{R.raw=pe}return R};Qe=function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Object.hasOwnProperty.call(R,Ae))pe[Ae]=R[Ae];pe["default"]=R;return pe};xe=function(R){return R&&R.__esModule?R:{default:R}};Pe=function(R,pe){if(!pe.has(R)){throw new TypeError("attempted to get private field on non-instance")}return pe.get(R)};Te=function(R,pe,Ae){if(!pe.has(R)){throw new TypeError("attempted to set private field on non-instance")}pe.set(R,Ae);return Ae};R("__extends",pe);R("__assign",Ae);R("__rest",he);R("__decorate",ge);R("__param",ye);R("__metadata",me);R("__awaiter",ve);R("__generator",be);R("__exportStar",Ee);R("__createBinding",De);R("__values",we);R("__read",Ce);R("__spread",_e);R("__spreadArrays",Ie);R("__await",Se);R("__asyncGenerator",Be);R("__asyncDelegator",ke);R("__asyncValues",Oe);R("__makeTemplateObject",Re);R("__importStar",Qe);R("__importDefault",xe);R("__classPrivateFieldGet",Pe);R("__classPrivateFieldSet",Te)}))},74294:(R,pe,Ae)=>{R.exports=Ae(54219)},54219:(R,pe,Ae)=>{"use strict";var he=Ae(41808);var ge=Ae(24404);var ye=Ae(13685);var me=Ae(95687);var ve=Ae(82361);var be=Ae(39491);var Ee=Ae(73837);pe.httpOverHttp=httpOverHttp;pe.httpsOverHttp=httpsOverHttp;pe.httpOverHttps=httpOverHttps;pe.httpsOverHttps=httpsOverHttps;function httpOverHttp(R){var pe=new TunnelingAgent(R);pe.request=ye.request;return pe}function httpsOverHttp(R){var pe=new TunnelingAgent(R);pe.request=ye.request;pe.createSocket=createSecureSocket;pe.defaultPort=443;return pe}function httpOverHttps(R){var pe=new TunnelingAgent(R);pe.request=me.request;return pe}function httpsOverHttps(R){var pe=new TunnelingAgent(R);pe.request=me.request;pe.createSocket=createSecureSocket;pe.defaultPort=443;return pe}function TunnelingAgent(R){var pe=this;pe.options=R||{};pe.proxyOptions=pe.options.proxy||{};pe.maxSockets=pe.options.maxSockets||ye.Agent.defaultMaxSockets;pe.requests=[];pe.sockets=[];pe.on("free",(function onFree(R,Ae,he,ge){var ye=toOptions(Ae,he,ge);for(var me=0,ve=pe.requests.length;me=this.maxSockets){ge.requests.push(ye);return}ge.createSocket(ye,(function(pe){pe.on("free",onFree);pe.on("close",onCloseOrRemove);pe.on("agentRemove",onCloseOrRemove);R.onSocket(pe);function onFree(){ge.emit("free",pe,ye)}function onCloseOrRemove(R){ge.removeSocket(pe);pe.removeListener("free",onFree);pe.removeListener("close",onCloseOrRemove);pe.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(R,pe){var Ae=this;var he={};Ae.sockets.push(he);var ge=mergeOptions({},Ae.proxyOptions,{method:"CONNECT",path:R.host+":"+R.port,agent:false,headers:{host:R.host+":"+R.port}});if(R.localAddress){ge.localAddress=R.localAddress}if(ge.proxyAuth){ge.headers=ge.headers||{};ge.headers["Proxy-Authorization"]="Basic "+new Buffer(ge.proxyAuth).toString("base64")}we("making CONNECT request");var ye=Ae.request(ge);ye.useChunkedEncodingByDefault=false;ye.once("response",onResponse);ye.once("upgrade",onUpgrade);ye.once("connect",onConnect);ye.once("error",onError);ye.end();function onResponse(R){R.upgrade=true}function onUpgrade(R,pe,Ae){process.nextTick((function(){onConnect(R,pe,Ae)}))}function onConnect(ge,me,ve){ye.removeAllListeners();me.removeAllListeners();if(ge.statusCode!==200){we("tunneling socket could not be established, statusCode=%d",ge.statusCode);me.destroy();var be=new Error("tunneling socket could not be established, "+"statusCode="+ge.statusCode);be.code="ECONNRESET";R.request.emit("error",be);Ae.removeSocket(he);return}if(ve.length>0){we("got illegal response body from proxy");me.destroy();var be=new Error("got illegal response body from proxy");be.code="ECONNRESET";R.request.emit("error",be);Ae.removeSocket(he);return}we("tunneling connection has established");Ae.sockets[Ae.sockets.indexOf(he)]=me;return pe(me)}function onError(pe){ye.removeAllListeners();we("tunneling socket could not be established, cause=%s\n",pe.message,pe.stack);var ge=new Error("tunneling socket could not be established, "+"cause="+pe.message);ge.code="ECONNRESET";R.request.emit("error",ge);Ae.removeSocket(he)}};TunnelingAgent.prototype.removeSocket=function removeSocket(R){var pe=this.sockets.indexOf(R);if(pe===-1){return}this.sockets.splice(pe,1);var Ae=this.requests.shift();if(Ae){this.createSocket(Ae,(function(R){Ae.request.onSocket(R)}))}};function createSecureSocket(R,pe){var Ae=this;TunnelingAgent.prototype.createSocket.call(Ae,R,(function(he){var ye=R.request.getHeader("host");var me=mergeOptions({},Ae.options,{socket:he,servername:ye?ye.replace(/:.*$/,""):R.host});var ve=ge.connect(0,me);Ae.sockets[Ae.sockets.indexOf(he)]=ve;pe(ve)}))}function toOptions(R,pe,Ae){if(typeof R==="string"){return{host:R,port:pe,localAddress:Ae}}return R}function mergeOptions(R){for(var pe=1,Ae=arguments.length;pe{"use strict";const he=Ae(33598);const ge=Ae(60412);const ye=Ae(48045);const me=Ae(4634);const ve=Ae(37931);const be=Ae(7890);const Ee=Ae(83983);const{InvalidArgumentError:we}=ye;const Ce=Ae(44059);const _e=Ae(82067);const Ie=Ae(58687);const Se=Ae(66771);const Be=Ae(26193);const ke=Ae(50888);const Oe=Ae(97858);const Re=Ae(82286);const{getGlobalDispatcher:Qe,setGlobalDispatcher:xe}=Ae(21892);const Pe=Ae(46930);const Te=Ae(72860);const De=Ae(38861);let Ne;try{Ae(6113);Ne=true}catch{Ne=false}Object.assign(ge.prototype,Ce);R.exports.Dispatcher=ge;R.exports.Client=he;R.exports.Pool=me;R.exports.BalancedPool=ve;R.exports.Agent=be;R.exports.ProxyAgent=Oe;R.exports.RetryHandler=Re;R.exports.DecoratorHandler=Pe;R.exports.RedirectHandler=Te;R.exports.createRedirectInterceptor=De;R.exports.buildConnector=_e;R.exports.errors=ye;function makeDispatcher(R){return(pe,Ae,he)=>{if(typeof Ae==="function"){he=Ae;Ae=null}if(!pe||typeof pe!=="string"&&typeof pe!=="object"&&!(pe instanceof URL)){throw new we("invalid url")}if(Ae!=null&&typeof Ae!=="object"){throw new we("invalid opts")}if(Ae&&Ae.path!=null){if(typeof Ae.path!=="string"){throw new we("invalid opts.path")}let R=Ae.path;if(!Ae.path.startsWith("/")){R=`/${R}`}pe=new URL(Ee.parseOrigin(pe).origin+R)}else{if(!Ae){Ae=typeof pe==="object"?pe:{}}pe=Ee.parseURL(pe)}const{agent:ge,dispatcher:ye=Qe()}=Ae;if(ge){throw new we("unsupported opts.agent. Did you mean opts.client?")}return R.call(ye,{...Ae,origin:pe.origin,path:pe.search?`${pe.pathname}${pe.search}`:pe.pathname,method:Ae.method||(Ae.body?"PUT":"GET")},he)}}R.exports.setGlobalDispatcher=xe;R.exports.getGlobalDispatcher=Qe;if(Ee.nodeMajor>16||Ee.nodeMajor===16&&Ee.nodeMinor>=8){let pe=null;R.exports.fetch=async function fetch(R){if(!pe){pe=Ae(74881).fetch}try{return await pe(...arguments)}catch(R){if(typeof R==="object"){Error.captureStackTrace(R,this)}throw R}};R.exports.Headers=Ae(10554).Headers;R.exports.Response=Ae(27823).Response;R.exports.Request=Ae(48359).Request;R.exports.FormData=Ae(72015).FormData;R.exports.File=Ae(78511).File;R.exports.FileReader=Ae(1446).FileReader;const{setGlobalOrigin:he,getGlobalOrigin:ge}=Ae(71246);R.exports.setGlobalOrigin=he;R.exports.getGlobalOrigin=ge;const{CacheStorage:ye}=Ae(37907);const{kConstruct:me}=Ae(29174);R.exports.caches=new ye(me)}if(Ee.nodeMajor>=16){const{deleteCookie:pe,getCookies:he,getSetCookies:ge,setCookie:ye}=Ae(41724);R.exports.deleteCookie=pe;R.exports.getCookies=he;R.exports.getSetCookies=ge;R.exports.setCookie=ye;const{parseMIMEType:me,serializeAMimeType:ve}=Ae(685);R.exports.parseMIMEType=me;R.exports.serializeAMimeType=ve}if(Ee.nodeMajor>=18&&Ne){const{WebSocket:pe}=Ae(54284);R.exports.WebSocket=pe}R.exports.request=makeDispatcher(Ce.request);R.exports.stream=makeDispatcher(Ce.stream);R.exports.pipeline=makeDispatcher(Ce.pipeline);R.exports.connect=makeDispatcher(Ce.connect);R.exports.upgrade=makeDispatcher(Ce.upgrade);R.exports.MockClient=Ie;R.exports.MockPool=Be;R.exports.MockAgent=Se;R.exports.mockErrors=ke},7890:(R,pe,Ae)=>{"use strict";const{InvalidArgumentError:he}=Ae(48045);const{kClients:ge,kRunning:ye,kClose:me,kDestroy:ve,kDispatch:be,kInterceptors:Ee}=Ae(72785);const we=Ae(74839);const Ce=Ae(4634);const _e=Ae(33598);const Ie=Ae(83983);const Se=Ae(38861);const{WeakRef:Be,FinalizationRegistry:ke}=Ae(56436)();const Oe=Symbol("onConnect");const Re=Symbol("onDisconnect");const Qe=Symbol("onConnectionError");const xe=Symbol("maxRedirections");const Pe=Symbol("onDrain");const Te=Symbol("factory");const De=Symbol("finalizer");const Ne=Symbol("options");function defaultFactory(R,pe){return pe&&pe.connections===1?new _e(R,pe):new Ce(R,pe)}class Agent extends we{constructor({factory:R=defaultFactory,maxRedirections:pe=0,connect:Ae,...ye}={}){super();if(typeof R!=="function"){throw new he("factory must be a function.")}if(Ae!=null&&typeof Ae!=="function"&&typeof Ae!=="object"){throw new he("connect must be a function or an object")}if(!Number.isInteger(pe)||pe<0){throw new he("maxRedirections must be a positive number")}if(Ae&&typeof Ae!=="function"){Ae={...Ae}}this[Ee]=ye.interceptors&&ye.interceptors.Agent&&Array.isArray(ye.interceptors.Agent)?ye.interceptors.Agent:[Se({maxRedirections:pe})];this[Ne]={...Ie.deepClone(ye),connect:Ae};this[Ne].interceptors=ye.interceptors?{...ye.interceptors}:undefined;this[xe]=pe;this[Te]=R;this[ge]=new Map;this[De]=new ke((R=>{const pe=this[ge].get(R);if(pe!==undefined&&pe.deref()===undefined){this[ge].delete(R)}}));const me=this;this[Pe]=(R,pe)=>{me.emit("drain",R,[me,...pe])};this[Oe]=(R,pe)=>{me.emit("connect",R,[me,...pe])};this[Re]=(R,pe,Ae)=>{me.emit("disconnect",R,[me,...pe],Ae)};this[Qe]=(R,pe,Ae)=>{me.emit("connectionError",R,[me,...pe],Ae)}}get[ye](){let R=0;for(const pe of this[ge].values()){const Ae=pe.deref();if(Ae){R+=Ae[ye]}}return R}[be](R,pe){let Ae;if(R.origin&&(typeof R.origin==="string"||R.origin instanceof URL)){Ae=String(R.origin)}else{throw new he("opts.origin must be a non-empty string or URL.")}const ye=this[ge].get(Ae);let me=ye?ye.deref():null;if(!me){me=this[Te](R.origin,this[Ne]).on("drain",this[Pe]).on("connect",this[Oe]).on("disconnect",this[Re]).on("connectionError",this[Qe]);this[ge].set(Ae,new Be(me));this[De].register(me,Ae)}return me.dispatch(R,pe)}async[me](){const R=[];for(const pe of this[ge].values()){const Ae=pe.deref();if(Ae){R.push(Ae.close())}}await Promise.all(R)}async[ve](R){const pe=[];for(const Ae of this[ge].values()){const he=Ae.deref();if(he){pe.push(he.destroy(R))}}await Promise.all(pe)}}R.exports=Agent},7032:(R,pe,Ae)=>{const{addAbortListener:he}=Ae(83983);const{RequestAbortedError:ge}=Ae(48045);const ye=Symbol("kListener");const me=Symbol("kSignal");function abort(R){if(R.abort){R.abort()}else{R.onError(new ge)}}function addSignal(R,pe){R[me]=null;R[ye]=null;if(!pe){return}if(pe.aborted){abort(R);return}R[me]=pe;R[ye]=()=>{abort(R)};he(R[me],R[ye])}function removeSignal(R){if(!R[me]){return}if("removeEventListener"in R[me]){R[me].removeEventListener("abort",R[ye])}else{R[me].removeListener("abort",R[ye])}R[me]=null;R[ye]=null}R.exports={addSignal:addSignal,removeSignal:removeSignal}},29744:(R,pe,Ae)=>{"use strict";const{AsyncResource:he}=Ae(50852);const{InvalidArgumentError:ge,RequestAbortedError:ye,SocketError:me}=Ae(48045);const ve=Ae(83983);const{addSignal:be,removeSignal:Ee}=Ae(7032);class ConnectHandler extends he{constructor(R,pe){if(!R||typeof R!=="object"){throw new ge("invalid opts")}if(typeof pe!=="function"){throw new ge("invalid callback")}const{signal:Ae,opaque:he,responseHeaders:ye}=R;if(Ae&&typeof Ae.on!=="function"&&typeof Ae.addEventListener!=="function"){throw new ge("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=he||null;this.responseHeaders=ye||null;this.callback=pe;this.abort=null;be(this,Ae)}onConnect(R,pe){if(!this.callback){throw new ye}this.abort=R;this.context=pe}onHeaders(){throw new me("bad connect",null)}onUpgrade(R,pe,Ae){const{callback:he,opaque:ge,context:ye}=this;Ee(this);this.callback=null;let me=pe;if(me!=null){me=this.responseHeaders==="raw"?ve.parseRawHeaders(pe):ve.parseHeaders(pe)}this.runInAsyncScope(he,null,null,{statusCode:R,headers:me,socket:Ae,opaque:ge,context:ye})}onError(R){const{callback:pe,opaque:Ae}=this;Ee(this);if(pe){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(pe,null,R,{opaque:Ae})}))}}}function connect(R,pe){if(pe===undefined){return new Promise(((pe,Ae)=>{connect.call(this,R,((R,he)=>R?Ae(R):pe(he)))}))}try{const Ae=new ConnectHandler(R,pe);this.dispatch({...R,method:"CONNECT"},Ae)}catch(Ae){if(typeof pe!=="function"){throw Ae}const he=R&&R.opaque;queueMicrotask((()=>pe(Ae,{opaque:he})))}}R.exports=connect},28752:(R,pe,Ae)=>{"use strict";const{Readable:he,Duplex:ge,PassThrough:ye}=Ae(12781);const{InvalidArgumentError:me,InvalidReturnValueError:ve,RequestAbortedError:be}=Ae(48045);const Ee=Ae(83983);const{AsyncResource:we}=Ae(50852);const{addSignal:Ce,removeSignal:_e}=Ae(7032);const Ie=Ae(39491);const Se=Symbol("resume");class PipelineRequest extends he{constructor(){super({autoDestroy:true});this[Se]=null}_read(){const{[Se]:R}=this;if(R){this[Se]=null;R()}}_destroy(R,pe){this._read();pe(R)}}class PipelineResponse extends he{constructor(R){super({autoDestroy:true});this[Se]=R}_read(){this[Se]()}_destroy(R,pe){if(!R&&!this._readableState.endEmitted){R=new be}pe(R)}}class PipelineHandler extends we{constructor(R,pe){if(!R||typeof R!=="object"){throw new me("invalid opts")}if(typeof pe!=="function"){throw new me("invalid handler")}const{signal:Ae,method:he,opaque:ye,onInfo:ve,responseHeaders:we}=R;if(Ae&&typeof Ae.on!=="function"&&typeof Ae.addEventListener!=="function"){throw new me("signal must be an EventEmitter or EventTarget")}if(he==="CONNECT"){throw new me("invalid method")}if(ve&&typeof ve!=="function"){throw new me("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=ye||null;this.responseHeaders=we||null;this.handler=pe;this.abort=null;this.context=null;this.onInfo=ve||null;this.req=(new PipelineRequest).on("error",Ee.nop);this.ret=new ge({readableObjectMode:R.objectMode,autoDestroy:true,read:()=>{const{body:R}=this;if(R&&R.resume){R.resume()}},write:(R,pe,Ae)=>{const{req:he}=this;if(he.push(R,pe)||he._readableState.destroyed){Ae()}else{he[Se]=Ae}},destroy:(R,pe)=>{const{body:Ae,req:he,res:ge,ret:ye,abort:me}=this;if(!R&&!ye._readableState.endEmitted){R=new be}if(me&&R){me()}Ee.destroy(Ae,R);Ee.destroy(he,R);Ee.destroy(ge,R);_e(this);pe(R)}}).on("prefinish",(()=>{const{req:R}=this;R.push(null)}));this.res=null;Ce(this,Ae)}onConnect(R,pe){const{ret:Ae,res:he}=this;Ie(!he,"pipeline cannot be retried");if(Ae.destroyed){throw new be}this.abort=R;this.context=pe}onHeaders(R,pe,Ae){const{opaque:he,handler:ge,context:ye}=this;if(R<200){if(this.onInfo){const Ae=this.responseHeaders==="raw"?Ee.parseRawHeaders(pe):Ee.parseHeaders(pe);this.onInfo({statusCode:R,headers:Ae})}return}this.res=new PipelineResponse(Ae);let me;try{this.handler=null;const Ae=this.responseHeaders==="raw"?Ee.parseRawHeaders(pe):Ee.parseHeaders(pe);me=this.runInAsyncScope(ge,null,{statusCode:R,headers:Ae,opaque:he,body:this.res,context:ye})}catch(R){this.res.on("error",Ee.nop);throw R}if(!me||typeof me.on!=="function"){throw new ve("expected Readable")}me.on("data",(R=>{const{ret:pe,body:Ae}=this;if(!pe.push(R)&&Ae.pause){Ae.pause()}})).on("error",(R=>{const{ret:pe}=this;Ee.destroy(pe,R)})).on("end",(()=>{const{ret:R}=this;R.push(null)})).on("close",(()=>{const{ret:R}=this;if(!R._readableState.ended){Ee.destroy(R,new be)}}));this.body=me}onData(R){const{res:pe}=this;return pe.push(R)}onComplete(R){const{res:pe}=this;pe.push(null)}onError(R){const{ret:pe}=this;this.handler=null;Ee.destroy(pe,R)}}function pipeline(R,pe){try{const Ae=new PipelineHandler(R,pe);this.dispatch({...R,body:Ae.req},Ae);return Ae.ret}catch(R){return(new ye).destroy(R)}}R.exports=pipeline},55448:(R,pe,Ae)=>{"use strict";const he=Ae(73858);const{InvalidArgumentError:ge,RequestAbortedError:ye}=Ae(48045);const me=Ae(83983);const{getResolveErrorBodyCallback:ve}=Ae(77474);const{AsyncResource:be}=Ae(50852);const{addSignal:Ee,removeSignal:we}=Ae(7032);class RequestHandler extends be{constructor(R,pe){if(!R||typeof R!=="object"){throw new ge("invalid opts")}const{signal:Ae,method:he,opaque:ye,body:ve,onInfo:be,responseHeaders:we,throwOnError:Ce,highWaterMark:_e}=R;try{if(typeof pe!=="function"){throw new ge("invalid callback")}if(_e&&(typeof _e!=="number"||_e<0)){throw new ge("invalid highWaterMark")}if(Ae&&typeof Ae.on!=="function"&&typeof Ae.addEventListener!=="function"){throw new ge("signal must be an EventEmitter or EventTarget")}if(he==="CONNECT"){throw new ge("invalid method")}if(be&&typeof be!=="function"){throw new ge("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(R){if(me.isStream(ve)){me.destroy(ve.on("error",me.nop),R)}throw R}this.responseHeaders=we||null;this.opaque=ye||null;this.callback=pe;this.res=null;this.abort=null;this.body=ve;this.trailers={};this.context=null;this.onInfo=be||null;this.throwOnError=Ce;this.highWaterMark=_e;if(me.isStream(ve)){ve.on("error",(R=>{this.onError(R)}))}Ee(this,Ae)}onConnect(R,pe){if(!this.callback){throw new ye}this.abort=R;this.context=pe}onHeaders(R,pe,Ae,ge){const{callback:ye,opaque:be,abort:Ee,context:we,responseHeaders:Ce,highWaterMark:_e}=this;const Ie=Ce==="raw"?me.parseRawHeaders(pe):me.parseHeaders(pe);if(R<200){if(this.onInfo){this.onInfo({statusCode:R,headers:Ie})}return}const Se=Ce==="raw"?me.parseHeaders(pe):Ie;const Be=Se["content-type"];const ke=new he({resume:Ae,abort:Ee,contentType:Be,highWaterMark:_e});this.callback=null;this.res=ke;if(ye!==null){if(this.throwOnError&&R>=400){this.runInAsyncScope(ve,null,{callback:ye,body:ke,contentType:Be,statusCode:R,statusMessage:ge,headers:Ie})}else{this.runInAsyncScope(ye,null,null,{statusCode:R,headers:Ie,trailers:this.trailers,opaque:be,body:ke,context:we})}}}onData(R){const{res:pe}=this;return pe.push(R)}onComplete(R){const{res:pe}=this;we(this);me.parseHeaders(R,this.trailers);pe.push(null)}onError(R){const{res:pe,callback:Ae,body:he,opaque:ge}=this;we(this);if(Ae){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(Ae,null,R,{opaque:ge})}))}if(pe){this.res=null;queueMicrotask((()=>{me.destroy(pe,R)}))}if(he){this.body=null;me.destroy(he,R)}}}function request(R,pe){if(pe===undefined){return new Promise(((pe,Ae)=>{request.call(this,R,((R,he)=>R?Ae(R):pe(he)))}))}try{this.dispatch(R,new RequestHandler(R,pe))}catch(Ae){if(typeof pe!=="function"){throw Ae}const he=R&&R.opaque;queueMicrotask((()=>pe(Ae,{opaque:he})))}}R.exports=request;R.exports.RequestHandler=RequestHandler},75395:(R,pe,Ae)=>{"use strict";const{finished:he,PassThrough:ge}=Ae(12781);const{InvalidArgumentError:ye,InvalidReturnValueError:me,RequestAbortedError:ve}=Ae(48045);const be=Ae(83983);const{getResolveErrorBodyCallback:Ee}=Ae(77474);const{AsyncResource:we}=Ae(50852);const{addSignal:Ce,removeSignal:_e}=Ae(7032);class StreamHandler extends we{constructor(R,pe,Ae){if(!R||typeof R!=="object"){throw new ye("invalid opts")}const{signal:he,method:ge,opaque:me,body:ve,onInfo:Ee,responseHeaders:we,throwOnError:_e}=R;try{if(typeof Ae!=="function"){throw new ye("invalid callback")}if(typeof pe!=="function"){throw new ye("invalid factory")}if(he&&typeof he.on!=="function"&&typeof he.addEventListener!=="function"){throw new ye("signal must be an EventEmitter or EventTarget")}if(ge==="CONNECT"){throw new ye("invalid method")}if(Ee&&typeof Ee!=="function"){throw new ye("invalid onInfo callback")}super("UNDICI_STREAM")}catch(R){if(be.isStream(ve)){be.destroy(ve.on("error",be.nop),R)}throw R}this.responseHeaders=we||null;this.opaque=me||null;this.factory=pe;this.callback=Ae;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=ve;this.onInfo=Ee||null;this.throwOnError=_e||false;if(be.isStream(ve)){ve.on("error",(R=>{this.onError(R)}))}Ce(this,he)}onConnect(R,pe){if(!this.callback){throw new ve}this.abort=R;this.context=pe}onHeaders(R,pe,Ae,ye){const{factory:ve,opaque:we,context:Ce,callback:_e,responseHeaders:Ie}=this;const Se=Ie==="raw"?be.parseRawHeaders(pe):be.parseHeaders(pe);if(R<200){if(this.onInfo){this.onInfo({statusCode:R,headers:Se})}return}this.factory=null;let Be;if(this.throwOnError&&R>=400){const Ae=Ie==="raw"?be.parseHeaders(pe):Se;const he=Ae["content-type"];Be=new ge;this.callback=null;this.runInAsyncScope(Ee,null,{callback:_e,body:Be,contentType:he,statusCode:R,statusMessage:ye,headers:Se})}else{if(ve===null){return}Be=this.runInAsyncScope(ve,null,{statusCode:R,headers:Se,opaque:we,context:Ce});if(!Be||typeof Be.write!=="function"||typeof Be.end!=="function"||typeof Be.on!=="function"){throw new me("expected Writable")}he(Be,{readable:false},(R=>{const{callback:pe,res:Ae,opaque:he,trailers:ge,abort:ye}=this;this.res=null;if(R||!Ae.readable){be.destroy(Ae,R)}this.callback=null;this.runInAsyncScope(pe,null,R||null,{opaque:he,trailers:ge});if(R){ye()}}))}Be.on("drain",Ae);this.res=Be;const ke=Be.writableNeedDrain!==undefined?Be.writableNeedDrain:Be._writableState&&Be._writableState.needDrain;return ke!==true}onData(R){const{res:pe}=this;return pe?pe.write(R):true}onComplete(R){const{res:pe}=this;_e(this);if(!pe){return}this.trailers=be.parseHeaders(R);pe.end()}onError(R){const{res:pe,callback:Ae,opaque:he,body:ge}=this;_e(this);this.factory=null;if(pe){this.res=null;be.destroy(pe,R)}else if(Ae){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(Ae,null,R,{opaque:he})}))}if(ge){this.body=null;be.destroy(ge,R)}}}function stream(R,pe,Ae){if(Ae===undefined){return new Promise(((Ae,he)=>{stream.call(this,R,pe,((R,pe)=>R?he(R):Ae(pe)))}))}try{this.dispatch(R,new StreamHandler(R,pe,Ae))}catch(pe){if(typeof Ae!=="function"){throw pe}const he=R&&R.opaque;queueMicrotask((()=>Ae(pe,{opaque:he})))}}R.exports=stream},36923:(R,pe,Ae)=>{"use strict";const{InvalidArgumentError:he,RequestAbortedError:ge,SocketError:ye}=Ae(48045);const{AsyncResource:me}=Ae(50852);const ve=Ae(83983);const{addSignal:be,removeSignal:Ee}=Ae(7032);const we=Ae(39491);class UpgradeHandler extends me{constructor(R,pe){if(!R||typeof R!=="object"){throw new he("invalid opts")}if(typeof pe!=="function"){throw new he("invalid callback")}const{signal:Ae,opaque:ge,responseHeaders:ye}=R;if(Ae&&typeof Ae.on!=="function"&&typeof Ae.addEventListener!=="function"){throw new he("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=ye||null;this.opaque=ge||null;this.callback=pe;this.abort=null;this.context=null;be(this,Ae)}onConnect(R,pe){if(!this.callback){throw new ge}this.abort=R;this.context=null}onHeaders(){throw new ye("bad upgrade",null)}onUpgrade(R,pe,Ae){const{callback:he,opaque:ge,context:ye}=this;we.strictEqual(R,101);Ee(this);this.callback=null;const me=this.responseHeaders==="raw"?ve.parseRawHeaders(pe):ve.parseHeaders(pe);this.runInAsyncScope(he,null,null,{headers:me,socket:Ae,opaque:ge,context:ye})}onError(R){const{callback:pe,opaque:Ae}=this;Ee(this);if(pe){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(pe,null,R,{opaque:Ae})}))}}}function upgrade(R,pe){if(pe===undefined){return new Promise(((pe,Ae)=>{upgrade.call(this,R,((R,he)=>R?Ae(R):pe(he)))}))}try{const Ae=new UpgradeHandler(R,pe);this.dispatch({...R,method:R.method||"GET",upgrade:R.protocol||"Websocket"},Ae)}catch(Ae){if(typeof pe!=="function"){throw Ae}const he=R&&R.opaque;queueMicrotask((()=>pe(Ae,{opaque:he})))}}R.exports=upgrade},44059:(R,pe,Ae)=>{"use strict";R.exports.request=Ae(55448);R.exports.stream=Ae(75395);R.exports.pipeline=Ae(28752);R.exports.upgrade=Ae(36923);R.exports.connect=Ae(29744)},73858:(R,pe,Ae)=>{"use strict";const he=Ae(39491);const{Readable:ge}=Ae(12781);const{RequestAbortedError:ye,NotSupportedError:me,InvalidArgumentError:ve}=Ae(48045);const be=Ae(83983);const{ReadableStreamFrom:Ee,toUSVString:we}=Ae(83983);let Ce;const _e=Symbol("kConsume");const Ie=Symbol("kReading");const Se=Symbol("kBody");const Be=Symbol("abort");const ke=Symbol("kContentType");const noop=()=>{};R.exports=class BodyReadable extends ge{constructor({resume:R,abort:pe,contentType:Ae="",highWaterMark:he=64*1024}){super({autoDestroy:true,read:R,highWaterMark:he});this._readableState.dataEmitted=false;this[Be]=pe;this[_e]=null;this[Se]=null;this[ke]=Ae;this[Ie]=false}destroy(R){if(this.destroyed){return this}if(!R&&!this._readableState.endEmitted){R=new ye}if(R){this[Be]()}return super.destroy(R)}emit(R,...pe){if(R==="data"){this._readableState.dataEmitted=true}else if(R==="error"){this._readableState.errorEmitted=true}return super.emit(R,...pe)}on(R,...pe){if(R==="data"||R==="readable"){this[Ie]=true}return super.on(R,...pe)}addListener(R,...pe){return this.on(R,...pe)}off(R,...pe){const Ae=super.off(R,...pe);if(R==="data"||R==="readable"){this[Ie]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return Ae}removeListener(R,...pe){return this.off(R,...pe)}push(R){if(this[_e]&&R!==null&&this.readableLength===0){consumePush(this[_e],R);return this[Ie]?super.push(R):true}return super.push(R)}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 me}get bodyUsed(){return be.isDisturbed(this)}get body(){if(!this[Se]){this[Se]=Ee(this);if(this[_e]){this[Se].getReader();he(this[Se].locked)}}return this[Se]}dump(R){let pe=R&&Number.isFinite(R.limit)?R.limit:262144;const Ae=R&&R.signal;if(Ae){try{if(typeof Ae!=="object"||!("aborted"in Ae)){throw new ve("signal must be an AbortSignal")}be.throwIfAborted(Ae)}catch(R){return Promise.reject(R)}}if(this.closed){return Promise.resolve(null)}return new Promise(((R,he)=>{const ge=Ae?be.addAbortListener(Ae,(()=>{this.destroy()})):noop;this.on("close",(function(){ge();if(Ae&&Ae.aborted){he(Ae.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{R(null)}})).on("error",noop).on("data",(function(R){pe-=R.length;if(pe<=0){this.destroy()}})).resume()}))}};function isLocked(R){return R[Se]&&R[Se].locked===true||R[_e]}function isUnusable(R){return be.isDisturbed(R)||isLocked(R)}async function consume(R,pe){if(isUnusable(R)){throw new TypeError("unusable")}he(!R[_e]);return new Promise(((Ae,he)=>{R[_e]={type:pe,stream:R,resolve:Ae,reject:he,length:0,body:[]};R.on("error",(function(R){consumeFinish(this[_e],R)})).on("close",(function(){if(this[_e].body!==null){consumeFinish(this[_e],new ye)}}));process.nextTick(consumeStart,R[_e])}))}function consumeStart(R){if(R.body===null){return}const{_readableState:pe}=R.stream;for(const Ae of pe.buffer){consumePush(R,Ae)}if(pe.endEmitted){consumeEnd(this[_e])}else{R.stream.on("end",(function(){consumeEnd(this[_e])}))}R.stream.resume();while(R.stream.read()!=null){}}function consumeEnd(R){const{type:pe,body:he,resolve:ge,stream:ye,length:me}=R;try{if(pe==="text"){ge(we(Buffer.concat(he)))}else if(pe==="json"){ge(JSON.parse(Buffer.concat(he)))}else if(pe==="arrayBuffer"){const R=new Uint8Array(me);let pe=0;for(const Ae of he){R.set(Ae,pe);pe+=Ae.byteLength}ge(R.buffer)}else if(pe==="blob"){if(!Ce){Ce=Ae(14300).Blob}ge(new Ce(he,{type:ye[ke]}))}consumeFinish(R)}catch(R){ye.destroy(R)}}function consumePush(R,pe){R.length+=pe.length;R.body.push(pe)}function consumeFinish(R,pe){if(R.body===null){return}if(pe){R.reject(pe)}else{R.resolve()}R.type=null;R.stream=null;R.resolve=null;R.reject=null;R.length=0;R.body=null}},77474:(R,pe,Ae)=>{const he=Ae(39491);const{ResponseStatusCodeError:ge}=Ae(48045);const{toUSVString:ye}=Ae(83983);async function getResolveErrorBodyCallback({callback:R,body:pe,contentType:Ae,statusCode:me,statusMessage:ve,headers:be}){he(pe);let Ee=[];let we=0;for await(const R of pe){Ee.push(R);we+=R.length;if(we>128*1024){Ee=null;break}}if(me===204||!Ae||!Ee){process.nextTick(R,new ge(`Response status code ${me}${ve?`: ${ve}`:""}`,me,be));return}try{if(Ae.startsWith("application/json")){const pe=JSON.parse(ye(Buffer.concat(Ee)));process.nextTick(R,new ge(`Response status code ${me}${ve?`: ${ve}`:""}`,me,be,pe));return}if(Ae.startsWith("text/")){const pe=ye(Buffer.concat(Ee));process.nextTick(R,new ge(`Response status code ${me}${ve?`: ${ve}`:""}`,me,be,pe));return}}catch(R){}process.nextTick(R,new ge(`Response status code ${me}${ve?`: ${ve}`:""}`,me,be))}R.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},37931:(R,pe,Ae)=>{"use strict";const{BalancedPoolMissingUpstreamError:he,InvalidArgumentError:ge}=Ae(48045);const{PoolBase:ye,kClients:me,kNeedDrain:ve,kAddClient:be,kRemoveClient:Ee,kGetDispatcher:we}=Ae(73198);const Ce=Ae(4634);const{kUrl:_e,kInterceptors:Ie}=Ae(72785);const{parseOrigin:Se}=Ae(83983);const Be=Symbol("factory");const ke=Symbol("options");const Oe=Symbol("kGreatestCommonDivisor");const Re=Symbol("kCurrentWeight");const Qe=Symbol("kIndex");const xe=Symbol("kWeight");const Pe=Symbol("kMaxWeightPerServer");const Te=Symbol("kErrorPenalty");function getGreatestCommonDivisor(R,pe){if(pe===0)return R;return getGreatestCommonDivisor(pe,R%pe)}function defaultFactory(R,pe){return new Ce(R,pe)}class BalancedPool extends ye{constructor(R=[],{factory:pe=defaultFactory,...Ae}={}){super();this[ke]=Ae;this[Qe]=-1;this[Re]=0;this[Pe]=this[ke].maxWeightPerServer||100;this[Te]=this[ke].errorPenalty||15;if(!Array.isArray(R)){R=[R]}if(typeof pe!=="function"){throw new ge("factory must be a function.")}this[Ie]=Ae.interceptors&&Ae.interceptors.BalancedPool&&Array.isArray(Ae.interceptors.BalancedPool)?Ae.interceptors.BalancedPool:[];this[Be]=pe;for(const pe of R){this.addUpstream(pe)}this._updateBalancedPoolStats()}addUpstream(R){const pe=Se(R).origin;if(this[me].find((R=>R[_e].origin===pe&&R.closed!==true&&R.destroyed!==true))){return this}const Ae=this[Be](pe,Object.assign({},this[ke]));this[be](Ae);Ae.on("connect",(()=>{Ae[xe]=Math.min(this[Pe],Ae[xe]+this[Te])}));Ae.on("connectionError",(()=>{Ae[xe]=Math.max(1,Ae[xe]-this[Te]);this._updateBalancedPoolStats()}));Ae.on("disconnect",((...R)=>{const pe=R[2];if(pe&&pe.code==="UND_ERR_SOCKET"){Ae[xe]=Math.max(1,Ae[xe]-this[Te]);this._updateBalancedPoolStats()}}));for(const R of this[me]){R[xe]=this[Pe]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[Oe]=this[me].map((R=>R[xe])).reduce(getGreatestCommonDivisor,0)}removeUpstream(R){const pe=Se(R).origin;const Ae=this[me].find((R=>R[_e].origin===pe&&R.closed!==true&&R.destroyed!==true));if(Ae){this[Ee](Ae)}return this}get upstreams(){return this[me].filter((R=>R.closed!==true&&R.destroyed!==true)).map((R=>R[_e].origin))}[we](){if(this[me].length===0){throw new he}const R=this[me].find((R=>!R[ve]&&R.closed!==true&&R.destroyed!==true));if(!R){return}const pe=this[me].map((R=>R[ve])).reduce(((R,pe)=>R&&pe),true);if(pe){return}let Ae=0;let ge=this[me].findIndex((R=>!R[ve]));while(Ae++this[me][ge][xe]&&!R[ve]){ge=this[Qe]}if(this[Qe]===0){this[Re]=this[Re]-this[Oe];if(this[Re]<=0){this[Re]=this[Pe]}}if(R[xe]>=this[Re]&&!R[ve]){return R}}this[Re]=this[me][ge][xe];this[Qe]=ge;return this[me][ge]}}R.exports=BalancedPool},66101:(R,pe,Ae)=>{"use strict";const{kConstruct:he}=Ae(29174);const{urlEquals:ge,fieldValues:ye}=Ae(82396);const{kEnumerableProperty:me,isDisturbed:ve}=Ae(83983);const{kHeadersList:be}=Ae(72785);const{webidl:Ee}=Ae(21744);const{Response:we,cloneResponse:Ce}=Ae(27823);const{Request:_e}=Ae(48359);const{kState:Ie,kHeaders:Se,kGuard:Be,kRealm:ke}=Ae(15861);const{fetching:Oe}=Ae(74881);const{urlIsHttpHttpsScheme:Re,createDeferredPromise:Qe,readAllBytes:xe}=Ae(52538);const Pe=Ae(39491);const{getGlobalDispatcher:Te}=Ae(21892);class Cache{#e;constructor(){if(arguments[0]!==he){Ee.illegalConstructor()}this.#e=arguments[1]}async match(R,pe={}){Ee.brandCheck(this,Cache);Ee.argumentLengthCheck(arguments,1,{header:"Cache.match"});R=Ee.converters.RequestInfo(R);pe=Ee.converters.CacheQueryOptions(pe);const Ae=await this.matchAll(R,pe);if(Ae.length===0){return}return Ae[0]}async matchAll(R=undefined,pe={}){Ee.brandCheck(this,Cache);if(R!==undefined)R=Ee.converters.RequestInfo(R);pe=Ee.converters.CacheQueryOptions(pe);let Ae=null;if(R!==undefined){if(R instanceof _e){Ae=R[Ie];if(Ae.method!=="GET"&&!pe.ignoreMethod){return[]}}else if(typeof R==="string"){Ae=new _e(R)[Ie]}}const he=[];if(R===undefined){for(const R of this.#e){he.push(R[1])}}else{const R=this.#t(Ae,pe);for(const pe of R){he.push(pe[1])}}const ge=[];for(const R of he){const pe=new we(R.body?.source??null);const Ae=pe[Ie].body;pe[Ie]=R;pe[Ie].body=Ae;pe[Se][be]=R.headersList;pe[Se][Be]="immutable";ge.push(pe)}return Object.freeze(ge)}async add(R){Ee.brandCheck(this,Cache);Ee.argumentLengthCheck(arguments,1,{header:"Cache.add"});R=Ee.converters.RequestInfo(R);const pe=[R];const Ae=this.addAll(pe);return await Ae}async addAll(R){Ee.brandCheck(this,Cache);Ee.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});R=Ee.converters["sequence"](R);const pe=[];const Ae=[];for(const pe of R){if(typeof pe==="string"){continue}const R=pe[Ie];if(!Re(R.url)||R.method!=="GET"){throw Ee.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const he=[];for(const ge of R){const R=new _e(ge)[Ie];if(!Re(R.url)){throw Ee.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}R.initiator="fetch";R.destination="subresource";Ae.push(R);const me=Qe();he.push(Oe({request:R,dispatcher:Te(),processResponse(R){if(R.type==="error"||R.status===206||R.status<200||R.status>299){me.reject(Ee.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(R.headersList.contains("vary")){const pe=ye(R.headersList.get("vary"));for(const R of pe){if(R==="*"){me.reject(Ee.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const R of he){R.abort()}return}}}},processResponseEndOfBody(R){if(R.aborted){me.reject(new DOMException("aborted","AbortError"));return}me.resolve(R)}}));pe.push(me.promise)}const ge=Promise.all(pe);const me=await ge;const ve=[];let be=0;for(const R of me){const pe={type:"put",request:Ae[be],response:R};ve.push(pe);be++}const we=Qe();let Ce=null;try{this.#r(ve)}catch(R){Ce=R}queueMicrotask((()=>{if(Ce===null){we.resolve(undefined)}else{we.reject(Ce)}}));return we.promise}async put(R,pe){Ee.brandCheck(this,Cache);Ee.argumentLengthCheck(arguments,2,{header:"Cache.put"});R=Ee.converters.RequestInfo(R);pe=Ee.converters.Response(pe);let Ae=null;if(R instanceof _e){Ae=R[Ie]}else{Ae=new _e(R)[Ie]}if(!Re(Ae.url)||Ae.method!=="GET"){throw Ee.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const he=pe[Ie];if(he.status===206){throw Ee.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(he.headersList.contains("vary")){const R=ye(he.headersList.get("vary"));for(const pe of R){if(pe==="*"){throw Ee.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(he.body&&(ve(he.body.stream)||he.body.stream.locked)){throw Ee.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const ge=Ce(he);const me=Qe();if(he.body!=null){const R=he.body.stream;const pe=R.getReader();xe(pe).then(me.resolve,me.reject)}else{me.resolve(undefined)}const be=[];const we={type:"put",request:Ae,response:ge};be.push(we);const Se=await me.promise;if(ge.body!=null){ge.body.source=Se}const Be=Qe();let ke=null;try{this.#r(be)}catch(R){ke=R}queueMicrotask((()=>{if(ke===null){Be.resolve()}else{Be.reject(ke)}}));return Be.promise}async delete(R,pe={}){Ee.brandCheck(this,Cache);Ee.argumentLengthCheck(arguments,1,{header:"Cache.delete"});R=Ee.converters.RequestInfo(R);pe=Ee.converters.CacheQueryOptions(pe);let Ae=null;if(R instanceof _e){Ae=R[Ie];if(Ae.method!=="GET"&&!pe.ignoreMethod){return false}}else{Pe(typeof R==="string");Ae=new _e(R)[Ie]}const he=[];const ge={type:"delete",request:Ae,options:pe};he.push(ge);const ye=Qe();let me=null;let ve;try{ve=this.#r(he)}catch(R){me=R}queueMicrotask((()=>{if(me===null){ye.resolve(!!ve?.length)}else{ye.reject(me)}}));return ye.promise}async keys(R=undefined,pe={}){Ee.brandCheck(this,Cache);if(R!==undefined)R=Ee.converters.RequestInfo(R);pe=Ee.converters.CacheQueryOptions(pe);let Ae=null;if(R!==undefined){if(R instanceof _e){Ae=R[Ie];if(Ae.method!=="GET"&&!pe.ignoreMethod){return[]}}else if(typeof R==="string"){Ae=new _e(R)[Ie]}}const he=Qe();const ge=[];if(R===undefined){for(const R of this.#e){ge.push(R[0])}}else{const R=this.#t(Ae,pe);for(const pe of R){ge.push(pe[0])}}queueMicrotask((()=>{const R=[];for(const pe of ge){const Ae=new _e("https://a");Ae[Ie]=pe;Ae[Se][be]=pe.headersList;Ae[Se][Be]="immutable";Ae[ke]=pe.client;R.push(Ae)}he.resolve(Object.freeze(R))}));return he.promise}#r(R){const pe=this.#e;const Ae=[...pe];const he=[];const ge=[];try{for(const Ae of R){if(Ae.type!=="delete"&&Ae.type!=="put"){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(Ae.type==="delete"&&Ae.response!=null){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(Ae.request,Ae.options,he).length){throw new DOMException("???","InvalidStateError")}let R;if(Ae.type==="delete"){R=this.#t(Ae.request,Ae.options);if(R.length===0){return[]}for(const Ae of R){const R=pe.indexOf(Ae);Pe(R!==-1);pe.splice(R,1)}}else if(Ae.type==="put"){if(Ae.response==null){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const ge=Ae.request;if(!Re(ge.url)){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(ge.method!=="GET"){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(Ae.options!=null){throw Ee.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}R=this.#t(Ae.request);for(const Ae of R){const R=pe.indexOf(Ae);Pe(R!==-1);pe.splice(R,1)}pe.push([Ae.request,Ae.response]);he.push([Ae.request,Ae.response])}ge.push([Ae.request,Ae.response])}return ge}catch(R){this.#e.length=0;this.#e=Ae;throw R}}#t(R,pe,Ae){const he=[];const ge=Ae??this.#e;for(const Ae of ge){const[ge,ye]=Ae;if(this.#n(R,ge,ye,pe)){he.push(Ae)}}return he}#n(R,pe,Ae=null,he){const me=new URL(R.url);const ve=new URL(pe.url);if(he?.ignoreSearch){ve.search="";me.search=""}if(!ge(me,ve,true)){return false}if(Ae==null||he?.ignoreVary||!Ae.headersList.contains("vary")){return true}const be=ye(Ae.headersList.get("vary"));for(const Ae of be){if(Ae==="*"){return false}const he=pe.headersList.get(Ae);const ge=R.headersList.get(Ae);if(he!==ge){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:me,matchAll:me,add:me,addAll:me,put:me,delete:me,keys:me});const De=[{key:"ignoreSearch",converter:Ee.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:Ee.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:Ee.converters.boolean,defaultValue:false}];Ee.converters.CacheQueryOptions=Ee.dictionaryConverter(De);Ee.converters.MultiCacheQueryOptions=Ee.dictionaryConverter([...De,{key:"cacheName",converter:Ee.converters.DOMString}]);Ee.converters.Response=Ee.interfaceConverter(we);Ee.converters["sequence"]=Ee.sequenceConverter(Ee.converters.RequestInfo);R.exports={Cache:Cache}},37907:(R,pe,Ae)=>{"use strict";const{kConstruct:he}=Ae(29174);const{Cache:ge}=Ae(66101);const{webidl:ye}=Ae(21744);const{kEnumerableProperty:me}=Ae(83983);class CacheStorage{#i=new Map;constructor(){if(arguments[0]!==he){ye.illegalConstructor()}}async match(R,pe={}){ye.brandCheck(this,CacheStorage);ye.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});R=ye.converters.RequestInfo(R);pe=ye.converters.MultiCacheQueryOptions(pe);if(pe.cacheName!=null){if(this.#i.has(pe.cacheName)){const Ae=this.#i.get(pe.cacheName);const ye=new ge(he,Ae);return await ye.match(R,pe)}}else{for(const Ae of this.#i.values()){const ye=new ge(he,Ae);const me=await ye.match(R,pe);if(me!==undefined){return me}}}}async has(R){ye.brandCheck(this,CacheStorage);ye.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});R=ye.converters.DOMString(R);return this.#i.has(R)}async open(R){ye.brandCheck(this,CacheStorage);ye.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});R=ye.converters.DOMString(R);if(this.#i.has(R)){const pe=this.#i.get(R);return new ge(he,pe)}const pe=[];this.#i.set(R,pe);return new ge(he,pe)}async delete(R){ye.brandCheck(this,CacheStorage);ye.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});R=ye.converters.DOMString(R);return this.#i.delete(R)}async keys(){ye.brandCheck(this,CacheStorage);const R=this.#i.keys();return[...R]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:me,has:me,open:me,delete:me,keys:me});R.exports={CacheStorage:CacheStorage}},29174:(R,pe,Ae)=>{"use strict";R.exports={kConstruct:Ae(72785).kConstruct}},82396:(R,pe,Ae)=>{"use strict";const he=Ae(39491);const{URLSerializer:ge}=Ae(685);const{isValidHeaderName:ye}=Ae(52538);function urlEquals(R,pe,Ae=false){const he=ge(R,Ae);const ye=ge(pe,Ae);return he===ye}function fieldValues(R){he(R!==null);const pe=[];for(let Ae of R.split(",")){Ae=Ae.trim();if(!Ae.length){continue}else if(!ye(Ae)){continue}pe.push(Ae)}return pe}R.exports={urlEquals:urlEquals,fieldValues:fieldValues}},33598:(R,pe,Ae)=>{"use strict";const he=Ae(39491);const ge=Ae(41808);const ye=Ae(13685);const{pipeline:me}=Ae(12781);const ve=Ae(83983);const be=Ae(29459);const Ee=Ae(62905);const we=Ae(74839);const{RequestContentLengthMismatchError:Ce,ResponseContentLengthMismatchError:_e,InvalidArgumentError:Ie,RequestAbortedError:Se,HeadersTimeoutError:Be,HeadersOverflowError:ke,SocketError:Oe,InformationalError:Re,BodyTimeoutError:Qe,HTTPParserError:xe,ResponseExceededMaxSizeError:Pe,ClientDestroyedError:Te}=Ae(48045);const De=Ae(82067);const{kUrl:Ne,kReset:Me,kServerName:je,kClient:Fe,kBusy:Le,kParser:Ue,kConnect:He,kBlocking:Je,kResuming:We,kRunning:Ve,kPending:Ke,kSize:Ge,kWriting:Ye,kQueue:qe,kConnected:$e,kConnecting:ze,kNeedDrain:Xe,kNoRef:Ze,kKeepAliveDefaultTimeout:et,kHostHeader:tt,kPendingIdx:rt,kRunningIdx:nt,kError:it,kPipelining:ot,kSocket:st,kKeepAliveTimeoutValue:at,kMaxHeadersSize:ct,kKeepAliveMaxTimeout:ut,kKeepAliveTimeoutThreshold:lt,kHeadersTimeout:dt,kBodyTimeout:ft,kStrictContentLength:pt,kConnector:At,kMaxRedirections:ht,kMaxRequests:gt,kCounter:yt,kClose:mt,kDestroy:vt,kDispatch:bt,kInterceptors:Et,kLocalAddress:wt,kMaxResponseSize:Ct,kHTTPConnVersion:_t,kHost:It,kHTTP2Session:St,kHTTP2SessionState:Bt,kHTTP2BuildRequest:kt,kHTTP2CopyHeaders:Ot,kHTTP1BuildRequest:Rt}=Ae(72785);let Qt;try{Qt=Ae(85158)}catch{Qt={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:xt,HTTP2_HEADER_METHOD:Pt,HTTP2_HEADER_PATH:Tt,HTTP2_HEADER_SCHEME:Dt,HTTP2_HEADER_CONTENT_LENGTH:Nt,HTTP2_HEADER_EXPECT:Mt,HTTP2_HEADER_STATUS:jt}}=Qt;let Ft=false;const Lt=Buffer[Symbol.species];const Ut=Symbol("kClosedResolve");const Ht={};try{const R=Ae(67643);Ht.sendHeaders=R.channel("undici:client:sendHeaders");Ht.beforeConnect=R.channel("undici:client:beforeConnect");Ht.connectError=R.channel("undici:client:connectError");Ht.connected=R.channel("undici:client:connected")}catch{Ht.sendHeaders={hasSubscribers:false};Ht.beforeConnect={hasSubscribers:false};Ht.connectError={hasSubscribers:false};Ht.connected={hasSubscribers:false}}class Client extends we{constructor(R,{interceptors:pe,maxHeaderSize:Ae,headersTimeout:he,socketTimeout:me,requestTimeout:be,connectTimeout:Ee,bodyTimeout:we,idleTimeout:Ce,keepAlive:_e,keepAliveTimeout:Se,maxKeepAliveTimeout:Be,keepAliveMaxTimeout:ke,keepAliveTimeoutThreshold:Oe,socketPath:Re,pipelining:Qe,tls:xe,strictContentLength:Pe,maxCachedSessions:Te,maxRedirections:Me,connect:Fe,maxRequestsPerClient:Le,localAddress:Ue,maxResponseSize:He,autoSelectFamily:Je,autoSelectFamilyAttemptTimeout:Ve,allowH2:Ke,maxConcurrentStreams:Ge}={}){super();if(_e!==undefined){throw new Ie("unsupported keepAlive, use pipelining=0 instead")}if(me!==undefined){throw new Ie("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(be!==undefined){throw new Ie("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(Ce!==undefined){throw new Ie("unsupported idleTimeout, use keepAliveTimeout instead")}if(Be!==undefined){throw new Ie("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(Ae!=null&&!Number.isFinite(Ae)){throw new Ie("invalid maxHeaderSize")}if(Re!=null&&typeof Re!=="string"){throw new Ie("invalid socketPath")}if(Ee!=null&&(!Number.isFinite(Ee)||Ee<0)){throw new Ie("invalid connectTimeout")}if(Se!=null&&(!Number.isFinite(Se)||Se<=0)){throw new Ie("invalid keepAliveTimeout")}if(ke!=null&&(!Number.isFinite(ke)||ke<=0)){throw new Ie("invalid keepAliveMaxTimeout")}if(Oe!=null&&!Number.isFinite(Oe)){throw new Ie("invalid keepAliveTimeoutThreshold")}if(he!=null&&(!Number.isInteger(he)||he<0)){throw new Ie("headersTimeout must be a positive integer or zero")}if(we!=null&&(!Number.isInteger(we)||we<0)){throw new Ie("bodyTimeout must be a positive integer or zero")}if(Fe!=null&&typeof Fe!=="function"&&typeof Fe!=="object"){throw new Ie("connect must be a function or an object")}if(Me!=null&&(!Number.isInteger(Me)||Me<0)){throw new Ie("maxRedirections must be a positive number")}if(Le!=null&&(!Number.isInteger(Le)||Le<0)){throw new Ie("maxRequestsPerClient must be a positive number")}if(Ue!=null&&(typeof Ue!=="string"||ge.isIP(Ue)===0)){throw new Ie("localAddress must be valid string IP address")}if(He!=null&&(!Number.isInteger(He)||He<-1)){throw new Ie("maxResponseSize must be a positive number")}if(Ve!=null&&(!Number.isInteger(Ve)||Ve<-1)){throw new Ie("autoSelectFamilyAttemptTimeout must be a positive number")}if(Ke!=null&&typeof Ke!=="boolean"){throw new Ie("allowH2 must be a valid boolean value")}if(Ge!=null&&(typeof Ge!=="number"||Ge<1)){throw new Ie("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof Fe!=="function"){Fe=De({...xe,maxCachedSessions:Te,allowH2:Ke,socketPath:Re,timeout:Ee,...ve.nodeHasAutoSelectFamily&&Je?{autoSelectFamily:Je,autoSelectFamilyAttemptTimeout:Ve}:undefined,...Fe})}this[Et]=pe&&pe.Client&&Array.isArray(pe.Client)?pe.Client:[Wt({maxRedirections:Me})];this[Ne]=ve.parseOrigin(R);this[At]=Fe;this[st]=null;this[ot]=Qe!=null?Qe:1;this[ct]=Ae||ye.maxHeaderSize;this[et]=Se==null?4e3:Se;this[ut]=ke==null?6e5:ke;this[lt]=Oe==null?1e3:Oe;this[at]=this[et];this[je]=null;this[wt]=Ue!=null?Ue:null;this[We]=0;this[Xe]=0;this[tt]=`host: ${this[Ne].hostname}${this[Ne].port?`:${this[Ne].port}`:""}\r\n`;this[ft]=we!=null?we:3e5;this[dt]=he!=null?he:3e5;this[pt]=Pe==null?true:Pe;this[ht]=Me;this[gt]=Le;this[Ut]=null;this[Ct]=He>-1?He:-1;this[_t]="h1";this[St]=null;this[Bt]=!Ke?null:{openStreams:0,maxConcurrentStreams:Ge!=null?Ge:100};this[It]=`${this[Ne].hostname}${this[Ne].port?`:${this[Ne].port}`:""}`;this[qe]=[];this[nt]=0;this[rt]=0}get pipelining(){return this[ot]}set pipelining(R){this[ot]=R;resume(this,true)}get[Ke](){return this[qe].length-this[rt]}get[Ve](){return this[rt]-this[nt]}get[Ge](){return this[qe].length-this[nt]}get[$e](){return!!this[st]&&!this[ze]&&!this[st].destroyed}get[Le](){const R=this[st];return R&&(R[Me]||R[Ye]||R[Je])||this[Ge]>=(this[ot]||1)||this[Ke]>0}[He](R){connect(this);this.once("connect",R)}[bt](R,pe){const Ae=R.origin||this[Ne].origin;const he=this[_t]==="h2"?Ee[kt](Ae,R,pe):Ee[Rt](Ae,R,pe);this[qe].push(he);if(this[We]){}else if(ve.bodyLength(he.body)==null&&ve.isIterable(he.body)){this[We]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[We]&&this[Xe]!==2&&this[Le]){this[Xe]=2}return this[Xe]<2}async[mt](){return new Promise((R=>{if(!this[Ge]){R(null)}else{this[Ut]=R}}))}async[vt](R){return new Promise((pe=>{const Ae=this[qe].splice(this[rt]);for(let pe=0;pe{if(this[Ut]){this[Ut]();this[Ut]=null}pe()};if(this[St]!=null){ve.destroy(this[St],R);this[St]=null;this[Bt]=null}if(!this[st]){queueMicrotask(callback)}else{ve.destroy(this[st].on("close",callback),R)}resume(this)}))}}function onHttp2SessionError(R){he(R.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[st][it]=R;onError(this[Fe],R)}function onHttp2FrameError(R,pe,Ae){const he=new Re(`HTTP/2: "frameError" received - type ${R}, code ${pe}`);if(Ae===0){this[st][it]=he;onError(this[Fe],he)}}function onHttp2SessionEnd(){ve.destroy(this,new Oe("other side closed"));ve.destroy(this[st],new Oe("other side closed"))}function onHTTP2GoAway(R){const pe=this[Fe];const Ae=new Re(`HTTP/2: "GOAWAY" frame received with code ${R}`);pe[st]=null;pe[St]=null;if(pe.destroyed){he(this[Ke]===0);const R=pe[qe].splice(pe[nt]);for(let pe=0;pe0){const R=pe[qe][pe[nt]];pe[qe][pe[nt]++]=null;errorRequest(pe,R,Ae)}pe[rt]=pe[nt];he(pe[Ve]===0);pe.emit("disconnect",pe[Ne],[pe],Ae);resume(pe)}const Jt=Ae(30953);const Wt=Ae(38861);const Vt=Buffer.alloc(0);async function lazyllhttp(){const R=process.env.JEST_WORKER_ID?Ae(61145):undefined;let pe;try{pe=await WebAssembly.compile(Buffer.from(Ae(95627),"base64"))}catch(he){pe=await WebAssembly.compile(Buffer.from(R||Ae(61145),"base64"))}return await WebAssembly.instantiate(pe,{env:{wasm_on_url:(R,pe,Ae)=>0,wasm_on_status:(R,pe,Ae)=>{he.strictEqual(Yt.ptr,R);const ge=pe-zt+qt.byteOffset;return Yt.onStatus(new Lt(qt.buffer,ge,Ae))||0},wasm_on_message_begin:R=>{he.strictEqual(Yt.ptr,R);return Yt.onMessageBegin()||0},wasm_on_header_field:(R,pe,Ae)=>{he.strictEqual(Yt.ptr,R);const ge=pe-zt+qt.byteOffset;return Yt.onHeaderField(new Lt(qt.buffer,ge,Ae))||0},wasm_on_header_value:(R,pe,Ae)=>{he.strictEqual(Yt.ptr,R);const ge=pe-zt+qt.byteOffset;return Yt.onHeaderValue(new Lt(qt.buffer,ge,Ae))||0},wasm_on_headers_complete:(R,pe,Ae,ge)=>{he.strictEqual(Yt.ptr,R);return Yt.onHeadersComplete(pe,Boolean(Ae),Boolean(ge))||0},wasm_on_body:(R,pe,Ae)=>{he.strictEqual(Yt.ptr,R);const ge=pe-zt+qt.byteOffset;return Yt.onBody(new Lt(qt.buffer,ge,Ae))||0},wasm_on_message_complete:R=>{he.strictEqual(Yt.ptr,R);return Yt.onMessageComplete()||0}}})}let Kt=null;let Gt=lazyllhttp();Gt.catch();let Yt=null;let qt=null;let $t=0;let zt=null;const Xt=1;const Zt=2;const er=3;class Parser{constructor(R,pe,{exports:Ae}){he(Number.isFinite(R[ct])&&R[ct]>0);this.llhttp=Ae;this.ptr=this.llhttp.llhttp_alloc(Jt.TYPE.RESPONSE);this.client=R;this.socket=pe;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=R[ct];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=R[Ct]}setTimeout(R,pe){this.timeoutType=pe;if(R!==this.timeoutValue){be.clearTimeout(this.timeout);if(R){this.timeout=be.setTimeout(onParserTimeout,R,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=R}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}he(this.ptr!=null);he(Yt==null);this.llhttp.llhttp_resume(this.ptr);he(this.timeoutType===Zt);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||Vt);this.readMore()}readMore(){while(!this.paused&&this.ptr){const R=this.socket.read();if(R===null){break}this.execute(R)}}execute(R){he(this.ptr!=null);he(Yt==null);he(!this.paused);const{socket:pe,llhttp:Ae}=this;if(R.length>$t){if(zt){Ae.free(zt)}$t=Math.ceil(R.length/4096)*4096;zt=Ae.malloc($t)}new Uint8Array(Ae.memory.buffer,zt,$t).set(R);try{let he;try{qt=R;Yt=this;he=Ae.llhttp_execute(this.ptr,zt,R.length)}catch(R){throw R}finally{Yt=null;qt=null}const ge=Ae.llhttp_get_error_pos(this.ptr)-zt;if(he===Jt.ERROR.PAUSED_UPGRADE){this.onUpgrade(R.slice(ge))}else if(he===Jt.ERROR.PAUSED){this.paused=true;pe.unshift(R.slice(ge))}else if(he!==Jt.ERROR.OK){const pe=Ae.llhttp_get_error_reason(this.ptr);let ye="";if(pe){const R=new Uint8Array(Ae.memory.buffer,pe).indexOf(0);ye="Response does not match the HTTP/1.1 protocol ("+Buffer.from(Ae.memory.buffer,pe,R).toString()+")"}throw new xe(ye,Jt.ERROR[he],R.slice(ge))}}catch(R){ve.destroy(pe,R)}}destroy(){he(this.ptr!=null);he(Yt==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;be.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(R){this.statusText=R.toString()}onMessageBegin(){const{socket:R,client:pe}=this;if(R.destroyed){return-1}const Ae=pe[qe][pe[nt]];if(!Ae){return-1}}onHeaderField(R){const pe=this.headers.length;if((pe&1)===0){this.headers.push(R)}else{this.headers[pe-1]=Buffer.concat([this.headers[pe-1],R])}this.trackHeader(R.length)}onHeaderValue(R){let pe=this.headers.length;if((pe&1)===1){this.headers.push(R);pe+=1}else{this.headers[pe-1]=Buffer.concat([this.headers[pe-1],R])}const Ae=this.headers[pe-2];if(Ae.length===10&&Ae.toString().toLowerCase()==="keep-alive"){this.keepAlive+=R.toString()}else if(Ae.length===10&&Ae.toString().toLowerCase()==="connection"){this.connection+=R.toString()}else if(Ae.length===14&&Ae.toString().toLowerCase()==="content-length"){this.contentLength+=R.toString()}this.trackHeader(R.length)}trackHeader(R){this.headersSize+=R;if(this.headersSize>=this.headersMaxSize){ve.destroy(this.socket,new ke)}}onUpgrade(R){const{upgrade:pe,client:Ae,socket:ge,headers:ye,statusCode:me}=this;he(pe);const be=Ae[qe][Ae[nt]];he(be);he(!ge.destroyed);he(ge===Ae[st]);he(!this.paused);he(be.upgrade||be.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;he(this.headers.length%2===0);this.headers=[];this.headersSize=0;ge.unshift(R);ge[Ue].destroy();ge[Ue]=null;ge[Fe]=null;ge[it]=null;ge.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);Ae[st]=null;Ae[qe][Ae[nt]++]=null;Ae.emit("disconnect",Ae[Ne],[Ae],new Re("upgrade"));try{be.onUpgrade(me,ye,ge)}catch(R){ve.destroy(ge,R)}resume(Ae)}onHeadersComplete(R,pe,Ae){const{client:ge,socket:ye,headers:me,statusText:be}=this;if(ye.destroyed){return-1}const Ee=ge[qe][ge[nt]];if(!Ee){return-1}he(!this.upgrade);he(this.statusCode<200);if(R===100){ve.destroy(ye,new Oe("bad response",ve.getSocketInfo(ye)));return-1}if(pe&&!Ee.upgrade){ve.destroy(ye,new Oe("bad upgrade",ve.getSocketInfo(ye)));return-1}he.strictEqual(this.timeoutType,Xt);this.statusCode=R;this.shouldKeepAlive=Ae||Ee.method==="HEAD"&&!ye[Me]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const R=Ee.bodyTimeout!=null?Ee.bodyTimeout:ge[ft];this.setTimeout(R,Zt)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(Ee.method==="CONNECT"){he(ge[Ve]===1);this.upgrade=true;return 2}if(pe){he(ge[Ve]===1);this.upgrade=true;return 2}he(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&ge[ot]){const R=this.keepAlive?ve.parseKeepAliveTimeout(this.keepAlive):null;if(R!=null){const pe=Math.min(R-ge[lt],ge[ut]);if(pe<=0){ye[Me]=true}else{ge[at]=pe}}else{ge[at]=ge[et]}}else{ye[Me]=true}const we=Ee.onHeaders(R,me,this.resume,be)===false;if(Ee.aborted){return-1}if(Ee.method==="HEAD"){return 1}if(R<200){return 1}if(ye[Je]){ye[Je]=false;resume(ge)}return we?Jt.ERROR.PAUSED:0}onBody(R){const{client:pe,socket:Ae,statusCode:ge,maxResponseSize:ye}=this;if(Ae.destroyed){return-1}const me=pe[qe][pe[nt]];he(me);he.strictEqual(this.timeoutType,Zt);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}he(ge>=200);if(ye>-1&&this.bytesRead+R.length>ye){ve.destroy(Ae,new Pe);return-1}this.bytesRead+=R.length;if(me.onData(R)===false){return Jt.ERROR.PAUSED}}onMessageComplete(){const{client:R,socket:pe,statusCode:Ae,upgrade:ge,headers:ye,contentLength:me,bytesRead:be,shouldKeepAlive:Ee}=this;if(pe.destroyed&&(!Ae||Ee)){return-1}if(ge){return}const we=R[qe][R[nt]];he(we);he(Ae>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";he(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(Ae<200){return}if(we.method!=="HEAD"&&me&&be!==parseInt(me,10)){ve.destroy(pe,new _e);return-1}we.onComplete(ye);R[qe][R[nt]++]=null;if(pe[Ye]){he.strictEqual(R[Ve],0);ve.destroy(pe,new Re("reset"));return Jt.ERROR.PAUSED}else if(!Ee){ve.destroy(pe,new Re("reset"));return Jt.ERROR.PAUSED}else if(pe[Me]&&R[Ve]===0){ve.destroy(pe,new Re("reset"));return Jt.ERROR.PAUSED}else if(R[ot]===1){setImmediate(resume,R)}else{resume(R)}}}function onParserTimeout(R){const{socket:pe,timeoutType:Ae,client:ge}=R;if(Ae===Xt){if(!pe[Ye]||pe.writableNeedDrain||ge[Ve]>1){he(!R.paused,"cannot be paused while waiting for headers");ve.destroy(pe,new Be)}}else if(Ae===Zt){if(!R.paused){ve.destroy(pe,new Qe)}}else if(Ae===er){he(ge[Ve]===0&&ge[at]);ve.destroy(pe,new Re("socket idle timeout"))}}function onSocketReadable(){const{[Ue]:R}=this;if(R){R.readMore()}}function onSocketError(R){const{[Fe]:pe,[Ue]:Ae}=this;he(R.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(pe[_t]!=="h2"){if(R.code==="ECONNRESET"&&Ae.statusCode&&!Ae.shouldKeepAlive){Ae.onMessageComplete();return}}this[it]=R;onError(this[Fe],R)}function onError(R,pe){if(R[Ve]===0&&pe.code!=="UND_ERR_INFO"&&pe.code!=="UND_ERR_SOCKET"){he(R[rt]===R[nt]);const Ae=R[qe].splice(R[nt]);for(let he=0;he0&&Ae.code!=="UND_ERR_INFO"){const pe=R[qe][R[nt]];R[qe][R[nt]++]=null;errorRequest(R,pe,Ae)}R[rt]=R[nt];he(R[Ve]===0);R.emit("disconnect",R[Ne],[R],Ae);resume(R)}async function connect(R){he(!R[ze]);he(!R[st]);let{host:pe,hostname:Ae,protocol:ye,port:me}=R[Ne];if(Ae[0]==="["){const R=Ae.indexOf("]");he(R!==-1);const pe=Ae.substring(1,R);he(ge.isIP(pe));Ae=pe}R[ze]=true;if(Ht.beforeConnect.hasSubscribers){Ht.beforeConnect.publish({connectParams:{host:pe,hostname:Ae,protocol:ye,port:me,servername:R[je],localAddress:R[wt]},connector:R[At]})}try{const ge=await new Promise(((he,ge)=>{R[At]({host:pe,hostname:Ae,protocol:ye,port:me,servername:R[je],localAddress:R[wt]},((R,pe)=>{if(R){ge(R)}else{he(pe)}}))}));if(R.destroyed){ve.destroy(ge.on("error",(()=>{})),new Te);return}R[ze]=false;he(ge);const be=ge.alpnProtocol==="h2";if(be){if(!Ft){Ft=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const pe=Qt.connect(R[Ne],{createConnection:()=>ge,peerMaxConcurrentStreams:R[Bt].maxConcurrentStreams});R[_t]="h2";pe[Fe]=R;pe[st]=ge;pe.on("error",onHttp2SessionError);pe.on("frameError",onHttp2FrameError);pe.on("end",onHttp2SessionEnd);pe.on("goaway",onHTTP2GoAway);pe.on("close",onSocketClose);pe.unref();R[St]=pe;ge[St]=pe}else{if(!Kt){Kt=await Gt;Gt=null}ge[Ze]=false;ge[Ye]=false;ge[Me]=false;ge[Je]=false;ge[Ue]=new Parser(R,ge,Kt)}ge[yt]=0;ge[gt]=R[gt];ge[Fe]=R;ge[it]=null;ge.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);R[st]=ge;if(Ht.connected.hasSubscribers){Ht.connected.publish({connectParams:{host:pe,hostname:Ae,protocol:ye,port:me,servername:R[je],localAddress:R[wt]},connector:R[At],socket:ge})}R.emit("connect",R[Ne],[R])}catch(ge){if(R.destroyed){return}R[ze]=false;if(Ht.connectError.hasSubscribers){Ht.connectError.publish({connectParams:{host:pe,hostname:Ae,protocol:ye,port:me,servername:R[je],localAddress:R[wt]},connector:R[At],error:ge})}if(ge.code==="ERR_TLS_CERT_ALTNAME_INVALID"){he(R[Ve]===0);while(R[Ke]>0&&R[qe][R[rt]].servername===R[je]){const pe=R[qe][R[rt]++];errorRequest(R,pe,ge)}}else{onError(R,ge)}R.emit("connectionError",R[Ne],[R],ge)}resume(R)}function emitDrain(R){R[Xe]=0;R.emit("drain",R[Ne],[R])}function resume(R,pe){if(R[We]===2){return}R[We]=2;_resume(R,pe);R[We]=0;if(R[nt]>256){R[qe].splice(0,R[nt]);R[rt]-=R[nt];R[nt]=0}}function _resume(R,pe){while(true){if(R.destroyed){he(R[Ke]===0);return}if(R[Ut]&&!R[Ge]){R[Ut]();R[Ut]=null;return}const Ae=R[st];if(Ae&&!Ae.destroyed&&Ae.alpnProtocol!=="h2"){if(R[Ge]===0){if(!Ae[Ze]&&Ae.unref){Ae.unref();Ae[Ze]=true}}else if(Ae[Ze]&&Ae.ref){Ae.ref();Ae[Ze]=false}if(R[Ge]===0){if(Ae[Ue].timeoutType!==er){Ae[Ue].setTimeout(R[at],er)}}else if(R[Ve]>0&&Ae[Ue].statusCode<200){if(Ae[Ue].timeoutType!==Xt){const pe=R[qe][R[nt]];const he=pe.headersTimeout!=null?pe.headersTimeout:R[dt];Ae[Ue].setTimeout(he,Xt)}}}if(R[Le]){R[Xe]=2}else if(R[Xe]===2){if(pe){R[Xe]=1;process.nextTick(emitDrain,R)}else{emitDrain(R)}continue}if(R[Ke]===0){return}if(R[Ve]>=(R[ot]||1)){return}const ge=R[qe][R[rt]];if(R[Ne].protocol==="https:"&&R[je]!==ge.servername){if(R[Ve]>0){return}R[je]=ge.servername;if(Ae&&Ae.servername!==ge.servername){ve.destroy(Ae,new Re("servername changed"));return}}if(R[ze]){return}if(!Ae&&!R[St]){connect(R);return}if(Ae.destroyed||Ae[Ye]||Ae[Me]||Ae[Je]){return}if(R[Ve]>0&&!ge.idempotent){return}if(R[Ve]>0&&(ge.upgrade||ge.method==="CONNECT")){return}if(R[Ve]>0&&ve.bodyLength(ge.body)!==0&&(ve.isStream(ge.body)||ve.isAsyncIterable(ge.body))){return}if(!ge.aborted&&write(R,ge)){R[rt]++}else{R[qe].splice(R[rt],1)}}}function shouldSendContentLength(R){return R!=="GET"&&R!=="HEAD"&&R!=="OPTIONS"&&R!=="TRACE"&&R!=="CONNECT"}function write(R,pe){if(R[_t]==="h2"){writeH2(R,R[St],pe);return}const{body:Ae,method:ge,path:ye,host:me,upgrade:be,headers:Ee,blocking:we,reset:_e}=pe;const Ie=ge==="PUT"||ge==="POST"||ge==="PATCH";if(Ae&&typeof Ae.read==="function"){Ae.read(0)}const Be=ve.bodyLength(Ae);let ke=Be;if(ke===null){ke=pe.contentLength}if(ke===0&&!Ie){ke=null}if(shouldSendContentLength(ge)&&ke>0&&pe.contentLength!==null&&pe.contentLength!==ke){if(R[pt]){errorRequest(R,pe,new Ce);return false}process.emitWarning(new Ce)}const Oe=R[st];try{pe.onConnect((Ae=>{if(pe.aborted||pe.completed){return}errorRequest(R,pe,Ae||new Se);ve.destroy(Oe,new Re("aborted"))}))}catch(Ae){errorRequest(R,pe,Ae)}if(pe.aborted){return false}if(ge==="HEAD"){Oe[Me]=true}if(be||ge==="CONNECT"){Oe[Me]=true}if(_e!=null){Oe[Me]=_e}if(R[gt]&&Oe[yt]++>=R[gt]){Oe[Me]=true}if(we){Oe[Je]=true}let Qe=`${ge} ${ye} HTTP/1.1\r\n`;if(typeof me==="string"){Qe+=`host: ${me}\r\n`}else{Qe+=R[tt]}if(be){Qe+=`connection: upgrade\r\nupgrade: ${be}\r\n`}else if(R[ot]&&!Oe[Me]){Qe+="connection: keep-alive\r\n"}else{Qe+="connection: close\r\n"}if(Ee){Qe+=Ee}if(Ht.sendHeaders.hasSubscribers){Ht.sendHeaders.publish({request:pe,headers:Qe,socket:Oe})}if(!Ae||Be===0){if(ke===0){Oe.write(`${Qe}content-length: 0\r\n\r\n`,"latin1")}else{he(ke===null,"no body must not have content length");Oe.write(`${Qe}\r\n`,"latin1")}pe.onRequestSent()}else if(ve.isBuffer(Ae)){he(ke===Ae.byteLength,"buffer body must have content length");Oe.cork();Oe.write(`${Qe}content-length: ${ke}\r\n\r\n`,"latin1");Oe.write(Ae);Oe.uncork();pe.onBodySent(Ae);pe.onRequestSent();if(!Ie){Oe[Me]=true}}else if(ve.isBlobLike(Ae)){if(typeof Ae.stream==="function"){writeIterable({body:Ae.stream(),client:R,request:pe,socket:Oe,contentLength:ke,header:Qe,expectsPayload:Ie})}else{writeBlob({body:Ae,client:R,request:pe,socket:Oe,contentLength:ke,header:Qe,expectsPayload:Ie})}}else if(ve.isStream(Ae)){writeStream({body:Ae,client:R,request:pe,socket:Oe,contentLength:ke,header:Qe,expectsPayload:Ie})}else if(ve.isIterable(Ae)){writeIterable({body:Ae,client:R,request:pe,socket:Oe,contentLength:ke,header:Qe,expectsPayload:Ie})}else{he(false)}return true}function writeH2(R,pe,Ae){const{body:ge,method:ye,path:me,host:be,upgrade:we,expectContinue:_e,signal:Ie,headers:Be}=Ae;let ke;if(typeof Be==="string")ke=Ee[Ot](Be.trim());else ke=Be;if(we){errorRequest(R,Ae,new Error("Upgrade not supported for H2"));return false}try{Ae.onConnect((pe=>{if(Ae.aborted||Ae.completed){return}errorRequest(R,Ae,pe||new Se)}))}catch(pe){errorRequest(R,Ae,pe)}if(Ae.aborted){return false}let Oe;const Qe=R[Bt];ke[xt]=be||R[It];ke[Pt]=ye;if(ye==="CONNECT"){pe.ref();Oe=pe.request(ke,{endStream:false,signal:Ie});if(Oe.id&&!Oe.pending){Ae.onUpgrade(null,null,Oe);++Qe.openStreams}else{Oe.once("ready",(()=>{Ae.onUpgrade(null,null,Oe);++Qe.openStreams}))}Oe.once("close",(()=>{Qe.openStreams-=1;if(Qe.openStreams===0)pe.unref()}));return true}ke[Tt]=me;ke[Dt]="https";const xe=ye==="PUT"||ye==="POST"||ye==="PATCH";if(ge&&typeof ge.read==="function"){ge.read(0)}let Pe=ve.bodyLength(ge);if(Pe==null){Pe=Ae.contentLength}if(Pe===0||!xe){Pe=null}if(shouldSendContentLength(ye)&&Pe>0&&Ae.contentLength!=null&&Ae.contentLength!==Pe){if(R[pt]){errorRequest(R,Ae,new Ce);return false}process.emitWarning(new Ce)}if(Pe!=null){he(ge,"no body must not have content length");ke[Nt]=`${Pe}`}pe.ref();const Te=ye==="GET"||ye==="HEAD";if(_e){ke[Mt]="100-continue";Oe=pe.request(ke,{endStream:Te,signal:Ie});Oe.once("continue",writeBodyH2)}else{Oe=pe.request(ke,{endStream:Te,signal:Ie});writeBodyH2()}++Qe.openStreams;Oe.once("response",(R=>{const{[jt]:pe,...he}=R;if(Ae.onHeaders(Number(pe),he,Oe.resume.bind(Oe),"")===false){Oe.pause()}}));Oe.once("end",(()=>{Ae.onComplete([])}));Oe.on("data",(R=>{if(Ae.onData(R)===false){Oe.pause()}}));Oe.once("close",(()=>{Qe.openStreams-=1;if(Qe.openStreams===0){pe.unref()}}));Oe.once("error",(function(pe){if(R[St]&&!R[St].destroyed&&!this.closed&&!this.destroyed){Qe.streams-=1;ve.destroy(Oe,pe)}}));Oe.once("frameError",((pe,he)=>{const ge=new Re(`HTTP/2: "frameError" received - type ${pe}, code ${he}`);errorRequest(R,Ae,ge);if(R[St]&&!R[St].destroyed&&!this.closed&&!this.destroyed){Qe.streams-=1;ve.destroy(Oe,ge)}}));return true;function writeBodyH2(){if(!ge){Ae.onRequestSent()}else if(ve.isBuffer(ge)){he(Pe===ge.byteLength,"buffer body must have content length");Oe.cork();Oe.write(ge);Oe.uncork();Oe.end();Ae.onBodySent(ge);Ae.onRequestSent()}else if(ve.isBlobLike(ge)){if(typeof ge.stream==="function"){writeIterable({client:R,request:Ae,contentLength:Pe,h2stream:Oe,expectsPayload:xe,body:ge.stream(),socket:R[st],header:""})}else{writeBlob({body:ge,client:R,request:Ae,contentLength:Pe,expectsPayload:xe,h2stream:Oe,header:"",socket:R[st]})}}else if(ve.isStream(ge)){writeStream({body:ge,client:R,request:Ae,contentLength:Pe,expectsPayload:xe,socket:R[st],h2stream:Oe,header:""})}else if(ve.isIterable(ge)){writeIterable({body:ge,client:R,request:Ae,contentLength:Pe,expectsPayload:xe,header:"",h2stream:Oe,socket:R[st]})}else{he(false)}}}function writeStream({h2stream:R,body:pe,client:Ae,request:ge,socket:ye,contentLength:be,header:Ee,expectsPayload:we}){he(be!==0||Ae[Ve]===0,"stream body cannot be pipelined");if(Ae[_t]==="h2"){const Ae=me(pe,R,(Ae=>{if(Ae){ve.destroy(pe,Ae);ve.destroy(R,Ae)}else{ge.onRequestSent()}}));Ae.on("data",onPipeData);Ae.once("end",(()=>{Ae.removeListener("data",onPipeData);ve.destroy(Ae)}));function onPipeData(R){ge.onBodySent(R)}return}let Ce=false;const _e=new AsyncWriter({socket:ye,request:ge,contentLength:be,client:Ae,expectsPayload:we,header:Ee});const onData=function(R){if(Ce){return}try{if(!_e.write(R)&&this.pause){this.pause()}}catch(R){ve.destroy(this,R)}};const onDrain=function(){if(Ce){return}if(pe.resume){pe.resume()}};const onAbort=function(){if(Ce){return}const R=new Se;queueMicrotask((()=>onFinished(R)))};const onFinished=function(R){if(Ce){return}Ce=true;he(ye.destroyed||ye[Ye]&&Ae[Ve]<=1);ye.off("drain",onDrain).off("error",onFinished);pe.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!R){try{_e.end()}catch(pe){R=pe}}_e.destroy(R);if(R&&(R.code!=="UND_ERR_INFO"||R.message!=="reset")){ve.destroy(pe,R)}else{ve.destroy(pe)}};pe.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(pe.resume){pe.resume()}ye.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:R,body:pe,client:Ae,request:ge,socket:ye,contentLength:me,header:be,expectsPayload:Ee}){he(me===pe.size,"blob body must have content length");const we=Ae[_t]==="h2";try{if(me!=null&&me!==pe.size){throw new Ce}const he=Buffer.from(await pe.arrayBuffer());if(we){R.cork();R.write(he);R.uncork()}else{ye.cork();ye.write(`${be}content-length: ${me}\r\n\r\n`,"latin1");ye.write(he);ye.uncork()}ge.onBodySent(he);ge.onRequestSent();if(!Ee){ye[Me]=true}resume(Ae)}catch(pe){ve.destroy(we?R:ye,pe)}}async function writeIterable({h2stream:R,body:pe,client:Ae,request:ge,socket:ye,contentLength:me,header:ve,expectsPayload:be}){he(me!==0||Ae[Ve]===0,"iterator body cannot be pipelined");let Ee=null;function onDrain(){if(Ee){const R=Ee;Ee=null;R()}}const waitForDrain=()=>new Promise(((R,pe)=>{he(Ee===null);if(ye[it]){pe(ye[it])}else{Ee=R}}));if(Ae[_t]==="h2"){R.on("close",onDrain).on("drain",onDrain);try{for await(const Ae of pe){if(ye[it]){throw ye[it]}const pe=R.write(Ae);ge.onBodySent(Ae);if(!pe){await waitForDrain()}}}catch(pe){R.destroy(pe)}finally{ge.onRequestSent();R.end();R.off("close",onDrain).off("drain",onDrain)}return}ye.on("close",onDrain).on("drain",onDrain);const we=new AsyncWriter({socket:ye,request:ge,contentLength:me,client:Ae,expectsPayload:be,header:ve});try{for await(const R of pe){if(ye[it]){throw ye[it]}if(!we.write(R)){await waitForDrain()}}we.end()}catch(R){we.destroy(R)}finally{ye.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:R,request:pe,contentLength:Ae,client:he,expectsPayload:ge,header:ye}){this.socket=R;this.request=pe;this.contentLength=Ae;this.client=he;this.bytesWritten=0;this.expectsPayload=ge;this.header=ye;R[Ye]=true}write(R){const{socket:pe,request:Ae,contentLength:he,client:ge,bytesWritten:ye,expectsPayload:me,header:ve}=this;if(pe[it]){throw pe[it]}if(pe.destroyed){return false}const be=Buffer.byteLength(R);if(!be){return true}if(he!==null&&ye+be>he){if(ge[pt]){throw new Ce}process.emitWarning(new Ce)}pe.cork();if(ye===0){if(!me){pe[Me]=true}if(he===null){pe.write(`${ve}transfer-encoding: chunked\r\n`,"latin1")}else{pe.write(`${ve}content-length: ${he}\r\n\r\n`,"latin1")}}if(he===null){pe.write(`\r\n${be.toString(16)}\r\n`,"latin1")}this.bytesWritten+=be;const Ee=pe.write(R);pe.uncork();Ae.onBodySent(R);if(!Ee){if(pe[Ue].timeout&&pe[Ue].timeoutType===Xt){if(pe[Ue].timeout.refresh){pe[Ue].timeout.refresh()}}}return Ee}end(){const{socket:R,contentLength:pe,client:Ae,bytesWritten:he,expectsPayload:ge,header:ye,request:me}=this;me.onRequestSent();R[Ye]=false;if(R[it]){throw R[it]}if(R.destroyed){return}if(he===0){if(ge){R.write(`${ye}content-length: 0\r\n\r\n`,"latin1")}else{R.write(`${ye}\r\n`,"latin1")}}else if(pe===null){R.write("\r\n0\r\n\r\n","latin1")}if(pe!==null&&he!==pe){if(Ae[pt]){throw new Ce}else{process.emitWarning(new Ce)}}if(R[Ue].timeout&&R[Ue].timeoutType===Xt){if(R[Ue].timeout.refresh){R[Ue].timeout.refresh()}}resume(Ae)}destroy(R){const{socket:pe,client:Ae}=this;pe[Ye]=false;if(R){he(Ae[Ve]<=1,"pipeline should only contain this request");ve.destroy(pe,R)}}}function errorRequest(R,pe,Ae){try{pe.onError(Ae);he(pe.aborted)}catch(Ae){R.emit("error",Ae)}}R.exports=Client},56436:(R,pe,Ae)=>{"use strict";const{kConnected:he,kSize:ge}=Ae(72785);class CompatWeakRef{constructor(R){this.value=R}deref(){return this.value[he]===0&&this.value[ge]===0?undefined:this.value}}class CompatFinalizer{constructor(R){this.finalizer=R}register(R,pe){if(R.on){R.on("disconnect",(()=>{if(R[he]===0&&R[ge]===0){this.finalizer(pe)}}))}}}R.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},20663:R=>{"use strict";const pe=1024;const Ae=4096;R.exports={maxAttributeValueSize:pe,maxNameValuePairSize:Ae}},41724:(R,pe,Ae)=>{"use strict";const{parseSetCookie:he}=Ae(24408);const{stringify:ge,getHeadersList:ye}=Ae(43121);const{webidl:me}=Ae(21744);const{Headers:ve}=Ae(10554);function getCookies(R){me.argumentLengthCheck(arguments,1,{header:"getCookies"});me.brandCheck(R,ve,{strict:false});const pe=R.get("cookie");const Ae={};if(!pe){return Ae}for(const R of pe.split(";")){const[pe,...he]=R.split("=");Ae[pe.trim()]=he.join("=")}return Ae}function deleteCookie(R,pe,Ae){me.argumentLengthCheck(arguments,2,{header:"deleteCookie"});me.brandCheck(R,ve,{strict:false});pe=me.converters.DOMString(pe);Ae=me.converters.DeleteCookieAttributes(Ae);setCookie(R,{name:pe,value:"",expires:new Date(0),...Ae})}function getSetCookies(R){me.argumentLengthCheck(arguments,1,{header:"getSetCookies"});me.brandCheck(R,ve,{strict:false});const pe=ye(R).cookies;if(!pe){return[]}return pe.map((R=>he(Array.isArray(R)?R[1]:R)))}function setCookie(R,pe){me.argumentLengthCheck(arguments,2,{header:"setCookie"});me.brandCheck(R,ve,{strict:false});pe=me.converters.Cookie(pe);const Ae=ge(pe);if(Ae){R.append("Set-Cookie",ge(pe))}}me.converters.DeleteCookieAttributes=me.dictionaryConverter([{converter:me.nullableConverter(me.converters.DOMString),key:"path",defaultValue:null},{converter:me.nullableConverter(me.converters.DOMString),key:"domain",defaultValue:null}]);me.converters.Cookie=me.dictionaryConverter([{converter:me.converters.DOMString,key:"name"},{converter:me.converters.DOMString,key:"value"},{converter:me.nullableConverter((R=>{if(typeof R==="number"){return me.converters["unsigned long long"](R)}return new Date(R)})),key:"expires",defaultValue:null},{converter:me.nullableConverter(me.converters["long long"]),key:"maxAge",defaultValue:null},{converter:me.nullableConverter(me.converters.DOMString),key:"domain",defaultValue:null},{converter:me.nullableConverter(me.converters.DOMString),key:"path",defaultValue:null},{converter:me.nullableConverter(me.converters.boolean),key:"secure",defaultValue:null},{converter:me.nullableConverter(me.converters.boolean),key:"httpOnly",defaultValue:null},{converter:me.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:me.sequenceConverter(me.converters.DOMString),key:"unparsed",defaultValue:[]}]);R.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},24408:(R,pe,Ae)=>{"use strict";const{maxNameValuePairSize:he,maxAttributeValueSize:ge}=Ae(20663);const{isCTLExcludingHtab:ye}=Ae(43121);const{collectASequenceOfCodePointsFast:me}=Ae(685);const ve=Ae(39491);function parseSetCookie(R){if(ye(R)){return null}let pe="";let Ae="";let ge="";let ve="";if(R.includes(";")){const he={position:0};pe=me(";",R,he);Ae=R.slice(he.position)}else{pe=R}if(!pe.includes("=")){ve=pe}else{const R={position:0};ge=me("=",pe,R);ve=pe.slice(R.position+1)}ge=ge.trim();ve=ve.trim();if(ge.length+ve.length>he){return null}return{name:ge,value:ve,...parseUnparsedAttributes(Ae)}}function parseUnparsedAttributes(R,pe={}){if(R.length===0){return pe}ve(R[0]===";");R=R.slice(1);let Ae="";if(R.includes(";")){Ae=me(";",R,{position:0});R=R.slice(Ae.length)}else{Ae=R;R=""}let he="";let ye="";if(Ae.includes("=")){const R={position:0};he=me("=",Ae,R);ye=Ae.slice(R.position+1)}else{he=Ae}he=he.trim();ye=ye.trim();if(ye.length>ge){return parseUnparsedAttributes(R,pe)}const be=he.toLowerCase();if(be==="expires"){const R=new Date(ye);pe.expires=R}else if(be==="max-age"){const Ae=ye.charCodeAt(0);if((Ae<48||Ae>57)&&ye[0]!=="-"){return parseUnparsedAttributes(R,pe)}if(!/^\d+$/.test(ye)){return parseUnparsedAttributes(R,pe)}const he=Number(ye);pe.maxAge=he}else if(be==="domain"){let R=ye;if(R[0]==="."){R=R.slice(1)}R=R.toLowerCase();pe.domain=R}else if(be==="path"){let R="";if(ye.length===0||ye[0]!=="/"){R="/"}else{R=ye}pe.path=R}else if(be==="secure"){pe.secure=true}else if(be==="httponly"){pe.httpOnly=true}else if(be==="samesite"){let R="Default";const Ae=ye.toLowerCase();if(Ae.includes("none")){R="None"}if(Ae.includes("strict")){R="Strict"}if(Ae.includes("lax")){R="Lax"}pe.sameSite=R}else{pe.unparsed??=[];pe.unparsed.push(`${he}=${ye}`)}return parseUnparsedAttributes(R,pe)}R.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},43121:(R,pe,Ae)=>{"use strict";const he=Ae(39491);const{kHeadersList:ge}=Ae(72785);function isCTLExcludingHtab(R){if(R.length===0){return false}for(const pe of R){const R=pe.charCodeAt(0);if(R>=0||R<=8||(R>=10||R<=31)||R===127){return false}}}function validateCookieName(R){for(const pe of R){const R=pe.charCodeAt(0);if(R<=32||R>127||pe==="("||pe===")"||pe===">"||pe==="<"||pe==="@"||pe===","||pe===";"||pe===":"||pe==="\\"||pe==='"'||pe==="/"||pe==="["||pe==="]"||pe==="?"||pe==="="||pe==="{"||pe==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(R){for(const pe of R){const R=pe.charCodeAt(0);if(R<33||R===34||R===44||R===59||R===92||R>126){throw new Error("Invalid header value")}}}function validateCookiePath(R){for(const pe of R){const R=pe.charCodeAt(0);if(R<33||pe===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(R){if(R.startsWith("-")||R.endsWith(".")||R.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(R){if(typeof R==="number"){R=new Date(R)}const pe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const Ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const he=pe[R.getUTCDay()];const ge=R.getUTCDate().toString().padStart(2,"0");const ye=Ae[R.getUTCMonth()];const me=R.getUTCFullYear();const ve=R.getUTCHours().toString().padStart(2,"0");const be=R.getUTCMinutes().toString().padStart(2,"0");const Ee=R.getUTCSeconds().toString().padStart(2,"0");return`${he}, ${ge} ${ye} ${me} ${ve}:${be}:${Ee} GMT`}function validateCookieMaxAge(R){if(R<0){throw new Error("Invalid cookie max-age")}}function stringify(R){if(R.name.length===0){return null}validateCookieName(R.name);validateCookieValue(R.value);const pe=[`${R.name}=${R.value}`];if(R.name.startsWith("__Secure-")){R.secure=true}if(R.name.startsWith("__Host-")){R.secure=true;R.domain=null;R.path="/"}if(R.secure){pe.push("Secure")}if(R.httpOnly){pe.push("HttpOnly")}if(typeof R.maxAge==="number"){validateCookieMaxAge(R.maxAge);pe.push(`Max-Age=${R.maxAge}`)}if(R.domain){validateCookieDomain(R.domain);pe.push(`Domain=${R.domain}`)}if(R.path){validateCookiePath(R.path);pe.push(`Path=${R.path}`)}if(R.expires&&R.expires.toString()!=="Invalid Date"){pe.push(`Expires=${toIMFDate(R.expires)}`)}if(R.sameSite){pe.push(`SameSite=${R.sameSite}`)}for(const Ae of R.unparsed){if(!Ae.includes("=")){throw new Error("Invalid unparsed")}const[R,...he]=Ae.split("=");pe.push(`${R.trim()}=${he.join("=")}`)}return pe.join("; ")}let ye;function getHeadersList(R){if(R[ge]){return R[ge]}if(!ye){ye=Object.getOwnPropertySymbols(R).find((R=>R.description==="headers list"));he(ye,"Headers cannot be parsed")}const pe=R[ye];he(pe);return pe}R.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},82067:(R,pe,Ae)=>{"use strict";const he=Ae(41808);const ge=Ae(39491);const ye=Ae(83983);const{InvalidArgumentError:me,ConnectTimeoutError:ve}=Ae(48045);let be;let Ee;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){Ee=class WeakSessionCache{constructor(R){this._maxCachedSessions=R;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((R=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:R}=this._sessionCache.keys().next();this._sessionCache.delete(R)}this._sessionCache.set(R,pe)}}}function buildConnector({allowH2:R,maxCachedSessions:pe,socketPath:ve,timeout:we,...Ce}){if(pe!=null&&(!Number.isInteger(pe)||pe<0)){throw new me("maxCachedSessions must be a positive integer or zero")}const _e={path:ve,...Ce};const Ie=new Ee(pe==null?100:pe);we=we==null?1e4:we;R=R!=null?R:false;return function connect({hostname:pe,host:me,protocol:ve,port:Ee,servername:Ce,localAddress:Se,httpSocket:Be},ke){let Oe;if(ve==="https:"){if(!be){be=Ae(24404)}Ce=Ce||_e.servername||ye.getServerName(me)||null;const he=Ce||pe;const ve=Ie.get(he)||null;ge(he);Oe=be.connect({highWaterMark:16384,..._e,servername:Ce,session:ve,localAddress:Se,ALPNProtocols:R?["http/1.1","h2"]:["http/1.1"],socket:Be,port:Ee||443,host:pe});Oe.on("session",(function(R){Ie.set(he,R)}))}else{ge(!Be,"httpSocket can only be sent on TLS update");Oe=he.connect({highWaterMark:64*1024,..._e,localAddress:Se,port:Ee||80,host:pe})}if(_e.keepAlive==null||_e.keepAlive){const R=_e.keepAliveInitialDelay===undefined?6e4:_e.keepAliveInitialDelay;Oe.setKeepAlive(true,R)}const Re=setupTimeout((()=>onConnectTimeout(Oe)),we);Oe.setNoDelay(true).once(ve==="https:"?"secureConnect":"connect",(function(){Re();if(ke){const R=ke;ke=null;R(null,this)}})).on("error",(function(R){Re();if(ke){const pe=ke;ke=null;pe(R)}}));return Oe}}function setupTimeout(R,pe){if(!pe){return()=>{}}let Ae=null;let he=null;const ge=setTimeout((()=>{Ae=setImmediate((()=>{if(process.platform==="win32"){he=setImmediate((()=>R()))}else{R()}}))}),pe);return()=>{clearTimeout(ge);clearImmediate(Ae);clearImmediate(he)}}function onConnectTimeout(R){ye.destroy(R,new ve)}R.exports=buildConnector},14462:R=>{"use strict";const pe={};const Ae=["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 R=0;R{"use strict";class UndiciError extends Error{constructor(R){super(R);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=R||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=R||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=R||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=R||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(R,pe,Ae,he){super(R);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=R||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=he;this.status=pe;this.statusCode=pe;this.headers=Ae}}class InvalidArgumentError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=R||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=R||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=R||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=R||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=R||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=R||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=R||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=R||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(R,pe){super(R);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=R||"Socket error";this.code="UND_ERR_SOCKET";this.socket=pe}}class NotSupportedError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=R||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=R||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(R,pe,Ae){super(R);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=pe?`HPE_${pe}`:undefined;this.data=Ae?Ae.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(R){super(R);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=R||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(R,pe,{headers:Ae,data:he}){super(R);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=R||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=pe;this.data=he;this.headers=Ae}}R.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}},62905:(R,pe,Ae)=>{"use strict";const{InvalidArgumentError:he,NotSupportedError:ge}=Ae(48045);const ye=Ae(39491);const{kHTTP2BuildRequest:me,kHTTP2CopyHeaders:ve,kHTTP1BuildRequest:be}=Ae(72785);const Ee=Ae(83983);const we=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const Ce=/[^\t\x20-\x7e\x80-\xff]/;const _e=/[^\u0021-\u00ff]/;const Ie=Symbol("handler");const Se={};let Be;try{const R=Ae(67643);Se.create=R.channel("undici:request:create");Se.bodySent=R.channel("undici:request:bodySent");Se.headers=R.channel("undici:request:headers");Se.trailers=R.channel("undici:request:trailers");Se.error=R.channel("undici:request:error")}catch{Se.create={hasSubscribers:false};Se.bodySent={hasSubscribers:false};Se.headers={hasSubscribers:false};Se.trailers={hasSubscribers:false};Se.error={hasSubscribers:false}}class Request{constructor(R,{path:pe,method:ge,body:ye,headers:me,query:ve,idempotent:be,blocking:Ce,upgrade:ke,headersTimeout:Oe,bodyTimeout:Re,reset:Qe,throwOnError:xe,expectContinue:Pe},Te){if(typeof pe!=="string"){throw new he("path must be a string")}else if(pe[0]!=="/"&&!(pe.startsWith("http://")||pe.startsWith("https://"))&&ge!=="CONNECT"){throw new he("path must be an absolute URL or start with a slash")}else if(_e.exec(pe)!==null){throw new he("invalid request path")}if(typeof ge!=="string"){throw new he("method must be a string")}else if(we.exec(ge)===null){throw new he("invalid request method")}if(ke&&typeof ke!=="string"){throw new he("upgrade must be a string")}if(Oe!=null&&(!Number.isFinite(Oe)||Oe<0)){throw new he("invalid headersTimeout")}if(Re!=null&&(!Number.isFinite(Re)||Re<0)){throw new he("invalid bodyTimeout")}if(Qe!=null&&typeof Qe!=="boolean"){throw new he("invalid reset")}if(Pe!=null&&typeof Pe!=="boolean"){throw new he("invalid expectContinue")}this.headersTimeout=Oe;this.bodyTimeout=Re;this.throwOnError=xe===true;this.method=ge;this.abort=null;if(ye==null){this.body=null}else if(Ee.isStream(ye)){this.body=ye;const R=this.body._readableState;if(!R||!R.autoDestroy){this.endHandler=function autoDestroy(){Ee.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=R=>{if(this.abort){this.abort(R)}else{this.error=R}};this.body.on("error",this.errorHandler)}else if(Ee.isBuffer(ye)){this.body=ye.byteLength?ye:null}else if(ArrayBuffer.isView(ye)){this.body=ye.buffer.byteLength?Buffer.from(ye.buffer,ye.byteOffset,ye.byteLength):null}else if(ye instanceof ArrayBuffer){this.body=ye.byteLength?Buffer.from(ye):null}else if(typeof ye==="string"){this.body=ye.length?Buffer.from(ye):null}else if(Ee.isFormDataLike(ye)||Ee.isIterable(ye)||Ee.isBlobLike(ye)){this.body=ye}else{throw new he("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=ke||null;this.path=ve?Ee.buildURL(pe,ve):pe;this.origin=R;this.idempotent=be==null?ge==="HEAD"||ge==="GET":be;this.blocking=Ce==null?false:Ce;this.reset=Qe==null?null:Qe;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=Pe!=null?Pe:false;if(Array.isArray(me)){if(me.length%2!==0){throw new he("headers array must be even")}for(let R=0;R{R.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")}},83983:(R,pe,Ae)=>{"use strict";const he=Ae(39491);const{kDestroyed:ge,kBodyUsed:ye}=Ae(72785);const{IncomingMessage:me}=Ae(13685);const ve=Ae(12781);const be=Ae(41808);const{InvalidArgumentError:Ee}=Ae(48045);const{Blob:we}=Ae(14300);const Ce=Ae(73837);const{stringify:_e}=Ae(63477);const{headerNameLowerCasedRecord:Ie}=Ae(14462);const[Se,Be]=process.versions.node.split(".").map((R=>Number(R)));function nop(){}function isStream(R){return R&&typeof R==="object"&&typeof R.pipe==="function"&&typeof R.on==="function"}function isBlobLike(R){return we&&R instanceof we||R&&typeof R==="object"&&(typeof R.stream==="function"||typeof R.arrayBuffer==="function")&&/^(Blob|File)$/.test(R[Symbol.toStringTag])}function buildURL(R,pe){if(R.includes("?")||R.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const Ae=_e(pe);if(Ae){R+="?"+Ae}return R}function parseURL(R){if(typeof R==="string"){R=new URL(R);if(!/^https?:/.test(R.origin||R.protocol)){throw new Ee("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return R}if(!R||typeof R!=="object"){throw new Ee("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(R.origin||R.protocol)){throw new Ee("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(R instanceof URL)){if(R.port!=null&&R.port!==""&&!Number.isFinite(parseInt(R.port))){throw new Ee("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(R.path!=null&&typeof R.path!=="string"){throw new Ee("Invalid URL path: the path must be a string or null/undefined.")}if(R.pathname!=null&&typeof R.pathname!=="string"){throw new Ee("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(R.hostname!=null&&typeof R.hostname!=="string"){throw new Ee("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(R.origin!=null&&typeof R.origin!=="string"){throw new Ee("Invalid URL origin: the origin must be a string or null/undefined.")}const pe=R.port!=null?R.port:R.protocol==="https:"?443:80;let Ae=R.origin!=null?R.origin:`${R.protocol}//${R.hostname}:${pe}`;let he=R.path!=null?R.path:`${R.pathname||""}${R.search||""}`;if(Ae.endsWith("/")){Ae=Ae.substring(0,Ae.length-1)}if(he&&!he.startsWith("/")){he=`/${he}`}R=new URL(Ae+he)}return R}function parseOrigin(R){R=parseURL(R);if(R.pathname!=="/"||R.search||R.hash){throw new Ee("invalid url")}return R}function getHostname(R){if(R[0]==="["){const pe=R.indexOf("]");he(pe!==-1);return R.substring(1,pe)}const pe=R.indexOf(":");if(pe===-1)return R;return R.substring(0,pe)}function getServerName(R){if(!R){return null}he.strictEqual(typeof R,"string");const pe=getHostname(R);if(be.isIP(pe)){return""}return pe}function deepClone(R){return JSON.parse(JSON.stringify(R))}function isAsyncIterable(R){return!!(R!=null&&typeof R[Symbol.asyncIterator]==="function")}function isIterable(R){return!!(R!=null&&(typeof R[Symbol.iterator]==="function"||typeof R[Symbol.asyncIterator]==="function"))}function bodyLength(R){if(R==null){return 0}else if(isStream(R)){const pe=R._readableState;return pe&&pe.objectMode===false&&pe.ended===true&&Number.isFinite(pe.length)?pe.length:null}else if(isBlobLike(R)){return R.size!=null?R.size:null}else if(isBuffer(R)){return R.byteLength}return null}function isDestroyed(R){return!R||!!(R.destroyed||R[ge])}function isReadableAborted(R){const pe=R&&R._readableState;return isDestroyed(R)&&pe&&!pe.endEmitted}function destroy(R,pe){if(R==null||!isStream(R)||isDestroyed(R)){return}if(typeof R.destroy==="function"){if(Object.getPrototypeOf(R).constructor===me){R.socket=null}R.destroy(pe)}else if(pe){process.nextTick(((R,pe)=>{R.emit("error",pe)}),R,pe)}if(R.destroyed!==true){R[ge]=true}}const ke=/timeout=(\d+)/;function parseKeepAliveTimeout(R){const pe=R.toString().match(ke);return pe?parseInt(pe[1],10)*1e3:null}function headerNameToString(R){return Ie[R]||R.toLowerCase()}function parseHeaders(R,pe={}){if(!Array.isArray(R))return R;for(let Ae=0;AeR.toString("utf8")))}else{pe[he]=R[Ae+1].toString("utf8")}}else{if(!Array.isArray(ge)){ge=[ge];pe[he]=ge}ge.push(R[Ae+1].toString("utf8"))}}if("content-length"in pe&&"content-disposition"in pe){pe["content-disposition"]=Buffer.from(pe["content-disposition"]).toString("latin1")}return pe}function parseRawHeaders(R){const pe=[];let Ae=false;let he=-1;for(let ge=0;ge{R.close()}))}else{const pe=Buffer.isBuffer(he)?he:Buffer.from(he);R.enqueue(new Uint8Array(pe))}return R.desiredSize>0},async cancel(R){await pe.return()}},0)}function isFormDataLike(R){return R&&typeof R==="object"&&typeof R.append==="function"&&typeof R.delete==="function"&&typeof R.get==="function"&&typeof R.getAll==="function"&&typeof R.has==="function"&&typeof R.set==="function"&&R[Symbol.toStringTag]==="FormData"}function throwIfAborted(R){if(!R){return}if(typeof R.throwIfAborted==="function"){R.throwIfAborted()}else{if(R.aborted){const R=new Error("The operation was aborted");R.name="AbortError";throw R}}}function addAbortListener(R,pe){if("addEventListener"in R){R.addEventListener("abort",pe,{once:true});return()=>R.removeEventListener("abort",pe)}R.addListener("abort",pe);return()=>R.removeListener("abort",pe)}const Re=!!String.prototype.toWellFormed;function toUSVString(R){if(Re){return`${R}`.toWellFormed()}else if(Ce.toUSVString){return Ce.toUSVString(R)}return`${R}`}function parseRangeHeader(R){if(R==null||R==="")return{start:0,end:null,size:null};const pe=R?R.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return pe?{start:parseInt(pe[1]),end:pe[2]?parseInt(pe[2]):null,size:pe[3]?parseInt(pe[3]):null}:null}const Qe=Object.create(null);Qe.enumerable=true;R.exports={kEnumerableProperty:Qe,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:Se,nodeMinor:Be,nodeHasAutoSelectFamily:Se>18||Se===18&&Be>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},74839:(R,pe,Ae)=>{"use strict";const he=Ae(60412);const{ClientDestroyedError:ge,ClientClosedError:ye,InvalidArgumentError:me}=Ae(48045);const{kDestroy:ve,kClose:be,kDispatch:Ee,kInterceptors:we}=Ae(72785);const Ce=Symbol("destroyed");const _e=Symbol("closed");const Ie=Symbol("onDestroyed");const Se=Symbol("onClosed");const Be=Symbol("Intercepted Dispatch");class DispatcherBase extends he{constructor(){super();this[Ce]=false;this[Ie]=null;this[_e]=false;this[Se]=[]}get destroyed(){return this[Ce]}get closed(){return this[_e]}get interceptors(){return this[we]}set interceptors(R){if(R){for(let pe=R.length-1;pe>=0;pe--){const R=this[we][pe];if(typeof R!=="function"){throw new me("interceptor must be an function")}}}this[we]=R}close(R){if(R===undefined){return new Promise(((R,pe)=>{this.close(((Ae,he)=>Ae?pe(Ae):R(he)))}))}if(typeof R!=="function"){throw new me("invalid callback")}if(this[Ce]){queueMicrotask((()=>R(new ge,null)));return}if(this[_e]){if(this[Se]){this[Se].push(R)}else{queueMicrotask((()=>R(null,null)))}return}this[_e]=true;this[Se].push(R);const onClosed=()=>{const R=this[Se];this[Se]=null;for(let pe=0;pethis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(R,pe){if(typeof R==="function"){pe=R;R=null}if(pe===undefined){return new Promise(((pe,Ae)=>{this.destroy(R,((R,he)=>R?Ae(R):pe(he)))}))}if(typeof pe!=="function"){throw new me("invalid callback")}if(this[Ce]){if(this[Ie]){this[Ie].push(pe)}else{queueMicrotask((()=>pe(null,null)))}return}if(!R){R=new ge}this[Ce]=true;this[Ie]=this[Ie]||[];this[Ie].push(pe);const onDestroyed=()=>{const R=this[Ie];this[Ie]=null;for(let pe=0;pe{queueMicrotask(onDestroyed)}))}[Be](R,pe){if(!this[we]||this[we].length===0){this[Be]=this[Ee];return this[Ee](R,pe)}let Ae=this[Ee].bind(this);for(let R=this[we].length-1;R>=0;R--){Ae=this[we][R](Ae)}this[Be]=Ae;return Ae(R,pe)}dispatch(R,pe){if(!pe||typeof pe!=="object"){throw new me("handler must be an object")}try{if(!R||typeof R!=="object"){throw new me("opts must be an object.")}if(this[Ce]||this[Ie]){throw new ge}if(this[_e]){throw new ye}return this[Be](R,pe)}catch(R){if(typeof pe.onError!=="function"){throw new me("invalid onError method")}pe.onError(R);return false}}}R.exports=DispatcherBase},60412:(R,pe,Ae)=>{"use strict";const he=Ae(82361);class Dispatcher extends he{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}R.exports=Dispatcher},41472:(R,pe,Ae)=>{"use strict";const he=Ae(50727);const ge=Ae(83983);const{ReadableStreamFrom:ye,isBlobLike:me,isReadableStreamLike:ve,readableStreamClose:be,createDeferredPromise:Ee,fullyReadBody:we}=Ae(52538);const{FormData:Ce}=Ae(72015);const{kState:_e}=Ae(15861);const{webidl:Ie}=Ae(21744);const{DOMException:Se,structuredClone:Be}=Ae(41037);const{Blob:ke,File:Oe}=Ae(14300);const{kBodyUsed:Re}=Ae(72785);const Qe=Ae(39491);const{isErrored:xe}=Ae(83983);const{isUint8Array:Pe,isArrayBuffer:Te}=Ae(29830);const{File:De}=Ae(78511);const{parseMIMEType:Ne,serializeAMimeType:Me}=Ae(685);let je=globalThis.ReadableStream;const Fe=Oe??De;const Le=new TextEncoder;const Ue=new TextDecoder;function extractBody(R,pe=false){if(!je){je=Ae(35356).ReadableStream}let he=null;if(R instanceof je){he=R}else if(me(R)){he=R.stream()}else{he=new je({async pull(R){R.enqueue(typeof we==="string"?Le.encode(we):we);queueMicrotask((()=>be(R)))},start(){},type:undefined})}Qe(ve(he));let Ee=null;let we=null;let Ce=null;let _e=null;if(typeof R==="string"){we=R;_e="text/plain;charset=UTF-8"}else if(R instanceof URLSearchParams){we=R.toString();_e="application/x-www-form-urlencoded;charset=UTF-8"}else if(Te(R)){we=new Uint8Array(R.slice())}else if(ArrayBuffer.isView(R)){we=new Uint8Array(R.buffer.slice(R.byteOffset,R.byteOffset+R.byteLength))}else if(ge.isFormDataLike(R)){const pe=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const Ae=`--${pe}\r\nContent-Disposition: form-data` +/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=R=>R.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=R=>R.replace(/\r?\n|\r/g,"\r\n");const he=[];const ge=new Uint8Array([13,10]);Ce=0;let ye=false;for(const[pe,me]of R){if(typeof me==="string"){const R=Le.encode(Ae+`; name="${escape(normalizeLinefeeds(pe))}"`+`\r\n\r\n${normalizeLinefeeds(me)}\r\n`);he.push(R);Ce+=R.byteLength}else{const R=Le.encode(`${Ae}; name="${escape(normalizeLinefeeds(pe))}"`+(me.name?`; filename="${escape(me.name)}"`:"")+"\r\n"+`Content-Type: ${me.type||"application/octet-stream"}\r\n\r\n`);he.push(R,me,ge);if(typeof me.size==="number"){Ce+=R.byteLength+me.size+ge.byteLength}else{ye=true}}}const me=Le.encode(`--${pe}--`);he.push(me);Ce+=me.byteLength;if(ye){Ce=null}we=R;Ee=async function*(){for(const R of he){if(R.stream){yield*R.stream()}else{yield R}}};_e="multipart/form-data; boundary="+pe}else if(me(R)){we=R;Ce=R.size;if(R.type){_e=R.type}}else if(typeof R[Symbol.asyncIterator]==="function"){if(pe){throw new TypeError("keepalive")}if(ge.isDisturbed(R)||R.locked){throw new TypeError("Response body object should not be disturbed or locked")}he=R instanceof je?R:ye(R)}if(typeof we==="string"||ge.isBuffer(we)){Ce=Buffer.byteLength(we)}if(Ee!=null){let pe;he=new je({async start(){pe=Ee(R)[Symbol.asyncIterator]()},async pull(R){const{value:Ae,done:ge}=await pe.next();if(ge){queueMicrotask((()=>{R.close()}))}else{if(!xe(he)){R.enqueue(new Uint8Array(Ae))}}return R.desiredSize>0},async cancel(R){await pe.return()},type:undefined})}const Ie={stream:he,source:we,length:Ce};return[Ie,_e]}function safelyExtractBody(R,pe=false){if(!je){je=Ae(35356).ReadableStream}if(R instanceof je){Qe(!ge.isDisturbed(R),"The body has already been consumed.");Qe(!R.locked,"The stream is locked.")}return extractBody(R,pe)}function cloneBody(R){const[pe,Ae]=R.stream.tee();const he=Be(Ae,{transfer:[Ae]});const[,ge]=he.tee();R.stream=pe;return{stream:ge,length:R.length,source:R.source}}async function*consumeBody(R){if(R){if(Pe(R)){yield R}else{const pe=R.stream;if(ge.isDisturbed(pe)){throw new TypeError("The body has already been consumed.")}if(pe.locked){throw new TypeError("The stream is locked.")}pe[Re]=true;yield*pe}}}function throwIfAborted(R){if(R.aborted){throw new Se("The operation was aborted.","AbortError")}}function bodyMixinMethods(R){const pe={blob(){return specConsumeBody(this,(R=>{let pe=bodyMimeType(this);if(pe==="failure"){pe=""}else if(pe){pe=Me(pe)}return new ke([R],{type:pe})}),R)},arrayBuffer(){return specConsumeBody(this,(R=>new Uint8Array(R).buffer),R)},text(){return specConsumeBody(this,utf8DecodeBytes,R)},json(){return specConsumeBody(this,parseJSONFromBytes,R)},async formData(){Ie.brandCheck(this,R);throwIfAborted(this[_e]);const pe=this.headers.get("Content-Type");if(/multipart\/form-data/.test(pe)){const R={};for(const[pe,Ae]of this.headers)R[pe.toLowerCase()]=Ae;const pe=new Ce;let Ae;try{Ae=new he({headers:R,preservePath:true})}catch(R){throw new Se(`${R}`,"AbortError")}Ae.on("field",((R,Ae)=>{pe.append(R,Ae)}));Ae.on("file",((R,Ae,he,ge,ye)=>{const me=[];if(ge==="base64"||ge.toLowerCase()==="base64"){let ge="";Ae.on("data",(R=>{ge+=R.toString().replace(/[\r\n]/gm,"");const pe=ge.length-ge.length%4;me.push(Buffer.from(ge.slice(0,pe),"base64"));ge=ge.slice(pe)}));Ae.on("end",(()=>{me.push(Buffer.from(ge,"base64"));pe.append(R,new Fe(me,he,{type:ye}))}))}else{Ae.on("data",(R=>{me.push(R)}));Ae.on("end",(()=>{pe.append(R,new Fe(me,he,{type:ye}))}))}}));const ge=new Promise(((R,pe)=>{Ae.on("finish",R);Ae.on("error",(R=>pe(new TypeError(R))))}));if(this.body!==null)for await(const R of consumeBody(this[_e].body))Ae.write(R);Ae.end();await ge;return pe}else if(/application\/x-www-form-urlencoded/.test(pe)){let R;try{let pe="";const Ae=new TextDecoder("utf-8",{ignoreBOM:true});for await(const R of consumeBody(this[_e].body)){if(!Pe(R)){throw new TypeError("Expected Uint8Array chunk")}pe+=Ae.decode(R,{stream:true})}pe+=Ae.decode();R=new URLSearchParams(pe)}catch(R){throw Object.assign(new TypeError,{cause:R})}const pe=new Ce;for(const[Ae,he]of R){pe.append(Ae,he)}return pe}else{await Promise.resolve();throwIfAborted(this[_e]);throw Ie.errors.exception({header:`${R.name}.formData`,message:"Could not parse content as FormData."})}}};return pe}function mixinBody(R){Object.assign(R.prototype,bodyMixinMethods(R))}async function specConsumeBody(R,pe,Ae){Ie.brandCheck(R,Ae);throwIfAborted(R[_e]);if(bodyUnusable(R[_e].body)){throw new TypeError("Body is unusable")}const he=Ee();const errorSteps=R=>he.reject(R);const successSteps=R=>{try{he.resolve(pe(R))}catch(R){errorSteps(R)}};if(R[_e].body==null){successSteps(new Uint8Array);return he.promise}await we(R[_e].body,successSteps,errorSteps);return he.promise}function bodyUnusable(R){return R!=null&&(R.stream.locked||ge.isDisturbed(R.stream))}function utf8DecodeBytes(R){if(R.length===0){return""}if(R[0]===239&&R[1]===187&&R[2]===191){R=R.subarray(3)}const pe=Ue.decode(R);return pe}function parseJSONFromBytes(R){return JSON.parse(utf8DecodeBytes(R))}function bodyMimeType(R){const{headersList:pe}=R[_e];const Ae=pe.get("content-type");if(Ae===null){return"failure"}return Ne(Ae)}R.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},41037:(R,pe,Ae)=>{"use strict";const{MessageChannel:he,receiveMessageOnPort:ge}=Ae(71267);const ye=["GET","HEAD","POST"];const me=new Set(ye);const ve=[101,204,205,304];const be=[301,302,303,307,308];const Ee=new Set(be);const we=["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 Ce=new Set(we);const _e=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const Ie=new Set(_e);const Se=["follow","manual","error"];const Be=["GET","HEAD","OPTIONS","TRACE"];const ke=new Set(Be);const Oe=["navigate","same-origin","no-cors","cors"];const Re=["omit","same-origin","include"];const Qe=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const xe=["content-encoding","content-language","content-location","content-type","content-length"];const Pe=["half"];const Te=["CONNECT","TRACE","TRACK"];const De=new Set(Te);const Ne=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const Me=new Set(Ne);const je=globalThis.DOMException??(()=>{try{atob("~")}catch(R){return Object.getPrototypeOf(R).constructor}})();let Fe;const Le=globalThis.structuredClone??function structuredClone(R,pe=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!Fe){Fe=new he}Fe.port1.unref();Fe.port2.unref();Fe.port1.postMessage(R,pe?.transfer);return ge(Fe.port2).message};R.exports={DOMException:je,structuredClone:Le,subresource:Ne,forbiddenMethods:Te,requestBodyHeader:xe,referrerPolicy:_e,requestRedirect:Se,requestMode:Oe,requestCredentials:Re,requestCache:Qe,redirectStatus:be,corsSafeListedMethods:ye,nullBodyStatus:ve,safeMethods:Be,badPorts:we,requestDuplex:Pe,subresourceSet:Me,badPortsSet:Ce,redirectStatusSet:Ee,corsSafeListedMethodsSet:me,safeMethodsSet:ke,forbiddenMethodsSet:De,referrerPolicySet:Ie}},685:(R,pe,Ae)=>{const he=Ae(39491);const{atob:ge}=Ae(14300);const{isomorphicDecode:ye}=Ae(52538);const me=new TextEncoder;const ve=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const be=/(\u000A|\u000D|\u0009|\u0020)/;const Ee=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(R){he(R.protocol==="data:");let pe=URLSerializer(R,true);pe=pe.slice(5);const Ae={position:0};let ge=collectASequenceOfCodePointsFast(",",pe,Ae);const me=ge.length;ge=removeASCIIWhitespace(ge,true,true);if(Ae.position>=pe.length){return"failure"}Ae.position++;const ve=pe.slice(me+1);let be=stringPercentDecode(ve);if(/;(\u0020){0,}base64$/i.test(ge)){const R=ye(be);be=forgivingBase64(R);if(be==="failure"){return"failure"}ge=ge.slice(0,-6);ge=ge.replace(/(\u0020)+$/,"");ge=ge.slice(0,-1)}if(ge.startsWith(";")){ge="text/plain"+ge}let Ee=parseMIMEType(ge);if(Ee==="failure"){Ee=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:Ee,body:be}}function URLSerializer(R,pe=false){if(!pe){return R.href}const Ae=R.href;const he=R.hash.length;return he===0?Ae:Ae.substring(0,Ae.length-he)}function collectASequenceOfCodePoints(R,pe,Ae){let he="";while(Ae.positionR.length){return"failure"}pe.position++;let he=collectASequenceOfCodePointsFast(";",R,pe);he=removeHTTPWhitespace(he,false,true);if(he.length===0||!ve.test(he)){return"failure"}const ge=Ae.toLowerCase();const ye=he.toLowerCase();const me={type:ge,subtype:ye,parameters:new Map,essence:`${ge}/${ye}`};while(pe.positionbe.test(R)),R,pe);let Ae=collectASequenceOfCodePoints((R=>R!==";"&&R!=="="),R,pe);Ae=Ae.toLowerCase();if(pe.positionR.length){break}let he=null;if(R[pe.position]==='"'){he=collectAnHTTPQuotedString(R,pe,true);collectASequenceOfCodePointsFast(";",R,pe)}else{he=collectASequenceOfCodePointsFast(";",R,pe);he=removeHTTPWhitespace(he,false,true);if(he.length===0){continue}}if(Ae.length!==0&&ve.test(Ae)&&(he.length===0||Ee.test(he))&&!me.parameters.has(Ae)){me.parameters.set(Ae,he)}}return me}function forgivingBase64(R){R=R.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(R.length%4===0){R=R.replace(/=?=$/,"")}if(R.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(R)){return"failure"}const pe=ge(R);const Ae=new Uint8Array(pe.length);for(let R=0;RR!=='"'&&R!=="\\"),R,pe);if(pe.position>=R.length){break}const Ae=R[pe.position];pe.position++;if(Ae==="\\"){if(pe.position>=R.length){ye+="\\";break}ye+=R[pe.position];pe.position++}else{he(Ae==='"');break}}if(Ae){return ye}return R.slice(ge,pe.position)}function serializeAMimeType(R){he(R!=="failure");const{parameters:pe,essence:Ae}=R;let ge=Ae;for(let[R,Ae]of pe.entries()){ge+=";";ge+=R;ge+="=";if(!ve.test(Ae)){Ae=Ae.replace(/(\\|")/g,"\\$1");Ae='"'+Ae;Ae+='"'}ge+=Ae}return ge}function isHTTPWhiteSpace(R){return R==="\r"||R==="\n"||R==="\t"||R===" "}function removeHTTPWhitespace(R,pe=true,Ae=true){let he=0;let ge=R.length-1;if(pe){for(;he0&&isHTTPWhiteSpace(R[ge]);ge--);}return R.slice(he,ge+1)}function isASCIIWhitespace(R){return R==="\r"||R==="\n"||R==="\t"||R==="\f"||R===" "}function removeASCIIWhitespace(R,pe=true,Ae=true){let he=0;let ge=R.length-1;if(pe){for(;he0&&isASCIIWhitespace(R[ge]);ge--);}return R.slice(he,ge+1)}R.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},78511:(R,pe,Ae)=>{"use strict";const{Blob:he,File:ge}=Ae(14300);const{types:ye}=Ae(73837);const{kState:me}=Ae(15861);const{isBlobLike:ve}=Ae(52538);const{webidl:be}=Ae(21744);const{parseMIMEType:Ee,serializeAMimeType:we}=Ae(685);const{kEnumerableProperty:Ce}=Ae(83983);const _e=new TextEncoder;class File extends he{constructor(R,pe,Ae={}){be.argumentLengthCheck(arguments,2,{header:"File constructor"});R=be.converters["sequence"](R);pe=be.converters.USVString(pe);Ae=be.converters.FilePropertyBag(Ae);const he=pe;let ge=Ae.type;let ye;e:{if(ge){ge=Ee(ge);if(ge==="failure"){ge="";break e}ge=we(ge).toLowerCase()}ye=Ae.lastModified}super(processBlobParts(R,Ae),{type:ge});this[me]={name:he,lastModified:ye,type:ge}}get name(){be.brandCheck(this,File);return this[me].name}get lastModified(){be.brandCheck(this,File);return this[me].lastModified}get type(){be.brandCheck(this,File);return this[me].type}}class FileLike{constructor(R,pe,Ae={}){const he=pe;const ge=Ae.type;const ye=Ae.lastModified??Date.now();this[me]={blobLike:R,name:he,type:ge,lastModified:ye}}stream(...R){be.brandCheck(this,FileLike);return this[me].blobLike.stream(...R)}arrayBuffer(...R){be.brandCheck(this,FileLike);return this[me].blobLike.arrayBuffer(...R)}slice(...R){be.brandCheck(this,FileLike);return this[me].blobLike.slice(...R)}text(...R){be.brandCheck(this,FileLike);return this[me].blobLike.text(...R)}get size(){be.brandCheck(this,FileLike);return this[me].blobLike.size}get type(){be.brandCheck(this,FileLike);return this[me].blobLike.type}get name(){be.brandCheck(this,FileLike);return this[me].name}get lastModified(){be.brandCheck(this,FileLike);return this[me].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:Ce,lastModified:Ce});be.converters.Blob=be.interfaceConverter(he);be.converters.BlobPart=function(R,pe){if(be.util.Type(R)==="Object"){if(ve(R)){return be.converters.Blob(R,{strict:false})}if(ArrayBuffer.isView(R)||ye.isAnyArrayBuffer(R)){return be.converters.BufferSource(R,pe)}}return be.converters.USVString(R,pe)};be.converters["sequence"]=be.sequenceConverter(be.converters.BlobPart);be.converters.FilePropertyBag=be.dictionaryConverter([{key:"lastModified",converter:be.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:be.converters.DOMString,defaultValue:""},{key:"endings",converter:R=>{R=be.converters.DOMString(R);R=R.toLowerCase();if(R!=="native"){R="transparent"}return R},defaultValue:"transparent"}]);function processBlobParts(R,pe){const Ae=[];for(const he of R){if(typeof he==="string"){let R=he;if(pe.endings==="native"){R=convertLineEndingsNative(R)}Ae.push(_e.encode(R))}else if(ye.isAnyArrayBuffer(he)||ye.isTypedArray(he)){if(!he.buffer){Ae.push(new Uint8Array(he))}else{Ae.push(new Uint8Array(he.buffer,he.byteOffset,he.byteLength))}}else if(ve(he)){Ae.push(he)}}return Ae}function convertLineEndingsNative(R){let pe="\n";if(process.platform==="win32"){pe="\r\n"}return R.replace(/\r?\n/g,pe)}function isFileLike(R){return ge&&R instanceof ge||R instanceof File||R&&(typeof R.stream==="function"||typeof R.arrayBuffer==="function")&&R[Symbol.toStringTag]==="File"}R.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},72015:(R,pe,Ae)=>{"use strict";const{isBlobLike:he,toUSVString:ge,makeIterator:ye}=Ae(52538);const{kState:me}=Ae(15861);const{File:ve,FileLike:be,isFileLike:Ee}=Ae(78511);const{webidl:we}=Ae(21744);const{Blob:Ce,File:_e}=Ae(14300);const Ie=_e??ve;class FormData{constructor(R){if(R!==undefined){throw we.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[me]=[]}append(R,pe,Ae=undefined){we.brandCheck(this,FormData);we.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!he(pe)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}R=we.converters.USVString(R);pe=he(pe)?we.converters.Blob(pe,{strict:false}):we.converters.USVString(pe);Ae=arguments.length===3?we.converters.USVString(Ae):undefined;const ge=makeEntry(R,pe,Ae);this[me].push(ge)}delete(R){we.brandCheck(this,FormData);we.argumentLengthCheck(arguments,1,{header:"FormData.delete"});R=we.converters.USVString(R);this[me]=this[me].filter((pe=>pe.name!==R))}get(R){we.brandCheck(this,FormData);we.argumentLengthCheck(arguments,1,{header:"FormData.get"});R=we.converters.USVString(R);const pe=this[me].findIndex((pe=>pe.name===R));if(pe===-1){return null}return this[me][pe].value}getAll(R){we.brandCheck(this,FormData);we.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});R=we.converters.USVString(R);return this[me].filter((pe=>pe.name===R)).map((R=>R.value))}has(R){we.brandCheck(this,FormData);we.argumentLengthCheck(arguments,1,{header:"FormData.has"});R=we.converters.USVString(R);return this[me].findIndex((pe=>pe.name===R))!==-1}set(R,pe,Ae=undefined){we.brandCheck(this,FormData);we.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!he(pe)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}R=we.converters.USVString(R);pe=he(pe)?we.converters.Blob(pe,{strict:false}):we.converters.USVString(pe);Ae=arguments.length===3?ge(Ae):undefined;const ye=makeEntry(R,pe,Ae);const ve=this[me].findIndex((pe=>pe.name===R));if(ve!==-1){this[me]=[...this[me].slice(0,ve),ye,...this[me].slice(ve+1).filter((pe=>pe.name!==R))]}else{this[me].push(ye)}}entries(){we.brandCheck(this,FormData);return ye((()=>this[me].map((R=>[R.name,R.value]))),"FormData","key+value")}keys(){we.brandCheck(this,FormData);return ye((()=>this[me].map((R=>[R.name,R.value]))),"FormData","key")}values(){we.brandCheck(this,FormData);return ye((()=>this[me].map((R=>[R.name,R.value]))),"FormData","value")}forEach(R,pe=globalThis){we.brandCheck(this,FormData);we.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof R!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[Ae,he]of this){R.apply(pe,[he,Ae,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(R,pe,Ae){R=Buffer.from(R).toString("utf8");if(typeof pe==="string"){pe=Buffer.from(pe).toString("utf8")}else{if(!Ee(pe)){pe=pe instanceof Ce?new Ie([pe],"blob",{type:pe.type}):new be(pe,"blob",{type:pe.type})}if(Ae!==undefined){const R={type:pe.type,lastModified:pe.lastModified};pe=_e&&pe instanceof _e||pe instanceof ve?new Ie([pe],Ae,R):new be(pe,Ae,R)}}return{name:R,value:pe}}R.exports={FormData:FormData}},71246:R=>{"use strict";const pe=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[pe]}function setGlobalOrigin(R){if(R===undefined){Object.defineProperty(globalThis,pe,{value:undefined,writable:true,enumerable:false,configurable:false});return}const Ae=new URL(R);if(Ae.protocol!=="http:"&&Ae.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${Ae.protocol}`)}Object.defineProperty(globalThis,pe,{value:Ae,writable:true,enumerable:false,configurable:false})}R.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},10554:(R,pe,Ae)=>{"use strict";const{kHeadersList:he,kConstruct:ge}=Ae(72785);const{kGuard:ye}=Ae(15861);const{kEnumerableProperty:me}=Ae(83983);const{makeIterator:ve,isValidHeaderName:be,isValidHeaderValue:Ee}=Ae(52538);const{webidl:we}=Ae(21744);const Ce=Ae(39491);const _e=Symbol("headers map");const Ie=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(R){return R===10||R===13||R===9||R===32}function headerValueNormalize(R){let pe=0;let Ae=R.length;while(Ae>pe&&isHTTPWhiteSpaceCharCode(R.charCodeAt(Ae-1)))--Ae;while(Ae>pe&&isHTTPWhiteSpaceCharCode(R.charCodeAt(pe)))++pe;return pe===0&&Ae===R.length?R:R.substring(pe,Ae)}function fill(R,pe){if(Array.isArray(pe)){for(let Ae=0;Ae>","record"]})}}function appendHeader(R,pe,Ae){Ae=headerValueNormalize(Ae);if(!be(pe)){throw we.errors.invalidArgument({prefix:"Headers.append",value:pe,type:"header name"})}else if(!Ee(Ae)){throw we.errors.invalidArgument({prefix:"Headers.append",value:Ae,type:"header value"})}if(R[ye]==="immutable"){throw new TypeError("immutable")}else if(R[ye]==="request-no-cors"){}return R[he].append(pe,Ae)}class HeadersList{cookies=null;constructor(R){if(R instanceof HeadersList){this[_e]=new Map(R[_e]);this[Ie]=R[Ie];this.cookies=R.cookies===null?null:[...R.cookies]}else{this[_e]=new Map(R);this[Ie]=null}}contains(R){R=R.toLowerCase();return this[_e].has(R)}clear(){this[_e].clear();this[Ie]=null;this.cookies=null}append(R,pe){this[Ie]=null;const Ae=R.toLowerCase();const he=this[_e].get(Ae);if(he){const R=Ae==="cookie"?"; ":", ";this[_e].set(Ae,{name:he.name,value:`${he.value}${R}${pe}`})}else{this[_e].set(Ae,{name:R,value:pe})}if(Ae==="set-cookie"){this.cookies??=[];this.cookies.push(pe)}}set(R,pe){this[Ie]=null;const Ae=R.toLowerCase();if(Ae==="set-cookie"){this.cookies=[pe]}this[_e].set(Ae,{name:R,value:pe})}delete(R){this[Ie]=null;R=R.toLowerCase();if(R==="set-cookie"){this.cookies=null}this[_e].delete(R)}get(R){const pe=this[_e].get(R.toLowerCase());return pe===undefined?null:pe.value}*[Symbol.iterator](){for(const[R,{value:pe}]of this[_e]){yield[R,pe]}}get entries(){const R={};if(this[_e].size){for(const{name:pe,value:Ae}of this[_e].values()){R[pe]=Ae}}return R}}class Headers{constructor(R=undefined){if(R===ge){return}this[he]=new HeadersList;this[ye]="none";if(R!==undefined){R=we.converters.HeadersInit(R);fill(this,R)}}append(R,pe){we.brandCheck(this,Headers);we.argumentLengthCheck(arguments,2,{header:"Headers.append"});R=we.converters.ByteString(R);pe=we.converters.ByteString(pe);return appendHeader(this,R,pe)}delete(R){we.brandCheck(this,Headers);we.argumentLengthCheck(arguments,1,{header:"Headers.delete"});R=we.converters.ByteString(R);if(!be(R)){throw we.errors.invalidArgument({prefix:"Headers.delete",value:R,type:"header name"})}if(this[ye]==="immutable"){throw new TypeError("immutable")}else if(this[ye]==="request-no-cors"){}if(!this[he].contains(R)){return}this[he].delete(R)}get(R){we.brandCheck(this,Headers);we.argumentLengthCheck(arguments,1,{header:"Headers.get"});R=we.converters.ByteString(R);if(!be(R)){throw we.errors.invalidArgument({prefix:"Headers.get",value:R,type:"header name"})}return this[he].get(R)}has(R){we.brandCheck(this,Headers);we.argumentLengthCheck(arguments,1,{header:"Headers.has"});R=we.converters.ByteString(R);if(!be(R)){throw we.errors.invalidArgument({prefix:"Headers.has",value:R,type:"header name"})}return this[he].contains(R)}set(R,pe){we.brandCheck(this,Headers);we.argumentLengthCheck(arguments,2,{header:"Headers.set"});R=we.converters.ByteString(R);pe=we.converters.ByteString(pe);pe=headerValueNormalize(pe);if(!be(R)){throw we.errors.invalidArgument({prefix:"Headers.set",value:R,type:"header name"})}else if(!Ee(pe)){throw we.errors.invalidArgument({prefix:"Headers.set",value:pe,type:"header value"})}if(this[ye]==="immutable"){throw new TypeError("immutable")}else if(this[ye]==="request-no-cors"){}this[he].set(R,pe)}getSetCookie(){we.brandCheck(this,Headers);const R=this[he].cookies;if(R){return[...R]}return[]}get[Ie](){if(this[he][Ie]){return this[he][Ie]}const R=[];const pe=[...this[he]].sort(((R,pe)=>R[0]R),"Headers","key")}return ve((()=>[...this[Ie].values()]),"Headers","key")}values(){we.brandCheck(this,Headers);if(this[ye]==="immutable"){const R=this[Ie];return ve((()=>R),"Headers","value")}return ve((()=>[...this[Ie].values()]),"Headers","value")}entries(){we.brandCheck(this,Headers);if(this[ye]==="immutable"){const R=this[Ie];return ve((()=>R),"Headers","key+value")}return ve((()=>[...this[Ie].values()]),"Headers","key+value")}forEach(R,pe=globalThis){we.brandCheck(this,Headers);we.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof R!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[Ae,he]of this){R.apply(pe,[he,Ae,this])}}[Symbol.for("nodejs.util.inspect.custom")](){we.brandCheck(this,Headers);return this[he]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:me,delete:me,get:me,has:me,set:me,getSetCookie:me,keys:me,values:me,entries:me,forEach:me,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});we.converters.HeadersInit=function(R){if(we.util.Type(R)==="Object"){if(R[Symbol.iterator]){return we.converters["sequence>"](R)}return we.converters["record"](R)}throw we.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};R.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},74881:(R,pe,Ae)=>{"use strict";const{Response:he,makeNetworkError:ge,makeAppropriateNetworkError:ye,filterResponse:me,makeResponse:ve}=Ae(27823);const{Headers:be}=Ae(10554);const{Request:Ee,makeRequest:we}=Ae(48359);const Ce=Ae(59796);const{bytesMatch:_e,makePolicyContainer:Ie,clonePolicyContainer:Se,requestBadPort:Be,TAOCheck:ke,appendRequestOriginHeader:Oe,responseLocationURL:Re,requestCurrentURL:Qe,setRequestReferrerPolicyOnRedirect:xe,tryUpgradeRequestToAPotentiallyTrustworthyURL:Pe,createOpaqueTimingInfo:Te,appendFetchMetadata:De,corsCheck:Ne,crossOriginResourcePolicyCheck:Me,determineRequestsReferrer:je,coarsenedSharedCurrentTime:Fe,createDeferredPromise:Le,isBlobLike:Ue,sameOrigin:He,isCancelled:Je,isAborted:We,isErrorLike:Ve,fullyReadBody:Ke,readableStreamClose:Ge,isomorphicEncode:Ye,urlIsLocal:qe,urlIsHttpHttpsScheme:$e,urlHasHttpsScheme:ze}=Ae(52538);const{kState:Xe,kHeaders:Ze,kGuard:et,kRealm:tt}=Ae(15861);const rt=Ae(39491);const{safelyExtractBody:nt}=Ae(41472);const{redirectStatusSet:it,nullBodyStatus:ot,safeMethodsSet:st,requestBodyHeader:at,subresourceSet:ct,DOMException:ut}=Ae(41037);const{kHeadersList:lt}=Ae(72785);const dt=Ae(82361);const{Readable:ft,pipeline:pt}=Ae(12781);const{addAbortListener:At,isErrored:ht,isReadable:gt,nodeMajor:yt,nodeMinor:mt}=Ae(83983);const{dataURLProcessor:vt,serializeAMimeType:bt}=Ae(685);const{TransformStream:Et}=Ae(35356);const{getGlobalDispatcher:wt}=Ae(21892);const{webidl:Ct}=Ae(21744);const{STATUS_CODES:_t}=Ae(13685);const It=["GET","HEAD"];let St;let Bt=globalThis.ReadableStream;class Fetch extends dt{constructor(R){super();this.dispatcher=R;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(R){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(R);this.emit("terminated",R)}abort(R){if(this.state!=="ongoing"){return}this.state="aborted";if(!R){R=new ut("The operation was aborted.","AbortError")}this.serializedAbortReason=R;this.connection?.destroy(R);this.emit("terminated",R)}}function fetch(R,pe={}){Ct.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const Ae=Le();let ge;try{ge=new Ee(R,pe)}catch(R){Ae.reject(R);return Ae.promise}const ye=ge[Xe];if(ge.signal.aborted){abortFetch(Ae,ye,null,ge.signal.reason);return Ae.promise}const me=ye.client.globalObject;if(me?.constructor?.name==="ServiceWorkerGlobalScope"){ye.serviceWorkers="none"}let ve=null;const be=null;let we=false;let Ce=null;At(ge.signal,(()=>{we=true;rt(Ce!=null);Ce.abort(ge.signal.reason);abortFetch(Ae,ye,ve,ge.signal.reason)}));const handleFetchDone=R=>finalizeAndReportTiming(R,"fetch");const processResponse=R=>{if(we){return Promise.resolve()}if(R.aborted){abortFetch(Ae,ye,ve,Ce.serializedAbortReason);return Promise.resolve()}if(R.type==="error"){Ae.reject(Object.assign(new TypeError("fetch failed"),{cause:R.error}));return Promise.resolve()}ve=new he;ve[Xe]=R;ve[tt]=be;ve[Ze][lt]=R.headersList;ve[Ze][et]="immutable";ve[Ze][tt]=be;Ae.resolve(ve)};Ce=fetching({request:ye,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:pe.dispatcher??wt()});return Ae.promise}function finalizeAndReportTiming(R,pe="other"){if(R.type==="error"&&R.aborted){return}if(!R.urlList?.length){return}const Ae=R.urlList[0];let he=R.timingInfo;let ge=R.cacheState;if(!$e(Ae)){return}if(he===null){return}if(!R.timingAllowPassed){he=Te({startTime:he.startTime});ge=""}he.endTime=Fe();R.timingInfo=he;markResourceTiming(he,Ae,pe,globalThis,ge)}function markResourceTiming(R,pe,Ae,he,ge){if(yt>18||yt===18&&mt>=2){performance.markResourceTiming(R,pe.href,Ae,he,ge)}}function abortFetch(R,pe,Ae,he){if(!he){he=new ut("The operation was aborted.","AbortError")}R.reject(he);if(pe.body!=null&>(pe.body?.stream)){pe.body.stream.cancel(he).catch((R=>{if(R.code==="ERR_INVALID_STATE"){return}throw R}))}if(Ae==null){return}const ge=Ae[Xe];if(ge.body!=null&>(ge.body?.stream)){ge.body.stream.cancel(he).catch((R=>{if(R.code==="ERR_INVALID_STATE"){return}throw R}))}}function fetching({request:R,processRequestBodyChunkLength:pe,processRequestEndOfBody:Ae,processResponse:he,processResponseEndOfBody:ge,processResponseConsumeBody:ye,useParallelQueue:me=false,dispatcher:ve}){let be=null;let Ee=false;if(R.client!=null){be=R.client.globalObject;Ee=R.client.crossOriginIsolatedCapability}const we=Fe(Ee);const Ce=Te({startTime:we});const _e={controller:new Fetch(ve),request:R,timingInfo:Ce,processRequestBodyChunkLength:pe,processRequestEndOfBody:Ae,processResponse:he,processResponseConsumeBody:ye,processResponseEndOfBody:ge,taskDestination:be,crossOriginIsolatedCapability:Ee};rt(!R.body||R.body.stream);if(R.window==="client"){R.window=R.client?.globalObject?.constructor?.name==="Window"?R.client:"no-window"}if(R.origin==="client"){R.origin=R.client?.origin}if(R.policyContainer==="client"){if(R.client!=null){R.policyContainer=Se(R.client.policyContainer)}else{R.policyContainer=Ie()}}if(!R.headersList.contains("accept")){const pe="*/*";R.headersList.append("accept",pe)}if(!R.headersList.contains("accept-language")){R.headersList.append("accept-language","*")}if(R.priority===null){}if(ct.has(R.destination)){}mainFetch(_e).catch((R=>{_e.controller.terminate(R)}));return _e.controller}async function mainFetch(R,pe=false){const Ae=R.request;let he=null;if(Ae.localURLsOnly&&!qe(Qe(Ae))){he=ge("local URLs only")}Pe(Ae);if(Be(Ae)==="blocked"){he=ge("bad port")}if(Ae.referrerPolicy===""){Ae.referrerPolicy=Ae.policyContainer.referrerPolicy}if(Ae.referrer!=="no-referrer"){Ae.referrer=je(Ae)}if(he===null){he=await(async()=>{const pe=Qe(Ae);if(He(pe,Ae.url)&&Ae.responseTainting==="basic"||pe.protocol==="data:"||(Ae.mode==="navigate"||Ae.mode==="websocket")){Ae.responseTainting="basic";return await schemeFetch(R)}if(Ae.mode==="same-origin"){return ge('request mode cannot be "same-origin"')}if(Ae.mode==="no-cors"){if(Ae.redirect!=="follow"){return ge('redirect mode cannot be "follow" for "no-cors" request')}Ae.responseTainting="opaque";return await schemeFetch(R)}if(!$e(Qe(Ae))){return ge("URL scheme must be a HTTP(S) scheme")}Ae.responseTainting="cors";return await httpFetch(R)})()}if(pe){return he}if(he.status!==0&&!he.internalResponse){if(Ae.responseTainting==="cors"){}if(Ae.responseTainting==="basic"){he=me(he,"basic")}else if(Ae.responseTainting==="cors"){he=me(he,"cors")}else if(Ae.responseTainting==="opaque"){he=me(he,"opaque")}else{rt(false)}}let ye=he.status===0?he:he.internalResponse;if(ye.urlList.length===0){ye.urlList.push(...Ae.urlList)}if(!Ae.timingAllowFailed){he.timingAllowPassed=true}if(he.type==="opaque"&&ye.status===206&&ye.rangeRequested&&!Ae.headers.contains("range")){he=ye=ge()}if(he.status!==0&&(Ae.method==="HEAD"||Ae.method==="CONNECT"||ot.includes(ye.status))){ye.body=null;R.controller.dump=true}if(Ae.integrity){const processBodyError=pe=>fetchFinale(R,ge(pe));if(Ae.responseTainting==="opaque"||he.body==null){processBodyError(he.error);return}const processBody=pe=>{if(!_e(pe,Ae.integrity)){processBodyError("integrity mismatch");return}he.body=nt(pe)[0];fetchFinale(R,he)};await Ke(he.body,processBody,processBodyError)}else{fetchFinale(R,he)}}function schemeFetch(R){if(Je(R)&&R.request.redirectCount===0){return Promise.resolve(ye(R))}const{request:pe}=R;const{protocol:he}=Qe(pe);switch(he){case"about:":{return Promise.resolve(ge("about scheme is not supported"))}case"blob:":{if(!St){St=Ae(14300).resolveObjectURL}const R=Qe(pe);if(R.search.length!==0){return Promise.resolve(ge("NetworkError when attempting to fetch resource."))}const he=St(R.toString());if(pe.method!=="GET"||!Ue(he)){return Promise.resolve(ge("invalid method"))}const ye=nt(he);const me=ye[0];const be=Ye(`${me.length}`);const Ee=ye[1]??"";const we=ve({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:be}],["content-type",{name:"Content-Type",value:Ee}]]});we.body=me;return Promise.resolve(we)}case"data:":{const R=Qe(pe);const Ae=vt(R);if(Ae==="failure"){return Promise.resolve(ge("failed to fetch the data URL"))}const he=bt(Ae.mimeType);return Promise.resolve(ve({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:he}]],body:nt(Ae.body)[0]}))}case"file:":{return Promise.resolve(ge("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(R).catch((R=>ge(R)))}default:{return Promise.resolve(ge("unknown scheme"))}}}function finalizeResponse(R,pe){R.request.done=true;if(R.processResponseDone!=null){queueMicrotask((()=>R.processResponseDone(pe)))}}function fetchFinale(R,pe){if(pe.type==="error"){pe.urlList=[R.request.urlList[0]];pe.timingInfo=Te({startTime:R.timingInfo.startTime})}const processResponseEndOfBody=()=>{R.request.done=true;if(R.processResponseEndOfBody!=null){queueMicrotask((()=>R.processResponseEndOfBody(pe)))}};if(R.processResponse!=null){queueMicrotask((()=>R.processResponse(pe)))}if(pe.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(R,pe)=>{pe.enqueue(R)};const R=new Et({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});pe.body={stream:pe.body.stream.pipeThrough(R)}}if(R.processResponseConsumeBody!=null){const processBody=Ae=>R.processResponseConsumeBody(pe,Ae);const processBodyError=Ae=>R.processResponseConsumeBody(pe,Ae);if(pe.body==null){queueMicrotask((()=>processBody(null)))}else{return Ke(pe.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(R){const pe=R.request;let Ae=null;let he=null;const ye=R.timingInfo;if(pe.serviceWorkers==="all"){}if(Ae===null){if(pe.redirect==="follow"){pe.serviceWorkers="none"}he=Ae=await httpNetworkOrCacheFetch(R);if(pe.responseTainting==="cors"&&Ne(pe,Ae)==="failure"){return ge("cors failure")}if(ke(pe,Ae)==="failure"){pe.timingAllowFailed=true}}if((pe.responseTainting==="opaque"||Ae.type==="opaque")&&Me(pe.origin,pe.client,pe.destination,he)==="blocked"){return ge("blocked")}if(it.has(he.status)){if(pe.redirect!=="manual"){R.controller.connection.destroy()}if(pe.redirect==="error"){Ae=ge("unexpected redirect")}else if(pe.redirect==="manual"){Ae=he}else if(pe.redirect==="follow"){Ae=await httpRedirectFetch(R,Ae)}else{rt(false)}}Ae.timingInfo=ye;return Ae}function httpRedirectFetch(R,pe){const Ae=R.request;const he=pe.internalResponse?pe.internalResponse:pe;let ye;try{ye=Re(he,Qe(Ae).hash);if(ye==null){return pe}}catch(R){return Promise.resolve(ge(R))}if(!$e(ye)){return Promise.resolve(ge("URL scheme must be a HTTP(S) scheme"))}if(Ae.redirectCount===20){return Promise.resolve(ge("redirect count exceeded"))}Ae.redirectCount+=1;if(Ae.mode==="cors"&&(ye.username||ye.password)&&!He(Ae,ye)){return Promise.resolve(ge('cross origin not allowed for request mode "cors"'))}if(Ae.responseTainting==="cors"&&(ye.username||ye.password)){return Promise.resolve(ge('URL cannot contain credentials for request mode "cors"'))}if(he.status!==303&&Ae.body!=null&&Ae.body.source==null){return Promise.resolve(ge())}if([301,302].includes(he.status)&&Ae.method==="POST"||he.status===303&&!It.includes(Ae.method)){Ae.method="GET";Ae.body=null;for(const R of at){Ae.headersList.delete(R)}}if(!He(Qe(Ae),ye)){Ae.headersList.delete("authorization");Ae.headersList.delete("proxy-authorization",true);Ae.headersList.delete("cookie");Ae.headersList.delete("host")}if(Ae.body!=null){rt(Ae.body.source!=null);Ae.body=nt(Ae.body.source)[0]}const me=R.timingInfo;me.redirectEndTime=me.postRedirectStartTime=Fe(R.crossOriginIsolatedCapability);if(me.redirectStartTime===0){me.redirectStartTime=me.startTime}Ae.urlList.push(ye);xe(Ae,he);return mainFetch(R,true)}async function httpNetworkOrCacheFetch(R,pe=false,Ae=false){const he=R.request;let me=null;let ve=null;let be=null;const Ee=null;const Ce=false;if(he.window==="no-window"&&he.redirect==="error"){me=R;ve=he}else{ve=we(he);me={...R};me.request=ve}const _e=he.credentials==="include"||he.credentials==="same-origin"&&he.responseTainting==="basic";const Ie=ve.body?ve.body.length:null;let Se=null;if(ve.body==null&&["POST","PUT"].includes(ve.method)){Se="0"}if(Ie!=null){Se=Ye(`${Ie}`)}if(Se!=null){ve.headersList.append("content-length",Se)}if(Ie!=null&&ve.keepalive){}if(ve.referrer instanceof URL){ve.headersList.append("referer",Ye(ve.referrer.href))}Oe(ve);De(ve);if(!ve.headersList.contains("user-agent")){ve.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(ve.cache==="default"&&(ve.headersList.contains("if-modified-since")||ve.headersList.contains("if-none-match")||ve.headersList.contains("if-unmodified-since")||ve.headersList.contains("if-match")||ve.headersList.contains("if-range"))){ve.cache="no-store"}if(ve.cache==="no-cache"&&!ve.preventNoCacheCacheControlHeaderModification&&!ve.headersList.contains("cache-control")){ve.headersList.append("cache-control","max-age=0")}if(ve.cache==="no-store"||ve.cache==="reload"){if(!ve.headersList.contains("pragma")){ve.headersList.append("pragma","no-cache")}if(!ve.headersList.contains("cache-control")){ve.headersList.append("cache-control","no-cache")}}if(ve.headersList.contains("range")){ve.headersList.append("accept-encoding","identity")}if(!ve.headersList.contains("accept-encoding")){if(ze(Qe(ve))){ve.headersList.append("accept-encoding","br, gzip, deflate")}else{ve.headersList.append("accept-encoding","gzip, deflate")}}ve.headersList.delete("host");if(_e){}if(Ee==null){ve.cache="no-store"}if(ve.mode!=="no-store"&&ve.mode!=="reload"){}if(be==null){if(ve.mode==="only-if-cached"){return ge("only if cached")}const R=await httpNetworkFetch(me,_e,Ae);if(!st.has(ve.method)&&R.status>=200&&R.status<=399){}if(Ce&&R.status===304){}if(be==null){be=R}}be.urlList=[...ve.urlList];if(ve.headersList.contains("range")){be.rangeRequested=true}be.requestIncludesCredentials=_e;if(be.status===407){if(he.window==="no-window"){return ge()}if(Je(R)){return ye(R)}return ge("proxy authentication required")}if(be.status===421&&!Ae&&(he.body==null||he.body.source!=null)){if(Je(R)){return ye(R)}R.controller.connection.destroy();be=await httpNetworkOrCacheFetch(R,pe,true)}if(pe){}return be}async function httpNetworkFetch(R,pe=false,he=false){rt(!R.controller.connection||R.controller.connection.destroyed);R.controller.connection={abort:null,destroyed:false,destroy(R){if(!this.destroyed){this.destroyed=true;this.abort?.(R??new ut("The operation was aborted.","AbortError"))}}};const me=R.request;let Ee=null;const we=R.timingInfo;const _e=null;if(_e==null){me.cache="no-store"}const Ie=he?"yes":"no";if(me.mode==="websocket"){}else{}let Se=null;if(me.body==null&&R.processRequestEndOfBody){queueMicrotask((()=>R.processRequestEndOfBody()))}else if(me.body!=null){const processBodyChunk=async function*(pe){if(Je(R)){return}yield pe;R.processRequestBodyChunkLength?.(pe.byteLength)};const processEndOfBody=()=>{if(Je(R)){return}if(R.processRequestEndOfBody){R.processRequestEndOfBody()}};const processBodyError=pe=>{if(Je(R)){return}if(pe.name==="AbortError"){R.controller.abort()}else{R.controller.terminate(pe)}};Se=async function*(){try{for await(const R of me.body.stream){yield*processBodyChunk(R)}processEndOfBody()}catch(R){processBodyError(R)}}()}try{const{body:pe,status:Ae,statusText:he,headersList:ge,socket:ye}=await dispatch({body:Se});if(ye){Ee=ve({status:Ae,statusText:he,headersList:ge,socket:ye})}else{const ye=pe[Symbol.asyncIterator]();R.controller.next=()=>ye.next();Ee=ve({status:Ae,statusText:he,headersList:ge})}}catch(pe){if(pe.name==="AbortError"){R.controller.connection.destroy();return ye(R,pe)}return ge(pe)}const pullAlgorithm=()=>{R.controller.resume()};const cancelAlgorithm=pe=>{R.controller.abort(pe)};if(!Bt){Bt=Ae(35356).ReadableStream}const Be=new Bt({async start(pe){R.controller.controller=pe},async pull(R){await pullAlgorithm(R)},async cancel(R){await cancelAlgorithm(R)}},{highWaterMark:0,size(){return 1}});Ee.body={stream:Be};R.controller.on("terminated",onAborted);R.controller.resume=async()=>{while(true){let pe;let Ae;try{const{done:Ae,value:he}=await R.controller.next();if(We(R)){break}pe=Ae?undefined:he}catch(he){if(R.controller.ended&&!we.encodedBodySize){pe=undefined}else{pe=he;Ae=true}}if(pe===undefined){Ge(R.controller.controller);finalizeResponse(R,Ee);return}we.decodedBodySize+=pe?.byteLength??0;if(Ae){R.controller.terminate(pe);return}R.controller.controller.enqueue(new Uint8Array(pe));if(ht(Be)){R.controller.terminate();return}if(!R.controller.controller.desiredSize){return}}};function onAborted(pe){if(We(R)){Ee.aborted=true;if(gt(Be)){R.controller.controller.error(R.controller.serializedAbortReason)}}else{if(gt(Be)){R.controller.controller.error(new TypeError("terminated",{cause:Ve(pe)?pe:undefined}))}}R.controller.connection.destroy()}return Ee;async function dispatch({body:pe}){const Ae=Qe(me);const he=R.controller.dispatcher;return new Promise(((ge,ye)=>he.dispatch({path:Ae.pathname+Ae.search,origin:Ae.origin,method:me.method,body:R.controller.dispatcher.isMockActive?me.body&&(me.body.source||me.body.stream):pe,headers:me.headersList.entries,maxRedirections:0,upgrade:me.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(pe){const{connection:Ae}=R.controller;if(Ae.destroyed){pe(new ut("The operation was aborted.","AbortError"))}else{R.controller.on("terminated",pe);this.abort=Ae.abort=pe}},onHeaders(R,pe,Ae,he){if(R<200){return}let ye=[];let ve="";const Ee=new be;if(Array.isArray(pe)){for(let R=0;RR.trim()))}else if(Ae.toLowerCase()==="location"){ve=he}Ee[lt].append(Ae,he)}}else{const R=Object.keys(pe);for(const Ae of R){const R=pe[Ae];if(Ae.toLowerCase()==="content-encoding"){ye=R.toLowerCase().split(",").map((R=>R.trim())).reverse()}else if(Ae.toLowerCase()==="location"){ve=R}Ee[lt].append(Ae,R)}}this.body=new ft({read:Ae});const we=[];const _e=me.redirect==="follow"&&ve&&it.has(R);if(me.method!=="HEAD"&&me.method!=="CONNECT"&&!ot.includes(R)&&!_e){for(const R of ye){if(R==="x-gzip"||R==="gzip"){we.push(Ce.createGunzip({flush:Ce.constants.Z_SYNC_FLUSH,finishFlush:Ce.constants.Z_SYNC_FLUSH}))}else if(R==="deflate"){we.push(Ce.createInflate())}else if(R==="br"){we.push(Ce.createBrotliDecompress())}else{we.length=0;break}}}ge({status:R,statusText:he,headersList:Ee[lt],body:we.length?pt(this.body,...we,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(pe){if(R.controller.dump){return}const Ae=pe;we.encodedBodySize+=Ae.byteLength;return this.body.push(Ae)},onComplete(){if(this.abort){R.controller.off("terminated",this.abort)}R.controller.ended=true;this.body.push(null)},onError(pe){if(this.abort){R.controller.off("terminated",this.abort)}this.body?.destroy(pe);R.controller.terminate(pe);ye(pe)},onUpgrade(R,pe,Ae){if(R!==101){return}const he=new be;for(let R=0;R{"use strict";const{extractBody:he,mixinBody:ge,cloneBody:ye}=Ae(41472);const{Headers:me,fill:ve,HeadersList:be}=Ae(10554);const{FinalizationRegistry:Ee}=Ae(56436)();const we=Ae(83983);const{isValidHTTPToken:Ce,sameOrigin:_e,normalizeMethod:Ie,makePolicyContainer:Se,normalizeMethodRecord:Be}=Ae(52538);const{forbiddenMethodsSet:ke,corsSafeListedMethodsSet:Oe,referrerPolicy:Re,requestRedirect:Qe,requestMode:xe,requestCredentials:Pe,requestCache:Te,requestDuplex:De}=Ae(41037);const{kEnumerableProperty:Ne}=we;const{kHeaders:Me,kSignal:je,kState:Fe,kGuard:Le,kRealm:Ue}=Ae(15861);const{webidl:He}=Ae(21744);const{getGlobalOrigin:Je}=Ae(71246);const{URLSerializer:We}=Ae(685);const{kHeadersList:Ve,kConstruct:Ke}=Ae(72785);const Ge=Ae(39491);const{getMaxListeners:Ye,setMaxListeners:qe,getEventListeners:$e,defaultMaxListeners:ze}=Ae(82361);let Xe=globalThis.TransformStream;const Ze=Symbol("abortController");const et=new Ee((({signal:R,abort:pe})=>{R.removeEventListener("abort",pe)}));class Request{constructor(R,pe={}){if(R===Ke){return}He.argumentLengthCheck(arguments,1,{header:"Request constructor"});R=He.converters.RequestInfo(R);pe=He.converters.RequestInit(pe);this[Ue]={settingsObject:{baseUrl:Je(),get origin(){return this.baseUrl?.origin},policyContainer:Se()}};let ge=null;let ye=null;const Ee=this[Ue].settingsObject.baseUrl;let Re=null;if(typeof R==="string"){let pe;try{pe=new URL(R,Ee)}catch(pe){throw new TypeError("Failed to parse URL from "+R,{cause:pe})}if(pe.username||pe.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+R)}ge=makeRequest({urlList:[pe]});ye="cors"}else{Ge(R instanceof Request);ge=R[Fe];Re=R[je]}const Qe=this[Ue].settingsObject.origin;let xe="client";if(ge.window?.constructor?.name==="EnvironmentSettingsObject"&&_e(ge.window,Qe)){xe=ge.window}if(pe.window!=null){throw new TypeError(`'window' option '${xe}' must be null`)}if("window"in pe){xe="no-window"}ge=makeRequest({method:ge.method,headersList:ge.headersList,unsafeRequest:ge.unsafeRequest,client:this[Ue].settingsObject,window:xe,priority:ge.priority,origin:ge.origin,referrer:ge.referrer,referrerPolicy:ge.referrerPolicy,mode:ge.mode,credentials:ge.credentials,cache:ge.cache,redirect:ge.redirect,integrity:ge.integrity,keepalive:ge.keepalive,reloadNavigation:ge.reloadNavigation,historyNavigation:ge.historyNavigation,urlList:[...ge.urlList]});const Pe=Object.keys(pe).length!==0;if(Pe){if(ge.mode==="navigate"){ge.mode="same-origin"}ge.reloadNavigation=false;ge.historyNavigation=false;ge.origin="client";ge.referrer="client";ge.referrerPolicy="";ge.url=ge.urlList[ge.urlList.length-1];ge.urlList=[ge.url]}if(pe.referrer!==undefined){const R=pe.referrer;if(R===""){ge.referrer="no-referrer"}else{let pe;try{pe=new URL(R,Ee)}catch(pe){throw new TypeError(`Referrer "${R}" is not a valid URL.`,{cause:pe})}if(pe.protocol==="about:"&&pe.hostname==="client"||Qe&&!_e(pe,this[Ue].settingsObject.baseUrl)){ge.referrer="client"}else{ge.referrer=pe}}}if(pe.referrerPolicy!==undefined){ge.referrerPolicy=pe.referrerPolicy}let Te;if(pe.mode!==undefined){Te=pe.mode}else{Te=ye}if(Te==="navigate"){throw He.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(Te!=null){ge.mode=Te}if(pe.credentials!==undefined){ge.credentials=pe.credentials}if(pe.cache!==undefined){ge.cache=pe.cache}if(ge.cache==="only-if-cached"&&ge.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(pe.redirect!==undefined){ge.redirect=pe.redirect}if(pe.integrity!=null){ge.integrity=String(pe.integrity)}if(pe.keepalive!==undefined){ge.keepalive=Boolean(pe.keepalive)}if(pe.method!==undefined){let R=pe.method;if(!Ce(R)){throw new TypeError(`'${R}' is not a valid HTTP method.`)}if(ke.has(R.toUpperCase())){throw new TypeError(`'${R}' HTTP method is unsupported.`)}R=Be[R]??Ie(R);ge.method=R}if(pe.signal!==undefined){Re=pe.signal}this[Fe]=ge;const De=new AbortController;this[je]=De.signal;this[je][Ue]=this[Ue];if(Re!=null){if(!Re||typeof Re.aborted!=="boolean"||typeof Re.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(Re.aborted){De.abort(Re.reason)}else{this[Ze]=De;const R=new WeakRef(De);const abort=function(){const pe=R.deref();if(pe!==undefined){pe.abort(this.reason)}};try{if(typeof Ye==="function"&&Ye(Re)===ze){qe(100,Re)}else if($e(Re,"abort").length>=ze){qe(100,Re)}}catch{}we.addAbortListener(Re,abort);et.register(De,{signal:Re,abort:abort})}}this[Me]=new me(Ke);this[Me][Ve]=ge.headersList;this[Me][Le]="request";this[Me][Ue]=this[Ue];if(Te==="no-cors"){if(!Oe.has(ge.method)){throw new TypeError(`'${ge.method} is unsupported in no-cors mode.`)}this[Me][Le]="request-no-cors"}if(Pe){const R=this[Me][Ve];const Ae=pe.headers!==undefined?pe.headers:new be(R);R.clear();if(Ae instanceof be){for(const[pe,he]of Ae){R.append(pe,he)}R.cookies=Ae.cookies}else{ve(this[Me],Ae)}}const Ne=R instanceof Request?R[Fe].body:null;if((pe.body!=null||Ne!=null)&&(ge.method==="GET"||ge.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let We=null;if(pe.body!=null){const[R,Ae]=he(pe.body,ge.keepalive);We=R;if(Ae&&!this[Me][Ve].contains("content-type")){this[Me].append("content-type",Ae)}}const tt=We??Ne;if(tt!=null&&tt.source==null){if(We!=null&&pe.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(ge.mode!=="same-origin"&&ge.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}ge.useCORSPreflightFlag=true}let rt=tt;if(We==null&&Ne!=null){if(we.isDisturbed(Ne.stream)||Ne.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!Xe){Xe=Ae(35356).TransformStream}const R=new Xe;Ne.stream.pipeThrough(R);rt={source:Ne.source,length:Ne.length,stream:R.readable}}this[Fe].body=rt}get method(){He.brandCheck(this,Request);return this[Fe].method}get url(){He.brandCheck(this,Request);return We(this[Fe].url)}get headers(){He.brandCheck(this,Request);return this[Me]}get destination(){He.brandCheck(this,Request);return this[Fe].destination}get referrer(){He.brandCheck(this,Request);if(this[Fe].referrer==="no-referrer"){return""}if(this[Fe].referrer==="client"){return"about:client"}return this[Fe].referrer.toString()}get referrerPolicy(){He.brandCheck(this,Request);return this[Fe].referrerPolicy}get mode(){He.brandCheck(this,Request);return this[Fe].mode}get credentials(){return this[Fe].credentials}get cache(){He.brandCheck(this,Request);return this[Fe].cache}get redirect(){He.brandCheck(this,Request);return this[Fe].redirect}get integrity(){He.brandCheck(this,Request);return this[Fe].integrity}get keepalive(){He.brandCheck(this,Request);return this[Fe].keepalive}get isReloadNavigation(){He.brandCheck(this,Request);return this[Fe].reloadNavigation}get isHistoryNavigation(){He.brandCheck(this,Request);return this[Fe].historyNavigation}get signal(){He.brandCheck(this,Request);return this[je]}get body(){He.brandCheck(this,Request);return this[Fe].body?this[Fe].body.stream:null}get bodyUsed(){He.brandCheck(this,Request);return!!this[Fe].body&&we.isDisturbed(this[Fe].body.stream)}get duplex(){He.brandCheck(this,Request);return"half"}clone(){He.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const R=cloneRequest(this[Fe]);const pe=new Request(Ke);pe[Fe]=R;pe[Ue]=this[Ue];pe[Me]=new me(Ke);pe[Me][Ve]=R.headersList;pe[Me][Le]=this[Me][Le];pe[Me][Ue]=this[Me][Ue];const Ae=new AbortController;if(this.signal.aborted){Ae.abort(this.signal.reason)}else{we.addAbortListener(this.signal,(()=>{Ae.abort(this.signal.reason)}))}pe[je]=Ae.signal;return pe}}ge(Request);function makeRequest(R){const pe={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,...R,headersList:R.headersList?new be(R.headersList):new be};pe.url=pe.urlList[0];return pe}function cloneRequest(R){const pe=makeRequest({...R,body:null});if(R.body!=null){pe.body=ye(R.body)}return pe}Object.defineProperties(Request.prototype,{method:Ne,url:Ne,headers:Ne,redirect:Ne,clone:Ne,signal:Ne,duplex:Ne,destination:Ne,body:Ne,bodyUsed:Ne,isHistoryNavigation:Ne,isReloadNavigation:Ne,keepalive:Ne,integrity:Ne,cache:Ne,credentials:Ne,attribute:Ne,referrerPolicy:Ne,referrer:Ne,mode:Ne,[Symbol.toStringTag]:{value:"Request",configurable:true}});He.converters.Request=He.interfaceConverter(Request);He.converters.RequestInfo=function(R){if(typeof R==="string"){return He.converters.USVString(R)}if(R instanceof Request){return He.converters.Request(R)}return He.converters.USVString(R)};He.converters.AbortSignal=He.interfaceConverter(AbortSignal);He.converters.RequestInit=He.dictionaryConverter([{key:"method",converter:He.converters.ByteString},{key:"headers",converter:He.converters.HeadersInit},{key:"body",converter:He.nullableConverter(He.converters.BodyInit)},{key:"referrer",converter:He.converters.USVString},{key:"referrerPolicy",converter:He.converters.DOMString,allowedValues:Re},{key:"mode",converter:He.converters.DOMString,allowedValues:xe},{key:"credentials",converter:He.converters.DOMString,allowedValues:Pe},{key:"cache",converter:He.converters.DOMString,allowedValues:Te},{key:"redirect",converter:He.converters.DOMString,allowedValues:Qe},{key:"integrity",converter:He.converters.DOMString},{key:"keepalive",converter:He.converters.boolean},{key:"signal",converter:He.nullableConverter((R=>He.converters.AbortSignal(R,{strict:false})))},{key:"window",converter:He.converters.any},{key:"duplex",converter:He.converters.DOMString,allowedValues:De}]);R.exports={Request:Request,makeRequest:makeRequest}},27823:(R,pe,Ae)=>{"use strict";const{Headers:he,HeadersList:ge,fill:ye}=Ae(10554);const{extractBody:me,cloneBody:ve,mixinBody:be}=Ae(41472);const Ee=Ae(83983);const{kEnumerableProperty:we}=Ee;const{isValidReasonPhrase:Ce,isCancelled:_e,isAborted:Ie,isBlobLike:Se,serializeJavascriptValueToJSONString:Be,isErrorLike:ke,isomorphicEncode:Oe}=Ae(52538);const{redirectStatusSet:Re,nullBodyStatus:Qe,DOMException:xe}=Ae(41037);const{kState:Pe,kHeaders:Te,kGuard:De,kRealm:Ne}=Ae(15861);const{webidl:Me}=Ae(21744);const{FormData:je}=Ae(72015);const{getGlobalOrigin:Fe}=Ae(71246);const{URLSerializer:Le}=Ae(685);const{kHeadersList:Ue,kConstruct:He}=Ae(72785);const Je=Ae(39491);const{types:We}=Ae(73837);const Ve=globalThis.ReadableStream||Ae(35356).ReadableStream;const Ke=new TextEncoder("utf-8");class Response{static error(){const R={settingsObject:{}};const pe=new Response;pe[Pe]=makeNetworkError();pe[Ne]=R;pe[Te][Ue]=pe[Pe].headersList;pe[Te][De]="immutable";pe[Te][Ne]=R;return pe}static json(R,pe={}){Me.argumentLengthCheck(arguments,1,{header:"Response.json"});if(pe!==null){pe=Me.converters.ResponseInit(pe)}const Ae=Ke.encode(Be(R));const he=me(Ae);const ge={settingsObject:{}};const ye=new Response;ye[Ne]=ge;ye[Te][De]="response";ye[Te][Ne]=ge;initializeResponse(ye,pe,{body:he[0],type:"application/json"});return ye}static redirect(R,pe=302){const Ae={settingsObject:{}};Me.argumentLengthCheck(arguments,1,{header:"Response.redirect"});R=Me.converters.USVString(R);pe=Me.converters["unsigned short"](pe);let he;try{he=new URL(R,Fe())}catch(pe){throw Object.assign(new TypeError("Failed to parse URL from "+R),{cause:pe})}if(!Re.has(pe)){throw new RangeError("Invalid status code "+pe)}const ge=new Response;ge[Ne]=Ae;ge[Te][De]="immutable";ge[Te][Ne]=Ae;ge[Pe].status=pe;const ye=Oe(Le(he));ge[Pe].headersList.append("location",ye);return ge}constructor(R=null,pe={}){if(R!==null){R=Me.converters.BodyInit(R)}pe=Me.converters.ResponseInit(pe);this[Ne]={settingsObject:{}};this[Pe]=makeResponse({});this[Te]=new he(He);this[Te][De]="response";this[Te][Ue]=this[Pe].headersList;this[Te][Ne]=this[Ne];let Ae=null;if(R!=null){const[pe,he]=me(R);Ae={body:pe,type:he}}initializeResponse(this,pe,Ae)}get type(){Me.brandCheck(this,Response);return this[Pe].type}get url(){Me.brandCheck(this,Response);const R=this[Pe].urlList;const pe=R[R.length-1]??null;if(pe===null){return""}return Le(pe,true)}get redirected(){Me.brandCheck(this,Response);return this[Pe].urlList.length>1}get status(){Me.brandCheck(this,Response);return this[Pe].status}get ok(){Me.brandCheck(this,Response);return this[Pe].status>=200&&this[Pe].status<=299}get statusText(){Me.brandCheck(this,Response);return this[Pe].statusText}get headers(){Me.brandCheck(this,Response);return this[Te]}get body(){Me.brandCheck(this,Response);return this[Pe].body?this[Pe].body.stream:null}get bodyUsed(){Me.brandCheck(this,Response);return!!this[Pe].body&&Ee.isDisturbed(this[Pe].body.stream)}clone(){Me.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw Me.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const R=cloneResponse(this[Pe]);const pe=new Response;pe[Pe]=R;pe[Ne]=this[Ne];pe[Te][Ue]=R.headersList;pe[Te][De]=this[Te][De];pe[Te][Ne]=this[Te][Ne];return pe}}be(Response);Object.defineProperties(Response.prototype,{type:we,url:we,status:we,ok:we,redirected:we,statusText:we,headers:we,clone:we,body:we,bodyUsed:we,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:we,redirect:we,error:we});function cloneResponse(R){if(R.internalResponse){return filterResponse(cloneResponse(R.internalResponse),R.type)}const pe=makeResponse({...R,body:null});if(R.body!=null){pe.body=ve(R.body)}return pe}function makeResponse(R){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...R,headersList:R.headersList?new ge(R.headersList):new ge,urlList:R.urlList?[...R.urlList]:[]}}function makeNetworkError(R){const pe=ke(R);return makeResponse({type:"error",status:0,error:pe?R:new Error(R?String(R):R),aborted:R&&R.name==="AbortError"})}function makeFilteredResponse(R,pe){pe={internalResponse:R,...pe};return new Proxy(R,{get(R,Ae){return Ae in pe?pe[Ae]:R[Ae]},set(R,Ae,he){Je(!(Ae in pe));R[Ae]=he;return true}})}function filterResponse(R,pe){if(pe==="basic"){return makeFilteredResponse(R,{type:"basic",headersList:R.headersList})}else if(pe==="cors"){return makeFilteredResponse(R,{type:"cors",headersList:R.headersList})}else if(pe==="opaque"){return makeFilteredResponse(R,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(pe==="opaqueredirect"){return makeFilteredResponse(R,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{Je(false)}}function makeAppropriateNetworkError(R,pe=null){Je(_e(R));return Ie(R)?makeNetworkError(Object.assign(new xe("The operation was aborted.","AbortError"),{cause:pe})):makeNetworkError(Object.assign(new xe("Request was cancelled."),{cause:pe}))}function initializeResponse(R,pe,Ae){if(pe.status!==null&&(pe.status<200||pe.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in pe&&pe.statusText!=null){if(!Ce(String(pe.statusText))){throw new TypeError("Invalid statusText")}}if("status"in pe&&pe.status!=null){R[Pe].status=pe.status}if("statusText"in pe&&pe.statusText!=null){R[Pe].statusText=pe.statusText}if("headers"in pe&&pe.headers!=null){ye(R[Te],pe.headers)}if(Ae){if(Qe.includes(R.status)){throw Me.errors.exception({header:"Response constructor",message:"Invalid response status code "+R.status})}R[Pe].body=Ae.body;if(Ae.type!=null&&!R[Pe].headersList.contains("Content-Type")){R[Pe].headersList.append("content-type",Ae.type)}}}Me.converters.ReadableStream=Me.interfaceConverter(Ve);Me.converters.FormData=Me.interfaceConverter(je);Me.converters.URLSearchParams=Me.interfaceConverter(URLSearchParams);Me.converters.XMLHttpRequestBodyInit=function(R){if(typeof R==="string"){return Me.converters.USVString(R)}if(Se(R)){return Me.converters.Blob(R,{strict:false})}if(We.isArrayBuffer(R)||We.isTypedArray(R)||We.isDataView(R)){return Me.converters.BufferSource(R)}if(Ee.isFormDataLike(R)){return Me.converters.FormData(R,{strict:false})}if(R instanceof URLSearchParams){return Me.converters.URLSearchParams(R)}return Me.converters.DOMString(R)};Me.converters.BodyInit=function(R){if(R instanceof Ve){return Me.converters.ReadableStream(R)}if(R?.[Symbol.asyncIterator]){return R}return Me.converters.XMLHttpRequestBodyInit(R)};Me.converters.ResponseInit=Me.dictionaryConverter([{key:"status",converter:Me.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:Me.converters.ByteString,defaultValue:""},{key:"headers",converter:Me.converters.HeadersInit}]);R.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},15861:R=>{"use strict";R.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},52538:(R,pe,Ae)=>{"use strict";const{redirectStatusSet:he,referrerPolicySet:ge,badPortsSet:ye}=Ae(41037);const{getGlobalOrigin:me}=Ae(71246);const{performance:ve}=Ae(4074);const{isBlobLike:be,toUSVString:Ee,ReadableStreamFrom:we}=Ae(83983);const Ce=Ae(39491);const{isUint8Array:_e}=Ae(29830);let Ie=[];let Se;try{Se=Ae(6113);const R=["sha256","sha384","sha512"];Ie=Se.getHashes().filter((pe=>R.includes(pe)))}catch{}function responseURL(R){const pe=R.urlList;const Ae=pe.length;return Ae===0?null:pe[Ae-1].toString()}function responseLocationURL(R,pe){if(!he.has(R.status)){return null}let Ae=R.headersList.get("location");if(Ae!==null&&isValidHeaderValue(Ae)){Ae=new URL(Ae,responseURL(R))}if(Ae&&!Ae.hash){Ae.hash=pe}return Ae}function requestCurrentURL(R){return R.urlList[R.urlList.length-1]}function requestBadPort(R){const pe=requestCurrentURL(R);if(urlIsHttpHttpsScheme(pe)&&ye.has(pe.port)){return"blocked"}return"allowed"}function isErrorLike(R){return R instanceof Error||(R?.constructor?.name==="Error"||R?.constructor?.name==="DOMException")}function isValidReasonPhrase(R){for(let pe=0;pe=32&&Ae<=126||Ae>=128&&Ae<=255)){return false}}return true}function isTokenCharCode(R){switch(R){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 R>=33&&R<=126}}function isValidHTTPToken(R){if(R.length===0){return false}for(let pe=0;pe0){for(let R=he.length;R!==0;R--){const pe=he[R-1].trim();if(ge.has(pe)){ye=pe;break}}}if(ye!==""){R.referrerPolicy=ye}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(R){let pe=null;pe=R.mode;R.headersList.set("sec-fetch-mode",pe)}function appendRequestOriginHeader(R){let pe=R.origin;if(R.responseTainting==="cors"||R.mode==="websocket"){if(pe){R.headersList.append("origin",pe)}}else if(R.method!=="GET"&&R.method!=="HEAD"){switch(R.referrerPolicy){case"no-referrer":pe=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(R.origin&&urlHasHttpsScheme(R.origin)&&!urlHasHttpsScheme(requestCurrentURL(R))){pe=null}break;case"same-origin":if(!sameOrigin(R,requestCurrentURL(R))){pe=null}break;default:}if(pe){R.headersList.append("origin",pe)}}}function coarsenedSharedCurrentTime(R){return ve.now()}function createOpaqueTimingInfo(R){return{startTime:R.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:R.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(R){return{referrerPolicy:R.referrerPolicy}}function determineRequestsReferrer(R){const pe=R.referrerPolicy;Ce(pe);let Ae=null;if(R.referrer==="client"){const R=me();if(!R||R.origin==="null"){return"no-referrer"}Ae=new URL(R)}else if(R.referrer instanceof URL){Ae=R.referrer}let he=stripURLForReferrer(Ae);const ge=stripURLForReferrer(Ae,true);if(he.toString().length>4096){he=ge}const ye=sameOrigin(R,he);const ve=isURLPotentiallyTrustworthy(he)&&!isURLPotentiallyTrustworthy(R.url);switch(pe){case"origin":return ge!=null?ge:stripURLForReferrer(Ae,true);case"unsafe-url":return he;case"same-origin":return ye?ge:"no-referrer";case"origin-when-cross-origin":return ye?he:ge;case"strict-origin-when-cross-origin":{const pe=requestCurrentURL(R);if(sameOrigin(he,pe)){return he}if(isURLPotentiallyTrustworthy(he)&&!isURLPotentiallyTrustworthy(pe)){return"no-referrer"}return ge}case"strict-origin":case"no-referrer-when-downgrade":default:return ve?"no-referrer":ge}}function stripURLForReferrer(R,pe){Ce(R instanceof URL);if(R.protocol==="file:"||R.protocol==="about:"||R.protocol==="blank:"){return"no-referrer"}R.username="";R.password="";R.hash="";if(pe){R.pathname="";R.search=""}return R}function isURLPotentiallyTrustworthy(R){if(!(R instanceof URL)){return false}if(R.href==="about:blank"||R.href==="about:srcdoc"){return true}if(R.protocol==="data:")return true;if(R.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(R.origin);function isOriginPotentiallyTrustworthy(R){if(R==null||R==="null")return false;const pe=new URL(R);if(pe.protocol==="https:"||pe.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(pe.hostname)||(pe.hostname==="localhost"||pe.hostname.includes("localhost."))||pe.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(R,pe){if(Se===undefined){return true}const Ae=parseMetadata(pe);if(Ae==="no metadata"){return true}if(Ae.length===0){return true}const he=getStrongestMetadata(Ae);const ge=filterMetadataListByAlgorithm(Ae,he);for(const pe of ge){const Ae=pe.algo;const he=pe.hash;let ge=Se.createHash(Ae).update(R).digest("base64");if(ge[ge.length-1]==="="){if(ge[ge.length-2]==="="){ge=ge.slice(0,-2)}else{ge=ge.slice(0,-1)}}if(compareBase64Mixed(ge,he)){return true}}return false}const Be=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(R){const pe=[];let Ae=true;for(const he of R.split(" ")){Ae=false;const R=Be.exec(he);if(R===null||R.groups===undefined||R.groups.algo===undefined){continue}const ge=R.groups.algo.toLowerCase();if(Ie.includes(ge)){pe.push(R.groups)}}if(Ae===true){return"no metadata"}return pe}function getStrongestMetadata(R){let pe=R[0].algo;if(pe[3]==="5"){return pe}for(let Ae=1;Ae{R=Ae;pe=he}));return{promise:Ae,resolve:R,reject:pe}}function isAborted(R){return R.controller.state==="aborted"}function isCancelled(R){return R.controller.state==="aborted"||R.controller.state==="terminated"}const ke={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(ke,null);function normalizeMethod(R){return ke[R.toLowerCase()]??R}function serializeJavascriptValueToJSONString(R){const pe=JSON.stringify(R);if(pe===undefined){throw new TypeError("Value is not JSON serializable")}Ce(typeof pe==="string");return pe}const Oe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(R,pe,Ae){const he={index:0,kind:Ae,target:R};const ge={next(){if(Object.getPrototypeOf(this)!==ge){throw new TypeError(`'next' called on an object that does not implement interface ${pe} Iterator.`)}const{index:R,kind:Ae,target:ye}=he;const me=ye();const ve=me.length;if(R>=ve){return{value:undefined,done:true}}const be=me[R];he.index=R+1;return iteratorResult(be,Ae)},[Symbol.toStringTag]:`${pe} Iterator`};Object.setPrototypeOf(ge,Oe);return Object.setPrototypeOf({},ge)}function iteratorResult(R,pe){let Ae;switch(pe){case"key":{Ae=R[0];break}case"value":{Ae=R[1];break}case"key+value":{Ae=R;break}}return{value:Ae,done:false}}async function fullyReadBody(R,pe,Ae){const he=pe;const ge=Ae;let ye;try{ye=R.stream.getReader()}catch(R){ge(R);return}try{const R=await readAllBytes(ye);he(R)}catch(R){ge(R)}}let Re=globalThis.ReadableStream;function isReadableStreamLike(R){if(!Re){Re=Ae(35356).ReadableStream}return R instanceof Re||R[Symbol.toStringTag]==="ReadableStream"&&typeof R.tee==="function"}const Qe=65535;function isomorphicDecode(R){if(R.lengthR+String.fromCharCode(pe)),"")}function readableStreamClose(R){try{R.close()}catch(R){if(!R.message.includes("Controller is already closed")){throw R}}}function isomorphicEncode(R){for(let pe=0;peObject.prototype.hasOwnProperty.call(R,pe));R.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:we,toUSVString:Ee,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:be,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:xe,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:ke,parseMetadata:parseMetadata}},21744:(R,pe,Ae)=>{"use strict";const{types:he}=Ae(73837);const{hasOwn:ge,toUSVString:ye}=Ae(52538);const me={};me.converters={};me.util={};me.errors={};me.errors.exception=function(R){return new TypeError(`${R.header}: ${R.message}`)};me.errors.conversionFailed=function(R){const pe=R.types.length===1?"":" one of";const Ae=`${R.argument} could not be converted to`+`${pe}: ${R.types.join(", ")}.`;return me.errors.exception({header:R.prefix,message:Ae})};me.errors.invalidArgument=function(R){return me.errors.exception({header:R.prefix,message:`"${R.value}" is an invalid ${R.type}.`})};me.brandCheck=function(R,pe,Ae=undefined){if(Ae?.strict!==false&&!(R instanceof pe)){throw new TypeError("Illegal invocation")}else{return R?.[Symbol.toStringTag]===pe.prototype[Symbol.toStringTag]}};me.argumentLengthCheck=function({length:R},pe,Ae){if(Rge){throw me.errors.exception({header:"Integer conversion",message:`Value must be between ${ye}-${ge}, got ${ve}.`})}return ve}if(!Number.isNaN(ve)&&he.clamp===true){ve=Math.min(Math.max(ve,ye),ge);if(Math.floor(ve)%2===0){ve=Math.floor(ve)}else{ve=Math.ceil(ve)}return ve}if(Number.isNaN(ve)||ve===0&&Object.is(0,ve)||ve===Number.POSITIVE_INFINITY||ve===Number.NEGATIVE_INFINITY){return 0}ve=me.util.IntegerPart(ve);ve=ve%Math.pow(2,pe);if(Ae==="signed"&&ve>=Math.pow(2,pe)-1){return ve-Math.pow(2,pe)}return ve};me.util.IntegerPart=function(R){const pe=Math.floor(Math.abs(R));if(R<0){return-1*pe}return pe};me.sequenceConverter=function(R){return pe=>{if(me.util.Type(pe)!=="Object"){throw me.errors.exception({header:"Sequence",message:`Value of type ${me.util.Type(pe)} is not an Object.`})}const Ae=pe?.[Symbol.iterator]?.();const he=[];if(Ae===undefined||typeof Ae.next!=="function"){throw me.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:pe,value:ge}=Ae.next();if(pe){break}he.push(R(ge))}return he}};me.recordConverter=function(R,pe){return Ae=>{if(me.util.Type(Ae)!=="Object"){throw me.errors.exception({header:"Record",message:`Value of type ${me.util.Type(Ae)} is not an Object.`})}const ge={};if(!he.isProxy(Ae)){const he=Object.keys(Ae);for(const ye of he){const he=R(ye);const me=pe(Ae[ye]);ge[he]=me}return ge}const ye=Reflect.ownKeys(Ae);for(const he of ye){const ye=Reflect.getOwnPropertyDescriptor(Ae,he);if(ye?.enumerable){const ye=R(he);const me=pe(Ae[he]);ge[ye]=me}}return ge}};me.interfaceConverter=function(R){return(pe,Ae={})=>{if(Ae.strict!==false&&!(pe instanceof R)){throw me.errors.exception({header:R.name,message:`Expected ${pe} to be an instance of ${R.name}.`})}return pe}};me.dictionaryConverter=function(R){return pe=>{const Ae=me.util.Type(pe);const he={};if(Ae==="Null"||Ae==="Undefined"){return he}else if(Ae!=="Object"){throw me.errors.exception({header:"Dictionary",message:`Expected ${pe} to be one of: Null, Undefined, Object.`})}for(const Ae of R){const{key:R,defaultValue:ye,required:ve,converter:be}=Ae;if(ve===true){if(!ge(pe,R)){throw me.errors.exception({header:"Dictionary",message:`Missing required key "${R}".`})}}let Ee=pe[R];const we=ge(Ae,"defaultValue");if(we&&Ee!==null){Ee=Ee??ye}if(ve||we||Ee!==undefined){Ee=be(Ee);if(Ae.allowedValues&&!Ae.allowedValues.includes(Ee)){throw me.errors.exception({header:"Dictionary",message:`${Ee} is not an accepted type. Expected one of ${Ae.allowedValues.join(", ")}.`})}he[R]=Ee}}return he}};me.nullableConverter=function(R){return pe=>{if(pe===null){return pe}return R(pe)}};me.converters.DOMString=function(R,pe={}){if(R===null&&pe.legacyNullToEmptyString){return""}if(typeof R==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(R)};me.converters.ByteString=function(R){const pe=me.converters.DOMString(R);for(let R=0;R255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${R} has a value of ${pe.charCodeAt(R)} which is greater than 255.`)}}return pe};me.converters.USVString=ye;me.converters.boolean=function(R){const pe=Boolean(R);return pe};me.converters.any=function(R){return R};me.converters["long long"]=function(R){const pe=me.util.ConvertToInt(R,64,"signed");return pe};me.converters["unsigned long long"]=function(R){const pe=me.util.ConvertToInt(R,64,"unsigned");return pe};me.converters["unsigned long"]=function(R){const pe=me.util.ConvertToInt(R,32,"unsigned");return pe};me.converters["unsigned short"]=function(R,pe){const Ae=me.util.ConvertToInt(R,16,"unsigned",pe);return Ae};me.converters.ArrayBuffer=function(R,pe={}){if(me.util.Type(R)!=="Object"||!he.isAnyArrayBuffer(R)){throw me.errors.conversionFailed({prefix:`${R}`,argument:`${R}`,types:["ArrayBuffer"]})}if(pe.allowShared===false&&he.isSharedArrayBuffer(R)){throw me.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return R};me.converters.TypedArray=function(R,pe,Ae={}){if(me.util.Type(R)!=="Object"||!he.isTypedArray(R)||R.constructor.name!==pe.name){throw me.errors.conversionFailed({prefix:`${pe.name}`,argument:`${R}`,types:[pe.name]})}if(Ae.allowShared===false&&he.isSharedArrayBuffer(R.buffer)){throw me.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return R};me.converters.DataView=function(R,pe={}){if(me.util.Type(R)!=="Object"||!he.isDataView(R)){throw me.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(pe.allowShared===false&&he.isSharedArrayBuffer(R.buffer)){throw me.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return R};me.converters.BufferSource=function(R,pe={}){if(he.isAnyArrayBuffer(R)){return me.converters.ArrayBuffer(R,pe)}if(he.isTypedArray(R)){return me.converters.TypedArray(R,R.constructor)}if(he.isDataView(R)){return me.converters.DataView(R,pe)}throw new TypeError(`Could not convert ${R} to a BufferSource.`)};me.converters["sequence"]=me.sequenceConverter(me.converters.ByteString);me.converters["sequence>"]=me.sequenceConverter(me.converters["sequence"]);me.converters["record"]=me.recordConverter(me.converters.ByteString,me.converters.ByteString);R.exports={webidl:me}},84854:R=>{"use strict";function getEncoding(R){if(!R){return"failure"}switch(R.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"}}R.exports={getEncoding:getEncoding}},1446:(R,pe,Ae)=>{"use strict";const{staticPropertyDescriptors:he,readOperation:ge,fireAProgressEvent:ye}=Ae(87530);const{kState:me,kError:ve,kResult:be,kEvents:Ee,kAborted:we}=Ae(29054);const{webidl:Ce}=Ae(21744);const{kEnumerableProperty:_e}=Ae(83983);class FileReader extends EventTarget{constructor(){super();this[me]="empty";this[be]=null;this[ve]=null;this[Ee]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(R){Ce.brandCheck(this,FileReader);Ce.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});R=Ce.converters.Blob(R,{strict:false});ge(this,R,"ArrayBuffer")}readAsBinaryString(R){Ce.brandCheck(this,FileReader);Ce.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});R=Ce.converters.Blob(R,{strict:false});ge(this,R,"BinaryString")}readAsText(R,pe=undefined){Ce.brandCheck(this,FileReader);Ce.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});R=Ce.converters.Blob(R,{strict:false});if(pe!==undefined){pe=Ce.converters.DOMString(pe)}ge(this,R,"Text",pe)}readAsDataURL(R){Ce.brandCheck(this,FileReader);Ce.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});R=Ce.converters.Blob(R,{strict:false});ge(this,R,"DataURL")}abort(){if(this[me]==="empty"||this[me]==="done"){this[be]=null;return}if(this[me]==="loading"){this[me]="done";this[be]=null}this[we]=true;ye("abort",this);if(this[me]!=="loading"){ye("loadend",this)}}get readyState(){Ce.brandCheck(this,FileReader);switch(this[me]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){Ce.brandCheck(this,FileReader);return this[be]}get error(){Ce.brandCheck(this,FileReader);return this[ve]}get onloadend(){Ce.brandCheck(this,FileReader);return this[Ee].loadend}set onloadend(R){Ce.brandCheck(this,FileReader);if(this[Ee].loadend){this.removeEventListener("loadend",this[Ee].loadend)}if(typeof R==="function"){this[Ee].loadend=R;this.addEventListener("loadend",R)}else{this[Ee].loadend=null}}get onerror(){Ce.brandCheck(this,FileReader);return this[Ee].error}set onerror(R){Ce.brandCheck(this,FileReader);if(this[Ee].error){this.removeEventListener("error",this[Ee].error)}if(typeof R==="function"){this[Ee].error=R;this.addEventListener("error",R)}else{this[Ee].error=null}}get onloadstart(){Ce.brandCheck(this,FileReader);return this[Ee].loadstart}set onloadstart(R){Ce.brandCheck(this,FileReader);if(this[Ee].loadstart){this.removeEventListener("loadstart",this[Ee].loadstart)}if(typeof R==="function"){this[Ee].loadstart=R;this.addEventListener("loadstart",R)}else{this[Ee].loadstart=null}}get onprogress(){Ce.brandCheck(this,FileReader);return this[Ee].progress}set onprogress(R){Ce.brandCheck(this,FileReader);if(this[Ee].progress){this.removeEventListener("progress",this[Ee].progress)}if(typeof R==="function"){this[Ee].progress=R;this.addEventListener("progress",R)}else{this[Ee].progress=null}}get onload(){Ce.brandCheck(this,FileReader);return this[Ee].load}set onload(R){Ce.brandCheck(this,FileReader);if(this[Ee].load){this.removeEventListener("load",this[Ee].load)}if(typeof R==="function"){this[Ee].load=R;this.addEventListener("load",R)}else{this[Ee].load=null}}get onabort(){Ce.brandCheck(this,FileReader);return this[Ee].abort}set onabort(R){Ce.brandCheck(this,FileReader);if(this[Ee].abort){this.removeEventListener("abort",this[Ee].abort)}if(typeof R==="function"){this[Ee].abort=R;this.addEventListener("abort",R)}else{this[Ee].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:he,LOADING:he,DONE:he,readAsArrayBuffer:_e,readAsBinaryString:_e,readAsText:_e,readAsDataURL:_e,abort:_e,readyState:_e,result:_e,error:_e,onloadstart:_e,onprogress:_e,onload:_e,onabort:_e,onerror:_e,onloadend:_e,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:he,LOADING:he,DONE:he});R.exports={FileReader:FileReader}},55504:(R,pe,Ae)=>{"use strict";const{webidl:he}=Ae(21744);const ge=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(R,pe={}){R=he.converters.DOMString(R);pe=he.converters.ProgressEventInit(pe??{});super(R,pe);this[ge]={lengthComputable:pe.lengthComputable,loaded:pe.loaded,total:pe.total}}get lengthComputable(){he.brandCheck(this,ProgressEvent);return this[ge].lengthComputable}get loaded(){he.brandCheck(this,ProgressEvent);return this[ge].loaded}get total(){he.brandCheck(this,ProgressEvent);return this[ge].total}}he.converters.ProgressEventInit=he.dictionaryConverter([{key:"lengthComputable",converter:he.converters.boolean,defaultValue:false},{key:"loaded",converter:he.converters["unsigned long long"],defaultValue:0},{key:"total",converter:he.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:he.converters.boolean,defaultValue:false},{key:"cancelable",converter:he.converters.boolean,defaultValue:false},{key:"composed",converter:he.converters.boolean,defaultValue:false}]);R.exports={ProgressEvent:ProgressEvent}},29054:R=>{"use strict";R.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")}},87530:(R,pe,Ae)=>{"use strict";const{kState:he,kError:ge,kResult:ye,kAborted:me,kLastProgressEventFired:ve}=Ae(29054);const{ProgressEvent:be}=Ae(55504);const{getEncoding:Ee}=Ae(84854);const{DOMException:we}=Ae(41037);const{serializeAMimeType:Ce,parseMIMEType:_e}=Ae(685);const{types:Ie}=Ae(73837);const{StringDecoder:Se}=Ae(71576);const{btoa:Be}=Ae(14300);const ke={enumerable:true,writable:false,configurable:false};function readOperation(R,pe,Ae,be){if(R[he]==="loading"){throw new we("Invalid state","InvalidStateError")}R[he]="loading";R[ye]=null;R[ge]=null;const Ee=pe.stream();const Ce=Ee.getReader();const _e=[];let Se=Ce.read();let Be=true;(async()=>{while(!R[me]){try{const{done:Ee,value:we}=await Se;if(Be&&!R[me]){queueMicrotask((()=>{fireAProgressEvent("loadstart",R)}))}Be=false;if(!Ee&&Ie.isUint8Array(we)){_e.push(we);if((R[ve]===undefined||Date.now()-R[ve]>=50)&&!R[me]){R[ve]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",R)}))}Se=Ce.read()}else if(Ee){queueMicrotask((()=>{R[he]="done";try{const he=packageData(_e,Ae,pe.type,be);if(R[me]){return}R[ye]=he;fireAProgressEvent("load",R)}catch(pe){R[ge]=pe;fireAProgressEvent("error",R)}if(R[he]!=="loading"){fireAProgressEvent("loadend",R)}}));break}}catch(pe){if(R[me]){return}queueMicrotask((()=>{R[he]="done";R[ge]=pe;fireAProgressEvent("error",R);if(R[he]!=="loading"){fireAProgressEvent("loadend",R)}}));break}}})()}function fireAProgressEvent(R,pe){const Ae=new be(R,{bubbles:false,cancelable:false});pe.dispatchEvent(Ae)}function packageData(R,pe,Ae,he){switch(pe){case"DataURL":{let pe="data:";const he=_e(Ae||"application/octet-stream");if(he!=="failure"){pe+=Ce(he)}pe+=";base64,";const ge=new Se("latin1");for(const Ae of R){pe+=Be(ge.write(Ae))}pe+=Be(ge.end());return pe}case"Text":{let pe="failure";if(he){pe=Ee(he)}if(pe==="failure"&&Ae){const R=_e(Ae);if(R!=="failure"){pe=Ee(R.parameters.get("charset"))}}if(pe==="failure"){pe="UTF-8"}return decode(R,pe)}case"ArrayBuffer":{const pe=combineByteSequences(R);return pe.buffer}case"BinaryString":{let pe="";const Ae=new Se("latin1");for(const he of R){pe+=Ae.write(he)}pe+=Ae.end();return pe}}}function decode(R,pe){const Ae=combineByteSequences(R);const he=BOMSniffing(Ae);let ge=0;if(he!==null){pe=he;ge=he==="UTF-8"?3:2}const ye=Ae.slice(ge);return new TextDecoder(pe).decode(ye)}function BOMSniffing(R){const[pe,Ae,he]=R;if(pe===239&&Ae===187&&he===191){return"UTF-8"}else if(pe===254&&Ae===255){return"UTF-16BE"}else if(pe===255&&Ae===254){return"UTF-16LE"}return null}function combineByteSequences(R){const pe=R.reduce(((R,pe)=>R+pe.byteLength),0);let Ae=0;return R.reduce(((R,pe)=>{R.set(pe,Ae);Ae+=pe.byteLength;return R}),new Uint8Array(pe))}R.exports={staticPropertyDescriptors:ke,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},21892:(R,pe,Ae)=>{"use strict";const he=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:ge}=Ae(48045);const ye=Ae(7890);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new ye)}function setGlobalDispatcher(R){if(!R||typeof R.dispatch!=="function"){throw new ge("Argument agent must implement Agent")}Object.defineProperty(globalThis,he,{value:R,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[he]}R.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},46930:R=>{"use strict";R.exports=class DecoratorHandler{constructor(R){this.handler=R}onConnect(...R){return this.handler.onConnect(...R)}onError(...R){return this.handler.onError(...R)}onUpgrade(...R){return this.handler.onUpgrade(...R)}onHeaders(...R){return this.handler.onHeaders(...R)}onData(...R){return this.handler.onData(...R)}onComplete(...R){return this.handler.onComplete(...R)}onBodySent(...R){return this.handler.onBodySent(...R)}}},72860:(R,pe,Ae)=>{"use strict";const he=Ae(83983);const{kBodyUsed:ge}=Ae(72785);const ye=Ae(39491);const{InvalidArgumentError:me}=Ae(48045);const ve=Ae(82361);const be=[300,301,302,303,307,308];const Ee=Symbol("body");class BodyAsyncIterable{constructor(R){this[Ee]=R;this[ge]=false}async*[Symbol.asyncIterator](){ye(!this[ge],"disturbed");this[ge]=true;yield*this[Ee]}}class RedirectHandler{constructor(R,pe,Ae,be){if(pe!=null&&(!Number.isInteger(pe)||pe<0)){throw new me("maxRedirections must be a positive number")}he.validateHandler(be,Ae.method,Ae.upgrade);this.dispatch=R;this.location=null;this.abort=null;this.opts={...Ae,maxRedirections:0};this.maxRedirections=pe;this.handler=be;this.history=[];if(he.isStream(this.opts.body)){if(he.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){ye(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[ge]=false;ve.prototype.on.call(this.opts.body,"data",(function(){this[ge]=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)&&he.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(R){this.abort=R;this.handler.onConnect(R,{history:this.history})}onUpgrade(R,pe,Ae){this.handler.onUpgrade(R,pe,Ae)}onError(R){this.handler.onError(R)}onHeaders(R,pe,Ae,ge){this.location=this.history.length>=this.maxRedirections||he.isDisturbed(this.opts.body)?null:parseLocation(R,pe);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(R,pe,Ae,ge)}const{origin:ye,pathname:me,search:ve}=he.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const be=ve?`${me}${ve}`:me;this.opts.headers=cleanRequestHeaders(this.opts.headers,R===303,this.opts.origin!==ye);this.opts.path=be;this.opts.origin=ye;this.opts.maxRedirections=0;this.opts.query=null;if(R===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(R){if(this.location){}else{return this.handler.onData(R)}}onComplete(R){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(R)}}onBodySent(R){if(this.handler.onBodySent){this.handler.onBodySent(R)}}}function parseLocation(R,pe){if(be.indexOf(R)===-1){return null}for(let R=0;R{const he=Ae(39491);const{kRetryHandlerDefaultRetry:ge}=Ae(72785);const{RequestRetryError:ye}=Ae(48045);const{isDisturbed:me,parseHeaders:ve,parseRangeHeader:be}=Ae(83983);function calculateRetryAfterHeader(R){const pe=Date.now();const Ae=new Date(R).getTime()-pe;return Ae}class RetryHandler{constructor(R,pe){const{retryOptions:Ae,...he}=R;const{retry:ye,maxRetries:me,maxTimeout:ve,minTimeout:be,timeoutFactor:Ee,methods:we,errorCodes:Ce,retryAfter:_e,statusCodes:Ie}=Ae??{};this.dispatch=pe.dispatch;this.handler=pe.handler;this.opts=he;this.abort=null;this.aborted=false;this.retryOpts={retry:ye??RetryHandler[ge],retryAfter:_e??true,maxTimeout:ve??30*1e3,timeout:be??500,timeoutFactor:Ee??2,maxRetries:me??5,methods:we??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:Ie??[500,502,503,504,429],errorCodes:Ce??["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((R=>{this.aborted=true;if(this.abort){this.abort(R)}else{this.reason=R}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(R,pe,Ae){if(this.handler.onUpgrade){this.handler.onUpgrade(R,pe,Ae)}}onConnect(R){if(this.aborted){R(this.reason)}else{this.abort=R}}onBodySent(R){if(this.handler.onBodySent)return this.handler.onBodySent(R)}static[ge](R,{state:pe,opts:Ae},he){const{statusCode:ge,code:ye,headers:me}=R;const{method:ve,retryOptions:be}=Ae;const{maxRetries:Ee,timeout:we,maxTimeout:Ce,timeoutFactor:_e,statusCodes:Ie,errorCodes:Se,methods:Be}=be;let{counter:ke,currentTimeout:Oe}=pe;Oe=Oe!=null&&Oe>0?Oe:we;if(ye&&ye!=="UND_ERR_REQ_RETRY"&&ye!=="UND_ERR_SOCKET"&&!Se.includes(ye)){he(R);return}if(Array.isArray(Be)&&!Be.includes(ve)){he(R);return}if(ge!=null&&Array.isArray(Ie)&&!Ie.includes(ge)){he(R);return}if(ke>Ee){he(R);return}let Re=me!=null&&me["retry-after"];if(Re){Re=Number(Re);Re=isNaN(Re)?calculateRetryAfterHeader(Re):Re*1e3}const Qe=Re>0?Math.min(Re,Ce):Math.min(Oe*_e**ke,Ce);pe.currentTimeout=Qe;setTimeout((()=>he(null)),Qe)}onHeaders(R,pe,Ae,ge){const me=ve(pe);this.retryCount+=1;if(R>=300){this.abort(new ye("Request failed",R,{headers:me,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(R!==206){return true}const pe=be(me["content-range"]);if(!pe){this.abort(new ye("Content-Range mismatch",R,{headers:me,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==me.etag){this.abort(new ye("ETag mismatch",R,{headers:me,count:this.retryCount}));return false}const{start:ge,size:ve,end:Ee=ve}=pe;he(this.start===ge,"content-range mismatch");he(this.end==null||this.end===Ee,"content-range mismatch");this.resume=Ae;return true}if(this.end==null){if(R===206){const ye=be(me["content-range"]);if(ye==null){return this.handler.onHeaders(R,pe,Ae,ge)}const{start:ve,size:Ee,end:we=Ee}=ye;he(ve!=null&&Number.isFinite(ve)&&this.start!==ve,"content-range mismatch");he(Number.isFinite(ve));he(we!=null&&Number.isFinite(we)&&this.end!==we,"invalid content-length");this.start=ve;this.end=we}if(this.end==null){const R=me["content-length"];this.end=R!=null?Number(R):null}he(Number.isFinite(this.start));he(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=Ae;this.etag=me.etag!=null?me.etag:null;return this.handler.onHeaders(R,pe,Ae,ge)}const Ee=new ye("Request failed",R,{headers:me,count:this.retryCount});this.abort(Ee);return false}onData(R){this.start+=R.length;return this.handler.onData(R)}onComplete(R){this.retryCount=0;return this.handler.onComplete(R)}onError(R){if(this.aborted||me(this.opts.body)){return this.handler.onError(R)}this.retryOpts.retry(R,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(R){if(R!=null||this.aborted||me(this.opts.body)){return this.handler.onError(R)}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(R){this.handler.onError(R)}}}}R.exports=RetryHandler},38861:(R,pe,Ae)=>{"use strict";const he=Ae(72860);function createRedirectInterceptor({maxRedirections:R}){return pe=>function Intercept(Ae,ge){const{maxRedirections:ye=R}=Ae;if(!ye){return pe(Ae,ge)}const me=new he(pe,ye,Ae,ge);Ae={...Ae,maxRedirections:0};return pe(Ae,me)}}R.exports=createRedirectInterceptor},30953:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.SPECIAL_HEADERS=pe.HEADER_STATE=pe.MINOR=pe.MAJOR=pe.CONNECTION_TOKEN_CHARS=pe.HEADER_CHARS=pe.TOKEN=pe.STRICT_TOKEN=pe.HEX=pe.URL_CHAR=pe.STRICT_URL_CHAR=pe.USERINFO_CHARS=pe.MARK=pe.ALPHANUM=pe.NUM=pe.HEX_MAP=pe.NUM_MAP=pe.ALPHA=pe.FINISH=pe.H_METHOD_MAP=pe.METHOD_MAP=pe.METHODS_RTSP=pe.METHODS_ICE=pe.METHODS_HTTP=pe.METHODS=pe.LENIENT_FLAGS=pe.FLAGS=pe.TYPE=pe.ERROR=void 0;const he=Ae(41891);var ge;(function(R){R[R["OK"]=0]="OK";R[R["INTERNAL"]=1]="INTERNAL";R[R["STRICT"]=2]="STRICT";R[R["LF_EXPECTED"]=3]="LF_EXPECTED";R[R["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";R[R["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";R[R["INVALID_METHOD"]=6]="INVALID_METHOD";R[R["INVALID_URL"]=7]="INVALID_URL";R[R["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";R[R["INVALID_VERSION"]=9]="INVALID_VERSION";R[R["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";R[R["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";R[R["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";R[R["INVALID_STATUS"]=13]="INVALID_STATUS";R[R["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";R[R["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";R[R["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";R[R["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";R[R["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";R[R["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";R[R["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";R[R["PAUSED"]=21]="PAUSED";R[R["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";R[R["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";R[R["USER"]=24]="USER"})(ge=pe.ERROR||(pe.ERROR={}));var ye;(function(R){R[R["BOTH"]=0]="BOTH";R[R["REQUEST"]=1]="REQUEST";R[R["RESPONSE"]=2]="RESPONSE"})(ye=pe.TYPE||(pe.TYPE={}));var me;(function(R){R[R["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";R[R["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";R[R["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";R[R["CHUNKED"]=8]="CHUNKED";R[R["UPGRADE"]=16]="UPGRADE";R[R["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";R[R["SKIPBODY"]=64]="SKIPBODY";R[R["TRAILING"]=128]="TRAILING";R[R["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(me=pe.FLAGS||(pe.FLAGS={}));var ve;(function(R){R[R["HEADERS"]=1]="HEADERS";R[R["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";R[R["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(ve=pe.LENIENT_FLAGS||(pe.LENIENT_FLAGS={}));var be;(function(R){R[R["DELETE"]=0]="DELETE";R[R["GET"]=1]="GET";R[R["HEAD"]=2]="HEAD";R[R["POST"]=3]="POST";R[R["PUT"]=4]="PUT";R[R["CONNECT"]=5]="CONNECT";R[R["OPTIONS"]=6]="OPTIONS";R[R["TRACE"]=7]="TRACE";R[R["COPY"]=8]="COPY";R[R["LOCK"]=9]="LOCK";R[R["MKCOL"]=10]="MKCOL";R[R["MOVE"]=11]="MOVE";R[R["PROPFIND"]=12]="PROPFIND";R[R["PROPPATCH"]=13]="PROPPATCH";R[R["SEARCH"]=14]="SEARCH";R[R["UNLOCK"]=15]="UNLOCK";R[R["BIND"]=16]="BIND";R[R["REBIND"]=17]="REBIND";R[R["UNBIND"]=18]="UNBIND";R[R["ACL"]=19]="ACL";R[R["REPORT"]=20]="REPORT";R[R["MKACTIVITY"]=21]="MKACTIVITY";R[R["CHECKOUT"]=22]="CHECKOUT";R[R["MERGE"]=23]="MERGE";R[R["M-SEARCH"]=24]="M-SEARCH";R[R["NOTIFY"]=25]="NOTIFY";R[R["SUBSCRIBE"]=26]="SUBSCRIBE";R[R["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";R[R["PATCH"]=28]="PATCH";R[R["PURGE"]=29]="PURGE";R[R["MKCALENDAR"]=30]="MKCALENDAR";R[R["LINK"]=31]="LINK";R[R["UNLINK"]=32]="UNLINK";R[R["SOURCE"]=33]="SOURCE";R[R["PRI"]=34]="PRI";R[R["DESCRIBE"]=35]="DESCRIBE";R[R["ANNOUNCE"]=36]="ANNOUNCE";R[R["SETUP"]=37]="SETUP";R[R["PLAY"]=38]="PLAY";R[R["PAUSE"]=39]="PAUSE";R[R["TEARDOWN"]=40]="TEARDOWN";R[R["GET_PARAMETER"]=41]="GET_PARAMETER";R[R["SET_PARAMETER"]=42]="SET_PARAMETER";R[R["REDIRECT"]=43]="REDIRECT";R[R["RECORD"]=44]="RECORD";R[R["FLUSH"]=45]="FLUSH"})(be=pe.METHODS||(pe.METHODS={}));pe.METHODS_HTTP=[be.DELETE,be.GET,be.HEAD,be.POST,be.PUT,be.CONNECT,be.OPTIONS,be.TRACE,be.COPY,be.LOCK,be.MKCOL,be.MOVE,be.PROPFIND,be.PROPPATCH,be.SEARCH,be.UNLOCK,be.BIND,be.REBIND,be.UNBIND,be.ACL,be.REPORT,be.MKACTIVITY,be.CHECKOUT,be.MERGE,be["M-SEARCH"],be.NOTIFY,be.SUBSCRIBE,be.UNSUBSCRIBE,be.PATCH,be.PURGE,be.MKCALENDAR,be.LINK,be.UNLINK,be.PRI,be.SOURCE];pe.METHODS_ICE=[be.SOURCE];pe.METHODS_RTSP=[be.OPTIONS,be.DESCRIBE,be.ANNOUNCE,be.SETUP,be.PLAY,be.PAUSE,be.TEARDOWN,be.GET_PARAMETER,be.SET_PARAMETER,be.REDIRECT,be.RECORD,be.FLUSH,be.GET,be.POST];pe.METHOD_MAP=he.enumToMap(be);pe.H_METHOD_MAP={};Object.keys(pe.METHOD_MAP).forEach((R=>{if(/^H/.test(R)){pe.H_METHOD_MAP[R]=pe.METHOD_MAP[R]}}));var Ee;(function(R){R[R["SAFE"]=0]="SAFE";R[R["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";R[R["UNSAFE"]=2]="UNSAFE"})(Ee=pe.FINISH||(pe.FINISH={}));pe.ALPHA=[];for(let R="A".charCodeAt(0);R<="Z".charCodeAt(0);R++){pe.ALPHA.push(String.fromCharCode(R));pe.ALPHA.push(String.fromCharCode(R+32))}pe.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};pe.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};pe.NUM=["0","1","2","3","4","5","6","7","8","9"];pe.ALPHANUM=pe.ALPHA.concat(pe.NUM);pe.MARK=["-","_",".","!","~","*","'","(",")"];pe.USERINFO_CHARS=pe.ALPHANUM.concat(pe.MARK).concat(["%",";",":","&","=","+","$",","]);pe.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(pe.ALPHANUM);pe.URL_CHAR=pe.STRICT_URL_CHAR.concat(["\t","\f"]);for(let R=128;R<=255;R++){pe.URL_CHAR.push(R)}pe.HEX=pe.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);pe.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(pe.ALPHANUM);pe.TOKEN=pe.STRICT_TOKEN.concat([" "]);pe.HEADER_CHARS=["\t"];for(let R=32;R<=255;R++){if(R!==127){pe.HEADER_CHARS.push(R)}}pe.CONNECTION_TOKEN_CHARS=pe.HEADER_CHARS.filter((R=>R!==44));pe.MAJOR=pe.NUM_MAP;pe.MINOR=pe.MAJOR;var we;(function(R){R[R["GENERAL"]=0]="GENERAL";R[R["CONNECTION"]=1]="CONNECTION";R[R["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";R[R["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";R[R["UPGRADE"]=4]="UPGRADE";R[R["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";R[R["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";R[R["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";R[R["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(we=pe.HEADER_STATE||(pe.HEADER_STATE={}));pe.SPECIAL_HEADERS={connection:we.CONNECTION,"content-length":we.CONTENT_LENGTH,"proxy-connection":we.CONNECTION,"transfer-encoding":we.TRANSFER_ENCODING,upgrade:we.UPGRADE}},61145:R=>{R.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ2V0X3VwZ3JhZGUAEwxsbGh0dHBfcmVzZXQAFA5sbGh0dHBfZXhlY3V0ZQAVFGxsaHR0cF9zZXR0aW5nc19pbml0ABYNbGxodHRwX2ZpbmlzaAAXDGxsaHR0cF9wYXVzZQAYDWxsaHR0cF9yZXN1bWUAGRtsbGh0dHBfcmVzdW1lX2FmdGVyX3VwZ3JhZGUAGhBsbGh0dHBfZ2V0X2Vycm5vABsXbGxodHRwX2dldF9lcnJvcl9yZWFzb24AHBdsbGh0dHBfc2V0X2Vycm9yX3JlYXNvbgAdFGxsaHR0cF9nZXRfZXJyb3JfcG9zAB4RbGxodHRwX2Vycm5vX25hbWUAHxJsbGh0dHBfbWV0aG9kX25hbWUAIBJs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ADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4ABgQGCAYMBhAGFAYYBhwGIAYkB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QAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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FCAAIBA2AgxBACEQDLIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAU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YWdlX2JlZ2luYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlYCBjYWxsYmFjayBlcnJvcgBgb25fc3RhdHVzX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdmVyc2lvbl9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3VybF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX3ZhbHVlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21ldGhvZF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl9maWVsZF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lYCBjYWxsYmFjayBlcnJvcgBVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNlcnZlcgBJbnZhbGlkIGhlYWRlciB2YWx1ZSBjaGFyAEludmFsaWQgaGVhZGVyIGZpZWxkIGNoYXIAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl92ZXJzaW9uAEludmFsaWQgbWlub3IgdmVyc2lvbgBJbnZhbGlkIG1ham9yIHZlcnNpb24ARXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgdmVyc2lvbgBFeHBlY3RlZCBDUkxGIGFmdGVyIHZlcnNpb24ASW52YWxpZCBIVFRQIHZlcnNpb24ASW52YWxpZCBoZWFkZXIgdG9rZW4AU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl91cmwASW52YWxpZCBjaGFyYWN0ZXJzIGluIHVybABVbmV4cGVjdGVkIHN0YXJ0IGNoYXIgaW4gdXJsAERvdWJsZSBAIGluIHVybABFbXB0eSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXJhY3RlciBpbiBDb250ZW50LUxlbmd0aABEdXBsaWNhdGUgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyIGluIHVybCBwYXRoAENvbnRlbnQtTGVuZ3RoIGNhbid0IGJlIHByZXNlbnQgd2l0aCBUcmFuc2Zlci1FbmNvZGluZwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBzaXplAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25faGVhZGVyX3ZhbHVlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgdmFsdWUATWlzc2luZyBleHBlY3RlZCBMRiBhZnRlciBoZWFkZXIgdmFsdWUASW52YWxpZCBgVHJhbnNmZXItRW5jb2RpbmdgIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGVkIHZhbHVlAFBhdXNlZCBieSBvbl9oZWFkZXJzX2NvbXBsZXRlAEludmFsaWQgRU9GIHN0YXRlAG9uX3Jlc2V0IHBhdXNlAG9uX2NodW5rX2hlYWRlciBwYXVzZQBvbl9tZXNzYWdlX2JlZ2luIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZSBwYXVzZQBvbl9zdGF0dXNfY29tcGxldGUgcGF1c2UAb25fdmVyc2lvbl9jb21wbGV0ZSBwYXVzZQBvbl91cmxfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX3ZhbHVlX2NvbXBsZXRlIHBhdXNlAG9uX21lc3NhZ2VfY29tcGxldGUgcGF1c2UAb25fbWV0aG9kX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl9maWVsZF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fbmFtZSBwYXVzZQBVbmV4cGVjdGVkIHNwYWNlIGFmdGVyIHN0YXJ0IGxpbmUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fbmFtZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIG5hbWUAUGF1c2Ugb24gQ09OTkVDVC9VcGdyYWRlAFBhdXNlIG9uIFBSSS9VcGdyYWRlAEV4cGVjdGVkIEhUVFAvMiBDb25uZWN0aW9uIFByZWZhY2UAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9tZXRob2QARXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgbWV0aG9kAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25faGVhZGVyX2ZpZWxkAFBhdXNlZABJbnZhbGlkIHdvcmQgZW5jb3VudGVyZWQASW52YWxpZCBtZXRob2QgZW5jb3VudGVyZWQAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzY2hlbWEAUmVxdWVzdCBoYXMgaW52YWxpZCBgVHJhbnNmZXItRW5jb2RpbmdgAFNXSVRDSF9QUk9YWQBVU0VfUFJPWFkATUtBQ1RJVklUWQBVTlBST0NFU1NBQkxFX0VOVElUWQBDT1BZAE1PVkVEX1BFUk1BTkVOVExZAFRPT19FQVJMWQBOT1RJRlkARkFJTEVEX0RFUEVOREVOQ1kAQkFEX0dBVEVXQVkAUExBWQBQVVQAQ0hFQ0tPVVQAR0FURVdBWV9USU1FT1VUAFJFUVVFU1RfVElNRU9VVABORVRXT1JLX0NPTk5FQ1RfVElNRU9VVABDT05ORUNUSU9OX1RJTUVPVVQATE9HSU5fVElNRU9VVABORVRXT1JLX1JFQURfVElNRU9VVABQT1NUAE1JU0RJUkVDVEVEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfTE9BRF9CQUxBTkNFRF9SRVFVRVNUAEJBRF9SRVFVRVNUAEhUVFBfUkVRVUVTVF9TRU5UX1RPX0hUVFBTX1BPUlQAUkVQT1JUAElNX0FfVEVBUE9UAFJFU0VUX0NPTlRFTlQATk9fQ09OVEVOVABQQVJUSUFMX0NPTlRFTlQASFBFX0lOVkFMSURfQ09OU1RBTlQASFBFX0NCX1JFU0VUAEdFVABIUEVfU1RSSUNUAENPTkZMSUNUAFRFTVBPUkFSWV9SRURJUkVDVABQRVJNQU5FTlRfUkVESVJFQ1QAQ09OTkVDVABNVUxUSV9TVEFUVVMASFBFX0lOVkFMSURfU1RBVFVTAFRPT19NQU5ZX1JFUVVFU1RTAEVBUkxZX0hJTlRTAFVOQVZBSUxBQkxFX0ZPUl9MRUdBTF9SRUFTT05TAE9QVElPTlMAU1dJVENISU5HX1BST1RPQ09MUwBWQVJJQU5UX0FMU09fTkVHT1RJQVRFUwBNVUxUSVBMRV9DSE9JQ0VTAElOVEVSTkFMX1NFUlZFUl9FUlJPUgBXRUJfU0VSVkVSX1VOS05PV05fRVJST1IAUkFJTEdVTl9FUlJPUgBJREVOVElUWV9QUk9WSURFUl9BVVRIRU5USUNBVElPTl9FUlJPUgBTU0xfQ0VSVElGSUNBVEVfRVJST1IASU5WQUxJRF9YX0ZPUldBUkRFRF9GT1IAU0VUX1BBUkFNRVRFUgBHRVRfUEFSQU1FVEVSAEhQRV9VU0VSAFNFRV9PVEhFUgBIUEVfQ0JfQ0hVTktfSEVBREVSAE1LQ0FMRU5EQVIAU0VUVVAAV0VCX1NFUlZFUl9JU19ET1dOAFRFQVJET1dOAEhQRV9DTE9TRURfQ09OTkVDVElPTgBIRVVSSVNUSUNfRVhQSVJBVElPTgBESVNDT05ORUNURURfT1BFUkFUSU9OAE5PTl9BVVRIT1JJVEFUSVZFX0lORk9STUFUSU9OAEhQRV9JTlZBTElEX1ZFUlNJT04ASFBFX0NCX01FU1NBR0VfQkVHSU4AU0lURV9JU19GUk9aRU4ASFBFX0lOVkFMSURfSEVBREVSX1RPS0VOAElOVkFMSURfVE9LRU4ARk9SQklEREVOAEVOSEFOQ0VfWU9VUl9DQUxNAEhQRV9JTlZBTElEX1VSTABCTE9DS0VEX0JZX1BBUkVOVEFMX0NPTlRST0wATUtDT0wAQUNMAEhQRV9JTlRFUk5BTABSRVFVRVNUX0hFQURFUl9GSUVMRFNfVE9PX0xBUkdFX1VOT0ZGSUNJQUwASFBFX09LAFVOTElOSwBVTkxPQ0sAUFJJAFJFVFJZX1dJVEgASFBFX0lOVkFMSURfQ09OVEVOVF9MRU5HVEgASFBFX1VORVhQRUNURURfQ09OVEVOVF9MRU5HVEgARkxVU0gAUFJPUFBBVENIAE0tU0VBUkNIAFVSSV9UT09fTE9ORwBQUk9DRVNTSU5HAE1JU0NFTExBTkVPVVNfUEVSU0lTVEVOVF9XQVJOSU5HAE1JU0NFTExBTkVPVVNfV0FSTklORwBIUEVfSU5WQUxJRF9UUkFOU0ZFUl9FTkNPRElORwBFeHBlY3RlZCBDUkxGAEhQRV9JTlZBTElEX0NIVU5LX1NJWkUATU9WRQBDT05USU5VRQBIUEVfQ0JfU1RBVFVTX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJTX0NPTVBMRVRFAEhQRV9DQl9WRVJTSU9OX0NPTVBMRVRFAEhQRV9DQl9VUkxfQ09NUExFVEUASFBFX0NCX0NIVU5LX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX05BTUVfQ09NUExFVEUASFBFX0NCX01FU1NBR0VfQ09NUExFVEUASFBFX0NCX01FVEhPRF9DT01QTEVURQBIUEVfQ0JfSEVBREVSX0ZJRUxEX0NPTVBMRVRFAERFTEVURQBIUEVfSU5WQUxJRF9FT0ZfU1RBVEUASU5WQUxJRF9TU0xfQ0VSVElGSUNBVEUAUEFVU0UATk9fUkVTUE9OU0UAVU5TVVBQT1JURURfTUVESUFfVFlQRQBHT05FAE5PVF9BQ0NFUFRBQkxFAFNFUlZJQ0VfVU5BVkFJTEFCTEUAUkFOR0VfTk9UX1NBVElTRklBQkxFAE9SSUdJTl9JU19VTlJFQUNIQUJMRQBSRVNQT05TRV9JU19TVEFMRQBQVVJHRQBNRVJHRQBSRVFVRVNUX0hFQURFUl9GSUVMRFNfVE9PX0xBUkdFAFJFUVVFU1RfSEVBREVSX1RPT19MQVJHRQBQQVlMT0FEX1RPT19MQVJHRQBJTlNVRkZJQ0lFTlRfU1RPUkFHRQBIUEVfUEFVU0VEX1VQR1JBREUASFBFX1BBVVNFRF9IMl9VUEdSQURFAFNPVVJDRQBBTk5PVU5DRQBUUkFDRQBIUEVfVU5FWFBFQ1RFRF9TUEFDRQBERVNDUklCRQBVTlNVQlNDUklCRQBSRUNPUkQASFBFX0lOVkFMSURfTUVUSE9EAE5PVF9GT1VORABQUk9QRklORABVTkJJTkQAUkVCSU5EAFVOQVVUSE9SSVpFRABNRVRIT0RfTk9UX0FMTE9XRUQASFRUUF9WRVJTSU9OX05PVF9TVVBQT1JURUQAQUxSRUFEWV9SRVBPUlRFRABBQ0NFUFRFRABOT1RfSU1QTEVNRU5URUQATE9PUF9ERVRFQ1RFRABIUEVfQ1JfRVhQRUNURUQASFBFX0xGX0VYUEVDVEVEAENSRUFURUQASU1fVVNFRABIUEVfUEFVU0VEAFRJTUVPVVRfT0NDVVJFRABQQVlNRU5UX1JFUVVJUkVEAFBSRUNPTkRJVElPTl9SRVFVSVJFRABQUk9YWV9BVVRIRU5USUNBVElPTl9SRVFVSVJFRABORVRXT1JLX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAExFTkdUSF9SRVFVSVJFRABTU0xfQ0VSVElGSUNBVEVfUkVRVUlSRUQAVVBHUkFERV9SRVFVSVJFRABQQUdFX0VYUElSRUQAUFJFQ09ORElUSU9OX0ZBSUxFRABFWFBFQ1RBVElPTl9GQUlMRUQAUkVWQUxJREFUSU9OX0ZBSUxFRABTU0xfSEFORFNIQUtFX0ZBSUxFRABMT0NLRUQAVFJBTlNGT1JNQVRJT05fQVBQTElFRABOT1RfTU9ESUZJRUQATk9UX0VYVEVOREVEAEJBTkRXSURUSF9MSU1JVF9FWENFRURFRABTSVRFX0lTX09WRVJMT0FERUQASEVBRABFeHBlY3RlZCBIVFRQLwAAXhMAACYTAAAwEAAA8BcAAJ0TAAAVEgAAORcAAPASAAAKEAAAdRIAAK0SAACCEwAATxQAAH8QAACgFQAAIxQAAIkSAACLFAAATRUAANQRAADPFAAAEBgAAMkWAADcFgAAwREAAOAXAAC7FAAAdBQAAHwVAADlFAAACBcAAB8QAABlFQAAoxQAACgVAAACFQAAmRUAACwQAACLGQAATw8AANQOAABqEAAAzhAAAAIXAACJDgAAbhMAABwTAABmFAAAVhcAAMETAADNEwAAbBMAAGgXAABmFwAAXxcAACITAADODwAAaQ4AANgOAABjFgAAyxMAAKoOAAAoFwAAJhcAAMUTAABdFgAA6BEAAGcTAABlEwAA8hYAAHMTAAAdFwAA+RYAAPMRAADPDgAAzhUAAAwSAACzEQAApREAAGEQAAAyFwAAuxMAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIDAgICAgIAAAICAAICAAICAgICAgICAgIABAAAAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAACAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbG9zZWVlcC1hbGl2ZQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEAAQEBAQEAAAEBAAEBAAEBAQEBAQEBAQEAAAAAAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AAAAAAAAAAAAAAAAAAAByYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AAAAAAAAAAAAAAAABAgABAwAAAAAAAAAAAAAAAAAAAAAAAAQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAQIAAQMAAAAAAAAAAAAAAAAAAAAAAAAEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAAAAQAAAgAAAAAAAAAAAAAAAAAAAAAAAAMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAIAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABOT1VOQ0VFQ0tPVVRORUNURVRFQ1JJQkVMVVNIRVRFQURTRUFSQ0hSR0VDVElWSVRZTEVOREFSVkVPVElGWVBUSU9OU0NIU0VBWVNUQVRDSEdFT1JESVJFQ1RPUlRSQ0hQQVJBTUVURVJVUkNFQlNDUklCRUFSRE9XTkFDRUlORE5LQ0tVQlNDUklCRUhUVFAvQURUUC8="},95627:R=>{R.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ2V0X3VwZ3JhZGUAEwxsbGh0dHBfcmVzZXQAFA5sbGh0dHBfZXhlY3V0ZQAVFGxsaHR0cF9zZXR0aW5nc19pbml0ABYNbGxodHRwX2ZpbmlzaAAXDGxsaHR0cF9wYXVzZQAYDWxsaHR0cF9yZXN1bWUAGRtsbGh0dHBfcmVzdW1lX2FmdGVyX3VwZ3JhZGUAGhBsbGh0dHBfZ2V0X2Vycm5vABsXbGxodHRwX2dldF9lcnJvcl9yZWFzb24AHBdsbGh0dHBfc2V0X2Vycm9yX3JlYXNvbgAdFGxsaHR0cF9nZXRfZXJyb3JfcG9zAB4RbGxodHRwX2Vycm5vX25hbWUAHxJsbGh0dHBfbWV0aG9kX25hbWUAIBJs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IAH9CwMAIABBMGogAf0LAwAgAEEgaiAB/QsDACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBExQVFhcYGRob4AHfARwdHtUBHyAhIiMkJdQBJicoKSorLNMB0gEtLtEB0AEvMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUbbAUdISUrPAc4BS80BTMwBTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEB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QAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAAQID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YWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABsb3NlZWVwLWFsaXZlAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgAAAAAAAAAAAAAAAAAAAHJhbnNmZXItZW5jb2RpbmdwZ3JhZGUNCg0KDQpTTQ0KDQpUVFAvQ0UvVFNQLwAAAAAAAAAAAAAAAAECAAEDAAAAAAAAAAAAAAAAAAAAAAAABAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAABAgABAwAAAAAAAAAAAAAAAAAAAAAAAAQBAQUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAABAAACAAAAAAAAAAAAAAAAAAAAAAAAAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},41891:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.enumToMap=void 0;function enumToMap(R){const pe={};Object.keys(R).forEach((Ae=>{const he=R[Ae];if(typeof he==="number"){pe[Ae]=he}}));return pe}pe.enumToMap=enumToMap},66771:(R,pe,Ae)=>{"use strict";const{kClients:he}=Ae(72785);const ge=Ae(7890);const{kAgent:ye,kMockAgentSet:me,kMockAgentGet:ve,kDispatches:be,kIsMockActive:Ee,kNetConnect:we,kGetNetConnect:Ce,kOptions:_e,kFactory:Ie}=Ae(24347);const Se=Ae(58687);const Be=Ae(26193);const{matchValue:ke,buildMockOptions:Oe}=Ae(79323);const{InvalidArgumentError:Re,UndiciError:Qe}=Ae(48045);const xe=Ae(60412);const Pe=Ae(78891);const Te=Ae(86823);class FakeWeakRef{constructor(R){this.value=R}deref(){return this.value}}class MockAgent extends xe{constructor(R){super(R);this[we]=true;this[Ee]=true;if(R&&R.agent&&typeof R.agent.dispatch!=="function"){throw new Re("Argument opts.agent must implement Agent")}const pe=R&&R.agent?R.agent:new ge(R);this[ye]=pe;this[he]=pe[he];this[_e]=Oe(R)}get(R){let pe=this[ve](R);if(!pe){pe=this[Ie](R);this[me](R,pe)}return pe}dispatch(R,pe){this.get(R.origin);return this[ye].dispatch(R,pe)}async close(){await this[ye].close();this[he].clear()}deactivate(){this[Ee]=false}activate(){this[Ee]=true}enableNetConnect(R){if(typeof R==="string"||typeof R==="function"||R instanceof RegExp){if(Array.isArray(this[we])){this[we].push(R)}else{this[we]=[R]}}else if(typeof R==="undefined"){this[we]=true}else{throw new Re("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[we]=false}get isMockActive(){return this[Ee]}[me](R,pe){this[he].set(R,new FakeWeakRef(pe))}[Ie](R){const pe=Object.assign({agent:this},this[_e]);return this[_e]&&this[_e].connections===1?new Se(R,pe):new Be(R,pe)}[ve](R){const pe=this[he].get(R);if(pe){return pe.deref()}if(typeof R!=="string"){const pe=this[Ie]("http://localhost:9999");this[me](R,pe);return pe}for(const[pe,Ae]of Array.from(this[he])){const he=Ae.deref();if(he&&typeof pe!=="string"&&ke(pe,R)){const pe=this[Ie](R);this[me](R,pe);pe[be]=he[be];return pe}}}[Ce](){return this[we]}pendingInterceptors(){const R=this[he];return Array.from(R.entries()).flatMap((([R,pe])=>pe.deref()[be].map((pe=>({...pe,origin:R}))))).filter((({pending:R})=>R))}assertNoPendingInterceptors({pendingInterceptorsFormatter:R=new Te}={}){const pe=this.pendingInterceptors();if(pe.length===0){return}const Ae=new Pe("interceptor","interceptors").pluralize(pe.length);throw new Qe(`\n${Ae.count} ${Ae.noun} ${Ae.is} pending:\n\n${R.format(pe)}\n`.trim())}}R.exports=MockAgent},58687:(R,pe,Ae)=>{"use strict";const{promisify:he}=Ae(73837);const ge=Ae(33598);const{buildMockDispatch:ye}=Ae(79323);const{kDispatches:me,kMockAgent:ve,kClose:be,kOriginalClose:Ee,kOrigin:we,kOriginalDispatch:Ce,kConnected:_e}=Ae(24347);const{MockInterceptor:Ie}=Ae(90410);const Se=Ae(72785);const{InvalidArgumentError:Be}=Ae(48045);class MockClient extends ge{constructor(R,pe){super(R,pe);if(!pe||!pe.agent||typeof pe.agent.dispatch!=="function"){throw new Be("Argument opts.agent must implement Agent")}this[ve]=pe.agent;this[we]=R;this[me]=[];this[_e]=1;this[Ce]=this.dispatch;this[Ee]=this.close.bind(this);this.dispatch=ye.call(this);this.close=this[be]}get[Se.kConnected](){return this[_e]}intercept(R){return new Ie(R,this[me])}async[be](){await he(this[Ee])();this[_e]=0;this[ve][Se.kClients].delete(this[we])}}R.exports=MockClient},50888:(R,pe,Ae)=>{"use strict";const{UndiciError:he}=Ae(48045);class MockNotMatchedError extends he{constructor(R){super(R);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=R||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}R.exports={MockNotMatchedError:MockNotMatchedError}},90410:(R,pe,Ae)=>{"use strict";const{getResponseData:he,buildKey:ge,addMockDispatch:ye}=Ae(79323);const{kDispatches:me,kDispatchKey:ve,kDefaultHeaders:be,kDefaultTrailers:Ee,kContentLength:we,kMockDispatch:Ce}=Ae(24347);const{InvalidArgumentError:_e}=Ae(48045);const{buildURL:Ie}=Ae(83983);class MockScope{constructor(R){this[Ce]=R}delay(R){if(typeof R!=="number"||!Number.isInteger(R)||R<=0){throw new _e("waitInMs must be a valid integer > 0")}this[Ce].delay=R;return this}persist(){this[Ce].persist=true;return this}times(R){if(typeof R!=="number"||!Number.isInteger(R)||R<=0){throw new _e("repeatTimes must be a valid integer > 0")}this[Ce].times=R;return this}}class MockInterceptor{constructor(R,pe){if(typeof R!=="object"){throw new _e("opts must be an object")}if(typeof R.path==="undefined"){throw new _e("opts.path must be defined")}if(typeof R.method==="undefined"){R.method="GET"}if(typeof R.path==="string"){if(R.query){R.path=Ie(R.path,R.query)}else{const pe=new URL(R.path,"data://");R.path=pe.pathname+pe.search}}if(typeof R.method==="string"){R.method=R.method.toUpperCase()}this[ve]=ge(R);this[me]=pe;this[be]={};this[Ee]={};this[we]=false}createMockScopeDispatchData(R,pe,Ae={}){const ge=he(pe);const ye=this[we]?{"content-length":ge.length}:{};const me={...this[be],...ye,...Ae.headers};const ve={...this[Ee],...Ae.trailers};return{statusCode:R,data:pe,headers:me,trailers:ve}}validateReplyParameters(R,pe,Ae){if(typeof R==="undefined"){throw new _e("statusCode must be defined")}if(typeof pe==="undefined"){throw new _e("data must be defined")}if(typeof Ae!=="object"){throw new _e("responseOptions must be an object")}}reply(R){if(typeof R==="function"){const wrappedDefaultsCallback=pe=>{const Ae=R(pe);if(typeof Ae!=="object"){throw new _e("reply options callback must return an object")}const{statusCode:he,data:ge="",responseOptions:ye={}}=Ae;this.validateReplyParameters(he,ge,ye);return{...this.createMockScopeDispatchData(he,ge,ye)}};const pe=ye(this[me],this[ve],wrappedDefaultsCallback);return new MockScope(pe)}const[pe,Ae="",he={}]=[...arguments];this.validateReplyParameters(pe,Ae,he);const ge=this.createMockScopeDispatchData(pe,Ae,he);const be=ye(this[me],this[ve],ge);return new MockScope(be)}replyWithError(R){if(typeof R==="undefined"){throw new _e("error must be defined")}const pe=ye(this[me],this[ve],{error:R});return new MockScope(pe)}defaultReplyHeaders(R){if(typeof R==="undefined"){throw new _e("headers must be defined")}this[be]=R;return this}defaultReplyTrailers(R){if(typeof R==="undefined"){throw new _e("trailers must be defined")}this[Ee]=R;return this}replyContentLength(){this[we]=true;return this}}R.exports.MockInterceptor=MockInterceptor;R.exports.MockScope=MockScope},26193:(R,pe,Ae)=>{"use strict";const{promisify:he}=Ae(73837);const ge=Ae(4634);const{buildMockDispatch:ye}=Ae(79323);const{kDispatches:me,kMockAgent:ve,kClose:be,kOriginalClose:Ee,kOrigin:we,kOriginalDispatch:Ce,kConnected:_e}=Ae(24347);const{MockInterceptor:Ie}=Ae(90410);const Se=Ae(72785);const{InvalidArgumentError:Be}=Ae(48045);class MockPool extends ge{constructor(R,pe){super(R,pe);if(!pe||!pe.agent||typeof pe.agent.dispatch!=="function"){throw new Be("Argument opts.agent must implement Agent")}this[ve]=pe.agent;this[we]=R;this[me]=[];this[_e]=1;this[Ce]=this.dispatch;this[Ee]=this.close.bind(this);this.dispatch=ye.call(this);this.close=this[be]}get[Se.kConnected](){return this[_e]}intercept(R){return new Ie(R,this[me])}async[be](){await he(this[Ee])();this[_e]=0;this[ve][Se.kClients].delete(this[we])}}R.exports=MockPool},24347:R=>{"use strict";R.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")}},79323:(R,pe,Ae)=>{"use strict";const{MockNotMatchedError:he}=Ae(50888);const{kDispatches:ge,kMockAgent:ye,kOriginalDispatch:me,kOrigin:ve,kGetNetConnect:be}=Ae(24347);const{buildURL:Ee,nop:we}=Ae(83983);const{STATUS_CODES:Ce}=Ae(13685);const{types:{isPromise:_e}}=Ae(73837);function matchValue(R,pe){if(typeof R==="string"){return R===pe}if(R instanceof RegExp){return R.test(pe)}if(typeof R==="function"){return R(pe)===true}return false}function lowerCaseEntries(R){return Object.fromEntries(Object.entries(R).map((([R,pe])=>[R.toLocaleLowerCase(),pe])))}function getHeaderByName(R,pe){if(Array.isArray(R)){for(let Ae=0;Ae!R)).filter((({path:R})=>matchValue(safeUrl(R),ge)));if(ye.length===0){throw new he(`Mock dispatch not matched for path '${ge}'`)}ye=ye.filter((({method:R})=>matchValue(R,pe.method)));if(ye.length===0){throw new he(`Mock dispatch not matched for method '${pe.method}'`)}ye=ye.filter((({body:R})=>typeof R!=="undefined"?matchValue(R,pe.body):true));if(ye.length===0){throw new he(`Mock dispatch not matched for body '${pe.body}'`)}ye=ye.filter((R=>matchHeaders(R,pe.headers)));if(ye.length===0){throw new he(`Mock dispatch not matched for headers '${typeof pe.headers==="object"?JSON.stringify(pe.headers):pe.headers}'`)}return ye[0]}function addMockDispatch(R,pe,Ae){const he={timesInvoked:0,times:1,persist:false,consumed:false};const ge=typeof Ae==="function"?{callback:Ae}:{...Ae};const ye={...he,...pe,pending:true,data:{error:null,...ge}};R.push(ye);return ye}function deleteMockDispatch(R,pe){const Ae=R.findIndex((R=>{if(!R.consumed){return false}return matchKey(R,pe)}));if(Ae!==-1){R.splice(Ae,1)}}function buildKey(R){const{path:pe,method:Ae,body:he,headers:ge,query:ye}=R;return{path:pe,method:Ae,body:he,headers:ge,query:ye}}function generateKeyValues(R){return Object.entries(R).reduce(((R,[pe,Ae])=>[...R,Buffer.from(`${pe}`),Array.isArray(Ae)?Ae.map((R=>Buffer.from(`${R}`))):Buffer.from(`${Ae}`)]),[])}function getStatusText(R){return Ce[R]||"unknown"}async function getResponse(R){const pe=[];for await(const Ae of R){pe.push(Ae)}return Buffer.concat(pe).toString("utf8")}function mockDispatch(R,pe){const Ae=buildKey(R);const he=getMockDispatch(this[ge],Ae);he.timesInvoked++;if(he.data.callback){he.data={...he.data,...he.data.callback(R)}}const{data:{statusCode:ye,data:me,headers:ve,trailers:be,error:Ee},delay:Ce,persist:Ie}=he;const{timesInvoked:Se,times:Be}=he;he.consumed=!Ie&&Se>=Be;he.pending=Se0){setTimeout((()=>{handleReply(this[ge])}),Ce)}else{handleReply(this[ge])}function handleReply(he,ge=me){const Ee=Array.isArray(R.headers)?buildHeadersFromArray(R.headers):R.headers;const Ce=typeof ge==="function"?ge({...R,headers:Ee}):ge;if(_e(Ce)){Ce.then((R=>handleReply(he,R)));return}const Ie=getResponseData(Ce);const Se=generateKeyValues(ve);const Be=generateKeyValues(be);pe.abort=we;pe.onHeaders(ye,Se,resume,getStatusText(ye));pe.onData(Buffer.from(Ie));pe.onComplete(Be);deleteMockDispatch(he,Ae)}function resume(){}return true}function buildMockDispatch(){const R=this[ye];const pe=this[ve];const Ae=this[me];return function dispatch(ge,ye){if(R.isMockActive){try{mockDispatch.call(this,ge,ye)}catch(me){if(me instanceof he){const ve=R[be]();if(ve===false){throw new he(`${me.message}: subsequent request to origin ${pe} was not allowed (net.connect disabled)`)}if(checkNetConnect(ve,pe)){Ae.call(this,ge,ye)}else{throw new he(`${me.message}: subsequent request to origin ${pe} was not allowed (net.connect is not enabled for this origin)`)}}else{throw me}}}else{Ae.call(this,ge,ye)}}}function checkNetConnect(R,pe){const Ae=new URL(pe);if(R===true){return true}else if(Array.isArray(R)&&R.some((R=>matchValue(R,Ae.host)))){return true}return false}function buildMockOptions(R){if(R){const{agent:pe,...Ae}=R;return Ae}}R.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}},86823:(R,pe,Ae)=>{"use strict";const{Transform:he}=Ae(12781);const{Console:ge}=Ae(96206);R.exports=class PendingInterceptorsFormatter{constructor({disableColors:R}={}){this.transform=new he({transform(R,pe,Ae){Ae(null,R)}});this.logger=new ge({stdout:this.transform,inspectOptions:{colors:!R&&!process.env.CI}})}format(R){const pe=R.map((({method:R,path:pe,data:{statusCode:Ae},persist:he,times:ge,timesInvoked:ye,origin:me})=>({Method:R,Origin:me,Path:pe,"Status code":Ae,Persistent:he?"✅":"❌",Invocations:ye,Remaining:he?Infinity:ge-ye})));this.logger.table(pe);return this.transform.read().toString()}}},78891:R=>{"use strict";const pe={pronoun:"it",is:"is",was:"was",this:"this"};const Ae={pronoun:"they",is:"are",was:"were",this:"these"};R.exports=class Pluralizer{constructor(R,pe){this.singular=R;this.plural=pe}pluralize(R){const he=R===1;const ge=he?pe:Ae;const ye=he?this.singular:this.plural;return{...ge,count:R,noun:ye}}}},68266:R=>{"use strict";const pe=2048;const Ae=pe-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(pe);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&Ae)===this.bottom}push(R){this.list[this.top]=R;this.top=this.top+1&Ae}shift(){const R=this.list[this.bottom];if(R===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&Ae;return R}}R.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(R){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(R)}shift(){const R=this.tail;const pe=R.shift();if(R.isEmpty()&&R.next!==null){this.tail=R.next}return pe}}},73198:(R,pe,Ae)=>{"use strict";const he=Ae(74839);const ge=Ae(68266);const{kConnected:ye,kSize:me,kRunning:ve,kPending:be,kQueued:Ee,kBusy:we,kFree:Ce,kUrl:_e,kClose:Ie,kDestroy:Se,kDispatch:Be}=Ae(72785);const ke=Ae(39689);const Oe=Symbol("clients");const Re=Symbol("needDrain");const Qe=Symbol("queue");const xe=Symbol("closed resolve");const Pe=Symbol("onDrain");const Te=Symbol("onConnect");const De=Symbol("onDisconnect");const Ne=Symbol("onConnectionError");const Me=Symbol("get dispatcher");const je=Symbol("add client");const Fe=Symbol("remove client");const Le=Symbol("stats");class PoolBase extends he{constructor(){super();this[Qe]=new ge;this[Oe]=[];this[Ee]=0;const R=this;this[Pe]=function onDrain(pe,Ae){const he=R[Qe];let ge=false;while(!ge){const pe=he.shift();if(!pe){break}R[Ee]--;ge=!this.dispatch(pe.opts,pe.handler)}this[Re]=ge;if(!this[Re]&&R[Re]){R[Re]=false;R.emit("drain",pe,[R,...Ae])}if(R[xe]&&he.isEmpty()){Promise.all(R[Oe].map((R=>R.close()))).then(R[xe])}};this[Te]=(pe,Ae)=>{R.emit("connect",pe,[R,...Ae])};this[De]=(pe,Ae,he)=>{R.emit("disconnect",pe,[R,...Ae],he)};this[Ne]=(pe,Ae,he)=>{R.emit("connectionError",pe,[R,...Ae],he)};this[Le]=new ke(this)}get[we](){return this[Re]}get[ye](){return this[Oe].filter((R=>R[ye])).length}get[Ce](){return this[Oe].filter((R=>R[ye]&&!R[Re])).length}get[be](){let R=this[Ee];for(const{[be]:pe}of this[Oe]){R+=pe}return R}get[ve](){let R=0;for(const{[ve]:pe}of this[Oe]){R+=pe}return R}get[me](){let R=this[Ee];for(const{[me]:pe}of this[Oe]){R+=pe}return R}get stats(){return this[Le]}async[Ie](){if(this[Qe].isEmpty()){return Promise.all(this[Oe].map((R=>R.close())))}else{return new Promise((R=>{this[xe]=R}))}}async[Se](R){while(true){const pe=this[Qe].shift();if(!pe){break}pe.handler.onError(R)}return Promise.all(this[Oe].map((pe=>pe.destroy(R))))}[Be](R,pe){const Ae=this[Me]();if(!Ae){this[Re]=true;this[Qe].push({opts:R,handler:pe});this[Ee]++}else if(!Ae.dispatch(R,pe)){Ae[Re]=true;this[Re]=!this[Me]()}return!this[Re]}[je](R){R.on("drain",this[Pe]).on("connect",this[Te]).on("disconnect",this[De]).on("connectionError",this[Ne]);this[Oe].push(R);if(this[Re]){process.nextTick((()=>{if(this[Re]){this[Pe](R[_e],[this,R])}}))}return this}[Fe](R){R.close((()=>{const pe=this[Oe].indexOf(R);if(pe!==-1){this[Oe].splice(pe,1)}}));this[Re]=this[Oe].some((R=>!R[Re]&&R.closed!==true&&R.destroyed!==true))}}R.exports={PoolBase:PoolBase,kClients:Oe,kNeedDrain:Re,kAddClient:je,kRemoveClient:Fe,kGetDispatcher:Me}},39689:(R,pe,Ae)=>{const{kFree:he,kConnected:ge,kPending:ye,kQueued:me,kRunning:ve,kSize:be}=Ae(72785);const Ee=Symbol("pool");class PoolStats{constructor(R){this[Ee]=R}get connected(){return this[Ee][ge]}get free(){return this[Ee][he]}get pending(){return this[Ee][ye]}get queued(){return this[Ee][me]}get running(){return this[Ee][ve]}get size(){return this[Ee][be]}}R.exports=PoolStats},4634:(R,pe,Ae)=>{"use strict";const{PoolBase:he,kClients:ge,kNeedDrain:ye,kAddClient:me,kGetDispatcher:ve}=Ae(73198);const be=Ae(33598);const{InvalidArgumentError:Ee}=Ae(48045);const we=Ae(83983);const{kUrl:Ce,kInterceptors:_e}=Ae(72785);const Ie=Ae(82067);const Se=Symbol("options");const Be=Symbol("connections");const ke=Symbol("factory");function defaultFactory(R,pe){return new be(R,pe)}class Pool extends he{constructor(R,{connections:pe,factory:Ae=defaultFactory,connect:he,connectTimeout:ge,tls:ye,maxCachedSessions:me,socketPath:ve,autoSelectFamily:be,autoSelectFamilyAttemptTimeout:Oe,allowH2:Re,...Qe}={}){super();if(pe!=null&&(!Number.isFinite(pe)||pe<0)){throw new Ee("invalid connections")}if(typeof Ae!=="function"){throw new Ee("factory must be a function.")}if(he!=null&&typeof he!=="function"&&typeof he!=="object"){throw new Ee("connect must be a function or an object")}if(typeof he!=="function"){he=Ie({...ye,maxCachedSessions:me,allowH2:Re,socketPath:ve,timeout:ge,...we.nodeHasAutoSelectFamily&&be?{autoSelectFamily:be,autoSelectFamilyAttemptTimeout:Oe}:undefined,...he})}this[_e]=Qe.interceptors&&Qe.interceptors.Pool&&Array.isArray(Qe.interceptors.Pool)?Qe.interceptors.Pool:[];this[Be]=pe||null;this[Ce]=we.parseOrigin(R);this[Se]={...we.deepClone(Qe),connect:he,allowH2:Re};this[Se].interceptors=Qe.interceptors?{...Qe.interceptors}:undefined;this[ke]=Ae}[ve](){let R=this[ge].find((R=>!R[ye]));if(R){return R}if(!this[Be]||this[ge].length{"use strict";const{kProxy:he,kClose:ge,kDestroy:ye,kInterceptors:me}=Ae(72785);const{URL:ve}=Ae(57310);const be=Ae(7890);const Ee=Ae(4634);const we=Ae(74839);const{InvalidArgumentError:Ce,RequestAbortedError:_e}=Ae(48045);const Ie=Ae(82067);const Se=Symbol("proxy agent");const Be=Symbol("proxy client");const ke=Symbol("proxy headers");const Oe=Symbol("request tls settings");const Re=Symbol("proxy tls settings");const Qe=Symbol("connect endpoint function");function defaultProtocolPort(R){return R==="https:"?443:80}function buildProxyOptions(R){if(typeof R==="string"){R={uri:R}}if(!R||!R.uri){throw new Ce("Proxy opts.uri is mandatory")}return{uri:R.uri,protocol:R.protocol||"https"}}function defaultFactory(R,pe){return new Ee(R,pe)}class ProxyAgent extends we{constructor(R){super(R);this[he]=buildProxyOptions(R);this[Se]=new be(R);this[me]=R.interceptors&&R.interceptors.ProxyAgent&&Array.isArray(R.interceptors.ProxyAgent)?R.interceptors.ProxyAgent:[];if(typeof R==="string"){R={uri:R}}if(!R||!R.uri){throw new Ce("Proxy opts.uri is mandatory")}const{clientFactory:pe=defaultFactory}=R;if(typeof pe!=="function"){throw new Ce("Proxy opts.clientFactory must be a function.")}this[Oe]=R.requestTls;this[Re]=R.proxyTls;this[ke]=R.headers||{};const Ae=new ve(R.uri);const{origin:ge,port:ye,host:Ee,username:we,password:xe}=Ae;if(R.auth&&R.token){throw new Ce("opts.auth cannot be used in combination with opts.token")}else if(R.auth){this[ke]["proxy-authorization"]=`Basic ${R.auth}`}else if(R.token){this[ke]["proxy-authorization"]=R.token}else if(we&&xe){this[ke]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(we)}:${decodeURIComponent(xe)}`).toString("base64")}`}const Pe=Ie({...R.proxyTls});this[Qe]=Ie({...R.requestTls});this[Be]=pe(Ae,{connect:Pe});this[Se]=new be({...R,connect:async(R,pe)=>{let Ae=R.host;if(!R.port){Ae+=`:${defaultProtocolPort(R.protocol)}`}try{const{socket:he,statusCode:me}=await this[Be].connect({origin:ge,port:ye,path:Ae,signal:R.signal,headers:{...this[ke],host:Ee}});if(me!==200){he.on("error",(()=>{})).destroy();pe(new _e(`Proxy response (${me}) !== 200 when HTTP Tunneling`))}if(R.protocol!=="https:"){pe(null,he);return}let ve;if(this[Oe]){ve=this[Oe].servername}else{ve=R.servername}this[Qe]({...R,servername:ve,httpSocket:he},pe)}catch(R){pe(R)}}})}dispatch(R,pe){const{host:Ae}=new ve(R.origin);const he=buildHeaders(R.headers);throwIfProxyAuthIsSent(he);return this[Se].dispatch({...R,headers:{...he,host:Ae}},pe)}async[ge](){await this[Se].close();await this[Be].close()}async[ye](){await this[Se].destroy();await this[Be].destroy()}}function buildHeaders(R){if(Array.isArray(R)){const pe={};for(let Ae=0;AeR.toLowerCase()==="proxy-authorization"));if(pe){throw new Ce("Proxy-Authorization should be sent in ProxyAgent constructor")}}R.exports=ProxyAgent},29459:R=>{"use strict";let pe=Date.now();let Ae;const he=[];function onTimeout(){pe=Date.now();let R=he.length;let Ae=0;while(Ae0&&pe>=ge.state){ge.state=-1;ge.callback(ge.opaque)}if(ge.state===-1){ge.state=-2;if(Ae!==R-1){he[Ae]=he.pop()}else{he.pop()}R-=1}else{Ae+=1}}if(he.length>0){refreshTimeout()}}function refreshTimeout(){if(Ae&&Ae.refresh){Ae.refresh()}else{clearTimeout(Ae);Ae=setTimeout(onTimeout,1e3);if(Ae.unref){Ae.unref()}}}class Timeout{constructor(R,pe,Ae){this.callback=R;this.delay=pe;this.opaque=Ae;this.state=-2;this.refresh()}refresh(){if(this.state===-2){he.push(this);if(!Ae||he.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}R.exports={setTimeout(R,pe,Ae){return pe<1e3?setTimeout(R,pe,Ae):new Timeout(R,pe,Ae)},clearTimeout(R){if(R instanceof Timeout){R.clear()}else{clearTimeout(R)}}}},35354:(R,pe,Ae)=>{"use strict";const he=Ae(67643);const{uid:ge,states:ye}=Ae(19188);const{kReadyState:me,kSentClose:ve,kByteParser:be,kReceivedClose:Ee}=Ae(37578);const{fireEvent:we,failWebsocketConnection:Ce}=Ae(25515);const{CloseEvent:_e}=Ae(52611);const{makeRequest:Ie}=Ae(48359);const{fetching:Se}=Ae(74881);const{Headers:Be}=Ae(10554);const{getGlobalDispatcher:ke}=Ae(21892);const{kHeadersList:Oe}=Ae(72785);const Re={};Re.open=he.channel("undici:websocket:open");Re.close=he.channel("undici:websocket:close");Re.socketError=he.channel("undici:websocket:socket_error");let Qe;try{Qe=Ae(6113)}catch{}function establishWebSocketConnection(R,pe,Ae,he,ye){const me=R;me.protocol=R.protocol==="ws:"?"http:":"https:";const ve=Ie({urlList:[me],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(ye.headers){const R=new Be(ye.headers)[Oe];ve.headersList=R}const be=Qe.randomBytes(16).toString("base64");ve.headersList.append("sec-websocket-key",be);ve.headersList.append("sec-websocket-version","13");for(const R of pe){ve.headersList.append("sec-websocket-protocol",R)}const Ee="";const we=Se({request:ve,useParallelQueue:true,dispatcher:ye.dispatcher??ke(),processResponse(R){if(R.type==="error"||R.status!==101){Ce(Ae,"Received network error or non-101 status code.");return}if(pe.length!==0&&!R.headersList.get("Sec-WebSocket-Protocol")){Ce(Ae,"Server did not respond with sent protocols.");return}if(R.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){Ce(Ae,'Server did not set Upgrade header to "websocket".');return}if(R.headersList.get("Connection")?.toLowerCase()!=="upgrade"){Ce(Ae,'Server did not set Connection header to "upgrade".');return}const ye=R.headersList.get("Sec-WebSocket-Accept");const me=Qe.createHash("sha1").update(be+ge).digest("base64");if(ye!==me){Ce(Ae,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const we=R.headersList.get("Sec-WebSocket-Extensions");if(we!==null&&we!==Ee){Ce(Ae,"Received different permessage-deflate than the one set.");return}const _e=R.headersList.get("Sec-WebSocket-Protocol");if(_e!==null&&_e!==ve.headersList.get("Sec-WebSocket-Protocol")){Ce(Ae,"Protocol was not set in the opening handshake.");return}R.socket.on("data",onSocketData);R.socket.on("close",onSocketClose);R.socket.on("error",onSocketError);if(Re.open.hasSubscribers){Re.open.publish({address:R.socket.address(),protocol:_e,extensions:we})}he(R)}});return we}function onSocketData(R){if(!this.ws[be].write(R)){this.pause()}}function onSocketClose(){const{ws:R}=this;const pe=R[ve]&&R[Ee];let Ae=1005;let he="";const ge=R[be].closingInfo;if(ge){Ae=ge.code??1005;he=ge.reason}else if(!R[ve]){Ae=1006}R[me]=ye.CLOSED;we("close",R,_e,{wasClean:pe,code:Ae,reason:he});if(Re.close.hasSubscribers){Re.close.publish({websocket:R,code:Ae,reason:he})}}function onSocketError(R){const{ws:pe}=this;pe[me]=ye.CLOSING;if(Re.socketError.hasSubscribers){Re.socketError.publish(R)}this.destroy()}R.exports={establishWebSocketConnection:establishWebSocketConnection}},19188:R=>{"use strict";const pe="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const Ae={enumerable:true,writable:false,configurable:false};const he={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const ge={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const ye=2**16-1;const me={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const ve=Buffer.allocUnsafe(0);R.exports={uid:pe,staticPropertyDescriptors:Ae,states:he,opcodes:ge,maxUnsigned16Bit:ye,parserStates:me,emptyBuffer:ve}},52611:(R,pe,Ae)=>{"use strict";const{webidl:he}=Ae(21744);const{kEnumerableProperty:ge}=Ae(83983);const{MessagePort:ye}=Ae(71267);class MessageEvent extends Event{#o;constructor(R,pe={}){he.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});R=he.converters.DOMString(R);pe=he.converters.MessageEventInit(pe);super(R,pe);this.#o=pe}get data(){he.brandCheck(this,MessageEvent);return this.#o.data}get origin(){he.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){he.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){he.brandCheck(this,MessageEvent);return this.#o.source}get ports(){he.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(R,pe=false,Ae=false,ge=null,ye="",me="",ve=null,be=[]){he.brandCheck(this,MessageEvent);he.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(R,{bubbles:pe,cancelable:Ae,data:ge,origin:ye,lastEventId:me,source:ve,ports:be})}}class CloseEvent extends Event{#o;constructor(R,pe={}){he.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});R=he.converters.DOMString(R);pe=he.converters.CloseEventInit(pe);super(R,pe);this.#o=pe}get wasClean(){he.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){he.brandCheck(this,CloseEvent);return this.#o.code}get reason(){he.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(R,pe){he.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(R,pe);R=he.converters.DOMString(R);pe=he.converters.ErrorEventInit(pe??{});this.#o=pe}get message(){he.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){he.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){he.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){he.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){he.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:ge,origin:ge,lastEventId:ge,source:ge,ports:ge,initMessageEvent:ge});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:ge,code:ge,wasClean:ge});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:ge,filename:ge,lineno:ge,colno:ge,error:ge});he.converters.MessagePort=he.interfaceConverter(ye);he.converters["sequence"]=he.sequenceConverter(he.converters.MessagePort);const me=[{key:"bubbles",converter:he.converters.boolean,defaultValue:false},{key:"cancelable",converter:he.converters.boolean,defaultValue:false},{key:"composed",converter:he.converters.boolean,defaultValue:false}];he.converters.MessageEventInit=he.dictionaryConverter([...me,{key:"data",converter:he.converters.any,defaultValue:null},{key:"origin",converter:he.converters.USVString,defaultValue:""},{key:"lastEventId",converter:he.converters.DOMString,defaultValue:""},{key:"source",converter:he.nullableConverter(he.converters.MessagePort),defaultValue:null},{key:"ports",converter:he.converters["sequence"],get defaultValue(){return[]}}]);he.converters.CloseEventInit=he.dictionaryConverter([...me,{key:"wasClean",converter:he.converters.boolean,defaultValue:false},{key:"code",converter:he.converters["unsigned short"],defaultValue:0},{key:"reason",converter:he.converters.USVString,defaultValue:""}]);he.converters.ErrorEventInit=he.dictionaryConverter([...me,{key:"message",converter:he.converters.DOMString,defaultValue:""},{key:"filename",converter:he.converters.USVString,defaultValue:""},{key:"lineno",converter:he.converters["unsigned long"],defaultValue:0},{key:"colno",converter:he.converters["unsigned long"],defaultValue:0},{key:"error",converter:he.converters.any}]);R.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},25444:(R,pe,Ae)=>{"use strict";const{maxUnsigned16Bit:he}=Ae(19188);let ge;try{ge=Ae(6113)}catch{}class WebsocketFrameSend{constructor(R){this.frameData=R;this.maskKey=ge.randomBytes(4)}createFrame(R){const pe=this.frameData?.byteLength??0;let Ae=pe;let ge=6;if(pe>he){ge+=8;Ae=127}else if(pe>125){ge+=2;Ae=126}const ye=Buffer.allocUnsafe(pe+ge);ye[0]=ye[1]=0;ye[0]|=128;ye[0]=(ye[0]&240)+R; +/*! ws. MIT License. Einar Otto Stangvik */ye[ge-4]=this.maskKey[0];ye[ge-3]=this.maskKey[1];ye[ge-2]=this.maskKey[2];ye[ge-1]=this.maskKey[3];ye[1]=Ae;if(Ae===126){ye.writeUInt16BE(pe,2)}else if(Ae===127){ye[2]=ye[3]=0;ye.writeUIntBE(pe,4,6)}ye[1]|=128;for(let R=0;R{"use strict";const{Writable:he}=Ae(12781);const ge=Ae(67643);const{parserStates:ye,opcodes:me,states:ve,emptyBuffer:be}=Ae(19188);const{kReadyState:Ee,kSentClose:we,kResponse:Ce,kReceivedClose:_e}=Ae(37578);const{isValidStatusCode:Ie,failWebsocketConnection:Se,websocketMessageReceived:Be}=Ae(25515);const{WebsocketFrameSend:ke}=Ae(25444);const Oe={};Oe.ping=ge.channel("undici:websocket:ping");Oe.pong=ge.channel("undici:websocket:pong");class ByteParser extends he{#s=[];#a=0;#c=ye.INFO;#u={};#l=[];constructor(R){super();this.ws=R}_write(R,pe,Ae){this.#s.push(R);this.#a+=R.length;this.run(Ae)}run(R){while(true){if(this.#c===ye.INFO){if(this.#a<2){return R()}const pe=this.consume(2);this.#u.fin=(pe[0]&128)!==0;this.#u.opcode=pe[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==me.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==me.BINARY&&this.#u.opcode!==me.TEXT){Se(this.ws,"Invalid frame type was fragmented.");return}const Ae=pe[1]&127;if(Ae<=125){this.#u.payloadLength=Ae;this.#c=ye.READ_DATA}else if(Ae===126){this.#c=ye.PAYLOADLENGTH_16}else if(Ae===127){this.#c=ye.PAYLOADLENGTH_64}if(this.#u.fragmented&&Ae>125){Se(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===me.PING||this.#u.opcode===me.PONG||this.#u.opcode===me.CLOSE)&&Ae>125){Se(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===me.CLOSE){if(Ae===1){Se(this.ws,"Received close frame with a 1-byte body.");return}const R=this.consume(Ae);this.#u.closeInfo=this.parseCloseBody(false,R);if(!this.ws[we]){const R=Buffer.allocUnsafe(2);R.writeUInt16BE(this.#u.closeInfo.code,0);const pe=new ke(R);this.ws[Ce].socket.write(pe.createFrame(me.CLOSE),(R=>{if(!R){this.ws[we]=true}}))}this.ws[Ee]=ve.CLOSING;this.ws[_e]=true;this.end();return}else if(this.#u.opcode===me.PING){const pe=this.consume(Ae);if(!this.ws[_e]){const R=new ke(pe);this.ws[Ce].socket.write(R.createFrame(me.PONG));if(Oe.ping.hasSubscribers){Oe.ping.publish({payload:pe})}}this.#c=ye.INFO;if(this.#a>0){continue}else{R();return}}else if(this.#u.opcode===me.PONG){const pe=this.consume(Ae);if(Oe.pong.hasSubscribers){Oe.pong.publish({payload:pe})}if(this.#a>0){continue}else{R();return}}}else if(this.#c===ye.PAYLOADLENGTH_16){if(this.#a<2){return R()}const pe=this.consume(2);this.#u.payloadLength=pe.readUInt16BE(0);this.#c=ye.READ_DATA}else if(this.#c===ye.PAYLOADLENGTH_64){if(this.#a<8){return R()}const pe=this.consume(8);const Ae=pe.readUInt32BE(0);if(Ae>2**31-1){Se(this.ws,"Received payload length > 2^31 bytes.");return}const he=pe.readUInt32BE(4);this.#u.payloadLength=(Ae<<8)+he;this.#c=ye.READ_DATA}else if(this.#c===ye.READ_DATA){if(this.#a=this.#u.payloadLength){const R=this.consume(this.#u.payloadLength);this.#l.push(R);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===me.CONTINUATION){const R=Buffer.concat(this.#l);Be(this.ws,this.#u.originalOpcode,R);this.#u={};this.#l.length=0}this.#c=ye.INFO}}if(this.#a>0){continue}else{R();break}}}consume(R){if(R>this.#a){return null}else if(R===0){return be}if(this.#s[0].length===R){this.#a-=this.#s[0].length;return this.#s.shift()}const pe=Buffer.allocUnsafe(R);let Ae=0;while(Ae!==R){const he=this.#s[0];const{length:ge}=he;if(ge+Ae===R){pe.set(this.#s.shift(),Ae);break}else if(ge+Ae>R){pe.set(he.subarray(0,R-Ae),Ae);this.#s[0]=he.subarray(R-Ae);break}else{pe.set(this.#s.shift(),Ae);Ae+=he.length}}this.#a-=R;return pe}parseCloseBody(R,pe){let Ae;if(pe.length>=2){Ae=pe.readUInt16BE(0)}if(R){if(!Ie(Ae)){return null}return{code:Ae}}let he=pe.subarray(2);if(he[0]===239&&he[1]===187&&he[2]===191){he=he.subarray(3)}if(Ae!==undefined&&!Ie(Ae)){return null}try{he=new TextDecoder("utf-8",{fatal:true}).decode(he)}catch{return null}return{code:Ae,reason:he}}get closingInfo(){return this.#u.closeInfo}}R.exports={ByteParser:ByteParser}},37578:R=>{"use strict";R.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")}},25515:(R,pe,Ae)=>{"use strict";const{kReadyState:he,kController:ge,kResponse:ye,kBinaryType:me,kWebSocketURL:ve}=Ae(37578);const{states:be,opcodes:Ee}=Ae(19188);const{MessageEvent:we,ErrorEvent:Ce}=Ae(52611);function isEstablished(R){return R[he]===be.OPEN}function isClosing(R){return R[he]===be.CLOSING}function isClosed(R){return R[he]===be.CLOSED}function fireEvent(R,pe,Ae=Event,he){const ge=new Ae(R,he);pe.dispatchEvent(ge)}function websocketMessageReceived(R,pe,Ae){if(R[he]!==be.OPEN){return}let ge;if(pe===Ee.TEXT){try{ge=new TextDecoder("utf-8",{fatal:true}).decode(Ae)}catch{failWebsocketConnection(R,"Received invalid UTF-8 in text frame.");return}}else if(pe===Ee.BINARY){if(R[me]==="blob"){ge=new Blob([Ae])}else{ge=new Uint8Array(Ae).buffer}}fireEvent("message",R,we,{origin:R[ve].origin,data:ge})}function isValidSubprotocol(R){if(R.length===0){return false}for(const pe of R){const R=pe.charCodeAt(0);if(R<33||R>126||pe==="("||pe===")"||pe==="<"||pe===">"||pe==="@"||pe===","||pe===";"||pe===":"||pe==="\\"||pe==='"'||pe==="/"||pe==="["||pe==="]"||pe==="?"||pe==="="||pe==="{"||pe==="}"||R===32||R===9){return false}}return true}function isValidStatusCode(R){if(R>=1e3&&R<1015){return R!==1004&&R!==1005&&R!==1006}return R>=3e3&&R<=4999}function failWebsocketConnection(R,pe){const{[ge]:Ae,[ye]:he}=R;Ae.abort();if(he?.socket&&!he.socket.destroyed){he.socket.destroy()}if(pe){fireEvent("error",R,Ce,{error:new Error(pe)})}}R.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},54284:(R,pe,Ae)=>{"use strict";const{webidl:he}=Ae(21744);const{DOMException:ge}=Ae(41037);const{URLSerializer:ye}=Ae(685);const{getGlobalOrigin:me}=Ae(71246);const{staticPropertyDescriptors:ve,states:be,opcodes:Ee,emptyBuffer:we}=Ae(19188);const{kWebSocketURL:Ce,kReadyState:_e,kController:Ie,kBinaryType:Se,kResponse:Be,kSentClose:ke,kByteParser:Oe}=Ae(37578);const{isEstablished:Re,isClosing:Qe,isValidSubprotocol:xe,failWebsocketConnection:Pe,fireEvent:Te}=Ae(25515);const{establishWebSocketConnection:De}=Ae(35354);const{WebsocketFrameSend:Ne}=Ae(25444);const{ByteParser:Me}=Ae(11688);const{kEnumerableProperty:je,isBlobLike:Fe}=Ae(83983);const{getGlobalDispatcher:Le}=Ae(21892);const{types:Ue}=Ae(73837);let He=false;class WebSocket extends EventTarget{#d={open:null,error:null,close:null,message:null};#f=0;#p="";#A="";constructor(R,pe=[]){super();he.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!He){He=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const Ae=he.converters["DOMString or sequence or WebSocketInit"](pe);R=he.converters.USVString(R);pe=Ae.protocols;const ye=me();let ve;try{ve=new URL(R,ye)}catch(R){throw new ge(R,"SyntaxError")}if(ve.protocol==="http:"){ve.protocol="ws:"}else if(ve.protocol==="https:"){ve.protocol="wss:"}if(ve.protocol!=="ws:"&&ve.protocol!=="wss:"){throw new ge(`Expected a ws: or wss: protocol, got ${ve.protocol}`,"SyntaxError")}if(ve.hash||ve.href.endsWith("#")){throw new ge("Got fragment","SyntaxError")}if(typeof pe==="string"){pe=[pe]}if(pe.length!==new Set(pe.map((R=>R.toLowerCase()))).size){throw new ge("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(pe.length>0&&!pe.every((R=>xe(R)))){throw new ge("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[Ce]=new URL(ve.href);this[Ie]=De(ve,pe,this,(R=>this.#h(R)),Ae);this[_e]=WebSocket.CONNECTING;this[Se]="blob"}close(R=undefined,pe=undefined){he.brandCheck(this,WebSocket);if(R!==undefined){R=he.converters["unsigned short"](R,{clamp:true})}if(pe!==undefined){pe=he.converters.USVString(pe)}if(R!==undefined){if(R!==1e3&&(R<3e3||R>4999)){throw new ge("invalid code","InvalidAccessError")}}let Ae=0;if(pe!==undefined){Ae=Buffer.byteLength(pe);if(Ae>123){throw new ge(`Reason must be less than 123 bytes; received ${Ae}`,"SyntaxError")}}if(this[_e]===WebSocket.CLOSING||this[_e]===WebSocket.CLOSED){}else if(!Re(this)){Pe(this,"Connection was closed before it was established.");this[_e]=WebSocket.CLOSING}else if(!Qe(this)){const he=new Ne;if(R!==undefined&&pe===undefined){he.frameData=Buffer.allocUnsafe(2);he.frameData.writeUInt16BE(R,0)}else if(R!==undefined&&pe!==undefined){he.frameData=Buffer.allocUnsafe(2+Ae);he.frameData.writeUInt16BE(R,0);he.frameData.write(pe,2,"utf-8")}else{he.frameData=we}const ge=this[Be].socket;ge.write(he.createFrame(Ee.CLOSE),(R=>{if(!R){this[ke]=true}}));this[_e]=be.CLOSING}else{this[_e]=WebSocket.CLOSING}}send(R){he.brandCheck(this,WebSocket);he.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});R=he.converters.WebSocketSendData(R);if(this[_e]===WebSocket.CONNECTING){throw new ge("Sent before connected.","InvalidStateError")}if(!Re(this)||Qe(this)){return}const pe=this[Be].socket;if(typeof R==="string"){const Ae=Buffer.from(R);const he=new Ne(Ae);const ge=he.createFrame(Ee.TEXT);this.#f+=Ae.byteLength;pe.write(ge,(()=>{this.#f-=Ae.byteLength}))}else if(Ue.isArrayBuffer(R)){const Ae=Buffer.from(R);const he=new Ne(Ae);const ge=he.createFrame(Ee.BINARY);this.#f+=Ae.byteLength;pe.write(ge,(()=>{this.#f-=Ae.byteLength}))}else if(ArrayBuffer.isView(R)){const Ae=Buffer.from(R,R.byteOffset,R.byteLength);const he=new Ne(Ae);const ge=he.createFrame(Ee.BINARY);this.#f+=Ae.byteLength;pe.write(ge,(()=>{this.#f-=Ae.byteLength}))}else if(Fe(R)){const Ae=new Ne;R.arrayBuffer().then((R=>{const he=Buffer.from(R);Ae.frameData=he;const ge=Ae.createFrame(Ee.BINARY);this.#f+=he.byteLength;pe.write(ge,(()=>{this.#f-=he.byteLength}))}))}}get readyState(){he.brandCheck(this,WebSocket);return this[_e]}get bufferedAmount(){he.brandCheck(this,WebSocket);return this.#f}get url(){he.brandCheck(this,WebSocket);return ye(this[Ce])}get extensions(){he.brandCheck(this,WebSocket);return this.#A}get protocol(){he.brandCheck(this,WebSocket);return this.#p}get onopen(){he.brandCheck(this,WebSocket);return this.#d.open}set onopen(R){he.brandCheck(this,WebSocket);if(this.#d.open){this.removeEventListener("open",this.#d.open)}if(typeof R==="function"){this.#d.open=R;this.addEventListener("open",R)}else{this.#d.open=null}}get onerror(){he.brandCheck(this,WebSocket);return this.#d.error}set onerror(R){he.brandCheck(this,WebSocket);if(this.#d.error){this.removeEventListener("error",this.#d.error)}if(typeof R==="function"){this.#d.error=R;this.addEventListener("error",R)}else{this.#d.error=null}}get onclose(){he.brandCheck(this,WebSocket);return this.#d.close}set onclose(R){he.brandCheck(this,WebSocket);if(this.#d.close){this.removeEventListener("close",this.#d.close)}if(typeof R==="function"){this.#d.close=R;this.addEventListener("close",R)}else{this.#d.close=null}}get onmessage(){he.brandCheck(this,WebSocket);return this.#d.message}set onmessage(R){he.brandCheck(this,WebSocket);if(this.#d.message){this.removeEventListener("message",this.#d.message)}if(typeof R==="function"){this.#d.message=R;this.addEventListener("message",R)}else{this.#d.message=null}}get binaryType(){he.brandCheck(this,WebSocket);return this[Se]}set binaryType(R){he.brandCheck(this,WebSocket);if(R!=="blob"&&R!=="arraybuffer"){this[Se]="blob"}else{this[Se]=R}}#h(R){this[Be]=R;const pe=new Me(this);pe.on("drain",(function onParserDrain(){this.ws[Be].socket.resume()}));R.socket.ws=this;this[Oe]=pe;this[_e]=be.OPEN;const Ae=R.headersList.get("sec-websocket-extensions");if(Ae!==null){this.#A=Ae}const he=R.headersList.get("sec-websocket-protocol");if(he!==null){this.#p=he}Te("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=be.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=be.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=be.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=be.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:ve,OPEN:ve,CLOSING:ve,CLOSED:ve,url:je,readyState:je,bufferedAmount:je,onopen:je,onerror:je,onclose:je,close:je,onmessage:je,binaryType:je,send:je,extensions:je,protocol:je,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:ve,OPEN:ve,CLOSING:ve,CLOSED:ve});he.converters["sequence"]=he.sequenceConverter(he.converters.DOMString);he.converters["DOMString or sequence"]=function(R){if(he.util.Type(R)==="Object"&&Symbol.iterator in R){return he.converters["sequence"](R)}return he.converters.DOMString(R)};he.converters.WebSocketInit=he.dictionaryConverter([{key:"protocols",converter:he.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:R=>R,get defaultValue(){return Le()}},{key:"headers",converter:he.nullableConverter(he.converters.HeadersInit)}]);he.converters["DOMString or sequence or WebSocketInit"]=function(R){if(he.util.Type(R)==="Object"&&!(Symbol.iterator in R)){return he.converters.WebSocketInit(R)}return{protocols:he.converters["DOMString or sequence"](R)}};he.converters.WebSocketSendData=function(R){if(he.util.Type(R)==="Object"){if(Fe(R)){return he.converters.Blob(R,{strict:false})}if(ArrayBuffer.isView(R)||Ue.isAnyArrayBuffer(R)){return he.converters.BufferSource(R)}}return he.converters.USVString(R)};R.exports={WebSocket:WebSocket}},75840:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});Object.defineProperty(pe,"NIL",{enumerable:true,get:function(){return ve.default}});Object.defineProperty(pe,"parse",{enumerable:true,get:function(){return Ce.default}});Object.defineProperty(pe,"stringify",{enumerable:true,get:function(){return we.default}});Object.defineProperty(pe,"v1",{enumerable:true,get:function(){return he.default}});Object.defineProperty(pe,"v3",{enumerable:true,get:function(){return ge.default}});Object.defineProperty(pe,"v4",{enumerable:true,get:function(){return ye.default}});Object.defineProperty(pe,"v5",{enumerable:true,get:function(){return me.default}});Object.defineProperty(pe,"validate",{enumerable:true,get:function(){return Ee.default}});Object.defineProperty(pe,"version",{enumerable:true,get:function(){return be.default}});var he=_interopRequireDefault(Ae(78628));var ge=_interopRequireDefault(Ae(86409));var ye=_interopRequireDefault(Ae(85122));var me=_interopRequireDefault(Ae(79120));var ve=_interopRequireDefault(Ae(25332));var be=_interopRequireDefault(Ae(32414));var Ee=_interopRequireDefault(Ae(66900));var we=_interopRequireDefault(Ae(18950));var Ce=_interopRequireDefault(Ae(62746));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}},4569:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function md5(R){if(Array.isArray(R)){R=Buffer.from(R)}else if(typeof R==="string"){R=Buffer.from(R,"utf8")}return he.default.createHash("md5").update(R).digest()}var ge=md5;pe["default"]=ge},82054:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}var ge={randomUUID:he.default.randomUUID};pe["default"]=ge},25332:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var Ae="00000000-0000-0000-0000-000000000000";pe["default"]=Ae},62746:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(66900));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function parse(R){if(!(0,he.default)(R)){throw TypeError("Invalid UUID")}let pe;const Ae=new Uint8Array(16);Ae[0]=(pe=parseInt(R.slice(0,8),16))>>>24;Ae[1]=pe>>>16&255;Ae[2]=pe>>>8&255;Ae[3]=pe&255;Ae[4]=(pe=parseInt(R.slice(9,13),16))>>>8;Ae[5]=pe&255;Ae[6]=(pe=parseInt(R.slice(14,18),16))>>>8;Ae[7]=pe&255;Ae[8]=(pe=parseInt(R.slice(19,23),16))>>>8;Ae[9]=pe&255;Ae[10]=(pe=parseInt(R.slice(24,36),16))/1099511627776&255;Ae[11]=pe/4294967296&255;Ae[12]=pe>>>24&255;Ae[13]=pe>>>16&255;Ae[14]=pe>>>8&255;Ae[15]=pe&255;return Ae}var ge=parse;pe["default"]=ge},40814:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var Ae=/^(?:[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;pe["default"]=Ae},50807:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=rng;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ge=new Uint8Array(256);let ye=ge.length;function rng(){if(ye>ge.length-16){he.default.randomFillSync(ge);ye=0}return ge.slice(ye,ye+=16)}},85274:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(6113));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function sha1(R){if(Array.isArray(R)){R=Buffer.from(R)}else if(typeof R==="string"){R=Buffer.from(R,"utf8")}return he.default.createHash("sha1").update(R).digest()}var ge=sha1;pe["default"]=ge},18950:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;pe.unsafeStringify=unsafeStringify;var he=_interopRequireDefault(Ae(66900));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ge=[];for(let R=0;R<256;++R){ge.push((R+256).toString(16).slice(1))}function unsafeStringify(R,pe=0){return ge[R[pe+0]]+ge[R[pe+1]]+ge[R[pe+2]]+ge[R[pe+3]]+"-"+ge[R[pe+4]]+ge[R[pe+5]]+"-"+ge[R[pe+6]]+ge[R[pe+7]]+"-"+ge[R[pe+8]]+ge[R[pe+9]]+"-"+ge[R[pe+10]]+ge[R[pe+11]]+ge[R[pe+12]]+ge[R[pe+13]]+ge[R[pe+14]]+ge[R[pe+15]]}function stringify(R,pe=0){const Ae=unsafeStringify(R,pe);if(!(0,he.default)(Ae)){throw TypeError("Stringified UUID is invalid")}return Ae}var ye=stringify;pe["default"]=ye},78628:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(50807));var ge=Ae(18950);function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}let ye;let me;let ve=0;let be=0;function v1(R,pe,Ae){let Ee=pe&&Ae||0;const we=pe||new Array(16);R=R||{};let Ce=R.node||ye;let _e=R.clockseq!==undefined?R.clockseq:me;if(Ce==null||_e==null){const pe=R.random||(R.rng||he.default)();if(Ce==null){Ce=ye=[pe[0]|1,pe[1],pe[2],pe[3],pe[4],pe[5]]}if(_e==null){_e=me=(pe[6]<<8|pe[7])&16383}}let Ie=R.msecs!==undefined?R.msecs:Date.now();let Se=R.nsecs!==undefined?R.nsecs:be+1;const Be=Ie-ve+(Se-be)/1e4;if(Be<0&&R.clockseq===undefined){_e=_e+1&16383}if((Be<0||Ie>ve)&&R.nsecs===undefined){Se=0}if(Se>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}ve=Ie;be=Se;me=_e;Ie+=122192928e5;const ke=((Ie&268435455)*1e4+Se)%4294967296;we[Ee++]=ke>>>24&255;we[Ee++]=ke>>>16&255;we[Ee++]=ke>>>8&255;we[Ee++]=ke&255;const Oe=Ie/4294967296*1e4&268435455;we[Ee++]=Oe>>>8&255;we[Ee++]=Oe&255;we[Ee++]=Oe>>>24&15|16;we[Ee++]=Oe>>>16&255;we[Ee++]=_e>>>8|128;we[Ee++]=_e&255;for(let R=0;R<6;++R){we[Ee+R]=Ce[R]}return pe||(0,ge.unsafeStringify)(we)}var Ee=v1;pe["default"]=Ee},86409:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(65998));var ge=_interopRequireDefault(Ae(4569));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ye=(0,he.default)("v3",48,ge.default);var me=ye;pe["default"]=me},65998:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.URL=pe.DNS=void 0;pe["default"]=v35;var he=Ae(18950);var ge=_interopRequireDefault(Ae(62746));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function stringToBytes(R){R=unescape(encodeURIComponent(R));const pe=[];for(let Ae=0;Ae{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(82054));var ge=_interopRequireDefault(Ae(50807));var ye=Ae(18950);function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function v4(R,pe,Ae){if(he.default.randomUUID&&!pe&&!R){return he.default.randomUUID()}R=R||{};const me=R.random||(R.rng||ge.default)();me[6]=me[6]&15|64;me[8]=me[8]&63|128;if(pe){Ae=Ae||0;for(let R=0;R<16;++R){pe[Ae+R]=me[R]}return pe}return(0,ye.unsafeStringify)(me)}var me=v4;pe["default"]=me},79120:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(65998));var ge=_interopRequireDefault(Ae(85274));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}const ye=(0,he.default)("v5",80,ge.default);var me=ye;pe["default"]=me},66900:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(40814));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function validate(R){return typeof R==="string"&&he.default.test(R)}var ge=validate;pe["default"]=ge},32414:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe["default"]=void 0;var he=_interopRequireDefault(Ae(66900));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function version(R){if(!(0,he.default)(R)){throw TypeError("Invalid UUID")}return parseInt(R.slice(14,15),16)}var ge=version;pe["default"]=ge},67627:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.args=void 0;const he=Ae(47261);const ge=Ae(42186);const ye=Ae(78571);const args=R=>{const pe=/"[^"]+"|'[^']+'|\S+/g;if(ye.env.github()&&!ye.env.mock()){R=(0,ge.getInput)("transmute")}return(0,he.parseArgs)({allowPositionals:true,args:R.match(pe)||[],options:{verbose:{type:"boolean",short:"v"},detached:{type:"boolean",short:"d"},compact:{type:"boolean",short:"c"},output:{type:"string",short:"o"},push:{type:"boolean"},env:{type:"string"},"credential-type":{type:"string"},"presentation-type":{type:"string"},"graph-type":{type:"string"},iss:{type:"string"},sub:{type:"string"},kid:{type:"string"},alg:{type:"string"},enc:{type:"string"},crv:{type:"string"},log:{type:"string"}}})};pe.args=args},78571:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.env=void 0;const github=()=>!!process.env.GITHUB_ACTION;const mock=()=>process.env.GITHUB_ACTION==="jest-mock";pe.env={github:github,mock:mock}},94700:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.facade=void 0;const he=Ae(42186);const ge=Ae(67627);const ye=Ae(14452);const me=Ae(78571);async function facade(R=process.argv.slice(2).join(" ")){try{await(0,ye.handler)((0,ge.args)(R))}catch(R){const pe="💀 Internal Error.";if(me.env.github()&&!me.env.mock()){(0,he.setFailed)(pe)}else{console.error(R)}}}pe.facade=facade},14452:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=void 0;const me=ye(Ae(95370));const ve=ye(Ae(15314));const be=ye(Ae(38600));const Ee=ye(Ae(1340));const we=ye(Ae(86117));const Ce={jose:me,cose:ve,scitt:be,vcwg:Ee,graph:we};const handler=async R=>{const[pe]=R.positionals;if(Ce[pe]){await Ce[pe].handler(R)}else{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}};pe.handler=handler},37875:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(78571),pe);ge(Ae(94700),pe);ge(Ae(14452),pe)},65841:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=void 0;const ve=me(Ae(57147));const be=ye(Ae(88844));const Ee=ye(Ae(67585));const we=Ae(42186);const Ce=Ae(37875);const handler=async function({positionals:R,values:pe}){R=R.slice(1);const Ae=R.shift();switch(Ae){case"keygen":{const R=pe.output;const Ae=pe.alg||"ES256";const he=pe.verbose||false;const ge=await be.key.generate(Ae,"application/cose-key");const ye=ge.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(ge);if(he){const R=`🔑 ${Buffer.from(ye).toString("hex")}`;(0,we.debug)(R)}if(R){ve.default.writeFileSync(R,be.cbor.encode(ge))}const me=Buffer.from(be.cbor.encode(ge));if(Ce.env.github()){const R=ge.get(-4);if(R){(0,we.setSecret)(Buffer.from(R).toString("hex"))}(0,we.setOutput)("cbor",me.toString("hex"))}else{const R=await be.cbor.diagnose(me);console.log(R)}break}case"keypub":{const Ae=pe.output;const he=pe.verbose||false;const[ge]=R;const ye=be.cbor.decode(ve.default.readFileSync(ge));if(Ce.env.github()){if(ye.get(-4)){(0,we.setSecret)(ye.get(-4))}}const me=be.key.extractPublicCoseKey(ye);const Ee=me.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(me);if(he){const R=`🔑 ${Buffer.from(Ee).toString("hex")}`;(0,we.debug)(R)}const _e=be.cbor.encode(me);if(Ae){ve.default.writeFileSync(Ae,_e)}if(Ce.env.github()){(0,we.setOutput)("cbor",Buffer.from(_e).toString("hex"))}else{const R=await be.cbor.diagnose(_e);console.log(R)}break}case"sign":{const Ae=pe.output;const he=pe.detached||false;const ge=pe.verbose||false;const[ye,me]=R;const _e=be.cbor.decode(ve.default.readFileSync(ye));const Ie=_e.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(_e);if(ge){const R=`🔑 ${Buffer.from(Ie).toString("hex")}`;(0,we.debug)(R)}if(Ce.env.github()){if(_e.get(-4)){(0,we.setSecret)(Buffer.from(_e.get(-4)).toString("hex"))}}let Se=pe.alg;if(_e.get(3)){Se=be.IANACOSEAlgorithms[`${_e.get(3)}`].Name}if(!Se){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Be=ve.default.readFileSync(me);let ke;if(he){const R=be.detached.signer({remote:be.crypto.signer({privateKeyJwk:await be.key.convertCoseKeyToJsonWebKey(_e)})});ke=await R.sign({protectedHeader:be.ProtectedHeader([[be.Protected.Alg,_e.get(3)]]),unprotectedHeader:new Map,payload:Be})}else{const R=be.attached.signer({remote:be.crypto.signer({privateKeyJwk:await be.key.convertCoseKeyToJsonWebKey(_e)})});ke=await R.sign({protectedHeader:be.ProtectedHeader([[be.Protected.Alg,_e.get(3)]]),unprotectedHeader:new Map,payload:Be})}if(Ae){ve.default.writeFileSync(Ae,Buffer.from(ke))}if(Ce.env.github()){(0,we.setOutput)("cbor",Buffer.from(ke).toString("hex"))}else{const R=await Ee.render(Buffer.from(ke),"application/cbor-diagnostic");console.log(R)}break}case"verify":{const Ae=pe.output;const he=pe.verbose||false;const ge=pe.detached||false;const[ye,me,_e]=R;const Ie=be.cbor.decode(ve.default.readFileSync(ye));const Se=Ie.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(Ie);if(he){const R=`🔑 ${Buffer.from(Se).toString("hex")}`;(0,we.debug)(R)}if(Ce.env.github()){if(Ie.get(-4)){(0,we.setSecret)(Buffer.from(Ie.get(-4)).toString("hex"))}}let Be=pe.alg;if(Ie.get(3)){Be=be.IANACOSEAlgorithms[`${Ie.get(3)}`].Name}if(!Be){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}const ke=ve.default.readFileSync(me);let Oe;if(ge){const R=be.detached.verifier({resolver:{resolve:async()=>be.key.convertCoseKeyToJsonWebKey(Ie)}});Oe=await R.verify({payload:ve.default.readFileSync(_e),coseSign1:ke})}else{const R=be.attached.verifier({resolver:{resolve:async()=>be.key.convertCoseKeyToJsonWebKey(Ie)}});Oe=await R.verify({coseSign1:ke})}if(Ae){ve.default.writeFileSync(Ae,Buffer.from(Oe))}if(Ce.env.github()){(0,we.setOutput)("cbor",Buffer.from(Oe).toString("hex"))}else{const R=await Ee.render(Buffer.from(ke),"application/cbor-diagnostic");console.log(R)}break}default:{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}}};pe.handler=handler},15314:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(65841),pe)},38704:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.collate=void 0;const he=Ae(88844);const collate=async(R,pe="application/cose",Ae="application/vnd.jgf+json")=>{const ge=he.cbor.decode(R);if(ge.tag!==18){throw new Error("Only cose-sign1 / tag 18 is supported.")}const ye=`data:${pe};base64,${Buffer.from(R).toString("base64")}`;const me=he.cbor.decode(ge.value[0]);const ve=ge.value[2].toString("hex");const be=me.get(1);const Ee=me.get(-6800);const we={};const Ce=[];const _e={id:ye,hash_value:ve,hash_algorithm:Ee,signature_algorithm:be,content_type:["application/cose"],labels:["scitt-transparent-statement"]};we[_e.id]=_e;(ge.value[1].get(394)||[]).map((R=>{const Ae=he.cbor.decode(R);const ge=he.cbor.decode(Ae.value[0]);const ye=ge.get(1);const me=ge.get(395);const ve=Ae.value[1].get(396).get(-1)?"inclusion":"consistency";const be=`data:${pe};base64,${Buffer.from(R).toString("base64")}`;const Ee={id:be,signature_algorithm:ye,transparency_algorithm:me,labels:["scitt-receipt"]};we[Ee.id]=Ee;const Ie={source:be,label:`${ve}-receipt`,target:_e.id};Ce.push(Ie)}));return{nodes:we,edges:Ce}};pe.collate=collate},45493:(R,pe)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.annotate=void 0;const getLabelFromIri=R=>R.split("/").pop().split("#").pop();const Ae=["https://www.w3.org/2018/credentials#verifiableCredential"];const addLabelsFromEdge=(R,pe,Ae,he)=>{const ge=R.edges.filter((R=>R.label===Ae));ge.forEach((Ae=>{const ge=R.nodes[Ae[pe]];ge.labels=ge.labels.filter((R=>R!=="Node"));const ye=Ae[he];ge.labels.push(ye)}))};const removeRdfTypes=R=>{const pe=R.edges.filter((R=>R.label==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"));pe.forEach((pe=>{const Ae=R.nodes[pe.source];Ae.labels=Ae.labels.filter((R=>R!=="Node"));Ae.labels.push(pe.target);delete R.nodes[pe.target];const he=R.edges.findIndex((R=>JSON.stringify(R)===JSON.stringify(pe)));R.edges.splice(he,1)}))};const readableEdges=R=>{R.edges=R.edges.map((R=>({...R,label:getLabelFromIri(R.label),predicate:R.label})))};const addVCDMVocab=R=>{R.edges.forEach((pe=>{if(pe.label&&pe.label.startsWith("https://www.w3.org/2018/credentials")){if(!Ae.includes(pe.label)){addLabelsFromEdge(R,"target",pe.label,"label")}}if(pe.label&&pe.label.startsWith("https://www.w3.org/ns/credentials/examples")){if(!Ae.includes(pe.label)){addLabelsFromEdge(R,"target",pe.label,"label")}}if(pe.label&&pe.label.startsWith("https://w3id.org/security")){if(pe.target&&pe.target.startsWith("https://w3id.org/security")){addLabelsFromEdge(R,"target",pe.label,"target")}else{addLabelsFromEdge(R,"target",pe.label,"label")}}}))};const annotate=R=>{addVCDMVocab(R);removeRdfTypes(R);readableEdges(R);return R};pe.annotate=annotate},75593:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.canonize=void 0;const ge=he(Ae(11171));const ye=Ae(43);const me=Ae(54310);const ve=["subject","predicate","object","graph"];const signBlankNodeComponents=async({quad:R,signer:pe})=>{const Ae=JSON.parse(JSON.stringify(R));for(const he of ve){if(R[he].termType==="BlankNode"){Ae[he].value=await pe.sign(R[he].value)}}return Ae};const canonize=async({signer:R,labels:pe,document:Ae,documentLoader:he})=>{if(!(Ae&&typeof Ae==="object")){throw new TypeError('"document" must be an object.')}const ve=await ge.default.canonize(Ae,{algorithm:"URDNA2015",format:"application/n-quads",documentLoader:he,safe:false});const be=ve.split("\n").sort().join("\n");const Ee=await(0,me.remoteBlankNodeSigner)({labels:pe,signer:R});const we=await Promise.all(ye.NQuads.parse(be).map((R=>signBlankNodeComponents({quad:R,signer:Ee}))));return we.sort()};pe.canonize=canonize},81103:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.contexts=void 0;const ge=he(Ae(82817));const ye=he(Ae(67117));const me=he(Ae(67587));const ve=he(Ae(38428));const be=he(Ae(93633));const Ee=he(Ae(53672));const we=he(Ae(44639));const Ce=he(Ae(97129));pe.contexts={"https://www.w3.org/2018/credentials/v1":ge.default,"https://www.w3.org/ns/credentials/v2":ye.default,"https://www.w3.org/ns/credentials/examples/v2":me.default,"https://w3id.org/traceability/v1":ve.default,"https://ref.gs1.org/gs1/vc/license-context":be.default,"https://ref.gs1.org/gs1/vc/declaration-context":Ee.default,"https://ref.gs1.org/gs1/vc/product-context":we.default,"https://jsld.org/default/context/v1":Ce.default}},1835:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.documentLoader=pe.defaultContext=void 0;const he=Ae(81103);pe.defaultContext={"@context":{"@vocab":"https://jsld.org/default#"}};const documentLoader=async R=>{if(he.contexts[R]){return{document:he.contexts[R]}}console.log("Unsupported iri: "+R);return{document:pe.defaultContext}};pe.documentLoader=documentLoader},19711:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.push=pe.driver=void 0;const ge=he(Ae(42934));const ye=Ae(42186);const driver=()=>{const R=ge.default.driver(`${process.env.NEO4J_URI||(0,ye.getInput)("neo4j-uri")}`,ge.default.auth.basic(`${process.env.NEO4J_USERNAME||(0,ye.getInput)("neo4j-user")}`,`${process.env.NEO4J_PASSWORD||(0,ye.getInput)("neo4j-password")}`));return R};pe.driver=driver;const push=async(R,pe)=>{await R.run({text:`${pe.query}`,parameters:pe.params})};pe.push=push},30498:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.injection=pe.query=void 0;const ge=he(Ae(99623));const setParam=(R,pe)=>{const Ae=Object.keys(pe).length;pe[Ae]=R;const he="$"+Ae.toString();if((0,ge.default)(R,ge.default.ISO_8601).isValid()){return`datetime(${he})`}return he};const setProperties=(R,pe,Ae)=>{let he="";if(Object.keys(pe).length>1){const{id:ge,labels:ye,target:me,source:ve,...be}=pe;const Ee=Object.keys(be);const we=[];for(const pe in Ee){const he=Ee[pe];const ge=be[Ee[pe]];we.push(` SET ${R}.\`${he}\`=${setParam(ge,Ae)}`)}he=we.join("\n")+"\n"}return he};const addNodes=(R,pe,Ae)=>{const he={};const ge=Object.values(R.nodes);for(const R in ge){const ye=ge[R];const{id:me,labels:ve}=ye;he[me]=`n${R}`;const be=Array.isArray(ve)?ve.join("`:`"):ve;pe+=`MERGE (n${R}:\`${be}\`{id:${setParam(me,Ae)}}) \n`;pe+=setProperties(`n${R}`,ye,Ae)}return{nodes:he,query:pe,params:Ae}};const addEdges=(R,pe,Ae,he)=>{for(const ge in R.edges){const ye=R.edges[ge];const me=pe[ye.source];const ve=pe[ye.target];const be=ye.label;Ae+=`MERGE (${me})-[e${ge}:\`${be}\`]->(${ve})\n`;Ae+=setProperties(`e${ge}`,ye,he)}return Ae};const removeEmptyLines=R=>R.split("\n").filter((R=>R!=="")).join("\n");const query=async R=>{const pe={};const Ae=addNodes(R,``,pe);Ae.query=addEdges(R,Ae.nodes,Ae.query,pe);Ae.query+=`RETURN ${Object.values(Ae.nodes)}\n`;Ae.query=removeEmptyLines(Ae.query);Ae.query+="\n";Ae.params=pe;return Ae};pe.query=query;const injection=({query:R,params:pe})=>{for(const Ae of Object.keys(pe)){R=R.replace(`$${Ae}`,pe[Ae])}return R};pe.injection=injection},5196:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.hmac=void 0;const ge=he(Ae(6113));const ye=Ae(34061);const me=new Uint8Array(32);me[0]=1;me[31]=1;const key=()=>ge.default.webcrypto.getRandomValues(new Uint8Array(32));const ve={HS256:"sha256"};const signer=async R=>{const pe="HS256";const Ae=ve[pe];if(!Ae){throw new Error("Unsupoorted HMAC")}return{export:(Ae="#hmac")=>{const he={kid:Ae,kty:"oct",alg:pe,use:"sig",key_ops:["sign"],k:ye.base64url.encode(R)};return he},sign:async pe=>{const he=ge.default.createHmac(Ae,R);return new Uint8Array(he.update(pe).digest())}}};pe.hmac={key:key,signer:signer,testKey:me}},33030:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};Object.defineProperty(pe,"__esModule",{value:true});pe.jsongraph=void 0;const me=ye(Ae(34061));const ve=Ae(1835);const be=Ae(45493);const Ee=Ae(75593);const we=Ae(5196);const addGraphNode=({graph:R,id:pe})=>{R.nodes[pe]={...R.nodes[pe]||{id:pe,labels:["Node"]}}};const addGraphNodeProperty=(R,pe,Ae,he)=>{R.nodes[pe]={...R.nodes[pe],[Ae]:he}};const addGraphEdge=({graph:R,source:pe,label:Ae,target:he})=>{R.edges.push(JSON.parse(JSON.stringify({source:pe,label:Ae,target:he})))};const updateGraph=(R,pe)=>{addGraphNode({graph:R,id:pe.subject.value});if(!pe.object.datatype){addGraphNode({graph:R,id:pe.object.value});addGraphEdge({graph:R,source:pe.subject.value,label:pe.predicate.value,target:pe.object.value})}else{addGraphNodeProperty(R,pe.subject.value,pe.predicate.value,pe.object.value)}};const fromNQuads=R=>{const pe={nodes:{},edges:[]};R.forEach((R=>{updateGraph(pe,R)}));return pe};const fromJsonLd=async({document:R,signer:pe})=>{const Ae=await(0,Ee.canonize)({signer:pe,document:R,documentLoader:ve.documentLoader});return fromNQuads(Ae)};const fromCredential=async R=>{const{proof:pe,...Ae}=R;const he=we.hmac.key();const ge=await we.hmac.signer(he);const ye=await fromJsonLd({document:Ae,signer:ge});if(pe!==undefined){const R=Array.isArray(pe)?pe:[pe];await Promise.all(R.map((async R=>{const pe=we.hmac.key();const he=await we.hmac.signer(pe);const ge=await fromJsonLd({document:{"@context":Ae["@context"],...R},signer:he});const me=Object.keys(ye.nodes)[0];const ve=Object.keys(ge.nodes)[0];ye.nodes={...ye.nodes,...ge.nodes};ye.edges=[...ye.edges,{source:ve,label:"https://w3id.org/security#proof",target:me},...ge.edges]})))}return ye};const fromPresentation=async R=>{const{proof:pe,verifiableCredential:Ae,...he}=R;const ge=we.hmac.key();const ye=await we.hmac.signer(ge);const ve=await fromJsonLd({document:he,signer:ye});if(Ae!==undefined){const R=Array.isArray(Ae)?Ae:[Ae];const pe=ve.edges.find((R=>R.target==="https://www.w3.org/2018/credentials#VerifiablePresentation"));await Promise.all(R.map((async R=>{const Ae=Array.isArray(R.type)?R.type:[R.type];let he=undefined;if(Ae.includes("EnvelopedVerifiableCredential")){if(R.id&&R.id.includes("+sd-jwt;")){const pe=R.id.split("+sd-jwt;").pop();const Ae=me.decodeJwt(pe);he=await fromCredential(Ae)}if(R.id&&R.id.includes("+jwt;")){const pe=R.id.split("+jwt;").pop();const Ae=me.decodeJwt(pe);he=await fromCredential(Ae)}}else{he=await fromCredential(R)}const ge=he.edges.find((R=>R.target==="https://www.w3.org/2018/credentials#VerifiableCredential"));const ye=pe.source;const be=ge.source;ve.nodes={...ve.nodes,...he.nodes};ve.edges=[...ve.edges,{source:ye,label:"https://www.w3.org/2018/credentials#verifiableCredential",target:be},...he.edges]})))}if(pe!==undefined){const Ae=Array.isArray(pe)?pe:[pe];await Promise.all(Ae.map((async pe=>{const Ae=we.hmac.key();const he=await we.hmac.signer(Ae);const ge=await fromJsonLd({document:{"@context":R["@context"],...pe},signer:he});const ye=Object.keys(ve.nodes)[0];const me=Object.keys(ge.nodes)[0];ve.nodes={...ve.nodes,...ge.nodes};ve.edges=[...ve.edges,{source:me,label:"https://w3id.org/security#proof",target:ye},...ge.edges]})))}return ve};const graph=async(R,pe)=>{let Ae;const tokenToClaimset=R=>{const[pe,Ae,he]=(new TextDecoder).decode(R).split(".");return JSON.parse((new TextDecoder).decode(me.base64url.decode(Ae)))};switch(pe){case"application/vc":{Ae=await fromCredential(JSON.parse((new TextDecoder).decode(R)));break}case"application/vp":{Ae=await fromPresentation(R);break}case"application/vc-ld+jwt":case"application/vc-ld+sd-jwt":{Ae=await fromCredential(tokenToClaimset(R));break}case"application/vp-ld+jwt":case"application/vp-ld+sd-jwt":{Ae=await fromPresentation(tokenToClaimset(R));break}default:{throw new Error("Cannot compute graph from unsupported content type: "+pe)}}return(0,be.annotate)(Ae)};pe.jsongraph={graph:graph,fromNQuads:fromNQuads,fromCredential:fromCredential,fromPresentation:fromPresentation}},54310:(R,pe,Ae)=>{"use strict";Object.defineProperty(pe,"__esModule",{value:true});pe.remoteBlankNodeSigner=void 0;const he=Ae(34061);const ge=new TextEncoder;const remoteBlankNodeSigner=async({labels:R,signer:pe})=>R?{sign:async pe=>`_:${R.get(pe.slice(2))}`}:{sign:async R=>{const Ae=ge.encode(R.slice(2));const ye=await pe.sign(Ae);return`_:u${he.base64url.encode(ye)}`}};pe.remoteBlankNodeSigner=remoteBlankNodeSigner},21651:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=void 0;const ge=he(Ae(57147));const ye=Ae(42186);const me=Ae(37875);const ve=Ae(33030);const be=Ae(30498);const Ee=Ae(19711);const we=he(Ae(12437));const Ce=Ae(22276);const _e=Ae(38704);const handler=async function({positionals:R,values:pe}){R=R.slice(1);const Ae=R.shift();const he=new TextEncoder;switch(Ae){case"assist":{const Ae=pe.output;const Ie=pe["graph-type"]||"application/vnd.jgf+json";const Se=pe["credential-type"]||pe["presentation-type"];const Be=pe.verbose||false;const[ke]=R;if(Be){const R=`🕸️ ${Ie}`;(0,ye.debug)(R)}const Oe=pe.env;if(Oe){we.default.config({path:Oe})}let Re;let Qe;if(!ke){let R="";const we=[];const _e=await(0,Ce.getApi)();const{items:Se}=await(0,Ce.getPresentations)({sent:true,received:true,api:_e});const ke=await(0,Ee.driver)();const Oe=ke.session();for(const Ae of Se){try{const ge=he.encode(Ae.content);Re=await ve.jsongraph.graph(ge,"application/vp-ld+sd-jwt");we.push(Re);const ye=await(0,be.query)(Re);const me=await(0,be.injection)(ye);R+=me+"\n";if(Be){const R=`\n${me}\n`;console.log(R)}if(pe.push){await(0,Ee.push)(Oe,ye)}}catch(R){if(Be){const pe=`⛔ ${Ae.id}`;console.error(pe);console.error(R)}}}if(Ae){ge.default.writeFileSync(Ae,R)}if(me.env.github()){if(Ie==="application/gql"){(0,ye.setOutput)("gql",R)}if(Ie==="application/vnd.jgf+json"){(0,ye.setOutput)("json",we)}}else{if(!Ae){console.log(R)}}await ke.close()}else{const R=new Uint8Array(ge.default.readFileSync(ke));if(Se.includes("cose")){Re=await(0,_e.collate)(R);const Ae=await(0,be.query)(Re);const he=await(0,be.injection)(Ae);Qe=he;if(pe.push){const R=await(0,Ee.driver)();const pe=R.session();await(0,Ee.push)(pe,Ae);await R.close()}}else{Re=await ve.jsongraph.graph(R,Se);Qe=JSON.stringify(Re,null,2);if(Ie==="application/gql"){const R=await(0,be.query)(Re);const Ae=await(0,be.injection)(R);Qe=Ae;if(pe.push){const pe=await(0,Ee.driver)();const Ae=pe.session();await(0,Ee.push)(Ae,R);await pe.close()}}}if(Ae){ge.default.writeFileSync(Ae,Qe)}if(me.env.github()){if(Ie==="application/gql"){(0,ye.setOutput)("gql",Qe)}if(Ie==="application/vnd.jgf+json"){(0,ye.setOutput)("json",Re)}}else{if(!Ae){console.log(Qe)}}}break}default:{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}}};pe.handler=handler},86117:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(21651),pe)},22276:function(R,pe,Ae){"use strict";var he=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.getPresentations=pe.getApi=void 0;const ge=he(Ae(73772));const ye=Ae(42186);const getApi=async()=>await ge.default.fromEnv({CLIENT_ID:`${process.env.CLIENT_ID||(0,ye.getInput)("transmute-client-id")}`,CLIENT_SECRET:`${process.env.CLIENT_SECRET||(0,ye.getInput)("transmute-client-secret")}`,API_BASE_URL:`${process.env.API_BASE_URL||(0,ye.getInput)("transmute-api")}`,TOKEN_AUDIENCE:`${process.env.API_BASE_URL||(0,ye.getInput)("transmute-api")}`});pe.getApi=getApi;const getPresentations=async({sent:R,received:pe,api:Ae})=>{const he={items:[]};if(pe){const R=await Ae.presentations.getPresentationsSharedWithMe();const pe=R.data;if(R.data){he.page=pe.page;he.count=pe.count;he.items=[...he.items,...pe.items.map((R=>({id:R.id,content:R.verifiablePresentation})))]}}if(R){const R=await Ae.presentations.getPresentationsSharedWithOthers();const ge=R.data;if(R.data){he.page=ge.page;he.count=ge.count;he.items=[...he.items,...ge.items.map((R=>({id:R.id,content:R.verifiablePresentation})))]}if(pe){delete he.page;delete he.count}}return he};pe.getPresentations=getPresentations},95467:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=pe.toPublicKey=pe.prettyKey=void 0;const ve=me(Ae(57147));const be=ye(Ae(34061));const Ee=Ae(42186);const we=Ae(37875);const prettyKey=R=>{const{kid:pe,kty:Ae,crv:he,alg:ge,x:ye,y:me,d:ve}=R;return{kid:pe,kty:Ae,crv:he,alg:ge,x:ye,y:me,d:ve}};pe.prettyKey=prettyKey;const toPublicKey=R=>{const{kid:pe,kty:Ae,crv:he,alg:ge,x:ye,y:me}=R;return{kid:pe,kty:Ae,crv:he,alg:ge,x:ye,y:me}};pe.toPublicKey=toPublicKey;const handler=async function({positionals:R,values:Ae}){R=R.slice(1);const he=R.shift();switch(he){case"keygen":{const R=Ae.output;const he=Ae.alg||"ES256";const ge=Ae.crv||"Ed25519";const ye=Ae.verbose||false;const me=await be.generateKeyPair(he,{crv:ge});const Ce=await be.exportJWK(me.privateKey);Ce.kid=await be.calculateJwkThumbprint(Ce);Ce.alg=he;if(ye){const R=`🔑 ${Ce.kid}`;(0,Ee.debug)(R)}if(R){ve.default.writeFileSync(R,JSON.stringify((0,pe.prettyKey)(Ce),null,2))}if(we.env.github()){if(Ce.d){(0,Ee.setSecret)(Ce.d)}(0,Ee.setOutput)("json",(0,pe.prettyKey)(Ce))}else{if(!R){console.log(JSON.stringify((0,pe.prettyKey)(Ce),null,2))}}break}case"keypub":{const he=Ae.output;const ge=Ae.verbose||false;const[ye]=R;const me=JSON.parse(ve.default.readFileSync(ye).toString());if(we.env.github()){if(me.d){(0,Ee.setSecret)(me.d)}}const be=(0,pe.toPublicKey)(me);if(ge){const R=`🔑 ${be.kid}`;(0,Ee.debug)(R)}if(he){ve.default.writeFileSync(he,JSON.stringify(be,null,2))}if(we.env.github()){(0,Ee.setOutput)("json",be)}else{if(!he){console.log(JSON.stringify(be,null,2))}}break}case"sign":{const pe=Ae.output;const he=Ae.compact||false;const ge=Ae.verbose||false;const ye=Ae.detached||false;const[me,Ce]=R;const _e=JSON.parse(ve.default.readFileSync(me).toString());if(we.env.github()){if(_e.d){(0,Ee.setSecret)(_e.d)}}const Ie=_e.alg||Ae.alg;if(!Ie){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Se={alg:Ie};if(ye){Se.b64=false;Se.crit=["b64"]}const Be=new Uint8Array(ve.default.readFileSync(Ce));const ke=await new be.FlattenedSign(Be).setProtectedHeader(Se).sign(await be.importJWK(_e));if(ge){const R=`🔑 ${_e.kid}`;(0,Ee.debug)(R)}if(pe){if(he){ve.default.writeFileSync(pe,`${ke.protected}.${ke.payload}.${ke.signature}`)}else{ve.default.writeFileSync(pe,JSON.stringify(ke,null,2))}}if(we.env.github()){if(he){(0,Ee.setOutput)("jws",`${ke.protected}.${ke.payload}.${ke.signature}`)}else{(0,Ee.setOutput)("json",ke)}}else{if(!pe){if(he){console.log(`${ke.protected}.${ke.payload}.${ke.signature}`)}else{console.log(JSON.stringify(ke,null,2))}}}break}case"verify":{const pe=Ae.output;const he=Ae.compact||false;const ge=Ae.verbose||false;const ye=Ae.detached||false;const[me,Ce,_e]=R;const Ie=JSON.parse(ve.default.readFileSync(me).toString());const Se=Ie.alg||Ae.alg;if(!Se){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}let Be=ve.default.readFileSync(Ce).toString();if(he){const[R,pe,Ae]=Be.split(".");Be={protected:R,payload:pe,signature:Ae}}else{Be=JSON.parse(Be)}if(ye){Be.payload=new Uint8Array(ve.default.readFileSync(_e))}const{payload:ke,protectedHeader:Oe}=await be.flattenedVerify(Be,await be.importJWK(Ie));if(ge){const R=`🔑 ${Ie.kid}`;(0,Ee.debug)(R)}if(pe){ve.default.writeFileSync(pe,ke)}if(we.env.github()){(0,Ee.setOutput)("json",Oe)}else{console.log(JSON.stringify(Oe,null,2))}break}case"encrypt":{const pe=Ae.compact||false;const he=Ae.enc||false;const ge=Ae.verbose||false;const[ye,me]=R;const Ce=JSON.parse(ve.default.readFileSync(ye).toString());const _e=Ce.alg||Ae.alg;if(!he){const R=`❌ --enc is required.`;console.error(R);throw new Error(R)}if(!_e){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}const Ie=new Uint8Array(ve.default.readFileSync(me));const Se={alg:_e};let Be;if(pe){Be=await new be.CompactEncrypt(Ie).setProtectedHeader({enc:he,alg:`${Ce.alg}`}).encrypt(await be.importJWK(Ce))}else{Be=await new be.GeneralEncrypt(Ie).setProtectedHeader({enc:he}).addRecipient(await be.importJWK(Ce)).setUnprotectedHeader(Se).encrypt()}if(ge){const R=`🔑 ${Ce.kid}`;(0,Ee.debug)(R)}if(we.env.github()){if(pe){(0,Ee.setOutput)("jwe",Be)}else{(0,Ee.setOutput)("json",Be)}}else{if(pe){console.log(Be)}else{console.log(JSON.stringify(Be,null,2))}}break}case"decrypt":{const pe=Ae.output;const he=Ae.compact||false;const ge=Ae.verbose||false;const[ye,me]=R;const Ce=JSON.parse(ve.default.readFileSync(ye).toString());if(we.env.github()){if(Ce.d){(0,Ee.setSecret)(Ce.d)}}let _e=ve.default.readFileSync(me).toString();let Ie;if(he){Ie=await be.compactDecrypt(_e,await be.importJWK(Ce))}else{_e=JSON.parse(_e);Ie=await be.generalDecrypt(_e,await be.importJWK(Ce))}const{plaintext:Se,protectedHeader:Be}=Ie;if(ge){const R=`🔑 ${Ce.kid}`;(0,Ee.debug)(R)}if(pe){ve.default.writeFileSync(pe,Se)}if(we.env.github()){(0,Ee.setOutput)("json",Be)}else{console.log(JSON.stringify(Be,null,2))}break}default:{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}}};pe.handler=handler},95370:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(95467),pe)},75294:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=void 0;const ve=me(Ae(57147));const be=ye(Ae(88844));const Ee=Ae(42186);const we=Ae(37875);const Ce=Ae(34061);const handler=async function({positionals:R,values:pe}){R=R.slice(1);const Ae=R.shift();switch(Ae){case"issue-statement":{const Ae=pe.output;const he=pe.verbose||false;const[ge,ye]=R;const me=be.cbor.decode(ve.default.readFileSync(ge));const Ce=me.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(me);if(he){const R=`🔑 ${Buffer.from(Ce).toString("hex")}`;(0,Ee.debug)(R)}if(we.env.github()){if(me.get(-4)){(0,Ee.setSecret)(Buffer.from(me.get(-4)).toString("hex"))}}let _e=pe.alg;if(me.get(3)){_e=be.IANACOSEAlgorithms[`${me.get(3)}`].Name}if(!_e){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Ie=ve.default.readFileSync(ye);const Se=await be.hash.signer({remote:be.crypto.signer({privateKeyJwk:await be.key.convertCoseKeyToJsonWebKey(me)})}).sign({protectedHeader:be.ProtectedHeader([[be.Protected.Alg,me.get(3)],[be.Protected.PayloadHashAlgorithm,be.Hash.SHA256]]),unprotectedHeader:new Map,payload:Ie});if(Ae){ve.default.writeFileSync(Ae,Buffer.from(Se))}if(we.env.github()){(0,Ee.setOutput)("cbor",Buffer.from(Se).toString("hex"))}else{const R=await be.cbor.diagnose(Buffer.from(Se));console.log(R)}break}case"verify-statement-hash":{const Ae=pe.output;const he=pe.verbose||false;const[ge,ye,me]=R;const Ce=be.cbor.decode(ve.default.readFileSync(ge));const _e=Ce.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(Ce);if(he){const R=`🔑 ${Buffer.from(_e).toString("hex")}`;(0,Ee.debug)(R)}let Ie=pe.alg;if(Ce.get(3)){Ie=be.IANACOSEAlgorithms[`${Ce.get(3)}`].Name}if(!Ie){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}const Se=ve.default.readFileSync(ye);const Be=await be.attached.verifier({resolver:{resolve:async()=>be.key.convertCoseKeyToJsonWebKey(Ce)}}).verify({coseSign1:Se});if(me){if(me.toLowerCase()!==Buffer.from(Be).toString("hex")){throw new Error(`Signature verification failed for hash: ${Buffer.from(Be).toString("hex")}`)}}else{throw new Error(`Unable to verify signature for hash: ${Buffer.from(Be).toString("hex")}`)}if(Ae){ve.default.writeFileSync(Ae,Buffer.from(Be))}if(we.env.github()){(0,Ee.setOutput)("cbor",Buffer.from(Be).toString("hex"))}else{const R=await be.cbor.diagnose(Buffer.from(Se));console.log(R)}break}case"issue-receipt":{const Ae=pe.log;const he=pe.output;const ge=pe.verbose||false;const[ye,me]=R;const _e=be.cbor.decode(ve.default.readFileSync(ye));const Ie=_e.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(_e);if(!Ae){const R=`❌ --log is required (only JSON is supported)`;console.error(R);throw new Error(R)}if(ge){const R=`🔑 ${Buffer.from(Ie).toString("hex")}`;(0,Ee.debug)(R)}if(we.env.github()){if(_e.get(-4)){(0,Ee.setSecret)(Buffer.from(_e.get(-4)).toString("hex"))}}let Se=pe.alg;if(_e.get(3)){Se=be.IANACOSEAlgorithms[`${_e.get(3)}`].Name}if(!Se){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Be=ve.default.readFileSync(me);const ke=be.detached.signer({remote:be.crypto.signer({privateKeyJwk:await be.key.convertCoseKeyToJsonWebKey(_e)})});let Oe=[];try{Oe=JSON.parse(ve.default.readFileSync(Ae).toString()).entries.map((R=>Ce.base64url.decode(R)))}catch(R){}const Re=await be.receipt.leaf(Be);Oe.push(Re);const Qe=await be.receipt.inclusion.issue({protectedHeader:be.ProtectedHeader([[be.Protected.Alg,be.Signature.ES256],[be.Protected.ProofType,be.Receipt.Inclusion]]),entry:Oe.length-1,entries:Oe,signer:ke});const xe=Oe.map((R=>Ce.base64url.encode(R)));const Pe=await be.receipt.add(Be,Qe);if(he){ve.default.writeFileSync(Ae,JSON.stringify({entries:xe},null,2));ve.default.writeFileSync(he,Buffer.from(Pe))}if(we.env.github()){(0,Ee.setOutput)("cbor",Buffer.from(Pe).toString("hex"))}else{const R=await be.cbor.diagnose(Buffer.from(Pe));console.log(R)}break}case"verify-receipt-hash":{const Ae=pe.output;const he=pe.verbose||false;const[ge,ye,me]=R;const Ce=be.cbor.decode(ve.default.readFileSync(ge));const _e=Ce.get(2)||await be.key.thumbprint.calculateCoseKeyThumbprint(Ce);if(he){const R=`🔑 ${Buffer.from(_e).toString("hex")}`;(0,Ee.debug)(R)}const Ie=await be.receipt.verifier({resolve:async()=>await be.key.convertCoseKeyToJsonWebKey(Ce)});const Se=ve.default.readFileSync(ye);const Be=await Ie.verify({coseSign1:Se,payload:Buffer.from(me,"hex")});if(Buffer.from(Be.payload).toString("hex")!==Buffer.from(me,"hex").toString("hex")){throw new Error(`Signature verification failed for hash: ${Buffer.from(Be.payload).toString("hex")}`)}if(Ae){ve.default.writeFileSync(Ae,Buffer.from(Be.payload))}if(we.env.github()){(0,Ee.setOutput)("cbor",Buffer.from(Be.payload).toString("hex"))}else{const R=await be.cbor.diagnose(Buffer.from(Se));console.log(R)}break}default:{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}}};pe.handler=handler},38600:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(75294),pe)},31674:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__setModuleDefault||(Object.create?function(R,pe){Object.defineProperty(R,"default",{enumerable:true,value:pe})}:function(R,pe){R["default"]=pe});var ye=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var pe={};if(R!=null)for(var Ae in R)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(R,Ae))he(pe,R,Ae);ge(pe,R);return pe};var me=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(pe,"__esModule",{value:true});pe.handler=void 0;const ve=me(Ae(57147));const be=ye(Ae(34061));const Ee=ye(Ae(88844));const we=ye(Ae(97434));const Ce=me(Ae(44083));const _e=Ae(42186);const Ie=Ae(37875);const handler=async function({positionals:R,values:pe}){R=R.slice(1);const Ae=R.shift();switch(Ae){case"issuer-claims":{const Ae=pe.output;const he=pe.verbose||false;const[ge]=R;const ye=JSON.parse(ve.default.readFileSync(ge).toString());const me=Ce.default.stringify(ye);if(he){const R=me;(0,_e.debug)(R)}if(Ae){ve.default.writeFileSync(Ae,me)}else{if(Ie.env.github()){(0,_e.setOutput)("yaml",me)}else{console.log(me)}}break}case"issue-credential":{const Ae=pe.output;const he=pe["credential-type"];const ge=pe.verbose||false;const[ye,me]=R;const Ce=JSON.parse(ve.default.readFileSync(ye).toString());if(Ie.env.github()){if(Ce.d){(0,_e.setSecret)(Ce.d)}}if(ge){const R=`🔑 ${Ce.kid}`;(0,_e.debug)(R)}const Se=Ce.alg||pe.alg;if(!Se){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Be=Ce.kid||pe.kid;const ke=await we.issuer({alg:Se,type:he,signer:{sign:async R=>{if(he.includes("+cose")){const pe=Ee.attached.signer({remote:Ee.crypto.signer({privateKeyJwk:await we.key.importJWK({type:"application/jwk+json",content:we.text.encoder.encode(JSON.stringify(Ce))})})});const Ae=Object.values(Ee.IANACOSEAlgorithms).find((R=>R.Name===Se));const he=Ae?parseInt(Ae===null||Ae===void 0?void 0:Ae.Value,10):-7;const ge=await pe.sign({protectedHeader:new Map([[1,he]]),unprotectedHeader:new Map,payload:R});return new Uint8Array(ge)}else{const pe=await new be.CompactSign(R).setProtectedHeader({kid:Be,alg:Se}).sign(await be.importJWK(Ce));return we.text.encoder.encode(pe)}}}}).issue({claimset:ve.default.readFileSync(me)});if(Ae){ve.default.writeFileSync(Ae,Buffer.from(ke))}if(Ie.env.github()){if(he.endsWith("+jwt")){(0,_e.setOutput)("jwt",we.text.decoder.decode(ke))}if(he.endsWith("+sd-jwt")){(0,_e.setOutput)("sd-jwt",we.text.decoder.decode(ke))}if(he.endsWith("+cose")){(0,_e.setOutput)("cbor",Buffer.from(ke).toString("hex"))}}else{if(!Ae){if(he.endsWith("+jwt")){console.log(we.text.decoder.decode(ke))}if(he.endsWith("+sd-jwt")){console.log(we.text.decoder.decode(ke))}if(he.endsWith("+cose")){console.log(Buffer.from(ke).toString("hex"))}}}break}case"verify-credential":{const Ae=pe.output;const he=pe["credential-type"];const ge=pe.verbose||false;const[ye,me]=R;const be=JSON.parse(ve.default.readFileSync(ye).toString());if(ge){const R=`🔑 ${be.kid}`;(0,_e.debug)(R)}const Ee=be.alg||pe.alg;if(!Ee){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}const Ce=await we.validator({resolver:{resolve:async({id:R,type:pe,content:Ae})=>{if(Ae!=undefined&&pe===he){return{type:"application/jwk+json",content:we.text.encoder.encode(JSON.stringify(be))}}}}}).validate({type:he,content:ve.default.readFileSync(me)});if(!Ce.verified){throw new Error("Credential verification failed.")}if(Ae){ve.default.writeFileSync(Ae,JSON.stringify(Ce,null,2))}if(Ie.env.github()){(0,_e.setOutput)("json",Ce)}else{if(!Ae){console.log(JSON.stringify(Ce,null,2))}}break}case"issue-presentation":{const Ae=pe.output;const he=pe["credential-type"];const ge=pe["presentation-type"];const ye=pe.verbose||false;const[me,Ce,Se]=R;const Be=JSON.parse(ve.default.readFileSync(me).toString());if(Ie.env.github()){if(Be.d){(0,_e.setSecret)(Be.d)}}if(ye){const R=`🔑 ${Be.kid}`;(0,_e.debug)(R)}const ke=Be.alg||pe.alg;if(!ke){const R=`❌ --alg is required when not present in private key`;console.error(R);throw new Error(R)}const Oe=Be.kid||pe.kid;const Re=pe.sub;const Qe=await we.holder({alg:ke,type:ge}).issue({presentation:{"@context":["https://www.w3.org/ns/credentials/v2"],type:["VerifiablePresentation"],holder:Re},disclosures:[{type:he,credential:ve.default.readFileSync(Ce),disclosure:Se?ve.default.readFileSync(Se):undefined}],signer:{sign:async R=>{if(he.includes("+cose")){const pe=Ee.attached.signer({remote:Ee.crypto.signer({privateKeyJwk:await we.key.importJWK({type:"application/jwk+json",content:we.text.encoder.encode(JSON.stringify(Be))})})});const Ae=Object.values(Ee.IANACOSEAlgorithms).find((R=>R.Name===ke));const he=Ae?parseInt(Ae===null||Ae===void 0?void 0:Ae.Value,10):-7;const ge=await pe.sign({protectedHeader:new Map([[1,he]]),unprotectedHeader:new Map,payload:R});return new Uint8Array(ge)}else{const pe=await new be.CompactSign(R).setProtectedHeader({kid:Oe,alg:ke}).sign(await be.importJWK(Be));return we.text.encoder.encode(pe)}}}});if(Ae){ve.default.writeFileSync(Ae,Qe)}if(Ie.env.github()){if(ge.endsWith("+jwt")){(0,_e.setOutput)("jwt",we.text.decoder.decode(Qe))}if(ge.endsWith("+sd-jwt")){(0,_e.setOutput)("sd-jwt",we.text.decoder.decode(Qe))}if(ge.endsWith("+cose")){(0,_e.setOutput)("cbor",Buffer.from(Qe).toString("hex"))}}else{if(!Ae){if(ge.endsWith("+jwt")){console.log(we.text.decoder.decode(Qe))}if(ge.endsWith("+sd-jwt")){console.log(we.text.decoder.decode(Qe))}if(ge.endsWith("+cose")){console.log(Buffer.from(Qe).toString("hex"))}}}break}case"verify-presentation":{const Ae=pe.output;const he=pe["presentation-type"];const ge=pe.verbose||false;const[ye,me]=R;const be=JSON.parse(ve.default.readFileSync(ye).toString());if(ge){const R=`🔑 ${be.kid}`;(0,_e.debug)(R)}const Ee=be.alg||pe.alg;if(!Ee){const R=`❌ --alg is required when not present in public key`;console.error(R);throw new Error(R)}const Ce=await we.validator({resolver:{resolve:async({id:R,type:pe,content:Ae})=>{if(Ae!=undefined&&pe===he){return{type:"application/jwk+json",content:we.text.encoder.encode(JSON.stringify(be))}}}}}).validate({type:he,content:ve.default.readFileSync(me)});if(!Ce.verified){throw new Error("Presentation verification failed.")}if(Ae){ve.default.writeFileSync(Ae,JSON.stringify(Ce,null,2))}if(Ie.env.github()){(0,_e.setOutput)("json",Ce)}else{if(!Ae){console.log(JSON.stringify(Ce,null,2))}}break}default:{const R=`😕 Unknown Command`;console.error(R);throw new Error(R)}}};pe.handler=handler},1340:function(R,pe,Ae){"use strict";var he=this&&this.__createBinding||(Object.create?function(R,pe,Ae,he){if(he===undefined)he=Ae;var ge=Object.getOwnPropertyDescriptor(pe,Ae);if(!ge||("get"in ge?!pe.__esModule:ge.writable||ge.configurable)){ge={enumerable:true,get:function(){return pe[Ae]}}}Object.defineProperty(R,he,ge)}:function(R,pe,Ae,he){if(he===undefined)he=Ae;R[he]=pe[Ae]});var ge=this&&this.__exportStar||function(R,pe){for(var Ae in R)if(Ae!=="default"&&!Object.prototype.hasOwnProperty.call(pe,Ae))he(pe,R,Ae)};Object.defineProperty(pe,"__esModule",{value:true});ge(Ae(31674),pe)},12276:module=>{module.exports=eval("require")("rdf-canonize-native")},39491:R=>{"use strict";R.exports=require("assert")},50852:R=>{"use strict";R.exports=require("async_hooks")},14300:R=>{"use strict";R.exports=require("buffer")},96206:R=>{"use strict";R.exports=require("console")},6113:R=>{"use strict";R.exports=require("crypto")},67643:R=>{"use strict";R.exports=require("diagnostics_channel")},9523:R=>{"use strict";R.exports=require("dns")},82361:R=>{"use strict";R.exports=require("events")},57147:R=>{"use strict";R.exports=require("fs")},13685:R=>{"use strict";R.exports=require("http")},85158:R=>{"use strict";R.exports=require("http2")},95687:R=>{"use strict";R.exports=require("https")},41808:R=>{"use strict";R.exports=require("net")},72254:R=>{"use strict";R.exports=require("node:buffer")},6005:R=>{"use strict";R.exports=require("node:crypto")},15673:R=>{"use strict";R.exports=require("node:events")},87561:R=>{"use strict";R.exports=require("node:fs")},88849:R=>{"use strict";R.exports=require("node:http")},22286:R=>{"use strict";R.exports=require("node:https")},87503:R=>{"use strict";R.exports=require("node:net")},49411:R=>{"use strict";R.exports=require("node:path")},97742:R=>{"use strict";R.exports=require("node:process")},84492:R=>{"use strict";R.exports=require("node:stream")},72477:R=>{"use strict";R.exports=require("node:stream/web")},41041:R=>{"use strict";R.exports=require("node:url")},47261:R=>{"use strict";R.exports=require("node:util")},65628:R=>{"use strict";R.exports=require("node:zlib")},22037:R=>{"use strict";R.exports=require("os")},71017:R=>{"use strict";R.exports=require("path")},4074:R=>{"use strict";R.exports=require("perf_hooks")},63477:R=>{"use strict";R.exports=require("querystring")},12781:R=>{"use strict";R.exports=require("stream")},35356:R=>{"use strict";R.exports=require("stream/web")},71576:R=>{"use strict";R.exports=require("string_decoder")},24404:R=>{"use strict";R.exports=require("tls")},76224:R=>{"use strict";R.exports=require("tty")},57310:R=>{"use strict";R.exports=require("url")},73837:R=>{"use strict";R.exports=require("util")},29830:R=>{"use strict";R.exports=require("util/types")},71267:R=>{"use strict";R.exports=require("worker_threads")},59796:R=>{"use strict";R.exports=require("zlib")},92960:(R,pe,Ae)=>{"use strict";const he=Ae(84492).Writable;const ge=Ae(47261).inherits;const ye=Ae(51142);const me=Ae(81620);const ve=Ae(92032);const be=45;const Ee=Buffer.from("-");const we=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(R){if(!(this instanceof Dicer)){return new Dicer(R)}he.call(this,R);if(!R||!R.headerFirst&&typeof R.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof R.boundary==="string"){this.setBoundary(R.boundary)}else{this._bparser=undefined}this._headerFirst=R.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:R.partHwm};this._pause=false;const pe=this;this._hparser=new ve(R);this._hparser.on("header",(function(R){pe._inHeader=false;pe._part.emit("header",R)}))}ge(Dicer,he);Dicer.prototype.emit=function(R){if(R==="finish"&&!this._realFinish){if(!this._finished){const R=this;process.nextTick((function(){R.emit("error",new Error("Unexpected end of multipart data"));if(R._part&&!R._ignoreData){const pe=R._isPreamble?"Preamble":"Part";R._part.emit("error",new Error(pe+" terminated early due to unexpected end of multipart data"));R._part.push(null);process.nextTick((function(){R._realFinish=true;R.emit("finish");R._realFinish=false}));return}R._realFinish=true;R.emit("finish");R._realFinish=false}))}}else{he.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(R,pe,Ae){if(!this._hparser&&!this._bparser){return Ae()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new me(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const pe=this._hparser.push(R);if(!this._inHeader&&pe!==undefined&&pe{"use strict";const he=Ae(15673).EventEmitter;const ge=Ae(47261).inherits;const ye=Ae(21467);const me=Ae(51142);const ve=Buffer.from("\r\n\r\n");const be=/\r\n/g;const Ee=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(R){he.call(this);R=R||{};const pe=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=ye(R,"maxHeaderPairs",2e3);this.maxHeaderSize=ye(R,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new me(ve);this.ss.on("info",(function(R,Ae,he,ge){if(Ae&&!pe.maxed){if(pe.nread+ge-he>=pe.maxHeaderSize){ge=pe.maxHeaderSize-pe.nread+he;pe.nread=pe.maxHeaderSize;pe.maxed=true}else{pe.nread+=ge-he}pe.buffer+=Ae.toString("binary",he,ge)}if(R){pe._finish()}}))}ge(HeaderParser,he);HeaderParser.prototype.push=function(R){const pe=this.ss.push(R);if(this.finished){return pe}};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 R=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",R)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const R=this.buffer.split(be);const pe=R.length;let Ae,he;for(var ge=0;ge{"use strict";const he=Ae(47261).inherits;const ge=Ae(84492).Readable;function PartStream(R){ge.call(this,R)}he(PartStream,ge);PartStream.prototype._read=function(R){};R.exports=PartStream},51142:(R,pe,Ae)=>{"use strict";const he=Ae(15673).EventEmitter;const ge=Ae(47261).inherits;function SBMH(R){if(typeof R==="string"){R=Buffer.from(R)}if(!Buffer.isBuffer(R)){throw new TypeError("The needle has to be a String or a Buffer.")}const pe=R.length;if(pe===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(pe>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(pe);this._lookbehind_size=0;this._needle=R;this._bufpos=0;this._lookbehind=Buffer.alloc(pe);for(var Ae=0;Ae=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const Ae=this._lookbehind_size+ye;if(Ae>0){this.emit("info",false,this._lookbehind,0,Ae)}this._lookbehind.copy(this._lookbehind,0,Ae,this._lookbehind_size-Ae);this._lookbehind_size-=Ae;R.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=pe;this._bufpos=pe;return pe}}ye+=(ye>=0)*this._bufpos;if(R.indexOf(Ae,ye)!==-1){ye=R.indexOf(Ae,ye);++this.matches;if(ye>0){this.emit("info",true,R,this._bufpos,ye)}else{this.emit("info",true)}return this._bufpos=ye+he}else{ye=pe-he}while(ye0){this.emit("info",false,R,this._bufpos,ye{"use strict";const he=Ae(84492).Writable;const{inherits:ge}=Ae(47261);const ye=Ae(92960);const me=Ae(32183);const ve=Ae(78306);const be=Ae(31854);function Busboy(R){if(!(this instanceof Busboy)){return new Busboy(R)}if(typeof R!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof R.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof R.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:pe,...Ae}=R;this.opts={autoDestroy:false,...Ae};he.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(pe);this._finished=false}ge(Busboy,he);Busboy.prototype.emit=function(R){if(R==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}he.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(R){const pe=be(R["content-type"]);const Ae={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:R,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:pe,preservePath:this.opts.preservePath};if(me.detect.test(pe[0])){return new me(this,Ae)}if(ve.detect.test(pe[0])){return new ve(this,Ae)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(R,pe,Ae){this._parser.write(R,Ae)};R.exports=Busboy;R.exports["default"]=Busboy;R.exports.Busboy=Busboy;R.exports.Dicer=ye},32183:(R,pe,Ae)=>{"use strict";const{Readable:he}=Ae(84492);const{inherits:ge}=Ae(47261);const ye=Ae(92960);const me=Ae(31854);const ve=Ae(84619);const be=Ae(48647);const Ee=Ae(21467);const we=/^boundary$/i;const Ce=/^form-data$/i;const _e=/^charset$/i;const Ie=/^filename$/i;const Se=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(R,pe){let Ae;let he;const ge=this;let Be;const ke=pe.limits;const Oe=pe.isPartAFile||((R,pe,Ae)=>pe==="application/octet-stream"||Ae!==undefined);const Re=pe.parsedConType||[];const Qe=pe.defCharset||"utf8";const xe=pe.preservePath;const Pe={highWaterMark:pe.fileHwm};for(Ae=0,he=Re.length;Aeje){ge.parser.removeListener("part",onPart);ge.parser.on("part",skipPart);R.hitPartsLimit=true;R.emit("partsLimit");return skipPart(pe)}if(Ve){const R=Ve;R.emit("end");R.removeAllListeners("end")}pe.on("header",(function(ye){let Ee;let we;let Be;let ke;let Re;let je;let Fe=0;if(ye["content-type"]){Be=me(ye["content-type"][0]);if(Be[0]){Ee=Be[0].toLowerCase();for(Ae=0,he=Be.length;AeDe){const he=De-Fe+R.length;if(he>0){Ae.push(R.slice(0,he))}Ae.truncated=true;Ae.bytesRead=De;pe.removeAllListeners("data");Ae.emit("limit");return}else if(!Ae.push(R)){ge._pause=true}Ae.bytesRead=Fe};Ke=function(){We=undefined;Ae.push(null)}}else{if(He===Me){if(!R.hitFieldsLimit){R.hitFieldsLimit=true;R.emit("fieldsLimit")}return skipPart(pe)}++He;++Je;let Ae="";let he=false;Ve=pe;Le=function(R){if((Fe+=R.length)>Te){const ge=Te-(Fe-R.length);Ae+=R.toString("binary",0,ge);he=true;pe.removeAllListeners("data")}else{Ae+=R.toString("binary")}};Ke=function(){Ve=undefined;if(Ae.length){Ae=ve(Ae,"binary",ke)}R.emit("field",we,Ae,false,he,Re,Ee);--Je;checkFinished()}}pe._readableState.sync=false;pe.on("data",Le);pe.on("end",Ke)})).on("error",(function(R){if(We){We.emit("error",R)}}))})).on("error",(function(pe){R.emit("error",pe)})).on("finish",(function(){Ke=true;checkFinished()}))}Multipart.prototype.write=function(R,pe){const Ae=this.parser.write(R);if(Ae&&!this._pause){pe()}else{this._needDrain=!Ae;this._cb=pe}};Multipart.prototype.end=function(){const R=this;if(R.parser.writable){R.parser.end()}else if(!R._boy._done){process.nextTick((function(){R._boy._done=true;R._boy.emit("finish")}))}};function skipPart(R){R.resume()}function FileStream(R){he.call(this,R);this.bytesRead=0;this.truncated=false}ge(FileStream,he);FileStream.prototype._read=function(R){};R.exports=Multipart},78306:(R,pe,Ae)=>{"use strict";const he=Ae(27100);const ge=Ae(84619);const ye=Ae(21467);const me=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(R,pe){const Ae=pe.limits;const ge=pe.parsedConType;this.boy=R;this.fieldSizeLimit=ye(Ae,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=ye(Ae,"fieldNameSize",100);this.fieldsLimit=ye(Ae,"fields",Infinity);let ve;for(var be=0,Ee=ge.length;beme){this._key+=this.decoder.write(R.toString("binary",me,Ae))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();me=Ae+1}else if(he!==undefined){++this._fields;let Ae;const ye=this._keyTrunc;if(he>me){Ae=this._key+=this.decoder.write(R.toString("binary",me,he))}else{Ae=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(Ae.length){this.boy.emit("field",ge(Ae,"binary",this.charset),"",ye,false)}me=he+1;if(this._fields===this.fieldsLimit){return pe()}}else if(this._hitLimit){if(ye>me){this._key+=this.decoder.write(R.toString("binary",me,ye))}me=ye;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(meme){this._val+=this.decoder.write(R.toString("binary",me,he))}this.boy.emit("field",ge(this._key,"binary",this.charset),ge(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();me=he+1;if(this._fields===this.fieldsLimit){return pe()}}else if(this._hitLimit){if(ye>me){this._val+=this.decoder.write(R.toString("binary",me,ye))}me=ye;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(me0){this.boy.emit("field",ge(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",ge(this._key,"binary",this.charset),ge(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};R.exports=UrlEncoded},27100:R=>{"use strict";const pe=/\+/g;const Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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(R){R=R.replace(pe," ");let he="";let ge=0;let ye=0;const me=R.length;for(;geye){he+=R.substring(ye,ge);ye=ge}this.buffer="";++ye}}if(ye{"use strict";R.exports=function basename(R){if(typeof R!=="string"){return""}for(var pe=R.length-1;pe>=0;--pe){switch(R.charCodeAt(pe)){case 47:case 92:R=R.slice(pe+1);return R===".."||R==="."?"":R}}return R===".."||R==="."?"":R}},84619:function(R){"use strict";const pe=new TextDecoder("utf-8");const Ae=new Map([["utf-8",pe],["utf8",pe]]);function getDecoder(R){let pe;while(true){switch(R){case"utf-8":case"utf8":return he.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 he.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return he.utf16le;case"base64":return he.base64;default:if(pe===undefined){pe=true;R=R.toLowerCase();continue}return he.other.bind(R)}}}const he={utf8:(R,pe)=>{if(R.length===0){return""}if(typeof R==="string"){R=Buffer.from(R,pe)}return R.utf8Slice(0,R.length)},latin1:(R,pe)=>{if(R.length===0){return""}if(typeof R==="string"){return R}return R.latin1Slice(0,R.length)},utf16le:(R,pe)=>{if(R.length===0){return""}if(typeof R==="string"){R=Buffer.from(R,pe)}return R.ucs2Slice(0,R.length)},base64:(R,pe)=>{if(R.length===0){return""}if(typeof R==="string"){R=Buffer.from(R,pe)}return R.base64Slice(0,R.length)},other:(R,pe)=>{if(R.length===0){return""}if(typeof R==="string"){R=Buffer.from(R,pe)}if(Ae.has(this.toString())){try{return Ae.get(this).decode(R)}catch{}}return typeof R==="string"?R:R.toString()}};function decodeText(R,pe,Ae){if(R){return getDecoder(Ae)(R,pe)}return R}R.exports=decodeText},21467:R=>{"use strict";R.exports=function getLimit(R,pe,Ae){if(!R||R[pe]===undefined||R[pe]===null){return Ae}if(typeof R[pe]!=="number"||isNaN(R[pe])){throw new TypeError("Limit "+pe+" is not a valid number")}return R[pe]}},31854:(R,pe,Ae)=>{"use strict";const he=Ae(84619);const ge=/%[a-fA-F0-9][a-fA-F0-9]/g;const ye={"%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(R){return ye[R]}const me=0;const ve=1;const be=2;const Ee=3;function parseParams(R){const pe=[];let Ae=me;let ye="";let we=false;let Ce=false;let _e=0;let Ie="";const Se=R.length;for(var Be=0;Be{"use strict";const{normalizeIPv6:he,normalizeIPv4:ge,removeDotSegments:ye,recomposeAuthority:me,normalizeComponentEncoding:ve}=Ae(96743);const be=Ae(4923);function normalize(R,pe){if(typeof R==="string"){R=serialize(parse(R,pe),pe)}else if(typeof R==="object"){R=parse(serialize(R,pe),pe)}return R}function resolve(R,pe,Ae){const he=Object.assign({scheme:"null"},Ae);const ge=resolveComponents(parse(R,he),parse(pe,he),he,true);return serialize(ge,{...he,skipEscape:true})}function resolveComponents(R,pe,Ae,he){const ge={};if(!he){R=parse(serialize(R,Ae),Ae);pe=parse(serialize(pe,Ae),Ae)}Ae=Ae||{};if(!Ae.tolerant&&pe.scheme){ge.scheme=pe.scheme;ge.userinfo=pe.userinfo;ge.host=pe.host;ge.port=pe.port;ge.path=ye(pe.path||"");ge.query=pe.query}else{if(pe.userinfo!==undefined||pe.host!==undefined||pe.port!==undefined){ge.userinfo=pe.userinfo;ge.host=pe.host;ge.port=pe.port;ge.path=ye(pe.path||"");ge.query=pe.query}else{if(!pe.path){ge.path=R.path;if(pe.query!==undefined){ge.query=pe.query}else{ge.query=R.query}}else{if(pe.path.charAt(0)==="/"){ge.path=ye(pe.path)}else{if((R.userinfo!==undefined||R.host!==undefined||R.port!==undefined)&&!R.path){ge.path="/"+pe.path}else if(!R.path){ge.path=pe.path}else{ge.path=R.path.slice(0,R.path.lastIndexOf("/")+1)+pe.path}ge.path=ye(ge.path)}ge.query=pe.query}ge.userinfo=R.userinfo;ge.host=R.host;ge.port=R.port}ge.scheme=R.scheme}ge.fragment=pe.fragment;return ge}function equal(R,pe,Ae){if(typeof R==="string"){R=unescape(R);R=serialize(ve(parse(R,Ae),true),{...Ae,skipEscape:true})}else if(typeof R==="object"){R=serialize(ve(R,true),{...Ae,skipEscape:true})}if(typeof pe==="string"){pe=unescape(pe);pe=serialize(ve(parse(pe,Ae),true),{...Ae,skipEscape:true})}else if(typeof pe==="object"){pe=serialize(ve(pe,true),{...Ae,skipEscape:true})}return R.toLowerCase()===pe.toLowerCase()}function serialize(R,pe){const Ae={host:R.host,scheme:R.scheme,userinfo:R.userinfo,port:R.port,path:R.path,query:R.query,nid:R.nid,nss:R.nss,uuid:R.uuid,fragment:R.fragment,reference:R.reference,resourceName:R.resourceName,secure:R.secure,error:""};const he=Object.assign({},pe);const ge=[];const ve=be[(he.scheme||Ae.scheme||"").toLowerCase()];if(ve&&ve.serialize)ve.serialize(Ae,he);if(Ae.path!==undefined){if(!he.skipEscape){Ae.path=escape(Ae.path);if(Ae.scheme!==undefined){Ae.path=Ae.path.split("%3A").join(":")}}else{Ae.path=unescape(Ae.path)}}if(he.reference!=="suffix"&&Ae.scheme){ge.push(Ae.scheme);ge.push(":")}const Ee=me(Ae,he);if(Ee!==undefined){if(he.reference!=="suffix"){ge.push("//")}ge.push(Ee);if(Ae.path&&Ae.path.charAt(0)!=="/"){ge.push("/")}}if(Ae.path!==undefined){let R=Ae.path;if(!he.absolutePath&&(!ve||!ve.absolutePath)){R=ye(R)}if(Ee===undefined){R=R.replace(/^\/\//u,"/%2F")}ge.push(R)}if(Ae.query!==undefined){ge.push("?");ge.push(Ae.query)}if(Ae.fragment!==undefined){ge.push("#");ge.push(Ae.fragment)}return ge.join("")}const Ee=Array.from({length:127},((R,pe)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(pe))));function nonSimpleDomain(R){let pe=0;for(let Ae=0,he=R.length;Ae126||Ee[pe]){return true}}return false}const we=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function parse(R,pe){const Ae=Object.assign({},pe);const ye={scheme:undefined,userinfo:undefined,host:"",port:undefined,path:"",query:undefined,fragment:undefined};const me=R.indexOf("%")!==-1;let ve=false;if(Ae.reference==="suffix")R=(Ae.scheme?Ae.scheme+":":"")+"//"+R;const Ee=R.match(we);if(Ee){ye.scheme=Ee[1];ye.userinfo=Ee[3];ye.host=Ee[4];ye.port=parseInt(Ee[5],10);ye.path=Ee[6]||"";ye.query=Ee[7];ye.fragment=Ee[8];if(isNaN(ye.port)){ye.port=Ee[5]}if(ye.host){const R=ge(ye.host);if(R.isIPV4===false){const pe=he(R.host,{isIPV4:false});ye.host=pe.host.toLowerCase();ve=pe.isIPV6}else{ye.host=R.host;ve=true}}if(ye.scheme===undefined&&ye.userinfo===undefined&&ye.host===undefined&&ye.port===undefined&&!ye.path&&ye.query===undefined){ye.reference="same-document"}else if(ye.scheme===undefined){ye.reference="relative"}else if(ye.fragment===undefined){ye.reference="absolute"}else{ye.reference="uri"}if(Ae.reference&&Ae.reference!=="suffix"&&Ae.reference!==ye.reference){ye.error=ye.error||"URI is not a "+Ae.reference+" reference."}const R=be[(Ae.scheme||ye.scheme||"").toLowerCase()];if(!Ae.unicodeSupport&&(!R||!R.unicodeSupport)){if(ye.host&&(Ae.domainHost||R&&R.domainHost)&&ve===false&&nonSimpleDomain(ye.host)){try{ye.host=URL.domainToASCII(ye.host.toLowerCase())}catch(R){ye.error=ye.error||"Host's domain name can not be converted to ASCII: "+R}}}if(!R||R&&!R.skipNormalize){if(me&&ye.scheme!==undefined){ye.scheme=unescape(ye.scheme)}if(me&&ye.userinfo!==undefined){ye.userinfo=unescape(ye.userinfo)}if(me&&ye.host!==undefined){ye.host=unescape(ye.host)}if(ye.path!==undefined&&ye.path.length){ye.path=escape(unescape(ye.path))}if(ye.fragment!==undefined&&ye.fragment.length){ye.fragment=encodeURI(decodeURIComponent(ye.fragment))}}if(R&&R.parse){R.parse(ye,Ae)}}else{ye.error=ye.error||"URI can not be parsed."}return ye}const Ce={SCHEMES:be,normalize:normalize,resolve:resolve,resolveComponents:resolveComponents,equal:equal,serialize:serialize,parse:parse};R.exports=Ce;R.exports["default"]=Ce;R.exports.fastUri=Ce},4923:R=>{"use strict";const pe=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu;const Ae=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function isSecure(R){return typeof R.secure==="boolean"?R.secure:String(R.scheme).toLowerCase()==="wss"}function httpParse(R){if(!R.host){R.error=R.error||"HTTP URIs must have a host."}return R}function httpSerialize(R){const pe=String(R.scheme).toLowerCase()==="https";if(R.port===(pe?443:80)||R.port===""){R.port=undefined}if(!R.path){R.path="/"}return R}function wsParse(R){R.secure=isSecure(R);R.resourceName=(R.path||"/")+(R.query?"?"+R.query:"");R.path=undefined;R.query=undefined;return R}function wsSerialize(R){if(R.port===(isSecure(R)?443:80)||R.port===""){R.port=undefined}if(typeof R.secure==="boolean"){R.scheme=R.secure?"wss":"ws";R.secure=undefined}if(R.resourceName){const[pe,Ae]=R.resourceName.split("?");R.path=pe&&pe!=="/"?pe:undefined;R.query=Ae;R.resourceName=undefined}R.fragment=undefined;return R}function urnParse(R,pe){if(!R.path){R.error="URN can not be parsed";return R}const he=R.path.match(Ae);if(he){const Ae=pe.scheme||R.scheme||"urn";R.nid=he[1].toLowerCase();R.nss=he[2];const ge=`${Ae}:${pe.nid||R.nid}`;const ye=Ee[ge];R.path=undefined;if(ye){R=ye.parse(R,pe)}}else{R.error=R.error||"URN can not be parsed."}return R}function urnSerialize(R,pe){const Ae=pe.scheme||R.scheme||"urn";const he=R.nid.toLowerCase();const ge=`${Ae}:${pe.nid||he}`;const ye=Ee[ge];if(ye){R=ye.serialize(R,pe)}const me=R;const ve=R.nss;me.path=`${he||pe.nid}:${ve}`;pe.skipEscape=true;return me}function urnuuidParse(R,Ae){const he=R;he.uuid=he.nss;he.nss=undefined;if(!Ae.tolerant&&(!he.uuid||!pe.test(he.uuid))){he.error=he.error||"UUID is not valid."}return he}function urnuuidSerialize(R){const pe=R;pe.nss=(R.uuid||"").toLowerCase();return pe}const he={scheme:"http",domainHost:true,parse:httpParse,serialize:httpSerialize};const ge={scheme:"https",domainHost:he.domainHost,parse:httpParse,serialize:httpSerialize};const ye={scheme:"ws",domainHost:true,parse:wsParse,serialize:wsSerialize};const me={scheme:"wss",domainHost:ye.domainHost,parse:ye.parse,serialize:ye.serialize};const ve={scheme:"urn",parse:urnParse,serialize:urnSerialize,skipNormalize:true};const be={scheme:"urn:uuid",parse:urnuuidParse,serialize:urnuuidSerialize,skipNormalize:true};const Ee={http:he,https:ge,ws:ye,wss:me,urn:ve,"urn:uuid":be};R.exports=Ee},83157:R=>{"use strict";const pe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};R.exports={HEX:pe}},96743:(R,pe,Ae)=>{"use strict";const{HEX:he}=Ae(83157);function normalizeIPv4(R){if(findToken(R,".")<3){return{host:R,isIPV4:false}}const pe=R.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[];const[Ae]=pe;if(Ae){return{host:stripLeadingZeros(Ae,"."),isIPV4:true}}else{return{host:R,isIPV4:false}}}function stringArrayToHexStripped(R,pe=false){let Ae="";let ge=true;for(const pe of R){if(he[pe]===undefined)return undefined;if(pe!=="0"&&ge===true)ge=false;if(!ge)Ae+=pe}if(pe&&Ae.length===0)Ae="0";return Ae}function getIPV6(R){let pe=0;const Ae={error:false,address:"",zone:""};const he=[];const ge=[];let ye=false;let me=false;let ve=false;function consume(){if(ge.length){if(ye===false){const R=stringArrayToHexStripped(ge);if(R!==undefined){he.push(R)}else{Ae.error=true;return false}}ge.length=0}return true}for(let be=0;be7){Ae.error=true;break}if(be-1>=0&&R[be-1]===":"){me=true}continue}else if(Ee==="%"){if(!consume()){break}ye=true}else{ge.push(Ee);continue}}if(ge.length){if(ye){Ae.zone=ge.join("")}else if(ve){he.push(ge.join(""))}else{he.push(stringArrayToHexStripped(ge))}}Ae.address=he.join("");return Ae}function normalizeIPv6(R,pe={}){if(findToken(R,":")<2){return{host:R,isIPV6:false}}const Ae=getIPV6(R);if(!Ae.error){let R=Ae.address;let pe=Ae.address;if(Ae.zone){R+="%"+Ae.zone;pe+="%25"+Ae.zone}return{host:R,escapedHost:pe,isIPV6:true}}else{return{host:R,isIPV6:false}}}function stripLeadingZeros(R,pe){let Ae="";let he=true;const ge=R.length;for(let ye=0;ye{ /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use @@ -218,13 +218,13 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var R;(function(R){(function(pe){var Ae=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:sloppyModeThis();var he=makeExporter(R);if(typeof Ae.Reflect!=="undefined"){he=makeExporter(Ae.Reflect,he)}pe(he,Ae);if(typeof Ae.Reflect==="undefined"){Ae.Reflect=R}function makeExporter(R,pe){return function(Ae,he){Object.defineProperty(R,Ae,{configurable:true,writable:true,value:he});if(pe)pe(Ae,he)}}function functionThis(){try{return Function("return this;")()}catch(R){}}function indirectEvalThis(){try{return(void 0,eval)("(function() { return this; })()")}catch(R){}}function sloppyModeThis(){return functionThis()||indirectEvalThis()}})((function(R,pe){var Ae=Object.prototype.hasOwnProperty;var he=typeof Symbol==="function";var ge=he&&typeof Symbol.toPrimitive!=="undefined"?Symbol.toPrimitive:"@@toPrimitive";var ye=he&&typeof Symbol.iterator!=="undefined"?Symbol.iterator:"@@iterator";var me=typeof Object.create==="function";var ve={__proto__:[]}instanceof Array;var be=!me&&!ve;var Ee={create:me?function(){return MakeDictionary(Object.create(null))}:ve?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:be?function(R,pe){return Ae.call(R,pe)}:function(R,pe){return pe in R},get:be?function(R,pe){return Ae.call(R,pe)?R[pe]:undefined}:function(R,pe){return R[pe]}};var Ce=Object.getPrototypeOf(Function);var we=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:CreateMapPolyfill();var _e=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:CreateSetPolyfill();var Ie=typeof WeakMap==="function"?WeakMap:CreateWeakMapPolyfill();var Se=he?Symbol.for("@reflect-metadata:registry"):undefined;var Be=GetOrCreateMetadataRegistry();var ke=CreateMetadataProvider(Be);function decorate(R,pe,Ae,he){if(!IsUndefined(Ae)){if(!IsArray(R))throw new TypeError;if(!IsObject(pe))throw new TypeError;if(!IsObject(he)&&!IsUndefined(he)&&!IsNull(he))throw new TypeError;if(IsNull(he))he=undefined;Ae=ToPropertyKey(Ae);return DecorateProperty(R,pe,Ae,he)}else{if(!IsArray(R))throw new TypeError;if(!IsConstructor(pe))throw new TypeError;return DecorateConstructor(R,pe)}}R("decorate",decorate);function metadata(R,pe){function decorator(Ae,he){if(!IsObject(Ae))throw new TypeError;if(!IsUndefined(he)&&!IsPropertyKey(he))throw new TypeError;OrdinaryDefineOwnMetadata(R,pe,Ae,he)}return decorator}R("metadata",metadata);function defineMetadata(R,pe,Ae,he){if(!IsObject(Ae))throw new TypeError;if(!IsUndefined(he))he=ToPropertyKey(he);return OrdinaryDefineOwnMetadata(R,pe,Ae,he)}R("defineMetadata",defineMetadata);function hasMetadata(R,pe,Ae){if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);return OrdinaryHasMetadata(R,pe,Ae)}R("hasMetadata",hasMetadata);function hasOwnMetadata(R,pe,Ae){if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);return OrdinaryHasOwnMetadata(R,pe,Ae)}R("hasOwnMetadata",hasOwnMetadata);function getMetadata(R,pe,Ae){if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);return OrdinaryGetMetadata(R,pe,Ae)}R("getMetadata",getMetadata);function getOwnMetadata(R,pe,Ae){if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);return OrdinaryGetOwnMetadata(R,pe,Ae)}R("getOwnMetadata",getOwnMetadata);function getMetadataKeys(R,pe){if(!IsObject(R))throw new TypeError;if(!IsUndefined(pe))pe=ToPropertyKey(pe);return OrdinaryMetadataKeys(R,pe)}R("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(R,pe){if(!IsObject(R))throw new TypeError;if(!IsUndefined(pe))pe=ToPropertyKey(pe);return OrdinaryOwnMetadataKeys(R,pe)}R("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(R,pe,Ae){if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);var he=GetMetadataProvider(pe,Ae,false);if(IsUndefined(he))return false;return he.OrdinaryDeleteMetadata(R,pe,Ae)}R("deleteMetadata",deleteMetadata);function DecorateConstructor(R,pe){for(var Ae=R.length-1;Ae>=0;--Ae){var he=R[Ae];var ge=he(pe);if(!IsUndefined(ge)&&!IsNull(ge)){if(!IsConstructor(ge))throw new TypeError;pe=ge}}return pe}function DecorateProperty(R,pe,Ae,he){for(var ge=R.length-1;ge>=0;--ge){var ye=R[ge];var me=ye(pe,Ae,he);if(!IsUndefined(me)&&!IsNull(me)){if(!IsObject(me))throw new TypeError;he=me}}return he}function OrdinaryHasMetadata(R,pe,Ae){var he=OrdinaryHasOwnMetadata(R,pe,Ae);if(he)return true;var ge=OrdinaryGetPrototypeOf(pe);if(!IsNull(ge))return OrdinaryHasMetadata(R,ge,Ae);return false}function OrdinaryHasOwnMetadata(R,pe,Ae){var he=GetMetadataProvider(pe,Ae,false);if(IsUndefined(he))return false;return ToBoolean(he.OrdinaryHasOwnMetadata(R,pe,Ae))}function OrdinaryGetMetadata(R,pe,Ae){var he=OrdinaryHasOwnMetadata(R,pe,Ae);if(he)return OrdinaryGetOwnMetadata(R,pe,Ae);var ge=OrdinaryGetPrototypeOf(pe);if(!IsNull(ge))return OrdinaryGetMetadata(R,ge,Ae);return undefined}function OrdinaryGetOwnMetadata(R,pe,Ae){var he=GetMetadataProvider(pe,Ae,false);if(IsUndefined(he))return;return he.OrdinaryGetOwnMetadata(R,pe,Ae)}function OrdinaryDefineOwnMetadata(R,pe,Ae,he){var ge=GetMetadataProvider(Ae,he,true);ge.OrdinaryDefineOwnMetadata(R,pe,Ae,he)}function OrdinaryMetadataKeys(R,pe){var Ae=OrdinaryOwnMetadataKeys(R,pe);var he=OrdinaryGetPrototypeOf(R);if(he===null)return Ae;var ge=OrdinaryMetadataKeys(he,pe);if(ge.length<=0)return Ae;if(Ae.length<=0)return ge;var ye=new _e;var me=[];for(var ve=0,be=Ae;ve=0&&R=this._keys.length){this._index=-1;this._keys=pe;this._values=pe}else{this._index++}return{value:Ae,done:false}}return{value:undefined,done:true}};MapIterator.prototype.throw=function(R){if(this._index>=0){this._index=-1;this._keys=pe;this._values=pe}throw R};MapIterator.prototype.return=function(R){if(this._index>=0){this._index=-1;this._keys=pe;this._values=pe}return{value:R,done:true}};return MapIterator}();var he=function(){function Map(){this._keys=[];this._values=[];this._cacheKey=R;this._cacheIndex=-2}Object.defineProperty(Map.prototype,"size",{get:function(){return this._keys.length},enumerable:true,configurable:true});Map.prototype.has=function(R){return this._find(R,false)>=0};Map.prototype.get=function(R){var pe=this._find(R,false);return pe>=0?this._values[pe]:undefined};Map.prototype.set=function(R,pe){var Ae=this._find(R,true);this._values[Ae]=pe;return this};Map.prototype.delete=function(pe){var Ae=this._find(pe,false);if(Ae>=0){var he=this._keys.length;for(var ge=Ae+1;ge{"use strict";var he=Ae(15589);var ge=Ae(9338);var ye=Ae(16011);var me=Ae(25161);var ve=Ae(62986);var be=Ae(2289);var Ee=Ae(20045);function resolveCollection(R,pe,Ae,he,ge,ye){const me=Ae.type==="block-map"?ve.resolveBlockMap(R,pe,Ae,he,ye):Ae.type==="block-seq"?be.resolveBlockSeq(R,pe,Ae,he,ye):Ee.resolveFlowCollection(R,pe,Ae,he,ye);const Ce=me.constructor;if(ge==="!"||ge===Ce.tagName){me.tag=Ce.tagName;return me}if(ge)me.tag=ge;return me}function composeCollection(R,pe,Ae,ve,be){const Ee=ve.tag;const Ce=!Ee?null:pe.directives.tagName(Ee.source,(R=>be(Ee,"TAG_RESOLVE_FAILED",R)));if(Ae.type==="block-seq"){const{anchor:R,newlineAfterProp:pe}=ve;const Ae=R&&Ee?R.offset>Ee.offset?R:Ee:R??Ee;if(Ae&&(!pe||pe.offsetR.tag===Ce&&R.collection===we));if(!_e){const he=pe.schema.knownTags[Ce];if(he&&he.collection===we){pe.schema.tags.push(Object.assign({},he,{default:false}));_e=he}else{if(he?.collection){be(Ee,"BAD_COLLECTION_TYPE",`${he.tag} used for ${we} collection, but expects ${he.collection}`,true)}else{be(Ee,"TAG_RESOLVE_FAILED",`Unresolved tag: ${Ce}`,true)}return resolveCollection(R,pe,Ae,be,Ce)}}const Ie=resolveCollection(R,pe,Ae,be,Ce,_e);const Se=_e.resolve?.(Ie,(R=>be(Ee,"TAG_RESOLVE_FAILED",R)),pe.options)??Ie;const Be=he.isNode(Se)?Se:new ge.Scalar(Se);Be.range=Ie.range;Be.tag=Ce;if(_e?.format)Be.format=_e.format;return Be}pe.composeCollection=composeCollection},25050:(R,pe,Ae)=>{"use strict";var he=Ae(10042);var ge=Ae(38676);var ye=Ae(1250);var me=Ae(6985);function composeDoc(R,pe,{offset:Ae,start:ve,value:be,end:Ee},Ce){const we=Object.assign({_directives:pe},R);const _e=new he.Document(undefined,we);const Ie={atRoot:true,directives:_e.directives,options:_e.options,schema:_e.schema};const Se=me.resolveProps(ve,{indicator:"doc-start",next:be??Ee?.[0],offset:Ae,onError:Ce,parentIndent:0,startOnNewline:true});if(Se.found){_e.directives.docStart=true;if(be&&(be.type==="block-map"||be.type==="block-seq")&&!Se.hasNewline)Ce(Se.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}_e.contents=be?ge.composeNode(Ie,be,Se,Ce):ge.composeEmptyNode(Ie,Se.end,ve,null,Se,Ce);const Be=_e.contents.range[2];const ke=ye.resolveEnd(Ee,Be,false,Ce);if(ke.comment)_e.comment=ke.comment;_e.range=[Ae,Be,ke.offset];return _e}pe.composeDoc=composeDoc},38676:(R,pe,Ae)=>{"use strict";var he=Ae(5639);var ge=Ae(8109);var ye=Ae(94766);var me=Ae(1250);var ve=Ae(78781);const be={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(R,pe,Ae,he){const{spaceBefore:me,comment:ve,anchor:Ee,tag:Ce}=Ae;let we;let _e=true;switch(pe.type){case"alias":we=composeAlias(R,pe,he);if(Ee||Ce)he(pe,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":we=ye.composeScalar(R,pe,Ce,he);if(Ee)we.anchor=Ee.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":we=ge.composeCollection(be,R,pe,Ae,he);if(Ee)we.anchor=Ee.source.substring(1);break;default:{const ge=pe.type==="error"?pe.message:`Unsupported token (type: ${pe.type})`;he(pe,"UNEXPECTED_TOKEN",ge);we=composeEmptyNode(R,pe.offset,undefined,null,Ae,he);_e=false}}if(Ee&&we.anchor==="")he(Ee,"BAD_ALIAS","Anchor cannot be an empty string");if(me)we.spaceBefore=true;if(ve){if(pe.type==="scalar"&&pe.source==="")we.comment=ve;else we.commentBefore=ve}if(R.options.keepSourceTokens&&_e)we.srcToken=pe;return we}function composeEmptyNode(R,pe,Ae,he,{spaceBefore:ge,comment:me,anchor:be,tag:Ee,end:Ce},we){const _e={type:"scalar",offset:ve.emptyScalarPosition(pe,Ae,he),indent:-1,source:""};const Ie=ye.composeScalar(R,_e,Ee,we);if(be){Ie.anchor=be.source.substring(1);if(Ie.anchor==="")we(be,"BAD_ALIAS","Anchor cannot be an empty string")}if(ge)Ie.spaceBefore=true;if(me){Ie.comment=me;Ie.range[2]=Ce}return Ie}function composeAlias({options:R},{offset:pe,source:Ae,end:ge},ye){const ve=new he.Alias(Ae.substring(1));if(ve.source==="")ye(pe,"BAD_ALIAS","Alias cannot be an empty string");if(ve.source.endsWith(":"))ye(pe+Ae.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const be=pe+Ae.length;const Ee=me.resolveEnd(ge,be,R.strict,ye);ve.range=[pe,be,Ee.offset];if(Ee.comment)ve.comment=Ee.comment;return ve}pe.composeEmptyNode=composeEmptyNode;pe.composeNode=composeNode},94766:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(9338);var ye=Ae(89485);var me=Ae(97578);function composeScalar(R,pe,Ae,ve){const{value:be,type:Ee,comment:Ce,range:we}=pe.type==="block-scalar"?ye.resolveBlockScalar(R,pe,ve):me.resolveFlowScalar(pe,R.options.strict,ve);const _e=Ae?R.directives.tagName(Ae.source,(R=>ve(Ae,"TAG_RESOLVE_FAILED",R))):null;const Ie=Ae&&_e?findScalarTagByName(R.schema,be,_e,Ae,ve):pe.type==="scalar"?findScalarTagByTest(R,be,pe,ve):R.schema[he.SCALAR];let Se;try{const ye=Ie.resolve(be,(R=>ve(Ae??pe,"TAG_RESOLVE_FAILED",R)),R.options);Se=he.isScalar(ye)?ye:new ge.Scalar(ye)}catch(R){const he=R instanceof Error?R.message:String(R);ve(Ae??pe,"TAG_RESOLVE_FAILED",he);Se=new ge.Scalar(be)}Se.range=we;Se.source=be;if(Ee)Se.type=Ee;if(_e)Se.tag=_e;if(Ie.format)Se.format=Ie.format;if(Ce)Se.comment=Ce;return Se}function findScalarTagByName(R,pe,Ae,ge,ye){if(Ae==="!")return R[he.SCALAR];const me=[];for(const pe of R.tags){if(!pe.collection&&pe.tag===Ae){if(pe.default&&pe.test)me.push(pe);else return pe}}for(const R of me)if(R.test?.test(pe))return R;const ve=R.knownTags[Ae];if(ve&&!ve.collection){R.tags.push(Object.assign({},ve,{default:false,test:undefined}));return ve}ye(ge,"TAG_RESOLVE_FAILED",`Unresolved tag: ${Ae}`,Ae!=="tag:yaml.org,2002:str");return R[he.SCALAR]}function findScalarTagByTest({directives:R,schema:pe},Ae,ge,ye){const me=pe.tags.find((R=>R.default&&R.test?.test(Ae)))||pe[he.SCALAR];if(pe.compat){const ve=pe.compat.find((R=>R.default&&R.test?.test(Ae)))??pe[he.SCALAR];if(me.tag!==ve.tag){const pe=R.tagString(me.tag);const Ae=R.tagString(ve.tag);const he=`Value may be parsed as either ${pe} or ${Ae}`;ye(ge,"TAG_RESOLVE_FAILED",he,true)}}return me}pe.composeScalar=composeScalar},45875:(R,pe,Ae)=>{"use strict";var he=Ae(5400);var ge=Ae(10042);var ye=Ae(14236);var me=Ae(15589);var ve=Ae(25050);var be=Ae(1250);function getErrorPos(R){if(typeof R==="number")return[R,R+1];if(Array.isArray(R))return R.length===2?R:[R[0],R[1]];const{offset:pe,source:Ae}=R;return[pe,pe+(typeof Ae==="string"?Ae.length:1)]}function parsePrelude(R){let pe="";let Ae=false;let he=false;for(let ge=0;ge{const ge=getErrorPos(R);if(he)this.warnings.push(new ye.YAMLWarning(ge,pe,Ae));else this.errors.push(new ye.YAMLParseError(ge,pe,Ae))};this.directives=new he.Directives({version:R.version||"1.2"});this.options=R}decorate(R,pe){const{comment:Ae,afterEmptyLine:he}=parsePrelude(this.prelude);if(Ae){const ge=R.contents;if(pe){R.comment=R.comment?`${R.comment}\n${Ae}`:Ae}else if(he||R.directives.docStart||!ge){R.commentBefore=Ae}else if(me.isCollection(ge)&&!ge.flow&&ge.items.length>0){let R=ge.items[0];if(me.isPair(R))R=R.key;const pe=R.commentBefore;R.commentBefore=pe?`${Ae}\n${pe}`:Ae}else{const R=ge.commentBefore;ge.commentBefore=R?`${Ae}\n${R}`:Ae}}if(pe){Array.prototype.push.apply(R.errors,this.errors);Array.prototype.push.apply(R.warnings,this.warnings)}else{R.errors=this.errors;R.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(R,pe=false,Ae=-1){for(const pe of R)yield*this.next(pe);yield*this.end(pe,Ae)}*next(R){if(process.env.LOG_STREAM)console.dir(R,{depth:null});switch(R.type){case"directive":this.directives.add(R.source,((pe,Ae,he)=>{const ge=getErrorPos(R);ge[0]+=pe;this.onError(ge,"BAD_DIRECTIVE",Ae,he)}));this.prelude.push(R.source);this.atDirectives=true;break;case"document":{const pe=ve.composeDoc(this.options,this.directives,R,this.onError);if(this.atDirectives&&!pe.directives.docStart)this.onError(R,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(pe,false);if(this.doc)yield this.doc;this.doc=pe;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(R.source);break;case"error":{const pe=R.source?`${R.message}: ${JSON.stringify(R.source)}`:R.message;const Ae=new ye.YAMLParseError(getErrorPos(R),"UNEXPECTED_TOKEN",pe);if(this.atDirectives||!this.doc)this.errors.push(Ae);else this.doc.errors.push(Ae);break}case"doc-end":{if(!this.doc){const pe="Unexpected doc-end without preceding document";this.errors.push(new ye.YAMLParseError(getErrorPos(R),"UNEXPECTED_TOKEN",pe));break}this.doc.directives.docEnd=true;const pe=be.resolveEnd(R.end,R.offset+R.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(pe.comment){const R=this.doc.comment;this.doc.comment=R?`${R}\n${pe.comment}`:pe.comment}this.doc.range[2]=pe.offset;break}default:this.errors.push(new ye.YAMLParseError(getErrorPos(R),"UNEXPECTED_TOKEN",`Unsupported token ${R.type}`))}}*end(R=false,pe=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(R){const R=Object.assign({_directives:this.directives},this.options);const Ae=new ge.Document(undefined,R);if(this.atDirectives)this.onError(pe,"MISSING_CHAR","Missing directives-end indicator line");Ae.range=[0,pe,pe];this.decorate(Ae,false);yield Ae}}}pe.Composer=Composer},62986:(R,pe,Ae)=>{"use strict";var he=Ae(246);var ge=Ae(16011);var ye=Ae(6985);var me=Ae(40976);var ve=Ae(83669);var be=Ae(66899);const Ee="All mapping items must start at the same column";function resolveBlockMap({composeNode:R,composeEmptyNode:pe},Ae,Ce,we,_e){const Ie=_e?.nodeClass??ge.YAMLMap;const Se=new Ie(Ae.schema);if(Ae.atRoot)Ae.atRoot=false;let Be=Ce.offset;let ke=null;for(const ge of Ce.items){const{start:_e,key:Ie,sep:Oe,value:Re}=ge;const Qe=ye.resolveProps(_e,{indicator:"explicit-key-ind",next:Ie??Oe?.[0],offset:Be,onError:we,parentIndent:Ce.indent,startOnNewline:true});const xe=!Qe.found;if(xe){if(Ie){if(Ie.type==="block-seq")we(Be,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in Ie&&Ie.indent!==Ce.indent)we(Be,"BAD_INDENT",Ee)}if(!Qe.anchor&&!Qe.tag&&!Oe){ke=Qe.end;if(Qe.comment){if(Se.comment)Se.comment+="\n"+Qe.comment;else Se.comment=Qe.comment}continue}if(Qe.newlineAfterProp||me.containsNewline(Ie)){we(Ie??_e[_e.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(Qe.found?.indent!==Ce.indent){we(Be,"BAD_INDENT",Ee)}const Pe=Qe.end;const Te=Ie?R(Ae,Ie,Qe,we):pe(Ae,Pe,_e,null,Qe,we);if(Ae.schema.compat)ve.flowIndentCheck(Ce.indent,Ie,we);if(be.mapIncludes(Ae,Se.items,Te))we(Pe,"DUPLICATE_KEY","Map keys must be unique");const De=ye.resolveProps(Oe??[],{indicator:"map-value-ind",next:Re,offset:Te.range[2],onError:we,parentIndent:Ce.indent,startOnNewline:!Ie||Ie.type==="block-scalar"});Be=De.end;if(De.found){if(xe){if(Re?.type==="block-map"&&!De.hasNewline)we(Be,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(Ae.options.strict&&Qe.start{"use strict";var he=Ae(9338);function resolveBlockScalar(R,pe,Ae){const ge=pe.offset;const ye=parseBlockScalarHeader(pe,R.options.strict,Ae);if(!ye)return{value:"",type:null,comment:"",range:[ge,ge,ge]};const me=ye.mode===">"?he.Scalar.BLOCK_FOLDED:he.Scalar.BLOCK_LITERAL;const ve=pe.source?splitLines(pe.source):[];let be=ve.length;for(let R=ve.length-1;R>=0;--R){const pe=ve[R][1];if(pe===""||pe==="\r")be=R;else break}if(be===0){const R=ye.chomp==="+"&&ve.length>0?"\n".repeat(Math.max(1,ve.length-1)):"";let Ae=ge+ye.length;if(pe.source)Ae+=pe.source.length;return{value:R,type:me,comment:ye.comment,range:[ge,Ae,Ae]}}let Ee=pe.indent+ye.indent;let Ce=pe.offset+ye.length;let we=0;for(let pe=0;peEe)Ee=he.length}else{if(he.length=be;--R){if(ve[R][0].length>Ee)be=R+1}let _e="";let Ie="";let Se=false;for(let R=0;REe||ge[0]==="\t"){if(Ie===" ")Ie="\n";else if(!Se&&Ie==="\n")Ie="\n\n";_e+=Ie+pe.slice(Ee)+ge;Ie="\n";Se=true}else if(ge===""){if(Ie==="\n")_e+="\n";else Ie="\n"}else{_e+=Ie+ge;Ie=" ";Se=false}}switch(ye.chomp){case"-":break;case"+":for(let R=be;R{"use strict";var he=Ae(25161);var ge=Ae(6985);var ye=Ae(83669);function resolveBlockSeq({composeNode:R,composeEmptyNode:pe},Ae,me,ve,be){const Ee=be?.nodeClass??he.YAMLSeq;const Ce=new Ee(Ae.schema);if(Ae.atRoot)Ae.atRoot=false;let we=me.offset;let _e=null;for(const{start:he,value:be}of me.items){const Ee=ge.resolveProps(he,{indicator:"seq-item-ind",next:be,offset:we,onError:ve,parentIndent:me.indent,startOnNewline:true});if(!Ee.found){if(Ee.anchor||Ee.tag||be){if(be&&be.type==="block-seq")ve(Ee.end,"BAD_INDENT","All sequence items must start at the same column");else ve(we,"MISSING_CHAR","Sequence item without - indicator")}else{_e=Ee.end;if(Ee.comment)Ce.comment=Ee.comment;continue}}const Ie=be?R(Ae,be,Ee,ve):pe(Ae,Ee.end,he,null,Ee,ve);if(Ae.schema.compat)ye.flowIndentCheck(me.indent,be,ve);we=Ie.range[2];Ce.items.push(Ie)}Ce.range=[me.offset,we,_e??we];return Ce}pe.resolveBlockSeq=resolveBlockSeq},1250:(R,pe)=>{"use strict";function resolveEnd(R,pe,Ae,he){let ge="";if(R){let ye=false;let me="";for(const ve of R){const{source:R,type:be}=ve;switch(be){case"space":ye=true;break;case"comment":{if(Ae&&!ye)he(ve,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const pe=R.substring(1)||" ";if(!ge)ge=pe;else ge+=me+pe;me="";break}case"newline":if(ge)me+=R;ye=true;break;default:he(ve,"UNEXPECTED_TOKEN",`Unexpected ${be} at node end`)}pe+=R.length}}return{comment:ge,offset:pe}}pe.resolveEnd=resolveEnd},20045:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(246);var ye=Ae(16011);var me=Ae(25161);var ve=Ae(1250);var be=Ae(6985);var Ee=Ae(40976);var Ce=Ae(66899);const we="Block collections are not allowed within flow collections";const isBlock=R=>R&&(R.type==="block-map"||R.type==="block-seq");function resolveFlowCollection({composeNode:R,composeEmptyNode:pe},Ae,_e,Ie,Se){const Be=_e.start.source==="{";const ke=Be?"flow map":"flow sequence";const Oe=Se?.nodeClass??(Be?ye.YAMLMap:me.YAMLSeq);const Re=new Oe(Ae.schema);Re.flow=true;const Qe=Ae.atRoot;if(Qe)Ae.atRoot=false;let xe=_e.offset+_e.start.source.length;for(let me=0;me<_e.items.length;++me){const ve=_e.items[me];const{start:Se,key:Oe,sep:Qe,value:Pe}=ve;const Te=be.resolveProps(Se,{flow:ke,indicator:"explicit-key-ind",next:Oe??Qe?.[0],offset:xe,onError:Ie,parentIndent:_e.indent,startOnNewline:false});if(!Te.found){if(!Te.anchor&&!Te.tag&&!Qe&&!Pe){if(me===0&&Te.comma)Ie(Te.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${ke}`);else if(me<_e.items.length-1)Ie(Te.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${ke}`);if(Te.comment){if(Re.comment)Re.comment+="\n"+Te.comment;else Re.comment=Te.comment}xe=Te.end;continue}if(!Be&&Ae.options.strict&&Ee.containsNewline(Oe))Ie(Oe,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(me===0){if(Te.comma)Ie(Te.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${ke}`)}else{if(!Te.comma)Ie(Te.start,"MISSING_CHAR",`Missing , between ${ke} items`);if(Te.comment){let R="";e:for(const pe of Se){switch(pe.type){case"comma":case"space":break;case"comment":R=pe.source.substring(1);break e;default:break e}}if(R){let pe=Re.items[Re.items.length-1];if(he.isPair(pe))pe=pe.value??pe.key;if(pe.comment)pe.comment+="\n"+R;else pe.comment=R;Te.comment=Te.comment.substring(R.length+1)}}}if(!Be&&!Qe&&!Te.found){const he=Pe?R(Ae,Pe,Te,Ie):pe(Ae,Te.end,Qe,null,Te,Ie);Re.items.push(he);xe=he.range[2];if(isBlock(Pe))Ie(he.range,"BLOCK_IN_FLOW",we)}else{const he=Te.end;const me=Oe?R(Ae,Oe,Te,Ie):pe(Ae,he,Se,null,Te,Ie);if(isBlock(Oe))Ie(me.range,"BLOCK_IN_FLOW",we);const Ee=be.resolveProps(Qe??[],{flow:ke,indicator:"map-value-ind",next:Pe,offset:me.range[2],onError:Ie,parentIndent:_e.indent,startOnNewline:false});if(Ee.found){if(!Be&&!Te.found&&Ae.options.strict){if(Qe)for(const R of Qe){if(R===Ee.found)break;if(R.type==="newline"){Ie(R,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(Te.start0){const R=ve.resolveEnd(De,Ne,Ae.options.strict,Ie);if(R.comment){if(Re.comment)Re.comment+="\n"+R.comment;else Re.comment=R.comment}Re.range=[_e.offset,Ne,R.offset]}else{Re.range=[_e.offset,Ne,Ne]}return Re}pe.resolveFlowCollection=resolveFlowCollection},97578:(R,pe,Ae)=>{"use strict";var he=Ae(9338);var ge=Ae(1250);function resolveFlowScalar(R,pe,Ae){const{offset:ye,type:me,source:ve,end:be}=R;let Ee;let Ce;const _onError=(R,pe,he)=>Ae(ye+R,pe,he);switch(me){case"scalar":Ee=he.Scalar.PLAIN;Ce=plainValue(ve,_onError);break;case"single-quoted-scalar":Ee=he.Scalar.QUOTE_SINGLE;Ce=singleQuotedValue(ve,_onError);break;case"double-quoted-scalar":Ee=he.Scalar.QUOTE_DOUBLE;Ce=doubleQuotedValue(ve,_onError);break;default:Ae(R,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${me}`);return{value:"",type:null,comment:"",range:[ye,ye+ve.length,ye+ve.length]}}const we=ye+ve.length;const _e=ge.resolveEnd(be,we,pe,Ae);return{value:Ce,type:Ee,comment:_e.comment,range:[ye,we,_e.offset]}}function plainValue(R,pe){let Ae="";switch(R[0]){case"\t":Ae="a tab character";break;case",":Ae="flow indicator character ,";break;case"%":Ae="directive indicator character %";break;case"|":case">":{Ae=`block scalar indicator ${R[0]}`;break}case"@":case"`":{Ae=`reserved character ${R[0]}`;break}}if(Ae)pe(0,"BAD_SCALAR_START",`Plain value cannot start with ${Ae}`);return foldLines(R)}function singleQuotedValue(R,pe){if(R[R.length-1]!=="'"||R.length===1)pe(R.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(R.slice(1,-1)).replace(/''/g,"'")}function foldLines(R){let pe,Ae;try{pe=new RegExp("(.*?)(?pe?R.slice(pe,he+1):ge}else{Ae+=ge}}if(R[R.length-1]!=='"'||R.length===1)pe(R.length,"MISSING_CHAR",'Missing closing "quote');return Ae}function foldNewline(R,pe){let Ae="";let he=R[pe+1];while(he===" "||he==="\t"||he==="\n"||he==="\r"){if(he==="\r"&&R[pe+2]!=="\n")break;if(he==="\n")Ae+="\n";pe+=1;he=R[pe+1]}if(!Ae)Ae=" ";return{fold:Ae,offset:pe}}const ye={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(R,pe,Ae,he){const ge=R.substr(pe,Ae);const ye=ge.length===Ae&&/^[0-9a-fA-F]+$/.test(ge);const me=ye?parseInt(ge,16):NaN;if(isNaN(me)){const ge=R.substr(pe-2,Ae+2);he(pe-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${ge}`);return ge}return String.fromCodePoint(me)}pe.resolveFlowScalar=resolveFlowScalar},6985:(R,pe)=>{"use strict";function resolveProps(R,{flow:pe,indicator:Ae,next:he,offset:ge,onError:ye,parentIndent:me,startOnNewline:ve}){let be=false;let Ee=ve;let Ce=ve;let we="";let _e="";let Ie=false;let Se=false;let Be=null;let ke=null;let Oe=null;let Re=null;let Qe=null;let xe=null;let Pe=null;for(const ge of R){if(Se){if(ge.type!=="space"&&ge.type!=="newline"&&ge.type!=="comma")ye(ge.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");Se=false}if(Be){if(Ee&&ge.type!=="comment"&&ge.type!=="newline"){ye(Be,"TAB_AS_INDENT","Tabs are not allowed as indentation")}Be=null}switch(ge.type){case"space":if(!pe&&(Ae!=="doc-start"||he?.type!=="flow-collection")&&ge.source.includes("\t")){Be=ge}Ce=true;break;case"comment":{if(!Ce)ye(ge,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const R=ge.source.substring(1)||" ";if(!we)we=R;else we+=_e+R;_e="";Ee=false;break}case"newline":if(Ee){if(we)we+=ge.source;else be=true}else _e+=ge.source;Ee=true;Ie=true;if(ke||Oe)Re=ge;Ce=true;break;case"anchor":if(ke)ye(ge,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(ge.source.endsWith(":"))ye(ge.offset+ge.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);ke=ge;if(Pe===null)Pe=ge.offset;Ee=false;Ce=false;Se=true;break;case"tag":{if(Oe)ye(ge,"MULTIPLE_TAGS","A node can have at most one tag");Oe=ge;if(Pe===null)Pe=ge.offset;Ee=false;Ce=false;Se=true;break}case Ae:if(ke||Oe)ye(ge,"BAD_PROP_ORDER",`Anchors and tags must be after the ${ge.source} indicator`);if(xe)ye(ge,"UNEXPECTED_TOKEN",`Unexpected ${ge.source} in ${pe??"collection"}`);xe=ge;Ee=Ae==="seq-item-ind"||Ae==="explicit-key-ind";Ce=false;break;case"comma":if(pe){if(Qe)ye(ge,"UNEXPECTED_TOKEN",`Unexpected , in ${pe}`);Qe=ge;Ee=false;Ce=false;break}default:ye(ge,"UNEXPECTED_TOKEN",`Unexpected ${ge.type} token`);Ee=false;Ce=false}}const Te=R[R.length-1];const De=Te?Te.offset+Te.source.length:ge;if(Se&&he&&he.type!=="space"&&he.type!=="newline"&&he.type!=="comma"&&(he.type!=="scalar"||he.source!=="")){ye(he.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(Be&&(Ee&&Be.indent<=me||he?.type==="block-map"||he?.type==="block-seq"))ye(Be,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:Qe,found:xe,spaceBefore:be,comment:we,hasNewline:Ie,anchor:ke,tag:Oe,newlineAfterProp:Re,end:De,start:Pe??De}}pe.resolveProps=resolveProps},40976:(R,pe)=>{"use strict";function containsNewline(R){if(!R)return null;switch(R.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(R.source.includes("\n"))return true;if(R.end)for(const pe of R.end)if(pe.type==="newline")return true;return false;case"flow-collection":for(const pe of R.items){for(const R of pe.start)if(R.type==="newline")return true;if(pe.sep)for(const R of pe.sep)if(R.type==="newline")return true;if(containsNewline(pe.key)||containsNewline(pe.value))return true}return false;default:return true}}pe.containsNewline=containsNewline},78781:(R,pe)=>{"use strict";function emptyScalarPosition(R,pe,Ae){if(pe){if(Ae===null)Ae=pe.length;for(let he=Ae-1;he>=0;--he){let Ae=pe[he];switch(Ae.type){case"space":case"comment":case"newline":R-=Ae.source.length;continue}Ae=pe[++he];while(Ae?.type==="space"){R+=Ae.source.length;Ae=pe[++he]}break}}return R}pe.emptyScalarPosition=emptyScalarPosition},83669:(R,pe,Ae)=>{"use strict";var he=Ae(40976);function flowIndentCheck(R,pe,Ae){if(pe?.type==="flow-collection"){const ge=pe.end[0];if(ge.indent===R&&(ge.source==="]"||ge.source==="}")&&he.containsNewline(pe)){const R="Flow end indicator should be more indented than parent";Ae(ge,"BAD_INDENT",R,true)}}}pe.flowIndentCheck=flowIndentCheck},66899:(R,pe,Ae)=>{"use strict";var he=Ae(15589);function mapIncludes(R,pe,Ae){const{uniqueKeys:ge}=R.options;if(ge===false)return false;const ye=typeof ge==="function"?ge:(pe,Ae)=>pe===Ae||he.isScalar(pe)&&he.isScalar(Ae)&&pe.value===Ae.value&&!(pe.value==="<<"&&R.schema.merge);return pe.some((R=>ye(R.key,Ae)))}pe.mapIncludes=mapIncludes},10042:(R,pe,Ae)=>{"use strict";var he=Ae(5639);var ge=Ae(3466);var ye=Ae(15589);var me=Ae(246);var ve=Ae(72463);var be=Ae(56831);var Ee=Ae(35225);var Ce=Ae(28459);var we=Ae(63412);var _e=Ae(9652);var Ie=Ae(5400);class Document{constructor(R,pe,Ae){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,ye.NODE_TYPE,{value:ye.DOC});let he=null;if(typeof pe==="function"||Array.isArray(pe)){he=pe}else if(Ae===undefined&&pe){Ae=pe;pe=undefined}const ge=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},Ae);this.options=ge;let{version:me}=ge;if(Ae?._directives){this.directives=Ae._directives.atDocument();if(this.directives.yaml.explicit)me=this.directives.yaml.version}else this.directives=new Ie.Directives({version:me});this.setSchema(me,Ae);this.contents=R===undefined?null:this.createNode(R,he,Ae)}clone(){const R=Object.create(Document.prototype,{[ye.NODE_TYPE]:{value:ye.DOC}});R.commentBefore=this.commentBefore;R.comment=this.comment;R.errors=this.errors.slice();R.warnings=this.warnings.slice();R.options=Object.assign({},this.options);if(this.directives)R.directives=this.directives.clone();R.schema=this.schema.clone();R.contents=ye.isNode(this.contents)?this.contents.clone(R.schema):this.contents;if(this.range)R.range=this.range.slice();return R}add(R){if(assertCollection(this.contents))this.contents.add(R)}addIn(R,pe){if(assertCollection(this.contents))this.contents.addIn(R,pe)}createAlias(R,pe){if(!R.anchor){const Ae=Ce.anchorNames(this);R.anchor=!pe||Ae.has(pe)?Ce.findNewAnchor(pe||"a",Ae):pe}return new he.Alias(R.anchor)}createNode(R,pe,Ae){let he=undefined;if(typeof pe==="function"){R=pe.call({"":R},"",R);he=pe}else if(Array.isArray(pe)){const keyToStr=R=>typeof R==="number"||R instanceof String||R instanceof Number;const R=pe.filter(keyToStr).map(String);if(R.length>0)pe=pe.concat(R);he=pe}else if(Ae===undefined&&pe){Ae=pe;pe=undefined}const{aliasDuplicateObjects:ge,anchorPrefix:me,flow:ve,keepUndefined:be,onTagObj:Ee,tag:we}=Ae??{};const{onAnchor:Ie,setAnchors:Se,sourceObjects:Be}=Ce.createNodeAnchors(this,me||"a");const ke={aliasDuplicateObjects:ge??true,keepUndefined:be??false,onAnchor:Ie,onTagObj:Ee,replacer:he,schema:this.schema,sourceObjects:Be};const Oe=_e.createNode(R,we,ke);if(ve&&ye.isCollection(Oe))Oe.flow=true;Se();return Oe}createPair(R,pe,Ae={}){const he=this.createNode(R,null,Ae);const ge=this.createNode(pe,null,Ae);return new me.Pair(he,ge)}delete(R){return assertCollection(this.contents)?this.contents.delete(R):false}deleteIn(R){if(ge.isEmptyPath(R)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(R):false}get(R,pe){return ye.isCollection(this.contents)?this.contents.get(R,pe):undefined}getIn(R,pe){if(ge.isEmptyPath(R))return!pe&&ye.isScalar(this.contents)?this.contents.value:this.contents;return ye.isCollection(this.contents)?this.contents.getIn(R,pe):undefined}has(R){return ye.isCollection(this.contents)?this.contents.has(R):false}hasIn(R){if(ge.isEmptyPath(R))return this.contents!==undefined;return ye.isCollection(this.contents)?this.contents.hasIn(R):false}set(R,pe){if(this.contents==null){this.contents=ge.collectionFromPath(this.schema,[R],pe)}else if(assertCollection(this.contents)){this.contents.set(R,pe)}}setIn(R,pe){if(ge.isEmptyPath(R)){this.contents=pe}else if(this.contents==null){this.contents=ge.collectionFromPath(this.schema,Array.from(R),pe)}else if(assertCollection(this.contents)){this.contents.setIn(R,pe)}}setSchema(R,pe={}){if(typeof R==="number")R=String(R);let Ae;switch(R){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new Ie.Directives({version:"1.1"});Ae={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=R;else this.directives=new Ie.Directives({version:R});Ae={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;Ae=null;break;default:{const pe=JSON.stringify(R);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${pe}`)}}if(pe.schema instanceof Object)this.schema=pe.schema;else if(Ae)this.schema=new be.Schema(Object.assign(Ae,pe));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:R,jsonArg:pe,mapAsMap:Ae,maxAliasCount:he,onAnchor:ge,reviver:ye}={}){const me={anchors:new Map,doc:this,keep:!R,mapAsMap:Ae===true,mapKeyWarned:false,maxAliasCount:typeof he==="number"?he:100};const be=ve.toJS(this.contents,pe??"",me);if(typeof ge==="function")for(const{count:R,res:pe}of me.anchors.values())ge(pe,R);return typeof ye==="function"?we.applyReviver(ye,{"":be},"",be):be}toJSON(R,pe){return this.toJS({json:true,jsonArg:R,mapAsMap:false,onAnchor:pe})}toString(R={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in R&&(!Number.isInteger(R.indent)||Number(R.indent)<=0)){const pe=JSON.stringify(R.indent);throw new Error(`"indent" option must be a positive integer, not ${pe}`)}return Ee.stringifyDocument(this,R)}}function assertCollection(R){if(ye.isCollection(R))return true;throw new Error("Expected a YAML collection as document contents")}pe.Document=Document},28459:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(16796);function anchorIsValid(R){if(/[\x00-\x19\s,[\]{}]/.test(R)){const pe=JSON.stringify(R);const Ae=`Anchor must not contain whitespace or control characters: ${pe}`;throw new Error(Ae)}return true}function anchorNames(R){const pe=new Set;ge.visit(R,{Value(R,Ae){if(Ae.anchor)pe.add(Ae.anchor)}});return pe}function findNewAnchor(R,pe){for(let Ae=1;true;++Ae){const he=`${R}${Ae}`;if(!pe.has(he))return he}}function createNodeAnchors(R,pe){const Ae=[];const ge=new Map;let ye=null;return{onAnchor:he=>{Ae.push(he);if(!ye)ye=anchorNames(R);const ge=findNewAnchor(pe,ye);ye.add(ge);return ge},setAnchors:()=>{for(const R of Ae){const pe=ge.get(R);if(typeof pe==="object"&&pe.anchor&&(he.isScalar(pe.node)||he.isCollection(pe.node))){pe.node.anchor=pe.anchor}else{const pe=new Error("Failed to resolve repeated object (this should not happen)");pe.source=R;throw pe}}},sourceObjects:ge}}pe.anchorIsValid=anchorIsValid;pe.anchorNames=anchorNames;pe.createNodeAnchors=createNodeAnchors;pe.findNewAnchor=findNewAnchor},63412:(R,pe)=>{"use strict";function applyReviver(R,pe,Ae,he){if(he&&typeof he==="object"){if(Array.isArray(he)){for(let pe=0,Ae=he.length;pe{"use strict";var he=Ae(5639);var ge=Ae(15589);var ye=Ae(9338);const me="tag:yaml.org,2002:";function findTagObject(R,pe,Ae){if(pe){const R=Ae.filter((R=>R.tag===pe));const he=R.find((R=>!R.format))??R[0];if(!he)throw new Error(`Tag ${pe} not found`);return he}return Ae.find((pe=>pe.identify?.(R)&&!pe.format))}function createNode(R,pe,Ae){if(ge.isDocument(R))R=R.contents;if(ge.isNode(R))return R;if(ge.isPair(R)){const pe=Ae.schema[ge.MAP].createNode?.(Ae.schema,null,Ae);pe.items.push(R);return pe}if(R instanceof String||R instanceof Number||R instanceof Boolean||typeof BigInt!=="undefined"&&R instanceof BigInt){R=R.valueOf()}const{aliasDuplicateObjects:ve,onAnchor:be,onTagObj:Ee,schema:Ce,sourceObjects:we}=Ae;let _e=undefined;if(ve&&R&&typeof R==="object"){_e=we.get(R);if(_e){if(!_e.anchor)_e.anchor=be(R);return new he.Alias(_e.anchor)}else{_e={anchor:null,node:null};we.set(R,_e)}}if(pe?.startsWith("!!"))pe=me+pe.slice(2);let Ie=findTagObject(R,pe,Ce.tags);if(!Ie){if(R&&typeof R.toJSON==="function"){R=R.toJSON()}if(!R||typeof R!=="object"){const pe=new ye.Scalar(R);if(_e)_e.node=pe;return pe}Ie=R instanceof Map?Ce[ge.MAP]:Symbol.iterator in Object(R)?Ce[ge.SEQ]:Ce[ge.MAP]}if(Ee){Ee(Ie);delete Ae.onTagObj}const Se=Ie?.createNode?Ie.createNode(Ae.schema,R,Ae):typeof Ie?.nodeClass?.from==="function"?Ie.nodeClass.from(Ae.schema,R,Ae):new ye.Scalar(R);if(pe)Se.tag=pe;else if(!Ie.default)Se.tag=Ie.tag;if(_e)_e.node=Se;return Se}pe.createNode=createNode},5400:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(16796);const ye={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=R=>R.replace(/[!,[\]{}]/g,(R=>ye[R]));class Directives{constructor(R,pe){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,R);this.tags=Object.assign({},Directives.defaultTags,pe)}clone(){const R=new Directives(this.yaml,this.tags);R.docStart=this.docStart;return R}atDocument(){const R=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return R}add(R,pe){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const Ae=R.trim().split(/[ \t]+/);const he=Ae.shift();switch(he){case"%TAG":{if(Ae.length!==2){pe(0,"%TAG directive should contain exactly two parts");if(Ae.length<2)return false}const[R,he]=Ae;this.tags[R]=he;return true}case"%YAML":{this.yaml.explicit=true;if(Ae.length!==1){pe(0,"%YAML directive should contain exactly one part");return false}const[R]=Ae;if(R==="1.1"||R==="1.2"){this.yaml.version=R;return true}else{const Ae=/^\d+\.\d+$/.test(R);pe(6,`Unsupported YAML version ${R}`,Ae);return false}}default:pe(0,`Unknown directive ${he}`,true);return false}}tagName(R,pe){if(R==="!")return"!";if(R[0]!=="!"){pe(`Not a valid tag: ${R}`);return null}if(R[1]==="<"){const Ae=R.slice(2,-1);if(Ae==="!"||Ae==="!!"){pe(`Verbatim tags aren't resolved, so ${R} is invalid.`);return null}if(R[R.length-1]!==">")pe("Verbatim tags must end with a >");return Ae}const[,Ae,he]=R.match(/^(.*!)([^!]*)$/s);if(!he)pe(`The ${R} tag has no suffix`);const ge=this.tags[Ae];if(ge){try{return ge+decodeURIComponent(he)}catch(R){pe(String(R));return null}}if(Ae==="!")return R;pe(`Could not resolve tag: ${R}`);return null}tagString(R){for(const[pe,Ae]of Object.entries(this.tags)){if(R.startsWith(Ae))return pe+escapeTagName(R.substring(Ae.length))}return R[0]==="!"?R:`!<${R}>`}toString(R){const pe=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const Ae=Object.entries(this.tags);let ye;if(R&&Ae.length>0&&he.isNode(R.contents)){const pe={};ge.visit(R.contents,((R,Ae)=>{if(he.isNode(Ae)&&Ae.tag)pe[Ae.tag]=true}));ye=Object.keys(pe)}else ye=[];for(const[he,ge]of Ae){if(he==="!!"&&ge==="tag:yaml.org,2002:")continue;if(!R||ye.some((R=>R.startsWith(ge))))pe.push(`%TAG ${he} ${ge}`)}return pe.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};pe.Directives=Directives},14236:(R,pe)=>{"use strict";class YAMLError extends Error{constructor(R,pe,Ae,he){super();this.name=R;this.code=Ae;this.message=he;this.pos=pe}}class YAMLParseError extends YAMLError{constructor(R,pe,Ae){super("YAMLParseError",R,pe,Ae)}}class YAMLWarning extends YAMLError{constructor(R,pe,Ae){super("YAMLWarning",R,pe,Ae)}}const prettifyError=(R,pe)=>Ae=>{if(Ae.pos[0]===-1)return;Ae.linePos=Ae.pos.map((R=>pe.linePos(R)));const{line:he,col:ge}=Ae.linePos[0];Ae.message+=` at line ${he}, column ${ge}`;let ye=ge-1;let me=R.substring(pe.lineStarts[he-1],pe.lineStarts[he]).replace(/[\n\r]+$/,"");if(ye>=60&&me.length>80){const R=Math.min(ye-39,me.length-79);me="…"+me.substring(R);ye-=R-1}if(me.length>80)me=me.substring(0,79)+"…";if(he>1&&/^ *$/.test(me.substring(0,ye))){let Ae=R.substring(pe.lineStarts[he-2],pe.lineStarts[he-1]);if(Ae.length>80)Ae=Ae.substring(0,79)+"…\n";me=Ae+me}if(/[^ ]/.test(me)){let R=1;const pe=Ae.linePos[1];if(pe&&pe.line===he&&pe.col>ge){R=Math.max(1,Math.min(pe.col-ge,80-ye))}const ve=" ".repeat(ye)+"^".repeat(R);Ae.message+=`:\n\n${me}\n${ve}\n`}};pe.YAMLError=YAMLError;pe.YAMLParseError=YAMLParseError;pe.YAMLWarning=YAMLWarning;pe.prettifyError=prettifyError},44083:(R,pe,Ae)=>{"use strict";var he=Ae(45875);var ge=Ae(10042);var ye=Ae(56831);var me=Ae(14236);var ve=Ae(5639);var be=Ae(15589);var Ee=Ae(246);var Ce=Ae(9338);var we=Ae(16011);var _e=Ae(25161);var Ie=Ae(19169);var Se=Ae(45976);var Be=Ae(21929);var ke=Ae(73328);var Oe=Ae(28649);var Re=Ae(16796);pe.Composer=he.Composer;pe.Document=ge.Document;pe.Schema=ye.Schema;pe.YAMLError=me.YAMLError;pe.YAMLParseError=me.YAMLParseError;pe.YAMLWarning=me.YAMLWarning;pe.Alias=ve.Alias;pe.isAlias=be.isAlias;pe.isCollection=be.isCollection;pe.isDocument=be.isDocument;pe.isMap=be.isMap;pe.isNode=be.isNode;pe.isPair=be.isPair;pe.isScalar=be.isScalar;pe.isSeq=be.isSeq;pe.Pair=Ee.Pair;pe.Scalar=Ce.Scalar;pe.YAMLMap=we.YAMLMap;pe.YAMLSeq=_e.YAMLSeq;pe.CST=Ie;pe.Lexer=Se.Lexer;pe.LineCounter=Be.LineCounter;pe.Parser=ke.Parser;pe.parse=Oe.parse;pe.parseAllDocuments=Oe.parseAllDocuments;pe.parseDocument=Oe.parseDocument;pe.stringify=Oe.stringify;pe.visit=Re.visit;pe.visitAsync=Re.visitAsync},36909:(R,pe)=>{"use strict";function debug(R,...pe){if(R==="debug")console.log(...pe)}function warn(R,pe){if(R==="debug"||R==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(pe);else console.warn(pe)}}pe.debug=debug;pe.warn=warn},5639:(R,pe,Ae)=>{"use strict";var he=Ae(28459);var ge=Ae(16796);var ye=Ae(15589);var me=Ae(41399);var ve=Ae(72463);class Alias extends me.NodeBase{constructor(R){super(ye.ALIAS);this.source=R;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(R){let pe=undefined;ge.visit(R,{Node:(R,Ae)=>{if(Ae===this)return ge.visit.BREAK;if(Ae.anchor===this.source)pe=Ae}});return pe}toJSON(R,pe){if(!pe)return{source:this.source};const{anchors:Ae,doc:he,maxAliasCount:ge}=pe;const ye=this.resolve(he);if(!ye){const R=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(R)}let me=Ae.get(ye);if(!me){ve.toJS(ye,null,pe);me=Ae.get(ye)}if(!me||me.res===undefined){const R="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(R)}if(ge>=0){me.count+=1;if(me.aliasCount===0)me.aliasCount=getAliasCount(he,ye,Ae);if(me.count*me.aliasCount>ge){const R="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(R)}}return me.res}toString(R,pe,Ae){const ge=`*${this.source}`;if(R){he.anchorIsValid(this.source);if(R.options.verifyAliasOrder&&!R.anchors.has(this.source)){const R=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(R)}if(R.implicitKey)return`${ge} `}return ge}}function getAliasCount(R,pe,Ae){if(ye.isAlias(pe)){const he=pe.resolve(R);const ge=Ae&&he&&Ae.get(he);return ge?ge.count*ge.aliasCount:0}else if(ye.isCollection(pe)){let he=0;for(const ge of pe.items){const pe=getAliasCount(R,ge,Ae);if(pe>he)he=pe}return he}else if(ye.isPair(pe)){const he=getAliasCount(R,pe.key,Ae);const ge=getAliasCount(R,pe.value,Ae);return Math.max(he,ge)}return 1}pe.Alias=Alias},3466:(R,pe,Ae)=>{"use strict";var he=Ae(9652);var ge=Ae(15589);var ye=Ae(41399);function collectionFromPath(R,pe,Ae){let ge=Ae;for(let R=pe.length-1;R>=0;--R){const Ae=pe[R];if(typeof Ae==="number"&&Number.isInteger(Ae)&&Ae>=0){const R=[];R[Ae]=ge;ge=R}else{ge=new Map([[Ae,ge]])}}return he.createNode(ge,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:R,sourceObjects:new Map})}const isEmptyPath=R=>R==null||typeof R==="object"&&!!R[Symbol.iterator]().next().done;class Collection extends ye.NodeBase{constructor(R,pe){super(R);Object.defineProperty(this,"schema",{value:pe,configurable:true,enumerable:false,writable:true})}clone(R){const pe=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(R)pe.schema=R;pe.items=pe.items.map((pe=>ge.isNode(pe)||ge.isPair(pe)?pe.clone(R):pe));if(this.range)pe.range=this.range.slice();return pe}addIn(R,pe){if(isEmptyPath(R))this.add(pe);else{const[Ae,...he]=R;const ye=this.get(Ae,true);if(ge.isCollection(ye))ye.addIn(he,pe);else if(ye===undefined&&this.schema)this.set(Ae,collectionFromPath(this.schema,he,pe));else throw new Error(`Expected YAML collection at ${Ae}. Remaining path: ${he}`)}}deleteIn(R){const[pe,...Ae]=R;if(Ae.length===0)return this.delete(pe);const he=this.get(pe,true);if(ge.isCollection(he))return he.deleteIn(Ae);else throw new Error(`Expected YAML collection at ${pe}. Remaining path: ${Ae}`)}getIn(R,pe){const[Ae,...he]=R;const ye=this.get(Ae,true);if(he.length===0)return!pe&&ge.isScalar(ye)?ye.value:ye;else return ge.isCollection(ye)?ye.getIn(he,pe):undefined}hasAllNullValues(R){return this.items.every((pe=>{if(!ge.isPair(pe))return false;const Ae=pe.value;return Ae==null||R&&ge.isScalar(Ae)&&Ae.value==null&&!Ae.commentBefore&&!Ae.comment&&!Ae.tag}))}hasIn(R){const[pe,...Ae]=R;if(Ae.length===0)return this.has(pe);const he=this.get(pe,true);return ge.isCollection(he)?he.hasIn(Ae):false}setIn(R,pe){const[Ae,...he]=R;if(he.length===0){this.set(Ae,pe)}else{const R=this.get(Ae,true);if(ge.isCollection(R))R.setIn(he,pe);else if(R===undefined&&this.schema)this.set(Ae,collectionFromPath(this.schema,he,pe));else throw new Error(`Expected YAML collection at ${Ae}. Remaining path: ${he}`)}}}pe.Collection=Collection;pe.collectionFromPath=collectionFromPath;pe.isEmptyPath=isEmptyPath},41399:(R,pe,Ae)=>{"use strict";var he=Ae(63412);var ge=Ae(15589);var ye=Ae(72463);class NodeBase{constructor(R){Object.defineProperty(this,ge.NODE_TYPE,{value:R})}clone(){const R=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)R.range=this.range.slice();return R}toJS(R,{mapAsMap:pe,maxAliasCount:Ae,onAnchor:me,reviver:ve}={}){if(!ge.isDocument(R))throw new TypeError("A document argument is required");const be={anchors:new Map,doc:R,keep:true,mapAsMap:pe===true,mapKeyWarned:false,maxAliasCount:typeof Ae==="number"?Ae:100};const Ee=ye.toJS(this,"",be);if(typeof me==="function")for(const{count:R,res:pe}of be.anchors.values())me(pe,R);return typeof ve==="function"?he.applyReviver(ve,{"":Ee},"",Ee):Ee}}pe.NodeBase=NodeBase},246:(R,pe,Ae)=>{"use strict";var he=Ae(9652);var ge=Ae(4875);var ye=Ae(94676);var me=Ae(15589);function createPair(R,pe,Ae){const ge=he.createNode(R,undefined,Ae);const ye=he.createNode(pe,undefined,Ae);return new Pair(ge,ye)}class Pair{constructor(R,pe=null){Object.defineProperty(this,me.NODE_TYPE,{value:me.PAIR});this.key=R;this.value=pe}clone(R){let{key:pe,value:Ae}=this;if(me.isNode(pe))pe=pe.clone(R);if(me.isNode(Ae))Ae=Ae.clone(R);return new Pair(pe,Ae)}toJSON(R,pe){const Ae=pe?.mapAsMap?new Map:{};return ye.addPairToJSMap(pe,Ae,this)}toString(R,pe,Ae){return R?.doc?ge.stringifyPair(this,R,pe,Ae):JSON.stringify(this)}}pe.Pair=Pair;pe.createPair=createPair},9338:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(41399);var ye=Ae(72463);const isScalarValue=R=>!R||typeof R!=="function"&&typeof R!=="object";class Scalar extends ge.NodeBase{constructor(R){super(he.SCALAR);this.value=R}toJSON(R,pe){return pe?.keep?this.value:ye.toJS(this.value,R,pe)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";pe.Scalar=Scalar;pe.isScalarValue=isScalarValue},16011:(R,pe,Ae)=>{"use strict";var he=Ae(22466);var ge=Ae(94676);var ye=Ae(3466);var me=Ae(15589);var ve=Ae(246);var be=Ae(9338);function findPair(R,pe){const Ae=me.isScalar(pe)?pe.value:pe;for(const he of R){if(me.isPair(he)){if(he.key===pe||he.key===Ae)return he;if(me.isScalar(he.key)&&he.key.value===Ae)return he}}return undefined}class YAMLMap extends ye.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(R){super(me.MAP,R);this.items=[]}static from(R,pe,Ae){const{keepUndefined:he,replacer:ge}=Ae;const ye=new this(R);const add=(R,me)=>{if(typeof ge==="function")me=ge.call(pe,R,me);else if(Array.isArray(ge)&&!ge.includes(R))return;if(me!==undefined||he)ye.items.push(ve.createPair(R,me,Ae))};if(pe instanceof Map){for(const[R,Ae]of pe)add(R,Ae)}else if(pe&&typeof pe==="object"){for(const R of Object.keys(pe))add(R,pe[R])}if(typeof R.sortMapEntries==="function"){ye.items.sort(R.sortMapEntries)}return ye}add(R,pe){let Ae;if(me.isPair(R))Ae=R;else if(!R||typeof R!=="object"||!("key"in R)){Ae=new ve.Pair(R,R?.value)}else Ae=new ve.Pair(R.key,R.value);const he=findPair(this.items,Ae.key);const ge=this.schema?.sortMapEntries;if(he){if(!pe)throw new Error(`Key ${Ae.key} already set`);if(me.isScalar(he.value)&&be.isScalarValue(Ae.value))he.value.value=Ae.value;else he.value=Ae.value}else if(ge){const R=this.items.findIndex((R=>ge(Ae,R)<0));if(R===-1)this.items.push(Ae);else this.items.splice(R,0,Ae)}else{this.items.push(Ae)}}delete(R){const pe=findPair(this.items,R);if(!pe)return false;const Ae=this.items.splice(this.items.indexOf(pe),1);return Ae.length>0}get(R,pe){const Ae=findPair(this.items,R);const he=Ae?.value;return(!pe&&me.isScalar(he)?he.value:he)??undefined}has(R){return!!findPair(this.items,R)}set(R,pe){this.add(new ve.Pair(R,pe),true)}toJSON(R,pe,Ae){const he=Ae?new Ae:pe?.mapAsMap?new Map:{};if(pe?.onCreate)pe.onCreate(he);for(const R of this.items)ge.addPairToJSMap(pe,he,R);return he}toString(R,pe,Ae){if(!R)return JSON.stringify(this);for(const R of this.items){if(!me.isPair(R))throw new Error(`Map items must all be pairs; found ${JSON.stringify(R)} instead`)}if(!R.allNullValues&&this.hasAllNullValues(false))R=Object.assign({},R,{allNullValues:true});return he.stringifyCollection(this,R,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:R.indent||"",onChompKeep:Ae,onComment:pe})}}pe.YAMLMap=YAMLMap;pe.findPair=findPair},25161:(R,pe,Ae)=>{"use strict";var he=Ae(9652);var ge=Ae(22466);var ye=Ae(3466);var me=Ae(15589);var ve=Ae(9338);var be=Ae(72463);class YAMLSeq extends ye.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(R){super(me.SEQ,R);this.items=[]}add(R){this.items.push(R)}delete(R){const pe=asItemIndex(R);if(typeof pe!=="number")return false;const Ae=this.items.splice(pe,1);return Ae.length>0}get(R,pe){const Ae=asItemIndex(R);if(typeof Ae!=="number")return undefined;const he=this.items[Ae];return!pe&&me.isScalar(he)?he.value:he}has(R){const pe=asItemIndex(R);return typeof pe==="number"&&pe=0?pe:null}pe.YAMLSeq=YAMLSeq},94676:(R,pe,Ae)=>{"use strict";var he=Ae(36909);var ge=Ae(18409);var ye=Ae(15589);var me=Ae(9338);var ve=Ae(72463);const be="<<";function addPairToJSMap(R,pe,{key:Ae,value:he}){if(R?.doc.schema.merge&&isMergeKey(Ae)){he=ye.isAlias(he)?he.resolve(R.doc):he;if(ye.isSeq(he))for(const Ae of he.items)mergeToJSMap(R,pe,Ae);else if(Array.isArray(he))for(const Ae of he)mergeToJSMap(R,pe,Ae);else mergeToJSMap(R,pe,he)}else{const ge=ve.toJS(Ae,"",R);if(pe instanceof Map){pe.set(ge,ve.toJS(he,ge,R))}else if(pe instanceof Set){pe.add(ge)}else{const ye=stringifyKey(Ae,ge,R);const me=ve.toJS(he,ye,R);if(ye in pe)Object.defineProperty(pe,ye,{value:me,writable:true,enumerable:true,configurable:true});else pe[ye]=me}}return pe}const isMergeKey=R=>R===be||ye.isScalar(R)&&R.value===be&&(!R.type||R.type===me.Scalar.PLAIN);function mergeToJSMap(R,pe,Ae){const he=R&&ye.isAlias(Ae)?Ae.resolve(R.doc):Ae;if(!ye.isMap(he))throw new Error("Merge sources must be maps or map aliases");const ge=he.toJSON(null,R,Map);for(const[R,Ae]of ge){if(pe instanceof Map){if(!pe.has(R))pe.set(R,Ae)}else if(pe instanceof Set){pe.add(R)}else if(!Object.prototype.hasOwnProperty.call(pe,R)){Object.defineProperty(pe,R,{value:Ae,writable:true,enumerable:true,configurable:true})}}return pe}function stringifyKey(R,pe,Ae){if(pe===null)return"";if(typeof pe!=="object")return String(pe);if(ye.isNode(R)&&Ae?.doc){const pe=ge.createStringifyContext(Ae.doc,{});pe.anchors=new Set;for(const R of Ae.anchors.keys())pe.anchors.add(R.anchor);pe.inFlow=true;pe.inStringifyKey=true;const ye=R.toString(pe);if(!Ae.mapKeyWarned){let R=JSON.stringify(ye);if(R.length>40)R=R.substring(0,36)+'..."';he.warn(Ae.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${R}. Set mapAsMap: true to use object keys.`);Ae.mapKeyWarned=true}return ye}return JSON.stringify(pe)}pe.addPairToJSMap=addPairToJSMap},15589:(R,pe)=>{"use strict";const Ae=Symbol.for("yaml.alias");const he=Symbol.for("yaml.document");const ge=Symbol.for("yaml.map");const ye=Symbol.for("yaml.pair");const me=Symbol.for("yaml.scalar");const ve=Symbol.for("yaml.seq");const be=Symbol.for("yaml.node.type");const isAlias=R=>!!R&&typeof R==="object"&&R[be]===Ae;const isDocument=R=>!!R&&typeof R==="object"&&R[be]===he;const isMap=R=>!!R&&typeof R==="object"&&R[be]===ge;const isPair=R=>!!R&&typeof R==="object"&&R[be]===ye;const isScalar=R=>!!R&&typeof R==="object"&&R[be]===me;const isSeq=R=>!!R&&typeof R==="object"&&R[be]===ve;function isCollection(R){if(R&&typeof R==="object")switch(R[be]){case ge:case ve:return true}return false}function isNode(R){if(R&&typeof R==="object")switch(R[be]){case Ae:case ge:case me:case ve:return true}return false}const hasAnchor=R=>(isScalar(R)||isCollection(R))&&!!R.anchor;pe.ALIAS=Ae;pe.DOC=he;pe.MAP=ge;pe.NODE_TYPE=be;pe.PAIR=ye;pe.SCALAR=me;pe.SEQ=ve;pe.hasAnchor=hasAnchor;pe.isAlias=isAlias;pe.isCollection=isCollection;pe.isDocument=isDocument;pe.isMap=isMap;pe.isNode=isNode;pe.isPair=isPair;pe.isScalar=isScalar;pe.isSeq=isSeq},72463:(R,pe,Ae)=>{"use strict";var he=Ae(15589);function toJS(R,pe,Ae){if(Array.isArray(R))return R.map(((R,pe)=>toJS(R,String(pe),Ae)));if(R&&typeof R.toJSON==="function"){if(!Ae||!he.hasAnchor(R))return R.toJSON(pe,Ae);const ge={aliasCount:0,count:1,res:undefined};Ae.anchors.set(R,ge);Ae.onCreate=R=>{ge.res=R;delete Ae.onCreate};const ye=R.toJSON(pe,Ae);if(Ae.onCreate)Ae.onCreate(ye);return ye}if(typeof R==="bigint"&&!Ae?.keep)return Number(R);return R}pe.toJS=toJS},89027:(R,pe,Ae)=>{"use strict";var he=Ae(89485);var ge=Ae(97578);var ye=Ae(14236);var me=Ae(46226);function resolveAsScalar(R,pe=true,Ae){if(R){const _onError=(R,pe,he)=>{const ge=typeof R==="number"?R:Array.isArray(R)?R[0]:R.offset;if(Ae)Ae(ge,pe,he);else throw new ye.YAMLParseError([ge,ge+1],pe,he)};switch(R.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return ge.resolveFlowScalar(R,pe,_onError);case"block-scalar":return he.resolveBlockScalar({options:{strict:pe}},R,_onError)}}return null}function createScalarToken(R,pe){const{implicitKey:Ae=false,indent:he,inFlow:ge=false,offset:ye=-1,type:ve="PLAIN"}=pe;const be=me.stringifyString({type:ve,value:R},{implicitKey:Ae,indent:he>0?" ".repeat(he):"",inFlow:ge,options:{blockQuote:true,lineWidth:-1}});const Ee=pe.end??[{type:"newline",offset:-1,indent:he,source:"\n"}];switch(be[0]){case"|":case">":{const R=be.indexOf("\n");const pe=be.substring(0,R);const Ae=be.substring(R+1)+"\n";const ge=[{type:"block-scalar-header",offset:ye,indent:he,source:pe}];if(!addEndtoBlockProps(ge,Ee))ge.push({type:"newline",offset:-1,indent:he,source:"\n"});return{type:"block-scalar",offset:ye,indent:he,props:ge,source:Ae}}case'"':return{type:"double-quoted-scalar",offset:ye,indent:he,source:be,end:Ee};case"'":return{type:"single-quoted-scalar",offset:ye,indent:he,source:be,end:Ee};default:return{type:"scalar",offset:ye,indent:he,source:be,end:Ee}}}function setScalarValue(R,pe,Ae={}){let{afterKey:he=false,implicitKey:ge=false,inFlow:ye=false,type:ve}=Ae;let be="indent"in R?R.indent:null;if(he&&typeof be==="number")be+=2;if(!ve)switch(R.type){case"single-quoted-scalar":ve="QUOTE_SINGLE";break;case"double-quoted-scalar":ve="QUOTE_DOUBLE";break;case"block-scalar":{const pe=R.props[0];if(pe.type!=="block-scalar-header")throw new Error("Invalid block scalar header");ve=pe.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:ve="PLAIN"}const Ee=me.stringifyString({type:ve,value:pe},{implicitKey:ge||be===null,indent:be!==null&&be>0?" ".repeat(be):"",inFlow:ye,options:{blockQuote:true,lineWidth:-1}});switch(Ee[0]){case"|":case">":setBlockScalarValue(R,Ee);break;case'"':setFlowScalarValue(R,Ee,"double-quoted-scalar");break;case"'":setFlowScalarValue(R,Ee,"single-quoted-scalar");break;default:setFlowScalarValue(R,Ee,"scalar")}}function setBlockScalarValue(R,pe){const Ae=pe.indexOf("\n");const he=pe.substring(0,Ae);const ge=pe.substring(Ae+1)+"\n";if(R.type==="block-scalar"){const pe=R.props[0];if(pe.type!=="block-scalar-header")throw new Error("Invalid block scalar header");pe.source=he;R.source=ge}else{const{offset:pe}=R;const Ae="indent"in R?R.indent:-1;const ye=[{type:"block-scalar-header",offset:pe,indent:Ae,source:he}];if(!addEndtoBlockProps(ye,"end"in R?R.end:undefined))ye.push({type:"newline",offset:-1,indent:Ae,source:"\n"});for(const pe of Object.keys(R))if(pe!=="type"&&pe!=="offset")delete R[pe];Object.assign(R,{type:"block-scalar",indent:Ae,props:ye,source:ge})}}function addEndtoBlockProps(R,pe){if(pe)for(const Ae of pe)switch(Ae.type){case"space":case"comment":R.push(Ae);break;case"newline":R.push(Ae);return true}return false}function setFlowScalarValue(R,pe,Ae){switch(R.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":R.type=Ae;R.source=pe;break;case"block-scalar":{const he=R.props.slice(1);let ge=pe.length;if(R.props[0].type==="block-scalar-header")ge-=R.props[0].source.length;for(const R of he)R.offset+=ge;delete R.props;Object.assign(R,{type:Ae,source:pe,end:he});break}case"block-map":case"block-seq":{const he=R.offset+pe.length;const ge={type:"newline",offset:he,indent:R.indent,source:"\n"};delete R.items;Object.assign(R,{type:Ae,source:pe,end:[ge]});break}default:{const he="indent"in R?R.indent:-1;const ge="end"in R&&Array.isArray(R.end)?R.end.filter((R=>R.type==="space"||R.type==="comment"||R.type==="newline")):[];for(const pe of Object.keys(R))if(pe!=="type"&&pe!=="offset")delete R[pe];Object.assign(R,{type:Ae,indent:he,source:pe,end:ge})}}}pe.createScalarToken=createScalarToken;pe.resolveAsScalar=resolveAsScalar;pe.setScalarValue=setScalarValue},86307:(R,pe)=>{"use strict";const stringify=R=>"type"in R?stringifyToken(R):stringifyItem(R);function stringifyToken(R){switch(R.type){case"block-scalar":{let pe="";for(const Ae of R.props)pe+=stringifyToken(Ae);return pe+R.source}case"block-map":case"block-seq":{let pe="";for(const Ae of R.items)pe+=stringifyItem(Ae);return pe}case"flow-collection":{let pe=R.start.source;for(const Ae of R.items)pe+=stringifyItem(Ae);for(const Ae of R.end)pe+=Ae.source;return pe}case"document":{let pe=stringifyItem(R);if(R.end)for(const Ae of R.end)pe+=Ae.source;return pe}default:{let pe=R.source;if("end"in R&&R.end)for(const Ae of R.end)pe+=Ae.source;return pe}}}function stringifyItem({start:R,key:pe,sep:Ae,value:he}){let ge="";for(const pe of R)ge+=pe.source;if(pe)ge+=stringifyToken(pe);if(Ae)for(const R of Ae)ge+=R.source;if(he)ge+=stringifyToken(he);return ge}pe.stringify=stringify},98497:(R,pe)=>{"use strict";const Ae=Symbol("break visit");const he=Symbol("skip children");const ge=Symbol("remove item");function visit(R,pe){if("type"in R&&R.type==="document")R={start:R.start,value:R.value};_visit(Object.freeze([]),R,pe)}visit.BREAK=Ae;visit.SKIP=he;visit.REMOVE=ge;visit.itemAtPath=(R,pe)=>{let Ae=R;for(const[R,he]of pe){const pe=Ae?.[R];if(pe&&"items"in pe){Ae=pe.items[he]}else return undefined}return Ae};visit.parentCollection=(R,pe)=>{const Ae=visit.itemAtPath(R,pe.slice(0,-1));const he=pe[pe.length-1][0];const ge=Ae?.[he];if(ge&&"items"in ge)return ge;throw new Error("Parent collection not found")};function _visit(R,pe,he){let ye=he(pe,R);if(typeof ye==="symbol")return ye;for(const me of["key","value"]){const ve=pe[me];if(ve&&"items"in ve){for(let pe=0;pe{"use strict";var he=Ae(89027);var ge=Ae(86307);var ye=Ae(98497);const me="\ufeff";const ve="";const be="";const Ee="";const isCollection=R=>!!R&&"items"in R;const isScalar=R=>!!R&&(R.type==="scalar"||R.type==="single-quoted-scalar"||R.type==="double-quoted-scalar"||R.type==="block-scalar");function prettyToken(R){switch(R){case me:return"";case ve:return"";case be:return"";case Ee:return"";default:return JSON.stringify(R)}}function tokenType(R){switch(R){case me:return"byte-order-mark";case ve:return"doc-mode";case be:return"flow-error-end";case Ee:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(R[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}pe.createScalarToken=he.createScalarToken;pe.resolveAsScalar=he.resolveAsScalar;pe.setScalarValue=he.setScalarValue;pe.stringify=ge.stringify;pe.visit=ye.visit;pe.BOM=me;pe.DOCUMENT=ve;pe.FLOW_END=be;pe.SCALAR=Ee;pe.isCollection=isCollection;pe.isScalar=isScalar;pe.prettyToken=prettyToken;pe.tokenType=tokenType},45976:(R,pe,Ae)=>{"use strict";var he=Ae(19169);function isEmpty(R){switch(R){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const ge=new Set("0123456789ABCDEFabcdef");const ye=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const me=new Set(",[]{}");const ve=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=R=>!R||ve.has(R);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(R,pe=false){if(R){if(typeof R!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+R:R;this.lineEndPos=null}this.atEnd=!pe;let Ae=this.next??"stream";while(Ae&&(pe||this.hasChars(1)))Ae=yield*this.parseNext(Ae)}atLineEnd(){let R=this.pos;let pe=this.buffer[R];while(pe===" "||pe==="\t")pe=this.buffer[++R];if(!pe||pe==="#"||pe==="\n")return true;if(pe==="\r")return this.buffer[R+1]==="\n";return false}charAt(R){return this.buffer[this.pos+R]}continueScalar(R){let pe=this.buffer[R];if(this.indentNext>0){let Ae=0;while(pe===" ")pe=this.buffer[++Ae+R];if(pe==="\r"){const pe=this.buffer[Ae+R+1];if(pe==="\n"||!pe&&!this.atEnd)return R+Ae+1}return pe==="\n"||Ae>=this.indentNext||!pe&&!this.atEnd?R+Ae:-1}if(pe==="-"||pe==="."){const pe=this.buffer.substr(R,3);if((pe==="---"||pe==="...")&&isEmpty(this.buffer[R+3]))return-1}return R}getLine(){let R=this.lineEndPos;if(typeof R!=="number"||R!==-1&&Rthis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[R,pe]=this.peek(2);if(!pe&&!this.atEnd)return this.setNext("block-start");if((R==="-"||R==="?"||R===":")&&isEmpty(pe)){const R=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=R;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const R=this.getLine();if(R===null)return this.setNext("doc");let pe=yield*this.pushIndicators();switch(R[pe]){case"#":yield*this.pushCount(R.length-pe);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":pe+=(yield*this.parseBlockScalarHeader());pe+=(yield*this.pushSpaces(true));yield*this.pushCount(R.length-pe);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let R,pe;let Ae=-1;do{R=yield*this.pushNewline();if(R>0){pe=yield*this.pushSpaces(false);this.indentValue=Ae=pe}else{pe=0}pe+=(yield*this.pushSpaces(true))}while(R+pe>0);const ge=this.getLine();if(ge===null)return this.setNext("flow");if(Ae!==-1&&Ae"0"&&pe<="9")this.blockScalarIndent=Number(pe)-1;else if(pe!=="-")break}return yield*this.pushUntil((R=>isEmpty(R)||R==="#"))}*parseBlockScalar(){let R=this.pos-1;let pe=0;let Ae;e:for(let he=this.pos;Ae=this.buffer[he];++he){switch(Ae){case" ":pe+=1;break;case"\n":R=he;pe=0;break;case"\r":{const R=this.buffer[he+1];if(!R&&!this.atEnd)return this.setNext("block-scalar");if(R==="\n")break}default:break e}}if(!Ae&&!this.atEnd)return this.setNext("block-scalar");if(pe>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=pe;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const pe=this.continueScalar(R+1);if(pe===-1)break;R=this.buffer.indexOf("\n",pe)}while(R!==-1);if(R===-1){if(!this.atEnd)return this.setNext("block-scalar");R=this.buffer.length}}let ge=R+1;Ae=this.buffer[ge];while(Ae===" ")Ae=this.buffer[++ge];if(Ae==="\t"){while(Ae==="\t"||Ae===" "||Ae==="\r"||Ae==="\n")Ae=this.buffer[++ge];R=ge-1}else if(!this.blockScalarKeep){do{let Ae=R-1;let he=this.buffer[Ae];if(he==="\r")he=this.buffer[--Ae];const ge=Ae;while(he===" ")he=this.buffer[--Ae];if(he==="\n"&&Ae>=this.pos&&Ae+1+pe>ge)R=Ae;else break}while(true)}yield he.SCALAR;yield*this.pushToIndex(R+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const R=this.flowLevel>0;let pe=this.pos-1;let Ae=this.pos-1;let ge;while(ge=this.buffer[++Ae]){if(ge===":"){const he=this.buffer[Ae+1];if(isEmpty(he)||R&&me.has(he))break;pe=Ae}else if(isEmpty(ge)){let he=this.buffer[Ae+1];if(ge==="\r"){if(he==="\n"){Ae+=1;ge="\n";he=this.buffer[Ae+1]}else pe=Ae}if(he==="#"||R&&me.has(he))break;if(ge==="\n"){const R=this.continueScalar(Ae+1);if(R===-1)break;Ae=Math.max(Ae,R-2)}}else{if(R&&me.has(ge))break;pe=Ae}}if(!ge&&!this.atEnd)return this.setNext("plain-scalar");yield he.SCALAR;yield*this.pushToIndex(pe+1,true);return R?"flow":"doc"}*pushCount(R){if(R>0){yield this.buffer.substr(this.pos,R);this.pos+=R;return R}return 0}*pushToIndex(R,pe){const Ae=this.buffer.slice(this.pos,R);if(Ae){yield Ae;this.pos+=Ae.length;return Ae.length}else if(pe)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const R=this.flowLevel>0;const pe=this.charAt(1);if(isEmpty(pe)||R&&me.has(pe)){if(!R)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let R=this.pos+2;let pe=this.buffer[R];while(!isEmpty(pe)&&pe!==">")pe=this.buffer[++R];return yield*this.pushToIndex(pe===">"?R+1:R,false)}else{let R=this.pos+1;let pe=this.buffer[R];while(pe){if(ye.has(pe))pe=this.buffer[++R];else if(pe==="%"&&ge.has(this.buffer[R+1])&&ge.has(this.buffer[R+2])){pe=this.buffer[R+=3]}else break}return yield*this.pushToIndex(R,false)}}*pushNewline(){const R=this.buffer[this.pos];if(R==="\n")return yield*this.pushCount(1);else if(R==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(R){let pe=this.pos-1;let Ae;do{Ae=this.buffer[++pe]}while(Ae===" "||R&&Ae==="\t");const he=pe-this.pos;if(he>0){yield this.buffer.substr(this.pos,he);this.pos=pe}return he}*pushUntil(R){let pe=this.pos;let Ae=this.buffer[pe];while(!R(Ae))Ae=this.buffer[++pe];return yield*this.pushToIndex(pe,false)}}pe.Lexer=Lexer},21929:(R,pe)=>{"use strict";class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=R=>this.lineStarts.push(R);this.linePos=R=>{let pe=0;let Ae=this.lineStarts.length;while(pe>1;if(this.lineStarts[he]{"use strict";var he=Ae(19169);var ge=Ae(45976);function includesToken(R,pe){for(let Ae=0;Ae=0){switch(R[pe].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(R[++pe]?.type==="space"){}return R.splice(pe,R.length)}function fixFlowSeqItems(R){if(R.start.type==="flow-seq-start"){for(const pe of R.items){if(pe.sep&&!pe.value&&!includesToken(pe.start,"explicit-key-ind")&&!includesToken(pe.sep,"map-value-ind")){if(pe.key)pe.value=pe.key;delete pe.key;if(isFlowToken(pe.value)){if(pe.value.end)Array.prototype.push.apply(pe.value.end,pe.sep);else pe.value.end=pe.sep}else Array.prototype.push.apply(pe.start,pe.sep);delete pe.sep}}}}class Parser{constructor(R){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new ge.Lexer;this.onNewLine=R}*parse(R,pe=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const Ae of this.lexer.lex(R,pe))yield*this.next(Ae);if(!pe)yield*this.end()}*next(R){this.source=R;if(process.env.LOG_TOKENS)console.log("|",he.prettyToken(R));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=R.length;return}const pe=he.tokenType(R);if(!pe){const pe=`Not a YAML token: ${R}`;yield*this.pop({type:"error",offset:this.offset,message:pe,source:R});this.offset+=R.length}else if(pe==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=pe;yield*this.step();switch(pe){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+R.length);break;case"space":if(this.atNewLine&&R[0]===" ")this.indent+=R.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=R.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=R.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const R={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return R}*step(){const R=this.peek(1);if(this.type==="doc-end"&&(!R||R.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!R)return yield*this.stream();switch(R.type){case"document":return yield*this.document(R);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(R);case"block-scalar":return yield*this.blockScalar(R);case"block-map":return yield*this.blockMap(R);case"block-seq":return yield*this.blockSequence(R);case"flow-collection":return yield*this.flowCollection(R);case"doc-end":return yield*this.documentEnd(R)}yield*this.pop()}peek(R){return this.stack[this.stack.length-R]}*pop(R){const pe=R??this.stack.pop();if(!pe){const R="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:R}}else if(this.stack.length===0){yield pe}else{const R=this.peek(1);if(pe.type==="block-scalar"){pe.indent="indent"in R?R.indent:0}else if(pe.type==="flow-collection"&&R.type==="document"){pe.indent=0}if(pe.type==="flow-collection")fixFlowSeqItems(pe);switch(R.type){case"document":R.value=pe;break;case"block-scalar":R.props.push(pe);break;case"block-map":{const Ae=R.items[R.items.length-1];if(Ae.value){R.items.push({start:[],key:pe,sep:[]});this.onKeyLine=true;return}else if(Ae.sep){Ae.value=pe}else{Object.assign(Ae,{key:pe,sep:[]});this.onKeyLine=!Ae.explicitKey;return}break}case"block-seq":{const Ae=R.items[R.items.length-1];if(Ae.value)R.items.push({start:[],value:pe});else Ae.value=pe;break}case"flow-collection":{const Ae=R.items[R.items.length-1];if(!Ae||Ae.value)R.items.push({start:[],key:pe,sep:[]});else if(Ae.sep)Ae.value=pe;else Object.assign(Ae,{key:pe,sep:[]});return}default:yield*this.pop();yield*this.pop(pe)}if((R.type==="document"||R.type==="block-map"||R.type==="block-seq")&&(pe.type==="block-map"||pe.type==="block-seq")){const Ae=pe.items[pe.items.length-1];if(Ae&&!Ae.sep&&!Ae.value&&Ae.start.length>0&&findNonEmptyIndex(Ae.start)===-1&&(pe.indent===0||Ae.start.every((R=>R.type!=="comment"||R.indent=R.indent){const Ae=!this.onKeyLine&&this.indent===R.indent;const he=Ae&&(pe.sep||pe.explicitKey)&&this.type!=="seq-item-ind";let ge=[];if(he&&pe.sep&&!pe.value){const Ae=[];for(let he=0;heR.indent)Ae.length=0;break;default:Ae.length=0}}if(Ae.length>=2)ge=pe.sep.splice(Ae[1])}switch(this.type){case"anchor":case"tag":if(he||pe.value){ge.push(this.sourceToken);R.items.push({start:ge});this.onKeyLine=true}else if(pe.sep){pe.sep.push(this.sourceToken)}else{pe.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!pe.sep&&!pe.explicitKey){pe.start.push(this.sourceToken);pe.explicitKey=true}else if(he||pe.value){ge.push(this.sourceToken);R.items.push({start:ge,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(pe.explicitKey){if(!pe.sep){if(includesToken(pe.start,"newline")){Object.assign(pe,{key:null,sep:[this.sourceToken]})}else{const R=getFirstKeyStartProps(pe.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:R,key:null,sep:[this.sourceToken]}]})}}else if(pe.value){R.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(pe.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:ge,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(pe.key)&&!includesToken(pe.sep,"newline")){const R=getFirstKeyStartProps(pe.start);const Ae=pe.key;const he=pe.sep;he.push(this.sourceToken);delete pe.key,delete pe.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:R,key:Ae,sep:he}]})}else if(ge.length>0){pe.sep=pe.sep.concat(ge,this.sourceToken)}else{pe.sep.push(this.sourceToken)}}else{if(!pe.sep){Object.assign(pe,{key:null,sep:[this.sourceToken]})}else if(pe.value||he){R.items.push({start:ge,key:null,sep:[this.sourceToken]})}else if(includesToken(pe.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{pe.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const Ae=this.flowScalar(this.type);if(he||pe.value){R.items.push({start:ge,key:Ae,sep:[]});this.onKeyLine=true}else if(pe.sep){this.stack.push(Ae)}else{Object.assign(pe,{key:Ae,sep:[]});this.onKeyLine=true}return}default:{const pe=this.startBlockValue(R);if(pe){if(Ae&&pe.type!=="block-seq"){R.items.push({start:ge})}this.stack.push(pe);return}}}}yield*this.pop();yield*this.step()}*blockSequence(R){const pe=R.items[R.items.length-1];switch(this.type){case"newline":if(pe.value){const Ae="end"in pe.value?pe.value.end:undefined;const he=Array.isArray(Ae)?Ae[Ae.length-1]:undefined;if(he?.type==="comment")Ae?.push(this.sourceToken);else R.items.push({start:[this.sourceToken]})}else pe.start.push(this.sourceToken);return;case"space":case"comment":if(pe.value)R.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(pe.start,R.indent)){const Ae=R.items[R.items.length-2];const he=Ae?.value?.end;if(Array.isArray(he)){Array.prototype.push.apply(he,pe.start);he.push(this.sourceToken);R.items.pop();return}}pe.start.push(this.sourceToken)}return;case"anchor":case"tag":if(pe.value||this.indent<=R.indent)break;pe.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==R.indent)break;if(pe.value||includesToken(pe.start,"seq-item-ind"))R.items.push({start:[this.sourceToken]});else pe.start.push(this.sourceToken);return}if(this.indent>R.indent){const pe=this.startBlockValue(R);if(pe){this.stack.push(pe);return}}yield*this.pop();yield*this.step()}*flowCollection(R){const pe=R.items[R.items.length-1];if(this.type==="flow-error-end"){let R;do{yield*this.pop();R=this.peek(1)}while(R&&R.type==="flow-collection")}else if(R.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!pe||pe.sep)R.items.push({start:[this.sourceToken]});else pe.start.push(this.sourceToken);return;case"map-value-ind":if(!pe||pe.value)R.items.push({start:[],key:null,sep:[this.sourceToken]});else if(pe.sep)pe.sep.push(this.sourceToken);else Object.assign(pe,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!pe||pe.value)R.items.push({start:[this.sourceToken]});else if(pe.sep)pe.sep.push(this.sourceToken);else pe.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const Ae=this.flowScalar(this.type);if(!pe||pe.value)R.items.push({start:[],key:Ae,sep:[]});else if(pe.sep)this.stack.push(Ae);else Object.assign(pe,{key:Ae,sep:[]});return}case"flow-map-end":case"flow-seq-end":R.end.push(this.sourceToken);return}const Ae=this.startBlockValue(R);if(Ae)this.stack.push(Ae);else{yield*this.pop();yield*this.step()}}else{const pe=this.peek(2);if(pe.type==="block-map"&&(this.type==="map-value-ind"&&pe.indent===R.indent||this.type==="newline"&&!pe.items[pe.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&pe.type!=="flow-collection"){const Ae=getPrevProps(pe);const he=getFirstKeyStartProps(Ae);fixFlowSeqItems(R);const ge=R.end.splice(1,R.end.length);ge.push(this.sourceToken);const ye={type:"block-map",offset:R.offset,indent:R.indent,items:[{start:he,key:R,sep:ge}]};this.onKeyLine=true;this.stack[this.stack.length-1]=ye}else{yield*this.lineEnd(R)}}}flowScalar(R){if(this.onNewLine){let R=this.source.indexOf("\n")+1;while(R!==0){this.onNewLine(this.offset+R);R=this.source.indexOf("\n",R)+1}}return{type:R,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(R){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const pe=getPrevProps(R);const Ae=getFirstKeyStartProps(pe);Ae.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Ae,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const pe=getPrevProps(R);const Ae=getFirstKeyStartProps(pe);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Ae,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(R,pe){if(this.type!=="comment")return false;if(this.indent<=pe)return false;return R.every((R=>R.type==="newline"||R.type==="space"))}*documentEnd(R){if(this.type!=="doc-mode"){if(R.end)R.end.push(this.sourceToken);else R.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(R){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(R.end)R.end.push(this.sourceToken);else R.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}pe.Parser=Parser},28649:(R,pe,Ae)=>{"use strict";var he=Ae(45875);var ge=Ae(10042);var ye=Ae(14236);var me=Ae(36909);var ve=Ae(21929);var be=Ae(73328);function parseOptions(R){const pe=R.prettyErrors!==false;const Ae=R.lineCounter||pe&&new ve.LineCounter||null;return{lineCounter:Ae,prettyErrors:pe}}function parseAllDocuments(R,pe={}){const{lineCounter:Ae,prettyErrors:ge}=parseOptions(pe);const me=new be.Parser(Ae?.addNewLine);const ve=new he.Composer(pe);const Ee=Array.from(ve.compose(me.parse(R)));if(ge&&Ae)for(const pe of Ee){pe.errors.forEach(ye.prettifyError(R,Ae));pe.warnings.forEach(ye.prettifyError(R,Ae))}if(Ee.length>0)return Ee;return Object.assign([],{empty:true},ve.streamInfo())}function parseDocument(R,pe={}){const{lineCounter:Ae,prettyErrors:ge}=parseOptions(pe);const me=new be.Parser(Ae?.addNewLine);const ve=new he.Composer(pe);let Ee=null;for(const pe of ve.compose(me.parse(R),true,R.length)){if(!Ee)Ee=pe;else if(Ee.options.logLevel!=="silent"){Ee.errors.push(new ye.YAMLParseError(pe.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(ge&&Ae){Ee.errors.forEach(ye.prettifyError(R,Ae));Ee.warnings.forEach(ye.prettifyError(R,Ae))}return Ee}function parse(R,pe,Ae){let he=undefined;if(typeof pe==="function"){he=pe}else if(Ae===undefined&&pe&&typeof pe==="object"){Ae=pe}const ge=parseDocument(R,Ae);if(!ge)return null;ge.warnings.forEach((R=>me.warn(ge.options.logLevel,R)));if(ge.errors.length>0){if(ge.options.logLevel!=="silent")throw ge.errors[0];else ge.errors=[]}return ge.toJS(Object.assign({reviver:he},Ae))}function stringify(R,pe,Ae){let he=null;if(typeof pe==="function"||Array.isArray(pe)){he=pe}else if(Ae===undefined&&pe){Ae=pe}if(typeof Ae==="string")Ae=Ae.length;if(typeof Ae==="number"){const R=Math.round(Ae);Ae=R<1?undefined:R>8?{indent:8}:{indent:R}}if(R===undefined){const{keepUndefined:R}=Ae??pe??{};if(!R)return undefined}return new ge.Document(R,he,Ae).toString(Ae)}pe.parse=parse;pe.parseAllDocuments=parseAllDocuments;pe.parseDocument=parseDocument;pe.stringify=stringify},56831:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(60083);var ye=Ae(91693);var me=Ae(32201);var ve=Ae(74138);const sortMapEntriesByKey=(R,pe)=>R.keype.key?1:0;class Schema{constructor({compat:R,customTags:pe,merge:Ae,resolveKnownTags:be,schema:Ee,sortMapEntries:Ce,toStringDefaults:we}){this.compat=Array.isArray(R)?ve.getTags(R,"compat"):R?ve.getTags(null,R):null;this.merge=!!Ae;this.name=typeof Ee==="string"&&Ee||"core";this.knownTags=be?ve.coreKnownTags:{};this.tags=ve.getTags(pe,this.name);this.toStringOptions=we??null;Object.defineProperty(this,he.MAP,{value:ge.map});Object.defineProperty(this,he.SCALAR,{value:me.string});Object.defineProperty(this,he.SEQ,{value:ye.seq});this.sortMapEntries=typeof Ce==="function"?Ce:Ce===true?sortMapEntriesByKey:null}clone(){const R=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));R.tags=this.tags.slice();return R}}pe.Schema=Schema},60083:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(16011);const ye={collection:"map",default:true,nodeClass:ge.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(R,pe){if(!he.isMap(R))pe("Expected a mapping for this tag");return R},createNode:(R,pe,Ae)=>ge.YAMLMap.from(R,pe,Ae)};pe.map=ye},26703:(R,pe,Ae)=>{"use strict";var he=Ae(9338);const ge={identify:R=>R==null,createNode:()=>new he.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new he.Scalar(null),stringify:({source:R},pe)=>typeof R==="string"&&ge.test.test(R)?R:pe.options.nullStr};pe.nullTag=ge},91693:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(25161);const ye={collection:"seq",default:true,nodeClass:ge.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(R,pe){if(!he.isSeq(R))pe("Expected a sequence for this tag");return R},createNode:(R,pe,Ae)=>ge.YAMLSeq.from(R,pe,Ae)};pe.seq=ye},32201:(R,pe,Ae)=>{"use strict";var he=Ae(46226);const ge={identify:R=>typeof R==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:R=>R,stringify(R,pe,Ae,ge){pe=Object.assign({actualString:true},pe);return he.stringifyString(R,pe,Ae,ge)}};pe.string=ge},42045:(R,pe,Ae)=>{"use strict";var he=Ae(9338);const ge={identify:R=>typeof R==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:R=>new he.Scalar(R[0]==="t"||R[0]==="T"),stringify({source:R,value:pe},Ae){if(R&&ge.test.test(R)){const Ae=R[0]==="t"||R[0]==="T";if(pe===Ae)return R}return pe?Ae.options.trueStr:Ae.options.falseStr}};pe.boolTag=ge},36810:(R,pe,Ae)=>{"use strict";var he=Ae(9338);var ge=Ae(84174);const ye={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:R=>R.slice(-3).toLowerCase()==="nan"?NaN:R[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ge.stringifyNumber};const me={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:R=>parseFloat(R),stringify(R){const pe=Number(R.value);return isFinite(pe)?pe.toExponential():ge.stringifyNumber(R)}};const ve={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(R){const pe=new he.Scalar(parseFloat(R));const Ae=R.indexOf(".");if(Ae!==-1&&R[R.length-1]==="0")pe.minFractionDigits=R.length-Ae-1;return pe},stringify:ge.stringifyNumber};pe.float=ve;pe.floatExp=me;pe.floatNaN=ye},63019:(R,pe,Ae)=>{"use strict";var he=Ae(84174);const intIdentify=R=>typeof R==="bigint"||Number.isInteger(R);const intResolve=(R,pe,Ae,{intAsBigInt:he})=>he?BigInt(R):parseInt(R.substring(pe),Ae);function intStringify(R,pe,Ae){const{value:ge}=R;if(intIdentify(ge)&&ge>=0)return Ae+ge.toString(pe);return he.stringifyNumber(R)}const ge={identify:R=>intIdentify(R)&&R>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(R,pe,Ae)=>intResolve(R,2,8,Ae),stringify:R=>intStringify(R,8,"0o")};const ye={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(R,pe,Ae)=>intResolve(R,0,10,Ae),stringify:he.stringifyNumber};const me={identify:R=>intIdentify(R)&&R>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(R,pe,Ae)=>intResolve(R,2,16,Ae),stringify:R=>intStringify(R,16,"0x")};pe.int=ye;pe.intHex=me;pe.intOct=ge},20027:(R,pe,Ae)=>{"use strict";var he=Ae(60083);var ge=Ae(26703);var ye=Ae(91693);var me=Ae(32201);var ve=Ae(42045);var be=Ae(36810);var Ee=Ae(63019);const Ce=[he.map,ye.seq,me.string,ge.nullTag,ve.boolTag,Ee.intOct,Ee.int,Ee.intHex,be.floatNaN,be.floatExp,be.float];pe.schema=Ce},14545:(R,pe,Ae)=>{"use strict";var he=Ae(9338);var ge=Ae(60083);var ye=Ae(91693);function intIdentify(R){return typeof R==="bigint"||Number.isInteger(R)}const stringifyJSON=({value:R})=>JSON.stringify(R);const me=[{identify:R=>typeof R==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:R=>R,stringify:stringifyJSON},{identify:R=>R==null,createNode:()=>new he.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:R=>typeof R==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:R=>R==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(R,pe,{intAsBigInt:Ae})=>Ae?BigInt(R):parseInt(R,10),stringify:({value:R})=>intIdentify(R)?R.toString():JSON.stringify(R)},{identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:R=>parseFloat(R),stringify:stringifyJSON}];const ve={default:true,tag:"",test:/^/,resolve(R,pe){pe(`Unresolved plain scalar ${JSON.stringify(R)}`);return R}};const be=[ge.map,ye.seq].concat(me,ve);pe.schema=be},74138:(R,pe,Ae)=>{"use strict";var he=Ae(60083);var ge=Ae(26703);var ye=Ae(91693);var me=Ae(32201);var ve=Ae(42045);var be=Ae(36810);var Ee=Ae(63019);var Ce=Ae(20027);var we=Ae(14545);var _e=Ae(5724);var Ie=Ae(28974);var Se=Ae(29841);var Be=Ae(15389);var ke=Ae(37847);var Oe=Ae(21156);const Re=new Map([["core",Ce.schema],["failsafe",[he.map,ye.seq,me.string]],["json",we.schema],["yaml11",Be.schema],["yaml-1.1",Be.schema]]);const Qe={binary:_e.binary,bool:ve.boolTag,float:be.float,floatExp:be.floatExp,floatNaN:be.floatNaN,floatTime:Oe.floatTime,int:Ee.int,intHex:Ee.intHex,intOct:Ee.intOct,intTime:Oe.intTime,map:he.map,null:ge.nullTag,omap:Ie.omap,pairs:Se.pairs,seq:ye.seq,set:ke.set,timestamp:Oe.timestamp};const xe={"tag:yaml.org,2002:binary":_e.binary,"tag:yaml.org,2002:omap":Ie.omap,"tag:yaml.org,2002:pairs":Se.pairs,"tag:yaml.org,2002:set":ke.set,"tag:yaml.org,2002:timestamp":Oe.timestamp};function getTags(R,pe){let Ae=Re.get(pe);if(!Ae){if(Array.isArray(R))Ae=[];else{const R=Array.from(Re.keys()).filter((R=>R!=="yaml11")).map((R=>JSON.stringify(R))).join(", ");throw new Error(`Unknown schema "${pe}"; use one of ${R} or define customTags array`)}}if(Array.isArray(R)){for(const pe of R)Ae=Ae.concat(pe)}else if(typeof R==="function"){Ae=R(Ae.slice())}return Ae.map((R=>{if(typeof R!=="string")return R;const pe=Qe[R];if(pe)return pe;const Ae=Object.keys(Qe).map((R=>JSON.stringify(R))).join(", ");throw new Error(`Unknown custom tag "${R}"; use one of ${Ae}`)}))}pe.coreKnownTags=xe;pe.getTags=getTags},5724:(R,pe,Ae)=>{"use strict";var he=Ae(9338);var ge=Ae(46226);const ye={identify:R=>R instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(R,pe){if(typeof Buffer==="function"){return Buffer.from(R,"base64")}else if(typeof atob==="function"){const pe=atob(R.replace(/[\n\r]/g,""));const Ae=new Uint8Array(pe.length);for(let R=0;R{"use strict";var he=Ae(9338);function boolStringify({value:R,source:pe},Ae){const he=R?ge:ye;if(pe&&he.test.test(pe))return pe;return R?Ae.options.trueStr:Ae.options.falseStr}const ge={identify:R=>R===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new he.Scalar(true),stringify:boolStringify};const ye={identify:R=>R===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new he.Scalar(false),stringify:boolStringify};pe.falseTag=ye;pe.trueTag=ge},28035:(R,pe,Ae)=>{"use strict";var he=Ae(9338);var ge=Ae(84174);const ye={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:R=>R.slice(-3).toLowerCase()==="nan"?NaN:R[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ge.stringifyNumber};const me={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:R=>parseFloat(R.replace(/_/g,"")),stringify(R){const pe=Number(R.value);return isFinite(pe)?pe.toExponential():ge.stringifyNumber(R)}};const ve={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(R){const pe=new he.Scalar(parseFloat(R.replace(/_/g,"")));const Ae=R.indexOf(".");if(Ae!==-1){const he=R.substring(Ae+1).replace(/_/g,"");if(he[he.length-1]==="0")pe.minFractionDigits=he.length}return pe},stringify:ge.stringifyNumber};pe.float=ve;pe.floatExp=me;pe.floatNaN=ye},19503:(R,pe,Ae)=>{"use strict";var he=Ae(84174);const intIdentify=R=>typeof R==="bigint"||Number.isInteger(R);function intResolve(R,pe,Ae,{intAsBigInt:he}){const ge=R[0];if(ge==="-"||ge==="+")pe+=1;R=R.substring(pe).replace(/_/g,"");if(he){switch(Ae){case 2:R=`0b${R}`;break;case 8:R=`0o${R}`;break;case 16:R=`0x${R}`;break}const pe=BigInt(R);return ge==="-"?BigInt(-1)*pe:pe}const ye=parseInt(R,Ae);return ge==="-"?-1*ye:ye}function intStringify(R,pe,Ae){const{value:ge}=R;if(intIdentify(ge)){const R=ge.toString(pe);return ge<0?"-"+Ae+R.substr(1):Ae+R}return he.stringifyNumber(R)}const ge={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(R,pe,Ae)=>intResolve(R,2,2,Ae),stringify:R=>intStringify(R,2,"0b")};const ye={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(R,pe,Ae)=>intResolve(R,1,8,Ae),stringify:R=>intStringify(R,8,"0")};const me={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(R,pe,Ae)=>intResolve(R,0,10,Ae),stringify:he.stringifyNumber};const ve={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(R,pe,Ae)=>intResolve(R,2,16,Ae),stringify:R=>intStringify(R,16,"0x")};pe.int=me;pe.intBin=ge;pe.intHex=ve;pe.intOct=ye},28974:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(72463);var ye=Ae(16011);var me=Ae(25161);var ve=Ae(29841);class YAMLOMap extends me.YAMLSeq{constructor(){super();this.add=ye.YAMLMap.prototype.add.bind(this);this.delete=ye.YAMLMap.prototype.delete.bind(this);this.get=ye.YAMLMap.prototype.get.bind(this);this.has=ye.YAMLMap.prototype.has.bind(this);this.set=ye.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(R,pe){if(!pe)return super.toJSON(R);const Ae=new Map;if(pe?.onCreate)pe.onCreate(Ae);for(const R of this.items){let ye,me;if(he.isPair(R)){ye=ge.toJS(R.key,"",pe);me=ge.toJS(R.value,ye,pe)}else{ye=ge.toJS(R,"",pe)}if(Ae.has(ye))throw new Error("Ordered maps must not include duplicate keys");Ae.set(ye,me)}return Ae}static from(R,pe,Ae){const he=ve.createPairs(R,pe,Ae);const ge=new this;ge.items=he.items;return ge}}YAMLOMap.tag="tag:yaml.org,2002:omap";const be={collection:"seq",identify:R=>R instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(R,pe){const Ae=ve.resolvePairs(R,pe);const ge=[];for(const{key:R}of Ae.items){if(he.isScalar(R)){if(ge.includes(R.value)){pe(`Ordered maps must not include duplicate keys: ${R.value}`)}else{ge.push(R.value)}}}return Object.assign(new YAMLOMap,Ae)},createNode:(R,pe,Ae)=>YAMLOMap.from(R,pe,Ae)};pe.YAMLOMap=YAMLOMap;pe.omap=be},29841:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(246);var ye=Ae(9338);var me=Ae(25161);function resolvePairs(R,pe){if(he.isSeq(R)){for(let Ae=0;Ae1)pe("Each pair must have its own sequence indicator");const R=me.items[0]||new ge.Pair(new ye.Scalar(null));if(me.commentBefore)R.key.commentBefore=R.key.commentBefore?`${me.commentBefore}\n${R.key.commentBefore}`:me.commentBefore;if(me.comment){const pe=R.value??R.key;pe.comment=pe.comment?`${me.comment}\n${pe.comment}`:me.comment}me=R}R.items[Ae]=he.isPair(me)?me:new ge.Pair(me)}}else pe("Expected a sequence for this tag");return R}function createPairs(R,pe,Ae){const{replacer:he}=Ae;const ye=new me.YAMLSeq(R);ye.tag="tag:yaml.org,2002:pairs";let ve=0;if(pe&&Symbol.iterator in Object(pe))for(let R of pe){if(typeof he==="function")R=he.call(pe,String(ve++),R);let me,be;if(Array.isArray(R)){if(R.length===2){me=R[0];be=R[1]}else throw new TypeError(`Expected [key, value] tuple: ${R}`)}else if(R&&R instanceof Object){const pe=Object.keys(R);if(pe.length===1){me=pe[0];be=R[me]}else{throw new TypeError(`Expected tuple with one key, not ${pe.length} keys`)}}else{me=R}ye.items.push(ge.createPair(me,be,Ae))}return ye}const ve={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};pe.createPairs=createPairs;pe.pairs=ve;pe.resolvePairs=resolvePairs},15389:(R,pe,Ae)=>{"use strict";var he=Ae(60083);var ge=Ae(26703);var ye=Ae(91693);var me=Ae(32201);var ve=Ae(5724);var be=Ae(42631);var Ee=Ae(28035);var Ce=Ae(19503);var we=Ae(28974);var _e=Ae(29841);var Ie=Ae(37847);var Se=Ae(21156);const Be=[he.map,ye.seq,me.string,ge.nullTag,be.trueTag,be.falseTag,Ce.intBin,Ce.intOct,Ce.int,Ce.intHex,Ee.floatNaN,Ee.floatExp,Ee.float,ve.binary,we.omap,_e.pairs,Ie.set,Se.intTime,Se.floatTime,Se.timestamp];pe.schema=Be},37847:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(246);var ye=Ae(16011);class YAMLSet extends ye.YAMLMap{constructor(R){super(R);this.tag=YAMLSet.tag}add(R){let pe;if(he.isPair(R))pe=R;else if(R&&typeof R==="object"&&"key"in R&&"value"in R&&R.value===null)pe=new ge.Pair(R.key,null);else pe=new ge.Pair(R,null);const Ae=ye.findPair(this.items,pe.key);if(!Ae)this.items.push(pe)}get(R,pe){const Ae=ye.findPair(this.items,R);return!pe&&he.isPair(Ae)?he.isScalar(Ae.key)?Ae.key.value:Ae.key:Ae}set(R,pe){if(typeof pe!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof pe}`);const Ae=ye.findPair(this.items,R);if(Ae&&!pe){this.items.splice(this.items.indexOf(Ae),1)}else if(!Ae&&pe){this.items.push(new ge.Pair(R))}}toJSON(R,pe){return super.toJSON(R,pe,Set)}toString(R,pe,Ae){if(!R)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},R,{allNullValues:true}),pe,Ae);else throw new Error("Set items must all have null values")}static from(R,pe,Ae){const{replacer:he}=Ae;const ye=new this(R);if(pe&&Symbol.iterator in Object(pe))for(let R of pe){if(typeof he==="function")R=he.call(pe,R,R);ye.items.push(ge.createPair(R,null,Ae))}return ye}}YAMLSet.tag="tag:yaml.org,2002:set";const me={collection:"map",identify:R=>R instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(R,pe,Ae)=>YAMLSet.from(R,pe,Ae),resolve(R,pe){if(he.isMap(R)){if(R.hasAllNullValues(true))return Object.assign(new YAMLSet,R);else pe("Set items must all have null values")}else pe("Expected a mapping for this tag");return R}};pe.YAMLSet=YAMLSet;pe.set=me},21156:(R,pe,Ae)=>{"use strict";var he=Ae(84174);function parseSexagesimal(R,pe){const Ae=R[0];const he=Ae==="-"||Ae==="+"?R.substring(1):R;const num=R=>pe?BigInt(R):Number(R);const ge=he.replace(/_/g,"").split(":").reduce(((R,pe)=>R*num(60)+num(pe)),num(0));return Ae==="-"?num(-1)*ge:ge}function stringifySexagesimal(R){let{value:pe}=R;let num=R=>R;if(typeof pe==="bigint")num=R=>BigInt(R);else if(isNaN(pe)||!isFinite(pe))return he.stringifyNumber(R);let Ae="";if(pe<0){Ae="-";pe*=num(-1)}const ge=num(60);const ye=[pe%ge];if(pe<60){ye.unshift(0)}else{pe=(pe-ye[0])/ge;ye.unshift(pe%ge);if(pe>=60){pe=(pe-ye[0])/ge;ye.unshift(pe)}}return Ae+ye.map((R=>String(R).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const ge={identify:R=>typeof R==="bigint"||Number.isInteger(R),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(R,pe,{intAsBigInt:Ae})=>parseSexagesimal(R,Ae),stringify:stringifySexagesimal};const ye={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:R=>parseSexagesimal(R,false),stringify:stringifySexagesimal};const me={identify:R=>R instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(R){const pe=R.match(me.test);if(!pe)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,Ae,he,ge,ye,ve,be]=pe.map(Number);const Ee=pe[7]?Number((pe[7]+"00").substr(1,3)):0;let Ce=Date.UTC(Ae,he-1,ge,ye||0,ve||0,be||0,Ee);const we=pe[8];if(we&&we!=="Z"){let R=parseSexagesimal(we,false);if(Math.abs(R)<30)R*=60;Ce-=6e4*R}return new Date(Ce)},stringify:({value:R})=>R.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};pe.floatTime=ye;pe.intTime=ge;pe.timestamp=me},62889:(R,pe)=>{"use strict";const Ae="flow";const he="block";const ge="quoted";function foldFlowLines(R,pe,Ae="flow",{indentAtStart:ye,lineWidth:me=80,minContentWidth:ve=20,onFold:be,onOverflow:Ee}={}){if(!me||me<0)return R;if(meme-Math.max(2,ve))we.push(0);else Ie=me-ye}let Se=undefined;let Be=undefined;let ke=false;let Oe=-1;let Re=-1;let Qe=-1;if(Ae===he){Oe=consumeMoreIndentedLines(R,Oe,pe.length);if(Oe!==-1)Ie=Oe+Ce}for(let ye;ye=R[Oe+=1];){if(Ae===ge&&ye==="\\"){Re=Oe;switch(R[Oe+1]){case"x":Oe+=3;break;case"u":Oe+=5;break;case"U":Oe+=9;break;default:Oe+=1}Qe=Oe}if(ye==="\n"){if(Ae===he)Oe=consumeMoreIndentedLines(R,Oe,pe.length);Ie=Oe+pe.length+Ce;Se=undefined}else{if(ye===" "&&Be&&Be!==" "&&Be!=="\n"&&Be!=="\t"){const pe=R[Oe+1];if(pe&&pe!==" "&&pe!=="\n"&&pe!=="\t")Se=Oe}if(Oe>=Ie){if(Se){we.push(Se);Ie=Se+Ce;Se=undefined}else if(Ae===ge){while(Be===" "||Be==="\t"){Be=ye;ye=R[Oe+=1];ke=true}const pe=Oe>Qe+1?Oe-2:Re-1;if(_e[pe])return R;we.push(pe);_e[pe]=true;Ie=pe+Ce;Se=undefined}else{ke=true}}}Be=ye}if(ke&&Ee)Ee();if(we.length===0)return R;if(be)be();let xe=R.slice(0,we[0]);for(let he=0;he{"use strict";var he=Ae(28459);var ge=Ae(15589);var ye=Ae(85182);var me=Ae(46226);function createStringifyContext(R,pe){const Ae=Object.assign({blockQuote:true,commentString:ye.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},R.schema.toStringOptions,pe);let he;switch(Ae.collectionStyle){case"block":he=false;break;case"flow":he=true;break;default:he=null}return{anchors:new Set,doc:R,flowCollectionPadding:Ae.flowCollectionPadding?" ":"",indent:"",indentStep:typeof Ae.indent==="number"?" ".repeat(Ae.indent):" ",inFlow:he,options:Ae}}function getTagObject(R,pe){if(pe.tag){const Ae=R.filter((R=>R.tag===pe.tag));if(Ae.length>0)return Ae.find((R=>R.format===pe.format))??Ae[0]}let Ae=undefined;let he;if(ge.isScalar(pe)){he=pe.value;const ge=R.filter((R=>R.identify?.(he)));Ae=ge.find((R=>R.format===pe.format))??ge.find((R=>!R.format))}else{he=pe;Ae=R.find((R=>R.nodeClass&&he instanceof R.nodeClass))}if(!Ae){const R=he?.constructor?.name??typeof he;throw new Error(`Tag not resolved for ${R} value`)}return Ae}function stringifyProps(R,pe,{anchors:Ae,doc:ye}){if(!ye.directives)return"";const me=[];const ve=(ge.isScalar(R)||ge.isCollection(R))&&R.anchor;if(ve&&he.anchorIsValid(ve)){Ae.add(ve);me.push(`&${ve}`)}const be=R.tag?R.tag:pe.default?null:pe.tag;if(be)me.push(ye.directives.tagString(be));return me.join(" ")}function stringify(R,pe,Ae,he){if(ge.isPair(R))return R.toString(pe,Ae,he);if(ge.isAlias(R)){if(pe.doc.directives)return R.toString(pe);if(pe.resolvedAliases?.has(R)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(pe.resolvedAliases)pe.resolvedAliases.add(R);else pe.resolvedAliases=new Set([R]);R=R.resolve(pe.doc)}}let ye=undefined;const ve=ge.isNode(R)?R:pe.doc.createNode(R,{onTagObj:R=>ye=R});if(!ye)ye=getTagObject(pe.doc.schema.tags,ve);const be=stringifyProps(ve,ye,pe);if(be.length>0)pe.indentAtStart=(pe.indentAtStart??0)+be.length+1;const Ee=typeof ye.stringify==="function"?ye.stringify(ve,pe,Ae,he):ge.isScalar(ve)?me.stringifyString(ve,pe,Ae,he):ve.toString(pe,Ae,he);if(!be)return Ee;return ge.isScalar(ve)||Ee[0]==="{"||Ee[0]==="["?`${be} ${Ee}`:`${be}\n${pe.indent}${Ee}`}pe.createStringifyContext=createStringifyContext;pe.stringify=stringify},22466:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(18409);var ye=Ae(85182);function stringifyCollection(R,pe,Ae){const he=pe.inFlow??R.flow;const ge=he?stringifyFlowCollection:stringifyBlockCollection;return ge(R,pe,Ae)}function stringifyBlockCollection({comment:R,items:pe},Ae,{blockItemPrefix:me,flowChars:ve,itemIndent:be,onChompKeep:Ee,onComment:Ce}){const{indent:we,options:{commentString:_e}}=Ae;const Ie=Object.assign({},Ae,{indent:be,type:null});let Se=false;const Be=[];for(let R=0;REe=null),(()=>Se=true));if(Ee)Ce+=ye.lineComment(Ce,be,_e(Ee));if(Se&&Ee)Se=false;Be.push(me+Ce)}let ke;if(Be.length===0){ke=ve.start+ve.end}else{ke=Be[0];for(let R=1;Rbe=null));if(AeIe||Ee.includes("\n")))_e=true;Se.push(Ee);Ie=Se.length}const{start:Be,end:ke}=Ae;if(Se.length===0){return Be+ke}else{if(!_e){const R=Se.reduce(((R,pe)=>R+pe.length+2),2);_e=pe.options.lineWidth>0&&R>pe.options.lineWidth}if(_e){let R=Be;for(const pe of Se)R+=pe?`\n${be}${ve}${pe}`:"\n";return`${R}\n${ve}${ke}`}else{return`${Be}${Ee}${Se.join(" ")}${Ee}${ke}`}}}function addCommentBefore({indent:R,options:{commentString:pe}},Ae,he,ge){if(he&&ge)he=he.replace(/^\n+/,"");if(he){const ge=ye.indentComment(pe(he),R);Ae.push(ge.trimStart())}}pe.stringifyCollection=stringifyCollection},85182:(R,pe)=>{"use strict";const stringifyComment=R=>R.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(R,pe){if(/^\n+$/.test(R))return R.substring(1);return pe?R.replace(/^(?! *$)/gm,pe):R}const lineComment=(R,pe,Ae)=>R.endsWith("\n")?indentComment(Ae,pe):Ae.includes("\n")?"\n"+indentComment(Ae,pe):(R.endsWith(" ")?"":" ")+Ae;pe.indentComment=indentComment;pe.lineComment=lineComment;pe.stringifyComment=stringifyComment},35225:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(18409);var ye=Ae(85182);function stringifyDocument(R,pe){const Ae=[];let me=pe.directives===true;if(pe.directives!==false&&R.directives){const pe=R.directives.toString(R);if(pe){Ae.push(pe);me=true}else if(R.directives.docStart)me=true}if(me)Ae.push("---");const ve=ge.createStringifyContext(R,pe);const{commentString:be}=ve.options;if(R.commentBefore){if(Ae.length!==1)Ae.unshift("");const pe=be(R.commentBefore);Ae.unshift(ye.indentComment(pe,""))}let Ee=false;let Ce=null;if(R.contents){if(he.isNode(R.contents)){if(R.contents.spaceBefore&&me)Ae.push("");if(R.contents.commentBefore){const pe=be(R.contents.commentBefore);Ae.push(ye.indentComment(pe,""))}ve.forceBlockIndent=!!R.comment;Ce=R.contents.comment}const pe=Ce?undefined:()=>Ee=true;let we=ge.stringify(R.contents,ve,(()=>Ce=null),pe);if(Ce)we+=ye.lineComment(we,"",be(Ce));if((we[0]==="|"||we[0]===">")&&Ae[Ae.length-1]==="---"){Ae[Ae.length-1]=`--- ${we}`}else Ae.push(we)}else{Ae.push(ge.stringify(R.contents,ve))}if(R.directives?.docEnd){if(R.comment){const pe=be(R.comment);if(pe.includes("\n")){Ae.push("...");Ae.push(ye.indentComment(pe,""))}else{Ae.push(`... ${pe}`)}}else{Ae.push("...")}}else{let pe=R.comment;if(pe&&Ee)pe=pe.replace(/^\n+/,"");if(pe){if((!Ee||Ce)&&Ae[Ae.length-1]!=="")Ae.push("");Ae.push(ye.indentComment(be(pe),""))}}return Ae.join("\n")+"\n"}pe.stringifyDocument=stringifyDocument},84174:(R,pe)=>{"use strict";function stringifyNumber({format:R,minFractionDigits:pe,tag:Ae,value:he}){if(typeof he==="bigint")return String(he);const ge=typeof he==="number"?he:Number(he);if(!isFinite(ge))return isNaN(ge)?".nan":ge<0?"-.inf":".inf";let ye=JSON.stringify(he);if(!R&&pe&&(!Ae||Ae==="tag:yaml.org,2002:float")&&/^\d/.test(ye)){let R=ye.indexOf(".");if(R<0){R=ye.length;ye+="."}let Ae=pe-(ye.length-R-1);while(Ae-- >0)ye+="0"}return ye}pe.stringifyNumber=stringifyNumber},4875:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(9338);var ye=Ae(18409);var me=Ae(85182);function stringifyPair({key:R,value:pe},Ae,ve,be){const{allNullValues:Ee,doc:Ce,indent:we,indentStep:_e,options:{commentString:Ie,indentSeq:Se,simpleKeys:Be}}=Ae;let ke=he.isNode(R)&&R.comment||null;if(Be){if(ke){throw new Error("With simple keys, key nodes cannot have comments")}if(he.isCollection(R)||!he.isNode(R)&&typeof R==="object"){const R="With simple keys, collection cannot be used as a key value";throw new Error(R)}}let Oe=!Be&&(!R||ke&&pe==null&&!Ae.inFlow||he.isCollection(R)||(he.isScalar(R)?R.type===ge.Scalar.BLOCK_FOLDED||R.type===ge.Scalar.BLOCK_LITERAL:typeof R==="object"));Ae=Object.assign({},Ae,{allNullValues:false,implicitKey:!Oe&&(Be||!Ee),indent:we+_e});let Re=false;let Qe=false;let xe=ye.stringify(R,Ae,(()=>Re=true),(()=>Qe=true));if(!Oe&&!Ae.inFlow&&xe.length>1024){if(Be)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");Oe=true}if(Ae.inFlow){if(Ee||pe==null){if(Re&&ve)ve();return xe===""?"?":Oe?`? ${xe}`:xe}}else if(Ee&&!Be||pe==null&&Oe){xe=`? ${xe}`;if(ke&&!Re){xe+=me.lineComment(xe,Ae.indent,Ie(ke))}else if(Qe&&be)be();return xe}if(Re)ke=null;if(Oe){if(ke)xe+=me.lineComment(xe,Ae.indent,Ie(ke));xe=`? ${xe}\n${we}:`}else{xe=`${xe}:`;if(ke)xe+=me.lineComment(xe,Ae.indent,Ie(ke))}let Pe,Te,De;if(he.isNode(pe)){Pe=!!pe.spaceBefore;Te=pe.commentBefore;De=pe.comment}else{Pe=false;Te=null;De=null;if(pe&&typeof pe==="object")pe=Ce.createNode(pe)}Ae.implicitKey=false;if(!Oe&&!ke&&he.isScalar(pe))Ae.indentAtStart=xe.length+1;Qe=false;if(!Se&&_e.length>=2&&!Ae.inFlow&&!Oe&&he.isSeq(pe)&&!pe.flow&&!pe.tag&&!pe.anchor){Ae.indent=Ae.indent.substring(2)}let Ne=false;const Me=ye.stringify(pe,Ae,(()=>Ne=true),(()=>Qe=true));let je=" ";if(ke||Pe||Te){je=Pe?"\n":"";if(Te){const R=Ie(Te);je+=`\n${me.indentComment(R,Ae.indent)}`}if(Me===""&&!Ae.inFlow){if(je==="\n")je="\n\n"}else{je+=`\n${Ae.indent}`}}else if(!Oe&&he.isCollection(pe)){const R=Me[0];const he=Me.indexOf("\n");const ge=he!==-1;const ye=Ae.inFlow??pe.flow??pe.items.length===0;if(ge||!ye){let pe=false;if(ge&&(R==="&"||R==="!")){let Ae=Me.indexOf(" ");if(R==="&"&&Ae!==-1&&Ae{"use strict";var he=Ae(9338);var ge=Ae(62889);const getFoldOptions=(R,pe)=>({indentAtStart:pe?R.indent.length:R.indentAtStart,lineWidth:R.options.lineWidth,minContentWidth:R.options.minContentWidth});const containsDocumentMarker=R=>/^(%|---|\.\.\.)/m.test(R);function lineLengthOverLimit(R,pe,Ae){if(!pe||pe<0)return false;const he=pe-Ae;const ge=R.length;if(ge<=he)return false;for(let pe=0,Ae=0;pehe)return true;Ae=pe+1;if(ge-Ae<=he)return false}}return true}function doubleQuotedString(R,pe){const Ae=JSON.stringify(R);if(pe.options.doubleQuotedAsJSON)return Ae;const{implicitKey:he}=pe;const ye=pe.options.doubleQuotedMinMultiLineLength;const me=pe.indent||(containsDocumentMarker(R)?" ":"");let ve="";let be=0;for(let R=0,pe=Ae[R];pe;pe=Ae[++R]){if(pe===" "&&Ae[R+1]==="\\"&&Ae[R+2]==="n"){ve+=Ae.slice(be,R)+"\\ ";R+=1;be=R;pe="\\"}if(pe==="\\")switch(Ae[R+1]){case"u":{ve+=Ae.slice(be,R);const pe=Ae.substr(R+2,4);switch(pe){case"0000":ve+="\\0";break;case"0007":ve+="\\a";break;case"000b":ve+="\\v";break;case"001b":ve+="\\e";break;case"0085":ve+="\\N";break;case"00a0":ve+="\\_";break;case"2028":ve+="\\L";break;case"2029":ve+="\\P";break;default:if(pe.substr(0,2)==="00")ve+="\\x"+pe.substr(2);else ve+=Ae.substr(R,6)}R+=5;be=R+1}break;case"n":if(he||Ae[R+2]==='"'||Ae.length\n";let Se;let Be;for(Be=Ae.length;Be>0;--Be){const R=Ae[Be-1];if(R!=="\n"&&R!=="\t"&&R!==" ")break}let ke=Ae.substring(Be);const Oe=ke.indexOf("\n");if(Oe===-1){Se="-"}else if(Ae===ke||Oe!==ke.length-1){Se="+";if(be)be()}else{Se=""}if(ke){Ae=Ae.slice(0,-ke.length);if(ke[ke.length-1]==="\n")ke=ke.slice(0,-1);ke=ke.replace(ye,`$&${_e}`)}let Re=false;let Qe;let xe=-1;for(Qe=0;Qe")+(Re?Te:"")+Se;if(R){De+=" "+Ce(R.replace(/ ?[\r\n]+/g," "));if(ve)ve()}if(Ie){Ae=Ae.replace(/\n+/g,`$&${_e}`);return`${De}\n${_e}${Pe}${Ae}${ke}`}Ae=Ae.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${_e}`);const Ne=ge.foldFlowLines(`${Pe}${Ae}${ke}`,_e,ge.FOLD_BLOCK,getFoldOptions(me,true));return`${De}\n${_e}${Ne}`}function plainString(R,pe,Ae,ye){const{type:me,value:ve}=R;const{actualString:be,implicitKey:Ee,indent:Ce,indentStep:we,inFlow:_e}=pe;if(Ee&&ve.includes("\n")||_e&&/[[\]{},]/.test(ve)){return quotedString(ve,pe)}if(!ve||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(ve)){return Ee||_e||!ve.includes("\n")?quotedString(ve,pe):blockString(R,pe,Ae,ye)}if(!Ee&&!_e&&me!==he.Scalar.PLAIN&&ve.includes("\n")){return blockString(R,pe,Ae,ye)}if(containsDocumentMarker(ve)){if(Ce===""){pe.forceBlockIndent=true;return blockString(R,pe,Ae,ye)}else if(Ee&&Ce===we){return quotedString(ve,pe)}}const Ie=ve.replace(/\n+/g,`$&\n${Ce}`);if(be){const test=R=>R.default&&R.tag!=="tag:yaml.org,2002:str"&&R.test?.test(Ie);const{compat:R,tags:Ae}=pe.doc.schema;if(Ae.some(test)||R?.some(test))return quotedString(ve,pe)}return Ee?Ie:ge.foldFlowLines(Ie,Ce,ge.FOLD_FLOW,getFoldOptions(pe,false))}function stringifyString(R,pe,Ae,ge){const{implicitKey:ye,inFlow:me}=pe;const ve=typeof R.value==="string"?R:Object.assign({},R,{value:String(R.value)});let{type:be}=R;if(be!==he.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(ve.value))be=he.Scalar.QUOTE_DOUBLE}const _stringify=R=>{switch(R){case he.Scalar.BLOCK_FOLDED:case he.Scalar.BLOCK_LITERAL:return ye||me?quotedString(ve.value,pe):blockString(ve,pe,Ae,ge);case he.Scalar.QUOTE_DOUBLE:return doubleQuotedString(ve.value,pe);case he.Scalar.QUOTE_SINGLE:return singleQuotedString(ve.value,pe);case he.Scalar.PLAIN:return plainString(ve,pe,Ae,ge);default:return null}};let Ee=_stringify(be);if(Ee===null){const{defaultKeyType:R,defaultStringType:Ae}=pe.options;const he=ye&&R||Ae;Ee=_stringify(he);if(Ee===null)throw new Error(`Unsupported default string type ${he}`)}return Ee}pe.stringifyString=stringifyString},16796:(R,pe,Ae)=>{"use strict";var he=Ae(15589);const ge=Symbol("break visit");const ye=Symbol("skip children");const me=Symbol("remove node");function visit(R,pe){const Ae=initVisitor(pe);if(he.isDocument(R)){const pe=visit_(null,R.contents,Ae,Object.freeze([R]));if(pe===me)R.contents=null}else visit_(null,R,Ae,Object.freeze([]))}visit.BREAK=ge;visit.SKIP=ye;visit.REMOVE=me;function visit_(R,pe,Ae,ye){const ve=callVisitor(R,pe,Ae,ye);if(he.isNode(ve)||he.isPair(ve)){replaceNode(R,ye,ve);return visit_(R,ve,Ae,ye)}if(typeof ve!=="symbol"){if(he.isCollection(pe)){ye=Object.freeze(ye.concat(pe));for(let R=0;R{"use strict";var he=Ae(41773);var ge=Ae(97742); +var R;(function(R){(function(pe){var Ae=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:sloppyModeThis();var he=makeExporter(R);if(typeof Ae.Reflect!=="undefined"){he=makeExporter(Ae.Reflect,he)}pe(he,Ae);if(typeof Ae.Reflect==="undefined"){Ae.Reflect=R}function makeExporter(R,pe){return function(Ae,he){Object.defineProperty(R,Ae,{configurable:true,writable:true,value:he});if(pe)pe(Ae,he)}}function functionThis(){try{return Function("return this;")()}catch(R){}}function indirectEvalThis(){try{return(void 0,eval)("(function() { return this; })()")}catch(R){}}function sloppyModeThis(){return functionThis()||indirectEvalThis()}})((function(R,pe){var Ae=Object.prototype.hasOwnProperty;var he=typeof Symbol==="function";var ge=he&&typeof Symbol.toPrimitive!=="undefined"?Symbol.toPrimitive:"@@toPrimitive";var ye=he&&typeof Symbol.iterator!=="undefined"?Symbol.iterator:"@@iterator";var me=typeof Object.create==="function";var ve={__proto__:[]}instanceof Array;var be=!me&&!ve;var Ee={create:me?function(){return MakeDictionary(Object.create(null))}:ve?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:be?function(R,pe){return Ae.call(R,pe)}:function(R,pe){return pe in R},get:be?function(R,pe){return Ae.call(R,pe)?R[pe]:undefined}:function(R,pe){return R[pe]}};var we=Object.getPrototypeOf(Function);var Ce=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:CreateMapPolyfill();var _e=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:CreateSetPolyfill();var Ie=typeof WeakMap==="function"?WeakMap:CreateWeakMapPolyfill();var Se=he?Symbol.for("@reflect-metadata:registry"):undefined;var Be=GetOrCreateMetadataRegistry();var ke=CreateMetadataProvider(Be);function decorate(R,pe,Ae,he){if(!IsUndefined(Ae)){if(!IsArray(R))throw new TypeError;if(!IsObject(pe))throw new TypeError;if(!IsObject(he)&&!IsUndefined(he)&&!IsNull(he))throw new TypeError;if(IsNull(he))he=undefined;Ae=ToPropertyKey(Ae);return DecorateProperty(R,pe,Ae,he)}else{if(!IsArray(R))throw new TypeError;if(!IsConstructor(pe))throw new TypeError;return DecorateConstructor(R,pe)}}R("decorate",decorate);function metadata(R,pe){function decorator(Ae,he){if(!IsObject(Ae))throw new TypeError;if(!IsUndefined(he)&&!IsPropertyKey(he))throw new TypeError;OrdinaryDefineOwnMetadata(R,pe,Ae,he)}return decorator}R("metadata",metadata);function defineMetadata(R,pe,Ae,he){if(!IsObject(Ae))throw new TypeError;if(!IsUndefined(he))he=ToPropertyKey(he);return OrdinaryDefineOwnMetadata(R,pe,Ae,he)}R("defineMetadata",defineMetadata);function hasMetadata(R,pe,Ae){if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);return OrdinaryHasMetadata(R,pe,Ae)}R("hasMetadata",hasMetadata);function hasOwnMetadata(R,pe,Ae){if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);return OrdinaryHasOwnMetadata(R,pe,Ae)}R("hasOwnMetadata",hasOwnMetadata);function getMetadata(R,pe,Ae){if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);return OrdinaryGetMetadata(R,pe,Ae)}R("getMetadata",getMetadata);function getOwnMetadata(R,pe,Ae){if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);return OrdinaryGetOwnMetadata(R,pe,Ae)}R("getOwnMetadata",getOwnMetadata);function getMetadataKeys(R,pe){if(!IsObject(R))throw new TypeError;if(!IsUndefined(pe))pe=ToPropertyKey(pe);return OrdinaryMetadataKeys(R,pe)}R("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(R,pe){if(!IsObject(R))throw new TypeError;if(!IsUndefined(pe))pe=ToPropertyKey(pe);return OrdinaryOwnMetadataKeys(R,pe)}R("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(R,pe,Ae){if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);if(!IsObject(pe))throw new TypeError;if(!IsUndefined(Ae))Ae=ToPropertyKey(Ae);var he=GetMetadataProvider(pe,Ae,false);if(IsUndefined(he))return false;return he.OrdinaryDeleteMetadata(R,pe,Ae)}R("deleteMetadata",deleteMetadata);function DecorateConstructor(R,pe){for(var Ae=R.length-1;Ae>=0;--Ae){var he=R[Ae];var ge=he(pe);if(!IsUndefined(ge)&&!IsNull(ge)){if(!IsConstructor(ge))throw new TypeError;pe=ge}}return pe}function DecorateProperty(R,pe,Ae,he){for(var ge=R.length-1;ge>=0;--ge){var ye=R[ge];var me=ye(pe,Ae,he);if(!IsUndefined(me)&&!IsNull(me)){if(!IsObject(me))throw new TypeError;he=me}}return he}function OrdinaryHasMetadata(R,pe,Ae){var he=OrdinaryHasOwnMetadata(R,pe,Ae);if(he)return true;var ge=OrdinaryGetPrototypeOf(pe);if(!IsNull(ge))return OrdinaryHasMetadata(R,ge,Ae);return false}function OrdinaryHasOwnMetadata(R,pe,Ae){var he=GetMetadataProvider(pe,Ae,false);if(IsUndefined(he))return false;return ToBoolean(he.OrdinaryHasOwnMetadata(R,pe,Ae))}function OrdinaryGetMetadata(R,pe,Ae){var he=OrdinaryHasOwnMetadata(R,pe,Ae);if(he)return OrdinaryGetOwnMetadata(R,pe,Ae);var ge=OrdinaryGetPrototypeOf(pe);if(!IsNull(ge))return OrdinaryGetMetadata(R,ge,Ae);return undefined}function OrdinaryGetOwnMetadata(R,pe,Ae){var he=GetMetadataProvider(pe,Ae,false);if(IsUndefined(he))return;return he.OrdinaryGetOwnMetadata(R,pe,Ae)}function OrdinaryDefineOwnMetadata(R,pe,Ae,he){var ge=GetMetadataProvider(Ae,he,true);ge.OrdinaryDefineOwnMetadata(R,pe,Ae,he)}function OrdinaryMetadataKeys(R,pe){var Ae=OrdinaryOwnMetadataKeys(R,pe);var he=OrdinaryGetPrototypeOf(R);if(he===null)return Ae;var ge=OrdinaryMetadataKeys(he,pe);if(ge.length<=0)return Ae;if(Ae.length<=0)return ge;var ye=new _e;var me=[];for(var ve=0,be=Ae;ve=0&&R=this._keys.length){this._index=-1;this._keys=pe;this._values=pe}else{this._index++}return{value:Ae,done:false}}return{value:undefined,done:true}};MapIterator.prototype.throw=function(R){if(this._index>=0){this._index=-1;this._keys=pe;this._values=pe}throw R};MapIterator.prototype.return=function(R){if(this._index>=0){this._index=-1;this._keys=pe;this._values=pe}return{value:R,done:true}};return MapIterator}();var he=function(){function Map(){this._keys=[];this._values=[];this._cacheKey=R;this._cacheIndex=-2}Object.defineProperty(Map.prototype,"size",{get:function(){return this._keys.length},enumerable:true,configurable:true});Map.prototype.has=function(R){return this._find(R,false)>=0};Map.prototype.get=function(R){var pe=this._find(R,false);return pe>=0?this._values[pe]:undefined};Map.prototype.set=function(R,pe){var Ae=this._find(R,true);this._values[Ae]=pe;return this};Map.prototype.delete=function(pe){var Ae=this._find(pe,false);if(Ae>=0){var he=this._keys.length;for(var ge=Ae+1;ge{"use strict";var he=Ae(15589);var ge=Ae(9338);var ye=Ae(16011);var me=Ae(25161);var ve=Ae(62986);var be=Ae(2289);var Ee=Ae(20045);function resolveCollection(R,pe,Ae,he,ge,ye){const me=Ae.type==="block-map"?ve.resolveBlockMap(R,pe,Ae,he,ye):Ae.type==="block-seq"?be.resolveBlockSeq(R,pe,Ae,he,ye):Ee.resolveFlowCollection(R,pe,Ae,he,ye);const we=me.constructor;if(ge==="!"||ge===we.tagName){me.tag=we.tagName;return me}if(ge)me.tag=ge;return me}function composeCollection(R,pe,Ae,ve,be){const Ee=ve.tag;const we=!Ee?null:pe.directives.tagName(Ee.source,(R=>be(Ee,"TAG_RESOLVE_FAILED",R)));if(Ae.type==="block-seq"){const{anchor:R,newlineAfterProp:pe}=ve;const Ae=R&&Ee?R.offset>Ee.offset?R:Ee:R??Ee;if(Ae&&(!pe||pe.offsetR.tag===we&&R.collection===Ce));if(!_e){const he=pe.schema.knownTags[we];if(he&&he.collection===Ce){pe.schema.tags.push(Object.assign({},he,{default:false}));_e=he}else{if(he?.collection){be(Ee,"BAD_COLLECTION_TYPE",`${he.tag} used for ${Ce} collection, but expects ${he.collection}`,true)}else{be(Ee,"TAG_RESOLVE_FAILED",`Unresolved tag: ${we}`,true)}return resolveCollection(R,pe,Ae,be,we)}}const Ie=resolveCollection(R,pe,Ae,be,we,_e);const Se=_e.resolve?.(Ie,(R=>be(Ee,"TAG_RESOLVE_FAILED",R)),pe.options)??Ie;const Be=he.isNode(Se)?Se:new ge.Scalar(Se);Be.range=Ie.range;Be.tag=we;if(_e?.format)Be.format=_e.format;return Be}pe.composeCollection=composeCollection},25050:(R,pe,Ae)=>{"use strict";var he=Ae(10042);var ge=Ae(38676);var ye=Ae(1250);var me=Ae(6985);function composeDoc(R,pe,{offset:Ae,start:ve,value:be,end:Ee},we){const Ce=Object.assign({_directives:pe},R);const _e=new he.Document(undefined,Ce);const Ie={atRoot:true,directives:_e.directives,options:_e.options,schema:_e.schema};const Se=me.resolveProps(ve,{indicator:"doc-start",next:be??Ee?.[0],offset:Ae,onError:we,parentIndent:0,startOnNewline:true});if(Se.found){_e.directives.docStart=true;if(be&&(be.type==="block-map"||be.type==="block-seq")&&!Se.hasNewline)we(Se.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}_e.contents=be?ge.composeNode(Ie,be,Se,we):ge.composeEmptyNode(Ie,Se.end,ve,null,Se,we);const Be=_e.contents.range[2];const ke=ye.resolveEnd(Ee,Be,false,we);if(ke.comment)_e.comment=ke.comment;_e.range=[Ae,Be,ke.offset];return _e}pe.composeDoc=composeDoc},38676:(R,pe,Ae)=>{"use strict";var he=Ae(5639);var ge=Ae(8109);var ye=Ae(94766);var me=Ae(1250);var ve=Ae(78781);const be={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(R,pe,Ae,he){const{spaceBefore:me,comment:ve,anchor:Ee,tag:we}=Ae;let Ce;let _e=true;switch(pe.type){case"alias":Ce=composeAlias(R,pe,he);if(Ee||we)he(pe,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":Ce=ye.composeScalar(R,pe,we,he);if(Ee)Ce.anchor=Ee.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":Ce=ge.composeCollection(be,R,pe,Ae,he);if(Ee)Ce.anchor=Ee.source.substring(1);break;default:{const ge=pe.type==="error"?pe.message:`Unsupported token (type: ${pe.type})`;he(pe,"UNEXPECTED_TOKEN",ge);Ce=composeEmptyNode(R,pe.offset,undefined,null,Ae,he);_e=false}}if(Ee&&Ce.anchor==="")he(Ee,"BAD_ALIAS","Anchor cannot be an empty string");if(me)Ce.spaceBefore=true;if(ve){if(pe.type==="scalar"&&pe.source==="")Ce.comment=ve;else Ce.commentBefore=ve}if(R.options.keepSourceTokens&&_e)Ce.srcToken=pe;return Ce}function composeEmptyNode(R,pe,Ae,he,{spaceBefore:ge,comment:me,anchor:be,tag:Ee,end:we},Ce){const _e={type:"scalar",offset:ve.emptyScalarPosition(pe,Ae,he),indent:-1,source:""};const Ie=ye.composeScalar(R,_e,Ee,Ce);if(be){Ie.anchor=be.source.substring(1);if(Ie.anchor==="")Ce(be,"BAD_ALIAS","Anchor cannot be an empty string")}if(ge)Ie.spaceBefore=true;if(me){Ie.comment=me;Ie.range[2]=we}return Ie}function composeAlias({options:R},{offset:pe,source:Ae,end:ge},ye){const ve=new he.Alias(Ae.substring(1));if(ve.source==="")ye(pe,"BAD_ALIAS","Alias cannot be an empty string");if(ve.source.endsWith(":"))ye(pe+Ae.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const be=pe+Ae.length;const Ee=me.resolveEnd(ge,be,R.strict,ye);ve.range=[pe,be,Ee.offset];if(Ee.comment)ve.comment=Ee.comment;return ve}pe.composeEmptyNode=composeEmptyNode;pe.composeNode=composeNode},94766:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(9338);var ye=Ae(89485);var me=Ae(97578);function composeScalar(R,pe,Ae,ve){const{value:be,type:Ee,comment:we,range:Ce}=pe.type==="block-scalar"?ye.resolveBlockScalar(R,pe,ve):me.resolveFlowScalar(pe,R.options.strict,ve);const _e=Ae?R.directives.tagName(Ae.source,(R=>ve(Ae,"TAG_RESOLVE_FAILED",R))):null;const Ie=Ae&&_e?findScalarTagByName(R.schema,be,_e,Ae,ve):pe.type==="scalar"?findScalarTagByTest(R,be,pe,ve):R.schema[he.SCALAR];let Se;try{const ye=Ie.resolve(be,(R=>ve(Ae??pe,"TAG_RESOLVE_FAILED",R)),R.options);Se=he.isScalar(ye)?ye:new ge.Scalar(ye)}catch(R){const he=R instanceof Error?R.message:String(R);ve(Ae??pe,"TAG_RESOLVE_FAILED",he);Se=new ge.Scalar(be)}Se.range=Ce;Se.source=be;if(Ee)Se.type=Ee;if(_e)Se.tag=_e;if(Ie.format)Se.format=Ie.format;if(we)Se.comment=we;return Se}function findScalarTagByName(R,pe,Ae,ge,ye){if(Ae==="!")return R[he.SCALAR];const me=[];for(const pe of R.tags){if(!pe.collection&&pe.tag===Ae){if(pe.default&&pe.test)me.push(pe);else return pe}}for(const R of me)if(R.test?.test(pe))return R;const ve=R.knownTags[Ae];if(ve&&!ve.collection){R.tags.push(Object.assign({},ve,{default:false,test:undefined}));return ve}ye(ge,"TAG_RESOLVE_FAILED",`Unresolved tag: ${Ae}`,Ae!=="tag:yaml.org,2002:str");return R[he.SCALAR]}function findScalarTagByTest({directives:R,schema:pe},Ae,ge,ye){const me=pe.tags.find((R=>R.default&&R.test?.test(Ae)))||pe[he.SCALAR];if(pe.compat){const ve=pe.compat.find((R=>R.default&&R.test?.test(Ae)))??pe[he.SCALAR];if(me.tag!==ve.tag){const pe=R.tagString(me.tag);const Ae=R.tagString(ve.tag);const he=`Value may be parsed as either ${pe} or ${Ae}`;ye(ge,"TAG_RESOLVE_FAILED",he,true)}}return me}pe.composeScalar=composeScalar},45875:(R,pe,Ae)=>{"use strict";var he=Ae(5400);var ge=Ae(10042);var ye=Ae(14236);var me=Ae(15589);var ve=Ae(25050);var be=Ae(1250);function getErrorPos(R){if(typeof R==="number")return[R,R+1];if(Array.isArray(R))return R.length===2?R:[R[0],R[1]];const{offset:pe,source:Ae}=R;return[pe,pe+(typeof Ae==="string"?Ae.length:1)]}function parsePrelude(R){let pe="";let Ae=false;let he=false;for(let ge=0;ge{const ge=getErrorPos(R);if(he)this.warnings.push(new ye.YAMLWarning(ge,pe,Ae));else this.errors.push(new ye.YAMLParseError(ge,pe,Ae))};this.directives=new he.Directives({version:R.version||"1.2"});this.options=R}decorate(R,pe){const{comment:Ae,afterEmptyLine:he}=parsePrelude(this.prelude);if(Ae){const ge=R.contents;if(pe){R.comment=R.comment?`${R.comment}\n${Ae}`:Ae}else if(he||R.directives.docStart||!ge){R.commentBefore=Ae}else if(me.isCollection(ge)&&!ge.flow&&ge.items.length>0){let R=ge.items[0];if(me.isPair(R))R=R.key;const pe=R.commentBefore;R.commentBefore=pe?`${Ae}\n${pe}`:Ae}else{const R=ge.commentBefore;ge.commentBefore=R?`${Ae}\n${R}`:Ae}}if(pe){Array.prototype.push.apply(R.errors,this.errors);Array.prototype.push.apply(R.warnings,this.warnings)}else{R.errors=this.errors;R.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(R,pe=false,Ae=-1){for(const pe of R)yield*this.next(pe);yield*this.end(pe,Ae)}*next(R){if(process.env.LOG_STREAM)console.dir(R,{depth:null});switch(R.type){case"directive":this.directives.add(R.source,((pe,Ae,he)=>{const ge=getErrorPos(R);ge[0]+=pe;this.onError(ge,"BAD_DIRECTIVE",Ae,he)}));this.prelude.push(R.source);this.atDirectives=true;break;case"document":{const pe=ve.composeDoc(this.options,this.directives,R,this.onError);if(this.atDirectives&&!pe.directives.docStart)this.onError(R,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(pe,false);if(this.doc)yield this.doc;this.doc=pe;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(R.source);break;case"error":{const pe=R.source?`${R.message}: ${JSON.stringify(R.source)}`:R.message;const Ae=new ye.YAMLParseError(getErrorPos(R),"UNEXPECTED_TOKEN",pe);if(this.atDirectives||!this.doc)this.errors.push(Ae);else this.doc.errors.push(Ae);break}case"doc-end":{if(!this.doc){const pe="Unexpected doc-end without preceding document";this.errors.push(new ye.YAMLParseError(getErrorPos(R),"UNEXPECTED_TOKEN",pe));break}this.doc.directives.docEnd=true;const pe=be.resolveEnd(R.end,R.offset+R.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(pe.comment){const R=this.doc.comment;this.doc.comment=R?`${R}\n${pe.comment}`:pe.comment}this.doc.range[2]=pe.offset;break}default:this.errors.push(new ye.YAMLParseError(getErrorPos(R),"UNEXPECTED_TOKEN",`Unsupported token ${R.type}`))}}*end(R=false,pe=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(R){const R=Object.assign({_directives:this.directives},this.options);const Ae=new ge.Document(undefined,R);if(this.atDirectives)this.onError(pe,"MISSING_CHAR","Missing directives-end indicator line");Ae.range=[0,pe,pe];this.decorate(Ae,false);yield Ae}}}pe.Composer=Composer},62986:(R,pe,Ae)=>{"use strict";var he=Ae(246);var ge=Ae(16011);var ye=Ae(6985);var me=Ae(40976);var ve=Ae(83669);var be=Ae(66899);const Ee="All mapping items must start at the same column";function resolveBlockMap({composeNode:R,composeEmptyNode:pe},Ae,we,Ce,_e){const Ie=_e?.nodeClass??ge.YAMLMap;const Se=new Ie(Ae.schema);if(Ae.atRoot)Ae.atRoot=false;let Be=we.offset;let ke=null;for(const ge of we.items){const{start:_e,key:Ie,sep:Oe,value:Re}=ge;const Qe=ye.resolveProps(_e,{indicator:"explicit-key-ind",next:Ie??Oe?.[0],offset:Be,onError:Ce,parentIndent:we.indent,startOnNewline:true});const xe=!Qe.found;if(xe){if(Ie){if(Ie.type==="block-seq")Ce(Be,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in Ie&&Ie.indent!==we.indent)Ce(Be,"BAD_INDENT",Ee)}if(!Qe.anchor&&!Qe.tag&&!Oe){ke=Qe.end;if(Qe.comment){if(Se.comment)Se.comment+="\n"+Qe.comment;else Se.comment=Qe.comment}continue}if(Qe.newlineAfterProp||me.containsNewline(Ie)){Ce(Ie??_e[_e.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(Qe.found?.indent!==we.indent){Ce(Be,"BAD_INDENT",Ee)}const Pe=Qe.end;const Te=Ie?R(Ae,Ie,Qe,Ce):pe(Ae,Pe,_e,null,Qe,Ce);if(Ae.schema.compat)ve.flowIndentCheck(we.indent,Ie,Ce);if(be.mapIncludes(Ae,Se.items,Te))Ce(Pe,"DUPLICATE_KEY","Map keys must be unique");const De=ye.resolveProps(Oe??[],{indicator:"map-value-ind",next:Re,offset:Te.range[2],onError:Ce,parentIndent:we.indent,startOnNewline:!Ie||Ie.type==="block-scalar"});Be=De.end;if(De.found){if(xe){if(Re?.type==="block-map"&&!De.hasNewline)Ce(Be,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(Ae.options.strict&&Qe.start{"use strict";var he=Ae(9338);function resolveBlockScalar(R,pe,Ae){const ge=pe.offset;const ye=parseBlockScalarHeader(pe,R.options.strict,Ae);if(!ye)return{value:"",type:null,comment:"",range:[ge,ge,ge]};const me=ye.mode===">"?he.Scalar.BLOCK_FOLDED:he.Scalar.BLOCK_LITERAL;const ve=pe.source?splitLines(pe.source):[];let be=ve.length;for(let R=ve.length-1;R>=0;--R){const pe=ve[R][1];if(pe===""||pe==="\r")be=R;else break}if(be===0){const R=ye.chomp==="+"&&ve.length>0?"\n".repeat(Math.max(1,ve.length-1)):"";let Ae=ge+ye.length;if(pe.source)Ae+=pe.source.length;return{value:R,type:me,comment:ye.comment,range:[ge,Ae,Ae]}}let Ee=pe.indent+ye.indent;let we=pe.offset+ye.length;let Ce=0;for(let pe=0;peEe)Ee=he.length}else{if(he.length=be;--R){if(ve[R][0].length>Ee)be=R+1}let _e="";let Ie="";let Se=false;for(let R=0;REe||ge[0]==="\t"){if(Ie===" ")Ie="\n";else if(!Se&&Ie==="\n")Ie="\n\n";_e+=Ie+pe.slice(Ee)+ge;Ie="\n";Se=true}else if(ge===""){if(Ie==="\n")_e+="\n";else Ie="\n"}else{_e+=Ie+ge;Ie=" ";Se=false}}switch(ye.chomp){case"-":break;case"+":for(let R=be;R{"use strict";var he=Ae(25161);var ge=Ae(6985);var ye=Ae(83669);function resolveBlockSeq({composeNode:R,composeEmptyNode:pe},Ae,me,ve,be){const Ee=be?.nodeClass??he.YAMLSeq;const we=new Ee(Ae.schema);if(Ae.atRoot)Ae.atRoot=false;let Ce=me.offset;let _e=null;for(const{start:he,value:be}of me.items){const Ee=ge.resolveProps(he,{indicator:"seq-item-ind",next:be,offset:Ce,onError:ve,parentIndent:me.indent,startOnNewline:true});if(!Ee.found){if(Ee.anchor||Ee.tag||be){if(be&&be.type==="block-seq")ve(Ee.end,"BAD_INDENT","All sequence items must start at the same column");else ve(Ce,"MISSING_CHAR","Sequence item without - indicator")}else{_e=Ee.end;if(Ee.comment)we.comment=Ee.comment;continue}}const Ie=be?R(Ae,be,Ee,ve):pe(Ae,Ee.end,he,null,Ee,ve);if(Ae.schema.compat)ye.flowIndentCheck(me.indent,be,ve);Ce=Ie.range[2];we.items.push(Ie)}we.range=[me.offset,Ce,_e??Ce];return we}pe.resolveBlockSeq=resolveBlockSeq},1250:(R,pe)=>{"use strict";function resolveEnd(R,pe,Ae,he){let ge="";if(R){let ye=false;let me="";for(const ve of R){const{source:R,type:be}=ve;switch(be){case"space":ye=true;break;case"comment":{if(Ae&&!ye)he(ve,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const pe=R.substring(1)||" ";if(!ge)ge=pe;else ge+=me+pe;me="";break}case"newline":if(ge)me+=R;ye=true;break;default:he(ve,"UNEXPECTED_TOKEN",`Unexpected ${be} at node end`)}pe+=R.length}}return{comment:ge,offset:pe}}pe.resolveEnd=resolveEnd},20045:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(246);var ye=Ae(16011);var me=Ae(25161);var ve=Ae(1250);var be=Ae(6985);var Ee=Ae(40976);var we=Ae(66899);const Ce="Block collections are not allowed within flow collections";const isBlock=R=>R&&(R.type==="block-map"||R.type==="block-seq");function resolveFlowCollection({composeNode:R,composeEmptyNode:pe},Ae,_e,Ie,Se){const Be=_e.start.source==="{";const ke=Be?"flow map":"flow sequence";const Oe=Se?.nodeClass??(Be?ye.YAMLMap:me.YAMLSeq);const Re=new Oe(Ae.schema);Re.flow=true;const Qe=Ae.atRoot;if(Qe)Ae.atRoot=false;let xe=_e.offset+_e.start.source.length;for(let me=0;me<_e.items.length;++me){const ve=_e.items[me];const{start:Se,key:Oe,sep:Qe,value:Pe}=ve;const Te=be.resolveProps(Se,{flow:ke,indicator:"explicit-key-ind",next:Oe??Qe?.[0],offset:xe,onError:Ie,parentIndent:_e.indent,startOnNewline:false});if(!Te.found){if(!Te.anchor&&!Te.tag&&!Qe&&!Pe){if(me===0&&Te.comma)Ie(Te.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${ke}`);else if(me<_e.items.length-1)Ie(Te.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${ke}`);if(Te.comment){if(Re.comment)Re.comment+="\n"+Te.comment;else Re.comment=Te.comment}xe=Te.end;continue}if(!Be&&Ae.options.strict&&Ee.containsNewline(Oe))Ie(Oe,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(me===0){if(Te.comma)Ie(Te.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${ke}`)}else{if(!Te.comma)Ie(Te.start,"MISSING_CHAR",`Missing , between ${ke} items`);if(Te.comment){let R="";e:for(const pe of Se){switch(pe.type){case"comma":case"space":break;case"comment":R=pe.source.substring(1);break e;default:break e}}if(R){let pe=Re.items[Re.items.length-1];if(he.isPair(pe))pe=pe.value??pe.key;if(pe.comment)pe.comment+="\n"+R;else pe.comment=R;Te.comment=Te.comment.substring(R.length+1)}}}if(!Be&&!Qe&&!Te.found){const he=Pe?R(Ae,Pe,Te,Ie):pe(Ae,Te.end,Qe,null,Te,Ie);Re.items.push(he);xe=he.range[2];if(isBlock(Pe))Ie(he.range,"BLOCK_IN_FLOW",Ce)}else{const he=Te.end;const me=Oe?R(Ae,Oe,Te,Ie):pe(Ae,he,Se,null,Te,Ie);if(isBlock(Oe))Ie(me.range,"BLOCK_IN_FLOW",Ce);const Ee=be.resolveProps(Qe??[],{flow:ke,indicator:"map-value-ind",next:Pe,offset:me.range[2],onError:Ie,parentIndent:_e.indent,startOnNewline:false});if(Ee.found){if(!Be&&!Te.found&&Ae.options.strict){if(Qe)for(const R of Qe){if(R===Ee.found)break;if(R.type==="newline"){Ie(R,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(Te.start0){const R=ve.resolveEnd(De,Ne,Ae.options.strict,Ie);if(R.comment){if(Re.comment)Re.comment+="\n"+R.comment;else Re.comment=R.comment}Re.range=[_e.offset,Ne,R.offset]}else{Re.range=[_e.offset,Ne,Ne]}return Re}pe.resolveFlowCollection=resolveFlowCollection},97578:(R,pe,Ae)=>{"use strict";var he=Ae(9338);var ge=Ae(1250);function resolveFlowScalar(R,pe,Ae){const{offset:ye,type:me,source:ve,end:be}=R;let Ee;let we;const _onError=(R,pe,he)=>Ae(ye+R,pe,he);switch(me){case"scalar":Ee=he.Scalar.PLAIN;we=plainValue(ve,_onError);break;case"single-quoted-scalar":Ee=he.Scalar.QUOTE_SINGLE;we=singleQuotedValue(ve,_onError);break;case"double-quoted-scalar":Ee=he.Scalar.QUOTE_DOUBLE;we=doubleQuotedValue(ve,_onError);break;default:Ae(R,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${me}`);return{value:"",type:null,comment:"",range:[ye,ye+ve.length,ye+ve.length]}}const Ce=ye+ve.length;const _e=ge.resolveEnd(be,Ce,pe,Ae);return{value:we,type:Ee,comment:_e.comment,range:[ye,Ce,_e.offset]}}function plainValue(R,pe){let Ae="";switch(R[0]){case"\t":Ae="a tab character";break;case",":Ae="flow indicator character ,";break;case"%":Ae="directive indicator character %";break;case"|":case">":{Ae=`block scalar indicator ${R[0]}`;break}case"@":case"`":{Ae=`reserved character ${R[0]}`;break}}if(Ae)pe(0,"BAD_SCALAR_START",`Plain value cannot start with ${Ae}`);return foldLines(R)}function singleQuotedValue(R,pe){if(R[R.length-1]!=="'"||R.length===1)pe(R.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(R.slice(1,-1)).replace(/''/g,"'")}function foldLines(R){let pe,Ae;try{pe=new RegExp("(.*?)(?pe?R.slice(pe,he+1):ge}else{Ae+=ge}}if(R[R.length-1]!=='"'||R.length===1)pe(R.length,"MISSING_CHAR",'Missing closing "quote');return Ae}function foldNewline(R,pe){let Ae="";let he=R[pe+1];while(he===" "||he==="\t"||he==="\n"||he==="\r"){if(he==="\r"&&R[pe+2]!=="\n")break;if(he==="\n")Ae+="\n";pe+=1;he=R[pe+1]}if(!Ae)Ae=" ";return{fold:Ae,offset:pe}}const ye={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(R,pe,Ae,he){const ge=R.substr(pe,Ae);const ye=ge.length===Ae&&/^[0-9a-fA-F]+$/.test(ge);const me=ye?parseInt(ge,16):NaN;if(isNaN(me)){const ge=R.substr(pe-2,Ae+2);he(pe-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${ge}`);return ge}return String.fromCodePoint(me)}pe.resolveFlowScalar=resolveFlowScalar},6985:(R,pe)=>{"use strict";function resolveProps(R,{flow:pe,indicator:Ae,next:he,offset:ge,onError:ye,parentIndent:me,startOnNewline:ve}){let be=false;let Ee=ve;let we=ve;let Ce="";let _e="";let Ie=false;let Se=false;let Be=null;let ke=null;let Oe=null;let Re=null;let Qe=null;let xe=null;let Pe=null;for(const ge of R){if(Se){if(ge.type!=="space"&&ge.type!=="newline"&&ge.type!=="comma")ye(ge.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");Se=false}if(Be){if(Ee&&ge.type!=="comment"&&ge.type!=="newline"){ye(Be,"TAB_AS_INDENT","Tabs are not allowed as indentation")}Be=null}switch(ge.type){case"space":if(!pe&&(Ae!=="doc-start"||he?.type!=="flow-collection")&&ge.source.includes("\t")){Be=ge}we=true;break;case"comment":{if(!we)ye(ge,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const R=ge.source.substring(1)||" ";if(!Ce)Ce=R;else Ce+=_e+R;_e="";Ee=false;break}case"newline":if(Ee){if(Ce)Ce+=ge.source;else be=true}else _e+=ge.source;Ee=true;Ie=true;if(ke||Oe)Re=ge;we=true;break;case"anchor":if(ke)ye(ge,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(ge.source.endsWith(":"))ye(ge.offset+ge.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);ke=ge;if(Pe===null)Pe=ge.offset;Ee=false;we=false;Se=true;break;case"tag":{if(Oe)ye(ge,"MULTIPLE_TAGS","A node can have at most one tag");Oe=ge;if(Pe===null)Pe=ge.offset;Ee=false;we=false;Se=true;break}case Ae:if(ke||Oe)ye(ge,"BAD_PROP_ORDER",`Anchors and tags must be after the ${ge.source} indicator`);if(xe)ye(ge,"UNEXPECTED_TOKEN",`Unexpected ${ge.source} in ${pe??"collection"}`);xe=ge;Ee=Ae==="seq-item-ind"||Ae==="explicit-key-ind";we=false;break;case"comma":if(pe){if(Qe)ye(ge,"UNEXPECTED_TOKEN",`Unexpected , in ${pe}`);Qe=ge;Ee=false;we=false;break}default:ye(ge,"UNEXPECTED_TOKEN",`Unexpected ${ge.type} token`);Ee=false;we=false}}const Te=R[R.length-1];const De=Te?Te.offset+Te.source.length:ge;if(Se&&he&&he.type!=="space"&&he.type!=="newline"&&he.type!=="comma"&&(he.type!=="scalar"||he.source!=="")){ye(he.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(Be&&(Ee&&Be.indent<=me||he?.type==="block-map"||he?.type==="block-seq"))ye(Be,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:Qe,found:xe,spaceBefore:be,comment:Ce,hasNewline:Ie,anchor:ke,tag:Oe,newlineAfterProp:Re,end:De,start:Pe??De}}pe.resolveProps=resolveProps},40976:(R,pe)=>{"use strict";function containsNewline(R){if(!R)return null;switch(R.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(R.source.includes("\n"))return true;if(R.end)for(const pe of R.end)if(pe.type==="newline")return true;return false;case"flow-collection":for(const pe of R.items){for(const R of pe.start)if(R.type==="newline")return true;if(pe.sep)for(const R of pe.sep)if(R.type==="newline")return true;if(containsNewline(pe.key)||containsNewline(pe.value))return true}return false;default:return true}}pe.containsNewline=containsNewline},78781:(R,pe)=>{"use strict";function emptyScalarPosition(R,pe,Ae){if(pe){if(Ae===null)Ae=pe.length;for(let he=Ae-1;he>=0;--he){let Ae=pe[he];switch(Ae.type){case"space":case"comment":case"newline":R-=Ae.source.length;continue}Ae=pe[++he];while(Ae?.type==="space"){R+=Ae.source.length;Ae=pe[++he]}break}}return R}pe.emptyScalarPosition=emptyScalarPosition},83669:(R,pe,Ae)=>{"use strict";var he=Ae(40976);function flowIndentCheck(R,pe,Ae){if(pe?.type==="flow-collection"){const ge=pe.end[0];if(ge.indent===R&&(ge.source==="]"||ge.source==="}")&&he.containsNewline(pe)){const R="Flow end indicator should be more indented than parent";Ae(ge,"BAD_INDENT",R,true)}}}pe.flowIndentCheck=flowIndentCheck},66899:(R,pe,Ae)=>{"use strict";var he=Ae(15589);function mapIncludes(R,pe,Ae){const{uniqueKeys:ge}=R.options;if(ge===false)return false;const ye=typeof ge==="function"?ge:(pe,Ae)=>pe===Ae||he.isScalar(pe)&&he.isScalar(Ae)&&pe.value===Ae.value&&!(pe.value==="<<"&&R.schema.merge);return pe.some((R=>ye(R.key,Ae)))}pe.mapIncludes=mapIncludes},10042:(R,pe,Ae)=>{"use strict";var he=Ae(5639);var ge=Ae(3466);var ye=Ae(15589);var me=Ae(246);var ve=Ae(72463);var be=Ae(56831);var Ee=Ae(35225);var we=Ae(28459);var Ce=Ae(63412);var _e=Ae(9652);var Ie=Ae(5400);class Document{constructor(R,pe,Ae){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,ye.NODE_TYPE,{value:ye.DOC});let he=null;if(typeof pe==="function"||Array.isArray(pe)){he=pe}else if(Ae===undefined&&pe){Ae=pe;pe=undefined}const ge=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},Ae);this.options=ge;let{version:me}=ge;if(Ae?._directives){this.directives=Ae._directives.atDocument();if(this.directives.yaml.explicit)me=this.directives.yaml.version}else this.directives=new Ie.Directives({version:me});this.setSchema(me,Ae);this.contents=R===undefined?null:this.createNode(R,he,Ae)}clone(){const R=Object.create(Document.prototype,{[ye.NODE_TYPE]:{value:ye.DOC}});R.commentBefore=this.commentBefore;R.comment=this.comment;R.errors=this.errors.slice();R.warnings=this.warnings.slice();R.options=Object.assign({},this.options);if(this.directives)R.directives=this.directives.clone();R.schema=this.schema.clone();R.contents=ye.isNode(this.contents)?this.contents.clone(R.schema):this.contents;if(this.range)R.range=this.range.slice();return R}add(R){if(assertCollection(this.contents))this.contents.add(R)}addIn(R,pe){if(assertCollection(this.contents))this.contents.addIn(R,pe)}createAlias(R,pe){if(!R.anchor){const Ae=we.anchorNames(this);R.anchor=!pe||Ae.has(pe)?we.findNewAnchor(pe||"a",Ae):pe}return new he.Alias(R.anchor)}createNode(R,pe,Ae){let he=undefined;if(typeof pe==="function"){R=pe.call({"":R},"",R);he=pe}else if(Array.isArray(pe)){const keyToStr=R=>typeof R==="number"||R instanceof String||R instanceof Number;const R=pe.filter(keyToStr).map(String);if(R.length>0)pe=pe.concat(R);he=pe}else if(Ae===undefined&&pe){Ae=pe;pe=undefined}const{aliasDuplicateObjects:ge,anchorPrefix:me,flow:ve,keepUndefined:be,onTagObj:Ee,tag:Ce}=Ae??{};const{onAnchor:Ie,setAnchors:Se,sourceObjects:Be}=we.createNodeAnchors(this,me||"a");const ke={aliasDuplicateObjects:ge??true,keepUndefined:be??false,onAnchor:Ie,onTagObj:Ee,replacer:he,schema:this.schema,sourceObjects:Be};const Oe=_e.createNode(R,Ce,ke);if(ve&&ye.isCollection(Oe))Oe.flow=true;Se();return Oe}createPair(R,pe,Ae={}){const he=this.createNode(R,null,Ae);const ge=this.createNode(pe,null,Ae);return new me.Pair(he,ge)}delete(R){return assertCollection(this.contents)?this.contents.delete(R):false}deleteIn(R){if(ge.isEmptyPath(R)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(R):false}get(R,pe){return ye.isCollection(this.contents)?this.contents.get(R,pe):undefined}getIn(R,pe){if(ge.isEmptyPath(R))return!pe&&ye.isScalar(this.contents)?this.contents.value:this.contents;return ye.isCollection(this.contents)?this.contents.getIn(R,pe):undefined}has(R){return ye.isCollection(this.contents)?this.contents.has(R):false}hasIn(R){if(ge.isEmptyPath(R))return this.contents!==undefined;return ye.isCollection(this.contents)?this.contents.hasIn(R):false}set(R,pe){if(this.contents==null){this.contents=ge.collectionFromPath(this.schema,[R],pe)}else if(assertCollection(this.contents)){this.contents.set(R,pe)}}setIn(R,pe){if(ge.isEmptyPath(R)){this.contents=pe}else if(this.contents==null){this.contents=ge.collectionFromPath(this.schema,Array.from(R),pe)}else if(assertCollection(this.contents)){this.contents.setIn(R,pe)}}setSchema(R,pe={}){if(typeof R==="number")R=String(R);let Ae;switch(R){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new Ie.Directives({version:"1.1"});Ae={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=R;else this.directives=new Ie.Directives({version:R});Ae={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;Ae=null;break;default:{const pe=JSON.stringify(R);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${pe}`)}}if(pe.schema instanceof Object)this.schema=pe.schema;else if(Ae)this.schema=new be.Schema(Object.assign(Ae,pe));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:R,jsonArg:pe,mapAsMap:Ae,maxAliasCount:he,onAnchor:ge,reviver:ye}={}){const me={anchors:new Map,doc:this,keep:!R,mapAsMap:Ae===true,mapKeyWarned:false,maxAliasCount:typeof he==="number"?he:100};const be=ve.toJS(this.contents,pe??"",me);if(typeof ge==="function")for(const{count:R,res:pe}of me.anchors.values())ge(pe,R);return typeof ye==="function"?Ce.applyReviver(ye,{"":be},"",be):be}toJSON(R,pe){return this.toJS({json:true,jsonArg:R,mapAsMap:false,onAnchor:pe})}toString(R={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in R&&(!Number.isInteger(R.indent)||Number(R.indent)<=0)){const pe=JSON.stringify(R.indent);throw new Error(`"indent" option must be a positive integer, not ${pe}`)}return Ee.stringifyDocument(this,R)}}function assertCollection(R){if(ye.isCollection(R))return true;throw new Error("Expected a YAML collection as document contents")}pe.Document=Document},28459:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(16796);function anchorIsValid(R){if(/[\x00-\x19\s,[\]{}]/.test(R)){const pe=JSON.stringify(R);const Ae=`Anchor must not contain whitespace or control characters: ${pe}`;throw new Error(Ae)}return true}function anchorNames(R){const pe=new Set;ge.visit(R,{Value(R,Ae){if(Ae.anchor)pe.add(Ae.anchor)}});return pe}function findNewAnchor(R,pe){for(let Ae=1;true;++Ae){const he=`${R}${Ae}`;if(!pe.has(he))return he}}function createNodeAnchors(R,pe){const Ae=[];const ge=new Map;let ye=null;return{onAnchor:he=>{Ae.push(he);if(!ye)ye=anchorNames(R);const ge=findNewAnchor(pe,ye);ye.add(ge);return ge},setAnchors:()=>{for(const R of Ae){const pe=ge.get(R);if(typeof pe==="object"&&pe.anchor&&(he.isScalar(pe.node)||he.isCollection(pe.node))){pe.node.anchor=pe.anchor}else{const pe=new Error("Failed to resolve repeated object (this should not happen)");pe.source=R;throw pe}}},sourceObjects:ge}}pe.anchorIsValid=anchorIsValid;pe.anchorNames=anchorNames;pe.createNodeAnchors=createNodeAnchors;pe.findNewAnchor=findNewAnchor},63412:(R,pe)=>{"use strict";function applyReviver(R,pe,Ae,he){if(he&&typeof he==="object"){if(Array.isArray(he)){for(let pe=0,Ae=he.length;pe{"use strict";var he=Ae(5639);var ge=Ae(15589);var ye=Ae(9338);const me="tag:yaml.org,2002:";function findTagObject(R,pe,Ae){if(pe){const R=Ae.filter((R=>R.tag===pe));const he=R.find((R=>!R.format))??R[0];if(!he)throw new Error(`Tag ${pe} not found`);return he}return Ae.find((pe=>pe.identify?.(R)&&!pe.format))}function createNode(R,pe,Ae){if(ge.isDocument(R))R=R.contents;if(ge.isNode(R))return R;if(ge.isPair(R)){const pe=Ae.schema[ge.MAP].createNode?.(Ae.schema,null,Ae);pe.items.push(R);return pe}if(R instanceof String||R instanceof Number||R instanceof Boolean||typeof BigInt!=="undefined"&&R instanceof BigInt){R=R.valueOf()}const{aliasDuplicateObjects:ve,onAnchor:be,onTagObj:Ee,schema:we,sourceObjects:Ce}=Ae;let _e=undefined;if(ve&&R&&typeof R==="object"){_e=Ce.get(R);if(_e){if(!_e.anchor)_e.anchor=be(R);return new he.Alias(_e.anchor)}else{_e={anchor:null,node:null};Ce.set(R,_e)}}if(pe?.startsWith("!!"))pe=me+pe.slice(2);let Ie=findTagObject(R,pe,we.tags);if(!Ie){if(R&&typeof R.toJSON==="function"){R=R.toJSON()}if(!R||typeof R!=="object"){const pe=new ye.Scalar(R);if(_e)_e.node=pe;return pe}Ie=R instanceof Map?we[ge.MAP]:Symbol.iterator in Object(R)?we[ge.SEQ]:we[ge.MAP]}if(Ee){Ee(Ie);delete Ae.onTagObj}const Se=Ie?.createNode?Ie.createNode(Ae.schema,R,Ae):typeof Ie?.nodeClass?.from==="function"?Ie.nodeClass.from(Ae.schema,R,Ae):new ye.Scalar(R);if(pe)Se.tag=pe;else if(!Ie.default)Se.tag=Ie.tag;if(_e)_e.node=Se;return Se}pe.createNode=createNode},5400:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(16796);const ye={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=R=>R.replace(/[!,[\]{}]/g,(R=>ye[R]));class Directives{constructor(R,pe){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,R);this.tags=Object.assign({},Directives.defaultTags,pe)}clone(){const R=new Directives(this.yaml,this.tags);R.docStart=this.docStart;return R}atDocument(){const R=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return R}add(R,pe){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const Ae=R.trim().split(/[ \t]+/);const he=Ae.shift();switch(he){case"%TAG":{if(Ae.length!==2){pe(0,"%TAG directive should contain exactly two parts");if(Ae.length<2)return false}const[R,he]=Ae;this.tags[R]=he;return true}case"%YAML":{this.yaml.explicit=true;if(Ae.length!==1){pe(0,"%YAML directive should contain exactly one part");return false}const[R]=Ae;if(R==="1.1"||R==="1.2"){this.yaml.version=R;return true}else{const Ae=/^\d+\.\d+$/.test(R);pe(6,`Unsupported YAML version ${R}`,Ae);return false}}default:pe(0,`Unknown directive ${he}`,true);return false}}tagName(R,pe){if(R==="!")return"!";if(R[0]!=="!"){pe(`Not a valid tag: ${R}`);return null}if(R[1]==="<"){const Ae=R.slice(2,-1);if(Ae==="!"||Ae==="!!"){pe(`Verbatim tags aren't resolved, so ${R} is invalid.`);return null}if(R[R.length-1]!==">")pe("Verbatim tags must end with a >");return Ae}const[,Ae,he]=R.match(/^(.*!)([^!]*)$/s);if(!he)pe(`The ${R} tag has no suffix`);const ge=this.tags[Ae];if(ge){try{return ge+decodeURIComponent(he)}catch(R){pe(String(R));return null}}if(Ae==="!")return R;pe(`Could not resolve tag: ${R}`);return null}tagString(R){for(const[pe,Ae]of Object.entries(this.tags)){if(R.startsWith(Ae))return pe+escapeTagName(R.substring(Ae.length))}return R[0]==="!"?R:`!<${R}>`}toString(R){const pe=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const Ae=Object.entries(this.tags);let ye;if(R&&Ae.length>0&&he.isNode(R.contents)){const pe={};ge.visit(R.contents,((R,Ae)=>{if(he.isNode(Ae)&&Ae.tag)pe[Ae.tag]=true}));ye=Object.keys(pe)}else ye=[];for(const[he,ge]of Ae){if(he==="!!"&&ge==="tag:yaml.org,2002:")continue;if(!R||ye.some((R=>R.startsWith(ge))))pe.push(`%TAG ${he} ${ge}`)}return pe.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};pe.Directives=Directives},14236:(R,pe)=>{"use strict";class YAMLError extends Error{constructor(R,pe,Ae,he){super();this.name=R;this.code=Ae;this.message=he;this.pos=pe}}class YAMLParseError extends YAMLError{constructor(R,pe,Ae){super("YAMLParseError",R,pe,Ae)}}class YAMLWarning extends YAMLError{constructor(R,pe,Ae){super("YAMLWarning",R,pe,Ae)}}const prettifyError=(R,pe)=>Ae=>{if(Ae.pos[0]===-1)return;Ae.linePos=Ae.pos.map((R=>pe.linePos(R)));const{line:he,col:ge}=Ae.linePos[0];Ae.message+=` at line ${he}, column ${ge}`;let ye=ge-1;let me=R.substring(pe.lineStarts[he-1],pe.lineStarts[he]).replace(/[\n\r]+$/,"");if(ye>=60&&me.length>80){const R=Math.min(ye-39,me.length-79);me="…"+me.substring(R);ye-=R-1}if(me.length>80)me=me.substring(0,79)+"…";if(he>1&&/^ *$/.test(me.substring(0,ye))){let Ae=R.substring(pe.lineStarts[he-2],pe.lineStarts[he-1]);if(Ae.length>80)Ae=Ae.substring(0,79)+"…\n";me=Ae+me}if(/[^ ]/.test(me)){let R=1;const pe=Ae.linePos[1];if(pe&&pe.line===he&&pe.col>ge){R=Math.max(1,Math.min(pe.col-ge,80-ye))}const ve=" ".repeat(ye)+"^".repeat(R);Ae.message+=`:\n\n${me}\n${ve}\n`}};pe.YAMLError=YAMLError;pe.YAMLParseError=YAMLParseError;pe.YAMLWarning=YAMLWarning;pe.prettifyError=prettifyError},44083:(R,pe,Ae)=>{"use strict";var he=Ae(45875);var ge=Ae(10042);var ye=Ae(56831);var me=Ae(14236);var ve=Ae(5639);var be=Ae(15589);var Ee=Ae(246);var we=Ae(9338);var Ce=Ae(16011);var _e=Ae(25161);var Ie=Ae(19169);var Se=Ae(45976);var Be=Ae(21929);var ke=Ae(73328);var Oe=Ae(28649);var Re=Ae(16796);pe.Composer=he.Composer;pe.Document=ge.Document;pe.Schema=ye.Schema;pe.YAMLError=me.YAMLError;pe.YAMLParseError=me.YAMLParseError;pe.YAMLWarning=me.YAMLWarning;pe.Alias=ve.Alias;pe.isAlias=be.isAlias;pe.isCollection=be.isCollection;pe.isDocument=be.isDocument;pe.isMap=be.isMap;pe.isNode=be.isNode;pe.isPair=be.isPair;pe.isScalar=be.isScalar;pe.isSeq=be.isSeq;pe.Pair=Ee.Pair;pe.Scalar=we.Scalar;pe.YAMLMap=Ce.YAMLMap;pe.YAMLSeq=_e.YAMLSeq;pe.CST=Ie;pe.Lexer=Se.Lexer;pe.LineCounter=Be.LineCounter;pe.Parser=ke.Parser;pe.parse=Oe.parse;pe.parseAllDocuments=Oe.parseAllDocuments;pe.parseDocument=Oe.parseDocument;pe.stringify=Oe.stringify;pe.visit=Re.visit;pe.visitAsync=Re.visitAsync},36909:(R,pe)=>{"use strict";function debug(R,...pe){if(R==="debug")console.log(...pe)}function warn(R,pe){if(R==="debug"||R==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(pe);else console.warn(pe)}}pe.debug=debug;pe.warn=warn},5639:(R,pe,Ae)=>{"use strict";var he=Ae(28459);var ge=Ae(16796);var ye=Ae(15589);var me=Ae(41399);var ve=Ae(72463);class Alias extends me.NodeBase{constructor(R){super(ye.ALIAS);this.source=R;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(R){let pe=undefined;ge.visit(R,{Node:(R,Ae)=>{if(Ae===this)return ge.visit.BREAK;if(Ae.anchor===this.source)pe=Ae}});return pe}toJSON(R,pe){if(!pe)return{source:this.source};const{anchors:Ae,doc:he,maxAliasCount:ge}=pe;const ye=this.resolve(he);if(!ye){const R=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(R)}let me=Ae.get(ye);if(!me){ve.toJS(ye,null,pe);me=Ae.get(ye)}if(!me||me.res===undefined){const R="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(R)}if(ge>=0){me.count+=1;if(me.aliasCount===0)me.aliasCount=getAliasCount(he,ye,Ae);if(me.count*me.aliasCount>ge){const R="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(R)}}return me.res}toString(R,pe,Ae){const ge=`*${this.source}`;if(R){he.anchorIsValid(this.source);if(R.options.verifyAliasOrder&&!R.anchors.has(this.source)){const R=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(R)}if(R.implicitKey)return`${ge} `}return ge}}function getAliasCount(R,pe,Ae){if(ye.isAlias(pe)){const he=pe.resolve(R);const ge=Ae&&he&&Ae.get(he);return ge?ge.count*ge.aliasCount:0}else if(ye.isCollection(pe)){let he=0;for(const ge of pe.items){const pe=getAliasCount(R,ge,Ae);if(pe>he)he=pe}return he}else if(ye.isPair(pe)){const he=getAliasCount(R,pe.key,Ae);const ge=getAliasCount(R,pe.value,Ae);return Math.max(he,ge)}return 1}pe.Alias=Alias},3466:(R,pe,Ae)=>{"use strict";var he=Ae(9652);var ge=Ae(15589);var ye=Ae(41399);function collectionFromPath(R,pe,Ae){let ge=Ae;for(let R=pe.length-1;R>=0;--R){const Ae=pe[R];if(typeof Ae==="number"&&Number.isInteger(Ae)&&Ae>=0){const R=[];R[Ae]=ge;ge=R}else{ge=new Map([[Ae,ge]])}}return he.createNode(ge,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:R,sourceObjects:new Map})}const isEmptyPath=R=>R==null||typeof R==="object"&&!!R[Symbol.iterator]().next().done;class Collection extends ye.NodeBase{constructor(R,pe){super(R);Object.defineProperty(this,"schema",{value:pe,configurable:true,enumerable:false,writable:true})}clone(R){const pe=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(R)pe.schema=R;pe.items=pe.items.map((pe=>ge.isNode(pe)||ge.isPair(pe)?pe.clone(R):pe));if(this.range)pe.range=this.range.slice();return pe}addIn(R,pe){if(isEmptyPath(R))this.add(pe);else{const[Ae,...he]=R;const ye=this.get(Ae,true);if(ge.isCollection(ye))ye.addIn(he,pe);else if(ye===undefined&&this.schema)this.set(Ae,collectionFromPath(this.schema,he,pe));else throw new Error(`Expected YAML collection at ${Ae}. Remaining path: ${he}`)}}deleteIn(R){const[pe,...Ae]=R;if(Ae.length===0)return this.delete(pe);const he=this.get(pe,true);if(ge.isCollection(he))return he.deleteIn(Ae);else throw new Error(`Expected YAML collection at ${pe}. Remaining path: ${Ae}`)}getIn(R,pe){const[Ae,...he]=R;const ye=this.get(Ae,true);if(he.length===0)return!pe&&ge.isScalar(ye)?ye.value:ye;else return ge.isCollection(ye)?ye.getIn(he,pe):undefined}hasAllNullValues(R){return this.items.every((pe=>{if(!ge.isPair(pe))return false;const Ae=pe.value;return Ae==null||R&&ge.isScalar(Ae)&&Ae.value==null&&!Ae.commentBefore&&!Ae.comment&&!Ae.tag}))}hasIn(R){const[pe,...Ae]=R;if(Ae.length===0)return this.has(pe);const he=this.get(pe,true);return ge.isCollection(he)?he.hasIn(Ae):false}setIn(R,pe){const[Ae,...he]=R;if(he.length===0){this.set(Ae,pe)}else{const R=this.get(Ae,true);if(ge.isCollection(R))R.setIn(he,pe);else if(R===undefined&&this.schema)this.set(Ae,collectionFromPath(this.schema,he,pe));else throw new Error(`Expected YAML collection at ${Ae}. Remaining path: ${he}`)}}}pe.Collection=Collection;pe.collectionFromPath=collectionFromPath;pe.isEmptyPath=isEmptyPath},41399:(R,pe,Ae)=>{"use strict";var he=Ae(63412);var ge=Ae(15589);var ye=Ae(72463);class NodeBase{constructor(R){Object.defineProperty(this,ge.NODE_TYPE,{value:R})}clone(){const R=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)R.range=this.range.slice();return R}toJS(R,{mapAsMap:pe,maxAliasCount:Ae,onAnchor:me,reviver:ve}={}){if(!ge.isDocument(R))throw new TypeError("A document argument is required");const be={anchors:new Map,doc:R,keep:true,mapAsMap:pe===true,mapKeyWarned:false,maxAliasCount:typeof Ae==="number"?Ae:100};const Ee=ye.toJS(this,"",be);if(typeof me==="function")for(const{count:R,res:pe}of be.anchors.values())me(pe,R);return typeof ve==="function"?he.applyReviver(ve,{"":Ee},"",Ee):Ee}}pe.NodeBase=NodeBase},246:(R,pe,Ae)=>{"use strict";var he=Ae(9652);var ge=Ae(4875);var ye=Ae(94676);var me=Ae(15589);function createPair(R,pe,Ae){const ge=he.createNode(R,undefined,Ae);const ye=he.createNode(pe,undefined,Ae);return new Pair(ge,ye)}class Pair{constructor(R,pe=null){Object.defineProperty(this,me.NODE_TYPE,{value:me.PAIR});this.key=R;this.value=pe}clone(R){let{key:pe,value:Ae}=this;if(me.isNode(pe))pe=pe.clone(R);if(me.isNode(Ae))Ae=Ae.clone(R);return new Pair(pe,Ae)}toJSON(R,pe){const Ae=pe?.mapAsMap?new Map:{};return ye.addPairToJSMap(pe,Ae,this)}toString(R,pe,Ae){return R?.doc?ge.stringifyPair(this,R,pe,Ae):JSON.stringify(this)}}pe.Pair=Pair;pe.createPair=createPair},9338:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(41399);var ye=Ae(72463);const isScalarValue=R=>!R||typeof R!=="function"&&typeof R!=="object";class Scalar extends ge.NodeBase{constructor(R){super(he.SCALAR);this.value=R}toJSON(R,pe){return pe?.keep?this.value:ye.toJS(this.value,R,pe)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";pe.Scalar=Scalar;pe.isScalarValue=isScalarValue},16011:(R,pe,Ae)=>{"use strict";var he=Ae(22466);var ge=Ae(94676);var ye=Ae(3466);var me=Ae(15589);var ve=Ae(246);var be=Ae(9338);function findPair(R,pe){const Ae=me.isScalar(pe)?pe.value:pe;for(const he of R){if(me.isPair(he)){if(he.key===pe||he.key===Ae)return he;if(me.isScalar(he.key)&&he.key.value===Ae)return he}}return undefined}class YAMLMap extends ye.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(R){super(me.MAP,R);this.items=[]}static from(R,pe,Ae){const{keepUndefined:he,replacer:ge}=Ae;const ye=new this(R);const add=(R,me)=>{if(typeof ge==="function")me=ge.call(pe,R,me);else if(Array.isArray(ge)&&!ge.includes(R))return;if(me!==undefined||he)ye.items.push(ve.createPair(R,me,Ae))};if(pe instanceof Map){for(const[R,Ae]of pe)add(R,Ae)}else if(pe&&typeof pe==="object"){for(const R of Object.keys(pe))add(R,pe[R])}if(typeof R.sortMapEntries==="function"){ye.items.sort(R.sortMapEntries)}return ye}add(R,pe){let Ae;if(me.isPair(R))Ae=R;else if(!R||typeof R!=="object"||!("key"in R)){Ae=new ve.Pair(R,R?.value)}else Ae=new ve.Pair(R.key,R.value);const he=findPair(this.items,Ae.key);const ge=this.schema?.sortMapEntries;if(he){if(!pe)throw new Error(`Key ${Ae.key} already set`);if(me.isScalar(he.value)&&be.isScalarValue(Ae.value))he.value.value=Ae.value;else he.value=Ae.value}else if(ge){const R=this.items.findIndex((R=>ge(Ae,R)<0));if(R===-1)this.items.push(Ae);else this.items.splice(R,0,Ae)}else{this.items.push(Ae)}}delete(R){const pe=findPair(this.items,R);if(!pe)return false;const Ae=this.items.splice(this.items.indexOf(pe),1);return Ae.length>0}get(R,pe){const Ae=findPair(this.items,R);const he=Ae?.value;return(!pe&&me.isScalar(he)?he.value:he)??undefined}has(R){return!!findPair(this.items,R)}set(R,pe){this.add(new ve.Pair(R,pe),true)}toJSON(R,pe,Ae){const he=Ae?new Ae:pe?.mapAsMap?new Map:{};if(pe?.onCreate)pe.onCreate(he);for(const R of this.items)ge.addPairToJSMap(pe,he,R);return he}toString(R,pe,Ae){if(!R)return JSON.stringify(this);for(const R of this.items){if(!me.isPair(R))throw new Error(`Map items must all be pairs; found ${JSON.stringify(R)} instead`)}if(!R.allNullValues&&this.hasAllNullValues(false))R=Object.assign({},R,{allNullValues:true});return he.stringifyCollection(this,R,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:R.indent||"",onChompKeep:Ae,onComment:pe})}}pe.YAMLMap=YAMLMap;pe.findPair=findPair},25161:(R,pe,Ae)=>{"use strict";var he=Ae(9652);var ge=Ae(22466);var ye=Ae(3466);var me=Ae(15589);var ve=Ae(9338);var be=Ae(72463);class YAMLSeq extends ye.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(R){super(me.SEQ,R);this.items=[]}add(R){this.items.push(R)}delete(R){const pe=asItemIndex(R);if(typeof pe!=="number")return false;const Ae=this.items.splice(pe,1);return Ae.length>0}get(R,pe){const Ae=asItemIndex(R);if(typeof Ae!=="number")return undefined;const he=this.items[Ae];return!pe&&me.isScalar(he)?he.value:he}has(R){const pe=asItemIndex(R);return typeof pe==="number"&&pe=0?pe:null}pe.YAMLSeq=YAMLSeq},94676:(R,pe,Ae)=>{"use strict";var he=Ae(36909);var ge=Ae(18409);var ye=Ae(15589);var me=Ae(9338);var ve=Ae(72463);const be="<<";function addPairToJSMap(R,pe,{key:Ae,value:he}){if(R?.doc.schema.merge&&isMergeKey(Ae)){he=ye.isAlias(he)?he.resolve(R.doc):he;if(ye.isSeq(he))for(const Ae of he.items)mergeToJSMap(R,pe,Ae);else if(Array.isArray(he))for(const Ae of he)mergeToJSMap(R,pe,Ae);else mergeToJSMap(R,pe,he)}else{const ge=ve.toJS(Ae,"",R);if(pe instanceof Map){pe.set(ge,ve.toJS(he,ge,R))}else if(pe instanceof Set){pe.add(ge)}else{const ye=stringifyKey(Ae,ge,R);const me=ve.toJS(he,ye,R);if(ye in pe)Object.defineProperty(pe,ye,{value:me,writable:true,enumerable:true,configurable:true});else pe[ye]=me}}return pe}const isMergeKey=R=>R===be||ye.isScalar(R)&&R.value===be&&(!R.type||R.type===me.Scalar.PLAIN);function mergeToJSMap(R,pe,Ae){const he=R&&ye.isAlias(Ae)?Ae.resolve(R.doc):Ae;if(!ye.isMap(he))throw new Error("Merge sources must be maps or map aliases");const ge=he.toJSON(null,R,Map);for(const[R,Ae]of ge){if(pe instanceof Map){if(!pe.has(R))pe.set(R,Ae)}else if(pe instanceof Set){pe.add(R)}else if(!Object.prototype.hasOwnProperty.call(pe,R)){Object.defineProperty(pe,R,{value:Ae,writable:true,enumerable:true,configurable:true})}}return pe}function stringifyKey(R,pe,Ae){if(pe===null)return"";if(typeof pe!=="object")return String(pe);if(ye.isNode(R)&&Ae?.doc){const pe=ge.createStringifyContext(Ae.doc,{});pe.anchors=new Set;for(const R of Ae.anchors.keys())pe.anchors.add(R.anchor);pe.inFlow=true;pe.inStringifyKey=true;const ye=R.toString(pe);if(!Ae.mapKeyWarned){let R=JSON.stringify(ye);if(R.length>40)R=R.substring(0,36)+'..."';he.warn(Ae.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${R}. Set mapAsMap: true to use object keys.`);Ae.mapKeyWarned=true}return ye}return JSON.stringify(pe)}pe.addPairToJSMap=addPairToJSMap},15589:(R,pe)=>{"use strict";const Ae=Symbol.for("yaml.alias");const he=Symbol.for("yaml.document");const ge=Symbol.for("yaml.map");const ye=Symbol.for("yaml.pair");const me=Symbol.for("yaml.scalar");const ve=Symbol.for("yaml.seq");const be=Symbol.for("yaml.node.type");const isAlias=R=>!!R&&typeof R==="object"&&R[be]===Ae;const isDocument=R=>!!R&&typeof R==="object"&&R[be]===he;const isMap=R=>!!R&&typeof R==="object"&&R[be]===ge;const isPair=R=>!!R&&typeof R==="object"&&R[be]===ye;const isScalar=R=>!!R&&typeof R==="object"&&R[be]===me;const isSeq=R=>!!R&&typeof R==="object"&&R[be]===ve;function isCollection(R){if(R&&typeof R==="object")switch(R[be]){case ge:case ve:return true}return false}function isNode(R){if(R&&typeof R==="object")switch(R[be]){case Ae:case ge:case me:case ve:return true}return false}const hasAnchor=R=>(isScalar(R)||isCollection(R))&&!!R.anchor;pe.ALIAS=Ae;pe.DOC=he;pe.MAP=ge;pe.NODE_TYPE=be;pe.PAIR=ye;pe.SCALAR=me;pe.SEQ=ve;pe.hasAnchor=hasAnchor;pe.isAlias=isAlias;pe.isCollection=isCollection;pe.isDocument=isDocument;pe.isMap=isMap;pe.isNode=isNode;pe.isPair=isPair;pe.isScalar=isScalar;pe.isSeq=isSeq},72463:(R,pe,Ae)=>{"use strict";var he=Ae(15589);function toJS(R,pe,Ae){if(Array.isArray(R))return R.map(((R,pe)=>toJS(R,String(pe),Ae)));if(R&&typeof R.toJSON==="function"){if(!Ae||!he.hasAnchor(R))return R.toJSON(pe,Ae);const ge={aliasCount:0,count:1,res:undefined};Ae.anchors.set(R,ge);Ae.onCreate=R=>{ge.res=R;delete Ae.onCreate};const ye=R.toJSON(pe,Ae);if(Ae.onCreate)Ae.onCreate(ye);return ye}if(typeof R==="bigint"&&!Ae?.keep)return Number(R);return R}pe.toJS=toJS},89027:(R,pe,Ae)=>{"use strict";var he=Ae(89485);var ge=Ae(97578);var ye=Ae(14236);var me=Ae(46226);function resolveAsScalar(R,pe=true,Ae){if(R){const _onError=(R,pe,he)=>{const ge=typeof R==="number"?R:Array.isArray(R)?R[0]:R.offset;if(Ae)Ae(ge,pe,he);else throw new ye.YAMLParseError([ge,ge+1],pe,he)};switch(R.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return ge.resolveFlowScalar(R,pe,_onError);case"block-scalar":return he.resolveBlockScalar({options:{strict:pe}},R,_onError)}}return null}function createScalarToken(R,pe){const{implicitKey:Ae=false,indent:he,inFlow:ge=false,offset:ye=-1,type:ve="PLAIN"}=pe;const be=me.stringifyString({type:ve,value:R},{implicitKey:Ae,indent:he>0?" ".repeat(he):"",inFlow:ge,options:{blockQuote:true,lineWidth:-1}});const Ee=pe.end??[{type:"newline",offset:-1,indent:he,source:"\n"}];switch(be[0]){case"|":case">":{const R=be.indexOf("\n");const pe=be.substring(0,R);const Ae=be.substring(R+1)+"\n";const ge=[{type:"block-scalar-header",offset:ye,indent:he,source:pe}];if(!addEndtoBlockProps(ge,Ee))ge.push({type:"newline",offset:-1,indent:he,source:"\n"});return{type:"block-scalar",offset:ye,indent:he,props:ge,source:Ae}}case'"':return{type:"double-quoted-scalar",offset:ye,indent:he,source:be,end:Ee};case"'":return{type:"single-quoted-scalar",offset:ye,indent:he,source:be,end:Ee};default:return{type:"scalar",offset:ye,indent:he,source:be,end:Ee}}}function setScalarValue(R,pe,Ae={}){let{afterKey:he=false,implicitKey:ge=false,inFlow:ye=false,type:ve}=Ae;let be="indent"in R?R.indent:null;if(he&&typeof be==="number")be+=2;if(!ve)switch(R.type){case"single-quoted-scalar":ve="QUOTE_SINGLE";break;case"double-quoted-scalar":ve="QUOTE_DOUBLE";break;case"block-scalar":{const pe=R.props[0];if(pe.type!=="block-scalar-header")throw new Error("Invalid block scalar header");ve=pe.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:ve="PLAIN"}const Ee=me.stringifyString({type:ve,value:pe},{implicitKey:ge||be===null,indent:be!==null&&be>0?" ".repeat(be):"",inFlow:ye,options:{blockQuote:true,lineWidth:-1}});switch(Ee[0]){case"|":case">":setBlockScalarValue(R,Ee);break;case'"':setFlowScalarValue(R,Ee,"double-quoted-scalar");break;case"'":setFlowScalarValue(R,Ee,"single-quoted-scalar");break;default:setFlowScalarValue(R,Ee,"scalar")}}function setBlockScalarValue(R,pe){const Ae=pe.indexOf("\n");const he=pe.substring(0,Ae);const ge=pe.substring(Ae+1)+"\n";if(R.type==="block-scalar"){const pe=R.props[0];if(pe.type!=="block-scalar-header")throw new Error("Invalid block scalar header");pe.source=he;R.source=ge}else{const{offset:pe}=R;const Ae="indent"in R?R.indent:-1;const ye=[{type:"block-scalar-header",offset:pe,indent:Ae,source:he}];if(!addEndtoBlockProps(ye,"end"in R?R.end:undefined))ye.push({type:"newline",offset:-1,indent:Ae,source:"\n"});for(const pe of Object.keys(R))if(pe!=="type"&&pe!=="offset")delete R[pe];Object.assign(R,{type:"block-scalar",indent:Ae,props:ye,source:ge})}}function addEndtoBlockProps(R,pe){if(pe)for(const Ae of pe)switch(Ae.type){case"space":case"comment":R.push(Ae);break;case"newline":R.push(Ae);return true}return false}function setFlowScalarValue(R,pe,Ae){switch(R.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":R.type=Ae;R.source=pe;break;case"block-scalar":{const he=R.props.slice(1);let ge=pe.length;if(R.props[0].type==="block-scalar-header")ge-=R.props[0].source.length;for(const R of he)R.offset+=ge;delete R.props;Object.assign(R,{type:Ae,source:pe,end:he});break}case"block-map":case"block-seq":{const he=R.offset+pe.length;const ge={type:"newline",offset:he,indent:R.indent,source:"\n"};delete R.items;Object.assign(R,{type:Ae,source:pe,end:[ge]});break}default:{const he="indent"in R?R.indent:-1;const ge="end"in R&&Array.isArray(R.end)?R.end.filter((R=>R.type==="space"||R.type==="comment"||R.type==="newline")):[];for(const pe of Object.keys(R))if(pe!=="type"&&pe!=="offset")delete R[pe];Object.assign(R,{type:Ae,indent:he,source:pe,end:ge})}}}pe.createScalarToken=createScalarToken;pe.resolveAsScalar=resolveAsScalar;pe.setScalarValue=setScalarValue},86307:(R,pe)=>{"use strict";const stringify=R=>"type"in R?stringifyToken(R):stringifyItem(R);function stringifyToken(R){switch(R.type){case"block-scalar":{let pe="";for(const Ae of R.props)pe+=stringifyToken(Ae);return pe+R.source}case"block-map":case"block-seq":{let pe="";for(const Ae of R.items)pe+=stringifyItem(Ae);return pe}case"flow-collection":{let pe=R.start.source;for(const Ae of R.items)pe+=stringifyItem(Ae);for(const Ae of R.end)pe+=Ae.source;return pe}case"document":{let pe=stringifyItem(R);if(R.end)for(const Ae of R.end)pe+=Ae.source;return pe}default:{let pe=R.source;if("end"in R&&R.end)for(const Ae of R.end)pe+=Ae.source;return pe}}}function stringifyItem({start:R,key:pe,sep:Ae,value:he}){let ge="";for(const pe of R)ge+=pe.source;if(pe)ge+=stringifyToken(pe);if(Ae)for(const R of Ae)ge+=R.source;if(he)ge+=stringifyToken(he);return ge}pe.stringify=stringify},98497:(R,pe)=>{"use strict";const Ae=Symbol("break visit");const he=Symbol("skip children");const ge=Symbol("remove item");function visit(R,pe){if("type"in R&&R.type==="document")R={start:R.start,value:R.value};_visit(Object.freeze([]),R,pe)}visit.BREAK=Ae;visit.SKIP=he;visit.REMOVE=ge;visit.itemAtPath=(R,pe)=>{let Ae=R;for(const[R,he]of pe){const pe=Ae?.[R];if(pe&&"items"in pe){Ae=pe.items[he]}else return undefined}return Ae};visit.parentCollection=(R,pe)=>{const Ae=visit.itemAtPath(R,pe.slice(0,-1));const he=pe[pe.length-1][0];const ge=Ae?.[he];if(ge&&"items"in ge)return ge;throw new Error("Parent collection not found")};function _visit(R,pe,he){let ye=he(pe,R);if(typeof ye==="symbol")return ye;for(const me of["key","value"]){const ve=pe[me];if(ve&&"items"in ve){for(let pe=0;pe{"use strict";var he=Ae(89027);var ge=Ae(86307);var ye=Ae(98497);const me="\ufeff";const ve="";const be="";const Ee="";const isCollection=R=>!!R&&"items"in R;const isScalar=R=>!!R&&(R.type==="scalar"||R.type==="single-quoted-scalar"||R.type==="double-quoted-scalar"||R.type==="block-scalar");function prettyToken(R){switch(R){case me:return"";case ve:return"";case be:return"";case Ee:return"";default:return JSON.stringify(R)}}function tokenType(R){switch(R){case me:return"byte-order-mark";case ve:return"doc-mode";case be:return"flow-error-end";case Ee:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(R[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}pe.createScalarToken=he.createScalarToken;pe.resolveAsScalar=he.resolveAsScalar;pe.setScalarValue=he.setScalarValue;pe.stringify=ge.stringify;pe.visit=ye.visit;pe.BOM=me;pe.DOCUMENT=ve;pe.FLOW_END=be;pe.SCALAR=Ee;pe.isCollection=isCollection;pe.isScalar=isScalar;pe.prettyToken=prettyToken;pe.tokenType=tokenType},45976:(R,pe,Ae)=>{"use strict";var he=Ae(19169);function isEmpty(R){switch(R){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const ge=new Set("0123456789ABCDEFabcdef");const ye=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const me=new Set(",[]{}");const ve=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=R=>!R||ve.has(R);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(R,pe=false){if(R){if(typeof R!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+R:R;this.lineEndPos=null}this.atEnd=!pe;let Ae=this.next??"stream";while(Ae&&(pe||this.hasChars(1)))Ae=yield*this.parseNext(Ae)}atLineEnd(){let R=this.pos;let pe=this.buffer[R];while(pe===" "||pe==="\t")pe=this.buffer[++R];if(!pe||pe==="#"||pe==="\n")return true;if(pe==="\r")return this.buffer[R+1]==="\n";return false}charAt(R){return this.buffer[this.pos+R]}continueScalar(R){let pe=this.buffer[R];if(this.indentNext>0){let Ae=0;while(pe===" ")pe=this.buffer[++Ae+R];if(pe==="\r"){const pe=this.buffer[Ae+R+1];if(pe==="\n"||!pe&&!this.atEnd)return R+Ae+1}return pe==="\n"||Ae>=this.indentNext||!pe&&!this.atEnd?R+Ae:-1}if(pe==="-"||pe==="."){const pe=this.buffer.substr(R,3);if((pe==="---"||pe==="...")&&isEmpty(this.buffer[R+3]))return-1}return R}getLine(){let R=this.lineEndPos;if(typeof R!=="number"||R!==-1&&Rthis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[R,pe]=this.peek(2);if(!pe&&!this.atEnd)return this.setNext("block-start");if((R==="-"||R==="?"||R===":")&&isEmpty(pe)){const R=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=R;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const R=this.getLine();if(R===null)return this.setNext("doc");let pe=yield*this.pushIndicators();switch(R[pe]){case"#":yield*this.pushCount(R.length-pe);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":pe+=(yield*this.parseBlockScalarHeader());pe+=(yield*this.pushSpaces(true));yield*this.pushCount(R.length-pe);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let R,pe;let Ae=-1;do{R=yield*this.pushNewline();if(R>0){pe=yield*this.pushSpaces(false);this.indentValue=Ae=pe}else{pe=0}pe+=(yield*this.pushSpaces(true))}while(R+pe>0);const ge=this.getLine();if(ge===null)return this.setNext("flow");if(Ae!==-1&&Ae"0"&&pe<="9")this.blockScalarIndent=Number(pe)-1;else if(pe!=="-")break}return yield*this.pushUntil((R=>isEmpty(R)||R==="#"))}*parseBlockScalar(){let R=this.pos-1;let pe=0;let Ae;e:for(let he=this.pos;Ae=this.buffer[he];++he){switch(Ae){case" ":pe+=1;break;case"\n":R=he;pe=0;break;case"\r":{const R=this.buffer[he+1];if(!R&&!this.atEnd)return this.setNext("block-scalar");if(R==="\n")break}default:break e}}if(!Ae&&!this.atEnd)return this.setNext("block-scalar");if(pe>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=pe;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const pe=this.continueScalar(R+1);if(pe===-1)break;R=this.buffer.indexOf("\n",pe)}while(R!==-1);if(R===-1){if(!this.atEnd)return this.setNext("block-scalar");R=this.buffer.length}}let ge=R+1;Ae=this.buffer[ge];while(Ae===" ")Ae=this.buffer[++ge];if(Ae==="\t"){while(Ae==="\t"||Ae===" "||Ae==="\r"||Ae==="\n")Ae=this.buffer[++ge];R=ge-1}else if(!this.blockScalarKeep){do{let Ae=R-1;let he=this.buffer[Ae];if(he==="\r")he=this.buffer[--Ae];const ge=Ae;while(he===" ")he=this.buffer[--Ae];if(he==="\n"&&Ae>=this.pos&&Ae+1+pe>ge)R=Ae;else break}while(true)}yield he.SCALAR;yield*this.pushToIndex(R+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const R=this.flowLevel>0;let pe=this.pos-1;let Ae=this.pos-1;let ge;while(ge=this.buffer[++Ae]){if(ge===":"){const he=this.buffer[Ae+1];if(isEmpty(he)||R&&me.has(he))break;pe=Ae}else if(isEmpty(ge)){let he=this.buffer[Ae+1];if(ge==="\r"){if(he==="\n"){Ae+=1;ge="\n";he=this.buffer[Ae+1]}else pe=Ae}if(he==="#"||R&&me.has(he))break;if(ge==="\n"){const R=this.continueScalar(Ae+1);if(R===-1)break;Ae=Math.max(Ae,R-2)}}else{if(R&&me.has(ge))break;pe=Ae}}if(!ge&&!this.atEnd)return this.setNext("plain-scalar");yield he.SCALAR;yield*this.pushToIndex(pe+1,true);return R?"flow":"doc"}*pushCount(R){if(R>0){yield this.buffer.substr(this.pos,R);this.pos+=R;return R}return 0}*pushToIndex(R,pe){const Ae=this.buffer.slice(this.pos,R);if(Ae){yield Ae;this.pos+=Ae.length;return Ae.length}else if(pe)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const R=this.flowLevel>0;const pe=this.charAt(1);if(isEmpty(pe)||R&&me.has(pe)){if(!R)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let R=this.pos+2;let pe=this.buffer[R];while(!isEmpty(pe)&&pe!==">")pe=this.buffer[++R];return yield*this.pushToIndex(pe===">"?R+1:R,false)}else{let R=this.pos+1;let pe=this.buffer[R];while(pe){if(ye.has(pe))pe=this.buffer[++R];else if(pe==="%"&&ge.has(this.buffer[R+1])&&ge.has(this.buffer[R+2])){pe=this.buffer[R+=3]}else break}return yield*this.pushToIndex(R,false)}}*pushNewline(){const R=this.buffer[this.pos];if(R==="\n")return yield*this.pushCount(1);else if(R==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(R){let pe=this.pos-1;let Ae;do{Ae=this.buffer[++pe]}while(Ae===" "||R&&Ae==="\t");const he=pe-this.pos;if(he>0){yield this.buffer.substr(this.pos,he);this.pos=pe}return he}*pushUntil(R){let pe=this.pos;let Ae=this.buffer[pe];while(!R(Ae))Ae=this.buffer[++pe];return yield*this.pushToIndex(pe,false)}}pe.Lexer=Lexer},21929:(R,pe)=>{"use strict";class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=R=>this.lineStarts.push(R);this.linePos=R=>{let pe=0;let Ae=this.lineStarts.length;while(pe>1;if(this.lineStarts[he]{"use strict";var he=Ae(19169);var ge=Ae(45976);function includesToken(R,pe){for(let Ae=0;Ae=0){switch(R[pe].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(R[++pe]?.type==="space"){}return R.splice(pe,R.length)}function fixFlowSeqItems(R){if(R.start.type==="flow-seq-start"){for(const pe of R.items){if(pe.sep&&!pe.value&&!includesToken(pe.start,"explicit-key-ind")&&!includesToken(pe.sep,"map-value-ind")){if(pe.key)pe.value=pe.key;delete pe.key;if(isFlowToken(pe.value)){if(pe.value.end)Array.prototype.push.apply(pe.value.end,pe.sep);else pe.value.end=pe.sep}else Array.prototype.push.apply(pe.start,pe.sep);delete pe.sep}}}}class Parser{constructor(R){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new ge.Lexer;this.onNewLine=R}*parse(R,pe=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const Ae of this.lexer.lex(R,pe))yield*this.next(Ae);if(!pe)yield*this.end()}*next(R){this.source=R;if(process.env.LOG_TOKENS)console.log("|",he.prettyToken(R));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=R.length;return}const pe=he.tokenType(R);if(!pe){const pe=`Not a YAML token: ${R}`;yield*this.pop({type:"error",offset:this.offset,message:pe,source:R});this.offset+=R.length}else if(pe==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=pe;yield*this.step();switch(pe){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+R.length);break;case"space":if(this.atNewLine&&R[0]===" ")this.indent+=R.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=R.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=R.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const R={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return R}*step(){const R=this.peek(1);if(this.type==="doc-end"&&(!R||R.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!R)return yield*this.stream();switch(R.type){case"document":return yield*this.document(R);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(R);case"block-scalar":return yield*this.blockScalar(R);case"block-map":return yield*this.blockMap(R);case"block-seq":return yield*this.blockSequence(R);case"flow-collection":return yield*this.flowCollection(R);case"doc-end":return yield*this.documentEnd(R)}yield*this.pop()}peek(R){return this.stack[this.stack.length-R]}*pop(R){const pe=R??this.stack.pop();if(!pe){const R="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:R}}else if(this.stack.length===0){yield pe}else{const R=this.peek(1);if(pe.type==="block-scalar"){pe.indent="indent"in R?R.indent:0}else if(pe.type==="flow-collection"&&R.type==="document"){pe.indent=0}if(pe.type==="flow-collection")fixFlowSeqItems(pe);switch(R.type){case"document":R.value=pe;break;case"block-scalar":R.props.push(pe);break;case"block-map":{const Ae=R.items[R.items.length-1];if(Ae.value){R.items.push({start:[],key:pe,sep:[]});this.onKeyLine=true;return}else if(Ae.sep){Ae.value=pe}else{Object.assign(Ae,{key:pe,sep:[]});this.onKeyLine=!Ae.explicitKey;return}break}case"block-seq":{const Ae=R.items[R.items.length-1];if(Ae.value)R.items.push({start:[],value:pe});else Ae.value=pe;break}case"flow-collection":{const Ae=R.items[R.items.length-1];if(!Ae||Ae.value)R.items.push({start:[],key:pe,sep:[]});else if(Ae.sep)Ae.value=pe;else Object.assign(Ae,{key:pe,sep:[]});return}default:yield*this.pop();yield*this.pop(pe)}if((R.type==="document"||R.type==="block-map"||R.type==="block-seq")&&(pe.type==="block-map"||pe.type==="block-seq")){const Ae=pe.items[pe.items.length-1];if(Ae&&!Ae.sep&&!Ae.value&&Ae.start.length>0&&findNonEmptyIndex(Ae.start)===-1&&(pe.indent===0||Ae.start.every((R=>R.type!=="comment"||R.indent=R.indent){const Ae=!this.onKeyLine&&this.indent===R.indent;const he=Ae&&(pe.sep||pe.explicitKey)&&this.type!=="seq-item-ind";let ge=[];if(he&&pe.sep&&!pe.value){const Ae=[];for(let he=0;heR.indent)Ae.length=0;break;default:Ae.length=0}}if(Ae.length>=2)ge=pe.sep.splice(Ae[1])}switch(this.type){case"anchor":case"tag":if(he||pe.value){ge.push(this.sourceToken);R.items.push({start:ge});this.onKeyLine=true}else if(pe.sep){pe.sep.push(this.sourceToken)}else{pe.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!pe.sep&&!pe.explicitKey){pe.start.push(this.sourceToken);pe.explicitKey=true}else if(he||pe.value){ge.push(this.sourceToken);R.items.push({start:ge,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(pe.explicitKey){if(!pe.sep){if(includesToken(pe.start,"newline")){Object.assign(pe,{key:null,sep:[this.sourceToken]})}else{const R=getFirstKeyStartProps(pe.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:R,key:null,sep:[this.sourceToken]}]})}}else if(pe.value){R.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(pe.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:ge,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(pe.key)&&!includesToken(pe.sep,"newline")){const R=getFirstKeyStartProps(pe.start);const Ae=pe.key;const he=pe.sep;he.push(this.sourceToken);delete pe.key,delete pe.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:R,key:Ae,sep:he}]})}else if(ge.length>0){pe.sep=pe.sep.concat(ge,this.sourceToken)}else{pe.sep.push(this.sourceToken)}}else{if(!pe.sep){Object.assign(pe,{key:null,sep:[this.sourceToken]})}else if(pe.value||he){R.items.push({start:ge,key:null,sep:[this.sourceToken]})}else if(includesToken(pe.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{pe.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const Ae=this.flowScalar(this.type);if(he||pe.value){R.items.push({start:ge,key:Ae,sep:[]});this.onKeyLine=true}else if(pe.sep){this.stack.push(Ae)}else{Object.assign(pe,{key:Ae,sep:[]});this.onKeyLine=true}return}default:{const pe=this.startBlockValue(R);if(pe){if(Ae&&pe.type!=="block-seq"){R.items.push({start:ge})}this.stack.push(pe);return}}}}yield*this.pop();yield*this.step()}*blockSequence(R){const pe=R.items[R.items.length-1];switch(this.type){case"newline":if(pe.value){const Ae="end"in pe.value?pe.value.end:undefined;const he=Array.isArray(Ae)?Ae[Ae.length-1]:undefined;if(he?.type==="comment")Ae?.push(this.sourceToken);else R.items.push({start:[this.sourceToken]})}else pe.start.push(this.sourceToken);return;case"space":case"comment":if(pe.value)R.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(pe.start,R.indent)){const Ae=R.items[R.items.length-2];const he=Ae?.value?.end;if(Array.isArray(he)){Array.prototype.push.apply(he,pe.start);he.push(this.sourceToken);R.items.pop();return}}pe.start.push(this.sourceToken)}return;case"anchor":case"tag":if(pe.value||this.indent<=R.indent)break;pe.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==R.indent)break;if(pe.value||includesToken(pe.start,"seq-item-ind"))R.items.push({start:[this.sourceToken]});else pe.start.push(this.sourceToken);return}if(this.indent>R.indent){const pe=this.startBlockValue(R);if(pe){this.stack.push(pe);return}}yield*this.pop();yield*this.step()}*flowCollection(R){const pe=R.items[R.items.length-1];if(this.type==="flow-error-end"){let R;do{yield*this.pop();R=this.peek(1)}while(R&&R.type==="flow-collection")}else if(R.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!pe||pe.sep)R.items.push({start:[this.sourceToken]});else pe.start.push(this.sourceToken);return;case"map-value-ind":if(!pe||pe.value)R.items.push({start:[],key:null,sep:[this.sourceToken]});else if(pe.sep)pe.sep.push(this.sourceToken);else Object.assign(pe,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!pe||pe.value)R.items.push({start:[this.sourceToken]});else if(pe.sep)pe.sep.push(this.sourceToken);else pe.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const Ae=this.flowScalar(this.type);if(!pe||pe.value)R.items.push({start:[],key:Ae,sep:[]});else if(pe.sep)this.stack.push(Ae);else Object.assign(pe,{key:Ae,sep:[]});return}case"flow-map-end":case"flow-seq-end":R.end.push(this.sourceToken);return}const Ae=this.startBlockValue(R);if(Ae)this.stack.push(Ae);else{yield*this.pop();yield*this.step()}}else{const pe=this.peek(2);if(pe.type==="block-map"&&(this.type==="map-value-ind"&&pe.indent===R.indent||this.type==="newline"&&!pe.items[pe.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&pe.type!=="flow-collection"){const Ae=getPrevProps(pe);const he=getFirstKeyStartProps(Ae);fixFlowSeqItems(R);const ge=R.end.splice(1,R.end.length);ge.push(this.sourceToken);const ye={type:"block-map",offset:R.offset,indent:R.indent,items:[{start:he,key:R,sep:ge}]};this.onKeyLine=true;this.stack[this.stack.length-1]=ye}else{yield*this.lineEnd(R)}}}flowScalar(R){if(this.onNewLine){let R=this.source.indexOf("\n")+1;while(R!==0){this.onNewLine(this.offset+R);R=this.source.indexOf("\n",R)+1}}return{type:R,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(R){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const pe=getPrevProps(R);const Ae=getFirstKeyStartProps(pe);Ae.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Ae,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const pe=getPrevProps(R);const Ae=getFirstKeyStartProps(pe);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Ae,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(R,pe){if(this.type!=="comment")return false;if(this.indent<=pe)return false;return R.every((R=>R.type==="newline"||R.type==="space"))}*documentEnd(R){if(this.type!=="doc-mode"){if(R.end)R.end.push(this.sourceToken);else R.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(R){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(R.end)R.end.push(this.sourceToken);else R.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}pe.Parser=Parser},28649:(R,pe,Ae)=>{"use strict";var he=Ae(45875);var ge=Ae(10042);var ye=Ae(14236);var me=Ae(36909);var ve=Ae(21929);var be=Ae(73328);function parseOptions(R){const pe=R.prettyErrors!==false;const Ae=R.lineCounter||pe&&new ve.LineCounter||null;return{lineCounter:Ae,prettyErrors:pe}}function parseAllDocuments(R,pe={}){const{lineCounter:Ae,prettyErrors:ge}=parseOptions(pe);const me=new be.Parser(Ae?.addNewLine);const ve=new he.Composer(pe);const Ee=Array.from(ve.compose(me.parse(R)));if(ge&&Ae)for(const pe of Ee){pe.errors.forEach(ye.prettifyError(R,Ae));pe.warnings.forEach(ye.prettifyError(R,Ae))}if(Ee.length>0)return Ee;return Object.assign([],{empty:true},ve.streamInfo())}function parseDocument(R,pe={}){const{lineCounter:Ae,prettyErrors:ge}=parseOptions(pe);const me=new be.Parser(Ae?.addNewLine);const ve=new he.Composer(pe);let Ee=null;for(const pe of ve.compose(me.parse(R),true,R.length)){if(!Ee)Ee=pe;else if(Ee.options.logLevel!=="silent"){Ee.errors.push(new ye.YAMLParseError(pe.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(ge&&Ae){Ee.errors.forEach(ye.prettifyError(R,Ae));Ee.warnings.forEach(ye.prettifyError(R,Ae))}return Ee}function parse(R,pe,Ae){let he=undefined;if(typeof pe==="function"){he=pe}else if(Ae===undefined&&pe&&typeof pe==="object"){Ae=pe}const ge=parseDocument(R,Ae);if(!ge)return null;ge.warnings.forEach((R=>me.warn(ge.options.logLevel,R)));if(ge.errors.length>0){if(ge.options.logLevel!=="silent")throw ge.errors[0];else ge.errors=[]}return ge.toJS(Object.assign({reviver:he},Ae))}function stringify(R,pe,Ae){let he=null;if(typeof pe==="function"||Array.isArray(pe)){he=pe}else if(Ae===undefined&&pe){Ae=pe}if(typeof Ae==="string")Ae=Ae.length;if(typeof Ae==="number"){const R=Math.round(Ae);Ae=R<1?undefined:R>8?{indent:8}:{indent:R}}if(R===undefined){const{keepUndefined:R}=Ae??pe??{};if(!R)return undefined}return new ge.Document(R,he,Ae).toString(Ae)}pe.parse=parse;pe.parseAllDocuments=parseAllDocuments;pe.parseDocument=parseDocument;pe.stringify=stringify},56831:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(60083);var ye=Ae(91693);var me=Ae(32201);var ve=Ae(74138);const sortMapEntriesByKey=(R,pe)=>R.keype.key?1:0;class Schema{constructor({compat:R,customTags:pe,merge:Ae,resolveKnownTags:be,schema:Ee,sortMapEntries:we,toStringDefaults:Ce}){this.compat=Array.isArray(R)?ve.getTags(R,"compat"):R?ve.getTags(null,R):null;this.merge=!!Ae;this.name=typeof Ee==="string"&&Ee||"core";this.knownTags=be?ve.coreKnownTags:{};this.tags=ve.getTags(pe,this.name);this.toStringOptions=Ce??null;Object.defineProperty(this,he.MAP,{value:ge.map});Object.defineProperty(this,he.SCALAR,{value:me.string});Object.defineProperty(this,he.SEQ,{value:ye.seq});this.sortMapEntries=typeof we==="function"?we:we===true?sortMapEntriesByKey:null}clone(){const R=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));R.tags=this.tags.slice();return R}}pe.Schema=Schema},60083:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(16011);const ye={collection:"map",default:true,nodeClass:ge.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(R,pe){if(!he.isMap(R))pe("Expected a mapping for this tag");return R},createNode:(R,pe,Ae)=>ge.YAMLMap.from(R,pe,Ae)};pe.map=ye},26703:(R,pe,Ae)=>{"use strict";var he=Ae(9338);const ge={identify:R=>R==null,createNode:()=>new he.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new he.Scalar(null),stringify:({source:R},pe)=>typeof R==="string"&&ge.test.test(R)?R:pe.options.nullStr};pe.nullTag=ge},91693:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(25161);const ye={collection:"seq",default:true,nodeClass:ge.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(R,pe){if(!he.isSeq(R))pe("Expected a sequence for this tag");return R},createNode:(R,pe,Ae)=>ge.YAMLSeq.from(R,pe,Ae)};pe.seq=ye},32201:(R,pe,Ae)=>{"use strict";var he=Ae(46226);const ge={identify:R=>typeof R==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:R=>R,stringify(R,pe,Ae,ge){pe=Object.assign({actualString:true},pe);return he.stringifyString(R,pe,Ae,ge)}};pe.string=ge},42045:(R,pe,Ae)=>{"use strict";var he=Ae(9338);const ge={identify:R=>typeof R==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:R=>new he.Scalar(R[0]==="t"||R[0]==="T"),stringify({source:R,value:pe},Ae){if(R&&ge.test.test(R)){const Ae=R[0]==="t"||R[0]==="T";if(pe===Ae)return R}return pe?Ae.options.trueStr:Ae.options.falseStr}};pe.boolTag=ge},36810:(R,pe,Ae)=>{"use strict";var he=Ae(9338);var ge=Ae(84174);const ye={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:R=>R.slice(-3).toLowerCase()==="nan"?NaN:R[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ge.stringifyNumber};const me={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:R=>parseFloat(R),stringify(R){const pe=Number(R.value);return isFinite(pe)?pe.toExponential():ge.stringifyNumber(R)}};const ve={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(R){const pe=new he.Scalar(parseFloat(R));const Ae=R.indexOf(".");if(Ae!==-1&&R[R.length-1]==="0")pe.minFractionDigits=R.length-Ae-1;return pe},stringify:ge.stringifyNumber};pe.float=ve;pe.floatExp=me;pe.floatNaN=ye},63019:(R,pe,Ae)=>{"use strict";var he=Ae(84174);const intIdentify=R=>typeof R==="bigint"||Number.isInteger(R);const intResolve=(R,pe,Ae,{intAsBigInt:he})=>he?BigInt(R):parseInt(R.substring(pe),Ae);function intStringify(R,pe,Ae){const{value:ge}=R;if(intIdentify(ge)&&ge>=0)return Ae+ge.toString(pe);return he.stringifyNumber(R)}const ge={identify:R=>intIdentify(R)&&R>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(R,pe,Ae)=>intResolve(R,2,8,Ae),stringify:R=>intStringify(R,8,"0o")};const ye={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(R,pe,Ae)=>intResolve(R,0,10,Ae),stringify:he.stringifyNumber};const me={identify:R=>intIdentify(R)&&R>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(R,pe,Ae)=>intResolve(R,2,16,Ae),stringify:R=>intStringify(R,16,"0x")};pe.int=ye;pe.intHex=me;pe.intOct=ge},20027:(R,pe,Ae)=>{"use strict";var he=Ae(60083);var ge=Ae(26703);var ye=Ae(91693);var me=Ae(32201);var ve=Ae(42045);var be=Ae(36810);var Ee=Ae(63019);const we=[he.map,ye.seq,me.string,ge.nullTag,ve.boolTag,Ee.intOct,Ee.int,Ee.intHex,be.floatNaN,be.floatExp,be.float];pe.schema=we},14545:(R,pe,Ae)=>{"use strict";var he=Ae(9338);var ge=Ae(60083);var ye=Ae(91693);function intIdentify(R){return typeof R==="bigint"||Number.isInteger(R)}const stringifyJSON=({value:R})=>JSON.stringify(R);const me=[{identify:R=>typeof R==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:R=>R,stringify:stringifyJSON},{identify:R=>R==null,createNode:()=>new he.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:R=>typeof R==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:R=>R==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(R,pe,{intAsBigInt:Ae})=>Ae?BigInt(R):parseInt(R,10),stringify:({value:R})=>intIdentify(R)?R.toString():JSON.stringify(R)},{identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:R=>parseFloat(R),stringify:stringifyJSON}];const ve={default:true,tag:"",test:/^/,resolve(R,pe){pe(`Unresolved plain scalar ${JSON.stringify(R)}`);return R}};const be=[ge.map,ye.seq].concat(me,ve);pe.schema=be},74138:(R,pe,Ae)=>{"use strict";var he=Ae(60083);var ge=Ae(26703);var ye=Ae(91693);var me=Ae(32201);var ve=Ae(42045);var be=Ae(36810);var Ee=Ae(63019);var we=Ae(20027);var Ce=Ae(14545);var _e=Ae(5724);var Ie=Ae(28974);var Se=Ae(29841);var Be=Ae(15389);var ke=Ae(37847);var Oe=Ae(21156);const Re=new Map([["core",we.schema],["failsafe",[he.map,ye.seq,me.string]],["json",Ce.schema],["yaml11",Be.schema],["yaml-1.1",Be.schema]]);const Qe={binary:_e.binary,bool:ve.boolTag,float:be.float,floatExp:be.floatExp,floatNaN:be.floatNaN,floatTime:Oe.floatTime,int:Ee.int,intHex:Ee.intHex,intOct:Ee.intOct,intTime:Oe.intTime,map:he.map,null:ge.nullTag,omap:Ie.omap,pairs:Se.pairs,seq:ye.seq,set:ke.set,timestamp:Oe.timestamp};const xe={"tag:yaml.org,2002:binary":_e.binary,"tag:yaml.org,2002:omap":Ie.omap,"tag:yaml.org,2002:pairs":Se.pairs,"tag:yaml.org,2002:set":ke.set,"tag:yaml.org,2002:timestamp":Oe.timestamp};function getTags(R,pe){let Ae=Re.get(pe);if(!Ae){if(Array.isArray(R))Ae=[];else{const R=Array.from(Re.keys()).filter((R=>R!=="yaml11")).map((R=>JSON.stringify(R))).join(", ");throw new Error(`Unknown schema "${pe}"; use one of ${R} or define customTags array`)}}if(Array.isArray(R)){for(const pe of R)Ae=Ae.concat(pe)}else if(typeof R==="function"){Ae=R(Ae.slice())}return Ae.map((R=>{if(typeof R!=="string")return R;const pe=Qe[R];if(pe)return pe;const Ae=Object.keys(Qe).map((R=>JSON.stringify(R))).join(", ");throw new Error(`Unknown custom tag "${R}"; use one of ${Ae}`)}))}pe.coreKnownTags=xe;pe.getTags=getTags},5724:(R,pe,Ae)=>{"use strict";var he=Ae(9338);var ge=Ae(46226);const ye={identify:R=>R instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(R,pe){if(typeof Buffer==="function"){return Buffer.from(R,"base64")}else if(typeof atob==="function"){const pe=atob(R.replace(/[\n\r]/g,""));const Ae=new Uint8Array(pe.length);for(let R=0;R{"use strict";var he=Ae(9338);function boolStringify({value:R,source:pe},Ae){const he=R?ge:ye;if(pe&&he.test.test(pe))return pe;return R?Ae.options.trueStr:Ae.options.falseStr}const ge={identify:R=>R===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new he.Scalar(true),stringify:boolStringify};const ye={identify:R=>R===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new he.Scalar(false),stringify:boolStringify};pe.falseTag=ye;pe.trueTag=ge},28035:(R,pe,Ae)=>{"use strict";var he=Ae(9338);var ge=Ae(84174);const ye={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:R=>R.slice(-3).toLowerCase()==="nan"?NaN:R[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ge.stringifyNumber};const me={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:R=>parseFloat(R.replace(/_/g,"")),stringify(R){const pe=Number(R.value);return isFinite(pe)?pe.toExponential():ge.stringifyNumber(R)}};const ve={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(R){const pe=new he.Scalar(parseFloat(R.replace(/_/g,"")));const Ae=R.indexOf(".");if(Ae!==-1){const he=R.substring(Ae+1).replace(/_/g,"");if(he[he.length-1]==="0")pe.minFractionDigits=he.length}return pe},stringify:ge.stringifyNumber};pe.float=ve;pe.floatExp=me;pe.floatNaN=ye},19503:(R,pe,Ae)=>{"use strict";var he=Ae(84174);const intIdentify=R=>typeof R==="bigint"||Number.isInteger(R);function intResolve(R,pe,Ae,{intAsBigInt:he}){const ge=R[0];if(ge==="-"||ge==="+")pe+=1;R=R.substring(pe).replace(/_/g,"");if(he){switch(Ae){case 2:R=`0b${R}`;break;case 8:R=`0o${R}`;break;case 16:R=`0x${R}`;break}const pe=BigInt(R);return ge==="-"?BigInt(-1)*pe:pe}const ye=parseInt(R,Ae);return ge==="-"?-1*ye:ye}function intStringify(R,pe,Ae){const{value:ge}=R;if(intIdentify(ge)){const R=ge.toString(pe);return ge<0?"-"+Ae+R.substr(1):Ae+R}return he.stringifyNumber(R)}const ge={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(R,pe,Ae)=>intResolve(R,2,2,Ae),stringify:R=>intStringify(R,2,"0b")};const ye={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(R,pe,Ae)=>intResolve(R,1,8,Ae),stringify:R=>intStringify(R,8,"0")};const me={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(R,pe,Ae)=>intResolve(R,0,10,Ae),stringify:he.stringifyNumber};const ve={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(R,pe,Ae)=>intResolve(R,2,16,Ae),stringify:R=>intStringify(R,16,"0x")};pe.int=me;pe.intBin=ge;pe.intHex=ve;pe.intOct=ye},28974:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(72463);var ye=Ae(16011);var me=Ae(25161);var ve=Ae(29841);class YAMLOMap extends me.YAMLSeq{constructor(){super();this.add=ye.YAMLMap.prototype.add.bind(this);this.delete=ye.YAMLMap.prototype.delete.bind(this);this.get=ye.YAMLMap.prototype.get.bind(this);this.has=ye.YAMLMap.prototype.has.bind(this);this.set=ye.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(R,pe){if(!pe)return super.toJSON(R);const Ae=new Map;if(pe?.onCreate)pe.onCreate(Ae);for(const R of this.items){let ye,me;if(he.isPair(R)){ye=ge.toJS(R.key,"",pe);me=ge.toJS(R.value,ye,pe)}else{ye=ge.toJS(R,"",pe)}if(Ae.has(ye))throw new Error("Ordered maps must not include duplicate keys");Ae.set(ye,me)}return Ae}static from(R,pe,Ae){const he=ve.createPairs(R,pe,Ae);const ge=new this;ge.items=he.items;return ge}}YAMLOMap.tag="tag:yaml.org,2002:omap";const be={collection:"seq",identify:R=>R instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(R,pe){const Ae=ve.resolvePairs(R,pe);const ge=[];for(const{key:R}of Ae.items){if(he.isScalar(R)){if(ge.includes(R.value)){pe(`Ordered maps must not include duplicate keys: ${R.value}`)}else{ge.push(R.value)}}}return Object.assign(new YAMLOMap,Ae)},createNode:(R,pe,Ae)=>YAMLOMap.from(R,pe,Ae)};pe.YAMLOMap=YAMLOMap;pe.omap=be},29841:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(246);var ye=Ae(9338);var me=Ae(25161);function resolvePairs(R,pe){if(he.isSeq(R)){for(let Ae=0;Ae1)pe("Each pair must have its own sequence indicator");const R=me.items[0]||new ge.Pair(new ye.Scalar(null));if(me.commentBefore)R.key.commentBefore=R.key.commentBefore?`${me.commentBefore}\n${R.key.commentBefore}`:me.commentBefore;if(me.comment){const pe=R.value??R.key;pe.comment=pe.comment?`${me.comment}\n${pe.comment}`:me.comment}me=R}R.items[Ae]=he.isPair(me)?me:new ge.Pair(me)}}else pe("Expected a sequence for this tag");return R}function createPairs(R,pe,Ae){const{replacer:he}=Ae;const ye=new me.YAMLSeq(R);ye.tag="tag:yaml.org,2002:pairs";let ve=0;if(pe&&Symbol.iterator in Object(pe))for(let R of pe){if(typeof he==="function")R=he.call(pe,String(ve++),R);let me,be;if(Array.isArray(R)){if(R.length===2){me=R[0];be=R[1]}else throw new TypeError(`Expected [key, value] tuple: ${R}`)}else if(R&&R instanceof Object){const pe=Object.keys(R);if(pe.length===1){me=pe[0];be=R[me]}else{throw new TypeError(`Expected tuple with one key, not ${pe.length} keys`)}}else{me=R}ye.items.push(ge.createPair(me,be,Ae))}return ye}const ve={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};pe.createPairs=createPairs;pe.pairs=ve;pe.resolvePairs=resolvePairs},15389:(R,pe,Ae)=>{"use strict";var he=Ae(60083);var ge=Ae(26703);var ye=Ae(91693);var me=Ae(32201);var ve=Ae(5724);var be=Ae(42631);var Ee=Ae(28035);var we=Ae(19503);var Ce=Ae(28974);var _e=Ae(29841);var Ie=Ae(37847);var Se=Ae(21156);const Be=[he.map,ye.seq,me.string,ge.nullTag,be.trueTag,be.falseTag,we.intBin,we.intOct,we.int,we.intHex,Ee.floatNaN,Ee.floatExp,Ee.float,ve.binary,Ce.omap,_e.pairs,Ie.set,Se.intTime,Se.floatTime,Se.timestamp];pe.schema=Be},37847:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(246);var ye=Ae(16011);class YAMLSet extends ye.YAMLMap{constructor(R){super(R);this.tag=YAMLSet.tag}add(R){let pe;if(he.isPair(R))pe=R;else if(R&&typeof R==="object"&&"key"in R&&"value"in R&&R.value===null)pe=new ge.Pair(R.key,null);else pe=new ge.Pair(R,null);const Ae=ye.findPair(this.items,pe.key);if(!Ae)this.items.push(pe)}get(R,pe){const Ae=ye.findPair(this.items,R);return!pe&&he.isPair(Ae)?he.isScalar(Ae.key)?Ae.key.value:Ae.key:Ae}set(R,pe){if(typeof pe!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof pe}`);const Ae=ye.findPair(this.items,R);if(Ae&&!pe){this.items.splice(this.items.indexOf(Ae),1)}else if(!Ae&&pe){this.items.push(new ge.Pair(R))}}toJSON(R,pe){return super.toJSON(R,pe,Set)}toString(R,pe,Ae){if(!R)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},R,{allNullValues:true}),pe,Ae);else throw new Error("Set items must all have null values")}static from(R,pe,Ae){const{replacer:he}=Ae;const ye=new this(R);if(pe&&Symbol.iterator in Object(pe))for(let R of pe){if(typeof he==="function")R=he.call(pe,R,R);ye.items.push(ge.createPair(R,null,Ae))}return ye}}YAMLSet.tag="tag:yaml.org,2002:set";const me={collection:"map",identify:R=>R instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(R,pe,Ae)=>YAMLSet.from(R,pe,Ae),resolve(R,pe){if(he.isMap(R)){if(R.hasAllNullValues(true))return Object.assign(new YAMLSet,R);else pe("Set items must all have null values")}else pe("Expected a mapping for this tag");return R}};pe.YAMLSet=YAMLSet;pe.set=me},21156:(R,pe,Ae)=>{"use strict";var he=Ae(84174);function parseSexagesimal(R,pe){const Ae=R[0];const he=Ae==="-"||Ae==="+"?R.substring(1):R;const num=R=>pe?BigInt(R):Number(R);const ge=he.replace(/_/g,"").split(":").reduce(((R,pe)=>R*num(60)+num(pe)),num(0));return Ae==="-"?num(-1)*ge:ge}function stringifySexagesimal(R){let{value:pe}=R;let num=R=>R;if(typeof pe==="bigint")num=R=>BigInt(R);else if(isNaN(pe)||!isFinite(pe))return he.stringifyNumber(R);let Ae="";if(pe<0){Ae="-";pe*=num(-1)}const ge=num(60);const ye=[pe%ge];if(pe<60){ye.unshift(0)}else{pe=(pe-ye[0])/ge;ye.unshift(pe%ge);if(pe>=60){pe=(pe-ye[0])/ge;ye.unshift(pe)}}return Ae+ye.map((R=>String(R).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const ge={identify:R=>typeof R==="bigint"||Number.isInteger(R),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(R,pe,{intAsBigInt:Ae})=>parseSexagesimal(R,Ae),stringify:stringifySexagesimal};const ye={identify:R=>typeof R==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:R=>parseSexagesimal(R,false),stringify:stringifySexagesimal};const me={identify:R=>R instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(R){const pe=R.match(me.test);if(!pe)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,Ae,he,ge,ye,ve,be]=pe.map(Number);const Ee=pe[7]?Number((pe[7]+"00").substr(1,3)):0;let we=Date.UTC(Ae,he-1,ge,ye||0,ve||0,be||0,Ee);const Ce=pe[8];if(Ce&&Ce!=="Z"){let R=parseSexagesimal(Ce,false);if(Math.abs(R)<30)R*=60;we-=6e4*R}return new Date(we)},stringify:({value:R})=>R.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};pe.floatTime=ye;pe.intTime=ge;pe.timestamp=me},62889:(R,pe)=>{"use strict";const Ae="flow";const he="block";const ge="quoted";function foldFlowLines(R,pe,Ae="flow",{indentAtStart:ye,lineWidth:me=80,minContentWidth:ve=20,onFold:be,onOverflow:Ee}={}){if(!me||me<0)return R;if(meme-Math.max(2,ve))Ce.push(0);else Ie=me-ye}let Se=undefined;let Be=undefined;let ke=false;let Oe=-1;let Re=-1;let Qe=-1;if(Ae===he){Oe=consumeMoreIndentedLines(R,Oe,pe.length);if(Oe!==-1)Ie=Oe+we}for(let ye;ye=R[Oe+=1];){if(Ae===ge&&ye==="\\"){Re=Oe;switch(R[Oe+1]){case"x":Oe+=3;break;case"u":Oe+=5;break;case"U":Oe+=9;break;default:Oe+=1}Qe=Oe}if(ye==="\n"){if(Ae===he)Oe=consumeMoreIndentedLines(R,Oe,pe.length);Ie=Oe+pe.length+we;Se=undefined}else{if(ye===" "&&Be&&Be!==" "&&Be!=="\n"&&Be!=="\t"){const pe=R[Oe+1];if(pe&&pe!==" "&&pe!=="\n"&&pe!=="\t")Se=Oe}if(Oe>=Ie){if(Se){Ce.push(Se);Ie=Se+we;Se=undefined}else if(Ae===ge){while(Be===" "||Be==="\t"){Be=ye;ye=R[Oe+=1];ke=true}const pe=Oe>Qe+1?Oe-2:Re-1;if(_e[pe])return R;Ce.push(pe);_e[pe]=true;Ie=pe+we;Se=undefined}else{ke=true}}}Be=ye}if(ke&&Ee)Ee();if(Ce.length===0)return R;if(be)be();let xe=R.slice(0,Ce[0]);for(let he=0;he{"use strict";var he=Ae(28459);var ge=Ae(15589);var ye=Ae(85182);var me=Ae(46226);function createStringifyContext(R,pe){const Ae=Object.assign({blockQuote:true,commentString:ye.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},R.schema.toStringOptions,pe);let he;switch(Ae.collectionStyle){case"block":he=false;break;case"flow":he=true;break;default:he=null}return{anchors:new Set,doc:R,flowCollectionPadding:Ae.flowCollectionPadding?" ":"",indent:"",indentStep:typeof Ae.indent==="number"?" ".repeat(Ae.indent):" ",inFlow:he,options:Ae}}function getTagObject(R,pe){if(pe.tag){const Ae=R.filter((R=>R.tag===pe.tag));if(Ae.length>0)return Ae.find((R=>R.format===pe.format))??Ae[0]}let Ae=undefined;let he;if(ge.isScalar(pe)){he=pe.value;const ge=R.filter((R=>R.identify?.(he)));Ae=ge.find((R=>R.format===pe.format))??ge.find((R=>!R.format))}else{he=pe;Ae=R.find((R=>R.nodeClass&&he instanceof R.nodeClass))}if(!Ae){const R=he?.constructor?.name??typeof he;throw new Error(`Tag not resolved for ${R} value`)}return Ae}function stringifyProps(R,pe,{anchors:Ae,doc:ye}){if(!ye.directives)return"";const me=[];const ve=(ge.isScalar(R)||ge.isCollection(R))&&R.anchor;if(ve&&he.anchorIsValid(ve)){Ae.add(ve);me.push(`&${ve}`)}const be=R.tag?R.tag:pe.default?null:pe.tag;if(be)me.push(ye.directives.tagString(be));return me.join(" ")}function stringify(R,pe,Ae,he){if(ge.isPair(R))return R.toString(pe,Ae,he);if(ge.isAlias(R)){if(pe.doc.directives)return R.toString(pe);if(pe.resolvedAliases?.has(R)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(pe.resolvedAliases)pe.resolvedAliases.add(R);else pe.resolvedAliases=new Set([R]);R=R.resolve(pe.doc)}}let ye=undefined;const ve=ge.isNode(R)?R:pe.doc.createNode(R,{onTagObj:R=>ye=R});if(!ye)ye=getTagObject(pe.doc.schema.tags,ve);const be=stringifyProps(ve,ye,pe);if(be.length>0)pe.indentAtStart=(pe.indentAtStart??0)+be.length+1;const Ee=typeof ye.stringify==="function"?ye.stringify(ve,pe,Ae,he):ge.isScalar(ve)?me.stringifyString(ve,pe,Ae,he):ve.toString(pe,Ae,he);if(!be)return Ee;return ge.isScalar(ve)||Ee[0]==="{"||Ee[0]==="["?`${be} ${Ee}`:`${be}\n${pe.indent}${Ee}`}pe.createStringifyContext=createStringifyContext;pe.stringify=stringify},22466:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(18409);var ye=Ae(85182);function stringifyCollection(R,pe,Ae){const he=pe.inFlow??R.flow;const ge=he?stringifyFlowCollection:stringifyBlockCollection;return ge(R,pe,Ae)}function stringifyBlockCollection({comment:R,items:pe},Ae,{blockItemPrefix:me,flowChars:ve,itemIndent:be,onChompKeep:Ee,onComment:we}){const{indent:Ce,options:{commentString:_e}}=Ae;const Ie=Object.assign({},Ae,{indent:be,type:null});let Se=false;const Be=[];for(let R=0;REe=null),(()=>Se=true));if(Ee)we+=ye.lineComment(we,be,_e(Ee));if(Se&&Ee)Se=false;Be.push(me+we)}let ke;if(Be.length===0){ke=ve.start+ve.end}else{ke=Be[0];for(let R=1;Rbe=null));if(AeIe||Ee.includes("\n")))_e=true;Se.push(Ee);Ie=Se.length}const{start:Be,end:ke}=Ae;if(Se.length===0){return Be+ke}else{if(!_e){const R=Se.reduce(((R,pe)=>R+pe.length+2),2);_e=pe.options.lineWidth>0&&R>pe.options.lineWidth}if(_e){let R=Be;for(const pe of Se)R+=pe?`\n${be}${ve}${pe}`:"\n";return`${R}\n${ve}${ke}`}else{return`${Be}${Ee}${Se.join(" ")}${Ee}${ke}`}}}function addCommentBefore({indent:R,options:{commentString:pe}},Ae,he,ge){if(he&&ge)he=he.replace(/^\n+/,"");if(he){const ge=ye.indentComment(pe(he),R);Ae.push(ge.trimStart())}}pe.stringifyCollection=stringifyCollection},85182:(R,pe)=>{"use strict";const stringifyComment=R=>R.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(R,pe){if(/^\n+$/.test(R))return R.substring(1);return pe?R.replace(/^(?! *$)/gm,pe):R}const lineComment=(R,pe,Ae)=>R.endsWith("\n")?indentComment(Ae,pe):Ae.includes("\n")?"\n"+indentComment(Ae,pe):(R.endsWith(" ")?"":" ")+Ae;pe.indentComment=indentComment;pe.lineComment=lineComment;pe.stringifyComment=stringifyComment},35225:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(18409);var ye=Ae(85182);function stringifyDocument(R,pe){const Ae=[];let me=pe.directives===true;if(pe.directives!==false&&R.directives){const pe=R.directives.toString(R);if(pe){Ae.push(pe);me=true}else if(R.directives.docStart)me=true}if(me)Ae.push("---");const ve=ge.createStringifyContext(R,pe);const{commentString:be}=ve.options;if(R.commentBefore){if(Ae.length!==1)Ae.unshift("");const pe=be(R.commentBefore);Ae.unshift(ye.indentComment(pe,""))}let Ee=false;let we=null;if(R.contents){if(he.isNode(R.contents)){if(R.contents.spaceBefore&&me)Ae.push("");if(R.contents.commentBefore){const pe=be(R.contents.commentBefore);Ae.push(ye.indentComment(pe,""))}ve.forceBlockIndent=!!R.comment;we=R.contents.comment}const pe=we?undefined:()=>Ee=true;let Ce=ge.stringify(R.contents,ve,(()=>we=null),pe);if(we)Ce+=ye.lineComment(Ce,"",be(we));if((Ce[0]==="|"||Ce[0]===">")&&Ae[Ae.length-1]==="---"){Ae[Ae.length-1]=`--- ${Ce}`}else Ae.push(Ce)}else{Ae.push(ge.stringify(R.contents,ve))}if(R.directives?.docEnd){if(R.comment){const pe=be(R.comment);if(pe.includes("\n")){Ae.push("...");Ae.push(ye.indentComment(pe,""))}else{Ae.push(`... ${pe}`)}}else{Ae.push("...")}}else{let pe=R.comment;if(pe&&Ee)pe=pe.replace(/^\n+/,"");if(pe){if((!Ee||we)&&Ae[Ae.length-1]!=="")Ae.push("");Ae.push(ye.indentComment(be(pe),""))}}return Ae.join("\n")+"\n"}pe.stringifyDocument=stringifyDocument},84174:(R,pe)=>{"use strict";function stringifyNumber({format:R,minFractionDigits:pe,tag:Ae,value:he}){if(typeof he==="bigint")return String(he);const ge=typeof he==="number"?he:Number(he);if(!isFinite(ge))return isNaN(ge)?".nan":ge<0?"-.inf":".inf";let ye=JSON.stringify(he);if(!R&&pe&&(!Ae||Ae==="tag:yaml.org,2002:float")&&/^\d/.test(ye)){let R=ye.indexOf(".");if(R<0){R=ye.length;ye+="."}let Ae=pe-(ye.length-R-1);while(Ae-- >0)ye+="0"}return ye}pe.stringifyNumber=stringifyNumber},4875:(R,pe,Ae)=>{"use strict";var he=Ae(15589);var ge=Ae(9338);var ye=Ae(18409);var me=Ae(85182);function stringifyPair({key:R,value:pe},Ae,ve,be){const{allNullValues:Ee,doc:we,indent:Ce,indentStep:_e,options:{commentString:Ie,indentSeq:Se,simpleKeys:Be}}=Ae;let ke=he.isNode(R)&&R.comment||null;if(Be){if(ke){throw new Error("With simple keys, key nodes cannot have comments")}if(he.isCollection(R)||!he.isNode(R)&&typeof R==="object"){const R="With simple keys, collection cannot be used as a key value";throw new Error(R)}}let Oe=!Be&&(!R||ke&&pe==null&&!Ae.inFlow||he.isCollection(R)||(he.isScalar(R)?R.type===ge.Scalar.BLOCK_FOLDED||R.type===ge.Scalar.BLOCK_LITERAL:typeof R==="object"));Ae=Object.assign({},Ae,{allNullValues:false,implicitKey:!Oe&&(Be||!Ee),indent:Ce+_e});let Re=false;let Qe=false;let xe=ye.stringify(R,Ae,(()=>Re=true),(()=>Qe=true));if(!Oe&&!Ae.inFlow&&xe.length>1024){if(Be)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");Oe=true}if(Ae.inFlow){if(Ee||pe==null){if(Re&&ve)ve();return xe===""?"?":Oe?`? ${xe}`:xe}}else if(Ee&&!Be||pe==null&&Oe){xe=`? ${xe}`;if(ke&&!Re){xe+=me.lineComment(xe,Ae.indent,Ie(ke))}else if(Qe&&be)be();return xe}if(Re)ke=null;if(Oe){if(ke)xe+=me.lineComment(xe,Ae.indent,Ie(ke));xe=`? ${xe}\n${Ce}:`}else{xe=`${xe}:`;if(ke)xe+=me.lineComment(xe,Ae.indent,Ie(ke))}let Pe,Te,De;if(he.isNode(pe)){Pe=!!pe.spaceBefore;Te=pe.commentBefore;De=pe.comment}else{Pe=false;Te=null;De=null;if(pe&&typeof pe==="object")pe=we.createNode(pe)}Ae.implicitKey=false;if(!Oe&&!ke&&he.isScalar(pe))Ae.indentAtStart=xe.length+1;Qe=false;if(!Se&&_e.length>=2&&!Ae.inFlow&&!Oe&&he.isSeq(pe)&&!pe.flow&&!pe.tag&&!pe.anchor){Ae.indent=Ae.indent.substring(2)}let Ne=false;const Me=ye.stringify(pe,Ae,(()=>Ne=true),(()=>Qe=true));let je=" ";if(ke||Pe||Te){je=Pe?"\n":"";if(Te){const R=Ie(Te);je+=`\n${me.indentComment(R,Ae.indent)}`}if(Me===""&&!Ae.inFlow){if(je==="\n")je="\n\n"}else{je+=`\n${Ae.indent}`}}else if(!Oe&&he.isCollection(pe)){const R=Me[0];const he=Me.indexOf("\n");const ge=he!==-1;const ye=Ae.inFlow??pe.flow??pe.items.length===0;if(ge||!ye){let pe=false;if(ge&&(R==="&"||R==="!")){let Ae=Me.indexOf(" ");if(R==="&"&&Ae!==-1&&Ae{"use strict";var he=Ae(9338);var ge=Ae(62889);const getFoldOptions=(R,pe)=>({indentAtStart:pe?R.indent.length:R.indentAtStart,lineWidth:R.options.lineWidth,minContentWidth:R.options.minContentWidth});const containsDocumentMarker=R=>/^(%|---|\.\.\.)/m.test(R);function lineLengthOverLimit(R,pe,Ae){if(!pe||pe<0)return false;const he=pe-Ae;const ge=R.length;if(ge<=he)return false;for(let pe=0,Ae=0;pehe)return true;Ae=pe+1;if(ge-Ae<=he)return false}}return true}function doubleQuotedString(R,pe){const Ae=JSON.stringify(R);if(pe.options.doubleQuotedAsJSON)return Ae;const{implicitKey:he}=pe;const ye=pe.options.doubleQuotedMinMultiLineLength;const me=pe.indent||(containsDocumentMarker(R)?" ":"");let ve="";let be=0;for(let R=0,pe=Ae[R];pe;pe=Ae[++R]){if(pe===" "&&Ae[R+1]==="\\"&&Ae[R+2]==="n"){ve+=Ae.slice(be,R)+"\\ ";R+=1;be=R;pe="\\"}if(pe==="\\")switch(Ae[R+1]){case"u":{ve+=Ae.slice(be,R);const pe=Ae.substr(R+2,4);switch(pe){case"0000":ve+="\\0";break;case"0007":ve+="\\a";break;case"000b":ve+="\\v";break;case"001b":ve+="\\e";break;case"0085":ve+="\\N";break;case"00a0":ve+="\\_";break;case"2028":ve+="\\L";break;case"2029":ve+="\\P";break;default:if(pe.substr(0,2)==="00")ve+="\\x"+pe.substr(2);else ve+=Ae.substr(R,6)}R+=5;be=R+1}break;case"n":if(he||Ae[R+2]==='"'||Ae.length\n";let Se;let Be;for(Be=Ae.length;Be>0;--Be){const R=Ae[Be-1];if(R!=="\n"&&R!=="\t"&&R!==" ")break}let ke=Ae.substring(Be);const Oe=ke.indexOf("\n");if(Oe===-1){Se="-"}else if(Ae===ke||Oe!==ke.length-1){Se="+";if(be)be()}else{Se=""}if(ke){Ae=Ae.slice(0,-ke.length);if(ke[ke.length-1]==="\n")ke=ke.slice(0,-1);ke=ke.replace(ye,`$&${_e}`)}let Re=false;let Qe;let xe=-1;for(Qe=0;Qe")+(Re?Te:"")+Se;if(R){De+=" "+we(R.replace(/ ?[\r\n]+/g," "));if(ve)ve()}if(Ie){Ae=Ae.replace(/\n+/g,`$&${_e}`);return`${De}\n${_e}${Pe}${Ae}${ke}`}Ae=Ae.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${_e}`);const Ne=ge.foldFlowLines(`${Pe}${Ae}${ke}`,_e,ge.FOLD_BLOCK,getFoldOptions(me,true));return`${De}\n${_e}${Ne}`}function plainString(R,pe,Ae,ye){const{type:me,value:ve}=R;const{actualString:be,implicitKey:Ee,indent:we,indentStep:Ce,inFlow:_e}=pe;if(Ee&&ve.includes("\n")||_e&&/[[\]{},]/.test(ve)){return quotedString(ve,pe)}if(!ve||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(ve)){return Ee||_e||!ve.includes("\n")?quotedString(ve,pe):blockString(R,pe,Ae,ye)}if(!Ee&&!_e&&me!==he.Scalar.PLAIN&&ve.includes("\n")){return blockString(R,pe,Ae,ye)}if(containsDocumentMarker(ve)){if(we===""){pe.forceBlockIndent=true;return blockString(R,pe,Ae,ye)}else if(Ee&&we===Ce){return quotedString(ve,pe)}}const Ie=ve.replace(/\n+/g,`$&\n${we}`);if(be){const test=R=>R.default&&R.tag!=="tag:yaml.org,2002:str"&&R.test?.test(Ie);const{compat:R,tags:Ae}=pe.doc.schema;if(Ae.some(test)||R?.some(test))return quotedString(ve,pe)}return Ee?Ie:ge.foldFlowLines(Ie,we,ge.FOLD_FLOW,getFoldOptions(pe,false))}function stringifyString(R,pe,Ae,ge){const{implicitKey:ye,inFlow:me}=pe;const ve=typeof R.value==="string"?R:Object.assign({},R,{value:String(R.value)});let{type:be}=R;if(be!==he.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(ve.value))be=he.Scalar.QUOTE_DOUBLE}const _stringify=R=>{switch(R){case he.Scalar.BLOCK_FOLDED:case he.Scalar.BLOCK_LITERAL:return ye||me?quotedString(ve.value,pe):blockString(ve,pe,Ae,ge);case he.Scalar.QUOTE_DOUBLE:return doubleQuotedString(ve.value,pe);case he.Scalar.QUOTE_SINGLE:return singleQuotedString(ve.value,pe);case he.Scalar.PLAIN:return plainString(ve,pe,Ae,ge);default:return null}};let Ee=_stringify(be);if(Ee===null){const{defaultKeyType:R,defaultStringType:Ae}=pe.options;const he=ye&&R||Ae;Ee=_stringify(he);if(Ee===null)throw new Error(`Unsupported default string type ${he}`)}return Ee}pe.stringifyString=stringifyString},16796:(R,pe,Ae)=>{"use strict";var he=Ae(15589);const ge=Symbol("break visit");const ye=Symbol("skip children");const me=Symbol("remove node");function visit(R,pe){const Ae=initVisitor(pe);if(he.isDocument(R)){const pe=visit_(null,R.contents,Ae,Object.freeze([R]));if(pe===me)R.contents=null}else visit_(null,R,Ae,Object.freeze([]))}visit.BREAK=ge;visit.SKIP=ye;visit.REMOVE=me;function visit_(R,pe,Ae,ye){const ve=callVisitor(R,pe,Ae,ye);if(he.isNode(ve)||he.isPair(ve)){replaceNode(R,ye,ve);return visit_(R,ve,Ae,ye)}if(typeof ve!=="symbol"){if(he.isCollection(pe)){ye=Object.freeze(ye.concat(pe));for(let R=0;R{"use strict";var he=Ae(41773);var ge=Ae(97742); /*! * Copyright (c) 2022 Digital Bazaar, Inc. All rights reserved. */const ye=new WeakMap;const[me,ve]=ge.versions.node.split(".").map((R=>parseInt(R,10)));const be=me>18||me===18&&ve>=2;function convertAgent(R){if(!be){return R}if(R?.fetch&&!R.fetch._httpClientCustomFetch){return R}const pe=R?.agent||R?.httpsAgent;if(!pe){return R}let Ae=ye.get(pe);if(!Ae){const R=new he.Agent({connect:pe.options});Ae=createFetch(R);Ae._httpClientCustomFetch=true;ye.set(pe,Ae)}return{...R,fetch:Ae}}function createFetch(R){return function fetch(...pe){R=pe[1]&&pe[1].dispatcher||R;pe[1]={...pe[1],dispatcher:R};return globalThis.fetch(...pe)}}function deferred(R){let pe;return{then(Ae,he){pe||(pe=new Promise((pe=>pe(R()))));return pe.then(Ae,he)}}} /*! * Copyright (c) 2020-2022 Digital Bazaar, Inc. All rights reserved. - */const Ee=deferred((()=>Ae.e(925).then(Ae.bind(Ae,84925)).then((({default:R})=>R))));const Ce={Accept:"application/ld+json, application/json"};const we=new Set(["get","post","put","push","patch","head","delete"]);function createInstance({parent:R=Ee,headers:pe={},...Ae}={}){Ae=convertAgent(Ae);const he=deferred((()=>R.then((he=>{let ge;if(R===Ee){ge=he.create({headers:{...Ce,...pe},...Ae})}else{ge=he.extend({headers:pe,...Ae})}return ge}))));return _createHttpClient(he)}function _createHttpClient(R){async function httpClient(...pe){const Ae=await R;const he=(pe[1]&&pe[1].method||"get").toLowerCase();if(we.has(he)){return httpClient[he].apply(Ae[he],pe)}pe[1]=convertAgent(pe[1]);return Ae.apply(Ae,pe)}for(const pe of we){httpClient[pe]=async function(...Ae){const he=await R;return _handleResponse(he[pe],he,Ae)}}httpClient.create=function({headers:R={},...pe}){return createInstance({headers:R,...pe})};httpClient.extend=function({headers:pe={},...Ae}){return createInstance({parent:R,headers:pe,...Ae})};Object.defineProperty(httpClient,"stop",{async get(){const pe=await R;return pe.stop}});return httpClient}async function _handleResponse(R,pe,Ae){Ae[1]=convertAgent(Ae[1]);let he;const[ge]=Ae;try{he=await R.apply(pe,Ae)}catch(R){return _handleError({error:R,url:ge})}const{parseBody:ye=true}=Ae[1]||{};let me;if(ye){const R=he.headers.get("content-type");if(R&&R.includes("json")){me=await he.json()}}Object.defineProperty(he,"data",{value:me});return he}async function _handleError({error:R,url:pe}){R.requestUrl=pe;if(!R.response){if(R.message==="Failed to fetch"){R.message=`Failed to fetch "${pe}". Possible CORS error.`}if(R.name==="TimeoutError"){R.message=`Request to "${pe}" timed out.`}throw R}R.status=R.response.status;const Ae=R.response.headers.get("content-type");if(Ae&&Ae.includes("json")){const pe=await R.response.json();R.message=pe.message||R.message;R.data=pe}throw R} + */const Ee=deferred((()=>Ae.e(925).then(Ae.bind(Ae,84925)).then((({default:R})=>R))));const we={Accept:"application/ld+json, application/json"};const Ce=new Set(["get","post","put","push","patch","head","delete"]);function createInstance({parent:R=Ee,headers:pe={},...Ae}={}){Ae=convertAgent(Ae);const he=deferred((()=>R.then((he=>{let ge;if(R===Ee){ge=he.create({headers:{...we,...pe},...Ae})}else{ge=he.extend({headers:pe,...Ae})}return ge}))));return _createHttpClient(he)}function _createHttpClient(R){async function httpClient(...pe){const Ae=await R;const he=(pe[1]&&pe[1].method||"get").toLowerCase();if(Ce.has(he)){return httpClient[he].apply(Ae[he],pe)}pe[1]=convertAgent(pe[1]);return Ae.apply(Ae,pe)}for(const pe of Ce){httpClient[pe]=async function(...Ae){const he=await R;return _handleResponse(he[pe],he,Ae)}}httpClient.create=function({headers:R={},...pe}){return createInstance({headers:R,...pe})};httpClient.extend=function({headers:pe={},...Ae}){return createInstance({parent:R,headers:pe,...Ae})};Object.defineProperty(httpClient,"stop",{async get(){const pe=await R;return pe.stop}});return httpClient}async function _handleResponse(R,pe,Ae){Ae[1]=convertAgent(Ae[1]);let he;const[ge]=Ae;try{he=await R.apply(pe,Ae)}catch(R){return _handleError({error:R,url:ge})}const{parseBody:ye=true}=Ae[1]||{};let me;if(ye){const R=he.headers.get("content-type");if(R&&R.includes("json")){me=await he.json()}}Object.defineProperty(he,"data",{value:me});return he}async function _handleError({error:R,url:pe}){R.requestUrl=pe;if(!R.response){if(R.message==="Failed to fetch"){R.message=`Failed to fetch "${pe}". Possible CORS error.`}if(R.name==="TimeoutError"){R.message=`Request to "${pe}" timed out.`}throw R}R.status=R.response.status;const Ae=R.response.headers.get("content-type");if(Ae&&Ae.includes("json")){const pe=await R.response.json();R.message=pe.message||R.message;R.data=pe}throw R} /*! * Copyright (c) 2020-2022 Digital Bazaar, Inc. All rights reserved. - */const _e=createInstance();pe.DEFAULT_HEADERS=Ce;pe.httpClient=_e;pe.kyPromise=Ee},88757:(R,pe,Ae)=>{"use strict";const he=Ae(64334);const ge=Ae(57310);const ye=Ae(63329);const me=Ae(13685);const ve=Ae(95687);const be=Ae(73837);const Ee=Ae(67707);const Ce=Ae(59796);const we=Ae(12781);const _e=Ae(82361);function _interopDefaultLegacy(R){return R&&typeof R==="object"&&"default"in R?R:{default:R}}const Ie=_interopDefaultLegacy(he);const Se=_interopDefaultLegacy(ge);const Be=_interopDefaultLegacy(me);const ke=_interopDefaultLegacy(ve);const Oe=_interopDefaultLegacy(be);const Re=_interopDefaultLegacy(Ee);const Qe=_interopDefaultLegacy(Ce);const xe=_interopDefaultLegacy(we);function bind(R,pe){return function wrap(){return R.apply(pe,arguments)}}const{toString:Pe}=Object.prototype;const{getPrototypeOf:Te}=Object;const De=(R=>pe=>{const Ae=Pe.call(pe);return R[Ae]||(R[Ae]=Ae.slice(8,-1).toLowerCase())})(Object.create(null));const kindOfTest=R=>{R=R.toLowerCase();return pe=>De(pe)===R};const typeOfTest=R=>pe=>typeof pe===R;const{isArray:Ne}=Array;const Me=typeOfTest("undefined");function isBuffer(R){return R!==null&&!Me(R)&&R.constructor!==null&&!Me(R.constructor)&&Le(R.constructor.isBuffer)&&R.constructor.isBuffer(R)}const je=kindOfTest("ArrayBuffer");function isArrayBufferView(R){let pe;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){pe=ArrayBuffer.isView(R)}else{pe=R&&R.buffer&&je(R.buffer)}return pe}const Fe=typeOfTest("string");const Le=typeOfTest("function");const Ue=typeOfTest("number");const isObject=R=>R!==null&&typeof R==="object";const isBoolean=R=>R===true||R===false;const isPlainObject=R=>{if(De(R)!=="object"){return false}const pe=Te(R);return(pe===null||pe===Object.prototype||Object.getPrototypeOf(pe)===null)&&!(Symbol.toStringTag in R)&&!(Symbol.iterator in R)};const He=kindOfTest("Date");const Je=kindOfTest("File");const We=kindOfTest("Blob");const Ve=kindOfTest("FileList");const isStream=R=>isObject(R)&&Le(R.pipe);const isFormData=R=>{let pe;return R&&(typeof FormData==="function"&&R instanceof FormData||Le(R.append)&&((pe=De(R))==="formdata"||pe==="object"&&Le(R.toString)&&R.toString()==="[object FormData]"))};const Ke=kindOfTest("URLSearchParams");const[Ge,Ye,qe,$e]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);const trim=R=>R.trim?R.trim():R.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(R,pe,{allOwnKeys:Ae=false}={}){if(R===null||typeof R==="undefined"){return}let he;let ge;if(typeof R!=="object"){R=[R]}if(Ne(R)){for(he=0,ge=R.length;he0){ge=Ae[he];if(pe===ge.toLowerCase()){return ge}}return null}const ze=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})();const isContextDefined=R=>!Me(R)&&R!==ze;function merge(){const{caseless:R}=isContextDefined(this)&&this||{};const pe={};const assignValue=(Ae,he)=>{const ge=R&&findKey(pe,he)||he;if(isPlainObject(pe[ge])&&isPlainObject(Ae)){pe[ge]=merge(pe[ge],Ae)}else if(isPlainObject(Ae)){pe[ge]=merge({},Ae)}else if(Ne(Ae)){pe[ge]=Ae.slice()}else{pe[ge]=Ae}};for(let R=0,pe=arguments.length;R{forEach(pe,((pe,he)=>{if(Ae&&Le(pe)){R[he]=bind(pe,Ae)}else{R[he]=pe}}),{allOwnKeys:he});return R};const stripBOM=R=>{if(R.charCodeAt(0)===65279){R=R.slice(1)}return R};const inherits=(R,pe,Ae,he)=>{R.prototype=Object.create(pe.prototype,he);R.prototype.constructor=R;Object.defineProperty(R,"super",{value:pe.prototype});Ae&&Object.assign(R.prototype,Ae)};const toFlatObject=(R,pe,Ae,he)=>{let ge;let ye;let me;const ve={};pe=pe||{};if(R==null)return pe;do{ge=Object.getOwnPropertyNames(R);ye=ge.length;while(ye-- >0){me=ge[ye];if((!he||he(me,R,pe))&&!ve[me]){pe[me]=R[me];ve[me]=true}}R=Ae!==false&&Te(R)}while(R&&(!Ae||Ae(R,pe))&&R!==Object.prototype);return pe};const endsWith=(R,pe,Ae)=>{R=String(R);if(Ae===undefined||Ae>R.length){Ae=R.length}Ae-=pe.length;const he=R.indexOf(pe,Ae);return he!==-1&&he===Ae};const toArray=R=>{if(!R)return null;if(Ne(R))return R;let pe=R.length;if(!Ue(pe))return null;const Ae=new Array(pe);while(pe-- >0){Ae[pe]=R[pe]}return Ae};const Xe=(R=>pe=>R&&pe instanceof R)(typeof Uint8Array!=="undefined"&&Te(Uint8Array));const forEachEntry=(R,pe)=>{const Ae=R&&R[Symbol.iterator];const he=Ae.call(R);let ge;while((ge=he.next())&&!ge.done){const Ae=ge.value;pe.call(R,Ae[0],Ae[1])}};const matchAll=(R,pe)=>{let Ae;const he=[];while((Ae=R.exec(pe))!==null){he.push(Ae)}return he};const Ze=kindOfTest("HTMLFormElement");const toCamelCase=R=>R.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function replacer(R,pe,Ae){return pe.toUpperCase()+Ae}));const et=(({hasOwnProperty:R})=>(pe,Ae)=>R.call(pe,Ae))(Object.prototype);const tt=kindOfTest("RegExp");const reduceDescriptors=(R,pe)=>{const Ae=Object.getOwnPropertyDescriptors(R);const he={};forEach(Ae,((Ae,ge)=>{let ye;if((ye=pe(Ae,ge,R))!==false){he[ge]=ye||Ae}}));Object.defineProperties(R,he)};const freezeMethods=R=>{reduceDescriptors(R,((pe,Ae)=>{if(Le(R)&&["arguments","caller","callee"].indexOf(Ae)!==-1){return false}const he=R[Ae];if(!Le(he))return;pe.enumerable=false;if("writable"in pe){pe.writable=false;return}if(!pe.set){pe.set=()=>{throw Error("Can not rewrite read-only method '"+Ae+"'")}}}))};const toObjectSet=(R,pe)=>{const Ae={};const define=R=>{R.forEach((R=>{Ae[R]=true}))};Ne(R)?define(R):define(String(R).split(pe));return Ae};const noop=()=>{};const toFiniteNumber=(R,pe)=>R!=null&&Number.isFinite(R=+R)?R:pe;const rt="abcdefghijklmnopqrstuvwxyz";const nt="0123456789";const it={DIGIT:nt,ALPHA:rt,ALPHA_DIGIT:rt+rt.toUpperCase()+nt};const generateString=(R=16,pe=it.ALPHA_DIGIT)=>{let Ae="";const{length:he}=pe;while(R--){Ae+=pe[Math.random()*he|0]}return Ae};function isSpecCompliantForm(R){return!!(R&&Le(R.append)&&R[Symbol.toStringTag]==="FormData"&&R[Symbol.iterator])}const toJSONObject=R=>{const pe=new Array(10);const visit=(R,Ae)=>{if(isObject(R)){if(pe.indexOf(R)>=0){return}if(!("toJSON"in R)){pe[Ae]=R;const he=Ne(R)?[]:{};forEach(R,((R,pe)=>{const ge=visit(R,Ae+1);!Me(ge)&&(he[pe]=ge)}));pe[Ae]=undefined;return he}}return R};return visit(R,0)};const ot=kindOfTest("AsyncFunction");const isThenable=R=>R&&(isObject(R)||Le(R))&&Le(R.then)&&Le(R.catch);const st=((R,pe)=>{if(R){return setImmediate}return pe?((R,pe)=>{ze.addEventListener("message",(({source:Ae,data:he})=>{if(Ae===ze&&he===R){pe.length&&pe.shift()()}}),false);return Ae=>{pe.push(Ae);ze.postMessage(R,"*")}})(`axios@${Math.random()}`,[]):R=>setTimeout(R)})(typeof setImmediate==="function",Le(ze.postMessage));const at=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(ze):typeof process!=="undefined"&&process.nextTick||st;const ct={isArray:Ne,isArrayBuffer:je,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:Fe,isNumber:Ue,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:Ge,isRequest:Ye,isResponse:qe,isHeaders:$e,isUndefined:Me,isDate:He,isFile:Je,isBlob:We,isRegExp:tt,isFunction:Le,isStream:isStream,isURLSearchParams:Ke,isTypedArray:Xe,isFileList:Ve,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:De,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:Ze,hasOwnProperty:et,hasOwnProp:et,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:ze,isContextDefined:isContextDefined,ALPHABET:it,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:ot,isThenable:isThenable,setImmediate:st,asap:at};function AxiosError(R,pe,Ae,he,ge){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=R;this.name="AxiosError";pe&&(this.code=pe);Ae&&(this.config=Ae);he&&(this.request=he);ge&&(this.response=ge)}ct.inherits(AxiosError,Error,{toJSON:function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ct.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ut=AxiosError.prototype;const lt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((R=>{lt[R]={value:R}}));Object.defineProperties(AxiosError,lt);Object.defineProperty(ut,"isAxiosError",{value:true});AxiosError.from=(R,pe,Ae,he,ge,ye)=>{const me=Object.create(ut);ct.toFlatObject(R,me,(function filter(R){return R!==Error.prototype}),(R=>R!=="isAxiosError"));AxiosError.call(me,R.message,pe,Ae,he,ge);me.cause=R;me.name=R.name;ye&&Object.assign(me,ye);return me};function isVisitable(R){return ct.isPlainObject(R)||ct.isArray(R)}function removeBrackets(R){return ct.endsWith(R,"[]")?R.slice(0,-2):R}function renderKey(R,pe,Ae){if(!R)return pe;return R.concat(pe).map((function each(R,pe){R=removeBrackets(R);return!Ae&&pe?"["+R+"]":R})).join(Ae?".":"")}function isFlatArray(R){return ct.isArray(R)&&!R.some(isVisitable)}const dt=ct.toFlatObject(ct,{},null,(function filter(R){return/^is[A-Z]/.test(R)}));function toFormData(R,pe,Ae){if(!ct.isObject(R)){throw new TypeError("target must be an object")}pe=pe||new(Ie["default"]||FormData);Ae=ct.toFlatObject(Ae,{metaTokens:true,dots:false,indexes:false},false,(function defined(R,pe){return!ct.isUndefined(pe[R])}));const he=Ae.metaTokens;const ge=Ae.visitor||defaultVisitor;const ye=Ae.dots;const me=Ae.indexes;const ve=Ae.Blob||typeof Blob!=="undefined"&&Blob;const be=ve&&ct.isSpecCompliantForm(pe);if(!ct.isFunction(ge)){throw new TypeError("visitor must be a function")}function convertValue(R){if(R===null)return"";if(ct.isDate(R)){return R.toISOString()}if(!be&&ct.isBlob(R)){throw new AxiosError("Blob is not supported. Use a Buffer instead.")}if(ct.isArrayBuffer(R)||ct.isTypedArray(R)){return be&&typeof Blob==="function"?new Blob([R]):Buffer.from(R)}return R}function defaultVisitor(R,Ae,ge){let ve=R;if(R&&!ge&&typeof R==="object"){if(ct.endsWith(Ae,"{}")){Ae=he?Ae:Ae.slice(0,-2);R=JSON.stringify(R)}else if(ct.isArray(R)&&isFlatArray(R)||(ct.isFileList(R)||ct.endsWith(Ae,"[]"))&&(ve=ct.toArray(R))){Ae=removeBrackets(Ae);ve.forEach((function each(R,he){!(ct.isUndefined(R)||R===null)&&pe.append(me===true?renderKey([Ae],he,ye):me===null?Ae:Ae+"[]",convertValue(R))}));return false}}if(isVisitable(R)){return true}pe.append(renderKey(ge,Ae,ye),convertValue(R));return false}const Ee=[];const Ce=Object.assign(dt,{defaultVisitor:defaultVisitor,convertValue:convertValue,isVisitable:isVisitable});function build(R,Ae){if(ct.isUndefined(R))return;if(Ee.indexOf(R)!==-1){throw Error("Circular reference detected in "+Ae.join("."))}Ee.push(R);ct.forEach(R,(function each(R,he){const ye=!(ct.isUndefined(R)||R===null)&&ge.call(pe,R,ct.isString(he)?he.trim():he,Ae,Ce);if(ye===true){build(R,Ae?Ae.concat(he):[he])}}));Ee.pop()}if(!ct.isObject(R)){throw new TypeError("data must be an object")}build(R);return pe}function encode$1(R){const pe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(R).replace(/[!'()~]|%20|%00/g,(function replacer(R){return pe[R]}))}function AxiosURLSearchParams(R,pe){this._pairs=[];R&&toFormData(R,this,pe)}const ft=AxiosURLSearchParams.prototype;ft.append=function append(R,pe){this._pairs.push([R,pe])};ft.toString=function toString(R){const pe=R?function(pe){return R.call(this,pe,encode$1)}:encode$1;return this._pairs.map((function each(R){return pe(R[0])+"="+pe(R[1])}),"").join("&")};function encode(R){return encodeURIComponent(R).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(R,pe,Ae){if(!pe){return R}const he=Ae&&Ae.encode||encode;const ge=Ae&&Ae.serialize;let ye;if(ge){ye=ge(pe,Ae)}else{ye=ct.isURLSearchParams(pe)?pe.toString():new AxiosURLSearchParams(pe,Ae).toString(he)}if(ye){const pe=R.indexOf("#");if(pe!==-1){R=R.slice(0,pe)}R+=(R.indexOf("?")===-1?"?":"&")+ye}return R}class InterceptorManager{constructor(){this.handlers=[]}use(R,pe,Ae){this.handlers.push({fulfilled:R,rejected:pe,synchronous:Ae?Ae.synchronous:false,runWhen:Ae?Ae.runWhen:null});return this.handlers.length-1}eject(R){if(this.handlers[R]){this.handlers[R]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(R){ct.forEach(this.handlers,(function forEachHandler(pe){if(pe!==null){R(pe)}}))}}const pt=InterceptorManager;const At={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};const ht=Se["default"].URLSearchParams;const gt={isNode:true,classes:{URLSearchParams:ht,FormData:Ie["default"],Blob:typeof Blob!=="undefined"&&Blob||null},protocols:["http","https","file","data"]};const yt=typeof window!=="undefined"&&typeof document!=="undefined";const mt=(R=>yt&&["ReactNative","NativeScript","NS"].indexOf(R)<0)(typeof navigator!=="undefined"&&navigator.product);const vt=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const bt=yt&&window.location.href||"http://localhost";const Et=Object.freeze({__proto__:null,hasBrowserEnv:yt,hasStandardBrowserWebWorkerEnv:vt,hasStandardBrowserEnv:mt,origin:bt});const Ct={...Et,...gt};function toURLEncodedForm(R,pe){return toFormData(R,new Ct.classes.URLSearchParams,Object.assign({visitor:function(R,pe,Ae,he){if(Ct.isNode&&ct.isBuffer(R)){this.append(pe,R.toString("base64"));return false}return he.defaultVisitor.apply(this,arguments)}},pe))}function parsePropPath(R){return ct.matchAll(/\w+|\[(\w*)]/g,R).map((R=>R[0]==="[]"?"":R[1]||R[0]))}function arrayToObject(R){const pe={};const Ae=Object.keys(R);let he;const ge=Ae.length;let ye;for(he=0;he=R.length;ge=!ge&&ct.isArray(Ae)?Ae.length:ge;if(me){if(ct.hasOwnProp(Ae,ge)){Ae[ge]=[Ae[ge],pe]}else{Ae[ge]=pe}return!ye}if(!Ae[ge]||!ct.isObject(Ae[ge])){Ae[ge]=[]}const ve=buildPath(R,pe,Ae[ge],he);if(ve&&ct.isArray(Ae[ge])){Ae[ge]=arrayToObject(Ae[ge])}return!ye}if(ct.isFormData(R)&&ct.isFunction(R.entries)){const pe={};ct.forEachEntry(R,((R,Ae)=>{buildPath(parsePropPath(R),Ae,pe,0)}));return pe}return null}function stringifySafely(R,pe,Ae){if(ct.isString(R)){try{(pe||JSON.parse)(R);return ct.trim(R)}catch(R){if(R.name!=="SyntaxError"){throw R}}}return(Ae||JSON.stringify)(R)}const wt={transitional:At,adapter:["xhr","http","fetch"],transformRequest:[function transformRequest(R,pe){const Ae=pe.getContentType()||"";const he=Ae.indexOf("application/json")>-1;const ge=ct.isObject(R);if(ge&&ct.isHTMLForm(R)){R=new FormData(R)}const ye=ct.isFormData(R);if(ye){return he?JSON.stringify(formDataToJSON(R)):R}if(ct.isArrayBuffer(R)||ct.isBuffer(R)||ct.isStream(R)||ct.isFile(R)||ct.isBlob(R)||ct.isReadableStream(R)){return R}if(ct.isArrayBufferView(R)){return R.buffer}if(ct.isURLSearchParams(R)){pe.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return R.toString()}let me;if(ge){if(Ae.indexOf("application/x-www-form-urlencoded")>-1){return toURLEncodedForm(R,this.formSerializer).toString()}if((me=ct.isFileList(R))||Ae.indexOf("multipart/form-data")>-1){const pe=this.env&&this.env.FormData;return toFormData(me?{"files[]":R}:R,pe&&new pe,this.formSerializer)}}if(ge||he){pe.setContentType("application/json",false);return stringifySafely(R)}return R}],transformResponse:[function transformResponse(R){const pe=this.transitional||wt.transitional;const Ae=pe&&pe.forcedJSONParsing;const he=this.responseType==="json";if(ct.isResponse(R)||ct.isReadableStream(R)){return R}if(R&&ct.isString(R)&&(Ae&&!this.responseType||he)){const Ae=pe&&pe.silentJSONParsing;const ge=!Ae&&he;try{return JSON.parse(R)}catch(R){if(ge){if(R.name==="SyntaxError"){throw AxiosError.from(R,AxiosError.ERR_BAD_RESPONSE,this,null,this.response)}throw R}}}return R}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ct.classes.FormData,Blob:Ct.classes.Blob},validateStatus:function validateStatus(R){return R>=200&&R<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};ct.forEach(["delete","get","head","post","put","patch"],(R=>{wt.headers[R]={}}));const _t=wt;const It=ct.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const parseHeaders=R=>{const pe={};let Ae;let he;let ge;R&&R.split("\n").forEach((function parser(R){ge=R.indexOf(":");Ae=R.substring(0,ge).trim().toLowerCase();he=R.substring(ge+1).trim();if(!Ae||pe[Ae]&&It[Ae]){return}if(Ae==="set-cookie"){if(pe[Ae]){pe[Ae].push(he)}else{pe[Ae]=[he]}}else{pe[Ae]=pe[Ae]?pe[Ae]+", "+he:he}}));return pe};const St=Symbol("internals");function normalizeHeader(R){return R&&String(R).trim().toLowerCase()}function normalizeValue(R){if(R===false||R==null){return R}return ct.isArray(R)?R.map(normalizeValue):String(R)}function parseTokens(R){const pe=Object.create(null);const Ae=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let he;while(he=Ae.exec(R)){pe[he[1]]=he[2]}return pe}const isValidHeaderName=R=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(R.trim());function matchHeaderValue(R,pe,Ae,he,ge){if(ct.isFunction(he)){return he.call(this,pe,Ae)}if(ge){pe=Ae}if(!ct.isString(pe))return;if(ct.isString(he)){return pe.indexOf(he)!==-1}if(ct.isRegExp(he)){return he.test(pe)}}function formatHeader(R){return R.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((R,pe,Ae)=>pe.toUpperCase()+Ae))}function buildAccessors(R,pe){const Ae=ct.toCamelCase(" "+pe);["get","set","has"].forEach((he=>{Object.defineProperty(R,he+Ae,{value:function(R,Ae,ge){return this[he].call(this,pe,R,Ae,ge)},configurable:true})}))}class AxiosHeaders{constructor(R){R&&this.set(R)}set(R,pe,Ae){const he=this;function setHeader(R,pe,Ae){const ge=normalizeHeader(pe);if(!ge){throw new Error("header name must be a non-empty string")}const ye=ct.findKey(he,ge);if(!ye||he[ye]===undefined||Ae===true||Ae===undefined&&he[ye]!==false){he[ye||pe]=normalizeValue(R)}}const setHeaders=(R,pe)=>ct.forEach(R,((R,Ae)=>setHeader(R,Ae,pe)));if(ct.isPlainObject(R)||R instanceof this.constructor){setHeaders(R,pe)}else if(ct.isString(R)&&(R=R.trim())&&!isValidHeaderName(R)){setHeaders(parseHeaders(R),pe)}else if(ct.isHeaders(R)){for(const[pe,he]of R.entries()){setHeader(he,pe,Ae)}}else{R!=null&&setHeader(pe,R,Ae)}return this}get(R,pe){R=normalizeHeader(R);if(R){const Ae=ct.findKey(this,R);if(Ae){const R=this[Ae];if(!pe){return R}if(pe===true){return parseTokens(R)}if(ct.isFunction(pe)){return pe.call(this,R,Ae)}if(ct.isRegExp(pe)){return pe.exec(R)}throw new TypeError("parser must be boolean|regexp|function")}}}has(R,pe){R=normalizeHeader(R);if(R){const Ae=ct.findKey(this,R);return!!(Ae&&this[Ae]!==undefined&&(!pe||matchHeaderValue(this,this[Ae],Ae,pe)))}return false}delete(R,pe){const Ae=this;let he=false;function deleteHeader(R){R=normalizeHeader(R);if(R){const ge=ct.findKey(Ae,R);if(ge&&(!pe||matchHeaderValue(Ae,Ae[ge],ge,pe))){delete Ae[ge];he=true}}}if(ct.isArray(R)){R.forEach(deleteHeader)}else{deleteHeader(R)}return he}clear(R){const pe=Object.keys(this);let Ae=pe.length;let he=false;while(Ae--){const ge=pe[Ae];if(!R||matchHeaderValue(this,this[ge],ge,R,true)){delete this[ge];he=true}}return he}normalize(R){const pe=this;const Ae={};ct.forEach(this,((he,ge)=>{const ye=ct.findKey(Ae,ge);if(ye){pe[ye]=normalizeValue(he);delete pe[ge];return}const me=R?formatHeader(ge):String(ge).trim();if(me!==ge){delete pe[ge]}pe[me]=normalizeValue(he);Ae[me]=true}));return this}concat(...R){return this.constructor.concat(this,...R)}toJSON(R){const pe=Object.create(null);ct.forEach(this,((Ae,he)=>{Ae!=null&&Ae!==false&&(pe[he]=R&&ct.isArray(Ae)?Ae.join(", "):Ae)}));return pe}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([R,pe])=>R+": "+pe)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(R){return R instanceof this?R:new this(R)}static concat(R,...pe){const Ae=new this(R);pe.forEach((R=>Ae.set(R)));return Ae}static accessor(R){const pe=this[St]=this[St]={accessors:{}};const Ae=pe.accessors;const he=this.prototype;function defineAccessor(R){const pe=normalizeHeader(R);if(!Ae[pe]){buildAccessors(he,R);Ae[pe]=true}}ct.isArray(R)?R.forEach(defineAccessor):defineAccessor(R);return this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ct.reduceDescriptors(AxiosHeaders.prototype,(({value:R},pe)=>{let Ae=pe[0].toUpperCase()+pe.slice(1);return{get:()=>R,set(R){this[Ae]=R}}}));ct.freezeMethods(AxiosHeaders);const Bt=AxiosHeaders;function transformData(R,pe){const Ae=this||_t;const he=pe||Ae;const ge=Bt.from(he.headers);let ye=he.data;ct.forEach(R,(function transform(R){ye=R.call(Ae,ye,ge.normalize(),pe?pe.status:undefined)}));ge.normalize();return ye}function isCancel(R){return!!(R&&R.__CANCEL__)}function CanceledError(R,pe,Ae){AxiosError.call(this,R==null?"canceled":R,AxiosError.ERR_CANCELED,pe,Ae);this.name="CanceledError"}ct.inherits(CanceledError,AxiosError,{__CANCEL__:true});function settle(R,pe,Ae){const he=Ae.config.validateStatus;if(!Ae.status||!he||he(Ae.status)){R(Ae)}else{pe(new AxiosError("Request failed with status code "+Ae.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(Ae.status/100)-4],Ae.config,Ae.request,Ae))}}function isAbsoluteURL(R){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(R)}function combineURLs(R,pe){return pe?R.replace(/\/?\/$/,"")+"/"+pe.replace(/^\/+/,""):R}function buildFullPath(R,pe){if(R&&!isAbsoluteURL(pe)){return combineURLs(R,pe)}return pe}const kt="1.7.3";function parseProtocol(R){const pe=/^([-+\w]{1,25})(:?\/\/|:)/.exec(R);return pe&&pe[1]||""}const Ot=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function fromDataURI(R,pe,Ae){const he=Ae&&Ae.Blob||Ct.classes.Blob;const ge=parseProtocol(R);if(pe===undefined&&he){pe=true}if(ge==="data"){R=ge.length?R.slice(ge.length+1):R;const Ae=Ot.exec(R);if(!Ae){throw new AxiosError("Invalid URL",AxiosError.ERR_INVALID_URL)}const ye=Ae[1];const me=Ae[2];const ve=Ae[3];const be=Buffer.from(decodeURIComponent(ve),me?"base64":"utf8");if(pe){if(!he){throw new AxiosError("Blob is not supported",AxiosError.ERR_NOT_SUPPORT)}return new he([be],{type:ye})}return be}throw new AxiosError("Unsupported protocol "+ge,AxiosError.ERR_NOT_SUPPORT)}const Rt=Symbol("internals");class AxiosTransformStream extends xe["default"].Transform{constructor(R){R=ct.toFlatObject(R,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((R,pe)=>!ct.isUndefined(pe[R])));super({readableHighWaterMark:R.chunkSize});const pe=this[Rt]={timeWindow:R.timeWindow,chunkSize:R.chunkSize,maxRate:R.maxRate,minChunkSize:R.minChunkSize,bytesSeen:0,isCaptured:false,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(R=>{if(R==="progress"){if(!pe.isCaptured){pe.isCaptured=true}}}))}_read(R){const pe=this[Rt];if(pe.onReadCallback){pe.onReadCallback()}return super._read(R)}_transform(R,pe,Ae){const he=this[Rt];const ge=he.maxRate;const ye=this.readableHighWaterMark;const me=he.timeWindow;const ve=1e3/me;const be=ge/ve;const Ee=he.minChunkSize!==false?Math.max(he.minChunkSize,be*.01):0;const pushChunk=(R,pe)=>{const Ae=Buffer.byteLength(R);he.bytesSeen+=Ae;he.bytes+=Ae;he.isCaptured&&this.emit("progress",he.bytesSeen);if(this.push(R)){process.nextTick(pe)}else{he.onReadCallback=()=>{he.onReadCallback=null;process.nextTick(pe)}}};const transformChunk=(R,pe)=>{const Ae=Buffer.byteLength(R);let ve=null;let Ce=ye;let we;let _e=0;if(ge){const R=Date.now();if(!he.ts||(_e=R-he.ts)>=me){he.ts=R;we=be-he.bytes;he.bytes=we<0?-we:0;_e=0}we=be-he.bytes}if(ge){if(we<=0){return setTimeout((()=>{pe(null,R)}),me-_e)}if(weCe&&Ae-Ce>Ee){ve=R.subarray(Ce);R=R.subarray(0,Ce)}pushChunk(R,ve?()=>{process.nextTick(pe,null,ve)}:pe)};transformChunk(R,(function transformNextChunk(R,pe){if(R){return Ae(R)}if(pe){transformChunk(pe,transformNextChunk)}else{Ae(null)}}))}}const Qt=AxiosTransformStream;const{asyncIterator:xt}=Symbol;const readBlob=async function*(R){if(R.stream){yield*R.stream()}else if(R.arrayBuffer){yield await R.arrayBuffer()}else if(R[xt]){yield*R[xt]()}else{yield R}};const Pt=readBlob;const Tt=ct.ALPHABET.ALPHA_DIGIT+"-_";const Dt=new be.TextEncoder;const Nt="\r\n";const Mt=Dt.encode(Nt);const jt=2;class FormDataPart{constructor(R,pe){const{escapeName:Ae}=this.constructor;const he=ct.isString(pe);let ge=`Content-Disposition: form-data; name="${Ae(R)}"${!he&&pe.name?`; filename="${Ae(pe.name)}"`:""}${Nt}`;if(he){pe=Dt.encode(String(pe).replace(/\r?\n|\r\n?/g,Nt))}else{ge+=`Content-Type: ${pe.type||"application/octet-stream"}${Nt}`}this.headers=Dt.encode(ge+Nt);this.contentLength=he?pe.byteLength:pe.size;this.size=this.headers.byteLength+this.contentLength+jt;this.name=R;this.value=pe}async*encode(){yield this.headers;const{value:R}=this;if(ct.isTypedArray(R)){yield R}else{yield*Pt(R)}yield Mt}static escapeName(R){return String(R).replace(/[\r\n"]/g,(R=>({"\r":"%0D","\n":"%0A",'"':"%22"}[R])))}}const formDataToStream=(R,pe,Ae)=>{const{tag:he="form-data-boundary",size:ge=25,boundary:ye=he+"-"+ct.generateString(ge,Tt)}=Ae||{};if(!ct.isFormData(R)){throw TypeError("FormData instance required")}if(ye.length<1||ye.length>70){throw Error("boundary must be 10-70 characters long")}const me=Dt.encode("--"+ye+Nt);const ve=Dt.encode("--"+ye+"--"+Nt+Nt);let be=ve.byteLength;const Ee=Array.from(R.entries()).map((([R,pe])=>{const Ae=new FormDataPart(R,pe);be+=Ae.size;return Ae}));be+=me.byteLength*Ee.length;be=ct.toFiniteNumber(be);const Ce={"Content-Type":`multipart/form-data; boundary=${ye}`};if(Number.isFinite(be)){Ce["Content-Length"]=be}pe&&pe(Ce);return we.Readable.from(async function*(){for(const R of Ee){yield me;yield*R.encode()}yield ve}())};const Ft=formDataToStream;class ZlibHeaderTransformStream extends xe["default"].Transform{__transform(R,pe,Ae){this.push(R);Ae()}_transform(R,pe,Ae){if(R.length!==0){this._transform=this.__transform;if(R[0]!==120){const R=Buffer.alloc(2);R[0]=120;R[1]=156;this.push(R,pe)}}this.__transform(R,pe,Ae)}}const Lt=ZlibHeaderTransformStream;const callbackify=(R,pe)=>ct.isAsyncFn(R)?function(...Ae){const he=Ae.pop();R.apply(this,Ae).then((R=>{try{pe?he(null,...pe(R)):he(null,R)}catch(R){he(R)}}),he)}:R;const Ut=callbackify;function speedometer(R,pe){R=R||10;const Ae=new Array(R);const he=new Array(R);let ge=0;let ye=0;let me;pe=pe!==undefined?pe:1e3;return function push(ve){const be=Date.now();const Ee=he[ye];if(!me){me=be}Ae[ge]=ve;he[ge]=be;let Ce=ye;let we=0;while(Ce!==ge){we+=Ae[Ce++];Ce=Ce%R}ge=(ge+1)%R;if(ge===ye){ye=(ye+1)%R}if(be-me{Ae=he;ge=null;if(ye){clearTimeout(ye);ye=null}R.apply(null,pe)};const throttled=(...R)=>{const pe=Date.now();const me=pe-Ae;if(me>=he){invoke(R,pe)}else{ge=R;if(!ye){ye=setTimeout((()=>{ye=null;invoke(ge)}),he-me)}}};const flush=()=>ge&&invoke(ge);return[throttled,flush]}const progressEventReducer=(R,pe,Ae=3)=>{let he=0;const ge=speedometer(50,250);return throttle((Ae=>{const ye=Ae.loaded;const me=Ae.lengthComputable?Ae.total:undefined;const ve=ye-he;const be=ge(ve);const Ee=ye<=me;he=ye;const Ce={loaded:ye,total:me,progress:me?ye/me:undefined,bytes:ve,rate:be?be:undefined,estimated:be&&me&&Ee?(me-ye)/be:undefined,event:Ae,lengthComputable:me!=null,[pe?"download":"upload"]:true};R(Ce)}),Ae)};const progressEventDecorator=(R,pe)=>{const Ae=R!=null;return[he=>pe[0]({lengthComputable:Ae,total:R,loaded:he}),pe[1]]};const asyncDecorator=R=>(...pe)=>ct.asap((()=>R(...pe)));const Ht={flush:Qe["default"].constants.Z_SYNC_FLUSH,finishFlush:Qe["default"].constants.Z_SYNC_FLUSH};const Jt={flush:Qe["default"].constants.BROTLI_OPERATION_FLUSH,finishFlush:Qe["default"].constants.BROTLI_OPERATION_FLUSH};const Wt=ct.isFunction(Qe["default"].createBrotliDecompress);const{http:Vt,https:Kt}=Re["default"];const Gt=/https:?/;const Yt=Ct.protocols.map((R=>R+":"));const flushOnFinish=(R,[pe,Ae])=>{R.on("end",Ae).on("error",Ae);return pe};function dispatchBeforeRedirect(R,pe){if(R.beforeRedirects.proxy){R.beforeRedirects.proxy(R)}if(R.beforeRedirects.config){R.beforeRedirects.config(R,pe)}}function setProxy(R,pe,Ae){let he=pe;if(!he&&he!==false){const R=ye.getProxyForUrl(Ae);if(R){he=new URL(R)}}if(he){if(he.username){he.auth=(he.username||"")+":"+(he.password||"")}if(he.auth){if(he.auth.username||he.auth.password){he.auth=(he.auth.username||"")+":"+(he.auth.password||"")}const pe=Buffer.from(he.auth,"utf8").toString("base64");R.headers["Proxy-Authorization"]="Basic "+pe}R.headers.host=R.hostname+(R.port?":"+R.port:"");const pe=he.hostname||he.host;R.hostname=pe;R.host=pe;R.port=he.port;R.path=Ae;if(he.protocol){R.protocol=he.protocol.includes(":")?he.protocol:`${he.protocol}:`}}R.beforeRedirects.proxy=function beforeRedirect(R){setProxy(R,pe,R.href)}}const qt=typeof process!=="undefined"&&ct.kindOf(process)==="process";const wrapAsync=R=>new Promise(((pe,Ae)=>{let he;let ge;const done=(R,pe)=>{if(ge)return;ge=true;he&&he(R,pe)};const _resolve=R=>{done(R);pe(R)};const _reject=R=>{done(R,true);Ae(R)};R(_resolve,_reject,(R=>he=R)).catch(_reject)}));const resolveFamily=({address:R,family:pe})=>{if(!ct.isString(R)){throw TypeError("address must be a string")}return{address:R,family:pe||(R.indexOf(".")<0?6:4)}};const buildAddressEntry=(R,pe)=>resolveFamily(ct.isObject(R)?R:{address:R,family:pe});const $t=qt&&function httpAdapter(R){return wrapAsync((async function dispatchHttpRequest(pe,Ae,he){let{data:ge,lookup:ye,family:me}=R;const{responseType:ve,responseEncoding:be}=R;const Ee=R.method.toUpperCase();let Ce;let we=false;let Ie;if(ye){const R=Ut(ye,(R=>ct.isArray(R)?R:[R]));ye=(pe,Ae,he)=>{R(pe,Ae,((R,pe,ge)=>{if(R){return he(R)}const ye=ct.isArray(pe)?pe.map((R=>buildAddressEntry(R))):[buildAddressEntry(pe,ge)];Ae.all?he(R,ye):he(R,ye[0].address,ye[0].family)}))}}const Se=new _e.EventEmitter;const onFinished=()=>{if(R.cancelToken){R.cancelToken.unsubscribe(abort)}if(R.signal){R.signal.removeEventListener("abort",abort)}Se.removeAllListeners()};he(((R,pe)=>{Ce=true;if(pe){we=true;onFinished()}}));function abort(pe){Se.emit("abort",!pe||pe.type?new CanceledError(null,R,Ie):pe)}Se.once("abort",Ae);if(R.cancelToken||R.signal){R.cancelToken&&R.cancelToken.subscribe(abort);if(R.signal){R.signal.aborted?abort():R.signal.addEventListener("abort",abort)}}const Re=buildFullPath(R.baseURL,R.url);const Pe=new URL(Re,"http://localhost");const Te=Pe.protocol||Yt[0];if(Te==="data:"){let he;if(Ee!=="GET"){return settle(pe,Ae,{status:405,statusText:"method not allowed",headers:{},config:R})}try{he=fromDataURI(R.url,ve==="blob",{Blob:R.env&&R.env.Blob})}catch(pe){throw AxiosError.from(pe,AxiosError.ERR_BAD_REQUEST,R)}if(ve==="text"){he=he.toString(be);if(!be||be==="utf8"){he=ct.stripBOM(he)}}else if(ve==="stream"){he=xe["default"].Readable.from(he)}return settle(pe,Ae,{data:he,status:200,statusText:"OK",headers:new Bt,config:R})}if(Yt.indexOf(Te)===-1){return Ae(new AxiosError("Unsupported protocol "+Te,AxiosError.ERR_BAD_REQUEST,R))}const De=Bt.from(R.headers).normalize();De.set("User-Agent","axios/"+kt,false);const{onUploadProgress:Ne,onDownloadProgress:Me}=R;const je=R.maxRate;let Fe=undefined;let Le=undefined;if(ct.isSpecCompliantForm(ge)){const R=De.getContentType(/boundary=([-_\w\d]{10,70})/i);ge=Ft(ge,(R=>{De.set(R)}),{tag:`axios-${kt}-boundary`,boundary:R&&R[1]||undefined})}else if(ct.isFormData(ge)&&ct.isFunction(ge.getHeaders)){De.set(ge.getHeaders());if(!De.hasContentLength()){try{const R=await Oe["default"].promisify(ge.getLength).call(ge);Number.isFinite(R)&&R>=0&&De.setContentLength(R)}catch(R){}}}else if(ct.isBlob(ge)){ge.size&&De.setContentType(ge.type||"application/octet-stream");De.setContentLength(ge.size||0);ge=xe["default"].Readable.from(Pt(ge))}else if(ge&&!ct.isStream(ge)){if(Buffer.isBuffer(ge));else if(ct.isArrayBuffer(ge)){ge=Buffer.from(new Uint8Array(ge))}else if(ct.isString(ge)){ge=Buffer.from(ge,"utf-8")}else{return Ae(new AxiosError("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",AxiosError.ERR_BAD_REQUEST,R))}De.setContentLength(ge.length,false);if(R.maxBodyLength>-1&&ge.length>R.maxBodyLength){return Ae(new AxiosError("Request body larger than maxBodyLength limit",AxiosError.ERR_BAD_REQUEST,R))}}const Ue=ct.toFiniteNumber(De.getContentLength());if(ct.isArray(je)){Fe=je[0];Le=je[1]}else{Fe=Le=je}if(ge&&(Ne||Fe)){if(!ct.isStream(ge)){ge=xe["default"].Readable.from(ge,{objectMode:false})}ge=xe["default"].pipeline([ge,new Qt({maxRate:ct.toFiniteNumber(Fe)})],ct.noop);Ne&&ge.on("progress",flushOnFinish(ge,progressEventDecorator(Ue,progressEventReducer(asyncDecorator(Ne),false,3))))}let He=undefined;if(R.auth){const pe=R.auth.username||"";const Ae=R.auth.password||"";He=pe+":"+Ae}if(!He&&Pe.username){const R=Pe.username;const pe=Pe.password;He=R+":"+pe}He&&De.delete("authorization");let Je;try{Je=buildURL(Pe.pathname+Pe.search,R.params,R.paramsSerializer).replace(/^\?/,"")}catch(pe){const he=new Error(pe.message);he.config=R;he.url=R.url;he.exists=true;return Ae(he)}De.set("Accept-Encoding","gzip, compress, deflate"+(Wt?", br":""),false);const We={path:Je,method:Ee,headers:De.toJSON(),agents:{http:R.httpAgent,https:R.httpsAgent},auth:He,protocol:Te,family:me,beforeRedirect:dispatchBeforeRedirect,beforeRedirects:{}};!ct.isUndefined(ye)&&(We.lookup=ye);if(R.socketPath){We.socketPath=R.socketPath}else{We.hostname=Pe.hostname;We.port=Pe.port;setProxy(We,R.proxy,Te+"//"+Pe.hostname+(Pe.port?":"+Pe.port:"")+We.path)}let Ve;const Ke=Gt.test(We.protocol);We.agent=Ke?R.httpsAgent:R.httpAgent;if(R.transport){Ve=R.transport}else if(R.maxRedirects===0){Ve=Ke?ke["default"]:Be["default"]}else{if(R.maxRedirects){We.maxRedirects=R.maxRedirects}if(R.beforeRedirect){We.beforeRedirects.config=R.beforeRedirect}Ve=Ke?Kt:Vt}if(R.maxBodyLength>-1){We.maxBodyLength=R.maxBodyLength}else{We.maxBodyLength=Infinity}if(R.insecureHTTPParser){We.insecureHTTPParser=R.insecureHTTPParser}Ie=Ve.request(We,(function handleResponse(he){if(Ie.destroyed)return;const ge=[he];const ye=+he.headers["content-length"];if(Me||Le){const R=new Qt({maxRate:ct.toFiniteNumber(Le)});Me&&R.on("progress",flushOnFinish(R,progressEventDecorator(ye,progressEventReducer(asyncDecorator(Me),true,3))));ge.push(R)}let me=he;const Ce=he.req||Ie;if(R.decompress!==false&&he.headers["content-encoding"]){if(Ee==="HEAD"||he.statusCode===204){delete he.headers["content-encoding"]}switch((he.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":ge.push(Qe["default"].createUnzip(Ht));delete he.headers["content-encoding"];break;case"deflate":ge.push(new Lt);ge.push(Qe["default"].createUnzip(Ht));delete he.headers["content-encoding"];break;case"br":if(Wt){ge.push(Qe["default"].createBrotliDecompress(Jt));delete he.headers["content-encoding"]}}}me=ge.length>1?xe["default"].pipeline(ge,ct.noop):ge[0];const _e=xe["default"].finished(me,(()=>{_e();onFinished()}));const Be={status:he.statusCode,statusText:he.statusMessage,headers:new Bt(he.headers),config:R,request:Ce};if(ve==="stream"){Be.data=me;settle(pe,Ae,Be)}else{const he=[];let ge=0;me.on("data",(function handleStreamData(pe){he.push(pe);ge+=pe.length;if(R.maxContentLength>-1&&ge>R.maxContentLength){we=true;me.destroy();Ae(new AxiosError("maxContentLength size of "+R.maxContentLength+" exceeded",AxiosError.ERR_BAD_RESPONSE,R,Ce))}}));me.on("aborted",(function handlerStreamAborted(){if(we){return}const pe=new AxiosError("maxContentLength size of "+R.maxContentLength+" exceeded",AxiosError.ERR_BAD_RESPONSE,R,Ce);me.destroy(pe);Ae(pe)}));me.on("error",(function handleStreamError(pe){if(Ie.destroyed)return;Ae(AxiosError.from(pe,null,R,Ce))}));me.on("end",(function handleStreamEnd(){try{let R=he.length===1?he[0]:Buffer.concat(he);if(ve!=="arraybuffer"){R=R.toString(be);if(!be||be==="utf8"){R=ct.stripBOM(R)}}Be.data=R}catch(pe){return Ae(AxiosError.from(pe,null,R,Be.request,Be))}settle(pe,Ae,Be)}))}Se.once("abort",(R=>{if(!me.destroyed){me.emit("error",R);me.destroy()}}))}));Se.once("abort",(R=>{Ae(R);Ie.destroy(R)}));Ie.on("error",(function handleRequestError(pe){Ae(AxiosError.from(pe,null,R,Ie))}));Ie.on("socket",(function handleRequestSocket(R){R.setKeepAlive(true,1e3*60)}));if(R.timeout){const pe=parseInt(R.timeout,10);if(Number.isNaN(pe)){Ae(new AxiosError("error trying to parse `config.timeout` to int",AxiosError.ERR_BAD_OPTION_VALUE,R,Ie));return}Ie.setTimeout(pe,(function handleRequestTimeout(){if(Ce)return;let pe=R.timeout?"timeout of "+R.timeout+"ms exceeded":"timeout exceeded";const he=R.transitional||At;if(R.timeoutErrorMessage){pe=R.timeoutErrorMessage}Ae(new AxiosError(pe,he.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,R,Ie));abort()}))}if(ct.isStream(ge)){let pe=false;let Ae=false;ge.on("end",(()=>{pe=true}));ge.once("error",(R=>{Ae=true;Ie.destroy(R)}));ge.on("close",(()=>{if(!pe&&!Ae){abort(new CanceledError("Request stream has been aborted",R,Ie))}}));ge.pipe(Ie)}else{Ie.end(ge)}}))};const zt=Ct.hasStandardBrowserEnv?function standardBrowserEnv(){const R=/(msie|trident)/i.test(navigator.userAgent);const pe=document.createElement("a");let Ae;function resolveURL(Ae){let he=Ae;if(R){pe.setAttribute("href",he);he=pe.href}pe.setAttribute("href",he);return{href:pe.href,protocol:pe.protocol?pe.protocol.replace(/:$/,""):"",host:pe.host,search:pe.search?pe.search.replace(/^\?/,""):"",hash:pe.hash?pe.hash.replace(/^#/,""):"",hostname:pe.hostname,port:pe.port,pathname:pe.pathname.charAt(0)==="/"?pe.pathname:"/"+pe.pathname}}Ae=resolveURL(window.location.href);return function isURLSameOrigin(R){const pe=ct.isString(R)?resolveURL(R):R;return pe.protocol===Ae.protocol&&pe.host===Ae.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}();const Xt=Ct.hasStandardBrowserEnv?{write(R,pe,Ae,he,ge,ye){const me=[R+"="+encodeURIComponent(pe)];ct.isNumber(Ae)&&me.push("expires="+new Date(Ae).toGMTString());ct.isString(he)&&me.push("path="+he);ct.isString(ge)&&me.push("domain="+ge);ye===true&&me.push("secure");document.cookie=me.join("; ")},read(R){const pe=document.cookie.match(new RegExp("(^|;\\s*)("+R+")=([^;]*)"));return pe?decodeURIComponent(pe[3]):null},remove(R){this.write(R,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};const headersToObject=R=>R instanceof Bt?{...R}:R;function mergeConfig(R,pe){pe=pe||{};const Ae={};function getMergedValue(R,pe,Ae){if(ct.isPlainObject(R)&&ct.isPlainObject(pe)){return ct.merge.call({caseless:Ae},R,pe)}else if(ct.isPlainObject(pe)){return ct.merge({},pe)}else if(ct.isArray(pe)){return pe.slice()}return pe}function mergeDeepProperties(R,pe,Ae){if(!ct.isUndefined(pe)){return getMergedValue(R,pe,Ae)}else if(!ct.isUndefined(R)){return getMergedValue(undefined,R,Ae)}}function valueFromConfig2(R,pe){if(!ct.isUndefined(pe)){return getMergedValue(undefined,pe)}}function defaultToConfig2(R,pe){if(!ct.isUndefined(pe)){return getMergedValue(undefined,pe)}else if(!ct.isUndefined(R)){return getMergedValue(undefined,R)}}function mergeDirectKeys(Ae,he,ge){if(ge in pe){return getMergedValue(Ae,he)}else if(ge in R){return getMergedValue(undefined,Ae)}}const he={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(R,pe)=>mergeDeepProperties(headersToObject(R),headersToObject(pe),true)};ct.forEach(Object.keys(Object.assign({},R,pe)),(function computeConfigValue(ge){const ye=he[ge]||mergeDeepProperties;const me=ye(R[ge],pe[ge],ge);ct.isUndefined(me)&&ye!==mergeDirectKeys||(Ae[ge]=me)}));return Ae}const resolveConfig=R=>{const pe=mergeConfig({},R);let{data:Ae,withXSRFToken:he,xsrfHeaderName:ge,xsrfCookieName:ye,headers:me,auth:ve}=pe;pe.headers=me=Bt.from(me);pe.url=buildURL(buildFullPath(pe.baseURL,pe.url),R.params,R.paramsSerializer);if(ve){me.set("Authorization","Basic "+btoa((ve.username||"")+":"+(ve.password?unescape(encodeURIComponent(ve.password)):"")))}let be;if(ct.isFormData(Ae)){if(Ct.hasStandardBrowserEnv||Ct.hasStandardBrowserWebWorkerEnv){me.setContentType(undefined)}else if((be=me.getContentType())!==false){const[R,...pe]=be?be.split(";").map((R=>R.trim())).filter(Boolean):[];me.setContentType([R||"multipart/form-data",...pe].join("; "))}}if(Ct.hasStandardBrowserEnv){he&&ct.isFunction(he)&&(he=he(pe));if(he||he!==false&&zt(pe.url)){const R=ge&&ye&&Xt.read(ye);if(R){me.set(ge,R)}}}return pe};const Zt=typeof XMLHttpRequest!=="undefined";const er=Zt&&function(R){return new Promise((function dispatchXhrRequest(pe,Ae){const he=resolveConfig(R);let ge=he.data;const ye=Bt.from(he.headers).normalize();let{responseType:me,onUploadProgress:ve,onDownloadProgress:be}=he;let Ee;let Ce,we;let _e,Ie;function done(){_e&&_e();Ie&&Ie();he.cancelToken&&he.cancelToken.unsubscribe(Ee);he.signal&&he.signal.removeEventListener("abort",Ee)}let Se=new XMLHttpRequest;Se.open(he.method.toUpperCase(),he.url,true);Se.timeout=he.timeout;function onloadend(){if(!Se){return}const he=Bt.from("getAllResponseHeaders"in Se&&Se.getAllResponseHeaders());const ge=!me||me==="text"||me==="json"?Se.responseText:Se.response;const ye={data:ge,status:Se.status,statusText:Se.statusText,headers:he,config:R,request:Se};settle((function _resolve(R){pe(R);done()}),(function _reject(R){Ae(R);done()}),ye);Se=null}if("onloadend"in Se){Se.onloadend=onloadend}else{Se.onreadystatechange=function handleLoad(){if(!Se||Se.readyState!==4){return}if(Se.status===0&&!(Se.responseURL&&Se.responseURL.indexOf("file:")===0)){return}setTimeout(onloadend)}}Se.onabort=function handleAbort(){if(!Se){return}Ae(new AxiosError("Request aborted",AxiosError.ECONNABORTED,R,Se));Se=null};Se.onerror=function handleError(){Ae(new AxiosError("Network Error",AxiosError.ERR_NETWORK,R,Se));Se=null};Se.ontimeout=function handleTimeout(){let pe=he.timeout?"timeout of "+he.timeout+"ms exceeded":"timeout exceeded";const ge=he.transitional||At;if(he.timeoutErrorMessage){pe=he.timeoutErrorMessage}Ae(new AxiosError(pe,ge.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,R,Se));Se=null};ge===undefined&&ye.setContentType(null);if("setRequestHeader"in Se){ct.forEach(ye.toJSON(),(function setRequestHeader(R,pe){Se.setRequestHeader(pe,R)}))}if(!ct.isUndefined(he.withCredentials)){Se.withCredentials=!!he.withCredentials}if(me&&me!=="json"){Se.responseType=he.responseType}if(be){[we,Ie]=progressEventReducer(be,true);Se.addEventListener("progress",we)}if(ve&&Se.upload){[Ce,_e]=progressEventReducer(ve);Se.upload.addEventListener("progress",Ce);Se.upload.addEventListener("loadend",_e)}if(he.cancelToken||he.signal){Ee=pe=>{if(!Se){return}Ae(!pe||pe.type?new CanceledError(null,R,Se):pe);Se.abort();Se=null};he.cancelToken&&he.cancelToken.subscribe(Ee);if(he.signal){he.signal.aborted?Ee():he.signal.addEventListener("abort",Ee)}}const Be=parseProtocol(he.url);if(Be&&Ct.protocols.indexOf(Be)===-1){Ae(new AxiosError("Unsupported protocol "+Be+":",AxiosError.ERR_BAD_REQUEST,R));return}Se.send(ge||null)}))};const composeSignals=(R,pe)=>{let Ae=new AbortController;let he;const onabort=function(R){if(!he){he=true;unsubscribe();const pe=R instanceof Error?R:this.reason;Ae.abort(pe instanceof AxiosError?pe:new CanceledError(pe instanceof Error?pe.message:pe))}};let ge=pe&&setTimeout((()=>{onabort(new AxiosError(`timeout ${pe} of ms exceeded`,AxiosError.ETIMEDOUT))}),pe);const unsubscribe=()=>{if(R){ge&&clearTimeout(ge);ge=null;R.forEach((R=>{R&&(R.removeEventListener?R.removeEventListener("abort",onabort):R.unsubscribe(onabort))}));R=null}};R.forEach((R=>R&&R.addEventListener&&R.addEventListener("abort",onabort)));const{signal:ye}=Ae;ye.unsubscribe=unsubscribe;return[ye,()=>{ge&&clearTimeout(ge);ge=null}]};const tr=composeSignals;const streamChunk=function*(R,pe){let Ae=R.byteLength;if(!pe||Ae{const ye=readBytes(R,pe,ge);let me=0;let ve;let _onFinish=R=>{if(!ve){ve=true;he&&he(R)}};return new ReadableStream({async pull(R){try{const{done:pe,value:he}=await ye.next();if(pe){_onFinish();R.close();return}let ge=he.byteLength;if(Ae){let R=me+=ge;Ae(R)}R.enqueue(new Uint8Array(he))}catch(R){_onFinish(R);throw R}},cancel(R){_onFinish(R);return ye.return()}},{highWaterMark:2})};const rr=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";const nr=rr&&typeof ReadableStream==="function";const ir=rr&&(typeof TextEncoder==="function"?(R=>pe=>R.encode(pe))(new TextEncoder):async R=>new Uint8Array(await new Response(R).arrayBuffer()));const test=(R,...pe)=>{try{return!!R(...pe)}catch(R){return false}};const sr=nr&&test((()=>{let R=false;const pe=new Request(Ct.origin,{body:new ReadableStream,method:"POST",get duplex(){R=true;return"half"}}).headers.has("Content-Type");return R&&!pe}));const ar=64*1024;const cr=nr&&test((()=>ct.isReadableStream(new Response("").body)));const ur={stream:cr&&(R=>R.body)};rr&&(R=>{["text","arrayBuffer","blob","formData","stream"].forEach((pe=>{!ur[pe]&&(ur[pe]=ct.isFunction(R[pe])?R=>R[pe]():(R,Ae)=>{throw new AxiosError(`Response type '${pe}' is not supported`,AxiosError.ERR_NOT_SUPPORT,Ae)})}))})(new Response);const getBodyLength=async R=>{if(R==null){return 0}if(ct.isBlob(R)){return R.size}if(ct.isSpecCompliantForm(R)){return(await new Request(R).arrayBuffer()).byteLength}if(ct.isArrayBufferView(R)||ct.isArrayBuffer(R)){return R.byteLength}if(ct.isURLSearchParams(R)){R=R+""}if(ct.isString(R)){return(await ir(R)).byteLength}};const resolveBodyLength=async(R,pe)=>{const Ae=ct.toFiniteNumber(R.getContentLength());return Ae==null?getBodyLength(pe):Ae};const lr=rr&&(async R=>{let{url:pe,method:Ae,data:he,signal:ge,cancelToken:ye,timeout:me,onDownloadProgress:ve,onUploadProgress:be,responseType:Ee,headers:Ce,withCredentials:we="same-origin",fetchOptions:_e}=resolveConfig(R);Ee=Ee?(Ee+"").toLowerCase():"text";let[Ie,Se]=ge||ye||me?tr([ge,ye],me):[];let Be,ke;const onFinish=()=>{!Be&&setTimeout((()=>{Ie&&Ie.unsubscribe()}));Be=true};let Oe;try{if(be&&sr&&Ae!=="get"&&Ae!=="head"&&(Oe=await resolveBodyLength(Ce,he))!==0){let R=new Request(pe,{method:"POST",body:he,duplex:"half"});let Ae;if(ct.isFormData(he)&&(Ae=R.headers.get("content-type"))){Ce.setContentType(Ae)}if(R.body){const[pe,Ae]=progressEventDecorator(Oe,progressEventReducer(asyncDecorator(be)));he=trackStream(R.body,ar,pe,Ae,ir)}}if(!ct.isString(we)){we=we?"include":"omit"}ke=new Request(pe,{..._e,signal:Ie,method:Ae.toUpperCase(),headers:Ce.normalize().toJSON(),body:he,duplex:"half",credentials:we});let ge=await fetch(ke);const ye=cr&&(Ee==="stream"||Ee==="response");if(cr&&(ve||ye)){const R={};["status","statusText","headers"].forEach((pe=>{R[pe]=ge[pe]}));const pe=ct.toFiniteNumber(ge.headers.get("content-length"));const[Ae,he]=ve&&progressEventDecorator(pe,progressEventReducer(asyncDecorator(ve),true))||[];ge=new Response(trackStream(ge.body,ar,Ae,(()=>{he&&he();ye&&onFinish()}),ir),R)}Ee=Ee||"text";let me=await ur[ct.findKey(ur,Ee)||"text"](ge,R);!ye&&onFinish();Se&&Se();return await new Promise(((pe,Ae)=>{settle(pe,Ae,{data:me,headers:Bt.from(ge.headers),status:ge.status,statusText:ge.statusText,config:R,request:ke})}))}catch(pe){onFinish();if(pe&&pe.name==="TypeError"&&/fetch/i.test(pe.message)){throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,R,ke),{cause:pe.cause||pe})}throw AxiosError.from(pe,pe&&pe.code,R,ke)}});const dr={http:$t,xhr:er,fetch:lr};ct.forEach(dr,((R,pe)=>{if(R){try{Object.defineProperty(R,"name",{value:pe})}catch(R){}Object.defineProperty(R,"adapterName",{value:pe})}}));const renderReason=R=>`- ${R}`;const isResolvedHandle=R=>ct.isFunction(R)||R===null||R===false;const fr={getAdapter:R=>{R=ct.isArray(R)?R:[R];const{length:pe}=R;let Ae;let he;const ge={};for(let ye=0;ye`adapter ${R} `+(pe===false?"is not supported by the environment":"is not available in the build")));let Ae=pe?R.length>1?"since :\n"+R.map(renderReason).join("\n"):" "+renderReason(R[0]):"as no adapter specified";throw new AxiosError(`There is no suitable adapter to dispatch the request `+Ae,"ERR_NOT_SUPPORT")}return he},adapters:dr};function throwIfCancellationRequested(R){if(R.cancelToken){R.cancelToken.throwIfRequested()}if(R.signal&&R.signal.aborted){throw new CanceledError(null,R)}}function dispatchRequest(R){throwIfCancellationRequested(R);R.headers=Bt.from(R.headers);R.data=transformData.call(R,R.transformRequest);if(["post","put","patch"].indexOf(R.method)!==-1){R.headers.setContentType("application/x-www-form-urlencoded",false)}const pe=fr.getAdapter(R.adapter||_t.adapter);return pe(R).then((function onAdapterResolution(pe){throwIfCancellationRequested(R);pe.data=transformData.call(R,R.transformResponse,pe);pe.headers=Bt.from(pe.headers);return pe}),(function onAdapterRejection(pe){if(!isCancel(pe)){throwIfCancellationRequested(R);if(pe&&pe.response){pe.response.data=transformData.call(R,R.transformResponse,pe.response);pe.response.headers=Bt.from(pe.response.headers)}}return Promise.reject(pe)}))}const pr={};["object","boolean","number","function","string","symbol"].forEach(((R,pe)=>{pr[R]=function validator(Ae){return typeof Ae===R||"a"+(pe<1?"n ":" ")+R}}));const Ar={};pr.transitional=function transitional(R,pe,Ae){function formatMessage(R,pe){return"[Axios v"+kt+"] Transitional option '"+R+"'"+pe+(Ae?". "+Ae:"")}return(Ae,he,ge)=>{if(R===false){throw new AxiosError(formatMessage(he," has been removed"+(pe?" in "+pe:"")),AxiosError.ERR_DEPRECATED)}if(pe&&!Ar[he]){Ar[he]=true;console.warn(formatMessage(he," has been deprecated since v"+pe+" and will be removed in the near future"))}return R?R(Ae,he,ge):true}};function assertOptions(R,pe,Ae){if(typeof R!=="object"){throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE)}const he=Object.keys(R);let ge=he.length;while(ge-- >0){const ye=he[ge];const me=pe[ye];if(me){const pe=R[ye];const Ae=pe===undefined||me(pe,ye,R);if(Ae!==true){throw new AxiosError("option "+ye+" must be "+Ae,AxiosError.ERR_BAD_OPTION_VALUE)}continue}if(Ae!==true){throw new AxiosError("Unknown option "+ye,AxiosError.ERR_BAD_OPTION)}}}const hr={assertOptions:assertOptions,validators:pr};const gr=hr.validators;class Axios{constructor(R){this.defaults=R;this.interceptors={request:new pt,response:new pt}}async request(R,pe){try{return await this._request(R,pe)}catch(R){if(R instanceof Error){let pe;Error.captureStackTrace?Error.captureStackTrace(pe={}):pe=new Error;const Ae=pe.stack?pe.stack.replace(/^.+\n/,""):"";try{if(!R.stack){R.stack=Ae}else if(Ae&&!String(R.stack).endsWith(Ae.replace(/^.+\n.+\n/,""))){R.stack+="\n"+Ae}}catch(R){}}throw R}}_request(R,pe){if(typeof R==="string"){pe=pe||{};pe.url=R}else{pe=R||{}}pe=mergeConfig(this.defaults,pe);const{transitional:Ae,paramsSerializer:he,headers:ge}=pe;if(Ae!==undefined){hr.assertOptions(Ae,{silentJSONParsing:gr.transitional(gr.boolean),forcedJSONParsing:gr.transitional(gr.boolean),clarifyTimeoutError:gr.transitional(gr.boolean)},false)}if(he!=null){if(ct.isFunction(he)){pe.paramsSerializer={serialize:he}}else{hr.assertOptions(he,{encode:gr.function,serialize:gr.function},true)}}pe.method=(pe.method||this.defaults.method||"get").toLowerCase();let ye=ge&&ct.merge(ge.common,ge[pe.method]);ge&&ct.forEach(["delete","get","head","post","put","patch","common"],(R=>{delete ge[R]}));pe.headers=Bt.concat(ye,ge);const me=[];let ve=true;this.interceptors.request.forEach((function unshiftRequestInterceptors(R){if(typeof R.runWhen==="function"&&R.runWhen(pe)===false){return}ve=ve&&R.synchronous;me.unshift(R.fulfilled,R.rejected)}));const be=[];this.interceptors.response.forEach((function pushResponseInterceptors(R){be.push(R.fulfilled,R.rejected)}));let Ee;let Ce=0;let we;if(!ve){const R=[dispatchRequest.bind(this),undefined];R.unshift.apply(R,me);R.push.apply(R,be);we=R.length;Ee=Promise.resolve(pe);while(Ce{if(!Ae._listeners)return;let pe=Ae._listeners.length;while(pe-- >0){Ae._listeners[pe](R)}Ae._listeners=null}));this.promise.then=R=>{let pe;const he=new Promise((R=>{Ae.subscribe(R);pe=R})).then(R);he.cancel=function reject(){Ae.unsubscribe(pe)};return he};R((function cancel(R,he,ge){if(Ae.reason){return}Ae.reason=new CanceledError(R,he,ge);pe(Ae.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(R){if(this.reason){R(this.reason);return}if(this._listeners){this._listeners.push(R)}else{this._listeners=[R]}}unsubscribe(R){if(!this._listeners){return}const pe=this._listeners.indexOf(R);if(pe!==-1){this._listeners.splice(pe,1)}}static source(){let R;const pe=new CancelToken((function executor(pe){R=pe}));return{token:pe,cancel:R}}}const mr=CancelToken;function spread(R){return function wrap(pe){return R.apply(null,pe)}}function isAxiosError(R){return ct.isObject(R)&&R.isAxiosError===true}const vr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vr).forEach((([R,pe])=>{vr[pe]=R}));const br=vr;function createInstance(R){const pe=new yr(R);const Ae=bind(yr.prototype.request,pe);ct.extend(Ae,yr.prototype,pe,{allOwnKeys:true});ct.extend(Ae,pe,null,{allOwnKeys:true});Ae.create=function create(pe){return createInstance(mergeConfig(R,pe))};return Ae}const Er=createInstance(_t);Er.Axios=yr;Er.CanceledError=CanceledError;Er.CancelToken=mr;Er.isCancel=isCancel;Er.VERSION=kt;Er.toFormData=toFormData;Er.AxiosError=AxiosError;Er.Cancel=Er.CanceledError;Er.all=function all(R){return Promise.all(R)};Er.spread=spread;Er.isAxiosError=isAxiosError;Er.mergeConfig=mergeConfig;Er.AxiosHeaders=Bt;Er.formToJSON=R=>formDataToJSON(ct.isHTMLForm(R)?new FormData(R):R);Er.getAdapter=fr.getAdapter;Er.HttpStatusCode=br;Er.default=Er;R.exports=Er},64775:R=>{"use strict";R.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},90996:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/applicator","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/applicator":true},"$dynamicAnchor":"meta","title":"Applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"prefixItems":{"$ref":"#/$defs/schemaArray"},"items":{"$dynamicRef":"#meta"},"contains":{"$dynamicRef":"#meta"},"additionalProperties":{"$dynamicRef":"#meta"},"properties":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"propertyNames":{"format":"regex"},"default":{}},"dependentSchemas":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"default":{}},"propertyNames":{"$dynamicRef":"#meta"},"if":{"$dynamicRef":"#meta"},"then":{"$dynamicRef":"#meta"},"else":{"$dynamicRef":"#meta"},"allOf":{"$ref":"#/$defs/schemaArray"},"anyOf":{"$ref":"#/$defs/schemaArray"},"oneOf":{"$ref":"#/$defs/schemaArray"},"not":{"$dynamicRef":"#meta"}},"$defs":{"schemaArray":{"type":"array","minItems":1,"items":{"$dynamicRef":"#meta"}}}}')},46795:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/content","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/content":true},"$dynamicAnchor":"meta","title":"Content vocabulary meta-schema","type":["object","boolean"],"properties":{"contentEncoding":{"type":"string"},"contentMediaType":{"type":"string"},"contentSchema":{"$dynamicRef":"#meta"}}}')},235:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/core","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/core":true},"$dynamicAnchor":"meta","title":"Core vocabulary meta-schema","type":["object","boolean"],"properties":{"$id":{"$ref":"#/$defs/uriReferenceString","$comment":"Non-empty fragments not allowed.","pattern":"^[^#]*#?$"},"$schema":{"$ref":"#/$defs/uriString"},"$ref":{"$ref":"#/$defs/uriReferenceString"},"$anchor":{"$ref":"#/$defs/anchorString"},"$dynamicRef":{"$ref":"#/$defs/uriReferenceString"},"$dynamicAnchor":{"$ref":"#/$defs/anchorString"},"$vocabulary":{"type":"object","propertyNames":{"$ref":"#/$defs/uriString"},"additionalProperties":{"type":"boolean"}},"$comment":{"type":"string"},"$defs":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"}}},"$defs":{"anchorString":{"type":"string","pattern":"^[A-Za-z_][-A-Za-z0-9._]*$"},"uriString":{"type":"string","format":"uri"},"uriReferenceString":{"type":"string","format":"uri-reference"}}}')},2567:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/format-annotation","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/format-annotation":true},"$dynamicAnchor":"meta","title":"Format vocabulary meta-schema for annotation results","type":["object","boolean"],"properties":{"format":{"type":"string"}}}')},41233:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/meta-data","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/meta-data":true},"$dynamicAnchor":"meta","title":"Meta-data vocabulary meta-schema","type":["object","boolean"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"default":true,"deprecated":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true}}}')},5568:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/unevaluated","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/unevaluated":true},"$dynamicAnchor":"meta","title":"Unevaluated applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"unevaluatedItems":{"$dynamicRef":"#meta"},"unevaluatedProperties":{"$dynamicRef":"#meta"}}}')},61968:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/validation","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/validation":true},"$dynamicAnchor":"meta","title":"Validation vocabulary meta-schema","type":["object","boolean"],"properties":{"type":{"anyOf":[{"$ref":"#/$defs/simpleTypes"},{"type":"array","items":{"$ref":"#/$defs/simpleTypes"},"minItems":1,"uniqueItems":true}]},"const":true,"enum":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/$defs/nonNegativeInteger"},"minLength":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"maxItems":{"$ref":"#/$defs/nonNegativeInteger"},"minItems":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxContains":{"$ref":"#/$defs/nonNegativeInteger"},"minContains":{"$ref":"#/$defs/nonNegativeInteger","default":1},"maxProperties":{"$ref":"#/$defs/nonNegativeInteger"},"minProperties":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"required":{"$ref":"#/$defs/stringArray"},"dependentRequired":{"type":"object","additionalProperties":{"$ref":"#/$defs/stringArray"}}},"$defs":{"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"$ref":"#/$defs/nonNegativeInteger","default":0},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}}}')},22577:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/schema","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/core":true,"https://json-schema.org/draft/2020-12/vocab/applicator":true,"https://json-schema.org/draft/2020-12/vocab/unevaluated":true,"https://json-schema.org/draft/2020-12/vocab/validation":true,"https://json-schema.org/draft/2020-12/vocab/meta-data":true,"https://json-schema.org/draft/2020-12/vocab/format-annotation":true,"https://json-schema.org/draft/2020-12/vocab/content":true},"$dynamicAnchor":"meta","title":"Core and Validation specifications meta-schema","allOf":[{"$ref":"meta/core"},{"$ref":"meta/applicator"},{"$ref":"meta/unevaluated"},{"$ref":"meta/validation"},{"$ref":"meta/meta-data"},{"$ref":"meta/format-annotation"},{"$ref":"meta/content"}],"type":["object","boolean"],"$comment":"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.","properties":{"definitions":{"$comment":"\\"definitions\\" has been replaced by \\"$defs\\".","type":"object","additionalProperties":{"$dynamicRef":"#meta"},"deprecated":true,"default":{}},"dependencies":{"$comment":"\\"dependencies\\" has been split and replaced by \\"dependentSchemas\\" and \\"dependentRequired\\" in order to serve their differing semantics.","type":"object","additionalProperties":{"anyOf":[{"$dynamicRef":"#meta"},{"$ref":"meta/validation#/$defs/stringArray"}]},"deprecated":true,"default":{}},"$recursiveAnchor":{"$comment":"\\"$recursiveAnchor\\" has been replaced by \\"$dynamicAnchor\\".","$ref":"meta/core#/$defs/anchorString","deprecated":true},"$recursiveRef":{"$comment":"\\"$recursiveRef\\" has been replaced by \\"$dynamicRef\\".","$ref":"meta/core#/$defs/uriReferenceString","deprecated":true}}}')},98:R=>{"use strict";R.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},49968:R=>{"use strict";R.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')},53765:R=>{"use strict";R.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},67117:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@protected":true,"id":"@id","type":"@type","description":"https://schema.org/description","digestMultibase":{"@id":"https://w3id.org/security#digestMultibase","@type":"https://w3id.org/security#multibase"},"digestSRI":{"@id":"https://www.w3.org/2018/credentials#digestSRI","@type":"https://www.w3.org/2018/credentials#sriString"},"mediaType":{"@id":"https://schema.org/encodingFormat"},"name":"https://schema.org/name","VerifiableCredential":{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@protected":true,"id":"@id","type":"@type","confidenceMethod":{"@id":"https://www.w3.org/2018/credentials#confidenceMethod","@type":"@id"},"credentialSchema":{"@id":"https://www.w3.org/2018/credentials#credentialSchema","@type":"@id"},"credentialStatus":{"@id":"https://www.w3.org/2018/credentials#credentialStatus","@type":"@id"},"credentialSubject":{"@id":"https://www.w3.org/2018/credentials#credentialSubject","@type":"@id"},"description":"https://schema.org/description","evidence":{"@id":"https://www.w3.org/2018/credentials#evidence","@type":"@id"},"issuer":{"@id":"https://www.w3.org/2018/credentials#issuer","@type":"@id"},"name":"https://schema.org/name","proof":{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},"refreshService":{"@id":"https://www.w3.org/2018/credentials#refreshService","@type":"@id"},"relatedResource":{"@id":"https://www.w3.org/2018/credentials#relatedResource","@type":"@id"},"renderMethod":{"@id":"https://www.w3.org/2018/credentials#renderMethod","@type":"@id"},"termsOfUse":{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},"validFrom":{"@id":"https://www.w3.org/2018/credentials#validFrom","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},"validUntil":{"@id":"https://www.w3.org/2018/credentials#validUntil","@type":"http://www.w3.org/2001/XMLSchema#dateTime"}}},"EnvelopedVerifiableCredential":"https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential","VerifiablePresentation":{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@protected":true,"id":"@id","type":"@type","holder":{"@id":"https://www.w3.org/2018/credentials#holder","@type":"@id"},"proof":{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},"termsOfUse":{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},"verifiableCredential":{"@id":"https://www.w3.org/2018/credentials#verifiableCredential","@type":"@id","@container":"@graph","@context":null}}},"EnvelopedVerifiablePresentation":"https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation","JsonSchemaCredential":"https://www.w3.org/2018/credentials#JsonSchemaCredential","JsonSchema":{"@id":"https://www.w3.org/2018/credentials#JsonSchema","@context":{"@protected":true,"id":"@id","type":"@type","jsonSchema":{"@id":"https://www.w3.org/2018/credentials#jsonSchema","@type":"@json"}}},"BitstringStatusListCredential":"https://www.w3.org/ns/credentials/status#BitstringStatusListCredential","BitstringStatusList":{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusList","@context":{"@protected":true,"id":"@id","type":"@type","encodedList":{"@id":"https://www.w3.org/ns/credentials/status#encodedList","@type":"https://w3id.org/security#multibase"},"statusMessage":{"@id":"https://www.w3.org/ns/credentials/status#statusMessage","@context":{"@protected":true,"id":"@id","type":"@type","message":"https://www.w3.org/ns/credentials/status#message","status":"https://www.w3.org/ns/credentials/status#status"}},"statusPurpose":"https://www.w3.org/ns/credentials/status#statusPurpose","statusReference":{"@id":"https://www.w3.org/ns/credentials/status#statusReference","@type":"@id"},"statusSize":{"@id":"https://www.w3.org/ns/credentials/status#statusSize","@type":"https://www.w3.org/2001/XMLSchema#positiveInteger"},"ttl":"https://www.w3.org/ns/credentials/status#ttl"}},"BitstringStatusListEntry":{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusListEntry","@context":{"@protected":true,"id":"@id","type":"@type","statusListCredential":{"@id":"https://www.w3.org/ns/credentials/status#statusListCredential","@type":"@id"},"statusListIndex":"https://www.w3.org/ns/credentials/status#statusListIndex","statusPurpose":"https://www.w3.org/ns/credentials/status#statusPurpose"}},"DataIntegrityProof":{"@id":"https://w3id.org/security#DataIntegrityProof","@context":{"@protected":true,"id":"@id","type":"@type","challenge":"https://w3id.org/security#challenge","created":{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},"cryptosuite":{"@id":"https://w3id.org/security#cryptosuite","@type":"https://w3id.org/security#cryptosuiteString"},"domain":"https://w3id.org/security#domain","expires":{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},"nonce":"https://w3id.org/security#nonce","previousProof":{"@id":"https://w3id.org/security#previousProof","@type":"@id"},"proofPurpose":{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":true,"id":"@id","type":"@type","assertionMethod":{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},"authentication":{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},"capabilityDelegation":{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},"capabilityInvocation":{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},"keyAgreement":{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},"proofValue":{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},"verificationMethod":{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}},"...":{"@id":"https://www.iana.org/assignments/jwt#..."},"_sd":{"@id":"https://www.iana.org/assignments/jwt#_sd","@type":"@json"},"_sd_alg":{"@id":"https://www.iana.org/assignments/jwt#_sd_alg"},"aud":{"@id":"https://www.iana.org/assignments/jwt#aud","@type":"@id"},"cnf":{"@id":"https://www.iana.org/assignments/jwt#cnf","@context":{"@protected":true,"kid":{"@id":"https://www.iana.org/assignments/jwt#kid","@type":"@id"},"jwk":{"@id":"https://www.iana.org/assignments/jwt#jwk","@type":"@json"}}},"exp":{"@id":"https://www.iana.org/assignments/jwt#exp","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},"iat":{"@id":"https://www.iana.org/assignments/jwt#iat","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},"iss":{"@id":"https://www.iana.org/assignments/jose#iss","@type":"@id"},"jku":{"@id":"https://www.iana.org/assignments/jose#jku","@type":"@id"},"kid":{"@id":"https://www.iana.org/assignments/jose#kid","@type":"@id"},"nbf":{"@id":"https://www.iana.org/assignments/jwt#nbf","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},"sub":{"@id":"https://www.iana.org/assignments/jose#sub","@type":"@id"},"x5u":{"@id":"https://www.iana.org/assignments/jose#x5u","@type":"@id"}}}')},67587:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@vocab":"https://www.w3.org/ns/credentials/examples#"}}')},82817:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","VerifiableCredential":{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","cred":"https://www.w3.org/2018/credentials#","sec":"https://w3id.org/security#","xsd":"http://www.w3.org/2001/XMLSchema#","credentialSchema":{"@id":"cred:credentialSchema","@type":"@id","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","cred":"https://www.w3.org/2018/credentials#","JsonSchemaValidator2018":"cred:JsonSchemaValidator2018"}},"credentialStatus":{"@id":"cred:credentialStatus","@type":"@id"},"credentialSubject":{"@id":"cred:credentialSubject","@type":"@id"},"evidence":{"@id":"cred:evidence","@type":"@id"},"expirationDate":{"@id":"cred:expirationDate","@type":"xsd:dateTime"},"holder":{"@id":"cred:holder","@type":"@id"},"issued":{"@id":"cred:issued","@type":"xsd:dateTime"},"issuer":{"@id":"cred:issuer","@type":"@id"},"issuanceDate":{"@id":"cred:issuanceDate","@type":"xsd:dateTime"},"proof":{"@id":"sec:proof","@type":"@id","@container":"@graph"},"refreshService":{"@id":"cred:refreshService","@type":"@id","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","cred":"https://www.w3.org/2018/credentials#","ManualRefreshService2018":"cred:ManualRefreshService2018"}},"termsOfUse":{"@id":"cred:termsOfUse","@type":"@id"},"validFrom":{"@id":"cred:validFrom","@type":"xsd:dateTime"},"validUntil":{"@id":"cred:validUntil","@type":"xsd:dateTime"}}},"VerifiablePresentation":{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","cred":"https://www.w3.org/2018/credentials#","sec":"https://w3id.org/security#","holder":{"@id":"cred:holder","@type":"@id"},"proof":{"@id":"sec:proof","@type":"@id","@container":"@graph"},"verifiableCredential":{"@id":"cred:verifiableCredential","@type":"@id","@container":"@graph"}}},"EcdsaSecp256k1Signature2019":{"@id":"https://w3id.org/security#EcdsaSecp256k1Signature2019","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","xsd":"http://www.w3.org/2001/XMLSchema#","challenge":"sec:challenge","created":{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},"domain":"sec:domain","expires":{"@id":"sec:expiration","@type":"xsd:dateTime"},"jws":"sec:jws","nonce":"sec:nonce","proofPurpose":{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","assertionMethod":{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},"authentication":{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},"proofValue":"sec:proofValue","verificationMethod":{"@id":"sec:verificationMethod","@type":"@id"}}},"EcdsaSecp256r1Signature2019":{"@id":"https://w3id.org/security#EcdsaSecp256r1Signature2019","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","xsd":"http://www.w3.org/2001/XMLSchema#","challenge":"sec:challenge","created":{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},"domain":"sec:domain","expires":{"@id":"sec:expiration","@type":"xsd:dateTime"},"jws":"sec:jws","nonce":"sec:nonce","proofPurpose":{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","assertionMethod":{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},"authentication":{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},"proofValue":"sec:proofValue","verificationMethod":{"@id":"sec:verificationMethod","@type":"@id"}}},"Ed25519Signature2018":{"@id":"https://w3id.org/security#Ed25519Signature2018","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","xsd":"http://www.w3.org/2001/XMLSchema#","challenge":"sec:challenge","created":{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},"domain":"sec:domain","expires":{"@id":"sec:expiration","@type":"xsd:dateTime"},"jws":"sec:jws","nonce":"sec:nonce","proofPurpose":{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","assertionMethod":{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},"authentication":{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},"proofValue":"sec:proofValue","verificationMethod":{"@id":"sec:verificationMethod","@type":"@id"}}},"RsaSignature2018":{"@id":"https://w3id.org/security#RsaSignature2018","@context":{"@version":1.1,"@protected":true,"challenge":"sec:challenge","created":{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},"domain":"sec:domain","expires":{"@id":"sec:expiration","@type":"xsd:dateTime"},"jws":"sec:jws","nonce":"sec:nonce","proofPurpose":{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","assertionMethod":{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},"authentication":{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},"proofValue":"sec:proofValue","verificationMethod":{"@id":"sec:verificationMethod","@type":"@id"}}},"proof":{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"}}}')},38428:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@version":1.1,"@vocab":"https://www.w3.org/ns/credentials/issuer-dependent#","id":"@id","type":"@type","name":"https://schema.org/name","description":"https://schema.org/description","identifier":"https://schema.org/identifier","image":{"@id":"https://schema.org/image","@type":"@id"},"relatedLink":{"@id":"https://w3id.org/traceability#LinkRole"},"manufacturer":"https://vocabulary.uncefact.org/manufacturerParty","manufacturingCountry":"https://vocabulary.uncefact.org/manufactureCountry","product":"https://w3id.org/traceability#SteelProduct","rawMaterial":"https://w3id.org/traceability#rawMaterial","items":"https://schema.org/ItemList","dateOfExport":{"@id":"https://vocabulary.uncefact.org/exportExitDateTime","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},"TraceablePresentation":{"@id":"https://w3id.org/traceability#traceable-presentation","@context":{"replace":{"@id":"https://w3id.org/traceability#workflow-replace","@type":"@id"},"workflow":{"@id":"https://w3id.org/traceability#workflow","@context":{"definition":{"@id":"https://w3id.org/traceability#workflow-definition","@type":"@id"},"instance":{"@id":"https://w3id.org/traceability#workflow-instance","@type":"@id"}}}}},"AgricultureActivity":{"@id":"https://w3id.org/traceability#AgricultureActivity","@context":{"business":{"@id":"https://w3id.org/traceability#dfn-entities"},"actor":{"@id":"https://w3id.org/traceability#Person"},"location":{"@id":"https://www.gs1.org/voc/Place"},"activityDate":{"@id":"https://schema.org/endDate"},"activityType":{"@id":"https://schema.org/description"},"agricultureProduct":{"@id":"https://schema.org/ItemList"},"observation":{"@id":"https://w3id.org/traceability#observation"}}},"AgricultureInspectionCommonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo","@context":{"applicant":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"facility":{"@id":"https://www.gs1.org/voc/location"},"inspector":{"@id":"https://w3id.org/traceability#Inspector"},"delegateOf":{"@id":"https://vocabulary.uncefact.org/specifiedLegalOrganization"},"regulatoryAgency":{"@id":"https://vocabulary.uncefact.org/specifiedLegalOrganization"},"inspectionStarted":{"@id":"https://vocabulary.uncefact.org/startDateTime"},"inspectionEnded":{"@id":"https://vocabulary.uncefact.org/endDateTime"}}},"AgricultureInspectionGeneric":{"@id":"https://w3id.org/traceability#AgricultureInspectionGeneric","@context":{"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"inspectionType":{"@id":"https://www.gs1.org/voc/certificationType"},"observation":{"@id":"https://vocabulary.uncefact.org/relatedObservation"},"name":{"@id":"https://schema.org/name"},"status":{"@id":"https://vocabulary.uncefact.org/status"},"productQuantity":{"@id":"https://vocabulary.uncefact.org/Measurement"},"packageSize":{"@id":"https://vocabulary.uncefact.org/Measurement"},"inspectorCounted":{"@id":"https://vocabulary.uncefact.org/applicableSpecifiedAction"}}},"AgriculturePackage":{"@id":"https://w3id.org/traceability#AgriculturePackage","@context":{"packageName":{"@id":"https://schema.org/name"},"grade":{"@id":"https://w3id.org/traceability#grade"},"responsibleParty":{"@id":"https://w3id.org/traceability#responsibleParty"},"voicePickCode":{"@id":"https://w3id.org/traceability#voicePickCode"},"packingDate":{"@id":"https://www.gs1.org/voc/packagingDate"},"harvestDate":{"@id":"https://vocabulary.uncefact.org/harvestDateTime"},"bestByDate":{"@id":"https://vocabulary.uncefact.org/bestBeforeDateTime"},"labelImageUrl":{"@id":"https://schema.org/url"},"labelImageHash":{"@id":"https://schema.org/sha256"},"agricultureProduct":{"@id":"https://schema.org/ItemList"},"harvest":{"@id":"https://w3id.org/traceability#AgricultureActivity"}}},"AgricultureParcelDelivery":{"@id":"https://w3id.org/traceability#AgricultureParcelDelivery","@context":{"deliveryAddress":{"@id":"https://schema.org/deliveryAddress"},"originAddress":{"@id":"https://schema.org/originAddress"},"foreignPortExport":{"@id":"https://schema.org/itinerary"},"portOfEntry":{"@id":"https://schema.org/itinerary"},"deliveryMethod":{"@id":"https://schema.org/hasDeliveryMethod"},"trackingNumber":{"@id":"https://schema.org/trackingNumber"},"expectedArrival":{"@id":"https://schema.org/expectedArrivalFrom"},"specialInstructions":{"@id":"https://schema.org/comment"},"consignee":{"@id":"https://schema.org/Organization"},"agriculturePackage":{"@id":"https://schema.org/itemShipped"},"movementPoints":{"@id":"https://schema.org/itinerary"},"plannedRoute":{"@id":"https://schema.org/itinerary"},"shipper":{"@id":"https://schema.org/seller"},"purchaser":{"@id":"https://schema.org/buyer"},"carrier":{"@id":"https://schema.org/carrier"},"broker":{"@id":"https://schema.org/broker"}}},"AgricultureProduct":{"@id":"https://w3id.org/traceability#AgricultureProduct","@context":{"plu":{"@id":"https://schema.org/identifier"},"product":{"@id":"https://www.gs1.org/voc/Product"},"unitQuantity":{"@id":"https://vocabulary.uncefact.org/actualQuantity"},"scientificName":{"@id":"https://vocabulary.uncefact.org/scientificName"},"plantParts":{},"labelImageUrl":{"@id":"https://schema.org/url"},"labelImageHash":{"@id":"https://schema.org/sha256"},"name":{"@id":"https://schema.org/name"},"variety":{"@id":"https://www.gs1.org/voc/consumerProductVariant"},"commodityDesignation":{"@id":"https://www.gs1.org/voc/additionalProductDescription"},"packType":{"@id":"https://www.gs1.org/voc/packaging"}}},"BankAccount":{"@id":"https://w3id.org/traceability#BankAccount","@context":{"accountId":{"@id":"https://w3id.org/traceability#accountId"},"BIC11":{"@id":"https://w3id.org/traceability#BIC11"},"iban":{"@id":"https://w3id.org/traceability#iban"},"routingInfo":{"@id":"https://w3id.org/traceability#routingInfo"},"familyName":{"@id":"http://schema.org/familyName"},"givenName":{"@id":"http://schema.org/givenName"},"address":{"@id":"https://schema.org/PostalAddress"}}},"BankAccountHolderAffirmation":{"@id":"https://w3id.org/traceability#BankAccountHolderAffirmation","@context":{"affirmingParty":{"@id":"https://w3id.org/traceability#evidenceVerifier"},"bankAccountHolderAffirmationApproach":{"@id":"https://schema.org/name"},"bank":{"@id":"https://schema.org/Organization"}}},"BillOfLading":{"@id":"https://w3id.org/traceability#BillOfLading","@context":{"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"bookingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BN"},"relatedDocuments":{"@id":"https://schema.org/Purchase"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"consignor":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"notify":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"freightForwarder":{"@id":"https://vocabulary.uncefact.org/freightForwarderParty"},"freight":{"@id":"https://schema.org/ParcelDelivery"},"nmfcFreightClass":{"@id":"https://w3id.org/traceability#nmfcFreightClass"},"hazardCode":{"@id":"https://w3id.org/traceability#hazardCode"},"portOfLoading":{"@id":"https://vocabulary.uncefact.org/LocationFunctionCodeList#9"},"portOfDischarge":{"@id":"https://vocabulary.uncefact.org/LocationFunctionCodeList#11"},"particulars":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"}}},"BusinessRegistrationVerification":{"@id":"https://w3id.org/traceability#BusinessRegistrationVerification","@context":{"affirmingParty":{"@id":"https://w3id.org/traceability#affirmingParty"},"registrationUrl":{"@id":"https://schema.org/url"},"taxIdentificationNumber":{"@id":"https://vocabulary.uncefact.org/uncl1153#AHP"},"countryOfRegistration":{"@id":"https://schema.org/country"}}},"CBPEntry":{"@id":"https://w3id.org/traceability#CBPEntry","@context":{"portOfEntry":{"@id":"https://schema.org/Place"},"bondType":{"@id":"https://w3id.org/traceability#bondType"},"importer":{"@id":"https://vocabulary.uncefact.org/importerParty"},"importerOfRecord":{"@id":"https://w3id.org/traceability#importerOfRecord"},"entryNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AQM"},"bondValue":{"@id":"https://schema.org/MonetaryAmount"},"entryValue":{"@id":"https://schema.org/MonetaryAmount"},"centralizedExaminationSite":{"@id":"https://w3id.org/traceability#centralizedExaminationSite"},"entryType":{"@id":"https://w3id.org/traceability#entryType"},"originatingWarehouseEntryNumber":{"@id":"https://w3id.org/traceability#originatingWarehouseEntryNumber"},"suretyCode":{"@id":"https://w3id.org/traceability#suretyCode"},"portOfUnlading":{"@id":"https://schema.org/Place"},"transportMode":{"@id":"https://w3id.org/traceability#transportMode"},"locationOfGoods":{"@id":"https://schema.org/Place"},"generalOrderNumber":{"@id":"https://w3id.org/traceability#generalOrderNumber"},"conveyanceNameOrFreeTradeZoneID":{"@id":"https://w3id.org/traceability#conveyanceNameOrFreeTradeZoneID"},"referenceIDCode":{"@id":"https://w3id.org/traceability#referenceIDCode"},"referenceIDNumber":{"@id":"https://w3id.org/traceability#referenceIDNumber"},"lineItems":{"@id":"https://w3id.org/traceability#lineItems"},"nonAMS":{"@id":"https://w3id.org/traceability#nonAMS"},"splitBill":{"@id":"https://w3id.org/traceability#splitBill"},"bolType":{"@id":"https://w3id.org/traceability#bolType"},"scac":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AAZ"},"inBondNumber":{"@id":"https://w3id.org/traceability#inBondNumber"},"bolNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"quantity":{"@id":"https://w3id.org/traceability#quantity"},"voyageFlightTrip":{"@id":"https://w3id.org/traceability#voyageFlightTrip"},"conveyanceName":{"@id":"https://w3id.org/traceability#conveyanceName"},"arrivalDate":{"@id":"https://vocabulary.uncefact.org/actualArrivalRelatedDateTime"}}},"CBPEntryEntity":{"@id":"https://w3id.org/traceability#CBPEntryEntity","@context":{"importerOfRecord":{"@id":"https://w3id.org/traceability#importerOfRecord"}}},"CBPEntryLineItem":{"@id":"https://w3id.org/traceability#CBPEntryLineItem","@context":{"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"productDescription":{"@id":"https://schema.org/description"},"itemCount":{"@id":"https://vocabulary.uncefact.org/despatchedQuantity"},"itemParty":{"@id":"https://w3id.org/traceability#itemParty"},"freeTradeZoneFilingDate":{"@id":"https://schema.org/endDate"},"freeTradeZoneStatus":{"@id":"https://w3id.org/traceability#freeTradeZoneStatus"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"value":{"@id":"https://schema.org/MonetaryAmount"}}},"CBPEntrySummary":{"@id":"https://w3id.org/traceability#CBPEntrySummary","@context":{"entryNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AQM"},"entryType":{"@id":"https://w3id.org/traceability#entryType"},"summaryDate":{"@id":"https://vocabulary.uncefact.org/submissionDateTime"},"suretyCode":{"@id":"https://w3id.org/traceability#suretyCode"},"bondType":{"@id":"https://w3id.org/traceability#bondType"},"portCode":{"@id":"https://schema.org/Place"},"entryDate":{"@id":"https://vocabulary.uncefact.org/jurisdictionEntryDateTime"},"importingCarrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"transportMode":{"@id":"https://w3id.org/traceability#transportMode"},"countryOfOrigin":{"@id":"https://w3id.org/traceability#countryOfOrigin"},"importDate":{"@id":"https://vocabulary.uncefact.org/arrivalRelatedDateTime"},"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"manufacturerId":{"@id":"https://schema.org/identifier"},"exportingCountry":{"@id":"https://schema.org/addressCountry"},"exportDate":{"@id":"https://vocabulary.uncefact.org/departureRelatedDateTime"},"immediateTransportationNumber":{"@id":"https://schema.org/identifier"},"immediateTransportationDate":{"@id":"https://vocabulary.uncefact.org/actualOccurrenceDateTime"},"missingDocuments":{"@id":"https://w3id.org/traceability#missingDocuments"},"portOfLoading":{"@id":"https://schema.org/Place"},"portOfUnlading":{"@id":"https://schema.org/Place"},"locationOfGoods":{"@id":"https://schema.org/Place"},"consigneeNumber":{"@id":"https://schema.org/identifier"},"importerNumber":{"@id":"https://w3id.org/traceability#importerOfRecord"},"referenceNumber":{"@id":"https://w3id.org/traceability#referenceNumber"},"ultimateConsignee":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"importerOfRecord":{"@id":"https://vocabulary.uncefact.org/importerParty"},"descriptionOfMerchandise":{"@id":"https://w3id.org/traceability#descriptionOfMerchandise"},"otherFeeSummary":{"@id":"https://w3id.org/traceability#otherFeeSummary"},"totalEnteredValue":{"@id":"https://schema.org/MonetaryAmount"},"declarationOfImporter":{"@id":"https://w3id.org/traceability#declarationOfImporter"},"duty":{"@id":"https://schema.org/MonetaryAmount"},"tax":{"@id":"https://schema.org/MonetaryAmount"},"other":{"@id":"https://schema.org/MonetaryAmount"},"total":{"@id":"https://schema.org/MonetaryAmount"}}},"CBPEntrySummaryLineItem":{"@id":"https://w3id.org/traceability#CBPEntrySummaryLineItem","@context":{"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"adCvdNumber":{"@id":"https://w3id.org/traceability#adCvdNumber"},"categoryNumber":{"@id":"https://w3id.org/traceability#categoryNumber"},"otherFees":{"@id":"https://w3id.org/traceability#otherFees"},"grossWeight":{"@id":"https://schema.org/weight"},"manifestQuantity":{"@id":"https://w3id.org/traceability#manifestQuantity"},"netQuantity":{"@id":"https://schema.org/Quantity"},"enteredValue":{"@id":"https://schema.org/MonetaryAmount"},"charges":{"@id":"https://schema.org/MonetaryAmount"},"relationship":{"@id":"https://schema.org/MonetaryAmount"},"htsRate":{"@id":"https://w3id.org/traceability#htsRate"},"adCvdRate":{"@id":"https://w3id.org/traceability#adCvdRate"},"ircRate":{"@id":"https://w3id.org/traceability#ircRate"},"visaNumber":{"@id":"https://w3id.org/traceability#visaNumber"},"agriculturalLicenseNumber":{"@id":"https://w3id.org/traceability#agriculturalLicenseNumber"},"dutyAndIRTax":{"@id":"https://w3id.org/traceability#dutyAndIRTax"}}},"CBPEntryType86":{"@id":"https://w3id.org/traceability#CBPEntryType86","@context":{"bolNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"entryNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AQM"},"portOfEntry":{"@id":"https://schema.org/Place"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"quantity":{"@id":"https://w3id.org/traceability#quantity"},"fairRetailValue":{"@id":"https://schema.org/MonetaryAmount"},"htsusNumber":{"@id":"https://w3id.org/traceability#commodityCode"},"importerOfRecord":{"@id":"https://w3id.org/traceability#importerOfRecord"}}},"CBPImporterOfRecord":{"@id":"https://w3id.org/traceability#CBPImporterOfRecord","@context":{"number":{"@id":"https://w3id.org/traceability#CBPImporterOfRecordNumber"},"identifierType":{"@id":"https://w3id.org/traceability#CBPImporterOfRecordType"}}},"CTPAT":{"@id":"https://w3id.org/traceability#CTPAT","@context":{"sviNumber":{"@id":"https://w3id.org/traceability#sviNumber"},"ctpatAccountNumber":{"@id":"https://w3id.org/traceability#ctpatAccountNumber"},"tradeSector":{"@id":"https://schema.org/industry"},"tier":{"@id":"https://w3id.org/traceability#ctpatTier"},"dateOfLastValidation":{"@id":"https://schema.org/endDate"},"issuingCountry":{"@id":"https://schema.org/addressCountry"}}},"CTPATEIPApplication":{"@id":"https://w3id.org/traceability#CTPAT","@context":{"applicant":{"@id":"https://w3id.org/traceability#applicant"},"applicantType":{"@id":"https://w3id.org/traceability#applicantType"}}},"CTPATMember":{"@id":"https://schema.org/Organization","@context":{"name":{"@id":"https://schema.org/name"},"scac":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AAZ"},"iataCarrierCode":{"@id":"https://onerecord.iata.org/cargo/Company#airlineCode"},"importerOfRecord":{"@id":"https://w3id.org/traceability#importerOfRecord"},"faxNumber":{"@id":"https://schema.org/faxNumber"},"url":{"@id":"https://schema.org/url"},"logo":{"@id":"https://schema.org/logo"}}},"CargoItem":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/cargoItem","@context":{"cargoLineItems":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/cargoLineItem"},"carrierBookingReference":{"@id":"https://vocabulary.uncefact.org/carrierAssignedId"},"weight":{"@id":"https://schema.org/weight"},"volume":{"@id":"https://vocabulary.uncefact.org/grossVolumeMeasure"},"weightUnit":{"@id":"https://schema.org/unitCode"},"volumeUnit":{"@id":"https://schema.org/unitCode"},"numberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"packageCode":{"@id":"https://vocabulary.uncefact.org/packageTypeCode"}}},"CargoLineItem":{"@id":"https://w3id.org/traceability#CargoLineItem","@context":{"cargoLineItemID":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/cargoLineItemID"},"shippingMarks":{"@id":"https://vocabulary.uncefact.org/physicalShippingMarks"},"descriptionOfGoods":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/descriptionOfGoods"},"HSCode":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/HSCode"}}},"ChargeDeclaration":{"@id":"https://w3id.org/traceability#ChargeDeclaration","@context":{"weightCharge":{"@id":"https://schema.org/price"},"valuationCharge":{"@id":"https://schema.org/price"},"tax":{"@id":"https://schema.org/price"},"dueAgent":{"@id":"https://schema.org/price"},"dueCarrier":{"@id":"https://schema.org/price"},"total":{"@id":"https://schema.org/totalPrice"}}},"ChemicalProperty":{"@id":"https://w3id.org/traceability#ChemicalProperty","@context":{"identifier":{"@id":"https://schema.org/identifier"},"name":{"@id":"https://schema.org/name"},"description":{"@id":"https://schema.org/description"},"formula":{"@id":"https://purl.obolibrary.org/obo/chebi/formula"},"inchi":{"@id":"https://purl.obolibrary.org/obo/chebi/inchi"},"inchikey":{"@id":"https://purl.obolibrary.org/obo/chebi/inchikey"}}},"CommissionEvent":{"@id":"https://w3id.org/traceability#CommissionEvent","@context":{"place":{"@id":"https://schema.org/Place"},"organization":{"@id":"https://w3id.org/traceability#Organization"},"products":{"@id":"https://schema.org/Product"}}},"Commodity":{"@id":"https://w3id.org/traceability#Commodity","@context":{"commodityCode":{"@id":"https://w3id.org/traceability#commodityCode"},"commodityCodeType":{"@id":"https://w3id.org/traceability#commodityCodeType"},"description":{"@id":"https://schema.org/description"}}},"ConsignmentItem":{"@id":"https://vocabulary.uncefact.org/ConsignmentItem","@context":{"marksAndNumbers":{"@id":"https://vocabulary.uncefact.org/ShippingMarks"},"descriptionOfPackagesAndGoods":{"@id":"https://vocabulary.uncefact.org/natureIdentificationCargo"},"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"packageQuantity":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"netWeight":{"@id":"https://schema.org/weight"},"grossWeight":{"@id":"https://schema.org/weight"},"grossVolume":{"@id":"https://vocabulary.uncefact.org/grossVolumeMeasure"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"manufacturer":{"@id":"https://vocabulary.uncefact.org/manufacturerParty"},"transportPackages":{"@id":"https://vocabulary.uncefact.org/transportPackage"}}},"ConsignmentRatingDetail":{"@id":"https://w3id.org/traceability#ConsignmentRatingDetail","@context":{"numberOfPieces":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"grossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"grossWeightUnit":{"@id":"https://schema.org/unitCode"},"rateClass":{"@id":"https://vocabulary.uncefact.org/freightChargeTariffClassCode"},"commodityItemNumber":{"@id":"https://vocabulary.uncefact.org/discountIndicator"},"chargeableWeight":{"@id":"https://schema.org/weight"},"rateCharge":{"@id":"https://schema.org/price"},"total":{"@id":"https://schema.org/totalPrice"},"natureAndVolumeOfGoods":{"@id":"https://schema.org/description"}}},"ContactPoint":{"@id":"https://schema.org/ContactPoint","@context":{"name":{"@id":"https://schema.org/name"},"place":{"@id":"https://w3id.org/traceability#place"},"email":{"@id":"https://schema.org/email"},"phoneNumber":{"@id":"https://schema.org/telephone"},"jobTitle":{"@id":"https://schema.org/jobTitle"}}},"Customer":{"@id":"https://w3id.org/traceability#Customer","@context":{"name":{"@id":"https://schema.org/name"},"address":{"@id":"https://schema.org/PostalAddress"},"telephone":{"@id":"https://schema.org/telephone"},"email":{"@id":"https://schema.org/email"}}},"DCSAShippingInstruction":{"@id":"https://vocabulary.uncefact.org/TransportInstructions","@context":{"shippingInstructionID":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#TIN"},"transportDocumentType":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/transportDocumentType"},"preCarriageUnderShippersResponsibility":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/preCarriageUnderShippersResponsibility"},"invoicePayableAt":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/invoicePayableAt"},"carrierBookingReference":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BN"},"cargoItems":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"utilizedTransportEquipments":{"@id":"https://vocabulary.uncefact.org/utilizedTransportEquipment"},"shipmentLocations":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DOCUMENTATION_DOMAIN/1.0.0#/components/schemas/shipmentLocation"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"invoicePayerShipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"invoicePayerConsignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"firstNotify":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"secondNotify":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"otherNotify":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"shippersFreightForwarder":{"@id":"https://vocabulary.uncefact.org/freightForwarderParty"},"consigneesFreightForwarder":{"@id":"https://vocabulary.uncefact.org/freightForwarderParty"}}},"DCSATransportDocument":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/transportDocument","@context":{"transportDocumentReference":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"placeOfIssue":{"@id":"https://vocabulary.uncefact.org/issueLocation"},"issueDate":{"@id":"https://vocabulary.uncefact.org/issueDateTime"},"shippedOnBoardDate":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/shippedOnBoardDate"},"receivedForShipmentDate":{"@id":"https://vocabulary.uncefact.org/availabilityDueDateTime"},"termsAndConditions":{"@id":"https://vocabulary.uncefact.org/termsAndConditionsDescription"},"issuerCode":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AAZ"},"issuerCodeListProvider":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/issuerCodeListProvider"},"declaredValueCurrency":{"@id":"https://schema.org/currency"},"cargoMovementTypeAtOrigin":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/cargoMovementTypeAtOrigin"},"cargoMovementTypeAtDestination":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/cargoMovementTypeAtDestination"},"receiptDeliveryTypeAtOrigin":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/receiptDeliveryTypeAtOrigin"},"receiptDeliveryTypeAtDestination":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/receiptDeliveryTypeAtDestination"},"serviceContractReference":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/serviceContractReference"},"shippingInstruction":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/shippingInstruction"},"charges":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/charges"},"clauses":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/clauses"},"transports":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/transports"}}},"DeMinimisShipment":{"@id":"https://w3id.org/traceability#DeMinimisShipment","@context":{"originatorCode":{"@id":"https://w3id.org/traceability#originatorCode"},"participantFilerType":{"@id":"https://w3id.org/traceability#participantFilerType"},"shipmentTrackingNumber":{"@id":"https://vocabulary.uncefact.org/MarkingInstructionCodeList#37"},"houseBillOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BH"},"masterBillOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"modeOfTransportation":{"@id":"https://vocabulary.uncefact.org/mode"},"shipmentInitiator":{"@id":"https://w3id.org/traceability#shipmentInitiator"},"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"buyer":{"@id":"https://vocabulary.uncefact.org/buyerParty"},"finalDeliverTo":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"enhancedProductDescription":{"@id":"https://w3id.org/traceability#enhancedProductDescription"},"shipmentSecurityScan":{"@id":"https://w3id.org/traceability#shipmentSecurityScan"},"knownCarrierCustomerFlag":{"@id":"https://w3id.org/traceability#knownCarrierCustomerFlag"},"knownMarketplaceSellerFlag":{"@id":"https://w3id.org/traceability#knownMarketplaceSellerFlag"},"marketplaceSellerAccountNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#ADE"},"productPicture":{"@id":"https://schema.org/image"},"listedPriceOnMarketplace":{"@id":"https://schema.org/price"}}},"DeliverySchedule":{"@id":"https://w3id.org/traceability#DeliverySchedule","@context":{"transporter":{"@id":"https://schema.org/agent"},"batchNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BT"},"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"place":{"@id":"https://schema.org/toLocation"},"consignor":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"scheduledVolume":{"@id":"https://w3id.org/traceability#QuantitativeValue"},"scheduledDate":{"@id":"https://schema.org/departureTime"},"injectionVolume":{"@id":"https://w3id.org/traceability#QuantitativeValue"},"injectionDate":{"@id":"https://schema.org/departureTime"},"injectionEndDate":{"@id":"https://schema.org/departureTime"},"deliveryDate":{"@id":"https://schema.org/arrivalTime"},"deliveryEndDate":{"@id":"https://schema.org/arrivalTime"},"portOfEntry":{"@id":"https://w3id.org/traceability#Place"},"portOfDestination":{"@id":"https://w3id.org/traceability#Place"},"portOfArrival":{"@id":"https://w3id.org/traceability#Place"},"addressCountry":{"@id":"https://schema.org/addressCountry"}}},"DeliveryStatement":{"@id":"https://w3id.org/traceability#DeliveryStatement","@context":{"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"deliveredDate":{"@id":"https://schema.org/endDate"},"deliveredVolume":{"@id":"https://schema.org/MeasuredValue"},"observation":{"@id":"https://w3id.org/traceability#observation"}}},"EDDShape":{"@id":"https://w3id.org/traceability#EDDShape","@context":{"meta":{"@id":"https://w3id.org/traceability#EDDShapeMeta"},"reporter":{"@id":"https://schema.org/name"},"scientificName":{"@id":"http://rs.tdwg.org/dwc/terms/scientificName"},"commonName":{"@id":"http://rs.tdwg.org/dwc/terms/vernacularName"},"subjectNativity":{"@id":"http://rs.tdwg.org/dwc/terms/establishmentMeans"},"occurrenceStatus":{"@id":"http://rs.tdwg.org/dwc/iri/measurementValue"},"status":{"@id":"https://schema.org/description"},"observationDate":{"@id":"http://rs.tdwg.org/dwc/terms/eventDate"},"dateEntered":{"@id":"http://rs.tdwg.org/dwc/terms/eventDate"},"dateUpdated":{"@id":"http://rs.tdwg.org/dwc/terms/eventDate"},"location":{"@id":"https://schema.org/location"},"mapResources":{"@id":"https://w3id.org/traceability#MapResource"},"naDatum":{"@id":"http://rs.tdwg.org/dwc/terms/geodeticDatum"},"coordinateUncertainty":{"@id":"http://rs.tdwg.org/dwc/terms/coordinateUncertaintyInMeters"},"centroidType":{"@id":"https://schema.org/polygon"},"abundance":{"@id":"https://schema.org/description"},"infestedAreaAcres":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"grossAreaAcres":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"percentCover":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"density":{"@id":"http://rs.tdwg.org/dwc/terms/measurementRemarks"},"quantity":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"quantityUnits":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantityType"},"approximateQuantity":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"incidence":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"severity":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"managementStatus":{"@id":"https://schema.org/status"},"habitat":{"@id":"http://rs.tdwg.org/dwc/terms/habitat"},"siteName":{"@id":"http://rs.tdwg.org/dwc/terms/locationID"},"recordBasis":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"},"surveyor":{"@id":"http://rs.tdwg.org/dwc/terms/recordedBy"},"dateUncertaintyDays":{"@id":"http://rs.tdwg.org/dwc/terms/measurementAccuracy"},"visitType":{"@id":"https://schema.org/description"},"persistentId":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceID"},"uuid":{"@id":"http://rs.tdwg.org/dwc/terms/dateIdentified"},"reviewer":{"@id":"http://rs.tdwg.org/dwc/terms/identifiedBy"},"verificationMethod":{"@id":"http://rs.tdwg.org/dwc/terms/identificationRemarks"},"verified":{"@id":"http://rs.tdwg.org/dwc/terms/identificationVerificationStatus"},"identificationCredibility":{"@id":"http://rs.tdwg.org/dwc/terms/identificationRemarks"}}},"EDDShapeMeta":{"@id":"https://w3id.org/traceability#EDDShapeMeta","@context":{"recordOwner":{"@id":"https://schema.org/name"},"shapeType":{"@id":"https://schema.org/description"},"method":{"@id":"http://rs.tdwg.org/dwc/terms/locationRemarks"},"numberCollected":{"@id":"http://rs.tdwg.org/dwc/terms/measurementRemarks"},"populationStatus":{"@id":"http://rs.tdwg.org/dwc/terms/degreeOfEstablishment"},"smallestOrganismSampled":{"@id":"https://schema.org/size"},"largestOrganismSampled":{"@id":"https://schema.org/size"},"hostScientificName":{"@id":"http://rs.tdwg.org/dwc/terms/scientificName"},"hostName":{"@id":"http://rs.tdwg.org/dwc/terms/vernacularName"},"hostPhenology":{"@id":"http://rs.tdwg.org/dwc/terms/lifeStage"},"hostDamage":{"@id":"https://schema.org/description"},"localOwnership":{"@id":"http://rs.tdwg.org/dwc/terms/locality"},"museum":{"@id":"https://schema.org/name"},"museumRecord":{"@id":"http://rs.tdwg.org/dwc/terms/catalogNumber"},"voucher":{"@id":"http://rs.tdwg.org/dwc/terms/disposition"},"observationId":{"@id":"http://rs.tdwg.org/dwc/terms/identifiedBy"},"collectionTimeMinutes":{"@id":"https://schema.org/activityDuration"},"originalRecordId":{"@id":"http://rs.tdwg.org/dwc/terms/recordNumber"},"originalReportedName":{"@id":"http://rs.tdwg.org/dwc/terms/verbatimIdentification"},"recordSourceType":{"@id":"http://rs.tdwg.org/dwc/terms/measurementRemarks"},"dataCollectionMethod":{"@id":"http://rs.tdwg.org/dwc/terms/measurementMethod"},"trapType":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"},"numberTraps":{"@id":"http://rs.tdwg.org/dwc/terms/samplingEffort"},"targetName":{"@id":"http://rs.tdwg.org/dwc/terms/organismName"},"targetCount":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"targetRange":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"phenology":{"@id":"http://rs.tdwg.org/dwc/terms/organismRemarks"},"lifeStatus":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"sex":{"@id":"http://rs.tdwg.org/dwc/terms/sex"},"waterBodyName":{"@id":"http://rs.tdwg.org/dwc/terms/waterBody"},"waterBodyType":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"substrate":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"treatmentArea":{"@id":"http://rs.tdwg.org/dwc/iri/measurementValue"},"plantsTreated":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"treatmentComments":{"@id":"http://rs.tdwg.org/dwc/terms/eventRemarks"},"reference":{"@id":"http://rs.tdwg.org/dwc/terms/associatedReferences"},"locality":{"@id":"http://rs.tdwg.org/dwc/terms/locationRemarks"},"comments":{"@id":"http://rs.tdwg.org/dwc/terms/eventRemarks"},"publicReviewerComments":{"@id":"http://rs.tdwg.org/dwc/terms/identificationRemarks"}}},"Entity":{"@id":"https://w3id.org/traceability#Entity","@context":{"entityType":{"@id":"https://schema.org/additionalType"},"name":{"@id":"https://schema.org/name"},"legalName":{"@id":"https://schema.org/legalName"},"url":{"@id":"https://schema.org/url"},"taxId":{"@id":"https://schema.org/taxID"},"address":{"@id":"https://schema.org/PostalAddress"},"email":{"@id":"https://schema.org/email"},"phoneNumber":{"@id":"https://schema.org/telephone"},"faxNumber":{"@id":"https://schema.org/faxNumber"}}},"EntryNumber":{"@id":"https://w3id.org/traceability#EntryNumber","@context":{"entryNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AQM"}}},"Event":{"@id":"https://w3id.org/traceability#EventCredential","@context":{}},"ExternalResource":{"@id":"https://w3id.org/traceability#ExternalResource","@context":{"uri":{"@id":"https://schema.org/contentUrl"},"hash":{"@id":"https://schema.org/sha256"}}},"FSMAAbstractKDE":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE","@context":{"name":{"@id":"https://schema.org/propertyID"},"value":{"@id":"https://schema.org/value"}}},"FSMACreatingCTE":{"@id":"https://w3id.org/traceability#FSMACreatingCTE","@context":{"food":{"@id":"https://w3id.org/traceability#FSMAProduct"},"location":{"@id":"https://schema.org/location"},"dateCompleted":{"@id":"https://vocabulary.uncefact.org/creationDateTime"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAFirstReceiverData":{"@id":"https://w3id.org/traceability#FSMAFirstReceiverData","@context":{"traceabilityLot":{"@id":"https://w3id.org/traceability#FSMATraceabilityLot"},"originatorLocation":{"@id":"https://schema.org/location"},"harvestDate":{"@id":"https://vocabulary.uncefact.org/harvestDateTime"},"coolingLocation":{"@id":"https://schema.org/location"},"coolingDate":{"@id":"https://vocabulary.uncefact.org/actualOccurrenceDateTime"},"packingLocation":{"@id":"https://schema.org/location"},"packingDate":{"@id":"https://www.gs1.org/voc/packagingDate"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAGrowingCTE":{"@id":"https://w3id.org/traceability#FSMAGrowingCTE","@context":{"traceabilityLot":{"@id":"https://w3id.org/traceability#FSMATraceabilityLot"},"growingAreaCoordinates":{"@id":"https://w3id.org/traceability#GeoCoordinates"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAProduct":{"@id":"https://w3id.org/traceability#FSMAProduct","@context":{"traceabilityLot":{"@id":"https://w3id.org/traceability#FSMATraceabilityLot"},"quantity":{"@id":"https://vocabulary.uncefact.org/applicableQuantity"},"unit":{"@id":"https://vocabulary.uncefact.org/applicableQuantityUnitTypeCode"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAReceivingCTE":{"@id":"https://w3id.org/traceability#FSMAReceivingCTE","@context":{"shipment":{"@id":"https://w3id.org/traceability#FSMAShipment"},"dateReceived":{"@id":"https://vocabulary.uncefact.org/receivedDateTime"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAShipment":{"@id":"https://w3id.org/traceability#FSMAShipment","@context":{"product":{"@id":"https://w3id.org/traceability#FSMAProduct"},"from":{"@id":"https://schema.org/fromLocation"},"to":{"@id":"https://schema.org/toLocation"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAShippingCTE":{"@id":"https://w3id.org/traceability#FSMAShippingCTE","@context":{"shipment":{"@id":"https://w3id.org/traceability#FSMAShipment"},"dateShipped":{"@id":"https://schema.org/startDate"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMATraceabilityLot":{"@id":"https://w3id.org/traceability#FSMATraceabilityLot","@context":{"lotCode":{"@id":"https://www.gs1.org/voc/hasBatchLotNumber"},"lotCodeAssignmentMethod":{"@id":"https://schema.org/description"},"lotCodeGeneratorLocation":{"@id":"https://schema.org/location"},"lotCodeGeneratorPOC":{"@id":"https://schema.org/contactPoint"},"lotType":{"@id":"https://schema.org/additionalType"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMATransformingCTE":{"@id":"https://w3id.org/traceability#FSMATransformingCTE","@context":{"foodUsed":{"@id":"https://w3id.org/traceability#FSMAProduct"},"foodProduced":{"@id":"https://w3id.org/traceability#FSMAProduct"},"locationTransformed":{"@id":"https://schema.org/location"},"dateCompleted":{"@id":"https://vocabulary.uncefact.org/occurrenceDateTime"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FoodDefenseDeficiency":{"@id":"https://w3id.org/traceability#FoodDefenseDeficiency","@context":{"number":{"@id":"https://schema.org/identifier"},"description":{"@id":"https://schema.org/description"},"proposedCorrectionDate":{"@id":"https://vocabulary.uncefact.org/occurrenceDateTime"},"dateCorrected":{"@id":"https://vocabulary.uncefact.org/occurrenceDateTime"}}},"FoodDefenseInspection":{"@id":"https://w3id.org/traceability#FoodDefenseInspection","@context":{"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"questions":{"@id":"https://w3id.org/traceability#FoodDefenseQuestion"},"deficiencies":{"@id":"https://w3id.org/traceability#FoodDefenseDeficiency"}}},"FoodDefenseQuestion":{"@id":"https://w3id.org/traceability#FoodDefenseQuestion","@context":{"number":{"@id":"https://schema.org/identifier"},"facility":{"@id":"https://schema.org/location"},"response":{"@id":"https://vocabulary.uncefact.org/assertion"},"rating":{"@id":"https://vocabulary.uncefact.org/assertion"}}},"FoodGradeInspection":{"@id":"https://w3id.org/traceability#FoodGradeInspection","@context":{"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"loadingStatus":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"carrierTypeName":{"@id":"https://vocabulary.uncefact.org/utilizedTransportEquipment"},"refrigerationUnitOn":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"doorsOpen":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"lots":{"@id":"https://w3id.org/traceability#FoodGradeInspectionLot"},"generalRemarks":{"@id":"https://vocabulary.uncefact.org/remarks"},"estimatedCharges":{"@id":"https://vocabulary.uncefact.org/applicableServiceCharge"}}},"FoodGradeInspectionDefect":{"@id":"https://w3id.org/traceability#FoodGradeInspectionDefect","@context":{"offsizeDefect":{"@id":"https://vocabulary.uncefact.org/damageRemarks"},"averageDefects":{"@id":"https://qudt.org/vocab/unit/PERCENT"},"damage":{"@id":"https://qudt.org/vocab/unit/PERCENT"},"seriousDamage":{"@id":"https://qudt.org/vocab/unit/PERCENT"},"verySeriousDamage":{"@id":"https://qudt.org/vocab/unit/PERCENT"}}},"FoodGradeInspectionLot":{"@id":"https://w3id.org/traceability#FoodGradeInspectionLot","@context":{"agricultureProduct":{"@id":"https://w3id.org/traceability#AgricultureProduct"},"lotIdentifier":{"@id":"https://www.gs1.org/voc/hasBatchLotNumber"},"numberContainers":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"countInspected":{"@id":"https://vocabulary.uncefact.org/remark"},"brandMarkings":{"@id":"https://vocabulary.uncefact.org/brandName"},"samples":{"@id":"https://w3id.org/traceability#FoodGradeInspectionSample"},"defects":{"@id":"https://w3id.org/traceability#FoodGradeInspectionDefect"},"grade":{"@id":"https://w3id.org/traceability#FoodGradeInspectionResult"},"remarks":{"@id":"https://vocabulary.uncefact.org/remark"},"minTemperature":{"@id":"https://schema.org/measuredValue"},"maxTemperature":{"@id":"https://schema.org/measuredValue"}}},"FoodGradeInspectionResult":{"@id":"https://w3id.org/traceability#FoodGradeInspectionResult","@context":{"gradeInspected":{"@id":"https://vocabulary.uncefact.org/standard"},"requirementsMet":{"@id":"https://vocabulary.uncefact.org/assertion"},"details":{"@id":"https://vocabulary.uncefact.org/additionalInformationNote"}}},"FoodGradeInspectionSample":{"@id":"https://w3id.org/traceability#FoodGradeInspectionSample","@context":{"sampleSizeValue":{"@id":"https://vocabulary.uncefact.org/applicableQuantity"},"sampleSizeUnits":{"@id":"https://vocabulary.uncefact.org/applicableQuantityUnitTypeCode"},"sampleProperties":{"@id":"https://w3id.org/traceability#FoodGradeInspectionSampleProperty"}}},"FoodGradeInspectionSampleProperty":{"@id":"https://w3id.org/traceability#FoodGradeInspectionSampleProperty","@context":{"propertyName":{"@id":"https://vocabulary.uncefact.org/parameterValue"},"propertyValue":{"@id":"https://vocabulary.uncefact.org/measuredValue"}}},"ForeignChargeDeclaration":{"@id":"https://w3id.org/traceability#ForeignChargeDeclaration","@context":{"foreignCurrencyConvertionRate":{"@id":"https://schema.org/currentExchangeRate"},"foreignChargesCurrency":{"@id":"https://schema.org/currency"},"foreignCharges":{"@id":"https://schema.org/price"}}},"FreightManifest":{"@id":"https://vocabulary.uncefact.org/manifestRelatedDocument","@context":{"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"carrierCode":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AAZ"},"transportMeans":{"@id":"https://vocabulary.uncefact.org/transportMeans"},"transportMeansId":{"@id":"https://schema.org/identifier"},"voyage":{"@id":"https://vocabulary.uncefact.org/TransportMovement"},"billsOfLading":{"@id":"https://vocabulary.uncefact.org/manifestRelatedDocument"}}},"GAPCorrectiveActionReport":{"@id":"https://w3id.org/traceability#GAPCorrectiveActionReport","@context":{"nonconformityDescription":{"@id":"https://schema.org/description"},"notifiedCompanyStaff":{"@id":"https://schema.org/actionStatus"},"correctiveAction":{"@id":"https://schema.org/potentialAction"},"affirmingRepresentative":{"@id":"https://vocabulary.uncefact.org/associatedParty"}}},"GAPInspection":{"@id":"https://w3id.org/traceability#GAPInspection","@context":{"GAPPlus":{"@id":"https://vocabulary.uncefact.org/documentTypeCode"},"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"usesLogo":{"@id":"https://vocabulary.uncefact.org/assertion"},"subjectToRule":{"@id":"https://vocabulary.uncefact.org/regulationConformityId"},"operationDescription":{"@id":"https://schema.org/description"},"harvestCompany":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"otherContractors":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"commoditiesCovered":{"@id":"https://schema.org/ItemList"},"commoditiesProduced":{"@id":"https://schema.org/ItemList"},"totalArea":{"@id":"https://www.gs1.org/voc/grossArea"},"fieldOpsHarvestingScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"postHarvestOpsScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"logoUseScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"tomatoProdHarvestingScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"tomatoPackinghouseScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"tomatoGreenhouseScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"tomatoPackingDistributionScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"personsInterviewed":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"requestedBy":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"distributeTo":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"additionalComments":{"@id":"https://vocabulary.uncefact.org/remarks"},"reviewingOfficial":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"dateReviewed":{"@id":"https://www.gs1.org/voc/certificationAuditDate"},"meetsCriteria":{"@id":"https://www.gs1.org/voc/certificationStatus"},"requirementResults":{"@id":"https://w3id.org/traceability#GAPRequirementResult"}}},"GAPLocationCertification":{"@id":"https://w3id.org/traceability#GAPLocationCertification","@context":{"location":{"@id":"https://www.gs1.org/voc/certificationSubject"},"gapInspection":{"@id":"https://www.gs1.org/voc/certification"},"isCertified":{"@id":"https://www.gs1.org/voc/certificationStatus"}}},"GAPRequirementResult":{"@id":"https://w3id.org/traceability#GAPRequirementResult","@context":{"requirementNumber":{"@id":"https://vocabulary.uncefact.org/standard"},"resultCode":{"@id":"https://vocabulary.uncefact.org/assertionCode"},"auditorComments":{"@id":"https://vocabulary.uncefact.org/remarks"},"correctiveActionReport":{"@id":"https://w3id.org/traceability#GAPCorrectiveActionReport"}}},"GeoCoordinates":{"@id":"https://schema.org/GeoCoordinates","@context":{"latitude":{"@id":"https://schema.org/latitude"},"longitude":{"@id":"https://schema.org/longitude"}}},"HouseBillOfLading":{"@id":"https://w3id.org/traceability#HouseBillOfLading","@context":{"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"bookingNumber":{"@id":"https://vocabulary.uncefact.org/carrierAssignedId"},"shippersReferences":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#FF"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"notifyParty":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"preCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/preCarriageTransportMovement"},"mainCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/mainCarriageTransportMovement"},"onCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/onCarriageTransportMovement"},"placeOfReceipt":{"@id":"https://schema.org/Place"},"portOfLoading":{"@id":"https://vocabulary.uncefact.org/transshipmentLocation"},"placeOfDelivery":{"@id":"https://schema.org/Place"},"portOfDischarge":{"@id":"https://vocabulary.uncefact.org/unloadingLocation"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"transportEquipmentQuantity":{"@id":"https://vocabulary.uncefact.org/transportEquipmentQuantity"},"includedConsignmentItems":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"freightAndCharges":{"@id":"https://vocabulary.uncefact.org/applicableServiceCharge"},"declaredValue":{"@id":"https://vocabulary.uncefact.org/declaredValueForCarriageAmount"},"termsAndConditions":{"@id":"https://vocabulary.uncefact.org/termsAndConditionsDescription"}}},"IATAAirWaybill":{"@id":"https://w3id.org/traceability#IATAAirWaybill","@context":{"airWaybillNumber":{"@id":"https://schema.org/orderNumber"},"waybillType":{"@id":"https://schema.org/DigitalDocument"},"airlineCodeNumber":{"@id":"https://onerecord.iata.org/cargo/Company#airlineCode"},"serialNumber":{"@id":"https://schema.org/serialNumber"},"airportOfDeparture":{"@id":"https://onerecord.iata.org/cargo/Location#code"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"conditionsOfContract":{"@id":"https://schema.org/termsOfService"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"shippersAccountNumber":{"@id":"https://schema.org/accountId"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"consigneesAccountNumber":{"@id":"https://schema.org/accountId"},"issuingCarrierAgent":{"@id":"https://vocabulary.uncefact.org/carrierAgentParty"},"agentIATACode":{"@id":"https://onerecord.iata.org/cargo/Company#iataCargoAgentCode"},"agentAccountNumber":{"@id":"https://schema.org/accountId"},"requestedRouting":{"@id":"https://schema.org/Trip"},"destinationAirport":{"@id":"https://onerecord.iata.org/cargo/Company#airlineCode"},"requestedFlight":{"@id":"https://schema.org/Flight"},"requestedDate":{"@id":"https://w3id.org/traceability#requestDate"},"accountingInformation":{"@id":"https://vocabulary.uncefact.org/typeCode"},"currency":{"@id":"https://schema.org/currency"},"chargeCodes":{"@id":"https://vocabulary.uncefact.org/chargeCategoryCode"},"weightValuationChargesType":{"@id":"https://vocabulary.uncefact.org/chargeCategoryCode"},"otherChargesType":{"@id":"https://vocabulary.uncefact.org/chargeCategoryCode"},"declaredValueForCarriage":{"@id":"https://vocabulary.uncefact.org/declaredValueForCarriageAmount"},"declaredValueForCustoms":{"@id":"https://vocabulary.uncefact.org/customsValueSpecifiedAmount"},"amountOfInsurance":{"@id":"https://vocabulary.uncefact.org/insuranceValueAmount"},"insuranceClauses":{"@id":"https://vocabulary.uncefact.org/contractualClause"},"handlingInformation":{"@id":"https://vocabulary.uncefact.org/handlingInstructions"},"specialCustomsInformation":{"@id":"https://vocabulary.uncefact.org/SpecifiedDeclaration"},"consignmentRatingDetails":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"totalNumberOfPieces":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"totalGrossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"totalCharge":{"@id":"https://schema.org/totalPrice"},"otherCharges":{"@id":"https://schema.org/price"},"prepaidChargeDeclaration":{"@id":"https://w3id.org/traceability#PrepaidChargeDeclaration"},"prepaidTotal":{"@id":"https://schema.org/totalPrice"},"collectChargeDeclaration":{"@id":"https://w3id.org/traceability#CollectChargeDeclaration"},"destinationCollectChargeDeclaration":{"@id":"https://w3id.org/traceability#DestinationCollectChargeDeclaration"},"collectTotal":{"@id":"https://schema.org/totalPrice"},"shippersCertificationBox":{"@id":"https://vocabulary.uncefact.org/CertificateTypeCodeList#2"},"executedOn":{"@id":"https://w3id.org/traceability#executionTime"},"executedAt":{"@id":"https://schema.org/Place"}}},"ImporterSecurityFiling":{"@id":"https://w3id.org/traceability#ImporterSecurityFiling","@context":{"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"buyer":{"@id":"https://vocabulary.uncefact.org/buyerParty"},"importer":{"@id":"https://vocabulary.uncefact.org/importerParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"shipToParty":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"filingItems":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"containerStuffingLocation":{"@id":"https://w3id.org/traceability#containerStuffingLocation"},"consolidator":{"@id":"https://vocabulary.uncefact.org/consolidatorParty"}}},"Inbond":{"@id":"https://w3id.org/traceability#Inbond","@context":{"product":{"@id":"https://www.gs1.org/voc/Product"},"shipment":{"@id":"https://schema.org/ParcelDelivery"},"inBondNumber":{"@id":"https://schema.org/identifier"},"entryId":{"@id":"https://schema.org/identifier"},"ftzNo":{"@id":"https://schema.org/identifier"},"inBondType":{"@id":"https://schema.org/identifier"},"portOfEntry":{"@id":"https://www.gs1.org/voc/Place"},"portOfDestination":{"@id":"https://www.gs1.org/voc/Place"},"portOfArrival":{"@id":"https://www.gs1.org/voc/Place"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"irsNumber":{"@id":"https://schema.org/identifier"},"recipient":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"billOfLadingNumber":{"@id":"https://schema.org/identifier"},"expectedDeliveryDate":{"@id":"https://schema.org/endDate"},"valuePerItem":{"@id":"https://schema.org/PriceSpecification"},"totalOrderValue":{"@id":"https://schema.org/PriceSpecification"}}},"InspectionReport":{"@id":"https://w3id.org/traceability#InspectionReport","@context":{"comment":{"@id":"https://schema.org/comment"},"inspectors":{"@id":"https://schema.org/Person"},"place":{"@id":"https://schema.org/Place"},"chemicalObservation":{"@id":"https://schema.org/ItemList"},"mechanicalObservation":{"@id":"https://schema.org/ItemList"}}},"Inspector":{"@id":"https://w3id.org/traceability#Inspector","@context":{"person":{"@id":"https://schema.org/Person"},"qualification":{"@id":"https://w3id.org/traceability#qualification"}}},"Instructions":{"@id":"https://vocabulary.uncefact.org/TransportInstructions","@context":{"description":{"@id":"https://schema.org/description"}}},"IntellectualPropertyRights":{"@id":"https://w3id.org/traceability#IntellectualPropertyRights","@context":{"intellectualPropertyRightsOwner":{"@id":"https://w3id.org/traceability#intellectualPropertyRightsOwner"},"intellectualPropertyRightsType":{"@id":"https://w3id.org/traceability#intellectualPropertyRightsType"},"intellectualPropertyRightsProduct":{"@id":"https://w3id.org/traceability#intellectualPropertyRightsProduct"}}},"IntellectualPropertyRightsAffirmation":{"@id":"https://w3id.org/traceability#IntellectualPropertyRightsAffirmation","@context":{"affirmingParty":{"@id":"https://w3id.org/traceability#affirmingParty"},"intellectualPropertyRightsType":{"@id":"https://w3id.org/traceability#intellectualPropertyRightsType"},"evidenceDocumentUrl":{"@id":"https://schema.org/url"}}},"IntellectualPropertyRightsLicense":{"@id":"https://w3id.org/traceability#IntellectualPropertyRightsLicense","@context":{}},"IntentToImport":{"@id":"https://w3id.org/traceability#IntentToImport","@context":{"exporter":{"@id":"https://vocabulary.uncefact.org/exporterParty"},"importer":{"@id":"https://vocabulary.uncefact.org/importerParty"},"product":{"@id":"https://www.gs1.org/voc/Product"},"declarationDate":{"@id":"https://schema.org/startDate"}}},"Invoice":{"@id":"https://schema.org/Invoice","@context":{"identifier":{"@id":"https://schema.org/identifier"},"invoiceNumber":{"@id":"https://vocabulary.uncefact.org/invoiceIssuerReference"},"customerReferenceNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#CR"},"referencesOrder":{"@id":"https://schema.org/referencesOrder"},"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"letterOfCreditNumber":{"@id":"https://vocabulary.uncefact.org/letterOfCreditDocument"},"portOfEntry":{"@id":"https://schema.org/Place"},"originCountry":{"@id":"https://vocabulary.uncefact.org/originCountry"},"destinationCountry":{"@id":"https://vocabulary.uncefact.org/destinationCountry"},"invoiceDate":{"@id":"https://vocabulary.uncefact.org/invoiceDateTime"},"purchaseDate":{"@id":"https://schema.org/paymentDueDate"},"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"buyer":{"@id":"https://vocabulary.uncefact.org/buyerParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"itemsShipped":{"@id":"https://schema.org/itemShipped"},"comments":{"@id":"https://schema.org/Comment"},"packageQuantity":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"totalWeight":{"@id":"https://schema.org/weight"},"termsOfDelivery":{"@id":"https://vocabulary.uncefact.org/specifiedDeliveryTerms"},"termsOfPayment":{"@id":"https://vocabulary.uncefact.org/specifiedPaymentTerms"},"termsOfSettlement":{"@id":"https://schema.org/currency"},"totalPaymentDue":{"@id":"https://schema.org/totalPaymentDue"},"discounts":{"@id":"https://schema.org/discount"},"deductions":{"@id":"https://vocabulary.uncefact.org/deductionAmount"},"tax":{"@id":"https://vocabulary.uncefact.org/taxTotalAmount"},"freightCost":{"@id":"https://schema.org/DeliveryChargeSpecification"},"insuranceCost":{"@id":"https://vocabulary.uncefact.org/insuranceChargeTotalAmount"}}},"LEIAddress":{"@id":"https://www.gleif.org/ontology/Base/PhysicalAddress","@context":{"language":{"@id":"https://schema.org/inLanguage"},"firstAddressLine":{"@id":"https://www.gleif.org/ontology/Base/hasFirstAddressLine"},"addressNumberWithinBuilding":{"@id":"https://www.gleif.org/ontology/Base/hasAddressNumberWithinBuilding"},"mailRouting":{"@id":"https://www.gleif.org/ontology/Base/hasMailRouting"},"city":{"@id":"https://www.gleif.org/ontology/Base/hasCity"},"region":{"@id":"https://schema.org/addressRegion"},"country":{"@id":"https://schema.org/addressCountry"},"postalCode":{"@id":"https://www.gleif.org/ontology/Base/hasPostalCode"}}},"LEIAuthority":{"@id":"https://w3id.org/traceability#LEIAuthority","@context":{"validationAuthorityID":{"@id":"https://schema.org/identifier"},"otherValidationAuthorityID":{"@id":"https://schema.org/taxID"},"validationAuthorityEntityID":{"@id":"https://schema.org/leiCode"}}},"LEIEntity":{"@id":"https://w3id.org/traceability#LEIEntity","@context":{"legalName":{"@id":"https://schema.org/legalName"},"legalNameLanguage":{"@id":"https://schema.org/Language"},"legalAddress":{"@id":"https://www.gleif.org/ontology/Base/hasAddressLegal"},"headquartersAddress":{"@id":"https://www.gleif.org/ontology/Base/hasAddressHeadquarters"},"registrationAuthority":{"@id":"https://w3id.org/traceability#LEIAuthority"},"legalJurisdiction":{"@id":"https://schema.org/countryOfOrigin"},"entityCategory":{"@id":"https://schema.org/category"},"legalForm":{"@id":"https://schema.org/additionalType"},"associatedEntity":{"@id":"https://schema.org/Organization"},"status":{"@id":"https://schema.org/status"},"expirationDate":{"@id":"https://schema.org/expires"},"expirationReason":{"@id":"https://schema.org/Answer"},"successorEntity":{"@id":"https://schema.org/Corporation"},"otherAddresses":{"@id":"https://schema.org/Place"}}},"LEIRegistration":{"@id":"https://w3id.org/traceability#LEIRegistration","@context":{"initialRegistrationDate":{"@id":"https://schema.org/dateIssued"},"lastUpdateDate":{"@id":"https://schema.org/dateModified"},"status":{"@id":"https://schema.org/status"},"nextRenewalDate":{"@id":"https://schema.org/validThrough"},"managingLou":{"@id":"https://www.gleif.org/en/about-lei/iso-17442-the-lei-code-structure#"},"validationSources":{"@id":"https://schema.org/eventStatus"},"validationAuthority":{"@id":"https://w3id.org/traceability#LEIAuthority"}}},"LaceyActProductDeclaration":{"@id":"https://w3id.org/traceability#LaceyActProductDeclaration","@context":{"htsNumber":{"@id":"https://vocabulary.uncefact.org/applicableRegulatoryProcedure"},"enteredValue":{"@id":"https://vocabulary.uncefact.org/customsValueSpecifiedAmount"},"articleOrComponent":{"@id":"https://vocabulary.uncefact.org/procedureCode"},"plantScientificNames":{"@id":"https://w3id.org/traceability#Taxonomy"},"countryOfHarvest":{"@id":"https://vocabulary.uncefact.org/originCountry"},"quantityOfPlantMaterial":{"@id":"https://vocabulary.uncefact.org/totalPackageSpecifiedQuantity"},"percentRecycled":{"@id":"https://qudt.org/vocab/unit/PERCENT"}}},"LinkRole":{"@id":"https://schema.org/LinkRole","@context":{"target":{"@id":"https://schema.org/target"},"linkRelationship":{"@id":"https://schema.org/linkRelationship"}}},"MapResource":{"@id":"https://w3id.org/traceability#MapResource","@context":{"resourceType":{"@id":"https://schema.org/additionalType"},"external":{"@id":"https://w3id.org/traceability#ExternalResource"},"geoJson":{"@id":"https://schema.org/geo"}}},"MasterBillOfLading":{"@id":"https://w3id.org/traceability#MasterBillOfLading","@context":{"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"bookingNumber":{"@id":"https://vocabulary.uncefact.org/carrierAssignedId"},"shippersReferences":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#FF"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"forwardingAgent":{"@id":"https://vocabulary.uncefact.org/freightForwarderParty"},"notifyParty":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"preCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/preCarriageTransportMovement"},"mainCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/mainCarriageTransportMovement"},"onCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/onCarriageTransportMovement"},"placeOfReceipt":{"@id":"https://schema.org/Place"},"portOfLoading":{"@id":"https://vocabulary.uncefact.org/transshipmentLocation"},"placeOfDelivery":{"@id":"https://schema.org/Place"},"portOfDischarge":{"@id":"https://vocabulary.uncefact.org/unloadingLocation"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"transportEquipmentQuantity":{"@id":"https://vocabulary.uncefact.org/transportEquipmentQuantity"},"includedConsignmentItems":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"utilizedTransportEquipment":{"@id":"https://vocabulary.uncefact.org/utilizedTransportEquipment"},"freightAndCharges":{"@id":"https://vocabulary.uncefact.org/applicableServiceCharge"},"declaredValue":{"@id":"https://vocabulary.uncefact.org/declaredValueForCarriageAmount"},"shippedOnBoardDate":{"@id":"https://schema.org/endDate"},"termsAndConditions":{"@id":"https://vocabulary.uncefact.org/termsAndConditionsDescription"}}},"MeasuredProperty":{"@id":"https://w3id.org/traceability#MeasuredProperty","@context":{}},"MeasuredValue":{"@id":"https://schema.org/QuantitativeValue","@context":{"value":{"@id":"https://schema.org/value"},"unitCode":{"@id":"https://schema.org/unitCode"}}},"MechanicalProperty":{"@id":"https://w3id.org/traceability#MechanicalProperty","@context":{"identifier":{"@id":"https://schema.org/identifier"},"name":{"@id":"https://schema.org/name"},"description":{"@id":"https://schema.org/description"}}},"MonetaryAmount":{"@id":"https://schema.org/MonetaryAmount","@context":{"value":{"@id":"https://schema.org/value"},"currency":{"@id":"https://schema.org/currency"}}},"MonthlyAdvanceManifest":{"@id":"https://w3id.org/traceability#MonthlyAdvanceManifest","@context":{"date":{"@id":"https://schema.org/endDate"}}},"MonthlyDeliveryStatement":{"@id":"https://w3id.org/traceability#MonthlyDeliveryStatement","@context":{"itemsDelivered":{"@id":"https://w3id.org/traceability#DeliveryStatement"}}},"MultiModalBillOfLading":{"@id":"https://w3id.org/traceability#MultiModalBillOfLading","@context":{"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"bookingNumber":{"@id":"https://vocabulary.uncefact.org/carrierAssignedId"},"shippersReferences":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#SI"},"freightForwardersReferences":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#FF"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"forwardingAgent":{"@id":"https://vocabulary.uncefact.org/freightForwarderParty"},"notifyParty":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"preCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/preCarriageTransportMovement"},"mainCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/mainCarriageTransportMovement"},"onCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/onCarriageTransportMovement"},"placeOfReceipt":{"@id":"https://schema.org/Place"},"portOfLoading":{"@id":"https://vocabulary.uncefact.org/loadingLocation"},"transshipmentLocation":{"@id":"https://vocabulary.uncefact.org/transshipmentLocation"},"placeOfDelivery":{"@id":"https://schema.org/Place"},"portOfDischarge":{"@id":"https://vocabulary.uncefact.org/unloadingLocation"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"transportEquipmentQuantity":{"@id":"https://vocabulary.uncefact.org/transportEquipmentQuantity"},"particulars":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"utilizedTransportEquipment":{"@id":"https://vocabulary.uncefact.org/utilizedTransportEquipment"},"freightAndCharges":{"@id":"https://vocabulary.uncefact.org/applicableServiceCharge"},"declaredValue":{"@id":"https://vocabulary.uncefact.org/declaredValueForCarriageAmount"},"shippedOnBoardDate":{"@id":"https://schema.org/endDate"},"termsAndConditions":{"@id":"https://vocabulary.uncefact.org/termsAndConditionsDescription"}}},"NAISMADateTime":{"@id":"https://w3id.org/traceability#NAISMADateTime","@context":{"collectionDate":{"@id":"http://rs.tdwg.org/dwc/terms/endDate"},"dateAccuracyDays":{"@id":"http://rs.tdwg.org/dwc/iri/measurementMethod"}}},"NAISMAInfestation":{"@id":"https://w3id.org/traceability#NAISMAInfestation","@context":{"infestedArea":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"areaSurveyed":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"incidence":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"severity":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"severityUnits":{"@id":"https://schema.org/unitText"},"organismQuantity":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"organismQuantityUnits":{"@id":"https://schema.org/unitText"}}},"NAISMAInformationSource":{"@id":"https://w3id.org/traceability#NAISMAInformationSource","@context":{"reference":{"@id":"http://rs.tdwg.org/dwc/terms/associatedReferences"},"examiner":{"@id":"http://rs.tdwg.org/dwc/terms/recordedBy"},"dataSource":{"@id":"https://w3id.org/traceability#Entity"}}},"NAISMALocation":{"@id":"https://w3id.org/traceability#NAISMALocation","@context":{"location":{"@id":"https://w3id.org/traceability#Place"},"description":{"@id":"https://schema.org/description"},"datum":{"@id":"http://rs.tdwg.org/dwc/terms/geodeticDatum"},"wellKnownText":{"@id":"http://rs.tdwg.org/dwc/terms/footprintWKT"},"centroidType":{"@id":"https://schema.org/polygon"},"dataType":{"@id":"https://schema.org/additionalType"},"coordinateUncertainty":{"@id":"http://rs.tdwg.org/dwc/terms/coordinateUncertaintyInMeters"},"sourceOfLocation":{"@id":"http://rs.tdwg.org/dwc/terms/georeferenceProtocol"},"ecosystem":{"@id":"http://rs.tdwg.org/dwc/terms/locationRemarks"}}},"NAISMARecordLevelIdentifiers":{"@id":"https://w3id.org/traceability#NAISMARecordLevelIdentifiers","@context":{"uuid":{"@id":"http://rs.tdwg.org/dwc/terms/resourceID"},"pid":{"@id":"https://schema.org/identifier"},"catalogNumber":{"@id":"http://rs.tdwg.org/dwc/terms/catalogNumber"}}},"NAISMARecordStatus":{"@id":"https://w3id.org/traceability#NAISMARecordStatus","@context":{"occurrenceStatus":{"@id":"https://schema.org/status"},"populationStatus":{"@id":"http://rs.tdwg.org/dwc/terms/degreeOfEstablishment"},"managementStatus":{"@id":"https://schema.org/status"},"recordBasis":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"},"recordType":{"@id":"https://schema.org/description"},"method":{"@id":"http://rs.tdwg.org/dwc/terms/measurementMethod"},"verificationMethod":{"@id":"http://rs.tdwg.org/dwc/terms/identificationRemarks"}}},"NAISMASubject":{"@id":"https://w3id.org/traceability#NAISMASubject","@context":{"lifeStage":{"@id":"http://rs.tdwg.org/dwc/terms/lifeStage"},"sex":{"@id":"http://rs.tdwg.org/dwc/terms/sex"},"hostSpecies":{"@id":"https://w3id.org/traceability#Taxonomy"},"comments":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"}}},"NAISMATaxonomy":{"@id":"https://w3id.org/traceability#NAISMATaxonomy","@context":{"speciesName":{"@id":"https://w3id.org/traceability#Taxonomy"},"commonName":{"@id":"http://rs.tdwg.org/dwc/terms/vernacularName"},"taxonomicSerialNumber":{"@id":"http://rs.tdwg.org/dwc/terms/taxonID"}}},"Observation":{"@id":"https://schema.org/Observation","@context":{"property":{"@id":"https://schema.org/measuredProperty"},"measurement":{"@id":"https://w3id.org/traceability#MeasuredValue"},"date":{"@id":"https://schema.org/observationDate"}}},"OilAndGasDeliveryTicket":{"@id":"https://w3id.org/traceability#OilAndGasDeliveryTicket","@context":{"createdDate":{"@id":"https://schema.org/dateIssued"},"openDate":{"@id":"https://schema.org/startDate"},"closeDate":{"@id":"https://schema.org/endDate"},"transporter":{"@id":"https://schema.org/agent"},"consignor":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"ticketControlNumber":{"@id":"https://schema.org/ticketNumber"},"batchNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BT"},"place":{"@id":"https://schema.org/toLocation"},"product":{"@id":"https://www.gs1.org/voc/Product"},"observation":{"@id":"https://w3id.org/traceability#observation"}}},"OilAndGasProduct":{"@id":"https://w3id.org/traceability#OilAndGasProduct","@context":{"product":{"@id":"https://www.gs1.org/voc/Product"},"facility":{"@id":"https://www.gs1.org/voc/Place"},"UWI":{"@id":"https://schema.org/identifier"},"productionDate":{"@id":"https://schema.org/endDate"},"observation":{"@id":"https://w3id.org/traceability#observation"}}},"Order":{"@id":"https://schema.org/Order","@context":{"orderNumber":{"@id":"https://schema.org/orderNumber"},"orderedItems":{"@id":"https://schema.org/orderedItem"}}},"OrderItem":{"@id":"https://schema.org/OrderItem","@context":{"marketplace":{"@id":"https://vocabulary.uncefact.org/Marketplace"},"fulfillmentCenter":{"@id":"https://vocabulary.uncefact.org/logisticsServiceProviderParty"},"orderedItem":{"@id":"https://schema.org/orderedItem"},"orderedQuantity":{"@id":"https://schema.org/orderQuantity"}}},"OrganicCertificate":{"@id":"https://w3id.org/traceability#OrganicCertificate","@context":{"countryOfIssuance":{"@id":"https://www.gs1.org/voc/countryCode"},"certifiedOperation":{"@id":"https://www.gs1.org/voc/certificationSubject"},"certifyingAgent":{"@id":"https://www.gs1.org/voc/certificationAgency"},"effectiveDate":{"@id":"https://www.gs1.org/voc/certificationStartDate"},"issueDate":{"@id":"https://www.gs1.org/voc/initialCertificationDate"},"anniversaryDate":{"@id":"https://www.gs1.org/voc/certificationEndDate"},"operationCategory":{"@id":"https://www.gs1.org/voc/certificationStatement"},"organicProducts":{"@id":"https://www.gs1.org/voc/certificationStatement"}}},"OrganicInspection":{"@id":"https://w3id.org/traceability#OrganicInspection","@context":{"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"applicantCertificationNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"authorizedOperationContacts":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"peoplePresent":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"newApplicant":{"@id":"https://vocabulary.uncefact.org/information"},"continuingCertification":{"@id":"https://vocabulary.uncefact.org/information"},"newLocationActivity":{"@id":"https://vocabulary.uncefact.org/information"},"reinstatement":{"@id":"https://vocabulary.uncefact.org/information"},"announcedInspection":{"@id":"https://vocabulary.uncefact.org/information"},"estimatedHarvestDate":{"@id":"https://www.gs1.org/voc/harvestDate"},"pesticideResidueSampling":{"@id":"https://vocabulary.uncefact.org/information"},"samplingDetails":{"@id":"https://vocabulary.uncefact.org/content"},"introductionOperationDescription":{"@id":"https://schema.org/description"},"resolutionIssuesActionItems":{"@id":"https://schema.org/description"},"issuesRequests":{"@id":"https://vocabulary.uncefact.org/additionalDescription"},"attachments":{"@id":"https://vocabulary.uncefact.org/additionalDocument"},"OSPSectionReviews":{"@id":"https://w3id.org/traceability#OrganicOSPSectionReview"}}},"OrganicOSPSectionReview":{"@id":"https://w3id.org/traceability#OrganicOSPSectionReview","@context":{"OSPSectionCode":{"@id":"https://vocabulary.uncefact.org/standard"},"resultCode":{"@id":"https://vocabulary.uncefact.org/assertionCode"},"verificationExplanations":{"@id":"https://vocabulary.uncefact.org/remarks"},"attachments":{"@id":"https://vocabulary.uncefact.org/additionalDocument"}}},"OrganicProductCertificate":{"@id":"https://w3id.org/traceability#OrganicProductCertificate","@context":{"agricultureProduct":{"@id":"https://www.gs1.org/voc/certificationSubject"},"organicCertificate":{"@id":"https://www.gs1.org/voc/certification"},"isCertified":{"@id":"https://www.gs1.org/voc/certificationStatus"}}},"OrganicReview":{"@id":"https://w3id.org/traceability#OrganicReview","@context":{"inspectionReport":{"@id":"https://w3id.org/traceability#OrganicInspection"},"reviewer":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"decisionMaker":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"certificationDecision":{"@id":"https://www.gs1.org/voc/certificationStatus"},"additionalInformation":{"@id":"https://vocabulary.uncefact.org/content"}}},"Organization":{"@id":"https://schema.org/Organization","@context":{"name":{"@id":"https://schema.org/name"},"legalName":{"@id":"https://schema.org/legalName"},"leiCode":{"@id":"https://schema.org/leiCode"},"url":{"@id":"https://schema.org/url"},"description":{"@id":"https://schema.org/description"},"globalLocationNumber":{"@id":"https://schema.org/globalLocationNumber"},"location":{"@id":"https://schema.org/location"},"email":{"@id":"https://schema.org/email"},"phoneNumber":{"@id":"https://schema.org/telephone"},"logo":{"@id":"https://schema.org/logo"},"faxNumber":{"@id":"https://schema.org/faxNumber"},"contactPoint":{"@id":"https://schema.org/ContactPoint"},"taxId":{"@id":"https://schema.org/taxID"},"iataCarrierCode":{"@id":"https://onerecord.iata.org/cargo/Company#airlineCode"},"scac":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AAZ"}}},"PGAShipmentStatus":{"@id":"https://w3id.org/traceability#PGAShipmentStatus","@context":{"recordNo":{"@id":"https://w3id.org/traceability#recordNo"},"entryNo":{"@id":"https://w3id.org/traceability#entryNo"},"entryLineSequence":{"@id":"https://w3id.org/traceability#entryLineSequence"},"statusCode":{"@id":"https://w3id.org/traceability#statusCode"},"statusCodeDescription":{"@id":"https://w3id.org/traceability#statusCodeDescription"},"validCodeReason":{"@id":"https://w3id.org/traceability#validCodeReason"},"validCodeReasonDescription":{"@id":"https://w3id.org/traceability#validCodeReasonDescription"},"subReasonCode":{"@id":"https://w3id.org/traceability#subReasonCode"},"subReasonCodeDescription":{"@id":"https://w3id.org/traceability#subReasonCodeDescription"}}},"PGAShipmentStatusList":{"@id":"https://w3id.org/traceability#PGAShipmentStatusList","@context":{"pgaShipmentStatusItems":{"@id":"https://schema.org/ItemList"}}},"Package":{"@id":"https://vocabulary.uncefact.org/Package","@context":{"physicalShippingMarks":{"@id":"https://vocabulary.uncefact.org/physicalShippingMarks"},"packagingType":{"@id":"https://www.gs1.org/voc/packagingMaterial"},"perPackageUnitQuantity":{"@id":"https://vocabulary.uncefact.org/perPackageUnitQuantity"},"includedTradeLineItems":{"@id":"https://vocabulary.uncefact.org/specifiedTradeLineItem"},"netWeight":{"@id":"https://vocabulary.uncefact.org/netWeightMeasure"},"grossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"height":{"@id":"https://schema.org/height"},"width":{"@id":"https://schema.org/width"},"depth":{"@id":"https://schema.org/depth"},"grossVolume":{"@id":"https://vocabulary.uncefact.org/grossVolumeMeasure"}}},"PackingList":{"@id":"https://w3id.org/traceability#PackingList","@context":{"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"buyer":{"@id":"https://vocabulary.uncefact.org/buyerParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"shipFromParty":{"@id":"https://vocabulary.uncefact.org/shipFromParty"},"shipToParty":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"orderNumber":{"@id":"https://schema.org/orderNumber"},"invoiceId":{"@id":"https://schema.org/identifier"},"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"trackingNumber":{"@id":"https://schema.org/trackingNumber"},"deliveryStatus":{"@id":"https://schema.org/deliveryStatus"},"estimatedTimeOfArrival":{"@id":"https://schema.org/arrivalTime"},"hasDeliveryMethod":{"@id":"https://schema.org/hasDeliveryMethod"},"handlingInstructions":{"@id":"https://vocabulary.uncefact.org/handlingInstructions"},"items":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"totalNetWeight":{"@id":"https://vocabulary.uncefact.org/netWeightMeasure"},"totalGrossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"totalGrossVolume":{"@id":"https://vocabulary.uncefact.org/grossVolumeMeasure"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"totalItemQuantity":{"@id":"https://vocabulary.uncefact.org/tradeLineItemQuantity"}}},"ParcelDelivery":{"@id":"https://schema.org/ParcelDelivery","@context":{"deliveryAddress":{"@id":"https://schema.org/deliveryAddress"},"originAddress":{"@id":"https://schema.org/originAddress"},"deliveryMethod":{"@id":"https://schema.org/DeliveryMethod"},"trackingNumber":{"@id":"https://schema.org/trackingNumber"},"expectedArrival":{"@id":"https://schema.org/expectedArrivalFrom"},"specialInstructions":{"@id":"https://schema.org/comment"},"consignee":{"@id":"https://schema.org/Organization"},"item":{"@id":"https://schema.org/itemShipped"},"partOfOrder":{"@id":"https://schema.org/partOfOrder"}}},"PartOfOrder":{"@id":"https://schema.org/OrderItem","@context":{"manufacturer":{"@id":"https://schema.org/Organization"},"orderNumber":{"@id":"https://schema.org/orderNumber"},"transportPackages":{"@id":"https://vocabulary.uncefact.org/Package"},"netWeight":{"@id":"https://vocabulary.uncefact.org/netWeightMeasure"},"grossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"grossVolume":{"@id":"https://vocabulary.uncefact.org/grossVolumeMeasure"},"packageQuantity":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"itemQuantity":{"@id":"https://vocabulary.uncefact.org/tradeLineItemQuantity"}}},"Person":{"@id":"https://schema.org/Person","@context":{"firstName":{"@id":"https://schema.org/givenName"},"lastName":{"@id":"https://schema.org/familyName"},"email":{"@id":"https://schema.org/email"},"phoneNumber":{"@id":"https://schema.org/telephone"},"worksFor":{"@id":"https://schema.org/worksFor"},"jobTitle":{"@id":"https://schema.org/jobTitle"},"taxId":{"@id":"https://schema.org/taxID"}}},"PestDetermination":{"@id":"https://w3id.org/traceability#PestDetermination","@context":{"final":{"@id":"https://dwc.tdwg.org/list/#dwc_identificationVerificationStatus"},"determination":{"@id":"https://w3id.org/traceability#Taxonomy"},"notes":{"@id":"https://dwc.tdwg.org/list/#dwc_identificationRemarks"},"method":{"@id":"https://dwc.tdwg.org/list/#dwc_measurementMethod"},"reportable":{"@id":"https://dwc.tdwg.org/list/#dwc_occurrenceStatus"},"determinedBy":{"@id":"https://dwc.tdwg.org/list/#dwc_identifiedBy"},"date":{"@id":"https://dwc.tdwg.org/list/#dwc_dateIdentified"}}},"PestSample":{"@id":"https://w3id.org/traceability#PestSample","@context":{"hostName":{"@id":"https://w3id.org/traceability#Taxonomy"},"hostQuantity":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"affected":{"@id":"https://dwc.tdwg.org/list/#dwc_measurementValue"},"plantDistribution":{"@id":"http://rs.tdwg.org/dwc/terms/degreeOfEstablishment"},"plantPartsAffected":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"pestDistribution":{"@id":"http://rs.tdwg.org/dwc/terms/degreeOfEstablishment"},"pestProximity":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"pestType":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"aliveLarvae":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"alivePupae":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"aliveAdults":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"aliveEggs":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"aliveNymphs":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"aliveJuveniles":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"aliveCysts":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadLarvae":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadPupae":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadAdults":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadEggs":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadNymphs":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadJuveniles":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadCysts":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"castSkins":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"samplingMethod":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"},"trapLureType":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"},"trapNumber":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"}}},"Phytosanitary":{"@id":"https://w3id.org/traceability/Phytosanitary","@context":{"certificateNumber":{"@id":"https://schema.org/identifier"},"plantOrg":{"@id":"https://www.gs1.org/voc/Organization"},"distinguishingMarks":{"@id":"https://www.gs1.org/voc/variantDescription"},"portOfEntry":{"@id":"https://w3id.org/traceability#portOfEntry"},"additionalDeclaration":{"@id":"https://schema.org/Comment"},"disinfectionDate":{"@id":"https://schema.org/validFrom"},"disinfectionTreatment":{"@id":"https://w3id.org/traceability#disinfectionTreatment"},"disinfectionChemical":{"@id":"https://schema.org/activeIngredient"},"disinfectionDuration":{"@id":"https://schema.org/duration"},"disinfectionTemperature":{"@id":"https://schema.org/MeasuredValue"},"disinfectionConcentration":{"@id":"https://w3id.org/traceability#disinfectionConcentration"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/signedDateTime"},"facility":{"@id":"https://www.gs1.org/voc/Place"},"inspector":{"@id":"https://w3id.org/traceability#Inspector"},"shipment":{"@id":"https://schema.org/AgricultureParcelDelivery"},"agriculturePackage":{"@id":"https://w3id.org/traceability#AgriculturePackage"},"applicant":{"@id":"https://w3c-ccg.github.io/traceability-vocab/#dfn-entities"},"inspectionDate":{"@id":"https://vocabulary.uncefact.org/inspectionDateTime"},"inspectionType":{"@id":"https://vocabulary.uncefact.org/inspectionStandard"},"notes":{"@id":"https://schema.org/Comment"},"observation":{"@id":"https://schema.org/ItemList"}}},"Place":{"@id":"https://schema.org/Place","@context":{"globalLocationNumber":{"@id":"https://schema.org/globalLocationNumber"},"geo":{"@id":"https://schema.org/GeoCoordinates"},"address":{"@id":"https://schema.org/PostalAddress"},"unLocode":{"@id":"https://vocabulary.uncefact.org/Location"},"iataAirportCode":{"@id":"https://onerecord.iata.org/cargo/Location#code"},"locationName":{"@id":"https://schema.org/name"},"usPortCode":{"@id":"https://w3id.org/traceability#usPortCode"},"firmsCode":{"@id":"https://w3id.org/traceability#firmsCode"}}},"PlantSystemsInspection":{"@id":"https://w3id.org/traceability#PlantSystemsInspection","@context":{"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"productsPacked":{"@id":"https://vocabulary.uncefact.org/specifiedProduct"},"summaryOfDeficiencies":{"@id":"https://schema.org/description"},"observationsImprovements":{"@id":"https://schema.org/description"},"questions":{"@id":"https://w3id.org/traceability#PlantSystemsQuestion"},"additionalViolations":{"@id":"https://schema.org/description"}}},"PlantSystemsQuestion":{"@id":"https://w3id.org/traceability#PlantSystemsQuestion","@context":{"code":{"@id":"https://schema.org/identifier"},"pointsWorth":{"@id":"https://schema.org/ratingValue"},"pointsDeducted":{"@id":"https://schema.org/ratingValue"}}},"PostalAddress":{"@id":"https://schema.org/PostalAddress","@context":{"name":{"@id":"https://schema.org/name"},"streetAddress":{"@id":"https://schema.org/streetAddress"},"addressLocality":{"@id":"https://schema.org/addressLocality"},"addressRegion":{"@id":"https://schema.org/addressRegion"},"addressCountry":{"@id":"https://schema.org/addressCountry"},"crossStreet":{"@id":"https://gs1.org/voc/crossStreet"},"countyCode":{"@id":"https://gs1.org/voc/countyCode"},"postalCode":{"@id":"https://schema.org/postalCode"},"postOfficeBoxNumber":{"@id":"https://schema.org/postOfficeBoxNumber"},"plantOrSiteName":{"@id":"https://vocabulary.uncefact.org/buildingName"}}},"PostmanCollection":{"@id":"https://w3id.org/traceability#PostmanCollection","@context":{}},"PriceSpecification":{"@id":"https://schema.org/PriceSpecification","@context":{"price":{"@id":"https://schema.org/price"},"priceCurrency":{"@id":"https://schema.org/priceCurrency"}}},"Product":{"@id":"https://schema.org/Product","@context":{"gtin":{"@id":"https://schema.org/gtin"},"manufacturer":{"@id":"https://schema.org/manufacturer"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"name":{"@id":"https://schema.org/name"},"description":{"@id":"https://schema.org/description"},"category":{"@id":"https://schema.org/category"},"weight":{"@id":"https://schema.org/weight"},"depth":{"@id":"https://schema.org/depth"},"width":{"@id":"https://schema.org/width"},"height":{"@id":"https://schema.org/height"},"productPrice":{"@id":"https://schema.org/priceSpecification"},"sku":{"@id":"https://schema.org/sku"},"batchNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BT"},"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"images":{"@id":"https://schema.org/image"},"imageUrl":{"@id":"https://schema.org/url"},"imageHash":{"@id":"https://schema.org/sha256"},"htsCode":{"@id":"https://service.unece.org/trade/uncefact/vocabulary/uncefact/#applicableTax"}}},"Purchase":{"@id":"https://w3id.org/traceability#Purchase","@context":{"customer":{"@id":"https://w3id.org/traceability#Entity"},"invoice":{"@id":"https://w3id.org/traceability#Invoice"},"invoiceNo":{"@id":"https://schema.org/identifier"},"internalCertificateNo":{"@id":"https://schema.org/identifier"},"purchaseOrderNo":{"@id":"https://schema.org/identifier"}}},"PurchaseOrder":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#105","@context":{"purchaseOrderNo":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AUJ"},"orderDate":{"@id":"https://vocabulary.uncefact.org/buyerOrderDateTime"},"buyer":{"@id":"https://vocabulary.uncefact.org/buyerParty"},"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"shipToParty":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"itemsOrdered":{"@id":"https://vocabulary.uncefact.org/SupplyChainTradeLineItem"},"comments":{"@id":"https://schema.org/Comment"},"totalWeight":{"@id":"https://schema.org/weight"},"termsOfDelivery":{"@id":"https://vocabulary.uncefact.org/specifiedDeliveryTerms"},"termsOfPayment":{"@id":"https://vocabulary.uncefact.org/specifiedPaymentTerms"},"totalPaymentDue":{"@id":"https://schema.org/totalPaymentDue"},"discounts":{"@id":"https://vocabulary.uncefact.org/deductionAmount"},"tax":{"@id":"https://vocabulary.uncefact.org/taxTotalAmount"},"freightCost":{"@id":"https://schema.org/DeliveryChargeSpecification"},"insuranceCost":{"@id":"https://vocabulary.uncefact.org/insuranceChargeTotalAmount"},"totalOrderAmount":{"@id":"https://vocabulary.uncefact.org/grandTotalAmount"}}},"Qualification":{"@id":"https://schema.org/qualifications","@context":{"qualificationCategory":{"@id":"https://schema.org/credentialCategory"},"qualificationValue":{"@id":"https://schema.org/hasCredential"}}},"QuantitativeValue":{"@id":"https://schema.org/QuantitativeValue","@context":{"unitCode":{"@id":"https://schema.org/unitCode"},"value":{"@id":"https://schema.org/value"}}},"RawMaterial":{"@id":"https://w3id.org/traceability#RawMaterial","@context":{"name":{"@id":"https://schema.org/name"},"inchiKey":{"@id":"https://w3id.org/traceability#inchiKey"}}},"RevocationList2020Status":{"@id":"https://w3id.org/traceability#RevocationList2020Status","@context":{"revocationListIndex":{"@id":"https://schema.org/itemListElement"},"revocationListCredential":{"@id":"https://schema.org/LinkRole"}}},"RoutingInfo":{"@id":"https://w3id.org/traceability#RoutingInfo","@context":{"code":{"@id":"https://w3id.org/traceability#routingInfoCode"},"value":{"@id":"https://w3id.org/traceability#routingInfoValue"}}},"SIMASteelImportLicense":{"@id":"https://w3id.org/traceability#SIMASteelImportLicense","@context":{"licenseNumber":{"@id":"https://schema.org/identifier"},"licensedCompany":{"@id":"https://vocabulary.uncefact.org/grantedParty"},"customsEntryNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AQM"},"importer":{"@id":"https://vocabulary.uncefact.org/importerParty"},"exporter":{"@id":"https://vocabulary.uncefact.org/exporterParty"},"manufacturer":{"@id":"https://vocabulary.uncefact.org/manufacturerParty"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"countryOfExportation":{"@id":"https://vocabulary.uncefact.org/exportCountry"},"expectedPortOfEntry":{"@id":"https://vocabulary.uncefact.org/LocationFunctionCodeList#24"},"expectedDateOfExport":{"@id":"https://vocabulary.uncefact.org/DateTimePeriodFunctionCodeList#129"},"expectedDateOfImport":{"@id":"https://vocabulary.uncefact.org/DateTimePeriodFunctionCodeList#151"},"productInformation":{"@id":"https://w3id.org/traceability#productInformation"}}},"SIMASteelImportProductSpecifier":{"@id":"https://w3id.org/traceability#SIMASteelImportProductSpecifier","@context":{"productCategory":{"@id":"https://w3id.org/traceability#ProductCategory"},"countryOfMeltAndPour":{"@id":"https://w3id.org/traceability#countryOfMeltAndPour"},"customsValue":{"@id":"https://vocabulary.uncefact.org/declaredValueForCustomsAmount"}}},"OssfScorecard":{"@id":"https://w3id.org/traceability#OssfScorecard","@context":{}},"SeaCargoManifest":{"@id":"https://w3id.org/traceability#SeaCargoManifest","@context":{"vesselName":{"@id":"https://vocabulary.uncefact.org/transportMeans"},"vesselNumber":{"@id":"https://schema.org/identifier"},"voyageNumber":{"@id":"https://vocabulary.uncefact.org/TransportMovement"},"registrationCountry":{"@id":"https://vocabulary.uncefact.org/registrationCountry"},"plannedDepartureDateTime":{"@id":"https://vocabulary.uncefact.org/scheduledDepartureRelatedDateTime"},"plannedArrivalDateTime":{"@id":"https://vocabulary.uncefact.org/scheduledArrivalRelatedDateTime"},"portOfDeparture":{"@id":"https://schema.org/Place"},"portOfArrival":{"@id":"https://schema.org/Place"},"netTonnage":{"@id":"https://vocabulary.uncefact.org/netWeightMeasure"},"grossTonnage":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"totalNumberOfTransportDocuments":{"@id":"https://vocabulary.uncefact.org/loadingListQuantity"},"transportEquipmentQuantity":{"@id":"https://vocabulary.uncefact.org/transportEquipmentQuantity"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"transportDocumentInformation":{"@id":"https://vocabulary.uncefact.org/transportContractDocument"}}},"Seal":{"@id":"https://vocabulary.uncefact.org/Seal","@context":{"sealNumber":{"@id":"https://vocabulary.uncefact.org/identifier"},"sealSource":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/sealSource"},"sealType":{"@id":"https://vocabulary.uncefact.org/logisticsSealTypeCode"}}},"ServiceCharge":{"@id":"https://vocabulary.uncefact.org/ServiceCharge","@context":{"chargeCode":{"@id":"https://vocabulary.uncefact.org/chargeCategoryCode"},"paymentTerm":{"@id":"https://vocabulary.uncefact.org/PaymentTerms"},"chargeText":{"@id":"https://schema.org/description"},"rate":{"@id":"https://vocabulary.uncefact.org/unitPrice"},"calculationBasis":{"@id":"https://vocabulary.uncefact.org/calculationBasis"},"appliedAmount":{"@id":"https://vocabulary.uncefact.org/appliedAmount"}}},"ShippingDetails":{"@id":"https://w3id.org/traceability#ShippingDetails","@context":{"containerNumber":{"@id":"https://w3id.org/traceability#containerNumber"},"masterBillOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/uncl1153#MB"},"manufacturerAddress":{"@id":"https://w3id.org/traceability#manufacturerAddress"},"customerAddress":{"@id":"https://w3id.org/traceability#customerAddress"}}},"ShippingInstructions":{"@id":"https://w3id.org/traceability#ShippingInstructions","@context":{"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"bookingNumber":{"@id":"https://vocabulary.uncefact.org/carrierAssignedId"},"shippersReferences":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#FF"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"notifyParty":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"preCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/preCarriageTransportMovement"},"mainCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/mainCarriageTransportMovement"},"onCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/onCarriageTransportMovement"},"placeOfReceipt":{"@id":"https://schema.org/Place"},"portOfLoading":{"@id":"https://vocabulary.uncefact.org/transshipmentLocation"},"placeOfDelivery":{"@id":"https://schema.org/Place"},"portOfDischarge":{"@id":"https://vocabulary.uncefact.org/unloadingLocation"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"transportEquipmentQuantity":{"@id":"https://vocabulary.uncefact.org/transportEquipmentQuantity"},"includedConsignmentItems":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"utilizedTransportEquipment":{"@id":"https://vocabulary.uncefact.org/utilizedTransportEquipment"},"declaredValue":{"@id":"https://vocabulary.uncefact.org/declaredValueForCarriageAmount"}}},"SoftwareBillOfMaterials":{"@id":"https://w3id.org/traceability#SoftwareBillOfMaterials","@context":{}},"SteelProduct":{"@id":"https://w3id.org/traceability#SteelProduct","@context":{"heatNumber":{"@id":"https://schema.org/identifier"},"specification":{"@id":"https://schema.org/identifier"},"grade":{"@id":"https://schema.org/Rating"},"weight":{"@id":"https://schema.org/weight"},"weightUnit":{"@id":"http://qudt.org/schema/qudt/Unit"},"originalCountryOfMeltAndPour":{"@id":"https://schema.org/addressCountry"},"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"inspection":{"@id":"https://w3id.org/traceability#Inspection"}}},"TSCACertification":{"@id":"https://w3id.org/traceability/TSCACertification","@context":{"certificationType":{"@id":"https://schema.org/DefinedTerm"},"certifierDetails":{"@id":"https://w3id.org/traceability#certifierDetails"}}},"Taxonomy":{"@id":"https://w3id.org/traceability#Taxonomy","@context":{"kingdom":{"@id":"http://rs.tdwg.org/dwc/terms/kingdom"},"phylum":{"@id":"http://rs.tdwg.org/dwc/terms/phylum"},"class":{"@id":"http://rs.tdwg.org/dwc/terms/class"},"order":{"@id":"http://rs.tdwg.org/dwc/terms/order"},"family":{"@id":"http://rs.tdwg.org/dwc/terms/family"},"genus":{"@id":"http://rs.tdwg.org/dwc/terms/genus"},"species":{"@id":"http://rs.tdwg.org/dwc/terms/specificEpithet"},"subspecies":{"@id":"http://rs.tdwg.org/dwc/terms/infraspecificEpithet"},"variety":{"@id":"http://rs.tdwg.org/dwc/terms/cultivarEpithet"}}},"TemperatureReading":{"@id":"https://w3id.org/traceability#TemperatureReading","@context":{"bulbNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"tests":{"@id":"https://vocabulary.uncefact.org/actualMeasure"}}},"Template":{"@id":"https://w3id.org/traceability#Template","@context":{"image":{"@id":"https://schema.org/image"}}},"Thing":{"@id":"https://schema.org/Thing","@context":{}},"TraceabilityAPI":{"@id":"https://w3id.org/traceability#TraceabilityAPI","@context":{}},"TradeLineItem":{"@id":"https://vocabulary.uncefact.org/SupplyChainTradeLineItem","@context":{"name":{"@id":"https://schema.org/name"},"purchaseOrderNumber":{"@id":"https://schema.org/orderNumber"},"itemCount":{"@id":"https://vocabulary.uncefact.org/despatchedQuantity"},"description":{"@id":"https://schema.org/description"},"packageQuantity":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"product":{"@id":"https://schema.org/Product"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"shipToParty":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"netWeight":{"@id":"https://vocabulary.uncefact.org/netWeightMeasure"},"grossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"priceSpecification":{"@id":"https://schema.org/priceSpecification"}}},"TransferEvent":{"@id":"https://w3id.org/traceability#TransferEvent","@context":{"place":{"@id":"https://schema.org/Place"},"price":{"@id":"https://schema.org/price"},"products":{"@id":"https://schema.org/Product"},"organization":{"@id":"https://w3id.org/traceability#Organization"},"identifier":{"@id":"https://schema.org/identifier"},"addressCountry":{"@id":"https://schema.org/addressCountry"}}},"TransformEvent":{"@id":"https://w3id.org/traceability#TransformEvent","@context":{"place":{"@id":"https://schema.org/Place"},"organization":{"@id":"https://w3id.org/traceability#Organization"},"newProducts":{"@id":"https://w3c-ccg.github.io/hashlink/#hl-url-params"},"consumedProducts":{"@id":"https://w3c-ccg.github.io/hashlink/#hl-url-params"}}},"Transport":{"@id":"https://w3id.org/traceability#Transport","@context":{"arrivalLocation":{"@id":"https://schema.org/toLocation"},"departureDate":{"@id":"https://schema.org/departureTime"},"arrivalDate":{"@id":"https://schema.org/arrivalTime"},"modeOfTransport":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/modeOfTransport"},"carrier":{"@id":"https://schema.org/carrier"},"vesselNumber":{"@id":"https://vocabulary.uncefact.org/identifier"},"voyageNumber":{"@id":"https://vocabulary.uncefact.org/identifier"},"path":{"@id":"https://schema.org/line"}}},"TransportDocument":{"@id":"https://w3id.org/traceability#TransportDocument","@context":{}},"TransportEquipment":{"@id":"https://vocabulary.uncefact.org/LogisticsTransportEquipment","@context":{"equipmentReference":{"@id":"https://vocabulary.uncefact.org/identification"},"ISOEquipmentCode":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/ISOEquipmentCode"},"tareWeight":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/tareWeight"},"tareWeightUnit":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/weightUnit"},"cargoGrossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"cargoGrossWeightUnit":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/weightUnit"},"isShipperOwned":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/isShipperOwned"},"seals":{"@id":"https://vocabulary.uncefact.org/affixedSeal"}}},"TransportEvent":{"@id":"https://w3id.org/traceability#TransportEvent","@context":{"place":{"@id":"https://schema.org/Place"},"organization":{"@id":"https://w3id.org/traceability#Organization"},"products":{"@id":"https://schema.org/Product"},"deliveryMethod":{"@id":"https://schema.org/DeliveryMethod"},"trackingNumber":{"@id":"https://schema.org/trackingNumber"}}},"USDAPPQ203ForeignSiteInspection":{"@id":"https://w3id.org/traceability#USDAPPQ203ForeignSiteInspection","@context":{"certificateNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"signatureDate":{"@id":"https://www.gs1.org/voc/certificationAuditDate"},"inspectionType":{"@id":"https://www.gs1.org/voc/certificationType"},"observations":{"@id":"https://vocabulary.uncefact.org/relatedObservation"}}},"USDAPPQ309APestInterceptionRecord":{"@id":"https://w3id.org/traceability#USDAPPQ309APestInterceptionRecord","@context":{"interceptionNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"shippingStop":{"@id":"https://vocabulary.uncefact.org/itineraryStopEvent"},"forwardTo":{"@id":"https://vocabulary.uncefact.org/recipientAssignedId"},"priority":{"@id":"https://vocabulary.uncefact.org/priorityCode"},"interceptionDate":{"@id":"https://vocabulary.uncefact.org/actualOccurrenceDateTime"},"inspector":{"@id":"https://vocabulary.uncefact.org/inspectionParty"},"overtime":{"@id":"https://vocabulary.uncefact.org/information"},"pathway":{"@id":"https://vocabulary.uncefact.org/mode"},"modeOfTransportation":{"@id":"https://vocabulary.uncefact.org/mode"},"materialFor":{"@id":"https://vocabulary.uncefact.org/intendedUse"},"narp":{"@id":"https://vocabulary.uncefact.org/statementNote"},"importedAs":{"@id":"https://schema.org/description"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"whereIntercepted":{"@id":"https://vocabulary.uncefact.org/AttachedTransportEquipment"},"PestSample":{"@id":"http://rs.tdwg.org/dwc/terms/materialSampleID"},"pestDeterminations":{"@id":"https://dwc.tdwg.org/list/#dwc_identificationID"},"quarantineStatus":{"@id":"https://vocabulary.uncefact.org/conditionCode"},"remarks":{"@id":"https://vocabulary.uncefact.org/remark"}}},"USDAPPQ368NoticeOfArrival":{"@id":"https://w3id.org/traceability#USDAPPQ368NoticeOfArrival","@context":{"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"arrivalDate":{"@id":"https://vocabulary.uncefact.org/actualArrivalRelatedDateTime"},"permitNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"customsEntryNumber":{"@id":"https://vocabulary.uncefact.org/customsId"},"presentLocation":{"@id":"https://vocabulary.uncefact.org/consignmentDestinationSpecifiedLocation"},"locationGrown":{"@id":"https://vocabulary.uncefact.org/originLocation"},"ITNumber":{"@id":"https://vocabulary.uncefact.org/customsId"},"productDisposition":{"@id":"https://vocabulary.uncefact.org/dispositionDocument"},"ppqOfficial":{"@id":"https://vocabulary.uncefact.org/inspectionParty"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/occurrenceDateTime"}}},"USDAPPQ391SpecimensForDetermination":{"@id":"https://w3id.org/traceability#USDAPPQ391SpecimensForDetermination","@context":{"priority":{"@id":"https://vocabulary.uncefact.org/priorityCode"},"priorityExplanation":{"@id":"https://vocabulary.uncefact.org/remarks"},"collectionNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"submissionDate":{"@id":"https://vocabulary.uncefact.org/reportSubmissionDateTime"},"collectionDate":{"@id":"https://vocabulary.uncefact.org/actualOccurrenceDateTime"},"submittingAgency":{"@id":"https://vocabulary.uncefact.org/agencyId"},"submitter":{"@id":"https://vocabulary.uncefact.org/PartyRoleCodeList#TB"},"collector":{"@id":"https://vocabulary.uncefact.org/inspectionParty"},"interceptionSite":{"@id":"https://vocabulary.uncefact.org/occurrenceLocation"},"identificationReason":{"@id":"https://vocabulary.uncefact.org/reasonCode"},"remarks":{"@id":"https://vocabulary.uncefact.org/remarks"},"tentativeDetermination":{"@id":"https://dwc.tdwg.org/list/#dwc_identificationID"},"finalDetermination":{"@id":"https://dwc.tdwg.org/list/#dwc_identificationID"},"sampleDisposition":{"@id":"https://dwc.tdwg.org/list/#dwc_disposition"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/occurrenceDateTime"},"lab":{"@id":"https://vocabulary.uncefact.org/lodgementLocation"},"labConformationNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"dateReceived":{"@id":"https://vocabulary.uncefact.org/acceptanceDateTime"}}},"USDAPPQ429FumigationRecord":{"@id":"https://w3id.org/traceability#USDAPPQ429FumigationRecord","@context":{"tarpaulin":{"@id":"https://vocabulary.uncefact.org/value"},"stationReporting":{"@id":"https://vocabulary.uncefact.org/relevantLocation"},"pest":{"@id":"https://schema.org/description"},"interceptionRecord":{"@id":"https://w3id.org/traceability#USDAPPQ309APestInterceptionRecord.yml"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"fumigationContractor":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"dateFumigationOrdered":{"@id":"https://vocabulary.uncefact.org/actualDateTime"},"fumigationSite":{"@id":"https://vocabulary.uncefact.org/occurrenceLocation"},"dateFumigated":{"@id":"https://vocabulary.uncefact.org/actualOccurrenceDateTime"},"fumigantAndTreatmentSchedule":{"@id":"https://vocabulary.uncefact.org/regulationName"},"temperatureOfSpace":{"@id":"https://vocabulary.uncefact.org/actualReportedMeasurement"},"temperatureOfCommodity":{"@id":"https://vocabulary.uncefact.org/actualReportedMeasurement"},"gasAnalyzer":{"@id":"https://schema.org/description"},"enclosure":{"@id":"https://schema.org/description"},"weatherConditions":{"@id":"https://schema.org/description"},"cubicCapacity":{"@id":"https://vocabulary.uncefact.org/actualReportedMeasurement"},"section18Exemption":{"@id":"https://vocabulary.uncefact.org/value"},"numberOfFans":{"@id":"https://vocabulary.uncefact.org/unitQuantity"},"totalCFMOfFans":{"@id":"https://vocabulary.uncefact.org/actualReportedMeasurement"},"timeFansOperated":{"@id":"https://vocabulary.uncefact.org/durationMeasure"},"foodOrFeedCommodity":{"@id":"https://vocabulary.uncefact.org/functionDescription"},"gasIntroductionStart":{"@id":"https://vocabulary.uncefact.org/startDateTime"},"gasIntroductionFinish":{"@id":"https://vocabulary.uncefact.org/endDateTime"},"totalGasIntroduced":{"@id":"https://vocabulary.uncefact.org/actualReportedMeasurement"},"residueSampleTaken":{"@id":"https://vocabulary.uncefact.org/value"},"residueSampleNumber":{"@id":"https://schema.org/description"},"gasConcentrations":{"@id":"https://vocabulary.uncefact.org/relatedObservation"},"detectorTubeReadings":{"@id":"https://vocabulary.uncefact.org/relatedObservation"},"remarks":{"@id":"https://vocabulary.uncefact.org/remark"},"inspector":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"reviewer":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"fumigatorMaterials":{"@id":"https://schema.org/description"},"ppqMaterials":{"@id":"https://schema.org/description"},"preparationProcedures":{"@id":"https://schema.org/description"}}},"USDAPPQ449RTemperatureCalibration":{"@id":"https://w3id.org/traceability#USDAPPQ449RTemperatureCalibration","@context":{"vesselName":{"@id":"https://vocabulary.uncefact.org/name"},"ppqDutyStation":{"@id":"https://vocabulary.uncefact.org/transitCustomsOfficeSpecifiedLocation"},"inspectionDate":{"@id":"https://vocabulary.uncefact.org/inspectionDateTime"},"inspectionPoint":{"@id":"https://vocabulary.uncefact.org/transitLocation"},"hullNumberDockyard":{"@id":"https://vocabulary.uncefact.org/identification"},"imoNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"flagCode":{"@id":"https://vocabulary.uncefact.org/identification"},"shipsOfficer":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"ownerOperator":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"instrument1MakeModel":{"@id":"https://vocabulary.uncefact.org/AttachedTransportEquipment"},"instrument2MakeModel":{"@id":"https://vocabulary.uncefact.org/AttachedTransportEquipment"},"locationsDiagramMatchSatisfactory":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"sensorsBoxesLabelingSatisfactory":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"cableLengthSatisfactory":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"reactionTimeSatisfactory":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"temperatureReadings":{"@id":"https://vocabulary.uncefact.org/transportTemperature"},"participatingOfficials":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"remarks":{"@id":"https://vocabulary.uncefact.org/remarks"},"company":{"@id":"https://vocabulary.uncefact.org/specifiedOrganization"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/performanceDateTime"}}},"USDAPPQ505PlantDeclaration":{"@id":"https://w3id.org/traceability#USDAPPQ505PlantDeclaration","@context":{"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"productDeclarations":{"@id":"https://w3id.org/traceability#LaceyActProductDeclaration"},"preparer":{"@id":"https://vocabulary.uncefact.org/declarantParty"},"date":{"@id":"https://vocabulary.uncefact.org/issueDateTime"}}},"USDAPPQ519ComplianceAgreement":{"@id":"https://w3id.org/traceability#USDAPPQ519ComplianceAgreement","@context":{"person":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"firm":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"regulatedArticles":{"@id":"https://www.gs1.org/voc/regulatedProductName"},"quarantinesRegulations":{"@id":"https://vocabulary.uncefact.org/applicableRegulatoryProcedure"},"agreement":{"@id":"https://vocabulary.uncefact.org/guarantee"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/issueDateTime"},"ppqCbpOfficial":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"usAgencyOfficial":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"agreementNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AJS"},"agreementDate":{"@id":"https://vocabulary.uncefact.org/issueDateTime"}}},"USDAPPQ587PlantImportApplication":{"@id":"https://w3id.org/traceability#USDAPPQ587PlantImportApplication","@context":{"applicant":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"intendedUse":{"@id":"https://vocabulary.uncefact.org/intendedUse"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/issueDateTime"}}},"USDASC6ExemptCommodityForm":{"@id":"https://w3id.org/traceability#USDASC6ExemptCommodityForm","@context":{"serialNumber":{"@id":"https://w3id.org/traceability#serialNumber"},"customsEntryNumber":{"@id":"https://w3id.org/traceability#customsEntryNumber"},"tariffCodeNumber":{"@id":"https://w3id.org/traceability#tariffCodeNumber"},"carrierId":{"@id":"https://w3id.org/traceability#carrierId"},"lotId":{"@id":"https://w3id.org/traceability#lotId"},"dateOfEntry":{"@id":"https://w3id.org/traceability#dateOfEntry"},"signatureDate":{"@id":"https://w3id.org/traceability#signatureDate"},"facility":{"@id":"https://www.gs1.org/voc/Place"},"inspector":{"@id":"https://w3id.org/traceability#Inspector"},"shipment":{"@id":"https://w3id.org/traceability#AgricultureParcelDelivery"},"applicant":{"@id":"https://w3id.org/traceability#applicant"},"importerSignatureDate":{"@id":"https://w3id.org/traceability#importerSignatureDate"},"inspectionDate":{"@id":"https://vocabulary.uncefact.org/inspectionDateTime"},"intendedUse":{"@id":"https://w3id.org/traceability#intendedUse"},"intendedUseCert":{"@id":"https://w3id.org/traceability#intendedUseCert"}}},"USDASpecialtyCrops237AForm":{"@id":"https://w3id.org/traceability#USDASpecialtyCrops237AForm","@context":{"requestDate":{"@id":"https://vocabulary.uncefact.org/reportSubmissionDateTime"},"anticipatedAuditDate":{"@id":"https://www.gs1.org/voc/certificationAuditDate"},"auditee":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"applicant":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"billingAccountNumber":{"@id":"https://schema.org/accountId"},"locations":{"@id":"https://schema.org/location"},"totalArea":{"@id":"https://www.gs1.org/voc/grossArea"},"commoditiesCovered":{"@id":"https://www.gs1.org/voc/certificationSubject"},"auditProgramsRequested":{"@id":"https://www.gs1.org/voc/certificationType"},"countByInspector":{"@id":"https://vocabulary.uncefact.org/applicableSpecifiedAction"},"additionalRemarks":{"@id":"https://vocabulary.uncefact.org/remarks"}}},"USMCACertifier":{"@id":"https://w3id.org/traceability/USMCACertifier","@context":{"role":{"@id":"https://w3id.org/traceability#certifierRole"},"certifierDetails":{"@id":"https://w3id.org/traceability#certifierDetails"}}},"USMCAClaims":{"@id":"https://w3id.org/traceability/USMCAClaims","@context":{"producerDetails":{"@id":"https://schema.org/manufacturer"},"producerConfidential":{"@id":"https://w3id.org/traceability#producerConfidential"},"importerDetails":{"@id":"https://w3id.org/traceability#importerDetails"},"importerUnknown":{"@id":"https://w3id.org/traceability#importerUnknown"},"exporterDetails":{"@id":"https://w3id.org/traceability#exporterDetails"},"goods":{"@id":"https://schema.org/Product"}}},"USMCAProduct":{"@id":"https://w3id.org/traceability/USMCAProduct","@context":{"commodityCode":{"@id":"https://w3id.org/traceability#commodityCode"},"commodityCodeType":{"@id":"https://w3id.org/traceability#commodityCodeType"},"originCriterion":{"@id":"https://w3id.org/traceability#originCriterion"},"countryOfOrigin":{"@id":"https://w3id.org/traceability#countryOfOrigin"}}},"WebLEI":{"@id":"https://w3id.org/traceability#WebLEI","@context":{"lei":{"@id":"https://www.gleif.org/en/about-lei/iso-17442-the-lei-code-structure#"},"entity":{"@id":"https://w3id.org/traceability#LEIEntity"},"registration":{"@id":"https://w3id.org/traceability#LEIRegistration"}}},"ActivityPubActorCard":{"@id":"https://w3id.org/traceability#ActivityPubActorCard","@context":{}},"AgricultureCanineCard":{"@id":"https://w3id.org/traceability#AgricultureCanineCard","@context":{}},"BankAccountCredential":{"@id":"https://w3id.org/traceability#BankAccountCredential","@context":{}},"BillOfLadingCredential":{"@id":"https://w3id.org/traceability#BillOfLadingCredential","@context":{}},"CBP3461EntryCredential":{"@id":"https://w3id.org/traceability#CBP3461EntryCredential","@context":{}},"CBP7501EntrySummaryCredential":{"@id":"https://w3id.org/traceability#CBP7501EntrySummaryCredential","@context":{}},"CBPEntryType86Credential":{"@id":"https://w3id.org/traceability#CBPEntryType86Credential","@context":{}},"CBPSection321DeMinimisDeMinimisCredential":{"@id":"https://w3id.org/traceability#CBPSection321DeMinimisCredential","@context":{}},"CTPATCertificate":{"@id":"https://w3id.org/traceability#CTPATCertificate","@context":{}},"CertificationOfOrigin":{"@id":"https://w3id.org/traceability#CertificationOfOrigin","@context":{}},"CommercialInvoiceCredential":{"@id":"https://w3id.org/traceability#CommercialInvoiceCredential","@context":{}},"DCSAShippingInstructionCredential":{"@id":"https://w3id.org/traceability#DCSAShippingInstructionCredential","@context":{}},"DCSATransportDocumentCredential":{"@id":"https://w3id.org/traceability#DCSATransportDocumentCredential","@context":{}},"DeliveryScheduleCredential":{"@id":"https://w3id.org/traceability#DeliveryScheduleCredential","@context":{}},"DeliveryStatementCredential":{"@id":"https://w3id.org/traceability#DeliveryStatementCredential","@context":{}},"DigitalProductPassportCredential":{"@id":"https://w3id.org/traceability#DigitalProductPassportCredential","@context":{}},"DigitalProductPassportDataCarrierCredential":{"@id":"https://w3id.org/traceability#DigitalProductPassportDataCarrierCredential","@context":{}},"EPA35401PesticidesCredential":{"@id":"https://w3id.org/traceability#EPA35401PesticidesCredential","@context":{}},"EPA35401PesticidesPart2Credential":{"@id":"https://w3id.org/traceability#EPA35401PesticidesPart2Credential","@context":{}},"EPA35401PesticidesPart3Credential":{"@id":"https://w3id.org/traceability#EPA35401PesticidesPart3Credential","@context":{}},"EntryNumberCredential":{"@id":"https://w3id.org/traceability#EntryNumberCredential","@context":{}},"FSMACreatingCTECredential":{"@id":"https://w3id.org/traceability#FSMACreatingCTECredential","@context":{}},"FSMAFirstReceiverDataCredential":{"@id":"https://w3id.org/traceability#FSMAFirstReceiverDataCredential","@context":{}},"FSMAGrowingCTECredential":{"@id":"https://w3id.org/traceability#FSMAGrowingCTECredential","@context":{}},"FSMAReceivingCTECredential":{"@id":"https://w3id.org/traceability#FSMAReceivingCTECredential","@context":{}},"FSMAShippingCTECredential":{"@id":"https://w3id.org/traceability#FSMAShippingCTECredential","@context":{}},"FSMATransformingCTECredential":{"@id":"https://w3id.org/traceability#FSMATransformingCTECredential","@context":{}},"FoodDefenseInspectionCredential":{"@id":"https://w3id.org/traceability#FoodDefenseInspectionCredential","@context":{}},"FoodGradeInspectionCredential":{"@id":"https://w3id.org/traceability#FoodGradeInspectionCredential","@context":{}},"FreightManifestCredential":{"@id":"https://w3id.org/traceability#FreightManifestCredential","@context":{}},"GAPInspectionCredential":{"@id":"https://w3id.org/traceability#GAPInspectionCredential","@context":{}},"GS18PrefixLicenseCredential":{"@id":"https://w3id.org/traceability#GS18PrefixLicenseCredential","@context":{}},"GS1CompanyPrefixLicenseCredential":{"@id":"https://w3id.org/traceability#GS1CompanyPrefixLicenseCredential","@context":{}},"GS1DataCredential":{"@id":"https://w3id.org/traceability#GS1DataCredential","@context":{}},"GS1DelegationCredential":{"@id":"https://w3id.org/traceability#GS1DelegationCredential","@context":{}},"GS1IdentificationKeyLicenseCredential":{"@id":"https://w3id.org/traceability#GS1IdentificationKeyLicenseCredential","@context":{}},"GS1KeyCredential":{"@id":"https://w3id.org/traceability#GS1KeyCredential","@context":{}},"GS1PrefixLicenseCredential":{"@id":"https://w3id.org/traceability#GS1PrefixLicenseCredential","@context":{}},"HouseBillOfLadingCredential":{"@id":"https://w3id.org/traceability#HouseBillOfLadingCredential","@context":{}},"IATAAirWaybillCredential":{"@id":"https://w3id.org/traceability#IATAAirWaybillCredential","@context":{}},"ImporterSecurityFilingCredential":{"@id":"https://w3id.org/traceability#ImporterSecurityFilingCredential","@context":{}},"IntellectualPropertyRightsCredential":{"@id":"https://w3id.org/traceability#IntellectualPropertyRightsCredential","@context":{}},"IntellectualPropertyRightsLicenseCredential":{"@id":"https://w3id.org/traceability#IntellectualPropertyRightsLicenseCredential","@context":{}},"IntentToImportCredential":{"@id":"https://w3id.org/traceability#IntentToImportCredential","@context":{}},"InventoryRegistrationCredential":{"@id":"https://w3id.org/traceability#InventoryRegistrationCredential","@context":{}},"MasterBillOfLadingCredential":{"@id":"https://w3id.org/traceability#MasterBillOfLadingCredential","@context":{}},"MexicoEInvoiceCredential":{"@id":"https://w3id.org/traceability#MexicoEInvoiceCredential","@context":{}},"MillTestReportCredential":{"@id":"https://w3id.org/traceability#MillTestReportCredential","@context":{}},"MonthlyAdvanceManifestCredential":{"@id":"https://w3id.org/traceability#MonthlyAdvanceManifestCredential","@context":{}},"MonthlyAggregateDeliveryStatementCredential":{"@id":"https://w3id.org/traceability#MonthlyAggregateDeliveryStatementCredential","@context":{}},"MultiModalBillOfLadingCredential":{"@id":"https://w3id.org/traceability#MultiModalBillOfLadingCredential","@context":{}},"OilAndGasDeliveryTicketCredential":{"@id":"https://w3id.org/traceability#OilAndGasDeliveryTicketCredential","@context":{}},"OilAndGasProductCredential":{"@id":"https://w3id.org/traceability#OilAndGasProductCredential","@context":{}},"OrderConfirmationCredential":{"@id":"https://w3id.org/traceability#OrderConfirmationCredential","@context":{}},"OrganicCertificateCredential":{"@id":"https://w3id.org/traceability#OrganicCertificateCredential","@context":{}},"PGAShipmentStatusCredential":{"@id":"https://w3id.org/traceability#PGAShipmentStatusCredential","@context":{}},"PackingListCredential":{"@id":"https://w3id.org/traceability#PackingListCredential","@context":{}},"PlantSystemsInspectionCredential":{"@id":"https://w3id.org/traceability#PlantSystemsInspectionCredential","@context":{}},"PowerOfAttorneyCredential":{"@id":"https://spec.edmcouncil.org/fibo/ontology/BE/LegalEntities/LegalPersons/PowerOfAttorney","@context":{}},"ProductRegistrationCredential":{"@id":"https://w3id.org/traceability#ProductRegistrationCredential","@context":{}},"PurchaseOrderCredential":{"@id":"https://w3id.org/traceability#PurchaseOrderCredential","@context":{}},"SIMASteelImportLicenseApplicationCredential":{"@id":"https://w3id.org/traceability#SIMASteelImportLicenseApplicationCredential","@context":{}},"SIMASteelImportLicenseCredential":{"@id":"https://w3id.org/traceability#SIMASteelImportLicenseCredential","@context":{}},"SeaCargoManifestCredential":{"@id":"https://w3id.org/traceability#SeaCargoManifestCredential","@context":{}},"ShippingInstructionsCredential":{"@id":"https://w3id.org/traceability#ShippingInstructionsCredential","@context":{}},"SoftwareBillofMaterialsCredential":{"@id":"https://w3id.org/traceability#SoftwareBillOfMaterialsCredential","@context":{}},"TSCACertificationCredential":{"@id":"https://w3id.org/traceability#TSCACertificationCredential","@context":{}},"ThingCredential":{"@id":"https://w3id.org/traceability#ThingCredential","@context":{}},"USMCACertificationOfOrigin":{"@id":"https://w3id.org/traceability#USMCACertificationOfOrigin","@context":{}},"VerifiableBusinessCard":{"@id":"https://w3id.org/traceability#VerifiableBusinessCard","@context":{}},"VerifiablePostmanCollection":{"@id":"https://w3id.org/traceability#VerifiablePostmanCollection","@context":{}},"VerifiableScorecard":{"@id":"https://w3id.org/traceability#VerifiableScorecard","@context":{}},"environmentalImpactCredential":{"@id":"https://w3id.org/traceability#environmentalImpactCredential","@context":{}}}}')}};var __webpack_module_cache__={};function __nccwpck_require__(R){var pe=__webpack_module_cache__[R];if(pe!==undefined){return pe.exports}var Ae=__webpack_module_cache__[R]={id:R,loaded:false,exports:{}};var he=true;try{__webpack_modules__[R].call(Ae.exports,Ae,Ae.exports,__nccwpck_require__);he=false}finally{if(he)delete __webpack_module_cache__[R]}Ae.loaded=true;return Ae.exports}__nccwpck_require__.m=__webpack_modules__;(()=>{var R=typeof Symbol==="function"?Symbol("webpack queues"):"__webpack_queues__";var pe=typeof Symbol==="function"?Symbol("webpack exports"):"__webpack_exports__";var Ae=typeof Symbol==="function"?Symbol("webpack error"):"__webpack_error__";var resolveQueue=R=>{if(R&&!R.d){R.d=1;R.forEach((R=>R.r--));R.forEach((R=>R.r--?R.r++:R()))}};var wrapDeps=he=>he.map((he=>{if(he!==null&&typeof he==="object"){if(he[R])return he;if(he.then){var ge=[];ge.d=0;he.then((R=>{ye[pe]=R;resolveQueue(ge)}),(R=>{ye[Ae]=R;resolveQueue(ge)}));var ye={};ye[R]=R=>R(ge);return ye}}var me={};me[R]=R=>{};me[pe]=he;return me}));__nccwpck_require__.a=(he,ge,ye)=>{var me;ye&&((me=[]).d=1);var ve=new Set;var be=he.exports;var Ee;var Ce;var we;var _e=new Promise(((R,pe)=>{we=pe;Ce=R}));_e[pe]=be;_e[R]=R=>(me&&R(me),ve.forEach(R),_e["catch"]((R=>{})));he.exports=_e;ge((he=>{Ee=wrapDeps(he);var ge;var getResult=()=>Ee.map((R=>{if(R[Ae])throw R[Ae];return R[pe]}));var ye=new Promise((pe=>{ge=()=>pe(getResult);ge.r=0;var fnQueue=R=>R!==me&&!ve.has(R)&&(ve.add(R),R&&!R.d&&(ge.r++,R.push(ge)));Ee.map((pe=>pe[R](fnQueue)))}));return ge.r?ye:getResult()}),(R=>(R?we(_e[Ae]=R):Ce(be),resolveQueue(me))));me&&(me.d=0)}})();(()=>{var R=Object.getPrototypeOf?R=>Object.getPrototypeOf(R):R=>R.__proto__;var pe;__nccwpck_require__.t=function(Ae,he){if(he&1)Ae=this(Ae);if(he&8)return Ae;if(typeof Ae==="object"&&Ae){if(he&4&&Ae.__esModule)return Ae;if(he&16&&typeof Ae.then==="function")return Ae}var ge=Object.create(null);__nccwpck_require__.r(ge);var ye={};pe=pe||[null,R({}),R([]),R(R)];for(var me=he&2&&Ae;typeof me=="object"&&!~pe.indexOf(me);me=R(me)){Object.getOwnPropertyNames(me).forEach((R=>ye[R]=()=>Ae[R]))}ye["default"]=()=>Ae;__nccwpck_require__.d(ge,ye);return ge}})();(()=>{__nccwpck_require__.d=(R,pe)=>{for(var Ae in pe){if(__nccwpck_require__.o(pe,Ae)&&!__nccwpck_require__.o(R,Ae)){Object.defineProperty(R,Ae,{enumerable:true,get:pe[Ae]})}}}})();(()=>{__nccwpck_require__.f={};__nccwpck_require__.e=R=>Promise.all(Object.keys(__nccwpck_require__.f).reduce(((pe,Ae)=>{__nccwpck_require__.f[Ae](R,pe);return pe}),[]))})();(()=>{__nccwpck_require__.u=R=>""+R+".index.js"})();(()=>{__nccwpck_require__.o=(R,pe)=>Object.prototype.hasOwnProperty.call(R,pe)})();(()=>{__nccwpck_require__.r=R=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(R,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=R=>{R.paths=[];if(!R.children)R.children=[];return R}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";(()=>{var R={179:1};var installChunk=pe=>{var Ae=pe.modules,he=pe.ids,ge=pe.runtime;for(var ye in Ae){if(__nccwpck_require__.o(Ae,ye)){__nccwpck_require__.m[ye]=Ae[ye]}}if(ge)ge(__nccwpck_require__);for(var me=0;me{if(!R[pe]){if(true){installChunk(require("./"+__nccwpck_require__.u(pe)))}else R[pe]=1}}})();var __webpack_exports__={};(()=>{"use strict";var R=__webpack_exports__;Object.defineProperty(R,"__esModule",{value:true});const pe=__nccwpck_require__(94700);(0,pe.facade)()})();module.exports=__webpack_exports__})(); \ No newline at end of file + */const _e=createInstance();pe.DEFAULT_HEADERS=we;pe.httpClient=_e;pe.kyPromise=Ee},88757:(R,pe,Ae)=>{"use strict";const he=Ae(64334);const ge=Ae(57310);const ye=Ae(63329);const me=Ae(13685);const ve=Ae(95687);const be=Ae(73837);const Ee=Ae(67707);const we=Ae(59796);const Ce=Ae(12781);const _e=Ae(82361);function _interopDefaultLegacy(R){return R&&typeof R==="object"&&"default"in R?R:{default:R}}const Ie=_interopDefaultLegacy(he);const Se=_interopDefaultLegacy(ge);const Be=_interopDefaultLegacy(me);const ke=_interopDefaultLegacy(ve);const Oe=_interopDefaultLegacy(be);const Re=_interopDefaultLegacy(Ee);const Qe=_interopDefaultLegacy(we);const xe=_interopDefaultLegacy(Ce);function bind(R,pe){return function wrap(){return R.apply(pe,arguments)}}const{toString:Pe}=Object.prototype;const{getPrototypeOf:Te}=Object;const De=(R=>pe=>{const Ae=Pe.call(pe);return R[Ae]||(R[Ae]=Ae.slice(8,-1).toLowerCase())})(Object.create(null));const kindOfTest=R=>{R=R.toLowerCase();return pe=>De(pe)===R};const typeOfTest=R=>pe=>typeof pe===R;const{isArray:Ne}=Array;const Me=typeOfTest("undefined");function isBuffer(R){return R!==null&&!Me(R)&&R.constructor!==null&&!Me(R.constructor)&&Le(R.constructor.isBuffer)&&R.constructor.isBuffer(R)}const je=kindOfTest("ArrayBuffer");function isArrayBufferView(R){let pe;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){pe=ArrayBuffer.isView(R)}else{pe=R&&R.buffer&&je(R.buffer)}return pe}const Fe=typeOfTest("string");const Le=typeOfTest("function");const Ue=typeOfTest("number");const isObject=R=>R!==null&&typeof R==="object";const isBoolean=R=>R===true||R===false;const isPlainObject=R=>{if(De(R)!=="object"){return false}const pe=Te(R);return(pe===null||pe===Object.prototype||Object.getPrototypeOf(pe)===null)&&!(Symbol.toStringTag in R)&&!(Symbol.iterator in R)};const He=kindOfTest("Date");const Je=kindOfTest("File");const We=kindOfTest("Blob");const Ve=kindOfTest("FileList");const isStream=R=>isObject(R)&&Le(R.pipe);const isFormData=R=>{let pe;return R&&(typeof FormData==="function"&&R instanceof FormData||Le(R.append)&&((pe=De(R))==="formdata"||pe==="object"&&Le(R.toString)&&R.toString()==="[object FormData]"))};const Ke=kindOfTest("URLSearchParams");const[Ge,Ye,qe,$e]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);const trim=R=>R.trim?R.trim():R.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(R,pe,{allOwnKeys:Ae=false}={}){if(R===null||typeof R==="undefined"){return}let he;let ge;if(typeof R!=="object"){R=[R]}if(Ne(R)){for(he=0,ge=R.length;he0){ge=Ae[he];if(pe===ge.toLowerCase()){return ge}}return null}const ze=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})();const isContextDefined=R=>!Me(R)&&R!==ze;function merge(){const{caseless:R}=isContextDefined(this)&&this||{};const pe={};const assignValue=(Ae,he)=>{const ge=R&&findKey(pe,he)||he;if(isPlainObject(pe[ge])&&isPlainObject(Ae)){pe[ge]=merge(pe[ge],Ae)}else if(isPlainObject(Ae)){pe[ge]=merge({},Ae)}else if(Ne(Ae)){pe[ge]=Ae.slice()}else{pe[ge]=Ae}};for(let R=0,pe=arguments.length;R{forEach(pe,((pe,he)=>{if(Ae&&Le(pe)){R[he]=bind(pe,Ae)}else{R[he]=pe}}),{allOwnKeys:he});return R};const stripBOM=R=>{if(R.charCodeAt(0)===65279){R=R.slice(1)}return R};const inherits=(R,pe,Ae,he)=>{R.prototype=Object.create(pe.prototype,he);R.prototype.constructor=R;Object.defineProperty(R,"super",{value:pe.prototype});Ae&&Object.assign(R.prototype,Ae)};const toFlatObject=(R,pe,Ae,he)=>{let ge;let ye;let me;const ve={};pe=pe||{};if(R==null)return pe;do{ge=Object.getOwnPropertyNames(R);ye=ge.length;while(ye-- >0){me=ge[ye];if((!he||he(me,R,pe))&&!ve[me]){pe[me]=R[me];ve[me]=true}}R=Ae!==false&&Te(R)}while(R&&(!Ae||Ae(R,pe))&&R!==Object.prototype);return pe};const endsWith=(R,pe,Ae)=>{R=String(R);if(Ae===undefined||Ae>R.length){Ae=R.length}Ae-=pe.length;const he=R.indexOf(pe,Ae);return he!==-1&&he===Ae};const toArray=R=>{if(!R)return null;if(Ne(R))return R;let pe=R.length;if(!Ue(pe))return null;const Ae=new Array(pe);while(pe-- >0){Ae[pe]=R[pe]}return Ae};const Xe=(R=>pe=>R&&pe instanceof R)(typeof Uint8Array!=="undefined"&&Te(Uint8Array));const forEachEntry=(R,pe)=>{const Ae=R&&R[Symbol.iterator];const he=Ae.call(R);let ge;while((ge=he.next())&&!ge.done){const Ae=ge.value;pe.call(R,Ae[0],Ae[1])}};const matchAll=(R,pe)=>{let Ae;const he=[];while((Ae=R.exec(pe))!==null){he.push(Ae)}return he};const Ze=kindOfTest("HTMLFormElement");const toCamelCase=R=>R.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function replacer(R,pe,Ae){return pe.toUpperCase()+Ae}));const et=(({hasOwnProperty:R})=>(pe,Ae)=>R.call(pe,Ae))(Object.prototype);const tt=kindOfTest("RegExp");const reduceDescriptors=(R,pe)=>{const Ae=Object.getOwnPropertyDescriptors(R);const he={};forEach(Ae,((Ae,ge)=>{let ye;if((ye=pe(Ae,ge,R))!==false){he[ge]=ye||Ae}}));Object.defineProperties(R,he)};const freezeMethods=R=>{reduceDescriptors(R,((pe,Ae)=>{if(Le(R)&&["arguments","caller","callee"].indexOf(Ae)!==-1){return false}const he=R[Ae];if(!Le(he))return;pe.enumerable=false;if("writable"in pe){pe.writable=false;return}if(!pe.set){pe.set=()=>{throw Error("Can not rewrite read-only method '"+Ae+"'")}}}))};const toObjectSet=(R,pe)=>{const Ae={};const define=R=>{R.forEach((R=>{Ae[R]=true}))};Ne(R)?define(R):define(String(R).split(pe));return Ae};const noop=()=>{};const toFiniteNumber=(R,pe)=>R!=null&&Number.isFinite(R=+R)?R:pe;const rt="abcdefghijklmnopqrstuvwxyz";const nt="0123456789";const it={DIGIT:nt,ALPHA:rt,ALPHA_DIGIT:rt+rt.toUpperCase()+nt};const generateString=(R=16,pe=it.ALPHA_DIGIT)=>{let Ae="";const{length:he}=pe;while(R--){Ae+=pe[Math.random()*he|0]}return Ae};function isSpecCompliantForm(R){return!!(R&&Le(R.append)&&R[Symbol.toStringTag]==="FormData"&&R[Symbol.iterator])}const toJSONObject=R=>{const pe=new Array(10);const visit=(R,Ae)=>{if(isObject(R)){if(pe.indexOf(R)>=0){return}if(!("toJSON"in R)){pe[Ae]=R;const he=Ne(R)?[]:{};forEach(R,((R,pe)=>{const ge=visit(R,Ae+1);!Me(ge)&&(he[pe]=ge)}));pe[Ae]=undefined;return he}}return R};return visit(R,0)};const ot=kindOfTest("AsyncFunction");const isThenable=R=>R&&(isObject(R)||Le(R))&&Le(R.then)&&Le(R.catch);const st=((R,pe)=>{if(R){return setImmediate}return pe?((R,pe)=>{ze.addEventListener("message",(({source:Ae,data:he})=>{if(Ae===ze&&he===R){pe.length&&pe.shift()()}}),false);return Ae=>{pe.push(Ae);ze.postMessage(R,"*")}})(`axios@${Math.random()}`,[]):R=>setTimeout(R)})(typeof setImmediate==="function",Le(ze.postMessage));const at=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(ze):typeof process!=="undefined"&&process.nextTick||st;const ct={isArray:Ne,isArrayBuffer:je,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:Fe,isNumber:Ue,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:Ge,isRequest:Ye,isResponse:qe,isHeaders:$e,isUndefined:Me,isDate:He,isFile:Je,isBlob:We,isRegExp:tt,isFunction:Le,isStream:isStream,isURLSearchParams:Ke,isTypedArray:Xe,isFileList:Ve,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:De,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:Ze,hasOwnProperty:et,hasOwnProp:et,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:ze,isContextDefined:isContextDefined,ALPHABET:it,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:ot,isThenable:isThenable,setImmediate:st,asap:at};function AxiosError(R,pe,Ae,he,ge){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=R;this.name="AxiosError";pe&&(this.code=pe);Ae&&(this.config=Ae);he&&(this.request=he);ge&&(this.response=ge)}ct.inherits(AxiosError,Error,{toJSON:function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ct.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ut=AxiosError.prototype;const lt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((R=>{lt[R]={value:R}}));Object.defineProperties(AxiosError,lt);Object.defineProperty(ut,"isAxiosError",{value:true});AxiosError.from=(R,pe,Ae,he,ge,ye)=>{const me=Object.create(ut);ct.toFlatObject(R,me,(function filter(R){return R!==Error.prototype}),(R=>R!=="isAxiosError"));AxiosError.call(me,R.message,pe,Ae,he,ge);me.cause=R;me.name=R.name;ye&&Object.assign(me,ye);return me};function isVisitable(R){return ct.isPlainObject(R)||ct.isArray(R)}function removeBrackets(R){return ct.endsWith(R,"[]")?R.slice(0,-2):R}function renderKey(R,pe,Ae){if(!R)return pe;return R.concat(pe).map((function each(R,pe){R=removeBrackets(R);return!Ae&&pe?"["+R+"]":R})).join(Ae?".":"")}function isFlatArray(R){return ct.isArray(R)&&!R.some(isVisitable)}const dt=ct.toFlatObject(ct,{},null,(function filter(R){return/^is[A-Z]/.test(R)}));function toFormData(R,pe,Ae){if(!ct.isObject(R)){throw new TypeError("target must be an object")}pe=pe||new(Ie["default"]||FormData);Ae=ct.toFlatObject(Ae,{metaTokens:true,dots:false,indexes:false},false,(function defined(R,pe){return!ct.isUndefined(pe[R])}));const he=Ae.metaTokens;const ge=Ae.visitor||defaultVisitor;const ye=Ae.dots;const me=Ae.indexes;const ve=Ae.Blob||typeof Blob!=="undefined"&&Blob;const be=ve&&ct.isSpecCompliantForm(pe);if(!ct.isFunction(ge)){throw new TypeError("visitor must be a function")}function convertValue(R){if(R===null)return"";if(ct.isDate(R)){return R.toISOString()}if(!be&&ct.isBlob(R)){throw new AxiosError("Blob is not supported. Use a Buffer instead.")}if(ct.isArrayBuffer(R)||ct.isTypedArray(R)){return be&&typeof Blob==="function"?new Blob([R]):Buffer.from(R)}return R}function defaultVisitor(R,Ae,ge){let ve=R;if(R&&!ge&&typeof R==="object"){if(ct.endsWith(Ae,"{}")){Ae=he?Ae:Ae.slice(0,-2);R=JSON.stringify(R)}else if(ct.isArray(R)&&isFlatArray(R)||(ct.isFileList(R)||ct.endsWith(Ae,"[]"))&&(ve=ct.toArray(R))){Ae=removeBrackets(Ae);ve.forEach((function each(R,he){!(ct.isUndefined(R)||R===null)&&pe.append(me===true?renderKey([Ae],he,ye):me===null?Ae:Ae+"[]",convertValue(R))}));return false}}if(isVisitable(R)){return true}pe.append(renderKey(ge,Ae,ye),convertValue(R));return false}const Ee=[];const we=Object.assign(dt,{defaultVisitor:defaultVisitor,convertValue:convertValue,isVisitable:isVisitable});function build(R,Ae){if(ct.isUndefined(R))return;if(Ee.indexOf(R)!==-1){throw Error("Circular reference detected in "+Ae.join("."))}Ee.push(R);ct.forEach(R,(function each(R,he){const ye=!(ct.isUndefined(R)||R===null)&&ge.call(pe,R,ct.isString(he)?he.trim():he,Ae,we);if(ye===true){build(R,Ae?Ae.concat(he):[he])}}));Ee.pop()}if(!ct.isObject(R)){throw new TypeError("data must be an object")}build(R);return pe}function encode$1(R){const pe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(R).replace(/[!'()~]|%20|%00/g,(function replacer(R){return pe[R]}))}function AxiosURLSearchParams(R,pe){this._pairs=[];R&&toFormData(R,this,pe)}const ft=AxiosURLSearchParams.prototype;ft.append=function append(R,pe){this._pairs.push([R,pe])};ft.toString=function toString(R){const pe=R?function(pe){return R.call(this,pe,encode$1)}:encode$1;return this._pairs.map((function each(R){return pe(R[0])+"="+pe(R[1])}),"").join("&")};function encode(R){return encodeURIComponent(R).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(R,pe,Ae){if(!pe){return R}const he=Ae&&Ae.encode||encode;const ge=Ae&&Ae.serialize;let ye;if(ge){ye=ge(pe,Ae)}else{ye=ct.isURLSearchParams(pe)?pe.toString():new AxiosURLSearchParams(pe,Ae).toString(he)}if(ye){const pe=R.indexOf("#");if(pe!==-1){R=R.slice(0,pe)}R+=(R.indexOf("?")===-1?"?":"&")+ye}return R}class InterceptorManager{constructor(){this.handlers=[]}use(R,pe,Ae){this.handlers.push({fulfilled:R,rejected:pe,synchronous:Ae?Ae.synchronous:false,runWhen:Ae?Ae.runWhen:null});return this.handlers.length-1}eject(R){if(this.handlers[R]){this.handlers[R]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(R){ct.forEach(this.handlers,(function forEachHandler(pe){if(pe!==null){R(pe)}}))}}const pt=InterceptorManager;const At={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};const ht=Se["default"].URLSearchParams;const gt={isNode:true,classes:{URLSearchParams:ht,FormData:Ie["default"],Blob:typeof Blob!=="undefined"&&Blob||null},protocols:["http","https","file","data"]};const yt=typeof window!=="undefined"&&typeof document!=="undefined";const mt=(R=>yt&&["ReactNative","NativeScript","NS"].indexOf(R)<0)(typeof navigator!=="undefined"&&navigator.product);const vt=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const bt=yt&&window.location.href||"http://localhost";const Et=Object.freeze({__proto__:null,hasBrowserEnv:yt,hasStandardBrowserWebWorkerEnv:vt,hasStandardBrowserEnv:mt,origin:bt});const wt={...Et,...gt};function toURLEncodedForm(R,pe){return toFormData(R,new wt.classes.URLSearchParams,Object.assign({visitor:function(R,pe,Ae,he){if(wt.isNode&&ct.isBuffer(R)){this.append(pe,R.toString("base64"));return false}return he.defaultVisitor.apply(this,arguments)}},pe))}function parsePropPath(R){return ct.matchAll(/\w+|\[(\w*)]/g,R).map((R=>R[0]==="[]"?"":R[1]||R[0]))}function arrayToObject(R){const pe={};const Ae=Object.keys(R);let he;const ge=Ae.length;let ye;for(he=0;he=R.length;ge=!ge&&ct.isArray(Ae)?Ae.length:ge;if(me){if(ct.hasOwnProp(Ae,ge)){Ae[ge]=[Ae[ge],pe]}else{Ae[ge]=pe}return!ye}if(!Ae[ge]||!ct.isObject(Ae[ge])){Ae[ge]=[]}const ve=buildPath(R,pe,Ae[ge],he);if(ve&&ct.isArray(Ae[ge])){Ae[ge]=arrayToObject(Ae[ge])}return!ye}if(ct.isFormData(R)&&ct.isFunction(R.entries)){const pe={};ct.forEachEntry(R,((R,Ae)=>{buildPath(parsePropPath(R),Ae,pe,0)}));return pe}return null}function stringifySafely(R,pe,Ae){if(ct.isString(R)){try{(pe||JSON.parse)(R);return ct.trim(R)}catch(R){if(R.name!=="SyntaxError"){throw R}}}return(Ae||JSON.stringify)(R)}const Ct={transitional:At,adapter:["xhr","http","fetch"],transformRequest:[function transformRequest(R,pe){const Ae=pe.getContentType()||"";const he=Ae.indexOf("application/json")>-1;const ge=ct.isObject(R);if(ge&&ct.isHTMLForm(R)){R=new FormData(R)}const ye=ct.isFormData(R);if(ye){return he?JSON.stringify(formDataToJSON(R)):R}if(ct.isArrayBuffer(R)||ct.isBuffer(R)||ct.isStream(R)||ct.isFile(R)||ct.isBlob(R)||ct.isReadableStream(R)){return R}if(ct.isArrayBufferView(R)){return R.buffer}if(ct.isURLSearchParams(R)){pe.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return R.toString()}let me;if(ge){if(Ae.indexOf("application/x-www-form-urlencoded")>-1){return toURLEncodedForm(R,this.formSerializer).toString()}if((me=ct.isFileList(R))||Ae.indexOf("multipart/form-data")>-1){const pe=this.env&&this.env.FormData;return toFormData(me?{"files[]":R}:R,pe&&new pe,this.formSerializer)}}if(ge||he){pe.setContentType("application/json",false);return stringifySafely(R)}return R}],transformResponse:[function transformResponse(R){const pe=this.transitional||Ct.transitional;const Ae=pe&&pe.forcedJSONParsing;const he=this.responseType==="json";if(ct.isResponse(R)||ct.isReadableStream(R)){return R}if(R&&ct.isString(R)&&(Ae&&!this.responseType||he)){const Ae=pe&&pe.silentJSONParsing;const ge=!Ae&&he;try{return JSON.parse(R)}catch(R){if(ge){if(R.name==="SyntaxError"){throw AxiosError.from(R,AxiosError.ERR_BAD_RESPONSE,this,null,this.response)}throw R}}}return R}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function validateStatus(R){return R>=200&&R<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};ct.forEach(["delete","get","head","post","put","patch"],(R=>{Ct.headers[R]={}}));const _t=Ct;const It=ct.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const parseHeaders=R=>{const pe={};let Ae;let he;let ge;R&&R.split("\n").forEach((function parser(R){ge=R.indexOf(":");Ae=R.substring(0,ge).trim().toLowerCase();he=R.substring(ge+1).trim();if(!Ae||pe[Ae]&&It[Ae]){return}if(Ae==="set-cookie"){if(pe[Ae]){pe[Ae].push(he)}else{pe[Ae]=[he]}}else{pe[Ae]=pe[Ae]?pe[Ae]+", "+he:he}}));return pe};const St=Symbol("internals");function normalizeHeader(R){return R&&String(R).trim().toLowerCase()}function normalizeValue(R){if(R===false||R==null){return R}return ct.isArray(R)?R.map(normalizeValue):String(R)}function parseTokens(R){const pe=Object.create(null);const Ae=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let he;while(he=Ae.exec(R)){pe[he[1]]=he[2]}return pe}const isValidHeaderName=R=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(R.trim());function matchHeaderValue(R,pe,Ae,he,ge){if(ct.isFunction(he)){return he.call(this,pe,Ae)}if(ge){pe=Ae}if(!ct.isString(pe))return;if(ct.isString(he)){return pe.indexOf(he)!==-1}if(ct.isRegExp(he)){return he.test(pe)}}function formatHeader(R){return R.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((R,pe,Ae)=>pe.toUpperCase()+Ae))}function buildAccessors(R,pe){const Ae=ct.toCamelCase(" "+pe);["get","set","has"].forEach((he=>{Object.defineProperty(R,he+Ae,{value:function(R,Ae,ge){return this[he].call(this,pe,R,Ae,ge)},configurable:true})}))}class AxiosHeaders{constructor(R){R&&this.set(R)}set(R,pe,Ae){const he=this;function setHeader(R,pe,Ae){const ge=normalizeHeader(pe);if(!ge){throw new Error("header name must be a non-empty string")}const ye=ct.findKey(he,ge);if(!ye||he[ye]===undefined||Ae===true||Ae===undefined&&he[ye]!==false){he[ye||pe]=normalizeValue(R)}}const setHeaders=(R,pe)=>ct.forEach(R,((R,Ae)=>setHeader(R,Ae,pe)));if(ct.isPlainObject(R)||R instanceof this.constructor){setHeaders(R,pe)}else if(ct.isString(R)&&(R=R.trim())&&!isValidHeaderName(R)){setHeaders(parseHeaders(R),pe)}else if(ct.isHeaders(R)){for(const[pe,he]of R.entries()){setHeader(he,pe,Ae)}}else{R!=null&&setHeader(pe,R,Ae)}return this}get(R,pe){R=normalizeHeader(R);if(R){const Ae=ct.findKey(this,R);if(Ae){const R=this[Ae];if(!pe){return R}if(pe===true){return parseTokens(R)}if(ct.isFunction(pe)){return pe.call(this,R,Ae)}if(ct.isRegExp(pe)){return pe.exec(R)}throw new TypeError("parser must be boolean|regexp|function")}}}has(R,pe){R=normalizeHeader(R);if(R){const Ae=ct.findKey(this,R);return!!(Ae&&this[Ae]!==undefined&&(!pe||matchHeaderValue(this,this[Ae],Ae,pe)))}return false}delete(R,pe){const Ae=this;let he=false;function deleteHeader(R){R=normalizeHeader(R);if(R){const ge=ct.findKey(Ae,R);if(ge&&(!pe||matchHeaderValue(Ae,Ae[ge],ge,pe))){delete Ae[ge];he=true}}}if(ct.isArray(R)){R.forEach(deleteHeader)}else{deleteHeader(R)}return he}clear(R){const pe=Object.keys(this);let Ae=pe.length;let he=false;while(Ae--){const ge=pe[Ae];if(!R||matchHeaderValue(this,this[ge],ge,R,true)){delete this[ge];he=true}}return he}normalize(R){const pe=this;const Ae={};ct.forEach(this,((he,ge)=>{const ye=ct.findKey(Ae,ge);if(ye){pe[ye]=normalizeValue(he);delete pe[ge];return}const me=R?formatHeader(ge):String(ge).trim();if(me!==ge){delete pe[ge]}pe[me]=normalizeValue(he);Ae[me]=true}));return this}concat(...R){return this.constructor.concat(this,...R)}toJSON(R){const pe=Object.create(null);ct.forEach(this,((Ae,he)=>{Ae!=null&&Ae!==false&&(pe[he]=R&&ct.isArray(Ae)?Ae.join(", "):Ae)}));return pe}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([R,pe])=>R+": "+pe)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(R){return R instanceof this?R:new this(R)}static concat(R,...pe){const Ae=new this(R);pe.forEach((R=>Ae.set(R)));return Ae}static accessor(R){const pe=this[St]=this[St]={accessors:{}};const Ae=pe.accessors;const he=this.prototype;function defineAccessor(R){const pe=normalizeHeader(R);if(!Ae[pe]){buildAccessors(he,R);Ae[pe]=true}}ct.isArray(R)?R.forEach(defineAccessor):defineAccessor(R);return this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ct.reduceDescriptors(AxiosHeaders.prototype,(({value:R},pe)=>{let Ae=pe[0].toUpperCase()+pe.slice(1);return{get:()=>R,set(R){this[Ae]=R}}}));ct.freezeMethods(AxiosHeaders);const Bt=AxiosHeaders;function transformData(R,pe){const Ae=this||_t;const he=pe||Ae;const ge=Bt.from(he.headers);let ye=he.data;ct.forEach(R,(function transform(R){ye=R.call(Ae,ye,ge.normalize(),pe?pe.status:undefined)}));ge.normalize();return ye}function isCancel(R){return!!(R&&R.__CANCEL__)}function CanceledError(R,pe,Ae){AxiosError.call(this,R==null?"canceled":R,AxiosError.ERR_CANCELED,pe,Ae);this.name="CanceledError"}ct.inherits(CanceledError,AxiosError,{__CANCEL__:true});function settle(R,pe,Ae){const he=Ae.config.validateStatus;if(!Ae.status||!he||he(Ae.status)){R(Ae)}else{pe(new AxiosError("Request failed with status code "+Ae.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(Ae.status/100)-4],Ae.config,Ae.request,Ae))}}function isAbsoluteURL(R){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(R)}function combineURLs(R,pe){return pe?R.replace(/\/?\/$/,"")+"/"+pe.replace(/^\/+/,""):R}function buildFullPath(R,pe){if(R&&!isAbsoluteURL(pe)){return combineURLs(R,pe)}return pe}const kt="1.7.3";function parseProtocol(R){const pe=/^([-+\w]{1,25})(:?\/\/|:)/.exec(R);return pe&&pe[1]||""}const Ot=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function fromDataURI(R,pe,Ae){const he=Ae&&Ae.Blob||wt.classes.Blob;const ge=parseProtocol(R);if(pe===undefined&&he){pe=true}if(ge==="data"){R=ge.length?R.slice(ge.length+1):R;const Ae=Ot.exec(R);if(!Ae){throw new AxiosError("Invalid URL",AxiosError.ERR_INVALID_URL)}const ye=Ae[1];const me=Ae[2];const ve=Ae[3];const be=Buffer.from(decodeURIComponent(ve),me?"base64":"utf8");if(pe){if(!he){throw new AxiosError("Blob is not supported",AxiosError.ERR_NOT_SUPPORT)}return new he([be],{type:ye})}return be}throw new AxiosError("Unsupported protocol "+ge,AxiosError.ERR_NOT_SUPPORT)}const Rt=Symbol("internals");class AxiosTransformStream extends xe["default"].Transform{constructor(R){R=ct.toFlatObject(R,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((R,pe)=>!ct.isUndefined(pe[R])));super({readableHighWaterMark:R.chunkSize});const pe=this[Rt]={timeWindow:R.timeWindow,chunkSize:R.chunkSize,maxRate:R.maxRate,minChunkSize:R.minChunkSize,bytesSeen:0,isCaptured:false,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(R=>{if(R==="progress"){if(!pe.isCaptured){pe.isCaptured=true}}}))}_read(R){const pe=this[Rt];if(pe.onReadCallback){pe.onReadCallback()}return super._read(R)}_transform(R,pe,Ae){const he=this[Rt];const ge=he.maxRate;const ye=this.readableHighWaterMark;const me=he.timeWindow;const ve=1e3/me;const be=ge/ve;const Ee=he.minChunkSize!==false?Math.max(he.minChunkSize,be*.01):0;const pushChunk=(R,pe)=>{const Ae=Buffer.byteLength(R);he.bytesSeen+=Ae;he.bytes+=Ae;he.isCaptured&&this.emit("progress",he.bytesSeen);if(this.push(R)){process.nextTick(pe)}else{he.onReadCallback=()=>{he.onReadCallback=null;process.nextTick(pe)}}};const transformChunk=(R,pe)=>{const Ae=Buffer.byteLength(R);let ve=null;let we=ye;let Ce;let _e=0;if(ge){const R=Date.now();if(!he.ts||(_e=R-he.ts)>=me){he.ts=R;Ce=be-he.bytes;he.bytes=Ce<0?-Ce:0;_e=0}Ce=be-he.bytes}if(ge){if(Ce<=0){return setTimeout((()=>{pe(null,R)}),me-_e)}if(Cewe&&Ae-we>Ee){ve=R.subarray(we);R=R.subarray(0,we)}pushChunk(R,ve?()=>{process.nextTick(pe,null,ve)}:pe)};transformChunk(R,(function transformNextChunk(R,pe){if(R){return Ae(R)}if(pe){transformChunk(pe,transformNextChunk)}else{Ae(null)}}))}}const Qt=AxiosTransformStream;const{asyncIterator:xt}=Symbol;const readBlob=async function*(R){if(R.stream){yield*R.stream()}else if(R.arrayBuffer){yield await R.arrayBuffer()}else if(R[xt]){yield*R[xt]()}else{yield R}};const Pt=readBlob;const Tt=ct.ALPHABET.ALPHA_DIGIT+"-_";const Dt=new be.TextEncoder;const Nt="\r\n";const Mt=Dt.encode(Nt);const jt=2;class FormDataPart{constructor(R,pe){const{escapeName:Ae}=this.constructor;const he=ct.isString(pe);let ge=`Content-Disposition: form-data; name="${Ae(R)}"${!he&&pe.name?`; filename="${Ae(pe.name)}"`:""}${Nt}`;if(he){pe=Dt.encode(String(pe).replace(/\r?\n|\r\n?/g,Nt))}else{ge+=`Content-Type: ${pe.type||"application/octet-stream"}${Nt}`}this.headers=Dt.encode(ge+Nt);this.contentLength=he?pe.byteLength:pe.size;this.size=this.headers.byteLength+this.contentLength+jt;this.name=R;this.value=pe}async*encode(){yield this.headers;const{value:R}=this;if(ct.isTypedArray(R)){yield R}else{yield*Pt(R)}yield Mt}static escapeName(R){return String(R).replace(/[\r\n"]/g,(R=>({"\r":"%0D","\n":"%0A",'"':"%22"}[R])))}}const formDataToStream=(R,pe,Ae)=>{const{tag:he="form-data-boundary",size:ge=25,boundary:ye=he+"-"+ct.generateString(ge,Tt)}=Ae||{};if(!ct.isFormData(R)){throw TypeError("FormData instance required")}if(ye.length<1||ye.length>70){throw Error("boundary must be 10-70 characters long")}const me=Dt.encode("--"+ye+Nt);const ve=Dt.encode("--"+ye+"--"+Nt+Nt);let be=ve.byteLength;const Ee=Array.from(R.entries()).map((([R,pe])=>{const Ae=new FormDataPart(R,pe);be+=Ae.size;return Ae}));be+=me.byteLength*Ee.length;be=ct.toFiniteNumber(be);const we={"Content-Type":`multipart/form-data; boundary=${ye}`};if(Number.isFinite(be)){we["Content-Length"]=be}pe&&pe(we);return Ce.Readable.from(async function*(){for(const R of Ee){yield me;yield*R.encode()}yield ve}())};const Ft=formDataToStream;class ZlibHeaderTransformStream extends xe["default"].Transform{__transform(R,pe,Ae){this.push(R);Ae()}_transform(R,pe,Ae){if(R.length!==0){this._transform=this.__transform;if(R[0]!==120){const R=Buffer.alloc(2);R[0]=120;R[1]=156;this.push(R,pe)}}this.__transform(R,pe,Ae)}}const Lt=ZlibHeaderTransformStream;const callbackify=(R,pe)=>ct.isAsyncFn(R)?function(...Ae){const he=Ae.pop();R.apply(this,Ae).then((R=>{try{pe?he(null,...pe(R)):he(null,R)}catch(R){he(R)}}),he)}:R;const Ut=callbackify;function speedometer(R,pe){R=R||10;const Ae=new Array(R);const he=new Array(R);let ge=0;let ye=0;let me;pe=pe!==undefined?pe:1e3;return function push(ve){const be=Date.now();const Ee=he[ye];if(!me){me=be}Ae[ge]=ve;he[ge]=be;let we=ye;let Ce=0;while(we!==ge){Ce+=Ae[we++];we=we%R}ge=(ge+1)%R;if(ge===ye){ye=(ye+1)%R}if(be-me{Ae=he;ge=null;if(ye){clearTimeout(ye);ye=null}R.apply(null,pe)};const throttled=(...R)=>{const pe=Date.now();const me=pe-Ae;if(me>=he){invoke(R,pe)}else{ge=R;if(!ye){ye=setTimeout((()=>{ye=null;invoke(ge)}),he-me)}}};const flush=()=>ge&&invoke(ge);return[throttled,flush]}const progressEventReducer=(R,pe,Ae=3)=>{let he=0;const ge=speedometer(50,250);return throttle((Ae=>{const ye=Ae.loaded;const me=Ae.lengthComputable?Ae.total:undefined;const ve=ye-he;const be=ge(ve);const Ee=ye<=me;he=ye;const we={loaded:ye,total:me,progress:me?ye/me:undefined,bytes:ve,rate:be?be:undefined,estimated:be&&me&&Ee?(me-ye)/be:undefined,event:Ae,lengthComputable:me!=null,[pe?"download":"upload"]:true};R(we)}),Ae)};const progressEventDecorator=(R,pe)=>{const Ae=R!=null;return[he=>pe[0]({lengthComputable:Ae,total:R,loaded:he}),pe[1]]};const asyncDecorator=R=>(...pe)=>ct.asap((()=>R(...pe)));const Ht={flush:Qe["default"].constants.Z_SYNC_FLUSH,finishFlush:Qe["default"].constants.Z_SYNC_FLUSH};const Jt={flush:Qe["default"].constants.BROTLI_OPERATION_FLUSH,finishFlush:Qe["default"].constants.BROTLI_OPERATION_FLUSH};const Wt=ct.isFunction(Qe["default"].createBrotliDecompress);const{http:Vt,https:Kt}=Re["default"];const Gt=/https:?/;const Yt=wt.protocols.map((R=>R+":"));const flushOnFinish=(R,[pe,Ae])=>{R.on("end",Ae).on("error",Ae);return pe};function dispatchBeforeRedirect(R,pe){if(R.beforeRedirects.proxy){R.beforeRedirects.proxy(R)}if(R.beforeRedirects.config){R.beforeRedirects.config(R,pe)}}function setProxy(R,pe,Ae){let he=pe;if(!he&&he!==false){const R=ye.getProxyForUrl(Ae);if(R){he=new URL(R)}}if(he){if(he.username){he.auth=(he.username||"")+":"+(he.password||"")}if(he.auth){if(he.auth.username||he.auth.password){he.auth=(he.auth.username||"")+":"+(he.auth.password||"")}const pe=Buffer.from(he.auth,"utf8").toString("base64");R.headers["Proxy-Authorization"]="Basic "+pe}R.headers.host=R.hostname+(R.port?":"+R.port:"");const pe=he.hostname||he.host;R.hostname=pe;R.host=pe;R.port=he.port;R.path=Ae;if(he.protocol){R.protocol=he.protocol.includes(":")?he.protocol:`${he.protocol}:`}}R.beforeRedirects.proxy=function beforeRedirect(R){setProxy(R,pe,R.href)}}const qt=typeof process!=="undefined"&&ct.kindOf(process)==="process";const wrapAsync=R=>new Promise(((pe,Ae)=>{let he;let ge;const done=(R,pe)=>{if(ge)return;ge=true;he&&he(R,pe)};const _resolve=R=>{done(R);pe(R)};const _reject=R=>{done(R,true);Ae(R)};R(_resolve,_reject,(R=>he=R)).catch(_reject)}));const resolveFamily=({address:R,family:pe})=>{if(!ct.isString(R)){throw TypeError("address must be a string")}return{address:R,family:pe||(R.indexOf(".")<0?6:4)}};const buildAddressEntry=(R,pe)=>resolveFamily(ct.isObject(R)?R:{address:R,family:pe});const $t=qt&&function httpAdapter(R){return wrapAsync((async function dispatchHttpRequest(pe,Ae,he){let{data:ge,lookup:ye,family:me}=R;const{responseType:ve,responseEncoding:be}=R;const Ee=R.method.toUpperCase();let we;let Ce=false;let Ie;if(ye){const R=Ut(ye,(R=>ct.isArray(R)?R:[R]));ye=(pe,Ae,he)=>{R(pe,Ae,((R,pe,ge)=>{if(R){return he(R)}const ye=ct.isArray(pe)?pe.map((R=>buildAddressEntry(R))):[buildAddressEntry(pe,ge)];Ae.all?he(R,ye):he(R,ye[0].address,ye[0].family)}))}}const Se=new _e.EventEmitter;const onFinished=()=>{if(R.cancelToken){R.cancelToken.unsubscribe(abort)}if(R.signal){R.signal.removeEventListener("abort",abort)}Se.removeAllListeners()};he(((R,pe)=>{we=true;if(pe){Ce=true;onFinished()}}));function abort(pe){Se.emit("abort",!pe||pe.type?new CanceledError(null,R,Ie):pe)}Se.once("abort",Ae);if(R.cancelToken||R.signal){R.cancelToken&&R.cancelToken.subscribe(abort);if(R.signal){R.signal.aborted?abort():R.signal.addEventListener("abort",abort)}}const Re=buildFullPath(R.baseURL,R.url);const Pe=new URL(Re,"http://localhost");const Te=Pe.protocol||Yt[0];if(Te==="data:"){let he;if(Ee!=="GET"){return settle(pe,Ae,{status:405,statusText:"method not allowed",headers:{},config:R})}try{he=fromDataURI(R.url,ve==="blob",{Blob:R.env&&R.env.Blob})}catch(pe){throw AxiosError.from(pe,AxiosError.ERR_BAD_REQUEST,R)}if(ve==="text"){he=he.toString(be);if(!be||be==="utf8"){he=ct.stripBOM(he)}}else if(ve==="stream"){he=xe["default"].Readable.from(he)}return settle(pe,Ae,{data:he,status:200,statusText:"OK",headers:new Bt,config:R})}if(Yt.indexOf(Te)===-1){return Ae(new AxiosError("Unsupported protocol "+Te,AxiosError.ERR_BAD_REQUEST,R))}const De=Bt.from(R.headers).normalize();De.set("User-Agent","axios/"+kt,false);const{onUploadProgress:Ne,onDownloadProgress:Me}=R;const je=R.maxRate;let Fe=undefined;let Le=undefined;if(ct.isSpecCompliantForm(ge)){const R=De.getContentType(/boundary=([-_\w\d]{10,70})/i);ge=Ft(ge,(R=>{De.set(R)}),{tag:`axios-${kt}-boundary`,boundary:R&&R[1]||undefined})}else if(ct.isFormData(ge)&&ct.isFunction(ge.getHeaders)){De.set(ge.getHeaders());if(!De.hasContentLength()){try{const R=await Oe["default"].promisify(ge.getLength).call(ge);Number.isFinite(R)&&R>=0&&De.setContentLength(R)}catch(R){}}}else if(ct.isBlob(ge)){ge.size&&De.setContentType(ge.type||"application/octet-stream");De.setContentLength(ge.size||0);ge=xe["default"].Readable.from(Pt(ge))}else if(ge&&!ct.isStream(ge)){if(Buffer.isBuffer(ge));else if(ct.isArrayBuffer(ge)){ge=Buffer.from(new Uint8Array(ge))}else if(ct.isString(ge)){ge=Buffer.from(ge,"utf-8")}else{return Ae(new AxiosError("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",AxiosError.ERR_BAD_REQUEST,R))}De.setContentLength(ge.length,false);if(R.maxBodyLength>-1&&ge.length>R.maxBodyLength){return Ae(new AxiosError("Request body larger than maxBodyLength limit",AxiosError.ERR_BAD_REQUEST,R))}}const Ue=ct.toFiniteNumber(De.getContentLength());if(ct.isArray(je)){Fe=je[0];Le=je[1]}else{Fe=Le=je}if(ge&&(Ne||Fe)){if(!ct.isStream(ge)){ge=xe["default"].Readable.from(ge,{objectMode:false})}ge=xe["default"].pipeline([ge,new Qt({maxRate:ct.toFiniteNumber(Fe)})],ct.noop);Ne&&ge.on("progress",flushOnFinish(ge,progressEventDecorator(Ue,progressEventReducer(asyncDecorator(Ne),false,3))))}let He=undefined;if(R.auth){const pe=R.auth.username||"";const Ae=R.auth.password||"";He=pe+":"+Ae}if(!He&&Pe.username){const R=Pe.username;const pe=Pe.password;He=R+":"+pe}He&&De.delete("authorization");let Je;try{Je=buildURL(Pe.pathname+Pe.search,R.params,R.paramsSerializer).replace(/^\?/,"")}catch(pe){const he=new Error(pe.message);he.config=R;he.url=R.url;he.exists=true;return Ae(he)}De.set("Accept-Encoding","gzip, compress, deflate"+(Wt?", br":""),false);const We={path:Je,method:Ee,headers:De.toJSON(),agents:{http:R.httpAgent,https:R.httpsAgent},auth:He,protocol:Te,family:me,beforeRedirect:dispatchBeforeRedirect,beforeRedirects:{}};!ct.isUndefined(ye)&&(We.lookup=ye);if(R.socketPath){We.socketPath=R.socketPath}else{We.hostname=Pe.hostname;We.port=Pe.port;setProxy(We,R.proxy,Te+"//"+Pe.hostname+(Pe.port?":"+Pe.port:"")+We.path)}let Ve;const Ke=Gt.test(We.protocol);We.agent=Ke?R.httpsAgent:R.httpAgent;if(R.transport){Ve=R.transport}else if(R.maxRedirects===0){Ve=Ke?ke["default"]:Be["default"]}else{if(R.maxRedirects){We.maxRedirects=R.maxRedirects}if(R.beforeRedirect){We.beforeRedirects.config=R.beforeRedirect}Ve=Ke?Kt:Vt}if(R.maxBodyLength>-1){We.maxBodyLength=R.maxBodyLength}else{We.maxBodyLength=Infinity}if(R.insecureHTTPParser){We.insecureHTTPParser=R.insecureHTTPParser}Ie=Ve.request(We,(function handleResponse(he){if(Ie.destroyed)return;const ge=[he];const ye=+he.headers["content-length"];if(Me||Le){const R=new Qt({maxRate:ct.toFiniteNumber(Le)});Me&&R.on("progress",flushOnFinish(R,progressEventDecorator(ye,progressEventReducer(asyncDecorator(Me),true,3))));ge.push(R)}let me=he;const we=he.req||Ie;if(R.decompress!==false&&he.headers["content-encoding"]){if(Ee==="HEAD"||he.statusCode===204){delete he.headers["content-encoding"]}switch((he.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":ge.push(Qe["default"].createUnzip(Ht));delete he.headers["content-encoding"];break;case"deflate":ge.push(new Lt);ge.push(Qe["default"].createUnzip(Ht));delete he.headers["content-encoding"];break;case"br":if(Wt){ge.push(Qe["default"].createBrotliDecompress(Jt));delete he.headers["content-encoding"]}}}me=ge.length>1?xe["default"].pipeline(ge,ct.noop):ge[0];const _e=xe["default"].finished(me,(()=>{_e();onFinished()}));const Be={status:he.statusCode,statusText:he.statusMessage,headers:new Bt(he.headers),config:R,request:we};if(ve==="stream"){Be.data=me;settle(pe,Ae,Be)}else{const he=[];let ge=0;me.on("data",(function handleStreamData(pe){he.push(pe);ge+=pe.length;if(R.maxContentLength>-1&&ge>R.maxContentLength){Ce=true;me.destroy();Ae(new AxiosError("maxContentLength size of "+R.maxContentLength+" exceeded",AxiosError.ERR_BAD_RESPONSE,R,we))}}));me.on("aborted",(function handlerStreamAborted(){if(Ce){return}const pe=new AxiosError("maxContentLength size of "+R.maxContentLength+" exceeded",AxiosError.ERR_BAD_RESPONSE,R,we);me.destroy(pe);Ae(pe)}));me.on("error",(function handleStreamError(pe){if(Ie.destroyed)return;Ae(AxiosError.from(pe,null,R,we))}));me.on("end",(function handleStreamEnd(){try{let R=he.length===1?he[0]:Buffer.concat(he);if(ve!=="arraybuffer"){R=R.toString(be);if(!be||be==="utf8"){R=ct.stripBOM(R)}}Be.data=R}catch(pe){return Ae(AxiosError.from(pe,null,R,Be.request,Be))}settle(pe,Ae,Be)}))}Se.once("abort",(R=>{if(!me.destroyed){me.emit("error",R);me.destroy()}}))}));Se.once("abort",(R=>{Ae(R);Ie.destroy(R)}));Ie.on("error",(function handleRequestError(pe){Ae(AxiosError.from(pe,null,R,Ie))}));Ie.on("socket",(function handleRequestSocket(R){R.setKeepAlive(true,1e3*60)}));if(R.timeout){const pe=parseInt(R.timeout,10);if(Number.isNaN(pe)){Ae(new AxiosError("error trying to parse `config.timeout` to int",AxiosError.ERR_BAD_OPTION_VALUE,R,Ie));return}Ie.setTimeout(pe,(function handleRequestTimeout(){if(we)return;let pe=R.timeout?"timeout of "+R.timeout+"ms exceeded":"timeout exceeded";const he=R.transitional||At;if(R.timeoutErrorMessage){pe=R.timeoutErrorMessage}Ae(new AxiosError(pe,he.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,R,Ie));abort()}))}if(ct.isStream(ge)){let pe=false;let Ae=false;ge.on("end",(()=>{pe=true}));ge.once("error",(R=>{Ae=true;Ie.destroy(R)}));ge.on("close",(()=>{if(!pe&&!Ae){abort(new CanceledError("Request stream has been aborted",R,Ie))}}));ge.pipe(Ie)}else{Ie.end(ge)}}))};const zt=wt.hasStandardBrowserEnv?function standardBrowserEnv(){const R=/(msie|trident)/i.test(navigator.userAgent);const pe=document.createElement("a");let Ae;function resolveURL(Ae){let he=Ae;if(R){pe.setAttribute("href",he);he=pe.href}pe.setAttribute("href",he);return{href:pe.href,protocol:pe.protocol?pe.protocol.replace(/:$/,""):"",host:pe.host,search:pe.search?pe.search.replace(/^\?/,""):"",hash:pe.hash?pe.hash.replace(/^#/,""):"",hostname:pe.hostname,port:pe.port,pathname:pe.pathname.charAt(0)==="/"?pe.pathname:"/"+pe.pathname}}Ae=resolveURL(window.location.href);return function isURLSameOrigin(R){const pe=ct.isString(R)?resolveURL(R):R;return pe.protocol===Ae.protocol&&pe.host===Ae.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}();const Xt=wt.hasStandardBrowserEnv?{write(R,pe,Ae,he,ge,ye){const me=[R+"="+encodeURIComponent(pe)];ct.isNumber(Ae)&&me.push("expires="+new Date(Ae).toGMTString());ct.isString(he)&&me.push("path="+he);ct.isString(ge)&&me.push("domain="+ge);ye===true&&me.push("secure");document.cookie=me.join("; ")},read(R){const pe=document.cookie.match(new RegExp("(^|;\\s*)("+R+")=([^;]*)"));return pe?decodeURIComponent(pe[3]):null},remove(R){this.write(R,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};const headersToObject=R=>R instanceof Bt?{...R}:R;function mergeConfig(R,pe){pe=pe||{};const Ae={};function getMergedValue(R,pe,Ae){if(ct.isPlainObject(R)&&ct.isPlainObject(pe)){return ct.merge.call({caseless:Ae},R,pe)}else if(ct.isPlainObject(pe)){return ct.merge({},pe)}else if(ct.isArray(pe)){return pe.slice()}return pe}function mergeDeepProperties(R,pe,Ae){if(!ct.isUndefined(pe)){return getMergedValue(R,pe,Ae)}else if(!ct.isUndefined(R)){return getMergedValue(undefined,R,Ae)}}function valueFromConfig2(R,pe){if(!ct.isUndefined(pe)){return getMergedValue(undefined,pe)}}function defaultToConfig2(R,pe){if(!ct.isUndefined(pe)){return getMergedValue(undefined,pe)}else if(!ct.isUndefined(R)){return getMergedValue(undefined,R)}}function mergeDirectKeys(Ae,he,ge){if(ge in pe){return getMergedValue(Ae,he)}else if(ge in R){return getMergedValue(undefined,Ae)}}const he={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(R,pe)=>mergeDeepProperties(headersToObject(R),headersToObject(pe),true)};ct.forEach(Object.keys(Object.assign({},R,pe)),(function computeConfigValue(ge){const ye=he[ge]||mergeDeepProperties;const me=ye(R[ge],pe[ge],ge);ct.isUndefined(me)&&ye!==mergeDirectKeys||(Ae[ge]=me)}));return Ae}const resolveConfig=R=>{const pe=mergeConfig({},R);let{data:Ae,withXSRFToken:he,xsrfHeaderName:ge,xsrfCookieName:ye,headers:me,auth:ve}=pe;pe.headers=me=Bt.from(me);pe.url=buildURL(buildFullPath(pe.baseURL,pe.url),R.params,R.paramsSerializer);if(ve){me.set("Authorization","Basic "+btoa((ve.username||"")+":"+(ve.password?unescape(encodeURIComponent(ve.password)):"")))}let be;if(ct.isFormData(Ae)){if(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv){me.setContentType(undefined)}else if((be=me.getContentType())!==false){const[R,...pe]=be?be.split(";").map((R=>R.trim())).filter(Boolean):[];me.setContentType([R||"multipart/form-data",...pe].join("; "))}}if(wt.hasStandardBrowserEnv){he&&ct.isFunction(he)&&(he=he(pe));if(he||he!==false&&zt(pe.url)){const R=ge&&ye&&Xt.read(ye);if(R){me.set(ge,R)}}}return pe};const Zt=typeof XMLHttpRequest!=="undefined";const er=Zt&&function(R){return new Promise((function dispatchXhrRequest(pe,Ae){const he=resolveConfig(R);let ge=he.data;const ye=Bt.from(he.headers).normalize();let{responseType:me,onUploadProgress:ve,onDownloadProgress:be}=he;let Ee;let we,Ce;let _e,Ie;function done(){_e&&_e();Ie&&Ie();he.cancelToken&&he.cancelToken.unsubscribe(Ee);he.signal&&he.signal.removeEventListener("abort",Ee)}let Se=new XMLHttpRequest;Se.open(he.method.toUpperCase(),he.url,true);Se.timeout=he.timeout;function onloadend(){if(!Se){return}const he=Bt.from("getAllResponseHeaders"in Se&&Se.getAllResponseHeaders());const ge=!me||me==="text"||me==="json"?Se.responseText:Se.response;const ye={data:ge,status:Se.status,statusText:Se.statusText,headers:he,config:R,request:Se};settle((function _resolve(R){pe(R);done()}),(function _reject(R){Ae(R);done()}),ye);Se=null}if("onloadend"in Se){Se.onloadend=onloadend}else{Se.onreadystatechange=function handleLoad(){if(!Se||Se.readyState!==4){return}if(Se.status===0&&!(Se.responseURL&&Se.responseURL.indexOf("file:")===0)){return}setTimeout(onloadend)}}Se.onabort=function handleAbort(){if(!Se){return}Ae(new AxiosError("Request aborted",AxiosError.ECONNABORTED,R,Se));Se=null};Se.onerror=function handleError(){Ae(new AxiosError("Network Error",AxiosError.ERR_NETWORK,R,Se));Se=null};Se.ontimeout=function handleTimeout(){let pe=he.timeout?"timeout of "+he.timeout+"ms exceeded":"timeout exceeded";const ge=he.transitional||At;if(he.timeoutErrorMessage){pe=he.timeoutErrorMessage}Ae(new AxiosError(pe,ge.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,R,Se));Se=null};ge===undefined&&ye.setContentType(null);if("setRequestHeader"in Se){ct.forEach(ye.toJSON(),(function setRequestHeader(R,pe){Se.setRequestHeader(pe,R)}))}if(!ct.isUndefined(he.withCredentials)){Se.withCredentials=!!he.withCredentials}if(me&&me!=="json"){Se.responseType=he.responseType}if(be){[Ce,Ie]=progressEventReducer(be,true);Se.addEventListener("progress",Ce)}if(ve&&Se.upload){[we,_e]=progressEventReducer(ve);Se.upload.addEventListener("progress",we);Se.upload.addEventListener("loadend",_e)}if(he.cancelToken||he.signal){Ee=pe=>{if(!Se){return}Ae(!pe||pe.type?new CanceledError(null,R,Se):pe);Se.abort();Se=null};he.cancelToken&&he.cancelToken.subscribe(Ee);if(he.signal){he.signal.aborted?Ee():he.signal.addEventListener("abort",Ee)}}const Be=parseProtocol(he.url);if(Be&&wt.protocols.indexOf(Be)===-1){Ae(new AxiosError("Unsupported protocol "+Be+":",AxiosError.ERR_BAD_REQUEST,R));return}Se.send(ge||null)}))};const composeSignals=(R,pe)=>{let Ae=new AbortController;let he;const onabort=function(R){if(!he){he=true;unsubscribe();const pe=R instanceof Error?R:this.reason;Ae.abort(pe instanceof AxiosError?pe:new CanceledError(pe instanceof Error?pe.message:pe))}};let ge=pe&&setTimeout((()=>{onabort(new AxiosError(`timeout ${pe} of ms exceeded`,AxiosError.ETIMEDOUT))}),pe);const unsubscribe=()=>{if(R){ge&&clearTimeout(ge);ge=null;R.forEach((R=>{R&&(R.removeEventListener?R.removeEventListener("abort",onabort):R.unsubscribe(onabort))}));R=null}};R.forEach((R=>R&&R.addEventListener&&R.addEventListener("abort",onabort)));const{signal:ye}=Ae;ye.unsubscribe=unsubscribe;return[ye,()=>{ge&&clearTimeout(ge);ge=null}]};const tr=composeSignals;const streamChunk=function*(R,pe){let Ae=R.byteLength;if(!pe||Ae{const ye=readBytes(R,pe,ge);let me=0;let ve;let _onFinish=R=>{if(!ve){ve=true;he&&he(R)}};return new ReadableStream({async pull(R){try{const{done:pe,value:he}=await ye.next();if(pe){_onFinish();R.close();return}let ge=he.byteLength;if(Ae){let R=me+=ge;Ae(R)}R.enqueue(new Uint8Array(he))}catch(R){_onFinish(R);throw R}},cancel(R){_onFinish(R);return ye.return()}},{highWaterMark:2})};const rr=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";const nr=rr&&typeof ReadableStream==="function";const ir=rr&&(typeof TextEncoder==="function"?(R=>pe=>R.encode(pe))(new TextEncoder):async R=>new Uint8Array(await new Response(R).arrayBuffer()));const test=(R,...pe)=>{try{return!!R(...pe)}catch(R){return false}};const sr=nr&&test((()=>{let R=false;const pe=new Request(wt.origin,{body:new ReadableStream,method:"POST",get duplex(){R=true;return"half"}}).headers.has("Content-Type");return R&&!pe}));const ar=64*1024;const cr=nr&&test((()=>ct.isReadableStream(new Response("").body)));const ur={stream:cr&&(R=>R.body)};rr&&(R=>{["text","arrayBuffer","blob","formData","stream"].forEach((pe=>{!ur[pe]&&(ur[pe]=ct.isFunction(R[pe])?R=>R[pe]():(R,Ae)=>{throw new AxiosError(`Response type '${pe}' is not supported`,AxiosError.ERR_NOT_SUPPORT,Ae)})}))})(new Response);const getBodyLength=async R=>{if(R==null){return 0}if(ct.isBlob(R)){return R.size}if(ct.isSpecCompliantForm(R)){return(await new Request(R).arrayBuffer()).byteLength}if(ct.isArrayBufferView(R)||ct.isArrayBuffer(R)){return R.byteLength}if(ct.isURLSearchParams(R)){R=R+""}if(ct.isString(R)){return(await ir(R)).byteLength}};const resolveBodyLength=async(R,pe)=>{const Ae=ct.toFiniteNumber(R.getContentLength());return Ae==null?getBodyLength(pe):Ae};const lr=rr&&(async R=>{let{url:pe,method:Ae,data:he,signal:ge,cancelToken:ye,timeout:me,onDownloadProgress:ve,onUploadProgress:be,responseType:Ee,headers:we,withCredentials:Ce="same-origin",fetchOptions:_e}=resolveConfig(R);Ee=Ee?(Ee+"").toLowerCase():"text";let[Ie,Se]=ge||ye||me?tr([ge,ye],me):[];let Be,ke;const onFinish=()=>{!Be&&setTimeout((()=>{Ie&&Ie.unsubscribe()}));Be=true};let Oe;try{if(be&&sr&&Ae!=="get"&&Ae!=="head"&&(Oe=await resolveBodyLength(we,he))!==0){let R=new Request(pe,{method:"POST",body:he,duplex:"half"});let Ae;if(ct.isFormData(he)&&(Ae=R.headers.get("content-type"))){we.setContentType(Ae)}if(R.body){const[pe,Ae]=progressEventDecorator(Oe,progressEventReducer(asyncDecorator(be)));he=trackStream(R.body,ar,pe,Ae,ir)}}if(!ct.isString(Ce)){Ce=Ce?"include":"omit"}ke=new Request(pe,{..._e,signal:Ie,method:Ae.toUpperCase(),headers:we.normalize().toJSON(),body:he,duplex:"half",credentials:Ce});let ge=await fetch(ke);const ye=cr&&(Ee==="stream"||Ee==="response");if(cr&&(ve||ye)){const R={};["status","statusText","headers"].forEach((pe=>{R[pe]=ge[pe]}));const pe=ct.toFiniteNumber(ge.headers.get("content-length"));const[Ae,he]=ve&&progressEventDecorator(pe,progressEventReducer(asyncDecorator(ve),true))||[];ge=new Response(trackStream(ge.body,ar,Ae,(()=>{he&&he();ye&&onFinish()}),ir),R)}Ee=Ee||"text";let me=await ur[ct.findKey(ur,Ee)||"text"](ge,R);!ye&&onFinish();Se&&Se();return await new Promise(((pe,Ae)=>{settle(pe,Ae,{data:me,headers:Bt.from(ge.headers),status:ge.status,statusText:ge.statusText,config:R,request:ke})}))}catch(pe){onFinish();if(pe&&pe.name==="TypeError"&&/fetch/i.test(pe.message)){throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,R,ke),{cause:pe.cause||pe})}throw AxiosError.from(pe,pe&&pe.code,R,ke)}});const dr={http:$t,xhr:er,fetch:lr};ct.forEach(dr,((R,pe)=>{if(R){try{Object.defineProperty(R,"name",{value:pe})}catch(R){}Object.defineProperty(R,"adapterName",{value:pe})}}));const renderReason=R=>`- ${R}`;const isResolvedHandle=R=>ct.isFunction(R)||R===null||R===false;const fr={getAdapter:R=>{R=ct.isArray(R)?R:[R];const{length:pe}=R;let Ae;let he;const ge={};for(let ye=0;ye`adapter ${R} `+(pe===false?"is not supported by the environment":"is not available in the build")));let Ae=pe?R.length>1?"since :\n"+R.map(renderReason).join("\n"):" "+renderReason(R[0]):"as no adapter specified";throw new AxiosError(`There is no suitable adapter to dispatch the request `+Ae,"ERR_NOT_SUPPORT")}return he},adapters:dr};function throwIfCancellationRequested(R){if(R.cancelToken){R.cancelToken.throwIfRequested()}if(R.signal&&R.signal.aborted){throw new CanceledError(null,R)}}function dispatchRequest(R){throwIfCancellationRequested(R);R.headers=Bt.from(R.headers);R.data=transformData.call(R,R.transformRequest);if(["post","put","patch"].indexOf(R.method)!==-1){R.headers.setContentType("application/x-www-form-urlencoded",false)}const pe=fr.getAdapter(R.adapter||_t.adapter);return pe(R).then((function onAdapterResolution(pe){throwIfCancellationRequested(R);pe.data=transformData.call(R,R.transformResponse,pe);pe.headers=Bt.from(pe.headers);return pe}),(function onAdapterRejection(pe){if(!isCancel(pe)){throwIfCancellationRequested(R);if(pe&&pe.response){pe.response.data=transformData.call(R,R.transformResponse,pe.response);pe.response.headers=Bt.from(pe.response.headers)}}return Promise.reject(pe)}))}const pr={};["object","boolean","number","function","string","symbol"].forEach(((R,pe)=>{pr[R]=function validator(Ae){return typeof Ae===R||"a"+(pe<1?"n ":" ")+R}}));const Ar={};pr.transitional=function transitional(R,pe,Ae){function formatMessage(R,pe){return"[Axios v"+kt+"] Transitional option '"+R+"'"+pe+(Ae?". "+Ae:"")}return(Ae,he,ge)=>{if(R===false){throw new AxiosError(formatMessage(he," has been removed"+(pe?" in "+pe:"")),AxiosError.ERR_DEPRECATED)}if(pe&&!Ar[he]){Ar[he]=true;console.warn(formatMessage(he," has been deprecated since v"+pe+" and will be removed in the near future"))}return R?R(Ae,he,ge):true}};function assertOptions(R,pe,Ae){if(typeof R!=="object"){throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE)}const he=Object.keys(R);let ge=he.length;while(ge-- >0){const ye=he[ge];const me=pe[ye];if(me){const pe=R[ye];const Ae=pe===undefined||me(pe,ye,R);if(Ae!==true){throw new AxiosError("option "+ye+" must be "+Ae,AxiosError.ERR_BAD_OPTION_VALUE)}continue}if(Ae!==true){throw new AxiosError("Unknown option "+ye,AxiosError.ERR_BAD_OPTION)}}}const hr={assertOptions:assertOptions,validators:pr};const gr=hr.validators;class Axios{constructor(R){this.defaults=R;this.interceptors={request:new pt,response:new pt}}async request(R,pe){try{return await this._request(R,pe)}catch(R){if(R instanceof Error){let pe;Error.captureStackTrace?Error.captureStackTrace(pe={}):pe=new Error;const Ae=pe.stack?pe.stack.replace(/^.+\n/,""):"";try{if(!R.stack){R.stack=Ae}else if(Ae&&!String(R.stack).endsWith(Ae.replace(/^.+\n.+\n/,""))){R.stack+="\n"+Ae}}catch(R){}}throw R}}_request(R,pe){if(typeof R==="string"){pe=pe||{};pe.url=R}else{pe=R||{}}pe=mergeConfig(this.defaults,pe);const{transitional:Ae,paramsSerializer:he,headers:ge}=pe;if(Ae!==undefined){hr.assertOptions(Ae,{silentJSONParsing:gr.transitional(gr.boolean),forcedJSONParsing:gr.transitional(gr.boolean),clarifyTimeoutError:gr.transitional(gr.boolean)},false)}if(he!=null){if(ct.isFunction(he)){pe.paramsSerializer={serialize:he}}else{hr.assertOptions(he,{encode:gr.function,serialize:gr.function},true)}}pe.method=(pe.method||this.defaults.method||"get").toLowerCase();let ye=ge&&ct.merge(ge.common,ge[pe.method]);ge&&ct.forEach(["delete","get","head","post","put","patch","common"],(R=>{delete ge[R]}));pe.headers=Bt.concat(ye,ge);const me=[];let ve=true;this.interceptors.request.forEach((function unshiftRequestInterceptors(R){if(typeof R.runWhen==="function"&&R.runWhen(pe)===false){return}ve=ve&&R.synchronous;me.unshift(R.fulfilled,R.rejected)}));const be=[];this.interceptors.response.forEach((function pushResponseInterceptors(R){be.push(R.fulfilled,R.rejected)}));let Ee;let we=0;let Ce;if(!ve){const R=[dispatchRequest.bind(this),undefined];R.unshift.apply(R,me);R.push.apply(R,be);Ce=R.length;Ee=Promise.resolve(pe);while(we{if(!Ae._listeners)return;let pe=Ae._listeners.length;while(pe-- >0){Ae._listeners[pe](R)}Ae._listeners=null}));this.promise.then=R=>{let pe;const he=new Promise((R=>{Ae.subscribe(R);pe=R})).then(R);he.cancel=function reject(){Ae.unsubscribe(pe)};return he};R((function cancel(R,he,ge){if(Ae.reason){return}Ae.reason=new CanceledError(R,he,ge);pe(Ae.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(R){if(this.reason){R(this.reason);return}if(this._listeners){this._listeners.push(R)}else{this._listeners=[R]}}unsubscribe(R){if(!this._listeners){return}const pe=this._listeners.indexOf(R);if(pe!==-1){this._listeners.splice(pe,1)}}static source(){let R;const pe=new CancelToken((function executor(pe){R=pe}));return{token:pe,cancel:R}}}const mr=CancelToken;function spread(R){return function wrap(pe){return R.apply(null,pe)}}function isAxiosError(R){return ct.isObject(R)&&R.isAxiosError===true}const vr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vr).forEach((([R,pe])=>{vr[pe]=R}));const br=vr;function createInstance(R){const pe=new yr(R);const Ae=bind(yr.prototype.request,pe);ct.extend(Ae,yr.prototype,pe,{allOwnKeys:true});ct.extend(Ae,pe,null,{allOwnKeys:true});Ae.create=function create(pe){return createInstance(mergeConfig(R,pe))};return Ae}const Er=createInstance(_t);Er.Axios=yr;Er.CanceledError=CanceledError;Er.CancelToken=mr;Er.isCancel=isCancel;Er.VERSION=kt;Er.toFormData=toFormData;Er.AxiosError=AxiosError;Er.Cancel=Er.CanceledError;Er.all=function all(R){return Promise.all(R)};Er.spread=spread;Er.isAxiosError=isAxiosError;Er.mergeConfig=mergeConfig;Er.AxiosHeaders=Bt;Er.formToJSON=R=>formDataToJSON(ct.isHTMLForm(R)?new FormData(R):R);Er.getAdapter=fr.getAdapter;Er.HttpStatusCode=br;Er.default=Er;R.exports=Er},64775:R=>{"use strict";R.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},90996:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/applicator","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/applicator":true},"$dynamicAnchor":"meta","title":"Applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"prefixItems":{"$ref":"#/$defs/schemaArray"},"items":{"$dynamicRef":"#meta"},"contains":{"$dynamicRef":"#meta"},"additionalProperties":{"$dynamicRef":"#meta"},"properties":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"propertyNames":{"format":"regex"},"default":{}},"dependentSchemas":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"default":{}},"propertyNames":{"$dynamicRef":"#meta"},"if":{"$dynamicRef":"#meta"},"then":{"$dynamicRef":"#meta"},"else":{"$dynamicRef":"#meta"},"allOf":{"$ref":"#/$defs/schemaArray"},"anyOf":{"$ref":"#/$defs/schemaArray"},"oneOf":{"$ref":"#/$defs/schemaArray"},"not":{"$dynamicRef":"#meta"}},"$defs":{"schemaArray":{"type":"array","minItems":1,"items":{"$dynamicRef":"#meta"}}}}')},46795:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/content","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/content":true},"$dynamicAnchor":"meta","title":"Content vocabulary meta-schema","type":["object","boolean"],"properties":{"contentEncoding":{"type":"string"},"contentMediaType":{"type":"string"},"contentSchema":{"$dynamicRef":"#meta"}}}')},235:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/core","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/core":true},"$dynamicAnchor":"meta","title":"Core vocabulary meta-schema","type":["object","boolean"],"properties":{"$id":{"$ref":"#/$defs/uriReferenceString","$comment":"Non-empty fragments not allowed.","pattern":"^[^#]*#?$"},"$schema":{"$ref":"#/$defs/uriString"},"$ref":{"$ref":"#/$defs/uriReferenceString"},"$anchor":{"$ref":"#/$defs/anchorString"},"$dynamicRef":{"$ref":"#/$defs/uriReferenceString"},"$dynamicAnchor":{"$ref":"#/$defs/anchorString"},"$vocabulary":{"type":"object","propertyNames":{"$ref":"#/$defs/uriString"},"additionalProperties":{"type":"boolean"}},"$comment":{"type":"string"},"$defs":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"}}},"$defs":{"anchorString":{"type":"string","pattern":"^[A-Za-z_][-A-Za-z0-9._]*$"},"uriString":{"type":"string","format":"uri"},"uriReferenceString":{"type":"string","format":"uri-reference"}}}')},2567:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/format-annotation","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/format-annotation":true},"$dynamicAnchor":"meta","title":"Format vocabulary meta-schema for annotation results","type":["object","boolean"],"properties":{"format":{"type":"string"}}}')},41233:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/meta-data","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/meta-data":true},"$dynamicAnchor":"meta","title":"Meta-data vocabulary meta-schema","type":["object","boolean"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"default":true,"deprecated":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true}}}')},5568:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/unevaluated","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/unevaluated":true},"$dynamicAnchor":"meta","title":"Unevaluated applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"unevaluatedItems":{"$dynamicRef":"#meta"},"unevaluatedProperties":{"$dynamicRef":"#meta"}}}')},61968:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/validation","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/validation":true},"$dynamicAnchor":"meta","title":"Validation vocabulary meta-schema","type":["object","boolean"],"properties":{"type":{"anyOf":[{"$ref":"#/$defs/simpleTypes"},{"type":"array","items":{"$ref":"#/$defs/simpleTypes"},"minItems":1,"uniqueItems":true}]},"const":true,"enum":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/$defs/nonNegativeInteger"},"minLength":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"maxItems":{"$ref":"#/$defs/nonNegativeInteger"},"minItems":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxContains":{"$ref":"#/$defs/nonNegativeInteger"},"minContains":{"$ref":"#/$defs/nonNegativeInteger","default":1},"maxProperties":{"$ref":"#/$defs/nonNegativeInteger"},"minProperties":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"required":{"$ref":"#/$defs/stringArray"},"dependentRequired":{"type":"object","additionalProperties":{"$ref":"#/$defs/stringArray"}}},"$defs":{"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"$ref":"#/$defs/nonNegativeInteger","default":0},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}}}')},22577:R=>{"use strict";R.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/schema","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/core":true,"https://json-schema.org/draft/2020-12/vocab/applicator":true,"https://json-schema.org/draft/2020-12/vocab/unevaluated":true,"https://json-schema.org/draft/2020-12/vocab/validation":true,"https://json-schema.org/draft/2020-12/vocab/meta-data":true,"https://json-schema.org/draft/2020-12/vocab/format-annotation":true,"https://json-schema.org/draft/2020-12/vocab/content":true},"$dynamicAnchor":"meta","title":"Core and Validation specifications meta-schema","allOf":[{"$ref":"meta/core"},{"$ref":"meta/applicator"},{"$ref":"meta/unevaluated"},{"$ref":"meta/validation"},{"$ref":"meta/meta-data"},{"$ref":"meta/format-annotation"},{"$ref":"meta/content"}],"type":["object","boolean"],"$comment":"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.","properties":{"definitions":{"$comment":"\\"definitions\\" has been replaced by \\"$defs\\".","type":"object","additionalProperties":{"$dynamicRef":"#meta"},"deprecated":true,"default":{}},"dependencies":{"$comment":"\\"dependencies\\" has been split and replaced by \\"dependentSchemas\\" and \\"dependentRequired\\" in order to serve their differing semantics.","type":"object","additionalProperties":{"anyOf":[{"$dynamicRef":"#meta"},{"$ref":"meta/validation#/$defs/stringArray"}]},"deprecated":true,"default":{}},"$recursiveAnchor":{"$comment":"\\"$recursiveAnchor\\" has been replaced by \\"$dynamicAnchor\\".","$ref":"meta/core#/$defs/anchorString","deprecated":true},"$recursiveRef":{"$comment":"\\"$recursiveRef\\" has been replaced by \\"$dynamicRef\\".","$ref":"meta/core#/$defs/uriReferenceString","deprecated":true}}}')},98:R=>{"use strict";R.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},49968:R=>{"use strict";R.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')},53765:R=>{"use strict";R.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},97129:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@vocab":"https://jsld.org/default#"}}')},67117:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@protected":true,"id":"@id","type":"@type","description":"https://schema.org/description","digestMultibase":{"@id":"https://w3id.org/security#digestMultibase","@type":"https://w3id.org/security#multibase"},"digestSRI":{"@id":"https://www.w3.org/2018/credentials#digestSRI","@type":"https://www.w3.org/2018/credentials#sriString"},"mediaType":{"@id":"https://schema.org/encodingFormat"},"name":"https://schema.org/name","VerifiableCredential":{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@protected":true,"id":"@id","type":"@type","confidenceMethod":{"@id":"https://www.w3.org/2018/credentials#confidenceMethod","@type":"@id"},"credentialSchema":{"@id":"https://www.w3.org/2018/credentials#credentialSchema","@type":"@id"},"credentialStatus":{"@id":"https://www.w3.org/2018/credentials#credentialStatus","@type":"@id"},"credentialSubject":{"@id":"https://www.w3.org/2018/credentials#credentialSubject","@type":"@id"},"description":"https://schema.org/description","evidence":{"@id":"https://www.w3.org/2018/credentials#evidence","@type":"@id"},"issuer":{"@id":"https://www.w3.org/2018/credentials#issuer","@type":"@id"},"name":"https://schema.org/name","proof":{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},"refreshService":{"@id":"https://www.w3.org/2018/credentials#refreshService","@type":"@id"},"relatedResource":{"@id":"https://www.w3.org/2018/credentials#relatedResource","@type":"@id"},"renderMethod":{"@id":"https://www.w3.org/2018/credentials#renderMethod","@type":"@id"},"termsOfUse":{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},"validFrom":{"@id":"https://www.w3.org/2018/credentials#validFrom","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},"validUntil":{"@id":"https://www.w3.org/2018/credentials#validUntil","@type":"http://www.w3.org/2001/XMLSchema#dateTime"}}},"EnvelopedVerifiableCredential":"https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential","VerifiablePresentation":{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@protected":true,"id":"@id","type":"@type","holder":{"@id":"https://www.w3.org/2018/credentials#holder","@type":"@id"},"proof":{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},"termsOfUse":{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},"verifiableCredential":{"@id":"https://www.w3.org/2018/credentials#verifiableCredential","@type":"@id","@container":"@graph","@context":null}}},"EnvelopedVerifiablePresentation":"https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation","JsonSchemaCredential":"https://www.w3.org/2018/credentials#JsonSchemaCredential","JsonSchema":{"@id":"https://www.w3.org/2018/credentials#JsonSchema","@context":{"@protected":true,"id":"@id","type":"@type","jsonSchema":{"@id":"https://www.w3.org/2018/credentials#jsonSchema","@type":"@json"}}},"BitstringStatusListCredential":"https://www.w3.org/ns/credentials/status#BitstringStatusListCredential","BitstringStatusList":{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusList","@context":{"@protected":true,"id":"@id","type":"@type","encodedList":{"@id":"https://www.w3.org/ns/credentials/status#encodedList","@type":"https://w3id.org/security#multibase"},"statusMessage":{"@id":"https://www.w3.org/ns/credentials/status#statusMessage","@context":{"@protected":true,"id":"@id","type":"@type","message":"https://www.w3.org/ns/credentials/status#message","status":"https://www.w3.org/ns/credentials/status#status"}},"statusPurpose":"https://www.w3.org/ns/credentials/status#statusPurpose","statusReference":{"@id":"https://www.w3.org/ns/credentials/status#statusReference","@type":"@id"},"statusSize":{"@id":"https://www.w3.org/ns/credentials/status#statusSize","@type":"https://www.w3.org/2001/XMLSchema#positiveInteger"},"ttl":"https://www.w3.org/ns/credentials/status#ttl"}},"BitstringStatusListEntry":{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusListEntry","@context":{"@protected":true,"id":"@id","type":"@type","statusListCredential":{"@id":"https://www.w3.org/ns/credentials/status#statusListCredential","@type":"@id"},"statusListIndex":"https://www.w3.org/ns/credentials/status#statusListIndex","statusPurpose":"https://www.w3.org/ns/credentials/status#statusPurpose"}},"DataIntegrityProof":{"@id":"https://w3id.org/security#DataIntegrityProof","@context":{"@protected":true,"id":"@id","type":"@type","challenge":"https://w3id.org/security#challenge","created":{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},"cryptosuite":{"@id":"https://w3id.org/security#cryptosuite","@type":"https://w3id.org/security#cryptosuiteString"},"domain":"https://w3id.org/security#domain","expires":{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},"nonce":"https://w3id.org/security#nonce","previousProof":{"@id":"https://w3id.org/security#previousProof","@type":"@id"},"proofPurpose":{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":true,"id":"@id","type":"@type","assertionMethod":{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},"authentication":{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},"capabilityDelegation":{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},"capabilityInvocation":{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},"keyAgreement":{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},"proofValue":{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},"verificationMethod":{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}},"...":{"@id":"https://www.iana.org/assignments/jwt#..."},"_sd":{"@id":"https://www.iana.org/assignments/jwt#_sd","@type":"@json"},"_sd_alg":{"@id":"https://www.iana.org/assignments/jwt#_sd_alg"},"aud":{"@id":"https://www.iana.org/assignments/jwt#aud","@type":"@id"},"cnf":{"@id":"https://www.iana.org/assignments/jwt#cnf","@context":{"@protected":true,"kid":{"@id":"https://www.iana.org/assignments/jwt#kid","@type":"@id"},"jwk":{"@id":"https://www.iana.org/assignments/jwt#jwk","@type":"@json"}}},"exp":{"@id":"https://www.iana.org/assignments/jwt#exp","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},"iat":{"@id":"https://www.iana.org/assignments/jwt#iat","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},"iss":{"@id":"https://www.iana.org/assignments/jose#iss","@type":"@id"},"jku":{"@id":"https://www.iana.org/assignments/jose#jku","@type":"@id"},"kid":{"@id":"https://www.iana.org/assignments/jose#kid","@type":"@id"},"nbf":{"@id":"https://www.iana.org/assignments/jwt#nbf","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},"sub":{"@id":"https://www.iana.org/assignments/jose#sub","@type":"@id"},"x5u":{"@id":"https://www.iana.org/assignments/jose#x5u","@type":"@id"}}}')},67587:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@vocab":"https://www.w3.org/ns/credentials/examples#"}}')},53672:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@version":1.1,"rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","rdfs":"http://www.w3.org/2000/01/rdf-schema#","owl":"http://www.w3.org/2002/07/owl#","skos":"http://www.w3.org/2004/02/skos/core#","gs1":"https://gs1.org/voc/","language":"@language","value":"@value","KeyCredential":{"@id":"gs1:KeyCredential"},"DataCredential":{"@id":"gs1:DataCredential"},"DelegationCredential":{"@id":"gs1:DelegationCredential"},"sameAs":{"@id":"gs1:sameAs"},"keyAuthorization":{"@id":"gs1:keyAuthorization"},"dataCertification":{"@id":"gs1:dataCertification"},"delegation":{"@id":"gs1:delegation"},"dataCredentialType":{"@id":"gs1:dataCredentialType"}}}')},93633:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@version":1.1,"rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","rdfs":"http://www.w3.org/2000/01/rdf-schema#","owl":"http://www.w3.org/2002/07/owl#","skos":"http://www.w3.org/2004/02/skos/core#","gs1":"https://gs1.org/voc/","language":"@language","value":"@value","GS1PrefixLicenseCredential":{"@id":"gs1:GS1PrefixLicenseCredential"},"GS18PrefixLicenseCredential":{"@id":"gs1:GS18PrefixLicenseCredential"},"GS1CompanyPrefixLicenseCredential":{"@id":"gs1:GS1CompanyPrefixLicenseCredential"},"GS1IdentificationKeyLicenseCredential":{"@id":"gs1:GS1IdentificationKeyLicenseCredential"},"DelegatedGS1PrefixLicenseCredential":{"@id":"gs1:DelegatedGS1PrefixLicenseCredential"},"DelegatedGS1IdentificationKeyLicenseCredential":{"@id":"gs1:DelegatedGS1IdentificationKeyLicenseCredential"},"extendsCredential":{"@id":"gs1:extendsCredential","@type":"@id"},"organization":{"@id":"gs1:organization"},"licenseValue":{"@id":"gs1:licenseValue"},"alternativeLicenseValue":{"@id":"gs1:alternativeLicenseValue"},"identificationKeyType":{"@id":"gs1:identificationKeyType"},"isGS1CompanyPrefixLicenseAllowed":{"@id":"gs1:isGS1CompanyPrefixLicenseAllowed"},"isExactMatchRequired":{"@id":"gs1:isExactMatchRequired"},"isGS1IdentificationKeyLicenseAllowed":{"@id":"gs1:isGS1IdentificationKeyLicenseAllowed"}}}')},44639:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@version":1.1,"rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","rdfs":"http://www.w3.org/2000/01/rdf-schema#","owl":"http://www.w3.org/2002/07/owl#","skos":"http://www.w3.org/2004/02/skos/core#","gs1":"https://gs1.org/voc/","language":"@language","value":"@value","ProductDataCredential":{"@id":"gs1:ProductDataCredential"},"product":{"@id":"gs1:product"}}}')},82817:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","VerifiableCredential":{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","cred":"https://www.w3.org/2018/credentials#","sec":"https://w3id.org/security#","xsd":"http://www.w3.org/2001/XMLSchema#","credentialSchema":{"@id":"cred:credentialSchema","@type":"@id","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","cred":"https://www.w3.org/2018/credentials#","JsonSchemaValidator2018":"cred:JsonSchemaValidator2018"}},"credentialStatus":{"@id":"cred:credentialStatus","@type":"@id"},"credentialSubject":{"@id":"cred:credentialSubject","@type":"@id"},"evidence":{"@id":"cred:evidence","@type":"@id"},"expirationDate":{"@id":"cred:expirationDate","@type":"xsd:dateTime"},"holder":{"@id":"cred:holder","@type":"@id"},"issued":{"@id":"cred:issued","@type":"xsd:dateTime"},"issuer":{"@id":"cred:issuer","@type":"@id"},"issuanceDate":{"@id":"cred:issuanceDate","@type":"xsd:dateTime"},"proof":{"@id":"sec:proof","@type":"@id","@container":"@graph"},"refreshService":{"@id":"cred:refreshService","@type":"@id","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","cred":"https://www.w3.org/2018/credentials#","ManualRefreshService2018":"cred:ManualRefreshService2018"}},"termsOfUse":{"@id":"cred:termsOfUse","@type":"@id"},"validFrom":{"@id":"cred:validFrom","@type":"xsd:dateTime"},"validUntil":{"@id":"cred:validUntil","@type":"xsd:dateTime"}}},"VerifiablePresentation":{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","cred":"https://www.w3.org/2018/credentials#","sec":"https://w3id.org/security#","holder":{"@id":"cred:holder","@type":"@id"},"proof":{"@id":"sec:proof","@type":"@id","@container":"@graph"},"verifiableCredential":{"@id":"cred:verifiableCredential","@type":"@id","@container":"@graph"}}},"EcdsaSecp256k1Signature2019":{"@id":"https://w3id.org/security#EcdsaSecp256k1Signature2019","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","xsd":"http://www.w3.org/2001/XMLSchema#","challenge":"sec:challenge","created":{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},"domain":"sec:domain","expires":{"@id":"sec:expiration","@type":"xsd:dateTime"},"jws":"sec:jws","nonce":"sec:nonce","proofPurpose":{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","assertionMethod":{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},"authentication":{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},"proofValue":"sec:proofValue","verificationMethod":{"@id":"sec:verificationMethod","@type":"@id"}}},"EcdsaSecp256r1Signature2019":{"@id":"https://w3id.org/security#EcdsaSecp256r1Signature2019","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","xsd":"http://www.w3.org/2001/XMLSchema#","challenge":"sec:challenge","created":{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},"domain":"sec:domain","expires":{"@id":"sec:expiration","@type":"xsd:dateTime"},"jws":"sec:jws","nonce":"sec:nonce","proofPurpose":{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","assertionMethod":{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},"authentication":{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},"proofValue":"sec:proofValue","verificationMethod":{"@id":"sec:verificationMethod","@type":"@id"}}},"Ed25519Signature2018":{"@id":"https://w3id.org/security#Ed25519Signature2018","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","xsd":"http://www.w3.org/2001/XMLSchema#","challenge":"sec:challenge","created":{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},"domain":"sec:domain","expires":{"@id":"sec:expiration","@type":"xsd:dateTime"},"jws":"sec:jws","nonce":"sec:nonce","proofPurpose":{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","assertionMethod":{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},"authentication":{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},"proofValue":"sec:proofValue","verificationMethod":{"@id":"sec:verificationMethod","@type":"@id"}}},"RsaSignature2018":{"@id":"https://w3id.org/security#RsaSignature2018","@context":{"@version":1.1,"@protected":true,"challenge":"sec:challenge","created":{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},"domain":"sec:domain","expires":{"@id":"sec:expiration","@type":"xsd:dateTime"},"jws":"sec:jws","nonce":"sec:nonce","proofPurpose":{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":true,"id":"@id","type":"@type","sec":"https://w3id.org/security#","assertionMethod":{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},"authentication":{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},"proofValue":"sec:proofValue","verificationMethod":{"@id":"sec:verificationMethod","@type":"@id"}}},"proof":{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"}}}')},38428:R=>{"use strict";R.exports=JSON.parse('{"@context":{"@version":1.1,"@vocab":"https://www.w3.org/ns/credentials/issuer-dependent#","id":"@id","type":"@type","name":"https://schema.org/name","description":"https://schema.org/description","identifier":"https://schema.org/identifier","image":{"@id":"https://schema.org/image","@type":"@id"},"relatedLink":{"@id":"https://w3id.org/traceability#LinkRole"},"manufacturer":"https://vocabulary.uncefact.org/manufacturerParty","manufacturingCountry":"https://vocabulary.uncefact.org/manufactureCountry","product":"https://w3id.org/traceability#SteelProduct","rawMaterial":"https://w3id.org/traceability#rawMaterial","items":"https://schema.org/ItemList","dateOfExport":{"@id":"https://vocabulary.uncefact.org/exportExitDateTime","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},"TraceablePresentation":{"@id":"https://w3id.org/traceability#traceable-presentation","@context":{"replace":{"@id":"https://w3id.org/traceability#workflow-replace","@type":"@id"},"workflow":{"@id":"https://w3id.org/traceability#workflow","@context":{"definition":{"@id":"https://w3id.org/traceability#workflow-definition","@type":"@id"},"instance":{"@id":"https://w3id.org/traceability#workflow-instance","@type":"@id"}}}}},"AgricultureActivity":{"@id":"https://w3id.org/traceability#AgricultureActivity","@context":{"business":{"@id":"https://w3id.org/traceability#dfn-entities"},"actor":{"@id":"https://w3id.org/traceability#Person"},"location":{"@id":"https://www.gs1.org/voc/Place"},"activityDate":{"@id":"https://schema.org/endDate"},"activityType":{"@id":"https://schema.org/description"},"agricultureProduct":{"@id":"https://schema.org/ItemList"},"observation":{"@id":"https://w3id.org/traceability#observation"}}},"AgricultureInspectionCommonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo","@context":{"applicant":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"facility":{"@id":"https://www.gs1.org/voc/location"},"inspector":{"@id":"https://w3id.org/traceability#Inspector"},"delegateOf":{"@id":"https://vocabulary.uncefact.org/specifiedLegalOrganization"},"regulatoryAgency":{"@id":"https://vocabulary.uncefact.org/specifiedLegalOrganization"},"inspectionStarted":{"@id":"https://vocabulary.uncefact.org/startDateTime"},"inspectionEnded":{"@id":"https://vocabulary.uncefact.org/endDateTime"}}},"AgricultureInspectionGeneric":{"@id":"https://w3id.org/traceability#AgricultureInspectionGeneric","@context":{"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"inspectionType":{"@id":"https://www.gs1.org/voc/certificationType"},"observation":{"@id":"https://vocabulary.uncefact.org/relatedObservation"},"name":{"@id":"https://schema.org/name"},"status":{"@id":"https://vocabulary.uncefact.org/status"},"productQuantity":{"@id":"https://vocabulary.uncefact.org/Measurement"},"packageSize":{"@id":"https://vocabulary.uncefact.org/Measurement"},"inspectorCounted":{"@id":"https://vocabulary.uncefact.org/applicableSpecifiedAction"}}},"AgriculturePackage":{"@id":"https://w3id.org/traceability#AgriculturePackage","@context":{"packageName":{"@id":"https://schema.org/name"},"grade":{"@id":"https://w3id.org/traceability#grade"},"responsibleParty":{"@id":"https://w3id.org/traceability#responsibleParty"},"voicePickCode":{"@id":"https://w3id.org/traceability#voicePickCode"},"packingDate":{"@id":"https://www.gs1.org/voc/packagingDate"},"harvestDate":{"@id":"https://vocabulary.uncefact.org/harvestDateTime"},"bestByDate":{"@id":"https://vocabulary.uncefact.org/bestBeforeDateTime"},"labelImageUrl":{"@id":"https://schema.org/url"},"labelImageHash":{"@id":"https://schema.org/sha256"},"agricultureProduct":{"@id":"https://schema.org/ItemList"},"harvest":{"@id":"https://w3id.org/traceability#AgricultureActivity"}}},"AgricultureParcelDelivery":{"@id":"https://w3id.org/traceability#AgricultureParcelDelivery","@context":{"deliveryAddress":{"@id":"https://schema.org/deliveryAddress"},"originAddress":{"@id":"https://schema.org/originAddress"},"foreignPortExport":{"@id":"https://schema.org/itinerary"},"portOfEntry":{"@id":"https://schema.org/itinerary"},"deliveryMethod":{"@id":"https://schema.org/hasDeliveryMethod"},"trackingNumber":{"@id":"https://schema.org/trackingNumber"},"expectedArrival":{"@id":"https://schema.org/expectedArrivalFrom"},"specialInstructions":{"@id":"https://schema.org/comment"},"consignee":{"@id":"https://schema.org/Organization"},"agriculturePackage":{"@id":"https://schema.org/itemShipped"},"movementPoints":{"@id":"https://schema.org/itinerary"},"plannedRoute":{"@id":"https://schema.org/itinerary"},"shipper":{"@id":"https://schema.org/seller"},"purchaser":{"@id":"https://schema.org/buyer"},"carrier":{"@id":"https://schema.org/carrier"},"broker":{"@id":"https://schema.org/broker"}}},"AgricultureProduct":{"@id":"https://w3id.org/traceability#AgricultureProduct","@context":{"plu":{"@id":"https://schema.org/identifier"},"product":{"@id":"https://www.gs1.org/voc/Product"},"unitQuantity":{"@id":"https://vocabulary.uncefact.org/actualQuantity"},"scientificName":{"@id":"https://vocabulary.uncefact.org/scientificName"},"plantParts":{},"labelImageUrl":{"@id":"https://schema.org/url"},"labelImageHash":{"@id":"https://schema.org/sha256"},"name":{"@id":"https://schema.org/name"},"variety":{"@id":"https://www.gs1.org/voc/consumerProductVariant"},"commodityDesignation":{"@id":"https://www.gs1.org/voc/additionalProductDescription"},"packType":{"@id":"https://www.gs1.org/voc/packaging"}}},"BankAccount":{"@id":"https://w3id.org/traceability#BankAccount","@context":{"accountId":{"@id":"https://w3id.org/traceability#accountId"},"BIC11":{"@id":"https://w3id.org/traceability#BIC11"},"iban":{"@id":"https://w3id.org/traceability#iban"},"routingInfo":{"@id":"https://w3id.org/traceability#routingInfo"},"familyName":{"@id":"http://schema.org/familyName"},"givenName":{"@id":"http://schema.org/givenName"},"address":{"@id":"https://schema.org/PostalAddress"}}},"BankAccountHolderAffirmation":{"@id":"https://w3id.org/traceability#BankAccountHolderAffirmation","@context":{"affirmingParty":{"@id":"https://w3id.org/traceability#evidenceVerifier"},"bankAccountHolderAffirmationApproach":{"@id":"https://schema.org/name"},"bank":{"@id":"https://schema.org/Organization"}}},"BillOfLading":{"@id":"https://w3id.org/traceability#BillOfLading","@context":{"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"bookingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BN"},"relatedDocuments":{"@id":"https://schema.org/Purchase"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"consignor":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"notify":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"freightForwarder":{"@id":"https://vocabulary.uncefact.org/freightForwarderParty"},"freight":{"@id":"https://schema.org/ParcelDelivery"},"nmfcFreightClass":{"@id":"https://w3id.org/traceability#nmfcFreightClass"},"hazardCode":{"@id":"https://w3id.org/traceability#hazardCode"},"portOfLoading":{"@id":"https://vocabulary.uncefact.org/LocationFunctionCodeList#9"},"portOfDischarge":{"@id":"https://vocabulary.uncefact.org/LocationFunctionCodeList#11"},"particulars":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"}}},"BusinessRegistrationVerification":{"@id":"https://w3id.org/traceability#BusinessRegistrationVerification","@context":{"affirmingParty":{"@id":"https://w3id.org/traceability#affirmingParty"},"registrationUrl":{"@id":"https://schema.org/url"},"taxIdentificationNumber":{"@id":"https://vocabulary.uncefact.org/uncl1153#AHP"},"countryOfRegistration":{"@id":"https://schema.org/country"}}},"CBPEntry":{"@id":"https://w3id.org/traceability#CBPEntry","@context":{"portOfEntry":{"@id":"https://schema.org/Place"},"bondType":{"@id":"https://w3id.org/traceability#bondType"},"importer":{"@id":"https://vocabulary.uncefact.org/importerParty"},"importerOfRecord":{"@id":"https://w3id.org/traceability#importerOfRecord"},"entryNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AQM"},"bondValue":{"@id":"https://schema.org/MonetaryAmount"},"entryValue":{"@id":"https://schema.org/MonetaryAmount"},"centralizedExaminationSite":{"@id":"https://w3id.org/traceability#centralizedExaminationSite"},"entryType":{"@id":"https://w3id.org/traceability#entryType"},"originatingWarehouseEntryNumber":{"@id":"https://w3id.org/traceability#originatingWarehouseEntryNumber"},"suretyCode":{"@id":"https://w3id.org/traceability#suretyCode"},"portOfUnlading":{"@id":"https://schema.org/Place"},"transportMode":{"@id":"https://w3id.org/traceability#transportMode"},"locationOfGoods":{"@id":"https://schema.org/Place"},"generalOrderNumber":{"@id":"https://w3id.org/traceability#generalOrderNumber"},"conveyanceNameOrFreeTradeZoneID":{"@id":"https://w3id.org/traceability#conveyanceNameOrFreeTradeZoneID"},"referenceIDCode":{"@id":"https://w3id.org/traceability#referenceIDCode"},"referenceIDNumber":{"@id":"https://w3id.org/traceability#referenceIDNumber"},"lineItems":{"@id":"https://w3id.org/traceability#lineItems"},"nonAMS":{"@id":"https://w3id.org/traceability#nonAMS"},"splitBill":{"@id":"https://w3id.org/traceability#splitBill"},"bolType":{"@id":"https://w3id.org/traceability#bolType"},"scac":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AAZ"},"inBondNumber":{"@id":"https://w3id.org/traceability#inBondNumber"},"bolNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"quantity":{"@id":"https://w3id.org/traceability#quantity"},"voyageFlightTrip":{"@id":"https://w3id.org/traceability#voyageFlightTrip"},"conveyanceName":{"@id":"https://w3id.org/traceability#conveyanceName"},"arrivalDate":{"@id":"https://vocabulary.uncefact.org/actualArrivalRelatedDateTime"}}},"CBPEntryEntity":{"@id":"https://w3id.org/traceability#CBPEntryEntity","@context":{"importerOfRecord":{"@id":"https://w3id.org/traceability#importerOfRecord"}}},"CBPEntryLineItem":{"@id":"https://w3id.org/traceability#CBPEntryLineItem","@context":{"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"productDescription":{"@id":"https://schema.org/description"},"itemCount":{"@id":"https://vocabulary.uncefact.org/despatchedQuantity"},"itemParty":{"@id":"https://w3id.org/traceability#itemParty"},"freeTradeZoneFilingDate":{"@id":"https://schema.org/endDate"},"freeTradeZoneStatus":{"@id":"https://w3id.org/traceability#freeTradeZoneStatus"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"value":{"@id":"https://schema.org/MonetaryAmount"}}},"CBPEntrySummary":{"@id":"https://w3id.org/traceability#CBPEntrySummary","@context":{"entryNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AQM"},"entryType":{"@id":"https://w3id.org/traceability#entryType"},"summaryDate":{"@id":"https://vocabulary.uncefact.org/submissionDateTime"},"suretyCode":{"@id":"https://w3id.org/traceability#suretyCode"},"bondType":{"@id":"https://w3id.org/traceability#bondType"},"portCode":{"@id":"https://schema.org/Place"},"entryDate":{"@id":"https://vocabulary.uncefact.org/jurisdictionEntryDateTime"},"importingCarrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"transportMode":{"@id":"https://w3id.org/traceability#transportMode"},"countryOfOrigin":{"@id":"https://w3id.org/traceability#countryOfOrigin"},"importDate":{"@id":"https://vocabulary.uncefact.org/arrivalRelatedDateTime"},"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"manufacturerId":{"@id":"https://schema.org/identifier"},"exportingCountry":{"@id":"https://schema.org/addressCountry"},"exportDate":{"@id":"https://vocabulary.uncefact.org/departureRelatedDateTime"},"immediateTransportationNumber":{"@id":"https://schema.org/identifier"},"immediateTransportationDate":{"@id":"https://vocabulary.uncefact.org/actualOccurrenceDateTime"},"missingDocuments":{"@id":"https://w3id.org/traceability#missingDocuments"},"portOfLoading":{"@id":"https://schema.org/Place"},"portOfUnlading":{"@id":"https://schema.org/Place"},"locationOfGoods":{"@id":"https://schema.org/Place"},"consigneeNumber":{"@id":"https://schema.org/identifier"},"importerNumber":{"@id":"https://w3id.org/traceability#importerOfRecord"},"referenceNumber":{"@id":"https://w3id.org/traceability#referenceNumber"},"ultimateConsignee":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"importerOfRecord":{"@id":"https://vocabulary.uncefact.org/importerParty"},"descriptionOfMerchandise":{"@id":"https://w3id.org/traceability#descriptionOfMerchandise"},"otherFeeSummary":{"@id":"https://w3id.org/traceability#otherFeeSummary"},"totalEnteredValue":{"@id":"https://schema.org/MonetaryAmount"},"declarationOfImporter":{"@id":"https://w3id.org/traceability#declarationOfImporter"},"duty":{"@id":"https://schema.org/MonetaryAmount"},"tax":{"@id":"https://schema.org/MonetaryAmount"},"other":{"@id":"https://schema.org/MonetaryAmount"},"total":{"@id":"https://schema.org/MonetaryAmount"}}},"CBPEntrySummaryLineItem":{"@id":"https://w3id.org/traceability#CBPEntrySummaryLineItem","@context":{"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"adCvdNumber":{"@id":"https://w3id.org/traceability#adCvdNumber"},"categoryNumber":{"@id":"https://w3id.org/traceability#categoryNumber"},"otherFees":{"@id":"https://w3id.org/traceability#otherFees"},"grossWeight":{"@id":"https://schema.org/weight"},"manifestQuantity":{"@id":"https://w3id.org/traceability#manifestQuantity"},"netQuantity":{"@id":"https://schema.org/Quantity"},"enteredValue":{"@id":"https://schema.org/MonetaryAmount"},"charges":{"@id":"https://schema.org/MonetaryAmount"},"relationship":{"@id":"https://schema.org/MonetaryAmount"},"htsRate":{"@id":"https://w3id.org/traceability#htsRate"},"adCvdRate":{"@id":"https://w3id.org/traceability#adCvdRate"},"ircRate":{"@id":"https://w3id.org/traceability#ircRate"},"visaNumber":{"@id":"https://w3id.org/traceability#visaNumber"},"agriculturalLicenseNumber":{"@id":"https://w3id.org/traceability#agriculturalLicenseNumber"},"dutyAndIRTax":{"@id":"https://w3id.org/traceability#dutyAndIRTax"}}},"CBPEntryType86":{"@id":"https://w3id.org/traceability#CBPEntryType86","@context":{"bolNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"entryNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AQM"},"portOfEntry":{"@id":"https://schema.org/Place"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"quantity":{"@id":"https://w3id.org/traceability#quantity"},"fairRetailValue":{"@id":"https://schema.org/MonetaryAmount"},"htsusNumber":{"@id":"https://w3id.org/traceability#commodityCode"},"importerOfRecord":{"@id":"https://w3id.org/traceability#importerOfRecord"}}},"CBPImporterOfRecord":{"@id":"https://w3id.org/traceability#CBPImporterOfRecord","@context":{"number":{"@id":"https://w3id.org/traceability#CBPImporterOfRecordNumber"},"identifierType":{"@id":"https://w3id.org/traceability#CBPImporterOfRecordType"}}},"CTPAT":{"@id":"https://w3id.org/traceability#CTPAT","@context":{"sviNumber":{"@id":"https://w3id.org/traceability#sviNumber"},"ctpatAccountNumber":{"@id":"https://w3id.org/traceability#ctpatAccountNumber"},"tradeSector":{"@id":"https://schema.org/industry"},"tier":{"@id":"https://w3id.org/traceability#ctpatTier"},"dateOfLastValidation":{"@id":"https://schema.org/endDate"},"issuingCountry":{"@id":"https://schema.org/addressCountry"}}},"CTPATEIPApplication":{"@id":"https://w3id.org/traceability#CTPAT","@context":{"applicant":{"@id":"https://w3id.org/traceability#applicant"},"applicantType":{"@id":"https://w3id.org/traceability#applicantType"}}},"CTPATMember":{"@id":"https://schema.org/Organization","@context":{"name":{"@id":"https://schema.org/name"},"scac":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AAZ"},"iataCarrierCode":{"@id":"https://onerecord.iata.org/cargo/Company#airlineCode"},"importerOfRecord":{"@id":"https://w3id.org/traceability#importerOfRecord"},"faxNumber":{"@id":"https://schema.org/faxNumber"},"url":{"@id":"https://schema.org/url"},"logo":{"@id":"https://schema.org/logo"}}},"CargoItem":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/cargoItem","@context":{"cargoLineItems":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/cargoLineItem"},"carrierBookingReference":{"@id":"https://vocabulary.uncefact.org/carrierAssignedId"},"weight":{"@id":"https://schema.org/weight"},"volume":{"@id":"https://vocabulary.uncefact.org/grossVolumeMeasure"},"weightUnit":{"@id":"https://schema.org/unitCode"},"volumeUnit":{"@id":"https://schema.org/unitCode"},"numberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"packageCode":{"@id":"https://vocabulary.uncefact.org/packageTypeCode"}}},"CargoLineItem":{"@id":"https://w3id.org/traceability#CargoLineItem","@context":{"cargoLineItemID":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/cargoLineItemID"},"shippingMarks":{"@id":"https://vocabulary.uncefact.org/physicalShippingMarks"},"descriptionOfGoods":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/descriptionOfGoods"},"HSCode":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/HSCode"}}},"ChargeDeclaration":{"@id":"https://w3id.org/traceability#ChargeDeclaration","@context":{"weightCharge":{"@id":"https://schema.org/price"},"valuationCharge":{"@id":"https://schema.org/price"},"tax":{"@id":"https://schema.org/price"},"dueAgent":{"@id":"https://schema.org/price"},"dueCarrier":{"@id":"https://schema.org/price"},"total":{"@id":"https://schema.org/totalPrice"}}},"ChemicalProperty":{"@id":"https://w3id.org/traceability#ChemicalProperty","@context":{"identifier":{"@id":"https://schema.org/identifier"},"name":{"@id":"https://schema.org/name"},"description":{"@id":"https://schema.org/description"},"formula":{"@id":"https://purl.obolibrary.org/obo/chebi/formula"},"inchi":{"@id":"https://purl.obolibrary.org/obo/chebi/inchi"},"inchikey":{"@id":"https://purl.obolibrary.org/obo/chebi/inchikey"}}},"CommissionEvent":{"@id":"https://w3id.org/traceability#CommissionEvent","@context":{"place":{"@id":"https://schema.org/Place"},"organization":{"@id":"https://w3id.org/traceability#Organization"},"products":{"@id":"https://schema.org/Product"}}},"Commodity":{"@id":"https://w3id.org/traceability#Commodity","@context":{"commodityCode":{"@id":"https://w3id.org/traceability#commodityCode"},"commodityCodeType":{"@id":"https://w3id.org/traceability#commodityCodeType"},"description":{"@id":"https://schema.org/description"}}},"ConsignmentItem":{"@id":"https://vocabulary.uncefact.org/ConsignmentItem","@context":{"marksAndNumbers":{"@id":"https://vocabulary.uncefact.org/ShippingMarks"},"descriptionOfPackagesAndGoods":{"@id":"https://vocabulary.uncefact.org/natureIdentificationCargo"},"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"packageQuantity":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"netWeight":{"@id":"https://schema.org/weight"},"grossWeight":{"@id":"https://schema.org/weight"},"grossVolume":{"@id":"https://vocabulary.uncefact.org/grossVolumeMeasure"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"manufacturer":{"@id":"https://vocabulary.uncefact.org/manufacturerParty"},"transportPackages":{"@id":"https://vocabulary.uncefact.org/transportPackage"}}},"ConsignmentRatingDetail":{"@id":"https://w3id.org/traceability#ConsignmentRatingDetail","@context":{"numberOfPieces":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"grossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"grossWeightUnit":{"@id":"https://schema.org/unitCode"},"rateClass":{"@id":"https://vocabulary.uncefact.org/freightChargeTariffClassCode"},"commodityItemNumber":{"@id":"https://vocabulary.uncefact.org/discountIndicator"},"chargeableWeight":{"@id":"https://schema.org/weight"},"rateCharge":{"@id":"https://schema.org/price"},"total":{"@id":"https://schema.org/totalPrice"},"natureAndVolumeOfGoods":{"@id":"https://schema.org/description"}}},"ContactPoint":{"@id":"https://schema.org/ContactPoint","@context":{"name":{"@id":"https://schema.org/name"},"place":{"@id":"https://w3id.org/traceability#place"},"email":{"@id":"https://schema.org/email"},"phoneNumber":{"@id":"https://schema.org/telephone"},"jobTitle":{"@id":"https://schema.org/jobTitle"}}},"Customer":{"@id":"https://w3id.org/traceability#Customer","@context":{"name":{"@id":"https://schema.org/name"},"address":{"@id":"https://schema.org/PostalAddress"},"telephone":{"@id":"https://schema.org/telephone"},"email":{"@id":"https://schema.org/email"}}},"DCSAShippingInstruction":{"@id":"https://vocabulary.uncefact.org/TransportInstructions","@context":{"shippingInstructionID":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#TIN"},"transportDocumentType":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/transportDocumentType"},"preCarriageUnderShippersResponsibility":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/preCarriageUnderShippersResponsibility"},"invoicePayableAt":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/invoicePayableAt"},"carrierBookingReference":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BN"},"cargoItems":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"utilizedTransportEquipments":{"@id":"https://vocabulary.uncefact.org/utilizedTransportEquipment"},"shipmentLocations":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DOCUMENTATION_DOMAIN/1.0.0#/components/schemas/shipmentLocation"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"invoicePayerShipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"invoicePayerConsignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"firstNotify":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"secondNotify":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"otherNotify":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"shippersFreightForwarder":{"@id":"https://vocabulary.uncefact.org/freightForwarderParty"},"consigneesFreightForwarder":{"@id":"https://vocabulary.uncefact.org/freightForwarderParty"}}},"DCSATransportDocument":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/transportDocument","@context":{"transportDocumentReference":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"placeOfIssue":{"@id":"https://vocabulary.uncefact.org/issueLocation"},"issueDate":{"@id":"https://vocabulary.uncefact.org/issueDateTime"},"shippedOnBoardDate":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/shippedOnBoardDate"},"receivedForShipmentDate":{"@id":"https://vocabulary.uncefact.org/availabilityDueDateTime"},"termsAndConditions":{"@id":"https://vocabulary.uncefact.org/termsAndConditionsDescription"},"issuerCode":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AAZ"},"issuerCodeListProvider":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/issuerCodeListProvider"},"declaredValueCurrency":{"@id":"https://schema.org/currency"},"cargoMovementTypeAtOrigin":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/cargoMovementTypeAtOrigin"},"cargoMovementTypeAtDestination":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/cargoMovementTypeAtDestination"},"receiptDeliveryTypeAtOrigin":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/receiptDeliveryTypeAtOrigin"},"receiptDeliveryTypeAtDestination":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/receiptDeliveryTypeAtDestination"},"serviceContractReference":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.2#/components/schemas/serviceContractReference"},"shippingInstruction":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/shippingInstruction"},"charges":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/charges"},"clauses":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/clauses"},"transports":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/transports"}}},"DeMinimisShipment":{"@id":"https://w3id.org/traceability#DeMinimisShipment","@context":{"originatorCode":{"@id":"https://w3id.org/traceability#originatorCode"},"participantFilerType":{"@id":"https://w3id.org/traceability#participantFilerType"},"shipmentTrackingNumber":{"@id":"https://vocabulary.uncefact.org/MarkingInstructionCodeList#37"},"houseBillOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BH"},"masterBillOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"modeOfTransportation":{"@id":"https://vocabulary.uncefact.org/mode"},"shipmentInitiator":{"@id":"https://w3id.org/traceability#shipmentInitiator"},"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"buyer":{"@id":"https://vocabulary.uncefact.org/buyerParty"},"finalDeliverTo":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"enhancedProductDescription":{"@id":"https://w3id.org/traceability#enhancedProductDescription"},"shipmentSecurityScan":{"@id":"https://w3id.org/traceability#shipmentSecurityScan"},"knownCarrierCustomerFlag":{"@id":"https://w3id.org/traceability#knownCarrierCustomerFlag"},"knownMarketplaceSellerFlag":{"@id":"https://w3id.org/traceability#knownMarketplaceSellerFlag"},"marketplaceSellerAccountNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#ADE"},"productPicture":{"@id":"https://schema.org/image"},"listedPriceOnMarketplace":{"@id":"https://schema.org/price"}}},"DeliverySchedule":{"@id":"https://w3id.org/traceability#DeliverySchedule","@context":{"transporter":{"@id":"https://schema.org/agent"},"batchNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BT"},"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"place":{"@id":"https://schema.org/toLocation"},"consignor":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"scheduledVolume":{"@id":"https://w3id.org/traceability#QuantitativeValue"},"scheduledDate":{"@id":"https://schema.org/departureTime"},"injectionVolume":{"@id":"https://w3id.org/traceability#QuantitativeValue"},"injectionDate":{"@id":"https://schema.org/departureTime"},"injectionEndDate":{"@id":"https://schema.org/departureTime"},"deliveryDate":{"@id":"https://schema.org/arrivalTime"},"deliveryEndDate":{"@id":"https://schema.org/arrivalTime"},"portOfEntry":{"@id":"https://w3id.org/traceability#Place"},"portOfDestination":{"@id":"https://w3id.org/traceability#Place"},"portOfArrival":{"@id":"https://w3id.org/traceability#Place"},"addressCountry":{"@id":"https://schema.org/addressCountry"}}},"DeliveryStatement":{"@id":"https://w3id.org/traceability#DeliveryStatement","@context":{"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"deliveredDate":{"@id":"https://schema.org/endDate"},"deliveredVolume":{"@id":"https://schema.org/MeasuredValue"},"observation":{"@id":"https://w3id.org/traceability#observation"}}},"EDDShape":{"@id":"https://w3id.org/traceability#EDDShape","@context":{"meta":{"@id":"https://w3id.org/traceability#EDDShapeMeta"},"reporter":{"@id":"https://schema.org/name"},"scientificName":{"@id":"http://rs.tdwg.org/dwc/terms/scientificName"},"commonName":{"@id":"http://rs.tdwg.org/dwc/terms/vernacularName"},"subjectNativity":{"@id":"http://rs.tdwg.org/dwc/terms/establishmentMeans"},"occurrenceStatus":{"@id":"http://rs.tdwg.org/dwc/iri/measurementValue"},"status":{"@id":"https://schema.org/description"},"observationDate":{"@id":"http://rs.tdwg.org/dwc/terms/eventDate"},"dateEntered":{"@id":"http://rs.tdwg.org/dwc/terms/eventDate"},"dateUpdated":{"@id":"http://rs.tdwg.org/dwc/terms/eventDate"},"location":{"@id":"https://schema.org/location"},"mapResources":{"@id":"https://w3id.org/traceability#MapResource"},"naDatum":{"@id":"http://rs.tdwg.org/dwc/terms/geodeticDatum"},"coordinateUncertainty":{"@id":"http://rs.tdwg.org/dwc/terms/coordinateUncertaintyInMeters"},"centroidType":{"@id":"https://schema.org/polygon"},"abundance":{"@id":"https://schema.org/description"},"infestedAreaAcres":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"grossAreaAcres":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"percentCover":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"density":{"@id":"http://rs.tdwg.org/dwc/terms/measurementRemarks"},"quantity":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"quantityUnits":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantityType"},"approximateQuantity":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"incidence":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"severity":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"managementStatus":{"@id":"https://schema.org/status"},"habitat":{"@id":"http://rs.tdwg.org/dwc/terms/habitat"},"siteName":{"@id":"http://rs.tdwg.org/dwc/terms/locationID"},"recordBasis":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"},"surveyor":{"@id":"http://rs.tdwg.org/dwc/terms/recordedBy"},"dateUncertaintyDays":{"@id":"http://rs.tdwg.org/dwc/terms/measurementAccuracy"},"visitType":{"@id":"https://schema.org/description"},"persistentId":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceID"},"uuid":{"@id":"http://rs.tdwg.org/dwc/terms/dateIdentified"},"reviewer":{"@id":"http://rs.tdwg.org/dwc/terms/identifiedBy"},"verificationMethod":{"@id":"http://rs.tdwg.org/dwc/terms/identificationRemarks"},"verified":{"@id":"http://rs.tdwg.org/dwc/terms/identificationVerificationStatus"},"identificationCredibility":{"@id":"http://rs.tdwg.org/dwc/terms/identificationRemarks"}}},"EDDShapeMeta":{"@id":"https://w3id.org/traceability#EDDShapeMeta","@context":{"recordOwner":{"@id":"https://schema.org/name"},"shapeType":{"@id":"https://schema.org/description"},"method":{"@id":"http://rs.tdwg.org/dwc/terms/locationRemarks"},"numberCollected":{"@id":"http://rs.tdwg.org/dwc/terms/measurementRemarks"},"populationStatus":{"@id":"http://rs.tdwg.org/dwc/terms/degreeOfEstablishment"},"smallestOrganismSampled":{"@id":"https://schema.org/size"},"largestOrganismSampled":{"@id":"https://schema.org/size"},"hostScientificName":{"@id":"http://rs.tdwg.org/dwc/terms/scientificName"},"hostName":{"@id":"http://rs.tdwg.org/dwc/terms/vernacularName"},"hostPhenology":{"@id":"http://rs.tdwg.org/dwc/terms/lifeStage"},"hostDamage":{"@id":"https://schema.org/description"},"localOwnership":{"@id":"http://rs.tdwg.org/dwc/terms/locality"},"museum":{"@id":"https://schema.org/name"},"museumRecord":{"@id":"http://rs.tdwg.org/dwc/terms/catalogNumber"},"voucher":{"@id":"http://rs.tdwg.org/dwc/terms/disposition"},"observationId":{"@id":"http://rs.tdwg.org/dwc/terms/identifiedBy"},"collectionTimeMinutes":{"@id":"https://schema.org/activityDuration"},"originalRecordId":{"@id":"http://rs.tdwg.org/dwc/terms/recordNumber"},"originalReportedName":{"@id":"http://rs.tdwg.org/dwc/terms/verbatimIdentification"},"recordSourceType":{"@id":"http://rs.tdwg.org/dwc/terms/measurementRemarks"},"dataCollectionMethod":{"@id":"http://rs.tdwg.org/dwc/terms/measurementMethod"},"trapType":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"},"numberTraps":{"@id":"http://rs.tdwg.org/dwc/terms/samplingEffort"},"targetName":{"@id":"http://rs.tdwg.org/dwc/terms/organismName"},"targetCount":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"targetRange":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"phenology":{"@id":"http://rs.tdwg.org/dwc/terms/organismRemarks"},"lifeStatus":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"sex":{"@id":"http://rs.tdwg.org/dwc/terms/sex"},"waterBodyName":{"@id":"http://rs.tdwg.org/dwc/terms/waterBody"},"waterBodyType":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"substrate":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"treatmentArea":{"@id":"http://rs.tdwg.org/dwc/iri/measurementValue"},"plantsTreated":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"treatmentComments":{"@id":"http://rs.tdwg.org/dwc/terms/eventRemarks"},"reference":{"@id":"http://rs.tdwg.org/dwc/terms/associatedReferences"},"locality":{"@id":"http://rs.tdwg.org/dwc/terms/locationRemarks"},"comments":{"@id":"http://rs.tdwg.org/dwc/terms/eventRemarks"},"publicReviewerComments":{"@id":"http://rs.tdwg.org/dwc/terms/identificationRemarks"}}},"Entity":{"@id":"https://w3id.org/traceability#Entity","@context":{"entityType":{"@id":"https://schema.org/additionalType"},"name":{"@id":"https://schema.org/name"},"legalName":{"@id":"https://schema.org/legalName"},"url":{"@id":"https://schema.org/url"},"taxId":{"@id":"https://schema.org/taxID"},"address":{"@id":"https://schema.org/PostalAddress"},"email":{"@id":"https://schema.org/email"},"phoneNumber":{"@id":"https://schema.org/telephone"},"faxNumber":{"@id":"https://schema.org/faxNumber"}}},"EntryNumber":{"@id":"https://w3id.org/traceability#EntryNumber","@context":{"entryNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AQM"}}},"Event":{"@id":"https://w3id.org/traceability#EventCredential","@context":{}},"ExternalResource":{"@id":"https://w3id.org/traceability#ExternalResource","@context":{"uri":{"@id":"https://schema.org/contentUrl"},"hash":{"@id":"https://schema.org/sha256"}}},"FSMAAbstractKDE":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE","@context":{"name":{"@id":"https://schema.org/propertyID"},"value":{"@id":"https://schema.org/value"}}},"FSMACreatingCTE":{"@id":"https://w3id.org/traceability#FSMACreatingCTE","@context":{"food":{"@id":"https://w3id.org/traceability#FSMAProduct"},"location":{"@id":"https://schema.org/location"},"dateCompleted":{"@id":"https://vocabulary.uncefact.org/creationDateTime"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAFirstReceiverData":{"@id":"https://w3id.org/traceability#FSMAFirstReceiverData","@context":{"traceabilityLot":{"@id":"https://w3id.org/traceability#FSMATraceabilityLot"},"originatorLocation":{"@id":"https://schema.org/location"},"harvestDate":{"@id":"https://vocabulary.uncefact.org/harvestDateTime"},"coolingLocation":{"@id":"https://schema.org/location"},"coolingDate":{"@id":"https://vocabulary.uncefact.org/actualOccurrenceDateTime"},"packingLocation":{"@id":"https://schema.org/location"},"packingDate":{"@id":"https://www.gs1.org/voc/packagingDate"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAGrowingCTE":{"@id":"https://w3id.org/traceability#FSMAGrowingCTE","@context":{"traceabilityLot":{"@id":"https://w3id.org/traceability#FSMATraceabilityLot"},"growingAreaCoordinates":{"@id":"https://w3id.org/traceability#GeoCoordinates"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAProduct":{"@id":"https://w3id.org/traceability#FSMAProduct","@context":{"traceabilityLot":{"@id":"https://w3id.org/traceability#FSMATraceabilityLot"},"quantity":{"@id":"https://vocabulary.uncefact.org/applicableQuantity"},"unit":{"@id":"https://vocabulary.uncefact.org/applicableQuantityUnitTypeCode"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAReceivingCTE":{"@id":"https://w3id.org/traceability#FSMAReceivingCTE","@context":{"shipment":{"@id":"https://w3id.org/traceability#FSMAShipment"},"dateReceived":{"@id":"https://vocabulary.uncefact.org/receivedDateTime"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAShipment":{"@id":"https://w3id.org/traceability#FSMAShipment","@context":{"product":{"@id":"https://w3id.org/traceability#FSMAProduct"},"from":{"@id":"https://schema.org/fromLocation"},"to":{"@id":"https://schema.org/toLocation"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMAShippingCTE":{"@id":"https://w3id.org/traceability#FSMAShippingCTE","@context":{"shipment":{"@id":"https://w3id.org/traceability#FSMAShipment"},"dateShipped":{"@id":"https://schema.org/startDate"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMATraceabilityLot":{"@id":"https://w3id.org/traceability#FSMATraceabilityLot","@context":{"lotCode":{"@id":"https://www.gs1.org/voc/hasBatchLotNumber"},"lotCodeAssignmentMethod":{"@id":"https://schema.org/description"},"lotCodeGeneratorLocation":{"@id":"https://schema.org/location"},"lotCodeGeneratorPOC":{"@id":"https://schema.org/contactPoint"},"lotType":{"@id":"https://schema.org/additionalType"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FSMATransformingCTE":{"@id":"https://w3id.org/traceability#FSMATransformingCTE","@context":{"foodUsed":{"@id":"https://w3id.org/traceability#FSMAProduct"},"foodProduced":{"@id":"https://w3id.org/traceability#FSMAProduct"},"locationTransformed":{"@id":"https://schema.org/location"},"dateCompleted":{"@id":"https://vocabulary.uncefact.org/occurrenceDateTime"},"additionalData":{"@id":"https://w3id.org/traceability#FSMAAbstractKDE"}}},"FoodDefenseDeficiency":{"@id":"https://w3id.org/traceability#FoodDefenseDeficiency","@context":{"number":{"@id":"https://schema.org/identifier"},"description":{"@id":"https://schema.org/description"},"proposedCorrectionDate":{"@id":"https://vocabulary.uncefact.org/occurrenceDateTime"},"dateCorrected":{"@id":"https://vocabulary.uncefact.org/occurrenceDateTime"}}},"FoodDefenseInspection":{"@id":"https://w3id.org/traceability#FoodDefenseInspection","@context":{"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"questions":{"@id":"https://w3id.org/traceability#FoodDefenseQuestion"},"deficiencies":{"@id":"https://w3id.org/traceability#FoodDefenseDeficiency"}}},"FoodDefenseQuestion":{"@id":"https://w3id.org/traceability#FoodDefenseQuestion","@context":{"number":{"@id":"https://schema.org/identifier"},"facility":{"@id":"https://schema.org/location"},"response":{"@id":"https://vocabulary.uncefact.org/assertion"},"rating":{"@id":"https://vocabulary.uncefact.org/assertion"}}},"FoodGradeInspection":{"@id":"https://w3id.org/traceability#FoodGradeInspection","@context":{"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"loadingStatus":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"carrierTypeName":{"@id":"https://vocabulary.uncefact.org/utilizedTransportEquipment"},"refrigerationUnitOn":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"doorsOpen":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"lots":{"@id":"https://w3id.org/traceability#FoodGradeInspectionLot"},"generalRemarks":{"@id":"https://vocabulary.uncefact.org/remarks"},"estimatedCharges":{"@id":"https://vocabulary.uncefact.org/applicableServiceCharge"}}},"FoodGradeInspectionDefect":{"@id":"https://w3id.org/traceability#FoodGradeInspectionDefect","@context":{"offsizeDefect":{"@id":"https://vocabulary.uncefact.org/damageRemarks"},"averageDefects":{"@id":"https://qudt.org/vocab/unit/PERCENT"},"damage":{"@id":"https://qudt.org/vocab/unit/PERCENT"},"seriousDamage":{"@id":"https://qudt.org/vocab/unit/PERCENT"},"verySeriousDamage":{"@id":"https://qudt.org/vocab/unit/PERCENT"}}},"FoodGradeInspectionLot":{"@id":"https://w3id.org/traceability#FoodGradeInspectionLot","@context":{"agricultureProduct":{"@id":"https://w3id.org/traceability#AgricultureProduct"},"lotIdentifier":{"@id":"https://www.gs1.org/voc/hasBatchLotNumber"},"numberContainers":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"countInspected":{"@id":"https://vocabulary.uncefact.org/remark"},"brandMarkings":{"@id":"https://vocabulary.uncefact.org/brandName"},"samples":{"@id":"https://w3id.org/traceability#FoodGradeInspectionSample"},"defects":{"@id":"https://w3id.org/traceability#FoodGradeInspectionDefect"},"grade":{"@id":"https://w3id.org/traceability#FoodGradeInspectionResult"},"remarks":{"@id":"https://vocabulary.uncefact.org/remark"},"minTemperature":{"@id":"https://schema.org/measuredValue"},"maxTemperature":{"@id":"https://schema.org/measuredValue"}}},"FoodGradeInspectionResult":{"@id":"https://w3id.org/traceability#FoodGradeInspectionResult","@context":{"gradeInspected":{"@id":"https://vocabulary.uncefact.org/standard"},"requirementsMet":{"@id":"https://vocabulary.uncefact.org/assertion"},"details":{"@id":"https://vocabulary.uncefact.org/additionalInformationNote"}}},"FoodGradeInspectionSample":{"@id":"https://w3id.org/traceability#FoodGradeInspectionSample","@context":{"sampleSizeValue":{"@id":"https://vocabulary.uncefact.org/applicableQuantity"},"sampleSizeUnits":{"@id":"https://vocabulary.uncefact.org/applicableQuantityUnitTypeCode"},"sampleProperties":{"@id":"https://w3id.org/traceability#FoodGradeInspectionSampleProperty"}}},"FoodGradeInspectionSampleProperty":{"@id":"https://w3id.org/traceability#FoodGradeInspectionSampleProperty","@context":{"propertyName":{"@id":"https://vocabulary.uncefact.org/parameterValue"},"propertyValue":{"@id":"https://vocabulary.uncefact.org/measuredValue"}}},"ForeignChargeDeclaration":{"@id":"https://w3id.org/traceability#ForeignChargeDeclaration","@context":{"foreignCurrencyConvertionRate":{"@id":"https://schema.org/currentExchangeRate"},"foreignChargesCurrency":{"@id":"https://schema.org/currency"},"foreignCharges":{"@id":"https://schema.org/price"}}},"FreightManifest":{"@id":"https://vocabulary.uncefact.org/manifestRelatedDocument","@context":{"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"carrierCode":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AAZ"},"transportMeans":{"@id":"https://vocabulary.uncefact.org/transportMeans"},"transportMeansId":{"@id":"https://schema.org/identifier"},"voyage":{"@id":"https://vocabulary.uncefact.org/TransportMovement"},"billsOfLading":{"@id":"https://vocabulary.uncefact.org/manifestRelatedDocument"}}},"GAPCorrectiveActionReport":{"@id":"https://w3id.org/traceability#GAPCorrectiveActionReport","@context":{"nonconformityDescription":{"@id":"https://schema.org/description"},"notifiedCompanyStaff":{"@id":"https://schema.org/actionStatus"},"correctiveAction":{"@id":"https://schema.org/potentialAction"},"affirmingRepresentative":{"@id":"https://vocabulary.uncefact.org/associatedParty"}}},"GAPInspection":{"@id":"https://w3id.org/traceability#GAPInspection","@context":{"GAPPlus":{"@id":"https://vocabulary.uncefact.org/documentTypeCode"},"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"usesLogo":{"@id":"https://vocabulary.uncefact.org/assertion"},"subjectToRule":{"@id":"https://vocabulary.uncefact.org/regulationConformityId"},"operationDescription":{"@id":"https://schema.org/description"},"harvestCompany":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"otherContractors":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"commoditiesCovered":{"@id":"https://schema.org/ItemList"},"commoditiesProduced":{"@id":"https://schema.org/ItemList"},"totalArea":{"@id":"https://www.gs1.org/voc/grossArea"},"fieldOpsHarvestingScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"postHarvestOpsScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"logoUseScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"tomatoProdHarvestingScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"tomatoPackinghouseScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"tomatoGreenhouseScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"tomatoPackingDistributionScope":{"@id":"https://www.gs1.org/voc/certificationStatement"},"personsInterviewed":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"requestedBy":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"distributeTo":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"additionalComments":{"@id":"https://vocabulary.uncefact.org/remarks"},"reviewingOfficial":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"dateReviewed":{"@id":"https://www.gs1.org/voc/certificationAuditDate"},"meetsCriteria":{"@id":"https://www.gs1.org/voc/certificationStatus"},"requirementResults":{"@id":"https://w3id.org/traceability#GAPRequirementResult"}}},"GAPLocationCertification":{"@id":"https://w3id.org/traceability#GAPLocationCertification","@context":{"location":{"@id":"https://www.gs1.org/voc/certificationSubject"},"gapInspection":{"@id":"https://www.gs1.org/voc/certification"},"isCertified":{"@id":"https://www.gs1.org/voc/certificationStatus"}}},"GAPRequirementResult":{"@id":"https://w3id.org/traceability#GAPRequirementResult","@context":{"requirementNumber":{"@id":"https://vocabulary.uncefact.org/standard"},"resultCode":{"@id":"https://vocabulary.uncefact.org/assertionCode"},"auditorComments":{"@id":"https://vocabulary.uncefact.org/remarks"},"correctiveActionReport":{"@id":"https://w3id.org/traceability#GAPCorrectiveActionReport"}}},"GeoCoordinates":{"@id":"https://schema.org/GeoCoordinates","@context":{"latitude":{"@id":"https://schema.org/latitude"},"longitude":{"@id":"https://schema.org/longitude"}}},"HouseBillOfLading":{"@id":"https://w3id.org/traceability#HouseBillOfLading","@context":{"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"bookingNumber":{"@id":"https://vocabulary.uncefact.org/carrierAssignedId"},"shippersReferences":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#FF"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"notifyParty":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"preCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/preCarriageTransportMovement"},"mainCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/mainCarriageTransportMovement"},"onCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/onCarriageTransportMovement"},"placeOfReceipt":{"@id":"https://schema.org/Place"},"portOfLoading":{"@id":"https://vocabulary.uncefact.org/transshipmentLocation"},"placeOfDelivery":{"@id":"https://schema.org/Place"},"portOfDischarge":{"@id":"https://vocabulary.uncefact.org/unloadingLocation"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"transportEquipmentQuantity":{"@id":"https://vocabulary.uncefact.org/transportEquipmentQuantity"},"includedConsignmentItems":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"freightAndCharges":{"@id":"https://vocabulary.uncefact.org/applicableServiceCharge"},"declaredValue":{"@id":"https://vocabulary.uncefact.org/declaredValueForCarriageAmount"},"termsAndConditions":{"@id":"https://vocabulary.uncefact.org/termsAndConditionsDescription"}}},"IATAAirWaybill":{"@id":"https://w3id.org/traceability#IATAAirWaybill","@context":{"airWaybillNumber":{"@id":"https://schema.org/orderNumber"},"waybillType":{"@id":"https://schema.org/DigitalDocument"},"airlineCodeNumber":{"@id":"https://onerecord.iata.org/cargo/Company#airlineCode"},"serialNumber":{"@id":"https://schema.org/serialNumber"},"airportOfDeparture":{"@id":"https://onerecord.iata.org/cargo/Location#code"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"conditionsOfContract":{"@id":"https://schema.org/termsOfService"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"shippersAccountNumber":{"@id":"https://schema.org/accountId"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"consigneesAccountNumber":{"@id":"https://schema.org/accountId"},"issuingCarrierAgent":{"@id":"https://vocabulary.uncefact.org/carrierAgentParty"},"agentIATACode":{"@id":"https://onerecord.iata.org/cargo/Company#iataCargoAgentCode"},"agentAccountNumber":{"@id":"https://schema.org/accountId"},"requestedRouting":{"@id":"https://schema.org/Trip"},"destinationAirport":{"@id":"https://onerecord.iata.org/cargo/Company#airlineCode"},"requestedFlight":{"@id":"https://schema.org/Flight"},"requestedDate":{"@id":"https://w3id.org/traceability#requestDate"},"accountingInformation":{"@id":"https://vocabulary.uncefact.org/typeCode"},"currency":{"@id":"https://schema.org/currency"},"chargeCodes":{"@id":"https://vocabulary.uncefact.org/chargeCategoryCode"},"weightValuationChargesType":{"@id":"https://vocabulary.uncefact.org/chargeCategoryCode"},"otherChargesType":{"@id":"https://vocabulary.uncefact.org/chargeCategoryCode"},"declaredValueForCarriage":{"@id":"https://vocabulary.uncefact.org/declaredValueForCarriageAmount"},"declaredValueForCustoms":{"@id":"https://vocabulary.uncefact.org/customsValueSpecifiedAmount"},"amountOfInsurance":{"@id":"https://vocabulary.uncefact.org/insuranceValueAmount"},"insuranceClauses":{"@id":"https://vocabulary.uncefact.org/contractualClause"},"handlingInformation":{"@id":"https://vocabulary.uncefact.org/handlingInstructions"},"specialCustomsInformation":{"@id":"https://vocabulary.uncefact.org/SpecifiedDeclaration"},"consignmentRatingDetails":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"totalNumberOfPieces":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"totalGrossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"totalCharge":{"@id":"https://schema.org/totalPrice"},"otherCharges":{"@id":"https://schema.org/price"},"prepaidChargeDeclaration":{"@id":"https://w3id.org/traceability#PrepaidChargeDeclaration"},"prepaidTotal":{"@id":"https://schema.org/totalPrice"},"collectChargeDeclaration":{"@id":"https://w3id.org/traceability#CollectChargeDeclaration"},"destinationCollectChargeDeclaration":{"@id":"https://w3id.org/traceability#DestinationCollectChargeDeclaration"},"collectTotal":{"@id":"https://schema.org/totalPrice"},"shippersCertificationBox":{"@id":"https://vocabulary.uncefact.org/CertificateTypeCodeList#2"},"executedOn":{"@id":"https://w3id.org/traceability#executionTime"},"executedAt":{"@id":"https://schema.org/Place"}}},"ImporterSecurityFiling":{"@id":"https://w3id.org/traceability#ImporterSecurityFiling","@context":{"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"buyer":{"@id":"https://vocabulary.uncefact.org/buyerParty"},"importer":{"@id":"https://vocabulary.uncefact.org/importerParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"shipToParty":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"filingItems":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"containerStuffingLocation":{"@id":"https://w3id.org/traceability#containerStuffingLocation"},"consolidator":{"@id":"https://vocabulary.uncefact.org/consolidatorParty"}}},"Inbond":{"@id":"https://w3id.org/traceability#Inbond","@context":{"product":{"@id":"https://www.gs1.org/voc/Product"},"shipment":{"@id":"https://schema.org/ParcelDelivery"},"inBondNumber":{"@id":"https://schema.org/identifier"},"entryId":{"@id":"https://schema.org/identifier"},"ftzNo":{"@id":"https://schema.org/identifier"},"inBondType":{"@id":"https://schema.org/identifier"},"portOfEntry":{"@id":"https://www.gs1.org/voc/Place"},"portOfDestination":{"@id":"https://www.gs1.org/voc/Place"},"portOfArrival":{"@id":"https://www.gs1.org/voc/Place"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"irsNumber":{"@id":"https://schema.org/identifier"},"recipient":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"billOfLadingNumber":{"@id":"https://schema.org/identifier"},"expectedDeliveryDate":{"@id":"https://schema.org/endDate"},"valuePerItem":{"@id":"https://schema.org/PriceSpecification"},"totalOrderValue":{"@id":"https://schema.org/PriceSpecification"}}},"InspectionReport":{"@id":"https://w3id.org/traceability#InspectionReport","@context":{"comment":{"@id":"https://schema.org/comment"},"inspectors":{"@id":"https://schema.org/Person"},"place":{"@id":"https://schema.org/Place"},"chemicalObservation":{"@id":"https://schema.org/ItemList"},"mechanicalObservation":{"@id":"https://schema.org/ItemList"}}},"Inspector":{"@id":"https://w3id.org/traceability#Inspector","@context":{"person":{"@id":"https://schema.org/Person"},"qualification":{"@id":"https://w3id.org/traceability#qualification"}}},"Instructions":{"@id":"https://vocabulary.uncefact.org/TransportInstructions","@context":{"description":{"@id":"https://schema.org/description"}}},"IntellectualPropertyRights":{"@id":"https://w3id.org/traceability#IntellectualPropertyRights","@context":{"intellectualPropertyRightsOwner":{"@id":"https://w3id.org/traceability#intellectualPropertyRightsOwner"},"intellectualPropertyRightsType":{"@id":"https://w3id.org/traceability#intellectualPropertyRightsType"},"intellectualPropertyRightsProduct":{"@id":"https://w3id.org/traceability#intellectualPropertyRightsProduct"}}},"IntellectualPropertyRightsAffirmation":{"@id":"https://w3id.org/traceability#IntellectualPropertyRightsAffirmation","@context":{"affirmingParty":{"@id":"https://w3id.org/traceability#affirmingParty"},"intellectualPropertyRightsType":{"@id":"https://w3id.org/traceability#intellectualPropertyRightsType"},"evidenceDocumentUrl":{"@id":"https://schema.org/url"}}},"IntellectualPropertyRightsLicense":{"@id":"https://w3id.org/traceability#IntellectualPropertyRightsLicense","@context":{}},"IntentToImport":{"@id":"https://w3id.org/traceability#IntentToImport","@context":{"exporter":{"@id":"https://vocabulary.uncefact.org/exporterParty"},"importer":{"@id":"https://vocabulary.uncefact.org/importerParty"},"product":{"@id":"https://www.gs1.org/voc/Product"},"declarationDate":{"@id":"https://schema.org/startDate"}}},"Invoice":{"@id":"https://schema.org/Invoice","@context":{"identifier":{"@id":"https://schema.org/identifier"},"invoiceNumber":{"@id":"https://vocabulary.uncefact.org/invoiceIssuerReference"},"customerReferenceNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#CR"},"referencesOrder":{"@id":"https://schema.org/referencesOrder"},"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"letterOfCreditNumber":{"@id":"https://vocabulary.uncefact.org/letterOfCreditDocument"},"portOfEntry":{"@id":"https://schema.org/Place"},"originCountry":{"@id":"https://vocabulary.uncefact.org/originCountry"},"destinationCountry":{"@id":"https://vocabulary.uncefact.org/destinationCountry"},"invoiceDate":{"@id":"https://vocabulary.uncefact.org/invoiceDateTime"},"purchaseDate":{"@id":"https://schema.org/paymentDueDate"},"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"buyer":{"@id":"https://vocabulary.uncefact.org/buyerParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"itemsShipped":{"@id":"https://schema.org/itemShipped"},"comments":{"@id":"https://schema.org/Comment"},"packageQuantity":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"totalWeight":{"@id":"https://schema.org/weight"},"termsOfDelivery":{"@id":"https://vocabulary.uncefact.org/specifiedDeliveryTerms"},"termsOfPayment":{"@id":"https://vocabulary.uncefact.org/specifiedPaymentTerms"},"termsOfSettlement":{"@id":"https://schema.org/currency"},"totalPaymentDue":{"@id":"https://schema.org/totalPaymentDue"},"discounts":{"@id":"https://schema.org/discount"},"deductions":{"@id":"https://vocabulary.uncefact.org/deductionAmount"},"tax":{"@id":"https://vocabulary.uncefact.org/taxTotalAmount"},"freightCost":{"@id":"https://schema.org/DeliveryChargeSpecification"},"insuranceCost":{"@id":"https://vocabulary.uncefact.org/insuranceChargeTotalAmount"}}},"LEIAddress":{"@id":"https://www.gleif.org/ontology/Base/PhysicalAddress","@context":{"language":{"@id":"https://schema.org/inLanguage"},"firstAddressLine":{"@id":"https://www.gleif.org/ontology/Base/hasFirstAddressLine"},"addressNumberWithinBuilding":{"@id":"https://www.gleif.org/ontology/Base/hasAddressNumberWithinBuilding"},"mailRouting":{"@id":"https://www.gleif.org/ontology/Base/hasMailRouting"},"city":{"@id":"https://www.gleif.org/ontology/Base/hasCity"},"region":{"@id":"https://schema.org/addressRegion"},"country":{"@id":"https://schema.org/addressCountry"},"postalCode":{"@id":"https://www.gleif.org/ontology/Base/hasPostalCode"}}},"LEIAuthority":{"@id":"https://w3id.org/traceability#LEIAuthority","@context":{"validationAuthorityID":{"@id":"https://schema.org/identifier"},"otherValidationAuthorityID":{"@id":"https://schema.org/taxID"},"validationAuthorityEntityID":{"@id":"https://schema.org/leiCode"}}},"LEIEntity":{"@id":"https://w3id.org/traceability#LEIEntity","@context":{"legalName":{"@id":"https://schema.org/legalName"},"legalNameLanguage":{"@id":"https://schema.org/Language"},"legalAddress":{"@id":"https://www.gleif.org/ontology/Base/hasAddressLegal"},"headquartersAddress":{"@id":"https://www.gleif.org/ontology/Base/hasAddressHeadquarters"},"registrationAuthority":{"@id":"https://w3id.org/traceability#LEIAuthority"},"legalJurisdiction":{"@id":"https://schema.org/countryOfOrigin"},"entityCategory":{"@id":"https://schema.org/category"},"legalForm":{"@id":"https://schema.org/additionalType"},"associatedEntity":{"@id":"https://schema.org/Organization"},"status":{"@id":"https://schema.org/status"},"expirationDate":{"@id":"https://schema.org/expires"},"expirationReason":{"@id":"https://schema.org/Answer"},"successorEntity":{"@id":"https://schema.org/Corporation"},"otherAddresses":{"@id":"https://schema.org/Place"}}},"LEIRegistration":{"@id":"https://w3id.org/traceability#LEIRegistration","@context":{"initialRegistrationDate":{"@id":"https://schema.org/dateIssued"},"lastUpdateDate":{"@id":"https://schema.org/dateModified"},"status":{"@id":"https://schema.org/status"},"nextRenewalDate":{"@id":"https://schema.org/validThrough"},"managingLou":{"@id":"https://www.gleif.org/en/about-lei/iso-17442-the-lei-code-structure#"},"validationSources":{"@id":"https://schema.org/eventStatus"},"validationAuthority":{"@id":"https://w3id.org/traceability#LEIAuthority"}}},"LaceyActProductDeclaration":{"@id":"https://w3id.org/traceability#LaceyActProductDeclaration","@context":{"htsNumber":{"@id":"https://vocabulary.uncefact.org/applicableRegulatoryProcedure"},"enteredValue":{"@id":"https://vocabulary.uncefact.org/customsValueSpecifiedAmount"},"articleOrComponent":{"@id":"https://vocabulary.uncefact.org/procedureCode"},"plantScientificNames":{"@id":"https://w3id.org/traceability#Taxonomy"},"countryOfHarvest":{"@id":"https://vocabulary.uncefact.org/originCountry"},"quantityOfPlantMaterial":{"@id":"https://vocabulary.uncefact.org/totalPackageSpecifiedQuantity"},"percentRecycled":{"@id":"https://qudt.org/vocab/unit/PERCENT"}}},"LinkRole":{"@id":"https://schema.org/LinkRole","@context":{"target":{"@id":"https://schema.org/target"},"linkRelationship":{"@id":"https://schema.org/linkRelationship"}}},"MapResource":{"@id":"https://w3id.org/traceability#MapResource","@context":{"resourceType":{"@id":"https://schema.org/additionalType"},"external":{"@id":"https://w3id.org/traceability#ExternalResource"},"geoJson":{"@id":"https://schema.org/geo"}}},"MasterBillOfLading":{"@id":"https://w3id.org/traceability#MasterBillOfLading","@context":{"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"bookingNumber":{"@id":"https://vocabulary.uncefact.org/carrierAssignedId"},"shippersReferences":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#FF"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"forwardingAgent":{"@id":"https://vocabulary.uncefact.org/freightForwarderParty"},"notifyParty":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"preCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/preCarriageTransportMovement"},"mainCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/mainCarriageTransportMovement"},"onCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/onCarriageTransportMovement"},"placeOfReceipt":{"@id":"https://schema.org/Place"},"portOfLoading":{"@id":"https://vocabulary.uncefact.org/transshipmentLocation"},"placeOfDelivery":{"@id":"https://schema.org/Place"},"portOfDischarge":{"@id":"https://vocabulary.uncefact.org/unloadingLocation"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"transportEquipmentQuantity":{"@id":"https://vocabulary.uncefact.org/transportEquipmentQuantity"},"includedConsignmentItems":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"utilizedTransportEquipment":{"@id":"https://vocabulary.uncefact.org/utilizedTransportEquipment"},"freightAndCharges":{"@id":"https://vocabulary.uncefact.org/applicableServiceCharge"},"declaredValue":{"@id":"https://vocabulary.uncefact.org/declaredValueForCarriageAmount"},"shippedOnBoardDate":{"@id":"https://schema.org/endDate"},"termsAndConditions":{"@id":"https://vocabulary.uncefact.org/termsAndConditionsDescription"}}},"MeasuredProperty":{"@id":"https://w3id.org/traceability#MeasuredProperty","@context":{}},"MeasuredValue":{"@id":"https://schema.org/QuantitativeValue","@context":{"value":{"@id":"https://schema.org/value"},"unitCode":{"@id":"https://schema.org/unitCode"}}},"MechanicalProperty":{"@id":"https://w3id.org/traceability#MechanicalProperty","@context":{"identifier":{"@id":"https://schema.org/identifier"},"name":{"@id":"https://schema.org/name"},"description":{"@id":"https://schema.org/description"}}},"MonetaryAmount":{"@id":"https://schema.org/MonetaryAmount","@context":{"value":{"@id":"https://schema.org/value"},"currency":{"@id":"https://schema.org/currency"}}},"MonthlyAdvanceManifest":{"@id":"https://w3id.org/traceability#MonthlyAdvanceManifest","@context":{"date":{"@id":"https://schema.org/endDate"}}},"MonthlyDeliveryStatement":{"@id":"https://w3id.org/traceability#MonthlyDeliveryStatement","@context":{"itemsDelivered":{"@id":"https://w3id.org/traceability#DeliveryStatement"}}},"MultiModalBillOfLading":{"@id":"https://w3id.org/traceability#MultiModalBillOfLading","@context":{"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"bookingNumber":{"@id":"https://vocabulary.uncefact.org/carrierAssignedId"},"shippersReferences":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#SI"},"freightForwardersReferences":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#FF"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"forwardingAgent":{"@id":"https://vocabulary.uncefact.org/freightForwarderParty"},"notifyParty":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"carrier":{"@id":"https://vocabulary.uncefact.org/carrierParty"},"preCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/preCarriageTransportMovement"},"mainCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/mainCarriageTransportMovement"},"onCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/onCarriageTransportMovement"},"placeOfReceipt":{"@id":"https://schema.org/Place"},"portOfLoading":{"@id":"https://vocabulary.uncefact.org/loadingLocation"},"transshipmentLocation":{"@id":"https://vocabulary.uncefact.org/transshipmentLocation"},"placeOfDelivery":{"@id":"https://schema.org/Place"},"portOfDischarge":{"@id":"https://vocabulary.uncefact.org/unloadingLocation"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"transportEquipmentQuantity":{"@id":"https://vocabulary.uncefact.org/transportEquipmentQuantity"},"particulars":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"utilizedTransportEquipment":{"@id":"https://vocabulary.uncefact.org/utilizedTransportEquipment"},"freightAndCharges":{"@id":"https://vocabulary.uncefact.org/applicableServiceCharge"},"declaredValue":{"@id":"https://vocabulary.uncefact.org/declaredValueForCarriageAmount"},"shippedOnBoardDate":{"@id":"https://schema.org/endDate"},"termsAndConditions":{"@id":"https://vocabulary.uncefact.org/termsAndConditionsDescription"}}},"NAISMADateTime":{"@id":"https://w3id.org/traceability#NAISMADateTime","@context":{"collectionDate":{"@id":"http://rs.tdwg.org/dwc/terms/endDate"},"dateAccuracyDays":{"@id":"http://rs.tdwg.org/dwc/iri/measurementMethod"}}},"NAISMAInfestation":{"@id":"https://w3id.org/traceability#NAISMAInfestation","@context":{"infestedArea":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"areaSurveyed":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"incidence":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"severity":{"@id":"http://rs.tdwg.org/dwc/terms/measurementValue"},"severityUnits":{"@id":"https://schema.org/unitText"},"organismQuantity":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"organismQuantityUnits":{"@id":"https://schema.org/unitText"}}},"NAISMAInformationSource":{"@id":"https://w3id.org/traceability#NAISMAInformationSource","@context":{"reference":{"@id":"http://rs.tdwg.org/dwc/terms/associatedReferences"},"examiner":{"@id":"http://rs.tdwg.org/dwc/terms/recordedBy"},"dataSource":{"@id":"https://w3id.org/traceability#Entity"}}},"NAISMALocation":{"@id":"https://w3id.org/traceability#NAISMALocation","@context":{"location":{"@id":"https://w3id.org/traceability#Place"},"description":{"@id":"https://schema.org/description"},"datum":{"@id":"http://rs.tdwg.org/dwc/terms/geodeticDatum"},"wellKnownText":{"@id":"http://rs.tdwg.org/dwc/terms/footprintWKT"},"centroidType":{"@id":"https://schema.org/polygon"},"dataType":{"@id":"https://schema.org/additionalType"},"coordinateUncertainty":{"@id":"http://rs.tdwg.org/dwc/terms/coordinateUncertaintyInMeters"},"sourceOfLocation":{"@id":"http://rs.tdwg.org/dwc/terms/georeferenceProtocol"},"ecosystem":{"@id":"http://rs.tdwg.org/dwc/terms/locationRemarks"}}},"NAISMARecordLevelIdentifiers":{"@id":"https://w3id.org/traceability#NAISMARecordLevelIdentifiers","@context":{"uuid":{"@id":"http://rs.tdwg.org/dwc/terms/resourceID"},"pid":{"@id":"https://schema.org/identifier"},"catalogNumber":{"@id":"http://rs.tdwg.org/dwc/terms/catalogNumber"}}},"NAISMARecordStatus":{"@id":"https://w3id.org/traceability#NAISMARecordStatus","@context":{"occurrenceStatus":{"@id":"https://schema.org/status"},"populationStatus":{"@id":"http://rs.tdwg.org/dwc/terms/degreeOfEstablishment"},"managementStatus":{"@id":"https://schema.org/status"},"recordBasis":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"},"recordType":{"@id":"https://schema.org/description"},"method":{"@id":"http://rs.tdwg.org/dwc/terms/measurementMethod"},"verificationMethod":{"@id":"http://rs.tdwg.org/dwc/terms/identificationRemarks"}}},"NAISMASubject":{"@id":"https://w3id.org/traceability#NAISMASubject","@context":{"lifeStage":{"@id":"http://rs.tdwg.org/dwc/terms/lifeStage"},"sex":{"@id":"http://rs.tdwg.org/dwc/terms/sex"},"hostSpecies":{"@id":"https://w3id.org/traceability#Taxonomy"},"comments":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"}}},"NAISMATaxonomy":{"@id":"https://w3id.org/traceability#NAISMATaxonomy","@context":{"speciesName":{"@id":"https://w3id.org/traceability#Taxonomy"},"commonName":{"@id":"http://rs.tdwg.org/dwc/terms/vernacularName"},"taxonomicSerialNumber":{"@id":"http://rs.tdwg.org/dwc/terms/taxonID"}}},"Observation":{"@id":"https://schema.org/Observation","@context":{"property":{"@id":"https://schema.org/measuredProperty"},"measurement":{"@id":"https://w3id.org/traceability#MeasuredValue"},"date":{"@id":"https://schema.org/observationDate"}}},"OilAndGasDeliveryTicket":{"@id":"https://w3id.org/traceability#OilAndGasDeliveryTicket","@context":{"createdDate":{"@id":"https://schema.org/dateIssued"},"openDate":{"@id":"https://schema.org/startDate"},"closeDate":{"@id":"https://schema.org/endDate"},"transporter":{"@id":"https://schema.org/agent"},"consignor":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"ticketControlNumber":{"@id":"https://schema.org/ticketNumber"},"batchNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BT"},"place":{"@id":"https://schema.org/toLocation"},"product":{"@id":"https://www.gs1.org/voc/Product"},"observation":{"@id":"https://w3id.org/traceability#observation"}}},"OilAndGasProduct":{"@id":"https://w3id.org/traceability#OilAndGasProduct","@context":{"product":{"@id":"https://www.gs1.org/voc/Product"},"facility":{"@id":"https://www.gs1.org/voc/Place"},"UWI":{"@id":"https://schema.org/identifier"},"productionDate":{"@id":"https://schema.org/endDate"},"observation":{"@id":"https://w3id.org/traceability#observation"}}},"Order":{"@id":"https://schema.org/Order","@context":{"orderNumber":{"@id":"https://schema.org/orderNumber"},"orderedItems":{"@id":"https://schema.org/orderedItem"}}},"OrderItem":{"@id":"https://schema.org/OrderItem","@context":{"marketplace":{"@id":"https://vocabulary.uncefact.org/Marketplace"},"fulfillmentCenter":{"@id":"https://vocabulary.uncefact.org/logisticsServiceProviderParty"},"orderedItem":{"@id":"https://schema.org/orderedItem"},"orderedQuantity":{"@id":"https://schema.org/orderQuantity"}}},"OrganicCertificate":{"@id":"https://w3id.org/traceability#OrganicCertificate","@context":{"countryOfIssuance":{"@id":"https://www.gs1.org/voc/countryCode"},"certifiedOperation":{"@id":"https://www.gs1.org/voc/certificationSubject"},"certifyingAgent":{"@id":"https://www.gs1.org/voc/certificationAgency"},"effectiveDate":{"@id":"https://www.gs1.org/voc/certificationStartDate"},"issueDate":{"@id":"https://www.gs1.org/voc/initialCertificationDate"},"anniversaryDate":{"@id":"https://www.gs1.org/voc/certificationEndDate"},"operationCategory":{"@id":"https://www.gs1.org/voc/certificationStatement"},"organicProducts":{"@id":"https://www.gs1.org/voc/certificationStatement"}}},"OrganicInspection":{"@id":"https://w3id.org/traceability#OrganicInspection","@context":{"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"applicantCertificationNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"authorizedOperationContacts":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"peoplePresent":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"newApplicant":{"@id":"https://vocabulary.uncefact.org/information"},"continuingCertification":{"@id":"https://vocabulary.uncefact.org/information"},"newLocationActivity":{"@id":"https://vocabulary.uncefact.org/information"},"reinstatement":{"@id":"https://vocabulary.uncefact.org/information"},"announcedInspection":{"@id":"https://vocabulary.uncefact.org/information"},"estimatedHarvestDate":{"@id":"https://www.gs1.org/voc/harvestDate"},"pesticideResidueSampling":{"@id":"https://vocabulary.uncefact.org/information"},"samplingDetails":{"@id":"https://vocabulary.uncefact.org/content"},"introductionOperationDescription":{"@id":"https://schema.org/description"},"resolutionIssuesActionItems":{"@id":"https://schema.org/description"},"issuesRequests":{"@id":"https://vocabulary.uncefact.org/additionalDescription"},"attachments":{"@id":"https://vocabulary.uncefact.org/additionalDocument"},"OSPSectionReviews":{"@id":"https://w3id.org/traceability#OrganicOSPSectionReview"}}},"OrganicOSPSectionReview":{"@id":"https://w3id.org/traceability#OrganicOSPSectionReview","@context":{"OSPSectionCode":{"@id":"https://vocabulary.uncefact.org/standard"},"resultCode":{"@id":"https://vocabulary.uncefact.org/assertionCode"},"verificationExplanations":{"@id":"https://vocabulary.uncefact.org/remarks"},"attachments":{"@id":"https://vocabulary.uncefact.org/additionalDocument"}}},"OrganicProductCertificate":{"@id":"https://w3id.org/traceability#OrganicProductCertificate","@context":{"agricultureProduct":{"@id":"https://www.gs1.org/voc/certificationSubject"},"organicCertificate":{"@id":"https://www.gs1.org/voc/certification"},"isCertified":{"@id":"https://www.gs1.org/voc/certificationStatus"}}},"OrganicReview":{"@id":"https://w3id.org/traceability#OrganicReview","@context":{"inspectionReport":{"@id":"https://w3id.org/traceability#OrganicInspection"},"reviewer":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"decisionMaker":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"certificationDecision":{"@id":"https://www.gs1.org/voc/certificationStatus"},"additionalInformation":{"@id":"https://vocabulary.uncefact.org/content"}}},"Organization":{"@id":"https://schema.org/Organization","@context":{"name":{"@id":"https://schema.org/name"},"legalName":{"@id":"https://schema.org/legalName"},"leiCode":{"@id":"https://schema.org/leiCode"},"url":{"@id":"https://schema.org/url"},"description":{"@id":"https://schema.org/description"},"globalLocationNumber":{"@id":"https://schema.org/globalLocationNumber"},"location":{"@id":"https://schema.org/location"},"email":{"@id":"https://schema.org/email"},"phoneNumber":{"@id":"https://schema.org/telephone"},"logo":{"@id":"https://schema.org/logo"},"faxNumber":{"@id":"https://schema.org/faxNumber"},"contactPoint":{"@id":"https://schema.org/ContactPoint"},"taxId":{"@id":"https://schema.org/taxID"},"iataCarrierCode":{"@id":"https://onerecord.iata.org/cargo/Company#airlineCode"},"scac":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AAZ"}}},"PGAShipmentStatus":{"@id":"https://w3id.org/traceability#PGAShipmentStatus","@context":{"recordNo":{"@id":"https://w3id.org/traceability#recordNo"},"entryNo":{"@id":"https://w3id.org/traceability#entryNo"},"entryLineSequence":{"@id":"https://w3id.org/traceability#entryLineSequence"},"statusCode":{"@id":"https://w3id.org/traceability#statusCode"},"statusCodeDescription":{"@id":"https://w3id.org/traceability#statusCodeDescription"},"validCodeReason":{"@id":"https://w3id.org/traceability#validCodeReason"},"validCodeReasonDescription":{"@id":"https://w3id.org/traceability#validCodeReasonDescription"},"subReasonCode":{"@id":"https://w3id.org/traceability#subReasonCode"},"subReasonCodeDescription":{"@id":"https://w3id.org/traceability#subReasonCodeDescription"}}},"PGAShipmentStatusList":{"@id":"https://w3id.org/traceability#PGAShipmentStatusList","@context":{"pgaShipmentStatusItems":{"@id":"https://schema.org/ItemList"}}},"Package":{"@id":"https://vocabulary.uncefact.org/Package","@context":{"physicalShippingMarks":{"@id":"https://vocabulary.uncefact.org/physicalShippingMarks"},"packagingType":{"@id":"https://www.gs1.org/voc/packagingMaterial"},"perPackageUnitQuantity":{"@id":"https://vocabulary.uncefact.org/perPackageUnitQuantity"},"includedTradeLineItems":{"@id":"https://vocabulary.uncefact.org/specifiedTradeLineItem"},"netWeight":{"@id":"https://vocabulary.uncefact.org/netWeightMeasure"},"grossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"height":{"@id":"https://schema.org/height"},"width":{"@id":"https://schema.org/width"},"depth":{"@id":"https://schema.org/depth"},"grossVolume":{"@id":"https://vocabulary.uncefact.org/grossVolumeMeasure"}}},"PackingList":{"@id":"https://w3id.org/traceability#PackingList","@context":{"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"buyer":{"@id":"https://vocabulary.uncefact.org/buyerParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"shipFromParty":{"@id":"https://vocabulary.uncefact.org/shipFromParty"},"shipToParty":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"orderNumber":{"@id":"https://schema.org/orderNumber"},"invoiceId":{"@id":"https://schema.org/identifier"},"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"trackingNumber":{"@id":"https://schema.org/trackingNumber"},"deliveryStatus":{"@id":"https://schema.org/deliveryStatus"},"estimatedTimeOfArrival":{"@id":"https://schema.org/arrivalTime"},"hasDeliveryMethod":{"@id":"https://schema.org/hasDeliveryMethod"},"handlingInstructions":{"@id":"https://vocabulary.uncefact.org/handlingInstructions"},"items":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"totalNetWeight":{"@id":"https://vocabulary.uncefact.org/netWeightMeasure"},"totalGrossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"totalGrossVolume":{"@id":"https://vocabulary.uncefact.org/grossVolumeMeasure"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"totalItemQuantity":{"@id":"https://vocabulary.uncefact.org/tradeLineItemQuantity"}}},"ParcelDelivery":{"@id":"https://schema.org/ParcelDelivery","@context":{"deliveryAddress":{"@id":"https://schema.org/deliveryAddress"},"originAddress":{"@id":"https://schema.org/originAddress"},"deliveryMethod":{"@id":"https://schema.org/DeliveryMethod"},"trackingNumber":{"@id":"https://schema.org/trackingNumber"},"expectedArrival":{"@id":"https://schema.org/expectedArrivalFrom"},"specialInstructions":{"@id":"https://schema.org/comment"},"consignee":{"@id":"https://schema.org/Organization"},"item":{"@id":"https://schema.org/itemShipped"},"partOfOrder":{"@id":"https://schema.org/partOfOrder"}}},"PartOfOrder":{"@id":"https://schema.org/OrderItem","@context":{"manufacturer":{"@id":"https://schema.org/Organization"},"orderNumber":{"@id":"https://schema.org/orderNumber"},"transportPackages":{"@id":"https://vocabulary.uncefact.org/Package"},"netWeight":{"@id":"https://vocabulary.uncefact.org/netWeightMeasure"},"grossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"grossVolume":{"@id":"https://vocabulary.uncefact.org/grossVolumeMeasure"},"packageQuantity":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"itemQuantity":{"@id":"https://vocabulary.uncefact.org/tradeLineItemQuantity"}}},"Person":{"@id":"https://schema.org/Person","@context":{"firstName":{"@id":"https://schema.org/givenName"},"lastName":{"@id":"https://schema.org/familyName"},"email":{"@id":"https://schema.org/email"},"phoneNumber":{"@id":"https://schema.org/telephone"},"worksFor":{"@id":"https://schema.org/worksFor"},"jobTitle":{"@id":"https://schema.org/jobTitle"},"taxId":{"@id":"https://schema.org/taxID"}}},"PestDetermination":{"@id":"https://w3id.org/traceability#PestDetermination","@context":{"final":{"@id":"https://dwc.tdwg.org/list/#dwc_identificationVerificationStatus"},"determination":{"@id":"https://w3id.org/traceability#Taxonomy"},"notes":{"@id":"https://dwc.tdwg.org/list/#dwc_identificationRemarks"},"method":{"@id":"https://dwc.tdwg.org/list/#dwc_measurementMethod"},"reportable":{"@id":"https://dwc.tdwg.org/list/#dwc_occurrenceStatus"},"determinedBy":{"@id":"https://dwc.tdwg.org/list/#dwc_identifiedBy"},"date":{"@id":"https://dwc.tdwg.org/list/#dwc_dateIdentified"}}},"PestSample":{"@id":"https://w3id.org/traceability#PestSample","@context":{"hostName":{"@id":"https://w3id.org/traceability#Taxonomy"},"hostQuantity":{"@id":"http://rs.tdwg.org/dwc/terms/organismQuantity"},"affected":{"@id":"https://dwc.tdwg.org/list/#dwc_measurementValue"},"plantDistribution":{"@id":"http://rs.tdwg.org/dwc/terms/degreeOfEstablishment"},"plantPartsAffected":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"pestDistribution":{"@id":"http://rs.tdwg.org/dwc/terms/degreeOfEstablishment"},"pestProximity":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"pestType":{"@id":"http://rs.tdwg.org/dwc/terms/occurrenceRemarks"},"aliveLarvae":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"alivePupae":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"aliveAdults":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"aliveEggs":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"aliveNymphs":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"aliveJuveniles":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"aliveCysts":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadLarvae":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadPupae":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadAdults":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadEggs":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadNymphs":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadJuveniles":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"deadCysts":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"castSkins":{"@id":"http://rs.tdwg.org/dwc/terms/individualCount"},"samplingMethod":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"},"trapLureType":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"},"trapNumber":{"@id":"http://rs.tdwg.org/dwc/terms/samplingProtocol"}}},"Phytosanitary":{"@id":"https://w3id.org/traceability/Phytosanitary","@context":{"certificateNumber":{"@id":"https://schema.org/identifier"},"plantOrg":{"@id":"https://www.gs1.org/voc/Organization"},"distinguishingMarks":{"@id":"https://www.gs1.org/voc/variantDescription"},"portOfEntry":{"@id":"https://w3id.org/traceability#portOfEntry"},"additionalDeclaration":{"@id":"https://schema.org/Comment"},"disinfectionDate":{"@id":"https://schema.org/validFrom"},"disinfectionTreatment":{"@id":"https://w3id.org/traceability#disinfectionTreatment"},"disinfectionChemical":{"@id":"https://schema.org/activeIngredient"},"disinfectionDuration":{"@id":"https://schema.org/duration"},"disinfectionTemperature":{"@id":"https://schema.org/MeasuredValue"},"disinfectionConcentration":{"@id":"https://w3id.org/traceability#disinfectionConcentration"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/signedDateTime"},"facility":{"@id":"https://www.gs1.org/voc/Place"},"inspector":{"@id":"https://w3id.org/traceability#Inspector"},"shipment":{"@id":"https://schema.org/AgricultureParcelDelivery"},"agriculturePackage":{"@id":"https://w3id.org/traceability#AgriculturePackage"},"applicant":{"@id":"https://w3c-ccg.github.io/traceability-vocab/#dfn-entities"},"inspectionDate":{"@id":"https://vocabulary.uncefact.org/inspectionDateTime"},"inspectionType":{"@id":"https://vocabulary.uncefact.org/inspectionStandard"},"notes":{"@id":"https://schema.org/Comment"},"observation":{"@id":"https://schema.org/ItemList"}}},"Place":{"@id":"https://schema.org/Place","@context":{"globalLocationNumber":{"@id":"https://schema.org/globalLocationNumber"},"geo":{"@id":"https://schema.org/GeoCoordinates"},"address":{"@id":"https://schema.org/PostalAddress"},"unLocode":{"@id":"https://vocabulary.uncefact.org/Location"},"iataAirportCode":{"@id":"https://onerecord.iata.org/cargo/Location#code"},"locationName":{"@id":"https://schema.org/name"},"usPortCode":{"@id":"https://w3id.org/traceability#usPortCode"},"firmsCode":{"@id":"https://w3id.org/traceability#firmsCode"}}},"PlantSystemsInspection":{"@id":"https://w3id.org/traceability#PlantSystemsInspection","@context":{"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"productsPacked":{"@id":"https://vocabulary.uncefact.org/specifiedProduct"},"summaryOfDeficiencies":{"@id":"https://schema.org/description"},"observationsImprovements":{"@id":"https://schema.org/description"},"questions":{"@id":"https://w3id.org/traceability#PlantSystemsQuestion"},"additionalViolations":{"@id":"https://schema.org/description"}}},"PlantSystemsQuestion":{"@id":"https://w3id.org/traceability#PlantSystemsQuestion","@context":{"code":{"@id":"https://schema.org/identifier"},"pointsWorth":{"@id":"https://schema.org/ratingValue"},"pointsDeducted":{"@id":"https://schema.org/ratingValue"}}},"PostalAddress":{"@id":"https://schema.org/PostalAddress","@context":{"name":{"@id":"https://schema.org/name"},"streetAddress":{"@id":"https://schema.org/streetAddress"},"addressLocality":{"@id":"https://schema.org/addressLocality"},"addressRegion":{"@id":"https://schema.org/addressRegion"},"addressCountry":{"@id":"https://schema.org/addressCountry"},"crossStreet":{"@id":"https://gs1.org/voc/crossStreet"},"countyCode":{"@id":"https://gs1.org/voc/countyCode"},"postalCode":{"@id":"https://schema.org/postalCode"},"postOfficeBoxNumber":{"@id":"https://schema.org/postOfficeBoxNumber"},"plantOrSiteName":{"@id":"https://vocabulary.uncefact.org/buildingName"}}},"PostmanCollection":{"@id":"https://w3id.org/traceability#PostmanCollection","@context":{}},"PriceSpecification":{"@id":"https://schema.org/PriceSpecification","@context":{"price":{"@id":"https://schema.org/price"},"priceCurrency":{"@id":"https://schema.org/priceCurrency"}}},"Product":{"@id":"https://schema.org/Product","@context":{"gtin":{"@id":"https://schema.org/gtin"},"manufacturer":{"@id":"https://schema.org/manufacturer"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"name":{"@id":"https://schema.org/name"},"description":{"@id":"https://schema.org/description"},"category":{"@id":"https://schema.org/category"},"weight":{"@id":"https://schema.org/weight"},"depth":{"@id":"https://schema.org/depth"},"width":{"@id":"https://schema.org/width"},"height":{"@id":"https://schema.org/height"},"productPrice":{"@id":"https://schema.org/priceSpecification"},"sku":{"@id":"https://schema.org/sku"},"batchNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BT"},"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"images":{"@id":"https://schema.org/image"},"imageUrl":{"@id":"https://schema.org/url"},"imageHash":{"@id":"https://schema.org/sha256"},"htsCode":{"@id":"https://service.unece.org/trade/uncefact/vocabulary/uncefact/#applicableTax"}}},"Purchase":{"@id":"https://w3id.org/traceability#Purchase","@context":{"customer":{"@id":"https://w3id.org/traceability#Entity"},"invoice":{"@id":"https://w3id.org/traceability#Invoice"},"invoiceNo":{"@id":"https://schema.org/identifier"},"internalCertificateNo":{"@id":"https://schema.org/identifier"},"purchaseOrderNo":{"@id":"https://schema.org/identifier"}}},"PurchaseOrder":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#105","@context":{"purchaseOrderNo":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AUJ"},"orderDate":{"@id":"https://vocabulary.uncefact.org/buyerOrderDateTime"},"buyer":{"@id":"https://vocabulary.uncefact.org/buyerParty"},"seller":{"@id":"https://vocabulary.uncefact.org/sellerParty"},"shipToParty":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"itemsOrdered":{"@id":"https://vocabulary.uncefact.org/SupplyChainTradeLineItem"},"comments":{"@id":"https://schema.org/Comment"},"totalWeight":{"@id":"https://schema.org/weight"},"termsOfDelivery":{"@id":"https://vocabulary.uncefact.org/specifiedDeliveryTerms"},"termsOfPayment":{"@id":"https://vocabulary.uncefact.org/specifiedPaymentTerms"},"totalPaymentDue":{"@id":"https://schema.org/totalPaymentDue"},"discounts":{"@id":"https://vocabulary.uncefact.org/deductionAmount"},"tax":{"@id":"https://vocabulary.uncefact.org/taxTotalAmount"},"freightCost":{"@id":"https://schema.org/DeliveryChargeSpecification"},"insuranceCost":{"@id":"https://vocabulary.uncefact.org/insuranceChargeTotalAmount"},"totalOrderAmount":{"@id":"https://vocabulary.uncefact.org/grandTotalAmount"}}},"Qualification":{"@id":"https://schema.org/qualifications","@context":{"qualificationCategory":{"@id":"https://schema.org/credentialCategory"},"qualificationValue":{"@id":"https://schema.org/hasCredential"}}},"QuantitativeValue":{"@id":"https://schema.org/QuantitativeValue","@context":{"unitCode":{"@id":"https://schema.org/unitCode"},"value":{"@id":"https://schema.org/value"}}},"RawMaterial":{"@id":"https://w3id.org/traceability#RawMaterial","@context":{"name":{"@id":"https://schema.org/name"},"inchiKey":{"@id":"https://w3id.org/traceability#inchiKey"}}},"RevocationList2020Status":{"@id":"https://w3id.org/traceability#RevocationList2020Status","@context":{"revocationListIndex":{"@id":"https://schema.org/itemListElement"},"revocationListCredential":{"@id":"https://schema.org/LinkRole"}}},"RoutingInfo":{"@id":"https://w3id.org/traceability#RoutingInfo","@context":{"code":{"@id":"https://w3id.org/traceability#routingInfoCode"},"value":{"@id":"https://w3id.org/traceability#routingInfoValue"}}},"SIMASteelImportLicense":{"@id":"https://w3id.org/traceability#SIMASteelImportLicense","@context":{"licenseNumber":{"@id":"https://schema.org/identifier"},"licensedCompany":{"@id":"https://vocabulary.uncefact.org/grantedParty"},"customsEntryNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AQM"},"importer":{"@id":"https://vocabulary.uncefact.org/importerParty"},"exporter":{"@id":"https://vocabulary.uncefact.org/exporterParty"},"manufacturer":{"@id":"https://vocabulary.uncefact.org/manufacturerParty"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"countryOfExportation":{"@id":"https://vocabulary.uncefact.org/exportCountry"},"expectedPortOfEntry":{"@id":"https://vocabulary.uncefact.org/LocationFunctionCodeList#24"},"expectedDateOfExport":{"@id":"https://vocabulary.uncefact.org/DateTimePeriodFunctionCodeList#129"},"expectedDateOfImport":{"@id":"https://vocabulary.uncefact.org/DateTimePeriodFunctionCodeList#151"},"productInformation":{"@id":"https://w3id.org/traceability#productInformation"}}},"SIMASteelImportProductSpecifier":{"@id":"https://w3id.org/traceability#SIMASteelImportProductSpecifier","@context":{"productCategory":{"@id":"https://w3id.org/traceability#ProductCategory"},"countryOfMeltAndPour":{"@id":"https://w3id.org/traceability#countryOfMeltAndPour"},"customsValue":{"@id":"https://vocabulary.uncefact.org/declaredValueForCustomsAmount"}}},"OssfScorecard":{"@id":"https://w3id.org/traceability#OssfScorecard","@context":{}},"SeaCargoManifest":{"@id":"https://w3id.org/traceability#SeaCargoManifest","@context":{"vesselName":{"@id":"https://vocabulary.uncefact.org/transportMeans"},"vesselNumber":{"@id":"https://schema.org/identifier"},"voyageNumber":{"@id":"https://vocabulary.uncefact.org/TransportMovement"},"registrationCountry":{"@id":"https://vocabulary.uncefact.org/registrationCountry"},"plannedDepartureDateTime":{"@id":"https://vocabulary.uncefact.org/scheduledDepartureRelatedDateTime"},"plannedArrivalDateTime":{"@id":"https://vocabulary.uncefact.org/scheduledArrivalRelatedDateTime"},"portOfDeparture":{"@id":"https://schema.org/Place"},"portOfArrival":{"@id":"https://schema.org/Place"},"netTonnage":{"@id":"https://vocabulary.uncefact.org/netWeightMeasure"},"grossTonnage":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"totalNumberOfTransportDocuments":{"@id":"https://vocabulary.uncefact.org/loadingListQuantity"},"transportEquipmentQuantity":{"@id":"https://vocabulary.uncefact.org/transportEquipmentQuantity"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"transportDocumentInformation":{"@id":"https://vocabulary.uncefact.org/transportContractDocument"}}},"Seal":{"@id":"https://vocabulary.uncefact.org/Seal","@context":{"sealNumber":{"@id":"https://vocabulary.uncefact.org/identifier"},"sealSource":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/sealSource"},"sealType":{"@id":"https://vocabulary.uncefact.org/logisticsSealTypeCode"}}},"ServiceCharge":{"@id":"https://vocabulary.uncefact.org/ServiceCharge","@context":{"chargeCode":{"@id":"https://vocabulary.uncefact.org/chargeCategoryCode"},"paymentTerm":{"@id":"https://vocabulary.uncefact.org/PaymentTerms"},"chargeText":{"@id":"https://schema.org/description"},"rate":{"@id":"https://vocabulary.uncefact.org/unitPrice"},"calculationBasis":{"@id":"https://vocabulary.uncefact.org/calculationBasis"},"appliedAmount":{"@id":"https://vocabulary.uncefact.org/appliedAmount"}}},"ShippingDetails":{"@id":"https://w3id.org/traceability#ShippingDetails","@context":{"containerNumber":{"@id":"https://w3id.org/traceability#containerNumber"},"masterBillOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/uncl1153#MB"},"manufacturerAddress":{"@id":"https://w3id.org/traceability#manufacturerAddress"},"customerAddress":{"@id":"https://w3id.org/traceability#customerAddress"}}},"ShippingInstructions":{"@id":"https://w3id.org/traceability#ShippingInstructions","@context":{"billOfLadingNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#BM"},"bookingNumber":{"@id":"https://vocabulary.uncefact.org/carrierAssignedId"},"shippersReferences":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#FF"},"shipper":{"@id":"https://vocabulary.uncefact.org/consignorParty"},"consignee":{"@id":"https://vocabulary.uncefact.org/consigneeParty"},"notifyParty":{"@id":"https://vocabulary.uncefact.org/notifiedParty"},"preCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/preCarriageTransportMovement"},"mainCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/mainCarriageTransportMovement"},"onCarriageTransportMovement":{"@id":"https://vocabulary.uncefact.org/onCarriageTransportMovement"},"placeOfReceipt":{"@id":"https://schema.org/Place"},"portOfLoading":{"@id":"https://vocabulary.uncefact.org/transshipmentLocation"},"placeOfDelivery":{"@id":"https://schema.org/Place"},"portOfDischarge":{"@id":"https://vocabulary.uncefact.org/unloadingLocation"},"totalNumberOfPackages":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"transportEquipmentQuantity":{"@id":"https://vocabulary.uncefact.org/transportEquipmentQuantity"},"includedConsignmentItems":{"@id":"https://vocabulary.uncefact.org/includedConsignmentItem"},"utilizedTransportEquipment":{"@id":"https://vocabulary.uncefact.org/utilizedTransportEquipment"},"declaredValue":{"@id":"https://vocabulary.uncefact.org/declaredValueForCarriageAmount"}}},"SoftwareBillOfMaterials":{"@id":"https://w3id.org/traceability#SoftwareBillOfMaterials","@context":{}},"SteelProduct":{"@id":"https://w3id.org/traceability#SteelProduct","@context":{"heatNumber":{"@id":"https://schema.org/identifier"},"specification":{"@id":"https://schema.org/identifier"},"grade":{"@id":"https://schema.org/Rating"},"weight":{"@id":"https://schema.org/weight"},"weightUnit":{"@id":"http://qudt.org/schema/qudt/Unit"},"originalCountryOfMeltAndPour":{"@id":"https://schema.org/addressCountry"},"commodity":{"@id":"https://w3id.org/traceability#Commodity"},"inspection":{"@id":"https://w3id.org/traceability#Inspection"}}},"TSCACertification":{"@id":"https://w3id.org/traceability/TSCACertification","@context":{"certificationType":{"@id":"https://schema.org/DefinedTerm"},"certifierDetails":{"@id":"https://w3id.org/traceability#certifierDetails"}}},"Taxonomy":{"@id":"https://w3id.org/traceability#Taxonomy","@context":{"kingdom":{"@id":"http://rs.tdwg.org/dwc/terms/kingdom"},"phylum":{"@id":"http://rs.tdwg.org/dwc/terms/phylum"},"class":{"@id":"http://rs.tdwg.org/dwc/terms/class"},"order":{"@id":"http://rs.tdwg.org/dwc/terms/order"},"family":{"@id":"http://rs.tdwg.org/dwc/terms/family"},"genus":{"@id":"http://rs.tdwg.org/dwc/terms/genus"},"species":{"@id":"http://rs.tdwg.org/dwc/terms/specificEpithet"},"subspecies":{"@id":"http://rs.tdwg.org/dwc/terms/infraspecificEpithet"},"variety":{"@id":"http://rs.tdwg.org/dwc/terms/cultivarEpithet"}}},"TemperatureReading":{"@id":"https://w3id.org/traceability#TemperatureReading","@context":{"bulbNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"tests":{"@id":"https://vocabulary.uncefact.org/actualMeasure"}}},"Template":{"@id":"https://w3id.org/traceability#Template","@context":{"image":{"@id":"https://schema.org/image"}}},"Thing":{"@id":"https://schema.org/Thing","@context":{}},"TraceabilityAPI":{"@id":"https://w3id.org/traceability#TraceabilityAPI","@context":{}},"TradeLineItem":{"@id":"https://vocabulary.uncefact.org/SupplyChainTradeLineItem","@context":{"name":{"@id":"https://schema.org/name"},"purchaseOrderNumber":{"@id":"https://schema.org/orderNumber"},"itemCount":{"@id":"https://vocabulary.uncefact.org/despatchedQuantity"},"description":{"@id":"https://schema.org/description"},"packageQuantity":{"@id":"https://vocabulary.uncefact.org/packageQuantity"},"product":{"@id":"https://schema.org/Product"},"countryOfOrigin":{"@id":"https://vocabulary.uncefact.org/originCountry"},"shipToParty":{"@id":"https://vocabulary.uncefact.org/shipToParty"},"netWeight":{"@id":"https://vocabulary.uncefact.org/netWeightMeasure"},"grossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"priceSpecification":{"@id":"https://schema.org/priceSpecification"}}},"TransferEvent":{"@id":"https://w3id.org/traceability#TransferEvent","@context":{"place":{"@id":"https://schema.org/Place"},"price":{"@id":"https://schema.org/price"},"products":{"@id":"https://schema.org/Product"},"organization":{"@id":"https://w3id.org/traceability#Organization"},"identifier":{"@id":"https://schema.org/identifier"},"addressCountry":{"@id":"https://schema.org/addressCountry"}}},"TransformEvent":{"@id":"https://w3id.org/traceability#TransformEvent","@context":{"place":{"@id":"https://schema.org/Place"},"organization":{"@id":"https://w3id.org/traceability#Organization"},"newProducts":{"@id":"https://w3c-ccg.github.io/hashlink/#hl-url-params"},"consumedProducts":{"@id":"https://w3c-ccg.github.io/hashlink/#hl-url-params"}}},"Transport":{"@id":"https://w3id.org/traceability#Transport","@context":{"arrivalLocation":{"@id":"https://schema.org/toLocation"},"departureDate":{"@id":"https://schema.org/departureTime"},"arrivalDate":{"@id":"https://schema.org/arrivalTime"},"modeOfTransport":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/modeOfTransport"},"carrier":{"@id":"https://schema.org/carrier"},"vesselNumber":{"@id":"https://vocabulary.uncefact.org/identifier"},"voyageNumber":{"@id":"https://vocabulary.uncefact.org/identifier"},"path":{"@id":"https://schema.org/line"}}},"TransportDocument":{"@id":"https://w3id.org/traceability#TransportDocument","@context":{}},"TransportEquipment":{"@id":"https://vocabulary.uncefact.org/LogisticsTransportEquipment","@context":{"equipmentReference":{"@id":"https://vocabulary.uncefact.org/identification"},"ISOEquipmentCode":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/ISOEquipmentCode"},"tareWeight":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/tareWeight"},"tareWeightUnit":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/weightUnit"},"cargoGrossWeight":{"@id":"https://vocabulary.uncefact.org/grossWeightMeasure"},"cargoGrossWeightUnit":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/weightUnit"},"isShipperOwned":{"@id":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.1#/components/schemas/isShipperOwned"},"seals":{"@id":"https://vocabulary.uncefact.org/affixedSeal"}}},"TransportEvent":{"@id":"https://w3id.org/traceability#TransportEvent","@context":{"place":{"@id":"https://schema.org/Place"},"organization":{"@id":"https://w3id.org/traceability#Organization"},"products":{"@id":"https://schema.org/Product"},"deliveryMethod":{"@id":"https://schema.org/DeliveryMethod"},"trackingNumber":{"@id":"https://schema.org/trackingNumber"}}},"USDAPPQ203ForeignSiteInspection":{"@id":"https://w3id.org/traceability#USDAPPQ203ForeignSiteInspection","@context":{"certificateNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"commonInfo":{"@id":"https://w3id.org/traceability#AgricultureInspectionCommonInfo"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"signatureDate":{"@id":"https://www.gs1.org/voc/certificationAuditDate"},"inspectionType":{"@id":"https://www.gs1.org/voc/certificationType"},"observations":{"@id":"https://vocabulary.uncefact.org/relatedObservation"}}},"USDAPPQ309APestInterceptionRecord":{"@id":"https://w3id.org/traceability#USDAPPQ309APestInterceptionRecord","@context":{"interceptionNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"shippingStop":{"@id":"https://vocabulary.uncefact.org/itineraryStopEvent"},"forwardTo":{"@id":"https://vocabulary.uncefact.org/recipientAssignedId"},"priority":{"@id":"https://vocabulary.uncefact.org/priorityCode"},"interceptionDate":{"@id":"https://vocabulary.uncefact.org/actualOccurrenceDateTime"},"inspector":{"@id":"https://vocabulary.uncefact.org/inspectionParty"},"overtime":{"@id":"https://vocabulary.uncefact.org/information"},"pathway":{"@id":"https://vocabulary.uncefact.org/mode"},"modeOfTransportation":{"@id":"https://vocabulary.uncefact.org/mode"},"materialFor":{"@id":"https://vocabulary.uncefact.org/intendedUse"},"narp":{"@id":"https://vocabulary.uncefact.org/statementNote"},"importedAs":{"@id":"https://schema.org/description"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"whereIntercepted":{"@id":"https://vocabulary.uncefact.org/AttachedTransportEquipment"},"PestSample":{"@id":"http://rs.tdwg.org/dwc/terms/materialSampleID"},"pestDeterminations":{"@id":"https://dwc.tdwg.org/list/#dwc_identificationID"},"quarantineStatus":{"@id":"https://vocabulary.uncefact.org/conditionCode"},"remarks":{"@id":"https://vocabulary.uncefact.org/remark"}}},"USDAPPQ368NoticeOfArrival":{"@id":"https://w3id.org/traceability#USDAPPQ368NoticeOfArrival","@context":{"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"arrivalDate":{"@id":"https://vocabulary.uncefact.org/actualArrivalRelatedDateTime"},"permitNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"customsEntryNumber":{"@id":"https://vocabulary.uncefact.org/customsId"},"presentLocation":{"@id":"https://vocabulary.uncefact.org/consignmentDestinationSpecifiedLocation"},"locationGrown":{"@id":"https://vocabulary.uncefact.org/originLocation"},"ITNumber":{"@id":"https://vocabulary.uncefact.org/customsId"},"productDisposition":{"@id":"https://vocabulary.uncefact.org/dispositionDocument"},"ppqOfficial":{"@id":"https://vocabulary.uncefact.org/inspectionParty"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/occurrenceDateTime"}}},"USDAPPQ391SpecimensForDetermination":{"@id":"https://w3id.org/traceability#USDAPPQ391SpecimensForDetermination","@context":{"priority":{"@id":"https://vocabulary.uncefact.org/priorityCode"},"priorityExplanation":{"@id":"https://vocabulary.uncefact.org/remarks"},"collectionNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"submissionDate":{"@id":"https://vocabulary.uncefact.org/reportSubmissionDateTime"},"collectionDate":{"@id":"https://vocabulary.uncefact.org/actualOccurrenceDateTime"},"submittingAgency":{"@id":"https://vocabulary.uncefact.org/agencyId"},"submitter":{"@id":"https://vocabulary.uncefact.org/PartyRoleCodeList#TB"},"collector":{"@id":"https://vocabulary.uncefact.org/inspectionParty"},"interceptionSite":{"@id":"https://vocabulary.uncefact.org/occurrenceLocation"},"identificationReason":{"@id":"https://vocabulary.uncefact.org/reasonCode"},"remarks":{"@id":"https://vocabulary.uncefact.org/remarks"},"tentativeDetermination":{"@id":"https://dwc.tdwg.org/list/#dwc_identificationID"},"finalDetermination":{"@id":"https://dwc.tdwg.org/list/#dwc_identificationID"},"sampleDisposition":{"@id":"https://dwc.tdwg.org/list/#dwc_disposition"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/occurrenceDateTime"},"lab":{"@id":"https://vocabulary.uncefact.org/lodgementLocation"},"labConformationNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"dateReceived":{"@id":"https://vocabulary.uncefact.org/acceptanceDateTime"}}},"USDAPPQ429FumigationRecord":{"@id":"https://w3id.org/traceability#USDAPPQ429FumigationRecord","@context":{"tarpaulin":{"@id":"https://vocabulary.uncefact.org/value"},"stationReporting":{"@id":"https://vocabulary.uncefact.org/relevantLocation"},"pest":{"@id":"https://schema.org/description"},"interceptionRecord":{"@id":"https://w3id.org/traceability#USDAPPQ309APestInterceptionRecord.yml"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"fumigationContractor":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"dateFumigationOrdered":{"@id":"https://vocabulary.uncefact.org/actualDateTime"},"fumigationSite":{"@id":"https://vocabulary.uncefact.org/occurrenceLocation"},"dateFumigated":{"@id":"https://vocabulary.uncefact.org/actualOccurrenceDateTime"},"fumigantAndTreatmentSchedule":{"@id":"https://vocabulary.uncefact.org/regulationName"},"temperatureOfSpace":{"@id":"https://vocabulary.uncefact.org/actualReportedMeasurement"},"temperatureOfCommodity":{"@id":"https://vocabulary.uncefact.org/actualReportedMeasurement"},"gasAnalyzer":{"@id":"https://schema.org/description"},"enclosure":{"@id":"https://schema.org/description"},"weatherConditions":{"@id":"https://schema.org/description"},"cubicCapacity":{"@id":"https://vocabulary.uncefact.org/actualReportedMeasurement"},"section18Exemption":{"@id":"https://vocabulary.uncefact.org/value"},"numberOfFans":{"@id":"https://vocabulary.uncefact.org/unitQuantity"},"totalCFMOfFans":{"@id":"https://vocabulary.uncefact.org/actualReportedMeasurement"},"timeFansOperated":{"@id":"https://vocabulary.uncefact.org/durationMeasure"},"foodOrFeedCommodity":{"@id":"https://vocabulary.uncefact.org/functionDescription"},"gasIntroductionStart":{"@id":"https://vocabulary.uncefact.org/startDateTime"},"gasIntroductionFinish":{"@id":"https://vocabulary.uncefact.org/endDateTime"},"totalGasIntroduced":{"@id":"https://vocabulary.uncefact.org/actualReportedMeasurement"},"residueSampleTaken":{"@id":"https://vocabulary.uncefact.org/value"},"residueSampleNumber":{"@id":"https://schema.org/description"},"gasConcentrations":{"@id":"https://vocabulary.uncefact.org/relatedObservation"},"detectorTubeReadings":{"@id":"https://vocabulary.uncefact.org/relatedObservation"},"remarks":{"@id":"https://vocabulary.uncefact.org/remark"},"inspector":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"reviewer":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"fumigatorMaterials":{"@id":"https://schema.org/description"},"ppqMaterials":{"@id":"https://schema.org/description"},"preparationProcedures":{"@id":"https://schema.org/description"}}},"USDAPPQ449RTemperatureCalibration":{"@id":"https://w3id.org/traceability#USDAPPQ449RTemperatureCalibration","@context":{"vesselName":{"@id":"https://vocabulary.uncefact.org/name"},"ppqDutyStation":{"@id":"https://vocabulary.uncefact.org/transitCustomsOfficeSpecifiedLocation"},"inspectionDate":{"@id":"https://vocabulary.uncefact.org/inspectionDateTime"},"inspectionPoint":{"@id":"https://vocabulary.uncefact.org/transitLocation"},"hullNumberDockyard":{"@id":"https://vocabulary.uncefact.org/identification"},"imoNumber":{"@id":"https://vocabulary.uncefact.org/identification"},"flagCode":{"@id":"https://vocabulary.uncefact.org/identification"},"shipsOfficer":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"ownerOperator":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"instrument1MakeModel":{"@id":"https://vocabulary.uncefact.org/AttachedTransportEquipment"},"instrument2MakeModel":{"@id":"https://vocabulary.uncefact.org/AttachedTransportEquipment"},"locationsDiagramMatchSatisfactory":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"sensorsBoxesLabelingSatisfactory":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"cableLengthSatisfactory":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"reactionTimeSatisfactory":{"@id":"https://vocabulary.uncefact.org/DocumentCodeList#287"},"temperatureReadings":{"@id":"https://vocabulary.uncefact.org/transportTemperature"},"participatingOfficials":{"@id":"https://vocabulary.uncefact.org/specifiedContactPerson"},"remarks":{"@id":"https://vocabulary.uncefact.org/remarks"},"company":{"@id":"https://vocabulary.uncefact.org/specifiedOrganization"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/performanceDateTime"}}},"USDAPPQ505PlantDeclaration":{"@id":"https://w3id.org/traceability#USDAPPQ505PlantDeclaration","@context":{"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"productDeclarations":{"@id":"https://w3id.org/traceability#LaceyActProductDeclaration"},"preparer":{"@id":"https://vocabulary.uncefact.org/declarantParty"},"date":{"@id":"https://vocabulary.uncefact.org/issueDateTime"}}},"USDAPPQ519ComplianceAgreement":{"@id":"https://w3id.org/traceability#USDAPPQ519ComplianceAgreement","@context":{"person":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"firm":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"regulatedArticles":{"@id":"https://www.gs1.org/voc/regulatedProductName"},"quarantinesRegulations":{"@id":"https://vocabulary.uncefact.org/applicableRegulatoryProcedure"},"agreement":{"@id":"https://vocabulary.uncefact.org/guarantee"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/issueDateTime"},"ppqCbpOfficial":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"usAgencyOfficial":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"agreementNumber":{"@id":"https://vocabulary.uncefact.org/ReferenceCodeList#AJS"},"agreementDate":{"@id":"https://vocabulary.uncefact.org/issueDateTime"}}},"USDAPPQ587PlantImportApplication":{"@id":"https://w3id.org/traceability#USDAPPQ587PlantImportApplication","@context":{"applicant":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"shipment":{"@id":"https://vocabulary.uncefact.org/transportPackage"},"intendedUse":{"@id":"https://vocabulary.uncefact.org/intendedUse"},"signatureDate":{"@id":"https://vocabulary.uncefact.org/issueDateTime"}}},"USDASC6ExemptCommodityForm":{"@id":"https://w3id.org/traceability#USDASC6ExemptCommodityForm","@context":{"serialNumber":{"@id":"https://w3id.org/traceability#serialNumber"},"customsEntryNumber":{"@id":"https://w3id.org/traceability#customsEntryNumber"},"tariffCodeNumber":{"@id":"https://w3id.org/traceability#tariffCodeNumber"},"carrierId":{"@id":"https://w3id.org/traceability#carrierId"},"lotId":{"@id":"https://w3id.org/traceability#lotId"},"dateOfEntry":{"@id":"https://w3id.org/traceability#dateOfEntry"},"signatureDate":{"@id":"https://w3id.org/traceability#signatureDate"},"facility":{"@id":"https://www.gs1.org/voc/Place"},"inspector":{"@id":"https://w3id.org/traceability#Inspector"},"shipment":{"@id":"https://w3id.org/traceability#AgricultureParcelDelivery"},"applicant":{"@id":"https://w3id.org/traceability#applicant"},"importerSignatureDate":{"@id":"https://w3id.org/traceability#importerSignatureDate"},"inspectionDate":{"@id":"https://vocabulary.uncefact.org/inspectionDateTime"},"intendedUse":{"@id":"https://w3id.org/traceability#intendedUse"},"intendedUseCert":{"@id":"https://w3id.org/traceability#intendedUseCert"}}},"USDASpecialtyCrops237AForm":{"@id":"https://w3id.org/traceability#USDASpecialtyCrops237AForm","@context":{"requestDate":{"@id":"https://vocabulary.uncefact.org/reportSubmissionDateTime"},"anticipatedAuditDate":{"@id":"https://www.gs1.org/voc/certificationAuditDate"},"auditee":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"applicant":{"@id":"https://vocabulary.uncefact.org/associatedParty"},"billingAccountNumber":{"@id":"https://schema.org/accountId"},"locations":{"@id":"https://schema.org/location"},"totalArea":{"@id":"https://www.gs1.org/voc/grossArea"},"commoditiesCovered":{"@id":"https://www.gs1.org/voc/certificationSubject"},"auditProgramsRequested":{"@id":"https://www.gs1.org/voc/certificationType"},"countByInspector":{"@id":"https://vocabulary.uncefact.org/applicableSpecifiedAction"},"additionalRemarks":{"@id":"https://vocabulary.uncefact.org/remarks"}}},"USMCACertifier":{"@id":"https://w3id.org/traceability/USMCACertifier","@context":{"role":{"@id":"https://w3id.org/traceability#certifierRole"},"certifierDetails":{"@id":"https://w3id.org/traceability#certifierDetails"}}},"USMCAClaims":{"@id":"https://w3id.org/traceability/USMCAClaims","@context":{"producerDetails":{"@id":"https://schema.org/manufacturer"},"producerConfidential":{"@id":"https://w3id.org/traceability#producerConfidential"},"importerDetails":{"@id":"https://w3id.org/traceability#importerDetails"},"importerUnknown":{"@id":"https://w3id.org/traceability#importerUnknown"},"exporterDetails":{"@id":"https://w3id.org/traceability#exporterDetails"},"goods":{"@id":"https://schema.org/Product"}}},"USMCAProduct":{"@id":"https://w3id.org/traceability/USMCAProduct","@context":{"commodityCode":{"@id":"https://w3id.org/traceability#commodityCode"},"commodityCodeType":{"@id":"https://w3id.org/traceability#commodityCodeType"},"originCriterion":{"@id":"https://w3id.org/traceability#originCriterion"},"countryOfOrigin":{"@id":"https://w3id.org/traceability#countryOfOrigin"}}},"WebLEI":{"@id":"https://w3id.org/traceability#WebLEI","@context":{"lei":{"@id":"https://www.gleif.org/en/about-lei/iso-17442-the-lei-code-structure#"},"entity":{"@id":"https://w3id.org/traceability#LEIEntity"},"registration":{"@id":"https://w3id.org/traceability#LEIRegistration"}}},"ActivityPubActorCard":{"@id":"https://w3id.org/traceability#ActivityPubActorCard","@context":{}},"AgricultureCanineCard":{"@id":"https://w3id.org/traceability#AgricultureCanineCard","@context":{}},"BankAccountCredential":{"@id":"https://w3id.org/traceability#BankAccountCredential","@context":{}},"BillOfLadingCredential":{"@id":"https://w3id.org/traceability#BillOfLadingCredential","@context":{}},"CBP3461EntryCredential":{"@id":"https://w3id.org/traceability#CBP3461EntryCredential","@context":{}},"CBP7501EntrySummaryCredential":{"@id":"https://w3id.org/traceability#CBP7501EntrySummaryCredential","@context":{}},"CBPEntryType86Credential":{"@id":"https://w3id.org/traceability#CBPEntryType86Credential","@context":{}},"CBPSection321DeMinimisDeMinimisCredential":{"@id":"https://w3id.org/traceability#CBPSection321DeMinimisCredential","@context":{}},"CTPATCertificate":{"@id":"https://w3id.org/traceability#CTPATCertificate","@context":{}},"CertificationOfOrigin":{"@id":"https://w3id.org/traceability#CertificationOfOrigin","@context":{}},"CommercialInvoiceCredential":{"@id":"https://w3id.org/traceability#CommercialInvoiceCredential","@context":{}},"DCSAShippingInstructionCredential":{"@id":"https://w3id.org/traceability#DCSAShippingInstructionCredential","@context":{}},"DCSATransportDocumentCredential":{"@id":"https://w3id.org/traceability#DCSATransportDocumentCredential","@context":{}},"DeliveryScheduleCredential":{"@id":"https://w3id.org/traceability#DeliveryScheduleCredential","@context":{}},"DeliveryStatementCredential":{"@id":"https://w3id.org/traceability#DeliveryStatementCredential","@context":{}},"DigitalProductPassportCredential":{"@id":"https://w3id.org/traceability#DigitalProductPassportCredential","@context":{}},"DigitalProductPassportDataCarrierCredential":{"@id":"https://w3id.org/traceability#DigitalProductPassportDataCarrierCredential","@context":{}},"EPA35401PesticidesCredential":{"@id":"https://w3id.org/traceability#EPA35401PesticidesCredential","@context":{}},"EPA35401PesticidesPart2Credential":{"@id":"https://w3id.org/traceability#EPA35401PesticidesPart2Credential","@context":{}},"EPA35401PesticidesPart3Credential":{"@id":"https://w3id.org/traceability#EPA35401PesticidesPart3Credential","@context":{}},"EntryNumberCredential":{"@id":"https://w3id.org/traceability#EntryNumberCredential","@context":{}},"FSMACreatingCTECredential":{"@id":"https://w3id.org/traceability#FSMACreatingCTECredential","@context":{}},"FSMAFirstReceiverDataCredential":{"@id":"https://w3id.org/traceability#FSMAFirstReceiverDataCredential","@context":{}},"FSMAGrowingCTECredential":{"@id":"https://w3id.org/traceability#FSMAGrowingCTECredential","@context":{}},"FSMAReceivingCTECredential":{"@id":"https://w3id.org/traceability#FSMAReceivingCTECredential","@context":{}},"FSMAShippingCTECredential":{"@id":"https://w3id.org/traceability#FSMAShippingCTECredential","@context":{}},"FSMATransformingCTECredential":{"@id":"https://w3id.org/traceability#FSMATransformingCTECredential","@context":{}},"FoodDefenseInspectionCredential":{"@id":"https://w3id.org/traceability#FoodDefenseInspectionCredential","@context":{}},"FoodGradeInspectionCredential":{"@id":"https://w3id.org/traceability#FoodGradeInspectionCredential","@context":{}},"FreightManifestCredential":{"@id":"https://w3id.org/traceability#FreightManifestCredential","@context":{}},"GAPInspectionCredential":{"@id":"https://w3id.org/traceability#GAPInspectionCredential","@context":{}},"GS18PrefixLicenseCredential":{"@id":"https://w3id.org/traceability#GS18PrefixLicenseCredential","@context":{}},"GS1CompanyPrefixLicenseCredential":{"@id":"https://w3id.org/traceability#GS1CompanyPrefixLicenseCredential","@context":{}},"GS1DataCredential":{"@id":"https://w3id.org/traceability#GS1DataCredential","@context":{}},"GS1DelegationCredential":{"@id":"https://w3id.org/traceability#GS1DelegationCredential","@context":{}},"GS1IdentificationKeyLicenseCredential":{"@id":"https://w3id.org/traceability#GS1IdentificationKeyLicenseCredential","@context":{}},"GS1KeyCredential":{"@id":"https://w3id.org/traceability#GS1KeyCredential","@context":{}},"GS1PrefixLicenseCredential":{"@id":"https://w3id.org/traceability#GS1PrefixLicenseCredential","@context":{}},"HouseBillOfLadingCredential":{"@id":"https://w3id.org/traceability#HouseBillOfLadingCredential","@context":{}},"IATAAirWaybillCredential":{"@id":"https://w3id.org/traceability#IATAAirWaybillCredential","@context":{}},"ImporterSecurityFilingCredential":{"@id":"https://w3id.org/traceability#ImporterSecurityFilingCredential","@context":{}},"IntellectualPropertyRightsCredential":{"@id":"https://w3id.org/traceability#IntellectualPropertyRightsCredential","@context":{}},"IntellectualPropertyRightsLicenseCredential":{"@id":"https://w3id.org/traceability#IntellectualPropertyRightsLicenseCredential","@context":{}},"IntentToImportCredential":{"@id":"https://w3id.org/traceability#IntentToImportCredential","@context":{}},"InventoryRegistrationCredential":{"@id":"https://w3id.org/traceability#InventoryRegistrationCredential","@context":{}},"MasterBillOfLadingCredential":{"@id":"https://w3id.org/traceability#MasterBillOfLadingCredential","@context":{}},"MexicoEInvoiceCredential":{"@id":"https://w3id.org/traceability#MexicoEInvoiceCredential","@context":{}},"MillTestReportCredential":{"@id":"https://w3id.org/traceability#MillTestReportCredential","@context":{}},"MonthlyAdvanceManifestCredential":{"@id":"https://w3id.org/traceability#MonthlyAdvanceManifestCredential","@context":{}},"MonthlyAggregateDeliveryStatementCredential":{"@id":"https://w3id.org/traceability#MonthlyAggregateDeliveryStatementCredential","@context":{}},"MultiModalBillOfLadingCredential":{"@id":"https://w3id.org/traceability#MultiModalBillOfLadingCredential","@context":{}},"OilAndGasDeliveryTicketCredential":{"@id":"https://w3id.org/traceability#OilAndGasDeliveryTicketCredential","@context":{}},"OilAndGasProductCredential":{"@id":"https://w3id.org/traceability#OilAndGasProductCredential","@context":{}},"OrderConfirmationCredential":{"@id":"https://w3id.org/traceability#OrderConfirmationCredential","@context":{}},"OrganicCertificateCredential":{"@id":"https://w3id.org/traceability#OrganicCertificateCredential","@context":{}},"PGAShipmentStatusCredential":{"@id":"https://w3id.org/traceability#PGAShipmentStatusCredential","@context":{}},"PackingListCredential":{"@id":"https://w3id.org/traceability#PackingListCredential","@context":{}},"PlantSystemsInspectionCredential":{"@id":"https://w3id.org/traceability#PlantSystemsInspectionCredential","@context":{}},"PowerOfAttorneyCredential":{"@id":"https://spec.edmcouncil.org/fibo/ontology/BE/LegalEntities/LegalPersons/PowerOfAttorney","@context":{}},"ProductRegistrationCredential":{"@id":"https://w3id.org/traceability#ProductRegistrationCredential","@context":{}},"PurchaseOrderCredential":{"@id":"https://w3id.org/traceability#PurchaseOrderCredential","@context":{}},"SIMASteelImportLicenseApplicationCredential":{"@id":"https://w3id.org/traceability#SIMASteelImportLicenseApplicationCredential","@context":{}},"SIMASteelImportLicenseCredential":{"@id":"https://w3id.org/traceability#SIMASteelImportLicenseCredential","@context":{}},"SeaCargoManifestCredential":{"@id":"https://w3id.org/traceability#SeaCargoManifestCredential","@context":{}},"ShippingInstructionsCredential":{"@id":"https://w3id.org/traceability#ShippingInstructionsCredential","@context":{}},"SoftwareBillofMaterialsCredential":{"@id":"https://w3id.org/traceability#SoftwareBillOfMaterialsCredential","@context":{}},"TSCACertificationCredential":{"@id":"https://w3id.org/traceability#TSCACertificationCredential","@context":{}},"ThingCredential":{"@id":"https://w3id.org/traceability#ThingCredential","@context":{}},"USMCACertificationOfOrigin":{"@id":"https://w3id.org/traceability#USMCACertificationOfOrigin","@context":{}},"VerifiableBusinessCard":{"@id":"https://w3id.org/traceability#VerifiableBusinessCard","@context":{}},"VerifiablePostmanCollection":{"@id":"https://w3id.org/traceability#VerifiablePostmanCollection","@context":{}},"VerifiableScorecard":{"@id":"https://w3id.org/traceability#VerifiableScorecard","@context":{}},"environmentalImpactCredential":{"@id":"https://w3id.org/traceability#environmentalImpactCredential","@context":{}}}}')}};var __webpack_module_cache__={};function __nccwpck_require__(R){var pe=__webpack_module_cache__[R];if(pe!==undefined){return pe.exports}var Ae=__webpack_module_cache__[R]={id:R,loaded:false,exports:{}};var he=true;try{__webpack_modules__[R].call(Ae.exports,Ae,Ae.exports,__nccwpck_require__);he=false}finally{if(he)delete __webpack_module_cache__[R]}Ae.loaded=true;return Ae.exports}__nccwpck_require__.m=__webpack_modules__;(()=>{var R=typeof Symbol==="function"?Symbol("webpack queues"):"__webpack_queues__";var pe=typeof Symbol==="function"?Symbol("webpack exports"):"__webpack_exports__";var Ae=typeof Symbol==="function"?Symbol("webpack error"):"__webpack_error__";var resolveQueue=R=>{if(R&&!R.d){R.d=1;R.forEach((R=>R.r--));R.forEach((R=>R.r--?R.r++:R()))}};var wrapDeps=he=>he.map((he=>{if(he!==null&&typeof he==="object"){if(he[R])return he;if(he.then){var ge=[];ge.d=0;he.then((R=>{ye[pe]=R;resolveQueue(ge)}),(R=>{ye[Ae]=R;resolveQueue(ge)}));var ye={};ye[R]=R=>R(ge);return ye}}var me={};me[R]=R=>{};me[pe]=he;return me}));__nccwpck_require__.a=(he,ge,ye)=>{var me;ye&&((me=[]).d=1);var ve=new Set;var be=he.exports;var Ee;var we;var Ce;var _e=new Promise(((R,pe)=>{Ce=pe;we=R}));_e[pe]=be;_e[R]=R=>(me&&R(me),ve.forEach(R),_e["catch"]((R=>{})));he.exports=_e;ge((he=>{Ee=wrapDeps(he);var ge;var getResult=()=>Ee.map((R=>{if(R[Ae])throw R[Ae];return R[pe]}));var ye=new Promise((pe=>{ge=()=>pe(getResult);ge.r=0;var fnQueue=R=>R!==me&&!ve.has(R)&&(ve.add(R),R&&!R.d&&(ge.r++,R.push(ge)));Ee.map((pe=>pe[R](fnQueue)))}));return ge.r?ye:getResult()}),(R=>(R?Ce(_e[Ae]=R):we(be),resolveQueue(me))));me&&(me.d=0)}})();(()=>{var R=Object.getPrototypeOf?R=>Object.getPrototypeOf(R):R=>R.__proto__;var pe;__nccwpck_require__.t=function(Ae,he){if(he&1)Ae=this(Ae);if(he&8)return Ae;if(typeof Ae==="object"&&Ae){if(he&4&&Ae.__esModule)return Ae;if(he&16&&typeof Ae.then==="function")return Ae}var ge=Object.create(null);__nccwpck_require__.r(ge);var ye={};pe=pe||[null,R({}),R([]),R(R)];for(var me=he&2&&Ae;typeof me=="object"&&!~pe.indexOf(me);me=R(me)){Object.getOwnPropertyNames(me).forEach((R=>ye[R]=()=>Ae[R]))}ye["default"]=()=>Ae;__nccwpck_require__.d(ge,ye);return ge}})();(()=>{__nccwpck_require__.d=(R,pe)=>{for(var Ae in pe){if(__nccwpck_require__.o(pe,Ae)&&!__nccwpck_require__.o(R,Ae)){Object.defineProperty(R,Ae,{enumerable:true,get:pe[Ae]})}}}})();(()=>{__nccwpck_require__.f={};__nccwpck_require__.e=R=>Promise.all(Object.keys(__nccwpck_require__.f).reduce(((pe,Ae)=>{__nccwpck_require__.f[Ae](R,pe);return pe}),[]))})();(()=>{__nccwpck_require__.u=R=>""+R+".index.js"})();(()=>{__nccwpck_require__.o=(R,pe)=>Object.prototype.hasOwnProperty.call(R,pe)})();(()=>{__nccwpck_require__.r=R=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(R,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=R=>{R.paths=[];if(!R.children)R.children=[];return R}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";(()=>{var R={179:1};var installChunk=pe=>{var Ae=pe.modules,he=pe.ids,ge=pe.runtime;for(var ye in Ae){if(__nccwpck_require__.o(Ae,ye)){__nccwpck_require__.m[ye]=Ae[ye]}}if(ge)ge(__nccwpck_require__);for(var me=0;me{if(!R[pe]){if(true){installChunk(require("./"+__nccwpck_require__.u(pe)))}else R[pe]=1}}})();var __webpack_exports__={};(()=>{"use strict";var R=__webpack_exports__;Object.defineProperty(R,"__esModule",{value:true});const pe=__nccwpck_require__(94700);(0,pe.facade)()})();module.exports=__webpack_exports__})(); \ No newline at end of file