@nice-move/init 0.8.30 → 0.8.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -80,4 +80,4 @@ complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name
80
80
  `)}`:``;t.fail(i(`Missing required argument: %s`,`Missing required arguments: %s`,Object.keys(r).length,Object.keys(r).join(`, `)+n))}},a.unknownArguments=function(n,r,o,s,c=!0){let l=e.getInternalMethods().getCommandInstance().getCommands(),u=[],d=e.getInternalMethods().getContext();if(Object.keys(n).forEach(t=>{!bt.includes(t)&&!Object.prototype.hasOwnProperty.call(o,t)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)&&!a.isValidAndSomeAliasIsNotNew(t,r)&&u.push(t)}),c&&(d.commands.length>0||l.length>0||s)&&n._.slice(d.commands.length).forEach(e=>{l.includes(``+e)||u.push(``+e)}),c){let t=e.getDemandedCommands()._?.max||0,r=d.commands.length+t;r<n._.length&&n._.slice(r).forEach(e=>{e=String(e),!d.commands.includes(e)&&!u.includes(e)&&u.push(e)})}u.length&&t.fail(i(`Unknown argument: %s`,`Unknown arguments: %s`,u.length,u.map(e=>e.trim()?e:`"${e}"`).join(`, `)))},a.unknownCommands=function(n){let r=e.getInternalMethods().getCommandInstance().getCommands(),a=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||r.length>0)&&n._.slice(o.commands.length).forEach(e=>{r.includes(``+e)||a.push(``+e)}),a.length>0?(t.fail(i(`Unknown command: %s`,`Unknown commands: %s`,a.length,a.join(`, `))),!0):!1},a.isValidAndSomeAliasIsNotNew=function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;let r=e.parsed.newAliases;return[t,...n[t]].some(e=>!Object.prototype.hasOwnProperty.call(r,e)||!r[t])},a.limitedChoices=function(n){let i=e.getOptions(),a={};if(!Object.keys(i.choices).length)return;Object.keys(n).forEach(e=>{bt.indexOf(e)===-1&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(n[e]).forEach(t=>{i.choices[e].indexOf(t)===-1&&t!==void 0&&(a[e]=(a[e]||[]).concat(t))})});let o=Object.keys(a);if(!o.length)return;let s=r(`Invalid values:`);o.forEach(e=>{s+=`\n ${r(`Argument: %s, Given: %s, Choices: %s`,e,t.stringifiedValues(a[e]),t.stringifiedValues(i.choices[e]))}`}),t.fail(s)};let o={};a.implies=function(t,r){N(`<string|object> [array|number|string]`,[t,r],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.implies(e,t[e])}):(e.global(t),o[t]||(o[t]=[]),Array.isArray(r)?r.forEach(e=>a.implies(t,e)):(j(r,void 0,n),o[t].push(r)))},a.getImplied=function(){return o};function s(e,t){let n=Number(t);return t=isNaN(n)?t:n,typeof t==`number`?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}a.implications=function(e){let n=[];if(Object.keys(o).forEach(t=>{let r=t;(o[t]||[]).forEach(t=>{let i=r,a=t;i=s(e,i),t=s(e,t),i&&!t&&n.push(` ${r} -> ${a}`)})}),n.length){let e=`${r(`Implications failed:`)}\n`;n.forEach(t=>{e+=t}),t.fail(e)}};let c={};a.conflicts=function(t,n){N(`<string|object> [array|string]`,[t,n],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.conflicts(e,t[e])}):(e.global(t),c[t]||(c[t]=[]),Array.isArray(n)?n.forEach(e=>a.conflicts(t,e)):c[t].push(n))},a.getConflicting=()=>c,a.conflicting=function(i){Object.keys(i).forEach(e=>{c[e]&&c[e].forEach(n=>{n&&i[e]!==void 0&&i[n]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,n))})}),e.getInternalMethods().getParserConfiguration()[`strip-dashed`]&&Object.keys(c).forEach(e=>{c[e].forEach(a=>{a&&i[n.Parser.camelCase(e)]!==void 0&&i[n.Parser.camelCase(a)]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,a))})})},a.recommendCommands=function(e,n){n=n.sort((e,t)=>t.length-e.length);let i=null,a=1/0;for(let t=0,r;(r=n[t])!==void 0;t++){let t=yt(e,r);t<=3&&t<a&&(a=t,i=r)}i&&t.fail(r(`Did you mean %s?`,i))},a.reset=function(e){return o=st(o,t=>!e[t]),c=st(c,t=>!e[t]),a};let l=[];return a.freeze=function(){l.push({implied:o,conflicting:c})},a.unfreeze=function(){let e=l.pop();j(e,void 0,n),{implied:o,conflicting:c}=e},a}let St=[],Ct;function wt(e,t,n,r){Ct=r;let i={};if(Object.prototype.hasOwnProperty.call(e,`extends`)){if(typeof e.extends!=`string`)return i;let r=/\.json|\..*rc$/.test(e.extends),a=null;if(r)a=Et(t,e.extends);else try{a=x.resolve(e.extends)}catch{return e}Tt(a),St.push(a),i=r?JSON.parse(Ct.readFileSync(a,`utf8`)):x(e.extends),delete e.extends,i=wt(i,Ct.path.dirname(a),n,Ct)}return St=[],n?Dt(i,e):Object.assign({},i,e)}function Tt(e){if(St.indexOf(e)>-1)throw new k(`Circular extended configurations: '${e}'.`)}function Et(e,t){return Ct.path.resolve(e,t)}function Dt(e,t){let n={};function r(e){return e&&typeof e==`object`&&!Array.isArray(e)}Object.assign(n,e);for(let i of Object.keys(t))r(t[i])&&r(n[i])?n[i]=Dt(e[i],t[i]):n[i]=t[i];return n}var P=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},F=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},I,Ot,kt,L,R,At,z,jt,Mt,B,Nt,V,H,U,W,Pt,Ft,G,K,It,Lt,q,Rt,zt,Bt,J,Vt,Y,Ht,Ut,Wt,X,Gt,Z,Q;function Kt(e){return(t=[],n=e.process.cwd(),r)=>{let i=new kn(t,n,r,e);return Object.defineProperty(i,`argv`,{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}const qt=Symbol(`copyDoubleDash`),Jt=Symbol(`copyDoubleDash`),Yt=Symbol(`deleteFromParserHintObject`),Xt=Symbol(`emitWarning`),Zt=Symbol(`freeze`),Qt=Symbol(`getDollarZero`),$t=Symbol(`getParserConfiguration`),en=Symbol(`getUsageConfiguration`),tn=Symbol(`guessLocale`),nn=Symbol(`guessVersion`),rn=Symbol(`parsePositionalNumbers`),an=Symbol(`pkgUp`),$=Symbol(`populateParserHintArray`),on=Symbol(`populateParserHintSingleValueDictionary`),sn=Symbol(`populateParserHintArrayDictionary`),cn=Symbol(`populateParserHintDictionary`),ln=Symbol(`sanitizeKey`),un=Symbol(`setKey`),dn=Symbol(`unfreeze`),fn=Symbol(`validateAsync`),pn=Symbol(`getCommandInstance`),mn=Symbol(`getContext`),hn=Symbol(`getHasOutput`),gn=Symbol(`getLoggerInstance`),_n=Symbol(`getParseContext`),vn=Symbol(`getUsageInstance`),yn=Symbol(`getValidationInstance`),bn=Symbol(`hasParseCallback`),xn=Symbol(`isGlobalContext`),Sn=Symbol(`postProcess`),Cn=Symbol(`rebase`),wn=Symbol(`reset`),Tn=Symbol(`runYargsParserAndExecuteCommands`),En=Symbol(`runValidation`),Dn=Symbol(`setHasOutput`),On=Symbol(`kTrackManuallySetKeys`);var kn=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,I.set(this,void 0),Ot.set(this,void 0),kt.set(this,{commands:[],fullCommands:[]}),L.set(this,null),R.set(this,null),At.set(this,`show-hidden`),z.set(this,null),jt.set(this,!0),Mt.set(this,{}),B.set(this,!0),Nt.set(this,[]),V.set(this,void 0),H.set(this,{}),U.set(this,!1),W.set(this,null),Pt.set(this,!0),Ft.set(this,void 0),G.set(this,``),K.set(this,void 0),It.set(this,void 0),Lt.set(this,{}),q.set(this,null),Rt.set(this,null),zt.set(this,{}),Bt.set(this,{}),J.set(this,void 0),Vt.set(this,!1),Y.set(this,void 0),Ht.set(this,!1),Ut.set(this,!1),Wt.set(this,!1),X.set(this,void 0),Gt.set(this,{}),Z.set(this,null),Q.set(this,void 0),P(this,Y,r,`f`),P(this,J,e,`f`),P(this,Ot,t,`f`),P(this,It,n,`f`),P(this,V,new qe(this),`f`),this.$0=this[Qt](),this[wn](),P(this,I,F(this,I,`f`),`f`),P(this,X,F(this,X,`f`),`f`),P(this,Q,F(this,Q,`f`),`f`),P(this,K,F(this,K,`f`),`f`),F(this,K,`f`).showHiddenOpt=F(this,At,`f`),P(this,Ft,this[Jt](),`f`)}addHelpOpt(e,t){return N(`[string|boolean] [string]`,[e,t],arguments.length),F(this,W,`f`)&&(this[Yt](F(this,W,`f`)),P(this,W,null,`f`)),e===!1&&t===void 0?this:(P(this,W,typeof e==`string`?e:`help`,`f`),this.boolean(F(this,W,`f`)),this.describe(F(this,W,`f`),t||F(this,X,`f`).deferY18nLookup(`Show help`)),this)}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(N(`[string|boolean] [string]`,[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e==`string`?e:F(this,At,`f`);return this.boolean(n),this.describe(n,t||F(this,X,`f`).deferY18nLookup(`Show hidden options`)),F(this,K,`f`).showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return N(`<object|string|array> [string|array]`,[e,t],arguments.length),this[sn](this.alias.bind(this),`alias`,e,t),this}array(e){return N(`<array|string>`,[e],arguments.length),this[$](`array`,e),this[On](e),this}boolean(e){return N(`<array|string>`,[e],arguments.length),this[$](`boolean`,e),this[On](e),this}check(e,t){return N(`<function> [boolean]`,[e,t],arguments.length),this.middleware((t,n)=>Xe(()=>e(t,n.getOptions()),n=>(n?(typeof n==`string`||n instanceof Error)&&F(this,X,`f`).fail(n.toString(),n):F(this,X,`f`).fail(F(this,Y,`f`).y18n.__(`Argument check failed: %s`,e.toString())),t),e=>(F(this,X,`f`).fail(e.message?e.message:e.toString(),e),t)),!1,t),this}choices(e,t){return N(`<object|string|array> [string|array]`,[e,t],arguments.length),this[sn](this.choices.bind(this),`choices`,e,t),this}coerce(e,t){if(N(`<object|string|array> [function]`,[e,t],arguments.length),Array.isArray(e)){if(!t)throw new k(`coerce callback must be provided`);for(let n of e)this.coerce(n,t);return this}else if(typeof e==`object`){for(let t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new k(`coerce callback must be provided`);return F(this,K,`f`).key[e]=!0,F(this,V,`f`).addCoerceMiddleware((n,r)=>{let i;return Object.prototype.hasOwnProperty.call(n,e)?Xe(()=>(i=r.getAliases(),t(n[e])),t=>{n[e]=t;let a=r.getInternalMethods().getParserConfiguration()[`strip-aliased`];if(i[e]&&a!==!0)for(let r of i[e])n[r]=t;return n},e=>{throw new k(e.message)}):n},e),this}conflicts(e,t){return N(`<string|object> [string|array]`,[e,t],arguments.length),F(this,Q,`f`).conflicts(e,t),this}config(e=`config`,t,n){return N(`[object|string] [string|function] [function]`,[e,t,n],arguments.length),typeof e==`object`&&!Array.isArray(e)?(e=wt(e,F(this,Ot,`f`),this[$t]()[`deep-merge-config`]||!1,F(this,Y,`f`)),F(this,K,`f`).configObjects=(F(this,K,`f`).configObjects||[]).concat(e),this):(typeof t==`function`&&(n=t,t=void 0),this.describe(e,t||F(this,X,`f`).deferY18nLookup(`Path to JSON config file`)),(Array.isArray(e)?e:[e]).forEach(e=>{F(this,K,`f`).config[e]=n||!0}),this)}completion(e,t,n){return N(`[string] [string|boolean|function] [function]`,[e,t,n],arguments.length),typeof t==`function`&&(n=t,t=void 0),P(this,R,e||F(this,R,`f`)||`completion`,`f`),!t&&t!==!1&&(t=`generate completion script`),this.command(F(this,R,`f`),t),n&&F(this,L,`f`).registerFunction(n),this}command(e,t,n,r,i,a){return N(`<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]`,[e,t,n,r,i,a],arguments.length),F(this,I,`f`).addHandler(e,t,n,r,i,a),this}commands(e,t,n,r,i,a){return this.command(e,t,n,r,i,a)}commandDir(e,t){N(`<string> [object]`,[e,t],arguments.length);let n=F(this,It,`f`)||F(this,Y,`f`).require;return F(this,I,`f`).addDirectory(e,n,F(this,Y,`f`).getCallerFile(),t),this}count(e){return N(`<array|string>`,[e],arguments.length),this[$](`count`,e),this[On](e),this}default(e,t,n){return N(`<object|string|array> [*] [string]`,[e,t,n],arguments.length),n&&(Ve(e,F(this,Y,`f`)),F(this,K,`f`).defaultDescription[e]=n),typeof t==`function`&&(Ve(e,F(this,Y,`f`)),F(this,K,`f`).defaultDescription[e]||(F(this,K,`f`).defaultDescription[e]=F(this,X,`f`).functionDescription(t)),t=t.call()),this[on](this.default.bind(this),`default`,e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return N(`[number] [number|string] [string|null|undefined] [string|null|undefined]`,[e,t,n,r],arguments.length),typeof t!=`number`&&(n=t,t=1/0),this.global(`_`,!1),F(this,K,`f`).demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(e=>{j(n,!0,F(this,Y,`f`)),this.demandOption(e,n)}),t=1/0):typeof t!=`number`&&(n=t,t=1/0),typeof e==`number`?(j(n,!0,F(this,Y,`f`)),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(e=>{j(n,!0,F(this,Y,`f`)),this.demandOption(e,n)}):typeof n==`string`?this.demandOption(e,n):(n===!0||n===void 0)&&this.demandOption(e),this}demandOption(e,t){return N(`<object|string|array> [string]`,[e,t],arguments.length),this[on](this.demandOption.bind(this),`demandedOptions`,e,t),this}deprecateOption(e,t){return N(`<string> [string|boolean]`,[e,t],arguments.length),F(this,K,`f`).deprecatedOptions[e]=t,this}describe(e,t){return N(`<object|string|array> [string]`,[e,t],arguments.length),this[un](e,!0),F(this,X,`f`).describe(e,t),this}detectLocale(e){return N(`<boolean>`,[e],arguments.length),P(this,jt,e,`f`),this}env(e){return N(`[string|boolean]`,[e],arguments.length),e===!1?delete F(this,K,`f`).envPrefix:F(this,K,`f`).envPrefix=e||``,this}epilogue(e){return N(`<string>`,[e],arguments.length),F(this,X,`f`).epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return N(`<string|array> [string]`,[e,t],arguments.length),Array.isArray(e)?e.forEach(e=>this.example(...e)):F(this,X,`f`).example(e,t),this}exit(e,t){P(this,U,!0,`f`),P(this,z,t,`f`),F(this,B,`f`)&&F(this,Y,`f`).process.exit(e)}exitProcess(e=!0){return N(`[boolean]`,[e],arguments.length),P(this,B,e,`f`),this}fail(e){if(N(`<function|boolean>`,[e],arguments.length),typeof e==`boolean`&&e!==!1)throw new k(`Invalid first argument. Expected function or boolean 'false'`);return F(this,X,`f`).failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return N(`<array> [function]`,[e,t],arguments.length),t?F(this,L,`f`).getCompletion(e,t):new Promise((t,n)=>{F(this,L,`f`).getCompletion(e,(e,r)=>{e?n(e):t(r)})})}getDemandedOptions(){return N([],0),F(this,K,`f`).demandedOptions}getDemandedCommands(){return N([],0),F(this,K,`f`).demandedCommands}getDeprecatedOptions(){return N([],0),F(this,K,`f`).deprecatedOptions}getDetectLocale(){return F(this,jt,`f`)}getExitProcess(){return F(this,B,`f`)}getGroups(){return Object.assign({},F(this,H,`f`),F(this,Bt,`f`))}getHelp(){if(P(this,U,!0,`f`),!F(this,X,`f`).hasCachedHelpMessage()){if(!this.parsed){let e=this[Tn](F(this,J,`f`),void 0,void 0,0,!0);if(M(e))return e.then(()=>F(this,X,`f`).help())}let e=F(this,I,`f`).runDefaultBuilderOn(this);if(M(e))return e.then(()=>F(this,X,`f`).help())}return Promise.resolve(F(this,X,`f`).help())}getOptions(){return F(this,K,`f`)}getStrict(){return F(this,Ht,`f`)}getStrictCommands(){return F(this,Ut,`f`)}getStrictOptions(){return F(this,Wt,`f`)}global(e,t){return N(`<string|array> [boolean]`,[e,t],arguments.length),e=[].concat(e),t===!1?e.forEach(e=>{F(this,K,`f`).local.includes(e)||F(this,K,`f`).local.push(e)}):F(this,K,`f`).local=F(this,K,`f`).local.filter(t=>e.indexOf(t)===-1),this}group(e,t){N(`<string|array> <string>`,[e,t],arguments.length);let n=F(this,Bt,`f`)[t]||F(this,H,`f`)[t];F(this,Bt,`f`)[t]&&delete F(this,Bt,`f`)[t];let r={};return F(this,H,`f`)[t]=(n||[]).concat(e).filter(e=>r[e]?!1:r[e]=!0),this}hide(e){return N(`<string>`,[e],arguments.length),F(this,K,`f`).hiddenOptions.push(e),this}implies(e,t){return N(`<string|object> [number|string|array]`,[e,t],arguments.length),F(this,Q,`f`).implies(e,t),this}locale(e){return N(`[string]`,[e],arguments.length),e===void 0?(this[tn](),F(this,Y,`f`).y18n.getLocale()):(P(this,jt,!1,`f`),F(this,Y,`f`).y18n.setLocale(e),this)}middleware(e,t,n){return F(this,V,`f`).addMiddleware(e,!!t,n)}nargs(e,t){return N(`<string|object|array> [number]`,[e,t],arguments.length),this[on](this.nargs.bind(this),`narg`,e,t),this}normalize(e){return N(`<array|string>`,[e],arguments.length),this[$](`normalize`,e),this}number(e){return N(`<array|string>`,[e],arguments.length),this[$](`number`,e),this[On](e),this}option(e,t){if(N(`<string|object> [object]`,[e,t],arguments.length),typeof e==`object`)Object.keys(e).forEach(t=>{this.options(t,e[t])});else{typeof t!=`object`&&(t={}),this[On](e),F(this,Z,`f`)&&(e===`version`||t?.alias===`version`)&&this[Xt]([`"version" is a reserved word.`,`Please do one of the following:`,'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)",`- Use a different option key`,`https://yargs.js.org/docs/#api-reference-version`].join(`
81
81
  `),void 0,`versionWarning`),F(this,K,`f`).key[e]=!0,t.alias&&this.alias(e,t.alias);let n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);let r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,typeof t.demandOption==`string`?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),`default`in t&&this.default(e,t.default),t.implies!==void 0&&this.implies(e,t.implies),t.nargs!==void 0&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||t.type===`boolean`)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||t.type===`array`)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||t.type===`number`)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||t.type===`string`)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||t.type===`count`)&&this.count(e),typeof t.global==`boolean`&&this.global(e,t.global),t.defaultDescription&&(F(this,K,`f`).defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,a=F(this,X,`f`).getDescriptions();(!Object.prototype.hasOwnProperty.call(a,e)||typeof i==`string`)&&this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){N(`[string|array] [function|boolean|object] [function]`,[e,t,n],arguments.length),this[Zt](),e===void 0&&(e=F(this,J,`f`)),typeof t==`object`&&(P(this,Rt,t,`f`),t=n),typeof t==`function`&&(P(this,q,t,`f`),t=!1),t||P(this,J,e,`f`),F(this,q,`f`)&&P(this,B,!1,`f`);let r=this[Tn](e,!!t),i=this.parsed;return F(this,L,`f`).setParsed(this.parsed),M(r)?r.then(e=>(F(this,q,`f`)&&F(this,q,`f`).call(this,F(this,z,`f`),e,F(this,G,`f`)),e)).catch(e=>{throw F(this,q,`f`)&&F(this,q,`f`)(e,this.parsed.argv,F(this,G,`f`)),e}).finally(()=>{this[dn](),this.parsed=i}):(F(this,q,`f`)&&F(this,q,`f`).call(this,F(this,z,`f`),r,F(this,G,`f`)),this[dn](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return M(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(M(r))throw new k(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return r}parserConfiguration(e){return N(`<object>`,[e],arguments.length),P(this,Lt,e,`f`),this}pkgConf(e,t){N(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[an](t||F(this,Ot,`f`));return r[e]&&typeof r[e]==`object`&&(n=wt(r[e],t||F(this,Ot,`f`),this[$t]()[`deep-merge-config`]||!1,F(this,Y,`f`)),F(this,K,`f`).configObjects=(F(this,K,`f`).configObjects||[]).concat(n)),this}positional(e,t){N(`<string> <object>`,[e,t],arguments.length);let n=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];t=st(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=F(this,kt,`f`).fullCommands[F(this,kt,`f`).fullCommands.length-1],i=r?F(this,I,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return He(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.indexOf(e)!==-1&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])}),this.group(e,F(this,X,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return N(`[boolean]`,[e],arguments.length),P(this,Vt,e,`f`),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return N(`<array|string|object> [number]`,[e],arguments.length),typeof e==`string`&&F(this,K,`f`).narg[e]||this[on](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return N(`[string] [string]`,[e,t],arguments.length),e||=this.$0,F(this,Ft,`f`).log(F(this,L,`f`).generateCompletionScript(e,t||F(this,R,`f`)||`completion`)),this}showHelp(e){if(N(`[string|function]`,[e],arguments.length),P(this,U,!0,`f`),!F(this,X,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[Tn](F(this,J,`f`),void 0,void 0,0,!0);if(M(t))return t.then(()=>{F(this,X,`f`).showHelp(e)}),this}let t=F(this,I,`f`).runDefaultBuilderOn(this);if(M(t))return t.then(()=>{F(this,X,`f`).showHelp(e)}),this}return F(this,X,`f`).showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return N(`[boolean|string] [string]`,[e,t],arguments.length),F(this,X,`f`).showHelpOnFail(e,t),this}showVersion(e){return N(`[string|function]`,[e],arguments.length),F(this,X,`f`).showVersion(e),this}skipValidation(e){return N(`<array|string>`,[e],arguments.length),this[$](`skipValidation`,e),this}strict(e){return N(`[boolean]`,[e],arguments.length),P(this,Ht,e!==!1,`f`),this}strictCommands(e){return N(`[boolean]`,[e],arguments.length),P(this,Ut,e!==!1,`f`),this}strictOptions(e){return N(`[boolean]`,[e],arguments.length),P(this,Wt,e!==!1,`f`),this}string(e){return N(`<array|string>`,[e],arguments.length),this[$](`string`,e),this[On](e),this}terminalWidth(){return N([],0),F(this,Y,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return N(`<object>`,[e],arguments.length),P(this,jt,!1,`f`),F(this,Y,`f`).y18n.updateLocale(e),this}usage(e,t,n,r){if(N(`<string|null|undefined> [string|boolean] [function|object] [function]`,[e,t,n,r],arguments.length),t!==void 0){if(j(e,null,F(this,Y,`f`)),(e||``).match(/^\$0( |$)/))return this.command(e,t,n,r);throw new k(`.usage() description must start with $0 if being used as alias for .command()`)}else return F(this,X,`f`).usage(e),this}usageConfiguration(e){return N(`<object>`,[e],arguments.length),P(this,Gt,e,`f`),this}version(e,t,n){let r=`version`;if(N(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),F(this,Z,`f`)&&(this[Yt](F(this,Z,`f`)),F(this,X,`f`).version(void 0),P(this,Z,null,`f`)),arguments.length===0)n=this[nn](),e=r;else if(arguments.length===1){if(e===!1)return this;n=e,e=r}else arguments.length===2&&(n=t,t=void 0);return P(this,Z,typeof e==`string`?e:r,`f`),t||=F(this,X,`f`).deferY18nLookup(`Show version number`),F(this,X,`f`).version(n||void 0),this.boolean(F(this,Z,`f`)),this.describe(F(this,Z,`f`),t),this}wrap(e){return N(`<number|null|undefined>`,[e],arguments.length),F(this,X,`f`).wrap(e),this}[(I=new WeakMap,Ot=new WeakMap,kt=new WeakMap,L=new WeakMap,R=new WeakMap,At=new WeakMap,z=new WeakMap,jt=new WeakMap,Mt=new WeakMap,B=new WeakMap,Nt=new WeakMap,V=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,Pt=new WeakMap,Ft=new WeakMap,G=new WeakMap,K=new WeakMap,It=new WeakMap,Lt=new WeakMap,q=new WeakMap,Rt=new WeakMap,zt=new WeakMap,Bt=new WeakMap,J=new WeakMap,Vt=new WeakMap,Y=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap,X=new WeakMap,Gt=new WeakMap,Z=new WeakMap,Q=new WeakMap,qt)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[Jt](){return{log:(...e)=>{this[bn]()||console.log(...e),P(this,U,!0,`f`),F(this,G,`f`).length&&P(this,G,F(this,G,`f`)+`
82
82
  `,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)},error:(...e)=>{this[bn]()||console.error(...e),P(this,U,!0,`f`),F(this,G,`f`).length&&P(this,G,F(this,G,`f`)+`
83
- `,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)}}}[Yt](e){He(F(this,K,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=F(this,K,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete F(this,X,`f`).getDescriptions()[e]}[Xt](e,t,n){F(this,Mt,`f`)[n]||(F(this,Y,`f`).process.emitWarning(e,t),F(this,Mt,`f`)[n]=!0)}[Zt](){F(this,Nt,`f`).push({options:F(this,K,`f`),configObjects:F(this,K,`f`).configObjects.slice(0),exitProcess:F(this,B,`f`),groups:F(this,H,`f`),strict:F(this,Ht,`f`),strictCommands:F(this,Ut,`f`),strictOptions:F(this,Wt,`f`),completionCommand:F(this,R,`f`),output:F(this,G,`f`),exitError:F(this,z,`f`),hasOutput:F(this,U,`f`),parsed:this.parsed,parseFn:F(this,q,`f`),parseContext:F(this,Rt,`f`)}),F(this,X,`f`).freeze(),F(this,Q,`f`).freeze(),F(this,I,`f`).freeze(),F(this,V,`f`).freeze()}[Qt](){let e=``,t;return t=/\b(node|iojs|electron)(\.exe)?$/.test(F(this,Y,`f`).process.argv()[0])?F(this,Y,`f`).process.argv().slice(1,2):F(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[Cn](F(this,Ot,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),F(this,Y,`f`).getEnv(`_`)&&F(this,Y,`f`).getProcessArgvBin()===F(this,Y,`f`).getEnv(`_`)&&(e=F(this,Y,`f`).getEnv(`_`).replace(`${F(this,Y,`f`).path.dirname(F(this,Y,`f`).process.execPath())}/`,``)),e}[$t](){return F(this,Lt,`f`)}[en](){return F(this,Gt,`f`)}[tn](){if(!F(this,jt,`f`))return;let e=F(this,Y,`f`).getEnv(`LC_ALL`)||F(this,Y,`f`).getEnv(`LC_MESSAGES`)||F(this,Y,`f`).getEnv(`LANG`)||F(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[nn](){return this[an]().version||`unknown`}[rn](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)F(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[an](e){let t=e||`*`;if(F(this,zt,`f`)[t])return F(this,zt,`f`)[t];let n={};try{let t=e||F(this,Y,`f`).mainFilename;!e&&F(this,Y,`f`).path.extname(t)&&(t=F(this,Y,`f`).path.dirname(t));let r=F(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,F(this,Y,`f`)),n=JSON.parse(F(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return F(this,zt,`f`)[t]=n||{},F(this,zt,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[ln](t),F(this,K,`f`)[e].push(t)})}[on](e,t,n,r){this[cn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=n})}[sn](e,t,n,r){this[cn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=(F(this,K,`f`)[e][t]||[]).concat(n)})}[cn](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of He(n))e(t,n[t]);else i(t,this[ln](n),r)}[ln](e){return e===`__proto__`?`___proto___`:e}[un](e,t){return this[on](this[un].bind(this),`key`,e,t),this}[dn](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=F(this,Nt,`f`).pop();j(f,void 0,F(this,Y,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){P(e,K,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){P(t,B,e,`f`)}}.value,groups:{set value(e){P(n,H,e,`f`)}}.value,output:{set value(e){P(r,G,e,`f`)}}.value,exitError:{set value(e){P(i,z,e,`f`)}}.value,hasOutput:{set value(e){P(a,U,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){P(o,Ht,e,`f`)}}.value,strictCommands:{set value(e){P(s,Ut,e,`f`)}}.value,strictOptions:{set value(e){P(c,Wt,e,`f`)}}.value,completionCommand:{set value(e){P(l,R,e,`f`)}}.value,parseFn:{set value(e){P(u,q,e,`f`)}}.value,parseContext:{set value(e){P(d,Rt,e,`f`)}}.value}=f,F(this,K,`f`).configObjects=p,F(this,X,`f`).unfreeze(),F(this,Q,`f`).unfreeze(),F(this,I,`f`).unfreeze(),F(this,V,`f`).unfreeze()}[fn](e,t){return Xe(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[pn].bind(this),getContext:this[mn].bind(this),getHasOutput:this[hn].bind(this),getLoggerInstance:this[gn].bind(this),getParseContext:this[_n].bind(this),getParserConfiguration:this[$t].bind(this),getUsageConfiguration:this[en].bind(this),getUsageInstance:this[vn].bind(this),getValidationInstance:this[yn].bind(this),hasParseCallback:this[bn].bind(this),isGlobalContext:this[xn].bind(this),postProcess:this[Sn].bind(this),reset:this[wn].bind(this),runValidation:this[En].bind(this),runYargsParserAndExecuteCommands:this[Tn].bind(this),setHasOutput:this[Dn].bind(this)}}[pn](){return F(this,I,`f`)}[mn](){return F(this,kt,`f`)}[hn](){return F(this,U,`f`)}[gn](){return F(this,Ft,`f`)}[_n](){return F(this,Rt,`f`)||{}}[vn](){return F(this,X,`f`)}[yn](){return F(this,Q,`f`)}[bn](){return!!F(this,q,`f`)}[xn](){return F(this,Pt,`f`)}[Sn](e,t,n,r){return n||M(e)?e:(t||(e=this[qt](e)),(this[$t]()[`parse-positional-numbers`]||this[$t]()[`parse-positional-numbers`]===void 0)&&(e=this[rn](e)),r&&(e=Ye(e,this,F(this,V,`f`).getMiddleware(),!1)),e)}[wn](e={}){P(this,K,F(this,K,`f`)||{},`f`);let t={};t.local=F(this,K,`f`).local||[],t.configObjects=F(this,K,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(F(this,Bt,`f`),Object.keys(F(this,H,`f`)).reduce((e,t)=>{let r=F(this,H,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),P(this,H,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(F(this,K,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=st(F(this,K,`f`)[e],e=>!n[e])}),t.envPrefix=F(this,K,`f`).envPrefix,P(this,K,t,`f`),P(this,X,F(this,X,`f`)?F(this,X,`f`).reset(n):ut(this,F(this,Y,`f`)),`f`),P(this,Q,F(this,Q,`f`)?F(this,Q,`f`).reset(n):xt(this,F(this,X,`f`),F(this,Y,`f`)),`f`),P(this,I,F(this,I,`f`)?F(this,I,`f`).reset():tt(F(this,X,`f`),F(this,Q,`f`),F(this,V,`f`),F(this,Y,`f`)),`f`),F(this,L,`f`)||P(this,L,gt(this,F(this,X,`f`),F(this,I,`f`),F(this,Y,`f`)),`f`),F(this,V,`f`).reset(),P(this,R,null,`f`),P(this,G,``,`f`),P(this,z,null,`f`),P(this,U,!1,`f`),this.parsed=!1,this}[Cn](e,t){return F(this,Y,`f`).path.relative(e,t)}[Tn](e,t,n,r=0,i=!1){let a=!!n||i;e||=F(this,J,`f`),F(this,K,`f`).__=F(this,Y,`f`).y18n.__,F(this,K,`f`).configuration=this[$t]();let o=!!F(this,K,`f`).configuration[`populate--`],s=Object.assign({},F(this,K,`f`).configuration,{"populate--":!0}),c=F(this,Y,`f`).Parser.detailed(e,Object.assign({},F(this,K,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,F(this,Rt,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===F(this,W,`f`)&&l[e]?f=!0:e===F(this,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&F(this,X,`f`).clearCachedHelpMessage();try{if(this[tn](),t)return this[Sn](l,o,!!n,!1);F(this,W,`f`)&&[F(this,W,`f`)].concat(d[F(this,W,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),P(this,Pt,!1,`f`);let s=F(this,I,`f`).getCommands(),m=F(this,L,`f`).completionKey in l,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++)if(a=String(l._[t]),s.includes(a)&&a!==F(this,R,`f`)){let e=F(this,I,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[Sn](e,o,!!n,!1)}else if(!e&&a!==F(this,R,`f`)){e=a;break}!F(this,I,`f`).hasDefaultCommand()&&F(this,Vt,`f`)&&e&&!h&&F(this,Q,`f`).recommendCommands(e,s)}F(this,R,`f`)&&l._.includes(F(this,R,`f`))&&!m&&(F(this,B,`f`)&&ct(!0),this.showCompletionScript(),this.exit(0))}if(F(this,I,`f`).hasDefaultCommand()&&!h){let e=F(this,I,`f`).runCommand(null,this,c,0,i,f||p||i);return this[Sn](e,o,!!n,!1)}if(m){F(this,B,`f`)&&ct(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${F(this,L,`f`).completionKey}`)+1);return F(this,L,`f`).getCompletion(t,(e,t)=>{if(e)throw new k(e.message);(t||[]).forEach(e=>{F(this,Ft,`f`).log(e)}),this.exit(0)}),this[Sn](l,!o,!!n,!1)}if(F(this,U,`f`)||(f?(F(this,B,`f`)&&ct(!0),a=!0,this.showHelp(`log`),this.exit(0)):p&&(F(this,B,`f`)&&ct(!0),a=!0,F(this,X,`f`).showVersion(`log`),this.exit(0))),!a&&F(this,K,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>F(this,K,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new k(c.error.message);if(!m){let e=this[En](d,{},c.error);n||(u=Ye(l,this,F(this,V,`f`).getMiddleware(),!0)),u=this[fn](e,u??l),M(u)&&!n&&(u=u.then(()=>Ye(l,this,F(this,V,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof k)F(this,X,`f`).fail(e.message,e);else throw e}return this[Sn](u??l,o,!!n,!0)}[En](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new k(n.message);F(this,Q,`f`).nonOptionCount(a),F(this,Q,`f`).requiredArguments(a,i);let o=!1;F(this,Ut,`f`)&&(o=F(this,Q,`f`).unknownCommands(a)),F(this,Ht,`f`)&&!o?F(this,Q,`f`).unknownArguments(a,e,t,!!r):F(this,Wt,`f`)&&F(this,Q,`f`).unknownArguments(a,e,{},!1,!1),F(this,Q,`f`).limitedChoices(a),F(this,Q,`f`).implications(a),F(this,Q,`f`).conflicting(a)}}[Dn](){P(this,U,!0,`f`)}[On](e){if(typeof e==`string`)F(this,K,`f`).key[e]=!0;else for(let t of e)F(this,K,`f`).key[t]=!0}};function An(e){return!!e&&typeof e.getInternalMethods==`function`}var jn=Kt(Be);function Mn(e,t){return e.startsWith(`.`)?import(u(t,e)):import(e)}function Nn(e,t){return Mn(e,t).catch(e=>{if(e.code===`ERR_MODULE_NOT_FOUND`&&e.message.endsWith(` imported from ${g(import.meta.url)}`))return!1;throw e})}function Pn(e){return Object.keys(e).some(e=>e&&e!==`$0`)}function Fn(e,t){let{homepage:n,site:r=n,repository:i}=t,a=r&&r!==i,o=e.getInternalMethods(),s=Pn(o.getCommandInstance().handlers);return o.getUsageInstance().getUsage().length===0&&(s?e.usage(`Usage: $0 <command>`):e.usage(`Usage: $0`)),s&&e.demandCommand(1,`Won't work without a command`),a&&e.epilogue(`Website: ${r}`),i&&e.epilogue(`Repository: ${i}`),e}function In(e,t){if(typeof e==`string`||!e)return t;let n=Object.keys(e);return n.length===1?n[0]:!1}var Ln=class{constructor(e,n){this.root=n;let{bin:r,homepage:i,name:a=`cheetor`,repository:{url:o=``}={},version:s}=typeof e==`string`?JSON.parse(t(new URL(e,n))):e;this.homepage=i,this.repository=o.includes(`github.com`)?o.replace(/\.git$/,``):``;let c=jn(process.argv.slice(2)).strict().alias(`help`,`h`).alias(`version`,`v`).hide(`help`).version(s).hide(`version`).detectLocale(!1),l=In(r,a);l&&c.scriptName(l),this.cli=Promise.resolve(c)}config(e){return this.cli=this.cli.then(e),this}command(...e){return this.cli=this.cli.then(t=>t.command(...e)),this}commandFrom(e){return this.cli=this.cli.then(async t=>{let n=await Mn(e,this.root);return t.command(n)}),this}commandSafe(e){return this.cli=this.cli.then(t=>Nn(e,this.root).then(e=>e&&e.command?t.command(e):t)),this}commandSmart(e){return this.cli=this.cli.then(async t=>{let n=e();return n&&n.command?t.command(n):t}),this}website(e){return this.site=e,this}middleware(...e){return this.cli=this.cli.then(t=>t.middleware(...e)),this}setup(e){return this.cli.then(e=>Fn(e,this)).then(t=>typeof e==`function`?e(t.parse()):t.parse())}};process.on(`SIGINT`,()=>{}),new Ln(`../package.json`,import.meta.url).website(`https://www.npmjs.com/org/nice-move`).setup(()=>{import(`./lib-Diryy38G.mjs`).then(({init:e})=>{e()}).catch(e=>{if(e.message!==`cancel`)throw e})});export{x as n,b as r,ie as t};
83
+ `,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)}}}[Yt](e){He(F(this,K,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=F(this,K,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete F(this,X,`f`).getDescriptions()[e]}[Xt](e,t,n){F(this,Mt,`f`)[n]||(F(this,Y,`f`).process.emitWarning(e,t),F(this,Mt,`f`)[n]=!0)}[Zt](){F(this,Nt,`f`).push({options:F(this,K,`f`),configObjects:F(this,K,`f`).configObjects.slice(0),exitProcess:F(this,B,`f`),groups:F(this,H,`f`),strict:F(this,Ht,`f`),strictCommands:F(this,Ut,`f`),strictOptions:F(this,Wt,`f`),completionCommand:F(this,R,`f`),output:F(this,G,`f`),exitError:F(this,z,`f`),hasOutput:F(this,U,`f`),parsed:this.parsed,parseFn:F(this,q,`f`),parseContext:F(this,Rt,`f`)}),F(this,X,`f`).freeze(),F(this,Q,`f`).freeze(),F(this,I,`f`).freeze(),F(this,V,`f`).freeze()}[Qt](){let e=``,t;return t=/\b(node|iojs|electron)(\.exe)?$/.test(F(this,Y,`f`).process.argv()[0])?F(this,Y,`f`).process.argv().slice(1,2):F(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[Cn](F(this,Ot,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),F(this,Y,`f`).getEnv(`_`)&&F(this,Y,`f`).getProcessArgvBin()===F(this,Y,`f`).getEnv(`_`)&&(e=F(this,Y,`f`).getEnv(`_`).replace(`${F(this,Y,`f`).path.dirname(F(this,Y,`f`).process.execPath())}/`,``)),e}[$t](){return F(this,Lt,`f`)}[en](){return F(this,Gt,`f`)}[tn](){if(!F(this,jt,`f`))return;let e=F(this,Y,`f`).getEnv(`LC_ALL`)||F(this,Y,`f`).getEnv(`LC_MESSAGES`)||F(this,Y,`f`).getEnv(`LANG`)||F(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[nn](){return this[an]().version||`unknown`}[rn](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)F(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[an](e){let t=e||`*`;if(F(this,zt,`f`)[t])return F(this,zt,`f`)[t];let n={};try{let t=e||F(this,Y,`f`).mainFilename;!e&&F(this,Y,`f`).path.extname(t)&&(t=F(this,Y,`f`).path.dirname(t));let r=F(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,F(this,Y,`f`)),n=JSON.parse(F(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return F(this,zt,`f`)[t]=n||{},F(this,zt,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[ln](t),F(this,K,`f`)[e].push(t)})}[on](e,t,n,r){this[cn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=n})}[sn](e,t,n,r){this[cn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=(F(this,K,`f`)[e][t]||[]).concat(n)})}[cn](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of He(n))e(t,n[t]);else i(t,this[ln](n),r)}[ln](e){return e===`__proto__`?`___proto___`:e}[un](e,t){return this[on](this[un].bind(this),`key`,e,t),this}[dn](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=F(this,Nt,`f`).pop();j(f,void 0,F(this,Y,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){P(e,K,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){P(t,B,e,`f`)}}.value,groups:{set value(e){P(n,H,e,`f`)}}.value,output:{set value(e){P(r,G,e,`f`)}}.value,exitError:{set value(e){P(i,z,e,`f`)}}.value,hasOutput:{set value(e){P(a,U,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){P(o,Ht,e,`f`)}}.value,strictCommands:{set value(e){P(s,Ut,e,`f`)}}.value,strictOptions:{set value(e){P(c,Wt,e,`f`)}}.value,completionCommand:{set value(e){P(l,R,e,`f`)}}.value,parseFn:{set value(e){P(u,q,e,`f`)}}.value,parseContext:{set value(e){P(d,Rt,e,`f`)}}.value}=f,F(this,K,`f`).configObjects=p,F(this,X,`f`).unfreeze(),F(this,Q,`f`).unfreeze(),F(this,I,`f`).unfreeze(),F(this,V,`f`).unfreeze()}[fn](e,t){return Xe(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[pn].bind(this),getContext:this[mn].bind(this),getHasOutput:this[hn].bind(this),getLoggerInstance:this[gn].bind(this),getParseContext:this[_n].bind(this),getParserConfiguration:this[$t].bind(this),getUsageConfiguration:this[en].bind(this),getUsageInstance:this[vn].bind(this),getValidationInstance:this[yn].bind(this),hasParseCallback:this[bn].bind(this),isGlobalContext:this[xn].bind(this),postProcess:this[Sn].bind(this),reset:this[wn].bind(this),runValidation:this[En].bind(this),runYargsParserAndExecuteCommands:this[Tn].bind(this),setHasOutput:this[Dn].bind(this)}}[pn](){return F(this,I,`f`)}[mn](){return F(this,kt,`f`)}[hn](){return F(this,U,`f`)}[gn](){return F(this,Ft,`f`)}[_n](){return F(this,Rt,`f`)||{}}[vn](){return F(this,X,`f`)}[yn](){return F(this,Q,`f`)}[bn](){return!!F(this,q,`f`)}[xn](){return F(this,Pt,`f`)}[Sn](e,t,n,r){return n||M(e)?e:(t||(e=this[qt](e)),(this[$t]()[`parse-positional-numbers`]||this[$t]()[`parse-positional-numbers`]===void 0)&&(e=this[rn](e)),r&&(e=Ye(e,this,F(this,V,`f`).getMiddleware(),!1)),e)}[wn](e={}){P(this,K,F(this,K,`f`)||{},`f`);let t={};t.local=F(this,K,`f`).local||[],t.configObjects=F(this,K,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(F(this,Bt,`f`),Object.keys(F(this,H,`f`)).reduce((e,t)=>{let r=F(this,H,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),P(this,H,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(F(this,K,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=st(F(this,K,`f`)[e],e=>!n[e])}),t.envPrefix=F(this,K,`f`).envPrefix,P(this,K,t,`f`),P(this,X,F(this,X,`f`)?F(this,X,`f`).reset(n):ut(this,F(this,Y,`f`)),`f`),P(this,Q,F(this,Q,`f`)?F(this,Q,`f`).reset(n):xt(this,F(this,X,`f`),F(this,Y,`f`)),`f`),P(this,I,F(this,I,`f`)?F(this,I,`f`).reset():tt(F(this,X,`f`),F(this,Q,`f`),F(this,V,`f`),F(this,Y,`f`)),`f`),F(this,L,`f`)||P(this,L,gt(this,F(this,X,`f`),F(this,I,`f`),F(this,Y,`f`)),`f`),F(this,V,`f`).reset(),P(this,R,null,`f`),P(this,G,``,`f`),P(this,z,null,`f`),P(this,U,!1,`f`),this.parsed=!1,this}[Cn](e,t){return F(this,Y,`f`).path.relative(e,t)}[Tn](e,t,n,r=0,i=!1){let a=!!n||i;e||=F(this,J,`f`),F(this,K,`f`).__=F(this,Y,`f`).y18n.__,F(this,K,`f`).configuration=this[$t]();let o=!!F(this,K,`f`).configuration[`populate--`],s=Object.assign({},F(this,K,`f`).configuration,{"populate--":!0}),c=F(this,Y,`f`).Parser.detailed(e,Object.assign({},F(this,K,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,F(this,Rt,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===F(this,W,`f`)&&l[e]?f=!0:e===F(this,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&F(this,X,`f`).clearCachedHelpMessage();try{if(this[tn](),t)return this[Sn](l,o,!!n,!1);F(this,W,`f`)&&[F(this,W,`f`)].concat(d[F(this,W,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),P(this,Pt,!1,`f`);let s=F(this,I,`f`).getCommands(),m=F(this,L,`f`).completionKey in l,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++)if(a=String(l._[t]),s.includes(a)&&a!==F(this,R,`f`)){let e=F(this,I,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[Sn](e,o,!!n,!1)}else if(!e&&a!==F(this,R,`f`)){e=a;break}!F(this,I,`f`).hasDefaultCommand()&&F(this,Vt,`f`)&&e&&!h&&F(this,Q,`f`).recommendCommands(e,s)}F(this,R,`f`)&&l._.includes(F(this,R,`f`))&&!m&&(F(this,B,`f`)&&ct(!0),this.showCompletionScript(),this.exit(0))}if(F(this,I,`f`).hasDefaultCommand()&&!h){let e=F(this,I,`f`).runCommand(null,this,c,0,i,f||p||i);return this[Sn](e,o,!!n,!1)}if(m){F(this,B,`f`)&&ct(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${F(this,L,`f`).completionKey}`)+1);return F(this,L,`f`).getCompletion(t,(e,t)=>{if(e)throw new k(e.message);(t||[]).forEach(e=>{F(this,Ft,`f`).log(e)}),this.exit(0)}),this[Sn](l,!o,!!n,!1)}if(F(this,U,`f`)||(f?(F(this,B,`f`)&&ct(!0),a=!0,this.showHelp(`log`),this.exit(0)):p&&(F(this,B,`f`)&&ct(!0),a=!0,F(this,X,`f`).showVersion(`log`),this.exit(0))),!a&&F(this,K,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>F(this,K,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new k(c.error.message);if(!m){let e=this[En](d,{},c.error);n||(u=Ye(l,this,F(this,V,`f`).getMiddleware(),!0)),u=this[fn](e,u??l),M(u)&&!n&&(u=u.then(()=>Ye(l,this,F(this,V,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof k)F(this,X,`f`).fail(e.message,e);else throw e}return this[Sn](u??l,o,!!n,!0)}[En](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new k(n.message);F(this,Q,`f`).nonOptionCount(a),F(this,Q,`f`).requiredArguments(a,i);let o=!1;F(this,Ut,`f`)&&(o=F(this,Q,`f`).unknownCommands(a)),F(this,Ht,`f`)&&!o?F(this,Q,`f`).unknownArguments(a,e,t,!!r):F(this,Wt,`f`)&&F(this,Q,`f`).unknownArguments(a,e,{},!1,!1),F(this,Q,`f`).limitedChoices(a),F(this,Q,`f`).implications(a),F(this,Q,`f`).conflicting(a)}}[Dn](){P(this,U,!0,`f`)}[On](e){if(typeof e==`string`)F(this,K,`f`).key[e]=!0;else for(let t of e)F(this,K,`f`).key[t]=!0}};function An(e){return!!e&&typeof e.getInternalMethods==`function`}var jn=Kt(Be);function Mn(e,t){return e.startsWith(`.`)?import(u(t,e)):import(e)}function Nn(e,t){return Mn(e,t).catch(e=>{if(e.code===`ERR_MODULE_NOT_FOUND`&&e.message.endsWith(` imported from ${g(import.meta.url)}`))return!1;throw e})}function Pn(e){return Object.keys(e).some(e=>e&&e!==`$0`)}function Fn(e,t){let{homepage:n,site:r=n,repository:i}=t,a=r&&r!==i,o=e.getInternalMethods(),s=Pn(o.getCommandInstance().handlers);return o.getUsageInstance().getUsage().length===0&&(s?e.usage(`Usage: $0 <command>`):e.usage(`Usage: $0`)),s&&e.demandCommand(1,`Won't work without a command`),a&&e.epilogue(`Website: ${r}`),i&&e.epilogue(`Repository: ${i}`),e}function In(e,t){if(typeof e==`string`||!e)return t;let n=Object.keys(e);return n.length===1?n[0]:!1}var Ln=class{constructor(e,n){this.root=n;let{bin:r,homepage:i,name:a=`cheetor`,repository:{url:o=``}={},version:s}=typeof e==`string`?JSON.parse(t(new URL(e,n))):e;this.homepage=i,this.repository=o.includes(`github.com`)?o.replace(/\.git$/,``):``;let c=jn(process.argv.slice(2)).strict().alias(`help`,`h`).alias(`version`,`v`).hide(`help`).version(s).hide(`version`).detectLocale(!1),l=In(r,a);l&&c.scriptName(l),this.cli=Promise.resolve(c)}config(e){return this.cli=this.cli.then(e),this}command(...e){return this.cli=this.cli.then(t=>t.command(...e)),this}commandFrom(e){return this.cli=this.cli.then(async t=>{let n=await Mn(e,this.root);return t.command(n)}),this}commandSafe(e){return this.cli=this.cli.then(t=>Nn(e,this.root).then(e=>e&&e.command?t.command(e):t)),this}commandSmart(e){return this.cli=this.cli.then(async t=>{let n=e();return n&&n.command?t.command(n):t}),this}website(e){return this.site=e,this}middleware(...e){return this.cli=this.cli.then(t=>t.middleware(...e)),this}setup(e){return this.cli.then(e=>Fn(e,this)).then(t=>typeof e==`function`?e(t.parse()):t.parse())}};process.on(`SIGINT`,()=>{}),new Ln(`../package.json`,import.meta.url).website(`https://www.npmjs.com/org/nice-move`).setup(()=>{import(`./lib-CJK0AVWc.mjs`).then(({init:e})=>{e()}).catch(e=>{if(e.message!==`cancel`)throw e})});export{x as n,b as r,ie as t};
@@ -75,7 +75,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
75
75
  OTHER DEALINGS IN THE SOFTWARE.
76
76
 
77
77
  For more information, please refer to <https://unlicense.org/>
78
- `;async function Or(){let{license:e,author:t=``}=Sr(),n=e===`MIT`;if(n||e===`Unlicense`){let e=await xr(t);return new I().onDone(()=>n?Er.replace(`{{year}}`,new Date().getFullYear()).replace(`{{holder}}`,e):Dr).output(`LICENSE`).logger(`Create/Overwrite`,Zt(`LICENSE`)).catch(console.warn)}}const R={defaultMerge:Symbol(`deepmerge-ts: default merge`),skip:Symbol(`deepmerge-ts: skip`)};R.defaultMerge;function kr(e,t){return t}function Ar(e,t){return e.filter(e=>e!==void 0)}var jr;(function(e){e[e.NOT=0]=`NOT`,e[e.RECORD=1]=`RECORD`,e[e.ARRAY=2]=`ARRAY`,e[e.SET=3]=`SET`,e[e.MAP=4]=`MAP`,e[e.OTHER=5]=`OTHER`})(jr||={});function Mr(e){return typeof e!=`object`||!e?0:Array.isArray(e)?2:Lr(e)?1:e instanceof Set?3:e instanceof Map?4:5}function Nr(e){let t=new Set;for(let n of e)for(let e of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(e);return t}function Pr(e,t){return typeof e==`object`&&Object.prototype.propertyIsEnumerable.call(e,t)}function Fr(e){let t=0,n=e[0]?.[Symbol.iterator]();return{[Symbol.iterator](){return{next(){do{if(n===void 0)return{done:!0,value:void 0};let r=n.next();if(r.done===!0){t+=1,n=e[t]?.[Symbol.iterator]();continue}return{done:!1,value:r.value}}while(!0)}}}}}const Ir=[`[object Object]`,`[object Module]`];function Lr(e){if(!Ir.includes(Object.prototype.toString.call(e)))return!1;let{constructor:t}=e;if(t===void 0)return!0;let n=t.prototype;return!(typeof n!=`object`||!n||!Ir.includes(Object.prototype.toString.call(n))||!n.hasOwnProperty(`isPrototypeOf`))}function Rr(e,t,n){let r={};for(let i of Nr(e)){let a=[];for(let t of e)Pr(t,i)&&a.push(t[i]);if(a.length===0)continue;let o=qr(a,t,t.metaDataUpdater(n,{key:i,parents:e}));o!==R.skip&&(i===`__proto__`?Object.defineProperty(r,i,{value:o,configurable:!0,enumerable:!0,writable:!0}):r[i]=o)}return r}function zr(e){return e.flat()}function Br(e){return new Set(Fr(e))}function Vr(e){return new Map(Fr(e))}function Hr(e){return e.at(-1)}const Ur={mergeRecords:Rr,mergeArrays:zr,mergeSets:Br,mergeMaps:Vr,mergeOthers:Hr};function Wr(...e){return Gr({})(...e)}function Gr(e,t){let n=Kr(e,r);function r(...e){return qr(e,n,t)}return r}function Kr(e,t){return{defaultMergeFunctions:Ur,mergeFunctions:{...Ur,...Object.fromEntries(Object.entries(e).filter(([e,t])=>Object.hasOwn(Ur,e)).map(([e,t])=>t===!1?[e,Ur.mergeOthers]:[e,t]))},metaDataUpdater:e.metaDataUpdater??kr,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,filterValues:e.filterValues===!1?void 0:e.filterValues??Ar,actions:R}}function qr(e,t,n){let r=t.filterValues?.(e,n)??e;if(r.length===0)return;if(r.length===1)return Qr(r,t,n);let i=Mr(r[0]);if(i!==0&&i!==5){for(let e=1;e<r.length;e++)if(Mr(r[e])!==i)return Qr(r,t,n)}switch(i){case 1:return Jr(r,t,n);case 2:return Yr(r,t,n);case 3:return Xr(r,t,n);case 4:return Zr(r,t,n);default:return Qr(r,t,n)}}function Jr(e,t,n){let r=t.mergeFunctions.mergeRecords(e,t,n);return r===R.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function Yr(e,t,n){let r=t.mergeFunctions.mergeArrays(e,t,n);return r===R.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function Xr(e,t,n){let r=t.mergeFunctions.mergeSets(e,t,n);return r===R.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function Zr(e,t,n){let r=t.mergeFunctions.mergeMaps(e,t,n);return r===R.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function Qr(e,t,n){let r=t.mergeFunctions.mergeOthers(e,t,n);return r===R.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}var z={"@bring-it/cli":`^0.11.1`,"@bring-it/npm":`^0.9.3`,"@cospaia/prettier-plugin-clojure":`^0.0.2`,"@vitest/ui":`^4.0.16`,eslint:`^9.39.1`,"find-workspaces":`^0.3.1`,garou:`^0.9.17`,postcss:`^8.5.6`,prettier:`~3.7.4`,"prettier-plugin-tailwindcss":`^0.7.2`,stylelint:`^16.26.1`,syncpack:`^13.0.4`,tsdown:`^0.18.4`,typescript:`~5.9.3`,vitest:`^4.0.16`,"@bring-it/sftp":`^0.7.1`,"@nice-move/init":`^0.8.30`,"@nice-move/syncpack-config":`^0.4.2`,"@playwright/test":`~1.56.1`,"@types/react":`~18.3.27`,react:`~18.3.1`,"react-dom":`~18.3.1`,tailwindcss:`^3.4.19`,vue:`~3.5.26`,yaml:`^2.8.2`,"@nice-move/eslint-config-base":`^0.13.16`,"@nice-move/stylelint-config":`^0.10.25`,"@nice-move/prettier-config":`^0.15.7`,"@nice-move/tsconfig":`^0.4.1`,"@nice-move/cli":`^0.11.29`,"@eslint/eslintrc":`^3.3.3`,"@eslint/js":`^9.39.2`,"@eslint/markdown":`^7.5.1`,"@types/node":`^24.10.4`,chalk:`^5.6.2`,"eslint-plugin-vue":`^10.6.2`,execa:`^9.6.1`,"fs-chain":`^10.0.0`,lodash:`^4.17.21`,settingz:`^0.2.0`,"sort-keys":`^6.0.0`,"typescript-eslint":`^8.51.0`,"eslint-plugin-react-hooks":`^5.2.0`,globals:`^17.0.0`,packageManager:`pnpm@10.27.0`,engines:{node:`>=24.0.0 || ^22.18.0`,pnpm:`^10.24.0`}},$r=n(((e,t)=>{t.exports=e=>{if(typeof e!=`object`||!e)throw TypeError(`Expected an object`);let t={};for(let[n,r]of Object.entries(e))t[r]=n;for(let n of Object.getOwnPropertySymbols(e)){let r=e[n];t[r]=n}return t}})),ei=n(((e,t)=>{t.exports={4:`zh_CHS`,1025:`ar_SA`,1026:`bg_BG`,1027:`ca_ES`,1028:`zh_TW`,1029:`cs_CZ`,1030:`da_DK`,1031:`de_DE`,1032:`el_GR`,1033:`en_US`,1034:`es_ES`,1035:`fi_FI`,1036:`fr_FR`,1037:`he_IL`,1038:`hu_HU`,1039:`is_IS`,1040:`it_IT`,1041:`ja_JP`,1042:`ko_KR`,1043:`nl_NL`,1044:`nb_NO`,1045:`pl_PL`,1046:`pt_BR`,1047:`rm_CH`,1048:`ro_RO`,1049:`ru_RU`,1050:`hr_HR`,1051:`sk_SK`,1052:`sq_AL`,1053:`sv_SE`,1054:`th_TH`,1055:`tr_TR`,1056:`ur_PK`,1057:`id_ID`,1058:`uk_UA`,1059:`be_BY`,1060:`sl_SI`,1061:`et_EE`,1062:`lv_LV`,1063:`lt_LT`,1064:`tg_TJ`,1065:`fa_IR`,1066:`vi_VN`,1067:`hy_AM`,1069:`eu_ES`,1070:`wen_DE`,1071:`mk_MK`,1074:`tn_ZA`,1076:`xh_ZA`,1077:`zu_ZA`,1078:`af_ZA`,1079:`ka_GE`,1080:`fo_FO`,1081:`hi_IN`,1082:`mt_MT`,1083:`se_NO`,1086:`ms_MY`,1087:`kk_KZ`,1088:`ky_KG`,1089:`sw_KE`,1090:`tk_TM`,1092:`tt_RU`,1093:`bn_IN`,1094:`pa_IN`,1095:`gu_IN`,1096:`or_IN`,1097:`ta_IN`,1098:`te_IN`,1099:`kn_IN`,1100:`ml_IN`,1101:`as_IN`,1102:`mr_IN`,1103:`sa_IN`,1104:`mn_MN`,1105:`bo_CN`,1106:`cy_GB`,1107:`kh_KH`,1108:`lo_LA`,1109:`my_MM`,1110:`gl_ES`,1111:`kok_IN`,1114:`syr_SY`,1115:`si_LK`,1118:`am_ET`,1121:`ne_NP`,1122:`fy_NL`,1123:`ps_AF`,1124:`fil_PH`,1125:`div_MV`,1128:`ha_NG`,1130:`yo_NG`,1131:`quz_BO`,1132:`ns_ZA`,1133:`ba_RU`,1134:`lb_LU`,1135:`kl_GL`,1144:`ii_CN`,1146:`arn_CL`,1148:`moh_CA`,1150:`br_FR`,1152:`ug_CN`,1153:`mi_NZ`,1154:`oc_FR`,1155:`co_FR`,1156:`gsw_FR`,1157:`sah_RU`,1158:`qut_GT`,1159:`rw_RW`,1160:`wo_SN`,1164:`gbz_AF`,2049:`ar_IQ`,2052:`zh_CN`,2055:`de_CH`,2057:`en_GB`,2058:`es_MX`,2060:`fr_BE`,2064:`it_CH`,2067:`nl_BE`,2068:`nn_NO`,2070:`pt_PT`,2077:`sv_FI`,2080:`ur_IN`,2092:`az_AZ`,2094:`dsb_DE`,2107:`se_SE`,2108:`ga_IE`,2110:`ms_BN`,2115:`uz_UZ`,2128:`mn_CN`,2129:`bo_BT`,2141:`iu_CA`,2143:`tmz_DZ`,2155:`quz_EC`,3073:`ar_EG`,3076:`zh_HK`,3079:`de_AT`,3081:`en_AU`,3082:`es_ES`,3084:`fr_CA`,3098:`sr_SP`,3131:`se_FI`,3179:`quz_PE`,4097:`ar_LY`,4100:`zh_SG`,4103:`de_LU`,4105:`en_CA`,4106:`es_GT`,4108:`fr_CH`,4122:`hr_BA`,4155:`smj_NO`,5121:`ar_DZ`,5124:`zh_MO`,5127:`de_LI`,5129:`en_NZ`,5130:`es_CR`,5132:`fr_LU`,5179:`smj_SE`,6145:`ar_MA`,6153:`en_IE`,6154:`es_PA`,6156:`fr_MC`,6203:`sma_NO`,7169:`ar_TN`,7177:`en_ZA`,7178:`es_DO`,7194:`sr_BA`,7227:`sma_SE`,8193:`ar_OM`,8201:`en_JA`,8202:`es_VE`,8218:`bs_BA`,8251:`sms_FI`,9217:`ar_YE`,9225:`en_CB`,9226:`es_CO`,9275:`smn_FI`,10241:`ar_SY`,10249:`en_BZ`,10250:`es_PE`,11265:`ar_JO`,11273:`en_TT`,11274:`es_AR`,12289:`ar_LB`,12297:`en_ZW`,12298:`es_EC`,13313:`ar_KW`,13321:`en_PH`,13322:`es_CL`,14337:`ar_AE`,14346:`es_UR`,15361:`ar_BH`,15370:`es_PY`,16385:`ar_QA`,16394:`es_BO`,17417:`en_MY`,17418:`es_SV`,18441:`en_IN`,18442:`es_HN`,19466:`es_NI`,20490:`es_PR`,21514:`es_US`,31748:`zh_CHT`}})),ti=t(n((e=>{let t=$r(),n=ei(),r=t(n);e.from=e=>{if(typeof e!=`number`)throw TypeError(`Expected a number`);return n[e]},e.all=new Proxy(r,{get(e,t){let n=e[t];if(n)return Number(n)}})}))(),1);const ni=le(y.execFile);async function ri(e,t){let n=await ni(e,t,{encoding:`utf8`});return n.stdout=n.stdout.trim(),n}const ii={spawn:!0},ai=`en-US`;async function oi(e,t){return(await ri(e,t)).stdout}function si(e=process.env){return e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}function ci(e){let t={};for(let n of e.split(`
78
+ `;async function Or(){let{license:e,author:t=``}=Sr(),n=e===`MIT`;if(n||e===`Unlicense`){let e=await xr(t);return new I().onDone(()=>n?Er.replace(`{{year}}`,new Date().getFullYear()).replace(`{{holder}}`,e):Dr).output(`LICENSE`).logger(`Create/Overwrite`,Zt(`LICENSE`)).catch(console.warn)}}const R={defaultMerge:Symbol(`deepmerge-ts: default merge`),skip:Symbol(`deepmerge-ts: skip`)};R.defaultMerge;function kr(e,t){return t}function Ar(e,t){return e.filter(e=>e!==void 0)}var jr;(function(e){e[e.NOT=0]=`NOT`,e[e.RECORD=1]=`RECORD`,e[e.ARRAY=2]=`ARRAY`,e[e.SET=3]=`SET`,e[e.MAP=4]=`MAP`,e[e.OTHER=5]=`OTHER`})(jr||={});function Mr(e){return typeof e!=`object`||!e?0:Array.isArray(e)?2:Lr(e)?1:e instanceof Set?3:e instanceof Map?4:5}function Nr(e){let t=new Set;for(let n of e)for(let e of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(e);return t}function Pr(e,t){return typeof e==`object`&&Object.prototype.propertyIsEnumerable.call(e,t)}function Fr(e){let t=0,n=e[0]?.[Symbol.iterator]();return{[Symbol.iterator](){return{next(){do{if(n===void 0)return{done:!0,value:void 0};let r=n.next();if(r.done===!0){t+=1,n=e[t]?.[Symbol.iterator]();continue}return{done:!1,value:r.value}}while(!0)}}}}}const Ir=[`[object Object]`,`[object Module]`];function Lr(e){if(!Ir.includes(Object.prototype.toString.call(e)))return!1;let{constructor:t}=e;if(t===void 0)return!0;let n=t.prototype;return!(typeof n!=`object`||!n||!Ir.includes(Object.prototype.toString.call(n))||!n.hasOwnProperty(`isPrototypeOf`))}function Rr(e,t,n){let r={};for(let i of Nr(e)){let a=[];for(let t of e)Pr(t,i)&&a.push(t[i]);if(a.length===0)continue;let o=qr(a,t,t.metaDataUpdater(n,{key:i,parents:e}));o!==R.skip&&(i===`__proto__`?Object.defineProperty(r,i,{value:o,configurable:!0,enumerable:!0,writable:!0}):r[i]=o)}return r}function zr(e){return e.flat()}function Br(e){return new Set(Fr(e))}function Vr(e){return new Map(Fr(e))}function Hr(e){return e.at(-1)}const Ur={mergeRecords:Rr,mergeArrays:zr,mergeSets:Br,mergeMaps:Vr,mergeOthers:Hr};function Wr(...e){return Gr({})(...e)}function Gr(e,t){let n=Kr(e,r);function r(...e){return qr(e,n,t)}return r}function Kr(e,t){return{defaultMergeFunctions:Ur,mergeFunctions:{...Ur,...Object.fromEntries(Object.entries(e).filter(([e,t])=>Object.hasOwn(Ur,e)).map(([e,t])=>t===!1?[e,Ur.mergeOthers]:[e,t]))},metaDataUpdater:e.metaDataUpdater??kr,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,filterValues:e.filterValues===!1?void 0:e.filterValues??Ar,actions:R}}function qr(e,t,n){let r=t.filterValues?.(e,n)??e;if(r.length===0)return;if(r.length===1)return Qr(r,t,n);let i=Mr(r[0]);if(i!==0&&i!==5){for(let e=1;e<r.length;e++)if(Mr(r[e])!==i)return Qr(r,t,n)}switch(i){case 1:return Jr(r,t,n);case 2:return Yr(r,t,n);case 3:return Xr(r,t,n);case 4:return Zr(r,t,n);default:return Qr(r,t,n)}}function Jr(e,t,n){let r=t.mergeFunctions.mergeRecords(e,t,n);return r===R.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function Yr(e,t,n){let r=t.mergeFunctions.mergeArrays(e,t,n);return r===R.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function Xr(e,t,n){let r=t.mergeFunctions.mergeSets(e,t,n);return r===R.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function Zr(e,t,n){let r=t.mergeFunctions.mergeMaps(e,t,n);return r===R.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function Qr(e,t,n){let r=t.mergeFunctions.mergeOthers(e,t,n);return r===R.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}var z={"@bring-it/cli":`^0.11.1`,"@bring-it/npm":`^0.9.3`,"@cospaia/prettier-plugin-clojure":`^0.0.2`,"@vitest/ui":`^4.0.16`,eslint:`^9.39.1`,"find-workspaces":`^0.3.1`,garou:`^0.9.17`,postcss:`^8.5.6`,prettier:`~3.7.4`,"prettier-plugin-tailwindcss":`^0.7.2`,stylelint:`^16.26.1`,syncpack:`^13.0.4`,tsdown:`^0.18.4`,typescript:`~5.9.3`,vitest:`^4.0.16`,"@bring-it/sftp":`^0.7.1`,"@nice-move/init":`^0.8.32`,"@nice-move/syncpack-config":`^0.4.2`,"@playwright/test":`~1.56.1`,"@types/react":`~18.3.27`,react:`~18.3.1`,"react-dom":`~18.3.1`,tailwindcss:`^3.4.19`,vue:`~3.5.26`,yaml:`^2.8.2`,"@nice-move/eslint-config-base":`^0.13.16`,"@nice-move/stylelint-config":`^0.10.25`,"@nice-move/prettier-config":`^0.15.7`,"@nice-move/tsconfig":`^0.4.2`,"@nice-move/cli":`^0.11.29`,"@eslint/eslintrc":`^3.3.3`,"@eslint/js":`^9.39.2`,"@eslint/markdown":`^7.5.1`,"@types/node":`^24.10.4`,chalk:`^5.6.2`,"eslint-plugin-vue":`^10.6.2`,execa:`^9.6.1`,"fs-chain":`^10.0.0`,lodash:`^4.17.21`,settingz:`^0.2.0`,"sort-keys":`^6.0.0`,"typescript-eslint":`^8.51.0`,"eslint-plugin-react-hooks":`^5.2.0`,globals:`^17.0.0`,packageManager:`pnpm@10.27.0`,engines:{node:`>=24.0.0 || ^22.18.0`,pnpm:`^10.27.0`}},$r=n(((e,t)=>{t.exports=e=>{if(typeof e!=`object`||!e)throw TypeError(`Expected an object`);let t={};for(let[n,r]of Object.entries(e))t[r]=n;for(let n of Object.getOwnPropertySymbols(e)){let r=e[n];t[r]=n}return t}})),ei=n(((e,t)=>{t.exports={4:`zh_CHS`,1025:`ar_SA`,1026:`bg_BG`,1027:`ca_ES`,1028:`zh_TW`,1029:`cs_CZ`,1030:`da_DK`,1031:`de_DE`,1032:`el_GR`,1033:`en_US`,1034:`es_ES`,1035:`fi_FI`,1036:`fr_FR`,1037:`he_IL`,1038:`hu_HU`,1039:`is_IS`,1040:`it_IT`,1041:`ja_JP`,1042:`ko_KR`,1043:`nl_NL`,1044:`nb_NO`,1045:`pl_PL`,1046:`pt_BR`,1047:`rm_CH`,1048:`ro_RO`,1049:`ru_RU`,1050:`hr_HR`,1051:`sk_SK`,1052:`sq_AL`,1053:`sv_SE`,1054:`th_TH`,1055:`tr_TR`,1056:`ur_PK`,1057:`id_ID`,1058:`uk_UA`,1059:`be_BY`,1060:`sl_SI`,1061:`et_EE`,1062:`lv_LV`,1063:`lt_LT`,1064:`tg_TJ`,1065:`fa_IR`,1066:`vi_VN`,1067:`hy_AM`,1069:`eu_ES`,1070:`wen_DE`,1071:`mk_MK`,1074:`tn_ZA`,1076:`xh_ZA`,1077:`zu_ZA`,1078:`af_ZA`,1079:`ka_GE`,1080:`fo_FO`,1081:`hi_IN`,1082:`mt_MT`,1083:`se_NO`,1086:`ms_MY`,1087:`kk_KZ`,1088:`ky_KG`,1089:`sw_KE`,1090:`tk_TM`,1092:`tt_RU`,1093:`bn_IN`,1094:`pa_IN`,1095:`gu_IN`,1096:`or_IN`,1097:`ta_IN`,1098:`te_IN`,1099:`kn_IN`,1100:`ml_IN`,1101:`as_IN`,1102:`mr_IN`,1103:`sa_IN`,1104:`mn_MN`,1105:`bo_CN`,1106:`cy_GB`,1107:`kh_KH`,1108:`lo_LA`,1109:`my_MM`,1110:`gl_ES`,1111:`kok_IN`,1114:`syr_SY`,1115:`si_LK`,1118:`am_ET`,1121:`ne_NP`,1122:`fy_NL`,1123:`ps_AF`,1124:`fil_PH`,1125:`div_MV`,1128:`ha_NG`,1130:`yo_NG`,1131:`quz_BO`,1132:`ns_ZA`,1133:`ba_RU`,1134:`lb_LU`,1135:`kl_GL`,1144:`ii_CN`,1146:`arn_CL`,1148:`moh_CA`,1150:`br_FR`,1152:`ug_CN`,1153:`mi_NZ`,1154:`oc_FR`,1155:`co_FR`,1156:`gsw_FR`,1157:`sah_RU`,1158:`qut_GT`,1159:`rw_RW`,1160:`wo_SN`,1164:`gbz_AF`,2049:`ar_IQ`,2052:`zh_CN`,2055:`de_CH`,2057:`en_GB`,2058:`es_MX`,2060:`fr_BE`,2064:`it_CH`,2067:`nl_BE`,2068:`nn_NO`,2070:`pt_PT`,2077:`sv_FI`,2080:`ur_IN`,2092:`az_AZ`,2094:`dsb_DE`,2107:`se_SE`,2108:`ga_IE`,2110:`ms_BN`,2115:`uz_UZ`,2128:`mn_CN`,2129:`bo_BT`,2141:`iu_CA`,2143:`tmz_DZ`,2155:`quz_EC`,3073:`ar_EG`,3076:`zh_HK`,3079:`de_AT`,3081:`en_AU`,3082:`es_ES`,3084:`fr_CA`,3098:`sr_SP`,3131:`se_FI`,3179:`quz_PE`,4097:`ar_LY`,4100:`zh_SG`,4103:`de_LU`,4105:`en_CA`,4106:`es_GT`,4108:`fr_CH`,4122:`hr_BA`,4155:`smj_NO`,5121:`ar_DZ`,5124:`zh_MO`,5127:`de_LI`,5129:`en_NZ`,5130:`es_CR`,5132:`fr_LU`,5179:`smj_SE`,6145:`ar_MA`,6153:`en_IE`,6154:`es_PA`,6156:`fr_MC`,6203:`sma_NO`,7169:`ar_TN`,7177:`en_ZA`,7178:`es_DO`,7194:`sr_BA`,7227:`sma_SE`,8193:`ar_OM`,8201:`en_JA`,8202:`es_VE`,8218:`bs_BA`,8251:`sms_FI`,9217:`ar_YE`,9225:`en_CB`,9226:`es_CO`,9275:`smn_FI`,10241:`ar_SY`,10249:`en_BZ`,10250:`es_PE`,11265:`ar_JO`,11273:`en_TT`,11274:`es_AR`,12289:`ar_LB`,12297:`en_ZW`,12298:`es_EC`,13313:`ar_KW`,13321:`en_PH`,13322:`es_CL`,14337:`ar_AE`,14346:`es_UR`,15361:`ar_BH`,15370:`es_PY`,16385:`ar_QA`,16394:`es_BO`,17417:`en_MY`,17418:`es_SV`,18441:`en_IN`,18442:`es_HN`,19466:`es_NI`,20490:`es_PR`,21514:`es_US`,31748:`zh_CHT`}})),ti=t(n((e=>{let t=$r(),n=ei(),r=t(n);e.from=e=>{if(typeof e!=`number`)throw TypeError(`Expected a number`);return n[e]},e.all=new Proxy(r,{get(e,t){let n=e[t];if(n)return Number(n)}})}))(),1);const ni=le(y.execFile);async function ri(e,t){let n=await ni(e,t,{encoding:`utf8`});return n.stdout=n.stdout.trim(),n}const ii={spawn:!0},ai=`en-US`;async function oi(e,t){return(await ri(e,t)).stdout}function si(e=process.env){return e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}function ci(e){let t={};for(let n of e.split(`
79
79
  `)){let[e,r]=n.split(`=`);t[e]=r.replace(/^"|"$/g,``)}return si(t)}function li(e){return e&&e.replace(/[.:].*/,``)}async function ui(){return oi(`locale`,[`-a`])}function di(e,t=``){return t.includes(e)?e:ai}async function fi(){let e=await Promise.all([oi(`defaults`,[`read`,`-globalDomain`,`AppleLocale`]),ui()]);return di(e[0],e[1])}async function pi(){return li(ci(await oi(`locale`)))}async function mi(){let e=await oi(`wmic`,[`os`,`get`,`locale`]),t=Number.parseInt(e.replace(`Locale`,``),16);return ti.from(t)}function hi(e){return e.replace(/_/,`-`)}const gi=new Map;async function _i(e=ii){if(gi.has(e.spawn))return gi.get(e.spawn);let t;try{let n=si();t=n||e.spawn===!1?li(n):process.platform===`win32`?await mi():process.platform===`darwin`?await fi():await pi()}catch{}let n=hi(t||ai);return gi.set(e.spawn,n),n}async function vi(){await _i()===`zh-CN`&&new I().source(`.npmrc`).onFail().onDone((e=``)=>e.trim()&&/registry\s*=\s*["']?https:\/\/mirrors\.tencent\.com\/npm\/["']?/i.test(e)?e:`registry = https://mirrors.tencent.com/npm/\r${e}`).output().logger(`Set registry to China mirror in`,Zt(`.npmrc`)).catch(console.warn)}const yi=`package.json`;function bi(e){return new Xt().config({pretty:!0}).source(yi).onFail().onDone((t={})=>Wr({packageManager:z.packageManager,type:`module`,engines:{node:z.engines.node,pnpm:z.engines.pnpm},publishConfig:e.private||t.private?void 0:{access:`public`,registry:`https://registry.npmjs.org/`}},t,e)).onDone(e=>(e.private===!0&&vi(),e)).output().logger(`Add project info to`,Zt(yi)).catch(console.warn)}async function xi(){let{name:e,description:t}=Sr();new I().source(`README.md`).onFail().onDone(n=>n||[`# ${e}`,t?`${t}.\n`:``].filter(Boolean).join(`
80
80
 
81
81
  `)).output().logger(`Create`,Zt(`README.md`)).catch(console.warn)}function B(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}const Si=(e,t)=>{let n=Ti(Ci(e));if(typeof n!=`string`)throw TypeError(`${t} must be a string or a file URL: ${n}.`);return n},Ci=e=>wi(e)?e.toString():e,wi=e=>typeof e!=`string`&&e&&Object.getPrototypeOf(e)===String.prototype,Ti=e=>e instanceof URL?l(e):e,Ei=(e,t=[],n={})=>{let r=Si(e,`First argument`),[i,a]=B(t)?[[],t]:[t,n];if(!Array.isArray(i))throw TypeError(`Second argument must be either an array of arguments or an options object: ${i}`);if(i.some(e=>typeof e==`object`&&!!e))throw TypeError(`Second argument must be an array of strings: ${i}`);let o=i.map(String),s=o.find(e=>e.includes(`\0`));if(s!==void 0)throw TypeError(`Arguments cannot contain null bytes ("\\0"): ${s}`);if(!B(a))throw TypeError(`Last argument must be an options object: ${a}`);return[r,o,a]},{toString:Di}=Object.prototype,Oi=e=>Di.call(e)===`[object ArrayBuffer]`,V=e=>Di.call(e)===`[object Uint8Array]`,ki=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Ai=new TextEncoder,ji=e=>Ai.encode(e),Mi=new TextDecoder,Ni=e=>Mi.decode(e),Pi=(e,t)=>Fi(e,t).join(``),Fi=(e,t)=>{if(t===`utf8`&&e.every(e=>typeof e==`string`))return e;let n=new de(t),r=e.map(e=>typeof e==`string`?ji(e):e).map(e=>n.write(e)),i=n.end();return i===``?r:[...r,i]},Ii=e=>e.length===1&&V(e[0])?e[0]:Ri(Li(e)),Li=e=>e.map(e=>typeof e==`string`?ji(e):e),Ri=e=>{let t=new Uint8Array(zi(e)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t},zi=e=>{let t=0;for(let n of e)t+=n.length;return t},Bi=e=>Array.isArray(e)&&Array.isArray(e.raw),Vi=(e,t)=>{let n=[];for(let[r,i]of e.entries())n=Hi({templates:e,expressions:t,tokens:n,index:r,template:i});if(n.length===0)throw TypeError(`Template script must not be empty`);let[r,...i]=n;return[r,i,{}]},Hi=({templates:e,expressions:t,tokens:n,index:r,template:i})=>{if(i===void 0)throw TypeError(`Invalid backslash sequence: ${e.raw[r]}`);let{nextTokens:a,leadingWhitespaces:o,trailingWhitespaces:s}=Ui(i,e.raw[r]),c=Ki(n,a,o);if(r===t.length)return c;let l=t[r];return Ki(c,Array.isArray(l)?l.map(e=>qi(e)):[qi(l)],s)},Ui=(e,t)=>{if(t.length===0)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};let n=[],r=0,i=Wi.has(t[0]);for(let i=0,a=0;i<e.length;i+=1,a+=1){let o=t[a];if(Wi.has(o))r!==i&&n.push(e.slice(r,i)),r=i+1;else if(o===`\\`){let e=t[a+1];e===`
@@ -194,10 +194,10 @@ Instructions:
194
194
  `:``}renderCurrentInput(){return`
195
195
  Filtered results for: ${this.inputValue?this.inputValue:n.gray(`Enter something to filter`)}\n`}renderOption(e,t,r){let i;return i=t.disabled?e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):e===r?n.cyan().underline(t.title):t.title,(t.selected?n.green(s.radioOn):s.radioOff)+` `+i}renderDoneOrInstructions(){if(this.done)return this.value.filter(e=>e.selected).map(e=>e.title).join(`, `);let e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(` `)}render(){if(this.closed)return;this.firstRender&&this.out.write(r.hide),super.render();let e=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(!1),this.renderDoneOrInstructions()].join(` `);this.showMinError&&=(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=a(e,this.out.columns)}}})),fv=n(((e,t)=>{let n=G(),r=J_(),{style:i,clear:a}=X(),{erase:o,cursor:s}=K();t.exports=class extends r{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||`yes`,this.yesOption=e.yesOption||`(Y/n)`,this.noMsg=e.no||`no`,this.noOption=e.noOption||`(y/N)`,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
196
196
  `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
197
- `),this.close()}_(e,t){return e.toLowerCase()===`y`?(this.value=!0,this.submit()):e.toLowerCase()===`n`?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(s.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[i.symbol(this.done,this.aborted),n.bold(this.msg),i.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(` `),this.out.write(o.line+s.to(0)+this.outputText))}}})),pv=n(((e,t)=>{t.exports={TextPrompt:Y_(),SelectPrompt:X_(),TogglePrompt:Z_(),DatePrompt:sv(),NumberPrompt:cv(),MultiselectPrompt:lv(),AutocompletePrompt:uv(),AutocompleteMultiselectPrompt:dv(),ConfirmPrompt:fv()}})),mv=n((e=>{let t=e,n=pv(),r=e=>e;function i(e,t,i={}){return new Promise((a,o)=>{let s=new n[e](t),c=i.onAbort||r,l=i.onSubmit||r,u=i.onExit||r;s.on(`state`,t.onState||r),s.on(`submit`,e=>a(l(e))),s.on(`exit`,e=>a(u(e))),s.on(`abort`,e=>o(c(e)))})}t.text=e=>i(`TextPrompt`,e),t.password=e=>(e.style=`password`,t.text(e)),t.invisible=e=>(e.style=`invisible`,t.text(e)),t.number=e=>i(`NumberPrompt`,e),t.date=e=>i(`DatePrompt`,e),t.confirm=e=>i(`ConfirmPrompt`,e),t.list=e=>{let t=e.separator||`,`;return i(`TextPrompt`,e,{onSubmit:e=>e.split(t).map(e=>e.trim())})},t.toggle=e=>i(`TogglePrompt`,e),t.select=e=>i(`SelectPrompt`,e),t.multiselect=e=>{e.choices=[].concat(e.choices||[]);let t=e=>e.filter(e=>e.selected).map(e=>e.value);return i(`MultiselectPrompt`,e,{onAbort:t,onSubmit:t})},t.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);let t=e=>e.filter(e=>e.selected).map(e=>e.value);return i(`AutocompleteMultiselectPrompt`,e,{onAbort:t,onSubmit:t})};let a=(e,t)=>Promise.resolve(t.filter(t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase()));t.autocomplete=e=>(e.suggest=e.suggest||a,e.choices=[].concat(e.choices||[]),i(`AutocompletePrompt`,e))})),hv=n(((e,t)=>{let n=mv(),r=[`suggest`,`format`,`onState`,`validate`,`onRender`,`type`],i=()=>{};async function a(e=[],{onSubmit:t=i,onCancel:s=i}={}){let c={},l=a._override||{};e=[].concat(e);let u,d,f,p,m,h,g=async(e,t,n=!1)=>{if(!(!n&&e.validate&&e.validate(t)!==!0))return e.format?await e.format(t,c):t};for(d of e)if({name:p,type:m}=d,typeof m==`function`&&(m=await m(u,{...c},d),d.type=m),m){for(let e in d){if(r.includes(e))continue;let t=d[e];d[e]=typeof t==`function`?await t(u,{...c},h):t}if(h=d,typeof d.message!=`string`)throw Error(`prompt message is required`);if({name:p,type:m}=d,n[m]===void 0)throw Error(`prompt type (${m}) is not defined`);if(l[d.name]!==void 0&&(u=await g(d,l[d.name]),u!==void 0)){c[p]=u;continue}try{u=a._injected?o(a._injected,d.initial):await n[m](d),c[p]=u=await g(d,u,!0),f=await t(d,u,c)}catch{f=!await s(d,c)}if(f)return c}return c}function o(e,t){let n=e.shift();if(n instanceof Error)throw n;return n===void 0?t:n}function s(e){a._injected=(a._injected||[]).concat(e)}function c(e){a._override=Object.assign({},e)}t.exports=Object.assign(a,{prompt:a,prompts:n,inject:s,override:c})})),gv=t(n(((e,t)=>{function n(e){e=(Array.isArray(e)?e:e.split(`.`)).map(Number);let t=0,n=process.versions.node.split(`.`).map(Number);for(;t<e.length;t++){if(n[t]>e[t])return!1;if(e[t]>n[t])return!0}return!1}t.exports=n(`8.6.0`)?z_():hv()}))(),1);function _v({vue:e,react:t}){return{devDependencies:{[`@nice-move/eslint-config-${t&&e||!t&&!e?`base`:t?`react`:`vue`}`]:z[`eslint-config-base`],eslint:z.eslint},script:{"lint:eslint":`eslint . --quiet --fix --concurrency=auto`}}}const vv=`Add/Reset project dependencies`;function yv(e,t={}){return new Xt().config({pretty:!0}).source(`package.json`).onFail().onDone(async(e={})=>{let{devDependencies:n={},dependencies:r={}}=e,{ava:i=`ava`in n,commitlint:a=`commitlint`in n,eslint:o=`eslint`in n,garou:s=`garou`in n,prettier:c=`prettier`in n,react:l=`react`in r,stylelint:u=`stylelint`in n,syncpack:d=`syncpack`in n,typescript:f=`typescript`in n,vue:p=`vue`in r,tailwindcss:m=`tailwindcss`in r||`tailwindcss`in n,playwright:h,"@bring-it/sftp":g=`@bring-it/sftp`in n,"@bring-it/npm":_=`@bring-it/npm`in n,"best-shot":v=`best-shot`in n}=t,y=o||u||c||s,b=[y?`pnpm run lint:staged`:void 0,f?`pnpm run lint:type`:void 0,i?`pnpm test`:void 0].filter(Boolean).map((e,t,n)=>t===n-1?e:`${e} || exit 1`);return b.length>0&&await new I().onDone(()=>[`#!/bin/sh`,``,...b,``].join(`
197
+ `),this.close()}_(e,t){return e.toLowerCase()===`y`?(this.value=!0,this.submit()):e.toLowerCase()===`n`?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(s.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[i.symbol(this.done,this.aborted),n.bold(this.msg),i.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(` `),this.out.write(o.line+s.to(0)+this.outputText))}}})),pv=n(((e,t)=>{t.exports={TextPrompt:Y_(),SelectPrompt:X_(),TogglePrompt:Z_(),DatePrompt:sv(),NumberPrompt:cv(),MultiselectPrompt:lv(),AutocompletePrompt:uv(),AutocompleteMultiselectPrompt:dv(),ConfirmPrompt:fv()}})),mv=n((e=>{let t=e,n=pv(),r=e=>e;function i(e,t,i={}){return new Promise((a,o)=>{let s=new n[e](t),c=i.onAbort||r,l=i.onSubmit||r,u=i.onExit||r;s.on(`state`,t.onState||r),s.on(`submit`,e=>a(l(e))),s.on(`exit`,e=>a(u(e))),s.on(`abort`,e=>o(c(e)))})}t.text=e=>i(`TextPrompt`,e),t.password=e=>(e.style=`password`,t.text(e)),t.invisible=e=>(e.style=`invisible`,t.text(e)),t.number=e=>i(`NumberPrompt`,e),t.date=e=>i(`DatePrompt`,e),t.confirm=e=>i(`ConfirmPrompt`,e),t.list=e=>{let t=e.separator||`,`;return i(`TextPrompt`,e,{onSubmit:e=>e.split(t).map(e=>e.trim())})},t.toggle=e=>i(`TogglePrompt`,e),t.select=e=>i(`SelectPrompt`,e),t.multiselect=e=>{e.choices=[].concat(e.choices||[]);let t=e=>e.filter(e=>e.selected).map(e=>e.value);return i(`MultiselectPrompt`,e,{onAbort:t,onSubmit:t})},t.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);let t=e=>e.filter(e=>e.selected).map(e=>e.value);return i(`AutocompleteMultiselectPrompt`,e,{onAbort:t,onSubmit:t})};let a=(e,t)=>Promise.resolve(t.filter(t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase()));t.autocomplete=e=>(e.suggest=e.suggest||a,e.choices=[].concat(e.choices||[]),i(`AutocompletePrompt`,e))})),hv=n(((e,t)=>{let n=mv(),r=[`suggest`,`format`,`onState`,`validate`,`onRender`,`type`],i=()=>{};async function a(e=[],{onSubmit:t=i,onCancel:s=i}={}){let c={},l=a._override||{};e=[].concat(e);let u,d,f,p,m,h,g=async(e,t,n=!1)=>{if(!(!n&&e.validate&&e.validate(t)!==!0))return e.format?await e.format(t,c):t};for(d of e)if({name:p,type:m}=d,typeof m==`function`&&(m=await m(u,{...c},d),d.type=m),m){for(let e in d){if(r.includes(e))continue;let t=d[e];d[e]=typeof t==`function`?await t(u,{...c},h):t}if(h=d,typeof d.message!=`string`)throw Error(`prompt message is required`);if({name:p,type:m}=d,n[m]===void 0)throw Error(`prompt type (${m}) is not defined`);if(l[d.name]!==void 0&&(u=await g(d,l[d.name]),u!==void 0)){c[p]=u;continue}try{u=a._injected?o(a._injected,d.initial):await n[m](d),c[p]=u=await g(d,u,!0),f=await t(d,u,c)}catch{f=!await s(d,c)}if(f)return c}return c}function o(e,t){let n=e.shift();if(n instanceof Error)throw n;return n===void 0?t:n}function s(e){a._injected=(a._injected||[]).concat(e)}function c(e){a._override=Object.assign({},e)}t.exports=Object.assign(a,{prompt:a,prompts:n,inject:s,override:c})})),gv=t(n(((e,t)=>{function n(e){e=(Array.isArray(e)?e:e.split(`.`)).map(Number);let t=0,n=process.versions.node.split(`.`).map(Number);for(;t<e.length;t++){if(n[t]>e[t])return!1;if(e[t]>n[t])return!0}return!1}t.exports=n(`8.6.0`)?z_():hv()}))(),1);function _v({vue:e,react:t}){return{devDependencies:{[`@nice-move/eslint-config-${t&&e||!t&&!e?`base`:t?`react`:`vue`}`]:z[`eslint-config-base`],eslint:z.eslint},scripts:{"lint:eslint":`eslint . --quiet --fix --concurrency=auto`}}}const vv=`Add/Reset project dependencies`;function yv(e,t={}){return new Xt().config({pretty:!0}).source(`package.json`).onFail().onDone(async(e={})=>{let{devDependencies:n={},dependencies:r={}}=e,{ava:i=`ava`in n,commitlint:a=`commitlint`in n,eslint:o=`eslint`in n,garou:s=`garou`in n,prettier:c=`prettier`in n,react:l=`react`in r,stylelint:u=`stylelint`in n,syncpack:d=`syncpack`in n,typescript:f=`typescript`in n,vue:p=`vue`in r,tailwindcss:m=`tailwindcss`in r||`tailwindcss`in n,playwright:h,"@bring-it/sftp":g=`@bring-it/sftp`in n,"@bring-it/npm":_=`@bring-it/npm`in n,"best-shot":v=`best-shot`in n}=t,y=o||u||c||s,b=[y?`pnpm run lint:staged`:void 0,f?`pnpm run lint:type`:void 0,i?`pnpm test`:void 0].filter(Boolean).map((e,t,n)=>t===n-1?e:`${e} || exit 1`);return b.length>0&&await new I().onDone(()=>[`#!/bin/sh`,``,...b,``].join(`
198
198
  `)).output(`.githooks/pre-commit`),a&&await new I().onDone(()=>[`#!/bin/sh`,`pnpm exec nice-move lint commit`,``].join(`
199
199
 
200
- `)).output(`.githooks/commit-msg`),o&&await new I().onDone(()=>[l?`import config from '@nice-move/eslint-config-react';`:p?`import config from '@nice-move/eslint-config-vue';`:`import config from '@nice-move/eslint-config-base';`,`export default [config];`,``].join(`
200
+ `)).output(`.githooks/commit-msg`),o&&await new I().onDone(()=>[l?`import config from '@nice-move/eslint-config-react';`:p?`import config from '@nice-move/eslint-config-vue';`:`import config from '@nice-move/eslint-config-base';`,`export default [...config];`,``].join(`
201
201
 
202
202
  `)).output(`eslint.config.mjs`),d&&await new I().onDone(()=>[`// @ts-check`,`// import defineConfig from '@nice-move/syncpack-config/define.mjs';`,`// export default defineConfig(import.meta.url, {});`,`export { default } from '@nice-move/syncpack-config';`].join(`
203
203
 
@@ -322,4 +322,4 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
322
322
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
323
323
  `,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(a(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(s(t.key)&&!a(t.sep,`newline`)){let e=l(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else if(a(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=l(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):a(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!a(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||a(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=l(c(t));u(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
324
324
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
325
- `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=l(c(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=l(c(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;case`space`:case`comment`:default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),Yy=n((e=>{var t=Vy(),n=wy(),r=Ty(),i=Yv(),a=Q(),o=qy(),s=Jy();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),Xy=n((e=>{var t=Vy(),n=wy(),r=Sy(),i=Ty(),a=Vv(),o=Q(),s=Qv(),c=$(),l=ey(),u=ny();Gy();var d=Ky(),f=qy(),p=Jy(),m=Yy(),h=Fv();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync}))();async function Zy(){new I().source(`pnpm-workspace.yaml`).onFail().onDone(e=>{let t=(0,Xy.parse)(e);return t.shamefullyHoist??=!0,t.configDependencies??={"pnpm-plugin-nice-move":`0.1.0+sha512-M70sSpJmx0htcWXAYdd+VtlFthhQEHWsfLIINitKLVEWs4NyCOdiyd+zGkcqJE8PwqVPd6hpiNX9edIuvB9wjw==`},(0,Xy.stringify)(t)}).output().logger(`Set pnpm config`,Zt(`pnpm-workspace.yaml`)).catch(console.warn)}async function Qy(){let{Dependencies:e,GitInit:t,info:n,options:{isRoot:r}={}}=await Pv();console.log(`-`.repeat(32));let i=[t,Zy(),()=>bi(n),xi,Or,tn,()=>t||r?Tr():void 0,()=>e?e(t||r):void 0].filter(e=>typeof e==`function`);for(let e of i){let t=await e();t&&t.catch&&t.catch(e=>{console.warn(e.message)})}}export{Qy as init};
325
+ `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=l(c(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=l(c(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;case`space`:case`comment`:default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),Yy=n((e=>{var t=Vy(),n=wy(),r=Ty(),i=Yv(),a=Q(),o=qy(),s=Jy();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),Xy=n((e=>{var t=Vy(),n=wy(),r=Sy(),i=Ty(),a=Vv(),o=Q(),s=Qv(),c=$(),l=ey(),u=ny();Gy();var d=Ky(),f=qy(),p=Jy(),m=Yy(),h=Fv();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync}))();async function Zy(){new I().source(`pnpm-workspace.yaml`).onFail().onDone(e=>{let t=(0,Xy.parse)(e);return t.configDependencies??={"pnpm-plugin-nice-move":`0.1.0+sha512-M70sSpJmx0htcWXAYdd+VtlFthhQEHWsfLIINitKLVEWs4NyCOdiyd+zGkcqJE8PwqVPd6hpiNX9edIuvB9wjw==`},t.shamefullyHoist??=!0,(0,Xy.stringify)(t,{singleQuote:!0})}).output().logger(`Set pnpm config`,Zt(`pnpm-workspace.yaml`)).catch(console.warn)}async function Qy(){let{Dependencies:e,GitInit:t,info:n,options:{isRoot:r}={}}=await Pv();console.log(`-`.repeat(32));let i=[t,Zy(),()=>bi(n),xi,Or,tn,()=>t||r?Tr():void 0,()=>e?e(t||r):void 0].filter(e=>typeof e==`function`);for(let e of i){let t=await e();t&&t.catch&&t.catch(e=>{console.warn(e.message)})}}export{Qy as init};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-move/init",
3
- "version": "0.8.30",
3
+ "version": "0.8.32",
4
4
  "description": "Initialize your frontend workspaces",
5
5
  "license": "MIT",
6
6
  "author": {