"use strict";vart=require("assert");classeextendsError{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}lets,i=[];functionn(t,o,a,h){s=h;letl={};if(Object.prototype.hasOwnProperty.call(t,"extends")){if("string"!=typeoft.extends)returnl;constr=/\.json|\..*rc$/.test(t.extends);leth=null;if(r)h=function(t,e){returns.path.resolve(t,e)}(o,t.extends);elsetry{h=require.resolve(t.extends)}catch(e){returnt}!function(t){if(i.indexOf(t)>-1)thrownewe(`Circular extended configurations: '${t}'.`)}(h),i.push(h),l=r?JSON.parse(s.readFileSync(h,"utf8")):require(t.extends),deletet.extends,l=n(l,s.path.dirname(h),a,s)}returni=[],a?r(l,t):Object.assign({},l,t)}functionr(t,e){consts={};functioni(t){returnt&&"object"==typeoft&&!Array.isArray(t)}Object.assign(s,t);for(constnofObject.keys(e))i(e[n])&&i(s[n])?s[n]=r(t[n],e[n]):s[n]=e[n];returns}functiono(t){conste=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),s=/\.*[\][<>]/g,i=e.shift();if(!i)thrownewError(`No command found in: ${t}`);constn={cmd:i.replace(s,""),demanded:[],optional:[]};returne.forEach(((t,i)=>{letr=!1;t=t.replace(/\s/g,""),/\.+[\]>]/.test(t)&&i===e.length-1&&(r=!0),/^\[/.test(t)?n.optional.push({cmd:t.replace(s,"").split("|"),variadic:r}):n.demanded.push({cmd:t.replace(s,"").split("|"),variadic:r})})),n}consta=["first","second","third","fourth","fifth","sixth"];functionh(t,s,i){try{letn=0;const[r,a,h]="object"==typeoft?[{demanded:[],optional:[]},t,s]:[o(`cmd ${t}`),s,i],f=[].slice.call(a);for(;f.length&&void0===f[f.length-1];)f.pop();constd=h||f.length;if(d<r.demanded.length)thrownewe(`Not enough arguments provided. Expected ${r.demanded.length} but received ${f.length}.`);constu=r.demanded.length+r.optional.length;if(d>u)thrownewe(`Too many arguments provided. Expected max ${u} but received ${d}.`);r.demanded.forEach((t=>{conste=l(f.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&c(e,t.cmd,n),n+=1})),r.optional.forEach((t=>{if(0===f.length)return;conste=l(f.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&c(e,t.cmd,n),n+=1}))}catch(t){console.warn(t.stack)}}functionl(t){returnArray.isArray(t)?"array":null===t?"null":typeoft}functionc(t,s,i){thrownewe(`Invalid ${a[i]||"manyith"} argument. Expected ${s.join(" or ")} but received ${t}.`)}functionf(t){return!!t&&!!t.then&&"function"==typeoft.then}functiond(t,e,s,i){s.assert.notStrictEqual(t,e,i)}functionu(t,e){e.assert.strictEqual(typeoft,"string")}functionp(t){returnObject.keys(t)}functiong(t={},e=(()=>!0)){consts={};returnp(t).forEach((i=>{e(i,t[i])&&(s[i]=t[i])})),s}functionm(){returnprocess.versions.electron&&!process.defaultApp?0:1}functiony(){returnprocess.argv[m()]}varb=Object.freeze({__proto__:null,hideBin:function(t){returnt.slice(m()+1)},getProcessArgvBin:y});functionv(t,e,s,i){if("a"===s&&!i)thrownewTypeError("Private accessor was defined without a getter");if("function"==typeofe?t!==e||!i:!e.has(t))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(t):i?i.value:e.get(t)}functionO(t,e,s,i,n){if("m"===i)thrownewTypeError("Private method is not writable");if("a"===i&&!n)thrownewTypeError("Private accessor was defined without a setter");if("function"==typeofe?t!==e||!n:!e.has(t))thrownewTypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(t,s):n?n.value=s:e.set(t,s),s}classw{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,e,s=!0,i=!1){if(h("<array|function> [boolean] [boolean] [boolean]",[t,e,s],arguments.length),Array.isArray(t)){for(leti=0;i<t.length;i++){if("function"!=typeoft[i])throwError("middleware must be a function");constn=t[i];n.applyBeforeValidation=e,n.global=s}Array.prototype.push.apply(this.globalMiddleware,t)}elseif("function"==typeoft){constn=t;n.applyBeforeValidation=e,n.global=s,n.mutates=i,this.globalMiddleware.push(t)}returnthis.yargs}addCoerceMiddleware(t,e){con