From 68abf7bfe33bc808d268e4da82267d551f882567 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Thu, 27 Jul 2023 23:24:28 +0100 Subject: [PATCH] Update @depot/actions-public-oidc-client to v1.0.0 --- dist/index.js | 2 +- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4c31f74..14b6a77 100644 --- a/dist/index.js +++ b/dist/index.js @@ -10,7 +10,7 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}D.g `)}var r1=class extends Error{constructor(e,r,a){super(j8(a)),this.request=e,this.headers=r,this.response=a,this.name="GraphqlResponseError",this.errors=a.errors,this.data=a.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},q8=["method","baseUrl","url","headers","request","query","mediaType"],B8=["query","method","url"],Jl=/\/api\/v3\/?$/;function M8(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let n in r)if(B8.includes(n))return Promise.reject(new Error(`[@octokit/graphql] "${n}" cannot be used as variable name`))}let a=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(a).reduce((n,o)=>q8.includes(o)?(n[o]=a[o],n):(n.variables||(n.variables={}),n.variables[o]=a[o],n),{}),s=a.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Jl.test(s)&&(i.url=s.replace(Jl,"/api/graphql")),t(i).then(n=>{if(n.data.errors){let o={};for(let p of Object.keys(n.headers))o[p]=n.headers[p];throw new r1(i,o,n.data)}return n.data.data})}function nn(t,e){let r=t.defaults(e);return Object.assign((i,s)=>M8(r,i,s),{defaults:nn.bind(null,r),endpoint:Xl.request.endpoint})}var H8=nn(Xl.request,{headers:{"user-agent":`octokit-graphql.js/${U8} ${$8.getUserAgent()}`},method:"POST",url:"/graphql"});function z8(t){return nn(t,{method:"POST",url:"/graphql"})}Ya.GraphqlResponseError=r1;Ya.graphql=H8;Ya.withCustomRequest=z8});var Ql=f(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});var W8=/^v1\./,J8=/^ghs_/,X8=/^ghu_/;async function K8(t){let e=t.split(/\./).length===3,r=W8.test(t)||J8.test(t),a=X8.test(t);return{type:"token",token:t,tokenType:e?"app":r?"installation":a?"user-to-server":"oauth"}}function Q8(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Y8(t,e,r,a){let i=e.endpoint.merge(r,a);return i.headers.authorization=Q8(t),e(i)}var Z8=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(K8.bind(null,e),{hook:Y8.bind(null,e)})};on.createTokenAuth=Z8});var e2=f(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});var e7=ja(),t7=Hd(),Yl=sn(),r7=Kl(),a7=Ql();function i7(t,e){if(t==null)return{};var r={},a=Object.keys(t),i,s;for(s=0;s=0)&&(r[i]=t[i]);return r}function s7(t,e){if(t==null)return{};var r=i7(t,e),a,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var Zl="3.6.0",n7=["authStrategy"],Za=class{constructor(e={}){let r=new t7.Collection,a={baseUrl:Yl.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(a.headers["user-agent"]=[e.userAgent,`octokit-core.js/${Zl} ${e7.getUserAgent()}`].filter(Boolean).join(" "),e.baseUrl&&(a.baseUrl=e.baseUrl),e.previews&&(a.mediaType.previews=e.previews),e.timeZone&&(a.headers["time-zone"]=e.timeZone),this.request=Yl.request.defaults(a),this.graphql=r7.withCustomRequest(this.request).defaults(a),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=r,e.authStrategy){let{authStrategy:s}=e,n=s7(e,n7),o=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));r.wrap("request",o.hook),this.auth=o}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=a7.createTokenAuth(e.auth);r.wrap("request",s.hook),this.auth=s}this.constructor.plugins.forEach(s=>{Object.assign(this,s(this,e))})}static defaults(e){return class extends this{constructor(...a){let i=a[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugin(...e){var r;let a=this.plugins;return r=class extends this{},r.plugins=a.concat(e.filter(s=>!a.includes(s))),r}};Za.VERSION=Zl;Za.plugins=[];pn.Octokit=Za});var p2=f(a1=>{"use strict";Object.defineProperty(a1,"__esModule",{value:!0});function t2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,a)}return r}function r2(t){for(var e=1;e{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});var d7="2.21.3";function d2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,a)}return r}function l2(t){for(var e=1;e({async next(){if(!o)return{done:!0};try{let p=await i({method:s,url:o,headers:n}),d=u7(p);return o=((d.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:d}}catch(p){if(p.status!==409)throw p;return o="",{value:{status:200,headers:{},data:[]}}}}})}}function u2(t,e,r,a){return typeof r=="function"&&(a=r,r=void 0),m2(t,[],dn(t,e,r)[Symbol.asyncIterator](),a)}function m2(t,e,r,a){return r.next().then(i=>{if(i.done)return e;let s=!1;function n(){s=!0}return e=e.concat(a?a(i.value,n):i.value.data),s?e:m2(t,e,r,a)})}var m7=Object.assign(u2,{iterator:dn}),c2=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function c7(t){return typeof t=="string"?c2.includes(t):!1}function f2(t){return{paginate:Object.assign(u2.bind(null,t),{iterator:dn.bind(null,t)})}}f2.VERSION=d7;sa.composePaginateRest=m7;sa.isPaginatingEndpoint=c7;sa.paginateRest=f2;sa.paginatingEndpoints=c2});var _2=f(Te=>{"use strict";var f7=Te&&Te.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r),Object.defineProperty(t,a,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),h7=Te&&Te.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),v2=Te&&Te.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&f7(e,t,r);return h7(e,t),e};Object.defineProperty(Te,"__esModule",{value:!0});Te.getOctokitOptions=Te.GitHub=Te.defaults=Te.context=void 0;var g7=v2(Ji()),ln=v2(Pd()),v7=e2(),_7=p2(),w7=h2();Te.context=new g7.Context;var g2=ln.getApiBaseUrl();Te.defaults={baseUrl:g2,request:{agent:ln.getProxyAgent(g2)}};Te.GitHub=v7.Octokit.plugin(_7.restEndpointMethods,w7.paginateRest).defaults(Te.defaults);function E7(t,e){let r=Object.assign({},e||{}),a=ln.getAuthString(t,r);return a&&(r.auth=a),r}Te.getOctokitOptions=E7});var na=f(mt=>{"use strict";var b7=mt&&mt.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r),Object.defineProperty(t,a,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),y7=mt&&mt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),T7=mt&&mt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&b7(e,t,r);return y7(e,t),e};Object.defineProperty(mt,"__esModule",{value:!0});mt.getOctokit=mt.context=void 0;var S7=T7(Ji()),w2=_2();mt.context=new S7.Context;function O7(t,e,...r){let a=w2.GitHub.plugin(...r);return new a(w2.getOctokitOptions(t,e))}mt.getOctokit=O7});var mn=f(R=>{"use strict";var N7=R&&R.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r),Object.defineProperty(t,a,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),A7=R&&R.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),b2=R&&R.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&N7(e,t,r);return A7(e,t),e},un=R&&R.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})},je;Object.defineProperty(R,"__esModule",{value:!0});R.getCmdPath=R.tryGetExecutablePath=R.isRooted=R.isDirectory=R.exists=R.READONLY=R.UV_FS_O_EXLOCK=R.IS_WINDOWS=R.unlink=R.symlink=R.stat=R.rmdir=R.rm=R.rename=R.readlink=R.readdir=R.open=R.mkdir=R.lstat=R.copyFile=R.chmod=void 0;var y2=b2(require("fs")),i1=b2(require("path"));je=y2.promises,R.chmod=je.chmod,R.copyFile=je.copyFile,R.lstat=je.lstat,R.mkdir=je.mkdir,R.open=je.open,R.readdir=je.readdir,R.readlink=je.readlink,R.rename=je.rename,R.rm=je.rm,R.rmdir=je.rmdir,R.stat=je.stat,R.symlink=je.symlink,R.unlink=je.unlink;R.IS_WINDOWS=process.platform==="win32";R.UV_FS_O_EXLOCK=268435456;R.READONLY=y2.constants.O_RDONLY;function R7(t){return un(this,void 0,void 0,function*(){try{yield R.stat(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}R.exists=R7;function D7(t,e=!1){return un(this,void 0,void 0,function*(){return(e?yield R.stat(t):yield R.lstat(t)).isDirectory()})}R.isDirectory=D7;function I7(t){if(t=C7(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return R.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}R.isRooted=I7;function P7(t,e){return un(this,void 0,void 0,function*(){let r;try{r=yield R.stat(t)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${i}`)}if(r&&r.isFile()){if(R.IS_WINDOWS){let i=i1.extname(t).toUpperCase();if(e.some(s=>s.toUpperCase()===i))return t}else if(E2(r))return t}let a=t;for(let i of e){t=a+i,r=void 0;try{r=yield R.stat(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(R.IS_WINDOWS){try{let s=i1.dirname(t),n=i1.basename(t).toUpperCase();for(let o of yield R.readdir(s))if(n===o.toUpperCase()){t=i1.join(s,o);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${s}`)}return t}else if(E2(r))return t}}return""})}R.tryGetExecutablePath=P7;function C7(t){return t=t||"",R.IS_WINDOWS?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function E2(t){return(t.mode&1)>0||(t.mode&8)>0&&t.gid===process.getgid()||(t.mode&64)>0&&t.uid===process.getuid()}function x7(){var t;return(t=process.env.COMSPEC)!==null&&t!==void 0?t:"cmd.exe"}R.getCmdPath=x7});var oa=f(se=>{"use strict";var G7=se&&se.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r),Object.defineProperty(t,a,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),L7=se&&se.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),T2=se&&se.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&G7(e,t,r);return L7(e,t),e},pr=se&&se.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})};Object.defineProperty(se,"__esModule",{value:!0});se.findInPath=se.which=se.mkdirP=se.rmRF=se.mv=se.cp=void 0;var k7=require("assert"),Lt=T2(require("path")),H=T2(mn());function F7(t,e,r={}){return pr(this,void 0,void 0,function*(){let{force:a,recursive:i,copySourceDirectory:s}=$7(r),n=(yield H.exists(e))?yield H.stat(e):null;if(n&&n.isFile()&&!a)return;let o=n&&n.isDirectory()&&s?Lt.join(e,Lt.basename(t)):e;if(!(yield H.exists(t)))throw new Error(`no such file or directory: ${t}`);if((yield H.stat(t)).isDirectory())if(i)yield A2(t,o,0,a);else throw new Error(`Failed to copy. ${t} is a directory, but tried to copy without recursive flag.`);else{if(Lt.relative(t,o)==="")throw new Error(`'${o}' and '${t}' are the same file`);yield R2(t,o,a)}})}se.cp=F7;function V7(t,e,r={}){return pr(this,void 0,void 0,function*(){if(yield H.exists(e)){let a=!0;if((yield H.isDirectory(e))&&(e=Lt.join(e,Lt.basename(t)),a=yield H.exists(e)),a)if(r.force==null||r.force)yield S2(e);else throw new Error("Destination already exists")}yield cn(Lt.dirname(e)),yield H.rename(t,e)})}se.mv=V7;function S2(t){return pr(this,void 0,void 0,function*(){if(H.IS_WINDOWS&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield H.rm(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}se.rmRF=S2;function cn(t){return pr(this,void 0,void 0,function*(){k7.ok(t,"a path argument must be provided"),yield H.mkdir(t,{recursive:!0})})}se.mkdirP=cn;function O2(t,e){return pr(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let a=yield O2(t,!1);if(!a)throw H.IS_WINDOWS?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return a}let r=yield N2(t);return r&&r.length>0?r[0]:""})}se.which=O2;function N2(t){return pr(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(H.IS_WINDOWS&&process.env.PATHEXT)for(let i of process.env.PATHEXT.split(Lt.delimiter))i&&e.push(i);if(H.isRooted(t)){let i=yield H.tryGetExecutablePath(t,e);return i?[i]:[]}if(t.includes(Lt.sep))return[];let r=[];if(process.env.PATH)for(let i of process.env.PATH.split(Lt.delimiter))i&&r.push(i);let a=[];for(let i of r){let s=yield H.tryGetExecutablePath(Lt.join(i,t),e);s&&a.push(s)}return a})}se.findInPath=N2;function $7(t){let e=t.force==null?!0:t.force,r=!!t.recursive,a=t.copySourceDirectory==null?!0:!!t.copySourceDirectory;return{force:e,recursive:r,copySourceDirectory:a}}function A2(t,e,r,a){return pr(this,void 0,void 0,function*(){if(r>=255)return;r++,yield cn(e);let i=yield H.readdir(t);for(let s of i){let n=`${t}/${s}`,o=`${e}/${s}`;(yield H.lstat(n)).isDirectory()?yield A2(n,o,r,a):yield R2(n,o,a)}yield H.chmod(e,(yield H.stat(t)).mode)})}function R2(t,e,r){return pr(this,void 0,void 0,function*(){if((yield H.lstat(t)).isSymbolicLink()){try{yield H.lstat(e),yield H.unlink(e)}catch(i){i.code==="EPERM"&&(yield H.chmod(e,"0666"),yield H.unlink(e))}let a=yield H.readlink(t);yield H.symlink(a,e,H.IS_WINDOWS?"junction":null)}else(!(yield H.exists(e))||r)&&(yield H.copyFile(t,e))})}});var hn=f(fn=>{"use strict";var j=class extends Error{constructor(e,r,a,...i){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,j),this.code=e;for(let s of i)for(let n in s){let o=s[n];this[n]=Buffer.isBuffer(o)?o.toString(a.encoding):o==null?o:JSON.parse(JSON.stringify(o))}}},U7=function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},P2=function(t){let e=[];for(let r=0,a=t.length;r=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let a=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),a.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let a=this.clone();this.buf[0]=e,a.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},j7=12,q7=13,B7=10,M7=32,H7=9,z7=function(t){return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new s1(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter.map(e=>e.length),t.quote!==null?t.quote.length:0),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new s1(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?0:Math.max(...t.record_delimiter.map(e=>e.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:[Buffer.from(Buffer.from([q7],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([B7],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([j7],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([M7],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([H7],"utf8").toString(),t.encoding)]}},W7=function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},D2=function(t){let e={};for(let a in t)e[W7(a)]=t[a];if(e.encoding===void 0||e.encoding===!0)e.encoding="utf8";else if(e.encoding===null||e.encoding===!1)e.encoding=null;else if(typeof e.encoding!="string"&&e.encoding!==null)throw new j("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(e.encoding)}`],e);if(e.bom===void 0||e.bom===null||e.bom===!1)e.bom=!1;else if(e.bom!==!0)throw new j("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(e.bom)}`],e);if(e.cast_function=null,e.cast===void 0||e.cast===null||e.cast===!1||e.cast==="")e.cast=void 0;else if(typeof e.cast=="function")e.cast_function=e.cast,e.cast=!0;else if(e.cast!==!0)throw new j("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(e.cast)}`],e);if(e.cast_date===void 0||e.cast_date===null||e.cast_date===!1||e.cast_date==="")e.cast_date=!1;else if(e.cast_date===!0)e.cast_date=function(a){let i=Date.parse(a);return isNaN(i)?a:new Date(i)};else if(typeof e.cast_date!="function")throw new j("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(e.cast_date)}`],e);if(e.cast_first_line_to_header=null,e.columns===!0)e.cast_first_line_to_header=void 0;else if(typeof e.columns=="function")e.cast_first_line_to_header=e.columns,e.columns=!0;else if(Array.isArray(e.columns))e.columns=P2(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new j("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(e.columns)}`],e);if(e.group_columns_by_name===void 0||e.group_columns_by_name===null||e.group_columns_by_name===!1)e.group_columns_by_name=!1;else{if(e.group_columns_by_name!==!0)throw new j("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(e.group_columns_by_name)}`],e);if(e.columns===!1)throw new j("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],e)}if(e.comment===void 0||e.comment===null||e.comment===!1||e.comment==="")e.comment=null;else if(typeof e.comment=="string"&&(e.comment=Buffer.from(e.comment,e.encoding)),!Buffer.isBuffer(e.comment))throw new j("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(e.comment)}`],e);let r=JSON.stringify(e.delimiter);if(Array.isArray(e.delimiter)||(e.delimiter=[e.delimiter]),e.delimiter.length===0)throw new j("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],e);if(e.delimiter=e.delimiter.map(function(a){if(a==null||a===!1)return Buffer.from(",",e.encoding);if(typeof a=="string"&&(a=Buffer.from(a,e.encoding)),!Buffer.isBuffer(a)||a.length===0)throw new j("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],e);return a}),e.escape===void 0||e.escape===!0?e.escape=Buffer.from('"',e.encoding):typeof e.escape=="string"?e.escape=Buffer.from(e.escape,e.encoding):(e.escape===null||e.escape===!1)&&(e.escape=null),e.escape!==null&&!Buffer.isBuffer(e.escape))throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(e.escape)}`);if(e.from===void 0||e.from===null)e.from=1;else if(typeof e.from=="string"&&/\d+/.test(e.from)&&(e.from=parseInt(e.from)),Number.isInteger(e.from)){if(e.from<0)throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(t.from)}`)}else throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(e.from)}`);if(e.from_line===void 0||e.from_line===null)e.from_line=1;else if(typeof e.from_line=="string"&&/\d+/.test(e.from_line)&&(e.from_line=parseInt(e.from_line)),Number.isInteger(e.from_line)){if(e.from_line<=0)throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(t.from_line)}`)}else throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(t.from_line)}`);if(e.ignore_last_delimiters===void 0||e.ignore_last_delimiters===null)e.ignore_last_delimiters=!1;else if(typeof e.ignore_last_delimiters=="number")e.ignore_last_delimiters=Math.floor(e.ignore_last_delimiters),e.ignore_last_delimiters===0&&(e.ignore_last_delimiters=!1);else if(typeof e.ignore_last_delimiters!="boolean")throw new j("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(e.ignore_last_delimiters)}`],e);if(e.ignore_last_delimiters===!0&&e.columns===!1)throw new j("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],e);if(e.info===void 0||e.info===null||e.info===!1)e.info=!1;else if(e.info!==!0)throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(e.info)}`);if(e.max_record_size===void 0||e.max_record_size===null||e.max_record_size===!1)e.max_record_size=0;else if(!(Number.isInteger(e.max_record_size)&&e.max_record_size>=0))if(typeof e.max_record_size=="string"&&/\d+/.test(e.max_record_size))e.max_record_size=parseInt(e.max_record_size);else throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(e.max_record_size)}`);if(e.objname===void 0||e.objname===null||e.objname===!1)e.objname=void 0;else if(Buffer.isBuffer(e.objname)){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty buffer");e.encoding===null||(e.objname=e.objname.toString(e.encoding))}else if(typeof e.objname=="string"){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty string")}else if(typeof e.objname!="number")throw new Error(`Invalid Option: objname must be a string or a buffer, got ${e.objname}`);if(e.objname!==void 0){if(typeof e.objname=="number"){if(e.columns!==!1)throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}else if(e.columns===!1)throw Error("Invalid Option: objname field must be combined with columns or be defined as an index")}if(e.on_record===void 0||e.on_record===null)e.on_record=void 0;else if(typeof e.on_record!="function")throw new j("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(e.on_record)}`],e);if(e.quote===null||e.quote===!1||e.quote==="")e.quote=null;else if(e.quote===void 0||e.quote===!0?e.quote=Buffer.from('"',e.encoding):typeof e.quote=="string"&&(e.quote=Buffer.from(e.quote,e.encoding)),!Buffer.isBuffer(e.quote))throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(e.quote)}`);if(e.raw===void 0||e.raw===null||e.raw===!1)e.raw=!1;else if(e.raw!==!0)throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(e.raw)}`);if(e.record_delimiter===void 0)e.record_delimiter=[];else if(typeof e.record_delimiter=="string"||Buffer.isBuffer(e.record_delimiter)){if(e.record_delimiter.length===0)throw new j("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);e.record_delimiter=[e.record_delimiter]}else if(!Array.isArray(e.record_delimiter))throw new j("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);if(e.record_delimiter=e.record_delimiter.map(function(a,i){if(typeof a!="string"&&!Buffer.isBuffer(a))throw new j("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${i},`,`got ${JSON.stringify(a)}`],e);if(a.length===0)throw new j("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${i},`,`got ${JSON.stringify(a)}`],e);return typeof a=="string"&&(a=Buffer.from(a,e.encoding)),a}),typeof e.relax_column_count!="boolean")if(e.relax_column_count===void 0||e.relax_column_count===null)e.relax_column_count=!1;else throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(e.relax_column_count)}`);if(typeof e.relax_column_count_less!="boolean")if(e.relax_column_count_less===void 0||e.relax_column_count_less===null)e.relax_column_count_less=!1;else throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(e.relax_column_count_less)}`);if(typeof e.relax_column_count_more!="boolean")if(e.relax_column_count_more===void 0||e.relax_column_count_more===null)e.relax_column_count_more=!1;else throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(e.relax_column_count_more)}`);if(typeof e.relax_quotes!="boolean")if(e.relax_quotes===void 0||e.relax_quotes===null)e.relax_quotes=!1;else throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(e.relax_quotes)}`);if(typeof e.skip_empty_lines!="boolean")if(e.skip_empty_lines===void 0||e.skip_empty_lines===null)e.skip_empty_lines=!1;else throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(e.skip_empty_lines)}`);if(typeof e.skip_records_with_empty_values!="boolean")if(e.skip_records_with_empty_values===void 0||e.skip_records_with_empty_values===null)e.skip_records_with_empty_values=!1;else throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(e.skip_records_with_empty_values)}`);if(typeof e.skip_records_with_error!="boolean")if(e.skip_records_with_error===void 0||e.skip_records_with_error===null)e.skip_records_with_error=!1;else throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(e.skip_records_with_error)}`);if(e.rtrim===void 0||e.rtrim===null||e.rtrim===!1)e.rtrim=!1;else if(e.rtrim!==!0)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(e.rtrim)}`);if(e.ltrim===void 0||e.ltrim===null||e.ltrim===!1)e.ltrim=!1;else if(e.ltrim!==!0)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(e.ltrim)}`);if(e.trim===void 0||e.trim===null||e.trim===!1)e.trim=!1;else if(e.trim!==!0)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(e.trim)}`);if(e.trim===!0&&t.ltrim!==!1?e.ltrim=!0:e.ltrim!==!0&&(e.ltrim=!1),e.trim===!0&&t.rtrim!==!1?e.rtrim=!0:e.rtrim!==!0&&(e.rtrim=!1),e.to===void 0||e.to===null)e.to=-1;else if(typeof e.to=="string"&&/\d+/.test(e.to)&&(e.to=parseInt(e.to)),Number.isInteger(e.to)){if(e.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(t.to)}`)}else throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(t.to)}`);if(e.to_line===void 0||e.to_line===null)e.to_line=-1;else if(typeof e.to_line=="string"&&/\d+/.test(e.to_line)&&(e.to_line=parseInt(e.to_line)),Number.isInteger(e.to_line)){if(e.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(t.to_line)}`)}else throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(t.to_line)}`);return e},I2=function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},J7=13,X7=10,pa={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},K7=function(t={}){let e={bytes:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},r=D2(t);return{info:e,original_options:t,options:r,state:z7(r),__needMoreData:function(a,i,s){if(s)return!1;let{encoding:n,escape:o,quote:p}=this.options,{quoting:d,needMoreDataSize:l,recordDelimiterMaxLength:u}=this.state,m=i-a-1,c=Math.max(l,u===0?Buffer.from(`\r `,n).length:u,d?(o===null?0:o.length)+p.length:0,d?p.length+u:0);return mT){this.state.stop=!0,n();return}this.state.quoting===!1&&U.length===0&&this.__autoDiscoverRecordDelimiter(S,b)&&(U=this.options.record_delimiter);let I=S[b];if(m===!0&&Tt.append(I),(I===J7||I===X7)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(E!==null&&this.state.quoting===!0&&this.__isEscape(S,b,I)&&b+E.lengthpa[ne].equals(this.state.field.toString())?ne:!1).filter(Boolean)[0],Ee=this.__error(new j("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(F.column)} at line ${F.lines}, value is ${JSON.stringify(this.state.field.toString(p))}`,Ze?`(${Ze} bom)`:void 0],this.options,F,{field:this.state.field}));if(Ee!==void 0)return Ee}}else{this.state.quoting=!0,b+=A.length-1;continue}if(this.state.quoting===!1){let F=this.__isRecordDelimiter(I,S,b);if(F!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),b+=F-1;continue}if(v===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,b+=F-1;continue}this.info.bytes=this.state.bufBytesStart+b;let ot=this.__onField();if(ot!==void 0)return ot;this.info.bytes=this.state.bufBytesStart+b+F;let Le=this.__onRecord(s);if(Le!==void 0)return Le;if(y!==-1&&this.info.records>=y){this.state.stop=!0,n();return}}this.state.commenting=!1,b+=F-1;continue}if(this.state.commenting)continue;if((w===null?0:this.__compareBytes(w,S,b,I))!==0){this.state.commenting=!0;continue}let Ee=this.__isDelimiter(S,b,I);if(Ee!==0){this.info.bytes=this.state.bufBytesStart+b;let ne=this.__onField();if(ne!==void 0)return ne;b+=Ee-1;continue}}}if(this.state.commenting===!1&&u!==0&&this.state.record_length+this.state.field.length>u)return this.__error(new j("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${u}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let pe=l===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(S,b),Er=g===!1||this.state.wasQuoting===!1;if(pe===!0&&Er===!0)this.state.field.append(I);else{if(g===!0&&!this.__isCharTrimable(S,b))return this.__error(new j("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));pe===!1&&(b+=this.__isCharTrimable(S,b)-1);continue}}if(i===!0)if(this.state.quoting===!0){let I=this.__error(new j("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(I!==void 0)return I}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+b;let I=this.__onField();if(I!==void 0)return I;let pe=this.__onRecord(s);if(pe!==void 0)return pe}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=b,this.state.previousBuf=S.slice(b);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},__onRecord:function(a){let{columns:i,group_columns_by_name:s,encoding:n,info:o,from:p,relax_column_count:d,relax_column_count_less:l,relax_column_count_more:u,raw:m,skip_records_with_empty_values:c}=this.options,{enabled:g,record:v}=this.state;if(g===!1)return this.__resetRecord();let y=v.length;if(i===!0){if(c===!0&&I2(v)){this.__resetRecord();return}return this.__firstLineToColumns(v)}if(i===!1&&this.info.records===0&&(this.state.expectedRecordLength=y),y!==this.state.expectedRecordLength){let T=i===!1?new j("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:v}):new j("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${i.length},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:v});if(d===!0||l===!0&&ythis.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=T;else{let w=this.__error(T);if(w)return w}}if(c===!0&&I2(v)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,p===1||this.info.records>=p){let{objname:T}=this.options;if(i!==!1){let w={};for(let E=0,A=v.length;E{let{timchars:p}=this.state;e:for(let d=0;d=0},__compareBytes:function(a,i,s,n){if(a[0]!==n)return 0;let o=a.length;for(let p=1;pthis.state.record.length?a[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}},Q7=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],a=K7(e),i=p=>{a.options.objname===void 0?r.push(p):r[p[0]]=p[1]},s=()=>{},n=a.parse(t,!1,i,s);if(n!==void 0)throw n;let o=a.parse(void 0,!0,i,s);if(o!==void 0)throw o;return r};fn.CsvError=j;fn.parse=Q7});var gn=f(qe=>{"use strict";var Y7=qe&&qe.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,a,i)}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),Z7=qe&&qe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),x2=qe&&qe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Y7(e,t,r);return Z7(e,t),e},C2=qe&&qe.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})},ef=qe&&qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qe,"__esModule",{value:!0});qe.Util=void 0;var tf=ef(require("fs")),rf=x2(fe()),af=x2(oa()),sf=hn(),ei=class{static getInputList(e,r){let a=[],i=rf.getInput(e);if(i=="")return a;let s=(0,sf.parse)(i,{columns:!1,relaxQuotes:!0,comment:"#",relaxColumnCount:!0,skipEmptyLines:!0,quote:r==null?void 0:r.quote});for(let n of s)n.length==1?r!=null&&r.ignoreComma?a.push(n[0]):a.push(...n[0].split(",")):r!=null&&r.ignoreComma?a.push(n.join(",")):a.push(...n);return a.filter(n=>n).map(n=>n.trim())}static asyncForEach(e,r){return C2(this,void 0,void 0,function*(){for(let a=0;a{"use strict";var gf=Be&&Be.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r),Object.defineProperty(t,a,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),vf=Be&&Be.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ua=Be&&Be.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&gf(e,t,r);return vf(e,t),e},z2=Be&&Be.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})};Object.defineProperty(Be,"__esModule",{value:!0});Be.argStringToArray=Be.ToolRunner=void 0;var d1=ua(require("os")),J2=ua(require("events")),_f=ua(require("child_process")),wf=ua(require("path")),Ef=ua(oa()),W2=ua(mn()),bf=require("timers"),l1=process.platform==="win32",yn=class extends J2.EventEmitter{constructor(e,r,a){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=r||[],this.options=a||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,r){let a=this._getSpawnFileName(),i=this._getSpawnArgs(e),s=r?"":"[command]";if(l1)if(this._isCmdFile()){s+=a;for(let n of i)s+=` ${n}`}else if(e.windowsVerbatimArguments){s+=`"${a}"`;for(let n of i)s+=` ${n}`}else{s+=this._windowsQuoteCmdArg(a);for(let n of i)s+=` ${this._windowsQuoteCmdArg(n)}`}else{s+=a;for(let n of i)s+=` ${n}`}return s}_processLineBuffer(e,r,a){try{let i=r+e.toString(),s=i.indexOf(d1.EOL);for(;s>-1;){let n=i.substring(0,s);a(n),i=i.substring(s+d1.EOL.length),s=i.indexOf(d1.EOL)}return i}catch(i){return this._debug(`error processing line. Failed with error ${i}`),""}}_getSpawnFileName(){return l1&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(l1&&this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let a of this.args)r+=" ",r+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a);return r+='"',[r]}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let r=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],a=!1;for(let n of e)if(r.some(o=>o===n)){a=!0;break}if(!a)return e;let i='"',s=!0;for(let n=e.length;n>0;n--)i+=e[n-1],s&&e[n-1]==="\\"?i+="\\":e[n-1]==='"'?(s=!0,i+='"'):s=!1;return i+='"',i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let r='"',a=!0;for(let i=e.length;i>0;i--)r+=e[i-1],a&&e[i-1]==="\\"?r+="\\":e[i-1]==='"'?(a=!0,r+="\\"):a=!1;return r+='"',r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};let r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return r.outStream=e.outStream||process.stdout,r.errStream=e.errStream||process.stderr,r}_getSpawnOptions(e,r){e=e||{};let a={};return a.cwd=e.cwd,a.env=e.env,a.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(a.argv0=`"${r}"`),a}exec(){return z2(this,void 0,void 0,function*(){return!W2.isRooted(this.toolPath)&&(this.toolPath.includes("/")||l1&&this.toolPath.includes("\\"))&&(this.toolPath=wf.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Ef.which(this.toolPath,!0),new Promise((e,r)=>z2(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(let d of this.args)this._debug(` ${d}`);let a=this._cloneExecOptions(this.options);!a.silent&&a.outStream&&a.outStream.write(this._getCommandString(a)+d1.EOL);let i=new ri(a,this.toolPath);if(i.on("debug",d=>{this._debug(d)}),this.options.cwd&&!(yield W2.exists(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let s=this._getSpawnFileName(),n=_f.spawn(s,this._getSpawnArgs(a),this._getSpawnOptions(this.options,s)),o="";n.stdout&&n.stdout.on("data",d=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(d),!a.silent&&a.outStream&&a.outStream.write(d),o=this._processLineBuffer(d,o,l=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(l)})});let p="";if(n.stderr&&n.stderr.on("data",d=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(d),!a.silent&&a.errStream&&a.outStream&&(a.failOnStdErr?a.errStream:a.outStream).write(d),p=this._processLineBuffer(d,p,l=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(l)})}),n.on("error",d=>{i.processError=d.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),n.on("exit",d=>{i.processExitCode=d,i.processExited=!0,this._debug(`Exit code ${d} received from tool '${this.toolPath}'`),i.CheckComplete()}),n.on("close",d=>{i.processExitCode=d,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on("done",(d,l)=>{o.length>0&&this.emit("stdline",o),p.length>0&&this.emit("errline",p),n.removeAllListeners(),d?r(d):e(l)}),this.options.input){if(!n.stdin)throw new Error("child process missing stdin");n.stdin.end(this.options.input)}}))})}};Be.ToolRunner=yn;function yf(t){let e=[],r=!1,a=!1,i="";function s(n){a&&n!=='"'&&(i+="\\"),i+=n,a=!1}for(let n=0;n0&&(e.push(i),i="");continue}s(o)}return i.length>0&&e.push(i.trim()),e}Be.argStringToArray=yf;var ri=class extends J2.EventEmitter{constructor(e,r){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!r)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=r,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=bf.setTimeout(ri.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}}});var u1=f(Me=>{"use strict";var Tf=Me&&Me.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r),Object.defineProperty(t,a,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),Sf=Me&&Me.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Of=Me&&Me.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Tf(e,t,r);return Sf(e,t),e},Y2=Me&&Me.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})};Object.defineProperty(Me,"__esModule",{value:!0});Me.getExecOutput=Me.exec=void 0;var K2=require("string_decoder"),Q2=Of(X2());function Z2(t,e,r){return Y2(this,void 0,void 0,function*(){let a=Q2.argStringToArray(t);if(a.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let i=a[0];return e=a.slice(1).concat(e||[]),new Q2.ToolRunner(i,e,r).exec()})}Me.exec=Z2;function Nf(t,e,r){var a,i;return Y2(this,void 0,void 0,function*(){let s="",n="",o=new K2.StringDecoder("utf8"),p=new K2.StringDecoder("utf8"),d=(a=r==null?void 0:r.listeners)===null||a===void 0?void 0:a.stdout,l=(i=r==null?void 0:r.listeners)===null||i===void 0?void 0:i.stderr,u=v=>{n+=p.write(v),l&&l(v)},m=v=>{s+=o.write(v),d&&d(v)},c=Object.assign(Object.assign({},r==null?void 0:r.listeners),{stdout:m,stderr:u}),g=yield Z2(t,e,Object.assign(Object.assign({},r),{listeners:c}));return s+=o.end(),n+=p.end(),{exitCode:g,stdout:s,stderr:n}})}Me.getExecOutput=Nf});var s0=f((LS,i0)=>{"use strict";var Af=Object.create,m1=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Df=Object.getOwnPropertyNames,If=Object.getPrototypeOf,Pf=Object.prototype.hasOwnProperty,Cf=(t,e)=>{for(var r in e)m1(t,r,{get:e[r],enumerable:!0})},t0=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Df(e))!Pf.call(t,i)&&i!==r&&m1(t,i,{get:()=>e[i],enumerable:!(a=Rf(e,i))||a.enumerable});return t},r0=(t,e,r)=>(r=t!=null?Af(If(t)):{},t0(e||!t||!t.__esModule?m1(r,"default",{value:t,enumerable:!0}):r,t)),xf=t=>t0(m1({},"__esModule",{value:!0}),t),a0={};Cf(a0,{getIDToken:()=>Ff});i0.exports=xf(a0);var Gf=r0(fe()),ai=r0(na()),Lf=br(),kf=t=>new Promise(e=>setTimeout(e,t)),e0=new Lf.HttpClient("@depot/actions-public-oidc-client");async function Ff(t){if(ai.context.eventName!=="pull_request")throw new Error("not a pull request");let e=await e0.postJson("https://actions-public-oidc.depot.dev/claim",{aud:t,eventName:ai.context.eventName,repo:`${ai.context.repo.owner}/${ai.context.repo.repo}`,runID:ai.context.runId.toString()});if(e.statusCode>=400)throw e.result?"error"in e.result?new Error(e.result.error):new Error(`HTTP ${e.statusCode}: ${JSON.stringify(e.result)}`):new Error(`HTTP ${e.statusCode}: no response`);if(!e.result)throw new Error(`HTTP ${e.statusCode}: no response`);if("error"in e.result)throw new Error(e.result.error);let{challengeCode:r,exchangeURL:a}=e.result,i=setInterval(()=>{Gf.info(`Waiting for OIDC auth challenge ${r}`)},1e3);try{for(let s=1;s<5;s++){let n=await e0.post(a,"");if(n.message.statusCode===200)return await n.readBody();await kf(1e3)}throw new Error(`OIDC auth challenge ${r} timed out`)}finally{clearInterval(i)}}});var ii=f((kS,n0)=>{var Vf="2.0.0",$f=Number.MAX_SAFE_INTEGER||9007199254740991,Uf=16,jf=["major","premajor","minor","preminor","patch","prepatch","prerelease"];n0.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Uf,MAX_SAFE_INTEGER:$f,RELEASE_TYPES:jf,SEMVER_SPEC_VERSION:Vf,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var si=f((FS,o0)=>{var qf=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};o0.exports=qf});var ma=f((dr,p0)=>{var{MAX_SAFE_COMPONENT_LENGTH:Tn}=ii(),Bf=si();dr=p0.exports={};var Mf=dr.re=[],O=dr.src=[],N=dr.t={},Hf=0,C=(t,e,r)=>{let a=Hf++;Bf(t,a,e),N[t]=a,O[a]=e,Mf[a]=new RegExp(e,r?"g":void 0)};C("NUMERICIDENTIFIER","0|[1-9]\\d*");C("NUMERICIDENTIFIERLOOSE","[0-9]+");C("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");C("MAINVERSION",`(${O[N.NUMERICIDENTIFIER]})\\.(${O[N.NUMERICIDENTIFIER]})\\.(${O[N.NUMERICIDENTIFIER]})`);C("MAINVERSIONLOOSE",`(${O[N.NUMERICIDENTIFIERLOOSE]})\\.(${O[N.NUMERICIDENTIFIERLOOSE]})\\.(${O[N.NUMERICIDENTIFIERLOOSE]})`);C("PRERELEASEIDENTIFIER",`(?:${O[N.NUMERICIDENTIFIER]}|${O[N.NONNUMERICIDENTIFIER]})`);C("PRERELEASEIDENTIFIERLOOSE",`(?:${O[N.NUMERICIDENTIFIERLOOSE]}|${O[N.NONNUMERICIDENTIFIER]})`);C("PRERELEASE",`(?:-(${O[N.PRERELEASEIDENTIFIER]}(?:\\.${O[N.PRERELEASEIDENTIFIER]})*))`);C("PRERELEASELOOSE",`(?:-?(${O[N.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${O[N.PRERELEASEIDENTIFIERLOOSE]})*))`);C("BUILDIDENTIFIER","[0-9A-Za-z-]+");C("BUILD",`(?:\\+(${O[N.BUILDIDENTIFIER]}(?:\\.${O[N.BUILDIDENTIFIER]})*))`);C("FULLPLAIN",`v?${O[N.MAINVERSION]}${O[N.PRERELEASE]}?${O[N.BUILD]}?`);C("FULL",`^${O[N.FULLPLAIN]}$`);C("LOOSEPLAIN",`[v=\\s]*${O[N.MAINVERSIONLOOSE]}${O[N.PRERELEASELOOSE]}?${O[N.BUILD]}?`);C("LOOSE",`^${O[N.LOOSEPLAIN]}$`);C("GTLT","((?:<|>)?=?)");C("XRANGEIDENTIFIERLOOSE",`${O[N.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);C("XRANGEIDENTIFIER",`${O[N.NUMERICIDENTIFIER]}|x|X|\\*`);C("XRANGEPLAIN",`[v=\\s]*(${O[N.XRANGEIDENTIFIER]})(?:\\.(${O[N.XRANGEIDENTIFIER]})(?:\\.(${O[N.XRANGEIDENTIFIER]})(?:${O[N.PRERELEASE]})?${O[N.BUILD]}?)?)?`);C("XRANGEPLAINLOOSE",`[v=\\s]*(${O[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${O[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${O[N.XRANGEIDENTIFIERLOOSE]})(?:${O[N.PRERELEASELOOSE]})?${O[N.BUILD]}?)?)?`);C("XRANGE",`^${O[N.GTLT]}\\s*${O[N.XRANGEPLAIN]}$`);C("XRANGELOOSE",`^${O[N.GTLT]}\\s*${O[N.XRANGEPLAINLOOSE]}$`);C("COERCE",`(^|[^\\d])(\\d{1,${Tn}})(?:\\.(\\d{1,${Tn}}))?(?:\\.(\\d{1,${Tn}}))?(?:$|[^\\d])`);C("COERCERTL",O[N.COERCE],!0);C("LONETILDE","(?:~>?)");C("TILDETRIM",`(\\s*)${O[N.LONETILDE]}\\s+`,!0);dr.tildeTrimReplace="$1~";C("TILDE",`^${O[N.LONETILDE]}${O[N.XRANGEPLAIN]}$`);C("TILDELOOSE",`^${O[N.LONETILDE]}${O[N.XRANGEPLAINLOOSE]}$`);C("LONECARET","(?:\\^)");C("CARETTRIM",`(\\s*)${O[N.LONECARET]}\\s+`,!0);dr.caretTrimReplace="$1^";C("CARET",`^${O[N.LONECARET]}${O[N.XRANGEPLAIN]}$`);C("CARETLOOSE",`^${O[N.LONECARET]}${O[N.XRANGEPLAINLOOSE]}$`);C("COMPARATORLOOSE",`^${O[N.GTLT]}\\s*(${O[N.LOOSEPLAIN]})$|^$`);C("COMPARATOR",`^${O[N.GTLT]}\\s*(${O[N.FULLPLAIN]})$|^$`);C("COMPARATORTRIM",`(\\s*)${O[N.GTLT]}\\s*(${O[N.LOOSEPLAIN]}|${O[N.XRANGEPLAIN]})`,!0);dr.comparatorTrimReplace="$1$2$3";C("HYPHENRANGE",`^\\s*(${O[N.XRANGEPLAIN]})\\s+-\\s+(${O[N.XRANGEPLAIN]})\\s*$`);C("HYPHENRANGELOOSE",`^\\s*(${O[N.XRANGEPLAINLOOSE]})\\s+-\\s+(${O[N.XRANGEPLAINLOOSE]})\\s*$`);C("STAR","(<|>)?=?\\s*\\*");C("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");C("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var c1=f((VS,d0)=>{var zf=Object.freeze({loose:!0}),Wf=Object.freeze({}),Jf=t=>t?typeof t!="object"?zf:t:Wf;d0.exports=Jf});var Sn=f(($S,m0)=>{var l0=/^[0-9]+$/,u0=(t,e)=>{let r=l0.test(t),a=l0.test(e);return r&&a&&(t=+t,e=+e),t===e?0:r&&!a?-1:a&&!r?1:tu0(e,t);m0.exports={compareIdentifiers:u0,rcompareIdentifiers:Xf}});var Oe=f((US,g0)=>{var f1=si(),{MAX_LENGTH:c0,MAX_SAFE_INTEGER:h1}=ii(),{re:f0,t:h0}=ma(),Kf=c1(),{compareIdentifiers:ca}=Sn(),tt=class{constructor(e,r){if(r=Kf(r),e instanceof tt){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${require("util").inspect(e)}`);if(e.length>c0)throw new TypeError(`version is longer than ${c0} characters`);f1("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let a=e.trim().match(r.loose?f0[h0.LOOSE]:f0[h0.FULL]);if(!a)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>h1||this.major<0)throw new TypeError("Invalid major version");if(this.minor>h1||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>h1||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&a===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];a===!1&&(s=[r]),ca(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};g0.exports=tt});var Or=f((jS,_0)=>{var v0=Oe(),Qf=(t,e,r=!1)=>{if(t instanceof v0)return t;try{return new v0(t,e)}catch(a){if(!r)return null;throw a}};_0.exports=Qf});var E0=f((qS,w0)=>{var Yf=Or(),Zf=(t,e)=>{let r=Yf(t,e);return r?r.version:null};w0.exports=Zf});var y0=f((BS,b0)=>{var eh=Or(),th=(t,e)=>{let r=eh(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};b0.exports=th});var O0=f((MS,S0)=>{var T0=Oe(),rh=(t,e,r,a,i)=>{typeof r=="string"&&(i=a,a=r,r=void 0);try{return new T0(t instanceof T0?t.version:t,r).inc(e,a,i).version}catch{return null}};S0.exports=rh});var R0=f((HS,A0)=>{var N0=Or(),ah=(t,e)=>{let r=N0(t,null,!0),a=N0(e,null,!0),i=r.compare(a);if(i===0)return null;let s=i>0,n=s?r:a,o=s?a:r,p=!!n.prerelease.length,d=p?"pre":"";return r.major!==a.major?d+"major":r.minor!==a.minor?d+"minor":r.patch!==a.patch?d+"patch":p?"prerelease":o.patch?"patch":o.minor?"minor":"major"};A0.exports=ah});var I0=f((zS,D0)=>{var ih=Oe(),sh=(t,e)=>new ih(t,e).major;D0.exports=sh});var C0=f((WS,P0)=>{var nh=Oe(),oh=(t,e)=>new nh(t,e).minor;P0.exports=oh});var G0=f((JS,x0)=>{var ph=Oe(),dh=(t,e)=>new ph(t,e).patch;x0.exports=dh});var k0=f((XS,L0)=>{var lh=Or(),uh=(t,e)=>{let r=lh(t,e);return r&&r.prerelease.length?r.prerelease:null};L0.exports=uh});var ct=f((KS,V0)=>{var F0=Oe(),mh=(t,e,r)=>new F0(t,r).compare(new F0(e,r));V0.exports=mh});var U0=f((QS,$0)=>{var ch=ct(),fh=(t,e,r)=>ch(e,t,r);$0.exports=fh});var q0=f((YS,j0)=>{var hh=ct(),gh=(t,e)=>hh(t,e,!0);j0.exports=gh});var g1=f((ZS,M0)=>{var B0=Oe(),vh=(t,e,r)=>{let a=new B0(t,r),i=new B0(e,r);return a.compare(i)||a.compareBuild(i)};M0.exports=vh});var z0=f((eO,H0)=>{var _h=g1(),wh=(t,e)=>t.sort((r,a)=>_h(r,a,e));H0.exports=wh});var J0=f((tO,W0)=>{var Eh=g1(),bh=(t,e)=>t.sort((r,a)=>Eh(a,r,e));W0.exports=bh});var ni=f((rO,X0)=>{var yh=ct(),Th=(t,e,r)=>yh(t,e,r)>0;X0.exports=Th});var v1=f((aO,K0)=>{var Sh=ct(),Oh=(t,e,r)=>Sh(t,e,r)<0;K0.exports=Oh});var On=f((iO,Q0)=>{var Nh=ct(),Ah=(t,e,r)=>Nh(t,e,r)===0;Q0.exports=Ah});var Nn=f((sO,Y0)=>{var Rh=ct(),Dh=(t,e,r)=>Rh(t,e,r)!==0;Y0.exports=Dh});var _1=f((nO,Z0)=>{var Ih=ct(),Ph=(t,e,r)=>Ih(t,e,r)>=0;Z0.exports=Ph});var w1=f((oO,eu)=>{var Ch=ct(),xh=(t,e,r)=>Ch(t,e,r)<=0;eu.exports=xh});var An=f((pO,tu)=>{var Gh=On(),Lh=Nn(),kh=ni(),Fh=_1(),Vh=v1(),$h=w1(),Uh=(t,e,r,a)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return Gh(t,r,a);case"!=":return Lh(t,r,a);case">":return kh(t,r,a);case">=":return Fh(t,r,a);case"<":return Vh(t,r,a);case"<=":return $h(t,r,a);default:throw new TypeError(`Invalid operator: ${e}`)}};tu.exports=Uh});var au=f((dO,ru)=>{var jh=Oe(),qh=Or(),{re:E1,t:b1}=ma(),Bh=(t,e)=>{if(t instanceof jh)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(E1[b1.COERCE]);else{let a;for(;(a=E1[b1.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||a.index+a[0].length!==r.index+r[0].length)&&(r=a),E1[b1.COERCERTL].lastIndex=a.index+a[1].length+a[2].length;E1[b1.COERCERTL].lastIndex=-1}return r===null?null:qh(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)};ru.exports=Bh});var su=f((lO,iu)=>{"use strict";iu.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var ou=f((uO,nu)=>{"use strict";nu.exports=q;q.Node=Nr;q.create=q;function q(t){var e=this;if(e instanceof q||(e=new q),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,a=arguments.length;r1)r=e;else if(this.head)a=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;a!==null;i++)r=t(r,a.value,i),a=a.next;return r};q.prototype.reduceReverse=function(t,e){var r,a=this.tail;if(arguments.length>1)r=e;else if(this.tail)a=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;a!==null;i--)r=t(r,a.value,i),a=a.prev;return r};q.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};q.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};q.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new q;if(ethis.length&&(e=this.length);for(var a=0,i=this.head;i!==null&&athis.length&&(e=this.length);for(var a=this.length,i=this.tail;i!==null&&a>e;a--)i=i.prev;for(;i!==null&&a>t;a--,i=i.prev)r.push(i.value);return r};q.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var a=0,i=this.head;i!==null&&a{"use strict";var Wh=ou(),Ar=Symbol("max"),zt=Symbol("length"),fa=Symbol("lengthCalculator"),pi=Symbol("allowStale"),Rr=Symbol("maxAge"),Ht=Symbol("dispose"),pu=Symbol("noDisposeOnSet"),ve=Symbol("lruList"),Rt=Symbol("cache"),lu=Symbol("updateAgeOnGet"),Rn=()=>1,In=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let r=this[Ar]=e.max||1/0,a=e.length||Rn;if(this[fa]=typeof a!="function"?Rn:a,this[pi]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Rr]=e.maxAge||0,this[Ht]=e.dispose,this[pu]=e.noDisposeOnSet||!1,this[lu]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Ar]=e||1/0,oi(this)}get max(){return this[Ar]}set allowStale(e){this[pi]=!!e}get allowStale(){return this[pi]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Rr]=e,oi(this)}get maxAge(){return this[Rr]}set lengthCalculator(e){typeof e!="function"&&(e=Rn),e!==this[fa]&&(this[fa]=e,this[zt]=0,this[ve].forEach(r=>{r.length=this[fa](r.value,r.key),this[zt]+=r.length})),oi(this)}get lengthCalculator(){return this[fa]}get length(){return this[zt]}get itemCount(){return this[ve].length}rforEach(e,r){r=r||this;for(let a=this[ve].tail;a!==null;){let i=a.prev;du(this,e,a,r),a=i}}forEach(e,r){r=r||this;for(let a=this[ve].head;a!==null;){let i=a.next;du(this,e,a,r),a=i}}keys(){return this[ve].toArray().map(e=>e.key)}values(){return this[ve].toArray().map(e=>e.value)}reset(){this[Ht]&&this[ve]&&this[ve].length&&this[ve].forEach(e=>this[Ht](e.key,e.value)),this[Rt]=new Map,this[ve]=new Wh,this[zt]=0}dump(){return this[ve].map(e=>y1(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[ve]}set(e,r,a){if(a=a||this[Rr],a&&typeof a!="number")throw new TypeError("maxAge must be a number");let i=a?Date.now():0,s=this[fa](r,e);if(this[Rt].has(e)){if(s>this[Ar])return ha(this,this[Rt].get(e)),!1;let p=this[Rt].get(e).value;return this[Ht]&&(this[pu]||this[Ht](e,p.value)),p.now=i,p.maxAge=a,p.value=r,this[zt]+=s-p.length,p.length=s,this.get(e),oi(this),!0}let n=new Pn(e,r,s,i,a);return n.length>this[Ar]?(this[Ht]&&this[Ht](e,r),!1):(this[zt]+=n.length,this[ve].unshift(n),this[Rt].set(e,this[ve].head),oi(this),!0)}has(e){if(!this[Rt].has(e))return!1;let r=this[Rt].get(e).value;return!y1(this,r)}get(e){return Dn(this,e,!0)}peek(e){return Dn(this,e,!1)}pop(){let e=this[ve].tail;return e?(ha(this,e),e.value):null}del(e){ha(this,this[Rt].get(e))}load(e){this.reset();let r=Date.now();for(let a=e.length-1;a>=0;a--){let i=e[a],s=i.e||0;if(s===0)this.set(i.k,i.v);else{let n=s-r;n>0&&this.set(i.k,i.v,n)}}}prune(){this[Rt].forEach((e,r)=>Dn(this,r,!1))}},Dn=(t,e,r)=>{let a=t[Rt].get(e);if(a){let i=a.value;if(y1(t,i)){if(ha(t,a),!t[pi])return}else r&&(t[lu]&&(a.value.now=Date.now()),t[ve].unshiftNode(a));return i.value}},y1=(t,e)=>{if(!e||!e.maxAge&&!t[Rr])return!1;let r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[Rr]&&r>t[Rr]},oi=t=>{if(t[zt]>t[Ar])for(let e=t[ve].tail;t[zt]>t[Ar]&&e!==null;){let r=e.prev;ha(t,e),e=r}},ha=(t,e)=>{if(e){let r=e.value;t[Ht]&&t[Ht](r.key,r.value),t[zt]-=r.length,t[Rt].delete(r.key),t[ve].removeNode(e)}},Pn=class{constructor(e,r,a,i,s){this.key=e,this.value=r,this.length=a,this.now=i,this.maxAge=s||0}},du=(t,e,r,a)=>{let i=r.value;y1(t,i)&&(ha(t,r),t[pi]||(i=void 0)),i&&e.call(a,i.value,i.key,t)};uu.exports=In});var ft=f((cO,gu)=>{var Dr=class{constructor(e,r){if(r=Xh(r),e instanceof Dr)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new Dr(e.raw,r);if(e instanceof Cn)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e,this.set=e.split("||").map(a=>this.parseRange(a.trim())).filter(a=>a.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let a=this.set[0];if(this.set=this.set.filter(i=>!fu(i[0])),this.set.length===0)this.set=[a];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&rg(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let a=((this.options.includePrerelease&&eg)|(this.options.loose&&tg))+":"+e,i=cu.get(a);if(i)return i;let s=this.options.loose,n=s?He[De.HYPHENRANGELOOSE]:He[De.HYPHENRANGE];e=e.replace(n,mg(this.options.includePrerelease)),ee("hyphen replace",e),e=e.replace(He[De.COMPARATORTRIM],Qh),ee("comparator trim",e),e=e.replace(He[De.TILDETRIM],Yh),e=e.replace(He[De.CARETTRIM],Zh),e=e.split(/\s+/).join(" ");let o=e.split(" ").map(u=>ag(u,this.options)).join(" ").split(/\s+/).map(u=>ug(u,this.options));s&&(o=o.filter(u=>(ee("loose invalid filter",u,this.options),!!u.match(He[De.COMPARATORLOOSE])))),ee("range list",o);let p=new Map,d=o.map(u=>new Cn(u,this.options));for(let u of d){if(fu(u))return[u];p.set(u.value,u)}p.size>1&&p.has("")&&p.delete("");let l=[...p.values()];return cu.set(a,l),l}intersects(e,r){if(!(e instanceof Dr))throw new TypeError("a Range is required");return this.set.some(a=>hu(a,r)&&e.set.some(i=>hu(i,r)&&a.every(s=>i.every(n=>s.intersects(n,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Kh(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0",rg=t=>t.value==="",hu=(t,e)=>{let r=!0,a=t.slice(),i=a.pop();for(;r&&a.length;)r=a.every(s=>i.intersects(s,e)),i=a.pop();return r},ag=(t,e)=>(ee("comp",t,e),t=ng(t,e),ee("caret",t),t=ig(t,e),ee("tildes",t),t=pg(t,e),ee("xrange",t),t=lg(t,e),ee("stars",t),t),Ie=t=>!t||t.toLowerCase()==="x"||t==="*",ig=(t,e)=>t.trim().split(/\s+/).map(r=>sg(r,e)).join(" "),sg=(t,e)=>{let r=e.loose?He[De.TILDELOOSE]:He[De.TILDE];return t.replace(r,(a,i,s,n,o)=>{ee("tilde",t,a,i,s,n,o);let p;return Ie(i)?p="":Ie(s)?p=`>=${i}.0.0 <${+i+1}.0.0-0`:Ie(n)?p=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:o?(ee("replaceTilde pr",o),p=`>=${i}.${s}.${n}-${o} <${i}.${+s+1}.0-0`):p=`>=${i}.${s}.${n} <${i}.${+s+1}.0-0`,ee("tilde return",p),p})},ng=(t,e)=>t.trim().split(/\s+/).map(r=>og(r,e)).join(" "),og=(t,e)=>{ee("caret",t,e);let r=e.loose?He[De.CARETLOOSE]:He[De.CARET],a=e.includePrerelease?"-0":"";return t.replace(r,(i,s,n,o,p)=>{ee("caret",t,i,s,n,o,p);let d;return Ie(s)?d="":Ie(n)?d=`>=${s}.0.0${a} <${+s+1}.0.0-0`:Ie(o)?s==="0"?d=`>=${s}.${n}.0${a} <${s}.${+n+1}.0-0`:d=`>=${s}.${n}.0${a} <${+s+1}.0.0-0`:p?(ee("replaceCaret pr",p),s==="0"?n==="0"?d=`>=${s}.${n}.${o}-${p} <${s}.${n}.${+o+1}-0`:d=`>=${s}.${n}.${o}-${p} <${s}.${+n+1}.0-0`:d=`>=${s}.${n}.${o}-${p} <${+s+1}.0.0-0`):(ee("no pr"),s==="0"?n==="0"?d=`>=${s}.${n}.${o}${a} <${s}.${n}.${+o+1}-0`:d=`>=${s}.${n}.${o}${a} <${s}.${+n+1}.0-0`:d=`>=${s}.${n}.${o} <${+s+1}.0.0-0`),ee("caret return",d),d})},pg=(t,e)=>(ee("replaceXRanges",t,e),t.split(/\s+/).map(r=>dg(r,e)).join(" ")),dg=(t,e)=>{t=t.trim();let r=e.loose?He[De.XRANGELOOSE]:He[De.XRANGE];return t.replace(r,(a,i,s,n,o,p)=>{ee("xRange",t,a,i,s,n,o,p);let d=Ie(s),l=d||Ie(n),u=l||Ie(o),m=u;return i==="="&&m&&(i=""),p=e.includePrerelease?"-0":"",d?i===">"||i==="<"?a="<0.0.0-0":a="*":i&&m?(l&&(n=0),o=0,i===">"?(i=">=",l?(s=+s+1,n=0,o=0):(n=+n+1,o=0)):i==="<="&&(i="<",l?s=+s+1:n=+n+1),i==="<"&&(p="-0"),a=`${i+s}.${n}.${o}${p}`):l?a=`>=${s}.0.0${p} <${+s+1}.0.0-0`:u&&(a=`>=${s}.${n}.0${p} <${s}.${+n+1}.0-0`),ee("xRange return",a),a})},lg=(t,e)=>(ee("replaceStars",t,e),t.trim().replace(He[De.STAR],"")),ug=(t,e)=>(ee("replaceGTE0",t,e),t.trim().replace(He[e.includePrerelease?De.GTE0PRE:De.GTE0],"")),mg=t=>(e,r,a,i,s,n,o,p,d,l,u,m,c)=>(Ie(a)?r="":Ie(i)?r=`>=${a}.0.0${t?"-0":""}`:Ie(s)?r=`>=${a}.${i}.0${t?"-0":""}`:n?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Ie(d)?p="":Ie(l)?p=`<${+d+1}.0.0-0`:Ie(u)?p=`<${d}.${+l+1}.0-0`:m?p=`<=${d}.${l}.${u}-${m}`:t?p=`<${d}.${l}.${+u+1}-0`:p=`<=${p}`,`${r} ${p}`.trim()),cg=(t,e,r)=>{for(let a=0;a0){let i=t[a].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var di=f((fO,yu)=>{var li=Symbol("SemVer ANY"),ga=class{static get ANY(){return li}constructor(e,r){if(r=vu(r),e instanceof ga){if(e.loose===!!r.loose)return e;e=e.value}Gn("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===li?this.value="":this.value=this.operator+this.semver.version,Gn("comp",this)}parse(e){let r=this.options.loose?_u[wu.COMPARATORLOOSE]:_u[wu.COMPARATOR],a=e.match(r);if(!a)throw new TypeError(`Invalid comparator: ${e}`);this.operator=a[1]!==void 0?a[1]:"",this.operator==="="&&(this.operator=""),a[2]?this.semver=new Eu(a[2],this.options.loose):this.semver=li}toString(){return this.value}test(e){if(Gn("Comparator.test",e,this.options.loose),this.semver===li||e===li)return!0;if(typeof e=="string")try{e=new Eu(e,this.options)}catch{return!1}return xn(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof ga))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new bu(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new bu(this.value,r).test(e.semver):(r=vu(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||xn(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||xn(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};yu.exports=ga;var vu=c1(),{re:_u,t:wu}=ma(),xn=An(),Gn=si(),Eu=Oe(),bu=ft()});var ui=f((hO,Tu)=>{var fg=ft(),hg=(t,e,r)=>{try{e=new fg(e,r)}catch{return!1}return e.test(t)};Tu.exports=hg});var Ou=f((gO,Su)=>{var gg=ft(),vg=(t,e)=>new gg(t,e).set.map(r=>r.map(a=>a.value).join(" ").trim().split(" "));Su.exports=vg});var Au=f((vO,Nu)=>{var _g=Oe(),wg=ft(),Eg=(t,e,r)=>{let a=null,i=null,s=null;try{s=new wg(e,r)}catch{return null}return t.forEach(n=>{s.test(n)&&(!a||i.compare(n)===-1)&&(a=n,i=new _g(a,r))}),a};Nu.exports=Eg});var Du=f((_O,Ru)=>{var bg=Oe(),yg=ft(),Tg=(t,e,r)=>{let a=null,i=null,s=null;try{s=new yg(e,r)}catch{return null}return t.forEach(n=>{s.test(n)&&(!a||i.compare(n)===1)&&(a=n,i=new bg(a,r))}),a};Ru.exports=Tg});var Cu=f((wO,Pu)=>{var Ln=Oe(),Sg=ft(),Iu=ni(),Og=(t,e)=>{t=new Sg(t,e);let r=new Ln("0.0.0");if(t.test(r)||(r=new Ln("0.0.0-0"),t.test(r)))return r;r=null;for(let a=0;a{let o=new Ln(n.semver.version);switch(n.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!s||Iu(o,s))&&(s=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${n.operator}`)}}),s&&(!r||Iu(r,s))&&(r=s)}return r&&t.test(r)?r:null};Pu.exports=Og});var Gu=f((EO,xu)=>{var Ng=ft(),Ag=(t,e)=>{try{return new Ng(t,e).range||"*"}catch{return null}};xu.exports=Ag});var T1=f((bO,Vu)=>{var Rg=Oe(),Fu=di(),{ANY:Dg}=Fu,Ig=ft(),Pg=ui(),Lu=ni(),ku=v1(),Cg=w1(),xg=_1(),Gg=(t,e,r,a)=>{t=new Rg(t,a),e=new Ig(e,a);let i,s,n,o,p;switch(r){case">":i=Lu,s=Cg,n=ku,o=">",p=">=";break;case"<":i=ku,s=xg,n=Lu,o="<",p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Pg(t,e,a))return!1;for(let d=0;d{c.semver===Dg&&(c=new Fu(">=0.0.0")),u=u||c,m=m||c,i(c.semver,u.semver,a)?u=c:n(c.semver,m.semver,a)&&(m=c)}),u.operator===o||u.operator===p||(!m.operator||m.operator===o)&&s(t,m.semver))return!1;if(m.operator===p&&n(t,m.semver))return!1}return!0};Vu.exports=Gg});var Uu=f((yO,$u)=>{var Lg=T1(),kg=(t,e,r)=>Lg(t,e,">",r);$u.exports=kg});var qu=f((TO,ju)=>{var Fg=T1(),Vg=(t,e,r)=>Fg(t,e,"<",r);ju.exports=Vg});var Hu=f((SO,Mu)=>{var Bu=ft(),$g=(t,e,r)=>(t=new Bu(t,r),e=new Bu(e,r),t.intersects(e,r));Mu.exports=$g});var Wu=f((OO,zu)=>{var Ug=ui(),jg=ct();zu.exports=(t,e,r)=>{let a=[],i=null,s=null,n=t.sort((l,u)=>jg(l,u,r));for(let l of n)Ug(l,e,r)?(s=l,i||(i=l)):(s&&a.push([i,s]),s=null,i=null);i&&a.push([i,null]);let o=[];for(let[l,u]of a)l===u?o.push(l):!u&&l===n[0]?o.push("*"):u?l===n[0]?o.push(`<=${u}`):o.push(`${l} - ${u}`):o.push(`>=${l}`);let p=o.join(" || "),d=typeof e.raw=="string"?e.raw:String(e);return p.length{var Ju=ft(),Fn=di(),{ANY:kn}=Fn,mi=ui(),Vn=ct(),qg=(t,e,r={})=>{if(t===e)return!0;t=new Ju(t,r),e=new Ju(e,r);let a=!1;e:for(let i of t.set){for(let s of e.set){let n=Mg(i,s,r);if(a=a||n!==null,n)continue e}if(a)return!1}return!0},Bg=[new Fn(">=0.0.0-0")],Xu=[new Fn(">=0.0.0")],Mg=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===kn){if(e.length===1&&e[0].semver===kn)return!0;r.includePrerelease?t=Bg:t=Xu}if(e.length===1&&e[0].semver===kn){if(r.includePrerelease)return!0;e=Xu}let a=new Set,i,s;for(let c of t)c.operator===">"||c.operator===">="?i=Ku(i,c,r):c.operator==="<"||c.operator==="<="?s=Qu(s,c,r):a.add(c.semver);if(a.size>1)return null;let n;if(i&&s){if(n=Vn(i.semver,s.semver,r),n>0)return null;if(n===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let c of a){if(i&&!mi(c,String(i),r)||s&&!mi(c,String(s),r))return null;for(let g of e)if(!mi(c,String(g),r))return!1;return!0}let o,p,d,l,u=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,m=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;u&&u.prerelease.length===1&&s.operator==="<"&&u.prerelease[0]===0&&(u=!1);for(let c of e){if(l=l||c.operator===">"||c.operator===">=",d=d||c.operator==="<"||c.operator==="<=",i){if(m&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===m.major&&c.semver.minor===m.minor&&c.semver.patch===m.patch&&(m=!1),c.operator===">"||c.operator===">="){if(o=Ku(i,c,r),o===c&&o!==i)return!1}else if(i.operator===">="&&!mi(i.semver,String(c),r))return!1}if(s){if(u&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===u.major&&c.semver.minor===u.minor&&c.semver.patch===u.patch&&(u=!1),c.operator==="<"||c.operator==="<="){if(p=Qu(s,c,r),p===c&&p!==s)return!1}else if(s.operator==="<="&&!mi(s.semver,String(c),r))return!1}if(!c.operator&&(s||i)&&n!==0)return!1}return!(i&&d&&!s&&n!==0||s&&l&&!i&&n!==0||m||u)},Ku=(t,e,r)=>{if(!t)return e;let a=Vn(t.semver,e.semver,r);return a>0?t:a<0||e.operator===">"&&t.operator===">="?e:t},Qu=(t,e,r)=>{if(!t)return e;let a=Vn(t.semver,e.semver,r);return a<0?t:a>0||e.operator==="<"&&t.operator==="<="?e:t};Yu.exports=qg});var S1=f((AO,r6)=>{var $n=ma(),e6=ii(),Hg=Oe(),t6=Sn(),zg=Or(),Wg=E0(),Jg=y0(),Xg=O0(),Kg=R0(),Qg=I0(),Yg=C0(),Zg=G0(),ev=k0(),tv=ct(),rv=U0(),av=q0(),iv=g1(),sv=z0(),nv=J0(),ov=ni(),pv=v1(),dv=On(),lv=Nn(),uv=_1(),mv=w1(),cv=An(),fv=au(),hv=di(),gv=ft(),vv=ui(),_v=Ou(),wv=Au(),Ev=Du(),bv=Cu(),yv=Gu(),Tv=T1(),Sv=Uu(),Ov=qu(),Nv=Hu(),Av=Wu(),Rv=Zu();r6.exports={parse:zg,valid:Wg,clean:Jg,inc:Xg,diff:Kg,major:Qg,minor:Yg,patch:Zg,prerelease:ev,compare:tv,rcompare:rv,compareLoose:av,compareBuild:iv,sort:sv,rsort:nv,gt:ov,lt:pv,eq:dv,neq:lv,gte:uv,lte:mv,cmp:cv,coerce:fv,Comparator:hv,Range:gv,satisfies:vv,toComparators:_v,maxSatisfying:wv,minSatisfying:Ev,minVersion:bv,validRange:yv,outside:Tv,gtr:Sv,ltr:Ov,intersects:Nv,simplifyRange:Av,subset:Rv,SemVer:Hg,re:$n.re,src:$n.src,tokens:$n.t,SEMVER_SPEC_VERSION:e6.SEMVER_SPEC_VERSION,RELEASE_TYPES:e6.RELEASE_TYPES,compareIdentifiers:t6.compareIdentifiers,rcompareIdentifiers:t6.rcompareIdentifiers}});var lr=f(ht=>{"use strict";var Dv=ht&&ht.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,a,i)}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),Iv=ht&&ht.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),n6=ht&&ht.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Dv(e,t,r);return Iv(e,t),e},a6=ht&&ht.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})};Object.defineProperty(ht,"__esModule",{value:!0});ht.Exec=void 0;var i6=n6(fe()),s6=n6(u1()),Un=class{static exec(e,r,a){return a6(this,void 0,void 0,function*(){return i6.debug(`Exec.exec: ${e} ${r==null?void 0:r.join(" ")}`),s6.exec(e,r,a)})}static getExecOutput(e,r,a){return a6(this,void 0,void 0,function*(){return i6.debug(`Exec.getExecOutput: ${e} ${r==null?void 0:r.join(" ")}`),s6.getExecOutput(e,r,a)})}};ht.Exec=Un});var Bn=f(ze=>{"use strict";var Pv=ze&&ze.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,a,i)}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),Cv=ze&&ze.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),p6=ze&&ze.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Pv(e,t,r);return Cv(e,t),e},O1=ze&&ze.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})},d6=ze&&ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ze,"__esModule",{value:!0});ze.Docker=void 0;var xv=d6(require("os")),Gv=d6(require("path")),o6=p6(fe()),Lv=p6(oa()),jn=lr(),qn=class{static get configDir(){return process.env.DOCKER_CONFIG||Gv.default.join(xv.default.homedir(),".docker")}static isAvailable(){return O1(this,void 0,void 0,function*(){return yield Lv.which("docker",!0).then(e=>(o6.debug(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(o6.debug(`Docker.isAvailable error: ${e}`),!1))})}static context(e){return O1(this,void 0,void 0,function*(){let r=["context","inspect","--format","{{.Name}}"];return e&&r.push(e),yield jn.Exec.getExecOutput("docker",r,{ignoreReturnCode:!0,silent:!0}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr);return a.stdout.trim()})})}static printVersion(){return O1(this,void 0,void 0,function*(){yield jn.Exec.exec("docker",["version"])})}static printInfo(){return O1(this,void 0,void 0,function*(){yield jn.Exec.exec("docker",["info"])})}};ze.Docker=qn});var _a=f(We=>{"use strict";var kv=We&&We.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,a,i)}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),Fv=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u6=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&kv(e,t,r);return Fv(e,t),e},Ir=We&&We.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})},m6=We&&We.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(We,"__esModule",{value:!0});We.Buildx=void 0;var Mn=m6(require("fs")),ci=m6(require("path")),va=u6(fe()),Vv=u6(S1()),l6=Bn(),N1=lr(),kt=class{constructor(e){this._standalone=e==null?void 0:e.standalone,this._version="",this._versionOnce=!1}static get configDir(){return process.env.BUILDX_CONFIG||ci.default.join(l6.Docker.configDir,"buildx")}static get certsDir(){return ci.default.join(kt.configDir,"certs")}isStandalone(){var e;return Ir(this,void 0,void 0,function*(){let r=(e=this._standalone)!==null&&e!==void 0?e:!(yield l6.Docker.isAvailable());return va.debug(`Buildx.isStandalone: ${r}`),r})}getCommand(e){return Ir(this,void 0,void 0,function*(){let r=yield this.isStandalone();return{command:r?"buildx":"docker",args:r?e:["buildx",...e]}})}isAvailable(){return Ir(this,void 0,void 0,function*(){let e=yield this.getCommand([]),r=yield N1.Exec.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(a=>a.stderr.length>0&&a.exitCode!=0?(va.debug(`Buildx.isAvailable cmd err: ${a.stderr.trim()}`),!1):a.exitCode==0).catch(a=>(va.debug(`Buildx.isAvailable error: ${a}`),!1));return va.debug(`Buildx.isAvailable: ${r}`),r})}printInspect(e){return Ir(this,void 0,void 0,function*(){let r=yield this.getCommand(["inspect",e]);yield N1.Exec.exec(r.command,r.args,{failOnStdErr:!1})})}version(){return Ir(this,void 0,void 0,function*(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=yield this.getCommand(["version"]);return this._version=yield N1.Exec.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return kt.parseVersion(r.stdout.trim())}),this._version})}printVersion(){return Ir(this,void 0,void 0,function*(){let e=yield this.getCommand(["version"]);yield N1.Exec.exec(e.command,e.args,{failOnStdErr:!1})})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse buildx version");return r[1]}versionSatisfies(e,r){return Ir(this,void 0,void 0,function*(){let a=r??(yield this.version());if(!a)return va.debug("Buildx.versionSatisfies false: undefined version"),!1;let i=Vv.satisfies(a,e)||/^[0-9a-f]{7}$/.exec(a)!==null;return va.debug(`Buildx.versionSatisfies ${a} statisfies ${e}: ${i}`),i})}static resolveCertsDriverOpts(e,r,a){let i;try{i=new URL(r)}catch{return[]}if(i.protocol!="tcp:")return[];let s=[];if(Object.keys(a).length==0)return s;let n=i.hostname;if(i.port.length>0&&(n+=`-${i.port}`),a.cacert!==void 0){let o=ci.default.join(kt.certsDir,`cacert_${n}.pem`);Mn.default.writeFileSync(o,a.cacert),s.push(`cacert=${o}`)}if(a.cert!==void 0){let o=ci.default.join(kt.certsDir,`cert_${n}.pem`);Mn.default.writeFileSync(o,a.cert),s.push(`cert=${o}`)}if(a.key!==void 0){let o=ci.default.join(kt.certsDir,`key_${n}.pem`);Mn.default.writeFileSync(o,a.key),s.push(`key=${o}`)}return e!="remote"?[]:s}};We.Buildx=kt;kt.containerNamePrefix="buildx_buildkit_"});var c6=f(Hn=>{var Pr=require("path"),mr=process.platform==="win32",ur=require("fs"),$v=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function Uv(){var t;if($v){var e=new Error;t=r}else t=a;return t;function r(i){i&&(e.message=i.message,i=e,a(i))}function a(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var s="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function jv(t){return typeof t=="function"?t:Uv()}var PO=Pr.normalize;mr?Wt=/(.*?)(?:[\/\\]+|$)/g:Wt=/(.*?)(?:[\/]+|$)/g;var Wt;mr?fi=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:fi=/^[\/]*/;var fi;Hn.realpathSync=function(e,r){if(e=Pr.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];var a=e,i={},s={},n,o,p,d;l();function l(){var y=fi.exec(e);n=y[0].length,o=y[0],p=y[0],d="",mr&&!s[p]&&(ur.lstatSync(p),s[p]=!0)}for(;n=e.length)return r&&(r[i]=e),a(null,e);Wt.lastIndex=o;var y=Wt.exec(e);return l=p,p+=y[0],d=l+y[1],o=Wt.lastIndex,n[d]||r&&r[d]===d?process.nextTick(m):r&&Object.prototype.hasOwnProperty.call(r,d)?v(r[d]):ur.lstat(d,c)}function c(y,T){if(y)return a(y);if(!T.isSymbolicLink())return n[d]=!0,r&&(r[d]=d),process.nextTick(m);if(!mr){var w=T.dev.toString(32)+":"+T.ino.toString(32);if(s.hasOwnProperty(w))return g(null,s[w],d)}ur.stat(d,function(E){if(E)return a(E);ur.readlink(d,function(A,U){mr||(s[w]=U),g(A,U)})})}function g(y,T,w){if(y)return a(y);var E=Pr.resolve(l,T);r&&(r[w]=E),v(E)}function v(y){e=Pr.resolve(y,e.slice(o)),u()}}});var Xn=f((xO,v6)=>{v6.exports=cr;cr.realpath=cr;cr.sync=Jn;cr.realpathSync=Jn;cr.monkeypatch=Bv;cr.unmonkeypatch=Mv;var wa=require("fs"),zn=wa.realpath,Wn=wa.realpathSync,qv=process.version,f6=/^v[0-5]\./.test(qv),h6=c6();function g6(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function cr(t,e,r){if(f6)return zn(t,e,r);typeof e=="function"&&(r=e,e=null),zn(t,e,function(a,i){g6(a)?h6.realpath(t,e,r):r(a,i)})}function Jn(t,e){if(f6)return Wn(t,e);try{return Wn(t,e)}catch(r){if(g6(r))return h6.realpathSync(t,e);throw r}}function Bv(){wa.realpath=cr,wa.realpathSync=Jn}function Mv(){wa.realpath=zn,wa.realpathSync=Wn}});var w6=f((GO,_6)=>{_6.exports=function(t,e){for(var r=[],a=0;a{"use strict";T6.exports=b6;function b6(t,e,r){t instanceof RegExp&&(t=E6(t,r)),e instanceof RegExp&&(e=E6(e,r));var a=y6(t,e,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+t.length,a[1]),post:r.slice(a[1]+e.length)}}function E6(t,e){var r=e.match(t);return r?r[0]:null}b6.range=y6;function y6(t,e,r){var a,i,s,n,o,p=r.indexOf(t),d=r.indexOf(e,p+1),l=p;if(p>=0&&d>0){if(t===e)return[p,d];for(a=[],s=r.length;l>=0&&!o;)l==p?(a.push(l),p=r.indexOf(t,l+1)):a.length==1?o=[a.pop(),d]:(i=a.pop(),i=0?p:d;a.length&&(o=[s,n])}return o}});var C6=f((kO,P6)=>{var zv=w6(),O6=S6();P6.exports=Xv;var N6="\0SLASH"+Math.random()+"\0",A6="\0OPEN"+Math.random()+"\0",Qn="\0CLOSE"+Math.random()+"\0",R6="\0COMMA"+Math.random()+"\0",D6="\0PERIOD"+Math.random()+"\0";function Kn(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function Wv(t){return t.split("\\\\").join(N6).split("\\{").join(A6).split("\\}").join(Qn).split("\\,").join(R6).split("\\.").join(D6)}function Jv(t){return t.split(N6).join("\\").split(A6).join("{").split(Qn).join("}").split(R6).join(",").split(D6).join(".")}function I6(t){if(!t)return[""];var e=[],r=O6("{","}",t);if(!r)return t.split(",");var a=r.pre,i=r.body,s=r.post,n=a.split(",");n[n.length-1]+="{"+i+"}";var o=I6(s);return s.length&&(n[n.length-1]+=o.shift(),n.push.apply(n,o)),e.push.apply(e,n),e}function Xv(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Ea(Wv(t),!0).map(Jv)):[]}function Kv(t){return"{"+t+"}"}function Qv(t){return/^-?0\d/.test(t)}function Yv(t,e){return t<=e}function Zv(t,e){return t>=e}function Ea(t,e){var r=[],a=O6("{","}",t);if(!a||/\$$/.test(a.pre))return[t];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),n=i||s,o=a.body.indexOf(",")>=0;if(!n&&!o)return a.post.match(/,.*\}/)?(t=a.pre+"{"+a.body+Qn+a.post,Ea(t)):[t];var p;if(n)p=a.body.split(/\.\./);else if(p=I6(a.body),p.length===1&&(p=Ea(p[0],!1).map(Kv),p.length===1)){var l=a.post.length?Ea(a.post,!1):[""];return l.map(function(St){return a.pre+p[0]+St})}var d=a.pre,l=a.post.length?Ea(a.post,!1):[""],u;if(n){var m=Kn(p[0]),c=Kn(p[1]),g=Math.max(p[0].length,p[1].length),v=p.length==3?Math.abs(Kn(p[2])):1,y=Yv,T=c0){var ce=new Array(U+1).join("0");E<0?A="-"+ce+A.slice(1):A=ce+A}}u.push(A)}}else u=zv(p,function(S){return Ea(S,!1)});for(var Z=0;Z{F6.exports=rt;rt.Minimatch=Se;var hi=function(){try{return require("path")}catch{}}()||{sep:"/"};rt.sep=hi.sep;var eo=rt.GLOBSTAR=Se.GLOBSTAR={},e_=C6(),x6={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Yn="[^/]",Zn=Yn+"*?",t_="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",r_="(?:(?!(?:\\/|^)\\.).)*?",G6=a_("().*{}+?[]^$\\!");function a_(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var L6=/\/+/;rt.filter=i_;function i_(t,e){return e=e||{},function(r,a,i){return rt(r,t,e)}}function fr(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(a){r[a]=t[a]}),Object.keys(e).forEach(function(a){r[a]=e[a]}),r}rt.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return rt;var e=rt,r=function(i,s,n){return e(i,s,fr(t,n))};return r.Minimatch=function(i,s){return new e.Minimatch(i,fr(t,s))},r.Minimatch.defaults=function(i){return e.defaults(fr(t,i)).Minimatch},r.filter=function(i,s){return e.filter(i,fr(t,s))},r.defaults=function(i){return e.defaults(fr(t,i))},r.makeRe=function(i,s){return e.makeRe(i,fr(t,s))},r.braceExpand=function(i,s){return e.braceExpand(i,fr(t,s))},r.match=function(a,i,s){return e.match(a,i,fr(t,s))},r};Se.defaults=function(t){return rt.defaults(t).Minimatch};function rt(t,e,r){return R1(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new Se(e,r).match(t)}function Se(t,e){if(!(this instanceof Se))return new Se(t,e);R1(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&hi.sep!=="/"&&(t=t.split(hi.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}Se.prototype.debug=function(){};Se.prototype.make=s_;function s_(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(a){return a.split(L6)}),this.debug(this.pattern,r),r=r.map(function(a,i,s){return a.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(a){return a.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}Se.prototype.parseNegate=n_;function n_(){var t=this.pattern,e=!1,r=this.options,a=0;if(!r.nonegate){for(var i=0,s=t.length;i"u"?this.pattern:t,R1(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:e_(t)}var o_=1024*64,R1=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>o_)throw new TypeError("pattern is too long")};Se.prototype.parse=p_;var A1={};function p_(t,e){R1(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return eo;if(t==="")return"";var a="",i=!!r.nocase,s=!1,n=[],o=[],p,d=!1,l=-1,u=-1,m=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",c=this;function g(){if(p){switch(p){case"*":a+=Zn,i=!0;break;case"?":a+=Yn,i=!0;break;default:a+="\\"+p;break}c.debug("clearStateChar %j %j",p,a),p=!1}}for(var v=0,y=t.length,T;vthis.state.record.length?a[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}},Q7=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],a=K7(e),i=p=>{a.options.objname===void 0?r.push(p):r[p[0]]=p[1]},s=()=>{},n=a.parse(t,!1,i,s);if(n!==void 0)throw n;let o=a.parse(void 0,!0,i,s);if(o!==void 0)throw o;return r};fn.CsvError=j;fn.parse=Q7});var gn=f(qe=>{"use strict";var Y7=qe&&qe.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,a,i)}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),Z7=qe&&qe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),x2=qe&&qe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Y7(e,t,r);return Z7(e,t),e},C2=qe&&qe.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})},ef=qe&&qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qe,"__esModule",{value:!0});qe.Util=void 0;var tf=ef(require("fs")),rf=x2(fe()),af=x2(oa()),sf=hn(),ei=class{static getInputList(e,r){let a=[],i=rf.getInput(e);if(i=="")return a;let s=(0,sf.parse)(i,{columns:!1,relaxQuotes:!0,comment:"#",relaxColumnCount:!0,skipEmptyLines:!0,quote:r==null?void 0:r.quote});for(let n of s)n.length==1?r!=null&&r.ignoreComma?a.push(n[0]):a.push(...n[0].split(",")):r!=null&&r.ignoreComma?a.push(n.join(",")):a.push(...n);return a.filter(n=>n).map(n=>n.trim())}static asyncForEach(e,r){return C2(this,void 0,void 0,function*(){for(let a=0;a{"use strict";var gf=Be&&Be.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r),Object.defineProperty(t,a,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),vf=Be&&Be.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ua=Be&&Be.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&gf(e,t,r);return vf(e,t),e},z2=Be&&Be.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})};Object.defineProperty(Be,"__esModule",{value:!0});Be.argStringToArray=Be.ToolRunner=void 0;var d1=ua(require("os")),J2=ua(require("events")),_f=ua(require("child_process")),wf=ua(require("path")),Ef=ua(oa()),W2=ua(mn()),bf=require("timers"),l1=process.platform==="win32",yn=class extends J2.EventEmitter{constructor(e,r,a){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=r||[],this.options=a||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,r){let a=this._getSpawnFileName(),i=this._getSpawnArgs(e),s=r?"":"[command]";if(l1)if(this._isCmdFile()){s+=a;for(let n of i)s+=` ${n}`}else if(e.windowsVerbatimArguments){s+=`"${a}"`;for(let n of i)s+=` ${n}`}else{s+=this._windowsQuoteCmdArg(a);for(let n of i)s+=` ${this._windowsQuoteCmdArg(n)}`}else{s+=a;for(let n of i)s+=` ${n}`}return s}_processLineBuffer(e,r,a){try{let i=r+e.toString(),s=i.indexOf(d1.EOL);for(;s>-1;){let n=i.substring(0,s);a(n),i=i.substring(s+d1.EOL.length),s=i.indexOf(d1.EOL)}return i}catch(i){return this._debug(`error processing line. Failed with error ${i}`),""}}_getSpawnFileName(){return l1&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(l1&&this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let a of this.args)r+=" ",r+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a);return r+='"',[r]}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let r=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],a=!1;for(let n of e)if(r.some(o=>o===n)){a=!0;break}if(!a)return e;let i='"',s=!0;for(let n=e.length;n>0;n--)i+=e[n-1],s&&e[n-1]==="\\"?i+="\\":e[n-1]==='"'?(s=!0,i+='"'):s=!1;return i+='"',i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let r='"',a=!0;for(let i=e.length;i>0;i--)r+=e[i-1],a&&e[i-1]==="\\"?r+="\\":e[i-1]==='"'?(a=!0,r+="\\"):a=!1;return r+='"',r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};let r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return r.outStream=e.outStream||process.stdout,r.errStream=e.errStream||process.stderr,r}_getSpawnOptions(e,r){e=e||{};let a={};return a.cwd=e.cwd,a.env=e.env,a.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(a.argv0=`"${r}"`),a}exec(){return z2(this,void 0,void 0,function*(){return!W2.isRooted(this.toolPath)&&(this.toolPath.includes("/")||l1&&this.toolPath.includes("\\"))&&(this.toolPath=wf.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Ef.which(this.toolPath,!0),new Promise((e,r)=>z2(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(let d of this.args)this._debug(` ${d}`);let a=this._cloneExecOptions(this.options);!a.silent&&a.outStream&&a.outStream.write(this._getCommandString(a)+d1.EOL);let i=new ri(a,this.toolPath);if(i.on("debug",d=>{this._debug(d)}),this.options.cwd&&!(yield W2.exists(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let s=this._getSpawnFileName(),n=_f.spawn(s,this._getSpawnArgs(a),this._getSpawnOptions(this.options,s)),o="";n.stdout&&n.stdout.on("data",d=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(d),!a.silent&&a.outStream&&a.outStream.write(d),o=this._processLineBuffer(d,o,l=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(l)})});let p="";if(n.stderr&&n.stderr.on("data",d=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(d),!a.silent&&a.errStream&&a.outStream&&(a.failOnStdErr?a.errStream:a.outStream).write(d),p=this._processLineBuffer(d,p,l=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(l)})}),n.on("error",d=>{i.processError=d.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),n.on("exit",d=>{i.processExitCode=d,i.processExited=!0,this._debug(`Exit code ${d} received from tool '${this.toolPath}'`),i.CheckComplete()}),n.on("close",d=>{i.processExitCode=d,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on("done",(d,l)=>{o.length>0&&this.emit("stdline",o),p.length>0&&this.emit("errline",p),n.removeAllListeners(),d?r(d):e(l)}),this.options.input){if(!n.stdin)throw new Error("child process missing stdin");n.stdin.end(this.options.input)}}))})}};Be.ToolRunner=yn;function yf(t){let e=[],r=!1,a=!1,i="";function s(n){a&&n!=='"'&&(i+="\\"),i+=n,a=!1}for(let n=0;n0&&(e.push(i),i="");continue}s(o)}return i.length>0&&e.push(i.trim()),e}Be.argStringToArray=yf;var ri=class extends J2.EventEmitter{constructor(e,r){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!r)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=r,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=bf.setTimeout(ri.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}}});var u1=f(Me=>{"use strict";var Tf=Me&&Me.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r),Object.defineProperty(t,a,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),Sf=Me&&Me.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Of=Me&&Me.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Tf(e,t,r);return Sf(e,t),e},Y2=Me&&Me.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})};Object.defineProperty(Me,"__esModule",{value:!0});Me.getExecOutput=Me.exec=void 0;var K2=require("string_decoder"),Q2=Of(X2());function Z2(t,e,r){return Y2(this,void 0,void 0,function*(){let a=Q2.argStringToArray(t);if(a.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let i=a[0];return e=a.slice(1).concat(e||[]),new Q2.ToolRunner(i,e,r).exec()})}Me.exec=Z2;function Nf(t,e,r){var a,i;return Y2(this,void 0,void 0,function*(){let s="",n="",o=new K2.StringDecoder("utf8"),p=new K2.StringDecoder("utf8"),d=(a=r==null?void 0:r.listeners)===null||a===void 0?void 0:a.stdout,l=(i=r==null?void 0:r.listeners)===null||i===void 0?void 0:i.stderr,u=v=>{n+=p.write(v),l&&l(v)},m=v=>{s+=o.write(v),d&&d(v)},c=Object.assign(Object.assign({},r==null?void 0:r.listeners),{stdout:m,stderr:u}),g=yield Z2(t,e,Object.assign(Object.assign({},r),{listeners:c}));return s+=o.end(),n+=p.end(),{exitCode:g,stdout:s,stderr:n}})}Me.getExecOutput=Nf});var s0=f((LS,i0)=>{"use strict";var Af=Object.create,m1=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Df=Object.getOwnPropertyNames,If=Object.getPrototypeOf,Pf=Object.prototype.hasOwnProperty,Cf=(t,e)=>{for(var r in e)m1(t,r,{get:e[r],enumerable:!0})},t0=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Df(e))!Pf.call(t,i)&&i!==r&&m1(t,i,{get:()=>e[i],enumerable:!(a=Rf(e,i))||a.enumerable});return t},r0=(t,e,r)=>(r=t!=null?Af(If(t)):{},t0(e||!t||!t.__esModule?m1(r,"default",{value:t,enumerable:!0}):r,t)),xf=t=>t0(m1({},"__esModule",{value:!0}),t),a0={};Cf(a0,{getIDToken:()=>Ff});i0.exports=xf(a0);var Gf=r0(fe()),ai=r0(na()),Lf=br(),kf=t=>new Promise(e=>setTimeout(e,t)),e0=new Lf.HttpClient("@depot/actions-public-oidc-client");async function Ff(t){if(ai.context.eventName!=="pull_request")throw new Error("not a pull request");let e=await e0.postJson("https://actions-public-oidc.depot.dev/claim",{aud:t,eventName:ai.context.eventName,repo:`${ai.context.repo.owner}/${ai.context.repo.repo}`,runID:ai.context.runId.toString()});if(e.statusCode>=400)throw e.result?"error"in e.result?new Error(e.result.error):new Error(`HTTP ${e.statusCode}: ${JSON.stringify(e.result)}`):new Error(`HTTP ${e.statusCode}: no response`);if(!e.result)throw new Error(`HTTP ${e.statusCode}: no response`);if("error"in e.result)throw new Error(e.result.error);let{challengeCode:r,exchangeURL:a}=e.result,i=setInterval(()=>{Gf.info(`Waiting for OIDC auth challenge ${r}`)},1e3);try{for(let s=1;s<60;s++){let n=await e0.post(a,"");if(n.message.statusCode===200)return await n.readBody();await kf(1e3)}throw new Error(`OIDC auth challenge ${r} timed out`)}finally{clearInterval(i)}}});var ii=f((kS,n0)=>{var Vf="2.0.0",$f=Number.MAX_SAFE_INTEGER||9007199254740991,Uf=16,jf=["major","premajor","minor","preminor","patch","prepatch","prerelease"];n0.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Uf,MAX_SAFE_INTEGER:$f,RELEASE_TYPES:jf,SEMVER_SPEC_VERSION:Vf,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var si=f((FS,o0)=>{var qf=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};o0.exports=qf});var ma=f((dr,p0)=>{var{MAX_SAFE_COMPONENT_LENGTH:Tn}=ii(),Bf=si();dr=p0.exports={};var Mf=dr.re=[],O=dr.src=[],N=dr.t={},Hf=0,C=(t,e,r)=>{let a=Hf++;Bf(t,a,e),N[t]=a,O[a]=e,Mf[a]=new RegExp(e,r?"g":void 0)};C("NUMERICIDENTIFIER","0|[1-9]\\d*");C("NUMERICIDENTIFIERLOOSE","[0-9]+");C("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");C("MAINVERSION",`(${O[N.NUMERICIDENTIFIER]})\\.(${O[N.NUMERICIDENTIFIER]})\\.(${O[N.NUMERICIDENTIFIER]})`);C("MAINVERSIONLOOSE",`(${O[N.NUMERICIDENTIFIERLOOSE]})\\.(${O[N.NUMERICIDENTIFIERLOOSE]})\\.(${O[N.NUMERICIDENTIFIERLOOSE]})`);C("PRERELEASEIDENTIFIER",`(?:${O[N.NUMERICIDENTIFIER]}|${O[N.NONNUMERICIDENTIFIER]})`);C("PRERELEASEIDENTIFIERLOOSE",`(?:${O[N.NUMERICIDENTIFIERLOOSE]}|${O[N.NONNUMERICIDENTIFIER]})`);C("PRERELEASE",`(?:-(${O[N.PRERELEASEIDENTIFIER]}(?:\\.${O[N.PRERELEASEIDENTIFIER]})*))`);C("PRERELEASELOOSE",`(?:-?(${O[N.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${O[N.PRERELEASEIDENTIFIERLOOSE]})*))`);C("BUILDIDENTIFIER","[0-9A-Za-z-]+");C("BUILD",`(?:\\+(${O[N.BUILDIDENTIFIER]}(?:\\.${O[N.BUILDIDENTIFIER]})*))`);C("FULLPLAIN",`v?${O[N.MAINVERSION]}${O[N.PRERELEASE]}?${O[N.BUILD]}?`);C("FULL",`^${O[N.FULLPLAIN]}$`);C("LOOSEPLAIN",`[v=\\s]*${O[N.MAINVERSIONLOOSE]}${O[N.PRERELEASELOOSE]}?${O[N.BUILD]}?`);C("LOOSE",`^${O[N.LOOSEPLAIN]}$`);C("GTLT","((?:<|>)?=?)");C("XRANGEIDENTIFIERLOOSE",`${O[N.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);C("XRANGEIDENTIFIER",`${O[N.NUMERICIDENTIFIER]}|x|X|\\*`);C("XRANGEPLAIN",`[v=\\s]*(${O[N.XRANGEIDENTIFIER]})(?:\\.(${O[N.XRANGEIDENTIFIER]})(?:\\.(${O[N.XRANGEIDENTIFIER]})(?:${O[N.PRERELEASE]})?${O[N.BUILD]}?)?)?`);C("XRANGEPLAINLOOSE",`[v=\\s]*(${O[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${O[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${O[N.XRANGEIDENTIFIERLOOSE]})(?:${O[N.PRERELEASELOOSE]})?${O[N.BUILD]}?)?)?`);C("XRANGE",`^${O[N.GTLT]}\\s*${O[N.XRANGEPLAIN]}$`);C("XRANGELOOSE",`^${O[N.GTLT]}\\s*${O[N.XRANGEPLAINLOOSE]}$`);C("COERCE",`(^|[^\\d])(\\d{1,${Tn}})(?:\\.(\\d{1,${Tn}}))?(?:\\.(\\d{1,${Tn}}))?(?:$|[^\\d])`);C("COERCERTL",O[N.COERCE],!0);C("LONETILDE","(?:~>?)");C("TILDETRIM",`(\\s*)${O[N.LONETILDE]}\\s+`,!0);dr.tildeTrimReplace="$1~";C("TILDE",`^${O[N.LONETILDE]}${O[N.XRANGEPLAIN]}$`);C("TILDELOOSE",`^${O[N.LONETILDE]}${O[N.XRANGEPLAINLOOSE]}$`);C("LONECARET","(?:\\^)");C("CARETTRIM",`(\\s*)${O[N.LONECARET]}\\s+`,!0);dr.caretTrimReplace="$1^";C("CARET",`^${O[N.LONECARET]}${O[N.XRANGEPLAIN]}$`);C("CARETLOOSE",`^${O[N.LONECARET]}${O[N.XRANGEPLAINLOOSE]}$`);C("COMPARATORLOOSE",`^${O[N.GTLT]}\\s*(${O[N.LOOSEPLAIN]})$|^$`);C("COMPARATOR",`^${O[N.GTLT]}\\s*(${O[N.FULLPLAIN]})$|^$`);C("COMPARATORTRIM",`(\\s*)${O[N.GTLT]}\\s*(${O[N.LOOSEPLAIN]}|${O[N.XRANGEPLAIN]})`,!0);dr.comparatorTrimReplace="$1$2$3";C("HYPHENRANGE",`^\\s*(${O[N.XRANGEPLAIN]})\\s+-\\s+(${O[N.XRANGEPLAIN]})\\s*$`);C("HYPHENRANGELOOSE",`^\\s*(${O[N.XRANGEPLAINLOOSE]})\\s+-\\s+(${O[N.XRANGEPLAINLOOSE]})\\s*$`);C("STAR","(<|>)?=?\\s*\\*");C("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");C("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var c1=f((VS,d0)=>{var zf=Object.freeze({loose:!0}),Wf=Object.freeze({}),Jf=t=>t?typeof t!="object"?zf:t:Wf;d0.exports=Jf});var Sn=f(($S,m0)=>{var l0=/^[0-9]+$/,u0=(t,e)=>{let r=l0.test(t),a=l0.test(e);return r&&a&&(t=+t,e=+e),t===e?0:r&&!a?-1:a&&!r?1:tu0(e,t);m0.exports={compareIdentifiers:u0,rcompareIdentifiers:Xf}});var Oe=f((US,g0)=>{var f1=si(),{MAX_LENGTH:c0,MAX_SAFE_INTEGER:h1}=ii(),{re:f0,t:h0}=ma(),Kf=c1(),{compareIdentifiers:ca}=Sn(),tt=class{constructor(e,r){if(r=Kf(r),e instanceof tt){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${require("util").inspect(e)}`);if(e.length>c0)throw new TypeError(`version is longer than ${c0} characters`);f1("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let a=e.trim().match(r.loose?f0[h0.LOOSE]:f0[h0.FULL]);if(!a)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>h1||this.major<0)throw new TypeError("Invalid major version");if(this.minor>h1||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>h1||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&a===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];a===!1&&(s=[r]),ca(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};g0.exports=tt});var Or=f((jS,_0)=>{var v0=Oe(),Qf=(t,e,r=!1)=>{if(t instanceof v0)return t;try{return new v0(t,e)}catch(a){if(!r)return null;throw a}};_0.exports=Qf});var E0=f((qS,w0)=>{var Yf=Or(),Zf=(t,e)=>{let r=Yf(t,e);return r?r.version:null};w0.exports=Zf});var y0=f((BS,b0)=>{var eh=Or(),th=(t,e)=>{let r=eh(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};b0.exports=th});var O0=f((MS,S0)=>{var T0=Oe(),rh=(t,e,r,a,i)=>{typeof r=="string"&&(i=a,a=r,r=void 0);try{return new T0(t instanceof T0?t.version:t,r).inc(e,a,i).version}catch{return null}};S0.exports=rh});var R0=f((HS,A0)=>{var N0=Or(),ah=(t,e)=>{let r=N0(t,null,!0),a=N0(e,null,!0),i=r.compare(a);if(i===0)return null;let s=i>0,n=s?r:a,o=s?a:r,p=!!n.prerelease.length,d=p?"pre":"";return r.major!==a.major?d+"major":r.minor!==a.minor?d+"minor":r.patch!==a.patch?d+"patch":p?"prerelease":o.patch?"patch":o.minor?"minor":"major"};A0.exports=ah});var I0=f((zS,D0)=>{var ih=Oe(),sh=(t,e)=>new ih(t,e).major;D0.exports=sh});var C0=f((WS,P0)=>{var nh=Oe(),oh=(t,e)=>new nh(t,e).minor;P0.exports=oh});var G0=f((JS,x0)=>{var ph=Oe(),dh=(t,e)=>new ph(t,e).patch;x0.exports=dh});var k0=f((XS,L0)=>{var lh=Or(),uh=(t,e)=>{let r=lh(t,e);return r&&r.prerelease.length?r.prerelease:null};L0.exports=uh});var ct=f((KS,V0)=>{var F0=Oe(),mh=(t,e,r)=>new F0(t,r).compare(new F0(e,r));V0.exports=mh});var U0=f((QS,$0)=>{var ch=ct(),fh=(t,e,r)=>ch(e,t,r);$0.exports=fh});var q0=f((YS,j0)=>{var hh=ct(),gh=(t,e)=>hh(t,e,!0);j0.exports=gh});var g1=f((ZS,M0)=>{var B0=Oe(),vh=(t,e,r)=>{let a=new B0(t,r),i=new B0(e,r);return a.compare(i)||a.compareBuild(i)};M0.exports=vh});var z0=f((eO,H0)=>{var _h=g1(),wh=(t,e)=>t.sort((r,a)=>_h(r,a,e));H0.exports=wh});var J0=f((tO,W0)=>{var Eh=g1(),bh=(t,e)=>t.sort((r,a)=>Eh(a,r,e));W0.exports=bh});var ni=f((rO,X0)=>{var yh=ct(),Th=(t,e,r)=>yh(t,e,r)>0;X0.exports=Th});var v1=f((aO,K0)=>{var Sh=ct(),Oh=(t,e,r)=>Sh(t,e,r)<0;K0.exports=Oh});var On=f((iO,Q0)=>{var Nh=ct(),Ah=(t,e,r)=>Nh(t,e,r)===0;Q0.exports=Ah});var Nn=f((sO,Y0)=>{var Rh=ct(),Dh=(t,e,r)=>Rh(t,e,r)!==0;Y0.exports=Dh});var _1=f((nO,Z0)=>{var Ih=ct(),Ph=(t,e,r)=>Ih(t,e,r)>=0;Z0.exports=Ph});var w1=f((oO,eu)=>{var Ch=ct(),xh=(t,e,r)=>Ch(t,e,r)<=0;eu.exports=xh});var An=f((pO,tu)=>{var Gh=On(),Lh=Nn(),kh=ni(),Fh=_1(),Vh=v1(),$h=w1(),Uh=(t,e,r,a)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return Gh(t,r,a);case"!=":return Lh(t,r,a);case">":return kh(t,r,a);case">=":return Fh(t,r,a);case"<":return Vh(t,r,a);case"<=":return $h(t,r,a);default:throw new TypeError(`Invalid operator: ${e}`)}};tu.exports=Uh});var au=f((dO,ru)=>{var jh=Oe(),qh=Or(),{re:E1,t:b1}=ma(),Bh=(t,e)=>{if(t instanceof jh)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(E1[b1.COERCE]);else{let a;for(;(a=E1[b1.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||a.index+a[0].length!==r.index+r[0].length)&&(r=a),E1[b1.COERCERTL].lastIndex=a.index+a[1].length+a[2].length;E1[b1.COERCERTL].lastIndex=-1}return r===null?null:qh(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)};ru.exports=Bh});var su=f((lO,iu)=>{"use strict";iu.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var ou=f((uO,nu)=>{"use strict";nu.exports=q;q.Node=Nr;q.create=q;function q(t){var e=this;if(e instanceof q||(e=new q),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,a=arguments.length;r1)r=e;else if(this.head)a=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;a!==null;i++)r=t(r,a.value,i),a=a.next;return r};q.prototype.reduceReverse=function(t,e){var r,a=this.tail;if(arguments.length>1)r=e;else if(this.tail)a=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;a!==null;i--)r=t(r,a.value,i),a=a.prev;return r};q.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};q.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};q.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new q;if(ethis.length&&(e=this.length);for(var a=0,i=this.head;i!==null&&athis.length&&(e=this.length);for(var a=this.length,i=this.tail;i!==null&&a>e;a--)i=i.prev;for(;i!==null&&a>t;a--,i=i.prev)r.push(i.value);return r};q.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var a=0,i=this.head;i!==null&&a{"use strict";var Wh=ou(),Ar=Symbol("max"),zt=Symbol("length"),fa=Symbol("lengthCalculator"),pi=Symbol("allowStale"),Rr=Symbol("maxAge"),Ht=Symbol("dispose"),pu=Symbol("noDisposeOnSet"),ve=Symbol("lruList"),Rt=Symbol("cache"),lu=Symbol("updateAgeOnGet"),Rn=()=>1,In=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let r=this[Ar]=e.max||1/0,a=e.length||Rn;if(this[fa]=typeof a!="function"?Rn:a,this[pi]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Rr]=e.maxAge||0,this[Ht]=e.dispose,this[pu]=e.noDisposeOnSet||!1,this[lu]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Ar]=e||1/0,oi(this)}get max(){return this[Ar]}set allowStale(e){this[pi]=!!e}get allowStale(){return this[pi]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Rr]=e,oi(this)}get maxAge(){return this[Rr]}set lengthCalculator(e){typeof e!="function"&&(e=Rn),e!==this[fa]&&(this[fa]=e,this[zt]=0,this[ve].forEach(r=>{r.length=this[fa](r.value,r.key),this[zt]+=r.length})),oi(this)}get lengthCalculator(){return this[fa]}get length(){return this[zt]}get itemCount(){return this[ve].length}rforEach(e,r){r=r||this;for(let a=this[ve].tail;a!==null;){let i=a.prev;du(this,e,a,r),a=i}}forEach(e,r){r=r||this;for(let a=this[ve].head;a!==null;){let i=a.next;du(this,e,a,r),a=i}}keys(){return this[ve].toArray().map(e=>e.key)}values(){return this[ve].toArray().map(e=>e.value)}reset(){this[Ht]&&this[ve]&&this[ve].length&&this[ve].forEach(e=>this[Ht](e.key,e.value)),this[Rt]=new Map,this[ve]=new Wh,this[zt]=0}dump(){return this[ve].map(e=>y1(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[ve]}set(e,r,a){if(a=a||this[Rr],a&&typeof a!="number")throw new TypeError("maxAge must be a number");let i=a?Date.now():0,s=this[fa](r,e);if(this[Rt].has(e)){if(s>this[Ar])return ha(this,this[Rt].get(e)),!1;let p=this[Rt].get(e).value;return this[Ht]&&(this[pu]||this[Ht](e,p.value)),p.now=i,p.maxAge=a,p.value=r,this[zt]+=s-p.length,p.length=s,this.get(e),oi(this),!0}let n=new Pn(e,r,s,i,a);return n.length>this[Ar]?(this[Ht]&&this[Ht](e,r),!1):(this[zt]+=n.length,this[ve].unshift(n),this[Rt].set(e,this[ve].head),oi(this),!0)}has(e){if(!this[Rt].has(e))return!1;let r=this[Rt].get(e).value;return!y1(this,r)}get(e){return Dn(this,e,!0)}peek(e){return Dn(this,e,!1)}pop(){let e=this[ve].tail;return e?(ha(this,e),e.value):null}del(e){ha(this,this[Rt].get(e))}load(e){this.reset();let r=Date.now();for(let a=e.length-1;a>=0;a--){let i=e[a],s=i.e||0;if(s===0)this.set(i.k,i.v);else{let n=s-r;n>0&&this.set(i.k,i.v,n)}}}prune(){this[Rt].forEach((e,r)=>Dn(this,r,!1))}},Dn=(t,e,r)=>{let a=t[Rt].get(e);if(a){let i=a.value;if(y1(t,i)){if(ha(t,a),!t[pi])return}else r&&(t[lu]&&(a.value.now=Date.now()),t[ve].unshiftNode(a));return i.value}},y1=(t,e)=>{if(!e||!e.maxAge&&!t[Rr])return!1;let r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[Rr]&&r>t[Rr]},oi=t=>{if(t[zt]>t[Ar])for(let e=t[ve].tail;t[zt]>t[Ar]&&e!==null;){let r=e.prev;ha(t,e),e=r}},ha=(t,e)=>{if(e){let r=e.value;t[Ht]&&t[Ht](r.key,r.value),t[zt]-=r.length,t[Rt].delete(r.key),t[ve].removeNode(e)}},Pn=class{constructor(e,r,a,i,s){this.key=e,this.value=r,this.length=a,this.now=i,this.maxAge=s||0}},du=(t,e,r,a)=>{let i=r.value;y1(t,i)&&(ha(t,r),t[pi]||(i=void 0)),i&&e.call(a,i.value,i.key,t)};uu.exports=In});var ft=f((cO,gu)=>{var Dr=class{constructor(e,r){if(r=Xh(r),e instanceof Dr)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new Dr(e.raw,r);if(e instanceof Cn)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e,this.set=e.split("||").map(a=>this.parseRange(a.trim())).filter(a=>a.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let a=this.set[0];if(this.set=this.set.filter(i=>!fu(i[0])),this.set.length===0)this.set=[a];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&rg(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let a=((this.options.includePrerelease&&eg)|(this.options.loose&&tg))+":"+e,i=cu.get(a);if(i)return i;let s=this.options.loose,n=s?He[De.HYPHENRANGELOOSE]:He[De.HYPHENRANGE];e=e.replace(n,mg(this.options.includePrerelease)),ee("hyphen replace",e),e=e.replace(He[De.COMPARATORTRIM],Qh),ee("comparator trim",e),e=e.replace(He[De.TILDETRIM],Yh),e=e.replace(He[De.CARETTRIM],Zh),e=e.split(/\s+/).join(" ");let o=e.split(" ").map(u=>ag(u,this.options)).join(" ").split(/\s+/).map(u=>ug(u,this.options));s&&(o=o.filter(u=>(ee("loose invalid filter",u,this.options),!!u.match(He[De.COMPARATORLOOSE])))),ee("range list",o);let p=new Map,d=o.map(u=>new Cn(u,this.options));for(let u of d){if(fu(u))return[u];p.set(u.value,u)}p.size>1&&p.has("")&&p.delete("");let l=[...p.values()];return cu.set(a,l),l}intersects(e,r){if(!(e instanceof Dr))throw new TypeError("a Range is required");return this.set.some(a=>hu(a,r)&&e.set.some(i=>hu(i,r)&&a.every(s=>i.every(n=>s.intersects(n,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Kh(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0",rg=t=>t.value==="",hu=(t,e)=>{let r=!0,a=t.slice(),i=a.pop();for(;r&&a.length;)r=a.every(s=>i.intersects(s,e)),i=a.pop();return r},ag=(t,e)=>(ee("comp",t,e),t=ng(t,e),ee("caret",t),t=ig(t,e),ee("tildes",t),t=pg(t,e),ee("xrange",t),t=lg(t,e),ee("stars",t),t),Ie=t=>!t||t.toLowerCase()==="x"||t==="*",ig=(t,e)=>t.trim().split(/\s+/).map(r=>sg(r,e)).join(" "),sg=(t,e)=>{let r=e.loose?He[De.TILDELOOSE]:He[De.TILDE];return t.replace(r,(a,i,s,n,o)=>{ee("tilde",t,a,i,s,n,o);let p;return Ie(i)?p="":Ie(s)?p=`>=${i}.0.0 <${+i+1}.0.0-0`:Ie(n)?p=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:o?(ee("replaceTilde pr",o),p=`>=${i}.${s}.${n}-${o} <${i}.${+s+1}.0-0`):p=`>=${i}.${s}.${n} <${i}.${+s+1}.0-0`,ee("tilde return",p),p})},ng=(t,e)=>t.trim().split(/\s+/).map(r=>og(r,e)).join(" "),og=(t,e)=>{ee("caret",t,e);let r=e.loose?He[De.CARETLOOSE]:He[De.CARET],a=e.includePrerelease?"-0":"";return t.replace(r,(i,s,n,o,p)=>{ee("caret",t,i,s,n,o,p);let d;return Ie(s)?d="":Ie(n)?d=`>=${s}.0.0${a} <${+s+1}.0.0-0`:Ie(o)?s==="0"?d=`>=${s}.${n}.0${a} <${s}.${+n+1}.0-0`:d=`>=${s}.${n}.0${a} <${+s+1}.0.0-0`:p?(ee("replaceCaret pr",p),s==="0"?n==="0"?d=`>=${s}.${n}.${o}-${p} <${s}.${n}.${+o+1}-0`:d=`>=${s}.${n}.${o}-${p} <${s}.${+n+1}.0-0`:d=`>=${s}.${n}.${o}-${p} <${+s+1}.0.0-0`):(ee("no pr"),s==="0"?n==="0"?d=`>=${s}.${n}.${o}${a} <${s}.${n}.${+o+1}-0`:d=`>=${s}.${n}.${o}${a} <${s}.${+n+1}.0-0`:d=`>=${s}.${n}.${o} <${+s+1}.0.0-0`),ee("caret return",d),d})},pg=(t,e)=>(ee("replaceXRanges",t,e),t.split(/\s+/).map(r=>dg(r,e)).join(" ")),dg=(t,e)=>{t=t.trim();let r=e.loose?He[De.XRANGELOOSE]:He[De.XRANGE];return t.replace(r,(a,i,s,n,o,p)=>{ee("xRange",t,a,i,s,n,o,p);let d=Ie(s),l=d||Ie(n),u=l||Ie(o),m=u;return i==="="&&m&&(i=""),p=e.includePrerelease?"-0":"",d?i===">"||i==="<"?a="<0.0.0-0":a="*":i&&m?(l&&(n=0),o=0,i===">"?(i=">=",l?(s=+s+1,n=0,o=0):(n=+n+1,o=0)):i==="<="&&(i="<",l?s=+s+1:n=+n+1),i==="<"&&(p="-0"),a=`${i+s}.${n}.${o}${p}`):l?a=`>=${s}.0.0${p} <${+s+1}.0.0-0`:u&&(a=`>=${s}.${n}.0${p} <${s}.${+n+1}.0-0`),ee("xRange return",a),a})},lg=(t,e)=>(ee("replaceStars",t,e),t.trim().replace(He[De.STAR],"")),ug=(t,e)=>(ee("replaceGTE0",t,e),t.trim().replace(He[e.includePrerelease?De.GTE0PRE:De.GTE0],"")),mg=t=>(e,r,a,i,s,n,o,p,d,l,u,m,c)=>(Ie(a)?r="":Ie(i)?r=`>=${a}.0.0${t?"-0":""}`:Ie(s)?r=`>=${a}.${i}.0${t?"-0":""}`:n?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Ie(d)?p="":Ie(l)?p=`<${+d+1}.0.0-0`:Ie(u)?p=`<${d}.${+l+1}.0-0`:m?p=`<=${d}.${l}.${u}-${m}`:t?p=`<${d}.${l}.${+u+1}-0`:p=`<=${p}`,`${r} ${p}`.trim()),cg=(t,e,r)=>{for(let a=0;a0){let i=t[a].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var di=f((fO,yu)=>{var li=Symbol("SemVer ANY"),ga=class{static get ANY(){return li}constructor(e,r){if(r=vu(r),e instanceof ga){if(e.loose===!!r.loose)return e;e=e.value}Gn("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===li?this.value="":this.value=this.operator+this.semver.version,Gn("comp",this)}parse(e){let r=this.options.loose?_u[wu.COMPARATORLOOSE]:_u[wu.COMPARATOR],a=e.match(r);if(!a)throw new TypeError(`Invalid comparator: ${e}`);this.operator=a[1]!==void 0?a[1]:"",this.operator==="="&&(this.operator=""),a[2]?this.semver=new Eu(a[2],this.options.loose):this.semver=li}toString(){return this.value}test(e){if(Gn("Comparator.test",e,this.options.loose),this.semver===li||e===li)return!0;if(typeof e=="string")try{e=new Eu(e,this.options)}catch{return!1}return xn(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof ga))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new bu(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new bu(this.value,r).test(e.semver):(r=vu(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||xn(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||xn(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};yu.exports=ga;var vu=c1(),{re:_u,t:wu}=ma(),xn=An(),Gn=si(),Eu=Oe(),bu=ft()});var ui=f((hO,Tu)=>{var fg=ft(),hg=(t,e,r)=>{try{e=new fg(e,r)}catch{return!1}return e.test(t)};Tu.exports=hg});var Ou=f((gO,Su)=>{var gg=ft(),vg=(t,e)=>new gg(t,e).set.map(r=>r.map(a=>a.value).join(" ").trim().split(" "));Su.exports=vg});var Au=f((vO,Nu)=>{var _g=Oe(),wg=ft(),Eg=(t,e,r)=>{let a=null,i=null,s=null;try{s=new wg(e,r)}catch{return null}return t.forEach(n=>{s.test(n)&&(!a||i.compare(n)===-1)&&(a=n,i=new _g(a,r))}),a};Nu.exports=Eg});var Du=f((_O,Ru)=>{var bg=Oe(),yg=ft(),Tg=(t,e,r)=>{let a=null,i=null,s=null;try{s=new yg(e,r)}catch{return null}return t.forEach(n=>{s.test(n)&&(!a||i.compare(n)===1)&&(a=n,i=new bg(a,r))}),a};Ru.exports=Tg});var Cu=f((wO,Pu)=>{var Ln=Oe(),Sg=ft(),Iu=ni(),Og=(t,e)=>{t=new Sg(t,e);let r=new Ln("0.0.0");if(t.test(r)||(r=new Ln("0.0.0-0"),t.test(r)))return r;r=null;for(let a=0;a{let o=new Ln(n.semver.version);switch(n.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!s||Iu(o,s))&&(s=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${n.operator}`)}}),s&&(!r||Iu(r,s))&&(r=s)}return r&&t.test(r)?r:null};Pu.exports=Og});var Gu=f((EO,xu)=>{var Ng=ft(),Ag=(t,e)=>{try{return new Ng(t,e).range||"*"}catch{return null}};xu.exports=Ag});var T1=f((bO,Vu)=>{var Rg=Oe(),Fu=di(),{ANY:Dg}=Fu,Ig=ft(),Pg=ui(),Lu=ni(),ku=v1(),Cg=w1(),xg=_1(),Gg=(t,e,r,a)=>{t=new Rg(t,a),e=new Ig(e,a);let i,s,n,o,p;switch(r){case">":i=Lu,s=Cg,n=ku,o=">",p=">=";break;case"<":i=ku,s=xg,n=Lu,o="<",p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Pg(t,e,a))return!1;for(let d=0;d{c.semver===Dg&&(c=new Fu(">=0.0.0")),u=u||c,m=m||c,i(c.semver,u.semver,a)?u=c:n(c.semver,m.semver,a)&&(m=c)}),u.operator===o||u.operator===p||(!m.operator||m.operator===o)&&s(t,m.semver))return!1;if(m.operator===p&&n(t,m.semver))return!1}return!0};Vu.exports=Gg});var Uu=f((yO,$u)=>{var Lg=T1(),kg=(t,e,r)=>Lg(t,e,">",r);$u.exports=kg});var qu=f((TO,ju)=>{var Fg=T1(),Vg=(t,e,r)=>Fg(t,e,"<",r);ju.exports=Vg});var Hu=f((SO,Mu)=>{var Bu=ft(),$g=(t,e,r)=>(t=new Bu(t,r),e=new Bu(e,r),t.intersects(e,r));Mu.exports=$g});var Wu=f((OO,zu)=>{var Ug=ui(),jg=ct();zu.exports=(t,e,r)=>{let a=[],i=null,s=null,n=t.sort((l,u)=>jg(l,u,r));for(let l of n)Ug(l,e,r)?(s=l,i||(i=l)):(s&&a.push([i,s]),s=null,i=null);i&&a.push([i,null]);let o=[];for(let[l,u]of a)l===u?o.push(l):!u&&l===n[0]?o.push("*"):u?l===n[0]?o.push(`<=${u}`):o.push(`${l} - ${u}`):o.push(`>=${l}`);let p=o.join(" || "),d=typeof e.raw=="string"?e.raw:String(e);return p.length{var Ju=ft(),Fn=di(),{ANY:kn}=Fn,mi=ui(),Vn=ct(),qg=(t,e,r={})=>{if(t===e)return!0;t=new Ju(t,r),e=new Ju(e,r);let a=!1;e:for(let i of t.set){for(let s of e.set){let n=Mg(i,s,r);if(a=a||n!==null,n)continue e}if(a)return!1}return!0},Bg=[new Fn(">=0.0.0-0")],Xu=[new Fn(">=0.0.0")],Mg=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===kn){if(e.length===1&&e[0].semver===kn)return!0;r.includePrerelease?t=Bg:t=Xu}if(e.length===1&&e[0].semver===kn){if(r.includePrerelease)return!0;e=Xu}let a=new Set,i,s;for(let c of t)c.operator===">"||c.operator===">="?i=Ku(i,c,r):c.operator==="<"||c.operator==="<="?s=Qu(s,c,r):a.add(c.semver);if(a.size>1)return null;let n;if(i&&s){if(n=Vn(i.semver,s.semver,r),n>0)return null;if(n===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let c of a){if(i&&!mi(c,String(i),r)||s&&!mi(c,String(s),r))return null;for(let g of e)if(!mi(c,String(g),r))return!1;return!0}let o,p,d,l,u=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,m=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;u&&u.prerelease.length===1&&s.operator==="<"&&u.prerelease[0]===0&&(u=!1);for(let c of e){if(l=l||c.operator===">"||c.operator===">=",d=d||c.operator==="<"||c.operator==="<=",i){if(m&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===m.major&&c.semver.minor===m.minor&&c.semver.patch===m.patch&&(m=!1),c.operator===">"||c.operator===">="){if(o=Ku(i,c,r),o===c&&o!==i)return!1}else if(i.operator===">="&&!mi(i.semver,String(c),r))return!1}if(s){if(u&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===u.major&&c.semver.minor===u.minor&&c.semver.patch===u.patch&&(u=!1),c.operator==="<"||c.operator==="<="){if(p=Qu(s,c,r),p===c&&p!==s)return!1}else if(s.operator==="<="&&!mi(s.semver,String(c),r))return!1}if(!c.operator&&(s||i)&&n!==0)return!1}return!(i&&d&&!s&&n!==0||s&&l&&!i&&n!==0||m||u)},Ku=(t,e,r)=>{if(!t)return e;let a=Vn(t.semver,e.semver,r);return a>0?t:a<0||e.operator===">"&&t.operator===">="?e:t},Qu=(t,e,r)=>{if(!t)return e;let a=Vn(t.semver,e.semver,r);return a<0?t:a>0||e.operator==="<"&&t.operator==="<="?e:t};Yu.exports=qg});var S1=f((AO,r6)=>{var $n=ma(),e6=ii(),Hg=Oe(),t6=Sn(),zg=Or(),Wg=E0(),Jg=y0(),Xg=O0(),Kg=R0(),Qg=I0(),Yg=C0(),Zg=G0(),ev=k0(),tv=ct(),rv=U0(),av=q0(),iv=g1(),sv=z0(),nv=J0(),ov=ni(),pv=v1(),dv=On(),lv=Nn(),uv=_1(),mv=w1(),cv=An(),fv=au(),hv=di(),gv=ft(),vv=ui(),_v=Ou(),wv=Au(),Ev=Du(),bv=Cu(),yv=Gu(),Tv=T1(),Sv=Uu(),Ov=qu(),Nv=Hu(),Av=Wu(),Rv=Zu();r6.exports={parse:zg,valid:Wg,clean:Jg,inc:Xg,diff:Kg,major:Qg,minor:Yg,patch:Zg,prerelease:ev,compare:tv,rcompare:rv,compareLoose:av,compareBuild:iv,sort:sv,rsort:nv,gt:ov,lt:pv,eq:dv,neq:lv,gte:uv,lte:mv,cmp:cv,coerce:fv,Comparator:hv,Range:gv,satisfies:vv,toComparators:_v,maxSatisfying:wv,minSatisfying:Ev,minVersion:bv,validRange:yv,outside:Tv,gtr:Sv,ltr:Ov,intersects:Nv,simplifyRange:Av,subset:Rv,SemVer:Hg,re:$n.re,src:$n.src,tokens:$n.t,SEMVER_SPEC_VERSION:e6.SEMVER_SPEC_VERSION,RELEASE_TYPES:e6.RELEASE_TYPES,compareIdentifiers:t6.compareIdentifiers,rcompareIdentifiers:t6.rcompareIdentifiers}});var lr=f(ht=>{"use strict";var Dv=ht&&ht.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,a,i)}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),Iv=ht&&ht.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),n6=ht&&ht.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Dv(e,t,r);return Iv(e,t),e},a6=ht&&ht.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})};Object.defineProperty(ht,"__esModule",{value:!0});ht.Exec=void 0;var i6=n6(fe()),s6=n6(u1()),Un=class{static exec(e,r,a){return a6(this,void 0,void 0,function*(){return i6.debug(`Exec.exec: ${e} ${r==null?void 0:r.join(" ")}`),s6.exec(e,r,a)})}static getExecOutput(e,r,a){return a6(this,void 0,void 0,function*(){return i6.debug(`Exec.getExecOutput: ${e} ${r==null?void 0:r.join(" ")}`),s6.getExecOutput(e,r,a)})}};ht.Exec=Un});var Bn=f(ze=>{"use strict";var Pv=ze&&ze.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,a,i)}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),Cv=ze&&ze.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),p6=ze&&ze.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Pv(e,t,r);return Cv(e,t),e},O1=ze&&ze.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})},d6=ze&&ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ze,"__esModule",{value:!0});ze.Docker=void 0;var xv=d6(require("os")),Gv=d6(require("path")),o6=p6(fe()),Lv=p6(oa()),jn=lr(),qn=class{static get configDir(){return process.env.DOCKER_CONFIG||Gv.default.join(xv.default.homedir(),".docker")}static isAvailable(){return O1(this,void 0,void 0,function*(){return yield Lv.which("docker",!0).then(e=>(o6.debug(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(o6.debug(`Docker.isAvailable error: ${e}`),!1))})}static context(e){return O1(this,void 0,void 0,function*(){let r=["context","inspect","--format","{{.Name}}"];return e&&r.push(e),yield jn.Exec.getExecOutput("docker",r,{ignoreReturnCode:!0,silent:!0}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr);return a.stdout.trim()})})}static printVersion(){return O1(this,void 0,void 0,function*(){yield jn.Exec.exec("docker",["version"])})}static printInfo(){return O1(this,void 0,void 0,function*(){yield jn.Exec.exec("docker",["info"])})}};ze.Docker=qn});var _a=f(We=>{"use strict";var kv=We&&We.__createBinding||(Object.create?function(t,e,r,a){a===void 0&&(a=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,a,i)}:function(t,e,r,a){a===void 0&&(a=r),t[a]=e[r]}),Fv=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u6=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&kv(e,t,r);return Fv(e,t),e},Ir=We&&We.__awaiter||function(t,e,r,a){function i(s){return s instanceof r?s:new r(function(n){n(s)})}return new(r||(r=Promise))(function(s,n){function o(l){try{d(a.next(l))}catch(u){n(u)}}function p(l){try{d(a.throw(l))}catch(u){n(u)}}function d(l){l.done?s(l.value):i(l.value).then(o,p)}d((a=a.apply(t,e||[])).next())})},m6=We&&We.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(We,"__esModule",{value:!0});We.Buildx=void 0;var Mn=m6(require("fs")),ci=m6(require("path")),va=u6(fe()),Vv=u6(S1()),l6=Bn(),N1=lr(),kt=class{constructor(e){this._standalone=e==null?void 0:e.standalone,this._version="",this._versionOnce=!1}static get configDir(){return process.env.BUILDX_CONFIG||ci.default.join(l6.Docker.configDir,"buildx")}static get certsDir(){return ci.default.join(kt.configDir,"certs")}isStandalone(){var e;return Ir(this,void 0,void 0,function*(){let r=(e=this._standalone)!==null&&e!==void 0?e:!(yield l6.Docker.isAvailable());return va.debug(`Buildx.isStandalone: ${r}`),r})}getCommand(e){return Ir(this,void 0,void 0,function*(){let r=yield this.isStandalone();return{command:r?"buildx":"docker",args:r?e:["buildx",...e]}})}isAvailable(){return Ir(this,void 0,void 0,function*(){let e=yield this.getCommand([]),r=yield N1.Exec.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(a=>a.stderr.length>0&&a.exitCode!=0?(va.debug(`Buildx.isAvailable cmd err: ${a.stderr.trim()}`),!1):a.exitCode==0).catch(a=>(va.debug(`Buildx.isAvailable error: ${a}`),!1));return va.debug(`Buildx.isAvailable: ${r}`),r})}printInspect(e){return Ir(this,void 0,void 0,function*(){let r=yield this.getCommand(["inspect",e]);yield N1.Exec.exec(r.command,r.args,{failOnStdErr:!1})})}version(){return Ir(this,void 0,void 0,function*(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=yield this.getCommand(["version"]);return this._version=yield N1.Exec.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return kt.parseVersion(r.stdout.trim())}),this._version})}printVersion(){return Ir(this,void 0,void 0,function*(){let e=yield this.getCommand(["version"]);yield N1.Exec.exec(e.command,e.args,{failOnStdErr:!1})})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse buildx version");return r[1]}versionSatisfies(e,r){return Ir(this,void 0,void 0,function*(){let a=r??(yield this.version());if(!a)return va.debug("Buildx.versionSatisfies false: undefined version"),!1;let i=Vv.satisfies(a,e)||/^[0-9a-f]{7}$/.exec(a)!==null;return va.debug(`Buildx.versionSatisfies ${a} statisfies ${e}: ${i}`),i})}static resolveCertsDriverOpts(e,r,a){let i;try{i=new URL(r)}catch{return[]}if(i.protocol!="tcp:")return[];let s=[];if(Object.keys(a).length==0)return s;let n=i.hostname;if(i.port.length>0&&(n+=`-${i.port}`),a.cacert!==void 0){let o=ci.default.join(kt.certsDir,`cacert_${n}.pem`);Mn.default.writeFileSync(o,a.cacert),s.push(`cacert=${o}`)}if(a.cert!==void 0){let o=ci.default.join(kt.certsDir,`cert_${n}.pem`);Mn.default.writeFileSync(o,a.cert),s.push(`cert=${o}`)}if(a.key!==void 0){let o=ci.default.join(kt.certsDir,`key_${n}.pem`);Mn.default.writeFileSync(o,a.key),s.push(`key=${o}`)}return e!="remote"?[]:s}};We.Buildx=kt;kt.containerNamePrefix="buildx_buildkit_"});var c6=f(Hn=>{var Pr=require("path"),mr=process.platform==="win32",ur=require("fs"),$v=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function Uv(){var t;if($v){var e=new Error;t=r}else t=a;return t;function r(i){i&&(e.message=i.message,i=e,a(i))}function a(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var s="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function jv(t){return typeof t=="function"?t:Uv()}var PO=Pr.normalize;mr?Wt=/(.*?)(?:[\/\\]+|$)/g:Wt=/(.*?)(?:[\/]+|$)/g;var Wt;mr?fi=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:fi=/^[\/]*/;var fi;Hn.realpathSync=function(e,r){if(e=Pr.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];var a=e,i={},s={},n,o,p,d;l();function l(){var y=fi.exec(e);n=y[0].length,o=y[0],p=y[0],d="",mr&&!s[p]&&(ur.lstatSync(p),s[p]=!0)}for(;n=e.length)return r&&(r[i]=e),a(null,e);Wt.lastIndex=o;var y=Wt.exec(e);return l=p,p+=y[0],d=l+y[1],o=Wt.lastIndex,n[d]||r&&r[d]===d?process.nextTick(m):r&&Object.prototype.hasOwnProperty.call(r,d)?v(r[d]):ur.lstat(d,c)}function c(y,T){if(y)return a(y);if(!T.isSymbolicLink())return n[d]=!0,r&&(r[d]=d),process.nextTick(m);if(!mr){var w=T.dev.toString(32)+":"+T.ino.toString(32);if(s.hasOwnProperty(w))return g(null,s[w],d)}ur.stat(d,function(E){if(E)return a(E);ur.readlink(d,function(A,U){mr||(s[w]=U),g(A,U)})})}function g(y,T,w){if(y)return a(y);var E=Pr.resolve(l,T);r&&(r[w]=E),v(E)}function v(y){e=Pr.resolve(y,e.slice(o)),u()}}});var Xn=f((xO,v6)=>{v6.exports=cr;cr.realpath=cr;cr.sync=Jn;cr.realpathSync=Jn;cr.monkeypatch=Bv;cr.unmonkeypatch=Mv;var wa=require("fs"),zn=wa.realpath,Wn=wa.realpathSync,qv=process.version,f6=/^v[0-5]\./.test(qv),h6=c6();function g6(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function cr(t,e,r){if(f6)return zn(t,e,r);typeof e=="function"&&(r=e,e=null),zn(t,e,function(a,i){g6(a)?h6.realpath(t,e,r):r(a,i)})}function Jn(t,e){if(f6)return Wn(t,e);try{return Wn(t,e)}catch(r){if(g6(r))return h6.realpathSync(t,e);throw r}}function Bv(){wa.realpath=cr,wa.realpathSync=Jn}function Mv(){wa.realpath=zn,wa.realpathSync=Wn}});var w6=f((GO,_6)=>{_6.exports=function(t,e){for(var r=[],a=0;a{"use strict";T6.exports=b6;function b6(t,e,r){t instanceof RegExp&&(t=E6(t,r)),e instanceof RegExp&&(e=E6(e,r));var a=y6(t,e,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+t.length,a[1]),post:r.slice(a[1]+e.length)}}function E6(t,e){var r=e.match(t);return r?r[0]:null}b6.range=y6;function y6(t,e,r){var a,i,s,n,o,p=r.indexOf(t),d=r.indexOf(e,p+1),l=p;if(p>=0&&d>0){if(t===e)return[p,d];for(a=[],s=r.length;l>=0&&!o;)l==p?(a.push(l),p=r.indexOf(t,l+1)):a.length==1?o=[a.pop(),d]:(i=a.pop(),i=0?p:d;a.length&&(o=[s,n])}return o}});var C6=f((kO,P6)=>{var zv=w6(),O6=S6();P6.exports=Xv;var N6="\0SLASH"+Math.random()+"\0",A6="\0OPEN"+Math.random()+"\0",Qn="\0CLOSE"+Math.random()+"\0",R6="\0COMMA"+Math.random()+"\0",D6="\0PERIOD"+Math.random()+"\0";function Kn(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function Wv(t){return t.split("\\\\").join(N6).split("\\{").join(A6).split("\\}").join(Qn).split("\\,").join(R6).split("\\.").join(D6)}function Jv(t){return t.split(N6).join("\\").split(A6).join("{").split(Qn).join("}").split(R6).join(",").split(D6).join(".")}function I6(t){if(!t)return[""];var e=[],r=O6("{","}",t);if(!r)return t.split(",");var a=r.pre,i=r.body,s=r.post,n=a.split(",");n[n.length-1]+="{"+i+"}";var o=I6(s);return s.length&&(n[n.length-1]+=o.shift(),n.push.apply(n,o)),e.push.apply(e,n),e}function Xv(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Ea(Wv(t),!0).map(Jv)):[]}function Kv(t){return"{"+t+"}"}function Qv(t){return/^-?0\d/.test(t)}function Yv(t,e){return t<=e}function Zv(t,e){return t>=e}function Ea(t,e){var r=[],a=O6("{","}",t);if(!a||/\$$/.test(a.pre))return[t];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),n=i||s,o=a.body.indexOf(",")>=0;if(!n&&!o)return a.post.match(/,.*\}/)?(t=a.pre+"{"+a.body+Qn+a.post,Ea(t)):[t];var p;if(n)p=a.body.split(/\.\./);else if(p=I6(a.body),p.length===1&&(p=Ea(p[0],!1).map(Kv),p.length===1)){var l=a.post.length?Ea(a.post,!1):[""];return l.map(function(St){return a.pre+p[0]+St})}var d=a.pre,l=a.post.length?Ea(a.post,!1):[""],u;if(n){var m=Kn(p[0]),c=Kn(p[1]),g=Math.max(p[0].length,p[1].length),v=p.length==3?Math.abs(Kn(p[2])):1,y=Yv,T=c0){var ce=new Array(U+1).join("0");E<0?A="-"+ce+A.slice(1):A=ce+A}}u.push(A)}}else u=zv(p,function(S){return Ea(S,!1)});for(var Z=0;Z{F6.exports=rt;rt.Minimatch=Se;var hi=function(){try{return require("path")}catch{}}()||{sep:"/"};rt.sep=hi.sep;var eo=rt.GLOBSTAR=Se.GLOBSTAR={},e_=C6(),x6={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Yn="[^/]",Zn=Yn+"*?",t_="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",r_="(?:(?!(?:\\/|^)\\.).)*?",G6=a_("().*{}+?[]^$\\!");function a_(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var L6=/\/+/;rt.filter=i_;function i_(t,e){return e=e||{},function(r,a,i){return rt(r,t,e)}}function fr(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(a){r[a]=t[a]}),Object.keys(e).forEach(function(a){r[a]=e[a]}),r}rt.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return rt;var e=rt,r=function(i,s,n){return e(i,s,fr(t,n))};return r.Minimatch=function(i,s){return new e.Minimatch(i,fr(t,s))},r.Minimatch.defaults=function(i){return e.defaults(fr(t,i)).Minimatch},r.filter=function(i,s){return e.filter(i,fr(t,s))},r.defaults=function(i){return e.defaults(fr(t,i))},r.makeRe=function(i,s){return e.makeRe(i,fr(t,s))},r.braceExpand=function(i,s){return e.braceExpand(i,fr(t,s))},r.match=function(a,i,s){return e.match(a,i,fr(t,s))},r};Se.defaults=function(t){return rt.defaults(t).Minimatch};function rt(t,e,r){return R1(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new Se(e,r).match(t)}function Se(t,e){if(!(this instanceof Se))return new Se(t,e);R1(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&hi.sep!=="/"&&(t=t.split(hi.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}Se.prototype.debug=function(){};Se.prototype.make=s_;function s_(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(a){return a.split(L6)}),this.debug(this.pattern,r),r=r.map(function(a,i,s){return a.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(a){return a.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}Se.prototype.parseNegate=n_;function n_(){var t=this.pattern,e=!1,r=this.options,a=0;if(!r.nonegate){for(var i=0,s=t.length;i"u"?this.pattern:t,R1(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:e_(t)}var o_=1024*64,R1=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>o_)throw new TypeError("pattern is too long")};Se.prototype.parse=p_;var A1={};function p_(t,e){R1(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return eo;if(t==="")return"";var a="",i=!!r.nocase,s=!1,n=[],o=[],p,d=!1,l=-1,u=-1,m=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",c=this;function g(){if(p){switch(p){case"*":a+=Zn,i=!0;break;case"?":a+=Yn,i=!0;break;default:a+="\\"+p;break}c.debug("clearStateChar %j %j",p,a),p=!1}}for(var v=0,y=t.length,T;v-1;Tt--){var Ye=o[Tt],S=a.slice(0,Ye.reStart),St=a.slice(Ye.reStart,Ye.reEnd-8),b=a.slice(Ye.reEnd-8,Ye.reEnd),I=a.slice(Ye.reEnd);b+=I;var pe=S.split("(").length-1,Er=I;for(v=0;v"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var a=this.options;hi.sep!=="/"&&(e=e.split(hi.sep).join("/")),e=e.split(L6),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s,n;for(n=e.length-1;n>=0&&(s=e[n],!s);n--);for(n=0;n>> no match, partial?`,t,l,e,u),l===n))}var c;if(typeof p=="string"?(c=d===p,this.debug("string match",p,d,c)):(c=d.match(p),this.debug("pattern match",p,d,c)),!c)return!1}if(i===n&&s===o)return!0;if(i===n)return r;if(s===o)return i===n-1&&t[i]==="";throw new Error("wtf?")};function l_(t){return t.replace(/\\(.)/g,"$1")}function u_(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var V6=f((VO,to)=>{typeof Object.create=="function"?to.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:to.exports=function(e,r){if(r){e.super_=r;var a=function(){};a.prototype=r.prototype,e.prototype=new a,e.prototype.constructor=e}}});var $6=f(($O,ao)=>{try{if(ro=require("util"),typeof ro.inherits!="function")throw"";ao.exports=ro.inherits}catch{ao.exports=V6()}var ro});var P1=f((UO,I1)=>{"use strict";function U6(t){return t.charAt(0)==="/"}function j6(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=e.exec(t),a=r[1]||"",i=!!(a&&a.charAt(1)!==":");return!!(r[2]||i)}I1.exports=process.platform==="win32"?j6:U6;I1.exports.posix=U6;I1.exports.win32=j6});var so=f(hr=>{hr.setopts=v_;hr.ownProp=q6;hr.makeAbs=gi;hr.finish=__;hr.mark=w_;hr.isIgnored=M6;hr.childrenIgnored=E_;function q6(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var m_=require("fs"),ba=require("path"),c_=D1(),B6=P1(),io=c_.Minimatch;function f_(t,e){return t.localeCompare(e,"en")}function h_(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]),t.ignore.length&&(t.ignore=t.ignore.map(g_))}function g_(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new io(r,{dot:!0})}return{matcher:new io(t,{dot:!0}),gmatcher:e}}function v_(t,e,r){if(r||(r={}),r.matchBase&&e.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.silent=!!r.silent,t.pattern=e,t.strict=r.strict!==!1,t.realpath=!!r.realpath,t.realpathCache=r.realpathCache||Object.create(null),t.follow=!!r.follow,t.dot=!!r.dot,t.mark=!!r.mark,t.nodir=!!r.nodir,t.nodir&&(t.mark=!0),t.sync=!!r.sync,t.nounique=!!r.nounique,t.nonull=!!r.nonull,t.nosort=!!r.nosort,t.nocase=!!r.nocase,t.stat=!!r.stat,t.noprocess=!!r.noprocess,t.absolute=!!r.absolute,t.fs=r.fs||m_,t.maxLength=r.maxLength||1/0,t.cache=r.cache||Object.create(null),t.statCache=r.statCache||Object.create(null),t.symlinks=r.symlinks||Object.create(null),h_(t,r),t.changedCwd=!1;var a=process.cwd();q6(r,"cwd")?(t.cwd=ba.resolve(r.cwd),t.changedCwd=t.cwd!==a):t.cwd=a,t.root=r.root||ba.resolve(t.cwd,"/"),t.root=ba.resolve(t.root),process.platform==="win32"&&(t.root=t.root.replace(/\\/g,"/")),t.cwdAbs=B6(t.cwd)?t.cwd:gi(t,t.cwd),process.platform==="win32"&&(t.cwdAbs=t.cwdAbs.replace(/\\/g,"/")),t.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,r.allowWindowsEscape=!1,t.minimatch=new io(e,r),t.options=t.minimatch.options}function __(t){for(var e=t.nounique,r=e?[]:Object.create(null),a=0,i=t.matches.length;a{J6.exports=W6;W6.GlobSync=ue;var b_=Xn(),H6=D1(),qO=H6.Minimatch,BO=po().Glob,MO=require("util"),no=require("path"),z6=require("assert"),C1=P1(),Cr=so(),y_=Cr.setopts,oo=Cr.ownProp,T_=Cr.childrenIgnored,S_=Cr.isIgnored;function W6(t,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob diff --git a/package.json b/package.json index fa6e527..d018c80 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "@actions/github": "^5.1.1", "@actions/http-client": "^2.1.0", "@actions/io": "^1.1.3", - "@depot/actions-public-oidc-client": "^0.1.0", + "@depot/actions-public-oidc-client": "^1.0.0", "@docker/actions-toolkit": "^0.2.0", "csv-parse": "^5.3.6", "execa": "^7.1.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b01c8bd..095b104 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,8 +21,8 @@ dependencies: specifier: ^1.1.3 version: 1.1.3 '@depot/actions-public-oidc-client': - specifier: ^0.1.0 - version: 0.1.0 + specifier: ^1.0.0 + version: 1.0.0 '@docker/actions-toolkit': specifier: ^0.2.0 version: 0.2.0 @@ -103,8 +103,8 @@ packages: uuid: 3.4.0 dev: false - /@depot/actions-public-oidc-client@0.1.0: - resolution: {integrity: sha512-Si9mee5IR/dRbiMmk9xD3jGxc9vhYS0hEieCVeQdFC9jnsfYIb0wDeTqpl076VneyH33C7ajUJNm9yxBzt8gUA==} + /@depot/actions-public-oidc-client@1.0.0: + resolution: {integrity: sha512-zGWYMCTYC6oPKzRWEN29MdYks7i3IkGEJyaB4LB2R6Lyk73u63fSkgnqTPpil1w184/tQTSQg89faokroPPfvw==} dependencies: '@actions/core': 1.10.0 '@actions/github': 5.1.1