@nice-move/cli 0.11.21 → 0.11.22
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/216.mjs +1 -1
- package/dist/284.mjs +1 -0
- package/dist/652.mjs +1 -0
- package/dist/{849.mjs → 753.mjs} +1 -1
- package/dist/799.mjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cmd/git.mjs +1 -1
- package/dist/cmd/lint.mjs +1 -1
- package/dist/runtime.mjs +1 -1
- package/dist/vendor.mjs +1 -0
- package/package.json +6 -6
- package/dist/312.mjs +0 -1
- package/dist/828.mjs +0 -1
package/dist/216.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const __webpack_id__=216;export const __webpack_ids__=[216];export const __webpack_modules__={2216:(e,o
|
|
1
|
+
export const __webpack_id__=216;export const __webpack_ids__=[216];export const __webpack_modules__={2216:(e,t,o)=>{o.d(t,{createLogUpdate:()=>D});var i=o(1708);const s=void 0!==globalThis.window?.document,r=(globalThis.process,globalThis.process,globalThis.Deno,globalThis.process,globalThis.navigator?.userAgent?.includes("jsdom"),"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),"undefined"!=typeof DedicatedWorkerGlobalScope&&(globalThis,DedicatedWorkerGlobalScope),"undefined"!=typeof SharedWorkerGlobalScope&&(globalThis,SharedWorkerGlobalScope),"undefined"!=typeof ServiceWorkerGlobalScope&&(globalThis,ServiceWorkerGlobalScope),globalThis.navigator?.userAgentData?.platform),n=("macOS"===r||"MacIntel"===globalThis.navigator?.platform||!0===globalThis.navigator?.userAgent?.includes(" Mac ")||globalThis.process,"Windows"===r||"Win32"===globalThis.navigator?.platform||globalThis.process,"Linux"===r||!0===globalThis.navigator?.platform?.startsWith("Linux")||!0===globalThis.navigator?.userAgent?.includes(" Linux ")||globalThis.process,"iOS"===r||"MacIntel"===globalThis.navigator?.platform&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),"Android"===r||"Android"===globalThis.navigator?.platform||!0===globalThis.navigator?.userAgent?.includes(" Android ")||globalThis.process,"\x1b["),l=(!s&&i.env.TERM_PROGRAM,!s&&i.platform,s||i.cwd,(e=1)=>n+e+"A"),a=e=>{let t="";for(let o=0;o<e;o++)t+=c+(o<e-1?l():"");return e&&(t+="\x1b[G"),t},c="\x1b[2K",h=(e,t,o,i)=>{if("length"===o||"prototype"===o)return;if("arguments"===o||"caller"===o)return;const s=Object.getOwnPropertyDescriptor(e,o),r=Object.getOwnPropertyDescriptor(t,o);!d(s,r)&&i||Object.defineProperty(e,o,r)},d=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},u=(e,t)=>`/* Wrapped ${e}*/\n${t}`,p=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),f=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");const g=new WeakMap,b=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let o,i=0;const s=e.displayName||e.name||"<anonymous>",r=function(...n){if(g.set(r,++i),1===i)o=e.apply(this,n),e=void 0;else if(!0===t.throw)throw new Error(`Function \`${s}\` can only be called once`);return o};return function(e,t,{ignoreNonConfigurable:o=!1}={}){const{name:i}=e;for(const i of Reflect.ownKeys(t))h(e,t,i,o);((e,t)=>{const o=Object.getPrototypeOf(t);o!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,o)})(e,t),((e,t,o)=>{const i=""===o?"":`with ${o.trim()}() `,s=u.bind(null,i,t.toString());Object.defineProperty(s,"name",f);const{writable:r,enumerable:n,configurable:l}=p;Object.defineProperty(e,"toString",{value:s,writable:r,enumerable:n,configurable:l})})(e,t,i)}(r,e),g.set(r,i),r};b.callCount=e=>{if(!g.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return g.get(e)};const m=b;var y=o(7017);const x=i.stderr.isTTY?i.stderr:i.stdout.isTTY?i.stdout:void 0,w=x?m((()=>{(0,y.cf)((()=>{x.write("\x1b[?25h")}),{alwaysLast:!0})})):()=>{};let T=!1;const S={show:(e=i.stderr)=>{e.isTTY&&(T=!1,e.write("\x1b[?25h"))},hide:(e=i.stderr)=>{e.isTTY&&(w(),T=!0,e.write("\x1b[?25l"))},toggle:(e,t)=>{void 0!==e&&(T=e),T?S.show(t):S.hide(t)}},v=S;var P=o(782),E=o(3490),_=o(8001);function I(e){return!!Number.isInteger(e)&&2===(0,_.Q1)(e)}const G=new Set([27,155]),O="0".codePointAt(0),A="9".codePointAt(0),L=new Set,j=new Map;for(const[e,t]of E.Ay.codes)L.add(E.Ay.color.ansi(t)),j.set(E.Ay.color.ansi(e),E.Ay.color.ansi(t));function k(e){if(L.has(e))return e;if(j.has(e))return j.get(e);(e=e.slice(2)).includes(";")&&(e=e[0]+"0");const t=E.Ay.codes.get(Number.parseInt(e,10));return t?E.Ay.color.ansi(t):E.Ay.reset.open}function R(e,t){const o=function(e){for(let t=0;t<e.length;t++){const o=e.codePointAt(t);if(o>=O&&o<=A)return t}return-1}(e=e.slice(t,t+19));if(-1!==o){let t=e.indexOf("m",o);return-1===t&&(t=e.length),e.slice(0,t+1)}}function W(e){let t=[];for(const o of e)o.code===E.Ay.reset.open?t=[]:L.has(o.code)?t=t.filter((e=>e.endCode!==o.code)):(t=t.filter((e=>e.endCode!==o.endCode)),t.push(o));return t}var C=o(3969);const M=({columns:e=80})=>e,N=(e,t)=>{const o=e.rows??24,i=t.split("\n"),s=Math.max(0,i.length-o);return s?function(e,t,o){const i=function(e,t=Number.POSITIVE_INFINITY){const o=[];let i=0,s=0;for(;i<e.length;){const r=e.codePointAt(i);if(G.has(r)){const t=R(e,i);if(t){o.push({type:"ansi",code:t,endCode:k(t)}),i+=t.length;continue}}const n=I(r),l=String.fromCodePoint(r);if(o.push({type:"character",value:l,isFullWidth:n}),i+=l.length,s+=n?2:l.length,s>=t)break}return o}(e,o);let s=[],r=0,n="",l=!1;for(const e of i){if(void 0!==o&&r>=o)break;"ansi"===e.type?(s.push(e),l&&(n+=e.code)):(!l&&r>=t&&(l=!0,s=W(s),n=s.map((({code:e})=>e)).join("")),l&&(n+=e.value),r+=e.isFullWidth?2:e.value.length)}return n+=W(s).map((({endCode:e})=>e)).reverse().join(""),n}(t,(0,C.A)(i.slice(0,s).join("\n")).length+1):t};function D(e,{showCursor:t=!1}={}){let o=0,i=M(e),s="";const r=()=>{s="",i=M(e),o=0},n=(...r)=>{t||v.hide();let n=N(e,r.join(" ")+"\n");const l=M(e);n===s&&i===l||(s=n,i=l,n=(0,P.default)(n,l,{trim:!1,hard:!0,wordWrap:!1}),e.write(a(o)+n),o=n.split("\n").length)};return n.clear=()=>{e.write(a(o)),r()},n.done=()=>{r(),t||v.show()},n}D(i.stdout),D(i.stderr)},7017:(e,t,o)=>{o.d(t,{cf:()=>d});const i=[];i.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&i.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&i.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const s=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,r=Symbol.for("signal-exit emitter"),n=globalThis,l=Object.defineProperty.bind(Object);class a{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(n[r])return n[r];l(n,r,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const o=this.listeners[e],i=o.indexOf(t);-1!==i&&(0===i&&1===o.length?o.length=0:o.splice(i,1))}emit(e,t,o){if(this.emitted[e])return!1;this.emitted[e]=!0;let i=!1;for(const s of this.listeners[e])i=!0===s(t,o)||i;return"exit"===e&&(i=this.emit("afterExit",t,o)||i),i}}class c{}const h=globalThis.process,{onExit:d,load:u,unload:p}=(f=s(h)?new class extends c{#e="win32"===h.platform?"SIGINT":"SIGHUP";#t=new a;#o;#i;#s;#r={};#n=!1;constructor(e){super(),this.#o=e,this.#r={};for(const t of i)this.#r[t]=()=>{const o=this.#o.listeners(t);let{count:i}=this.#t;const s=e;if("object"==typeof s.__signal_exit_emitter__&&"number"==typeof s.__signal_exit_emitter__.count&&(i+=s.__signal_exit_emitter__.count),o.length===i){this.unload();const o=this.#t.emit("exit",null,t),i="SIGHUP"===t?this.#e:t;o||e.kill(e.pid,i)}};this.#s=e.reallyExit,this.#i=e.emit}onExit(e,t){if(!s(this.#o))return()=>{};!1===this.#n&&this.load();const o=t?.alwaysLast?"afterExit":"exit";return this.#t.on(o,e),()=>{this.#t.removeListener(o,e),0===this.#t.listeners.exit.length&&0===this.#t.listeners.afterExit.length&&this.unload()}}load(){if(!this.#n){this.#n=!0,this.#t.count+=1;for(const e of i)try{const t=this.#r[e];t&&this.#o.on(e,t)}catch(e){}this.#o.emit=(e,...t)=>this.#l(e,...t),this.#o.reallyExit=e=>this.#a(e)}}unload(){this.#n&&(this.#n=!1,i.forEach((e=>{const t=this.#r[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#o.removeListener(e,t)}catch(e){}})),this.#o.emit=this.#i,this.#o.reallyExit=this.#s,this.#t.count-=1)}#a(e){return s(this.#o)?(this.#o.exitCode=e||0,this.#t.emit("exit",this.#o.exitCode,null),this.#s.call(this.#o,this.#o.exitCode)):0}#l(e,...t){const o=this.#i;if("exit"===e&&s(this.#o)){"number"==typeof t[0]&&(this.#o.exitCode=t[0]);const i=o.call(this.#o,e,...t);return this.#t.emit("exit",this.#o.exitCode,null),i}return o.call(this.#o,e,...t)}}(h):new class extends c{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>f.onExit(e,t),load:()=>f.load(),unload:()=>f.unload()});var f}};
|
package/dist/284.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __webpack_id__=284;export const __webpack_ids__=[284];export const __webpack_modules__={303:(t,e,s)=>{const r=s(1811);t.exports=(t,e={})=>{const s=(t,i={})=>{const n=e.escapeInvalid&&r.isInvalidBrace(i),o=!0===t.invalid&&!0===e.escapeInvalid;let a="";if(t.value)return(n||o)&&r.isOpenOrClose(t)?"\\"+t.value:t.value;if(t.value)return t.value;if(t.nodes)for(const e of t.nodes)a+=s(e);return a};return s(t)}},433:(t,e,s)=>{var r=s(857),i=s(2775);t.exports=function(t){i("ps",["-A","-o","ppid,pid"],(function(e,s,i){if(e)return t(e);if(0!==i)return t(new Error("pidtree ps command exited with code "+i));try{s=s.split(r.EOL);for(var n=[],o=1;o<s.length;o++)s[o]=s[o].trim(),s[o]&&(s[o]=s[o].split(/\s+/),s[o][0]=parseInt(s[o][0],10),s[o][1]=parseInt(s[o][1],10),n.push(s[o]));t(null,n)}catch(e){t(e)}}))}},803:t=>{t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:"\xa0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},1754:(t,e,s)=>{const r=s(857),i=s(4891),n=process.env;let o;function a(t){const e=function(t){if(!1===o)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(t&&!t.isTTY&&!0!==o)return 0;const e=o?1:0;if("win32"===process.platform){const t=r.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((t=>t in n))||"codeship"===n.CI_NAME?1:e;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("truecolor"===n.COLORTERM)return 3;if("TERM_PROGRAM"in n){const t=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:(n.TERM,e)}(t);return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(e)}i("no-color")||i("no-colors")||i("color=false")?o=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(o=!0),"FORCE_COLOR"in n&&(o=0===n.FORCE_COLOR.length||0!==parseInt(n.FORCE_COLOR,10)),t.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},1811:(t,e)=>{e.isInteger=t=>"number"==typeof t?Number.isInteger(t):"string"==typeof t&&""!==t.trim()&&Number.isInteger(Number(t)),e.find=(t,e)=>t.nodes.find((t=>t.type===e)),e.exceedsLimit=(t,s,r=1,i)=>!1!==i&&!(!e.isInteger(t)||!e.isInteger(s))&&(Number(s)-Number(t))/Number(r)>=i,e.escapeNode=(t,e=0,s)=>{const r=t.nodes[e];r&&(s&&r.type===s||"open"===r.type||"close"===r.type)&&!0!==r.escaped&&(r.value="\\"+r.value,r.escaped=!0)},e.encloseBrace=t=>!("brace"!==t.type||t.commas>>0+t.ranges||(t.invalid=!0,0)),e.isInvalidBrace=t=>!("brace"!==t.type||!0!==t.invalid&&!t.dollar&&(t.commas>>0+t.ranges&&!0===t.open&&!0===t.close||(t.invalid=!0,0))),e.isOpenOrClose=t=>"open"===t.type||"close"===t.type||!0===t.open||!0===t.close,e.reduce=t=>t.reduce(((t,e)=>("text"===e.type&&t.push(e.value),"range"===e.type&&(e.type="text"),t)),[]),e.flatten=(...t)=>{const e=[],s=t=>{for(let r=0;r<t.length;r++){const i=t[r];Array.isArray(i)?s(i):void 0!==i&&e.push(i)}return e};return s(t),e}},2411:(t,e,s)=>{const r=s(9023),i=s(4710),n=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),o=t=>"number"==typeof t||"string"==typeof t&&""!==t,a=t=>Number.isInteger(+t),l=t=>{let e=`${t}`,s=-1;if("-"===e[0]&&(e=e.slice(1)),"0"===e)return!1;for(;"0"===e[++s];);return s>0},c=(t,e,s)=>{if(e>0){let s="-"===t[0]?"-":"";s&&(t=t.slice(1)),t=s+t.padStart(s?e-1:e,"0")}return!1===s?String(t):t},u=(t,e)=>{let s="-"===t[0]?"-":"";for(s&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return s?"-"+t:t},p=(t,e,s,r)=>{if(s)return i(t,e,{wrap:!1,...r});let n=String.fromCharCode(t);return t===e?n:`[${n}-${String.fromCharCode(e)}]`},h=(t,e,s)=>{if(Array.isArray(t)){let e=!0===s.wrap,r=s.capture?"":"?:";return e?`(${r}${t.join("|")})`:t.join("|")}return i(t,e,s)},d=(...t)=>new RangeError("Invalid range arguments: "+r.inspect(...t)),f=(t,e,s)=>{if(!0===s.strictRanges)throw d([t,e]);return[]},g=(t,e,s,r={})=>{if(null==e&&o(t))return[t];if(!o(t)||!o(e))return f(t,e,r);if("function"==typeof s)return g(t,e,1,{transform:s});if(n(s))return g(t,e,0,s);let i={...r};return!0===i.capture&&(i.wrap=!0),s=s||i.step||1,a(s)?a(t)&&a(e)?((t,e,s=1,r={})=>{let i=Number(t),n=Number(e);if(!Number.isInteger(i)||!Number.isInteger(n)){if(!0===r.strictRanges)throw d([t,e]);return[]}0===i&&(i=0),0===n&&(n=0);let o=i>n,a=String(t),f=String(e),g=String(s);s=Math.max(Math.abs(s),1);let m=l(a)||l(f)||l(g),y=m?Math.max(a.length,f.length,g.length):0,E=!1===m&&!1===((t,e,s)=>"string"==typeof t||"string"==typeof e||!0===s.stringify)(t,e,r),b=r.transform||(t=>e=>!0===t?Number(e):String(e))(E);if(r.toRegex&&1===s)return p(u(t,y),u(e,y),!0,r);let R={negatives:[],positives:[]},A=[],w=0;for(;o?i>=n:i<=n;)!0===r.toRegex&&s>1?R[(C=i)<0?"negatives":"positives"].push(Math.abs(C)):A.push(c(b(i,w),y,E)),i=o?i-s:i+s,w++;var C;return!0===r.toRegex?s>1?((t,e,s)=>{t.negatives.sort(((t,e)=>t<e?-1:t>e?1:0)),t.positives.sort(((t,e)=>t<e?-1:t>e?1:0));let r,i=e.capture?"":"?:",n="",o="";return t.positives.length&&(n=t.positives.map((t=>u(String(t),s))).join("|")),t.negatives.length&&(o=`-(${i}${t.negatives.map((t=>u(String(t),s))).join("|")})`),r=n&&o?`${n}|${o}`:n||o,e.wrap?`(${i}${r})`:r})(R,r,y):h(A,null,{wrap:!1,...r}):A})(t,e,s,i):((t,e,s=1,r={})=>{if(!a(t)&&t.length>1||!a(e)&&e.length>1)return f(t,e,r);let i=r.transform||(t=>String.fromCharCode(t)),n=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),l=n>o,c=Math.min(n,o),u=Math.max(n,o);if(r.toRegex&&1===s)return p(c,u,!1,r);let d=[],g=0;for(;l?n>=o:n<=o;)d.push(i(n,g)),n=l?n-s:n+s,g++;return!0===r.toRegex?h(d,null,{wrap:!1,options:r}):d})(t,e,Math.max(Math.abs(s),1),i):null==s||n(s)?g(t,e,1,s):((t,e)=>{if(!0===e.strictRanges)throw new TypeError(`Expected step "${t}" to be a number`);return[]})(s,i)};t.exports=g},2728:(t,e,s)=>{const r=s(2018),i=s(9023);e.init=function(t){t.inspectOpts={};const s=Object.keys(e.inspectOpts);for(let r=0;r<s.length;r++)t.inspectOpts[s[r]]=e.inspectOpts[s[r]]},e.log=function(...t){return process.stderr.write(i.formatWithOptions(e.inspectOpts,...t)+"\n")},e.formatArgs=function(s){const{namespace:r,useColors:i}=this;if(i){const e=this.color,i="\x1b[3"+(e<8?e:"8;5;"+e),n=` ${i};1m${r} \x1b[0m`;s[0]=n+s[0].split("\n").join("\n"+n),s.push(i+"m+"+t.exports.humanize(this.diff)+"\x1b[0m")}else s[0]=(e.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+r+" "+s[0]},e.save=function(t){t?process.env.DEBUG=t:delete process.env.DEBUG},e.load=function(){return process.env.DEBUG},e.useColors=function(){return"colors"in e.inspectOpts?Boolean(e.inspectOpts.colors):r.isatty(process.stderr.fd)},e.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{const t=s(1754);t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(t){}e.inspectOpts=Object.keys(process.env).filter((t=>/^debug_/i.test(t))).reduce(((t,e)=>{const s=e.substring(6).toLowerCase().replace(/_([a-z])/g,((t,e)=>e.toUpperCase()));let r=process.env[e];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),t[s]=r,t}),{}),t.exports=s(9565)(e);const{formatters:n}=t.exports;n.o=function(t){return this.inspectOpts.colors=this.useColors,i.inspect(t,this.inspectOpts).split("\n").map((t=>t.trim())).join(" ")},n.O=function(t){return this.inspectOpts.colors=this.useColors,i.inspect(t,this.inspectOpts)}},2775:(t,e,s)=>{var r=s(5317).spawn;t.exports=function(t,e,s,i){"function"==typeof s&&(i=s,s=void 0);var n=!1,o=r(t,e,s),a="",l="";o.stdout.on("data",(function(t){a+=t.toString()})),o.stderr.on("data",(function(t){l+=t.toString()})),o.on("error",(function(t){n||(n=!0,i(new Error(t)))})),o.on("close",(function(t){if(!n){if(n=!0,l=function(t){if(t)return(t=(t=t.trim()).replace(/your \d+x\d+ screen size is bogus\. expect trouble/gi,"")).trim()}(l))return i(new Error(l));i(null,a,t)}}))}},3297:(t,e,s)=>{const r=s(6927),{CHAR_ASTERISK:i,CHAR_AT:n,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:l,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:f,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:E}=s(4751),b=t=>t===u||t===o,R=t=>{!0!==t.isPrefix&&(t.depth=t.isGlobstar?1/0:1)};t.exports=(t,e)=>{const s=e||{},A=t.length-1,w=!0===s.parts||!0===s.scanToEnd,C=[],S=[],v=[];let T,O,_=t,k=-1,x=0,L=0,P=!1,$=!1,I=!1,H=!1,B=!1,F=!1,D=!1,M=!1,N=!1,U=!1,j=0,G={value:"",depth:0,isGlob:!1};const K=()=>k>=A,W=()=>(T=O,_.charCodeAt(++k));for(;k<A;){let t;if(O=W(),O!==o){if(!0===F||O===p){for(j++;!0!==K()&&(O=W());)if(O!==o)if(O!==p){if(!0!==F&&O===l&&(O=W())===l){if(P=G.isBrace=!0,I=G.isGlob=!0,U=!0,!0===w)continue;break}if(!0!==F&&O===a){if(P=G.isBrace=!0,I=G.isGlob=!0,U=!0,!0===w)continue;break}if(O===m&&(j--,0===j)){F=!1,P=G.isBrace=!0,U=!0;break}}else j++;else D=G.backslashes=!0,W();if(!0===w)continue;break}if(O!==u){if(!0!==s.noext&&!0==(O===f||O===n||O===i||O===g||O===c)&&_.charCodeAt(k+1)===h){if(I=G.isGlob=!0,H=G.isExtglob=!0,U=!0,O===c&&k===x&&(N=!0),!0===w){for(;!0!==K()&&(O=W());)if(O!==o){if(O===y){I=G.isGlob=!0,U=!0;break}}else D=G.backslashes=!0,O=W();continue}break}if(O===i){if(T===i&&(B=G.isGlobstar=!0),I=G.isGlob=!0,U=!0,!0===w)continue;break}if(O===g){if(I=G.isGlob=!0,U=!0,!0===w)continue;break}if(O===d){for(;!0!==K()&&(t=W());)if(t!==o){if(t===E){$=G.isBracket=!0,I=G.isGlob=!0,U=!0;break}}else D=G.backslashes=!0,W();if(!0===w)continue;break}if(!0===s.nonegate||O!==c||k!==x){if(!0!==s.noparen&&O===h){if(I=G.isGlob=!0,!0===w){for(;!0!==K()&&(O=W());)if(O!==h){if(O===y){U=!0;break}}else D=G.backslashes=!0,O=W();continue}break}if(!0===I){if(U=!0,!0===w)continue;break}}else M=G.negated=!0,x++}else{if(C.push(k),S.push(G),G={value:"",depth:0,isGlob:!1},!0===U)continue;if(T===l&&k===x+1){x+=2;continue}L=k+1}}else D=G.backslashes=!0,O=W(),O===p&&(F=!0)}!0===s.noext&&(H=!1,I=!1);let Y=_,z="",q="";x>0&&(z=_.slice(0,x),_=_.slice(x),L-=x),Y&&!0===I&&L>0?(Y=_.slice(0,L),q=_.slice(L)):!0===I?(Y="",q=_):Y=_,Y&&""!==Y&&"/"!==Y&&Y!==_&&b(Y.charCodeAt(Y.length-1))&&(Y=Y.slice(0,-1)),!0===s.unescape&&(q&&(q=r.removeBackslashes(q)),Y&&!0===D&&(Y=r.removeBackslashes(Y)));const Q={prefix:z,input:t,start:x,base:Y,glob:q,isBrace:P,isBracket:$,isGlob:I,isExtglob:H,isGlobstar:B,negated:M,negatedExtglob:N};if(!0===s.tokens&&(Q.maxDepth=0,b(O)||S.push(G),Q.tokens=S),!0===s.parts||!0===s.tokens){let e;for(let r=0;r<C.length;r++){const i=e?e+1:x,n=C[r],o=t.slice(i,n);s.tokens&&(0===r&&0!==x?(S[r].isPrefix=!0,S[r].value=z):S[r].value=o,R(S[r]),Q.maxDepth+=S[r].depth),0===r&&""===o||v.push(o),e=n}if(e&&e+1<t.length){const r=t.slice(e+1);v.push(r),s.tokens&&(S[S.length-1].value=r,R(S[S.length-1]),Q.maxDepth+=S[S.length-1].depth)}Q.slashes=C,Q.parts=v}return Q}},3298:(t,e,s)=>{e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const s="color: "+this.color;e.splice(1,0,s,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))})),e.splice(i,0,s)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=s(9565)(e);const{formatters:r}=t.exports;r.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},3585:(t,e,s)=>{const r=s(303),{MAX_LENGTH:i,CHAR_BACKSLASH:n,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:l,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:u,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_RIGHT_SQUARE_BRACKET:f,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=s(803);t.exports=(t,e={})=>{if("string"!=typeof t)throw new TypeError("Expected a string");const s=e||{},b="number"==typeof s.maxLength?Math.min(i,s.maxLength):i;if(t.length>b)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${b})`);const R={type:"root",input:t,nodes:[]},A=[R];let w=R,C=R,S=0;const v=t.length;let T,O=0,_=0;const k=()=>t[O++],x=t=>{if("text"===t.type&&"dot"===C.type&&(C.type="text"),!C||"text"!==C.type||"text"!==t.type)return w.nodes.push(t),t.parent=w,t.prev=C,C=t,t;C.value+=t.value};for(x({type:"bos"});O<v;)if(w=A[A.length-1],T=k(),T!==E&&T!==y)if(T!==n)if(T!==f)if(T!==d)if(T!==c)if(T!==u)if(T!==g&&T!==m&&T!==o)if(T!==p)if(T!==h)if(T===a&&_>0){if(w.ranges>0){w.ranges=0;const t=w.nodes.shift();w.nodes=[t,{type:"text",value:r(w)}]}x({type:"comma",value:T}),w.commas++}else if(T===l&&_>0&&0===w.commas){const t=w.nodes;if(0===_||0===t.length){x({type:"text",value:T});continue}if("dot"===C.type){if(w.range=[],C.value+=T,C.type="range",3!==w.nodes.length&&5!==w.nodes.length){w.invalid=!0,w.ranges=0,C.type="text";continue}w.ranges++,w.args=[];continue}if("range"===C.type){t.pop();const e=t[t.length-1];e.value+=C.value+T,C=e,w.ranges--;continue}x({type:"dot",value:T})}else x({type:"text",value:T});else{if("brace"!==w.type){x({type:"text",value:T});continue}const t="close";w=A.pop(),w.close=!0,x({type:t,value:T}),_--,w=A[A.length-1]}else{_++;const t=C.value&&"$"===C.value.slice(-1)||!0===w.dollar;w=x({type:"brace",open:!0,close:!1,dollar:t,depth:_,commas:0,ranges:0,nodes:[]}),A.push(w),x({type:"open",value:T})}else{const t=T;let s;for(!0!==e.keepQuotes&&(T="");O<v&&(s=k());)if(s!==n){if(s===t){!0===e.keepQuotes&&(T+=s);break}T+=s}else T+=s+k();x({type:"text",value:T})}else{if("paren"!==w.type){x({type:"text",value:T});continue}w=A.pop(),x({type:"text",value:T}),w=A[A.length-1]}else w=x({type:"paren",nodes:[]}),A.push(w),x({type:"text",value:T});else{let t;for(S++;O<v&&(t=k());)if(T+=t,t!==d)if(t!==n){if(t===f&&(S--,0===S))break}else T+=k();else S++;x({type:"text",value:T})}else x({type:"text",value:"\\"+T});else x({type:"text",value:(e.keepEscaping?T:"")+k()});do{if(w=A.pop(),"root"!==w.type){w.nodes.forEach((t=>{t.nodes||("open"===t.type&&(t.isOpen=!0),"close"===t.type&&(t.isClose=!0),t.nodes||(t.type="text"),t.invalid=!0)}));const t=A[A.length-1],e=t.nodes.indexOf(w);t.nodes.splice(e,1,...w.nodes)}}while(A.length>0);return x({type:"eos"}),R}},3866:t=>{var e=1e3,s=60*e,r=60*s,i=24*r,n=7*i;function o(t,e,s,r){var i=e>=1.5*s;return Math.round(t/s)+" "+r+(i?"s":"")}t.exports=function(t,a){a=a||{};var l,c,u=typeof t;if("string"===u&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(o){var a=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*n;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*s;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===u&&isFinite(t))return a.long?(l=t,(c=Math.abs(l))>=i?o(l,c,i,"day"):c>=r?o(l,c,r,"hour"):c>=s?o(l,c,s,"minute"):c>=e?o(l,c,e,"second"):l+" ms"):function(t){var n=Math.abs(t);return n>=i?Math.round(t/i)+"d":n>=r?Math.round(t/r)+"h":n>=s?Math.round(t/s)+"m":n>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},4078:(t,e,s)=>{const r=s(303),i=s(5111),n=s(9288),o=s(3585),a=(t,e={})=>{let s=[];if(Array.isArray(t))for(const r of t){const t=a.create(r,e);Array.isArray(t)?s.push(...t):s.push(t)}else s=[].concat(a.create(t,e));return e&&!0===e.expand&&!0===e.nodupes&&(s=[...new Set(s)]),s};a.parse=(t,e={})=>o(t,e),a.stringify=(t,e={})=>r("string"==typeof t?a.parse(t,e):t,e),a.compile=(t,e={})=>("string"==typeof t&&(t=a.parse(t,e)),i(t,e)),a.expand=(t,e={})=>{"string"==typeof t&&(t=a.parse(t,e));let s=n(t,e);return!0===e.noempty&&(s=s.filter(Boolean)),!0===e.nodupes&&(s=[...new Set(s)]),s},a.create=(t,e={})=>""===t||t.length<3?[t]:!0!==e.expand?a.compile(t,e):a.expand(t,e),t.exports=a},4182:(t,e,s)=>{var r=s(857),i={ps:()=>s(433),wmic:()=>s(7868)},n=r.platform();n.startsWith("win")&&(n="win");var o={darwin:"ps",sunos:"ps",freebsd:"ps",netbsd:"ps",win:"wmic",linux:"ps",aix:"ps"}[n];t.exports=function(t){void 0===o&&t(new Error(r.platform()+" is not supported yet, please open an issue (https://github.com/simonepri/pidtree)")),i[o]()(t)}},4710:(t,e,s)=>{const r=s(9789),i=(t,e,s)=>{if(!1===r(t))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===e||t===e)return String(t);if(!1===r(e))throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...s};"boolean"==typeof n.strictZeros&&(n.relaxZeros=!1===n.strictZeros);let l=t+":"+e+"="+String(n.relaxZeros)+String(n.shorthand)+String(n.capture)+String(n.wrap);if(i.cache.hasOwnProperty(l))return i.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(1===Math.abs(c-u)){let s=t+"|"+e;return n.capture?`(${s})`:!1===n.wrap?s:`(?:${s})`}let p=d(t)||d(e),h={min:t,max:e,a:c,b:u},f=[],g=[];return p&&(h.isPadded=p,h.maxLen=String(h.max).length),c<0&&(g=o(u<0?Math.abs(u):1,Math.abs(c),h,n),c=h.a=0),u>=0&&(f=o(c,u,h,n)),h.negatives=g,h.positives=f,h.result=function(t,e){let s=a(t,e,"-",!1)||[],r=a(e,t,"",!1)||[],i=a(t,e,"-?",!0)||[];return s.concat(i).concat(r).join("|")}(g,f),!0===n.capture?h.result=`(${h.result})`:!1!==n.wrap&&f.length+g.length>1&&(h.result=`(?:${h.result})`),i.cache[l]=h,h.result};function n(t,e,s){if(t===e)return{pattern:t,count:[],digits:0};let r=function(t,e){let s=[];for(let r=0;r<t.length;r++)s.push([t[r],e[r]]);return s}(t,e),i=r.length,n="",o=0;for(let t=0;t<i;t++){let[e,s]=r[t];e===s?n+=e:"0"!==e||"9"!==s?n+=`[${a=e}${(l=s)-a==1?"":"-"}${l}]`:o++}var a,l;return o&&(n+=!0===s.shorthand?"\\d":"[0-9]"),{pattern:n,count:[o],digits:i}}function o(t,e,s,r){let i,o=function(t,e){let s=1,r=1,i=u(t,s),n=new Set([e]);for(;t<=i&&i<=e;)n.add(i),s+=1,i=u(t,s);for(i=p(e+1,r)-1;t<i&&i<=e;)n.add(i),r+=1,i=p(e+1,r)-1;return n=[...n],n.sort(l),n}(t,e),a=[],c=t;for(let t=0;t<o.length;t++){let e=o[t],l=n(String(c),String(e),r),u="";s.isPadded||!i||i.pattern!==l.pattern?(s.isPadded&&(u=f(e,s,r)),l.string=u+l.pattern+h(l.count),a.push(l),c=e+1,i=l):(i.count.length>1&&i.count.pop(),i.count.push(l.count[0]),i.string=i.pattern+h(i.count),c=e+1)}return a}function a(t,e,s,r,i){let n=[];for(let i of t){let{string:t}=i;r||c(e,"string",t)||n.push(s+t),r&&c(e,"string",t)&&n.push(s+t)}return n}function l(t,e){return t>e?1:e>t?-1:0}function c(t,e,s){return t.some((t=>t[e]===s))}function u(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function p(t,e){return t-t%Math.pow(10,e)}function h(t){let[e=0,s=""]=t;return s||e>1?`{${e+(s?","+s:"")}}`:""}function d(t){return/^-?(0+)\d/.test(t)}function f(t,e,s){if(!e.isPadded)return t;let r=Math.abs(e.maxLen-String(t).length),i=!1!==s.relaxZeros;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${r}}`:`0{${r}}`}}i.cache={},i.clearCache=()=>i.cache={},t.exports=i},4751:(t,e,s)=>{const r=s(6928),i="\\\\/",n=`[^${i}]`,o="\\.",a="\\/",l="[^/]",c=`(?:${a}|$)`,u=`(?:^|${a})`,p=`${o}{1,2}${c}`,h={DOT_LITERAL:o,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:a,ONE_CHAR:"(?=.)",QMARK:l,END_ANCHOR:c,DOTS_SLASH:p,NO_DOT:`(?!${o})`,NO_DOTS:`(?!${u}${p})`,NO_DOT_SLASH:`(?!${o}{0,1}${c})`,NO_DOTS_SLASH:`(?!${p})`,QMARK_NO_DOT:`[^.${a}]`,STAR:`${l}*?`,START_ANCHOR:u},d={...h,SLASH_LITERAL:`[${i}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};t.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars:t=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:t=>!0===t?d:h}},4891:t=>{t.exports=(t,e)=>{e=e||process.argv;const s=t.startsWith("-")?"":1===t.length?"-":"--",r=e.indexOf(s+t),i=e.indexOf("--");return-1!==r&&(-1===i||r<i)}},5111:(t,e,s)=>{const r=s(2411),i=s(1811);t.exports=(t,e={})=>{const s=(t,n={})=>{const o=i.isInvalidBrace(n),a=!0===t.invalid&&!0===e.escapeInvalid,l=!0===o||!0===a,c=!0===e.escapeInvalid?"\\":"";let u="";if(!0===t.isOpen)return c+t.value;if(!0===t.isClose)return console.log("node.isClose",c,t.value),c+t.value;if("open"===t.type)return l?c+t.value:"(";if("close"===t.type)return l?c+t.value:")";if("comma"===t.type)return"comma"===t.prev.type?"":l?t.value:"|";if(t.value)return t.value;if(t.nodes&&t.ranges>0){const s=i.reduce(t.nodes),n=r(...s,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==n.length)return s.length>1&&n.length>1?`(${n})`:n}if(t.nodes)for(const e of t.nodes)u+=s(e,t);return u};return s(t)}},5453:(t,e,s)=>{const r=s(4751),i=s(6927),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:l,REPLACEMENTS:c}=r,u=(t,e)=>{if("function"==typeof e.expandRange)return e.expandRange(...t,e);t.sort();const s=`[${t.join("-")}]`;try{new RegExp(s)}catch(e){return t.map((t=>i.escapeRegex(t))).join("..")}return s},p=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,h=(t,e)=>{if("string"!=typeof t)throw new TypeError("Expected a string");t=c[t]||t;const s={...e},d="number"==typeof s.maxLength?Math.min(n,s.maxLength):n;let f=t.length;if(f>d)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${d}`);const g={type:"bos",value:"",output:s.prepend||""},m=[g],y=s.capture?"":"?:",E=i.isWindows(e),b=r.globChars(E),R=r.extglobChars(b),{DOT_LITERAL:A,PLUS_LITERAL:w,SLASH_LITERAL:C,ONE_CHAR:S,DOTS_SLASH:v,NO_DOT:T,NO_DOT_SLASH:O,NO_DOTS_SLASH:_,QMARK:k,QMARK_NO_DOT:x,STAR:L,START_ANCHOR:P}=b,$=t=>`(${y}(?:(?!${P}${t.dot?v:A}).)*?)`,I=s.dot?"":T,H=s.dot?k:x;let B=!0===s.bash?$(s):L;s.capture&&(B=`(${B})`),"boolean"==typeof s.noext&&(s.noextglob=s.noext);const F={input:t,index:-1,start:0,dot:!0===s.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:m};t=i.removePrefix(t,F),f=t.length;const D=[],M=[],N=[];let U,j=g;const G=()=>F.index===f-1,K=F.peek=(e=1)=>t[F.index+e],W=F.advance=()=>t[++F.index]||"",Y=()=>t.slice(F.index+1),z=(t="",e=0)=>{F.consumed+=t,F.index+=e},q=t=>{F.output+=null!=t.output?t.output:t.value,z(t.value)},Q=()=>{let t=1;for(;"!"===K()&&("("!==K(2)||"?"===K(3));)W(),F.start++,t++;return t%2!=0&&(F.negated=!0,F.start++,!0)},V=t=>{F[t]++,N.push(t)},X=t=>{F[t]--,N.pop()},Z=t=>{if("globstar"===j.type){const e=F.braces>0&&("comma"===t.type||"brace"===t.type),s=!0===t.extglob||D.length&&("pipe"===t.type||"paren"===t.type);"slash"===t.type||"paren"===t.type||e||s||(F.output=F.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=B,F.output+=j.output)}if(D.length&&"paren"!==t.type&&(D[D.length-1].inner+=t.value),(t.value||t.output)&&q(t),j&&"text"===j.type&&"text"===t.type)return j.value+=t.value,void(j.output=(j.output||"")+t.value);t.prev=j,m.push(t),j=t},J=(t,e)=>{const r={...R[e],conditions:1,inner:""};r.prev=j,r.parens=F.parens,r.output=F.output;const i=(s.capture?"(":"")+r.open;V("parens"),Z({type:t,value:e,output:F.output?"":S}),Z({type:"paren",extglob:!0,value:W(),output:i}),D.push(r)},tt=t=>{let r,i=t.close+(s.capture?")":"");if("negate"===t.type){let n=B;if(t.inner&&t.inner.length>1&&t.inner.includes("/")&&(n=$(s)),(n!==B||G()||/^\)+$/.test(Y()))&&(i=t.close=`)$))${n}`),t.inner.includes("*")&&(r=Y())&&/^\.[^\\/.]+$/.test(r)){const s=h(r,{...e,fastpaths:!1}).output;i=t.close=`)${s})${n})`}"bos"===t.prev.type&&(F.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:U,output:i}),X("parens")};if(!1!==s.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(t)){let r=!1,n=t.replace(l,((t,e,s,i,n,o)=>"\\"===i?(r=!0,t):"?"===i?e?e+i+(n?k.repeat(n.length):""):0===o?H+(n?k.repeat(n.length):""):k.repeat(s.length):"."===i?A.repeat(s.length):"*"===i?e?e+i+(n?B:""):B:e?t:`\\${t}`));return!0===r&&(n=!0===s.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,(t=>t.length%2==0?"\\\\":t?"\\":""))),n===t&&!0===s.contains?(F.output=t,F):(F.output=i.wrapOutput(n,F,e),F)}for(;!G();){if(U=W(),"\0"===U)continue;if("\\"===U){const t=K();if("/"===t&&!0!==s.bash)continue;if("."===t||";"===t)continue;if(!t){U+="\\",Z({type:"text",value:U});continue}const e=/^\\+/.exec(Y());let r=0;if(e&&e[0].length>2&&(r=e[0].length,F.index+=r,r%2!=0&&(U+="\\")),!0===s.unescape?U=W():U+=W(),0===F.brackets){Z({type:"text",value:U});continue}}if(F.brackets>0&&("]"!==U||"["===j.value||"[^"===j.value)){if(!1!==s.posix&&":"===U){const t=j.value.slice(1);if(t.includes("[")&&(j.posix=!0,t.includes(":"))){const t=j.value.lastIndexOf("["),e=j.value.slice(0,t),s=j.value.slice(t+2),r=o[s];if(r){j.value=e+r,F.backtrack=!0,W(),g.output||1!==m.indexOf(j)||(g.output=S);continue}}}("["===U&&":"!==K()||"-"===U&&"]"===K())&&(U=`\\${U}`),"]"!==U||"["!==j.value&&"[^"!==j.value||(U=`\\${U}`),!0===s.posix&&"!"===U&&"["===j.value&&(U="^"),j.value+=U,q({value:U});continue}if(1===F.quotes&&'"'!==U){U=i.escapeRegex(U),j.value+=U,q({value:U});continue}if('"'===U){F.quotes=1===F.quotes?0:1,!0===s.keepQuotes&&Z({type:"text",value:U});continue}if("("===U){V("parens"),Z({type:"paren",value:U});continue}if(")"===U){if(0===F.parens&&!0===s.strictBrackets)throw new SyntaxError(p("opening","("));const t=D[D.length-1];if(t&&F.parens===t.parens+1){tt(D.pop());continue}Z({type:"paren",value:U,output:F.parens?")":"\\)"}),X("parens");continue}if("["===U){if(!0!==s.nobracket&&Y().includes("]"))V("brackets");else{if(!0!==s.nobracket&&!0===s.strictBrackets)throw new SyntaxError(p("closing","]"));U=`\\${U}`}Z({type:"bracket",value:U});continue}if("]"===U){if(!0===s.nobracket||j&&"bracket"===j.type&&1===j.value.length){Z({type:"text",value:U,output:`\\${U}`});continue}if(0===F.brackets){if(!0===s.strictBrackets)throw new SyntaxError(p("opening","["));Z({type:"text",value:U,output:`\\${U}`});continue}X("brackets");const t=j.value.slice(1);if(!0===j.posix||"^"!==t[0]||t.includes("/")||(U=`/${U}`),j.value+=U,q({value:U}),!1===s.literalBrackets||i.hasRegexChars(t))continue;const e=i.escapeRegex(j.value);if(F.output=F.output.slice(0,-j.value.length),!0===s.literalBrackets){F.output+=e,j.value=e;continue}j.value=`(${y}${e}|${j.value})`,F.output+=j.value;continue}if("{"===U&&!0!==s.nobrace){V("braces");const t={type:"brace",value:U,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};M.push(t),Z(t);continue}if("}"===U){const t=M[M.length-1];if(!0===s.nobrace||!t){Z({type:"text",value:U,output:U});continue}let e=")";if(!0===t.dots){const t=m.slice(),r=[];for(let e=t.length-1;e>=0&&(m.pop(),"brace"!==t[e].type);e--)"dots"!==t[e].type&&r.unshift(t[e].value);e=u(r,s),F.backtrack=!0}if(!0!==t.comma&&!0!==t.dots){const s=F.output.slice(0,t.outputIndex),r=F.tokens.slice(t.tokensIndex);t.value=t.output="\\{",U=e="\\}",F.output=s;for(const t of r)F.output+=t.output||t.value}Z({type:"brace",value:U,output:e}),X("braces"),M.pop();continue}if("|"===U){D.length>0&&D[D.length-1].conditions++,Z({type:"text",value:U});continue}if(","===U){let t=U;const e=M[M.length-1];e&&"braces"===N[N.length-1]&&(e.comma=!0,t="|"),Z({type:"comma",value:U,output:t});continue}if("/"===U){if("dot"===j.type&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",m.pop(),j=g;continue}Z({type:"slash",value:U,output:C});continue}if("."===U){if(F.braces>0&&"dot"===j.type){"."===j.value&&(j.output=A);const t=M[M.length-1];j.type="dots",j.output+=U,j.value+=U,t.dots=!0;continue}if(F.braces+F.parens===0&&"bos"!==j.type&&"slash"!==j.type){Z({type:"text",value:U,output:A});continue}Z({type:"dot",value:U,output:A});continue}if("?"===U){if((!j||"("!==j.value)&&!0!==s.noextglob&&"("===K()&&"?"!==K(2)){J("qmark",U);continue}if(j&&"paren"===j.type){const t=K();let e=U;if("<"===t&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===j.value&&!/[!=<:]/.test(t)||"<"===t&&!/<([!=]|\w+>)/.test(Y()))&&(e=`\\${U}`),Z({type:"text",value:U,output:e});continue}if(!0!==s.dot&&("slash"===j.type||"bos"===j.type)){Z({type:"qmark",value:U,output:x});continue}Z({type:"qmark",value:U,output:k});continue}if("!"===U){if(!0!==s.noextglob&&"("===K()&&("?"!==K(2)||!/[!=<:]/.test(K(3)))){J("negate",U);continue}if(!0!==s.nonegate&&0===F.index){Q();continue}}if("+"===U){if(!0!==s.noextglob&&"("===K()&&"?"!==K(2)){J("plus",U);continue}if(j&&"("===j.value||!1===s.regex){Z({type:"plus",value:U,output:w});continue}if(j&&("bracket"===j.type||"paren"===j.type||"brace"===j.type)||F.parens>0){Z({type:"plus",value:U});continue}Z({type:"plus",value:w});continue}if("@"===U){if(!0!==s.noextglob&&"("===K()&&"?"!==K(2)){Z({type:"at",extglob:!0,value:U,output:""});continue}Z({type:"text",value:U});continue}if("*"!==U){"$"!==U&&"^"!==U||(U=`\\${U}`);const t=a.exec(Y());t&&(U+=t[0],F.index+=t[0].length),Z({type:"text",value:U});continue}if(j&&("globstar"===j.type||!0===j.star)){j.type="star",j.star=!0,j.value+=U,j.output=B,F.backtrack=!0,F.globstar=!0,z(U);continue}let e=Y();if(!0!==s.noextglob&&/^\([^?]/.test(e)){J("star",U);continue}if("star"===j.type){if(!0===s.noglobstar){z(U);continue}const r=j.prev,i=r.prev,n="slash"===r.type||"bos"===r.type,o=i&&("star"===i.type||"globstar"===i.type);if(!0===s.bash&&(!n||e[0]&&"/"!==e[0])){Z({type:"star",value:U,output:""});continue}const a=F.braces>0&&("comma"===r.type||"brace"===r.type),l=D.length&&("pipe"===r.type||"paren"===r.type);if(!n&&"paren"!==r.type&&!a&&!l){Z({type:"star",value:U,output:""});continue}for(;"/**"===e.slice(0,3);){const s=t[F.index+4];if(s&&"/"!==s)break;e=e.slice(3),z("/**",3)}if("bos"===r.type&&G()){j.type="globstar",j.value+=U,j.output=$(s),F.output=j.output,F.globstar=!0,z(U);continue}if("slash"===r.type&&"bos"!==r.prev.type&&!o&&G()){F.output=F.output.slice(0,-(r.output+j.output).length),r.output=`(?:${r.output}`,j.type="globstar",j.output=$(s)+(s.strictSlashes?")":"|$)"),j.value+=U,F.globstar=!0,F.output+=r.output+j.output,z(U);continue}if("slash"===r.type&&"bos"!==r.prev.type&&"/"===e[0]){const t=void 0!==e[1]?"|$":"";F.output=F.output.slice(0,-(r.output+j.output).length),r.output=`(?:${r.output}`,j.type="globstar",j.output=`${$(s)}${C}|${C}${t})`,j.value+=U,F.output+=r.output+j.output,F.globstar=!0,z(U+W()),Z({type:"slash",value:"/",output:""});continue}if("bos"===r.type&&"/"===e[0]){j.type="globstar",j.value+=U,j.output=`(?:^|${C}|${$(s)}${C})`,F.output=j.output,F.globstar=!0,z(U+W()),Z({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-j.output.length),j.type="globstar",j.output=$(s),j.value+=U,F.output+=j.output,F.globstar=!0,z(U);continue}const r={type:"star",value:U,output:B};!0!==s.bash?!j||"bracket"!==j.type&&"paren"!==j.type||!0!==s.regex?(F.index!==F.start&&"slash"!==j.type&&"dot"!==j.type||("dot"===j.type?(F.output+=O,j.output+=O):!0===s.dot?(F.output+=_,j.output+=_):(F.output+=I,j.output+=I),"*"!==K()&&(F.output+=S,j.output+=S)),Z(r)):(r.output=U,Z(r)):(r.output=".*?","bos"!==j.type&&"slash"!==j.type||(r.output=I+r.output),Z(r))}for(;F.brackets>0;){if(!0===s.strictBrackets)throw new SyntaxError(p("closing","]"));F.output=i.escapeLast(F.output,"["),X("brackets")}for(;F.parens>0;){if(!0===s.strictBrackets)throw new SyntaxError(p("closing",")"));F.output=i.escapeLast(F.output,"("),X("parens")}for(;F.braces>0;){if(!0===s.strictBrackets)throw new SyntaxError(p("closing","}"));F.output=i.escapeLast(F.output,"{"),X("braces")}if(!0===s.strictSlashes||"star"!==j.type&&"bracket"!==j.type||Z({type:"maybe_slash",value:"",output:`${C}?`}),!0===F.backtrack){F.output="";for(const t of F.tokens)F.output+=null!=t.output?t.output:t.value,t.suffix&&(F.output+=t.suffix)}return F};h.fastpaths=(t,e)=>{const s={...e},o="number"==typeof s.maxLength?Math.min(n,s.maxLength):n,a=t.length;if(a>o)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`);t=c[t]||t;const l=i.isWindows(e),{DOT_LITERAL:u,SLASH_LITERAL:p,ONE_CHAR:h,DOTS_SLASH:d,NO_DOT:f,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:E}=r.globChars(l),b=s.dot?g:f,R=s.dot?m:f,A=s.capture?"":"?:";let w=!0===s.bash?".*?":y;s.capture&&(w=`(${w})`);const C=t=>!0===t.noglobstar?w:`(${A}(?:(?!${E}${t.dot?d:u}).)*?)`,S=t=>{switch(t){case"*":return`${b}${h}${w}`;case".*":return`${u}${h}${w}`;case"*.*":return`${b}${w}${u}${h}${w}`;case"*/*":return`${b}${w}${p}${h}${R}${w}`;case"**":return b+C(s);case"**/*":return`(?:${b}${C(s)}${p})?${R}${h}${w}`;case"**/*.*":return`(?:${b}${C(s)}${p})?${R}${w}${u}${h}${w}`;case"**/.*":return`(?:${b}${C(s)}${p})?${u}${h}${w}`;default:{const e=/^(.*?)\.(\w+)$/.exec(t);if(!e)return;const s=S(e[1]);if(!s)return;return s+u+e[2]}}},v=i.removePrefix(t,{negated:!1,prefix:""});let T=S(v);return T&&!0!==s.strictSlashes&&(T+=`${p}?`),T},t.exports=h},5562:(t,e,s)=>{t.exports=s(8996)},6179:(t,e,s)=>{var r=s(4182);t.exports=function(t,e,s){"function"==typeof e&&(s=e,e={}),"object"!=typeof e&&(e={}),t=parseInt(t,10),isNaN(t)||t<-1?s(new TypeError("The pid provided is invalid")):r((function(r,i){if(r)s(r);else if(-1!==t){for(var n,o=0;o<i.length;o++){if(i[o][1]===t){n=e.advanced?{ppid:i[o][0],pid:t}:t;break}i[o][0]===t&&(n=e.advanced?{pid:t}:t)}if(n){for(var a={};i.length>0;){var l=i.pop();a[l[0]]?a[l[0]].push(l[1]):a[l[0]]=[l[1]]}for(var c=0,u=[n];c<u.length;){var p=e.advanced?u[c++].pid:u[c++];if(a[p]){for(var h=a[p].length,d=0;d<h;d++)u.push(e.advanced?{ppid:p,pid:a[p][d]}:a[p][d]);delete a[p]}}e.root||u.shift(),s(null,u)}else s(new Error("No matching pid found"))}else{for(var f=0;f<i.length;f++)i[f]=e.advanced?{ppid:i[f][0],pid:i[f][1]}:i[f]=i[f][1];s(null,i)}}))}},6296:t=>{var e=Object.prototype.hasOwnProperty,s="~";function r(){}function i(t,e,s){this.fn=t,this.context=e,this.once=s||!1}function n(t,e,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new i(r,n||t,o),l=s?s+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],a]:t._events[l].push(a):(t._events[l]=a,t._eventsCount++),t}function o(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(s=!1)),a.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(s?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=s?s+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,n=r.length,o=new Array(n);i<n;i++)o[i]=r[i].fn;return o},a.prototype.listenerCount=function(t){var e=s?s+t:t,r=this._events[e];return r?r.fn?1:r.length:0},a.prototype.emit=function(t,e,r,i,n,o){var a=s?s+t:t;if(!this._events[a])return!1;var l,c,u=this._events[a],p=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),p){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,r),!0;case 4:return u.fn.call(u.context,e,r,i),!0;case 5:return u.fn.call(u.context,e,r,i,n),!0;case 6:return u.fn.call(u.context,e,r,i,n,o),!0}for(c=1,l=new Array(p-1);c<p;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,d=u.length;for(c=0;c<d;c++)switch(u[c].once&&this.removeListener(t,u[c].fn,void 0,!0),p){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,e);break;case 3:u[c].fn.call(u[c].context,e,r);break;case 4:u[c].fn.call(u[c].context,e,r,i);break;default:if(!l)for(h=1,l=new Array(p-1);h<p;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},a.prototype.on=function(t,e,s){return n(this,t,e,s,!1)},a.prototype.once=function(t,e,s){return n(this,t,e,s,!0)},a.prototype.removeListener=function(t,e,r,i){var n=s?s+t:t;if(!this._events[n])return this;if(!e)return o(this,n),this;var a=this._events[n];if(a.fn)a.fn!==e||i&&!a.once||r&&a.context!==r||o(this,n);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==e||i&&!a[l].once||r&&a[l].context!==r)&&c.push(a[l]);c.length?this._events[n]=1===c.length?c[0]:c:o(this,n)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=s?s+t:t,this._events[e]&&o(this,e)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=s,a.EventEmitter=a,t.exports=a},6454:(t,e,s)=>{String.prototype.startsWith||(String.prototype.startsWith=function(t){return this.substring(0,t.length)===t});var r=s(6179);t.exports=function(t,e,s){var i,n,o;if("function"==typeof e&&(s=e,e=void 0),"function"!=typeof s)return i=r,n=t,o=e,new Promise((function(t,e){i(n,o,(function(s,r){if(s)return e(s);t(r)}))}));r(t,e,s)}},6927:(t,e,s)=>{const r=s(6928),i="win32"===process.platform,{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:l}=s(4751);e.isObject=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),e.hasRegexChars=t=>a.test(t),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=t=>t.replace(l,"\\$1"),e.toPosixSlashes=t=>t.replace(n,"/"),e.removeBackslashes=t=>t.replace(o,(t=>"\\"===t?"":t)),e.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);return 3===t.length&&t[0]>=9||8===t[0]&&t[1]>=10},e.isWindows=t=>t&&"boolean"==typeof t.windows?t.windows:!0===i||"\\"===r.sep,e.escapeLast=(t,s,r)=>{const i=t.lastIndexOf(s,r);return-1===i?t:"\\"===t[i-1]?e.escapeLast(t,s,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(t,e={})=>{let s=t;return s.startsWith("./")&&(s=s.slice(2),e.prefix="./"),s},e.wrapOutput=(t,e={},s={})=>{let r=`${s.contains?"":"^"}(?:${t})${s.contains?"":"$"}`;return!0===e.negated&&(r=`(?:^(?!${r}).*$)`),r}},7498:(t,e,s)=>{const r=s(9023),i=s(4078),n=s(5562),o=s(6927),a=t=>""===t||"./"===t,l=t=>{const e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},c=(t,e,s)=>{e=[].concat(e),t=[].concat(t);let r=new Set,i=new Set,o=new Set,a=0,l=t=>{o.add(t.output),s&&s.onResult&&s.onResult(t)};for(let o=0;o<e.length;o++){let c=n(String(e[o]),{...s,onResult:l},!0),u=c.state.negated||c.state.negatedExtglob;u&&a++;for(let e of t){let t=c(e,!0);(u?!t.isMatch:t.isMatch)&&(u?r.add(t.output):(r.delete(t.output),i.add(t.output)))}}let c=(a===e.length?[...o]:[...i]).filter((t=>!r.has(t)));if(s&&0===c.length){if(!0===s.failglob)throw new Error(`No matches found for "${e.join(", ")}"`);if(!0===s.nonull||!0===s.nullglob)return s.unescape?e.map((t=>t.replace(/\\/g,""))):e}return c};c.match=c,c.matcher=(t,e)=>n(t,e),c.any=c.isMatch=(t,e,s)=>n(e,s)(t),c.not=(t,e,s={})=>{e=[].concat(e).map(String);let r=new Set,i=[],n=new Set(c(t,e,{...s,onResult:t=>{s.onResult&&s.onResult(t),i.push(t.output)}}));for(let t of i)n.has(t)||r.add(t);return[...r]},c.contains=(t,e,s)=>{if("string"!=typeof t)throw new TypeError(`Expected a string: "${r.inspect(t)}"`);if(Array.isArray(e))return e.some((e=>c.contains(t,e,s)));if("string"==typeof e){if(a(t)||a(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return c.isMatch(t,e,{...s,contains:!0})},c.matchKeys=(t,e,s)=>{if(!o.isObject(t))throw new TypeError("Expected the first argument to be an object");let r=c(Object.keys(t),e,s),i={};for(let e of r)i[e]=t[e];return i},c.some=(t,e,s)=>{let r=[].concat(t);for(let t of[].concat(e)){let e=n(String(t),s);if(r.some((t=>e(t))))return!0}return!1},c.every=(t,e,s)=>{let r=[].concat(t);for(let t of[].concat(e)){let e=n(String(t),s);if(!r.every((t=>e(t))))return!1}return!0},c.all=(t,e,s)=>{if("string"!=typeof t)throw new TypeError(`Expected a string: "${r.inspect(t)}"`);return[].concat(e).every((e=>n(e,s)(t)))},c.capture=(t,e,s)=>{let r=o.isWindows(s),i=n.makeRe(String(t),{...s,capture:!0}).exec(r?o.toPosixSlashes(e):e);if(i)return i.slice(1).map((t=>void 0===t?"":t))},c.makeRe=(...t)=>n.makeRe(...t),c.scan=(...t)=>n.scan(...t),c.parse=(t,e)=>{let s=[];for(let r of[].concat(t||[]))for(let t of i(String(r),e))s.push(n.parse(t,e));return s},c.braces=(t,e)=>{if("string"!=typeof t)throw new TypeError("Expected a string");return e&&!0===e.nobrace||!l(t)?[t]:i(t,e)},c.braceExpand=(t,e)=>{if("string"!=typeof t)throw new TypeError("Expected a string");return c.braces(t,{...e,expand:!0})},c.hasBraces=l,t.exports=c},7868:(t,e,s)=>{var r=s(857),i=s(2775);t.exports=function(t){i("wmic",["PROCESS","get","ParentProcessId,ProcessId"],{windowsHide:!0,windowsVerbatimArguments:!0},(function(e,s,i){if(e)t(e);else if(0===i)try{s=s.split(r.EOL);for(var n=[],o=1;o<s.length;o++)s[o]=s[o].trim(),s[o]&&(s[o]=s[o].split(/\s+/),s[o][0]=parseInt(s[o][0],10),s[o][1]=parseInt(s[o][1],10),n.push(s[o]));t(null,n)}catch(e){t(e)}else t(new Error("pidtree wmic command exited with code "+i))}))}},8729:(t,e,s)=>{t.exports=s.p+"../../node_modules/.pnpm/lint-staged@16.0.0_patch_hash=c3594b9a865a9ce29084d773f4b9b07cc07efc27a806e0c04709fa6b66d5f315/node_modules/lint-staged/package.json"},8770:(t,e,s)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?t.exports=s(3298):t.exports=s(2728)},8996:(t,e,s)=>{const r=s(6928),i=s(3297),n=s(5453),o=s(6927),a=s(4751),l=(t,e,s=!1)=>{if(Array.isArray(t)){const r=t.map((t=>l(t,e,s))),i=t=>{for(const e of r){const s=e(t);if(s)return s}return!1};return i}const r=(i=t)&&"object"==typeof i&&!Array.isArray(i)&&t.tokens&&t.input;var i;if(""===t||"string"!=typeof t&&!r)throw new TypeError("Expected pattern to be a non-empty string");const n=e||{},a=o.isWindows(e),c=r?l.compileRe(t,e):l.makeRe(t,e,!1,!0),u=c.state;delete c.state;let p=()=>!1;if(n.ignore){const t={...e,ignore:null,onMatch:null,onResult:null};p=l(n.ignore,t,s)}const h=(s,r=!1)=>{const{isMatch:i,match:o,output:h}=l.test(s,c,e,{glob:t,posix:a}),d={glob:t,state:u,regex:c,posix:a,input:s,output:h,match:o,isMatch:i};return"function"==typeof n.onResult&&n.onResult(d),!1===i?(d.isMatch=!1,!!r&&d):p(s)?("function"==typeof n.onIgnore&&n.onIgnore(d),d.isMatch=!1,!!r&&d):("function"==typeof n.onMatch&&n.onMatch(d),!r||d)};return s&&(h.state=u),h};l.test=(t,e,s,{glob:r,posix:i}={})=>{if("string"!=typeof t)throw new TypeError("Expected input to be a string");if(""===t)return{isMatch:!1,output:""};const n=s||{},a=n.format||(i?o.toPosixSlashes:null);let c=t===r,u=c&&a?a(t):t;return!1===c&&(u=a?a(t):t,c=u===r),!1!==c&&!0!==n.capture||(c=!0===n.matchBase||!0===n.basename?l.matchBase(t,e,s,i):e.exec(u)),{isMatch:Boolean(c),match:c,output:u}},l.matchBase=(t,e,s,i=o.isWindows(s))=>(e instanceof RegExp?e:l.makeRe(e,s)).test(r.basename(t)),l.isMatch=(t,e,s)=>l(e,s)(t),l.parse=(t,e)=>Array.isArray(t)?t.map((t=>l.parse(t,e))):n(t,{...e,fastpaths:!1}),l.scan=(t,e)=>i(t,e),l.compileRe=(t,e,s=!1,r=!1)=>{if(!0===s)return t.output;const i=e||{},n=i.contains?"":"^",o=i.contains?"":"$";let a=`${n}(?:${t.output})${o}`;t&&!0===t.negated&&(a=`^(?!${a}).*$`);const c=l.toRegex(a,e);return!0===r&&(c.state=t),c},l.makeRe=(t,e={},s=!1,r=!1)=>{if(!t||"string"!=typeof t)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===e.fastpaths||"."!==t[0]&&"*"!==t[0]||(i.output=n.fastpaths(t,e)),i.output||(i=n(t,e)),l.compileRe(i,e,s,r)},l.toRegex=(t,e)=>{try{const s=e||{};return new RegExp(t,s.flags||(s.nocase?"i":""))}catch(t){if(e&&!0===e.debug)throw t;return/$^/}},l.constants=a,t.exports=l},9018:t=>{function e(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){if((t=t||{}).circles)return function(t){const s=[],r=[],i=new Map;if(i.set(Date,(t=>new Date(t))),i.set(Map,((t,e)=>new Map(o(Array.from(t),e)))),i.set(Set,((t,e)=>new Set(o(Array.from(t),e)))),t.constructorHandlers)for(const e of t.constructorHandlers)i.set(e[0],e[1]);let n=null;return t.proto?function t(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return o(a,t);if(a.constructor!==Object&&(n=i.get(a.constructor)))return n(a,t);const l={};s.push(a),r.push(l);for(const o in a){const c=a[o];if("object"!=typeof c||null===c)l[o]=c;else if(c.constructor!==Object&&(n=i.get(c.constructor)))l[o]=n(c,t);else if(ArrayBuffer.isView(c))l[o]=e(c);else{const e=s.indexOf(c);l[o]=-1!==e?r[e]:t(c)}}return s.pop(),r.pop(),l}:function t(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return o(a,t);if(a.constructor!==Object&&(n=i.get(a.constructor)))return n(a,t);const l={};s.push(a),r.push(l);for(const o in a){if(!1===Object.hasOwnProperty.call(a,o))continue;const c=a[o];if("object"!=typeof c||null===c)l[o]=c;else if(c.constructor!==Object&&(n=i.get(c.constructor)))l[o]=n(c,t);else if(ArrayBuffer.isView(c))l[o]=e(c);else{const e=s.indexOf(c);l[o]=-1!==e?r[e]:t(c)}}return s.pop(),r.pop(),l};function o(t,o){const a=Object.keys(t),l=new Array(a.length);for(let c=0;c<a.length;c++){const u=a[c],p=t[u];if("object"!=typeof p||null===p)l[u]=p;else if(p.constructor!==Object&&(n=i.get(p.constructor)))l[u]=n(p,o);else if(ArrayBuffer.isView(p))l[u]=e(p);else{const t=s.indexOf(p);l[u]=-1!==t?r[t]:o(p)}}return l}}(t);const s=new Map;if(s.set(Date,(t=>new Date(t))),s.set(Map,((t,e)=>new Map(i(Array.from(t),e)))),s.set(Set,((t,e)=>new Set(i(Array.from(t),e)))),t.constructorHandlers)for(const e of t.constructorHandlers)s.set(e[0],e[1]);let r=null;return t.proto?function t(n){if("object"!=typeof n||null===n)return n;if(Array.isArray(n))return i(n,t);if(n.constructor!==Object&&(r=s.get(n.constructor)))return r(n,t);const o={};for(const i in n){const a=n[i];"object"!=typeof a||null===a?o[i]=a:a.constructor!==Object&&(r=s.get(a.constructor))?o[i]=r(a,t):ArrayBuffer.isView(a)?o[i]=e(a):o[i]=t(a)}return o}:function t(n){if("object"!=typeof n||null===n)return n;if(Array.isArray(n))return i(n,t);if(n.constructor!==Object&&(r=s.get(n.constructor)))return r(n,t);const o={};for(const i in n){if(!1===Object.hasOwnProperty.call(n,i))continue;const a=n[i];"object"!=typeof a||null===a?o[i]=a:a.constructor!==Object&&(r=s.get(a.constructor))?o[i]=r(a,t):ArrayBuffer.isView(a)?o[i]=e(a):o[i]=t(a)}return o};function i(t,i){const n=Object.keys(t),o=new Array(n.length);for(let a=0;a<n.length;a++){const l=n[a],c=t[l];"object"!=typeof c||null===c?o[l]=c:c.constructor!==Object&&(r=s.get(c.constructor))?o[l]=r(c,i):ArrayBuffer.isView(c)?o[l]=e(c):o[l]=i(c)}return o}}},9284:(t,e,s)=>{s.d(e,{default:()=>Br});var r=s(8770),i=s(1708),n=s(7975);var o=s(6760),a=s(3136);const l=({Path:t="",PATH:e=t,...s},r)=>{const i=e.split(o.delimiter);return{...s,PATH:[...c([],o.resolve(r)).map((t=>o.join(t,"node_modules/.bin"))).filter((t=>!i.includes(t))),e].filter(Boolean).join(o.delimiter)}},c=(t,e)=>t.at(-1)===e?t:c([...t,e],o.resolve(e,".."));var u=s(1421),p=s(8474),h=s(1455);const d=(t,e,{Path:s="",PATH:r=s})=>E.some((e=>t.toLowerCase().endsWith(e)))||y(t,e,r),f={},g=t=>(...e)=>f[e.join("\0")]??=t(...e),m=g(h.access),y=g((async(t,e,s)=>{const r=s.split(o.delimiter).filter(Boolean).map((t=>t.replace(/^"(.*)"$/,"$1")));try{await Promise.any([e,...r].flatMap((e=>E.map((s=>m(`${o.resolve(e,t)}${s}`))))))}catch{return!1}return!0})),E=[".exe",".com"],b=t=>t.replaceAll(/([()\][%!^"`<>&|;, *?])/g,"^$1"),R=(t,e,s)=>Object.assign(A(t,s),C(e),S(s)),A=(t,{command:e})=>t instanceof w?t:new w(`Command failed: ${e}`,{cause:t});class w extends Error{name="SubprocessError"}const C=({exitCode:t,signalCode:e})=>({...t<1?{}:{exitCode:t},...null===e?{}:{signalName:e}}),S=({state:{stdout:t,stderr:e,output:s},command:r,start:n})=>({stdout:v(t),stderr:v(e),output:v(s),command:r,durationMs:Number(i.hrtime.bigint()-n)/1e6}),v=t=>"\n"===t.at(-1)?t.slice(0,"\r"===t.at(-2)?-2:-1):t,T=async(t,e,s,r)=>{try{["node","node.exe"].includes(t.toLowerCase())&&(t=i.execPath,e=[...i.execArgv.filter((t=>!t.startsWith("--inspect"))),...e]),[t,e,s]=await(async(t,e,s)=>await(async(t,{shell:e,cwd:s,env:r=i.env})=>"win32"===i.platform&&!e&&!await d(t,s,r))(t,s)?[b(t),e.map((t=>(t=>b(b(`"${t.replaceAll(/(\\*)"/g,'$1$1\\"').replace(/(\\*)$/,"$1$1")}"`)))(t))),{...s,shell:!0}]:[t,e,s])(t,e,s),[t,e,s]=O(t,e,s);const n=(0,u.spawn)(t,e,s);return _(n.stdout,r,"stdout"),_(n.stderr,r,"stderr"),n.once("error",(()=>{})),await(0,p.once)(n,"spawn"),n}catch(t){throw R(t,{},r)}},O=(t,e,s)=>s.shell&&e.length>0?[[t,...e].join(" "),[],s]:[t,e,s],_=(t,{state:e},s)=>{t&&(t.setEncoding("utf8"),e.isIterating||(e.isIterating=!1,t.on("data",(t=>{e[s]+=t,e.output+=t}))))};var k=s(6466);const x=async t=>{try{const[{stdout:e},{stdin:s}]=await Promise.all(t.map((({nodeChildProcess:t})=>t)));if(null===s)throw new Error('The "stdin" option must be set on the first "spawn()" call in the pipeline.');if(null===e)throw new Error('The "stdout" option must be set on the last "spawn()" call in the pipeline.');(0,k.pipeline)(e,s).catch((()=>{}))}catch(e){throw await Promise.allSettled(t.map((({nodeChildProcess:t})=>L(t)))),e}},L=async t=>{const{stdin:e}=await t;e.end()};var P=s(6848);const $=async function*(t,{state:e},s){if(!1===e.isIterating)throw new Error("The subprocess must be iterated right away, for example:\n\tfor await (const line of spawn(...)) { ... }");e.isIterating=!0;try{const{[s]:e}=await t.nodeChildProcess;if(!e)return;yield*P.createInterface({input:e})}finally{await t}},I=async t=>{try{return await t.next()}catch(e){await t.throw(e)}};function H(t,e,s,r){const[c=[],u={}]=Array.isArray(e)?[e,s]:[[],e],h=(d=[t,...c],{start:i.hrtime.bigint(),command:d.map((t=>(t=>/[^\w./-]/.test(t)?`'${t.replaceAll("'","'\\''")}'`:t)((0,n.stripVTControlCharacters)(t)))).join(" "),state:{stdout:"",stderr:"",output:""}});var d;const f=(({stdin:t,stdout:e,stderr:s,stdio:r=[t,e,s],env:n,preferLocal:c,cwd:u=".",...p})=>{const h=u instanceof URL?(0,a.fileURLToPath)(u):o.resolve(u),d=n?{...i.env,...n}:void 0,f=r[0]?.string;return{...p,input:f,stdio:void 0===f?r:["pipe",...r.slice(1)],env:c?l(d??i.env,h):d,cwd:h}})(u),g=T(t,c,f,h);let m=(async(t,{input:e},s)=>{const r=await t;void 0!==e&&r.stdin.end(e);const i=(0,p.once)(r,"close");try{return await Promise.race([i,...r.stdio.filter(Boolean).map((t=>(async t=>{for await(const[e]of(0,p.on)(t,"error"))if(!["ERR_STREAM_PREMATURE_CLOSE","EPIPE"].includes(e?.code))throw e})(t)))]),(({command:t},{exitCode:e,signalName:s})=>{if(void 0!==s)throw new w(`Command was terminated with ${s}: ${t}`);if(void 0!==e)throw new w(`Command failed with exit code ${e}: ${t}`)})(s,C(r)),S(s)}catch(t){throw await Promise.allSettled([i]),R(t,r,s)}})(g,f,h);Object.assign(m,{nodeChildProcess:g}),m=r?(async t=>{const[[e,s]]=await Promise.all([Promise.allSettled(t),x(t)]);if(s.reason)throw s.reason.pipedFrom=e.reason??e.value,s.reason;if(e.reason)throw e.reason;return{...s.value,pipedFrom:e.value}})([r,m]):m;const y=$(m,h,"stdout"),E=$(m,h,"stderr");return Object.assign(m,{nodeChildProcess:g,stdout:y,stderr:E,[Symbol.asyncIterator]:()=>async function*(...t){try{let e=[];for(;t.length>0;){e=t.map(((t,s)=>e[s]??I(t)));const[{value:s,done:r},i]=await Promise.race(e.map(((t,e)=>Promise.all([t,e])))),[n]=t.splice(i,1);e.splice(i,1),r||(t.push(n),yield s)}}finally{await Promise.all(t.map((t=>t.return())))}}(y,E),pipe:(t,e,s)=>H(t,e,s,m)})}const B=r("lint-staged:execGit"),F=["-c","submodule.recurse=false"],D=async(t,e)=>{B("Running git command",t);try{return(await H("git",[...F,...t],{...e,cwd:e?.cwd??process.cwd(),stdin:"ignore"})).stdout}catch(t){if(t instanceof w)throw new Error(t.output,{cause:t});throw t}};var M=s(8127);const N=s(6296);var U=s(2018),j=s.t(U,2);const{env:G={},argv:K=[],platform:W=""}="undefined"==typeof process?{}:process,Y="NO_COLOR"in G||K.includes("--no-color"),z="FORCE_COLOR"in G||K.includes("--color"),q="win32"===W,Q="dumb"===G.TERM,V=j&&U.isatty&&U.isatty(1)&&G.TERM&&!Q,X=!Y&&(z||q&&!Q||V||"CI"in G&&("GITHUB_ACTIONS"in G||"GITLAB_CI"in G||"CIRCLECI"in G)),Z=(t,e,s,r,i=e.substring(0,t)+r,n=e.substring(t+s.length),o=n.indexOf(s))=>i+(o<0?n:Z(o,n,s,r)),J=(t,e,s)=>((t,e,s=t,r=t.length+1)=>i=>i||""!==i&&void 0!==i?((t,e,s,r,i)=>t<0?s+e+r:s+Z(t,e,r,i)+r)((""+i).indexOf(e,r),i,t,e,s):"")(`\x1b[${t}m`,`\x1b[${e}m`,s),tt={reset:J(0,0),bold:J(1,22,"\x1b[22m\x1b[1m"),dim:J(2,22,"\x1b[22m\x1b[2m"),italic:J(3,23),underline:J(4,24),inverse:J(7,27),hidden:J(8,28),strikethrough:J(9,29),black:J(30,39),red:J(31,39),green:J(32,39),yellow:J(33,39),blue:J(34,39),magenta:J(35,39),cyan:J(36,39),white:J(37,39),gray:J(90,39),bgBlack:J(40,49),bgRed:J(41,49),bgGreen:J(42,49),bgYellow:J(43,49),bgBlue:J(44,49),bgMagenta:J(45,49),bgCyan:J(46,49),bgWhite:J(47,49),blackBright:J(90,39),redBright:J(91,39),greenBright:J(92,39),yellowBright:J(93,39),blueBright:J(94,39),magentaBright:J(95,39),cyanBright:J(96,39),whiteBright:J(97,39),bgBlackBright:J(100,49),bgRedBright:J(101,49),bgGreenBright:J(102,49),bgYellowBright:J(103,49),bgBlueBright:J(104,49),bgMagentaBright:J(105,49),bgCyanBright:J(106,49),bgWhiteBright:J(107,49)},et=({useColor:t=X}={})=>t?tt:Object.keys(tt).reduce(((t,e)=>({...t,[e]:String})),{}),{reset:st,bold:rt,dim:it,italic:nt,underline:ot,inverse:at,hidden:lt,strikethrough:ct,black:ut,red:pt,green:ht,yellow:dt,blue:ft,magenta:gt,cyan:mt,white:yt,gray:Et,bgBlack:bt,bgRed:Rt,bgGreen:At,bgYellow:wt,bgBlue:Ct,bgMagenta:St,bgCyan:vt,bgWhite:Tt,blackBright:Ot,redBright:_t,greenBright:kt,yellowBright:xt,blueBright:Lt,magentaBright:Pt,cyanBright:$t,whiteBright:It,bgBlackBright:Ht,bgRedBright:Bt,bgGreenBright:Ft,bgYellowBright:Dt,bgBlueBright:Mt,bgMagentaBright:Nt,bgCyanBright:Ut,bgWhiteBright:jt}=et();var Gt=s(9023),Kt=s(857),Wt=s(3193),Yt=s(2203),zt=s(9018),qt=s(6982),Qt=Object.defineProperty,Vt=(t,e)=>Qt(t,"name",{value:e,configurable:!0}),Xt="\x1b[?25l",Zt="\x1b[?25h",Jt=(t=>(t.WAITING="WAITING",t.STARTED="STARTED",t.COMPLETED="COMPLETED",t.FAILED="FAILED",t.SKIPPED="SKIPPED",t.ROLLING_BACK="ROLLING_BACK",t.ROLLED_BACK="ROLLED_BACK",t.RETRY="RETRY",t.PAUSED="PAUSED",t.PROMPT="PROMPT",t.PROMPT_COMPLETED="PROMPT_COMPLETED",t.PROMPT_FAILED="PROMPT_FAILED",t))(Jt||{}),te=class{static{Vt(this,"EventManager")}emitter=new N;emit(t,e){this.emitter.emit(t,e)}on(t,e){this.emitter.addListener(t,e)}once(t,e){this.emitter.once(t,e)}off(t,e){this.emitter.off(t,e)}complete(){this.emitter.removeAllListeners()}};function ee(t){return!!t&&"object"==typeof t&&"function"==typeof t.subscribe}function se(t){return!!t&&"object"==typeof t&&!0===t.readable&&"function"==typeof t.read&&"function"==typeof t.on}function re(){return!!process.env.LISTR_FORCE_UNICODE||"win32"!==process.platform||!!process.env.CI||!!process.env.WT_SESSION||"vscode"===process.env.TERM_PROGRAM||"xterm-256color"===process.env.TERM||"alacritty"===process.env.TERM}(class{static{Vt(this,"BaseEventMap")}}),Vt(ee,"isObservable"),Vt(se,"isReadable"),Vt(re,"isUnicodeSupported");var ie=/\u0007/;function ne(t){return String(t).replace(new RegExp("(?:\\u001b|\\u009b)\\[[\\=><~/#&.:=?%@~_-]*[0-9]*[\\a-ln-tqyz=><~/#&.:=?%@~_-]+","gmi"),"").replace(new RegExp(ie,"gmi"),"").trim()}Vt(ne,"cleanseAnsi");var oe=et();function ae(t,e){return t.replace(/^(?!\s*$)/gm," ".repeat(e))}Vt(ae,"indent");var le={warning:"\u26a0",cross:"\u2716",arrowDown:"\u2193",tick:"\u2714",arrowRight:"\u2192",pointer:"\u276f",checkboxOn:"\u2612",arrowLeft:"\u2190",squareSmallFilled:"\u25fc",pointerSmall:"\u203a"},ce={...le,warning:"\u203c",cross:"\xd7",tick:"\u221a",pointer:">",checkboxOn:"[\xd7]",squareSmallFilled:"\u25a0"},ue=re()?le:ce;function pe(t,...e){return(0,Gt.format)(String(t),...e)}Vt(pe,"splat");var he={STARTED:ue.pointer,FAILED:ue.cross,SKIPPED:ue.arrowDown,COMPLETED:ue.tick,OUTPUT:ue.pointerSmall,TITLE:ue.arrowRight,RETRY:ue.warning,ROLLBACK:ue.arrowLeft,PAUSED:ue.squareSmallFilled},de={STARTED:oe.yellow,FAILED:oe.red,SKIPPED:oe.yellow,COMPLETED:oe.green,RETRY:oe.yellowBright,ROLLBACK:oe.redBright,PAUSED:oe.yellowBright},fe=["RETRY","ROLLBACK","FAILED"],ge=class{constructor(t){this.options=t,this.options={useIcons:!0,toStderr:[],...t??{}},this.options.fields??={},this.options.fields.prefix??=[],this.options.fields.suffix??=[],this.process=this.options.processOutput??new Ee}static{Vt(this,"ListrLogger")}process;log(t,e,s){const r=this.format(t,e,s);this.options.toStderr.includes(t)?this.process.toStderr(r):this.process.toStdout(r)}toStdout(t,e,s=!0){this.process.toStdout(this.format(null,t,e),s)}toStderr(t,e,s=!0){this.process.toStderr(this.format(null,t,e),s)}wrap(t,e){return t?this.applyFormat(`[${t}]`,e):t}splat(...t){const e=t.shift()??"";return 0===t.length?e:pe(e,t)}suffix(t,...e){return e.filter(Boolean).forEach((e=>{if(t+=this.spacing(t),"string"==typeof e)t+=this.wrap(e);else if("object"==typeof e){if(e.args??=[],"function"==typeof e.condition?!e.condition(...e.args):!(e.condition??1))return t;t+=this.wrap("function"==typeof e.field?e.field(...e.args):e.field,{format:e?.format(...e.args)})}})),t}prefix(t,...e){return e.filter(Boolean).forEach((e=>{if(t=this.spacing(t)+t,"string"==typeof e)t=this.wrap(e)+t;else if("object"==typeof e){if(e.args??=[],"function"==typeof e.condition?!e.condition(...e.args):!(e.condition??1))return t;t=this.wrap("function"==typeof e.field?e.field(...e.args):e.field,{format:e?.format()})+t}})),t}fields(t,e){return this.options?.fields?.prefix&&(t=this.prefix(t,...this.options.fields.prefix)),e?.prefix&&(t=this.prefix(t,...e.prefix)),e?.suffix&&(t=this.suffix(t,...e.suffix)),this.options?.fields?.suffix&&(t=this.suffix(t,...this.options.fields.suffix)),t}icon(t,e){if(!t)return null;if(!e){const s=this.options.icon?.[t];e="function"==typeof s?s():s}const s=this.options.color?.[t];return e&&s&&(e=s(e)),e}format(t,e,s){return Array.isArray(e)||(e=[e]),this.splat(e.shift(),...e).toString().split(Kt.EOL).filter((t=>!t||""!==t.trim())).map((e=>this.style(t,this.fields(e,{prefix:Array.isArray(s?.prefix)?s.prefix:[s?.prefix],suffix:Array.isArray(s?.suffix)?s.suffix:[s?.suffix]})))).join(Kt.EOL)}style(t,e){if(!t||!e)return e;const s=this.icon(t,!this.options.useIcons&&this.wrap(t));return s&&(e=s+" "+e),e}applyFormat(t,e){return e?.format?e.format(t):t}spacing(t){return void 0===t||""===t.trim()?"":" "}},me=class{constructor(t){this.options=t}static{Vt(this,"ProcessOutputBuffer")}buffer=[];decoder=new Wt.StringDecoder;get all(){return this.buffer}get last(){return this.buffer.at(-1)}get length(){return this.buffer.length}write(t,...e){const s=e[e.length-1];return this.buffer.push({time:Date.now(),stream:this.options?.stream,entry:this.decoder.write("string"==typeof t?Buffer.from(t,"string"==typeof e[0]?e[0]:void 0):Buffer.from(t))}),this.options?.limit&&(this.buffer=this.buffer.slice(-this.options.limit)),"function"==typeof s&&s(),!0}reset(){this.buffer=[]}},ye=class{constructor(t){this.stream=t,this.method=t.write,this.buffer=new me({stream:t})}static{Vt(this,"ProcessOutputStream")}method;buffer;get out(){return Object.assign({},this.stream,{write:this.write.bind(this)})}hijack(){this.stream.write=this.buffer.write.bind(this.buffer)}release(){this.stream.write=this.method;const t=[...this.buffer.all];return this.buffer.reset(),t}write(...t){return this.method.apply(this.stream,t)}},Ee=class{constructor(t,e,s){this.options=s,this.stream={stdout:new ye(t??process.stdout),stderr:new ye(e??process.stderr)},this.options={dump:["stdout","stderr"],leaveEmptyLine:!0,...s}}static{Vt(this,"ProcessOutput")}stream;active;get stdout(){return this.stream.stdout.out}get stderr(){return this.stream.stderr.out}hijack(){if(this.active)throw new Error("ProcessOutput has been already hijacked!");this.stream.stdout.write(Xt),Object.values(this.stream).forEach((t=>t.hijack())),this.active=!0}release(){const t=Object.entries(this.stream).map((([t,e])=>({name:t,buffer:e.release()}))).filter((t=>this.options.dump.includes(t.name))).flatMap((t=>t.buffer)).sort(((t,e)=>t.time-e.time)).map((t=>({...t,entry:ne(t.entry)}))).filter((t=>t.entry));t.length>0&&(this.options.leaveEmptyLine&&this.stdout.write(Kt.EOL),t.forEach((t=>{(t.stream??this.stdout).write(t.entry+Kt.EOL)}))),this.stream.stdout.write(Zt),this.active=!1}toStdout(t,e=!0){return e&&(t+=Kt.EOL),this.stream.stdout.write(t)}toStderr(t,e=!0){return e&&(t+=Kt.EOL),this.stream.stderr.write(t)}};function be(t){const e=new Yt.Writable;return e.rows=1/0,e.columns=1/0,e.write=e=>(t(e.toString()),!0),e}Vt(be,"createWritable"),class{constructor(t,e){this.task=t,this.wrapper=e}static{Vt(this,"ListrPromptAdapter")}state;reportStarted(){if(this.state=this.task.state,this.task.prompt)throw new Ue("There is already an active prompt attached to this task which may not be cleaned up properly.");this.task.prompt=this,this.task.state$="PROMPT"}reportFailed(){this.task.state$="PROMPT_FAILED",this.restoreState()}reportCompleted(){this.task.state$="PROMPT_COMPLETED",this.restoreState()}restoreState(){this.task.prompt=void 0,this.state&&(this.task.state=this.state)}};var Re=class{static{Vt(this,"Spinner")}spinner=re()?["\u280b","\u2819","\u2839","\u2838","\u283c","\u2834","\u2826","\u2827","\u2807","\u280f"]:["-","\\","|","/"];id;spinnerPosition=0;spin(){this.spinnerPosition=++this.spinnerPosition%this.spinner.length}fetch(){return this.spinner[this.spinnerPosition]}isRunning(){return!!this.id}start(t,e=100){this.id=setInterval((()=>{this.spin(),t&&t()}),e)}stop(){clearInterval(this.id)}},Ae={SKIPPED_WITH_COLLAPSE:ue.arrowDown,SKIPPED_WITHOUT_COLLAPSE:ue.warning,OUTPUT:ue.pointerSmall,OUTPUT_WITH_BOTTOMBAR:ue.pointerSmall,PENDING:ue.pointer,COMPLETED:ue.tick,COMPLETED_WITH_FAILED_SUBTASKS:ue.warning,COMPLETED_WITH_SISTER_TASKS_FAILED:ue.squareSmallFilled,RETRY:ue.warning,ROLLING_BACK:ue.warning,ROLLED_BACK:ue.arrowLeft,FAILED:ue.cross,FAILED_WITH_SUBTASKS:ue.pointer,WAITING:ue.squareSmallFilled,PAUSED:ue.squareSmallFilled},we={SKIPPED_WITH_COLLAPSE:oe.yellow,SKIPPED_WITHOUT_COLLAPSE:oe.yellow,PENDING:oe.yellow,COMPLETED:oe.green,COMPLETED_WITH_FAILED_SUBTASKS:oe.yellow,COMPLETED_WITH_SISTER_TASKS_FAILED:oe.red,RETRY:oe.yellowBright,ROLLING_BACK:oe.redBright,ROLLED_BACK:oe.redBright,FAILED:oe.red,FAILED_WITH_SUBTASKS:oe.red,WAITING:oe.dim,PAUSED:oe.yellowBright};function Ce(t){const e=Math.floor(t/1e3),s=Math.floor(e/60);let r;return 0===e&&0===s&&(r=`0.${Math.floor(t/100)}s`),e>0&&(r=e%60+"s"),s>0&&(r=`${s}m${r}`),r}Vt(Ce,"parseTimer");var Se={condition:!0,field:Ce,format:Vt((()=>oe.dim),"format")};Vt((function(){const t=new Date;return String(t.getHours()).padStart(2,"0")+":"+String(t.getMinutes()).padStart(2,"0")+":"+String(t.getSeconds()).padStart(2,"0")}),"parseTimestamp");var ve=class t{constructor(e,s,r){this.tasks=e,this.options=s,this.events=r,this.options={...t.rendererOptions,...this.options,icon:{...Ae,...s?.icon??{}},color:{...we,...s?.color??{}}},this.spinner=this.options.spinner??new Re,this.logger=this.options.logger??new ge({useIcons:!0,toStderr:[]}),this.logger.options.icon=this.options.icon,this.logger.options.color=this.options.color}static{Vt(this,"DefaultRenderer")}static nonTTY=!1;static rendererOptions={indentation:2,clearOutput:!1,showSubtasks:!0,collapseSubtasks:!0,collapseSkips:!0,showSkipMessage:!0,suffixSkips:!1,collapseErrors:!0,showErrorMessage:!0,suffixRetries:!0,lazy:!1,removeEmptyLines:!0,formatOutput:"wrap",pausedTimer:{...Se,format:Vt((()=>oe.yellowBright),"format")}};static rendererTaskOptions={outputBar:!0};prompt;activePrompt;spinner;logger;updater;truncate;wrap;buffer={output:new Map,bottom:new Map};cache={render:new Map,rendererOptions:new Map,rendererTaskOptions:new Map};async render(){const{createLogUpdate:t}=await Promise.all([s.e(799),s.e(782),s.e(216)]).then(s.bind(s,2216)),{default:e}=await Promise.all([s.e(799),s.e(145)]).then(s.bind(s,5145)),{default:r}=await Promise.all([s.e(799),s.e(782)]).then(s.bind(s,782));this.updater=t(this.logger.process.stdout),this.truncate=e,this.wrap=r,this.logger.process.hijack(),this.options?.lazy||this.spinner.start((()=>{this.update()})),this.events.on("SHOUD_REFRESH_RENDER",(()=>{this.update()}))}update(){this.updater(this.create())}end(){this.spinner.stop(),this.updater.clear(),this.updater.done(),this.options.clearOutput||this.logger.process.toStdout(this.create({prompt:!1})),this.logger.process.release()}create(t){t={tasks:!0,bottomBar:!0,prompt:!0,...t};const e=[],s=this.renderer(this.tasks),r=this.renderBottomBar(),i=this.renderPrompt();return t.tasks&&s.length>0&&e.push(...s),t.bottomBar&&r.length>0&&(e.length>0&&e.push(""),e.push(...r)),t.prompt&&i.length>0&&(e.length>0&&e.push(""),e.push(...i)),e.join(Kt.EOL)}style(t,e=!1){const s=this.cache.rendererOptions.get(t.id);if(t.isSkipped()){if(e||s.collapseSkips)return this.logger.icon("SKIPPED_WITH_COLLAPSE");if(!1===s.collapseSkips)return this.logger.icon("SKIPPED_WITHOUT_COLLAPSE")}if(e)return this.shouldOutputToBottomBar(t)?this.logger.icon("OUTPUT_WITH_BOTTOMBAR"):this.logger.icon("OUTPUT");if(t.hasSubtasks()){if(t.isStarted()||t.isPrompt()&&!1!==s.showSubtasks&&!t.subtasks.every((t=>!t.hasTitle())))return this.logger.icon("PENDING");if(t.isCompleted()&&t.subtasks.some((t=>t.hasFailed())))return this.logger.icon("COMPLETED_WITH_FAILED_SUBTASKS");if(t.hasFailed())return this.logger.icon("FAILED_WITH_SUBTASKS")}return t.isStarted()||t.isPrompt()?this.logger.icon("PENDING",!this.options?.lazy&&this.spinner.fetch()):t.isCompleted()?this.logger.icon("COMPLETED"):t.isRetrying()?this.logger.icon("RETRY",!this.options?.lazy&&this.spinner.fetch()):t.isRollingBack()?this.logger.icon("ROLLING_BACK",!this.options?.lazy&&this.spinner.fetch()):t.hasRolledBack()?this.logger.icon("ROLLED_BACK"):t.hasFailed()?this.logger.icon("FAILED"):t.isPaused()?this.logger.icon("PAUSED"):this.logger.icon("WAITING")}format(t,e,s){if(""===t.trim())return[];let r;e&&(t=e+" "+t);const i=(process.stdout.columns??80)-s*this.options.indentation-2;switch(this.options.formatOutput){case"truncate":r=t.split(Kt.EOL).map(((t,e)=>this.truncate(this.indent(t,e),i)));break;case"wrap":r=this.wrap(t,i,{hard:!0,trim:!1}).split(Kt.EOL).map(((t,e)=>this.indent(t,e)));break;default:throw new Ne("Format option for the renderer is wrong.")}return this.options.removeEmptyLines&&(r=r.filter(Boolean)),r.map((t=>ae(t,s*this.options.indentation)))}shouldOutputToOutputBar(t){const e=this.cache.rendererTaskOptions.get(t.id).outputBar;return"number"==typeof e&&0!==e||"boolean"==typeof e&&!1!==e}shouldOutputToBottomBar(t){const e=this.cache.rendererTaskOptions.get(t.id).bottomBar;return"number"==typeof e&&0!==e||"boolean"==typeof e&&!1!==e||!t.hasTitle()}renderer(t,e=0){return t.flatMap((s=>{if(!s.isEnabled())return[];if(this.cache.render.has(s.id))return this.cache.render.get(s.id);this.calculate(s),this.setupBuffer(s);const r=this.cache.rendererOptions.get(s.id),i=this.cache.rendererTaskOptions.get(s.id),n=[];if(s.isPrompt()){if(this.activePrompt&&this.activePrompt!==s.id)throw new Ne("Only one prompt can be active at the given time, please re-evaluate your task design.");this.activePrompt||(s.on("PROMPT",(t=>{const e=ne(t);e&&(this.prompt=e)})),s.on("STATE",(t=>{("PROMPT_COMPLETED"===t||s.hasFinalized()||s.hasReset())&&(this.prompt=null,this.activePrompt=null,s.off("PROMPT"))})),this.activePrompt=s.id)}if(s.hasTitle()&&(!t.some((t=>t.hasFailed()))||s.hasFailed()||!1===s.options.exitOnError||s.isCompleted()||s.isSkipped()?s.hasFailed()&&r.collapseErrors?n.push(...this.format(!s.hasSubtasks()&&s.message.error&&r.showErrorMessage?s.message.error:s.title,this.style(s),e)):s.isSkipped()&&r.collapseSkips?n.push(...this.format(this.logger.suffix(s.message.skip&&r.showSkipMessage?s.message.skip:s.title,{field:"SKIPPED",condition:r.suffixSkips,format:Vt((()=>oe.dim),"format")}),this.style(s),e)):s.isRetrying()?n.push(...this.format(this.logger.suffix(s.title,{field:`RETRY:${s.message.retry.count}`,format:Vt((()=>oe.yellow),"format"),condition:r.suffixRetries}),this.style(s),e)):s.isCompleted()&&s.hasTitle()&&Ie(i.timer?.condition,s.message.duration)?n.push(...this.format(this.logger.suffix(s?.title,{...i.timer,args:[s.message.duration]}),this.style(s),e)):s.isPaused()?n.push(...this.format(this.logger.suffix(s.title,{...r.pausedTimer,args:[s.message.paused-Date.now()]}),this.style(s),e)):n.push(...this.format(s.title,this.style(s),e)):n.push(...this.format(s.title,this.logger.icon("COMPLETED_WITH_SISTER_TASKS_FAILED"),e))),s.hasSubtasks()&&r.showSubtasks||(!s.hasFailed()||!1!==r.collapseErrors||!r.showErrorMessage&&r.showSubtasks?!s.isSkipped()||!1!==r.collapseSkips||!r.showSkipMessage&&r.showSubtasks||n.push(...this.dump(s,e,"SKIPPED")):n.push(...this.dump(s,e,"FAILED"))),(s.isPending()||i.persistentOutput)&&n.push(...this.renderOutputBar(s,e)),!1!==r.showSubtasks&&s.hasSubtasks()&&(s.isPending()||s.hasFinalized()&&!s.hasTitle()||s.isCompleted()&&!1===r.collapseSubtasks&&!s.subtasks.some((t=>!0===this.cache.rendererOptions.get(t.id)?.collapseSubtasks))||s.subtasks.some((t=>!1===this.cache.rendererOptions.get(t.id)?.collapseSubtasks))||s.subtasks.some((t=>t.hasFailed()))||s.subtasks.some((t=>t.hasRolledBack())))){const t=s.hasTitle()?e+1:e,r=this.renderer(s.subtasks,t);n.push(...r)}return s.hasFinalized()&&(i.persistentOutput||(this.buffer.bottom.delete(s.id),this.buffer.output.delete(s.id))),s.isClosed()&&(this.cache.render.set(s.id,n),this.reset(s)),n}))}renderOutputBar(t,e){const s=this.buffer.output.get(t.id);return s?s.all.flatMap((s=>this.dump(t,e,"OUTPUT",s.entry))):[]}renderBottomBar(){return 0===this.buffer.bottom.size?[]:Array.from(this.buffer.bottom.values()).flatMap((t=>t.all)).sort(((t,e)=>t.time-e.time)).map((t=>t.entry))}renderPrompt(){return this.prompt?[this.prompt]:[]}calculate(e){if(this.cache.rendererOptions.has(e.id)&&this.cache.rendererTaskOptions.has(e.id))return;const s={...this.options,...e.rendererOptions};this.cache.rendererOptions.set(e.id,s),this.cache.rendererTaskOptions.set(e.id,{...t.rendererTaskOptions,timer:s.timer,...e.rendererTaskOptions})}setupBuffer(t){if(this.buffer.bottom.has(t.id)||this.buffer.output.has(t.id))return;const e=this.cache.rendererTaskOptions.get(t.id);this.shouldOutputToBottomBar(t)&&!this.buffer.bottom.has(t.id)?(this.buffer.bottom.set(t.id,new me({limit:"number"==typeof e.bottomBar?e.bottomBar:1})),t.on("OUTPUT",(e=>{const s=this.dump(t,-1,"OUTPUT",e);this.buffer.bottom.get(t.id).write(s.join(Kt.EOL))})),t.on("STATE",(e=>{"RETRY"===e&&this.buffer.bottom.delete(t.id)}))):this.shouldOutputToOutputBar(t)&&!this.buffer.output.has(t.id)&&(this.buffer.output.set(t.id,new me({limit:"number"==typeof e.outputBar?e.outputBar:1})),t.on("OUTPUT",(e=>{this.buffer.output.get(t.id).write(e)})),t.on("STATE",(e=>{"RETRY"===e&&this.buffer.output.delete(t.id)})))}reset(t){this.cache.rendererOptions.delete(t.id),this.cache.rendererTaskOptions.delete(t.id),this.buffer.output.delete(t.id)}dump(t,e,s="OUTPUT",r){if(!r)switch(s){case"OUTPUT":r=t.output;break;case"SKIPPED":r=t.message.skip;break;case"FAILED":r=t.message.error}return t.hasTitle()&&"FAILED"===s&&r===t.title||"string"!=typeof r?[]:("OUTPUT"===s&&(r=ne(r)),this.format(r,this.style(t,!0),e+1))}indent(t,e){return e>0?ae(t.trimEnd(),this.options.indentation):t.trimEnd()}},Te=class{constructor(t,e){this.tasks=t,this.options=e}static{Vt(this,"SilentRenderer")}static nonTTY=!0;static rendererOptions;static rendererTaskOptions;render(){}end(){}},Oe=class t{constructor(e,s){this.tasks=e,this.options=s,this.options={...t.rendererOptions,...s,icon:{...he,...s?.icon??{}},color:{...de,...s?.color??{}}},this.logger=this.options.logger??new ge({useIcons:!0,toStderr:fe}),this.logger.options.icon=this.options.icon,this.logger.options.color=this.options.color,this.options.timestamp&&this.logger.options.fields.prefix.unshift(this.options.timestamp)}static{Vt(this,"SimpleRenderer")}static nonTTY=!0;static rendererOptions={pausedTimer:{...Se,field:Vt((t=>`PAUSED:${t}`),"field"),format:Vt((()=>oe.yellowBright),"format")}};static rendererTaskOptions={};logger;cache={rendererOptions:new Map,rendererTaskOptions:new Map};end(){}render(){this.renderer(this.tasks)}renderer(t){t.forEach((t=>{this.calculate(t),t.once("CLOSED",(()=>{this.reset(t)}));const e=this.cache.rendererOptions.get(t.id),s=this.cache.rendererTaskOptions.get(t.id);t.on("SUBTASK",(t=>{this.renderer(t)})),t.on("STATE",(e=>{if(t.hasTitle())if("STARTED"===e)this.logger.log("STARTED",t.title);else if("COMPLETED"===e){const e=s?.timer;this.logger.log("COMPLETED",t.title,e&&{suffix:{...e,condition:!!t.message?.duration&&e.condition,args:[t.message.duration]}})}else"PROMPT"===e?(this.logger.process.hijack(),t.on("PROMPT",(t=>{this.logger.process.toStderr(t,!1)}))):"PROMPT_COMPLETED"===e&&(t.off("PROMPT"),this.logger.process.release())})),t.on("OUTPUT",(t=>{this.logger.log("OUTPUT",t)})),t.on("MESSAGE",(s=>{if(s.error)this.logger.log("FAILED",t.title,{suffix:{field:`FAILED: ${s.error}`,format:Vt((()=>oe.red),"format")}});else if(s.skip)this.logger.log("SKIPPED",t.title,{suffix:{field:`SKIPPED: ${s.skip}`,format:Vt((()=>oe.yellow),"format")}});else if(s.rollback)this.logger.log("ROLLBACK",t.title,{suffix:{field:`ROLLBACK: ${s.rollback}`,format:Vt((()=>oe.red),"format")}});else if(s.retry)this.logger.log("RETRY",t.title,{suffix:{field:`RETRY:${s.retry.count}`,format:Vt((()=>oe.red),"format")}});else if(s.paused){const r=e?.pausedTimer;this.logger.log("PAUSED",t.title,r&&{suffix:{...r,condition:!!s?.paused&&r.condition,args:[s.paused-Date.now()]}})}}))}))}calculate(e){if(this.cache.rendererOptions.has(e.id)&&this.cache.rendererTaskOptions.has(e.id))return;const s={...this.options,...e.rendererOptions};this.cache.rendererOptions.set(e.id,s),this.cache.rendererTaskOptions.set(e.id,{...t.rendererTaskOptions,timer:s.timer,...e.rendererTaskOptions})}reset(t){this.cache.rendererOptions.delete(t.id),this.cache.rendererTaskOptions.delete(t.id)}},_e=class{constructor(t){this.options=t}static{Vt(this,"TestRendererSerializer")}serialize(t,e,s){return JSON.stringify(this.generate(t,e,s))}generate(t,e,s){const r={event:t,data:e};if("boolean"!=typeof this.options?.task){const t=Object.fromEntries(this.options.task.map((t=>{const e=s[t];return"function"==typeof e?[t,e.call(s)]:[t,e]})));Object.keys(s).length>0&&(r.task=t)}return r}},ke=class t{constructor(e,s){this.tasks=e,this.options=s,this.options={...t.rendererOptions,...this.options},this.logger=this.options.logger??new ge({useIcons:!1}),this.serializer=new _e(this.options)}static{Vt(this,"TestRenderer")}static nonTTY=!0;static rendererOptions={subtasks:!0,state:Object.values(Jt),output:!0,prompt:!0,title:!0,messages:["skip","error","retry","rollback","paused"],messagesToStderr:["error","rollback","retry"],task:["hasRolledBack","isRollingBack","isCompleted","isSkipped","hasFinalized","hasSubtasks","title","hasReset","hasTitle","isPrompt","isPaused","isPending","isSkipped","isStarted","hasFailed","isEnabled","isRetrying","path"]};static rendererTaskOptions;logger;serializer;render(){this.renderer(this.tasks)}end(){}renderer(t){t.forEach((t=>{this.options.subtasks&&t.on("SUBTASK",(t=>{this.renderer(t)})),this.options.state&&t.on("STATE",(e=>{this.logger.toStdout(this.serializer.serialize("STATE",e,t))})),this.options.output&&t.on("OUTPUT",(e=>{this.logger.toStdout(this.serializer.serialize("OUTPUT",e,t))})),this.options.prompt&&t.on("PROMPT",(e=>{this.logger.toStdout(this.serializer.serialize("PROMPT",e,t))})),this.options.title&&t.on("TITLE",(e=>{this.logger.toStdout(this.serializer.serialize("TITLE",e,t))})),t.on("MESSAGE",(e=>{const s=Object.fromEntries(Object.entries(e).map((([t,e])=>{if(this.options.messages.includes(t))return[t,e]})).filter(Boolean));if(Object.keys(s).length>0){const e=this.serializer.serialize("MESSAGE",s,t);this.options.messagesToStderr.some((t=>Object.keys(s).includes(t)))?this.logger.toStderr(e):this.logger.toStdout(e)}}))}))}},xe={default:ve,simple:Oe,verbose:class t{constructor(e,s){this.tasks=e,this.options=s,this.options={...t.rendererOptions,...this.options,icon:{...he,...s?.icon??{}},color:{...de,...s?.color??{}}},this.logger=this.options.logger??new ge({useIcons:!1,toStderr:fe}),this.logger.options.icon=this.options.icon,this.logger.options.color=this.options.color,this.options.timestamp&&this.logger.options.fields.prefix.unshift(this.options.timestamp)}static{Vt(this,"VerboseRenderer")}static nonTTY=!0;static rendererOptions={logTitleChange:!1,pausedTimer:{...Se,format:Vt((()=>oe.yellowBright),"format")}};static rendererTaskOptions;logger;cache={rendererOptions:new Map,rendererTaskOptions:new Map};render(){this.renderer(this.tasks)}end(){}renderer(t){t.forEach((t=>{this.calculate(t),t.once("CLOSED",(()=>{this.reset(t)}));const e=this.cache.rendererOptions.get(t.id),s=this.cache.rendererTaskOptions.get(t.id);t.on("SUBTASK",(t=>{this.renderer(t)})),t.on("STATE",(e=>{if(t.hasTitle())if("STARTED"===e)this.logger.log("STARTED",t.title);else if("COMPLETED"===e){const e=s.timer;this.logger.log("COMPLETED",t.title,e&&{suffix:{...e,condition:!!t.message?.duration&&e.condition,args:[t.message.duration]}})}})),t.on("OUTPUT",(t=>{this.logger.log("OUTPUT",t)})),t.on("PROMPT",(t=>{const e=ne(t);e&&this.logger.log("PROMPT",e)})),!1!==this.options?.logTitleChange&&t.on("TITLE",(t=>{this.logger.log("TITLE",t)})),t.on("MESSAGE",(s=>{if(s?.error)this.logger.log("FAILED",s.error);else if(s?.skip)this.logger.log("SKIPPED",s.skip);else if(s?.rollback)this.logger.log("ROLLBACK",s.rollback);else if(s?.retry)this.logger.log("RETRY",t.title,{suffix:s.retry.count.toString()});else if(s?.paused){const r=e?.pausedTimer;this.logger.log("PAUSED",t.title,r&&{suffix:{...r,condition:!!s?.paused&&r.condition,args:[s.paused-Date.now()]}})}}))}))}calculate(e){if(this.cache.rendererOptions.has(e.id)&&this.cache.rendererTaskOptions.has(e.id))return;const s={...this.options,...e.rendererOptions};this.cache.rendererOptions.set(e.id,s),this.cache.rendererTaskOptions.set(e.id,{...t.rendererTaskOptions,timer:s.timer,...e.rendererTaskOptions})}reset(t){this.cache.rendererOptions.delete(t.id),this.cache.rendererTaskOptions.delete(t.id)}},test:ke,silent:Te};function Le(t){return!0===process.stdout.isTTY||!0===t.nonTTY}function Pe(t){return"string"==typeof t?xe[t]??xe.default:"function"==typeof t?t:xe.default}function $e(t){if(Ie(t?.silentRendererCondition))return{renderer:Pe("silent"),selection:"SILENT"};const e={renderer:Pe(t.renderer),options:t.rendererOptions,selection:"PRIMARY"};return!Le(e.renderer)||Ie(t?.fallbackRendererCondition)?{renderer:Pe(t.fallbackRenderer),options:t.fallbackRendererOptions,selection:"SECONDARY"}:e}function Ie(t,...e){return"function"==typeof t?t(...e):t}Vt(Le,"isRendererSupported"),Vt(Pe,"getRendererClass"),Vt($e,"getRenderer"),Vt(Ie,"assertFunctionOrSelf");var He=zt({circles:!0});function Be(t){return He(t)}Vt(Be,"cloneObject");var Fe=class{static{Vt(this,"Concurrency")}concurrency;count;queue;constructor(t){this.concurrency=t.concurrency,this.count=0,this.queue=new Set}add(t){return this.count<this.concurrency?this.run(t):new Promise((e=>{const s=Vt((()=>e(this.run(t))),"callback");this.queue.add(s)}))}flush(){for(const t of this.queue){if(this.count>=this.concurrency)break;this.queue.delete(t),t()}}run(t){this.count++;const e=t(),s=Vt((()=>{this.count--,this.flush()}),"cleanup");return e.then(s,(()=>{this.queue.clear()})),e}};function De(t){return new Promise((e=>{setTimeout(e,t)}))}Vt(De,"delay");var Me=class extends Error{constructor(t,e,s){super(t.message),this.error=t,this.type=e,this.task=s,this.name="ListrError",this.path=s.path,"full"===s?.options.collectErrors&&(this.task=Be(s),this.ctx=Be(s.listr.ctx)),this.stack=t?.stack}static{Vt(this,"ListrError")}path;ctx},Ne=class extends Error{static{Vt(this,"ListrRendererError")}},Ue=class extends Error{static{Vt(this,"PromptError")}},je=class{constructor(t){this.task=t}static{Vt(this,"TaskWrapper")}get title(){return this.task.title}set title(t){t=Array.isArray(t)?t:[t],this.task.title$=pe(t.shift(),...t)}get output(){return this.task.output}set output(t){t=Array.isArray(t)?t:[t],this.task.output$=pe(t.shift(),...t)}set promptOutput(t){this.task.promptOutput$=t}newListr(t,e){let s;return s="function"==typeof t?t(this):t,new Ye(s,e,this.task)}report(t,e){!1!==this.task.options.collectErrors&&this.task.listr.errors.push(new Me(t,e,this.task)),this.task.message$={error:t.message??this.task?.title}}skip(t,...e){this.task.state$="SKIPPED",t&&(this.task.message$={skip:t?pe(t,...e):this.task?.title})}isRetrying(){return this.task.isRetrying()?this.task.retry:{count:0}}prompt(t){return this.task.prompt?this.task.prompt:new t(this.task,this)}stdout(t){return be((e=>{"PROMPT"===t?this.promptOutput=e:this.output=e}))}run(t){return this.task.run(t,this)}},Ge=class extends te{static{Vt(this,"ListrTaskEventManager")}},Ke=class extends Ge{constructor(t,e,s,r,i){if(super(),this.listr=t,this.task=e,this.options=s,this.rendererOptions=r,this.rendererTaskOptions=i,e.title){const t=Array.isArray(e?.title)?e.title:[e.title];this.title=pe(t.shift(),...t),this.initialTitle=this.title}this.taskFn=e.task,this.parent=t.parentTask}static{Vt(this,"Task")}id=(0,qt.randomUUID)();state="WAITING";subtasks;title;initialTitle;output;retry;message={};prompt;parent;enabled;taskFn;closed;set state$(t){if(this.state=t,this.emit("STATE",t),this.hasSubtasks()&&this.hasFailed())for(const t of this.subtasks)"STARTED"===t.state&&(t.state$="FAILED");this.listr.events.emit("SHOUD_REFRESH_RENDER")}set output$(t){this.output=t,this.emit("OUTPUT",t),this.listr.events.emit("SHOUD_REFRESH_RENDER")}set promptOutput$(t){this.emit("PROMPT",t),ne(t)&&this.listr.events.emit("SHOUD_REFRESH_RENDER")}set message$(t){this.message={...this.message,...t},this.emit("MESSAGE",t),this.listr.events.emit("SHOUD_REFRESH_RENDER")}set title$(t){this.title=t,this.emit("TITLE",t),this.listr.events.emit("SHOUD_REFRESH_RENDER")}get path(){return[...this.listr.path,this.initialTitle]}async check(t){return"WAITING"===this.state&&(this.enabled=await Ie(this.task?.enabled??!0,t),this.emit("ENABLED",this.enabled),this.listr.events.emit("SHOUD_REFRESH_RENDER")),this.enabled}hasSubtasks(){return this.subtasks?.length>0}hasFinalized(){return this.isCompleted()||this.hasFailed()||this.isSkipped()||this.hasRolledBack()}isPending(){return this.isStarted()||this.isPrompt()||this.hasReset()}isStarted(){return"STARTED"===this.state}isSkipped(){return"SKIPPED"===this.state}isCompleted(){return"COMPLETED"===this.state}hasFailed(){return"FAILED"===this.state}isRollingBack(){return"ROLLING_BACK"===this.state}hasRolledBack(){return"ROLLED_BACK"===this.state}isRetrying(){return"RETRY"===this.state}hasReset(){return"RETRY"===this.state||"ROLLING_BACK"===this.state}isEnabled(){return this.enabled}hasTitle(){return"string"==typeof this?.title}isPrompt(){return"PROMPT"===this.state||"PROMPT_COMPLETED"===this.state}isPaused(){return"PAUSED"===this.state}isClosed(){return this.closed}async pause(t){const e=this.state;this.state$="PAUSED",this.message$={paused:Date.now()+t},await De(t),this.state$=e,this.message$={paused:null}}async run(t,e){const s=Vt((e=>(e instanceof Ye?(e.options={...this.options,...e.options},e.rendererClass=Pe("silent"),this.subtasks=e.tasks,e.errors=this.listr.errors,this.emit("SUBTASK",this.subtasks),e=e.run(t)):e instanceof Promise?e=e.then(s):se(e)?e=new Promise(((t,s)=>{e.on("data",(t=>{this.output$=t.toString()})),e.on("error",(t=>s(t))),e.on("end",(()=>t(null)))})):ee(e)&&(e=new Promise(((t,s)=>{e.subscribe({next:Vt((t=>{this.output$=t}),"next"),error:s,complete:t})}))),e)),"handleResult"),r=Date.now();this.state$="STARTED";const i=await Ie(this.task?.skip??!1,t);if(i)return"string"==typeof i?this.message$={skip:i}:this.hasTitle()?this.message$={skip:this.title}:this.message$={skip:"Skipped task without a title."},void(this.state$="SKIPPED");try{const i="number"==typeof this.task?.retry&&this.task.retry>0?this.task.retry+1:"object"==typeof this.task?.retry&&this.task.retry.tries>0?this.task.retry.tries+1:1,n="object"==typeof this.task.retry&&this.task.retry.delay;for(let r=1;r<=i;r++)try{await s(this.taskFn(t,e));break}catch(t){if(r===i)throw t;this.retry={count:r,error:t},this.message$={retry:this.retry},this.title$=this.initialTitle,this.output=void 0,e.report(t,"WILL_RETRY"),this.state$="RETRY",n&&await this.pause(n)}(this.isStarted()||this.isRetrying())&&(this.message$={duration:Date.now()-r},this.state$="COMPLETED")}catch(s){if(this.prompt instanceof Ue&&(s=this.prompt),this.task?.rollback){e.report(s,"WILL_ROLLBACK");try{this.state$="ROLLING_BACK",await this.task.rollback(t,e),this.message$={rollback:this.title},this.state$="ROLLED_BACK"}catch(t){throw this.state$="FAILED",e.report(t,"HAS_FAILED_TO_ROLLBACK"),this.close(),t}if(!1!==this.listr.options?.exitAfterRollback)throw this.close(),s}else{if(this.state$="FAILED",!1!==this.listr.options.exitOnError&&!1!==await Ie(this.task?.exitOnError,t))throw e.report(s,"HAS_FAILED"),this.close(),s;this.hasSubtasks()||e.report(s,"HAS_FAILED_WITHOUT_ERROR")}}finally{this.close()}}close(){this.emit("CLOSED"),this.listr.events.emit("SHOUD_REFRESH_RENDER"),this.complete()}},We=class extends te{static{Vt(this,"ListrEventManager")}},Ye=class{constructor(t,e,s){this.task=t,this.options=e,this.parentTask=s,this.options={concurrent:!1,renderer:"default",fallbackRenderer:"simple",exitOnError:!0,exitAfterRollback:!0,collectErrors:!1,registerSignalListeners:!0,...this.parentTask?.options??{},...e},!0===this.options.concurrent?this.options.concurrent=1/0:"number"!=typeof this.options.concurrent&&(this.options.concurrent=1),this.concurrency=new Fe({concurrency:this.options.concurrent}),s&&(this.path=[...s.listr.path,s.title],this.errors=s.listr.errors),this.parentTask?.listr.events instanceof We?this.events=this.parentTask.listr.events:this.events=new We,(this.options?.forceTTY||process.env.LISTR_FORCE_TTY)&&(process.stdout.isTTY=!0,process.stderr.isTTY=!0),this.options?.forceUnicode&&(process.env.LISTR_FORCE_UNICODE="1");const r=$e({renderer:this.options.renderer,rendererOptions:this.options.rendererOptions,fallbackRenderer:this.options.fallbackRenderer,fallbackRendererOptions:this.options.fallbackRendererOptions,fallbackRendererCondition:this.options?.fallbackRendererCondition,silentRendererCondition:this.options?.silentRendererCondition});this.rendererClass=r.renderer,this.rendererClassOptions=r.options,this.rendererSelection=r.selection,this.add(t??[]),this.options.registerSignalListeners&&(this.boundSignalHandler=this.signalHandler.bind(this),process.once("SIGINT",this.boundSignalHandler).setMaxListeners(0))}static{Vt(this,"Listr")}tasks=[];errors=[];ctx;events;path=[];rendererClass;rendererClassOptions;rendererSelection;boundSignalHandler;concurrency;renderer;isRoot(){return!this.parentTask}isSubtask(){return!!this.parentTask}add(t){this.tasks.push(...this.generate(t))}async run(t){this.renderer||(this.renderer=new this.rendererClass(this.tasks,this.rendererClassOptions,this.events)),await this.renderer.render(),this.ctx=this.options?.ctx??t??{},await Promise.all(this.tasks.map((t=>t.check(this.ctx))));try{await Promise.all(this.tasks.map((t=>this.concurrency.add((()=>this.runTask(t)))))),this.renderer.end(),this.removeSignalHandler()}catch(t){if(!1!==this.options.exitOnError)throw this.renderer.end(t),this.removeSignalHandler(),t}return this.ctx}generate(t){return(t=Array.isArray(t)?t:[t]).map((t=>{let e;return"PRIMARY"===this.rendererSelection?e=t.rendererOptions:"SECONDARY"===this.rendererSelection&&(e=t.fallbackRendererOptions),new Ke(this,t,this.options,this.rendererClassOptions,e)}))}async runTask(t){if(await t.check(this.ctx))return new je(t).run(this.ctx)}signalHandler(){this.tasks?.forEach((async t=>{t.isPending()&&(t.state$="FAILED")})),this.isRoot()&&(this.renderer?.end(new Error("Interrupted.")),process.exit(127))}removeSignalHandler(){this.boundSignalHandler&&process.removeListener("SIGINT",this.boundSignalHandler)}};const ze=M.Ay.blue(ue.arrowRight),qe=M.Ay.redBright(ue.cross),Qe=M.Ay.yellow(ue.warning),Ve=(t,e,s)=>`${M.Ay.redBright(`${qe} Validation Error:`)}\n\n Invalid value for '${M.Ay.bold(t)}': ${M.Ay.bold((0,n.inspect)(s))}\n\n ${e}`,Xe=M.Ay.redBright(`${qe} Current directory is not a git directory!`),Ze=M.Ay.redBright(`${qe} Failed to get staged files!`),Je=`${qe} No valid configuration found.`,ts=`${ze} No staged files found.`,es=`${ze} No staged files match any configured task.`,ss=M.Ay.yellow(`${Qe} Some of your tasks use \`git add\` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.\n`),rs="Skipped because of errors from tasks.",is=`\n ${M.Ay.redBright(`${qe} lint-staged failed due to a git error.`)}`,ns=`\n ${M.Ay.yellow(`${Qe} lint-staged prevented an empty git commit.\n Use the --allow-empty option to continue, or check your task configuration`)}\n`,os=(M.Ay.redBright(`${qe} Failed to read config from stdin.`),(t,e)=>`${M.Ay.redBright(`${e} Failed to parse config from file "${t}".`)}\n\n${e}\n\nSee https://github.com/okonet/lint-staged#configuration.`),as=(t={},e)=>{if(!Array.isArray(t.output))return;const s=t.errors?.size>0?e.error:e.log;for(const e of t.output)s(e)},ls=t=>{if(t===o.posix.sep||t===o.win32.sep)return o.posix.sep;let e=t.split(/[/\\]+/).join(o.posix.sep);return(t.startsWith("\\\\?\\")||t.startsWith("\\\\.\\"))&&(e=e.replace(/^\/(\.|\?)/,"//$1")),e.endsWith(o.posix.sep)&&(e=e.slice(0,-1)),e},cs=r("lint-staged:chunkFiles"),us=({files:t,baseDir:e,maxArgLength:s=null,relative:r=!1})=>{const i=t.map((t=>ls(r||!e?t:o.resolve(e,t))));if(!s)return cs("Skip chunking files because of undefined maxArgLength"),[i];const n=i.join(" ").length;cs(`Resolved an argument string length of ${n} characters from ${i.length} files`);const a=Math.min(Math.ceil(n/s),i.length);return cs(`Creating ${a} chunks for maxArgLength of ${s}`),((t,e)=>{if(1===e)return[t];const s=[];let r=0;for(let i=0;i<e;i++){const n=Math.ceil((t.length-r)/(e-i));s.push([]),s[i]=t.slice(r,n+r),r+=n}return s})(i,a)};var ps=s(7498);const hs=r("lint-staged:generateTasks"),ds=({config:t,cwd:e=process.cwd(),files:s,relative:r=!1})=>{hs("Generating linter tasks");const i=s.map((t=>ls(o.relative(e,t))));return Object.entries(t).map((([t,s])=>{const n=t.startsWith("../"),a=i.filter((t=>!!n||!t.startsWith("..")&&!o.isAbsolute(t))),l=ps(a,t,{cwd:e,dot:!0,matchBase:!t.includes("/"),posixSlashes:!0,strictBrackets:!0}),c={pattern:t,commands:s,fileList:l.map((t=>ls(r?t:o.resolve(e,t))))};return hs("Generated task: \n%O",c),c}))};var fs=s(6454);function gs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var s=0;s<t.length;s++){var r=t[s];if("string"==typeof r)return r}}var ms=s(4434);const ys=Symbol("ApplyEmptyCommitError"),Es=new Error("Configuration could not be found"),bs=new Error("Configuration should be an object or a function"),Rs=new Error("Configuration should not be empty"),As=Symbol("GetBackupStashError"),ws=Symbol("GetStagedFilesError"),Cs=Symbol("GitError"),Ss=Symbol("GitRepoError"),vs=Symbol("HideUnstagedChangesError"),Ts=new Error("Invalid Options"),Os=Symbol("RestoreMergeStatusError"),_s=Symbol("RestoreOriginalStateError"),ks=Symbol("RestoreUnstagedChangesError"),xs=Symbol("TaskError"),Ls=({quiet:t=!1}={})=>({hasPartiallyStagedFiles:null,shouldBackup:null,backupHash:null,shouldHidePartiallyStaged:!0,errors:new Set([]),events:new ms,output:[],quiet:t}),Ps=t=>t.hasPartiallyStagedFiles&&t.shouldHidePartiallyStaged,$s=t=>!!t.shouldBackup&&(t.errors.has(Cs)?is:t.errors.has(xs)?rs:void 0),Is=t=>t.errors.has(Cs)?is:t.errors.has(xs)?rs:void 0,Hs=t=>t.shouldBackup&&(t.errors.has(xs)||t.errors.has(ks)),Bs=t=>{if(t.errors.has(Cs)&&!t.errors.has(ks))return is},Fs=t=>t.shouldBackup,Ds=t=>Bs(t)||t.errors.has(_s)?is:void 0,Ms="lint-staged:taskError",Ns=r("lint-staged:getSpawnedTask"),Us=t=>t.signalName??"FAILED",js=(t,e,s,r=!1)=>{if(e.output){const i=r?M.Ay.redBright(`${qe} ${t}:`):`${ze} ${t}:`,n=[...s.quiet?[]:["",i],e.output];s.output.push(n.join("\n"))}else if(r){const r=Us(e),i=M.Ay.redBright(`\n${qe} ${t} failed without output (${r}).`);s.quiet||s.output.push(i)}},Gs=(t,e,s)=>{s.errors.add(xs),s.events.emit(Ms,xs),js(t,e,s,!0);const r=Us(e);return new Error(`${M.Ay.redBright(t)} ${M.Ay.dim(`[${r}]`)}`)},Ks=({command:t,cwd:e=process.cwd(),files:s,topLevelDir:r,isFn:i,verbose:n=!1})=>{const[o,...a]=function(t){var e,s=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,r=t,i=[];do{null!==(e=s.exec(r))&&i.push(gs(e[1],e[6],e[0]))}while(null!==e);return i}(t);Ns("cmd:",o),Ns("args:",a);const l={cwd:/^git(\.exe)?/i.test(o)?r:e,preferLocal:!0,stdin:"ignore"};return Ns("Spawn options:",l),async(e=Ls())=>{const r=H(o,i?a:a.concat(s),l),c=((t,e)=>{let s;const r=async()=>{s=(async t=>{const e=await t.nodeChildProcess;try{const t=await fs(e.pid);for(const e of t)try{process.kill(e)}catch(t){Ns('Failed to kill process with pid "%d": %o',e,t)}}catch(t){Ns('Failed to kill process with pid "%d": %o',e.pid,t)}e.kill("SIGKILL")})(e),await s};return t.events.on(Ms,r,{once:!0}),async()=>{t.events.off(Ms,r),await s}})(e,r);try{const s=await r;n&&js(t,s,e)}catch(s){throw Gs(t,s,e)}finally{await c()}}},Ws=r("lint-staged:getFunctionTasks"),Ys=async(t,e)=>(Ws("Creating Listr tasks for function %o",t),[{title:t.title,task:async s=>{try{await t.task(e)}catch(e){throw Gs(t.title,e,s)}}}]);var zs=s(8161),qs=s(7075);const Qs=new RegExp(zs.EOL+"$"),Vs=t=>new qs.Writable({write:function(e,s,r){t(e.toString().replace(Qs,"")),r()}}),Xs=({renderer:t},{FORCE_COLOR:e})=>"silent"===t||"test"===t||Number(e)>0?t:"verbose",Zs=(t,e,s=process.env)=>{const r=(({debug:t,quiet:e},s,r)=>e?{renderer:"silent"}:"test"===r.NODE_ENV?{renderer:"test",rendererOptions:{logger:new ge({processOutput:new Ee(Vs(s.log),Vs(s.error))})}}:t||"dumb"===r.TERM?{renderer:"verbose"}:{renderer:"update",rendererOptions:{formatOutput:"truncate"}})(t,e,s);return{...r,fallbackRenderer:Xs(r,s)}},Js=r("lint-staged:getSpawnedTasks"),tr=async({commands:t,cwd:e,files:s,topLevelDir:r,verbose:i})=>{Js("Creating Listr tasks for commands %o",t);const n=[],o=Array.isArray(t)?t:[t];for(const t of o){const o="function"==typeof t,a=o?await t([...s]):t,l=Array.isArray(a)?a:[a];for(const t of l){if(o&&"string"!=typeof t)throw new Error(Ve("[Function]","Function task should return a string or an array of strings",a));const l=Ks({command:t,cwd:e,files:s,topLevelDir:r,isFn:o,verbose:i});n.push({title:t,command:t,task:l})}}return n},er=(t,e)=>["diff",`--diff-filter=${void 0!==e?e.trim():"ACMR"}`,...void 0!==t?t.trim().split(" "):["--staged"]],sr=t=>t?t.replace(/\u0000$/,"").split("\0"):[],rr=r("lint-staged:file"),ir=async(t,e=!0)=>{rr("Reading file `%s`",t);try{return await h.readFile(t)}catch(s){if(e&&"ENOENT"===s.code)return rr("File `%s` doesn't exist, ignoring...",t),null;throw s}},nr=async(t,e=!0)=>{rr("Removing file `%s`",t);try{await h.unlink(t)}catch(s){if(!e||"ENOENT"!==s.code)throw s;rr("File `%s` doesn't exist, ignoring...",t)}},or=async(t,e)=>{rr("Writing file `%s`",t),await h.writeFile(t,e)},ar=r("lint-staged:GitWorkflow"),lr=/\x00/,cr=(t,e=!0)=>t.reduce(((t,s)=>{if(lr.test(s)){const[r,i]=s.split(lr);e&&t.push(i),t.push(r)}else t.push(s);return t}),[]),ur="lint-staged automatic backup",pr="lint-staged_unstaged.patch",hr=["--binary","--unified=0","--no-color","--no-ext-diff","--src-prefix=a/","--dst-prefix=b/","--patch","--submodule=short"],dr=["-v","--whitespace=nowarn","--recount","--unidiff-zero"],fr=(t,e,s)=>{throw e.errors.add(Cs),s&&e.errors.add(s),t};class gr{constructor({allowEmpty:t,gitConfigDir:e,topLevelDir:s,matchedFileChunks:r,diff:i,diffFilter:n}){this.execGit=(t,e={})=>D(t,{...e,cwd:s}),this.deletedFiles=[],this.gitConfigDir=e,this.topLevelDir=s,this.diff=i,this.diffFilter=n,this.allowEmpty=t,this.matchedFileChunks=r,this.mergeHeadFilename=o.resolve(e,"MERGE_HEAD"),this.mergeModeFilename=o.resolve(e,"MERGE_MODE"),this.mergeMsgFilename=o.resolve(e,"MERGE_MSG")}getHiddenFilepath(t){return o.resolve(this.gitConfigDir,`./${t}`)}async getBackupStash(t){const e=(await this.execGit(["stash","list"])).split("\n").findIndex((e=>e.includes(ur)&&e.includes(t.backupHash)));if(-1===e)throw t.errors.add(As),new Error("lint-staged automatic backup is missing!");return String(e)}async getDeletedFiles(){ar("Getting deleted files...");const t=(await this.execGit(["ls-files","--deleted"])).split("\n").filter(Boolean).map((t=>o.resolve(this.topLevelDir,t)));return ar("Found deleted files:",t),t}async backupMergeStatus(){ar("Backing up merge state..."),await Promise.all([ir(this.mergeHeadFilename).then((t=>this.mergeHeadBuffer=t)),ir(this.mergeModeFilename).then((t=>this.mergeModeBuffer=t)),ir(this.mergeMsgFilename).then((t=>this.mergeMsgBuffer=t))]),ar("Done backing up merge state!")}async restoreMergeStatus(t){ar("Restoring merge state...");try{await Promise.all([this.mergeHeadBuffer&&or(this.mergeHeadFilename,this.mergeHeadBuffer),this.mergeModeBuffer&&or(this.mergeModeFilename,this.mergeModeBuffer),this.mergeMsgBuffer&&or(this.mergeMsgFilename,this.mergeMsgBuffer)]),ar("Done restoring merge state!")}catch(e){ar("Failed restoring merge state with error:"),ar(e),fr(new Error("Merge state could not be restored due to an error!"),t,Os)}}async getPartiallyStagedFiles(){ar("Getting partially staged files...");const t=(await this.execGit(["status","-z"])).split(/\x00(?=[ AMDRCU?!]{2} |$)/).filter((t=>{const[e,s]=t;return" "!==e&&" "!==s&&"?"!==e&&"?"!==s})).map((t=>t.substr(3))).filter(Boolean);return ar("Found partially staged files:",t),t.length?t:null}async prepare(t,e){try{if(ar(e.title),this.partiallyStagedFiles=await this.getPartiallyStagedFiles(),this.partiallyStagedFiles){t.hasPartiallyStagedFiles=!0;const e=this.getHiddenFilepath(pr),s=cr(this.partiallyStagedFiles);await this.execGit(["diff",...hr,"--output",e,"--",...s])}else t.hasPartiallyStagedFiles=!1;if(!t.shouldBackup)return;await this.backupMergeStatus(),this.deletedFiles=await this.getDeletedFiles();const s=await this.execGit(["stash","create"]);t.backupHash=await this.execGit(["rev-parse","--short",s]),await this.execGit(["stash","store","--quiet","--message",`${ur} (${t.backupHash})`,t.backupHash]),e.title=`Backed up original state in git stash (${t.backupHash})`,ar(e.title)}catch(e){fr(e,t)}}async hideUnstagedChanges(t){try{const t=cr(this.partiallyStagedFiles,!1);await this.execGit(["checkout","--force","--",...t])}catch(e){fr(e,t,vs)}}async applyModifications(t){ar("Adding task modifications to index...");for(const t of this.matchedFileChunks)await this.execGit(["add","--",...t]);ar("Done adding task modifications to index!"),await this.execGit([...er(this.diff,this.diffFilter),"--name-only","-z"])||this.allowEmpty||fr(new Error("Prevented an empty git commit!"),t,ys)}async restoreUnstagedChanges(t){ar("Restoring unstaged changes...");const e=this.getHiddenFilepath(pr);try{await this.execGit(["apply",...dr,e])}catch(s){ar("Error while restoring changes:"),ar(s),ar("Retrying with 3-way merge");try{await this.execGit(["apply",...dr,"--3way",e])}catch(e){ar("Error while restoring unstaged changes using 3-way merge:"),ar(e),fr(new Error("Unstaged changes could not be restored due to a merge conflict!"),t,ks)}}}async restoreOriginalState(t){try{ar("Restoring original state..."),await this.execGit(["reset","--hard","HEAD"]),await this.execGit(["stash","apply","--quiet","--index",await this.getBackupStash(t)]),await this.restoreMergeStatus(t),await Promise.all(this.deletedFiles.map((t=>nr(t)))),await nr(this.getHiddenFilepath(pr)),ar("Done restoring original state!")}catch(e){fr(e,t,_s)}}async cleanup(t){try{ar("Dropping backup stash..."),await this.execGit(["stash","drop","--quiet",await this.getBackupStash(t)]),ar("Done dropping backup stash!")}catch(e){fr(e,t)}}}const mr=r("lint-staged:groupFilesByConfig"),yr=r("lint-staged:resolveGitRepo"),Er=["package.json","package.yaml","package.yml",".lintstagedrc",".lintstagedrc.json",".lintstagedrc.yaml",".lintstagedrc.yml",".lintstagedrc.mjs",".lintstagedrc.mts",".lintstagedrc.js",".lintstagedrc.ts",".lintstagedrc.cjs",".lintstagedrc.cts","lint-staged.config.mjs","lint-staged.config.mts","lint-staged.config.js","lint-staged.config.ts","lint-staged.config.cjs","lint-staged.config.cts"],br=async()=>{},Rr=/(?<![\\$])({)(?:(?!(?<!\\),|\.\.|\{|\}).)*?(?<!\\)(})/g,Ar=/{{[^}{]*}}/,wr=r("lint-staged:validateConfig"),Cr=(t,e,s)=>{try{return((t,e,s)=>{if(wr("Validating config from `%s`...",e),!t||"object"!=typeof t&&"function"!=typeof t)throw bs;if("function"==typeof t)return{"*":t};if(0===Object.entries(t).length)throw Rs;const r=[],i=Object.entries(t).reduce(((t,[e,i])=>{Array.isArray(i)?i.some((t=>"string"!=typeof t&&"function"!=typeof t))&&r.push(Ve(e,"Should be an array of strings or functions.",i)):"object"==typeof i?"string"==typeof i.title&&"function"==typeof i.task||r.push(Ve(e,"Function task should contain `title` and `task` fields, where `title` should be a string and `task` should be a function.",i)):"string"!=typeof i&&"function"!=typeof i&&r.push(Ve(e,"Should be a string, a function, an object or an array of strings and functions.",i));const n=((t,e)=>{const s=(t=>{let e=`${t}`;const s=Ar.exec(t)?.[0];if(s){const t=s.replace("{{","{").replace("}}","}");e=e.replace(s,t)}return e})((t=>{let e=`${t}`,s=null;for(;s=Rr.exec(t);){const t=s[0],r=t.replace(/{/,"").replace(/}/,"");e=e.replace(t,r)}return e})(t));var r,i;return s!==t&&e.warn((r=t,i=s,M.Ay.yellow(`${Qe} Detected incorrect braces with only single value: \`${r}\`. Reformatted as: \`${i}\`\n`))),s})(e,s);return Object.assign(t,{[n]:i})}),{});if(r.length){const t=r.join("\n\n");throw s.error(os(e,t)),new Error(t)}return wr("Validated config from `%s`:",e),wr((0,n.inspect)(t,{compact:!1})),i})(t,e,s)}catch(t){throw s.error(os(e,t)),t}},Sr=r("lint-staged:searchConfigs"),vr=["ls-files","-z","--full-name","-t"],Tr=t=>Er.includes(o.basename(t)),Or=t=>t.split("/").length,_r=(t,e)=>Or(t)>Or(e)?-1:1,kr=r("lint-staged:runAll"),xr=t=>Object.assign(new Error("lint-staged failed"),{ctx:t}),Lr=async({allowEmpty:t=!1,concurrent:e=!0,configObject:s,configPath:r,cwd:i,debug:n=!1,diff:a,diffFilter:l,maxArgLength:c,quiet:u=!1,relative:p=!1,stash:h=void 0===a,hidePartiallyStaged:d=h,verbose:f=!1},g=console)=>{kr("Running all linter scripts...");const m=!!i;i=m?o.resolve(i):process.cwd(),kr("Using working directory `%s`",i);const y=Ls({quiet:u}),{topLevelDir:E,gitConfigDir:b}=await(async(t=process.cwd())=>{try{yr("Resolving git repo from `%s`",t),yr("Unset GIT_DIR (was `%s`)",process.env.GIT_DIR),delete process.env.GIT_DIR,yr("Unset GIT_WORK_TREE (was `%s`)",process.env.GIT_WORK_TREE),delete process.env.GIT_WORK_TREE;const e=await D(["rev-parse","--show-cdup"],{cwd:t}),s=ls(o.join(t,e));yr("Resolved git repository top-level directory to be `%s`",s);const r=await(async t=>{const e=D(["rev-parse","--show-toplevel"],{cwd:t}),s=D(["rev-parse","--absolute-git-dir"],{cwd:t}),[r,i]=await Promise.all([e,s]);return o.relative(r,i)})(t),i=ls(o.join(s,r));return yr("Resolved git config directory to be `%s`",i),{topLevelDir:s,gitConfigDir:i}}catch(t){return yr("Failed to resolve git repo with error:",t),{error:t,topLevelDir:null,gitConfigDir:null}}})(i);if(!E)throw u||y.output.push(Xe),y.errors.add(Ss),xr(y);const R=await D(["log","-1"],{cwd:E}).then((()=>!0)).catch((()=>!1));y.shouldBackup=R&&h,y.shouldBackup||u||g.warn(((t,e)=>{const s=void 0!==e?"`--diff` was used":t?"`--no-stash` was used":"there\u2019s no initial commit yet";return M.Ay.yellow(`${Qe} Skipping backup because ${s}.\n`)})(R,a)),y.shouldHidePartiallyStaged=d,y.shouldHidePartiallyStaged||u||g.warn(((t,e)=>{const s=void 0!==e?"`--diff` was used":t?"`--no-hide-partially-staged` was used":"`--no-stash` was used";return M.Ay.yellow(`${Qe} Skipping hiding unstaged changes from partially staged files because ${s}.\n`)})(R&&h,a));const A=await(async({cwd:t=process.cwd(),diff:e,diffFilter:s}={})=>{try{const r=await D([...er(e,s),"--raw","-z"],{cwd:t});return r?r.slice(1).split("\0:").map(sr).flatMap((([e,s,r])=>{const[,i,,,,]=e.split(" ");if("160000"===i)return[];const n=r??s;return[ls(o.resolve(t,n))]})):[]}catch{return null}})({cwd:E,diff:a,diffFilter:l});if(!A)throw u||y.output.push(Ze),y.errors.add(ws),xr(y);if(kr("Loaded list of staged files in git:\n%O",A),0===A.length)return u||y.output.push(ts),y;const w=await(async({configObject:t,configPath:e,cwd:s=process.cwd(),topLevelDir:r=s},i)=>{if(Sr("Searching for configuration files..."),t)return Sr("Using single direct configuration object..."),{"":Cr(t,"config object",i)};if(e){Sr("Using single configuration path...");const{config:t,filepath:s}=await br();return t?{[e]:Cr(t,s,i)}:{}}const[n,a]=await Promise.all([D(vr,{cwd:r}).then(sr),D([...vr,"--others","--exclude-standard"],{cwd:r}).then(sr)]),l=[...n,...a].flatMap((t=>t.startsWith("S ")?[]:[t.replace(/^[HSMRCK?U] /,"")])).filter(Tr).map((t=>ls(o.join(r,t)))).filter((c=s,t=>t.startsWith(ls(c)))).sort(_r);var c;Sr("Found possible config files:",l);const u=l.reduce(((t,e)=>Object.assign(t,{[e]:null})),{});await Promise.all(Object.keys(u).map((t=>br().then((({config:e,filepath:s})=>{e&&(t!==s&&Sr('Config file "%s" resolved to "%s"',t,s),u[t]=Cr(e,s,i))})))));const p=Object.entries(u).filter((([,t])=>!!t)).reduce(((t,[e,s])=>Object.assign(t,{[e]:s})),{});if(!Object.keys(p).length){Sr('Could not find config files inside "%s"',s);const{config:t,filepath:e}=await br();t?(Sr('Found parent configuration file from "%s"',e),p[e]=Cr(t,e,i)):Sr('Could not find parent configuration files from "%s"',s)}return Sr("Found %d config files",Object.keys(p).length),p})({configObject:s,configPath:r,cwd:i,topLevelDir:E},g),C=Object.keys(w).length;if(0===C)throw y.errors.add(Es),xr(y);const S=await(async({configs:t,files:e,singleConfigMode:s})=>{mr("Grouping %d files by %d configurations",e.length,Object.keys(t).length);const r=new Set(e),i={};for(const[n,a]of Object.entries(t)){if(s){i[n]={config:a,files:e};break}const t=o.normalize(o.dirname(n)),l=e=>{const s=o.relative(t,e);return s&&!s.startsWith("..")&&!o.isAbsolute(s)},c=Object.keys(a).some((t=>t.startsWith(".."))),u=new Set(c?r:void 0);c||r.forEach((t=>{l(t)&&u.add(t)})),u.forEach((t=>{r.delete(t)})),i[n]={config:a,files:Array.from(u)}}return i})({configs:w,files:A,singleConfigMode:s||void 0!==r}),v=C>1;let T=!1;const O={ctx:y,exitOnError:!1,registerSignalListeners:!1,...Zs({debug:n,quiet:u},g)};let _=0;const k=[],x=new Set;for(const[t,{config:s,files:r}]of Object.entries(S)){const n=t?ls(o.relative(i,t)):"Config object",a=us({baseDir:E,files:r,maxArgLength:c,relative:p}),l=v&&!m?o.dirname(t):i,u=a.length;u>1&&kr("Chunked staged files from `%s` into %d part",t,u);for(const[t,r]of a.entries()){const i=await Promise.all(ds({config:s,cwd:l,files:r,relative:p}).map((t=>{return(e=t.commands,"object"!=typeof e||Array.isArray(e)?tr({commands:t.commands,cwd:l,files:t.fileList,topLevelDir:E,verbose:f}):Ys(t.commands,r)).then((e=>{t.fileList.forEach((t=>{const e=o.isAbsolute(t)?t:ls(o.join(l,t));x.add(e)})),T=T||e.some((t=>"git add"===t.command));const s=t.fileList.length;return{title:`${t.pattern}${M.Ay.dim(` \u2014 ${s} ${1===s?"file":"files"}`)}`,task:async(t,s)=>s.newListr(e,{concurrent:!1,exitOnError:!0}),skip:()=>0===s&&`${t.pattern}${M.Ay.dim(" \u2014 no files")}`}}));var e})));_+=i.length,k.push({title:`${n}${M.Ay.dim(` \u2014 ${r.length} ${r.length>1?"files":"file"}`)}`+(u>1?M.Ay.dim(` (chunk ${t+1}/${u})...`):""),task:(t,s)=>s.newListr(i,{concurrent:e,exitOnError:!0}),skip:()=>y.errors.has(Cs)?"Skipped because of previous git error.":!!i.every((t=>t.skip()))&&`${n}${M.Ay.dim(" \u2014 no tasks to run")}`})}}if(T&&!u&&g.warn(ss),k.every((t=>t.skip())))return u||y.output.push(es),y;const L=us({baseDir:i,files:Array.from(x),maxArgLength:c,relative:!1}),P=new gr({allowEmpty:t,gitConfigDir:b,topLevelDir:E,matchedFileChunks:L,diff:a,diffFilter:l}),$=new Ye([{title:y.shouldBackup?"Backing up original state...":"Preparing lint-staged...",task:(t,e)=>P.prepare(t,e)},{title:"Hiding unstaged changes to partially staged files...",task:t=>P.hideUnstagedChanges(t),enabled:Ps},{title:`Running tasks for ${a?"changed":"staged"} files...`,task:(t,s)=>s.newListr(k,{concurrent:e}),skip:()=>k.every((t=>t.skip()))},{title:"Applying modifications from tasks...",task:t=>P.applyModifications(t),skip:$s},{title:"Restoring unstaged changes to partially staged files...",task:t=>P.restoreUnstagedChanges(t),enabled:Ps,skip:Is},{title:"Reverting to original state because of errors...",task:t=>P.restoreOriginalState(t),enabled:Hs,skip:Bs},{title:"Cleaning up temporary files...",task:t=>P.cleanup(t),enabled:Fs,skip:Ds}],O);if(kr("Set max event listeners to the number of tasks: %i",_),y.events.setMaxListeners(_),await $.run(),y.errors.size>0)throw xr(y);return y};var Pr=s(3024);const $r=r("lint-staged:validateOptions"),Ir=r("lint-staged"),Hr=()=>{switch(process.platform){case"darwin":return 262144;case"win32":return 8191;default:return 131072}},Br=async({allowEmpty:t=!1,concurrent:e=!0,config:i,configPath:n,cwd:a,debug:l=!1,diff:c,diffFilter:u,maxArgLength:p=Hr()/2,quiet:d=!1,relative:f=!1,stash:g=void 0===c,hidePartiallyStaged:m=g,verbose:y=!1}={},E=console)=>{l&&(r.enable("lint-staged*"),Ir("Running `lint-staged@%s` on Node.js %s (%s)",await(async()=>JSON.parse(await h.readFile(new URL(s(8729),s.b))).version)(),process.version,process.platform));const b=await D(["version","--build-options"],{cwd:a});Ir("%s",b);const R={allowEmpty:t,concurrent:e,configObject:i,configPath:n,cwd:a,debug:l,diff:c,diffFilter:u,maxArgLength:p,quiet:d,relative:f,stash:g,hidePartiallyStaged:m,verbose:y};await(async(t={},e)=>{if($r("Validating options..."),"string"==typeof t.cwd)try{const e=o.resolve(t.cwd);await h.access(e,Pr.constants.F_OK)}catch(i){throw $r("Failed to validate options: %o",t),e.error((s=t.cwd,r=i.message,`${M.Ay.redBright(`${qe} Validation Error:`)}\n\n Invalid value for option '${M.Ay.bold("cwd")}': ${M.Ay.bold(s)}\n\n ${r}\n\nSee https://github.com/okonet/lint-staged#command-line-flags`)),Ts}var s,r;$r("Validated options: %o",t)})(R,E),Ir("Unset GIT_LITERAL_PATHSPECS (was `%s`)",process.env.GIT_LITERAL_PATHSPECS),delete process.env.GIT_LITERAL_PATHSPECS;try{const t=await Lr(R,E);return Ir("Tasks were executed successfully!"),as(t,E),!0}catch(t){if(t?.ctx?.errors){const{ctx:e}=t;return e.errors.has(Es)?E.error(Je):e.errors.has(ys)?E.warn(ns):!e.errors.has(Cs)&&!Ds(e)||e.errors.has(As)||(E.error(is),e.shouldBackup&&E.error("Any lost modifications can be restored from a git stash:\n\n > git stash list\n stash@{0}: automatic lint-staged backup\n > git stash apply --index stash@{0}\n")),as(e,E),!1}throw t}}},9288:(t,e,s)=>{const r=s(2411),i=s(303),n=s(1811),o=(t="",e="",s=!1)=>{const r=[];if(t=[].concat(t),!(e=[].concat(e)).length)return t;if(!t.length)return s?n.flatten(e).map((t=>`{${t}}`)):e;for(const i of t)if(Array.isArray(i))for(const t of i)r.push(o(t,e,s));else for(let t of e)!0===s&&"string"==typeof t&&(t=`{${t}}`),r.push(Array.isArray(t)?o(i,t,s):i+t);return n.flatten(r)};t.exports=(t,e={})=>{const s=void 0===e.rangeLimit?1e3:e.rangeLimit,a=(t,l={})=>{t.queue=[];let c=l,u=l.queue;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)c=c.parent,u=c.queue;if(t.invalid||t.dollar)return void u.push(o(u.pop(),i(t,e)));if("brace"===t.type&&!0!==t.invalid&&2===t.nodes.length)return void u.push(o(u.pop(),["{}"]));if(t.nodes&&t.ranges>0){const a=n.reduce(t.nodes);if(n.exceedsLimit(...a,e.step,s))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=r(...a,e);return 0===l.length&&(l=i(t,e)),u.push(o(u.pop(),l)),void(t.nodes=[])}const p=n.encloseBrace(t);let h=t.queue,d=t;for(;"brace"!==d.type&&"root"!==d.type&&d.parent;)d=d.parent,h=d.queue;for(let e=0;e<t.nodes.length;e++){const s=t.nodes[e];"comma"!==s.type||"brace"!==t.type?"close"!==s.type?s.value&&"open"!==s.type?h.push(o(h.pop(),s.value)):s.nodes&&a(s,t):u.push(o(u.pop(),h,p)):(1===e&&h.push(""),h.push(""))}return h};return n.flatten(a(t))}},9565:(t,e,s)=>{t.exports=function(t){function e(t){let s,i,n,o=null;function a(...t){if(!a.enabled)return;const r=a,i=Number(new Date),n=i-(s||i);r.diff=n,r.prev=s,r.curr=i,s=i,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let o=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((s,i)=>{if("%%"===s)return"%";o++;const n=e.formatters[i];if("function"==typeof n){const e=t[o];s=n.call(r,e),t.splice(o,1),o--}return s})),e.formatArgs.call(r,t),(r.log||e.log).apply(r,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=r,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==e.namespaces&&(i=e.namespaces,n=e.enabled(t)),n),set:t=>{o=t}}),"function"==typeof e.init&&e.init(a),a}function r(t,s){const r=e(this.namespace+(void 0===s?":":s)+t);return r.log=this.log,r}function i(t,e){let s=0,r=0,i=-1,n=0;for(;s<t.length;)if(r<e.length&&(e[r]===t[s]||"*"===e[r]))"*"===e[r]?(i=r,n=s,r++):(s++,r++);else{if(-1===i)return!1;r=i+1,n++,s=n}for(;r<e.length&&"*"===e[r];)r++;return r===e.length}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names,...e.skips.map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){e.save(t),e.namespaces=t,e.names=[],e.skips=[];const s=("string"==typeof t?t:"").trim().replace(" ",",").split(",").filter(Boolean);for(const t of s)"-"===t[0]?e.skips.push(t.slice(1)):e.names.push(t)},e.enabled=function(t){for(const s of e.skips)if(i(t,s))return!1;for(const s of e.names)if(i(t,s))return!0;return!1},e.humanize=s(3866),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((s=>{e[s]=t[s]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let s=0;for(let e=0;e<t.length;e++)s=(s<<5)-s+t.charCodeAt(e),s|=0;return e.colors[Math.abs(s)%e.colors.length]},e.enable(e.load()),e}},9789:t=>{t.exports=function(t){return"number"==typeof t?t-t==0:"string"==typeof t&&""!==t.trim()&&(Number.isFinite?Number.isFinite(+t):isFinite(+t))}}};
|
package/dist/652.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __webpack_id__=652;export const __webpack_ids__=[652];export const __webpack_modules__={244:(e,t,r)=>{const n=r(6280);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},327:e=>{const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},353:(e,t,r)=>{const n=r(6280);e.exports=(e,t)=>new n(e,t).patch},526:e=>{var t,r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",s="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",c="["+u+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",f="\\d+",p="["+s+"]",h="["+i+"]",d="[^"+o+u+f+s+i+a+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="["+a+"]",y="(?:"+h+"|"+d+")",v="(?:"+g+"|"+d+")",$="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",x="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",b="(?:"+l+"|\\ud83c[\\udffb-\\udfff])?",R="[\\ufe0e\\ufe0f]?",I=R+b+"(?:\\u200d(?:"+["[^"+o+"]",E,m].join("|")+")"+R+b+")*",A="(?:"+[p,E,m].join("|")+")"+I,w=RegExp("['\u2019]","g"),O=RegExp(l,"g"),L=RegExp([g+"?"+h+"+"+$+"(?="+[c,g,"$"].join("|")+")",v+"+"+x+"(?="+[c,g+y,"$"].join("|")+")",g+"?"+y+"+"+$,g+"+"+x,f,A].join("|"),"g"),N=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,j="object"==typeof global&&global&&global.Object===Object&&global,S="object"==typeof self&&self&&self.Object===Object&&self,T=j||S||Function("return this")(),C=(t={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"ss"},function(e){return null==t?void 0:t[e]}),P=Object.prototype.toString,G=T.Symbol,U=G?G.prototype:void 0,D=U?U.toString:void 0;function M(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==P.call(e)}(e))return D?D.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var F,_=(F=function(e,t,r){return e+(r?"-":"")+t.toLowerCase()},function(e){return function(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)r=t(r,e[n],n,e);return r}(function(e,t){return e=M(e),void 0===t?function(e){return N.test(e)}(e)?function(e){return e.match(L)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=M(e))&&e.replace(n,C).replace(O,"")}(e).replace(w,"")),F,"")});e.exports=_},652:(e,t,r)=>{r.r(t),r.d(t,{default:()=>P});var n=r(7975),o=r(4017);const s=e=>e.test.bind(e),i=[s(/^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m),s(/^(Merge tag (.*?))(?:\r?\n)*$/m),s(/^(R|r)evert (.*)/),s(/^(R|r)eapply (.*)/),s(/^(amend|fixup|squash)!/),e=>{const t=e.split("\n").shift();if("string"!=typeof t)return!1;const r=t.replace(/^chore(\([^)]+\))?:/,"").trim();return null!==o.valid(r)},s(/^(Merged (.*?)(in|into) (.*)|Merged PR (.*): (.*))/),s(/^Merge remote-tracking branch(\s*)(.*)/),s(/^Automatic merge(.*)/),s(/^Auto-merged (.*?) into (.*)/)];var a=r(9793),u=r(7475);const c=async function(e,t=a.sync,r){const n=t(e,{...(await u()).parserOpts,fieldPattern:null,...r||{}});return n.raw=e,n};var l=r(9899),f=r(526),p=r(8118),h=r(5254),d=r(5030);const E=function(e="",t="lowercase"){const r=String(e).replace(/`.*?`|".*?"|'.*?'/g,"").trim(),n=function(e,t){switch(t){case"camel-case":return l(e);case"kebab-case":return f(e);case"snake-case":return p(e);case"pascal-case":return h(l(e));case"start-case":return d(e);case"upper-case":case"uppercase":return e.toUpperCase();case"sentence-case":case"sentencecase":return h(e);case"lower-case":case"lowercase":case"lowerCase":return e.toLowerCase();default:throw new TypeError(`to-case: Unknown target case "${t}"`)}}(r,t);return!(""!==n&&!n.match(/^\d/))||n===r},m=(e,t=[])=>void 0!==e&&!!Array.isArray(t)&&t.indexOf(e)>-1,g=(e,t)=>"string"==typeof e&&e.length<=t,y=(e,t)=>"string"==typeof e&&e.split(/\r?\n/).every((e=>g(e,t))),v=(e,t)=>"string"==typeof e&&e.length>=t,$=e=>"string"==typeof e&&e.length>0;function x(e=[]){return e.filter(Boolean).join(" ")}const b=e=>"never"===e;function R(e){return"string"!=typeof e?[]:e.split(/(?:\r?\n)/)}const I=e=>"never"===e,A=e=>"never"===e,w=/^[\p{Ll}\p{Lu}\p{Lt}]/iu,O=e=>"never"===e;var L=r(1421);const N=e=>"never"===e,j={"body-case":(e,t="always",r=[])=>{const{body:n}=e;if(!n)return[!0];const o=(Array.isArray(r)?r:[r]).map((e=>"string"==typeof e?{when:"always",case:e}:e)),s=o.some((e=>{const t=E(n,e.case);return b(e.when)?!t:t})),i=o.map((e=>e.case)).join(", ");return[b(t)?!s:s,x(["body must",b(t)?"not":null,`be ${i}`])]},"body-empty":(e,t="always")=>{const r="never"===t,n=$(e.body||"");return[r?n:!n,x(["body",r?"may not":"must","be empty"])]},"body-full-stop":(e,t="always",r=".")=>{const n=e.body;if(!n)return[!0];const o="never"===t,s=n[n.length-1]===r;return[o?!s:s,x(["body",o?"may not":"must","end with full stop"])]},"body-leading-blank":(e,t)=>{if(!e.body)return[!0];const r="never"===t,[n]=R(e.raw).slice(1),o=""===n;return[r?!o:o,x(["body",r?"may not":"must","have leading blank line"])]},"body-max-length":(e,t=void 0,r=0)=>{const n=e.body;return n?[g(n,r),`body must not be longer than ${r} characters`]:[!0]},"body-max-line-length":(e,t=void 0,r=0)=>{const n=e.body;return n?[y(n,r),`body's lines must not be longer than ${r} characters`]:[!0]},"body-min-length":(e,t=void 0,r=0)=>e.body?[v(e.body,r),`body must not be shorter than ${r} characters`]:[!0],"footer-empty":(e,t="always")=>{const r="never"===t,n=$(e.footer||"");return[r?n:!n,x(["footer",r?"may not":"must","be empty"])]},"footer-leading-blank":(e,t="always")=>{if(!e.footer)return[!0];const r="never"===t,n=R(e.raw),o=R(e.footer),s=n.indexOf(o[0]),[i]=n.slice(s-1),a=""===i;return[r?!a:a,x(["footer",r?"may not":"must","have leading blank line"])]},"footer-max-length":(e,t=void 0,r=0)=>{const n=e.footer;return n?[g(n,r),`footer must not be longer than ${r} characters`]:[!0]},"footer-max-line-length":(e,t=void 0,r=0)=>{const n=e.footer;return n?[y(n,r),`footer's lines must not be longer than ${r} characters`]:[!0]},"footer-min-length":(e,t=void 0,r=0)=>e.footer?[v(e.footer,r),`footer must not be shorter than ${r} characters`]:[!0],"header-case":(e,t="always",r=[])=>{const{header:n}=e;if("string"!=typeof n||!n.match(/^[a-z]/i))return[!0];const o=(Array.isArray(r)?r:[r]).map((e=>"string"==typeof e?{when:"always",case:e}:e)),s=o.some((e=>{const t=E(n,e.case);return I(e.when)?!t:t})),i=o.map((e=>e.case)).join(", ");return[I(t)?!s:s,x(["header must",I(t)?"not":null,`be ${i}`])]},"header-full-stop":(e,t="always",r=".")=>{const{header:n}=e,o="never"===t,s=n?.[n.length-1]===r;return[o?!s:s,x(["header",o?"may not":"must","end with full stop"])]},"header-max-length":(e,t=void 0,r=0)=>[g(e.header,r),`header must not be longer than ${r} characters, current length is ${e.header?.length}`],"header-min-length":(e,t=void 0,r=0)=>[v(e.header,r),`header must not be shorter than ${r} characters, current length is ${e.header?.length}`],"header-trim":e=>{const{header:t}=e;if(!t)return[!0];const r=t.length>t.trimStart().length,n=t.length>t.trimEnd().length;return r&&n?[!1,x(["header","must not be surrounded by whitespace"])]:r?[!1,x(["header","must not start with whitespace"])]:n?[!1,x(["header","must not end with whitespace"])]:[!0]},"references-empty":(e,t="never")=>{const r="always"===t,n=e.references.length>0;return[r?!n:n,x(["references",r?"must":"may not","be empty"])]},"scope-case":(e,t="always",r=[])=>{const{scope:n}=e;if(!n)return[!0];const o=(Array.isArray(r)?r:[r]).map((e=>"string"==typeof e?{when:"always",case:e}:e)),s=/\/|\\|, ?/g,i=n.split(s),a=o.some((e=>{const t=i.every((t=>s.test(t)||E(t,e.case)));return A(e.when)?!t:t})),u=o.map((e=>e.case)).join(", ");return[A(t)?!a:a,x(["scope must",A(t)?"not":null,`be ${u}`])]},"scope-empty":(e,t="never")=>{const r="always"===t,n=$(e.scope||"");return[r?!n:n,x(["scope",r?"must":"may not","be empty"])]},"scope-enum":({scope:e},t="always",r=[])=>{if(!e||!r.length)return[!0,""];const n=e.split(/\/|\\|, ?/g),o=["scope must",`be one of [${r.join(", ")}]`],s=e=>m(e,r);let i;return"never"===t?(i=!n.some(s)&&!s(e),o.splice(1,0,"not")):i=n.every(s)||s(e),[i,x(o)]},"scope-max-length":(e,t=void 0,r=0)=>{const n=e.scope;return n?[g(n,r),`scope must not be longer than ${r} characters`]:[!0]},"scope-min-length":(e,t=void 0,r=0)=>{const n=e.scope;return n?[v(n,r),`scope must not be shorter than ${r} characters`]:[!0]},"signed-off-by":(e,t="always",r="")=>{const n=R(e.raw).filter((e=>!e.startsWith("#")&&Boolean(e))),o=n[n.length-1],s="never"===t,i=!!o&&o.startsWith(r);return[s?!i:i,x(["message",s?"must not":"must","be signed off"])]},"subject-case":(e,t="always",r=[])=>{const{subject:n}=e;if("string"!=typeof n||!n.match(w))return[!0];const o=(Array.isArray(r)?r:[r]).map((e=>"string"==typeof e?{when:"always",case:e}:e)),s=o.some((e=>{const t=E(n,e.case);return O(e.when)?!t:t})),i=o.map((e=>e.case)).join(", ");return[O(t)?!s:s,x(["subject must",O(t)?"not":null,`be ${i}`])]},"subject-empty":(e,t="always")=>{const r="never"===t,n=$(e.subject||"");return[r?n:!n,x(["subject",r?"may not":"must","be empty"])]},"subject-full-stop":(e,t="always",r=".")=>{const n=e.header?.indexOf(":")||0;if(n>0&&n===e.header.length-1)return[!0];const o=e.header,s="never"===t;let i=o?.[o.length-1]===r;return"..."===o?.slice(-3)&&(i=!1),[s?!i:i,x(["subject",s?"may not":"must","end with full stop"])]},"subject-max-length":(e,t=void 0,r=0)=>{const n=e.subject;return n?[g(n,r),`subject must not be longer than ${r} characters`]:[!0]},"subject-min-length":(e,t=void 0,r=0)=>{const n=e.subject;return n?[v(n,r),`subject must not be shorter than ${r} characters`]:[!0]},"subject-exclamation-mark":(e,t="always")=>{const r=e.header;if(!r)return[!0,""];const n="never"===t,o=/!:/.test(r);return[n?!o:o,x(["subject",n?"must not":"must","have an exclamation mark in the subject to identify a breaking change"])]},"trailer-exists":(e,t="always",r="")=>{const n="never"===t,o=R((0,L.spawnSync)("git",["interpret-trailers","--parse"],{input:e.raw||""}).stdout.toString()).filter((e=>e.startsWith(r))).length>0;return[n?!o:o,x(["message",n?"must not":"must","have `"+r+"` trailer"])]},"type-case":(e,t="always",r=[])=>{const{type:n}=e;if(!n)return[!0];const o=(Array.isArray(r)?r:[r]).map((e=>"string"==typeof e?{when:"always",case:e}:e)),s=o.some((e=>{const t=E(n,e.case);return N(e.when)?!t:t})),i=o.map((e=>e.case)).join(", ");return[N(t)?!s:s,x(["type must",N(t)?"not":null,`be ${i}`])]},"type-empty":(e,t="always")=>{const r="never"===t,n=$(e.type||"");return[r?n:!n,x(["type",r?"may not":"must","be empty"])]},"type-enum":(e,t="always",r=[])=>{const{type:n}=e;if(!n)return[!0];const o="never"===t,s=m(n,r);return[o?!s:s,x(["type must",o?"not":null,`be one of [${r.join(", ")}]`])]},"type-max-length":(e,t=void 0,r=0)=>{const n=e.type;return n?[g(n,r),`type must not be longer than ${r} characters`]:[!0]},"type-min-length":(e,t=void 0,r=0)=>{const n=e.type;return n?[v(n,r),`type must not be shorter than ${r} characters`]:[!0]}};var S,T;!function(e){e[e.Disabled=0]="Disabled",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(S||(S={})),function(e){e[e.User=0]="User",e[e.Qualified=1]="Qualified"}(T||(T={}));const C=({header:e,body:t,footer:r})=>{let n=e;return n=t?`${n}\n\n${t}`:n,n=r?`${n}\n\n${r}`:n,n||""};async function P(e,t,r){const o=r||{defaultIgnores:void 0,ignores:void 0},s=t||{};if(function(e="",t={}){const r=void 0===t.ignores?[]:t.ignores;if(!Array.isArray(r))throw new Error(`ignores must be of type array, received ${r} of type ${typeof r}`);const n=r.filter((e=>"function"!=typeof e));if(n.length>0)throw new Error(`ignores must be array of type function, received items of type: ${n.map((e=>typeof e)).join(", ")}`);return[...!1===t.defaults?[]:i,...r].some((t=>t(e)))}(e,{defaults:o.defaultIgnores,ignores:o.ignores}))return{valid:!0,errors:[],warnings:[],input:e};const a=""===e?{header:null,body:null,footer:null}:await c(e,void 0,o.parserOpts);if(null===a.header&&null===a.body&&null===a.footer)return{valid:!0,errors:[],warnings:[],input:e};const u=new Map(Object.entries(j));o.plugins&&Object.values(o.plugins).forEach((e=>{e.rules&&Object.keys(e.rules).forEach((t=>u.set(t,e.rules[t])))}));const l=Object.keys(s).filter((e=>"function"!=typeof u.get(e)));if(l.length>0){const e=[...u.keys()];throw new RangeError([`Found rules without implementation: ${l.join(", ")}.`,`Supported rules are: ${e.join(", ")}.`].join("\n"))}const f=Object.entries(s).map((([e,t])=>{if(!Array.isArray(t))return new Error(`config for rule ${e} must be array, received ${n.inspect(t)} of type ${typeof t}`);const[r]=t;if(r===S.Disabled&&1===t.length)return null;const[,o]=t;return"number"!=typeof r||isNaN(r)?new Error(`level for rule ${e} must be number, received ${n.inspect(r)} of type ${typeof r}`):t.length<2||t.length>3?new Error(`config for rule ${e} must be 2 or 3 items long, received ${n.inspect(t)} of length ${t.length}`):r<0||r>2?new RangeError(`level for rule ${e} must be between 0 and 2, received ${n.inspect(r)}`):"string"!=typeof o?new Error(`condition for rule ${e} must be string, received ${n.inspect(o)} of type ${typeof o}`):"never"!==o&&"always"!==o?new Error(`condition for rule ${e} must be "always" or "never", received ${n.inspect(o)}`):null})).filter((e=>e instanceof Error));if(f.length>0)throw new Error(f.map((e=>e.message)).join("\n"));const p=Object.entries(s).filter((([,e])=>!!e&&e.length&&e[0]>0)).map((async e=>{const[t,r]=e,[n,o,s]=r,i=u.get(t);if(!i)throw new Error(`Could not find rule implementation for ${t}`);const c=i,[l,f]=await c(a,o,s);return{level:n,valid:l,name:t,message:f}})),h=(await Promise.all(p)).filter((e=>null!==e)),d=h.filter((e=>e.level===S.Error&&!e.valid)),E=h.filter((e=>e.level===S.Warning&&!e.valid));return{valid:0===d.length,errors:d,warnings:E,input:C(a)}}},722:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:s}=r(7374),i=r(8244),a=(t=e.exports={}).re=[],u=t.safeRe=[],c=t.src=[],l=t.safeSrc=[],f=t.t={};let p=0;const h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",s],[h,o]],E=(e,t,r)=>{const n=(e=>{for(const[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),o=p++;i(e,o,t),f[e]=o,c[o]=t,l[o]=n,a[o]=new RegExp(t,r?"g":void 0),u[o]=new RegExp(n,r?"g":void 0)};E("NUMERICIDENTIFIER","0|[1-9]\\d*"),E("NUMERICIDENTIFIERLOOSE","\\d+"),E("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),E("MAINVERSION",`(${c[f.NUMERICIDENTIFIER]})\\.(${c[f.NUMERICIDENTIFIER]})\\.(${c[f.NUMERICIDENTIFIER]})`),E("MAINVERSIONLOOSE",`(${c[f.NUMERICIDENTIFIERLOOSE]})\\.(${c[f.NUMERICIDENTIFIERLOOSE]})\\.(${c[f.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASEIDENTIFIER",`(?:${c[f.NUMERICIDENTIFIER]}|${c[f.NONNUMERICIDENTIFIER]})`),E("PRERELEASEIDENTIFIERLOOSE",`(?:${c[f.NUMERICIDENTIFIERLOOSE]}|${c[f.NONNUMERICIDENTIFIER]})`),E("PRERELEASE",`(?:-(${c[f.PRERELEASEIDENTIFIER]}(?:\\.${c[f.PRERELEASEIDENTIFIER]})*))`),E("PRERELEASELOOSE",`(?:-?(${c[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[f.PRERELEASEIDENTIFIERLOOSE]})*))`),E("BUILDIDENTIFIER",`${h}+`),E("BUILD",`(?:\\+(${c[f.BUILDIDENTIFIER]}(?:\\.${c[f.BUILDIDENTIFIER]})*))`),E("FULLPLAIN",`v?${c[f.MAINVERSION]}${c[f.PRERELEASE]}?${c[f.BUILD]}?`),E("FULL",`^${c[f.FULLPLAIN]}$`),E("LOOSEPLAIN",`[v=\\s]*${c[f.MAINVERSIONLOOSE]}${c[f.PRERELEASELOOSE]}?${c[f.BUILD]}?`),E("LOOSE",`^${c[f.LOOSEPLAIN]}$`),E("GTLT","((?:<|>)?=?)"),E("XRANGEIDENTIFIERLOOSE",`${c[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),E("XRANGEIDENTIFIER",`${c[f.NUMERICIDENTIFIER]}|x|X|\\*`),E("XRANGEPLAIN",`[v=\\s]*(${c[f.XRANGEIDENTIFIER]})(?:\\.(${c[f.XRANGEIDENTIFIER]})(?:\\.(${c[f.XRANGEIDENTIFIER]})(?:${c[f.PRERELEASE]})?${c[f.BUILD]}?)?)?`),E("XRANGEPLAINLOOSE",`[v=\\s]*(${c[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[f.XRANGEIDENTIFIERLOOSE]})(?:${c[f.PRERELEASELOOSE]})?${c[f.BUILD]}?)?)?`),E("XRANGE",`^${c[f.GTLT]}\\s*${c[f.XRANGEPLAIN]}$`),E("XRANGELOOSE",`^${c[f.GTLT]}\\s*${c[f.XRANGEPLAINLOOSE]}$`),E("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),E("COERCE",`${c[f.COERCEPLAIN]}(?:$|[^\\d])`),E("COERCEFULL",c[f.COERCEPLAIN]+`(?:${c[f.PRERELEASE]})?`+`(?:${c[f.BUILD]})?(?:$|[^\\d])`),E("COERCERTL",c[f.COERCE],!0),E("COERCERTLFULL",c[f.COERCEFULL],!0),E("LONETILDE","(?:~>?)"),E("TILDETRIM",`(\\s*)${c[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",E("TILDE",`^${c[f.LONETILDE]}${c[f.XRANGEPLAIN]}$`),E("TILDELOOSE",`^${c[f.LONETILDE]}${c[f.XRANGEPLAINLOOSE]}$`),E("LONECARET","(?:\\^)"),E("CARETTRIM",`(\\s*)${c[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",E("CARET",`^${c[f.LONECARET]}${c[f.XRANGEPLAIN]}$`),E("CARETLOOSE",`^${c[f.LONECARET]}${c[f.XRANGEPLAINLOOSE]}$`),E("COMPARATORLOOSE",`^${c[f.GTLT]}\\s*(${c[f.LOOSEPLAIN]})$|^$`),E("COMPARATOR",`^${c[f.GTLT]}\\s*(${c[f.FULLPLAIN]})$|^$`),E("COMPARATORTRIM",`(\\s*)${c[f.GTLT]}\\s*(${c[f.LOOSEPLAIN]}|${c[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",E("HYPHENRANGE",`^\\s*(${c[f.XRANGEPLAIN]})\\s+-\\s+(${c[f.XRANGEPLAIN]})\\s*$`),E("HYPHENRANGELOOSE",`^\\s*(${c[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[f.XRANGEPLAINLOOSE]})\\s*$`),E("STAR","(<|>)?=?\\s*\\*"),E("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),E("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},1086:(e,t,r)=>{const n=r(244);e.exports=(e,t,r)=>n(t,e,r)},1108:(e,t,r)=>{const n=r(6280);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},1370:(e,t,r)=>{const n=r(8951);e.exports=(e,t,r)=>n(e,t,"<",r)},1414:e=>{const t=/()(.+)/gi;function r(e){const t=e.match(/[^\r\n]/);if(!t)return"";const r=t.index;let n=e.length-1;for(;"\r"===e[n]||"\n"===e[n];)n--;return e.substring(r,n+1)}function n(e,t){return e?e+="\n"+t:e=t,e}function o(e,r){const n=[];let o,s;const i=null!==e.match(r.references)?r.references:t;for(;o=i.exec(e);){const e=o[1]||null,t=o[2];for(;s=r.referenceParts.exec(t);){let t=null,r=s[1]||"";const o=r.split("/");o.length>1&&(t=o.shift(),r=o.join("/"));const i={action:e,owner:t,repository:r||null,issue:s[3],raw:s[0],prefix:s[2]};n.push(i)}}return n}function s(){return!0}e.exports=function(e,t,i){if(!e||!e.trim())throw new TypeError("Expected a raw commit");if(!t||"object"==typeof t&&!Object.keys(t).length)throw new TypeError("Expected options");if(!i)throw new TypeError("Expected regex");let a,u;const c={},l="string"==typeof t.commentChar?(f=t.commentChar,function(e){return e.charAt(0)!==f}):s;var f;const p=function(e){const t=e.indexOf("# ------------------------ >8 ------------------------");return-1===t?e:e.slice(0,t)}(r(e).split(/\r?\n/)).filter(l).filter((e=>!e.match(/^\s*gpg:/)));let h=!1,d=!0;const E=t.headerCorrespondence?.map((function(e){return e.trim()}))||[],m=t.revertCorrespondence?.map((function(e){return e.trim()}))||[],g=t.mergeCorrespondence?.map((function(e){return e.trim()}))||[];let y=null,v=null,$=null;const x=[];let b=null;const R=[],I=[];let A=null;if(0===p.length)return{body:y,footer:v,header:$,mentions:x,merge:b,notes:R,references:I,revert:A,scope:null,subject:null,type:null};b=p.shift();const w={},O={};y="",v="";const L=b.match(t.mergePattern);if(L&&t.mergePattern){for(b=L[0],$=p.shift();void 0!==$&&!$.trim();)$=p.shift();$||($=""),g.forEach((function(e,t){const r=L[t+1]||null;w[e]=r}))}else $=b,b=null,g.forEach((function(e){w[e]=null}));const N=$.match(t.headerPattern);if(N?E.forEach((function(e,t){const r=N[t+1]||null;O[e]=r})):E.forEach((function(e){O[e]=null})),I.push(...o($,{references:i.references,referenceParts:i.referenceParts})),p.forEach((function(e){if(t.fieldPattern){const r=t.fieldPattern.exec(e);if(r)return void(a=r[1]);if(a)return void(c[a]=n(c[a],e))}let r;const s=e.match(i.notes);if(s){h=!0,d=!1,v=n(v,e);const t={title:s[1],text:s[2]};return void R.push(t)}const u=o(e,{references:i.references,referenceParts:i.referenceParts});if(u.length>0&&(d=!1,r=!0,h=!1),Array.prototype.push.apply(I,u),!r)return h?(R[R.length-1].text=n(R[R.length-1].text,e),void(v=n(v,e))):void(d?y=n(y,e):v=n(v,e));v=n(v,e)})),t.breakingHeaderPattern&&0===R.length){const e=$.match(t.breakingHeaderPattern);if(e){const t=e[3];R.push({title:"BREAKING CHANGE",text:t})}}for(;u=i.mentions.exec(e);)x.push(u[1]);const j=e.match(t.revertPattern);return j?(A={},m.forEach((function(e,t){const r=j[t+1]||null;A[e]=r}))):A=null,R.forEach((function(e){e.text=r(e.text)})),{...O,...w,merge:b,header:$,body:y?r(y):null,footer:v?r(v):null,notes:R,references:I,mentions:x,revert:A,...c}}},1521:(e,t,r)=>{const n=r(6280);e.exports=(e,t,r)=>{const o=new n(e,r),s=new n(t,r);return o.compare(s)||o.compareBuild(s)}},1802:(e,t,r)=>{const n=r(1108);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},1917:(e,t,r)=>{const n=r(244);e.exports=(e,t,r)=>n(e,t,r)>=0},1974:(e,t,r)=>{const n=r(6280);e.exports=(e,t)=>new n(e,t).major},2298:(e,t,r)=>{const n=r(3643);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},2312:(e,t,r)=>{const n=r(3643);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},2547:(e,t,r)=>{const n=r(6280);e.exports=(e,t,r,o,s)=>{"string"==typeof r&&(s=o,o=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,o,s).version}catch(e){return null}}},2589:(e,t,r)=>{const n=r(244);e.exports=(e,t,r)=>0===n(e,t,r)},2619:(e,t,r)=>{const n=r(1521);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},2847:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},2856:e=>{e.exports=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)}},2922:(e,t,r)=>{const n=r(6280),o=r(3643);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}},2947:(e,t,r)=>{const n=r(2589),o=r(8411),s=r(8864),i=r(1917),a=r(6279),u=r(8692);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,c);case"!=":return o(e,r,c);case">":return s(e,r,c);case">=":return i(e,r,c);case"<":return a(e,r,c);case"<=":return u(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},3158:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},3460:(e,t,r)=>{const n=r(3643),o=r(7636),{ANY:s}=o,i=r(2298),a=r(244),u=[new o(">=0.0.0-0")],c=[new o(">=0.0.0")],l=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=r.includePrerelease?u:c}if(1===t.length&&t[0].semver===s){if(r.includePrerelease)return!0;t=c}const n=new Set;let o,l,h,d,E,m,g;for(const t of e)">"===t.operator||">="===t.operator?o=f(o,t,r):"<"===t.operator||"<="===t.operator?l=p(l,t,r):n.add(t.semver);if(n.size>1)return null;if(o&&l){if(h=a(o.semver,l.semver,r),h>0)return null;if(0===h&&(">="!==o.operator||"<="!==l.operator))return null}for(const e of n){if(o&&!i(e,String(o),r))return null;if(l&&!i(e,String(l),r))return null;for(const n of t)if(!i(e,String(n),r))return!1;return!0}let y=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,v=!(!o||r.includePrerelease||!o.semver.prerelease.length)&&o.semver;y&&1===y.prerelease.length&&"<"===l.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,o)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(d=f(o,e,r),d===e&&d!==o)return!1}else if(">="===o.operator&&!i(o.semver,String(e),r))return!1;if(l)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(E=p(l,e,r),E===e&&E!==l)return!1}else if("<="===l.operator&&!i(l.semver,String(e),r))return!1;if(!e.operator&&(l||o)&&0!==h)return!1}return!(o&&m&&!l&&0!==h||l&&g&&!o&&0!==h||v||y)},f=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=l(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},3643:(e,t,r)=>{const n=/\s+/g;class o{constructor(e,t){if(t=i(t),e instanceof o)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new o(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&E)|(this.options.loose&&m))+":"+e,r=s.get(t);if(r)return r;const n=this.options.loose,o=n?l[f.HYPHENRANGELOOSE]:l[f.HYPHENRANGE];e=e.replace(o,j(this.options.includePrerelease)),u("hyphen replace",e),e=e.replace(l[f.COMPARATORTRIM],p),u("comparator trim",e),e=e.replace(l[f.TILDETRIM],h),u("tilde trim",e),e=e.replace(l[f.CARETTRIM],d),u("caret trim",e);let i=e.split(" ").map((e=>$(e,this.options))).join(" ").split(/\s+/).map((e=>N(e,this.options)));n&&(i=i.filter((e=>(u("loose invalid filter",e,this.options),!!e.match(l[f.COMPARATORLOOSE]))))),u("range list",i);const c=new Map,y=i.map((e=>new a(e,this.options)));for(const e of y){if(g(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const v=[...c.values()];return s.set(t,v),v}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Range is required");return this.set.some((r=>v(r,t)&&e.set.some((e=>v(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(S(this.set[t],e,this.options))return!0;return!1}}e.exports=o;const s=new(r(3158)),i=r(327),a=r(7636),u=r(8244),c=r(6280),{safeRe:l,t:f,comparatorTrimReplace:p,tildeTrimReplace:h,caretTrimReplace:d}=r(722),{FLAG_INCLUDE_PRERELEASE:E,FLAG_LOOSE:m}=r(7374),g=e=>"<0.0.0-0"===e.value,y=e=>""===e.value,v=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},$=(e,t)=>(u("comp",e,t),e=I(e,t),u("caret",e),e=b(e,t),u("tildes",e),e=w(e,t),u("xrange",e),e=L(e,t),u("stars",e),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>R(e,t))).join(" "),R=(e,t)=>{const r=t.loose?l[f.TILDELOOSE]:l[f.TILDE];return e.replace(r,((t,r,n,o,s)=>{let i;return u("tilde",e,t,r,n,o,s),x(r)?i="":x(n)?i=`>=${r}.0.0 <${+r+1}.0.0-0`:x(o)?i=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(u("replaceTilde pr",s),i=`>=${r}.${n}.${o}-${s} <${r}.${+n+1}.0-0`):i=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,u("tilde return",i),i}))},I=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{u("caret",e,t);const r=t.loose?l[f.CARETLOOSE]:l[f.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,o,s,i)=>{let a;return u("caret",e,t,r,o,s,i),x(r)?a="":x(o)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:x(s)?a="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:i?(u("replaceCaret pr",i),a="0"===r?"0"===o?`>=${r}.${o}.${s}-${i} <${r}.${o}.${+s+1}-0`:`>=${r}.${o}.${s}-${i} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${s}-${i} <${+r+1}.0.0-0`):(u("no pr"),a="0"===r?"0"===o?`>=${r}.${o}.${s}${n} <${r}.${o}.${+s+1}-0`:`>=${r}.${o}.${s}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${s} <${+r+1}.0.0-0`),u("caret return",a),a}))},w=(e,t)=>(u("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?l[f.XRANGELOOSE]:l[f.XRANGE];return e.replace(r,((r,n,o,s,i,a)=>{u("xRange",e,r,n,o,s,i,a);const c=x(o),l=c||x(s),f=l||x(i),p=f;return"="===n&&p&&(n=""),a=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(l&&(s=0),i=0,">"===n?(n=">=",l?(o=+o+1,s=0,i=0):(s=+s+1,i=0)):"<="===n&&(n="<",l?o=+o+1:s=+s+1),"<"===n&&(a="-0"),r=`${n+o}.${s}.${i}${a}`):l?r=`>=${o}.0.0${a} <${+o+1}.0.0-0`:f&&(r=`>=${o}.${s}.0${a} <${o}.${+s+1}.0-0`),u("xRange return",r),r}))},L=(e,t)=>(u("replaceStars",e,t),e.trim().replace(l[f.STAR],"")),N=(e,t)=>(u("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?f.GTE0PRE:f.GTE0],"")),j=e=>(t,r,n,o,s,i,a,u,c,l,f,p)=>`${r=x(n)?"":x(o)?`>=${n}.0.0${e?"-0":""}`:x(s)?`>=${n}.${o}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=x(c)?"":x(l)?`<${+c+1}.0.0-0`:x(f)?`<${c}.${+l+1}.0-0`:p?`<=${c}.${l}.${f}-${p}`:e?`<${c}.${l}.${+f+1}-0`:`<=${u}`}`.trim(),S=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(u(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},4017:(e,t,r)=>{const n=r(722),o=r(7374),s=r(6280),i=r(2847),a=r(1108),u=r(6733),c=r(1802),l=r(2547),f=r(4116),p=r(1974),h=r(8386),d=r(353),E=r(4605),m=r(244),g=r(1086),y=r(5583),v=r(1521),$=r(2619),x=r(7041),b=r(8864),R=r(6279),I=r(2589),A=r(8411),w=r(1917),O=r(8692),L=r(2947),N=r(5398),j=r(7636),S=r(3643),T=r(2298),C=r(8107),P=r(9296),G=r(2922),U=r(5329),D=r(6742),M=r(8951),F=r(4607),_=r(1370),k=r(2312),z=r(7625),X=r(3460);e.exports={parse:a,valid:u,clean:c,inc:l,diff:f,major:p,minor:h,patch:d,prerelease:E,compare:m,rcompare:g,compareLoose:y,compareBuild:v,sort:$,rsort:x,gt:b,lt:R,eq:I,neq:A,gte:w,lte:O,cmp:L,coerce:N,Comparator:j,Range:S,satisfies:T,toComparators:C,maxSatisfying:P,minSatisfying:G,minVersion:U,validRange:D,outside:M,gtr:F,ltr:_,intersects:k,simplifyRange:z,subset:X,SemVer:s,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},4116:(e,t,r)=>{const n=r(1108);e.exports=(e,t)=>{const r=n(e,null,!0),o=n(t,null,!0),s=r.compare(o);if(0===s)return null;const i=s>0,a=i?r:o,u=i?o:r,c=!!a.prerelease.length;if(u.prerelease.length&&!c){if(!u.patch&&!u.minor)return"major";if(0===u.compareMain(a))return u.minor&&!u.patch?"minor":"patch"}const l=c?"pre":"";return r.major!==o.major?l+"major":r.minor!==o.minor?l+"minor":r.patch!==o.patch?l+"patch":"prerelease"}},4605:(e,t,r)=>{const n=r(1108);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},4607:(e,t,r)=>{const n=r(8951);e.exports=(e,t,r)=>n(e,t,">",r)},5030:e=>{var t,r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",i="\\u20d0-\\u20f0",a="\\u2700-\\u27bf",u="a-z\\xdf-\\xf6\\xf8-\\xff",c="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\ufe0e\\ufe0f",f="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="["+o+"]",h="["+f+"]",d="["+s+i+"]",E="\\d+",m="["+a+"]",g="["+u+"]",y="[^"+o+f+E+a+u+c+"]",v="\\ud83c[\\udffb-\\udfff]",$="[^"+o+"]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",R="["+c+"]",I="\\u200d",A="(?:"+g+"|"+y+")",w="(?:"+R+"|"+y+")",O="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",L="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",N="(?:"+d+"|"+v+")?",j="["+l+"]?",S=j+N+"(?:"+I+"(?:"+[$,x,b].join("|")+")"+j+N+")*",T="(?:"+[m,x,b].join("|")+")"+S,C="(?:"+[$+d+"?",d,x,b,p].join("|")+")",P=RegExp("['\u2019]","g"),G=RegExp(d,"g"),U=RegExp(v+"(?="+v+")|"+C+S,"g"),D=RegExp([R+"?"+g+"+"+O+"(?="+[h,R,"$"].join("|")+")",w+"+"+L+"(?="+[h,R+A,"$"].join("|")+")",R+"?"+A+"+"+O,R+"+"+L,E,T].join("|"),"g"),M=RegExp("["+I+o+s+i+l+"]"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_="object"==typeof global&&global&&global.Object===Object&&global,k="object"==typeof self&&self&&self.Object===Object&&self,z=_||k||Function("return this")(),X=(t={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"ss"},function(e){return null==t?void 0:t[e]});function Z(e){return M.test(e)}var B=Object.prototype.toString,H=z.Symbol,W=H?H.prototype:void 0,Y=W?W.toString:void 0;function V(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==B.call(e)}(e))return Y?Y.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var K,J=(K=function(e,t,r){return e+(r?" ":"")+q(t)},function(e){return function(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)r=t(r,e[n],n,e);return r}(function(e,t){return e=V(e),void 0===t?function(e){return F.test(e)}(e)?function(e){return e.match(D)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=V(e))&&e.replace(n,X).replace(G,"")}(e).replace(P,"")),K,"")}),q=function(e){var t,r,n,o,s=Z(e=V(e))?function(e){return Z(e)?function(e){return e.match(U)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,i=s?s[0]:e.charAt(0),a=s?(t=s,r=1,o=t.length,n=void 0===n?o:n,!r&&n>=o?t:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++n<o;)s[n]=e[n+t];return s}(t,r,n)).join(""):e.slice(1);return i.toUpperCase()+a};e.exports=J},5254:e=>{var t="\\ud800-\\udfff",r="\\u0300-\\u036f\\ufe20-\\ufe23",n="\\u20d0-\\u20f0",o="\\ufe0e\\ufe0f",s="["+t+"]",i="["+r+n+"]",a="\\ud83c[\\udffb-\\udfff]",u="[^"+t+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",f="\\u200d",p="(?:"+i+"|"+a+")?",h="["+o+"]?",d=h+p+"(?:"+f+"(?:"+[u,c,l].join("|")+")"+h+p+")*",E="(?:"+[u+i+"?",i,c,l,s].join("|")+")",m=RegExp(a+"(?="+a+")|"+E+d,"g"),g=RegExp("["+f+t+r+n+o+"]"),y="object"==typeof global&&global&&global.Object===Object&&global,v="object"==typeof self&&self&&self.Object===Object&&self,$=y||v||Function("return this")();function x(e){return g.test(e)}var b=Object.prototype.toString,R=$.Symbol,I=R?R.prototype:void 0,A=I?I.toString:void 0;var w=function(e){var t,r,n,o,s,i=x(e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t))?function(e){return x(e)?function(e){return e.match(m)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,a=i?i[0]:e.charAt(0),u=i?(r=i,n=1,s=r.length,o=void 0===o?s:o,!n&&o>=s?r:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++n<o;)s[n]=e[n+t];return s}(r,n,o)).join(""):e.slice(1);return a.toUpperCase()+u};e.exports=w},5329:(e,t,r)=>{const n=r(6280),o=r(3643),s=r(8864);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const o=e.set[t];let i=null;o.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!s(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||r&&!s(r,i)||(r=i)}return r&&e.test(r)?r:null}},5398:(e,t,r)=>{const n=r(6280),o=r(1108),{safeRe:s,t:i}=r(722);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?s[i.COERCERTLFULL]:s[i.COERCERTL];let o;for(;(o=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&o.index+o[0].length===r.index+r[0].length||(r=o),n.lastIndex=o.index+o[1].length+o[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?s[i.COERCEFULL]:s[i.COERCE]);if(null===r)return null;const a=r[2],u=r[3]||"0",c=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",f=t.includePrerelease&&r[6]?`+${r[6]}`:"";return o(`${a}.${u}.${c}${l}${f}`,t)}},5583:(e,t,r)=>{const n=r(244);e.exports=(e,t)=>n(e,t,!0)},6004:(e,t,r)=>{const n=r(2856),o=["__proto__","prototype","constructor"];function s(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return r.some((e=>o.includes(e)))?[]:r}e.exports={get(e,t,r){if(!n(e)||"string"!=typeof t)return void 0===r?e:r;const o=s(t);if(0!==o.length){for(let t=0;t<o.length;t++){if(!Object.prototype.propertyIsEnumerable.call(e,o[t]))return r;if(null==(e=e[o[t]])){if(t!==o.length-1)return r;break}}return e}},set(e,t,r){if(!n(e)||"string"!=typeof t)return e;const o=e,i=s(t);for(let t=0;t<i.length;t++){const o=i[t];n(e[o])||(e[o]={}),t===i.length-1&&(e[o]=r),e=e[o]}return o},delete(e,t){if(!n(e)||"string"!=typeof t)return!1;const r=s(t);for(let t=0;t<r.length;t++){const o=r[t];if(t===r.length-1)return delete e[o],!0;if(e=e[o],!n(e))return!1}},has(e,t){if(!n(e)||"string"!=typeof t)return!1;const r=s(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!n(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}}},6226:e=>{e.exports.createConventionalRecommendedBumpOpts=function(e){return{parserOpts:e,whatBump(e){let t=2,r=0,n=0;return e.forEach((e=>{e.notes.length>0?(r+=e.notes.length,t=0):"feat"===e.type&&(n+=1,2===t&&(t=1))})),{level:t,reason:1===r?`There is ${r} BREAKING CHANGE and ${n} features`:`There are ${r} BREAKING CHANGES and ${n} features`}}}}},6279:(e,t,r)=>{const n=r(244);e.exports=(e,t,r)=>n(e,t,r)<0},6280:(e,t,r)=>{const n=r(8244),{MAX_LENGTH:o,MAX_SAFE_INTEGER:s}=r(7374),{safeRe:i,safeSrc:a,t:u}=r(722),c=r(327),{compareIdentifiers:l}=r(2847);class f{constructor(e,t){if(t=c(t),e instanceof f){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[u.LOOSE]:i[u.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof f)){if("string"==typeof e&&e===this.version)return 0;e=new f(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof f||(e=new f(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof f||(e=new f(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return l(r,o)}while(++t)}compareBuild(e){e instanceof f||(e=new f(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("build compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return l(r,o)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=new RegExp(`^${this.options.loose?a[u.PRERELEASELOOSE]:a[u.PRERELEASE]}$`),r=`-${t}`.match(e);if(!r||r[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=f},6443:e=>{e.exports.createConventionalChangelogOpts=function(e,t){return{parserOpts:e,writerOpts:t}}},6733:(e,t,r)=>{const n=r(1108);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},6742:(e,t,r)=>{const n=r(3643);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},7041:(e,t,r)=>{const n=r(1521);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},7374:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7475:(e,t,r)=>{const{createParserOpts:n}=r(9678),{createWriterOpts:o}=r(9550),{createConventionalChangelogOpts:s}=r(6443),{createConventionalRecommendedBumpOpts:i}=r(6226);e.exports=async function(){const e=n(),t=await o();return{parserOpts:e,writerOpts:t,recommendedBumpOpts:i(e),conventionalChangelog:s(e,t)}}},7531:e=>{e.exports=function(e){return Array.isArray(e)?e:[e]}},7625:(e,t,r)=>{const n=r(2298),o=r(244);e.exports=(e,t,r)=>{const s=[];let i=null,a=null;const u=e.sort(((e,t)=>o(e,t,r)));for(const e of u)n(e,t,r)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const c=[];for(const[e,t]of s)e===t?c.push(e):t||e!==u[0]?t?e===u[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const l=c.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return l.length<f.length?l:t}},7636:(e,t,r)=>{const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t=s(t),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(e.value,t).test(this.value):""===e.operator?""===e.value||new f(this.value,t).test(e.semver):!((t=s(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=o;const s=r(327),{safeRe:i,t:a}=r(722),u=r(2947),c=r(8244),l=r(6280),f=r(3643)},8107:(e,t,r)=>{const n=r(3643);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},8118:e=>{var t,r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",s="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",c="["+u+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",f="\\d+",p="["+s+"]",h="["+i+"]",d="[^"+o+u+f+s+i+a+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="["+a+"]",y="(?:"+h+"|"+d+")",v="(?:"+g+"|"+d+")",$="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",x="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",b="(?:"+l+"|\\ud83c[\\udffb-\\udfff])?",R="[\\ufe0e\\ufe0f]?",I=R+b+"(?:\\u200d(?:"+["[^"+o+"]",E,m].join("|")+")"+R+b+")*",A="(?:"+[p,E,m].join("|")+")"+I,w=RegExp("['\u2019]","g"),O=RegExp(l,"g"),L=RegExp([g+"?"+h+"+"+$+"(?="+[c,g,"$"].join("|")+")",v+"+"+x+"(?="+[c,g+y,"$"].join("|")+")",g+"?"+y+"+"+$,g+"+"+x,f,A].join("|"),"g"),N=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,j="object"==typeof global&&global&&global.Object===Object&&global,S="object"==typeof self&&self&&self.Object===Object&&self,T=j||S||Function("return this")(),C=(t={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"ss"},function(e){return null==t?void 0:t[e]}),P=Object.prototype.toString,G=T.Symbol,U=G?G.prototype:void 0,D=U?U.toString:void 0;function M(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==P.call(e)}(e))return D?D.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var F,_=(F=function(e,t,r){return e+(r?"_":"")+t.toLowerCase()},function(e){return function(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)r=t(r,e[n],n,e);return r}(function(e,t){return e=M(e),void 0===t?function(e){return N.test(e)}(e)?function(e){return e.match(L)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=M(e))&&e.replace(n,C).replace(O,"")}(e).replace(w,"")),F,"")});e.exports=_},8244:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},8386:(e,t,r)=>{const n=r(6280);e.exports=(e,t)=>new n(e,t).minor},8411:(e,t,r)=>{const n=r(244);e.exports=(e,t,r)=>0!==n(e,t,r)},8518:e=>{const t=/(?!.*)/;function r(e,t){return e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join(t)}e.exports=function(e){return{notes:function(e,n){if(!e)return t;const o=r(e,"|");return n?n(o):new RegExp("^[\\s|*]*("+o+")[:\\s]+(.*)","i")}((e=e||{}).noteKeywords,e.notesPattern),referenceParts:function(e,n){if(!e)return t;const o=n?"g":"gi";return new RegExp("(?:.*?)??\\s*([\\w-\\.\\/]*?)??("+r(e,"|")+")([\\w-]*\\d+)",o)}(e.issuePrefixes,e.issuePrefixesCaseSensitive),references:function(e){if(!e)return/()(.+)/gi;const t=r(e,"|");return new RegExp("("+t+")(?:\\s+(.*?))(?=(?:"+t+")|$)","gi")}(e.referenceActions),mentions:/@([\w-]+)/g}}},8692:(e,t,r)=>{const n=r(244);e.exports=(e,t,r)=>n(e,t,r)<=0},8864:(e,t,r)=>{const n=r(244);e.exports=(e,t,r)=>n(e,t,r)>0},8951:(e,t,r)=>{const n=r(6280),o=r(7636),{ANY:s}=o,i=r(3643),a=r(2298),u=r(8864),c=r(6279),l=r(8692),f=r(1917);e.exports=(e,t,r,p)=>{let h,d,E,m,g;switch(e=new n(e,p),t=new i(t,p),r){case">":h=u,d=l,E=c,m=">",g=">=";break;case"<":h=c,d=f,E=u,m="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,a=null;if(n.forEach((e=>{e.semver===s&&(e=new o(">=0.0.0")),i=i||e,a=a||e,h(e.semver,i.semver,p)?i=e:E(e.semver,a.semver,p)&&(a=e)})),i.operator===m||i.operator===g)return!1;if((!a.operator||a.operator===m)&&d(e,a.semver))return!1;if(a.operator===g&&E(e,a.semver))return!1}return!0}},9184:(e,t,r)=>{var n=r(7531),o=r(6004).get;e.exports=function(e){return function(t,r){var s=0;return n(e).some((function(e){var n,i;if("function"==typeof e?(n=e(t),i=e(r)):"string"==typeof e?(n=o(t,e),i=o(r,e)):(n=t,i=r),n!==i)return"string"==typeof n&&"string"==typeof i?0!==(s=n.localeCompare(i)):(s=n<i?-1:1,!0);s=0})),s}}},9296:(e,t,r)=>{const n=r(6280),o=r(3643);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}},9550:(e,t,r)=>{const n=r(9184);e.exports.createWriterOpts=async function(){return{transform:(e,t)=>{let r=!0;const n=[];if(e.notes.forEach((e=>{e.title="BREAKING CHANGES",r=!1})),"feat"===e.type)e.type="Features";else if("fix"===e.type)e.type="Bug Fixes";else if("perf"===e.type)e.type="Performance Improvements";else if("revert"===e.type||e.revert)e.type="Reverts";else{if(r)return;"docs"===e.type?e.type="Documentation":"style"===e.type?e.type="Styles":"refactor"===e.type?e.type="Code Refactoring":"test"===e.type?e.type="Tests":"build"===e.type?e.type="Build System":"ci"===e.type&&(e.type="Continuous Integration")}if("*"===e.scope&&(e.scope=""),"string"==typeof e.hash&&(e.shortHash=e.hash.substring(0,7)),"string"==typeof e.subject){let r=t.repository?`${t.host}/${t.owner}/${t.repository}`:t.repoUrl;r&&(r=`${r}/issues/`,e.subject=e.subject.replace(/#([0-9]+)/g,((e,t)=>(n.push(t),`[#${t}](${r}${t})`)))),t.host&&(e.subject=e.subject.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g,((e,r)=>r.includes("/")?`@${r}`:`[@${r}](${t.host}/${r})`)))}return e.references=e.references.filter((e=>-1===n.indexOf(e.issue))),e},groupBy:"type",commitGroupsSort:"title",commitsSort:["scope","subject"],noteGroupsSort:"title",notesSort:n}}},9678:e=>{e.exports.createParserOpts=function(){return{headerPattern:/^(\w*)(?:\((.*)\))?: (.*)$/,headerCorrespondence:["type","scope","subject"],noteKeywords:["BREAKING CHANGE"],revertPattern:/^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,revertCorrespondence:["header","hash"]}}},9793:(e,t,r)=>{const{Transform:n}=r(2203),o=r(1414),s=r(8518);function i(e){return"string"==typeof(e={headerPattern:/^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$/,headerCorrespondence:["type","scope","subject"],referenceActions:["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],issuePrefixes:["#"],noteKeywords:["BREAKING CHANGE","BREAKING-CHANGE"],fieldPattern:/^-(.*?)-$/,revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,revertCorrespondence:["header","hash"],warn:function(){},mergePattern:null,mergeCorrespondence:null,...e}).headerPattern&&(e.headerPattern=new RegExp(e.headerPattern)),"string"==typeof e.headerCorrespondence&&(e.headerCorrespondence=e.headerCorrespondence.split(",")),"string"==typeof e.referenceActions&&(e.referenceActions=e.referenceActions.split(",")),"string"==typeof e.issuePrefixes&&(e.issuePrefixes=e.issuePrefixes.split(",")),"string"==typeof e.noteKeywords&&(e.noteKeywords=e.noteKeywords.split(",")),"string"==typeof e.fieldPattern&&(e.fieldPattern=new RegExp(e.fieldPattern)),"string"==typeof e.revertPattern&&(e.revertPattern=new RegExp(e.revertPattern)),"string"==typeof e.revertCorrespondence&&(e.revertCorrespondence=e.revertCorrespondence.split(",")),"string"==typeof e.mergePattern&&(e.mergePattern=new RegExp(e.mergePattern)),e}e.exports=function(e){e=i(e);const t=s(e);return new n({objectMode:!0,highWaterMark:16,transform(r,n,s){let i;try{i=o(r.toString(),e,t),s(null,i)}catch(t){!0===e.warn?s(t):(e.warn(t.toString()),s(null,""))}}})},e.exports.sync=function(e,t){t=i(t);const r=s(t);return o(e,t,r)}},9899:e=>{var t,r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",i="\\u20d0-\\u20f0",a="\\u2700-\\u27bf",u="a-z\\xdf-\\xf6\\xf8-\\xff",c="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\ufe0e\\ufe0f",f="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="["+o+"]",h="["+f+"]",d="["+s+i+"]",E="\\d+",m="["+a+"]",g="["+u+"]",y="[^"+o+f+E+a+u+c+"]",v="\\ud83c[\\udffb-\\udfff]",$="[^"+o+"]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",R="["+c+"]",I="\\u200d",A="(?:"+g+"|"+y+")",w="(?:"+R+"|"+y+")",O="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",L="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",N="(?:"+d+"|"+v+")?",j="["+l+"]?",S=j+N+"(?:"+I+"(?:"+[$,x,b].join("|")+")"+j+N+")*",T="(?:"+[m,x,b].join("|")+")"+S,C="(?:"+[$+d+"?",d,x,b,p].join("|")+")",P=RegExp("['\u2019]","g"),G=RegExp(d,"g"),U=RegExp(v+"(?="+v+")|"+C+S,"g"),D=RegExp([R+"?"+g+"+"+O+"(?="+[h,R,"$"].join("|")+")",w+"+"+L+"(?="+[h,R+A,"$"].join("|")+")",R+"?"+A+"+"+O,R+"+"+L,E,T].join("|"),"g"),M=RegExp("["+I+o+s+i+l+"]"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_="object"==typeof global&&global&&global.Object===Object&&global,k="object"==typeof self&&self&&self.Object===Object&&self,z=_||k||Function("return this")(),X=(t={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"ss"},function(e){return null==t?void 0:t[e]});function Z(e){return M.test(e)}var B=Object.prototype.toString,H=z.Symbol,W=H?H.prototype:void 0,Y=W?W.toString:void 0;function V(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==B.call(e)}(e))return Y?Y.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var K,J=(K=function(e,t,r){return t=t.toLowerCase(),e+(r?q(V(t).toLowerCase()):t)},function(e){return function(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)r=t(r,e[n],n,e);return r}(function(e,t){return e=V(e),void 0===t?function(e){return F.test(e)}(e)?function(e){return e.match(D)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=V(e))&&e.replace(n,X).replace(G,"")}(e).replace(P,"")),K,"")}),q=function(e){var t,r,n,o,s=Z(e=V(e))?function(e){return Z(e)?function(e){return e.match(U)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,i=s?s[0]:e.charAt(0),a=s?(t=s,r=1,o=t.length,n=void 0===n?o:n,!r&&n>=o?t:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++n<o;)s[n]=e[n+t];return s}(t,r,n)).join(""):e.slice(1);return i.toUpperCase()+a};e.exports=J}};
|