@catladder/cli 5.0.0 â 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apps/cli/src/release/changesetsReleaseJob.js +3 -0
- package/dist/apps/cli/src/release/changesetsReleaseJob.js.map +1 -1
- package/dist/apps/cli/src/release/releaseEntry.d.ts +12 -0
- package/dist/apps/cli/src/release/releaseEntry.js +71 -0
- package/dist/apps/cli/src/release/releaseEntry.js.map +1 -0
- package/dist/bundles/catci/index.js +4 -4
- package/dist/bundles/runner-images/semantic-release/Dockerfile +1 -0
- package/dist/bundles/runner-images/semantic-release/scripts/semanticRelease +14 -4
- package/dist/bundles/skills/catladder-releases/SKILL.md +16 -2
- package/dist/runner-images/semantic-release/Dockerfile +1 -0
- package/dist/runner-images/semantic-release/scripts/semanticRelease +14 -4
- package/dist/skills/catladder-releases/SKILL.md +16 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/release/__tests__/releaseEntry.test.ts +88 -0
- package/src/release/changesetsReleaseJob.ts +3 -0
- package/src/release/releaseEntry.ts +86 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(()=>{var __webpack_modules__={403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gitConfigSet=t.gitConfigGet=void 0;const n=r(1542);const argsJoin=e=>e.filter(Boolean).join(" ");async function gitConfigGet(e,{location:t}={}){const{stdout:r}=await(0,n.exec)(`git config --get ${argsJoin([t?`--${t}`:undefined])} ${e}`);return r.trim()}t.gitConfigGet=gitConfigGet;const gitConfigSet=(e,t,{location:r,comment:s}={})=>(0,n.exec)(`git config --set ${argsJoin([r?`--${r}`:undefined,s?`--comment=${s}`:undefined])} ${e} ${t}`);t.gitConfigSet=gitConfigSet},6884:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gitProjectInformation=t.getGitRemoteHostAndPath=t.getProjectRootPath=void 0;const n=r(403);const s=r(1542);const getProjectRootPath=async()=>{const{stdout:e}=await(0,s.exec)(`git rev-parse --show-toplevel`);return e.trim()};t.getProjectRootPath=getProjectRootPath;const getGitRemoteHostAndPath=async(e="origin")=>{var t;const r=await(0,n.gitConfigGet)(`remote.${e}.url`);const s=/(https:\/\/|git@)([^:/]+)[:/]([^.]*)(\.git)?/;const o=(t=r.match(s))!==null&&t!==void 0?t:[];const[,,i,a]=o;if(!(i===null||i===void 0?void 0:i.length)||!(a===null||a===void 0?void 0:a.length)){throw new Error(`Failed to parse git remote hostname and path from git configs remote.${e}.url! ${r}`)}return{gitRemoteHost:i,gitRemotePath:a}};t.getGitRemoteHostAndPath=getGitRemoteHostAndPath;const gitProjectInformation=async()=>{const[{gitRemoteHost:e,gitRemotePath:r},n]=await Promise.all([(0,t.getGitRemoteHostAndPath)(),(0,t.getProjectRootPath)()]);return{gitRemoteHost:e,gitRemotePath:r,projectRootPath:n}};t.gitProjectInformation=gitProjectInformation},3961:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseNpmPublishArgs=t.npmPublishJob=t.DEFAULT_NPM_REGISTRY=void 0;const n=r(5317);const s=r(1943);const o=r(6928);const i=r(1535);t.DEFAULT_NPM_REGISTRY="https://registry.npmjs.org/";const readCiContext=e=>{var t,r,n,s;const o=process.env;if(o.GITLAB_CI==="true"){return{ciTag:o.CI_COMMIT_TAG||null,refSlug:(t=o.CI_COMMIT_REF_SLUG)!==null&&t!==void 0?t:"",shortSha:(r=o.CI_COMMIT_SHORT_SHA)!==null&&r!==void 0?r:""}}if(o.GITHUB_ACTIONS==="true"){return{ciTag:o.GITHUB_REF_TYPE==="tag"?(n=o.GITHUB_REF_NAME)!==null&&n!==void 0?n:null:null,refSlug:(0,i.slugifyRef)(o.GITHUB_HEAD_REF||o.GITHUB_REF_NAME||""),shortSha:((s=o.GITHUB_SHA)!==null&&s!==void 0?s:"").slice(0,8)}}throw new Error(`publish npm for "${e.dir}" must run in a gitlab or github CI job (no CI provider detected)`)};const setPackageVersion=async(e,t)=>{const r=(0,o.join)(e,"package.json");const n=JSON.parse(await(0,s.readFile)(r,"utf-8"));n.version=t;await(0,s.writeFile)(r,JSON.stringify(n,null,2)+"\n");return n.name};const writeNpmrc=async(e,t)=>{const r=t.replace(/^https?:/,"").replace(/\/?$/,"/");const n=(0,o.resolve)(e,".npmrc");await(0,s.writeFile)(n,`${r}:_authToken=\${NPM_TOKEN}\n`);return n};const hasOidcCredentials=()=>!!process.env.ACTIONS_ID_TOKEN_REQUEST_URL&&!!process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;const npmPublish=(e,t,r)=>new Promise(((s,o)=>{const i=(0,n.spawn)("npm",["publish",...r],{cwd:e,stdio:"inherit",env:{...process.env,...t?{NPM_CONFIG_USERCONFIG:t}:{}}});i.on("error",o);i.on("exit",(e=>e===0?s():o(new Error(`npm publish exited with ${e}`))))}));const npmPublishJob=async e=>{var r,n;const s=hasOidcCredentials();if(!s&&!process.env.NPM_TOKEN){throw new Error("NPM_TOKEN is not set â configure it as a catladder secret for this component, or publish from a workflow registered as a trusted publisher on npm")}const o=(r=e.registry)!==null&&r!==void 0?r:t.DEFAULT_NPM_REGISTRY;const a=(0,i.computeNpmPublishPlan)({envType:e.envType,distTagOverride:e.distTag,...readCiContext(e)});const c=await setPackageVersion(e.dir,a.version);const u=s&&!process.env.NPM_TOKEN?undefined:await writeNpmrc(e.dir,o);console.log(`publishing ${c}@${a.version} (dist-tag ${a.distTag}) to ${o}${u?"":" via trusted publishing (OIDC)"}`);await npmPublish(e.dir,u,["--tag",a.distTag,"--access",(n=e.access)!==null&&n!==void 0?n:"public","--registry",o,"--workspaces=false"]);console.log(`published ${c}@${a.version} đ`)};t.npmPublishJob=npmPublishJob;const parseNpmPublishArgs=e=>{const t={};for(let r=0;r<e.length;r+=2){const n=e[r];const s=e[r+1];if(!(n===null||n===void 0?void 0:n.startsWith("--"))||s===undefined)return null;t[n.slice(2)]=s}const{dir:r,access:n,registry:s}=t;const o=t["env-type"];const i=t["dist-tag"];if(!r||!o)return null;return{dir:r,envType:o,access:n,registry:s,distTag:i}};t.parseNpmPublishArgs=parseNpmPublishArgs},1535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slugifyRef=t.computeNpmPublishPlan=t.BRANCH_DIST_TAGS=void 0;t.BRANCH_DIST_TAGS=["next","beta"];const computeNpmPublishPlan=e=>{var r,n;if(e.envType==="prod"||e.envType==="stage"){if(!e.ciTag){throw new Error(`npm publish for env type "${e.envType}" expects a tagged-release pipeline, but no git tag is set`)}return{version:e.ciTag.replace(/^v/,""),distTag:(r=e.distTagOverride)!==null&&r!==void 0?r:"latest"}}return{version:`0.0.0-${e.refSlug}-${e.shortSha}`,distTag:(n=e.distTagOverride)!==null&&n!==void 0?n:t.BRANCH_DIST_TAGS.includes(e.refSlug)?e.refSlug:"canary"}};t.computeNpmPublishPlan=computeNpmPublishPlan;const slugifyRef=e=>e.toLowerCase().replace(/[^0-9a-z]/g,"-").slice(0,63).replace(/^-+|-+$/g,"");t.slugifyRef=slugifyRef},118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.runChangesetCheck=t.CHANGESET_CHECK_MARKER=void 0;const n=r(4423);t.CHANGESET_CHECK_MARKER="\x3c!-- catladder-changeset-check --\x3e";const runChangesetCheck=({addedFiles:e,pending:r,lastTag:s,requestLabel:o,packageManager:i})=>{const a=e.length>0;const c=[t.CHANGESET_CHECK_MARKER,"## đĻ Changeset check",""];if(a){c.push(`â
This ${o} adds ${e.length} changeset${e.length===1?"":"s"}: ${e.map((e=>`\`${e}\``)).join(", ")}`)}else{c.push(`â ī¸ **This ${o} adds no changeset.** If the change is user-facing it will be missing from the next release's changelog â add \`.changeset/<name>.md\` (or run \`${i} changeset\`). For docs/chore changes this warning can be ignored.`)}c.push("");if(r.length===0){c.push("No changesets are pending â merging will **not** trigger a release.")}else{const e=(0,n.getNextVersion)(s,(0,n.maxBump)(r.map((e=>e.bump))));c.push(`${r.length} changeset${r.length===1?" is":"s are"} pending after merge â the next release will be **v${e}**${s?` (from ${s})`:" (first release)"}:`,"","<details><summary>Changelog preview</summary>","",(0,n.renderChangelogEntries)(r),"","</details>")}return{addsChangeset:a,markdown:c.join("\n")}};t.runChangesetCheck=runChangesetCheck},291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.changesetCheckJob=t.CHANGESET_REPORT_FILE=void 0;const n=r(9896);const s=r(1943);const o=r(118);const i=r(7307);const a=r(1177);const c=r(4074);t.CHANGESET_REPORT_FILE="changeset-report.md";const onGithub=()=>process.env.GITHUB_ACTIONS==="true";const detectPackageManager=()=>(0,n.existsSync)("pnpm-lock.yaml")?"pnpm":"yarn";const getAddedChangesetFiles=async()=>{const e=onGithub()?process.env.GITHUB_BASE_REF:process.env.CI_MERGE_REQUEST_TARGET_BRANCH_NAME;if(!e){return null}await(0,a.git)("fetch","--quiet","origin",e);const t=await(0,a.git)("merge-base","HEAD","FETCH_HEAD");const r=await(0,a.git)("diff","--name-only","--diff-filter=A",t,"HEAD");return r.split("\n").filter((e=>e.startsWith(".changeset/")&&e.endsWith(".md")&&!e.toLowerCase().endsWith("readme.md"))).map((e=>e.slice(".changeset/".length)))};const findSticky=e=>e.find((e=>{var t;return(t=e.body)===null||t===void 0?void 0:t.includes(o.CHANGESET_CHECK_MARKER)}));const request=async(e,t)=>{var r;const n=await fetch(e,t);if(!n.ok){throw new Error(`${(r=t.method)!==null&&r!==void 0?r:"GET"} ${e} failed: ${n.status} ${await n.text()}`)}return n};const upsertGithubComment=async e=>{var t,r;const n=process.env.GITHUB_TOKEN;const s=(t=process.env.GITHUB_API_URL)!==null&&t!==void 0?t:"https://api.github.com";const o=process.env.GITHUB_REPOSITORY;const i=parseInt((r=process.env.GITHUB_REF_NAME)!==null&&r!==void 0?r:"");if(!n||!o||!i){console.log("no PR context/token â skipping the PR comment");return}const a={authorization:`Bearer ${n}`,accept:"application/vnd.github+json","content-type":"application/json"};const c=await(await request(`${s}/repos/${o}/issues/${i}/comments?per_page=100`,{headers:a})).json();const u=findSticky(c);if(u){await request(`${s}/repos/${o}/issues/comments/${u.id}`,{method:"PATCH",headers:a,body:JSON.stringify({body:e})})}else{await request(`${s}/repos/${o}/issues/${i}/comments`,{method:"POST",headers:a,body:JSON.stringify({body:e})})}console.log("updated the sticky PR comment")};const upsertGitlabComment=async e=>{const t=process.env.GL_TOKEN;if(!t){console.log("GL_TOKEN is not available in this pipeline â skipping the MR comment (report available in the job log and the exposed artifact)");return}const r=process.env.CI_API_V4_URL;const n=process.env.CI_PROJECT_ID;const s=process.env.CI_MERGE_REQUEST_IID;if(!r||!n||!s){console.log("no MR context â skipping the MR comment");return}const o={"PRIVATE-TOKEN":t,"content-type":"application/json"};const i=`${r}/projects/${n}/merge_requests/${s}/notes`;const a=await(await request(`${i}?per_page=100`,{headers:o})).json();const c=findSticky(a);if(c){await request(`${i}/${c.id}`,{method:"PUT",headers:o,body:JSON.stringify({body:e})})}else{await request(i,{method:"POST",headers:o,body:JSON.stringify({body:e})})}console.log("updated the sticky MR comment")};const changesetCheckJob=async()=>{await(0,a.ensureReleaseHistory)();const e=await(0,i.readPendingChangesets)();const r=await(0,a.getLastReleaseTag)();const n=await getAddedChangesetFiles();const u=(0,o.runChangesetCheck)({addedFiles:n!==null&&n!==void 0?n:[],pending:e,lastTag:r,requestLabel:onGithub()?"pull request":"merge request",packageManager:detectPackageManager()});console.log(u.markdown.replace(`${o.CHANGESET_CHECK_MARKER}\n`,""));await(0,s.writeFile)(t.CHANGESET_REPORT_FILE,u.markdown);try{if(onGithub()){await upsertGithubComment(u.markdown)}else{await upsertGitlabComment(u.markdown)}}catch(e){console.warn(`could not update the sticky comment: ${e}`)}if(n===null){console.log("not running against a merge request â check skipped");return}if(!u.addsChangeset){if(onGithub()){console.log("::warning title=No changeset::this pull request adds no changeset â "+"if the change is user-facing, add one so it appears in the next release's changelog");(0,c.appendStepSummary)(u.markdown.replace(`${o.CHANGESET_CHECK_MARKER}\n`,""));return}process.exitCode=1}};t.changesetCheckJob=changesetCheckJob},4423:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.prependToChangelog=t.renderChangelogEntries=t.getNextVersion=t.maxBump=t.parseChangesetFile=t.BUMPS=void 0;const s=n(r(492));t.BUMPS=["patch","minor","major"];const isBump=e=>t.BUMPS.includes(e);const parseChangesetFile=(e,r)=>{let n;try{n=(0,s.default)(r)}catch(t){throw new Error(`${e}: not a valid changeset (${t instanceof Error?t.message:t})`)}const o=n.releases.map((e=>e.type)).filter(isBump);if(o.length===0){throw new Error(`${e}: changeset declares no effective version bump (major|minor|patch)`)}const i=n.summary.trim();if(i===""){throw new Error(`${e}: changeset has no summary`)}return{fileName:e,bump:(0,t.maxBump)(o),summary:i}};t.parseChangesetFile=parseChangesetFile;const maxBump=e=>e.reduce(((e,r)=>t.BUMPS.indexOf(r)>t.BUMPS.indexOf(e)?r:e));t.maxBump=maxBump;const getNextVersion=(e,t)=>{if(e===null){return"1.0.0"}const r=e.match(/^v(\d+)\.(\d+)\.(\d+)$/);if(!r){throw new Error(`last release tag "${e}" is not of the form vX.Y.Z â cannot derive the next version`)}const[n,s,o]=r.slice(1).map(Number);switch(t){case"major":return`${n+1}.0.0`;case"minor":return`${n}.${s+1}.0`;case"patch":return`${n}.${s}.${o+1}`}};t.getNextVersion=getNextVersion;const o={major:"Major Changes",minor:"Minor Changes",patch:"Patch Changes"};const renderChangelogEntries=e=>[...t.BUMPS].reverse().map((t=>{const r=e.filter((e=>e.bump===t));if(r.length===0)return null;return[`### ${o[t]}`,"",...r.map((e=>`- ${e.summary.replace(/\r?\n/g,"\n ")}`))].join("\n")})).filter((e=>e!==null)).join("\n\n");t.renderChangelogEntries=renderChangelogEntries;const i="# Changelog";const prependToChangelog=(e,t,r,n)=>{const s=`## ${t} (${r})\n\n${n}\n`;const o=(e!==null&&e!==void 0?e:"").replace(new RegExp(`^${i}\\s*\\n`),"").trim();return[i,"",s+(o?"\n"+o+"\n":"")].join("\n")};t.prependToChangelog=prependToChangelog},7307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.changesetsReleaseJob=t.dispatchTaggedReleaseWorkflow=t.readPendingChangesets=void 0;const n=r(9896);const s=r(1943);const o=r(857);const i=r(6928);const a=r(4423);const c=r(1177);const u=r(4074);const l=".changeset";const p="CHANGELOG.md";const d="catladder-release.yml";const readPendingChangesets=async()=>{const e=await(0,s.readdir)(l).catch((()=>[]));const t=e.filter((e=>e.endsWith(".md")&&e.toLowerCase()!=="readme.md"));return Promise.all(t.map((async e=>(0,a.parseChangesetFile)(e,await(0,s.readFile)((0,i.join)(l,e),"utf-8")))))};t.readPendingChangesets=readPendingChangesets;const ensureGitIdentity=async()=>{const e=await(0,c.git)("config","user.email").catch((()=>""));if(e!=="")return;const t=process.env.GITHUB_ACTIONS==="true";await(0,c.git)("config","user.name",t?"github-actions[bot]":"catladder");await(0,c.git)("config","user.email",t?"41898282+github-actions[bot]@users.noreply.github.com":"catladder-release@panter.ch")};const requireEnv=e=>{const t=process.env[e];if(!t){throw new Error(`${e} is not set â cannot push the release`)}return t};const pushCommitAndTag=async e=>{var t;if(process.env.GITHUB_ACTIONS==="true"){const r=requireEnv("GITHUB_REF_NAME");const n=[`HEAD:refs/heads/${r}`,e];const s=process.env.CATLADDER_RELEASE_KEY;if(s){await pushWithDeployKey(s,n);return}try{await(0,c.git)("push","--atomic","origin",...n)}catch(e){if(/GH006|protected branch/i.test(`${(t=e===null||e===void 0?void 0:e.message)!==null&&t!==void 0?t:e}`)){throw new Error(`pushing the release to '${r}' was rejected by its branch protection:\n`+`${e.message}\n`+`The workflow token cannot bypass a required status check on '${r}'. `+`Run \`catladder project setup\` to provision the release deploy key `+`(${f} secret + ruleset bypass), then rerun this job.`)}throw e}return}const r=requireEnv("GL_TOKEN");const n=requireEnv("CI_SERVER_HOST");const s=requireEnv("CI_PROJECT_PATH");const o=requireEnv("CI_COMMIT_BRANCH");const i=`https://oauth2:${r}@${n}/${s}.git`;await(0,c.git)("push","--atomic",i,`HEAD:refs/heads/${o}`,e)};const f="CATLADDER_RELEASE_KEY";const pushWithDeployKey=async(e,t)=>{var r;const n=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com";const a=new URL(n).host;const u=requireEnv("GITHUB_REPOSITORY");const l=await(0,s.mkdtemp)((0,i.join)((0,o.tmpdir)(),"release-key-"));try{const r=(0,i.join)(l,"id_ed25519");await(0,s.writeFile)(r,e.endsWith("\n")?e:`${e}\n`,{mode:384});await(0,c.gitWithEnv)({GIT_SSH_COMMAND:`ssh -i ${r} -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new`},"push","--atomic",`git@${a}:${u}.git`,...t)}finally{await(0,s.rm)(l,{recursive:true,force:true})}};const dispatchTaggedReleaseWorkflow=async e=>{var t;const r=(t=process.env.GITHUB_API_URL)!==null&&t!==void 0?t:"https://api.github.com";const n=requireEnv("GITHUB_REPOSITORY");const s=requireEnv("GITHUB_TOKEN");const o=await fetch(`${r}/repos/${n}/actions/workflows/${d}/dispatches`,{method:"POST",headers:{authorization:`Bearer ${s}`,accept:"application/vnd.github+json"},body:JSON.stringify({ref:e})});if(!o.ok){throw new Error(`dispatching ${d} for ${e} failed: ${o.status} ${await o.text()}`)}console.log(`dispatched ${d} for ${e}`)};t.dispatchTaggedReleaseWorkflow=dispatchTaggedReleaseWorkflow;const h={fileName:"",bump:"patch",summary:"Forced release without pending changesets."};const changesetsReleaseJob=async()=>{const e=await(0,t.readPendingChangesets)();const r=e.length===0&&process.env.CATLADDER_FORCE_RELEASE==="true";if(e.length===0&&!r){console.log(`no changesets found in ${l}/ â nothing to release`);console.log(`add one with \`${(0,n.existsSync)("pnpm-lock.yaml")?"pnpm":"yarn"} changeset\` (or write .changeset/<name>.md by hand) and merge it to release`);console.log("to release anyway (patch bump), run the force release job instead");(0,u.appendStepSummary)(`âšī¸ **Nothing released** â no pending changesets in \`${l}/\`. `+"Merge a changeset and release again, or force the release for a patch bump.");return}const o=r?[h]:e;if(r){console.log("no changesets pending â forced release, bumping a patch")}await(0,c.ensureReleaseHistory)();const d=await(0,c.getLastReleaseTag)();const f=(0,a.getNextVersion)(d,(0,a.maxBump)(o.map((e=>e.bump))));const g=`v${f}`;console.log(`releasing ${g} (${d!==null&&d!==void 0?d:"first release"} + ${o.length} changeset(s))`);const m=(0,a.renderChangelogEntries)(o);const y=await(0,s.readFile)(p,"utf-8").catch((()=>null));const v=(new Date).toISOString().slice(0,10);await(0,s.writeFile)(p,(0,a.prependToChangelog)(y,f,v,m));await Promise.all(e.map((e=>(0,s.rm)((0,i.join)(l,e.fileName)))));await ensureGitIdentity();if(r){await(0,c.git)("add",p)}else{await(0,c.git)("add",p,l)}const $=process.env.GITHUB_ACTIONS==="true";const b=`chore(release): ${f}${$?" [skip ci]":""}`;await(0,c.git)("commit","-m",`${b}\n\n${m}`);await(0,c.git)("tag",g);await pushCommitAndTag(g);console.log(`released ${g}`);(0,u.appendStepSummary)(`đ **Released ${g}**\n\n${m}`);if(process.env.GITHUB_ACTIONS==="true"){await(0,t.dispatchTaggedReleaseWorkflow)(g)}};t.changesetsReleaseJob=changesetsReleaseJob},7695:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.githubQueuedGuardJob=t.githubQueueCheckJob=void 0;const n=r(9896);const s=r(1177);const o=r(4074);const i="catladder-main.yml";const a="catladder-release-on-green.yml";const c="refs/catladder/release-queued";const ensureGitSafeDirectory=async()=>{await(0,s.git)("config","--global","--add","safe.directory",process.cwd())};const requireEnv=e=>{const t=process.env[e];if(!t){throw new Error(`${e} is not set`)}return t};const fail=e=>{console.error(e);process.exit(1)};const setStepOutput=(e,t)=>{const r=process.env.GITHUB_OUTPUT;if(!r){return}(0,n.appendFileSync)(r,`${e}=${t}\n`)};const getMainWorkflowRun=async e=>{var t,r,n;const s=(t=process.env.GITHUB_API_URL)!==null&&t!==void 0?t:"https://api.github.com";const o=requireEnv("GITHUB_REPOSITORY");const a=requireEnv("GITHUB_TOKEN");const c=await fetch(`${s}/repos/${o}/actions/workflows/${i}/runs?head_sha=${e}&per_page=5`,{headers:{authorization:`Bearer ${a}`,accept:"application/vnd.github+json"}});if(!c.ok){throw new Error(`listing ${i} runs failed: ${c.status} ${await c.text()}`)}const u=await c.json();return(n=(r=u.workflow_runs)===null||r===void 0?void 0:r[0])!==null&&n!==void 0?n:null};const githubQueueCheckJob=async()=>{await ensureGitSafeDirectory();const e=await(0,s.git)("rev-parse","HEAD");const t=await getMainWorkflowRun(e);if(!t){console.log(`no main workflow run found for ${e} â releasing right away`);(0,o.appendStepSummary)(`âšī¸ No main workflow run found for \`${e}\` â releasing right away.`);setStepOutput("queued","false");return}if(t.status==="completed"){if(t.conclusion==="success"){console.log(`main workflow for ${e} succeeded â releasing right away`);(0,o.appendStepSummary)(`â
The main workflow for \`${e}\` succeeded â releasing right away.`);setStepOutput("queued","false");return}(0,o.appendStepSummary)(`â Not releasing: the ${(0,o.workflowLink)(i,"main workflow")} run for \`${e}\` concluded **${t.conclusion}**. `+`Fix the pipeline, or re-run with the force checkbox to release anyway.`);fail(`the main workflow for ${e} concluded '${t.conclusion}' â `+`fix the pipeline, or force the release to release anyway`)}await(0,s.git)("push","origin",`+${e}:${c}`);const r=t.status.replace(/_/g," ");console.log(`main workflow for ${e} is ${r} â release queued: `+`the 'release on green' workflow creates the release as soon as the run succeeds`);(0,o.appendStepSummary)(`âŗ **Release queued** for \`${e}\` â the ${(0,o.workflowLink)(i,"main workflow")} run is still ${r}. `+`${(0,o.workflowLink)(a,"release on green")} creates the release as soon as it succeeds.`);setStepOutput("queued","true")};t.githubQueueCheckJob=githubQueueCheckJob;const githubQueuedGuardJob=async(e,t)=>{var r;await ensureGitSafeDirectory();const n=await(0,s.git)("ls-remote","origin",c);const i=(r=n.split(/\s+/)[0])!==null&&r!==void 0?r:"";if(!i){console.log("no release queued â nothing to do");(0,o.appendStepSummary)("No release queued â nothing to do.");setStepOutput("release","false");return}if(i!==e){console.log(`queued release is for ${i}, this run is for ${e} â leaving the queue untouched`);(0,o.appendStepSummary)(`Queued release is for \`${i}\`, this run is for \`${e}\` â leaving the queue untouched.`);setStepOutput("release","false");return}await(0,s.git)("push","origin",`:${c}`);if(t!=="success"){(0,o.appendStepSummary)(`â Queued release for \`${e}\` **not executed**: the main workflow concluded **${t}**. `+`Fix the pipeline and queue again via the đ create release workflow.`);fail(`queued release not executed: the main workflow concluded '${t}' â `+`fix the pipeline and queue the release again`)}console.log(`main workflow for ${e} succeeded â releasing`);(0,o.appendStepSummary)(`â
Main workflow for \`${e}\` succeeded â running the queued release.`);setStepOutput("release","true")};t.githubQueuedGuardJob=githubQueuedGuardJob},1177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLastReleaseTag=t.ensureReleaseHistory=t.gitWithEnv=t.git=void 0;const n=r(5317);const s=r(9023);const o=(0,s.promisify)(n.execFile);const git=async(...e)=>{const{stdout:t}=await o("git",e);return t.trim()};t.git=git;const gitWithEnv=async(e,...t)=>{const{stdout:r}=await o("git",t,{env:{...process.env,...e}});return r.trim()};t.gitWithEnv=gitWithEnv;const ensureReleaseHistory=async()=>{const e=await(0,t.git)("rev-parse","--is-shallow-repository").catch((()=>"false"));try{if(e==="true"){await(0,t.git)("fetch","--quiet","--unshallow","--tags","origin")}else{await(0,t.git)("fetch","--quiet","--tags","origin")}}catch(e){console.warn(`could not fetch tags from origin (${e}) â version derivation may be wrong on a shallow clone`)}};t.ensureReleaseHistory=ensureReleaseHistory;const getLastReleaseTag=async()=>{try{return await(0,t.git)("describe","--tags","--abbrev=0","--match","v[0-9]*")}catch(e){return null}};t.getLastReleaseTag=getLastReleaseTag},4074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.workflowLink=t.appendStepSummary=void 0;const n=r(9896);const appendStepSummary=e=>{const t=process.env.GITHUB_STEP_SUMMARY;if(!t){return}(0,n.appendFileSync)(t,e+"\n")};t.appendStepSummary=appendStepSummary;const workflowLink=(e,t)=>{var r;const n=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com";const s=process.env.GITHUB_REPOSITORY;if(!s){return t}return`[${t}](${n}/${s}/actions/workflows/${e})`};t.workflowLink=workflowLink},2759:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.evaluateDocument=t.makeTemplate=void 0;const s=n(r(6743));const o=s.default;const i="â
";const a="â";const c=`${i}/${a}`;const u="@...";const l=[["Responsible",c,"Description","Note","More Information"]].concat(o.map((e=>[Array(e.responsibles).fill(u).join(", "),c,e.description,"",e.more])));function makeTable(e){const t=calculateColumnWidths(e);return`\n${makeRow(e[0],t," ")}\n${makeRow(e[0].map((()=>"")),t,"-")}\n${e.slice(1).map((e=>makeRow(e,t," "))).join("\n")}\n`}function calculateColumnWidths(e){const t=e[0].length;return Array.from({length:t},((e,t)=>t)).map((t=>Math.max(...e.map((e=>e[t].length)))))}function makeRow(e,t,r){return`| ${e.map(((e,n)=>e.padEnd(t[n],r))).join(" | ")} |`}function makeTemplate(){return`\n# Security Audit Report\n\nA security audit report document is a comprehensive assessment of an application's security posture, containing security topics that auditors can mark to indicate the state of various security aspects.\n\nIt serves as a structured guide for security team to evaluate different security factors such as authentication, authorization, data encryption, input validation, and more.\n\n## General Information\n\n- Project Owner is @...\n- Dev team:\n - @...\n - @...\n - @...\n\n## Project Security\n\n${makeTable(l)}\n\n`}t.makeTemplate=makeTemplate;function evaluateDocument(e){var t,r;const n=(r=(t=e.match(/^\s*\|.*?\|\s*$/gm))===null||t===void 0?void 0:t.map((e=>e.trim())))!==null&&r!==void 0?r:[];const s=n.map((e=>e.split("|").map((e=>e.trim())))).slice(2);const a=new Set(o.map((e=>e.description)));const l=s.map((e=>{const t=e[1].split(", ");const r=e[2];const n=e[3];const s=e[4];const o=!a.has(n);const l=!o&&!r.includes(c)&&!t.some((e=>e.includes(u)));const p=!o&&l&&r.includes(i);return{responsibles:t,answer:r,description:n,note:s,isUnknown:o,isAnswered:l,isSecured:p}}));const p=o.length;const d=l.filter((e=>e.isAnswered)).length;const f=l.filter((e=>e.isSecured)).length;const h=l.filter((e=>e.isUnknown)).length;const g=Math.round(f/p*100);return{topics:l,score:{rating:g,totalTopics:p,answeredTopics:d,securedTopics:f,unknownTopics:h}}}t.evaluateDocument=evaluateDocument},6289:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createSecurityAuditMergeRequest=t.SECURITY_AUDIT_FILE_NAME=void 0;const n=r(9226);const s=r(2759);function makeDatedBranchName(e){const t=(new Date).toISOString().slice(0,-5).replaceAll(/[:.T]/g,"-");return`${e}-${t}`}const o="Draft: chore(security): add security audit document";t.SECURITY_AUDIT_FILE_NAME="SECURITY.md";async function createSecurityAuditMergeRequest({projectId:e,mainBranch:r,userId:i,api:a}){const c=(await n.Result.wrapAsync((()=>a.MergeRequests.all({state:"opened",wip:"yes",labels:"security-audit"})))).mapErr((()=>`could not search for existing merge requests`));if(c.isErr())return c;const u=c.value[0];if(u)return(0,n.Err)(`open merge request with security audit already exists: ${u.web_url}`);const l=n.Result.wrap((()=>(0,s.makeTemplate)())).mapErr((()=>"could not make security audit template document"));if(l.isErr())return l;const p=(await n.Result.wrapAsync((()=>a.Branches.create(e,makeDatedBranchName("chore/security-audit"),r)))).mapErr((e=>{console.log(e);return"could not create branch"}));if(p.isErr())return p;const d=(await n.Result.wrapAsync((()=>a.Commits.create(e,p.value.name,"chore(security): add empty security audit document template",[{action:"create",filePath:t.SECURITY_AUDIT_FILE_NAME,content:l.value,encoding:"text"}])))).mapErr((()=>"could not create commit"));if(d.isErr())return d;const f=(await n.Result.wrapAsync((()=>a.MergeRequests.create(e,p.value.name,r,o,{description:`Please follow and update security audit document in \`${t.SECURITY_AUDIT_FILE_NAME}\`.`,assigneeId:i,squash:true,labels:"security-audit",removeSourceBranch:true})))).mapErr((()=>"could not create merge request"));return f}t.createSecurityAuditMergeRequest=createSecurityAuditMergeRequest},8725:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSecurityAuditOverview=t.evaluateSecurityAudit=void 0;const n=r(9226);const s=r(6928);const o=r(1943);const i=r(6289);const a=r(2759);async function evaluateSecurityAudit({path:e}){return(await n.Result.wrapAsync((async()=>{const t=(0,s.join)(e,i.SECURITY_AUDIT_FILE_NAME);const r=await(0,o.readFile)(t);const n=r.toString("utf-8");return(0,a.evaluateDocument)(n)}))).mapErr((e=>`could not evaluate ${i.SECURITY_AUDIT_FILE_NAME}: ${e}`))}t.evaluateSecurityAudit=evaluateSecurityAudit;function makeSecurityAuditOverview(e){const ratingToEmo=e=>e<33?"đĨ":e<66?"đ¨":"đŠ";return`Project security posture overview:\n đ§ Total topics: ${e.score.totalTopics}\n đ Secured topics: ${e.score.securedTopics}\n đĸ Answered topics: ${e.score.answeredTopics}\n â Unknown topics: ${e.score.unknownTopics}\n đ Rating: ${ratingToEmo(e.score.rating)} ${e.score.rating}/100`}t.makeSecurityAuditOverview=makeSecurityAuditOverview},6175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getGitlabHostUrl=void 0;const n=r(6884);const getGitlabHostUrl=async(e="origin")=>{const t=process.env.CI_SERVER_URL;if(t){return t.replace(/\/+$/,"")}const{gitRemoteHost:r}=await(0,n.getGitRemoteHostAndPath)(e);return`https://${r}`};t.getGitlabHostUrl=getGitlabHostUrl},492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(2146);function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var s=_interopDefault(n);const o=/\s*---([^]*?)\n\s*---(\s*(?:\n|$)[^]*)/;const i=`---\n"package-name": patch\n---`;const a=["major","minor","patch","none"];function truncate(e,t=200){return e.length>t?e.slice(0,t)+"...":e}function validateReleases(e,t){for(const r of e){if(typeof r.name!=="string"||r.name.trim()===""){throw new Error(`could not parse changeset - invalid package name in frontmatter.\n`+`Expected a non-empty string for package name, but got: ${JSON.stringify(r.name)}\n`+`Changeset contents:\n${truncate(t)}`)}if(typeof r.type!=="string"){throw new Error(`could not parse changeset - invalid release type for package "${r.name}".\n`+`Expected a string for release type, but got: ${typeof r.type}\n`+`Changeset contents:\n${truncate(t)}`)}if(!a.includes(r.type)){throw new Error(`could not parse changeset - invalid version type ${JSON.stringify(r.type)} for package "${r.name}".\n`+`Valid version types are: ${a.join(", ")}\n`+`Changeset contents:\n${truncate(t)}`)}}}function parseChangesetFile(e){const t=e.trim();if(!t){throw new Error(`could not parse changeset - file is empty.\n`+`Changesets must have frontmatter with package names and version types.\n`+`Example:\n${i}\n\nYour changeset summary here.`)}const r=o.exec(e);if(!r){throw new Error(`could not parse changeset - missing or invalid frontmatter.\n`+`Changesets must start with frontmatter delimited by "---".\n`+`Example:\n${i}\n\nYour changeset summary here.\n`+`Received content:\n${truncate(t)}`)}let[,n,a]=r;let c=a.trim();let u;let l;try{l=s["default"].load(n)}catch(e){throw new Error(`could not parse changeset - invalid YAML in frontmatter.\n`+`The frontmatter between the "---" delimiters must be valid YAML.\n`+`YAML error: ${e instanceof Error?e.message:String(e)}\n`+`Frontmatter content:\n${n}`)}if(l){if(typeof l!=="object"||Array.isArray(l)){throw new Error(`could not parse changeset - frontmatter must be an object mapping package names to version types.\n`+`Expected format:\n${i}\n`+`Received:\n${n}`)}u=Object.entries(l).map((([e,t])=>({name:e,type:t})))}else{u=[]}validateReleases(u,e);return{releases:u,summary:c}}t["default"]=parseChangesetFile},5182:(e,t,r)=>{"use strict";var n=r(8126);var s=r(6308);var o=r(891);function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var i=_interopDefault(o);function appendFormFromObject(e){const t=new FormData;Object.entries(e).forEach((([e,r])=>{if(!r)return;if(Array.isArray(r))t.append(e,r[0],r[1]);else t.append(e,r)}));return t}function endpoint(e,...t){return t.reduce(((t,r,n)=>t+encodeURIComponent(r)+e[n+1]),e[0])}function parseLinkHeader(e){const t={};const r=/<([^>]+)>; rel="([^"]+)"/g;let n;while(n=r.exec(e)){const[,e,r]=n;t[r]=e}return t}function reformatObjectOptions(e,t,r=false){const n=r?s.decamelizeKeys(e):e;return i.default.stringify({[t]:n},{encode:false}).split("&").reduce(((e,t)=>{const[r,n]=t.split("=");e[r]=n;return e}),{})}function packageResponse(e,t){return t?{data:e.body,status:e.status,headers:e.headers}:e.body}function getStream(e,t){return packageResponse(e,t)}function getSingle(e,t,r){const{status:n,headers:o}=t;let{body:i}=t;if(e)i=s.camelizeKeys(i);return packageResponse({body:i,status:n,headers:o},r)}async function getManyMore(e,t,r,n,i,a){const{sudo:c,showExpanded:u,maxPages:l,pagination:p,page:d,perPage:f,idAfter:h,orderBy:g,sort:m}=i;if(e)n.body=s.camelizeKeys(n?.body);const y=[...a||[],...n.body];const v=l&&f?y.length/+f<l:true;const{next:$=""}=parseLinkHeader(n.headers.link);if(!(d&&(a||[]).length===0)&&$&&v){const n=o.parse($.split("?")[1]);const i={...s.camelizeKeys(n)};const a={...i,maxPages:l,sudo:c,showExpanded:u};const p=await t(r,{searchParams:i,sudo:c});return getManyMore(e,t,r,p,a,y)}if(!u)return y;const b=p==="keyset"?{idAfter:h?+h:null,perPage:f?+f:null,orderBy:g,sort:m}:{total:parseInt(n.headers["x-total"],10),next:parseInt(n.headers["x-next-page"],10)||null,current:parseInt(n.headers["x-page"],10)||1,previous:parseInt(n.headers["x-prev-page"],10)||null,perPage:parseInt(n.headers["x-per-page"],10),totalPages:parseInt(n.headers["x-total-pages"],10)};return{data:y,paginationInfo:b}}function get(){return async(e,t,r)=>{const{asStream:n,sudo:s,showExpanded:o,maxPages:i,...a}=r||{};const c=e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0;const u=await e.requester.get(t,{searchParams:a,sudo:s,asStream:n,signal:c});const l=e.camelize||false;if(n)return getStream(u,o);if(!Array.isArray(u.body))return getSingle(l,u,o);const p={sudo:s,showExpanded:o,maxPages:i,...a};return getManyMore(l,((t,r)=>e.requester.get(t,{...r,signal:c})),t,u,p)}}function post(){return async(e,t,{searchParams:r,isForm:n,sudo:o,showExpanded:i,...a}={})=>{const c=n?appendFormFromObject(a):a;const u=await e.requester.post(t,{searchParams:r,body:c,sudo:o,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});if(e.camelize)u.body=s.camelizeKeys(u.body);return packageResponse(u,i)}}function put(){return async(e,t,{searchParams:r,isForm:n,sudo:o,showExpanded:i,...a}={})=>{const c=n?appendFormFromObject(a):a;const u=await e.requester.put(t,{body:c,searchParams:r,sudo:o,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});if(e.camelize)u.body=s.camelizeKeys(u.body);return packageResponse(u,i)}}function patch(){return async(e,t,{searchParams:r,isForm:n,sudo:o,showExpanded:i,...a}={})=>{const c=n?appendFormFromObject(a):a;const u=await e.requester.patch(t,{body:c,searchParams:r,sudo:o,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});if(e.camelize)u.body=s.camelizeKeys(u.body);return packageResponse(u,i)}}function del(){return async(e,t,{sudo:r,showExpanded:n,searchParams:s,...o}={})=>{const i=await e.requester.delete(t,{body:o,searchParams:s,sudo:r,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});return packageResponse(i,n)}}var a={post:post,put:put,patch:patch,get:get,del:del};var c=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/cluster_agents`,t)}allTokens(e,t,r){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens`,r)}createToken(e,t,r,n){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens`,{name:r,...n})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}`,r)}showToken(e,t,r,n){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens/${r}`,n)}register(e,t,r){return a.post()(this,endpoint`projects/${e}/cluster_agents`,{name:t,...r})}removeToken(e,t,r,n){return a.del()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens/${r}`,n)}unregister(e,t,r){return a.del()(this,endpoint`projects/${e}/cluster_agents/${t}`,r)}};var u=class extends n.BaseResource{allMetricImages(e,t,r){return a.get()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images`,r)}editMetricImage(e,t,r,n){return a.put()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images/${r}`,n)}removeMetricImage(e,t,r,n){return a.del()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images/${r}`,n)}uploadMetricImage(e,t,r,n){return a.post()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images`,{isForm:true,file:[r.content,r.filename],...n})}};var l=class extends n.BaseResource{show(e){return a.get()(this,"application/appearence",e)}edit({logo:e,pwaIcon:t,...r}={}){if(e||t){const n={...r,isForm:true};if(e)n.logo=[e.content,e.filename];if(t)n.pwaIcon=[t.content,t.filename];return a.put()(this,"application/appearence",n)}return a.put()(this,"application/appearence",r)}};var p=class extends n.BaseResource{show(e){return a.get()(this,"application/plan_limits",e)}edit(e,t={}){const{ciPipelineSize:r,ciActiveJobs:n,ciActivePipelines:s,ciProjectSubscriptions:o,ciPipelineSchedules:i,ciNeedsSizeLimit:c,ciRegisteredGroupRunners:u,ciRegisteredProjectRunners:l,conanMaxFileSize:p,genericPackagesMaxFileSize:d,helmMaxFileSize:f,mavenMaxFileSize:h,npmMaxFileSize:g,nugetMaxFileSize:m,pypiMaxFileSize:y,terraformModuleMaxFileSize:v,storageSizeLimit:$,...b}=t;return a.put()(this,"application/plan_limits",{...b,searchParams:{planName:e,ciPipelineSize:r,ciActiveJobs:n,ciActivePipelines:s,ciProjectSubscriptions:o,ciPipelineSchedules:i,ciNeedsSizeLimit:c,ciRegisteredGroupRunners:u,ciRegisteredProjectRunners:l,conanMaxFileSize:p,genericPackagesMaxFileSize:d,helmMaxFileSize:f,mavenMaxFileSize:h,npmMaxFileSize:g,nugetMaxFileSize:m,pypiMaxFileSize:y,terraformModuleMaxFileSize:v,storageSizeLimit:$}})}};var d=class extends n.BaseResource{all(e){return a.get()(this,"applications",e)}create(e,t,r,n){return a.post()(this,"applications",{name:e,redirectUri:t,scopes:r,...n})}remove(e,t){return a.del()(this,`applications/${e}`,t)}};var f=class extends n.BaseResource{show(e){return a.get()(this,"application/settings",e)}edit(e){return a.put()(this,"application/settings",e)}};var h=class extends n.BaseResource{show(e){return a.get()(this,"application/statistics",e)}};function url({projectId:e,groupId:t}={}){let r="";if(e)r=endpoint`projects/${e}/`;else if(t)r=endpoint`groups/${t}/`;return`${r}audit_events`}var g=class extends n.BaseResource{all({projectId:e,groupId:t,...r}={}){const n=url({projectId:e,groupId:t});return a.get()(this,n,r)}show(e,{projectId:t,groupId:r,...n}={}){const s=url({projectId:t,groupId:r});return a.get()(this,`${s}/${e}`,n)}};var m=class extends n.BaseResource{show(e,t){return a.get()(this,"avatar",{email:e,...t})}};var y=class extends n.BaseResource{all(e){return a.get()(this,"broadcast_messages",e)}create(e){return a.post()(this,"broadcast_messages",e)}edit(e,t){return a.put()(this,`broadcast_messages/${e}`,t)}remove(e,t){return a.del()(this,`broadcast_messages/${e}`,t)}show(e,t){return a.get()(this,`broadcast_messages/${e}`,t)}};var v=class extends n.BaseResource{createAccessToken(e){return a.post()(this,"code_suggestions/tokens",e)}generateCompletion(e){return a.post()(this,"code_suggestions/completions",e)}};var $=class extends n.BaseResource{create(e,t){return a.post()(this,endpoint`projects/${e}/packages/composer`,t)}download(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/composer/archives/${t}`,{searchParams:{sha:r},...n})}showMetadata(e,t,r){let n;if(r&&r.sha){n=endpoint`groups/${e}/-/packages/composer/${t}$${r.sha}`}else{n=endpoint`groups/${e}/-/packages/composer/p2/${t}`}return a.get()(this,n,r)}showPackages(e,t,r){return a.get()(this,endpoint`groups/${e}/-/packages/composer/p/${t}`,r)}showBaseRepository(e,t){const r={...this};if(t&&t.composerVersion==="2"){r.headers["User-Agent"]="Composer/2"}return a.get()(r,endpoint`groups/${e}/-/packages/composer/packages`,t)}};function url2(e){return e?endpoint`projects/${e}/packages/conan/v1`:"packages/conan/v1"}var b=class extends n.BaseResource{authenticate({projectId:e,...t}={}){return a.get()(this,`${url2(e)}/users/authenticate`,t)}checkCredentials({projectId:e,...t}={}){const r=url2(e);return a.get()(this,`${r}/users/check_credentials`,t)}downloadPackageFile(e,t,r,n,s,o,i,c,{projectId:u,...l}={}){const p=url2(u);return a.get()(this,`${p}/conans/${e}/${t}/${r}/${n}/${o}/package/${s}/${i}/${c}`,l)}downloadRecipeFile(e,t,r,n,s,o,{projectId:i,...c}={}){const u=url2(i);return a.get()(this,`${u}/conans/${e}/${t}/${r}/${n}/${s}/export/${o}`,c)}showPackageUploadUrls(e,t,r,n,s,{projectId:o,...i}={}){const c=url2(o);return a.get()(this,`${c}/conans/${e}/${t}/${r}/${n}/packages/${s}/upload_urls`,i)}showPackageDownloadUrls(e,t,r,n,s,{projectId:o,...i}={}){const c=url2(o);return a.get()(this,`${c}/conans/${e}/${t}/${r}/${n}/packages/${s}/download_urls`,i)}showPackageManifest(e,t,r,n,s,{projectId:o,...i}={}){const c=url2(o);return a.get()(this,`${c}/conans/${e}/${t}/${r}/${n}/packages/${s}/digest`,i)}showPackageSnapshot(e,t,r,n,s,{projectId:o,...i}={}){const c=url2(o);return a.get()(this,`${c}/conans/${e}/${t}/${r}/${n}/packages/${s}`,i)}ping({projectId:e,...t}={}){return a.post()(this,`${url2(e)}/ping`,t)}showRecipeUploadUrls(e,t,r,n,{projectId:s,...o}={}){const i=url2(s);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${n}/upload_urls`,o)}showRecipeDownloadUrls(e,t,r,n,{projectId:s,...o}={}){const i=url2(s);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${n}/download_urls`,o)}showRecipeManifest(e,t,r,n,{projectId:s,...o}={}){const i=url2(s);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${n}/digest`,o)}showRecipeSnapshot(e,t,r,n,{projectId:s,...o}={}){const i=url2(s);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${n}`,o)}removePackageFile(e,t,r,n,{projectId:s,...o}={}){const i=url2(s);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${n}`,o)}search({projectId:e,...t}={}){const r=url2(e);return a.get()(this,`${r}/conans/search`,t)}uploadPackageFile(e,t,r,n,s,o,i,c,u){const l=url2();return a.get()(this,`${l}/files/${t}/${r}/${n}/${s}/${i}/package/${o}/${c}/${e.filename}`,{isForm:true,...u,file:[e.content,e.filename]})}uploadRecipeFile(e,t,r,n,s,o,i){const c=url2();return a.get()(this,`${c}/files/${t}/${r}/${n}/${s}/${o}/export/${e.filename}`,{isForm:true,...i,file:[e.content,e.filename]})}};var w=class extends n.BaseResource{create(e,t,r,{environmentId:n,clusterId:s,...o}={}){let i;if(n)i=endpoint`environments/${n}/metrics_dashboard/annotations`;else if(s)i=endpoint`clusters/${s}/metrics_dashboard/annotations`;else throw new Error("Missing required argument. Please supply a environmentId or a cluserId in the options parameter.");return a.post()(this,i,{dashboardPath:e,startingAt:t,description:r,...o})}};function url3({projectId:e,groupId:t}={}){if(e)return endpoint`/projects/${e}/packages/debian`;if(t)return endpoint`/groups/${t}/-/packages/debian`;throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}var _=class extends n.BaseResource{downloadBinaryFileIndex(e,t,r,{projectId:n,groupId:s,...o}){const i=url3({projectId:n,groupId:s});return a.get()(this,`${i}/dists/${e}/${t}/binary-${r}/Packages`,o)}downloadDistributionReleaseFile(e,{projectId:t,groupId:r,...n}){const s=url3({projectId:t,groupId:r});return a.get()(this,`${s}/dists/${e}/Release`,n)}downloadSignedDistributionReleaseFile(e,{projectId:t,groupId:r,...n}){const s=url3({projectId:t,groupId:r});return a.get()(this,`${s}/dists/${e}/InRelease`,n)}downloadReleaseFileSignature(e,{projectId:t,groupId:r,...n}){const s=url3({projectId:t,groupId:r});return a.get()(this,`${s}/dists/${e}/Release.gpg`,n)}downloadPackageFile(e,t,r,n,s,o,i){return a.get()(this,endpoint`projects/${e}/packages/debian/pool/${t}/${r}/${n}/${s}/${o}`,i)}uploadPackageFile(e,t,r){return a.put()(this,endpoint`projects/${e}/packages/debian/${t.filename}`,{isForm:true,...r,file:[t.content,t.filename]})}};var S=class extends n.BaseResource{remove(e,t){return a.post()(this,`groups/${e}/dependency_proxy/cache`,t)}};var A=class extends n.BaseResource{all({projectId:e,userId:t,...r}={}){let n;if(e){n=endpoint`projects/${e}/deploy_keys`}else if(t){n=endpoint`users/${t}/project_deploy_keys`}else{n="deploy_keys"}return a.get()(this,n,r)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/deploy_keys`,{title:t,key:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/deploy_keys/${t}`,r)}enable(e,t,r){return a.post()(this,endpoint`projects/${e}/deploy_keys/${t}/enable`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/deploy_keys/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/deploy_keys/${t}`,r)}};var j=class extends n.BaseResource{all({projectId:e,groupId:t,...r}={}){let n;if(e)n=endpoint`projects/${e}/deploy_tokens`;else if(t)n=endpoint`groups/${t}/deploy_tokens`;else n="deploy_tokens";return a.get()(this,n,r)}create(e,t,{projectId:r,groupId:n,...s}={}){let o;if(r)o=endpoint`projects/${r}/deploy_tokens`;else if(n)o=endpoint`groups/${n}/deploy_tokens`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.post()(this,o,{name:e,scopes:t,...s})}remove(e,{projectId:t,groupId:r,...n}={}){let s;if(t)s=endpoint`projects/${t}/deploy_tokens/${e}`;else if(r)s=endpoint`groups/${r}/deploy_tokens/${e}`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.del()(this,s,n)}show(e,{projectId:t,groupId:r,...n}={}){let s;if(t)s=endpoint`projects/${t}/deploy_tokens/${e}`;else if(r)s=endpoint`groups/${r}/deploy_tokens/${e}`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.get()(this,s,n)}};var x=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/access_requests`,t)}request(e,t){return a.post()(this,endpoint`${e}/access_requests`,t)}approve(e,t,r){return a.post()(this,endpoint`${e}/access_requests/${t}/approve`,r)}deny(e,t,r){return a.del()(this,endpoint`${e}/access_requests/${t}`,r)}};var R=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/access_tokens`,t)}create(e,t,r,n){return a.post()(this,endpoint`${e}/access_tokens`,{name:t,scopes:r,...n})}revoke(e,t,r){return a.del()(this,endpoint`${e}/access_tokens/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/access_tokens/${t}`,r)}};function url4(e,t,r,n){const[s,o]=[e,r].map(encodeURIComponent);const i=[s,t,o];i.push("award_emoji");if(n)i.push(n);return i.join("/")}var k=class extends n.BaseResource{resourceType2;constructor(e,t,r){super({prefixUrl:e,...r});this.resourceType2=t}all(e,t,r){return a.get()(this,url4(e,this.resourceType2,t),r)}award(e,t,r,n){return a.post()(this,url4(e,this.resourceType2,t),{name:r,...n})}remove(e,t,r,n){return a.del()(this,url4(e,this.resourceType2,t,r),n)}show(e,t,r,n){return a.get()(this,url4(e,this.resourceType2,t,r),n)}};function url5(e,t,r,n,s){const[o,i]=[e,r].map(encodeURIComponent);const a=[o,t,i];a.push("notes");a.push(n);a.push("award_emoji");if(s)a.push(s);return a.join("/")}var I=class extends n.BaseResource{resourceType;constructor(e,t){super({prefixUrl:"projects",...t});this.resourceType=e}all(e,t,r,n){return a.get()(this,url5(e,this.resourceType,t,r),n)}award(e,t,r,n,s){return a.post()(this,url5(e,this.resourceType,t,r),{name:n,...s})}remove(e,t,r,n,s){return a.del()(this,url5(e,this.resourceType,t,r,n),s)}show(e,t,r,n,s){return a.get()(this,url5(e,this.resourceType,t,r,n),s)}};var P=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r,n){return a.post()(this,endpoint`${e}/badges`,{linkUrl:t,imageUrl:r,...n})}all(e,t){return a.get()(this,endpoint`${e}/badges`,t)}edit(e,t,r){return a.put()(this,endpoint`${e}/badges/${t}`,r)}preview(e,t,r,n){return a.get()(this,endpoint`${e}/badges/render`,{linkUrl:t,imageUrl:r,...n})}remove(e,t,r){return a.del()(this,endpoint`${e}/badges/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/badges/${t}`,r)}};var C=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/custom_attributes`,t)}remove(e,t,r){return a.del()(this,endpoint`${e}/custom_attributes/${t}`,r)}set(e,t,r,n){return a.put()(this,endpoint`${e}/custom_attributes/${t}`,{value:r,...n})}show(e,t,r){return a.get()(this,endpoint`${e}/custom_attributes/${t}`,r)}};var T=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t,r){return a.get()(this,endpoint`${e}/dora/metrics`,{metric:t,...r})}};var O=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}addNote(e,t,r,n,s,o){return a.post()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}/notes`,{...o,body:s,noteId:n})}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions`,r)}create(e,t,r,{position:n,...s}={}){const o={...s,body:r};if(n){Object.assign(o,reformatObjectOptions(n,"position",true));o.isForm=true}return a.post()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions`,o)}editNote(e,t,r,n,s){return a.put()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}/notes/${n}`,s)}removeNote(e,t,r,n,s){return a.del()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}/notes/${n}`,s)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}`,n)}};var M=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/boards`,t)}allLists(e,t,r){return a.get()(this,endpoint`${e}/boards/${t}/lists`,r)}create(e,t,r){return a.post()(this,endpoint`${e}/boards`,{name:t,...r})}createList(e,t,r){return a.post()(this,endpoint`${e}/boards/${t}/lists`,r)}edit(e,t,r){return a.put()(this,endpoint`${e}/boards/${t}`,r)}editList(e,t,r,n,s){return a.put()(this,endpoint`${e}/boards/${t}/lists/${r}`,{position:n,...s})}remove(e,t,r){return a.del()(this,endpoint`${e}/boards/${t}`,r)}removeList(e,t,r,n){return a.del()(this,endpoint`${e}/boards/${t}/lists/${r}`,n)}show(e,t,r){return a.get()(this,endpoint`${e}/boards/${t}`,r)}showList(e,t,r,n){return a.get()(this,endpoint`${e}/boards/${t}/lists/${r}`,n)}};var N=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/labels`,t)}create(e,t,r,n){return a.post()(this,endpoint`${e}/labels`,{name:t,color:r,...n})}edit(e,t,r){if(!r?.newName&&!r?.color)throw new Error("Missing required argument. Please supply a color or a newName in the options parameter.");return a.put()(this,endpoint`${e}/labels/${t}`,r)}promote(e,t,r){return a.put()(this,endpoint`${e}/labels/${t}/promote`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/labels/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/labels/${t}`,r)}subscribe(e,t,r){return a.post()(this,endpoint`${e}/issues/${t}/subscribe`,r)}unsubscribe(e,t,r){return a.post()(this,endpoint`${e}/issues/${t}/unsubscribe`,r)}};var L=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r,n){return a.post()(this,endpoint`${e}/members`,{userId:String(t),accessLevel:r,...n})}all(e,{includeInherited:t,...r}={}){let n=endpoint`${e}/members`;if(t)n+="/all";return a.get()(this,n,r)}edit(e,t,r,n){return a.put()(this,endpoint`${e}/members/${t}`,{accessLevel:r,...n})}show(e,t,{includeInherited:r,...n}={}){const[s,o]=[e,t].map(encodeURIComponent);const i=[s,"members"];if(r)i.push("all");i.push(o);return a.get()(this,i.join("/"),n)}remove(e,t,r){return a.del()(this,endpoint`${e}/members/${t}`,r)}};var B=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/milestones`,t)}allAssignedIssues(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}/issues`,r)}allAssignedMergeRequests(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}/merge_requests`,r)}allBurndownChartEvents(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}/burndown_events`,r)}create(e,t,r){return a.post()(this,endpoint`${e}/milestones`,{title:t,...r})}edit(e,t,r){return a.put()(this,endpoint`${e}/milestones/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/milestones/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}`,r)}};var q=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/notes`,r)}create(e,t,r,n){return a.post()(this,endpoint`${e}/${this.resource2Type}/${t}/notes`,{body:r,...n})}edit(e,t,r,n){return a.put()(this,endpoint`${e}/${this.resource2Type}/${t}/notes/${r}`,n)}remove(e,t,r,n){return a.del()(this,endpoint`${e}/${this.resource2Type}/${t}/notes/${r}`,n)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/notes/${r}`,n)}};var G=class extends n.BaseResource{constructor(e,t){super({prefixUrl:["templates",e].join("/"),...t})}all(e){process.emitWarning('This API will be deprecated as of Gitlabs v5 API. Please make the switch to "ProjectTemplates".',"DeprecationWarning");return a.get()(this,"",e)}show(e,t){process.emitWarning('This API will be deprecated as of Gitlabs v5 API. Please make the switch to "ProjectTemplates".',"DeprecationWarning");return a.get()(this,encodeURIComponent(e),t)}};var U=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/variables`,t)}create(e,t,r,n){return a.post()(this,endpoint`${e}/variables`,{key:t,value:r,...n})}edit(e,t,r,n){return a.put()(this,endpoint`${e}/variables/${t}`,{value:r,...n})}show(e,t,r){return a.get()(this,endpoint`${e}/variables/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/variables/${t}`,r)}};var D=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/wikis`,t)}create(e,t,r,n){return a.post()(this,endpoint`${e}/wikis`,{content:t,title:r,...n})}edit(e,t,r){return a.put()(this,endpoint`${e}/wikis/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/wikis/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/wikis/${t}`,r)}uploadAttachment(e,t,r){return a.post()(this,endpoint`${e}/wikis/attachments`,{...r,isForm:true,file:[t.content,t.filename]})}};var H=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r){return a.post()(this,endpoint`${e}/hooks`,{url:t,...r})}all(e,t){return a.get()(this,endpoint`${e}/hooks`,t)}edit(e,t,r,n){return a.put()(this,endpoint`${e}/hooks/${t}`,{url:r,...n})}remove(e,t,r){return a.del()(this,endpoint`${e}/hooks/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/hooks/${t}`,r)}};var K=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}create(e,t){return a.post()(this,endpoint`${e}/push_rule`,t)}edit(e,t){return a.put()(this,endpoint`${e}/push_rule`,t)}remove(e,t){return a.del()(this,endpoint`${e}/push_rule`,t)}show(e,t){return a.get()(this,endpoint`${e}/push_rule`,t)}};var Y=class extends n.BaseResource{resourceType;resourceTypeSingular;constructor(e,t){super(t);this.resourceType=e;this.resourceTypeSingular=e.substring(0,e.length-1)}all(e){const t=e?.[`${this.resourceTypeSingular}Id`];const r=t?endpoint`${this.resourceType}/${t}/repository_storage_moves`:`${this.resourceTypeSingular}_repository_storage_moves`;return a.get()(this,r,e)}show(e,t){const r=t?.[`${this.resourceTypeSingular}Id`];const n=r?endpoint`${this.resourceType}/${r}/repository_storage_moves`:`${this.resourceTypeSingular}_repository_storage_moves`;return a.get()(this,`${n}/${e}`,t)}schedule(e,t){const r=t?.[`${this.resourceTypeSingular}Id`];const n=r?endpoint`${this.resourceType}/${r}/repository_storage_moves`:`${this.resourceTypeSingular}_repository_storage_moves`;return a.post()(this,n,{sourceStorageName:e,...t})}};var W=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r){if(!r?.email&&!r?.userId)throw new Error("Missing required argument. Please supply a email or a userId in the options parameter.");return a.post()(this,endpoint`${e}/invitations`,{accessLevel:t,...r})}all(e,t){return a.get()(this,endpoint`${e}/invitations`,t)}edit(e,t,r){return a.put()(this,endpoint`${e}/invitations/${t}`,r)}remove(e,t,r){return a.put()(this,endpoint`${e}/invitations/${t}`,r)}};var z=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/iterations`,t)}};var Q=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,`${e}/protected_environments`,t)}create(e,t,r,n){return a.post()(this,`${e}/protected_environments`,{name:t,deployAccessLevel:r,...n})}edit(e,t,r){return a.put()(this,`${e}/protected_environments/${t}`,r)}show(e,t,r){return a.get()(this,`${e}/protected_environments/${t}`,r)}remove(e,t,r){return a.del()(this,`${e}/protected_environments/${t}`,r)}};var V=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_iteration_events`,r)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_iteration_events/${r}`,n)}};var J=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_label_events`,r)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_label_events/${r}`,n)}};var X=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_milestone_events`,r)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_milestone_events/${r}`,n)}};var Z=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_state_events`,r)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_state_events/${r}`,n)}};var ee=class extends G{constructor(e){super("dockerfiles",e)}};var te=class extends n.BaseResource{all({projectId:e,userId:t,...r}={}){let n;if(e)n=endpoint`projects/${e}/events`;else if(t)n=endpoint`users/${t}/events`;else n="events";return a.get()(this,n,r)}};var re=class extends n.BaseResource{all(e){return a.get()(this,"experiments",e)}};var ne=class extends n.BaseResource{all(e){return a.get()(this,"geo_nodes",e)}allStatuses(e){return a.get()(this,"geo_nodes/statuses",e)}allFailures(e){return a.get()(this,"geo_nodes/current/failures",e)}create(e,t,r){return a.post()(this,"geo_nodes",{name:e,url:t,...r})}edit(e,t){return a.put()(this,`geo_nodes/${e}`,t)}repair(e,t){return a.post()(this,`geo_nodes/${e}/repair`,t)}remove(e,t){return a.del()(this,`geo_nodes/${e}`,t)}show(e,t){return a.get()(this,`geo_nodes/${e}`,t)}showStatus(e,t){return a.get()(this,`geo_nodes/${e}/status`,t)}};var se=class extends n.BaseResource{all(e){return a.get()(this,"geo_sites",e)}allStatuses(e){return a.get()(this,"geo_sites/statuses",e)}allFailures(e){return a.get()(this,"geo_sites/current/failures",e)}create(e,t,r){return a.post()(this,"geo_sites",{name:e,url:t,...r})}edit(e,t){return a.put()(this,`geo_sites/${e}`,t)}repair(e,t){return a.post()(this,`geo_sites/${e}/repair`,t)}remove(e,t){return a.del()(this,`geo_sites/${e}`,t)}show(e,t){return a.get()(this,`geo_sites/${e}`,t)}showStatus(e,t){return a.get()(this,`geo_sites/${e}/status`,t)}};var oe=class extends G{constructor(e){super("gitignores",e)}};var ie=class extends G{constructor(e){super("gitlab_ci_ymls",e)}};var ae=class extends n.BaseResource{importGithubRepository(e,t,r,n){return a.post()(this,"import/github",{personalAccessToken:e,repoId:t,targetNamespace:r,...n})}cancelGithubRepositoryImport(e,t){return a.post()(this,"import/github/cancel",{projectId:e,...t})}importGithubGists(e,t){return a.post()(this,"import/github/gists",{personalAccessToken:e,...t})}importBitbucketServerRepository(e,t,r,n,s,o){return a.post()(this,"import/bitbucket_server",{bitbucketServerUrl:e,bitbucketServerUsername:t,personalAccessToken:r,bitbucketServerProject:n,bitbucketServerRepo:s,...o})}};var ce=class extends n.BaseResource{all(e){return a.get()(this,"admin/ci/variables",e)}create(e,t,r){return a.post()(this,"admin/ci/variables",{key:e,value:t,...r})}edit(e,t,r){return a.put()(this,endpoint`admin/ci/variables/${e}`,{value:t,...r})}show(e,t){return a.get()(this,endpoint`admin/ci/variables/${e}`,t)}remove(e,t){return a.get()(this,endpoint`admin/ci/variables/${e}`,t)}};var ue=class extends n.BaseResource{show({keyId:e,fingerprint:t,...r}={}){let n;if(e)n=`keys/${e}`;else if(t)n=`keys?fingerprint=${t}`;else{throw new Error("Missing required argument. Please supply a fingerprint or a keyId in the options parameter")}return a.get()(this,n,r)}};var le=class extends n.BaseResource{add(e,t){return a.post()(this,"license",{searchParams:{license:e},...t})}all(e){return a.get()(this,"licenses",e)}show(e){return a.get()(this,"license",e)}remove(e,t){return a.del()(this,`license/${e}`,t)}recalculateBillableUsers(e,t){return a.put()(this,`license/${e}/refresh_billable_users`,t)}};var pe=class extends G{constructor(e){super("Licenses",e)}};var de=class extends n.BaseResource{check(e,t){return a.get()(this,endpoint`projects/${e}/ci/lint`,t)}lint(e,t,r){return a.post()(this,endpoint`projects/${e}/ci/lint`,{...r,content:t})}};var fe=class extends n.BaseResource{render(e,t){return a.post()(this,"markdown",{text:e,...t})}};var he=class extends n.BaseResource{downloadPackageFile(e,t,{projectId:r,groupId:n,...s}){let o=endpoint`packages/maven/${e}/${t}`;if(r)o=endpoint`projects/${r}/${o}`;else if(n)o=endpoint`groups/${n}/-/${o}`;return a.get()(this,o,s)}uploadPackageFile(e,t,r,n){return a.put()(this,endpoint`projects/${e}/packages/maven/${t}/${r.filename}`,{isForm:true,...n,file:[r.content,r.filename]})}};var ge=class extends n.BaseResource{show(e){return a.get()(this,"metadata",e)}};var me=class extends n.BaseResource{all(e){return a.get()(this,"bulk_imports",e)}create(e,t,r){return a.post()(this,"bulk_imports",{configuration:e,entities:t,...r})}allEntities({bulkImportId:e,...t}={}){const r=e?endpoint`bulk_imports/${e}/entities`:"bulk_imports/entities";return a.get()(this,r,t)}show(e,t){return a.get()(this,`bulk_imports/${e}`,t)}showEntity(e,t,r){return a.get()(this,`bulk_imports/${e}/entities/${t}`,r)}};var ye=class extends n.BaseResource{all(e){return a.get()(this,"namespaces",e)}exists(e,t){return a.get()(this,endpoint`namespaces/${e}/exists`,t)}show(e,t){return a.get()(this,endpoint`namespaces/${e}`,t)}};function url6({projectId:e,groupId:t}={}){let r="";if(e)r=endpoint`projects/${e}/`;if(t)r=endpoint`groups/${t}/`;return`${r}notification_settings`}var ve=class extends n.BaseResource{edit({groupId:e,projectId:t,...r}={}){const n=url6({groupId:e,projectId:t});return a.put()(this,n,r)}show({groupId:e,projectId:t,...r}={}){const n=url6({groupId:e,projectId:t});return a.get()(this,n,r)}};function url7(e){return e?endpoint`/projects/${e}/packages/npm`:"packages/npm"}var $e=class extends n.BaseResource{downloadPackageFile(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/npm/${t}/-/${r}`,n)}removeDistTag(e,t,r){const n=url7(r?.projectId);return a.del()(this,`${n}/-/package/${e}/dist-tags/${t}`,r)}setDistTag(e,t,r){const n=url7(r?.projectId);return a.put()(this,`${n}/-/package/${e}/dist-tags/${t}`,r)}showDistTags(e,t){const r=url7(t?.projectId);return a.get()(this,`${r}/-/package/${e}/dist-tags`,t)}showMetadata(e,t){const r=url7(t?.projectId);return a.get()(this,`${r}/${e}`,t)}uploadPackageFile(e,t,r,n,s){return a.put()(this,endpoint`projects/${e}/packages/npm/${t}`,{...s,versions:r,...n})}};function url8({projectId:e,groupId:t}={}){if(e)return endpoint`/projects/${e}/packages/nuget`;if(t)return endpoint`/groups/${t}/-/packages/nuget`;throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}var be=class extends n.BaseResource{downloadPackageFile(e,t,r,n,s){return a.get()(this,endpoint`projects/${e}/packages/nuget/download/${t}/${r}/${n}`,s)}search(e,{projectId:t,groupId:r,...n}){const s=url8({projectId:t,groupId:r});return a.get()(this,`${s}/query`,{q:e,...n})}showMetadata(e,{projectId:t,groupId:r,...n}){const s=url8({projectId:t,groupId:r});return a.get()(this,`${s}/metadata/${e}/index`,n)}showPackageIndex(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/nuget/download/${t}/index`,r)}showServiceIndex({projectId:e,groupId:t,...r}){const n=url8({projectId:e,groupId:t});return a.get()(this,`${n}/index`,r)}showVersionMetadata(e,t,{projectId:r,groupId:n,...s}){const o=url8({projectId:r,groupId:n});return a.get()(this,`${o}/metadata/${e}/${t}`,s)}uploadPackageFile(e,t,r,n,s){return a.put()(this,endpoint`projects/${e}/packages/nuget`,{isForm:true,...s,packageName:t,packageVersion:r,file:[n.content,n.filename]})}uploadSymbolPackage(e,t,r,n,s){return a.put()(this,endpoint`projects/${e}/packages/nuget/symbolpackage`,{isForm:true,...s,packageName:t,packageVersion:r,file:[n.content,n.filename]})}};var we=class extends n.BaseResource{all(e){return a.get()(this,"personal_access_tokens",e)}create(e,t,r,n){return a.post()(this,endpoint`users/${e}/personal_access_tokens`,{name:t,scopes:r,...n})}remove({tokenId:e,...t}={}){const r=e?endpoint`personal_access_tokens/${e}`:"personal_access_tokens/self";return a.del()(this,r,t)}rotate(e,t){return a.post()(this,endpoint`personal_access_tokens/${e}/rotate`,t)}show({tokenId:e,...t}={}){const r=e?endpoint`personal_access_tokens/${e}`:"personal_access_tokens/self";return a.get()(this,r,t)}};var _e=class extends n.BaseResource{downloadPackageFile(e,t,{projectId:r,groupId:n,...s}={}){let o;if(r){o=endpoint`projects/${r}/packages/pypi/files/${e}/${t}`}else if(n){o=endpoint`groups/${n}/packages/pypi/files/${e}/${t}`}else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}return a.get()(this,o,s)}showPackageDescriptor(e,{projectId:t,groupId:r,...n}){let s;if(t){s=endpoint`projects/${t}/packages/pypi/simple/${e}`}else if(r){s=endpoint`groups/${r}/packages/pypi/simple/${e}`}else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}return a.get()(this,s,n)}uploadPackageFile(e,t,r){return a.put()(this,endpoint`projects/${e}/packages/pypi`,{...r,isForm:true,file:[t.content,t.filename]})}};var Se=class extends n.BaseResource{allDependencies(e,t){return a.get()(this,endpoint`projects/${e}/packages/rubygems/api/v1/dependencies`,t)}downloadGemFile(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/rubygems/gems/${t}`,r)}uploadGemFile(e,t,r){return a.post()(this,`projects/${e}/packages/rubygems/api/v1/gems`,{isForm:true,...r,file:[t.content,t.filename]})}};var Ae=class extends n.BaseResource{all(e,t,r){const{projectId:n,groupId:s,...o}=r||{};let i;if(n)i=endpoint`projects/${n}/`;else if(s)i=endpoint`groups/${s}/`;else i="";return a.get()(this,`${i}search`,{scope:e,search:t,...o})}};var Ee=class extends n.BaseResource{all(e){return a.get()(this,"admin/search/migrations",e)}show(e,t){return a.get()(this,endpoint`admin/search/migrations/${e}`,t)}};var je=class extends n.BaseResource{create(e){return a.post()(this,endpoint`service_accounts`,e)}};var xe=class extends n.BaseResource{showMetricDefinitions(e){return a.get()(this,"usage_data/metric_definitions",e)}showServicePingSQLQueries(e){return a.get()(this,"usage_data/queries",e)}showUsageDataNonSQLMetrics(e){return a.get()(this,"usage_data/non_sql_metrics",e)}};var Re=class extends n.BaseResource{queueMetrics(){return a.get()(this,"sidekiq/queue_metrics")}processMetrics(){return a.get()(this,"sidekiq/process_metrics")}jobStats(){return a.get()(this,"sidekiq/job_stats")}compoundMetrics(){return a.get()(this,"sidekiq/compound_metrics")}};var ke=class extends n.BaseResource{remove(e,t){return a.get()(this,endpoint`admin/sidekiq/queues/${e}`,t)}};var Ie=class extends Y{constructor(e){super("snippets",e)}};var Pe=class extends n.BaseResource{all({public:e,...t}={}){const r=e?"snippets/public":"snippets";return a.get()(this,r,t)}create(e,t){return a.post()(this,"snippets",{title:e,...t})}edit(e,t){return a.put()(this,`snippets/${e}`,t)}remove(e,t){return a.del()(this,`snippets/${e}`,t)}show(e,t){return a.get()(this,`snippets/${e}`,t)}showContent(e,t){return a.get()(this,`snippets/${e}/raw`,t)}showRepositoryFileContent(e,t,r,n){return a.get()(this,endpoint`snippets/${e}/files/${t}/${r}/raw`,n)}showUserAgentDetails(e,t){return a.get()(this,`snippets/${e}/user_agent_detail`,t)}};var Ce=class extends n.BaseResource{edit(e,t){return a.put()(this,`suggestions/${e}/apply`,t)}editBatch(e,t){return a.put()(this,`suggestions/batch_apply`,{...t,ids:e})}};var Te=class extends n.BaseResource{all(e){return a.get()(this,"hooks",e)}add(e,t){return this.create(e,t)}create(e,t){return a.post()(this,"hooks",{url:e,...t})}test(e,t){return a.post()(this,`hooks/${e}`,t)}remove(e,t){return a.del()(this,`hooks/${e}`,t)}show(e,t){return a.post()(this,`hooks/${e}`,t)}};var Oe=class extends n.BaseResource{all(e){return a.get()(this,"todos",e)}done({todoId:e,...t}={}){let r="todos";if(e)r+=`/${e}`;return a.post()(this,`${r}/mark_as_done`,t)}};var Me=class extends n.BaseResource{all(e){return a.get()(this,"topics",e)}create(e,{avatar:t,...r}={}){const n={name:e,...r};if(t){n.isForm=true;n.file=[t.content,t.filename]}return a.post()(this,"topics",n)}edit(e,{avatar:t,...r}={}){const n={...r};if(t){n.isForm=true;n.file=[t.content,t.filename]}return a.put()(this,`topics/${e}`,n)}merge(e,t,r){return a.post()(this,`topics/merge`,{sourceTopicId:e,targetTopicId:t,...r})}remove(e,t){return a.del()(this,`topics/${e}`,t)}show(e,t){return a.get()(this,`topics/${e}`,t)}};var Ne=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/repository/branches`,t)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/repository/branches`,{branch:t,ref:r,...n})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/repository/branches/${t}`,r)}removeMerged(e,t){return a.del()(this,endpoint`projects/${e}/repository/merged_branches`,t)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/branches/${t}`,r)}};var Le=class extends O{constructor(e){super("projects","repository/commits",e)}};var Fe=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/repository/commits`,t)}allComments(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/comments`,r)}allDiscussions(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/discussions`,r)}allMergeRequests(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/merge_requests`,r)}allReferences(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/refs`,r)}allStatuses(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/statuses`,r)}cherryPick(e,t,r,n){return a.post()(this,endpoint`projects/${e}/repository/commits/${t}/cherry_pick`,{branch:r,...n})}create(e,t,r,n=[],s={}){return a.post()(this,endpoint`projects/${e}/repository/commits`,{branch:t,commitMessage:r,actions:n,...s})}createComment(e,t,r,n){return a.post()(this,endpoint`projects/${e}/repository/commits/${t}/comments`,{note:r,...n})}editStatus(e,t,r,n){return a.post()(this,endpoint`projects/${e}/statuses/${t}`,{state:r,...n})}revert(e,t,r,n){return a.post()(this,endpoint`projects/${e}/repository/commits/${t}/revert`,{...n,branch:r})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}`,r)}showDiff(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/diff`,r)}showGPGSignature(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/signature`,r)}};var Be=class extends n.BaseResource{allRepositories({groupId:e,projectId:t,...r}={}){let n;if(e)n=endpoint`groups/${e}/registry/repositories`;else if(t)n=endpoint`projects/${t}/registry/repositories`;else throw new Error("Missing required argument. Please supply a groupId or a projectId in the options parameter.");return a.get()(this,n,r)}allTags(e,t,r){return a.get()(this,endpoint`projects/${e}/registry/repositories/${t}/tags`,r)}editRegistryVisibility(e,t){return a.get()(this,endpoint`projects/${e}`,t)}removeRepository(e,t,r){return a.del()(this,endpoint`projects/${e}/registry/repositories/${t}`,r)}removeTag(e,t,r,n){return a.del()(this,endpoint`projects/${e}/registry/repositories/${t}/tags/${r}`,n)}removeTags(e,t,r,n){return a.del()(this,endpoint`projects/${e}/registry/repositories/${t}/tags`,{nameRegexDelete:r,...n})}showRepository(e,t){return a.get()(this,endpoint`registry/repositories/${e}`,t)}showTag(e,t,r,n){return a.get()(this,endpoint`projects/${e}/registry/repositories/${t}/tags/${r}`,n)}};var qe=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/deployments`,t)}allMergeRequests(e,t,r){return a.get()(this,endpoint`projects/${e}/deployments/${t}/merge_requests`,r)}create(e,t,r,n,s,o){return a.post()(this,endpoint`projects/${e}/deployments`,{environment:t,sha:r,ref:n,tag:s,...o})}edit(e,t,r,n){return a.put()(this,endpoint`projects/${e}/deployments/${t}`,{...n,status:r})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/deployments/${t}`,r)}setApproval(e,t,r,n){return a.post()(this,endpoint`projects/${e}/deployments/${t}/approval`,{...n,status:r})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/deployments/${t}`,r)}};var Ge=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/environments`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/environments`,{name:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/environments/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/environments/${t}`,r)}removeReviewApps(e,t){return a.del()(this,endpoint`projects/${e}/environments/review_apps`,t)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/environments/${t}`,r)}stop(e,t,r){return a.post()(this,endpoint`projects/${e}/environments/${t}/stop`,r)}stopStale(e,t,r){return a.post()(this,endpoint`projects/${e}/environments/stop_stale`,{searchParams:{before:t},...r})}};var Ue=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/error_tracking/client_keys`,t)}create(e,t){return a.post()(this,endpoint`projects/${e}/error_tracking/client_keys`,t)}remove(e,t){return a.del()(this,endpoint`projects/${e}/error_tracking/client_keys`,t)}};var De=class extends n.BaseResource{create(e,t,r,n){return a.put()(this,endpoint`projects/${e}/error_tracking/settings`,{searchParams:{active:t,integrated:r},...n})}edit(e,t,{integrated:r,...n}={}){return a.patch()(this,endpoint`projects/${e}/error_tracking/settings`,{searchParams:{active:t,integrated:r},...n})}show(e,t){return a.get()(this,endpoint`projects/${e}/error_tracking/settings`,t)}};var He=class extends n.BaseResource{all(e,t){const{mergerequestIId:r,...n}=t||{};let s=endpoint`projects/${e}`;if(r){s+=endpoint`/merge_requests/${r}/status_checks`}else{s+="/external_status_checks"}return a.get()(this,s,n)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/external_status_checks`,{name:t,externalUrl:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/external_status_checks/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/external_status_checks/${t}`,r)}set(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/status_check_responses`,{sha:r,externalStatusCheckId:n,...s})}};var Ke=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/feature_flags`,t)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/feature_flags`,{name:t,version:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/feature_flags/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/feature_flags/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/feature_flags/${t}`,r)}};var Ye=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/feature_flags_user_lists`,t)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/feature_flags_user_lists`,{name:t,userXids:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/feature_flags_user_lists/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/feature_flags_user_lists/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/feature_flags_user_lists/${t}`,r)}};var We=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/freeze_periods`,t)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/freeze_periods`,{freezeStart:t,freezeEnd:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/freeze_periods/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/freeze_periods/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/freeze_periods/${t}`,r)}};var ze=class extends n.BaseResource{remove(e,t){return a.del()(this,endpoint`projects/${e}/pages`,t)}};var Qe=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/list`,r)}showVersionMetadata(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/${r}.info`,n)}downloadModuleFile(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/${r}.mod`,n)}downloadModuleSource(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/${r}.zip`,n)}};var Ve=class extends n.BaseResource{downloadChartIndex(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/helm/${t}/index.yaml`,r)}downloadChart(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/helm/${t}/charts/${r}.tgz`,n)}import(e,t,r,n){return a.post()(this,endpoint`projects/${e}/packages/helm/api/${t}/charts`,{isForm:true,...n,chart:[r.content,r.filename]})}};var Je=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/integrations`,t)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/integrations/${t}`,r)}disable(e,t,r){return a.del()(this,endpoint`projects/${e}/integrations/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/integrations/${t}`,r)}};var Xe=class extends k{constructor(e){super("projects","issues",e)}};var Ze=class extends O{constructor(e){super("projects","issues",e)}};var et=class extends V{constructor(e){super("projects","issues",e)}};var tt=class extends J{constructor(e){super("projects","issues",e)}};var rt=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/links`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/issues/${t}/links`,{targetProjectId:r,targetIssueIid:n,...s})}remove(e,t,r,n){return a.del()(this,endpoint`projects/${e}/issues/${t}/links/${r}`,n)}};var nt=class extends X{constructor(e){super("projects","issues",e)}};var st=class extends I{constructor(e){super("issues",e)}};var ot=class extends q{constructor(e){super("projects","issues",e)}};var it=class extends n.BaseResource{addSpentTime(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/add_spent_time`,{duration:r,...n})}addTimeEstimate(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/time_estimate`,{duration:r,...n})}all({projectId:e,groupId:t,...r}={}){let n;if(e)n=endpoint`projects/${e}/issues`;else if(t)n=endpoint`groups/${t}/issues`;else n="issues";return a.get()(this,n,r)}allMetricImages(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/metric_images`,r)}allParticipants(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/participants`,r)}allRelatedMergeRequests(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/related_merge_requests`,r)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/issues`,{...r,title:t})}createTodo(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/todo`,r)}clone(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/clone`,{toProjectId:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/issues/${t}`,r)}editMetricImage(e,t,r,n){return a.put()(this,endpoint`projects/${e}/issues/${t}/metric_images/${r}`,n)}move(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/move`,{toProjectId:r,...n})}promote(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/notes`,{searchParams:{body:`${r} \n /promote`},...n})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/issues/${t}`,r)}removeMetricImage(e,t,r,n){return a.del()(this,endpoint`projects/${e}/issues/${t}/metric_images/${r}`,n)}reorder(e,t,r){return a.put()(this,endpoint`projects/${e}/issues/${t}/reorder`,r)}resetSpentTime(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/reset_spent_time`,r)}resetTimeEstimate(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/reset_time_estimate`,r)}show(e,{projectId:t,...r}={}){const n=t?endpoint`projects/${t}/issues/${e}`:`issues/${e}`;return a.get()(this,n,r)}subscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/subscribe`,r)}allClosedByMergeRequestst(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/closed_by`,r)}showTimeStats(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/time_stats`,r)}unsubscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/unsubscribe`,r)}uploadMetricImage(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/metric_images`,{isForm:true,...n,file:[r.content,r.filename]})}showUserAgentDetails(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/user_agent_details`,r)}};var at=class extends n.BaseResource{all({projectId:e,groupId:t,...r}={}){let n;if(e)n=endpoint`projects/${e}/issues_statistics`;else if(t)n=endpoint`groups/${t}/issues_statistics`;else n="issues_statistics";return a.get()(this,n,r)}};var ct=class extends Z{constructor(e){super("projects","issues",e)}};var ut=class extends Z{constructor(e){super("projects","issues",e)}};function generateDownloadPathForJob(e,t,r){let n=endpoint`projects/${e}/jobs/${t}/artifacts`;if(r)n+=`/${r}`;return n}function generateDownloadPath(e,t,r){let n=endpoint`projects/${e}/jobs/artifacts/${t}`;if(r){n+=endpoint`/raw/${r}`}else{n+=endpoint`/download`}return n}var lt=class extends n.BaseResource{downloadArchive(e,{jobId:t,artifactPath:r,ref:n,...s}={}){let o;if(t)o=generateDownloadPathForJob(e,t,r);else if(s?.job&&n)o=generateDownloadPath(e,n,r);else throw new Error("Missing one of the required parameters. See typing documentation for available arguments.");return a.get()(this,o,s)}keep(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/artifacts/keep`,r)}remove(e,{jobId:t,...r}={}){let n;if(t){n=endpoint`projects/${e}/jobs/${t}/artifacts`}else{n=endpoint`projects/${e}/artifacts`}return a.del()(this,n,r)}};var pt=class extends n.BaseResource{all(e,{pipelineId:t,...r}={}){const n=t?endpoint`projects/${e}/pipelines/${t}/jobs`:endpoint`projects/${e}/jobs`;return a.get()(this,n,r)}allPipelineBridges(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/bridges`,r)}cancel(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/cancel`,r)}erase(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/erase`,r)}play(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/play`,r)}retry(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/retry`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/jobs/${t}`,r)}showConnectedJob(e){if(!this.headers["job-token"])throw new Error('Missing required header "job-token"');return a.get()(this,"job",e)}showConnectedJobK8Agents(e){if(!this.headers["job-token"])throw new Error('Missing required header "job-token"');return a.get()(this,"job/allowed_agents",e)}showLog(e,t,r){return a.get()(this,endpoint`projects/${e}/jobs/${t}/trace`,r)}};var dt=class extends n.BaseResource{allApprovalRules(e,{mergerequestIId:t,...r}={}){let n;if(t){n=endpoint`projects/${e}/merge_requests/${t}/approval_rules`}else{n=endpoint`projects/${e}/approval_rules`}return a.get()(this,n,r)}approve(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/approve`,r)}createApprovalRule(e,t,r,{mergerequestIId:n,...s}={}){let o;if(n){o=endpoint`projects/${e}/merge_requests/${n}/approval_rules`}else{o=endpoint`projects/${e}/approval_rules`}return a.post()(this,o,{name:t,approvalsRequired:r,...s})}editApprovalRule(e,t,r,n,{mergerequestIId:s,...o}={}){let i;if(s){i=endpoint`projects/${e}/merge_requests/${s}/approval_rules/${t}`}else{i=endpoint`projects/${e}/approval_rules/${t}`}return a.put()(this,i,{name:r,approvalsRequired:n,...o})}editConfiguration(e,t){return a.post()(this,endpoint`projects/${e}/approvals`,t)}removeApprovalRule(e,t,{mergerequestIId:r,...n}={}){let s;if(r){s=endpoint`projects/${e}/merge_requests/${r}/approval_rules/${t}`}else{s=endpoint`projects/${e}/approval_rules/${t}`}return a.del()(this,s,n)}showApprovalRule(e,t,r){return a.get()(this,endpoint`projects/${e}/approval_rules/${t}`,r)}showApprovalState(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/approval_state`,r)}showConfiguration(e,{mergerequestIId:t,...r}={}){let n;if(t){n=endpoint`projects/${e}/merge_requests/${t}/approvals`}else{n=endpoint`projects/${e}/approvals`}return a.get()(this,n,r)}unapprove(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/unapprove`,r)}};var ft=class extends k{constructor(e){super("projects","merge_requests",e)}};var ht=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/context_commits`,r)}create(e,t,{mergerequestIId:r,...n}={}){const s=endpoint`projects/${e}/merge_requests`;const o=r?`${s}/${r}/context_commits`:s;return a.post()(this,o,{commits:t,...n})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/merge_requests/${t}/context_commits`,r)}};var gt=class extends O{constructor(e){super("projects","merge_requests",e)}resolve(e,t,r,n,s){return a.put()(this,endpoint`${e}/merge_requests/${t}/discussions/${r}`,{searchParams:{resolved:n},...s})}};var mt=class extends J{constructor(e){super("projects","merge_requests",e)}};var yt=class extends X{constructor(e){super("projects","merge_requests",e)}};var vt=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes`,r)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes`,{...n,note:r})}edit(e,t,r,n){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}`,n)}publish(e,t,r,n){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}/publish`,n)}publishBulk(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/bulk_publish`,r)}remove(e,t,r,n){return a.del()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}`,n)}show(e,t,r,n){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}`,n)}};var $t=class extends q{constructor(e){super("projects","merge_requests",e)}};var bt=class extends I{constructor(e){super("merge_requests",e)}};var wt=class extends n.BaseResource{accept(e,t,r){return this.merge(e,t,r)}addSpentTime(e,t,r,n){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/add_spent_time`,{duration:r,...n})}all({projectId:e,groupId:t,...r}={}){let n="";if(e){n=endpoint`projects/${e}/`}else if(t){n=endpoint`groups/${t}/`}return a.get()(this,`${n}merge_requests`,r)}allDiffs(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/diffs`,r)}allCommits(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/commits`,r)}allDiffVersions(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/versions`,r)}allIssuesClosed(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/closes_issues`,r)}allParticipants(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/participants`,r)}allPipelines(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/pipelines`,r)}cancelOnPipelineSuccess(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/cancel_merge_when_pipeline_succeeds`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/merge_requests`,{sourceBranch:t,targetBranch:r,title:n,...s})}createPipeline(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/pipelines`,r)}createTodo(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/todo`,r)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}`,r)}merge(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/merge`,r)}mergeToDefault(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/merge_ref`,r)}rebase(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/rebase`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/merge_requests/${t}`,r)}resetSpentTime(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/reset_spent_time`,r)}resetTimeEstimate(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/reset_time_estimate`,r)}setTimeEstimate(e,t,r,n){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/time_estimate`,{duration:r,...n})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}`,r)}showChanges(e,t,r){process.emitWarning('This endpoint was deprecated in Gitlab API 15.7 and will be removed in API v5. Please use the "allDiffs" function instead.',"DeprecationWarning");return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/changes`,r)}showDiffVersion(e,t,r,n){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/versions/${r}`,n)}showTimeStats(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/time_stats`,r)}subscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/subscribe`,r)}unsubscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/unsubscribe`,r)}};var _t=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/merge_trains`,t)}showStatus(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_trains/merge_requests/${t}`,r)}addMergeRequest(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_trains/merge_requests/${t}`,r)}};var St=class extends n.BaseResource{publish(e,t,r,n,{contentType:s,...o}={}){return a.put()(this,endpoint`projects/${e}/packages/generic/${t}/${r}/${n.filename}`,{isForm:true,file:[n.content,n.filename],...o})}download(e,t,r,n,s){return a.get()(this,endpoint`projects/${e}/packages/generic/${t}/${r}/${n}`,s)}};var At=class extends n.BaseResource{all({projectId:e,groupId:t,...r}={}){let n;if(e)n=endpoint`projects/${e}/packages`;else if(t)n=endpoint`groups/${t}/packages`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.get()(this,n,r)}allFiles(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/${t}/package_files`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/packages/${t}`,r)}removeFile(e,t,r,n){return a.del()(this,endpoint`projects/${e}/packages/${t}/package_files/${r}`,n)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/${t}`,r)}};var Et=class extends n.BaseResource{all({projectId:e,...t}={}){const r=e?endpoint`projects/${e}/`:"";return a.get()(this,`${r}pages/domains`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/pages/domains`,{domain:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/pages/domains/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/pages/domains/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/pages/domains/${t}`,r)}};var jt=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/pipelines`,t)}allVariables(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/variables`,r)}cancel(e,t,r){return a.post()(this,endpoint`projects/${e}/pipelines/${t}/cancel`,r)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/pipeline`,{ref:t,...r})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/pipelines/${t}`,r)}retry(e,t,r){return a.post()(this,endpoint`projects/${e}/pipelines/${t}/retry`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}`,r)}showTestReport(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/test_report`,r)}showTestReportSummary(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/test_report_summary`,r)}};var xt=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/pipeline_schedules`,t)}allTriggeredPipelines(e,t,r){return a.get()(this,endpoint`projects/${e}/pipeline_schedules/${t}/pipelines`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/pipeline_schedules`,{description:t,ref:r,cron:n,...s})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/pipeline_schedules/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/pipeline_schedules/${t}`,r)}run(e,t,r){return a.post()(this,endpoint`projects/${e}/pipeline_schedules/${t}/play`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/pipeline_schedules/${t}`,r)}takeOwnership(e,t,r){return a.post()(this,endpoint`projects/${e}/pipeline_schedules/${t}/take_ownership`,r)}};var Rt=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables`,{...s,key:r,value:n})}edit(e,t,r,n,s){return a.put()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables/${r}`,{...s,value:n})}remove(e,t,r,n){return a.del()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables/${r}`,n)}};var kt=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/triggers`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/triggers`,{description:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/triggers/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/triggers/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/triggers/${t}`,r)}trigger(e,t,r,{variables:n,...s}={}){const o={...s,searchParams:{token:r,ref:t}};if(n){o.isForm=true;Object.assign(o,reformatObjectOptions(n,"variables"))}return a.post()(this,endpoint`projects/${e}/trigger/pipeline`,o)}};var It=class extends n.BaseResource{allFunnels(e,t){return a.get()(this,endpoint`projects/${e}/product_analytics/funnels`,t)}load(e,t){return a.post()(this,endpoint`projects/${e}/product_analytics/request/load`,t)}dryRun(e,t){return a.post()(this,endpoint`projects/${e}/product_analytics/request/dry-run`,t)}showMetadata(e,t){return a.get()(this,endpoint`projects/${e}/product_analytics/request/meta`,t)}};var Pt=class extends x{constructor(e){super("projects",e)}};var Ct=class extends R{constructor(e){super("projects",e)}};var Tt=class extends n.BaseResource{all(e){return a.get()(this,"project_aliases",e)}create(e,t,r){return a.post()(this,"project_aliases",{name:t,projectId:e,...r})}edit(e,t){return a.post()(this,`project_aliases/${e}`,t)}remove(e,t){return a.del()(this,`project_aliases/${e}`,t)}};var Ot=class extends P{constructor(e){super("projects",e)}};var Mt=class extends C{constructor(e){super("projects",e)}};var Nt=class extends T{constructor(e){super("projects",e)}};var Lt=class extends H{constructor(e){super("projects",e)}};var Ft=class extends n.BaseResource{download(e,t){return a.get()(this,endpoint`projects/${e}/export/download`,t)}import(e,t,r){return a.post()(this,"projects/import",{isForm:true,...r,file:[e.content,e.filename],path:t})}importRemote(e,t,r){return a.post()(this,"projects/remote-import",{...r,path:t,url:e})}importRemoteS3(e,t,r,n,s,o,i){return a.post()(this,"projects/remote-import",{...i,accessKeyId:e,bucketName:t,fileKey:r,path:n,region:s,secretAccessKey:o})}showExportStatus(e,t){return a.get()(this,endpoint`projects/${e}/export`,t)}showImportStatus(e,t){return a.get()(this,endpoint`projects/${e}/import`,t)}scheduleExport(e,t,r){return a.post()(this,endpoint`projects/${e}/export`,{...r,upload:t})}};var Bt=class extends W{constructor(e){super("projects",e)}};var qt=class extends M{constructor(e){super("projects",e)}};var Gt=class extends z{constructor(e){super("project",e)}};var Ut=class extends N{constructor(e){super("projects",e)}};var Dt=class extends L{constructor(e){super("projects",e)}};var Ht=class extends B{constructor(e){super("projects",e)}promote(e,t,r){return a.post()(this,endpoint`${e}/milestones/${t}/promote`,r)}};var Kt=class extends Q{constructor(e){super("groups",e)}};var Yt=class extends K{constructor(e){super("projects",e)}};var Wt=class extends n.BaseResource{download(e,t,r){return a.get()(this,endpoint`projects/${e}/export_relations/download`,{relation:t,...r})}showExportStatus(e,t){return a.get()(this,endpoint`projects/${e}/export_relations/status`,t)}scheduleExport(e,t){return a.post()(this,endpoint`projects/${e}/export_relations`,t)}};var zt=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/releases`,t)}create(e,t){return a.post()(this,endpoint`projects/${e}/releases`,t)}createEvidence(e,t,r){return a.post()(this,endpoint`projects/${e}/releases/${t}/evidence`,r)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/releases/${t}`,r)}download(e,t,r,n){return a.get()(this,endpoint`projects/${e}/releases/${t}/downloads/${r}`,n)}downloadLatest(e,t,r){return a.get()(this,endpoint`projects/${e}/releases/permalink/latest/downloads/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/releases/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/releases/${t}`,r)}showLatest(e,t){return a.get()(this,endpoint`projects/${e}/releases/permalink/latest`,t)}showLatestEvidence(e,t){return a.get()(this,endpoint`projects/${e}/releases/permalink/latest/evidence`,t)}};var Qt=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/remote_mirrors`,t)}createPullMirror(e,t,r,n){return a.post()(this,endpoint`projects/${e}/mirror/pull`,{importUrl:t,mirror:r,...n})}createPushMirror(e,t,r){return a.post()(this,endpoint`projects/${e}/remote_mirrors`,{url:t,...r})}edit(e,t,r){return a.post()(this,endpoint`projects/${e}/remote_mirrors/${t}`,r)}remove(e,t){return a.del()(this,`project_aliases/${e}`,t)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/remote_mirrors/${t}`,r)}};var Vt=class extends Y{constructor(e){super("projects",e)}};var Jt=class extends n.BaseResource{all({userId:e,starredOnly:t,...r}={}){let n;if(e&&t)n=endpoint`users/${e}/starred_projects`;else if(e)n=endpoint`users/${e}/projects`;else n="projects";return a.get()(this,n,r)}allTransferLocations(e,t){return a.get()(this,endpoint`projects/${e}/transfer_locations`,t)}allUsers(e,t){return a.get()(this,endpoint`projects/${e}/users`,t)}allGroups(e,t){return a.get()(this,endpoint`projects/${e}/groups`,t)}allSharableGroups(e,t){return a.get()(this,endpoint`projects/${e}/share_locations`,t)}allForks(e,t){return a.get()(this,endpoint`projects/${e}/forks`,t)}allStarrers(e,t){return a.get()(this,endpoint`projects/${e}/starrers`,t)}allStoragePaths(e,t){return a.get()(this,endpoint`projects/${e}/storage`,t)}archive(e,t){return a.post()(this,endpoint`projects/${e}/archive`,t)}create({userId:e,avatar:t,...r}={}){const n=e?`projects/user/${e}`:"projects";if(t){return a.post()(this,n,{...r,isForm:true,avatar:[t.content,t.filename]})}return a.post()(this,n,{...r,avatar:t})}createForkRelationship(e,t,r){return a.post()(this,endpoint`projects/${e}/fork/${t}`,r)}createPullMirror(e,t,r,n){return a.post()(this,endpoint`projects/${e}/mirror/pull`,{importUrl:t,mirror:r,...n})}downloadSnapshot(e,t){return a.get()(this,endpoint`projects/${e}/snapshot`,t)}edit(e,{avatar:t,...r}={}){const n=endpoint`projects/${e}`;if(t){return a.put()(this,n,{...r,isForm:true,avatar:[t.content,t.filename]})}return a.put()(this,n,{...r,avatar:t})}fork(e,t){return a.post()(this,endpoint`projects/${e}/fork`,t)}housekeeping(e,t){return a.post()(this,endpoint`projects/${e}/housekeeping`,t)}importProjectMembers(e,t,r){return a.post()(this,endpoint`projects/${e}/import_project_members/${t}`,r)}remove(e,t){return a.del()(this,endpoint`projects/${e}`,t)}removeForkRelationship(e,t){return a.del()(this,endpoint`projects/${e}/fork`,t)}removeAvatar(e,t){return a.put()(this,endpoint`projects/${e}`,{...t,avatar:""})}restore(e,t){return a.post()(this,endpoint`projects/${e}/restore`,t)}search(e,t){return a.get()(this,"projects",{search:e,...t})}share(e,t,r,n){return a.post()(this,endpoint`projects/${e}/share`,{groupId:t,groupAccess:r,...n})}show(e,t){return a.get()(this,endpoint`projects/${e}`,t)}showLanguages(e,t){return a.get()(this,endpoint`projects/${e}/languages`,t)}showPullMirror(e,t){return a.get()(this,endpoint`projects/${e}/mirror/pull`,t)}star(e,t){return a.post()(this,endpoint`projects/${e}/star`,t)}transfer(e,t,r){return a.put()(this,endpoint`projects/${e}/transfer`,{...r,namespace:t})}unarchive(e,t){return a.post()(this,endpoint`projects/${e}/unarchive`,t)}unshare(e,t,r){return a.del()(this,endpoint`projects/${e}/share/${t}`,r)}unstar(e,t){return a.post()(this,endpoint`projects/${e}/unstar`,t)}uploadForReference(e,t,r){return a.post()(this,endpoint`projects/${e}/uploads`,{...r,isForm:true,file:[t.content,t.filename]})}uploadAvatar(e,t,r){return a.put()(this,endpoint`projects/${e}`,{...r,isForm:true,avatar:[t.content,t.filename]})}};var Xt=class extends k{constructor(e){super("projects","snippets",e)}};var Zt=class extends O{constructor(e){super("projects","snippets",e)}};var er=class extends q{constructor(e){super("projects","snippets",e)}};var tr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/snippets`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/snippets`,{title:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/snippets/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/snippets/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/snippets/${t}`,r)}showContent(e,t,r){return a.get()(this,endpoint`projects/${e}/snippets/${t}/raw`,r)}showRepositoryFileContent(e,t,r,n,s){return a.get()(this,endpoint`projects/${e}/snippets/${t}/files/${r}/${n}/raw`,s)}showUserAgentDetails(e,t,r){return a.get()(this,endpoint`projects/${e}/snippets/${t}/user_agent_detail`,r)}};var rr=class extends n.BaseResource{show(e,t){return a.get()(this,endpoint`projects/${e}/statistics`,t)}};var nr=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/templates/${t}`,r)}show(e,t,r,n){return a.get()(this,endpoint`projects/${e}/templates/${t}/${r}`,n)}};var sr=class extends U{constructor(e){super("projects",e)}};var or=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/vulnerabilities`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/vulnerabilities`,{...r,searchParams:{findingId:t}})}};var ir=class extends D{constructor(e){super("projects",e)}};var ar=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/protected_branches`,t)}create(e,t,r){const{sudo:n,showExpanded:s,...o}=r||{};return a.post()(this,endpoint`projects/${e}/protected_branches`,{searchParams:{...o,name:t},sudo:n,showExpanded:s})}protect(e,t,r){return this.create(e,t,r)}edit(e,t,r){return a.patch()(this,endpoint`projects/${e}/protected_branches/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/protected_branches/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/protected_branches/${t}`,r)}unprotect(e,t,r){return this.remove(e,t,r)}};var cr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/protected_tags`,t)}create(e,t,r){const{sudo:n,showExpanded:s,...o}=r||{};return a.post()(this,endpoint`projects/${e}/protected_tags`,{searchParams:{name:t,...o},sudo:n,showExpanded:s})}protect(e,t,r){return this.create(e,t,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/protected_tags/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/protected_tags/${t}`,r)}unprotect(e,t,r){return this.remove(e,t,r)}};var ur=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/releases/${t}/assets/links`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/releases/${t}/assets/links`,{name:r,url:n,...s})}edit(e,t,r,n){return a.put()(this,endpoint`projects/${e}/releases/${t}/assets/links/${r}`,n)}remove(e,t,r,n){return a.del()(this,endpoint`projects/${e}/releases/${t}/assets/links/${r}`,n)}show(e,t,r,n){return a.get()(this,endpoint`projects/${e}/releases/${t}/assets/links/${r}`,n)}};var lr=class extends n.BaseResource{allContributors(e,t){return a.get()(this,endpoint`projects/${e}/repository/contributors`,t)}allRepositoryTrees(e,t){return a.get()(this,endpoint`projects/${e}/repository/tree`,t)}compare(e,t,r,n){return a.get()(this,endpoint`projects/${e}/repository/compare`,{from:t,to:r,...n})}editChangelog(e,t,r){return a.post()(this,endpoint`projects/${e}/repository/changelog`,{...r,version:t})}mergeBase(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/merge_base`,{...r,refs:t})}showArchive(e,{fileType:t="tar.gz",...r}={}){return a.get()(this,endpoint`projects/${e}/repository/archive.${t}`,r)}showBlob(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/blobs/${t}`,r)}showBlobRaw(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/blobs/${t}/raw`,r)}showChangelog(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/changelog`,{...r,version:t})}};var pr=class extends n.BaseResource{allFileBlames(e,t,r,n){return a.get()(this,endpoint`projects/${e}/repository/files/${t}/blame`,{ref:r,...n})}create(e,t,r,n,s,o){return a.post()(this,endpoint`projects/${e}/repository/files/${t}`,{branch:r,content:n,commitMessage:s,...o})}edit(e,t,r,n,s,o){return a.put()(this,endpoint`projects/${e}/repository/files/${t}`,{branch:r,content:n,commitMessage:s,...o})}remove(e,t,r,n,s){return a.del()(this,endpoint`projects/${e}/repository/files/${t}`,{branch:r,commitMessage:n,...s})}show(e,t,r,n){return a.get()(this,endpoint`projects/${e}/repository/files/${t}`,{ref:r,...n})}showRaw(e,t,r,n){return a.get()(this,endpoint`projects/${e}/repository/files/${t}/raw`,{ref:r,...n})}};var dr=class extends n.BaseResource{edit(e,t,r,n,s){return a.put()(this,endpoint`projects/${e}/repository/submodules/${t}`,{branch:r,commitSha:n,...s})}};var fr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/resource_groups`,t)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/resource_groups/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/resource_groups/${t}`,r)}allUpcomingJobs(e,t){return a.get()(this,endpoint`projects/${e}/resource_groups/upcoming_jobs`,t)}};var hr=class extends n.BaseResource{all({projectId:e,groupId:t,owned:r,...n}={}){let s;if(e)s=endpoint`projects/${e}/runners`;else if(t)s=endpoint`groups/${t}/runners`;else if(r)s="runners";else s="runners/all";return a.get()(this,s,n)}allJobs(e,t){return a.get()(this,`runners/${e}/jobs`,t)}create(e,t){return a.post()(this,`runners`,{token:e,...t})}edit(e,t){return a.put()(this,`runners/${e}`,t)}enable(e,t,r){return a.post()(this,endpoint`projects/${e}/runners`,{runnerId:t,...r})}disable(e,t,r){return a.del()(this,endpoint`projects/${e}/runners/${t}`,r)}register(e,t){return this.create(e,t)}remove({runnerId:e,token:t,...r}){let n;if(e)n=`runners/${e}`;else if(t){n="runners"}else throw new Error("Missing required argument. Please supply a runnerId or a token in the options parameter");return a.del()(this,n,{token:t,...r})}resetRegistrationToken({runnerId:e,token:t,...r}={}){let n;if(e)n=endpoint`runners/${e}/reset_registration_token`;else if(t)n="runners/reset_registration_token";else{throw new Error("Missing either runnerId or token parameters")}return a.post()(this,n,{token:t,...r})}show(e,t){return a.get()(this,`runners/${e}`,t)}verify(e){return a.post()(this,`runners/verify`,e)}};var gr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/secure_files`,t)}create(e,t,r,n){return a.post()(this,`projects/${e}/secure_files`,{isForm:true,...n,file:[r.content,r.filename],name:t})}download(e,t,r){return a.get()(this,endpoint`projects/${e}/secure_files/${t}/download`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/secure_files/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/secure_files/${t}`,r)}};var mr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/repository/tags`,t)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/repository/tags`,{searchParams:{tagName:t,ref:r},...n})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/repository/tags/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/tags/${t}`,r)}showSignature(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/tags/${t}/signature`,r)}};var yr=class extends n.BaseResource{create(e,t,r){return a.get()(this,endpoint`projects/${e}/metrics/user_starred_dashboards`,{dashboardPath:t,...r})}remove(e,t){return a.del()(this,endpoint`projects/${e}/metrics/user_starred_dashboards`,t)}};var vr=class extends k{constructor(e){super("epics","issues",e)}};var $r=class extends O{constructor(e){super("groups","epics",e)}};var br=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}/issues`,r)}assign(e,t,r,n){return a.post()(this,endpoint`groups/${e}/epics/${t}/issues/${r}`,n)}edit(e,t,r,n){return a.put()(this,endpoint`groups/${e}/epics/${t}/issues/${r}`,n)}remove(e,t,r,n){return a.del()(this,endpoint`groups/${e}/epics/${t}/issues/${r}`,n)}};var wr=class extends J{constructor(e){super("groups","epic",e)}};var _r=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}/links`,r)}assign(e,t,r,n){return a.post()(this,endpoint`groups/${e}/epics/${t}/links/${r}`,n)}create(e,t,r,n){return a.post()(this,endpoint`groups/${e}/epics/${t}/links`,{searchParams:{title:r},...n})}reorder(e,t,r,n){return a.put()(this,endpoint`groups/${e}/epics/${t}/links/${r}`,n)}unassign(e,t,r,n){return a.del()(this,endpoint`groups/${e}/epics/${t}/links/${r}`,n)}};var Sr=class extends q{constructor(e){super("groups","epics",e)}};var Ar=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/epics`,t)}create(e,t,r){return a.post()(this,endpoint`groups/${e}/epics`,{title:t,...r})}createTodo(e,t,r){return a.post()(this,endpoint`groups/${e}/epics/${t}/todos`,r)}edit(e,t,r){return a.put()(this,endpoint`groups/${e}/epics/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/epics/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}`,r)}};var Er=class extends x{constructor(e){super("groups",e)}};var jr=class extends R{constructor(e){super("groups",e)}};var xr=class extends n.BaseResource{showIssuesCount(e,t){return a.get()(this,"analytics/group_activity/issues_count",{searchParams:{groupPath:e},...t})}showMergeRequestsCount(e,t){return a.get()(this,"analytics/group_activity/merge_requests_count",{searchParams:{groupPath:e},...t})}showNewMembersCount(e,t){return a.get()(this,"analytics/group_activity/new_members_count",{searchParams:{groupPath:e},...t})}};var Rr=class extends P{constructor(e){super("groups",e)}};var kr=class extends C{constructor(e){super("groups",e)}};var Ir=class extends T{constructor(e){super("groups",e)}};var Pr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/epic_boards`,t)}allLists(e,t,r){return a.get()(this,endpoint`groups/${e}/epic_boards/${t}/lists`,r)}show(e,t,r){return a.get()(this,endpoint`groups/${e}/epic_boards/${t}`,r)}showList(e,t,r,n){return a.get()(this,endpoint`groups/${e}/epic_boards/${t}/lists/${r}`,n)}};var Cr=class extends H{constructor(e){super("groups",e)}};var Tr=class extends n.BaseResource{download(e,t){return a.get()(this,endpoint`groups/${e}/export/download`,t)}import(e,t,{parentId:r,name:n,...s}){return a.post()(this,"groups/import",{isForm:true,...s,file:[e.content,e.filename],path:t,name:n||t.split("/").at(0),parentId:r})}scheduleExport(e,t){return a.post()(this,endpoint`groups/${e}/export`,t)}};var Or=class extends W{constructor(e){super("groups",e)}};var Mr=class extends M{constructor(e){super("groups",e)}};var Nr=class extends z{constructor(e){super("groups",e)}};var Lr=class extends N{constructor(e){super("groups",e)}};var Fr=class extends n.BaseResource{add(e,t,r,n){return a.post()(this,endpoint`groups/${e}/ldap_group_links`,{groupAccess:t,provider:r,...n})}all(e,t){return a.get()(this,endpoint`groups/${e}/ldap_group_links`,t)}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/ldap_group_links`,{provider:t,...r})}sync(e,t){return a.post()(this,endpoint`groups/${e}/ldap_sync`,t)}};var Br=class extends L{constructor(e){super("groups",e)}allBillable(e,t){return a.get()(this,endpoint`${e}/billable_members`,t)}allPending(e,t){return a.get()(this,endpoint`${e}/pending_members`,t)}allBillableMemberships(e,t,r){return a.get()(this,endpoint`${e}/billable_members/${t}/memberships`,r)}approve(e,t,r){return a.put()(this,endpoint`${e}/members/${t}/approve`,r)}approveAll(e,t){return a.put()(this,endpoint`${e}/members/approve_all`,t)}removeBillable(e,t,r){return a.del()(this,endpoint`${e}/billable_members/${t}`,r)}removeOverrideFlag(e,t,r){return a.del()(this,endpoint`${e}/members/${t}/override`,r)}setOverrideFlag(e,t,r){return a.post()(this,endpoint`${e}/members/${t}/override`,r)}};var qr=class extends n.BaseResource{add(e,t,r){return a.post()(this,endpoint`groups/${e}/members`,{baseAccessLevel:t,...r})}all(e,t){return a.get()(this,endpoint`groups/${e}/member_roles`,t)}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/member_roles/${t}`,r)}};var Gr=class extends B{constructor(e){super("groups",e)}};var Ur=class extends Q{constructor(e){super("groups",e)}};var Dr=class extends K{constructor(e){super("groups",e)}};var Hr=class extends n.BaseResource{download(e,t,r){return a.get()(this,endpoint`groups/${e}/export_relations/download`,{searchParams:{relation:t},...r})}exportStatus(e,t){return a.get()(this,endpoint`groups/${e}/export_relations`,t)}scheduleExport(e,t){return a.post()(this,endpoint`groups/${e}/export_relations`,t)}};var Kr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/releases`,t)}};var Yr=class extends Y{constructor(e){super("groups",e)}};var Wr=class extends n.BaseResource{all(e){return a.get()(this,"groups",e)}allDescendantGroups(e,t){return a.get()(this,endpoint`groups/${e}/descendant_groups`,t)}allProjects(e,t){return a.get()(this,endpoint`groups/${e}/projects`,t)}allSharedProjects(e,t){return a.get()(this,endpoint`groups/${e}/projects/shared`,t)}allSubgroups(e,t){return a.get()(this,endpoint`groups/${e}/subgroups`,t)}allProvisionedUsers(e,t){return a.get()(this,endpoint`groups/${e}/provisioned_users`,t)}allTransferLocations(e,t){return a.get()(this,endpoint`groups/${e}/transfer_locations`,t)}create(e,t,{avatar:r,...n}={}){if(r){return a.post()(this,"groups",{...n,isForm:true,avatar:[r.content,r.filename],name:e,path:t})}return a.post()(this,"groups",{name:e,path:t,...n})}downloadAvatar(e,t){return a.get()(this,endpoint`groups/${e}/avatar`,t)}edit(e,{avatar:t,...r}={}){if(t){return a.post()(this,endpoint`groups/${e}`,{...r,isForm:true,avatar:[t.content,t.filename]})}return a.put()(this,endpoint`groups/${e}`,r)}remove(e,t){return a.del()(this,endpoint`groups/${e}`,t)}removeAvatar(e,t){return a.put()(this,endpoint`groups/${e}`,{...t,avatar:""})}restore(e,t){return a.post()(this,endpoint`groups/${e}/restore`,t)}search(e,t){return a.get()(this,"groups",{search:e,...t})}share(e,t,r,n){return a.post()(this,endpoint`groups/${e}/share`,{groupId:t,groupAccess:r,...n})}show(e,t){return a.get()(this,endpoint`groups/${e}`,t)}transfer(e,t){return a.post()(this,endpoint`groups/${e}/transfer`,t)}transferProject(e,t,r){return a.post()(this,endpoint`groups/${e}/projects/${t}`,r)}unshare(e,t,r){return a.del()(this,endpoint`groups/${e}/share/${t}`,r)}uploadAvatar(e,t,{filename:r,...n}={}){return a.put()(this,endpoint`groups/${e}/avatar`,{isForm:true,...n,file:[t,r]})}};var zr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/saml/identities`,t)}edit(e,t,r){return a.patch()(this,endpoint`groups/${e}/saml/${t}`,r)}};var Qr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/saml_group_links`,t)}create(e,t,r,n){return a.post()(this,endpoint`groups/${e}/saml_group_links`,{accessLevel:r,samlGroupName:t,...n})}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/saml_group_links/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`groups/${e}/saml_group_links/${t}`,r)}};var Vr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/scim/identities`,t)}edit(e,t,r){return a.patch()(this,endpoint`groups/${e}/scim/${t}`,r)}};var Jr=class extends n.BaseResource{create(e,t){return a.post()(this,endpoint`groups/${e}/service_accounts`,t)}addPersonalAccessToken(e,t,r){return a.post()(this,endpoint`groups/${e}/service_accounts/${t}`,r)}rotatePersonalAccessToken(e,t,r,n){return a.post()(this,endpoint`groups/${e}/service_accounts/${t}/personal_access_tokens/${r}/rotate`,n)}};var Xr=class extends U{constructor(e){super("groups",e)}};var Zr=class extends D{constructor(e){super("groups",e)}};var en=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}/related_epics`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`groups/${e}/epics/${t}/related_epics`,{searchParams:{targetGroupId:n,targetEpicIid:r},...s})}remove(e,t,r,n){return a.del()(this,endpoint`groups/${e}/epics/${t}/related_epics/${r}`,n)}};var tn=class extends C{constructor(e){super("users",e)}};var url9=e=>e?`users/${e}/emails`:"user/emails";var rn=class extends n.BaseResource{add(e,t){return this.create(e,t)}all({userId:e,...t}={}){return a.get()(this,url9(e),t)}create(e,{userId:t,...r}={}){return a.post()(this,url9(t),{email:e,...r})}show(e,t){return a.get()(this,`user/emails/${e}`,t)}remove(e,{userId:t,...r}={}){return a.del()(this,`${url9(t)}/${e}`,r)}};var url10=e=>e?`users/${e}/gpg_keys`:"user/gpg_keys";var nn=class extends n.BaseResource{add(e,t){return this.create(e,t)}all({userId:e,...t}={}){return a.get()(this,url10(e),t)}create(e,{userId:t,...r}={}){return a.post()(this,url10(t),{key:e,...r})}show(e,{userId:t,...r}={}){return a.get()(this,`${url10(t)}/${e}`,r)}remove(e,{userId:t,...r}={}){return a.del()(this,`${url10(t)}/${e}`,r)}};var sn=class extends n.BaseResource{all(e,t){return a.get()(this,`users/${e}/impersonation_tokens`,t)}create(e,t,r,n){return a.post()(this,`users/${e}/impersonation_tokens`,{name:t,scopes:r,...n})}show(e,t,r){return a.get()(this,`users/${e}/impersonation_tokens/${t}`,r)}remove(e,t,r){return a.del()(this,`users/${e}/impersonation_tokens/${t}`,r)}revoke(e,t,r){return this.remove(e,t,r)}};var on=class extends n.BaseResource{activate(e,t){return a.post()(this,endpoint`users/${e}/activate`,t)}all(e){return a.get()(this,"users",e)}allActivities(e){return a.get()(this,"user/activities",e)}allEvents(e,t){return a.get()(this,endpoint`users/${e}/events`,t)}allFollowers(e,t){return a.get()(this,endpoint`users/${e}/followers`,t)}allFollowing(e,t){return a.get()(this,endpoint`users/${e}/following`,t)}allMemberships(e,t){return a.get()(this,endpoint`users/${e}/memberships`,t)}allProjects(e,t){return a.get()(this,endpoint`users/${e}/projects`,t)}allContributedProjects(e,t){return a.get()(this,endpoint`users/${e}/contributed_projects`,t)}allStarredProjects(e,t){return a.get()(this,endpoint`users/${e}/starred_projects`,t)}approve(e,t){return a.post()(this,endpoint`users/${e}/approve`,t)}ban(e,t){return a.post()(this,endpoint`users/${e}/ban`,t)}block(e,t){return a.post()(this,endpoint`users/${e}/block`,t)}create(e){return a.post()(this,"users",e)}createPersonalAccessToken(e,t,r,n){return a.post()(this,endpoint`users/${e}/personal_access_tokens`,{name:t,scopes:r,...n})}createCIRunner(e,t){return a.post()(this,"user/runners",{...t,runnerType:e})}deactivate(e,t){return a.post()(this,endpoint`users/${e}/deactivate`,t)}disableTwoFactor(e,t){return a.patch()(this,endpoint`users/${e}/disable_two_factor`,t)}edit(e,t){return a.put()(this,endpoint`users/${e}`,t)}editStatus(e){return a.put()(this,"user/status",e)}editCurrentUserPreferences(e,t,r){return a.put()(this,"user/preferences",{viewDiffsFileByFile:e,showWhitespaceInDiffs:t,...r})}follow(e,t){return a.post()(this,endpoint`users/${e}/follow`,t)}reject(e,t){return a.post()(this,endpoint`users/${e}/reject`,t)}show(e,t){return a.get()(this,endpoint`users/${e}`,t)}showCount(e){return a.get()(this,"user_counts",e)}showAssociationsCount(e,t){return a.get()(this,`users/${e}/associations_count`,t)}showCurrentUser(e){return a.get()(this,"user",e)}showCurrentUserPreferences(e){return a.get()(this,"user/preferences",e)}showStatus({iDOrUsername:e,...t}={}){let r;if(e)r=`users/${e}/status`;else r="user/status";return a.get()(this,r,t)}remove(e,t){return a.del()(this,endpoint`users/${e}`,t)}removeAuthenticationIdentity(e,t,r){return a.del()(this,endpoint`users/${e}/identities/${t}`,r)}unban(e,t){return a.post()(this,endpoint`users/${e}/unban`,t)}unblock(e,t){return a.post()(this,endpoint`users/${e}/unblock`,t)}unfollow(e,t){return a.post()(this,endpoint`users/${e}/unfollow`,t)}};var url11=e=>e?`users/${e}/keys`:"user/keys";var an=class extends n.BaseResource{add(e,t,r){return this.create(e,t,r)}all({userId:e,...t}={}){return a.get()(this,url11(e),t)}create(e,t,{userId:r,...n}={}){return a.post()(this,url11(r),{title:e,key:t,...n})}show(e,{userId:t,...r}={}){return a.get()(this,`${url11(t)}/${e}`,r)}remove(e,{userId:t,...r}={}){return a.del()(this,`${url11(t)}/${e}`,r)}};var cn={Agents:c,AlertManagement:u,ApplicationAppearance:l,ApplicationPlanLimits:p,Applications:d,ApplicationSettings:f,ApplicationStatistics:h,AuditEvents:g,Avatar:m,BroadcastMessages:y,CodeSuggestions:v,Composer:$,Conan:b,DashboardAnnotations:w,Debian:_,DependencyProxy:S,DeployKeys:A,DeployTokens:j,DockerfileTemplates:ee,Events:te,Experiments:re,GeoNodes:ne,GeoSites:se,GitignoreTemplates:oe,GitLabCIYMLTemplates:ie,Import:ae,InstanceLevelCICDVariables:ce,Keys:ue,License:le,LicenseTemplates:pe,Lint:de,Markdown:fe,Maven:he,Metadata:ge,Migrations:me,Namespaces:ye,NotificationSettings:ve,NPM:$e,NuGet:be,PersonalAccessTokens:we,PyPI:_e,RubyGems:Se,Search:Ae,SearchAdmin:Ee,ServiceAccounts:je,ServiceData:xe,SidekiqMetrics:Re,SidekiqQueues:ke,SnippetRepositoryStorageMoves:Ie,Snippets:Pe,Suggestions:Ce,SystemHooks:Te,TodoLists:Oe,Topics:Me,Branches:Ne,CommitDiscussions:Le,Commits:Fe,ContainerRegistry:Be,Deployments:qe,Environments:Ge,ErrorTrackingClientKeys:Ue,ErrorTrackingSettings:De,ExternalStatusChecks:He,FeatureFlags:Ke,FeatureFlagUserLists:Ye,FreezePeriods:We,GitlabPages:ze,GoProxy:Qe,Helm:Ve,Integrations:Je,IssueAwardEmojis:Xe,IssueDiscussions:Ze,IssueIterationEvents:et,IssueLabelEvents:tt,IssueLinks:rt,IssueMilestoneEvents:nt,IssueNoteAwardEmojis:st,IssueNotes:ot,Issues:it,IssuesStatistics:at,IssueStateEvents:ct,IssueWeightEvents:ut,JobArtifacts:lt,Jobs:pt,MergeRequestApprovals:dt,MergeRequestAwardEmojis:ft,MergeRequestContextCommits:ht,MergeRequestDiscussions:gt,MergeRequestLabelEvents:mt,MergeRequestMilestoneEvents:yt,MergeRequestDraftNotes:vt,MergeRequestNotes:$t,MergeRequestNoteAwardEmojis:bt,MergeRequests:wt,MergeTrains:_t,PackageRegistry:St,Packages:At,PagesDomains:Et,Pipelines:jt,PipelineSchedules:xt,PipelineScheduleVariables:Rt,PipelineTriggerTokens:kt,ProductAnalytics:It,ProjectAccessRequests:Pt,ProjectAccessTokens:Ct,ProjectAliases:Tt,ProjectBadges:Ot,ProjectCustomAttributes:Mt,ProjectDORA4Metrics:Nt,ProjectHooks:Lt,ProjectImportExports:Ft,ProjectInvitations:Bt,ProjectIssueBoards:qt,ProjectIterations:Gt,ProjectLabels:Ut,ProjectMembers:Dt,ProjectMilestones:Ht,ProjectProtectedEnvironments:Kt,ProjectPushRules:Yt,ProjectRelationsExport:Wt,ProjectReleases:zt,ProjectRemoteMirrors:Qt,ProjectRepositoryStorageMoves:Vt,Projects:Jt,ProjectSnippetAwardEmojis:Xt,ProjectSnippetDiscussions:Zt,ProjectSnippetNotes:er,ProjectSnippets:tr,ProjectStatistics:rr,ProjectTemplates:nr,ProjectVariables:sr,ProjectVulnerabilities:or,ProjectWikis:ir,ProtectedBranches:ar,ProtectedTags:cr,ReleaseLinks:ur,Repositories:lr,RepositoryFiles:pr,RepositorySubmodules:dr,ResourceGroups:fr,Runners:hr,SecureFiles:gr,Tags:mr,UserStarredMetricsDashboard:yr,EpicAwardEmojis:vr,EpicDiscussions:$r,EpicIssues:br,EpicLabelEvents:wr,EpicLinks:_r,EpicNotes:Sr,Epics:Ar,GroupAccessRequests:Er,GroupAccessTokens:jr,GroupActivityAnalytics:xr,GroupBadges:Rr,GroupCustomAttributes:kr,GroupDORA4Metrics:Ir,GroupEpicBoards:Pr,GroupHooks:Cr,GroupImportExports:Tr,GroupInvitations:Or,GroupIssueBoards:Mr,GroupIterations:Nr,GroupLabels:Lr,GroupLDAPLinks:Fr,GroupMembers:Br,GroupMemberRoles:qr,GroupMilestones:Gr,GroupProtectedEnvironments:Ur,GroupPushRules:Dr,GroupRelationExports:Hr,GroupReleases:Kr,GroupRepositoryStorageMoves:Yr,Groups:Wr,GroupSAMLIdentities:zr,GroupSAMLLinks:Qr,GroupSCIMIdentities:Vr,GroupServiceAccounts:Jr,GroupVariables:Xr,GroupWikis:Zr,LinkedEpics:en,UserCustomAttributes:tn,UserEmails:rn,UserGPGKeys:nn,UserImpersonationTokens:sn,Users:on,UserSSHKeys:an};var un=class extends n.BaseResource{constructor(e){super(e);Object.keys(cn).forEach((t=>{this[t]=new cn[t](e)}))}};var ln=(e=>{e[e["NO_ACCESS"]=0]="NO_ACCESS";e[e["MINIMAL_ACCESS"]=5]="MINIMAL_ACCESS";e[e["GUEST"]=10]="GUEST";e[e["REPORTER"]=20]="REPORTER";e[e["DEVELOPER"]=30]="DEVELOPER";e[e["MAINTAINER"]=40]="MAINTAINER";e[e["OWNER"]=50]="OWNER";e[e["ADMIN"]=60]="ADMIN";return e})(ln||{});t.AccessLevel=ln;t.Agents=c;t.AlertManagement=u;t.ApplicationAppearance=l;t.ApplicationPlanLimits=p;t.ApplicationSettings=f;t.ApplicationStatistics=h;t.Applications=d;t.AuditEvents=g;t.Avatar=m;t.Branches=Ne;t.BroadcastMessages=y;t.CodeSuggestions=v;t.CommitDiscussions=Le;t.Commits=Fe;t.Composer=$;t.Conan=b;t.ContainerRegistry=Be;t.DashboardAnnotations=w;t.Debian=_;t.DependencyProxy=S;t.DeployKeys=A;t.DeployTokens=j;t.Deployments=qe;t.DockerfileTemplates=ee;t.Environments=Ge;t.EpicAwardEmojis=vr;t.EpicDiscussions=$r;t.EpicIssues=br;t.EpicLabelEvents=wr;t.EpicLinks=_r;t.EpicNotes=Sr;t.Epics=Ar;t.ErrorTrackingClientKeys=Ue;t.ErrorTrackingSettings=De;t.Events=te;t.Experiments=re;t.ExternalStatusChecks=He;t.FeatureFlagUserLists=Ye;t.FeatureFlags=Ke;t.FreezePeriods=We;t.GeoNodes=ne;t.GeoSites=se;t.GitLabCIYMLTemplates=ie;t.GitignoreTemplates=oe;t.Gitlab=un;t.GitlabPages=ze;t.GoProxy=Qe;t.GroupAccessRequests=Er;t.GroupAccessTokens=jr;t.GroupActivityAnalytics=xr;t.GroupBadges=Rr;t.GroupCustomAttributes=kr;t.GroupDORA4Metrics=Ir;t.GroupEpicBoards=Pr;t.GroupHooks=Cr;t.GroupImportExports=Tr;t.GroupInvitations=Or;t.GroupIssueBoards=Mr;t.GroupIterations=Nr;t.GroupLDAPLinks=Fr;t.GroupLabels=Lr;t.GroupMemberRoles=qr;t.GroupMembers=Br;t.GroupMilestones=Gr;t.GroupProtectedEnvironments=Ur;t.GroupPushRules=Dr;t.GroupRelationExports=Hr;t.GroupReleases=Kr;t.GroupRepositoryStorageMoves=Yr;t.GroupSAMLIdentities=zr;t.GroupSAMLLinks=Qr;t.GroupSCIMIdentities=Vr;t.GroupServiceAccounts=Jr;t.GroupVariables=Xr;t.GroupWikis=Zr;t.Groups=Wr;t.Helm=Ve;t.Import=ae;t.InstanceLevelCICDVariables=ce;t.Integrations=Je;t.IssueAwardEmojis=Xe;t.IssueDiscussions=Ze;t.IssueIterationEvents=et;t.IssueLabelEvents=tt;t.IssueLinks=rt;t.IssueMilestoneEvents=nt;t.IssueNoteAwardEmojis=st;t.IssueNotes=ot;t.IssueStateEvents=ct;t.IssueWeightEvents=ut;t.Issues=it;t.IssuesStatistics=at;t.JobArtifacts=lt;t.Jobs=pt;t.Keys=ue;t.License=le;t.LicenseTemplates=pe;t.LinkedEpics=en;t.Lint=de;t.Markdown=fe;t.Maven=he;t.MergeRequestApprovals=dt;t.MergeRequestAwardEmojis=ft;t.MergeRequestContextCommits=ht;t.MergeRequestDiscussions=gt;t.MergeRequestDraftNotes=vt;t.MergeRequestLabelEvents=mt;t.MergeRequestMilestoneEvents=yt;t.MergeRequestNoteAwardEmojis=bt;t.MergeRequestNotes=$t;t.MergeRequests=wt;t.MergeTrains=_t;t.Metadata=ge;t.Migrations=me;t.NPM=$e;t.Namespaces=ye;t.NotificationSettings=ve;t.NuGet=be;t.PackageRegistry=St;t.Packages=At;t.PagesDomains=Et;t.PersonalAccessTokens=we;t.PipelineScheduleVariables=Rt;t.PipelineSchedules=xt;t.PipelineTriggerTokens=kt;t.Pipelines=jt;t.ProductAnalytics=It;t.ProjectAccessRequests=Pt;t.ProjectAccessTokens=Ct;t.ProjectAliases=Tt;t.ProjectBadges=Ot;t.ProjectCustomAttributes=Mt;t.ProjectDORA4Metrics=Nt;t.ProjectHooks=Lt;t.ProjectImportExports=Ft;t.ProjectInvitations=Bt;t.ProjectIssueBoards=qt;t.ProjectIterations=Gt;t.ProjectLabels=Ut;t.ProjectMembers=Dt;t.ProjectMilestones=Ht;t.ProjectProtectedEnvironments=Kt;t.ProjectPushRules=Yt;t.ProjectRelationsExport=Wt;t.ProjectReleases=zt;t.ProjectRemoteMirrors=Qt;t.ProjectRepositoryStorageMoves=Vt;t.ProjectSnippetAwardEmojis=Xt;t.ProjectSnippetDiscussions=Zt;t.ProjectSnippetNotes=er;t.ProjectSnippets=tr;t.ProjectStatistics=rr;t.ProjectTemplates=nr;t.ProjectVariables=sr;t.ProjectVulnerabilities=or;t.ProjectWikis=ir;t.Projects=Jt;t.ProtectedBranches=ar;t.ProtectedTags=cr;t.PyPI=_e;t.ReleaseLinks=ur;t.Repositories=lr;t.RepositoryFiles=pr;t.RepositorySubmodules=dr;t.ResourceGroups=fr;t.RubyGems=Se;t.Runners=hr;t.Search=Ae;t.SearchAdmin=Ee;t.SecureFiles=gr;t.ServiceAccounts=je;t.ServiceData=xe;t.SidekiqMetrics=Re;t.SidekiqQueues=ke;t.SnippetRepositoryStorageMoves=Ie;t.Snippets=Pe;t.Suggestions=Ce;t.SystemHooks=Te;t.Tags=mr;t.TodoLists=Oe;t.Topics=Me;t.UserCustomAttributes=tn;t.UserEmails=rn;t.UserGPGKeys=nn;t.UserImpersonationTokens=sn;t.UserSSHKeys=an;t.UserStarredMetricsDashboard=yr;t.Users=on},8126:(e,t,r)=>{"use strict";var n=r(891);var s=r(6308);var o=r(9490);var i=r(6674);function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a=_interopDefault(i);function formatQuery(e={}){const t=s.decamelizeKeys(e);return n.stringify(t,{arrayFormat:"brackets"})}async function defaultOptionsHandler(e,{body:t,searchParams:r,sudo:n,signal:o,asStream:i=false,method:a="GET"}={}){const{headers:c,authHeaders:u,url:l}=e;const p={...c};const d={method:a,asStream:i,signal:o,prefixUrl:l};d.headers=p;if(n)d.headers.sudo=`${n}`;if(t){if(t instanceof FormData){d.body=t}else{d.body=JSON.stringify(s.decamelizeKeys(t));d.headers["content-type"]="application/json"}}const[f,h]=Object.entries(u)[0];d.headers[f]=await h();const g=formatQuery(r);if(g)d.searchParams=g;return Promise.resolve(d)}function createRateLimiters(e={}){const t={};Object.entries(e).forEach((([e,r])=>{if(typeof r==="number")t[e]=o.RateLimit(r,{timeUnit:6e4});else t[e]={method:r.method.toUpperCase(),limit:o.RateLimit(r.limit,{timeUnit:6e4})}}));return t}function createRequesterFn(e,t){const r=["get","post","put","patch","delete"];return n=>{const s={};const o=createRateLimiters(n.rateLimits);r.forEach((r=>{s[r]=async(s,i)=>{const a=await defaultOptionsHandler(n,{...i,method:r.toUpperCase()});const c=await e(n,a);return t(s,{...c,rateLimiters:o})}}));return s}}function extendClass(e,t){return class extends e{constructor(...e){const[r,...n]=e;super({...t,...r},...n)}}}function presetResourceArguments(e,t={}){const r={};Object.entries(e).filter((([,e])=>typeof e==="function")).forEach((([e,n])=>{r[e]=extendClass(n,t)}));return r}function getMatchingRateLimiter(e,t={},r="GET"){const n=Object.keys(t).sort().reverse();const s=n.find((t=>a.default.isMatch(e,t)));const i=s&&t[s];if(i&&typeof i!=="object"){return i}if(i&&i.method.toUpperCase()===r.toUpperCase()){return i.limit}return o.RateLimit(3e3,{timeUnit:6e4})}function getDynamicToken(e){return e instanceof Function?e():Promise.resolve(e)}var c=Object.freeze({"**":3e3,"projects/import":6,"projects/*/export":6,"projects/*/download":1,"groups/import":6,"groups/*/export":6,"groups/*/download":1,"projects/*/issues/*/notes":{method:"post",limit:300},"projects/*/snippets/*/notes":{method:"post",limit:300},"projects/*/merge_requests/*/notes":{method:"post",limit:300},"groups/*/epics/*/notes":{method:"post",limit:300},"projects/*/repository/archive*":5,"projects/*/jobs":600,"projects/*/members":60,"groups/*/members":60});var u=class{url;requester;queryTimeout;headers;authHeaders;camelize;rejectUnauthorized;constructor({sudo:e,profileToken:t,camelize:r,requesterFn:n,profileMode:s="execution",host:o="https://gitlab.com",prefixUrl:i="",rejectUnauthorized:a=true,queryTimeout:u=3e5,rateLimits:l=c,...p}){if(!n)throw new ReferenceError("requesterFn must be passed");this.url=[o,"api","v4",i].join("/");this.headers={};this.authHeaders={};this.rejectUnauthorized=a;this.camelize=r;this.queryTimeout=u;if("oauthToken"in p)this.authHeaders.authorization=async()=>{const e=await getDynamicToken(p.oauthToken);return`Bearer ${e}`};else if("jobToken"in p)this.authHeaders["job-token"]=async()=>getDynamicToken(p.jobToken);else if("token"in p)this.authHeaders["private-token"]=async()=>getDynamicToken(p.token);else{throw new ReferenceError("A token, oauthToken or jobToken must be passed")}if(t){this.headers["X-Profile-Token"]=t;this.headers["X-Profile-Mode"]=s}if(e)this.headers.Sudo=`${e}`;this.requester=n({...this,rateLimits:l})}};var l=class extends Error{constructor(e,t){super(e,t);this.name="GitbeakerRequestError"}};var p=class extends Error{constructor(e){super(e);this.name="GitbeakerTimeoutError"}};var d=class extends Error{constructor(e){super(e);this.name="GitbeakerTimeoutError"}};t.BaseResource=u;t.GitbeakerRequestError=l;t.GitbeakerRetryError=d;t.GitbeakerTimeoutError=p;t.createRateLimiters=createRateLimiters;t.createRequesterFn=createRequesterFn;t.defaultOptionsHandler=defaultOptionsHandler;t.formatQuery=formatQuery;t.getMatchingRateLimiter=getMatchingRateLimiter;t.presetResourceArguments=presetResourceArguments},3532:(e,t,r)=>{"use strict";var n=r(5182);var s=r(8126);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}}))}t.default=e;return Object.freeze(t)}var o=_interopNamespace(n);async function defaultOptionsHandler(e,t){const n={...t};if(e.url.includes("https")&&e.rejectUnauthorized!=null&&e.rejectUnauthorized===false){if(typeof window!=="object"){const{Agent:e}=await Promise.resolve().then(r.t.bind(r,5692,23));n.agent=new e({rejectUnauthorized:false})}}return n}async function processBody(e){const t=(e.headers.get("content-type")||"").split(";")[0].trim();if(t==="application/json"){return e.json().then((e=>e||{}))}if(t.startsWith("text/")){return e.text().then((e=>e||""))}return e.blob()}function delay(e){return new Promise((t=>{setTimeout(t,e)}))}async function parseResponse(e,t=false){const{status:r,headers:n}=e;const s=Object.fromEntries(n.entries());let o;if(t){o=e.body}else{o=r===204?null:await processBody(e)}return{body:o,headers:s,status:r}}async function throwFailedRequestError(e,t){const r=await t.text();const n=t.headers.get("Content-Type");let o="API Request Error";if(n?.includes("application/json")){const e=JSON.parse(r);o=JSON.stringify(e.error||e.message,null,2)}else{o=r}throw new s.GitbeakerRequestError(t.statusText,{cause:{description:o,request:e,response:t}})}function getConditionalMode(e){if(e.includes("repository/archive"))return"same-origin";return void 0}async function defaultRequestHandler(e,t){const r=[429,502];const n=10;const{prefixUrl:o,asStream:i,searchParams:a,rateLimiters:c,method:u,...l}=t||{};const p=s.getMatchingRateLimiter(e,c,u);let d;if(o)d=o.endsWith("/")?o:`${o}/`;const f=new URL(e,d);f.search=a||"";const h=getConditionalMode(e);for(let e=0;e<n;e+=1){const t=new Request(f,{...l,method:u,mode:h});await p();const n=await fetch(t).catch((e=>{if(e.name==="TimeoutError"||e.name==="AbortError"){throw new s.GitbeakerTimeoutError("Query timeout was reached")}throw e}));if(n.ok)return parseResponse(n,i);if(!r.includes(n.status))await throwFailedRequestError(t,n);await delay(2**e*.25);continue}throw new s.GitbeakerRetryError(`Could not successfully complete this request due to Error 429. Check the applicable rate limits for this endpoint.`)}var i=s.createRequesterFn(defaultOptionsHandler,defaultRequestHandler);var{AccessLevel:a,...c}=o;var u=s.presetResourceArguments(c,{requesterFn:i});var l=a;var{Agents:p,AlertManagement:d,ApplicationAppearance:f,ApplicationPlanLimits:h,Applications:g,ApplicationSettings:m,ApplicationStatistics:y,AuditEvents:v,Avatar:$,BroadcastMessages:b,CodeSuggestions:w,Composer:_,Conan:S,DashboardAnnotations:A,Debian:j,DependencyProxy:x,DeployKeys:R,DeployTokens:k,DockerfileTemplates:I,Events:P,Experiments:C,GeoNodes:T,GeoSites:O,GitignoreTemplates:M,GitLabCIYMLTemplates:N,Import:L,InstanceLevelCICDVariables:B,Keys:q,License:G,LicenseTemplates:U,Lint:D,Markdown:H,Maven:K,Metadata:Y,Migrations:W,Namespaces:z,NotificationSettings:Q,NPM:V,NuGet:J,PersonalAccessTokens:X,PyPI:Z,RubyGems:ee,Search:te,SearchAdmin:re,ServiceAccounts:ne,ServiceData:se,SidekiqMetrics:oe,SidekiqQueues:ie,SnippetRepositoryStorageMoves:ae,Snippets:ce,Suggestions:ue,SystemHooks:le,TodoLists:pe,Topics:de,Branches:fe,CommitDiscussions:he,Commits:ge,ContainerRegistry:me,Deployments:ye,Environments:ve,ErrorTrackingClientKeys:$e,ErrorTrackingSettings:be,ExternalStatusChecks:we,FeatureFlags:_e,FeatureFlagUserLists:Se,FreezePeriods:Ae,GitlabPages:Ee,GoProxy:je,Helm:xe,Integrations:Re,IssueAwardEmojis:ke,IssueDiscussions:Ie,IssueIterationEvents:Pe,IssueLabelEvents:Ce,IssueLinks:Te,IssueMilestoneEvents:Oe,IssueNoteAwardEmojis:Me,IssueNotes:Ne,Issues:Le,IssuesStatistics:Fe,IssueStateEvents:Be,IssueWeightEvents:qe,JobArtifacts:Ge,Jobs:Ue,MergeRequestApprovals:De,MergeRequestAwardEmojis:He,MergeRequestContextCommits:Ke,MergeRequestDiscussions:Ye,MergeRequestLabelEvents:We,MergeRequestMilestoneEvents:ze,MergeRequestDraftNotes:Qe,MergeRequestNotes:Ve,MergeRequestNoteAwardEmojis:Je,MergeRequests:Xe,MergeTrains:Ze,PackageRegistry:et,Packages:tt,PagesDomains:rt,Pipelines:nt,PipelineSchedules:st,PipelineScheduleVariables:ot,PipelineTriggerTokens:it,ProductAnalytics:at,ProjectAccessRequests:ct,ProjectAccessTokens:ut,ProjectAliases:lt,ProjectBadges:pt,ProjectCustomAttributes:dt,ProjectDORA4Metrics:ft,ProjectHooks:ht,ProjectImportExports:gt,ProjectInvitations:mt,ProjectIssueBoards:yt,ProjectIterations:vt,ProjectLabels:$t,ProjectMembers:bt,ProjectMilestones:wt,ProjectProtectedEnvironments:_t,ProjectPushRules:St,ProjectRelationsExport:At,ProjectReleases:Et,ProjectRemoteMirrors:jt,ProjectRepositoryStorageMoves:xt,Projects:Rt,ProjectSnippetAwardEmojis:kt,ProjectSnippetDiscussions:It,ProjectSnippetNotes:Pt,ProjectSnippets:Ct,ProjectStatistics:Tt,ProjectTemplates:Ot,ProjectVariables:Mt,ProjectVulnerabilities:Nt,ProjectWikis:Lt,ProtectedBranches:Ft,ProtectedTags:Bt,ReleaseLinks:qt,Repositories:Gt,RepositoryFiles:Ut,RepositorySubmodules:Dt,ResourceGroups:Ht,Runners:Kt,SecureFiles:Yt,Tags:Wt,UserStarredMetricsDashboard:zt,EpicAwardEmojis:Qt,EpicDiscussions:Vt,EpicIssues:Jt,EpicLabelEvents:Xt,EpicLinks:Zt,EpicNotes:er,Epics:tr,GroupAccessRequests:rr,GroupAccessTokens:nr,GroupActivityAnalytics:sr,GroupBadges:or,GroupCustomAttributes:ir,GroupDORA4Metrics:ar,GroupEpicBoards:cr,GroupHooks:ur,GroupImportExports:lr,GroupInvitations:pr,GroupIssueBoards:dr,GroupIterations:fr,GroupLabels:hr,GroupLDAPLinks:gr,GroupMembers:mr,GroupMemberRoles:yr,GroupMilestones:vr,GroupProtectedEnvironments:$r,GroupPushRules:br,GroupRelationExports:wr,GroupReleases:_r,GroupRepositoryStorageMoves:Sr,Groups:Ar,GroupSAMLIdentities:Er,GroupSAMLLinks:jr,GroupSCIMIdentities:xr,GroupServiceAccounts:Rr,GroupVariables:kr,GroupWikis:Ir,LinkedEpics:Pr,UserCustomAttributes:Cr,UserEmails:Tr,UserGPGKeys:Or,UserImpersonationTokens:Mr,Users:Nr,UserSSHKeys:Lr,Gitlab:Fr}=u;t.AccessLevel=l;t.Agents=p;t.AlertManagement=d;t.ApplicationAppearance=f;t.ApplicationPlanLimits=h;t.ApplicationSettings=m;t.ApplicationStatistics=y;t.Applications=g;t.AuditEvents=v;t.Avatar=$;t.Branches=fe;t.BroadcastMessages=b;t.CodeSuggestions=w;t.CommitDiscussions=he;t.Commits=ge;t.Composer=_;t.Conan=S;t.ContainerRegistry=me;t.DashboardAnnotations=A;t.Debian=j;t.DependencyProxy=x;t.DeployKeys=R;t.DeployTokens=k;t.Deployments=ye;t.DockerfileTemplates=I;t.Environments=ve;t.EpicAwardEmojis=Qt;t.EpicDiscussions=Vt;t.EpicIssues=Jt;t.EpicLabelEvents=Xt;t.EpicLinks=Zt;t.EpicNotes=er;t.Epics=tr;t.ErrorTrackingClientKeys=$e;t.ErrorTrackingSettings=be;t.Events=P;t.Experiments=C;t.ExternalStatusChecks=we;t.FeatureFlagUserLists=Se;t.FeatureFlags=_e;t.FreezePeriods=Ae;t.GeoNodes=T;t.GeoSites=O;t.GitLabCIYMLTemplates=N;t.GitignoreTemplates=M;t.Gitlab=Fr;t.GitlabPages=Ee;t.GoProxy=je;t.GroupAccessRequests=rr;t.GroupAccessTokens=nr;t.GroupActivityAnalytics=sr;t.GroupBadges=or;t.GroupCustomAttributes=ir;t.GroupDORA4Metrics=ar;t.GroupEpicBoards=cr;t.GroupHooks=ur;t.GroupImportExports=lr;t.GroupInvitations=pr;t.GroupIssueBoards=dr;t.GroupIterations=fr;t.GroupLDAPLinks=gr;t.GroupLabels=hr;t.GroupMemberRoles=yr;t.GroupMembers=mr;t.GroupMilestones=vr;t.GroupProtectedEnvironments=$r;t.GroupPushRules=br;t.GroupRelationExports=wr;t.GroupReleases=_r;t.GroupRepositoryStorageMoves=Sr;t.GroupSAMLIdentities=Er;t.GroupSAMLLinks=jr;t.GroupSCIMIdentities=xr;t.GroupServiceAccounts=Rr;t.GroupVariables=kr;t.GroupWikis=Ir;t.Groups=Ar;t.Helm=xe;t.Import=L;t.InstanceLevelCICDVariables=B;t.Integrations=Re;t.IssueAwardEmojis=ke;t.IssueDiscussions=Ie;t.IssueIterationEvents=Pe;t.IssueLabelEvents=Ce;t.IssueLinks=Te;t.IssueMilestoneEvents=Oe;t.IssueNoteAwardEmojis=Me;t.IssueNotes=Ne;t.IssueStateEvents=Be;t.IssueWeightEvents=qe;t.Issues=Le;t.IssuesStatistics=Fe;t.JobArtifacts=Ge;t.Jobs=Ue;t.Keys=q;t.License=G;t.LicenseTemplates=U;t.LinkedEpics=Pr;t.Lint=D;t.Markdown=H;t.Maven=K;t.MergeRequestApprovals=De;t.MergeRequestAwardEmojis=He;t.MergeRequestContextCommits=Ke;t.MergeRequestDiscussions=Ye;t.MergeRequestDraftNotes=Qe;t.MergeRequestLabelEvents=We;t.MergeRequestMilestoneEvents=ze;t.MergeRequestNoteAwardEmojis=Je;t.MergeRequestNotes=Ve;t.MergeRequests=Xe;t.MergeTrains=Ze;t.Metadata=Y;t.Migrations=W;t.NPM=V;t.Namespaces=z;t.NotificationSettings=Q;t.NuGet=J;t.PackageRegistry=et;t.Packages=tt;t.PagesDomains=rt;t.PersonalAccessTokens=X;t.PipelineScheduleVariables=ot;t.PipelineSchedules=st;t.PipelineTriggerTokens=it;t.Pipelines=nt;t.ProductAnalytics=at;t.ProjectAccessRequests=ct;t.ProjectAccessTokens=ut;t.ProjectAliases=lt;t.ProjectBadges=pt;t.ProjectCustomAttributes=dt;t.ProjectDORA4Metrics=ft;t.ProjectHooks=ht;t.ProjectImportExports=gt;t.ProjectInvitations=mt;t.ProjectIssueBoards=yt;t.ProjectIterations=vt;t.ProjectLabels=$t;t.ProjectMembers=bt;t.ProjectMilestones=wt;t.ProjectProtectedEnvironments=_t;t.ProjectPushRules=St;t.ProjectRelationsExport=At;t.ProjectReleases=Et;t.ProjectRemoteMirrors=jt;t.ProjectRepositoryStorageMoves=xt;t.ProjectSnippetAwardEmojis=kt;t.ProjectSnippetDiscussions=It;t.ProjectSnippetNotes=Pt;t.ProjectSnippets=Ct;t.ProjectStatistics=Tt;t.ProjectTemplates=Ot;t.ProjectVariables=Mt;t.ProjectVulnerabilities=Nt;t.ProjectWikis=Lt;t.Projects=Rt;t.ProtectedBranches=Ft;t.ProtectedTags=Bt;t.PyPI=Z;t.ReleaseLinks=qt;t.Repositories=Gt;t.RepositoryFiles=Ut;t.RepositorySubmodules=Dt;t.ResourceGroups=Ht;t.RubyGems=ee;t.Runners=Kt;t.Search=te;t.SearchAdmin=re;t.SecureFiles=Yt;t.ServiceAccounts=ne;t.ServiceData=se;t.SidekiqMetrics=oe;t.SidekiqQueues=ie;t.SnippetRepositoryStorageMoves=ae;t.Snippets=ce;t.Suggestions=ue;t.SystemHooks=le;t.Tags=Wt;t.TodoLists=pe;t.Topics=de;t.UserCustomAttributes=Cr;t.UserEmails=Tr;t.UserGPGKeys=Or;t.UserImpersonationTokens=Mr;t.UserSSHKeys=Lr;t.UserStarredMetricsDashboard=zt;t.Users=Nr},9490:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.RateLimit=t.Sema=void 0;const s=n(r(4434));function arrayMove(e,t,r,n,s){for(let o=0;o<s;++o){r[o+n]=e[o+t];e[o+t]=void 0}}function pow2AtLeast(e){e=e>>>0;e=e-1;e=e|e>>1;e=e|e>>2;e=e|e>>4;e=e|e>>8;e=e|e>>16;return e+1}function getCapacity(e){return pow2AtLeast(Math.min(Math.max(16,e),1073741824))}class Deque{constructor(e){this._capacity=getCapacity(e);this._length=0;this._front=0;this.arr=[]}push(e){const t=this._length;this.checkCapacity(t+1);const r=this._front+t&this._capacity-1;this.arr[r]=e;this._length=t+1;return t+1}pop(){const e=this._length;if(e===0){return void 0}const t=this._front+e-1&this._capacity-1;const r=this.arr[t];this.arr[t]=void 0;this._length=e-1;return r}shift(){const e=this._length;if(e===0){return void 0}const t=this._front;const r=this.arr[t];this.arr[t]=void 0;this._front=t+1&this._capacity-1;this._length=e-1;return r}get length(){return this._length}checkCapacity(e){if(this._capacity<e){this.resizeTo(getCapacity(this._capacity*1.5+16))}}resizeTo(e){const t=this._capacity;this._capacity=e;const r=this._front;const n=this._length;if(r+n>t){const e=r+n&t-1;arrayMove(this.arr,0,this.arr,t,e)}}}class ReleaseEmitter extends s.default{}function isFn(e){return typeof e==="function"}function defaultInit(){return"1"}class Sema{constructor(e,{initFn:t=defaultInit,pauseFn:r,resumeFn:n,capacity:s=10}={}){if(isFn(r)!==isFn(n)){throw new Error("pauseFn and resumeFn must be both set for pausing")}this.nrTokens=e;this.free=new Deque(e);this.waiting=new Deque(s);this.releaseEmitter=new ReleaseEmitter;this.noTokens=t===defaultInit;this.pauseFn=r;this.resumeFn=n;this.paused=false;this.releaseEmitter.on("release",(e=>{const t=this.waiting.shift();if(t){t.resolve(e)}else{if(this.resumeFn&&this.paused){this.paused=false;this.resumeFn()}this.free.push(e)}}));for(let r=0;r<e;r++){this.free.push(t())}}tryAcquire(){return this.free.pop()}async acquire(){let e=this.tryAcquire();if(e!==void 0){return e}return new Promise(((e,t)=>{if(this.pauseFn&&!this.paused){this.paused=true;this.pauseFn()}this.waiting.push({resolve:e,reject:t})}))}release(e){this.releaseEmitter.emit("release",this.noTokens?"1":e)}drain(){const e=new Array(this.nrTokens);for(let t=0;t<this.nrTokens;t++){e[t]=this.acquire()}return Promise.all(e)}nrWaiting(){return this.waiting.length}}t.Sema=Sema;function RateLimit(e,{timeUnit:t=1e3,uniformDistribution:r=false}={}){const n=new Sema(r?1:e);const s=r?t/e:t;return async function rl(){await n.acquire();setTimeout((()=>n.release()),s)}}t.RateLimit=RateLimit},8671:(e,t,r)=>{"use strict";const n=r(3062);const s=r(4898);const o=r(5331);const i=r(168);const braces=(e,t={})=>{let r=[];if(Array.isArray(e)){for(const n of e){const e=braces.create(n,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(braces.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};braces.parse=(e,t={})=>i(e,t);braces.stringify=(e,t={})=>{if(typeof e==="string"){return n(braces.parse(e,t),t)}return n(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return s(e,t)};braces.expand=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}let r=o(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r};braces.create=(e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?braces.compile(e,t):braces.expand(e,t)};e.exports=braces},4898:(e,t,r)=>{"use strict";const n=r(9730);const s=r(2474);const compile=(e,t={})=>{const walk=(e,r={})=>{const o=s.isInvalidBrace(r);const i=e.invalid===true&&t.escapeInvalid===true;const a=o===true||i===true;const c=t.escapeInvalid===true?"\\":"";let u="";if(e.isOpen===true){return c+e.value}if(e.isClose===true){console.log("node.isClose",c,e.value);return c+e.value}if(e.type==="open"){return a?c+e.value:"("}if(e.type==="close"){return a?c+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":a?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){const r=s.reduce(e.nodes);const o=n(...r,{...t,wrap:false,toRegex:true,strictZeros:true});if(o.length!==0){return r.length>1&&o.length>1?`(${o})`:o}}if(e.nodes){for(const t of e.nodes){u+=walk(t,e)}}return u};return walk(e)};e.exports=compile},1778:e=>{"use strict";e.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5331:(e,t,r)=>{"use strict";const n=r(9730);const s=r(3062);const o=r(2474);const append=(e="",t="",r=false)=>{const n=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?o.flatten(t).map((e=>`{${e}}`)):t}for(const s of e){if(Array.isArray(s)){for(const e of s){n.push(append(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;n.push(Array.isArray(e)?append(s,e,r):s+e)}}}return o.flatten(n)};const expand=(e,t={})=>{const r=t.rangeLimit===undefined?1e3:t.rangeLimit;const walk=(e,i={})=>{e.queue=[];let a=i;let c=i.queue;while(a.type!=="brace"&&a.type!=="root"&&a.parent){a=a.parent;c=a.queue}if(e.invalid||e.dollar){c.push(append(c.pop(),s(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){c.push(append(c.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){const i=o.reduce(e.nodes);if(o.exceedsLimit(...i,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let a=n(...i,t);if(a.length===0){a=s(e,t)}c.push(append(c.pop(),a));e.nodes=[];return}const u=o.encloseBrace(e);let l=e.queue;let p=e;while(p.type!=="brace"&&p.type!=="root"&&p.parent){p=p.parent;l=p.queue}for(let t=0;t<e.nodes.length;t++){const r=e.nodes[t];if(r.type==="comma"&&e.type==="brace"){if(t===1)l.push("");l.push("");continue}if(r.type==="close"){c.push(append(c.pop(),l,u));continue}if(r.value&&r.type!=="open"){l.push(append(l.pop(),r.value));continue}if(r.nodes){walk(r,e)}}return l};return o.flatten(walk(e))};e.exports=expand},168:(e,t,r)=>{"use strict";const n=r(3062);const{MAX_LENGTH:s,CHAR_BACKSLASH:o,CHAR_BACKTICK:i,CHAR_COMMA:a,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=r(1778);const parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}const r=t||{};const $=typeof r.maxLength==="number"?Math.min(s,r.maxLength):s;if(e.length>$){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${$})`)}const b={type:"root",input:e,nodes:[]};const w=[b];let _=b;let S=b;let A=0;const j=e.length;let x=0;let R=0;let k;const advance=()=>e[x++];const push=e=>{if(e.type==="text"&&S.type==="dot"){S.type="text"}if(S&&S.type==="text"&&e.type==="text"){S.value+=e.value;return}_.nodes.push(e);e.parent=_;e.prev=S;S=e;return e};push({type:"bos"});while(x<j){_=w[w.length-1];k=advance();if(k===v||k===y){continue}if(k===o){push({type:"text",value:(t.keepEscaping?k:"")+advance()});continue}if(k===h){push({type:"text",value:"\\"+k});continue}if(k===f){A++;let e;while(x<j&&(e=advance())){k+=e;if(e===f){A++;continue}if(e===o){k+=advance();continue}if(e===h){A--;if(A===0){break}}}push({type:"text",value:k});continue}if(k===u){_=push({type:"paren",nodes:[]});w.push(_);push({type:"text",value:k});continue}if(k===l){if(_.type!=="paren"){push({type:"text",value:k});continue}_=w.pop();push({type:"text",value:k});_=w[w.length-1];continue}if(k===g||k===m||k===i){const e=k;let r;if(t.keepQuotes!==true){k=""}while(x<j&&(r=advance())){if(r===o){k+=r+advance();continue}if(r===e){if(t.keepQuotes===true)k+=r;break}k+=r}push({type:"text",value:k});continue}if(k===p){R++;const e=S.value&&S.value.slice(-1)==="$"||_.dollar===true;const t={type:"brace",open:true,close:false,dollar:e,depth:R,commas:0,ranges:0,nodes:[]};_=push(t);w.push(_);push({type:"open",value:k});continue}if(k===d){if(_.type!=="brace"){push({type:"text",value:k});continue}const e="close";_=w.pop();_.close=true;push({type:e,value:k});R--;_=w[w.length-1];continue}if(k===a&&R>0){if(_.ranges>0){_.ranges=0;const e=_.nodes.shift();_.nodes=[e,{type:"text",value:n(_)}]}push({type:"comma",value:k});_.commas++;continue}if(k===c&&R>0&&_.commas===0){const e=_.nodes;if(R===0||e.length===0){push({type:"text",value:k});continue}if(S.type==="dot"){_.range=[];S.value+=k;S.type="range";if(_.nodes.length!==3&&_.nodes.length!==5){_.invalid=true;_.ranges=0;S.type="text";continue}_.ranges++;_.args=[];continue}if(S.type==="range"){e.pop();const t=e[e.length-1];t.value+=S.value+k;S=t;_.ranges--;continue}push({type:"dot",value:k});continue}push({type:"text",value:k})}do{_=w.pop();if(_.type!=="root"){_.nodes.forEach((e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}}));const e=w[w.length-1];const t=e.nodes.indexOf(_);e.nodes.splice(t,1,..._.nodes)}}while(w.length>0);push({type:"eos"});return b};e.exports=parse},3062:(e,t,r)=>{"use strict";const n=r(2474);e.exports=(e,t={})=>{const stringify=(e,r={})=>{const s=t.escapeInvalid&&n.isInvalidBrace(r);const o=e.invalid===true&&t.escapeInvalid===true;let i="";if(e.value){if((s||o)&&n.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(const t of e.nodes){i+=stringify(t)}}return i};return stringify(e)}},2474:(e,t)=>{"use strict";t.isInteger=e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false};t.find=(e,t)=>e.nodes.find((e=>e.type===t));t.exceedsLimit=(e,r,n=1,s)=>{if(s===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(n)>=s};t.escapeNode=(e,t=0,r)=>{const n=e.nodes[t];if(!n)return;if(r&&n.type===r||n.type==="open"||n.type==="close"){if(n.escaped!==true){n.value="\\"+n.value;n.escaped=true}}};t.encloseBrace=e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false};t.isInvalidBrace=e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false};t.isOpenOrClose=e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true};t.reduce=e=>e.reduce(((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e}),[]);t.flatten=(...e)=>{const t=[];const flat=e=>{for(let r=0;r<e.length;r++){const n=e[r];if(Array.isArray(n)){flat(n);continue}if(n!==undefined){t.push(n)}}return t};flat(e);return t}},3845:(e,t,r)=>{"use strict";var n=r(7596);var s=r(6125);var o=s(n("String.prototype.indexOf"));e.exports=function callBoundIntrinsic(e,t){var r=n(e,!!t);if(typeof r==="function"&&o(e,".prototype.")>-1){return s(r)}return r}},6125:(e,t,r)=>{"use strict";var n=r(7797);var s=r(7596);var o=r(3798);var i=r(4785);var a=s("%Function.prototype.apply%");var c=s("%Function.prototype.call%");var u=s("%Reflect.apply%",true)||n.call(c,a);var l=r(2072);var p=s("%Math.max%");e.exports=function callBind(e){if(typeof e!=="function"){throw new i("a function is required")}var t=u(n,c,arguments);return o(t,1+p(0,e.length-(arguments.length-1)),true)};var d=function applyBind(){return u(n,a,arguments)};if(l){l(e.exports,"apply",{value:d})}else{e.exports.apply=d}},1542:(e,t,r)=>{"use strict";if(r(7914).major>=4){e.exports=r(1994)}else{e.exports=r(9304)}},1083:e=>{"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function _inherits(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var t=function(e){_inherits(ChildProcessError,e);function ChildProcessError(e,t,r,n,s){_classCallCheck(this,ChildProcessError);var o=_possibleConstructorReturn(this,(ChildProcessError.__proto__||Object.getPrototypeOf(ChildProcessError)).call(this,e));Error.captureStackTrace(o,o.constructor);o.name=o.constructor.name;o.code=t;o.childProcess=r;o.stdout=n;o.stderr=s;return o}return ChildProcessError}(Error);e.exports=t},560:(e,t,r)=>{"use strict";var n=function(){function defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(e,t,r){if(t)defineProperties(e.prototype,t);if(r)defineProperties(e,r);return e}}();var s=function get(e,t,r){if(e===null)e=Function.prototype;var n=Object.getOwnPropertyDescriptor(e,t);if(n===undefined){var s=Object.getPrototypeOf(e);if(s===null){return undefined}else{return get(s,t,r)}}else if("value"in n){return n.value}else{var o=n.get;if(o===undefined){return undefined}return o.call(r)}};function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function _inherits(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var o;if(r(7914).major>=4){o=global.Promise}else{o=r(2799)}var i=function(e){_inherits(ChildProcessPromise,e);function ChildProcessPromise(e){_classCallCheck(this,ChildProcessPromise);var t;var r;var n=_possibleConstructorReturn(this,(ChildProcessPromise.__proto__||Object.getPrototypeOf(ChildProcessPromise)).call(this,(function(n,s){t=n;r=s;if(e){e(t,r)}})));n._cpResolve=t;n._cpReject=r;n.childProcess=undefined;return n}n(ChildProcessPromise,[{key:"progress",value:function progress(e){var t=this;process.nextTick((function(){e(t.childProcess)}));return this}},{key:"then",value:function then(e,t){var r=s(ChildProcessPromise.prototype.__proto__||Object.getPrototypeOf(ChildProcessPromise.prototype),"then",this).call(this,e,t);r.childProcess=this.childProcess;return r}},{key:"catch",value:function _catch(e){var t=s(ChildProcessPromise.prototype.__proto__||Object.getPrototypeOf(ChildProcessPromise.prototype),"catch",this).call(this,e);t.childProcess=this.childProcess;return t}},{key:"done",value:function done(){this.catch((function(e){process.nextTick((function(){throw e}))}))}}]);return ChildProcessPromise}(o);i.prototype.fail=i.prototype.catch;e.exports=i},9304:(e,t,r)=>{"use strict";var n=r(5317);var s=r(349);var o=r(560);var i=r(1083);var a=Array.prototype.slice;function doExec(e,t){var r;var s=new o;var c=s._cpReject;var u=s._cpResolve;var l=a.call(t,0);l.push(callback);r=n[e].apply(n,l);function callback(e,s,o){if(e){var a=t[0]+(Array.isArray(t[1])?" "+t[1].join(" "):"");e.message+=" `"+a+"` (exited with error code "+e.code+")";e.stdout=s;e.stderr=o;var l=new i(e.message,e.code,n,s,o);c(l)}else{u({childProcess:r,stdout:s,stderr:o})}}s.childProcess=r;return s}function exec(){return doExec("exec",arguments)}function execFile(){return doExec("execFile",arguments)}function doSpawn(e,t,r,n){var s={};var a;var c=new o;var u=c._cpReject;var l=c._cpResolve;var p=n&&n.successfulExitCodes||[0];a=e(t,r,n);var d=false;var f=false;var h=n&&n.capture;if(h){for(var g=0,m=h.length;g<m;g++){var y=h[g];if(y==="stdout"){d=true}else if(y==="stderr"){f=true}}}s.childProcess=a;if(d){s.stdout="";a.stdout.on("data",(function(e){s.stdout+=e}))}if(f){s.stderr="";a.stderr.on("data",(function(e){s.stderr+=e}))}a.on("error",u);a.on("close",(function(e){if(p.indexOf(e)===-1){var n=t+(r.length?" "+r.join(" "):"");var o="`"+n+"` failed with code "+e;var c=new i(o,e,a);if(f){c.stderr=s.stderr.toString()}if(d){c.stdout=s.stdout.toString()}u(c)}else{s.code=e;l(s)}}));c.childProcess=a;return c}function spawn(e,t,r){return doSpawn(s,e,t,r)}function fork(e,t,r){return doSpawn(n.fork,e,t,r)}t.exec=exec;t.execFile=execFile;t.spawn=spawn;t.fork=fork},1793:e=>{"use strict";class ChildProcessError extends Error{constructor(e,t,r,n,s){super(e);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=t;this.childProcess=r;this.stdout=n;this.stderr=s}}e.exports=ChildProcessError},7802:(e,t,r)=>{"use strict";var n;if(r(7914).major>=4){n=global.Promise}else{n=r(2799)}class ChildProcessPromise extends n{constructor(e){var t;var r;super(((n,s)=>{t=n;r=s;if(e){e(t,r)}}));this._cpResolve=t;this._cpReject=r;this.childProcess=undefined}progress(e){process.nextTick((()=>{e(this.childProcess)}));return this}then(e,t){var r=super.then(e,t);r.childProcess=this.childProcess;return r}catch(e){var t=super.catch(e);t.childProcess=this.childProcess;return t}done(){this.catch((e=>{process.nextTick((()=>{throw e}))}))}}ChildProcessPromise.prototype.fail=ChildProcessPromise.prototype.catch;e.exports=ChildProcessPromise},1994:(e,t,r)=>{"use strict";var n=r(5317);var s=r(349);var o=r(7802);var i=r(1793);var a=Array.prototype.slice;function doExec(e,t){var r;var s=new o;var c=s._cpReject;var u=s._cpResolve;var l=a.call(t,0);l.push(callback);r=n[e].apply(n,l);function callback(e,s,o){if(e){var a=t[0]+(Array.isArray(t[1])?" "+t[1].join(" "):"");e.message+=" `"+a+"` (exited with error code "+e.code+")";e.stdout=s;e.stderr=o;var l=new i(e.message,e.code,n,s,o);c(l)}else{u({childProcess:r,stdout:s,stderr:o})}}s.childProcess=r;return s}function exec(){return doExec("exec",arguments)}function execFile(){return doExec("execFile",arguments)}function doSpawn(e,t,r,n){var s={};var a;var c=new o;var u=c._cpReject;var l=c._cpResolve;var p=n&&n.successfulExitCodes||[0];a=e(t,r,n);var d=false;var f=false;var h=n&&n.capture;if(h){for(var g=0,m=h.length;g<m;g++){var y=h[g];if(y==="stdout"){d=true}else if(y==="stderr"){f=true}}}s.childProcess=a;if(d){s.stdout="";a.stdout.on("data",(function(e){s.stdout+=e}))}if(f){s.stderr="";a.stderr.on("data",(function(e){s.stderr+=e}))}a.on("error",u);a.on("close",(function(e){if(p.indexOf(e)===-1){var n=t+(r.length?" "+r.join(" "):"");var o="`"+n+"` failed with code "+e;var c=new i(o,e,a);if(f){c.stderr=s.stderr.toString()}if(d){c.stdout=s.stdout.toString()}u(c)}else{s.code=e;l(s)}}));c.childProcess=a;return c}function spawn(e,t,r){return doSpawn(s,e,t,r)}function fork(e,t,r){return doSpawn(n.fork,e,t,r)}t.exec=exec;t.execFile=execFile;t.spawn=spawn;t.fork=fork},349:(e,t,r)=>{"use strict";var n=r(5317);var s=r(5386);var o=r(232);var i=n.spawnSync;function spawn(e,t,r){var i;var a;i=s(e,t,r);a=n.spawn(i.command,i.args,i.options);o.hookChildProcess(a,i);return a}function spawnSync(e,t,n){var a;var c;if(!i){try{i=r(8426)}catch(e){throw new Error("In order to use spawnSync on node 0.10 or older, you must "+"install spawn-sync:\n\n"+" npm install spawn-sync --save")}}a=s(e,t,n);c=i(a.command,a.args,a.options);c.error=c.error||o.verifyENOENTSync(c.status,a);return c}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=s;e.exports._enoent=o},232:(e,t,r)=>{"use strict";var n=process.platform==="win32";var s=r(6172);var o=process.version.indexOf("v0.10.")===0;function notFoundError(e,t){var r;r=new Error(t+" "+e+" ENOENT");r.code=r.errno="ENOENT";r.syscall=t+" "+e;return r}function hookChildProcess(e,t){var r;if(!n){return}r=e.emit;e.emit=function(n,s){var o;if(n==="exit"){o=verifyENOENT(s,t,"spawn");if(o){return r.call(e,"error",o)}}return r.apply(e,arguments)}}function verifyENOENT(e,t){if(n&&e===1&&!t.file){return notFoundError(t.original,"spawn")}return null}function verifyENOENTSync(e,t){if(n&&e===1&&!t.file){return notFoundError(t.original,"spawnSync")}if(o&&e===-1){t.file=n?t.file:s(t.original);if(!t.file){return notFoundError(t.original,"spawnSync")}}return null}e.exports.hookChildProcess=hookChildProcess;e.exports.verifyENOENT=verifyENOENT;e.exports.verifyENOENTSync=verifyENOENTSync;e.exports.notFoundError=notFoundError},4269:e=>{"use strict";e.exports=function(){if(process.platform!=="win32"){return false}var e=process.version.substr(1).split(".").map((function(e){return parseInt(e,10)}));return e[0]===0&&e[1]<12}()},5386:(e,t,r)=>{"use strict";var n=r(9896);var s=r(9939);var o=r(6172);var i=r(4269);var a=process.platform==="win32";var c=new s({max:50,maxAge:30*1e3});function readShebang(e){var t;var r;var s;var o;if(c.has(e)){return c.get(e)}t=new Buffer(150);try{r=n.openSync(e,"r");n.readSync(r,t,0,150,0);n.closeSync(r)}catch(e){}s=t.toString().trim().match(/#!(.+)/i);if(s){o=s[1].replace(/\/usr\/bin\/env\s+/i,"")}c.set(e,o);return o}function escapeArg(e,t){e=""+e;if(!t){e=e.replace(/([\(\)%!\^<>&|;,"'\s])/g,"^$1")}else{e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e='"'+e+'"'}return e}function escapeCommand(e){return/^[a-z0-9_-]+$/i.test(e)?e:escapeArg(e,true)}function requiresShell(e){return!/\.(?:com|exe)$/i.test(e)}function parse(e,t,r){var n;var s;var c;var u;var l;if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=r||{};u=e;if(a){c=o(e);c=c||o(e,true);n=c&&readShebang(c);l=r.shell||i;if(n){t.unshift(c);e=n;l=l||requiresShell(o(n)||o(n,true))}else{l=l||requiresShell(c)}if(l){s=e!=="echo";e=escapeCommand(e);t=t.map((function(e){return escapeArg(e,s)}));t=["/s","/c",'"'+e+(t.length?" "+t.join(" "):"")+'"'];e=process.env.comspec||"cmd.exe";r.windowsVerbatimArguments=true}}return{command:e,args:t,options:r,file:c,original:u}}e.exports=parse},6172:(e,t,r)=>{"use strict";var n=r(6928);var s=r(2871);var o=r(9939);var i=new o({max:50,maxAge:30*1e3});function resolveCommand(e,t){var r;t=!!t;r=i.get(e+"!"+t);if(i.has(e)){return i.get(e)}try{r=!t?s.sync(e):s.sync(e,{pathExt:n.delimiter+(process.env.PATHEXT||"")})}catch(e){}i.set(e+"!"+t,r);return r}e.exports=resolveCommand},2071:(e,t,r)=>{"use strict";var n=r(2072);var s=r(9546);var o=r(4785);var i=r(5583);e.exports=function defineDataProperty(e,t,r){if(!e||typeof e!=="object"&&typeof e!=="function"){throw new o("`obj` must be an object or a function`")}if(typeof t!=="string"&&typeof t!=="symbol"){throw new o("`property` must be a string or a symbol`")}if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null){throw new o("`nonEnumerable`, if provided, must be a boolean or null")}if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null){throw new o("`nonWritable`, if provided, must be a boolean or null")}if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null){throw new o("`nonConfigurable`, if provided, must be a boolean or null")}if(arguments.length>6&&typeof arguments[6]!=="boolean"){throw new o("`loose`, if provided, must be a boolean")}var a=arguments.length>3?arguments[3]:null;var c=arguments.length>4?arguments[4]:null;var u=arguments.length>5?arguments[5]:null;var l=arguments.length>6?arguments[6]:false;var p=!!i&&i(e,t);if(n){n(e,t,{configurable:u===null&&p?p.configurable:!u,enumerable:a===null&&p?p.enumerable:!a,value:r,writable:c===null&&p?p.writable:!c})}else if(l||!a&&!c&&!u){e[t]=r}else{throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}},2072:(e,t,r)=>{"use strict";var n=r(7596);var s=n("%Object.defineProperty%",true)||false;if(s){try{s({},"a",{value:1})}catch(e){s=false}}e.exports=s},1247:e=>{"use strict";e.exports=EvalError},6621:e=>{"use strict";e.exports=Error},6136:e=>{"use strict";e.exports=RangeError},252:e=>{"use strict";e.exports=ReferenceError},9546:e=>{"use strict";e.exports=SyntaxError},4785:e=>{"use strict";e.exports=TypeError},1223:e=>{"use strict";e.exports=URIError},9730:(e,t,r)=>{"use strict";
|
|
1
|
+
(()=>{var __webpack_modules__={403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gitConfigSet=t.gitConfigGet=void 0;const n=r(1542);const argsJoin=e=>e.filter(Boolean).join(" ");async function gitConfigGet(e,{location:t}={}){const{stdout:r}=await(0,n.exec)(`git config --get ${argsJoin([t?`--${t}`:undefined])} ${e}`);return r.trim()}t.gitConfigGet=gitConfigGet;const gitConfigSet=(e,t,{location:r,comment:s}={})=>(0,n.exec)(`git config --set ${argsJoin([r?`--${r}`:undefined,s?`--comment=${s}`:undefined])} ${e} ${t}`);t.gitConfigSet=gitConfigSet},6884:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gitProjectInformation=t.getGitRemoteHostAndPath=t.getProjectRootPath=void 0;const n=r(403);const s=r(1542);const getProjectRootPath=async()=>{const{stdout:e}=await(0,s.exec)(`git rev-parse --show-toplevel`);return e.trim()};t.getProjectRootPath=getProjectRootPath;const getGitRemoteHostAndPath=async(e="origin")=>{var t;const r=await(0,n.gitConfigGet)(`remote.${e}.url`);const s=/(https:\/\/|git@)([^:/]+)[:/]([^.]*)(\.git)?/;const o=(t=r.match(s))!==null&&t!==void 0?t:[];const[,,i,a]=o;if(!(i===null||i===void 0?void 0:i.length)||!(a===null||a===void 0?void 0:a.length)){throw new Error(`Failed to parse git remote hostname and path from git configs remote.${e}.url! ${r}`)}return{gitRemoteHost:i,gitRemotePath:a}};t.getGitRemoteHostAndPath=getGitRemoteHostAndPath;const gitProjectInformation=async()=>{const[{gitRemoteHost:e,gitRemotePath:r},n]=await Promise.all([(0,t.getGitRemoteHostAndPath)(),(0,t.getProjectRootPath)()]);return{gitRemoteHost:e,gitRemotePath:r,projectRootPath:n}};t.gitProjectInformation=gitProjectInformation},3961:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseNpmPublishArgs=t.npmPublishJob=t.DEFAULT_NPM_REGISTRY=void 0;const n=r(5317);const s=r(1943);const o=r(6928);const i=r(1535);t.DEFAULT_NPM_REGISTRY="https://registry.npmjs.org/";const readCiContext=e=>{var t,r,n,s;const o=process.env;if(o.GITLAB_CI==="true"){return{ciTag:o.CI_COMMIT_TAG||null,refSlug:(t=o.CI_COMMIT_REF_SLUG)!==null&&t!==void 0?t:"",shortSha:(r=o.CI_COMMIT_SHORT_SHA)!==null&&r!==void 0?r:""}}if(o.GITHUB_ACTIONS==="true"){return{ciTag:o.GITHUB_REF_TYPE==="tag"?(n=o.GITHUB_REF_NAME)!==null&&n!==void 0?n:null:null,refSlug:(0,i.slugifyRef)(o.GITHUB_HEAD_REF||o.GITHUB_REF_NAME||""),shortSha:((s=o.GITHUB_SHA)!==null&&s!==void 0?s:"").slice(0,8)}}throw new Error(`publish npm for "${e.dir}" must run in a gitlab or github CI job (no CI provider detected)`)};const setPackageVersion=async(e,t)=>{const r=(0,o.join)(e,"package.json");const n=JSON.parse(await(0,s.readFile)(r,"utf-8"));n.version=t;await(0,s.writeFile)(r,JSON.stringify(n,null,2)+"\n");return n.name};const writeNpmrc=async(e,t)=>{const r=t.replace(/^https?:/,"").replace(/\/?$/,"/");const n=(0,o.resolve)(e,".npmrc");await(0,s.writeFile)(n,`${r}:_authToken=\${NPM_TOKEN}\n`);return n};const hasOidcCredentials=()=>!!process.env.ACTIONS_ID_TOKEN_REQUEST_URL&&!!process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;const npmPublish=(e,t,r)=>new Promise(((s,o)=>{const i=(0,n.spawn)("npm",["publish",...r],{cwd:e,stdio:"inherit",env:{...process.env,...t?{NPM_CONFIG_USERCONFIG:t}:{}}});i.on("error",o);i.on("exit",(e=>e===0?s():o(new Error(`npm publish exited with ${e}`))))}));const npmPublishJob=async e=>{var r,n;const s=hasOidcCredentials();if(!s&&!process.env.NPM_TOKEN){throw new Error("NPM_TOKEN is not set â configure it as a catladder secret for this component, or publish from a workflow registered as a trusted publisher on npm")}const o=(r=e.registry)!==null&&r!==void 0?r:t.DEFAULT_NPM_REGISTRY;const a=(0,i.computeNpmPublishPlan)({envType:e.envType,distTagOverride:e.distTag,...readCiContext(e)});const c=await setPackageVersion(e.dir,a.version);const u=s&&!process.env.NPM_TOKEN?undefined:await writeNpmrc(e.dir,o);console.log(`publishing ${c}@${a.version} (dist-tag ${a.distTag}) to ${o}${u?"":" via trusted publishing (OIDC)"}`);await npmPublish(e.dir,u,["--tag",a.distTag,"--access",(n=e.access)!==null&&n!==void 0?n:"public","--registry",o,"--workspaces=false"]);console.log(`published ${c}@${a.version} đ`)};t.npmPublishJob=npmPublishJob;const parseNpmPublishArgs=e=>{const t={};for(let r=0;r<e.length;r+=2){const n=e[r];const s=e[r+1];if(!(n===null||n===void 0?void 0:n.startsWith("--"))||s===undefined)return null;t[n.slice(2)]=s}const{dir:r,access:n,registry:s}=t;const o=t["env-type"];const i=t["dist-tag"];if(!r||!o)return null;return{dir:r,envType:o,access:n,registry:s,distTag:i}};t.parseNpmPublishArgs=parseNpmPublishArgs},1535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slugifyRef=t.computeNpmPublishPlan=t.BRANCH_DIST_TAGS=void 0;t.BRANCH_DIST_TAGS=["next","beta"];const computeNpmPublishPlan=e=>{var r,n;if(e.envType==="prod"||e.envType==="stage"){if(!e.ciTag){throw new Error(`npm publish for env type "${e.envType}" expects a tagged-release pipeline, but no git tag is set`)}return{version:e.ciTag.replace(/^v/,""),distTag:(r=e.distTagOverride)!==null&&r!==void 0?r:"latest"}}return{version:`0.0.0-${e.refSlug}-${e.shortSha}`,distTag:(n=e.distTagOverride)!==null&&n!==void 0?n:t.BRANCH_DIST_TAGS.includes(e.refSlug)?e.refSlug:"canary"}};t.computeNpmPublishPlan=computeNpmPublishPlan;const slugifyRef=e=>e.toLowerCase().replace(/[^0-9a-z]/g,"-").slice(0,63).replace(/^-+|-+$/g,"");t.slugifyRef=slugifyRef},118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.runChangesetCheck=t.CHANGESET_CHECK_MARKER=void 0;const n=r(4423);t.CHANGESET_CHECK_MARKER="\x3c!-- catladder-changeset-check --\x3e";const runChangesetCheck=({addedFiles:e,pending:r,lastTag:s,requestLabel:o,packageManager:i})=>{const a=e.length>0;const c=[t.CHANGESET_CHECK_MARKER,"## đĻ Changeset check",""];if(a){c.push(`â
This ${o} adds ${e.length} changeset${e.length===1?"":"s"}: ${e.map((e=>`\`${e}\``)).join(", ")}`)}else{c.push(`â ī¸ **This ${o} adds no changeset.** If the change is user-facing it will be missing from the next release's changelog â add \`.changeset/<name>.md\` (or run \`${i} changeset\`). For docs/chore changes this warning can be ignored.`)}c.push("");if(r.length===0){c.push("No changesets are pending â merging will **not** trigger a release.")}else{const e=(0,n.getNextVersion)(s,(0,n.maxBump)(r.map((e=>e.bump))));c.push(`${r.length} changeset${r.length===1?" is":"s are"} pending after merge â the next release will be **v${e}**${s?` (from ${s})`:" (first release)"}:`,"","<details><summary>Changelog preview</summary>","",(0,n.renderChangelogEntries)(r),"","</details>")}return{addsChangeset:a,markdown:c.join("\n")}};t.runChangesetCheck=runChangesetCheck},291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.changesetCheckJob=t.CHANGESET_REPORT_FILE=void 0;const n=r(9896);const s=r(1943);const o=r(118);const i=r(7307);const a=r(1177);const c=r(4074);t.CHANGESET_REPORT_FILE="changeset-report.md";const onGithub=()=>process.env.GITHUB_ACTIONS==="true";const detectPackageManager=()=>(0,n.existsSync)("pnpm-lock.yaml")?"pnpm":"yarn";const getAddedChangesetFiles=async()=>{const e=onGithub()?process.env.GITHUB_BASE_REF:process.env.CI_MERGE_REQUEST_TARGET_BRANCH_NAME;if(!e){return null}await(0,a.git)("fetch","--quiet","origin",e);const t=await(0,a.git)("merge-base","HEAD","FETCH_HEAD");const r=await(0,a.git)("diff","--name-only","--diff-filter=A",t,"HEAD");return r.split("\n").filter((e=>e.startsWith(".changeset/")&&e.endsWith(".md")&&!e.toLowerCase().endsWith("readme.md"))).map((e=>e.slice(".changeset/".length)))};const findSticky=e=>e.find((e=>{var t;return(t=e.body)===null||t===void 0?void 0:t.includes(o.CHANGESET_CHECK_MARKER)}));const request=async(e,t)=>{var r;const n=await fetch(e,t);if(!n.ok){throw new Error(`${(r=t.method)!==null&&r!==void 0?r:"GET"} ${e} failed: ${n.status} ${await n.text()}`)}return n};const upsertGithubComment=async e=>{var t,r;const n=process.env.GITHUB_TOKEN;const s=(t=process.env.GITHUB_API_URL)!==null&&t!==void 0?t:"https://api.github.com";const o=process.env.GITHUB_REPOSITORY;const i=parseInt((r=process.env.GITHUB_REF_NAME)!==null&&r!==void 0?r:"");if(!n||!o||!i){console.log("no PR context/token â skipping the PR comment");return}const a={authorization:`Bearer ${n}`,accept:"application/vnd.github+json","content-type":"application/json"};const c=await(await request(`${s}/repos/${o}/issues/${i}/comments?per_page=100`,{headers:a})).json();const u=findSticky(c);if(u){await request(`${s}/repos/${o}/issues/comments/${u.id}`,{method:"PATCH",headers:a,body:JSON.stringify({body:e})})}else{await request(`${s}/repos/${o}/issues/${i}/comments`,{method:"POST",headers:a,body:JSON.stringify({body:e})})}console.log("updated the sticky PR comment")};const upsertGitlabComment=async e=>{const t=process.env.GL_TOKEN;if(!t){console.log("GL_TOKEN is not available in this pipeline â skipping the MR comment (report available in the job log and the exposed artifact)");return}const r=process.env.CI_API_V4_URL;const n=process.env.CI_PROJECT_ID;const s=process.env.CI_MERGE_REQUEST_IID;if(!r||!n||!s){console.log("no MR context â skipping the MR comment");return}const o={"PRIVATE-TOKEN":t,"content-type":"application/json"};const i=`${r}/projects/${n}/merge_requests/${s}/notes`;const a=await(await request(`${i}?per_page=100`,{headers:o})).json();const c=findSticky(a);if(c){await request(`${i}/${c.id}`,{method:"PUT",headers:o,body:JSON.stringify({body:e})})}else{await request(i,{method:"POST",headers:o,body:JSON.stringify({body:e})})}console.log("updated the sticky MR comment")};const changesetCheckJob=async()=>{await(0,a.ensureReleaseHistory)();const e=await(0,i.readPendingChangesets)();const r=await(0,a.getLastReleaseTag)();const n=await getAddedChangesetFiles();const u=(0,o.runChangesetCheck)({addedFiles:n!==null&&n!==void 0?n:[],pending:e,lastTag:r,requestLabel:onGithub()?"pull request":"merge request",packageManager:detectPackageManager()});console.log(u.markdown.replace(`${o.CHANGESET_CHECK_MARKER}\n`,""));await(0,s.writeFile)(t.CHANGESET_REPORT_FILE,u.markdown);try{if(onGithub()){await upsertGithubComment(u.markdown)}else{await upsertGitlabComment(u.markdown)}}catch(e){console.warn(`could not update the sticky comment: ${e}`)}if(n===null){console.log("not running against a merge request â check skipped");return}if(!u.addsChangeset){if(onGithub()){console.log("::warning title=No changeset::this pull request adds no changeset â "+"if the change is user-facing, add one so it appears in the next release's changelog");(0,c.appendStepSummary)(u.markdown.replace(`${o.CHANGESET_CHECK_MARKER}\n`,""));return}process.exitCode=1}};t.changesetCheckJob=changesetCheckJob},4423:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.prependToChangelog=t.renderChangelogEntries=t.getNextVersion=t.maxBump=t.parseChangesetFile=t.BUMPS=void 0;const s=n(r(492));t.BUMPS=["patch","minor","major"];const isBump=e=>t.BUMPS.includes(e);const parseChangesetFile=(e,r)=>{let n;try{n=(0,s.default)(r)}catch(t){throw new Error(`${e}: not a valid changeset (${t instanceof Error?t.message:t})`)}const o=n.releases.map((e=>e.type)).filter(isBump);if(o.length===0){throw new Error(`${e}: changeset declares no effective version bump (major|minor|patch)`)}const i=n.summary.trim();if(i===""){throw new Error(`${e}: changeset has no summary`)}return{fileName:e,bump:(0,t.maxBump)(o),summary:i}};t.parseChangesetFile=parseChangesetFile;const maxBump=e=>e.reduce(((e,r)=>t.BUMPS.indexOf(r)>t.BUMPS.indexOf(e)?r:e));t.maxBump=maxBump;const getNextVersion=(e,t)=>{if(e===null){return"1.0.0"}const r=e.match(/^v(\d+)\.(\d+)\.(\d+)$/);if(!r){throw new Error(`last release tag "${e}" is not of the form vX.Y.Z â cannot derive the next version`)}const[n,s,o]=r.slice(1).map(Number);switch(t){case"major":return`${n+1}.0.0`;case"minor":return`${n}.${s+1}.0`;case"patch":return`${n}.${s}.${o+1}`}};t.getNextVersion=getNextVersion;const o={major:"Major Changes",minor:"Minor Changes",patch:"Patch Changes"};const renderChangelogEntries=e=>[...t.BUMPS].reverse().map((t=>{const r=e.filter((e=>e.bump===t));if(r.length===0)return null;return[`### ${o[t]}`,"",...r.map((e=>`- ${e.summary.replace(/\r?\n/g,"\n ")}`))].join("\n")})).filter((e=>e!==null)).join("\n\n");t.renderChangelogEntries=renderChangelogEntries;const i="# Changelog";const prependToChangelog=(e,t,r,n)=>{const s=`## ${t} (${r})\n\n${n}\n`;const o=(e!==null&&e!==void 0?e:"").replace(new RegExp(`^${i}\\s*\\n`),"").trim();return[i,"",s+(o?"\n"+o+"\n":"")].join("\n")};t.prependToChangelog=prependToChangelog},7307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.changesetsReleaseJob=t.dispatchTaggedReleaseWorkflow=t.readPendingChangesets=void 0;const n=r(9896);const s=r(1943);const o=r(857);const i=r(6928);const a=r(4423);const c=r(1177);const u=r(881);const l=r(4074);const p=".changeset";const d="CHANGELOG.md";const f="catladder-release.yml";const readPendingChangesets=async()=>{const e=await(0,s.readdir)(p).catch((()=>[]));const t=e.filter((e=>e.endsWith(".md")&&e.toLowerCase()!=="readme.md"));return Promise.all(t.map((async e=>(0,a.parseChangesetFile)(e,await(0,s.readFile)((0,i.join)(p,e),"utf-8")))))};t.readPendingChangesets=readPendingChangesets;const ensureGitIdentity=async()=>{const e=await(0,c.git)("config","user.email").catch((()=>""));if(e!=="")return;const t=process.env.GITHUB_ACTIONS==="true";await(0,c.git)("config","user.name",t?"github-actions[bot]":"catladder");await(0,c.git)("config","user.email",t?"41898282+github-actions[bot]@users.noreply.github.com":"catladder-release@panter.ch")};const requireEnv=e=>{const t=process.env[e];if(!t){throw new Error(`${e} is not set â cannot push the release`)}return t};const pushCommitAndTag=async e=>{var t;if(process.env.GITHUB_ACTIONS==="true"){const r=requireEnv("GITHUB_REF_NAME");const n=[`HEAD:refs/heads/${r}`,e];const s=process.env.CATLADDER_RELEASE_KEY;if(s){await pushWithDeployKey(s,n);return}try{await(0,c.git)("push","--atomic","origin",...n)}catch(e){if(/GH006|protected branch/i.test(`${(t=e===null||e===void 0?void 0:e.message)!==null&&t!==void 0?t:e}`)){throw new Error(`pushing the release to '${r}' was rejected by its branch protection:\n`+`${e.message}\n`+`The workflow token cannot bypass a required status check on '${r}'. `+`Run \`catladder project setup\` to provision the release deploy key `+`(${h} secret + ruleset bypass), then rerun this job.`)}throw e}return}const r=requireEnv("GL_TOKEN");const n=requireEnv("CI_SERVER_HOST");const s=requireEnv("CI_PROJECT_PATH");const o=requireEnv("CI_COMMIT_BRANCH");const i=`https://oauth2:${r}@${n}/${s}.git`;await(0,c.git)("push","--atomic",i,`HEAD:refs/heads/${o}`,e)};const h="CATLADDER_RELEASE_KEY";const pushWithDeployKey=async(e,t)=>{var r;const n=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com";const a=new URL(n).host;const u=requireEnv("GITHUB_REPOSITORY");const l=await(0,s.mkdtemp)((0,i.join)((0,o.tmpdir)(),"release-key-"));try{const r=(0,i.join)(l,"id_ed25519");await(0,s.writeFile)(r,e.endsWith("\n")?e:`${e}\n`,{mode:384});await(0,c.gitWithEnv)({GIT_SSH_COMMAND:`ssh -i ${r} -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new`},"push","--atomic",`git@${a}:${u}.git`,...t)}finally{await(0,s.rm)(l,{recursive:true,force:true})}};const dispatchTaggedReleaseWorkflow=async e=>{var t;const r=(t=process.env.GITHUB_API_URL)!==null&&t!==void 0?t:"https://api.github.com";const n=requireEnv("GITHUB_REPOSITORY");const s=requireEnv("GITHUB_TOKEN");const o=await fetch(`${r}/repos/${n}/actions/workflows/${f}/dispatches`,{method:"POST",headers:{authorization:`Bearer ${s}`,accept:"application/vnd.github+json"},body:JSON.stringify({ref:e})});if(!o.ok){throw new Error(`dispatching ${f} for ${e} failed: ${o.status} ${await o.text()}`)}console.log(`dispatched ${f} for ${e}`)};t.dispatchTaggedReleaseWorkflow=dispatchTaggedReleaseWorkflow;const g={fileName:"",bump:"patch",summary:"Forced release without pending changesets."};const changesetsReleaseJob=async()=>{const e=await(0,t.readPendingChangesets)();const r=e.length===0&&process.env.CATLADDER_FORCE_RELEASE==="true";if(e.length===0&&!r){console.log(`no changesets found in ${p}/ â nothing to release`);console.log(`add one with \`${(0,n.existsSync)("pnpm-lock.yaml")?"pnpm":"yarn"} changeset\` (or write .changeset/<name>.md by hand) and merge it to release`);console.log("to release anyway (patch bump), run the force release job instead");(0,l.appendStepSummary)(`âšī¸ **Nothing released** â no pending changesets in \`${p}/\`. `+"Merge a changeset and release again, or force the release for a patch bump.");return}const o=r?[g]:e;if(r){console.log("no changesets pending â forced release, bumping a patch")}await(0,c.ensureReleaseHistory)();const f=await(0,c.getLastReleaseTag)();const h=(0,a.getNextVersion)(f,(0,a.maxBump)(o.map((e=>e.bump))));const m=`v${h}`;console.log(`releasing ${m} (${f!==null&&f!==void 0?f:"first release"} + ${o.length} changeset(s))`);const y=(0,a.renderChangelogEntries)(o);const v=await(0,s.readFile)(d,"utf-8").catch((()=>null));const $=(new Date).toISOString().slice(0,10);await(0,s.writeFile)(d,(0,a.prependToChangelog)(v,h,$,y));await Promise.all(e.map((e=>(0,s.rm)((0,i.join)(p,e.fileName)))));await ensureGitIdentity();if(r){await(0,c.git)("add",d)}else{await(0,c.git)("add",d,p)}const b=process.env.GITHUB_ACTIONS==="true";const w=`chore(release): ${h}${b?" [skip ci]":""}`;await(0,c.git)("commit","-m",`${w}\n\n${y}`);await(0,c.git)("tag",m);await pushCommitAndTag(m);console.log(`released ${m}`);(0,l.appendStepSummary)(`đ **Released ${m}**\n\n${y}`);await(0,u.createReleaseEntry)(m,y);if(process.env.GITHUB_ACTIONS==="true"){await(0,t.dispatchTaggedReleaseWorkflow)(m)}};t.changesetsReleaseJob=changesetsReleaseJob},7695:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.githubQueuedGuardJob=t.githubQueueCheckJob=void 0;const n=r(9896);const s=r(1177);const o=r(4074);const i="catladder-main.yml";const a="catladder-release-on-green.yml";const c="refs/catladder/release-queued";const ensureGitSafeDirectory=async()=>{await(0,s.git)("config","--global","--add","safe.directory",process.cwd())};const requireEnv=e=>{const t=process.env[e];if(!t){throw new Error(`${e} is not set`)}return t};const fail=e=>{console.error(e);process.exit(1)};const setStepOutput=(e,t)=>{const r=process.env.GITHUB_OUTPUT;if(!r){return}(0,n.appendFileSync)(r,`${e}=${t}\n`)};const getMainWorkflowRun=async e=>{var t,r,n;const s=(t=process.env.GITHUB_API_URL)!==null&&t!==void 0?t:"https://api.github.com";const o=requireEnv("GITHUB_REPOSITORY");const a=requireEnv("GITHUB_TOKEN");const c=await fetch(`${s}/repos/${o}/actions/workflows/${i}/runs?head_sha=${e}&per_page=5`,{headers:{authorization:`Bearer ${a}`,accept:"application/vnd.github+json"}});if(!c.ok){throw new Error(`listing ${i} runs failed: ${c.status} ${await c.text()}`)}const u=await c.json();return(n=(r=u.workflow_runs)===null||r===void 0?void 0:r[0])!==null&&n!==void 0?n:null};const githubQueueCheckJob=async()=>{await ensureGitSafeDirectory();const e=await(0,s.git)("rev-parse","HEAD");const t=await getMainWorkflowRun(e);if(!t){console.log(`no main workflow run found for ${e} â releasing right away`);(0,o.appendStepSummary)(`âšī¸ No main workflow run found for \`${e}\` â releasing right away.`);setStepOutput("queued","false");return}if(t.status==="completed"){if(t.conclusion==="success"){console.log(`main workflow for ${e} succeeded â releasing right away`);(0,o.appendStepSummary)(`â
The main workflow for \`${e}\` succeeded â releasing right away.`);setStepOutput("queued","false");return}(0,o.appendStepSummary)(`â Not releasing: the ${(0,o.workflowLink)(i,"main workflow")} run for \`${e}\` concluded **${t.conclusion}**. `+`Fix the pipeline, or re-run with the force checkbox to release anyway.`);fail(`the main workflow for ${e} concluded '${t.conclusion}' â `+`fix the pipeline, or force the release to release anyway`)}await(0,s.git)("push","origin",`+${e}:${c}`);const r=t.status.replace(/_/g," ");console.log(`main workflow for ${e} is ${r} â release queued: `+`the 'release on green' workflow creates the release as soon as the run succeeds`);(0,o.appendStepSummary)(`âŗ **Release queued** for \`${e}\` â the ${(0,o.workflowLink)(i,"main workflow")} run is still ${r}. `+`${(0,o.workflowLink)(a,"release on green")} creates the release as soon as it succeeds.`);setStepOutput("queued","true")};t.githubQueueCheckJob=githubQueueCheckJob;const githubQueuedGuardJob=async(e,t)=>{var r;await ensureGitSafeDirectory();const n=await(0,s.git)("ls-remote","origin",c);const i=(r=n.split(/\s+/)[0])!==null&&r!==void 0?r:"";if(!i){console.log("no release queued â nothing to do");(0,o.appendStepSummary)("No release queued â nothing to do.");setStepOutput("release","false");return}if(i!==e){console.log(`queued release is for ${i}, this run is for ${e} â leaving the queue untouched`);(0,o.appendStepSummary)(`Queued release is for \`${i}\`, this run is for \`${e}\` â leaving the queue untouched.`);setStepOutput("release","false");return}await(0,s.git)("push","origin",`:${c}`);if(t!=="success"){(0,o.appendStepSummary)(`â Queued release for \`${e}\` **not executed**: the main workflow concluded **${t}**. `+`Fix the pipeline and queue again via the đ create release workflow.`);fail(`queued release not executed: the main workflow concluded '${t}' â `+`fix the pipeline and queue the release again`)}console.log(`main workflow for ${e} succeeded â releasing`);(0,o.appendStepSummary)(`â
Main workflow for \`${e}\` succeeded â running the queued release.`);setStepOutput("release","true")};t.githubQueuedGuardJob=githubQueuedGuardJob},881:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createReleaseEntry=void 0;const post=async(e,t,r)=>{const n=await fetch(e,{method:"POST",headers:{"content-type":"application/json",...t},body:JSON.stringify(r)});if(!n.ok){throw new Error(`POST ${e} failed: ${n.status} ${await n.text()}`)}};const createGitlabReleaseEntry=async(e,t)=>{const r=process.env.GL_TOKEN;const n=process.env.CI_API_V4_URL;const s=process.env.CI_PROJECT_ID;if(!r||!n||!s){console.warn("no GL_TOKEN / gitlab api context â skipping the release entry (the tag is pushed)");return}await post(`${n}/projects/${s}/releases`,{"PRIVATE-TOKEN":r},{tag_name:e,description:t});console.log(`created the gitlab release entry for ${e}`)};const createGithubReleaseEntry=async(e,t)=>{var r;const n=process.env.GITHUB_TOKEN;const s=(r=process.env.GITHUB_API_URL)!==null&&r!==void 0?r:"https://api.github.com";const o=process.env.GITHUB_REPOSITORY;if(!n||!o){console.warn("no GITHUB_TOKEN / repository context â skipping the release entry (the tag is pushed)");return}await post(`${s}/repos/${o}/releases`,{authorization:`Bearer ${n}`,accept:"application/vnd.github+json"},{tag_name:e,name:e,body:t});console.log(`created the github release entry for ${e}`)};const createReleaseEntry=async(e,t)=>{try{if(process.env.GITHUB_ACTIONS==="true"){await createGithubReleaseEntry(e,t)}else{await createGitlabReleaseEntry(e,t)}}catch(t){console.warn(`â ī¸ could not create the release entry for ${e}: ${t}\n`+"the release itself is done (commit, tag and changelog are pushed) â "+"create the entry by hand if you need it")}};t.createReleaseEntry=createReleaseEntry},1177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLastReleaseTag=t.ensureReleaseHistory=t.gitWithEnv=t.git=void 0;const n=r(5317);const s=r(9023);const o=(0,s.promisify)(n.execFile);const git=async(...e)=>{const{stdout:t}=await o("git",e);return t.trim()};t.git=git;const gitWithEnv=async(e,...t)=>{const{stdout:r}=await o("git",t,{env:{...process.env,...e}});return r.trim()};t.gitWithEnv=gitWithEnv;const ensureReleaseHistory=async()=>{const e=await(0,t.git)("rev-parse","--is-shallow-repository").catch((()=>"false"));try{if(e==="true"){await(0,t.git)("fetch","--quiet","--unshallow","--tags","origin")}else{await(0,t.git)("fetch","--quiet","--tags","origin")}}catch(e){console.warn(`could not fetch tags from origin (${e}) â version derivation may be wrong on a shallow clone`)}};t.ensureReleaseHistory=ensureReleaseHistory;const getLastReleaseTag=async()=>{try{return await(0,t.git)("describe","--tags","--abbrev=0","--match","v[0-9]*")}catch(e){return null}};t.getLastReleaseTag=getLastReleaseTag},4074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.workflowLink=t.appendStepSummary=void 0;const n=r(9896);const appendStepSummary=e=>{const t=process.env.GITHUB_STEP_SUMMARY;if(!t){return}(0,n.appendFileSync)(t,e+"\n")};t.appendStepSummary=appendStepSummary;const workflowLink=(e,t)=>{var r;const n=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com";const s=process.env.GITHUB_REPOSITORY;if(!s){return t}return`[${t}](${n}/${s}/actions/workflows/${e})`};t.workflowLink=workflowLink},2759:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.evaluateDocument=t.makeTemplate=void 0;const s=n(r(6743));const o=s.default;const i="â
";const a="â";const c=`${i}/${a}`;const u="@...";const l=[["Responsible",c,"Description","Note","More Information"]].concat(o.map((e=>[Array(e.responsibles).fill(u).join(", "),c,e.description,"",e.more])));function makeTable(e){const t=calculateColumnWidths(e);return`\n${makeRow(e[0],t," ")}\n${makeRow(e[0].map((()=>"")),t,"-")}\n${e.slice(1).map((e=>makeRow(e,t," "))).join("\n")}\n`}function calculateColumnWidths(e){const t=e[0].length;return Array.from({length:t},((e,t)=>t)).map((t=>Math.max(...e.map((e=>e[t].length)))))}function makeRow(e,t,r){return`| ${e.map(((e,n)=>e.padEnd(t[n],r))).join(" | ")} |`}function makeTemplate(){return`\n# Security Audit Report\n\nA security audit report document is a comprehensive assessment of an application's security posture, containing security topics that auditors can mark to indicate the state of various security aspects.\n\nIt serves as a structured guide for security team to evaluate different security factors such as authentication, authorization, data encryption, input validation, and more.\n\n## General Information\n\n- Project Owner is @...\n- Dev team:\n - @...\n - @...\n - @...\n\n## Project Security\n\n${makeTable(l)}\n\n`}t.makeTemplate=makeTemplate;function evaluateDocument(e){var t,r;const n=(r=(t=e.match(/^\s*\|.*?\|\s*$/gm))===null||t===void 0?void 0:t.map((e=>e.trim())))!==null&&r!==void 0?r:[];const s=n.map((e=>e.split("|").map((e=>e.trim())))).slice(2);const a=new Set(o.map((e=>e.description)));const l=s.map((e=>{const t=e[1].split(", ");const r=e[2];const n=e[3];const s=e[4];const o=!a.has(n);const l=!o&&!r.includes(c)&&!t.some((e=>e.includes(u)));const p=!o&&l&&r.includes(i);return{responsibles:t,answer:r,description:n,note:s,isUnknown:o,isAnswered:l,isSecured:p}}));const p=o.length;const d=l.filter((e=>e.isAnswered)).length;const f=l.filter((e=>e.isSecured)).length;const h=l.filter((e=>e.isUnknown)).length;const g=Math.round(f/p*100);return{topics:l,score:{rating:g,totalTopics:p,answeredTopics:d,securedTopics:f,unknownTopics:h}}}t.evaluateDocument=evaluateDocument},6289:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createSecurityAuditMergeRequest=t.SECURITY_AUDIT_FILE_NAME=void 0;const n=r(9226);const s=r(2759);function makeDatedBranchName(e){const t=(new Date).toISOString().slice(0,-5).replaceAll(/[:.T]/g,"-");return`${e}-${t}`}const o="Draft: chore(security): add security audit document";t.SECURITY_AUDIT_FILE_NAME="SECURITY.md";async function createSecurityAuditMergeRequest({projectId:e,mainBranch:r,userId:i,api:a}){const c=(await n.Result.wrapAsync((()=>a.MergeRequests.all({state:"opened",wip:"yes",labels:"security-audit"})))).mapErr((()=>`could not search for existing merge requests`));if(c.isErr())return c;const u=c.value[0];if(u)return(0,n.Err)(`open merge request with security audit already exists: ${u.web_url}`);const l=n.Result.wrap((()=>(0,s.makeTemplate)())).mapErr((()=>"could not make security audit template document"));if(l.isErr())return l;const p=(await n.Result.wrapAsync((()=>a.Branches.create(e,makeDatedBranchName("chore/security-audit"),r)))).mapErr((e=>{console.log(e);return"could not create branch"}));if(p.isErr())return p;const d=(await n.Result.wrapAsync((()=>a.Commits.create(e,p.value.name,"chore(security): add empty security audit document template",[{action:"create",filePath:t.SECURITY_AUDIT_FILE_NAME,content:l.value,encoding:"text"}])))).mapErr((()=>"could not create commit"));if(d.isErr())return d;const f=(await n.Result.wrapAsync((()=>a.MergeRequests.create(e,p.value.name,r,o,{description:`Please follow and update security audit document in \`${t.SECURITY_AUDIT_FILE_NAME}\`.`,assigneeId:i,squash:true,labels:"security-audit",removeSourceBranch:true})))).mapErr((()=>"could not create merge request"));return f}t.createSecurityAuditMergeRequest=createSecurityAuditMergeRequest},8725:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSecurityAuditOverview=t.evaluateSecurityAudit=void 0;const n=r(9226);const s=r(6928);const o=r(1943);const i=r(6289);const a=r(2759);async function evaluateSecurityAudit({path:e}){return(await n.Result.wrapAsync((async()=>{const t=(0,s.join)(e,i.SECURITY_AUDIT_FILE_NAME);const r=await(0,o.readFile)(t);const n=r.toString("utf-8");return(0,a.evaluateDocument)(n)}))).mapErr((e=>`could not evaluate ${i.SECURITY_AUDIT_FILE_NAME}: ${e}`))}t.evaluateSecurityAudit=evaluateSecurityAudit;function makeSecurityAuditOverview(e){const ratingToEmo=e=>e<33?"đĨ":e<66?"đ¨":"đŠ";return`Project security posture overview:\n đ§ Total topics: ${e.score.totalTopics}\n đ Secured topics: ${e.score.securedTopics}\n đĸ Answered topics: ${e.score.answeredTopics}\n â Unknown topics: ${e.score.unknownTopics}\n đ Rating: ${ratingToEmo(e.score.rating)} ${e.score.rating}/100`}t.makeSecurityAuditOverview=makeSecurityAuditOverview},6175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getGitlabHostUrl=void 0;const n=r(6884);const getGitlabHostUrl=async(e="origin")=>{const t=process.env.CI_SERVER_URL;if(t){return t.replace(/\/+$/,"")}const{gitRemoteHost:r}=await(0,n.getGitRemoteHostAndPath)(e);return`https://${r}`};t.getGitlabHostUrl=getGitlabHostUrl},492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(2146);function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var s=_interopDefault(n);const o=/\s*---([^]*?)\n\s*---(\s*(?:\n|$)[^]*)/;const i=`---\n"package-name": patch\n---`;const a=["major","minor","patch","none"];function truncate(e,t=200){return e.length>t?e.slice(0,t)+"...":e}function validateReleases(e,t){for(const r of e){if(typeof r.name!=="string"||r.name.trim()===""){throw new Error(`could not parse changeset - invalid package name in frontmatter.\n`+`Expected a non-empty string for package name, but got: ${JSON.stringify(r.name)}\n`+`Changeset contents:\n${truncate(t)}`)}if(typeof r.type!=="string"){throw new Error(`could not parse changeset - invalid release type for package "${r.name}".\n`+`Expected a string for release type, but got: ${typeof r.type}\n`+`Changeset contents:\n${truncate(t)}`)}if(!a.includes(r.type)){throw new Error(`could not parse changeset - invalid version type ${JSON.stringify(r.type)} for package "${r.name}".\n`+`Valid version types are: ${a.join(", ")}\n`+`Changeset contents:\n${truncate(t)}`)}}}function parseChangesetFile(e){const t=e.trim();if(!t){throw new Error(`could not parse changeset - file is empty.\n`+`Changesets must have frontmatter with package names and version types.\n`+`Example:\n${i}\n\nYour changeset summary here.`)}const r=o.exec(e);if(!r){throw new Error(`could not parse changeset - missing or invalid frontmatter.\n`+`Changesets must start with frontmatter delimited by "---".\n`+`Example:\n${i}\n\nYour changeset summary here.\n`+`Received content:\n${truncate(t)}`)}let[,n,a]=r;let c=a.trim();let u;let l;try{l=s["default"].load(n)}catch(e){throw new Error(`could not parse changeset - invalid YAML in frontmatter.\n`+`The frontmatter between the "---" delimiters must be valid YAML.\n`+`YAML error: ${e instanceof Error?e.message:String(e)}\n`+`Frontmatter content:\n${n}`)}if(l){if(typeof l!=="object"||Array.isArray(l)){throw new Error(`could not parse changeset - frontmatter must be an object mapping package names to version types.\n`+`Expected format:\n${i}\n`+`Received:\n${n}`)}u=Object.entries(l).map((([e,t])=>({name:e,type:t})))}else{u=[]}validateReleases(u,e);return{releases:u,summary:c}}t["default"]=parseChangesetFile},5182:(e,t,r)=>{"use strict";var n=r(8126);var s=r(6308);var o=r(891);function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var i=_interopDefault(o);function appendFormFromObject(e){const t=new FormData;Object.entries(e).forEach((([e,r])=>{if(!r)return;if(Array.isArray(r))t.append(e,r[0],r[1]);else t.append(e,r)}));return t}function endpoint(e,...t){return t.reduce(((t,r,n)=>t+encodeURIComponent(r)+e[n+1]),e[0])}function parseLinkHeader(e){const t={};const r=/<([^>]+)>; rel="([^"]+)"/g;let n;while(n=r.exec(e)){const[,e,r]=n;t[r]=e}return t}function reformatObjectOptions(e,t,r=false){const n=r?s.decamelizeKeys(e):e;return i.default.stringify({[t]:n},{encode:false}).split("&").reduce(((e,t)=>{const[r,n]=t.split("=");e[r]=n;return e}),{})}function packageResponse(e,t){return t?{data:e.body,status:e.status,headers:e.headers}:e.body}function getStream(e,t){return packageResponse(e,t)}function getSingle(e,t,r){const{status:n,headers:o}=t;let{body:i}=t;if(e)i=s.camelizeKeys(i);return packageResponse({body:i,status:n,headers:o},r)}async function getManyMore(e,t,r,n,i,a){const{sudo:c,showExpanded:u,maxPages:l,pagination:p,page:d,perPage:f,idAfter:h,orderBy:g,sort:m}=i;if(e)n.body=s.camelizeKeys(n?.body);const y=[...a||[],...n.body];const v=l&&f?y.length/+f<l:true;const{next:$=""}=parseLinkHeader(n.headers.link);if(!(d&&(a||[]).length===0)&&$&&v){const n=o.parse($.split("?")[1]);const i={...s.camelizeKeys(n)};const a={...i,maxPages:l,sudo:c,showExpanded:u};const p=await t(r,{searchParams:i,sudo:c});return getManyMore(e,t,r,p,a,y)}if(!u)return y;const b=p==="keyset"?{idAfter:h?+h:null,perPage:f?+f:null,orderBy:g,sort:m}:{total:parseInt(n.headers["x-total"],10),next:parseInt(n.headers["x-next-page"],10)||null,current:parseInt(n.headers["x-page"],10)||1,previous:parseInt(n.headers["x-prev-page"],10)||null,perPage:parseInt(n.headers["x-per-page"],10),totalPages:parseInt(n.headers["x-total-pages"],10)};return{data:y,paginationInfo:b}}function get(){return async(e,t,r)=>{const{asStream:n,sudo:s,showExpanded:o,maxPages:i,...a}=r||{};const c=e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0;const u=await e.requester.get(t,{searchParams:a,sudo:s,asStream:n,signal:c});const l=e.camelize||false;if(n)return getStream(u,o);if(!Array.isArray(u.body))return getSingle(l,u,o);const p={sudo:s,showExpanded:o,maxPages:i,...a};return getManyMore(l,((t,r)=>e.requester.get(t,{...r,signal:c})),t,u,p)}}function post(){return async(e,t,{searchParams:r,isForm:n,sudo:o,showExpanded:i,...a}={})=>{const c=n?appendFormFromObject(a):a;const u=await e.requester.post(t,{searchParams:r,body:c,sudo:o,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});if(e.camelize)u.body=s.camelizeKeys(u.body);return packageResponse(u,i)}}function put(){return async(e,t,{searchParams:r,isForm:n,sudo:o,showExpanded:i,...a}={})=>{const c=n?appendFormFromObject(a):a;const u=await e.requester.put(t,{body:c,searchParams:r,sudo:o,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});if(e.camelize)u.body=s.camelizeKeys(u.body);return packageResponse(u,i)}}function patch(){return async(e,t,{searchParams:r,isForm:n,sudo:o,showExpanded:i,...a}={})=>{const c=n?appendFormFromObject(a):a;const u=await e.requester.patch(t,{body:c,searchParams:r,sudo:o,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});if(e.camelize)u.body=s.camelizeKeys(u.body);return packageResponse(u,i)}}function del(){return async(e,t,{sudo:r,showExpanded:n,searchParams:s,...o}={})=>{const i=await e.requester.delete(t,{body:o,searchParams:s,sudo:r,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});return packageResponse(i,n)}}var a={post:post,put:put,patch:patch,get:get,del:del};var c=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/cluster_agents`,t)}allTokens(e,t,r){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens`,r)}createToken(e,t,r,n){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens`,{name:r,...n})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}`,r)}showToken(e,t,r,n){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens/${r}`,n)}register(e,t,r){return a.post()(this,endpoint`projects/${e}/cluster_agents`,{name:t,...r})}removeToken(e,t,r,n){return a.del()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens/${r}`,n)}unregister(e,t,r){return a.del()(this,endpoint`projects/${e}/cluster_agents/${t}`,r)}};var u=class extends n.BaseResource{allMetricImages(e,t,r){return a.get()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images`,r)}editMetricImage(e,t,r,n){return a.put()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images/${r}`,n)}removeMetricImage(e,t,r,n){return a.del()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images/${r}`,n)}uploadMetricImage(e,t,r,n){return a.post()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images`,{isForm:true,file:[r.content,r.filename],...n})}};var l=class extends n.BaseResource{show(e){return a.get()(this,"application/appearence",e)}edit({logo:e,pwaIcon:t,...r}={}){if(e||t){const n={...r,isForm:true};if(e)n.logo=[e.content,e.filename];if(t)n.pwaIcon=[t.content,t.filename];return a.put()(this,"application/appearence",n)}return a.put()(this,"application/appearence",r)}};var p=class extends n.BaseResource{show(e){return a.get()(this,"application/plan_limits",e)}edit(e,t={}){const{ciPipelineSize:r,ciActiveJobs:n,ciActivePipelines:s,ciProjectSubscriptions:o,ciPipelineSchedules:i,ciNeedsSizeLimit:c,ciRegisteredGroupRunners:u,ciRegisteredProjectRunners:l,conanMaxFileSize:p,genericPackagesMaxFileSize:d,helmMaxFileSize:f,mavenMaxFileSize:h,npmMaxFileSize:g,nugetMaxFileSize:m,pypiMaxFileSize:y,terraformModuleMaxFileSize:v,storageSizeLimit:$,...b}=t;return a.put()(this,"application/plan_limits",{...b,searchParams:{planName:e,ciPipelineSize:r,ciActiveJobs:n,ciActivePipelines:s,ciProjectSubscriptions:o,ciPipelineSchedules:i,ciNeedsSizeLimit:c,ciRegisteredGroupRunners:u,ciRegisteredProjectRunners:l,conanMaxFileSize:p,genericPackagesMaxFileSize:d,helmMaxFileSize:f,mavenMaxFileSize:h,npmMaxFileSize:g,nugetMaxFileSize:m,pypiMaxFileSize:y,terraformModuleMaxFileSize:v,storageSizeLimit:$}})}};var d=class extends n.BaseResource{all(e){return a.get()(this,"applications",e)}create(e,t,r,n){return a.post()(this,"applications",{name:e,redirectUri:t,scopes:r,...n})}remove(e,t){return a.del()(this,`applications/${e}`,t)}};var f=class extends n.BaseResource{show(e){return a.get()(this,"application/settings",e)}edit(e){return a.put()(this,"application/settings",e)}};var h=class extends n.BaseResource{show(e){return a.get()(this,"application/statistics",e)}};function url({projectId:e,groupId:t}={}){let r="";if(e)r=endpoint`projects/${e}/`;else if(t)r=endpoint`groups/${t}/`;return`${r}audit_events`}var g=class extends n.BaseResource{all({projectId:e,groupId:t,...r}={}){const n=url({projectId:e,groupId:t});return a.get()(this,n,r)}show(e,{projectId:t,groupId:r,...n}={}){const s=url({projectId:t,groupId:r});return a.get()(this,`${s}/${e}`,n)}};var m=class extends n.BaseResource{show(e,t){return a.get()(this,"avatar",{email:e,...t})}};var y=class extends n.BaseResource{all(e){return a.get()(this,"broadcast_messages",e)}create(e){return a.post()(this,"broadcast_messages",e)}edit(e,t){return a.put()(this,`broadcast_messages/${e}`,t)}remove(e,t){return a.del()(this,`broadcast_messages/${e}`,t)}show(e,t){return a.get()(this,`broadcast_messages/${e}`,t)}};var v=class extends n.BaseResource{createAccessToken(e){return a.post()(this,"code_suggestions/tokens",e)}generateCompletion(e){return a.post()(this,"code_suggestions/completions",e)}};var $=class extends n.BaseResource{create(e,t){return a.post()(this,endpoint`projects/${e}/packages/composer`,t)}download(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/composer/archives/${t}`,{searchParams:{sha:r},...n})}showMetadata(e,t,r){let n;if(r&&r.sha){n=endpoint`groups/${e}/-/packages/composer/${t}$${r.sha}`}else{n=endpoint`groups/${e}/-/packages/composer/p2/${t}`}return a.get()(this,n,r)}showPackages(e,t,r){return a.get()(this,endpoint`groups/${e}/-/packages/composer/p/${t}`,r)}showBaseRepository(e,t){const r={...this};if(t&&t.composerVersion==="2"){r.headers["User-Agent"]="Composer/2"}return a.get()(r,endpoint`groups/${e}/-/packages/composer/packages`,t)}};function url2(e){return e?endpoint`projects/${e}/packages/conan/v1`:"packages/conan/v1"}var b=class extends n.BaseResource{authenticate({projectId:e,...t}={}){return a.get()(this,`${url2(e)}/users/authenticate`,t)}checkCredentials({projectId:e,...t}={}){const r=url2(e);return a.get()(this,`${r}/users/check_credentials`,t)}downloadPackageFile(e,t,r,n,s,o,i,c,{projectId:u,...l}={}){const p=url2(u);return a.get()(this,`${p}/conans/${e}/${t}/${r}/${n}/${o}/package/${s}/${i}/${c}`,l)}downloadRecipeFile(e,t,r,n,s,o,{projectId:i,...c}={}){const u=url2(i);return a.get()(this,`${u}/conans/${e}/${t}/${r}/${n}/${s}/export/${o}`,c)}showPackageUploadUrls(e,t,r,n,s,{projectId:o,...i}={}){const c=url2(o);return a.get()(this,`${c}/conans/${e}/${t}/${r}/${n}/packages/${s}/upload_urls`,i)}showPackageDownloadUrls(e,t,r,n,s,{projectId:o,...i}={}){const c=url2(o);return a.get()(this,`${c}/conans/${e}/${t}/${r}/${n}/packages/${s}/download_urls`,i)}showPackageManifest(e,t,r,n,s,{projectId:o,...i}={}){const c=url2(o);return a.get()(this,`${c}/conans/${e}/${t}/${r}/${n}/packages/${s}/digest`,i)}showPackageSnapshot(e,t,r,n,s,{projectId:o,...i}={}){const c=url2(o);return a.get()(this,`${c}/conans/${e}/${t}/${r}/${n}/packages/${s}`,i)}ping({projectId:e,...t}={}){return a.post()(this,`${url2(e)}/ping`,t)}showRecipeUploadUrls(e,t,r,n,{projectId:s,...o}={}){const i=url2(s);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${n}/upload_urls`,o)}showRecipeDownloadUrls(e,t,r,n,{projectId:s,...o}={}){const i=url2(s);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${n}/download_urls`,o)}showRecipeManifest(e,t,r,n,{projectId:s,...o}={}){const i=url2(s);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${n}/digest`,o)}showRecipeSnapshot(e,t,r,n,{projectId:s,...o}={}){const i=url2(s);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${n}`,o)}removePackageFile(e,t,r,n,{projectId:s,...o}={}){const i=url2(s);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${n}`,o)}search({projectId:e,...t}={}){const r=url2(e);return a.get()(this,`${r}/conans/search`,t)}uploadPackageFile(e,t,r,n,s,o,i,c,u){const l=url2();return a.get()(this,`${l}/files/${t}/${r}/${n}/${s}/${i}/package/${o}/${c}/${e.filename}`,{isForm:true,...u,file:[e.content,e.filename]})}uploadRecipeFile(e,t,r,n,s,o,i){const c=url2();return a.get()(this,`${c}/files/${t}/${r}/${n}/${s}/${o}/export/${e.filename}`,{isForm:true,...i,file:[e.content,e.filename]})}};var w=class extends n.BaseResource{create(e,t,r,{environmentId:n,clusterId:s,...o}={}){let i;if(n)i=endpoint`environments/${n}/metrics_dashboard/annotations`;else if(s)i=endpoint`clusters/${s}/metrics_dashboard/annotations`;else throw new Error("Missing required argument. Please supply a environmentId or a cluserId in the options parameter.");return a.post()(this,i,{dashboardPath:e,startingAt:t,description:r,...o})}};function url3({projectId:e,groupId:t}={}){if(e)return endpoint`/projects/${e}/packages/debian`;if(t)return endpoint`/groups/${t}/-/packages/debian`;throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}var _=class extends n.BaseResource{downloadBinaryFileIndex(e,t,r,{projectId:n,groupId:s,...o}){const i=url3({projectId:n,groupId:s});return a.get()(this,`${i}/dists/${e}/${t}/binary-${r}/Packages`,o)}downloadDistributionReleaseFile(e,{projectId:t,groupId:r,...n}){const s=url3({projectId:t,groupId:r});return a.get()(this,`${s}/dists/${e}/Release`,n)}downloadSignedDistributionReleaseFile(e,{projectId:t,groupId:r,...n}){const s=url3({projectId:t,groupId:r});return a.get()(this,`${s}/dists/${e}/InRelease`,n)}downloadReleaseFileSignature(e,{projectId:t,groupId:r,...n}){const s=url3({projectId:t,groupId:r});return a.get()(this,`${s}/dists/${e}/Release.gpg`,n)}downloadPackageFile(e,t,r,n,s,o,i){return a.get()(this,endpoint`projects/${e}/packages/debian/pool/${t}/${r}/${n}/${s}/${o}`,i)}uploadPackageFile(e,t,r){return a.put()(this,endpoint`projects/${e}/packages/debian/${t.filename}`,{isForm:true,...r,file:[t.content,t.filename]})}};var S=class extends n.BaseResource{remove(e,t){return a.post()(this,`groups/${e}/dependency_proxy/cache`,t)}};var A=class extends n.BaseResource{all({projectId:e,userId:t,...r}={}){let n;if(e){n=endpoint`projects/${e}/deploy_keys`}else if(t){n=endpoint`users/${t}/project_deploy_keys`}else{n="deploy_keys"}return a.get()(this,n,r)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/deploy_keys`,{title:t,key:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/deploy_keys/${t}`,r)}enable(e,t,r){return a.post()(this,endpoint`projects/${e}/deploy_keys/${t}/enable`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/deploy_keys/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/deploy_keys/${t}`,r)}};var j=class extends n.BaseResource{all({projectId:e,groupId:t,...r}={}){let n;if(e)n=endpoint`projects/${e}/deploy_tokens`;else if(t)n=endpoint`groups/${t}/deploy_tokens`;else n="deploy_tokens";return a.get()(this,n,r)}create(e,t,{projectId:r,groupId:n,...s}={}){let o;if(r)o=endpoint`projects/${r}/deploy_tokens`;else if(n)o=endpoint`groups/${n}/deploy_tokens`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.post()(this,o,{name:e,scopes:t,...s})}remove(e,{projectId:t,groupId:r,...n}={}){let s;if(t)s=endpoint`projects/${t}/deploy_tokens/${e}`;else if(r)s=endpoint`groups/${r}/deploy_tokens/${e}`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.del()(this,s,n)}show(e,{projectId:t,groupId:r,...n}={}){let s;if(t)s=endpoint`projects/${t}/deploy_tokens/${e}`;else if(r)s=endpoint`groups/${r}/deploy_tokens/${e}`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.get()(this,s,n)}};var x=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/access_requests`,t)}request(e,t){return a.post()(this,endpoint`${e}/access_requests`,t)}approve(e,t,r){return a.post()(this,endpoint`${e}/access_requests/${t}/approve`,r)}deny(e,t,r){return a.del()(this,endpoint`${e}/access_requests/${t}`,r)}};var R=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/access_tokens`,t)}create(e,t,r,n){return a.post()(this,endpoint`${e}/access_tokens`,{name:t,scopes:r,...n})}revoke(e,t,r){return a.del()(this,endpoint`${e}/access_tokens/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/access_tokens/${t}`,r)}};function url4(e,t,r,n){const[s,o]=[e,r].map(encodeURIComponent);const i=[s,t,o];i.push("award_emoji");if(n)i.push(n);return i.join("/")}var k=class extends n.BaseResource{resourceType2;constructor(e,t,r){super({prefixUrl:e,...r});this.resourceType2=t}all(e,t,r){return a.get()(this,url4(e,this.resourceType2,t),r)}award(e,t,r,n){return a.post()(this,url4(e,this.resourceType2,t),{name:r,...n})}remove(e,t,r,n){return a.del()(this,url4(e,this.resourceType2,t,r),n)}show(e,t,r,n){return a.get()(this,url4(e,this.resourceType2,t,r),n)}};function url5(e,t,r,n,s){const[o,i]=[e,r].map(encodeURIComponent);const a=[o,t,i];a.push("notes");a.push(n);a.push("award_emoji");if(s)a.push(s);return a.join("/")}var I=class extends n.BaseResource{resourceType;constructor(e,t){super({prefixUrl:"projects",...t});this.resourceType=e}all(e,t,r,n){return a.get()(this,url5(e,this.resourceType,t,r),n)}award(e,t,r,n,s){return a.post()(this,url5(e,this.resourceType,t,r),{name:n,...s})}remove(e,t,r,n,s){return a.del()(this,url5(e,this.resourceType,t,r,n),s)}show(e,t,r,n,s){return a.get()(this,url5(e,this.resourceType,t,r,n),s)}};var P=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r,n){return a.post()(this,endpoint`${e}/badges`,{linkUrl:t,imageUrl:r,...n})}all(e,t){return a.get()(this,endpoint`${e}/badges`,t)}edit(e,t,r){return a.put()(this,endpoint`${e}/badges/${t}`,r)}preview(e,t,r,n){return a.get()(this,endpoint`${e}/badges/render`,{linkUrl:t,imageUrl:r,...n})}remove(e,t,r){return a.del()(this,endpoint`${e}/badges/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/badges/${t}`,r)}};var T=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/custom_attributes`,t)}remove(e,t,r){return a.del()(this,endpoint`${e}/custom_attributes/${t}`,r)}set(e,t,r,n){return a.put()(this,endpoint`${e}/custom_attributes/${t}`,{value:r,...n})}show(e,t,r){return a.get()(this,endpoint`${e}/custom_attributes/${t}`,r)}};var C=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t,r){return a.get()(this,endpoint`${e}/dora/metrics`,{metric:t,...r})}};var O=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}addNote(e,t,r,n,s,o){return a.post()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}/notes`,{...o,body:s,noteId:n})}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions`,r)}create(e,t,r,{position:n,...s}={}){const o={...s,body:r};if(n){Object.assign(o,reformatObjectOptions(n,"position",true));o.isForm=true}return a.post()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions`,o)}editNote(e,t,r,n,s){return a.put()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}/notes/${n}`,s)}removeNote(e,t,r,n,s){return a.del()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}/notes/${n}`,s)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}`,n)}};var M=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/boards`,t)}allLists(e,t,r){return a.get()(this,endpoint`${e}/boards/${t}/lists`,r)}create(e,t,r){return a.post()(this,endpoint`${e}/boards`,{name:t,...r})}createList(e,t,r){return a.post()(this,endpoint`${e}/boards/${t}/lists`,r)}edit(e,t,r){return a.put()(this,endpoint`${e}/boards/${t}`,r)}editList(e,t,r,n,s){return a.put()(this,endpoint`${e}/boards/${t}/lists/${r}`,{position:n,...s})}remove(e,t,r){return a.del()(this,endpoint`${e}/boards/${t}`,r)}removeList(e,t,r,n){return a.del()(this,endpoint`${e}/boards/${t}/lists/${r}`,n)}show(e,t,r){return a.get()(this,endpoint`${e}/boards/${t}`,r)}showList(e,t,r,n){return a.get()(this,endpoint`${e}/boards/${t}/lists/${r}`,n)}};var N=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/labels`,t)}create(e,t,r,n){return a.post()(this,endpoint`${e}/labels`,{name:t,color:r,...n})}edit(e,t,r){if(!r?.newName&&!r?.color)throw new Error("Missing required argument. Please supply a color or a newName in the options parameter.");return a.put()(this,endpoint`${e}/labels/${t}`,r)}promote(e,t,r){return a.put()(this,endpoint`${e}/labels/${t}/promote`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/labels/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/labels/${t}`,r)}subscribe(e,t,r){return a.post()(this,endpoint`${e}/issues/${t}/subscribe`,r)}unsubscribe(e,t,r){return a.post()(this,endpoint`${e}/issues/${t}/unsubscribe`,r)}};var L=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r,n){return a.post()(this,endpoint`${e}/members`,{userId:String(t),accessLevel:r,...n})}all(e,{includeInherited:t,...r}={}){let n=endpoint`${e}/members`;if(t)n+="/all";return a.get()(this,n,r)}edit(e,t,r,n){return a.put()(this,endpoint`${e}/members/${t}`,{accessLevel:r,...n})}show(e,t,{includeInherited:r,...n}={}){const[s,o]=[e,t].map(encodeURIComponent);const i=[s,"members"];if(r)i.push("all");i.push(o);return a.get()(this,i.join("/"),n)}remove(e,t,r){return a.del()(this,endpoint`${e}/members/${t}`,r)}};var B=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/milestones`,t)}allAssignedIssues(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}/issues`,r)}allAssignedMergeRequests(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}/merge_requests`,r)}allBurndownChartEvents(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}/burndown_events`,r)}create(e,t,r){return a.post()(this,endpoint`${e}/milestones`,{title:t,...r})}edit(e,t,r){return a.put()(this,endpoint`${e}/milestones/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/milestones/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}`,r)}};var G=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/notes`,r)}create(e,t,r,n){return a.post()(this,endpoint`${e}/${this.resource2Type}/${t}/notes`,{body:r,...n})}edit(e,t,r,n){return a.put()(this,endpoint`${e}/${this.resource2Type}/${t}/notes/${r}`,n)}remove(e,t,r,n){return a.del()(this,endpoint`${e}/${this.resource2Type}/${t}/notes/${r}`,n)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/notes/${r}`,n)}};var U=class extends n.BaseResource{constructor(e,t){super({prefixUrl:["templates",e].join("/"),...t})}all(e){process.emitWarning('This API will be deprecated as of Gitlabs v5 API. Please make the switch to "ProjectTemplates".',"DeprecationWarning");return a.get()(this,"",e)}show(e,t){process.emitWarning('This API will be deprecated as of Gitlabs v5 API. Please make the switch to "ProjectTemplates".',"DeprecationWarning");return a.get()(this,encodeURIComponent(e),t)}};var q=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/variables`,t)}create(e,t,r,n){return a.post()(this,endpoint`${e}/variables`,{key:t,value:r,...n})}edit(e,t,r,n){return a.put()(this,endpoint`${e}/variables/${t}`,{value:r,...n})}show(e,t,r){return a.get()(this,endpoint`${e}/variables/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/variables/${t}`,r)}};var D=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/wikis`,t)}create(e,t,r,n){return a.post()(this,endpoint`${e}/wikis`,{content:t,title:r,...n})}edit(e,t,r){return a.put()(this,endpoint`${e}/wikis/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/wikis/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/wikis/${t}`,r)}uploadAttachment(e,t,r){return a.post()(this,endpoint`${e}/wikis/attachments`,{...r,isForm:true,file:[t.content,t.filename]})}};var H=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r){return a.post()(this,endpoint`${e}/hooks`,{url:t,...r})}all(e,t){return a.get()(this,endpoint`${e}/hooks`,t)}edit(e,t,r,n){return a.put()(this,endpoint`${e}/hooks/${t}`,{url:r,...n})}remove(e,t,r){return a.del()(this,endpoint`${e}/hooks/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/hooks/${t}`,r)}};var K=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}create(e,t){return a.post()(this,endpoint`${e}/push_rule`,t)}edit(e,t){return a.put()(this,endpoint`${e}/push_rule`,t)}remove(e,t){return a.del()(this,endpoint`${e}/push_rule`,t)}show(e,t){return a.get()(this,endpoint`${e}/push_rule`,t)}};var Y=class extends n.BaseResource{resourceType;resourceTypeSingular;constructor(e,t){super(t);this.resourceType=e;this.resourceTypeSingular=e.substring(0,e.length-1)}all(e){const t=e?.[`${this.resourceTypeSingular}Id`];const r=t?endpoint`${this.resourceType}/${t}/repository_storage_moves`:`${this.resourceTypeSingular}_repository_storage_moves`;return a.get()(this,r,e)}show(e,t){const r=t?.[`${this.resourceTypeSingular}Id`];const n=r?endpoint`${this.resourceType}/${r}/repository_storage_moves`:`${this.resourceTypeSingular}_repository_storage_moves`;return a.get()(this,`${n}/${e}`,t)}schedule(e,t){const r=t?.[`${this.resourceTypeSingular}Id`];const n=r?endpoint`${this.resourceType}/${r}/repository_storage_moves`:`${this.resourceTypeSingular}_repository_storage_moves`;return a.post()(this,n,{sourceStorageName:e,...t})}};var W=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r){if(!r?.email&&!r?.userId)throw new Error("Missing required argument. Please supply a email or a userId in the options parameter.");return a.post()(this,endpoint`${e}/invitations`,{accessLevel:t,...r})}all(e,t){return a.get()(this,endpoint`${e}/invitations`,t)}edit(e,t,r){return a.put()(this,endpoint`${e}/invitations/${t}`,r)}remove(e,t,r){return a.put()(this,endpoint`${e}/invitations/${t}`,r)}};var z=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/iterations`,t)}};var Q=class extends n.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,`${e}/protected_environments`,t)}create(e,t,r,n){return a.post()(this,`${e}/protected_environments`,{name:t,deployAccessLevel:r,...n})}edit(e,t,r){return a.put()(this,`${e}/protected_environments/${t}`,r)}show(e,t,r){return a.get()(this,`${e}/protected_environments/${t}`,r)}remove(e,t,r){return a.del()(this,`${e}/protected_environments/${t}`,r)}};var V=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_iteration_events`,r)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_iteration_events/${r}`,n)}};var J=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_label_events`,r)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_label_events/${r}`,n)}};var X=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_milestone_events`,r)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_milestone_events/${r}`,n)}};var Z=class extends n.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_state_events`,r)}show(e,t,r,n){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_state_events/${r}`,n)}};var ee=class extends U{constructor(e){super("dockerfiles",e)}};var te=class extends n.BaseResource{all({projectId:e,userId:t,...r}={}){let n;if(e)n=endpoint`projects/${e}/events`;else if(t)n=endpoint`users/${t}/events`;else n="events";return a.get()(this,n,r)}};var re=class extends n.BaseResource{all(e){return a.get()(this,"experiments",e)}};var ne=class extends n.BaseResource{all(e){return a.get()(this,"geo_nodes",e)}allStatuses(e){return a.get()(this,"geo_nodes/statuses",e)}allFailures(e){return a.get()(this,"geo_nodes/current/failures",e)}create(e,t,r){return a.post()(this,"geo_nodes",{name:e,url:t,...r})}edit(e,t){return a.put()(this,`geo_nodes/${e}`,t)}repair(e,t){return a.post()(this,`geo_nodes/${e}/repair`,t)}remove(e,t){return a.del()(this,`geo_nodes/${e}`,t)}show(e,t){return a.get()(this,`geo_nodes/${e}`,t)}showStatus(e,t){return a.get()(this,`geo_nodes/${e}/status`,t)}};var se=class extends n.BaseResource{all(e){return a.get()(this,"geo_sites",e)}allStatuses(e){return a.get()(this,"geo_sites/statuses",e)}allFailures(e){return a.get()(this,"geo_sites/current/failures",e)}create(e,t,r){return a.post()(this,"geo_sites",{name:e,url:t,...r})}edit(e,t){return a.put()(this,`geo_sites/${e}`,t)}repair(e,t){return a.post()(this,`geo_sites/${e}/repair`,t)}remove(e,t){return a.del()(this,`geo_sites/${e}`,t)}show(e,t){return a.get()(this,`geo_sites/${e}`,t)}showStatus(e,t){return a.get()(this,`geo_sites/${e}/status`,t)}};var oe=class extends U{constructor(e){super("gitignores",e)}};var ie=class extends U{constructor(e){super("gitlab_ci_ymls",e)}};var ae=class extends n.BaseResource{importGithubRepository(e,t,r,n){return a.post()(this,"import/github",{personalAccessToken:e,repoId:t,targetNamespace:r,...n})}cancelGithubRepositoryImport(e,t){return a.post()(this,"import/github/cancel",{projectId:e,...t})}importGithubGists(e,t){return a.post()(this,"import/github/gists",{personalAccessToken:e,...t})}importBitbucketServerRepository(e,t,r,n,s,o){return a.post()(this,"import/bitbucket_server",{bitbucketServerUrl:e,bitbucketServerUsername:t,personalAccessToken:r,bitbucketServerProject:n,bitbucketServerRepo:s,...o})}};var ce=class extends n.BaseResource{all(e){return a.get()(this,"admin/ci/variables",e)}create(e,t,r){return a.post()(this,"admin/ci/variables",{key:e,value:t,...r})}edit(e,t,r){return a.put()(this,endpoint`admin/ci/variables/${e}`,{value:t,...r})}show(e,t){return a.get()(this,endpoint`admin/ci/variables/${e}`,t)}remove(e,t){return a.get()(this,endpoint`admin/ci/variables/${e}`,t)}};var ue=class extends n.BaseResource{show({keyId:e,fingerprint:t,...r}={}){let n;if(e)n=`keys/${e}`;else if(t)n=`keys?fingerprint=${t}`;else{throw new Error("Missing required argument. Please supply a fingerprint or a keyId in the options parameter")}return a.get()(this,n,r)}};var le=class extends n.BaseResource{add(e,t){return a.post()(this,"license",{searchParams:{license:e},...t})}all(e){return a.get()(this,"licenses",e)}show(e){return a.get()(this,"license",e)}remove(e,t){return a.del()(this,`license/${e}`,t)}recalculateBillableUsers(e,t){return a.put()(this,`license/${e}/refresh_billable_users`,t)}};var pe=class extends U{constructor(e){super("Licenses",e)}};var de=class extends n.BaseResource{check(e,t){return a.get()(this,endpoint`projects/${e}/ci/lint`,t)}lint(e,t,r){return a.post()(this,endpoint`projects/${e}/ci/lint`,{...r,content:t})}};var fe=class extends n.BaseResource{render(e,t){return a.post()(this,"markdown",{text:e,...t})}};var he=class extends n.BaseResource{downloadPackageFile(e,t,{projectId:r,groupId:n,...s}){let o=endpoint`packages/maven/${e}/${t}`;if(r)o=endpoint`projects/${r}/${o}`;else if(n)o=endpoint`groups/${n}/-/${o}`;return a.get()(this,o,s)}uploadPackageFile(e,t,r,n){return a.put()(this,endpoint`projects/${e}/packages/maven/${t}/${r.filename}`,{isForm:true,...n,file:[r.content,r.filename]})}};var ge=class extends n.BaseResource{show(e){return a.get()(this,"metadata",e)}};var me=class extends n.BaseResource{all(e){return a.get()(this,"bulk_imports",e)}create(e,t,r){return a.post()(this,"bulk_imports",{configuration:e,entities:t,...r})}allEntities({bulkImportId:e,...t}={}){const r=e?endpoint`bulk_imports/${e}/entities`:"bulk_imports/entities";return a.get()(this,r,t)}show(e,t){return a.get()(this,`bulk_imports/${e}`,t)}showEntity(e,t,r){return a.get()(this,`bulk_imports/${e}/entities/${t}`,r)}};var ye=class extends n.BaseResource{all(e){return a.get()(this,"namespaces",e)}exists(e,t){return a.get()(this,endpoint`namespaces/${e}/exists`,t)}show(e,t){return a.get()(this,endpoint`namespaces/${e}`,t)}};function url6({projectId:e,groupId:t}={}){let r="";if(e)r=endpoint`projects/${e}/`;if(t)r=endpoint`groups/${t}/`;return`${r}notification_settings`}var ve=class extends n.BaseResource{edit({groupId:e,projectId:t,...r}={}){const n=url6({groupId:e,projectId:t});return a.put()(this,n,r)}show({groupId:e,projectId:t,...r}={}){const n=url6({groupId:e,projectId:t});return a.get()(this,n,r)}};function url7(e){return e?endpoint`/projects/${e}/packages/npm`:"packages/npm"}var $e=class extends n.BaseResource{downloadPackageFile(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/npm/${t}/-/${r}`,n)}removeDistTag(e,t,r){const n=url7(r?.projectId);return a.del()(this,`${n}/-/package/${e}/dist-tags/${t}`,r)}setDistTag(e,t,r){const n=url7(r?.projectId);return a.put()(this,`${n}/-/package/${e}/dist-tags/${t}`,r)}showDistTags(e,t){const r=url7(t?.projectId);return a.get()(this,`${r}/-/package/${e}/dist-tags`,t)}showMetadata(e,t){const r=url7(t?.projectId);return a.get()(this,`${r}/${e}`,t)}uploadPackageFile(e,t,r,n,s){return a.put()(this,endpoint`projects/${e}/packages/npm/${t}`,{...s,versions:r,...n})}};function url8({projectId:e,groupId:t}={}){if(e)return endpoint`/projects/${e}/packages/nuget`;if(t)return endpoint`/groups/${t}/-/packages/nuget`;throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}var be=class extends n.BaseResource{downloadPackageFile(e,t,r,n,s){return a.get()(this,endpoint`projects/${e}/packages/nuget/download/${t}/${r}/${n}`,s)}search(e,{projectId:t,groupId:r,...n}){const s=url8({projectId:t,groupId:r});return a.get()(this,`${s}/query`,{q:e,...n})}showMetadata(e,{projectId:t,groupId:r,...n}){const s=url8({projectId:t,groupId:r});return a.get()(this,`${s}/metadata/${e}/index`,n)}showPackageIndex(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/nuget/download/${t}/index`,r)}showServiceIndex({projectId:e,groupId:t,...r}){const n=url8({projectId:e,groupId:t});return a.get()(this,`${n}/index`,r)}showVersionMetadata(e,t,{projectId:r,groupId:n,...s}){const o=url8({projectId:r,groupId:n});return a.get()(this,`${o}/metadata/${e}/${t}`,s)}uploadPackageFile(e,t,r,n,s){return a.put()(this,endpoint`projects/${e}/packages/nuget`,{isForm:true,...s,packageName:t,packageVersion:r,file:[n.content,n.filename]})}uploadSymbolPackage(e,t,r,n,s){return a.put()(this,endpoint`projects/${e}/packages/nuget/symbolpackage`,{isForm:true,...s,packageName:t,packageVersion:r,file:[n.content,n.filename]})}};var we=class extends n.BaseResource{all(e){return a.get()(this,"personal_access_tokens",e)}create(e,t,r,n){return a.post()(this,endpoint`users/${e}/personal_access_tokens`,{name:t,scopes:r,...n})}remove({tokenId:e,...t}={}){const r=e?endpoint`personal_access_tokens/${e}`:"personal_access_tokens/self";return a.del()(this,r,t)}rotate(e,t){return a.post()(this,endpoint`personal_access_tokens/${e}/rotate`,t)}show({tokenId:e,...t}={}){const r=e?endpoint`personal_access_tokens/${e}`:"personal_access_tokens/self";return a.get()(this,r,t)}};var _e=class extends n.BaseResource{downloadPackageFile(e,t,{projectId:r,groupId:n,...s}={}){let o;if(r){o=endpoint`projects/${r}/packages/pypi/files/${e}/${t}`}else if(n){o=endpoint`groups/${n}/packages/pypi/files/${e}/${t}`}else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}return a.get()(this,o,s)}showPackageDescriptor(e,{projectId:t,groupId:r,...n}){let s;if(t){s=endpoint`projects/${t}/packages/pypi/simple/${e}`}else if(r){s=endpoint`groups/${r}/packages/pypi/simple/${e}`}else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}return a.get()(this,s,n)}uploadPackageFile(e,t,r){return a.put()(this,endpoint`projects/${e}/packages/pypi`,{...r,isForm:true,file:[t.content,t.filename]})}};var Se=class extends n.BaseResource{allDependencies(e,t){return a.get()(this,endpoint`projects/${e}/packages/rubygems/api/v1/dependencies`,t)}downloadGemFile(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/rubygems/gems/${t}`,r)}uploadGemFile(e,t,r){return a.post()(this,`projects/${e}/packages/rubygems/api/v1/gems`,{isForm:true,...r,file:[t.content,t.filename]})}};var Ee=class extends n.BaseResource{all(e,t,r){const{projectId:n,groupId:s,...o}=r||{};let i;if(n)i=endpoint`projects/${n}/`;else if(s)i=endpoint`groups/${s}/`;else i="";return a.get()(this,`${i}search`,{scope:e,search:t,...o})}};var Ae=class extends n.BaseResource{all(e){return a.get()(this,"admin/search/migrations",e)}show(e,t){return a.get()(this,endpoint`admin/search/migrations/${e}`,t)}};var je=class extends n.BaseResource{create(e){return a.post()(this,endpoint`service_accounts`,e)}};var xe=class extends n.BaseResource{showMetricDefinitions(e){return a.get()(this,"usage_data/metric_definitions",e)}showServicePingSQLQueries(e){return a.get()(this,"usage_data/queries",e)}showUsageDataNonSQLMetrics(e){return a.get()(this,"usage_data/non_sql_metrics",e)}};var Re=class extends n.BaseResource{queueMetrics(){return a.get()(this,"sidekiq/queue_metrics")}processMetrics(){return a.get()(this,"sidekiq/process_metrics")}jobStats(){return a.get()(this,"sidekiq/job_stats")}compoundMetrics(){return a.get()(this,"sidekiq/compound_metrics")}};var ke=class extends n.BaseResource{remove(e,t){return a.get()(this,endpoint`admin/sidekiq/queues/${e}`,t)}};var Ie=class extends Y{constructor(e){super("snippets",e)}};var Pe=class extends n.BaseResource{all({public:e,...t}={}){const r=e?"snippets/public":"snippets";return a.get()(this,r,t)}create(e,t){return a.post()(this,"snippets",{title:e,...t})}edit(e,t){return a.put()(this,`snippets/${e}`,t)}remove(e,t){return a.del()(this,`snippets/${e}`,t)}show(e,t){return a.get()(this,`snippets/${e}`,t)}showContent(e,t){return a.get()(this,`snippets/${e}/raw`,t)}showRepositoryFileContent(e,t,r,n){return a.get()(this,endpoint`snippets/${e}/files/${t}/${r}/raw`,n)}showUserAgentDetails(e,t){return a.get()(this,`snippets/${e}/user_agent_detail`,t)}};var Te=class extends n.BaseResource{edit(e,t){return a.put()(this,`suggestions/${e}/apply`,t)}editBatch(e,t){return a.put()(this,`suggestions/batch_apply`,{...t,ids:e})}};var Ce=class extends n.BaseResource{all(e){return a.get()(this,"hooks",e)}add(e,t){return this.create(e,t)}create(e,t){return a.post()(this,"hooks",{url:e,...t})}test(e,t){return a.post()(this,`hooks/${e}`,t)}remove(e,t){return a.del()(this,`hooks/${e}`,t)}show(e,t){return a.post()(this,`hooks/${e}`,t)}};var Oe=class extends n.BaseResource{all(e){return a.get()(this,"todos",e)}done({todoId:e,...t}={}){let r="todos";if(e)r+=`/${e}`;return a.post()(this,`${r}/mark_as_done`,t)}};var Me=class extends n.BaseResource{all(e){return a.get()(this,"topics",e)}create(e,{avatar:t,...r}={}){const n={name:e,...r};if(t){n.isForm=true;n.file=[t.content,t.filename]}return a.post()(this,"topics",n)}edit(e,{avatar:t,...r}={}){const n={...r};if(t){n.isForm=true;n.file=[t.content,t.filename]}return a.put()(this,`topics/${e}`,n)}merge(e,t,r){return a.post()(this,`topics/merge`,{sourceTopicId:e,targetTopicId:t,...r})}remove(e,t){return a.del()(this,`topics/${e}`,t)}show(e,t){return a.get()(this,`topics/${e}`,t)}};var Ne=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/repository/branches`,t)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/repository/branches`,{branch:t,ref:r,...n})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/repository/branches/${t}`,r)}removeMerged(e,t){return a.del()(this,endpoint`projects/${e}/repository/merged_branches`,t)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/branches/${t}`,r)}};var Le=class extends O{constructor(e){super("projects","repository/commits",e)}};var Be=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/repository/commits`,t)}allComments(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/comments`,r)}allDiscussions(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/discussions`,r)}allMergeRequests(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/merge_requests`,r)}allReferences(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/refs`,r)}allStatuses(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/statuses`,r)}cherryPick(e,t,r,n){return a.post()(this,endpoint`projects/${e}/repository/commits/${t}/cherry_pick`,{branch:r,...n})}create(e,t,r,n=[],s={}){return a.post()(this,endpoint`projects/${e}/repository/commits`,{branch:t,commitMessage:r,actions:n,...s})}createComment(e,t,r,n){return a.post()(this,endpoint`projects/${e}/repository/commits/${t}/comments`,{note:r,...n})}editStatus(e,t,r,n){return a.post()(this,endpoint`projects/${e}/statuses/${t}`,{state:r,...n})}revert(e,t,r,n){return a.post()(this,endpoint`projects/${e}/repository/commits/${t}/revert`,{...n,branch:r})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}`,r)}showDiff(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/diff`,r)}showGPGSignature(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/signature`,r)}};var Fe=class extends n.BaseResource{allRepositories({groupId:e,projectId:t,...r}={}){let n;if(e)n=endpoint`groups/${e}/registry/repositories`;else if(t)n=endpoint`projects/${t}/registry/repositories`;else throw new Error("Missing required argument. Please supply a groupId or a projectId in the options parameter.");return a.get()(this,n,r)}allTags(e,t,r){return a.get()(this,endpoint`projects/${e}/registry/repositories/${t}/tags`,r)}editRegistryVisibility(e,t){return a.get()(this,endpoint`projects/${e}`,t)}removeRepository(e,t,r){return a.del()(this,endpoint`projects/${e}/registry/repositories/${t}`,r)}removeTag(e,t,r,n){return a.del()(this,endpoint`projects/${e}/registry/repositories/${t}/tags/${r}`,n)}removeTags(e,t,r,n){return a.del()(this,endpoint`projects/${e}/registry/repositories/${t}/tags`,{nameRegexDelete:r,...n})}showRepository(e,t){return a.get()(this,endpoint`registry/repositories/${e}`,t)}showTag(e,t,r,n){return a.get()(this,endpoint`projects/${e}/registry/repositories/${t}/tags/${r}`,n)}};var Ge=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/deployments`,t)}allMergeRequests(e,t,r){return a.get()(this,endpoint`projects/${e}/deployments/${t}/merge_requests`,r)}create(e,t,r,n,s,o){return a.post()(this,endpoint`projects/${e}/deployments`,{environment:t,sha:r,ref:n,tag:s,...o})}edit(e,t,r,n){return a.put()(this,endpoint`projects/${e}/deployments/${t}`,{...n,status:r})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/deployments/${t}`,r)}setApproval(e,t,r,n){return a.post()(this,endpoint`projects/${e}/deployments/${t}/approval`,{...n,status:r})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/deployments/${t}`,r)}};var Ue=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/environments`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/environments`,{name:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/environments/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/environments/${t}`,r)}removeReviewApps(e,t){return a.del()(this,endpoint`projects/${e}/environments/review_apps`,t)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/environments/${t}`,r)}stop(e,t,r){return a.post()(this,endpoint`projects/${e}/environments/${t}/stop`,r)}stopStale(e,t,r){return a.post()(this,endpoint`projects/${e}/environments/stop_stale`,{searchParams:{before:t},...r})}};var qe=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/error_tracking/client_keys`,t)}create(e,t){return a.post()(this,endpoint`projects/${e}/error_tracking/client_keys`,t)}remove(e,t){return a.del()(this,endpoint`projects/${e}/error_tracking/client_keys`,t)}};var De=class extends n.BaseResource{create(e,t,r,n){return a.put()(this,endpoint`projects/${e}/error_tracking/settings`,{searchParams:{active:t,integrated:r},...n})}edit(e,t,{integrated:r,...n}={}){return a.patch()(this,endpoint`projects/${e}/error_tracking/settings`,{searchParams:{active:t,integrated:r},...n})}show(e,t){return a.get()(this,endpoint`projects/${e}/error_tracking/settings`,t)}};var He=class extends n.BaseResource{all(e,t){const{mergerequestIId:r,...n}=t||{};let s=endpoint`projects/${e}`;if(r){s+=endpoint`/merge_requests/${r}/status_checks`}else{s+="/external_status_checks"}return a.get()(this,s,n)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/external_status_checks`,{name:t,externalUrl:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/external_status_checks/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/external_status_checks/${t}`,r)}set(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/status_check_responses`,{sha:r,externalStatusCheckId:n,...s})}};var Ke=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/feature_flags`,t)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/feature_flags`,{name:t,version:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/feature_flags/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/feature_flags/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/feature_flags/${t}`,r)}};var Ye=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/feature_flags_user_lists`,t)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/feature_flags_user_lists`,{name:t,userXids:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/feature_flags_user_lists/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/feature_flags_user_lists/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/feature_flags_user_lists/${t}`,r)}};var We=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/freeze_periods`,t)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/freeze_periods`,{freezeStart:t,freezeEnd:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/freeze_periods/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/freeze_periods/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/freeze_periods/${t}`,r)}};var ze=class extends n.BaseResource{remove(e,t){return a.del()(this,endpoint`projects/${e}/pages`,t)}};var Qe=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/list`,r)}showVersionMetadata(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/${r}.info`,n)}downloadModuleFile(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/${r}.mod`,n)}downloadModuleSource(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/${r}.zip`,n)}};var Ve=class extends n.BaseResource{downloadChartIndex(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/helm/${t}/index.yaml`,r)}downloadChart(e,t,r,n){return a.get()(this,endpoint`projects/${e}/packages/helm/${t}/charts/${r}.tgz`,n)}import(e,t,r,n){return a.post()(this,endpoint`projects/${e}/packages/helm/api/${t}/charts`,{isForm:true,...n,chart:[r.content,r.filename]})}};var Je=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/integrations`,t)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/integrations/${t}`,r)}disable(e,t,r){return a.del()(this,endpoint`projects/${e}/integrations/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/integrations/${t}`,r)}};var Xe=class extends k{constructor(e){super("projects","issues",e)}};var Ze=class extends O{constructor(e){super("projects","issues",e)}};var et=class extends V{constructor(e){super("projects","issues",e)}};var tt=class extends J{constructor(e){super("projects","issues",e)}};var rt=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/links`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/issues/${t}/links`,{targetProjectId:r,targetIssueIid:n,...s})}remove(e,t,r,n){return a.del()(this,endpoint`projects/${e}/issues/${t}/links/${r}`,n)}};var nt=class extends X{constructor(e){super("projects","issues",e)}};var st=class extends I{constructor(e){super("issues",e)}};var ot=class extends G{constructor(e){super("projects","issues",e)}};var it=class extends n.BaseResource{addSpentTime(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/add_spent_time`,{duration:r,...n})}addTimeEstimate(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/time_estimate`,{duration:r,...n})}all({projectId:e,groupId:t,...r}={}){let n;if(e)n=endpoint`projects/${e}/issues`;else if(t)n=endpoint`groups/${t}/issues`;else n="issues";return a.get()(this,n,r)}allMetricImages(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/metric_images`,r)}allParticipants(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/participants`,r)}allRelatedMergeRequests(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/related_merge_requests`,r)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/issues`,{...r,title:t})}createTodo(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/todo`,r)}clone(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/clone`,{toProjectId:r,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/issues/${t}`,r)}editMetricImage(e,t,r,n){return a.put()(this,endpoint`projects/${e}/issues/${t}/metric_images/${r}`,n)}move(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/move`,{toProjectId:r,...n})}promote(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/notes`,{searchParams:{body:`${r} \n /promote`},...n})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/issues/${t}`,r)}removeMetricImage(e,t,r,n){return a.del()(this,endpoint`projects/${e}/issues/${t}/metric_images/${r}`,n)}reorder(e,t,r){return a.put()(this,endpoint`projects/${e}/issues/${t}/reorder`,r)}resetSpentTime(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/reset_spent_time`,r)}resetTimeEstimate(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/reset_time_estimate`,r)}show(e,{projectId:t,...r}={}){const n=t?endpoint`projects/${t}/issues/${e}`:`issues/${e}`;return a.get()(this,n,r)}subscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/subscribe`,r)}allClosedByMergeRequestst(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/closed_by`,r)}showTimeStats(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/time_stats`,r)}unsubscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/unsubscribe`,r)}uploadMetricImage(e,t,r,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/metric_images`,{isForm:true,...n,file:[r.content,r.filename]})}showUserAgentDetails(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/user_agent_details`,r)}};var at=class extends n.BaseResource{all({projectId:e,groupId:t,...r}={}){let n;if(e)n=endpoint`projects/${e}/issues_statistics`;else if(t)n=endpoint`groups/${t}/issues_statistics`;else n="issues_statistics";return a.get()(this,n,r)}};var ct=class extends Z{constructor(e){super("projects","issues",e)}};var ut=class extends Z{constructor(e){super("projects","issues",e)}};function generateDownloadPathForJob(e,t,r){let n=endpoint`projects/${e}/jobs/${t}/artifacts`;if(r)n+=`/${r}`;return n}function generateDownloadPath(e,t,r){let n=endpoint`projects/${e}/jobs/artifacts/${t}`;if(r){n+=endpoint`/raw/${r}`}else{n+=endpoint`/download`}return n}var lt=class extends n.BaseResource{downloadArchive(e,{jobId:t,artifactPath:r,ref:n,...s}={}){let o;if(t)o=generateDownloadPathForJob(e,t,r);else if(s?.job&&n)o=generateDownloadPath(e,n,r);else throw new Error("Missing one of the required parameters. See typing documentation for available arguments.");return a.get()(this,o,s)}keep(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/artifacts/keep`,r)}remove(e,{jobId:t,...r}={}){let n;if(t){n=endpoint`projects/${e}/jobs/${t}/artifacts`}else{n=endpoint`projects/${e}/artifacts`}return a.del()(this,n,r)}};var pt=class extends n.BaseResource{all(e,{pipelineId:t,...r}={}){const n=t?endpoint`projects/${e}/pipelines/${t}/jobs`:endpoint`projects/${e}/jobs`;return a.get()(this,n,r)}allPipelineBridges(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/bridges`,r)}cancel(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/cancel`,r)}erase(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/erase`,r)}play(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/play`,r)}retry(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/retry`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/jobs/${t}`,r)}showConnectedJob(e){if(!this.headers["job-token"])throw new Error('Missing required header "job-token"');return a.get()(this,"job",e)}showConnectedJobK8Agents(e){if(!this.headers["job-token"])throw new Error('Missing required header "job-token"');return a.get()(this,"job/allowed_agents",e)}showLog(e,t,r){return a.get()(this,endpoint`projects/${e}/jobs/${t}/trace`,r)}};var dt=class extends n.BaseResource{allApprovalRules(e,{mergerequestIId:t,...r}={}){let n;if(t){n=endpoint`projects/${e}/merge_requests/${t}/approval_rules`}else{n=endpoint`projects/${e}/approval_rules`}return a.get()(this,n,r)}approve(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/approve`,r)}createApprovalRule(e,t,r,{mergerequestIId:n,...s}={}){let o;if(n){o=endpoint`projects/${e}/merge_requests/${n}/approval_rules`}else{o=endpoint`projects/${e}/approval_rules`}return a.post()(this,o,{name:t,approvalsRequired:r,...s})}editApprovalRule(e,t,r,n,{mergerequestIId:s,...o}={}){let i;if(s){i=endpoint`projects/${e}/merge_requests/${s}/approval_rules/${t}`}else{i=endpoint`projects/${e}/approval_rules/${t}`}return a.put()(this,i,{name:r,approvalsRequired:n,...o})}editConfiguration(e,t){return a.post()(this,endpoint`projects/${e}/approvals`,t)}removeApprovalRule(e,t,{mergerequestIId:r,...n}={}){let s;if(r){s=endpoint`projects/${e}/merge_requests/${r}/approval_rules/${t}`}else{s=endpoint`projects/${e}/approval_rules/${t}`}return a.del()(this,s,n)}showApprovalRule(e,t,r){return a.get()(this,endpoint`projects/${e}/approval_rules/${t}`,r)}showApprovalState(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/approval_state`,r)}showConfiguration(e,{mergerequestIId:t,...r}={}){let n;if(t){n=endpoint`projects/${e}/merge_requests/${t}/approvals`}else{n=endpoint`projects/${e}/approvals`}return a.get()(this,n,r)}unapprove(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/unapprove`,r)}};var ft=class extends k{constructor(e){super("projects","merge_requests",e)}};var ht=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/context_commits`,r)}create(e,t,{mergerequestIId:r,...n}={}){const s=endpoint`projects/${e}/merge_requests`;const o=r?`${s}/${r}/context_commits`:s;return a.post()(this,o,{commits:t,...n})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/merge_requests/${t}/context_commits`,r)}};var gt=class extends O{constructor(e){super("projects","merge_requests",e)}resolve(e,t,r,n,s){return a.put()(this,endpoint`${e}/merge_requests/${t}/discussions/${r}`,{searchParams:{resolved:n},...s})}};var mt=class extends J{constructor(e){super("projects","merge_requests",e)}};var yt=class extends X{constructor(e){super("projects","merge_requests",e)}};var vt=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes`,r)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes`,{...n,note:r})}edit(e,t,r,n){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}`,n)}publish(e,t,r,n){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}/publish`,n)}publishBulk(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/bulk_publish`,r)}remove(e,t,r,n){return a.del()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}`,n)}show(e,t,r,n){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}`,n)}};var $t=class extends G{constructor(e){super("projects","merge_requests",e)}};var bt=class extends I{constructor(e){super("merge_requests",e)}};var wt=class extends n.BaseResource{accept(e,t,r){return this.merge(e,t,r)}addSpentTime(e,t,r,n){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/add_spent_time`,{duration:r,...n})}all({projectId:e,groupId:t,...r}={}){let n="";if(e){n=endpoint`projects/${e}/`}else if(t){n=endpoint`groups/${t}/`}return a.get()(this,`${n}merge_requests`,r)}allDiffs(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/diffs`,r)}allCommits(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/commits`,r)}allDiffVersions(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/versions`,r)}allIssuesClosed(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/closes_issues`,r)}allParticipants(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/participants`,r)}allPipelines(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/pipelines`,r)}cancelOnPipelineSuccess(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/cancel_merge_when_pipeline_succeeds`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/merge_requests`,{sourceBranch:t,targetBranch:r,title:n,...s})}createPipeline(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/pipelines`,r)}createTodo(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/todo`,r)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}`,r)}merge(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/merge`,r)}mergeToDefault(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/merge_ref`,r)}rebase(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/rebase`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/merge_requests/${t}`,r)}resetSpentTime(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/reset_spent_time`,r)}resetTimeEstimate(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/reset_time_estimate`,r)}setTimeEstimate(e,t,r,n){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/time_estimate`,{duration:r,...n})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}`,r)}showChanges(e,t,r){process.emitWarning('This endpoint was deprecated in Gitlab API 15.7 and will be removed in API v5. Please use the "allDiffs" function instead.',"DeprecationWarning");return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/changes`,r)}showDiffVersion(e,t,r,n){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/versions/${r}`,n)}showTimeStats(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/time_stats`,r)}subscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/subscribe`,r)}unsubscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/unsubscribe`,r)}};var _t=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/merge_trains`,t)}showStatus(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_trains/merge_requests/${t}`,r)}addMergeRequest(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_trains/merge_requests/${t}`,r)}};var St=class extends n.BaseResource{publish(e,t,r,n,{contentType:s,...o}={}){return a.put()(this,endpoint`projects/${e}/packages/generic/${t}/${r}/${n.filename}`,{isForm:true,file:[n.content,n.filename],...o})}download(e,t,r,n,s){return a.get()(this,endpoint`projects/${e}/packages/generic/${t}/${r}/${n}`,s)}};var Et=class extends n.BaseResource{all({projectId:e,groupId:t,...r}={}){let n;if(e)n=endpoint`projects/${e}/packages`;else if(t)n=endpoint`groups/${t}/packages`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.get()(this,n,r)}allFiles(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/${t}/package_files`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/packages/${t}`,r)}removeFile(e,t,r,n){return a.del()(this,endpoint`projects/${e}/packages/${t}/package_files/${r}`,n)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/${t}`,r)}};var At=class extends n.BaseResource{all({projectId:e,...t}={}){const r=e?endpoint`projects/${e}/`:"";return a.get()(this,`${r}pages/domains`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/pages/domains`,{domain:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/pages/domains/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/pages/domains/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/pages/domains/${t}`,r)}};var jt=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/pipelines`,t)}allVariables(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/variables`,r)}cancel(e,t,r){return a.post()(this,endpoint`projects/${e}/pipelines/${t}/cancel`,r)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/pipeline`,{ref:t,...r})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/pipelines/${t}`,r)}retry(e,t,r){return a.post()(this,endpoint`projects/${e}/pipelines/${t}/retry`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}`,r)}showTestReport(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/test_report`,r)}showTestReportSummary(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/test_report_summary`,r)}};var xt=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/pipeline_schedules`,t)}allTriggeredPipelines(e,t,r){return a.get()(this,endpoint`projects/${e}/pipeline_schedules/${t}/pipelines`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/pipeline_schedules`,{description:t,ref:r,cron:n,...s})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/pipeline_schedules/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/pipeline_schedules/${t}`,r)}run(e,t,r){return a.post()(this,endpoint`projects/${e}/pipeline_schedules/${t}/play`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/pipeline_schedules/${t}`,r)}takeOwnership(e,t,r){return a.post()(this,endpoint`projects/${e}/pipeline_schedules/${t}/take_ownership`,r)}};var Rt=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables`,{...s,key:r,value:n})}edit(e,t,r,n,s){return a.put()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables/${r}`,{...s,value:n})}remove(e,t,r,n){return a.del()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables/${r}`,n)}};var kt=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/triggers`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/triggers`,{description:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/triggers/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/triggers/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/triggers/${t}`,r)}trigger(e,t,r,{variables:n,...s}={}){const o={...s,searchParams:{token:r,ref:t}};if(n){o.isForm=true;Object.assign(o,reformatObjectOptions(n,"variables"))}return a.post()(this,endpoint`projects/${e}/trigger/pipeline`,o)}};var It=class extends n.BaseResource{allFunnels(e,t){return a.get()(this,endpoint`projects/${e}/product_analytics/funnels`,t)}load(e,t){return a.post()(this,endpoint`projects/${e}/product_analytics/request/load`,t)}dryRun(e,t){return a.post()(this,endpoint`projects/${e}/product_analytics/request/dry-run`,t)}showMetadata(e,t){return a.get()(this,endpoint`projects/${e}/product_analytics/request/meta`,t)}};var Pt=class extends x{constructor(e){super("projects",e)}};var Tt=class extends R{constructor(e){super("projects",e)}};var Ct=class extends n.BaseResource{all(e){return a.get()(this,"project_aliases",e)}create(e,t,r){return a.post()(this,"project_aliases",{name:t,projectId:e,...r})}edit(e,t){return a.post()(this,`project_aliases/${e}`,t)}remove(e,t){return a.del()(this,`project_aliases/${e}`,t)}};var Ot=class extends P{constructor(e){super("projects",e)}};var Mt=class extends T{constructor(e){super("projects",e)}};var Nt=class extends C{constructor(e){super("projects",e)}};var Lt=class extends H{constructor(e){super("projects",e)}};var Bt=class extends n.BaseResource{download(e,t){return a.get()(this,endpoint`projects/${e}/export/download`,t)}import(e,t,r){return a.post()(this,"projects/import",{isForm:true,...r,file:[e.content,e.filename],path:t})}importRemote(e,t,r){return a.post()(this,"projects/remote-import",{...r,path:t,url:e})}importRemoteS3(e,t,r,n,s,o,i){return a.post()(this,"projects/remote-import",{...i,accessKeyId:e,bucketName:t,fileKey:r,path:n,region:s,secretAccessKey:o})}showExportStatus(e,t){return a.get()(this,endpoint`projects/${e}/export`,t)}showImportStatus(e,t){return a.get()(this,endpoint`projects/${e}/import`,t)}scheduleExport(e,t,r){return a.post()(this,endpoint`projects/${e}/export`,{...r,upload:t})}};var Ft=class extends W{constructor(e){super("projects",e)}};var Gt=class extends M{constructor(e){super("projects",e)}};var Ut=class extends z{constructor(e){super("project",e)}};var qt=class extends N{constructor(e){super("projects",e)}};var Dt=class extends L{constructor(e){super("projects",e)}};var Ht=class extends B{constructor(e){super("projects",e)}promote(e,t,r){return a.post()(this,endpoint`${e}/milestones/${t}/promote`,r)}};var Kt=class extends Q{constructor(e){super("groups",e)}};var Yt=class extends K{constructor(e){super("projects",e)}};var Wt=class extends n.BaseResource{download(e,t,r){return a.get()(this,endpoint`projects/${e}/export_relations/download`,{relation:t,...r})}showExportStatus(e,t){return a.get()(this,endpoint`projects/${e}/export_relations/status`,t)}scheduleExport(e,t){return a.post()(this,endpoint`projects/${e}/export_relations`,t)}};var zt=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/releases`,t)}create(e,t){return a.post()(this,endpoint`projects/${e}/releases`,t)}createEvidence(e,t,r){return a.post()(this,endpoint`projects/${e}/releases/${t}/evidence`,r)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/releases/${t}`,r)}download(e,t,r,n){return a.get()(this,endpoint`projects/${e}/releases/${t}/downloads/${r}`,n)}downloadLatest(e,t,r){return a.get()(this,endpoint`projects/${e}/releases/permalink/latest/downloads/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/releases/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/releases/${t}`,r)}showLatest(e,t){return a.get()(this,endpoint`projects/${e}/releases/permalink/latest`,t)}showLatestEvidence(e,t){return a.get()(this,endpoint`projects/${e}/releases/permalink/latest/evidence`,t)}};var Qt=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/remote_mirrors`,t)}createPullMirror(e,t,r,n){return a.post()(this,endpoint`projects/${e}/mirror/pull`,{importUrl:t,mirror:r,...n})}createPushMirror(e,t,r){return a.post()(this,endpoint`projects/${e}/remote_mirrors`,{url:t,...r})}edit(e,t,r){return a.post()(this,endpoint`projects/${e}/remote_mirrors/${t}`,r)}remove(e,t){return a.del()(this,`project_aliases/${e}`,t)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/remote_mirrors/${t}`,r)}};var Vt=class extends Y{constructor(e){super("projects",e)}};var Jt=class extends n.BaseResource{all({userId:e,starredOnly:t,...r}={}){let n;if(e&&t)n=endpoint`users/${e}/starred_projects`;else if(e)n=endpoint`users/${e}/projects`;else n="projects";return a.get()(this,n,r)}allTransferLocations(e,t){return a.get()(this,endpoint`projects/${e}/transfer_locations`,t)}allUsers(e,t){return a.get()(this,endpoint`projects/${e}/users`,t)}allGroups(e,t){return a.get()(this,endpoint`projects/${e}/groups`,t)}allSharableGroups(e,t){return a.get()(this,endpoint`projects/${e}/share_locations`,t)}allForks(e,t){return a.get()(this,endpoint`projects/${e}/forks`,t)}allStarrers(e,t){return a.get()(this,endpoint`projects/${e}/starrers`,t)}allStoragePaths(e,t){return a.get()(this,endpoint`projects/${e}/storage`,t)}archive(e,t){return a.post()(this,endpoint`projects/${e}/archive`,t)}create({userId:e,avatar:t,...r}={}){const n=e?`projects/user/${e}`:"projects";if(t){return a.post()(this,n,{...r,isForm:true,avatar:[t.content,t.filename]})}return a.post()(this,n,{...r,avatar:t})}createForkRelationship(e,t,r){return a.post()(this,endpoint`projects/${e}/fork/${t}`,r)}createPullMirror(e,t,r,n){return a.post()(this,endpoint`projects/${e}/mirror/pull`,{importUrl:t,mirror:r,...n})}downloadSnapshot(e,t){return a.get()(this,endpoint`projects/${e}/snapshot`,t)}edit(e,{avatar:t,...r}={}){const n=endpoint`projects/${e}`;if(t){return a.put()(this,n,{...r,isForm:true,avatar:[t.content,t.filename]})}return a.put()(this,n,{...r,avatar:t})}fork(e,t){return a.post()(this,endpoint`projects/${e}/fork`,t)}housekeeping(e,t){return a.post()(this,endpoint`projects/${e}/housekeeping`,t)}importProjectMembers(e,t,r){return a.post()(this,endpoint`projects/${e}/import_project_members/${t}`,r)}remove(e,t){return a.del()(this,endpoint`projects/${e}`,t)}removeForkRelationship(e,t){return a.del()(this,endpoint`projects/${e}/fork`,t)}removeAvatar(e,t){return a.put()(this,endpoint`projects/${e}`,{...t,avatar:""})}restore(e,t){return a.post()(this,endpoint`projects/${e}/restore`,t)}search(e,t){return a.get()(this,"projects",{search:e,...t})}share(e,t,r,n){return a.post()(this,endpoint`projects/${e}/share`,{groupId:t,groupAccess:r,...n})}show(e,t){return a.get()(this,endpoint`projects/${e}`,t)}showLanguages(e,t){return a.get()(this,endpoint`projects/${e}/languages`,t)}showPullMirror(e,t){return a.get()(this,endpoint`projects/${e}/mirror/pull`,t)}star(e,t){return a.post()(this,endpoint`projects/${e}/star`,t)}transfer(e,t,r){return a.put()(this,endpoint`projects/${e}/transfer`,{...r,namespace:t})}unarchive(e,t){return a.post()(this,endpoint`projects/${e}/unarchive`,t)}unshare(e,t,r){return a.del()(this,endpoint`projects/${e}/share/${t}`,r)}unstar(e,t){return a.post()(this,endpoint`projects/${e}/unstar`,t)}uploadForReference(e,t,r){return a.post()(this,endpoint`projects/${e}/uploads`,{...r,isForm:true,file:[t.content,t.filename]})}uploadAvatar(e,t,r){return a.put()(this,endpoint`projects/${e}`,{...r,isForm:true,avatar:[t.content,t.filename]})}};var Xt=class extends k{constructor(e){super("projects","snippets",e)}};var Zt=class extends O{constructor(e){super("projects","snippets",e)}};var er=class extends G{constructor(e){super("projects","snippets",e)}};var tr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/snippets`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/snippets`,{title:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/snippets/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/snippets/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/snippets/${t}`,r)}showContent(e,t,r){return a.get()(this,endpoint`projects/${e}/snippets/${t}/raw`,r)}showRepositoryFileContent(e,t,r,n,s){return a.get()(this,endpoint`projects/${e}/snippets/${t}/files/${r}/${n}/raw`,s)}showUserAgentDetails(e,t,r){return a.get()(this,endpoint`projects/${e}/snippets/${t}/user_agent_detail`,r)}};var rr=class extends n.BaseResource{show(e,t){return a.get()(this,endpoint`projects/${e}/statistics`,t)}};var nr=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/templates/${t}`,r)}show(e,t,r,n){return a.get()(this,endpoint`projects/${e}/templates/${t}/${r}`,n)}};var sr=class extends q{constructor(e){super("projects",e)}};var or=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/vulnerabilities`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/vulnerabilities`,{...r,searchParams:{findingId:t}})}};var ir=class extends D{constructor(e){super("projects",e)}};var ar=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/protected_branches`,t)}create(e,t,r){const{sudo:n,showExpanded:s,...o}=r||{};return a.post()(this,endpoint`projects/${e}/protected_branches`,{searchParams:{...o,name:t},sudo:n,showExpanded:s})}protect(e,t,r){return this.create(e,t,r)}edit(e,t,r){return a.patch()(this,endpoint`projects/${e}/protected_branches/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/protected_branches/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/protected_branches/${t}`,r)}unprotect(e,t,r){return this.remove(e,t,r)}};var cr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/protected_tags`,t)}create(e,t,r){const{sudo:n,showExpanded:s,...o}=r||{};return a.post()(this,endpoint`projects/${e}/protected_tags`,{searchParams:{name:t,...o},sudo:n,showExpanded:s})}protect(e,t,r){return this.create(e,t,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/protected_tags/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/protected_tags/${t}`,r)}unprotect(e,t,r){return this.remove(e,t,r)}};var ur=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/releases/${t}/assets/links`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`projects/${e}/releases/${t}/assets/links`,{name:r,url:n,...s})}edit(e,t,r,n){return a.put()(this,endpoint`projects/${e}/releases/${t}/assets/links/${r}`,n)}remove(e,t,r,n){return a.del()(this,endpoint`projects/${e}/releases/${t}/assets/links/${r}`,n)}show(e,t,r,n){return a.get()(this,endpoint`projects/${e}/releases/${t}/assets/links/${r}`,n)}};var lr=class extends n.BaseResource{allContributors(e,t){return a.get()(this,endpoint`projects/${e}/repository/contributors`,t)}allRepositoryTrees(e,t){return a.get()(this,endpoint`projects/${e}/repository/tree`,t)}compare(e,t,r,n){return a.get()(this,endpoint`projects/${e}/repository/compare`,{from:t,to:r,...n})}editChangelog(e,t,r){return a.post()(this,endpoint`projects/${e}/repository/changelog`,{...r,version:t})}mergeBase(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/merge_base`,{...r,refs:t})}showArchive(e,{fileType:t="tar.gz",...r}={}){return a.get()(this,endpoint`projects/${e}/repository/archive.${t}`,r)}showBlob(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/blobs/${t}`,r)}showBlobRaw(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/blobs/${t}/raw`,r)}showChangelog(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/changelog`,{...r,version:t})}};var pr=class extends n.BaseResource{allFileBlames(e,t,r,n){return a.get()(this,endpoint`projects/${e}/repository/files/${t}/blame`,{ref:r,...n})}create(e,t,r,n,s,o){return a.post()(this,endpoint`projects/${e}/repository/files/${t}`,{branch:r,content:n,commitMessage:s,...o})}edit(e,t,r,n,s,o){return a.put()(this,endpoint`projects/${e}/repository/files/${t}`,{branch:r,content:n,commitMessage:s,...o})}remove(e,t,r,n,s){return a.del()(this,endpoint`projects/${e}/repository/files/${t}`,{branch:r,commitMessage:n,...s})}show(e,t,r,n){return a.get()(this,endpoint`projects/${e}/repository/files/${t}`,{ref:r,...n})}showRaw(e,t,r,n){return a.get()(this,endpoint`projects/${e}/repository/files/${t}/raw`,{ref:r,...n})}};var dr=class extends n.BaseResource{edit(e,t,r,n,s){return a.put()(this,endpoint`projects/${e}/repository/submodules/${t}`,{branch:r,commitSha:n,...s})}};var fr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/resource_groups`,t)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/resource_groups/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/resource_groups/${t}`,r)}allUpcomingJobs(e,t){return a.get()(this,endpoint`projects/${e}/resource_groups/upcoming_jobs`,t)}};var hr=class extends n.BaseResource{all({projectId:e,groupId:t,owned:r,...n}={}){let s;if(e)s=endpoint`projects/${e}/runners`;else if(t)s=endpoint`groups/${t}/runners`;else if(r)s="runners";else s="runners/all";return a.get()(this,s,n)}allJobs(e,t){return a.get()(this,`runners/${e}/jobs`,t)}create(e,t){return a.post()(this,`runners`,{token:e,...t})}edit(e,t){return a.put()(this,`runners/${e}`,t)}enable(e,t,r){return a.post()(this,endpoint`projects/${e}/runners`,{runnerId:t,...r})}disable(e,t,r){return a.del()(this,endpoint`projects/${e}/runners/${t}`,r)}register(e,t){return this.create(e,t)}remove({runnerId:e,token:t,...r}){let n;if(e)n=`runners/${e}`;else if(t){n="runners"}else throw new Error("Missing required argument. Please supply a runnerId or a token in the options parameter");return a.del()(this,n,{token:t,...r})}resetRegistrationToken({runnerId:e,token:t,...r}={}){let n;if(e)n=endpoint`runners/${e}/reset_registration_token`;else if(t)n="runners/reset_registration_token";else{throw new Error("Missing either runnerId or token parameters")}return a.post()(this,n,{token:t,...r})}show(e,t){return a.get()(this,`runners/${e}`,t)}verify(e){return a.post()(this,`runners/verify`,e)}};var gr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/secure_files`,t)}create(e,t,r,n){return a.post()(this,`projects/${e}/secure_files`,{isForm:true,...n,file:[r.content,r.filename],name:t})}download(e,t,r){return a.get()(this,endpoint`projects/${e}/secure_files/${t}/download`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/secure_files/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/secure_files/${t}`,r)}};var mr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/repository/tags`,t)}create(e,t,r,n){return a.post()(this,endpoint`projects/${e}/repository/tags`,{searchParams:{tagName:t,ref:r},...n})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/repository/tags/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/tags/${t}`,r)}showSignature(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/tags/${t}/signature`,r)}};var yr=class extends n.BaseResource{create(e,t,r){return a.get()(this,endpoint`projects/${e}/metrics/user_starred_dashboards`,{dashboardPath:t,...r})}remove(e,t){return a.del()(this,endpoint`projects/${e}/metrics/user_starred_dashboards`,t)}};var vr=class extends k{constructor(e){super("epics","issues",e)}};var $r=class extends O{constructor(e){super("groups","epics",e)}};var br=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}/issues`,r)}assign(e,t,r,n){return a.post()(this,endpoint`groups/${e}/epics/${t}/issues/${r}`,n)}edit(e,t,r,n){return a.put()(this,endpoint`groups/${e}/epics/${t}/issues/${r}`,n)}remove(e,t,r,n){return a.del()(this,endpoint`groups/${e}/epics/${t}/issues/${r}`,n)}};var wr=class extends J{constructor(e){super("groups","epic",e)}};var _r=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}/links`,r)}assign(e,t,r,n){return a.post()(this,endpoint`groups/${e}/epics/${t}/links/${r}`,n)}create(e,t,r,n){return a.post()(this,endpoint`groups/${e}/epics/${t}/links`,{searchParams:{title:r},...n})}reorder(e,t,r,n){return a.put()(this,endpoint`groups/${e}/epics/${t}/links/${r}`,n)}unassign(e,t,r,n){return a.del()(this,endpoint`groups/${e}/epics/${t}/links/${r}`,n)}};var Sr=class extends G{constructor(e){super("groups","epics",e)}};var Er=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/epics`,t)}create(e,t,r){return a.post()(this,endpoint`groups/${e}/epics`,{title:t,...r})}createTodo(e,t,r){return a.post()(this,endpoint`groups/${e}/epics/${t}/todos`,r)}edit(e,t,r){return a.put()(this,endpoint`groups/${e}/epics/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/epics/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}`,r)}};var Ar=class extends x{constructor(e){super("groups",e)}};var jr=class extends R{constructor(e){super("groups",e)}};var xr=class extends n.BaseResource{showIssuesCount(e,t){return a.get()(this,"analytics/group_activity/issues_count",{searchParams:{groupPath:e},...t})}showMergeRequestsCount(e,t){return a.get()(this,"analytics/group_activity/merge_requests_count",{searchParams:{groupPath:e},...t})}showNewMembersCount(e,t){return a.get()(this,"analytics/group_activity/new_members_count",{searchParams:{groupPath:e},...t})}};var Rr=class extends P{constructor(e){super("groups",e)}};var kr=class extends T{constructor(e){super("groups",e)}};var Ir=class extends C{constructor(e){super("groups",e)}};var Pr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/epic_boards`,t)}allLists(e,t,r){return a.get()(this,endpoint`groups/${e}/epic_boards/${t}/lists`,r)}show(e,t,r){return a.get()(this,endpoint`groups/${e}/epic_boards/${t}`,r)}showList(e,t,r,n){return a.get()(this,endpoint`groups/${e}/epic_boards/${t}/lists/${r}`,n)}};var Tr=class extends H{constructor(e){super("groups",e)}};var Cr=class extends n.BaseResource{download(e,t){return a.get()(this,endpoint`groups/${e}/export/download`,t)}import(e,t,{parentId:r,name:n,...s}){return a.post()(this,"groups/import",{isForm:true,...s,file:[e.content,e.filename],path:t,name:n||t.split("/").at(0),parentId:r})}scheduleExport(e,t){return a.post()(this,endpoint`groups/${e}/export`,t)}};var Or=class extends W{constructor(e){super("groups",e)}};var Mr=class extends M{constructor(e){super("groups",e)}};var Nr=class extends z{constructor(e){super("groups",e)}};var Lr=class extends N{constructor(e){super("groups",e)}};var Br=class extends n.BaseResource{add(e,t,r,n){return a.post()(this,endpoint`groups/${e}/ldap_group_links`,{groupAccess:t,provider:r,...n})}all(e,t){return a.get()(this,endpoint`groups/${e}/ldap_group_links`,t)}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/ldap_group_links`,{provider:t,...r})}sync(e,t){return a.post()(this,endpoint`groups/${e}/ldap_sync`,t)}};var Fr=class extends L{constructor(e){super("groups",e)}allBillable(e,t){return a.get()(this,endpoint`${e}/billable_members`,t)}allPending(e,t){return a.get()(this,endpoint`${e}/pending_members`,t)}allBillableMemberships(e,t,r){return a.get()(this,endpoint`${e}/billable_members/${t}/memberships`,r)}approve(e,t,r){return a.put()(this,endpoint`${e}/members/${t}/approve`,r)}approveAll(e,t){return a.put()(this,endpoint`${e}/members/approve_all`,t)}removeBillable(e,t,r){return a.del()(this,endpoint`${e}/billable_members/${t}`,r)}removeOverrideFlag(e,t,r){return a.del()(this,endpoint`${e}/members/${t}/override`,r)}setOverrideFlag(e,t,r){return a.post()(this,endpoint`${e}/members/${t}/override`,r)}};var Gr=class extends n.BaseResource{add(e,t,r){return a.post()(this,endpoint`groups/${e}/members`,{baseAccessLevel:t,...r})}all(e,t){return a.get()(this,endpoint`groups/${e}/member_roles`,t)}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/member_roles/${t}`,r)}};var Ur=class extends B{constructor(e){super("groups",e)}};var qr=class extends Q{constructor(e){super("groups",e)}};var Dr=class extends K{constructor(e){super("groups",e)}};var Hr=class extends n.BaseResource{download(e,t,r){return a.get()(this,endpoint`groups/${e}/export_relations/download`,{searchParams:{relation:t},...r})}exportStatus(e,t){return a.get()(this,endpoint`groups/${e}/export_relations`,t)}scheduleExport(e,t){return a.post()(this,endpoint`groups/${e}/export_relations`,t)}};var Kr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/releases`,t)}};var Yr=class extends Y{constructor(e){super("groups",e)}};var Wr=class extends n.BaseResource{all(e){return a.get()(this,"groups",e)}allDescendantGroups(e,t){return a.get()(this,endpoint`groups/${e}/descendant_groups`,t)}allProjects(e,t){return a.get()(this,endpoint`groups/${e}/projects`,t)}allSharedProjects(e,t){return a.get()(this,endpoint`groups/${e}/projects/shared`,t)}allSubgroups(e,t){return a.get()(this,endpoint`groups/${e}/subgroups`,t)}allProvisionedUsers(e,t){return a.get()(this,endpoint`groups/${e}/provisioned_users`,t)}allTransferLocations(e,t){return a.get()(this,endpoint`groups/${e}/transfer_locations`,t)}create(e,t,{avatar:r,...n}={}){if(r){return a.post()(this,"groups",{...n,isForm:true,avatar:[r.content,r.filename],name:e,path:t})}return a.post()(this,"groups",{name:e,path:t,...n})}downloadAvatar(e,t){return a.get()(this,endpoint`groups/${e}/avatar`,t)}edit(e,{avatar:t,...r}={}){if(t){return a.post()(this,endpoint`groups/${e}`,{...r,isForm:true,avatar:[t.content,t.filename]})}return a.put()(this,endpoint`groups/${e}`,r)}remove(e,t){return a.del()(this,endpoint`groups/${e}`,t)}removeAvatar(e,t){return a.put()(this,endpoint`groups/${e}`,{...t,avatar:""})}restore(e,t){return a.post()(this,endpoint`groups/${e}/restore`,t)}search(e,t){return a.get()(this,"groups",{search:e,...t})}share(e,t,r,n){return a.post()(this,endpoint`groups/${e}/share`,{groupId:t,groupAccess:r,...n})}show(e,t){return a.get()(this,endpoint`groups/${e}`,t)}transfer(e,t){return a.post()(this,endpoint`groups/${e}/transfer`,t)}transferProject(e,t,r){return a.post()(this,endpoint`groups/${e}/projects/${t}`,r)}unshare(e,t,r){return a.del()(this,endpoint`groups/${e}/share/${t}`,r)}uploadAvatar(e,t,{filename:r,...n}={}){return a.put()(this,endpoint`groups/${e}/avatar`,{isForm:true,...n,file:[t,r]})}};var zr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/saml/identities`,t)}edit(e,t,r){return a.patch()(this,endpoint`groups/${e}/saml/${t}`,r)}};var Qr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/saml_group_links`,t)}create(e,t,r,n){return a.post()(this,endpoint`groups/${e}/saml_group_links`,{accessLevel:r,samlGroupName:t,...n})}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/saml_group_links/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`groups/${e}/saml_group_links/${t}`,r)}};var Vr=class extends n.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/scim/identities`,t)}edit(e,t,r){return a.patch()(this,endpoint`groups/${e}/scim/${t}`,r)}};var Jr=class extends n.BaseResource{create(e,t){return a.post()(this,endpoint`groups/${e}/service_accounts`,t)}addPersonalAccessToken(e,t,r){return a.post()(this,endpoint`groups/${e}/service_accounts/${t}`,r)}rotatePersonalAccessToken(e,t,r,n){return a.post()(this,endpoint`groups/${e}/service_accounts/${t}/personal_access_tokens/${r}/rotate`,n)}};var Xr=class extends q{constructor(e){super("groups",e)}};var Zr=class extends D{constructor(e){super("groups",e)}};var en=class extends n.BaseResource{all(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}/related_epics`,r)}create(e,t,r,n,s){return a.post()(this,endpoint`groups/${e}/epics/${t}/related_epics`,{searchParams:{targetGroupId:n,targetEpicIid:r},...s})}remove(e,t,r,n){return a.del()(this,endpoint`groups/${e}/epics/${t}/related_epics/${r}`,n)}};var tn=class extends T{constructor(e){super("users",e)}};var url9=e=>e?`users/${e}/emails`:"user/emails";var rn=class extends n.BaseResource{add(e,t){return this.create(e,t)}all({userId:e,...t}={}){return a.get()(this,url9(e),t)}create(e,{userId:t,...r}={}){return a.post()(this,url9(t),{email:e,...r})}show(e,t){return a.get()(this,`user/emails/${e}`,t)}remove(e,{userId:t,...r}={}){return a.del()(this,`${url9(t)}/${e}`,r)}};var url10=e=>e?`users/${e}/gpg_keys`:"user/gpg_keys";var nn=class extends n.BaseResource{add(e,t){return this.create(e,t)}all({userId:e,...t}={}){return a.get()(this,url10(e),t)}create(e,{userId:t,...r}={}){return a.post()(this,url10(t),{key:e,...r})}show(e,{userId:t,...r}={}){return a.get()(this,`${url10(t)}/${e}`,r)}remove(e,{userId:t,...r}={}){return a.del()(this,`${url10(t)}/${e}`,r)}};var sn=class extends n.BaseResource{all(e,t){return a.get()(this,`users/${e}/impersonation_tokens`,t)}create(e,t,r,n){return a.post()(this,`users/${e}/impersonation_tokens`,{name:t,scopes:r,...n})}show(e,t,r){return a.get()(this,`users/${e}/impersonation_tokens/${t}`,r)}remove(e,t,r){return a.del()(this,`users/${e}/impersonation_tokens/${t}`,r)}revoke(e,t,r){return this.remove(e,t,r)}};var on=class extends n.BaseResource{activate(e,t){return a.post()(this,endpoint`users/${e}/activate`,t)}all(e){return a.get()(this,"users",e)}allActivities(e){return a.get()(this,"user/activities",e)}allEvents(e,t){return a.get()(this,endpoint`users/${e}/events`,t)}allFollowers(e,t){return a.get()(this,endpoint`users/${e}/followers`,t)}allFollowing(e,t){return a.get()(this,endpoint`users/${e}/following`,t)}allMemberships(e,t){return a.get()(this,endpoint`users/${e}/memberships`,t)}allProjects(e,t){return a.get()(this,endpoint`users/${e}/projects`,t)}allContributedProjects(e,t){return a.get()(this,endpoint`users/${e}/contributed_projects`,t)}allStarredProjects(e,t){return a.get()(this,endpoint`users/${e}/starred_projects`,t)}approve(e,t){return a.post()(this,endpoint`users/${e}/approve`,t)}ban(e,t){return a.post()(this,endpoint`users/${e}/ban`,t)}block(e,t){return a.post()(this,endpoint`users/${e}/block`,t)}create(e){return a.post()(this,"users",e)}createPersonalAccessToken(e,t,r,n){return a.post()(this,endpoint`users/${e}/personal_access_tokens`,{name:t,scopes:r,...n})}createCIRunner(e,t){return a.post()(this,"user/runners",{...t,runnerType:e})}deactivate(e,t){return a.post()(this,endpoint`users/${e}/deactivate`,t)}disableTwoFactor(e,t){return a.patch()(this,endpoint`users/${e}/disable_two_factor`,t)}edit(e,t){return a.put()(this,endpoint`users/${e}`,t)}editStatus(e){return a.put()(this,"user/status",e)}editCurrentUserPreferences(e,t,r){return a.put()(this,"user/preferences",{viewDiffsFileByFile:e,showWhitespaceInDiffs:t,...r})}follow(e,t){return a.post()(this,endpoint`users/${e}/follow`,t)}reject(e,t){return a.post()(this,endpoint`users/${e}/reject`,t)}show(e,t){return a.get()(this,endpoint`users/${e}`,t)}showCount(e){return a.get()(this,"user_counts",e)}showAssociationsCount(e,t){return a.get()(this,`users/${e}/associations_count`,t)}showCurrentUser(e){return a.get()(this,"user",e)}showCurrentUserPreferences(e){return a.get()(this,"user/preferences",e)}showStatus({iDOrUsername:e,...t}={}){let r;if(e)r=`users/${e}/status`;else r="user/status";return a.get()(this,r,t)}remove(e,t){return a.del()(this,endpoint`users/${e}`,t)}removeAuthenticationIdentity(e,t,r){return a.del()(this,endpoint`users/${e}/identities/${t}`,r)}unban(e,t){return a.post()(this,endpoint`users/${e}/unban`,t)}unblock(e,t){return a.post()(this,endpoint`users/${e}/unblock`,t)}unfollow(e,t){return a.post()(this,endpoint`users/${e}/unfollow`,t)}};var url11=e=>e?`users/${e}/keys`:"user/keys";var an=class extends n.BaseResource{add(e,t,r){return this.create(e,t,r)}all({userId:e,...t}={}){return a.get()(this,url11(e),t)}create(e,t,{userId:r,...n}={}){return a.post()(this,url11(r),{title:e,key:t,...n})}show(e,{userId:t,...r}={}){return a.get()(this,`${url11(t)}/${e}`,r)}remove(e,{userId:t,...r}={}){return a.del()(this,`${url11(t)}/${e}`,r)}};var cn={Agents:c,AlertManagement:u,ApplicationAppearance:l,ApplicationPlanLimits:p,Applications:d,ApplicationSettings:f,ApplicationStatistics:h,AuditEvents:g,Avatar:m,BroadcastMessages:y,CodeSuggestions:v,Composer:$,Conan:b,DashboardAnnotations:w,Debian:_,DependencyProxy:S,DeployKeys:A,DeployTokens:j,DockerfileTemplates:ee,Events:te,Experiments:re,GeoNodes:ne,GeoSites:se,GitignoreTemplates:oe,GitLabCIYMLTemplates:ie,Import:ae,InstanceLevelCICDVariables:ce,Keys:ue,License:le,LicenseTemplates:pe,Lint:de,Markdown:fe,Maven:he,Metadata:ge,Migrations:me,Namespaces:ye,NotificationSettings:ve,NPM:$e,NuGet:be,PersonalAccessTokens:we,PyPI:_e,RubyGems:Se,Search:Ee,SearchAdmin:Ae,ServiceAccounts:je,ServiceData:xe,SidekiqMetrics:Re,SidekiqQueues:ke,SnippetRepositoryStorageMoves:Ie,Snippets:Pe,Suggestions:Te,SystemHooks:Ce,TodoLists:Oe,Topics:Me,Branches:Ne,CommitDiscussions:Le,Commits:Be,ContainerRegistry:Fe,Deployments:Ge,Environments:Ue,ErrorTrackingClientKeys:qe,ErrorTrackingSettings:De,ExternalStatusChecks:He,FeatureFlags:Ke,FeatureFlagUserLists:Ye,FreezePeriods:We,GitlabPages:ze,GoProxy:Qe,Helm:Ve,Integrations:Je,IssueAwardEmojis:Xe,IssueDiscussions:Ze,IssueIterationEvents:et,IssueLabelEvents:tt,IssueLinks:rt,IssueMilestoneEvents:nt,IssueNoteAwardEmojis:st,IssueNotes:ot,Issues:it,IssuesStatistics:at,IssueStateEvents:ct,IssueWeightEvents:ut,JobArtifacts:lt,Jobs:pt,MergeRequestApprovals:dt,MergeRequestAwardEmojis:ft,MergeRequestContextCommits:ht,MergeRequestDiscussions:gt,MergeRequestLabelEvents:mt,MergeRequestMilestoneEvents:yt,MergeRequestDraftNotes:vt,MergeRequestNotes:$t,MergeRequestNoteAwardEmojis:bt,MergeRequests:wt,MergeTrains:_t,PackageRegistry:St,Packages:Et,PagesDomains:At,Pipelines:jt,PipelineSchedules:xt,PipelineScheduleVariables:Rt,PipelineTriggerTokens:kt,ProductAnalytics:It,ProjectAccessRequests:Pt,ProjectAccessTokens:Tt,ProjectAliases:Ct,ProjectBadges:Ot,ProjectCustomAttributes:Mt,ProjectDORA4Metrics:Nt,ProjectHooks:Lt,ProjectImportExports:Bt,ProjectInvitations:Ft,ProjectIssueBoards:Gt,ProjectIterations:Ut,ProjectLabels:qt,ProjectMembers:Dt,ProjectMilestones:Ht,ProjectProtectedEnvironments:Kt,ProjectPushRules:Yt,ProjectRelationsExport:Wt,ProjectReleases:zt,ProjectRemoteMirrors:Qt,ProjectRepositoryStorageMoves:Vt,Projects:Jt,ProjectSnippetAwardEmojis:Xt,ProjectSnippetDiscussions:Zt,ProjectSnippetNotes:er,ProjectSnippets:tr,ProjectStatistics:rr,ProjectTemplates:nr,ProjectVariables:sr,ProjectVulnerabilities:or,ProjectWikis:ir,ProtectedBranches:ar,ProtectedTags:cr,ReleaseLinks:ur,Repositories:lr,RepositoryFiles:pr,RepositorySubmodules:dr,ResourceGroups:fr,Runners:hr,SecureFiles:gr,Tags:mr,UserStarredMetricsDashboard:yr,EpicAwardEmojis:vr,EpicDiscussions:$r,EpicIssues:br,EpicLabelEvents:wr,EpicLinks:_r,EpicNotes:Sr,Epics:Er,GroupAccessRequests:Ar,GroupAccessTokens:jr,GroupActivityAnalytics:xr,GroupBadges:Rr,GroupCustomAttributes:kr,GroupDORA4Metrics:Ir,GroupEpicBoards:Pr,GroupHooks:Tr,GroupImportExports:Cr,GroupInvitations:Or,GroupIssueBoards:Mr,GroupIterations:Nr,GroupLabels:Lr,GroupLDAPLinks:Br,GroupMembers:Fr,GroupMemberRoles:Gr,GroupMilestones:Ur,GroupProtectedEnvironments:qr,GroupPushRules:Dr,GroupRelationExports:Hr,GroupReleases:Kr,GroupRepositoryStorageMoves:Yr,Groups:Wr,GroupSAMLIdentities:zr,GroupSAMLLinks:Qr,GroupSCIMIdentities:Vr,GroupServiceAccounts:Jr,GroupVariables:Xr,GroupWikis:Zr,LinkedEpics:en,UserCustomAttributes:tn,UserEmails:rn,UserGPGKeys:nn,UserImpersonationTokens:sn,Users:on,UserSSHKeys:an};var un=class extends n.BaseResource{constructor(e){super(e);Object.keys(cn).forEach((t=>{this[t]=new cn[t](e)}))}};var ln=(e=>{e[e["NO_ACCESS"]=0]="NO_ACCESS";e[e["MINIMAL_ACCESS"]=5]="MINIMAL_ACCESS";e[e["GUEST"]=10]="GUEST";e[e["REPORTER"]=20]="REPORTER";e[e["DEVELOPER"]=30]="DEVELOPER";e[e["MAINTAINER"]=40]="MAINTAINER";e[e["OWNER"]=50]="OWNER";e[e["ADMIN"]=60]="ADMIN";return e})(ln||{});t.AccessLevel=ln;t.Agents=c;t.AlertManagement=u;t.ApplicationAppearance=l;t.ApplicationPlanLimits=p;t.ApplicationSettings=f;t.ApplicationStatistics=h;t.Applications=d;t.AuditEvents=g;t.Avatar=m;t.Branches=Ne;t.BroadcastMessages=y;t.CodeSuggestions=v;t.CommitDiscussions=Le;t.Commits=Be;t.Composer=$;t.Conan=b;t.ContainerRegistry=Fe;t.DashboardAnnotations=w;t.Debian=_;t.DependencyProxy=S;t.DeployKeys=A;t.DeployTokens=j;t.Deployments=Ge;t.DockerfileTemplates=ee;t.Environments=Ue;t.EpicAwardEmojis=vr;t.EpicDiscussions=$r;t.EpicIssues=br;t.EpicLabelEvents=wr;t.EpicLinks=_r;t.EpicNotes=Sr;t.Epics=Er;t.ErrorTrackingClientKeys=qe;t.ErrorTrackingSettings=De;t.Events=te;t.Experiments=re;t.ExternalStatusChecks=He;t.FeatureFlagUserLists=Ye;t.FeatureFlags=Ke;t.FreezePeriods=We;t.GeoNodes=ne;t.GeoSites=se;t.GitLabCIYMLTemplates=ie;t.GitignoreTemplates=oe;t.Gitlab=un;t.GitlabPages=ze;t.GoProxy=Qe;t.GroupAccessRequests=Ar;t.GroupAccessTokens=jr;t.GroupActivityAnalytics=xr;t.GroupBadges=Rr;t.GroupCustomAttributes=kr;t.GroupDORA4Metrics=Ir;t.GroupEpicBoards=Pr;t.GroupHooks=Tr;t.GroupImportExports=Cr;t.GroupInvitations=Or;t.GroupIssueBoards=Mr;t.GroupIterations=Nr;t.GroupLDAPLinks=Br;t.GroupLabels=Lr;t.GroupMemberRoles=Gr;t.GroupMembers=Fr;t.GroupMilestones=Ur;t.GroupProtectedEnvironments=qr;t.GroupPushRules=Dr;t.GroupRelationExports=Hr;t.GroupReleases=Kr;t.GroupRepositoryStorageMoves=Yr;t.GroupSAMLIdentities=zr;t.GroupSAMLLinks=Qr;t.GroupSCIMIdentities=Vr;t.GroupServiceAccounts=Jr;t.GroupVariables=Xr;t.GroupWikis=Zr;t.Groups=Wr;t.Helm=Ve;t.Import=ae;t.InstanceLevelCICDVariables=ce;t.Integrations=Je;t.IssueAwardEmojis=Xe;t.IssueDiscussions=Ze;t.IssueIterationEvents=et;t.IssueLabelEvents=tt;t.IssueLinks=rt;t.IssueMilestoneEvents=nt;t.IssueNoteAwardEmojis=st;t.IssueNotes=ot;t.IssueStateEvents=ct;t.IssueWeightEvents=ut;t.Issues=it;t.IssuesStatistics=at;t.JobArtifacts=lt;t.Jobs=pt;t.Keys=ue;t.License=le;t.LicenseTemplates=pe;t.LinkedEpics=en;t.Lint=de;t.Markdown=fe;t.Maven=he;t.MergeRequestApprovals=dt;t.MergeRequestAwardEmojis=ft;t.MergeRequestContextCommits=ht;t.MergeRequestDiscussions=gt;t.MergeRequestDraftNotes=vt;t.MergeRequestLabelEvents=mt;t.MergeRequestMilestoneEvents=yt;t.MergeRequestNoteAwardEmojis=bt;t.MergeRequestNotes=$t;t.MergeRequests=wt;t.MergeTrains=_t;t.Metadata=ge;t.Migrations=me;t.NPM=$e;t.Namespaces=ye;t.NotificationSettings=ve;t.NuGet=be;t.PackageRegistry=St;t.Packages=Et;t.PagesDomains=At;t.PersonalAccessTokens=we;t.PipelineScheduleVariables=Rt;t.PipelineSchedules=xt;t.PipelineTriggerTokens=kt;t.Pipelines=jt;t.ProductAnalytics=It;t.ProjectAccessRequests=Pt;t.ProjectAccessTokens=Tt;t.ProjectAliases=Ct;t.ProjectBadges=Ot;t.ProjectCustomAttributes=Mt;t.ProjectDORA4Metrics=Nt;t.ProjectHooks=Lt;t.ProjectImportExports=Bt;t.ProjectInvitations=Ft;t.ProjectIssueBoards=Gt;t.ProjectIterations=Ut;t.ProjectLabels=qt;t.ProjectMembers=Dt;t.ProjectMilestones=Ht;t.ProjectProtectedEnvironments=Kt;t.ProjectPushRules=Yt;t.ProjectRelationsExport=Wt;t.ProjectReleases=zt;t.ProjectRemoteMirrors=Qt;t.ProjectRepositoryStorageMoves=Vt;t.ProjectSnippetAwardEmojis=Xt;t.ProjectSnippetDiscussions=Zt;t.ProjectSnippetNotes=er;t.ProjectSnippets=tr;t.ProjectStatistics=rr;t.ProjectTemplates=nr;t.ProjectVariables=sr;t.ProjectVulnerabilities=or;t.ProjectWikis=ir;t.Projects=Jt;t.ProtectedBranches=ar;t.ProtectedTags=cr;t.PyPI=_e;t.ReleaseLinks=ur;t.Repositories=lr;t.RepositoryFiles=pr;t.RepositorySubmodules=dr;t.ResourceGroups=fr;t.RubyGems=Se;t.Runners=hr;t.Search=Ee;t.SearchAdmin=Ae;t.SecureFiles=gr;t.ServiceAccounts=je;t.ServiceData=xe;t.SidekiqMetrics=Re;t.SidekiqQueues=ke;t.SnippetRepositoryStorageMoves=Ie;t.Snippets=Pe;t.Suggestions=Te;t.SystemHooks=Ce;t.Tags=mr;t.TodoLists=Oe;t.Topics=Me;t.UserCustomAttributes=tn;t.UserEmails=rn;t.UserGPGKeys=nn;t.UserImpersonationTokens=sn;t.UserSSHKeys=an;t.UserStarredMetricsDashboard=yr;t.Users=on},8126:(e,t,r)=>{"use strict";var n=r(891);var s=r(6308);var o=r(9490);var i=r(6674);function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a=_interopDefault(i);function formatQuery(e={}){const t=s.decamelizeKeys(e);return n.stringify(t,{arrayFormat:"brackets"})}async function defaultOptionsHandler(e,{body:t,searchParams:r,sudo:n,signal:o,asStream:i=false,method:a="GET"}={}){const{headers:c,authHeaders:u,url:l}=e;const p={...c};const d={method:a,asStream:i,signal:o,prefixUrl:l};d.headers=p;if(n)d.headers.sudo=`${n}`;if(t){if(t instanceof FormData){d.body=t}else{d.body=JSON.stringify(s.decamelizeKeys(t));d.headers["content-type"]="application/json"}}const[f,h]=Object.entries(u)[0];d.headers[f]=await h();const g=formatQuery(r);if(g)d.searchParams=g;return Promise.resolve(d)}function createRateLimiters(e={}){const t={};Object.entries(e).forEach((([e,r])=>{if(typeof r==="number")t[e]=o.RateLimit(r,{timeUnit:6e4});else t[e]={method:r.method.toUpperCase(),limit:o.RateLimit(r.limit,{timeUnit:6e4})}}));return t}function createRequesterFn(e,t){const r=["get","post","put","patch","delete"];return n=>{const s={};const o=createRateLimiters(n.rateLimits);r.forEach((r=>{s[r]=async(s,i)=>{const a=await defaultOptionsHandler(n,{...i,method:r.toUpperCase()});const c=await e(n,a);return t(s,{...c,rateLimiters:o})}}));return s}}function extendClass(e,t){return class extends e{constructor(...e){const[r,...n]=e;super({...t,...r},...n)}}}function presetResourceArguments(e,t={}){const r={};Object.entries(e).filter((([,e])=>typeof e==="function")).forEach((([e,n])=>{r[e]=extendClass(n,t)}));return r}function getMatchingRateLimiter(e,t={},r="GET"){const n=Object.keys(t).sort().reverse();const s=n.find((t=>a.default.isMatch(e,t)));const i=s&&t[s];if(i&&typeof i!=="object"){return i}if(i&&i.method.toUpperCase()===r.toUpperCase()){return i.limit}return o.RateLimit(3e3,{timeUnit:6e4})}function getDynamicToken(e){return e instanceof Function?e():Promise.resolve(e)}var c=Object.freeze({"**":3e3,"projects/import":6,"projects/*/export":6,"projects/*/download":1,"groups/import":6,"groups/*/export":6,"groups/*/download":1,"projects/*/issues/*/notes":{method:"post",limit:300},"projects/*/snippets/*/notes":{method:"post",limit:300},"projects/*/merge_requests/*/notes":{method:"post",limit:300},"groups/*/epics/*/notes":{method:"post",limit:300},"projects/*/repository/archive*":5,"projects/*/jobs":600,"projects/*/members":60,"groups/*/members":60});var u=class{url;requester;queryTimeout;headers;authHeaders;camelize;rejectUnauthorized;constructor({sudo:e,profileToken:t,camelize:r,requesterFn:n,profileMode:s="execution",host:o="https://gitlab.com",prefixUrl:i="",rejectUnauthorized:a=true,queryTimeout:u=3e5,rateLimits:l=c,...p}){if(!n)throw new ReferenceError("requesterFn must be passed");this.url=[o,"api","v4",i].join("/");this.headers={};this.authHeaders={};this.rejectUnauthorized=a;this.camelize=r;this.queryTimeout=u;if("oauthToken"in p)this.authHeaders.authorization=async()=>{const e=await getDynamicToken(p.oauthToken);return`Bearer ${e}`};else if("jobToken"in p)this.authHeaders["job-token"]=async()=>getDynamicToken(p.jobToken);else if("token"in p)this.authHeaders["private-token"]=async()=>getDynamicToken(p.token);else{throw new ReferenceError("A token, oauthToken or jobToken must be passed")}if(t){this.headers["X-Profile-Token"]=t;this.headers["X-Profile-Mode"]=s}if(e)this.headers.Sudo=`${e}`;this.requester=n({...this,rateLimits:l})}};var l=class extends Error{constructor(e,t){super(e,t);this.name="GitbeakerRequestError"}};var p=class extends Error{constructor(e){super(e);this.name="GitbeakerTimeoutError"}};var d=class extends Error{constructor(e){super(e);this.name="GitbeakerTimeoutError"}};t.BaseResource=u;t.GitbeakerRequestError=l;t.GitbeakerRetryError=d;t.GitbeakerTimeoutError=p;t.createRateLimiters=createRateLimiters;t.createRequesterFn=createRequesterFn;t.defaultOptionsHandler=defaultOptionsHandler;t.formatQuery=formatQuery;t.getMatchingRateLimiter=getMatchingRateLimiter;t.presetResourceArguments=presetResourceArguments},3532:(e,t,r)=>{"use strict";var n=r(5182);var s=r(8126);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}}))}t.default=e;return Object.freeze(t)}var o=_interopNamespace(n);async function defaultOptionsHandler(e,t){const n={...t};if(e.url.includes("https")&&e.rejectUnauthorized!=null&&e.rejectUnauthorized===false){if(typeof window!=="object"){const{Agent:e}=await Promise.resolve().then(r.t.bind(r,5692,23));n.agent=new e({rejectUnauthorized:false})}}return n}async function processBody(e){const t=(e.headers.get("content-type")||"").split(";")[0].trim();if(t==="application/json"){return e.json().then((e=>e||{}))}if(t.startsWith("text/")){return e.text().then((e=>e||""))}return e.blob()}function delay(e){return new Promise((t=>{setTimeout(t,e)}))}async function parseResponse(e,t=false){const{status:r,headers:n}=e;const s=Object.fromEntries(n.entries());let o;if(t){o=e.body}else{o=r===204?null:await processBody(e)}return{body:o,headers:s,status:r}}async function throwFailedRequestError(e,t){const r=await t.text();const n=t.headers.get("Content-Type");let o="API Request Error";if(n?.includes("application/json")){const e=JSON.parse(r);o=JSON.stringify(e.error||e.message,null,2)}else{o=r}throw new s.GitbeakerRequestError(t.statusText,{cause:{description:o,request:e,response:t}})}function getConditionalMode(e){if(e.includes("repository/archive"))return"same-origin";return void 0}async function defaultRequestHandler(e,t){const r=[429,502];const n=10;const{prefixUrl:o,asStream:i,searchParams:a,rateLimiters:c,method:u,...l}=t||{};const p=s.getMatchingRateLimiter(e,c,u);let d;if(o)d=o.endsWith("/")?o:`${o}/`;const f=new URL(e,d);f.search=a||"";const h=getConditionalMode(e);for(let e=0;e<n;e+=1){const t=new Request(f,{...l,method:u,mode:h});await p();const n=await fetch(t).catch((e=>{if(e.name==="TimeoutError"||e.name==="AbortError"){throw new s.GitbeakerTimeoutError("Query timeout was reached")}throw e}));if(n.ok)return parseResponse(n,i);if(!r.includes(n.status))await throwFailedRequestError(t,n);await delay(2**e*.25);continue}throw new s.GitbeakerRetryError(`Could not successfully complete this request due to Error 429. Check the applicable rate limits for this endpoint.`)}var i=s.createRequesterFn(defaultOptionsHandler,defaultRequestHandler);var{AccessLevel:a,...c}=o;var u=s.presetResourceArguments(c,{requesterFn:i});var l=a;var{Agents:p,AlertManagement:d,ApplicationAppearance:f,ApplicationPlanLimits:h,Applications:g,ApplicationSettings:m,ApplicationStatistics:y,AuditEvents:v,Avatar:$,BroadcastMessages:b,CodeSuggestions:w,Composer:_,Conan:S,DashboardAnnotations:A,Debian:j,DependencyProxy:x,DeployKeys:R,DeployTokens:k,DockerfileTemplates:I,Events:P,Experiments:T,GeoNodes:C,GeoSites:O,GitignoreTemplates:M,GitLabCIYMLTemplates:N,Import:L,InstanceLevelCICDVariables:B,Keys:G,License:U,LicenseTemplates:q,Lint:D,Markdown:H,Maven:K,Metadata:Y,Migrations:W,Namespaces:z,NotificationSettings:Q,NPM:V,NuGet:J,PersonalAccessTokens:X,PyPI:Z,RubyGems:ee,Search:te,SearchAdmin:re,ServiceAccounts:ne,ServiceData:se,SidekiqMetrics:oe,SidekiqQueues:ie,SnippetRepositoryStorageMoves:ae,Snippets:ce,Suggestions:ue,SystemHooks:le,TodoLists:pe,Topics:de,Branches:fe,CommitDiscussions:he,Commits:ge,ContainerRegistry:me,Deployments:ye,Environments:ve,ErrorTrackingClientKeys:$e,ErrorTrackingSettings:be,ExternalStatusChecks:we,FeatureFlags:_e,FeatureFlagUserLists:Se,FreezePeriods:Ee,GitlabPages:Ae,GoProxy:je,Helm:xe,Integrations:Re,IssueAwardEmojis:ke,IssueDiscussions:Ie,IssueIterationEvents:Pe,IssueLabelEvents:Te,IssueLinks:Ce,IssueMilestoneEvents:Oe,IssueNoteAwardEmojis:Me,IssueNotes:Ne,Issues:Le,IssuesStatistics:Be,IssueStateEvents:Fe,IssueWeightEvents:Ge,JobArtifacts:Ue,Jobs:qe,MergeRequestApprovals:De,MergeRequestAwardEmojis:He,MergeRequestContextCommits:Ke,MergeRequestDiscussions:Ye,MergeRequestLabelEvents:We,MergeRequestMilestoneEvents:ze,MergeRequestDraftNotes:Qe,MergeRequestNotes:Ve,MergeRequestNoteAwardEmojis:Je,MergeRequests:Xe,MergeTrains:Ze,PackageRegistry:et,Packages:tt,PagesDomains:rt,Pipelines:nt,PipelineSchedules:st,PipelineScheduleVariables:ot,PipelineTriggerTokens:it,ProductAnalytics:at,ProjectAccessRequests:ct,ProjectAccessTokens:ut,ProjectAliases:lt,ProjectBadges:pt,ProjectCustomAttributes:dt,ProjectDORA4Metrics:ft,ProjectHooks:ht,ProjectImportExports:gt,ProjectInvitations:mt,ProjectIssueBoards:yt,ProjectIterations:vt,ProjectLabels:$t,ProjectMembers:bt,ProjectMilestones:wt,ProjectProtectedEnvironments:_t,ProjectPushRules:St,ProjectRelationsExport:Et,ProjectReleases:At,ProjectRemoteMirrors:jt,ProjectRepositoryStorageMoves:xt,Projects:Rt,ProjectSnippetAwardEmojis:kt,ProjectSnippetDiscussions:It,ProjectSnippetNotes:Pt,ProjectSnippets:Tt,ProjectStatistics:Ct,ProjectTemplates:Ot,ProjectVariables:Mt,ProjectVulnerabilities:Nt,ProjectWikis:Lt,ProtectedBranches:Bt,ProtectedTags:Ft,ReleaseLinks:Gt,Repositories:Ut,RepositoryFiles:qt,RepositorySubmodules:Dt,ResourceGroups:Ht,Runners:Kt,SecureFiles:Yt,Tags:Wt,UserStarredMetricsDashboard:zt,EpicAwardEmojis:Qt,EpicDiscussions:Vt,EpicIssues:Jt,EpicLabelEvents:Xt,EpicLinks:Zt,EpicNotes:er,Epics:tr,GroupAccessRequests:rr,GroupAccessTokens:nr,GroupActivityAnalytics:sr,GroupBadges:or,GroupCustomAttributes:ir,GroupDORA4Metrics:ar,GroupEpicBoards:cr,GroupHooks:ur,GroupImportExports:lr,GroupInvitations:pr,GroupIssueBoards:dr,GroupIterations:fr,GroupLabels:hr,GroupLDAPLinks:gr,GroupMembers:mr,GroupMemberRoles:yr,GroupMilestones:vr,GroupProtectedEnvironments:$r,GroupPushRules:br,GroupRelationExports:wr,GroupReleases:_r,GroupRepositoryStorageMoves:Sr,Groups:Er,GroupSAMLIdentities:Ar,GroupSAMLLinks:jr,GroupSCIMIdentities:xr,GroupServiceAccounts:Rr,GroupVariables:kr,GroupWikis:Ir,LinkedEpics:Pr,UserCustomAttributes:Tr,UserEmails:Cr,UserGPGKeys:Or,UserImpersonationTokens:Mr,Users:Nr,UserSSHKeys:Lr,Gitlab:Br}=u;t.AccessLevel=l;t.Agents=p;t.AlertManagement=d;t.ApplicationAppearance=f;t.ApplicationPlanLimits=h;t.ApplicationSettings=m;t.ApplicationStatistics=y;t.Applications=g;t.AuditEvents=v;t.Avatar=$;t.Branches=fe;t.BroadcastMessages=b;t.CodeSuggestions=w;t.CommitDiscussions=he;t.Commits=ge;t.Composer=_;t.Conan=S;t.ContainerRegistry=me;t.DashboardAnnotations=A;t.Debian=j;t.DependencyProxy=x;t.DeployKeys=R;t.DeployTokens=k;t.Deployments=ye;t.DockerfileTemplates=I;t.Environments=ve;t.EpicAwardEmojis=Qt;t.EpicDiscussions=Vt;t.EpicIssues=Jt;t.EpicLabelEvents=Xt;t.EpicLinks=Zt;t.EpicNotes=er;t.Epics=tr;t.ErrorTrackingClientKeys=$e;t.ErrorTrackingSettings=be;t.Events=P;t.Experiments=T;t.ExternalStatusChecks=we;t.FeatureFlagUserLists=Se;t.FeatureFlags=_e;t.FreezePeriods=Ee;t.GeoNodes=C;t.GeoSites=O;t.GitLabCIYMLTemplates=N;t.GitignoreTemplates=M;t.Gitlab=Br;t.GitlabPages=Ae;t.GoProxy=je;t.GroupAccessRequests=rr;t.GroupAccessTokens=nr;t.GroupActivityAnalytics=sr;t.GroupBadges=or;t.GroupCustomAttributes=ir;t.GroupDORA4Metrics=ar;t.GroupEpicBoards=cr;t.GroupHooks=ur;t.GroupImportExports=lr;t.GroupInvitations=pr;t.GroupIssueBoards=dr;t.GroupIterations=fr;t.GroupLDAPLinks=gr;t.GroupLabels=hr;t.GroupMemberRoles=yr;t.GroupMembers=mr;t.GroupMilestones=vr;t.GroupProtectedEnvironments=$r;t.GroupPushRules=br;t.GroupRelationExports=wr;t.GroupReleases=_r;t.GroupRepositoryStorageMoves=Sr;t.GroupSAMLIdentities=Ar;t.GroupSAMLLinks=jr;t.GroupSCIMIdentities=xr;t.GroupServiceAccounts=Rr;t.GroupVariables=kr;t.GroupWikis=Ir;t.Groups=Er;t.Helm=xe;t.Import=L;t.InstanceLevelCICDVariables=B;t.Integrations=Re;t.IssueAwardEmojis=ke;t.IssueDiscussions=Ie;t.IssueIterationEvents=Pe;t.IssueLabelEvents=Te;t.IssueLinks=Ce;t.IssueMilestoneEvents=Oe;t.IssueNoteAwardEmojis=Me;t.IssueNotes=Ne;t.IssueStateEvents=Fe;t.IssueWeightEvents=Ge;t.Issues=Le;t.IssuesStatistics=Be;t.JobArtifacts=Ue;t.Jobs=qe;t.Keys=G;t.License=U;t.LicenseTemplates=q;t.LinkedEpics=Pr;t.Lint=D;t.Markdown=H;t.Maven=K;t.MergeRequestApprovals=De;t.MergeRequestAwardEmojis=He;t.MergeRequestContextCommits=Ke;t.MergeRequestDiscussions=Ye;t.MergeRequestDraftNotes=Qe;t.MergeRequestLabelEvents=We;t.MergeRequestMilestoneEvents=ze;t.MergeRequestNoteAwardEmojis=Je;t.MergeRequestNotes=Ve;t.MergeRequests=Xe;t.MergeTrains=Ze;t.Metadata=Y;t.Migrations=W;t.NPM=V;t.Namespaces=z;t.NotificationSettings=Q;t.NuGet=J;t.PackageRegistry=et;t.Packages=tt;t.PagesDomains=rt;t.PersonalAccessTokens=X;t.PipelineScheduleVariables=ot;t.PipelineSchedules=st;t.PipelineTriggerTokens=it;t.Pipelines=nt;t.ProductAnalytics=at;t.ProjectAccessRequests=ct;t.ProjectAccessTokens=ut;t.ProjectAliases=lt;t.ProjectBadges=pt;t.ProjectCustomAttributes=dt;t.ProjectDORA4Metrics=ft;t.ProjectHooks=ht;t.ProjectImportExports=gt;t.ProjectInvitations=mt;t.ProjectIssueBoards=yt;t.ProjectIterations=vt;t.ProjectLabels=$t;t.ProjectMembers=bt;t.ProjectMilestones=wt;t.ProjectProtectedEnvironments=_t;t.ProjectPushRules=St;t.ProjectRelationsExport=Et;t.ProjectReleases=At;t.ProjectRemoteMirrors=jt;t.ProjectRepositoryStorageMoves=xt;t.ProjectSnippetAwardEmojis=kt;t.ProjectSnippetDiscussions=It;t.ProjectSnippetNotes=Pt;t.ProjectSnippets=Tt;t.ProjectStatistics=Ct;t.ProjectTemplates=Ot;t.ProjectVariables=Mt;t.ProjectVulnerabilities=Nt;t.ProjectWikis=Lt;t.Projects=Rt;t.ProtectedBranches=Bt;t.ProtectedTags=Ft;t.PyPI=Z;t.ReleaseLinks=Gt;t.Repositories=Ut;t.RepositoryFiles=qt;t.RepositorySubmodules=Dt;t.ResourceGroups=Ht;t.RubyGems=ee;t.Runners=Kt;t.Search=te;t.SearchAdmin=re;t.SecureFiles=Yt;t.ServiceAccounts=ne;t.ServiceData=se;t.SidekiqMetrics=oe;t.SidekiqQueues=ie;t.SnippetRepositoryStorageMoves=ae;t.Snippets=ce;t.Suggestions=ue;t.SystemHooks=le;t.Tags=Wt;t.TodoLists=pe;t.Topics=de;t.UserCustomAttributes=Tr;t.UserEmails=Cr;t.UserGPGKeys=Or;t.UserImpersonationTokens=Mr;t.UserSSHKeys=Lr;t.UserStarredMetricsDashboard=zt;t.Users=Nr},9490:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.RateLimit=t.Sema=void 0;const s=n(r(4434));function arrayMove(e,t,r,n,s){for(let o=0;o<s;++o){r[o+n]=e[o+t];e[o+t]=void 0}}function pow2AtLeast(e){e=e>>>0;e=e-1;e=e|e>>1;e=e|e>>2;e=e|e>>4;e=e|e>>8;e=e|e>>16;return e+1}function getCapacity(e){return pow2AtLeast(Math.min(Math.max(16,e),1073741824))}class Deque{constructor(e){this._capacity=getCapacity(e);this._length=0;this._front=0;this.arr=[]}push(e){const t=this._length;this.checkCapacity(t+1);const r=this._front+t&this._capacity-1;this.arr[r]=e;this._length=t+1;return t+1}pop(){const e=this._length;if(e===0){return void 0}const t=this._front+e-1&this._capacity-1;const r=this.arr[t];this.arr[t]=void 0;this._length=e-1;return r}shift(){const e=this._length;if(e===0){return void 0}const t=this._front;const r=this.arr[t];this.arr[t]=void 0;this._front=t+1&this._capacity-1;this._length=e-1;return r}get length(){return this._length}checkCapacity(e){if(this._capacity<e){this.resizeTo(getCapacity(this._capacity*1.5+16))}}resizeTo(e){const t=this._capacity;this._capacity=e;const r=this._front;const n=this._length;if(r+n>t){const e=r+n&t-1;arrayMove(this.arr,0,this.arr,t,e)}}}class ReleaseEmitter extends s.default{}function isFn(e){return typeof e==="function"}function defaultInit(){return"1"}class Sema{constructor(e,{initFn:t=defaultInit,pauseFn:r,resumeFn:n,capacity:s=10}={}){if(isFn(r)!==isFn(n)){throw new Error("pauseFn and resumeFn must be both set for pausing")}this.nrTokens=e;this.free=new Deque(e);this.waiting=new Deque(s);this.releaseEmitter=new ReleaseEmitter;this.noTokens=t===defaultInit;this.pauseFn=r;this.resumeFn=n;this.paused=false;this.releaseEmitter.on("release",(e=>{const t=this.waiting.shift();if(t){t.resolve(e)}else{if(this.resumeFn&&this.paused){this.paused=false;this.resumeFn()}this.free.push(e)}}));for(let r=0;r<e;r++){this.free.push(t())}}tryAcquire(){return this.free.pop()}async acquire(){let e=this.tryAcquire();if(e!==void 0){return e}return new Promise(((e,t)=>{if(this.pauseFn&&!this.paused){this.paused=true;this.pauseFn()}this.waiting.push({resolve:e,reject:t})}))}release(e){this.releaseEmitter.emit("release",this.noTokens?"1":e)}drain(){const e=new Array(this.nrTokens);for(let t=0;t<this.nrTokens;t++){e[t]=this.acquire()}return Promise.all(e)}nrWaiting(){return this.waiting.length}}t.Sema=Sema;function RateLimit(e,{timeUnit:t=1e3,uniformDistribution:r=false}={}){const n=new Sema(r?1:e);const s=r?t/e:t;return async function rl(){await n.acquire();setTimeout((()=>n.release()),s)}}t.RateLimit=RateLimit},8671:(e,t,r)=>{"use strict";const n=r(3062);const s=r(4898);const o=r(5331);const i=r(168);const braces=(e,t={})=>{let r=[];if(Array.isArray(e)){for(const n of e){const e=braces.create(n,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(braces.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};braces.parse=(e,t={})=>i(e,t);braces.stringify=(e,t={})=>{if(typeof e==="string"){return n(braces.parse(e,t),t)}return n(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return s(e,t)};braces.expand=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}let r=o(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r};braces.create=(e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?braces.compile(e,t):braces.expand(e,t)};e.exports=braces},4898:(e,t,r)=>{"use strict";const n=r(9730);const s=r(2474);const compile=(e,t={})=>{const walk=(e,r={})=>{const o=s.isInvalidBrace(r);const i=e.invalid===true&&t.escapeInvalid===true;const a=o===true||i===true;const c=t.escapeInvalid===true?"\\":"";let u="";if(e.isOpen===true){return c+e.value}if(e.isClose===true){console.log("node.isClose",c,e.value);return c+e.value}if(e.type==="open"){return a?c+e.value:"("}if(e.type==="close"){return a?c+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":a?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){const r=s.reduce(e.nodes);const o=n(...r,{...t,wrap:false,toRegex:true,strictZeros:true});if(o.length!==0){return r.length>1&&o.length>1?`(${o})`:o}}if(e.nodes){for(const t of e.nodes){u+=walk(t,e)}}return u};return walk(e)};e.exports=compile},1778:e=>{"use strict";e.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5331:(e,t,r)=>{"use strict";const n=r(9730);const s=r(3062);const o=r(2474);const append=(e="",t="",r=false)=>{const n=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?o.flatten(t).map((e=>`{${e}}`)):t}for(const s of e){if(Array.isArray(s)){for(const e of s){n.push(append(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;n.push(Array.isArray(e)?append(s,e,r):s+e)}}}return o.flatten(n)};const expand=(e,t={})=>{const r=t.rangeLimit===undefined?1e3:t.rangeLimit;const walk=(e,i={})=>{e.queue=[];let a=i;let c=i.queue;while(a.type!=="brace"&&a.type!=="root"&&a.parent){a=a.parent;c=a.queue}if(e.invalid||e.dollar){c.push(append(c.pop(),s(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){c.push(append(c.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){const i=o.reduce(e.nodes);if(o.exceedsLimit(...i,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let a=n(...i,t);if(a.length===0){a=s(e,t)}c.push(append(c.pop(),a));e.nodes=[];return}const u=o.encloseBrace(e);let l=e.queue;let p=e;while(p.type!=="brace"&&p.type!=="root"&&p.parent){p=p.parent;l=p.queue}for(let t=0;t<e.nodes.length;t++){const r=e.nodes[t];if(r.type==="comma"&&e.type==="brace"){if(t===1)l.push("");l.push("");continue}if(r.type==="close"){c.push(append(c.pop(),l,u));continue}if(r.value&&r.type!=="open"){l.push(append(l.pop(),r.value));continue}if(r.nodes){walk(r,e)}}return l};return o.flatten(walk(e))};e.exports=expand},168:(e,t,r)=>{"use strict";const n=r(3062);const{MAX_LENGTH:s,CHAR_BACKSLASH:o,CHAR_BACKTICK:i,CHAR_COMMA:a,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=r(1778);const parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}const r=t||{};const $=typeof r.maxLength==="number"?Math.min(s,r.maxLength):s;if(e.length>$){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${$})`)}const b={type:"root",input:e,nodes:[]};const w=[b];let _=b;let S=b;let A=0;const j=e.length;let x=0;let R=0;let k;const advance=()=>e[x++];const push=e=>{if(e.type==="text"&&S.type==="dot"){S.type="text"}if(S&&S.type==="text"&&e.type==="text"){S.value+=e.value;return}_.nodes.push(e);e.parent=_;e.prev=S;S=e;return e};push({type:"bos"});while(x<j){_=w[w.length-1];k=advance();if(k===v||k===y){continue}if(k===o){push({type:"text",value:(t.keepEscaping?k:"")+advance()});continue}if(k===h){push({type:"text",value:"\\"+k});continue}if(k===f){A++;let e;while(x<j&&(e=advance())){k+=e;if(e===f){A++;continue}if(e===o){k+=advance();continue}if(e===h){A--;if(A===0){break}}}push({type:"text",value:k});continue}if(k===u){_=push({type:"paren",nodes:[]});w.push(_);push({type:"text",value:k});continue}if(k===l){if(_.type!=="paren"){push({type:"text",value:k});continue}_=w.pop();push({type:"text",value:k});_=w[w.length-1];continue}if(k===g||k===m||k===i){const e=k;let r;if(t.keepQuotes!==true){k=""}while(x<j&&(r=advance())){if(r===o){k+=r+advance();continue}if(r===e){if(t.keepQuotes===true)k+=r;break}k+=r}push({type:"text",value:k});continue}if(k===p){R++;const e=S.value&&S.value.slice(-1)==="$"||_.dollar===true;const t={type:"brace",open:true,close:false,dollar:e,depth:R,commas:0,ranges:0,nodes:[]};_=push(t);w.push(_);push({type:"open",value:k});continue}if(k===d){if(_.type!=="brace"){push({type:"text",value:k});continue}const e="close";_=w.pop();_.close=true;push({type:e,value:k});R--;_=w[w.length-1];continue}if(k===a&&R>0){if(_.ranges>0){_.ranges=0;const e=_.nodes.shift();_.nodes=[e,{type:"text",value:n(_)}]}push({type:"comma",value:k});_.commas++;continue}if(k===c&&R>0&&_.commas===0){const e=_.nodes;if(R===0||e.length===0){push({type:"text",value:k});continue}if(S.type==="dot"){_.range=[];S.value+=k;S.type="range";if(_.nodes.length!==3&&_.nodes.length!==5){_.invalid=true;_.ranges=0;S.type="text";continue}_.ranges++;_.args=[];continue}if(S.type==="range"){e.pop();const t=e[e.length-1];t.value+=S.value+k;S=t;_.ranges--;continue}push({type:"dot",value:k});continue}push({type:"text",value:k})}do{_=w.pop();if(_.type!=="root"){_.nodes.forEach((e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}}));const e=w[w.length-1];const t=e.nodes.indexOf(_);e.nodes.splice(t,1,..._.nodes)}}while(w.length>0);push({type:"eos"});return b};e.exports=parse},3062:(e,t,r)=>{"use strict";const n=r(2474);e.exports=(e,t={})=>{const stringify=(e,r={})=>{const s=t.escapeInvalid&&n.isInvalidBrace(r);const o=e.invalid===true&&t.escapeInvalid===true;let i="";if(e.value){if((s||o)&&n.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(const t of e.nodes){i+=stringify(t)}}return i};return stringify(e)}},2474:(e,t)=>{"use strict";t.isInteger=e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false};t.find=(e,t)=>e.nodes.find((e=>e.type===t));t.exceedsLimit=(e,r,n=1,s)=>{if(s===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(n)>=s};t.escapeNode=(e,t=0,r)=>{const n=e.nodes[t];if(!n)return;if(r&&n.type===r||n.type==="open"||n.type==="close"){if(n.escaped!==true){n.value="\\"+n.value;n.escaped=true}}};t.encloseBrace=e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false};t.isInvalidBrace=e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false};t.isOpenOrClose=e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true};t.reduce=e=>e.reduce(((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e}),[]);t.flatten=(...e)=>{const t=[];const flat=e=>{for(let r=0;r<e.length;r++){const n=e[r];if(Array.isArray(n)){flat(n);continue}if(n!==undefined){t.push(n)}}return t};flat(e);return t}},3845:(e,t,r)=>{"use strict";var n=r(7596);var s=r(6125);var o=s(n("String.prototype.indexOf"));e.exports=function callBoundIntrinsic(e,t){var r=n(e,!!t);if(typeof r==="function"&&o(e,".prototype.")>-1){return s(r)}return r}},6125:(e,t,r)=>{"use strict";var n=r(7797);var s=r(7596);var o=r(3798);var i=r(4785);var a=s("%Function.prototype.apply%");var c=s("%Function.prototype.call%");var u=s("%Reflect.apply%",true)||n.call(c,a);var l=r(2072);var p=s("%Math.max%");e.exports=function callBind(e){if(typeof e!=="function"){throw new i("a function is required")}var t=u(n,c,arguments);return o(t,1+p(0,e.length-(arguments.length-1)),true)};var d=function applyBind(){return u(n,a,arguments)};if(l){l(e.exports,"apply",{value:d})}else{e.exports.apply=d}},1542:(e,t,r)=>{"use strict";if(r(7914).major>=4){e.exports=r(1994)}else{e.exports=r(9304)}},1083:e=>{"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function _inherits(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var t=function(e){_inherits(ChildProcessError,e);function ChildProcessError(e,t,r,n,s){_classCallCheck(this,ChildProcessError);var o=_possibleConstructorReturn(this,(ChildProcessError.__proto__||Object.getPrototypeOf(ChildProcessError)).call(this,e));Error.captureStackTrace(o,o.constructor);o.name=o.constructor.name;o.code=t;o.childProcess=r;o.stdout=n;o.stderr=s;return o}return ChildProcessError}(Error);e.exports=t},560:(e,t,r)=>{"use strict";var n=function(){function defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(e,t,r){if(t)defineProperties(e.prototype,t);if(r)defineProperties(e,r);return e}}();var s=function get(e,t,r){if(e===null)e=Function.prototype;var n=Object.getOwnPropertyDescriptor(e,t);if(n===undefined){var s=Object.getPrototypeOf(e);if(s===null){return undefined}else{return get(s,t,r)}}else if("value"in n){return n.value}else{var o=n.get;if(o===undefined){return undefined}return o.call(r)}};function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function _inherits(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var o;if(r(7914).major>=4){o=global.Promise}else{o=r(2799)}var i=function(e){_inherits(ChildProcessPromise,e);function ChildProcessPromise(e){_classCallCheck(this,ChildProcessPromise);var t;var r;var n=_possibleConstructorReturn(this,(ChildProcessPromise.__proto__||Object.getPrototypeOf(ChildProcessPromise)).call(this,(function(n,s){t=n;r=s;if(e){e(t,r)}})));n._cpResolve=t;n._cpReject=r;n.childProcess=undefined;return n}n(ChildProcessPromise,[{key:"progress",value:function progress(e){var t=this;process.nextTick((function(){e(t.childProcess)}));return this}},{key:"then",value:function then(e,t){var r=s(ChildProcessPromise.prototype.__proto__||Object.getPrototypeOf(ChildProcessPromise.prototype),"then",this).call(this,e,t);r.childProcess=this.childProcess;return r}},{key:"catch",value:function _catch(e){var t=s(ChildProcessPromise.prototype.__proto__||Object.getPrototypeOf(ChildProcessPromise.prototype),"catch",this).call(this,e);t.childProcess=this.childProcess;return t}},{key:"done",value:function done(){this.catch((function(e){process.nextTick((function(){throw e}))}))}}]);return ChildProcessPromise}(o);i.prototype.fail=i.prototype.catch;e.exports=i},9304:(e,t,r)=>{"use strict";var n=r(5317);var s=r(349);var o=r(560);var i=r(1083);var a=Array.prototype.slice;function doExec(e,t){var r;var s=new o;var c=s._cpReject;var u=s._cpResolve;var l=a.call(t,0);l.push(callback);r=n[e].apply(n,l);function callback(e,s,o){if(e){var a=t[0]+(Array.isArray(t[1])?" "+t[1].join(" "):"");e.message+=" `"+a+"` (exited with error code "+e.code+")";e.stdout=s;e.stderr=o;var l=new i(e.message,e.code,n,s,o);c(l)}else{u({childProcess:r,stdout:s,stderr:o})}}s.childProcess=r;return s}function exec(){return doExec("exec",arguments)}function execFile(){return doExec("execFile",arguments)}function doSpawn(e,t,r,n){var s={};var a;var c=new o;var u=c._cpReject;var l=c._cpResolve;var p=n&&n.successfulExitCodes||[0];a=e(t,r,n);var d=false;var f=false;var h=n&&n.capture;if(h){for(var g=0,m=h.length;g<m;g++){var y=h[g];if(y==="stdout"){d=true}else if(y==="stderr"){f=true}}}s.childProcess=a;if(d){s.stdout="";a.stdout.on("data",(function(e){s.stdout+=e}))}if(f){s.stderr="";a.stderr.on("data",(function(e){s.stderr+=e}))}a.on("error",u);a.on("close",(function(e){if(p.indexOf(e)===-1){var n=t+(r.length?" "+r.join(" "):"");var o="`"+n+"` failed with code "+e;var c=new i(o,e,a);if(f){c.stderr=s.stderr.toString()}if(d){c.stdout=s.stdout.toString()}u(c)}else{s.code=e;l(s)}}));c.childProcess=a;return c}function spawn(e,t,r){return doSpawn(s,e,t,r)}function fork(e,t,r){return doSpawn(n.fork,e,t,r)}t.exec=exec;t.execFile=execFile;t.spawn=spawn;t.fork=fork},1793:e=>{"use strict";class ChildProcessError extends Error{constructor(e,t,r,n,s){super(e);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=t;this.childProcess=r;this.stdout=n;this.stderr=s}}e.exports=ChildProcessError},7802:(e,t,r)=>{"use strict";var n;if(r(7914).major>=4){n=global.Promise}else{n=r(2799)}class ChildProcessPromise extends n{constructor(e){var t;var r;super(((n,s)=>{t=n;r=s;if(e){e(t,r)}}));this._cpResolve=t;this._cpReject=r;this.childProcess=undefined}progress(e){process.nextTick((()=>{e(this.childProcess)}));return this}then(e,t){var r=super.then(e,t);r.childProcess=this.childProcess;return r}catch(e){var t=super.catch(e);t.childProcess=this.childProcess;return t}done(){this.catch((e=>{process.nextTick((()=>{throw e}))}))}}ChildProcessPromise.prototype.fail=ChildProcessPromise.prototype.catch;e.exports=ChildProcessPromise},1994:(e,t,r)=>{"use strict";var n=r(5317);var s=r(349);var o=r(7802);var i=r(1793);var a=Array.prototype.slice;function doExec(e,t){var r;var s=new o;var c=s._cpReject;var u=s._cpResolve;var l=a.call(t,0);l.push(callback);r=n[e].apply(n,l);function callback(e,s,o){if(e){var a=t[0]+(Array.isArray(t[1])?" "+t[1].join(" "):"");e.message+=" `"+a+"` (exited with error code "+e.code+")";e.stdout=s;e.stderr=o;var l=new i(e.message,e.code,n,s,o);c(l)}else{u({childProcess:r,stdout:s,stderr:o})}}s.childProcess=r;return s}function exec(){return doExec("exec",arguments)}function execFile(){return doExec("execFile",arguments)}function doSpawn(e,t,r,n){var s={};var a;var c=new o;var u=c._cpReject;var l=c._cpResolve;var p=n&&n.successfulExitCodes||[0];a=e(t,r,n);var d=false;var f=false;var h=n&&n.capture;if(h){for(var g=0,m=h.length;g<m;g++){var y=h[g];if(y==="stdout"){d=true}else if(y==="stderr"){f=true}}}s.childProcess=a;if(d){s.stdout="";a.stdout.on("data",(function(e){s.stdout+=e}))}if(f){s.stderr="";a.stderr.on("data",(function(e){s.stderr+=e}))}a.on("error",u);a.on("close",(function(e){if(p.indexOf(e)===-1){var n=t+(r.length?" "+r.join(" "):"");var o="`"+n+"` failed with code "+e;var c=new i(o,e,a);if(f){c.stderr=s.stderr.toString()}if(d){c.stdout=s.stdout.toString()}u(c)}else{s.code=e;l(s)}}));c.childProcess=a;return c}function spawn(e,t,r){return doSpawn(s,e,t,r)}function fork(e,t,r){return doSpawn(n.fork,e,t,r)}t.exec=exec;t.execFile=execFile;t.spawn=spawn;t.fork=fork},349:(e,t,r)=>{"use strict";var n=r(5317);var s=r(5386);var o=r(232);var i=n.spawnSync;function spawn(e,t,r){var i;var a;i=s(e,t,r);a=n.spawn(i.command,i.args,i.options);o.hookChildProcess(a,i);return a}function spawnSync(e,t,n){var a;var c;if(!i){try{i=r(8426)}catch(e){throw new Error("In order to use spawnSync on node 0.10 or older, you must "+"install spawn-sync:\n\n"+" npm install spawn-sync --save")}}a=s(e,t,n);c=i(a.command,a.args,a.options);c.error=c.error||o.verifyENOENTSync(c.status,a);return c}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=s;e.exports._enoent=o},232:(e,t,r)=>{"use strict";var n=process.platform==="win32";var s=r(6172);var o=process.version.indexOf("v0.10.")===0;function notFoundError(e,t){var r;r=new Error(t+" "+e+" ENOENT");r.code=r.errno="ENOENT";r.syscall=t+" "+e;return r}function hookChildProcess(e,t){var r;if(!n){return}r=e.emit;e.emit=function(n,s){var o;if(n==="exit"){o=verifyENOENT(s,t,"spawn");if(o){return r.call(e,"error",o)}}return r.apply(e,arguments)}}function verifyENOENT(e,t){if(n&&e===1&&!t.file){return notFoundError(t.original,"spawn")}return null}function verifyENOENTSync(e,t){if(n&&e===1&&!t.file){return notFoundError(t.original,"spawnSync")}if(o&&e===-1){t.file=n?t.file:s(t.original);if(!t.file){return notFoundError(t.original,"spawnSync")}}return null}e.exports.hookChildProcess=hookChildProcess;e.exports.verifyENOENT=verifyENOENT;e.exports.verifyENOENTSync=verifyENOENTSync;e.exports.notFoundError=notFoundError},4269:e=>{"use strict";e.exports=function(){if(process.platform!=="win32"){return false}var e=process.version.substr(1).split(".").map((function(e){return parseInt(e,10)}));return e[0]===0&&e[1]<12}()},5386:(e,t,r)=>{"use strict";var n=r(9896);var s=r(9939);var o=r(6172);var i=r(4269);var a=process.platform==="win32";var c=new s({max:50,maxAge:30*1e3});function readShebang(e){var t;var r;var s;var o;if(c.has(e)){return c.get(e)}t=new Buffer(150);try{r=n.openSync(e,"r");n.readSync(r,t,0,150,0);n.closeSync(r)}catch(e){}s=t.toString().trim().match(/#!(.+)/i);if(s){o=s[1].replace(/\/usr\/bin\/env\s+/i,"")}c.set(e,o);return o}function escapeArg(e,t){e=""+e;if(!t){e=e.replace(/([\(\)%!\^<>&|;,"'\s])/g,"^$1")}else{e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e='"'+e+'"'}return e}function escapeCommand(e){return/^[a-z0-9_-]+$/i.test(e)?e:escapeArg(e,true)}function requiresShell(e){return!/\.(?:com|exe)$/i.test(e)}function parse(e,t,r){var n;var s;var c;var u;var l;if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=r||{};u=e;if(a){c=o(e);c=c||o(e,true);n=c&&readShebang(c);l=r.shell||i;if(n){t.unshift(c);e=n;l=l||requiresShell(o(n)||o(n,true))}else{l=l||requiresShell(c)}if(l){s=e!=="echo";e=escapeCommand(e);t=t.map((function(e){return escapeArg(e,s)}));t=["/s","/c",'"'+e+(t.length?" "+t.join(" "):"")+'"'];e=process.env.comspec||"cmd.exe";r.windowsVerbatimArguments=true}}return{command:e,args:t,options:r,file:c,original:u}}e.exports=parse},6172:(e,t,r)=>{"use strict";var n=r(6928);var s=r(2871);var o=r(9939);var i=new o({max:50,maxAge:30*1e3});function resolveCommand(e,t){var r;t=!!t;r=i.get(e+"!"+t);if(i.has(e)){return i.get(e)}try{r=!t?s.sync(e):s.sync(e,{pathExt:n.delimiter+(process.env.PATHEXT||"")})}catch(e){}i.set(e+"!"+t,r);return r}e.exports=resolveCommand},2071:(e,t,r)=>{"use strict";var n=r(2072);var s=r(9546);var o=r(4785);var i=r(5583);e.exports=function defineDataProperty(e,t,r){if(!e||typeof e!=="object"&&typeof e!=="function"){throw new o("`obj` must be an object or a function`")}if(typeof t!=="string"&&typeof t!=="symbol"){throw new o("`property` must be a string or a symbol`")}if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null){throw new o("`nonEnumerable`, if provided, must be a boolean or null")}if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null){throw new o("`nonWritable`, if provided, must be a boolean or null")}if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null){throw new o("`nonConfigurable`, if provided, must be a boolean or null")}if(arguments.length>6&&typeof arguments[6]!=="boolean"){throw new o("`loose`, if provided, must be a boolean")}var a=arguments.length>3?arguments[3]:null;var c=arguments.length>4?arguments[4]:null;var u=arguments.length>5?arguments[5]:null;var l=arguments.length>6?arguments[6]:false;var p=!!i&&i(e,t);if(n){n(e,t,{configurable:u===null&&p?p.configurable:!u,enumerable:a===null&&p?p.enumerable:!a,value:r,writable:c===null&&p?p.writable:!c})}else if(l||!a&&!c&&!u){e[t]=r}else{throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}},2072:(e,t,r)=>{"use strict";var n=r(7596);var s=n("%Object.defineProperty%",true)||false;if(s){try{s({},"a",{value:1})}catch(e){s=false}}e.exports=s},1247:e=>{"use strict";e.exports=EvalError},6621:e=>{"use strict";e.exports=Error},6136:e=>{"use strict";e.exports=RangeError},252:e=>{"use strict";e.exports=ReferenceError},9546:e=>{"use strict";e.exports=SyntaxError},4785:e=>{"use strict";e.exports=TypeError},1223:e=>{"use strict";e.exports=URIError},9730:(e,t,r)=>{"use strict";
|
|
2
2
|
/*!
|
|
3
3
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
6
6
|
* Licensed under the MIT License.
|
|
7
|
-
*/const n=r(9023);const s=r(743);const isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const transform=e=>t=>e===true?Number(t):String(t);const isValidValue=e=>typeof e==="number"||typeof e==="string"&&e!=="";const isNumber=e=>Number.isInteger(+e);const zeros=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const stringify=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const pad=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const toMaxLen=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length<t)e="0"+e;return r?"-"+e:e};const toSequence=(e,t,r)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0));e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let n=t.capture?"":"?:";let s="";let o="";let i;if(e.positives.length){s=e.positives.map((e=>toMaxLen(String(e),r))).join("|")}if(e.negatives.length){o=`-(${n}${e.negatives.map((e=>toMaxLen(String(e),r))).join("|")})`}if(s&&o){i=`${s}|${o}`}else{i=s||o}if(t.wrap){return`(${n}${i})`}return i};const toRange=(e,t,r,n)=>{if(r){return s(e,t,{wrap:false,...n})}let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`};const toRegex=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return s(e,t,r)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+n.inspect(...e));const invalidRange=(e,t,r)=>{if(r.strictRanges===true)throw rangeError([e,t]);return[]};const invalidStep=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const fillNumbers=(e,t,r=1,n={})=>{let s=Number(e);let o=Number(t);if(!Number.isInteger(s)||!Number.isInteger(o)){if(n.strictRanges===true)throw rangeError([e,t]);return[]}if(s===0)s=0;if(o===0)o=0;let i=s>o;let a=String(e);let c=String(t);let u=String(r);r=Math.max(Math.abs(r),1);let l=zeros(a)||zeros(c)||zeros(u);let p=l?Math.max(a.length,c.length,u.length):0;let d=l===false&&stringify(e,t,n)===false;let f=n.transform||transform(d);if(n.toRegex&&r===1){return toRange(toMaxLen(e,p),toMaxLen(t,p),true,n)}let h={negatives:[],positives:[]};let push=e=>h[e<0?"negatives":"positives"].push(Math.abs(e));let g=[];let m=0;while(i?s>=o:s<=o){if(n.toRegex===true&&r>1){push(s)}else{g.push(pad(f(s,m),p,d))}s=i?s-r:s+r;m++}if(n.toRegex===true){return r>1?toSequence(h,n,p):toRegex(g,null,{wrap:false,...n})}return g};const fillLetters=(e,t,r=1,n={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,n)}let s=n.transform||(e=>String.fromCharCode(e));let o=`${e}`.charCodeAt(0);let i=`${t}`.charCodeAt(0);let a=o>i;let c=Math.min(o,i);let u=Math.max(o,i);if(n.toRegex&&r===1){return toRange(c,u,false,n)}let l=[];let p=0;while(a?o>=i:o<=i){l.push(s(o,p));o=a?o-r:o+r;p++}if(n.toRegex===true){return toRegex(l,null,{wrap:false,options:n})}return l};const fill=(e,t,r,n={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,n)}if(typeof r==="function"){return fill(e,t,1,{transform:r})}if(isObject(r)){return fill(e,t,0,r)}let s={...n};if(s.capture===true)s.wrap=true;r=r||s.step||1;if(!isNumber(r)){if(r!=null&&!isObject(r))return invalidStep(r,s);return fill(e,t,1,r)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,r,s)}return fillLetters(e,t,Math.max(Math.abs(r),1),s)};e.exports=fill},6555:e=>{"use strict";var t="Function.prototype.bind called on incompatible ";var r=Object.prototype.toString;var n=Math.max;var s="[object Function]";var o=function concatty(e,t){var r=[];for(var n=0;n<e.length;n+=1){r[n]=e[n]}for(var s=0;s<t.length;s+=1){r[s+e.length]=t[s]}return r};var i=function slicy(e,t){var r=[];for(var n=t||0,s=0;n<e.length;n+=1,s+=1){r[s]=e[n]}return r};var joiny=function(e,t){var r="";for(var n=0;n<e.length;n+=1){r+=e[n];if(n+1<e.length){r+=t}}return r};e.exports=function bind(e){var a=this;if(typeof a!=="function"||r.apply(a)!==s){throw new TypeError(t+a)}var c=i(arguments,1);var u;var binder=function(){if(this instanceof u){var t=a.apply(this,o(c,arguments));if(Object(t)===t){return t}return this}return a.apply(e,o(c,arguments))};var l=n(0,a.length-c.length);var p=[];for(var d=0;d<l;d++){p[d]="$"+d}u=Function("binder","return function ("+joiny(p,",")+"){ return binder.apply(this,arguments); }")(binder);if(a.prototype){var f=function Empty(){};f.prototype=a.prototype;u.prototype=new f;f.prototype=null}return u}},7797:(e,t,r)=>{"use strict";var n=r(6555);e.exports=Function.prototype.bind||n},7596:(e,t,r)=>{"use strict";var n;var s=r(6621);var o=r(1247);var i=r(6136);var a=r(252);var c=r(9546);var u=r(4785);var l=r(1223);var p=Function;var getEvalledConstructor=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}};var d=Object.getOwnPropertyDescriptor;if(d){try{d({},"")}catch(e){d=null}}var throwTypeError=function(){throw new u};var f=d?function(){try{arguments.callee;return throwTypeError}catch(e){try{return d(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var h=r(6649)();var g=r(5011)();var m=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null);var y={};var v=typeof Uint8Array==="undefined"||!m?n:m(Uint8Array);var $={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?n:ArrayBuffer,"%ArrayIteratorPrototype%":h&&m?m([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics==="undefined"?n:Atomics,"%BigInt%":typeof BigInt==="undefined"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":s,"%eval%":eval,"%EvalError%":o,"%Float32Array%":typeof Float32Array==="undefined"?n:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array==="undefined"?n:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?n:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&m?m(m([][Symbol.iterator]())):n,"%JSON%":typeof JSON==="object"?JSON:n,"%Map%":typeof Map==="undefined"?n:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!h||!m?n:m((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?n:Promise,"%Proxy%":typeof Proxy==="undefined"?n:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect==="undefined"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?n:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!h||!m?n:m((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&m?m(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":f,"%TypedArray%":v,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array==="undefined"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?n:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap==="undefined"?n:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?n:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?n:WeakSet};if(m){try{null.error}catch(e){var b=m(m(e));$["%Error.prototype%"]=b}}var w=function doEval(e){var t;if(e==="%AsyncFunction%"){t=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){t=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){t=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var r=doEval("%AsyncGeneratorFunction%");if(r){t=r.prototype}}else if(e==="%AsyncIteratorPrototype%"){var n=doEval("%AsyncGenerator%");if(n&&m){t=m(n.prototype)}}$[e]=t;return t};var _={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var S=r(7797);var A=r(3383);var j=S.call(Function.call,Array.prototype.concat);var x=S.call(Function.apply,Array.prototype.splice);var R=S.call(Function.call,String.prototype.replace);var k=S.call(Function.call,String.prototype.slice);var I=S.call(Function.call,RegExp.prototype.exec);var P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var C=/\\(\\)?/g;var T=function stringToPath(e){var t=k(e,0,1);var r=k(e,-1);if(t==="%"&&r!=="%"){throw new c("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&t!=="%"){throw new c("invalid intrinsic syntax, expected opening `%`")}var n=[];R(e,P,(function(e,t,r,s){n[n.length]=r?R(s,C,"$1"):t||e}));return n};var O=function getBaseIntrinsic(e,t){var r=e;var n;if(A(_,r)){n=_[r];r="%"+n[0]+"%"}if(A($,r)){var s=$[r];if(s===y){s=w(r)}if(typeof s==="undefined"&&!t){throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:s}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function GetIntrinsic(e,t){if(typeof e!=="string"||e.length===0){throw new u("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof t!=="boolean"){throw new u('"allowMissing" argument must be a boolean')}if(I(/^%?[^%]*%?$/,e)===null){throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=T(e);var s=r.length>0?r[0]:"";var o=O("%"+s+"%",t);var i=o.name;var a=o.value;var l=false;var p=o.alias;if(p){s=p[0];x(r,j([0,1],p))}for(var f=1,h=true;f<r.length;f+=1){var g=r[f];var m=k(g,0,1);var y=k(g,-1);if((m==='"'||m==="'"||m==="`"||(y==='"'||y==="'"||y==="`"))&&m!==y){throw new c("property names with quotes must have matching quotes")}if(g==="constructor"||!h){l=true}s+="."+g;i="%"+s+"%";if(A($,i)){a=$[i]}else if(a!=null){if(!(g in a)){if(!t){throw new u("base intrinsic for "+e+" exists, but the property is not available.")}return void n}if(d&&f+1>=r.length){var v=d(a,g);h=!!v;if(h&&"get"in v&&!("originalValue"in v.get)){a=v.get}else{a=a[g]}}else{h=A(a,g);a=a[g]}if(h&&!l){$[i]=a}}}return a}},5583:(e,t,r)=>{"use strict";var n=r(7596);var s=n("%Object.getOwnPropertyDescriptor%",true);if(s){try{s([],"length")}catch(e){s=null}}e.exports=s},8122:(e,t,r)=>{"use strict";var n=r(2072);var s=function hasPropertyDescriptors(){return!!n};s.hasArrayLengthDefineBug=function hasArrayLengthDefineBug(){if(!n){return null}try{return n([],"length",{value:1}).length!==1}catch(e){return true}};e.exports=s},5011:e=>{"use strict";var t={__proto__:null,foo:{}};var r=Object;e.exports=function hasProto(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},6649:(e,t,r)=>{"use strict";var n=typeof Symbol!=="undefined"&&Symbol;var s=r(9883);e.exports=function hasNativeSymbols(){if(typeof n!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof n("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return s()}},9883:e=>{"use strict";e.exports=function hasSymbols(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var t=Symbol("test");var r=Object(t);if(typeof t==="string"){return false}if(Object.prototype.toString.call(t)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;e[t]=n;for(t in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t){return false}if(!Object.prototype.propertyIsEnumerable.call(e,t)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||o.enumerable!==true){return false}}return true}},3383:(e,t,r)=>{"use strict";var n=Function.prototype.call;var s=Object.prototype.hasOwnProperty;var o=r(7797);e.exports=o.call(n,s)},952:e=>{"use strict";
|
|
7
|
+
*/const n=r(9023);const s=r(743);const isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const transform=e=>t=>e===true?Number(t):String(t);const isValidValue=e=>typeof e==="number"||typeof e==="string"&&e!=="";const isNumber=e=>Number.isInteger(+e);const zeros=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const stringify=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const pad=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const toMaxLen=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length<t)e="0"+e;return r?"-"+e:e};const toSequence=(e,t,r)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0));e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let n=t.capture?"":"?:";let s="";let o="";let i;if(e.positives.length){s=e.positives.map((e=>toMaxLen(String(e),r))).join("|")}if(e.negatives.length){o=`-(${n}${e.negatives.map((e=>toMaxLen(String(e),r))).join("|")})`}if(s&&o){i=`${s}|${o}`}else{i=s||o}if(t.wrap){return`(${n}${i})`}return i};const toRange=(e,t,r,n)=>{if(r){return s(e,t,{wrap:false,...n})}let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`};const toRegex=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return s(e,t,r)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+n.inspect(...e));const invalidRange=(e,t,r)=>{if(r.strictRanges===true)throw rangeError([e,t]);return[]};const invalidStep=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const fillNumbers=(e,t,r=1,n={})=>{let s=Number(e);let o=Number(t);if(!Number.isInteger(s)||!Number.isInteger(o)){if(n.strictRanges===true)throw rangeError([e,t]);return[]}if(s===0)s=0;if(o===0)o=0;let i=s>o;let a=String(e);let c=String(t);let u=String(r);r=Math.max(Math.abs(r),1);let l=zeros(a)||zeros(c)||zeros(u);let p=l?Math.max(a.length,c.length,u.length):0;let d=l===false&&stringify(e,t,n)===false;let f=n.transform||transform(d);if(n.toRegex&&r===1){return toRange(toMaxLen(e,p),toMaxLen(t,p),true,n)}let h={negatives:[],positives:[]};let push=e=>h[e<0?"negatives":"positives"].push(Math.abs(e));let g=[];let m=0;while(i?s>=o:s<=o){if(n.toRegex===true&&r>1){push(s)}else{g.push(pad(f(s,m),p,d))}s=i?s-r:s+r;m++}if(n.toRegex===true){return r>1?toSequence(h,n,p):toRegex(g,null,{wrap:false,...n})}return g};const fillLetters=(e,t,r=1,n={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,n)}let s=n.transform||(e=>String.fromCharCode(e));let o=`${e}`.charCodeAt(0);let i=`${t}`.charCodeAt(0);let a=o>i;let c=Math.min(o,i);let u=Math.max(o,i);if(n.toRegex&&r===1){return toRange(c,u,false,n)}let l=[];let p=0;while(a?o>=i:o<=i){l.push(s(o,p));o=a?o-r:o+r;p++}if(n.toRegex===true){return toRegex(l,null,{wrap:false,options:n})}return l};const fill=(e,t,r,n={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,n)}if(typeof r==="function"){return fill(e,t,1,{transform:r})}if(isObject(r)){return fill(e,t,0,r)}let s={...n};if(s.capture===true)s.wrap=true;r=r||s.step||1;if(!isNumber(r)){if(r!=null&&!isObject(r))return invalidStep(r,s);return fill(e,t,1,r)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,r,s)}return fillLetters(e,t,Math.max(Math.abs(r),1),s)};e.exports=fill},6555:e=>{"use strict";var t="Function.prototype.bind called on incompatible ";var r=Object.prototype.toString;var n=Math.max;var s="[object Function]";var o=function concatty(e,t){var r=[];for(var n=0;n<e.length;n+=1){r[n]=e[n]}for(var s=0;s<t.length;s+=1){r[s+e.length]=t[s]}return r};var i=function slicy(e,t){var r=[];for(var n=t||0,s=0;n<e.length;n+=1,s+=1){r[s]=e[n]}return r};var joiny=function(e,t){var r="";for(var n=0;n<e.length;n+=1){r+=e[n];if(n+1<e.length){r+=t}}return r};e.exports=function bind(e){var a=this;if(typeof a!=="function"||r.apply(a)!==s){throw new TypeError(t+a)}var c=i(arguments,1);var u;var binder=function(){if(this instanceof u){var t=a.apply(this,o(c,arguments));if(Object(t)===t){return t}return this}return a.apply(e,o(c,arguments))};var l=n(0,a.length-c.length);var p=[];for(var d=0;d<l;d++){p[d]="$"+d}u=Function("binder","return function ("+joiny(p,",")+"){ return binder.apply(this,arguments); }")(binder);if(a.prototype){var f=function Empty(){};f.prototype=a.prototype;u.prototype=new f;f.prototype=null}return u}},7797:(e,t,r)=>{"use strict";var n=r(6555);e.exports=Function.prototype.bind||n},7596:(e,t,r)=>{"use strict";var n;var s=r(6621);var o=r(1247);var i=r(6136);var a=r(252);var c=r(9546);var u=r(4785);var l=r(1223);var p=Function;var getEvalledConstructor=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}};var d=Object.getOwnPropertyDescriptor;if(d){try{d({},"")}catch(e){d=null}}var throwTypeError=function(){throw new u};var f=d?function(){try{arguments.callee;return throwTypeError}catch(e){try{return d(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var h=r(6649)();var g=r(5011)();var m=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null);var y={};var v=typeof Uint8Array==="undefined"||!m?n:m(Uint8Array);var $={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?n:ArrayBuffer,"%ArrayIteratorPrototype%":h&&m?m([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics==="undefined"?n:Atomics,"%BigInt%":typeof BigInt==="undefined"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":s,"%eval%":eval,"%EvalError%":o,"%Float32Array%":typeof Float32Array==="undefined"?n:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array==="undefined"?n:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?n:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&m?m(m([][Symbol.iterator]())):n,"%JSON%":typeof JSON==="object"?JSON:n,"%Map%":typeof Map==="undefined"?n:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!h||!m?n:m((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?n:Promise,"%Proxy%":typeof Proxy==="undefined"?n:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect==="undefined"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?n:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!h||!m?n:m((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&m?m(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":f,"%TypedArray%":v,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array==="undefined"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?n:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap==="undefined"?n:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?n:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?n:WeakSet};if(m){try{null.error}catch(e){var b=m(m(e));$["%Error.prototype%"]=b}}var w=function doEval(e){var t;if(e==="%AsyncFunction%"){t=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){t=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){t=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var r=doEval("%AsyncGeneratorFunction%");if(r){t=r.prototype}}else if(e==="%AsyncIteratorPrototype%"){var n=doEval("%AsyncGenerator%");if(n&&m){t=m(n.prototype)}}$[e]=t;return t};var _={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var S=r(7797);var A=r(3383);var j=S.call(Function.call,Array.prototype.concat);var x=S.call(Function.apply,Array.prototype.splice);var R=S.call(Function.call,String.prototype.replace);var k=S.call(Function.call,String.prototype.slice);var I=S.call(Function.call,RegExp.prototype.exec);var P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var T=/\\(\\)?/g;var C=function stringToPath(e){var t=k(e,0,1);var r=k(e,-1);if(t==="%"&&r!=="%"){throw new c("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&t!=="%"){throw new c("invalid intrinsic syntax, expected opening `%`")}var n=[];R(e,P,(function(e,t,r,s){n[n.length]=r?R(s,T,"$1"):t||e}));return n};var O=function getBaseIntrinsic(e,t){var r=e;var n;if(A(_,r)){n=_[r];r="%"+n[0]+"%"}if(A($,r)){var s=$[r];if(s===y){s=w(r)}if(typeof s==="undefined"&&!t){throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:s}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function GetIntrinsic(e,t){if(typeof e!=="string"||e.length===0){throw new u("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof t!=="boolean"){throw new u('"allowMissing" argument must be a boolean')}if(I(/^%?[^%]*%?$/,e)===null){throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=C(e);var s=r.length>0?r[0]:"";var o=O("%"+s+"%",t);var i=o.name;var a=o.value;var l=false;var p=o.alias;if(p){s=p[0];x(r,j([0,1],p))}for(var f=1,h=true;f<r.length;f+=1){var g=r[f];var m=k(g,0,1);var y=k(g,-1);if((m==='"'||m==="'"||m==="`"||(y==='"'||y==="'"||y==="`"))&&m!==y){throw new c("property names with quotes must have matching quotes")}if(g==="constructor"||!h){l=true}s+="."+g;i="%"+s+"%";if(A($,i)){a=$[i]}else if(a!=null){if(!(g in a)){if(!t){throw new u("base intrinsic for "+e+" exists, but the property is not available.")}return void n}if(d&&f+1>=r.length){var v=d(a,g);h=!!v;if(h&&"get"in v&&!("originalValue"in v.get)){a=v.get}else{a=a[g]}}else{h=A(a,g);a=a[g]}if(h&&!l){$[i]=a}}}return a}},5583:(e,t,r)=>{"use strict";var n=r(7596);var s=n("%Object.getOwnPropertyDescriptor%",true);if(s){try{s([],"length")}catch(e){s=null}}e.exports=s},8122:(e,t,r)=>{"use strict";var n=r(2072);var s=function hasPropertyDescriptors(){return!!n};s.hasArrayLengthDefineBug=function hasArrayLengthDefineBug(){if(!n){return null}try{return n([],"length",{value:1}).length!==1}catch(e){return true}};e.exports=s},5011:e=>{"use strict";var t={__proto__:null,foo:{}};var r=Object;e.exports=function hasProto(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},6649:(e,t,r)=>{"use strict";var n=typeof Symbol!=="undefined"&&Symbol;var s=r(9883);e.exports=function hasNativeSymbols(){if(typeof n!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof n("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return s()}},9883:e=>{"use strict";e.exports=function hasSymbols(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var t=Symbol("test");var r=Object(t);if(typeof t==="string"){return false}if(Object.prototype.toString.call(t)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;e[t]=n;for(t in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t){return false}if(!Object.prototype.propertyIsEnumerable.call(e,t)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||o.enumerable!==true){return false}}return true}},3383:(e,t,r)=>{"use strict";var n=Function.prototype.call;var s=Object.prototype.hasOwnProperty;var o=r(7797);e.exports=o.call(n,s)},952:e=>{"use strict";
|
|
8
8
|
/*!
|
|
9
9
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
12
12
|
* Released under the MIT License.
|
|
13
|
-
*/e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},7105:(e,t,r)=>{var n=r(9896);var s;if(process.platform==="win32"||global.TESTING_WINDOWS){s=r(6132)}else{s=r(9397)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(r,n){isexe(e,t||{},(function(e,t){if(e){n(e)}else{r(t)}}))}))}s(e,t||{},(function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)}))}function sync(e,t){try{return s.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},9397:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(9896);function isexe(e,t,r){n.stat(e,(function(e,n){r(e,e?false:checkStat(n,t))}))}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var s=e.gid;var o=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var i=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var u=parseInt("001",8);var l=a|c;var p=r&u||r&c&&s===i||r&a&&n===o||r&l&&o===0;return p}},6132:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(9896);function checkPathExt(e,t){var r=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!r){return true}r=r.split(";");if(r.indexOf("")!==-1){return true}for(var n=0;n<r.length;n++){var s=r[n].toLowerCase();if(s&&e.substr(-s.length).toLowerCase()===s){return true}}return false}function checkStat(e,t,r){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,r)}function isexe(e,t,r){n.stat(e,(function(n,s){r(n,n?false:checkStat(s,e,t))}))}function sync(e,t){return checkStat(n.statSync(e),e,t)}},2146:(e,t,r)=>{"use strict";const n=r(5443);const s=r(5957);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(6404);e.exports.Schema=r(5759);e.exports.FAILSAFE_SCHEMA=r(9079);e.exports.JSON_SCHEMA=r(176);e.exports.CORE_SCHEMA=r(721);e.exports.DEFAULT_SCHEMA=r(809);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.dump=s.dump;e.exports.YAMLException=r(4615);e.exports.types={binary:r(134),float:r(3869),map:r(489),null:r(2022),pairs:r(406),set:r(3103),timestamp:r(7351),bool:r(5503),int:r(3546),merge:r(9875),omap:r(5738),seq:r(324),str:r(4084)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},7289:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){if(t){const r=Object.keys(t);for(let n=0,s=r.length;n<s;n+=1){const s=r[n];e[s]=t[s]}}return e}function repeat(e,t){let r="";for(let n=0;n<t;n+=1){r+=e}return r}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=isNothing;e.exports.isObject=isObject;e.exports.toArray=toArray;e.exports.repeat=repeat;e.exports.isNegativeZero=isNegativeZero;e.exports.extend=extend},5957:(e,t,r)=>{"use strict";const n=r(7289);const s=r(4615);const o=r(809);const i=Object.prototype.toString;const a=Object.prototype.hasOwnProperty;const c=65279;const u=9;const l=10;const p=13;const d=32;const f=33;const h=34;const g=35;const m=37;const y=38;const v=39;const $=42;const b=44;const w=45;const _=58;const S=61;const A=62;const j=63;const x=64;const R=91;const k=93;const I=96;const P=123;const C=124;const T=125;const O={};O[0]="\\0";O[7]="\\a";O[8]="\\b";O[9]="\\t";O[10]="\\n";O[11]="\\v";O[12]="\\f";O[13]="\\r";O[27]="\\e";O[34]='\\"';O[92]="\\\\";O[133]="\\N";O[160]="\\_";O[8232]="\\L";O[8233]="\\P";const M=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];const N=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){if(t===null)return{};const r={};const n=Object.keys(t);for(let s=0,o=n.length;s<o;s+=1){let o=n[s];let i=String(t[o]);if(o.slice(0,2)==="!!"){o="tag:yaml.org,2002:"+o.slice(2)}const c=e.compiledTypeMap["fallback"][o];if(c&&a.call(c.styleAliases,i)){i=c.styleAliases[i]}r[o]=i}return r}function encodeHex(e){let t;let r;const o=e.toString(16).toUpperCase();if(e<=255){t="x";r=2}else if(e<=65535){t="u";r=4}else if(e<=4294967295){t="U";r=8}else{throw new s("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+t+n.repeat("0",r-o.length)+o}const L=1;const B=2;function State(e){this.schema=e["schema"]||o;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=n.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?B:L;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){const r=n.repeat(" ",t);let s=0;let o="";const i=e.length;while(s<i){let t;const n=e.indexOf("\n",s);if(n===-1){t=e.slice(s);s=i}else{t=e.slice(s,n+1);s=n+1}if(t.length&&t!=="\n")o+=r;o+=t}return o}function generateNextLine(e,t){return"\n"+n.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){for(let r=0,n=e.implicitTypes.length;r<n;r+=1){const n=e.implicitTypes[r];if(n.resolve(t)){return true}}return false}function isWhitespace(e){return e===d||e===u}function isPrintable(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==c||e>=65536&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==c&&e!==p&&e!==l}function isPlainSafe(e,t,r){const n=isNsCharOrWhitespace(e);const s=n&&!isWhitespace(e);return(r?n:n&&e!==b&&e!==R&&e!==k&&e!==P&&e!==T)&&e!==g&&!(t===_&&!s)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===g||t===_&&s}function isPlainSafeFirst(e){return isPrintable(e)&&e!==c&&!isWhitespace(e)&&e!==w&&e!==j&&e!==_&&e!==b&&e!==R&&e!==k&&e!==P&&e!==T&&e!==g&&e!==y&&e!==$&&e!==f&&e!==C&&e!==S&&e!==A&&e!==v&&e!==h&&e!==m&&e!==x&&e!==I}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==_}function codePointAt(e,t){const r=e.charCodeAt(t);let n;if(r>=55296&&r<=56319&&t+1<e.length){n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){return(r-55296)*1024+n-56320+65536}}return r}function needIndentIndicator(e){const t=/^\n* /;return t.test(e)}const q=1;const G=2;const U=3;const D=4;const H=5;function chooseScalarStyle(e,t,r,n,s,o,i,a){let c;let u=0;let p=null;let d=false;let f=false;const h=n!==-1;let g=-1;let m=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||i){for(c=0;c<e.length;u>=65536?c+=2:c++){u=codePointAt(e,c);if(!isPrintable(u)){return H}m=m&&isPlainSafe(u,p,a);p=u}}else{for(c=0;c<e.length;u>=65536?c+=2:c++){u=codePointAt(e,c);if(u===l){d=true;if(h){f=f||c-g-1>n&&e[g+1]!==" ";g=c}}else if(!isPrintable(u)){return H}m=m&&isPlainSafe(u,p,a);p=u}f=f||h&&(c-g-1>n&&e[g+1]!==" ")}if(!d&&!f){if(m&&!i&&!s(e)){return q}return o===B?H:G}if(r>9&&needIndentIndicator(e)){return H}if(!i){return f?D:U}return o===B?H:G}function writeScalar(e,t,r,n,o){e.dump=function(){if(t.length===0){return e.quotingType===B?'""':"''"}if(!e.noCompatMode){if(M.indexOf(t)!==-1||N.test(t)){return e.quotingType===B?'"'+t+'"':"'"+t+"'"}}const i=e.indent*Math.max(1,r);const a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);const c=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,c,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!n,o)){case q:return t;case G:return"'"+t.replace(/'/g,"''")+"'";case U:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,i));case D:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),i));case H:return'"'+escapeString(t,a)+'"';default:throw new s("impossible error: invalid scalar style")}}()}function blockHeader(e,t){const r=needIndentIndicator(e)?String(t):"";const n=e[e.length-1]==="\n";const s=n&&(e[e.length-2]==="\n"||e==="\n");const o=s?"+":n?"":"-";return r+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){const r=/(\n+)([^\n]*)/g;let n=function(){let n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();let s=e[0]==="\n"||e[0]===" ";let o;let i;while(i=r.exec(e)){const e=i[1];const r=i[2];o=r[0]===" ";n+=e+(!s&&!o&&r!==""?"\n":"")+foldLine(r,t);s=o}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;const r=/ [^ ]/g;let n;let s=0;let o;let i=0;let a=0;let c="";while(n=r.exec(e)){a=n.index;if(a-s>t){o=i>s?i:a;c+="\n"+e.slice(s,o);s=o+1}i=a}c+="\n";if(e.length-s>t&&i>s){c+=e.slice(s,i)+"\n"+e.slice(i+1)}else{c+=e.slice(s)}return c.slice(1)}function escapeString(e){let t="";let r=0;for(let n=0;n<e.length;r>=65536?n+=2:n++){r=codePointAt(e,n);const s=O[r];if(!s&&isPrintable(r)){t+=e[n];if(r>=65536)t+=e[n+1]}else{t+=s||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){let n="";const s=e.tag;for(let s=0,o=r.length;s<o;s+=1){let o=r[s];if(e.replacer){o=e.replacer.call(r,String(s),o)}if(writeNode(e,t,o,false,false)||typeof o==="undefined"&&writeNode(e,t,null,false,false)){if(n!=="")n+=","+(!e.condenseFlow?" ":"");n+=e.dump}}e.tag=s;e.dump="["+n+"]"}function writeBlockSequence(e,t,r,n){let s="";const o=e.tag;for(let o=0,i=r.length;o<i;o+=1){let i=r[o];if(e.replacer){i=e.replacer.call(r,String(o),i)}if(writeNode(e,t+1,i,true,true,false,true)||typeof i==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!n||s!==""){s+=generateNextLine(e,t)}if(e.dump&&l===e.dump.charCodeAt(0)){s+="-"}else{s+="- "}s+=e.dump}}e.tag=o;e.dump=s||"[]"}function writeFlowMapping(e,t,r){let n="";const s=e.tag;const o=Object.keys(r);for(let s=0,i=o.length;s<i;s+=1){let i="";if(n!=="")i+=", ";if(e.condenseFlow)i+='"';const a=o[s];let c=r[a];if(e.replacer){c=e.replacer.call(r,a,c)}if(!writeNode(e,t,a,false,false)){continue}if(e.dump.length>1024)i+="? ";i+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,c,false,false)){continue}i+=e.dump;n+=i}e.tag=s;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){let o="";const i=e.tag;const a=Object.keys(r);if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new s("sortKeys must be a boolean or a function")}for(let s=0,i=a.length;s<i;s+=1){let i="";if(!n||o!==""){i+=generateNextLine(e,t)}const c=a[s];let u=r[c];if(e.replacer){u=e.replacer.call(r,c,u)}if(!writeNode(e,t+1,c,true,true,true)){continue}const p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(p){if(e.dump&&l===e.dump.charCodeAt(0)){i+="?"}else{i+="? "}}i+=e.dump;if(p){i+=generateNextLine(e,t)}if(!writeNode(e,t+1,u,true,p)){continue}if(e.dump&&l===e.dump.charCodeAt(0)){i+=":"}else{i+=": "}i+=e.dump;o+=i}e.tag=i;e.dump=o||"{}"}function detectType(e,t,r){const n=r?e.explicitTypes:e.implicitTypes;for(let o=0,c=n.length;o<c;o+=1){const c=n[o];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t==="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(r){if(c.multi&&c.representName){e.tag=c.representName(t)}else{e.tag=c.tag}}else{e.tag="?"}if(c.represent){const r=e.styleMap[c.tag]||c.defaultStyle;let n;if(i.call(c.represent)==="[object Function]"){n=c.represent(t,r)}else if(a.call(c.represent,r)){n=c.represent[r](t,r)}else{throw new s("!<"+c.tag+'> tag resolver accepts not "'+r+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,o,a,c){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}const u=i.call(e.dump);const l=n;if(n){n=e.flowLevel<0||e.flowLevel>t}const p=u==="[object Object]"||u==="[object Array]";let d;let f;if(p){d=e.duplicates.indexOf(r);f=d!==-1}if(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0){o=false}if(f&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(p&&f&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(u==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,o);if(f){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,t,e.dump);if(f){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object Array]"){if(n&&e.dump.length!==0){if(e.noArrayIndent&&!c&&t>0){writeBlockSequence(e,t-1,e.dump,o)}else{writeBlockSequence(e,t,e.dump,o)}if(f){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,t,e.dump);if(f){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,l)}}else if(u==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new s("unacceptable kind of an object to dump "+u)}if(e.tag!==null&&e.tag!=="?"){let t=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){t="!"+t}else if(t.slice(0,18)==="tag:yaml.org,2002:"){t="!!"+t.slice(18)}else{t="!<"+t+">"}e.dump=t+" "+e.dump}}return true}function getDuplicateReferences(e,t){const r=[];const n=[];inspectNode(e,r,n);const s=n.length;for(let e=0;e<s;e+=1){t.duplicates.push(r[n[e]])}t.usedDuplicates=new Array(s)}function inspectNode(e,t,r){if(e!==null&&typeof e==="object"){const n=t.indexOf(e);if(n!==-1){if(r.indexOf(n)===-1){r.push(n)}}else{t.push(e);if(Array.isArray(e)){for(let n=0,s=e.length;n<s;n+=1){inspectNode(e[n],t,r)}}else{const n=Object.keys(e);for(let s=0,o=n.length;s<o;s+=1){inspectNode(e[n[s]],t,r)}}}}}function dump(e,t){t=t||{};const r=new State(t);if(!r.noRefs)getDuplicateReferences(e,r);let n=e;if(r.replacer){n=r.replacer.call({"":n},"",n)}if(writeNode(r,0,n,true,true))return r.dump+"\n";return""}e.exports.dump=dump},4615:e=>{"use strict";function formatError(e,t){let r="";const n=e.reason||"(unknown reason)";if(!e.mark)return n;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return n+" "+r}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},5443:(e,t,r)=>{"use strict";const n=r(7289);const s=r(4615);const o=r(1739);const i=r(809);const a=Object.prototype.hasOwnProperty;const c=1;const u=2;const l=3;const p=4;const d=1;const f=2;const h=3;const g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;const m=/[\x85\u2028\u2029]/;const y=/[,\[\]{}]/;const v=/^(?:!|!!|![0-9A-Za-z-]+!)$/;const $=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function isEol(e){return e===10||e===13}function isWhiteSpace(e){return e===9||e===32}function isWsOrEol(e){return e===9||e===32||e===10||e===13}function isFlowIndicator(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){if(e>=48&&e<=57){return e-48}const t=e|32;if(t>=97&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(e>=48&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){switch(e){case 48:return"\0";case 97:return"";case 98:return"\b";case 116:return"\t";case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"Â
";case 95:return"Â ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function setProperty(e,t,r){if(t==="__proto__"){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:r})}else{e[t]=r}}const b=new Array(256);const w=new Array(256);for(let e=0;e<256;e++){b[e]=simpleEscapeSequence(e)?1:0;w[e]=simpleEscapeSequence(e)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||i;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.maxDepth=typeof t["maxDepth"]==="number"?t["maxDepth"]:100;this.maxTotalMergeKeys=typeof t["maxTotalMergeKeys"]==="number"?t["maxTotalMergeKeys"]:1e4;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.depth=0;this.totalMergeKeys=0;this.firstTabInLine=-1;this.documents=[];this.anchorMapTransactions=[]}function generateError(e,t){const r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=o(r);return new s(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}function storeAnchor(e,t,r){const n=e.anchorMapTransactions;if(n.length!==0){const r=n[n.length-1];if(!a.call(r,t)){r[t]={existed:a.call(e.anchorMap,t),value:e.anchorMap[t]}}}e.anchorMap[t]=r}function beginAnchorTransaction(e){e.anchorMapTransactions.push(Object.create(null))}function commitAnchorTransaction(e){const t=e.anchorMapTransactions.pop();const r=e.anchorMapTransactions;if(r.length===0)return;const n=r[r.length-1];const s=Object.keys(t);for(let e=0,r=s.length;e<r;e+=1){const r=s[e];if(!a.call(n,r)){n[r]=t[r]}}}function rollbackAnchorTransaction(e){const t=e.anchorMapTransactions.pop();const r=Object.keys(t);for(let n=r.length-1;n>=0;n-=1){const s=t[r[n]];if(s.existed){e.anchorMap[r[n]]=s.value}else{delete e.anchorMap[r[n]]}}}function snapshotState(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function restoreState(e,t){e.position=t.position;e.line=t.line;e.lineStart=t.lineStart;e.lineIndent=t.lineIndent;e.firstTabInLine=t.firstTabInLine;e.tag=t.tag;e.anchor=t.anchor;e.kind=t.kind;e.result=t.result}const _={YAML:function handleYamlDirective(e,t,r){if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}const n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}const s=parseInt(n[1],10);const o=parseInt(n[2],10);if(s!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){let n;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}const s=r[0];n=r[1];if(!v.test(s)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,s)){throwError(e,'there is a previously declared suffix for "'+s+'" tag handle')}if(!$.test(n)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{n=decodeURIComponent(n)}catch(t){throwError(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function captureSegment(e,t,r,n){if(t<r){const s=e.input.slice(t,r);if(n){for(let t=0,r=s.length;t<r;t+=1){const r=s.charCodeAt(t);if(!(r===9||r>=32&&r<=1114111)){throwError(e,"expected valid JSON character")}}}else if(g.test(s)){throwError(e,"the stream contains non-printable characters")}e.result+=s}}function mergeMappings(e,t,r,s){if(!n.isObject(r)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}const o=Object.keys(r);for(let n=0,i=o.length;n<i;n+=1){const i=o[n];if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys){throwError(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}if(!a.call(t,i)){setProperty(t,i,r[i]);s[i]=true}}}function storeMappingPair(e,t,r,n,s,o,i,c,u){if(Array.isArray(s)){s=Array.prototype.slice.call(s);for(let t=0,r=s.length;t<r;t+=1){if(Array.isArray(s[t])){throwError(e,"nested arrays are not supported inside keys")}if(typeof s==="object"&&_class(s[t])==="[object Object]"){s[t]="[object Object]"}}}if(typeof s==="object"&&_class(s)==="[object Object]"){s="[object Object]"}s=String(s);if(t===null){t={}}if(n==="tag:yaml.org,2002:merge"){if(Array.isArray(o)){for(let n=0,s=o.length;n<s;n+=1){mergeMappings(e,t,o[n],r)}}else{mergeMappings(e,t,o,r)}}else{if(!e.json&&!a.call(r,s)&&a.call(t,s)){e.line=i||e.line;e.lineStart=c||e.lineStart;e.position=u||e.position;throwError(e,"duplicated mapping key")}setProperty(t,s,o);delete r[s]}return t}function readLineBreak(e){const t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,r){let n=0;let s=e.input.charCodeAt(e.position);while(s!==0){while(isWhiteSpace(s)){if(s===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}s=e.input.charCodeAt(++e.position)}if(t&&s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==10&&s!==13&&s!==0)}if(isEol(s)){readLineBreak(e);s=e.input.charCodeAt(e.position);n++;e.lineIndent=0;while(s===32){e.lineIndent++;s=e.input.charCodeAt(++e.position)}}else{break}}if(r!==-1&&n!==0&&e.lineIndent<r){throwWarning(e,"deficient indentation")}return n}function testDocumentSeparator(e){let t=e.position;let r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){t+=3;r=e.input.charCodeAt(t);if(r===0||isWsOrEol(r)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,r){let n;let s;let o;let i;let a;let c;const u=e.kind;const l=e.result;let p=e.input.charCodeAt(e.position);if(isWsOrEol(p)||isFlowIndicator(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96){return false}if(p===63||p===45){const t=e.input.charCodeAt(e.position+1);if(isWsOrEol(t)||r&&isFlowIndicator(t)){return false}}e.kind="scalar";e.result="";n=s=e.position;o=false;while(p!==0){if(p===58){const t=e.input.charCodeAt(e.position+1);if(isWsOrEol(t)||r&&isFlowIndicator(t)){break}}else if(p===35){const t=e.input.charCodeAt(e.position-1);if(isWsOrEol(t)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&isFlowIndicator(p)){break}else if(isEol(p)){i=e.line;a=e.lineStart;c=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){o=true;p=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=i;e.lineStart=a;e.lineIndent=c;break}}if(o){captureSegment(e,n,s,false);writeFoldedLines(e,e.line-i);n=s=e.position;o=false}if(!isWhiteSpace(p)){s=e.position+1}p=e.input.charCodeAt(++e.position)}captureSegment(e,n,s,false);if(e.result){return true}e.kind=u;e.result=l;return false}function readSingleQuotedScalar(e,t){let r;let n;let s=e.input.charCodeAt(e.position);if(s!==39){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((s=e.input.charCodeAt(e.position))!==0){if(s===39){captureSegment(e,r,e.position,true);s=e.input.charCodeAt(++e.position);if(s===39){r=e.position;e.position++;n=e.position}else{return true}}else if(isEol(s)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;if(!isWhiteSpace(s)){n=e.position}}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){let r;let n;let s;let o=e.input.charCodeAt(e.position);if(o!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((o=e.input.charCodeAt(e.position))!==0){if(o===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(o===92){captureSegment(e,r,e.position,true);o=e.input.charCodeAt(++e.position);if(isEol(o)){skipSeparationSpace(e,false,t)}else if(o<256&&b[o]){e.result+=w[o];e.position++}else if((s=escapedHexLen(o))>0){let t=s;let r=0;for(;t>0;t--){o=e.input.charCodeAt(++e.position);if((s=fromHexCode(o))>=0){r=(r<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(r);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(isEol(o)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;if(!isWhiteSpace(o)){n=e.position}}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){let r=true;let n;let s;let o;const i=e.tag;let a;const u=e.anchor;let l;let p;let d;let f;const h=Object.create(null);let g;let m;let y;let v=e.input.charCodeAt(e.position);if(v===91){l=93;f=false;a=[]}else if(v===123){l=125;f=true;a={}}else{return false}if(e.anchor!==null){storeAnchor(e,e.anchor,a)}v=e.input.charCodeAt(++e.position);while(v!==0){skipSeparationSpace(e,true,t);v=e.input.charCodeAt(e.position);if(v===l){e.position++;e.tag=i;e.anchor=u;e.kind=f?"mapping":"sequence";e.result=a;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(v===44){throwError(e,"expected the node content, but found ','")}m=g=y=null;p=d=false;if(v===63){const r=e.input.charCodeAt(e.position+1);if(isWsOrEol(r)){p=d=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;s=e.lineStart;o=e.position;composeNode(e,t,c,false,true);m=e.tag;g=e.result;skipSeparationSpace(e,true,t);v=e.input.charCodeAt(e.position);if((d||e.line===n)&&v===58){p=true;v=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,c,false,true);y=e.result}if(f){storeMappingPair(e,a,h,m,g,y,n,s,o)}else if(p){a.push(storeMappingPair(e,null,h,m,g,y,n,s,o))}else{a.push(g)}skipSeparationSpace(e,true,t);v=e.input.charCodeAt(e.position);if(v===44){r=true;v=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){let r;let s=d;let o=false;let i=false;let a=t;let c=0;let u=false;let l;let p=e.input.charCodeAt(e.position);if(p===124){r=false}else if(p===62){r=true}else{return false}e.kind="scalar";e.result="";while(p!==0){p=e.input.charCodeAt(++e.position);if(p===43||p===45){if(d===s){s=p===43?h:f}else{throwError(e,"repeat of a chomping mode identifier")}}else if((l=fromDecimalCode(p))>=0){if(l===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!i){a=t+l-1;i=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(isWhiteSpace(p)){do{p=e.input.charCodeAt(++e.position)}while(isWhiteSpace(p));if(p===35){do{p=e.input.charCodeAt(++e.position)}while(!isEol(p)&&p!==0)}}while(p!==0){readLineBreak(e);e.lineIndent=0;p=e.input.charCodeAt(e.position);while((!i||e.lineIndent<a)&&p===32){e.lineIndent++;p=e.input.charCodeAt(++e.position)}if(!i&&e.lineIndent>a){a=e.lineIndent}if(isEol(p)){c++;continue}if(!i&&a===0){throwError(e,"missing indentation for block scalar")}if(e.lineIndent<a){if(s===h){e.result+=n.repeat("\n",o?1+c:c)}else if(s===d){if(o){e.result+="\n"}}break}if(r){if(isWhiteSpace(p)){u=true;e.result+=n.repeat("\n",o?1+c:c)}else if(u){u=false;e.result+=n.repeat("\n",c+1)}else if(c===0){if(o){e.result+=" "}}else{e.result+=n.repeat("\n",c)}}else{e.result+=n.repeat("\n",o?1+c:c)}o=true;i=true;c=0;const t=e.position;while(!isEol(p)&&p!==0){p=e.input.charCodeAt(++e.position)}captureSegment(e,t,e.position,false)}return true}function readBlockSequence(e,t){const r=e.tag;const n=e.anchor;const s=[];let o=false;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){storeAnchor(e,e.anchor,s)}let i=e.input.charCodeAt(e.position);while(i!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(i!==45){break}const r=e.input.charCodeAt(e.position+1);if(!isWsOrEol(r)){break}o=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){s.push(null);i=e.input.charCodeAt(e.position);continue}}const n=e.line;composeNode(e,t,l,false,true);s.push(e.result);skipSeparationSpace(e,true,-1);i=e.input.charCodeAt(e.position);if((e.line===n||e.lineIndent>t)&&i!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(o){e.tag=r;e.anchor=n;e.kind="sequence";e.result=s;return true}return false}function readBlockMapping(e,t,r){let n;let s;let o;let i;const a=e.tag;const c=e.anchor;const l={};const d=Object.create(null);let f=null;let h=null;let g=null;let m=false;let y=false;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){storeAnchor(e,e.anchor,l)}let v=e.input.charCodeAt(e.position);while(v!==0){if(!m&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}const $=e.input.charCodeAt(e.position+1);const b=e.line;if((v===63||v===58)&&isWsOrEol($)){if(v===63){if(m){storeMappingPair(e,l,d,f,h,null,s,o,i);f=h=g=null}y=true;m=true;n=true}else if(m){m=false;n=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;v=$}else{s=e.line;o=e.lineStart;i=e.position;if(!composeNode(e,r,u,false,true)){break}if(e.line===b){v=e.input.charCodeAt(e.position);while(isWhiteSpace(v)){v=e.input.charCodeAt(++e.position)}if(v===58){v=e.input.charCodeAt(++e.position);if(!isWsOrEol(v)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(m){storeMappingPair(e,l,d,f,h,null,s,o,i);f=h=g=null}y=true;m=false;n=false;f=e.tag;h=e.result}else if(y){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=a;e.anchor=c;return true}}else if(y){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=a;e.anchor=c;return true}}if(e.line===b||e.lineIndent>t){if(m){s=e.line;o=e.lineStart;i=e.position}if(composeNode(e,t,p,true,n)){if(m){h=e.result}else{g=e.result}}if(!m){storeMappingPair(e,l,d,f,h,g,s,o,i);f=h=g=null}skipSeparationSpace(e,true,-1);v=e.input.charCodeAt(e.position)}if((e.line===b||e.lineIndent>t)&&v!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(m){storeMappingPair(e,l,d,f,h,null,s,o,i)}if(y){e.tag=a;e.anchor=c;e.kind="mapping";e.result=l}return y}function readTagProperty(e){let t=false;let r=false;let n;let s;let o=e.input.charCodeAt(e.position);if(o!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}o=e.input.charCodeAt(++e.position);if(o===60){t=true;o=e.input.charCodeAt(++e.position)}else if(o===33){r=true;n="!!";o=e.input.charCodeAt(++e.position)}else{n="!"}let i=e.position;if(t){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&o!==62);if(e.position<e.length){s=e.input.slice(i,e.position);o=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(o!==0&&!isWsOrEol(o)){if(o===33){if(!r){n=e.input.slice(i-1,e.position+1);if(!v.test(n)){throwError(e,"named tag handle cannot contain such characters")}r=true;i=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}o=e.input.charCodeAt(++e.position)}s=e.input.slice(i,e.position);if(y.test(s)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(s&&!$.test(s)){throwError(e,"tag name cannot contain such characters: "+s)}try{s=decodeURIComponent(s)}catch(t){throwError(e,"tag name is malformed: "+s)}if(t){e.tag=s}else if(a.call(e.tagMap,n)){e.tag=e.tagMap[n]+s}else if(n==="!"){e.tag="!"+s}else if(n==="!!"){e.tag="tag:yaml.org,2002:"+s}else{throwError(e,'undeclared tag handle "'+n+'"')}return true}function readAnchorProperty(e){let t=e.input.charCodeAt(e.position);if(t!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}t=e.input.charCodeAt(++e.position);const r=e.position;while(t!==0&&!isWsOrEol(t)&&!isFlowIndicator(t)){t=e.input.charCodeAt(++e.position)}if(e.position===r){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(r,e.position);return true}function readAlias(e){let t=e.input.charCodeAt(e.position);if(t!==42)return false;t=e.input.charCodeAt(++e.position);const r=e.position;while(t!==0&&!isWsOrEol(t)&&!isFlowIndicator(t)){t=e.input.charCodeAt(++e.position)}if(e.position===r){throwError(e,"name of an alias node must contain at least one character")}const n=e.input.slice(r,e.position);if(!a.call(e.anchorMap,n)){throwError(e,'unidentified alias "'+n+'"')}e.result=e.anchorMap[n];skipSeparationSpace(e,true,-1);return true}function tryReadBlockMappingFromProperty(e,t,r,n){const s=snapshotState(e);beginAnchorTransaction(e);restoreState(e,t);e.tag=null;e.anchor=null;e.kind=null;e.result=null;if(readBlockMapping(e,r,n)&&e.kind==="mapping"){commitAnchorTransaction(e);return true}rollbackAnchorTransaction(e);restoreState(e,s);return false}function composeNode(e,t,r,n,s){let o;let i;let d=1;let f=false;let h=false;let g=null;let m;let y;let v;if(e.depth>=e.maxDepth){throwError(e,"nesting exceeded maxDepth ("+e.maxDepth+")")}e.depth+=1;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;const $=o=i=p===r||l===r;if(n){if(skipSeparationSpace(e,true,-1)){f=true;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}}if(d===1){while(true){const r=e.input.charCodeAt(e.position);const n=snapshotState(e);if(f&&(r===33&&e.tag!==null||r===38&&e.anchor!==null)){break}if(!readTagProperty(e)&&!readAnchorProperty(e)){break}if(g===null){g=n}if(skipSeparationSpace(e,true,-1)){f=true;i=$;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}else{i=false}}}if(i){i=f||s}if(d===1||p===r){if(c===r||u===r){y=t}else{y=t+1}v=e.position-e.lineStart;if(d===1){if(i&&(readBlockSequence(e,v)||readBlockMapping(e,v,y))||readFlowCollection(e,y)){h=true}else{const t=e.input.charCodeAt(e.position);if(g!==null&&$&&!i&&t!==124&&t!==62&&tryReadBlockMappingFromProperty(e,g,g.position-g.lineStart,y)){h=true}else if(o&&readBlockScalar(e,y)||readSingleQuotedScalar(e,y)||readDoubleQuotedScalar(e,y)){h=true}else if(readAlias(e)){h=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,y,c===r)){h=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){storeAnchor(e,e.anchor,e.result)}}}else if(d===0){h=i&&readBlockSequence(e,v)}}if(e.tag===null){if(e.anchor!==null){storeAnchor(e,e.anchor,e.result)}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(let t=0,r=e.implicitTypes.length;t<r;t+=1){m=e.implicitTypes[t];if(m.resolve(e.result)){e.result=m.construct(e.result);e.tag=m.tag;if(e.anchor!==null){storeAnchor(e,e.anchor,e.result)}break}}}else if(e.tag!=="!"){if(a.call(e.typeMap[e.kind||"fallback"],e.tag)){m=e.typeMap[e.kind||"fallback"][e.tag]}else{m=null;const t=e.typeMap.multi[e.kind||"fallback"];for(let r=0,n=t.length;r<n;r+=1){if(e.tag.slice(0,t[r].tag.length)===t[r].tag){m=t[r];break}}}if(!m){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&m.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"')}if(!m.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=m.construct(e.result,e.tag);if(e.anchor!==null){storeAnchor(e,e.anchor,e.result)}}}if(e.listener!==null){e.listener("close",e)}e.depth-=1;return e.tag!==null||e.anchor!==null||h}function readDocument(e){const t=e.position;let r=false;let n;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((n=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);n=e.input.charCodeAt(e.position);if(e.lineIndent>0||n!==37){break}r=true;n=e.input.charCodeAt(++e.position);let t=e.position;while(n!==0&&!isWsOrEol(n)){n=e.input.charCodeAt(++e.position)}const s=e.input.slice(t,e.position);const o=[];if(s.length<1){throwError(e,"directive name must not be less than one character in length")}while(n!==0){while(isWhiteSpace(n)){n=e.input.charCodeAt(++e.position)}if(n===35){do{n=e.input.charCodeAt(++e.position)}while(n!==0&&!isEol(n));break}if(isEol(n))break;t=e.position;while(n!==0&&!isWsOrEol(n)){n=e.input.charCodeAt(++e.position)}o.push(e.input.slice(t,e.position))}if(n!==0)readLineBreak(e);if(a.call(_,s)){_[s](e,s,o)}else{throwWarning(e,'unknown document directive "'+s+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(r){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&m.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}const r=new State(e,t);const n=e.indexOf("\0");if(n!==-1){r.position=n;throwError(r,"null byte is not allowed in input")}r.input+="\0";while(r.input.charCodeAt(r.position)===32){r.lineIndent+=1;r.position+=1}while(r.position<r.length-1){readDocument(r)}return r.documents}function loadAll(e,t,r){if(t!==null&&typeof t==="object"&&typeof r==="undefined"){r=t;t=null}const n=loadDocuments(e,r);if(typeof t!=="function"){return n}for(let e=0,r=n.length;e<r;e+=1){t(n[e])}}function load(e,t){const r=loadDocuments(e,t);if(r.length===0){return undefined}else if(r.length===1){return r[0]}throw new s("expected a single document in the stream, but found more")}e.exports.loadAll=loadAll;e.exports.load=load},5759:(e,t,r)=>{"use strict";const n=r(4615);const s=r(6404);function compileList(e,t){const r=[];e[t].forEach((function(e){let t=r.length;r.forEach((function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=n}}));r[t]=e}));return r}function compileMap(){const e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(let e=0,t=arguments.length;e<t;e+=1){arguments[e].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){let t=[];let r=[];if(e instanceof s){r.push(e)}else if(Array.isArray(e)){r=r.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)r=r.concat(e.explicit)}else{throw new n("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof s)){throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new n("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));r.forEach((function(e){if(!(e instanceof s)){throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));const o=Object.create(Schema.prototype);o.implicit=(this.implicit||[]).concat(t);o.explicit=(this.explicit||[]).concat(r);o.compiledImplicit=compileList(o,"implicit");o.compiledExplicit=compileList(o,"explicit");o.compiledTypeMap=compileMap(o.compiledImplicit,o.compiledExplicit);return o};e.exports=Schema},721:(e,t,r)=>{"use strict";e.exports=r(176)},809:(e,t,r)=>{"use strict";e.exports=r(721).extend({implicit:[r(7351),r(9875)],explicit:[r(134),r(5738),r(406),r(3103)]})},9079:(e,t,r)=>{"use strict";const n=r(5759);e.exports=new n({explicit:[r(4084),r(324),r(489)]})},176:(e,t,r)=>{"use strict";e.exports=r(9079).extend({implicit:[r(2022),r(5503),r(3546),r(3869)]})},1739:(e,t,r)=>{"use strict";const n=r(7289);function getLine(e,t,r,n,s){let o="";let i="";const a=Math.floor(s/2)-1;if(n-t>a){o=" ... ";t=n-a+o.length}if(r-n>a){i=" ...";r=n+a-i.length}return{str:o+e.slice(t,r).replace(/\t/g,"â")+i,pos:n-t+o.length}}function padStart(e,t){return n.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;const r=/\r?\n|\r|\0/g;const s=[0];const o=[];let i;let a=-1;while(i=r.exec(e.buffer)){o.push(i.index);s.push(i.index+i[0].length);if(e.position<=i.index&&a<0){a=s.length-2}}if(a<0)a=s.length-1;let c="";const u=Math.min(e.line+t.linesAfter,o.length).toString().length;const l=t.maxLength-(t.indent+u+3);for(let r=1;r<=t.linesBefore;r++){if(a-r<0)break;const i=getLine(e.buffer,s[a-r],o[a-r],e.position-(s[a]-s[a-r]),l);c=n.repeat(" ",t.indent)+padStart((e.line-r+1).toString(),u)+" | "+i.str+"\n"+c}const p=getLine(e.buffer,s[a],o[a],e.position,l);c+=n.repeat(" ",t.indent)+padStart((e.line+1).toString(),u)+" | "+p.str+"\n";c+=n.repeat("-",t.indent+u+3+p.pos)+"^"+"\n";for(let r=1;r<=t.linesAfter;r++){if(a+r>=o.length)break;const i=getLine(e.buffer,s[a+r],o[a+r],e.position-(s[a]-s[a+r]),l);c+=n.repeat(" ",t.indent)+padStart((e.line+r+1).toString(),u)+" | "+i.str+"\n"}return c.replace(/\n$/,"")}e.exports=makeSnippet},6404:(e,t,r)=>{"use strict";const n=r(4615);const s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];const o=["scalar","sequence","mapping"];function compileStyleAliases(e){const t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(s.indexOf(t)===-1){throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(o.indexOf(this.kind)===-1){throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},134:(e,t,r)=>{"use strict";const n=r(6404);const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;let t=0;const r=e.length;const n=s;for(let s=0;s<r;s++){const r=n.indexOf(e.charAt(s));if(r>64)continue;if(r<0)return false;t+=6}return t%8===0}function constructYamlBinary(e){const t=e.replace(/[\r\n=]/g,"");const r=t.length;const n=s;let o=0;const i=[];for(let e=0;e<r;e++){if(e%4===0&&e){i.push(o>>16&255);i.push(o>>8&255);i.push(o&255)}o=o<<6|n.indexOf(t.charAt(e))}const a=r%4*6;if(a===0){i.push(o>>16&255);i.push(o>>8&255);i.push(o&255)}else if(a===18){i.push(o>>10&255);i.push(o>>2&255)}else if(a===12){i.push(o>>4&255)}return new Uint8Array(i)}function representYamlBinary(e){let t="";let r=0;const n=e.length;const o=s;for(let s=0;s<n;s++){if(s%3===0&&s){t+=o[r>>18&63];t+=o[r>>12&63];t+=o[r>>6&63];t+=o[r&63]}r=(r<<8)+e[s]}const i=n%3;if(i===0){t+=o[r>>18&63];t+=o[r>>12&63];t+=o[r>>6&63];t+=o[r&63]}else if(i===2){t+=o[r>>10&63];t+=o[r>>4&63];t+=o[r<<2&63];t+=o[64]}else if(i===1){t+=o[r>>2&63];t+=o[r<<4&63];t+=o[64];t+=o[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},5503:(e,t,r)=>{"use strict";const n=r(6404);function resolveYamlBoolean(e){if(e===null)return false;const t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},3869:(e,t,r)=>{"use strict";const n=r(7289);const s=r(6404);const o=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");const i=new RegExp("^(?:"+"[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!o.test(e)){return false}if(isFinite(parseFloat(e,10))){return true}return i.test(e)}function constructYamlFloat(e){let t=e.toLowerCase();const r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}const a=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}const r=e.toString(10);return a.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.isNegativeZero(e))}e.exports=new s("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},3546:(e,t,r)=>{"use strict";const n=r(7289);const s=r(6404);function isHexCode(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function isOctCode(e){return e>=48&&e<=55}function isDecCode(e){return e>=48&&e<=57}function resolveYamlInteger(e){if(e===null)return false;const t=e.length;let r=0;let n=false;if(!t)return false;let s=e[r];if(s==="-"||s==="+"){s=e[++r]}if(s==="0"){if(r+1===t)return true;s=e[++r];if(s==="b"){r++;for(;r<t;r++){s=e[r];if(s!=="0"&&s!=="1")return false;n=true}return n&&isFinite(parseYamlInteger(e))}if(s==="x"){r++;for(;r<t;r++){if(!isHexCode(e.charCodeAt(r)))return false;n=true}return n&&isFinite(parseYamlInteger(e))}if(s==="o"){r++;for(;r<t;r++){if(!isOctCode(e.charCodeAt(r)))return false;n=true}return n&&isFinite(parseYamlInteger(e))}}for(;r<t;r++){if(!isDecCode(e.charCodeAt(r))){return false}n=true}if(!n)return false;return isFinite(parseYamlInteger(e))}function parseYamlInteger(e){let t=e;let r=1;let n=t[0];if(n==="-"||n==="+"){if(n==="-")r=-1;t=t.slice(1);n=t[0]}if(t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function constructYamlInteger(e){return parseYamlInteger(e)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!n.isNegativeZero(e))}e.exports=new s("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},489:(e,t,r)=>{"use strict";const n=r(6404);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},9875:(e,t,r)=>{"use strict";const n=r(6404);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},2022:(e,t,r)=>{"use strict";const n=r(6404);function resolveYamlNull(e){if(e===null)return true;const t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},5738:(e,t,r)=>{"use strict";const n=r(6404);const s=Object.prototype.hasOwnProperty;const o=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;const t=[];const r=e;for(let e=0,n=r.length;e<n;e+=1){const n=r[e];let i=false;if(o.call(n)!=="[object Object]")return false;let a;for(a in n){if(s.call(n,a)){if(!i)i=true;else return false}}if(!i)return false;if(t.indexOf(a)===-1)t.push(a);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},406:(e,t,r)=>{"use strict";const n=r(6404);const s=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;const t=e;const r=new Array(t.length);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];if(s.call(n)!=="[object Object]")return false;const o=Object.keys(n);if(o.length!==1)return false;r[e]=[o[0],n[o[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];const t=e;const r=new Array(t.length);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];const s=Object.keys(n);r[e]=[s[0],n[s[0]]]}return r}e.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},324:(e,t,r)=>{"use strict";const n=r(6404);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},3103:(e,t,r)=>{"use strict";const n=r(6404);const s=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;const t=e;for(const e in t){if(s.call(t,e)){if(t[e]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},4084:(e,t,r)=>{"use strict";const n=r(6404);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},7351:(e,t,r)=>{"use strict";const n=r(6404);const s=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");const o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(s.exec(e)!==null)return true;if(o.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){let t=0;let r=null;let n=s.exec(e);if(n===null)n=o.exec(e);if(n===null)throw new Error("Date resolve error");const i=+n[1];const a=+n[2]-1;const c=+n[3];if(!n[4]){return new Date(Date.UTC(i,a,c))}const u=+n[4];const l=+n[5];const p=+n[6];if(n[7]){t=n[7].slice(0,3);while(t.length<3){t+="0"}t=+t}if(n[9]){const e=+n[10];const t=+(n[11]||0);r=(e*60+t)*6e4;if(n[9]==="-")r=-r}const d=new Date(Date.UTC(i,a,c,u,l,p,t));if(r)d.setTime(d.getTime()-r);return d}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},9939:(e,t,r)=>{"use strict";e.exports=LRUCache;var n=r(4570);var s=r(9023);var o=r(1080);var i=typeof Symbol==="function"&&process.env._nodeLRUCacheForceNoSymbol!=="1";var a;if(i){a=function(e){return Symbol(e)}}else{a=function(e){return"_"+e}}var c=a("max");var u=a("length");var l=a("lengthCalculator");var p=a("allowStale");var d=a("maxAge");var f=a("dispose");var h=a("noDisposeOnSet");var g=a("lruList");var m=a("cache");function naiveLength(){return 1}function LRUCache(e){if(!(this instanceof LRUCache)){return new LRUCache(e)}if(typeof e==="number"){e={max:e}}if(!e){e={}}var t=this[c]=e.max;if(!t||!(typeof t==="number")||t<=0){this[c]=Infinity}var r=e.length||naiveLength;if(typeof r!=="function"){r=naiveLength}this[l]=r;this[p]=e.stale||false;this[d]=e.maxAge||0;this[f]=e.dispose;this[h]=e.noDisposeOnSet||false;this.reset()}Object.defineProperty(LRUCache.prototype,"max",{set:function(e){if(!e||!(typeof e==="number")||e<=0){e=Infinity}this[c]=e;trim(this)},get:function(){return this[c]},enumerable:true});Object.defineProperty(LRUCache.prototype,"allowStale",{set:function(e){this[p]=!!e},get:function(){return this[p]},enumerable:true});Object.defineProperty(LRUCache.prototype,"maxAge",{set:function(e){if(!e||!(typeof e==="number")||e<0){e=0}this[d]=e;trim(this)},get:function(){return this[d]},enumerable:true});Object.defineProperty(LRUCache.prototype,"lengthCalculator",{set:function(e){if(typeof e!=="function"){e=naiveLength}if(e!==this[l]){this[l]=e;this[u]=0;this[g].forEach((function(e){e.length=this[l](e.value,e.key);this[u]+=e.length}),this)}trim(this)},get:function(){return this[l]},enumerable:true});Object.defineProperty(LRUCache.prototype,"length",{get:function(){return this[u]},enumerable:true});Object.defineProperty(LRUCache.prototype,"itemCount",{get:function(){return this[g].length},enumerable:true});LRUCache.prototype.rforEach=function(e,t){t=t||this;for(var r=this[g].tail;r!==null;){var n=r.prev;forEachStep(this,e,r,t);r=n}};function forEachStep(e,t,r,n){var s=r.value;if(isStale(e,s)){del(e,r);if(!e[p]){s=undefined}}if(s){t.call(n,s.value,s.key,e)}}LRUCache.prototype.forEach=function(e,t){t=t||this;for(var r=this[g].head;r!==null;){var n=r.next;forEachStep(this,e,r,t);r=n}};LRUCache.prototype.keys=function(){return this[g].toArray().map((function(e){return e.key}),this)};LRUCache.prototype.values=function(){return this[g].toArray().map((function(e){return e.value}),this)};LRUCache.prototype.reset=function(){if(this[f]&&this[g]&&this[g].length){this[g].forEach((function(e){this[f](e.key,e.value)}),this)}this[m]=new n;this[g]=new o;this[u]=0};LRUCache.prototype.dump=function(){return this[g].map((function(e){if(!isStale(this,e)){return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}}}),this).toArray().filter((function(e){return e}))};LRUCache.prototype.dumpLru=function(){return this[g]};LRUCache.prototype.inspect=function(e,t){var r="LRUCache {";var n=false;var o=this[p];if(o){r+="\n allowStale: true";n=true}var i=this[c];if(i&&i!==Infinity){if(n){r+=","}r+="\n max: "+s.inspect(i,t);n=true}var a=this[d];if(a){if(n){r+=","}r+="\n maxAge: "+s.inspect(a,t);n=true}var f=this[l];if(f&&f!==naiveLength){if(n){r+=","}r+="\n length: "+s.inspect(this[u],t);n=true}var h=false;this[g].forEach((function(e){if(h){r+=",\n "}else{if(n){r+=",\n"}h=true;r+="\n "}var o=s.inspect(e.key).split("\n").join("\n ");var i={value:e.value};if(e.maxAge!==a){i.maxAge=e.maxAge}if(f!==naiveLength){i.length=e.length}if(isStale(this,e)){i.stale=true}i=s.inspect(i,t).split("\n").join("\n ");r+=o+" => "+i}));if(h||n){r+="\n"}r+="}";return r};LRUCache.prototype.set=function(e,t,r){r=r||this[d];var n=r?Date.now():0;var s=this[l](t,e);if(this[m].has(e)){if(s>this[c]){del(this,this[m].get(e));return false}var o=this[m].get(e);var i=o.value;if(this[f]){if(!this[h]){this[f](e,i.value)}}i.now=n;i.maxAge=r;i.value=t;this[u]+=s-i.length;i.length=s;this.get(e);trim(this);return true}var a=new Entry(e,t,s,n,r);if(a.length>this[c]){if(this[f]){this[f](e,t)}return false}this[u]+=a.length;this[g].unshift(a);this[m].set(e,this[g].head);trim(this);return true};LRUCache.prototype.has=function(e){if(!this[m].has(e))return false;var t=this[m].get(e).value;if(isStale(this,t)){return false}return true};LRUCache.prototype.get=function(e){return get(this,e,true)};LRUCache.prototype.peek=function(e){return get(this,e,false)};LRUCache.prototype.pop=function(){var e=this[g].tail;if(!e)return null;del(this,e);return e.value};LRUCache.prototype.del=function(e){del(this,this[m].get(e))};LRUCache.prototype.load=function(e){this.reset();var t=Date.now();for(var r=e.length-1;r>=0;r--){var n=e[r];var s=n.e||0;if(s===0){this.set(n.k,n.v)}else{var o=s-t;if(o>0){this.set(n.k,n.v,o)}}}};LRUCache.prototype.prune=function(){var e=this;this[m].forEach((function(t,r){get(e,r,false)}))};function get(e,t,r){var n=e[m].get(t);if(n){var s=n.value;if(isStale(e,s)){del(e,n);if(!e[p])s=undefined}else{if(r){e[g].unshiftNode(n)}}if(s)s=s.value}return s}function isStale(e,t){if(!t||!t.maxAge&&!e[d]){return false}var r=false;var n=Date.now()-t.now;if(t.maxAge){r=n>t.maxAge}else{r=e[d]&&n>e[d]}return r}function trim(e){if(e[u]>e[c]){for(var t=e[g].tail;e[u]>e[c]&&t!==null;){var r=t.prev;del(e,t);t=r}}}function del(e,t){if(t){var r=t.value;if(e[f]){e[f](r.key,r.value)}e[u]-=r.length;e[m].delete(r.key);e[g].removeNode(t)}}function Entry(e,t,r,n,s){this.key=e;this.value=t;this.length=r;this.now=n;this.maxAge=s||0}},6674:(e,t,r)=>{"use strict";const n=r(9023);const s=r(8671);const o=r(5675);const i=r(7910);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let n=new Set;let s=new Set;let i=new Set;let a=0;let onResult=e=>{i.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let i=0;i<t.length;i++){let c=o(String(t[i]),{...r,onResult:onResult},true);let u=c.state.negated||c.state.negatedExtglob;if(u)a++;for(let t of e){let e=c(t,true);let r=u?!e.isMatch:e.isMatch;if(!r)continue;if(u){n.add(e.output)}else{n.delete(e.output);s.add(e.output)}}}let c=a===t.length?[...i]:[...s];let u=c.filter((e=>!n.has(e)));if(r&&u.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return u};micromatch.match=micromatch;micromatch.matcher=(e,t)=>o(e,t);micromatch.isMatch=(e,t,r)=>o(t,r)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set;let s=[];let onResult=e=>{if(r.onResult)r.onResult(e);s.push(e.output)};let o=new Set(micromatch(e,t,{...r,onResult:onResult}));for(let e of s){if(!o.has(e)){n.add(e)}}return[...n]};micromatch.contains=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,r)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...r,contains:true})};micromatch.matchKeys=(e,t,r)=>{if(!i.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let n=micromatch(Object.keys(e),t,r);let s={};for(let t of n)s[t]=e[t];return s};micromatch.some=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(n.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(!n.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}return[].concat(t).every((t=>o(t,r)(e)))};micromatch.capture=(e,t,r)=>{let n=i.isWindows(r);let s=o.makeRe(String(e),{...r,capture:true});let a=s.exec(n?i.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>o.makeRe(...e);micromatch.scan=(...e)=>o.scan(...e);micromatch.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[])){for(let e of s(String(n),t)){r.push(o.parse(e,t))}}return r};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return s(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},7914:e=>{
|
|
13
|
+
*/e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},7105:(e,t,r)=>{var n=r(9896);var s;if(process.platform==="win32"||global.TESTING_WINDOWS){s=r(6132)}else{s=r(9397)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(r,n){isexe(e,t||{},(function(e,t){if(e){n(e)}else{r(t)}}))}))}s(e,t||{},(function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)}))}function sync(e,t){try{return s.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},9397:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(9896);function isexe(e,t,r){n.stat(e,(function(e,n){r(e,e?false:checkStat(n,t))}))}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var s=e.gid;var o=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var i=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var u=parseInt("001",8);var l=a|c;var p=r&u||r&c&&s===i||r&a&&n===o||r&l&&o===0;return p}},6132:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(9896);function checkPathExt(e,t){var r=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!r){return true}r=r.split(";");if(r.indexOf("")!==-1){return true}for(var n=0;n<r.length;n++){var s=r[n].toLowerCase();if(s&&e.substr(-s.length).toLowerCase()===s){return true}}return false}function checkStat(e,t,r){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,r)}function isexe(e,t,r){n.stat(e,(function(n,s){r(n,n?false:checkStat(s,e,t))}))}function sync(e,t){return checkStat(n.statSync(e),e,t)}},2146:(e,t,r)=>{"use strict";const n=r(5443);const s=r(5957);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(6404);e.exports.Schema=r(5759);e.exports.FAILSAFE_SCHEMA=r(9079);e.exports.JSON_SCHEMA=r(176);e.exports.CORE_SCHEMA=r(721);e.exports.DEFAULT_SCHEMA=r(809);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.dump=s.dump;e.exports.YAMLException=r(4615);e.exports.types={binary:r(134),float:r(3869),map:r(489),null:r(2022),pairs:r(406),set:r(3103),timestamp:r(7351),bool:r(5503),int:r(3546),merge:r(9875),omap:r(5738),seq:r(324),str:r(4084)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},7289:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){if(t){const r=Object.keys(t);for(let n=0,s=r.length;n<s;n+=1){const s=r[n];e[s]=t[s]}}return e}function repeat(e,t){let r="";for(let n=0;n<t;n+=1){r+=e}return r}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=isNothing;e.exports.isObject=isObject;e.exports.toArray=toArray;e.exports.repeat=repeat;e.exports.isNegativeZero=isNegativeZero;e.exports.extend=extend},5957:(e,t,r)=>{"use strict";const n=r(7289);const s=r(4615);const o=r(809);const i=Object.prototype.toString;const a=Object.prototype.hasOwnProperty;const c=65279;const u=9;const l=10;const p=13;const d=32;const f=33;const h=34;const g=35;const m=37;const y=38;const v=39;const $=42;const b=44;const w=45;const _=58;const S=61;const A=62;const j=63;const x=64;const R=91;const k=93;const I=96;const P=123;const T=124;const C=125;const O={};O[0]="\\0";O[7]="\\a";O[8]="\\b";O[9]="\\t";O[10]="\\n";O[11]="\\v";O[12]="\\f";O[13]="\\r";O[27]="\\e";O[34]='\\"';O[92]="\\\\";O[133]="\\N";O[160]="\\_";O[8232]="\\L";O[8233]="\\P";const M=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];const N=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){if(t===null)return{};const r={};const n=Object.keys(t);for(let s=0,o=n.length;s<o;s+=1){let o=n[s];let i=String(t[o]);if(o.slice(0,2)==="!!"){o="tag:yaml.org,2002:"+o.slice(2)}const c=e.compiledTypeMap["fallback"][o];if(c&&a.call(c.styleAliases,i)){i=c.styleAliases[i]}r[o]=i}return r}function encodeHex(e){let t;let r;const o=e.toString(16).toUpperCase();if(e<=255){t="x";r=2}else if(e<=65535){t="u";r=4}else if(e<=4294967295){t="U";r=8}else{throw new s("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+t+n.repeat("0",r-o.length)+o}const L=1;const B=2;function State(e){this.schema=e["schema"]||o;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=n.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?B:L;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){const r=n.repeat(" ",t);let s=0;let o="";const i=e.length;while(s<i){let t;const n=e.indexOf("\n",s);if(n===-1){t=e.slice(s);s=i}else{t=e.slice(s,n+1);s=n+1}if(t.length&&t!=="\n")o+=r;o+=t}return o}function generateNextLine(e,t){return"\n"+n.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){for(let r=0,n=e.implicitTypes.length;r<n;r+=1){const n=e.implicitTypes[r];if(n.resolve(t)){return true}}return false}function isWhitespace(e){return e===d||e===u}function isPrintable(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==c||e>=65536&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==c&&e!==p&&e!==l}function isPlainSafe(e,t,r){const n=isNsCharOrWhitespace(e);const s=n&&!isWhitespace(e);return(r?n:n&&e!==b&&e!==R&&e!==k&&e!==P&&e!==C)&&e!==g&&!(t===_&&!s)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===g||t===_&&s}function isPlainSafeFirst(e){return isPrintable(e)&&e!==c&&!isWhitespace(e)&&e!==w&&e!==j&&e!==_&&e!==b&&e!==R&&e!==k&&e!==P&&e!==C&&e!==g&&e!==y&&e!==$&&e!==f&&e!==T&&e!==S&&e!==A&&e!==v&&e!==h&&e!==m&&e!==x&&e!==I}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==_}function codePointAt(e,t){const r=e.charCodeAt(t);let n;if(r>=55296&&r<=56319&&t+1<e.length){n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){return(r-55296)*1024+n-56320+65536}}return r}function needIndentIndicator(e){const t=/^\n* /;return t.test(e)}const G=1;const U=2;const q=3;const D=4;const H=5;function chooseScalarStyle(e,t,r,n,s,o,i,a){let c;let u=0;let p=null;let d=false;let f=false;const h=n!==-1;let g=-1;let m=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||i){for(c=0;c<e.length;u>=65536?c+=2:c++){u=codePointAt(e,c);if(!isPrintable(u)){return H}m=m&&isPlainSafe(u,p,a);p=u}}else{for(c=0;c<e.length;u>=65536?c+=2:c++){u=codePointAt(e,c);if(u===l){d=true;if(h){f=f||c-g-1>n&&e[g+1]!==" ";g=c}}else if(!isPrintable(u)){return H}m=m&&isPlainSafe(u,p,a);p=u}f=f||h&&(c-g-1>n&&e[g+1]!==" ")}if(!d&&!f){if(m&&!i&&!s(e)){return G}return o===B?H:U}if(r>9&&needIndentIndicator(e)){return H}if(!i){return f?D:q}return o===B?H:U}function writeScalar(e,t,r,n,o){e.dump=function(){if(t.length===0){return e.quotingType===B?'""':"''"}if(!e.noCompatMode){if(M.indexOf(t)!==-1||N.test(t)){return e.quotingType===B?'"'+t+'"':"'"+t+"'"}}const i=e.indent*Math.max(1,r);const a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);const c=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,c,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!n,o)){case G:return t;case U:return"'"+t.replace(/'/g,"''")+"'";case q:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,i));case D:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),i));case H:return'"'+escapeString(t,a)+'"';default:throw new s("impossible error: invalid scalar style")}}()}function blockHeader(e,t){const r=needIndentIndicator(e)?String(t):"";const n=e[e.length-1]==="\n";const s=n&&(e[e.length-2]==="\n"||e==="\n");const o=s?"+":n?"":"-";return r+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){const r=/(\n+)([^\n]*)/g;let n=function(){let n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();let s=e[0]==="\n"||e[0]===" ";let o;let i;while(i=r.exec(e)){const e=i[1];const r=i[2];o=r[0]===" ";n+=e+(!s&&!o&&r!==""?"\n":"")+foldLine(r,t);s=o}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;const r=/ [^ ]/g;let n;let s=0;let o;let i=0;let a=0;let c="";while(n=r.exec(e)){a=n.index;if(a-s>t){o=i>s?i:a;c+="\n"+e.slice(s,o);s=o+1}i=a}c+="\n";if(e.length-s>t&&i>s){c+=e.slice(s,i)+"\n"+e.slice(i+1)}else{c+=e.slice(s)}return c.slice(1)}function escapeString(e){let t="";let r=0;for(let n=0;n<e.length;r>=65536?n+=2:n++){r=codePointAt(e,n);const s=O[r];if(!s&&isPrintable(r)){t+=e[n];if(r>=65536)t+=e[n+1]}else{t+=s||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){let n="";const s=e.tag;for(let s=0,o=r.length;s<o;s+=1){let o=r[s];if(e.replacer){o=e.replacer.call(r,String(s),o)}if(writeNode(e,t,o,false,false)||typeof o==="undefined"&&writeNode(e,t,null,false,false)){if(n!=="")n+=","+(!e.condenseFlow?" ":"");n+=e.dump}}e.tag=s;e.dump="["+n+"]"}function writeBlockSequence(e,t,r,n){let s="";const o=e.tag;for(let o=0,i=r.length;o<i;o+=1){let i=r[o];if(e.replacer){i=e.replacer.call(r,String(o),i)}if(writeNode(e,t+1,i,true,true,false,true)||typeof i==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!n||s!==""){s+=generateNextLine(e,t)}if(e.dump&&l===e.dump.charCodeAt(0)){s+="-"}else{s+="- "}s+=e.dump}}e.tag=o;e.dump=s||"[]"}function writeFlowMapping(e,t,r){let n="";const s=e.tag;const o=Object.keys(r);for(let s=0,i=o.length;s<i;s+=1){let i="";if(n!=="")i+=", ";if(e.condenseFlow)i+='"';const a=o[s];let c=r[a];if(e.replacer){c=e.replacer.call(r,a,c)}if(!writeNode(e,t,a,false,false)){continue}if(e.dump.length>1024)i+="? ";i+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,c,false,false)){continue}i+=e.dump;n+=i}e.tag=s;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){let o="";const i=e.tag;const a=Object.keys(r);if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new s("sortKeys must be a boolean or a function")}for(let s=0,i=a.length;s<i;s+=1){let i="";if(!n||o!==""){i+=generateNextLine(e,t)}const c=a[s];let u=r[c];if(e.replacer){u=e.replacer.call(r,c,u)}if(!writeNode(e,t+1,c,true,true,true)){continue}const p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(p){if(e.dump&&l===e.dump.charCodeAt(0)){i+="?"}else{i+="? "}}i+=e.dump;if(p){i+=generateNextLine(e,t)}if(!writeNode(e,t+1,u,true,p)){continue}if(e.dump&&l===e.dump.charCodeAt(0)){i+=":"}else{i+=": "}i+=e.dump;o+=i}e.tag=i;e.dump=o||"{}"}function detectType(e,t,r){const n=r?e.explicitTypes:e.implicitTypes;for(let o=0,c=n.length;o<c;o+=1){const c=n[o];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t==="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(r){if(c.multi&&c.representName){e.tag=c.representName(t)}else{e.tag=c.tag}}else{e.tag="?"}if(c.represent){const r=e.styleMap[c.tag]||c.defaultStyle;let n;if(i.call(c.represent)==="[object Function]"){n=c.represent(t,r)}else if(a.call(c.represent,r)){n=c.represent[r](t,r)}else{throw new s("!<"+c.tag+'> tag resolver accepts not "'+r+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,o,a,c){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}const u=i.call(e.dump);const l=n;if(n){n=e.flowLevel<0||e.flowLevel>t}const p=u==="[object Object]"||u==="[object Array]";let d;let f;if(p){d=e.duplicates.indexOf(r);f=d!==-1}if(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0){o=false}if(f&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(p&&f&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(u==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,o);if(f){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,t,e.dump);if(f){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object Array]"){if(n&&e.dump.length!==0){if(e.noArrayIndent&&!c&&t>0){writeBlockSequence(e,t-1,e.dump,o)}else{writeBlockSequence(e,t,e.dump,o)}if(f){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,t,e.dump);if(f){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,l)}}else if(u==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new s("unacceptable kind of an object to dump "+u)}if(e.tag!==null&&e.tag!=="?"){let t=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){t="!"+t}else if(t.slice(0,18)==="tag:yaml.org,2002:"){t="!!"+t.slice(18)}else{t="!<"+t+">"}e.dump=t+" "+e.dump}}return true}function getDuplicateReferences(e,t){const r=[];const n=[];inspectNode(e,r,n);const s=n.length;for(let e=0;e<s;e+=1){t.duplicates.push(r[n[e]])}t.usedDuplicates=new Array(s)}function inspectNode(e,t,r){if(e!==null&&typeof e==="object"){const n=t.indexOf(e);if(n!==-1){if(r.indexOf(n)===-1){r.push(n)}}else{t.push(e);if(Array.isArray(e)){for(let n=0,s=e.length;n<s;n+=1){inspectNode(e[n],t,r)}}else{const n=Object.keys(e);for(let s=0,o=n.length;s<o;s+=1){inspectNode(e[n[s]],t,r)}}}}}function dump(e,t){t=t||{};const r=new State(t);if(!r.noRefs)getDuplicateReferences(e,r);let n=e;if(r.replacer){n=r.replacer.call({"":n},"",n)}if(writeNode(r,0,n,true,true))return r.dump+"\n";return""}e.exports.dump=dump},4615:e=>{"use strict";function formatError(e,t){let r="";const n=e.reason||"(unknown reason)";if(!e.mark)return n;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return n+" "+r}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},5443:(e,t,r)=>{"use strict";const n=r(7289);const s=r(4615);const o=r(1739);const i=r(809);const a=Object.prototype.hasOwnProperty;const c=1;const u=2;const l=3;const p=4;const d=1;const f=2;const h=3;const g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;const m=/[\x85\u2028\u2029]/;const y=/[,\[\]{}]/;const v=/^(?:!|!!|![0-9A-Za-z-]+!)$/;const $=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function isEol(e){return e===10||e===13}function isWhiteSpace(e){return e===9||e===32}function isWsOrEol(e){return e===9||e===32||e===10||e===13}function isFlowIndicator(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){if(e>=48&&e<=57){return e-48}const t=e|32;if(t>=97&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(e>=48&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){switch(e){case 48:return"\0";case 97:return"";case 98:return"\b";case 116:return"\t";case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"Â
";case 95:return"Â ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function setProperty(e,t,r){if(t==="__proto__"){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:r})}else{e[t]=r}}const b=new Array(256);const w=new Array(256);for(let e=0;e<256;e++){b[e]=simpleEscapeSequence(e)?1:0;w[e]=simpleEscapeSequence(e)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||i;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.maxDepth=typeof t["maxDepth"]==="number"?t["maxDepth"]:100;this.maxTotalMergeKeys=typeof t["maxTotalMergeKeys"]==="number"?t["maxTotalMergeKeys"]:1e4;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.depth=0;this.totalMergeKeys=0;this.firstTabInLine=-1;this.documents=[];this.anchorMapTransactions=[]}function generateError(e,t){const r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=o(r);return new s(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}function storeAnchor(e,t,r){const n=e.anchorMapTransactions;if(n.length!==0){const r=n[n.length-1];if(!a.call(r,t)){r[t]={existed:a.call(e.anchorMap,t),value:e.anchorMap[t]}}}e.anchorMap[t]=r}function beginAnchorTransaction(e){e.anchorMapTransactions.push(Object.create(null))}function commitAnchorTransaction(e){const t=e.anchorMapTransactions.pop();const r=e.anchorMapTransactions;if(r.length===0)return;const n=r[r.length-1];const s=Object.keys(t);for(let e=0,r=s.length;e<r;e+=1){const r=s[e];if(!a.call(n,r)){n[r]=t[r]}}}function rollbackAnchorTransaction(e){const t=e.anchorMapTransactions.pop();const r=Object.keys(t);for(let n=r.length-1;n>=0;n-=1){const s=t[r[n]];if(s.existed){e.anchorMap[r[n]]=s.value}else{delete e.anchorMap[r[n]]}}}function snapshotState(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function restoreState(e,t){e.position=t.position;e.line=t.line;e.lineStart=t.lineStart;e.lineIndent=t.lineIndent;e.firstTabInLine=t.firstTabInLine;e.tag=t.tag;e.anchor=t.anchor;e.kind=t.kind;e.result=t.result}const _={YAML:function handleYamlDirective(e,t,r){if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}const n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}const s=parseInt(n[1],10);const o=parseInt(n[2],10);if(s!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){let n;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}const s=r[0];n=r[1];if(!v.test(s)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,s)){throwError(e,'there is a previously declared suffix for "'+s+'" tag handle')}if(!$.test(n)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{n=decodeURIComponent(n)}catch(t){throwError(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function captureSegment(e,t,r,n){if(t<r){const s=e.input.slice(t,r);if(n){for(let t=0,r=s.length;t<r;t+=1){const r=s.charCodeAt(t);if(!(r===9||r>=32&&r<=1114111)){throwError(e,"expected valid JSON character")}}}else if(g.test(s)){throwError(e,"the stream contains non-printable characters")}e.result+=s}}function mergeMappings(e,t,r,s){if(!n.isObject(r)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}const o=Object.keys(r);for(let n=0,i=o.length;n<i;n+=1){const i=o[n];if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys){throwError(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}if(!a.call(t,i)){setProperty(t,i,r[i]);s[i]=true}}}function storeMappingPair(e,t,r,n,s,o,i,c,u){if(Array.isArray(s)){s=Array.prototype.slice.call(s);for(let t=0,r=s.length;t<r;t+=1){if(Array.isArray(s[t])){throwError(e,"nested arrays are not supported inside keys")}if(typeof s==="object"&&_class(s[t])==="[object Object]"){s[t]="[object Object]"}}}if(typeof s==="object"&&_class(s)==="[object Object]"){s="[object Object]"}s=String(s);if(t===null){t={}}if(n==="tag:yaml.org,2002:merge"){if(Array.isArray(o)){for(let n=0,s=o.length;n<s;n+=1){mergeMappings(e,t,o[n],r)}}else{mergeMappings(e,t,o,r)}}else{if(!e.json&&!a.call(r,s)&&a.call(t,s)){e.line=i||e.line;e.lineStart=c||e.lineStart;e.position=u||e.position;throwError(e,"duplicated mapping key")}setProperty(t,s,o);delete r[s]}return t}function readLineBreak(e){const t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,r){let n=0;let s=e.input.charCodeAt(e.position);while(s!==0){while(isWhiteSpace(s)){if(s===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}s=e.input.charCodeAt(++e.position)}if(t&&s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==10&&s!==13&&s!==0)}if(isEol(s)){readLineBreak(e);s=e.input.charCodeAt(e.position);n++;e.lineIndent=0;while(s===32){e.lineIndent++;s=e.input.charCodeAt(++e.position)}}else{break}}if(r!==-1&&n!==0&&e.lineIndent<r){throwWarning(e,"deficient indentation")}return n}function testDocumentSeparator(e){let t=e.position;let r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){t+=3;r=e.input.charCodeAt(t);if(r===0||isWsOrEol(r)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,r){let n;let s;let o;let i;let a;let c;const u=e.kind;const l=e.result;let p=e.input.charCodeAt(e.position);if(isWsOrEol(p)||isFlowIndicator(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96){return false}if(p===63||p===45){const t=e.input.charCodeAt(e.position+1);if(isWsOrEol(t)||r&&isFlowIndicator(t)){return false}}e.kind="scalar";e.result="";n=s=e.position;o=false;while(p!==0){if(p===58){const t=e.input.charCodeAt(e.position+1);if(isWsOrEol(t)||r&&isFlowIndicator(t)){break}}else if(p===35){const t=e.input.charCodeAt(e.position-1);if(isWsOrEol(t)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&isFlowIndicator(p)){break}else if(isEol(p)){i=e.line;a=e.lineStart;c=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){o=true;p=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=i;e.lineStart=a;e.lineIndent=c;break}}if(o){captureSegment(e,n,s,false);writeFoldedLines(e,e.line-i);n=s=e.position;o=false}if(!isWhiteSpace(p)){s=e.position+1}p=e.input.charCodeAt(++e.position)}captureSegment(e,n,s,false);if(e.result){return true}e.kind=u;e.result=l;return false}function readSingleQuotedScalar(e,t){let r;let n;let s=e.input.charCodeAt(e.position);if(s!==39){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((s=e.input.charCodeAt(e.position))!==0){if(s===39){captureSegment(e,r,e.position,true);s=e.input.charCodeAt(++e.position);if(s===39){r=e.position;e.position++;n=e.position}else{return true}}else if(isEol(s)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;if(!isWhiteSpace(s)){n=e.position}}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){let r;let n;let s;let o=e.input.charCodeAt(e.position);if(o!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((o=e.input.charCodeAt(e.position))!==0){if(o===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(o===92){captureSegment(e,r,e.position,true);o=e.input.charCodeAt(++e.position);if(isEol(o)){skipSeparationSpace(e,false,t)}else if(o<256&&b[o]){e.result+=w[o];e.position++}else if((s=escapedHexLen(o))>0){let t=s;let r=0;for(;t>0;t--){o=e.input.charCodeAt(++e.position);if((s=fromHexCode(o))>=0){r=(r<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(r);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(isEol(o)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;if(!isWhiteSpace(o)){n=e.position}}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){let r=true;let n;let s;let o;const i=e.tag;let a;const u=e.anchor;let l;let p;let d;let f;const h=Object.create(null);let g;let m;let y;let v=e.input.charCodeAt(e.position);if(v===91){l=93;f=false;a=[]}else if(v===123){l=125;f=true;a={}}else{return false}if(e.anchor!==null){storeAnchor(e,e.anchor,a)}v=e.input.charCodeAt(++e.position);while(v!==0){skipSeparationSpace(e,true,t);v=e.input.charCodeAt(e.position);if(v===l){e.position++;e.tag=i;e.anchor=u;e.kind=f?"mapping":"sequence";e.result=a;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(v===44){throwError(e,"expected the node content, but found ','")}m=g=y=null;p=d=false;if(v===63){const r=e.input.charCodeAt(e.position+1);if(isWsOrEol(r)){p=d=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;s=e.lineStart;o=e.position;composeNode(e,t,c,false,true);m=e.tag;g=e.result;skipSeparationSpace(e,true,t);v=e.input.charCodeAt(e.position);if((d||e.line===n)&&v===58){p=true;v=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,c,false,true);y=e.result}if(f){storeMappingPair(e,a,h,m,g,y,n,s,o)}else if(p){a.push(storeMappingPair(e,null,h,m,g,y,n,s,o))}else{a.push(g)}skipSeparationSpace(e,true,t);v=e.input.charCodeAt(e.position);if(v===44){r=true;v=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){let r;let s=d;let o=false;let i=false;let a=t;let c=0;let u=false;let l;let p=e.input.charCodeAt(e.position);if(p===124){r=false}else if(p===62){r=true}else{return false}e.kind="scalar";e.result="";while(p!==0){p=e.input.charCodeAt(++e.position);if(p===43||p===45){if(d===s){s=p===43?h:f}else{throwError(e,"repeat of a chomping mode identifier")}}else if((l=fromDecimalCode(p))>=0){if(l===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!i){a=t+l-1;i=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(isWhiteSpace(p)){do{p=e.input.charCodeAt(++e.position)}while(isWhiteSpace(p));if(p===35){do{p=e.input.charCodeAt(++e.position)}while(!isEol(p)&&p!==0)}}while(p!==0){readLineBreak(e);e.lineIndent=0;p=e.input.charCodeAt(e.position);while((!i||e.lineIndent<a)&&p===32){e.lineIndent++;p=e.input.charCodeAt(++e.position)}if(!i&&e.lineIndent>a){a=e.lineIndent}if(isEol(p)){c++;continue}if(!i&&a===0){throwError(e,"missing indentation for block scalar")}if(e.lineIndent<a){if(s===h){e.result+=n.repeat("\n",o?1+c:c)}else if(s===d){if(o){e.result+="\n"}}break}if(r){if(isWhiteSpace(p)){u=true;e.result+=n.repeat("\n",o?1+c:c)}else if(u){u=false;e.result+=n.repeat("\n",c+1)}else if(c===0){if(o){e.result+=" "}}else{e.result+=n.repeat("\n",c)}}else{e.result+=n.repeat("\n",o?1+c:c)}o=true;i=true;c=0;const t=e.position;while(!isEol(p)&&p!==0){p=e.input.charCodeAt(++e.position)}captureSegment(e,t,e.position,false)}return true}function readBlockSequence(e,t){const r=e.tag;const n=e.anchor;const s=[];let o=false;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){storeAnchor(e,e.anchor,s)}let i=e.input.charCodeAt(e.position);while(i!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(i!==45){break}const r=e.input.charCodeAt(e.position+1);if(!isWsOrEol(r)){break}o=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){s.push(null);i=e.input.charCodeAt(e.position);continue}}const n=e.line;composeNode(e,t,l,false,true);s.push(e.result);skipSeparationSpace(e,true,-1);i=e.input.charCodeAt(e.position);if((e.line===n||e.lineIndent>t)&&i!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(o){e.tag=r;e.anchor=n;e.kind="sequence";e.result=s;return true}return false}function readBlockMapping(e,t,r){let n;let s;let o;let i;const a=e.tag;const c=e.anchor;const l={};const d=Object.create(null);let f=null;let h=null;let g=null;let m=false;let y=false;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){storeAnchor(e,e.anchor,l)}let v=e.input.charCodeAt(e.position);while(v!==0){if(!m&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}const $=e.input.charCodeAt(e.position+1);const b=e.line;if((v===63||v===58)&&isWsOrEol($)){if(v===63){if(m){storeMappingPair(e,l,d,f,h,null,s,o,i);f=h=g=null}y=true;m=true;n=true}else if(m){m=false;n=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;v=$}else{s=e.line;o=e.lineStart;i=e.position;if(!composeNode(e,r,u,false,true)){break}if(e.line===b){v=e.input.charCodeAt(e.position);while(isWhiteSpace(v)){v=e.input.charCodeAt(++e.position)}if(v===58){v=e.input.charCodeAt(++e.position);if(!isWsOrEol(v)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(m){storeMappingPair(e,l,d,f,h,null,s,o,i);f=h=g=null}y=true;m=false;n=false;f=e.tag;h=e.result}else if(y){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=a;e.anchor=c;return true}}else if(y){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=a;e.anchor=c;return true}}if(e.line===b||e.lineIndent>t){if(m){s=e.line;o=e.lineStart;i=e.position}if(composeNode(e,t,p,true,n)){if(m){h=e.result}else{g=e.result}}if(!m){storeMappingPair(e,l,d,f,h,g,s,o,i);f=h=g=null}skipSeparationSpace(e,true,-1);v=e.input.charCodeAt(e.position)}if((e.line===b||e.lineIndent>t)&&v!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(m){storeMappingPair(e,l,d,f,h,null,s,o,i)}if(y){e.tag=a;e.anchor=c;e.kind="mapping";e.result=l}return y}function readTagProperty(e){let t=false;let r=false;let n;let s;let o=e.input.charCodeAt(e.position);if(o!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}o=e.input.charCodeAt(++e.position);if(o===60){t=true;o=e.input.charCodeAt(++e.position)}else if(o===33){r=true;n="!!";o=e.input.charCodeAt(++e.position)}else{n="!"}let i=e.position;if(t){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&o!==62);if(e.position<e.length){s=e.input.slice(i,e.position);o=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(o!==0&&!isWsOrEol(o)){if(o===33){if(!r){n=e.input.slice(i-1,e.position+1);if(!v.test(n)){throwError(e,"named tag handle cannot contain such characters")}r=true;i=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}o=e.input.charCodeAt(++e.position)}s=e.input.slice(i,e.position);if(y.test(s)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(s&&!$.test(s)){throwError(e,"tag name cannot contain such characters: "+s)}try{s=decodeURIComponent(s)}catch(t){throwError(e,"tag name is malformed: "+s)}if(t){e.tag=s}else if(a.call(e.tagMap,n)){e.tag=e.tagMap[n]+s}else if(n==="!"){e.tag="!"+s}else if(n==="!!"){e.tag="tag:yaml.org,2002:"+s}else{throwError(e,'undeclared tag handle "'+n+'"')}return true}function readAnchorProperty(e){let t=e.input.charCodeAt(e.position);if(t!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}t=e.input.charCodeAt(++e.position);const r=e.position;while(t!==0&&!isWsOrEol(t)&&!isFlowIndicator(t)){t=e.input.charCodeAt(++e.position)}if(e.position===r){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(r,e.position);return true}function readAlias(e){let t=e.input.charCodeAt(e.position);if(t!==42)return false;t=e.input.charCodeAt(++e.position);const r=e.position;while(t!==0&&!isWsOrEol(t)&&!isFlowIndicator(t)){t=e.input.charCodeAt(++e.position)}if(e.position===r){throwError(e,"name of an alias node must contain at least one character")}const n=e.input.slice(r,e.position);if(!a.call(e.anchorMap,n)){throwError(e,'unidentified alias "'+n+'"')}e.result=e.anchorMap[n];skipSeparationSpace(e,true,-1);return true}function tryReadBlockMappingFromProperty(e,t,r,n){const s=snapshotState(e);beginAnchorTransaction(e);restoreState(e,t);e.tag=null;e.anchor=null;e.kind=null;e.result=null;if(readBlockMapping(e,r,n)&&e.kind==="mapping"){commitAnchorTransaction(e);return true}rollbackAnchorTransaction(e);restoreState(e,s);return false}function composeNode(e,t,r,n,s){let o;let i;let d=1;let f=false;let h=false;let g=null;let m;let y;let v;if(e.depth>=e.maxDepth){throwError(e,"nesting exceeded maxDepth ("+e.maxDepth+")")}e.depth+=1;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;const $=o=i=p===r||l===r;if(n){if(skipSeparationSpace(e,true,-1)){f=true;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}}if(d===1){while(true){const r=e.input.charCodeAt(e.position);const n=snapshotState(e);if(f&&(r===33&&e.tag!==null||r===38&&e.anchor!==null)){break}if(!readTagProperty(e)&&!readAnchorProperty(e)){break}if(g===null){g=n}if(skipSeparationSpace(e,true,-1)){f=true;i=$;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}else{i=false}}}if(i){i=f||s}if(d===1||p===r){if(c===r||u===r){y=t}else{y=t+1}v=e.position-e.lineStart;if(d===1){if(i&&(readBlockSequence(e,v)||readBlockMapping(e,v,y))||readFlowCollection(e,y)){h=true}else{const t=e.input.charCodeAt(e.position);if(g!==null&&$&&!i&&t!==124&&t!==62&&tryReadBlockMappingFromProperty(e,g,g.position-g.lineStart,y)){h=true}else if(o&&readBlockScalar(e,y)||readSingleQuotedScalar(e,y)||readDoubleQuotedScalar(e,y)){h=true}else if(readAlias(e)){h=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,y,c===r)){h=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){storeAnchor(e,e.anchor,e.result)}}}else if(d===0){h=i&&readBlockSequence(e,v)}}if(e.tag===null){if(e.anchor!==null){storeAnchor(e,e.anchor,e.result)}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(let t=0,r=e.implicitTypes.length;t<r;t+=1){m=e.implicitTypes[t];if(m.resolve(e.result)){e.result=m.construct(e.result);e.tag=m.tag;if(e.anchor!==null){storeAnchor(e,e.anchor,e.result)}break}}}else if(e.tag!=="!"){if(a.call(e.typeMap[e.kind||"fallback"],e.tag)){m=e.typeMap[e.kind||"fallback"][e.tag]}else{m=null;const t=e.typeMap.multi[e.kind||"fallback"];for(let r=0,n=t.length;r<n;r+=1){if(e.tag.slice(0,t[r].tag.length)===t[r].tag){m=t[r];break}}}if(!m){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&m.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"')}if(!m.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=m.construct(e.result,e.tag);if(e.anchor!==null){storeAnchor(e,e.anchor,e.result)}}}if(e.listener!==null){e.listener("close",e)}e.depth-=1;return e.tag!==null||e.anchor!==null||h}function readDocument(e){const t=e.position;let r=false;let n;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((n=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);n=e.input.charCodeAt(e.position);if(e.lineIndent>0||n!==37){break}r=true;n=e.input.charCodeAt(++e.position);let t=e.position;while(n!==0&&!isWsOrEol(n)){n=e.input.charCodeAt(++e.position)}const s=e.input.slice(t,e.position);const o=[];if(s.length<1){throwError(e,"directive name must not be less than one character in length")}while(n!==0){while(isWhiteSpace(n)){n=e.input.charCodeAt(++e.position)}if(n===35){do{n=e.input.charCodeAt(++e.position)}while(n!==0&&!isEol(n));break}if(isEol(n))break;t=e.position;while(n!==0&&!isWsOrEol(n)){n=e.input.charCodeAt(++e.position)}o.push(e.input.slice(t,e.position))}if(n!==0)readLineBreak(e);if(a.call(_,s)){_[s](e,s,o)}else{throwWarning(e,'unknown document directive "'+s+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(r){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&m.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}const r=new State(e,t);const n=e.indexOf("\0");if(n!==-1){r.position=n;throwError(r,"null byte is not allowed in input")}r.input+="\0";while(r.input.charCodeAt(r.position)===32){r.lineIndent+=1;r.position+=1}while(r.position<r.length-1){readDocument(r)}return r.documents}function loadAll(e,t,r){if(t!==null&&typeof t==="object"&&typeof r==="undefined"){r=t;t=null}const n=loadDocuments(e,r);if(typeof t!=="function"){return n}for(let e=0,r=n.length;e<r;e+=1){t(n[e])}}function load(e,t){const r=loadDocuments(e,t);if(r.length===0){return undefined}else if(r.length===1){return r[0]}throw new s("expected a single document in the stream, but found more")}e.exports.loadAll=loadAll;e.exports.load=load},5759:(e,t,r)=>{"use strict";const n=r(4615);const s=r(6404);function compileList(e,t){const r=[];e[t].forEach((function(e){let t=r.length;r.forEach((function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=n}}));r[t]=e}));return r}function compileMap(){const e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(let e=0,t=arguments.length;e<t;e+=1){arguments[e].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){let t=[];let r=[];if(e instanceof s){r.push(e)}else if(Array.isArray(e)){r=r.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)r=r.concat(e.explicit)}else{throw new n("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof s)){throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new n("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));r.forEach((function(e){if(!(e instanceof s)){throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));const o=Object.create(Schema.prototype);o.implicit=(this.implicit||[]).concat(t);o.explicit=(this.explicit||[]).concat(r);o.compiledImplicit=compileList(o,"implicit");o.compiledExplicit=compileList(o,"explicit");o.compiledTypeMap=compileMap(o.compiledImplicit,o.compiledExplicit);return o};e.exports=Schema},721:(e,t,r)=>{"use strict";e.exports=r(176)},809:(e,t,r)=>{"use strict";e.exports=r(721).extend({implicit:[r(7351),r(9875)],explicit:[r(134),r(5738),r(406),r(3103)]})},9079:(e,t,r)=>{"use strict";const n=r(5759);e.exports=new n({explicit:[r(4084),r(324),r(489)]})},176:(e,t,r)=>{"use strict";e.exports=r(9079).extend({implicit:[r(2022),r(5503),r(3546),r(3869)]})},1739:(e,t,r)=>{"use strict";const n=r(7289);function getLine(e,t,r,n,s){let o="";let i="";const a=Math.floor(s/2)-1;if(n-t>a){o=" ... ";t=n-a+o.length}if(r-n>a){i=" ...";r=n+a-i.length}return{str:o+e.slice(t,r).replace(/\t/g,"â")+i,pos:n-t+o.length}}function padStart(e,t){return n.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;const r=/\r?\n|\r|\0/g;const s=[0];const o=[];let i;let a=-1;while(i=r.exec(e.buffer)){o.push(i.index);s.push(i.index+i[0].length);if(e.position<=i.index&&a<0){a=s.length-2}}if(a<0)a=s.length-1;let c="";const u=Math.min(e.line+t.linesAfter,o.length).toString().length;const l=t.maxLength-(t.indent+u+3);for(let r=1;r<=t.linesBefore;r++){if(a-r<0)break;const i=getLine(e.buffer,s[a-r],o[a-r],e.position-(s[a]-s[a-r]),l);c=n.repeat(" ",t.indent)+padStart((e.line-r+1).toString(),u)+" | "+i.str+"\n"+c}const p=getLine(e.buffer,s[a],o[a],e.position,l);c+=n.repeat(" ",t.indent)+padStart((e.line+1).toString(),u)+" | "+p.str+"\n";c+=n.repeat("-",t.indent+u+3+p.pos)+"^"+"\n";for(let r=1;r<=t.linesAfter;r++){if(a+r>=o.length)break;const i=getLine(e.buffer,s[a+r],o[a+r],e.position-(s[a]-s[a+r]),l);c+=n.repeat(" ",t.indent)+padStart((e.line+r+1).toString(),u)+" | "+i.str+"\n"}return c.replace(/\n$/,"")}e.exports=makeSnippet},6404:(e,t,r)=>{"use strict";const n=r(4615);const s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];const o=["scalar","sequence","mapping"];function compileStyleAliases(e){const t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(s.indexOf(t)===-1){throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(o.indexOf(this.kind)===-1){throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},134:(e,t,r)=>{"use strict";const n=r(6404);const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;let t=0;const r=e.length;const n=s;for(let s=0;s<r;s++){const r=n.indexOf(e.charAt(s));if(r>64)continue;if(r<0)return false;t+=6}return t%8===0}function constructYamlBinary(e){const t=e.replace(/[\r\n=]/g,"");const r=t.length;const n=s;let o=0;const i=[];for(let e=0;e<r;e++){if(e%4===0&&e){i.push(o>>16&255);i.push(o>>8&255);i.push(o&255)}o=o<<6|n.indexOf(t.charAt(e))}const a=r%4*6;if(a===0){i.push(o>>16&255);i.push(o>>8&255);i.push(o&255)}else if(a===18){i.push(o>>10&255);i.push(o>>2&255)}else if(a===12){i.push(o>>4&255)}return new Uint8Array(i)}function representYamlBinary(e){let t="";let r=0;const n=e.length;const o=s;for(let s=0;s<n;s++){if(s%3===0&&s){t+=o[r>>18&63];t+=o[r>>12&63];t+=o[r>>6&63];t+=o[r&63]}r=(r<<8)+e[s]}const i=n%3;if(i===0){t+=o[r>>18&63];t+=o[r>>12&63];t+=o[r>>6&63];t+=o[r&63]}else if(i===2){t+=o[r>>10&63];t+=o[r>>4&63];t+=o[r<<2&63];t+=o[64]}else if(i===1){t+=o[r>>2&63];t+=o[r<<4&63];t+=o[64];t+=o[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},5503:(e,t,r)=>{"use strict";const n=r(6404);function resolveYamlBoolean(e){if(e===null)return false;const t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},3869:(e,t,r)=>{"use strict";const n=r(7289);const s=r(6404);const o=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");const i=new RegExp("^(?:"+"[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!o.test(e)){return false}if(isFinite(parseFloat(e,10))){return true}return i.test(e)}function constructYamlFloat(e){let t=e.toLowerCase();const r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}const a=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}const r=e.toString(10);return a.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.isNegativeZero(e))}e.exports=new s("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},3546:(e,t,r)=>{"use strict";const n=r(7289);const s=r(6404);function isHexCode(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function isOctCode(e){return e>=48&&e<=55}function isDecCode(e){return e>=48&&e<=57}function resolveYamlInteger(e){if(e===null)return false;const t=e.length;let r=0;let n=false;if(!t)return false;let s=e[r];if(s==="-"||s==="+"){s=e[++r]}if(s==="0"){if(r+1===t)return true;s=e[++r];if(s==="b"){r++;for(;r<t;r++){s=e[r];if(s!=="0"&&s!=="1")return false;n=true}return n&&isFinite(parseYamlInteger(e))}if(s==="x"){r++;for(;r<t;r++){if(!isHexCode(e.charCodeAt(r)))return false;n=true}return n&&isFinite(parseYamlInteger(e))}if(s==="o"){r++;for(;r<t;r++){if(!isOctCode(e.charCodeAt(r)))return false;n=true}return n&&isFinite(parseYamlInteger(e))}}for(;r<t;r++){if(!isDecCode(e.charCodeAt(r))){return false}n=true}if(!n)return false;return isFinite(parseYamlInteger(e))}function parseYamlInteger(e){let t=e;let r=1;let n=t[0];if(n==="-"||n==="+"){if(n==="-")r=-1;t=t.slice(1);n=t[0]}if(t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function constructYamlInteger(e){return parseYamlInteger(e)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!n.isNegativeZero(e))}e.exports=new s("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},489:(e,t,r)=>{"use strict";const n=r(6404);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},9875:(e,t,r)=>{"use strict";const n=r(6404);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},2022:(e,t,r)=>{"use strict";const n=r(6404);function resolveYamlNull(e){if(e===null)return true;const t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},5738:(e,t,r)=>{"use strict";const n=r(6404);const s=Object.prototype.hasOwnProperty;const o=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;const t=[];const r=e;for(let e=0,n=r.length;e<n;e+=1){const n=r[e];let i=false;if(o.call(n)!=="[object Object]")return false;let a;for(a in n){if(s.call(n,a)){if(!i)i=true;else return false}}if(!i)return false;if(t.indexOf(a)===-1)t.push(a);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},406:(e,t,r)=>{"use strict";const n=r(6404);const s=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;const t=e;const r=new Array(t.length);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];if(s.call(n)!=="[object Object]")return false;const o=Object.keys(n);if(o.length!==1)return false;r[e]=[o[0],n[o[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];const t=e;const r=new Array(t.length);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];const s=Object.keys(n);r[e]=[s[0],n[s[0]]]}return r}e.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},324:(e,t,r)=>{"use strict";const n=r(6404);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},3103:(e,t,r)=>{"use strict";const n=r(6404);const s=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;const t=e;for(const e in t){if(s.call(t,e)){if(t[e]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},4084:(e,t,r)=>{"use strict";const n=r(6404);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},7351:(e,t,r)=>{"use strict";const n=r(6404);const s=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");const o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(s.exec(e)!==null)return true;if(o.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){let t=0;let r=null;let n=s.exec(e);if(n===null)n=o.exec(e);if(n===null)throw new Error("Date resolve error");const i=+n[1];const a=+n[2]-1;const c=+n[3];if(!n[4]){return new Date(Date.UTC(i,a,c))}const u=+n[4];const l=+n[5];const p=+n[6];if(n[7]){t=n[7].slice(0,3);while(t.length<3){t+="0"}t=+t}if(n[9]){const e=+n[10];const t=+(n[11]||0);r=(e*60+t)*6e4;if(n[9]==="-")r=-r}const d=new Date(Date.UTC(i,a,c,u,l,p,t));if(r)d.setTime(d.getTime()-r);return d}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},9939:(e,t,r)=>{"use strict";e.exports=LRUCache;var n=r(4570);var s=r(9023);var o=r(1080);var i=typeof Symbol==="function"&&process.env._nodeLRUCacheForceNoSymbol!=="1";var a;if(i){a=function(e){return Symbol(e)}}else{a=function(e){return"_"+e}}var c=a("max");var u=a("length");var l=a("lengthCalculator");var p=a("allowStale");var d=a("maxAge");var f=a("dispose");var h=a("noDisposeOnSet");var g=a("lruList");var m=a("cache");function naiveLength(){return 1}function LRUCache(e){if(!(this instanceof LRUCache)){return new LRUCache(e)}if(typeof e==="number"){e={max:e}}if(!e){e={}}var t=this[c]=e.max;if(!t||!(typeof t==="number")||t<=0){this[c]=Infinity}var r=e.length||naiveLength;if(typeof r!=="function"){r=naiveLength}this[l]=r;this[p]=e.stale||false;this[d]=e.maxAge||0;this[f]=e.dispose;this[h]=e.noDisposeOnSet||false;this.reset()}Object.defineProperty(LRUCache.prototype,"max",{set:function(e){if(!e||!(typeof e==="number")||e<=0){e=Infinity}this[c]=e;trim(this)},get:function(){return this[c]},enumerable:true});Object.defineProperty(LRUCache.prototype,"allowStale",{set:function(e){this[p]=!!e},get:function(){return this[p]},enumerable:true});Object.defineProperty(LRUCache.prototype,"maxAge",{set:function(e){if(!e||!(typeof e==="number")||e<0){e=0}this[d]=e;trim(this)},get:function(){return this[d]},enumerable:true});Object.defineProperty(LRUCache.prototype,"lengthCalculator",{set:function(e){if(typeof e!=="function"){e=naiveLength}if(e!==this[l]){this[l]=e;this[u]=0;this[g].forEach((function(e){e.length=this[l](e.value,e.key);this[u]+=e.length}),this)}trim(this)},get:function(){return this[l]},enumerable:true});Object.defineProperty(LRUCache.prototype,"length",{get:function(){return this[u]},enumerable:true});Object.defineProperty(LRUCache.prototype,"itemCount",{get:function(){return this[g].length},enumerable:true});LRUCache.prototype.rforEach=function(e,t){t=t||this;for(var r=this[g].tail;r!==null;){var n=r.prev;forEachStep(this,e,r,t);r=n}};function forEachStep(e,t,r,n){var s=r.value;if(isStale(e,s)){del(e,r);if(!e[p]){s=undefined}}if(s){t.call(n,s.value,s.key,e)}}LRUCache.prototype.forEach=function(e,t){t=t||this;for(var r=this[g].head;r!==null;){var n=r.next;forEachStep(this,e,r,t);r=n}};LRUCache.prototype.keys=function(){return this[g].toArray().map((function(e){return e.key}),this)};LRUCache.prototype.values=function(){return this[g].toArray().map((function(e){return e.value}),this)};LRUCache.prototype.reset=function(){if(this[f]&&this[g]&&this[g].length){this[g].forEach((function(e){this[f](e.key,e.value)}),this)}this[m]=new n;this[g]=new o;this[u]=0};LRUCache.prototype.dump=function(){return this[g].map((function(e){if(!isStale(this,e)){return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}}}),this).toArray().filter((function(e){return e}))};LRUCache.prototype.dumpLru=function(){return this[g]};LRUCache.prototype.inspect=function(e,t){var r="LRUCache {";var n=false;var o=this[p];if(o){r+="\n allowStale: true";n=true}var i=this[c];if(i&&i!==Infinity){if(n){r+=","}r+="\n max: "+s.inspect(i,t);n=true}var a=this[d];if(a){if(n){r+=","}r+="\n maxAge: "+s.inspect(a,t);n=true}var f=this[l];if(f&&f!==naiveLength){if(n){r+=","}r+="\n length: "+s.inspect(this[u],t);n=true}var h=false;this[g].forEach((function(e){if(h){r+=",\n "}else{if(n){r+=",\n"}h=true;r+="\n "}var o=s.inspect(e.key).split("\n").join("\n ");var i={value:e.value};if(e.maxAge!==a){i.maxAge=e.maxAge}if(f!==naiveLength){i.length=e.length}if(isStale(this,e)){i.stale=true}i=s.inspect(i,t).split("\n").join("\n ");r+=o+" => "+i}));if(h||n){r+="\n"}r+="}";return r};LRUCache.prototype.set=function(e,t,r){r=r||this[d];var n=r?Date.now():0;var s=this[l](t,e);if(this[m].has(e)){if(s>this[c]){del(this,this[m].get(e));return false}var o=this[m].get(e);var i=o.value;if(this[f]){if(!this[h]){this[f](e,i.value)}}i.now=n;i.maxAge=r;i.value=t;this[u]+=s-i.length;i.length=s;this.get(e);trim(this);return true}var a=new Entry(e,t,s,n,r);if(a.length>this[c]){if(this[f]){this[f](e,t)}return false}this[u]+=a.length;this[g].unshift(a);this[m].set(e,this[g].head);trim(this);return true};LRUCache.prototype.has=function(e){if(!this[m].has(e))return false;var t=this[m].get(e).value;if(isStale(this,t)){return false}return true};LRUCache.prototype.get=function(e){return get(this,e,true)};LRUCache.prototype.peek=function(e){return get(this,e,false)};LRUCache.prototype.pop=function(){var e=this[g].tail;if(!e)return null;del(this,e);return e.value};LRUCache.prototype.del=function(e){del(this,this[m].get(e))};LRUCache.prototype.load=function(e){this.reset();var t=Date.now();for(var r=e.length-1;r>=0;r--){var n=e[r];var s=n.e||0;if(s===0){this.set(n.k,n.v)}else{var o=s-t;if(o>0){this.set(n.k,n.v,o)}}}};LRUCache.prototype.prune=function(){var e=this;this[m].forEach((function(t,r){get(e,r,false)}))};function get(e,t,r){var n=e[m].get(t);if(n){var s=n.value;if(isStale(e,s)){del(e,n);if(!e[p])s=undefined}else{if(r){e[g].unshiftNode(n)}}if(s)s=s.value}return s}function isStale(e,t){if(!t||!t.maxAge&&!e[d]){return false}var r=false;var n=Date.now()-t.now;if(t.maxAge){r=n>t.maxAge}else{r=e[d]&&n>e[d]}return r}function trim(e){if(e[u]>e[c]){for(var t=e[g].tail;e[u]>e[c]&&t!==null;){var r=t.prev;del(e,t);t=r}}}function del(e,t){if(t){var r=t.value;if(e[f]){e[f](r.key,r.value)}e[u]-=r.length;e[m].delete(r.key);e[g].removeNode(t)}}function Entry(e,t,r,n,s){this.key=e;this.value=t;this.length=r;this.now=n;this.maxAge=s||0}},6674:(e,t,r)=>{"use strict";const n=r(9023);const s=r(8671);const o=r(5675);const i=r(7910);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let n=new Set;let s=new Set;let i=new Set;let a=0;let onResult=e=>{i.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let i=0;i<t.length;i++){let c=o(String(t[i]),{...r,onResult:onResult},true);let u=c.state.negated||c.state.negatedExtglob;if(u)a++;for(let t of e){let e=c(t,true);let r=u?!e.isMatch:e.isMatch;if(!r)continue;if(u){n.add(e.output)}else{n.delete(e.output);s.add(e.output)}}}let c=a===t.length?[...i]:[...s];let u=c.filter((e=>!n.has(e)));if(r&&u.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return u};micromatch.match=micromatch;micromatch.matcher=(e,t)=>o(e,t);micromatch.isMatch=(e,t,r)=>o(t,r)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set;let s=[];let onResult=e=>{if(r.onResult)r.onResult(e);s.push(e.output)};let o=new Set(micromatch(e,t,{...r,onResult:onResult}));for(let e of s){if(!o.has(e)){n.add(e)}}return[...n]};micromatch.contains=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,r)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...r,contains:true})};micromatch.matchKeys=(e,t,r)=>{if(!i.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let n=micromatch(Object.keys(e),t,r);let s={};for(let t of n)s[t]=e[t];return s};micromatch.some=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(n.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(!n.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}return[].concat(t).every((t=>o(t,r)(e)))};micromatch.capture=(e,t,r)=>{let n=i.isWindows(r);let s=o.makeRe(String(e),{...r,capture:true});let a=s.exec(n?i.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>o.makeRe(...e);micromatch.scan=(...e)=>o.scan(...e);micromatch.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[])){for(let e of s(String(n),t)){r.push(o.parse(e,t))}}return r};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return s(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},7914:e=>{
|
|
14
14
|
/*!
|
|
15
15
|
* node-version
|
|
16
16
|
* Copyright(c) 2011-2018 Rodolphe Stoclin
|
|
17
17
|
* MIT Licensed
|
|
18
18
|
*/
|
|
19
|
-
e.exports=function(){var e=process.versions.node;var t=e.split(".");return{original:"v"+e,short:t[0]+"."+t[1],long:e,major:t[0],minor:t[1],build:t[2]}}()},666:(e,t,r)=>{var n=typeof Map==="function"&&Map.prototype;var s=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var o=n&&s&&typeof s.get==="function"?s.get:null;var i=n&&Map.prototype.forEach;var a=typeof Set==="function"&&Set.prototype;var c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var u=a&&c&&typeof c.get==="function"?c.get:null;var l=a&&Set.prototype.forEach;var p=typeof WeakMap==="function"&&WeakMap.prototype;var d=p?WeakMap.prototype.has:null;var f=typeof WeakSet==="function"&&WeakSet.prototype;var h=f?WeakSet.prototype.has:null;var g=typeof WeakRef==="function"&&WeakRef.prototype;var m=g?WeakRef.prototype.deref:null;var y=Boolean.prototype.valueOf;var v=Object.prototype.toString;var $=Function.prototype.toString;var b=String.prototype.match;var w=String.prototype.slice;var _=String.prototype.replace;var S=String.prototype.toUpperCase;var A=String.prototype.toLowerCase;var j=RegExp.prototype.test;var x=Array.prototype.concat;var R=Array.prototype.join;var k=Array.prototype.slice;var I=Math.floor;var P=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var C=Object.getOwnPropertySymbols;var T=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var O=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var M=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===O?"object":"symbol")?Symbol.toStringTag:null;var N=Object.prototype.propertyIsEnumerable;var L=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===Infinity||e===-Infinity||e!==e||e&&e>-1e3&&e<1e3||j.call(/e/,t)){return t}var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==="number"){var n=e<0?-I(-e):I(e);if(n!==e){var s=String(n);var o=w.call(t,s.length+1);return _.call(s,r,"$&_")+"."+_.call(_.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,r,"$&_")}var B=r(4870);var q=B.custom;var G=isSymbol(q)?q:null;e.exports=function inspect_(e,t,r,n){var s=t||{};if(has(s,"quoteStyle")&&(s.quoteStyle!=="single"&&s.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(has(s,"maxStringLength")&&(typeof s.maxStringLength==="number"?s.maxStringLength<0&&s.maxStringLength!==Infinity:s.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var a=has(s,"customInspect")?s.customInspect:true;if(typeof a!=="boolean"&&a!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(has(s,"indent")&&s.indent!==null&&s.indent!=="\t"&&!(parseInt(s.indent,10)===s.indent&&s.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(has(s,"numericSeparator")&&typeof s.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var c=s.numericSeparator;if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(typeof e==="boolean"){return e?"true":"false"}if(typeof e==="string"){return inspectString(e,s)}if(typeof e==="number"){if(e===0){return Infinity/e>0?"0":"-0"}var p=String(e);return c?addNumericSeparator(e,p):p}if(typeof e==="bigint"){var d=String(e)+"n";return c?addNumericSeparator(e,d):d}var f=typeof s.depth==="undefined"?5:s.depth;if(typeof r==="undefined"){r=0}if(r>=f&&f>0&&typeof e==="object"){return isArray(e)?"[Array]":"[Object]"}var h=getIndent(s,r);if(typeof n==="undefined"){n=[]}else if(indexOf(n,e)>=0){return"[Circular]"}function inspect(e,t,o){if(t){n=k.call(n);n.push(t)}if(o){var i={depth:s.depth};if(has(s,"quoteStyle")){i.quoteStyle=s.quoteStyle}return inspect_(e,i,r+1,n)}return inspect_(e,s,r+1,n)}if(typeof e==="function"&&!isRegExp(e)){var g=nameOf(e);var m=arrObjKeys(e,inspect);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(m.length>0?" { "+R.call(m,", ")+" }":"")}if(isSymbol(e)){var v=O?_.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(e);return typeof e==="object"&&!O?markBoxed(v):v}if(isElement(e)){var $="<"+A.call(String(e.nodeName));var b=e.attributes||[];for(var S=0;S<b.length;S++){$+=" "+b[S].name+"="+wrapQuotes(quote(b[S].value),"double",s)}$+=">";if(e.childNodes&&e.childNodes.length){$+="..."}$+="</"+A.call(String(e.nodeName))+">";return $}if(isArray(e)){if(e.length===0){return"[]"}var j=arrObjKeys(e,inspect);if(h&&!singleLineValues(j)){return"["+indentedJoin(j,h)+"]"}return"[ "+R.call(j,", ")+" ]"}if(isError(e)){var I=arrObjKeys(e,inspect);if(!("cause"in Error.prototype)&&"cause"in e&&!N.call(e,"cause")){return"{ ["+String(e)+"] "+R.call(x.call("[cause]: "+inspect(e.cause),I),", ")+" }"}if(I.length===0){return"["+String(e)+"]"}return"{ ["+String(e)+"] "+R.call(I,", ")+" }"}if(typeof e==="object"&&a){if(G&&typeof e[G]==="function"&&B){return B(e,{depth:f-r})}else if(a!=="symbol"&&typeof e.inspect==="function"){return e.inspect()}}if(isMap(e)){var C=[];if(i){i.call(e,(function(t,r){C.push(inspect(r,e,true)+" => "+inspect(t,e))}))}return collectionOf("Map",o.call(e),C,h)}if(isSet(e)){var q=[];if(l){l.call(e,(function(t){q.push(inspect(t,e))}))}return collectionOf("Set",u.call(e),q,h)}if(isWeakMap(e)){return weakCollectionOf("WeakMap")}if(isWeakSet(e)){return weakCollectionOf("WeakSet")}if(isWeakRef(e)){return weakCollectionOf("WeakRef")}if(isNumber(e)){return markBoxed(inspect(Number(e)))}if(isBigInt(e)){return markBoxed(inspect(P.call(e)))}if(isBoolean(e)){return markBoxed(y.call(e))}if(isString(e)){return markBoxed(inspect(String(e)))}if(!isDate(e)&&!isRegExp(e)){var U=arrObjKeys(e,inspect);var D=L?L(e)===Object.prototype:e instanceof Object||e.constructor===Object;var H=e instanceof Object?"":"null prototype";var K=!D&&M&&Object(e)===e&&M in e?w.call(toStr(e),8,-1):H?"Object":"";var Y=D||typeof e.constructor!=="function"?"":e.constructor.name?e.constructor.name+" ":"";var W=Y+(K||H?"["+R.call(x.call([],K||[],H||[]),": ")+"] ":"");if(U.length===0){return W+"{}"}if(h){return W+"{"+indentedJoin(U,h)+"}"}return W+"{ "+R.call(U,", ")+" }"}return String(e)};function wrapQuotes(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function quote(e){return _.call(String(e),/"/g,""")}function isArray(e){return toStr(e)==="[object Array]"&&(!M||!(typeof e==="object"&&M in e))}function isDate(e){return toStr(e)==="[object Date]"&&(!M||!(typeof e==="object"&&M in e))}function isRegExp(e){return toStr(e)==="[object RegExp]"&&(!M||!(typeof e==="object"&&M in e))}function isError(e){return toStr(e)==="[object Error]"&&(!M||!(typeof e==="object"&&M in e))}function isString(e){return toStr(e)==="[object String]"&&(!M||!(typeof e==="object"&&M in e))}function isNumber(e){return toStr(e)==="[object Number]"&&(!M||!(typeof e==="object"&&M in e))}function isBoolean(e){return toStr(e)==="[object Boolean]"&&(!M||!(typeof e==="object"&&M in e))}function isSymbol(e){if(O){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!T){return false}try{T.call(e);return true}catch(e){}return false}function isBigInt(e){if(!e||typeof e!=="object"||!P){return false}try{P.call(e);return true}catch(e){}return false}var U=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,t){return U.call(e,t)}function toStr(e){return v.call(e)}function nameOf(e){if(e.name){return e.name}var t=b.call($.call(e),/^function\s*([\w$]+)/);if(t){return t[1]}return null}function indexOf(e,t){if(e.indexOf){return e.indexOf(t)}for(var r=0,n=e.length;r<n;r++){if(e[r]===t){return r}}return-1}function isMap(e){if(!o||!e||typeof e!=="object"){return false}try{o.call(e);try{u.call(e)}catch(e){return true}return e instanceof Map}catch(e){}return false}function isWeakMap(e){if(!d||!e||typeof e!=="object"){return false}try{d.call(e,d);try{h.call(e,h)}catch(e){return true}return e instanceof WeakMap}catch(e){}return false}function isWeakRef(e){if(!m||!e||typeof e!=="object"){return false}try{m.call(e);return true}catch(e){}return false}function isSet(e){if(!u||!e||typeof e!=="object"){return false}try{u.call(e);try{o.call(e)}catch(e){return true}return e instanceof Set}catch(e){}return false}function isWeakSet(e){if(!h||!e||typeof e!=="object"){return false}try{h.call(e,h);try{d.call(e,d)}catch(e){return true}return e instanceof WeakSet}catch(e){}return false}function isElement(e){if(!e||typeof e!=="object"){return false}if(typeof HTMLElement!=="undefined"&&e instanceof HTMLElement){return true}return typeof e.nodeName==="string"&&typeof e.getAttribute==="function"}function inspectString(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength;var n="... "+r+" more character"+(r>1?"s":"");return inspectString(w.call(e,0,t.maxStringLength),t)+n}var s=_.call(_.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(s,"single",t)}function lowbyte(e){var t=e.charCodeAt(0);var r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];if(r){return"\\"+r}return"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,r,n){var s=n?indentedJoin(r,n):R.call(r,", ");return e+" ("+t+") {"+s+"}"}function singleLineValues(e){for(var t=0;t<e.length;t++){if(indexOf(e[t],"\n")>=0){return false}}return true}function getIndent(e,t){var r;if(e.indent==="\t"){r="\t"}else if(typeof e.indent==="number"&&e.indent>0){r=R.call(Array(e.indent+1)," ")}else{return null}return{base:r,prev:R.call(Array(t+1),r)}}function indentedJoin(e,t){if(e.length===0){return""}var r="\n"+t.prev+t.base;return r+R.call(e,","+r)+"\n"+t.prev}function arrObjKeys(e,t){var r=isArray(e);var n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++){n[s]=has(e,s)?t(e[s],e):""}}var o=typeof C==="function"?C(e):[];var i;if(O){i={};for(var a=0;a<o.length;a++){i["$"+o[a]]=o[a]}}for(var c in e){if(!has(e,c)){continue}if(r&&String(Number(c))===c&&c<e.length){continue}if(O&&i["$"+c]instanceof Symbol){continue}else if(j.call(/[^\w$]/,c)){n.push(t(c,e)+": "+t(e[c],e))}else{n.push(c+": "+t(e[c],e))}}if(typeof C==="function"){for(var u=0;u<o.length;u++){if(N.call(e,o[u])){n.push("["+t(o[u])+"]: "+t(e[o[u]],e))}}}return n}},4870:(e,t,r)=>{e.exports=r(9023).inspect},5675:(e,t,r)=>{"use strict";e.exports=r(3193)},7054:(e,t,r)=>{"use strict";const n=r(6928);const s="\\\\/";const o=`[^${s}]`;const i="\\.";const a="\\+";const c="\\?";const u="\\/";const l="(?=.)";const p="[^/]";const d=`(?:${u}|$)`;const f=`(?:^|${u})`;const h=`${i}{1,2}${d}`;const g=`(?!${i})`;const m=`(?!${f}${h})`;const y=`(?!${i}{0,1}${d})`;const v=`(?!${h})`;const $=`[^.${u}]`;const b=`${p}*?`;const w={DOT_LITERAL:i,PLUS_LITERAL:a,QMARK_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:l,QMARK:p,END_ANCHOR:d,DOTS_SLASH:h,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:v,QMARK_NO_DOT:$,STAR:b,START_ANCHOR:f};const _={...w,SLASH_LITERAL:`[${s}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${i}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${i})`,NO_DOTS:`(?!(?:^|[${s}])${i}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${i}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${i}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`};const S={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:S,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?_:w}}},4356:(e,t,r)=>{"use strict";const n=r(7054);const s=r(7910);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=n;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>s.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=u[e]||e;const r={...t};const l=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;let p=e.length;if(p>l){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${l}`)}const d={type:"bos",value:"",output:r.prepend||""};const f=[d];const h=r.capture?"":"?:";const g=s.isWindows(t);const m=n.globChars(g);const y=n.extglobChars(m);const{DOT_LITERAL:v,PLUS_LITERAL:$,SLASH_LITERAL:b,ONE_CHAR:w,DOTS_SLASH:_,NO_DOT:S,NO_DOT_SLASH:A,NO_DOTS_SLASH:j,QMARK:x,QMARK_NO_DOT:R,STAR:k,START_ANCHOR:I}=m;const globstar=e=>`(${h}(?:(?!${I}${e.dot?_:v}).)*?)`;const P=r.dot?"":S;const C=r.dot?x:R;let T=r.bash===true?globstar(r):k;if(r.capture){T=`(${T})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const O={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:f};e=s.removePrefix(e,O);p=e.length;const M=[];const N=[];const L=[];let B=d;let q;const eos=()=>O.index===p-1;const G=O.peek=(t=1)=>e[O.index+t];const U=O.advance=()=>e[++O.index]||"";const remaining=()=>e.slice(O.index+1);const consume=(e="",t=0)=>{O.consumed+=e;O.index+=t};const append=e=>{O.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(G()==="!"&&(G(2)!=="("||G(3)==="?")){U();O.start++;e++}if(e%2===0){return false}O.negated=true;O.start++;return true};const increment=e=>{O[e]++;L.push(e)};const decrement=e=>{O[e]--;L.pop()};const push=e=>{if(B.type==="globstar"){const t=O.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||M.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){O.output=O.output.slice(0,-B.output.length);B.type="star";B.value="*";B.output=T;O.output+=B.output}}if(M.length&&e.type!=="paren"){M[M.length-1].inner+=e.value}if(e.value||e.output)append(e);if(B&&B.type==="text"&&e.type==="text"){B.value+=e.value;B.output=(B.output||"")+e.value;return}e.prev=B;f.push(e);B=e};const extglobOpen=(e,t)=>{const n={...y[t],conditions:1,inner:""};n.prev=B;n.parens=O.parens;n.output=O.output;const s=(r.capture?"(":"")+n.open;increment("parens");push({type:e,value:t,output:O.output?"":w});push({type:"paren",extglob:true,value:U(),output:s});M.push(n)};const extglobClose=e=>{let n=e.close+(r.capture?")":"");let s;if(e.type==="negate"){let o=T;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(r)}if(o!==T||eos()||/^\)+$/.test(remaining())){n=e.close=`)$))${o}`}if(e.inner.includes("*")&&(s=remaining())&&/^\.[^\\/.]+$/.test(s)){const r=parse(s,{...t,fastpaths:false}).output;n=e.close=`)${r})${o})`}if(e.prev.type==="bos"){O.negatedExtglob=true}}push({type:"paren",extglob:true,value:q,output:n});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=false;let o=e.replace(c,((e,t,r,s,o,i)=>{if(s==="\\"){n=true;return e}if(s==="?"){if(t){return t+s+(o?x.repeat(o.length):"")}if(i===0){return C+(o?x.repeat(o.length):"")}return x.repeat(r.length)}if(s==="."){return v.repeat(r.length)}if(s==="*"){if(t){return t+s+(o?T:"")}return T}return t?e:`\\${e}`}));if(n===true){if(r.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&r.contains===true){O.output=e;return O}O.output=s.wrapOutput(o,O,t);return O}while(!eos()){q=U();if(q==="\0"){continue}if(q==="\\"){const e=G();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){q+="\\";push({type:"text",value:q});continue}const t=/^\\+/.exec(remaining());let n=0;if(t&&t[0].length>2){n=t[0].length;O.index+=n;if(n%2!==0){q+="\\"}}if(r.unescape===true){q=U()}else{q+=U()}if(O.brackets===0){push({type:"text",value:q});continue}}if(O.brackets>0&&(q!=="]"||B.value==="["||B.value==="[^")){if(r.posix!==false&&q===":"){const e=B.value.slice(1);if(e.includes("[")){B.posix=true;if(e.includes(":")){const e=B.value.lastIndexOf("[");const t=B.value.slice(0,e);const r=B.value.slice(e+2);const n=i[r];if(n){B.value=t+n;O.backtrack=true;U();if(!d.output&&f.indexOf(B)===1){d.output=w}continue}}}}if(q==="["&&G()!==":"||q==="-"&&G()==="]"){q=`\\${q}`}if(q==="]"&&(B.value==="["||B.value==="[^")){q=`\\${q}`}if(r.posix===true&&q==="!"&&B.value==="["){q="^"}B.value+=q;append({value:q});continue}if(O.quotes===1&&q!=='"'){q=s.escapeRegex(q);B.value+=q;append({value:q});continue}if(q==='"'){O.quotes=O.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:q})}continue}if(q==="("){increment("parens");push({type:"paren",value:q});continue}if(q===")"){if(O.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=M[M.length-1];if(e&&O.parens===e.parens+1){extglobClose(M.pop());continue}push({type:"paren",value:q,output:O.parens?")":"\\)"});decrement("parens");continue}if(q==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}q=`\\${q}`}else{increment("brackets")}push({type:"bracket",value:q});continue}if(q==="]"){if(r.nobracket===true||B&&B.type==="bracket"&&B.value.length===1){push({type:"text",value:q,output:`\\${q}`});continue}if(O.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:q,output:`\\${q}`});continue}decrement("brackets");const e=B.value.slice(1);if(B.posix!==true&&e[0]==="^"&&!e.includes("/")){q=`/${q}`}B.value+=q;append({value:q});if(r.literalBrackets===false||s.hasRegexChars(e)){continue}const t=s.escapeRegex(B.value);O.output=O.output.slice(0,-B.value.length);if(r.literalBrackets===true){O.output+=t;B.value=t;continue}B.value=`(${h}${t}|${B.value})`;O.output+=B.value;continue}if(q==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:q,output:"(",outputIndex:O.output.length,tokensIndex:O.tokens.length};N.push(e);push(e);continue}if(q==="}"){const e=N[N.length-1];if(r.nobrace===true||!e){push({type:"text",value:q,output:q});continue}let t=")";if(e.dots===true){const e=f.slice();const n=[];for(let t=e.length-1;t>=0;t--){f.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){n.unshift(e[t].value)}}t=expandRange(n,r);O.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=O.output.slice(0,e.outputIndex);const n=O.tokens.slice(e.tokensIndex);e.value=e.output="\\{";q=t="\\}";O.output=r;for(const e of n){O.output+=e.output||e.value}}push({type:"brace",value:q,output:t});decrement("braces");N.pop();continue}if(q==="|"){if(M.length>0){M[M.length-1].conditions++}push({type:"text",value:q});continue}if(q===","){let e=q;const t=N[N.length-1];if(t&&L[L.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:q,output:e});continue}if(q==="/"){if(B.type==="dot"&&O.index===O.start+1){O.start=O.index+1;O.consumed="";O.output="";f.pop();B=d;continue}push({type:"slash",value:q,output:b});continue}if(q==="."){if(O.braces>0&&B.type==="dot"){if(B.value===".")B.output=v;const e=N[N.length-1];B.type="dots";B.output+=q;B.value+=q;e.dots=true;continue}if(O.braces+O.parens===0&&B.type!=="bos"&&B.type!=="slash"){push({type:"text",value:q,output:v});continue}push({type:"dot",value:q,output:v});continue}if(q==="?"){const e=B&&B.value==="(";if(!e&&r.noextglob!==true&&G()==="("&&G(2)!=="?"){extglobOpen("qmark",q);continue}if(B&&B.type==="paren"){const e=G();let t=q;if(e==="<"&&!s.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(B.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${q}`}push({type:"text",value:q,output:t});continue}if(r.dot!==true&&(B.type==="slash"||B.type==="bos")){push({type:"qmark",value:q,output:R});continue}push({type:"qmark",value:q,output:x});continue}if(q==="!"){if(r.noextglob!==true&&G()==="("){if(G(2)!=="?"||!/[!=<:]/.test(G(3))){extglobOpen("negate",q);continue}}if(r.nonegate!==true&&O.index===0){negate();continue}}if(q==="+"){if(r.noextglob!==true&&G()==="("&&G(2)!=="?"){extglobOpen("plus",q);continue}if(B&&B.value==="("||r.regex===false){push({type:"plus",value:q,output:$});continue}if(B&&(B.type==="bracket"||B.type==="paren"||B.type==="brace")||O.parens>0){push({type:"plus",value:q});continue}push({type:"plus",value:$});continue}if(q==="@"){if(r.noextglob!==true&&G()==="("&&G(2)!=="?"){push({type:"at",extglob:true,value:q,output:""});continue}push({type:"text",value:q});continue}if(q!=="*"){if(q==="$"||q==="^"){q=`\\${q}`}const e=a.exec(remaining());if(e){q+=e[0];O.index+=e[0].length}push({type:"text",value:q});continue}if(B&&(B.type==="globstar"||B.star===true)){B.type="star";B.star=true;B.value+=q;B.output=T;O.backtrack=true;O.globstar=true;consume(q);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",q);continue}if(B.type==="star"){if(r.noglobstar===true){consume(q);continue}const n=B.prev;const s=n.prev;const o=n.type==="slash"||n.type==="bos";const i=s&&(s.type==="star"||s.type==="globstar");if(r.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:q,output:""});continue}const a=O.braces>0&&(n.type==="comma"||n.type==="brace");const c=M.length&&(n.type==="pipe"||n.type==="paren");if(!o&&n.type!=="paren"&&!a&&!c){push({type:"star",value:q,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[O.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(n.type==="bos"&&eos()){B.type="globstar";B.value+=q;B.output=globstar(r);O.output=B.output;O.globstar=true;consume(q);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!i&&eos()){O.output=O.output.slice(0,-(n.output+B.output).length);n.output=`(?:${n.output}`;B.type="globstar";B.output=globstar(r)+(r.strictSlashes?")":"|$)");B.value+=q;O.globstar=true;O.output+=n.output+B.output;consume(q);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";O.output=O.output.slice(0,-(n.output+B.output).length);n.output=`(?:${n.output}`;B.type="globstar";B.output=`${globstar(r)}${b}|${b}${e})`;B.value+=q;O.output+=n.output+B.output;O.globstar=true;consume(q+U());push({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&t[0]==="/"){B.type="globstar";B.value+=q;B.output=`(?:^|${b}|${globstar(r)}${b})`;O.output=B.output;O.globstar=true;consume(q+U());push({type:"slash",value:"/",output:""});continue}O.output=O.output.slice(0,-B.output.length);B.type="globstar";B.output=globstar(r);B.value+=q;O.output+=B.output;O.globstar=true;consume(q);continue}const n={type:"star",value:q,output:T};if(r.bash===true){n.output=".*?";if(B.type==="bos"||B.type==="slash"){n.output=P+n.output}push(n);continue}if(B&&(B.type==="bracket"||B.type==="paren")&&r.regex===true){n.output=q;push(n);continue}if(O.index===O.start||B.type==="slash"||B.type==="dot"){if(B.type==="dot"){O.output+=A;B.output+=A}else if(r.dot===true){O.output+=j;B.output+=j}else{O.output+=P;B.output+=P}if(G()!=="*"){O.output+=w;B.output+=w}}push(n)}while(O.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));O.output=s.escapeLast(O.output,"[");decrement("brackets")}while(O.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));O.output=s.escapeLast(O.output,"(");decrement("parens")}while(O.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));O.output=s.escapeLast(O.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(B.type==="star"||B.type==="bracket")){push({type:"maybe_slash",value:"",output:`${b}?`})}if(O.backtrack===true){O.output="";for(const e of O.tokens){O.output+=e.output!=null?e.output:e.value;if(e.suffix){O.output+=e.suffix}}}return O};parse.fastpaths=(e,t)=>{const r={...t};const i=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;const a=e.length;if(a>i){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${i}`)}e=u[e]||e;const c=s.isWindows(t);const{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:h,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:v}=n.globChars(c);const $=r.dot?g:h;const b=r.dot?m:h;const w=r.capture?"":"?:";const _={negated:false,prefix:""};let S=r.bash===true?".*?":y;if(r.capture){S=`(${S})`}const globstar=e=>{if(e.noglobstar===true)return S;return`(${w}(?:(?!${v}${e.dot?f:l}).)*?)`};const create=e=>{switch(e){case"*":return`${$}${d}${S}`;case".*":return`${l}${d}${S}`;case"*.*":return`${$}${S}${l}${d}${S}`;case"*/*":return`${$}${S}${p}${d}${b}${S}`;case"**":return $+globstar(r);case"**/*":return`(?:${$}${globstar(r)}${p})?${b}${d}${S}`;case"**/*.*":return`(?:${$}${globstar(r)}${p})?${b}${S}${l}${d}${S}`;case"**/.*":return`(?:${$}${globstar(r)}${p})?${l}${d}${S}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+l+t[2]}}};const A=s.removePrefix(e,_);let j=create(A);if(j&&r.strictSlashes!==true){j+=`${p}?`}return j};e.exports=parse},3193:(e,t,r)=>{"use strict";const n=r(6928);const s=r(5330);const o=r(4356);const i=r(7910);const a=r(7054);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const n=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of n){const r=t(e);if(r)return r}return false};return arrayMatcher}const n=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const s=t||{};const o=i.isWindows(t);const a=n?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const c=a.state;delete a.state;let isIgnored=()=>false;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(s.ignore,e,r)}const matcher=(r,n=false)=>{const{isMatch:i,match:u,output:l}=picomatch.test(r,a,t,{glob:e,posix:o});const p={glob:e,state:c,regex:a,posix:o,input:r,output:l,match:u,isMatch:i};if(typeof s.onResult==="function"){s.onResult(p)}if(i===false){p.isMatch=false;return n?p:false}if(isIgnored(r)){if(typeof s.onIgnore==="function"){s.onIgnore(p)}p.isMatch=false;return n?p:false}if(typeof s.onMatch==="function"){s.onMatch(p)}return n?p:true};if(r){matcher.state=c}return matcher};picomatch.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const o=r||{};const a=o.format||(s?i.toPosixSlashes:null);let c=e===n;let u=c&&a?a(e):e;if(c===false){u=a?a(e):e;c=u===n}if(c===false||o.capture===true){if(o.matchBase===true||o.basename===true){c=picomatch.matchBase(e,t,r,s)}else{c=t.exec(u)}}return{isMatch:Boolean(c),match:c,output:u}};picomatch.matchBase=(e,t,r,s=i.isWindows(r))=>{const o=t instanceof RegExp?t:picomatch.makeRe(t,r);return o.test(n.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return o(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>s(e,t);picomatch.compileRe=(e,t,r=false,n=false)=>{if(r===true){return e.output}const s=t||{};const o=s.contains?"":"^";const i=s.contains?"":"$";let a=`${o}(?:${e.output})${i}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const c=picomatch.toRegex(a,t);if(n===true){c.state=e}return c};picomatch.makeRe=(e,t={},r=false,n=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let s={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){s.output=o.fastpaths(e,t)}if(!s.output){s=o(e,t)}return picomatch.compileRe(s,t,r,n)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},5330:(e,t,r)=>{"use strict";const n=r(7910);const{CHAR_ASTERISK:s,CHAR_AT:o,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:v}=r(7054);const isPathSeparator=e=>e===l||e===i;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const $=e.length-1;const b=r.parts===true||r.scanToEnd===true;const w=[];const _=[];const S=[];let A=e;let j=-1;let x=0;let R=0;let k=false;let I=false;let P=false;let C=false;let T=false;let O=false;let M=false;let N=false;let L=false;let B=false;let q=0;let G;let U;let D={value:"",depth:0,isGlob:false};const eos=()=>j>=$;const peek=()=>A.charCodeAt(j+1);const advance=()=>{G=U;return A.charCodeAt(++j)};while(j<$){U=advance();let e;if(U===i){M=D.backslashes=true;U=advance();if(U===p){O=true}continue}if(O===true||U===p){q++;while(eos()!==true&&(U=advance())){if(U===i){M=D.backslashes=true;advance();continue}if(U===p){q++;continue}if(O!==true&&U===c&&(U=advance())===c){k=D.isBrace=true;P=D.isGlob=true;B=true;if(b===true){continue}break}if(O!==true&&U===a){k=D.isBrace=true;P=D.isGlob=true;B=true;if(b===true){continue}break}if(U===m){q--;if(q===0){O=false;k=D.isBrace=true;B=true;break}}}if(b===true){continue}break}if(U===l){w.push(j);_.push(D);D={value:"",depth:0,isGlob:false};if(B===true)continue;if(G===c&&j===x+1){x+=2;continue}R=j+1;continue}if(r.noext!==true){const e=U===h||U===o||U===s||U===g||U===u;if(e===true&&peek()===d){P=D.isGlob=true;C=D.isExtglob=true;B=true;if(U===u&&j===x){L=true}if(b===true){while(eos()!==true&&(U=advance())){if(U===i){M=D.backslashes=true;U=advance();continue}if(U===y){P=D.isGlob=true;B=true;break}}continue}break}}if(U===s){if(G===s)T=D.isGlobstar=true;P=D.isGlob=true;B=true;if(b===true){continue}break}if(U===g){P=D.isGlob=true;B=true;if(b===true){continue}break}if(U===f){while(eos()!==true&&(e=advance())){if(e===i){M=D.backslashes=true;advance();continue}if(e===v){I=D.isBracket=true;P=D.isGlob=true;B=true;break}}if(b===true){continue}break}if(r.nonegate!==true&&U===u&&j===x){N=D.negated=true;x++;continue}if(r.noparen!==true&&U===d){P=D.isGlob=true;if(b===true){while(eos()!==true&&(U=advance())){if(U===d){M=D.backslashes=true;U=advance();continue}if(U===y){B=true;break}}continue}break}if(P===true){B=true;if(b===true){continue}break}}if(r.noext===true){C=false;P=false}let H=A;let K="";let Y="";if(x>0){K=A.slice(0,x);A=A.slice(x);R-=x}if(H&&P===true&&R>0){H=A.slice(0,R);Y=A.slice(R)}else if(P===true){H="";Y=A}else{H=A}if(H&&H!==""&&H!=="/"&&H!==A){if(isPathSeparator(H.charCodeAt(H.length-1))){H=H.slice(0,-1)}}if(r.unescape===true){if(Y)Y=n.removeBackslashes(Y);if(H&&M===true){H=n.removeBackslashes(H)}}const W={prefix:K,input:e,start:x,base:H,glob:Y,isBrace:k,isBracket:I,isGlob:P,isExtglob:C,isGlobstar:T,negated:N,negatedExtglob:L};if(r.tokens===true){W.maxDepth=0;if(!isPathSeparator(U)){_.push(D)}W.tokens=_}if(r.parts===true||r.tokens===true){let t;for(let n=0;n<w.length;n++){const s=t?t+1:x;const o=w[n];const i=e.slice(s,o);if(r.tokens){if(n===0&&x!==0){_[n].isPrefix=true;_[n].value=K}else{_[n].value=i}depth(_[n]);W.maxDepth+=_[n].depth}if(n!==0||i!==""){S.push(i)}t=o}if(t&&t+1<e.length){const n=e.slice(t+1);S.push(n);if(r.tokens){_[_.length-1].value=n;depth(_[_.length-1]);W.maxDepth+=_[_.length-1].depth}}W.slashes=w;W.parts=S}return W};e.exports=scan},7910:(e,t,r)=>{"use strict";const n=r(6928);const s=process.platform==="win32";const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(7054);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(c,"\\$1");t.toPosixSlashes=e=>e.replace(o,"/");t.removeBackslashes=e=>e.replace(i,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return s===true||n.sep==="\\"};t.escapeLast=(e,r,n)=>{const s=e.lastIndexOf(r,n);if(s===-1)return e;if(e[s-1]==="\\")return t.escapeLast(e,r,s-1);return`${e.slice(0,s)}\\${e.slice(s)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const n=r.contains?"":"^";const s=r.contains?"":"$";let o=`${n}(?:${e})${s}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o}},2799:function(e){(function(t){var r=setTimeout;function noop(){}function bind(e,t){return function(){e.apply(t,arguments)}}function Promise(e){if(!(this instanceof Promise))throw new TypeError("Promises must be constructed via new");if(typeof e!=="function")throw new TypeError("not a function");this._state=0;this._handled=false;this._value=undefined;this._deferreds=[];doResolve(e,this)}function handle(e,t){while(e._state===3){e=e._value}if(e._state===0){e._deferreds.push(t);return}e._handled=true;Promise._immediateFn((function(){var r=e._state===1?t.onFulfilled:t.onRejected;if(r===null){(e._state===1?resolve:reject)(t.promise,e._value);return}var n;try{n=r(e._value)}catch(e){reject(t.promise,e);return}resolve(t.promise,n)}))}function resolve(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&(typeof t==="object"||typeof t==="function")){var r=t.then;if(t instanceof Promise){e._state=3;e._value=t;finale(e);return}else if(typeof r==="function"){doResolve(bind(r,t),e);return}}e._state=1;e._value=t;finale(e)}catch(t){reject(e,t)}}function reject(e,t){e._state=2;e._value=t;finale(e)}function finale(e){if(e._state===2&&e._deferreds.length===0){Promise._immediateFn((function(){if(!e._handled){Promise._unhandledRejectionFn(e._value)}}))}for(var t=0,r=e._deferreds.length;t<r;t++){handle(e,e._deferreds[t])}e._deferreds=null}function Handler(e,t,r){this.onFulfilled=typeof e==="function"?e:null;this.onRejected=typeof t==="function"?t:null;this.promise=r}function doResolve(e,t){var r=false;try{e((function(e){if(r)return;r=true;resolve(t,e)}),(function(e){if(r)return;r=true;reject(t,e)}))}catch(e){if(r)return;r=true;reject(t,e)}}Promise.prototype["catch"]=function(e){return this.then(null,e)};Promise.prototype.then=function(e,t){var r=new this.constructor(noop);handle(this,new Handler(e,t,r));return r};Promise.all=function(e){return new Promise((function(t,r){if(!e||typeof e.length==="undefined")throw new TypeError("Promise.all accepts an array");var n=Array.prototype.slice.call(e);if(n.length===0)return t([]);var s=n.length;function res(e,o){try{if(o&&(typeof o==="object"||typeof o==="function")){var i=o.then;if(typeof i==="function"){i.call(o,(function(t){res(e,t)}),r);return}}n[e]=o;if(--s===0){t(n)}}catch(e){r(e)}}for(var o=0;o<n.length;o++){res(o,n[o])}}))};Promise.resolve=function(e){if(e&&typeof e==="object"&&e.constructor===Promise){return e}return new Promise((function(t){t(e)}))};Promise.reject=function(e){return new Promise((function(t,r){r(e)}))};Promise.race=function(e){return new Promise((function(t,r){for(var n=0,s=e.length;n<s;n++){e[n].then(t,r)}}))};Promise._immediateFn=typeof setImmediate==="function"&&function(e){setImmediate(e)}||function(e){r(e,0)};Promise._unhandledRejectionFn=function _unhandledRejectionFn(e){if(typeof console!=="undefined"&&console){console.warn("Possible Unhandled Promise Rejection:",e)}};Promise._setImmediateFn=function _setImmediateFn(e){Promise._immediateFn=e};Promise._setUnhandledRejectionFn=function _setUnhandledRejectionFn(e){Promise._unhandledRejectionFn=e};if(true&&e.exports){e.exports=Promise}else if(!t.Promise){t.Promise=Promise}})(this)},4570:(e,t,r)=>{if(process.env.npm_package_name==="pseudomap"&&process.env.npm_lifecycle_script==="test")process.env.TEST_PSEUDOMAP="true";if(typeof Map==="function"&&!process.env.TEST_PSEUDOMAP){e.exports=Map}else{e.exports=r(6196)}},6196:e=>{var t=Object.prototype.hasOwnProperty;e.exports=PseudoMap;function PseudoMap(e){if(!(this instanceof PseudoMap))throw new TypeError("Constructor PseudoMap requires 'new'");this.clear();if(e){if(e instanceof PseudoMap||typeof Map==="function"&&e instanceof Map)e.forEach((function(e,t){this.set(t,e)}),this);else if(Array.isArray(e))e.forEach((function(e){this.set(e[0],e[1])}),this);else throw new TypeError("invalid argument")}}PseudoMap.prototype.forEach=function(e,t){t=t||this;Object.keys(this._data).forEach((function(r){if(r!=="size")e.call(t,this._data[r].value,this._data[r].key)}),this)};PseudoMap.prototype.has=function(e){return!!find(this._data,e)};PseudoMap.prototype.get=function(e){var t=find(this._data,e);return t&&t.value};PseudoMap.prototype.set=function(e,t){set(this._data,e,t)};PseudoMap.prototype.delete=function(e){var t=find(this._data,e);if(t){delete this._data[t._index];this._data.size--}};PseudoMap.prototype.clear=function(){var e=Object.create(null);e.size=0;Object.defineProperty(this,"_data",{value:e,enumerable:false,configurable:true,writable:false})};Object.defineProperty(PseudoMap.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:true,configurable:true});PseudoMap.prototype.values=PseudoMap.prototype.keys=PseudoMap.prototype.entries=function(){throw new Error("iterators are not implemented in this version")};function same(e,t){return e===t||e!==e&&t!==t}function Entry(e,t,r){this.key=e;this.value=t;this._index=r}function find(e,r){for(var n=0,s="_"+r,o=s;t.call(e,o);o=s+n++){if(same(e[o].key,r))return e[o]}}function set(e,r,n){for(var s=0,o="_"+r,i=o;t.call(e,i);i=o+s++){if(same(e[i].key,r)){e[i].value=n;return}}e.size++;e[i]=new Entry(r,n,i)}},4495:e=>{"use strict";var t=String.prototype.replace;var r=/%20/g;var n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},891:(e,t,r)=>{"use strict";var n=r(7098);var s=r(900);var o=r(4495);e.exports={formats:o,parse:s,stringify:n}},900:(e,t,r)=>{"use strict";var n=r(7862);var s=Object.prototype.hasOwnProperty;var o=Array.isArray;var i={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))};var parseArrayValue=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var a="utf8=%26%2310003%3B";var c="utf8=%E2%9C%93";var u=function parseQueryStringValues(e,t){var r={__proto__:null};var u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;var l=t.parameterLimit===Infinity?undefined:t.parameterLimit;var p=u.split(t.delimiter,l);var d=-1;var f;var h=t.charset;if(t.charsetSentinel){for(f=0;f<p.length;++f){if(p[f].indexOf("utf8=")===0){if(p[f]===c){h="utf-8"}else if(p[f]===a){h="iso-8859-1"}d=f;f=p.length}}}for(f=0;f<p.length;++f){if(f===d){continue}var g=p[f];var m=g.indexOf("]=");var y=m===-1?g.indexOf("="):m+1;var v,$;if(y===-1){v=t.decoder(g,i.decoder,h,"key");$=t.strictNullHandling?null:""}else{v=t.decoder(g.slice(0,y),i.decoder,h,"key");$=n.maybeMap(parseArrayValue(g.slice(y+1),t),(function(e){return t.decoder(e,i.decoder,h,"value")}))}if($&&t.interpretNumericEntities&&h==="iso-8859-1"){$=interpretNumericEntities($)}if(g.indexOf("[]=")>-1){$=o($)?[$]:$}if(s.call(r,v)){r[v]=n.combine(r[v],$)}else{r[v]=$}}return r};var parseObject=function(e,t,r,n){var s=n?t:parseArrayValue(t,r);for(var o=e.length-1;o>=0;--o){var i;var a=e[o];if(a==="[]"&&r.parseArrays){i=[].concat(s)}else{i=r.plainObjects?Object.create(null):{};var c=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a;var u=parseInt(c,10);if(!r.parseArrays&&c===""){i={0:s}}else if(!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&(r.parseArrays&&u<=r.arrayLimit)){i=[];i[u]=s}else if(c!=="__proto__"){i[c]=s}}s=i}return s};var l=function parseQueryStringKeys(e,t,r,n){if(!e){return}var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var i=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var c=r.depth>0&&i.exec(o);var u=c?o.slice(0,c.index):o;var l=[];if(u){if(!r.plainObjects&&s.call(Object.prototype,u)){if(!r.allowPrototypes){return}}l.push(u)}var p=0;while(r.depth>0&&(c=a.exec(o))!==null&&p<r.depth){p+=1;if(!r.plainObjects&&s.call(Object.prototype,c[1].slice(1,-1))){if(!r.allowPrototypes){return}}l.push(c[1])}if(c){l.push("["+o.slice(c.index)+"]")}return parseObject(l,t,r,n)};var p=function normalizeParseOptions(e){if(!e){return i}if(e.decoder!==null&&e.decoder!==undefined&&typeof e.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var t=typeof e.charset==="undefined"?i.charset:e.charset;return{allowDots:typeof e.allowDots==="undefined"?i.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes==="boolean"?e.allowPrototypes:i.allowPrototypes,allowSparse:typeof e.allowSparse==="boolean"?e.allowSparse:i.allowSparse,arrayLimit:typeof e.arrayLimit==="number"?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:i.charsetSentinel,comma:typeof e.comma==="boolean"?e.comma:i.comma,decoder:typeof e.decoder==="function"?e.decoder:i.decoder,delimiter:typeof e.delimiter==="string"||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:typeof e.depth==="number"||e.depth===false?+e.depth:i.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===true,interpretNumericEntities:typeof e.interpretNumericEntities==="boolean"?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==="number"?e.parameterLimit:i.parameterLimit,parseArrays:e.parseArrays!==false,plainObjects:typeof e.plainObjects==="boolean"?e.plainObjects:i.plainObjects,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var r=p(t);if(e===""||e===null||typeof e==="undefined"){return r.plainObjects?Object.create(null):{}}var s=typeof e==="string"?u(e,r):e;var o=r.plainObjects?Object.create(null):{};var i=Object.keys(s);for(var a=0;a<i.length;++a){var c=i[a];var d=l(c,s[c],r,typeof e==="string");o=n.merge(o,d,r)}if(r.allowSparse===true){return o}return n.compact(o)}},7098:(e,t,r)=>{"use strict";var n=r(540);var s=r(7862);var o=r(4495);var i=Object.prototype.hasOwnProperty;var a={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var c=Array.isArray;var u=Array.prototype.push;var pushToArray=function(e,t){u.apply(e,c(t)?t:[t])};var l=Date.prototype.toISOString;var p=o["default"];var d={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:s.encode,encodeValuesOnly:false,format:p,formatter:o.formatters[p],indices:false,serializeDate:function serializeDate(e){return l.call(e)},skipNulls:false,strictNullHandling:false};var f=function isNonNullishPrimitive(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var h={};var g=function stringify(e,t,r,o,i,a,u,l,p,g,m,y,v,$,b,w){var _=e;var S=w;var A=0;var j=false;while((S=S.get(h))!==void undefined&&!j){var x=S.get(e);A+=1;if(typeof x!=="undefined"){if(x===A){throw new RangeError("Cyclic object value")}else{j=true}}if(typeof S.get(h)==="undefined"){A=0}}if(typeof l==="function"){_=l(t,_)}else if(_ instanceof Date){_=m(_)}else if(r==="comma"&&c(_)){_=s.maybeMap(_,(function(e){if(e instanceof Date){return m(e)}return e}))}if(_===null){if(i){return u&&!$?u(t,d.encoder,b,"key",y):t}_=""}if(f(_)||s.isBuffer(_)){if(u){var R=$?t:u(t,d.encoder,b,"key",y);return[v(R)+"="+v(u(_,d.encoder,b,"value",y))]}return[v(t)+"="+v(String(_))]}var k=[];if(typeof _==="undefined"){return k}var I;if(r==="comma"&&c(_)){if($&&u){_=s.maybeMap(_,u)}I=[{value:_.length>0?_.join(",")||null:void undefined}]}else if(c(l)){I=l}else{var P=Object.keys(_);I=p?P.sort(p):P}var C=o&&c(_)&&_.length===1?t+"[]":t;for(var T=0;T<I.length;++T){var O=I[T];var M=typeof O==="object"&&typeof O.value!=="undefined"?O.value:_[O];if(a&&M===null){continue}var N=c(_)?typeof r==="function"?r(C,O):C:C+(g?"."+O:"["+O+"]");w.set(e,A);var L=n();L.set(h,w);pushToArray(k,stringify(M,N,r,o,i,a,r==="comma"&&$&&c(_)?null:u,l,p,g,m,y,v,$,b,L))}return k};var m=function normalizeStringifyOptions(e){if(!e){return d}if(e.encoder!==null&&typeof e.encoder!=="undefined"&&typeof e.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var t=e.charset||d.charset;if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=o["default"];if(typeof e.format!=="undefined"){if(!i.call(o.formatters,e.format)){throw new TypeError("Unknown format option provided.")}r=e.format}var n=o.formatters[r];var s=d.filter;if(typeof e.filter==="function"||c(e.filter)){s=e.filter}return{addQueryPrefix:typeof e.addQueryPrefix==="boolean"?e.addQueryPrefix:d.addQueryPrefix,allowDots:typeof e.allowDots==="undefined"?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:d.charsetSentinel,delimiter:typeof e.delimiter==="undefined"?d.delimiter:e.delimiter,encode:typeof e.encode==="boolean"?e.encode:d.encode,encoder:typeof e.encoder==="function"?e.encoder:d.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==="boolean"?e.encodeValuesOnly:d.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:typeof e.serializeDate==="function"?e.serializeDate:d.serializeDate,skipNulls:typeof e.skipNulls==="boolean"?e.skipNulls:d.skipNulls,sort:typeof e.sort==="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r=e;var s=m(t);var o;var i;if(typeof s.filter==="function"){i=s.filter;r=i("",r)}else if(c(s.filter)){i=s.filter;o=i}var u=[];if(typeof r!=="object"||r===null){return""}var l;if(t&&t.arrayFormat in a){l=t.arrayFormat}else if(t&&"indices"in t){l=t.indices?"indices":"repeat"}else{l="indices"}var p=a[l];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var d=p==="comma"&&t&&t.commaRoundTrip;if(!o){o=Object.keys(r)}if(s.sort){o.sort(s.sort)}var f=n();for(var h=0;h<o.length;++h){var y=o[h];if(s.skipNulls&&r[y]===null){continue}pushToArray(u,g(r[y],y,p,d,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,f))}var v=u.join(s.delimiter);var $=s.addQueryPrefix===true?"?":"";if(s.charsetSentinel){if(s.charset==="iso-8859-1"){$+="utf8=%26%2310003%3B&"}else{$+="utf8=%E2%9C%93&"}}return v.length>0?$+v:""}},7862:(e,t,r)=>{"use strict";var n=r(4495);var s=Object.prototype.hasOwnProperty;var o=Array.isArray;var i=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var a=function compactQueue(e){while(e.length>1){var t=e.pop();var r=t.obj[t.prop];if(o(r)){var n=[];for(var s=0;s<r.length;++s){if(typeof r[s]!=="undefined"){n.push(r[s])}}t.obj[t.prop]=n}}};var c=function arrayToObject(e,t){var r=t&&t.plainObjects?Object.create(null):{};for(var n=0;n<e.length;++n){if(typeof e[n]!=="undefined"){r[n]=e[n]}}return r};var u=function merge(e,t,r){if(!t){return e}if(typeof t!=="object"){if(o(e)){e.push(t)}else if(e&&typeof e==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!s.call(Object.prototype,t)){e[t]=true}}else{return[e,t]}return e}if(!e||typeof e!=="object"){return[e].concat(t)}var n=e;if(o(e)&&!o(t)){n=c(e,r)}if(o(e)&&o(t)){t.forEach((function(t,n){if(s.call(e,n)){var o=e[n];if(o&&typeof o==="object"&&t&&typeof t==="object"){e[n]=merge(o,t,r)}else{e.push(t)}}else{e[n]=t}}));return e}return Object.keys(t).reduce((function(e,n){var o=t[n];if(s.call(e,n)){e[n]=merge(e[n],o,r)}else{e[n]=o}return e}),n)};var l=function assignSingleSource(e,t){return Object.keys(t).reduce((function(e,r){e[r]=t[r];return e}),e)};var decode=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1"){return n.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(n)}catch(e){return n}};var p=function encode(e,t,r,s,o){if(e.length===0){return e}var a=e;if(typeof e==="symbol"){a=Symbol.prototype.toString.call(e)}else if(typeof e!=="string"){a=String(e)}if(r==="iso-8859-1"){return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var c="";for(var u=0;u<a.length;++u){var l=a.charCodeAt(u);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===n.RFC1738&&(l===40||l===41)){c+=a.charAt(u);continue}if(l<128){c=c+i[l];continue}if(l<2048){c=c+(i[192|l>>6]+i[128|l&63]);continue}if(l<55296||l>=57344){c=c+(i[224|l>>12]+i[128|l>>6&63]+i[128|l&63]);continue}u+=1;l=65536+((l&1023)<<10|a.charCodeAt(u)&1023);c+=i[240|l>>18]+i[128|l>>12&63]+i[128|l>>6&63]+i[128|l&63]}return c};var d=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var n=0;n<t.length;++n){var s=t[n];var o=s.obj[s.prop];var i=Object.keys(o);for(var c=0;c<i.length;++c){var u=i[c];var l=o[u];if(typeof l==="object"&&l!==null&&r.indexOf(l)===-1){t.push({obj:o,prop:u});r.push(l)}}}a(t);return e};var f=function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"};var h=function isBuffer(e){if(!e||typeof e!=="object"){return false}return!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};var g=function combine(e,t){return[].concat(e,t)};var m=function maybeMap(e,t){if(o(e)){var r=[];for(var n=0;n<e.length;n+=1){r.push(t(e[n]))}return r}return t(e)};e.exports={arrayToObject:c,assign:l,combine:g,compact:d,decode:decode,encode:p,isBuffer:h,isRegExp:f,maybeMap:m,merge:u}},3798:(e,t,r)=>{"use strict";var n=r(7596);var s=r(2071);var o=r(8122)();var i=r(5583);var a=r(4785);var c=n("%Math.floor%");e.exports=function setFunctionLength(e,t){if(typeof e!=="function"){throw new a("`fn` is not a function")}if(typeof t!=="number"||t<0||t>4294967295||c(t)!==t){throw new a("`length` must be a positive 32-bit integer")}var r=arguments.length>2&&!!arguments[2];var n=true;var u=true;if("length"in e&&i){var l=i(e,"length");if(l&&!l.configurable){n=false}if(l&&!l.writable){u=false}}if(n||u||!r){if(o){s(e,"length",t,true,true)}else{s(e,"length",t)}}return e}},540:(e,t,r)=>{"use strict";var n=r(7596);var s=r(3845);var o=r(666);var i=n("%TypeError%");var a=n("%WeakMap%",true);var c=n("%Map%",true);var u=s("WeakMap.prototype.get",true);var l=s("WeakMap.prototype.set",true);var p=s("WeakMap.prototype.has",true);var d=s("Map.prototype.get",true);var f=s("Map.prototype.set",true);var h=s("Map.prototype.has",true);var listGetNode=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n){if(n.key===t){r.next=n.next;n.next=e.next;e.next=n;return n}}};var listGet=function(e,t){var r=listGetNode(e,t);return r&&r.value};var listSet=function(e,t,r){var n=listGetNode(e,t);if(n){n.value=r}else{e.next={key:t,next:e.next,value:r}}};var listHas=function(e,t){return!!listGetNode(e,t)};e.exports=function getSideChannel(){var e;var t;var r;var n={assert:function(e){if(!n.has(e)){throw new i("Side channel does not contain "+o(e))}},get:function(n){if(a&&n&&(typeof n==="object"||typeof n==="function")){if(e){return u(e,n)}}else if(c){if(t){return d(t,n)}}else{if(r){return listGet(r,n)}}},has:function(n){if(a&&n&&(typeof n==="object"||typeof n==="function")){if(e){return p(e,n)}}else if(c){if(t){return h(t,n)}}else{if(r){return listHas(r,n)}}return false},set:function(n,s){if(a&&n&&(typeof n==="object"||typeof n==="function")){if(!e){e=new a}l(e,n,s)}else if(c){if(!t){t=new c}f(t,n,s)}else{if(!r){r={key:{},next:null}}listSet(r,n,s)}}};return n}},743:(e,t,r)=>{"use strict";
|
|
19
|
+
e.exports=function(){var e=process.versions.node;var t=e.split(".");return{original:"v"+e,short:t[0]+"."+t[1],long:e,major:t[0],minor:t[1],build:t[2]}}()},666:(e,t,r)=>{var n=typeof Map==="function"&&Map.prototype;var s=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var o=n&&s&&typeof s.get==="function"?s.get:null;var i=n&&Map.prototype.forEach;var a=typeof Set==="function"&&Set.prototype;var c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var u=a&&c&&typeof c.get==="function"?c.get:null;var l=a&&Set.prototype.forEach;var p=typeof WeakMap==="function"&&WeakMap.prototype;var d=p?WeakMap.prototype.has:null;var f=typeof WeakSet==="function"&&WeakSet.prototype;var h=f?WeakSet.prototype.has:null;var g=typeof WeakRef==="function"&&WeakRef.prototype;var m=g?WeakRef.prototype.deref:null;var y=Boolean.prototype.valueOf;var v=Object.prototype.toString;var $=Function.prototype.toString;var b=String.prototype.match;var w=String.prototype.slice;var _=String.prototype.replace;var S=String.prototype.toUpperCase;var A=String.prototype.toLowerCase;var j=RegExp.prototype.test;var x=Array.prototype.concat;var R=Array.prototype.join;var k=Array.prototype.slice;var I=Math.floor;var P=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var T=Object.getOwnPropertySymbols;var C=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var O=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var M=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===O?"object":"symbol")?Symbol.toStringTag:null;var N=Object.prototype.propertyIsEnumerable;var L=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===Infinity||e===-Infinity||e!==e||e&&e>-1e3&&e<1e3||j.call(/e/,t)){return t}var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==="number"){var n=e<0?-I(-e):I(e);if(n!==e){var s=String(n);var o=w.call(t,s.length+1);return _.call(s,r,"$&_")+"."+_.call(_.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,r,"$&_")}var B=r(4870);var G=B.custom;var U=isSymbol(G)?G:null;e.exports=function inspect_(e,t,r,n){var s=t||{};if(has(s,"quoteStyle")&&(s.quoteStyle!=="single"&&s.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(has(s,"maxStringLength")&&(typeof s.maxStringLength==="number"?s.maxStringLength<0&&s.maxStringLength!==Infinity:s.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var a=has(s,"customInspect")?s.customInspect:true;if(typeof a!=="boolean"&&a!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(has(s,"indent")&&s.indent!==null&&s.indent!=="\t"&&!(parseInt(s.indent,10)===s.indent&&s.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(has(s,"numericSeparator")&&typeof s.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var c=s.numericSeparator;if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(typeof e==="boolean"){return e?"true":"false"}if(typeof e==="string"){return inspectString(e,s)}if(typeof e==="number"){if(e===0){return Infinity/e>0?"0":"-0"}var p=String(e);return c?addNumericSeparator(e,p):p}if(typeof e==="bigint"){var d=String(e)+"n";return c?addNumericSeparator(e,d):d}var f=typeof s.depth==="undefined"?5:s.depth;if(typeof r==="undefined"){r=0}if(r>=f&&f>0&&typeof e==="object"){return isArray(e)?"[Array]":"[Object]"}var h=getIndent(s,r);if(typeof n==="undefined"){n=[]}else if(indexOf(n,e)>=0){return"[Circular]"}function inspect(e,t,o){if(t){n=k.call(n);n.push(t)}if(o){var i={depth:s.depth};if(has(s,"quoteStyle")){i.quoteStyle=s.quoteStyle}return inspect_(e,i,r+1,n)}return inspect_(e,s,r+1,n)}if(typeof e==="function"&&!isRegExp(e)){var g=nameOf(e);var m=arrObjKeys(e,inspect);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(m.length>0?" { "+R.call(m,", ")+" }":"")}if(isSymbol(e)){var v=O?_.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(e);return typeof e==="object"&&!O?markBoxed(v):v}if(isElement(e)){var $="<"+A.call(String(e.nodeName));var b=e.attributes||[];for(var S=0;S<b.length;S++){$+=" "+b[S].name+"="+wrapQuotes(quote(b[S].value),"double",s)}$+=">";if(e.childNodes&&e.childNodes.length){$+="..."}$+="</"+A.call(String(e.nodeName))+">";return $}if(isArray(e)){if(e.length===0){return"[]"}var j=arrObjKeys(e,inspect);if(h&&!singleLineValues(j)){return"["+indentedJoin(j,h)+"]"}return"[ "+R.call(j,", ")+" ]"}if(isError(e)){var I=arrObjKeys(e,inspect);if(!("cause"in Error.prototype)&&"cause"in e&&!N.call(e,"cause")){return"{ ["+String(e)+"] "+R.call(x.call("[cause]: "+inspect(e.cause),I),", ")+" }"}if(I.length===0){return"["+String(e)+"]"}return"{ ["+String(e)+"] "+R.call(I,", ")+" }"}if(typeof e==="object"&&a){if(U&&typeof e[U]==="function"&&B){return B(e,{depth:f-r})}else if(a!=="symbol"&&typeof e.inspect==="function"){return e.inspect()}}if(isMap(e)){var T=[];if(i){i.call(e,(function(t,r){T.push(inspect(r,e,true)+" => "+inspect(t,e))}))}return collectionOf("Map",o.call(e),T,h)}if(isSet(e)){var G=[];if(l){l.call(e,(function(t){G.push(inspect(t,e))}))}return collectionOf("Set",u.call(e),G,h)}if(isWeakMap(e)){return weakCollectionOf("WeakMap")}if(isWeakSet(e)){return weakCollectionOf("WeakSet")}if(isWeakRef(e)){return weakCollectionOf("WeakRef")}if(isNumber(e)){return markBoxed(inspect(Number(e)))}if(isBigInt(e)){return markBoxed(inspect(P.call(e)))}if(isBoolean(e)){return markBoxed(y.call(e))}if(isString(e)){return markBoxed(inspect(String(e)))}if(!isDate(e)&&!isRegExp(e)){var q=arrObjKeys(e,inspect);var D=L?L(e)===Object.prototype:e instanceof Object||e.constructor===Object;var H=e instanceof Object?"":"null prototype";var K=!D&&M&&Object(e)===e&&M in e?w.call(toStr(e),8,-1):H?"Object":"";var Y=D||typeof e.constructor!=="function"?"":e.constructor.name?e.constructor.name+" ":"";var W=Y+(K||H?"["+R.call(x.call([],K||[],H||[]),": ")+"] ":"");if(q.length===0){return W+"{}"}if(h){return W+"{"+indentedJoin(q,h)+"}"}return W+"{ "+R.call(q,", ")+" }"}return String(e)};function wrapQuotes(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function quote(e){return _.call(String(e),/"/g,""")}function isArray(e){return toStr(e)==="[object Array]"&&(!M||!(typeof e==="object"&&M in e))}function isDate(e){return toStr(e)==="[object Date]"&&(!M||!(typeof e==="object"&&M in e))}function isRegExp(e){return toStr(e)==="[object RegExp]"&&(!M||!(typeof e==="object"&&M in e))}function isError(e){return toStr(e)==="[object Error]"&&(!M||!(typeof e==="object"&&M in e))}function isString(e){return toStr(e)==="[object String]"&&(!M||!(typeof e==="object"&&M in e))}function isNumber(e){return toStr(e)==="[object Number]"&&(!M||!(typeof e==="object"&&M in e))}function isBoolean(e){return toStr(e)==="[object Boolean]"&&(!M||!(typeof e==="object"&&M in e))}function isSymbol(e){if(O){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!C){return false}try{C.call(e);return true}catch(e){}return false}function isBigInt(e){if(!e||typeof e!=="object"||!P){return false}try{P.call(e);return true}catch(e){}return false}var q=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,t){return q.call(e,t)}function toStr(e){return v.call(e)}function nameOf(e){if(e.name){return e.name}var t=b.call($.call(e),/^function\s*([\w$]+)/);if(t){return t[1]}return null}function indexOf(e,t){if(e.indexOf){return e.indexOf(t)}for(var r=0,n=e.length;r<n;r++){if(e[r]===t){return r}}return-1}function isMap(e){if(!o||!e||typeof e!=="object"){return false}try{o.call(e);try{u.call(e)}catch(e){return true}return e instanceof Map}catch(e){}return false}function isWeakMap(e){if(!d||!e||typeof e!=="object"){return false}try{d.call(e,d);try{h.call(e,h)}catch(e){return true}return e instanceof WeakMap}catch(e){}return false}function isWeakRef(e){if(!m||!e||typeof e!=="object"){return false}try{m.call(e);return true}catch(e){}return false}function isSet(e){if(!u||!e||typeof e!=="object"){return false}try{u.call(e);try{o.call(e)}catch(e){return true}return e instanceof Set}catch(e){}return false}function isWeakSet(e){if(!h||!e||typeof e!=="object"){return false}try{h.call(e,h);try{d.call(e,d)}catch(e){return true}return e instanceof WeakSet}catch(e){}return false}function isElement(e){if(!e||typeof e!=="object"){return false}if(typeof HTMLElement!=="undefined"&&e instanceof HTMLElement){return true}return typeof e.nodeName==="string"&&typeof e.getAttribute==="function"}function inspectString(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength;var n="... "+r+" more character"+(r>1?"s":"");return inspectString(w.call(e,0,t.maxStringLength),t)+n}var s=_.call(_.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(s,"single",t)}function lowbyte(e){var t=e.charCodeAt(0);var r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];if(r){return"\\"+r}return"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,r,n){var s=n?indentedJoin(r,n):R.call(r,", ");return e+" ("+t+") {"+s+"}"}function singleLineValues(e){for(var t=0;t<e.length;t++){if(indexOf(e[t],"\n")>=0){return false}}return true}function getIndent(e,t){var r;if(e.indent==="\t"){r="\t"}else if(typeof e.indent==="number"&&e.indent>0){r=R.call(Array(e.indent+1)," ")}else{return null}return{base:r,prev:R.call(Array(t+1),r)}}function indentedJoin(e,t){if(e.length===0){return""}var r="\n"+t.prev+t.base;return r+R.call(e,","+r)+"\n"+t.prev}function arrObjKeys(e,t){var r=isArray(e);var n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++){n[s]=has(e,s)?t(e[s],e):""}}var o=typeof T==="function"?T(e):[];var i;if(O){i={};for(var a=0;a<o.length;a++){i["$"+o[a]]=o[a]}}for(var c in e){if(!has(e,c)){continue}if(r&&String(Number(c))===c&&c<e.length){continue}if(O&&i["$"+c]instanceof Symbol){continue}else if(j.call(/[^\w$]/,c)){n.push(t(c,e)+": "+t(e[c],e))}else{n.push(c+": "+t(e[c],e))}}if(typeof T==="function"){for(var u=0;u<o.length;u++){if(N.call(e,o[u])){n.push("["+t(o[u])+"]: "+t(e[o[u]],e))}}}return n}},4870:(e,t,r)=>{e.exports=r(9023).inspect},5675:(e,t,r)=>{"use strict";e.exports=r(3193)},7054:(e,t,r)=>{"use strict";const n=r(6928);const s="\\\\/";const o=`[^${s}]`;const i="\\.";const a="\\+";const c="\\?";const u="\\/";const l="(?=.)";const p="[^/]";const d=`(?:${u}|$)`;const f=`(?:^|${u})`;const h=`${i}{1,2}${d}`;const g=`(?!${i})`;const m=`(?!${f}${h})`;const y=`(?!${i}{0,1}${d})`;const v=`(?!${h})`;const $=`[^.${u}]`;const b=`${p}*?`;const w={DOT_LITERAL:i,PLUS_LITERAL:a,QMARK_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:l,QMARK:p,END_ANCHOR:d,DOTS_SLASH:h,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:v,QMARK_NO_DOT:$,STAR:b,START_ANCHOR:f};const _={...w,SLASH_LITERAL:`[${s}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${i}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${i})`,NO_DOTS:`(?!(?:^|[${s}])${i}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${i}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${i}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`};const S={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:S,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?_:w}}},4356:(e,t,r)=>{"use strict";const n=r(7054);const s=r(7910);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=n;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>s.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=u[e]||e;const r={...t};const l=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;let p=e.length;if(p>l){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${l}`)}const d={type:"bos",value:"",output:r.prepend||""};const f=[d];const h=r.capture?"":"?:";const g=s.isWindows(t);const m=n.globChars(g);const y=n.extglobChars(m);const{DOT_LITERAL:v,PLUS_LITERAL:$,SLASH_LITERAL:b,ONE_CHAR:w,DOTS_SLASH:_,NO_DOT:S,NO_DOT_SLASH:A,NO_DOTS_SLASH:j,QMARK:x,QMARK_NO_DOT:R,STAR:k,START_ANCHOR:I}=m;const globstar=e=>`(${h}(?:(?!${I}${e.dot?_:v}).)*?)`;const P=r.dot?"":S;const T=r.dot?x:R;let C=r.bash===true?globstar(r):k;if(r.capture){C=`(${C})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const O={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:f};e=s.removePrefix(e,O);p=e.length;const M=[];const N=[];const L=[];let B=d;let G;const eos=()=>O.index===p-1;const U=O.peek=(t=1)=>e[O.index+t];const q=O.advance=()=>e[++O.index]||"";const remaining=()=>e.slice(O.index+1);const consume=(e="",t=0)=>{O.consumed+=e;O.index+=t};const append=e=>{O.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(U()==="!"&&(U(2)!=="("||U(3)==="?")){q();O.start++;e++}if(e%2===0){return false}O.negated=true;O.start++;return true};const increment=e=>{O[e]++;L.push(e)};const decrement=e=>{O[e]--;L.pop()};const push=e=>{if(B.type==="globstar"){const t=O.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||M.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){O.output=O.output.slice(0,-B.output.length);B.type="star";B.value="*";B.output=C;O.output+=B.output}}if(M.length&&e.type!=="paren"){M[M.length-1].inner+=e.value}if(e.value||e.output)append(e);if(B&&B.type==="text"&&e.type==="text"){B.value+=e.value;B.output=(B.output||"")+e.value;return}e.prev=B;f.push(e);B=e};const extglobOpen=(e,t)=>{const n={...y[t],conditions:1,inner:""};n.prev=B;n.parens=O.parens;n.output=O.output;const s=(r.capture?"(":"")+n.open;increment("parens");push({type:e,value:t,output:O.output?"":w});push({type:"paren",extglob:true,value:q(),output:s});M.push(n)};const extglobClose=e=>{let n=e.close+(r.capture?")":"");let s;if(e.type==="negate"){let o=C;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(r)}if(o!==C||eos()||/^\)+$/.test(remaining())){n=e.close=`)$))${o}`}if(e.inner.includes("*")&&(s=remaining())&&/^\.[^\\/.]+$/.test(s)){const r=parse(s,{...t,fastpaths:false}).output;n=e.close=`)${r})${o})`}if(e.prev.type==="bos"){O.negatedExtglob=true}}push({type:"paren",extglob:true,value:G,output:n});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=false;let o=e.replace(c,((e,t,r,s,o,i)=>{if(s==="\\"){n=true;return e}if(s==="?"){if(t){return t+s+(o?x.repeat(o.length):"")}if(i===0){return T+(o?x.repeat(o.length):"")}return x.repeat(r.length)}if(s==="."){return v.repeat(r.length)}if(s==="*"){if(t){return t+s+(o?C:"")}return C}return t?e:`\\${e}`}));if(n===true){if(r.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&r.contains===true){O.output=e;return O}O.output=s.wrapOutput(o,O,t);return O}while(!eos()){G=q();if(G==="\0"){continue}if(G==="\\"){const e=U();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){G+="\\";push({type:"text",value:G});continue}const t=/^\\+/.exec(remaining());let n=0;if(t&&t[0].length>2){n=t[0].length;O.index+=n;if(n%2!==0){G+="\\"}}if(r.unescape===true){G=q()}else{G+=q()}if(O.brackets===0){push({type:"text",value:G});continue}}if(O.brackets>0&&(G!=="]"||B.value==="["||B.value==="[^")){if(r.posix!==false&&G===":"){const e=B.value.slice(1);if(e.includes("[")){B.posix=true;if(e.includes(":")){const e=B.value.lastIndexOf("[");const t=B.value.slice(0,e);const r=B.value.slice(e+2);const n=i[r];if(n){B.value=t+n;O.backtrack=true;q();if(!d.output&&f.indexOf(B)===1){d.output=w}continue}}}}if(G==="["&&U()!==":"||G==="-"&&U()==="]"){G=`\\${G}`}if(G==="]"&&(B.value==="["||B.value==="[^")){G=`\\${G}`}if(r.posix===true&&G==="!"&&B.value==="["){G="^"}B.value+=G;append({value:G});continue}if(O.quotes===1&&G!=='"'){G=s.escapeRegex(G);B.value+=G;append({value:G});continue}if(G==='"'){O.quotes=O.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:G})}continue}if(G==="("){increment("parens");push({type:"paren",value:G});continue}if(G===")"){if(O.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=M[M.length-1];if(e&&O.parens===e.parens+1){extglobClose(M.pop());continue}push({type:"paren",value:G,output:O.parens?")":"\\)"});decrement("parens");continue}if(G==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}G=`\\${G}`}else{increment("brackets")}push({type:"bracket",value:G});continue}if(G==="]"){if(r.nobracket===true||B&&B.type==="bracket"&&B.value.length===1){push({type:"text",value:G,output:`\\${G}`});continue}if(O.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:G,output:`\\${G}`});continue}decrement("brackets");const e=B.value.slice(1);if(B.posix!==true&&e[0]==="^"&&!e.includes("/")){G=`/${G}`}B.value+=G;append({value:G});if(r.literalBrackets===false||s.hasRegexChars(e)){continue}const t=s.escapeRegex(B.value);O.output=O.output.slice(0,-B.value.length);if(r.literalBrackets===true){O.output+=t;B.value=t;continue}B.value=`(${h}${t}|${B.value})`;O.output+=B.value;continue}if(G==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:G,output:"(",outputIndex:O.output.length,tokensIndex:O.tokens.length};N.push(e);push(e);continue}if(G==="}"){const e=N[N.length-1];if(r.nobrace===true||!e){push({type:"text",value:G,output:G});continue}let t=")";if(e.dots===true){const e=f.slice();const n=[];for(let t=e.length-1;t>=0;t--){f.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){n.unshift(e[t].value)}}t=expandRange(n,r);O.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=O.output.slice(0,e.outputIndex);const n=O.tokens.slice(e.tokensIndex);e.value=e.output="\\{";G=t="\\}";O.output=r;for(const e of n){O.output+=e.output||e.value}}push({type:"brace",value:G,output:t});decrement("braces");N.pop();continue}if(G==="|"){if(M.length>0){M[M.length-1].conditions++}push({type:"text",value:G});continue}if(G===","){let e=G;const t=N[N.length-1];if(t&&L[L.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:G,output:e});continue}if(G==="/"){if(B.type==="dot"&&O.index===O.start+1){O.start=O.index+1;O.consumed="";O.output="";f.pop();B=d;continue}push({type:"slash",value:G,output:b});continue}if(G==="."){if(O.braces>0&&B.type==="dot"){if(B.value===".")B.output=v;const e=N[N.length-1];B.type="dots";B.output+=G;B.value+=G;e.dots=true;continue}if(O.braces+O.parens===0&&B.type!=="bos"&&B.type!=="slash"){push({type:"text",value:G,output:v});continue}push({type:"dot",value:G,output:v});continue}if(G==="?"){const e=B&&B.value==="(";if(!e&&r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("qmark",G);continue}if(B&&B.type==="paren"){const e=U();let t=G;if(e==="<"&&!s.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(B.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${G}`}push({type:"text",value:G,output:t});continue}if(r.dot!==true&&(B.type==="slash"||B.type==="bos")){push({type:"qmark",value:G,output:R});continue}push({type:"qmark",value:G,output:x});continue}if(G==="!"){if(r.noextglob!==true&&U()==="("){if(U(2)!=="?"||!/[!=<:]/.test(U(3))){extglobOpen("negate",G);continue}}if(r.nonegate!==true&&O.index===0){negate();continue}}if(G==="+"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("plus",G);continue}if(B&&B.value==="("||r.regex===false){push({type:"plus",value:G,output:$});continue}if(B&&(B.type==="bracket"||B.type==="paren"||B.type==="brace")||O.parens>0){push({type:"plus",value:G});continue}push({type:"plus",value:$});continue}if(G==="@"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){push({type:"at",extglob:true,value:G,output:""});continue}push({type:"text",value:G});continue}if(G!=="*"){if(G==="$"||G==="^"){G=`\\${G}`}const e=a.exec(remaining());if(e){G+=e[0];O.index+=e[0].length}push({type:"text",value:G});continue}if(B&&(B.type==="globstar"||B.star===true)){B.type="star";B.star=true;B.value+=G;B.output=C;O.backtrack=true;O.globstar=true;consume(G);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",G);continue}if(B.type==="star"){if(r.noglobstar===true){consume(G);continue}const n=B.prev;const s=n.prev;const o=n.type==="slash"||n.type==="bos";const i=s&&(s.type==="star"||s.type==="globstar");if(r.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:G,output:""});continue}const a=O.braces>0&&(n.type==="comma"||n.type==="brace");const c=M.length&&(n.type==="pipe"||n.type==="paren");if(!o&&n.type!=="paren"&&!a&&!c){push({type:"star",value:G,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[O.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(n.type==="bos"&&eos()){B.type="globstar";B.value+=G;B.output=globstar(r);O.output=B.output;O.globstar=true;consume(G);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!i&&eos()){O.output=O.output.slice(0,-(n.output+B.output).length);n.output=`(?:${n.output}`;B.type="globstar";B.output=globstar(r)+(r.strictSlashes?")":"|$)");B.value+=G;O.globstar=true;O.output+=n.output+B.output;consume(G);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";O.output=O.output.slice(0,-(n.output+B.output).length);n.output=`(?:${n.output}`;B.type="globstar";B.output=`${globstar(r)}${b}|${b}${e})`;B.value+=G;O.output+=n.output+B.output;O.globstar=true;consume(G+q());push({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&t[0]==="/"){B.type="globstar";B.value+=G;B.output=`(?:^|${b}|${globstar(r)}${b})`;O.output=B.output;O.globstar=true;consume(G+q());push({type:"slash",value:"/",output:""});continue}O.output=O.output.slice(0,-B.output.length);B.type="globstar";B.output=globstar(r);B.value+=G;O.output+=B.output;O.globstar=true;consume(G);continue}const n={type:"star",value:G,output:C};if(r.bash===true){n.output=".*?";if(B.type==="bos"||B.type==="slash"){n.output=P+n.output}push(n);continue}if(B&&(B.type==="bracket"||B.type==="paren")&&r.regex===true){n.output=G;push(n);continue}if(O.index===O.start||B.type==="slash"||B.type==="dot"){if(B.type==="dot"){O.output+=A;B.output+=A}else if(r.dot===true){O.output+=j;B.output+=j}else{O.output+=P;B.output+=P}if(U()!=="*"){O.output+=w;B.output+=w}}push(n)}while(O.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));O.output=s.escapeLast(O.output,"[");decrement("brackets")}while(O.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));O.output=s.escapeLast(O.output,"(");decrement("parens")}while(O.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));O.output=s.escapeLast(O.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(B.type==="star"||B.type==="bracket")){push({type:"maybe_slash",value:"",output:`${b}?`})}if(O.backtrack===true){O.output="";for(const e of O.tokens){O.output+=e.output!=null?e.output:e.value;if(e.suffix){O.output+=e.suffix}}}return O};parse.fastpaths=(e,t)=>{const r={...t};const i=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;const a=e.length;if(a>i){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${i}`)}e=u[e]||e;const c=s.isWindows(t);const{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:h,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:v}=n.globChars(c);const $=r.dot?g:h;const b=r.dot?m:h;const w=r.capture?"":"?:";const _={negated:false,prefix:""};let S=r.bash===true?".*?":y;if(r.capture){S=`(${S})`}const globstar=e=>{if(e.noglobstar===true)return S;return`(${w}(?:(?!${v}${e.dot?f:l}).)*?)`};const create=e=>{switch(e){case"*":return`${$}${d}${S}`;case".*":return`${l}${d}${S}`;case"*.*":return`${$}${S}${l}${d}${S}`;case"*/*":return`${$}${S}${p}${d}${b}${S}`;case"**":return $+globstar(r);case"**/*":return`(?:${$}${globstar(r)}${p})?${b}${d}${S}`;case"**/*.*":return`(?:${$}${globstar(r)}${p})?${b}${S}${l}${d}${S}`;case"**/.*":return`(?:${$}${globstar(r)}${p})?${l}${d}${S}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+l+t[2]}}};const A=s.removePrefix(e,_);let j=create(A);if(j&&r.strictSlashes!==true){j+=`${p}?`}return j};e.exports=parse},3193:(e,t,r)=>{"use strict";const n=r(6928);const s=r(5330);const o=r(4356);const i=r(7910);const a=r(7054);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const n=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of n){const r=t(e);if(r)return r}return false};return arrayMatcher}const n=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const s=t||{};const o=i.isWindows(t);const a=n?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const c=a.state;delete a.state;let isIgnored=()=>false;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(s.ignore,e,r)}const matcher=(r,n=false)=>{const{isMatch:i,match:u,output:l}=picomatch.test(r,a,t,{glob:e,posix:o});const p={glob:e,state:c,regex:a,posix:o,input:r,output:l,match:u,isMatch:i};if(typeof s.onResult==="function"){s.onResult(p)}if(i===false){p.isMatch=false;return n?p:false}if(isIgnored(r)){if(typeof s.onIgnore==="function"){s.onIgnore(p)}p.isMatch=false;return n?p:false}if(typeof s.onMatch==="function"){s.onMatch(p)}return n?p:true};if(r){matcher.state=c}return matcher};picomatch.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const o=r||{};const a=o.format||(s?i.toPosixSlashes:null);let c=e===n;let u=c&&a?a(e):e;if(c===false){u=a?a(e):e;c=u===n}if(c===false||o.capture===true){if(o.matchBase===true||o.basename===true){c=picomatch.matchBase(e,t,r,s)}else{c=t.exec(u)}}return{isMatch:Boolean(c),match:c,output:u}};picomatch.matchBase=(e,t,r,s=i.isWindows(r))=>{const o=t instanceof RegExp?t:picomatch.makeRe(t,r);return o.test(n.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return o(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>s(e,t);picomatch.compileRe=(e,t,r=false,n=false)=>{if(r===true){return e.output}const s=t||{};const o=s.contains?"":"^";const i=s.contains?"":"$";let a=`${o}(?:${e.output})${i}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const c=picomatch.toRegex(a,t);if(n===true){c.state=e}return c};picomatch.makeRe=(e,t={},r=false,n=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let s={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){s.output=o.fastpaths(e,t)}if(!s.output){s=o(e,t)}return picomatch.compileRe(s,t,r,n)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},5330:(e,t,r)=>{"use strict";const n=r(7910);const{CHAR_ASTERISK:s,CHAR_AT:o,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:v}=r(7054);const isPathSeparator=e=>e===l||e===i;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const $=e.length-1;const b=r.parts===true||r.scanToEnd===true;const w=[];const _=[];const S=[];let A=e;let j=-1;let x=0;let R=0;let k=false;let I=false;let P=false;let T=false;let C=false;let O=false;let M=false;let N=false;let L=false;let B=false;let G=0;let U;let q;let D={value:"",depth:0,isGlob:false};const eos=()=>j>=$;const peek=()=>A.charCodeAt(j+1);const advance=()=>{U=q;return A.charCodeAt(++j)};while(j<$){q=advance();let e;if(q===i){M=D.backslashes=true;q=advance();if(q===p){O=true}continue}if(O===true||q===p){G++;while(eos()!==true&&(q=advance())){if(q===i){M=D.backslashes=true;advance();continue}if(q===p){G++;continue}if(O!==true&&q===c&&(q=advance())===c){k=D.isBrace=true;P=D.isGlob=true;B=true;if(b===true){continue}break}if(O!==true&&q===a){k=D.isBrace=true;P=D.isGlob=true;B=true;if(b===true){continue}break}if(q===m){G--;if(G===0){O=false;k=D.isBrace=true;B=true;break}}}if(b===true){continue}break}if(q===l){w.push(j);_.push(D);D={value:"",depth:0,isGlob:false};if(B===true)continue;if(U===c&&j===x+1){x+=2;continue}R=j+1;continue}if(r.noext!==true){const e=q===h||q===o||q===s||q===g||q===u;if(e===true&&peek()===d){P=D.isGlob=true;T=D.isExtglob=true;B=true;if(q===u&&j===x){L=true}if(b===true){while(eos()!==true&&(q=advance())){if(q===i){M=D.backslashes=true;q=advance();continue}if(q===y){P=D.isGlob=true;B=true;break}}continue}break}}if(q===s){if(U===s)C=D.isGlobstar=true;P=D.isGlob=true;B=true;if(b===true){continue}break}if(q===g){P=D.isGlob=true;B=true;if(b===true){continue}break}if(q===f){while(eos()!==true&&(e=advance())){if(e===i){M=D.backslashes=true;advance();continue}if(e===v){I=D.isBracket=true;P=D.isGlob=true;B=true;break}}if(b===true){continue}break}if(r.nonegate!==true&&q===u&&j===x){N=D.negated=true;x++;continue}if(r.noparen!==true&&q===d){P=D.isGlob=true;if(b===true){while(eos()!==true&&(q=advance())){if(q===d){M=D.backslashes=true;q=advance();continue}if(q===y){B=true;break}}continue}break}if(P===true){B=true;if(b===true){continue}break}}if(r.noext===true){T=false;P=false}let H=A;let K="";let Y="";if(x>0){K=A.slice(0,x);A=A.slice(x);R-=x}if(H&&P===true&&R>0){H=A.slice(0,R);Y=A.slice(R)}else if(P===true){H="";Y=A}else{H=A}if(H&&H!==""&&H!=="/"&&H!==A){if(isPathSeparator(H.charCodeAt(H.length-1))){H=H.slice(0,-1)}}if(r.unescape===true){if(Y)Y=n.removeBackslashes(Y);if(H&&M===true){H=n.removeBackslashes(H)}}const W={prefix:K,input:e,start:x,base:H,glob:Y,isBrace:k,isBracket:I,isGlob:P,isExtglob:T,isGlobstar:C,negated:N,negatedExtglob:L};if(r.tokens===true){W.maxDepth=0;if(!isPathSeparator(q)){_.push(D)}W.tokens=_}if(r.parts===true||r.tokens===true){let t;for(let n=0;n<w.length;n++){const s=t?t+1:x;const o=w[n];const i=e.slice(s,o);if(r.tokens){if(n===0&&x!==0){_[n].isPrefix=true;_[n].value=K}else{_[n].value=i}depth(_[n]);W.maxDepth+=_[n].depth}if(n!==0||i!==""){S.push(i)}t=o}if(t&&t+1<e.length){const n=e.slice(t+1);S.push(n);if(r.tokens){_[_.length-1].value=n;depth(_[_.length-1]);W.maxDepth+=_[_.length-1].depth}}W.slashes=w;W.parts=S}return W};e.exports=scan},7910:(e,t,r)=>{"use strict";const n=r(6928);const s=process.platform==="win32";const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(7054);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(c,"\\$1");t.toPosixSlashes=e=>e.replace(o,"/");t.removeBackslashes=e=>e.replace(i,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return s===true||n.sep==="\\"};t.escapeLast=(e,r,n)=>{const s=e.lastIndexOf(r,n);if(s===-1)return e;if(e[s-1]==="\\")return t.escapeLast(e,r,s-1);return`${e.slice(0,s)}\\${e.slice(s)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const n=r.contains?"":"^";const s=r.contains?"":"$";let o=`${n}(?:${e})${s}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o}},2799:function(e){(function(t){var r=setTimeout;function noop(){}function bind(e,t){return function(){e.apply(t,arguments)}}function Promise(e){if(!(this instanceof Promise))throw new TypeError("Promises must be constructed via new");if(typeof e!=="function")throw new TypeError("not a function");this._state=0;this._handled=false;this._value=undefined;this._deferreds=[];doResolve(e,this)}function handle(e,t){while(e._state===3){e=e._value}if(e._state===0){e._deferreds.push(t);return}e._handled=true;Promise._immediateFn((function(){var r=e._state===1?t.onFulfilled:t.onRejected;if(r===null){(e._state===1?resolve:reject)(t.promise,e._value);return}var n;try{n=r(e._value)}catch(e){reject(t.promise,e);return}resolve(t.promise,n)}))}function resolve(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&(typeof t==="object"||typeof t==="function")){var r=t.then;if(t instanceof Promise){e._state=3;e._value=t;finale(e);return}else if(typeof r==="function"){doResolve(bind(r,t),e);return}}e._state=1;e._value=t;finale(e)}catch(t){reject(e,t)}}function reject(e,t){e._state=2;e._value=t;finale(e)}function finale(e){if(e._state===2&&e._deferreds.length===0){Promise._immediateFn((function(){if(!e._handled){Promise._unhandledRejectionFn(e._value)}}))}for(var t=0,r=e._deferreds.length;t<r;t++){handle(e,e._deferreds[t])}e._deferreds=null}function Handler(e,t,r){this.onFulfilled=typeof e==="function"?e:null;this.onRejected=typeof t==="function"?t:null;this.promise=r}function doResolve(e,t){var r=false;try{e((function(e){if(r)return;r=true;resolve(t,e)}),(function(e){if(r)return;r=true;reject(t,e)}))}catch(e){if(r)return;r=true;reject(t,e)}}Promise.prototype["catch"]=function(e){return this.then(null,e)};Promise.prototype.then=function(e,t){var r=new this.constructor(noop);handle(this,new Handler(e,t,r));return r};Promise.all=function(e){return new Promise((function(t,r){if(!e||typeof e.length==="undefined")throw new TypeError("Promise.all accepts an array");var n=Array.prototype.slice.call(e);if(n.length===0)return t([]);var s=n.length;function res(e,o){try{if(o&&(typeof o==="object"||typeof o==="function")){var i=o.then;if(typeof i==="function"){i.call(o,(function(t){res(e,t)}),r);return}}n[e]=o;if(--s===0){t(n)}}catch(e){r(e)}}for(var o=0;o<n.length;o++){res(o,n[o])}}))};Promise.resolve=function(e){if(e&&typeof e==="object"&&e.constructor===Promise){return e}return new Promise((function(t){t(e)}))};Promise.reject=function(e){return new Promise((function(t,r){r(e)}))};Promise.race=function(e){return new Promise((function(t,r){for(var n=0,s=e.length;n<s;n++){e[n].then(t,r)}}))};Promise._immediateFn=typeof setImmediate==="function"&&function(e){setImmediate(e)}||function(e){r(e,0)};Promise._unhandledRejectionFn=function _unhandledRejectionFn(e){if(typeof console!=="undefined"&&console){console.warn("Possible Unhandled Promise Rejection:",e)}};Promise._setImmediateFn=function _setImmediateFn(e){Promise._immediateFn=e};Promise._setUnhandledRejectionFn=function _setUnhandledRejectionFn(e){Promise._unhandledRejectionFn=e};if(true&&e.exports){e.exports=Promise}else if(!t.Promise){t.Promise=Promise}})(this)},4570:(e,t,r)=>{if(process.env.npm_package_name==="pseudomap"&&process.env.npm_lifecycle_script==="test")process.env.TEST_PSEUDOMAP="true";if(typeof Map==="function"&&!process.env.TEST_PSEUDOMAP){e.exports=Map}else{e.exports=r(6196)}},6196:e=>{var t=Object.prototype.hasOwnProperty;e.exports=PseudoMap;function PseudoMap(e){if(!(this instanceof PseudoMap))throw new TypeError("Constructor PseudoMap requires 'new'");this.clear();if(e){if(e instanceof PseudoMap||typeof Map==="function"&&e instanceof Map)e.forEach((function(e,t){this.set(t,e)}),this);else if(Array.isArray(e))e.forEach((function(e){this.set(e[0],e[1])}),this);else throw new TypeError("invalid argument")}}PseudoMap.prototype.forEach=function(e,t){t=t||this;Object.keys(this._data).forEach((function(r){if(r!=="size")e.call(t,this._data[r].value,this._data[r].key)}),this)};PseudoMap.prototype.has=function(e){return!!find(this._data,e)};PseudoMap.prototype.get=function(e){var t=find(this._data,e);return t&&t.value};PseudoMap.prototype.set=function(e,t){set(this._data,e,t)};PseudoMap.prototype.delete=function(e){var t=find(this._data,e);if(t){delete this._data[t._index];this._data.size--}};PseudoMap.prototype.clear=function(){var e=Object.create(null);e.size=0;Object.defineProperty(this,"_data",{value:e,enumerable:false,configurable:true,writable:false})};Object.defineProperty(PseudoMap.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:true,configurable:true});PseudoMap.prototype.values=PseudoMap.prototype.keys=PseudoMap.prototype.entries=function(){throw new Error("iterators are not implemented in this version")};function same(e,t){return e===t||e!==e&&t!==t}function Entry(e,t,r){this.key=e;this.value=t;this._index=r}function find(e,r){for(var n=0,s="_"+r,o=s;t.call(e,o);o=s+n++){if(same(e[o].key,r))return e[o]}}function set(e,r,n){for(var s=0,o="_"+r,i=o;t.call(e,i);i=o+s++){if(same(e[i].key,r)){e[i].value=n;return}}e.size++;e[i]=new Entry(r,n,i)}},4495:e=>{"use strict";var t=String.prototype.replace;var r=/%20/g;var n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},891:(e,t,r)=>{"use strict";var n=r(7098);var s=r(900);var o=r(4495);e.exports={formats:o,parse:s,stringify:n}},900:(e,t,r)=>{"use strict";var n=r(7862);var s=Object.prototype.hasOwnProperty;var o=Array.isArray;var i={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))};var parseArrayValue=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var a="utf8=%26%2310003%3B";var c="utf8=%E2%9C%93";var u=function parseQueryStringValues(e,t){var r={__proto__:null};var u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;var l=t.parameterLimit===Infinity?undefined:t.parameterLimit;var p=u.split(t.delimiter,l);var d=-1;var f;var h=t.charset;if(t.charsetSentinel){for(f=0;f<p.length;++f){if(p[f].indexOf("utf8=")===0){if(p[f]===c){h="utf-8"}else if(p[f]===a){h="iso-8859-1"}d=f;f=p.length}}}for(f=0;f<p.length;++f){if(f===d){continue}var g=p[f];var m=g.indexOf("]=");var y=m===-1?g.indexOf("="):m+1;var v,$;if(y===-1){v=t.decoder(g,i.decoder,h,"key");$=t.strictNullHandling?null:""}else{v=t.decoder(g.slice(0,y),i.decoder,h,"key");$=n.maybeMap(parseArrayValue(g.slice(y+1),t),(function(e){return t.decoder(e,i.decoder,h,"value")}))}if($&&t.interpretNumericEntities&&h==="iso-8859-1"){$=interpretNumericEntities($)}if(g.indexOf("[]=")>-1){$=o($)?[$]:$}if(s.call(r,v)){r[v]=n.combine(r[v],$)}else{r[v]=$}}return r};var parseObject=function(e,t,r,n){var s=n?t:parseArrayValue(t,r);for(var o=e.length-1;o>=0;--o){var i;var a=e[o];if(a==="[]"&&r.parseArrays){i=[].concat(s)}else{i=r.plainObjects?Object.create(null):{};var c=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a;var u=parseInt(c,10);if(!r.parseArrays&&c===""){i={0:s}}else if(!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&(r.parseArrays&&u<=r.arrayLimit)){i=[];i[u]=s}else if(c!=="__proto__"){i[c]=s}}s=i}return s};var l=function parseQueryStringKeys(e,t,r,n){if(!e){return}var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var i=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var c=r.depth>0&&i.exec(o);var u=c?o.slice(0,c.index):o;var l=[];if(u){if(!r.plainObjects&&s.call(Object.prototype,u)){if(!r.allowPrototypes){return}}l.push(u)}var p=0;while(r.depth>0&&(c=a.exec(o))!==null&&p<r.depth){p+=1;if(!r.plainObjects&&s.call(Object.prototype,c[1].slice(1,-1))){if(!r.allowPrototypes){return}}l.push(c[1])}if(c){l.push("["+o.slice(c.index)+"]")}return parseObject(l,t,r,n)};var p=function normalizeParseOptions(e){if(!e){return i}if(e.decoder!==null&&e.decoder!==undefined&&typeof e.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var t=typeof e.charset==="undefined"?i.charset:e.charset;return{allowDots:typeof e.allowDots==="undefined"?i.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes==="boolean"?e.allowPrototypes:i.allowPrototypes,allowSparse:typeof e.allowSparse==="boolean"?e.allowSparse:i.allowSparse,arrayLimit:typeof e.arrayLimit==="number"?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:i.charsetSentinel,comma:typeof e.comma==="boolean"?e.comma:i.comma,decoder:typeof e.decoder==="function"?e.decoder:i.decoder,delimiter:typeof e.delimiter==="string"||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:typeof e.depth==="number"||e.depth===false?+e.depth:i.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===true,interpretNumericEntities:typeof e.interpretNumericEntities==="boolean"?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==="number"?e.parameterLimit:i.parameterLimit,parseArrays:e.parseArrays!==false,plainObjects:typeof e.plainObjects==="boolean"?e.plainObjects:i.plainObjects,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var r=p(t);if(e===""||e===null||typeof e==="undefined"){return r.plainObjects?Object.create(null):{}}var s=typeof e==="string"?u(e,r):e;var o=r.plainObjects?Object.create(null):{};var i=Object.keys(s);for(var a=0;a<i.length;++a){var c=i[a];var d=l(c,s[c],r,typeof e==="string");o=n.merge(o,d,r)}if(r.allowSparse===true){return o}return n.compact(o)}},7098:(e,t,r)=>{"use strict";var n=r(540);var s=r(7862);var o=r(4495);var i=Object.prototype.hasOwnProperty;var a={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var c=Array.isArray;var u=Array.prototype.push;var pushToArray=function(e,t){u.apply(e,c(t)?t:[t])};var l=Date.prototype.toISOString;var p=o["default"];var d={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:s.encode,encodeValuesOnly:false,format:p,formatter:o.formatters[p],indices:false,serializeDate:function serializeDate(e){return l.call(e)},skipNulls:false,strictNullHandling:false};var f=function isNonNullishPrimitive(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var h={};var g=function stringify(e,t,r,o,i,a,u,l,p,g,m,y,v,$,b,w){var _=e;var S=w;var A=0;var j=false;while((S=S.get(h))!==void undefined&&!j){var x=S.get(e);A+=1;if(typeof x!=="undefined"){if(x===A){throw new RangeError("Cyclic object value")}else{j=true}}if(typeof S.get(h)==="undefined"){A=0}}if(typeof l==="function"){_=l(t,_)}else if(_ instanceof Date){_=m(_)}else if(r==="comma"&&c(_)){_=s.maybeMap(_,(function(e){if(e instanceof Date){return m(e)}return e}))}if(_===null){if(i){return u&&!$?u(t,d.encoder,b,"key",y):t}_=""}if(f(_)||s.isBuffer(_)){if(u){var R=$?t:u(t,d.encoder,b,"key",y);return[v(R)+"="+v(u(_,d.encoder,b,"value",y))]}return[v(t)+"="+v(String(_))]}var k=[];if(typeof _==="undefined"){return k}var I;if(r==="comma"&&c(_)){if($&&u){_=s.maybeMap(_,u)}I=[{value:_.length>0?_.join(",")||null:void undefined}]}else if(c(l)){I=l}else{var P=Object.keys(_);I=p?P.sort(p):P}var T=o&&c(_)&&_.length===1?t+"[]":t;for(var C=0;C<I.length;++C){var O=I[C];var M=typeof O==="object"&&typeof O.value!=="undefined"?O.value:_[O];if(a&&M===null){continue}var N=c(_)?typeof r==="function"?r(T,O):T:T+(g?"."+O:"["+O+"]");w.set(e,A);var L=n();L.set(h,w);pushToArray(k,stringify(M,N,r,o,i,a,r==="comma"&&$&&c(_)?null:u,l,p,g,m,y,v,$,b,L))}return k};var m=function normalizeStringifyOptions(e){if(!e){return d}if(e.encoder!==null&&typeof e.encoder!=="undefined"&&typeof e.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var t=e.charset||d.charset;if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=o["default"];if(typeof e.format!=="undefined"){if(!i.call(o.formatters,e.format)){throw new TypeError("Unknown format option provided.")}r=e.format}var n=o.formatters[r];var s=d.filter;if(typeof e.filter==="function"||c(e.filter)){s=e.filter}return{addQueryPrefix:typeof e.addQueryPrefix==="boolean"?e.addQueryPrefix:d.addQueryPrefix,allowDots:typeof e.allowDots==="undefined"?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:d.charsetSentinel,delimiter:typeof e.delimiter==="undefined"?d.delimiter:e.delimiter,encode:typeof e.encode==="boolean"?e.encode:d.encode,encoder:typeof e.encoder==="function"?e.encoder:d.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==="boolean"?e.encodeValuesOnly:d.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:typeof e.serializeDate==="function"?e.serializeDate:d.serializeDate,skipNulls:typeof e.skipNulls==="boolean"?e.skipNulls:d.skipNulls,sort:typeof e.sort==="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r=e;var s=m(t);var o;var i;if(typeof s.filter==="function"){i=s.filter;r=i("",r)}else if(c(s.filter)){i=s.filter;o=i}var u=[];if(typeof r!=="object"||r===null){return""}var l;if(t&&t.arrayFormat in a){l=t.arrayFormat}else if(t&&"indices"in t){l=t.indices?"indices":"repeat"}else{l="indices"}var p=a[l];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var d=p==="comma"&&t&&t.commaRoundTrip;if(!o){o=Object.keys(r)}if(s.sort){o.sort(s.sort)}var f=n();for(var h=0;h<o.length;++h){var y=o[h];if(s.skipNulls&&r[y]===null){continue}pushToArray(u,g(r[y],y,p,d,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,f))}var v=u.join(s.delimiter);var $=s.addQueryPrefix===true?"?":"";if(s.charsetSentinel){if(s.charset==="iso-8859-1"){$+="utf8=%26%2310003%3B&"}else{$+="utf8=%E2%9C%93&"}}return v.length>0?$+v:""}},7862:(e,t,r)=>{"use strict";var n=r(4495);var s=Object.prototype.hasOwnProperty;var o=Array.isArray;var i=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var a=function compactQueue(e){while(e.length>1){var t=e.pop();var r=t.obj[t.prop];if(o(r)){var n=[];for(var s=0;s<r.length;++s){if(typeof r[s]!=="undefined"){n.push(r[s])}}t.obj[t.prop]=n}}};var c=function arrayToObject(e,t){var r=t&&t.plainObjects?Object.create(null):{};for(var n=0;n<e.length;++n){if(typeof e[n]!=="undefined"){r[n]=e[n]}}return r};var u=function merge(e,t,r){if(!t){return e}if(typeof t!=="object"){if(o(e)){e.push(t)}else if(e&&typeof e==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!s.call(Object.prototype,t)){e[t]=true}}else{return[e,t]}return e}if(!e||typeof e!=="object"){return[e].concat(t)}var n=e;if(o(e)&&!o(t)){n=c(e,r)}if(o(e)&&o(t)){t.forEach((function(t,n){if(s.call(e,n)){var o=e[n];if(o&&typeof o==="object"&&t&&typeof t==="object"){e[n]=merge(o,t,r)}else{e.push(t)}}else{e[n]=t}}));return e}return Object.keys(t).reduce((function(e,n){var o=t[n];if(s.call(e,n)){e[n]=merge(e[n],o,r)}else{e[n]=o}return e}),n)};var l=function assignSingleSource(e,t){return Object.keys(t).reduce((function(e,r){e[r]=t[r];return e}),e)};var decode=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1"){return n.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(n)}catch(e){return n}};var p=function encode(e,t,r,s,o){if(e.length===0){return e}var a=e;if(typeof e==="symbol"){a=Symbol.prototype.toString.call(e)}else if(typeof e!=="string"){a=String(e)}if(r==="iso-8859-1"){return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var c="";for(var u=0;u<a.length;++u){var l=a.charCodeAt(u);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===n.RFC1738&&(l===40||l===41)){c+=a.charAt(u);continue}if(l<128){c=c+i[l];continue}if(l<2048){c=c+(i[192|l>>6]+i[128|l&63]);continue}if(l<55296||l>=57344){c=c+(i[224|l>>12]+i[128|l>>6&63]+i[128|l&63]);continue}u+=1;l=65536+((l&1023)<<10|a.charCodeAt(u)&1023);c+=i[240|l>>18]+i[128|l>>12&63]+i[128|l>>6&63]+i[128|l&63]}return c};var d=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var n=0;n<t.length;++n){var s=t[n];var o=s.obj[s.prop];var i=Object.keys(o);for(var c=0;c<i.length;++c){var u=i[c];var l=o[u];if(typeof l==="object"&&l!==null&&r.indexOf(l)===-1){t.push({obj:o,prop:u});r.push(l)}}}a(t);return e};var f=function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"};var h=function isBuffer(e){if(!e||typeof e!=="object"){return false}return!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};var g=function combine(e,t){return[].concat(e,t)};var m=function maybeMap(e,t){if(o(e)){var r=[];for(var n=0;n<e.length;n+=1){r.push(t(e[n]))}return r}return t(e)};e.exports={arrayToObject:c,assign:l,combine:g,compact:d,decode:decode,encode:p,isBuffer:h,isRegExp:f,maybeMap:m,merge:u}},3798:(e,t,r)=>{"use strict";var n=r(7596);var s=r(2071);var o=r(8122)();var i=r(5583);var a=r(4785);var c=n("%Math.floor%");e.exports=function setFunctionLength(e,t){if(typeof e!=="function"){throw new a("`fn` is not a function")}if(typeof t!=="number"||t<0||t>4294967295||c(t)!==t){throw new a("`length` must be a positive 32-bit integer")}var r=arguments.length>2&&!!arguments[2];var n=true;var u=true;if("length"in e&&i){var l=i(e,"length");if(l&&!l.configurable){n=false}if(l&&!l.writable){u=false}}if(n||u||!r){if(o){s(e,"length",t,true,true)}else{s(e,"length",t)}}return e}},540:(e,t,r)=>{"use strict";var n=r(7596);var s=r(3845);var o=r(666);var i=n("%TypeError%");var a=n("%WeakMap%",true);var c=n("%Map%",true);var u=s("WeakMap.prototype.get",true);var l=s("WeakMap.prototype.set",true);var p=s("WeakMap.prototype.has",true);var d=s("Map.prototype.get",true);var f=s("Map.prototype.set",true);var h=s("Map.prototype.has",true);var listGetNode=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n){if(n.key===t){r.next=n.next;n.next=e.next;e.next=n;return n}}};var listGet=function(e,t){var r=listGetNode(e,t);return r&&r.value};var listSet=function(e,t,r){var n=listGetNode(e,t);if(n){n.value=r}else{e.next={key:t,next:e.next,value:r}}};var listHas=function(e,t){return!!listGetNode(e,t)};e.exports=function getSideChannel(){var e;var t;var r;var n={assert:function(e){if(!n.has(e)){throw new i("Side channel does not contain "+o(e))}},get:function(n){if(a&&n&&(typeof n==="object"||typeof n==="function")){if(e){return u(e,n)}}else if(c){if(t){return d(t,n)}}else{if(r){return listGet(r,n)}}},has:function(n){if(a&&n&&(typeof n==="object"||typeof n==="function")){if(e){return p(e,n)}}else if(c){if(t){return h(t,n)}}else{if(r){return listHas(r,n)}}return false},set:function(n,s){if(a&&n&&(typeof n==="object"||typeof n==="function")){if(!e){e=new a}l(e,n,s)}else if(c){if(!t){t=new c}f(t,n,s)}else{if(!r){r={key:{},next:null}}listSet(r,n,s)}}};return n}},743:(e,t,r)=>{"use strict";
|
|
20
20
|
/*!
|
|
21
21
|
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
22
22
|
*
|