mzx-cli 1.0.0

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/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # mzx-cli
2
+ ![Npm 版本](https://img.shields.io/badge/mzx-cli_v0.0.1-green)
3
+
4
+ ## 😃简介
5
+ - 📙用于快速安装vue3学习模版
6
+
7
+ ## 🎁模版
8
+ - [Vue3 Typescript Pinia](https://github.com/MaFantastic/mzx-cli)
9
+
10
+ ## 🌍安装
11
+
12
+ ```bash
13
+ npm install mzx-cli
14
+ ```
15
+
16
+ ## 🪄使用
17
+
18
+ ```bash
19
+ # 使用模版创建
20
+ mzx create
21
+
22
+ # 加项目名字
23
+ mzx create [projectName]
24
+
25
+ ```
package/bin/index.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/user/bin/env node
2
+ require('../dist')//执行打包好的dist/index.js
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";var e=require("commander"),t=require("node:path"),r=require("node:fs"),n=require("node:constants"),s=require("node:stream"),o=require("node:util"),u=require("node:assert"),i=require("node:buffer"),a=require("node:tty"),c=require("node:os"),l=require("node:child_process"),D=require("node:events"),f=require("node:crypto"),h=require("node:readline"),p=require("node:async_hooks"),d=require("node:process");function m(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var g=m(h);const F=(e,t=[])=>"up"===e.name||t.includes("vim")&&"k"===e.name||t.includes("emacs")&&e.ctrl&&"p"===e.name,y=(e,t=[])=>"down"===e.name||t.includes("vim")&&"j"===e.name||t.includes("emacs")&&e.ctrl&&"n"===e.name,b=e=>"backspace"===e.name,w=e=>"enter"===e.name||"return"===e.name;class C extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}}class E extends Error{name="CancelPromptError";message="Prompt was canceled"}class v extends Error{name="ExitPromptError"}class _ extends Error{name="HookError"}class k extends Error{name="ValidationError"}const B=new p.AsyncLocalStorage;function S(){const e=B.getStore();if(!e)throw new _("[Inquirer] Hook functions can only be called from within a prompt");return e}function x(){return S().rl}function T(e){return p.AsyncResource.bind((...t)=>{const r=S();let n=!1;const s=r.handleChange;r.handleChange=()=>{n=!0};const o=e(...t);return n&&s(),r.handleChange=s,o})}function O(e){const t=S(),{index:r}=t,n=e({get:()=>t.hooks[r],set(e){t.hooks[r]=e},initialized:r in t.hooks});return t.index++,n}const A={queue(e){const t=S(),{index:r}=t;t.hooksEffect.push(()=>{t.hooksCleanup[r]?.();const n=e(x());if(null!=n&&"function"!=typeof n)throw new k("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[r]=n})},run(){const e=S();T(()=>{e.hooksEffect.forEach(e=>{e()}),e.hooksEffect.length=0})()},clearAll(){const e=S();e.hooksCleanup.forEach(e=>{e?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function R(e){return O(t=>{const r=p.AsyncResource.bind(function(e){t.get()!==e&&(t.set(e),S().handleChange())});if(t.initialized)return[t.get(),r];const n="function"==typeof e?e():e;return t.set(n),[n,r]})}function M(e,t){O(r=>{const n=r.get();(!Array.isArray(n)||t.some((e,t)=>!Object.is(e,n[t])))&&A.queue(e),r.set(t)})}const P={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},L={...P,tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},j={...P,tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},$=("win32"!==d.platform?"linux"!==d.env.TERM:Boolean(d.env.WT_SESSION)||Boolean(d.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===d.env.ConEmuTask||"Terminus-Sublime"===d.env.TERM_PROGRAM||"vscode"===d.env.TERM_PROGRAM||"xterm-256color"===d.env.TERM||"alacritty"===d.env.TERM||"JetBrains-JediTerm"===d.env.TERMINAL_EMULATOR)?L:j,I={prefix:{idle:o.styleText("blue","?"),done:o.styleText("green",$.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map(e=>o.styleText("yellow",e))},style:{answer:e=>o.styleText("cyan",e),message:e=>o.styleText("bold",e),error:e=>o.styleText("red",`> ${e}`),defaultAnswer:e=>o.styleText("dim",`(${e})`),help:e=>o.styleText("dim",e),highlight:e=>o.styleText("cyan",e),key:e=>o.styleText("cyan",o.styleText("bold",`<${e}>`))}};function N(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function U(...e){const t={};for(const r of e)for(const[e,n]of Object.entries(r)){const r=t[e];t[e]=N(r)&&N(n)?U(r,n):n}return t}function G(...e){return U(...[I,...e.filter(e=>null!=e)])}function q({status:e="idle",theme:t}){const[r,n]=R(!1),[s,o]=R(0),{prefix:u,spinner:i}=G(t);if(M(()=>{if("loading"===e){let e,t=-1;const r=setTimeout(()=>{n(!0),e=setInterval(()=>{t+=1,o(t%i.frames.length)},i.interval)},300);return()=>{clearTimeout(r),clearInterval(e)}}n(!1)},[e]),r)return i.frames[s];return"string"==typeof u?u:u["loading"===e?"idle":e]??u.idle}function z(e,t){return O(r=>{const n=r.get();if(!n||n.dependencies.length!==t.length||n.dependencies.some((e,r)=>e!==t[r])){const n=e();return r.set({value:n,dependencies:t}),n}return n.value})}function W(e){return R({current:e})[0]}function Y(e){const t=W(e);t.current=e,M(e=>{let r=!1;const n=T((n,s)=>{r||t.current(s,e)});return e.input.on("keypress",n),()=>{r=!0,e.input.removeListener("keypress",n)}},[])}var V,H,J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q=K(H?V:(H=1,V=function(e){const t=function(e){const t={defaultWidth:0,output:process.stdout,tty:a};return e?(Object.keys(t).forEach(function(r){e[r]||(e[r]=t[r])}),e):t}(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){const e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&0!==e)return e}return t.defaultWidth}));const X=function({onlyFirst:e=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",e?void 0:"g")}();function Z(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(X,"")}function ee(e,{ambiguousAsWide:t=!1}={}){return function(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}(e),12288===(r=e)||r>=65281&&r<=65376||r>=65504&&r<=65510||function(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9776&&e<=9783||e>=9800&&e<=9811||9855===e||e>=9866&&e<=9871||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||129736===e||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}(e)||t&&function(e){return 161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}(e)?2:1;var r}var te=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;const re=new Intl.Segmenter,ne=/^\p{Default_Ignorable_Code_Point}$/u;function se(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=Z(e)),0===e.length)return 0;let s=0;const o={ambiguousAsWide:!r};for(const{segment:t}of re.segment(e)){const e=t.codePointAt(0);e<=31||e>=127&&e<=159||(e>=8203&&e<=8207||65279===e||e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071||e>=55296&&e<=57343||e>=65024&&e<=65039||ne.test(t)||(te().test(t)?s+=2:s+=ee(e,o)))}return s}const oe=(e=0)=>t=>`[${t+e}m`,ue=(e=0)=>t=>`[${38+e};5;${t}m`,ie=(e=0)=>(t,r,n)=>`[${38+e};2;${t};${r};${n}m`,ae={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(ae.modifier);Object.keys(ae.color),Object.keys(ae.bgColor);const ce=function(){const e=new Map;for(const[t,r]of Object.entries(ae)){for(const[t,n]of Object.entries(r))ae[t]={open:`[${n[0]}m`,close:`[${n[1]}m`},r[t]=ae[t],e.set(n[0],n[1]);Object.defineProperty(ae,t,{value:r,enumerable:!1})}return Object.defineProperty(ae,"codes",{value:e,enumerable:!1}),ae.color.close="",ae.bgColor.close="",ae.color.ansi=oe(),ae.color.ansi256=ue(),ae.color.ansi16m=ie(),ae.bgColor.ansi=oe(10),ae.bgColor.ansi256=ue(10),ae.bgColor.ansi16m=ie(10),Object.defineProperties(ae,{rgbToAnsi256:{value:(e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;3===r.length&&(r=[...r].map(e=>e+e).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:e=>ae.rgbToAnsi256(...ae.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,r,n;if(e>=232)t=(10*(e-232)+8)/255,r=t,n=t;else{const s=(e-=16)%36;t=Math.floor(e/36)/5,r=Math.floor(s/6)/5,n=s%6/5}const s=2*Math.max(t,r,n);if(0===s)return 30;let o=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return 2===s&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,r)=>ae.ansi256ToAnsi(ae.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>ae.ansi256ToAnsi(ae.hexToAnsi256(e)),enumerable:!1}}),ae}(),le=new Set(["","›"]),De="]8;;",fe=e=>`${le.values().next().value}[${e}m`,he=e=>`${le.values().next().value}${De}${e}`,pe=(e,t,r)=>{const n=[...t];let s=!1,o=!1,u=se(Z(e.at(-1)));for(const[t,i]of n.entries()){const a=se(i);if(u+a<=r?e[e.length-1]+=i:(e.push(i),u=0),le.has(i)){s=!0;o=n.slice(t+1,t+1+4).join("")===De}s?o?""===i&&(s=!1,o=!1):"m"===i&&(s=!1):(u+=a,u===r&&t<n.length-1&&(e.push(""),u=0))}!u&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},de=(e,t,r={})=>{if(!1!==r.trim&&""===e.trim())return"";let n,s,o="";const u=(e=>e.split(" ").map(e=>se(e)))(e);let i=[""];for(const[n,s]of e.split(" ").entries()){!1!==r.trim&&(i[i.length-1]=i.at(-1).trimStart());let e=se(i.at(-1));if(0!==n&&(e>=t&&(!1===r.wordWrap||!1===r.trim)&&(i.push(""),e=0),(e>0||!1===r.trim)&&(i[i.length-1]+=" ",e++)),r.hard&&u[n]>t){const r=t-e,o=1+Math.floor((u[n]-r-1)/t);Math.floor((u[n]-1)/t)<o&&i.push(""),pe(i,s,t);continue}if(e+u[n]>t&&e>0&&u[n]>0){if(!1===r.wordWrap&&e<t){pe(i,s,t);continue}i.push("")}e+u[n]>t&&!1===r.wordWrap?pe(i,s,t):i[i.length-1]+=s}!1!==r.trim&&(i=i.map(e=>(e=>{const t=e.split(" ");let r=t.length;for(;r>0&&!(se(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")})(e)));const a=i.join("\n"),c=[...a];let l=0;for(const[e,t]of c.entries()){if(o+=t,le.has(t)){const{groups:e}=new RegExp(`(?:\\[(?<code>\\d+)m|\\${De}(?<uri>.*))`).exec(a.slice(l))||{groups:{}};if(void 0!==e.code){const t=Number.parseFloat(e.code);n=39===t?void 0:t}else void 0!==e.uri&&(s=0===e.uri.length?void 0:e.uri)}const r=ce.codes.get(Number(n));"\n"===c[e+1]?(s&&(o+=he("")),n&&r&&(o+=fe(r))):"\n"===t&&(n&&r&&(o+=fe(n)),s&&(o+=he(s))),l+=t.length}return o};function me(e,t){return e.split("\n").flatMap(e=>{return(r=e,n=t,s={trim:!1,hard:!0},String(r).normalize().replaceAll("\r\n","\n").split("\n").map(e=>de(e,n,s)).join("\n")).split("\n").map(e=>e.trimEnd());var r,n,s}).join("\n")}function ge(){return Q({defaultWidth:80,output:x().output})}function Fe({items:e,active:t,renderItem:r,pageSize:n,loop:s=!0}){const o=ge(),u=t=>(t%e.length+e.length)%e.length,i=e.map((e,n)=>null==e?[]:me(r({item:e,index:n,isActive:n===t}),o).split("\n")),a=i.reduce((e,t)=>e+t.length,0),c=e=>i[e]??[],l=function({active:e,renderedItems:t,pageSize:r,loop:n}){const s=W({lastPointer:e,lastActive:void 0}),{lastPointer:o,lastActive:u}=s.current,i=Math.floor(r/2),a=t.reduce((e,t)=>e+t.length,0),c=t.slice(0,e).reduce((e,t)=>e+t.length,0);let l=c;if(a>r)if(n)l=o,null!=u&&u<e&&e-u<r&&(l=Math.min(i,1===Math.abs(e-u)?Math.min(o+(t[u]?.length??0),Math.max(c,o)):o+e-u));else{const n=t.slice(e).reduce((e,t)=>e+t.length,0);l=n<r-i?r-n:Math.min(c,i)}return s.current.lastPointer=l,s.current.lastActive=e,l}({active:t,renderedItems:i,pageSize:n,loop:s}),D=c(t).slice(0,n),f=l+D.length<=n?l:n-D.length,h=Array.from({length:n});h.splice(f,D.length,...D);const p=new Set([t]);let d=f+D.length,m=u(t+1);for(;d<n&&!p.has(m)&&(s&&a>n?m!==t:m>t);){const e=c(m).slice(0,n-d);h.splice(d,e.length,...e),p.add(m),d+=e.length,m=u(m+1)}for(d=f-1,m=u(t-1);d>=0&&!p.has(m)&&(s&&a>n?m!==t:m<t);){const e=c(m),t=e.slice(Math.max(0,e.length-d-1));h.splice(d-t.length+1,t.length,...t),p.add(m),d-=t.length,m=u(m-1)}return h.filter(e=>"string"==typeof e).join("\n")}var ye,be;var we=function(){if(be)return ye;be=1;const e=s;return ye=class extends e{#e=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#t(e,t){return this._dest?this._dest[e]:this._src?this._src[e]:t}#r(e,...t){"function"==typeof this._dest?.[e]&&this._dest[e](...t),"function"==typeof this._src?.[e]&&this._src[e](...t)}get isTTY(){return null!==this.#e?this.#e:this.#t("isTTY",!1)}set isTTY(e){this.#e=e}get rows(){return this.#t("rows")}get columns(){return this.#t("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,t){return this._dest=e,super.pipe(e,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return 0===e.indexOf(this._prompt)&&(e=(e=e.slice(this._prompt.length)).replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&0===e.indexOf(this._prompt)&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e=e&&this.replace?e.toString().replace(/./g,this.replace):null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#r("destroy",...e)}destroySoon(...e){return this.#r("destroySoon",...e)}close(...e){return this.#r("close",...e)}},ye}(),Ce=K(we);const Ee=[];Ee.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&Ee.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&Ee.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const ve=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,_e=Symbol.for("signal-exit emitter"),ke=globalThis,Be=Object.defineProperty.bind(Object);class Se{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(ke[_e])return ke[_e];Be(ke,_e,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const r=this.listeners[e],n=r.indexOf(t);-1!==n&&(0===n&&1===r.length?r.length=0:r.splice(n,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(const s of this.listeners[e])n=!0===s(t,r)||n;return"exit"===e&&(n=this.emit("afterExit",t,r)||n),n}}class xe{}const Te=globalThis.process,{onExit:Oe}=(Ae=ve(Te)?new class extends xe{#n="win32"===Te.platform?"SIGINT":"SIGHUP";#s=new Se;#o;#u;#i;#a={};#c=!1;constructor(e){super(),this.#o=e,this.#a={};for(const t of Ee)this.#a[t]=()=>{const r=this.#o.listeners(t);let{count:n}=this.#s;const s=e;if("object"==typeof s.__signal_exit_emitter__&&"number"==typeof s.__signal_exit_emitter__.count&&(n+=s.__signal_exit_emitter__.count),r.length===n){this.unload();const r=this.#s.emit("exit",null,t),n="SIGHUP"===t?this.#n:t;r||e.kill(e.pid,n)}};this.#i=e.reallyExit,this.#u=e.emit}onExit(e,t){if(!ve(this.#o))return()=>{};!1===this.#c&&this.load();const r=t?.alwaysLast?"afterExit":"exit";return this.#s.on(r,e),()=>{this.#s.removeListener(r,e),0===this.#s.listeners.exit.length&&0===this.#s.listeners.afterExit.length&&this.unload()}}load(){if(!this.#c){this.#c=!0,this.#s.count+=1;for(const e of Ee)try{const t=this.#a[e];t&&this.#o.on(e,t)}catch(e){}this.#o.emit=(e,...t)=>this.#l(e,...t),this.#o.reallyExit=e=>this.#D(e)}}unload(){this.#c&&(this.#c=!1,Ee.forEach(e=>{const t=this.#a[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#o.removeListener(e,t)}catch(e){}}),this.#o.emit=this.#u,this.#o.reallyExit=this.#i,this.#s.count-=1)}#D(e){return ve(this.#o)?(this.#o.exitCode=e||0,this.#s.emit("exit",this.#o.exitCode,null),this.#i.call(this.#o,this.#o.exitCode)):0}#l(e,...t){const r=this.#u;if("exit"===e&&ve(this.#o)){"number"==typeof t[0]&&(this.#o.exitCode=t[0]);const n=r.call(this.#o,e,...t);return this.#s.emit("exit",this.#o.exitCode,null),n}return r.call(this.#o,e,...t)}}(Te):new class extends xe{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>Ae.onExit(e,t),load:()=>Ae.load(),unload:()=>Ae.unload()});var Ae;const Re="[",Me=(e=1)=>e>0?`${Re}${e}A`:"",Pe=(e=1)=>e>0?`${Re}${e}B`:"",Le=(e,t)=>`${Re}${e+1}G`,je="",$e=e=>e>0?(je+Me(1)).repeat(e-1)+je+"":"",Ie=e=>e.split("\n").length;class Ne{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(e){this.rl=e,this.cursorPos=e.getCursorPos()}write(e){this.rl.output.unmute(),this.rl.output.write(e),this.rl.output.mute()}render(e,t=""){const r=(e=>e.split("\n").pop()??"")(e),n=o.stripVTControlCharacters(r);let s=n;this.rl.line.length>0&&(s=s.slice(0,-this.rl.line.length)),this.rl.setPrompt(s),this.cursorPos=this.rl.getCursorPos();const u=ge();e=me(e,u),t=me(t,u),n.length%u===0&&(e+="\n");let i=e+(t?"\n"+t:"");const a=Math.floor(n.length/u)-this.cursorPos.rows+(t?Ie(t):0);a>0&&(i+=Me(a)),i+=Le(this.cursorPos.cols),this.write(Pe(this.extraLinesUnderPrompt)+$e(this.height)+i),this.extraLinesUnderPrompt=a,this.height=Ie(i)}checkCursorPos(){const e=this.rl.getCursorPos();e.cols!==this.cursorPos.cols&&(this.write(Le(e.cols)),this.cursorPos=e)}done({clearContent:e}){this.rl.setPrompt("");let t=Pe(this.extraLinesUnderPrompt);t+=e?$e(this.height):"\n",t+="[?25h",this.write(t),this.rl.close()}}class Ue extends Promise{static withResolver(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}}function Ge(e){const t=function(){const e=Error.prepareStackTrace;let t=[];try{Error.prepareStackTrace=(e,r)=>{const n=r.slice(1);return t=n,n},(new Error).stack}catch{return t}return Error.prepareStackTrace=e,t}();return(r,n={})=>{const{input:s=process.stdin,signal:o}=n,u=new Set,i=new Ce;i.pipe(n.output??process.stdout);const a=g.createInterface({terminal:!0,input:s,output:i}),c=new Ne(a),{promise:l,resolve:D,reject:f}=Ue.withResolver(),h=()=>f(new E);if(o){const e=()=>f(new C({cause:o.reason}));if(o.aborted)return e(),Object.assign(l,{cancel:h});o.addEventListener("abort",e),u.add(()=>o.removeEventListener("abort",e))}u.add(Oe((e,t)=>{f(new v(`User force closed the prompt with ${e} ${t}`))}));const d=()=>f(new v("User force closed the prompt with SIGINT"));a.on("SIGINT",d),u.add(()=>a.removeListener("SIGINT",d));const m=()=>c.checkCursorPos();return a.input.on("keypress",m),u.add(()=>a.input.removeListener("keypress",m)),function(e,t){const r=function(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}(e);return B.run(r,()=>t(function(e){r.handleChange=()=>{r.index=0,e()},r.handleChange()}))}(a,s=>{const o=p.AsyncResource.bind(()=>A.clearAll());return a.on("close",o),u.add(()=>a.removeListener("close",o)),s(()=>{try{const n=e(r,e=>{setImmediate(()=>D(e))});if(void 0===n){const e=t[1]?.getFileName();throw new Error(`Prompt functions must return a string.\n at ${e}`)}const[s,o]="string"==typeof n?[n]:n;c.render(s,o),A.run()}catch(e){f(e)}}),Object.assign(l.then(e=>(A.clearAll(),e),e=>{throw A.clearAll(),e}).finally(()=>{u.forEach(e=>e()),c.done({clearContent:Boolean(n.clearPromptOnDone)}),i.end()}).then(()=>l),{cancel:h})})}}class qe{separator=o.styleText("dim",Array.from({length:15}).join($.line));type="separator";constructor(e){e&&(this.separator=e)}static isSeparator(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"separator"===e.type)}}const ze={validationFailureMode:"keep"};var We=Ge((e,t)=>{const{prefill:r="tab"}=e,n=G(ze,e.theme),[s,o]=R("idle"),[u="",i]=R(e.default),[a,c]=R(),[l,D]=R(""),f=q({status:s,theme:n});Y(async(r,a)=>{if("idle"===s)if(w(r)){const r=l||u;o("loading");const s=await async function(t){const{required:r,pattern:n,patternError:s="Invalid input"}=e;return r&&!t?"You must provide a value":n&&!n.test(t)?s:"function"!=typeof e.validate||await e.validate(t)||"You must provide a valid value"}(r);!0===s?(D(r),o("done"),t(r)):("clear"===n.validationFailureMode?D(""):a.write(l),c(s),o("idle"))}else b(r)&&!l?i(void 0):(e=>"tab"===e.name)(r)&&!l?(i(void 0),a.clearLine(0),a.write(u),D(u)):(D(a.line),c(void 0))}),M(e=>{"editable"===r&&u&&(e.write(u),D(u))},[]);const h=n.style.message(e.message,s);let p,d=l;"function"==typeof e.transformer?d=e.transformer(l,{isFinal:"done"===s}):"done"===s&&(d=n.style.answer(l)),u&&"done"!==s&&!l&&(p=n.style.defaultAnswer(u));let m="";return a&&(m=n.style.error(a)),[[f,h,p,d].filter(e=>void 0!==e).join(" "),m]});const Ye={icon:{cursor:$.pointer},style:{disabled:e=>o.styleText("dim",`- ${e}`),description:e=>o.styleText("cyan",e),keysHelpTip:e=>e.map(([e,t])=>`${o.styleText("bold",e)} ${o.styleText("dim",t)}`).join(o.styleText("dim"," • "))},indexMode:"hidden",keybindings:[]};function Ve(e){return!qe.isSeparator(e)&&!e.disabled}var He,Je,Ke,Qe,Xe,Ze,et,tt,rt,nt,st=Ge((e,t)=>{const{loop:r=!0,pageSize:n=7}=e,s=G(Ye,e.theme),{keybindings:o}=s,[u,i]=R("idle"),a=q({status:u,theme:s}),c=W(),l=!o.includes("vim"),D=z(()=>e.choices.map(e=>{if(qe.isSeparator(e))return e;if("object"!=typeof e||null===e||!("value"in e)){const t=String(e);return{value:e,name:t,short:t,disabled:!1}}const t=e.name??String(e.value),r={value:e.value,name:t,short:e.short??t,disabled:e.disabled??!1};return e.description&&(r.description=e.description),r}),[e.choices]),f=z(()=>{const e=D.findIndex(Ve),t=D.findLastIndex(Ve);if(-1===e)throw new k("[select prompt] No selectable choices. All choices are disabled.");return{first:e,last:t}},[D]),h=z(()=>"default"in e?D.findIndex(t=>Ve(t)&&t.value===e.default):-1,[e.default,D]),[p,d]=R(-1===h?f.first:h),m=D[p];Y((e,n)=>{if(clearTimeout(c.current),w(e))i("done"),t(m.value);else if(F(e,o)||y(e,o)){if(n.clearLine(0),r||F(e,o)&&p!==f.first||y(e,o)&&p!==f.last){const t=F(e,o)?-1:1;let r=p;do{r=(r+t+D.length)%D.length}while(!Ve(D[r]));d(r)}}else if((e=>"1234567890".includes(e.name))(e)&&!Number.isNaN(Number(n.line))){const e=Number(n.line)-1;let t=-1;const r=D.findIndex(r=>!qe.isSeparator(r)&&(t++,t===e)),s=D[r];null!=s&&Ve(s)&&d(r),c.current=setTimeout(()=>{n.clearLine(0)},700)}else if(b(e))n.clearLine(0);else if(l){const e=n.line.toLowerCase(),t=D.findIndex(t=>!(qe.isSeparator(t)||!Ve(t))&&t.name.toLowerCase().startsWith(e));-1!==t&&d(t),c.current=setTimeout(()=>{n.clearLine(0)},700)}}),M(()=>()=>{clearTimeout(c.current)},[]);const g=s.style.message(e.message,u),C=s.style.keysHelpTip([["↑↓","navigate"],["⏎","select"]]);let E=0;const v=Fe({items:D,active:p,renderItem({item:e,isActive:t,index:r}){if(qe.isSeparator(e))return E++,` ${e.separator}`;const n="number"===s.indexMode?r+1-E+". ":"";if(e.disabled){const t="string"==typeof e.disabled?e.disabled:"(disabled)";return s.style.disabled(`${n}${e.name} ${t}`)}return(t?s.style.highlight:e=>e)(`${t?s.icon.cursor:" "} ${n}${e.name}`)},pageSize:n,loop:r});if("done"===u)return[a,g,s.style.answer(m.short)].filter(Boolean).join(" ");const{description:_}=m;return`${[[a,g].filter(Boolean).join(" "),v," ",_?s.style.description(_):"",C].filter(Boolean).join("\n").trimEnd()}[?25l`}),ot={},ut={};function it(){return He||(He=1,ut.fromCallback=function(e){return Object.defineProperty(function(...t){if("function"!=typeof t[t.length-1])return new Promise((r,n)=>{t.push((e,t)=>null!=e?n(e):r(t)),e.apply(this,t)});e.apply(this,t)},"name",{value:e.name})},ut.fromPromise=function(e){return Object.defineProperty(function(...t){const r=t[t.length-1];if("function"!=typeof r)return e.apply(this,t);t.pop(),e.apply(this,t).then(e=>r(null,e),r)},"name",{value:e.name})}),ut}function at(){if(Ke)return Je;Ke=1;var e=n,t=process.cwd,r=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return r||(r=t.call(process)),r};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var o=process.chdir;process.chdir=function(e){r=null,o.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,o)}return Je=function(t){e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(r,n,s){t.open(r,e.O_WRONLY|e.O_SYMLINK,n,function(e,r){e?s&&s(e):t.fchmod(r,n,function(e){t.close(r,function(t){s&&s(e||t)})})})},t.lchmodSync=function(r,n){var s,o=t.openSync(r,e.O_WRONLY|e.O_SYMLINK,n),u=!0;try{s=t.fchmodSync(o,n),u=!1}finally{if(u)try{t.closeSync(o)}catch(e){}else t.closeSync(o)}return s}}(t);t.lutimes||function(t){e.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(r,n,s,o){t.open(r,e.O_SYMLINK,function(e,r){e?o&&o(e):t.futimes(r,n,s,function(e){t.close(r,function(t){o&&o(e||t)})})})},t.lutimesSync=function(r,n,s){var o,u=t.openSync(r,e.O_SYMLINK),i=!0;try{o=t.futimesSync(u,n,s),i=!1}finally{if(i)try{t.closeSync(u)}catch(e){}else t.closeSync(u)}return o}):t.futimes&&(t.lutimes=function(e,t,r,n){n&&process.nextTick(n)},t.lutimesSync=function(){})}(t);t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=r(t.chmod),t.fchmod=r(t.fchmod),t.lchmod=r(t.lchmod),t.chownSync=u(t.chownSync),t.fchownSync=u(t.fchownSync),t.lchownSync=u(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=i(t.stat),t.fstat=i(t.fstat),t.lstat=i(t.lstat),t.statSync=a(t.statSync),t.fstatSync=a(t.fstatSync),t.lstatSync=a(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(e,t,r){r&&process.nextTick(r)},t.lchmodSync=function(){});t.chown&&!t.lchown&&(t.lchown=function(e,t,r,n){n&&process.nextTick(n)},t.lchownSync=function(){});"win32"===s&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function r(r,n,s){var o=Date.now(),u=0;e(r,n,function i(a){if(a&&("EACCES"===a.code||"EPERM"===a.code||"EBUSY"===a.code)&&Date.now()-o<6e4)return setTimeout(function(){t.stat(n,function(t,o){t&&"ENOENT"===t.code?e(r,n,i):s(a)})},u),void(u<100&&(u+=10));s&&s(a)})}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.rename));function r(e){return e?function(r,n,s){return e.call(t,r,n,function(e){c(e)&&(e=null),s&&s.apply(this,arguments)})}:e}function n(e){return e?function(r,n){try{return e.call(t,r,n)}catch(e){if(!c(e))throw e}}:e}function o(e){return e?function(r,n,s,o){return e.call(t,r,n,s,function(e){c(e)&&(e=null),o&&o.apply(this,arguments)})}:e}function u(e){return e?function(r,n,s){try{return e.call(t,r,n,s)}catch(e){if(!c(e))throw e}}:e}function i(e){return e?function(r,n,s){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),s&&s.apply(this,arguments)}return"function"==typeof n&&(s=n,n=null),n?e.call(t,r,n,o):e.call(t,r,o)}:e}function a(e){return e?function(r,n){var s=n?e.call(t,r,n):e.call(t,r);return s&&(s.uid<0&&(s.uid+=4294967296),s.gid<0&&(s.gid+=4294967296)),s}:e}function c(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}t.read="function"!=typeof t.read?t.read:function(e){function r(r,n,s,o,u,i){var a;if(i&&"function"==typeof i){var c=0;a=function(l,D,f){if(l&&"EAGAIN"===l.code&&c<10)return c++,e.call(t,r,n,s,o,u,a);i.apply(this,arguments)}}return e.call(t,r,n,s,o,u,a)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(l=t.readSync,function(e,r,n,s,o){for(var u=0;;)try{return l.call(t,e,r,n,s,o)}catch(e){if("EAGAIN"===e.code&&u<10){u++;continue}throw e}});var l},Je}function ct(){if(rt)return tt;rt=1;var e,t,n=r,i=at(),a=function(){if(Xe)return Qe;Xe=1;var e=s.Stream;return Qe=function(t){return{ReadStream:function r(n,s){if(!(this instanceof r))return new r(n,s);e.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,s=s||{};for(var u=Object.keys(s),i=0,a=u.length;i<a;i++){var c=u[i];this[c]=s[c]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?t.open(this.path,this.flags,this.mode,function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()}):process.nextTick(function(){o._read()})},WriteStream:function r(n,s){if(!(this instanceof r))return new r(n,s);e.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var o=Object.keys(s),u=0,i=o.length;u<i;u++){var a=o[u];this[a]=s[a]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}},Qe}(),c=function(){if(et)return Ze;et=1,Ze=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var r={__proto__:e(t)};else r=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}),r};var e=Object.getPrototypeOf||function(e){return e.__proto__};return Ze}(),l=o;function D(t,r){Object.defineProperty(t,e,{get:function(){return r}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(e=Symbol.for("graceful-fs.queue"),t=Symbol.for("graceful-fs.previous")):(e="___graceful-fs.queue",t="___graceful-fs.previous");var f,h=function(){};if(l.debuglog?h=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!n[e]){var p=J[e]||[];D(n,p),n.close=function(e){function r(t,r){return e.call(n,t,function(e){e||g(),"function"==typeof r&&r.apply(this,arguments)})}return Object.defineProperty(r,t,{value:e}),r}(n.close),n.closeSync=function(e){function r(t){e.apply(n,arguments),g()}return Object.defineProperty(r,t,{value:e}),r}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(n[e]),u.equal(n[e].length,0)})}function d(e){i(e),e.gracefulify=d,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,s,o){return t(r,n,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof s&&s.apply(this,arguments):m([e,[r,n,s],t,o||Date.now(),Date.now()])})}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,s){"function"==typeof n&&(s=n,n=null);return function e(t,n,s,o,u){return r(t,n,s,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):m([e,[t,n,s,o],r,u||Date.now(),Date.now()])})}(e,t,n,s)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,s){"function"==typeof r&&(s=r,r=null);return function e(t,r,s,o,u){return n(t,r,s,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):m([e,[t,r,s,o],n,u||Date.now(),Date.now()])})}(e,t,r,s)});var s=e.copyFile;s&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,o,u){return s(t,r,n,function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof o&&o.apply(this,arguments):m([e,[t,r,n,o],s,u||Date.now(),Date.now()])})}(e,t,r,n)});var o=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=u.test(process.version)?function(e,t,r,n){return o(e,s(e,t,r,n))}:function(e,t,r,n){return o(e,t,s(e,t,r,n))};return n(e,t,r);function s(e,t,r,s){return function(o,u){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(u&&u.sort&&u.sort(),"function"==typeof r&&r.call(this,o,u)):m([n,[e,t,r],o,s||Date.now(),Date.now()])}}};var u=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var c=a(e);p=c.ReadStream,g=c.WriteStream}var l=e.ReadStream;l&&(p.prototype=Object.create(l.prototype),p.prototype.open=function(){var e=this;y(e.path,e.flags,e.mode,function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())})});var D=e.WriteStream;D&&(g.prototype=Object.create(D.prototype),g.prototype.open=function(){var e=this;y(e.path,e.flags,e.mode,function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))})}),Object.defineProperty(e,"ReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0});var f=p;Object.defineProperty(e,"FileReadStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var h=g;function p(e,t){return this instanceof p?(l.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function g(e,t){return this instanceof g?(D.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var F=e.open;function y(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,s,o){return F(t,r,n,function(u,i){!u||"EMFILE"!==u.code&&"ENFILE"!==u.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,r,n,s],u,o||Date.now(),Date.now()])})}(e,t,r,n)}return e.open=y,e}function m(t){h("ENQUEUE",t[0].name,t[1]),n[e].push(t),F()}function g(){for(var t=Date.now(),r=0;r<n[e].length;++r)n[e][r].length>2&&(n[e][r][3]=t,n[e][r][4]=t);F()}function F(){if(clearTimeout(f),f=void 0,0!==n[e].length){var t=n[e].shift(),r=t[0],s=t[1],o=t[2],u=t[3],i=t[4];if(void 0===u)h("RETRY",r.name,s),r.apply(null,s);else if(Date.now()-u>=6e4){h("TIMEOUT",r.name,s);var a=s.pop();"function"==typeof a&&a.call(null,o)}else{var c=Date.now()-i,l=Math.max(i-u,1);c>=Math.min(1.2*l,100)?(h("RETRY",r.name,s),r.apply(null,s.concat([u]))):n[e].push(t)}void 0===f&&(f=setTimeout(F,0))}}return J[e]||D(J,n[e]),tt=d(c(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(tt=d(n),n.__patched=!0),tt}function lt(){return nt||(nt=1,function(e){const t=it().fromCallback,r=ct(),n=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof r[e]);Object.assign(e,r),n.forEach(n=>{e[n]=t(r[n])}),e.exists=function(e,t){return"function"==typeof t?r.exists(e,t):new Promise(t=>r.exists(e,t))},e.read=function(e,t,n,s,o,u){return"function"==typeof u?r.read(e,t,n,s,o,u):new Promise((u,i)=>{r.read(e,t,n,s,o,(e,t,r)=>{if(e)return i(e);u({bytesRead:t,buffer:r})})})},e.write=function(e,t,...n){return"function"==typeof n[n.length-1]?r.write(e,t,...n):new Promise((s,o)=>{r.write(e,t,...n,(e,t,r)=>{if(e)return o(e);s({bytesWritten:t,buffer:r})})})},e.readv=function(e,t,...n){return"function"==typeof n[n.length-1]?r.readv(e,t,...n):new Promise((s,o)=>{r.readv(e,t,...n,(e,t,r)=>{if(e)return o(e);s({bytesRead:t,buffers:r})})})},e.writev=function(e,t,...n){return"function"==typeof n[n.length-1]?r.writev(e,t,...n):new Promise((s,o)=>{r.writev(e,t,...n,(e,t,r)=>{if(e)return o(e);s({bytesWritten:t,buffers:r})})})},"function"==typeof r.realpath.native?e.realpath.native=t(r.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}(ot)),ot}var Dt,ft,ht,pt,dt,mt,gt,Ft,yt,bt,wt,Ct,Et,vt,_t,kt,Bt,St,xt,Tt,Ot,At,Rt,Mt,Pt,Lt,jt,$t,It,Nt,Ut,Gt,qt,zt,Wt,Yt,Vt,Ht,Jt,Kt,Qt,Xt,Zt,er,tr,rr,nr,sr,or,ur,ir,ar,cr,lr,Dr,fr,hr={},pr={};function dr(){if(Dt)return pr;Dt=1;const e=t;return pr.checkPath=function(t){if("win32"===process.platform){if(/[<>:"|?*]/.test(t.replace(e.parse(t).root,""))){const e=new Error(`Path contains invalid characters: ${t}`);throw e.code="EINVAL",e}}},pr}function mr(){if(ft)return hr;ft=1;const e=lt(),{checkPath:t}=dr(),r=e=>"number"==typeof e?e:{mode:511,...e}.mode;return hr.makeDir=async(n,s)=>(t(n),e.mkdir(n,{mode:r(s),recursive:!0})),hr.makeDirSync=(n,s)=>(t(n),e.mkdirSync(n,{mode:r(s),recursive:!0})),hr}function gr(){if(pt)return ht;pt=1;const e=it().fromPromise,{makeDir:t,makeDirSync:r}=mr(),n=e(t);return ht={mkdirs:n,mkdirsSync:r,mkdirp:n,mkdirpSync:r,ensureDir:n,ensureDirSync:r}}function Fr(){if(mt)return dt;mt=1;const e=it().fromPromise,t=lt();return dt={pathExists:e(function(e){return t.access(e).then(()=>!0).catch(()=>!1)}),pathExistsSync:t.existsSync}}function yr(){if(Ft)return gt;Ft=1;const e=lt(),t=it().fromPromise;return gt={utimesMillis:t(async function(t,r,n){const s=await e.open(t,"r+");let o=null;try{await e.futimes(s,r,n)}finally{try{await e.close(s)}catch(e){o=e}}if(o)throw o}),utimesMillisSync:function(t,r,n){const s=e.openSync(t,"r+");return e.futimesSync(s,r,n),e.closeSync(s)}}}function br(){if(bt)return yt;bt=1;const e=lt(),r=t,n=it().fromPromise;function s(e,t){return void 0!==t.ino&&void 0!==t.dev&&t.ino===e.ino&&t.dev===e.dev}function o(e,t){const n=r.resolve(e).split(r.sep).filter(e=>e),s=r.resolve(t).split(r.sep).filter(e=>e);return n.every((e,t)=>s[t]===e)}function u(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}return yt={checkPaths:n(async function(t,n,i,a){const{srcStat:c,destStat:l}=await function(t,r,n){const s=n.dereference?t=>e.stat(t,{bigint:!0}):t=>e.lstat(t,{bigint:!0});return Promise.all([s(t),s(r).catch(e=>{if("ENOENT"===e.code)return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}(t,n,a);if(l){if(s(c,l)){const e=r.basename(t),s=r.basename(n);if("move"===i&&e!==s&&e.toLowerCase()===s.toLowerCase())return{srcStat:c,destStat:l,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(c.isDirectory()&&!l.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${t}'.`);if(!c.isDirectory()&&l.isDirectory())throw new Error(`Cannot overwrite directory '${n}' with non-directory '${t}'.`)}if(c.isDirectory()&&o(t,n))throw new Error(u(t,n,i));return{srcStat:c,destStat:l}}),checkPathsSync:function(t,n,i,a){const{srcStat:c,destStat:l}=function(t,r,n){let s;const o=n.dereference?t=>e.statSync(t,{bigint:!0}):t=>e.lstatSync(t,{bigint:!0}),u=o(t);try{s=o(r)}catch(e){if("ENOENT"===e.code)return{srcStat:u,destStat:null};throw e}return{srcStat:u,destStat:s}}(t,n,a);if(l){if(s(c,l)){const e=r.basename(t),s=r.basename(n);if("move"===i&&e!==s&&e.toLowerCase()===s.toLowerCase())return{srcStat:c,destStat:l,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(c.isDirectory()&&!l.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${t}'.`);if(!c.isDirectory()&&l.isDirectory())throw new Error(`Cannot overwrite directory '${n}' with non-directory '${t}'.`)}if(c.isDirectory()&&o(t,n))throw new Error(u(t,n,i));return{srcStat:c,destStat:l}},checkParentPaths:n(async function t(n,o,i,a){const c=r.resolve(r.dirname(n)),l=r.resolve(r.dirname(i));if(l===c||l===r.parse(l).root)return;let D;try{D=await e.stat(l,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(s(o,D))throw new Error(u(n,i,a));return t(n,o,l,a)}),checkParentPathsSync:function t(n,o,i,a){const c=r.resolve(r.dirname(n)),l=r.resolve(r.dirname(i));if(l===c||l===r.parse(l).root)return;let D;try{D=e.statSync(l,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(s(o,D))throw new Error(u(n,i,a));return t(n,o,l,a)},isSrcSubdir:o,areIdentical:s},yt}function wr(){if(Ct)return wt;return Ct=1,wt={asyncIteratorConcurrentProcess:async function(e,t){const r=[];for await(const n of e)r.push(t(n).then(()=>null,e=>e??new Error("unknown error")));await Promise.all(r.map(e=>e.then(e=>{if(null!==e)throw e})))}}}function Cr(){if(vt)return Et;vt=1;const e=lt(),r=t,{mkdirs:n}=gr(),{pathExists:s}=Fr(),{utimesMillis:o}=yr(),u=br(),{asyncIteratorConcurrentProcess:i}=wr();async function a(e,t,r){return!r.filter||r.filter(e,t)}async function c(t,n,s,o){const D=o.dereference?e.stat:e.lstat,f=await D(n);if(f.isDirectory())return async function(t,n,s,o,l){n||await e.mkdir(o);await i(await e.opendir(s),async e=>{const t=r.join(s,e.name),n=r.join(o,e.name);if(await a(t,n,l)){const{destStat:e}=await u.checkPaths(t,n,"copy",l);await c(e,t,n,l)}}),n||await e.chmod(o,t.mode)}(f,t,n,s,o);if(f.isFile()||f.isCharacterDevice()||f.isBlockDevice())return async function(t,r,n,s,o){if(!r)return l(t,n,s,o);if(o.overwrite)return await e.unlink(s),l(t,n,s,o);if(o.errorOnExist)throw new Error(`'${s}' already exists`)}(f,t,n,s,o);if(f.isSymbolicLink())return async function(t,n,s,o){let i=await e.readlink(n);o.dereference&&(i=r.resolve(process.cwd(),i));if(!t)return e.symlink(i,s);let a=null;try{a=await e.readlink(s)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return e.symlink(i,s);throw t}o.dereference&&(a=r.resolve(process.cwd(),a));if(i!==a){if(u.isSrcSubdir(i,a))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${a}'.`);if(u.isSrcSubdir(a,i))throw new Error(`Cannot overwrite '${a}' with '${i}'.`)}return await e.unlink(s),e.symlink(i,s)}(t,n,s,o);if(f.isSocket())throw new Error(`Cannot copy a socket file: ${n}`);if(f.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${n}`);throw new Error(`Unknown file: ${n}`)}async function l(t,r,n,s){if(await e.copyFile(r,n),s.preserveTimestamps){128&t.mode||await function(t,r){return e.chmod(t,128|r)}(n,t.mode);const s=await e.stat(r);await o(n,s.atime,s.mtime)}return e.chmod(n,t.mode)}return Et=async function(e,t,o={}){"function"==typeof o&&(o={filter:o}),o.clobber=!("clobber"in o)||!!o.clobber,o.overwrite="overwrite"in o?!!o.overwrite:o.clobber,o.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:i,destStat:l}=await u.checkPaths(e,t,"copy",o);if(await u.checkParentPaths(e,i,t,"copy"),!await a(e,t,o))return;const D=r.dirname(t);await s(D)||await n(D),await c(l,e,t,o)},Et}function Er(){if(kt)return _t;kt=1;const e=ct(),r=t,n=gr().mkdirsSync,s=yr().utimesMillisSync,o=br();function u(t,n,s,u){const l=(u.dereference?e.statSync:e.lstatSync)(n);if(l.isDirectory())return function(t,r,n,s,o){return r?c(n,s,o):function(t,r,n,s){return e.mkdirSync(n),c(r,n,s),a(n,t)}(t.mode,n,s,o)}(l,t,n,s,u);if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())return function(t,r,n,s,o){return r?function(t,r,n,s){if(s.overwrite)return e.unlinkSync(n),i(t,r,n,s);if(s.errorOnExist)throw new Error(`'${n}' already exists`)}(t,n,s,o):i(t,n,s,o)}(l,t,n,s,u);if(l.isSymbolicLink())return function(t,n,s,u){let i=e.readlinkSync(n);u.dereference&&(i=r.resolve(process.cwd(),i));if(t){let t;try{t=e.readlinkSync(s)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return e.symlinkSync(i,s);throw t}if(u.dereference&&(t=r.resolve(process.cwd(),t)),i!==t){if(o.isSrcSubdir(i,t))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${t}'.`);if(o.isSrcSubdir(t,i))throw new Error(`Cannot overwrite '${t}' with '${i}'.`)}return function(t,r){return e.unlinkSync(r),e.symlinkSync(t,r)}(i,s)}return e.symlinkSync(i,s)}(t,n,s,u);if(l.isSocket())throw new Error(`Cannot copy a socket file: ${n}`);if(l.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${n}`);throw new Error(`Unknown file: ${n}`)}function i(t,r,n,o){return e.copyFileSync(r,n),o.preserveTimestamps&&function(t,r,n){(function(e){return!(128&e)})(t)&&function(e,t){a(e,128|t)}(n,t);(function(t,r){const n=e.statSync(t);s(r,n.atime,n.mtime)})(r,n)}(t.mode,r,n),a(n,t.mode)}function a(t,r){return e.chmodSync(t,r)}function c(t,r,n){const s=e.opendirSync(t);try{let e;for(;null!==(e=s.readSync());)l(e.name,t,r,n)}finally{s.closeSync()}}function l(e,t,n,s){const i=r.join(t,e),a=r.join(n,e);if(s.filter&&!s.filter(i,a))return;const{destStat:c}=o.checkPathsSync(i,a,"copy",s);return u(c,i,a,s)}return _t=function(t,s,i){"function"==typeof i&&(i={filter:i}),(i=i||{}).clobber=!("clobber"in i)||!!i.clobber,i.overwrite="overwrite"in i?!!i.overwrite:i.clobber,i.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:a,destStat:c}=o.checkPathsSync(t,s,"copy",i);if(o.checkParentPathsSync(t,a,s,"copy"),i.filter&&!i.filter(t,s))return;const l=r.dirname(s);return e.existsSync(l)||n(l),u(c,t,s,i)},_t}function vr(){if(St)return Bt;St=1;const e=it().fromPromise;return Bt={copy:e(Cr()),copySync:Er()}}function _r(){if(Tt)return xt;Tt=1;const e=ct(),t=it().fromCallback;return xt={remove:t(function(t,r){e.rm(t,{recursive:!0,force:!0},r)}),removeSync:function(t){e.rmSync(t,{recursive:!0,force:!0})}}}function kr(){if(At)return Ot;At=1;const e=it().fromPromise,r=lt(),n=t,s=gr(),o=_r(),u=e(async function(e){let t;try{t=await r.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(t.map(t=>o.remove(n.join(e,t))))});function i(e){let t;try{t=r.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach(t=>{t=n.join(e,t),o.removeSync(t)})}return Ot={emptyDirSync:i,emptydirSync:i,emptyDir:u,emptydir:u}}function Br(){if(Mt)return Rt;Mt=1;const e=it().fromPromise,r=t,n=lt(),s=gr();return Rt={createFile:e(async function(e){let t;try{t=await n.stat(e)}catch{}if(t&&t.isFile())return;const o=r.dirname(e);let u=null;try{u=await n.stat(o)}catch(t){if("ENOENT"===t.code)return await s.mkdirs(o),void await n.writeFile(e,"");throw t}u.isDirectory()?await n.writeFile(e,""):await n.readdir(o)}),createFileSync:function(e){let t;try{t=n.statSync(e)}catch{}if(t&&t.isFile())return;const o=r.dirname(e);try{n.statSync(o).isDirectory()||n.readdirSync(o)}catch(e){if(!e||"ENOENT"!==e.code)throw e;s.mkdirsSync(o)}n.writeFileSync(e,"")}}}function Sr(){if(Lt)return Pt;Lt=1;const e=it().fromPromise,r=t,n=lt(),s=gr(),{pathExists:o}=Fr(),{areIdentical:u}=br();return Pt={createLink:e(async function(e,t){let i,a;try{i=await n.lstat(t)}catch{}try{a=await n.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(i&&u(a,i))return;const c=r.dirname(t);await o(c)||await s.mkdirs(c),await n.link(e,t)}),createLinkSync:function(e,t){let o;try{o=n.lstatSync(t)}catch{}try{const t=n.lstatSync(e);if(o&&u(t,o))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const i=r.dirname(t);return n.existsSync(i)||s.mkdirsSync(i),n.linkSync(e,t)}}}function xr(){if($t)return jt;$t=1;const e=t,r=lt(),{pathExists:n}=Fr(),s=it().fromPromise;return jt={symlinkPaths:s(async function(t,s){if(e.isAbsolute(t)){try{await r.lstat(t)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:t,toDst:t}}const o=e.dirname(s),u=e.join(o,t);if(await n(u))return{toCwd:u,toDst:t};try{await r.lstat(t)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:t,toDst:e.relative(o,t)}}),symlinkPathsSync:function(t,n){if(e.isAbsolute(t)){if(!r.existsSync(t))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}const s=e.dirname(n),o=e.join(s,t);if(r.existsSync(o))return{toCwd:o,toDst:t};if(!r.existsSync(t))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:e.relative(s,t)}}}}function Tr(){if(Nt)return It;Nt=1;const e=lt(),t=it().fromPromise;return It={symlinkType:t(async function(t,r){if(r)return r;let n;try{n=await e.lstat(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}),symlinkTypeSync:function(t,r){if(r)return r;let n;try{n=e.lstatSync(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}}}function Or(){if(Gt)return Ut;Gt=1;const e=it().fromPromise,r=t,n=lt(),{mkdirs:s,mkdirsSync:o}=gr(),{symlinkPaths:u,symlinkPathsSync:i}=xr(),{symlinkType:a,symlinkTypeSync:c}=Tr(),{pathExists:l}=Fr(),{areIdentical:D}=br();return Ut={createSymlink:e(async function(e,t,o){let i;try{i=await n.lstat(t)}catch{}if(i&&i.isSymbolicLink()){const[r,s]=await Promise.all([n.stat(e),n.stat(t)]);if(D(r,s))return}const c=await u(e,t);e=c.toDst;const f=await a(c.toCwd,o),h=r.dirname(t);return await l(h)||await s(h),n.symlink(e,t,f)}),createSymlinkSync:function(e,t,s){let u;try{u=n.lstatSync(t)}catch{}if(u&&u.isSymbolicLink()){const r=n.statSync(e),s=n.statSync(t);if(D(r,s))return}const a=i(e,t);e=a.toDst,s=c(a.toCwd,s);const l=r.dirname(t);return n.existsSync(l)||o(l),n.symlinkSync(e,t,s)}}}function Ar(){if(zt)return qt;zt=1;const{createFile:e,createFileSync:t}=Br(),{createLink:r,createLinkSync:n}=Sr(),{createSymlink:s,createSymlinkSync:o}=Or();return qt={createFile:e,createFileSync:t,ensureFile:e,ensureFileSync:t,createLink:r,createLinkSync:n,ensureLink:r,ensureLinkSync:n,createSymlink:s,createSymlinkSync:o,ensureSymlink:s,ensureSymlinkSync:o}}function Rr(){if(Yt)return Wt;return Yt=1,Wt={stringify:function(e,{EOL:t="\n",finalEOL:r=!0,replacer:n=null,spaces:s}={}){const o=r?t:"";return JSON.stringify(e,n,s).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}}function Mr(){if(Kt)return Jt;Kt=1;const e=function(){if(Ht)return Vt;let e;Ht=1;try{e=ct()}catch(t){e=r}const t=it(),{stringify:n,stripBom:s}=Rr(),o=t.fromPromise(async function(r,n={}){"string"==typeof n&&(n={encoding:n});const o=n.fs||e,u=!("throws"in n)||n.throws;let i,a=await t.fromCallback(o.readFile)(r,n);a=s(a);try{i=JSON.parse(a,n?n.reviver:null)}catch(e){if(u)throw e.message=`${r}: ${e.message}`,e;return null}return i}),u=t.fromPromise(async function(r,s,o={}){const u=o.fs||e,i=n(s,o);await t.fromCallback(u.writeFile)(r,i,o)});return Vt={readFile:o,readFileSync:function(t,r={}){"string"==typeof r&&(r={encoding:r});const n=r.fs||e,o=!("throws"in r)||r.throws;try{let e=n.readFileSync(t,r);return e=s(e),JSON.parse(e,r.reviver)}catch(e){if(o)throw e.message=`${t}: ${e.message}`,e;return null}},writeFile:u,writeFileSync:function(t,r,s={}){const o=s.fs||e,u=n(r,s);return o.writeFileSync(t,u,s)}},Vt}();return Jt={readJson:e.readFile,readJsonSync:e.readFileSync,writeJson:e.writeFile,writeJsonSync:e.writeFileSync}}function Pr(){if(Xt)return Qt;Xt=1;const e=it().fromPromise,r=lt(),n=t,s=gr(),o=Fr().pathExists;return Qt={outputFile:e(async function(e,t,u="utf-8"){const i=n.dirname(e);return await o(i)||await s.mkdirs(i),r.writeFile(e,t,u)}),outputFileSync:function(e,...t){const o=n.dirname(e);r.existsSync(o)||s.mkdirsSync(o),r.writeFileSync(e,...t)}},Qt}function Lr(){if(er)return Zt;er=1;const{stringify:e}=Rr(),{outputFile:t}=Pr();return Zt=async function(r,n,s={}){const o=e(n,s);await t(r,o,s)},Zt}function jr(){if(rr)return tr;rr=1;const{stringify:e}=Rr(),{outputFileSync:t}=Pr();return tr=function(r,n,s){const o=e(n,s);t(r,o,s)},tr}function $r(){if(sr)return nr;sr=1;const e=it().fromPromise,t=Mr();return t.outputJson=e(Lr()),t.outputJsonSync=jr(),t.outputJSON=t.outputJson,t.outputJSONSync=t.outputJsonSync,t.writeJSON=t.writeJson,t.writeJSONSync=t.writeJsonSync,t.readJSON=t.readJson,t.readJSONSync=t.readJsonSync,nr=t}function Ir(){if(ur)return or;ur=1;const e=lt(),r=t,{copy:n}=vr(),{remove:s}=_r(),{mkdirp:o}=gr(),{pathExists:u}=Fr(),i=br();return or=async function(t,a,c={}){const l=c.overwrite||c.clobber||!1,{srcStat:D,isChangingCase:f=!1}=await i.checkPaths(t,a,"move",c);await i.checkParentPaths(t,D,a,"move");const h=r.dirname(a);return r.parse(h).root!==h&&await o(h),async function(t,r,o,i){if(!i)if(o)await s(r);else if(await u(r))throw new Error("dest already exists.");try{await e.rename(t,r)}catch(e){if("EXDEV"!==e.code)throw e;await async function(e,t,r){const o={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return await n(e,t,o),s(e)}(t,r,o)}}(t,a,l,f)},or}function Nr(){if(ar)return ir;ar=1;const e=ct(),r=t,n=vr().copySync,s=_r().removeSync,o=gr().mkdirpSync,u=br();function i(t,r,o){try{e.renameSync(t,r)}catch(e){if("EXDEV"!==e.code)throw e;return function(e,t,r){const o={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return n(e,t,o),s(e)}(t,r,o)}}return ir=function(t,n,a){const c=(a=a||{}).overwrite||a.clobber||!1,{srcStat:l,isChangingCase:D=!1}=u.checkPathsSync(t,n,"move",a);return u.checkParentPathsSync(t,l,n,"move"),function(e){const t=r.dirname(e);return r.parse(t).root===t}(n)||o(r.dirname(n)),function(t,r,n,o){if(o)return i(t,r,n);if(n)return s(r),i(t,r,n);if(e.existsSync(r))throw new Error("dest already exists.");return i(t,r,n)}(t,n,c,D)},ir}function Ur(){if(lr)return cr;lr=1;const e=it().fromPromise;return cr={move:e(Ir()),moveSync:Nr()}}function Gr(){return fr?Dr:(fr=1,Dr={...lt(),...vr(),...kr(),...Ar(),...$r(),...gr(),...Ur(),...Pr(),...Fr(),..._r()})}var qr,zr,Wr,Yr,Vr,Hr=K(Gr()),Jr={},Kr={},Qr={exports:{}},Xr={exports:{}};function Zr(){if(zr)return qr;zr=1;var e=1e3,t=60*e,r=60*t,n=24*r,s=7*n,o=365.25*n;function u(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}return qr=function(i,a){a=a||{};var c=typeof i;if("string"===c&&i.length>0)return function(u){if((u=String(u)).length>100)return;var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(!i)return;var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*o;case"weeks":case"week":case"w":return a*s;case"days":case"day":case"d":return a*n;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*t;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}}(i);if("number"===c&&isFinite(i))return a.long?function(s){var o=Math.abs(s);if(o>=n)return u(s,o,n,"day");if(o>=r)return u(s,o,r,"hour");if(o>=t)return u(s,o,t,"minute");if(o>=e)return u(s,o,e,"second");return s+" ms"}(i):function(s){var o=Math.abs(s);if(o>=n)return Math.round(s/n)+"d";if(o>=r)return Math.round(s/r)+"h";if(o>=t)return Math.round(s/t)+"m";if(o>=e)return Math.round(s/e)+"s";return s+"ms"}(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))}}function en(){if(Yr)return Wr;return Yr=1,Wr=function(e){function t(e){let n,s,o,u=null;function i(...e){if(!i.enabled)return;const r=i,s=Number(new Date),o=s-(n||s);r.diff=o,r.prev=n,r.curr=s,n=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let u=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,s)=>{if("%%"===n)return"%";u++;const o=t.formatters[s];if("function"==typeof o){const t=e[u];n=o.call(r,t),e.splice(u,1),u--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==u?u:(s!==t.namespaces&&(s=t.namespaces,o=t.enabled(e)),o),set:e=>{u=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,s=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(s=n,o=r,n++):(r++,n++);else{if(-1===s)return!1;n=s+1,o++,r=o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(n(e,r))return!1;for(const r of t.names)if(n(e,r))return!0;return!1},t.humanize=Zr(),t.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(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t},Wr}var tn,rn,nn,sn,on,un,an,cn,ln={exports:{}};function Dn(){return rn?tn:(rn=1,tn=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return-1!==n&&(-1===s||n<s)})}function fn(){if(sn)return nn;sn=1;const e=c,t=Dn(),r=process.env;let n;function s(s){const o=function(s){if(!1===n)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(s&&!s.isTTY&&!0!==n)return 0;const o=n?1:0;if("win32"===process.platform){const t=e.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 r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in r)||"codeship"===r.CI_NAME?1:o;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM,o)}(s);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(o)}return t("no-color")||t("no-colors")||t("color=false")?n=!1:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(n=!0),"FORCE_COLOR"in r&&(n=0===r.FORCE_COLOR.length||0!==parseInt(r.FORCE_COLOR,10)),nn={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}}function hn(){return on||(on=1,function(e,t){const r=a,n=o;t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(n.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:s}=this;if(s){const t=this.color,s="[3"+(t<8?t:"8;5;"+t),o=` ${s};1m${n} `;r[0]=o+r[0].split("\n").join("\n"+o),r.push(s+"m+"+e.exports.humanize(this.diff)+"")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=fn();e&&(e.stderr||e).level>=2&&(t.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(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),e.exports=en()(t);const{formatters:s}=e.exports;s.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},s.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}}(ln,ln.exports)),ln.exports}function pn(){return un||(un=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Qr.exports=(Vr||(Vr=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))}),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.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 e;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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})(),t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=en()(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Xr,Xr.exports)),Xr.exports):Qr.exports=hn()),Qr.exports}function dn(){return an||(an=1,function(e){var t=Kr&&Kr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});const n=r,s=t(pn()).default("@kwsites/file-exists");e.exists=function(t,r=e.READABLE){return function(e,t,r){s("checking %s",e);try{const o=n.statSync(e);return o.isFile()&&t?(s("[OK] path represents a file"),!0):o.isDirectory()&&r?(s("[OK] path represents a directory"),!0):(s("[FAIL] path represents something other than a file or directory"),!1)}catch(e){if("ENOENT"===e.code)return s("[FAIL] path is not accessible: %o",e),!1;throw s("[FATAL] %o",e),e}}(t,(r&e.FILE)>0,(r&e.FOLDER)>0)},e.FILE=1,e.FOLDER=2,e.READABLE=e.FILE+e.FOLDER}(Kr)),Kr}var mn,gn,Fn=(cn||(cn=1,mn=Jr,Object.defineProperty(mn,"__esModule",{value:!0}),function(e){for(var t in e)mn.hasOwnProperty(t)||(mn[t]=e[t])}(dn())),Jr),yn=K(pn()),bn={};var wn,Cn=function(){if(gn)return bn;function e(){let e,t,r="pending";return{promise:new Promise((r,n)=>{e=r,t=n}),done(t){"pending"===r&&(r="resolved",e(t))},fail(e){"pending"===r&&(r="rejected",t(e))},get fulfilled(){return"pending"!==r},get status(){return r}}}return gn=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.createDeferred=bn.deferred=void 0,bn.deferred=e,bn.createDeferred=e,bn.default=e,bn}(),En=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,_n=Object.getOwnPropertyNames,kn=Object.prototype.hasOwnProperty,Bn=(e,t)=>function(){return e&&(t=(0,e[_n(e)[0]])(e=0)),t},Sn=(e,t)=>{for(var r in t)En(e,r,{get:t[r],enumerable:!0})},xn=e=>((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of _n(t))kn.call(e,s)||s===r||En(e,s,{get:()=>t[s],enumerable:!(n=vn(t,s))||n.enumerable});return e})(En({},"__esModule",{value:!0}),e);function Tn(e){return e instanceof String&&wn.has(e)}function On(e){return wn.get(e)||[]}var An,Rn,Mn,Pn,Ln,jn,$n=Bn({"src/lib/args/pathspec.ts"(){wn=new WeakMap}}),In=Bn({"src/lib/errors/git-error.ts"(){An=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),Nn=Bn({"src/lib/errors/git-response-error.ts"(){In(),Rn=class extends An{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),Un=Bn({"src/lib/errors/task-configuration-error.ts"(){In(),Mn=class extends An{constructor(e){super(void 0,e)}}}});function Gn(e){return"function"!=typeof e?Ln:e}function qn(e){return"function"==typeof e&&e!==Ln}function zn(e,t){const r=e.indexOf(t);return r<=0?[e,""]:[e.substr(0,r),e.substr(r+1)]}function Wn(e,t=0){return Vn(e)&&e.length>t?e[t]:void 0}function Yn(e,t=0){if(Vn(e)&&e.length>t)return e[e.length-1-t]}function Vn(e){return hs(e)}function Hn(e="",t=!0,r="\n"){return e.split(r).reduce((e,r)=>{const n=t?r.trim():r;return n&&e.push(n),e},[])}function Jn(e,t){return Hn(e,!0).map(e=>t(e))}function Kn(e){return Fn.exists(e,Fn.FOLDER)}function Qn(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function Xn(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function Zn(e,t){if(Array.isArray(e)){const r=e.indexOf(t);r>=0&&e.splice(r,1)}else e.delete(t);return t}function es(e){return Array.isArray(e)?e:[e]}function ts(e){return e.replace(/[\s-]+(.)/g,(e,t)=>t.toUpperCase())}function rs(e){return es(e).map(e=>e instanceof String?e:String(e))}function ns(e,t=0){if(null==e)return t;const r=parseInt(e,10);return Number.isNaN(r)?t:r}function ss(e,t){const r=[];for(let n=0,s=e.length;n<s;n++)r.push(t,e[n]);return r}function os(e){return(Array.isArray(e)?i.Buffer.concat(e):e).toString("utf-8")}function us(e,t){const r={};return t.forEach(t=>{void 0!==e[t]&&(r[t]=e[t])}),r}function is(e=0){return new Promise(t=>setTimeout(t,e))}function as(e){if(!1!==e)return e}var cs,ls,Ds,fs,hs,ps=Bn({"src/lib/utils/util.ts"(){Es(),Pn="\0",Ln=()=>{},jn=Object.prototype.toString.call.bind(Object.prototype.toString)}});function ds(e,t,r){return t(e)?e:arguments.length>2?r:void 0}function ms(e,t){const r=Tn(e)?"string":typeof e;return/number|string|boolean/.test(r)&&(!t||!t.includes(r))}function gs(e){return!!e&&"[object Object]"===jn(e)}function Fs(e){return"function"==typeof e}var ys,bs,ws,Cs,Es=Bn({"src/lib/utils/argument-filters.ts"(){$n(),ps(),cs=e=>Array.isArray(e),ls=e=>"number"==typeof e,Ds=e=>"string"==typeof e,fs=e=>Ds(e)||Array.isArray(e)&&e.every(Ds),hs=e=>null!=e&&!"number|boolean|function".includes(typeof e)&&"number"==typeof e.length}}),vs=Bn({"src/lib/utils/exit-codes.ts"(){ys=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.ERROR=1]="ERROR",e[e.NOT_FOUND=-2]="NOT_FOUND",e[e.UNCLEAN=128]="UNCLEAN",e))(ys||{})}}),_s=Bn({"src/lib/utils/git-output-streams.ts"(){bs=class e{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new e(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}}});function ks(){throw new Error("LineParser:useMatches not implemented")}var Bs,Ss=Bn({"src/lib/utils/line-parser.ts"(){ws=class{constructor(e,t){this.matches=[],this.useMatches=ks,this.parse=(e,t)=>(this.resetMatches(),!!this._regExp.every((t,r)=>this.addMatch(t,r,e(r)))&&!1!==this.useMatches(t,this.prepareMatches())),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){const n=r&&e.exec(r);return n&&this.pushMatch(t,n),!!n}pushMatch(e,t){this.matches.push(...t.slice(1))}},Cs=class extends ws{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}});function xs(...e){const t=process.cwd(),r=Object.assign({baseDir:t,...Bs},...e.filter(e=>"object"==typeof e&&e));return r.baseDir=r.baseDir||t,r.trimmed=!0===r.trimmed,r}var Ts=Bn({"src/lib/utils/simple-git-options.ts"(){Bs={binary:"git",maxConcurrentProcesses:5,config:[],trimmed:!1}}});function Os(e,t=[]){return gs(e)?Object.keys(e).reduce((t,r)=>{const n=e[r];if(Tn(n))t.push(n);else if(ms(n,["boolean"]))t.push(r+"="+n);else if(Array.isArray(n))for(const e of n)ms(e,["string","number"])||t.push(r+"="+e);else t.push(r);return t},t):t}function As(e,t=0,r=!1){const n=[];for(let r=0,s=t<0?e.length:t;r<s;r++)"string|number".includes(typeof e[r])&&n.push(String(e[r]));return Os(Rs(e),n),r||n.push(...function(e){const t="function"==typeof Yn(e);return rs(ds(Yn(e,t?1:0),cs,[]))}(e)),n}function Rs(e){const t=Fs(Yn(e));return ds(Yn(e,t?1:0),gs)}function Ms(e,t=!0){const r=Gn(Yn(e));return t||qn(r)?r:void 0}var Ps=Bn({"src/lib/utils/task-options.ts"(){Es(),ps(),$n()}});function Ls(e,t){return e(t.stdOut,t.stdErr)}function js(e,t,r,n=!0){return es(r).forEach(r=>{for(let s=Hn(r,n),o=0,u=s.length;o<u;o++){const r=(e=0)=>{if(!(o+e>=u))return s[o+e]};t.some(({parse:t})=>t(r,e))}}),e}var $s=Bn({"src/lib/utils/task-parser.ts"(){ps()}}),Is={};Sn(Is,{ExitCodes:()=>ys,GitOutputStreams:()=>bs,LineParser:()=>ws,NOOP:()=>Ln,NULL:()=>Pn,RemoteLineParser:()=>Cs,append:()=>Qn,appendTaskOptions:()=>Os,asArray:()=>es,asCamelCase:()=>ts,asFunction:()=>Gn,asNumber:()=>ns,asStringArray:()=>rs,bufferToString:()=>os,callTaskParser:()=>Ls,createInstanceConfig:()=>xs,delay:()=>is,filterArray:()=>cs,filterFunction:()=>Fs,filterHasLength:()=>hs,filterNumber:()=>ls,filterPlainObject:()=>gs,filterPrimitives:()=>ms,filterString:()=>Ds,filterStringOrStringArray:()=>fs,filterType:()=>ds,first:()=>Wn,folderExists:()=>Kn,forEachLineWithContent:()=>Jn,getTrailingOptions:()=>As,including:()=>Xn,isUserFunction:()=>qn,last:()=>Yn,objectToString:()=>jn,orVoid:()=>as,parseStringResponse:()=>js,pick:()=>us,prefixedArray:()=>ss,remove:()=>Zn,splitOn:()=>zn,toLinesWithContent:()=>Hn,trailingFunctionArgument:()=>Ms,trailingOptionsArgument:()=>Rs});var Ns,Us,Gs,qs=Bn({"src/lib/utils/index.ts"(){Es(),vs(),_s(),Ss(),Ts(),Ps(),$s(),ps()}}),zs={};function Ws(e){switch(e){case"bare":return Vs();case"root":return Ys()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:Us,parser:Gs}}function Ys(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:Us,parser:e=>/^\.(git)?$/.test(e.trim())}}function Vs(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:Us,parser:Gs}}Sn(zs,{CheckRepoActions:()=>Ns,checkIsBareRepoTask:()=>Vs,checkIsRepoRootTask:()=>Ys,checkIsRepoTask:()=>Ws});var Hs,Js,Ks,Qs,Xs=Bn({"src/lib/tasks/check-is-repo.ts"(){qs(),Ns=(e=>(e.BARE="bare",e.IN_TREE="tree",e.IS_REPO_ROOT="root",e))(Ns||{}),Us=({exitCode:e},t,r,n)=>{if(128===e&&function(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}(t))return r(Buffer.from("false"));n(t)},Gs=e=>"true"===e.trim()}});var Zs,eo=Bn({"src/lib/responses/CleanSummary.ts"(){qs(),Hs=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},Js=/^[a-z]+\s*/i,Ks=/^[a-z]+\s+[a-z]+\s*/i,Qs=/\/$/}}),to={};function ro(e){return{commands:Zs,format:"empty",parser:e}}function no(e){return{commands:Zs,format:"empty",parser(){throw"string"==typeof e?new Mn(e):e}}}function so(e,t=!1){return{commands:e,format:"utf-8",parser:e=>t?String(e).trim():e}}function oo(e){return{commands:e,format:"buffer",parser:e=>e}}function uo(e){return"buffer"===e.format}function io(e){return"empty"===e.format||!e.commands.length}Sn(to,{EMPTY_COMMANDS:()=>Zs,adhocExecTask:()=>ro,configurationErrorTask:()=>no,isBufferTask:()=>uo,isEmptyTask:()=>io,straightThroughBufferTask:()=>oo,straightThroughStringTask:()=>so});var ao,co,lo,Do,fo,ho=Bn({"src/lib/tasks/task.ts"(){Un(),Zs=[]}}),po={};function mo(e,t){const{cleanMode:r,options:n,valid:s}=function(e){let t,r=[],n={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,"").split("").forEach(e=>{var s;!function(e){return"f"===e||"n"===e}(e)?n.options=n.options&&(s=r[r.length]=`-${e}`,/^-[a-z]$/i.test(s)&&fo.has(s.charAt(1))):(t=e,n.cleanMode=!0)}),{cleanMode:t,options:r,valid:n}}(e);return r?s.options?(n.push(...t),n.some(yo)?no(ao):go(r,n)):no(lo+JSON.stringify(e)):no(co)}function go(e,t){return{commands:["clean",`-${e}`,...t],format:"utf-8",parser:t=>function(e,t){const r=new Hs(e),n=e?Ks:Js;return Hn(t).forEach(e=>{const t=e.replace(n,"");r.paths.push(t),(Qs.test(t)?r.folders:r.files).push(t)}),r}("n"===e,t)}}function Fo(e){return Array.isArray(e)&&e.every(e=>fo.has(e))}function yo(e){return/^-[^\-]/.test(e)?e.indexOf("i")>0:"--interactive"===e}Sn(po,{CONFIG_ERROR_INTERACTIVE_MODE:()=>ao,CONFIG_ERROR_MODE_REQUIRED:()=>co,CONFIG_ERROR_UNKNOWN_OPTION:()=>lo,CleanOptions:()=>Do,cleanTask:()=>go,cleanWithOptionsTask:()=>mo,isCleanOptionsArray:()=>Fo});var bo,wo=Bn({"src/lib/tasks/clean.ts"(){eo(),qs(),ho(),ao="Git clean interactive mode is not supported",co='Git clean mode parameter ("n" or "f") is required',lo="Git clean unknown option found in: ",Do=(e=>(e.DRY_RUN="n",e.FORCE="f",e.IGNORED_INCLUDED="x",e.IGNORED_ONLY="X",e.EXCLUDING="e",e.QUIET="q",e.RECURSIVE="d",e))(Do||{}),fo=new Set(["i",...rs(Object.values(Do))])}});function Co(e){return e.replace(/^(file):/,"")}function*Eo(e,t=null){const r=e.split("\0");for(let e=0,n=r.length-1;e<n;){const n=Co(r[e++]);let s=r[e++],o=t;if(s.includes("\n")){const e=zn(s,"\n");o=e[0],s=e[1]}yield{file:n,key:o,value:s}}}var vo,_o=Bn({"src/lib/responses/ConfigList.ts"(){qs(),bo=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||(this._all=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{})),this._all}addFile(e){if(!(e in this.values)){const t=Yn(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,r){const n=this.addFile(e);Object.hasOwn(n,t)?Array.isArray(n[t])?n[t].push(r):n[t]=[n[t],r]:n[t]=r,this._all=void 0}}}});function ko(e,t){return"string"==typeof e&&Object.hasOwn(vo,e)?e:t}function Bo(e,t){const r=["config","--null","--show-origin","--get-all",e];return t&&r.splice(1,0,`--${t}`),{commands:r,format:"utf-8",parser:t=>function(e,t){let r=null;const n=[],s=new Map;for(const o of Eo(e,t))o.key===t&&(n.push(r=o.value),s.has(o.file)||s.set(o.file,[]),s.get(o.file).push(r));return{key:t,paths:Array.from(s.keys()),scopes:s,value:r,values:n}}(t,e)}}function So(e){const t=["config","--list","--show-origin","--null"];return e&&t.push(`--${e}`),{commands:t,format:"utf-8",parser:e=>function(e){const t=new bo;for(const r of Eo(e))t.addValue(r.file,String(r.key),r.value);return t}(e)}}var xo,To,Oo=Bn({"src/lib/tasks/config.ts"(){_o(),qs(),vo=(e=>(e.system="system",e.global="global",e.local="local",e.worktree="worktree",e))(vo||{})}});function Ao(e){return To.has(e)}var Ro,Mo,Po,Lo,jo=Bn({"src/lib/tasks/diff-name-status.ts"(){xo=(e=>(e.ADDED="A",e.COPIED="C",e.DELETED="D",e.MODIFIED="M",e.RENAMED="R",e.CHANGED="T",e.UNMERGED="U",e.UNKNOWN="X",e.BROKEN="B",e))(xo||{}),To=new Set(Object.values(xo))}});function $o(){return{grep(e){const t=Ms(arguments),r=As(arguments);for(const e of Ro)if(r.includes(e))return this._runTask(no(`git.grep: use of "${e}" is not supported.`),t);"string"==typeof e&&(e=function(...e){return(new Lo).param(...e)}().param(e));const n=["grep","--null","-n","--full-name",...r,...e];return this._runTask({commands:n,format:"utf-8",parser:e=>function(e){const t=new Set,r={};return Jn(e,e=>{const[n,s,o]=e.split(Pn);t.add(n),(r[n]=r[n]||[]).push({line:ns(s),path:n,preview:o})}),{paths:t,results:r}}(e)},t)}}}var Io,No,Uo=Bn({"src/lib/tasks/grep.ts"(){qs(),ho(),Ro=["-h"],Mo=Symbol("grepQuery"),Lo=class{constructor(){this[Po]=[]}*[(Po=Mo,Symbol.iterator)](){for(const e of this[Mo])yield e}and(...e){return e.length&&this[Mo].push("--and","(",...ss(e,"-e"),")"),this}param(...e){return this[Mo].push(...ss(e,"-e")),this}}}}),Go={};function qo(e,t){const r=["reset"];return Wo(e)&&r.push(`--${e}`),r.push(...t),so(r)}function zo(e){if(Wo(e))return e;switch(typeof e){case"string":case"undefined":return"soft"}}function Wo(e){return"string"==typeof e&&No.includes(e)}Sn(Go,{ResetMode:()=>Io,getResetMode:()=>zo,resetTask:()=>qo});var Yo=Bn({"src/lib/tasks/reset.ts"(){qs(),ho(),Io=(e=>(e.MIXED="mixed",e.SOFT="soft",e.HARD="hard",e.MERGE="merge",e.KEEP="keep",e))(Io||{}),No=rs(Object.values(Io))}});function Vo(e,t,r){return t&&String(t).replace(/\s*/,"")?(n,...s)=>{e(`%s ${n}`,t,...s),r&&r(n,...s)}:r?(t,...n)=>{e(t,...n),r(t,...n)}:e}function Ho(e,t,r,n=function(){return yn("simple-git")}()){const s=e&&`[${e}]`||"",o=[],u="string"==typeof t?n.extend(t):t,i=function(e,t,{namespace:r}){if("string"==typeof e)return e;const n=t&&t.namespace||"";return n.startsWith(r)?n.substr(r.length+1):n||r}(ds(t,Ds),u,n);return function t(r){const o=r&&`[${r}]`||"",i=u&&Vo(u,o)||Ln,c=Vo(n,`${s} ${o}`,i);return Object.assign(u?i:c,{label:e,sibling:a,info:c,step:t})}(r);function a(t,r){return Qn(o,Ho(e,i.replace(/^[^:]+/,t),r,n))}}var Jo,Ko,Qo=Bn({"src/lib/git-logger.ts"(){qs(),yn.formatters.L=e=>String(hs(e)?e.length:"-"),yn.formatters.B=e=>Buffer.isBuffer(e)?e.toString("utf8"):jn(e)}}),Xo=Bn({"src/lib/runners/tasks-pending-queue.ts"(){In(),Qo(),Jo=class e{constructor(e="GitExecutor"){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(t){const r=e.getName(t.commands[0]);return{task:t,logger:Ho(this.logLabel,r),name:r}}push(e){const t=this.createProgress(e);return t.logger("Adding task to the queue, commands = %o",e.commands),this._queue.set(e,t),t}fatal(e){for(const[t,{logger:r}]of Array.from(this._queue.entries()))t===e.task?(r.info("Failed %o",e),r("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):r.info("A fatal exception occurred in a previous task, the queue has been purged: %o",e.message),this.complete(t);if(0!==this._queue.size)throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){const t=this.withProgress(e);if(!t)throw new An(void 0,"TasksPendingQueue: attempt called for an unknown task");return t.logger("Starting task"),t}static getName(t="empty"){return`task:${t}:${++e.counter}`}static{this.counter=0}}}});function Zo(e,t){return{method:Wn(e.commands)||"",commands:t}}function eu(e,t,r,n){return s=>{r("%s received %L bytes",t,s),n("%B",s),e.push(s)}}var tu,ru=Bn({"src/lib/runners/git-executor-chain.ts"(){In(),ho(),qs(),Xo(),Ko=class{constructor(e,t,r){this._executor=e,this._scheduler=t,this._plugins=r,this._chain=Promise.resolve(),this._queue=new Jo}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}async attemptTask(e){const t=await this._scheduler.next(),r=()=>this._queue.complete(e);try{const{logger:t}=this._queue.attempt(e);return await(io(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t))}catch(t){throw this.onFatalException(e,t)}finally{r(),t()}}onFatalException(e,t){const r=t instanceof An?Object.assign(t,{task:e}):new An(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(r),r}async attemptRemoteTask(e,t){const r=this._plugins.exec("spawn.binary","",Zo(e,e.commands)),n=this._plugins.exec("spawn.args",[...e.commands],Zo(e,e.commands)),s=await this.gitResponse(e,r,n,this.outputHandler,t.step("SPAWN")),o=await this.handleTaskData(e,n,s,t.step("HANDLE"));return t("passing response to task's parser as a %s",e.format),uo(e)?Ls(e.parser,o):Ls(e.parser,o.asStrings())}async attemptEmptyTask(e,t){return t("empty task bypassing child process to call to task's parser"),e.parser(this)}handleTaskData(e,t,r,n){const{exitCode:s,rejection:o,stdOut:u,stdErr:i}=r;return new Promise((a,c)=>{n("Preparing to handle process response exitCode=%d stdOut=",s);const{error:l}=this._plugins.exec("task.error",{error:o},{...Zo(e,t),...r});return l&&e.onError?(n.info("exitCode=%s handling with custom error handler"),e.onError(r,l,e=>{n.info("custom error handler treated as success"),n("custom error returned a %s",jn(e)),a(new bs(Array.isArray(e)?Buffer.concat(e):e,Buffer.concat(i)))},c)):l?(n.info("handling as error: exitCode=%s stdErr=%s rejection=%o",s,i.length,o),c(l)):(n.info("retrieving task output complete"),void a(new bs(Buffer.concat(u),Buffer.concat(i))))})}async gitResponse(e,t,r,n,s){const o=s.sibling("output"),u=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},Zo(e,e.commands));return new Promise(i=>{const a=[],c=[];s.info("%s %o",t,r),s("%O",u);let D=this._beforeSpawn(e,r);if(D)return i({stdOut:a,stdErr:c,exitCode:9901,rejection:D});this._plugins.exec("spawn.before",void 0,{...Zo(e,r),kill(e){D=e||D}});const f=l.spawn(t,r,u);f.stdout.on("data",eu(a,"stdOut",s,o.step("stdOut"))),f.stderr.on("data",eu(c,"stdErr",s,o.step("stdErr"))),f.on("error",function(e,t){return r=>{t("[ERROR] child process exception %o",r),e.push(Buffer.from(String(r.stack),"ascii"))}}(c,s)),n&&(s("Passing child process stdOut/stdErr to custom outputHandler"),n(t,f.stdout,f.stderr,[...r])),this._plugins.exec("spawn.after",void 0,{...Zo(e,r),spawned:f,close(e,t){i({stdOut:a,stdErr:c,exitCode:e,rejection:D||t})},kill(e){f.killed||(D=e,f.kill("SIGINT"))}})})}_beforeSpawn(e,t){let r;return this._plugins.exec("spawn.before",void 0,{...Zo(e,t),kill(e){r=e||r}}),r}}}}),nu={};Sn(nu,{GitExecutor:()=>tu});var su=Bn({"src/lib/runners/git-executor.ts"(){ru(),tu=class{constructor(e,t,r){this.cwd=e,this._scheduler=t,this._plugins=r,this._chain=new Ko(this,this._scheduler,this._plugins)}chain(){return new Ko(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function ou(e,t,r=Ln){t.then(e=>{r(null,e)},t=>{t?.task===e&&r(t instanceof Rn?function(e){let t=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`),t=Ln};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(r,{}));function r(r,n){return n in e||(r[n]={enumerable:!1,configurable:!1,get:()=>(t(n),e.git[n])}),r}}(t):t,void 0)})}var uu=Bn({"src/lib/task-callback.ts"(){Nn(),qs()}});function iu(e,t){return ro(r=>{if(!Kn(e))throw new Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||r).cwd=e})}var au=Bn({"src/lib/tasks/change-working-directory.ts"(){qs(),ho()}});function cu(e){const t=["checkout",...e];return"-b"===t[1]&&t.includes("-B")&&(t[1]=Zn(t,"-B")),so(t)}var lu,Du=Bn({"src/lib/tasks/checkout.ts"(){qs(),ho()}});var fu,hu=Bn({"src/lib/tasks/count-objects.ts"(){qs(),lu=new ws(/([a-z-]+): (\d+)$/,(e,[t,r])=>{const n=ts(t);Object.hasOwn(e,n)&&(e[n]=ns(r))})}});function pu(e){return js({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},fu,e)}var du=Bn({"src/lib/parsers/parse-commit.ts"(){qs(),fu=[new ws(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(e,[t,r,n])=>{e.branch=t,e.commit=n,e.root=!!r}),new ws(/\s*Author:\s(.+)/i,(e,[t])=>{const r=t.split("<"),n=r.pop();n&&n.includes("@")&&(e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()})}),new ws(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(r,10)||0,e.summary.deletions=parseInt(n,10)||0}),new ws(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;const s=parseInt(r,10)||0;"-"===n?e.summary.deletions=s:"+"===n&&(e.summary.insertions=s)})]}});function mu(){return{commit(e,...t){const r=Ms(arguments),n=function(e){return!fs(e)&&no("git.commit: requires the commit message to be supplied as a string/string[]")}(e)||function(e,t,r){return{commands:["-c","core.abbrev=40","commit",...ss(e,"-m"),...t,...r],format:"utf-8",parser:pu}}(es(e),es(ds(t[0],fs,[])),[...rs(ds(t[1],cs,[])),...As(arguments,0,!0)]);return this._runTask(n,r)}}}var gu=Bn({"src/lib/tasks/commit.ts"(){du(),qs(),ho()}});var Fu=Bn({"src/lib/tasks/first-commit.ts"(){qs(),ho()}});var yu,bu,wu,Cu=Bn({"src/lib/tasks/hash-object.ts"(){ho()}});var Eu,vu=Bn({"src/lib/responses/InitSummary.ts"(){yu=class{constructor(e,t,r,n){this.bare=e,this.path=t,this.existing=r,this.gitDir=n}},bu=/^Init.+ repository in (.+)$/,wu=/^Rein.+ in (.+)$/}});function _u(e=!1,t,r){const n=["init",...r];return e&&!n.includes(Eu)&&n.splice(1,0,Eu),{commands:n,format:"utf-8",parser:e=>function(e,t,r){const n=String(r).trim();let s;if(s=bu.exec(n))return new yu(e,t,!1,s[1]);if(s=wu.exec(n))return new yu(e,t,!0,s[1]);let o="";const u=n.split(" ");for(;u.length;)if("in"===u.shift()){o=u.join(" ");break}return new yu(e,t,/^re/i.test(n),o)}(n.includes("--bare"),t,e)}}var ku,Bu=Bn({"src/lib/tasks/init.ts"(){vu(),Eu="--bare"}});function Su(e){for(let t=0;t<e.length;t++){const r=ku.exec(e[t]);if(r)return`--${r[1]}`}return""}function xu(e){return ku.test(e)}var Tu,Ou,Au,Ru,Mu,Pu,Lu=Bn({"src/lib/args/log-format.ts"(){ku=/^--(stat|numstat|name-only|name-status)(=|$)/}}),ju=Bn({"src/lib/responses/DiffSummary.ts"(){Tu=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function $u(e=""){const t=Pu[e];return e=>js(new Tu,t,e,!1)}var Iu,Nu,Uu,Gu,qu=Bn({"src/lib/parsers/parse-diff-summary.ts"(){Lu(),ju(),jo(),qs(),Ou=[new ws(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,r,n=""])=>{e.files.push({file:t.trim(),changes:ns(r),insertions:n.replace(/[^+]/g,"").length,deletions:n.replace(/[^-]/g,"").length,binary:!1})}),new ws(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,r,n])=>{e.files.push({file:t.trim(),before:ns(r),after:ns(n),binary:!0})}),new ws(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,r])=>{const n=/(\d+) i/.exec(r),s=/(\d+) d/.exec(r);e.changed=ns(t),e.insertions=ns(n?.[1]),e.deletions=ns(s?.[1])})],Au=[new ws(/(\d+)\t(\d+)\t(.+)$/,(e,[t,r,n])=>{const s=ns(t),o=ns(r);e.changed++,e.insertions+=s,e.deletions+=o,e.files.push({file:n,changes:s+o,insertions:s,deletions:o,binary:!1})}),new ws(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],Ru=[new ws(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],Mu=[new ws(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(e,[t,r,n,s,o])=>{e.changed++,e.files.push({file:o??n,changes:0,insertions:0,deletions:0,binary:!1,status:as(Ao(t)&&t),from:as(!!o&&n!==o&&n),similarity:ns(r)})})],Pu={"":Ou,"--stat":Ou,"--numstat":Au,"--name-status":Mu,"--name-only":Ru}}});function zu(e=Uu,t=Gu,r=""){const n=$u(r);return function(r){const s=Hn(r.trim(),!1,Iu).map(function(r){const s=r.split(Nu),o=function(e,t){return t.reduce((t,r,n)=>(t[r]=e[n]||"",t),Object.create({diff:null}))}(s[0].split(e),t);return s.length>1&&s[1].trim()&&(o.diff=n(s[1])),o});return{all:s,latest:s.length&&s[0]||null,total:s.length}}}var Wu=Bn({"src/lib/parsers/parse-list-log-summary.ts"(){qs(),qu(),Lu(),Iu="òòòòòò ",Nu=" òò",Uu=" ò ",Gu=["hash","date","message","refs","author_name","author_email"]}}),Yu={};function Vu(e){let t=Su(e);const r=["diff"];return""===t&&(t="--stat",r.push("--stat=4096")),r.push(...e),Hu(r)||{commands:r,format:"utf-8",parser:$u(t)}}function Hu(e){const t=e.filter(xu);return t.length>1?no(`Summary flags are mutually exclusive - pick one of ${t.join(",")}`):t.length&&e.includes("-z")?no(`Summary flag ${t} parsing is not compatible with null termination option '-z'`):void 0}Sn(Yu,{diffSummaryTask:()=>Vu,validateLogFormatConfig:()=>Hu});var Ju,Ku=Bn({"src/lib/tasks/diff.ts"(){Lu(),qu(),ho()}});function Qu(e={},t=[]){const r=ds(e.splitter,Ds,Uu),n=gs(e.format)?e.format:{hash:"%H",date:!1===e.strictDate?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:!1!==e.mailMap?"%aN":"%an",author_email:!1!==e.mailMap?"%aE":"%ae"},[s,o]=function(e,t){const r=[],n=[];return Object.keys(e).forEach(t=>{r.push(t),n.push(String(e[t]))}),[r,n.join(t)]}(n,r),u=[],i=[`--pretty=format:${Iu}${o}${Nu}`,...t],a=e.n||e["max-count"]||e.maxCount;if(a&&i.push(`--max-count=${a}`),e.from||e.to){const t=!1!==e.symmetric?"...":"..";u.push(`${e.from||""}${t}${e.to||""}`)}return Ds(e.file)&&i.push("--follow",function(...e){const t=new String(e);return wn.set(t,e),t}(e.file)),Os(function(e){return Object.keys(e).reduce((t,r)=>(r in Ju||(t[r]=e[r]),t),{})}(e),i),{fields:s,splitter:r,commands:[...i,...u]}}function Xu(){return{log(...e){const t=Ms(arguments),r=Qu(Rs(arguments),rs(ds(arguments[0],cs,[]))),n=function(e,t){return Ds(e)&&Ds(t)&&no("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}(...e)||Hu(r.commands)||function(e){return function(e,t,r){const n=zu(e,t,Su(r));return{commands:["log",...r],format:"utf-8",parser:n}}(e.splitter,e.fields,e.commands)}(r);return this._runTask(n,t)}}}var Zu,ei,ti,ri,ni,si=Bn({"src/lib/tasks/log.ts"(){Lu(),$n(),Wu(),qs(),ho(),Ku(),Ju=(e=>(e[e["--pretty"]=0]="--pretty",e[e["max-count"]=1]="max-count",e[e.maxCount=2]="maxCount",e[e.n=3]="n",e[e.file=4]="file",e[e.format=5]="format",e[e.from=6]="from",e[e.to=7]="to",e[e.splitter=8]="splitter",e[e.symmetric=9]="symmetric",e[e.mailMap=10]="mailMap",e[e.multiLine=11]="multiLine",e[e.strictDate=12]="strictDate",e))(Ju||{})}}),oi=Bn({"src/lib/responses/MergeSummary.ts"(){Zu=class{constructor(e,t=null,r){this.reason=e,this.file=t,this.meta=r}toString(){return`${this.file}:${this.reason}`}},ei=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}}}}),ui=Bn({"src/lib/responses/PullSummary.ts"(){ti=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},ri=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}});function ii(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function ai(e){const t=/^\s*(\d+)/.exec(e),r=/delta (\d+)/i.exec(e);return{count:ns(t&&t[1]||"0"),delta:ns(r&&r[1]||"0")}}var ci,li,Di=Bn({"src/lib/parsers/parse-remote-objects.ts"(){qs(),ni=[new Cs(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,r])=>{const n=t.toLowerCase(),s=ii(e.remoteMessages);Object.assign(s,{[n]:ns(r)})}),new Cs(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,r])=>{const n=t.toLowerCase(),s=ii(e.remoteMessages);Object.assign(s,{[n]:ns(r)})}),new Cs(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,r,n])=>{const s=ii(e.remoteMessages);s.total=ai(t),s.reused=ai(r),s.packReused=ns(n)})]}});function fi(e,t){return js({remoteMessages:new li},ci,t)}var hi,pi,di,mi,gi,Fi,yi=Bn({"src/lib/parsers/parse-remote-messages.ts"(){qs(),Di(),ci=[new Cs(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...ni,new Cs([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new Cs([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,r,n])=>{e.remoteMessages.vulnerabilities={count:ns(t),summary:r,url:n}})],li=class{constructor(){this.all=[]}}}});var bi,wi,Ci,Ei=Bn({"src/lib/parsers/parse-pull.ts"(){ui(),qs(),yi(),hi=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,pi=/^(create|delete) mode \d+ (.+)/,di=[new ws(/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,(e,[t,r,n])=>{e.files.push(t),r&&(e.insertions[t]=r.length),n&&(e.deletions[t]=n.length)}),new ws(hi,(e,[t,,r,,n])=>(void 0!==r||void 0!==n)&&(e.summary.changes=+t||0,e.summary.insertions=+r||0,e.summary.deletions=+n||0,!0)),new ws(pi,(e,[t,r])=>{Qn(e.files,r),Qn("create"===t?e.created:e.deleted,r)})],mi=[new ws(/^from\s(.+)$/i,(e,[t])=>{e.remote=t}),new ws(/^fatal:\s(.+)$/,(e,[t])=>{e.message=t}),new ws(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(e,[t,r,n,s])=>{e.branch.local=n,e.hash.local=t,e.branch.remote=s,e.hash.remote=r})],gi=(e,t)=>js(new ti,di,[e,t]),Fi=(e,t)=>Object.assign(new ti,gi(e,t),fi(0,t))}}),vi=Bn({"src/lib/parsers/parse-merge.ts"(){oi(),qs(),Ei(),bi=[new ws(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new ws(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,r])=>{e.conflicts.push(new Zu(t,r))}),new ws(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,r,n])=>{e.conflicts.push(new Zu(t,r,{deleteRef:n}))}),new ws(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new Zu(t,null))}),new ws(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],wi=(e,t)=>Object.assign(Ci(e,t),Fi(e,t)),Ci=e=>js(new ei,bi,e)}});function _i(e){return e.length?{commands:["merge",...e],format:"utf-8",parser(e,t){const r=wi(e,t);if(r.failed)throw new Rn(r);return r}}:no("Git.merge requires at least one option")}var ki,Bi,Si,xi=Bn({"src/lib/tasks/merge.ts"(){Nn(),vi(),ho()}});var Ti=Bn({"src/lib/parsers/parse-push.ts"(){qs(),yi(),ki=[new ws(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new ws(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref={...e.ref||{},local:t}}),new ws(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,r,n])=>{e.pushed.push(function(e,t,r){const n=r.includes("deleted"),s=r.includes("tag")||/^refs\/tags/.test(e),o=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!o,alreadyUpdated:o,local:e,remote:t}}(t,r,n))}),new ws(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,r,n])=>{e.branch={...e.branch||{},local:t,remote:r,remoteName:n}}),new ws(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,r,n,s])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:s}}})],Bi=(e,t)=>({...Si(e,t),...fi(0,t)}),Si=(e,t)=>js({pushed:[]},ki,[e,t])}}),Oi={};function Ai(e={},t){return Qn(t,"--tags"),Ri(e,t)}function Ri(e={},t){const r=["push",...t];return e.branch&&r.splice(1,0,e.branch),e.remote&&r.splice(1,0,e.remote),Zn(r,"-v"),Qn(r,"--verbose"),Qn(r,"--porcelain"),{commands:r,format:"utf-8",parser:Bi}}Sn(Oi,{pushTagsTask:()=>Ai,pushTask:()=>Ri});var Mi=Bn({"src/lib/tasks/push.ts"(){Ti(),qs()}});var Pi,Li,ji,$i,Ii,Ni=Bn({"src/lib/tasks/show.ts"(){qs(),ho()}}),Ui=Bn({"src/lib/responses/FileStatusSummary.ts"(){Pi=/^(.+)\0(.+)$/,Li=class{constructor(e,t,r){if(this.path=e,this.index=t,this.working_dir=r,"R"===t||"R"===r){const t=Pi.exec(e)||[null,e,e];this.from=t[2]||"",this.path=t[1]||""}}}}});function Gi(e){const[t,r]=e.split(Pn);return{from:r||t,to:t}}function qi(e,t,r){return[`${e}${t}`,r]}function zi(e,...t){return t.map(t=>qi(e,t,(e,t)=>Qn(e.conflicted,t)))}function Wi(e,t){const r=t.trim();switch(" "){case r.charAt(2):return n(r.charAt(0),r.charAt(1),r.substr(3));case r.charAt(1):return n(" ",r.charAt(0),r.substr(2));default:return}function n(t,r,n){const s=`${t}${r}`,o=$i.get(s);o&&o(e,n),"##"!==s&&"!!"!==s&&e.files.push(new Li(n,t,r))}}var Yi,Vi=Bn({"src/lib/responses/StatusSummary.ts"(){qs(),Ui(),ji=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},$i=new Map([qi(" ","A",(e,t)=>Qn(e.created,t)),qi(" ","D",(e,t)=>Qn(e.deleted,t)),qi(" ","M",(e,t)=>Qn(e.modified,t)),qi("A"," ",(e,t)=>Qn(e.created,t)&&Qn(e.staged,t)),qi("A","M",(e,t)=>Qn(e.created,t)&&Qn(e.staged,t)&&Qn(e.modified,t)),qi("D"," ",(e,t)=>Qn(e.deleted,t)&&Qn(e.staged,t)),qi("M"," ",(e,t)=>Qn(e.modified,t)&&Qn(e.staged,t)),qi("M","M",(e,t)=>Qn(e.modified,t)&&Qn(e.staged,t)),qi("R"," ",(e,t)=>{Qn(e.renamed,Gi(t))}),qi("R","M",(e,t)=>{const r=Gi(t);Qn(e.renamed,r),Qn(e.modified,r.to)}),qi("!","!",(e,t)=>{Qn(e.ignored=e.ignored||[],t)}),qi("?","?",(e,t)=>Qn(e.not_added,t)),...zi("A","A","U"),...zi("D","D","U"),...zi("U","A","D","U"),["##",(e,t)=>{let r=/ahead (\d+)/.exec(t);e.ahead=r&&+r[1]||0,r=/behind (\d+)/.exec(t),e.behind=r&&+r[1]||0,r=/^(.+?(?=(?:\.{3}|\s|$)))/.exec(t),e.current=ds(r?.[1],Ds,null),r=/\.{3}(\S*)/.exec(t),e.tracking=ds(r?.[1],Ds,null),r=/\son\s(\S+?)(?=\.{3}|$)/.exec(t),r&&(e.current=ds(r?.[1],Ds,e.current)),e.detached=/\(no branch\)/.test(t)}]]),Ii=function(e){const t=e.split(Pn),r=new ji;for(let e=0,n=t.length;e<n;){let n=t[e++].trim();n&&("R"===n.charAt(0)&&(n+=Pn+(t[e++]||"")),Wi(r,n))}return r}}});var Hi,Ji,Ki=Bn({"src/lib/tasks/status.ts"(){Vi(),Yi=["--null","-z"]}});function Qi(e=0,t=0,r=0,n="",s=!0){return Object.defineProperty({major:e,minor:t,patch:r,agent:n,installed:s},"toString",{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function Xi(e){return e===Hi?Qi(0,0,0,"",!1):js(Qi(0,0,0,e),Ji,e)}var Zi,ea=Bn({"src/lib/tasks/version.ts"(){qs(),Hi="installed=false",Ji=[new ws(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,r,n,s=""])=>{Object.assign(e,Qi(ns(t),ns(r),ns(n),s))}),new ws(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,r,n,s=""])=>{Object.assign(e,Qi(ns(t),ns(r),n,s))})]}}),ta={};Sn(ta,{SimpleGitApi:()=>Zi});var ra,na,sa=Bn({"src/lib/simple-git-api.ts"(){uu(),au(),Du(),hu(),gu(),Oo(),Fu(),Uo(),Cu(),Bu(),si(),xi(),Mi(),Ni(),Ki(),ho(),ea(),qs(),Zi=class{constructor(e){this._executor=e}_runTask(e,t){const r=this._executor.chain(),n=r.push(e);return t&&ou(e,n,t),Object.create(this,{then:{value:n.then.bind(n)},catch:{value:n.catch.bind(n)},_executor:{value:r}})}add(e){return this._runTask(so(["add",...es(e)]),Ms(arguments))}cwd(e){const t=Ms(arguments);return"string"==typeof e?this._runTask(iu(e,this._executor),t):"string"==typeof e?.path?this._runTask(iu(e.path,e.root&&this._executor||void 0),t):this._runTask(no("Git.cwd: workingDirectory must be supplied as a string"),t)}hashObject(e,t){return this._runTask(function(e,t){const r=["hash-object",e];return t&&r.push("-w"),so(r,!0)}(e,!0===t),Ms(arguments))}init(e){return this._runTask(_u(!0===e,this._executor.cwd,As(arguments)),Ms(arguments))}merge(){return this._runTask(_i(As(arguments)),Ms(arguments))}mergeFromTo(e,t){return Ds(e)&&Ds(t)?this._runTask(_i([e,t,...As(arguments)]),Ms(arguments,!1)):this._runTask(no("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){const e=Ri({remote:ds(arguments[0],Ds),branch:ds(arguments[1],Ds)},As(arguments));return this._runTask(e,Ms(arguments))}stash(){return this._runTask(so(["stash",...As(arguments)]),Ms(arguments))}status(){return this._runTask({format:"utf-8",commands:["status","--porcelain","-b","-u","--null",...As(arguments).filter(e=>!Yi.includes(e))],parser:e=>Ii(e)},Ms(arguments))}},Object.assign(Zi.prototype,{checkout(){return this._runTask(cu(As(arguments,1)),Ms(arguments))},checkoutBranch(e,t){return this._runTask(cu(["-b",e,t,...As(arguments)]),Ms(arguments))},checkoutLocalBranch(e){return this._runTask(cu(["-b",e,...As(arguments)]),Ms(arguments))}},mu(),{addConfig(e,t,...r){return this._runTask(function(e,t,r,n){const s=["config",`--${n}`];return r&&s.push("--add"),s.push(e,t),{commands:s,format:"utf-8",parser:e=>e}}(e,t,!0===r[0],ko(r[1],"local")),Ms(arguments))},getConfig(e,t){return this._runTask(Bo(e,ko(t,void 0)),Ms(arguments))},listConfig(...e){return this._runTask(So(ko(e[0],void 0)),Ms(arguments))}},{countObjects(){return this._runTask({commands:["count-objects","--verbose"],format:"utf-8",parser:e=>js({count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0},[lu],e)})}},{firstCommit(){return this._runTask(so(["rev-list","--max-parents=0","HEAD"],!0),Ms(arguments))}},$o(),Xu(),{showBuffer(){const e=["show",...As(arguments,1)];return e.includes("--binary")||e.splice(1,0,"--binary"),this._runTask(oo(e),Ms(arguments))},show(){const e=["show",...As(arguments,1)];return this._runTask(so(e),Ms(arguments))}},{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:Xi,onError(e,t,r,n){if(-2===e.exitCode)return r(Buffer.from(Hi));n(t)}})}})}}),oa={};Sn(oa,{Scheduler:()=>na});var ua=Bn({"src/lib/runners/scheduler.ts"(){qs(),Qo(),ra=(()=>{let e=0;return()=>{e++;const{promise:t,done:r}=Cn.createDeferred();return{promise:t,done:r,id:e}}})(),na=class{constructor(e=2){this.concurrency=e,this.logger=Ho("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency)return void this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);const e=Qn(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done(()=>{this.logger("Completing id=",e.id),Zn(this.running,e),this.schedule()})}next(){const{promise:e,id:t}=Qn(this.pending,ra());return this.logger("Scheduling id=%s",t),this.schedule(),e}}}}),ia={};function aa(e,t){return so(["apply",...t,...e])}Sn(ia,{applyPatchTask:()=>aa});var ca,la=Bn({"src/lib/tasks/apply-patch.ts"(){ho()}});var Da,fa,ha,pa=Bn({"src/lib/responses/BranchDeleteSummary.ts"(){ca=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function da(e,t){return 1===t&&Da.test(e)}var ma,ga,Fa,ya=Bn({"src/lib/parsers/parse-branch-delete.ts"(){pa(),qs(),Da=/^error[^']+'([^']+)'/m,fa=[new ws(/(\S+)\s+\(\S+\s([^)]+)\)/,(e,[t,r])=>{const n=function(e,t){return{branch:e,hash:t,success:!0}}(t,r);e.all.push(n),e.branches[t]=n}),new ws(Da,(e,[t])=>{const r=function(e){return{branch:e,hash:null,success:!1}}(t);e.errors.push(r),e.all.push(r),e.branches[t]=r})],ha=(e,t)=>js(new ca,fa,[e,t])}}),ba=Bn({"src/lib/responses/BranchSummary.ts"(){ma=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,t,r,n,s){"*"===e&&(this.detached=t,this.current=r),this.all.push(r),this.branches[r]={current:"*"===e,linkedWorkTree:"+"===e,name:r,commit:n,label:s}}}}});function wa(e){return e?e.charAt(0):""}function Ca(e,t=!1){return js(new ma,t?[Fa]:ga,e)}var Ea=Bn({"src/lib/parsers/parse-branch.ts"(){ba(),qs(),ga=[new ws(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,r,n,s])=>{e.push(wa(t),!0,r,n,s)}),new ws(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,(e,[t,r,n,s])=>{e.push(wa(t),!1,r,n,s)})],Fa=new ws(/^(\S+)$/s,(e,[t])=>{e.push("*",!1,t,"","")})}}),va={};function _a(e){const t=["-d","-D","--delete"];return e.some(e=>t.includes(e))}function ka(e){const t=_a(e),r=e.includes("--show-current"),n=["branch",...e];return 1===n.length&&n.push("-a"),n.includes("-v")||n.splice(1,0,"-v"),{format:"utf-8",commands:n,parser:(e,n)=>t?ha(e,n).all[0]:Ca(e,r)}}function Ba(){return{format:"utf-8",commands:["branch","-v"],parser:e=>Ca(e)}}function Sa(e,t=!1){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser:(e,t)=>ha(e,t),onError({exitCode:e,stdOut:t},r,n,s){if(!da(String(r),e))return s(r);n(t)}}}function xa(e,t=!1){const r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser:(t,r)=>ha(t,r).branches[e],onError({exitCode:e,stdErr:t,stdOut:n},s,o,u){if(!da(String(s),e))return u(s);throw new Rn(r.parser(os(n),os(t)),String(s))}};return r}Sn(va,{branchLocalTask:()=>Ba,branchTask:()=>ka,containsDeleteBranchCommand:()=>_a,deleteBranchTask:()=>xa,deleteBranchesTask:()=>Sa});var Ta,Oa=Bn({"src/lib/tasks/branch.ts"(){Nn(),ya(),Ea(),qs()}});function Aa(e){const r=e.trim().replace(/^["']|["']$/g,"");return r&&t.normalize(r)}var Ra=Bn({"src/lib/responses/CheckIgnore.ts"(){Ta=e=>e.split(/\n/g).map(Aa).filter(Boolean)}}),Ma={};function Pa(e){return{commands:["check-ignore",...e],format:"utf-8",parser:Ta}}Sn(Ma,{checkIgnoreTask:()=>Pa});var La=Bn({"src/lib/tasks/check-ignore.ts"(){Ra()}}),ja={};function $a(e){return/^--upload-pack(=|$)/.test(e)}function Ia(e,t,r){const n=["clone",...r];Ds(e)&&n.push(e),Ds(t)&&n.push(t);return n.find($a)?no("git.fetch: potential exploit argument blocked."):so(n)}function Na(e,t,r){return Qn(r,"--mirror"),Ia(e,t,r)}Sn(ja,{cloneMirrorTask:()=>Na,cloneTask:()=>Ia});var Ua,Ga=Bn({"src/lib/tasks/clone.ts"(){ho(),qs()}});function qa(e,t){return js({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},Ua,[e,t])}var za=Bn({"src/lib/parsers/parse-fetch.ts"(){qs(),Ua=[new ws(/From (.+)$/,(e,[t])=>{e.remote=t}),new ws(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.branches.push({name:t,tracking:r})}),new ws(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.tags.push({name:t,tracking:r})}),new ws(/- \[deleted]\s+\S+\s*-> (.+)$/,(e,[t])=>{e.deleted.push({tracking:t})}),new ws(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(e,[t,r,n,s])=>{e.updated.push({name:n,tracking:s,to:r,from:t})})]}}),Wa={};function Ya(e){return/^--upload-pack(=|$)/.test(e)}function Va(e,t,r){const n=["fetch",...r];e&&t&&n.push(e,t);return n.find(Ya)?no("git.fetch: potential exploit argument blocked."):{commands:n,format:"utf-8",parser:qa}}Sn(Wa,{fetchTask:()=>Va});var Ha,Ja=Bn({"src/lib/tasks/fetch.ts"(){za(),ho()}});function Ka(e){return js({moves:[]},Ha,e)}var Qa=Bn({"src/lib/parsers/parse-move.ts"(){qs(),Ha=[new ws(/^Renaming (.+) to (.+)$/,(e,[t,r])=>{e.moves.push({from:t,to:r})})]}}),Xa={};function Za(e,t){return{commands:["mv","-v",...es(e),t],format:"utf-8",parser:Ka}}Sn(Xa,{moveTask:()=>Za});var ec=Bn({"src/lib/tasks/move.ts"(){Qa(),qs()}}),tc={};function rc(e,t,r){const n=["pull",...r];return e&&t&&n.splice(1,0,e,t),{commands:n,format:"utf-8",parser:(e,t)=>Fi(e,t),onError(e,t,r,n){const s=function(e,t){const r=js(new ri,mi,[e,t]);return r.message&&r}(os(e.stdOut),os(e.stdErr));if(s)return n(new Rn(s));n(t)}}}Sn(tc,{pullTask:()=>rc});var nc=Bn({"src/lib/tasks/pull.ts"(){Nn(),Ei(),qs()}});function sc(e){const t={};return uc(e,([e])=>t[e]={name:e}),Object.values(t)}function oc(e){const t={};return uc(e,([e,r,n])=>{Object.hasOwn(t,e)||(t[e]={name:e,refs:{fetch:"",push:""}}),n&&r&&(t[e].refs[n.replace(/[^a-z]/g,"")]=r)}),Object.values(t)}function uc(e,t){Jn(e,e=>t(e.split(/\s+/)))}var ic=Bn({"src/lib/responses/GetRemoteSummary.ts"(){qs()}}),ac={};function cc(e,t,r){return so(["remote","add",...r,e,t])}function lc(e){const t=["remote"];return e&&t.push("-v"),{commands:t,format:"utf-8",parser:e?oc:sc}}function Dc(e){const t=[...e];return"ls-remote"!==t[0]&&t.unshift("ls-remote"),so(t)}function fc(e){const t=[...e];return"remote"!==t[0]&&t.unshift("remote"),so(t)}function hc(e){return so(["remote","remove",e])}Sn(ac,{addRemoteTask:()=>cc,getRemotesTask:()=>lc,listRemotesTask:()=>Dc,remoteTask:()=>fc,removeRemoteTask:()=>hc});var pc=Bn({"src/lib/tasks/remote.ts"(){ic(),ho()}}),dc={};function mc(e={},t){const r=Qu(e),n=["stash","list",...r.commands,...t],s=zu(r.splitter,r.fields,Su(n));return Hu(n)||{commands:n,format:"utf-8",parser:s}}Sn(dc,{stashListTask:()=>mc});var gc=Bn({"src/lib/tasks/stash-list.ts"(){Lu(),Wu(),Ku(),si()}}),Fc={};function yc(e,t){return wc(["add",e,t])}function bc(e){return wc(["init",...e])}function wc(e){const t=[...e];return"submodule"!==t[0]&&t.unshift("submodule"),so(t)}function Cc(e){return wc(["update",...e])}Sn(Fc,{addSubModuleTask:()=>yc,initSubModuleTask:()=>bc,subModuleTask:()=>wc,updateSubModuleTask:()=>Cc});var Ec,vc,_c=Bn({"src/lib/tasks/sub-module.ts"(){ho()}});function kc(e,t){return e===t?0:e>t?1:-1}function Bc(e){return e.trim()}function Sc(e){return"string"==typeof e&&parseInt(e.replace(/^\D+/g,""),10)||0}var xc=Bn({"src/lib/responses/TagList.ts"(){Ec=class{constructor(e,t){this.all=e,this.latest=t}},vc=function(e,t=!1){const r=e.split("\n").map(Bc).filter(Boolean);t||r.sort(function(e,t){const r=e.split("."),n=t.split(".");if(1===r.length||1===n.length)return function(e,t){const r=Number.isNaN(e);return r!==Number.isNaN(t)?r?1:-1:r?kc(e,t):0}(Sc(r[0]),Sc(n[0]));for(let e=0,t=Math.max(r.length,n.length);e<t;e++){const t=kc(Sc(r[e]),Sc(n[e]));if(t)return t}return 0});const n=t?r[0]:[...r].reverse().find(e=>e.indexOf(".")>=0);return new Ec(r,n)}}}),Tc={};function Oc(e=[]){const t=e.some(e=>/^--sort=/.test(e));return{format:"utf-8",commands:["tag","-l",...e],parser:e=>vc(e,t)}}function Ac(e){return{format:"utf-8",commands:["tag",e],parser:()=>({name:e})}}function Rc(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser:()=>({name:e})}}Sn(Tc,{addAnnotatedTagTask:()=>Rc,addTagTask:()=>Ac,tagListTask:()=>Oc});var Mc,Pc,Lc=Bn({"src/lib/tasks/tag.ts"(){xc()}}),jc=(Mc={"src/git.js"(e,t){var{GitExecutor:r}=(su(),xn(nu)),{SimpleGitApi:n}=(sa(),xn(ta)),{Scheduler:s}=(ua(),xn(oa)),{configurationErrorTask:o}=(ho(),xn(to)),{asArray:u,filterArray:i,filterPrimitives:a,filterString:c,filterStringOrStringArray:l,filterType:D,getTrailingOptions:f,trailingFunctionArgument:h,trailingOptionsArgument:p}=(qs(),xn(Is)),{applyPatchTask:d}=(la(),xn(ia)),{branchTask:m,branchLocalTask:g,deleteBranchesTask:F,deleteBranchTask:y}=(Oa(),xn(va)),{checkIgnoreTask:b}=(La(),xn(Ma)),{checkIsRepoTask:w}=(Xs(),xn(zs)),{cloneTask:C,cloneMirrorTask:E}=(Ga(),xn(ja)),{cleanWithOptionsTask:v,isCleanOptionsArray:_}=(wo(),xn(po)),{diffSummaryTask:k}=(Ku(),xn(Yu)),{fetchTask:B}=(Ja(),xn(Wa)),{moveTask:S}=(ec(),xn(Xa)),{pullTask:x}=(nc(),xn(tc)),{pushTagsTask:T}=(Mi(),xn(Oi)),{addRemoteTask:O,getRemotesTask:A,listRemotesTask:R,remoteTask:M,removeRemoteTask:P}=(pc(),xn(ac)),{getResetMode:L,resetTask:j}=(Yo(),xn(Go)),{stashListTask:$}=(gc(),xn(dc)),{addSubModuleTask:I,initSubModuleTask:N,subModuleTask:U,updateSubModuleTask:G}=(_c(),xn(Fc)),{addAnnotatedTagTask:q,addTagTask:z,tagListTask:W}=(Lc(),xn(Tc)),{straightThroughBufferTask:Y,straightThroughStringTask:V}=(ho(),xn(to));function H(e,t){this._plugins=t,this._executor=new r(e.baseDir,new s(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}function J(e,t,r,n){return"string"!=typeof r?o(`git.${e}() requires a string 'repoPath'`):t(r,D(n,c),f(arguments))}(H.prototype=Object.create(n.prototype)).constructor=H,H.prototype.customBinary=function(e){return this._plugins.reconfigure("binary",e),this},H.prototype.env=function(e,t){return 1===arguments.length&&"object"==typeof e?this._executor.env=e:(this._executor.env=this._executor.env||{})[e]=t,this},H.prototype.stashList=function(e){return this._runTask($(p(arguments)||{},i(e)&&e||[]),h(arguments))},H.prototype.clone=function(){return this._runTask(J("clone",C,...arguments),h(arguments))},H.prototype.mirror=function(){return this._runTask(J("mirror",E,...arguments),h(arguments))},H.prototype.mv=function(e,t){return this._runTask(S(e,t),h(arguments))},H.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(r,n){t.checkout(n.latest,e)})})},H.prototype.pull=function(e,t,r,n){return this._runTask(x(D(e,c),D(t,c),f(arguments)),h(arguments))},H.prototype.fetch=function(e,t){return this._runTask(B(D(e,c),D(t,c),f(arguments)),h(arguments))},H.prototype.silent=function(e){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},H.prototype.tags=function(e,t){return this._runTask(W(f(arguments)),h(arguments))},H.prototype.rebase=function(){return this._runTask(V(["rebase",...f(arguments)]),h(arguments))},H.prototype.reset=function(e){return this._runTask(j(L(e),f(arguments)),h(arguments))},H.prototype.revert=function(e){const t=h(arguments);return"string"!=typeof e?this._runTask(o("Commit must be a string"),t):this._runTask(V(["revert",...f(arguments,0,!0),e]),t)},H.prototype.addTag=function(e){const t="string"==typeof e?z(e):o("Git.addTag requires a tag name");return this._runTask(t,h(arguments))},H.prototype.addAnnotatedTag=function(e,t){return this._runTask(q(e,t),h(arguments))},H.prototype.deleteLocalBranch=function(e,t,r){return this._runTask(y(e,"boolean"==typeof t&&t),h(arguments))},H.prototype.deleteLocalBranches=function(e,t,r){return this._runTask(F(e,"boolean"==typeof t&&t),h(arguments))},H.prototype.branch=function(e,t){return this._runTask(m(f(arguments)),h(arguments))},H.prototype.branchLocal=function(e){return this._runTask(g(),h(arguments))},H.prototype.raw=function(e){const t=!Array.isArray(e),r=[].slice.call(t?arguments:e,0);for(let e=0;e<r.length&&t;e++)if(!a(r[e])){r.splice(e,r.length-e);break}r.push(...f(arguments,0,!0));var n=h(arguments);return r.length?this._runTask(V(r,this._trimmed),n):this._runTask(o("Raw: must supply one or more command to execute"),n)},H.prototype.submoduleAdd=function(e,t,r){return this._runTask(I(e,t),h(arguments))},H.prototype.submoduleUpdate=function(e,t){return this._runTask(G(f(arguments,!0)),h(arguments))},H.prototype.submoduleInit=function(e,t){return this._runTask(N(f(arguments,!0)),h(arguments))},H.prototype.subModule=function(e,t){return this._runTask(U(f(arguments)),h(arguments))},H.prototype.listRemote=function(){return this._runTask(R(f(arguments)),h(arguments))},H.prototype.addRemote=function(e,t,r){return this._runTask(O(e,t,f(arguments)),h(arguments))},H.prototype.removeRemote=function(e,t){return this._runTask(P(e),h(arguments))},H.prototype.getRemotes=function(e,t){return this._runTask(A(!0===e),h(arguments))},H.prototype.remote=function(e,t){return this._runTask(M(f(arguments)),h(arguments))},H.prototype.tag=function(e,t){const r=f(arguments);return"tag"!==r[0]&&r.unshift("tag"),this._runTask(V(r),h(arguments))},H.prototype.updateServerInfo=function(e){return this._runTask(V(["update-server-info"]),h(arguments))},H.prototype.pushTags=function(e,t){const r=T({remote:D(e,c)},f(arguments));return this._runTask(r,h(arguments))},H.prototype.rm=function(e){return this._runTask(V(["rm","-f",...u(e)]),h(arguments))},H.prototype.rmKeepLocal=function(e){return this._runTask(V(["rm","--cached",...u(e)]),h(arguments))},H.prototype.catFile=function(e,t){return this._catFile("utf-8",arguments)},H.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},H.prototype._catFile=function(e,t){var r=h(t),n=["cat-file"],s=t[0];if("string"==typeof s)return this._runTask(o("Git.catFile: options must be supplied as an array of strings"),r);Array.isArray(s)&&n.push.apply(n,s);const u="buffer"===e?Y(n):V(n);return this._runTask(u,r)},H.prototype.diff=function(e,t){const r=c(e)?o("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):V(["diff",...f(arguments)]);return this._runTask(r,h(arguments))},H.prototype.diffSummary=function(){return this._runTask(k(f(arguments,1)),h(arguments))},H.prototype.applyPatch=function(e){const t=l(e)?d(u(e),f([].slice.call(arguments,1))):o("git.applyPatch requires one or more string patches as the first argument");return this._runTask(t,h(arguments))},H.prototype.revparse=function(){const e=["rev-parse",...f(arguments,!0)];return this._runTask(V(e,!0),h(arguments))},H.prototype.clean=function(e,t,r){const n=_(e),s=n&&e.join("")||D(e,c)||"",o=f([].slice.call(arguments,n?1:0));return this._runTask(v(s,o),h(arguments))},H.prototype.exec=function(e){const t={commands:[],format:"utf-8",parser(){"function"==typeof e&&e()}};return this._runTask(t)},H.prototype.clearQueue=function(){return this},H.prototype.checkIgnore=function(e,t){return this._runTask(b(u(D(e,l,[]))),h(arguments))},H.prototype.checkIsRepo=function(e,t){return this._runTask(w(D(e,c)),h(arguments))},t.exports=H}},function(){return Pc||(0,Mc[_n(Mc)[0]])((Pc={exports:{}}).exports,Pc),Pc.exports});$n(),In();var $c=class extends An{constructor(e,t){super(void 0,t),this.config=e}};In(),In();var Ic=class extends An{constructor(e,t,r){super(e,r),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};function Nc({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action:(r,n)=>(r.forEach((s,o)=>{const u=o<r.length?r[o+1]:"";e||function(e,t){if(function(e){return"string"==typeof e&&"-c"===e.trim().toLowerCase()}(e)&&/^\s*protocol(.[a-z]+)?.allow/.test(t))throw new Ic(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}(s,u),t||function(e,t){if(/^\s*--(upload|receive)-pack/.test(e))throw new Ic(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if("clone"===t&&/^\s*-u\b/.test(e))throw new Ic(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if("push"===t&&/^\s*--exec\b/.test(e))throw new Ic(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}(s,n.method)}),r)}}Nn(),Un(),Xs(),wo(),Oo(),jo(),Uo(),Yo(),qs(),qs();var Uc=Cn.deferred().promise;function Gc({onClose:e=!0,onExit:t=50}={}){function r(e,t,r){!1!==e&&(!0===e?t.promise:t.promise.then(()=>is(e))).then(r.done)}return{type:"spawn.after",async action(n,{spawned:s,close:o}){const u=function(){let n=-1;const s={close:Cn.deferred(),closeTimeout:Cn.deferred(),exit:Cn.deferred(),exitTimeout:Cn.deferred()},o=Promise.race([!1===e?Uc:s.closeTimeout.promise,!1===t?Uc:s.exitTimeout.promise]);return r(e,s.close,s.closeTimeout),r(t,s.exit,s.exitTimeout),{close(e){n=e,s.close.done()},exit(e){n=e,s.exit.done()},get exitCode(){return n},result:o}}();let i=!0,a=()=>{i=!1};s.stdout?.on("data",a),s.stderr?.on("data",a),s.on("error",a),s.on("close",e=>u.close(e)),s.on("exit",e=>u.exit(e));try{await u.result,i&&await is(50),o(u.exitCode)}catch(e){o(u.exitCode,e)}}}}qs();var qc="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function zc(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(e)}function Wc(e,t){if(e.length<1||e.length>2)throw new Ic(void 0,"binary","Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings");if(e.some(zc)){if(!t)throw new Ic(void 0,"binary",qc);console.warn(qc)}const[r,n]=e;return{binary:r,prefix:n}}function Yc(e){return!(!e.exitCode||!e.stdErr.length)}function Vc(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function Hc(e=!1,t=Yc,r=Vc){return(n,s)=>!e&&n||!t(s)?n:r(s)}function Jc(e){return{type:"task.error",action(t,r){const n=e(t.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(n)?{error:new An(void 0,n.toString("utf-8"))}:{error:n}}}}In(),qs();var Kc=class{constructor(){this.plugins=new Set,this.events=new D.EventEmitter}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){const r=Qn(this.plugins,{type:e,action:t});return()=>this.plugins.delete(r)}add(e){const t=[];return es(e).forEach(e=>e&&this.plugins.add(Qn(t,e))),()=>{t.forEach(e=>this.plugins.delete(e))}}exec(e,t,r){let n=t;const s=Object.freeze(Object.create(r));for(const t of this.plugins)t.type===e&&(n=t.action(n,s));return n}};function Qc(e){return String(e.toLowerCase().split(" ",1))||"unknown"}qs(),qs(),$n(),qs();var Xc=jc();Nn();var Zc,el,tl=function(e,t){const r=new Kc,n=xs(e&&("string"==typeof e?{baseDir:e}:e)||{},t);if(!Kn(n.baseDir))throw new $c(n,"Cannot use simple-git on a directory that does not exist");return Array.isArray(n.config)&&r.add(function(e){const t=ss(e,"-c");return{type:"spawn.args",action:e=>[...t,...e]}}(n.config)),r.add(Nc(n.unsafe)),r.add({type:"spawn.args",action(e){const t=[];let r;function n(e){(r=r||[]).push(...e)}for(let r=0;r<e.length;r++){const s=e[r];if(Tn(s))n(On(s));else{if("--"===s){n(e.slice(r+1).flatMap(e=>Tn(e)&&On(e)||e));break}t.push(s)}}return r?[...t,"--",...r.map(String)]:t}}),r.add(Gc(n.completion)),n.abort&&r.add(function(e){if(!e)return;const t={type:"spawn.after",action(t,r){function n(){r.kill(new Ic(void 0,"abort","Abort signal received"))}e.addEventListener("abort",n),r.spawned.on("close",()=>e.removeEventListener("abort",n))}};return[{type:"spawn.before",action(t,r){e.aborted&&r.kill(new Ic(void 0,"abort","Abort already signaled"))}},t]}(n.abort)),n.progress&&r.add(function(e){const t="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action:(e,n)=>r.includes(n.method)?Xn(e,t):e},{type:"spawn.after",action(r,n){n.commands.includes(t)&&n.spawned.stderr?.on("data",t=>{const r=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(t.toString("utf8"));r&&e({method:n.method,stage:Qc(r[1]),progress:ns(r[2]),processed:ns(r[3]),total:ns(r[4])})})}}]}(n.progress)),n.timeout&&r.add(function({block:e,stdErr:t=!0,stdOut:r=!0}){if(e>0)return{type:"spawn.after",action(n,s){let o;function u(){o&&clearTimeout(o),o=setTimeout(a,e)}function i(){s.spawned.stdout?.off("data",u),s.spawned.stderr?.off("data",u),s.spawned.off("exit",i),s.spawned.off("close",i),o&&clearTimeout(o)}function a(){i(),s.kill(new Ic(void 0,"timeout","block timeout reached"))}r&&s.spawned.stdout?.on("data",u),t&&s.spawned.stderr?.on("data",u),s.spawned.on("exit",i),s.spawned.on("close",i),u()}}}(n.timeout)),n.spawnOptions&&r.add(function(e){const t=us(e,["uid","gid"]);return{type:"spawn.options",action:e=>({...t,...e})}}(n.spawnOptions)),r.add(Jc(Hc(!0))),n.errors&&r.add(Jc(n.errors)),function(e,t=["git"],r=!1){let n=Wc(es(t),r);e.on("binary",e=>{n=Wc(es(e),r)}),e.append("spawn.binary",()=>n.binary),e.append("spawn.args",e=>n.prefix?[n.prefix,...e]:e)}(r,n.binary,n.unsafe?.allowUnsafeCustomBinary),new Xc(n,r)},rl={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]}};var nl,sl={exports:{}},ol={exports:{}};function ul(){return nl||(nl=1,function(){const e=ol.exports,t="[",r="]",n="",s=";",o="Apple_Terminal"===process.env.TERM_PROGRAM;e.cursorTo=(e,r)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");return"number"!=typeof r?t+(e+1)+"G":t+(r+1)+";"+(e+1)+"H"},e.cursorMove=(e,r)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");let n="";return e<0?n+=t+-e+"D":e>0&&(n+=t+e+"C"),r<0?n+=t+-r+"A":r>0&&(n+=t+r+"B"),n},e.cursorUp=e=>t+("number"==typeof e?e:1)+"A",e.cursorDown=e=>t+("number"==typeof e?e:1)+"B",e.cursorForward=e=>t+("number"==typeof e?e:1)+"C",e.cursorBackward=e=>t+("number"==typeof e?e:1)+"D",e.cursorLeft="",e.cursorSavePosition=t+(o?"7":"s"),e.cursorRestorePosition=t+(o?"8":"u"),e.cursorGetPosition="",e.cursorNextLine="",e.cursorPrevLine="",e.cursorHide="[?25l",e.cursorShow="[?25h",e.eraseLines=t=>{let r="";for(let n=0;n<t;n++)r+=e.eraseLine+(n<t-1?e.cursorUp():"");return t&&(r+=e.cursorLeft),r},e.eraseEndLine="",e.eraseStartLine="",e.eraseLine="",e.eraseDown="",e.eraseUp="",e.eraseScreen="",e.scrollUp="",e.scrollDown="",e.clearScreen="c",e.clearTerminal="win32"===process.platform?`${e.eraseScreen}${t}0f`:`${e.eraseScreen}${t}3J${t}H`,e.beep=n,e.link=(e,t)=>[r,"8",s,s,t,n,e,r,"8",s,s,n].join(""),e.image=(e,t)=>{let s=r+"1337;File=inline=1";return(t=t||{}).width&&(s+=`;width=${t.width}`),t.height&&(s+=`;height=${t.height}`),!1===t.preserveAspectRatio&&(s+=";preserveAspectRatio=0"),s+":"+e.toString("base64")+n},e.iTerm={},e.iTerm.setCwd=e=>r+"50;CurrentDir="+(e||process.cwd())+n}()),ol.exports}var il,al,cl,ll,Dl={};function fl(){return al?il:(al=1,il=(e,t)=>{for(const r of Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e})}function hl(){if(ll)return cl;ll=1;const e=fl();return cl=(t,r)=>{if(!0===r)throw new TypeError("The second argument is now an options object");if("function"!=typeof t)throw new TypeError("Expected a function");let n;r=r||{};let s=!1;const o=t.displayName||t.name||"<anonymous>",u=function(){if(s){if(!0===r.throw)throw new Error(`Function \`${o}\` can only be called once`);return n}return s=!0,n=t.apply(this,arguments),t=null,n};return e(u,t),u},cl}var pl,dl,ml,gl,Fl,yl,bl,wl,Cl,El,vl,_l,kl,Bl,Sl,xl,Tl,Ol,Al,Rl,Ml,Pl,Ll,jl,$l={exports:{}},Il={exports:{}};function Nl(){return pl||(pl=1,(e=Il).exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),Il.exports;var e}function Ul(){if(dl)return $l.exports;dl=1;var e=J.process;const t=function(e){return 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};if(t(e)){var r,n=u,s=Nl(),o=/^win/i.test(e.platform),i=D;"function"!=typeof i&&(i=i.EventEmitter),e.__signal_exit_emitter__?r=e.__signal_exit_emitter__:((r=e.__signal_exit_emitter__=new i).count=0,r.emitted={}),r.infinite||(r.setMaxListeners(1/0),r.infinite=!0),$l.exports=function(e,s){if(!t(J.process))return function(){};n.equal(typeof e,"function","a callback must be provided for exit handler"),!1===f&&h();var o="exit";s&&s.alwaysLast&&(o="afterexit");return r.on(o,e),function(){r.removeListener(o,e),0===r.listeners("exit").length&&0===r.listeners("afterexit").length&&a()}};var a=function(){f&&t(J.process)&&(f=!1,s.forEach(function(t){try{e.removeListener(t,l[t])}catch(e){}}),e.emit=m,e.reallyExit=p,r.count-=1)};$l.exports.unload=a;var c=function(e,t,n){r.emitted[e]||(r.emitted[e]=!0,r.emit(e,t,n))},l={};s.forEach(function(n){l[n]=function(){t(J.process)&&(e.listeners(n).length===r.count&&(a(),c("exit",null,n),c("afterexit",null,n),o&&"SIGHUP"===n&&(n="SIGINT"),e.kill(e.pid,n)))}}),$l.exports.signals=function(){return s};var f=!1,h=function(){!f&&t(J.process)&&(f=!0,r.count+=1,s=s.filter(function(t){try{return e.on(t,l[t]),!0}catch(e){return!1}}),e.emit=g,e.reallyExit=d)};$l.exports.load=h;var p=e.reallyExit,d=function(r){t(J.process)&&(e.exitCode=r||0,c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),p.call(e,e.exitCode))},m=e.emit,g=function(r,n){if("exit"===r&&t(J.process)){void 0!==n&&(e.exitCode=n);var s=m.apply(this,arguments);return c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),s}return m.apply(this,arguments)}}else $l.exports=function(){return function(){}};return $l.exports}function Gl(){if(gl)return ml;gl=1;const e=hl(),t=Ul();return ml=e(()=>{t(()=>{process.stderr.write("[?25h")},{alwaysLast:!0})})}function ql(){return Fl||(Fl=1,function(e){const t=Gl();let r=!1;e.show=e=>{const t=e||process.stderr;t.isTTY&&(r=!1,t.write("[?25h"))},e.hide=e=>{const n=e||process.stderr;n.isTTY&&(t(),r=!0,n.write("[?25l"))},e.toggle=(t,n)=>{void 0!==t&&(r=t),r?e.show(n):e.hide(n)}}(Dl)),Dl}function zl(){return bl?yl:(bl=1,yl=()=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");return new RegExp(e,"g")})}function Wl(){if(Cl)return wl;Cl=1;const e=zl();return wl=t=>"string"==typeof t?t.replace(e(),""):t,wl}function Yl(){return vl?El:(vl=1,El=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)))}function Vl(){if(kl)return _l;kl=1;const e=Wl(),t=Yl();return _l=r=>{if("string"!=typeof r||0===r.length)return 0;r=e(r);let n=0;for(let e=0;e<r.length;e++){const s=r.codePointAt(e);s<=31||s>=127&&s<=159||(s>=768&&s<=879||(s>65535&&e++,n+=t(s)?2:1))}return n}}function Hl(){if(Sl)return Bl;Sl=1;const e=Vl(),t=Wl(),r=new Set(["","›"]),n=new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[90,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49]]),s=e=>`${r.values().next().value}[${e}m`,o=(n,s,o)=>{const u=Array.from(s);let i=!1,a=e(t(n[n.length-1]));for(const t of u.entries()){const s=t[0],c=t[1],l=e(c);if(a+l<=o?n[n.length-1]+=c:(n.push(c),a=0),r.has(c))i=!0;else if(i&&"m"===c){i=!1;continue}i||(a+=l,a===o&&s<u.length-1&&(n.push(""),a=0))}!a&&n[n.length-1].length>0&&n.length>1&&(n[n.length-2]+=n.pop())},u=(t,u,i)=>{const a=i||{};if(""===t.trim())return!1===a.trim?t:t.trim();let c,l="",D="";const f=(t=>t.split(" ").map(t=>e(t)))(t),h=t.split(" "),p=[""];for(const t of Array.from(h).entries()){const r=t[0],n=t[1];p[p.length-1]=!1===a.trim?p[p.length-1]:p[p.length-1].trim();let s=e(p[p.length-1]);if((s||""===n)&&(s===u&&!1===a.wordWrap&&(p.push(""),s=0),p[p.length-1]+=" ",s++),f[r]>u&&a.hard)s&&p.push(""),o(p,n,u);else{if(s+f[r]>u&&s>0){if(!1===a.wordWrap&&s<u){o(p,n,u);continue}p.push("")}s+f[r]>u&&!1===a.wordWrap?o(p,n,u):p[p.length-1]+=n}}l=p.map(e=>!1===a.trim?e:e.trim()).join("\n");for(const e of Array.from(l).entries()){const t=e[0],o=e[1];if(D+=o,r.has(o)){const e=parseFloat(/\d[^m]*/.exec(l.slice(t,t+4)));c=39===e?null:e}const u=n.get(Number(c));c&&u&&("\n"===l[t+1]?D+=s(u):"\n"===o&&(D+=s(c)))}return D};return Bl=(e,t,r)=>String(e).normalize().split("\n").map(e=>u(e,t,r)).join("\n"),Bl}function Jl(){if(xl)return sl.exports;xl=1;const e=ul(),t=ql(),r=Hl(),n=(n,s)=>{s=Object.assign({showCursor:!1},s);let o=0;const u=function(){s.showCursor||t.hide();let u=[].join.call(arguments," ")+"\n";u=r(u,(e=>{const t=e.columns;return t?"win32"===process.platform?t-1:t:80})(n),{trim:!1,hard:!0,wordWrap:!1}),n.write(e.eraseLines(o)+u),o=u.split("\n").length};return u.clear=()=>{n.write(e.eraseLines(o)),o=0},u.done=()=>{o=0,s.showCursor||t.show()},u};return sl.exports=n(process.stdout),sl.exports.stderr=n(process.stderr),sl.exports.create=n,sl.exports}function Kl(){if(jl)return Ll;jl=1;const{createHash:e}=f,{humanizeActual:n,humanizeRemaining:s}=function(){if(Ol)return Tl;Ol=1;const e=1e3,t=6e4,r=36e5;return Tl={humanizeActual:n=>{let s;return n<e?(n=Math.round(n),s="ms"):n<t?(n=(n/e).toFixed(1),s="secs"):n<r?(n=(n/t).toFixed(1),s="mins"):(n=(n/r).toFixed(1),s="hours"),n%1==0?`${Math.round(n)} ${s}`:`${n} ${s}`},humanizeRemaining:(n,s)=>{let o;return s<e?(n=Math.round(n),s=Math.round(s),o="ms"):s<t?(n=(n/e).toFixed(1),s=(s/e).toFixed(1),o="s"):s<r?(n=(n/t).toFixed(1),s=(s/t).toFixed(1),o="m"):(n=(n/r).toFixed(1),s=(s/r).toFixed(1),o="h"),`${n}${o}, estimated ${s}${o}`}}}(),{getEstimate:o,updateEstimate:u}=function(){if(Rl)return Al;Rl=1;const{existsSync:e,mkdirSync:n,readFileSync:s,writeFileSync:o}=r,{join:u}=t,i=(t,r)=>{const n=u(r,t);return e(n)?s(n,"utf8").split("\n").filter(e=>e).map(e=>Number.parseInt(e,10)):[]};return Al={getEstimate:(e,t,r)=>{const n=i(e,r);return n.length<3&&t&&n.push(t),n.length>0?n.reduce((e,t)=>e+t,0)/n.length:t},updateEstimate:(t,r,s)=>{e(s)||n(s);const a=i(t,s);a.push(r),a.length>10&&a.shift();const c=u(s,t);o(c,a.join("\n"))}}}(),{getProgressBar:i}=Pl?Ml:(Pl=1,Ml={getProgressBar:(e,t,r=20)=>{e=Math.max(0,Math.min(.99,e));const n=` ${Math.round(100*e)}%`.padEnd(r);let s="";for(let o=0;o<r;o++){const u=n.charAt(o);s+=e>0&&o/r<=e?t.progressForeground(u):t.progressBackground(u)}return s}});return Ll=t=>{const{logFunction:r,spinner:a,storagePath:c,theme:l}=t;return async(t,D,f)=>{let h,{estimate:p,id:d}=f||{};if(!d){const t=e("sha1");t.update(D),d=t.digest("hex")}try{p=o(d,p,c);const e=Date.now(),{frames:f,interval:m}=a;let g=0;h=setInterval(()=>{g=++g%f.length;let t=l`{asciiInProgress ${f[g]}} {label ${D}}`;if(p>0){const r=Date.now()-e,n=p-r;let o=s(r,p);o=n<0?l.estimateExceeded(o):l.estimate(o);const u=i(r/p,l);t+=l` ${u} {estimate ${o}}`}r(t)},m);const F=await t,y=Date.now()-e;u(d,y,c);const b=n(y);return r(l`{asciiCompleted ✓} {label ${D}} {estimate ${b}}`),r.done(),F}catch(e){throw r.clear(),e}finally{clearInterval(h)}}}}var Ql,Xl,Zl={exports:{}};function eD(){if(Xl)return Ql;Xl=1;var e=/[|\\{}()[\]^$+*?.]/g;return Ql=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}}var tD,rD,nD,sD,oD,uD,iD,aD,cD,lD,DD,fD,hD,pD,dD,mD={exports:{}},gD={exports:{}};function FD(){if(nD)return gD.exports;nD=1;var e=rD?tD:(rD=1,tD={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);var n=gD.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in n)if(n.hasOwnProperty(s)){if(!("channels"in n[s]))throw new Error("missing channels property: "+s);if(!("labels"in n[s]))throw new Error("missing channel labels property: "+s);if(n[s].labels.length!==n[s].channels)throw new Error("channel and label counts mismatch: "+s);var o=n[s].channels,u=n[s].labels;delete n[s].channels,delete n[s].labels,Object.defineProperty(n[s],"channels",{value:o}),Object.defineProperty(n[s],"labels",{value:u})}function i(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}return n.rgb.hsl=function(e){var t,r,n=e[0]/255,s=e[1]/255,o=e[2]/255,u=Math.min(n,s,o),i=Math.max(n,s,o),a=i-u;return i===u?t=0:n===i?t=(s-o)/a:s===i?t=2+(o-n)/a:o===i&&(t=4+(n-s)/a),(t=Math.min(60*t,360))<0&&(t+=360),r=(u+i)/2,[t,100*(i===u?0:r<=.5?a/(i+u):a/(2-i-u)),100*r]},n.rgb.hsv=function(e){var t,r,n,s,o,u=e[0]/255,i=e[1]/255,a=e[2]/255,c=Math.max(u,i,a),l=c-Math.min(u,i,a),D=function(e){return(c-e)/6/l+.5};return 0===l?s=o=0:(o=l/c,t=D(u),r=D(i),n=D(a),u===c?s=n-r:i===c?s=1/3+t-n:a===c&&(s=2/3+r-t),s<0?s+=1:s>1&&(s-=1)),[360*s,100*o,100*c]},n.rgb.hwb=function(e){var t=e[0],r=e[1],s=e[2];return[n.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,s))),100*(s=1-1/255*Math.max(t,Math.max(r,s)))]},n.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,s=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-s)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-s-t)/(1-t)||0),100*t]},n.rgb.keyword=function(r){var n=t[r];if(n)return n;var s,o=1/0;for(var u in e)if(e.hasOwnProperty(u)){var a=i(r,e[u]);a<o&&(o=a,s=u)}return s},n.keyword.rgb=function(t){return e[t]},n.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},n.rgb.lab=function(e){var t=n.rgb.xyz(e),r=t[0],s=t[1],o=t[2];return s/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116)-16,500*(r-s),200*(s-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},n.hsl.rgb=function(e){var t,r,n,s,o,u=e[0]/360,i=e[1]/100,a=e[2]/100;if(0===i)return[o=255*a,o,o];t=2*a-(r=a<.5?a*(1+i):a+i-a*i),s=[0,0,0];for(var c=0;c<3;c++)(n=u+1/3*-(c-1))<0&&n++,n>1&&n--,o=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,s[c]=255*o;return s},n.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,s=r,o=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,s*=o<=1?o:2-o,[t,100*(0===n?2*s/(o+s):2*r/(n+r)),100*((n+r)/2)]},n.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,s=Math.floor(t)%6,o=t-Math.floor(t),u=255*n*(1-r),i=255*n*(1-r*o),a=255*n*(1-r*(1-o));switch(n*=255,s){case 0:return[n,a,u];case 1:return[i,n,u];case 2:return[u,n,a];case 3:return[u,i,n];case 4:return[a,u,n];case 5:return[n,u,i]}},n.hsv.hsl=function(e){var t,r,n,s=e[0],o=e[1]/100,u=e[2]/100,i=Math.max(u,.01);return n=(2-o)*u,r=o*i,[s,100*(r=(r/=(t=(2-o)*i)<=1?t:2-t)||0),100*(n/=2)]},n.hwb.rgb=function(e){var t,r,n,s,o,u,i,a=e[0]/360,c=e[1]/100,l=e[2]/100,D=c+l;switch(D>1&&(c/=D,l/=D),n=6*a-(t=Math.floor(6*a)),1&t&&(n=1-n),s=c+n*((r=1-l)-c),t){default:case 6:case 0:o=r,u=s,i=c;break;case 1:o=s,u=r,i=c;break;case 2:o=c,u=r,i=s;break;case 3:o=c,u=s,i=r;break;case 4:o=s,u=c,i=r;break;case 5:o=r,u=c,i=s}return[255*o,255*u,255*i]},n.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,s=e[3]/100;return[255*(1-Math.min(1,t*(1-s)+s)),255*(1-Math.min(1,r*(1-s)+s)),255*(1-Math.min(1,n*(1-s)+s))]},n.xyz.rgb=function(e){var t,r,n,s=e[0]/100,o=e[1]/100,u=e[2]/100;return r=-.9689*s+1.8758*o+.0415*u,n=.0557*s+-.204*o+1.057*u,t=(t=3.2406*s+-1.5372*o+-.4986*u)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(e){var t,r,n,s=e[0];t=e[1]/500+(r=(s+16)/116),n=r-e[2]/200;var o=Math.pow(r,3),u=Math.pow(t,3),i=Math.pow(n,3);return r=o>.008856?o:(r-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},n.lab.lch=function(e){var t,r=e[0],n=e[1],s=e[2];return(t=360*Math.atan2(s,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+s*s),t]},n.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},n.rgb.ansi16=function(e){var t=e[0],r=e[1],s=e[2],o=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var u=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===o&&(u+=60),u},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},n.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},n.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},n.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map(function(e){return e+e}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,s=e[2]/255,o=Math.max(Math.max(r,n),s),u=Math.min(Math.min(r,n),s),i=o-u;return t=i<=0?0:o===r?(n-s)/i%6:o===n?2+(s-r)/i:4+(r-n)/i+4,t/=6,[360*(t%=1),100*i,100*(i<1?u/(1-i):0)]},n.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,s=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(s=(r-.5*n)/(1-n)),[e[0],100*n,100*s]},n.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,s=0;return n<1&&(s=(r-n)/(1-n)),[e[0],100*n,100*s]},n.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var s,o=[0,0,0],u=t%1*6,i=u%1,a=1-i;switch(Math.floor(u)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return s=(1-r)*n,[255*(r*o[0]+s),255*(r*o[1]+s),255*(r*o[2]+s)]},n.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},n.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},n.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},n.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,s=0;return n<1&&(s=(r-n)/(1-n)),[e[0],100*n,100*s]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=n.gray.hsv=function(e){return[0,0,e[0]]},n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},gD.exports}function yD(){if(oD)return sD;oD=1;var e=FD();function t(t){var r=function(){for(var t={},r=Object.keys(e),n=r.length,s=0;s<n;s++)t[r[s]]={distance:-1,parent:null};return t}(),n=[t];for(r[t].distance=0;n.length;)for(var s=n.pop(),o=Object.keys(e[s]),u=o.length,i=0;i<u;i++){var a=o[i],c=r[a];-1===c.distance&&(c.distance=r[s].distance+1,c.parent=s,n.unshift(a))}return r}function r(e,t){return function(r){return t(e(r))}}function n(t,n){for(var s=[n[t].parent,t],o=e[n[t].parent][t],u=n[t].parent;n[u].parent;)s.unshift(n[u].parent),o=r(e[n[u].parent][u],o),u=n[u].parent;return o.conversion=s,o}return sD=function(e){for(var r=t(e),s={},o=Object.keys(r),u=o.length,i=0;i<u;i++){var a=o[i];null!==r[a].parent&&(s[a]=n(a,r))}return s}}function bD(){if(iD)return uD;iD=1;var e=FD(),t=yD(),r={};return Object.keys(e).forEach(function(n){r[n]={},Object.defineProperty(r[n],"channels",{value:e[n].channels}),Object.defineProperty(r[n],"labels",{value:e[n].labels});var s=t(n);Object.keys(s).forEach(function(e){var t=s[e];r[n][e]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,s=0;s<n;s++)r[s]=Math.round(r[s]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(t),r[n][e].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(t)})}),uD=r}function wD(){return DD||(DD=1,function(e){const t=eD(),r=(aD||(aD=1,function(e){const t=bD(),r=(e,r)=>function(){return`[${e.apply(t,arguments)+r}m`},n=(e,r)=>function(){const n=e.apply(t,arguments);return`[${38+r};5;${n}m`},s=(e,r)=>function(){const n=e.apply(t,arguments);return`[${38+r};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(const t of Object.keys(o)){const r=o[t];for(const t of Object.keys(r)){const n=r[t];o[t]={open:`[${n[0]}m`,close:`[${n[1]}m`},r[t]=o[t],e.set(n[0],n[1])}Object.defineProperty(o,t,{value:r,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}const u=e=>e,i=(e,t,r)=>[e,t,r];o.color.close="",o.bgColor.close="",o.color.ansi={ansi:r(u,0)},o.color.ansi256={ansi256:n(u,0)},o.color.ansi16m={rgb:s(i,0)},o.bgColor.ansi={ansi:r(u,10)},o.bgColor.ansi256={ansi256:n(u,10)},o.bgColor.ansi16m={rgb:s(i,10)};for(let e of Object.keys(t)){if("object"!=typeof t[e])continue;const u=t[e];"ansi16"===e&&(e="ansi"),"ansi16"in u&&(o.color.ansi[e]=r(u.ansi16,0),o.bgColor.ansi[e]=r(u.ansi16,10)),"ansi256"in u&&(o.color.ansi256[e]=n(u.ansi256,0),o.bgColor.ansi256[e]=n(u.ansi256,10)),"rgb"in u&&(o.color.ansi16m[e]=s(u.rgb,0),o.bgColor.ansi16m[e]=s(u.rgb,10))}return o}})}(mD)),mD.exports),n=fn().stdout,s=function(){if(lD)return cD;lD=1;const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,n=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function o(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):s.get(e)||e}function u(e,t){const s=[],u=t.trim().split(/\s*,\s*/g);let i;for(const t of u)if(isNaN(t)){if(!(i=t.match(r)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);s.push(i[2].replace(n,(e,t,r)=>t?o(t):r))}else s.push(Number(t));return s}function i(e){t.lastIndex=0;const r=[];let n;for(;null!==(n=t.exec(e));){const e=n[1];if(n[2]){const t=u(e,n[2]);r.push([e].concat(t))}else r.push([e])}return r}function a(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=r[e].length>0?n[e].apply(n,r[e]):n[e]}return n}return cD=(t,r)=>{const n=[],s=[];let u=[];if(r.replace(e,(e,r,c,l,D,f)=>{if(r)u.push(o(r));else if(l){const e=u.join("");u=[],s.push(0===n.length?e:a(t,n)(e)),n.push({inverse:c,styles:i(l)})}else if(D){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");s.push(a(t,n)(u.join(""))),u=[],n.pop()}else u.push(f)}),s.push(u.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")},cD}(),o="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),u=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),a=Object.create(null);function c(e,t){t=t||{};const r=n?n.level:0;e.level=void 0===t.level?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function l(e){if(!this||!(this instanceof l)||this.template){const t={};return c(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,l.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=l,t.template}c(this,e)}o&&(r.blue.open="");for(const e of Object.keys(r))r[e].closeRe=new RegExp(t(r[e].close),"g"),a[e]={get(){const t=r[e];return f.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};a.visible={get(){return f.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(const e of Object.keys(r.color.ansi))i.has(e)||(a[e]={get(){const t=this.level;return function(){const n={open:r.color[u[t]][e].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return f.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(const e of Object.keys(r.bgColor.ansi)){if(i.has(e))continue;a["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n={open:r.bgColor[u[t]][e].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return f.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const D=Object.defineProperties(()=>{},a);function f(e,t,r){const n=function(){return h.apply(n,arguments)};n._styles=e,n._empty=t;const s=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>s.level,set(e){s.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>s.enabled,set(e){s.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=D,n}function h(){const e=arguments,t=e.length;let n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;r<t;r++)n+=" "+e[r];if(!this.enabled||this.level<=0||!n)return this._empty?"":n;const s=r.dim.open;o&&this.hasGrey&&(r.dim.open="");for(const e of this._styles.slice().reverse())n=e.open+n.replace(e.closeRe,e.open)+e.close,n=n.replace(/\r?\n/g,`${e.close}$&${e.open}`);return r.dim.open=s,n}function p(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[t.raw[0]];for(let e=1;e<t.length;e++)n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[e]));return s(e,n.join(""))}Object.defineProperties(l.prototype,a),e.exports=l(),e.exports.supportsColor=n,e.exports.default=e.exports}(Zl)),Zl.exports}function CD(){if(hD)return fD;hD=1;const e="#171717",t="#757575",r="#00de6d",n="#007272",s="#cf000b",o="#ffdd00",u="#ffffff",i=wD().constructor();return i.asciiCompleted=i.hex(r),i.asciiInProgress=i.hex(o),i.estimate=i.hex(t),i.estimateExceeded=i.hex(s),i.label=i,i.percentage=i,i.progressBackground=i.bgHex(n).hex(u),i.progressForeground=i.bgHex(r).hex(e),fD=i}var ED=function(){if(dD)return pD;dD=1;const{dots:e}=el?Zc:(el=1,Zc=rl),t=Jl(),{tmpdir:r}=c,n=Kl(),s={logFunction:t,spinner:e,storagePath:`${r()}/progress-estimator`,theme:CD()};return pD=e=>n({...s,...e})}(),vD=K(ED);const _D=(e=0)=>t=>`[${t+e}m`,kD=(e=0)=>t=>`[${38+e};5;${t}m`,BD=(e=0)=>(t,r,n)=>`[${38+e};2;${t};${r};${n}m`,SD={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(SD.modifier);Object.keys(SD.color),Object.keys(SD.bgColor);const xD=function(){const e=new Map;for(const[t,r]of Object.entries(SD)){for(const[t,n]of Object.entries(r))SD[t]={open:`[${n[0]}m`,close:`[${n[1]}m`},r[t]=SD[t],e.set(n[0],n[1]);Object.defineProperty(SD,t,{value:r,enumerable:!1})}return Object.defineProperty(SD,"codes",{value:e,enumerable:!1}),SD.color.close="",SD.bgColor.close="",SD.color.ansi=_D(),SD.color.ansi256=kD(),SD.color.ansi16m=BD(),SD.bgColor.ansi=_D(10),SD.bgColor.ansi256=kD(10),SD.bgColor.ansi16m=BD(10),Object.defineProperties(SD,{rgbToAnsi256:{value:(e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;3===r.length&&(r=[...r].map(e=>e+e).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:e=>SD.rgbToAnsi256(...SD.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,r,n;if(e>=232)t=(10*(e-232)+8)/255,r=t,n=t;else{const s=(e-=16)%36;t=Math.floor(e/36)/5,r=Math.floor(s/6)/5,n=s%6/5}const s=2*Math.max(t,r,n);if(0===s)return 30;let o=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return 2===s&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,r)=>SD.ansi256ToAnsi(SD.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>SD.ansi256ToAnsi(SD.hexToAnsi256(e)),enumerable:!1}}),SD}(),TD=(()=>{if(!("navigator"in globalThis))return 0;if(globalThis.navigator.userAgentData){const e=navigator.userAgentData.brands.find(({brand:e})=>"Chromium"===e);if(e&&e.version>93)return 3}return/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)?1:0})(),OD=0!==TD&&{level:TD},AD={stdout:OD,stderr:OD};function RD(e,t,r){let n=e.indexOf(t);if(-1===n)return e;const s=t.length;let o=0,u="";do{u+=e.slice(o,n)+t+r,o=n+s,n=e.indexOf(t,o)}while(-1!==n);return u+=e.slice(o),u}const{stdout:MD,stderr:PD}=AD,LD=Symbol("GENERATOR"),jD=Symbol("STYLER"),$D=Symbol("IS_EMPTY"),ID=["ansi","ansi","ansi256","ansi16m"],ND=Object.create(null),UD=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=MD?MD.level:0;e.level=void 0===t.level?r:t.level})(t,e),Object.setPrototypeOf(t,GD.prototype),t};function GD(e){return UD(e)}Object.setPrototypeOf(GD.prototype,Function.prototype);for(const[e,t]of Object.entries(xD))ND[e]={get(){const r=VD(this,YD(t.open,t.close,this[jD]),this[$D]);return Object.defineProperty(this,e,{value:r}),r}};ND.visible={get(){const e=VD(this,this[jD],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const qD=(e,t,r,...n)=>"rgb"===e?"ansi16m"===t?xD[r].ansi16m(...n):"ansi256"===t?xD[r].ansi256(xD.rgbToAnsi256(...n)):xD[r].ansi(xD.rgbToAnsi(...n)):"hex"===e?qD("rgb",t,r,...xD.hexToRgb(...n)):xD[r][e](...n),zD=["rgb","hex","ansi256"];for(const e of zD){ND[e]={get(){const{level:t}=this;return function(...r){const n=YD(qD(e,ID[t],"color",...r),xD.color.close,this[jD]);return VD(this,n,this[$D])}}};ND["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const n=YD(qD(e,ID[t],"bgColor",...r),xD.bgColor.close,this[jD]);return VD(this,n,this[$D])}}}}const WD=Object.defineProperties(()=>{},{...ND,level:{enumerable:!0,get(){return this[LD].level},set(e){this[LD].level=e}}}),YD=(e,t,r)=>{let n,s;return void 0===r?(n=e,s=t):(n=r.openAll+e,s=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:s,parent:r}},VD=(e,t,r)=>{const n=(...e)=>HD(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,WD),n[LD]=e,n[jD]=t,n[$D]=r,n},HD=(e,t)=>{if(e.level<=0||!t)return e[$D]?"":t;let r=e[jD];if(void 0===r)return t;const{openAll:n,closeAll:s}=r;if(t.includes(""))for(;void 0!==r;)t=RD(t,r.close,r.open),r=r.parent;const o=t.indexOf("\n");return-1!==o&&(t=function(e,t,r,n){let s=0,o="";do{const u="\r"===e[n-1];o+=e.slice(s,u?n-1:n)+t+(u?"\r\n":"\n")+r,s=n+1,n=e.indexOf("\n",s)}while(-1!==n);return o+=e.slice(s),o}(t,s,n,o)),n+t+s};Object.defineProperties(GD.prototype,ND);const JD=GD();GD({level:PD?PD.level:0});const KD=vD({spinner:{interval:100,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map(e=>JD.green(e))}}),QD={baseDir:process.cwd(),binary:"git",maxConcurrentProcesses:6},XD=new Map([["vue3-template",{name:"vue3-template",downloadUrl:"https://github.com/MaFantastic/---vue3-.git",description:"Vue 3 template",branch:"main"}],["vue2-template",{name:"vue2-template",downloadUrl:"https://github.com/MaFantastic/---vue3-.git",description:"Vue 2 template",branch:"main"}]]),ZD=async e=>{const r=Array.from(XD).map(e=>{const[t,r]=e;return{name:t,value:t,description:r.description}});for(;!e||""===e.trim();)e=await We({message:"请输入项目名称",validate:e=>!(!e||""===e.trim())||"项目名称不能为空"});const n=t.resolve(process.cwd(),e);if(Hr.existsSync(n)){if(!await(s=e,console.warn(`${s}文件夹存在`),st({message:"是否覆盖原文件",choices:[{name:"覆盖",value:!0},{name:"取消",value:!1}]})))return void console.log(JD.yellow("停止下载"));await Hr.remove(n)}var s;const o=await st({message:"请选择初始化的模版",choices:r}),u=XD.get(o);console.log("info",u),u&&(async(e,t,r)=>{const n=tl(QD);try{await KD(n.clone(e,t,r),"代码下载中,请稍后...",{estimate:7e3}),console.log(),console.log(JD.blueBright("==================================")),console.log(JD.blueBright("=== 欢迎使用 mzx-cli 脚手架 ===")),console.log(JD.blueBright("==================================")),console.log(),console.log(`项目创建成功 ${JD.green(t)}`),console.log("执行以下命令启动项目:"),console.log(`cd ${JD.blueBright(t)}`),console.log(`${JD.yellow("pnpm")} install`),console.log(`${JD.yellow("pnpm")} run dev`)}catch(e){console.log(JD.red("下载失败")),console.log(JD.red(String(e)))}})(u?.downloadUrl,e,["-b",u?.branch])},ef=new e.Command("mzx");ef.version("1.0.0","-v, --version"),ef.command("create [projectName]").description("create a new project").action(async e=>{await ZD(e)}),ef.parse();
@@ -0,0 +1,2 @@
1
+ export declare const create: (projectName: string) => Promise<void>;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commond/create/index.ts"],"names":[],"mappings":"AA+CA,eAAO,MAAM,MAAM,GAAU,aAAa,MAAM,kBAyC/C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare const clone: (url: string, projectName: string, options: string[]) => Promise<void>;
2
+ //# sourceMappingURL=clone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../../src/utils/clone.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,KAAK,GAAS,KAAK,MAAM,EAAE,aAAa,MAAM,EAAE,SAAS,MAAM,EAAE,kBAqB7E,CAAC"}
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "mzx-cli",
3
+ "version": "1.0.0",
4
+ "description": "mzx-cli 脚手架",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "build": "rollup -c rollup.config.js --bundleConfigAsCjs"
9
+ },
10
+ "keywords": [
11
+ "Vite",
12
+ "Vue3",
13
+ "Typescript",
14
+ "Element-plus"
15
+ ],
16
+ "author": "mzx",
17
+ "bin": {
18
+ "mzx": "bin/index.js"
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "bin",
23
+ "README.md"
24
+ ],
25
+ "license": "ISC",
26
+ "dependencies": {
27
+ "-": "^0.0.1",
28
+ "commander": "^14.0.2",
29
+ "typescript": "^5.9.3"
30
+ },
31
+ "devDependencies": {
32
+ "@inquirer/prompts": "^8.1.0",
33
+ "@rollup/plugin-commonjs": "^29.0.0",
34
+ "@rollup/plugin-json": "^6.1.0",
35
+ "@rollup/plugin-node-resolve": "^16.0.3",
36
+ "@rollup/plugin-terser": "^0.4.4",
37
+ "@types/fs-extra": "^11.0.4",
38
+ "@types/node": "^25.0.3",
39
+ "chalk": "^5.6.2",
40
+ "fs-extra": "^11.3.3",
41
+ "progress-estimator": "^0.3.1",
42
+ "rollup": "^4.55.1",
43
+ "rollup-plugin-node-externals": "^8.1.2",
44
+ "rollup-plugin-typescript2": "^0.36.0",
45
+ "simple-git": "^3.30.0"
46
+ }
47
+ }