create-turbo 1.8.4-canary.3 → 1.9.0-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +196 -0
- package/package.json +16 -10
- package/dist/index.js +0 -424
- package/templates/_shared_ts/.eslintrc.js +0 -10
- package/templates/_shared_ts/README.md +0 -25
- package/templates/_shared_ts/apps/docs/.eslintrc.js +0 -4
- package/templates/_shared_ts/apps/docs/README.md +0 -30
- package/templates/_shared_ts/apps/docs/next-env.d.ts +0 -5
- package/templates/_shared_ts/apps/docs/next.config.js +0 -4
- package/templates/_shared_ts/apps/docs/package.json +0 -27
- package/templates/_shared_ts/apps/docs/pages/index.tsx +0 -10
- package/templates/_shared_ts/apps/docs/tsconfig.json +0 -5
- package/templates/_shared_ts/apps/web/.eslintrc.js +0 -4
- package/templates/_shared_ts/apps/web/README.md +0 -30
- package/templates/_shared_ts/apps/web/next-env.d.ts +0 -5
- package/templates/_shared_ts/apps/web/next.config.js +0 -4
- package/templates/_shared_ts/apps/web/package.json +0 -27
- package/templates/_shared_ts/apps/web/pages/index.tsx +0 -10
- package/templates/_shared_ts/apps/web/tsconfig.json +0 -5
- package/templates/_shared_ts/gitignore +0 -33
- package/templates/_shared_ts/package.json +0 -23
- package/templates/_shared_ts/packages/eslint-config-custom/index.js +0 -6
- package/templates/_shared_ts/packages/eslint-config-custom/package.json +0 -19
- package/templates/_shared_ts/packages/tsconfig/README.md +0 -3
- package/templates/_shared_ts/packages/tsconfig/base.json +0 -20
- package/templates/_shared_ts/packages/tsconfig/nextjs.json +0 -22
- package/templates/_shared_ts/packages/tsconfig/package.json +0 -10
- package/templates/_shared_ts/packages/tsconfig/react-library.json +0 -11
- package/templates/_shared_ts/packages/ui/Button.tsx +0 -4
- package/templates/_shared_ts/packages/ui/index.tsx +0 -2
- package/templates/_shared_ts/packages/ui/package.json +0 -18
- package/templates/_shared_ts/packages/ui/tsconfig.json +0 -5
- package/templates/_shared_ts/turbo.json +0 -16
- package/templates/berry/.yarnrc.yml +0 -1
- package/templates/berry/README.md +0 -73
- package/templates/npm/README.md +0 -73
- package/templates/pnpm/README.md +0 -73
- package/templates/pnpm/apps/docs/package.json +0 -27
- package/templates/pnpm/apps/web/package.json +0 -27
- package/templates/pnpm/package.json +0 -19
- package/templates/pnpm/packages/ui/package.json +0 -19
- package/templates/pnpm/pnpm-workspace.yaml +0 -3
- package/templates/yarn/README.md +0 -73
- package/templates/yarn/package.json +0 -19
package/dist/cli.js
ADDED
@@ -0,0 +1,196 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
"use strict";var e0=Object.create;var iu=Object.defineProperty;var t0=Object.getOwnPropertyDescriptor;var r0=Object.getOwnPropertyNames;var n0=Object.getPrototypeOf,i0=Object.prototype.hasOwnProperty;var o0=(e,t)=>()=>(e&&(t=e(e=0)),t);var te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var s0=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of r0(t))!i0.call(e,n)&&n!==r&&iu(e,n,{get:()=>t[n],enumerable:!(i=t0(t,n))||i.enumerable});return e};var Ae=(e,t,r)=>(r=e!=null?e0(n0(e)):{},s0(t||!e||!e.__esModule?iu(r,"default",{value:e,enumerable:!0}):r,e));var j=o0(()=>{});var pu=te(lr=>{"use strict";j();Object.defineProperty(lr,"__esModule",{value:!0});lr.splitWhen=lr.flatten=void 0;function l0(e){return e.reduce((t,r)=>[].concat(t,r),[])}lr.flatten=l0;function p0(e,t){let r=[[]],i=0;for(let n of e)t(n)?(i++,r[i]=[]):r[i].push(n);return r}lr.splitWhen=p0});var fu=te(En=>{"use strict";j();Object.defineProperty(En,"__esModule",{value:!0});En.isEnoentCodeError=void 0;function f0(e){return e.code==="ENOENT"}En.isEnoentCodeError=f0});var du=te(Sn=>{"use strict";j();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.createDirentFromStats=void 0;var Ni=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function d0(e,t){return new Ni(e,t)}Sn.createDirentFromStats=d0});var hu=te(at=>{"use strict";j();Object.defineProperty(at,"__esModule",{value:!0});at.removeLeadingDotSegment=at.escape=at.makeAbsolute=at.unixify=void 0;var h0=require("path"),m0=2,y0=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function g0(e){return e.replace(/\\/g,"/")}at.unixify=g0;function v0(e,t){return h0.resolve(e,t)}at.makeAbsolute=v0;function _0(e){return e.replace(y0,"\\$2")}at.escape=_0;function E0(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(m0)}return e}at.removeLeadingDotSegment=E0});var yu=te((RR,mu)=>{j();mu.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var _u=te((OR,vu)=>{j();var S0=yu(),gu={"{":"}","(":")","[":"]"},A0=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,i=-2,n=-2,u=-2,s=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||i!==-1&&e[t]==="["&&e[t+1]!=="]"&&(i<t&&(i=e.indexOf("]",t)),i>t&&(s===-1||s>i||(s=e.indexOf("\\",t),s===-1||s>i)))||n!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(n=e.indexOf("}",t),n>t&&(s=e.indexOf("\\",t),s===-1||s>n))||u!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(u=e.indexOf(")",t),u>t&&(s=e.indexOf("\\",t),s===-1||s>u))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(u=e.indexOf(")",r),u>r&&(s=e.indexOf("\\",r),s===-1||s>u))))return!0;if(e[t]==="\\"){var o=e[t+1];t+=2;var a=gu[o];if(a){var c=e.indexOf(a,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},b0=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var i=gu[r];if(i){var n=e.indexOf(i,t);n!==-1&&(t=n+1)}if(e[t]==="!")return!0}else t++}return!1};vu.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(S0(t))return!0;var i=A0;return r&&r.strict===!1&&(i=b0),i(t)}});var Su=te((TR,Eu)=>{"use strict";j();var D0=_u(),x0=require("path").posix.dirname,w0=require("os").platform()==="win32",Bi="/",C0=/\\/g,k0=/[\{\[].*[\}\]]$/,F0=/(^|[^\\])([\{\[]|\([^\)]+$)/,R0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Eu.exports=function(t,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&w0&&t.indexOf(Bi)<0&&(t=t.replace(C0,Bi)),k0.test(t)&&(t+=Bi),t+="a";do t=x0(t);while(D0(t)||F0.test(t));return t.replace(R0,"$1")}});var An=te(tt=>{"use strict";j();tt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;tt.find=(e,t)=>e.nodes.find(r=>r.type===t);tt.exceedsLimit=(e,t,r=1,i)=>i===!1||!tt.isInteger(e)||!tt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=i;tt.escapeNode=(e,t=0,r)=>{let i=e.nodes[t];!i||(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};tt.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;tt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;tt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;tt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);tt.flatten=(...e)=>{let t=[],r=i=>{for(let n=0;n<i.length;n++){let u=i[n];Array.isArray(u)?r(u,t):u!==void 0&&t.push(u)}return t};return r(e),t}});var bn=te((LR,bu)=>{"use strict";j();var Au=An();bu.exports=(e,t={})=>{let r=(i,n={})=>{let u=t.escapeInvalid&&Au.isInvalidBrace(n),s=i.invalid===!0&&t.escapeInvalid===!0,o="";if(i.value)return(u||s)&&Au.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)o+=r(a);return o};return r(e)}});var xu=te((IR,Du)=>{"use strict";j();Du.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Lu=te((NR,Pu)=>{"use strict";j();var wu=xu(),Kt=(e,t,r)=>{if(wu(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(wu(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),u=String(i.shorthand),s=String(i.capture),o=String(i.wrap),a=e+":"+t+"="+n+u+s+o;if(Kt.cache.hasOwnProperty(a))return Kt.cache[a].result;let c=Math.min(e,t),p=Math.max(e,t);if(Math.abs(c-p)===1){let g=e+"|"+t;return i.capture?`(${g})`:i.wrap===!1?g:`(?:${g})`}let l=Tu(e)||Tu(t),f={min:e,max:t,a:c,b:p},d=[],m=[];if(l&&(f.isPadded=l,f.maxLen=String(f.max).length),c<0){let g=p<0?Math.abs(p):1;m=Cu(g,Math.abs(c),f,i),c=f.a=0}return p>=0&&(d=Cu(c,p,f,i)),f.negatives=m,f.positives=d,f.result=O0(m,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+m.length>1&&(f.result=`(?:${f.result})`),Kt.cache[a]=f,f.result};function O0(e,t,r){let i=Mi(e,t,"-",!1,r)||[],n=Mi(t,e,"",!1,r)||[],u=Mi(e,t,"-?",!0,r)||[];return i.concat(u).concat(n).join("|")}function T0(e,t){let r=1,i=1,n=Fu(e,r),u=new Set([t]);for(;e<=n&&n<=t;)u.add(n),r+=1,n=Fu(e,r);for(n=Ru(t+1,i)-1;e<n&&n<=t;)u.add(n),i+=1,n=Ru(t+1,i)-1;return u=[...u],u.sort(I0),u}function P0(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let i=L0(e,t),n=i.length,u="",s=0;for(let o=0;o<n;o++){let[a,c]=i[o];a===c?u+=a:a!=="0"||c!=="9"?u+=N0(a,c,r):s++}return s&&(u+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:u,count:[s],digits:n}}function Cu(e,t,r,i){let n=T0(e,t),u=[],s=e,o;for(let a=0;a<n.length;a++){let c=n[a],p=P0(String(s),String(c),i),l="";if(!r.isPadded&&o&&o.pattern===p.pattern){o.count.length>1&&o.count.pop(),o.count.push(p.count[0]),o.string=o.pattern+Ou(o.count),s=c+1;continue}r.isPadded&&(l=B0(c,r,i)),p.string=l+p.pattern+Ou(p.count),u.push(p),s=c+1,o=p}return u}function Mi(e,t,r,i,n){let u=[];for(let s of e){let{string:o}=s;!i&&!ku(t,"string",o)&&u.push(r+o),i&&ku(t,"string",o)&&u.push(r+o)}return u}function L0(e,t){let r=[];for(let i=0;i<e.length;i++)r.push([e[i],t[i]]);return r}function I0(e,t){return e>t?1:t>e?-1:0}function ku(e,t,r){return e.some(i=>i[t]===r)}function Fu(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Ru(e,t){return e-e%Math.pow(10,t)}function Ou(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function N0(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Tu(e){return/^-?(0+)\d/.test(e)}function B0(e,t,r){if(!t.isPadded)return e;let i=Math.abs(t.maxLen-String(e).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}Kt.cache={};Kt.clearCache=()=>Kt.cache={};Pu.exports=Kt});var Hi=te((BR,Gu)=>{"use strict";j();var M0=require("util"),Bu=Lu(),Iu=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),j0=e=>t=>e===!0?Number(t):String(t),ji=e=>typeof e=="number"||typeof e=="string"&&e!=="",Hr=e=>Number.isInteger(+e),$i=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},$0=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,H0=(e,t,r)=>{if(t>0){let i=e[0]==="-"?"-":"";i&&(e=e.slice(1)),e=i+e.padStart(i?t-1:t,"0")}return r===!1?String(e):e},Nu=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},G0=(e,t)=>{e.negatives.sort((s,o)=>s<o?-1:s>o?1:0),e.positives.sort((s,o)=>s<o?-1:s>o?1:0);let r=t.capture?"":"?:",i="",n="",u;return e.positives.length&&(i=e.positives.join("|")),e.negatives.length&&(n=`-(${r}${e.negatives.join("|")})`),i&&n?u=`${i}|${n}`:u=i||n,t.wrap?`(${r}${u})`:u},Mu=(e,t,r,i)=>{if(r)return Bu(e,t,{wrap:!1,...i});let n=String.fromCharCode(e);if(e===t)return n;let u=String.fromCharCode(t);return`[${n}-${u}]`},ju=(e,t,r)=>{if(Array.isArray(e)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${e.join("|")})`:e.join("|")}return Bu(e,t,r)},$u=(...e)=>new RangeError("Invalid range arguments: "+M0.inspect(...e)),Hu=(e,t,r)=>{if(r.strictRanges===!0)throw $u([e,t]);return[]},q0=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},U0=(e,t,r=1,i={})=>{let n=Number(e),u=Number(t);if(!Number.isInteger(n)||!Number.isInteger(u)){if(i.strictRanges===!0)throw $u([e,t]);return[]}n===0&&(n=0),u===0&&(u=0);let s=n>u,o=String(e),a=String(t),c=String(r);r=Math.max(Math.abs(r),1);let p=$i(o)||$i(a)||$i(c),l=p?Math.max(o.length,a.length,c.length):0,f=p===!1&&$0(e,t,i)===!1,d=i.transform||j0(f);if(i.toRegex&&r===1)return Mu(Nu(e,l),Nu(t,l),!0,i);let m={negatives:[],positives:[]},g=h=>m[h<0?"negatives":"positives"].push(Math.abs(h)),_=[],E=0;for(;s?n>=u:n<=u;)i.toRegex===!0&&r>1?g(n):_.push(H0(d(n,E),l,f)),n=s?n-r:n+r,E++;return i.toRegex===!0?r>1?G0(m,i):ju(_,null,{wrap:!1,...i}):_},W0=(e,t,r=1,i={})=>{if(!Hr(e)&&e.length>1||!Hr(t)&&t.length>1)return Hu(e,t,i);let n=i.transform||(f=>String.fromCharCode(f)),u=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),o=u>s,a=Math.min(u,s),c=Math.max(u,s);if(i.toRegex&&r===1)return Mu(a,c,!1,i);let p=[],l=0;for(;o?u>=s:u<=s;)p.push(n(u,l)),u=o?u-r:u+r,l++;return i.toRegex===!0?ju(p,null,{wrap:!1,options:i}):p},Dn=(e,t,r,i={})=>{if(t==null&&ji(e))return[e];if(!ji(e)||!ji(t))return Hu(e,t,i);if(typeof r=="function")return Dn(e,t,1,{transform:r});if(Iu(r))return Dn(e,t,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,Hr(r)?Hr(e)&&Hr(t)?U0(e,t,r,n):W0(e,t,Math.max(Math.abs(r),1),n):r!=null&&!Iu(r)?q0(r,n):Dn(e,t,1,r)};Gu.exports=Dn});var Wu=te((MR,Uu)=>{"use strict";j();var K0=Hi(),qu=An(),Y0=(e,t={})=>{let r=(i,n={})=>{let u=qu.isInvalidBrace(n),s=i.invalid===!0&&t.escapeInvalid===!0,o=u===!0||s===!0,a=t.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return a+i.value;if(i.type==="open")return o?a+i.value:"(";if(i.type==="close")return o?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":o?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let p=qu.reduce(i.nodes),l=K0(...p,{...t,wrap:!1,toRegex:!0});if(l.length!==0)return p.length>1&&l.length>1?`(${l})`:l}if(i.nodes)for(let p of i.nodes)c+=r(p,i);return c};return r(e)};Uu.exports=Y0});var Vu=te((jR,Yu)=>{"use strict";j();var V0=Hi(),Ku=bn(),pr=An(),Yt=(e="",t="",r=!1)=>{let i=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?pr.flatten(t).map(n=>`{${n}}`):t;for(let n of e)if(Array.isArray(n))for(let u of n)i.push(Yt(u,t,r));else for(let u of t)r===!0&&typeof u=="string"&&(u=`{${u}}`),i.push(Array.isArray(u)?Yt(n,u,r):n+u);return pr.flatten(i)},Q0=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,i=(n,u={})=>{n.queue=[];let s=u,o=u.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,o=s.queue;if(n.invalid||n.dollar){o.push(Yt(o.pop(),Ku(n,t)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){o.push(Yt(o.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let l=pr.reduce(n.nodes);if(pr.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=V0(...l,t);f.length===0&&(f=Ku(n,t)),o.push(Yt(o.pop(),f)),n.nodes=[];return}let a=pr.encloseBrace(n),c=n.queue,p=n;for(;p.type!=="brace"&&p.type!=="root"&&p.parent;)p=p.parent,c=p.queue;for(let l=0;l<n.nodes.length;l++){let f=n.nodes[l];if(f.type==="comma"&&n.type==="brace"){l===1&&c.push(""),c.push("");continue}if(f.type==="close"){o.push(Yt(o.pop(),c,a));continue}if(f.value&&f.type!=="open"){c.push(Yt(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return pr.flatten(i(e))};Yu.exports=Q0});var Xu=te(($R,Qu)=>{"use strict";j();Qu.exports={MAX_LENGTH:1024*64,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:`
|
3
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var tc=te((HR,ec)=>{"use strict";j();var X0=bn(),{MAX_LENGTH:Ju,CHAR_BACKSLASH:Gi,CHAR_BACKTICK:J0,CHAR_COMMA:Z0,CHAR_DOT:z0,CHAR_LEFT_PARENTHESES:em,CHAR_RIGHT_PARENTHESES:tm,CHAR_LEFT_CURLY_BRACE:rm,CHAR_RIGHT_CURLY_BRACE:nm,CHAR_LEFT_SQUARE_BRACKET:Zu,CHAR_RIGHT_SQUARE_BRACKET:zu,CHAR_DOUBLE_QUOTE:im,CHAR_SINGLE_QUOTE:om,CHAR_NO_BREAK_SPACE:sm,CHAR_ZERO_WIDTH_NOBREAK_SPACE:am}=Xu(),um=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},i=typeof r.maxLength=="number"?Math.min(Ju,r.maxLength):Ju;if(e.length>i)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`);let n={type:"root",input:e,nodes:[]},u=[n],s=n,o=n,a=0,c=e.length,p=0,l=0,f,d={},m=()=>e[p++],g=_=>{if(_.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&_.type==="text"){o.value+=_.value;return}return s.nodes.push(_),_.parent=s,_.prev=o,o=_,_};for(g({type:"bos"});p<c;)if(s=u[u.length-1],f=m(),!(f===am||f===sm)){if(f===Gi){g({type:"text",value:(t.keepEscaping?f:"")+m()});continue}if(f===zu){g({type:"text",value:"\\"+f});continue}if(f===Zu){a++;let _=!0,E;for(;p<c&&(E=m());){if(f+=E,E===Zu){a++;continue}if(E===Gi){f+=m();continue}if(E===zu&&(a--,a===0))break}g({type:"text",value:f});continue}if(f===em){s=g({type:"paren",nodes:[]}),u.push(s),g({type:"text",value:f});continue}if(f===tm){if(s.type!=="paren"){g({type:"text",value:f});continue}s=u.pop(),g({type:"text",value:f}),s=u[u.length-1];continue}if(f===im||f===om||f===J0){let _=f,E;for(t.keepQuotes!==!0&&(f="");p<c&&(E=m());){if(E===Gi){f+=E+m();continue}if(E===_){t.keepQuotes===!0&&(f+=E);break}f+=E}g({type:"text",value:f});continue}if(f===rm){l++;let _=o.value&&o.value.slice(-1)==="$"||s.dollar===!0;s=g({type:"brace",open:!0,close:!1,dollar:_,depth:l,commas:0,ranges:0,nodes:[]}),u.push(s),g({type:"open",value:f});continue}if(f===nm){if(s.type!=="brace"){g({type:"text",value:f});continue}let _="close";s=u.pop(),s.close=!0,g({type:_,value:f}),l--,s=u[u.length-1];continue}if(f===Z0&&l>0){if(s.ranges>0){s.ranges=0;let _=s.nodes.shift();s.nodes=[_,{type:"text",value:X0(s)}]}g({type:"comma",value:f}),s.commas++;continue}if(f===z0&&l>0&&s.commas===0){let _=s.nodes;if(l===0||_.length===0){g({type:"text",value:f});continue}if(o.type==="dot"){if(s.range=[],o.value+=f,o.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,o.type="text";continue}s.ranges++,s.args=[];continue}if(o.type==="range"){_.pop();let E=_[_.length-1];E.value+=o.value+f,o=E,s.ranges--;continue}g({type:"dot",value:f});continue}g({type:"text",value:f})}do if(s=u.pop(),s.type!=="root"){s.nodes.forEach(h=>{h.nodes||(h.type==="open"&&(h.isOpen=!0),h.type==="close"&&(h.isClose=!0),h.nodes||(h.type="text"),h.invalid=!0)});let _=u[u.length-1],E=_.nodes.indexOf(s);_.nodes.splice(E,1,...s.nodes)}while(u.length>0);return g({type:"eos"}),n};ec.exports=um});var ic=te((GR,nc)=>{"use strict";j();var rc=bn(),cm=Wu(),lm=Vu(),pm=tc(),Qe=(e,t={})=>{let r=[];if(Array.isArray(e))for(let i of e){let n=Qe.create(i,t);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Qe.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Qe.parse=(e,t={})=>pm(e,t);Qe.stringify=(e,t={})=>rc(typeof e=="string"?Qe.parse(e,t):e,t);Qe.compile=(e,t={})=>(typeof e=="string"&&(e=Qe.parse(e,t)),cm(e,t));Qe.expand=(e,t={})=>{typeof e=="string"&&(e=Qe.parse(e,t));let r=lm(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Qe.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Qe.compile(e,t):Qe.expand(e,t);nc.exports=Qe});var Gr=te((qR,cc)=>{"use strict";j();var fm=require("path"),ut="\\\\/",oc=`[^${ut}]`,vt="\\.",dm="\\+",hm="\\?",xn="\\/",mm="(?=.)",sc="[^/]",qi=`(?:${xn}|$)`,ac=`(?:^|${xn})`,Ui=`${vt}{1,2}${qi}`,ym=`(?!${vt})`,gm=`(?!${ac}${Ui})`,vm=`(?!${vt}{0,1}${qi})`,_m=`(?!${Ui})`,Em=`[^.${xn}]`,Sm=`${sc}*?`,uc={DOT_LITERAL:vt,PLUS_LITERAL:dm,QMARK_LITERAL:hm,SLASH_LITERAL:xn,ONE_CHAR:mm,QMARK:sc,END_ANCHOR:qi,DOTS_SLASH:Ui,NO_DOT:ym,NO_DOTS:gm,NO_DOT_SLASH:vm,NO_DOTS_SLASH:_m,QMARK_NO_DOT:Em,STAR:Sm,START_ANCHOR:ac},Am={...uc,SLASH_LITERAL:`[${ut}]`,QMARK:oc,STAR:`${oc}*?`,DOTS_SLASH:`${vt}{1,2}(?:[${ut}]|$)`,NO_DOT:`(?!${vt})`,NO_DOTS:`(?!(?:^|[${ut}])${vt}{1,2}(?:[${ut}]|$))`,NO_DOT_SLASH:`(?!${vt}{0,1}(?:[${ut}]|$))`,NO_DOTS_SLASH:`(?!${vt}{1,2}(?:[${ut}]|$))`,QMARK_NO_DOT:`[^.${ut}]`,START_ANCHOR:`(?:^|[${ut}])`,END_ANCHOR:`(?:[${ut}]|$)`},bm={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"};cc.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:bm,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:fm.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===!0?Am:uc}}});var qr=te(qe=>{"use strict";j();var Dm=require("path"),xm=process.platform==="win32",{REGEX_BACKSLASH:wm,REGEX_REMOVE_BACKSLASH:Cm,REGEX_SPECIAL_CHARS:km,REGEX_SPECIAL_CHARS_GLOBAL:Fm}=Gr();qe.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);qe.hasRegexChars=e=>km.test(e);qe.isRegexChar=e=>e.length===1&&qe.hasRegexChars(e);qe.escapeRegex=e=>e.replace(Fm,"\\$1");qe.toPosixSlashes=e=>e.replace(wm,"/");qe.removeBackslashes=e=>e.replace(Cm,t=>t==="\\"?"":t);qe.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};qe.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:xm===!0||Dm.sep==="\\";qe.escapeLast=(e,t,r)=>{let i=e.lastIndexOf(t,r);return i===-1?e:e[i-1]==="\\"?qe.escapeLast(e,t,i-1):`${e.slice(0,i)}\\${e.slice(i)}`};qe.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};qe.wrapOutput=(e,t={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",u=`${i}(?:${e})${n}`;return t.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}});var gc=te((WR,yc)=>{"use strict";j();var lc=qr(),{CHAR_ASTERISK:Wi,CHAR_AT:Rm,CHAR_BACKWARD_SLASH:Ur,CHAR_COMMA:Om,CHAR_DOT:Ki,CHAR_EXCLAMATION_MARK:Yi,CHAR_FORWARD_SLASH:mc,CHAR_LEFT_CURLY_BRACE:Vi,CHAR_LEFT_PARENTHESES:Qi,CHAR_LEFT_SQUARE_BRACKET:Tm,CHAR_PLUS:Pm,CHAR_QUESTION_MARK:pc,CHAR_RIGHT_CURLY_BRACE:Lm,CHAR_RIGHT_PARENTHESES:fc,CHAR_RIGHT_SQUARE_BRACKET:Im}=Gr(),dc=e=>e===mc||e===Ur,hc=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Nm=(e,t)=>{let r=t||{},i=e.length-1,n=r.parts===!0||r.scanToEnd===!0,u=[],s=[],o=[],a=e,c=-1,p=0,l=0,f=!1,d=!1,m=!1,g=!1,_=!1,E=!1,h=!1,v=!1,x=!1,y=!1,A=0,b,k,D={value:"",depth:0,isGlob:!1},F=()=>c>=i,w=()=>a.charCodeAt(c+1),O=()=>(b=k,a.charCodeAt(++c));for(;c<i;){k=O();let L;if(k===Ur){h=D.backslashes=!0,k=O(),k===Vi&&(E=!0);continue}if(E===!0||k===Vi){for(A++;F()!==!0&&(k=O());){if(k===Ur){h=D.backslashes=!0,O();continue}if(k===Vi){A++;continue}if(E!==!0&&k===Ki&&(k=O())===Ki){if(f=D.isBrace=!0,m=D.isGlob=!0,y=!0,n===!0)continue;break}if(E!==!0&&k===Om){if(f=D.isBrace=!0,m=D.isGlob=!0,y=!0,n===!0)continue;break}if(k===Lm&&(A--,A===0)){E=!1,f=D.isBrace=!0,y=!0;break}}if(n===!0)continue;break}if(k===mc){if(u.push(c),s.push(D),D={value:"",depth:0,isGlob:!1},y===!0)continue;if(b===Ki&&c===p+1){p+=2;continue}l=c+1;continue}if(r.noext!==!0&&(k===Pm||k===Rm||k===Wi||k===pc||k===Yi)===!0&&w()===Qi){if(m=D.isGlob=!0,g=D.isExtglob=!0,y=!0,k===Yi&&c===p&&(x=!0),n===!0){for(;F()!==!0&&(k=O());){if(k===Ur){h=D.backslashes=!0,k=O();continue}if(k===fc){m=D.isGlob=!0,y=!0;break}}continue}break}if(k===Wi){if(b===Wi&&(_=D.isGlobstar=!0),m=D.isGlob=!0,y=!0,n===!0)continue;break}if(k===pc){if(m=D.isGlob=!0,y=!0,n===!0)continue;break}if(k===Tm){for(;F()!==!0&&(L=O());){if(L===Ur){h=D.backslashes=!0,O();continue}if(L===Im){d=D.isBracket=!0,m=D.isGlob=!0,y=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&k===Yi&&c===p){v=D.negated=!0,p++;continue}if(r.noparen!==!0&&k===Qi){if(m=D.isGlob=!0,n===!0){for(;F()!==!0&&(k=O());){if(k===Qi){h=D.backslashes=!0,k=O();continue}if(k===fc){y=!0;break}}continue}break}if(m===!0){if(y=!0,n===!0)continue;break}}r.noext===!0&&(g=!1,m=!1);let P=a,C="",S="";p>0&&(C=a.slice(0,p),a=a.slice(p),l-=p),P&&m===!0&&l>0?(P=a.slice(0,l),S=a.slice(l)):m===!0?(P="",S=a):P=a,P&&P!==""&&P!=="/"&&P!==a&&dc(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),r.unescape===!0&&(S&&(S=lc.removeBackslashes(S)),P&&h===!0&&(P=lc.removeBackslashes(P)));let R={prefix:C,input:e,start:p,base:P,glob:S,isBrace:f,isBracket:d,isGlob:m,isExtglob:g,isGlobstar:_,negated:v,negatedExtglob:x};if(r.tokens===!0&&(R.maxDepth=0,dc(k)||s.push(D),R.tokens=s),r.parts===!0||r.tokens===!0){let L;for(let M=0;M<u.length;M++){let B=L?L+1:p,Q=u[M],Z=e.slice(B,Q);r.tokens&&(M===0&&p!==0?(s[M].isPrefix=!0,s[M].value=C):s[M].value=Z,hc(s[M]),R.maxDepth+=s[M].depth),(M!==0||Z!=="")&&o.push(Z),L=Q}if(L&&L+1<e.length){let M=e.slice(L+1);o.push(M),r.tokens&&(s[s.length-1].value=M,hc(s[s.length-1]),R.maxDepth+=s[s.length-1].depth)}R.slashes=u,R.parts=o}return R};yc.exports=Nm});var Ec=te((KR,_c)=>{"use strict";j();var wn=Gr(),Xe=qr(),{MAX_LENGTH:Cn,POSIX_REGEX_SOURCE:Bm,REGEX_NON_SPECIAL_CHARS:Mm,REGEX_SPECIAL_CHARS_BACKREF:jm,REPLACEMENTS:vc}=wn,$m=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(n=>Xe.escapeRegex(n)).join("..")}return r},fr=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Xi=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=vc[e]||e;let r={...t},i=typeof r.maxLength=="number"?Math.min(Cn,r.maxLength):Cn,n=e.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let u={type:"bos",value:"",output:r.prepend||""},s=[u],o=r.capture?"":"?:",a=Xe.isWindows(t),c=wn.globChars(a),p=wn.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:g,NO_DOT:_,NO_DOT_SLASH:E,NO_DOTS_SLASH:h,QMARK:v,QMARK_NO_DOT:x,STAR:y,START_ANCHOR:A}=c,b=$=>`(${o}(?:(?!${A}${$.dot?g:l}).)*?)`,k=r.dot?"":_,D=r.dot?v:x,F=r.bash===!0?b(r):y;r.capture&&(F=`(${F})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let w={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=Xe.removePrefix(e,w),n=e.length;let O=[],P=[],C=[],S=u,R,L=()=>w.index===n-1,M=w.peek=($=1)=>e[w.index+$],B=w.advance=()=>e[++w.index]||"",Q=()=>e.slice(w.index+1),Z=($="",K=0)=>{w.consumed+=$,w.index+=K},oe=$=>{w.output+=$.output!=null?$.output:$.value,Z($.value)},N=()=>{let $=1;for(;M()==="!"&&(M(2)!=="("||M(3)==="?");)B(),w.start++,$++;return $%2===0?!1:(w.negated=!0,w.start++,!0)},le=$=>{w[$]++,C.push($)},pe=$=>{w[$]--,C.pop()},ne=$=>{if(S.type==="globstar"){let K=w.braces>0&&($.type==="comma"||$.type==="brace"),Y=$.extglob===!0||O.length&&($.type==="pipe"||$.type==="paren");$.type!=="slash"&&$.type!=="paren"&&!K&&!Y&&(w.output=w.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=F,w.output+=S.output)}if(O.length&&$.type!=="paren"&&(O[O.length-1].inner+=$.value),($.value||$.output)&&oe($),S&&S.type==="text"&&$.type==="text"){S.value+=$.value,S.output=(S.output||"")+$.value;return}$.prev=S,s.push($),S=$},T=($,K)=>{let Y={...p[K],conditions:1,inner:""};Y.prev=S,Y.parens=w.parens,Y.output=w.output;let z=(r.capture?"(":"")+Y.open;le("parens"),ne({type:$,value:K,output:w.output?"":m}),ne({type:"paren",extglob:!0,value:B(),output:z}),O.push(Y)},I=$=>{let K=$.close+(r.capture?")":""),Y;if($.type==="negate"){let z=F;if($.inner&&$.inner.length>1&&$.inner.includes("/")&&(z=b(r)),(z!==F||L()||/^\)+$/.test(Q()))&&(K=$.close=`)$))${z}`),$.inner.includes("*")&&(Y=Q())&&/^\.[^\\/.]+$/.test(Y)){let X=Xi(Y,{...t,fastpaths:!1}).output;K=$.close=`)${X})${z})`}$.prev.type==="bos"&&(w.negatedExtglob=!0)}ne({type:"paren",extglob:!0,value:R,output:K}),pe("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let $=!1,K=e.replace(jm,(Y,z,X,ee,ie,ye)=>ee==="\\"?($=!0,Y):ee==="?"?z?z+ee+(ie?v.repeat(ie.length):""):ye===0?D+(ie?v.repeat(ie.length):""):v.repeat(X.length):ee==="."?l.repeat(X.length):ee==="*"?z?z+ee+(ie?F:""):F:z?Y:`\\${Y}`);return $===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),K===e&&r.contains===!0?(w.output=e,w):(w.output=Xe.wrapOutput(K,w,t),w)}for(;!L();){if(R=B(),R==="\0")continue;if(R==="\\"){let Y=M();if(Y==="/"&&r.bash!==!0||Y==="."||Y===";")continue;if(!Y){R+="\\",ne({type:"text",value:R});continue}let z=/^\\+/.exec(Q()),X=0;if(z&&z[0].length>2&&(X=z[0].length,w.index+=X,X%2!==0&&(R+="\\")),r.unescape===!0?R=B():R+=B(),w.brackets===0){ne({type:"text",value:R});continue}}if(w.brackets>0&&(R!=="]"||S.value==="["||S.value==="[^")){if(r.posix!==!1&&R===":"){let Y=S.value.slice(1);if(Y.includes("[")&&(S.posix=!0,Y.includes(":"))){let z=S.value.lastIndexOf("["),X=S.value.slice(0,z),ee=S.value.slice(z+2),ie=Bm[ee];if(ie){S.value=X+ie,w.backtrack=!0,B(),!u.output&&s.indexOf(S)===1&&(u.output=m);continue}}}(R==="["&&M()!==":"||R==="-"&&M()==="]")&&(R=`\\${R}`),R==="]"&&(S.value==="["||S.value==="[^")&&(R=`\\${R}`),r.posix===!0&&R==="!"&&S.value==="["&&(R="^"),S.value+=R,oe({value:R});continue}if(w.quotes===1&&R!=='"'){R=Xe.escapeRegex(R),S.value+=R,oe({value:R});continue}if(R==='"'){w.quotes=w.quotes===1?0:1,r.keepQuotes===!0&&ne({type:"text",value:R});continue}if(R==="("){le("parens"),ne({type:"paren",value:R});continue}if(R===")"){if(w.parens===0&&r.strictBrackets===!0)throw new SyntaxError(fr("opening","("));let Y=O[O.length-1];if(Y&&w.parens===Y.parens+1){I(O.pop());continue}ne({type:"paren",value:R,output:w.parens?")":"\\)"}),pe("parens");continue}if(R==="["){if(r.nobracket===!0||!Q().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(fr("closing","]"));R=`\\${R}`}else le("brackets");ne({type:"bracket",value:R});continue}if(R==="]"){if(r.nobracket===!0||S&&S.type==="bracket"&&S.value.length===1){ne({type:"text",value:R,output:`\\${R}`});continue}if(w.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(fr("opening","["));ne({type:"text",value:R,output:`\\${R}`});continue}pe("brackets");let Y=S.value.slice(1);if(S.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(R=`/${R}`),S.value+=R,oe({value:R}),r.literalBrackets===!1||Xe.hasRegexChars(Y))continue;let z=Xe.escapeRegex(S.value);if(w.output=w.output.slice(0,-S.value.length),r.literalBrackets===!0){w.output+=z,S.value=z;continue}S.value=`(${o}${z}|${S.value})`,w.output+=S.value;continue}if(R==="{"&&r.nobrace!==!0){le("braces");let Y={type:"brace",value:R,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};P.push(Y),ne(Y);continue}if(R==="}"){let Y=P[P.length-1];if(r.nobrace===!0||!Y){ne({type:"text",value:R,output:R});continue}let z=")";if(Y.dots===!0){let X=s.slice(),ee=[];for(let ie=X.length-1;ie>=0&&(s.pop(),X[ie].type!=="brace");ie--)X[ie].type!=="dots"&&ee.unshift(X[ie].value);z=$m(ee,r),w.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){let X=w.output.slice(0,Y.outputIndex),ee=w.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",R=z="\\}",w.output=X;for(let ie of ee)w.output+=ie.output||ie.value}ne({type:"brace",value:R,output:z}),pe("braces"),P.pop();continue}if(R==="|"){O.length>0&&O[O.length-1].conditions++,ne({type:"text",value:R});continue}if(R===","){let Y=R,z=P[P.length-1];z&&C[C.length-1]==="braces"&&(z.comma=!0,Y="|"),ne({type:"comma",value:R,output:Y});continue}if(R==="/"){if(S.type==="dot"&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",s.pop(),S=u;continue}ne({type:"slash",value:R,output:d});continue}if(R==="."){if(w.braces>0&&S.type==="dot"){S.value==="."&&(S.output=l);let Y=P[P.length-1];S.type="dots",S.output+=R,S.value+=R,Y.dots=!0;continue}if(w.braces+w.parens===0&&S.type!=="bos"&&S.type!=="slash"){ne({type:"text",value:R,output:l});continue}ne({type:"dot",value:R,output:l});continue}if(R==="?"){if(!(S&&S.value==="(")&&r.noextglob!==!0&&M()==="("&&M(2)!=="?"){T("qmark",R);continue}if(S&&S.type==="paren"){let z=M(),X=R;if(z==="<"&&!Xe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(S.value==="("&&!/[!=<:]/.test(z)||z==="<"&&!/<([!=]|\w+>)/.test(Q()))&&(X=`\\${R}`),ne({type:"text",value:R,output:X});continue}if(r.dot!==!0&&(S.type==="slash"||S.type==="bos")){ne({type:"qmark",value:R,output:x});continue}ne({type:"qmark",value:R,output:v});continue}if(R==="!"){if(r.noextglob!==!0&&M()==="("&&(M(2)!=="?"||!/[!=<:]/.test(M(3)))){T("negate",R);continue}if(r.nonegate!==!0&&w.index===0){N();continue}}if(R==="+"){if(r.noextglob!==!0&&M()==="("&&M(2)!=="?"){T("plus",R);continue}if(S&&S.value==="("||r.regex===!1){ne({type:"plus",value:R,output:f});continue}if(S&&(S.type==="bracket"||S.type==="paren"||S.type==="brace")||w.parens>0){ne({type:"plus",value:R});continue}ne({type:"plus",value:f});continue}if(R==="@"){if(r.noextglob!==!0&&M()==="("&&M(2)!=="?"){ne({type:"at",extglob:!0,value:R,output:""});continue}ne({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let Y=Mm.exec(Q());Y&&(R+=Y[0],w.index+=Y[0].length),ne({type:"text",value:R});continue}if(S&&(S.type==="globstar"||S.star===!0)){S.type="star",S.star=!0,S.value+=R,S.output=F,w.backtrack=!0,w.globstar=!0,Z(R);continue}let $=Q();if(r.noextglob!==!0&&/^\([^?]/.test($)){T("star",R);continue}if(S.type==="star"){if(r.noglobstar===!0){Z(R);continue}let Y=S.prev,z=Y.prev,X=Y.type==="slash"||Y.type==="bos",ee=z&&(z.type==="star"||z.type==="globstar");if(r.bash===!0&&(!X||$[0]&&$[0]!=="/")){ne({type:"star",value:R,output:""});continue}let ie=w.braces>0&&(Y.type==="comma"||Y.type==="brace"),ye=O.length&&(Y.type==="pipe"||Y.type==="paren");if(!X&&Y.type!=="paren"&&!ie&&!ye){ne({type:"star",value:R,output:""});continue}for(;$.slice(0,3)==="/**";){let se=e[w.index+4];if(se&&se!=="/")break;$=$.slice(3),Z("/**",3)}if(Y.type==="bos"&&L()){S.type="globstar",S.value+=R,S.output=b(r),w.output=S.output,w.globstar=!0,Z(R);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!ee&&L()){w.output=w.output.slice(0,-(Y.output+S.output).length),Y.output=`(?:${Y.output}`,S.type="globstar",S.output=b(r)+(r.strictSlashes?")":"|$)"),S.value+=R,w.globstar=!0,w.output+=Y.output+S.output,Z(R);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&$[0]==="/"){let se=$[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(Y.output+S.output).length),Y.output=`(?:${Y.output}`,S.type="globstar",S.output=`${b(r)}${d}|${d}${se})`,S.value+=R,w.output+=Y.output+S.output,w.globstar=!0,Z(R+B()),ne({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&$[0]==="/"){S.type="globstar",S.value+=R,S.output=`(?:^|${d}|${b(r)}${d})`,w.output=S.output,w.globstar=!0,Z(R+B()),ne({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-S.output.length),S.type="globstar",S.output=b(r),S.value+=R,w.output+=S.output,w.globstar=!0,Z(R);continue}let K={type:"star",value:R,output:F};if(r.bash===!0){K.output=".*?",(S.type==="bos"||S.type==="slash")&&(K.output=k+K.output),ne(K);continue}if(S&&(S.type==="bracket"||S.type==="paren")&&r.regex===!0){K.output=R,ne(K);continue}(w.index===w.start||S.type==="slash"||S.type==="dot")&&(S.type==="dot"?(w.output+=E,S.output+=E):r.dot===!0?(w.output+=h,S.output+=h):(w.output+=k,S.output+=k),M()!=="*"&&(w.output+=m,S.output+=m)),ne(K)}for(;w.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(fr("closing","]"));w.output=Xe.escapeLast(w.output,"["),pe("brackets")}for(;w.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(fr("closing",")"));w.output=Xe.escapeLast(w.output,"("),pe("parens")}for(;w.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(fr("closing","}"));w.output=Xe.escapeLast(w.output,"{"),pe("braces")}if(r.strictSlashes!==!0&&(S.type==="star"||S.type==="bracket")&&ne({type:"maybe_slash",value:"",output:`${d}?`}),w.backtrack===!0){w.output="";for(let $ of w.tokens)w.output+=$.output!=null?$.output:$.value,$.suffix&&(w.output+=$.suffix)}return w};Xi.fastpaths=(e,t)=>{let r={...t},i=typeof r.maxLength=="number"?Math.min(Cn,r.maxLength):Cn,n=e.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);e=vc[e]||e;let u=Xe.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:p,NO_DOTS:l,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:m}=wn.globChars(u),g=r.dot?l:p,_=r.dot?f:p,E=r.capture?"":"?:",h={negated:!1,prefix:""},v=r.bash===!0?".*?":d;r.capture&&(v=`(${v})`);let x=k=>k.noglobstar===!0?v:`(${E}(?:(?!${m}${k.dot?c:s}).)*?)`,y=k=>{switch(k){case"*":return`${g}${a}${v}`;case".*":return`${s}${a}${v}`;case"*.*":return`${g}${v}${s}${a}${v}`;case"*/*":return`${g}${v}${o}${a}${_}${v}`;case"**":return g+x(r);case"**/*":return`(?:${g}${x(r)}${o})?${_}${a}${v}`;case"**/*.*":return`(?:${g}${x(r)}${o})?${_}${v}${s}${a}${v}`;case"**/.*":return`(?:${g}${x(r)}${o})?${s}${a}${v}`;default:{let D=/^(.*?)\.(\w+)$/.exec(k);if(!D)return;let F=y(D[1]);return F?F+s+D[2]:void 0}}},A=Xe.removePrefix(e,h),b=y(A);return b&&r.strictSlashes!==!0&&(b+=`${o}?`),b};_c.exports=Xi});var Ac=te((YR,Sc)=>{"use strict";j();var Hm=require("path"),Gm=gc(),Ji=Ec(),Zi=qr(),qm=Gr(),Um=e=>e&&typeof e=="object"&&!Array.isArray(e),De=(e,t,r=!1)=>{if(Array.isArray(e)){let p=e.map(f=>De(f,t,r));return f=>{for(let d of p){let m=d(f);if(m)return m}return!1}}let i=Um(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=t||{},u=Zi.isWindows(t),s=i?De.compileRe(e,t):De.makeRe(e,t,!1,!0),o=s.state;delete s.state;let a=()=>!1;if(n.ignore){let p={...t,ignore:null,onMatch:null,onResult:null};a=De(n.ignore,p,r)}let c=(p,l=!1)=>{let{isMatch:f,match:d,output:m}=De.test(p,s,t,{glob:e,posix:u}),g={glob:e,state:o,regex:s,posix:u,input:p,output:m,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(g),f===!1?(g.isMatch=!1,l?g:!1):a(p)?(typeof n.onIgnore=="function"&&n.onIgnore(g),g.isMatch=!1,l?g:!1):(typeof n.onMatch=="function"&&n.onMatch(g),l?g:!0)};return r&&(c.state=o),c};De.test=(e,t,r,{glob:i,posix:n}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let u=r||{},s=u.format||(n?Zi.toPosixSlashes:null),o=e===i,a=o&&s?s(e):e;return o===!1&&(a=s?s(e):e,o=a===i),(o===!1||u.capture===!0)&&(u.matchBase===!0||u.basename===!0?o=De.matchBase(e,t,r,n):o=t.exec(a)),{isMatch:Boolean(o),match:o,output:a}};De.matchBase=(e,t,r,i=Zi.isWindows(r))=>(t instanceof RegExp?t:De.makeRe(t,r)).test(Hm.basename(e));De.isMatch=(e,t,r)=>De(t,r)(e);De.parse=(e,t)=>Array.isArray(e)?e.map(r=>De.parse(r,t)):Ji(e,{...t,fastpaths:!1});De.scan=(e,t)=>Gm(e,t);De.compileRe=(e,t,r=!1,i=!1)=>{if(r===!0)return e.output;let n=t||{},u=n.contains?"":"^",s=n.contains?"":"$",o=`${u}(?:${e.output})${s}`;e&&e.negated===!0&&(o=`^(?!${o}).*$`);let a=De.toRegex(o,t);return i===!0&&(a.state=e),a};De.makeRe=(e,t={},r=!1,i=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(n.output=Ji.fastpaths(e,t)),n.output||(n=Ji(e,t)),De.compileRe(n,t,r,i)};De.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};De.constants=qm;Sc.exports=De});var Dc=te((VR,bc)=>{"use strict";j();bc.exports=Ac()});var Fc=te((QR,kc)=>{"use strict";j();var wc=require("util"),Cc=ic(),ct=Dc(),zi=qr(),xc=e=>e===""||e==="./",be=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let i=new Set,n=new Set,u=new Set,s=0,o=p=>{u.add(p.output),r&&r.onResult&&r.onResult(p)};for(let p=0;p<t.length;p++){let l=ct(String(t[p]),{...r,onResult:o},!0),f=l.state.negated||l.state.negatedExtglob;f&&s++;for(let d of e){let m=l(d,!0);!(f?!m.isMatch:m.isMatch)||(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(s===t.length?[...u]:[...n]).filter(p=>!i.has(p));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(p=>p.replace(/\\/g,"")):t}return c};be.match=be;be.matcher=(e,t)=>ct(e,t);be.isMatch=(e,t,r)=>ct(t,r)(e);be.any=be.isMatch;be.not=(e,t,r={})=>{t=[].concat(t).map(String);let i=new Set,n=[],u=o=>{r.onResult&&r.onResult(o),n.push(o.output)},s=new Set(be(e,t,{...r,onResult:u}));for(let o of n)s.has(o)||i.add(o);return[...i]};be.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${wc.inspect(e)}"`);if(Array.isArray(t))return t.some(i=>be.contains(e,i,r));if(typeof t=="string"){if(xc(e)||xc(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return be.isMatch(e,t,{...r,contains:!0})};be.matchKeys=(e,t,r)=>{if(!zi.isObject(e))throw new TypeError("Expected the first argument to be an object");let i=be(Object.keys(e),t,r),n={};for(let u of i)n[u]=e[u];return n};be.some=(e,t,r)=>{let i=[].concat(e);for(let n of[].concat(t)){let u=ct(String(n),r);if(i.some(s=>u(s)))return!0}return!1};be.every=(e,t,r)=>{let i=[].concat(e);for(let n of[].concat(t)){let u=ct(String(n),r);if(!i.every(s=>u(s)))return!1}return!0};be.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${wc.inspect(e)}"`);return[].concat(t).every(i=>ct(i,r)(e))};be.capture=(e,t,r)=>{let i=zi.isWindows(r),u=ct.makeRe(String(e),{...r,capture:!0}).exec(i?zi.toPosixSlashes(t):t);if(u)return u.slice(1).map(s=>s===void 0?"":s)};be.makeRe=(...e)=>ct.makeRe(...e);be.scan=(...e)=>ct.scan(...e);be.parse=(e,t)=>{let r=[];for(let i of[].concat(e||[]))for(let n of Cc(String(i),t))r.push(ct.parse(n,t));return r};be.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Cc(e,t)};be.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return be.braces(e,{...t,expand:!0})};kc.exports=be});var Bc=te(ge=>{"use strict";j();Object.defineProperty(ge,"__esModule",{value:!0});ge.matchAny=ge.convertPatternsToRe=ge.makeRe=ge.getPatternParts=ge.expandBraceExpansion=ge.expandPatternsWithBraceExpansion=ge.isAffectDepthOfReadingPattern=ge.endsWithSlashGlobStar=ge.hasGlobStar=ge.getBaseDirectory=ge.isPatternRelatedToParentDirectory=ge.getPatternsOutsideCurrentDirectory=ge.getPatternsInsideCurrentDirectory=ge.getPositivePatterns=ge.getNegativePatterns=ge.isPositivePattern=ge.isNegativePattern=ge.convertToNegativePattern=ge.convertToPositivePattern=ge.isDynamicPattern=ge.isStaticPattern=void 0;var Wm=require("path"),Km=Su(),eo=Fc(),Rc="**",Ym="\\",Vm=/[*?]|^!/,Qm=/\[[^[]*]/,Xm=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Jm=/[!*+?@]\([^(]*\)/,Zm=/,|\.\./;function Oc(e,t={}){return!Tc(e,t)}ge.isStaticPattern=Oc;function Tc(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Ym)||Vm.test(e)||Qm.test(e)||Xm.test(e)||t.extglob!==!1&&Jm.test(e)||t.braceExpansion!==!1&&zm(e))}ge.isDynamicPattern=Tc;function zm(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let i=e.slice(t,r);return Zm.test(i)}function ey(e){return kn(e)?e.slice(1):e}ge.convertToPositivePattern=ey;function ty(e){return"!"+e}ge.convertToNegativePattern=ty;function kn(e){return e.startsWith("!")&&e[1]!=="("}ge.isNegativePattern=kn;function Pc(e){return!kn(e)}ge.isPositivePattern=Pc;function ry(e){return e.filter(kn)}ge.getNegativePatterns=ry;function ny(e){return e.filter(Pc)}ge.getPositivePatterns=ny;function iy(e){return e.filter(t=>!to(t))}ge.getPatternsInsideCurrentDirectory=iy;function oy(e){return e.filter(to)}ge.getPatternsOutsideCurrentDirectory=oy;function to(e){return e.startsWith("..")||e.startsWith("./..")}ge.isPatternRelatedToParentDirectory=to;function sy(e){return Km(e,{flipBackslashes:!1})}ge.getBaseDirectory=sy;function ay(e){return e.includes(Rc)}ge.hasGlobStar=ay;function Lc(e){return e.endsWith("/"+Rc)}ge.endsWithSlashGlobStar=Lc;function uy(e){let t=Wm.basename(e);return Lc(e)||Oc(t)}ge.isAffectDepthOfReadingPattern=uy;function cy(e){return e.reduce((t,r)=>t.concat(Ic(r)),[])}ge.expandPatternsWithBraceExpansion=cy;function Ic(e){return eo.braces(e,{expand:!0,nodupes:!0})}ge.expandBraceExpansion=Ic;function ly(e,t){let{parts:r}=eo.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}ge.getPatternParts=ly;function Nc(e,t){return eo.makeRe(e,t)}ge.makeRe=Nc;function py(e,t){return e.map(r=>Nc(r,t))}ge.convertPatternsToRe=py;function fy(e,t){return t.some(r=>r.test(e))}ge.matchAny=fy});var Hc=te((JR,$c)=>{"use strict";j();var dy=require("stream"),Mc=dy.PassThrough,hy=Array.prototype.slice;$c.exports=my;function my(){let e=[],t=hy.call(arguments),r=!1,i=t[t.length-1];i&&!Array.isArray(i)&&i.pipe==null?t.pop():i={};let n=i.end!==!1,u=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let s=Mc(i);function o(){for(let p=0,l=arguments.length;p<l;p++)e.push(jc(arguments[p],i));return a(),this}function a(){if(r)return;r=!0;let p=e.shift();if(!p){process.nextTick(c);return}Array.isArray(p)||(p=[p]);let l=p.length+1;function f(){--l>0||(r=!1,a())}function d(m){function g(){m.removeListener("merge2UnpipeEnd",g),m.removeListener("end",g),u&&m.removeListener("error",_),f()}function _(E){s.emit("error",E)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",g),m.on("end",g),u&&m.on("error",_),m.pipe(s,{end:!1}),m.resume()}for(let m=0;m<p.length;m++)d(p[m]);f()}function c(){r=!1,s.emit("queueDrain"),n&&s.end()}return s.setMaxListeners(0),s.add=o,s.on("unpipe",function(p){p.emit("merge2UnpipeEnd")}),t.length&&o.apply(null,t),s}function jc(e,t){if(Array.isArray(e))for(let r=0,i=e.length;r<i;r++)e[r]=jc(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Mc(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var qc=te(Fn=>{"use strict";j();Object.defineProperty(Fn,"__esModule",{value:!0});Fn.merge=void 0;var yy=Hc();function gy(e){let t=yy(e);return e.forEach(r=>{r.once("error",i=>t.emit("error",i))}),t.once("close",()=>Gc(e)),t.once("end",()=>Gc(e)),t}Fn.merge=gy;function Gc(e){e.forEach(t=>t.emit("close"))}});var Uc=te(dr=>{"use strict";j();Object.defineProperty(dr,"__esModule",{value:!0});dr.isEmpty=dr.isString=void 0;function vy(e){return typeof e=="string"}dr.isString=vy;function _y(e){return e===""}dr.isEmpty=_y});var _t=te(Pe=>{"use strict";j();Object.defineProperty(Pe,"__esModule",{value:!0});Pe.string=Pe.stream=Pe.pattern=Pe.path=Pe.fs=Pe.errno=Pe.array=void 0;var Ey=pu();Pe.array=Ey;var Sy=fu();Pe.errno=Sy;var Ay=du();Pe.fs=Ay;var by=hu();Pe.path=by;var Dy=Bc();Pe.pattern=Dy;var xy=qc();Pe.stream=xy;var wy=Uc();Pe.string=wy});var Yc=te(Le=>{"use strict";j();Object.defineProperty(Le,"__esModule",{value:!0});Le.convertPatternGroupToTask=Le.convertPatternGroupsToTasks=Le.groupPatternsByBaseDirectory=Le.getNegativePatternsAsPositive=Le.getPositivePatterns=Le.convertPatternsToTasks=Le.generate=void 0;var Et=_t();function Cy(e,t){let r=Wc(e),i=Kc(e,t.ignore),n=r.filter(a=>Et.pattern.isStaticPattern(a,t)),u=r.filter(a=>Et.pattern.isDynamicPattern(a,t)),s=ro(n,i,!1),o=ro(u,i,!0);return s.concat(o)}Le.generate=Cy;function ro(e,t,r){let i=[],n=Et.pattern.getPatternsOutsideCurrentDirectory(e),u=Et.pattern.getPatternsInsideCurrentDirectory(e),s=no(n),o=no(u);return i.push(...io(s,t,r)),"."in o?i.push(oo(".",u,t,r)):i.push(...io(o,t,r)),i}Le.convertPatternsToTasks=ro;function Wc(e){return Et.pattern.getPositivePatterns(e)}Le.getPositivePatterns=Wc;function Kc(e,t){return Et.pattern.getNegativePatterns(e).concat(t).map(Et.pattern.convertToPositivePattern)}Le.getNegativePatternsAsPositive=Kc;function no(e){let t={};return e.reduce((r,i)=>{let n=Et.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},t)}Le.groupPatternsByBaseDirectory=no;function io(e,t,r){return Object.keys(e).map(i=>oo(i,e[i],t,r))}Le.convertPatternGroupsToTasks=io;function oo(e,t,r,i){return{dynamic:i,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Et.pattern.convertToNegativePattern))}}Le.convertPatternGroupToTask=oo});var Qc=te(hr=>{"use strict";j();Object.defineProperty(hr,"__esModule",{value:!0});hr.removeDuplicateSlashes=hr.transform=void 0;var ky=/(?!^)\/{2,}/g;function Fy(e){return e.map(t=>Vc(t))}hr.transform=Fy;function Vc(e){return e.replace(ky,"/")}hr.removeDuplicateSlashes=Vc});var Jc=te(Rn=>{"use strict";j();Object.defineProperty(Rn,"__esModule",{value:!0});Rn.read=void 0;function Ry(e,t,r){t.fs.lstat(e,(i,n)=>{if(i!==null){Xc(r,i);return}if(!n.isSymbolicLink()||!t.followSymbolicLink){so(r,n);return}t.fs.stat(e,(u,s)=>{if(u!==null){if(t.throwErrorOnBrokenSymbolicLink){Xc(r,u);return}so(r,n);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),so(r,s)})})}Rn.read=Ry;function Xc(e,t){e(t)}function so(e,t){e(null,t)}});var Zc=te(On=>{"use strict";j();Object.defineProperty(On,"__esModule",{value:!0});On.read=void 0;function Oy(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let i=t.fs.statSync(e);return t.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw i}}On.read=Oy});var zc=te(Ct=>{"use strict";j();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.createFileSystemAdapter=Ct.FILE_SYSTEM_ADAPTER=void 0;var Tn=require("fs");Ct.FILE_SYSTEM_ADAPTER={lstat:Tn.lstat,stat:Tn.stat,lstatSync:Tn.lstatSync,statSync:Tn.statSync};function Ty(e){return e===void 0?Ct.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ct.FILE_SYSTEM_ADAPTER),e)}Ct.createFileSystemAdapter=Ty});var el=te(uo=>{"use strict";j();Object.defineProperty(uo,"__esModule",{value:!0});var Py=zc(),ao=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Py.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t!=null?t:r}};uo.default=ao});var Vt=te(kt=>{"use strict";j();Object.defineProperty(kt,"__esModule",{value:!0});kt.statSync=kt.stat=kt.Settings=void 0;var tl=Jc(),Ly=Zc(),co=el();kt.Settings=co.default;function Iy(e,t,r){if(typeof t=="function"){tl.read(e,lo(),t);return}tl.read(e,lo(t),r)}kt.stat=Iy;function Ny(e,t){let r=lo(t);return Ly.read(e,r)}kt.statSync=Ny;function lo(e={}){return e instanceof co.default?e:new co.default(e)}});var il=te((uO,nl)=>{j();var rl;nl.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(rl||(rl=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var sl=te((cO,ol)=>{j();ol.exports=My;var By=il();function My(e,t){let r,i,n,u=!0;Array.isArray(e)?(r=[],i=e.length):(n=Object.keys(e),r={},i=n.length);function s(a){function c(){t&&t(a,r),t=null}u?By(c):c()}function o(a,c,p){r[a]=p,(--i===0||c)&&s(c)}i?n?n.forEach(function(a){e[a](function(c,p){o(a,c,p)})}):e.forEach(function(a,c){a(function(p,l){o(c,p,l)})}):s(null),u=!1}});var po=te(Ln=>{"use strict";j();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Pn=process.versions.node.split(".");if(Pn[0]===void 0||Pn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var al=Number.parseInt(Pn[0],10),jy=Number.parseInt(Pn[1],10),ul=10,$y=10,Hy=al>ul,Gy=al===ul&&jy>=$y;Ln.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Hy||Gy});var cl=te(In=>{"use strict";j();Object.defineProperty(In,"__esModule",{value:!0});In.createDirentFromStats=void 0;var fo=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function qy(e,t){return new fo(e,t)}In.createDirentFromStats=qy});var ho=te(Nn=>{"use strict";j();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.fs=void 0;var Uy=cl();Nn.fs=Uy});var mo=te(Bn=>{"use strict";j();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.joinPathSegments=void 0;function Wy(e,t,r){return e.endsWith(r)?e+t:e+r+t}Bn.joinPathSegments=Wy});var ml=te(Ft=>{"use strict";j();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var Ky=Vt(),ll=sl(),Yy=po(),pl=ho(),fl=mo();function Vy(e,t,r){if(!t.stats&&Yy.IS_SUPPORT_READDIR_WITH_FILE_TYPES){dl(e,t,r);return}hl(e,t,r)}Ft.read=Vy;function dl(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(i,n)=>{if(i!==null){Mn(r,i);return}let u=n.map(o=>({dirent:o,name:o.name,path:fl.joinPathSegments(e,o.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){yo(r,u);return}let s=u.map(o=>Qy(o,t));ll(s,(o,a)=>{if(o!==null){Mn(r,o);return}yo(r,a)})})}Ft.readdirWithFileTypes=dl;function Qy(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(i,n)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,e);return}e.dirent=pl.fs.createDirentFromStats(e.name,n),r(null,e)})}}function hl(e,t,r){t.fs.readdir(e,(i,n)=>{if(i!==null){Mn(r,i);return}let u=n.map(s=>{let o=fl.joinPathSegments(e,s,t.pathSegmentSeparator);return a=>{Ky.stat(o,t.fsStatSettings,(c,p)=>{if(c!==null){a(c);return}let l={name:s,path:o,dirent:pl.fs.createDirentFromStats(s,p)};t.stats&&(l.stats=p),a(null,l)})}});ll(u,(s,o)=>{if(s!==null){Mn(r,s);return}yo(r,o)})})}Ft.readdir=hl;function Mn(e,t){e(t)}function yo(e,t){e(null,t)}});var El=te(Rt=>{"use strict";j();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.readdir=Rt.readdirWithFileTypes=Rt.read=void 0;var Xy=Vt(),Jy=po(),yl=ho(),gl=mo();function Zy(e,t){return!t.stats&&Jy.IS_SUPPORT_READDIR_WITH_FILE_TYPES?vl(e,t):_l(e,t)}Rt.read=Zy;function vl(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:gl.joinPathSegments(e,i.name,t.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let u=t.fs.statSync(n.path);n.dirent=yl.fs.createDirentFromStats(n.name,u)}catch(u){if(t.throwErrorOnBrokenSymbolicLink)throw u}return n})}Rt.readdirWithFileTypes=vl;function _l(e,t){return t.fs.readdirSync(e).map(i=>{let n=gl.joinPathSegments(e,i,t.pathSegmentSeparator),u=Xy.statSync(n,t.fsStatSettings),s={name:i,path:n,dirent:yl.fs.createDirentFromStats(i,u)};return t.stats&&(s.stats=u),s})}Rt.readdir=_l});var Sl=te(Ot=>{"use strict";j();Object.defineProperty(Ot,"__esModule",{value:!0});Ot.createFileSystemAdapter=Ot.FILE_SYSTEM_ADAPTER=void 0;var mr=require("fs");Ot.FILE_SYSTEM_ADAPTER={lstat:mr.lstat,stat:mr.stat,lstatSync:mr.lstatSync,statSync:mr.statSync,readdir:mr.readdir,readdirSync:mr.readdirSync};function zy(e){return e===void 0?Ot.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ot.FILE_SYSTEM_ADAPTER),e)}Ot.createFileSystemAdapter=zy});var Al=te(vo=>{"use strict";j();Object.defineProperty(vo,"__esModule",{value:!0});var eg=require("path"),tg=Vt(),rg=Sl(),go=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=rg.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,eg.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new tg.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};vo.default=go});var jn=te(Tt=>{"use strict";j();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.Settings=Tt.scandirSync=Tt.scandir=void 0;var bl=ml(),ng=El(),_o=Al();Tt.Settings=_o.default;function ig(e,t,r){if(typeof t=="function"){bl.read(e,Eo(),t);return}bl.read(e,Eo(t),r)}Tt.scandir=ig;function og(e,t){let r=Eo(t);return ng.read(e,r)}Tt.scandirSync=og;function Eo(e={}){return e instanceof _o.default?e:new _o.default(e)}});var xl=te((_O,Dl)=>{"use strict";j();function sg(e){var t=new e,r=t;function i(){var u=t;return u.next?t=u.next:(t=new e,r=t),u.next=null,u}function n(u){r.next=u,r=u}return{get:i,release:n}}Dl.exports=sg});var Cl=te((EO,So)=>{"use strict";j();var ag=xl();function wl(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=ag(ug),n=null,u=null,s=0,o=null,a={push:g,drain:rt,saturated:rt,pause:p,paused:!1,concurrency:r,running:c,resume:d,idle:m,length:l,getQueue:f,unshift:_,empty:rt,kill:h,killAndDrain:v,error:x};return a;function c(){return s}function p(){a.paused=!0}function l(){for(var y=n,A=0;y;)y=y.next,A++;return A}function f(){for(var y=n,A=[];y;)A.push(y.value),y=y.next;return A}function d(){if(!!a.paused){a.paused=!1;for(var y=0;y<a.concurrency;y++)s++,E()}}function m(){return s===0&&a.length()===0}function g(y,A){var b=i.get();b.context=e,b.release=E,b.value=y,b.callback=A||rt,b.errorHandler=o,s===a.concurrency||a.paused?u?(u.next=b,u=b):(n=b,u=b,a.saturated()):(s++,t.call(e,b.value,b.worked))}function _(y,A){var b=i.get();b.context=e,b.release=E,b.value=y,b.callback=A||rt,s===a.concurrency||a.paused?n?(b.next=n,n=b):(n=b,u=b,a.saturated()):(s++,t.call(e,b.value,b.worked))}function E(y){y&&i.release(y);var A=n;A?a.paused?s--:(u===n&&(u=null),n=A.next,A.next=null,t.call(e,A.value,A.worked),u===null&&a.empty()):--s===0&&a.drain()}function h(){n=null,u=null,a.drain=rt}function v(){n=null,u=null,a.drain(),a.drain=rt}function x(y){o=y}}function rt(){}function ug(){this.value=null,this.callback=rt,this.next=null,this.release=rt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,i){var n=e.callback,u=e.errorHandler,s=e.value;e.value=null,e.callback=rt,e.errorHandler&&u(r,s),n.call(e.context,r,i),e.release(e)}}function cg(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function i(p,l){t.call(this,p).then(function(f){l(null,f)},l)}var n=wl(e,i,r),u=n.push,s=n.unshift;return n.push=o,n.unshift=a,n.drained=c,n;function o(p){var l=new Promise(function(f,d){u(p,function(m,g){if(m){d(m);return}f(g)})});return l.catch(rt),l}function a(p){var l=new Promise(function(f,d){s(p,function(m,g){if(m){d(m);return}f(g)})});return l.catch(rt),l}function c(){var p=n.drain,l=new Promise(function(f){n.drain=function(){p(),f()}});return l}}So.exports=wl;So.exports.promise=cg});var $n=te(lt=>{"use strict";j();Object.defineProperty(lt,"__esModule",{value:!0});lt.joinPathSegments=lt.replacePathSegmentSeparator=lt.isAppliedFilter=lt.isFatalError=void 0;function lg(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}lt.isFatalError=lg;function pg(e,t){return e===null||e(t)}lt.isAppliedFilter=pg;function fg(e,t){return e.split(/[/\\]/).join(t)}lt.replacePathSegmentSeparator=fg;function dg(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}lt.joinPathSegments=dg});var Do=te(bo=>{"use strict";j();Object.defineProperty(bo,"__esModule",{value:!0});var hg=$n(),Ao=class{constructor(t,r){this._root=t,this._settings=r,this._root=hg.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};bo.default=Ao});var Co=te(wo=>{"use strict";j();Object.defineProperty(wo,"__esModule",{value:!0});var mg=require("events"),yg=jn(),gg=Cl(),Hn=$n(),vg=Do(),xo=class extends vg.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=yg.scandir,this._emitter=new mg.EventEmitter,this._queue=gg(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let i={directory:t,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let u of n)this._handleEntry(u,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Hn.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let i=t.path;r!==void 0&&(t.path=Hn.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Hn.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Hn.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(i,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};wo.default=xo});var kl=te(Fo=>{"use strict";j();Object.defineProperty(Fo,"__esModule",{value:!0});var _g=Co(),ko=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new _g.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Eg(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Sg(t,this._storage)}),this._reader.read()}};Fo.default=ko;function Eg(e,t){e(t)}function Sg(e,t){e(null,t)}});var Fl=te(Oo=>{"use strict";j();Object.defineProperty(Oo,"__esModule",{value:!0});var Ag=require("stream"),bg=Co(),Ro=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new bg.default(this._root,this._settings),this._stream=new Ag.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Oo.default=Ro});var Rl=te(Po=>{"use strict";j();Object.defineProperty(Po,"__esModule",{value:!0});var Dg=jn(),Gn=$n(),xg=Do(),To=class extends xg.default{constructor(){super(...arguments),this._scandir=Dg.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let i=this._scandir(t,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(t){if(!!Gn.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let i=t.path;r!==void 0&&(t.path=Gn.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Gn.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Gn.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(i,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Po.default=To});var Ol=te(Io=>{"use strict";j();Object.defineProperty(Io,"__esModule",{value:!0});var wg=Rl(),Lo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new wg.default(this._root,this._settings)}read(){return this._reader.read()}};Io.default=Lo});var Tl=te(Bo=>{"use strict";j();Object.defineProperty(Bo,"__esModule",{value:!0});var Cg=require("path"),kg=jn(),No=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Cg.sep),this.fsScandirSettings=new kg.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};Bo.default=No});var Un=te(pt=>{"use strict";j();Object.defineProperty(pt,"__esModule",{value:!0});pt.Settings=pt.walkStream=pt.walkSync=pt.walk=void 0;var Pl=kl(),Fg=Fl(),Rg=Ol(),Mo=Tl();pt.Settings=Mo.default;function Og(e,t,r){if(typeof t=="function"){new Pl.default(e,qn()).read(t);return}new Pl.default(e,qn(t)).read(r)}pt.walk=Og;function Tg(e,t){let r=qn(t);return new Rg.default(e,r).read()}pt.walkSync=Tg;function Pg(e,t){let r=qn(t);return new Fg.default(e,r).read()}pt.walkStream=Pg;function qn(e={}){return e instanceof Mo.default?e:new Mo.default(e)}});var Wn=te($o=>{"use strict";j();Object.defineProperty($o,"__esModule",{value:!0});var Lg=require("path"),Ig=Vt(),Ll=_t(),jo=class{constructor(t){this._settings=t,this._fsStatSettings=new Ig.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Lg.resolve(this._settings.cwd,t)}_makeEntry(t,r){let i={name:r,path:r,dirent:Ll.fs.createDirentFromStats(r,t)};return this._settings.stats&&(i.stats=t),i}_isFatalError(t){return!Ll.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};$o.default=jo});var qo=te(Go=>{"use strict";j();Object.defineProperty(Go,"__esModule",{value:!0});var Ng=require("stream"),Bg=Vt(),Mg=Un(),jg=Wn(),Ho=class extends jg.default{constructor(){super(...arguments),this._walkStream=Mg.walkStream,this._stat=Bg.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let i=t.map(this._getFullEntryPath,this),n=new Ng.PassThrough({objectMode:!0});n._write=(u,s,o)=>this._getEntry(i[u],t[u],r).then(a=>{a!==null&&r.entryFilter(a)&&n.push(a),u===i.length-1&&n.end(),o()}).catch(o);for(let u=0;u<i.length;u++)n.write(u);return n}_getEntry(t,r,i){return this._getStat(t).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(t){return new Promise((r,i)=>{this._stat(t,this._fsStatSettings,(n,u)=>n===null?r(u):i(n))})}};Go.default=Ho});var Il=te(Wo=>{"use strict";j();Object.defineProperty(Wo,"__esModule",{value:!0});var $g=Un(),Hg=Wn(),Gg=qo(),Uo=class extends Hg.default{constructor(){super(...arguments),this._walkAsync=$g.walk,this._readerStream=new Gg.default(this._settings)}dynamic(t,r){return new Promise((i,n)=>{this._walkAsync(t,r,(u,s)=>{u===null?i(s):n(u)})})}async static(t,r){let i=[],n=this._readerStream.static(t,r);return new Promise((u,s)=>{n.once("error",s),n.on("data",o=>i.push(o)),n.once("end",()=>u(i))})}};Wo.default=Uo});var Nl=te(Yo=>{"use strict";j();Object.defineProperty(Yo,"__esModule",{value:!0});var yr=_t(),Ko=class{constructor(t,r,i){this._patterns=t,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let t=yr.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(t){return yr.pattern.getPatternParts(t,this._micromatchOptions).map(i=>yr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:yr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(t){return yr.array.splitWhen(t,r=>r.dynamic&&yr.pattern.hasGlobStar(r.pattern))}};Yo.default=Ko});var Bl=te(Qo=>{"use strict";j();Object.defineProperty(Qo,"__esModule",{value:!0});var qg=Nl(),Vo=class extends qg.default{match(t){let r=t.split("/"),i=r.length,n=this._storage.filter(u=>!u.complete||u.segments.length>i);for(let u of n){let s=u.sections[0];if(!u.complete&&i>s.length||r.every((a,c)=>{let p=u.segments[c];return!!(p.dynamic&&p.patternRe.test(a)||!p.dynamic&&p.pattern===a)}))return!0}return!1}};Qo.default=Vo});var Ml=te(Jo=>{"use strict";j();Object.defineProperty(Jo,"__esModule",{value:!0});var Kn=_t(),Ug=Bl(),Xo=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,i){let n=this._getMatcher(r),u=this._getNegativePatternsRe(i);return s=>this._filter(t,s,n,u)}_getMatcher(t){return new Ug.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Kn.pattern.isAffectDepthOfReadingPattern);return Kn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,i,n){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let u=Kn.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(u,i)?!1:this._isSkippedByNegativePatterns(u,n)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let i=r.split("/").length;if(t==="")return i;let n=t.split("/").length;return i-n}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Kn.pattern.matchAny(t,r)}};Jo.default=Xo});var jl=te(zo=>{"use strict";j();Object.defineProperty(zo,"__esModule",{value:!0});var Qt=_t(),Zo=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let i=Qt.pattern.convertPatternsToRe(t,this._micromatchOptions),n=Qt.pattern.convertPatternsToRe(r,this._micromatchOptions);return u=>this._filter(u,i,n)}_filter(t,r,i){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,i))return!1;let n=this._settings.baseNameMatch?t.name:t.path,u=t.dirent.isDirectory(),s=this._isMatchToPatterns(n,r,u)&&!this._isMatchToPatterns(t.path,i,u);return this._settings.unique&&s&&this._createIndexRecord(t),s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let i=Qt.path.makeAbsolute(this._settings.cwd,t);return Qt.pattern.matchAny(i,r)}_isMatchToPatterns(t,r,i){let n=Qt.path.removeLeadingDotSegment(t),u=Qt.pattern.matchAny(n,r);return!u&&i?Qt.pattern.matchAny(n+"/",r):u}};zo.default=Zo});var $l=te(ts=>{"use strict";j();Object.defineProperty(ts,"__esModule",{value:!0});var Wg=_t(),es=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Wg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};ts.default=es});var Gl=te(ns=>{"use strict";j();Object.defineProperty(ns,"__esModule",{value:!0});var Hl=_t(),rs=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Hl.path.makeAbsolute(this._settings.cwd,r),r=Hl.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};ns.default=rs});var Yn=te(os=>{"use strict";j();Object.defineProperty(os,"__esModule",{value:!0});var Kg=require("path"),Yg=Ml(),Vg=jl(),Qg=$l(),Xg=Gl(),is=class{constructor(t){this._settings=t,this.errorFilter=new Qg.default(this._settings),this.entryFilter=new Vg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Yg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Xg.default(this._settings)}_getRootDirectory(t){return Kg.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};os.default=is});var ql=te(as=>{"use strict";j();Object.defineProperty(as,"__esModule",{value:!0});var Jg=Il(),Zg=Yn(),ss=class extends Zg.default{constructor(){super(...arguments),this._reader=new Jg.default(this._settings)}async read(t){let r=this._getRootDirectory(t),i=this._getReaderOptions(t);return(await this.api(r,t,i)).map(u=>i.transform(u))}api(t,r,i){return r.dynamic?this._reader.dynamic(t,i):this._reader.static(r.patterns,i)}};as.default=ss});var Ul=te(cs=>{"use strict";j();Object.defineProperty(cs,"__esModule",{value:!0});var zg=require("stream"),ev=qo(),tv=Yn(),us=class extends tv.default{constructor(){super(...arguments),this._reader=new ev.default(this._settings)}read(t){let r=this._getRootDirectory(t),i=this._getReaderOptions(t),n=this.api(r,t,i),u=new zg.Readable({objectMode:!0,read:()=>{}});return n.once("error",s=>u.emit("error",s)).on("data",s=>u.emit("data",i.transform(s))).once("end",()=>u.emit("end")),u.once("close",()=>n.destroy()),u}api(t,r,i){return r.dynamic?this._reader.dynamic(t,i):this._reader.static(r.patterns,i)}};cs.default=us});var Wl=te(ps=>{"use strict";j();Object.defineProperty(ps,"__esModule",{value:!0});var rv=Vt(),nv=Un(),iv=Wn(),ls=class extends iv.default{constructor(){super(...arguments),this._walkSync=nv.walkSync,this._statSync=rv.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let i=[];for(let n of t){let u=this._getFullEntryPath(n),s=this._getEntry(u,n,r);s===null||!r.entryFilter(s)||i.push(s)}return i}_getEntry(t,r,i){try{let n=this._getStat(t);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};ps.default=ls});var Kl=te(ds=>{"use strict";j();Object.defineProperty(ds,"__esModule",{value:!0});var ov=Wl(),sv=Yn(),fs=class extends sv.default{constructor(){super(...arguments),this._reader=new ov.default(this._settings)}read(t){let r=this._getRootDirectory(t),i=this._getReaderOptions(t);return this.api(r,t,i).map(i.transform)}api(t,r,i){return r.dynamic?this._reader.dynamic(t,i):this._reader.static(r.patterns,i)}};ds.default=fs});var Yl=te(vr=>{"use strict";j();Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gr=require("fs"),av=require("os"),uv=Math.max(av.cpus().length,1);vr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gr.lstat,lstatSync:gr.lstatSync,stat:gr.stat,statSync:gr.statSync,readdir:gr.readdir,readdirSync:gr.readdirSync};var hs=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,uv),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},vr.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};vr.default=hs});var Jl=te((WO,Xl)=>{"use strict";j();var Vl=Yc(),Ql=Qc(),cv=ql(),lv=Ul(),pv=Kl(),ms=Yl(),Xt=_t();async function ys(e,t){_r(e);let r=gs(e,cv.default,t),i=await Promise.all(r);return Xt.array.flatten(i)}(function(e){function t(s,o){_r(s);let a=gs(s,pv.default,o);return Xt.array.flatten(a)}e.sync=t;function r(s,o){_r(s);let a=gs(s,lv.default,o);return Xt.stream.merge(a)}e.stream=r;function i(s,o){_r(s);let a=Ql.transform([].concat(s)),c=new ms.default(o);return Vl.generate(a,c)}e.generateTasks=i;function n(s,o){_r(s);let a=new ms.default(o);return Xt.pattern.isDynamicPattern(s,a)}e.isDynamicPattern=n;function u(s){return _r(s),Xt.path.escape(s)}e.escapePath=u})(ys||(ys={}));function gs(e,t,r){let i=Ql.transform([].concat(e)),n=new ms.default(r),u=Vl.generate(i,n),s=new t(n);return u.map(s.read,s)}function _r(e){if(![].concat(e).every(i=>Xt.string.isString(i)&&!Xt.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Xl.exports=ys});var Er=te((KO,Jt)=>{"use strict";j();function Zl(e){return typeof e>"u"||e===null}function fv(e){return typeof e=="object"&&e!==null}function dv(e){return Array.isArray(e)?e:Zl(e)?[]:[e]}function hv(e,t){var r,i,n,u;if(t)for(u=Object.keys(t),r=0,i=u.length;r<i;r+=1)n=u[r],e[n]=t[n];return e}function mv(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function yv(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Jt.exports.isNothing=Zl;Jt.exports.isObject=fv;Jt.exports.toArray=dv;Jt.exports.repeat=mv;Jt.exports.isNegativeZero=yv;Jt.exports.extend=hv});var Sr=te((YO,ep)=>{"use strict";j();function zl(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
4
|
+
|
5
|
+
`+e.mark.snippet),i+" "+r):i}function Wr(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=zl(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Wr.prototype=Object.create(Error.prototype);Wr.prototype.constructor=Wr;Wr.prototype.toString=function(t){return this.name+": "+zl(this,t)};ep.exports=Wr});var rp=te((VO,tp)=>{"use strict";j();var Kr=Er();function vs(e,t,r,i,n){var u="",s="",o=Math.floor(n/2)-1;return i-t>o&&(u=" ... ",t=i-o+u.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:u+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:i-t+u.length}}function _s(e,t){return Kr.repeat(" ",t-e.length)+e}function gv(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],u,s=-1;u=r.exec(e.buffer);)n.push(u.index),i.push(u.index+u[0].length),e.position<=u.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",a,c,p=Math.min(e.line+t.linesAfter,n.length).toString().length,l=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)c=vs(e.buffer,i[s-a],n[s-a],e.position-(i[s]-i[s-a]),l),o=Kr.repeat(" ",t.indent)+_s((e.line-a+1).toString(),p)+" | "+c.str+`
|
6
|
+
`+o;for(c=vs(e.buffer,i[s],n[s],e.position,l),o+=Kr.repeat(" ",t.indent)+_s((e.line+1).toString(),p)+" | "+c.str+`
|
7
|
+
`,o+=Kr.repeat("-",t.indent+p+3+c.pos)+`^
|
8
|
+
`,a=1;a<=t.linesAfter&&!(s+a>=n.length);a++)c=vs(e.buffer,i[s+a],n[s+a],e.position-(i[s]-i[s+a]),l),o+=Kr.repeat(" ",t.indent)+_s((e.line+a+1).toString(),p)+" | "+c.str+`
|
9
|
+
`;return o.replace(/\n$/,"")}tp.exports=gv});var Ie=te((QO,ip)=>{"use strict";j();var np=Sr(),vv=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_v=["scalar","sequence","mapping"];function Ev(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function Sv(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(vv.indexOf(r)===-1)throw new np('Unknown option "'+r+'" 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!0},this.construct=t.construct||function(r){return r},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||!1,this.styleAliases=Ev(t.styleAliases||null),_v.indexOf(this.kind)===-1)throw new np('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}ip.exports=Sv});var As=te((XO,sp)=>{"use strict";j();var Yr=Sr(),Es=Ie();function op(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(u,s){u.tag===i.tag&&u.kind===i.kind&&u.multi===i.multi&&(n=s)}),r[n]=i}),r}function Av(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}function Ss(e){return this.extend(e)}Ss.prototype.extend=function(t){var r=[],i=[];if(t instanceof Es)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Yr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(u){if(!(u instanceof Es))throw new Yr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new Yr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new Yr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(u){if(!(u instanceof Es))throw new Yr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Ss.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=op(n,"implicit"),n.compiledExplicit=op(n,"explicit"),n.compiledTypeMap=Av(n.compiledImplicit,n.compiledExplicit),n};sp.exports=Ss});var bs=te((JO,ap)=>{"use strict";j();var bv=Ie();ap.exports=new bv("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Ds=te((ZO,up)=>{"use strict";j();var Dv=Ie();up.exports=new Dv("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var xs=te((zO,cp)=>{"use strict";j();var xv=Ie();cp.exports=new xv("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var ws=te((eT,lp)=>{"use strict";j();var wv=As();lp.exports=new wv({explicit:[bs(),Ds(),xs()]})});var Cs=te((tT,pp)=>{"use strict";j();var Cv=Ie();function kv(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Fv(){return null}function Rv(e){return e===null}pp.exports=new Cv("tag:yaml.org,2002:null",{kind:"scalar",resolve:kv,construct:Fv,predicate:Rv,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var ks=te((rT,fp)=>{"use strict";j();var Ov=Ie();function Tv(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Pv(e){return e==="true"||e==="True"||e==="TRUE"}function Lv(e){return Object.prototype.toString.call(e)==="[object Boolean]"}fp.exports=new Ov("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Tv,construct:Pv,predicate:Lv,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Fs=te((nT,dp)=>{"use strict";j();var Iv=Er(),Nv=Ie();function Bv(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Mv(e){return 48<=e&&e<=55}function jv(e){return 48<=e&&e<=57}function $v(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!Bv(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!Mv(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!jv(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function Hv(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function Gv(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Iv.isNegativeZero(e)}dp.exports=new Nv("tag:yaml.org,2002:int",{kind:"scalar",resolve:$v,construct:Hv,predicate:Gv,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"]}})});var Rs=te((iT,mp)=>{"use strict";j();var hp=Er(),qv=Ie(),Uv=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Wv(e){return!(e===null||!Uv.test(e)||e[e.length-1]==="_")}function Kv(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var Yv=/^[-+]?[0-9]+e/;function Vv(e,t){var r;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(hp.isNegativeZero(e))return"-0.0";return r=e.toString(10),Yv.test(r)?r.replace("e",".e"):r}function Qv(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||hp.isNegativeZero(e))}mp.exports=new qv("tag:yaml.org,2002:float",{kind:"scalar",resolve:Wv,construct:Kv,predicate:Qv,represent:Vv,defaultStyle:"lowercase"})});var Os=te((oT,yp)=>{"use strict";j();yp.exports=ws().extend({implicit:[Cs(),ks(),Fs(),Rs()]})});var Ts=te((sT,gp)=>{"use strict";j();gp.exports=Os()});var Ps=te((aT,Ep)=>{"use strict";j();var Xv=Ie(),vp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_p=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 Jv(e){return e===null?!1:vp.exec(e)!==null||_p.exec(e)!==null}function Zv(e){var t,r,i,n,u,s,o,a=0,c=null,p,l,f;if(t=vp.exec(e),t===null&&(t=_p.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(u=+t[4],s=+t[5],o=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(p=+t[10],l=+(t[11]||0),c=(p*60+l)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,u,s,o,a)),c&&f.setTime(f.getTime()-c),f}function zv(e){return e.toISOString()}Ep.exports=new Xv("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Jv,construct:Zv,instanceOf:Date,represent:zv})});var Ls=te((uT,Sp)=>{"use strict";j();var e_=Ie();function t_(e){return e==="<<"||e===null}Sp.exports=new e_("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t_})});var Ns=te((cT,Ap)=>{"use strict";j();var r_=Ie(),Is=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
10
|
+
\r`;function n_(e){if(e===null)return!1;var t,r,i=0,n=e.length,u=Is;for(r=0;r<n;r++)if(t=u.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function i_(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,u=Is,s=0,o=[];for(t=0;t<n;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|u.indexOf(i.charAt(t));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function o_(e){var t="",r=0,i,n,u=e.length,s=Is;for(i=0;i<u;i++)i%3===0&&i&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[i];return n=u%3,n===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):n===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):n===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function s_(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}Ap.exports=new r_("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n_,construct:i_,predicate:s_,represent:o_})});var Bs=te((lT,bp)=>{"use strict";j();var a_=Ie(),u_=Object.prototype.hasOwnProperty,c_=Object.prototype.toString;function l_(e){if(e===null)return!0;var t=[],r,i,n,u,s,o=e;for(r=0,i=o.length;r<i;r+=1){if(n=o[r],s=!1,c_.call(n)!=="[object Object]")return!1;for(u in n)if(u_.call(n,u))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(u)===-1)t.push(u);else return!1}return!0}function p_(e){return e!==null?e:[]}bp.exports=new a_("tag:yaml.org,2002:omap",{kind:"sequence",resolve:l_,construct:p_})});var Ms=te((pT,Dp)=>{"use strict";j();var f_=Ie(),d_=Object.prototype.toString;function h_(e){if(e===null)return!0;var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],d_.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;u[t]=[n[0],i[n[0]]]}return!0}function m_(e){if(e===null)return[];var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],n=Object.keys(i),u[t]=[n[0],i[n[0]]];return u}Dp.exports=new f_("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:h_,construct:m_})});var js=te((fT,xp)=>{"use strict";j();var y_=Ie(),g_=Object.prototype.hasOwnProperty;function v_(e){if(e===null)return!0;var t,r=e;for(t in r)if(g_.call(r,t)&&r[t]!==null)return!1;return!0}function __(e){return e!==null?e:{}}xp.exports=new y_("tag:yaml.org,2002:set",{kind:"mapping",resolve:v_,construct:__})});var Vn=te((dT,wp)=>{"use strict";j();wp.exports=Ts().extend({implicit:[Ps(),Ls()],explicit:[Ns(),Bs(),Ms(),js()]})});var Gp=te((hT,qs)=>{"use strict";j();var zt=Er(),Pp=Sr(),E_=rp(),S_=Vn(),Lt=Object.prototype.hasOwnProperty,Qn=1,Lp=2,Ip=3,Xn=4,$s=1,A_=2,Cp=3,b_=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,D_=/[\x85\u2028\u2029]/,x_=/[,\[\]\{\}]/,Np=/^(?:!|!!|![a-z\-]+!)$/i,Bp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function kp(e){return Object.prototype.toString.call(e)}function ft(e){return e===10||e===13}function er(e){return e===9||e===32}function Ue(e){return e===9||e===32||e===10||e===13}function Ar(e){return e===44||e===91||e===93||e===123||e===125}function w_(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function C_(e){return e===120?2:e===117?4:e===85?8:0}function k_(e){return 48<=e&&e<=57?e-48:-1}function Fp(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
11
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function F_(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Mp=new Array(256),jp=new Array(256);for(Zt=0;Zt<256;Zt++)Mp[Zt]=Fp(Zt)?1:0,jp[Zt]=Fp(Zt);var Zt;function R_(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||S_,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,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 $p(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=E_(r),new Pp(t,r)}function de(e,t){throw $p(e,t)}function Jn(e,t){e.onWarning&&e.onWarning.call(null,$p(e,t))}var Rp={YAML:function(t,r,i){var n,u,s;t.version!==null&&de(t,"duplication of %YAML directive"),i.length!==1&&de(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&de(t,"ill-formed argument of the YAML directive"),u=parseInt(n[1],10),s=parseInt(n[2],10),u!==1&&de(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Jn(t,"unsupported YAML version of the document")},TAG:function(t,r,i){var n,u;i.length!==2&&de(t,"TAG directive accepts exactly two arguments"),n=i[0],u=i[1],Np.test(n)||de(t,"ill-formed tag handle (first argument) of the TAG directive"),Lt.call(t.tagMap,n)&&de(t,'there is a previously declared suffix for "'+n+'" tag handle'),Bp.test(u)||de(t,"ill-formed tag prefix (second argument) of the TAG directive");try{u=decodeURIComponent(u)}catch{de(t,"tag prefix is malformed: "+u)}t.tagMap[n]=u}};function Pt(e,t,r,i){var n,u,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(n=0,u=o.length;n<u;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||de(e,"expected valid JSON character");else b_.test(o)&&de(e,"the stream contains non-printable characters");e.result+=o}}function Op(e,t,r,i){var n,u,s,o;for(zt.isObject(r)||de(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)u=n[s],Lt.call(t,u)||(t[u]=r[u],i[u]=!0)}function br(e,t,r,i,n,u,s,o,a){var c,p;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,p=n.length;c<p;c+=1)Array.isArray(n[c])&&de(e,"nested arrays are not supported inside keys"),typeof n=="object"&&kp(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&kp(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(c=0,p=u.length;c<p;c+=1)Op(e,t,u[c],r);else Op(e,t,u,r);else!e.json&&!Lt.call(r,n)&&Lt.call(t,n)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=a||e.position,de(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:u}):t[n]=u,delete r[n];return t}function Hs(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):de(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function xe(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;er(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(ft(n))for(Hs(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&Jn(e,"deficient indentation"),i}function Zn(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ue(r)))}function Gs(e,t){t===1?e.result+=" ":t>1&&(e.result+=zt.repeat(`
|
12
|
+
`,t-1))}function O_(e,t,r){var i,n,u,s,o,a,c,p,l=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),Ue(d)||Ar(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),Ue(n)||r&&Ar(n)))return!1;for(e.kind="scalar",e.result="",u=s=e.position,o=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),Ue(n)||r&&Ar(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),Ue(i))break}else{if(e.position===e.lineStart&&Zn(e)||r&&Ar(d))break;if(ft(d))if(a=e.line,c=e.lineStart,p=e.lineIndent,xe(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=a,e.lineStart=c,e.lineIndent=p;break}}o&&(Pt(e,u,s,!1),Gs(e,e.line-a),u=s=e.position,o=!1),er(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return Pt(e,u,s,!1),e.result?!0:(e.kind=l,e.result=f,!1)}function T_(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Pt(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else ft(r)?(Pt(e,i,n,!0),Gs(e,xe(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Zn(e)?de(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);de(e,"unexpected end of the stream within a single quoted scalar")}function P_(e,t){var r,i,n,u,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return Pt(e,r,e.position,!0),e.position++,!0;if(o===92){if(Pt(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),ft(o))xe(e,!1,t);else if(o<256&&Mp[o])e.result+=jp[o],e.position++;else if((s=C_(o))>0){for(n=s,u=0;n>0;n--)o=e.input.charCodeAt(++e.position),(s=w_(o))>=0?u=(u<<4)+s:de(e,"expected hexadecimal character");e.result+=F_(u),e.position++}else de(e,"unknown escape sequence");r=i=e.position}else ft(o)?(Pt(e,r,i,!0),Gs(e,xe(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Zn(e)?de(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}de(e,"unexpected end of the stream within a double quoted scalar")}function L_(e,t){var r=!0,i,n,u,s=e.tag,o,a=e.anchor,c,p,l,f,d,m=Object.create(null),g,_,E,h;if(h=e.input.charCodeAt(e.position),h===91)p=93,d=!1,o=[];else if(h===123)p=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),h=e.input.charCodeAt(++e.position);h!==0;){if(xe(e,!0,t),h=e.input.charCodeAt(e.position),h===p)return e.position++,e.tag=s,e.anchor=a,e.kind=d?"mapping":"sequence",e.result=o,!0;r?h===44&&de(e,"expected the node content, but found ','"):de(e,"missed comma between flow collection entries"),_=g=E=null,l=f=!1,h===63&&(c=e.input.charCodeAt(e.position+1),Ue(c)&&(l=f=!0,e.position++,xe(e,!0,t))),i=e.line,n=e.lineStart,u=e.position,Dr(e,t,Qn,!1,!0),_=e.tag,g=e.result,xe(e,!0,t),h=e.input.charCodeAt(e.position),(f||e.line===i)&&h===58&&(l=!0,h=e.input.charCodeAt(++e.position),xe(e,!0,t),Dr(e,t,Qn,!1,!0),E=e.result),d?br(e,o,m,_,g,E,i,n,u):l?o.push(br(e,null,m,_,g,E,i,n,u)):o.push(g),xe(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}de(e,"unexpected end of the stream within a flow collection")}function I_(e,t){var r,i,n=$s,u=!1,s=!1,o=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)i=!1;else if(l===62)i=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)$s===n?n=l===43?Cp:A_:de(e,"repeat of a chomping mode identifier");else if((p=k_(l))>=0)p===0?de(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?de(e,"repeat of an indentation width identifier"):(o=t+p-1,s=!0);else break;if(er(l)){do l=e.input.charCodeAt(++e.position);while(er(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!ft(l)&&l!==0)}for(;l!==0;){for(Hs(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),ft(l)){a++;continue}if(e.lineIndent<o){n===Cp?e.result+=zt.repeat(`
|
13
|
+
`,u?1+a:a):n===$s&&u&&(e.result+=`
|
14
|
+
`);break}for(i?er(l)?(c=!0,e.result+=zt.repeat(`
|
15
|
+
`,u?1+a:a)):c?(c=!1,e.result+=zt.repeat(`
|
16
|
+
`,a+1)):a===0?u&&(e.result+=" "):e.result+=zt.repeat(`
|
17
|
+
`,a):e.result+=zt.repeat(`
|
18
|
+
`,u?1+a:a),u=!0,s=!0,a=0,r=e.position;!ft(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Pt(e,r,e.position,!1)}return!0}function Tp(e,t){var r,i=e.tag,n=e.anchor,u=[],s,o=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,de(e,"tab characters must not be used in indentation")),!(a!==45||(s=e.input.charCodeAt(e.position+1),!Ue(s))));){if(o=!0,e.position++,xe(e,!0,-1)&&e.lineIndent<=t){u.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,Dr(e,t,Ip,!1,!0),u.push(e.result),xe(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)de(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=u,!0):!1}function N_(e,t,r){var i,n,u,s,o,a,c=e.tag,p=e.anchor,l={},f=Object.create(null),d=null,m=null,g=null,_=!1,E=!1,h;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),h=e.input.charCodeAt(e.position);h!==0;){if(!_&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,de(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),u=e.line,(h===63||h===58)&&Ue(i))h===63?(_&&(br(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!0,n=!0):_?(_=!1,n=!0):de(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,h=i;else{if(s=e.line,o=e.lineStart,a=e.position,!Dr(e,r,Lp,!1,!0))break;if(e.line===u){for(h=e.input.charCodeAt(e.position);er(h);)h=e.input.charCodeAt(++e.position);if(h===58)h=e.input.charCodeAt(++e.position),Ue(h)||de(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(br(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!1,n=!1,d=e.tag,m=e.result;else if(E)de(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=p,!0}else if(E)de(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=p,!0}if((e.line===u||e.lineIndent>t)&&(_&&(s=e.line,o=e.lineStart,a=e.position),Dr(e,t,Xn,!0,n)&&(_?m=e.result:g=e.result),_||(br(e,l,f,d,m,g,s,o,a),d=m=g=null),xe(e,!0,-1),h=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>t)&&h!==0)de(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return _&&br(e,l,f,d,m,null,s,o,a),E&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=l),E}function B_(e){var t,r=!1,i=!1,n,u,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&de(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,n="!!",s=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(u=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):de(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ue(s);)s===33&&(i?de(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Np.test(n)||de(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(t,e.position),x_.test(u)&&de(e,"tag suffix cannot contain flow indicator characters")}u&&!Bp.test(u)&&de(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{de(e,"tag name is malformed: "+u)}return r?e.tag=u:Lt.call(e.tagMap,n)?e.tag=e.tagMap[n]+u:n==="!"?e.tag="!"+u:n==="!!"?e.tag="tag:yaml.org,2002:"+u:de(e,'undeclared tag handle "'+n+'"'),!0}function M_(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&de(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ue(r)&&!Ar(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&de(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function j_(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Ue(i)&&!Ar(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&de(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Lt.call(e.anchorMap,r)||de(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],xe(e,!0,-1),!0}function Dr(e,t,r,i,n){var u,s,o,a=1,c=!1,p=!1,l,f,d,m,g,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=s=o=Xn===r||Ip===r,i&&xe(e,!0,-1)&&(c=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;B_(e)||M_(e);)xe(e,!0,-1)?(c=!0,o=u,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):o=!1;if(o&&(o=c||n),(a===1||Xn===r)&&(Qn===r||Lp===r?g=t:g=t+1,_=e.position-e.lineStart,a===1?o&&(Tp(e,_)||N_(e,_,g))||L_(e,g)?p=!0:(s&&I_(e,g)||T_(e,g)||P_(e,g)?p=!0:j_(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&de(e,"alias node should not have any properties")):O_(e,g,Qn===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(p=o&&Tp(e,_))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&de(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,f=e.implicitTypes.length;l<f;l+=1)if(m=e.implicitTypes[l],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Lt.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,f=d.length;l<f;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){m=d[l];break}m||de(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&de(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):de(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function $_(e){var t=e.position,r,i,n,u=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(xe(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(u=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Ue(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&de(e,"directive name must not be less than one character in length");s!==0;){for(;er(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ft(s));break}if(ft(s))break;for(r=e.position;s!==0&&!Ue(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}s!==0&&Hs(e),Lt.call(Rp,i)?Rp[i](e,i,n):Jn(e,'unknown document directive "'+i+'"')}if(xe(e,!0,-1),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,xe(e,!0,-1)):u&&de(e,"directives end mark is expected"),Dr(e,e.lineIndent-1,Xn,!1,!0),xe(e,!0,-1),e.checkLineBreaks&&D_.test(e.input.slice(t,e.position))&&Jn(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Zn(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,xe(e,!0,-1));return}if(e.position<e.length-1)de(e,"end of the stream or a document separator is expected");else return}function Hp(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
19
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new R_(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,de(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)$_(r);return r.documents}function H_(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Hp(e,r);if(typeof t!="function")return i;for(var n=0,u=i.length;n<u;n+=1)t(i[n])}function G_(e,t){var r=Hp(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Pp("expected a single document in the stream, but found more")}}qs.exports.loadAll=H_;qs.exports.load=G_});var lf=te((mT,cf)=>{"use strict";j();var ti=Er(),Zr=Sr(),q_=Vn(),Jp=Object.prototype.toString,Zp=Object.prototype.hasOwnProperty,Vs=65279,U_=9,Qr=10,W_=13,K_=32,Y_=33,V_=34,Us=35,Q_=37,X_=38,J_=39,Z_=42,zp=44,z_=45,zn=58,eE=61,tE=62,rE=63,nE=64,ef=91,tf=93,iE=96,rf=123,oE=124,nf=125,Ne={};Ne[0]="\\0";Ne[7]="\\a";Ne[8]="\\b";Ne[9]="\\t";Ne[10]="\\n";Ne[11]="\\v";Ne[12]="\\f";Ne[13]="\\r";Ne[27]="\\e";Ne[34]='\\"';Ne[92]="\\\\";Ne[133]="\\N";Ne[160]="\\_";Ne[8232]="\\L";Ne[8233]="\\P";var sE=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],aE=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function uE(e,t){var r,i,n,u,s,o,a;if(t===null)return{};for(r={},i=Object.keys(t),n=0,u=i.length;n<u;n+=1)s=i[n],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),a=e.compiledTypeMap.fallback[s],a&&Zp.call(a.styleAliases,o)&&(o=a.styleAliases[o]),r[s]=o;return r}function cE(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Zr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ti.repeat("0",i-t.length)+t}var lE=1,Xr=2;function pE(e){this.schema=e.schema||q_,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ti.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=uE(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Xr:lE,this.forceQuotes=e.forceQuotes||!1,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 qp(e,t){for(var r=ti.repeat(" ",t),i=0,n=-1,u="",s,o=e.length;i<o;)n=e.indexOf(`
|
20
|
+
`,i),n===-1?(s=e.slice(i),i=o):(s=e.slice(i,n+1),i=n+1),s.length&&s!==`
|
21
|
+
`&&(u+=r),u+=s;return u}function Ws(e,t){return`
|
22
|
+
`+ti.repeat(" ",e.indent*t)}function fE(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}function ei(e){return e===K_||e===U_}function Jr(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Vs||65536<=e&&e<=1114111}function Up(e){return Jr(e)&&e!==Vs&&e!==W_&&e!==Qr}function Wp(e,t,r){var i=Up(e),n=i&&!ei(e);return(r?i:i&&e!==zp&&e!==ef&&e!==tf&&e!==rf&&e!==nf)&&e!==Us&&!(t===zn&&!n)||Up(t)&&!ei(t)&&e===Us||t===zn&&n}function dE(e){return Jr(e)&&e!==Vs&&!ei(e)&&e!==z_&&e!==rE&&e!==zn&&e!==zp&&e!==ef&&e!==tf&&e!==rf&&e!==nf&&e!==Us&&e!==X_&&e!==Z_&&e!==Y_&&e!==oE&&e!==eE&&e!==tE&&e!==J_&&e!==V_&&e!==Q_&&e!==nE&&e!==iE}function hE(e){return!ei(e)&&e!==zn}function Vr(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function of(e){var t=/^\n* /;return t.test(e)}var sf=1,Ks=2,af=3,uf=4,xr=5;function mE(e,t,r,i,n,u,s,o){var a,c=0,p=null,l=!1,f=!1,d=i!==-1,m=-1,g=dE(Vr(e,0))&&hE(Vr(e,e.length-1));if(t||s)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Vr(e,a),!Jr(c))return xr;g=g&&Wp(c,p,o),p=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Vr(e,a),c===Qr)l=!0,d&&(f=f||a-m-1>i&&e[m+1]!==" ",m=a);else if(!Jr(c))return xr;g=g&&Wp(c,p,o),p=c}f=f||d&&a-m-1>i&&e[m+1]!==" "}return!l&&!f?g&&!s&&!n(e)?sf:u===Xr?xr:Ks:r>9&&of(e)?xr:s?u===Xr?xr:Ks:f?uf:af}function yE(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===Xr?'""':"''";if(!e.noCompatMode&&(sE.indexOf(t)!==-1||aE.test(t)))return e.quotingType===Xr?'"'+t+'"':"'"+t+"'";var u=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),o=i||e.flowLevel>-1&&r>=e.flowLevel;function a(c){return fE(e,c)}switch(mE(t,o,e.indent,s,a,e.quotingType,e.forceQuotes&&!i,n)){case sf:return t;case Ks:return"'"+t.replace(/'/g,"''")+"'";case af:return"|"+Kp(t,e.indent)+Yp(qp(t,u));case uf:return">"+Kp(t,e.indent)+Yp(qp(gE(t,s),u));case xr:return'"'+vE(t,s)+'"';default:throw new Zr("impossible error: invalid scalar style")}}()}function Kp(e,t){var r=of(e)?String(t):"",i=e[e.length-1]===`
|
23
|
+
`,n=i&&(e[e.length-2]===`
|
24
|
+
`||e===`
|
25
|
+
`),u=n?"+":i?"":"-";return r+u+`
|
26
|
+
`}function Yp(e){return e[e.length-1]===`
|
27
|
+
`?e.slice(0,-1):e}function gE(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
|
28
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,Vp(e.slice(0,c),t)}(),n=e[0]===`
|
29
|
+
`||e[0]===" ",u,s;s=r.exec(e);){var o=s[1],a=s[2];u=a[0]===" ",i+=o+(!n&&!u&&a!==""?`
|
30
|
+
`:"")+Vp(a,t),n=u}return i}function Vp(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,u,s=0,o=0,a="";i=r.exec(e);)o=i.index,o-n>t&&(u=s>n?s:o,a+=`
|
31
|
+
`+e.slice(n,u),n=u+1),s=o;return a+=`
|
32
|
+
`,e.length-n>t&&s>n?a+=e.slice(n,s)+`
|
33
|
+
`+e.slice(s+1):a+=e.slice(n),a.slice(1)}function vE(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=Vr(e,n),i=Ne[r],!i&&Jr(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||cE(r);return t}function _E(e,t,r){var i="",n=e.tag,u,s,o;for(u=0,s=r.length;u<s;u+=1)o=r[u],e.replacer&&(o=e.replacer.call(r,String(u),o)),(St(e,t,o,!1,!1)||typeof o>"u"&&St(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}function Qp(e,t,r,i){var n="",u=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(St(e,t+1,a,!0,!0,!1,!0)||typeof a>"u"&&St(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Ws(e,t)),e.dump&&Qr===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=u,e.dump=n||"[]"}function EE(e,t,r){var i="",n=e.tag,u=Object.keys(r),s,o,a,c,p;for(s=0,o=u.length;s<o;s+=1)p="",i!==""&&(p+=", "),e.condenseFlow&&(p+='"'),a=u[s],c=r[a],e.replacer&&(c=e.replacer.call(r,a,c)),St(e,t,a,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),St(e,t,c,!1,!1)&&(p+=e.dump,i+=p));e.tag=n,e.dump="{"+i+"}"}function SE(e,t,r,i){var n="",u=e.tag,s=Object.keys(r),o,a,c,p,l,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Zr("sortKeys must be a boolean or a function");for(o=0,a=s.length;o<a;o+=1)f="",(!i||n!=="")&&(f+=Ws(e,t)),c=s[o],p=r[c],e.replacer&&(p=e.replacer.call(r,c,p)),St(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&Qr===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,l&&(f+=Ws(e,t)),St(e,t+1,p,!0,l)&&(e.dump&&Qr===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=u,e.dump=n||"{}"}function Xp(e,t,r){var i,n,u,s,o,a;for(n=r?e.explicitTypes:e.implicitTypes,u=0,s=n.length;u<s;u+=1)if(o=n[u],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(a=e.styleMap[o.tag]||o.defaultStyle,Jp.call(o.represent)==="[object Function]")i=o.represent(t,a);else if(Zp.call(o.represent,a))i=o.represent[a](t,a);else throw new Zr("!<"+o.tag+'> tag resolver accepts not "'+a+'" style');e.dump=i}return!0}return!1}function St(e,t,r,i,n,u,s){e.tag=null,e.dump=r,Xp(e,r,!1)||Xp(e,r,!0);var o=Jp.call(e.dump),a=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=e.duplicates.indexOf(r),f=l!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&f&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(SE(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(EE(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Qp(e,t-1,e.dump,n):Qp(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(_E(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&yE(e,e.dump,t,u,a);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Zr("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function AE(e,t){var r=[],i=[],n,u;for(Ys(e,r,i),n=0,u=i.length;n<u;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(u)}function Ys(e,t,r){var i,n,u;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,u=e.length;n<u;n+=1)Ys(e[n],t,r);else for(i=Object.keys(e),n=0,u=i.length;n<u;n+=1)Ys(e[i[n]],t,r)}function bE(e,t){t=t||{};var r=new pE(t);r.noRefs||AE(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),St(r,0,i,!0,!0)?r.dump+`
|
34
|
+
`:""}cf.exports.dump=bE});var ff=te((yT,He)=>{"use strict";j();var pf=Gp(),DE=lf();function Qs(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.")}}He.exports.Type=Ie();He.exports.Schema=As();He.exports.FAILSAFE_SCHEMA=ws();He.exports.JSON_SCHEMA=Os();He.exports.CORE_SCHEMA=Ts();He.exports.DEFAULT_SCHEMA=Vn();He.exports.load=pf.load;He.exports.loadAll=pf.loadAll;He.exports.dump=DE.dump;He.exports.YAMLException=Sr();He.exports.types={binary:Ns(),float:Rs(),map:xs(),null:Cs(),pairs:Ms(),set:js(),timestamp:Ps(),bool:ks(),int:Fs(),merge:Ls(),omap:Bs(),seq:Ds(),str:bs()};He.exports.safeLoad=Qs("safeLoad","load");He.exports.safeLoadAll=Qs("safeLoadAll","loadAll");He.exports.safeDump=Qs("safeDump","dump")});var wd=te((kT,xd)=>{"use strict";j();var xE=Object.create,fi=Object.defineProperty,wE=Object.getOwnPropertyDescriptor,CE=Object.getOwnPropertyNames,kE=Object.getPrototypeOf,FE=Object.prototype.hasOwnProperty,RE=(e,t)=>{for(var r in t)fi(e,r,{get:t[r],enumerable:!0})},Rf=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of CE(t))!FE.call(e,n)&&n!==r&&fi(e,n,{get:()=>t[n],enumerable:!(i=wE(t,n))||i.enumerable});return e},Ce=(e,t,r)=>(r=e!=null?xE(kE(e)):{},Rf(t||!e||!e.__esModule?fi(r,"default",{value:e,enumerable:!0}):r,e)),OE=e=>Rf(fi({},"__esModule",{value:!0}),e),Of={};RE(Of,{ConvertError:()=>Ge,MANAGERS:()=>Rr,convert:()=>hx,getPackageManagerMeta:()=>bd,getWorkspaceDetails:()=>Sd,install:()=>Dd});xd.exports=OE(Of);var TE=Object.create,Tf=Object.defineProperty,PE=Object.getOwnPropertyDescriptor,LE=Object.getOwnPropertyNames,IE=Object.getPrototypeOf,NE=Object.prototype.hasOwnProperty,ue=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),BE=(e,t)=>()=>(e&&(t=e(e=0)),t),W=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ME=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of LE(t))!NE.call(e,n)&&n!==r&&Tf(e,n,{get:()=>t[n],enumerable:!(i=PE(t,n))||i.enumerable});return e},an=(e,t,r)=>(r=e!=null?TE(IE(e)):{},ME(t||!e||!e.__esModule?Tf(r,"default",{value:e,enumerable:!0}):r,e)),G=BE(()=>{});G();var jE=W((e,t)=>{G();function r(i){return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t.exports.__esModule=!0,t.exports.default=t.exports,r(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}),$E=W((e,t)=>{G();var r=jE().default;function i(){"use strict";t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},u=Object.prototype,s=u.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",p=o.toStringTag||"@@toStringTag";function l(C,S,R){return Object.defineProperty(C,S,{value:R,enumerable:!0,configurable:!0,writable:!0}),C[S]}try{l({},"")}catch{l=function(C,S,R){return C[S]=R}}function f(C,S,R,L){var M=S&&S.prototype instanceof g?S:g,B=Object.create(M.prototype),Q=new w(L||[]);return B._invoke=function(Z,oe,N){var le="suspendedStart";return function(pe,ne){if(le==="executing")throw new Error("Generator is already running");if(le==="completed"){if(pe==="throw")throw ne;return P()}for(N.method=pe,N.arg=ne;;){var T=N.delegate;if(T){var I=k(T,N);if(I){if(I===m)continue;return I}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(le==="suspendedStart")throw le="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);le="executing";var $=d(Z,oe,N);if($.type==="normal"){if(le=N.done?"completed":"suspendedYield",$.arg===m)continue;return{value:$.arg,done:N.done}}$.type==="throw"&&(le="completed",N.method="throw",N.arg=$.arg)}}}(C,R,Q),B}function d(C,S,R){try{return{type:"normal",arg:C.call(S,R)}}catch(L){return{type:"throw",arg:L}}}n.wrap=f;var m={};function g(){}function _(){}function E(){}var h={};l(h,a,function(){return this});var v=Object.getPrototypeOf,x=v&&v(v(O([])));x&&x!==u&&s.call(x,a)&&(h=x);var y=E.prototype=g.prototype=Object.create(h);function A(C){["next","throw","return"].forEach(function(S){l(C,S,function(R){return this._invoke(S,R)})})}function b(C,S){function R(M,B,Q,Z){var oe=d(C[M],C,B);if(oe.type!=="throw"){var N=oe.arg,le=N.value;return le&&r(le)=="object"&&s.call(le,"__await")?S.resolve(le.__await).then(function(pe){R("next",pe,Q,Z)},function(pe){R("throw",pe,Q,Z)}):S.resolve(le).then(function(pe){N.value=pe,Q(N)},function(pe){return R("throw",pe,Q,Z)})}Z(oe.arg)}var L;this._invoke=function(M,B){function Q(){return new S(function(Z,oe){R(M,B,Z,oe)})}return L=L?L.then(Q,Q):Q()}}function k(C,S){var R=C.iterator[S.method];if(R===void 0){if(S.delegate=null,S.method==="throw"){if(C.iterator.return&&(S.method="return",S.arg=void 0,k(C,S),S.method==="throw"))return m;S.method="throw",S.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var L=d(R,C.iterator,S.arg);if(L.type==="throw")return S.method="throw",S.arg=L.arg,S.delegate=null,m;var M=L.arg;return M?M.done?(S[C.resultName]=M.value,S.next=C.nextLoc,S.method!=="return"&&(S.method="next",S.arg=void 0),S.delegate=null,m):M:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,m)}function D(C){var S={tryLoc:C[0]};1 in C&&(S.catchLoc=C[1]),2 in C&&(S.finallyLoc=C[2],S.afterLoc=C[3]),this.tryEntries.push(S)}function F(C){var S=C.completion||{};S.type="normal",delete S.arg,C.completion=S}function w(C){this.tryEntries=[{tryLoc:"root"}],C.forEach(D,this),this.reset(!0)}function O(C){if(C){var S=C[a];if(S)return S.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var R=-1,L=function M(){for(;++R<C.length;)if(s.call(C,R))return M.value=C[R],M.done=!1,M;return M.value=void 0,M.done=!0,M};return L.next=L}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=E,l(y,"constructor",E),l(E,"constructor",_),_.displayName=l(E,p,"GeneratorFunction"),n.isGeneratorFunction=function(C){var S=typeof C=="function"&&C.constructor;return!!S&&(S===_||(S.displayName||S.name)==="GeneratorFunction")},n.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,E):(C.__proto__=E,l(C,p,"GeneratorFunction")),C.prototype=Object.create(y),C},n.awrap=function(C){return{__await:C}},A(b.prototype),l(b.prototype,c,function(){return this}),n.AsyncIterator=b,n.async=function(C,S,R,L,M){M===void 0&&(M=Promise);var B=new b(f(C,S,R,L),M);return n.isGeneratorFunction(S)?B:B.next().then(function(Q){return Q.done?Q.value:B.next()})},A(y),l(y,p,"Generator"),l(y,a,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),n.keys=function(C){var S=[];for(var R in C)S.push(R);return S.reverse(),function L(){for(;S.length;){var M=S.pop();if(M in C)return L.value=M,L.done=!1,L}return L.done=!0,L}},n.values=O,w.prototype={constructor:w,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!C)for(var S in this)S.charAt(0)==="t"&&s.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=void 0)},stop:function(){this.done=!0;var C=this.tryEntries[0].completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var S=this;function R(oe,N){return B.type="throw",B.arg=C,S.next=oe,N&&(S.method="next",S.arg=void 0),!!N}for(var L=this.tryEntries.length-1;L>=0;--L){var M=this.tryEntries[L],B=M.completion;if(M.tryLoc==="root")return R("end");if(M.tryLoc<=this.prev){var Q=s.call(M,"catchLoc"),Z=s.call(M,"finallyLoc");if(Q&&Z){if(this.prev<M.catchLoc)return R(M.catchLoc,!0);if(this.prev<M.finallyLoc)return R(M.finallyLoc)}else if(Q){if(this.prev<M.catchLoc)return R(M.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return R(M.finallyLoc)}}}},abrupt:function(C,S){for(var R=this.tryEntries.length-1;R>=0;--R){var L=this.tryEntries[R];if(L.tryLoc<=this.prev&&s.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var M=L;break}}M&&(C==="break"||C==="continue")&&M.tryLoc<=S&&S<=M.finallyLoc&&(M=null);var B=M?M.completion:{};return B.type=C,B.arg=S,M?(this.method="next",this.next=M.finallyLoc,m):this.complete(B)},complete:function(C,S){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&S&&(this.next=S),m},finish:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.finallyLoc===C)return this.complete(R.completion,R.afterLoc),F(R),m}},catch:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.tryLoc===C){var L=R.completion;if(L.type==="throw"){var M=L.arg;F(R)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(C,S,R){return this.delegate={iterator:O(C),resultName:S,nextLoc:R},this.method==="next"&&(this.arg=void 0),m}},n}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}),HE=W((e,t)=>{G();var r=$E()();t.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),GE=W((e,t)=>{"use strict";G();var r=(i,...n)=>new Promise(u=>{u(i(...n))});t.exports=r,t.exports.default=r}),qE=W((e,t)=>{"use strict";G();var r=GE(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let u=[],s=0,o=()=>{s--,u.length>0&&u.shift()()},a=(l,f,...d)=>{s++;let m=r(l,...d);f(m),m.then(o,o)},c=(l,f,...d)=>{s<n?a(l,f,...d):u.push(a.bind(null,l,f,...d))},p=(l,...f)=>new Promise(d=>c(l,d,...f));return Object.defineProperties(p,{activeCount:{get:()=>s},pendingCount:{get:()=>u.length},clearQueue:{value:()=>{u.length=0}}}),p};t.exports=i,t.exports.default=i}),UE=W((e,t)=>{"use strict";G();var r=qE(),i=class extends Error{constructor(o){super(),this.value=o}},n=async(o,a)=>a(await o),u=async o=>{let a=await Promise.all(o);if(a[1]===!0)throw new i(a[0]);return!1},s=async(o,a,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let p=r(c.concurrency),l=[...o].map(d=>[d,p(n,d,a)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(l.map(d=>f(u,d)))}catch(d){if(d instanceof i)return d.value;throw d}};t.exports=s,t.exports.default=s}),WE=W((e,t)=>{"use strict";G();var r=ue("path"),i=ue("fs"),{promisify:n}=ue("util"),u=UE(),s=n(i.stat),o=n(i.lstat),a={directory:"isDirectory",file:"isFile"};function c({type:l}){if(!(l in a))throw new Error(`Invalid type specified: ${l}`)}var p=(l,f)=>l===void 0||f[a[l]]();t.exports=async(l,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?s:o;return u(l,async m=>{try{let g=await d(r.resolve(f.cwd,m));return p(f.type,g)}catch{return!1}},f)},t.exports.sync=(l,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of l)try{let g=d(r.resolve(f.cwd,m));if(p(f.type,g))return m}catch{}}}),KE=W((e,t)=>{"use strict";G();var r=ue("fs"),{promisify:i}=ue("util"),n=i(r.access);t.exports=async u=>{try{return await n(u),!0}catch{return!1}},t.exports.sync=u=>{try{return r.accessSync(u),!0}catch{return!1}}}),YE=W((e,t)=>{"use strict";G();var r=ue("path"),i=WE(),n=KE(),u=Symbol("findUp.stop");t.exports=async(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=async f=>{if(typeof s!="function")return i(p,f);let d=await s(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.sync=(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=f=>{if(typeof s!="function")return i.sync(p,f);let d=s(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.exists=n,t.exports.sync.exists=n.sync,t.exports.stop=u}),Je=W(e=>{"use strict";G(),e.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((r,i)=>{arguments[arguments.length]=(n,u)=>{if(n)return i(n);r(u)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){let r=arguments[arguments.length-1];if(typeof r!="function")return t.apply(this,arguments);t.apply(this,arguments).then(i=>r(null,i),r)},"name",{value:t.name})}}),VE=W((e,t)=>{G();var r=ue("constants"),i=process.cwd,n=null,u=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=i.call(process)),n};try{process.cwd()}catch{}typeof process.chdir=="function"&&(s=process.chdir,process.chdir=function(a){n=null,s.call(process,a)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s));var s;t.exports=o;function o(a){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(a),a.lutimes||p(a),a.chown=d(a.chown),a.fchown=d(a.fchown),a.lchown=d(a.lchown),a.chmod=l(a.chmod),a.fchmod=l(a.fchmod),a.lchmod=l(a.lchmod),a.chownSync=m(a.chownSync),a.fchownSync=m(a.fchownSync),a.lchownSync=m(a.lchownSync),a.chmodSync=f(a.chmodSync),a.fchmodSync=f(a.fchmodSync),a.lchmodSync=f(a.lchmodSync),a.stat=g(a.stat),a.fstat=g(a.fstat),a.lstat=g(a.lstat),a.statSync=_(a.statSync),a.fstatSync=_(a.fstatSync),a.lstatSync=_(a.lstatSync),a.chmod&&!a.lchmod&&(a.lchmod=function(h,v,x){x&&process.nextTick(x)},a.lchmodSync=function(){}),a.chown&&!a.lchown&&(a.lchown=function(h,v,x,y){y&&process.nextTick(y)},a.lchownSync=function(){}),u==="win32"&&(a.rename=typeof a.rename!="function"?a.rename:function(h){function v(x,y,A){var b=Date.now(),k=0;h(x,y,function D(F){if(F&&(F.code==="EACCES"||F.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){a.stat(y,function(w,O){w&&w.code==="ENOENT"?h(x,y,D):A(F)})},k),k<100&&(k+=10);return}A&&A(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(v,h),v}(a.rename)),a.read=typeof a.read!="function"?a.read:function(h){function v(x,y,A,b,k,D){var F;if(D&&typeof D=="function"){var w=0;F=function(O,P,C){if(O&&O.code==="EAGAIN"&&w<10)return w++,h.call(a,x,y,A,b,k,F);D.apply(this,arguments)}}return h.call(a,x,y,A,b,k,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(v,h),v}(a.read),a.readSync=typeof a.readSync!="function"?a.readSync:function(h){return function(v,x,y,A,b){for(var k=0;;)try{return h.call(a,v,x,y,A,b)}catch(D){if(D.code==="EAGAIN"&&k<10){k++;continue}throw D}}}(a.readSync);function c(h){h.lchmod=function(v,x,y){h.open(v,r.O_WRONLY|r.O_SYMLINK,x,function(A,b){if(A){y&&y(A);return}h.fchmod(b,x,function(k){h.close(b,function(D){y&&y(k||D)})})})},h.lchmodSync=function(v,x){var y=h.openSync(v,r.O_WRONLY|r.O_SYMLINK,x),A=!0,b;try{b=h.fchmodSync(y,x),A=!1}finally{if(A)try{h.closeSync(y)}catch{}else h.closeSync(y)}return b}}function p(h){r.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(v,x,y,A){h.open(v,r.O_SYMLINK,function(b,k){if(b){A&&A(b);return}h.futimes(k,x,y,function(D){h.close(k,function(F){A&&A(D||F)})})})},h.lutimesSync=function(v,x,y){var A=h.openSync(v,r.O_SYMLINK),b,k=!0;try{b=h.futimesSync(A,x,y),k=!1}finally{if(k)try{h.closeSync(A)}catch{}else h.closeSync(A)}return b}):h.futimes&&(h.lutimes=function(v,x,y,A){A&&process.nextTick(A)},h.lutimesSync=function(){})}function l(h){return h&&function(v,x,y){return h.call(a,v,x,function(A){E(A)&&(A=null),y&&y.apply(this,arguments)})}}function f(h){return h&&function(v,x){try{return h.call(a,v,x)}catch(y){if(!E(y))throw y}}}function d(h){return h&&function(v,x,y,A){return h.call(a,v,x,y,function(b){E(b)&&(b=null),A&&A.apply(this,arguments)})}}function m(h){return h&&function(v,x,y){try{return h.call(a,v,x,y)}catch(A){if(!E(A))throw A}}}function g(h){return h&&function(v,x,y){typeof x=="function"&&(y=x,x=null);function A(b,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),y&&y.apply(this,arguments)}return x?h.call(a,v,x,A):h.call(a,v,A)}}function _(h){return h&&function(v,x){var y=x?h.call(a,v,x):h.call(a,v);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function E(h){if(!h||h.code==="ENOSYS")return!0;var v=!process.getuid||process.getuid()!==0;return!!(v&&(h.code==="EINVAL"||h.code==="EPERM"))}}}),QE=W((e,t)=>{G();var r=ue("stream").Stream;t.exports=i;function i(n){return{ReadStream:u,WriteStream:s};function u(o,a){if(!(this instanceof u))return new u(o,a);r.call(this);var c=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var p=Object.keys(a),l=0,f=p.length;l<f;l++){var d=p[l];this[d]=a[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}n.open(this.path,this.flags,this.mode,function(m,g){if(m){c.emit("error",m),c.readable=!1;return}c.fd=g,c.emit("open",g),c._read()})}function s(o,a){if(!(this instanceof s))return new s(o,a);r.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var c=Object.keys(a),p=0,l=c.length;p<l;p++){var f=c[p];this[f]=a[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),XE=W((e,t)=>{"use strict";G(),t.exports=i;var r=Object.getPrototypeOf||function(n){return n.__proto__};function i(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var u={__proto__:r(n)};else var u=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(s){Object.defineProperty(u,s,Object.getOwnPropertyDescriptor(n,s))}),u}}),Re=W((e,t)=>{G();var r=ue("fs"),i=VE(),n=QE(),u=XE(),s=ue("util"),o,a;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),a=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",a="___graceful-fs.previous");function c(){}function p(h,v){Object.defineProperty(h,o,{get:function(){return v}})}var l=c;s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var h=s.format.apply(s,arguments);h="GFS4: "+h.split(/\n/).join(`
|
35
|
+
GFS4: `),console.error(h)}),r[o]||(f=global[o]||[],p(r,f),r.close=function(h){function v(x,y){return h.call(r,x,function(A){A||_(),typeof y=="function"&&y.apply(this,arguments)})}return Object.defineProperty(v,a,{value:h}),v}(r.close),r.closeSync=function(h){function v(x){h.apply(r,arguments),_()}return Object.defineProperty(v,a,{value:h}),v}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(r[o]),ue("assert").equal(r[o].length,0)}));var f;global[o]||p(global,r[o]),t.exports=d(u(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=d(r),r.__patched=!0);function d(h){i(h),h.gracefulify=d,h.createReadStream=N,h.createWriteStream=le;var v=h.readFile;h.readFile=x;function x(T,I,$){return typeof I=="function"&&($=I,I=null),K(T,I,$);function K(Y,z,X,ee){return v(Y,z,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?m([K,[Y,z,X],ie,ee||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var y=h.writeFile;h.writeFile=A;function A(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return y(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var b=h.appendFile;b&&(h.appendFile=k);function k(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return b(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var D=h.copyFile;D&&(h.copyFile=F);function F(T,I,$,K){return typeof $=="function"&&(K=$,$=0),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return D(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var w=h.readdir;h.readdir=P;var O=/^v[0-5]\./;function P(T,I,$){typeof I=="function"&&($=I,I=null);var K=O.test(process.version)?function(z,X,ee,ie){return w(z,Y(z,X,ee,ie))}:function(z,X,ee,ie){return w(z,X,Y(z,X,ee,ie))};return K(T,I,$);function Y(z,X,ee,ie){return function(ye,se){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?m([K,[z,X,ee],ye,ie||Date.now(),Date.now()]):(se&&se.sort&&se.sort(),typeof ee=="function"&&ee.call(this,ye,se))}}}if(process.version.substr(0,4)==="v0.8"){var C=n(h);B=C.ReadStream,Z=C.WriteStream}var S=h.ReadStream;S&&(B.prototype=Object.create(S.prototype),B.prototype.open=Q);var R=h.WriteStream;R&&(Z.prototype=Object.create(R.prototype),Z.prototype.open=oe),Object.defineProperty(h,"ReadStream",{get:function(){return B},set:function(T){B=T},enumerable:!0,configurable:!0}),Object.defineProperty(h,"WriteStream",{get:function(){return Z},set:function(T){Z=T},enumerable:!0,configurable:!0});var L=B;Object.defineProperty(h,"FileReadStream",{get:function(){return L},set:function(T){L=T},enumerable:!0,configurable:!0});var M=Z;Object.defineProperty(h,"FileWriteStream",{get:function(){return M},set:function(T){M=T},enumerable:!0,configurable:!0});function B(T,I){return this instanceof B?(S.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function Q(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.autoClose&&T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$),T.read())})}function Z(T,I){return this instanceof Z?(R.apply(this,arguments),this):Z.apply(Object.create(Z.prototype),arguments)}function oe(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$))})}function N(T,I){return new h.ReadStream(T,I)}function le(T,I){return new h.WriteStream(T,I)}var pe=h.open;h.open=ne;function ne(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return pe(z,X,ee,function(se,re){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}return h}function m(h){l("ENQUEUE",h[0].name,h[1]),r[o].push(h),E()}var g;function _(){for(var h=Date.now(),v=0;v<r[o].length;++v)r[o][v].length>2&&(r[o][v][3]=h,r[o][v][4]=h);E()}function E(){if(clearTimeout(g),g=void 0,r[o].length!==0){var h=r[o].shift(),v=h[0],x=h[1],y=h[2],A=h[3],b=h[4];if(A===void 0)l("RETRY",v.name,x),v.apply(null,x);else if(Date.now()-A>=6e4){l("TIMEOUT",v.name,x);var k=x.pop();typeof k=="function"&&k.call(null,y)}else{var D=Date.now()-b,F=Math.max(b-A,1),w=Math.min(F*1.2,100);D>=w?(l("RETRY",v.name,x),v.apply(null,x.concat([A]))):r[o].push(h)}g===void 0&&(g=setTimeout(E,0))}}}),Pf=W(e=>{"use strict";G();var t=Je().fromCallback,r=Re(),i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof r[n]=="function");Object.keys(r).forEach(n=>{n!=="promises"&&(e[n]=r[n])}),i.forEach(n=>{e[n]=t(r[n])}),e.exists=function(n,u){return typeof u=="function"?r.exists(n,u):new Promise(s=>r.exists(n,s))},e.read=function(n,u,s,o,a,c){return typeof c=="function"?r.read(n,u,s,o,a,c):new Promise((p,l)=>{r.read(n,u,s,o,a,(f,d,m)=>{if(f)return l(f);p({bytesRead:d,buffer:m})})})},e.write=function(n,u,...s){return typeof s[s.length-1]=="function"?r.write(n,u,...s):new Promise((o,a)=>{r.write(n,u,...s,(c,p,l)=>{if(c)return a(c);o({bytesWritten:p,buffer:l})})})},typeof r.realpath.native=="function"&&(e.realpath.native=t(r.realpath.native))}),Lf=W((e,t)=>{"use strict";G();var r=ue("path");function i(s){return s=r.normalize(r.resolve(s)).split(r.sep),s.length>0?s[0]:null}var n=/[<>:"|?*]/;function u(s){let o=i(s);return s=s.replace(o,""),n.test(s)}t.exports={getRootPath:i,invalidWin32Path:u}}),JE=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=Lf().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c,p){if(typeof a=="function"?(c=a,a={}):(!a||typeof a!="object")&&(a={mode:a}),process.platform==="win32"&&n(o)){let d=new Error(o+" contains invalid WIN32 path characters.");return d.code="EINVAL",c(d)}let l=a.mode,f=a.fs||r;l===void 0&&(l=u&~process.umask()),p||(p=null),c=c||function(){},o=i.resolve(o),f.mkdir(o,l,d=>{if(!d)return p=p||o,c(null,p);switch(d.code){case"ENOENT":if(i.dirname(o)===o)return c(d);s(i.dirname(o),a,(m,g)=>{m?c(m,g):s(o,a,c,g)});break;default:f.stat(o,(m,g)=>{m||!g.isDirectory()?c(d,p):c(null,p)});break}})}t.exports=s}),ZE=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=Lf().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c){(!a||typeof a!="object")&&(a={mode:a});let p=a.mode,l=a.fs||r;if(process.platform==="win32"&&n(o)){let f=new Error(o+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}p===void 0&&(p=u&~process.umask()),c||(c=null),o=i.resolve(o);try{l.mkdirSync(o,p),c=c||o}catch(f){if(f.code==="ENOENT"){if(i.dirname(o)===o)throw f;c=s(i.dirname(o),a,c),s(o,a,c)}else{let d;try{d=l.statSync(o)}catch{throw f}if(!d.isDirectory())throw f}}return c}t.exports=s}),it=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=r(JE()),n=ZE();t.exports={mkdirs:i,mkdirsSync:n,mkdirp:i,mkdirpSync:n,ensureDir:i,ensureDirSync:n}}),If=W((e,t)=>{"use strict";G();var r=Re(),i=ue("os"),n=ue("path");function u(){let p=n.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));p=n.join(i.tmpdir(),p);let l=new Date(1435410243862);r.writeFileSync(p,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=r.openSync(p,"r+");return r.futimesSync(f,l,l),r.closeSync(f),r.statSync(p).mtime>1435410243e3}function s(p){let l=n.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=n.join(i.tmpdir(),l);let f=new Date(1435410243862);r.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return p(d);r.open(l,"r+",(m,g)=>{if(m)return p(m);r.futimes(g,f,f,_=>{if(_)return p(_);r.close(g,E=>{if(E)return p(E);r.stat(l,(h,v)=>{if(h)return p(h);p(null,v.mtime>1435410243e3)})})})})})}function o(p){if(typeof p=="number")return Math.floor(p/1e3)*1e3;if(p instanceof Date)return new Date(Math.floor(p.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function a(p,l,f,d){r.open(p,"r+",(m,g)=>{if(m)return d(m);r.futimes(g,l,f,_=>{r.close(g,E=>{d&&d(_||E)})})})}function c(p,l,f){let d=r.openSync(p,"r+");return r.futimesSync(d,l,f),r.closeSync(d)}t.exports={hasMillisRes:s,hasMillisResSync:u,timeRemoveMillis:o,utimesMillis:a,utimesMillisSync:c}}),di=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=10,u=5,s=0,o=process.versions.node.split("."),a=Number.parseInt(o[0],10),c=Number.parseInt(o[1],10),p=Number.parseInt(o[2],10);function l(){return a>n||a===n&&(c>u||c===u&&p>=s)}function f(x,y,A){l()?r.stat(x,{bigint:!0},(b,k)=>{if(b)return A(b);r.stat(y,{bigint:!0},(D,F)=>D?D.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(D):A(null,{srcStat:k,destStat:F}))}):r.stat(x,(b,k)=>{if(b)return A(b);r.stat(y,(D,F)=>D?D.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(D):A(null,{srcStat:k,destStat:F}))})}function d(x,y){let A,b;l()?A=r.statSync(x,{bigint:!0}):A=r.statSync(x);try{l()?b=r.statSync(y,{bigint:!0}):b=r.statSync(y)}catch(k){if(k.code==="ENOENT")return{srcStat:A,destStat:null};throw k}return{srcStat:A,destStat:b}}function m(x,y,A,b){f(x,y,(k,D)=>{if(k)return b(k);let{srcStat:F,destStat:w}=D;return w&&w.ino&&w.dev&&w.ino===F.ino&&w.dev===F.dev?b(new Error("Source and destination must not be the same.")):F.isDirectory()&&h(x,y)?b(new Error(v(x,y,A))):b(null,{srcStat:F,destStat:w})})}function g(x,y,A){let{srcStat:b,destStat:k}=d(x,y);if(k&&k.ino&&k.dev&&k.ino===b.ino&&k.dev===b.dev)throw new Error("Source and destination must not be the same.");if(b.isDirectory()&&h(x,y))throw new Error(v(x,y,A));return{srcStat:b,destStat:k}}function _(x,y,A,b,k){let D=i.resolve(i.dirname(x)),F=i.resolve(i.dirname(A));if(F===D||F===i.parse(F).root)return k();l()?r.stat(F,{bigint:!0},(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===y.ino&&O.dev===y.dev?k(new Error(v(x,A,b))):_(x,y,F,b,k)):r.stat(F,(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===y.ino&&O.dev===y.dev?k(new Error(v(x,A,b))):_(x,y,F,b,k))}function E(x,y,A,b){let k=i.resolve(i.dirname(x)),D=i.resolve(i.dirname(A));if(D===k||D===i.parse(D).root)return;let F;try{l()?F=r.statSync(D,{bigint:!0}):F=r.statSync(D)}catch(w){if(w.code==="ENOENT")return;throw w}if(F.ino&&F.dev&&F.ino===y.ino&&F.dev===y.dev)throw new Error(v(x,A,b));return E(x,y,D,b)}function h(x,y){let A=i.resolve(x).split(i.sep).filter(k=>k),b=i.resolve(y).split(i.sep).filter(k=>k);return A.reduce((k,D,F)=>k&&b[F]===D,!0)}function v(x,y,A){return`Cannot ${A} '${x}' to a subdirectory of itself, '${y}'.`}t.exports={checkPaths:m,checkPathsSync:g,checkParentPaths:_,checkParentPathsSync:E,isSrcSubdir:h}}),zE=W((e,t)=>{"use strict";G(),t.exports=function(r){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(r)}catch{return new Buffer(r)}return new Buffer(r)}}),eS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=it().mkdirsSync,u=If().utimesMillisSync,s=di();function o(y,A,b){typeof b=="function"&&(b={filter:b}),b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
36
|
+
|
37
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:k,destStat:D}=s.checkPathsSync(y,A,"copy");return s.checkParentPathsSync(y,k,A,"copy"),a(D,y,A,b)}function a(y,A,b,k){if(k.filter&&!k.filter(A,b))return;let D=i.dirname(b);return r.existsSync(D)||n(D),c(y,A,b,k)}function c(y,A,b,k){if(!(k.filter&&!k.filter(A,b)))return p(y,A,b,k)}function p(y,A,b,k){let D=(k.dereference?r.statSync:r.lstatSync)(A);if(D.isDirectory())return g(D,y,A,b,k);if(D.isFile()||D.isCharacterDevice()||D.isBlockDevice())return l(D,y,A,b,k);if(D.isSymbolicLink())return v(y,A,b,k)}function l(y,A,b,k,D){return A?f(y,b,k,D):d(y,b,k,D)}function f(y,A,b,k){if(k.overwrite)return r.unlinkSync(b),d(y,A,b,k);if(k.errorOnExist)throw new Error(`'${b}' already exists`)}function d(y,A,b,k){return typeof r.copyFileSync=="function"?(r.copyFileSync(A,b),r.chmodSync(b,y.mode),k.preserveTimestamps?u(b,y.atime,y.mtime):void 0):m(y,A,b,k)}function m(y,A,b,k){let D=zE()(65536),F=r.openSync(A,"r"),w=r.openSync(b,"w",y.mode),O=0;for(;O<y.size;){let P=r.readSync(F,D,0,65536,O);r.writeSync(w,D,0,P),O+=P}k.preserveTimestamps&&r.futimesSync(w,y.atime,y.mtime),r.closeSync(F),r.closeSync(w)}function g(y,A,b,k,D){if(!A)return _(y,b,k,D);if(A&&!A.isDirectory())throw new Error(`Cannot overwrite non-directory '${k}' with directory '${b}'.`);return E(b,k,D)}function _(y,A,b,k){return r.mkdirSync(b),E(A,b,k),r.chmodSync(b,y.mode)}function E(y,A,b){r.readdirSync(y).forEach(k=>h(k,y,A,b))}function h(y,A,b,k){let D=i.join(A,y),F=i.join(b,y),{destStat:w}=s.checkPathsSync(D,F,"copy");return c(w,D,F,k)}function v(y,A,b,k){let D=r.readlinkSync(A);if(k.dereference&&(D=i.resolve(process.cwd(),D)),y){let F;try{F=r.readlinkSync(b)}catch(w){if(w.code==="EINVAL"||w.code==="UNKNOWN")return r.symlinkSync(D,b);throw w}if(k.dereference&&(F=i.resolve(process.cwd(),F)),s.isSrcSubdir(D,F))throw new Error(`Cannot copy '${D}' to a subdirectory of itself, '${F}'.`);if(r.statSync(b).isDirectory()&&s.isSrcSubdir(F,D))throw new Error(`Cannot overwrite '${F}' with '${D}'.`);return x(D,b)}else return r.symlinkSync(D,b)}function x(y,A){return r.unlinkSync(A),r.symlinkSync(y,A)}t.exports=o}),Nf=W((e,t)=>{"use strict";G(),t.exports={copySync:eS()}}),bt=W((e,t)=>{"use strict";G();var r=Je().fromPromise,i=Pf();function n(u){return i.access(u).then(()=>!0).catch(()=>!1)}t.exports={pathExists:r(n),pathExistsSync:i.existsSync}}),tS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=it().mkdirs,u=bt().pathExists,s=If().utimesMillis,o=di();function a(D,F,w,O){typeof w=="function"&&!O?(O=w,w={}):typeof w=="function"&&(w={filter:w}),O=O||function(){},w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
38
|
+
|
39
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),o.checkPaths(D,F,"copy",(P,C)=>{if(P)return O(P);let{srcStat:S,destStat:R}=C;o.checkParentPaths(D,S,F,"copy",L=>L?O(L):w.filter?p(c,R,D,F,w,O):c(R,D,F,w,O))})}function c(D,F,w,O,P){let C=i.dirname(w);u(C,(S,R)=>{if(S)return P(S);if(R)return l(D,F,w,O,P);n(C,L=>L?P(L):l(D,F,w,O,P))})}function p(D,F,w,O,P,C){Promise.resolve(P.filter(w,O)).then(S=>S?D(F,w,O,P,C):C(),S=>C(S))}function l(D,F,w,O,P){return O.filter?p(f,D,F,w,O,P):f(D,F,w,O,P)}function f(D,F,w,O,P){(O.dereference?r.stat:r.lstat)(F,(C,S)=>{if(C)return P(C);if(S.isDirectory())return h(S,D,F,w,O,P);if(S.isFile()||S.isCharacterDevice()||S.isBlockDevice())return d(S,D,F,w,O,P);if(S.isSymbolicLink())return b(D,F,w,O,P)})}function d(D,F,w,O,P,C){return F?m(D,w,O,P,C):g(D,w,O,P,C)}function m(D,F,w,O,P){if(O.overwrite)r.unlink(w,C=>C?P(C):g(D,F,w,O,P));else return O.errorOnExist?P(new Error(`'${w}' already exists`)):P()}function g(D,F,w,O,P){return typeof r.copyFile=="function"?r.copyFile(F,w,C=>C?P(C):E(D,w,O,P)):_(D,F,w,O,P)}function _(D,F,w,O,P){let C=r.createReadStream(F);C.on("error",S=>P(S)).once("open",()=>{let S=r.createWriteStream(w,{mode:D.mode});S.on("error",R=>P(R)).on("open",()=>C.pipe(S)).once("close",()=>E(D,w,O,P))})}function E(D,F,w,O){r.chmod(F,D.mode,P=>P?O(P):w.preserveTimestamps?s(F,D.atime,D.mtime,O):O())}function h(D,F,w,O,P,C){return F?F&&!F.isDirectory()?C(new Error(`Cannot overwrite non-directory '${O}' with directory '${w}'.`)):x(w,O,P,C):v(D,w,O,P,C)}function v(D,F,w,O,P){r.mkdir(w,C=>{if(C)return P(C);x(F,w,O,S=>S?P(S):r.chmod(w,D.mode,P))})}function x(D,F,w,O){r.readdir(D,(P,C)=>P?O(P):y(C,D,F,w,O))}function y(D,F,w,O,P){let C=D.pop();return C?A(D,C,F,w,O,P):P()}function A(D,F,w,O,P,C){let S=i.join(w,F),R=i.join(O,F);o.checkPaths(S,R,"copy",(L,M)=>{if(L)return C(L);let{destStat:B}=M;l(B,S,R,P,Q=>Q?C(Q):y(D,w,O,P,C))})}function b(D,F,w,O,P){r.readlink(F,(C,S)=>{if(C)return P(C);if(O.dereference&&(S=i.resolve(process.cwd(),S)),D)r.readlink(w,(R,L)=>R?R.code==="EINVAL"||R.code==="UNKNOWN"?r.symlink(S,w,P):P(R):(O.dereference&&(L=i.resolve(process.cwd(),L)),o.isSrcSubdir(S,L)?P(new Error(`Cannot copy '${S}' to a subdirectory of itself, '${L}'.`)):D.isDirectory()&&o.isSrcSubdir(L,S)?P(new Error(`Cannot overwrite '${L}' with '${S}'.`)):k(S,w,P)));else return r.symlink(S,w,P)})}function k(D,F,w){r.unlink(F,O=>O?w(O):r.symlink(D,F,w))}t.exports=a}),Bf=W((e,t)=>{"use strict";G();var r=Je().fromCallback;t.exports={copy:r(tS())}}),rS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=ue("assert"),u=process.platform==="win32";function s(_){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(E=>{_[E]=_[E]||r[E],E=E+"Sync",_[E]=_[E]||r[E]}),_.maxBusyTries=_.maxBusyTries||3}function o(_,E,h){let v=0;typeof E=="function"&&(h=E,E={}),n(_,"rimraf: missing path"),n.strictEqual(typeof _,"string","rimraf: path should be a string"),n.strictEqual(typeof h,"function","rimraf: callback function required"),n(E,"rimraf: invalid options argument provided"),n.strictEqual(typeof E,"object","rimraf: options should be object"),s(E),a(_,E,function x(y){if(y){if((y.code==="EBUSY"||y.code==="ENOTEMPTY"||y.code==="EPERM")&&v<E.maxBusyTries){v++;let A=v*100;return setTimeout(()=>a(_,E,x),A)}y.code==="ENOENT"&&(y=null)}h(y)})}function a(_,E,h){n(_),n(E),n(typeof h=="function"),E.lstat(_,(v,x)=>{if(v&&v.code==="ENOENT")return h(null);if(v&&v.code==="EPERM"&&u)return c(_,E,v,h);if(x&&x.isDirectory())return l(_,E,v,h);E.unlink(_,y=>{if(y){if(y.code==="ENOENT")return h(null);if(y.code==="EPERM")return u?c(_,E,y,h):l(_,E,y,h);if(y.code==="EISDIR")return l(_,E,y,h)}return h(y)})})}function c(_,E,h,v){n(_),n(E),n(typeof v=="function"),h&&n(h instanceof Error),E.chmod(_,438,x=>{x?v(x.code==="ENOENT"?null:h):E.stat(_,(y,A)=>{y?v(y.code==="ENOENT"?null:h):A.isDirectory()?l(_,E,h,v):E.unlink(_,v)})})}function p(_,E,h){let v;n(_),n(E),h&&n(h instanceof Error);try{E.chmodSync(_,438)}catch(x){if(x.code==="ENOENT")return;throw h}try{v=E.statSync(_)}catch(x){if(x.code==="ENOENT")return;throw h}v.isDirectory()?m(_,E,h):E.unlinkSync(_)}function l(_,E,h,v){n(_),n(E),h&&n(h instanceof Error),n(typeof v=="function"),E.rmdir(_,x=>{x&&(x.code==="ENOTEMPTY"||x.code==="EEXIST"||x.code==="EPERM")?f(_,E,v):x&&x.code==="ENOTDIR"?v(h):v(x)})}function f(_,E,h){n(_),n(E),n(typeof h=="function"),E.readdir(_,(v,x)=>{if(v)return h(v);let y=x.length,A;if(y===0)return E.rmdir(_,h);x.forEach(b=>{o(i.join(_,b),E,k=>{if(!A){if(k)return h(A=k);--y===0&&E.rmdir(_,h)}})})})}function d(_,E){let h;E=E||{},s(E),n(_,"rimraf: missing path"),n.strictEqual(typeof _,"string","rimraf: path should be a string"),n(E,"rimraf: missing options"),n.strictEqual(typeof E,"object","rimraf: options should be object");try{h=E.lstatSync(_)}catch(v){if(v.code==="ENOENT")return;v.code==="EPERM"&&u&&p(_,E,v)}try{h&&h.isDirectory()?m(_,E,null):E.unlinkSync(_)}catch(v){if(v.code==="ENOENT")return;if(v.code==="EPERM")return u?p(_,E,v):m(_,E,v);if(v.code!=="EISDIR")throw v;m(_,E,v)}}function m(_,E,h){n(_),n(E),h&&n(h instanceof Error);try{E.rmdirSync(_)}catch(v){if(v.code==="ENOTDIR")throw h;if(v.code==="ENOTEMPTY"||v.code==="EEXIST"||v.code==="EPERM")g(_,E);else if(v.code!=="ENOENT")throw v}}function g(_,E){if(n(_),n(E),E.readdirSync(_).forEach(h=>d(i.join(_,h),E)),u){let h=Date.now();do try{return E.rmdirSync(_,E)}catch{}while(Date.now()-h<500)}else return E.rmdirSync(_,E)}t.exports=o,o.sync=d}),hi=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=rS();t.exports={remove:r(i),removeSync:i.sync}}),nS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=Re(),n=ue("path"),u=it(),s=hi(),o=r(function(c,p){p=p||function(){},i.readdir(c,(l,f)=>{if(l)return u.mkdirs(c,p);f=f.map(m=>n.join(c,m)),d();function d(){let m=f.pop();if(!m)return p();s.remove(m,g=>{if(g)return p(g);d()})}})});function a(c){let p;try{p=i.readdirSync(c)}catch{return u.mkdirsSync(c)}p.forEach(l=>{l=n.join(c,l),s.removeSync(l)})}t.exports={emptyDirSync:a,emptydirSync:a,emptyDir:o,emptydir:o}}),iS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=ue("path"),n=Re(),u=it(),s=bt().pathExists;function o(c,p){function l(){n.writeFile(c,"",f=>{if(f)return p(f);p()})}n.stat(c,(f,d)=>{if(!f&&d.isFile())return p();let m=i.dirname(c);s(m,(g,_)=>{if(g)return p(g);if(_)return l();u.mkdirs(m,E=>{if(E)return p(E);l()})})})}function a(c){let p;try{p=n.statSync(c)}catch{}if(p&&p.isFile())return;let l=i.dirname(c);n.existsSync(l)||u.mkdirsSync(l),n.writeFileSync(c,"")}t.exports={createFile:r(o),createFileSync:a}}),oS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=ue("path"),n=Re(),u=it(),s=bt().pathExists;function o(c,p,l){function f(d,m){n.link(d,m,g=>{if(g)return l(g);l(null)})}s(p,(d,m)=>{if(d)return l(d);if(m)return l(null);n.lstat(c,g=>{if(g)return g.message=g.message.replace("lstat","ensureLink"),l(g);let _=i.dirname(p);s(_,(E,h)=>{if(E)return l(E);if(h)return f(c,p);u.mkdirs(_,v=>{if(v)return l(v);f(c,p)})})})})}function a(c,p){if(n.existsSync(p))return;try{n.lstatSync(c)}catch(f){throw f.message=f.message.replace("lstat","ensureLink"),f}let l=i.dirname(p);return n.existsSync(l)||u.mkdirsSync(l),n.linkSync(c,p)}t.exports={createLink:r(o),createLinkSync:a}}),sS=W((e,t)=>{"use strict";G();var r=ue("path"),i=Re(),n=bt().pathExists;function u(o,a,c){if(r.isAbsolute(o))return i.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),c(p)):c(null,{toCwd:o,toDst:o}));{let p=r.dirname(a),l=r.join(p,o);return n(l,(f,d)=>f?c(f):d?c(null,{toCwd:l,toDst:o}):i.lstat(o,m=>m?(m.message=m.message.replace("lstat","ensureSymlink"),c(m)):c(null,{toCwd:o,toDst:r.relative(p,o)})))}}function s(o,a){let c;if(r.isAbsolute(o)){if(c=i.existsSync(o),!c)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let p=r.dirname(a),l=r.join(p,o);if(c=i.existsSync(l),c)return{toCwd:l,toDst:o};if(c=i.existsSync(o),!c)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:r.relative(p,o)}}}t.exports={symlinkPaths:u,symlinkPathsSync:s}}),aS=W((e,t)=>{"use strict";G();var r=Re();function i(u,s,o){if(o=typeof s=="function"?s:o,s=typeof s=="function"?!1:s,s)return o(null,s);r.lstat(u,(a,c)=>{if(a)return o(null,"file");s=c&&c.isDirectory()?"dir":"file",o(null,s)})}function n(u,s){let o;if(s)return s;try{o=r.lstatSync(u)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}t.exports={symlinkType:i,symlinkTypeSync:n}}),uS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=ue("path"),n=Re(),u=it(),s=u.mkdirs,o=u.mkdirsSync,a=sS(),c=a.symlinkPaths,p=a.symlinkPathsSync,l=aS(),f=l.symlinkType,d=l.symlinkTypeSync,m=bt().pathExists;function g(E,h,v,x){x=typeof v=="function"?v:x,v=typeof v=="function"?!1:v,m(h,(y,A)=>{if(y)return x(y);if(A)return x(null);c(E,h,(b,k)=>{if(b)return x(b);E=k.toDst,f(k.toCwd,v,(D,F)=>{if(D)return x(D);let w=i.dirname(h);m(w,(O,P)=>{if(O)return x(O);if(P)return n.symlink(E,h,F,x);s(w,C=>{if(C)return x(C);n.symlink(E,h,F,x)})})})})})}function _(E,h,v){if(n.existsSync(h))return;let x=p(E,h);E=x.toDst,v=d(x.toCwd,v);let y=i.dirname(h);return n.existsSync(y)||o(y),n.symlinkSync(E,h,v)}t.exports={createSymlink:r(g),createSymlinkSync:_}}),cS=W((e,t)=>{"use strict";G();var r=iS(),i=oS(),n=uS();t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:n.createSymlink,createSymlinkSync:n.createSymlinkSync,ensureSymlink:n.createSymlink,ensureSymlinkSync:n.createSymlinkSync}}),lS=W((e,t)=>{G();var r;try{r=Re()}catch{r=ue("fs")}function i(p,l,f){f==null&&(f=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var d=l.fs||r,m=!0;"throws"in l&&(m=l.throws),d.readFile(p,l,function(g,_){if(g)return f(g);_=a(_);var E;try{E=JSON.parse(_,l?l.reviver:null)}catch(h){return m?(h.message=p+": "+h.message,f(h)):f(null,null)}f(null,E)})}function n(p,l){l=l||{},typeof l=="string"&&(l={encoding:l});var f=l.fs||r,d=!0;"throws"in l&&(d=l.throws);try{var m=f.readFileSync(p,l);return m=a(m),JSON.parse(m,l.reviver)}catch(g){if(d)throw g.message=p+": "+g.message,g;return null}}function u(p,l){var f,d=`
|
40
|
+
`;typeof l=="object"&&l!==null&&(l.spaces&&(f=l.spaces),l.EOL&&(d=l.EOL));var m=JSON.stringify(p,l?l.replacer:null,f);return m.replace(/\n/g,d)+d}function s(p,l,f,d){d==null&&(d=f,f={}),f=f||{};var m=f.fs||r,g="";try{g=u(l,f)}catch(_){d&&d(_,null);return}m.writeFile(p,g,f,d)}function o(p,l,f){f=f||{};var d=f.fs||r,m=u(l,f);return d.writeFileSync(p,m,f)}function a(p){return Buffer.isBuffer(p)&&(p=p.toString("utf8")),p=p.replace(/^\uFEFF/,""),p}var c={readFile:i,readFileSync:n,writeFile:s,writeFileSync:o};t.exports=c}),aa=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=lS();t.exports={readJson:r(i.readFile),readJsonSync:i.readFileSync,writeJson:r(i.writeFile),writeJsonSync:i.writeFileSync}}),pS=W((e,t)=>{"use strict";G();var r=ue("path"),i=it(),n=bt().pathExists,u=aa();function s(o,a,c,p){typeof c=="function"&&(p=c,c={});let l=r.dirname(o);n(l,(f,d)=>{if(f)return p(f);if(d)return u.writeJson(o,a,c,p);i.mkdirs(l,m=>{if(m)return p(m);u.writeJson(o,a,c,p)})})}t.exports=s}),fS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=it(),u=aa();function s(o,a,c){let p=i.dirname(o);r.existsSync(p)||n.mkdirsSync(p),u.writeJsonSync(o,a,c)}t.exports=s}),dS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=aa();i.outputJson=r(pS()),i.outputJsonSync=fS(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i}),hS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=Nf().copySync,u=hi().removeSync,s=it().mkdirpSync,o=di();function a(f,d,m){m=m||{};let g=m.overwrite||m.clobber||!1,{srcStat:_}=o.checkPathsSync(f,d,"move");return o.checkParentPathsSync(f,_,d,"move"),s(i.dirname(d)),c(f,d,g)}function c(f,d,m){if(m)return u(d),p(f,d,m);if(r.existsSync(d))throw new Error("dest already exists.");return p(f,d,m)}function p(f,d,m){try{r.renameSync(f,d)}catch(g){if(g.code!=="EXDEV")throw g;return l(f,d,m)}}function l(f,d,m){return n(f,d,{overwrite:m,errorOnExist:!0}),u(f)}t.exports=a}),mS=W((e,t)=>{"use strict";G(),t.exports={moveSync:hS()}}),yS=W((e,t)=>{"use strict";G();var r=Re(),i=ue("path"),n=Bf().copy,u=hi().remove,s=it().mkdirp,o=bt().pathExists,a=di();function c(d,m,g,_){typeof g=="function"&&(_=g,g={});let E=g.overwrite||g.clobber||!1;a.checkPaths(d,m,"move",(h,v)=>{if(h)return _(h);let{srcStat:x}=v;a.checkParentPaths(d,x,m,"move",y=>{if(y)return _(y);s(i.dirname(m),A=>A?_(A):p(d,m,E,_))})})}function p(d,m,g,_){if(g)return u(m,E=>E?_(E):l(d,m,g,_));o(m,(E,h)=>E?_(E):h?_(new Error("dest already exists.")):l(d,m,g,_))}function l(d,m,g,_){r.rename(d,m,E=>E?E.code!=="EXDEV"?_(E):f(d,m,g,_):_())}function f(d,m,g,_){n(d,m,{overwrite:g,errorOnExist:!0},E=>E?_(E):u(d,_))}t.exports=c}),gS=W((e,t)=>{"use strict";G();var r=Je().fromCallback;t.exports={move:r(yS())}}),vS=W((e,t)=>{"use strict";G();var r=Je().fromCallback,i=Re(),n=ue("path"),u=it(),s=bt().pathExists;function o(c,p,l,f){typeof l=="function"&&(f=l,l="utf8");let d=n.dirname(c);s(d,(m,g)=>{if(m)return f(m);if(g)return i.writeFile(c,p,l,f);u.mkdirs(d,_=>{if(_)return f(_);i.writeFile(c,p,l,f)})})}function a(c,...p){let l=n.dirname(c);if(i.existsSync(l))return i.writeFileSync(c,...p);u.mkdirsSync(l),i.writeFileSync(c,...p)}t.exports={outputFile:r(o),outputFileSync:a}}),_S=W((e,t)=>{"use strict";G(),t.exports=Object.assign({},Pf(),Nf(),Bf(),nS(),cS(),dS(),it(),mS(),gS(),vS(),bt(),hi());var r=ue("fs");Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(t.exports,"promises",{get(){return r.promises}})});G();G();var gT=an(HE());G();G();function ES(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}G();G();function ea(e){return ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ea(e)}G();function SS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AS(e,t){if(t&&(ea(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SS(e)}G();function ni(e){return ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ni(e)}G();G();function en(e,t){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},en(e,t)}function bS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&en(e,t)}G();G();function DS(e){return Function.toString.call(e).indexOf("[native code]")!==-1}G();G();function xS(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ri(e,t,r){return xS()?ri=Reflect.construct.bind():ri=function(i,n,u){var s=[null];s.push.apply(s,n);var o=Function.bind.apply(i,s),a=new o;return u&&en(a,u.prototype),a},ri.apply(null,arguments)}function ta(e){var t=typeof Map=="function"?new Map:void 0;return ta=function(r){if(r===null||!DS(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return ri(r,arguments,ni(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),en(i,r)},ta(e)}var vT=an(YE()),_T=an(_S()),ET=function(e){bS(t,e);function t(r){var i;return ES(this,t),i=AS(this,ni(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return t}(ta(Error));G();var wS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(i){return i.reduce((n,u)=>[].concat(n,u),[])}e.flatten=t;function r(i,n){let u=[[]],s=0;for(let o of i)n(o)?(s++,u[s]=[]):u[s].push(o);return u}e.splitWhen=r}),CS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t}),kS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new t(i,n)}e.createDirentFromStats=r}),FS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var t=ue("path"),r=2,i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function n(a){return a.replace(/\\/g,"/")}e.unixify=n;function u(a,c){return t.resolve(a,c)}e.makeAbsolute=u;function s(a){return a.replace(i,"\\$2")}e.escape=s;function o(a){if(a.charAt(0)==="."){let c=a.charAt(1);if(c==="/"||c==="\\")return a.slice(r)}return a}e.removeLeadingDotSegment=o}),RS=W((e,t)=>{G(),t.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(i[2])return!0;r=r.slice(i.index+i[0].length)}return!1}}),OS=W((e,t)=>{G();var r=RS(),i={"{":"}","(":")","[":"]"},n=function(s){if(s[0]==="!")return!0;for(var o=0,a=-2,c=-2,p=-2,l=-2,f=-2;o<s.length;){if(s[o]==="*"||s[o+1]==="?"&&/[\].+)]/.test(s[o])||c!==-1&&s[o]==="["&&s[o+1]!=="]"&&(c<o&&(c=s.indexOf("]",o)),c>o&&(f===-1||f>c||(f=s.indexOf("\\",o),f===-1||f>c)))||p!==-1&&s[o]==="{"&&s[o+1]!=="}"&&(p=s.indexOf("}",o),p>o&&(f=s.indexOf("\\",o),f===-1||f>p))||l!==-1&&s[o]==="("&&s[o+1]==="?"&&/[:!=]/.test(s[o+2])&&s[o+3]!==")"&&(l=s.indexOf(")",o),l>o&&(f=s.indexOf("\\",o),f===-1||f>l))||a!==-1&&s[o]==="("&&s[o+1]!=="|"&&(a<o&&(a=s.indexOf("|",o)),a!==-1&&s[a+1]!==")"&&(l=s.indexOf(")",a),l>a&&(f=s.indexOf("\\",a),f===-1||f>l))))return!0;if(s[o]==="\\"){var d=s[o+1];o+=2;var m=i[d];if(m){var g=s.indexOf(m,o);g!==-1&&(o=g+1)}if(s[o]==="!")return!0}else o++}return!1},u=function(s){if(s[0]==="!")return!0;for(var o=0;o<s.length;){if(/[*?{}()[\]]/.test(s[o]))return!0;if(s[o]==="\\"){var a=s[o+1];o+=2;var c=i[a];if(c){var p=s.indexOf(c,o);p!==-1&&(o=p+1)}if(s[o]==="!")return!0}else o++}return!1};t.exports=function(s,o){if(typeof s!="string"||s==="")return!1;if(r(s))return!0;var a=n;return o&&o.strict===!1&&(a=u),a(s)}}),TS=W((e,t)=>{"use strict";G();var r=OS(),i=ue("path").posix.dirname,n=ue("os").platform()==="win32",u="/",s=/\\/g,o=/[\{\[].*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(p,l){var f=Object.assign({flipBackslashes:!0},l);f.flipBackslashes&&n&&p.indexOf(u)<0&&(p=p.replace(s,u)),o.test(p)&&(p+=u),p+="a";do p=i(p);while(r(p)||a.test(p));return p.replace(c,"$1")}}),ua=W(e=>{"use strict";G(),e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(i=>i.type===r),e.exceedsLimit=(t,r,i=1,n)=>n===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(i)>=n,e.escapeNode=(t,r=0,i)=>{let n=t.nodes[r];!n||(i&&n.type===i||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,i)=>(i.type==="text"&&r.push(i.value),i.type==="range"&&(i.type="text"),r),[]),e.flatten=(...t)=>{let r=[],i=n=>{for(let u=0;u<n.length;u++){let s=n[u];Array.isArray(s)?i(s,r):s!==void 0&&r.push(s)}return r};return i(t),r}}),ca=W((e,t)=>{"use strict";G();var r=ua();t.exports=(i,n={})=>{let u=(s,o={})=>{let a=n.escapeInvalid&&r.isInvalidBrace(o),c=s.invalid===!0&&n.escapeInvalid===!0,p="";if(s.value)return(a||c)&&r.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let l of s.nodes)p+=u(l);return p};return u(i)}}),PS=W((e,t)=>{"use strict";G(),t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}),LS=W((e,t)=>{"use strict";G();var r=PS(),i=(h,v,x)=>{if(r(h)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(v===void 0||h===v)return String(h);if(r(v)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let y={relaxZeros:!0,...x};typeof y.strictZeros=="boolean"&&(y.relaxZeros=y.strictZeros===!1);let A=String(y.relaxZeros),b=String(y.shorthand),k=String(y.capture),D=String(y.wrap),F=h+":"+v+"="+A+b+k+D;if(i.cache.hasOwnProperty(F))return i.cache[F].result;let w=Math.min(h,v),O=Math.max(h,v);if(Math.abs(w-O)===1){let L=h+"|"+v;return y.capture?`(${L})`:y.wrap===!1?L:`(?:${L})`}let P=_(h)||_(v),C={min:h,max:v,a:w,b:O},S=[],R=[];if(P&&(C.isPadded=P,C.maxLen=String(C.max).length),w<0){let L=O<0?Math.abs(O):1;R=o(L,Math.abs(w),C,y),w=C.a=0}return O>=0&&(S=o(w,O,C,y)),C.negatives=R,C.positives=S,C.result=n(R,S,y),y.capture===!0?C.result=`(${C.result})`:y.wrap!==!1&&S.length+R.length>1&&(C.result=`(?:${C.result})`),i.cache[F]=C,C.result};function n(h,v,x){let y=a(h,v,"-",!1,x)||[],A=a(v,h,"",!1,x)||[],b=a(h,v,"-?",!0,x)||[];return y.concat(b).concat(A).join("|")}function u(h,v){let x=1,y=1,A=f(h,x),b=new Set([v]);for(;h<=A&&A<=v;)b.add(A),x+=1,A=f(h,x);for(A=d(v+1,y)-1;h<A&&A<=v;)b.add(A),y+=1,A=d(v+1,y)-1;return b=[...b],b.sort(p),b}function s(h,v,x){if(h===v)return{pattern:h,count:[],digits:0};let y=c(h,v),A=y.length,b="",k=0;for(let D=0;D<A;D++){let[F,w]=y[D];F===w?b+=F:F!=="0"||w!=="9"?b+=g(F,w,x):k++}return k&&(b+=x.shorthand===!0?"\\d":"[0-9]"),{pattern:b,count:[k],digits:A}}function o(h,v,x,y){let A=u(h,v),b=[],k=h,D;for(let F=0;F<A.length;F++){let w=A[F],O=s(String(k),String(w),y),P="";if(!x.isPadded&&D&&D.pattern===O.pattern){D.count.length>1&&D.count.pop(),D.count.push(O.count[0]),D.string=D.pattern+m(D.count),k=w+1;continue}x.isPadded&&(P=E(w,x,y)),O.string=P+O.pattern+m(O.count),b.push(O),k=w+1,D=O}return b}function a(h,v,x,y,A){let b=[];for(let k of h){let{string:D}=k;!y&&!l(v,"string",D)&&b.push(x+D),y&&l(v,"string",D)&&b.push(x+D)}return b}function c(h,v){let x=[];for(let y=0;y<h.length;y++)x.push([h[y],v[y]]);return x}function p(h,v){return h>v?1:v>h?-1:0}function l(h,v,x){return h.some(y=>y[v]===x)}function f(h,v){return Number(String(h).slice(0,-v)+"9".repeat(v))}function d(h,v){return h-h%Math.pow(10,v)}function m(h){let[v=0,x=""]=h;return x||v>1?`{${v+(x?","+x:"")}}`:""}function g(h,v,x){return`[${h}${v-h===1?"":"-"}${v}]`}function _(h){return/^-?(0+)\d/.test(h)}function E(h,v,x){if(!v.isPadded)return h;let y=Math.abs(v.maxLen-String(h).length),A=x.relaxZeros!==!1;switch(y){case 0:return"";case 1:return A?"0?":"0";case 2:return A?"0{0,2}":"00";default:return A?`0{0,${y}}`:`0{${y}}`}}i.cache={},i.clearCache=()=>i.cache={},t.exports=i}),Mf=W((e,t)=>{"use strict";G();var r=ue("util"),i=LS(),n=y=>y!==null&&typeof y=="object"&&!Array.isArray(y),u=y=>A=>y===!0?Number(A):String(A),s=y=>typeof y=="number"||typeof y=="string"&&y!=="",o=y=>Number.isInteger(+y),a=y=>{let A=`${y}`,b=-1;if(A[0]==="-"&&(A=A.slice(1)),A==="0")return!1;for(;A[++b]==="0";);return b>0},c=(y,A,b)=>typeof y=="string"||typeof A=="string"?!0:b.stringify===!0,p=(y,A,b)=>{if(A>0){let k=y[0]==="-"?"-":"";k&&(y=y.slice(1)),y=k+y.padStart(k?A-1:A,"0")}return b===!1?String(y):y},l=(y,A)=>{let b=y[0]==="-"?"-":"";for(b&&(y=y.slice(1),A--);y.length<A;)y="0"+y;return b?"-"+y:y},f=(y,A)=>{y.negatives.sort((w,O)=>w<O?-1:w>O?1:0),y.positives.sort((w,O)=>w<O?-1:w>O?1:0);let b=A.capture?"":"?:",k="",D="",F;return y.positives.length&&(k=y.positives.join("|")),y.negatives.length&&(D=`-(${b}${y.negatives.join("|")})`),k&&D?F=`${k}|${D}`:F=k||D,A.wrap?`(${b}${F})`:F},d=(y,A,b,k)=>{if(b)return i(y,A,{wrap:!1,...k});let D=String.fromCharCode(y);if(y===A)return D;let F=String.fromCharCode(A);return`[${D}-${F}]`},m=(y,A,b)=>{if(Array.isArray(y)){let k=b.wrap===!0,D=b.capture?"":"?:";return k?`(${D}${y.join("|")})`:y.join("|")}return i(y,A,b)},g=(...y)=>new RangeError("Invalid range arguments: "+r.inspect(...y)),_=(y,A,b)=>{if(b.strictRanges===!0)throw g([y,A]);return[]},E=(y,A)=>{if(A.strictRanges===!0)throw new TypeError(`Expected step "${y}" to be a number`);return[]},h=(y,A,b=1,k={})=>{let D=Number(y),F=Number(A);if(!Number.isInteger(D)||!Number.isInteger(F)){if(k.strictRanges===!0)throw g([y,A]);return[]}D===0&&(D=0),F===0&&(F=0);let w=D>F,O=String(y),P=String(A),C=String(b);b=Math.max(Math.abs(b),1);let S=a(O)||a(P)||a(C),R=S?Math.max(O.length,P.length,C.length):0,L=S===!1&&c(y,A,k)===!1,M=k.transform||u(L);if(k.toRegex&&b===1)return d(l(y,R),l(A,R),!0,k);let B={negatives:[],positives:[]},Q=N=>B[N<0?"negatives":"positives"].push(Math.abs(N)),Z=[],oe=0;for(;w?D>=F:D<=F;)k.toRegex===!0&&b>1?Q(D):Z.push(p(M(D,oe),R,L)),D=w?D-b:D+b,oe++;return k.toRegex===!0?b>1?f(B,k):m(Z,null,{wrap:!1,...k}):Z},v=(y,A,b=1,k={})=>{if(!o(y)&&y.length>1||!o(A)&&A.length>1)return _(y,A,k);let D=k.transform||(L=>String.fromCharCode(L)),F=`${y}`.charCodeAt(0),w=`${A}`.charCodeAt(0),O=F>w,P=Math.min(F,w),C=Math.max(F,w);if(k.toRegex&&b===1)return d(P,C,!1,k);let S=[],R=0;for(;O?F>=w:F<=w;)S.push(D(F,R)),F=O?F-b:F+b,R++;return k.toRegex===!0?m(S,null,{wrap:!1,options:k}):S},x=(y,A,b,k={})=>{if(A==null&&s(y))return[y];if(!s(y)||!s(A))return _(y,A,k);if(typeof b=="function")return x(y,A,1,{transform:b});if(n(b))return x(y,A,0,b);let D={...k};return D.capture===!0&&(D.wrap=!0),b=b||D.step||1,o(b)?o(y)&&o(A)?h(y,A,b,D):v(y,A,Math.max(Math.abs(b),1),D):b!=null&&!n(b)?E(b,D):x(y,A,1,b)};t.exports=x}),IS=W((e,t)=>{"use strict";G();var r=Mf(),i=ua(),n=(u,s={})=>{let o=(a,c={})=>{let p=i.isInvalidBrace(c),l=a.invalid===!0&&s.escapeInvalid===!0,f=p===!0||l===!0,d=s.escapeInvalid===!0?"\\":"",m="";if(a.isOpen===!0||a.isClose===!0)return d+a.value;if(a.type==="open")return f?d+a.value:"(";if(a.type==="close")return f?d+a.value:")";if(a.type==="comma")return a.prev.type==="comma"?"":f?a.value:"|";if(a.value)return a.value;if(a.nodes&&a.ranges>0){let g=i.reduce(a.nodes),_=r(...g,{...s,wrap:!1,toRegex:!0});if(_.length!==0)return g.length>1&&_.length>1?`(${_})`:_}if(a.nodes)for(let g of a.nodes)m+=o(g,a);return m};return o(u)};t.exports=n}),NS=W((e,t)=>{"use strict";G();var r=Mf(),i=ca(),n=ua(),u=(o="",a="",c=!1)=>{let p=[];if(o=[].concat(o),a=[].concat(a),!a.length)return o;if(!o.length)return c?n.flatten(a).map(l=>`{${l}}`):a;for(let l of o)if(Array.isArray(l))for(let f of l)p.push(u(f,a,c));else for(let f of a)c===!0&&typeof f=="string"&&(f=`{${f}}`),p.push(Array.isArray(f)?u(l,f,c):l+f);return n.flatten(p)},s=(o,a={})=>{let c=a.rangeLimit===void 0?1e3:a.rangeLimit,p=(l,f={})=>{l.queue=[];let d=f,m=f.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,m=d.queue;if(l.invalid||l.dollar){m.push(u(m.pop(),i(l,a)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){m.push(u(m.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let h=n.reduce(l.nodes);if(n.exceedsLimit(...h,a.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let v=r(...h,a);v.length===0&&(v=i(l,a)),m.push(u(m.pop(),v)),l.nodes=[];return}let g=n.encloseBrace(l),_=l.queue,E=l;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,_=E.queue;for(let h=0;h<l.nodes.length;h++){let v=l.nodes[h];if(v.type==="comma"&&l.type==="brace"){h===1&&_.push(""),_.push("");continue}if(v.type==="close"){m.push(u(m.pop(),_,g));continue}if(v.value&&v.type!=="open"){_.push(u(_.pop(),v.value));continue}v.nodes&&p(v,l)}return _};return n.flatten(p(o))};t.exports=s}),BS=W((e,t)=>{"use strict";G(),t.exports={MAX_LENGTH:1024*64,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:`
|
41
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),MS=W((e,t)=>{"use strict";G();var r=ca(),{MAX_LENGTH:i,CHAR_BACKSLASH:n,CHAR_BACKTICK:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:a,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=BS(),h=(v,x={})=>{if(typeof v!="string")throw new TypeError("Expected a string");let y=x||{},A=typeof y.maxLength=="number"?Math.min(i,y.maxLength):i;if(v.length>A)throw new SyntaxError(`Input length (${v.length}), exceeds max characters (${A})`);let b={type:"root",input:v,nodes:[]},k=[b],D=b,F=b,w=0,O=v.length,P=0,C=0,S,R={},L=()=>v[P++],M=B=>{if(B.type==="text"&&F.type==="dot"&&(F.type="text"),F&&F.type==="text"&&B.type==="text"){F.value+=B.value;return}return D.nodes.push(B),B.parent=D,B.prev=F,F=B,B};for(M({type:"bos"});P<O;)if(D=k[k.length-1],S=L(),!(S===E||S===_)){if(S===n){M({type:"text",value:(x.keepEscaping?S:"")+L()});continue}if(S===d){M({type:"text",value:"\\"+S});continue}if(S===f){w++;let B=!0,Q;for(;P<O&&(Q=L());){if(S+=Q,Q===f){w++;continue}if(Q===n){S+=L();continue}if(Q===d&&(w--,w===0))break}M({type:"text",value:S});continue}if(S===a){D=M({type:"paren",nodes:[]}),k.push(D),M({type:"text",value:S});continue}if(S===c){if(D.type!=="paren"){M({type:"text",value:S});continue}D=k.pop(),M({type:"text",value:S}),D=k[k.length-1];continue}if(S===m||S===g||S===u){let B=S,Q;for(x.keepQuotes!==!0&&(S="");P<O&&(Q=L());){if(Q===n){S+=Q+L();continue}if(Q===B){x.keepQuotes===!0&&(S+=Q);break}S+=Q}M({type:"text",value:S});continue}if(S===p){C++;let B=F.value&&F.value.slice(-1)==="$"||D.dollar===!0;D=M({type:"brace",open:!0,close:!1,dollar:B,depth:C,commas:0,ranges:0,nodes:[]}),k.push(D),M({type:"open",value:S});continue}if(S===l){if(D.type!=="brace"){M({type:"text",value:S});continue}let B="close";D=k.pop(),D.close=!0,M({type:B,value:S}),C--,D=k[k.length-1];continue}if(S===s&&C>0){if(D.ranges>0){D.ranges=0;let B=D.nodes.shift();D.nodes=[B,{type:"text",value:r(D)}]}M({type:"comma",value:S}),D.commas++;continue}if(S===o&&C>0&&D.commas===0){let B=D.nodes;if(C===0||B.length===0){M({type:"text",value:S});continue}if(F.type==="dot"){if(D.range=[],F.value+=S,F.type="range",D.nodes.length!==3&&D.nodes.length!==5){D.invalid=!0,D.ranges=0,F.type="text";continue}D.ranges++,D.args=[];continue}if(F.type==="range"){B.pop();let Q=B[B.length-1];Q.value+=F.value+S,F=Q,D.ranges--;continue}M({type:"dot",value:S});continue}M({type:"text",value:S})}do if(D=k.pop(),D.type!=="root"){D.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});let B=k[k.length-1],Q=B.nodes.indexOf(D);B.nodes.splice(Q,1,...D.nodes)}while(k.length>0);return M({type:"eos"}),b};t.exports=h}),jS=W((e,t)=>{"use strict";G();var r=ca(),i=IS(),n=NS(),u=MS(),s=(o,a={})=>{let c=[];if(Array.isArray(o))for(let p of o){let l=s.create(p,a);Array.isArray(l)?c.push(...l):c.push(l)}else c=[].concat(s.create(o,a));return a&&a.expand===!0&&a.nodupes===!0&&(c=[...new Set(c)]),c};s.parse=(o,a={})=>u(o,a),s.stringify=(o,a={})=>r(typeof o=="string"?s.parse(o,a):o,a),s.compile=(o,a={})=>(typeof o=="string"&&(o=s.parse(o,a)),i(o,a)),s.expand=(o,a={})=>{typeof o=="string"&&(o=s.parse(o,a));let c=n(o,a);return a.noempty===!0&&(c=c.filter(Boolean)),a.nodupes===!0&&(c=[...new Set(c)]),c},s.create=(o,a={})=>o===""||o.length<3?[o]:a.expand!==!0?s.compile(o,a):s.expand(o,a),t.exports=s}),mi=W((e,t)=>{"use strict";G();var r=ue("path"),i="\\\\/",n=`[^${i}]`,u="\\.",s="\\+",o="\\?",a="\\/",c="(?=.)",p="[^/]",l=`(?:${a}|$)`,f=`(?:^|${a})`,d=`${u}{1,2}${l}`,m=`(?!${u})`,g=`(?!${f}${d})`,_=`(?!${u}{0,1}${l})`,E=`(?!${d})`,h=`[^.${a}]`,v=`${p}*?`,x={DOT_LITERAL:u,PLUS_LITERAL:s,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,QMARK:p,END_ANCHOR:l,DOTS_SLASH:d,NO_DOT:m,NO_DOTS:g,NO_DOT_SLASH:_,NO_DOTS_SLASH:E,QMARK_NO_DOT:h,STAR:v,START_ANCHOR:f},y={...x,SLASH_LITERAL:`[${i}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${u}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${u})`,NO_DOTS:`(?!(?:^|[${i}])${u}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${u}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${u}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},A={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:A,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(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===!0?y:x}}}),yi=W(e=>{"use strict";G();var t=ue("path"),r=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_GLOBAL:s}=mi();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>u.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(s,"\\$1"),e.toPosixSlashes=o=>o.replace(i,"/"),e.removeBackslashes=o=>o.replace(n,a=>a==="\\"?"":a),e.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},e.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||t.sep==="\\",e.escapeLast=(o,a,c)=>{let p=o.lastIndexOf(a,c);return p===-1?o:o[p-1]==="\\"?e.escapeLast(o,a,p-1):`${o.slice(0,p)}\\${o.slice(p)}`},e.removePrefix=(o,a={})=>{let c=o;return c.startsWith("./")&&(c=c.slice(2),a.prefix="./"),c},e.wrapOutput=(o,a={},c={})=>{let p=c.contains?"":"^",l=c.contains?"":"$",f=`${p}(?:${o})${l}`;return a.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}}),$S=W((e,t)=>{"use strict";G();var r=yi(),{CHAR_ASTERISK:i,CHAR_AT:n,CHAR_BACKWARD_SLASH:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:d,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:E}=mi(),h=y=>y===c||y===u,v=y=>{y.isPrefix!==!0&&(y.depth=y.isGlobstar?1/0:1)},x=(y,A)=>{let b=A||{},k=y.length-1,D=b.parts===!0||b.scanToEnd===!0,F=[],w=[],O=[],P=y,C=-1,S=0,R=0,L=!1,M=!1,B=!1,Q=!1,Z=!1,oe=!1,N=!1,le=!1,pe=!1,ne=!1,T=0,I,$,K={value:"",depth:0,isGlob:!1},Y=()=>C>=k,z=()=>P.charCodeAt(C+1),X=()=>(I=$,P.charCodeAt(++C));for(;C<k;){$=X();let re;if($===u){N=K.backslashes=!0,$=X(),$===p&&(oe=!0);continue}if(oe===!0||$===p){for(T++;Y()!==!0&&($=X());){if($===u){N=K.backslashes=!0,X();continue}if($===p){T++;continue}if(oe!==!0&&$===o&&($=X())===o){if(L=K.isBrace=!0,B=K.isGlob=!0,ne=!0,D===!0)continue;break}if(oe!==!0&&$===s){if(L=K.isBrace=!0,B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===g&&(T--,T===0)){oe=!1,L=K.isBrace=!0,ne=!0;break}}if(D===!0)continue;break}if($===c){if(F.push(C),w.push(K),K={value:"",depth:0,isGlob:!1},ne===!0)continue;if(I===o&&C===S+1){S+=2;continue}R=C+1;continue}if(b.noext!==!0&&($===d||$===n||$===i||$===m||$===a)&&z()===l){if(B=K.isGlob=!0,Q=K.isExtglob=!0,ne=!0,$===a&&C===S&&(pe=!0),D===!0){for(;Y()!==!0&&($=X());){if($===u){N=K.backslashes=!0,$=X();continue}if($===_){B=K.isGlob=!0,ne=!0;break}}continue}break}if($===i){if(I===i&&(Z=K.isGlobstar=!0),B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===m){if(B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===f){for(;Y()!==!0&&(re=X());){if(re===u){N=K.backslashes=!0,X();continue}if(re===E){M=K.isBracket=!0,B=K.isGlob=!0,ne=!0;break}}if(D===!0)continue;break}if(b.nonegate!==!0&&$===a&&C===S){le=K.negated=!0,S++;continue}if(b.noparen!==!0&&$===l){if(B=K.isGlob=!0,D===!0){for(;Y()!==!0&&($=X());){if($===l){N=K.backslashes=!0,$=X();continue}if($===_){ne=!0;break}}continue}break}if(B===!0){if(ne=!0,D===!0)continue;break}}b.noext===!0&&(Q=!1,B=!1);let ee=P,ie="",ye="";S>0&&(ie=P.slice(0,S),P=P.slice(S),R-=S),ee&&B===!0&&R>0?(ee=P.slice(0,R),ye=P.slice(R)):B===!0?(ee="",ye=P):ee=P,ee&&ee!==""&&ee!=="/"&&ee!==P&&h(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),b.unescape===!0&&(ye&&(ye=r.removeBackslashes(ye)),ee&&N===!0&&(ee=r.removeBackslashes(ee)));let se={prefix:ie,input:y,start:S,base:ee,glob:ye,isBrace:L,isBracket:M,isGlob:B,isExtglob:Q,isGlobstar:Z,negated:le,negatedExtglob:pe};if(b.tokens===!0&&(se.maxDepth=0,h($)||w.push(K),se.tokens=w),b.parts===!0||b.tokens===!0){let re;for(let Ee=0;Ee<F.length;Ee++){let Ut=re?re+1:S,V=F[Ee],fe=y.slice(Ut,V);b.tokens&&(Ee===0&&S!==0?(w[Ee].isPrefix=!0,w[Ee].value=ie):w[Ee].value=fe,v(w[Ee]),se.maxDepth+=w[Ee].depth),(Ee!==0||fe!=="")&&O.push(fe),re=V}if(re&&re+1<y.length){let Ee=y.slice(re+1);O.push(Ee),b.tokens&&(w[w.length-1].value=Ee,v(w[w.length-1]),se.maxDepth+=w[w.length-1].depth)}se.slashes=F,se.parts=O}return se};t.exports=x}),HS=W((e,t)=>{"use strict";G();var r=mi(),i=yi(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:u,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=r,c=(f,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...f,d);f.sort();let m=`[${f.join("-")}]`;try{new RegExp(m)}catch{return f.map(g=>i.escapeRegex(g)).join("..")}return m},p=(f,d)=>`Missing ${f}: "${d}" - use "\\\\${d}" to match literal characters`,l=(f,d)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=a[f]||f;let m={...d},g=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,_=f.length;if(_>g)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${g}`);let E={type:"bos",value:"",output:m.prepend||""},h=[E],v=m.capture?"":"?:",x=i.isWindows(d),y=r.globChars(x),A=r.extglobChars(y),{DOT_LITERAL:b,PLUS_LITERAL:k,SLASH_LITERAL:D,ONE_CHAR:F,DOTS_SLASH:w,NO_DOT:O,NO_DOT_SLASH:P,NO_DOTS_SLASH:C,QMARK:S,QMARK_NO_DOT:R,STAR:L,START_ANCHOR:M}=y,B=V=>`(${v}(?:(?!${M}${V.dot?w:b}).)*?)`,Q=m.dot?"":O,Z=m.dot?S:R,oe=m.bash===!0?B(m):L;m.capture&&(oe=`(${oe})`),typeof m.noext=="boolean"&&(m.noextglob=m.noext);let N={input:f,index:-1,start:0,dot:m.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};f=i.removePrefix(f,N),_=f.length;let le=[],pe=[],ne=[],T=E,I,$=()=>N.index===_-1,K=N.peek=(V=1)=>f[N.index+V],Y=N.advance=()=>f[++N.index]||"",z=()=>f.slice(N.index+1),X=(V="",fe=0)=>{N.consumed+=V,N.index+=fe},ee=V=>{N.output+=V.output!=null?V.output:V.value,X(V.value)},ie=()=>{let V=1;for(;K()==="!"&&(K(2)!=="("||K(3)==="?");)Y(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},ye=V=>{N[V]++,ne.push(V)},se=V=>{N[V]--,ne.pop()},re=V=>{if(T.type==="globstar"){let fe=N.braces>0&&(V.type==="comma"||V.type==="brace"),q=V.extglob===!0||le.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!fe&&!q&&(N.output=N.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=oe,N.output+=T.output)}if(le.length&&V.type!=="paren"&&(le[le.length-1].inner+=V.value),(V.value||V.output)&&ee(V),T&&T.type==="text"&&V.type==="text"){T.value+=V.value,T.output=(T.output||"")+V.value;return}V.prev=T,h.push(V),T=V},Ee=(V,fe)=>{let q={...A[fe],conditions:1,inner:""};q.prev=T,q.parens=N.parens,q.output=N.output;let ce=(m.capture?"(":"")+q.open;ye("parens"),re({type:V,value:fe,output:N.output?"":F}),re({type:"paren",extglob:!0,value:Y(),output:ce}),le.push(q)},Ut=V=>{let fe=V.close+(m.capture?")":""),q;if(V.type==="negate"){let ce=oe;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(ce=B(m)),(ce!==oe||$()||/^\)+$/.test(z()))&&(fe=V.close=`)$))${ce}`),V.inner.includes("*")&&(q=z())&&/^\.[^\\/.]+$/.test(q)){let ve=l(q,{...d,fastpaths:!1}).output;fe=V.close=`)${ve})${ce})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:I,output:fe}),se("parens")};if(m.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let V=!1,fe=f.replace(o,(q,ce,ve,Se,_e,Wt)=>Se==="\\"?(V=!0,q):Se==="?"?ce?ce+Se+(_e?S.repeat(_e.length):""):Wt===0?Z+(_e?S.repeat(_e.length):""):S.repeat(ve.length):Se==="."?b.repeat(ve.length):Se==="*"?ce?ce+Se+(_e?oe:""):oe:ce?q:`\\${q}`);return V===!0&&(m.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,q=>q.length%2===0?"\\\\":q?"\\":"")),fe===f&&m.contains===!0?(N.output=f,N):(N.output=i.wrapOutput(fe,N,d),N)}for(;!$();){if(I=Y(),I==="\0")continue;if(I==="\\"){let q=K();if(q==="/"&&m.bash!==!0||q==="."||q===";")continue;if(!q){I+="\\",re({type:"text",value:I});continue}let ce=/^\\+/.exec(z()),ve=0;if(ce&&ce[0].length>2&&(ve=ce[0].length,N.index+=ve,ve%2!==0&&(I+="\\")),m.unescape===!0?I=Y():I+=Y(),N.brackets===0){re({type:"text",value:I});continue}}if(N.brackets>0&&(I!=="]"||T.value==="["||T.value==="[^")){if(m.posix!==!1&&I===":"){let q=T.value.slice(1);if(q.includes("[")&&(T.posix=!0,q.includes(":"))){let ce=T.value.lastIndexOf("["),ve=T.value.slice(0,ce),Se=T.value.slice(ce+2),_e=u[Se];if(_e){T.value=ve+_e,N.backtrack=!0,Y(),!E.output&&h.indexOf(T)===1&&(E.output=F);continue}}}(I==="["&&K()!==":"||I==="-"&&K()==="]")&&(I=`\\${I}`),I==="]"&&(T.value==="["||T.value==="[^")&&(I=`\\${I}`),m.posix===!0&&I==="!"&&T.value==="["&&(I="^"),T.value+=I,ee({value:I});continue}if(N.quotes===1&&I!=='"'){I=i.escapeRegex(I),T.value+=I,ee({value:I});continue}if(I==='"'){N.quotes=N.quotes===1?0:1,m.keepQuotes===!0&&re({type:"text",value:I});continue}if(I==="("){ye("parens"),re({type:"paren",value:I});continue}if(I===")"){if(N.parens===0&&m.strictBrackets===!0)throw new SyntaxError(p("opening","("));let q=le[le.length-1];if(q&&N.parens===q.parens+1){Ut(le.pop());continue}re({type:"paren",value:I,output:N.parens?")":"\\)"}),se("parens");continue}if(I==="["){if(m.nobracket===!0||!z().includes("]")){if(m.nobracket!==!0&&m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));I=`\\${I}`}else ye("brackets");re({type:"bracket",value:I});continue}if(I==="]"){if(m.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){re({type:"text",value:I,output:`\\${I}`});continue}if(N.brackets===0){if(m.strictBrackets===!0)throw new SyntaxError(p("opening","["));re({type:"text",value:I,output:`\\${I}`});continue}se("brackets");let q=T.value.slice(1);if(T.posix!==!0&&q[0]==="^"&&!q.includes("/")&&(I=`/${I}`),T.value+=I,ee({value:I}),m.literalBrackets===!1||i.hasRegexChars(q))continue;let ce=i.escapeRegex(T.value);if(N.output=N.output.slice(0,-T.value.length),m.literalBrackets===!0){N.output+=ce,T.value=ce;continue}T.value=`(${v}${ce}|${T.value})`,N.output+=T.value;continue}if(I==="{"&&m.nobrace!==!0){ye("braces");let q={type:"brace",value:I,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};pe.push(q),re(q);continue}if(I==="}"){let q=pe[pe.length-1];if(m.nobrace===!0||!q){re({type:"text",value:I,output:I});continue}let ce=")";if(q.dots===!0){let ve=h.slice(),Se=[];for(let _e=ve.length-1;_e>=0&&(h.pop(),ve[_e].type!=="brace");_e--)ve[_e].type!=="dots"&&Se.unshift(ve[_e].value);ce=c(Se,m),N.backtrack=!0}if(q.comma!==!0&&q.dots!==!0){let ve=N.output.slice(0,q.outputIndex),Se=N.tokens.slice(q.tokensIndex);q.value=q.output="\\{",I=ce="\\}",N.output=ve;for(let _e of Se)N.output+=_e.output||_e.value}re({type:"brace",value:I,output:ce}),se("braces"),pe.pop();continue}if(I==="|"){le.length>0&&le[le.length-1].conditions++,re({type:"text",value:I});continue}if(I===","){let q=I,ce=pe[pe.length-1];ce&&ne[ne.length-1]==="braces"&&(ce.comma=!0,q="|"),re({type:"comma",value:I,output:q});continue}if(I==="/"){if(T.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",h.pop(),T=E;continue}re({type:"slash",value:I,output:D});continue}if(I==="."){if(N.braces>0&&T.type==="dot"){T.value==="."&&(T.output=b);let q=pe[pe.length-1];T.type="dots",T.output+=I,T.value+=I,q.dots=!0;continue}if(N.braces+N.parens===0&&T.type!=="bos"&&T.type!=="slash"){re({type:"text",value:I,output:b});continue}re({type:"dot",value:I,output:b});continue}if(I==="?"){if(!(T&&T.value==="(")&&m.noextglob!==!0&&K()==="("&&K(2)!=="?"){Ee("qmark",I);continue}if(T&&T.type==="paren"){let q=K(),ce=I;if(q==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(T.value==="("&&!/[!=<:]/.test(q)||q==="<"&&!/<([!=]|\w+>)/.test(z()))&&(ce=`\\${I}`),re({type:"text",value:I,output:ce});continue}if(m.dot!==!0&&(T.type==="slash"||T.type==="bos")){re({type:"qmark",value:I,output:R});continue}re({type:"qmark",value:I,output:S});continue}if(I==="!"){if(m.noextglob!==!0&&K()==="("&&(K(2)!=="?"||!/[!=<:]/.test(K(3)))){Ee("negate",I);continue}if(m.nonegate!==!0&&N.index===0){ie();continue}}if(I==="+"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){Ee("plus",I);continue}if(T&&T.value==="("||m.regex===!1){re({type:"plus",value:I,output:k});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||N.parens>0){re({type:"plus",value:I});continue}re({type:"plus",value:k});continue}if(I==="@"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){re({type:"at",extglob:!0,value:I,output:""});continue}re({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let q=s.exec(z());q&&(I+=q[0],N.index+=q[0].length),re({type:"text",value:I});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=I,T.output=oe,N.backtrack=!0,N.globstar=!0,X(I);continue}let V=z();if(m.noextglob!==!0&&/^\([^?]/.test(V)){Ee("star",I);continue}if(T.type==="star"){if(m.noglobstar===!0){X(I);continue}let q=T.prev,ce=q.prev,ve=q.type==="slash"||q.type==="bos",Se=ce&&(ce.type==="star"||ce.type==="globstar");if(m.bash===!0&&(!ve||V[0]&&V[0]!=="/")){re({type:"star",value:I,output:""});continue}let _e=N.braces>0&&(q.type==="comma"||q.type==="brace"),Wt=le.length&&(q.type==="pipe"||q.type==="paren");if(!ve&&q.type!=="paren"&&!_e&&!Wt){re({type:"star",value:I,output:""});continue}for(;V.slice(0,3)==="/**";){let gt=f[N.index+4];if(gt&>!=="/")break;V=V.slice(3),X("/**",3)}if(q.type==="bos"&&$()){T.type="globstar",T.value+=I,T.output=B(m),N.output=T.output,N.globstar=!0,X(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&!Se&&$()){N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=B(m)+(m.strictSlashes?")":"|$)"),T.value+=I,N.globstar=!0,N.output+=q.output+T.output,X(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&V[0]==="/"){let gt=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=`${B(m)}${D}|${D}${gt})`,T.value+=I,N.output+=q.output+T.output,N.globstar=!0,X(I+Y()),re({type:"slash",value:"/",output:""});continue}if(q.type==="bos"&&V[0]==="/"){T.type="globstar",T.value+=I,T.output=`(?:^|${D}|${B(m)}${D})`,N.output=T.output,N.globstar=!0,X(I+Y()),re({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-T.output.length),T.type="globstar",T.output=B(m),T.value+=I,N.output+=T.output,N.globstar=!0,X(I);continue}let fe={type:"star",value:I,output:oe};if(m.bash===!0){fe.output=".*?",(T.type==="bos"||T.type==="slash")&&(fe.output=Q+fe.output),re(fe);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&m.regex===!0){fe.output=I,re(fe);continue}(N.index===N.start||T.type==="slash"||T.type==="dot")&&(T.type==="dot"?(N.output+=P,T.output+=P):m.dot===!0?(N.output+=C,T.output+=C):(N.output+=Q,T.output+=Q),K()!=="*"&&(N.output+=F,T.output+=F)),re(fe)}for(;N.brackets>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));N.output=i.escapeLast(N.output,"["),se("brackets")}for(;N.parens>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing",")"));N.output=i.escapeLast(N.output,"("),se("parens")}for(;N.braces>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","}"));N.output=i.escapeLast(N.output,"{"),se("braces")}if(m.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${D}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};l.fastpaths=(f,d)=>{let m={...d},g=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,_=f.length;if(_>g)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${g}`);f=a[f]||f;let E=i.isWindows(d),{DOT_LITERAL:h,SLASH_LITERAL:v,ONE_CHAR:x,DOTS_SLASH:y,NO_DOT:A,NO_DOTS:b,NO_DOTS_SLASH:k,STAR:D,START_ANCHOR:F}=r.globChars(E),w=m.dot?b:A,O=m.dot?k:A,P=m.capture?"":"?:",C={negated:!1,prefix:""},S=m.bash===!0?".*?":D;m.capture&&(S=`(${S})`);let R=Q=>Q.noglobstar===!0?S:`(${P}(?:(?!${F}${Q.dot?y:h}).)*?)`,L=Q=>{switch(Q){case"*":return`${w}${x}${S}`;case".*":return`${h}${x}${S}`;case"*.*":return`${w}${S}${h}${x}${S}`;case"*/*":return`${w}${S}${v}${x}${O}${S}`;case"**":return w+R(m);case"**/*":return`(?:${w}${R(m)}${v})?${O}${x}${S}`;case"**/*.*":return`(?:${w}${R(m)}${v})?${O}${S}${h}${x}${S}`;case"**/.*":return`(?:${w}${R(m)}${v})?${h}${x}${S}`;default:{let Z=/^(.*?)\.(\w+)$/.exec(Q);if(!Z)return;let oe=L(Z[1]);return oe?oe+h+Z[2]:void 0}}},M=i.removePrefix(f,C),B=L(M);return B&&m.strictSlashes!==!0&&(B+=`${v}?`),B},t.exports=l}),GS=W((e,t)=>{"use strict";G();var r=ue("path"),i=$S(),n=HS(),u=yi(),s=mi(),o=c=>c&&typeof c=="object"&&!Array.isArray(c),a=(c,p,l=!1)=>{if(Array.isArray(c)){let v=c.map(x=>a(x,p,l));return x=>{for(let y of v){let A=y(x);if(A)return A}return!1}}let f=o(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");let d=p||{},m=u.isWindows(p),g=f?a.compileRe(c,p):a.makeRe(c,p,!1,!0),_=g.state;delete g.state;let E=()=>!1;if(d.ignore){let v={...p,ignore:null,onMatch:null,onResult:null};E=a(d.ignore,v,l)}let h=(v,x=!1)=>{let{isMatch:y,match:A,output:b}=a.test(v,g,p,{glob:c,posix:m}),k={glob:c,state:_,regex:g,posix:m,input:v,output:b,match:A,isMatch:y};return typeof d.onResult=="function"&&d.onResult(k),y===!1?(k.isMatch=!1,x?k:!1):E(v)?(typeof d.onIgnore=="function"&&d.onIgnore(k),k.isMatch=!1,x?k:!1):(typeof d.onMatch=="function"&&d.onMatch(k),x?k:!0)};return l&&(h.state=_),h};a.test=(c,p,l,{glob:f,posix:d}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let m=l||{},g=m.format||(d?u.toPosixSlashes:null),_=c===f,E=_&&g?g(c):c;return _===!1&&(E=g?g(c):c,_=E===f),(_===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?_=a.matchBase(c,p,l,d):_=p.exec(E)),{isMatch:Boolean(_),match:_,output:E}},a.matchBase=(c,p,l,f=u.isWindows(l))=>(p instanceof RegExp?p:a.makeRe(p,l)).test(r.basename(c)),a.isMatch=(c,p,l)=>a(p,l)(c),a.parse=(c,p)=>Array.isArray(c)?c.map(l=>a.parse(l,p)):n(c,{...p,fastpaths:!1}),a.scan=(c,p)=>i(c,p),a.compileRe=(c,p,l=!1,f=!1)=>{if(l===!0)return c.output;let d=p||{},m=d.contains?"":"^",g=d.contains?"":"$",_=`${m}(?:${c.output})${g}`;c&&c.negated===!0&&(_=`^(?!${_}).*$`);let E=a.toRegex(_,p);return f===!0&&(E.state=c),E},a.makeRe=(c,p={},l=!1,f=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(d.output=n.fastpaths(c,p)),d.output||(d=n(c,p)),a.compileRe(d,p,l,f)},a.toRegex=(c,p)=>{try{let l=p||{};return new RegExp(c,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},a.constants=s,t.exports=a}),qS=W((e,t)=>{"use strict";G(),t.exports=GS()}),US=W((e,t)=>{"use strict";G();var r=ue("util"),i=jS(),n=qS(),u=yi(),s=a=>a===""||a==="./",o=(a,c,p)=>{c=[].concat(c),a=[].concat(a);let l=new Set,f=new Set,d=new Set,m=0,g=E=>{d.add(E.output),p&&p.onResult&&p.onResult(E)};for(let E=0;E<c.length;E++){let h=n(String(c[E]),{...p,onResult:g},!0),v=h.state.negated||h.state.negatedExtglob;v&&m++;for(let x of a){let y=h(x,!0);!(v?!y.isMatch:y.isMatch)||(v?l.add(y.output):(l.delete(y.output),f.add(y.output)))}}let _=(m===c.length?[...d]:[...f]).filter(E=>!l.has(E));if(p&&_.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?c.map(E=>E.replace(/\\/g,"")):c}return _};o.match=o,o.matcher=(a,c)=>n(a,c),o.isMatch=(a,c,p)=>n(c,p)(a),o.any=o.isMatch,o.not=(a,c,p={})=>{c=[].concat(c).map(String);let l=new Set,f=[],d=g=>{p.onResult&&p.onResult(g),f.push(g.output)},m=new Set(o(a,c,{...p,onResult:d}));for(let g of f)m.has(g)||l.add(g);return[...l]},o.contains=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);if(Array.isArray(c))return c.some(l=>o.contains(a,l,p));if(typeof c=="string"){if(s(a)||s(c))return!1;if(a.includes(c)||a.startsWith("./")&&a.slice(2).includes(c))return!0}return o.isMatch(a,c,{...p,contains:!0})},o.matchKeys=(a,c,p)=>{if(!u.isObject(a))throw new TypeError("Expected the first argument to be an object");let l=o(Object.keys(a),c,p),f={};for(let d of l)f[d]=a[d];return f},o.some=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=n(String(f),p);if(l.some(m=>d(m)))return!0}return!1},o.every=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=n(String(f),p);if(!l.every(m=>d(m)))return!1}return!0},o.all=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);return[].concat(c).every(l=>n(l,p)(a))},o.capture=(a,c,p)=>{let l=u.isWindows(p),f=n.makeRe(String(a),{...p,capture:!0}).exec(l?u.toPosixSlashes(c):c);if(f)return f.slice(1).map(d=>d===void 0?"":d)},o.makeRe=(...a)=>n.makeRe(...a),o.scan=(...a)=>n.scan(...a),o.parse=(a,c)=>{let p=[];for(let l of[].concat(a||[]))for(let f of i(String(l),c))p.push(n.parse(f,c));return p},o.braces=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!/\{.*\}/.test(a)?[a]:i(a,c)},o.braceExpand=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return o.braces(a,{...c,expand:!0})},t.exports=o}),WS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=ue("path"),r=TS(),i=US(),n="**",u="\\",s=/[*?]|^!/,o=/\[[^[]*]/,a=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,p=/,|\.\./;function l(L,M={}){return!f(L,M)}e.isStaticPattern=l;function f(L,M={}){return L===""?!1:!!(M.caseSensitiveMatch===!1||L.includes(u)||s.test(L)||o.test(L)||a.test(L)||M.extglob!==!1&&c.test(L)||M.braceExpansion!==!1&&d(L))}e.isDynamicPattern=f;function d(L){let M=L.indexOf("{");if(M===-1)return!1;let B=L.indexOf("}",M+1);if(B===-1)return!1;let Q=L.slice(M,B);return p.test(Q)}function m(L){return _(L)?L.slice(1):L}e.convertToPositivePattern=m;function g(L){return"!"+L}e.convertToNegativePattern=g;function _(L){return L.startsWith("!")&&L[1]!=="("}e.isNegativePattern=_;function E(L){return!_(L)}e.isPositivePattern=E;function h(L){return L.filter(_)}e.getNegativePatterns=h;function v(L){return L.filter(E)}e.getPositivePatterns=v;function x(L){return L.filter(M=>!A(M))}e.getPatternsInsideCurrentDirectory=x;function y(L){return L.filter(A)}e.getPatternsOutsideCurrentDirectory=y;function A(L){return L.startsWith("..")||L.startsWith("./..")}e.isPatternRelatedToParentDirectory=A;function b(L){return r(L,{flipBackslashes:!1})}e.getBaseDirectory=b;function k(L){return L.includes(n)}e.hasGlobStar=k;function D(L){return L.endsWith("/"+n)}e.endsWithSlashGlobStar=D;function F(L){let M=t.basename(L);return D(L)||l(M)}e.isAffectDepthOfReadingPattern=F;function w(L){return L.reduce((M,B)=>M.concat(O(B)),[])}e.expandPatternsWithBraceExpansion=w;function O(L){return i.braces(L,{expand:!0,nodupes:!0})}e.expandBraceExpansion=O;function P(L,M){let{parts:B}=i.scan(L,Object.assign(Object.assign({},M),{parts:!0}));return B.length===0&&(B=[L]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}e.getPatternParts=P;function C(L,M){return i.makeRe(L,M)}e.makeRe=C;function S(L,M){return L.map(B=>C(B,M))}e.convertPatternsToRe=S;function R(L,M){return M.some(B=>B.test(L))}e.matchAny=R}),KS=W((e,t)=>{"use strict";G();var r=ue("stream"),i=r.PassThrough,n=Array.prototype.slice;t.exports=u;function u(){let o=[],a=n.call(arguments),c=!1,p=a[a.length-1];p&&!Array.isArray(p)&&p.pipe==null?a.pop():p={};let l=p.end!==!1,f=p.pipeError===!0;p.objectMode==null&&(p.objectMode=!0),p.highWaterMark==null&&(p.highWaterMark=64*1024);let d=i(p);function m(){for(let E=0,h=arguments.length;E<h;E++)o.push(s(arguments[E],p));return g(),this}function g(){if(c)return;c=!0;let E=o.shift();if(!E){process.nextTick(_);return}Array.isArray(E)||(E=[E]);let h=E.length+1;function v(){--h>0||(c=!1,g())}function x(y){function A(){y.removeListener("merge2UnpipeEnd",A),y.removeListener("end",A),f&&y.removeListener("error",b),v()}function b(k){d.emit("error",k)}if(y._readableState.endEmitted)return v();y.on("merge2UnpipeEnd",A),y.on("end",A),f&&y.on("error",b),y.pipe(d,{end:!1}),y.resume()}for(let y=0;y<E.length;y++)x(E[y]);v()}function _(){c=!1,d.emit("queueDrain"),l&&d.end()}return d.setMaxListeners(0),d.add=m,d.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),a.length&&m.apply(null,a),d}function s(o,a){if(Array.isArray(o))for(let c=0,p=o.length;c<p;c++)o[c]=s(o[c],a);else{if(!o._readableState&&o.pipe&&(o=o.pipe(i(a))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}),YS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=KS();function r(n){let u=t(n);return n.forEach(s=>{s.once("error",o=>u.emit("error",o))}),u.once("close",()=>i(n)),u.once("end",()=>i(n)),u}e.merge=r;function i(n){n.forEach(u=>u.emit("close"))}}),VS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(i){return typeof i=="string"}e.isString=t;function r(i){return i===""}e.isEmpty=r}),Bt=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=wS();e.array=t;var r=CS();e.errno=r;var i=kS();e.fs=i;var n=FS();e.path=n;var u=WS();e.pattern=u;var s=YS();e.stream=s;var o=VS();e.string=o}),QS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Bt();function r(c,p){let l=n(c),f=u(c,p.ignore),d=l.filter(E=>t.pattern.isStaticPattern(E,p)),m=l.filter(E=>t.pattern.isDynamicPattern(E,p)),g=i(d,f,!1),_=i(m,f,!0);return g.concat(_)}e.generate=r;function i(c,p,l){let f=[],d=t.pattern.getPatternsOutsideCurrentDirectory(c),m=t.pattern.getPatternsInsideCurrentDirectory(c),g=s(d),_=s(m);return f.push(...o(g,p,l)),"."in _?f.push(a(".",m,p,l)):f.push(...o(_,p,l)),f}e.convertPatternsToTasks=i;function n(c){return t.pattern.getPositivePatterns(c)}e.getPositivePatterns=n;function u(c,p){return t.pattern.getNegativePatterns(c).concat(p).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=u;function s(c){let p={};return c.reduce((l,f)=>{let d=t.pattern.getBaseDirectory(f);return d in l?l[d].push(f):l[d]=[f],l},p)}e.groupPatternsByBaseDirectory=s;function o(c,p,l){return Object.keys(c).map(f=>a(f,c[f],p,l))}e.convertPatternGroupsToTasks=o;function a(c,p,l,f){return{dynamic:f,positive:p,negative:l,base:c,patterns:[].concat(p,l.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=a}),XS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var t=/(?!^)\/{2,}/g;function r(n){return n.map(u=>i(u))}e.transform=r;function i(n){return n.replace(t,"/")}e.removeDuplicateSlashes=i}),JS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(n,u,s){u.fs.lstat(n,(o,a)=>{if(o!==null){r(s,o);return}if(!a.isSymbolicLink()||!u.followSymbolicLink){i(s,a);return}u.fs.stat(n,(c,p)=>{if(c!==null){if(u.throwErrorOnBrokenSymbolicLink){r(s,c);return}i(s,a);return}u.markSymbolicLink&&(p.isSymbolicLink=()=>!0),i(s,p)})})}e.read=t;function r(n,u){n(u)}function i(n,u){n(null,u)}}),ZS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,i){let n=i.fs.lstatSync(r);if(!n.isSymbolicLink()||!i.followSymbolicLink)return n;try{let u=i.fs.statSync(r);return i.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!i.throwErrorOnBrokenSymbolicLink)return n;throw u}}e.read=t}),zS=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ue("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r}),eA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=zS(),r=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,n){return i!=null?i:n}};e.default=r}),Pr=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=JS(),r=ZS(),i=eA();e.Settings=i.default;function n(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.stat=n;function u(o,a){let c=s(a);return r.read(o,c)}e.statSync=u;function s(o={}){return o instanceof i.default?o:new i.default(o)}}),tA=W((e,t)=>{G();var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(r||(r=Promise.resolve())).then(i).catch(n=>setTimeout(()=>{throw n},0))}),rA=W((e,t)=>{G(),t.exports=i;var r=tA();function i(n,u){let s,o,a,c=!0;Array.isArray(n)?(s=[],o=n.length):(a=Object.keys(n),s={},o=a.length);function p(f){function d(){u&&u(f,s),u=null}c?r(d):d()}function l(f,d,m){s[f]=m,(--o===0||d)&&p(d)}o?a?a.forEach(function(f){n[f](function(d,m){l(f,d,m)})}):n.forEach(function(f,d){f(function(m,g){l(d,m,g)})}):p(null),c=!1}}),jf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),i=Number.parseInt(t[1],10),n=10,u=10,s=r>n,o=r===n&&i>=u;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=s||o}),nA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new t(i,n)}e.createDirentFromStats=r}),$f=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=nA();e.fs=t}),Hf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,i,n){return r.endsWith(n)?r+i:r+n+i}e.joinPathSegments=t}),iA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Pr(),r=rA(),i=jf(),n=$f(),u=Hf();function s(f,d,m){if(!d.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(f,d,m);return}c(f,d,m)}e.read=s;function o(f,d,m){d.fs.readdir(f,{withFileTypes:!0},(g,_)=>{if(g!==null){p(m,g);return}let E=_.map(v=>({dirent:v,name:v.name,path:u.joinPathSegments(f,v.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){l(m,E);return}let h=E.map(v=>a(v,d));r(h,(v,x)=>{if(v!==null){p(m,v);return}l(m,x)})})}e.readdirWithFileTypes=o;function a(f,d){return m=>{if(!f.dirent.isSymbolicLink()){m(null,f);return}d.fs.stat(f.path,(g,_)=>{if(g!==null){if(d.throwErrorOnBrokenSymbolicLink){m(g);return}m(null,f);return}f.dirent=n.fs.createDirentFromStats(f.name,_),m(null,f)})}}function c(f,d,m){d.fs.readdir(f,(g,_)=>{if(g!==null){p(m,g);return}let E=_.map(h=>{let v=u.joinPathSegments(f,h,d.pathSegmentSeparator);return x=>{t.stat(v,d.fsStatSettings,(y,A)=>{if(y!==null){x(y);return}let b={name:h,path:v,dirent:n.fs.createDirentFromStats(h,A)};d.stats&&(b.stats=A),x(null,b)})}});r(E,(h,v)=>{if(h!==null){p(m,h);return}l(m,v)})})}e.readdir=c;function p(f,d){f(d)}function l(f,d){f(null,d)}}),oA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Pr(),r=jf(),i=$f(),n=Hf();function u(a,c){return!c.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(a,c):o(a,c)}e.read=u;function s(a,c){return c.fs.readdirSync(a,{withFileTypes:!0}).map(p=>{let l={dirent:p,name:p.name,path:n.joinPathSegments(a,p.name,c.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let f=c.fs.statSync(l.path);l.dirent=i.fs.createDirentFromStats(l.name,f)}catch(f){if(c.throwErrorOnBrokenSymbolicLink)throw f}return l})}e.readdirWithFileTypes=s;function o(a,c){return c.fs.readdirSync(a).map(p=>{let l=n.joinPathSegments(a,p,c.pathSegmentSeparator),f=t.statSync(l,c.fsStatSettings),d={name:p,path:l,dirent:i.fs.createDirentFromStats(p,f)};return c.stats&&(d.stats=f),d})}e.readdir=o}),sA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ue("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r}),aA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=Pr(),i=sA(),n=class{constructor(u={}){this._options=u,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(u,s){return u!=null?u:s}};e.default=n}),la=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=iA(),r=oA(),i=aA();e.Settings=i.default;function n(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.scandir=n;function u(o,a){let c=s(a);return r.read(o,c)}e.scandirSync=u;function s(o={}){return o instanceof i.default?o:new i.default(o)}}),uA=W((e,t)=>{"use strict";G();function r(i){var n=new i,u=n;function s(){var a=n;return a.next?n=a.next:(n=new i,u=n),a.next=null,a}function o(a){u.next=a,u=a}return{get:s,release:o}}t.exports=r}),cA=W((e,t)=>{"use strict";G();var r=uA();function i(o,a,c){if(typeof o=="function"&&(c=a,a=o,o=null),c<1)throw new Error("fastqueue concurrency must be greater than 1");var p=r(u),l=null,f=null,d=0,m=null,g={push:A,drain:n,saturated:n,pause:E,paused:!1,concurrency:c,running:_,resume:x,idle:y,length:h,getQueue:v,unshift:b,empty:n,kill:D,killAndDrain:F,error:w};return g;function _(){return d}function E(){g.paused=!0}function h(){for(var O=l,P=0;O;)O=O.next,P++;return P}function v(){for(var O=l,P=[];O;)P.push(O.value),O=O.next;return P}function x(){if(g.paused){g.paused=!1;for(var O=0;O<g.concurrency;O++)d++,k()}}function y(){return d===0&&g.length()===0}function A(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||n,C.errorHandler=m,d===g.concurrency||g.paused?f?(f.next=C,f=C):(l=C,f=C,g.saturated()):(d++,a.call(o,C.value,C.worked))}function b(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||n,d===g.concurrency||g.paused?l?(C.next=l,l=C):(l=C,f=C,g.saturated()):(d++,a.call(o,C.value,C.worked))}function k(O){O&&p.release(O);var P=l;P?g.paused?d--:(f===l&&(f=null),l=P.next,P.next=null,a.call(o,P.value,P.worked),f===null&&g.empty()):--d===0&&g.drain()}function D(){l=null,f=null,g.drain=n}function F(){l=null,f=null,g.drain(),g.drain=n}function w(O){m=O}}function n(){}function u(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var o=this;this.worked=function(a,c){var p=o.callback,l=o.errorHandler,f=o.value;o.value=null,o.callback=n,o.errorHandler&&l(a,f),p.call(o.context,a,c),o.release(o)}}function s(o,a,c){typeof o=="function"&&(c=a,a=o,o=null);function p(E,h){a.call(this,E).then(function(v){h(null,v)},h)}var l=i(o,p,c),f=l.push,d=l.unshift;return l.push=m,l.unshift=g,l.drained=_,l;function m(E){var h=new Promise(function(v,x){f(E,function(y,A){if(y){x(y);return}v(A)})});return h.catch(n),h}function g(E){var h=new Promise(function(v,x){d(E,function(y,A){if(y){x(y);return}v(A)})});return h.catch(n),h}function _(){var E=l.drain,h=new Promise(function(v){l.drain=function(){E(),v()}});return h}}t.exports=i,t.exports.promise=s}),pa=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(u,s){return u.errorFilter===null?!0:!u.errorFilter(s)}e.isFatalError=t;function r(u,s){return u===null||u(s)}e.isAppliedFilter=r;function i(u,s){return u.split(/[/\\]/).join(s)}e.replacePathSegmentSeparator=i;function n(u,s,o){return u===""?s:u.endsWith(o)?u+s:u+o+s}e.joinPathSegments=n}),Gf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=pa(),r=class{constructor(i,n){this._root=i,this._settings=n,this._root=t.replacePathSegmentSeparator(i,n.pathSegmentSeparator)}};e.default=r}),qf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("events"),r=la(),i=cA(),n=pa(),u=Gf(),s=class extends u.default{constructor(o,a){super(o,a),this._settings=a,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,a){let c={directory:o,base:a};this._queue.push(c,p=>{p!==null&&this._handleError(p)})}_worker(o,a){this._scandir(o.directory,this._settings.fsScandirSettings,(c,p)=>{if(c!==null){a(c,void 0);return}for(let l of p)this._handleEntry(l,o.base);a(null,void 0)})}_handleError(o){this._isDestroyed||!n.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,a){if(this._isDestroyed||this._isFatalError)return;let c=o.path;a!==void 0&&(o.path=n.joinPathSegments(a,o.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(c,a===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};e.default=s}),lA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=qf(),r=class{constructor(u,s){this._root=u,this._settings=s,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(u){this._reader.onError(s=>{i(u,s)}),this._reader.onEntry(s=>{this._storage.push(s)}),this._reader.onEnd(()=>{n(u,this._storage)}),this._reader.read()}};e.default=r;function i(u,s){u(s)}function n(u,s){u(null,s)}}),pA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("stream"),r=qf(),i=class{constructor(n,u){this._root=n,this._settings=u,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i}),fA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=la(),r=pa(),i=Gf(),n=class extends i.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(u,s){this._queue.add({directory:u,base:s})}_handleQueue(){for(let u of this._queue.values())this._handleDirectory(u.directory,u.base)}_handleDirectory(u,s){try{let o=this._scandir(u,this._settings.fsScandirSettings);for(let a of o)this._handleEntry(a,s)}catch(o){this._handleError(o)}}_handleError(u){if(r.isFatalError(this._settings,u))throw u}_handleEntry(u,s){let o=u.path;s!==void 0&&(u.path=r.joinPathSegments(s,u.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,u)&&this._pushToStorage(u),u.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,u)&&this._pushToQueue(o,s===void 0?void 0:u.path)}_pushToStorage(u){this._storage.push(u)}};e.default=n}),dA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=fA(),r=class{constructor(i,n){this._root=i,this._settings=n,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r}),hA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=la(),i=class{constructor(n={}){this._options=n,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,u){return n!=null?n:u}};e.default=i}),fa=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=lA(),r=pA(),i=dA(),n=hA();e.Settings=n.default;function u(c,p,l){if(typeof p=="function"){new t.default(c,a()).read(p);return}new t.default(c,a(p)).read(l)}e.walk=u;function s(c,p){let l=a(p);return new i.default(c,l).read()}e.walkSync=s;function o(c,p){let l=a(p);return new r.default(c,l).read()}e.walkStream=o;function a(c={}){return c instanceof n.default?c:new n.default(c)}}),da=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=Pr(),i=Bt(),n=class{constructor(u){this._settings=u,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(u){return t.resolve(this._settings.cwd,u)}_makeEntry(u,s){let o={name:s,path:s,dirent:i.fs.createDirentFromStats(s,u)};return this._settings.stats&&(o.stats=u),o}_isFatalError(u){return!i.errno.isEnoentCodeError(u)&&!this._settings.suppressErrors}};e.default=n}),Uf=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("stream"),r=Pr(),i=fa(),n=da(),u=class extends n.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=r.stat}dynamic(s,o){return this._walkStream(s,o)}static(s,o){let a=s.map(this._getFullEntryPath,this),c=new t.PassThrough({objectMode:!0});c._write=(p,l,f)=>this._getEntry(a[p],s[p],o).then(d=>{d!==null&&o.entryFilter(d)&&c.push(d),p===a.length-1&&c.end(),f()}).catch(f);for(let p=0;p<a.length;p++)c.write(p);return c}_getEntry(s,o,a){return this._getStat(s).then(c=>this._makeEntry(c,o)).catch(c=>{if(a.errorFilter(c))return null;throw c})}_getStat(s){return new Promise((o,a)=>{this._stat(s,this._fsStatSettings,(c,p)=>c===null?o(p):a(c))})}};e.default=u}),mA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=fa(),r=da(),i=Uf(),n=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new i.default(this._settings)}dynamic(u,s){return new Promise((o,a)=>{this._walkAsync(u,s,(c,p)=>{c===null?o(p):a(c)})})}async static(u,s){let o=[],a=this._readerStream.static(u,s);return new Promise((c,p)=>{a.once("error",p),a.on("data",l=>o.push(l)),a.once("end",()=>c(o))})}};e.default=n}),yA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),r=class{constructor(i,n,u){this._patterns=i,this._settings=n,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){let i=t.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let n of i){let u=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(u);this._storage.push({complete:s.length<=1,pattern:n,segments:u,sections:s})}}_getPatternSegments(i){return t.pattern.getPatternParts(i,this._micromatchOptions).map(n=>t.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:t.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(i){return t.array.splitWhen(i,n=>n.dynamic&&t.pattern.hasGlobStar(n.pattern))}};e.default=r}),gA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=yA(),r=class extends t.default{match(i){let n=i.split("/"),u=n.length,s=this._storage.filter(o=>!o.complete||o.segments.length>u);for(let o of s){let a=o.sections[0];if(!o.complete&&u>a.length||n.every((c,p)=>{let l=o.segments[p];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};e.default=r}),vA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),r=gA(),i=class{constructor(n,u){this._settings=n,this._micromatchOptions=u}getFilter(n,u,s){let o=this._getMatcher(u),a=this._getNegativePatternsRe(s);return c=>this._filter(n,c,o,a)}_getMatcher(n){return new r.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let u=n.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(u,this._micromatchOptions)}_filter(n,u,s,o){if(this._isSkippedByDeep(n,u.path)||this._isSkippedSymbolicLink(u))return!1;let a=t.path.removeLeadingDotSegment(u.path);return this._isSkippedByPositivePatterns(a,s)?!1:this._isSkippedByNegativePatterns(a,o)}_isSkippedByDeep(n,u){return this._settings.deep===1/0?!1:this._getEntryLevel(n,u)>=this._settings.deep}_getEntryLevel(n,u){let s=u.split("/").length;if(n==="")return s;let o=n.split("/").length;return s-o}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,u){return!this._settings.baseNameMatch&&!u.match(n)}_isSkippedByNegativePatterns(n,u){return!t.pattern.matchAny(n,u)}};e.default=i}),_A=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),r=class{constructor(i,n){this._settings=i,this._micromatchOptions=n,this.index=new Map}getFilter(i,n){let u=t.pattern.convertPatternsToRe(i,this._micromatchOptions),s=t.pattern.convertPatternsToRe(n,this._micromatchOptions);return o=>this._filter(o,u,s)}_filter(i,n,u){if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i)||this._isSkippedByAbsoluteNegativePatterns(i.path,u))return!1;let s=this._settings.baseNameMatch?i.name:i.path,o=i.dirent.isDirectory(),a=this._isMatchToPatterns(s,n,o)&&!this._isMatchToPatterns(i.path,u,o);return this._settings.unique&&a&&this._createIndexRecord(i),a}_isDuplicateEntry(i){return this.index.has(i.path)}_createIndexRecord(i){this.index.set(i.path,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(i,n){if(!this._settings.absolute)return!1;let u=t.path.makeAbsolute(this._settings.cwd,i);return t.pattern.matchAny(u,n)}_isMatchToPatterns(i,n,u){let s=t.path.removeLeadingDotSegment(i),o=t.pattern.matchAny(s,n);return!o&&u?t.pattern.matchAny(s+"/",n):o}};e.default=r}),EA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),r=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return t.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=r}),SA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),r=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let n=i.path;return this._settings.absolute&&(n=t.path.makeAbsolute(this._settings.cwd,n),n=t.path.unixify(n)),this._settings.markDirectories&&i.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:n}):n}};e.default=r}),ha=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("path"),r=vA(),i=_A(),n=EA(),u=SA(),s=class{constructor(o){this._settings=o,this.errorFilter=new n.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new u.default(this._settings)}_getRootDirectory(o){return t.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let a=o.base==="."?"":o.base;return{basePath:a,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(a,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=s}),AA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=mA(),r=ha(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(n){let u=this._getRootDirectory(n),s=this._getReaderOptions(n);return(await this.api(u,n,s)).map(o=>s.transform(o))}api(n,u,s){return u.dynamic?this._reader.dynamic(n,s):this._reader.static(u.patterns,s)}};e.default=i}),bA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=ue("stream"),r=Uf(),i=ha(),n=class extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(u){let s=this._getRootDirectory(u),o=this._getReaderOptions(u),a=this.api(s,u,o),c=new t.Readable({objectMode:!0,read:()=>{}});return a.once("error",p=>c.emit("error",p)).on("data",p=>c.emit("data",o.transform(p))).once("end",()=>c.emit("end")),c.once("close",()=>a.destroy()),c}api(u,s,o){return s.dynamic?this._reader.dynamic(u,o):this._reader.static(s.patterns,o)}};e.default=n}),DA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=Pr(),r=fa(),i=da(),n=class extends i.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(u,s){return this._walkSync(u,s)}static(u,s){let o=[];for(let a of u){let c=this._getFullEntryPath(a),p=this._getEntry(c,a,s);p===null||!s.entryFilter(p)||o.push(p)}return o}_getEntry(u,s,o){try{let a=this._getStat(u);return this._makeEntry(a,s)}catch(a){if(o.errorFilter(a))return null;throw a}}_getStat(u){return this._statSync(u,this._fsStatSettings)}};e.default=n}),xA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0});var t=DA(),r=ha(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(n){let u=this._getRootDirectory(n),s=this._getReaderOptions(n);return this.api(u,n,s).map(s.transform)}api(n,u,s){return u.dynamic?this._reader.dynamic(n,s):this._reader.static(u.patterns,s)}};e.default=i}),wA=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=ue("fs"),r=ue("os"),i=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var n=class{constructor(u={}){this._options=u,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(u,s){return u===void 0?s:u}_getFileSystemMethods(u={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),u)}};e.default=n}),CA=W((e,t)=>{"use strict";G();var r=QS(),i=XS(),n=AA(),u=bA(),s=xA(),o=wA(),a=Bt();async function c(f,d){l(f);let m=p(f,n.default,d),g=await Promise.all(m);return a.array.flatten(g)}(function(f){function d(h,v){l(h);let x=p(h,s.default,v);return a.array.flatten(x)}f.sync=d;function m(h,v){l(h);let x=p(h,u.default,v);return a.stream.merge(x)}f.stream=m;function g(h,v){l(h);let x=i.transform([].concat(h)),y=new o.default(v);return r.generate(x,y)}f.generateTasks=g;function _(h,v){l(h);let x=new o.default(v);return a.pattern.isDynamicPattern(h,x)}f.isDynamicPattern=_;function E(h){return l(h),a.path.escape(h)}f.escapePath=E})(c||(c={}));function p(f,d,m){let g=i.transform([].concat(f)),_=new o.default(m),E=r.generate(g,_),h=new d(_);return E.map(h.read,h)}function l(f){if(![].concat(f).every(d=>a.string.isString(d)&&!a.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=c});G();G();function Wf(e){return typeof e>"u"||e===null}function kA(e){return typeof e=="object"&&e!==null}function FA(e){return Array.isArray(e)?e:Wf(e)?[]:[e]}function RA(e,t){var r,i,n,u;if(t)for(u=Object.keys(t),r=0,i=u.length;r<i;r+=1)n=u[r],e[n]=t[n];return e}function OA(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function TA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var PA=Wf,LA=kA,IA=FA,NA=OA,BA=TA,MA=RA,Fe={isNothing:PA,isObject:LA,toArray:IA,repeat:NA,isNegativeZero:BA,extend:MA};function Kf(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
42
|
+
|
43
|
+
`+e.mark.snippet),i+" "+r):i}function tn(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Kf(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}tn.prototype=Object.create(Error.prototype);tn.prototype.constructor=tn;tn.prototype.toString=function(e){return this.name+": "+Kf(this,e)};var We=tn;function Xs(e,t,r,i,n){var u="",s="",o=Math.floor(n/2)-1;return i-t>o&&(u=" ... ",t=i-o+u.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:u+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:i-t+u.length}}function Js(e,t){return Fe.repeat(" ",t-e.length)+e}function jA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],u,s=-1;u=r.exec(e.buffer);)n.push(u.index),i.push(u.index+u[0].length),e.position<=u.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",a,c,p=Math.min(e.line+t.linesAfter,n.length).toString().length,l=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)c=Xs(e.buffer,i[s-a],n[s-a],e.position-(i[s]-i[s-a]),l),o=Fe.repeat(" ",t.indent)+Js((e.line-a+1).toString(),p)+" | "+c.str+`
|
44
|
+
`+o;for(c=Xs(e.buffer,i[s],n[s],e.position,l),o+=Fe.repeat(" ",t.indent)+Js((e.line+1).toString(),p)+" | "+c.str+`
|
45
|
+
`,o+=Fe.repeat("-",t.indent+p+3+c.pos)+`^
|
46
|
+
`,a=1;a<=t.linesAfter&&!(s+a>=n.length);a++)c=Xs(e.buffer,i[s+a],n[s+a],e.position-(i[s]-i[s+a]),l),o+=Fe.repeat(" ",t.indent)+Js((e.line+a+1).toString(),p)+" | "+c.str+`
|
47
|
+
`;return o.replace(/\n$/,"")}var $A=jA,HA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],GA=["scalar","sequence","mapping"];function qA(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function UA(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(HA.indexOf(r)===-1)throw new We('Unknown option "'+r+'" 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!0},this.construct=t.construct||function(r){return r},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||!1,this.styleAliases=qA(t.styleAliases||null),GA.indexOf(this.kind)===-1)throw new We('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Be=UA;function df(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(u,s){u.tag===i.tag&&u.kind===i.kind&&u.multi===i.multi&&(n=s)}),r[n]=i}),r}function WA(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}function ra(e){return this.extend(e)}ra.prototype.extend=function(e){var t=[],r=[];if(e instanceof Be)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new We("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(n){if(!(n instanceof Be))throw new We("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new We("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new We("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(n){if(!(n instanceof Be))throw new We("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(ra.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=df(i,"implicit"),i.compiledExplicit=df(i,"explicit"),i.compiledTypeMap=WA(i.compiledImplicit,i.compiledExplicit),i};var KA=ra,YA=new Be("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),VA=new Be("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),QA=new Be("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),XA=new KA({explicit:[YA,VA,QA]});function JA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function ZA(){return null}function zA(e){return e===null}var e1=new Be("tag:yaml.org,2002:null",{kind:"scalar",resolve:JA,construct:ZA,predicate:zA,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function t1(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function r1(e){return e==="true"||e==="True"||e==="TRUE"}function n1(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var i1=new Be("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t1,construct:r1,predicate:n1,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function o1(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function s1(e){return 48<=e&&e<=55}function a1(e){return 48<=e&&e<=57}function u1(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!o1(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!s1(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!a1(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function c1(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function l1(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Fe.isNegativeZero(e)}var p1=new Be("tag:yaml.org,2002:int",{kind:"scalar",resolve:u1,construct:c1,predicate:l1,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"]}}),f1=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d1(e){return!(e===null||!f1.test(e)||e[e.length-1]==="_")}function h1(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var m1=/^[-+]?[0-9]+e/;function y1(e,t){var r;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(Fe.isNegativeZero(e))return"-0.0";return r=e.toString(10),m1.test(r)?r.replace("e",".e"):r}function g1(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Fe.isNegativeZero(e))}var v1=new Be("tag:yaml.org,2002:float",{kind:"scalar",resolve:d1,construct:h1,predicate:g1,represent:y1,defaultStyle:"lowercase"}),_1=XA.extend({implicit:[e1,i1,p1,v1]}),E1=_1,Yf=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Vf=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 S1(e){return e===null?!1:Yf.exec(e)!==null||Vf.exec(e)!==null}function A1(e){var t,r,i,n,u,s,o,a=0,c=null,p,l,f;if(t=Yf.exec(e),t===null&&(t=Vf.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(u=+t[4],s=+t[5],o=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(p=+t[10],l=+(t[11]||0),c=(p*60+l)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,u,s,o,a)),c&&f.setTime(f.getTime()-c),f}function b1(e){return e.toISOString()}var D1=new Be("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:S1,construct:A1,instanceOf:Date,represent:b1});function x1(e){return e==="<<"||e===null}var w1=new Be("tag:yaml.org,2002:merge",{kind:"scalar",resolve:x1}),ma=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
48
|
+
\r`;function C1(e){if(e===null)return!1;var t,r,i=0,n=e.length,u=ma;for(r=0;r<n;r++)if(t=u.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function k1(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,u=ma,s=0,o=[];for(t=0;t<n;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|u.indexOf(i.charAt(t));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function F1(e){var t="",r=0,i,n,u=e.length,s=ma;for(i=0;i<u;i++)i%3===0&&i&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[i];return n=u%3,n===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):n===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):n===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function R1(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var O1=new Be("tag:yaml.org,2002:binary",{kind:"scalar",resolve:C1,construct:k1,predicate:R1,represent:F1}),T1=Object.prototype.hasOwnProperty,P1=Object.prototype.toString;function L1(e){if(e===null)return!0;var t=[],r,i,n,u,s,o=e;for(r=0,i=o.length;r<i;r+=1){if(n=o[r],s=!1,P1.call(n)!=="[object Object]")return!1;for(u in n)if(T1.call(n,u))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(u)===-1)t.push(u);else return!1}return!0}function I1(e){return e!==null?e:[]}var N1=new Be("tag:yaml.org,2002:omap",{kind:"sequence",resolve:L1,construct:I1}),B1=Object.prototype.toString;function M1(e){if(e===null)return!0;var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],B1.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;u[t]=[n[0],i[n[0]]]}return!0}function j1(e){if(e===null)return[];var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],n=Object.keys(i),u[t]=[n[0],i[n[0]]];return u}var $1=new Be("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:M1,construct:j1}),H1=Object.prototype.hasOwnProperty;function G1(e){if(e===null)return!0;var t,r=e;for(t in r)if(H1.call(r,t)&&r[t]!==null)return!1;return!0}function q1(e){return e!==null?e:{}}var U1=new Be("tag:yaml.org,2002:set",{kind:"mapping",resolve:G1,construct:q1}),Qf=E1.extend({implicit:[D1,w1],explicit:[O1,N1,$1,U1]}),Nt=Object.prototype.hasOwnProperty,ii=1,Xf=2,Jf=3,oi=4,Zs=1,W1=2,hf=3,K1=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Y1=/[\x85\u2028\u2029]/,V1=/[,\[\]\{\}]/,Zf=/^(?:!|!!|![a-z\-]+!)$/i,zf=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function mf(e){return Object.prototype.toString.call(e)}function dt(e){return e===10||e===13}function rr(e){return e===9||e===32}function Ke(e){return e===9||e===32||e===10||e===13}function kr(e){return e===44||e===91||e===93||e===123||e===125}function Q1(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function X1(e){return e===120?2:e===117?4:e===85?8:0}function J1(e){return 48<=e&&e<=57?e-48:-1}function yf(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
49
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Z1(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var ed=new Array(256),td=new Array(256);for(tr=0;tr<256;tr++)ed[tr]=yf(tr)?1:0,td[tr]=yf(tr);var tr;function z1(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Qf,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,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 rd(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=$A(r),new We(t,r)}function he(e,t){throw rd(e,t)}function si(e,t){e.onWarning&&e.onWarning.call(null,rd(e,t))}var gf={YAML:function(e,t,r){var i,n,u;e.version!==null&&he(e,"duplication of %YAML directive"),r.length!==1&&he(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&he(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),u=parseInt(i[2],10),n!==1&&he(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=u<2,u!==1&&u!==2&&si(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var i,n;r.length!==2&&he(e,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],Zf.test(i)||he(e,"ill-formed tag handle (first argument) of the TAG directive"),Nt.call(e.tagMap,i)&&he(e,'there is a previously declared suffix for "'+i+'" tag handle'),zf.test(n)||he(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{he(e,"tag prefix is malformed: "+n)}e.tagMap[i]=n}};function It(e,t,r,i){var n,u,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(n=0,u=o.length;n<u;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||he(e,"expected valid JSON character");else K1.test(o)&&he(e,"the stream contains non-printable characters");e.result+=o}}function vf(e,t,r,i){var n,u,s,o;for(Fe.isObject(r)||he(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)u=n[s],Nt.call(t,u)||(t[u]=r[u],i[u]=!0)}function Fr(e,t,r,i,n,u,s,o,a){var c,p;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,p=n.length;c<p;c+=1)Array.isArray(n[c])&&he(e,"nested arrays are not supported inside keys"),typeof n=="object"&&mf(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&mf(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(c=0,p=u.length;c<p;c+=1)vf(e,t,u[c],r);else vf(e,t,u,r);else!e.json&&!Nt.call(r,n)&&Nt.call(t,n)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=a||e.position,he(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:u}):t[n]=u,delete r[n];return t}function ya(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):he(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function we(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;rr(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(dt(n))for(ya(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&si(e,"deficient indentation"),i}function gi(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ke(r)))}function ga(e,t){t===1?e.result+=" ":t>1&&(e.result+=Fe.repeat(`
|
50
|
+
`,t-1))}function eb(e,t,r){var i,n,u,s,o,a,c,p,l=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),Ke(d)||kr(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),Ke(n)||r&&kr(n)))return!1;for(e.kind="scalar",e.result="",u=s=e.position,o=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),Ke(n)||r&&kr(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),Ke(i))break}else{if(e.position===e.lineStart&&gi(e)||r&&kr(d))break;if(dt(d))if(a=e.line,c=e.lineStart,p=e.lineIndent,we(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=a,e.lineStart=c,e.lineIndent=p;break}}o&&(It(e,u,s,!1),ga(e,e.line-a),u=s=e.position,o=!1),rr(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return It(e,u,s,!1),e.result?!0:(e.kind=l,e.result=f,!1)}function tb(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(It(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else dt(r)?(It(e,i,n,!0),ga(e,we(e,!1,t)),i=n=e.position):e.position===e.lineStart&&gi(e)?he(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);he(e,"unexpected end of the stream within a single quoted scalar")}function rb(e,t){var r,i,n,u,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return It(e,r,e.position,!0),e.position++,!0;if(o===92){if(It(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),dt(o))we(e,!1,t);else if(o<256&&ed[o])e.result+=td[o],e.position++;else if((s=X1(o))>0){for(n=s,u=0;n>0;n--)o=e.input.charCodeAt(++e.position),(s=Q1(o))>=0?u=(u<<4)+s:he(e,"expected hexadecimal character");e.result+=Z1(u),e.position++}else he(e,"unknown escape sequence");r=i=e.position}else dt(o)?(It(e,r,i,!0),ga(e,we(e,!1,t)),r=i=e.position):e.position===e.lineStart&&gi(e)?he(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}he(e,"unexpected end of the stream within a double quoted scalar")}function nb(e,t){var r=!0,i,n,u,s=e.tag,o,a=e.anchor,c,p,l,f,d,m=Object.create(null),g,_,E,h;if(h=e.input.charCodeAt(e.position),h===91)p=93,d=!1,o=[];else if(h===123)p=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),h=e.input.charCodeAt(++e.position);h!==0;){if(we(e,!0,t),h=e.input.charCodeAt(e.position),h===p)return e.position++,e.tag=s,e.anchor=a,e.kind=d?"mapping":"sequence",e.result=o,!0;r?h===44&&he(e,"expected the node content, but found ','"):he(e,"missed comma between flow collection entries"),_=g=E=null,l=f=!1,h===63&&(c=e.input.charCodeAt(e.position+1),Ke(c)&&(l=f=!0,e.position++,we(e,!0,t))),i=e.line,n=e.lineStart,u=e.position,Or(e,t,ii,!1,!0),_=e.tag,g=e.result,we(e,!0,t),h=e.input.charCodeAt(e.position),(f||e.line===i)&&h===58&&(l=!0,h=e.input.charCodeAt(++e.position),we(e,!0,t),Or(e,t,ii,!1,!0),E=e.result),d?Fr(e,o,m,_,g,E,i,n,u):l?o.push(Fr(e,null,m,_,g,E,i,n,u)):o.push(g),we(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}he(e,"unexpected end of the stream within a flow collection")}function ib(e,t){var r,i,n=Zs,u=!1,s=!1,o=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)i=!1;else if(l===62)i=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)Zs===n?n=l===43?hf:W1:he(e,"repeat of a chomping mode identifier");else if((p=J1(l))>=0)p===0?he(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?he(e,"repeat of an indentation width identifier"):(o=t+p-1,s=!0);else break;if(rr(l)){do l=e.input.charCodeAt(++e.position);while(rr(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!dt(l)&&l!==0)}for(;l!==0;){for(ya(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),dt(l)){a++;continue}if(e.lineIndent<o){n===hf?e.result+=Fe.repeat(`
|
51
|
+
`,u?1+a:a):n===Zs&&u&&(e.result+=`
|
52
|
+
`);break}for(i?rr(l)?(c=!0,e.result+=Fe.repeat(`
|
53
|
+
`,u?1+a:a)):c?(c=!1,e.result+=Fe.repeat(`
|
54
|
+
`,a+1)):a===0?u&&(e.result+=" "):e.result+=Fe.repeat(`
|
55
|
+
`,a):e.result+=Fe.repeat(`
|
56
|
+
`,u?1+a:a),u=!0,s=!0,a=0,r=e.position;!dt(l)&&l!==0;)l=e.input.charCodeAt(++e.position);It(e,r,e.position,!1)}return!0}function _f(e,t){var r,i=e.tag,n=e.anchor,u=[],s,o=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,he(e,"tab characters must not be used in indentation")),!(a!==45||(s=e.input.charCodeAt(e.position+1),!Ke(s))));){if(o=!0,e.position++,we(e,!0,-1)&&e.lineIndent<=t){u.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,Or(e,t,Jf,!1,!0),u.push(e.result),we(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)he(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=u,!0):!1}function ob(e,t,r){var i,n,u,s,o,a,c=e.tag,p=e.anchor,l={},f=Object.create(null),d=null,m=null,g=null,_=!1,E=!1,h;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),h=e.input.charCodeAt(e.position);h!==0;){if(!_&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,he(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),u=e.line,(h===63||h===58)&&Ke(i))h===63?(_&&(Fr(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!0,n=!0):_?(_=!1,n=!0):he(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,h=i;else{if(s=e.line,o=e.lineStart,a=e.position,!Or(e,r,Xf,!1,!0))break;if(e.line===u){for(h=e.input.charCodeAt(e.position);rr(h);)h=e.input.charCodeAt(++e.position);if(h===58)h=e.input.charCodeAt(++e.position),Ke(h)||he(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(Fr(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!1,n=!1,d=e.tag,m=e.result;else if(E)he(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=p,!0}else if(E)he(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=p,!0}if((e.line===u||e.lineIndent>t)&&(_&&(s=e.line,o=e.lineStart,a=e.position),Or(e,t,oi,!0,n)&&(_?m=e.result:g=e.result),_||(Fr(e,l,f,d,m,g,s,o,a),d=m=g=null),we(e,!0,-1),h=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>t)&&h!==0)he(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return _&&Fr(e,l,f,d,m,null,s,o,a),E&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=l),E}function sb(e){var t,r=!1,i=!1,n,u,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&he(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,n="!!",s=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(u=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):he(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ke(s);)s===33&&(i?he(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Zf.test(n)||he(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(t,e.position),V1.test(u)&&he(e,"tag suffix cannot contain flow indicator characters")}u&&!zf.test(u)&&he(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{he(e,"tag name is malformed: "+u)}return r?e.tag=u:Nt.call(e.tagMap,n)?e.tag=e.tagMap[n]+u:n==="!"?e.tag="!"+u:n==="!!"?e.tag="tag:yaml.org,2002:"+u:he(e,'undeclared tag handle "'+n+'"'),!0}function ab(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&he(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ke(r)&&!kr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&he(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ub(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Ke(i)&&!kr(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&he(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Nt.call(e.anchorMap,r)||he(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],we(e,!0,-1),!0}function Or(e,t,r,i,n){var u,s,o,a=1,c=!1,p=!1,l,f,d,m,g,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=s=o=oi===r||Jf===r,i&&we(e,!0,-1)&&(c=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;sb(e)||ab(e);)we(e,!0,-1)?(c=!0,o=u,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):o=!1;if(o&&(o=c||n),(a===1||oi===r)&&(ii===r||Xf===r?g=t:g=t+1,_=e.position-e.lineStart,a===1?o&&(_f(e,_)||ob(e,_,g))||nb(e,g)?p=!0:(s&&ib(e,g)||tb(e,g)||rb(e,g)?p=!0:ub(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&he(e,"alias node should not have any properties")):eb(e,g,ii===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(p=o&&_f(e,_))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&he(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,f=e.implicitTypes.length;l<f;l+=1)if(m=e.implicitTypes[l],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Nt.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,f=d.length;l<f;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){m=d[l];break}m||he(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&he(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):he(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function cb(e){var t=e.position,r,i,n,u=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(we(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(u=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Ke(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&he(e,"directive name must not be less than one character in length");s!==0;){for(;rr(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!dt(s));break}if(dt(s))break;for(r=e.position;s!==0&&!Ke(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}s!==0&&ya(e),Nt.call(gf,i)?gf[i](e,i,n):si(e,'unknown document directive "'+i+'"')}if(we(e,!0,-1),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,we(e,!0,-1)):u&&he(e,"directives end mark is expected"),Or(e,e.lineIndent-1,oi,!1,!0),we(e,!0,-1),e.checkLineBreaks&&Y1.test(e.input.slice(t,e.position))&&si(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&gi(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,we(e,!0,-1));return}if(e.position<e.length-1)he(e,"end of the stream or a document separator is expected");else return}function nd(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
57
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new z1(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,he(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)cb(r);return r.documents}function lb(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=nd(e,r);if(typeof t!="function")return i;for(var n=0,u=i.length;n<u;n+=1)t(i[n])}function pb(e,t){var r=nd(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new We("expected a single document in the stream, but found more")}}var fb=lb,db=pb,id={loadAll:fb,load:db},od=Object.prototype.toString,sd=Object.prototype.hasOwnProperty,va=65279,hb=9,rn=10,mb=13,yb=32,gb=33,vb=34,na=35,_b=37,Eb=38,Sb=39,Ab=42,ad=44,bb=45,ai=58,Db=61,xb=62,wb=63,Cb=64,ud=91,cd=93,kb=96,ld=123,Fb=124,pd=125,Me={};Me[0]="\\0";Me[7]="\\a";Me[8]="\\b";Me[9]="\\t";Me[10]="\\n";Me[11]="\\v";Me[12]="\\f";Me[13]="\\r";Me[27]="\\e";Me[34]='\\"';Me[92]="\\\\";Me[133]="\\N";Me[160]="\\_";Me[8232]="\\L";Me[8233]="\\P";var Rb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ob=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Tb(e,t){var r,i,n,u,s,o,a;if(t===null)return{};for(r={},i=Object.keys(t),n=0,u=i.length;n<u;n+=1)s=i[n],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),a=e.compiledTypeMap.fallback[s],a&&sd.call(a.styleAliases,o)&&(o=a.styleAliases[o]),r[s]=o;return r}function Pb(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new We("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Fe.repeat("0",i-t.length)+t}var Lb=1,nn=2;function Ib(e){this.schema=e.schema||Qf,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Fe.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Tb(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?nn:Lb,this.forceQuotes=e.forceQuotes||!1,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 Ef(e,t){for(var r=Fe.repeat(" ",t),i=0,n=-1,u="",s,o=e.length;i<o;)n=e.indexOf(`
|
58
|
+
`,i),n===-1?(s=e.slice(i),i=o):(s=e.slice(i,n+1),i=n+1),s.length&&s!==`
|
59
|
+
`&&(u+=r),u+=s;return u}function ia(e,t){return`
|
60
|
+
`+Fe.repeat(" ",e.indent*t)}function Nb(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}function ui(e){return e===yb||e===hb}function on(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==va||65536<=e&&e<=1114111}function Sf(e){return on(e)&&e!==va&&e!==mb&&e!==rn}function Af(e,t,r){var i=Sf(e),n=i&&!ui(e);return(r?i:i&&e!==ad&&e!==ud&&e!==cd&&e!==ld&&e!==pd)&&e!==na&&!(t===ai&&!n)||Sf(t)&&!ui(t)&&e===na||t===ai&&n}function Bb(e){return on(e)&&e!==va&&!ui(e)&&e!==bb&&e!==wb&&e!==ai&&e!==ad&&e!==ud&&e!==cd&&e!==ld&&e!==pd&&e!==na&&e!==Eb&&e!==Ab&&e!==gb&&e!==Fb&&e!==Db&&e!==xb&&e!==Sb&&e!==vb&&e!==_b&&e!==Cb&&e!==kb}function Mb(e){return!ui(e)&&e!==ai}function zr(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function fd(e){var t=/^\n* /;return t.test(e)}var dd=1,oa=2,hd=3,md=4,Cr=5;function jb(e,t,r,i,n,u,s,o){var a,c=0,p=null,l=!1,f=!1,d=i!==-1,m=-1,g=Bb(zr(e,0))&&Mb(zr(e,e.length-1));if(t||s)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=zr(e,a),!on(c))return Cr;g=g&&Af(c,p,o),p=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=zr(e,a),c===rn)l=!0,d&&(f=f||a-m-1>i&&e[m+1]!==" ",m=a);else if(!on(c))return Cr;g=g&&Af(c,p,o),p=c}f=f||d&&a-m-1>i&&e[m+1]!==" "}return!l&&!f?g&&!s&&!n(e)?dd:u===nn?Cr:oa:r>9&&fd(e)?Cr:s?u===nn?Cr:oa:f?md:hd}function $b(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===nn?'""':"''";if(!e.noCompatMode&&(Rb.indexOf(t)!==-1||Ob.test(t)))return e.quotingType===nn?'"'+t+'"':"'"+t+"'";var u=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),o=i||e.flowLevel>-1&&r>=e.flowLevel;function a(c){return Nb(e,c)}switch(jb(t,o,e.indent,s,a,e.quotingType,e.forceQuotes&&!i,n)){case dd:return t;case oa:return"'"+t.replace(/'/g,"''")+"'";case hd:return"|"+bf(t,e.indent)+Df(Ef(t,u));case md:return">"+bf(t,e.indent)+Df(Ef(Hb(t,s),u));case Cr:return'"'+Gb(t)+'"';default:throw new We("impossible error: invalid scalar style")}}()}function bf(e,t){var r=fd(e)?String(t):"",i=e[e.length-1]===`
|
61
|
+
`,n=i&&(e[e.length-2]===`
|
62
|
+
`||e===`
|
63
|
+
`),u=n?"+":i?"":"-";return r+u+`
|
64
|
+
`}function Df(e){return e[e.length-1]===`
|
65
|
+
`?e.slice(0,-1):e}function Hb(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
|
66
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,xf(e.slice(0,c),t)}(),n=e[0]===`
|
67
|
+
`||e[0]===" ",u,s;s=r.exec(e);){var o=s[1],a=s[2];u=a[0]===" ",i+=o+(!n&&!u&&a!==""?`
|
68
|
+
`:"")+xf(a,t),n=u}return i}function xf(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,u,s=0,o=0,a="";i=r.exec(e);)o=i.index,o-n>t&&(u=s>n?s:o,a+=`
|
69
|
+
`+e.slice(n,u),n=u+1),s=o;return a+=`
|
70
|
+
`,e.length-n>t&&s>n?a+=e.slice(n,s)+`
|
71
|
+
`+e.slice(s+1):a+=e.slice(n),a.slice(1)}function Gb(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=zr(e,n),i=Me[r],!i&&on(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||Pb(r);return t}function qb(e,t,r){var i="",n=e.tag,u,s,o;for(u=0,s=r.length;u<s;u+=1)o=r[u],e.replacer&&(o=e.replacer.call(r,String(u),o)),(At(e,t,o,!1,!1)||typeof o>"u"&&At(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}function wf(e,t,r,i){var n="",u=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(At(e,t+1,a,!0,!0,!1,!0)||typeof a>"u"&&At(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=ia(e,t)),e.dump&&rn===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=u,e.dump=n||"[]"}function Ub(e,t,r){var i="",n=e.tag,u=Object.keys(r),s,o,a,c,p;for(s=0,o=u.length;s<o;s+=1)p="",i!==""&&(p+=", "),e.condenseFlow&&(p+='"'),a=u[s],c=r[a],e.replacer&&(c=e.replacer.call(r,a,c)),At(e,t,a,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),At(e,t,c,!1,!1)&&(p+=e.dump,i+=p));e.tag=n,e.dump="{"+i+"}"}function Wb(e,t,r,i){var n="",u=e.tag,s=Object.keys(r),o,a,c,p,l,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new We("sortKeys must be a boolean or a function");for(o=0,a=s.length;o<a;o+=1)f="",(!i||n!=="")&&(f+=ia(e,t)),c=s[o],p=r[c],e.replacer&&(p=e.replacer.call(r,c,p)),At(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&rn===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,l&&(f+=ia(e,t)),At(e,t+1,p,!0,l)&&(e.dump&&rn===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=u,e.dump=n||"{}"}function Cf(e,t,r){var i,n,u,s,o,a;for(n=r?e.explicitTypes:e.implicitTypes,u=0,s=n.length;u<s;u+=1)if(o=n[u],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(a=e.styleMap[o.tag]||o.defaultStyle,od.call(o.represent)==="[object Function]")i=o.represent(t,a);else if(sd.call(o.represent,a))i=o.represent[a](t,a);else throw new We("!<"+o.tag+'> tag resolver accepts not "'+a+'" style');e.dump=i}return!0}return!1}function At(e,t,r,i,n,u,s){e.tag=null,e.dump=r,Cf(e,r,!1)||Cf(e,r,!0);var o=od.call(e.dump),a=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=e.duplicates.indexOf(r),f=l!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&f&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(Wb(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(Ub(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?wf(e,t-1,e.dump,n):wf(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(qb(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&$b(e,e.dump,t,u,a);else{if(o==="[object Undefined]"||e.skipInvalid)return!1;throw new We("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Kb(e,t){var r=[],i=[],n,u;for(sa(e,r,i),n=0,u=i.length;n<u;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(u)}function sa(e,t,r){var i,n,u;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,u=e.length;n<u;n+=1)sa(e[n],t,r);else for(i=Object.keys(e),n=0,u=i.length;n<u;n+=1)sa(e[i[n]],t,r)}function Yb(e,t){t=t||{};var r=new Ib(t);r.noRefs||Kb(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),At(r,0,i,!0,!0)?r.dump+`
|
72
|
+
`:""}var Vb=Yb,Qb={dump:Vb};function _a(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.")}}var ST=id.load,AT=id.loadAll,bT=Qb.dump,DT=_a("safeLoad","load"),xT=_a("safeLoadAll","loadAll"),wT=_a("safeDump","dump"),CT=an(CA()),Xb=Ce(require("os"),1),Jb=W((e,t)=>{G(),t.exports=u,u.sync=s;var r=ue("fs");function i(o,a){var c=a.pathExt!==void 0?a.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var p=0;p<c.length;p++){var l=c[p].toLowerCase();if(l&&o.substr(-l.length).toLowerCase()===l)return!0}return!1}function n(o,a,c){return!o.isSymbolicLink()&&!o.isFile()?!1:i(a,c)}function u(o,a,c){r.stat(o,function(p,l){c(p,p?!1:n(l,o,a))})}function s(o,a){return n(r.statSync(o),o,a)}}),Zb=W((e,t)=>{G(),t.exports=i,i.sync=n;var r=ue("fs");function i(o,a,c){r.stat(o,function(p,l){c(p,p?!1:u(l,a))})}function n(o,a){return u(r.statSync(o),a)}function u(o,a){return o.isFile()&&s(o,a)}function s(o,a){var c=o.mode,p=o.uid,l=o.gid,f=a.uid!==void 0?a.uid:process.getuid&&process.getuid(),d=a.gid!==void 0?a.gid:process.getgid&&process.getgid(),m=parseInt("100",8),g=parseInt("010",8),_=parseInt("001",8),E=m|g,h=c&_||c&g&&l===d||c&m&&p===f||c&E&&f===0;return h}}),zb=W((e,t)=>{G();var r=ue("fs"),i;process.platform==="win32"||global.TESTING_WINDOWS?i=Jb():i=Zb(),t.exports=n,n.sync=u;function n(s,o,a){if(typeof o=="function"&&(a=o,o={}),!a){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(c,p){n(s,o||{},function(l,f){l?p(l):c(f)})})}i(s,o||{},function(c,p){c&&(c.code==="EACCES"||o&&o.ignoreErrors)&&(c=null,p=!1),a(c,p)})}function u(s,o){try{return i.sync(s,o||{})}catch(a){if(o&&o.ignoreErrors||a.code==="EACCES")return!1;throw a}}}),eD=W((e,t)=>{G();var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=ue("path"),n=r?";":":",u=zb(),s=p=>Object.assign(new Error(`not found: ${p}`),{code:"ENOENT"}),o=(p,l)=>{let f=l.colon||n,d=p.match(/\//)||r&&p.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(f)],m=r?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=r?m.split(f):[""];return r&&p.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:d,pathExt:g,pathExtExe:m}},a=(p,l,f)=>{typeof l=="function"&&(f=l,l={}),l||(l={});let{pathEnv:d,pathExt:m,pathExtExe:g}=o(p,l),_=[],E=v=>new Promise((x,y)=>{if(v===d.length)return l.all&&_.length?x(_):y(s(p));let A=d[v],b=/^".*"$/.test(A)?A.slice(1,-1):A,k=i.join(b,p),D=!b&&/^\.[\\\/]/.test(p)?p.slice(0,2)+k:k;x(h(D,v,0))}),h=(v,x,y)=>new Promise((A,b)=>{if(y===m.length)return A(E(x+1));let k=m[y];u(v+k,{pathExt:g},(D,F)=>{if(!D&&F)if(l.all)_.push(v+k);else return A(v+k);return A(h(v,x,y+1))})});return f?E(0).then(v=>f(null,v),f):E(0)},c=(p,l)=>{l=l||{};let{pathEnv:f,pathExt:d,pathExtExe:m}=o(p,l),g=[];for(let _=0;_<f.length;_++){let E=f[_],h=/^".*"$/.test(E)?E.slice(1,-1):E,v=i.join(h,p),x=!h&&/^\.[\\\/]/.test(p)?p.slice(0,2)+v:v;for(let y=0;y<d.length;y++){let A=x+d[y];try{if(u.sync(A,{pathExt:m}))if(l.all)g.push(A);else return A}catch{}}}if(l.all&&g.length)return g;if(l.nothrow)return null;throw s(p)};t.exports=a,a.sync=c}),yd=W((e,t)=>{"use strict";G();var r=(i={})=>{let n=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(n).reverse().find(u=>u.toUpperCase()==="PATH")||"Path"};t.exports=r,t.exports.default=r}),tD=W((e,t)=>{"use strict";G();var r=ue("path"),i=eD(),n=yd();function u(o,a){let c=o.options.env||process.env,p=process.cwd(),l=o.options.cwd!=null,f=l&&process.chdir!==void 0&&!process.chdir.disabled;if(f)try{process.chdir(o.options.cwd)}catch{}let d;try{d=i.sync(o.command,{path:c[n({env:c})],pathExt:a?r.delimiter:void 0})}catch{}finally{f&&process.chdir(p)}return d&&(d=r.resolve(l?o.options.cwd:"",d)),d}function s(o){return u(o)||u(o,!0)}t.exports=s}),rD=W((e,t)=>{"use strict";G();var r=/([()\][%!^"`<>&|;, *?])/g;function i(u){return u=u.replace(r,"^$1"),u}function n(u,s){return u=`${u}`,u=u.replace(/(\\*)"/g,'$1$1\\"'),u=u.replace(/(\\*)$/,"$1$1"),u=`"${u}"`,u=u.replace(r,"^$1"),s&&(u=u.replace(r,"^$1")),u}t.exports.command=i,t.exports.argument=n}),nD=W((e,t)=>{"use strict";G(),t.exports=/^#!(.*)/}),iD=W((e,t)=>{"use strict";G();var r=nD();t.exports=(i="")=>{let n=i.match(r);if(!n)return null;let[u,s]=n[0].replace(/#! ?/,"").split(" "),o=u.split("/").pop();return o==="env"?s:s?`${o} ${s}`:o}}),oD=W((e,t)=>{"use strict";G();var r=ue("fs"),i=iD();function n(u){let s=Buffer.alloc(150),o;try{o=r.openSync(u,"r"),r.readSync(o,s,0,150,0),r.closeSync(o)}catch{}return i(s.toString())}t.exports=n}),sD=W((e,t)=>{"use strict";G();var r=ue("path"),i=tD(),n=rD(),u=oD(),s=process.platform==="win32",o=/\.(?:com|exe)$/i,a=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(f){f.file=i(f);let d=f.file&&u(f.file);return d?(f.args.unshift(f.file),f.command=d,i(f)):f.file}function p(f){if(!s)return f;let d=c(f),m=!o.test(d);if(f.options.forceShell||m){let g=a.test(d);f.command=r.normalize(f.command),f.command=n.command(f.command),f.args=f.args.map(E=>n.argument(E,g));let _=[f.command].concat(f.args).join(" ");f.args=["/d","/s","/c",`"${_}"`],f.command=process.env.comspec||"cmd.exe",f.options.windowsVerbatimArguments=!0}return f}function l(f,d,m){d&&!Array.isArray(d)&&(m=d,d=null),d=d?d.slice(0):[],m=Object.assign({},m);let g={command:f,args:d,options:m,file:void 0,original:{command:f,args:d}};return m.shell?g:p(g)}t.exports=l}),aD=W((e,t)=>{"use strict";G();var r=process.platform==="win32";function i(o,a){return Object.assign(new Error(`${a} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${a} ${o.command}`,path:o.command,spawnargs:o.args})}function n(o,a){if(!r)return;let c=o.emit;o.emit=function(p,l){if(p==="exit"){let f=u(l,a,"spawn");if(f)return c.call(o,"error",f)}return c.apply(o,arguments)}}function u(o,a){return r&&o===1&&!a.file?i(a.original,"spawn"):null}function s(o,a){return r&&o===1&&!a.file?i(a.original,"spawnSync"):null}t.exports={hookChildProcess:n,verifyENOENT:u,verifyENOENTSync:s,notFoundError:i}}),uD=W((e,t)=>{"use strict";G();var r=ue("child_process"),i=sD(),n=aD();function u(o,a,c){let p=i(o,a,c),l=r.spawn(p.command,p.args,p.options);return n.hookChildProcess(l,p),l}function s(o,a,c){let p=i(o,a,c),l=r.spawnSync(p.command,p.args,p.options);return l.error=l.error||n.verifyENOENTSync(l.status,p),l}t.exports=u,t.exports.spawn=u,t.exports.sync=s,t.exports._parse=i,t.exports._enoent=n}),cD=W((e,t)=>{"use strict";G(),t.exports=r=>{let i=typeof r=="string"?`
|
73
|
+
`:`
|
74
|
+
`.charCodeAt(),n=typeof r=="string"?"\r":"\r".charCodeAt();return r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r[r.length-1]===n&&(r=r.slice(0,r.length-1)),r}}),lD=W((e,t)=>{"use strict";G();var r=ue("path"),i=yd(),n=u=>{u={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...u};let s,o=r.resolve(u.cwd),a=[];for(;s!==o;)a.push(r.join(o,"node_modules/.bin")),s=o,o=r.resolve(o,"..");let c=r.resolve(u.cwd,u.execPath,"..");return a.push(c),a.concat(u.path).join(r.delimiter)};t.exports=n,t.exports.default=n,t.exports.env=u=>{u={env:process.env,...u};let s={...u.env},o=i({env:s});return u.path=s[o],s[o]=t.exports(u),s}}),pD=W((e,t)=>{"use strict";G();var r=(i,n)=>{for(let u of Reflect.ownKeys(n))Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(n,u));return i};t.exports=r,t.exports.default=r}),fD=W((e,t)=>{"use strict";G();var r=pD(),i=new WeakMap,n=(u,s={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let o,a=0,c=u.displayName||u.name||"<anonymous>",p=function(...l){if(i.set(p,++a),a===1)o=u.apply(this,l),u=null;else if(s.throw===!0)throw new Error(`Function \`${c}\` can only be called once`);return o};return r(p,u),i.set(p,a),p};t.exports=n,t.exports.default=n,t.exports.callCount=u=>{if(!i.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return i.get(u)}}),dD=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var t=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];e.SIGNALS=t}),gd=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var t=function(){let u=n-i+1;return Array.from({length:u},r)};e.getRealtimeSignals=t;var r=function(u,s){return{name:`SIGRT${s+1}`,number:i+s,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},i=34,n=64;e.SIGRTMAX=n}),hD=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var t=ue("os"),r=dD(),i=gd(),n=function(){let s=(0,i.getRealtimeSignals)();return[...r.SIGNALS,...s].map(u)};e.getSignals=n;var u=function({name:s,number:o,description:a,action:c,forced:p=!1,standard:l}){let{signals:{[s]:f}}=t.constants,d=f!==void 0;return{name:s,number:d?f:o,description:a,supported:d,action:c,forced:p,standard:l}}}),mD=W(e=>{"use strict";G(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var t=ue("os"),r=hD(),i=gd(),n=function(){return(0,r.getSignals)().reduce(u,{})},u=function(l,{name:f,number:d,description:m,supported:g,action:_,forced:E,standard:h}){return{...l,[f]:{name:f,number:d,description:m,supported:g,action:_,forced:E,standard:h}}},s=n();e.signalsByName=s;var o=function(){let l=(0,r.getSignals)(),f=i.SIGRTMAX+1,d=Array.from({length:f},(m,g)=>a(g,l));return Object.assign({},...d)},a=function(l,f){let d=c(l,f);if(d===void 0)return{};let{name:m,description:g,supported:_,action:E,forced:h,standard:v}=d;return{[l]:{name:m,number:l,description:g,supported:_,action:E,forced:h,standard:v}}},c=function(l,f){let d=f.find(({name:m})=>t.constants.signals[m]===l);return d!==void 0?d:f.find(m=>m.number===l)},p=o();e.signalsByNumber=p}),yD=W((e,t)=>{"use strict";G();var{signalsByName:r}=mD(),i=({timedOut:u,timeout:s,errorCode:o,signal:a,signalDescription:c,exitCode:p,isCanceled:l})=>u?`timed out after ${s} milliseconds`:l?"was canceled":o!==void 0?`failed with ${o}`:a!==void 0?`was killed with ${a} (${c})`:p!==void 0?`failed with exit code ${p}`:"failed",n=({stdout:u,stderr:s,all:o,error:a,signal:c,exitCode:p,command:l,escapedCommand:f,timedOut:d,isCanceled:m,killed:g,parsed:{options:{timeout:_}}})=>{p=p===null?void 0:p,c=c===null?void 0:c;let E=c===void 0?void 0:r[c].description,h=a&&a.code,v=`Command ${i({timedOut:d,timeout:_,errorCode:h,signal:c,signalDescription:E,exitCode:p,isCanceled:m})}: ${l}`,x=Object.prototype.toString.call(a)==="[object Error]",y=x?`${v}
|
75
|
+
${a.message}`:v,A=[y,s,u].filter(Boolean).join(`
|
76
|
+
`);return x?(a.originalMessage=a.message,a.message=A):a=new Error(A),a.shortMessage=y,a.command=l,a.escapedCommand=f,a.exitCode=p,a.signal=c,a.signalDescription=E,a.stdout=u,a.stderr=s,o!==void 0&&(a.all=o),"bufferedData"in a&&delete a.bufferedData,a.failed=!0,a.timedOut=Boolean(d),a.isCanceled=m,a.killed=g&&!d,a};t.exports=n}),gD=W((e,t)=>{"use strict";G();var r=["stdin","stdout","stderr"],i=u=>r.some(s=>u[s]!==void 0),n=u=>{if(!u)return;let{stdio:s}=u;if(s===void 0)return r.map(a=>u[a]);if(i(u))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(a=>`\`${a}\``).join(", ")}`);if(typeof s=="string")return s;if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let o=Math.max(s.length,r.length);return Array.from({length:o},(a,c)=>s[c])};t.exports=n,t.exports.node=u=>{let s=n(u);return s==="ipc"?"ipc":s===void 0||typeof s=="string"?[s,s,s,"ipc"]:s.includes("ipc")?s:[...s,"ipc"]}}),vD=W((e,t)=>{G(),t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),_D=W((e,t)=>{G();var r=global.process,i=function(h){return h&&typeof h=="object"&&typeof h.removeListener=="function"&&typeof h.emit=="function"&&typeof h.reallyExit=="function"&&typeof h.listeners=="function"&&typeof h.kill=="function"&&typeof h.pid=="number"&&typeof h.on=="function"};i(r)?(n=ue("assert"),u=vD(),s=/^win/i.test(r.platform),o=ue("events"),typeof o!="function"&&(o=o.EventEmitter),r.__signal_exit_emitter__?a=r.__signal_exit_emitter__:(a=r.__signal_exit_emitter__=new o,a.count=0,a.emitted={}),a.infinite||(a.setMaxListeners(1/0),a.infinite=!0),t.exports=function(h,v){if(!i(global.process))return function(){};n.equal(typeof h,"function","a callback must be provided for exit handler"),f===!1&&d();var x="exit";v&&v.alwaysLast&&(x="afterexit");var y=function(){a.removeListener(x,h),a.listeners("exit").length===0&&a.listeners("afterexit").length===0&&c()};return a.on(x,h),y},c=function(){!f||!i(global.process)||(f=!1,u.forEach(function(h){try{r.removeListener(h,l[h])}catch{}}),r.emit=_,r.reallyExit=m,a.count-=1)},t.exports.unload=c,p=function(h,v,x){a.emitted[h]||(a.emitted[h]=!0,a.emit(h,v,x))},l={},u.forEach(function(h){l[h]=function(){if(i(global.process)){var v=r.listeners(h);v.length===a.count&&(c(),p("exit",null,h),p("afterexit",null,h),s&&h==="SIGHUP"&&(h="SIGINT"),r.kill(r.pid,h))}}}),t.exports.signals=function(){return u},f=!1,d=function(){f||!i(global.process)||(f=!0,a.count+=1,u=u.filter(function(h){try{return r.on(h,l[h]),!0}catch{return!1}}),r.emit=E,r.reallyExit=g)},t.exports.load=d,m=r.reallyExit,g=function(h){!i(global.process)||(r.exitCode=h||0,p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),m.call(r,r.exitCode))},_=r.emit,E=function(h,v){if(h==="exit"&&i(global.process)){v!==void 0&&(r.exitCode=v);var x=_.apply(this,arguments);return p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),x}else return _.apply(this,arguments)}):t.exports=function(){return function(){}};var n,u,s,o,a,c,p,l,f,d,m,g,_,E}),ED=W((e,t)=>{"use strict";G();var r=ue("os"),i=_D(),n=1e3*5,u=(g,_="SIGTERM",E={})=>{let h=g(_);return s(g,_,E,h),h},s=(g,_,E,h)=>{if(!o(_,E,h))return;let v=c(E),x=setTimeout(()=>{g("SIGKILL")},v);x.unref&&x.unref()},o=(g,{forceKillAfterTimeout:_},E)=>a(g)&&_!==!1&&E,a=g=>g===r.constants.signals.SIGTERM||typeof g=="string"&&g.toUpperCase()==="SIGTERM",c=({forceKillAfterTimeout:g=!0})=>{if(g===!0)return n;if(!Number.isFinite(g)||g<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`);return g},p=(g,_)=>{g.kill()&&(_.isCanceled=!0)},l=(g,_,E)=>{g.kill(_),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:_}))},f=(g,{timeout:_,killSignal:E="SIGTERM"},h)=>{if(_===0||_===void 0)return h;let v,x=new Promise((A,b)=>{v=setTimeout(()=>{l(g,E,b)},_)}),y=h.finally(()=>{clearTimeout(v)});return Promise.race([x,y])},d=({timeout:g})=>{if(g!==void 0&&(!Number.isFinite(g)||g<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`)},m=async(g,{cleanup:_,detached:E},h)=>{if(!_||E)return h;let v=i(()=>{g.kill()});return h.finally(()=>{v()})};t.exports={spawnedKill:u,spawnedCancel:p,setupTimeout:f,validateTimeout:d,setExitHandler:m}}),SD=W((e,t)=>{"use strict";G();var r=i=>i!==null&&typeof i=="object"&&typeof i.pipe=="function";r.writable=i=>r(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object",r.readable=i=>r(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object",r.duplex=i=>r.writable(i)&&r.readable(i),r.transform=i=>r.duplex(i)&&typeof i._transform=="function",t.exports=r}),AD=W((e,t)=>{"use strict";G();var{PassThrough:r}=ue("stream");t.exports=i=>{i={...i};let{array:n}=i,{encoding:u}=i,s=u==="buffer",o=!1;n?o=!(u||s):u=u||"utf8",s&&(u=null);let a=new r({objectMode:o});u&&a.setEncoding(u);let c=0,p=[];return a.on("data",l=>{p.push(l),o?c=p.length:c+=l.length}),a.getBufferedValue=()=>n?p:s?Buffer.concat(p,c):p.join(""),a.getBufferedLength=()=>c,a}}),bD=W((e,t)=>{"use strict";G();var{constants:r}=ue("buffer"),i=ue("stream"),{promisify:n}=ue("util"),u=AD(),s=n(i.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(c,p){if(!c)throw new Error("Expected a stream");p={maxBuffer:1/0,...p};let{maxBuffer:l}=p,f=u(p);return await new Promise((d,m)=>{let g=_=>{_&&f.getBufferedLength()<=r.MAX_LENGTH&&(_.bufferedData=f.getBufferedValue()),m(_)};(async()=>{try{await s(c,f),d()}catch(_){g(_)}})(),f.on("data",()=>{f.getBufferedLength()>l&&g(new o)})}),f.getBufferedValue()}t.exports=a,t.exports.buffer=(c,p)=>a(c,{...p,encoding:"buffer"}),t.exports.array=(c,p)=>a(c,{...p,array:!0}),t.exports.MaxBufferError=o}),DD=W((e,t)=>{"use strict";G();var{PassThrough:r}=ue("stream");t.exports=function(){var i=[],n=new r({objectMode:!0});return n.setMaxListeners(0),n.add=u,n.isEmpty=s,n.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(u),n;function u(a){return Array.isArray(a)?(a.forEach(u),this):(i.push(a),a.once("end",o.bind(null,a)),a.once("error",n.emit.bind(n,"error")),a.pipe(n,{end:!1}),this)}function s(){return i.length==0}function o(a){i=i.filter(function(c){return c!==a}),!i.length&&n.readable&&n.end()}}}),xD=W((e,t)=>{"use strict";G();var r=SD(),i=bD(),n=DD(),u=(l,f)=>{f===void 0||l.stdin===void 0||(r(f)?f.pipe(l.stdin):l.stdin.end(f))},s=(l,{all:f})=>{if(!f||!l.stdout&&!l.stderr)return;let d=n();return l.stdout&&d.add(l.stdout),l.stderr&&d.add(l.stderr),d},o=async(l,f)=>{if(l){l.destroy();try{return await f}catch(d){return d.bufferedData}}},a=(l,{encoding:f,buffer:d,maxBuffer:m})=>{if(!(!l||!d))return f?i(l,{encoding:f,maxBuffer:m}):i.buffer(l,{maxBuffer:m})},c=async({stdout:l,stderr:f,all:d},{encoding:m,buffer:g,maxBuffer:_},E)=>{let h=a(l,{encoding:m,buffer:g,maxBuffer:_}),v=a(f,{encoding:m,buffer:g,maxBuffer:_}),x=a(d,{encoding:m,buffer:g,maxBuffer:_*2});try{return await Promise.all([E,h,v,x])}catch(y){return Promise.all([{error:y,signal:y.signal,timedOut:y.timedOut},o(l,h),o(f,v),o(d,x)])}},p=({input:l})=>{if(r(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};t.exports={handleInput:u,makeAllStream:s,getSpawnedResult:c,validateInputSync:p}}),wD=W((e,t)=>{"use strict";G();var r=(async()=>{})().constructor.prototype,i=["then","catch","finally"].map(s=>[s,Reflect.getOwnPropertyDescriptor(r,s)]),n=(s,o)=>{for(let[a,c]of i){let p=typeof o=="function"?(...l)=>Reflect.apply(c.value,o(),l):c.value.bind(o);Reflect.defineProperty(s,a,{...c,value:p})}return s},u=s=>new Promise((o,a)=>{s.on("exit",(c,p)=>{o({exitCode:c,signal:p})}),s.on("error",c=>{a(c)}),s.stdin&&s.stdin.on("error",c=>{a(c)})});t.exports={mergePromise:n,getSpawnedPromise:u}}),CD=W((e,t)=>{"use strict";G();var r=(p,l=[])=>Array.isArray(l)?[p,...l]:[p],i=/^[\w.-]+$/,n=/"/g,u=p=>typeof p!="string"||i.test(p)?p:`"${p.replace(n,'\\"')}"`,s=(p,l)=>r(p,l).join(" "),o=(p,l)=>r(p,l).map(f=>u(f)).join(" "),a=/ +/g,c=p=>{let l=[];for(let f of p.trim().split(a)){let d=l[l.length-1];d&&d.endsWith("\\")?l[l.length-1]=`${d.slice(0,-1)} ${f}`:l.push(f)}return l};t.exports={joinCommand:s,getEscapedCommand:o,parseCommand:c}}),kD=W((e,t)=>{"use strict";G();var r=ue("path"),i=ue("child_process"),n=uD(),u=cD(),s=lD(),o=fD(),a=yD(),c=gD(),{spawnedKill:p,spawnedCancel:l,setupTimeout:f,validateTimeout:d,setExitHandler:m}=ED(),{handleInput:g,getSpawnedResult:_,makeAllStream:E,validateInputSync:h}=xD(),{mergePromise:v,getSpawnedPromise:x}=wD(),{joinCommand:y,parseCommand:A,getEscapedCommand:b}=CD(),k=1e3*1e3*100,D=({env:P,extendEnv:C,preferLocal:S,localDir:R,execPath:L})=>{let M=C?{...process.env,...P}:P;return S?s.env({env:M,cwd:R,execPath:L}):M},F=(P,C,S={})=>{let R=n._parse(P,C,S);return P=R.command,C=R.args,S=R.options,S={maxBuffer:k,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:S.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...S},S.env=D(S),S.stdio=c(S),process.platform==="win32"&&r.basename(P,".exe")==="cmd"&&C.unshift("/q"),{file:P,args:C,options:S,parsed:R}},w=(P,C,S)=>typeof C!="string"&&!Buffer.isBuffer(C)?S===void 0?void 0:"":P.stripFinalNewline?u(C):C,O=(P,C,S)=>{let R=F(P,C,S),L=y(P,C),M=b(P,C);d(R.options);let B;try{B=i.spawn(R.file,R.args,R.options)}catch(pe){let ne=new i.ChildProcess,T=Promise.reject(a({error:pe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1}));return v(ne,T)}let Q=x(B),Z=f(B,R.options,Q),oe=m(B,R.options,Z),N={isCanceled:!1};B.kill=p.bind(null,B.kill.bind(B)),B.cancel=l.bind(null,B,N);let le=o(async()=>{let[{error:pe,exitCode:ne,signal:T,timedOut:I},$,K,Y]=await _(B,R.options,oe),z=w(R.options,$),X=w(R.options,K),ee=w(R.options,Y);if(pe||ne!==0||T!==null){let ie=a({error:pe,exitCode:ne,signal:T,stdout:z,stderr:X,all:ee,command:L,escapedCommand:M,parsed:R,timedOut:I,isCanceled:N.isCanceled,killed:B.killed});if(!R.options.reject)return ie;throw ie}return{command:L,escapedCommand:M,exitCode:0,stdout:z,stderr:X,all:ee,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return g(B,R.options.input),B.all=E(B,R.options),v(B,le)};t.exports=O,t.exports.sync=(P,C,S)=>{let R=F(P,C,S),L=y(P,C),M=b(P,C);h(R.options);let B;try{B=i.spawnSync(R.file,R.args,R.options)}catch(oe){throw a({error:oe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1})}let Q=w(R.options,B.stdout,B.error),Z=w(R.options,B.stderr,B.error);if(B.error||B.status!==0||B.signal!==null){let oe=a({stdout:Q,stderr:Z,error:B.error,signal:B.signal,exitCode:B.status,command:L,escapedCommand:M,parsed:R,timedOut:B.error&&B.error.code==="ETIMEDOUT",isCanceled:!1,killed:B.signal!==null});if(!R.options.reject)return oe;throw oe}return{command:L,escapedCommand:M,exitCode:0,stdout:Q,stderr:Z,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},t.exports.command=(P,C)=>{let[S,...R]=A(P);return O(S,R,C)},t.exports.commandSync=(P,C)=>{let[S,...R]=A(P);return O.sync(S,R,C)},t.exports.node=(P,C,S={})=>{C&&!Array.isArray(C)&&typeof C=="object"&&(S=C,C=[]);let R=c.node(S),L=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:M=process.execPath,nodeOptions:B=L}=S;return O(M,[...B,P,...Array.isArray(C)?C:[]],{...S,stdin:void 0,stdout:void 0,stderr:void 0,stdio:R,shell:!1})}});G();var FD=an(kD());async function zs(e){let t={cwd:Xb.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"}};try{let r=await(0,FD.default)(e,["--version"],t);return{available:!0,version:r.stdout.trim()}}catch{return{available:!1}}}async function RD(){let[e,t,r]=await Promise.all([zs("yarnpkg"),zs("npm"),zs("pnpm")]);return{yarn:e,pnpm:t,npm:r}}G();var Ge=class extends Error{constructor(e,t){var r;super(e),this.name="ConvertError",this.type=(r=t==null?void 0:t.type)!=null?r:"unknown",Error.captureStackTrace(this,Ge)}},ht=Ce(require("fs-extra")),sn=Ce(require("path")),OD=Ce(require("execa")),TD=Ce(require("fs-extra")),PD=Ce(require("chalk")),LD=Ce(require("path")),ci=Ce(require("fs-extra")),nr=Ce(require("path")),ID=Ce(Jl()),ND=Ce(ff()),BD=/^(?!_)(.+)@(.+)$/;function st({workspaceRoot:e}){let t=nr.default.join(e,"package.json");try{return ci.default.readJsonSync(t,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new Ge(`no "package.json" found at ${e}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new Ge(`failed to parse "package.json" at ${e}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${e}`)}}function Ea({workspaceRoot:e}){let{packageManager:t}=st({workspaceRoot:e});if(t)try{let r=t.match(BD);if(r){let[i,n]=r;return n}}catch{}}function vi({workspaceRoot:e}){let t=st({workspaceRoot:e}),r=nr.default.basename(e),{name:i=r,description:n}=t;return{name:i,description:n}}function kf({workspaceRoot:e}){let t=nr.default.join(e,"pnpm-workspace.yaml");if(ci.default.existsSync(t))try{let r=ND.default.load(ci.default.readFileSync(t,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new Ge(`failed to parse ${t}`,{type:"pnpm-workspace_parse_error"})}return[]}function Sa({root:e,lockFile:t,workspaceConfig:r}){let i=u=>nr.default.join(e,u),n={root:e,lockfile:i(t),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function Aa({workspaceRoot:e,workspaceGlobs:t}){return t?t.flatMap(r=>{let i=`${r}/package.json`;return ID.default.sync(i,{onlyFiles:!0,absolute:!0,cwd:e})}).map(r=>{let i=nr.default.dirname(r),{name:n,description:u}=vi({workspaceRoot:i});return{name:n,description:u,paths:{root:i,packageJson:r,nodeModules:nr.default.join(i,"node_modules")}}}):[]}function MD({directory:e}){let t=nr.default.resolve(process.cwd(),e);return{exists:ci.default.existsSync(t),absolute:t}}function Lr({packageManager:e,action:t,project:r}){let i=r.workspaceData.globs.length>0;return`${t==="remove"?"Removing":"Adding"} ${e} ${i?"workspaces":""} ${t==="remove"?"from":"to"} ${r.name}`}function jD({dependencyList:e,project:t,to:r}){let i=[];return t.workspaceData.workspaces.forEach(n=>{let{name:u}=n;if(e[u]){let s=e[u],o=s.startsWith("workspace:")?s.slice(10):s;e[u]=r.name==="pnpm"?`workspace:${o}`:o,i.push(u)}}),{dependencyList:e,updated:i}}function Tr({project:e,workspace:t,to:r,logger:i,options:n}){if(["yarn","npm"].includes(r.name)&&["yarn","npm"].includes(e.packageManager))return;let u=st({workspaceRoot:t.paths.root}),s={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},o=["dependencies","devDependencies","peerDependencies","optionalDependencies"];o.forEach(l=>{let f=u[l];if(f){let{updated:d,dependencyList:m}=jD({dependencyList:f,project:e,to:r});u[l]=m,s[l]=d}});let a=l=>{let f=s[l].length;if(f>0)return`${PD.default.green(f.toString())} ${l}`},c=o.map(a).filter(Boolean),p=`./${LD.default.relative(e.paths.root,t.paths.packageJson)}`;if(c.length>=1){let l="updating";c.forEach((f,d)=>{c.length===1?l+=` ${f} in ${p}`:d===c.length-1?l+=`and ${f} in ${p}`:l+=` ${f}, `}),i.workspaceStep(l)}else i.workspaceStep(`no workspace dependencies found in ${p}`);n!=null&&n.dry||TD.default.writeJSONSync(t.paths.packageJson,u,{spaces:2})}async function vd(e){let t=sn.default.join(e.workspaceRoot,"pnpm-lock.yaml"),r=sn.default.join(e.workspaceRoot,"pnpm-workspace.yaml"),i=Ea({workspaceRoot:e.workspaceRoot});return ht.default.existsSync(t)||ht.default.existsSync(r)||i==="pnpm"}async function $D(e){if(!await vd(e))throw new Ge("Not a pnpm project",{type:"package_manager-unexpected"});let{name:t,description:r}=vi(e);return{name:t,description:r,packageManager:"pnpm",paths:Sa({root:e.workspaceRoot,lockFile:"pnpm-lock.yaml",workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:kf(e),workspaces:Aa({workspaceGlobs:kf(e),...e})}}}async function HD(e){let{project:t,to:r,logger:i,options:n}=e,u=t.workspaceData.globs.length>0;i.mainStep(Lr({action:"create",packageManager:"pnpm",project:t}));let s=st({workspaceRoot:t.paths.root});i.rootHeader(),s.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${t.name} root "package.json"`),n!=null&&n.dry||(ht.default.writeJSONSync(t.paths.packageJson,s,{spaces:2}),u&&(i.rootStep('adding "pnpm-workspace.yaml"'),ht.default.writeFileSync(sn.default.join(t.paths.root,"pnpm-workspace.yaml"),`packages:
|
77
|
+
${t.workspaceData.globs.map(o=>` - "${o}"`).join(`
|
78
|
+
`)}`))),u&&(Tr({workspace:{name:"root",paths:t.paths},project:t,to:r,logger:i,options:n}),i.workspaceHeader(),t.workspaceData.workspaces.forEach(o=>Tr({workspace:o,project:t,to:r,logger:i,options:n})))}async function GD(e){let{project:t,logger:r,options:i}=e,n=t.workspaceData.globs.length>0;r.mainStep(Lr({action:"remove",packageManager:"pnpm",project:t}));let u=st({workspaceRoot:t.paths.root});if(t.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||ht.default.rmSync(t.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${t.name} root "package.json"`),delete u.packageManager,!(i!=null&&i.dry)){ht.default.writeJSONSync(t.paths.packageJson,u,{spaces:2});let s=[t.paths.nodeModules,...t.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(s.map(o=>ht.default.rm(o,{recursive:!0,force:!0})))}catch{throw new Ge("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function qD(e){let{project:t,logger:r,options:i}=e;r.subStep(`removing ${sn.default.relative(t.paths.root,t.paths.lockfile)}`),i!=null&&i.dry||ht.default.rmSync(t.paths.lockfile,{force:!0})}async function UD(e){let{project:t,logger:r,options:i}=e;if(t.packageManager!=="pnpm"&&(r.subStep(`converting ${sn.default.relative(t.paths.root,t.paths.lockfile)} to pnpm-lock.yaml`),!(i!=null&&i.dry)&&ht.default.existsSync(t.paths.lockfile)))try{await(0,OD.default)("pnpm",["import"],{stdio:"ignore",cwd:t.paths.root})}finally{ht.default.rmSync(t.paths.lockfile,{force:!0})}}var WD={detect:vd,read:$D,create:HD,remove:GD,clean:qD,convertLock:UD},KD=WD,ir=Ce(require("fs-extra")),li=Ce(require("path"));async function _d(e){let t=li.default.join(e.workspaceRoot,"package-lock.json"),r=Ea({workspaceRoot:e.workspaceRoot});return ir.default.existsSync(t)||r==="npm"}async function YD(e){if(!await _d(e))throw new Ge("Not an npm project",{type:"package_manager-unexpected"});let t=st(e),{name:r,description:i}=vi(e);return{name:r,description:i,packageManager:"npm",paths:Sa({root:e.workspaceRoot,lockFile:"package-lock.json"}),workspaceData:{globs:t.workspaces||[],workspaces:Aa({workspaceGlobs:t.workspaces,...e})}}}async function VD(e){let{project:t,options:r,to:i,logger:n}=e,u=t.workspaceData.globs.length>0;n.mainStep(Lr({packageManager:"npm",action:"create",project:t}));let s=st({workspaceRoot:t.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${li.default.relative(t.paths.root,t.paths.packageJson)}`),s.packageManager=`${i.name}@${i.version}`,u?(n.rootStep(`adding "workspaces" field to ${li.default.relative(t.paths.root,t.paths.packageJson)}`),s.workspaces=t.workspaceData.globs,r!=null&&r.dry||ir.default.writeJSONSync(t.paths.packageJson,s,{spaces:2}),Tr({workspace:{name:"root",paths:t.paths},project:t,to:i,logger:n,options:r}),n.workspaceHeader(),t.workspaceData.workspaces.forEach(o=>Tr({workspace:o,project:t,to:i,logger:n,options:r}))):r!=null&&r.dry||ir.default.writeJSONSync(t.paths.packageJson,s,{spaces:2})}async function QD(e){let{project:t,logger:r,options:i}=e,n=t.workspaceData.globs.length>0;r.mainStep(Lr({packageManager:"npm",action:"remove",project:t}));let u=st({workspaceRoot:t.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${t.name} root "package.json"`),delete u.workspaces),r.subStep(`removing "packageManager" field in ${t.name} root "package.json"`),delete u.packageManager,!(i!=null&&i.dry)){ir.default.writeJSONSync(t.paths.packageJson,u,{spaces:2});let s=[t.paths.nodeModules,...t.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(s.map(o=>ir.default.rm(o,{recursive:!0,force:!0})))}catch{throw new Ge("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function XD(e){let{project:t,logger:r,options:i}=e;r.subStep(`removing ${li.default.relative(t.paths.root,t.paths.lockfile)}`),i!=null&&i.dry||ir.default.rmSync(t.paths.lockfile,{force:!0})}async function JD(e){let{project:t,options:r}=e;t.packageManager!=="npm"&&(r!=null&&r.dry||ir.default.rmSync(t.paths.lockfile,{force:!0}))}var ZD={detect:_d,read:YD,create:VD,remove:QD,clean:XD,convertLock:JD},zD=ZD,or=Ce(require("fs-extra")),pi=Ce(require("path"));async function Ed(e){let t=pi.default.join(e.workspaceRoot,"yarn.lock"),r=Ea({workspaceRoot:e.workspaceRoot});return or.default.existsSync(t)||r==="yarn"}async function ex(e){if(!await Ed(e))throw new Ge("Not a yarn project",{type:"package_manager-unexpected"});let t=st(e),{name:r,description:i}=vi(e);return{name:r,description:i,packageManager:"yarn",paths:Sa({root:e.workspaceRoot,lockFile:"yarn.lock"}),workspaceData:{globs:t.workspaces||[],workspaces:Aa({workspaceGlobs:t.workspaces,...e})}}}async function tx(e){let{project:t,to:r,logger:i,options:n}=e,u=t.workspaceData.globs.length>0;i.mainStep(Lr({packageManager:"yarn",action:"create",project:t}));let s=st({workspaceRoot:t.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${pi.default.relative(t.paths.root,t.paths.packageJson)}`),s.packageManager=`${r.name}@${r.version}`,u?(i.rootStep(`adding "workspaces" field to ${pi.default.relative(t.paths.root,t.paths.packageJson)}`),s.workspaces=t.workspaceData.globs,n!=null&&n.dry||or.default.writeJSONSync(t.paths.packageJson,s,{spaces:2}),Tr({workspace:{name:"root",paths:t.paths},project:t,to:r,logger:i,options:n}),i.workspaceHeader(),t.workspaceData.workspaces.forEach(o=>Tr({workspace:o,project:t,to:r,logger:i,options:n}))):n!=null&&n.dry||or.default.writeJSONSync(t.paths.packageJson,s,{spaces:2})}async function rx(e){let{project:t,logger:r,options:i}=e,n=t.workspaceData.globs.length>0;r.mainStep(Lr({packageManager:"yarn",action:"remove",project:t}));let u=st({workspaceRoot:t.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${t.name} root "package.json"`),delete u.workspaces),r.subStep(`removing "packageManager" field in ${t.name} root "package.json"`),delete u.packageManager,!(i!=null&&i.dry)){or.default.writeJSONSync(t.paths.packageJson,u,{spaces:2});let s=[t.paths.nodeModules,...t.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(s.map(o=>or.default.rm(o,{recursive:!0,force:!0})))}catch{throw new Ge("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function nx(e){let{project:t,logger:r,options:i}=e;r.subStep(`removing ${pi.default.relative(t.paths.root,t.paths.lockfile)}`),i!=null&&i.dry||or.default.rmSync(t.paths.lockfile,{force:!0})}async function ix(e){let{project:t,options:r}=e;t.packageManager!=="yarn"&&(r!=null&&r.dry||or.default.rmSync(t.paths.lockfile,{force:!0}))}var ox={detect:Ed,read:ex,create:tx,remove:rx,clean:nx,convertLock:ix},sx=ox,ax={pnpm:KD,yarn:sx,npm:zD},Rr=ax;async function Sd({root:e}){let{exists:t,absolute:r}=MD({directory:e});if(!t)throw new Ge(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Rr))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new Ge("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}var ux=Ce(require("chalk")),cx=Ce(require("execa")),lx=Ce(require("ora")),px=require("semver"),nt=Ce(require("chalk")),fx=Ce(require("gradient-string")),wr=2,Ad=class{constructor({interactive:e,dry:t}={}){this.interactive=e!=null?e:!0,this.dry=t!=null?t:!1,this.step=1}logger(...e){this.interactive&&console.log(...e)}indented(e,...t){this.logger(" ".repeat(wr*e),...t)}header(e){this.blankLine(),this.logger(nt.default.bold(e))}installerFrames(){let e=`${" ".repeat(wr)} - ${this.dry?nt.default.yellow("SKIPPED | "):nt.default.green("OK | ")}`;return[`${e} `,`${e}> `,`${e}>> `,`${e}>>>`]}gradient(e){return(0,fx.default)("#0099F7","#F11712")(e.toString())}hero(){this.logger(nt.default.bold(this.gradient(`
|
79
|
+
>>> TURBOREPO
|
80
|
+
`)))}info(...e){this.logger(...e)}mainStep(e){this.blankLine(),this.logger(`${this.step}. ${nt.default.underline(e)}`),this.step+=1}subStep(...e){this.logger(" ".repeat(wr),"-",this.dry?nt.default.yellow("SKIPPED |"):nt.default.green("OK |"),...e)}subStepFailure(...e){this.logger(" ".repeat(wr),"-",nt.default.red("ERROR |"),...e)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...e){this.logger(" ".repeat(wr*3),"-",this.dry?nt.default.yellow("SKIPPED |"):nt.default.green("OK |"),...e)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...e){this.logger(" ".repeat(wr*3),"-",this.dry?nt.default.yellow("SKIPPED |"):nt.default.green("OK |"),...e)}blankLine(){this.logger()}error(...e){console.error(...e)}},Ff={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*",default:!0}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest",executable:"pnpm dlx",semver:">=7",default:!0}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2",default:!0},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}]};function bd(e){let{version:t,name:r}=e;return t?Ff[r].find(i=>(0,px.satisfies)(t,i.semver)):Ff[r].find(i=>i.default)}async function Dd(e){let{to:t,logger:r,options:i}=e,n=r!=null?r:new Ad(i),u=bd(t);if(!u)throw new Ge("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(n.subStep(`running "${u.command} ${u.installArgs}"`),!(i!=null&&i.dry)){let s;n!=null&&n.interactive&&(s=(0,lx.default)({text:"installing dependencies...",spinner:{frames:n.installerFrames()}}).start());try{await(0,cx.default)(u.command,u.installArgs,{cwd:e.project.paths.root}),s&&s.stop(),n.subStep("dependencies installed")}catch(o){throw n.subStepFailure("failed to install dependencies"),o}}}async function dx({project:e,to:t,logger:r,options:i}){if(r.header(`Converting project from ${e.packageManager} to ${t.name}.`),e.packageManager==t.name)throw new Ge("You are already using this package manager",{type:"package_manager-already_in_use"});await Rr[e.packageManager].remove({project:e,to:t,logger:r,options:i}),await Rr[t.name].create({project:e,to:t,logger:r,options:i}),r.mainStep("Installing dependencies"),i!=null&&i.skipInstall?r.subStep(ux.default.yellow("Skipping install")):(await Rr[t.name].convertLock({project:e,logger:r,options:i}),await Dd({project:e,to:t,logger:r,options:i})),r.mainStep(`Cleaning up ${e.packageManager} workspaces`),await Rr[e.packageManager].clean({project:e,logger:r})}async function hx({root:e,to:t,options:r}){let i=new Ad({...r,interactive:!1}),[n,u]=await Promise.all([Sd({root:e}),RD()]);await dx({project:n,to:{name:t,version:u[t].version},logger:i,options:r})}});j();var yn=Ae(require("chalk")),Zh=require("commander");j();var ou=Ae(require("chalk")),su=Ae(require("update-check"));var ur={name:"create-turbo",version:"1.9.0-alpha.0",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/**/*.ts","check-types":"tsc --noEmit"},dependencies:{"async-retry":"^1.3.3",chalk:"2.4.2",commander:"^10.0.0","cross-spawn":"^7.0.3",execa:"5.1.1","fs-extra":"^10.1.0",got:"^10.7.0","gradient-string":"^2.0.0",inquirer:"^8.0.0",ora:"4.1.1",rimraf:"^3.0.2",semver:"^7.3.8",tar:"6.1.13","update-check":"^1.5.4"},devDependencies:{"@turbo/workspaces":"workspace:*","@types/async-retry":"^1.4.5","@types/cross-spawn":"^6.0.2","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^7.3.1","@types/jest":"^27.4.0","@types/node":"^16.11.12","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9","@types/tar":"^6.1.4",eslint:"^7.23.0",jest:"^27.4.3","strip-ansi":"^6.0.1","ts-jest":"^27.1.1",tsconfig:"workspace:*",tsup:"^5.10.3","turbo-utils":"workspace:*",typescript:"^4.5.5"},files:["dist"]};var u0=(0,su.default)(ur).catch(()=>null);async function gn(){try{let e=await u0;e!=null&&e.latest&&(console.log(),console.log(ou.default.yellow.bold("A new version of `create-turbo` is available!")),console.log()),process.exit()}catch{}}j();var Li=Ae(require("chalk")),au=Ae(require("ora")),uu=Ae(require("gradient-string")),cu="#0099F7",lu="#F11712",cr=(0,uu.default)(cu,lu),vn=Li.default.hex(cu),c0=Li.default.hex(lu),_n=e=>(0,au.default)({text:e,spinner:{frames:[" ",vn("> "),vn(">> "),vn(">>>")]}}),Ii=(...e)=>{console.log(vn.bold(">>>"),...e)},et=(...e)=>{console.error(c0.bold(">>>"),...e)};j();j();var mn=Ae(require("path")),ze=Ae(require("chalk")),yt=Ae(wd());j();var Va=Ae(require("path")),Qa=Ae(require("fs-extra")),Xa=Ae(require("chalk"));j();j();j();j();j();var mx=Object.create,Cd=Object.defineProperty,yx=Object.getOwnPropertyDescriptor,gx=Object.getOwnPropertyNames,vx=Object.getPrototypeOf,_x=Object.prototype.hasOwnProperty,ae=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),Ex=(e,t)=>()=>(e&&(t=e(e=0)),t),U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Sx=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of gx(t))!_x.call(e,n)&&n!==r&&Cd(e,n,{get:()=>t[n],enumerable:!(i=yx(t,n))||i.enumerable});return e},Mt=(e,t,r)=>(r=e!=null?mx(vx(e)):{},Sx(t||!e||!e.__esModule?Cd(r,"default",{value:e,enumerable:!0}):r,e)),H=Ex(()=>{});H();var bx=U((e,t)=>{H();function r(i){return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t.exports.__esModule=!0,t.exports.default=t.exports,r(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}),Dx=U((e,t)=>{H();var r=bx().default;function i(){"use strict";t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},u=Object.prototype,s=u.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",p=o.toStringTag||"@@toStringTag";function l(C,S,R){return Object.defineProperty(C,S,{value:R,enumerable:!0,configurable:!0,writable:!0}),C[S]}try{l({},"")}catch{l=function(C,S,R){return C[S]=R}}function f(C,S,R,L){var M=S&&S.prototype instanceof g?S:g,B=Object.create(M.prototype),Q=new w(L||[]);return B._invoke=function(Z,oe,N){var le="suspendedStart";return function(pe,ne){if(le==="executing")throw new Error("Generator is already running");if(le==="completed"){if(pe==="throw")throw ne;return P()}for(N.method=pe,N.arg=ne;;){var T=N.delegate;if(T){var I=k(T,N);if(I){if(I===m)continue;return I}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(le==="suspendedStart")throw le="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);le="executing";var $=d(Z,oe,N);if($.type==="normal"){if(le=N.done?"completed":"suspendedYield",$.arg===m)continue;return{value:$.arg,done:N.done}}$.type==="throw"&&(le="completed",N.method="throw",N.arg=$.arg)}}}(C,R,Q),B}function d(C,S,R){try{return{type:"normal",arg:C.call(S,R)}}catch(L){return{type:"throw",arg:L}}}n.wrap=f;var m={};function g(){}function _(){}function E(){}var h={};l(h,a,function(){return this});var v=Object.getPrototypeOf,x=v&&v(v(O([])));x&&x!==u&&s.call(x,a)&&(h=x);var y=E.prototype=g.prototype=Object.create(h);function A(C){["next","throw","return"].forEach(function(S){l(C,S,function(R){return this._invoke(S,R)})})}function b(C,S){function R(M,B,Q,Z){var oe=d(C[M],C,B);if(oe.type!=="throw"){var N=oe.arg,le=N.value;return le&&r(le)=="object"&&s.call(le,"__await")?S.resolve(le.__await).then(function(pe){R("next",pe,Q,Z)},function(pe){R("throw",pe,Q,Z)}):S.resolve(le).then(function(pe){N.value=pe,Q(N)},function(pe){return R("throw",pe,Q,Z)})}Z(oe.arg)}var L;this._invoke=function(M,B){function Q(){return new S(function(Z,oe){R(M,B,Z,oe)})}return L=L?L.then(Q,Q):Q()}}function k(C,S){var R=C.iterator[S.method];if(R===void 0){if(S.delegate=null,S.method==="throw"){if(C.iterator.return&&(S.method="return",S.arg=void 0,k(C,S),S.method==="throw"))return m;S.method="throw",S.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var L=d(R,C.iterator,S.arg);if(L.type==="throw")return S.method="throw",S.arg=L.arg,S.delegate=null,m;var M=L.arg;return M?M.done?(S[C.resultName]=M.value,S.next=C.nextLoc,S.method!=="return"&&(S.method="next",S.arg=void 0),S.delegate=null,m):M:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,m)}function D(C){var S={tryLoc:C[0]};1 in C&&(S.catchLoc=C[1]),2 in C&&(S.finallyLoc=C[2],S.afterLoc=C[3]),this.tryEntries.push(S)}function F(C){var S=C.completion||{};S.type="normal",delete S.arg,C.completion=S}function w(C){this.tryEntries=[{tryLoc:"root"}],C.forEach(D,this),this.reset(!0)}function O(C){if(C){var S=C[a];if(S)return S.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var R=-1,L=function M(){for(;++R<C.length;)if(s.call(C,R))return M.value=C[R],M.done=!1,M;return M.value=void 0,M.done=!0,M};return L.next=L}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=E,l(y,"constructor",E),l(E,"constructor",_),_.displayName=l(E,p,"GeneratorFunction"),n.isGeneratorFunction=function(C){var S=typeof C=="function"&&C.constructor;return!!S&&(S===_||(S.displayName||S.name)==="GeneratorFunction")},n.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,E):(C.__proto__=E,l(C,p,"GeneratorFunction")),C.prototype=Object.create(y),C},n.awrap=function(C){return{__await:C}},A(b.prototype),l(b.prototype,c,function(){return this}),n.AsyncIterator=b,n.async=function(C,S,R,L,M){M===void 0&&(M=Promise);var B=new b(f(C,S,R,L),M);return n.isGeneratorFunction(S)?B:B.next().then(function(Q){return Q.done?Q.value:B.next()})},A(y),l(y,p,"Generator"),l(y,a,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),n.keys=function(C){var S=[];for(var R in C)S.push(R);return S.reverse(),function L(){for(;S.length;){var M=S.pop();if(M in C)return L.value=M,L.done=!1,L}return L.done=!0,L}},n.values=O,w.prototype={constructor:w,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!C)for(var S in this)S.charAt(0)==="t"&&s.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=void 0)},stop:function(){this.done=!0;var C=this.tryEntries[0].completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var S=this;function R(oe,N){return B.type="throw",B.arg=C,S.next=oe,N&&(S.method="next",S.arg=void 0),!!N}for(var L=this.tryEntries.length-1;L>=0;--L){var M=this.tryEntries[L],B=M.completion;if(M.tryLoc==="root")return R("end");if(M.tryLoc<=this.prev){var Q=s.call(M,"catchLoc"),Z=s.call(M,"finallyLoc");if(Q&&Z){if(this.prev<M.catchLoc)return R(M.catchLoc,!0);if(this.prev<M.finallyLoc)return R(M.finallyLoc)}else if(Q){if(this.prev<M.catchLoc)return R(M.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return R(M.finallyLoc)}}}},abrupt:function(C,S){for(var R=this.tryEntries.length-1;R>=0;--R){var L=this.tryEntries[R];if(L.tryLoc<=this.prev&&s.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var M=L;break}}M&&(C==="break"||C==="continue")&&M.tryLoc<=S&&S<=M.finallyLoc&&(M=null);var B=M?M.completion:{};return B.type=C,B.arg=S,M?(this.method="next",this.next=M.finallyLoc,m):this.complete(B)},complete:function(C,S){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&S&&(this.next=S),m},finish:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.finallyLoc===C)return this.complete(R.completion,R.afterLoc),F(R),m}},catch:function(C){for(var S=this.tryEntries.length-1;S>=0;--S){var R=this.tryEntries[S];if(R.tryLoc===C){var L=R.completion;if(L.type==="throw"){var M=L.arg;F(R)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(C,S,R){return this.delegate={iterator:O(C),resultName:S,nextLoc:R},this.method==="next"&&(this.arg=void 0),m}},n}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}),xx=U((e,t)=>{H();var r=Dx()();t.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),wx=U((e,t)=>{"use strict";H();var r=(i,...n)=>new Promise(u=>{u(i(...n))});t.exports=r,t.exports.default=r}),Cx=U((e,t)=>{"use strict";H();var r=wx(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let u=[],s=0,o=()=>{s--,u.length>0&&u.shift()()},a=(l,f,...d)=>{s++;let m=r(l,...d);f(m),m.then(o,o)},c=(l,f,...d)=>{s<n?a(l,f,...d):u.push(a.bind(null,l,f,...d))},p=(l,...f)=>new Promise(d=>c(l,d,...f));return Object.defineProperties(p,{activeCount:{get:()=>s},pendingCount:{get:()=>u.length},clearQueue:{value:()=>{u.length=0}}}),p};t.exports=i,t.exports.default=i}),kx=U((e,t)=>{"use strict";H();var r=Cx(),i=class extends Error{constructor(o){super(),this.value=o}},n=async(o,a)=>a(await o),u=async o=>{let a=await Promise.all(o);if(a[1]===!0)throw new i(a[0]);return!1},s=async(o,a,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let p=r(c.concurrency),l=[...o].map(d=>[d,p(n,d,a)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(l.map(d=>f(u,d)))}catch(d){if(d instanceof i)return d.value;throw d}};t.exports=s,t.exports.default=s}),Fx=U((e,t)=>{"use strict";H();var r=ae("path"),i=ae("fs"),{promisify:n}=ae("util"),u=kx(),s=n(i.stat),o=n(i.lstat),a={directory:"isDirectory",file:"isFile"};function c({type:l}){if(!(l in a))throw new Error(`Invalid type specified: ${l}`)}var p=(l,f)=>l===void 0||f[a[l]]();t.exports=async(l,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?s:o;return u(l,async m=>{try{let g=await d(r.resolve(f.cwd,m));return p(f.type,g)}catch{return!1}},f)},t.exports.sync=(l,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of l)try{let g=d(r.resolve(f.cwd,m));if(p(f.type,g))return m}catch{}}}),Rx=U((e,t)=>{"use strict";H();var r=ae("fs"),{promisify:i}=ae("util"),n=i(r.access);t.exports=async u=>{try{return await n(u),!0}catch{return!1}},t.exports.sync=u=>{try{return r.accessSync(u),!0}catch{return!1}}}),Ox=U((e,t)=>{"use strict";H();var r=ae("path"),i=Fx(),n=Rx(),u=Symbol("findUp.stop");t.exports=async(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=async f=>{if(typeof s!="function")return i(p,f);let d=await s(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.sync=(s,o={})=>{let a=r.resolve(o.cwd||""),{root:c}=r.parse(a),p=[].concat(s),l=f=>{if(typeof s!="function")return i.sync(p,f);let d=s(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=l({...o,cwd:a});if(f===u)return;if(f)return r.resolve(a,f);if(a===c)return;a=r.dirname(a)}},t.exports.exists=n,t.exports.sync.exists=n.sync,t.exports.stop=u}),Ze=U(e=>{"use strict";H(),e.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((r,i)=>{arguments[arguments.length]=(n,u)=>{if(n)return i(n);r(u)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){let r=arguments[arguments.length-1];if(typeof r!="function")return t.apply(this,arguments);t.apply(this,arguments).then(i=>r(null,i),r)},"name",{value:t.name})}}),Tx=U((e,t)=>{H();var r=ae("constants"),i=process.cwd,n=null,u=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=i.call(process)),n};try{process.cwd()}catch{}typeof process.chdir=="function"&&(s=process.chdir,process.chdir=function(a){n=null,s.call(process,a)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s));var s;t.exports=o;function o(a){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(a),a.lutimes||p(a),a.chown=d(a.chown),a.fchown=d(a.fchown),a.lchown=d(a.lchown),a.chmod=l(a.chmod),a.fchmod=l(a.fchmod),a.lchmod=l(a.lchmod),a.chownSync=m(a.chownSync),a.fchownSync=m(a.fchownSync),a.lchownSync=m(a.lchownSync),a.chmodSync=f(a.chmodSync),a.fchmodSync=f(a.fchmodSync),a.lchmodSync=f(a.lchmodSync),a.stat=g(a.stat),a.fstat=g(a.fstat),a.lstat=g(a.lstat),a.statSync=_(a.statSync),a.fstatSync=_(a.fstatSync),a.lstatSync=_(a.lstatSync),a.chmod&&!a.lchmod&&(a.lchmod=function(h,v,x){x&&process.nextTick(x)},a.lchmodSync=function(){}),a.chown&&!a.lchown&&(a.lchown=function(h,v,x,y){y&&process.nextTick(y)},a.lchownSync=function(){}),u==="win32"&&(a.rename=typeof a.rename!="function"?a.rename:function(h){function v(x,y,A){var b=Date.now(),k=0;h(x,y,function D(F){if(F&&(F.code==="EACCES"||F.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){a.stat(y,function(w,O){w&&w.code==="ENOENT"?h(x,y,D):A(F)})},k),k<100&&(k+=10);return}A&&A(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(v,h),v}(a.rename)),a.read=typeof a.read!="function"?a.read:function(h){function v(x,y,A,b,k,D){var F;if(D&&typeof D=="function"){var w=0;F=function(O,P,C){if(O&&O.code==="EAGAIN"&&w<10)return w++,h.call(a,x,y,A,b,k,F);D.apply(this,arguments)}}return h.call(a,x,y,A,b,k,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(v,h),v}(a.read),a.readSync=typeof a.readSync!="function"?a.readSync:function(h){return function(v,x,y,A,b){for(var k=0;;)try{return h.call(a,v,x,y,A,b)}catch(D){if(D.code==="EAGAIN"&&k<10){k++;continue}throw D}}}(a.readSync);function c(h){h.lchmod=function(v,x,y){h.open(v,r.O_WRONLY|r.O_SYMLINK,x,function(A,b){if(A){y&&y(A);return}h.fchmod(b,x,function(k){h.close(b,function(D){y&&y(k||D)})})})},h.lchmodSync=function(v,x){var y=h.openSync(v,r.O_WRONLY|r.O_SYMLINK,x),A=!0,b;try{b=h.fchmodSync(y,x),A=!1}finally{if(A)try{h.closeSync(y)}catch{}else h.closeSync(y)}return b}}function p(h){r.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(v,x,y,A){h.open(v,r.O_SYMLINK,function(b,k){if(b){A&&A(b);return}h.futimes(k,x,y,function(D){h.close(k,function(F){A&&A(D||F)})})})},h.lutimesSync=function(v,x,y){var A=h.openSync(v,r.O_SYMLINK),b,k=!0;try{b=h.futimesSync(A,x,y),k=!1}finally{if(k)try{h.closeSync(A)}catch{}else h.closeSync(A)}return b}):h.futimes&&(h.lutimes=function(v,x,y,A){A&&process.nextTick(A)},h.lutimesSync=function(){})}function l(h){return h&&function(v,x,y){return h.call(a,v,x,function(A){E(A)&&(A=null),y&&y.apply(this,arguments)})}}function f(h){return h&&function(v,x){try{return h.call(a,v,x)}catch(y){if(!E(y))throw y}}}function d(h){return h&&function(v,x,y,A){return h.call(a,v,x,y,function(b){E(b)&&(b=null),A&&A.apply(this,arguments)})}}function m(h){return h&&function(v,x,y){try{return h.call(a,v,x,y)}catch(A){if(!E(A))throw A}}}function g(h){return h&&function(v,x,y){typeof x=="function"&&(y=x,x=null);function A(b,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),y&&y.apply(this,arguments)}return x?h.call(a,v,x,A):h.call(a,v,A)}}function _(h){return h&&function(v,x){var y=x?h.call(a,v,x):h.call(a,v);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function E(h){if(!h||h.code==="ENOSYS")return!0;var v=!process.getuid||process.getuid()!==0;return!!(v&&(h.code==="EINVAL"||h.code==="EPERM"))}}}),Px=U((e,t)=>{H();var r=ae("stream").Stream;t.exports=i;function i(n){return{ReadStream:u,WriteStream:s};function u(o,a){if(!(this instanceof u))return new u(o,a);r.call(this);var c=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var p=Object.keys(a),l=0,f=p.length;l<f;l++){var d=p[l];this[d]=a[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){c._read()});return}n.open(this.path,this.flags,this.mode,function(m,g){if(m){c.emit("error",m),c.readable=!1;return}c.fd=g,c.emit("open",g),c._read()})}function s(o,a){if(!(this instanceof s))return new s(o,a);r.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var c=Object.keys(a),p=0,l=c.length;p<l;p++){var f=c[p];this[f]=a[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Lx=U((e,t)=>{"use strict";H(),t.exports=i;var r=Object.getPrototypeOf||function(n){return n.__proto__};function i(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var u={__proto__:r(n)};else var u=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(s){Object.defineProperty(u,s,Object.getOwnPropertyDescriptor(n,s))}),u}}),Oe=U((e,t)=>{H();var r=ae("fs"),i=Tx(),n=Px(),u=Lx(),s=ae("util"),o,a;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),a=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",a="___graceful-fs.previous");function c(){}function p(h,v){Object.defineProperty(h,o,{get:function(){return v}})}var l=c;s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var h=s.format.apply(s,arguments);h="GFS4: "+h.split(/\n/).join(`
|
81
|
+
GFS4: `),console.error(h)}),r[o]||(f=global[o]||[],p(r,f),r.close=function(h){function v(x,y){return h.call(r,x,function(A){A||_(),typeof y=="function"&&y.apply(this,arguments)})}return Object.defineProperty(v,a,{value:h}),v}(r.close),r.closeSync=function(h){function v(x){h.apply(r,arguments),_()}return Object.defineProperty(v,a,{value:h}),v}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){l(r[o]),ae("assert").equal(r[o].length,0)}));var f;global[o]||p(global,r[o]),t.exports=d(u(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=d(r),r.__patched=!0);function d(h){i(h),h.gracefulify=d,h.createReadStream=N,h.createWriteStream=le;var v=h.readFile;h.readFile=x;function x(T,I,$){return typeof I=="function"&&($=I,I=null),K(T,I,$);function K(Y,z,X,ee){return v(Y,z,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?m([K,[Y,z,X],ie,ee||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var y=h.writeFile;h.writeFile=A;function A(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return y(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var b=h.appendFile;b&&(h.appendFile=k);function k(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return b(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var D=h.copyFile;D&&(h.copyFile=F);function F(T,I,$,K){return typeof $=="function"&&(K=$,$=0),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return D(z,X,ee,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var w=h.readdir;h.readdir=P;var O=/^v[0-5]\./;function P(T,I,$){typeof I=="function"&&($=I,I=null);var K=O.test(process.version)?function(z,X,ee,ie){return w(z,Y(z,X,ee,ie))}:function(z,X,ee,ie){return w(z,X,Y(z,X,ee,ie))};return K(T,I,$);function Y(z,X,ee,ie){return function(ye,se){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?m([K,[z,X,ee],ye,ie||Date.now(),Date.now()]):(se&&se.sort&&se.sort(),typeof ee=="function"&&ee.call(this,ye,se))}}}if(process.version.substr(0,4)==="v0.8"){var C=n(h);B=C.ReadStream,Z=C.WriteStream}var S=h.ReadStream;S&&(B.prototype=Object.create(S.prototype),B.prototype.open=Q);var R=h.WriteStream;R&&(Z.prototype=Object.create(R.prototype),Z.prototype.open=oe),Object.defineProperty(h,"ReadStream",{get:function(){return B},set:function(T){B=T},enumerable:!0,configurable:!0}),Object.defineProperty(h,"WriteStream",{get:function(){return Z},set:function(T){Z=T},enumerable:!0,configurable:!0});var L=B;Object.defineProperty(h,"FileReadStream",{get:function(){return L},set:function(T){L=T},enumerable:!0,configurable:!0});var M=Z;Object.defineProperty(h,"FileWriteStream",{get:function(){return M},set:function(T){M=T},enumerable:!0,configurable:!0});function B(T,I){return this instanceof B?(S.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function Q(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.autoClose&&T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$),T.read())})}function Z(T,I){return this instanceof Z?(R.apply(this,arguments),this):Z.apply(Object.create(Z.prototype),arguments)}function oe(){var T=this;ne(T.path,T.flags,T.mode,function(I,$){I?(T.destroy(),T.emit("error",I)):(T.fd=$,T.emit("open",$))})}function N(T,I){return new h.ReadStream(T,I)}function le(T,I){return new h.WriteStream(T,I)}var pe=h.open;h.open=ne;function ne(T,I,$,K){return typeof $=="function"&&(K=$,$=null),Y(T,I,$,K);function Y(z,X,ee,ie,ye){return pe(z,X,ee,function(se,re){se&&(se.code==="EMFILE"||se.code==="ENFILE")?m([Y,[z,X,ee,ie],se,ye||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}return h}function m(h){l("ENQUEUE",h[0].name,h[1]),r[o].push(h),E()}var g;function _(){for(var h=Date.now(),v=0;v<r[o].length;++v)r[o][v].length>2&&(r[o][v][3]=h,r[o][v][4]=h);E()}function E(){if(clearTimeout(g),g=void 0,r[o].length!==0){var h=r[o].shift(),v=h[0],x=h[1],y=h[2],A=h[3],b=h[4];if(A===void 0)l("RETRY",v.name,x),v.apply(null,x);else if(Date.now()-A>=6e4){l("TIMEOUT",v.name,x);var k=x.pop();typeof k=="function"&&k.call(null,y)}else{var D=Date.now()-b,F=Math.max(b-A,1),w=Math.min(F*1.2,100);D>=w?(l("RETRY",v.name,x),v.apply(null,x.concat([A]))):r[o].push(h)}g===void 0&&(g=setTimeout(E,0))}}}),kd=U(e=>{"use strict";H();var t=Ze().fromCallback,r=Oe(),i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof r[n]=="function");Object.keys(r).forEach(n=>{n!=="promises"&&(e[n]=r[n])}),i.forEach(n=>{e[n]=t(r[n])}),e.exists=function(n,u){return typeof u=="function"?r.exists(n,u):new Promise(s=>r.exists(n,s))},e.read=function(n,u,s,o,a,c){return typeof c=="function"?r.read(n,u,s,o,a,c):new Promise((p,l)=>{r.read(n,u,s,o,a,(f,d,m)=>{if(f)return l(f);p({bytesRead:d,buffer:m})})})},e.write=function(n,u,...s){return typeof s[s.length-1]=="function"?r.write(n,u,...s):new Promise((o,a)=>{r.write(n,u,...s,(c,p,l)=>{if(c)return a(c);o({bytesWritten:p,buffer:l})})})},typeof r.realpath.native=="function"&&(e.realpath.native=t(r.realpath.native))}),Fd=U((e,t)=>{"use strict";H();var r=ae("path");function i(s){return s=r.normalize(r.resolve(s)).split(r.sep),s.length>0?s[0]:null}var n=/[<>:"|?*]/;function u(s){let o=i(s);return s=s.replace(o,""),n.test(s)}t.exports={getRootPath:i,invalidWin32Path:u}}),Ix=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=Fd().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c,p){if(typeof a=="function"?(c=a,a={}):(!a||typeof a!="object")&&(a={mode:a}),process.platform==="win32"&&n(o)){let d=new Error(o+" contains invalid WIN32 path characters.");return d.code="EINVAL",c(d)}let l=a.mode,f=a.fs||r;l===void 0&&(l=u&~process.umask()),p||(p=null),c=c||function(){},o=i.resolve(o),f.mkdir(o,l,d=>{if(!d)return p=p||o,c(null,p);switch(d.code){case"ENOENT":if(i.dirname(o)===o)return c(d);s(i.dirname(o),a,(m,g)=>{m?c(m,g):s(o,a,c,g)});break;default:f.stat(o,(m,g)=>{m||!g.isDirectory()?c(d,p):c(null,p)});break}})}t.exports=s}),Nx=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=Fd().invalidWin32Path,u=parseInt("0777",8);function s(o,a,c){(!a||typeof a!="object")&&(a={mode:a});let p=a.mode,l=a.fs||r;if(process.platform==="win32"&&n(o)){let f=new Error(o+" contains invalid WIN32 path characters.");throw f.code="EINVAL",f}p===void 0&&(p=u&~process.umask()),c||(c=null),o=i.resolve(o);try{l.mkdirSync(o,p),c=c||o}catch(f){if(f.code==="ENOENT"){if(i.dirname(o)===o)throw f;c=s(i.dirname(o),a,c),s(o,a,c)}else{let d;try{d=l.statSync(o)}catch{throw f}if(!d.isDirectory())throw f}}return c}t.exports=s}),ot=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=r(Ix()),n=Nx();t.exports={mkdirs:i,mkdirsSync:n,mkdirp:i,mkdirpSync:n,ensureDir:i,ensureDirSync:n}}),Rd=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("os"),n=ae("path");function u(){let p=n.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));p=n.join(i.tmpdir(),p);let l=new Date(1435410243862);r.writeFileSync(p,"https://github.com/jprichardson/node-fs-extra/pull/141");let f=r.openSync(p,"r+");return r.futimesSync(f,l,l),r.closeSync(f),r.statSync(p).mtime>1435410243e3}function s(p){let l=n.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));l=n.join(i.tmpdir(),l);let f=new Date(1435410243862);r.writeFile(l,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return p(d);r.open(l,"r+",(m,g)=>{if(m)return p(m);r.futimes(g,f,f,_=>{if(_)return p(_);r.close(g,E=>{if(E)return p(E);r.stat(l,(h,v)=>{if(h)return p(h);p(null,v.mtime>1435410243e3)})})})})})}function o(p){if(typeof p=="number")return Math.floor(p/1e3)*1e3;if(p instanceof Date)return new Date(Math.floor(p.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function a(p,l,f,d){r.open(p,"r+",(m,g)=>{if(m)return d(m);r.futimes(g,l,f,_=>{r.close(g,E=>{d&&d(_||E)})})})}function c(p,l,f){let d=r.openSync(p,"r+");return r.futimesSync(d,l,f),r.closeSync(d)}t.exports={hasMillisRes:s,hasMillisResSync:u,timeRemoveMillis:o,utimesMillis:a,utimesMillisSync:c}}),Si=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=10,u=5,s=0,o=process.versions.node.split("."),a=Number.parseInt(o[0],10),c=Number.parseInt(o[1],10),p=Number.parseInt(o[2],10);function l(){return a>n||a===n&&(c>u||c===u&&p>=s)}function f(x,y,A){l()?r.stat(x,{bigint:!0},(b,k)=>{if(b)return A(b);r.stat(y,{bigint:!0},(D,F)=>D?D.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(D):A(null,{srcStat:k,destStat:F}))}):r.stat(x,(b,k)=>{if(b)return A(b);r.stat(y,(D,F)=>D?D.code==="ENOENT"?A(null,{srcStat:k,destStat:null}):A(D):A(null,{srcStat:k,destStat:F}))})}function d(x,y){let A,b;l()?A=r.statSync(x,{bigint:!0}):A=r.statSync(x);try{l()?b=r.statSync(y,{bigint:!0}):b=r.statSync(y)}catch(k){if(k.code==="ENOENT")return{srcStat:A,destStat:null};throw k}return{srcStat:A,destStat:b}}function m(x,y,A,b){f(x,y,(k,D)=>{if(k)return b(k);let{srcStat:F,destStat:w}=D;return w&&w.ino&&w.dev&&w.ino===F.ino&&w.dev===F.dev?b(new Error("Source and destination must not be the same.")):F.isDirectory()&&h(x,y)?b(new Error(v(x,y,A))):b(null,{srcStat:F,destStat:w})})}function g(x,y,A){let{srcStat:b,destStat:k}=d(x,y);if(k&&k.ino&&k.dev&&k.ino===b.ino&&k.dev===b.dev)throw new Error("Source and destination must not be the same.");if(b.isDirectory()&&h(x,y))throw new Error(v(x,y,A));return{srcStat:b,destStat:k}}function _(x,y,A,b,k){let D=i.resolve(i.dirname(x)),F=i.resolve(i.dirname(A));if(F===D||F===i.parse(F).root)return k();l()?r.stat(F,{bigint:!0},(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===y.ino&&O.dev===y.dev?k(new Error(v(x,A,b))):_(x,y,F,b,k)):r.stat(F,(w,O)=>w?w.code==="ENOENT"?k():k(w):O.ino&&O.dev&&O.ino===y.ino&&O.dev===y.dev?k(new Error(v(x,A,b))):_(x,y,F,b,k))}function E(x,y,A,b){let k=i.resolve(i.dirname(x)),D=i.resolve(i.dirname(A));if(D===k||D===i.parse(D).root)return;let F;try{l()?F=r.statSync(D,{bigint:!0}):F=r.statSync(D)}catch(w){if(w.code==="ENOENT")return;throw w}if(F.ino&&F.dev&&F.ino===y.ino&&F.dev===y.dev)throw new Error(v(x,A,b));return E(x,y,D,b)}function h(x,y){let A=i.resolve(x).split(i.sep).filter(k=>k),b=i.resolve(y).split(i.sep).filter(k=>k);return A.reduce((k,D,F)=>k&&b[F]===D,!0)}function v(x,y,A){return`Cannot ${A} '${x}' to a subdirectory of itself, '${y}'.`}t.exports={checkPaths:m,checkPathsSync:g,checkParentPaths:_,checkParentPathsSync:E,isSrcSubdir:h}}),Bx=U((e,t)=>{"use strict";H(),t.exports=function(r){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(r)}catch{return new Buffer(r)}return new Buffer(r)}}),Mx=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=ot().mkdirsSync,u=Rd().utimesMillisSync,s=Si();function o(y,A,b){typeof b=="function"&&(b={filter:b}),b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
82
|
+
|
83
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:k,destStat:D}=s.checkPathsSync(y,A,"copy");return s.checkParentPathsSync(y,k,A,"copy"),a(D,y,A,b)}function a(y,A,b,k){if(k.filter&&!k.filter(A,b))return;let D=i.dirname(b);return r.existsSync(D)||n(D),c(y,A,b,k)}function c(y,A,b,k){if(!(k.filter&&!k.filter(A,b)))return p(y,A,b,k)}function p(y,A,b,k){let D=(k.dereference?r.statSync:r.lstatSync)(A);if(D.isDirectory())return g(D,y,A,b,k);if(D.isFile()||D.isCharacterDevice()||D.isBlockDevice())return l(D,y,A,b,k);if(D.isSymbolicLink())return v(y,A,b,k)}function l(y,A,b,k,D){return A?f(y,b,k,D):d(y,b,k,D)}function f(y,A,b,k){if(k.overwrite)return r.unlinkSync(b),d(y,A,b,k);if(k.errorOnExist)throw new Error(`'${b}' already exists`)}function d(y,A,b,k){return typeof r.copyFileSync=="function"?(r.copyFileSync(A,b),r.chmodSync(b,y.mode),k.preserveTimestamps?u(b,y.atime,y.mtime):void 0):m(y,A,b,k)}function m(y,A,b,k){let D=Bx()(65536),F=r.openSync(A,"r"),w=r.openSync(b,"w",y.mode),O=0;for(;O<y.size;){let P=r.readSync(F,D,0,65536,O);r.writeSync(w,D,0,P),O+=P}k.preserveTimestamps&&r.futimesSync(w,y.atime,y.mtime),r.closeSync(F),r.closeSync(w)}function g(y,A,b,k,D){if(!A)return _(y,b,k,D);if(A&&!A.isDirectory())throw new Error(`Cannot overwrite non-directory '${k}' with directory '${b}'.`);return E(b,k,D)}function _(y,A,b,k){return r.mkdirSync(b),E(A,b,k),r.chmodSync(b,y.mode)}function E(y,A,b){r.readdirSync(y).forEach(k=>h(k,y,A,b))}function h(y,A,b,k){let D=i.join(A,y),F=i.join(b,y),{destStat:w}=s.checkPathsSync(D,F,"copy");return c(w,D,F,k)}function v(y,A,b,k){let D=r.readlinkSync(A);if(k.dereference&&(D=i.resolve(process.cwd(),D)),y){let F;try{F=r.readlinkSync(b)}catch(w){if(w.code==="EINVAL"||w.code==="UNKNOWN")return r.symlinkSync(D,b);throw w}if(k.dereference&&(F=i.resolve(process.cwd(),F)),s.isSrcSubdir(D,F))throw new Error(`Cannot copy '${D}' to a subdirectory of itself, '${F}'.`);if(r.statSync(b).isDirectory()&&s.isSrcSubdir(F,D))throw new Error(`Cannot overwrite '${F}' with '${D}'.`);return x(D,b)}else return r.symlinkSync(D,b)}function x(y,A){return r.unlinkSync(A),r.symlinkSync(y,A)}t.exports=o}),Od=U((e,t)=>{"use strict";H(),t.exports={copySync:Mx()}}),Dt=U((e,t)=>{"use strict";H();var r=Ze().fromPromise,i=kd();function n(u){return i.access(u).then(()=>!0).catch(()=>!1)}t.exports={pathExists:r(n),pathExistsSync:i.existsSync}}),jx=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=ot().mkdirs,u=Dt().pathExists,s=Rd().utimesMillis,o=Si();function a(D,F,w,O){typeof w=="function"&&!O?(O=w,w={}):typeof w=="function"&&(w={filter:w}),O=O||function(){},w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
84
|
+
|
85
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),o.checkPaths(D,F,"copy",(P,C)=>{if(P)return O(P);let{srcStat:S,destStat:R}=C;o.checkParentPaths(D,S,F,"copy",L=>L?O(L):w.filter?p(c,R,D,F,w,O):c(R,D,F,w,O))})}function c(D,F,w,O,P){let C=i.dirname(w);u(C,(S,R)=>{if(S)return P(S);if(R)return l(D,F,w,O,P);n(C,L=>L?P(L):l(D,F,w,O,P))})}function p(D,F,w,O,P,C){Promise.resolve(P.filter(w,O)).then(S=>S?D(F,w,O,P,C):C(),S=>C(S))}function l(D,F,w,O,P){return O.filter?p(f,D,F,w,O,P):f(D,F,w,O,P)}function f(D,F,w,O,P){(O.dereference?r.stat:r.lstat)(F,(C,S)=>{if(C)return P(C);if(S.isDirectory())return h(S,D,F,w,O,P);if(S.isFile()||S.isCharacterDevice()||S.isBlockDevice())return d(S,D,F,w,O,P);if(S.isSymbolicLink())return b(D,F,w,O,P)})}function d(D,F,w,O,P,C){return F?m(D,w,O,P,C):g(D,w,O,P,C)}function m(D,F,w,O,P){if(O.overwrite)r.unlink(w,C=>C?P(C):g(D,F,w,O,P));else return O.errorOnExist?P(new Error(`'${w}' already exists`)):P()}function g(D,F,w,O,P){return typeof r.copyFile=="function"?r.copyFile(F,w,C=>C?P(C):E(D,w,O,P)):_(D,F,w,O,P)}function _(D,F,w,O,P){let C=r.createReadStream(F);C.on("error",S=>P(S)).once("open",()=>{let S=r.createWriteStream(w,{mode:D.mode});S.on("error",R=>P(R)).on("open",()=>C.pipe(S)).once("close",()=>E(D,w,O,P))})}function E(D,F,w,O){r.chmod(F,D.mode,P=>P?O(P):w.preserveTimestamps?s(F,D.atime,D.mtime,O):O())}function h(D,F,w,O,P,C){return F?F&&!F.isDirectory()?C(new Error(`Cannot overwrite non-directory '${O}' with directory '${w}'.`)):x(w,O,P,C):v(D,w,O,P,C)}function v(D,F,w,O,P){r.mkdir(w,C=>{if(C)return P(C);x(F,w,O,S=>S?P(S):r.chmod(w,D.mode,P))})}function x(D,F,w,O){r.readdir(D,(P,C)=>P?O(P):y(C,D,F,w,O))}function y(D,F,w,O,P){let C=D.pop();return C?A(D,C,F,w,O,P):P()}function A(D,F,w,O,P,C){let S=i.join(w,F),R=i.join(O,F);o.checkPaths(S,R,"copy",(L,M)=>{if(L)return C(L);let{destStat:B}=M;l(B,S,R,P,Q=>Q?C(Q):y(D,w,O,P,C))})}function b(D,F,w,O,P){r.readlink(F,(C,S)=>{if(C)return P(C);if(O.dereference&&(S=i.resolve(process.cwd(),S)),D)r.readlink(w,(R,L)=>R?R.code==="EINVAL"||R.code==="UNKNOWN"?r.symlink(S,w,P):P(R):(O.dereference&&(L=i.resolve(process.cwd(),L)),o.isSrcSubdir(S,L)?P(new Error(`Cannot copy '${S}' to a subdirectory of itself, '${L}'.`)):D.isDirectory()&&o.isSrcSubdir(L,S)?P(new Error(`Cannot overwrite '${L}' with '${S}'.`)):k(S,w,P)));else return r.symlink(S,w,P)})}function k(D,F,w){r.unlink(F,O=>O?w(O):r.symlink(D,F,w))}t.exports=a}),Td=U((e,t)=>{"use strict";H();var r=Ze().fromCallback;t.exports={copy:r(jx())}}),$x=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=ae("assert"),u=process.platform==="win32";function s(_){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(E=>{_[E]=_[E]||r[E],E=E+"Sync",_[E]=_[E]||r[E]}),_.maxBusyTries=_.maxBusyTries||3}function o(_,E,h){let v=0;typeof E=="function"&&(h=E,E={}),n(_,"rimraf: missing path"),n.strictEqual(typeof _,"string","rimraf: path should be a string"),n.strictEqual(typeof h,"function","rimraf: callback function required"),n(E,"rimraf: invalid options argument provided"),n.strictEqual(typeof E,"object","rimraf: options should be object"),s(E),a(_,E,function x(y){if(y){if((y.code==="EBUSY"||y.code==="ENOTEMPTY"||y.code==="EPERM")&&v<E.maxBusyTries){v++;let A=v*100;return setTimeout(()=>a(_,E,x),A)}y.code==="ENOENT"&&(y=null)}h(y)})}function a(_,E,h){n(_),n(E),n(typeof h=="function"),E.lstat(_,(v,x)=>{if(v&&v.code==="ENOENT")return h(null);if(v&&v.code==="EPERM"&&u)return c(_,E,v,h);if(x&&x.isDirectory())return l(_,E,v,h);E.unlink(_,y=>{if(y){if(y.code==="ENOENT")return h(null);if(y.code==="EPERM")return u?c(_,E,y,h):l(_,E,y,h);if(y.code==="EISDIR")return l(_,E,y,h)}return h(y)})})}function c(_,E,h,v){n(_),n(E),n(typeof v=="function"),h&&n(h instanceof Error),E.chmod(_,438,x=>{x?v(x.code==="ENOENT"?null:h):E.stat(_,(y,A)=>{y?v(y.code==="ENOENT"?null:h):A.isDirectory()?l(_,E,h,v):E.unlink(_,v)})})}function p(_,E,h){let v;n(_),n(E),h&&n(h instanceof Error);try{E.chmodSync(_,438)}catch(x){if(x.code==="ENOENT")return;throw h}try{v=E.statSync(_)}catch(x){if(x.code==="ENOENT")return;throw h}v.isDirectory()?m(_,E,h):E.unlinkSync(_)}function l(_,E,h,v){n(_),n(E),h&&n(h instanceof Error),n(typeof v=="function"),E.rmdir(_,x=>{x&&(x.code==="ENOTEMPTY"||x.code==="EEXIST"||x.code==="EPERM")?f(_,E,v):x&&x.code==="ENOTDIR"?v(h):v(x)})}function f(_,E,h){n(_),n(E),n(typeof h=="function"),E.readdir(_,(v,x)=>{if(v)return h(v);let y=x.length,A;if(y===0)return E.rmdir(_,h);x.forEach(b=>{o(i.join(_,b),E,k=>{if(!A){if(k)return h(A=k);--y===0&&E.rmdir(_,h)}})})})}function d(_,E){let h;E=E||{},s(E),n(_,"rimraf: missing path"),n.strictEqual(typeof _,"string","rimraf: path should be a string"),n(E,"rimraf: missing options"),n.strictEqual(typeof E,"object","rimraf: options should be object");try{h=E.lstatSync(_)}catch(v){if(v.code==="ENOENT")return;v.code==="EPERM"&&u&&p(_,E,v)}try{h&&h.isDirectory()?m(_,E,null):E.unlinkSync(_)}catch(v){if(v.code==="ENOENT")return;if(v.code==="EPERM")return u?p(_,E,v):m(_,E,v);if(v.code!=="EISDIR")throw v;m(_,E,v)}}function m(_,E,h){n(_),n(E),h&&n(h instanceof Error);try{E.rmdirSync(_)}catch(v){if(v.code==="ENOTDIR")throw h;if(v.code==="ENOTEMPTY"||v.code==="EEXIST"||v.code==="EPERM")g(_,E);else if(v.code!=="ENOENT")throw v}}function g(_,E){if(n(_),n(E),E.readdirSync(_).forEach(h=>d(i.join(_,h),E)),u){let h=Date.now();do try{return E.rmdirSync(_,E)}catch{}while(Date.now()-h<500)}else return E.rmdirSync(_,E)}t.exports=o,o.sync=d}),Ai=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=$x();t.exports={remove:r(i),removeSync:i.sync}}),Hx=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=Oe(),n=ae("path"),u=ot(),s=Ai(),o=r(function(c,p){p=p||function(){},i.readdir(c,(l,f)=>{if(l)return u.mkdirs(c,p);f=f.map(m=>n.join(c,m)),d();function d(){let m=f.pop();if(!m)return p();s.remove(m,g=>{if(g)return p(g);d()})}})});function a(c){let p;try{p=i.readdirSync(c)}catch{return u.mkdirsSync(c)}p.forEach(l=>{l=n.join(c,l),s.removeSync(l)})}t.exports={emptyDirSync:a,emptydirSync:a,emptyDir:o,emptydir:o}}),Gx=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=ae("path"),n=Oe(),u=ot(),s=Dt().pathExists;function o(c,p){function l(){n.writeFile(c,"",f=>{if(f)return p(f);p()})}n.stat(c,(f,d)=>{if(!f&&d.isFile())return p();let m=i.dirname(c);s(m,(g,_)=>{if(g)return p(g);if(_)return l();u.mkdirs(m,E=>{if(E)return p(E);l()})})})}function a(c){let p;try{p=n.statSync(c)}catch{}if(p&&p.isFile())return;let l=i.dirname(c);n.existsSync(l)||u.mkdirsSync(l),n.writeFileSync(c,"")}t.exports={createFile:r(o),createFileSync:a}}),qx=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=ae("path"),n=Oe(),u=ot(),s=Dt().pathExists;function o(c,p,l){function f(d,m){n.link(d,m,g=>{if(g)return l(g);l(null)})}s(p,(d,m)=>{if(d)return l(d);if(m)return l(null);n.lstat(c,g=>{if(g)return g.message=g.message.replace("lstat","ensureLink"),l(g);let _=i.dirname(p);s(_,(E,h)=>{if(E)return l(E);if(h)return f(c,p);u.mkdirs(_,v=>{if(v)return l(v);f(c,p)})})})})}function a(c,p){if(n.existsSync(p))return;try{n.lstatSync(c)}catch(f){throw f.message=f.message.replace("lstat","ensureLink"),f}let l=i.dirname(p);return n.existsSync(l)||u.mkdirsSync(l),n.linkSync(c,p)}t.exports={createLink:r(o),createLinkSync:a}}),Ux=U((e,t)=>{"use strict";H();var r=ae("path"),i=Oe(),n=Dt().pathExists;function u(o,a,c){if(r.isAbsolute(o))return i.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),c(p)):c(null,{toCwd:o,toDst:o}));{let p=r.dirname(a),l=r.join(p,o);return n(l,(f,d)=>f?c(f):d?c(null,{toCwd:l,toDst:o}):i.lstat(o,m=>m?(m.message=m.message.replace("lstat","ensureSymlink"),c(m)):c(null,{toCwd:o,toDst:r.relative(p,o)})))}}function s(o,a){let c;if(r.isAbsolute(o)){if(c=i.existsSync(o),!c)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let p=r.dirname(a),l=r.join(p,o);if(c=i.existsSync(l),c)return{toCwd:l,toDst:o};if(c=i.existsSync(o),!c)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:r.relative(p,o)}}}t.exports={symlinkPaths:u,symlinkPathsSync:s}}),Wx=U((e,t)=>{"use strict";H();var r=Oe();function i(u,s,o){if(o=typeof s=="function"?s:o,s=typeof s=="function"?!1:s,s)return o(null,s);r.lstat(u,(a,c)=>{if(a)return o(null,"file");s=c&&c.isDirectory()?"dir":"file",o(null,s)})}function n(u,s){let o;if(s)return s;try{o=r.lstatSync(u)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}t.exports={symlinkType:i,symlinkTypeSync:n}}),Kx=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=ae("path"),n=Oe(),u=ot(),s=u.mkdirs,o=u.mkdirsSync,a=Ux(),c=a.symlinkPaths,p=a.symlinkPathsSync,l=Wx(),f=l.symlinkType,d=l.symlinkTypeSync,m=Dt().pathExists;function g(E,h,v,x){x=typeof v=="function"?v:x,v=typeof v=="function"?!1:v,m(h,(y,A)=>{if(y)return x(y);if(A)return x(null);c(E,h,(b,k)=>{if(b)return x(b);E=k.toDst,f(k.toCwd,v,(D,F)=>{if(D)return x(D);let w=i.dirname(h);m(w,(O,P)=>{if(O)return x(O);if(P)return n.symlink(E,h,F,x);s(w,C=>{if(C)return x(C);n.symlink(E,h,F,x)})})})})})}function _(E,h,v){if(n.existsSync(h))return;let x=p(E,h);E=x.toDst,v=d(x.toCwd,v);let y=i.dirname(h);return n.existsSync(y)||o(y),n.symlinkSync(E,h,v)}t.exports={createSymlink:r(g),createSymlinkSync:_}}),Yx=U((e,t)=>{"use strict";H();var r=Gx(),i=qx(),n=Kx();t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:n.createSymlink,createSymlinkSync:n.createSymlinkSync,ensureSymlink:n.createSymlink,ensureSymlinkSync:n.createSymlinkSync}}),Vx=U((e,t)=>{H();var r;try{r=Oe()}catch{r=ae("fs")}function i(p,l,f){f==null&&(f=l,l={}),typeof l=="string"&&(l={encoding:l}),l=l||{};var d=l.fs||r,m=!0;"throws"in l&&(m=l.throws),d.readFile(p,l,function(g,_){if(g)return f(g);_=a(_);var E;try{E=JSON.parse(_,l?l.reviver:null)}catch(h){return m?(h.message=p+": "+h.message,f(h)):f(null,null)}f(null,E)})}function n(p,l){l=l||{},typeof l=="string"&&(l={encoding:l});var f=l.fs||r,d=!0;"throws"in l&&(d=l.throws);try{var m=f.readFileSync(p,l);return m=a(m),JSON.parse(m,l.reviver)}catch(g){if(d)throw g.message=p+": "+g.message,g;return null}}function u(p,l){var f,d=`
|
86
|
+
`;typeof l=="object"&&l!==null&&(l.spaces&&(f=l.spaces),l.EOL&&(d=l.EOL));var m=JSON.stringify(p,l?l.replacer:null,f);return m.replace(/\n/g,d)+d}function s(p,l,f,d){d==null&&(d=f,f={}),f=f||{};var m=f.fs||r,g="";try{g=u(l,f)}catch(_){d&&d(_,null);return}m.writeFile(p,g,f,d)}function o(p,l,f){f=f||{};var d=f.fs||r,m=u(l,f);return d.writeFileSync(p,m,f)}function a(p){return Buffer.isBuffer(p)&&(p=p.toString("utf8")),p=p.replace(/^\uFEFF/,""),p}var c={readFile:i,readFileSync:n,writeFile:s,writeFileSync:o};t.exports=c}),xa=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=Vx();t.exports={readJson:r(i.readFile),readJsonSync:i.readFileSync,writeJson:r(i.writeFile),writeJsonSync:i.writeFileSync}}),Qx=U((e,t)=>{"use strict";H();var r=ae("path"),i=ot(),n=Dt().pathExists,u=xa();function s(o,a,c,p){typeof c=="function"&&(p=c,c={});let l=r.dirname(o);n(l,(f,d)=>{if(f)return p(f);if(d)return u.writeJson(o,a,c,p);i.mkdirs(l,m=>{if(m)return p(m);u.writeJson(o,a,c,p)})})}t.exports=s}),Xx=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=ot(),u=xa();function s(o,a,c){let p=i.dirname(o);r.existsSync(p)||n.mkdirsSync(p),u.writeJsonSync(o,a,c)}t.exports=s}),Jx=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=xa();i.outputJson=r(Qx()),i.outputJsonSync=Xx(),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i}),Zx=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=Od().copySync,u=Ai().removeSync,s=ot().mkdirpSync,o=Si();function a(f,d,m){m=m||{};let g=m.overwrite||m.clobber||!1,{srcStat:_}=o.checkPathsSync(f,d,"move");return o.checkParentPathsSync(f,_,d,"move"),s(i.dirname(d)),c(f,d,g)}function c(f,d,m){if(m)return u(d),p(f,d,m);if(r.existsSync(d))throw new Error("dest already exists.");return p(f,d,m)}function p(f,d,m){try{r.renameSync(f,d)}catch(g){if(g.code!=="EXDEV")throw g;return l(f,d,m)}}function l(f,d,m){return n(f,d,{overwrite:m,errorOnExist:!0}),u(f)}t.exports=a}),zx=U((e,t)=>{"use strict";H(),t.exports={moveSync:Zx()}}),ew=U((e,t)=>{"use strict";H();var r=Oe(),i=ae("path"),n=Td().copy,u=Ai().remove,s=ot().mkdirp,o=Dt().pathExists,a=Si();function c(d,m,g,_){typeof g=="function"&&(_=g,g={});let E=g.overwrite||g.clobber||!1;a.checkPaths(d,m,"move",(h,v)=>{if(h)return _(h);let{srcStat:x}=v;a.checkParentPaths(d,x,m,"move",y=>{if(y)return _(y);s(i.dirname(m),A=>A?_(A):p(d,m,E,_))})})}function p(d,m,g,_){if(g)return u(m,E=>E?_(E):l(d,m,g,_));o(m,(E,h)=>E?_(E):h?_(new Error("dest already exists.")):l(d,m,g,_))}function l(d,m,g,_){r.rename(d,m,E=>E?E.code!=="EXDEV"?_(E):f(d,m,g,_):_())}function f(d,m,g,_){n(d,m,{overwrite:g,errorOnExist:!0},E=>E?_(E):u(d,_))}t.exports=c}),tw=U((e,t)=>{"use strict";H();var r=Ze().fromCallback;t.exports={move:r(ew())}}),rw=U((e,t)=>{"use strict";H();var r=Ze().fromCallback,i=Oe(),n=ae("path"),u=ot(),s=Dt().pathExists;function o(c,p,l,f){typeof l=="function"&&(f=l,l="utf8");let d=n.dirname(c);s(d,(m,g)=>{if(m)return f(m);if(g)return i.writeFile(c,p,l,f);u.mkdirs(d,_=>{if(_)return f(_);i.writeFile(c,p,l,f)})})}function a(c,...p){let l=n.dirname(c);if(i.existsSync(l))return i.writeFileSync(c,...p);u.mkdirsSync(l),i.writeFileSync(c,...p)}t.exports={outputFile:r(o),outputFileSync:a}}),nw=U((e,t)=>{"use strict";H(),t.exports=Object.assign({},kd(),Od(),Td(),Hx(),Yx(),Jx(),ot(),zx(),tw(),rw(),Dt(),Ai());var r=ae("fs");Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(t.exports,"promises",{get(){return r.promises}})});H();H();var l2=Mt(xx());H();H();function iw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}H();H();function ba(e){return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ba(e)}H();function ow(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sw(e,t){if(t&&(ba(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ow(e)}H();function Ei(e){return Ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ei(e)}H();H();function un(e,t){return un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},un(e,t)}function aw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&un(e,t)}H();H();function uw(e){return Function.toString.call(e).indexOf("[native code]")!==-1}H();H();function cw(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _i(e,t,r){return cw()?_i=Reflect.construct.bind():_i=function(i,n,u){var s=[null];s.push.apply(s,n);var o=Function.bind.apply(i,s),a=new o;return u&&un(a,u.prototype),a},_i.apply(null,arguments)}function Da(e){var t=typeof Map=="function"?new Map:void 0;return Da=function(r){if(r===null||!uw(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return _i(r,arguments,Ei(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),un(i,r)},Da(e)}var p2=Mt(Ox()),f2=Mt(nw()),d2=function(e){aw(t,e);function t(r){var i;return iw(this,t),i=sw(this,Ei(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return t}(Da(Error));H();var pw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(i){return i.reduce((n,u)=>[].concat(n,u),[])}e.flatten=t;function r(i,n){let u=[[]],s=0;for(let o of i)n(o)?(s++,u[s]=[]):u[s].push(o);return u}e.splitWhen=r}),fw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t}),dw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new t(i,n)}e.createDirentFromStats=r}),hw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var t=ae("path"),r=2,i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function n(a){return a.replace(/\\/g,"/")}e.unixify=n;function u(a,c){return t.resolve(a,c)}e.makeAbsolute=u;function s(a){return a.replace(i,"\\$2")}e.escape=s;function o(a){if(a.charAt(0)==="."){let c=a.charAt(1);if(c==="/"||c==="\\")return a.slice(r)}return a}e.removeLeadingDotSegment=o}),mw=U((e,t)=>{H(),t.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(i[2])return!0;r=r.slice(i.index+i[0].length)}return!1}}),yw=U((e,t)=>{H();var r=mw(),i={"{":"}","(":")","[":"]"},n=function(s){if(s[0]==="!")return!0;for(var o=0,a=-2,c=-2,p=-2,l=-2,f=-2;o<s.length;){if(s[o]==="*"||s[o+1]==="?"&&/[\].+)]/.test(s[o])||c!==-1&&s[o]==="["&&s[o+1]!=="]"&&(c<o&&(c=s.indexOf("]",o)),c>o&&(f===-1||f>c||(f=s.indexOf("\\",o),f===-1||f>c)))||p!==-1&&s[o]==="{"&&s[o+1]!=="}"&&(p=s.indexOf("}",o),p>o&&(f=s.indexOf("\\",o),f===-1||f>p))||l!==-1&&s[o]==="("&&s[o+1]==="?"&&/[:!=]/.test(s[o+2])&&s[o+3]!==")"&&(l=s.indexOf(")",o),l>o&&(f=s.indexOf("\\",o),f===-1||f>l))||a!==-1&&s[o]==="("&&s[o+1]!=="|"&&(a<o&&(a=s.indexOf("|",o)),a!==-1&&s[a+1]!==")"&&(l=s.indexOf(")",a),l>a&&(f=s.indexOf("\\",a),f===-1||f>l))))return!0;if(s[o]==="\\"){var d=s[o+1];o+=2;var m=i[d];if(m){var g=s.indexOf(m,o);g!==-1&&(o=g+1)}if(s[o]==="!")return!0}else o++}return!1},u=function(s){if(s[0]==="!")return!0;for(var o=0;o<s.length;){if(/[*?{}()[\]]/.test(s[o]))return!0;if(s[o]==="\\"){var a=s[o+1];o+=2;var c=i[a];if(c){var p=s.indexOf(c,o);p!==-1&&(o=p+1)}if(s[o]==="!")return!0}else o++}return!1};t.exports=function(s,o){if(typeof s!="string"||s==="")return!1;if(r(s))return!0;var a=n;return o&&o.strict===!1&&(a=u),a(s)}}),gw=U((e,t)=>{"use strict";H();var r=yw(),i=ae("path").posix.dirname,n=ae("os").platform()==="win32",u="/",s=/\\/g,o=/[\{\[].*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(p,l){var f=Object.assign({flipBackslashes:!0},l);f.flipBackslashes&&n&&p.indexOf(u)<0&&(p=p.replace(s,u)),o.test(p)&&(p+=u),p+="a";do p=i(p);while(r(p)||a.test(p));return p.replace(c,"$1")}}),La=U(e=>{"use strict";H(),e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(i=>i.type===r),e.exceedsLimit=(t,r,i=1,n)=>n===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(i)>=n,e.escapeNode=(t,r=0,i)=>{let n=t.nodes[r];!n||(i&&n.type===i||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,i)=>(i.type==="text"&&r.push(i.value),i.type==="range"&&(i.type="text"),r),[]),e.flatten=(...t)=>{let r=[],i=n=>{for(let u=0;u<n.length;u++){let s=n[u];Array.isArray(s)?i(s,r):s!==void 0&&r.push(s)}return r};return i(t),r}}),Ia=U((e,t)=>{"use strict";H();var r=La();t.exports=(i,n={})=>{let u=(s,o={})=>{let a=n.escapeInvalid&&r.isInvalidBrace(o),c=s.invalid===!0&&n.escapeInvalid===!0,p="";if(s.value)return(a||c)&&r.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let l of s.nodes)p+=u(l);return p};return u(i)}}),vw=U((e,t)=>{"use strict";H(),t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}),_w=U((e,t)=>{"use strict";H();var r=vw(),i=(h,v,x)=>{if(r(h)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(v===void 0||h===v)return String(h);if(r(v)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let y={relaxZeros:!0,...x};typeof y.strictZeros=="boolean"&&(y.relaxZeros=y.strictZeros===!1);let A=String(y.relaxZeros),b=String(y.shorthand),k=String(y.capture),D=String(y.wrap),F=h+":"+v+"="+A+b+k+D;if(i.cache.hasOwnProperty(F))return i.cache[F].result;let w=Math.min(h,v),O=Math.max(h,v);if(Math.abs(w-O)===1){let L=h+"|"+v;return y.capture?`(${L})`:y.wrap===!1?L:`(?:${L})`}let P=_(h)||_(v),C={min:h,max:v,a:w,b:O},S=[],R=[];if(P&&(C.isPadded=P,C.maxLen=String(C.max).length),w<0){let L=O<0?Math.abs(O):1;R=o(L,Math.abs(w),C,y),w=C.a=0}return O>=0&&(S=o(w,O,C,y)),C.negatives=R,C.positives=S,C.result=n(R,S,y),y.capture===!0?C.result=`(${C.result})`:y.wrap!==!1&&S.length+R.length>1&&(C.result=`(?:${C.result})`),i.cache[F]=C,C.result};function n(h,v,x){let y=a(h,v,"-",!1,x)||[],A=a(v,h,"",!1,x)||[],b=a(h,v,"-?",!0,x)||[];return y.concat(b).concat(A).join("|")}function u(h,v){let x=1,y=1,A=f(h,x),b=new Set([v]);for(;h<=A&&A<=v;)b.add(A),x+=1,A=f(h,x);for(A=d(v+1,y)-1;h<A&&A<=v;)b.add(A),y+=1,A=d(v+1,y)-1;return b=[...b],b.sort(p),b}function s(h,v,x){if(h===v)return{pattern:h,count:[],digits:0};let y=c(h,v),A=y.length,b="",k=0;for(let D=0;D<A;D++){let[F,w]=y[D];F===w?b+=F:F!=="0"||w!=="9"?b+=g(F,w,x):k++}return k&&(b+=x.shorthand===!0?"\\d":"[0-9]"),{pattern:b,count:[k],digits:A}}function o(h,v,x,y){let A=u(h,v),b=[],k=h,D;for(let F=0;F<A.length;F++){let w=A[F],O=s(String(k),String(w),y),P="";if(!x.isPadded&&D&&D.pattern===O.pattern){D.count.length>1&&D.count.pop(),D.count.push(O.count[0]),D.string=D.pattern+m(D.count),k=w+1;continue}x.isPadded&&(P=E(w,x,y)),O.string=P+O.pattern+m(O.count),b.push(O),k=w+1,D=O}return b}function a(h,v,x,y,A){let b=[];for(let k of h){let{string:D}=k;!y&&!l(v,"string",D)&&b.push(x+D),y&&l(v,"string",D)&&b.push(x+D)}return b}function c(h,v){let x=[];for(let y=0;y<h.length;y++)x.push([h[y],v[y]]);return x}function p(h,v){return h>v?1:v>h?-1:0}function l(h,v,x){return h.some(y=>y[v]===x)}function f(h,v){return Number(String(h).slice(0,-v)+"9".repeat(v))}function d(h,v){return h-h%Math.pow(10,v)}function m(h){let[v=0,x=""]=h;return x||v>1?`{${v+(x?","+x:"")}}`:""}function g(h,v,x){return`[${h}${v-h===1?"":"-"}${v}]`}function _(h){return/^-?(0+)\d/.test(h)}function E(h,v,x){if(!v.isPadded)return h;let y=Math.abs(v.maxLen-String(h).length),A=x.relaxZeros!==!1;switch(y){case 0:return"";case 1:return A?"0?":"0";case 2:return A?"0{0,2}":"00";default:return A?`0{0,${y}}`:`0{${y}}`}}i.cache={},i.clearCache=()=>i.cache={},t.exports=i}),Vd=U((e,t)=>{"use strict";H();var r=ae("util"),i=_w(),n=y=>y!==null&&typeof y=="object"&&!Array.isArray(y),u=y=>A=>y===!0?Number(A):String(A),s=y=>typeof y=="number"||typeof y=="string"&&y!=="",o=y=>Number.isInteger(+y),a=y=>{let A=`${y}`,b=-1;if(A[0]==="-"&&(A=A.slice(1)),A==="0")return!1;for(;A[++b]==="0";);return b>0},c=(y,A,b)=>typeof y=="string"||typeof A=="string"?!0:b.stringify===!0,p=(y,A,b)=>{if(A>0){let k=y[0]==="-"?"-":"";k&&(y=y.slice(1)),y=k+y.padStart(k?A-1:A,"0")}return b===!1?String(y):y},l=(y,A)=>{let b=y[0]==="-"?"-":"";for(b&&(y=y.slice(1),A--);y.length<A;)y="0"+y;return b?"-"+y:y},f=(y,A)=>{y.negatives.sort((w,O)=>w<O?-1:w>O?1:0),y.positives.sort((w,O)=>w<O?-1:w>O?1:0);let b=A.capture?"":"?:",k="",D="",F;return y.positives.length&&(k=y.positives.join("|")),y.negatives.length&&(D=`-(${b}${y.negatives.join("|")})`),k&&D?F=`${k}|${D}`:F=k||D,A.wrap?`(${b}${F})`:F},d=(y,A,b,k)=>{if(b)return i(y,A,{wrap:!1,...k});let D=String.fromCharCode(y);if(y===A)return D;let F=String.fromCharCode(A);return`[${D}-${F}]`},m=(y,A,b)=>{if(Array.isArray(y)){let k=b.wrap===!0,D=b.capture?"":"?:";return k?`(${D}${y.join("|")})`:y.join("|")}return i(y,A,b)},g=(...y)=>new RangeError("Invalid range arguments: "+r.inspect(...y)),_=(y,A,b)=>{if(b.strictRanges===!0)throw g([y,A]);return[]},E=(y,A)=>{if(A.strictRanges===!0)throw new TypeError(`Expected step "${y}" to be a number`);return[]},h=(y,A,b=1,k={})=>{let D=Number(y),F=Number(A);if(!Number.isInteger(D)||!Number.isInteger(F)){if(k.strictRanges===!0)throw g([y,A]);return[]}D===0&&(D=0),F===0&&(F=0);let w=D>F,O=String(y),P=String(A),C=String(b);b=Math.max(Math.abs(b),1);let S=a(O)||a(P)||a(C),R=S?Math.max(O.length,P.length,C.length):0,L=S===!1&&c(y,A,k)===!1,M=k.transform||u(L);if(k.toRegex&&b===1)return d(l(y,R),l(A,R),!0,k);let B={negatives:[],positives:[]},Q=N=>B[N<0?"negatives":"positives"].push(Math.abs(N)),Z=[],oe=0;for(;w?D>=F:D<=F;)k.toRegex===!0&&b>1?Q(D):Z.push(p(M(D,oe),R,L)),D=w?D-b:D+b,oe++;return k.toRegex===!0?b>1?f(B,k):m(Z,null,{wrap:!1,...k}):Z},v=(y,A,b=1,k={})=>{if(!o(y)&&y.length>1||!o(A)&&A.length>1)return _(y,A,k);let D=k.transform||(L=>String.fromCharCode(L)),F=`${y}`.charCodeAt(0),w=`${A}`.charCodeAt(0),O=F>w,P=Math.min(F,w),C=Math.max(F,w);if(k.toRegex&&b===1)return d(P,C,!1,k);let S=[],R=0;for(;O?F>=w:F<=w;)S.push(D(F,R)),F=O?F-b:F+b,R++;return k.toRegex===!0?m(S,null,{wrap:!1,options:k}):S},x=(y,A,b,k={})=>{if(A==null&&s(y))return[y];if(!s(y)||!s(A))return _(y,A,k);if(typeof b=="function")return x(y,A,1,{transform:b});if(n(b))return x(y,A,0,b);let D={...k};return D.capture===!0&&(D.wrap=!0),b=b||D.step||1,o(b)?o(y)&&o(A)?h(y,A,b,D):v(y,A,Math.max(Math.abs(b),1),D):b!=null&&!n(b)?E(b,D):x(y,A,1,b)};t.exports=x}),Ew=U((e,t)=>{"use strict";H();var r=Vd(),i=La(),n=(u,s={})=>{let o=(a,c={})=>{let p=i.isInvalidBrace(c),l=a.invalid===!0&&s.escapeInvalid===!0,f=p===!0||l===!0,d=s.escapeInvalid===!0?"\\":"",m="";if(a.isOpen===!0||a.isClose===!0)return d+a.value;if(a.type==="open")return f?d+a.value:"(";if(a.type==="close")return f?d+a.value:")";if(a.type==="comma")return a.prev.type==="comma"?"":f?a.value:"|";if(a.value)return a.value;if(a.nodes&&a.ranges>0){let g=i.reduce(a.nodes),_=r(...g,{...s,wrap:!1,toRegex:!0});if(_.length!==0)return g.length>1&&_.length>1?`(${_})`:_}if(a.nodes)for(let g of a.nodes)m+=o(g,a);return m};return o(u)};t.exports=n}),Sw=U((e,t)=>{"use strict";H();var r=Vd(),i=Ia(),n=La(),u=(o="",a="",c=!1)=>{let p=[];if(o=[].concat(o),a=[].concat(a),!a.length)return o;if(!o.length)return c?n.flatten(a).map(l=>`{${l}}`):a;for(let l of o)if(Array.isArray(l))for(let f of l)p.push(u(f,a,c));else for(let f of a)c===!0&&typeof f=="string"&&(f=`{${f}}`),p.push(Array.isArray(f)?u(l,f,c):l+f);return n.flatten(p)},s=(o,a={})=>{let c=a.rangeLimit===void 0?1e3:a.rangeLimit,p=(l,f={})=>{l.queue=[];let d=f,m=f.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,m=d.queue;if(l.invalid||l.dollar){m.push(u(m.pop(),i(l,a)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){m.push(u(m.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let h=n.reduce(l.nodes);if(n.exceedsLimit(...h,a.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let v=r(...h,a);v.length===0&&(v=i(l,a)),m.push(u(m.pop(),v)),l.nodes=[];return}let g=n.encloseBrace(l),_=l.queue,E=l;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,_=E.queue;for(let h=0;h<l.nodes.length;h++){let v=l.nodes[h];if(v.type==="comma"&&l.type==="brace"){h===1&&_.push(""),_.push("");continue}if(v.type==="close"){m.push(u(m.pop(),_,g));continue}if(v.value&&v.type!=="open"){_.push(u(_.pop(),v.value));continue}v.nodes&&p(v,l)}return _};return n.flatten(p(o))};t.exports=s}),Aw=U((e,t)=>{"use strict";H(),t.exports={MAX_LENGTH:1024*64,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:`
|
87
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),bw=U((e,t)=>{"use strict";H();var r=Ia(),{MAX_LENGTH:i,CHAR_BACKSLASH:n,CHAR_BACKTICK:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:a,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=Aw(),h=(v,x={})=>{if(typeof v!="string")throw new TypeError("Expected a string");let y=x||{},A=typeof y.maxLength=="number"?Math.min(i,y.maxLength):i;if(v.length>A)throw new SyntaxError(`Input length (${v.length}), exceeds max characters (${A})`);let b={type:"root",input:v,nodes:[]},k=[b],D=b,F=b,w=0,O=v.length,P=0,C=0,S,R={},L=()=>v[P++],M=B=>{if(B.type==="text"&&F.type==="dot"&&(F.type="text"),F&&F.type==="text"&&B.type==="text"){F.value+=B.value;return}return D.nodes.push(B),B.parent=D,B.prev=F,F=B,B};for(M({type:"bos"});P<O;)if(D=k[k.length-1],S=L(),!(S===E||S===_)){if(S===n){M({type:"text",value:(x.keepEscaping?S:"")+L()});continue}if(S===d){M({type:"text",value:"\\"+S});continue}if(S===f){w++;let B=!0,Q;for(;P<O&&(Q=L());){if(S+=Q,Q===f){w++;continue}if(Q===n){S+=L();continue}if(Q===d&&(w--,w===0))break}M({type:"text",value:S});continue}if(S===a){D=M({type:"paren",nodes:[]}),k.push(D),M({type:"text",value:S});continue}if(S===c){if(D.type!=="paren"){M({type:"text",value:S});continue}D=k.pop(),M({type:"text",value:S}),D=k[k.length-1];continue}if(S===m||S===g||S===u){let B=S,Q;for(x.keepQuotes!==!0&&(S="");P<O&&(Q=L());){if(Q===n){S+=Q+L();continue}if(Q===B){x.keepQuotes===!0&&(S+=Q);break}S+=Q}M({type:"text",value:S});continue}if(S===p){C++;let B=F.value&&F.value.slice(-1)==="$"||D.dollar===!0;D=M({type:"brace",open:!0,close:!1,dollar:B,depth:C,commas:0,ranges:0,nodes:[]}),k.push(D),M({type:"open",value:S});continue}if(S===l){if(D.type!=="brace"){M({type:"text",value:S});continue}let B="close";D=k.pop(),D.close=!0,M({type:B,value:S}),C--,D=k[k.length-1];continue}if(S===s&&C>0){if(D.ranges>0){D.ranges=0;let B=D.nodes.shift();D.nodes=[B,{type:"text",value:r(D)}]}M({type:"comma",value:S}),D.commas++;continue}if(S===o&&C>0&&D.commas===0){let B=D.nodes;if(C===0||B.length===0){M({type:"text",value:S});continue}if(F.type==="dot"){if(D.range=[],F.value+=S,F.type="range",D.nodes.length!==3&&D.nodes.length!==5){D.invalid=!0,D.ranges=0,F.type="text";continue}D.ranges++,D.args=[];continue}if(F.type==="range"){B.pop();let Q=B[B.length-1];Q.value+=F.value+S,F=Q,D.ranges--;continue}M({type:"dot",value:S});continue}M({type:"text",value:S})}do if(D=k.pop(),D.type!=="root"){D.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});let B=k[k.length-1],Q=B.nodes.indexOf(D);B.nodes.splice(Q,1,...D.nodes)}while(k.length>0);return M({type:"eos"}),b};t.exports=h}),Dw=U((e,t)=>{"use strict";H();var r=Ia(),i=Ew(),n=Sw(),u=bw(),s=(o,a={})=>{let c=[];if(Array.isArray(o))for(let p of o){let l=s.create(p,a);Array.isArray(l)?c.push(...l):c.push(l)}else c=[].concat(s.create(o,a));return a&&a.expand===!0&&a.nodupes===!0&&(c=[...new Set(c)]),c};s.parse=(o,a={})=>u(o,a),s.stringify=(o,a={})=>r(typeof o=="string"?s.parse(o,a):o,a),s.compile=(o,a={})=>(typeof o=="string"&&(o=s.parse(o,a)),i(o,a)),s.expand=(o,a={})=>{typeof o=="string"&&(o=s.parse(o,a));let c=n(o,a);return a.noempty===!0&&(c=c.filter(Boolean)),a.nodupes===!0&&(c=[...new Set(c)]),c},s.create=(o,a={})=>o===""||o.length<3?[o]:a.expand!==!0?s.compile(o,a):s.expand(o,a),t.exports=s}),ki=U((e,t)=>{"use strict";H();var r=ae("path"),i="\\\\/",n=`[^${i}]`,u="\\.",s="\\+",o="\\?",a="\\/",c="(?=.)",p="[^/]",l=`(?:${a}|$)`,f=`(?:^|${a})`,d=`${u}{1,2}${l}`,m=`(?!${u})`,g=`(?!${f}${d})`,_=`(?!${u}{0,1}${l})`,E=`(?!${d})`,h=`[^.${a}]`,v=`${p}*?`,x={DOT_LITERAL:u,PLUS_LITERAL:s,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,QMARK:p,END_ANCHOR:l,DOTS_SLASH:d,NO_DOT:m,NO_DOTS:g,NO_DOT_SLASH:_,NO_DOTS_SLASH:E,QMARK_NO_DOT:h,STAR:v,START_ANCHOR:f},y={...x,SLASH_LITERAL:`[${i}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${u}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${u})`,NO_DOTS:`(?!(?:^|[${i}])${u}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${u}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${u}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},A={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:A,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(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===!0?y:x}}}),Fi=U(e=>{"use strict";H();var t=ae("path"),r=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_GLOBAL:s}=ki();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>u.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(s,"\\$1"),e.toPosixSlashes=o=>o.replace(i,"/"),e.removeBackslashes=o=>o.replace(n,a=>a==="\\"?"":a),e.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},e.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||t.sep==="\\",e.escapeLast=(o,a,c)=>{let p=o.lastIndexOf(a,c);return p===-1?o:o[p-1]==="\\"?e.escapeLast(o,a,p-1):`${o.slice(0,p)}\\${o.slice(p)}`},e.removePrefix=(o,a={})=>{let c=o;return c.startsWith("./")&&(c=c.slice(2),a.prefix="./"),c},e.wrapOutput=(o,a={},c={})=>{let p=c.contains?"":"^",l=c.contains?"":"$",f=`${p}(?:${o})${l}`;return a.negated===!0&&(f=`(?:^(?!${f}).*$)`),f}}),xw=U((e,t)=>{"use strict";H();var r=Fi(),{CHAR_ASTERISK:i,CHAR_AT:n,CHAR_BACKWARD_SLASH:u,CHAR_COMMA:s,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:d,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:E}=ki(),h=y=>y===c||y===u,v=y=>{y.isPrefix!==!0&&(y.depth=y.isGlobstar?1/0:1)},x=(y,A)=>{let b=A||{},k=y.length-1,D=b.parts===!0||b.scanToEnd===!0,F=[],w=[],O=[],P=y,C=-1,S=0,R=0,L=!1,M=!1,B=!1,Q=!1,Z=!1,oe=!1,N=!1,le=!1,pe=!1,ne=!1,T=0,I,$,K={value:"",depth:0,isGlob:!1},Y=()=>C>=k,z=()=>P.charCodeAt(C+1),X=()=>(I=$,P.charCodeAt(++C));for(;C<k;){$=X();let re;if($===u){N=K.backslashes=!0,$=X(),$===p&&(oe=!0);continue}if(oe===!0||$===p){for(T++;Y()!==!0&&($=X());){if($===u){N=K.backslashes=!0,X();continue}if($===p){T++;continue}if(oe!==!0&&$===o&&($=X())===o){if(L=K.isBrace=!0,B=K.isGlob=!0,ne=!0,D===!0)continue;break}if(oe!==!0&&$===s){if(L=K.isBrace=!0,B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===g&&(T--,T===0)){oe=!1,L=K.isBrace=!0,ne=!0;break}}if(D===!0)continue;break}if($===c){if(F.push(C),w.push(K),K={value:"",depth:0,isGlob:!1},ne===!0)continue;if(I===o&&C===S+1){S+=2;continue}R=C+1;continue}if(b.noext!==!0&&($===d||$===n||$===i||$===m||$===a)&&z()===l){if(B=K.isGlob=!0,Q=K.isExtglob=!0,ne=!0,$===a&&C===S&&(pe=!0),D===!0){for(;Y()!==!0&&($=X());){if($===u){N=K.backslashes=!0,$=X();continue}if($===_){B=K.isGlob=!0,ne=!0;break}}continue}break}if($===i){if(I===i&&(Z=K.isGlobstar=!0),B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===m){if(B=K.isGlob=!0,ne=!0,D===!0)continue;break}if($===f){for(;Y()!==!0&&(re=X());){if(re===u){N=K.backslashes=!0,X();continue}if(re===E){M=K.isBracket=!0,B=K.isGlob=!0,ne=!0;break}}if(D===!0)continue;break}if(b.nonegate!==!0&&$===a&&C===S){le=K.negated=!0,S++;continue}if(b.noparen!==!0&&$===l){if(B=K.isGlob=!0,D===!0){for(;Y()!==!0&&($=X());){if($===l){N=K.backslashes=!0,$=X();continue}if($===_){ne=!0;break}}continue}break}if(B===!0){if(ne=!0,D===!0)continue;break}}b.noext===!0&&(Q=!1,B=!1);let ee=P,ie="",ye="";S>0&&(ie=P.slice(0,S),P=P.slice(S),R-=S),ee&&B===!0&&R>0?(ee=P.slice(0,R),ye=P.slice(R)):B===!0?(ee="",ye=P):ee=P,ee&&ee!==""&&ee!=="/"&&ee!==P&&h(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),b.unescape===!0&&(ye&&(ye=r.removeBackslashes(ye)),ee&&N===!0&&(ee=r.removeBackslashes(ee)));let se={prefix:ie,input:y,start:S,base:ee,glob:ye,isBrace:L,isBracket:M,isGlob:B,isExtglob:Q,isGlobstar:Z,negated:le,negatedExtglob:pe};if(b.tokens===!0&&(se.maxDepth=0,h($)||w.push(K),se.tokens=w),b.parts===!0||b.tokens===!0){let re;for(let Ee=0;Ee<F.length;Ee++){let Ut=re?re+1:S,V=F[Ee],fe=y.slice(Ut,V);b.tokens&&(Ee===0&&S!==0?(w[Ee].isPrefix=!0,w[Ee].value=ie):w[Ee].value=fe,v(w[Ee]),se.maxDepth+=w[Ee].depth),(Ee!==0||fe!=="")&&O.push(fe),re=V}if(re&&re+1<y.length){let Ee=y.slice(re+1);O.push(Ee),b.tokens&&(w[w.length-1].value=Ee,v(w[w.length-1]),se.maxDepth+=w[w.length-1].depth)}se.slashes=F,se.parts=O}return se};t.exports=x}),ww=U((e,t)=>{"use strict";H();var r=ki(),i=Fi(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:u,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=r,c=(f,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...f,d);f.sort();let m=`[${f.join("-")}]`;try{new RegExp(m)}catch{return f.map(g=>i.escapeRegex(g)).join("..")}return m},p=(f,d)=>`Missing ${f}: "${d}" - use "\\\\${d}" to match literal characters`,l=(f,d)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=a[f]||f;let m={...d},g=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,_=f.length;if(_>g)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${g}`);let E={type:"bos",value:"",output:m.prepend||""},h=[E],v=m.capture?"":"?:",x=i.isWindows(d),y=r.globChars(x),A=r.extglobChars(y),{DOT_LITERAL:b,PLUS_LITERAL:k,SLASH_LITERAL:D,ONE_CHAR:F,DOTS_SLASH:w,NO_DOT:O,NO_DOT_SLASH:P,NO_DOTS_SLASH:C,QMARK:S,QMARK_NO_DOT:R,STAR:L,START_ANCHOR:M}=y,B=V=>`(${v}(?:(?!${M}${V.dot?w:b}).)*?)`,Q=m.dot?"":O,Z=m.dot?S:R,oe=m.bash===!0?B(m):L;m.capture&&(oe=`(${oe})`),typeof m.noext=="boolean"&&(m.noextglob=m.noext);let N={input:f,index:-1,start:0,dot:m.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};f=i.removePrefix(f,N),_=f.length;let le=[],pe=[],ne=[],T=E,I,$=()=>N.index===_-1,K=N.peek=(V=1)=>f[N.index+V],Y=N.advance=()=>f[++N.index]||"",z=()=>f.slice(N.index+1),X=(V="",fe=0)=>{N.consumed+=V,N.index+=fe},ee=V=>{N.output+=V.output!=null?V.output:V.value,X(V.value)},ie=()=>{let V=1;for(;K()==="!"&&(K(2)!=="("||K(3)==="?");)Y(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},ye=V=>{N[V]++,ne.push(V)},se=V=>{N[V]--,ne.pop()},re=V=>{if(T.type==="globstar"){let fe=N.braces>0&&(V.type==="comma"||V.type==="brace"),q=V.extglob===!0||le.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!fe&&!q&&(N.output=N.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=oe,N.output+=T.output)}if(le.length&&V.type!=="paren"&&(le[le.length-1].inner+=V.value),(V.value||V.output)&&ee(V),T&&T.type==="text"&&V.type==="text"){T.value+=V.value,T.output=(T.output||"")+V.value;return}V.prev=T,h.push(V),T=V},Ee=(V,fe)=>{let q={...A[fe],conditions:1,inner:""};q.prev=T,q.parens=N.parens,q.output=N.output;let ce=(m.capture?"(":"")+q.open;ye("parens"),re({type:V,value:fe,output:N.output?"":F}),re({type:"paren",extglob:!0,value:Y(),output:ce}),le.push(q)},Ut=V=>{let fe=V.close+(m.capture?")":""),q;if(V.type==="negate"){let ce=oe;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(ce=B(m)),(ce!==oe||$()||/^\)+$/.test(z()))&&(fe=V.close=`)$))${ce}`),V.inner.includes("*")&&(q=z())&&/^\.[^\\/.]+$/.test(q)){let ve=l(q,{...d,fastpaths:!1}).output;fe=V.close=`)${ve})${ce})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:I,output:fe}),se("parens")};if(m.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let V=!1,fe=f.replace(o,(q,ce,ve,Se,_e,Wt)=>Se==="\\"?(V=!0,q):Se==="?"?ce?ce+Se+(_e?S.repeat(_e.length):""):Wt===0?Z+(_e?S.repeat(_e.length):""):S.repeat(ve.length):Se==="."?b.repeat(ve.length):Se==="*"?ce?ce+Se+(_e?oe:""):oe:ce?q:`\\${q}`);return V===!0&&(m.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,q=>q.length%2===0?"\\\\":q?"\\":"")),fe===f&&m.contains===!0?(N.output=f,N):(N.output=i.wrapOutput(fe,N,d),N)}for(;!$();){if(I=Y(),I==="\0")continue;if(I==="\\"){let q=K();if(q==="/"&&m.bash!==!0||q==="."||q===";")continue;if(!q){I+="\\",re({type:"text",value:I});continue}let ce=/^\\+/.exec(z()),ve=0;if(ce&&ce[0].length>2&&(ve=ce[0].length,N.index+=ve,ve%2!==0&&(I+="\\")),m.unescape===!0?I=Y():I+=Y(),N.brackets===0){re({type:"text",value:I});continue}}if(N.brackets>0&&(I!=="]"||T.value==="["||T.value==="[^")){if(m.posix!==!1&&I===":"){let q=T.value.slice(1);if(q.includes("[")&&(T.posix=!0,q.includes(":"))){let ce=T.value.lastIndexOf("["),ve=T.value.slice(0,ce),Se=T.value.slice(ce+2),_e=u[Se];if(_e){T.value=ve+_e,N.backtrack=!0,Y(),!E.output&&h.indexOf(T)===1&&(E.output=F);continue}}}(I==="["&&K()!==":"||I==="-"&&K()==="]")&&(I=`\\${I}`),I==="]"&&(T.value==="["||T.value==="[^")&&(I=`\\${I}`),m.posix===!0&&I==="!"&&T.value==="["&&(I="^"),T.value+=I,ee({value:I});continue}if(N.quotes===1&&I!=='"'){I=i.escapeRegex(I),T.value+=I,ee({value:I});continue}if(I==='"'){N.quotes=N.quotes===1?0:1,m.keepQuotes===!0&&re({type:"text",value:I});continue}if(I==="("){ye("parens"),re({type:"paren",value:I});continue}if(I===")"){if(N.parens===0&&m.strictBrackets===!0)throw new SyntaxError(p("opening","("));let q=le[le.length-1];if(q&&N.parens===q.parens+1){Ut(le.pop());continue}re({type:"paren",value:I,output:N.parens?")":"\\)"}),se("parens");continue}if(I==="["){if(m.nobracket===!0||!z().includes("]")){if(m.nobracket!==!0&&m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));I=`\\${I}`}else ye("brackets");re({type:"bracket",value:I});continue}if(I==="]"){if(m.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){re({type:"text",value:I,output:`\\${I}`});continue}if(N.brackets===0){if(m.strictBrackets===!0)throw new SyntaxError(p("opening","["));re({type:"text",value:I,output:`\\${I}`});continue}se("brackets");let q=T.value.slice(1);if(T.posix!==!0&&q[0]==="^"&&!q.includes("/")&&(I=`/${I}`),T.value+=I,ee({value:I}),m.literalBrackets===!1||i.hasRegexChars(q))continue;let ce=i.escapeRegex(T.value);if(N.output=N.output.slice(0,-T.value.length),m.literalBrackets===!0){N.output+=ce,T.value=ce;continue}T.value=`(${v}${ce}|${T.value})`,N.output+=T.value;continue}if(I==="{"&&m.nobrace!==!0){ye("braces");let q={type:"brace",value:I,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};pe.push(q),re(q);continue}if(I==="}"){let q=pe[pe.length-1];if(m.nobrace===!0||!q){re({type:"text",value:I,output:I});continue}let ce=")";if(q.dots===!0){let ve=h.slice(),Se=[];for(let _e=ve.length-1;_e>=0&&(h.pop(),ve[_e].type!=="brace");_e--)ve[_e].type!=="dots"&&Se.unshift(ve[_e].value);ce=c(Se,m),N.backtrack=!0}if(q.comma!==!0&&q.dots!==!0){let ve=N.output.slice(0,q.outputIndex),Se=N.tokens.slice(q.tokensIndex);q.value=q.output="\\{",I=ce="\\}",N.output=ve;for(let _e of Se)N.output+=_e.output||_e.value}re({type:"brace",value:I,output:ce}),se("braces"),pe.pop();continue}if(I==="|"){le.length>0&&le[le.length-1].conditions++,re({type:"text",value:I});continue}if(I===","){let q=I,ce=pe[pe.length-1];ce&&ne[ne.length-1]==="braces"&&(ce.comma=!0,q="|"),re({type:"comma",value:I,output:q});continue}if(I==="/"){if(T.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",h.pop(),T=E;continue}re({type:"slash",value:I,output:D});continue}if(I==="."){if(N.braces>0&&T.type==="dot"){T.value==="."&&(T.output=b);let q=pe[pe.length-1];T.type="dots",T.output+=I,T.value+=I,q.dots=!0;continue}if(N.braces+N.parens===0&&T.type!=="bos"&&T.type!=="slash"){re({type:"text",value:I,output:b});continue}re({type:"dot",value:I,output:b});continue}if(I==="?"){if(!(T&&T.value==="(")&&m.noextglob!==!0&&K()==="("&&K(2)!=="?"){Ee("qmark",I);continue}if(T&&T.type==="paren"){let q=K(),ce=I;if(q==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(T.value==="("&&!/[!=<:]/.test(q)||q==="<"&&!/<([!=]|\w+>)/.test(z()))&&(ce=`\\${I}`),re({type:"text",value:I,output:ce});continue}if(m.dot!==!0&&(T.type==="slash"||T.type==="bos")){re({type:"qmark",value:I,output:R});continue}re({type:"qmark",value:I,output:S});continue}if(I==="!"){if(m.noextglob!==!0&&K()==="("&&(K(2)!=="?"||!/[!=<:]/.test(K(3)))){Ee("negate",I);continue}if(m.nonegate!==!0&&N.index===0){ie();continue}}if(I==="+"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){Ee("plus",I);continue}if(T&&T.value==="("||m.regex===!1){re({type:"plus",value:I,output:k});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||N.parens>0){re({type:"plus",value:I});continue}re({type:"plus",value:k});continue}if(I==="@"){if(m.noextglob!==!0&&K()==="("&&K(2)!=="?"){re({type:"at",extglob:!0,value:I,output:""});continue}re({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let q=s.exec(z());q&&(I+=q[0],N.index+=q[0].length),re({type:"text",value:I});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=I,T.output=oe,N.backtrack=!0,N.globstar=!0,X(I);continue}let V=z();if(m.noextglob!==!0&&/^\([^?]/.test(V)){Ee("star",I);continue}if(T.type==="star"){if(m.noglobstar===!0){X(I);continue}let q=T.prev,ce=q.prev,ve=q.type==="slash"||q.type==="bos",Se=ce&&(ce.type==="star"||ce.type==="globstar");if(m.bash===!0&&(!ve||V[0]&&V[0]!=="/")){re({type:"star",value:I,output:""});continue}let _e=N.braces>0&&(q.type==="comma"||q.type==="brace"),Wt=le.length&&(q.type==="pipe"||q.type==="paren");if(!ve&&q.type!=="paren"&&!_e&&!Wt){re({type:"star",value:I,output:""});continue}for(;V.slice(0,3)==="/**";){let gt=f[N.index+4];if(gt&>!=="/")break;V=V.slice(3),X("/**",3)}if(q.type==="bos"&&$()){T.type="globstar",T.value+=I,T.output=B(m),N.output=T.output,N.globstar=!0,X(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&!Se&&$()){N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=B(m)+(m.strictSlashes?")":"|$)"),T.value+=I,N.globstar=!0,N.output+=q.output+T.output,X(I);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&V[0]==="/"){let gt=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(q.output+T.output).length),q.output=`(?:${q.output}`,T.type="globstar",T.output=`${B(m)}${D}|${D}${gt})`,T.value+=I,N.output+=q.output+T.output,N.globstar=!0,X(I+Y()),re({type:"slash",value:"/",output:""});continue}if(q.type==="bos"&&V[0]==="/"){T.type="globstar",T.value+=I,T.output=`(?:^|${D}|${B(m)}${D})`,N.output=T.output,N.globstar=!0,X(I+Y()),re({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-T.output.length),T.type="globstar",T.output=B(m),T.value+=I,N.output+=T.output,N.globstar=!0,X(I);continue}let fe={type:"star",value:I,output:oe};if(m.bash===!0){fe.output=".*?",(T.type==="bos"||T.type==="slash")&&(fe.output=Q+fe.output),re(fe);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&m.regex===!0){fe.output=I,re(fe);continue}(N.index===N.start||T.type==="slash"||T.type==="dot")&&(T.type==="dot"?(N.output+=P,T.output+=P):m.dot===!0?(N.output+=C,T.output+=C):(N.output+=Q,T.output+=Q),K()!=="*"&&(N.output+=F,T.output+=F)),re(fe)}for(;N.brackets>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","]"));N.output=i.escapeLast(N.output,"["),se("brackets")}for(;N.parens>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing",")"));N.output=i.escapeLast(N.output,"("),se("parens")}for(;N.braces>0;){if(m.strictBrackets===!0)throw new SyntaxError(p("closing","}"));N.output=i.escapeLast(N.output,"{"),se("braces")}if(m.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${D}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};l.fastpaths=(f,d)=>{let m={...d},g=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n,_=f.length;if(_>g)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${g}`);f=a[f]||f;let E=i.isWindows(d),{DOT_LITERAL:h,SLASH_LITERAL:v,ONE_CHAR:x,DOTS_SLASH:y,NO_DOT:A,NO_DOTS:b,NO_DOTS_SLASH:k,STAR:D,START_ANCHOR:F}=r.globChars(E),w=m.dot?b:A,O=m.dot?k:A,P=m.capture?"":"?:",C={negated:!1,prefix:""},S=m.bash===!0?".*?":D;m.capture&&(S=`(${S})`);let R=Q=>Q.noglobstar===!0?S:`(${P}(?:(?!${F}${Q.dot?y:h}).)*?)`,L=Q=>{switch(Q){case"*":return`${w}${x}${S}`;case".*":return`${h}${x}${S}`;case"*.*":return`${w}${S}${h}${x}${S}`;case"*/*":return`${w}${S}${v}${x}${O}${S}`;case"**":return w+R(m);case"**/*":return`(?:${w}${R(m)}${v})?${O}${x}${S}`;case"**/*.*":return`(?:${w}${R(m)}${v})?${O}${S}${h}${x}${S}`;case"**/.*":return`(?:${w}${R(m)}${v})?${h}${x}${S}`;default:{let Z=/^(.*?)\.(\w+)$/.exec(Q);if(!Z)return;let oe=L(Z[1]);return oe?oe+h+Z[2]:void 0}}},M=i.removePrefix(f,C),B=L(M);return B&&m.strictSlashes!==!0&&(B+=`${v}?`),B},t.exports=l}),Cw=U((e,t)=>{"use strict";H();var r=ae("path"),i=xw(),n=ww(),u=Fi(),s=ki(),o=c=>c&&typeof c=="object"&&!Array.isArray(c),a=(c,p,l=!1)=>{if(Array.isArray(c)){let v=c.map(x=>a(x,p,l));return x=>{for(let y of v){let A=y(x);if(A)return A}return!1}}let f=o(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");let d=p||{},m=u.isWindows(p),g=f?a.compileRe(c,p):a.makeRe(c,p,!1,!0),_=g.state;delete g.state;let E=()=>!1;if(d.ignore){let v={...p,ignore:null,onMatch:null,onResult:null};E=a(d.ignore,v,l)}let h=(v,x=!1)=>{let{isMatch:y,match:A,output:b}=a.test(v,g,p,{glob:c,posix:m}),k={glob:c,state:_,regex:g,posix:m,input:v,output:b,match:A,isMatch:y};return typeof d.onResult=="function"&&d.onResult(k),y===!1?(k.isMatch=!1,x?k:!1):E(v)?(typeof d.onIgnore=="function"&&d.onIgnore(k),k.isMatch=!1,x?k:!1):(typeof d.onMatch=="function"&&d.onMatch(k),x?k:!0)};return l&&(h.state=_),h};a.test=(c,p,l,{glob:f,posix:d}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let m=l||{},g=m.format||(d?u.toPosixSlashes:null),_=c===f,E=_&&g?g(c):c;return _===!1&&(E=g?g(c):c,_=E===f),(_===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?_=a.matchBase(c,p,l,d):_=p.exec(E)),{isMatch:Boolean(_),match:_,output:E}},a.matchBase=(c,p,l,f=u.isWindows(l))=>(p instanceof RegExp?p:a.makeRe(p,l)).test(r.basename(c)),a.isMatch=(c,p,l)=>a(p,l)(c),a.parse=(c,p)=>Array.isArray(c)?c.map(l=>a.parse(l,p)):n(c,{...p,fastpaths:!1}),a.scan=(c,p)=>i(c,p),a.compileRe=(c,p,l=!1,f=!1)=>{if(l===!0)return c.output;let d=p||{},m=d.contains?"":"^",g=d.contains?"":"$",_=`${m}(?:${c.output})${g}`;c&&c.negated===!0&&(_=`^(?!${_}).*$`);let E=a.toRegex(_,p);return f===!0&&(E.state=c),E},a.makeRe=(c,p={},l=!1,f=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(d.output=n.fastpaths(c,p)),d.output||(d=n(c,p)),a.compileRe(d,p,l,f)},a.toRegex=(c,p)=>{try{let l=p||{};return new RegExp(c,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},a.constants=s,t.exports=a}),kw=U((e,t)=>{"use strict";H(),t.exports=Cw()}),Fw=U((e,t)=>{"use strict";H();var r=ae("util"),i=Dw(),n=kw(),u=Fi(),s=a=>a===""||a==="./",o=(a,c,p)=>{c=[].concat(c),a=[].concat(a);let l=new Set,f=new Set,d=new Set,m=0,g=E=>{d.add(E.output),p&&p.onResult&&p.onResult(E)};for(let E=0;E<c.length;E++){let h=n(String(c[E]),{...p,onResult:g},!0),v=h.state.negated||h.state.negatedExtglob;v&&m++;for(let x of a){let y=h(x,!0);!(v?!y.isMatch:y.isMatch)||(v?l.add(y.output):(l.delete(y.output),f.add(y.output)))}}let _=(m===c.length?[...d]:[...f]).filter(E=>!l.has(E));if(p&&_.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?c.map(E=>E.replace(/\\/g,"")):c}return _};o.match=o,o.matcher=(a,c)=>n(a,c),o.isMatch=(a,c,p)=>n(c,p)(a),o.any=o.isMatch,o.not=(a,c,p={})=>{c=[].concat(c).map(String);let l=new Set,f=[],d=g=>{p.onResult&&p.onResult(g),f.push(g.output)},m=new Set(o(a,c,{...p,onResult:d}));for(let g of f)m.has(g)||l.add(g);return[...l]},o.contains=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);if(Array.isArray(c))return c.some(l=>o.contains(a,l,p));if(typeof c=="string"){if(s(a)||s(c))return!1;if(a.includes(c)||a.startsWith("./")&&a.slice(2).includes(c))return!0}return o.isMatch(a,c,{...p,contains:!0})},o.matchKeys=(a,c,p)=>{if(!u.isObject(a))throw new TypeError("Expected the first argument to be an object");let l=o(Object.keys(a),c,p),f={};for(let d of l)f[d]=a[d];return f},o.some=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=n(String(f),p);if(l.some(m=>d(m)))return!0}return!1},o.every=(a,c,p)=>{let l=[].concat(a);for(let f of[].concat(c)){let d=n(String(f),p);if(!l.every(m=>d(m)))return!1}return!0},o.all=(a,c,p)=>{if(typeof a!="string")throw new TypeError(`Expected a string: "${r.inspect(a)}"`);return[].concat(c).every(l=>n(l,p)(a))},o.capture=(a,c,p)=>{let l=u.isWindows(p),f=n.makeRe(String(a),{...p,capture:!0}).exec(l?u.toPosixSlashes(c):c);if(f)return f.slice(1).map(d=>d===void 0?"":d)},o.makeRe=(...a)=>n.makeRe(...a),o.scan=(...a)=>n.scan(...a),o.parse=(a,c)=>{let p=[];for(let l of[].concat(a||[]))for(let f of i(String(l),c))p.push(n.parse(f,c));return p},o.braces=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!/\{.*\}/.test(a)?[a]:i(a,c)},o.braceExpand=(a,c)=>{if(typeof a!="string")throw new TypeError("Expected a string");return o.braces(a,{...c,expand:!0})},t.exports=o}),Rw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=ae("path"),r=gw(),i=Fw(),n="**",u="\\",s=/[*?]|^!/,o=/\[[^[]*]/,a=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,p=/,|\.\./;function l(L,M={}){return!f(L,M)}e.isStaticPattern=l;function f(L,M={}){return L===""?!1:!!(M.caseSensitiveMatch===!1||L.includes(u)||s.test(L)||o.test(L)||a.test(L)||M.extglob!==!1&&c.test(L)||M.braceExpansion!==!1&&d(L))}e.isDynamicPattern=f;function d(L){let M=L.indexOf("{");if(M===-1)return!1;let B=L.indexOf("}",M+1);if(B===-1)return!1;let Q=L.slice(M,B);return p.test(Q)}function m(L){return _(L)?L.slice(1):L}e.convertToPositivePattern=m;function g(L){return"!"+L}e.convertToNegativePattern=g;function _(L){return L.startsWith("!")&&L[1]!=="("}e.isNegativePattern=_;function E(L){return!_(L)}e.isPositivePattern=E;function h(L){return L.filter(_)}e.getNegativePatterns=h;function v(L){return L.filter(E)}e.getPositivePatterns=v;function x(L){return L.filter(M=>!A(M))}e.getPatternsInsideCurrentDirectory=x;function y(L){return L.filter(A)}e.getPatternsOutsideCurrentDirectory=y;function A(L){return L.startsWith("..")||L.startsWith("./..")}e.isPatternRelatedToParentDirectory=A;function b(L){return r(L,{flipBackslashes:!1})}e.getBaseDirectory=b;function k(L){return L.includes(n)}e.hasGlobStar=k;function D(L){return L.endsWith("/"+n)}e.endsWithSlashGlobStar=D;function F(L){let M=t.basename(L);return D(L)||l(M)}e.isAffectDepthOfReadingPattern=F;function w(L){return L.reduce((M,B)=>M.concat(O(B)),[])}e.expandPatternsWithBraceExpansion=w;function O(L){return i.braces(L,{expand:!0,nodupes:!0})}e.expandBraceExpansion=O;function P(L,M){let{parts:B}=i.scan(L,Object.assign(Object.assign({},M),{parts:!0}));return B.length===0&&(B=[L]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}e.getPatternParts=P;function C(L,M){return i.makeRe(L,M)}e.makeRe=C;function S(L,M){return L.map(B=>C(B,M))}e.convertPatternsToRe=S;function R(L,M){return M.some(B=>B.test(L))}e.matchAny=R}),Ow=U((e,t)=>{"use strict";H();var r=ae("stream"),i=r.PassThrough,n=Array.prototype.slice;t.exports=u;function u(){let o=[],a=n.call(arguments),c=!1,p=a[a.length-1];p&&!Array.isArray(p)&&p.pipe==null?a.pop():p={};let l=p.end!==!1,f=p.pipeError===!0;p.objectMode==null&&(p.objectMode=!0),p.highWaterMark==null&&(p.highWaterMark=64*1024);let d=i(p);function m(){for(let E=0,h=arguments.length;E<h;E++)o.push(s(arguments[E],p));return g(),this}function g(){if(c)return;c=!0;let E=o.shift();if(!E){process.nextTick(_);return}Array.isArray(E)||(E=[E]);let h=E.length+1;function v(){--h>0||(c=!1,g())}function x(y){function A(){y.removeListener("merge2UnpipeEnd",A),y.removeListener("end",A),f&&y.removeListener("error",b),v()}function b(k){d.emit("error",k)}if(y._readableState.endEmitted)return v();y.on("merge2UnpipeEnd",A),y.on("end",A),f&&y.on("error",b),y.pipe(d,{end:!1}),y.resume()}for(let y=0;y<E.length;y++)x(E[y]);v()}function _(){c=!1,d.emit("queueDrain"),l&&d.end()}return d.setMaxListeners(0),d.add=m,d.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),a.length&&m.apply(null,a),d}function s(o,a){if(Array.isArray(o))for(let c=0,p=o.length;c<p;c++)o[c]=s(o[c],a);else{if(!o._readableState&&o.pipe&&(o=o.pipe(i(a))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}),Tw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=Ow();function r(n){let u=t(n);return n.forEach(s=>{s.once("error",o=>u.emit("error",o))}),u.once("close",()=>i(n)),u.once("end",()=>i(n)),u}e.merge=r;function i(n){n.forEach(u=>u.emit("close"))}}),Pw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(i){return typeof i=="string"}e.isString=t;function r(i){return i===""}e.isEmpty=r}),Ht=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=pw();e.array=t;var r=fw();e.errno=r;var i=dw();e.fs=i;var n=hw();e.path=n;var u=Rw();e.pattern=u;var s=Tw();e.stream=s;var o=Pw();e.string=o}),Lw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Ht();function r(c,p){let l=n(c),f=u(c,p.ignore),d=l.filter(E=>t.pattern.isStaticPattern(E,p)),m=l.filter(E=>t.pattern.isDynamicPattern(E,p)),g=i(d,f,!1),_=i(m,f,!0);return g.concat(_)}e.generate=r;function i(c,p,l){let f=[],d=t.pattern.getPatternsOutsideCurrentDirectory(c),m=t.pattern.getPatternsInsideCurrentDirectory(c),g=s(d),_=s(m);return f.push(...o(g,p,l)),"."in _?f.push(a(".",m,p,l)):f.push(...o(_,p,l)),f}e.convertPatternsToTasks=i;function n(c){return t.pattern.getPositivePatterns(c)}e.getPositivePatterns=n;function u(c,p){return t.pattern.getNegativePatterns(c).concat(p).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=u;function s(c){let p={};return c.reduce((l,f)=>{let d=t.pattern.getBaseDirectory(f);return d in l?l[d].push(f):l[d]=[f],l},p)}e.groupPatternsByBaseDirectory=s;function o(c,p,l){return Object.keys(c).map(f=>a(f,c[f],p,l))}e.convertPatternGroupsToTasks=o;function a(c,p,l,f){return{dynamic:f,positive:p,negative:l,base:c,patterns:[].concat(p,l.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=a}),Iw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var t=/(?!^)\/{2,}/g;function r(n){return n.map(u=>i(u))}e.transform=r;function i(n){return n.replace(t,"/")}e.removeDuplicateSlashes=i}),Nw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(n,u,s){u.fs.lstat(n,(o,a)=>{if(o!==null){r(s,o);return}if(!a.isSymbolicLink()||!u.followSymbolicLink){i(s,a);return}u.fs.stat(n,(c,p)=>{if(c!==null){if(u.throwErrorOnBrokenSymbolicLink){r(s,c);return}i(s,a);return}u.markSymbolicLink&&(p.isSymbolicLink=()=>!0),i(s,p)})})}e.read=t;function r(n,u){n(u)}function i(n,u){n(null,u)}}),Bw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,i){let n=i.fs.lstatSync(r);if(!n.isSymbolicLink()||!i.followSymbolicLink)return n;try{let u=i.fs.statSync(r);return i.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!i.throwErrorOnBrokenSymbolicLink)return n;throw u}}e.read=t}),Mw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ae("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r}),jw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Mw(),r=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,n){return i!=null?i:n}};e.default=r}),jr=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=Nw(),r=Bw(),i=jw();e.Settings=i.default;function n(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.stat=n;function u(o,a){let c=s(a);return r.read(o,c)}e.statSync=u;function s(o={}){return o instanceof i.default?o:new i.default(o)}}),$w=U((e,t)=>{H();var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(r||(r=Promise.resolve())).then(i).catch(n=>setTimeout(()=>{throw n},0))}),Hw=U((e,t)=>{H(),t.exports=i;var r=$w();function i(n,u){let s,o,a,c=!0;Array.isArray(n)?(s=[],o=n.length):(a=Object.keys(n),s={},o=a.length);function p(f){function d(){u&&u(f,s),u=null}c?r(d):d()}function l(f,d,m){s[f]=m,(--o===0||d)&&p(d)}o?a?a.forEach(function(f){n[f](function(d,m){l(f,d,m)})}):n.forEach(function(f,d){f(function(m,g){l(d,m,g)})}):p(null),c=!1}}),Qd=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),i=Number.parseInt(t[1],10),n=10,u=10,s=r>n,o=r===n&&i>=u;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=s||o}),Gw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,n){this.name=i,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function r(i,n){return new t(i,n)}e.createDirentFromStats=r}),Xd=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=Gw();e.fs=t}),Jd=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,i,n){return r.endsWith(n)?r+i:r+n+i}e.joinPathSegments=t}),qw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=jr(),r=Hw(),i=Qd(),n=Xd(),u=Jd();function s(f,d,m){if(!d.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(f,d,m);return}c(f,d,m)}e.read=s;function o(f,d,m){d.fs.readdir(f,{withFileTypes:!0},(g,_)=>{if(g!==null){p(m,g);return}let E=_.map(v=>({dirent:v,name:v.name,path:u.joinPathSegments(f,v.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){l(m,E);return}let h=E.map(v=>a(v,d));r(h,(v,x)=>{if(v!==null){p(m,v);return}l(m,x)})})}e.readdirWithFileTypes=o;function a(f,d){return m=>{if(!f.dirent.isSymbolicLink()){m(null,f);return}d.fs.stat(f.path,(g,_)=>{if(g!==null){if(d.throwErrorOnBrokenSymbolicLink){m(g);return}m(null,f);return}f.dirent=n.fs.createDirentFromStats(f.name,_),m(null,f)})}}function c(f,d,m){d.fs.readdir(f,(g,_)=>{if(g!==null){p(m,g);return}let E=_.map(h=>{let v=u.joinPathSegments(f,h,d.pathSegmentSeparator);return x=>{t.stat(v,d.fsStatSettings,(y,A)=>{if(y!==null){x(y);return}let b={name:h,path:v,dirent:n.fs.createDirentFromStats(h,A)};d.stats&&(b.stats=A),x(null,b)})}});r(E,(h,v)=>{if(h!==null){p(m,h);return}l(m,v)})})}e.readdir=c;function p(f,d){f(d)}function l(f,d){f(null,d)}}),Uw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=jr(),r=Qd(),i=Xd(),n=Jd();function u(a,c){return!c.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(a,c):o(a,c)}e.read=u;function s(a,c){return c.fs.readdirSync(a,{withFileTypes:!0}).map(p=>{let l={dirent:p,name:p.name,path:n.joinPathSegments(a,p.name,c.pathSegmentSeparator)};if(l.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let f=c.fs.statSync(l.path);l.dirent=i.fs.createDirentFromStats(l.name,f)}catch(f){if(c.throwErrorOnBrokenSymbolicLink)throw f}return l})}e.readdirWithFileTypes=s;function o(a,c){return c.fs.readdirSync(a).map(p=>{let l=n.joinPathSegments(a,p,c.pathSegmentSeparator),f=t.statSync(l,c.fsStatSettings),d={name:p,path:l,dirent:i.fs.createDirentFromStats(p,f)};return c.stats&&(d.stats=f),d})}e.readdir=o}),Ww=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ae("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=r}),Kw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=jr(),i=Ww(),n=class{constructor(u={}){this._options=u,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(u,s){return u!=null?u:s}};e.default=n}),Na=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=qw(),r=Uw(),i=Kw();e.Settings=i.default;function n(o,a,c){if(typeof a=="function"){t.read(o,s(),a);return}t.read(o,s(a),c)}e.scandir=n;function u(o,a){let c=s(a);return r.read(o,c)}e.scandirSync=u;function s(o={}){return o instanceof i.default?o:new i.default(o)}}),Yw=U((e,t)=>{"use strict";H();function r(i){var n=new i,u=n;function s(){var a=n;return a.next?n=a.next:(n=new i,u=n),a.next=null,a}function o(a){u.next=a,u=a}return{get:s,release:o}}t.exports=r}),Vw=U((e,t)=>{"use strict";H();var r=Yw();function i(o,a,c){if(typeof o=="function"&&(c=a,a=o,o=null),c<1)throw new Error("fastqueue concurrency must be greater than 1");var p=r(u),l=null,f=null,d=0,m=null,g={push:A,drain:n,saturated:n,pause:E,paused:!1,concurrency:c,running:_,resume:x,idle:y,length:h,getQueue:v,unshift:b,empty:n,kill:D,killAndDrain:F,error:w};return g;function _(){return d}function E(){g.paused=!0}function h(){for(var O=l,P=0;O;)O=O.next,P++;return P}function v(){for(var O=l,P=[];O;)P.push(O.value),O=O.next;return P}function x(){if(g.paused){g.paused=!1;for(var O=0;O<g.concurrency;O++)d++,k()}}function y(){return d===0&&g.length()===0}function A(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||n,C.errorHandler=m,d===g.concurrency||g.paused?f?(f.next=C,f=C):(l=C,f=C,g.saturated()):(d++,a.call(o,C.value,C.worked))}function b(O,P){var C=p.get();C.context=o,C.release=k,C.value=O,C.callback=P||n,d===g.concurrency||g.paused?l?(C.next=l,l=C):(l=C,f=C,g.saturated()):(d++,a.call(o,C.value,C.worked))}function k(O){O&&p.release(O);var P=l;P?g.paused?d--:(f===l&&(f=null),l=P.next,P.next=null,a.call(o,P.value,P.worked),f===null&&g.empty()):--d===0&&g.drain()}function D(){l=null,f=null,g.drain=n}function F(){l=null,f=null,g.drain(),g.drain=n}function w(O){m=O}}function n(){}function u(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var o=this;this.worked=function(a,c){var p=o.callback,l=o.errorHandler,f=o.value;o.value=null,o.callback=n,o.errorHandler&&l(a,f),p.call(o.context,a,c),o.release(o)}}function s(o,a,c){typeof o=="function"&&(c=a,a=o,o=null);function p(E,h){a.call(this,E).then(function(v){h(null,v)},h)}var l=i(o,p,c),f=l.push,d=l.unshift;return l.push=m,l.unshift=g,l.drained=_,l;function m(E){var h=new Promise(function(v,x){f(E,function(y,A){if(y){x(y);return}v(A)})});return h.catch(n),h}function g(E){var h=new Promise(function(v,x){d(E,function(y,A){if(y){x(y);return}v(A)})});return h.catch(n),h}function _(){var E=l.drain,h=new Promise(function(v){l.drain=function(){E(),v()}});return h}}t.exports=i,t.exports.promise=s}),Ba=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(u,s){return u.errorFilter===null?!0:!u.errorFilter(s)}e.isFatalError=t;function r(u,s){return u===null||u(s)}e.isAppliedFilter=r;function i(u,s){return u.split(/[/\\]/).join(s)}e.replacePathSegmentSeparator=i;function n(u,s,o){return u===""?s:u.endsWith(o)?u+s:u+o+s}e.joinPathSegments=n}),Zd=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ba(),r=class{constructor(i,n){this._root=i,this._settings=n,this._root=t.replacePathSegmentSeparator(i,n.pathSegmentSeparator)}};e.default=r}),zd=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("events"),r=Na(),i=Vw(),n=Ba(),u=Zd(),s=class extends u.default{constructor(o,a){super(o,a),this._settings=a,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,a){let c={directory:o,base:a};this._queue.push(c,p=>{p!==null&&this._handleError(p)})}_worker(o,a){this._scandir(o.directory,this._settings.fsScandirSettings,(c,p)=>{if(c!==null){a(c,void 0);return}for(let l of p)this._handleEntry(l,o.base);a(null,void 0)})}_handleError(o){this._isDestroyed||!n.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,a){if(this._isDestroyed||this._isFatalError)return;let c=o.path;a!==void 0&&(o.path=n.joinPathSegments(a,o.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(c,a===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};e.default=s}),Qw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=zd(),r=class{constructor(u,s){this._root=u,this._settings=s,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(u){this._reader.onError(s=>{i(u,s)}),this._reader.onEntry(s=>{this._storage.push(s)}),this._reader.onEnd(()=>{n(u,this._storage)}),this._reader.read()}};e.default=r;function i(u,s){u(s)}function n(u,s){u(null,s)}}),Xw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("stream"),r=zd(),i=class{constructor(n,u){this._root=n,this._settings=u,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i}),Jw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Na(),r=Ba(),i=Zd(),n=class extends i.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(u,s){this._queue.add({directory:u,base:s})}_handleQueue(){for(let u of this._queue.values())this._handleDirectory(u.directory,u.base)}_handleDirectory(u,s){try{let o=this._scandir(u,this._settings.fsScandirSettings);for(let a of o)this._handleEntry(a,s)}catch(o){this._handleError(o)}}_handleError(u){if(r.isFatalError(this._settings,u))throw u}_handleEntry(u,s){let o=u.path;s!==void 0&&(u.path=r.joinPathSegments(s,u.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,u)&&this._pushToStorage(u),u.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,u)&&this._pushToQueue(o,s===void 0?void 0:u.path)}_pushToStorage(u){this._storage.push(u)}};e.default=n}),Zw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Jw(),r=class{constructor(i,n){this._root=i,this._settings=n,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r}),zw=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=Na(),i=class{constructor(n={}){this._options=n,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,u){return n!=null?n:u}};e.default=i}),Ma=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=Qw(),r=Xw(),i=Zw(),n=zw();e.Settings=n.default;function u(c,p,l){if(typeof p=="function"){new t.default(c,a()).read(p);return}new t.default(c,a(p)).read(l)}e.walk=u;function s(c,p){let l=a(p);return new i.default(c,l).read()}e.walkSync=s;function o(c,p){let l=a(p);return new r.default(c,l).read()}e.walkStream=o;function a(c={}){return c instanceof n.default?c:new n.default(c)}}),ja=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=jr(),i=Ht(),n=class{constructor(u){this._settings=u,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(u){return t.resolve(this._settings.cwd,u)}_makeEntry(u,s){let o={name:s,path:s,dirent:i.fs.createDirentFromStats(s,u)};return this._settings.stats&&(o.stats=u),o}_isFatalError(u){return!i.errno.isEnoentCodeError(u)&&!this._settings.suppressErrors}};e.default=n}),eh=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("stream"),r=jr(),i=Ma(),n=ja(),u=class extends n.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=r.stat}dynamic(s,o){return this._walkStream(s,o)}static(s,o){let a=s.map(this._getFullEntryPath,this),c=new t.PassThrough({objectMode:!0});c._write=(p,l,f)=>this._getEntry(a[p],s[p],o).then(d=>{d!==null&&o.entryFilter(d)&&c.push(d),p===a.length-1&&c.end(),f()}).catch(f);for(let p=0;p<a.length;p++)c.write(p);return c}_getEntry(s,o,a){return this._getStat(s).then(c=>this._makeEntry(c,o)).catch(c=>{if(a.errorFilter(c))return null;throw c})}_getStat(s){return new Promise((o,a)=>{this._stat(s,this._fsStatSettings,(c,p)=>c===null?o(p):a(c))})}};e.default=u}),eC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ma(),r=ja(),i=eh(),n=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new i.default(this._settings)}dynamic(u,s){return new Promise((o,a)=>{this._walkAsync(u,s,(c,p)=>{c===null?o(p):a(c)})})}async static(u,s){let o=[],a=this._readerStream.static(u,s);return new Promise((c,p)=>{a.once("error",p),a.on("data",l=>o.push(l)),a.once("end",()=>c(o))})}};e.default=n}),tC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ht(),r=class{constructor(i,n,u){this._patterns=i,this._settings=n,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){let i=t.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let n of i){let u=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(u);this._storage.push({complete:s.length<=1,pattern:n,segments:u,sections:s})}}_getPatternSegments(i){return t.pattern.getPatternParts(i,this._micromatchOptions).map(n=>t.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:t.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(i){return t.array.splitWhen(i,n=>n.dynamic&&t.pattern.hasGlobStar(n.pattern))}};e.default=r}),rC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=tC(),r=class extends t.default{match(i){let n=i.split("/"),u=n.length,s=this._storage.filter(o=>!o.complete||o.segments.length>u);for(let o of s){let a=o.sections[0];if(!o.complete&&u>a.length||n.every((c,p)=>{let l=o.segments[p];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};e.default=r}),nC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ht(),r=rC(),i=class{constructor(n,u){this._settings=n,this._micromatchOptions=u}getFilter(n,u,s){let o=this._getMatcher(u),a=this._getNegativePatternsRe(s);return c=>this._filter(n,c,o,a)}_getMatcher(n){return new r.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let u=n.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(u,this._micromatchOptions)}_filter(n,u,s,o){if(this._isSkippedByDeep(n,u.path)||this._isSkippedSymbolicLink(u))return!1;let a=t.path.removeLeadingDotSegment(u.path);return this._isSkippedByPositivePatterns(a,s)?!1:this._isSkippedByNegativePatterns(a,o)}_isSkippedByDeep(n,u){return this._settings.deep===1/0?!1:this._getEntryLevel(n,u)>=this._settings.deep}_getEntryLevel(n,u){let s=u.split("/").length;if(n==="")return s;let o=n.split("/").length;return s-o}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,u){return!this._settings.baseNameMatch&&!u.match(n)}_isSkippedByNegativePatterns(n,u){return!t.pattern.matchAny(n,u)}};e.default=i}),iC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ht(),r=class{constructor(i,n){this._settings=i,this._micromatchOptions=n,this.index=new Map}getFilter(i,n){let u=t.pattern.convertPatternsToRe(i,this._micromatchOptions),s=t.pattern.convertPatternsToRe(n,this._micromatchOptions);return o=>this._filter(o,u,s)}_filter(i,n,u){if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i)||this._isSkippedByAbsoluteNegativePatterns(i.path,u))return!1;let s=this._settings.baseNameMatch?i.name:i.path,o=i.dirent.isDirectory(),a=this._isMatchToPatterns(s,n,o)&&!this._isMatchToPatterns(i.path,u,o);return this._settings.unique&&a&&this._createIndexRecord(i),a}_isDuplicateEntry(i){return this.index.has(i.path)}_createIndexRecord(i){this.index.set(i.path,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(i,n){if(!this._settings.absolute)return!1;let u=t.path.makeAbsolute(this._settings.cwd,i);return t.pattern.matchAny(u,n)}_isMatchToPatterns(i,n,u){let s=t.path.removeLeadingDotSegment(i),o=t.pattern.matchAny(s,n);return!o&&u?t.pattern.matchAny(s+"/",n):o}};e.default=r}),oC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ht(),r=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return t.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=r}),sC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ht(),r=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let n=i.path;return this._settings.absolute&&(n=t.path.makeAbsolute(this._settings.cwd,n),n=t.path.unixify(n)),this._settings.markDirectories&&i.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:n}):n}};e.default=r}),$a=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("path"),r=nC(),i=iC(),n=oC(),u=sC(),s=class{constructor(o){this._settings=o,this.errorFilter=new n.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new u.default(this._settings)}_getRootDirectory(o){return t.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let a=o.base==="."?"":o.base;return{basePath:a,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(a,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=s}),aC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=eC(),r=$a(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(n){let u=this._getRootDirectory(n),s=this._getReaderOptions(n);return(await this.api(u,n,s)).map(o=>s.transform(o))}api(n,u,s){return u.dynamic?this._reader.dynamic(n,s):this._reader.static(u.patterns,s)}};e.default=i}),uC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=ae("stream"),r=eh(),i=$a(),n=class extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(u){let s=this._getRootDirectory(u),o=this._getReaderOptions(u),a=this.api(s,u,o),c=new t.Readable({objectMode:!0,read:()=>{}});return a.once("error",p=>c.emit("error",p)).on("data",p=>c.emit("data",o.transform(p))).once("end",()=>c.emit("end")),c.once("close",()=>a.destroy()),c}api(u,s,o){return s.dynamic?this._reader.dynamic(u,o):this._reader.static(s.patterns,o)}};e.default=n}),cC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=jr(),r=Ma(),i=ja(),n=class extends i.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(u,s){return this._walkSync(u,s)}static(u,s){let o=[];for(let a of u){let c=this._getFullEntryPath(a),p=this._getEntry(c,a,s);p===null||!s.entryFilter(p)||o.push(p)}return o}_getEntry(u,s,o){try{let a=this._getStat(u);return this._makeEntry(a,s)}catch(a){if(o.errorFilter(a))return null;throw a}}_getStat(u){return this._statSync(u,this._fsStatSettings)}};e.default=n}),lC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0});var t=cC(),r=$a(),i=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(n){let u=this._getRootDirectory(n),s=this._getReaderOptions(n);return this.api(u,n,s).map(s.transform)}api(n,u,s){return u.dynamic?this._reader.dynamic(n,s):this._reader.static(u.patterns,s)}};e.default=i}),pC=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=ae("fs"),r=ae("os"),i=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var n=class{constructor(u={}){this._options=u,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(u,s){return u===void 0?s:u}_getFileSystemMethods(u={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),u)}};e.default=n}),fC=U((e,t)=>{"use strict";H();var r=Lw(),i=Iw(),n=aC(),u=uC(),s=lC(),o=pC(),a=Ht();async function c(f,d){l(f);let m=p(f,n.default,d),g=await Promise.all(m);return a.array.flatten(g)}(function(f){function d(h,v){l(h);let x=p(h,s.default,v);return a.array.flatten(x)}f.sync=d;function m(h,v){l(h);let x=p(h,u.default,v);return a.stream.merge(x)}f.stream=m;function g(h,v){l(h);let x=i.transform([].concat(h)),y=new o.default(v);return r.generate(x,y)}f.generateTasks=g;function _(h,v){l(h);let x=new o.default(v);return a.pattern.isDynamicPattern(h,x)}f.isDynamicPattern=_;function E(h){return l(h),a.path.escape(h)}f.escapePath=E})(c||(c={}));function p(f,d,m){let g=i.transform([].concat(f)),_=new o.default(m),E=r.generate(g,_),h=new d(_);return E.map(h.read,h)}function l(f){if(![].concat(f).every(d=>a.string.isString(d)&&!a.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=c});H();H();function th(e){return typeof e>"u"||e===null}function dC(e){return typeof e=="object"&&e!==null}function hC(e){return Array.isArray(e)?e:th(e)?[]:[e]}function mC(e,t){var r,i,n,u;if(t)for(u=Object.keys(t),r=0,i=u.length;r<i;r+=1)n=u[r],e[n]=t[n];return e}function yC(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function gC(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var vC=th,_C=dC,EC=hC,SC=yC,AC=gC,bC=mC,Te={isNothing:vC,isObject:_C,toArray:EC,repeat:SC,isNegativeZero:AC,extend:bC};function rh(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
88
|
+
|
89
|
+
`+e.mark.snippet),i+" "+r):i}function ln(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=rh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ln.prototype=Object.create(Error.prototype);ln.prototype.constructor=ln;ln.prototype.toString=function(e){return this.name+": "+rh(this,e)};var Ye=ln;function wa(e,t,r,i,n){var u="",s="",o=Math.floor(n/2)-1;return i-t>o&&(u=" ... ",t=i-o+u.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:u+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:i-t+u.length}}function Ca(e,t){return Te.repeat(" ",t-e.length)+e}function DC(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],u,s=-1;u=r.exec(e.buffer);)n.push(u.index),i.push(u.index+u[0].length),e.position<=u.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",a,c,p=Math.min(e.line+t.linesAfter,n.length).toString().length,l=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)c=wa(e.buffer,i[s-a],n[s-a],e.position-(i[s]-i[s-a]),l),o=Te.repeat(" ",t.indent)+Ca((e.line-a+1).toString(),p)+" | "+c.str+`
|
90
|
+
`+o;for(c=wa(e.buffer,i[s],n[s],e.position,l),o+=Te.repeat(" ",t.indent)+Ca((e.line+1).toString(),p)+" | "+c.str+`
|
91
|
+
`,o+=Te.repeat("-",t.indent+p+3+c.pos)+`^
|
92
|
+
`,a=1;a<=t.linesAfter&&!(s+a>=n.length);a++)c=wa(e.buffer,i[s+a],n[s+a],e.position-(i[s]-i[s+a]),l),o+=Te.repeat(" ",t.indent)+Ca((e.line+a+1).toString(),p)+" | "+c.str+`
|
93
|
+
`;return o.replace(/\n$/,"")}var xC=DC,wC=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],CC=["scalar","sequence","mapping"];function kC(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function FC(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(wC.indexOf(r)===-1)throw new Ye('Unknown option "'+r+'" 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!0},this.construct=t.construct||function(r){return r},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||!1,this.styleAliases=kC(t.styleAliases||null),CC.indexOf(this.kind)===-1)throw new Ye('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var je=FC;function Pd(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(u,s){u.tag===i.tag&&u.kind===i.kind&&u.multi===i.multi&&(n=s)}),r[n]=i}),r}function RC(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}function Fa(e){return this.extend(e)}Fa.prototype.extend=function(e){var t=[],r=[];if(e instanceof je)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Ye("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(n){if(!(n instanceof je))throw new Ye("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new Ye("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new Ye("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(n){if(!(n instanceof je))throw new Ye("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Fa.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=Pd(i,"implicit"),i.compiledExplicit=Pd(i,"explicit"),i.compiledTypeMap=RC(i.compiledImplicit,i.compiledExplicit),i};var OC=Fa,TC=new je("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),PC=new je("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),LC=new je("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),IC=new OC({explicit:[TC,PC,LC]});function NC(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function BC(){return null}function MC(e){return e===null}var jC=new je("tag:yaml.org,2002:null",{kind:"scalar",resolve:NC,construct:BC,predicate:MC,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function $C(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function HC(e){return e==="true"||e==="True"||e==="TRUE"}function GC(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var qC=new je("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$C,construct:HC,predicate:GC,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function UC(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function WC(e){return 48<=e&&e<=55}function KC(e){return 48<=e&&e<=57}function YC(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!UC(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!WC(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!KC(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function VC(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function QC(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Te.isNegativeZero(e)}var XC=new je("tag:yaml.org,2002:int",{kind:"scalar",resolve:YC,construct:VC,predicate:QC,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"]}}),JC=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ZC(e){return!(e===null||!JC.test(e)||e[e.length-1]==="_")}function zC(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var ek=/^[-+]?[0-9]+e/;function tk(e,t){var r;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(Te.isNegativeZero(e))return"-0.0";return r=e.toString(10),ek.test(r)?r.replace("e",".e"):r}function rk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Te.isNegativeZero(e))}var nk=new je("tag:yaml.org,2002:float",{kind:"scalar",resolve:ZC,construct:zC,predicate:rk,represent:tk,defaultStyle:"lowercase"}),ik=IC.extend({implicit:[jC,qC,XC,nk]}),ok=ik,nh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ih=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 sk(e){return e===null?!1:nh.exec(e)!==null||ih.exec(e)!==null}function ak(e){var t,r,i,n,u,s,o,a=0,c=null,p,l,f;if(t=nh.exec(e),t===null&&(t=ih.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(u=+t[4],s=+t[5],o=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(p=+t[10],l=+(t[11]||0),c=(p*60+l)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,u,s,o,a)),c&&f.setTime(f.getTime()-c),f}function uk(e){return e.toISOString()}var ck=new je("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:sk,construct:ak,instanceOf:Date,represent:uk});function lk(e){return e==="<<"||e===null}var pk=new je("tag:yaml.org,2002:merge",{kind:"scalar",resolve:lk}),Ha=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
94
|
+
\r`;function fk(e){if(e===null)return!1;var t,r,i=0,n=e.length,u=Ha;for(r=0;r<n;r++)if(t=u.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function dk(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,u=Ha,s=0,o=[];for(t=0;t<n;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|u.indexOf(i.charAt(t));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function hk(e){var t="",r=0,i,n,u=e.length,s=Ha;for(i=0;i<u;i++)i%3===0&&i&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[i];return n=u%3,n===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):n===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):n===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function mk(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var yk=new je("tag:yaml.org,2002:binary",{kind:"scalar",resolve:fk,construct:dk,predicate:mk,represent:hk}),gk=Object.prototype.hasOwnProperty,vk=Object.prototype.toString;function _k(e){if(e===null)return!0;var t=[],r,i,n,u,s,o=e;for(r=0,i=o.length;r<i;r+=1){if(n=o[r],s=!1,vk.call(n)!=="[object Object]")return!1;for(u in n)if(gk.call(n,u))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(u)===-1)t.push(u);else return!1}return!0}function Ek(e){return e!==null?e:[]}var Sk=new je("tag:yaml.org,2002:omap",{kind:"sequence",resolve:_k,construct:Ek}),Ak=Object.prototype.toString;function bk(e){if(e===null)return!0;var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],Ak.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;u[t]=[n[0],i[n[0]]]}return!0}function Dk(e){if(e===null)return[];var t,r,i,n,u,s=e;for(u=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],n=Object.keys(i),u[t]=[n[0],i[n[0]]];return u}var xk=new je("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:bk,construct:Dk}),wk=Object.prototype.hasOwnProperty;function Ck(e){if(e===null)return!0;var t,r=e;for(t in r)if(wk.call(r,t)&&r[t]!==null)return!1;return!0}function kk(e){return e!==null?e:{}}var Fk=new je("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ck,construct:kk}),oh=ok.extend({implicit:[ck,pk],explicit:[yk,Sk,xk,Fk]}),$t=Object.prototype.hasOwnProperty,bi=1,sh=2,ah=3,Di=4,ka=1,Rk=2,Ld=3,Ok=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Tk=/[\x85\u2028\u2029]/,Pk=/[,\[\]\{\}]/,uh=/^(?:!|!!|![a-z\-]+!)$/i,ch=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Id(e){return Object.prototype.toString.call(e)}function mt(e){return e===10||e===13}function ar(e){return e===9||e===32}function Ve(e){return e===9||e===32||e===10||e===13}function Nr(e){return e===44||e===91||e===93||e===123||e===125}function Lk(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Ik(e){return e===120?2:e===117?4:e===85?8:0}function Nk(e){return 48<=e&&e<=57?e-48:-1}function Nd(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
95
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Bk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var lh=new Array(256),ph=new Array(256);for(sr=0;sr<256;sr++)lh[sr]=Nd(sr)?1:0,ph[sr]=Nd(sr);var sr;function Mk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||oh,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,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 fh(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=xC(r),new Ye(t,r)}function me(e,t){throw fh(e,t)}function xi(e,t){e.onWarning&&e.onWarning.call(null,fh(e,t))}var Bd={YAML:function(e,t,r){var i,n,u;e.version!==null&&me(e,"duplication of %YAML directive"),r.length!==1&&me(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&me(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),u=parseInt(i[2],10),n!==1&&me(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=u<2,u!==1&&u!==2&&xi(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var i,n;r.length!==2&&me(e,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],uh.test(i)||me(e,"ill-formed tag handle (first argument) of the TAG directive"),$t.call(e.tagMap,i)&&me(e,'there is a previously declared suffix for "'+i+'" tag handle'),ch.test(n)||me(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{me(e,"tag prefix is malformed: "+n)}e.tagMap[i]=n}};function jt(e,t,r,i){var n,u,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(n=0,u=o.length;n<u;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||me(e,"expected valid JSON character");else Ok.test(o)&&me(e,"the stream contains non-printable characters");e.result+=o}}function Md(e,t,r,i){var n,u,s,o;for(Te.isObject(r)||me(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)u=n[s],$t.call(t,u)||(t[u]=r[u],i[u]=!0)}function Br(e,t,r,i,n,u,s,o,a){var c,p;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,p=n.length;c<p;c+=1)Array.isArray(n[c])&&me(e,"nested arrays are not supported inside keys"),typeof n=="object"&&Id(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Id(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(c=0,p=u.length;c<p;c+=1)Md(e,t,u[c],r);else Md(e,t,u,r);else!e.json&&!$t.call(r,n)&&$t.call(t,n)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=a||e.position,me(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:u}):t[n]=u,delete r[n];return t}function Ga(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):me(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ke(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;ar(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(mt(n))for(Ga(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&xi(e,"deficient indentation"),i}function Ri(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ve(r)))}function qa(e,t){t===1?e.result+=" ":t>1&&(e.result+=Te.repeat(`
|
96
|
+
`,t-1))}function jk(e,t,r){var i,n,u,s,o,a,c,p,l=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),Ve(d)||Nr(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),Ve(n)||r&&Nr(n)))return!1;for(e.kind="scalar",e.result="",u=s=e.position,o=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),Ve(n)||r&&Nr(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),Ve(i))break}else{if(e.position===e.lineStart&&Ri(e)||r&&Nr(d))break;if(mt(d))if(a=e.line,c=e.lineStart,p=e.lineIndent,ke(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=a,e.lineStart=c,e.lineIndent=p;break}}o&&(jt(e,u,s,!1),qa(e,e.line-a),u=s=e.position,o=!1),ar(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return jt(e,u,s,!1),e.result?!0:(e.kind=l,e.result=f,!1)}function $k(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(jt(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else mt(r)?(jt(e,i,n,!0),qa(e,ke(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Ri(e)?me(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);me(e,"unexpected end of the stream within a single quoted scalar")}function Hk(e,t){var r,i,n,u,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return jt(e,r,e.position,!0),e.position++,!0;if(o===92){if(jt(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),mt(o))ke(e,!1,t);else if(o<256&&lh[o])e.result+=ph[o],e.position++;else if((s=Ik(o))>0){for(n=s,u=0;n>0;n--)o=e.input.charCodeAt(++e.position),(s=Lk(o))>=0?u=(u<<4)+s:me(e,"expected hexadecimal character");e.result+=Bk(u),e.position++}else me(e,"unknown escape sequence");r=i=e.position}else mt(o)?(jt(e,r,i,!0),qa(e,ke(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Ri(e)?me(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}me(e,"unexpected end of the stream within a double quoted scalar")}function Gk(e,t){var r=!0,i,n,u,s=e.tag,o,a=e.anchor,c,p,l,f,d,m=Object.create(null),g,_,E,h;if(h=e.input.charCodeAt(e.position),h===91)p=93,d=!1,o=[];else if(h===123)p=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),h=e.input.charCodeAt(++e.position);h!==0;){if(ke(e,!0,t),h=e.input.charCodeAt(e.position),h===p)return e.position++,e.tag=s,e.anchor=a,e.kind=d?"mapping":"sequence",e.result=o,!0;r?h===44&&me(e,"expected the node content, but found ','"):me(e,"missed comma between flow collection entries"),_=g=E=null,l=f=!1,h===63&&(c=e.input.charCodeAt(e.position+1),Ve(c)&&(l=f=!0,e.position++,ke(e,!0,t))),i=e.line,n=e.lineStart,u=e.position,Mr(e,t,bi,!1,!0),_=e.tag,g=e.result,ke(e,!0,t),h=e.input.charCodeAt(e.position),(f||e.line===i)&&h===58&&(l=!0,h=e.input.charCodeAt(++e.position),ke(e,!0,t),Mr(e,t,bi,!1,!0),E=e.result),d?Br(e,o,m,_,g,E,i,n,u):l?o.push(Br(e,null,m,_,g,E,i,n,u)):o.push(g),ke(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}me(e,"unexpected end of the stream within a flow collection")}function qk(e,t){var r,i,n=ka,u=!1,s=!1,o=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)i=!1;else if(l===62)i=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)ka===n?n=l===43?Ld:Rk:me(e,"repeat of a chomping mode identifier");else if((p=Nk(l))>=0)p===0?me(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?me(e,"repeat of an indentation width identifier"):(o=t+p-1,s=!0);else break;if(ar(l)){do l=e.input.charCodeAt(++e.position);while(ar(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!mt(l)&&l!==0)}for(;l!==0;){for(Ga(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),mt(l)){a++;continue}if(e.lineIndent<o){n===Ld?e.result+=Te.repeat(`
|
97
|
+
`,u?1+a:a):n===ka&&u&&(e.result+=`
|
98
|
+
`);break}for(i?ar(l)?(c=!0,e.result+=Te.repeat(`
|
99
|
+
`,u?1+a:a)):c?(c=!1,e.result+=Te.repeat(`
|
100
|
+
`,a+1)):a===0?u&&(e.result+=" "):e.result+=Te.repeat(`
|
101
|
+
`,a):e.result+=Te.repeat(`
|
102
|
+
`,u?1+a:a),u=!0,s=!0,a=0,r=e.position;!mt(l)&&l!==0;)l=e.input.charCodeAt(++e.position);jt(e,r,e.position,!1)}return!0}function jd(e,t){var r,i=e.tag,n=e.anchor,u=[],s,o=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),!(a!==45||(s=e.input.charCodeAt(e.position+1),!Ve(s))));){if(o=!0,e.position++,ke(e,!0,-1)&&e.lineIndent<=t){u.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,Mr(e,t,ah,!1,!0),u.push(e.result),ke(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)me(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=u,!0):!1}function Uk(e,t,r){var i,n,u,s,o,a,c=e.tag,p=e.anchor,l={},f=Object.create(null),d=null,m=null,g=null,_=!1,E=!1,h;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),h=e.input.charCodeAt(e.position);h!==0;){if(!_&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),u=e.line,(h===63||h===58)&&Ve(i))h===63?(_&&(Br(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!0,n=!0):_?(_=!1,n=!0):me(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,h=i;else{if(s=e.line,o=e.lineStart,a=e.position,!Mr(e,r,sh,!1,!0))break;if(e.line===u){for(h=e.input.charCodeAt(e.position);ar(h);)h=e.input.charCodeAt(++e.position);if(h===58)h=e.input.charCodeAt(++e.position),Ve(h)||me(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(Br(e,l,f,d,m,null,s,o,a),d=m=g=null),E=!0,_=!1,n=!1,d=e.tag,m=e.result;else if(E)me(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=p,!0}else if(E)me(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=p,!0}if((e.line===u||e.lineIndent>t)&&(_&&(s=e.line,o=e.lineStart,a=e.position),Mr(e,t,Di,!0,n)&&(_?m=e.result:g=e.result),_||(Br(e,l,f,d,m,g,s,o,a),d=m=g=null),ke(e,!0,-1),h=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>t)&&h!==0)me(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return _&&Br(e,l,f,d,m,null,s,o,a),E&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=l),E}function Wk(e){var t,r=!1,i=!1,n,u,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&me(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,n="!!",s=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(u=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):me(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ve(s);)s===33&&(i?me(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),uh.test(n)||me(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(t,e.position),Pk.test(u)&&me(e,"tag suffix cannot contain flow indicator characters")}u&&!ch.test(u)&&me(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{me(e,"tag name is malformed: "+u)}return r?e.tag=u:$t.call(e.tagMap,n)?e.tag=e.tagMap[n]+u:n==="!"?e.tag="!"+u:n==="!!"?e.tag="tag:yaml.org,2002:"+u:me(e,'undeclared tag handle "'+n+'"'),!0}function Kk(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&me(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ve(r)&&!Nr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Yk(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Ve(i)&&!Nr(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),$t.call(e.anchorMap,r)||me(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ke(e,!0,-1),!0}function Mr(e,t,r,i,n){var u,s,o,a=1,c=!1,p=!1,l,f,d,m,g,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=s=o=Di===r||ah===r,i&&ke(e,!0,-1)&&(c=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;Wk(e)||Kk(e);)ke(e,!0,-1)?(c=!0,o=u,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):o=!1;if(o&&(o=c||n),(a===1||Di===r)&&(bi===r||sh===r?g=t:g=t+1,_=e.position-e.lineStart,a===1?o&&(jd(e,_)||Uk(e,_,g))||Gk(e,g)?p=!0:(s&&qk(e,g)||$k(e,g)||Hk(e,g)?p=!0:Yk(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&me(e,"alias node should not have any properties")):jk(e,g,bi===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(p=o&&jd(e,_))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&me(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,f=e.implicitTypes.length;l<f;l+=1)if(m=e.implicitTypes[l],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if($t.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,f=d.length;l<f;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){m=d[l];break}m||me(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&me(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):me(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function Vk(e){var t=e.position,r,i,n,u=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(ke(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(u=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Ve(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&me(e,"directive name must not be less than one character in length");s!==0;){for(;ar(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!mt(s));break}if(mt(s))break;for(r=e.position;s!==0&&!Ve(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}s!==0&&Ga(e),$t.call(Bd,i)?Bd[i](e,i,n):xi(e,'unknown document directive "'+i+'"')}if(ke(e,!0,-1),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,ke(e,!0,-1)):u&&me(e,"directives end mark is expected"),Mr(e,e.lineIndent-1,Di,!1,!0),ke(e,!0,-1),e.checkLineBreaks&&Tk.test(e.input.slice(t,e.position))&&xi(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ri(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ke(e,!0,-1));return}if(e.position<e.length-1)me(e,"end of the stream or a document separator is expected");else return}function dh(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
103
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Mk(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,me(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Vk(r);return r.documents}function Qk(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=dh(e,r);if(typeof t!="function")return i;for(var n=0,u=i.length;n<u;n+=1)t(i[n])}function Xk(e,t){var r=dh(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ye("expected a single document in the stream, but found more")}}var Jk=Qk,Zk=Xk,hh={loadAll:Jk,load:Zk},mh=Object.prototype.toString,yh=Object.prototype.hasOwnProperty,Ua=65279,zk=9,pn=10,eF=13,tF=32,rF=33,nF=34,Ra=35,iF=37,oF=38,sF=39,aF=42,gh=44,uF=45,wi=58,cF=61,lF=62,pF=63,fF=64,vh=91,_h=93,dF=96,Eh=123,hF=124,Sh=125,$e={};$e[0]="\\0";$e[7]="\\a";$e[8]="\\b";$e[9]="\\t";$e[10]="\\n";$e[11]="\\v";$e[12]="\\f";$e[13]="\\r";$e[27]="\\e";$e[34]='\\"';$e[92]="\\\\";$e[133]="\\N";$e[160]="\\_";$e[8232]="\\L";$e[8233]="\\P";var mF=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],yF=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function gF(e,t){var r,i,n,u,s,o,a;if(t===null)return{};for(r={},i=Object.keys(t),n=0,u=i.length;n<u;n+=1)s=i[n],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),a=e.compiledTypeMap.fallback[s],a&&yh.call(a.styleAliases,o)&&(o=a.styleAliases[o]),r[s]=o;return r}function vF(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Ye("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Te.repeat("0",i-t.length)+t}var _F=1,fn=2;function EF(e){this.schema=e.schema||oh,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Te.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=gF(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?fn:_F,this.forceQuotes=e.forceQuotes||!1,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 $d(e,t){for(var r=Te.repeat(" ",t),i=0,n=-1,u="",s,o=e.length;i<o;)n=e.indexOf(`
|
104
|
+
`,i),n===-1?(s=e.slice(i),i=o):(s=e.slice(i,n+1),i=n+1),s.length&&s!==`
|
105
|
+
`&&(u+=r),u+=s;return u}function Oa(e,t){return`
|
106
|
+
`+Te.repeat(" ",e.indent*t)}function SF(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}function Ci(e){return e===tF||e===zk}function dn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ua||65536<=e&&e<=1114111}function Hd(e){return dn(e)&&e!==Ua&&e!==eF&&e!==pn}function Gd(e,t,r){var i=Hd(e),n=i&&!Ci(e);return(r?i:i&&e!==gh&&e!==vh&&e!==_h&&e!==Eh&&e!==Sh)&&e!==Ra&&!(t===wi&&!n)||Hd(t)&&!Ci(t)&&e===Ra||t===wi&&n}function AF(e){return dn(e)&&e!==Ua&&!Ci(e)&&e!==uF&&e!==pF&&e!==wi&&e!==gh&&e!==vh&&e!==_h&&e!==Eh&&e!==Sh&&e!==Ra&&e!==oF&&e!==aF&&e!==rF&&e!==hF&&e!==cF&&e!==lF&&e!==sF&&e!==nF&&e!==iF&&e!==fF&&e!==dF}function bF(e){return!Ci(e)&&e!==wi}function cn(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Ah(e){var t=/^\n* /;return t.test(e)}var bh=1,Ta=2,Dh=3,xh=4,Ir=5;function DF(e,t,r,i,n,u,s,o){var a,c=0,p=null,l=!1,f=!1,d=i!==-1,m=-1,g=AF(cn(e,0))&&bF(cn(e,e.length-1));if(t||s)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=cn(e,a),!dn(c))return Ir;g=g&&Gd(c,p,o),p=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=cn(e,a),c===pn)l=!0,d&&(f=f||a-m-1>i&&e[m+1]!==" ",m=a);else if(!dn(c))return Ir;g=g&&Gd(c,p,o),p=c}f=f||d&&a-m-1>i&&e[m+1]!==" "}return!l&&!f?g&&!s&&!n(e)?bh:u===fn?Ir:Ta:r>9&&Ah(e)?Ir:s?u===fn?Ir:Ta:f?xh:Dh}function xF(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===fn?'""':"''";if(!e.noCompatMode&&(mF.indexOf(t)!==-1||yF.test(t)))return e.quotingType===fn?'"'+t+'"':"'"+t+"'";var u=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),o=i||e.flowLevel>-1&&r>=e.flowLevel;function a(c){return SF(e,c)}switch(DF(t,o,e.indent,s,a,e.quotingType,e.forceQuotes&&!i,n)){case bh:return t;case Ta:return"'"+t.replace(/'/g,"''")+"'";case Dh:return"|"+qd(t,e.indent)+Ud($d(t,u));case xh:return">"+qd(t,e.indent)+Ud($d(wF(t,s),u));case Ir:return'"'+CF(t)+'"';default:throw new Ye("impossible error: invalid scalar style")}}()}function qd(e,t){var r=Ah(e)?String(t):"",i=e[e.length-1]===`
|
107
|
+
`,n=i&&(e[e.length-2]===`
|
108
|
+
`||e===`
|
109
|
+
`),u=n?"+":i?"":"-";return r+u+`
|
110
|
+
`}function Ud(e){return e[e.length-1]===`
|
111
|
+
`?e.slice(0,-1):e}function wF(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
|
112
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,Wd(e.slice(0,c),t)}(),n=e[0]===`
|
113
|
+
`||e[0]===" ",u,s;s=r.exec(e);){var o=s[1],a=s[2];u=a[0]===" ",i+=o+(!n&&!u&&a!==""?`
|
114
|
+
`:"")+Wd(a,t),n=u}return i}function Wd(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,u,s=0,o=0,a="";i=r.exec(e);)o=i.index,o-n>t&&(u=s>n?s:o,a+=`
|
115
|
+
`+e.slice(n,u),n=u+1),s=o;return a+=`
|
116
|
+
`,e.length-n>t&&s>n?a+=e.slice(n,s)+`
|
117
|
+
`+e.slice(s+1):a+=e.slice(n),a.slice(1)}function CF(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=cn(e,n),i=$e[r],!i&&dn(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||vF(r);return t}function kF(e,t,r){var i="",n=e.tag,u,s,o;for(u=0,s=r.length;u<s;u+=1)o=r[u],e.replacer&&(o=e.replacer.call(r,String(u),o)),(xt(e,t,o,!1,!1)||typeof o>"u"&&xt(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}function Kd(e,t,r,i){var n="",u=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(xt(e,t+1,a,!0,!0,!1,!0)||typeof a>"u"&&xt(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Oa(e,t)),e.dump&&pn===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=u,e.dump=n||"[]"}function FF(e,t,r){var i="",n=e.tag,u=Object.keys(r),s,o,a,c,p;for(s=0,o=u.length;s<o;s+=1)p="",i!==""&&(p+=", "),e.condenseFlow&&(p+='"'),a=u[s],c=r[a],e.replacer&&(c=e.replacer.call(r,a,c)),xt(e,t,a,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),xt(e,t,c,!1,!1)&&(p+=e.dump,i+=p));e.tag=n,e.dump="{"+i+"}"}function RF(e,t,r,i){var n="",u=e.tag,s=Object.keys(r),o,a,c,p,l,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Ye("sortKeys must be a boolean or a function");for(o=0,a=s.length;o<a;o+=1)f="",(!i||n!=="")&&(f+=Oa(e,t)),c=s[o],p=r[c],e.replacer&&(p=e.replacer.call(r,c,p)),xt(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&pn===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,l&&(f+=Oa(e,t)),xt(e,t+1,p,!0,l)&&(e.dump&&pn===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=u,e.dump=n||"{}"}function Yd(e,t,r){var i,n,u,s,o,a;for(n=r?e.explicitTypes:e.implicitTypes,u=0,s=n.length;u<s;u+=1)if(o=n[u],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(a=e.styleMap[o.tag]||o.defaultStyle,mh.call(o.represent)==="[object Function]")i=o.represent(t,a);else if(yh.call(o.represent,a))i=o.represent[a](t,a);else throw new Ye("!<"+o.tag+'> tag resolver accepts not "'+a+'" style');e.dump=i}return!0}return!1}function xt(e,t,r,i,n,u,s){e.tag=null,e.dump=r,Yd(e,r,!1)||Yd(e,r,!0);var o=mh.call(e.dump),a=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var p=o==="[object Object]"||o==="[object Array]",l,f;if(p&&(l=e.duplicates.indexOf(r),f=l!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&f&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(RF(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(FF(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Kd(e,t-1,e.dump,n):Kd(e,t,e.dump,n),f&&(e.dump="&ref_"+l+e.dump)):(kF(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&xF(e,e.dump,t,u,a);else{if(o==="[object Undefined]"||e.skipInvalid)return!1;throw new Ye("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function OF(e,t){var r=[],i=[],n,u;for(Pa(e,r,i),n=0,u=i.length;n<u;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(u)}function Pa(e,t,r){var i,n,u;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,u=e.length;n<u;n+=1)Pa(e[n],t,r);else for(i=Object.keys(e),n=0,u=i.length;n<u;n+=1)Pa(e[i[n]],t,r)}function TF(e,t){t=t||{};var r=new EF(t);r.noRefs||OF(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),xt(r,0,i,!0,!0)?r.dump+`
|
118
|
+
`:""}var PF=TF,LF={dump:PF};function Wa(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.")}}var _2=hh.load,E2=hh.loadAll,S2=LF.dump;var A2=Wa("safeLoad","load"),b2=Wa("safeLoadAll","loadAll"),D2=Wa("safeDump","dump");var x2=Mt(fC());j();var kh=Ae(require("os"),1),IF=U((e,t)=>{H(),t.exports=u,u.sync=s;var r=ae("fs");function i(o,a){var c=a.pathExt!==void 0?a.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var p=0;p<c.length;p++){var l=c[p].toLowerCase();if(l&&o.substr(-l.length).toLowerCase()===l)return!0}return!1}function n(o,a,c){return!o.isSymbolicLink()&&!o.isFile()?!1:i(a,c)}function u(o,a,c){r.stat(o,function(p,l){c(p,p?!1:n(l,o,a))})}function s(o,a){return n(r.statSync(o),o,a)}}),NF=U((e,t)=>{H(),t.exports=i,i.sync=n;var r=ae("fs");function i(o,a,c){r.stat(o,function(p,l){c(p,p?!1:u(l,a))})}function n(o,a){return u(r.statSync(o),a)}function u(o,a){return o.isFile()&&s(o,a)}function s(o,a){var c=o.mode,p=o.uid,l=o.gid,f=a.uid!==void 0?a.uid:process.getuid&&process.getuid(),d=a.gid!==void 0?a.gid:process.getgid&&process.getgid(),m=parseInt("100",8),g=parseInt("010",8),_=parseInt("001",8),E=m|g,h=c&_||c&g&&l===d||c&m&&p===f||c&E&&f===0;return h}}),BF=U((e,t)=>{H();var r=ae("fs"),i;process.platform==="win32"||global.TESTING_WINDOWS?i=IF():i=NF(),t.exports=n,n.sync=u;function n(s,o,a){if(typeof o=="function"&&(a=o,o={}),!a){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(c,p){n(s,o||{},function(l,f){l?p(l):c(f)})})}i(s,o||{},function(c,p){c&&(c.code==="EACCES"||o&&o.ignoreErrors)&&(c=null,p=!1),a(c,p)})}function u(s,o){try{return i.sync(s,o||{})}catch(a){if(o&&o.ignoreErrors||a.code==="EACCES")return!1;throw a}}}),MF=U((e,t)=>{H();var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=ae("path"),n=r?";":":",u=BF(),s=p=>Object.assign(new Error(`not found: ${p}`),{code:"ENOENT"}),o=(p,l)=>{let f=l.colon||n,d=p.match(/\//)||r&&p.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(f)],m=r?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=r?m.split(f):[""];return r&&p.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:d,pathExt:g,pathExtExe:m}},a=(p,l,f)=>{typeof l=="function"&&(f=l,l={}),l||(l={});let{pathEnv:d,pathExt:m,pathExtExe:g}=o(p,l),_=[],E=v=>new Promise((x,y)=>{if(v===d.length)return l.all&&_.length?x(_):y(s(p));let A=d[v],b=/^".*"$/.test(A)?A.slice(1,-1):A,k=i.join(b,p),D=!b&&/^\.[\\\/]/.test(p)?p.slice(0,2)+k:k;x(h(D,v,0))}),h=(v,x,y)=>new Promise((A,b)=>{if(y===m.length)return A(E(x+1));let k=m[y];u(v+k,{pathExt:g},(D,F)=>{if(!D&&F)if(l.all)_.push(v+k);else return A(v+k);return A(h(v,x,y+1))})});return f?E(0).then(v=>f(null,v),f):E(0)},c=(p,l)=>{l=l||{};let{pathEnv:f,pathExt:d,pathExtExe:m}=o(p,l),g=[];for(let _=0;_<f.length;_++){let E=f[_],h=/^".*"$/.test(E)?E.slice(1,-1):E,v=i.join(h,p),x=!h&&/^\.[\\\/]/.test(p)?p.slice(0,2)+v:v;for(let y=0;y<d.length;y++){let A=x+d[y];try{if(u.sync(A,{pathExt:m}))if(l.all)g.push(A);else return A}catch{}}}if(l.all&&g.length)return g;if(l.nothrow)return null;throw s(p)};t.exports=a,a.sync=c}),wh=U((e,t)=>{"use strict";H();var r=(i={})=>{let n=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(n).reverse().find(u=>u.toUpperCase()==="PATH")||"Path"};t.exports=r,t.exports.default=r}),jF=U((e,t)=>{"use strict";H();var r=ae("path"),i=MF(),n=wh();function u(o,a){let c=o.options.env||process.env,p=process.cwd(),l=o.options.cwd!=null,f=l&&process.chdir!==void 0&&!process.chdir.disabled;if(f)try{process.chdir(o.options.cwd)}catch{}let d;try{d=i.sync(o.command,{path:c[n({env:c})],pathExt:a?r.delimiter:void 0})}catch{}finally{f&&process.chdir(p)}return d&&(d=r.resolve(l?o.options.cwd:"",d)),d}function s(o){return u(o)||u(o,!0)}t.exports=s}),$F=U((e,t)=>{"use strict";H();var r=/([()\][%!^"`<>&|;, *?])/g;function i(u){return u=u.replace(r,"^$1"),u}function n(u,s){return u=`${u}`,u=u.replace(/(\\*)"/g,'$1$1\\"'),u=u.replace(/(\\*)$/,"$1$1"),u=`"${u}"`,u=u.replace(r,"^$1"),s&&(u=u.replace(r,"^$1")),u}t.exports.command=i,t.exports.argument=n}),HF=U((e,t)=>{"use strict";H(),t.exports=/^#!(.*)/}),GF=U((e,t)=>{"use strict";H();var r=HF();t.exports=(i="")=>{let n=i.match(r);if(!n)return null;let[u,s]=n[0].replace(/#! ?/,"").split(" "),o=u.split("/").pop();return o==="env"?s:s?`${o} ${s}`:o}}),qF=U((e,t)=>{"use strict";H();var r=ae("fs"),i=GF();function n(u){let s=Buffer.alloc(150),o;try{o=r.openSync(u,"r"),r.readSync(o,s,0,150,0),r.closeSync(o)}catch{}return i(s.toString())}t.exports=n}),UF=U((e,t)=>{"use strict";H();var r=ae("path"),i=jF(),n=$F(),u=qF(),s=process.platform==="win32",o=/\.(?:com|exe)$/i,a=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(f){f.file=i(f);let d=f.file&&u(f.file);return d?(f.args.unshift(f.file),f.command=d,i(f)):f.file}function p(f){if(!s)return f;let d=c(f),m=!o.test(d);if(f.options.forceShell||m){let g=a.test(d);f.command=r.normalize(f.command),f.command=n.command(f.command),f.args=f.args.map(E=>n.argument(E,g));let _=[f.command].concat(f.args).join(" ");f.args=["/d","/s","/c",`"${_}"`],f.command=process.env.comspec||"cmd.exe",f.options.windowsVerbatimArguments=!0}return f}function l(f,d,m){d&&!Array.isArray(d)&&(m=d,d=null),d=d?d.slice(0):[],m=Object.assign({},m);let g={command:f,args:d,options:m,file:void 0,original:{command:f,args:d}};return m.shell?g:p(g)}t.exports=l}),WF=U((e,t)=>{"use strict";H();var r=process.platform==="win32";function i(o,a){return Object.assign(new Error(`${a} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${a} ${o.command}`,path:o.command,spawnargs:o.args})}function n(o,a){if(!r)return;let c=o.emit;o.emit=function(p,l){if(p==="exit"){let f=u(l,a,"spawn");if(f)return c.call(o,"error",f)}return c.apply(o,arguments)}}function u(o,a){return r&&o===1&&!a.file?i(a.original,"spawn"):null}function s(o,a){return r&&o===1&&!a.file?i(a.original,"spawnSync"):null}t.exports={hookChildProcess:n,verifyENOENT:u,verifyENOENTSync:s,notFoundError:i}}),KF=U((e,t)=>{"use strict";H();var r=ae("child_process"),i=UF(),n=WF();function u(o,a,c){let p=i(o,a,c),l=r.spawn(p.command,p.args,p.options);return n.hookChildProcess(l,p),l}function s(o,a,c){let p=i(o,a,c),l=r.spawnSync(p.command,p.args,p.options);return l.error=l.error||n.verifyENOENTSync(l.status,p),l}t.exports=u,t.exports.spawn=u,t.exports.sync=s,t.exports._parse=i,t.exports._enoent=n}),YF=U((e,t)=>{"use strict";H(),t.exports=r=>{let i=typeof r=="string"?`
|
119
|
+
`:`
|
120
|
+
`.charCodeAt(),n=typeof r=="string"?"\r":"\r".charCodeAt();return r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r[r.length-1]===n&&(r=r.slice(0,r.length-1)),r}}),VF=U((e,t)=>{"use strict";H();var r=ae("path"),i=wh(),n=u=>{u={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...u};let s,o=r.resolve(u.cwd),a=[];for(;s!==o;)a.push(r.join(o,"node_modules/.bin")),s=o,o=r.resolve(o,"..");let c=r.resolve(u.cwd,u.execPath,"..");return a.push(c),a.concat(u.path).join(r.delimiter)};t.exports=n,t.exports.default=n,t.exports.env=u=>{u={env:process.env,...u};let s={...u.env},o=i({env:s});return u.path=s[o],s[o]=t.exports(u),s}}),QF=U((e,t)=>{"use strict";H();var r=(i,n)=>{for(let u of Reflect.ownKeys(n))Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(n,u));return i};t.exports=r,t.exports.default=r}),XF=U((e,t)=>{"use strict";H();var r=QF(),i=new WeakMap,n=(u,s={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let o,a=0,c=u.displayName||u.name||"<anonymous>",p=function(...l){if(i.set(p,++a),a===1)o=u.apply(this,l),u=null;else if(s.throw===!0)throw new Error(`Function \`${c}\` can only be called once`);return o};return r(p,u),i.set(p,a),p};t.exports=n,t.exports.default=n,t.exports.callCount=u=>{if(!i.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return i.get(u)}}),JF=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var t=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];e.SIGNALS=t}),Ch=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var t=function(){let u=n-i+1;return Array.from({length:u},r)};e.getRealtimeSignals=t;var r=function(u,s){return{name:`SIGRT${s+1}`,number:i+s,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},i=34,n=64;e.SIGRTMAX=n}),ZF=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var t=ae("os"),r=JF(),i=Ch(),n=function(){let s=(0,i.getRealtimeSignals)();return[...r.SIGNALS,...s].map(u)};e.getSignals=n;var u=function({name:s,number:o,description:a,action:c,forced:p=!1,standard:l}){let{signals:{[s]:f}}=t.constants,d=f!==void 0;return{name:s,number:d?f:o,description:a,supported:d,action:c,forced:p,standard:l}}}),zF=U(e=>{"use strict";H(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var t=ae("os"),r=ZF(),i=Ch(),n=function(){return(0,r.getSignals)().reduce(u,{})},u=function(l,{name:f,number:d,description:m,supported:g,action:_,forced:E,standard:h}){return{...l,[f]:{name:f,number:d,description:m,supported:g,action:_,forced:E,standard:h}}},s=n();e.signalsByName=s;var o=function(){let l=(0,r.getSignals)(),f=i.SIGRTMAX+1,d=Array.from({length:f},(m,g)=>a(g,l));return Object.assign({},...d)},a=function(l,f){let d=c(l,f);if(d===void 0)return{};let{name:m,description:g,supported:_,action:E,forced:h,standard:v}=d;return{[l]:{name:m,number:l,description:g,supported:_,action:E,forced:h,standard:v}}},c=function(l,f){let d=f.find(({name:m})=>t.constants.signals[m]===l);return d!==void 0?d:f.find(m=>m.number===l)},p=o();e.signalsByNumber=p}),eR=U((e,t)=>{"use strict";H();var{signalsByName:r}=zF(),i=({timedOut:u,timeout:s,errorCode:o,signal:a,signalDescription:c,exitCode:p,isCanceled:l})=>u?`timed out after ${s} milliseconds`:l?"was canceled":o!==void 0?`failed with ${o}`:a!==void 0?`was killed with ${a} (${c})`:p!==void 0?`failed with exit code ${p}`:"failed",n=({stdout:u,stderr:s,all:o,error:a,signal:c,exitCode:p,command:l,escapedCommand:f,timedOut:d,isCanceled:m,killed:g,parsed:{options:{timeout:_}}})=>{p=p===null?void 0:p,c=c===null?void 0:c;let E=c===void 0?void 0:r[c].description,h=a&&a.code,v=`Command ${i({timedOut:d,timeout:_,errorCode:h,signal:c,signalDescription:E,exitCode:p,isCanceled:m})}: ${l}`,x=Object.prototype.toString.call(a)==="[object Error]",y=x?`${v}
|
121
|
+
${a.message}`:v,A=[y,s,u].filter(Boolean).join(`
|
122
|
+
`);return x?(a.originalMessage=a.message,a.message=A):a=new Error(A),a.shortMessage=y,a.command=l,a.escapedCommand=f,a.exitCode=p,a.signal=c,a.signalDescription=E,a.stdout=u,a.stderr=s,o!==void 0&&(a.all=o),"bufferedData"in a&&delete a.bufferedData,a.failed=!0,a.timedOut=Boolean(d),a.isCanceled=m,a.killed=g&&!d,a};t.exports=n}),tR=U((e,t)=>{"use strict";H();var r=["stdin","stdout","stderr"],i=u=>r.some(s=>u[s]!==void 0),n=u=>{if(!u)return;let{stdio:s}=u;if(s===void 0)return r.map(a=>u[a]);if(i(u))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(a=>`\`${a}\``).join(", ")}`);if(typeof s=="string")return s;if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let o=Math.max(s.length,r.length);return Array.from({length:o},(a,c)=>s[c])};t.exports=n,t.exports.node=u=>{let s=n(u);return s==="ipc"?"ipc":s===void 0||typeof s=="string"?[s,s,s,"ipc"]:s.includes("ipc")?s:[...s,"ipc"]}}),rR=U((e,t)=>{H(),t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),nR=U((e,t)=>{H();var r=global.process,i=function(h){return h&&typeof h=="object"&&typeof h.removeListener=="function"&&typeof h.emit=="function"&&typeof h.reallyExit=="function"&&typeof h.listeners=="function"&&typeof h.kill=="function"&&typeof h.pid=="number"&&typeof h.on=="function"};i(r)?(n=ae("assert"),u=rR(),s=/^win/i.test(r.platform),o=ae("events"),typeof o!="function"&&(o=o.EventEmitter),r.__signal_exit_emitter__?a=r.__signal_exit_emitter__:(a=r.__signal_exit_emitter__=new o,a.count=0,a.emitted={}),a.infinite||(a.setMaxListeners(1/0),a.infinite=!0),t.exports=function(h,v){if(!i(global.process))return function(){};n.equal(typeof h,"function","a callback must be provided for exit handler"),f===!1&&d();var x="exit";v&&v.alwaysLast&&(x="afterexit");var y=function(){a.removeListener(x,h),a.listeners("exit").length===0&&a.listeners("afterexit").length===0&&c()};return a.on(x,h),y},c=function(){!f||!i(global.process)||(f=!1,u.forEach(function(h){try{r.removeListener(h,l[h])}catch{}}),r.emit=_,r.reallyExit=m,a.count-=1)},t.exports.unload=c,p=function(h,v,x){a.emitted[h]||(a.emitted[h]=!0,a.emit(h,v,x))},l={},u.forEach(function(h){l[h]=function(){if(i(global.process)){var v=r.listeners(h);v.length===a.count&&(c(),p("exit",null,h),p("afterexit",null,h),s&&h==="SIGHUP"&&(h="SIGINT"),r.kill(r.pid,h))}}}),t.exports.signals=function(){return u},f=!1,d=function(){f||!i(global.process)||(f=!0,a.count+=1,u=u.filter(function(h){try{return r.on(h,l[h]),!0}catch{return!1}}),r.emit=E,r.reallyExit=g)},t.exports.load=d,m=r.reallyExit,g=function(h){!i(global.process)||(r.exitCode=h||0,p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),m.call(r,r.exitCode))},_=r.emit,E=function(h,v){if(h==="exit"&&i(global.process)){v!==void 0&&(r.exitCode=v);var x=_.apply(this,arguments);return p("exit",r.exitCode,null),p("afterexit",r.exitCode,null),x}else return _.apply(this,arguments)}):t.exports=function(){return function(){}};var n,u,s,o,a,c,p,l,f,d,m,g,_,E}),iR=U((e,t)=>{"use strict";H();var r=ae("os"),i=nR(),n=1e3*5,u=(g,_="SIGTERM",E={})=>{let h=g(_);return s(g,_,E,h),h},s=(g,_,E,h)=>{if(!o(_,E,h))return;let v=c(E),x=setTimeout(()=>{g("SIGKILL")},v);x.unref&&x.unref()},o=(g,{forceKillAfterTimeout:_},E)=>a(g)&&_!==!1&&E,a=g=>g===r.constants.signals.SIGTERM||typeof g=="string"&&g.toUpperCase()==="SIGTERM",c=({forceKillAfterTimeout:g=!0})=>{if(g===!0)return n;if(!Number.isFinite(g)||g<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`);return g},p=(g,_)=>{g.kill()&&(_.isCanceled=!0)},l=(g,_,E)=>{g.kill(_),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:_}))},f=(g,{timeout:_,killSignal:E="SIGTERM"},h)=>{if(_===0||_===void 0)return h;let v,x=new Promise((A,b)=>{v=setTimeout(()=>{l(g,E,b)},_)}),y=h.finally(()=>{clearTimeout(v)});return Promise.race([x,y])},d=({timeout:g})=>{if(g!==void 0&&(!Number.isFinite(g)||g<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`)},m=async(g,{cleanup:_,detached:E},h)=>{if(!_||E)return h;let v=i(()=>{g.kill()});return h.finally(()=>{v()})};t.exports={spawnedKill:u,spawnedCancel:p,setupTimeout:f,validateTimeout:d,setExitHandler:m}}),oR=U((e,t)=>{"use strict";H();var r=i=>i!==null&&typeof i=="object"&&typeof i.pipe=="function";r.writable=i=>r(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object",r.readable=i=>r(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object",r.duplex=i=>r.writable(i)&&r.readable(i),r.transform=i=>r.duplex(i)&&typeof i._transform=="function",t.exports=r}),sR=U((e,t)=>{"use strict";H();var{PassThrough:r}=ae("stream");t.exports=i=>{i={...i};let{array:n}=i,{encoding:u}=i,s=u==="buffer",o=!1;n?o=!(u||s):u=u||"utf8",s&&(u=null);let a=new r({objectMode:o});u&&a.setEncoding(u);let c=0,p=[];return a.on("data",l=>{p.push(l),o?c=p.length:c+=l.length}),a.getBufferedValue=()=>n?p:s?Buffer.concat(p,c):p.join(""),a.getBufferedLength=()=>c,a}}),aR=U((e,t)=>{"use strict";H();var{constants:r}=ae("buffer"),i=ae("stream"),{promisify:n}=ae("util"),u=sR(),s=n(i.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(c,p){if(!c)throw new Error("Expected a stream");p={maxBuffer:1/0,...p};let{maxBuffer:l}=p,f=u(p);return await new Promise((d,m)=>{let g=_=>{_&&f.getBufferedLength()<=r.MAX_LENGTH&&(_.bufferedData=f.getBufferedValue()),m(_)};(async()=>{try{await s(c,f),d()}catch(_){g(_)}})(),f.on("data",()=>{f.getBufferedLength()>l&&g(new o)})}),f.getBufferedValue()}t.exports=a,t.exports.buffer=(c,p)=>a(c,{...p,encoding:"buffer"}),t.exports.array=(c,p)=>a(c,{...p,array:!0}),t.exports.MaxBufferError=o}),uR=U((e,t)=>{"use strict";H();var{PassThrough:r}=ae("stream");t.exports=function(){var i=[],n=new r({objectMode:!0});return n.setMaxListeners(0),n.add=u,n.isEmpty=s,n.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(u),n;function u(a){return Array.isArray(a)?(a.forEach(u),this):(i.push(a),a.once("end",o.bind(null,a)),a.once("error",n.emit.bind(n,"error")),a.pipe(n,{end:!1}),this)}function s(){return i.length==0}function o(a){i=i.filter(function(c){return c!==a}),!i.length&&n.readable&&n.end()}}}),cR=U((e,t)=>{"use strict";H();var r=oR(),i=aR(),n=uR(),u=(l,f)=>{f===void 0||l.stdin===void 0||(r(f)?f.pipe(l.stdin):l.stdin.end(f))},s=(l,{all:f})=>{if(!f||!l.stdout&&!l.stderr)return;let d=n();return l.stdout&&d.add(l.stdout),l.stderr&&d.add(l.stderr),d},o=async(l,f)=>{if(l){l.destroy();try{return await f}catch(d){return d.bufferedData}}},a=(l,{encoding:f,buffer:d,maxBuffer:m})=>{if(!(!l||!d))return f?i(l,{encoding:f,maxBuffer:m}):i.buffer(l,{maxBuffer:m})},c=async({stdout:l,stderr:f,all:d},{encoding:m,buffer:g,maxBuffer:_},E)=>{let h=a(l,{encoding:m,buffer:g,maxBuffer:_}),v=a(f,{encoding:m,buffer:g,maxBuffer:_}),x=a(d,{encoding:m,buffer:g,maxBuffer:_*2});try{return await Promise.all([E,h,v,x])}catch(y){return Promise.all([{error:y,signal:y.signal,timedOut:y.timedOut},o(l,h),o(f,v),o(d,x)])}},p=({input:l})=>{if(r(l))throw new TypeError("The `input` option cannot be a stream in sync mode")};t.exports={handleInput:u,makeAllStream:s,getSpawnedResult:c,validateInputSync:p}}),lR=U((e,t)=>{"use strict";H();var r=(async()=>{})().constructor.prototype,i=["then","catch","finally"].map(s=>[s,Reflect.getOwnPropertyDescriptor(r,s)]),n=(s,o)=>{for(let[a,c]of i){let p=typeof o=="function"?(...l)=>Reflect.apply(c.value,o(),l):c.value.bind(o);Reflect.defineProperty(s,a,{...c,value:p})}return s},u=s=>new Promise((o,a)=>{s.on("exit",(c,p)=>{o({exitCode:c,signal:p})}),s.on("error",c=>{a(c)}),s.stdin&&s.stdin.on("error",c=>{a(c)})});t.exports={mergePromise:n,getSpawnedPromise:u}}),pR=U((e,t)=>{"use strict";H();var r=(p,l=[])=>Array.isArray(l)?[p,...l]:[p],i=/^[\w.-]+$/,n=/"/g,u=p=>typeof p!="string"||i.test(p)?p:`"${p.replace(n,'\\"')}"`,s=(p,l)=>r(p,l).join(" "),o=(p,l)=>r(p,l).map(f=>u(f)).join(" "),a=/ +/g,c=p=>{let l=[];for(let f of p.trim().split(a)){let d=l[l.length-1];d&&d.endsWith("\\")?l[l.length-1]=`${d.slice(0,-1)} ${f}`:l.push(f)}return l};t.exports={joinCommand:s,getEscapedCommand:o,parseCommand:c}}),fR=U((e,t)=>{"use strict";H();var r=ae("path"),i=ae("child_process"),n=KF(),u=YF(),s=VF(),o=XF(),a=eR(),c=tR(),{spawnedKill:p,spawnedCancel:l,setupTimeout:f,validateTimeout:d,setExitHandler:m}=iR(),{handleInput:g,getSpawnedResult:_,makeAllStream:E,validateInputSync:h}=cR(),{mergePromise:v,getSpawnedPromise:x}=lR(),{joinCommand:y,parseCommand:A,getEscapedCommand:b}=pR(),k=1e3*1e3*100,D=({env:P,extendEnv:C,preferLocal:S,localDir:R,execPath:L})=>{let M=C?{...process.env,...P}:P;return S?s.env({env:M,cwd:R,execPath:L}):M},F=(P,C,S={})=>{let R=n._parse(P,C,S);return P=R.command,C=R.args,S=R.options,S={maxBuffer:k,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:S.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...S},S.env=D(S),S.stdio=c(S),process.platform==="win32"&&r.basename(P,".exe")==="cmd"&&C.unshift("/q"),{file:P,args:C,options:S,parsed:R}},w=(P,C,S)=>typeof C!="string"&&!Buffer.isBuffer(C)?S===void 0?void 0:"":P.stripFinalNewline?u(C):C,O=(P,C,S)=>{let R=F(P,C,S),L=y(P,C),M=b(P,C);d(R.options);let B;try{B=i.spawn(R.file,R.args,R.options)}catch(pe){let ne=new i.ChildProcess,T=Promise.reject(a({error:pe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1}));return v(ne,T)}let Q=x(B),Z=f(B,R.options,Q),oe=m(B,R.options,Z),N={isCanceled:!1};B.kill=p.bind(null,B.kill.bind(B)),B.cancel=l.bind(null,B,N);let le=o(async()=>{let[{error:pe,exitCode:ne,signal:T,timedOut:I},$,K,Y]=await _(B,R.options,oe),z=w(R.options,$),X=w(R.options,K),ee=w(R.options,Y);if(pe||ne!==0||T!==null){let ie=a({error:pe,exitCode:ne,signal:T,stdout:z,stderr:X,all:ee,command:L,escapedCommand:M,parsed:R,timedOut:I,isCanceled:N.isCanceled,killed:B.killed});if(!R.options.reject)return ie;throw ie}return{command:L,escapedCommand:M,exitCode:0,stdout:z,stderr:X,all:ee,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return g(B,R.options.input),B.all=E(B,R.options),v(B,le)};t.exports=O,t.exports.sync=(P,C,S)=>{let R=F(P,C,S),L=y(P,C),M=b(P,C);h(R.options);let B;try{B=i.spawnSync(R.file,R.args,R.options)}catch(oe){throw a({error:oe,stdout:"",stderr:"",all:"",command:L,escapedCommand:M,parsed:R,timedOut:!1,isCanceled:!1,killed:!1})}let Q=w(R.options,B.stdout,B.error),Z=w(R.options,B.stderr,B.error);if(B.error||B.status!==0||B.signal!==null){let oe=a({stdout:Q,stderr:Z,error:B.error,signal:B.signal,exitCode:B.status,command:L,escapedCommand:M,parsed:R,timedOut:B.error&&B.error.code==="ETIMEDOUT",isCanceled:!1,killed:B.signal!==null});if(!R.options.reject)return oe;throw oe}return{command:L,escapedCommand:M,exitCode:0,stdout:Q,stderr:Z,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},t.exports.command=(P,C)=>{let[S,...R]=A(P);return O(S,R,C)},t.exports.commandSync=(P,C)=>{let[S,...R]=A(P);return O.sync(S,R,C)},t.exports.node=(P,C,S={})=>{C&&!Array.isArray(C)&&typeof C=="object"&&(S=C,C=[]);let R=c.node(S),L=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:M=process.execPath,nodeOptions:B=L}=S;return O(M,[...B,P,...Array.isArray(C)?C:[]],{...S,stdin:void 0,stdout:void 0,stderr:void 0,stdio:R,shell:!1})}});H();var dR=Mt(fR());async function Ka(e){let t={cwd:kh.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"}};try{let r=await(0,dR.default)(e,["--version"],t);return{available:!0,version:r.stdout.trim()}}catch{return{available:!1}}}async function Ya(){let[e,t,r]=await Promise.all([Ka("yarnpkg"),Ka("npm"),Ka("pnpm")]);return{yarn:e,pnpm:t,npm:r}}H();j();var Fh=Ae(require("fs-extra")),hR=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];function Oi(e){let t=Fh.default.readdirSync(e).filter(r=>!hR.includes(r)).filter(r=>!/\.iml$/.test(r));return{isEmpty:t.length===0,conflicts:t}}var Ja=Ae(require("inquirer"));function Rh(e){let t=Va.default.resolve(e),r=Va.default.basename(t),i=Qa.default.existsSync(t),n=Qa.default.lstatSync(t,{throwIfNoEntry:!1});if(n&&!n.isDirectory())return{valid:!1,root:t,projectName:r,error:`${Xa.default.dim(r)} is not a directory - please try a different location`};if(i){let{isEmpty:u,conflicts:s}=Oi(t);if(!u)return{valid:!1,root:t,projectName:r,error:`${Xa.default.dim(r)} has ${s.length} conflicting ${s.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:t,projectName:r}}async function Oh({directory:e}){let t=await Ja.default.prompt({type:"input",name:"projectDirectory",message:"Where would you like to create your turborepo?",when:!e,default:"./my-turborepo",validate:i=>{let{valid:n,error:u}=Rh(i);return!n&&u?u:!0},filter:i=>i.trim()}),{projectDirectory:r=e}=t;return Rh(r)}async function Th({packageManager:e}){let t=await Ya(),r=await Ja.default.prompt({name:"packageManagerInput",type:"list",message:"Which package manager do you want to use?",when:!e||!Object.keys(t).includes(e),choices:["npm","pnpm","yarn"].map(n=>({name:n,value:n,disabled:u=>{var s;return(s=t==null?void 0:t[u])==null?void 0:s.available}}))}),{packageManagerInput:i=e}=r;return{name:i,version:t[i].version}}j();var tu=Ae(require("async-retry")),wt=Ae(require("chalk")),$r=Ae(require("fs-extra")),qt=Ae(require("path")),Vh=Ae(require("semver/functions/prerelease"));j();var Ti=Ae(require("got")),za=Ae(require("tar")),Ph=require("stream"),Lh=require("util"),Ih=require("path"),Nh=require("os"),hn=require("fs"),yR=(0,Lh.promisify)(Ph.Stream.pipeline);async function Za(e){try{return(await Ti.default.head(e)).statusCode===200}catch{return!1}}async function Bh(e,t){let[,r,i,n,u,...s]=e.pathname.split("/"),o=t?t.replace(/^\//,""):s.join("/");if(n===void 0||n===""&&u===void 0)try{let c=await(0,Ti.default)(`https://api.github.com/repos/${r}/${i}`),p=JSON.parse(c.body);return{username:r,name:i,branch:p.default_branch,filePath:o}}catch{return}let a=t?`${u}/${s.join("/")}`.replace(new RegExp(`/${o}|/$`),""):u;if(r&&i&&a&&n==="tree")return{username:r,name:i,branch:a,filePath:o}}function Mh({username:e,name:t,branch:r,filePath:i}){let n=`https://api.github.com/repos/${e}/${t}/contents`,u=`${i?`/${i}`:""}/package.json`;return Za(n+u+`?ref=${r}`)}function jh(e){try{let t=new URL(e);return Za(t.href)}catch{return Za(`https://api.github.com/repos/vercel/turbo/contents/examples/${encodeURIComponent(e)}`)}}async function $h(e,t){let r=(0,Ih.join)((0,Nh.tmpdir)(),`${t}.temp-${Date.now()}`);return await yR(Ti.default.stream(e),(0,hn.createWriteStream)(r)),r}async function Hh(e,{username:t,name:r,branch:i,filePath:n}){let u=await $h(`https://codeload.github.com/${t}/${r}/tar.gz/${i}`,"turbo-ct-example");await za.default.x({file:u,cwd:e,strip:n?n.split("/").length+1:1,filter:s=>s.startsWith(`${r}-${i.replace(/\//g,"-")}${n?`/${n}/`:"/"}`)}),await hn.promises.unlink(u)}async function Gh(e,t){let r=await $h("https://codeload.github.com/vercel/turbo/tar.gz/main","turbo-ct-example");await za.default.x({file:r,cwd:e,strip:2+t.split("/").length,filter:i=>i.includes(`turbo-main/examples/${t}/`)}),await hn.promises.unlink(r)}j();var eu=Ae(require("fs-extra")),Gt=require("child_process"),qh=Ae(require("path")),Uh=Ae(require("rimraf")),gR=`
|
123
|
+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
124
|
+
|
125
|
+
# dependencies
|
126
|
+
node_modules
|
127
|
+
.pnp
|
128
|
+
.pnp.js
|
129
|
+
|
130
|
+
# testing
|
131
|
+
coverage
|
132
|
+
|
133
|
+
# misc
|
134
|
+
.DS_Store
|
135
|
+
*.pem
|
136
|
+
|
137
|
+
# debug
|
138
|
+
npm-debug.log*
|
139
|
+
yarn-debug.log*
|
140
|
+
yarn-error.log*
|
141
|
+
|
142
|
+
# turbo
|
143
|
+
.turbo
|
144
|
+
|
145
|
+
# vercel
|
146
|
+
.vercel
|
147
|
+
`;function vR(){try{return(0,Gt.execSync)("git rev-parse --is-inside-work-tree",{stdio:"ignore"}),!0}catch{}return!1}function _R(){try{return(0,Gt.execSync)("hg --cwd . root",{stdio:"ignore"}),!0}catch{}return!1}function Wh(e){let t=!1;try{return(0,Gt.execSync)("git --version",{stdio:"ignore"}),vR()||_R()?!1:((0,Gt.execSync)("git init",{stdio:"ignore"}),t=!0,(0,Gt.execSync)("git checkout -b main",{stdio:"ignore"}),(0,Gt.execSync)("git add -A",{stdio:"ignore"}),(0,Gt.execSync)('git commit -m "Initial commit from create-turbo"',{stdio:"ignore"}),!0)}catch{if(t)try{Uh.default.sync(qh.default.join(e,".git"))}catch{}return!1}}function Kh(e){try{eu.default.existsSync(e)||eu.default.writeFileSync(e,gR)}catch{}}j();var Pi=Ae(require("fs-extra"));async function Yh(e){try{return await Pi.default.access(e,(Pi.default.constants||Pi.default).W_OK),!0}catch{return!1}}var ru=class extends Error{};async function Qh({appPath:e,projectName:t,example:r,examplePath:i}){var y;let n,u,s=r==="basic"||r==="default";try{u=new URL(r)}catch(A){A.code!=="ERR_INVALID_URL"&&(et(A),process.exit(1))}u?(u.origin!=="https://github.com"&&(et(`Invalid URL: ${wt.default.red(`"${r}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),n=await Bh(u,i),n||(et(`Found invalid GitHub URL: ${wt.default.red(`"${r}"`)}. Please fix the URL and try again.`),process.exit(1)),await Mh(n)||(et(`Could not locate the repository for ${wt.default.red(`"${r}"`)}. Please check that the repository exists and try again.`),process.exit(1))):await jh(r)||(et(`Could not locate an example named ${wt.default.red(`"${r}"`)}. It could be due to the following:
|
148
|
+
`,`1. Your spelling of example ${wt.default.red(`"${r}"`)} might be incorrect.
|
149
|
+
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1));let o=qt.default.resolve(e);await Yh(qt.default.dirname(o))||(et("The application path is not writable, please check folder permissions and try again."),et("It is likely you do not have write permissions for this folder."),process.exit(1));let a=qt.default.basename(o);try{await $r.default.mkdir(o,{recursive:!0})}catch(A){et("Unable to create project directory"),console.error(A),process.exit(1)}let{isEmpty:c,conflicts:p}=Oi(o);c||(et(`${wt.default.dim(o)} has ${p.length} conflicting ${p.length===1?"file":"files"} - please try a different location`),process.exit(1));let l=process.cwd();process.chdir(o);let f=_n("Downloading files...");try{if(n){let A=n;console.log(`
|
150
|
+
Downloading files from repo ${wt.default.cyan(r)}. This might take a moment.`),console.log(),f.start(),await(0,tu.default)(()=>Hh(o,A),{retries:3})}else console.log(`
|
151
|
+
Downloading files${s?"":` for example ${wt.default.cyan(r)}`}. This might take a moment.`),console.log(),f.start(),await(0,tu.default)(()=>Gh(o,r),{retries:3})}catch(A){let b=function(k){return typeof k=="object"&&k!==null&&typeof k.message=="string"};var x=b;throw new ru(b(A)?A.message:A+"")}finally{f.stop()}let d=qt.default.join(o,"package.json"),m=qt.default.join(o,"meta.json"),g=qt.default.join(o,".gitignore"),_=$r.default.existsSync(d),E=n&&n.username==="vercel"&&n.name==="turbo",h=[];if(E||!n)try{$r.default.rmSync(m,{force:!0})}catch{}if(_){let A;try{A=$r.default.readJsonSync(d)}catch{}if(A){s&&(A.name=t),(0,Vh.default)(ur.version)!==null&&((y=A==null?void 0:A.devDependencies)==null?void 0:y.turbo)&&(A.devDependencies.turbo="canary");try{$r.default.writeJsonSync(d,A,{spaces:2})}catch{}h.push(...Object.keys(A.scripts||{}))}}Kh(g),Wh(o);let v=e;return qt.default.join(l,a)===e&&(v=a),{cdPath:v,hasPackageJson:_,availableScripts:h}}function Xh(e){if(e instanceof yt.ConvertError&&e.type!=="unknown")et(ze.default.red(e.message)),process.exit(1);else throw e}var Jh={build:"Build",dev:"Develop",test:"Test",lint:"Lint"};async function nu(e,t,r){let{skipInstall:i}=r;console.log(ze.default.bold(cr(`
|
152
|
+
>>> TURBOREPO
|
153
|
+
`))),Ii("Welcome to Turborepo! Let's get you set up with a new codebase."),console.log();let{root:n,projectName:u}=await Oh({directory:e}),s=mn.default.relative(process.cwd(),n),o=s==="",a=await Th({packageManager:t}),{example:c,examplePath:p}=r,{hasPackageJson:l,availableScripts:f}=await Qh({appPath:n,projectName:u,example:c&&c!=="default"?c:"basic",examplePath:p}),d={};try{d=await(0,yt.getWorkspaceDetails)({root:n})}catch(g){Xh(g)}if(d.packageManager!==a.name)try{await(0,yt.convert)({root:n,to:a.name,options:{skipInstall:!0}})}catch(g){Xh(g)}if(Ii("Created a new Turborepo with the following:"),console.log(),d.workspaceData.workspaces.length>0){let g=d.workspaceData.workspaces.map(E=>{var h;return{group:((h=mn.default.relative(n,E.paths.root).split(mn.default.sep))==null?void 0:h[0])||"",title:mn.default.relative(n,E.paths.root),description:E.description}}).sort((E,h)=>E.title.localeCompare(h.title)),_;g.forEach(({group:E,title:h,description:v},x)=>{(x===0||E!==_)&&console.log(ze.default.cyan(E)),console.log(` - ${ze.default.bold(h)}${v?`: ${v}`:""}`),_=E})}else console.log(ze.default.cyan("apps")),console.log(` - ${ze.default.bold(u)}`);if(console.log(),l&&!i){console.log("Installing packages. This might take a couple of minutes."),console.log();let g=_n("Installing dependencies...").start();await(0,yt.install)({project:d,to:a,options:{interactive:!1}}),g.stop()}o?(console.log(`${ze.default.bold(cr(">>> Success!"))} Your new Turborepo is ready.`),console.log("Inside this directory, you can run several commands:")):(console.log(`${ze.default.bold(cr(">>> Success!"))} Created a new Turborepo at "${s}".`),console.log("Inside that directory, you can run several commands:"));let m=(0,yt.getPackageManagerMeta)(a);m&&l&&(console.log(),f.filter(g=>Jh[g]).forEach(g=>{console.log(ze.default.cyan(` ${m.command} run ${g}`)),console.log(` ${Jh[g]} all apps and packages`),console.log()}),console.log("Turborepo will cache locally by default. For an additional"),console.log("speed boost, enable Remote Caching with Vercel by"),console.log("entering the following command:"),console.log(),console.log(ze.default.cyan(` ${m.executable} turbo login`)),console.log(),console.log("We suggest that you begin by typing:"),console.log(),o||console.log(` ${ze.default.cyan("cd")} ${s}`),console.log(ze.default.cyan(` ${m.executable} turbo login`)),console.log())}var zh=new Zh.Command;zh.name(yn.default.bold(cr("create-turbo"))).description("Create a new Turborepo").usage(`${yn.default.bold("<project-directory> <package-manager>")} [options]`).argument("[project-directory]").argument("[package-manager]").option("--skip-install","Do not run a package manager install after conversion",!1).option("-e, --example [name]|[github-url]",`
|
154
|
+
An example to bootstrap the app with. You can use an example name
|
155
|
+
from the official Turborepo repo or a GitHub URL. The URL can use
|
156
|
+
any branch and/or subdirectory
|
157
|
+
`).option("--example-path <path-to-example>",`
|
158
|
+
In a rare case, your GitHub URL might contain a branch name with
|
159
|
+
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|
160
|
+
In this case, you must specify the path to the example separately:
|
161
|
+
--example-path foo/bar
|
162
|
+
`).version(ur.version,"-v, --version","output the current version").helpOption().action(nu);zh.parseAsync().then(gn).catch(async e=>{console.log(),e.command?console.log(` ${yn.default.cyan(e.command)} has failed.`):(console.log(yn.default.red("Unexpected error. Please report it as a bug:")),console.log(e)),console.log(),await gn(),process.exit(1)});
|
163
|
+
/*!
|
164
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
165
|
+
*
|
166
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
167
|
+
* Licensed under the MIT License.
|
168
|
+
*/
|
169
|
+
/*!
|
170
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
171
|
+
*
|
172
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
173
|
+
* Licensed under the MIT License.
|
174
|
+
*/
|
175
|
+
/*!
|
176
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
177
|
+
*
|
178
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
179
|
+
* Released under the MIT License.
|
180
|
+
*/
|
181
|
+
/*!
|
182
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
183
|
+
*
|
184
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
185
|
+
* Released under the MIT License.
|
186
|
+
*/
|
187
|
+
/*!
|
188
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
189
|
+
*
|
190
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
191
|
+
* Released under the MIT License.
|
192
|
+
*/
|
193
|
+
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
194
|
+
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
195
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
196
|
+
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|