pod-install 1.0.18 → 1.0.19

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.
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ require('../build/index.js');
package/build/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- (()=>{var e={8841:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const s=r(n(4422));function spawnAsync(e,t,n={}){const r=new Error;const o=r.stack?r.stack.replace(/^.*/," ..."):null;let i;let a=new Promise(((r,a)=>{let{ignoreStdio:c,...l}=n;i=(0,s.default)(e,t,l);let u="";let f="";if(!c){if(i.stdout){i.stdout.on("data",(e=>{u+=e}))}if(i.stderr){i.stderr.on("data",(e=>{f+=e}))}}let completionListener=(n,s)=>{i.removeListener("error",errorListener);let c={pid:i.pid,output:[u,f],stdout:u,stderr:f,status:n,signal:s};if(n!==0){let r=t&&t.length>0?` ${t.join(" ")}`:"";let i=s?new Error(`${e}${r} exited with signal: ${s}`):new Error(`${e}${r} exited with non-zero code: ${n}`);if(i.stack&&o){i.stack+=`\n${o}`}Object.assign(i,c);a(i)}else{r(c)}};let errorListener=e=>{if(c){i.removeListener("exit",completionListener)}else{i.removeListener("close",completionListener)}Object.assign(e,{pid:i.pid,output:[u,f],stdout:u,stderr:f,status:null,signal:null});a(e)};if(c){i.once("exit",completionListener)}else{i.once("close",completionListener)}i.once("error",errorListener)}));a.child=i;return a}e.exports=spawnAsync},3898:e=>{"use strict";const t=e.exports;e.exports["default"]=t;const n="[";const r="]";const s="";const o=";";const i=process.env.TERM_PROGRAM==="Apple_Terminal";t.cursorTo=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}if(typeof t!=="number"){return n+(e+1)+"G"}return n+(t+1)+";"+(e+1)+"H"};t.cursorMove=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}let r="";if(e<0){r+=n+-e+"D"}else if(e>0){r+=n+e+"C"}if(t<0){r+=n+-t+"A"}else if(t>0){r+=n+t+"B"}return r};t.cursorUp=(e=1)=>n+e+"A";t.cursorDown=(e=1)=>n+e+"B";t.cursorForward=(e=1)=>n+e+"C";t.cursorBackward=(e=1)=>n+e+"D";t.cursorLeft=n+"G";t.cursorSavePosition=i?"7":n+"s";t.cursorRestorePosition=i?"8":n+"u";t.cursorGetPosition=n+"6n";t.cursorNextLine=n+"E";t.cursorPrevLine=n+"F";t.cursorHide=n+"?25l";t.cursorShow=n+"?25h";t.eraseLines=e=>{let n="";for(let r=0;r<e;r++){n+=t.eraseLine+(r<e-1?t.cursorUp():"")}if(e){n+=t.cursorLeft}return n};t.eraseEndLine=n+"K";t.eraseStartLine=n+"1K";t.eraseLine=n+"2K";t.eraseDown=n+"J";t.eraseUp=n+"1J";t.eraseScreen=n+"2J";t.scrollUp=n+"S";t.scrollDown=n+"T";t.clearScreen="c";t.clearTerminal=process.platform==="win32"?`${t.eraseScreen}${n}0f`:`${t.eraseScreen}${n}3J${n}H`;t.beep=s;t.link=(e,t)=>[r,"8",o,o,t,s,e,r,"8",o,o,s].join("");t.image=(e,t={})=>{let n=`${r}1337;File=inline=1`;if(t.width){n+=`;width=${t.width}`}if(t.height){n+=`;height=${t.height}`}if(t.preserveAspectRatio===false){n+=";preserveAspectRatio=0"}return n+":"+e.toString("base64")+s};t.iTerm={setCwd:(e=process.cwd())=>`${r}50;CurrentDir=${e}${s}`,annotation:(e,t={})=>{let n=`${r}1337;`;const o=typeof t.x!=="undefined";const i=typeof t.y!=="undefined";if((o||i)&&!(o&&i&&typeof t.length!=="undefined")){throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined")}e=e.replace(/\|/g,"");n+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=";if(t.length>0){n+=(o?[e,t.length,t.x,t.y]:[t.length,e]).join("|")}else{n+=e}return n+s}}},8344:(e,t,n)=>{"use strict";e=n.nmd(e);const wrapAnsi16=(e,t)=>(...n)=>{const r=e(...n);return`[${r+t}m`};const wrapAnsi256=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,n)=>[e,t,n];const setLazyProperty=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true});return r},enumerable:true,configurable:true})};let r;const makeDynamicStyles=(e,t,s,o)=>{if(r===undefined){r=n(6089)}const i=o?10:0;const a={};for(const[n,o]of Object.entries(r)){const r=n==="ansi16"?"ansi":n;if(n===t){a[r]=e(s,i)}else if(typeof o==="object"){a[r]=e(o[t],i)}}return a};function assembleStyles(){const e=new Map;const t={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],blackBright:[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]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,s]of Object.entries(r)){t[n]={open:`[${s[0]}m`,close:`[${s[1]}m`};r[n]=t[n];e.set(s[0],s[1])}Object.defineProperty(t,n,{value:r,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="";t.bgColor.close="";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},3992:(e,t,n)=>{const r=n(9437);const s={};for(const e of Object.keys(r)){s[r[e]]=e}const o={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"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e])){throw new Error("missing channels property: "+e)}if(!("labels"in o[e])){throw new Error("missing channel labels property: "+e)}if(o[e].labels.length!==o[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:n}=o[e];delete o[e].channels;delete o[e].labels;Object.defineProperty(o[e],"channels",{value:t});Object.defineProperty(o[e],"labels",{value:n})}o.rgb.hsl=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const s=Math.min(t,n,r);const o=Math.max(t,n,r);const i=o-s;let a;let c;if(o===s){a=0}else if(t===o){a=(n-r)/i}else if(n===o){a=2+(r-t)/i}else if(r===o){a=4+(t-n)/i}a=Math.min(a*60,360);if(a<0){a+=360}const l=(s+o)/2;if(o===s){c=0}else if(l<=.5){c=i/(o+s)}else{c=i/(2-o-s)}return[a,c*100,l*100]};o.rgb.hsv=function(e){let t;let n;let r;let s;let o;const i=e[0]/255;const a=e[1]/255;const c=e[2]/255;const l=Math.max(i,a,c);const u=l-Math.min(i,a,c);const diffc=function(e){return(l-e)/6/u+1/2};if(u===0){s=0;o=0}else{o=u/l;t=diffc(i);n=diffc(a);r=diffc(c);if(i===l){s=r-n}else if(a===l){s=1/3+t-r}else if(c===l){s=2/3+n-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,o*100,l*100]};o.rgb.hwb=function(e){const t=e[0];const n=e[1];let r=e[2];const s=o.rgb.hsl(e)[0];const i=1/255*Math.min(t,Math.min(n,r));r=1-1/255*Math.max(t,Math.max(n,r));return[s,i*100,r*100]};o.rgb.cmyk=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const s=Math.min(1-t,1-n,1-r);const o=(1-t-s)/(1-s)||0;const i=(1-n-s)/(1-s)||0;const a=(1-r-s)/(1-s)||0;return[o*100,i*100,a*100,s*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){const t=s[e];if(t){return t}let n=Infinity;let o;for(const t of Object.keys(r)){const s=r[t];const i=comparativeDistance(e,s);if(i<n){n=i;o=t}}return o};o.keyword.rgb=function(e){return r[e]};o.rgb.xyz=function(e){let t=e[0]/255;let n=e[1]/255;let r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const s=t*.4124+n*.3576+r*.1805;const o=t*.2126+n*.7152+r*.0722;const i=t*.0193+n*.1192+r*.9505;return[s*100,o*100,i*100]};o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0];let r=t[1];let s=t[2];n/=95.047;r/=100;s/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;const i=116*r-16;const a=500*(n-r);const c=200*(r-s);return[i,a,c]};o.hsl.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;let s;let o;let i;if(n===0){i=r*255;return[i,i,i]}if(r<.5){s=r*(1+n)}else{s=r+n-r*n}const a=2*r-s;const c=[0,0,0];for(let e=0;e<3;e++){o=t+1/3*-(e-1);if(o<0){o++}if(o>1){o--}if(6*o<1){i=a+(s-a)*6*o}else if(2*o<1){i=s}else if(3*o<2){i=a+(s-a)*(2/3-o)*6}else{i=a}c[e]=i*255}return c};o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100;let r=e[2]/100;let s=n;const o=Math.max(r,.01);r*=2;n*=r<=1?r:2-r;s*=o<=1?o:2-o;const i=(r+n)/2;const a=r===0?2*s/(o+s):2*n/(r+n);return[t,a*100,i*100]};o.hsv.rgb=function(e){const t=e[0]/60;const n=e[1]/100;let r=e[2]/100;const s=Math.floor(t)%6;const o=t-Math.floor(t);const i=255*r*(1-n);const a=255*r*(1-n*o);const c=255*r*(1-n*(1-o));r*=255;switch(s){case 0:return[r,c,i];case 1:return[a,r,i];case 2:return[i,r,c];case 3:return[i,a,r];case 4:return[c,i,r];case 5:return[r,i,a]}};o.hsv.hsl=function(e){const t=e[0];const n=e[1]/100;const r=e[2]/100;const s=Math.max(r,.01);let o;let i;i=(2-n)*r;const a=(2-n)*s;o=n*s;o/=a<=1?a:2-a;o=o||0;i/=2;return[t,o*100,i*100]};o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100;let r=e[2]/100;const s=n+r;let o;if(s>1){n/=s;r/=s}const i=Math.floor(6*t);const a=1-r;o=6*t-i;if((i&1)!==0){o=1-o}const c=n+o*(a-n);let l;let u;let f;switch(i){default:case 6:case 0:l=a;u=c;f=n;break;case 1:l=c;u=a;f=n;break;case 2:l=n;u=a;f=c;break;case 3:l=n;u=c;f=a;break;case 4:l=c;u=n;f=a;break;case 5:l=a;u=n;f=c;break}return[l*255,u*255,f*255]};o.cmyk.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;const s=e[3]/100;const o=1-Math.min(1,t*(1-s)+s);const i=1-Math.min(1,n*(1-s)+s);const a=1-Math.min(1,r*(1-s)+s);return[o*255,i*255,a*255]};o.xyz.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;let s;let o;let i;s=t*3.2406+n*-1.5372+r*-.4986;o=t*-.9689+n*1.8758+r*.0415;i=t*.0557+n*-.204+r*1.057;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);i=Math.min(Math.max(0,i),1);return[s*255,o*255,i*255]};o.xyz.lab=function(e){let t=e[0];let n=e[1];let r=e[2];t/=95.047;n/=100;r/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const s=116*n-16;const o=500*(t-n);const i=200*(n-r);return[s,o,i]};o.lab.xyz=function(e){const t=e[0];const n=e[1];const r=e[2];let s;let o;let i;o=(t+16)/116;s=n/500+o;i=o-r/200;const a=o**3;const c=s**3;const l=i**3;o=a>.008856?a:(o-16/116)/7.787;s=c>.008856?c:(s-16/116)/7.787;i=l>.008856?l:(i-16/116)/7.787;s*=95.047;o*=100;i*=108.883;return[s,o,i]};o.lab.lch=function(e){const t=e[0];const n=e[1];const r=e[2];let s;const o=Math.atan2(r,n);s=o*360/2/Math.PI;if(s<0){s+=360}const i=Math.sqrt(n*n+r*r);return[t,i,s]};o.lch.lab=function(e){const t=e[0];const n=e[1];const r=e[2];const s=r/360*2*Math.PI;const o=n*Math.cos(s);const i=n*Math.sin(s);return[t,o,i]};o.rgb.ansi16=function(e,t=null){const[n,r,s]=e;let i=t===null?o.rgb.hsv(e)[2]:t;i=Math.round(i/50);if(i===0){return 30}let a=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(n/255));if(i===2){a+=60}return a};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){const t=e[0];const n=e[1];const r=e[2];if(t===n&&n===r){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const s=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return s};o.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const n=(~~(e>50)+1)*.5;const r=(t&1)*n*255;const s=(t>>1&1)*n*255;const o=(t>>2&1)*n*255;return[r,s,o]};o.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const n=Math.floor(e/36)/5*255;const r=Math.floor((t=e%36)/6)/5*255;const s=t%6/5*255;return[n,r,s]};o.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let n=t[0];if(t[0].length===3){n=n.split("").map((e=>e+e)).join("")}const r=parseInt(n,16);const s=r>>16&255;const o=r>>8&255;const i=r&255;return[s,o,i]};o.rgb.hcg=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const s=Math.max(Math.max(t,n),r);const o=Math.min(Math.min(t,n),r);const i=s-o;let a;let c;if(i<1){a=o/(1-i)}else{a=0}if(i<=0){c=0}else if(s===t){c=(n-r)/i%6}else if(s===n){c=2+(r-t)/i}else{c=4+(t-n)/i}c/=6;c%=1;return[c*360,i*100,a*100]};o.hsl.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=n<.5?2*t*n:2*t*(1-n);let s=0;if(r<1){s=(n-.5*r)/(1-r)}return[e[0],r*100,s*100]};o.hsv.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=t*n;let s=0;if(r<1){s=(n-r)/(1-r)}return[e[0],r*100,s*100]};o.hcg.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;if(n===0){return[r*255,r*255,r*255]}const s=[0,0,0];const o=t%1*6;const i=o%1;const a=1-i;let c=0;switch(Math.floor(o)){case 0:s[0]=1;s[1]=i;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=i;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=i;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}c=(1-n)*r;return[(n*s[0]+c)*255,(n*s[1]+c)*255,(n*s[2]+c)*255]};o.hcg.hsv=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);let s=0;if(r>0){s=t/r}return[e[0],s*100,r*100]};o.hcg.hsl=function(e){const t=e[1]/100;const n=e[2]/100;const r=n*(1-t)+.5*t;let s=0;if(r>0&&r<.5){s=t/(2*r)}else if(r>=.5&&r<1){s=t/(2*(1-r))}return[e[0],s*100,r*100]};o.hcg.hwb=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};o.hwb.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=1-n;const s=r-t;let o=0;if(s<1){o=(r-s)/(1-s)}return[e[0],s*100,o*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=function(e){return[0,0,e[0]]};o.gray.hsv=o.gray.hsl;o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const n=(t<<16)+(t<<8)+t;const r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},6089:(e,t,n)=>{const r=n(3992);const s=n(3816);const o={};const i=Object.keys(r);function wrapRaw(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}const r=e(t);if(typeof r==="object"){for(let e=r.length,t=0;t<e;t++){r[t]=Math.round(r[t])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}i.forEach((e=>{o[e]={};Object.defineProperty(o[e],"channels",{value:r[e].channels});Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=s(e);const n=Object.keys(t);n.forEach((n=>{const r=t[n];o[e][n]=wrapRounded(r);o[e][n].raw=wrapRaw(r)}))}));e.exports=o},3816:(e,t,n)=>{const r=n(3992);function buildGraph(){const e={};const t=Object.keys(r);for(let n=t.length,r=0;r<n;r++){e[t[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const n=[e];t[e].distance=0;while(n.length){const e=n.pop();const s=Object.keys(r[e]);for(let r=s.length,o=0;o<r;o++){const r=s[o];const i=t[r];if(i.distance===-1){i.distance=t[e].distance+1;i.parent=e;n.unshift(r)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){const n=[t[e].parent,e];let s=r[t[e].parent][e];let o=t[e].parent;while(t[o].parent){n.unshift(t[o].parent);s=link(r[t[o].parent][o],s);o=t[o].parent}s.conversion=n;return s}e.exports=function(e){const t=deriveBFS(e);const n={};const r=Object.keys(t);for(let e=r.length,s=0;s<e;s++){const e=r[s];const o=t[e];if(o.parent===null){continue}n[e]=wrapConversion(e,t)}return n}},2325:(e,t,n)=>{"use strict";const r=n(8344);const{stdout:s,stderr:o}=n(3662);const{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:a}=n(6437);const{isArray:c}=Array;const l=["ansi","ansi","ansi256","ansi16m"];const u=Object.create(null);const applyOptions=(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 n=s?s.level:0;e.level=t.level===undefined?n:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(r)){u[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:n});return n}}}u.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f){u[e]={get(){const{level:t}=this;return function(...n){const s=createStyler(r.color[l[t]][e](...n),r.color.close,this._styler);return createBuilder(this,s,this._isEmpty)}}}}for(const e of f){const t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get(){const{level:t}=this;return function(...n){const s=createStyler(r.bgColor[l[t]][e](...n),r.bgColor.close,this._styler);return createBuilder(this,s,this._isEmpty)}}}}const d=Object.defineProperties((()=>{}),{...u,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,n)=>{let r;let s;if(n===undefined){r=e;s=t}else{r=n.openAll+e;s=t+n.closeAll}return{open:e,close:t,openAll:r,closeAll:s,parent:n}};const createBuilder=(e,t,n)=>{const builder=(...e)=>{if(c(e[0])&&c(e[0].raw)){return applyStyle(builder,chalkTag(builder,...e))}return applyStyle(builder,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(builder,d);builder._generator=e;builder._styler=t;builder._isEmpty=n;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let n=e._styler;if(n===undefined){return t}const{openAll:r,closeAll:s}=n;if(t.indexOf("")!==-1){while(n!==undefined){t=i(t,n.close,n.open);n=n.parent}}const o=t.indexOf("\n");if(o!==-1){t=a(t,s,r,o)}return r+t+s};let h;const chalkTag=(e,...t)=>{const[r]=t;if(!c(r)||!c(r.raw)){return t.join(" ")}const s=t.slice(1);const o=[r.raw[0]];for(let e=1;e<r.length;e++){o.push(String(s[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]))}if(h===undefined){h=n(9514)}return h(e,o.join(""))};Object.defineProperties(Chalk.prototype,u);const p=Chalk();p.supportsColor=s;p.stderr=Chalk({level:o?o.level:0});p.stderr.supportsColor=o;e.exports=p},9514:e=>{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const s=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const n=e[1]==="{";if(t&&!n&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&n){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return o.get(e)||e}function parseArguments(e,t){const n=[];const o=t.trim().split(/\s*,\s*/g);let i;for(const t of o){const o=Number(t);if(!Number.isNaN(o)){n.push(o)}else if(i=t.match(r)){n.push(i[2].replace(s,((e,t,n)=>t?unescape(t):n)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let r;while((r=n.exec(e))!==null){const e=r[1];if(r[2]){const n=parseArguments(e,r[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let r=e;for(const[e,t]of Object.entries(n)){if(!Array.isArray(t)){continue}if(!(e in r)){throw new Error(`Unknown Chalk style: ${e}`)}r=t.length>0?r[e](...t):r[e]}return r}e.exports=(e,n)=>{const r=[];const s=[];let o=[];n.replace(t,((t,n,i,a,c,l)=>{if(n){o.push(unescape(n))}else if(a){const t=o.join("");o=[];s.push(r.length===0?t:buildStyle(e,r)(t));r.push({inverse:i,styles:parseStyle(a)})}else if(c){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,r)(o.join("")));o=[];r.pop()}else{o.push(l)}}));s.push(o.join(""));if(r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")}},6437:e=>{"use strict";const stringReplaceAll=(e,t,n)=>{let r=e.indexOf(t);if(r===-1){return e}const s=t.length;let o=0;let i="";do{i+=e.substr(o,r-o)+t+n;o=r+s;r=e.indexOf(t,o)}while(r!==-1);i+=e.substr(o);return i};const stringEncaseCRLFWithFirstIndex=(e,t,n,r)=>{let s=0;let o="";do{const i=e[r-1]==="\r";o+=e.substr(s,(i?r-1:r)-s)+t+(i?"\r\n":"\n")+n;s=r+1;r=e.indexOf("\n",s)}while(r!==-1);o+=e.substr(s);return o};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},9437:e=>{"use strict";e.exports={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]}},4422:(e,t,n)=>{"use strict";const r=n(5317);const s=n(7641);const o=n(3609);function spawn(e,t,n){const i=s(e,t,n);const a=r.spawn(i.command,i.args,i.options);o.hookChildProcess(a,i);return a}function spawnSync(e,t,n){const i=s(e,t,n);const a=r.spawnSync(i.command,i.args,i.options);a.error=a.error||o.verifyENOENTSync(a.status,i);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=s;e.exports._enoent=o},3609:e=>{"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,n){if(!t){return}const r=e.emit;e.emit=function(t,s){if(t==="exit"){const t=verifyENOENT(s,n);if(t){return r.call(e,"error",t)}}return r.apply(e,arguments)}}function verifyENOENT(e,n){if(t&&e===1&&!n.file){return notFoundError(n.original,"spawn")}return null}function verifyENOENTSync(e,n){if(t&&e===1&&!n.file){return notFoundError(n.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},7641:(e,t,n)=>{"use strict";const r=n(6928);const s=n(1998);const o=n(528);const i=n(8115);const a=process.platform==="win32";const c=/\.(?:com|exe)$/i;const l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(e){e.file=s(e);const t=e.file&&i(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!a){return e}const t=detectShebang(e);const n=!c.test(t);if(e.options.forceShell||n){const n=l.test(t);e.command=r.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map((e=>o.argument(e,n)));const s=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${s}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parse(e,t,n){if(t&&!Array.isArray(t)){n=t;t=null}t=t?t.slice(0):[];n=Object.assign({},n);const r={command:e,args:t,options:n,file:undefined,original:{command:e,args:t}};return n.shell?r:parseNonShell(r)}e.exports=parse},528:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,n){e=`${e}`;e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"');e=e.replace(/(?=(\\+?)?)\1$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(n){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},8115:(e,t,n)=>{"use strict";const r=n(9896);const s=n(2668);function readShebang(e){const t=150;const n=Buffer.alloc(t);let o;try{o=r.openSync(e,"r");r.readSync(o,n,0,t,0);r.closeSync(o)}catch(e){}return s(n.toString())}e.exports=readShebang},1998:(e,t,n)=>{"use strict";const r=n(6928);const s=n(3340);const o=n(661);function resolveCommandAttempt(e,t){const n=e.options.env||process.env;const i=process.cwd();const a=e.options.cwd!=null;const c=a&&process.chdir!==undefined&&!process.chdir.disabled;if(c){try{process.chdir(e.options.cwd)}catch(e){}}let l;try{l=s.sync(e.command,{path:n[o({env:n})],pathExt:t?r.delimiter:undefined})}catch(e){}finally{if(c){process.chdir(i)}}if(l){l=r.resolve(a?e.options.cwd:"",l)}return l}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},2536:e=>{"use strict";
2
+ (()=>{var e={3970:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=n(181);const o=r(n(670));const s=i.constants.MAX_STRING_LENGTH;function spawnAsync(e,t,n={}){const r=new Error;const a=r.stack?r.stack.replace(/^.*/," ..."):null;const{ignoreStdio:l,maxBuffer:c,...u}=n;const f=c!=null;const p=!!l;const d=Math.min(c!==null&&c!==void 0?c:s,i.constants.MAX_STRING_LENGTH);let h=(0,o.default)(e,t,u);let g=new Promise(((n,r)=>{var i,o;const s={buffer:[],maxExceeded:false};const l={buffer:[],maxExceeded:false};function makeHandler(e){let t=0;return n=>{e.buffer.push(n);t+=typeof n==="string"?Buffer.byteLength(n):n.byteLength;while(e.buffer.length>0&&t>d){e.maxExceeded=true;n=e.buffer[0];const r=typeof n==="string"?Buffer.byteLength(n):n.byteLength;if(t-r<d){const r=typeof n==="string"?Buffer.from(n):n;const i=t-d;e.buffer[0]=r.subarray(i);t-=i;break}else{e.buffer.shift();t-=r}}}}function attachResult(n,r,i,o,s){function makeMaxBufferError(){const n=t&&t.length>0?` ${t.join(" ")}`:"";const s=new Error(`${e}${n} exceeded maxBuffer of ${d} bytes`);s.code="ERR_CHILD_PROCESS_STDIO_MAXBUFFER";return attachResult(s,r,i,o,true)}let a;let l;const c={stdout:{enumerable:true,configurable:true,get(){if(!s&&i.maxExceeded){throw makeMaxBufferError()}else if(a===undefined){a=Buffer.concat(i.buffer.map((e=>typeof e==="string"?Buffer.from(e):e))).toString("utf8")}return a}},stderr:{enumerable:true,configurable:true,get(){if(!s&&o.maxExceeded){throw makeMaxBufferError()}else if(l===undefined){l=Buffer.concat(o.buffer.map((e=>typeof e==="string"?Buffer.from(e):e))).toString("utf8")}return l}},output:{enumerable:true,configurable:true,get:()=>[n.stdout,n.stderr]}};for(const e in r){c[e]={value:r[e],enumerable:true,writable:true,configurable:true}}Object.defineProperties(n,c);return n}if(!p){(i=h.stdout)===null||i===void 0?void 0:i.on("data",makeHandler(s));(o=h.stderr)===null||o===void 0?void 0:o.on("data",makeHandler(l))}const c=p||!h.stdout&&!h.stderr?"exit":"close";let completionListener=(i,o)=>{h.removeListener("error",errorListener);const c=t&&t.length>0?` ${t.join(" ")}`:"";let u=null;if(i!==0){u=o?new Error(`${e}${c} exited with signal: ${o}`):new Error(`${e}${c} exited with non-zero code: ${i}`)}const p={pid:h.pid,status:i,signal:o};if(u){if(u.stack&&a)u.stack+=`\n${a}`;r(attachResult(u,p,s,l,true))}else if(f&&(s.maxExceeded||l.maxExceeded)){const t=new Error(`${e}${c} exceeded maxBuffer of ${d} bytes`);t.code="ERR_CHILD_PROCESS_STDIO_MAXBUFFER";r(attachResult(t,p,s,l,true))}else{const e={};n(attachResult(e,p,s,l))}};let errorListener=e=>{h.removeListener(c,completionListener);const t={pid:h.pid,status:null,signal:null};r(attachResult(e,t,s,l))};h.once(c,completionListener);h.once("error",errorListener)}));g.child=h;return g}e.exports=spawnAsync},2604:e=>{"use strict";const t=e.exports;e.exports["default"]=t;const n="[";const r="]";const i="";const o=";";const s=process.env.TERM_PROGRAM==="Apple_Terminal";t.cursorTo=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}if(typeof t!=="number"){return n+(e+1)+"G"}return n+(t+1)+";"+(e+1)+"H"};t.cursorMove=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}let r="";if(e<0){r+=n+-e+"D"}else if(e>0){r+=n+e+"C"}if(t<0){r+=n+-t+"A"}else if(t>0){r+=n+t+"B"}return r};t.cursorUp=(e=1)=>n+e+"A";t.cursorDown=(e=1)=>n+e+"B";t.cursorForward=(e=1)=>n+e+"C";t.cursorBackward=(e=1)=>n+e+"D";t.cursorLeft=n+"G";t.cursorSavePosition=s?"7":n+"s";t.cursorRestorePosition=s?"8":n+"u";t.cursorGetPosition=n+"6n";t.cursorNextLine=n+"E";t.cursorPrevLine=n+"F";t.cursorHide=n+"?25l";t.cursorShow=n+"?25h";t.eraseLines=e=>{let n="";for(let r=0;r<e;r++){n+=t.eraseLine+(r<e-1?t.cursorUp():"")}if(e){n+=t.cursorLeft}return n};t.eraseEndLine=n+"K";t.eraseStartLine=n+"1K";t.eraseLine=n+"2K";t.eraseDown=n+"J";t.eraseUp=n+"1J";t.eraseScreen=n+"2J";t.scrollUp=n+"S";t.scrollDown=n+"T";t.clearScreen="c";t.clearTerminal=process.platform==="win32"?`${t.eraseScreen}${n}0f`:`${t.eraseScreen}${n}3J${n}H`;t.beep=i;t.link=(e,t)=>[r,"8",o,o,t,i,e,r,"8",o,o,i].join("");t.image=(e,t={})=>{let n=`${r}1337;File=inline=1`;if(t.width){n+=`;width=${t.width}`}if(t.height){n+=`;height=${t.height}`}if(t.preserveAspectRatio===false){n+=";preserveAspectRatio=0"}return n+":"+e.toString("base64")+i};t.iTerm={setCwd:(e=process.cwd())=>`${r}50;CurrentDir=${e}${i}`,annotation:(e,t={})=>{let n=`${r}1337;`;const o=typeof t.x!=="undefined";const s=typeof t.y!=="undefined";if((o||s)&&!(o&&s&&typeof t.length!=="undefined")){throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined")}e=e.replace(/\|/g,"");n+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=";if(t.length>0){n+=(o?[e,t.length,t.x,t.y]:[t.length,e]).join("|")}else{n+=e}return n+i}}},1264:(e,t,n)=>{"use strict";e=n.nmd(e);const wrapAnsi16=(e,t)=>(...n)=>{const r=e(...n);return`[${r+t}m`};const wrapAnsi256=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,n)=>[e,t,n];const setLazyProperty=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true});return r},enumerable:true,configurable:true})};let r;const makeDynamicStyles=(e,t,i,o)=>{if(r===undefined){r=n(9734)}const s=o?10:0;const a={};for(const[n,o]of Object.entries(r)){const r=n==="ansi16"?"ansi":n;if(n===t){a[r]=e(i,s)}else if(typeof o==="object"){a[r]=e(o[t],s)}}return a};function assembleStyles(){const e=new Map;const t={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],blackBright:[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]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,i]of Object.entries(r)){t[n]={open:`[${i[0]}m`,close:`[${i[1]}m`};r[n]=t[n];e.set(i[0],i[1])}Object.defineProperty(t,n,{value:r,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="";t.bgColor.close="";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},2314:(e,t,n)=>{"use strict";const r=n(1264);const{stdout:i,stderr:o}=n(6480);const{stringReplaceAll:s,stringEncaseCRLFWithFirstIndex:a}=n(7188);const{isArray:l}=Array;const c=["ansi","ansi","ansi256","ansi16m"];const u=Object.create(null);const applyOptions=(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 n=i?i.level:0;e.level=t.level===undefined?n:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(r)){u[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:n});return n}}}u.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f){u[e]={get(){const{level:t}=this;return function(...n){const i=createStyler(r.color[c[t]][e](...n),r.color.close,this._styler);return createBuilder(this,i,this._isEmpty)}}}}for(const e of f){const t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get(){const{level:t}=this;return function(...n){const i=createStyler(r.bgColor[c[t]][e](...n),r.bgColor.close,this._styler);return createBuilder(this,i,this._isEmpty)}}}}const p=Object.defineProperties((()=>{}),{...u,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,n)=>{let r;let i;if(n===undefined){r=e;i=t}else{r=n.openAll+e;i=t+n.closeAll}return{open:e,close:t,openAll:r,closeAll:i,parent:n}};const createBuilder=(e,t,n)=>{const builder=(...e)=>{if(l(e[0])&&l(e[0].raw)){return applyStyle(builder,chalkTag(builder,...e))}return applyStyle(builder,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(builder,p);builder._generator=e;builder._styler=t;builder._isEmpty=n;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let n=e._styler;if(n===undefined){return t}const{openAll:r,closeAll:i}=n;if(t.indexOf("")!==-1){while(n!==undefined){t=s(t,n.close,n.open);n=n.parent}}const o=t.indexOf("\n");if(o!==-1){t=a(t,i,r,o)}return r+t+i};let d;const chalkTag=(e,...t)=>{const[r]=t;if(!l(r)||!l(r.raw)){return t.join(" ")}const i=t.slice(1);const o=[r.raw[0]];for(let e=1;e<r.length;e++){o.push(String(i[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]))}if(d===undefined){d=n(9121)}return d(e,o.join(""))};Object.defineProperties(Chalk.prototype,u);const h=Chalk();h.supportsColor=i;h.stderr=Chalk({level:o?o.level:0});h.stderr.supportsColor=o;e.exports=h},9121:e=>{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const n=e[1]==="{";if(t&&!n&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&n){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return o.get(e)||e}function parseArguments(e,t){const n=[];const o=t.trim().split(/\s*,\s*/g);let s;for(const t of o){const o=Number(t);if(!Number.isNaN(o)){n.push(o)}else if(s=t.match(r)){n.push(s[2].replace(i,((e,t,n)=>t?unescape(t):n)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let r;while((r=n.exec(e))!==null){const e=r[1];if(r[2]){const n=parseArguments(e,r[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let r=e;for(const[e,t]of Object.entries(n)){if(!Array.isArray(t)){continue}if(!(e in r)){throw new Error(`Unknown Chalk style: ${e}`)}r=t.length>0?r[e](...t):r[e]}return r}e.exports=(e,n)=>{const r=[];const i=[];let o=[];n.replace(t,((t,n,s,a,l,c)=>{if(n){o.push(unescape(n))}else if(a){const t=o.join("");o=[];i.push(r.length===0?t:buildStyle(e,r)(t));r.push({inverse:s,styles:parseStyle(a)})}else if(l){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,r)(o.join("")));o=[];r.pop()}else{o.push(c)}}));i.push(o.join(""));if(r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")}},7188:e=>{"use strict";const stringReplaceAll=(e,t,n)=>{let r=e.indexOf(t);if(r===-1){return e}const i=t.length;let o=0;let s="";do{s+=e.substr(o,r-o)+t+n;o=r+i;r=e.indexOf(t,o)}while(r!==-1);s+=e.substr(o);return s};const stringEncaseCRLFWithFirstIndex=(e,t,n,r)=>{let i=0;let o="";do{const s=e[r-1]==="\r";o+=e.substr(i,(s?r-1:r)-i)+t+(s?"\r\n":"\n")+n;i=r+1;r=e.indexOf("\n",i)}while(r!==-1);o+=e.substr(i);return o};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},2979:(e,t,n)=>{const r=n(711);const i={};for(const e of Object.keys(r)){i[r[e]]=e}const o={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"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e])){throw new Error("missing channels property: "+e)}if(!("labels"in o[e])){throw new Error("missing channel labels property: "+e)}if(o[e].labels.length!==o[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:n}=o[e];delete o[e].channels;delete o[e].labels;Object.defineProperty(o[e],"channels",{value:t});Object.defineProperty(o[e],"labels",{value:n})}o.rgb.hsl=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const i=Math.min(t,n,r);const o=Math.max(t,n,r);const s=o-i;let a;let l;if(o===i){a=0}else if(t===o){a=(n-r)/s}else if(n===o){a=2+(r-t)/s}else if(r===o){a=4+(t-n)/s}a=Math.min(a*60,360);if(a<0){a+=360}const c=(i+o)/2;if(o===i){l=0}else if(c<=.5){l=s/(o+i)}else{l=s/(2-o-i)}return[a,l*100,c*100]};o.rgb.hsv=function(e){let t;let n;let r;let i;let o;const s=e[0]/255;const a=e[1]/255;const l=e[2]/255;const c=Math.max(s,a,l);const u=c-Math.min(s,a,l);const diffc=function(e){return(c-e)/6/u+1/2};if(u===0){i=0;o=0}else{o=u/c;t=diffc(s);n=diffc(a);r=diffc(l);if(s===c){i=r-n}else if(a===c){i=1/3+t-r}else if(l===c){i=2/3+n-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,o*100,c*100]};o.rgb.hwb=function(e){const t=e[0];const n=e[1];let r=e[2];const i=o.rgb.hsl(e)[0];const s=1/255*Math.min(t,Math.min(n,r));r=1-1/255*Math.max(t,Math.max(n,r));return[i,s*100,r*100]};o.rgb.cmyk=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const i=Math.min(1-t,1-n,1-r);const o=(1-t-i)/(1-i)||0;const s=(1-n-i)/(1-i)||0;const a=(1-r-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){const t=i[e];if(t){return t}let n=Infinity;let o;for(const t of Object.keys(r)){const i=r[t];const s=comparativeDistance(e,i);if(s<n){n=s;o=t}}return o};o.keyword.rgb=function(e){return r[e]};o.rgb.xyz=function(e){let t=e[0]/255;let n=e[1]/255;let r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805;const o=t*.2126+n*.7152+r*.0722;const s=t*.0193+n*.1192+r*.9505;return[i*100,o*100,s*100]};o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0];let r=t[1];let i=t[2];n/=95.047;r/=100;i/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;const s=116*r-16;const a=500*(n-r);const l=200*(r-i);return[s,a,l]};o.hsl.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;let i;let o;let s;if(n===0){s=r*255;return[s,s,s]}if(r<.5){i=r*(1+n)}else{i=r+n-r*n}const a=2*r-i;const l=[0,0,0];for(let e=0;e<3;e++){o=t+1/3*-(e-1);if(o<0){o++}if(o>1){o--}if(6*o<1){s=a+(i-a)*6*o}else if(2*o<1){s=i}else if(3*o<2){s=a+(i-a)*(2/3-o)*6}else{s=a}l[e]=s*255}return l};o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100;let r=e[2]/100;let i=n;const o=Math.max(r,.01);r*=2;n*=r<=1?r:2-r;i*=o<=1?o:2-o;const s=(r+n)/2;const a=r===0?2*i/(o+i):2*n/(r+n);return[t,a*100,s*100]};o.hsv.rgb=function(e){const t=e[0]/60;const n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6;const o=t-Math.floor(t);const s=255*r*(1-n);const a=255*r*(1-n*o);const l=255*r*(1-n*(1-o));r*=255;switch(i){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}};o.hsv.hsl=function(e){const t=e[0];const n=e[1]/100;const r=e[2]/100;const i=Math.max(r,.01);let o;let s;s=(2-n)*r;const a=(2-n)*i;o=n*i;o/=a<=1?a:2-a;o=o||0;s/=2;return[t,o*100,s*100]};o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100;let r=e[2]/100;const i=n+r;let o;if(i>1){n/=i;r/=i}const s=Math.floor(6*t);const a=1-r;o=6*t-s;if((s&1)!==0){o=1-o}const l=n+o*(a-n);let c;let u;let f;switch(s){default:case 6:case 0:c=a;u=l;f=n;break;case 1:c=l;u=a;f=n;break;case 2:c=n;u=a;f=l;break;case 3:c=n;u=l;f=a;break;case 4:c=l;u=n;f=a;break;case 5:c=a;u=n;f=l;break}return[c*255,u*255,f*255]};o.cmyk.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;const i=e[3]/100;const o=1-Math.min(1,t*(1-i)+i);const s=1-Math.min(1,n*(1-i)+i);const a=1-Math.min(1,r*(1-i)+i);return[o*255,s*255,a*255]};o.xyz.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;let i;let o;let s;i=t*3.2406+n*-1.5372+r*-.4986;o=t*-.9689+n*1.8758+r*.0415;s=t*.0557+n*-.204+r*1.057;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);return[i*255,o*255,s*255]};o.xyz.lab=function(e){let t=e[0];let n=e[1];let r=e[2];t/=95.047;n/=100;r/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16;const o=500*(t-n);const s=200*(n-r);return[i,o,s]};o.lab.xyz=function(e){const t=e[0];const n=e[1];const r=e[2];let i;let o;let s;o=(t+16)/116;i=n/500+o;s=o-r/200;const a=o**3;const l=i**3;const c=s**3;o=a>.008856?a:(o-16/116)/7.787;i=l>.008856?l:(i-16/116)/7.787;s=c>.008856?c:(s-16/116)/7.787;i*=95.047;o*=100;s*=108.883;return[i,o,s]};o.lab.lch=function(e){const t=e[0];const n=e[1];const r=e[2];let i;const o=Math.atan2(r,n);i=o*360/2/Math.PI;if(i<0){i+=360}const s=Math.sqrt(n*n+r*r);return[t,s,i]};o.lch.lab=function(e){const t=e[0];const n=e[1];const r=e[2];const i=r/360*2*Math.PI;const o=n*Math.cos(i);const s=n*Math.sin(i);return[t,o,s]};o.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let s=t===null?o.rgb.hsv(e)[2]:t;s=Math.round(s/50);if(s===0){return 30}let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));if(s===2){a+=60}return a};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){const t=e[0];const n=e[1];const r=e[2];if(t===n&&n===r){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i};o.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const n=(~~(e>50)+1)*.5;const r=(t&1)*n*255;const i=(t>>1&1)*n*255;const o=(t>>2&1)*n*255;return[r,i,o]};o.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const n=Math.floor(e/36)/5*255;const r=Math.floor((t=e%36)/6)/5*255;const i=t%6/5*255;return[n,r,i]};o.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let n=t[0];if(t[0].length===3){n=n.split("").map((e=>e+e)).join("")}const r=parseInt(n,16);const i=r>>16&255;const o=r>>8&255;const s=r&255;return[i,o,s]};o.rgb.hcg=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const i=Math.max(Math.max(t,n),r);const o=Math.min(Math.min(t,n),r);const s=i-o;let a;let l;if(s<1){a=o/(1-s)}else{a=0}if(s<=0){l=0}else if(i===t){l=(n-r)/s%6}else if(i===n){l=2+(r-t)/s}else{l=4+(t-n)/s}l/=6;l%=1;return[l*360,s*100,a*100]};o.hsl.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=n<.5?2*t*n:2*t*(1-n);let i=0;if(r<1){i=(n-.5*r)/(1-r)}return[e[0],r*100,i*100]};o.hsv.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=t*n;let i=0;if(r<1){i=(n-r)/(1-r)}return[e[0],r*100,i*100]};o.hcg.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;if(n===0){return[r*255,r*255,r*255]}const i=[0,0,0];const o=t%1*6;const s=o%1;const a=1-s;let l=0;switch(Math.floor(o)){case 0:i[0]=1;i[1]=s;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=s;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=s;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}l=(1-n)*r;return[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};o.hcg.hsv=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);let i=0;if(r>0){i=t/r}return[e[0],i*100,r*100]};o.hcg.hsl=function(e){const t=e[1]/100;const n=e[2]/100;const r=n*(1-t)+.5*t;let i=0;if(r>0&&r<.5){i=t/(2*r)}else if(r>=.5&&r<1){i=t/(2*(1-r))}return[e[0],i*100,r*100]};o.hcg.hwb=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};o.hwb.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=1-n;const i=r-t;let o=0;if(i<1){o=(r-i)/(1-i)}return[e[0],i*100,o*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=function(e){return[0,0,e[0]]};o.gray.hsv=o.gray.hsl;o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const n=(t<<16)+(t<<8)+t;const r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},9734:(e,t,n)=>{const r=n(2979);const i=n(8307);const o={};const s=Object.keys(r);function wrapRaw(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}const r=e(t);if(typeof r==="object"){for(let e=r.length,t=0;t<e;t++){r[t]=Math.round(r[t])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}s.forEach((e=>{o[e]={};Object.defineProperty(o[e],"channels",{value:r[e].channels});Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=i(e);const n=Object.keys(t);n.forEach((n=>{const r=t[n];o[e][n]=wrapRounded(r);o[e][n].raw=wrapRaw(r)}))}));e.exports=o},8307:(e,t,n)=>{const r=n(2979);function buildGraph(){const e={};const t=Object.keys(r);for(let n=t.length,r=0;r<n;r++){e[t[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const n=[e];t[e].distance=0;while(n.length){const e=n.pop();const i=Object.keys(r[e]);for(let r=i.length,o=0;o<r;o++){const r=i[o];const s=t[r];if(s.distance===-1){s.distance=t[e].distance+1;s.parent=e;n.unshift(r)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){const n=[t[e].parent,e];let i=r[t[e].parent][e];let o=t[e].parent;while(t[o].parent){n.unshift(t[o].parent);i=link(r[t[o].parent][o],i);o=t[o].parent}i.conversion=n;return i}e.exports=function(e){const t=deriveBFS(e);const n={};const r=Object.keys(t);for(let e=r.length,i=0;i<e;i++){const e=r[i];const o=t[e];if(o.parent===null){continue}n[e]=wrapConversion(e,t)}return n}},711:e=>{"use strict";e.exports={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]}},670:(e,t,n)=>{"use strict";const r=n(5317);const i=n(8401);const o=n(5377);function spawn(e,t,n){const s=i(e,t,n);const a=r.spawn(s.command,s.args,s.options);o.hookChildProcess(a,s);return a}function spawnSync(e,t,n){const s=i(e,t,n);const a=r.spawnSync(s.command,s.args,s.options);a.error=a.error||o.verifyENOENTSync(a.status,s);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=o},5377:e=>{"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,n){if(!t){return}const r=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,n);if(t){return r.call(e,"error",t)}}return r.apply(e,arguments)}}function verifyENOENT(e,n){if(t&&e===1&&!n.file){return notFoundError(n.original,"spawn")}return null}function verifyENOENTSync(e,n){if(t&&e===1&&!n.file){return notFoundError(n.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},8401:(e,t,n)=>{"use strict";const r=n(6928);const i=n(7430);const o=n(6808);const s=n(9531);const a=process.platform==="win32";const l=/\.(?:com|exe)$/i;const c=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(e){e.file=i(e);const t=e.file&&s(e.file);if(t){e.args.unshift(e.file);e.command=t;return i(e)}return e.file}function parseNonShell(e){if(!a){return e}const t=detectShebang(e);const n=!l.test(t);if(e.options.forceShell||n){const n=c.test(t);e.command=r.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map((e=>o.argument(e,n)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parse(e,t,n){if(t&&!Array.isArray(t)){n=t;t=null}t=t?t.slice(0):[];n=Object.assign({},n);const r={command:e,args:t,options:n,file:undefined,original:{command:e,args:t}};return n.shell?r:parseNonShell(r)}e.exports=parse},6808:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,n){e=`${e}`;e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"');e=e.replace(/(?=(\\+?)?)\1$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(n){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},9531:(e,t,n)=>{"use strict";const r=n(9896);const i=n(4881);function readShebang(e){const t=150;const n=Buffer.alloc(t);let o;try{o=r.openSync(e,"r");r.readSync(o,n,0,t,0);r.closeSync(o)}catch(e){}return i(n.toString())}e.exports=readShebang},7430:(e,t,n)=>{"use strict";const r=n(6928);const i=n(1192);const o=n(4662);function resolveCommandAttempt(e,t){const n=e.options.env||process.env;const s=process.cwd();const a=e.options.cwd!=null;const l=a&&process.chdir!==undefined&&!process.chdir.disabled;if(l){try{process.chdir(e.options.cwd)}catch(e){}}let c;try{c=i.sync(e.command,{path:n[o({env:n})],pathExt:t?r.delimiter:undefined})}catch(e){}finally{if(l){process.chdir(s)}}if(c){c=r.resolve(a?e.options.cwd:"",c)}return c}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},7442:e=>{"use strict";
3
3
  /*!
4
4
  * @description Recursive object extending
5
5
  * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
@@ -25,6 +25,27 @@
25
25
  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26
26
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27
27
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
- */function isSpecificValue(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp?true:false}function cloneSpecificValue(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);e.copy(t);return t}else if(e instanceof Date){return new Date(e.getTime())}else if(e instanceof RegExp){return new RegExp(e)}else{throw new Error("Unexpected situation")}}function deepCloneArray(e){var n=[];e.forEach((function(e,r){if(typeof e==="object"&&e!==null){if(Array.isArray(e)){n[r]=deepCloneArray(e)}else if(isSpecificValue(e)){n[r]=cloneSpecificValue(e)}else{n[r]=t({},e)}}else{n[r]=e}}));return n}function safeGetProperty(e,t){return t==="__proto__"?undefined:e[t]}var t=e.exports=function(){if(arguments.length<1||typeof arguments[0]!=="object"){return false}if(arguments.length<2){return arguments[0]}var e=arguments[0];var n=Array.prototype.slice.call(arguments,1);var r,s,o;n.forEach((function(n){if(typeof n!=="object"||n===null||Array.isArray(n)){return}Object.keys(n).forEach((function(o){s=safeGetProperty(e,o);r=safeGetProperty(n,o);if(r===e){return}else if(typeof r!=="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=deepCloneArray(r);return}else if(isSpecificValue(r)){e[o]=cloneSpecificValue(r);return}else if(typeof s!=="object"||s===null||Array.isArray(s)){e[o]=t({},r);return}else{e[o]=t(s,r);return}}))}));return e}},9473:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const s=t.indexOf("--");return r!==-1&&(s===-1||r<s)}},2388:(e,t)=>{t.parse=t.decode=decode;t.stringify=t.encode=encode;t.safe=safe;t.unsafe=unsafe;var n=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(e,t){var r=[];var s="";if(typeof t==="string"){t={section:t,whitespace:false}}else{t=t||{};t.whitespace=t.whitespace===true}var o=t.whitespace?" = ":"=";Object.keys(e).forEach((function(t,i,a){var c=e[t];if(c&&Array.isArray(c)){c.forEach((function(e){s+=safe(t+"[]")+o+safe(e)+"\n"}))}else if(c&&typeof c==="object")r.push(t);else s+=safe(t)+o+safe(c)+n}));if(t.section&&s.length)s="["+safe(t.section)+"]"+n+s;r.forEach((function(r,o,i){var a=dotSplit(r).join("\\.");var c=(t.section?t.section+".":"")+a;var l=encode(e[r],{section:c,whitespace:t.whitespace});if(s.length&&l.length)s+=n;s+=l}));return s}function dotSplit(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function decode(e){var t={};var n=t;var r=null;var s=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var o=e.split(/[\r\n]+/g);o.forEach((function(e,o,i){if(!e||e.match(/^\s*[;#]/))return;var a=e.match(s);if(!a)return;if(a[1]!==undefined){r=unsafe(a[1]);if(r==="__proto__"){n={};return}n=t[r]=t[r]||{};return}var c=unsafe(a[2]);if(c==="__proto__")return;var l=a[3]?unsafe(a[4]):true;switch(l){case"true":case"false":case"null":l=JSON.parse(l)}if(c.length>2&&c.slice(-2)==="[]"){c=c.substring(0,c.length-2);if(c==="__proto__")return;if(!n[c])n[c]=[];else if(!Array.isArray(n[c]))n[c]=[n[c]]}if(Array.isArray(n[c]))n[c].push(l);else n[c]=l}));Object.keys(t).filter((function(e,n,r){if(!t[e]||typeof t[e]!=="object"||Array.isArray(t[e]))return false;var s=dotSplit(e);var o=t;var i=s.pop();var a=i.replace(/\\\./g,".");s.forEach((function(e,t,n){if(e==="__proto__")return;if(!o[e]||typeof o[e]!=="object")o[e]={};o=o[e]}));if(o===t&&a===i)return false;o[a]=t[e];return true})).forEach((function(e,n,r){delete t[e]}));return t}function isQuoted(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function safe(e){return typeof e!=="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&isQuoted(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(e,t){e=(e||"").trim();if(isQuoted(e)){if(e.charAt(0)==="'")e=e.substr(1,e.length-2);try{e=JSON.parse(e)}catch(e){}}else{var n=false;var r="";for(var s=0,o=e.length;s<o;s++){var i=e.charAt(s);if(n){if("\\;#".indexOf(i)!==-1)r+=i;else r+="\\"+i;n=false}else if(";#".indexOf(i)!==-1)break;else if(i==="\\")n=true;else r+=i}if(n)r+="\\";return r.trim()}return e}},9648:(e,t,n)=>{var r=n(9896);var s;if(process.platform==="win32"||global.TESTING_WINDOWS){s=n(3117)}else{s=n(8341)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,n){if(typeof t==="function"){n=t;t={}}if(!n){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(n,r){isexe(e,t||{},(function(e,t){if(e){r(e)}else{n(t)}}))}))}s(e,t||{},(function(e,r){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;r=false}}n(e,r)}))}function sync(e,t){try{return s.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},8341:(e,t,n)=>{e.exports=isexe;isexe.sync=sync;var r=n(9896);function isexe(e,t,n){r.stat(e,(function(e,r){n(e,e?false:checkStat(r,t))}))}function sync(e,t){return checkStat(r.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var n=e.mode;var r=e.uid;var s=e.gid;var o=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var i=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var l=parseInt("001",8);var u=a|c;var f=n&l||n&c&&s===i||n&a&&r===o||n&u&&o===0;return f}},3117:(e,t,n)=>{e.exports=isexe;isexe.sync=sync;var r=n(9896);function checkPathExt(e,t){var n=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!n){return true}n=n.split(";");if(n.indexOf("")!==-1){return true}for(var r=0;r<n.length;r++){var s=n[r].toLowerCase();if(s&&e.substr(-s.length).toLowerCase()===s){return true}}return false}function checkStat(e,t,n){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,n)}function isexe(e,t,n){r.stat(e,(function(r,s){n(r,r?false:checkStat(s,e,t))}))}function sync(e,t){return checkStat(r.statSync(e),e,t)}},4750:e=>{"use strict";function hasKey(e,t){var n=e;t.slice(0,-1).forEach((function(e){n=n[e]||{}}));var r=t[t.length-1];return r in n}function isNumber(e){if(typeof e==="number"){return true}if(/^0x[0-9a-f]+$/i.test(e)){return true}return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function isConstructorOrProto(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}e.exports=function(e,t){if(!t){t={}}var n={bools:{},strings:{},unknownFn:null};if(typeof t.unknown==="function"){n.unknownFn=t.unknown}if(typeof t.boolean==="boolean"&&t.boolean){n.allBools=true}else{[].concat(t.boolean).filter(Boolean).forEach((function(e){n.bools[e]=true}))}var r={};function aliasIsBoolean(e){return r[e].some((function(e){return n.bools[e]}))}Object.keys(t.alias||{}).forEach((function(e){r[e]=[].concat(t.alias[e]);r[e].forEach((function(t){r[t]=[e].concat(r[e].filter((function(e){return t!==e})))}))}));[].concat(t.string).filter(Boolean).forEach((function(e){n.strings[e]=true;if(r[e]){[].concat(r[e]).forEach((function(e){n.strings[e]=true}))}}));var s=t.default||{};var o={_:[]};function argDefined(e,t){return n.allBools&&/^--[^=]+$/.test(t)||n.strings[e]||n.bools[e]||r[e]}function setKey(e,t,r){var s=e;for(var o=0;o<t.length-1;o++){var i=t[o];if(isConstructorOrProto(s,i)){return}if(s[i]===undefined){s[i]={}}if(s[i]===Object.prototype||s[i]===Number.prototype||s[i]===String.prototype){s[i]={}}if(s[i]===Array.prototype){s[i]=[]}s=s[i]}var a=t[t.length-1];if(isConstructorOrProto(s,a)){return}if(s===Object.prototype||s===Number.prototype||s===String.prototype){s={}}if(s===Array.prototype){s=[]}if(s[a]===undefined||n.bools[a]||typeof s[a]==="boolean"){s[a]=r}else if(Array.isArray(s[a])){s[a].push(r)}else{s[a]=[s[a],r]}}function setArg(e,t,s){if(s&&n.unknownFn&&!argDefined(e,s)){if(n.unknownFn(s)===false){return}}var i=!n.strings[e]&&isNumber(t)?Number(t):t;setKey(o,e.split("."),i);(r[e]||[]).forEach((function(e){setKey(o,e.split("."),i)}))}Object.keys(n.bools).forEach((function(e){setArg(e,s[e]===undefined?false:s[e])}));var i=[];if(e.indexOf("--")!==-1){i=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}for(var a=0;a<e.length;a++){var c=e[a];var l;var u;if(/^--.+=/.test(c)){var f=c.match(/^--([^=]+)=([\s\S]*)$/);l=f[1];var d=f[2];if(n.bools[l]){d=d!=="false"}setArg(l,d,c)}else if(/^--no-.+/.test(c)){l=c.match(/^--no-(.+)/)[1];setArg(l,false,c)}else if(/^--.+/.test(c)){l=c.match(/^--(.+)/)[1];u=e[a+1];if(u!==undefined&&!/^(-|--)[^-]/.test(u)&&!n.bools[l]&&!n.allBools&&(r[l]?!aliasIsBoolean(l):true)){setArg(l,u,c);a+=1}else if(/^(true|false)$/.test(u)){setArg(l,u==="true",c);a+=1}else{setArg(l,n.strings[l]?"":true,c)}}else if(/^-[^-]+/.test(c)){var h=c.slice(1,-1).split("");var p=false;for(var m=0;m<h.length;m++){u=c.slice(m+2);if(u==="-"){setArg(h[m],u,c);continue}if(/[A-Za-z]/.test(h[m])&&u[0]==="="){setArg(h[m],u.slice(1),c);p=true;break}if(/[A-Za-z]/.test(h[m])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(u)){setArg(h[m],u,c);p=true;break}if(h[m+1]&&h[m+1].match(/\W/)){setArg(h[m],c.slice(m+2),c);p=true;break}else{setArg(h[m],n.strings[h[m]]?"":true,c)}}l=c.slice(-1)[0];if(!p&&l!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!n.bools[l]&&(r[l]?!aliasIsBoolean(l):true)){setArg(l,e[a+1],c);a+=1}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(l,e[a+1]==="true",c);a+=1}else{setArg(l,n.strings[l]?"":true,c)}}}else{if(!n.unknownFn||n.unknownFn(c)!==false){o._.push(n.strings._||!isNumber(c)?c:Number(c))}if(t.stopEarly){o._.push.apply(o._,e.slice(a+1));break}}}Object.keys(s).forEach((function(e){if(!hasKey(o,e.split("."))){setKey(o,e.split("."),s[e]);(r[e]||[]).forEach((function(t){setKey(o,t.split("."),s[e])}))}}));if(t["--"]){o["--"]=i.slice()}else{i.forEach((function(e){o._.push(e)}))}return o}},661:e=>{"use strict";const pathKey=(e={})=>{const t=e.env||process.env;const n=e.platform||process.platform;if(n!=="win32"){return"PATH"}return Object.keys(t).reverse().find((e=>e.toUpperCase()==="PATH"))||"Path"};e.exports=pathKey;e.exports["default"]=pathKey},8987:(e,t,n)=>{var r=n(4038);var s=n(6928).join;var o=n(2536);var i="/etc";var a=process.platform==="win32";var c=a?process.env.USERPROFILE:process.env.HOME;e.exports=function(e,t,l,u){if("string"!==typeof e)throw new Error("rc(name): name *must* be string");if(!l)l=n(4750)(process.argv.slice(2));t=("string"===typeof t?r.json(t):t)||{};u=u||r.parse;var f=r.env(e+"_");var d=[t];var h=[];function addConfigFile(e){if(h.indexOf(e)>=0)return;var t=r.file(e);if(t){d.push(u(t));h.push(e)}}if(!a)[s(i,e,"config"),s(i,e+"rc")].forEach(addConfigFile);if(c)[s(c,".config",e,"config"),s(c,".config",e),s(c,"."+e,"config"),s(c,"."+e+"rc")].forEach(addConfigFile);addConfigFile(r.find("."+e+"rc"));if(f.config)addConfigFile(f.config);if(l.config)addConfigFile(l.config);return o.apply(null,d.concat([f,l,h.length?{configs:h,config:h[h.length-1]}:undefined]))}},4038:(e,t,n)=>{"use strict";var r=n(9896);var s=n(2388);var o=n(6928);var i=n(5405);var a=t.parse=function(e){if(/^\s*{/.test(e))return JSON.parse(i(e));return s.parse(e)};var c=t.file=function(){var e=[].slice.call(arguments).filter((function(e){return e!=null}));for(var t in e)if("string"!==typeof e[t])return;var n=o.join.apply(null,e);var s;try{return r.readFileSync(n,"utf-8")}catch(e){return}};var l=t.json=function(){var e=c.apply(null,arguments);return e?a(e):null};var u=t.env=function(e,t){t=t||process.env;var n={};var r=e.length;for(var s in t){if(s.toLowerCase().indexOf(e.toLowerCase())===0){var o=s.substring(r).split("__");var i;while((i=o.indexOf(""))>-1){o.splice(i,1)}var a=n;o.forEach((function _buildSubObj(e,n){if(!e||typeof a!=="object")return;if(n===o.length-1)a[e]=t[s];if(a[e]===undefined)a[e]={};a=a[e]}))}}return n};var f=t.find=function(){var e=o.join.apply(null,[].slice.call(arguments));function find(e,t){var n=o.join(e,t);try{r.statSync(n);return n}catch(n){if(o.dirname(e)!==e)return find(o.dirname(e),t)}}return find(process.cwd(),e)}},5405:e=>{"use strict";var t=1;var n=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(e,t,n){return e.slice(t,n).replace(/\S/g," ")}e.exports=function(e,r){r=r||{};var s;var o;var i=false;var a=false;var c=0;var l="";var u=r.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var f=0;f<e.length;f++){s=e[f];o=e[f+1];if(!a&&s==='"'){var d=e[f-1]==="\\"&&e[f-2]!=="\\";if(!d){i=!i}}if(i){continue}if(!a&&s+o==="//"){l+=e.slice(c,f);c=f;a=t;f++}else if(a===t&&s+o==="\r\n"){f++;a=false;l+=u(e,c,f);c=f;continue}else if(a===t&&s==="\n"){a=false;l+=u(e,c,f);c=f}else if(!a&&s+o==="/*"){l+=e.slice(c,f);c=f;a=n;f++;continue}else if(a===n&&s+o==="*/"){f++;a=false;l+=u(e,c,f+1);c=f+1;continue}}return l+(a?u(e.substr(c)):e.substr(c))}},8381:(e,t,n)=>{const r=n(5950).Buffer;function decodeBase64(e){return r.from(e,"base64").toString("utf8")}function encodeBase64(e){return r.from(e,"utf8").toString("base64")}e.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},6856:(e,t,n)=>{var r=n(7016);var s=n(8381);var o=s.decodeBase64;var i=s.encodeBase64;var a=":_authToken";var c=":username";var l=":_password";e.exports=function(){var e;var t;if(arguments.length>=2){e=arguments[0];t=arguments[1]}else if(typeof arguments[0]==="string"){e=arguments[0]}else{t=arguments[0]}t=t||{};t.npmrc=t.npmrc||n(8987)("npm",{registry:"https://registry.npmjs.org/"});e=e||t.npmrc.registry;return getRegistryAuthInfo(e,t)||getLegacyAuthInfo(t.npmrc)};function getRegistryAuthInfo(e,t){var n=r.parse(e,false,true);var s;while(s!=="/"&&n.pathname!==s){s=n.pathname||"/";var o="//"+n.host+s.replace(/\/$/,"");var i=getAuthInfoForUrl(o,t.npmrc);if(i){return i}if(!t.recursive){return/\/$/.test(e)?undefined:getRegistryAuthInfo(r.resolve(e,"."),t)}n.pathname=r.resolve(normalizePath(s),"..")||"/"}return undefined}function getLegacyAuthInfo(e){if(e._auth){return{token:e._auth,type:"Basic"}}return undefined}function normalizePath(e){return e[e.length-1]==="/"?e:e+"/"}function getAuthInfoForUrl(e,t){var n=getBearerToken(t[e+a]||t[e+"/"+a]);if(n){return n}var r=t[e+c]||t[e+"/"+c];var s=t[e+l]||t[e+"/"+l];var o=getTokenForUsernameAndPassword(r,s);if(o){return o}return undefined}function getBearerToken(e){if(!e){return undefined}var t=e.replace(/^\$\{?([^}]*)\}?$/,(function(e,t){return process.env[t]}));return{token:t,type:"Bearer"}}function getTokenForUsernameAndPassword(e,t){if(!e||!t){return undefined}var n=o(t.replace(/^\$\{?([^}]*)\}?$/,(function(e,t){return process.env[t]})));var r=i(e+":"+n);return{token:r,type:"Basic",password:n,username:e}}},2139:(e,t,n)=>{"use strict";e.exports=function(e){var t=n(8987)("npm",{registry:"https://registry.npmjs.org/"});var r=t[e+":registry"]||t.registry;return r.slice(-1)==="/"?r:r+"/"}},5950:(e,t,n)=>{
28
+ */function isSpecificValue(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp?true:false}function cloneSpecificValue(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);e.copy(t);return t}else if(e instanceof Date){return new Date(e.getTime())}else if(e instanceof RegExp){return new RegExp(e)}else{throw new Error("Unexpected situation")}}function deepCloneArray(e){var n=[];e.forEach((function(e,r){if(typeof e==="object"&&e!==null){if(Array.isArray(e)){n[r]=deepCloneArray(e)}else if(isSpecificValue(e)){n[r]=cloneSpecificValue(e)}else{n[r]=t({},e)}}else{n[r]=e}}));return n}function safeGetProperty(e,t){return t==="__proto__"?undefined:e[t]}var t=e.exports=function(){if(arguments.length<1||typeof arguments[0]!=="object"){return false}if(arguments.length<2){return arguments[0]}var e=arguments[0];var n=Array.prototype.slice.call(arguments,1);var r,i,o;n.forEach((function(n){if(typeof n!=="object"||n===null||Array.isArray(n)){return}Object.keys(n).forEach((function(o){i=safeGetProperty(e,o);r=safeGetProperty(n,o);if(r===e){return}else if(typeof r!=="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=deepCloneArray(r);return}else if(isSpecificValue(r)){e[o]=cloneSpecificValue(r);return}else if(typeof i!=="object"||i===null||Array.isArray(i)){e[o]=t({},r);return}else{e[o]=t(i,r);return}}))}));return e}},4167:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const i=t.indexOf("--");return r!==-1&&(i===-1||r<i)}},5667:(e,t)=>{t.parse=t.decode=decode;t.stringify=t.encode=encode;t.safe=safe;t.unsafe=unsafe;var n=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(e,t){var r=[];var i="";if(typeof t==="string"){t={section:t,whitespace:false}}else{t=t||{};t.whitespace=t.whitespace===true}var o=t.whitespace?" = ":"=";Object.keys(e).forEach((function(t,s,a){var l=e[t];if(l&&Array.isArray(l)){l.forEach((function(e){i+=safe(t+"[]")+o+safe(e)+"\n"}))}else if(l&&typeof l==="object")r.push(t);else i+=safe(t)+o+safe(l)+n}));if(t.section&&i.length)i="["+safe(t.section)+"]"+n+i;r.forEach((function(r,o,s){var a=dotSplit(r).join("\\.");var l=(t.section?t.section+".":"")+a;var c=encode(e[r],{section:l,whitespace:t.whitespace});if(i.length&&c.length)i+=n;i+=c}));return i}function dotSplit(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function decode(e){var t={};var n=t;var r=null;var i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var o=e.split(/[\r\n]+/g);o.forEach((function(e,o,s){if(!e||e.match(/^\s*[;#]/))return;var a=e.match(i);if(!a)return;if(a[1]!==undefined){r=unsafe(a[1]);if(r==="__proto__"){n={};return}n=t[r]=t[r]||{};return}var l=unsafe(a[2]);if(l==="__proto__")return;var c=a[3]?unsafe(a[4]):true;switch(c){case"true":case"false":case"null":c=JSON.parse(c)}if(l.length>2&&l.slice(-2)==="[]"){l=l.substring(0,l.length-2);if(l==="__proto__")return;if(!n[l])n[l]=[];else if(!Array.isArray(n[l]))n[l]=[n[l]]}if(Array.isArray(n[l]))n[l].push(c);else n[l]=c}));Object.keys(t).filter((function(e,n,r){if(!t[e]||typeof t[e]!=="object"||Array.isArray(t[e]))return false;var i=dotSplit(e);var o=t;var s=i.pop();var a=s.replace(/\\\./g,".");i.forEach((function(e,t,n){if(e==="__proto__")return;if(!o[e]||typeof o[e]!=="object")o[e]={};o=o[e]}));if(o===t&&a===s)return false;o[a]=t[e];return true})).forEach((function(e,n,r){delete t[e]}));return t}function isQuoted(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function safe(e){return typeof e!=="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&isQuoted(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(e,t){e=(e||"").trim();if(isQuoted(e)){if(e.charAt(0)==="'")e=e.substr(1,e.length-2);try{e=JSON.parse(e)}catch(e){}}else{var n=false;var r="";for(var i=0,o=e.length;i<o;i++){var s=e.charAt(i);if(n){if("\\;#".indexOf(s)!==-1)r+=s;else r+="\\"+s;n=false}else if(";#".indexOf(s)!==-1)break;else if(s==="\\")n=true;else r+=s}if(n)r+="\\";return r.trim()}return e}},7105:(e,t,n)=>{var r=n(9896);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=n(6132)}else{i=n(1778)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,n){if(typeof t==="function"){n=t;t={}}if(!n){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(n,r){isexe(e,t||{},(function(e,t){if(e){r(e)}else{n(t)}}))}))}i(e,t||{},(function(e,r){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;r=false}}n(e,r)}))}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},1778:(e,t,n)=>{e.exports=isexe;isexe.sync=sync;var r=n(9896);function isexe(e,t,n){r.stat(e,(function(e,r){n(e,e?false:checkStat(r,t))}))}function sync(e,t){return checkStat(r.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var n=e.mode;var r=e.uid;var i=e.gid;var o=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var s=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var l=parseInt("010",8);var c=parseInt("001",8);var u=a|l;var f=n&c||n&l&&i===s||n&a&&r===o||n&u&&o===0;return f}},6132:(e,t,n)=>{e.exports=isexe;isexe.sync=sync;var r=n(9896);function checkPathExt(e,t){var n=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!n){return true}n=n.split(";");if(n.indexOf("")!==-1){return true}for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i){return true}}return false}function checkStat(e,t,n){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,n)}function isexe(e,t,n){r.stat(e,(function(r,i){n(r,r?false:checkStat(i,e,t))}))}function sync(e,t){return checkStat(r.statSync(e),e,t)}},2078:e=>{"use strict";function hasKey(e,t){var n=e;t.slice(0,-1).forEach((function(e){n=n[e]||{}}));var r=t[t.length-1];return r in n}function isNumber(e){if(typeof e==="number"){return true}if(/^0x[0-9a-f]+$/i.test(e)){return true}return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function isConstructorOrProto(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}e.exports=function(e,t){if(!t){t={}}var n={bools:{},strings:{},unknownFn:null};if(typeof t.unknown==="function"){n.unknownFn=t.unknown}if(typeof t.boolean==="boolean"&&t.boolean){n.allBools=true}else{[].concat(t.boolean).filter(Boolean).forEach((function(e){n.bools[e]=true}))}var r={};function aliasIsBoolean(e){return r[e].some((function(e){return n.bools[e]}))}Object.keys(t.alias||{}).forEach((function(e){r[e]=[].concat(t.alias[e]);r[e].forEach((function(t){r[t]=[e].concat(r[e].filter((function(e){return t!==e})))}))}));[].concat(t.string).filter(Boolean).forEach((function(e){n.strings[e]=true;if(r[e]){[].concat(r[e]).forEach((function(e){n.strings[e]=true}))}}));var i=t.default||{};var o={_:[]};function argDefined(e,t){return n.allBools&&/^--[^=]+$/.test(t)||n.strings[e]||n.bools[e]||r[e]}function setKey(e,t,r){var i=e;for(var o=0;o<t.length-1;o++){var s=t[o];if(isConstructorOrProto(i,s)){return}if(i[s]===undefined){i[s]={}}if(i[s]===Object.prototype||i[s]===Number.prototype||i[s]===String.prototype){i[s]={}}if(i[s]===Array.prototype){i[s]=[]}i=i[s]}var a=t[t.length-1];if(isConstructorOrProto(i,a)){return}if(i===Object.prototype||i===Number.prototype||i===String.prototype){i={}}if(i===Array.prototype){i=[]}if(i[a]===undefined||n.bools[a]||typeof i[a]==="boolean"){i[a]=r}else if(Array.isArray(i[a])){i[a].push(r)}else{i[a]=[i[a],r]}}function setArg(e,t,i){if(i&&n.unknownFn&&!argDefined(e,i)){if(n.unknownFn(i)===false){return}}var s=!n.strings[e]&&isNumber(t)?Number(t):t;setKey(o,e.split("."),s);(r[e]||[]).forEach((function(e){setKey(o,e.split("."),s)}))}Object.keys(n.bools).forEach((function(e){setArg(e,i[e]===undefined?false:i[e])}));var s=[];if(e.indexOf("--")!==-1){s=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}for(var a=0;a<e.length;a++){var l=e[a];var c;var u;if(/^--.+=/.test(l)){var f=l.match(/^--([^=]+)=([\s\S]*)$/);c=f[1];var p=f[2];if(n.bools[c]){p=p!=="false"}setArg(c,p,l)}else if(/^--no-.+/.test(l)){c=l.match(/^--no-(.+)/)[1];setArg(c,false,l)}else if(/^--.+/.test(l)){c=l.match(/^--(.+)/)[1];u=e[a+1];if(u!==undefined&&!/^(-|--)[^-]/.test(u)&&!n.bools[c]&&!n.allBools&&(r[c]?!aliasIsBoolean(c):true)){setArg(c,u,l);a+=1}else if(/^(true|false)$/.test(u)){setArg(c,u==="true",l);a+=1}else{setArg(c,n.strings[c]?"":true,l)}}else if(/^-[^-]+/.test(l)){var d=l.slice(1,-1).split("");var h=false;for(var g=0;g<d.length;g++){u=l.slice(g+2);if(u==="-"){setArg(d[g],u,l);continue}if(/[A-Za-z]/.test(d[g])&&u[0]==="="){setArg(d[g],u.slice(1),l);h=true;break}if(/[A-Za-z]/.test(d[g])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(u)){setArg(d[g],u,l);h=true;break}if(d[g+1]&&d[g+1].match(/\W/)){setArg(d[g],l.slice(g+2),l);h=true;break}else{setArg(d[g],n.strings[d[g]]?"":true,l)}}c=l.slice(-1)[0];if(!h&&c!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!n.bools[c]&&(r[c]?!aliasIsBoolean(c):true)){setArg(c,e[a+1],l);a+=1}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(c,e[a+1]==="true",l);a+=1}else{setArg(c,n.strings[c]?"":true,l)}}}else{if(!n.unknownFn||n.unknownFn(l)!==false){o._.push(n.strings._||!isNumber(l)?l:Number(l))}if(t.stopEarly){o._.push.apply(o._,e.slice(a+1));break}}}Object.keys(i).forEach((function(e){if(!hasKey(o,e.split("."))){setKey(o,e.split("."),i[e]);(r[e]||[]).forEach((function(t){setKey(o,t.split("."),i[e])}))}}));if(t["--"]){o["--"]=s.slice()}else{s.forEach((function(e){o._.push(e)}))}return o}},4662:e=>{"use strict";const pathKey=(e={})=>{const t=e.env||process.env;const n=e.platform||process.platform;if(n!=="win32"){return"PATH"}return Object.keys(t).reverse().find((e=>e.toUpperCase()==="PATH"))||"Path"};e.exports=pathKey;e.exports["default"]=pathKey},9046:(e,t,n)=>{var r=n(715);var i=n(6928).join;var o=n(7442);var s="/etc";var a=process.platform==="win32";var l=a?process.env.USERPROFILE:process.env.HOME;e.exports=function(e,t,c,u){if("string"!==typeof e)throw new Error("rc(name): name *must* be string");if(!c)c=n(2078)(process.argv.slice(2));t=("string"===typeof t?r.json(t):t)||{};u=u||r.parse;var f=r.env(e+"_");var p=[t];var d=[];function addConfigFile(e){if(d.indexOf(e)>=0)return;var t=r.file(e);if(t){p.push(u(t));d.push(e)}}if(!a)[i(s,e,"config"),i(s,e+"rc")].forEach(addConfigFile);if(l)[i(l,".config",e,"config"),i(l,".config",e),i(l,"."+e,"config"),i(l,"."+e+"rc")].forEach(addConfigFile);addConfigFile(r.find("."+e+"rc"));if(f.config)addConfigFile(f.config);if(c.config)addConfigFile(c.config);return o.apply(null,p.concat([f,c,d.length?{configs:d,config:d[d.length-1]}:undefined]))}},715:(e,t,n)=>{"use strict";var r=n(9896);var i=n(5667);var o=n(6928);var s=n(3444);var a=t.parse=function(e){if(/^\s*{/.test(e))return JSON.parse(s(e));return i.parse(e)};var l=t.file=function(){var e=[].slice.call(arguments).filter((function(e){return e!=null}));for(var t in e)if("string"!==typeof e[t])return;var n=o.join.apply(null,e);var i;try{return r.readFileSync(n,"utf-8")}catch(e){return}};var c=t.json=function(){var e=l.apply(null,arguments);return e?a(e):null};var u=t.env=function(e,t){t=t||process.env;var n={};var r=e.length;for(var i in t){if(i.toLowerCase().indexOf(e.toLowerCase())===0){var o=i.substring(r).split("__");var s;while((s=o.indexOf(""))>-1){o.splice(s,1)}var a=n;o.forEach((function _buildSubObj(e,n){if(!e||typeof a!=="object")return;if(n===o.length-1)a[e]=t[i];if(a[e]===undefined)a[e]={};a=a[e]}))}}return n};var f=t.find=function(){var e=o.join.apply(null,[].slice.call(arguments));function find(e,t){var n=o.join(e,t);try{r.statSync(n);return n}catch(n){if(o.dirname(e)!==e)return find(o.dirname(e),t)}}return find(process.cwd(),e)}},2370:(e,t,n)=>{const r=n(5725).Buffer;function decodeBase64(e){return r.from(e,"base64").toString("utf8")}function encodeBase64(e){return r.from(e,"utf8").toString("base64")}e.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},4133:(e,t,n)=>{var r=n(7016);var i=n(2370);var o=i.decodeBase64;var s=i.encodeBase64;var a=":_authToken";var l=":username";var c=":_password";e.exports=function(){var e;var t;if(arguments.length>=2){e=arguments[0];t=arguments[1]}else if(typeof arguments[0]==="string"){e=arguments[0]}else{t=arguments[0]}t=t||{};t.npmrc=t.npmrc||n(9046)("npm",{registry:"https://registry.npmjs.org/"});e=e||t.npmrc.registry;return getRegistryAuthInfo(e,t)||getLegacyAuthInfo(t.npmrc)};function getRegistryAuthInfo(e,t){var n=r.parse(e,false,true);var i;while(i!=="/"&&n.pathname!==i){i=n.pathname||"/";var o="//"+n.host+i.replace(/\/$/,"");var s=getAuthInfoForUrl(o,t.npmrc);if(s){return s}if(!t.recursive){return/\/$/.test(e)?undefined:getRegistryAuthInfo(r.resolve(e,"."),t)}n.pathname=r.resolve(normalizePath(i),"..")||"/"}return undefined}function getLegacyAuthInfo(e){if(e._auth){return{token:e._auth,type:"Basic"}}return undefined}function normalizePath(e){return e[e.length-1]==="/"?e:e+"/"}function getAuthInfoForUrl(e,t){var n=getBearerToken(t[e+a]||t[e+"/"+a]);if(n){return n}var r=t[e+l]||t[e+"/"+l];var i=t[e+c]||t[e+"/"+c];var o=getTokenForUsernameAndPassword(r,i);if(o){return o}return undefined}function getBearerToken(e){if(!e){return undefined}var t=e.replace(/^\$\{?([^}]*)\}?$/,(function(e,t){return process.env[t]}));return{token:t,type:"Bearer"}}function getTokenForUsernameAndPassword(e,t){if(!e||!t){return undefined}var n=o(t.replace(/^\$\{?([^}]*)\}?$/,(function(e,t){return process.env[t]})));var r=s(e+":"+n);return{token:r,type:"Basic",password:n,username:e}}},3805:(e,t,n)=>{"use strict";e.exports=function(e){var t=n(9046)("npm",{registry:"https://registry.npmjs.org/"});var r=t[e+":registry"]||t.registry;return r.slice(-1)==="/"?r:r+"/"}},8665:(e,t,n)=>{(()=>{"use strict";var t={610:(e,t,n)=>{const r=n(8750);const i=n(9434);const o=n(5873);const s=n(6477);const braces=(e,t={})=>{let n=[];if(Array.isArray(e)){for(const r of e){const e=braces.create(r,t);if(Array.isArray(e)){n.push(...e)}else{n.push(e)}}}else{n=[].concat(braces.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){n=[...new Set(n)]}return n};braces.parse=(e,t={})=>s(e,t);braces.stringify=(e,t={})=>{if(typeof e==="string"){return r(braces.parse(e,t),t)}return r(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return i(e,t)};braces.expand=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}let n=o(e,t);if(t.noempty===true){n=n.filter(Boolean)}if(t.nodupes===true){n=[...new Set(n)]}return n};braces.create=(e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?braces.compile(e,t):braces.expand(e,t)};e.exports=braces},9434:(e,t,n)=>{const r=n(6330);const i=n(5207);const compile=(e,t={})=>{const walk=(e,n={})=>{const o=i.isInvalidBrace(n);const s=e.invalid===true&&t.escapeInvalid===true;const a=o===true||s===true;const l=t.escapeInvalid===true?"\\":"";let c="";if(e.isOpen===true){return l+e.value}if(e.isClose===true){console.log("node.isClose",l,e.value);return l+e.value}if(e.type==="open"){return a?l+e.value:"("}if(e.type==="close"){return a?l+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":a?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){const n=i.reduce(e.nodes);const o=r(...n,{...t,wrap:false,toRegex:true,strictZeros:true});if(o.length!==0){return n.length>1&&o.length>1?`(${o})`:o}}if(e.nodes){for(const t of e.nodes){c+=walk(t,e)}}return c};return walk(e)};e.exports=compile},8774:e=>{e.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5873:(e,t,n)=>{const r=n(6330);const i=n(8750);const o=n(5207);const append=(e="",t="",n=false)=>{const r=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return n?o.flatten(t).map((e=>`{${e}}`)):t}for(const i of e){if(Array.isArray(i)){for(const e of i){r.push(append(e,t,n))}}else{for(let e of t){if(n===true&&typeof e==="string")e=`{${e}}`;r.push(Array.isArray(e)?append(i,e,n):i+e)}}}return o.flatten(r)};const expand=(e,t={})=>{const n=t.rangeLimit===undefined?1e3:t.rangeLimit;const walk=(e,s={})=>{e.queue=[];let a=s;let l=s.queue;while(a.type!=="brace"&&a.type!=="root"&&a.parent){a=a.parent;l=a.queue}if(e.invalid||e.dollar){l.push(append(l.pop(),i(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){l.push(append(l.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){const s=o.reduce(e.nodes);if(o.exceedsLimit(...s,t.step,n)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let a=r(...s,t);if(a.length===0){a=i(e,t)}l.push(append(l.pop(),a));e.nodes=[];return}const c=o.encloseBrace(e);let u=e.queue;let f=e;while(f.type!=="brace"&&f.type!=="root"&&f.parent){f=f.parent;u=f.queue}for(let t=0;t<e.nodes.length;t++){const n=e.nodes[t];if(n.type==="comma"&&e.type==="brace"){if(t===1)u.push("");u.push("");continue}if(n.type==="close"){l.push(append(l.pop(),u,c));continue}if(n.value&&n.type!=="open"){u.push(append(u.pop(),n.value));continue}if(n.nodes){walk(n,e)}}return u};return o.flatten(walk(e))};e.exports=expand},6477:(e,t,n)=>{const r=n(8750);const{MAX_LENGTH:i,CHAR_BACKSLASH:o,CHAR_BACKTICK:s,CHAR_COMMA:a,CHAR_DOT:l,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:p,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:b}=n(8774);const parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}const n=t||{};const _=typeof n.maxLength==="number"?Math.min(i,n.maxLength):i;if(e.length>_){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${_})`)}const A={type:"root",input:e,nodes:[]};const v=[A];let w=A;let E=A;let C=0;const x=e.length;let O=0;let k=0;let S;const advance=()=>e[O++];const push=e=>{if(e.type==="text"&&E.type==="dot"){E.type="text"}if(E&&E.type==="text"&&e.type==="text"){E.value+=e.value;return}w.nodes.push(e);e.parent=w;e.prev=E;E=e;return e};push({type:"bos"});while(O<x){w=v[v.length-1];S=advance();if(S===b||S===y){continue}if(S===o){push({type:"text",value:(t.keepEscaping?S:"")+advance()});continue}if(S===h){push({type:"text",value:"\\"+S});continue}if(S===d){C++;let e;while(O<x&&(e=advance())){S+=e;if(e===d){C++;continue}if(e===o){S+=advance();continue}if(e===h){C--;if(C===0){break}}}push({type:"text",value:S});continue}if(S===c){w=push({type:"paren",nodes:[]});v.push(w);push({type:"text",value:S});continue}if(S===u){if(w.type!=="paren"){push({type:"text",value:S});continue}w=v.pop();push({type:"text",value:S});w=v[v.length-1];continue}if(S===g||S===m||S===s){const e=S;let n;if(t.keepQuotes!==true){S=""}while(O<x&&(n=advance())){if(n===o){S+=n+advance();continue}if(n===e){if(t.keepQuotes===true)S+=n;break}S+=n}push({type:"text",value:S});continue}if(S===f){k++;const e=E.value&&E.value.slice(-1)==="$"||w.dollar===true;const t={type:"brace",open:true,close:false,dollar:e,depth:k,commas:0,ranges:0,nodes:[]};w=push(t);v.push(w);push({type:"open",value:S});continue}if(S===p){if(w.type!=="brace"){push({type:"text",value:S});continue}const e="close";w=v.pop();w.close=true;push({type:e,value:S});k--;w=v[v.length-1];continue}if(S===a&&k>0){if(w.ranges>0){w.ranges=0;const e=w.nodes.shift();w.nodes=[e,{type:"text",value:r(w)}]}push({type:"comma",value:S});w.commas++;continue}if(S===l&&k>0&&w.commas===0){const e=w.nodes;if(k===0||e.length===0){push({type:"text",value:S});continue}if(E.type==="dot"){w.range=[];E.value+=S;E.type="range";if(w.nodes.length!==3&&w.nodes.length!==5){w.invalid=true;w.ranges=0;E.type="text";continue}w.ranges++;w.args=[];continue}if(E.type==="range"){e.pop();const t=e[e.length-1];t.value+=E.value+S;E=t;w.ranges--;continue}push({type:"dot",value:S});continue}push({type:"text",value:S})}do{w=v.pop();if(w.type!=="root"){w.nodes.forEach((e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}}));const e=v[v.length-1];const t=e.nodes.indexOf(w);e.nodes.splice(t,1,...w.nodes)}}while(v.length>0);push({type:"eos"});return A};e.exports=parse},8750:(e,t,n)=>{const r=n(5207);e.exports=(e,t={})=>{const stringify=(e,n={})=>{const i=t.escapeInvalid&&r.isInvalidBrace(n);const o=e.invalid===true&&t.escapeInvalid===true;let s="";if(e.value){if((i||o)&&r.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(const t of e.nodes){s+=stringify(t)}}return s};return stringify(e)}},5207:(e,t)=>{t.isInteger=e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false};t.find=(e,t)=>e.nodes.find((e=>e.type===t));t.exceedsLimit=(e,n,r=1,i)=>{if(i===false)return false;if(!t.isInteger(e)||!t.isInteger(n))return false;return(Number(n)-Number(e))/Number(r)>=i};t.escapeNode=(e,t=0,n)=>{const r=e.nodes[t];if(!r)return;if(n&&r.type===n||r.type==="open"||r.type==="close"){if(r.escaped!==true){r.value="\\"+r.value;r.escaped=true}}};t.encloseBrace=e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false};t.isInvalidBrace=e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false};t.isOpenOrClose=e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true};t.reduce=e=>e.reduce(((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e}),[]);t.flatten=(...e)=>{const t=[];const flat=e=>{for(let n=0;n<e.length;n++){const r=e[n];if(Array.isArray(r)){flat(r);continue}if(r!==undefined){t.push(r)}}return t};flat(e);return t}},6330:(e,t,n)=>{
29
+ /*!
30
+ * fill-range <https://github.com/jonschlinkert/fill-range>
31
+ *
32
+ * Copyright (c) 2014-present, Jon Schlinkert.
33
+ * Licensed under the MIT License.
34
+ */
35
+ const r=n(3837);const i=n(1861);const isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const transform=e=>t=>e===true?Number(t):String(t);const isValidValue=e=>typeof e==="number"||typeof e==="string"&&e!=="";const isNumber=e=>Number.isInteger(+e);const zeros=e=>{let t=`${e}`;let n=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++n]==="0");return n>0};const stringify=(e,t,n)=>{if(typeof e==="string"||typeof t==="string"){return true}return n.stringify===true};const pad=(e,t,n)=>{if(t>0){let n=e[0]==="-"?"-":"";if(n)e=e.slice(1);e=n+e.padStart(n?t-1:t,"0")}if(n===false){return String(e)}return e};const toMaxLen=(e,t)=>{let n=e[0]==="-"?"-":"";if(n){e=e.slice(1);t--}while(e.length<t)e="0"+e;return n?"-"+e:e};const toSequence=(e,t,n)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0));e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let r=t.capture?"":"?:";let i="";let o="";let s;if(e.positives.length){i=e.positives.map((e=>toMaxLen(String(e),n))).join("|")}if(e.negatives.length){o=`-(${r}${e.negatives.map((e=>toMaxLen(String(e),n))).join("|")})`}if(i&&o){s=`${i}|${o}`}else{s=i||o}if(t.wrap){return`(${r}${s})`}return s};const toRange=(e,t,n,r)=>{if(n){return i(e,t,{wrap:false,...r})}let o=String.fromCharCode(e);if(e===t)return o;let s=String.fromCharCode(t);return`[${o}-${s}]`};const toRegex=(e,t,n)=>{if(Array.isArray(e)){let t=n.wrap===true;let r=n.capture?"":"?:";return t?`(${r}${e.join("|")})`:e.join("|")}return i(e,t,n)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+r.inspect(...e));const invalidRange=(e,t,n)=>{if(n.strictRanges===true)throw rangeError([e,t]);return[]};const invalidStep=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const fillNumbers=(e,t,n=1,r={})=>{let i=Number(e);let o=Number(t);if(!Number.isInteger(i)||!Number.isInteger(o)){if(r.strictRanges===true)throw rangeError([e,t]);return[]}if(i===0)i=0;if(o===0)o=0;let s=i>o;let a=String(e);let l=String(t);let c=String(n);n=Math.max(Math.abs(n),1);let u=zeros(a)||zeros(l)||zeros(c);let f=u?Math.max(a.length,l.length,c.length):0;let p=u===false&&stringify(e,t,r)===false;let d=r.transform||transform(p);if(r.toRegex&&n===1){return toRange(toMaxLen(e,f),toMaxLen(t,f),true,r)}let h={negatives:[],positives:[]};let push=e=>h[e<0?"negatives":"positives"].push(Math.abs(e));let g=[];let m=0;while(s?i>=o:i<=o){if(r.toRegex===true&&n>1){push(i)}else{g.push(pad(d(i,m),f,p))}i=s?i-n:i+n;m++}if(r.toRegex===true){return n>1?toSequence(h,r,f):toRegex(g,null,{wrap:false,...r})}return g};const fillLetters=(e,t,n=1,r={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,r)}let i=r.transform||(e=>String.fromCharCode(e));let o=`${e}`.charCodeAt(0);let s=`${t}`.charCodeAt(0);let a=o>s;let l=Math.min(o,s);let c=Math.max(o,s);if(r.toRegex&&n===1){return toRange(l,c,false,r)}let u=[];let f=0;while(a?o>=s:o<=s){u.push(i(o,f));o=a?o-n:o+n;f++}if(r.toRegex===true){return toRegex(u,null,{wrap:false,options:r})}return u};const fill=(e,t,n,r={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,r)}if(typeof n==="function"){return fill(e,t,1,{transform:n})}if(isObject(n)){return fill(e,t,0,n)}let i={...r};if(i.capture===true)i.wrap=true;n=n||i.step||1;if(!isNumber(n)){if(n!=null&&!isObject(n))return invalidStep(n,i);return fill(e,t,1,n)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,n,i)}return fillLetters(e,t,Math.max(Math.abs(n),1),i)};e.exports=fill},5680:e=>{
36
+ /*!
37
+ * is-number <https://github.com/jonschlinkert/is-number>
38
+ *
39
+ * Copyright (c) 2014-present, Jon Schlinkert.
40
+ * Released under the MIT License.
41
+ */
42
+ e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},1917:(e,t,n)=>{var r=n(1161);var i=n(8866);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=n(6073);e.exports.Schema=n(1082);e.exports.FAILSAFE_SCHEMA=n(8562);e.exports.JSON_SCHEMA=n(1035);e.exports.CORE_SCHEMA=n(2011);e.exports.DEFAULT_SCHEMA=n(8759);e.exports.load=r.load;e.exports.loadAll=r.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=n(8179);e.exports.types={binary:n(7900),float:n(2705),map:n(6150),null:n(721),pairs:n(6860),set:n(9548),timestamp:n(9212),bool:n(4993),int:n(1615),merge:n(6104),omap:n(9046),seq:n(7283),str:n(3619)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},6829:e=>{function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var n,r,i,o;if(t){o=Object.keys(t);for(n=0,r=o.length;n<r;n+=1){i=o[n];e[i]=t[i]}}return e}function repeat(e,t){var n="",r;for(r=0;r<t;r+=1){n+=e}return n}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=isNothing;e.exports.isObject=isObject;e.exports.toArray=toArray;e.exports.repeat=repeat;e.exports.isNegativeZero=isNegativeZero;e.exports.extend=extend},8866:(e,t,n)=>{var r=n(6829);var i=n(8179);var o=n(8759);var s=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var l=65279;var c=9;var u=10;var f=13;var p=32;var d=33;var h=34;var g=35;var m=37;var y=38;var b=39;var _=42;var A=44;var v=45;var w=58;var E=61;var C=62;var x=63;var O=64;var k=91;var S=93;var R=96;var $=123;var I=124;var T=125;var P={};P[0]="\\0";P[7]="\\a";P[8]="\\b";P[9]="\\t";P[10]="\\n";P[11]="\\v";P[12]="\\f";P[13]="\\r";P[27]="\\e";P[34]='\\"';P[92]="\\\\";P[133]="\\N";P[160]="\\_";P[8232]="\\L";P[8233]="\\P";var L=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var H=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var n,r,i,o,s,l,c;if(t===null)return{};n={};r=Object.keys(t);for(i=0,o=r.length;i<o;i+=1){s=r[i];l=String(t[s]);if(s.slice(0,2)==="!!"){s="tag:yaml.org,2002:"+s.slice(2)}c=e.compiledTypeMap["fallback"][s];if(c&&a.call(c.styleAliases,l)){l=c.styleAliases[l]}n[s]=l}return n}function encodeHex(e){var t,n,o;t=e.toString(16).toUpperCase();if(e<=255){n="x";o=2}else if(e<=65535){n="u";o=4}else if(e<=4294967295){n="U";o=8}else{throw new i("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+n+r.repeat("0",o-t.length)+t}var M=1,N=2;function State(e){this.schema=e["schema"]||o;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=r.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?N:M;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){var n=r.repeat(" ",t),i=0,o=-1,s="",a,l=e.length;while(i<l){o=e.indexOf("\n",i);if(o===-1){a=e.slice(i);i=l}else{a=e.slice(i,o+1);i=o+1}if(a.length&&a!=="\n")s+=n;s+=a}return s}function generateNextLine(e,t){return"\n"+r.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1){i=e.implicitTypes[n];if(i.resolve(t)){return true}}return false}function isWhitespace(e){return e===p||e===c}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==l||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==l&&e!==f&&e!==u}function isPlainSafe(e,t,n){var r=isNsCharOrWhitespace(e);var i=r&&!isWhitespace(e);return(n?r:r&&e!==A&&e!==k&&e!==S&&e!==$&&e!==T)&&e!==g&&!(t===w&&!i)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===g||t===w&&i}function isPlainSafeFirst(e){return isPrintable(e)&&e!==l&&!isWhitespace(e)&&e!==v&&e!==x&&e!==w&&e!==A&&e!==k&&e!==S&&e!==$&&e!==T&&e!==g&&e!==y&&e!==_&&e!==d&&e!==I&&e!==E&&e!==C&&e!==b&&e!==h&&e!==m&&e!==O&&e!==R}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==w}function codePointAt(e,t){var n=e.charCodeAt(t),r;if(n>=55296&&n<=56319&&t+1<e.length){r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){return(n-55296)*1024+r-56320+65536}}return n}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var j=1,F=2,B=3,D=4,U=5;function chooseScalarStyle(e,t,n,r,i,o,s,a){var l;var c=0;var f=null;var p=false;var d=false;var h=r!==-1;var g=-1;var m=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||s){for(l=0;l<e.length;c>=65536?l+=2:l++){c=codePointAt(e,l);if(!isPrintable(c)){return U}m=m&&isPlainSafe(c,f,a);f=c}}else{for(l=0;l<e.length;c>=65536?l+=2:l++){c=codePointAt(e,l);if(c===u){p=true;if(h){d=d||l-g-1>r&&e[g+1]!==" ";g=l}}else if(!isPrintable(c)){return U}m=m&&isPlainSafe(c,f,a);f=c}d=d||h&&(l-g-1>r&&e[g+1]!==" ")}if(!p&&!d){if(m&&!s&&!i(e)){return j}return o===N?U:F}if(n>9&&needIndentIndicator(e)){return U}if(!s){return d?D:B}return o===N?U:F}function writeScalar(e,t,n,r,o){e.dump=function(){if(t.length===0){return e.quotingType===N?'""':"''"}if(!e.noCompatMode){if(L.indexOf(t)!==-1||H.test(t)){return e.quotingType===N?'"'+t+'"':"'"+t+"'"}}var s=e.indent*Math.max(1,n);var a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s);var l=r||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,l,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!r,o)){case j:return t;case F:return"'"+t.replace(/'/g,"''")+"'";case B:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,s));case D:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),s));case U:return'"'+escapeString(t,a)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var n=needIndentIndicator(e)?String(t):"";var r=e[e.length-1]==="\n";var i=r&&(e[e.length-2]==="\n"||e==="\n");var o=i?"+":r?"":"-";return n+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var n=/(\n+)([^\n]*)/g;var r=function(){var r=e.indexOf("\n");r=r!==-1?r:e.length;n.lastIndex=r;return foldLine(e.slice(0,r),t)}();var i=e[0]==="\n"||e[0]===" ";var o;var s;while(s=n.exec(e)){var a=s[1],l=s[2];o=l[0]===" ";r+=a+(!i&&!o&&l!==""?"\n":"")+foldLine(l,t);i=o}return r}function foldLine(e,t){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var r;var i=0,o,s=0,a=0;var l="";while(r=n.exec(e)){a=r.index;if(a-i>t){o=s>i?s:a;l+="\n"+e.slice(i,o);i=o+1}s=a}l+="\n";if(e.length-i>t&&s>i){l+=e.slice(i,s)+"\n"+e.slice(s+1)}else{l+=e.slice(i)}return l.slice(1)}function escapeString(e){var t="";var n=0;var r;for(var i=0;i<e.length;n>=65536?i+=2:i++){n=codePointAt(e,i);r=P[n];if(!r&&isPrintable(n)){t+=e[i];if(n>=65536)t+=e[i+1]}else{t+=r||encodeHex(n)}}return t}function writeFlowSequence(e,t,n){var r="",i=e.tag,o,s,a;for(o=0,s=n.length;o<s;o+=1){a=n[o];if(e.replacer){a=e.replacer.call(n,String(o),a)}if(writeNode(e,t,a,false,false)||typeof a==="undefined"&&writeNode(e,t,null,false,false)){if(r!=="")r+=","+(!e.condenseFlow?" ":"");r+=e.dump}}e.tag=i;e.dump="["+r+"]"}function writeBlockSequence(e,t,n,r){var i="",o=e.tag,s,a,l;for(s=0,a=n.length;s<a;s+=1){l=n[s];if(e.replacer){l=e.replacer.call(n,String(s),l)}if(writeNode(e,t+1,l,true,true,false,true)||typeof l==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!r||i!==""){i+=generateNextLine(e,t)}if(e.dump&&u===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=o;e.dump=i||"[]"}function writeFlowMapping(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,l,c,u;for(s=0,a=o.length;s<a;s+=1){u="";if(r!=="")u+=", ";if(e.condenseFlow)u+='"';l=o[s];c=n[l];if(e.replacer){c=e.replacer.call(n,l,c)}if(!writeNode(e,t,l,false,false)){continue}if(e.dump.length>1024)u+="? ";u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,c,false,false)){continue}u+=e.dump;r+=u}e.tag=i;e.dump="{"+r+"}"}function writeBlockMapping(e,t,n,r){var o="",s=e.tag,a=Object.keys(n),l,c,f,p,d,h;if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(l=0,c=a.length;l<c;l+=1){h="";if(!r||o!==""){h+=generateNextLine(e,t)}f=a[l];p=n[f];if(e.replacer){p=e.replacer.call(n,f,p)}if(!writeNode(e,t+1,f,true,true,true)){continue}d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(d){if(e.dump&&u===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(d){h+=generateNextLine(e,t)}if(!writeNode(e,t+1,p,true,d)){continue}if(e.dump&&u===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;o+=h}e.tag=s;e.dump=o||"{}"}function detectType(e,t,n){var r,o,l,c,u,f;o=n?e.explicitTypes:e.implicitTypes;for(l=0,c=o.length;l<c;l+=1){u=o[l];if((u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t==="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(n){if(u.multi&&u.representName){e.tag=u.representName(t)}else{e.tag=u.tag}}else{e.tag="?"}if(u.represent){f=e.styleMap[u.tag]||u.defaultStyle;if(s.call(u.represent)==="[object Function]"){r=u.represent(t,f)}else if(a.call(u.represent,f)){r=u.represent[f](t,f)}else{throw new i("!<"+u.tag+'> tag resolver accepts not "'+f+'" style')}e.dump=r}return true}}return false}function writeNode(e,t,n,r,o,a,l){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var c=s.call(e.dump);var u=r;var f;if(r){r=e.flowLevel<0||e.flowLevel>t}var p=c==="[object Object]"||c==="[object Array]",d,h;if(p){d=e.duplicates.indexOf(n);h=d!==-1}if(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0){o=false}if(h&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(p&&h&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(c==="[object Object]"){if(r&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,o);if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,t,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object Array]"){if(r&&e.dump.length!==0){if(e.noArrayIndent&&!l&&t>0){writeBlockSequence(e,t-1,e.dump,o)}else{writeBlockSequence(e,t,e.dump,o)}if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,t,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,u)}}else if(c==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+c)}if(e.tag!==null&&e.tag!=="?"){f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){f="!"+f}else if(f.slice(0,18)==="tag:yaml.org,2002:"){f="!!"+f.slice(18)}else{f="!<"+f+">"}e.dump=f+" "+e.dump}}return true}function getDuplicateReferences(e,t){var n=[],r=[],i,o;inspectNode(e,n,r);for(i=0,o=r.length;i<o;i+=1){t.duplicates.push(n[r[i]])}t.usedDuplicates=new Array(o)}function inspectNode(e,t,n){var r,i,o;if(e!==null&&typeof e==="object"){i=t.indexOf(e);if(i!==-1){if(n.indexOf(i)===-1){n.push(i)}}else{t.push(e);if(Array.isArray(e)){for(i=0,o=e.length;i<o;i+=1){inspectNode(e[i],t,n)}}else{r=Object.keys(e);for(i=0,o=r.length;i<o;i+=1){inspectNode(e[r[i]],t,n)}}}}}function dump(e,t){t=t||{};var n=new State(t);if(!n.noRefs)getDuplicateReferences(e,n);var r=e;if(n.replacer){r=n.replacer.call({"":r},"",r)}if(writeNode(n,0,r,true,true))return n.dump+"\n";return""}e.exports.dump=dump},8179:e=>{function formatError(e,t){var n="",r=e.reason||"(unknown reason)";if(!e.mark)return r;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return r+" "+n}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},1161:(e,t,n)=>{var r=n(6829);var i=n(8179);var o=n(6975);var s=n(8759);var a=Object.prototype.hasOwnProperty;var l=1;var c=2;var u=3;var f=4;var p=1;var d=2;var h=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var m=/[\x85\u2028\u2029]/;var y=/[,\[\]\{\}]/;var b=/^(?:!|!!|![a-z\-]+!)$/i;var _=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var A=new Array(256);var v=new Array(256);for(var w=0;w<256;w++){A[w]=simpleEscapeSequence(w)?1:0;v[w]=simpleEscapeSequence(w)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||s;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=o(n);return new i(t,n)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var E={YAML:function handleYamlDirective(e,t,n){var r,i,o;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(r===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(r[1],10);o=parseInt(r[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,n){var r,i;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}r=n[0];i=n[1];if(!b.test(r)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,r)){throwError(e,'there is a previously declared suffix for "'+r+'" tag handle')}if(!_.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function captureSegment(e,t,n,r){var i,o,s,a;if(t<n){a=e.input.slice(t,n);if(r){for(i=0,o=a.length;i<o;i+=1){s=a.charCodeAt(i);if(!(s===9||32<=s&&s<=1114111)){throwError(e,"expected valid JSON character")}}}else if(g.test(a)){throwError(e,"the stream contains non-printable characters")}e.result+=a}}function mergeMappings(e,t,n,i){var o,s,l,c;if(!r.isObject(n)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}o=Object.keys(n);for(l=0,c=o.length;l<c;l+=1){s=o[l];if(!a.call(t,s)){t[s]=n[s];i[s]=true}}}function storeMappingPair(e,t,n,r,i,o,s,l,c){var u,f;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(u=0,f=i.length;u<f;u+=1){if(Array.isArray(i[u])){throwError(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&_class(i[u])==="[object Object]"){i[u]="[object Object]"}}}if(typeof i==="object"&&_class(i)==="[object Object]"){i="[object Object]"}i=String(i);if(t===null){t={}}if(r==="tag:yaml.org,2002:merge"){if(Array.isArray(o)){for(u=0,f=o.length;u<f;u+=1){mergeMappings(e,t,o[u],n)}}else{mergeMappings(e,t,o,n)}}else{if(!e.json&&!a.call(n,i)&&a.call(t,i)){e.line=s||e.line;e.lineStart=l||e.lineStart;e.position=c||e.position;throwError(e,"duplicated mapping key")}if(i==="__proto__"){Object.defineProperty(t,i,{configurable:true,enumerable:true,writable:true,value:o})}else{t[i]=o}delete n[i]}return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,n){var r=0,i=e.input.charCodeAt(e.position);while(i!==0){while(is_WHITE_SPACE(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(t&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(is_EOL(i)){readLineBreak(e);i=e.input.charCodeAt(e.position);r++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(n!==-1&&r!==0&&e.lineIndent<n){throwWarning(e,"deficient indentation")}return r}function testDocumentSeparator(e){var t=e.position,n;n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){t+=3;n=e.input.charCodeAt(t);if(n===0||is_WS_OR_EOL(n)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=r.repeat("\n",t-1)}}function readPlainScalar(e,t,n){var r,i,o,s,a,l,c,u,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";o=s=e.position;a=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){break}}else if(d===35){r=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(r)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){l=e.line;c=e.lineStart;u=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;d=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=l;e.lineStart=c;e.lineIndent=u;break}}if(a){captureSegment(e,o,s,false);writeFoldedLines(e,e.line-l);o=s=e.position;a=false}if(!is_WHITE_SPACE(d)){s=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,o,s,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,t){var n,r,i;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;r=i=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,r,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){r=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,r,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var n,r,i,o,s,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;n=r=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,n,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&A[a]){e.result+=v[a];e.position++}else if((s=escapedHexLen(a))>0){i=s;o=0;for(;i>0;i--){a=e.input.charCodeAt(++e.position);if((s=fromHexCode(a))>=0){o=(o<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(o);e.position++}else{throwError(e,"unknown escape sequence")}n=r=e.position}else if(is_EOL(a)){captureSegment(e,n,r,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=r=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;r=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var n=true,r,i,o,s=e.tag,a,c=e.anchor,u,f,p,d,h,g=Object.create(null),m,y,b,_;_=e.input.charCodeAt(e.position);if(_===91){f=93;h=false;a=[]}else if(_===123){f=125;h=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}_=e.input.charCodeAt(++e.position);while(_!==0){skipSeparationSpace(e,true,t);_=e.input.charCodeAt(e.position);if(_===f){e.position++;e.tag=s;e.anchor=c;e.kind=h?"mapping":"sequence";e.result=a;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}else if(_===44){throwError(e,"expected the node content, but found ','")}y=m=b=null;p=d=false;if(_===63){u=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(u)){p=d=true;e.position++;skipSeparationSpace(e,true,t)}}r=e.line;i=e.lineStart;o=e.position;composeNode(e,t,l,false,true);y=e.tag;m=e.result;skipSeparationSpace(e,true,t);_=e.input.charCodeAt(e.position);if((d||e.line===r)&&_===58){p=true;_=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,l,false,true);b=e.result}if(h){storeMappingPair(e,a,g,y,m,b,r,i,o)}else if(p){a.push(storeMappingPair(e,null,g,y,m,b,r,i,o))}else{a.push(m)}skipSeparationSpace(e,true,t);_=e.input.charCodeAt(e.position);if(_===44){n=true;_=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var n,i,o=p,s=false,a=false,l=t,c=0,u=false,f,g;g=e.input.charCodeAt(e.position);if(g===124){i=false}else if(g===62){i=true}else{return false}e.kind="scalar";e.result="";while(g!==0){g=e.input.charCodeAt(++e.position);if(g===43||g===45){if(p===o){o=g===43?h:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((f=fromDecimalCode(g))>=0){if(f===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!a){l=t+f-1;a=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(g)){do{g=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(g));if(g===35){do{g=e.input.charCodeAt(++e.position)}while(!is_EOL(g)&&g!==0)}}while(g!==0){readLineBreak(e);e.lineIndent=0;g=e.input.charCodeAt(e.position);while((!a||e.lineIndent<l)&&g===32){e.lineIndent++;g=e.input.charCodeAt(++e.position)}if(!a&&e.lineIndent>l){l=e.lineIndent}if(is_EOL(g)){c++;continue}if(e.lineIndent<l){if(o===h){e.result+=r.repeat("\n",s?1+c:c)}else if(o===p){if(s){e.result+="\n"}}break}if(i){if(is_WHITE_SPACE(g)){u=true;e.result+=r.repeat("\n",s?1+c:c)}else if(u){u=false;e.result+=r.repeat("\n",c+1)}else if(c===0){if(s){e.result+=" "}}else{e.result+=r.repeat("\n",c)}}else{e.result+=r.repeat("\n",s?1+c:c)}s=true;a=true;c=0;n=e.position;while(!is_EOL(g)&&g!==0){g=e.input.charCodeAt(++e.position)}captureSegment(e,n,e.position,false)}return true}function readBlockSequence(e,t){var n,r=e.tag,i=e.anchor,o=[],s,a=false,l;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=o}l=e.input.charCodeAt(e.position);while(l!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(l!==45){break}s=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(s)){break}a=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){o.push(null);l=e.input.charCodeAt(e.position);continue}}n=e.line;composeNode(e,t,u,false,true);o.push(e.result);skipSeparationSpace(e,true,-1);l=e.input.charCodeAt(e.position);if((e.line===n||e.lineIndent>t)&&l!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(a){e.tag=r;e.anchor=i;e.kind="sequence";e.result=o;return true}return false}function readBlockMapping(e,t,n){var r,i,o,s,a,l,u=e.tag,p=e.anchor,d={},h=Object.create(null),g=null,m=null,y=null,b=false,_=false,A;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=d}A=e.input.charCodeAt(e.position);while(A!==0){if(!b&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}r=e.input.charCodeAt(e.position+1);o=e.line;if((A===63||A===58)&&is_WS_OR_EOL(r)){if(A===63){if(b){storeMappingPair(e,d,h,g,m,null,s,a,l);g=m=y=null}_=true;b=true;i=true}else if(b){b=false;i=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;A=r}else{s=e.line;a=e.lineStart;l=e.position;if(!composeNode(e,n,c,false,true)){break}if(e.line===o){A=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(A)){A=e.input.charCodeAt(++e.position)}if(A===58){A=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(A)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(b){storeMappingPair(e,d,h,g,m,null,s,a,l);g=m=y=null}_=true;b=false;i=false;g=e.tag;m=e.result}else if(_){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=u;e.anchor=p;return true}}else if(_){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=u;e.anchor=p;return true}}if(e.line===o||e.lineIndent>t){if(b){s=e.line;a=e.lineStart;l=e.position}if(composeNode(e,t,f,true,i)){if(b){m=e.result}else{y=e.result}}if(!b){storeMappingPair(e,d,h,g,m,y,s,a,l);g=m=y=null}skipSeparationSpace(e,true,-1);A=e.input.charCodeAt(e.position)}if((e.line===o||e.lineIndent>t)&&A!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(b){storeMappingPair(e,d,h,g,m,null,s,a,l)}if(_){e.tag=u;e.anchor=p;e.kind="mapping";e.result=d}return _}function readTagProperty(e){var t,n=false,r=false,i,o,s;s=e.input.charCodeAt(e.position);if(s!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}s=e.input.charCodeAt(++e.position);if(s===60){n=true;s=e.input.charCodeAt(++e.position)}else if(s===33){r=true;i="!!";s=e.input.charCodeAt(++e.position)}else{i="!"}t=e.position;if(n){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&s!==62);if(e.position<e.length){o=e.input.slice(t,e.position);s=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(s!==0&&!is_WS_OR_EOL(s)){if(s===33){if(!r){i=e.input.slice(t-1,e.position+1);if(!b.test(i)){throwError(e,"named tag handle cannot contain such characters")}r=true;t=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}s=e.input.charCodeAt(++e.position)}o=e.input.slice(t,e.position);if(y.test(o)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(o&&!_.test(o)){throwError(e,"tag name cannot contain such characters: "+o)}try{o=decodeURIComponent(o)}catch(t){throwError(e,"tag name is malformed: "+o)}if(n){e.tag=o}else if(a.call(e.tagMap,i)){e.tag=e.tagMap[i]+o}else if(i==="!"){e.tag="!"+o}else if(i==="!!"){e.tag="tag:yaml.org,2002:"+o}else{throwError(e,'undeclared tag handle "'+i+'"')}return true}function readAnchorProperty(e){var t,n;n=e.input.charCodeAt(e.position);if(n!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}n=e.input.charCodeAt(++e.position);t=e.position;while(n!==0&&!is_WS_OR_EOL(n)&&!is_FLOW_INDICATOR(n)){n=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function readAlias(e){var t,n,r;r=e.input.charCodeAt(e.position);if(r!==42)return false;r=e.input.charCodeAt(++e.position);t=e.position;while(r!==0&&!is_WS_OR_EOL(r)&&!is_FLOW_INDICATOR(r)){r=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an alias node must contain at least one character")}n=e.input.slice(t,e.position);if(!a.call(e.anchorMap,n)){throwError(e,'unidentified alias "'+n+'"')}e.result=e.anchorMap[n];skipSeparationSpace(e,true,-1);return true}function composeNode(e,t,n,r,i){var o,s,p,d=1,h=false,g=false,m,y,b,_,A,v;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;o=s=p=f===n||u===n;if(r){if(skipSeparationSpace(e,true,-1)){h=true;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}}if(d===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){h=true;p=o;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}else{p=false}}}if(p){p=h||i}if(d===1||f===n){if(l===n||c===n){A=t}else{A=t+1}v=e.position-e.lineStart;if(d===1){if(p&&(readBlockSequence(e,v)||readBlockMapping(e,v,A))||readFlowCollection(e,A)){g=true}else{if(s&&readBlockScalar(e,A)||readSingleQuotedScalar(e,A)||readDoubleQuotedScalar(e,A)){g=true}else if(readAlias(e)){g=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,A,l===n)){g=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(d===0){g=p&&readBlockSequence(e,v)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(m=0,y=e.implicitTypes.length;m<y;m+=1){_=e.implicitTypes[m];if(_.resolve(e.result)){e.result=_.construct(e.result);e.tag=_.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(a.call(e.typeMap[e.kind||"fallback"],e.tag)){_=e.typeMap[e.kind||"fallback"][e.tag]}else{_=null;b=e.typeMap.multi[e.kind||"fallback"];for(m=0,y=b.length;m<y;m+=1){if(e.tag.slice(0,b[m].tag.length)===b[m].tag){_=b[m];break}}}if(!_){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&_.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+_.kind+'", not "'+e.kind+'"')}if(!_.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=_.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||g}function readDocument(e){var t=e.position,n,r,i,o=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}o=true;s=e.input.charCodeAt(++e.position);n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}r=e.input.slice(n,e.position);i=[];if(r.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}i.push(e.input.slice(n,e.position))}if(s!==0)readLineBreak(e);if(a.call(E,r)){E[r](e,r,i)}else{throwWarning(e,'unknown document directive "'+r+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(o){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,f,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&m.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var n=new State(e,t);var r=e.indexOf("\0");if(r!==-1){n.position=r;throwError(n,"null byte is not allowed in input")}n.input+="\0";while(n.input.charCodeAt(n.position)===32){n.lineIndent+=1;n.position+=1}while(n.position<n.length-1){readDocument(n)}return n.documents}function loadAll(e,t,n){if(t!==null&&typeof t==="object"&&typeof n==="undefined"){n=t;t=null}var r=loadDocuments(e,n);if(typeof t!=="function"){return r}for(var i=0,o=r.length;i<o;i+=1){t(r[i])}}function load(e,t){var n=loadDocuments(e,t);if(n.length===0){return undefined}else if(n.length===1){return n[0]}throw new i("expected a single document in the stream, but found more")}e.exports.loadAll=loadAll;e.exports.load=load},1082:(e,t,n)=>{var r=n(8179);var i=n(6073);function compileList(e,t){var n=[];e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){t=r}}));n[t]=e}));return n}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,n=arguments.length;t<n;t+=1){arguments[t].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){var t=[];var n=[];if(e instanceof i){n.push(e)}else if(Array.isArray(e)){n=n.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)n=n.concat(e.explicit)}else{throw new r("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof i)){throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));n.forEach((function(e){if(!(e instanceof i)){throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var o=Object.create(Schema.prototype);o.implicit=(this.implicit||[]).concat(t);o.explicit=(this.explicit||[]).concat(n);o.compiledImplicit=compileList(o,"implicit");o.compiledExplicit=compileList(o,"explicit");o.compiledTypeMap=compileMap(o.compiledImplicit,o.compiledExplicit);return o};e.exports=Schema},2011:(e,t,n)=>{e.exports=n(1035)},8759:(e,t,n)=>{e.exports=n(2011).extend({implicit:[n(9212),n(6104)],explicit:[n(7900),n(9046),n(6860),n(9548)]})},8562:(e,t,n)=>{var r=n(1082);e.exports=new r({explicit:[n(3619),n(7283),n(6150)]})},1035:(e,t,n)=>{e.exports=n(8562).extend({implicit:[n(721),n(4993),n(1615),n(2705)]})},6975:(e,t,n)=>{var r=n(6829);function getLine(e,t,n,r,i){var o="";var s="";var a=Math.floor(i/2)-1;if(r-t>a){o=" ... ";t=r-a+o.length}if(n-r>a){s=" ...";n=r+a-s.length}return{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function padStart(e,t){return r.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var n=/\r?\n|\r|\0/g;var i=[0];var o=[];var s;var a=-1;while(s=n.exec(e.buffer)){o.push(s.index);i.push(s.index+s[0].length);if(e.position<=s.index&&a<0){a=i.length-2}}if(a<0)a=i.length-1;var l="",c,u;var f=Math.min(e.line+t.linesAfter,o.length).toString().length;var p=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore;c++){if(a-c<0)break;u=getLine(e.buffer,i[a-c],o[a-c],e.position-(i[a]-i[a-c]),p);l=r.repeat(" ",t.indent)+padStart((e.line-c+1).toString(),f)+" | "+u.str+"\n"+l}u=getLine(e.buffer,i[a],o[a],e.position,p);l+=r.repeat(" ",t.indent)+padStart((e.line+1).toString(),f)+" | "+u.str+"\n";l+=r.repeat("-",t.indent+f+3+u.pos)+"^"+"\n";for(c=1;c<=t.linesAfter;c++){if(a+c>=o.length)break;u=getLine(e.buffer,i[a+c],o[a+c],e.position-(i[a]-i[a+c]),p);l+=r.repeat(" ",t.indent)+padStart((e.line+c+1).toString(),f)+" | "+u.str+"\n"}return l.replace(/\n$/,"")}e.exports=makeSnippet},6073:(e,t,n)=>{var r=n(8179);var i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var o=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(i.indexOf(t)===-1){throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(o.indexOf(this.kind)===-1){throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},7900:(e,t,n)=>{var r=n(6073);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,n,r=0,o=e.length,s=i;for(n=0;n<o;n++){t=s.indexOf(e.charAt(n));if(t>64)continue;if(t<0)return false;r+=6}return r%8===0}function constructYamlBinary(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,s=i,a=0,l=[];for(t=0;t<o;t++){if(t%4===0&&t){l.push(a>>16&255);l.push(a>>8&255);l.push(a&255)}a=a<<6|s.indexOf(r.charAt(t))}n=o%4*6;if(n===0){l.push(a>>16&255);l.push(a>>8&255);l.push(a&255)}else if(n===18){l.push(a>>10&255);l.push(a>>2&255)}else if(n===12){l.push(a>>4&255)}return new Uint8Array(l)}function representYamlBinary(e){var t="",n=0,r,o,s=e.length,a=i;for(r=0;r<s;r++){if(r%3===0&&r){t+=a[n>>18&63];t+=a[n>>12&63];t+=a[n>>6&63];t+=a[n&63]}n=(n<<8)+e[r]}o=s%3;if(o===0){t+=a[n>>18&63];t+=a[n>>12&63];t+=a[n>>6&63];t+=a[n&63]}else if(o===2){t+=a[n>>10&63];t+=a[n>>4&63];t+=a[n<<2&63];t+=a[64]}else if(o===1){t+=a[n>>2&63];t+=a[n<<4&63];t+=a[64];t+=a[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(e,t,n)=>{var r=n(6073);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},2705:(e,t,n)=>{var r=n(6829);var i=n(6073);var o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!o.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,n;t=e.replace(/_/g,"").toLowerCase();n=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return n*parseFloat(t,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var n;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(r.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return s.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||r.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(e,t,n)=>{var r=n(6829);var i=n(6073);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,n=0,r=false,i;if(!t)return false;i=e[n];if(i==="-"||i==="+"){i=e[++n]}if(i==="0"){if(n+1===t)return true;i=e[++n];if(i==="b"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(i!=="0"&&i!=="1")return false;r=true}return r&&i!=="_"}if(i==="x"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isHexCode(e.charCodeAt(n)))return false;r=true}return r&&i!=="_"}if(i==="o"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isOctCode(e.charCodeAt(n)))return false;r=true}return r&&i!=="_"}}if(i==="_")return false;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isDecCode(e.charCodeAt(n))){return false}r=true}if(!r||i==="_")return false;return true}function constructYamlInteger(e){var t=e,n=1,r;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}r=t[0];if(r==="-"||r==="+"){if(r==="-")n=-1;t=t.slice(1);r=t[0]}if(t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!r.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(e,t,n)=>{var r=n(6073);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},6104:(e,t,n)=>{var r=n(6073);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(e,t,n)=>{var r=n(6073);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9046:(e,t,n)=>{var r=n(6073);var i=Object.prototype.hasOwnProperty;var o=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],n,r,s,a,l,c=e;for(n=0,r=c.length;n<r;n+=1){s=c[n];l=false;if(o.call(s)!=="[object Object]")return false;for(a in s){if(i.call(s,a)){if(!l)l=true;else return false}}if(!l)return false;if(t.indexOf(a)===-1)t.push(a);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},6860:(e,t,n)=>{var r=n(6073);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,n,r,o,s,a=e;s=new Array(a.length);for(t=0,n=a.length;t<n;t+=1){r=a[t];if(i.call(r)!=="[object Object]")return false;o=Object.keys(r);if(o.length!==1)return false;s[t]=[o[0],r[o[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var t,n,r,i,o,s=e;o=new Array(s.length);for(t=0,n=s.length;t<n;t+=1){r=s[t];i=Object.keys(r);o[t]=[i[0],r[i[0]]]}return o}e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},7283:(e,t,n)=>{var r=n(6073);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9548:(e,t,n)=>{var r=n(6073);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,n=e;for(t in n){if(i.call(n,t)){if(n[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(e,t,n)=>{var r=n(6073);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9212:(e,t,n)=>{var r=n(6073);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(i.exec(e)!==null)return true;if(o.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,n,r,s,a,l,c,u=0,f=null,p,d,h;t=i.exec(e);if(t===null)t=o.exec(e);if(t===null)throw new Error("Date resolve error");n=+t[1];r=+t[2]-1;s=+t[3];if(!t[4]){return new Date(Date.UTC(n,r,s))}a=+t[4];l=+t[5];c=+t[6];if(t[7]){u=t[7].slice(0,3);while(u.length<3){u+="0"}u=+u}if(t[9]){p=+t[10];d=+(t[11]||0);f=(p*60+d)*6e4;if(t[9]==="-")f=-f}h=new Date(Date.UTC(n,r,s,a,l,c,u));if(f)h.setTime(h.getTime()-f);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},6228:(e,t,n)=>{const r=n(3837);const i=n(610);const o=n(8569);const s=n(479);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,n)=>{t=[].concat(t);e=[].concat(e);let r=new Set;let i=new Set;let s=new Set;let a=0;let onResult=e=>{s.add(e.output);if(n&&n.onResult){n.onResult(e)}};for(let s=0;s<t.length;s++){let l=o(String(t[s]),{...n,onResult:onResult},true);let c=l.state.negated||l.state.negatedExtglob;if(c)a++;for(let t of e){let e=l(t,true);let n=c?!e.isMatch:e.isMatch;if(!n)continue;if(c){r.add(e.output)}else{r.delete(e.output);i.add(e.output)}}}let l=a===t.length?[...s]:[...i];let c=l.filter((e=>!r.has(e)));if(n&&c.length===0){if(n.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(n.nonull===true||n.nullglob===true){return n.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return c};micromatch.match=micromatch;micromatch.matcher=(e,t)=>o(e,t);micromatch.isMatch=(e,t,n)=>o(t,n)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set;let i=[];let onResult=e=>{if(n.onResult)n.onResult(e);i.push(e.output)};let o=new Set(micromatch(e,t,{...n,onResult:onResult}));for(let e of i){if(!o.has(e)){r.add(e)}}return[...r]};micromatch.contains=(e,t,n)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${r.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,n)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...n,contains:true})};micromatch.matchKeys=(e,t,n)=>{if(!s.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let r=micromatch(Object.keys(e),t,n);let i={};for(let t of r)i[t]=e[t];return i};micromatch.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),n);if(r.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),n);if(!r.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,n)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${r.inspect(e)}"`)}return[].concat(t).every((t=>o(t,n)(e)))};micromatch.capture=(e,t,n)=>{let r=s.isWindows(n);let i=o.makeRe(String(e),{...n,capture:true});let a=i.exec(r?s.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>o.makeRe(...e);micromatch.scan=(...e)=>o.scan(...e);micromatch.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[])){for(let e of i(String(r),t)){n.push(o.parse(e,t))}}return n};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return i(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},8569:(e,t,n)=>{e.exports=n(3322)},6099:(e,t,n)=>{const r=n(1017);const i="\\\\/";const o=`[^${i}]`;const s="\\.";const a="\\+";const l="\\?";const c="\\/";const u="(?=.)";const f="[^/]";const p=`(?:${c}|$)`;const d=`(?:^|${c})`;const h=`${s}{1,2}${p}`;const g=`(?!${s})`;const m=`(?!${d}${h})`;const y=`(?!${s}{0,1}${p})`;const b=`(?!${h})`;const _=`[^.${c}]`;const A=`${f}*?`;const v={DOT_LITERAL:s,PLUS_LITERAL:a,QMARK_LITERAL:l,SLASH_LITERAL:c,ONE_CHAR:u,QMARK:f,END_ANCHOR:p,DOTS_SLASH:h,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:b,QMARK_NO_DOT:_,STAR:A,START_ANCHOR:d};const w={...v,SLASH_LITERAL:`[${i}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${s}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${s})`,NO_DOTS:`(?!(?:^|[${i}])${s}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${s}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${s}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};const E={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:E,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?w:v}}},2139:(e,t,n)=>{const r=n(6099);const i=n(479);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:l,REPLACEMENTS:c}=r;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map((e=>i.escapeRegex(e))).join("..")}return n};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=c[e]||e;const n={...t};const u=typeof n.maxLength==="number"?Math.min(o,n.maxLength):o;let f=e.length;if(f>u){throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${u}`)}const p={type:"bos",value:"",output:n.prepend||""};const d=[p];const h=n.capture?"":"?:";const g=i.isWindows(t);const m=r.globChars(g);const y=r.extglobChars(m);const{DOT_LITERAL:b,PLUS_LITERAL:_,SLASH_LITERAL:A,ONE_CHAR:v,DOTS_SLASH:w,NO_DOT:E,NO_DOT_SLASH:C,NO_DOTS_SLASH:x,QMARK:O,QMARK_NO_DOT:k,STAR:S,START_ANCHOR:R}=m;const globstar=e=>`(${h}(?:(?!${R}${e.dot?w:b}).)*?)`;const $=n.dot?"":E;const I=n.dot?O:k;let T=n.bash===true?globstar(n):S;if(n.capture){T=`(${T})`}if(typeof n.noext==="boolean"){n.noextglob=n.noext}const P={input:e,index:-1,start:0,dot:n.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:d};e=i.removePrefix(e,P);f=e.length;const L=[];const H=[];const M=[];let N=p;let j;const eos=()=>P.index===f-1;const F=P.peek=(t=1)=>e[P.index+t];const B=P.advance=()=>e[++P.index]||"";const remaining=()=>e.slice(P.index+1);const consume=(e="",t=0)=>{P.consumed+=e;P.index+=t};const append=e=>{P.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(F()==="!"&&(F(2)!=="("||F(3)==="?")){B();P.start++;e++}if(e%2===0){return false}P.negated=true;P.start++;return true};const increment=e=>{P[e]++;M.push(e)};const decrement=e=>{P[e]--;M.pop()};const push=e=>{if(N.type==="globstar"){const t=P.braces>0&&(e.type==="comma"||e.type==="brace");const n=e.extglob===true||L.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!n){P.output=P.output.slice(0,-N.output.length);N.type="star";N.value="*";N.output=T;P.output+=N.output}}if(L.length&&e.type!=="paren"){L[L.length-1].inner+=e.value}if(e.value||e.output)append(e);if(N&&N.type==="text"&&e.type==="text"){N.value+=e.value;N.output=(N.output||"")+e.value;return}e.prev=N;d.push(e);N=e};const extglobOpen=(e,t)=>{const r={...y[t],conditions:1,inner:""};r.prev=N;r.parens=P.parens;r.output=P.output;const i=(n.capture?"(":"")+r.open;increment("parens");push({type:e,value:t,output:P.output?"":v});push({type:"paren",extglob:true,value:B(),output:i});L.push(r)};const extglobClose=e=>{let r=e.close+(n.capture?")":"");let i;if(e.type==="negate"){let o=T;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(n)}if(o!==T||eos()||/^\)+$/.test(remaining())){r=e.close=`)$))${o}`}if(e.inner.includes("*")&&(i=remaining())&&/^\.[^\\/.]+$/.test(i)){const n=parse(i,{...t,fastpaths:false}).output;r=e.close=`)${n})${o})`}if(e.prev.type==="bos"){P.negatedExtglob=true}}push({type:"paren",extglob:true,value:j,output:r});decrement("parens")};if(n.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=false;let o=e.replace(l,((e,t,n,i,o,s)=>{if(i==="\\"){r=true;return e}if(i==="?"){if(t){return t+i+(o?O.repeat(o.length):"")}if(s===0){return I+(o?O.repeat(o.length):"")}return O.repeat(n.length)}if(i==="."){return b.repeat(n.length)}if(i==="*"){if(t){return t+i+(o?T:"")}return T}return t?e:`\\${e}`}));if(r===true){if(n.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&n.contains===true){P.output=e;return P}P.output=i.wrapOutput(o,P,t);return P}while(!eos()){j=B();if(j==="\0"){continue}if(j==="\\"){const e=F();if(e==="/"&&n.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){j+="\\";push({type:"text",value:j});continue}const t=/^\\+/.exec(remaining());let r=0;if(t&&t[0].length>2){r=t[0].length;P.index+=r;if(r%2!==0){j+="\\"}}if(n.unescape===true){j=B()}else{j+=B()}if(P.brackets===0){push({type:"text",value:j});continue}}if(P.brackets>0&&(j!=="]"||N.value==="["||N.value==="[^")){if(n.posix!==false&&j===":"){const e=N.value.slice(1);if(e.includes("[")){N.posix=true;if(e.includes(":")){const e=N.value.lastIndexOf("[");const t=N.value.slice(0,e);const n=N.value.slice(e+2);const r=s[n];if(r){N.value=t+r;P.backtrack=true;B();if(!p.output&&d.indexOf(N)===1){p.output=v}continue}}}}if(j==="["&&F()!==":"||j==="-"&&F()==="]"){j=`\\${j}`}if(j==="]"&&(N.value==="["||N.value==="[^")){j=`\\${j}`}if(n.posix===true&&j==="!"&&N.value==="["){j="^"}N.value+=j;append({value:j});continue}if(P.quotes===1&&j!=='"'){j=i.escapeRegex(j);N.value+=j;append({value:j});continue}if(j==='"'){P.quotes=P.quotes===1?0:1;if(n.keepQuotes===true){push({type:"text",value:j})}continue}if(j==="("){increment("parens");push({type:"paren",value:j});continue}if(j===")"){if(P.parens===0&&n.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=L[L.length-1];if(e&&P.parens===e.parens+1){extglobClose(L.pop());continue}push({type:"paren",value:j,output:P.parens?")":"\\)"});decrement("parens");continue}if(j==="["){if(n.nobracket===true||!remaining().includes("]")){if(n.nobracket!==true&&n.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}j=`\\${j}`}else{increment("brackets")}push({type:"bracket",value:j});continue}if(j==="]"){if(n.nobracket===true||N&&N.type==="bracket"&&N.value.length===1){push({type:"text",value:j,output:`\\${j}`});continue}if(P.brackets===0){if(n.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:j,output:`\\${j}`});continue}decrement("brackets");const e=N.value.slice(1);if(N.posix!==true&&e[0]==="^"&&!e.includes("/")){j=`/${j}`}N.value+=j;append({value:j});if(n.literalBrackets===false||i.hasRegexChars(e)){continue}const t=i.escapeRegex(N.value);P.output=P.output.slice(0,-N.value.length);if(n.literalBrackets===true){P.output+=t;N.value=t;continue}N.value=`(${h}${t}|${N.value})`;P.output+=N.value;continue}if(j==="{"&&n.nobrace!==true){increment("braces");const e={type:"brace",value:j,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};H.push(e);push(e);continue}if(j==="}"){const e=H[H.length-1];if(n.nobrace===true||!e){push({type:"text",value:j,output:j});continue}let t=")";if(e.dots===true){const e=d.slice();const r=[];for(let t=e.length-1;t>=0;t--){d.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){r.unshift(e[t].value)}}t=expandRange(r,n);P.backtrack=true}if(e.comma!==true&&e.dots!==true){const n=P.output.slice(0,e.outputIndex);const r=P.tokens.slice(e.tokensIndex);e.value=e.output="\\{";j=t="\\}";P.output=n;for(const e of r){P.output+=e.output||e.value}}push({type:"brace",value:j,output:t});decrement("braces");H.pop();continue}if(j==="|"){if(L.length>0){L[L.length-1].conditions++}push({type:"text",value:j});continue}if(j===","){let e=j;const t=H[H.length-1];if(t&&M[M.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:j,output:e});continue}if(j==="/"){if(N.type==="dot"&&P.index===P.start+1){P.start=P.index+1;P.consumed="";P.output="";d.pop();N=p;continue}push({type:"slash",value:j,output:A});continue}if(j==="."){if(P.braces>0&&N.type==="dot"){if(N.value===".")N.output=b;const e=H[H.length-1];N.type="dots";N.output+=j;N.value+=j;e.dots=true;continue}if(P.braces+P.parens===0&&N.type!=="bos"&&N.type!=="slash"){push({type:"text",value:j,output:b});continue}push({type:"dot",value:j,output:b});continue}if(j==="?"){const e=N&&N.value==="(";if(!e&&n.noextglob!==true&&F()==="("&&F(2)!=="?"){extglobOpen("qmark",j);continue}if(N&&N.type==="paren"){const e=F();let t=j;if(e==="<"&&!i.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(N.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${j}`}push({type:"text",value:j,output:t});continue}if(n.dot!==true&&(N.type==="slash"||N.type==="bos")){push({type:"qmark",value:j,output:k});continue}push({type:"qmark",value:j,output:O});continue}if(j==="!"){if(n.noextglob!==true&&F()==="("){if(F(2)!=="?"||!/[!=<:]/.test(F(3))){extglobOpen("negate",j);continue}}if(n.nonegate!==true&&P.index===0){negate();continue}}if(j==="+"){if(n.noextglob!==true&&F()==="("&&F(2)!=="?"){extglobOpen("plus",j);continue}if(N&&N.value==="("||n.regex===false){push({type:"plus",value:j,output:_});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||P.parens>0){push({type:"plus",value:j});continue}push({type:"plus",value:_});continue}if(j==="@"){if(n.noextglob!==true&&F()==="("&&F(2)!=="?"){push({type:"at",extglob:true,value:j,output:""});continue}push({type:"text",value:j});continue}if(j!=="*"){if(j==="$"||j==="^"){j=`\\${j}`}const e=a.exec(remaining());if(e){j+=e[0];P.index+=e[0].length}push({type:"text",value:j});continue}if(N&&(N.type==="globstar"||N.star===true)){N.type="star";N.star=true;N.value+=j;N.output=T;P.backtrack=true;P.globstar=true;consume(j);continue}let t=remaining();if(n.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",j);continue}if(N.type==="star"){if(n.noglobstar===true){consume(j);continue}const r=N.prev;const i=r.prev;const o=r.type==="slash"||r.type==="bos";const s=i&&(i.type==="star"||i.type==="globstar");if(n.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:j,output:""});continue}const a=P.braces>0&&(r.type==="comma"||r.type==="brace");const l=L.length&&(r.type==="pipe"||r.type==="paren");if(!o&&r.type!=="paren"&&!a&&!l){push({type:"star",value:j,output:""});continue}while(t.slice(0,3)==="/**"){const n=e[P.index+4];if(n&&n!=="/"){break}t=t.slice(3);consume("/**",3)}if(r.type==="bos"&&eos()){N.type="globstar";N.value+=j;N.output=globstar(n);P.output=N.output;P.globstar=true;consume(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&!s&&eos()){P.output=P.output.slice(0,-(r.output+N.output).length);r.output=`(?:${r.output}`;N.type="globstar";N.output=globstar(n)+(n.strictSlashes?")":"|$)");N.value+=j;P.globstar=true;P.output+=r.output+N.output;consume(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";P.output=P.output.slice(0,-(r.output+N.output).length);r.output=`(?:${r.output}`;N.type="globstar";N.output=`${globstar(n)}${A}|${A}${e})`;N.value+=j;P.output+=r.output+N.output;P.globstar=true;consume(j+B());push({type:"slash",value:"/",output:""});continue}if(r.type==="bos"&&t[0]==="/"){N.type="globstar";N.value+=j;N.output=`(?:^|${A}|${globstar(n)}${A})`;P.output=N.output;P.globstar=true;consume(j+B());push({type:"slash",value:"/",output:""});continue}P.output=P.output.slice(0,-N.output.length);N.type="globstar";N.output=globstar(n);N.value+=j;P.output+=N.output;P.globstar=true;consume(j);continue}const r={type:"star",value:j,output:T};if(n.bash===true){r.output=".*?";if(N.type==="bos"||N.type==="slash"){r.output=$+r.output}push(r);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&n.regex===true){r.output=j;push(r);continue}if(P.index===P.start||N.type==="slash"||N.type==="dot"){if(N.type==="dot"){P.output+=C;N.output+=C}else if(n.dot===true){P.output+=x;N.output+=x}else{P.output+=$;N.output+=$}if(F()!=="*"){P.output+=v;N.output+=v}}push(r)}while(P.brackets>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));P.output=i.escapeLast(P.output,"[");decrement("brackets")}while(P.parens>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));P.output=i.escapeLast(P.output,"(");decrement("parens")}while(P.braces>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));P.output=i.escapeLast(P.output,"{");decrement("braces")}if(n.strictSlashes!==true&&(N.type==="star"||N.type==="bracket")){push({type:"maybe_slash",value:"",output:`${A}?`})}if(P.backtrack===true){P.output="";for(const e of P.tokens){P.output+=e.output!=null?e.output:e.value;if(e.suffix){P.output+=e.suffix}}}return P};parse.fastpaths=(e,t)=>{const n={...t};const s=typeof n.maxLength==="number"?Math.min(o,n.maxLength):o;const a=e.length;if(a>s){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${s}`)}e=c[e]||e;const l=i.isWindows(t);const{DOT_LITERAL:u,SLASH_LITERAL:f,ONE_CHAR:p,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:b}=r.globChars(l);const _=n.dot?g:h;const A=n.dot?m:h;const v=n.capture?"":"?:";const w={negated:false,prefix:""};let E=n.bash===true?".*?":y;if(n.capture){E=`(${E})`}const globstar=e=>{if(e.noglobstar===true)return E;return`(${v}(?:(?!${b}${e.dot?d:u}).)*?)`};const create=e=>{switch(e){case"*":return`${_}${p}${E}`;case".*":return`${u}${p}${E}`;case"*.*":return`${_}${E}${u}${p}${E}`;case"*/*":return`${_}${E}${f}${p}${A}${E}`;case"**":return _+globstar(n);case"**/*":return`(?:${_}${globstar(n)}${f})?${A}${p}${E}`;case"**/*.*":return`(?:${_}${globstar(n)}${f})?${A}${E}${u}${p}${E}`;case"**/.*":return`(?:${_}${globstar(n)}${f})?${u}${p}${E}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=create(t[1]);if(!n)return;return n+u+t[2]}}};const C=i.removePrefix(e,w);let x=create(C);if(x&&n.strictSlashes!==true){x+=`${f}?`}return x};e.exports=parse},3322:(e,t,n)=>{const r=n(1017);const i=n(2429);const o=n(2139);const s=n(479);const a=n(6099);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,n=false)=>{if(Array.isArray(e)){const r=e.map((e=>picomatch(e,t,n)));const arrayMatcher=e=>{for(const t of r){const n=t(e);if(n)return n}return false};return arrayMatcher}const r=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!r){throw new TypeError("Expected pattern to be a non-empty string")}const i=t||{};const o=s.isWindows(t);const a=r?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const l=a.state;delete a.state;let isIgnored=()=>false;if(i.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(i.ignore,e,n)}const matcher=(n,r=false)=>{const{isMatch:s,match:c,output:u}=picomatch.test(n,a,t,{glob:e,posix:o});const f={glob:e,state:l,regex:a,posix:o,input:n,output:u,match:c,isMatch:s};if(typeof i.onResult==="function"){i.onResult(f)}if(s===false){f.isMatch=false;return r?f:false}if(isIgnored(n)){if(typeof i.onIgnore==="function"){i.onIgnore(f)}f.isMatch=false;return r?f:false}if(typeof i.onMatch==="function"){i.onMatch(f)}return r?f:true};if(n){matcher.state=l}return matcher};picomatch.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const o=n||{};const a=o.format||(i?s.toPosixSlashes:null);let l=e===r;let c=l&&a?a(e):e;if(l===false){c=a?a(e):e;l=c===r}if(l===false||o.capture===true){if(o.matchBase===true||o.basename===true){l=picomatch.matchBase(e,t,n,i)}else{l=t.exec(c)}}return{isMatch:Boolean(l),match:l,output:c}};picomatch.matchBase=(e,t,n,i=s.isWindows(n))=>{const o=t instanceof RegExp?t:picomatch.makeRe(t,n);return o.test(r.basename(e))};picomatch.isMatch=(e,t,n)=>picomatch(t,n)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return o(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>i(e,t);picomatch.compileRe=(e,t,n=false,r=false)=>{if(n===true){return e.output}const i=t||{};const o=i.contains?"":"^";const s=i.contains?"":"$";let a=`${o}(?:${e.output})${s}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const l=picomatch.toRegex(a,t);if(r===true){l.state=e}return l};picomatch.makeRe=(e,t={},n=false,r=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let i={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){i.output=o.fastpaths(e,t)}if(!i.output){i=o(e,t)}return picomatch.compileRe(i,t,n,r)};picomatch.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},2429:(e,t,n)=>{const r=n(479);const{CHAR_ASTERISK:i,CHAR_AT:o,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:a,CHAR_DOT:l,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:b}=n(6099);const isPathSeparator=e=>e===u||e===s;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const n=t||{};const _=e.length-1;const A=n.parts===true||n.scanToEnd===true;const v=[];const w=[];const E=[];let C=e;let x=-1;let O=0;let k=0;let S=false;let R=false;let $=false;let I=false;let T=false;let P=false;let L=false;let H=false;let M=false;let N=false;let j=0;let F;let B;let D={value:"",depth:0,isGlob:false};const eos=()=>x>=_;const peek=()=>C.charCodeAt(x+1);const advance=()=>{F=B;return C.charCodeAt(++x)};while(x<_){B=advance();let e;if(B===s){L=D.backslashes=true;B=advance();if(B===f){P=true}continue}if(P===true||B===f){j++;while(eos()!==true&&(B=advance())){if(B===s){L=D.backslashes=true;advance();continue}if(B===f){j++;continue}if(P!==true&&B===l&&(B=advance())===l){S=D.isBrace=true;$=D.isGlob=true;N=true;if(A===true){continue}break}if(P!==true&&B===a){S=D.isBrace=true;$=D.isGlob=true;N=true;if(A===true){continue}break}if(B===m){j--;if(j===0){P=false;S=D.isBrace=true;N=true;break}}}if(A===true){continue}break}if(B===u){v.push(x);w.push(D);D={value:"",depth:0,isGlob:false};if(N===true)continue;if(F===l&&x===O+1){O+=2;continue}k=x+1;continue}if(n.noext!==true){const e=B===h||B===o||B===i||B===g||B===c;if(e===true&&peek()===p){$=D.isGlob=true;I=D.isExtglob=true;N=true;if(B===c&&x===O){M=true}if(A===true){while(eos()!==true&&(B=advance())){if(B===s){L=D.backslashes=true;B=advance();continue}if(B===y){$=D.isGlob=true;N=true;break}}continue}break}}if(B===i){if(F===i)T=D.isGlobstar=true;$=D.isGlob=true;N=true;if(A===true){continue}break}if(B===g){$=D.isGlob=true;N=true;if(A===true){continue}break}if(B===d){while(eos()!==true&&(e=advance())){if(e===s){L=D.backslashes=true;advance();continue}if(e===b){R=D.isBracket=true;$=D.isGlob=true;N=true;break}}if(A===true){continue}break}if(n.nonegate!==true&&B===c&&x===O){H=D.negated=true;O++;continue}if(n.noparen!==true&&B===p){$=D.isGlob=true;if(A===true){while(eos()!==true&&(B=advance())){if(B===p){L=D.backslashes=true;B=advance();continue}if(B===y){N=true;break}}continue}break}if($===true){N=true;if(A===true){continue}break}}if(n.noext===true){I=false;$=false}let U=C;let W="";let G="";if(O>0){W=C.slice(0,O);C=C.slice(O);k-=O}if(U&&$===true&&k>0){U=C.slice(0,k);G=C.slice(k)}else if($===true){U="";G=C}else{U=C}if(U&&U!==""&&U!=="/"&&U!==C){if(isPathSeparator(U.charCodeAt(U.length-1))){U=U.slice(0,-1)}}if(n.unescape===true){if(G)G=r.removeBackslashes(G);if(U&&L===true){U=r.removeBackslashes(U)}}const q={prefix:W,input:e,start:O,base:U,glob:G,isBrace:S,isBracket:R,isGlob:$,isExtglob:I,isGlobstar:T,negated:H,negatedExtglob:M};if(n.tokens===true){q.maxDepth=0;if(!isPathSeparator(B)){w.push(D)}q.tokens=w}if(n.parts===true||n.tokens===true){let t;for(let r=0;r<v.length;r++){const i=t?t+1:O;const o=v[r];const s=e.slice(i,o);if(n.tokens){if(r===0&&O!==0){w[r].isPrefix=true;w[r].value=W}else{w[r].value=s}depth(w[r]);q.maxDepth+=w[r].depth}if(r!==0||s!==""){E.push(s)}t=o}if(t&&t+1<e.length){const r=e.slice(t+1);E.push(r);if(n.tokens){w[w.length-1].value=r;depth(w[w.length-1]);q.maxDepth+=w[w.length-1].depth}}q.slashes=v;q.parts=E}return q};e.exports=scan},479:(e,t,n)=>{const r=n(1017);const i=process.platform==="win32";const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:l}=n(6099);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(l,"\\$1");t.toPosixSlashes=e=>e.replace(o,"/");t.removeBackslashes=e=>e.replace(s,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return i===true||r.sep==="\\"};t.escapeLast=(e,n,r)=>{const i=e.lastIndexOf(n,r);if(i===-1)return e;if(e[i-1]==="\\")return t.escapeLast(e,n,i-1);return`${e.slice(0,i)}\\${e.slice(i)}`};t.removePrefix=(e,t={})=>{let n=e;if(n.startsWith("./")){n=n.slice(2);t.prefix="./"}return n};t.wrapOutput=(e,t={},n={})=>{const r=n.contains?"":"^";const i=n.contains?"":"$";let o=`${r}(?:${e})${i}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o}},1861:(e,t,n)=>{
43
+ /*!
44
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
45
+ *
46
+ * Copyright (c) 2015-present, Jon Schlinkert.
47
+ * Released under the MIT License.
48
+ */
49
+ const r=n(5680);const toRegexRange=(e,t,n)=>{if(r(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(r(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let i={relaxZeros:true,...n};if(typeof i.strictZeros==="boolean"){i.relaxZeros=i.strictZeros===false}let o=String(i.relaxZeros);let s=String(i.shorthand);let a=String(i.capture);let l=String(i.wrap);let c=e+":"+t+"="+o+s+a+l;if(toRegexRange.cache.hasOwnProperty(c)){return toRegexRange.cache[c].result}let u=Math.min(e,t);let f=Math.max(e,t);if(Math.abs(u-f)===1){let n=e+"|"+t;if(i.capture){return`(${n})`}if(i.wrap===false){return n}return`(?:${n})`}let p=hasPadding(e)||hasPadding(t);let d={min:e,max:t,a:u,b:f};let h=[];let g=[];if(p){d.isPadded=p;d.maxLen=String(d.max).length}if(u<0){let e=f<0?Math.abs(f):1;g=splitToPatterns(e,Math.abs(u),d,i);u=d.a=0}if(f>=0){h=splitToPatterns(u,f,d,i)}d.negatives=g;d.positives=h;d.result=collatePatterns(g,h,i);if(i.capture===true){d.result=`(${d.result})`}else if(i.wrap!==false&&h.length+g.length>1){d.result=`(?:${d.result})`}toRegexRange.cache[c]=d;return d.result};function collatePatterns(e,t,n){let r=filterPatterns(e,t,"-",false,n)||[];let i=filterPatterns(t,e,"",false,n)||[];let o=filterPatterns(e,t,"-?",true,n)||[];let s=r.concat(o).concat(i);return s.join("|")}function splitToRanges(e,t){let n=1;let r=1;let i=countNines(e,n);let o=new Set([t]);while(e<=i&&i<=t){o.add(i);n+=1;i=countNines(e,n)}i=countZeros(t+1,r)-1;while(e<i&&i<=t){o.add(i);r+=1;i=countZeros(t+1,r)-1}o=[...o];o.sort(compare);return o}function rangeToPattern(e,t,n){if(e===t){return{pattern:e,count:[],digits:0}}let r=zip(e,t);let i=r.length;let o="";let s=0;for(let e=0;e<i;e++){let[t,i]=r[e];if(t===i){o+=t}else if(t!=="0"||i!=="9"){o+=toCharacterClass(t,i,n)}else{s++}}if(s){o+=n.shorthand===true?"\\d":"[0-9]"}return{pattern:o,count:[s],digits:i}}function splitToPatterns(e,t,n,r){let i=splitToRanges(e,t);let o=[];let s=e;let a;for(let e=0;e<i.length;e++){let t=i[e];let l=rangeToPattern(String(s),String(t),r);let c="";if(!n.isPadded&&a&&a.pattern===l.pattern){if(a.count.length>1){a.count.pop()}a.count.push(l.count[0]);a.string=a.pattern+toQuantifier(a.count);s=t+1;continue}if(n.isPadded){c=padZeros(t,n,r)}l.string=c+l.pattern+toQuantifier(l.count);o.push(l);s=t+1;a=l}return o}function filterPatterns(e,t,n,r,i){let o=[];for(let i of e){let{string:e}=i;if(!r&&!contains(t,"string",e)){o.push(n+e)}if(r&&contains(t,"string",e)){o.push(n+e)}}return o}function zip(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}function compare(e,t){return e>t?1:t>e?-1:0}function contains(e,t,n){return e.some((e=>e[t]===n))}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,n=""]=e;if(n||t>1){return`{${t+(n?","+n:"")}}`}return""}function toCharacterClass(e,t,n){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,n){if(!t.isPadded){return e}let r=Math.abs(t.maxLen-String(e).length);let i=n.relaxZeros!==false;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:{return i?`0{0,${r}}`:`0{${r}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},6144:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.resolveWorkspaceRoot=resolveWorkspaceRoot;t.resolveWorkspaceRootAsync=resolveWorkspaceRootAsync;t.getWorkspaceGlobs=getWorkspaceGlobs;t.getWorkspaceGlobsAsync=getWorkspaceGlobsAsync;const i=r(n(9411));const o=r(n(7742));const s=n(2737);const a=n(6455);const l=n(4679);function resolveWorkspaceRoot(e=o.default.cwd(),t={}){return(0,s.searchParentDirs)(e,((e,n)=>{if(t.pnpmWorkspaces!==false){const t=(0,a.tryReadFile)(i.default.join(e,"pnpm-workspace.yaml"));const r=t&&(0,l.workspaceGlobsFromPnpm)(t);if(r&&(0,l.pathMatchesWorkspaceGlobs)(r,n)){return e}}if(t.packageWorkspaces!==false){const t=(0,a.tryReadFile)(i.default.join(e,"package.json"));const r=t&&(0,l.workspaceGlobsFromPackage)(t);if(r&&(0,l.pathMatchesWorkspaceGlobs)(r,n)){return e}}}))}function resolveWorkspaceRootAsync(e=o.default.cwd(),t={}){return(0,s.searchParentDirsAsync)(e,(async(e,n)=>{if(t.pnpmWorkspaces!==false){const t=await(0,a.tryReadFileAsync)(i.default.join(e,"pnpm-workspace.yaml"));const r=t&&(0,l.workspaceGlobsFromPnpm)(t);if(r&&(0,l.pathMatchesWorkspaceGlobs)(r,n)){return e}}if(t.packageWorkspaces!==false){const t=await(0,a.tryReadFileAsync)(i.default.join(e,"package.json"));const r=t&&(0,l.workspaceGlobsFromPackage)(t);if(r&&(0,l.pathMatchesWorkspaceGlobs)(r,n)){return e}}}))}function getWorkspaceGlobs(e=o.default.cwd(),t={}){if(t.pnpmWorkspaces!==false){const t=(0,a.tryReadFile)(i.default.join(e,"pnpm-workspace.yaml"));const n=t&&(0,l.workspaceGlobsFromPnpm)(t);if(n){return n}}if(t.packageWorkspaces!==false){const t=(0,a.tryReadFile)(i.default.join(e,"package.json"));const n=t&&(0,l.workspaceGlobsFromPackage)(t);if(n){return n}}return null}async function getWorkspaceGlobsAsync(e=o.default.cwd(),t={}){if(t.pnpmWorkspaces!==false){const t=await(0,a.tryReadFileAsync)(i.default.join(e,"pnpm-workspace.yaml"));const n=t&&(0,l.workspaceGlobsFromPnpm)(t);if(n){return n}}if(t.packageWorkspaces!==false){const t=await(0,a.tryReadFileAsync)(i.default.join(e,"package.json"));const n=t&&(0,l.workspaceGlobsFromPackage)(t);if(n){return n}}return null}},2737:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.searchParentDirs=searchParentDirs;t.searchParentDirsAsync=searchParentDirsAsync;const i=r(n(9411));const o=r(n(7742));function searchParentDirs(e=o.default.cwd(),t){let n=i.default.normalize(e);let r;do{const o=t(n,i.default.relative(n,e));if(o!==undefined){return o}r=n;n=i.default.dirname(n)}while(n!==r);return null}async function searchParentDirsAsync(e,t){let n=i.default.normalize(e);let r;do{const o=await t(n,i.default.relative(n,e));if(o!==undefined){return o}r=n;n=i.default.dirname(n)}while(n!==r);return null}},6455:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.tryReadFile=tryReadFile;t.tryReadFileAsync=tryReadFileAsync;const i=r(n(7561));function tryReadFile(e){try{return i.default.readFileSync(e,{encoding:"utf-8"})}catch(e){if(shouldIgnoreError(e)){return null}throw e}}function tryReadFileAsync(e){return i.default.promises.readFile(e,{encoding:"utf-8"}).catch((e=>{if(shouldIgnoreError(e)){return null}throw e}))}function shouldIgnoreError(e){return"code"in e&&(e.code==="ENOENT"||e.code==="EISDIR")}},4679:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.pathMatchesWorkspaceGlobs=pathMatchesWorkspaceGlobs;t.workspaceGlobsFromPackage=workspaceGlobsFromPackage;t.workspaceGlobsFromPnpm=workspaceGlobsFromPnpm;const i=n(1917);const o=r(n(6228));function pathMatchesWorkspaceGlobs(e,t){return!t||(0,o.default)([t],e).length>0}function workspaceGlobsFromPackage(e){try{const t=JSON.parse(e);if(Array.isArray(t?.workspaces)){return t.workspaces}if(Array.isArray(t?.workspaces?.packages)){return t.workspaces.packages}}catch(e){if(e.name!=="SyntaxError"){throw e}}return null}function workspaceGlobsFromPnpm(e){try{const t=e?(0,i.load)(e):null;if(Array.isArray(t?.packages)){return t.packages}}catch(e){if(e.name!=="YAMLException"){throw e}}return null}},7561:e=>{e.exports=n(3024)},9411:e=>{e.exports=n(6760)},7742:e=>{e.exports=n(1708)},1017:e=>{e.exports=n(6928)},3837:e=>{e.exports=n(9023)}};var r={};function __nccwpck_require2_(e){var n=r[e];if(n!==undefined){return n.exports}var i=r[e]={exports:{}};var o=true;try{t[e].call(i.exports,i,i.exports,__nccwpck_require2_);o=false}finally{if(o)delete r[e]}return i.exports}if(typeof __nccwpck_require2_!=="undefined")__nccwpck_require2_.ab=__dirname+"/";var i=__nccwpck_require2_(6144);e.exports=i})()},5725:(e,t,n)=>{
29
50
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
30
- var r=n(181);var s=r.Buffer;function copyProps(e,t){for(var n in e){t[n]=e[n]}}if(s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow){e.exports=r}else{copyProps(r,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,n){return s(e,t,n)}SafeBuffer.prototype=Object.create(s.prototype);copyProps(s,SafeBuffer);SafeBuffer.from=function(e,t,n){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return s(e,t,n)};SafeBuffer.alloc=function(e,t,n){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var r=s(e);if(t!==undefined){if(typeof n==="string"){r.fill(t,n)}else{r.fill(t)}}else{r.fill(0)}return r};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return r.SlowBuffer(e)}},2668:(e,t,n)=>{"use strict";const r=n(3570);e.exports=(e="")=>{const t=e.match(r);if(!t){return null}const[n,s]=t[0].replace(/#! ?/,"").split(" ");const o=n.split("/").pop();if(o==="env"){return s}return s?`${o} ${s}`:o}},3570:e=>{"use strict";e.exports=/^#!(.*)/},3662:(e,t,n)=>{"use strict";const r=n(857);const s=n(2018);const o=n(9473);const{env:i}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(i.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},5360:(e,t,n)=>{"use strict";const r=n(3662);const s=n(9473);function parseVersion(e){if(/^\d{3,4}$/.test(e)){const t=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}const t=(e||"").split(".").map((e=>parseInt(e,10)));return{major:t[0],minor:t[1],patch:t[2]}}function supportsHyperlink(e){const{env:t}=process;if("FORCE_HYPERLINK"in t){return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0)}if(s("no-hyperlink")||s("no-hyperlinks")||s("hyperlink=false")||s("hyperlink=never")){return false}if(s("hyperlink=true")||s("hyperlink=always")){return true}if(!r.supportsColor(e)){return false}if(e&&!e.isTTY){return false}if(process.platform==="win32"){return false}if("NETLIFY"in t){return true}if("CI"in t){return false}if("TEAMCITY_VERSION"in t){return false}if("TERM_PROGRAM"in t){const e=parseVersion(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":if(e.major===3){return e.minor>=1}return e.major>3}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0"){return false}const e=parseVersion(t.VTE_VERSION);return e.major>0||e.minor>=50}return false}e.exports={supportsHyperlink:supportsHyperlink,stdout:supportsHyperlink(process.stdout),stderr:supportsHyperlink(process.stderr)}},5743:(e,t,n)=>{"use strict";const r=n(3898);const s=n(5360);const terminalLink=(e,t,{target:n="stdout",...o}={})=>{if(!s[n]){if(o.fallback===false){return e}return typeof o.fallback==="function"?o.fallback(e,t):`${e} (​${t}​)`}return r.link(e,t)};e.exports=(e,t,n={})=>terminalLink(e,t,n);e.exports.stderr=(e,t,n={})=>terminalLink(e,t,{target:"stderr",...n});e.exports.isSupported=s.stdout;e.exports.stderr.isSupported=s.stderr},5012:(e,t,n)=>{const{URL:r}=n(7016);const{join:s}=n(6928);const o=n(9896);const{promisify:i}=n(9023);const{tmpdir:a}=n(857);const c=n(2139);const l=i(o.writeFile);const u=i(o.mkdir);const f=i(o.readFile);const compareVersions=(e,t)=>e.localeCompare(t,"en-US",{numeric:true});const encode=e=>encodeURIComponent(e).replace(/^%40/,"@");const getFile=async(e,t)=>{const n=a();const r=s(n,"update-check");if(!o.existsSync(r)){await u(r)}let i=`${e.name}-${t}.json`;if(e.scope){i=`${e.scope}-${i}`}return s(r,i)};const evaluateCache=async(e,t,n)=>{if(o.existsSync(e)){const r=await f(e,"utf8");const{lastUpdate:s,latest:o}=JSON.parse(r);const i=s+n;if(i>t){return{shouldCheck:false,latest:o}}}return{shouldCheck:true,latest:null}};const updateCache=async(e,t,n)=>{const r=JSON.stringify({latest:t,lastUpdate:n});await l(e,r,"utf8")};const loadPackage=(e,t)=>new Promise(((r,s)=>{const o={host:e.hostname,path:e.pathname,port:e.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(t){o.headers.authorization=`${t.type} ${t.token}`}const{get:i}=n(e.protocol==="https:"?5692:8611);i(o,(e=>{const{statusCode:t}=e;if(t!==200){const n=new Error(`Request failed with code ${t}`);n.code=t;s(n);e.resume();return}let n="";e.setEncoding("utf8");e.on("data",(e=>{n+=e}));e.on("end",(()=>{try{const e=JSON.parse(n);r(e)}catch(e){s(e)}}))})).on("error",s).on("timeout",s)}));const getMostRecent=async({full:e,scope:t},s)=>{const o=c(t);const i=new r(e,o);let a=null;try{a=await loadPackage(i)}catch(e){if(e.code&&String(e.code).startsWith(4)){const e=n(6856);const t=e(o,{recursive:true});a=await loadPackage(i,t)}else{throw e}}const l=a["dist-tags"][s];if(!l){throw new Error(`Distribution tag ${s} is not available`)}return l};const d={interval:36e5,distTag:"latest"};const getDetails=e=>{const t={full:encode(e)};if(e.includes("/")){const n=e.split("/");t.scope=n[0];t.name=n[1]}else{t.scope=null;t.name=e}return t};e.exports=async(e,t)=>{if(typeof e!=="object"){throw new Error("The first parameter should be your package.json file content")}const n=getDetails(e.name);const r=Date.now();const{distTag:s,interval:o}=Object.assign({},d,t);const i=await getFile(n,s);let a=null;let c=true;({shouldCheck:c,latest:a}=await evaluateCache(i,r,o));if(c){a=await getMostRecent(n,s);await updateCache(i,a,r)}const l=compareVersions(e.version,a);if(l===-1){return{latest:a,fromCache:!c}}return null}},3340:(e,t,n)=>{const r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const s=n(6928);const o=r?";":":";const i=n(9648);const getNotFoundError=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"});const getPathInfo=(e,t)=>{const n=t.colon||o;const s=e.match(/\//)||r&&e.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)];const i=r?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const a=r?i.split(n):[""];if(r){if(e.indexOf(".")!==-1&&a[0]!=="")a.unshift("")}return{pathEnv:s,pathExt:a,pathExtExe:i}};const which=(e,t,n)=>{if(typeof t==="function"){n=t;t={}}if(!t)t={};const{pathEnv:r,pathExt:o,pathExtExe:a}=getPathInfo(e,t);const c=[];const step=n=>new Promise(((o,i)=>{if(n===r.length)return t.all&&c.length?o(c):i(getNotFoundError(e));const a=r[n];const l=/^".*"$/.test(a)?a.slice(1,-1):a;const u=s.join(l,e);const f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(subStep(f,n,0))}));const subStep=(e,n,r)=>new Promise(((s,l)=>{if(r===o.length)return s(step(n+1));const u=o[r];i(e+u,{pathExt:a},((o,i)=>{if(!o&&i){if(t.all)c.push(e+u);else return s(e+u)}return s(subStep(e,n,r+1))}))}));return n?step(0).then((e=>n(null,e)),n):step(0)};const whichSync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:r,pathExtExe:o}=getPathInfo(e,t);const a=[];for(let c=0;c<n.length;c++){const l=n[c];const u=/^".*"$/.test(l)?l.slice(1,-1):l;const f=s.join(u,e);const d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let e=0;e<r.length;e++){const n=d+r[e];try{const e=i.sync(n,{pathExt:o});if(e){if(t.all)a.push(n);else return n}}catch(e){}}}if(t.all&&a.length)return a;if(t.nothrow)return null;throw getNotFoundError(e)};e.exports=which;which.sync=whichSync},4808:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.CocoaPodsPackageManager=t.CocoaPodsError=void 0;t.extractMissingDependencyError=extractMissingDependencyError;t.getPodUpdateMessage=getPodUpdateMessage;t.getPodRepoUpdateMessage=getPodRepoUpdateMessage;t.getImprovedPodInstallError=getImprovedPodInstallError;const s=r(n(8841));const o=r(n(2325));const i=n(9896);const a=r(n(857));const c=r(n(6928));class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(e,t,n){super(n?`${e}\n└─ Cause: ${n.message}`:e);this.code=t;this.cause=n}}t.CocoaPodsError=CocoaPodsError;function extractMissingDependencyError(e){const t=e.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(t){return[t[1],t[2]]}return null}class CocoaPodsPackageManager{options;silent;static getPodProjectRoot(e){if(CocoaPodsPackageManager.isUsingPods(e))return e;const t=c.default.join(e,"ios");if(CocoaPodsPackageManager.isUsingPods(t))return t;const n=c.default.join(e,"macos");if(CocoaPodsPackageManager.isUsingPods(n))return n;return null}static isUsingPods(e){return(0,i.existsSync)(c.default.join(e,"Podfile"))}static async gemInstallCLIAsync(e=false,t={stdio:"inherit"}){const n=["install","cocoapods","--no-document"];try{await(0,s.default)("gem",n,t)}catch(r){if(e){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",r)}console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,s.default)("sudo",["gem",...n],t)}}static async brewLinkCLIAsync(e={stdio:"inherit"}){await(0,s.default)("brew",["link","cocoapods"],e)}static async brewInstallCLIAsync(e={stdio:"inherit"}){await(0,s.default)("brew",["install","cocoapods"],e)}static async installCLIAsync({nonInteractive:e=false,spawnOptions:t={stdio:"inherit"}}){if(!t){t={stdio:"inherit"}}const n=!!t.ignoreStdio;try{!n&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(e,t);!n&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(e){if(!n){console.log(o.default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(o.default.red(e.stderr??e.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",e)}}catch(e){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",e)}}!n&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(e){!n&&console.warn(o.default.yellow(`› Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/`,"NO_CLI",e)}}}static isAvailable(e,t){if(process.platform!=="darwin"){!t&&console.log(o.default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(e)){!t&&console.log(o.default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(e={stdio:"inherit"}){try{await(0,s.default)("pod",["--version"],e);return true}catch{return false}}constructor({cwd:e,silent:t}){this.silent=!!t;this.options={cwd:e,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:e}={}){await this._installAsync({spinner:e})}isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options)}installCLIAsync(){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:true,spawnOptions:this.options})}async handleInstallErrorAsync({error:e,shouldUpdate:t=true,updatedPackages:n=[],spinner:r}){if(!e.output){throw e}if(!t){throw getImprovedPodInstallError(e,{cwd:this.options.cwd})}const s=e.output.join(a.default.EOL).trim();const{updatePackage:i,shouldUpdateRepo:c}=getPodUpdateMessage(s);if(!i||n.includes(i)){return await this._installAsync({spinner:r,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:n})}n.push(i);return await this.runInstallTypeCommandAsync(["update",i,c?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const e=`Failed to update ${o.default.bold(i)}. Attempting to update the repo instead.`;return e},spinner:r,updatedPackages:n})}async _installAsync({shouldRepoUpdate:e,...t}={}){return await this.runInstallTypeCommandAsync(["install",e?"--repo-update":""].filter(Boolean),{formatWarning(e){return getPodRepoUpdateMessage(e.output.join(a.default.EOL).trim()).message},...t})}async runInstallTypeCommandAsync(e,{formatWarning:t,...n}={}){try{return await this._runAsync(e)}catch(e){if(t){const r=t(e);if(n.spinner){n.spinner.text=o.default.bold(r)}if(!this.silent){console.warn(o.default.yellow(r))}}return await this.handleInstallErrorAsync({error:e,...n})}}async addWithParametersAsync(e,t){throw new Error("Unimplemented")}addAsync(e=[]){throw new Error("Unimplemented")}addDevAsync(e=[]){throw new Error("Unimplemented")}addGlobalAsync(e=[]){throw new Error("Unimplemented")}removeAsync(e=[]){throw new Error("Unimplemented")}removeDevAsync(e=[]){throw new Error("Unimplemented")}removeGlobalAsync(e=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:e}=await(0,s.default)("pod",["--version"],this.options);return e.trim()}async configAsync(e){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["repo","update"])}catch(e){e.message=e.message||(e.stderr??e.stdout);throw new CocoaPodsError("The command `pod install --repo-update` failed","COMMAND_FAILED",e)}}async _runAsync(e){if(!this.silent){console.log(`> pod ${e.join(" ")}`)}const t=(0,s.default)("pod",[...e,"--ansi"],{...this.options,stdio:"pipe"});if(!this.silent){if(t.child.stdout){t.child.stdout.pipe(process.stdout)}}return await t}}t.CocoaPodsPackageManager=CocoaPodsPackageManager;function shouldPodRepoUpdate(e){const t=e;const n=t.includes("pod repo update")||t.includes("--no-repo-update");return n}function getPodUpdateMessage(e){const t=e.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:t?.[1]??null,shouldUpdateRepo:!t?.[2]}}function getPodRepoUpdateMessage(e){const t=extractMissingDependencyError(e);const n=getPodUpdateMessage(e);let r;if(t){r=`Couldn't install: ${t[1]} » ${o.default.underline(t[0])}.`}else if(n?.updatePackage){r=`Couldn't install: ${n?.updatePackage}.`}else{r=`Couldn't install Pods.`}r+=` Updating the Pods project and trying again...`;return{message:r,...n}}function getImprovedPodInstallError(e,{cwd:t=process.cwd()}){const n=e.output.join(a.default.EOL).trim();if(e.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){e.message=`No Podfile found in directory: ${t}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(n)){const t=extractMissingDependencyError(n);let r;if(t){r=`Couldn't install: ${t[1]} » ${o.default.underline(t[0])}`}else{r=`This is often due to native package versions mismatching`}let s;if(t?.[0]){if(t[0].match(/^(?:@?expo|@?react)(-|\/)/)){s=`Ensure the node module "${t[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{s=`Ensure the CocoaPod "${t[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{s=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}e.message=`${r}. ${s}`;if(e.stdout){const t=e.stdout.split(a.default.EOL);const n=t.findIndex((e=>e.startsWith("[!]")));if(n!==-1){const r=t.slice(n).join(a.default.EOL);e.message+=`\n\n${o.default.gray(r)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",e)}else{let t=e.stderr.trim();const n=e.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(n){if(e.message?.match(/pod exited with non-zero code: 1/)){e.message=""}t=null}e.message=[n,e.message,t].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",e)}},3018:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(4808);const o=r(n(2325));const i=n(7313);const a=n(9896);const c=n(6928);const l=r(n(6909));const u=n(7583);const f=n(8330);function info(e){if(!d.opts().quiet){console.log(e)}}async function runAsync(e){if(process.platform!=="darwin"){info(o.default.yellow("⚠️ CocoaPods is only supported on darwin machines"));process.exit(0)}const t=e&&!e.startsWith("--");const n=(0,c.resolve)(t?e:process.cwd());if(!(0,a.existsSync)(n)){info(o.default.red(`\n💥 Target directory does not exist: ${n}\n`));process.exit(1)}const r=s.CocoaPodsPackageManager.getPodProjectRoot(n);if(!r){const e=(0,c.join)(n,"package.json");if(!(0,a.existsSync)(e)){info(o.default.red(`\n💥 'package.json' file does not exist: ${e}\n`));process.exit(1)}const r=JSON.parse((0,a.readFileSync)(e).toString());const s=r.dependencies?.hasOwnProperty("expo");if(s){info(o.default.yellow(`⚠️ No 'ios' directory found, skipping installing pods.`,`\nPods will be automatically installed when the 'ios' directory is generated with 'npx expo prebuild' or 'npx expo run:ios'.`,(0,u.learnMore)("https://docs.expo.dev/workflow/prebuild/")));process.exit(0)}if(t){info(o.default.yellow(`⚠️ CocoaPods is not supported in project at ${n}`))}else{info(o.default.yellow("⚠️ CocoaPods is not supported in this project"))}process.exit(0)}info("🔍️ Scanning for pods...");if(!await s.CocoaPodsPackageManager.isCLIInstalledAsync()){await s.CocoaPodsPackageManager.installCLIAsync({nonInteractive:d.opts().nonInteractive})}const i=new s.CocoaPodsPackageManager({cwd:r});try{await i.installAsync()}catch(e){if(e.isPackageManagerError){console.error(o.default.red(e.message));process.exit(1)}throw e}}const d=new i.Command(f.name).version(f.version).arguments("[project-directory]").usage(`${o.default.green("[project-directory]")} [options]`).description("A fast, zero-dependency package for cutting down on common issues developers have when running pod install.").option("--quiet","only print errors").option("--non-interactive","disable interactive prompts").allowUnknownOption().parse(process.argv).action((async e=>{try{await runAsync(e);if(!d.opts().quiet){await(0,l.default)()}}catch(e){console.log("\nAborting run");if(e.command){console.log(` ${o.default.magenta(e.command)} has failed.`)}else{console.log(o.default.red`💥 An unexpected error was encountered. Report it on GitHub: https://github.com/expo/expo/issues`);console.log(e)}console.log();if(!d.opts().quiet){await(0,l.default)()}process.exit(1)}}));(async()=>{await d.parseAsync(process.argv)})()},6909:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t["default"]=shouldUpdate;const s=r(n(2325));const o=r(n(5012));async function shouldUpdate(){const e=n(8330);const t=(0,o.default)(e).catch((()=>null));try{const n=await t;if(n&&n.latest){console.log();console.log(s.default.yellow.bold(`A new version of \`${e.name}\` is available`));console.log("You can update by running: "+s.default.cyan(`npm i -g ${e.name}`));console.log()}}catch{}}},7583:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.learnMore=learnMore;const s=r(n(2325));const o=r(n(5743));function learnMore(e){return(0,o.default)(s.default.underline("Learn more."),e,{fallback:(e,t)=>`Learn more: ${s.default.underline(t)}`})}},181:e=>{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},1421:e=>{"use strict";e.exports=require("node:child_process")},8474:e=>{"use strict";e.exports=require("node:events")},3024:e=>{"use strict";e.exports=require("node:fs")},6760:e=>{"use strict";e.exports=require("node:path")},1708:e=>{"use strict";e.exports=require("node:process")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},7313:(e,t,n)=>{const{Argument:r}=n(854);const{Command:s}=n(9600);const{CommanderError:o,InvalidArgumentError:i}=n(9851);const{Help:a}=n(1518);const{Option:c}=n(7596);t.program=new s;t.createCommand=e=>new s(e);t.createOption=(e,t)=>new c(e,t);t.createArgument=(e,t)=>new r(e,t);t.Command=s;t.Option=c;t.Argument=r;t.Help=a;t.CommanderError=o;t.InvalidArgumentError=i;t.InvalidOptionArgumentError=i},854:(e,t,n)=>{const{InvalidArgumentError:r}=n(9851);class Argument{constructor(e,t){this.description=t||"";this.variadic=false;this.parseArg=undefined;this.defaultValue=undefined;this.defaultValueDescription=undefined;this.argChoices=undefined;switch(e[0]){case"<":this.required=true;this._name=e.slice(1,-1);break;case"[":this.required=false;this._name=e.slice(1,-1);break;default:this.required=true;this._name=e;break}if(this._name.length>3&&this._name.slice(-3)==="..."){this.variadic=true;this._name=this._name.slice(0,-3)}}name(){return this._name}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}argParser(e){this.parseArg=e;return this}choices(e){this.argChoices=e.slice();this.parseArg=(e,t)=>{if(!this.argChoices.includes(e)){throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(e,t)}return e};return this}argRequired(){this.required=true;return this}argOptional(){this.required=false;return this}}function humanReadableArgName(e){const t=e.name()+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}t.Argument=Argument;t.humanReadableArgName=humanReadableArgName},9600:(e,t,n)=>{const r=n(8474).EventEmitter;const s=n(1421);const o=n(6760);const i=n(3024);const a=n(1708);const{Argument:c,humanReadableArgName:l}=n(854);const{CommanderError:u}=n(9851);const{Help:f}=n(1518);const{Option:d,DualOptions:h}=n(7596);const{suggestSimilar:p}=n(9266);class Command extends r{constructor(e){super();this.commands=[];this.options=[];this.parent=null;this._allowUnknownOption=false;this._allowExcessArguments=true;this.registeredArguments=[];this._args=this.registeredArguments;this.args=[];this.rawArgs=[];this.processedArgs=[];this._scriptPath=null;this._name=e||"";this._optionValues={};this._optionValueSources={};this._storeOptionsAsProperties=false;this._actionHandler=null;this._executableHandler=false;this._executableFile=null;this._executableDir=null;this._defaultCommandName=null;this._exitCallback=null;this._aliases=[];this._combineFlagAndOptionalValue=true;this._description="";this._summary="";this._argsDescription=undefined;this._enablePositionalOptions=false;this._passThroughOptions=false;this._lifeCycleHooks={};this._showHelpAfterError=false;this._showSuggestionAfterError=true;this._outputConfiguration={writeOut:e=>a.stdout.write(e),writeErr:e=>a.stderr.write(e),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:undefined,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:undefined,outputError:(e,t)=>t(e)};this._hidden=false;this._helpOption=undefined;this._addImplicitHelpCommand=undefined;this._helpCommand=undefined;this._helpConfiguration={}}copyInheritedSettings(e){this._outputConfiguration=e._outputConfiguration;this._helpOption=e._helpOption;this._helpCommand=e._helpCommand;this._helpConfiguration=e._helpConfiguration;this._exitCallback=e._exitCallback;this._storeOptionsAsProperties=e._storeOptionsAsProperties;this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue;this._allowExcessArguments=e._allowExcessArguments;this._enablePositionalOptions=e._enablePositionalOptions;this._showHelpAfterError=e._showHelpAfterError;this._showSuggestionAfterError=e._showSuggestionAfterError;return this}_getCommandAndAncestors(){const e=[];for(let t=this;t;t=t.parent){e.push(t)}return e}command(e,t,n){let r=t;let s=n;if(typeof r==="object"&&r!==null){s=r;r=null}s=s||{};const[,o,i]=e.match(/([^ ]+) *(.*)/);const a=this.createCommand(o);if(r){a.description(r);a._executableHandler=true}if(s.isDefault)this._defaultCommandName=a._name;a._hidden=!!(s.noHelp||s.hidden);a._executableFile=s.executableFile||null;if(i)a.arguments(i);this._registerCommand(a);a.parent=this;a.copyInheritedSettings(this);if(r)return this;return a}createCommand(e){return new Command(e)}createHelp(){return Object.assign(new f,this.configureHelp())}configureHelp(e){if(e===undefined)return this._helpConfiguration;this._helpConfiguration=e;return this}configureOutput(e){if(e===undefined)return this._outputConfiguration;Object.assign(this._outputConfiguration,e);return this}showHelpAfterError(e=true){if(typeof e!=="string")e=!!e;this._showHelpAfterError=e;return this}showSuggestionAfterError(e=true){this._showSuggestionAfterError=!!e;return this}addCommand(e,t){if(!e._name){throw new Error(`Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()`)}t=t||{};if(t.isDefault)this._defaultCommandName=e._name;if(t.noHelp||t.hidden)e._hidden=true;this._registerCommand(e);e.parent=this;e._checkForBrokenPassThrough();return this}createArgument(e,t){return new c(e,t)}argument(e,t,n,r){const s=this.createArgument(e,t);if(typeof n==="function"){s.default(r).argParser(n)}else{s.default(n)}this.addArgument(s);return this}arguments(e){e.trim().split(/ +/).forEach((e=>{this.argument(e)}));return this}addArgument(e){const t=this.registeredArguments.slice(-1)[0];if(t&&t.variadic){throw new Error(`only the last argument can be variadic '${t.name()}'`)}if(e.required&&e.defaultValue!==undefined&&e.parseArg===undefined){throw new Error(`a default value for a required argument is never used: '${e.name()}'`)}this.registeredArguments.push(e);return this}helpCommand(e,t){if(typeof e==="boolean"){this._addImplicitHelpCommand=e;return this}e=e??"help [command]";const[,n,r]=e.match(/([^ ]+) *(.*)/);const s=t??"display help for command";const o=this.createCommand(n);o.helpOption(false);if(r)o.arguments(r);if(s)o.description(s);this._addImplicitHelpCommand=true;this._helpCommand=o;return this}addHelpCommand(e,t){if(typeof e!=="object"){this.helpCommand(e,t);return this}this._addImplicitHelpCommand=true;this._helpCommand=e;return this}_getHelpCommand(){const e=this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"));if(e){if(this._helpCommand===undefined){this.helpCommand(undefined,undefined)}return this._helpCommand}return null}hook(e,t){const n=["preSubcommand","preAction","postAction"];if(!n.includes(e)){throw new Error(`Unexpected value for event passed to hook : '${e}'.\nExpecting one of '${n.join("', '")}'`)}if(this._lifeCycleHooks[e]){this._lifeCycleHooks[e].push(t)}else{this._lifeCycleHooks[e]=[t]}return this}exitOverride(e){if(e){this._exitCallback=e}else{this._exitCallback=e=>{if(e.code!=="commander.executeSubCommandAsync"){throw e}else{}}}return this}_exit(e,t,n){if(this._exitCallback){this._exitCallback(new u(e,t,n))}a.exit(e)}action(e){const listener=t=>{const n=this.registeredArguments.length;const r=t.slice(0,n);if(this._storeOptionsAsProperties){r[n]=this}else{r[n]=this.opts()}r.push(this);return e.apply(this,r)};this._actionHandler=listener;return this}createOption(e,t){return new d(e,t)}_callParseArg(e,t,n,r){try{return e.parseArg(t,n)}catch(e){if(e.code==="commander.invalidArgument"){const t=`${r} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){const t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){const n=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${n}'\n- already used by option '${t.flags}'`)}this.options.push(e)}_registerCommand(e){const knownBy=e=>[e.name()].concat(e.aliases());const t=knownBy(e).find((e=>this._findCommand(e)));if(t){const n=knownBy(this._findCommand(t)).join("|");const r=knownBy(e).join("|");throw new Error(`cannot add command '${r}' as already have command '${n}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);const t=e.name();const n=e.attributeName();if(e.negate){const t=e.long.replace(/^--no-/,"--");if(!this._findOption(t)){this.setOptionValueWithSource(n,e.defaultValue===undefined?true:e.defaultValue,"default")}}else if(e.defaultValue!==undefined){this.setOptionValueWithSource(n,e.defaultValue,"default")}const handleOptionValue=(t,r,s)=>{if(t==null&&e.presetArg!==undefined){t=e.presetArg}const o=this.getOptionValue(n);if(t!==null&&e.parseArg){t=this._callParseArg(e,t,o,r)}else if(t!==null&&e.variadic){t=e._concatValue(t,o)}if(t==null){if(e.negate){t=false}else if(e.isBoolean()||e.optional){t=true}else{t=""}}this.setOptionValueWithSource(n,t,s)};this.on("option:"+t,(t=>{const n=`error: option '${e.flags}' argument '${t}' is invalid.`;handleOptionValue(t,n,"cli")}));if(e.envVar){this.on("optionEnv:"+t,(t=>{const n=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;handleOptionValue(t,n,"env")}))}return this}_optionEx(e,t,n,r,s){if(typeof t==="object"&&t instanceof d){throw new Error("To add an Option object use addOption() instead of option() or requiredOption()")}const o=this.createOption(t,n);o.makeOptionMandatory(!!e.mandatory);if(typeof r==="function"){o.default(s).argParser(r)}else if(r instanceof RegExp){const e=r;r=(t,n)=>{const r=e.exec(t);return r?r[0]:n};o.default(s).argParser(r)}else{o.default(r)}return this.addOption(o)}option(e,t,n,r){return this._optionEx({},e,t,n,r)}requiredOption(e,t,n,r){return this._optionEx({mandatory:true},e,t,n,r)}combineFlagAndOptionalValue(e=true){this._combineFlagAndOptionalValue=!!e;return this}allowUnknownOption(e=true){this._allowUnknownOption=!!e;return this}allowExcessArguments(e=true){this._allowExcessArguments=!!e;return this}enablePositionalOptions(e=true){this._enablePositionalOptions=!!e;return this}passThroughOptions(e=true){this._passThroughOptions=!!e;this._checkForBrokenPassThrough();return this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions){throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}}storeOptionsAsProperties(e=true){if(this.options.length){throw new Error("call .storeOptionsAsProperties() before adding options")}if(Object.keys(this._optionValues).length){throw new Error("call .storeOptionsAsProperties() before setting option values")}this._storeOptionsAsProperties=!!e;return this}getOptionValue(e){if(this._storeOptionsAsProperties){return this[e]}return this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,undefined)}setOptionValueWithSource(e,t,n){if(this._storeOptionsAsProperties){this[e]=t}else{this._optionValues[e]=t}this._optionValueSources[e]=n;return this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;this._getCommandAndAncestors().forEach((n=>{if(n.getOptionValueSource(e)!==undefined){t=n.getOptionValueSource(e)}}));return t}_prepareUserArgs(e,t){if(e!==undefined&&!Array.isArray(e)){throw new Error("first parameter to parse must be array or undefined")}t=t||{};if(e===undefined&&t.from===undefined){if(a.versions?.electron){t.from="electron"}const e=a.execArgv??[];if(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print")){t.from="eval"}}if(e===undefined){e=a.argv}this.rawArgs=e.slice();let n;switch(t.from){case undefined:case"node":this._scriptPath=e[1];n=e.slice(2);break;case"electron":if(a.defaultApp){this._scriptPath=e[1];n=e.slice(2)}else{n=e.slice(1)}break;case"user":n=e.slice(0);break;case"eval":n=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);this._name=this._name||"program";return n}parse(e,t){const n=this._prepareUserArgs(e,t);this._parseCommand([],n);return this}async parseAsync(e,t){const n=this._prepareUserArgs(e,t);await this._parseCommand([],n);return this}_executeSubCommand(e,t){t=t.slice();let n=false;const r=[".js",".ts",".tsx",".mjs",".cjs"];function findFile(e,t){const n=o.resolve(e,t);if(i.existsSync(n))return n;if(r.includes(o.extname(t)))return undefined;const s=r.find((e=>i.existsSync(`${n}${e}`)));if(s)return`${n}${s}`;return undefined}this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();let c=e._executableFile||`${this._name}-${e._name}`;let l=this._executableDir||"";if(this._scriptPath){let e;try{e=i.realpathSync(this._scriptPath)}catch(t){e=this._scriptPath}l=o.resolve(o.dirname(e),l)}if(l){let t=findFile(l,c);if(!t&&!e._executableFile&&this._scriptPath){const n=o.basename(this._scriptPath,o.extname(this._scriptPath));if(n!==this._name){t=findFile(l,`${n}-${e._name}`)}}c=t||c}n=r.includes(o.extname(c));let f;if(a.platform!=="win32"){if(n){t.unshift(c);t=incrementNodeInspectorPort(a.execArgv).concat(t);f=s.spawn(a.argv[0],t,{stdio:"inherit"})}else{f=s.spawn(c,t,{stdio:"inherit"})}}else{t.unshift(c);t=incrementNodeInspectorPort(a.execArgv).concat(t);f=s.spawn(a.execPath,t,{stdio:"inherit"})}if(!f.killed){const e=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];e.forEach((e=>{a.on(e,(()=>{if(f.killed===false&&f.exitCode===null){f.kill(e)}}))}))}const d=this._exitCallback;f.on("close",(e=>{e=e??1;if(!d){a.exit(e)}else{d(new u(e,"commander.executeSubCommandAsync","(close)"))}}));f.on("error",(t=>{if(t.code==="ENOENT"){const t=l?`searched for local subcommand relative to directory '${l}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory";const n=`'${c}' does not exist\n - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${t}`;throw new Error(n)}else if(t.code==="EACCES"){throw new Error(`'${c}' not executable`)}if(!d){a.exit(1)}else{const e=new u(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t;d(e)}}));this.runningCommand=f}_dispatchSubcommand(e,t,n){const r=this._findCommand(e);if(!r)this.help({error:true});let s;s=this._chainOrCallSubCommandHook(s,r,"preSubcommand");s=this._chainOrCall(s,(()=>{if(r._executableHandler){this._executeSubCommand(r,t.concat(n))}else{return r._parseCommand(t,n)}}));return s}_dispatchHelpCommand(e){if(!e){this.help()}const t=this._findCommand(e);if(t&&!t._executableHandler){t.help()}return this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach(((e,t)=>{if(e.required&&this.args[t]==null){this.missingArgument(e.name())}}));if(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic){return}if(this.args.length>this.registeredArguments.length){this._excessArguments(this.args)}}_processArguments(){const myParseArg=(e,t,n)=>{let r=t;if(t!==null&&e.parseArg){const s=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;r=this._callParseArg(e,t,n,s)}return r};this._checkNumberOfArguments();const e=[];this.registeredArguments.forEach(((t,n)=>{let r=t.defaultValue;if(t.variadic){if(n<this.args.length){r=this.args.slice(n);if(t.parseArg){r=r.reduce(((e,n)=>myParseArg(t,n,e)),t.defaultValue)}}else if(r===undefined){r=[]}}else if(n<this.args.length){r=this.args[n];if(t.parseArg){r=myParseArg(t,r,t.defaultValue)}}e[n]=r}));this.processedArgs=e}_chainOrCall(e,t){if(e&&e.then&&typeof e.then==="function"){return e.then((()=>t()))}return t()}_chainOrCallHooks(e,t){let n=e;const r=[];this._getCommandAndAncestors().reverse().filter((e=>e._lifeCycleHooks[t]!==undefined)).forEach((e=>{e._lifeCycleHooks[t].forEach((t=>{r.push({hookedCommand:e,callback:t})}))}));if(t==="postAction"){r.reverse()}r.forEach((e=>{n=this._chainOrCall(n,(()=>e.callback(e.hookedCommand,this)))}));return n}_chainOrCallSubCommandHook(e,t,n){let r=e;if(this._lifeCycleHooks[n]!==undefined){this._lifeCycleHooks[n].forEach((e=>{r=this._chainOrCall(r,(()=>e(this,t)))}))}return r}_parseCommand(e,t){const n=this.parseOptions(t);this._parseOptionsEnv();this._parseOptionsImplied();e=e.concat(n.operands);t=n.unknown;this.args=e.concat(t);if(e&&this._findCommand(e[0])){return this._dispatchSubcommand(e[0],e.slice(1),t)}if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name()){return this._dispatchHelpCommand(e[1])}if(this._defaultCommandName){this._outputHelpIfRequested(t);return this._dispatchSubcommand(this._defaultCommandName,e,t)}if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName){this.help({error:true})}this._outputHelpIfRequested(n.unknown);this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();const checkForUnknownOptions=()=>{if(n.unknown.length>0){this.unknownOption(n.unknown[0])}};const r=`command:${this.name()}`;if(this._actionHandler){checkForUnknownOptions();this._processArguments();let n;n=this._chainOrCallHooks(n,"preAction");n=this._chainOrCall(n,(()=>this._actionHandler(this.processedArgs)));if(this.parent){n=this._chainOrCall(n,(()=>{this.parent.emit(r,e,t)}))}n=this._chainOrCallHooks(n,"postAction");return n}if(this.parent&&this.parent.listenerCount(r)){checkForUnknownOptions();this._processArguments();this.parent.emit(r,e,t)}else if(e.length){if(this._findCommand("*")){return this._dispatchSubcommand("*",e,t)}if(this.listenerCount("command:*")){this.emit("command:*",e,t)}else if(this.commands.length){this.unknownCommand()}else{checkForUnknownOptions();this._processArguments()}}else if(this.commands.length){checkForUnknownOptions();this.help({error:true})}else{checkForUnknownOptions();this._processArguments()}}_findCommand(e){if(!e)return undefined;return this.commands.find((t=>t._name===e||t._aliases.includes(e)))}_findOption(e){return this.options.find((t=>t.is(e)))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((e=>{e.options.forEach((t=>{if(t.mandatory&&e.getOptionValue(t.attributeName())===undefined){e.missingMandatoryOptionValue(t)}}))}))}_checkForConflictingLocalOptions(){const e=this.options.filter((e=>{const t=e.attributeName();if(this.getOptionValue(t)===undefined){return false}return this.getOptionValueSource(t)!=="default"}));const t=e.filter((e=>e.conflictsWith.length>0));t.forEach((t=>{const n=e.find((e=>t.conflictsWith.includes(e.attributeName())));if(n){this._conflictingOption(t,n)}}))}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((e=>{e._checkForConflictingLocalOptions()}))}parseOptions(e){const t=[];const n=[];let r=t;const s=e.slice();function maybeOption(e){return e.length>1&&e[0]==="-"}let o=null;while(s.length){const e=s.shift();if(e==="--"){if(r===n)r.push(e);r.push(...s);break}if(o&&!maybeOption(e)){this.emit(`option:${o.name()}`,e);continue}o=null;if(maybeOption(e)){const t=this._findOption(e);if(t){if(t.required){const e=s.shift();if(e===undefined)this.optionMissingArgument(t);this.emit(`option:${t.name()}`,e)}else if(t.optional){let e=null;if(s.length>0&&!maybeOption(s[0])){e=s.shift()}this.emit(`option:${t.name()}`,e)}else{this.emit(`option:${t.name()}`)}o=t.variadic?t:null;continue}}if(e.length>2&&e[0]==="-"&&e[1]!=="-"){const t=this._findOption(`-${e[1]}`);if(t){if(t.required||t.optional&&this._combineFlagAndOptionalValue){this.emit(`option:${t.name()}`,e.slice(2))}else{this.emit(`option:${t.name()}`);s.unshift(`-${e.slice(2)}`)}continue}}if(/^--[^=]+=/.test(e)){const t=e.indexOf("=");const n=this._findOption(e.slice(0,t));if(n&&(n.required||n.optional)){this.emit(`option:${n.name()}`,e.slice(t+1));continue}}if(maybeOption(e)){r=n}if((this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&n.length===0){if(this._findCommand(e)){t.push(e);if(s.length>0)n.push(...s);break}else if(this._getHelpCommand()&&e===this._getHelpCommand().name()){t.push(e);if(s.length>0)t.push(...s);break}else if(this._defaultCommandName){n.push(e);if(s.length>0)n.push(...s);break}}if(this._passThroughOptions){r.push(e);if(s.length>0)r.push(...s);break}r.push(e)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){const e={};const t=this.options.length;for(let n=0;n<t;n++){const t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce(((e,t)=>Object.assign(e,t.opts())),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr);if(typeof this._showHelpAfterError==="string"){this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`)}else if(this._showHelpAfterError){this._outputConfiguration.writeErr("\n");this.outputHelp({error:true})}const n=t||{};const r=n.exitCode||1;const s=n.code||"commander.error";this._exit(r,s,e)}_parseOptionsEnv(){this.options.forEach((e=>{if(e.envVar&&e.envVar in a.env){const t=e.attributeName();if(this.getOptionValue(t)===undefined||["default","config","env"].includes(this.getOptionValueSource(t))){if(e.required||e.optional){this.emit(`optionEnv:${e.name()}`,a.env[e.envVar])}else{this.emit(`optionEnv:${e.name()}`)}}}}))}_parseOptionsImplied(){const e=new h(this.options);const hasCustomOptionValue=e=>this.getOptionValue(e)!==undefined&&!["default","implied"].includes(this.getOptionValueSource(e));this.options.filter((t=>t.implied!==undefined&&hasCustomOptionValue(t.attributeName())&&e.valueFromOption(this.getOptionValue(t.attributeName()),t))).forEach((e=>{Object.keys(e.implied).filter((e=>!hasCustomOptionValue(e))).forEach((t=>{this.setOptionValueWithSource(t,e.implied[t],"implied")}))}))}missingArgument(e){const t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){const t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){const t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){const findBestOptionFromValue=e=>{const t=e.attributeName();const n=this.getOptionValue(t);const r=this.options.find((e=>e.negate&&t===e.attributeName()));const s=this.options.find((e=>!e.negate&&t===e.attributeName()));if(r&&(r.presetArg===undefined&&n===false||r.presetArg!==undefined&&n===r.presetArg)){return r}return s||e};const getErrorMessage=e=>{const t=findBestOptionFromValue(e);const n=t.attributeName();const r=this.getOptionValueSource(n);if(r==="env"){return`environment variable '${t.envVar}'`}return`option '${t.flags}'`};const n=`error: ${getErrorMessage(e)} cannot be used with ${getErrorMessage(t)}`;this.error(n,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[];let r=this;do{const e=r.createHelp().visibleOptions(r).filter((e=>e.long)).map((e=>e.long));n=n.concat(e);r=r.parent}while(r&&!r._enablePositionalOptions);t=p(e,n)}const n=`error: unknown option '${e}'${t}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;const t=this.registeredArguments.length;const n=t===1?"":"s";const r=this.parent?` for '${this.name()}'`:"";const s=`error: too many arguments${r}. Expected ${t} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){const e=this.args[0];let t="";if(this._showSuggestionAfterError){const n=[];this.createHelp().visibleCommands(this).forEach((e=>{n.push(e.name());if(e.alias())n.push(e.alias())}));t=p(e,n)}const n=`error: unknown command '${e}'${t}`;this.error(n,{code:"commander.unknownCommand"})}version(e,t,n){if(e===undefined)return this._version;this._version=e;t=t||"-V, --version";n=n||"output the version number";const r=this.createOption(t,n);this._versionOptionName=r.attributeName();this._registerOption(r);this.on("option:"+r.name(),(()=>{this._outputConfiguration.writeOut(`${e}\n`);this._exit(0,"commander.version",e)}));return this}description(e,t){if(e===undefined&&t===undefined)return this._description;this._description=e;if(t){this._argsDescription=t}return this}summary(e){if(e===undefined)return this._summary;this._summary=e;return this}alias(e){if(e===undefined)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler){t=this.commands[this.commands.length-1]}if(e===t._name)throw new Error("Command alias can't be the same as its name");const n=this.parent?._findCommand(e);if(n){const t=[n.name()].concat(n.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}t._aliases.push(e);return this}aliases(e){if(e===undefined)return this._aliases;e.forEach((e=>this.alias(e)));return this}usage(e){if(e===undefined){if(this._usage)return this._usage;const e=this.registeredArguments.map((e=>l(e)));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?e:[]).join(" ")}this._usage=e;return this}name(e){if(e===undefined)return this._name;this._name=e;return this}nameFromFilename(e){this._name=o.basename(e,o.extname(e));return this}executableDir(e){if(e===undefined)return this._executableDir;this._executableDir=e;return this}helpInformation(e){const t=this.createHelp();if(t.helpWidth===undefined){t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()}return t.formatHelp(this,t)}_getHelpContext(e){e=e||{};const t={error:!!e.error};let n;if(t.error){n=e=>this._outputConfiguration.writeErr(e)}else{n=e=>this._outputConfiguration.writeOut(e)}t.write=e.write||n;t.command=this;return t}outputHelp(e){let t;if(typeof e==="function"){t=e;e=undefined}const n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach((e=>e.emit("beforeAllHelp",n)));this.emit("beforeHelp",n);let r=this.helpInformation(n);if(t){r=t(r);if(typeof r!=="string"&&!Buffer.isBuffer(r)){throw new Error("outputHelp callback must return a string or a Buffer")}}n.write(r);if(this._getHelpOption()?.long){this.emit(this._getHelpOption().long)}this.emit("afterHelp",n);this._getCommandAndAncestors().forEach((e=>e.emit("afterAllHelp",n)))}helpOption(e,t){if(typeof e==="boolean"){if(e){this._helpOption=this._helpOption??undefined}else{this._helpOption=null}return this}e=e??"-h, --help";t=t??"display help for command";this._helpOption=this.createOption(e,t);return this}_getHelpOption(){if(this._helpOption===undefined){this.helpOption(undefined,undefined)}return this._helpOption}addHelpOption(e){this._helpOption=e;return this}help(e){this.outputHelp(e);let t=a.exitCode||0;if(t===0&&e&&typeof e!=="function"&&e.error){t=1}this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){const n=["beforeAll","before","after","afterAll"];if(!n.includes(e)){throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${n.join("', '")}'`)}const r=`${e}Help`;this.on(r,(e=>{let n;if(typeof t==="function"){n=t({error:e.error,command:e.command})}else{n=t}if(n){e.write(`${n}\n`)}}));return this}_outputHelpIfRequested(e){const t=this._getHelpOption();const n=t&&e.find((e=>t.is(e)));if(n){this.outputHelp();this._exit(0,"commander.helpDisplayed","(outputHelp)")}}}function incrementNodeInspectorPort(e){return e.map((e=>{if(!e.startsWith("--inspect")){return e}let t;let n="127.0.0.1";let r="9229";let s;if((s=e.match(/^(--inspect(-brk)?)$/))!==null){t=s[1]}else if((s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null){t=s[1];if(/^\d+$/.test(s[3])){r=s[3]}else{n=s[3]}}else if((s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null){t=s[1];n=s[3];r=s[4]}if(t&&r!=="0"){return`${t}=${n}:${parseInt(r)+1}`}return e}))}t.Command=Command},9851:(e,t)=>{class CommanderError extends Error{constructor(e,t,n){super(n);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=t;this.exitCode=e;this.nestedError=undefined}}class InvalidArgumentError extends CommanderError{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name}}t.CommanderError=CommanderError;t.InvalidArgumentError=InvalidArgumentError},1518:(e,t,n)=>{const{humanReadableArgName:r}=n(854);class Help{constructor(){this.helpWidth=undefined;this.sortSubcommands=false;this.sortOptions=false;this.showGlobalOptions=false}visibleCommands(e){const t=e.commands.filter((e=>!e._hidden));const n=e._getHelpCommand();if(n&&!n._hidden){t.push(n)}if(this.sortSubcommands){t.sort(((e,t)=>e.name().localeCompare(t.name())))}return t}compareOptions(e,t){const getSortKey=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return getSortKey(e).localeCompare(getSortKey(t))}visibleOptions(e){const t=e.options.filter((e=>!e.hidden));const n=e._getHelpOption();if(n&&!n.hidden){const r=n.short&&e._findOption(n.short);const s=n.long&&e._findOption(n.long);if(!r&&!s){t.push(n)}else if(n.long&&!s){t.push(e.createOption(n.long,n.description))}else if(n.short&&!r){t.push(e.createOption(n.short,n.description))}}if(this.sortOptions){t.sort(this.compareOptions)}return t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];const t=[];for(let n=e.parent;n;n=n.parent){const e=n.options.filter((e=>!e.hidden));t.push(...e)}if(this.sortOptions){t.sort(this.compareOptions)}return t}visibleArguments(e){if(e._argsDescription){e.registeredArguments.forEach((t=>{t.description=t.description||e._argsDescription[t.name()]||""}))}if(e.registeredArguments.find((e=>e.description))){return e.registeredArguments}return[]}subcommandTerm(e){const t=e.registeredArguments.map((e=>r(e))).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce(((e,n)=>Math.max(e,t.subcommandTerm(n).length)),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce(((e,n)=>Math.max(e,t.optionTerm(n).length)),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce(((e,n)=>Math.max(e,t.optionTerm(n).length)),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce(((e,n)=>Math.max(e,t.argumentTerm(n).length)),0)}commandUsage(e){let t=e._name;if(e._aliases[0]){t=t+"|"+e._aliases[0]}let n="";for(let t=e.parent;t;t=t.parent){n=t.name()+" "+n}return n+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){const t=[];if(e.argChoices){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined){const n=e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==="boolean";if(n){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}}if(e.presetArg!==undefined&&e.optional){t.push(`preset: ${JSON.stringify(e.presetArg)}`)}if(e.envVar!==undefined){t.push(`env: ${e.envVar}`)}if(t.length>0){return`${e.description} (${t.join(", ")})`}return e.description}argumentDescription(e){const t=[];if(e.argChoices){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}if(t.length>0){const n=`(${t.join(", ")})`;if(e.description){return`${e.description} ${n}`}return n}return e.description}formatHelp(e,t){const n=t.padWidth(e,t);const r=t.helpWidth||80;const s=2;const o=2;function formatItem(e,i){if(i){const a=`${e.padEnd(n+o)}${i}`;return t.wrap(a,r-s,n+o)}return e}function formatList(e){return e.join("\n").replace(/^/gm," ".repeat(s))}let i=[`Usage: ${t.commandUsage(e)}`,""];const a=t.commandDescription(e);if(a.length>0){i=i.concat([t.wrap(a,r,0),""])}const c=t.visibleArguments(e).map((e=>formatItem(t.argumentTerm(e),t.argumentDescription(e))));if(c.length>0){i=i.concat(["Arguments:",formatList(c),""])}const l=t.visibleOptions(e).map((e=>formatItem(t.optionTerm(e),t.optionDescription(e))));if(l.length>0){i=i.concat(["Options:",formatList(l),""])}if(this.showGlobalOptions){const n=t.visibleGlobalOptions(e).map((e=>formatItem(t.optionTerm(e),t.optionDescription(e))));if(n.length>0){i=i.concat(["Global Options:",formatList(n),""])}}const u=t.visibleCommands(e).map((e=>formatItem(t.subcommandTerm(e),t.subcommandDescription(e))));if(u.length>0){i=i.concat(["Commands:",formatList(u),""])}return i.join("\n")}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,n,r=40){const s=" \\f\\t\\v   -    \ufeff";const o=new RegExp(`[\\n][${s}]+`);if(e.match(o))return e;const i=t-n;if(i<r)return e;const a=e.slice(0,n);const c=e.slice(n).replace("\r\n","\n");const l=" ".repeat(n);const u="​";const f=`\\s${u}`;const d=new RegExp(`\n|.{1,${i-1}}([${f}]|$)|[^${f}]+?([${f}]|$)`,"g");const h=c.match(d)||[];return a+h.map(((e,t)=>{if(e==="\n")return"";return(t>0?l:"")+e.trimEnd()})).join("\n")}}t.Help=Help},7596:(e,t,n)=>{const{InvalidArgumentError:r}=n(9851);class Option{constructor(e,t){this.flags=e;this.description=t||"";this.required=e.includes("<");this.optional=e.includes("[");this.variadic=/\w\.\.\.[>\]]$/.test(e);this.mandatory=false;const n=splitOptionFlags(e);this.short=n.shortFlag;this.long=n.longFlag;this.negate=false;if(this.long){this.negate=this.long.startsWith("--no-")}this.defaultValue=undefined;this.defaultValueDescription=undefined;this.presetArg=undefined;this.envVar=undefined;this.parseArg=undefined;this.hidden=false;this.argChoices=undefined;this.conflictsWith=[];this.implied=undefined}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}preset(e){this.presetArg=e;return this}conflicts(e){this.conflictsWith=this.conflictsWith.concat(e);return this}implies(e){let t=e;if(typeof e==="string"){t={[e]:true}}this.implied=Object.assign(this.implied||{},t);return this}env(e){this.envVar=e;return this}argParser(e){this.parseArg=e;return this}makeOptionMandatory(e=true){this.mandatory=!!e;return this}hideHelp(e=true){this.hidden=!!e;return this}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}choices(e){this.argChoices=e.slice();this.parseArg=(e,t)=>{if(!this.argChoices.includes(e)){throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(e,t)}return e};return this}name(){if(this.long){return this.long.replace(/^--/,"")}return this.short.replace(/^-/,"")}attributeName(){return camelcase(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class DualOptions{constructor(e){this.positiveOptions=new Map;this.negativeOptions=new Map;this.dualOptions=new Set;e.forEach((e=>{if(e.negate){this.negativeOptions.set(e.attributeName(),e)}else{this.positiveOptions.set(e.attributeName(),e)}}));this.negativeOptions.forEach(((e,t)=>{if(this.positiveOptions.has(t)){this.dualOptions.add(t)}}))}valueFromOption(e,t){const n=t.attributeName();if(!this.dualOptions.has(n))return true;const r=this.negativeOptions.get(n).presetArg;const s=r!==undefined?r:false;return t.negate===(s===e)}}function camelcase(e){return e.split("-").reduce(((e,t)=>e+t[0].toUpperCase()+t.slice(1)))}function splitOptionFlags(e){let t;let n;const r=e.split(/[ |,]+/);if(r.length>1&&!/^[[<]/.test(r[1]))t=r.shift();n=r.shift();if(!t&&/^-[^-]$/.test(n)){t=n;n=undefined}return{shortFlag:t,longFlag:n}}t.Option=Option;t.DualOptions=DualOptions},9266:(e,t)=>{const n=3;function editDistance(e,t){if(Math.abs(e.length-t.length)>n)return Math.max(e.length,t.length);const r=[];for(let t=0;t<=e.length;t++){r[t]=[t]}for(let e=0;e<=t.length;e++){r[0][e]=e}for(let n=1;n<=t.length;n++){for(let s=1;s<=e.length;s++){let o=1;if(e[s-1]===t[n-1]){o=0}else{o=1}r[s][n]=Math.min(r[s-1][n]+1,r[s][n-1]+1,r[s-1][n-1]+o);if(s>1&&n>1&&e[s-1]===t[n-2]&&e[s-2]===t[n-1]){r[s][n]=Math.min(r[s][n],r[s-2][n-2]+1)}}}return r[e.length][t.length]}function suggestSimilar(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));const r=e.startsWith("--");if(r){e=e.slice(2);t=t.map((e=>e.slice(2)))}let s=[];let o=n;const i=.4;t.forEach((t=>{if(t.length<=1)return;const n=editDistance(e,t);const r=Math.max(e.length,t.length);const a=(r-n)/r;if(a>i){if(n<o){o=n;s=[t]}else if(n===o){s.push(t)}}}));s.sort(((e,t)=>e.localeCompare(t)));if(r){s=s.map((e=>`--${e}`))}if(s.length>1){return`\n(Did you mean one of ${s.join(", ")}?)`}if(s.length===1){return`\n(Did you mean ${s[0]}?)`}return""}t.suggestSimilar=suggestSimilar},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"pod-install","version":"1.0.18","description":"A fast, zero-dependency package for cutting down on common issues developers have when running pod install.","main":"./build/index.js","scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","clean":"expo-module clean","lint":"expo-module lint","prepare":"expo-module clean && yarn run build:prod","prepublishOnly":"expo-module prepublishOnly","typecheck":"expo-module typecheck","watch":"yarn run build --watch"},"bin":"./build/index.js","files":["build"],"repository":{"type":"git","url":"https://github.com/expo/expo.git"},"keywords":["cocoapods","pod-install","npx","ios"],"author":"Expo <support@expo.dev>","license":"MIT","homepage":"https://github.com/expo/expo/tree/main/packages/pod-install","bugs":{"url":"https://github.com/expo/expo/issues"},"devDependencies":{"@expo/package-manager":"^1.10.5","chalk":"^4.0.0","commander":"^12.1.0","expo-module-scripts":"^55.0.2","terminal-link":"^2.1.1","update-check":"^1.5.4"},"gitHead":"0675db12d13a5309e3109e8ecf7f6011522194c6"}')}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var s=t[n]={id:n,loaded:false,exports:{}};var o=true;try{e[n].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete t[n]}s.loaded=true;return s.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(3018);module.exports=n})();
51
+ var r=n(181);var i=r.Buffer;function copyProps(e,t){for(var n in e){t[n]=e[n]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=r}else{copyProps(r,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,n){return i(e,t,n)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,n){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,n)};SafeBuffer.alloc=function(e,t,n){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var r=i(e);if(t!==undefined){if(typeof n==="string"){r.fill(t,n)}else{r.fill(t)}}else{r.fill(0)}return r};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return r.SlowBuffer(e)}},4881:(e,t,n)=>{"use strict";const r=n(1940);e.exports=(e="")=>{const t=e.match(r);if(!t){return null}const[n,i]=t[0].replace(/#! ?/,"").split(" ");const o=n.split("/").pop();if(o==="env"){return i}return i?`${o} ${i}`:o}},1940:e=>{"use strict";e.exports=/^#!(.*)/},3444:e=>{"use strict";var t=1;var n=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(e,t,n){return e.slice(t,n).replace(/\S/g," ")}e.exports=function(e,r){r=r||{};var i;var o;var s=false;var a=false;var l=0;var c="";var u=r.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var f=0;f<e.length;f++){i=e[f];o=e[f+1];if(!a&&i==='"'){var p=e[f-1]==="\\"&&e[f-2]!=="\\";if(!p){s=!s}}if(s){continue}if(!a&&i+o==="//"){c+=e.slice(l,f);l=f;a=t;f++}else if(a===t&&i+o==="\r\n"){f++;a=false;c+=u(e,l,f);l=f;continue}else if(a===t&&i==="\n"){a=false;c+=u(e,l,f);l=f}else if(!a&&i+o==="/*"){c+=e.slice(l,f);l=f;a=n;f++;continue}else if(a===n&&i+o==="*/"){f++;a=false;c+=u(e,l,f+1);l=f+1;continue}}return c+(a?u(e.substr(l)):e.substr(l))}},6480:(e,t,n)=>{"use strict";const r=n(857);const i=n(2018);const o=n(4167);const{env:s}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR==="true"){a=1}else if(s.FORCE_COLOR==="false"){a=0}else{a=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(s.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||s.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},6678:(e,t,n)=>{"use strict";const r=n(6480);const i=n(4167);function parseVersion(e){if(/^\d{3,4}$/.test(e)){const t=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}const t=(e||"").split(".").map((e=>parseInt(e,10)));return{major:t[0],minor:t[1],patch:t[2]}}function supportsHyperlink(e){const{env:t}=process;if("FORCE_HYPERLINK"in t){return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0)}if(i("no-hyperlink")||i("no-hyperlinks")||i("hyperlink=false")||i("hyperlink=never")){return false}if(i("hyperlink=true")||i("hyperlink=always")){return true}if("NETLIFY"in t){return true}if(!r.supportsColor(e)){return false}if(e&&!e.isTTY){return false}if(process.platform==="win32"){return false}if("CI"in t){return false}if("TEAMCITY_VERSION"in t){return false}if("TERM_PROGRAM"in t){const e=parseVersion(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":if(e.major===3){return e.minor>=1}return e.major>3;case"WezTerm":return e.major>=20200620;case"vscode":return e.major>1||e.major===1&&e.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0"){return false}const e=parseVersion(t.VTE_VERSION);return e.major>0||e.minor>=50}return false}e.exports={supportsHyperlink:supportsHyperlink,stdout:supportsHyperlink(process.stdout),stderr:supportsHyperlink(process.stderr)}},5787:(e,t,n)=>{"use strict";const r=n(2604);const i=n(6678);const terminalLink=(e,t,{target:n="stdout",...o}={})=>{if(!i[n]){if(o.fallback===false){return e}return typeof o.fallback==="function"?o.fallback(e,t):`${e} (​${t}​)`}return r.link(e,t)};e.exports=(e,t,n={})=>terminalLink(e,t,n);e.exports.stderr=(e,t,n={})=>terminalLink(e,t,{target:"stderr",...n});e.exports.isSupported=i.stdout;e.exports.stderr.isSupported=i.stderr},5059:(e,t,n)=>{const{URL:r}=n(7016);const{join:i}=n(6928);const o=n(9896);const{promisify:s}=n(9023);const{tmpdir:a}=n(857);const l=n(3805);const c=s(o.writeFile);const u=s(o.mkdir);const f=s(o.readFile);const compareVersions=(e,t)=>e.localeCompare(t,"en-US",{numeric:true});const encode=e=>encodeURIComponent(e).replace(/^%40/,"@");const getFile=async(e,t)=>{const n=a();const r=i(n,"update-check");if(!o.existsSync(r)){await u(r)}let s=`${e.name}-${t}.json`;if(e.scope){s=`${e.scope}-${s}`}return i(r,s)};const evaluateCache=async(e,t,n)=>{if(o.existsSync(e)){const r=await f(e,"utf8");const{lastUpdate:i,latest:o}=JSON.parse(r);const s=i+n;if(s>t){return{shouldCheck:false,latest:o}}}return{shouldCheck:true,latest:null}};const updateCache=async(e,t,n)=>{const r=JSON.stringify({latest:t,lastUpdate:n});await c(e,r,"utf8")};const loadPackage=(e,t)=>new Promise(((r,i)=>{const o={host:e.hostname,path:e.pathname,port:e.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(t){o.headers.authorization=`${t.type} ${t.token}`}const{get:s}=n(e.protocol==="https:"?5692:8611);s(o,(e=>{const{statusCode:t}=e;if(t!==200){const n=new Error(`Request failed with code ${t}`);n.code=t;i(n);e.resume();return}let n="";e.setEncoding("utf8");e.on("data",(e=>{n+=e}));e.on("end",(()=>{try{const e=JSON.parse(n);r(e)}catch(e){i(e)}}))})).on("error",i).on("timeout",i)}));const getMostRecent=async({full:e,scope:t},i)=>{const o=l(t);const s=new r(e,o);let a=null;try{a=await loadPackage(s)}catch(e){if(e.code&&String(e.code).startsWith(4)){const e=n(4133);const t=e(o,{recursive:true});a=await loadPackage(s,t)}else{throw e}}const c=a["dist-tags"][i];if(!c){throw new Error(`Distribution tag ${i} is not available`)}return c};const p={interval:36e5,distTag:"latest"};const getDetails=e=>{const t={full:encode(e)};if(e.includes("/")){const n=e.split("/");t.scope=n[0];t.name=n[1]}else{t.scope=null;t.name=e}return t};e.exports=async(e,t)=>{if(typeof e!=="object"){throw new Error("The first parameter should be your package.json file content")}const n=getDetails(e.name);const r=Date.now();const{distTag:i,interval:o}=Object.assign({},p,t);const s=await getFile(n,i);let a=null;let l=true;({shouldCheck:l,latest:a}=await evaluateCache(s,r,o));if(l){a=await getMostRecent(n,i);await updateCache(s,a,r)}const c=compareVersions(e.version,a);if(c===-1){return{latest:a,fromCache:!l}}return null}},1192:(e,t,n)=>{const r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const i=n(6928);const o=r?";":":";const s=n(7105);const getNotFoundError=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"});const getPathInfo=(e,t)=>{const n=t.colon||o;const i=e.match(/\//)||r&&e.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)];const s=r?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const a=r?s.split(n):[""];if(r){if(e.indexOf(".")!==-1&&a[0]!=="")a.unshift("")}return{pathEnv:i,pathExt:a,pathExtExe:s}};const which=(e,t,n)=>{if(typeof t==="function"){n=t;t={}}if(!t)t={};const{pathEnv:r,pathExt:o,pathExtExe:a}=getPathInfo(e,t);const l=[];const step=n=>new Promise(((o,s)=>{if(n===r.length)return t.all&&l.length?o(l):s(getNotFoundError(e));const a=r[n];const c=/^".*"$/.test(a)?a.slice(1,-1):a;const u=i.join(c,e);const f=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(subStep(f,n,0))}));const subStep=(e,n,r)=>new Promise(((i,c)=>{if(r===o.length)return i(step(n+1));const u=o[r];s(e+u,{pathExt:a},((o,s)=>{if(!o&&s){if(t.all)l.push(e+u);else return i(e+u)}return i(subStep(e,n,r+1))}))}));return n?step(0).then((e=>n(null,e)),n):step(0)};const whichSync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:r,pathExtExe:o}=getPathInfo(e,t);const a=[];for(let l=0;l<n.length;l++){const c=n[l];const u=/^".*"$/.test(c)?c.slice(1,-1):c;const f=i.join(u,e);const p=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let e=0;e<r.length;e++){const n=p+r[e];try{const e=s.sync(n,{pathExt:o});if(e){if(t.all)a.push(n);else return n}}catch(e){}}}if(t.all&&a.length)return a;if(t.nothrow)return null;throw getNotFoundError(e)};e.exports=which;which.sync=whichSync},4781:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.CocoaPodsPackageManager=t.CocoaPodsError=void 0;t.extractMissingDependencyError=extractMissingDependencyError;t.getPodUpdateMessage=getPodUpdateMessage;t.getPodRepoUpdateMessage=getPodRepoUpdateMessage;t.getImprovedPodInstallError=getImprovedPodInstallError;const i=r(n(3970));const o=r(n(2314));const s=r(n(9896));const a=r(n(857));const l=r(n(6928));const c=n(3884);class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(e,t,n){super(n?`${e}\n└─ Cause: ${n.message}`:e);this.code=t;this.cause=n}}t.CocoaPodsError=CocoaPodsError;function extractMissingDependencyError(e){const t=e.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(t!=null&&t[1]!=null&&t[2]!=null){return[t[1],t[2]]}return null}class CocoaPodsPackageManager{options;silent;cwd;static getPodProjectRoot(e){if(CocoaPodsPackageManager.isUsingPods(e))return e;const t=l.default.join(e,"ios");if(CocoaPodsPackageManager.isUsingPods(t))return t;const n=l.default.join(e,"macos");if(CocoaPodsPackageManager.isUsingPods(n))return n;return null}static isUsingPods(e){return s.default.existsSync(l.default.join(e,"Podfile"))}static async gemInstallCLIAsync(e=false,t={stdio:"inherit"}){const n=["install","cocoapods","--no-document"];try{await(0,i.default)("gem",n,t)}catch(r){if(e){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",r)}console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,i.default)("sudo",["gem",...n],t)}}static async brewLinkCLIAsync(e={stdio:"inherit"}){await(0,i.default)("brew",["link","cocoapods"],e)}static async brewInstallCLIAsync(e={stdio:"inherit"}){await(0,i.default)("brew",["install","cocoapods"],e)}static async installCLIAsync({nonInteractive:e=false,spawnOptions:t={stdio:"inherit"}}){if(!t){t={stdio:"inherit"}}const n=!!t.ignoreStdio;try{!n&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(e,t);!n&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(e){if(!n){console.log(o.default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(o.default.red(e.stderr??e.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",e)}}catch(e){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",e)}}!n&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(e){!n&&console.warn(o.default.yellow(`› Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/`,"NO_CLI",e)}}}static isAvailable(e,t){if(process.platform!=="darwin"){!t&&console.log(o.default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(e)){!t&&console.log(o.default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(e={stdio:"inherit"},{useBundler:t=false}={}){try{if(t){await(0,i.default)("bundle",["exec","pod","--version"],e)}else{await(0,i.default)("pod",["--version"],e)}return true}catch(e){if(t){console.warn(o.default.yellow(`› Failed to run \`bundle exec pod\``));throw new CocoaPodsError(e.stderr,"COMMAND_FAILED")}return false}}constructor({cwd:e,silent:t,useBundler:n}){this.silent=!!t;this.cwd=e;this.options={cwd:e,stdio:"pipe"};if(n!=null){this._useBundler=Promise.resolve(n)}}_useBundler;async#e(){return this._useBundler||=(0,c.isUsingBundlerAsync)(this.cwd)}get name(){return"CocoaPods"}async installAsync({spinner:e}={}){await this._installAsync({spinner:e})}async isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options,{useBundler:await this.#e()})}installCLIAsync({nonInteractive:e=true,spawnOptions:t}={}){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:e,spawnOptions:{...this.options,...t}})}async handleInstallErrorAsync({error:e,shouldUpdate:t=true,updatedPackages:n=[],spinner:r}){if(!e.output){throw e}if(!t){throw getImprovedPodInstallError(e,{cwd:this.options.cwd})}const i=e.output.join(a.default.EOL).trim();const{updatePackage:s,shouldUpdateRepo:l}=getPodUpdateMessage(i);if(!s||n.includes(s)){return await this._installAsync({spinner:r,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:n})}n.push(s);return await this.runInstallTypeCommandAsync(["update",s,l?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const e=`Failed to update ${o.default.bold(s)}. Attempting to update the repo instead.`;return e},spinner:r,updatedPackages:n})}async _installAsync({shouldRepoUpdate:e,...t}={}){return await this.runInstallTypeCommandAsync(["install",e?"--repo-update":""].filter(Boolean),{formatWarning(e){return getPodRepoUpdateMessage(e.output.join(a.default.EOL).trim()).message},...t})}async runInstallTypeCommandAsync(e,{formatWarning:t,...n}={}){try{return await this._runAsync(e)}catch(e){if(t){const r=t(e);if(n.spinner){n.spinner.text=o.default.bold(r)}if(!this.silent){console.warn(o.default.yellow(r))}}return await this.handleInstallErrorAsync({error:e,...n})}}async addWithParametersAsync(e,t){throw new Error("Unimplemented")}addAsync(e=[]){throw new Error("Unimplemented")}addDevAsync(e=[]){throw new Error("Unimplemented")}addGlobalAsync(e=[]){throw new Error("Unimplemented")}removeAsync(e=[]){throw new Error("Unimplemented")}removeDevAsync(e=[]){throw new Error("Unimplemented")}removeGlobalAsync(e=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:e}=await this.#e()?await(0,i.default)("bundle",["exec","pod","--version"],this.options):await(0,i.default)("pod",["--version"],this.options);return e.trim()}async configAsync(e){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async _runAsync(e){const t=await this.#e();const[n,r]=t?["bundle",["exec","pod",...e,"--ansi"]]:["pod",[...e,"--ansi"]];if(!this.silent){console.log(`> ${t?"bundle exec pod":"pod"} ${e.join(" ")}`)}const o=(0,i.default)(n,r,{...this.options,stdio:"pipe"});if(!this.silent){if(o.child.stdout){o.child.stdout.pipe(process.stdout)}}return await o}}t.CocoaPodsPackageManager=CocoaPodsPackageManager;function shouldPodRepoUpdate(e){const t=e;const n=t.includes("pod repo update")||t.includes("--no-repo-update");return n}function getPodUpdateMessage(e){const t=e.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:t?.[1]??null,shouldUpdateRepo:!t?.[2]}}function getPodRepoUpdateMessage(e){const t=extractMissingDependencyError(e);const n=getPodUpdateMessage(e);let r;if(t){r=`Couldn't install: ${t[1]} » ${o.default.underline(t[0])}.`}else if(n?.updatePackage){r=`Couldn't install: ${n?.updatePackage}.`}else{r=`Couldn't install Pods.`}r+=` Updating the Pods project and trying again...`;return{message:r,...n}}function getImprovedPodInstallError(e,{cwd:t=process.cwd()}){const n=e.output.join(a.default.EOL).trim();if(e.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){e.message=`No Podfile found in directory: ${t}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(n)){const t=extractMissingDependencyError(n);let r;if(t){r=`Couldn't install: ${t[1]} » ${o.default.underline(t[0])}`}else{r=`This is often due to native package versions mismatching`}let i;if(t?.[0]){if(t[0].match(/^(?:@?expo|@?react)(-|\/)/)){i=`Ensure the node module "${t[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{i=`Ensure the CocoaPod "${t[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{i=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}e.message=`${r}. ${i}`;if(e.stdout){const t=e.stdout.split(a.default.EOL);const n=t.findIndex((e=>e.startsWith("[!]")));if(n!==-1){const r=t.slice(n).join(a.default.EOL);e.message+=`\n\n${o.default.gray(r)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",e)}else{let t=e.stderr.trim();const n=e.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(n){if(e.message?.match(/pod exited with non-zero code: 1/)){e.message=""}t=null}e.message=[n,e.message,t].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",e)}},3884:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.findGemfile=findGemfile;t.isUsingBundlerAsync=isUsingBundlerAsync;const i=r(n(3970));const o=r(n(9896));const s=r(n(857));const a=r(n(6928));const l=n(8665);const maybeStat=e=>o.default.promises.stat(a.default.resolve(e)).catch((()=>null));async function getGitTopLevelAsync(e=process.cwd()){try{const t=await(0,i.default)("git",["rev-parse","--show-toplevel"],{cwd:e});const n=a.default.resolve(t.stdout.trim());return(await maybeStat(n))?.isDirectory()?n:null}catch{return null}}async function getGitRootPathAsync(e=process.cwd()){const t=a.default.normalize(s.default.homedir());for(let n=e;a.default.dirname(n)!==n;n=a.default.dirname(n)){if((await maybeStat(a.default.join(n,".git")))?.isDirectory()){return n}if(n===t)break}return null}async function getRootPathAsync(e=process.cwd()){const t=await getGitTopLevelAsync(e)||await getGitRootPathAsync(e)||await(0,l.resolveWorkspaceRootAsync)(e)||process.cwd();return t}async function findGemfile(e=process.cwd()){const t=a.default.normalize(await getRootPathAsync(e));for(let n=e;a.default.dirname(n)!==n;n=a.default.dirname(n)){const e=a.default.join(n,"Gemfile");if((await maybeStat(e))?.isFile()){return e}if(n===t)break}return null}async function isUsingBundlerAsync(e){const t=await findGemfile(e);if(!t){return false}const[n,r]=await Promise.allSettled([o.default.promises.readFile(t,"utf8"),(0,i.default)("bundle",["exec","pod","--version"],{cwd:e,stdio:"ignore"})]);if(n.status==="rejected"||r.status==="rejected"){return false}else{return/gem\s*\(?\s*(?:'cocoapods'|"cocoapods")/.test(n.value)}}},3887:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(4781);const o=r(n(2314));const s=n(1414);const a=n(9896);const l=n(6928);const c=r(n(2530));const u=n(3670);const f=n(8330);function info(e){if(!p.opts().quiet){console.log(e)}}async function runAsync(e){if(process.platform!=="darwin"){info(o.default.yellow("⚠️ CocoaPods is only supported on darwin machines"));process.exit(0)}const t=e&&!e.startsWith("--");const n=(0,l.resolve)(t?e:process.cwd());if(!(0,a.existsSync)(n)){info(o.default.red(`\n💥 Target directory does not exist: ${n}\n`));process.exit(1)}const r=i.CocoaPodsPackageManager.getPodProjectRoot(n);if(!r){const e=(0,l.join)(n,"package.json");if(!(0,a.existsSync)(e)){info(o.default.red(`\n💥 'package.json' file does not exist: ${e}\n`));process.exit(1)}const r=JSON.parse((0,a.readFileSync)(e).toString());const i=r.dependencies?.hasOwnProperty("expo");if(i){info(o.default.yellow(`⚠️ No 'ios' directory found, skipping installing pods.`,`\nPods will be automatically installed when the 'ios' directory is generated with 'npx expo prebuild' or 'npx expo run:ios'.`,(0,u.learnMore)("https://docs.expo.dev/workflow/prebuild/")));process.exit(0)}if(t){info(o.default.yellow(`⚠️ CocoaPods is not supported in project at ${n}`))}else{info(o.default.yellow("⚠️ CocoaPods is not supported in this project"))}process.exit(0)}info("🔍️ Scanning for pods...");try{const e=new i.CocoaPodsPackageManager({cwd:r});if(!await e.isCLIInstalledAsync()){await e.installCLIAsync({nonInteractive:p.opts().nonInteractive})}await e.installAsync()}catch(e){if(e.isPackageManagerError){console.error(o.default.red(e.message));process.exit(1)}throw e}}const p=new s.Command(f.name).version(f.version).arguments("[project-directory]").usage(`${o.default.green("[project-directory]")} [options]`).description("A fast, zero-dependency package for cutting down on common issues developers have when running pod install.").option("--quiet","only print errors").option("--non-interactive","disable interactive prompts").allowUnknownOption().parse(process.argv).action((async e=>{try{await runAsync(e);if(!p.opts().quiet){await(0,c.default)()}}catch(e){console.log("\nAborting run");if(e.command){console.log(` ${o.default.magenta(e.command)} has failed.`)}else{console.log(o.default.red`💥 An unexpected error was encountered. Report it on GitHub: https://github.com/expo/expo/issues`);console.log(e)}console.log();if(!p.opts().quiet){await(0,c.default)()}process.exit(1)}}));(async()=>{await p.parseAsync(process.argv)})()},2530:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t["default"]=shouldUpdate;const i=r(n(2314));const o=r(n(5059));async function shouldUpdate(){const e=n(8330);const t=(0,o.default)(e).catch((()=>null));try{const n=await t;if(n&&n.latest){console.log();console.log(i.default.yellow.bold(`A new version of \`${e.name}\` is available`));console.log("You can update by running: "+i.default.cyan(`npm i -g ${e.name}`));console.log()}}catch{}}},3670:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.learnMore=learnMore;const i=r(n(2314));const o=r(n(5787));function learnMore(e){return(0,o.default)(i.default.underline("Learn more."),e,{fallback:(e,t)=>`Learn more: ${i.default.underline(t)}`})}},181:e=>{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},1421:e=>{"use strict";e.exports=require("node:child_process")},8474:e=>{"use strict";e.exports=require("node:events")},3024:e=>{"use strict";e.exports=require("node:fs")},6760:e=>{"use strict";e.exports=require("node:path")},1708:e=>{"use strict";e.exports=require("node:process")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},1414:(e,t,n)=>{const{Argument:r}=n(1047);const{Command:i}=n(1175);const{CommanderError:o,InvalidArgumentError:s}=n(4848);const{Help:a}=n(8151);const{Option:l}=n(513);t.program=new i;t.createCommand=e=>new i(e);t.createOption=(e,t)=>new l(e,t);t.createArgument=(e,t)=>new r(e,t);t.Command=i;t.Option=l;t.Argument=r;t.Help=a;t.CommanderError=o;t.InvalidArgumentError=s;t.InvalidOptionArgumentError=s},1047:(e,t,n)=>{const{InvalidArgumentError:r}=n(4848);class Argument{constructor(e,t){this.description=t||"";this.variadic=false;this.parseArg=undefined;this.defaultValue=undefined;this.defaultValueDescription=undefined;this.argChoices=undefined;switch(e[0]){case"<":this.required=true;this._name=e.slice(1,-1);break;case"[":this.required=false;this._name=e.slice(1,-1);break;default:this.required=true;this._name=e;break}if(this._name.length>3&&this._name.slice(-3)==="..."){this.variadic=true;this._name=this._name.slice(0,-3)}}name(){return this._name}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}argParser(e){this.parseArg=e;return this}choices(e){this.argChoices=e.slice();this.parseArg=(e,t)=>{if(!this.argChoices.includes(e)){throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(e,t)}return e};return this}argRequired(){this.required=true;return this}argOptional(){this.required=false;return this}}function humanReadableArgName(e){const t=e.name()+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}t.Argument=Argument;t.humanReadableArgName=humanReadableArgName},1175:(e,t,n)=>{const r=n(8474).EventEmitter;const i=n(1421);const o=n(6760);const s=n(3024);const a=n(1708);const{Argument:l,humanReadableArgName:c}=n(1047);const{CommanderError:u}=n(4848);const{Help:f}=n(8151);const{Option:p,DualOptions:d}=n(513);const{suggestSimilar:h}=n(6587);class Command extends r{constructor(e){super();this.commands=[];this.options=[];this.parent=null;this._allowUnknownOption=false;this._allowExcessArguments=true;this.registeredArguments=[];this._args=this.registeredArguments;this.args=[];this.rawArgs=[];this.processedArgs=[];this._scriptPath=null;this._name=e||"";this._optionValues={};this._optionValueSources={};this._storeOptionsAsProperties=false;this._actionHandler=null;this._executableHandler=false;this._executableFile=null;this._executableDir=null;this._defaultCommandName=null;this._exitCallback=null;this._aliases=[];this._combineFlagAndOptionalValue=true;this._description="";this._summary="";this._argsDescription=undefined;this._enablePositionalOptions=false;this._passThroughOptions=false;this._lifeCycleHooks={};this._showHelpAfterError=false;this._showSuggestionAfterError=true;this._outputConfiguration={writeOut:e=>a.stdout.write(e),writeErr:e=>a.stderr.write(e),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:undefined,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:undefined,outputError:(e,t)=>t(e)};this._hidden=false;this._helpOption=undefined;this._addImplicitHelpCommand=undefined;this._helpCommand=undefined;this._helpConfiguration={}}copyInheritedSettings(e){this._outputConfiguration=e._outputConfiguration;this._helpOption=e._helpOption;this._helpCommand=e._helpCommand;this._helpConfiguration=e._helpConfiguration;this._exitCallback=e._exitCallback;this._storeOptionsAsProperties=e._storeOptionsAsProperties;this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue;this._allowExcessArguments=e._allowExcessArguments;this._enablePositionalOptions=e._enablePositionalOptions;this._showHelpAfterError=e._showHelpAfterError;this._showSuggestionAfterError=e._showSuggestionAfterError;return this}_getCommandAndAncestors(){const e=[];for(let t=this;t;t=t.parent){e.push(t)}return e}command(e,t,n){let r=t;let i=n;if(typeof r==="object"&&r!==null){i=r;r=null}i=i||{};const[,o,s]=e.match(/([^ ]+) *(.*)/);const a=this.createCommand(o);if(r){a.description(r);a._executableHandler=true}if(i.isDefault)this._defaultCommandName=a._name;a._hidden=!!(i.noHelp||i.hidden);a._executableFile=i.executableFile||null;if(s)a.arguments(s);this._registerCommand(a);a.parent=this;a.copyInheritedSettings(this);if(r)return this;return a}createCommand(e){return new Command(e)}createHelp(){return Object.assign(new f,this.configureHelp())}configureHelp(e){if(e===undefined)return this._helpConfiguration;this._helpConfiguration=e;return this}configureOutput(e){if(e===undefined)return this._outputConfiguration;Object.assign(this._outputConfiguration,e);return this}showHelpAfterError(e=true){if(typeof e!=="string")e=!!e;this._showHelpAfterError=e;return this}showSuggestionAfterError(e=true){this._showSuggestionAfterError=!!e;return this}addCommand(e,t){if(!e._name){throw new Error(`Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()`)}t=t||{};if(t.isDefault)this._defaultCommandName=e._name;if(t.noHelp||t.hidden)e._hidden=true;this._registerCommand(e);e.parent=this;e._checkForBrokenPassThrough();return this}createArgument(e,t){return new l(e,t)}argument(e,t,n,r){const i=this.createArgument(e,t);if(typeof n==="function"){i.default(r).argParser(n)}else{i.default(n)}this.addArgument(i);return this}arguments(e){e.trim().split(/ +/).forEach((e=>{this.argument(e)}));return this}addArgument(e){const t=this.registeredArguments.slice(-1)[0];if(t&&t.variadic){throw new Error(`only the last argument can be variadic '${t.name()}'`)}if(e.required&&e.defaultValue!==undefined&&e.parseArg===undefined){throw new Error(`a default value for a required argument is never used: '${e.name()}'`)}this.registeredArguments.push(e);return this}helpCommand(e,t){if(typeof e==="boolean"){this._addImplicitHelpCommand=e;return this}e=e??"help [command]";const[,n,r]=e.match(/([^ ]+) *(.*)/);const i=t??"display help for command";const o=this.createCommand(n);o.helpOption(false);if(r)o.arguments(r);if(i)o.description(i);this._addImplicitHelpCommand=true;this._helpCommand=o;return this}addHelpCommand(e,t){if(typeof e!=="object"){this.helpCommand(e,t);return this}this._addImplicitHelpCommand=true;this._helpCommand=e;return this}_getHelpCommand(){const e=this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"));if(e){if(this._helpCommand===undefined){this.helpCommand(undefined,undefined)}return this._helpCommand}return null}hook(e,t){const n=["preSubcommand","preAction","postAction"];if(!n.includes(e)){throw new Error(`Unexpected value for event passed to hook : '${e}'.\nExpecting one of '${n.join("', '")}'`)}if(this._lifeCycleHooks[e]){this._lifeCycleHooks[e].push(t)}else{this._lifeCycleHooks[e]=[t]}return this}exitOverride(e){if(e){this._exitCallback=e}else{this._exitCallback=e=>{if(e.code!=="commander.executeSubCommandAsync"){throw e}else{}}}return this}_exit(e,t,n){if(this._exitCallback){this._exitCallback(new u(e,t,n))}a.exit(e)}action(e){const listener=t=>{const n=this.registeredArguments.length;const r=t.slice(0,n);if(this._storeOptionsAsProperties){r[n]=this}else{r[n]=this.opts()}r.push(this);return e.apply(this,r)};this._actionHandler=listener;return this}createOption(e,t){return new p(e,t)}_callParseArg(e,t,n,r){try{return e.parseArg(t,n)}catch(e){if(e.code==="commander.invalidArgument"){const t=`${r} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){const t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){const n=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${n}'\n- already used by option '${t.flags}'`)}this.options.push(e)}_registerCommand(e){const knownBy=e=>[e.name()].concat(e.aliases());const t=knownBy(e).find((e=>this._findCommand(e)));if(t){const n=knownBy(this._findCommand(t)).join("|");const r=knownBy(e).join("|");throw new Error(`cannot add command '${r}' as already have command '${n}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);const t=e.name();const n=e.attributeName();if(e.negate){const t=e.long.replace(/^--no-/,"--");if(!this._findOption(t)){this.setOptionValueWithSource(n,e.defaultValue===undefined?true:e.defaultValue,"default")}}else if(e.defaultValue!==undefined){this.setOptionValueWithSource(n,e.defaultValue,"default")}const handleOptionValue=(t,r,i)=>{if(t==null&&e.presetArg!==undefined){t=e.presetArg}const o=this.getOptionValue(n);if(t!==null&&e.parseArg){t=this._callParseArg(e,t,o,r)}else if(t!==null&&e.variadic){t=e._concatValue(t,o)}if(t==null){if(e.negate){t=false}else if(e.isBoolean()||e.optional){t=true}else{t=""}}this.setOptionValueWithSource(n,t,i)};this.on("option:"+t,(t=>{const n=`error: option '${e.flags}' argument '${t}' is invalid.`;handleOptionValue(t,n,"cli")}));if(e.envVar){this.on("optionEnv:"+t,(t=>{const n=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;handleOptionValue(t,n,"env")}))}return this}_optionEx(e,t,n,r,i){if(typeof t==="object"&&t instanceof p){throw new Error("To add an Option object use addOption() instead of option() or requiredOption()")}const o=this.createOption(t,n);o.makeOptionMandatory(!!e.mandatory);if(typeof r==="function"){o.default(i).argParser(r)}else if(r instanceof RegExp){const e=r;r=(t,n)=>{const r=e.exec(t);return r?r[0]:n};o.default(i).argParser(r)}else{o.default(r)}return this.addOption(o)}option(e,t,n,r){return this._optionEx({},e,t,n,r)}requiredOption(e,t,n,r){return this._optionEx({mandatory:true},e,t,n,r)}combineFlagAndOptionalValue(e=true){this._combineFlagAndOptionalValue=!!e;return this}allowUnknownOption(e=true){this._allowUnknownOption=!!e;return this}allowExcessArguments(e=true){this._allowExcessArguments=!!e;return this}enablePositionalOptions(e=true){this._enablePositionalOptions=!!e;return this}passThroughOptions(e=true){this._passThroughOptions=!!e;this._checkForBrokenPassThrough();return this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions){throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}}storeOptionsAsProperties(e=true){if(this.options.length){throw new Error("call .storeOptionsAsProperties() before adding options")}if(Object.keys(this._optionValues).length){throw new Error("call .storeOptionsAsProperties() before setting option values")}this._storeOptionsAsProperties=!!e;return this}getOptionValue(e){if(this._storeOptionsAsProperties){return this[e]}return this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,undefined)}setOptionValueWithSource(e,t,n){if(this._storeOptionsAsProperties){this[e]=t}else{this._optionValues[e]=t}this._optionValueSources[e]=n;return this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;this._getCommandAndAncestors().forEach((n=>{if(n.getOptionValueSource(e)!==undefined){t=n.getOptionValueSource(e)}}));return t}_prepareUserArgs(e,t){if(e!==undefined&&!Array.isArray(e)){throw new Error("first parameter to parse must be array or undefined")}t=t||{};if(e===undefined&&t.from===undefined){if(a.versions?.electron){t.from="electron"}const e=a.execArgv??[];if(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print")){t.from="eval"}}if(e===undefined){e=a.argv}this.rawArgs=e.slice();let n;switch(t.from){case undefined:case"node":this._scriptPath=e[1];n=e.slice(2);break;case"electron":if(a.defaultApp){this._scriptPath=e[1];n=e.slice(2)}else{n=e.slice(1)}break;case"user":n=e.slice(0);break;case"eval":n=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);this._name=this._name||"program";return n}parse(e,t){const n=this._prepareUserArgs(e,t);this._parseCommand([],n);return this}async parseAsync(e,t){const n=this._prepareUserArgs(e,t);await this._parseCommand([],n);return this}_executeSubCommand(e,t){t=t.slice();let n=false;const r=[".js",".ts",".tsx",".mjs",".cjs"];function findFile(e,t){const n=o.resolve(e,t);if(s.existsSync(n))return n;if(r.includes(o.extname(t)))return undefined;const i=r.find((e=>s.existsSync(`${n}${e}`)));if(i)return`${n}${i}`;return undefined}this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();let l=e._executableFile||`${this._name}-${e._name}`;let c=this._executableDir||"";if(this._scriptPath){let e;try{e=s.realpathSync(this._scriptPath)}catch(t){e=this._scriptPath}c=o.resolve(o.dirname(e),c)}if(c){let t=findFile(c,l);if(!t&&!e._executableFile&&this._scriptPath){const n=o.basename(this._scriptPath,o.extname(this._scriptPath));if(n!==this._name){t=findFile(c,`${n}-${e._name}`)}}l=t||l}n=r.includes(o.extname(l));let f;if(a.platform!=="win32"){if(n){t.unshift(l);t=incrementNodeInspectorPort(a.execArgv).concat(t);f=i.spawn(a.argv[0],t,{stdio:"inherit"})}else{f=i.spawn(l,t,{stdio:"inherit"})}}else{t.unshift(l);t=incrementNodeInspectorPort(a.execArgv).concat(t);f=i.spawn(a.execPath,t,{stdio:"inherit"})}if(!f.killed){const e=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];e.forEach((e=>{a.on(e,(()=>{if(f.killed===false&&f.exitCode===null){f.kill(e)}}))}))}const p=this._exitCallback;f.on("close",(e=>{e=e??1;if(!p){a.exit(e)}else{p(new u(e,"commander.executeSubCommandAsync","(close)"))}}));f.on("error",(t=>{if(t.code==="ENOENT"){const t=c?`searched for local subcommand relative to directory '${c}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory";const n=`'${l}' does not exist\n - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${t}`;throw new Error(n)}else if(t.code==="EACCES"){throw new Error(`'${l}' not executable`)}if(!p){a.exit(1)}else{const e=new u(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t;p(e)}}));this.runningCommand=f}_dispatchSubcommand(e,t,n){const r=this._findCommand(e);if(!r)this.help({error:true});let i;i=this._chainOrCallSubCommandHook(i,r,"preSubcommand");i=this._chainOrCall(i,(()=>{if(r._executableHandler){this._executeSubCommand(r,t.concat(n))}else{return r._parseCommand(t,n)}}));return i}_dispatchHelpCommand(e){if(!e){this.help()}const t=this._findCommand(e);if(t&&!t._executableHandler){t.help()}return this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach(((e,t)=>{if(e.required&&this.args[t]==null){this.missingArgument(e.name())}}));if(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic){return}if(this.args.length>this.registeredArguments.length){this._excessArguments(this.args)}}_processArguments(){const myParseArg=(e,t,n)=>{let r=t;if(t!==null&&e.parseArg){const i=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;r=this._callParseArg(e,t,n,i)}return r};this._checkNumberOfArguments();const e=[];this.registeredArguments.forEach(((t,n)=>{let r=t.defaultValue;if(t.variadic){if(n<this.args.length){r=this.args.slice(n);if(t.parseArg){r=r.reduce(((e,n)=>myParseArg(t,n,e)),t.defaultValue)}}else if(r===undefined){r=[]}}else if(n<this.args.length){r=this.args[n];if(t.parseArg){r=myParseArg(t,r,t.defaultValue)}}e[n]=r}));this.processedArgs=e}_chainOrCall(e,t){if(e&&e.then&&typeof e.then==="function"){return e.then((()=>t()))}return t()}_chainOrCallHooks(e,t){let n=e;const r=[];this._getCommandAndAncestors().reverse().filter((e=>e._lifeCycleHooks[t]!==undefined)).forEach((e=>{e._lifeCycleHooks[t].forEach((t=>{r.push({hookedCommand:e,callback:t})}))}));if(t==="postAction"){r.reverse()}r.forEach((e=>{n=this._chainOrCall(n,(()=>e.callback(e.hookedCommand,this)))}));return n}_chainOrCallSubCommandHook(e,t,n){let r=e;if(this._lifeCycleHooks[n]!==undefined){this._lifeCycleHooks[n].forEach((e=>{r=this._chainOrCall(r,(()=>e(this,t)))}))}return r}_parseCommand(e,t){const n=this.parseOptions(t);this._parseOptionsEnv();this._parseOptionsImplied();e=e.concat(n.operands);t=n.unknown;this.args=e.concat(t);if(e&&this._findCommand(e[0])){return this._dispatchSubcommand(e[0],e.slice(1),t)}if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name()){return this._dispatchHelpCommand(e[1])}if(this._defaultCommandName){this._outputHelpIfRequested(t);return this._dispatchSubcommand(this._defaultCommandName,e,t)}if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName){this.help({error:true})}this._outputHelpIfRequested(n.unknown);this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();const checkForUnknownOptions=()=>{if(n.unknown.length>0){this.unknownOption(n.unknown[0])}};const r=`command:${this.name()}`;if(this._actionHandler){checkForUnknownOptions();this._processArguments();let n;n=this._chainOrCallHooks(n,"preAction");n=this._chainOrCall(n,(()=>this._actionHandler(this.processedArgs)));if(this.parent){n=this._chainOrCall(n,(()=>{this.parent.emit(r,e,t)}))}n=this._chainOrCallHooks(n,"postAction");return n}if(this.parent&&this.parent.listenerCount(r)){checkForUnknownOptions();this._processArguments();this.parent.emit(r,e,t)}else if(e.length){if(this._findCommand("*")){return this._dispatchSubcommand("*",e,t)}if(this.listenerCount("command:*")){this.emit("command:*",e,t)}else if(this.commands.length){this.unknownCommand()}else{checkForUnknownOptions();this._processArguments()}}else if(this.commands.length){checkForUnknownOptions();this.help({error:true})}else{checkForUnknownOptions();this._processArguments()}}_findCommand(e){if(!e)return undefined;return this.commands.find((t=>t._name===e||t._aliases.includes(e)))}_findOption(e){return this.options.find((t=>t.is(e)))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((e=>{e.options.forEach((t=>{if(t.mandatory&&e.getOptionValue(t.attributeName())===undefined){e.missingMandatoryOptionValue(t)}}))}))}_checkForConflictingLocalOptions(){const e=this.options.filter((e=>{const t=e.attributeName();if(this.getOptionValue(t)===undefined){return false}return this.getOptionValueSource(t)!=="default"}));const t=e.filter((e=>e.conflictsWith.length>0));t.forEach((t=>{const n=e.find((e=>t.conflictsWith.includes(e.attributeName())));if(n){this._conflictingOption(t,n)}}))}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((e=>{e._checkForConflictingLocalOptions()}))}parseOptions(e){const t=[];const n=[];let r=t;const i=e.slice();function maybeOption(e){return e.length>1&&e[0]==="-"}let o=null;while(i.length){const e=i.shift();if(e==="--"){if(r===n)r.push(e);r.push(...i);break}if(o&&!maybeOption(e)){this.emit(`option:${o.name()}`,e);continue}o=null;if(maybeOption(e)){const t=this._findOption(e);if(t){if(t.required){const e=i.shift();if(e===undefined)this.optionMissingArgument(t);this.emit(`option:${t.name()}`,e)}else if(t.optional){let e=null;if(i.length>0&&!maybeOption(i[0])){e=i.shift()}this.emit(`option:${t.name()}`,e)}else{this.emit(`option:${t.name()}`)}o=t.variadic?t:null;continue}}if(e.length>2&&e[0]==="-"&&e[1]!=="-"){const t=this._findOption(`-${e[1]}`);if(t){if(t.required||t.optional&&this._combineFlagAndOptionalValue){this.emit(`option:${t.name()}`,e.slice(2))}else{this.emit(`option:${t.name()}`);i.unshift(`-${e.slice(2)}`)}continue}}if(/^--[^=]+=/.test(e)){const t=e.indexOf("=");const n=this._findOption(e.slice(0,t));if(n&&(n.required||n.optional)){this.emit(`option:${n.name()}`,e.slice(t+1));continue}}if(maybeOption(e)){r=n}if((this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&n.length===0){if(this._findCommand(e)){t.push(e);if(i.length>0)n.push(...i);break}else if(this._getHelpCommand()&&e===this._getHelpCommand().name()){t.push(e);if(i.length>0)t.push(...i);break}else if(this._defaultCommandName){n.push(e);if(i.length>0)n.push(...i);break}}if(this._passThroughOptions){r.push(e);if(i.length>0)r.push(...i);break}r.push(e)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){const e={};const t=this.options.length;for(let n=0;n<t;n++){const t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce(((e,t)=>Object.assign(e,t.opts())),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr);if(typeof this._showHelpAfterError==="string"){this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`)}else if(this._showHelpAfterError){this._outputConfiguration.writeErr("\n");this.outputHelp({error:true})}const n=t||{};const r=n.exitCode||1;const i=n.code||"commander.error";this._exit(r,i,e)}_parseOptionsEnv(){this.options.forEach((e=>{if(e.envVar&&e.envVar in a.env){const t=e.attributeName();if(this.getOptionValue(t)===undefined||["default","config","env"].includes(this.getOptionValueSource(t))){if(e.required||e.optional){this.emit(`optionEnv:${e.name()}`,a.env[e.envVar])}else{this.emit(`optionEnv:${e.name()}`)}}}}))}_parseOptionsImplied(){const e=new d(this.options);const hasCustomOptionValue=e=>this.getOptionValue(e)!==undefined&&!["default","implied"].includes(this.getOptionValueSource(e));this.options.filter((t=>t.implied!==undefined&&hasCustomOptionValue(t.attributeName())&&e.valueFromOption(this.getOptionValue(t.attributeName()),t))).forEach((e=>{Object.keys(e.implied).filter((e=>!hasCustomOptionValue(e))).forEach((t=>{this.setOptionValueWithSource(t,e.implied[t],"implied")}))}))}missingArgument(e){const t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){const t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){const t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){const findBestOptionFromValue=e=>{const t=e.attributeName();const n=this.getOptionValue(t);const r=this.options.find((e=>e.negate&&t===e.attributeName()));const i=this.options.find((e=>!e.negate&&t===e.attributeName()));if(r&&(r.presetArg===undefined&&n===false||r.presetArg!==undefined&&n===r.presetArg)){return r}return i||e};const getErrorMessage=e=>{const t=findBestOptionFromValue(e);const n=t.attributeName();const r=this.getOptionValueSource(n);if(r==="env"){return`environment variable '${t.envVar}'`}return`option '${t.flags}'`};const n=`error: ${getErrorMessage(e)} cannot be used with ${getErrorMessage(t)}`;this.error(n,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[];let r=this;do{const e=r.createHelp().visibleOptions(r).filter((e=>e.long)).map((e=>e.long));n=n.concat(e);r=r.parent}while(r&&!r._enablePositionalOptions);t=h(e,n)}const n=`error: unknown option '${e}'${t}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;const t=this.registeredArguments.length;const n=t===1?"":"s";const r=this.parent?` for '${this.name()}'`:"";const i=`error: too many arguments${r}. Expected ${t} argument${n} but got ${e.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){const e=this.args[0];let t="";if(this._showSuggestionAfterError){const n=[];this.createHelp().visibleCommands(this).forEach((e=>{n.push(e.name());if(e.alias())n.push(e.alias())}));t=h(e,n)}const n=`error: unknown command '${e}'${t}`;this.error(n,{code:"commander.unknownCommand"})}version(e,t,n){if(e===undefined)return this._version;this._version=e;t=t||"-V, --version";n=n||"output the version number";const r=this.createOption(t,n);this._versionOptionName=r.attributeName();this._registerOption(r);this.on("option:"+r.name(),(()=>{this._outputConfiguration.writeOut(`${e}\n`);this._exit(0,"commander.version",e)}));return this}description(e,t){if(e===undefined&&t===undefined)return this._description;this._description=e;if(t){this._argsDescription=t}return this}summary(e){if(e===undefined)return this._summary;this._summary=e;return this}alias(e){if(e===undefined)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler){t=this.commands[this.commands.length-1]}if(e===t._name)throw new Error("Command alias can't be the same as its name");const n=this.parent?._findCommand(e);if(n){const t=[n.name()].concat(n.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}t._aliases.push(e);return this}aliases(e){if(e===undefined)return this._aliases;e.forEach((e=>this.alias(e)));return this}usage(e){if(e===undefined){if(this._usage)return this._usage;const e=this.registeredArguments.map((e=>c(e)));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?e:[]).join(" ")}this._usage=e;return this}name(e){if(e===undefined)return this._name;this._name=e;return this}nameFromFilename(e){this._name=o.basename(e,o.extname(e));return this}executableDir(e){if(e===undefined)return this._executableDir;this._executableDir=e;return this}helpInformation(e){const t=this.createHelp();if(t.helpWidth===undefined){t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()}return t.formatHelp(this,t)}_getHelpContext(e){e=e||{};const t={error:!!e.error};let n;if(t.error){n=e=>this._outputConfiguration.writeErr(e)}else{n=e=>this._outputConfiguration.writeOut(e)}t.write=e.write||n;t.command=this;return t}outputHelp(e){let t;if(typeof e==="function"){t=e;e=undefined}const n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach((e=>e.emit("beforeAllHelp",n)));this.emit("beforeHelp",n);let r=this.helpInformation(n);if(t){r=t(r);if(typeof r!=="string"&&!Buffer.isBuffer(r)){throw new Error("outputHelp callback must return a string or a Buffer")}}n.write(r);if(this._getHelpOption()?.long){this.emit(this._getHelpOption().long)}this.emit("afterHelp",n);this._getCommandAndAncestors().forEach((e=>e.emit("afterAllHelp",n)))}helpOption(e,t){if(typeof e==="boolean"){if(e){this._helpOption=this._helpOption??undefined}else{this._helpOption=null}return this}e=e??"-h, --help";t=t??"display help for command";this._helpOption=this.createOption(e,t);return this}_getHelpOption(){if(this._helpOption===undefined){this.helpOption(undefined,undefined)}return this._helpOption}addHelpOption(e){this._helpOption=e;return this}help(e){this.outputHelp(e);let t=a.exitCode||0;if(t===0&&e&&typeof e!=="function"&&e.error){t=1}this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){const n=["beforeAll","before","after","afterAll"];if(!n.includes(e)){throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${n.join("', '")}'`)}const r=`${e}Help`;this.on(r,(e=>{let n;if(typeof t==="function"){n=t({error:e.error,command:e.command})}else{n=t}if(n){e.write(`${n}\n`)}}));return this}_outputHelpIfRequested(e){const t=this._getHelpOption();const n=t&&e.find((e=>t.is(e)));if(n){this.outputHelp();this._exit(0,"commander.helpDisplayed","(outputHelp)")}}}function incrementNodeInspectorPort(e){return e.map((e=>{if(!e.startsWith("--inspect")){return e}let t;let n="127.0.0.1";let r="9229";let i;if((i=e.match(/^(--inspect(-brk)?)$/))!==null){t=i[1]}else if((i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null){t=i[1];if(/^\d+$/.test(i[3])){r=i[3]}else{n=i[3]}}else if((i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null){t=i[1];n=i[3];r=i[4]}if(t&&r!=="0"){return`${t}=${n}:${parseInt(r)+1}`}return e}))}t.Command=Command},4848:(e,t)=>{class CommanderError extends Error{constructor(e,t,n){super(n);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=t;this.exitCode=e;this.nestedError=undefined}}class InvalidArgumentError extends CommanderError{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name}}t.CommanderError=CommanderError;t.InvalidArgumentError=InvalidArgumentError},8151:(e,t,n)=>{const{humanReadableArgName:r}=n(1047);class Help{constructor(){this.helpWidth=undefined;this.sortSubcommands=false;this.sortOptions=false;this.showGlobalOptions=false}visibleCommands(e){const t=e.commands.filter((e=>!e._hidden));const n=e._getHelpCommand();if(n&&!n._hidden){t.push(n)}if(this.sortSubcommands){t.sort(((e,t)=>e.name().localeCompare(t.name())))}return t}compareOptions(e,t){const getSortKey=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return getSortKey(e).localeCompare(getSortKey(t))}visibleOptions(e){const t=e.options.filter((e=>!e.hidden));const n=e._getHelpOption();if(n&&!n.hidden){const r=n.short&&e._findOption(n.short);const i=n.long&&e._findOption(n.long);if(!r&&!i){t.push(n)}else if(n.long&&!i){t.push(e.createOption(n.long,n.description))}else if(n.short&&!r){t.push(e.createOption(n.short,n.description))}}if(this.sortOptions){t.sort(this.compareOptions)}return t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];const t=[];for(let n=e.parent;n;n=n.parent){const e=n.options.filter((e=>!e.hidden));t.push(...e)}if(this.sortOptions){t.sort(this.compareOptions)}return t}visibleArguments(e){if(e._argsDescription){e.registeredArguments.forEach((t=>{t.description=t.description||e._argsDescription[t.name()]||""}))}if(e.registeredArguments.find((e=>e.description))){return e.registeredArguments}return[]}subcommandTerm(e){const t=e.registeredArguments.map((e=>r(e))).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce(((e,n)=>Math.max(e,t.subcommandTerm(n).length)),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce(((e,n)=>Math.max(e,t.optionTerm(n).length)),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce(((e,n)=>Math.max(e,t.optionTerm(n).length)),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce(((e,n)=>Math.max(e,t.argumentTerm(n).length)),0)}commandUsage(e){let t=e._name;if(e._aliases[0]){t=t+"|"+e._aliases[0]}let n="";for(let t=e.parent;t;t=t.parent){n=t.name()+" "+n}return n+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){const t=[];if(e.argChoices){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined){const n=e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==="boolean";if(n){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}}if(e.presetArg!==undefined&&e.optional){t.push(`preset: ${JSON.stringify(e.presetArg)}`)}if(e.envVar!==undefined){t.push(`env: ${e.envVar}`)}if(t.length>0){return`${e.description} (${t.join(", ")})`}return e.description}argumentDescription(e){const t=[];if(e.argChoices){t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`)}if(e.defaultValue!==undefined){t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}if(t.length>0){const n=`(${t.join(", ")})`;if(e.description){return`${e.description} ${n}`}return n}return e.description}formatHelp(e,t){const n=t.padWidth(e,t);const r=t.helpWidth||80;const i=2;const o=2;function formatItem(e,s){if(s){const a=`${e.padEnd(n+o)}${s}`;return t.wrap(a,r-i,n+o)}return e}function formatList(e){return e.join("\n").replace(/^/gm," ".repeat(i))}let s=[`Usage: ${t.commandUsage(e)}`,""];const a=t.commandDescription(e);if(a.length>0){s=s.concat([t.wrap(a,r,0),""])}const l=t.visibleArguments(e).map((e=>formatItem(t.argumentTerm(e),t.argumentDescription(e))));if(l.length>0){s=s.concat(["Arguments:",formatList(l),""])}const c=t.visibleOptions(e).map((e=>formatItem(t.optionTerm(e),t.optionDescription(e))));if(c.length>0){s=s.concat(["Options:",formatList(c),""])}if(this.showGlobalOptions){const n=t.visibleGlobalOptions(e).map((e=>formatItem(t.optionTerm(e),t.optionDescription(e))));if(n.length>0){s=s.concat(["Global Options:",formatList(n),""])}}const u=t.visibleCommands(e).map((e=>formatItem(t.subcommandTerm(e),t.subcommandDescription(e))));if(u.length>0){s=s.concat(["Commands:",formatList(u),""])}return s.join("\n")}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,n,r=40){const i=" \\f\\t\\v   -    \ufeff";const o=new RegExp(`[\\n][${i}]+`);if(e.match(o))return e;const s=t-n;if(s<r)return e;const a=e.slice(0,n);const l=e.slice(n).replace("\r\n","\n");const c=" ".repeat(n);const u="​";const f=`\\s${u}`;const p=new RegExp(`\n|.{1,${s-1}}([${f}]|$)|[^${f}]+?([${f}]|$)`,"g");const d=l.match(p)||[];return a+d.map(((e,t)=>{if(e==="\n")return"";return(t>0?c:"")+e.trimEnd()})).join("\n")}}t.Help=Help},513:(e,t,n)=>{const{InvalidArgumentError:r}=n(4848);class Option{constructor(e,t){this.flags=e;this.description=t||"";this.required=e.includes("<");this.optional=e.includes("[");this.variadic=/\w\.\.\.[>\]]$/.test(e);this.mandatory=false;const n=splitOptionFlags(e);this.short=n.shortFlag;this.long=n.longFlag;this.negate=false;if(this.long){this.negate=this.long.startsWith("--no-")}this.defaultValue=undefined;this.defaultValueDescription=undefined;this.presetArg=undefined;this.envVar=undefined;this.parseArg=undefined;this.hidden=false;this.argChoices=undefined;this.conflictsWith=[];this.implied=undefined}default(e,t){this.defaultValue=e;this.defaultValueDescription=t;return this}preset(e){this.presetArg=e;return this}conflicts(e){this.conflictsWith=this.conflictsWith.concat(e);return this}implies(e){let t=e;if(typeof e==="string"){t={[e]:true}}this.implied=Object.assign(this.implied||{},t);return this}env(e){this.envVar=e;return this}argParser(e){this.parseArg=e;return this}makeOptionMandatory(e=true){this.mandatory=!!e;return this}hideHelp(e=true){this.hidden=!!e;return this}_concatValue(e,t){if(t===this.defaultValue||!Array.isArray(t)){return[e]}return t.concat(e)}choices(e){this.argChoices=e.slice();this.parseArg=(e,t)=>{if(!this.argChoices.includes(e)){throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(e,t)}return e};return this}name(){if(this.long){return this.long.replace(/^--/,"")}return this.short.replace(/^-/,"")}attributeName(){return camelcase(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class DualOptions{constructor(e){this.positiveOptions=new Map;this.negativeOptions=new Map;this.dualOptions=new Set;e.forEach((e=>{if(e.negate){this.negativeOptions.set(e.attributeName(),e)}else{this.positiveOptions.set(e.attributeName(),e)}}));this.negativeOptions.forEach(((e,t)=>{if(this.positiveOptions.has(t)){this.dualOptions.add(t)}}))}valueFromOption(e,t){const n=t.attributeName();if(!this.dualOptions.has(n))return true;const r=this.negativeOptions.get(n).presetArg;const i=r!==undefined?r:false;return t.negate===(i===e)}}function camelcase(e){return e.split("-").reduce(((e,t)=>e+t[0].toUpperCase()+t.slice(1)))}function splitOptionFlags(e){let t;let n;const r=e.split(/[ |,]+/);if(r.length>1&&!/^[[<]/.test(r[1]))t=r.shift();n=r.shift();if(!t&&/^-[^-]$/.test(n)){t=n;n=undefined}return{shortFlag:t,longFlag:n}}t.Option=Option;t.DualOptions=DualOptions},6587:(e,t)=>{const n=3;function editDistance(e,t){if(Math.abs(e.length-t.length)>n)return Math.max(e.length,t.length);const r=[];for(let t=0;t<=e.length;t++){r[t]=[t]}for(let e=0;e<=t.length;e++){r[0][e]=e}for(let n=1;n<=t.length;n++){for(let i=1;i<=e.length;i++){let o=1;if(e[i-1]===t[n-1]){o=0}else{o=1}r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+o);if(i>1&&n>1&&e[i-1]===t[n-2]&&e[i-2]===t[n-1]){r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1)}}}return r[e.length][t.length]}function suggestSimilar(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));const r=e.startsWith("--");if(r){e=e.slice(2);t=t.map((e=>e.slice(2)))}let i=[];let o=n;const s=.4;t.forEach((t=>{if(t.length<=1)return;const n=editDistance(e,t);const r=Math.max(e.length,t.length);const a=(r-n)/r;if(a>s){if(n<o){o=n;i=[t]}else if(n===o){i.push(t)}}}));i.sort(((e,t)=>e.localeCompare(t)));if(r){i=i.map((e=>`--${e}`))}if(i.length>1){return`\n(Did you mean one of ${i.join(", ")}?)`}if(i.length===1){return`\n(Did you mean ${i[0]}?)`}return""}t.suggestSimilar=suggestSimilar},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"pod-install","version":"1.0.19","description":"A fast, zero-dependency package for cutting down on common issues developers have when running pod install.","main":"./build/index.js","scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","clean":"expo-module clean","lint":"expo-module lint","prepublishOnly":"pnpm run clean && pnpm run build:prod","typecheck":"expo-module typecheck","watch":"pnpm run build --watch"},"bin":"./bin/pod-install.js","files":["bin","build"],"repository":{"type":"git","url":"https://github.com/expo/expo.git"},"keywords":["cocoapods","pod-install","npx","ios"],"author":"Expo <support@expo.dev>","license":"MIT","homepage":"https://github.com/expo/expo/tree/main/packages/pod-install","bugs":{"url":"https://github.com/expo/expo/issues"},"devDependencies":{"@expo/package-manager":"workspace:*","chalk":"^4.0.0","commander":"^12.1.0","expo-module-scripts":"workspace:*","terminal-link":"^2.1.1","update-check":"^1.5.4"},"gitHead":"a7adc95c1747db1e92655feba56d0e62660098db"}')}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var i=t[n]={id:n,loaded:false,exports:{}};var o=true;try{e[n].call(i.exports,i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[n]}i.loaded=true;return i.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(3887);module.exports=n})();
package/package.json CHANGED
@@ -1,20 +1,11 @@
1
1
  {
2
2
  "name": "pod-install",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "A fast, zero-dependency package for cutting down on common issues developers have when running pod install.",
5
5
  "main": "./build/index.js",
6
- "scripts": {
7
- "build": "ncc build ./src/index.ts -o build/",
8
- "build:prod": "ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register",
9
- "clean": "expo-module clean",
10
- "lint": "expo-module lint",
11
- "prepare": "expo-module clean && yarn run build:prod",
12
- "prepublishOnly": "expo-module prepublishOnly",
13
- "typecheck": "expo-module typecheck",
14
- "watch": "yarn run build --watch"
15
- },
16
- "bin": "./build/index.js",
6
+ "bin": "./bin/pod-install.js",
17
7
  "files": [
8
+ "bin",
18
9
  "build"
19
10
  ],
20
11
  "repository": {
@@ -34,12 +25,20 @@
34
25
  "url": "https://github.com/expo/expo/issues"
35
26
  },
36
27
  "devDependencies": {
37
- "@expo/package-manager": "^1.10.5",
38
28
  "chalk": "^4.0.0",
39
29
  "commander": "^12.1.0",
40
- "expo-module-scripts": "^55.0.2",
41
30
  "terminal-link": "^2.1.1",
42
- "update-check": "^1.5.4"
31
+ "update-check": "^1.5.4",
32
+ "@expo/package-manager": "1.12.1",
33
+ "expo-module-scripts": "56.0.2"
43
34
  },
44
- "gitHead": "0675db12d13a5309e3109e8ecf7f6011522194c6"
45
- }
35
+ "gitHead": "a7adc95c1747db1e92655feba56d0e62660098db",
36
+ "scripts": {
37
+ "build": "ncc build ./src/index.ts -o build/",
38
+ "build:prod": "ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register",
39
+ "clean": "expo-module clean",
40
+ "lint": "expo-module lint",
41
+ "typecheck": "expo-module typecheck",
42
+ "watch": "pnpm run build --watch"
43
+ }
44
+ }