@tsmodule/tsmodule 44.6.0 → 44.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +9 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
@@ -25,7 +25,7 @@ Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._life
|
|
25
25
|
`),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this._args.map(i=>Id(i));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=He.basename(e,He.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},i;return r.error?i=n=>this._outputConfiguration.writeErr(n):i=n=>this._outputConfiguration.writeOut(n),r.write=e.write||i,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let i=this._getHelpContext(e);lr(this).reverse().forEach(s=>s.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let n=this.helpInformation(i);if(r&&(n=r(n),typeof n!="string"&&!Buffer.isBuffer(n)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(n),this.emit(this._helpLongFlag),this.emit("afterHelp",i),lr(this).forEach(s=>s.emit("afterAllHelp",i))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let i=Dd(this._helpFlags);return this._helpShortFlag=i.shortFlag,this._helpLongFlag=i.longFlag,this}help(e){this.outputHelp(e);let r=V.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let i=["beforeAll","before","after","afterAll"];if(!i.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
26
26
|
Expecting one of '${i.join("', '")}'`);let n=`${e}Help`;return this.on(n,s=>{let o;typeof r=="function"?o=r({error:s.error,command:s.command}):o=r,o&&s.write(`${o}
|
27
27
|
`)}),this}};function nl(t,e){t._hasHelpOption&&e.find(i=>i===t._helpLongFlag||i===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function sl(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,i="127.0.0.1",n="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?n=s[3]:i=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],i=s[3],n=s[4]),r&&n!=="0"?`${r}=${i}:${parseInt(n)+1}`:e})}function lr(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}ol.Command=ur});var fl=g((Oe,cl)=>{var{Argument:Pd}=Kr(),{Command:ll}=al(),{CommanderError:Nd,InvalidArgumentError:ul}=ar(),{Help:Fd}=wn(),{Option:Md}=Rn();Oe=cl.exports=new ll;Oe.program=Oe;Oe.Argument=Pd;Oe.Command=ll;Oe.CommanderError=Nd;Oe.Help=Fd;Oe.InvalidArgumentError=ul;Oe.InvalidOptionArgumentError=ul;Oe.Option=Md});var kl=g(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.splitWhen=Ot.flatten=void 0;function fA(t){return t.reduce((e,r)=>[].concat(e,r),[])}Ot.flatten=fA;function hA(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Ot.splitWhen=hA});var Dl=g(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.isEnoentCodeError=void 0;function pA(t){return t.code==="ENOENT"}zr.isEnoentCodeError=pA});var Ll=g(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.createDirentFromStats=void 0;var Nn=class{constructor(e,r){this.name=e,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 dA(t,e){return new Nn(t,e)}ei.createDirentFromStats=dA});var Pl=g(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.removeLeadingDotSegment=Pe.escape=Pe.makeAbsolute=Pe.unixify=void 0;var AA=T("path"),gA=2,mA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function _A(t){return t.replace(/\\/g,"/")}Pe.unixify=_A;function EA(t,e){return AA.resolve(t,e)}Pe.makeAbsolute=EA;function yA(t){return t.replace(mA,"\\$2")}Pe.escape=yA;function bA(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(gA)}return t}Pe.removeLeadingDotSegment=bA});var Fl=g((hv,Nl)=>{Nl.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var jl=g((pv,ql)=>{var CA=Fl(),Ml={"{":"}","(":")","[":"]"},vA=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var l=Ml[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},xA=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=Ml[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};ql.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(CA(e))return!0;var i=vA;return r&&r.strict===!1&&(i=xA),i(e)}});var Hl=g((dv,$l)=>{"use strict";var wA=jl(),SA=T("path").posix.dirname,BA=T("os").platform()==="win32",Fn="/",RA=/\\/g,QA=/[\{\[].*[\}\]]$/,TA=/(^|[^\\])([\{\[]|\([^\)]+$)/,OA=/\\([\!\*\?\|\[\]\(\)\{\}])/g;$l.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&BA&&e.indexOf(Fn)<0&&(e=e.replace(RA,Fn)),QA.test(e)&&(e+=Fn),e+="a";do e=SA(e);while(wA(e)||TA.test(e));return e.replace(OA,"$1")}});var ti=g(we=>{"use strict";we.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;we.find=(t,e)=>t.nodes.find(r=>r.type===e);we.exceedsLimit=(t,e,r=1,i)=>i===!1||!we.isInteger(t)||!we.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;we.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};we.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);we.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;we.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;we.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);we.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var ri=g((gv,Gl)=>{"use strict";var Ul=ti();Gl.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Ul.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Ul.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)a+=r(l);return a};return r(t)}});var Jl=g((mv,Kl)=>{"use strict";Kl.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var ru=g((_v,tu)=>{"use strict";var Vl=Jl(),ft=(t,e,r)=>{if(Vl(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Vl(e)===!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),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),l=t+":"+e+"="+n+s+o+a;if(ft.cache.hasOwnProperty(l))return ft.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let m=t+"|"+e;return i.capture?`(${m})`:i.wrap===!1?m:`(?:${m})`}let f=eu(t)||eu(e),h={min:t,max:e,a:c,b:u},C=[],p=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let m=u<0?Math.abs(u):1;p=Wl(m,Math.abs(c),h,i),c=h.a=0}return u>=0&&(C=Wl(c,u,h,i)),h.negatives=p,h.positives=C,h.result=IA(p,C,i),i.capture===!0?h.result=`(${h.result})`:i.wrap!==!1&&C.length+p.length>1&&(h.result=`(?:${h.result})`),ft.cache[l]=h,h.result};function IA(t,e,r){let i=Mn(t,e,"-",!1,r)||[],n=Mn(e,t,"",!1,r)||[],s=Mn(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function kA(t,e){let r=1,i=1,n=Xl(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Xl(t,r);for(n=Zl(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Zl(e+1,i)-1;return s=[...s],s.sort(PA),s}function DA(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=LA(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[l,c]=i[a];l===c?s+=l:l!=="0"||c!=="9"?s+=NA(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Wl(t,e,r,i){let n=kA(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=DA(String(o),String(c),i),f="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+zl(a.count),o=c+1;continue}r.isPadded&&(f=FA(c,r,i)),u.string=f+u.pattern+zl(u.count),s.push(u),o=c+1,a=u}return s}function Mn(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Yl(e,"string",a)&&s.push(r+a),i&&Yl(e,"string",a)&&s.push(r+a)}return s}function LA(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function PA(t,e){return t>e?1:e>t?-1:0}function Yl(t,e,r){return t.some(i=>i[e]===r)}function Xl(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Zl(t,e){return t-t%Math.pow(10,e)}function zl(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function NA(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function eu(t){return/^-?(0+)\d/.test(t)}function FA(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).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}}`}}ft.cache={};ft.clearCache=()=>ft.cache={};tu.exports=ft});var $n=g((Ev,cu)=>{"use strict";var MA=T("util"),su=ru(),iu=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),qA=t=>e=>t===!0?Number(e):String(e),qn=t=>typeof t=="number"||typeof t=="string"&&t!=="",hr=t=>Number.isInteger(+t),jn=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},jA=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,$A=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},nu=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},HA=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},ou=(t,e,r,i)=>{if(r)return su(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},au=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return su(t,e,r)},lu=(...t)=>new RangeError("Invalid range arguments: "+MA.inspect(...t)),uu=(t,e,r)=>{if(r.strictRanges===!0)throw lu([t,e]);return[]},UA=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},GA=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw lu([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=jn(a)||jn(l)||jn(c),f=u?Math.max(a.length,l.length,c.length):0,h=u===!1&&jA(t,e,i)===!1,C=i.transform||qA(h);if(i.toRegex&&r===1)return ou(nu(t,f),nu(e,f),!0,i);let p={negatives:[],positives:[]},m=N=>p[N<0?"negatives":"positives"].push(Math.abs(N)),v=[],x=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?m(n):v.push($A(C(n,x),f,h)),n=o?n-r:n+r,x++;return i.toRegex===!0?r>1?HA(p,i):au(v,null,{wrap:!1,...i}):v},KA=(t,e,r=1,i={})=>{if(!hr(t)&&t.length>1||!hr(e)&&e.length>1)return uu(t,e,i);let n=i.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return ou(l,c,!1,i);let u=[],f=0;for(;a?s>=o:s<=o;)u.push(n(s,f)),s=a?s-r:s+r,f++;return i.toRegex===!0?au(u,null,{wrap:!1,options:i}):u},ii=(t,e,r,i={})=>{if(e==null&&qn(t))return[t];if(!qn(t)||!qn(e))return uu(t,e,i);if(typeof r=="function")return ii(t,e,1,{transform:r});if(iu(r))return ii(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,hr(r)?hr(t)&&hr(e)?GA(t,e,r,n):KA(t,e,Math.max(Math.abs(r),1),n):r!=null&&!iu(r)?UA(r,n):ii(t,e,1,r)};cu.exports=ii});var pu=g((yv,hu)=>{"use strict";var JA=$n(),fu=ti(),VA=(t,e={})=>{let r=(i,n={})=>{let s=fu.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return a?l+i.value:"(";if(i.type==="close")return a?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let u=fu.reduce(i.nodes),f=JA(...u,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return u.length>1&&f.length>1?`(${f})`:f}if(i.nodes)for(let u of i.nodes)c+=r(u,i);return c};return r(t)};hu.exports=VA});var gu=g((bv,Au)=>{"use strict";var WA=$n(),du=ri(),It=ti(),ht=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?It.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(ht(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?ht(n,s,r):n+s);return It.flatten(i)},YA=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(ht(a.pop(),du(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(ht(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=It.reduce(n.nodes);if(It.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=WA(...f,e);h.length===0&&(h=du(n,e)),a.push(ht(a.pop(),h)),n.nodes=[];return}let l=It.encloseBrace(n),c=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let f=0;f<n.nodes.length;f++){let h=n.nodes[f];if(h.type==="comma"&&n.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(ht(a.pop(),c,l));continue}if(h.value&&h.type!=="open"){c.push(ht(c.pop(),h.value));continue}h.nodes&&i(h,n)}return c};return It.flatten(i(t))};Au.exports=YA});var _u=g((Cv,mu)=>{"use strict";mu.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:`
|
28
|
-
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var vu=g((vv,Cu)=>{"use strict";var XA=ri(),{MAX_LENGTH:Eu,CHAR_BACKSLASH:Hn,CHAR_BACKTICK:ZA,CHAR_COMMA:zA,CHAR_DOT:eg,CHAR_LEFT_PARENTHESES:tg,CHAR_RIGHT_PARENTHESES:rg,CHAR_LEFT_CURLY_BRACE:ig,CHAR_RIGHT_CURLY_BRACE:ng,CHAR_LEFT_SQUARE_BRACKET:yu,CHAR_RIGHT_SQUARE_BRACKET:bu,CHAR_DOUBLE_QUOTE:sg,CHAR_SINGLE_QUOTE:og,CHAR_NO_BREAK_SPACE:ag,CHAR_ZERO_WIDTH_NOBREAK_SPACE:lg}=_u(),ug=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Eu,r.maxLength):Eu;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,l=0,c=t.length,u=0,f=0,h,C={},p=()=>t[u++],m=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(m({type:"bos"});u<c;)if(o=s[s.length-1],h=p(),!(h===lg||h===ag)){if(h===Hn){m({type:"text",value:(e.keepEscaping?h:"")+p()});continue}if(h===bu){m({type:"text",value:"\\"+h});continue}if(h===yu){l++;let v=!0,x;for(;u<c&&(x=p());){if(h+=x,x===yu){l++;continue}if(x===Hn){h+=p();continue}if(x===bu&&(l--,l===0))break}m({type:"text",value:h});continue}if(h===tg){o=m({type:"paren",nodes:[]}),s.push(o),m({type:"text",value:h});continue}if(h===rg){if(o.type!=="paren"){m({type:"text",value:h});continue}o=s.pop(),m({type:"text",value:h}),o=s[s.length-1];continue}if(h===sg||h===og||h===ZA){let v=h,x;for(e.keepQuotes!==!0&&(h="");u<c&&(x=p());){if(x===Hn){h+=x+p();continue}if(x===v){e.keepQuotes===!0&&(h+=x);break}h+=x}m({type:"text",value:h});continue}if(h===ig){f++;let x={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=m(x),s.push(o),m({type:"open",value:h});continue}if(h===ng){if(o.type!=="brace"){m({type:"text",value:h});continue}let v="close";o=s.pop(),o.close=!0,m({type:v,value:h}),f--,o=s[s.length-1];continue}if(h===zA&&f>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:XA(o)}]}m({type:"comma",value:h}),o.commas++;continue}if(h===eg&&f>0&&o.commas===0){let v=o.nodes;if(f===0||v.length===0){m({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){v.pop();let x=v[v.length-1];x.value+=a.value+h,a=x,o.ranges--;continue}m({type:"dot",value:h});continue}m({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(N=>{N.nodes||(N.type==="open"&&(N.isOpen=!0),N.type==="close"&&(N.isClose=!0),N.nodes||(N.type="text"),N.invalid=!0)});let v=s[s.length-1],x=v.nodes.indexOf(o);v.nodes.splice(x,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),n};Cu.exports=ug});var Su=g((xv,wu)=>{"use strict";var xu=ri(),cg=pu(),fg=gu(),hg=vu(),be=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=be.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(be.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};be.parse=(t,e={})=>hg(t,e);be.stringify=(t,e={})=>xu(typeof t=="string"?be.parse(t,e):t,e);be.compile=(t,e={})=>(typeof t=="string"&&(t=be.parse(t,e)),cg(t,e));be.expand=(t,e={})=>{typeof t=="string"&&(t=be.parse(t,e));let r=fg(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};be.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?be.compile(t,e):be.expand(t,e);wu.exports=be});var pr=g((wv,Ou)=>{"use strict";var pg=T("path"),Ne="\\\\/",Bu=`[^${Ne}]`,Ue="\\.",dg="\\+",Ag="\\?",ni="\\/",gg="(?=.)",Ru="[^/]",Un=`(?:${ni}|$)`,Qu=`(?:^|${ni})`,Gn=`${Ue}{1,2}${Un}`,mg=`(?!${Ue})`,_g=`(?!${Qu}${Gn})`,Eg=`(?!${Ue}{0,1}${Un})`,yg=`(?!${Gn})`,bg=`[^.${ni}]`,Cg=`${Ru}*?`,Tu={DOT_LITERAL:Ue,PLUS_LITERAL:dg,QMARK_LITERAL:Ag,SLASH_LITERAL:ni,ONE_CHAR:gg,QMARK:Ru,END_ANCHOR:Un,DOTS_SLASH:Gn,NO_DOT:mg,NO_DOTS:_g,NO_DOT_SLASH:Eg,NO_DOTS_SLASH:yg,QMARK_NO_DOT:bg,STAR:Cg,START_ANCHOR:Qu},vg={...Tu,SLASH_LITERAL:`[${Ne}]`,QMARK:Bu,STAR:`${Bu}*?`,DOTS_SLASH:`${Ue}{1,2}(?:[${Ne}]|$)`,NO_DOT:`(?!${Ue})`,NO_DOTS:`(?!(?:^|[${Ne}])${Ue}{1,2}(?:[${Ne}]|$))`,NO_DOT_SLASH:`(?!${Ue}{0,1}(?:[${Ne}]|$))`,NO_DOTS_SLASH:`(?!${Ue}{1,2}(?:[${Ne}]|$))`,QMARK_NO_DOT:`[^.${Ne}]`,START_ANCHOR:`(?:^|[${Ne}])`,END_ANCHOR:`(?:[${Ne}]|$)`},xg={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"};Ou.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:xg,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:pg.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?vg:Tu}}});var dr=g(me=>{"use strict";var wg=T("path"),Sg=process.platform==="win32",{REGEX_BACKSLASH:Bg,REGEX_REMOVE_BACKSLASH:Rg,REGEX_SPECIAL_CHARS:Qg,REGEX_SPECIAL_CHARS_GLOBAL:Tg}=pr();me.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);me.hasRegexChars=t=>Qg.test(t);me.isRegexChar=t=>t.length===1&&me.hasRegexChars(t);me.escapeRegex=t=>t.replace(Tg,"\\$1");me.toPosixSlashes=t=>t.replace(Bg,"/");me.removeBackslashes=t=>t.replace(Rg,e=>e==="\\"?"":e);me.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};me.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Sg===!0||wg.sep==="\\";me.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?me.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};me.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};me.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Mu=g((Bv,Fu)=>{"use strict";var Iu=dr(),{CHAR_ASTERISK:Kn,CHAR_AT:Og,CHAR_BACKWARD_SLASH:Ar,CHAR_COMMA:Ig,CHAR_DOT:Jn,CHAR_EXCLAMATION_MARK:Vn,CHAR_FORWARD_SLASH:Nu,CHAR_LEFT_CURLY_BRACE:Wn,CHAR_LEFT_PARENTHESES:Yn,CHAR_LEFT_SQUARE_BRACKET:kg,CHAR_PLUS:Dg,CHAR_QUESTION_MARK:ku,CHAR_RIGHT_CURLY_BRACE:Lg,CHAR_RIGHT_PARENTHESES:Du,CHAR_RIGHT_SQUARE_BRACKET:Pg}=pr(),Lu=t=>t===Nu||t===Ar,Pu=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Ng=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,f=0,h=!1,C=!1,p=!1,m=!1,v=!1,x=!1,N=!1,E=!1,I=!1,y=!1,k=0,S,O,j={value:"",depth:0,isGlob:!1},re=()=>c>=i,_=()=>l.charCodeAt(c+1),B=()=>(S=O,l.charCodeAt(++c));for(;c<i;){O=B();let ne;if(O===Ar){N=j.backslashes=!0,O=B(),O===Wn&&(x=!0);continue}if(x===!0||O===Wn){for(k++;re()!==!0&&(O=B());){if(O===Ar){N=j.backslashes=!0,B();continue}if(O===Wn){k++;continue}if(x!==!0&&O===Jn&&(O=B())===Jn){if(h=j.isBrace=!0,p=j.isGlob=!0,y=!0,n===!0)continue;break}if(x!==!0&&O===Ig){if(h=j.isBrace=!0,p=j.isGlob=!0,y=!0,n===!0)continue;break}if(O===Lg&&(k--,k===0)){x=!1,h=j.isBrace=!0,y=!0;break}}if(n===!0)continue;break}if(O===Nu){if(s.push(c),o.push(j),j={value:"",depth:0,isGlob:!1},y===!0)continue;if(S===Jn&&c===u+1){u+=2;continue}f=c+1;continue}if(r.noext!==!0&&(O===Dg||O===Og||O===Kn||O===ku||O===Vn)===!0&&_()===Yn){if(p=j.isGlob=!0,m=j.isExtglob=!0,y=!0,O===Vn&&c===u&&(I=!0),n===!0){for(;re()!==!0&&(O=B());){if(O===Ar){N=j.backslashes=!0,O=B();continue}if(O===Du){p=j.isGlob=!0,y=!0;break}}continue}break}if(O===Kn){if(S===Kn&&(v=j.isGlobstar=!0),p=j.isGlob=!0,y=!0,n===!0)continue;break}if(O===ku){if(p=j.isGlob=!0,y=!0,n===!0)continue;break}if(O===kg){for(;re()!==!0&&(ne=B());){if(ne===Ar){N=j.backslashes=!0,B();continue}if(ne===Pg){C=j.isBracket=!0,p=j.isGlob=!0,y=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&O===Vn&&c===u){E=j.negated=!0,u++;continue}if(r.noparen!==!0&&O===Yn){if(p=j.isGlob=!0,n===!0){for(;re()!==!0&&(O=B());){if(O===Yn){N=j.backslashes=!0,O=B();continue}if(O===Du){y=!0;break}}continue}break}if(p===!0){if(y=!0,n===!0)continue;break}}r.noext===!0&&(m=!1,p=!1);let D=l,_e="",d="";u>0&&(_e=l.slice(0,u),l=l.slice(u),f-=u),D&&p===!0&&f>0?(D=l.slice(0,f),d=l.slice(f)):p===!0?(D="",d=l):D=l,D&&D!==""&&D!=="/"&&D!==l&&Lu(D.charCodeAt(D.length-1))&&(D=D.slice(0,-1)),r.unescape===!0&&(d&&(d=Iu.removeBackslashes(d)),D&&N===!0&&(D=Iu.removeBackslashes(D)));let A={prefix:_e,input:t,start:u,base:D,glob:d,isBrace:h,isBracket:C,isGlob:p,isExtglob:m,isGlobstar:v,negated:E,negatedExtglob:I};if(r.tokens===!0&&(A.maxDepth=0,Lu(O)||o.push(j),A.tokens=o),r.parts===!0||r.tokens===!0){let ne;for(let q=0;q<s.length;q++){let ae=ne?ne+1:u,Ee=s[q],pe=t.slice(ae,Ee);r.tokens&&(q===0&&u!==0?(o[q].isPrefix=!0,o[q].value=_e):o[q].value=pe,Pu(o[q]),A.maxDepth+=o[q].depth),(q!==0||pe!=="")&&a.push(pe),ne=Ee}if(ne&&ne+1<t.length){let q=t.slice(ne+1);a.push(q),r.tokens&&(o[o.length-1].value=q,Pu(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};Fu.exports=Ng});var $u=g((Rv,ju)=>{"use strict";var si=pr(),Ce=dr(),{MAX_LENGTH:oi,POSIX_REGEX_SOURCE:Fg,REGEX_NON_SPECIAL_CHARS:Mg,REGEX_SPECIAL_CHARS_BACKREF:qg,REPLACEMENTS:qu}=si,jg=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>Ce.escapeRegex(n)).join("..")}return r},kt=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Xn=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=qu[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(oi,r.maxLength):oi,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=Ce.isWindows(e),c=si.globChars(l),u=si.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:C,ONE_CHAR:p,DOTS_SLASH:m,NO_DOT:v,NO_DOT_SLASH:x,NO_DOTS_SLASH:N,QMARK:E,QMARK_NO_DOT:I,STAR:y,START_ANCHOR:k}=c,S=w=>`(${a}(?:(?!${k}${w.dot?m:f}).)*?)`,O=r.dot?"":v,j=r.dot?E:I,re=r.bash===!0?S(r):y;r.capture&&(re=`(${re})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let _={input:t,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:o};t=Ce.removePrefix(t,_),n=t.length;let B=[],D=[],_e=[],d=s,A,ne=()=>_.index===n-1,q=_.peek=(w=1)=>t[_.index+w],ae=_.advance=()=>t[++_.index]||"",Ee=()=>t.slice(_.index+1),pe=(w="",K=0)=>{_.consumed+=w,_.index+=K},ut=w=>{_.output+=w.output!=null?w.output:w.value,pe(w.value)},fn=()=>{let w=1;for(;q()==="!"&&(q(2)!=="("||q(3)==="?");)ae(),_.start++,w++;return w%2===0?!1:(_.negated=!0,_.start++,!0)},nr=w=>{_[w]++,_e.push(w)},L=w=>{_[w]--,_e.pop()},Q=w=>{if(d.type==="globstar"){let K=_.braces>0&&(w.type==="comma"||w.type==="brace"),b=w.extglob===!0||B.length&&(w.type==="pipe"||w.type==="paren");w.type!=="slash"&&w.type!=="paren"&&!K&&!b&&(_.output=_.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=re,_.output+=d.output)}if(B.length&&w.type!=="paren"&&(B[B.length-1].inner+=w.value),(w.value||w.output)&&ut(w),d&&d.type==="text"&&w.type==="text"){d.value+=w.value,d.output=(d.output||"")+w.value;return}w.prev=d,o.push(w),d=w},ye=(w,K)=>{let b={...u[K],conditions:1,inner:""};b.prev=d,b.parens=_.parens,b.output=_.output;let F=(r.capture?"(":"")+b.open;nr("parens"),Q({type:w,value:K,output:_.output?"":p}),Q({type:"paren",extglob:!0,value:ae(),output:F}),B.push(b)},hn=w=>{let K=w.close+(r.capture?")":""),b;if(w.type==="negate"){let F=re;if(w.inner&&w.inner.length>1&&w.inner.includes("/")&&(F=S(r)),(F!==re||ne()||/^\)+$/.test(Ee()))&&(K=w.close=`)$))${F}`),w.inner.includes("*")&&(b=Ee())&&/^\.[^\\/.]+$/.test(b)){let Z=Xn(b,{...e,fastpaths:!1}).output;K=w.close=`)${Z})${F})`}w.prev.type==="bos"&&(_.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:A,output:K}),L("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let w=!1,K=t.replace(qg,(b,F,Z,de,oe,pn)=>de==="\\"?(w=!0,b):de==="?"?F?F+de+(oe?E.repeat(oe.length):""):pn===0?j+(oe?E.repeat(oe.length):""):E.repeat(Z.length):de==="."?f.repeat(Z.length):de==="*"?F?F+de+(oe?re:""):re:F?b:`\\${b}`);return w===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,b=>b.length%2===0?"\\\\":b?"\\":"")),K===t&&r.contains===!0?(_.output=t,_):(_.output=Ce.wrapOutput(K,_,e),_)}for(;!ne();){if(A=ae(),A==="\0")continue;if(A==="\\"){let b=q();if(b==="/"&&r.bash!==!0||b==="."||b===";")continue;if(!b){A+="\\",Q({type:"text",value:A});continue}let F=/^\\+/.exec(Ee()),Z=0;if(F&&F[0].length>2&&(Z=F[0].length,_.index+=Z,Z%2!==0&&(A+="\\")),r.unescape===!0?A=ae():A+=ae(),_.brackets===0){Q({type:"text",value:A});continue}}if(_.brackets>0&&(A!=="]"||d.value==="["||d.value==="[^")){if(r.posix!==!1&&A===":"){let b=d.value.slice(1);if(b.includes("[")&&(d.posix=!0,b.includes(":"))){let F=d.value.lastIndexOf("["),Z=d.value.slice(0,F),de=d.value.slice(F+2),oe=Fg[de];if(oe){d.value=Z+oe,_.backtrack=!0,ae(),!s.output&&o.indexOf(d)===1&&(s.output=p);continue}}}(A==="["&&q()!==":"||A==="-"&&q()==="]")&&(A=`\\${A}`),A==="]"&&(d.value==="["||d.value==="[^")&&(A=`\\${A}`),r.posix===!0&&A==="!"&&d.value==="["&&(A="^"),d.value+=A,ut({value:A});continue}if(_.quotes===1&&A!=='"'){A=Ce.escapeRegex(A),d.value+=A,ut({value:A});continue}if(A==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&Q({type:"text",value:A});continue}if(A==="("){nr("parens"),Q({type:"paren",value:A});continue}if(A===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(kt("opening","("));let b=B[B.length-1];if(b&&_.parens===b.parens+1){hn(B.pop());continue}Q({type:"paren",value:A,output:_.parens?")":"\\)"}),L("parens");continue}if(A==="["){if(r.nobracket===!0||!Ee().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(kt("closing","]"));A=`\\${A}`}else nr("brackets");Q({type:"bracket",value:A});continue}if(A==="]"){if(r.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){Q({type:"text",value:A,output:`\\${A}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(kt("opening","["));Q({type:"text",value:A,output:`\\${A}`});continue}L("brackets");let b=d.value.slice(1);if(d.posix!==!0&&b[0]==="^"&&!b.includes("/")&&(A=`/${A}`),d.value+=A,ut({value:A}),r.literalBrackets===!1||Ce.hasRegexChars(b))continue;let F=Ce.escapeRegex(d.value);if(_.output=_.output.slice(0,-d.value.length),r.literalBrackets===!0){_.output+=F,d.value=F;continue}d.value=`(${a}${F}|${d.value})`,_.output+=d.value;continue}if(A==="{"&&r.nobrace!==!0){nr("braces");let b={type:"brace",value:A,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};D.push(b),Q(b);continue}if(A==="}"){let b=D[D.length-1];if(r.nobrace===!0||!b){Q({type:"text",value:A,output:A});continue}let F=")";if(b.dots===!0){let Z=o.slice(),de=[];for(let oe=Z.length-1;oe>=0&&(o.pop(),Z[oe].type!=="brace");oe--)Z[oe].type!=="dots"&&de.unshift(Z[oe].value);F=jg(de,r),_.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let Z=_.output.slice(0,b.outputIndex),de=_.tokens.slice(b.tokensIndex);b.value=b.output="\\{",A=F="\\}",_.output=Z;for(let oe of de)_.output+=oe.output||oe.value}Q({type:"brace",value:A,output:F}),L("braces"),D.pop();continue}if(A==="|"){B.length>0&&B[B.length-1].conditions++,Q({type:"text",value:A});continue}if(A===","){let b=A,F=D[D.length-1];F&&_e[_e.length-1]==="braces"&&(F.comma=!0,b="|"),Q({type:"comma",value:A,output:b});continue}if(A==="/"){if(d.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",o.pop(),d=s;continue}Q({type:"slash",value:A,output:C});continue}if(A==="."){if(_.braces>0&&d.type==="dot"){d.value==="."&&(d.output=f);let b=D[D.length-1];d.type="dots",d.output+=A,d.value+=A,b.dots=!0;continue}if(_.braces+_.parens===0&&d.type!=="bos"&&d.type!=="slash"){Q({type:"text",value:A,output:f});continue}Q({type:"dot",value:A,output:f});continue}if(A==="?"){if(!(d&&d.value==="(")&&r.noextglob!==!0&&q()==="("&&q(2)!=="?"){ye("qmark",A);continue}if(d&&d.type==="paren"){let F=q(),Z=A;if(F==="<"&&!Ce.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(d.value==="("&&!/[!=<:]/.test(F)||F==="<"&&!/<([!=]|\w+>)/.test(Ee()))&&(Z=`\\${A}`),Q({type:"text",value:A,output:Z});continue}if(r.dot!==!0&&(d.type==="slash"||d.type==="bos")){Q({type:"qmark",value:A,output:I});continue}Q({type:"qmark",value:A,output:E});continue}if(A==="!"){if(r.noextglob!==!0&&q()==="("&&(q(2)!=="?"||!/[!=<:]/.test(q(3)))){ye("negate",A);continue}if(r.nonegate!==!0&&_.index===0){fn();continue}}if(A==="+"){if(r.noextglob!==!0&&q()==="("&&q(2)!=="?"){ye("plus",A);continue}if(d&&d.value==="("||r.regex===!1){Q({type:"plus",value:A,output:h});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||_.parens>0){Q({type:"plus",value:A});continue}Q({type:"plus",value:h});continue}if(A==="@"){if(r.noextglob!==!0&&q()==="("&&q(2)!=="?"){Q({type:"at",extglob:!0,value:A,output:""});continue}Q({type:"text",value:A});continue}if(A!=="*"){(A==="$"||A==="^")&&(A=`\\${A}`);let b=Mg.exec(Ee());b&&(A+=b[0],_.index+=b[0].length),Q({type:"text",value:A});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=A,d.output=re,_.backtrack=!0,_.globstar=!0,pe(A);continue}let w=Ee();if(r.noextglob!==!0&&/^\([^?]/.test(w)){ye("star",A);continue}if(d.type==="star"){if(r.noglobstar===!0){pe(A);continue}let b=d.prev,F=b.prev,Z=b.type==="slash"||b.type==="bos",de=F&&(F.type==="star"||F.type==="globstar");if(r.bash===!0&&(!Z||w[0]&&w[0]!=="/")){Q({type:"star",value:A,output:""});continue}let oe=_.braces>0&&(b.type==="comma"||b.type==="brace"),pn=B.length&&(b.type==="pipe"||b.type==="paren");if(!Z&&b.type!=="paren"&&!oe&&!pn){Q({type:"star",value:A,output:""});continue}for(;w.slice(0,3)==="/**";){let $r=t[_.index+4];if($r&&$r!=="/")break;w=w.slice(3),pe("/**",3)}if(b.type==="bos"&&ne()){d.type="globstar",d.value+=A,d.output=S(r),_.output=d.output,_.globstar=!0,pe(A);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!de&&ne()){_.output=_.output.slice(0,-(b.output+d.output).length),b.output=`(?:${b.output}`,d.type="globstar",d.output=S(r)+(r.strictSlashes?")":"|$)"),d.value+=A,_.globstar=!0,_.output+=b.output+d.output,pe(A);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&w[0]==="/"){let $r=w[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(b.output+d.output).length),b.output=`(?:${b.output}`,d.type="globstar",d.output=`${S(r)}${C}|${C}${$r})`,d.value+=A,_.output+=b.output+d.output,_.globstar=!0,pe(A+ae()),Q({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&w[0]==="/"){d.type="globstar",d.value+=A,d.output=`(?:^|${C}|${S(r)}${C})`,_.output=d.output,_.globstar=!0,pe(A+ae()),Q({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-d.output.length),d.type="globstar",d.output=S(r),d.value+=A,_.output+=d.output,_.globstar=!0,pe(A);continue}let K={type:"star",value:A,output:re};if(r.bash===!0){K.output=".*?",(d.type==="bos"||d.type==="slash")&&(K.output=O+K.output),Q(K);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&r.regex===!0){K.output=A,Q(K);continue}(_.index===_.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?(_.output+=x,d.output+=x):r.dot===!0?(_.output+=N,d.output+=N):(_.output+=O,d.output+=O),q()!=="*"&&(_.output+=p,d.output+=p)),Q(K)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(kt("closing","]"));_.output=Ce.escapeLast(_.output,"["),L("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(kt("closing",")"));_.output=Ce.escapeLast(_.output,"("),L("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(kt("closing","}"));_.output=Ce.escapeLast(_.output,"{"),L("braces")}if(r.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&Q({type:"maybe_slash",value:"",output:`${C}?`}),_.backtrack===!0){_.output="";for(let w of _.tokens)_.output+=w.output!=null?w.output:w.value,w.suffix&&(_.output+=w.suffix)}return _};Xn.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(oi,r.maxLength):oi,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=qu[t]||t;let s=Ce.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:C,START_ANCHOR:p}=si.globChars(s),m=r.dot?f:u,v=r.dot?h:u,x=r.capture?"":"?:",N={negated:!1,prefix:""},E=r.bash===!0?".*?":C;r.capture&&(E=`(${E})`);let I=O=>O.noglobstar===!0?E:`(${x}(?:(?!${p}${O.dot?c:o}).)*?)`,y=O=>{switch(O){case"*":return`${m}${l}${E}`;case".*":return`${o}${l}${E}`;case"*.*":return`${m}${E}${o}${l}${E}`;case"*/*":return`${m}${E}${a}${l}${v}${E}`;case"**":return m+I(r);case"**/*":return`(?:${m}${I(r)}${a})?${v}${l}${E}`;case"**/*.*":return`(?:${m}${I(r)}${a})?${v}${E}${o}${l}${E}`;case"**/.*":return`(?:${m}${I(r)}${a})?${o}${l}${E}`;default:{let j=/^(.*?)\.(\w+)$/.exec(O);if(!j)return;let re=y(j[1]);return re?re+o+j[2]:void 0}}},k=Ce.removePrefix(t,N),S=y(k);return S&&r.strictSlashes!==!0&&(S+=`${a}?`),S};ju.exports=Xn});var Uu=g((Qv,Hu)=>{"use strict";var $g=T("path"),Hg=Mu(),Zn=$u(),zn=dr(),Ug=pr(),Gg=t=>t&&typeof t=="object"&&!Array.isArray(t),ie=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(h=>ie(h,e,r));return h=>{for(let C of u){let p=C(h);if(p)return p}return!1}}let i=Gg(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=zn.isWindows(e),o=i?ie.compileRe(t,e):ie.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=ie(n.ignore,u,r)}let c=(u,f=!1)=>{let{isMatch:h,match:C,output:p}=ie.test(u,o,e,{glob:t,posix:s}),m={glob:t,state:a,regex:o,posix:s,input:u,output:p,match:C,isMatch:h};return typeof n.onResult=="function"&&n.onResult(m),h===!1?(m.isMatch=!1,f?m:!1):l(u)?(typeof n.onIgnore=="function"&&n.onIgnore(m),m.isMatch=!1,f?m:!1):(typeof n.onMatch=="function"&&n.onMatch(m),f?m:!0)};return r&&(c.state=a),c};ie.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?zn.toPosixSlashes:null),a=t===i,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=ie.matchBase(t,e,r,n):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};ie.matchBase=(t,e,r,i=zn.isWindows(r))=>(e instanceof RegExp?e:ie.makeRe(e,r)).test($g.basename(t));ie.isMatch=(t,e,r)=>ie(e,r)(t);ie.parse=(t,e)=>Array.isArray(t)?t.map(r=>ie.parse(r,e)):Zn(t,{...e,fastpaths:!1});ie.scan=(t,e)=>Hg(t,e);ie.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=ie.toRegex(a,e);return i===!0&&(l.state=t),l};ie.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=Zn.fastpaths(t,e)),n.output||(n=Zn(t,e)),ie.compileRe(n,e,r,i)};ie.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};ie.constants=Ug;Hu.exports=ie});var Ku=g((Tv,Gu)=>{"use strict";Gu.exports=Uu()});var Xu=g((Ov,Yu)=>{"use strict";var Vu=T("util"),Wu=Su(),Fe=Ku(),es=dr(),Ju=t=>t===""||t==="./",Y=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let f=Fe(String(e[u]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let C of t){let p=f(C,!0);(h?!p.isMatch:p.isMatch)&&(h?i.add(p.output):(i.delete(p.output),n.add(p.output)))}}let c=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};Y.match=Y;Y.matcher=(t,e)=>Fe(t,e);Y.isMatch=(t,e,r)=>Fe(e,r)(t);Y.any=Y.isMatch;Y.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(Y(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};Y.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Vu.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>Y.contains(t,i,r));if(typeof e=="string"){if(Ju(t)||Ju(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Y.isMatch(t,e,{...r,contains:!0})};Y.matchKeys=(t,e,r)=>{if(!es.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=Y(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};Y.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Fe(String(n),r);if(i.some(o=>s(o)))return!0}return!1};Y.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Fe(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};Y.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Vu.inspect(t)}"`);return[].concat(e).every(i=>Fe(i,r)(t))};Y.capture=(t,e,r)=>{let i=es.isWindows(r),s=Fe.makeRe(String(t),{...r,capture:!0}).exec(i?es.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Y.makeRe=(...t)=>Fe.makeRe(...t);Y.scan=(...t)=>Fe.scan(...t);Y.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Wu(String(i),e))r.push(Fe.parse(n,e));return r};Y.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Wu(t,e)};Y.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Y.braces(t,{...e,expand:!0})};Yu.exports=Y});var sc=g(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.matchAny=P.convertPatternsToRe=P.makeRe=P.getPatternParts=P.expandBraceExpansion=P.expandPatternsWithBraceExpansion=P.isAffectDepthOfReadingPattern=P.endsWithSlashGlobStar=P.hasGlobStar=P.getBaseDirectory=P.isPatternRelatedToParentDirectory=P.getPatternsOutsideCurrentDirectory=P.getPatternsInsideCurrentDirectory=P.getPositivePatterns=P.getNegativePatterns=P.isPositivePattern=P.isNegativePattern=P.convertToNegativePattern=P.convertToPositivePattern=P.isDynamicPattern=P.isStaticPattern=void 0;var Kg=T("path"),Jg=Hl(),ts=Xu(),Zu="**",Vg="\\",Wg=/[*?]|^!/,Yg=/\[[^[]*]/,Xg=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Zg=/[!*+?@]\([^(]*\)/,zg=/,|\.\./;function zu(t,e={}){return!ec(t,e)}P.isStaticPattern=zu;function ec(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Vg)||Wg.test(t)||Yg.test(t)||Xg.test(t)||e.extglob!==!1&&Zg.test(t)||e.braceExpansion!==!1&&em(t))}P.isDynamicPattern=ec;function em(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return zg.test(i)}function tm(t){return ai(t)?t.slice(1):t}P.convertToPositivePattern=tm;function rm(t){return"!"+t}P.convertToNegativePattern=rm;function ai(t){return t.startsWith("!")&&t[1]!=="("}P.isNegativePattern=ai;function tc(t){return!ai(t)}P.isPositivePattern=tc;function im(t){return t.filter(ai)}P.getNegativePatterns=im;function nm(t){return t.filter(tc)}P.getPositivePatterns=nm;function sm(t){return t.filter(e=>!rs(e))}P.getPatternsInsideCurrentDirectory=sm;function om(t){return t.filter(rs)}P.getPatternsOutsideCurrentDirectory=om;function rs(t){return t.startsWith("..")||t.startsWith("./..")}P.isPatternRelatedToParentDirectory=rs;function am(t){return Jg(t,{flipBackslashes:!1})}P.getBaseDirectory=am;function lm(t){return t.includes(Zu)}P.hasGlobStar=lm;function rc(t){return t.endsWith("/"+Zu)}P.endsWithSlashGlobStar=rc;function um(t){let e=Kg.basename(t);return rc(t)||zu(e)}P.isAffectDepthOfReadingPattern=um;function cm(t){return t.reduce((e,r)=>e.concat(ic(r)),[])}P.expandPatternsWithBraceExpansion=cm;function ic(t){return ts.braces(t,{expand:!0,nodupes:!0})}P.expandBraceExpansion=ic;function fm(t,e){let{parts:r}=ts.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}P.getPatternParts=fm;function nc(t,e){return ts.makeRe(t,e)}P.makeRe=nc;function hm(t,e){return t.map(r=>nc(r,e))}P.convertPatternsToRe=hm;function pm(t,e){return e.some(r=>r.test(t))}P.matchAny=pm});var uc=g((kv,lc)=>{"use strict";var dm=T("stream"),oc=dm.PassThrough,Am=Array.prototype.slice;lc.exports=gm;function gm(){let t=[],e=Am.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=oc(i);function a(){for(let u=0,f=arguments.length;u<f;u++)t.push(ac(arguments[u],i));return l(),this}function l(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let f=u.length+1;function h(){--f>0||(r=!1,l())}function C(p){function m(){p.removeListener("merge2UnpipeEnd",m),p.removeListener("end",m),s&&p.removeListener("error",v),h()}function v(x){o.emit("error",x)}if(p._readableState.endEmitted)return h();p.on("merge2UnpipeEnd",m),p.on("end",m),s&&p.on("error",v),p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<u.length;p++)C(u[p]);h()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function ac(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=ac(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(oc(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var fc=g(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.merge=void 0;var mm=uc();function _m(t){let e=mm(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>cc(t)),e.once("end",()=>cc(t)),e}li.merge=_m;function cc(t){t.forEach(e=>e.emit("close"))}});var hc=g(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.isEmpty=Dt.isString=void 0;function Em(t){return typeof t=="string"}Dt.isString=Em;function ym(t){return t===""}Dt.isEmpty=ym});var Ge=g(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.string=ce.stream=ce.pattern=ce.path=ce.fs=ce.errno=ce.array=void 0;var bm=kl();ce.array=bm;var Cm=Dl();ce.errno=Cm;var vm=Ll();ce.fs=vm;var xm=Pl();ce.path=xm;var wm=sc();ce.pattern=wm;var Sm=fc();ce.stream=Sm;var Bm=hc();ce.string=Bm});var Ac=g(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.convertPatternGroupToTask=fe.convertPatternGroupsToTasks=fe.groupPatternsByBaseDirectory=fe.getNegativePatternsAsPositive=fe.getPositivePatterns=fe.convertPatternsToTasks=fe.generate=void 0;var Ke=Ge();function Rm(t,e){let r=pc(t),i=dc(t,e.ignore),n=r.filter(l=>Ke.pattern.isStaticPattern(l,e)),s=r.filter(l=>Ke.pattern.isDynamicPattern(l,e)),o=is(n,i,!1),a=is(s,i,!0);return o.concat(a)}fe.generate=Rm;function is(t,e,r){let i=[],n=Ke.pattern.getPatternsOutsideCurrentDirectory(t),s=Ke.pattern.getPatternsInsideCurrentDirectory(t),o=ns(n),a=ns(s);return i.push(...ss(o,e,r)),"."in a?i.push(os(".",s,e,r)):i.push(...ss(a,e,r)),i}fe.convertPatternsToTasks=is;function pc(t){return Ke.pattern.getPositivePatterns(t)}fe.getPositivePatterns=pc;function dc(t,e){return Ke.pattern.getNegativePatterns(t).concat(e).map(Ke.pattern.convertToPositivePattern)}fe.getNegativePatternsAsPositive=dc;function ns(t){let e={};return t.reduce((r,i)=>{let n=Ke.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}fe.groupPatternsByBaseDirectory=ns;function ss(t,e,r){return Object.keys(t).map(i=>os(i,t[i],e,r))}fe.convertPatternGroupsToTasks=ss;function os(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Ke.pattern.convertToNegativePattern))}}fe.convertPatternGroupToTask=os});var mc=g(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.removeDuplicateSlashes=Lt.transform=void 0;var Qm=/(?!^)\/{2,}/g;function Tm(t){return t.map(e=>gc(e))}Lt.transform=Tm;function gc(t){return t.replace(Qm,"/")}Lt.removeDuplicateSlashes=gc});var Ec=g(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.read=void 0;function Om(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){_c(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){as(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){_c(r,s);return}as(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),as(r,o)})})}ui.read=Om;function _c(t,e){t(e)}function as(t,e){t(null,e)}});var yc=g(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.read=void 0;function Im(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}ci.read=Im});var bc=g(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.createFileSystemAdapter=Xe.FILE_SYSTEM_ADAPTER=void 0;var fi=T("fs");Xe.FILE_SYSTEM_ADAPTER={lstat:fi.lstat,stat:fi.stat,lstatSync:fi.lstatSync,statSync:fi.statSync};function km(t){return t===void 0?Xe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Xe.FILE_SYSTEM_ADAPTER),t)}Xe.createFileSystemAdapter=km});var Cc=g(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});var Dm=bc(),ls=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Dm.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};us.default=ls});var pt=g(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.statSync=Ze.stat=Ze.Settings=void 0;var vc=Ec(),Lm=yc(),cs=Cc();Ze.Settings=cs.default;function Pm(t,e,r){if(typeof e=="function"){vc.read(t,fs(),e);return}vc.read(t,fs(e),r)}Ze.stat=Pm;function Nm(t,e){let r=fs(e);return Lm.read(t,r)}Ze.statSync=Nm;function fs(t={}){return t instanceof cs.default?t:new cs.default(t)}});var Sc=g((Uv,wc)=>{var xc;wc.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(xc||(xc=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Rc=g((Gv,Bc)=>{Bc.exports=Mm;var Fm=Sc();function Mm(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(l){function c(){e&&e(l,r),e=null}s?Fm(c):c()}function a(l,c,u){r[l]=u,(--i===0||c)&&o(c)}i?n?n.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,f){a(c,u,f)})}):o(null),s=!1}});var hs=g(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var hi=process.versions.node.split(".");if(hi[0]===void 0||hi[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Qc=Number.parseInt(hi[0],10),qm=Number.parseInt(hi[1],10),Tc=10,jm=10,$m=Qc>Tc,Hm=Qc===Tc&&qm>=jm;pi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=$m||Hm});var Oc=g(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.createDirentFromStats=void 0;var ps=class{constructor(e,r){this.name=e,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 Um(t,e){return new ps(t,e)}di.createDirentFromStats=Um});var ds=g(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.fs=void 0;var Gm=Oc();Ai.fs=Gm});var As=g(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.joinPathSegments=void 0;function Km(t,e,r){return t.endsWith(r)?t+e:t+r+e}gi.joinPathSegments=Km});var Nc=g(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.readdir=ze.readdirWithFileTypes=ze.read=void 0;var Jm=pt(),Ic=Rc(),Vm=hs(),kc=ds(),Dc=As();function Wm(t,e,r){if(!e.stats&&Vm.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Lc(t,e,r);return}Pc(t,e,r)}ze.read=Wm;function Lc(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){mi(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:Dc.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){gs(r,s);return}let o=s.map(a=>Ym(a,e));Ic(o,(a,l)=>{if(a!==null){mi(r,a);return}gs(r,l)})})}ze.readdirWithFileTypes=Lc;function Ym(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=kc.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Pc(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){mi(r,i);return}let s=n.map(o=>{let a=Dc.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{Jm.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let f={name:o,path:a,dirent:kc.fs.createDirentFromStats(o,u)};e.stats&&(f.stats=u),l(null,f)})}});Ic(s,(o,a)=>{if(o!==null){mi(r,o);return}gs(r,a)})})}ze.readdir=Pc;function mi(t,e){t(e)}function gs(t,e){t(null,e)}});var $c=g(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.readdir=et.readdirWithFileTypes=et.read=void 0;var Xm=pt(),Zm=hs(),Fc=ds(),Mc=As();function zm(t,e){return!e.stats&&Zm.IS_SUPPORT_READDIR_WITH_FILE_TYPES?qc(t,e):jc(t,e)}et.read=zm;function qc(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Mc.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Fc.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}et.readdirWithFileTypes=qc;function jc(t,e){return e.fs.readdirSync(t).map(i=>{let n=Mc.joinPathSegments(t,i,e.pathSegmentSeparator),s=Xm.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Fc.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}et.readdir=jc});var Hc=g(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.createFileSystemAdapter=tt.FILE_SYSTEM_ADAPTER=void 0;var Pt=T("fs");tt.FILE_SYSTEM_ADAPTER={lstat:Pt.lstat,stat:Pt.stat,lstatSync:Pt.lstatSync,statSync:Pt.statSync,readdir:Pt.readdir,readdirSync:Pt.readdirSync};function e_(t){return t===void 0?tt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},tt.FILE_SYSTEM_ADAPTER),t)}tt.createFileSystemAdapter=e_});var Uc=g(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});var t_=T("path"),r_=pt(),i_=Hc(),ms=class{constructor(e={}){this._options=e,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(e,r){return e??r}};_s.default=ms});var _i=g(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.scandirSync=rt.scandir=void 0;var Gc=Nc(),n_=$c(),Es=Uc();rt.Settings=Es.default;function s_(t,e,r){if(typeof e=="function"){Gc.read(t,ys(),e);return}Gc.read(t,ys(e),r)}rt.scandir=s_;function o_(t,e){let r=ys(e);return n_.read(t,r)}rt.scandirSync=o_;function ys(t={}){return t instanceof Es.default?t:new Es.default(t)}});var Jc=g((tx,Kc)=>{"use strict";function a_(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}Kc.exports=a_});var Wc=g((rx,bs)=>{"use strict";var l_=Jc();function Vc(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=l_(u_),n=null,s=null,o=0,a=null,l={push:m,drain:Se,saturated:Se,pause:u,paused:!1,concurrency:r,running:c,resume:C,idle:p,length:f,getQueue:h,unshift:v,empty:Se,kill:N,killAndDrain:E,error:I};return l;function c(){return o}function u(){l.paused=!0}function f(){for(var y=n,k=0;y;)y=y.next,k++;return k}function h(){for(var y=n,k=[];y;)k.push(y.value),y=y.next;return k}function C(){if(l.paused){l.paused=!1;for(var y=0;y<l.concurrency;y++)o++,x()}}function p(){return o===0&&l.length()===0}function m(y,k){var S=i.get();S.context=t,S.release=x,S.value=y,S.callback=k||Se,S.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=S,s=S):(n=S,s=S,l.saturated()):(o++,e.call(t,S.value,S.worked))}function v(y,k){var S=i.get();S.context=t,S.release=x,S.value=y,S.callback=k||Se,o===l.concurrency||l.paused?n?(S.next=n,n=S):(n=S,s=S,l.saturated()):(o++,e.call(t,S.value,S.worked))}function x(y){y&&i.release(y);var k=n;k?l.paused?o--:(s===n&&(s=null),n=k.next,k.next=null,e.call(t,k.value,k.worked),s===null&&l.empty()):--o===0&&l.drain()}function N(){n=null,s=null,l.drain=Se}function E(){n=null,s=null,l.drain(),l.drain=Se}function I(y){a=y}}function Se(){}function u_(){this.value=null,this.callback=Se,this.next=null,this.release=Se,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Se,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function c_(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(u,f){e.call(this,u).then(function(h){f(null,h)},f)}var n=Vc(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var f=new Promise(function(h,C){s(u,function(p,m){if(p){C(p);return}h(m)})});return f.catch(Se),f}function l(u){var f=new Promise(function(h,C){o(u,function(p,m){if(p){C(p);return}h(m)})});return f.catch(Se),f}function c(){if(n.idle())return new Promise(function(h){h()});var u=n.drain,f=new Promise(function(h){n.drain=function(){u(),h()}});return f}}bs.exports=Vc;bs.exports.promise=c_});var Ei=g(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.joinPathSegments=Me.replacePathSegmentSeparator=Me.isAppliedFilter=Me.isFatalError=void 0;function f_(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Me.isFatalError=f_;function h_(t,e){return t===null||t(e)}Me.isAppliedFilter=h_;function p_(t,e){return t.split(/[/\\]/).join(e)}Me.replacePathSegmentSeparator=p_;function d_(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Me.joinPathSegments=d_});var xs=g(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});var A_=Ei(),Cs=class{constructor(e,r){this._root=e,this._settings=r,this._root=A_.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};vs.default=Cs});var Bs=g(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});var g_=T("events"),m_=_i(),__=Wc(),yi=Ei(),E_=xs(),ws=class extends E_.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=m_.scandir,this._emitter=new g_.EventEmitter,this._queue=__(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!yi.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=yi.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),yi.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&yi.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ss.default=ws});var Yc=g(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});var y_=Bs(),Rs=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new y_.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{b_(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{C_(e,this._storage)}),this._reader.read()}};Qs.default=Rs;function b_(t,e){t(e)}function C_(t,e){t(null,e)}});var Xc=g(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var v_=T("stream"),x_=Bs(),Ts=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new x_.default(this._root,this._settings),this._stream=new v_.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Os.default=Ts});var Zc=g(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var w_=_i(),bi=Ei(),S_=xs(),Is=class extends S_.default{constructor(){super(...arguments),this._scandir=w_.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(bi.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=bi.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),bi.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&bi.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};ks.default=Is});var zc=g(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var B_=Zc(),Ds=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new B_.default(this._root,this._settings)}read(){return this._reader.read()}};Ls.default=Ds});var ef=g(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var R_=T("path"),Q_=_i(),Ps=class{constructor(e={}){this._options=e,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,R_.sep),this.fsScandirSettings=new Q_.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};Ns.default=Ps});var vi=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.Settings=qe.walkStream=qe.walkSync=qe.walk=void 0;var tf=Yc(),T_=Xc(),O_=zc(),Fs=ef();qe.Settings=Fs.default;function I_(t,e,r){if(typeof e=="function"){new tf.default(t,Ci()).read(e);return}new tf.default(t,Ci(e)).read(r)}qe.walk=I_;function k_(t,e){let r=Ci(e);return new O_.default(t,r).read()}qe.walkSync=k_;function D_(t,e){let r=Ci(e);return new T_.default(t,r).read()}qe.walkStream=D_;function Ci(t={}){return t instanceof Fs.default?t:new Fs.default(t)}});var xi=g(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var L_=T("path"),P_=pt(),rf=Ge(),Ms=class{constructor(e){this._settings=e,this._fsStatSettings=new P_.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return L_.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:rf.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!rf.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};qs.default=Ms});var Hs=g($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var N_=T("stream"),F_=pt(),M_=vi(),q_=xi(),js=class extends q_.default{constructor(){super(...arguments),this._walkStream=M_.walkStream,this._stat=F_.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new N_.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&n.push(l),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};$s.default=js});var nf=g(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var j_=vi(),$_=xi(),H_=Hs(),Us=class extends $_.default{constructor(){super(...arguments),this._walkAsync=j_.walk,this._readerStream=new H_.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};Gs.default=Us});var sf=g(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var Nt=Ge(),Ks=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Nt.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return Nt.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Nt.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Nt.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Nt.array.splitWhen(e,r=>r.dynamic&&Nt.pattern.hasGlobStar(r.pattern))}};Js.default=Ks});var of=g(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var U_=sf(),Vs=class extends U_.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Ws.default=Vs});var af=g(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var wi=Ge(),G_=of(),Ys=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new G_.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(wi.pattern.isAffectDepthOfReadingPattern);return wi.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=wi.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!wi.pattern.matchAny(e,r)}};Xs.default=Ys});var lf=g(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var dt=Ge(),Zs=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=dt.pattern.convertPatternsToRe(e,this._micromatchOptions),n=dt.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=dt.path.makeAbsolute(this._settings.cwd,e);return dt.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=dt.path.removeLeadingDotSegment(e),s=dt.pattern.matchAny(n,r);return!s&&i?dt.pattern.matchAny(n+"/",r):s}};zs.default=Zs});var uf=g(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});var K_=Ge(),eo=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return K_.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};to.default=eo});var ff=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});var cf=Ge(),ro=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=cf.path.makeAbsolute(this._settings.cwd,r),r=cf.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};io.default=ro});var Si=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});var J_=T("path"),V_=af(),W_=lf(),Y_=uf(),X_=ff(),no=class{constructor(e){this._settings=e,this.errorFilter=new Y_.default(this._settings),this.entryFilter=new W_.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new V_.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new X_.default(this._settings)}_getRootDirectory(e){return J_.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.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}}};so.default=no});var hf=g(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var Z_=nf(),z_=Si(),oo=class extends z_.default{constructor(){super(...arguments),this._reader=new Z_.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};ao.default=oo});var pf=g(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});var eE=T("stream"),tE=Hs(),rE=Si(),lo=class extends rE.default{constructor(){super(...arguments),this._reader=new tE.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new eE.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};uo.default=lo});var df=g(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});var iE=pt(),nE=vi(),sE=xi(),co=class extends sE.default{constructor(){super(...arguments),this._walkSync=nE.walkSync,this._statSync=iE.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};fo.default=co});var Af=g(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});var oE=df(),aE=Si(),ho=class extends aE.default{constructor(){super(...arguments),this._reader=new oE.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};po.default=ho});var gf=g(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ft=T("fs"),lE=T("os"),uE=Math.max(lE.cpus().length,1);Mt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ft.lstat,lstatSync:Ft.lstatSync,stat:Ft.stat,statSync:Ft.statSync,readdir:Ft.readdir,readdirSync:Ft.readdirSync};var Ao=class{constructor(e={}){this._options=e,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,uE),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(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Mt.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Mt.default=Ao});var Bi=g((Bx,Ef)=>{"use strict";var mf=Ac(),_f=mc(),cE=hf(),fE=pf(),hE=Af(),go=gf(),At=Ge();async function mo(t,e){qt(t);let r=_o(t,cE.default,e),i=await Promise.all(r);return At.array.flatten(i)}(function(t){function e(o,a){qt(o);let l=_o(o,hE.default,a);return At.array.flatten(l)}t.sync=e;function r(o,a){qt(o);let l=_o(o,fE.default,a);return At.stream.merge(l)}t.stream=r;function i(o,a){qt(o);let l=_f.transform([].concat(o)),c=new go.default(a);return mf.generate(l,c)}t.generateTasks=i;function n(o,a){qt(o);let l=new go.default(a);return At.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return qt(o),At.path.escape(o)}t.escapePath=s})(mo||(mo={}));function _o(t,e,r){let i=_f.transform([].concat(t)),n=new go.default(r),s=mf.generate(i,n),o=new e(n);return s.map(o.read,o)}function qt(t){if(![].concat(t).every(i=>At.string.isString(i)&&!At.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Ef.exports=mo});var bf=g((Rx,Eo)=>{"use strict";var yf=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Eo.exports=yf;Eo.exports.default=yf});var vf=g((Qx,Qi)=>{"use strict";var pE=bf(),Ri=new WeakMap,Cf=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(Ri.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return pE(s,t),Ri.set(s,i),s};Qi.exports=Cf;Qi.exports.default=Cf;Qi.exports.callCount=t=>{if(!Ri.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ri.get(t)}});var xf=g((Tx,Ti)=>{Ti.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ti.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ti.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Qf=g((Ox,Ht)=>{var X=global.process,gt=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};gt(X)?(wf=T("assert"),jt=xf(),Sf=/^win/i.test(X.platform),gr=T("events"),typeof gr!="function"&&(gr=gr.EventEmitter),X.__signal_exit_emitter__?le=X.__signal_exit_emitter__:(le=X.__signal_exit_emitter__=new gr,le.count=0,le.emitted={}),le.infinite||(le.setMaxListeners(1/0),le.infinite=!0),Ht.exports=function(t,e){if(!gt(global.process))return function(){};wf.equal(typeof t,"function","a callback must be provided for exit handler"),$t===!1&&yo();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){le.removeListener(r,t),le.listeners("exit").length===0&&le.listeners("afterexit").length===0&&Oi()};return le.on(r,t),i},Oi=function(){!$t||!gt(global.process)||($t=!1,jt.forEach(function(e){try{X.removeListener(e,Ii[e])}catch{}}),X.emit=ki,X.reallyExit=bo,le.count-=1)},Ht.exports.unload=Oi,mt=function(e,r,i){le.emitted[e]||(le.emitted[e]=!0,le.emit(e,r,i))},Ii={},jt.forEach(function(t){Ii[t]=function(){if(gt(global.process)){var r=X.listeners(t);r.length===le.count&&(Oi(),mt("exit",null,t),mt("afterexit",null,t),Sf&&t==="SIGHUP"&&(t="SIGINT"),X.kill(X.pid,t))}}}),Ht.exports.signals=function(){return jt},$t=!1,yo=function(){$t||!gt(global.process)||($t=!0,le.count+=1,jt=jt.filter(function(e){try{return X.on(e,Ii[e]),!0}catch{return!1}}),X.emit=Rf,X.reallyExit=Bf)},Ht.exports.load=yo,bo=X.reallyExit,Bf=function(e){gt(global.process)&&(X.exitCode=e||0,mt("exit",X.exitCode,null),mt("afterexit",X.exitCode,null),bo.call(X,X.exitCode))},ki=X.emit,Rf=function(e,r){if(e==="exit"&>(global.process)){r!==void 0&&(X.exitCode=r);var i=ki.apply(this,arguments);return mt("exit",X.exitCode,null),mt("afterexit",X.exitCode,null),i}else return ki.apply(this,arguments)}):Ht.exports=function(){return function(){}};var wf,jt,Sf,gr,le,Oi,mt,Ii,$t,yo,bo,Bf,ki,Rf});var Df=g((Nx,gE)=>{gE.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},dwarfFortress:{interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}});var vo=g((Fx,Pf)=>{"use strict";var Li=Object.assign({},Df()),Lf=Object.keys(Li);Object.defineProperty(Li,"random",{get(){let t=Math.floor(Math.random()*Lf.length),e=Lf[t];return Li[e]}});Pf.exports=Li});var Nf=g((Jx,Pi)=>{var yE=function(){"use strict";function t(o,a,l,c){var u;typeof a=="object"&&(l=a.depth,c=a.prototype,u=a.filter,a=a.circular);var f=[],h=[],C=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function p(m,v){if(m===null)return null;if(v==0)return m;var x,N;if(typeof m!="object")return m;if(t.__isArray(m))x=[];else if(t.__isRegExp(m))x=new RegExp(m.source,s(m)),m.lastIndex&&(x.lastIndex=m.lastIndex);else if(t.__isDate(m))x=new Date(m.getTime());else{if(C&&Buffer.isBuffer(m))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(m.length):x=new Buffer(m.length),m.copy(x),x;typeof c>"u"?(N=Object.getPrototypeOf(m),x=Object.create(N)):(x=Object.create(c),N=c)}if(a){var E=f.indexOf(m);if(E!=-1)return h[E];f.push(m),h.push(x)}for(var I in m){var y;N&&(y=Object.getOwnPropertyDescriptor(N,I)),!(y&&y.set==null)&&(x[I]=p(m[I],v-1))}return x}return p(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function n(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=n;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof Pi=="object"&&Pi.exports&&(Pi.exports=yE)});var Mf=g((Vx,Ff)=>{var bE=Nf();Ff.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=bE(e[r]))}),t}});var jf=g((Wx,qf)=>{qf.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Gf=g((Yx,So)=>{"use strict";var CE=Mf(),Er=jf(),Hf={nul:0,control:0};So.exports=function(e){return Uf(e,Hf)};So.exports.config=function(t){return t=CE(t||{},Hf),function(r){return Uf(r,t)}};function Uf(t,e){if(typeof t!="string")return $f(t,e);for(var r=0,i=0;i<t.length;i++){var n=$f(t.charCodeAt(i),e);if(n<0)return-1;r+=n}return r}function $f(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:vE(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function vE(t){var e=0,r=Er.length-1,i;if(t<Er[0][0]||t>Er[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>Er[i][1])e=i+1;else if(t<Er[i][0])r=i-1;else return!0;return!1}});var Ro=g((Zx,Kf)=>{Kf.exports=T("stream")});var Zf=g((zx,Xf)=>{"use strict";function Jf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Vf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jf(Object(r),!0).forEach(function(i){xE(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jf(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function xE(t,e,r){return e=Yf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wf(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Yf(i.key),i)}}function SE(t,e,r){return e&&Wf(t.prototype,e),r&&Wf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yf(t){var e=BE(t,"string");return typeof e=="symbol"?e:String(e)}function BE(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var RE=T("buffer"),Ni=RE.Buffer,QE=T("util"),Qo=QE.inspect,TE=Qo&&Qo.custom||"inspect";function OE(t,e,r){Ni.prototype.copy.call(t,e,r)}Xf.exports=function(){function t(){wE(this,t),this.head=null,this.tail=null,this.length=0}return SE(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return Ni.alloc(0);for(var i=Ni.allocUnsafe(r>>>0),n=this.head,s=0;n;)OE(n.data,i,s),s+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,s=i.data;for(r-=s.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++n}return this.length-=n,s}},{key:"_getBuffer",value:function(r){var i=Ni.allocUnsafe(r),n=this.head,s=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,a),r-=a,r===0){a===o.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++s}return this.length-=s,i}},{key:TE,value:function(r,i){return Qo(this,Vf(Vf({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var Oo=g((ew,eh)=>{"use strict";function IE(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(To,this,t)):process.nextTick(To,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Fi,r):(r._writableState.errorEmitted=!0,process.nextTick(zf,r,s)):process.nextTick(zf,r,s):e?(process.nextTick(Fi,r),e(s)):process.nextTick(Fi,r)}),this)}function zf(t,e){To(t,e),Fi(t)}function Fi(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function kE(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function To(t,e){t.emit("error",e)}function DE(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}eh.exports={destroy:IE,undestroy:kE,errorOrDestroy:DE}});var it=g((tw,ih)=>{"use strict";var rh={};function Be(t,e,r){r||(r=Error);function i(s,o,a){return typeof e=="string"?e:e(s,o,a)}class n extends r{constructor(o,a,l){super(i(o,a,l))}}n.prototype.name=r.name,n.prototype.code=t,rh[t]=n}function th(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(i=>String(i)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function LE(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function PE(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function NE(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}Be("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Be("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&LE(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let n;if(PE(t," argument"))n=`The ${t} ${i} ${th(e,"type")}`;else{let s=NE(t,".")?"property":"argument";n=`The "${t}" ${s} ${i} ${th(e,"type")}`}return n+=`. Received type ${typeof r}`,n},TypeError);Be("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Be("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Be("ERR_STREAM_PREMATURE_CLOSE","Premature close");Be("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Be("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Be("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Be("ERR_STREAM_WRITE_AFTER_END","write after end");Be("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Be("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Be("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ih.exports.codes=rh});var Io=g((rw,nh)=>{"use strict";var FE=it().codes.ERR_INVALID_OPT_VALUE;function ME(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function qE(t,e,r,i){var n=ME(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var s=i?r:"highWaterMark";throw new FE(s,n)}return Math.floor(n)}return t.objectMode?16:16*1024}nh.exports={getHighWaterMark:qE}});var sh=g((iw,ko)=>{typeof Object.create=="function"?ko.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ko.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var _t=g((nw,Lo)=>{try{if(Do=T("util"),typeof Do.inherits!="function")throw"";Lo.exports=Do.inherits}catch{Lo.exports=sh()}var Do});var ah=g((sw,oh)=>{oh.exports=T("util").deprecate});var Fo=g((ow,ph)=>{"use strict";ph.exports=te;function uh(t){var e=this;this.next=null,this.entry=null,this.finish=function(){p0(e,t)}}var Gt;te.WritableState=br;var jE={deprecate:ah()},ch=Ro(),qi=T("buffer").Buffer,$E=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function HE(t){return qi.from(t)}function UE(t){return qi.isBuffer(t)||t instanceof $E}var No=Oo(),GE=Io(),KE=GE.getHighWaterMark,nt=it().codes,JE=nt.ERR_INVALID_ARG_TYPE,VE=nt.ERR_METHOD_NOT_IMPLEMENTED,WE=nt.ERR_MULTIPLE_CALLBACK,YE=nt.ERR_STREAM_CANNOT_PIPE,XE=nt.ERR_STREAM_DESTROYED,ZE=nt.ERR_STREAM_NULL_VALUES,zE=nt.ERR_STREAM_WRITE_AFTER_END,e0=nt.ERR_UNKNOWN_ENCODING,Kt=No.errorOrDestroy;_t()(te,ch);function t0(){}function br(t,e,r){Gt=Gt||Et(),t=t||{},typeof r!="boolean"&&(r=e instanceof Gt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=KE(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){l0(e,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new uh(this)}br.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(br.prototype,"buffer",{get:jE.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Mi;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Mi=Function.prototype[Symbol.hasInstance],Object.defineProperty(te,Symbol.hasInstance,{value:function(e){return Mi.call(this,e)?!0:this!==te?!1:e&&e._writableState instanceof br}})):Mi=function(e){return e instanceof this};function te(t){Gt=Gt||Et();var e=this instanceof Gt;if(!e&&!Mi.call(te,this))return new te(t);this._writableState=new br(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),ch.call(this)}te.prototype.pipe=function(){Kt(this,new YE)};function r0(t,e){var r=new zE;Kt(t,r),process.nextTick(e,r)}function i0(t,e,r,i){var n;return r===null?n=new ZE:typeof r!="string"&&!e.objectMode&&(n=new JE("chunk",["string","Buffer"],r)),n?(Kt(t,n),process.nextTick(i,n),!1):!0}te.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&UE(t);return s&&!qi.isBuffer(t)&&(t=HE(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=t0),i.ending?r0(this,r):(s||i0(this,i,t,r))&&(i.pendingcb++,n=s0(this,i,s,t,e,r)),n};te.prototype.cork=function(){this._writableState.corked++};te.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&fh(this,t))};te.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new e0(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(te.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function n0(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=qi.from(e,r)),e}Object.defineProperty(te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function s0(t,e,r,i,n,s){if(!r){var o=n0(e,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Po(t,e,!1,a,i,n,s);return l}function Po(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new XE("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function o0(t,e,r,i,n){--e.pendingcb,r?(process.nextTick(n,i),process.nextTick(yr,t,e),t._writableState.errorEmitted=!0,Kt(t,i)):(n(i),t._writableState.errorEmitted=!0,Kt(t,i),yr(t,e))}function a0(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function l0(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new WE;if(a0(r),e)o0(t,r,i,e,n);else{var s=hh(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&fh(t,r),i?process.nextTick(lh,t,r,s,n):lh(t,r,s,n)}}function lh(t,e,r,i){r||u0(t,e),e.pendingcb--,i(),yr(t,e)}function u0(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function fh(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,Po(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new uh(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,f=e.objectMode?1:l.length;if(Po(t,e,!1,f,l,c,u),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}te.prototype._write=function(t,e,r){r(new VE("_write()"))};te.prototype._writev=null;te.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||h0(this,i,r),this};Object.defineProperty(te.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function hh(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function c0(t,e){t._final(function(r){e.pendingcb--,r&&Kt(t,r),e.prefinished=!0,t.emit("prefinish"),yr(t,e)})}function f0(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(c0,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function yr(t,e){var r=hh(e);if(r&&(f0(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function h0(t,e,r){e.ending=!0,yr(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function p0(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(te.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});te.prototype.destroy=No.destroy;te.prototype._undestroy=No.undestroy;te.prototype._destroy=function(t,e){e(t)}});var Et=g((aw,Ah)=>{"use strict";var d0=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Ah.exports=je;var dh=jo(),qo=Fo();_t()(je,dh);for(Mo=d0(qo.prototype),ji=0;ji<Mo.length;ji++)$i=Mo[ji],je.prototype[$i]||(je.prototype[$i]=qo.prototype[$i]);var Mo,$i,ji;function je(t){if(!(this instanceof je))return new je(t);dh.call(this,t),qo.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",A0)))}Object.defineProperty(je.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(je.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(je.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function A0(){this._writableState.ended||process.nextTick(g0,this)}function g0(t){t.end()}Object.defineProperty(je.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var _h=g(($o,mh)=>{var Hi=T("buffer"),Je=Hi.Buffer;function gh(t,e){for(var r in t)e[r]=t[r]}Je.from&&Je.alloc&&Je.allocUnsafe&&Je.allocUnsafeSlow?mh.exports=Hi:(gh(Hi,$o),$o.Buffer=Jt);function Jt(t,e,r){return Je(t,e,r)}gh(Je,Jt);Jt.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Je(t,e,r)};Jt.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Je(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Jt.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Je(t)};Jt.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Hi.SlowBuffer(t)}});var Go=g(yh=>{"use strict";var Uo=_h().Buffer,Eh=Uo.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function m0(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function _0(t){var e=m0(t);if(typeof e!="string"&&(Uo.isEncoding===Eh||!Eh(t)))throw new Error("Unknown encoding: "+t);return e||t}yh.StringDecoder=Cr;function Cr(t){this.encoding=_0(t);var e;switch(this.encoding){case"utf16le":this.text=x0,this.end=w0,e=4;break;case"utf8":this.fillLast=b0,e=4;break;case"base64":this.text=S0,this.end=B0,e=3;break;default:this.write=R0,this.end=Q0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Uo.allocUnsafe(e)}Cr.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Cr.prototype.end=v0;Cr.prototype.text=C0;Cr.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Ho(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function E0(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Ho(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Ho(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Ho(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function y0(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function b0(t){var e=this.lastTotal-this.lastNeed,r=y0(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function C0(t,e){var r=E0(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function v0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function x0(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function w0(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function S0(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function B0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function R0(t){return t.toString(this.encoding)}function Q0(t){return t&&t.length?this.write(t):""}});var Ui=g((uw,vh)=>{"use strict";var bh=it().codes.ERR_STREAM_PREMATURE_CLOSE;function T0(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i)}}}function O0(){}function I0(t){return t.setHeader&&typeof t.abort=="function"}function Ch(t,e,r){if(typeof e=="function")return Ch(t,null,e);e||(e={}),r=T0(r||O0);var i=e.readable||e.readable!==!1&&t.readable,n=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){n=!1,o=!0,i||r.call(t)},l=t._readableState&&t._readableState.endEmitted,c=function(){i=!1,l=!0,n||r.call(t)},u=function(p){r.call(t,p)},f=function(){var p;if(i&&!l)return(!t._readableState||!t._readableState.ended)&&(p=new bh),r.call(t,p);if(n&&!o)return(!t._writableState||!t._writableState.ended)&&(p=new bh),r.call(t,p)},h=function(){t.req.on("finish",a)};return I0(t)?(t.on("complete",a),t.on("abort",f),t.req?h():t.on("request",h)):n&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",c),t.on("finish",a),e.error!==!1&&t.on("error",u),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",h),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",c),t.removeListener("error",u),t.removeListener("close",f)}}vh.exports=Ch});var wh=g((cw,xh)=>{"use strict";var Gi;function st(t,e,r){return e=k0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function k0(t){var e=D0(t,"string");return typeof e=="symbol"?e:String(e)}function D0(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var L0=Ui(),ot=Symbol("lastResolve"),yt=Symbol("lastReject"),vr=Symbol("error"),Ki=Symbol("ended"),bt=Symbol("lastPromise"),Ko=Symbol("handlePromise"),Ct=Symbol("stream");function at(t,e){return{value:t,done:e}}function P0(t){var e=t[ot];if(e!==null){var r=t[Ct].read();r!==null&&(t[bt]=null,t[ot]=null,t[yt]=null,e(at(r,!1)))}}function N0(t){process.nextTick(P0,t)}function F0(t,e){return function(r,i){t.then(function(){if(e[Ki]){r(at(void 0,!0));return}e[Ko](r,i)},i)}}var M0=Object.getPrototypeOf(function(){}),q0=Object.setPrototypeOf((Gi={get stream(){return this[Ct]},next:function(){var e=this,r=this[vr];if(r!==null)return Promise.reject(r);if(this[Ki])return Promise.resolve(at(void 0,!0));if(this[Ct].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[vr]?a(e[vr]):o(at(void 0,!0))})});var i=this[bt],n;if(i)n=new Promise(F0(i,this));else{var s=this[Ct].read();if(s!==null)return Promise.resolve(at(s,!1));n=new Promise(this[Ko])}return this[bt]=n,n}},st(Gi,Symbol.asyncIterator,function(){return this}),st(Gi,"return",function(){var e=this;return new Promise(function(r,i){e[Ct].destroy(null,function(n){if(n){i(n);return}r(at(void 0,!0))})})}),Gi),M0),j0=function(e){var r,i=Object.create(q0,(r={},st(r,Ct,{value:e,writable:!0}),st(r,ot,{value:null,writable:!0}),st(r,yt,{value:null,writable:!0}),st(r,vr,{value:null,writable:!0}),st(r,Ki,{value:e._readableState.endEmitted,writable:!0}),st(r,Ko,{value:function(s,o){var a=i[Ct].read();a?(i[bt]=null,i[ot]=null,i[yt]=null,s(at(a,!1))):(i[ot]=s,i[yt]=o)},writable:!0}),r));return i[bt]=null,L0(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[yt];s!==null&&(i[bt]=null,i[ot]=null,i[yt]=null,s(n)),i[vr]=n;return}var o=i[ot];o!==null&&(i[bt]=null,i[ot]=null,i[yt]=null,o(at(void 0,!0))),i[Ki]=!0}),e.on("readable",N0.bind(null,i)),i};xh.exports=j0});var Qh=g((fw,Rh)=>{"use strict";function Sh(t,e,r,i,n,s,o){try{var a=t[s](o),l=a.value}catch(c){r(c);return}a.done?e(l):Promise.resolve(l).then(i,n)}function $0(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function o(l){Sh(s,i,n,o,a,"next",l)}function a(l){Sh(s,i,n,o,a,"throw",l)}o(void 0)})}}function Bh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function H0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Bh(Object(r),!0).forEach(function(i){U0(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bh(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function U0(t,e,r){return e=G0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function G0(t){var e=K0(t,"string");return typeof e=="symbol"?e:String(e)}function K0(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var J0=it().codes.ERR_INVALID_ARG_TYPE;function V0(t,e,r){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new J0("iterable",["Iterable"],e);var n=new t(H0({objectMode:!0},r)),s=!1;n._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=$0(function*(){try{var l=yield i.next(),c=l.value,u=l.done;u?n.push(null):n.push(yield c)?o():s=!1}catch(f){n.destroy(f)}}),a.apply(this,arguments)}return n}Rh.exports=V0});var jo=g((pw,Mh)=>{"use strict";Mh.exports=$;var Vt;$.ReadableState=kh;var hw=T("events").EventEmitter,Ih=function(e,r){return e.listeners(r).length},wr=Ro(),Ji=T("buffer").Buffer,W0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Y0(t){return Ji.from(t)}function X0(t){return Ji.isBuffer(t)||t instanceof W0}var Jo=T("util"),M;Jo&&Jo.debuglog?M=Jo.debuglog("stream"):M=function(){};var Z0=Zf(),ea=Oo(),z0=Io(),ey=z0.getHighWaterMark,Vi=it().codes,ty=Vi.ERR_INVALID_ARG_TYPE,ry=Vi.ERR_STREAM_PUSH_AFTER_EOF,iy=Vi.ERR_METHOD_NOT_IMPLEMENTED,ny=Vi.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Wt,Vo,Wo;_t()($,wr);var xr=ea.errorOrDestroy,Yo=["error","close","destroy","pause","resume"];function sy(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function kh(t,e,r){Vt=Vt||Et(),t=t||{},typeof r!="boolean"&&(r=e instanceof Vt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=ey(this,t,"readableHighWaterMark",r),this.buffer=new Z0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Wt||(Wt=Go().StringDecoder),this.decoder=new Wt(t.encoding),this.encoding=t.encoding)}function $(t){if(Vt=Vt||Et(),!(this instanceof $))return new $(t);var e=this instanceof Vt;this._readableState=new kh(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),wr.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});$.prototype.destroy=ea.destroy;$.prototype._undestroy=ea.undestroy;$.prototype._destroy=function(t,e){e(t)};$.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ji.from(t,e),e=""),i=!0),Dh(this,t,e,!1,i)};$.prototype.unshift=function(t){return Dh(this,t,null,!0,!1)};function Dh(t,e,r,i,n){M("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,ly(t,s);else{var o;if(n||(o=oy(s,e)),o)xr(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ji.prototype&&(e=Y0(e)),i)s.endEmitted?xr(t,new ny):Xo(t,s,e,!0);else if(s.ended)xr(t,new ry);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Xo(t,s,e,!1):zo(t,s)):Xo(t,s,e,!1)}else i||(s.reading=!1,zo(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Xo(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Wi(t)),zo(t,e)}function oy(t,e){var r;return!X0(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new ty("chunk",["string","Buffer","Uint8Array"],e)),r}$.prototype.isPaused=function(){return this._readableState.flowing===!1};$.prototype.setEncoding=function(t){Wt||(Wt=Go().StringDecoder);var e=new Wt(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Th=1073741824;function ay(t){return t>=Th?t=Th:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Oh(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=ay(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}$.prototype.read=function(t){M("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return M("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Zo(this):Wi(this),null;if(t=Oh(t,e),t===0&&e.ended)return e.length===0&&Zo(this),null;var i=e.needReadable;M("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,M("length less than watermark",i)),e.ended||e.reading?(i=!1,M("reading or ended",i)):i&&(M("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Oh(r,e)));var n;return t>0?n=Nh(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Zo(this)),n!==null&&this.emit("data",n),n};function ly(t,e){if(M("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Wi(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Lh(t)))}}function Wi(t){var e=t._readableState;M("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(M("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Lh,t))}function Lh(t){var e=t._readableState;M("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,ta(t)}function zo(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(uy,t,e))}function uy(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(M("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}$.prototype._read=function(t){xr(this,new iy("_read()"))};$.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,M("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:m;i.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(v,x){M("onunpipe"),v===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,u())}function a(){M("onend"),t.end()}var l=cy(r);t.on("drain",l);var c=!1;function u(){M("cleanup"),t.removeListener("close",C),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",h),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",f),c=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(v){M("ondata");var x=t.write(v);M("dest.write",x),x===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Fh(i.pipes,t)!==-1)&&!c&&(M("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(v){M("onerror",v),m(),t.removeListener("error",h),Ih(t,"error")===0&&xr(t,v)}sy(t,"error",h);function C(){t.removeListener("finish",p),m()}t.once("close",C);function p(){M("onfinish"),t.removeListener("close",C),m()}t.once("finish",p);function m(){M("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(M("pipe resume"),r.resume()),t};function cy(t){return function(){var r=t._readableState;M("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Ih(t,"data")&&(r.flowing=!0,ta(t))}}$.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Fh(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};$.prototype.on=function(t,e){var r=wr.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,M("on readable",i.length,i.reading),i.length?Wi(this):i.reading||process.nextTick(fy,this)),r};$.prototype.addListener=$.prototype.on;$.prototype.removeListener=function(t,e){var r=wr.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Ph,this),r};$.prototype.removeAllListeners=function(t){var e=wr.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Ph,this),e};function Ph(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function fy(t){M("readable nexttick read 0"),t.read(0)}$.prototype.resume=function(){var t=this._readableState;return t.flowing||(M("resume"),t.flowing=!t.readableListening,hy(this,t)),t.paused=!1,this};function hy(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(py,t,e))}function py(t,e){M("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),ta(t),e.flowing&&!e.reading&&t.read(0)}$.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ta(t){var e=t._readableState;for(M("flow",e.flowing);e.flowing&&t.read()!==null;);}$.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(M("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(M("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=function(a){return function(){return t[a].apply(t,arguments)}}(n));for(var s=0;s<Yo.length;s++)t.on(Yo[s],this.emit.bind(this,Yo[s]));return this._read=function(o){M("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return Vo===void 0&&(Vo=wh()),Vo(this)});Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});$._fromList=Nh;Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Nh(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Zo(t){var e=t._readableState;M("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(dy,e,t))}function dy(t,e){if(M("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&($.from=function(t,e){return Wo===void 0&&(Wo=Qh()),Wo($,t,e)});function Fh(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var ra=g((dw,jh)=>{"use strict";jh.exports=Ve;var Yi=it().codes,Ay=Yi.ERR_METHOD_NOT_IMPLEMENTED,gy=Yi.ERR_MULTIPLE_CALLBACK,my=Yi.ERR_TRANSFORM_ALREADY_TRANSFORMING,_y=Yi.ERR_TRANSFORM_WITH_LENGTH_0,Xi=Et();_t()(Ve,Xi);function Ey(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new gy);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Ve(t){if(!(this instanceof Ve))return new Ve(t);Xi.call(this,t),this._transformState={afterTransform:Ey.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",yy)}function yy(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){qh(t,e,r)}):qh(this,null,null)}Ve.prototype.push=function(t,e){return this._transformState.needTransform=!1,Xi.prototype.push.call(this,t,e)};Ve.prototype._transform=function(t,e,r){r(new Ay("_transform()"))};Ve.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Ve.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Ve.prototype._destroy=function(t,e){Xi.prototype._destroy.call(this,t,function(r){e(r)})};function qh(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new _y;if(t._transformState.transforming)throw new my;return t.push(null)}});var Uh=g((Aw,Hh)=>{"use strict";Hh.exports=Sr;var $h=ra();_t()(Sr,$h);function Sr(t){if(!(this instanceof Sr))return new Sr(t);$h.call(this,t)}Sr.prototype._transform=function(t,e,r){r(null,t)}});var Wh=g((gw,Vh)=>{"use strict";var ia;function by(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Jh=it().codes,Cy=Jh.ERR_MISSING_ARGS,vy=Jh.ERR_STREAM_DESTROYED;function Gh(t){if(t)throw t}function xy(t){return t.setHeader&&typeof t.abort=="function"}function wy(t,e,r,i){i=by(i);var n=!1;t.on("close",function(){n=!0}),ia===void 0&&(ia=Ui()),ia(t,{readable:e,writable:r},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,xy(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new vy("pipe"))}}}function Kh(t){t()}function Sy(t,e){return t.pipe(e)}function By(t){return!t.length||typeof t[t.length-1]!="function"?Gh:t.pop()}function Ry(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=By(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Cy("streams");var n,s=e.map(function(o,a){var l=a<e.length-1,c=a>0;return wy(o,l,c,function(u){n||(n=u),u&&s.forEach(Kh),!l&&(s.forEach(Kh),i(n))})});return e.reduce(Sy)}Vh.exports=Ry});var Yh=g((Re,Rr)=>{var Br=T("stream");process.env.READABLE_STREAM==="disable"&&Br?(Rr.exports=Br.Readable,Object.assign(Rr.exports,Br),Rr.exports.Stream=Br):(Re=Rr.exports=jo(),Re.Stream=Br||Re,Re.Readable=Re,Re.Writable=Fo(),Re.Duplex=Et(),Re.Transform=ra(),Re.PassThrough=Uh(),Re.finished=Ui(),Re.pipeline=Wh())});var zh=g((mw,Zh)=>{"use strict";var{Buffer:ke}=T("buffer"),Xh=Symbol.for("BufferList");function G(t){if(!(this instanceof G))return new G(t);G._init.call(this,t)}G._init=function(e){Object.defineProperty(this,Xh,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};G.prototype._new=function(e){return new G(e)};G.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let n=r+this._bufs[i].length;if(e<n||i===this._bufs.length-1)return[i,e-r];r=n}};G.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let i=0;i<e;i++)r+=this._bufs[i].length;return r};G.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};G.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};G.prototype.copy=function(e,r,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||ke.alloc(0);let s=!!e,o=this._offset(i),a=n-i,l=a,c=s&&r||0,u=o[1];if(i===0&&n===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:ke.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,c),c+=this._bufs[f].length;return e}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(e,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(e=ke.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let h=this._bufs[f].length-u;if(l>h)this._bufs[f].copy(e,c,u),c+=h;else{this._bufs[f].copy(e,c,u,u+l),c+=h;break}l-=h,u&&(u=0)}return e.length>c?e.slice(0,c):e};G.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let i=this._offset(e),n=this._offset(r),s=this._bufs.slice(i[0],n[0]+1);return n[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,n[1]),i[1]!==0&&(s[0]=s[0].slice(i[1])),this._new(s)};G.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};G.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};G.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};G.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(ke.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(ke.from(e));return this};G.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};G.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=ke.from([t]):typeof t=="string"?t=ke.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=ke.from(t.buffer,t.byteOffset,t.byteLength):ke.isBuffer(t)||(t=ke.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let i=this._offset(e),n=i[0],s=i[1];for(;n<this._bufs.length;n++){let o=this._bufs[n];for(;s<o.length;)if(o.length-s>=t.length){let l=o.indexOf(t,s);if(l!==-1)return this._reverseOffset([n,l]);s=o.length-t.length+1}else{let l=this._reverseOffset([n,s]);if(this._match(l,t))return l;s++}s=0}return-1};G.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?G.prototype[r]=function(i,n){return this.slice(i,i+n)[r](0,n)}:G.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)}})(e)})();G.prototype._isBufferList=function(e){return e instanceof G||G.isBufferList(e)};G.isBufferList=function(e){return e!=null&&e[Xh]};Zh.exports=G});var ep=g((_w,Zi)=>{"use strict";var na=Yh().Duplex,Qy=_t(),Qr=zh();function he(t){if(!(this instanceof he))return new he(t);if(typeof t=="function"){this._callback=t;let e=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",e)}),this.on("unpipe",function(i){i.removeListener("error",e)}),t=null}Qr._init.call(this,t),na.call(this)}Qy(he,na);Object.assign(he.prototype,Qr.prototype);he.prototype._new=function(e){return new he(e)};he.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i()};he.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};he.prototype.end=function(e){na.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};he.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};he.prototype._isBufferList=function(e){return e instanceof he||e instanceof Qr||he.isBufferList(e)};he.isBufferList=Qr.isBufferList;Zi.exports=he;Zi.exports.BufferListStream=he;Zi.exports.BufferList=Qr});var Ia=g((jB,Pp)=>{var ln=T("fs"),Lp=T("path"),Hb=T("os");function Ta(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function Oa(t,e){try{return e(t)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",t),!1;throw r}}var Ub={nil:function(t){return t==null},array:function(t){return Array.isArray(t)},emptyObject:function(t){for(var e in t)return!1;return!0},buffer:function(t){return Buffer.isBuffer(t)},regExp:function(t){return Ta(t,"RegExp")},string:function(t){return Ta(t,"String")},func:function(t){return typeof t=="function"},number:function(t){return Ta(t,"Number")},exists:function(t){return ln.existsSync(t)},file:function(t){return Oa(t,function(e){return ln.statSync(e).isFile()})},samePath:function(t,e){return Lp.resolve(t)===Lp.resolve(e)},directory:function(t){return Oa(t,function(e){return ln.statSync(e).isDirectory()})},symbolicLink:function(t){return Oa(t,function(e){return ln.lstatSync(e).isSymbolicLink()})},windows:function(){return Hb.platform()==="win32"}};Pp.exports=Ub});var jp=g(($B,qp)=>{var qr=T("fs"),Np=T("os"),ka=T("path"),un=Ia(),Mr,Gb=Np.tmpdir&&Np.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function Mp(){this.stack=[]}Mp.prototype={create:function(t,e){var r=ka.join(e,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:t}),r},write:function(){for(var t=0;t<arguments.length;++t)qr.writeFileSync(arguments[t]," ")},mkdir:function(){for(var t=0;t<arguments.length;++t)qr.mkdirSync(arguments[t])},cleanup:function(t){try{for(var e;e=this.stack.pop();){var r=e.type,i=e.name;r==="file"&&un.file(i)?qr.unlinkSync(i):r==="dir"&&un.directory(i)&&qr.rmdirSync(i)}}finally{un.func(t)&&t()}}};var Fp=!1;qp.exports=function t(e){if(!un.func(e))return!1;if(Mr!==void 0)return e(Mr);if(!Fp)Fp=!0;else return setTimeout(function(){t(e)},300);var r=new Mp,i=r.create("dir",Gb),n=r.create("dir",i),s=r.create("file",n);r.mkdir(i,n);var o={recursive:!0},a;try{a=qr.watch(i,o)}catch(c){if(c.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return e(Mr=!1);throw c}if(!a)return!1;var l=setTimeout(function(){a.close(),r.cleanup(function(){e(Mr=!1)})},200);a.on("change",function(c,u){ka.basename(s)===ka.basename(u)&&(a.close(),clearTimeout(l),r.cleanup(function(){e(Mr=!0)}))}),r.write(s)}});var Zp=g((HB,Na)=>{var La=T("fs"),jr=T("path"),Hp=T("util"),Up=T("events"),Gp=jp(),U=Ia(),Kb="update",Kp="remove",$p=Symbol("skip");function Jb(t){return t.some(function(e,r,i){return i.indexOf(e)!==r})}function Pa(t){return t.filter(function(e,r,i){return i.indexOf(e)===r})}function Vb(t){return t.reduce(function(e,r){return e.concat(r)},[])}function Wb(t){if(t&&t!=="buffer"&&!Buffer.isEncoding(t))throw new Error("Unknown encoding: "+t)}function Yb(t){return U.func(t)?function(e,r){t(e,!1)&&r()}:U.regExp(t)?function(e,r){t.test(e)&&r()}:function(e,r){r()}}function Xb(t){return t.map(function(e){return U.exists(e)?[Kb,e]:[Kp,e]})}function Zb(t){var e=Pa(t),r=/~$|^\.#|^##$/g,i=t.some(function(s){return r.test(s)});if(i){var n=Jb(t.map(function(s){return s.replace(r,"")}));n&&(e=e.filter(function(s){return U.exists(s)}))}return Xb(e)}function zb(t,e){var r,i=[],n=t.options.encoding,s=t.options.delay;U.number(s)||(s=200);function o(){Zb(i).forEach(function(a){a[1]=Buffer.from(a[1]),n!=="buffer"&&(a[1]=a[1].toString(n)),e.apply(null,a)}),r=null,i=[]}return function(a,l){i.push(l),r||(r=setTimeout(o,s))}}function Jp(){var t={};return function(e){return function(r,i){t[r+i]=[r,i],setTimeout(function(){Object.keys(t).forEach(function(n){e.apply(null,t[n])}),t={}})}}}function Vp(t,e,r=function(){}){U.directory(t)?La.readdir(t,function(i,n){if(i)if(/^(EPERM|EACCES)$/.test(i.code))console.warn("Warning: Cannot access %s.",t);else throw i;else n.forEach(function(s){var o=jr.join(t,s);U.directory(o)&&e(o)}),r()}):r()}function eC(t){var e=0;return function(){return e++,function(){e--,e===0&&t()}}}function tC(){return function(){}}function Wp(t,e){return!U.func(e)||e(t,$p)!==$p}var Yp=Hp.deprecate(function(){},"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function $e(){Up.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}Hp.inherits($e,Up.EventEmitter);$e.prototype.expose=function(){var t={},e=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(i){t[i]=function(){return e[i].apply(e,arguments)}}),t};$e.prototype.isClosed=function(){return this._isClosed};$e.prototype.close=function(t){var e=this;if(t){var r=this.watchers[t];r&&r.close&&(r.close(),delete e.watchers[t]),Vp(t,function(i){e.close(i)})}else Object.keys(e.watchers).forEach(function(i){var n=e.watchers[i];n&&n.close&&n.close()}),this.watchers={};U.emptyObject(e.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(Xp,this)))};$e.prototype.getWatchedPaths=function(t){if(U.func(t)){var e=this;e._isReady?t(Object.keys(e.watchers)):e.on("ready",function(){t(Object.keys(e.watchers))})}};function Da(t){t._isReady||(t._isReady=!0,process.nextTick(function(){t.emit("ready")}))}function Xp(t){t.emit("close")}$e.prototype.add=function(t,e){var r=this;e=e||{fpath:""};var i=jr.resolve(e.fpath);this.watchers[i]=t;var n=function(o,a){if(!r.isClosed()){var l=a;U.nil(l)&&(l=""),l=jr.join(e.fpath,l),e.options.recursive&&Gp(function(c){if(!c){var u=jr.resolve(l);if(!U.exists(l))r.close(u);else{var f=U.directory(l)&&!r.watchers[u]&&Wp(l,e.options.filter);f&&r.watchDirectory(l,e.options)}}}),s(o,l)}},s=zb(e,function(o,a){if(e.compareName)e.compareName(a)&&r.emit("change",o,a);else{var l=Yb(e.options.filter);l(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});t.on("error",function(o){r.isClosed()||(U.windows()&&o.code==="EPERM"?(t.emit("change",Kp,e.fpath&&""),r.flag="windows-error",r.close(i)):r.emit("error",o))}),t.on("change",n)};$e.prototype.watchFile=function(t,e,r){var i=jr.join(t,"../"),n=Object.assign({},e,{filter:null,encoding:"utf8"});delete n.recursive;var s=La.watch(i,n);this.add(s,{type:"file",fpath:i,options:Object.assign({},n,{encoding:e.encoding}),compareName:function(o){return U.samePath(o,t)}}),U.func(r)&&(r.length===1&&Yp(),this.on("change",r))};$e.prototype.watchDirectory=function(t,e,r,i=tC){var n=this,s=i();Gp(function(o){e.recursive=!!e.recursive;var a=Object.assign({},e,{encoding:"utf8"});if(o||delete a.recursive,n._isClosed)return s(),n.close();var l=La.watch(t,a);n.add(l,{type:"dir",fpath:t,options:e}),U.func(r)&&(r.length===1&&Yp(),n.on("change",r)),e.recursive&&!o&&Vp(t,function(c){Wp(c,e.filter)&&n.watchDirectory(c,e,null,i)},i()),s()})};function rC(t){var e=new $e,r=Jp(),i=t.length;return t.forEach(function(n){n.on("change",r(function(s,o){e.emit("change",s,o)})),n.on("error",function(s){e.emit("error",s)}),n.on("ready",function(){--i||Da(e)})}),e.close=function(){t.forEach(function(n){n.close()}),process.nextTick(Xp,e)},e.getWatchedPaths=function(n){if(U.func(n)){var s=t.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=Pa(Vb(o));n(a)})}},e.expose()}function cn(t,e,r){var i=new $e;if(U.buffer(t)&&(t=t.toString()),!U.array(t)&&!U.exists(t)&&i.emit("error",new Error(t+" does not exist.")),U.string(e)&&(e={encoding:e}),U.func(e)&&(r=e,e={}),arguments.length<2&&(e={}),e.encoding?Wb(e.encoding):e.encoding="utf8",U.array(t)){if(t.length===1)return cn(t[0],e,r);var n=Jp();return rC(Pa(t).map(function(o){var a=cn(o,e);return U.func(r)&&a.on("change",n(r)),a}))}if(U.file(t))i.watchFile(t,e,r),Da(i);else if(U.directory(t)){var s=eC(function(){Da(i)});i.watchDirectory(t,e,r,s)}return i.expose()}Na.exports=cn;Na.exports.default=cn});var Ma=(t=0)=>e=>`\x1B[${e+t}m`,qa=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,ja=(t=0)=>(e,r,i)=>`\x1B[${38+t};2;${e};${r};${i}m`,J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},$a=Object.keys(J.modifier),dn=Object.keys(J.color),An=Object.keys(J.bgColor),Ha=[...dn,...An];function cd(){let t=new Map;for(let[e,r]of Object.entries(J)){for(let[i,n]of Object.entries(r))J[i]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[i]=J[i],t.set(n[0],n[1]);Object.defineProperty(J,e,{value:r,enumerable:!1})}return Object.defineProperty(J,"codes",{value:t,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=Ma(),J.color.ansi256=qa(),J.color.ansi16m=ja(),J.bgColor.ansi=Ma(10),J.bgColor.ansi256=qa(10),J.bgColor.ansi16m=ja(10),Object.defineProperties(J,{rgbToAnsi256:{value(e,r,i){return e===r&&r===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[i]=r;i.length===3&&(i=[...i].map(s=>s+s).join(""));let n=Number.parseInt(i,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:e=>J.rgbToAnsi256(...J.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,i,n;if(e>=232)r=((e-232)*10+8)/255,i=r,n=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,i=Math.floor(a/6)/5,n=a%6/5}let s=Math.max(r,i,n)*2;if(s===0)return 30;let o=30+(Math.round(n)<<2|Math.round(i)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,i)=>J.ansi256ToAnsi(J.rgbToAnsi256(e,r,i)),enumerable:!1},hexToAnsi:{value:e=>J.ansi256ToAnsi(J.hexToAnsi256(e)),enumerable:!1}}),J}var fd=cd(),Te=fd;import gn from"node:process";import hd from"node:os";import Ua from"node:tty";function ve(t,e=globalThis.Deno?globalThis.Deno.args:gn.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),n=e.indexOf("--");return i!==-1&&(n===-1||i<n)}var{env:ee}=gn,Hr;ve("no-color")||ve("no-colors")||ve("color=false")||ve("color=never")?Hr=0:(ve("color")||ve("colors")||ve("color=true")||ve("color=always"))&&(Hr=1);function pd(){if("FORCE_COLOR"in ee)return ee.FORCE_COLOR==="true"?1:ee.FORCE_COLOR==="false"?0:ee.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ee.FORCE_COLOR,10),3)}function dd(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Ad(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let i=pd();i!==void 0&&(Hr=i);let n=r?Hr:i;if(n===0)return 0;if(r){if(ve("color=16m")||ve("color=full")||ve("color=truecolor"))return 3;if(ve("color=256"))return 2}if("TF_BUILD"in ee&&"AGENT_NAME"in ee)return 1;if(t&&!e&&n===void 0)return 0;let s=n||0;if(ee.TERM==="dumb")return s;if(gn.platform==="win32"){let o=hd.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in ee)return"GITHUB_ACTIONS"in ee?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in ee)||ee.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor"||ee.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ee){let o=Number.parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:s}function Ga(t,e={}){let r=Ad(t,{streamIsTTY:t&&t.isTTY,...e});return dd(r)}var gd={stdout:Ga({isTTY:Ua.isatty(1)}),stderr:Ga({isTTY:Ua.isatty(2)})},Ka=gd;function Ja(t,e,r){let i=t.indexOf(e);if(i===-1)return t;let n=e.length,s=0,o="";do o+=t.slice(s,i)+e+r,s=i+n,i=t.indexOf(e,s);while(i!==-1);return o+=t.slice(s),o}function Va(t,e,r,i){let n=0,s="";do{let o=t[i-1]==="\r";s+=t.slice(n,o?i-1:i)+e+(o?`\r
|
28
|
+
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var vu=g((vv,Cu)=>{"use strict";var XA=ri(),{MAX_LENGTH:Eu,CHAR_BACKSLASH:Hn,CHAR_BACKTICK:ZA,CHAR_COMMA:zA,CHAR_DOT:eg,CHAR_LEFT_PARENTHESES:tg,CHAR_RIGHT_PARENTHESES:rg,CHAR_LEFT_CURLY_BRACE:ig,CHAR_RIGHT_CURLY_BRACE:ng,CHAR_LEFT_SQUARE_BRACKET:yu,CHAR_RIGHT_SQUARE_BRACKET:bu,CHAR_DOUBLE_QUOTE:sg,CHAR_SINGLE_QUOTE:og,CHAR_NO_BREAK_SPACE:ag,CHAR_ZERO_WIDTH_NOBREAK_SPACE:lg}=_u(),ug=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Eu,r.maxLength):Eu;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,l=0,c=t.length,u=0,f=0,h,C={},p=()=>t[u++],m=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(m({type:"bos"});u<c;)if(o=s[s.length-1],h=p(),!(h===lg||h===ag)){if(h===Hn){m({type:"text",value:(e.keepEscaping?h:"")+p()});continue}if(h===bu){m({type:"text",value:"\\"+h});continue}if(h===yu){l++;let v=!0,x;for(;u<c&&(x=p());){if(h+=x,x===yu){l++;continue}if(x===Hn){h+=p();continue}if(x===bu&&(l--,l===0))break}m({type:"text",value:h});continue}if(h===tg){o=m({type:"paren",nodes:[]}),s.push(o),m({type:"text",value:h});continue}if(h===rg){if(o.type!=="paren"){m({type:"text",value:h});continue}o=s.pop(),m({type:"text",value:h}),o=s[s.length-1];continue}if(h===sg||h===og||h===ZA){let v=h,x;for(e.keepQuotes!==!0&&(h="");u<c&&(x=p());){if(x===Hn){h+=x+p();continue}if(x===v){e.keepQuotes===!0&&(h+=x);break}h+=x}m({type:"text",value:h});continue}if(h===ig){f++;let x={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=m(x),s.push(o),m({type:"open",value:h});continue}if(h===ng){if(o.type!=="brace"){m({type:"text",value:h});continue}let v="close";o=s.pop(),o.close=!0,m({type:v,value:h}),f--,o=s[s.length-1];continue}if(h===zA&&f>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:XA(o)}]}m({type:"comma",value:h}),o.commas++;continue}if(h===eg&&f>0&&o.commas===0){let v=o.nodes;if(f===0||v.length===0){m({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){v.pop();let x=v[v.length-1];x.value+=a.value+h,a=x,o.ranges--;continue}m({type:"dot",value:h});continue}m({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(N=>{N.nodes||(N.type==="open"&&(N.isOpen=!0),N.type==="close"&&(N.isClose=!0),N.nodes||(N.type="text"),N.invalid=!0)});let v=s[s.length-1],x=v.nodes.indexOf(o);v.nodes.splice(x,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),n};Cu.exports=ug});var Su=g((xv,wu)=>{"use strict";var xu=ri(),cg=pu(),fg=gu(),hg=vu(),be=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=be.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(be.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};be.parse=(t,e={})=>hg(t,e);be.stringify=(t,e={})=>xu(typeof t=="string"?be.parse(t,e):t,e);be.compile=(t,e={})=>(typeof t=="string"&&(t=be.parse(t,e)),cg(t,e));be.expand=(t,e={})=>{typeof t=="string"&&(t=be.parse(t,e));let r=fg(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};be.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?be.compile(t,e):be.expand(t,e);wu.exports=be});var pr=g((wv,Ou)=>{"use strict";var pg=T("path"),Ne="\\\\/",Bu=`[^${Ne}]`,Ue="\\.",dg="\\+",Ag="\\?",ni="\\/",gg="(?=.)",Ru="[^/]",Un=`(?:${ni}|$)`,Qu=`(?:^|${ni})`,Gn=`${Ue}{1,2}${Un}`,mg=`(?!${Ue})`,_g=`(?!${Qu}${Gn})`,Eg=`(?!${Ue}{0,1}${Un})`,yg=`(?!${Gn})`,bg=`[^.${ni}]`,Cg=`${Ru}*?`,Tu={DOT_LITERAL:Ue,PLUS_LITERAL:dg,QMARK_LITERAL:Ag,SLASH_LITERAL:ni,ONE_CHAR:gg,QMARK:Ru,END_ANCHOR:Un,DOTS_SLASH:Gn,NO_DOT:mg,NO_DOTS:_g,NO_DOT_SLASH:Eg,NO_DOTS_SLASH:yg,QMARK_NO_DOT:bg,STAR:Cg,START_ANCHOR:Qu},vg={...Tu,SLASH_LITERAL:`[${Ne}]`,QMARK:Bu,STAR:`${Bu}*?`,DOTS_SLASH:`${Ue}{1,2}(?:[${Ne}]|$)`,NO_DOT:`(?!${Ue})`,NO_DOTS:`(?!(?:^|[${Ne}])${Ue}{1,2}(?:[${Ne}]|$))`,NO_DOT_SLASH:`(?!${Ue}{0,1}(?:[${Ne}]|$))`,NO_DOTS_SLASH:`(?!${Ue}{1,2}(?:[${Ne}]|$))`,QMARK_NO_DOT:`[^.${Ne}]`,START_ANCHOR:`(?:^|[${Ne}])`,END_ANCHOR:`(?:[${Ne}]|$)`},xg={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"};Ou.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:xg,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:pg.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?vg:Tu}}});var dr=g(me=>{"use strict";var wg=T("path"),Sg=process.platform==="win32",{REGEX_BACKSLASH:Bg,REGEX_REMOVE_BACKSLASH:Rg,REGEX_SPECIAL_CHARS:Qg,REGEX_SPECIAL_CHARS_GLOBAL:Tg}=pr();me.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);me.hasRegexChars=t=>Qg.test(t);me.isRegexChar=t=>t.length===1&&me.hasRegexChars(t);me.escapeRegex=t=>t.replace(Tg,"\\$1");me.toPosixSlashes=t=>t.replace(Bg,"/");me.removeBackslashes=t=>t.replace(Rg,e=>e==="\\"?"":e);me.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};me.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Sg===!0||wg.sep==="\\";me.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?me.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};me.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};me.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Mu=g((Bv,Fu)=>{"use strict";var Iu=dr(),{CHAR_ASTERISK:Kn,CHAR_AT:Og,CHAR_BACKWARD_SLASH:Ar,CHAR_COMMA:Ig,CHAR_DOT:Jn,CHAR_EXCLAMATION_MARK:Vn,CHAR_FORWARD_SLASH:Nu,CHAR_LEFT_CURLY_BRACE:Wn,CHAR_LEFT_PARENTHESES:Yn,CHAR_LEFT_SQUARE_BRACKET:kg,CHAR_PLUS:Dg,CHAR_QUESTION_MARK:ku,CHAR_RIGHT_CURLY_BRACE:Lg,CHAR_RIGHT_PARENTHESES:Du,CHAR_RIGHT_SQUARE_BRACKET:Pg}=pr(),Lu=t=>t===Nu||t===Ar,Pu=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Ng=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,f=0,h=!1,C=!1,p=!1,m=!1,v=!1,x=!1,N=!1,E=!1,I=!1,y=!1,k=0,S,O,j={value:"",depth:0,isGlob:!1},re=()=>c>=i,_=()=>l.charCodeAt(c+1),B=()=>(S=O,l.charCodeAt(++c));for(;c<i;){O=B();let ne;if(O===Ar){N=j.backslashes=!0,O=B(),O===Wn&&(x=!0);continue}if(x===!0||O===Wn){for(k++;re()!==!0&&(O=B());){if(O===Ar){N=j.backslashes=!0,B();continue}if(O===Wn){k++;continue}if(x!==!0&&O===Jn&&(O=B())===Jn){if(h=j.isBrace=!0,p=j.isGlob=!0,y=!0,n===!0)continue;break}if(x!==!0&&O===Ig){if(h=j.isBrace=!0,p=j.isGlob=!0,y=!0,n===!0)continue;break}if(O===Lg&&(k--,k===0)){x=!1,h=j.isBrace=!0,y=!0;break}}if(n===!0)continue;break}if(O===Nu){if(s.push(c),o.push(j),j={value:"",depth:0,isGlob:!1},y===!0)continue;if(S===Jn&&c===u+1){u+=2;continue}f=c+1;continue}if(r.noext!==!0&&(O===Dg||O===Og||O===Kn||O===ku||O===Vn)===!0&&_()===Yn){if(p=j.isGlob=!0,m=j.isExtglob=!0,y=!0,O===Vn&&c===u&&(I=!0),n===!0){for(;re()!==!0&&(O=B());){if(O===Ar){N=j.backslashes=!0,O=B();continue}if(O===Du){p=j.isGlob=!0,y=!0;break}}continue}break}if(O===Kn){if(S===Kn&&(v=j.isGlobstar=!0),p=j.isGlob=!0,y=!0,n===!0)continue;break}if(O===ku){if(p=j.isGlob=!0,y=!0,n===!0)continue;break}if(O===kg){for(;re()!==!0&&(ne=B());){if(ne===Ar){N=j.backslashes=!0,B();continue}if(ne===Pg){C=j.isBracket=!0,p=j.isGlob=!0,y=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&O===Vn&&c===u){E=j.negated=!0,u++;continue}if(r.noparen!==!0&&O===Yn){if(p=j.isGlob=!0,n===!0){for(;re()!==!0&&(O=B());){if(O===Yn){N=j.backslashes=!0,O=B();continue}if(O===Du){y=!0;break}}continue}break}if(p===!0){if(y=!0,n===!0)continue;break}}r.noext===!0&&(m=!1,p=!1);let D=l,_e="",d="";u>0&&(_e=l.slice(0,u),l=l.slice(u),f-=u),D&&p===!0&&f>0?(D=l.slice(0,f),d=l.slice(f)):p===!0?(D="",d=l):D=l,D&&D!==""&&D!=="/"&&D!==l&&Lu(D.charCodeAt(D.length-1))&&(D=D.slice(0,-1)),r.unescape===!0&&(d&&(d=Iu.removeBackslashes(d)),D&&N===!0&&(D=Iu.removeBackslashes(D)));let A={prefix:_e,input:t,start:u,base:D,glob:d,isBrace:h,isBracket:C,isGlob:p,isExtglob:m,isGlobstar:v,negated:E,negatedExtglob:I};if(r.tokens===!0&&(A.maxDepth=0,Lu(O)||o.push(j),A.tokens=o),r.parts===!0||r.tokens===!0){let ne;for(let q=0;q<s.length;q++){let ae=ne?ne+1:u,Ee=s[q],pe=t.slice(ae,Ee);r.tokens&&(q===0&&u!==0?(o[q].isPrefix=!0,o[q].value=_e):o[q].value=pe,Pu(o[q]),A.maxDepth+=o[q].depth),(q!==0||pe!=="")&&a.push(pe),ne=Ee}if(ne&&ne+1<t.length){let q=t.slice(ne+1);a.push(q),r.tokens&&(o[o.length-1].value=q,Pu(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};Fu.exports=Ng});var $u=g((Rv,ju)=>{"use strict";var si=pr(),Ce=dr(),{MAX_LENGTH:oi,POSIX_REGEX_SOURCE:Fg,REGEX_NON_SPECIAL_CHARS:Mg,REGEX_SPECIAL_CHARS_BACKREF:qg,REPLACEMENTS:qu}=si,jg=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>Ce.escapeRegex(n)).join("..")}return r},kt=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Xn=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=qu[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(oi,r.maxLength):oi,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=Ce.isWindows(e),c=si.globChars(l),u=si.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:C,ONE_CHAR:p,DOTS_SLASH:m,NO_DOT:v,NO_DOT_SLASH:x,NO_DOTS_SLASH:N,QMARK:E,QMARK_NO_DOT:I,STAR:y,START_ANCHOR:k}=c,S=w=>`(${a}(?:(?!${k}${w.dot?m:f}).)*?)`,O=r.dot?"":v,j=r.dot?E:I,re=r.bash===!0?S(r):y;r.capture&&(re=`(${re})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let _={input:t,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:o};t=Ce.removePrefix(t,_),n=t.length;let B=[],D=[],_e=[],d=s,A,ne=()=>_.index===n-1,q=_.peek=(w=1)=>t[_.index+w],ae=_.advance=()=>t[++_.index]||"",Ee=()=>t.slice(_.index+1),pe=(w="",K=0)=>{_.consumed+=w,_.index+=K},ut=w=>{_.output+=w.output!=null?w.output:w.value,pe(w.value)},fn=()=>{let w=1;for(;q()==="!"&&(q(2)!=="("||q(3)==="?");)ae(),_.start++,w++;return w%2===0?!1:(_.negated=!0,_.start++,!0)},nr=w=>{_[w]++,_e.push(w)},L=w=>{_[w]--,_e.pop()},Q=w=>{if(d.type==="globstar"){let K=_.braces>0&&(w.type==="comma"||w.type==="brace"),b=w.extglob===!0||B.length&&(w.type==="pipe"||w.type==="paren");w.type!=="slash"&&w.type!=="paren"&&!K&&!b&&(_.output=_.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=re,_.output+=d.output)}if(B.length&&w.type!=="paren"&&(B[B.length-1].inner+=w.value),(w.value||w.output)&&ut(w),d&&d.type==="text"&&w.type==="text"){d.value+=w.value,d.output=(d.output||"")+w.value;return}w.prev=d,o.push(w),d=w},ye=(w,K)=>{let b={...u[K],conditions:1,inner:""};b.prev=d,b.parens=_.parens,b.output=_.output;let F=(r.capture?"(":"")+b.open;nr("parens"),Q({type:w,value:K,output:_.output?"":p}),Q({type:"paren",extglob:!0,value:ae(),output:F}),B.push(b)},hn=w=>{let K=w.close+(r.capture?")":""),b;if(w.type==="negate"){let F=re;if(w.inner&&w.inner.length>1&&w.inner.includes("/")&&(F=S(r)),(F!==re||ne()||/^\)+$/.test(Ee()))&&(K=w.close=`)$))${F}`),w.inner.includes("*")&&(b=Ee())&&/^\.[^\\/.]+$/.test(b)){let Z=Xn(b,{...e,fastpaths:!1}).output;K=w.close=`)${Z})${F})`}w.prev.type==="bos"&&(_.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:A,output:K}),L("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let w=!1,K=t.replace(qg,(b,F,Z,de,oe,pn)=>de==="\\"?(w=!0,b):de==="?"?F?F+de+(oe?E.repeat(oe.length):""):pn===0?j+(oe?E.repeat(oe.length):""):E.repeat(Z.length):de==="."?f.repeat(Z.length):de==="*"?F?F+de+(oe?re:""):re:F?b:`\\${b}`);return w===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,b=>b.length%2===0?"\\\\":b?"\\":"")),K===t&&r.contains===!0?(_.output=t,_):(_.output=Ce.wrapOutput(K,_,e),_)}for(;!ne();){if(A=ae(),A==="\0")continue;if(A==="\\"){let b=q();if(b==="/"&&r.bash!==!0||b==="."||b===";")continue;if(!b){A+="\\",Q({type:"text",value:A});continue}let F=/^\\+/.exec(Ee()),Z=0;if(F&&F[0].length>2&&(Z=F[0].length,_.index+=Z,Z%2!==0&&(A+="\\")),r.unescape===!0?A=ae():A+=ae(),_.brackets===0){Q({type:"text",value:A});continue}}if(_.brackets>0&&(A!=="]"||d.value==="["||d.value==="[^")){if(r.posix!==!1&&A===":"){let b=d.value.slice(1);if(b.includes("[")&&(d.posix=!0,b.includes(":"))){let F=d.value.lastIndexOf("["),Z=d.value.slice(0,F),de=d.value.slice(F+2),oe=Fg[de];if(oe){d.value=Z+oe,_.backtrack=!0,ae(),!s.output&&o.indexOf(d)===1&&(s.output=p);continue}}}(A==="["&&q()!==":"||A==="-"&&q()==="]")&&(A=`\\${A}`),A==="]"&&(d.value==="["||d.value==="[^")&&(A=`\\${A}`),r.posix===!0&&A==="!"&&d.value==="["&&(A="^"),d.value+=A,ut({value:A});continue}if(_.quotes===1&&A!=='"'){A=Ce.escapeRegex(A),d.value+=A,ut({value:A});continue}if(A==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&Q({type:"text",value:A});continue}if(A==="("){nr("parens"),Q({type:"paren",value:A});continue}if(A===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(kt("opening","("));let b=B[B.length-1];if(b&&_.parens===b.parens+1){hn(B.pop());continue}Q({type:"paren",value:A,output:_.parens?")":"\\)"}),L("parens");continue}if(A==="["){if(r.nobracket===!0||!Ee().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(kt("closing","]"));A=`\\${A}`}else nr("brackets");Q({type:"bracket",value:A});continue}if(A==="]"){if(r.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){Q({type:"text",value:A,output:`\\${A}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(kt("opening","["));Q({type:"text",value:A,output:`\\${A}`});continue}L("brackets");let b=d.value.slice(1);if(d.posix!==!0&&b[0]==="^"&&!b.includes("/")&&(A=`/${A}`),d.value+=A,ut({value:A}),r.literalBrackets===!1||Ce.hasRegexChars(b))continue;let F=Ce.escapeRegex(d.value);if(_.output=_.output.slice(0,-d.value.length),r.literalBrackets===!0){_.output+=F,d.value=F;continue}d.value=`(${a}${F}|${d.value})`,_.output+=d.value;continue}if(A==="{"&&r.nobrace!==!0){nr("braces");let b={type:"brace",value:A,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};D.push(b),Q(b);continue}if(A==="}"){let b=D[D.length-1];if(r.nobrace===!0||!b){Q({type:"text",value:A,output:A});continue}let F=")";if(b.dots===!0){let Z=o.slice(),de=[];for(let oe=Z.length-1;oe>=0&&(o.pop(),Z[oe].type!=="brace");oe--)Z[oe].type!=="dots"&&de.unshift(Z[oe].value);F=jg(de,r),_.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let Z=_.output.slice(0,b.outputIndex),de=_.tokens.slice(b.tokensIndex);b.value=b.output="\\{",A=F="\\}",_.output=Z;for(let oe of de)_.output+=oe.output||oe.value}Q({type:"brace",value:A,output:F}),L("braces"),D.pop();continue}if(A==="|"){B.length>0&&B[B.length-1].conditions++,Q({type:"text",value:A});continue}if(A===","){let b=A,F=D[D.length-1];F&&_e[_e.length-1]==="braces"&&(F.comma=!0,b="|"),Q({type:"comma",value:A,output:b});continue}if(A==="/"){if(d.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",o.pop(),d=s;continue}Q({type:"slash",value:A,output:C});continue}if(A==="."){if(_.braces>0&&d.type==="dot"){d.value==="."&&(d.output=f);let b=D[D.length-1];d.type="dots",d.output+=A,d.value+=A,b.dots=!0;continue}if(_.braces+_.parens===0&&d.type!=="bos"&&d.type!=="slash"){Q({type:"text",value:A,output:f});continue}Q({type:"dot",value:A,output:f});continue}if(A==="?"){if(!(d&&d.value==="(")&&r.noextglob!==!0&&q()==="("&&q(2)!=="?"){ye("qmark",A);continue}if(d&&d.type==="paren"){let F=q(),Z=A;if(F==="<"&&!Ce.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(d.value==="("&&!/[!=<:]/.test(F)||F==="<"&&!/<([!=]|\w+>)/.test(Ee()))&&(Z=`\\${A}`),Q({type:"text",value:A,output:Z});continue}if(r.dot!==!0&&(d.type==="slash"||d.type==="bos")){Q({type:"qmark",value:A,output:I});continue}Q({type:"qmark",value:A,output:E});continue}if(A==="!"){if(r.noextglob!==!0&&q()==="("&&(q(2)!=="?"||!/[!=<:]/.test(q(3)))){ye("negate",A);continue}if(r.nonegate!==!0&&_.index===0){fn();continue}}if(A==="+"){if(r.noextglob!==!0&&q()==="("&&q(2)!=="?"){ye("plus",A);continue}if(d&&d.value==="("||r.regex===!1){Q({type:"plus",value:A,output:h});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||_.parens>0){Q({type:"plus",value:A});continue}Q({type:"plus",value:h});continue}if(A==="@"){if(r.noextglob!==!0&&q()==="("&&q(2)!=="?"){Q({type:"at",extglob:!0,value:A,output:""});continue}Q({type:"text",value:A});continue}if(A!=="*"){(A==="$"||A==="^")&&(A=`\\${A}`);let b=Mg.exec(Ee());b&&(A+=b[0],_.index+=b[0].length),Q({type:"text",value:A});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=A,d.output=re,_.backtrack=!0,_.globstar=!0,pe(A);continue}let w=Ee();if(r.noextglob!==!0&&/^\([^?]/.test(w)){ye("star",A);continue}if(d.type==="star"){if(r.noglobstar===!0){pe(A);continue}let b=d.prev,F=b.prev,Z=b.type==="slash"||b.type==="bos",de=F&&(F.type==="star"||F.type==="globstar");if(r.bash===!0&&(!Z||w[0]&&w[0]!=="/")){Q({type:"star",value:A,output:""});continue}let oe=_.braces>0&&(b.type==="comma"||b.type==="brace"),pn=B.length&&(b.type==="pipe"||b.type==="paren");if(!Z&&b.type!=="paren"&&!oe&&!pn){Q({type:"star",value:A,output:""});continue}for(;w.slice(0,3)==="/**";){let $r=t[_.index+4];if($r&&$r!=="/")break;w=w.slice(3),pe("/**",3)}if(b.type==="bos"&&ne()){d.type="globstar",d.value+=A,d.output=S(r),_.output=d.output,_.globstar=!0,pe(A);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!de&&ne()){_.output=_.output.slice(0,-(b.output+d.output).length),b.output=`(?:${b.output}`,d.type="globstar",d.output=S(r)+(r.strictSlashes?")":"|$)"),d.value+=A,_.globstar=!0,_.output+=b.output+d.output,pe(A);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&w[0]==="/"){let $r=w[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(b.output+d.output).length),b.output=`(?:${b.output}`,d.type="globstar",d.output=`${S(r)}${C}|${C}${$r})`,d.value+=A,_.output+=b.output+d.output,_.globstar=!0,pe(A+ae()),Q({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&w[0]==="/"){d.type="globstar",d.value+=A,d.output=`(?:^|${C}|${S(r)}${C})`,_.output=d.output,_.globstar=!0,pe(A+ae()),Q({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-d.output.length),d.type="globstar",d.output=S(r),d.value+=A,_.output+=d.output,_.globstar=!0,pe(A);continue}let K={type:"star",value:A,output:re};if(r.bash===!0){K.output=".*?",(d.type==="bos"||d.type==="slash")&&(K.output=O+K.output),Q(K);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&r.regex===!0){K.output=A,Q(K);continue}(_.index===_.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?(_.output+=x,d.output+=x):r.dot===!0?(_.output+=N,d.output+=N):(_.output+=O,d.output+=O),q()!=="*"&&(_.output+=p,d.output+=p)),Q(K)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(kt("closing","]"));_.output=Ce.escapeLast(_.output,"["),L("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(kt("closing",")"));_.output=Ce.escapeLast(_.output,"("),L("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(kt("closing","}"));_.output=Ce.escapeLast(_.output,"{"),L("braces")}if(r.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&Q({type:"maybe_slash",value:"",output:`${C}?`}),_.backtrack===!0){_.output="";for(let w of _.tokens)_.output+=w.output!=null?w.output:w.value,w.suffix&&(_.output+=w.suffix)}return _};Xn.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(oi,r.maxLength):oi,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=qu[t]||t;let s=Ce.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:C,START_ANCHOR:p}=si.globChars(s),m=r.dot?f:u,v=r.dot?h:u,x=r.capture?"":"?:",N={negated:!1,prefix:""},E=r.bash===!0?".*?":C;r.capture&&(E=`(${E})`);let I=O=>O.noglobstar===!0?E:`(${x}(?:(?!${p}${O.dot?c:o}).)*?)`,y=O=>{switch(O){case"*":return`${m}${l}${E}`;case".*":return`${o}${l}${E}`;case"*.*":return`${m}${E}${o}${l}${E}`;case"*/*":return`${m}${E}${a}${l}${v}${E}`;case"**":return m+I(r);case"**/*":return`(?:${m}${I(r)}${a})?${v}${l}${E}`;case"**/*.*":return`(?:${m}${I(r)}${a})?${v}${E}${o}${l}${E}`;case"**/.*":return`(?:${m}${I(r)}${a})?${o}${l}${E}`;default:{let j=/^(.*?)\.(\w+)$/.exec(O);if(!j)return;let re=y(j[1]);return re?re+o+j[2]:void 0}}},k=Ce.removePrefix(t,N),S=y(k);return S&&r.strictSlashes!==!0&&(S+=`${a}?`),S};ju.exports=Xn});var Uu=g((Qv,Hu)=>{"use strict";var $g=T("path"),Hg=Mu(),Zn=$u(),zn=dr(),Ug=pr(),Gg=t=>t&&typeof t=="object"&&!Array.isArray(t),ie=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(h=>ie(h,e,r));return h=>{for(let C of u){let p=C(h);if(p)return p}return!1}}let i=Gg(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=zn.isWindows(e),o=i?ie.compileRe(t,e):ie.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=ie(n.ignore,u,r)}let c=(u,f=!1)=>{let{isMatch:h,match:C,output:p}=ie.test(u,o,e,{glob:t,posix:s}),m={glob:t,state:a,regex:o,posix:s,input:u,output:p,match:C,isMatch:h};return typeof n.onResult=="function"&&n.onResult(m),h===!1?(m.isMatch=!1,f?m:!1):l(u)?(typeof n.onIgnore=="function"&&n.onIgnore(m),m.isMatch=!1,f?m:!1):(typeof n.onMatch=="function"&&n.onMatch(m),f?m:!0)};return r&&(c.state=a),c};ie.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?zn.toPosixSlashes:null),a=t===i,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=ie.matchBase(t,e,r,n):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};ie.matchBase=(t,e,r,i=zn.isWindows(r))=>(e instanceof RegExp?e:ie.makeRe(e,r)).test($g.basename(t));ie.isMatch=(t,e,r)=>ie(e,r)(t);ie.parse=(t,e)=>Array.isArray(t)?t.map(r=>ie.parse(r,e)):Zn(t,{...e,fastpaths:!1});ie.scan=(t,e)=>Hg(t,e);ie.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=ie.toRegex(a,e);return i===!0&&(l.state=t),l};ie.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=Zn.fastpaths(t,e)),n.output||(n=Zn(t,e)),ie.compileRe(n,e,r,i)};ie.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};ie.constants=Ug;Hu.exports=ie});var Ku=g((Tv,Gu)=>{"use strict";Gu.exports=Uu()});var Xu=g((Ov,Yu)=>{"use strict";var Vu=T("util"),Wu=Su(),Fe=Ku(),es=dr(),Ju=t=>t===""||t==="./",Y=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let f=Fe(String(e[u]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let C of t){let p=f(C,!0);(h?!p.isMatch:p.isMatch)&&(h?i.add(p.output):(i.delete(p.output),n.add(p.output)))}}let c=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};Y.match=Y;Y.matcher=(t,e)=>Fe(t,e);Y.isMatch=(t,e,r)=>Fe(e,r)(t);Y.any=Y.isMatch;Y.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(Y(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};Y.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Vu.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>Y.contains(t,i,r));if(typeof e=="string"){if(Ju(t)||Ju(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Y.isMatch(t,e,{...r,contains:!0})};Y.matchKeys=(t,e,r)=>{if(!es.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=Y(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};Y.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Fe(String(n),r);if(i.some(o=>s(o)))return!0}return!1};Y.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Fe(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};Y.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Vu.inspect(t)}"`);return[].concat(e).every(i=>Fe(i,r)(t))};Y.capture=(t,e,r)=>{let i=es.isWindows(r),s=Fe.makeRe(String(t),{...r,capture:!0}).exec(i?es.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Y.makeRe=(...t)=>Fe.makeRe(...t);Y.scan=(...t)=>Fe.scan(...t);Y.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Wu(String(i),e))r.push(Fe.parse(n,e));return r};Y.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Wu(t,e)};Y.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Y.braces(t,{...e,expand:!0})};Yu.exports=Y});var sc=g(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.matchAny=P.convertPatternsToRe=P.makeRe=P.getPatternParts=P.expandBraceExpansion=P.expandPatternsWithBraceExpansion=P.isAffectDepthOfReadingPattern=P.endsWithSlashGlobStar=P.hasGlobStar=P.getBaseDirectory=P.isPatternRelatedToParentDirectory=P.getPatternsOutsideCurrentDirectory=P.getPatternsInsideCurrentDirectory=P.getPositivePatterns=P.getNegativePatterns=P.isPositivePattern=P.isNegativePattern=P.convertToNegativePattern=P.convertToPositivePattern=P.isDynamicPattern=P.isStaticPattern=void 0;var Kg=T("path"),Jg=Hl(),ts=Xu(),Zu="**",Vg="\\",Wg=/[*?]|^!/,Yg=/\[[^[]*]/,Xg=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Zg=/[!*+?@]\([^(]*\)/,zg=/,|\.\./;function zu(t,e={}){return!ec(t,e)}P.isStaticPattern=zu;function ec(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Vg)||Wg.test(t)||Yg.test(t)||Xg.test(t)||e.extglob!==!1&&Zg.test(t)||e.braceExpansion!==!1&&em(t))}P.isDynamicPattern=ec;function em(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return zg.test(i)}function tm(t){return ai(t)?t.slice(1):t}P.convertToPositivePattern=tm;function rm(t){return"!"+t}P.convertToNegativePattern=rm;function ai(t){return t.startsWith("!")&&t[1]!=="("}P.isNegativePattern=ai;function tc(t){return!ai(t)}P.isPositivePattern=tc;function im(t){return t.filter(ai)}P.getNegativePatterns=im;function nm(t){return t.filter(tc)}P.getPositivePatterns=nm;function sm(t){return t.filter(e=>!rs(e))}P.getPatternsInsideCurrentDirectory=sm;function om(t){return t.filter(rs)}P.getPatternsOutsideCurrentDirectory=om;function rs(t){return t.startsWith("..")||t.startsWith("./..")}P.isPatternRelatedToParentDirectory=rs;function am(t){return Jg(t,{flipBackslashes:!1})}P.getBaseDirectory=am;function lm(t){return t.includes(Zu)}P.hasGlobStar=lm;function rc(t){return t.endsWith("/"+Zu)}P.endsWithSlashGlobStar=rc;function um(t){let e=Kg.basename(t);return rc(t)||zu(e)}P.isAffectDepthOfReadingPattern=um;function cm(t){return t.reduce((e,r)=>e.concat(ic(r)),[])}P.expandPatternsWithBraceExpansion=cm;function ic(t){return ts.braces(t,{expand:!0,nodupes:!0})}P.expandBraceExpansion=ic;function fm(t,e){let{parts:r}=ts.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}P.getPatternParts=fm;function nc(t,e){return ts.makeRe(t,e)}P.makeRe=nc;function hm(t,e){return t.map(r=>nc(r,e))}P.convertPatternsToRe=hm;function pm(t,e){return e.some(r=>r.test(t))}P.matchAny=pm});var uc=g((kv,lc)=>{"use strict";var dm=T("stream"),oc=dm.PassThrough,Am=Array.prototype.slice;lc.exports=gm;function gm(){let t=[],e=Am.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=oc(i);function a(){for(let u=0,f=arguments.length;u<f;u++)t.push(ac(arguments[u],i));return l(),this}function l(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let f=u.length+1;function h(){--f>0||(r=!1,l())}function C(p){function m(){p.removeListener("merge2UnpipeEnd",m),p.removeListener("end",m),s&&p.removeListener("error",v),h()}function v(x){o.emit("error",x)}if(p._readableState.endEmitted)return h();p.on("merge2UnpipeEnd",m),p.on("end",m),s&&p.on("error",v),p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<u.length;p++)C(u[p]);h()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function ac(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=ac(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(oc(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var fc=g(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.merge=void 0;var mm=uc();function _m(t){let e=mm(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>cc(t)),e.once("end",()=>cc(t)),e}li.merge=_m;function cc(t){t.forEach(e=>e.emit("close"))}});var hc=g(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.isEmpty=Dt.isString=void 0;function Em(t){return typeof t=="string"}Dt.isString=Em;function ym(t){return t===""}Dt.isEmpty=ym});var Ge=g(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.string=ce.stream=ce.pattern=ce.path=ce.fs=ce.errno=ce.array=void 0;var bm=kl();ce.array=bm;var Cm=Dl();ce.errno=Cm;var vm=Ll();ce.fs=vm;var xm=Pl();ce.path=xm;var wm=sc();ce.pattern=wm;var Sm=fc();ce.stream=Sm;var Bm=hc();ce.string=Bm});var Ac=g(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.convertPatternGroupToTask=fe.convertPatternGroupsToTasks=fe.groupPatternsByBaseDirectory=fe.getNegativePatternsAsPositive=fe.getPositivePatterns=fe.convertPatternsToTasks=fe.generate=void 0;var Ke=Ge();function Rm(t,e){let r=pc(t),i=dc(t,e.ignore),n=r.filter(l=>Ke.pattern.isStaticPattern(l,e)),s=r.filter(l=>Ke.pattern.isDynamicPattern(l,e)),o=is(n,i,!1),a=is(s,i,!0);return o.concat(a)}fe.generate=Rm;function is(t,e,r){let i=[],n=Ke.pattern.getPatternsOutsideCurrentDirectory(t),s=Ke.pattern.getPatternsInsideCurrentDirectory(t),o=ns(n),a=ns(s);return i.push(...ss(o,e,r)),"."in a?i.push(os(".",s,e,r)):i.push(...ss(a,e,r)),i}fe.convertPatternsToTasks=is;function pc(t){return Ke.pattern.getPositivePatterns(t)}fe.getPositivePatterns=pc;function dc(t,e){return Ke.pattern.getNegativePatterns(t).concat(e).map(Ke.pattern.convertToPositivePattern)}fe.getNegativePatternsAsPositive=dc;function ns(t){let e={};return t.reduce((r,i)=>{let n=Ke.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}fe.groupPatternsByBaseDirectory=ns;function ss(t,e,r){return Object.keys(t).map(i=>os(i,t[i],e,r))}fe.convertPatternGroupsToTasks=ss;function os(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Ke.pattern.convertToNegativePattern))}}fe.convertPatternGroupToTask=os});var mc=g(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.removeDuplicateSlashes=Lt.transform=void 0;var Qm=/(?!^)\/{2,}/g;function Tm(t){return t.map(e=>gc(e))}Lt.transform=Tm;function gc(t){return t.replace(Qm,"/")}Lt.removeDuplicateSlashes=gc});var Ec=g(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.read=void 0;function Om(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){_c(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){as(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){_c(r,s);return}as(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),as(r,o)})})}ui.read=Om;function _c(t,e){t(e)}function as(t,e){t(null,e)}});var yc=g(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.read=void 0;function Im(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}ci.read=Im});var bc=g(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.createFileSystemAdapter=Ze.FILE_SYSTEM_ADAPTER=void 0;var fi=T("fs");Ze.FILE_SYSTEM_ADAPTER={lstat:fi.lstat,stat:fi.stat,lstatSync:fi.lstatSync,statSync:fi.statSync};function km(t){return t===void 0?Ze.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ze.FILE_SYSTEM_ADAPTER),t)}Ze.createFileSystemAdapter=km});var Cc=g(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});var Dm=bc(),ls=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Dm.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};us.default=ls});var pt=g(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.statSync=ze.stat=ze.Settings=void 0;var vc=Ec(),Lm=yc(),cs=Cc();ze.Settings=cs.default;function Pm(t,e,r){if(typeof e=="function"){vc.read(t,fs(),e);return}vc.read(t,fs(e),r)}ze.stat=Pm;function Nm(t,e){let r=fs(e);return Lm.read(t,r)}ze.statSync=Nm;function fs(t={}){return t instanceof cs.default?t:new cs.default(t)}});var Sc=g((Uv,wc)=>{var xc;wc.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(xc||(xc=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Rc=g((Gv,Bc)=>{Bc.exports=Mm;var Fm=Sc();function Mm(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(l){function c(){e&&e(l,r),e=null}s?Fm(c):c()}function a(l,c,u){r[l]=u,(--i===0||c)&&o(c)}i?n?n.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,f){a(c,u,f)})}):o(null),s=!1}});var hs=g(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var hi=process.versions.node.split(".");if(hi[0]===void 0||hi[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Qc=Number.parseInt(hi[0],10),qm=Number.parseInt(hi[1],10),Tc=10,jm=10,$m=Qc>Tc,Hm=Qc===Tc&&qm>=jm;pi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=$m||Hm});var Oc=g(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.createDirentFromStats=void 0;var ps=class{constructor(e,r){this.name=e,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 Um(t,e){return new ps(t,e)}di.createDirentFromStats=Um});var ds=g(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.fs=void 0;var Gm=Oc();Ai.fs=Gm});var As=g(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.joinPathSegments=void 0;function Km(t,e,r){return t.endsWith(r)?t+e:t+r+e}gi.joinPathSegments=Km});var Nc=g(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.readdir=et.readdirWithFileTypes=et.read=void 0;var Jm=pt(),Ic=Rc(),Vm=hs(),kc=ds(),Dc=As();function Wm(t,e,r){if(!e.stats&&Vm.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Lc(t,e,r);return}Pc(t,e,r)}et.read=Wm;function Lc(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){mi(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:Dc.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){gs(r,s);return}let o=s.map(a=>Ym(a,e));Ic(o,(a,l)=>{if(a!==null){mi(r,a);return}gs(r,l)})})}et.readdirWithFileTypes=Lc;function Ym(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=kc.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Pc(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){mi(r,i);return}let s=n.map(o=>{let a=Dc.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{Jm.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let f={name:o,path:a,dirent:kc.fs.createDirentFromStats(o,u)};e.stats&&(f.stats=u),l(null,f)})}});Ic(s,(o,a)=>{if(o!==null){mi(r,o);return}gs(r,a)})})}et.readdir=Pc;function mi(t,e){t(e)}function gs(t,e){t(null,e)}});var $c=g(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.readdir=tt.readdirWithFileTypes=tt.read=void 0;var Xm=pt(),Zm=hs(),Fc=ds(),Mc=As();function zm(t,e){return!e.stats&&Zm.IS_SUPPORT_READDIR_WITH_FILE_TYPES?qc(t,e):jc(t,e)}tt.read=zm;function qc(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Mc.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Fc.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}tt.readdirWithFileTypes=qc;function jc(t,e){return e.fs.readdirSync(t).map(i=>{let n=Mc.joinPathSegments(t,i,e.pathSegmentSeparator),s=Xm.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Fc.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}tt.readdir=jc});var Hc=g(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.createFileSystemAdapter=rt.FILE_SYSTEM_ADAPTER=void 0;var Pt=T("fs");rt.FILE_SYSTEM_ADAPTER={lstat:Pt.lstat,stat:Pt.stat,lstatSync:Pt.lstatSync,statSync:Pt.statSync,readdir:Pt.readdir,readdirSync:Pt.readdirSync};function e_(t){return t===void 0?rt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},rt.FILE_SYSTEM_ADAPTER),t)}rt.createFileSystemAdapter=e_});var Uc=g(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});var t_=T("path"),r_=pt(),i_=Hc(),ms=class{constructor(e={}){this._options=e,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(e,r){return e??r}};_s.default=ms});var _i=g(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.Settings=it.scandirSync=it.scandir=void 0;var Gc=Nc(),n_=$c(),Es=Uc();it.Settings=Es.default;function s_(t,e,r){if(typeof e=="function"){Gc.read(t,ys(),e);return}Gc.read(t,ys(e),r)}it.scandir=s_;function o_(t,e){let r=ys(e);return n_.read(t,r)}it.scandirSync=o_;function ys(t={}){return t instanceof Es.default?t:new Es.default(t)}});var Jc=g((tx,Kc)=>{"use strict";function a_(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}Kc.exports=a_});var Wc=g((rx,bs)=>{"use strict";var l_=Jc();function Vc(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=l_(u_),n=null,s=null,o=0,a=null,l={push:m,drain:Se,saturated:Se,pause:u,paused:!1,concurrency:r,running:c,resume:C,idle:p,length:f,getQueue:h,unshift:v,empty:Se,kill:N,killAndDrain:E,error:I};return l;function c(){return o}function u(){l.paused=!0}function f(){for(var y=n,k=0;y;)y=y.next,k++;return k}function h(){for(var y=n,k=[];y;)k.push(y.value),y=y.next;return k}function C(){if(l.paused){l.paused=!1;for(var y=0;y<l.concurrency;y++)o++,x()}}function p(){return o===0&&l.length()===0}function m(y,k){var S=i.get();S.context=t,S.release=x,S.value=y,S.callback=k||Se,S.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=S,s=S):(n=S,s=S,l.saturated()):(o++,e.call(t,S.value,S.worked))}function v(y,k){var S=i.get();S.context=t,S.release=x,S.value=y,S.callback=k||Se,o===l.concurrency||l.paused?n?(S.next=n,n=S):(n=S,s=S,l.saturated()):(o++,e.call(t,S.value,S.worked))}function x(y){y&&i.release(y);var k=n;k?l.paused?o--:(s===n&&(s=null),n=k.next,k.next=null,e.call(t,k.value,k.worked),s===null&&l.empty()):--o===0&&l.drain()}function N(){n=null,s=null,l.drain=Se}function E(){n=null,s=null,l.drain(),l.drain=Se}function I(y){a=y}}function Se(){}function u_(){this.value=null,this.callback=Se,this.next=null,this.release=Se,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Se,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function c_(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(u,f){e.call(this,u).then(function(h){f(null,h)},f)}var n=Vc(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var f=new Promise(function(h,C){s(u,function(p,m){if(p){C(p);return}h(m)})});return f.catch(Se),f}function l(u){var f=new Promise(function(h,C){o(u,function(p,m){if(p){C(p);return}h(m)})});return f.catch(Se),f}function c(){if(n.idle())return new Promise(function(h){h()});var u=n.drain,f=new Promise(function(h){n.drain=function(){u(),h()}});return f}}bs.exports=Vc;bs.exports.promise=c_});var Ei=g(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.joinPathSegments=Me.replacePathSegmentSeparator=Me.isAppliedFilter=Me.isFatalError=void 0;function f_(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Me.isFatalError=f_;function h_(t,e){return t===null||t(e)}Me.isAppliedFilter=h_;function p_(t,e){return t.split(/[/\\]/).join(e)}Me.replacePathSegmentSeparator=p_;function d_(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Me.joinPathSegments=d_});var xs=g(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});var A_=Ei(),Cs=class{constructor(e,r){this._root=e,this._settings=r,this._root=A_.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};vs.default=Cs});var Bs=g(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});var g_=T("events"),m_=_i(),__=Wc(),yi=Ei(),E_=xs(),ws=class extends E_.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=m_.scandir,this._emitter=new g_.EventEmitter,this._queue=__(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!yi.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=yi.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),yi.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&yi.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ss.default=ws});var Yc=g(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});var y_=Bs(),Rs=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new y_.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{b_(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{C_(e,this._storage)}),this._reader.read()}};Qs.default=Rs;function b_(t,e){t(e)}function C_(t,e){t(null,e)}});var Xc=g(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var v_=T("stream"),x_=Bs(),Ts=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new x_.default(this._root,this._settings),this._stream=new v_.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Os.default=Ts});var Zc=g(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var w_=_i(),bi=Ei(),S_=xs(),Is=class extends S_.default{constructor(){super(...arguments),this._scandir=w_.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(bi.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=bi.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),bi.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&bi.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};ks.default=Is});var zc=g(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var B_=Zc(),Ds=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new B_.default(this._root,this._settings)}read(){return this._reader.read()}};Ls.default=Ds});var ef=g(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var R_=T("path"),Q_=_i(),Ps=class{constructor(e={}){this._options=e,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,R_.sep),this.fsScandirSettings=new Q_.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};Ns.default=Ps});var vi=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.Settings=qe.walkStream=qe.walkSync=qe.walk=void 0;var tf=Yc(),T_=Xc(),O_=zc(),Fs=ef();qe.Settings=Fs.default;function I_(t,e,r){if(typeof e=="function"){new tf.default(t,Ci()).read(e);return}new tf.default(t,Ci(e)).read(r)}qe.walk=I_;function k_(t,e){let r=Ci(e);return new O_.default(t,r).read()}qe.walkSync=k_;function D_(t,e){let r=Ci(e);return new T_.default(t,r).read()}qe.walkStream=D_;function Ci(t={}){return t instanceof Fs.default?t:new Fs.default(t)}});var xi=g(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var L_=T("path"),P_=pt(),rf=Ge(),Ms=class{constructor(e){this._settings=e,this._fsStatSettings=new P_.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return L_.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:rf.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!rf.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};qs.default=Ms});var Hs=g($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var N_=T("stream"),F_=pt(),M_=vi(),q_=xi(),js=class extends q_.default{constructor(){super(...arguments),this._walkStream=M_.walkStream,this._stat=F_.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new N_.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&n.push(l),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};$s.default=js});var nf=g(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var j_=vi(),$_=xi(),H_=Hs(),Us=class extends $_.default{constructor(){super(...arguments),this._walkAsync=j_.walk,this._readerStream=new H_.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};Gs.default=Us});var sf=g(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var Nt=Ge(),Ks=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Nt.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return Nt.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Nt.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Nt.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Nt.array.splitWhen(e,r=>r.dynamic&&Nt.pattern.hasGlobStar(r.pattern))}};Js.default=Ks});var of=g(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var U_=sf(),Vs=class extends U_.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Ws.default=Vs});var af=g(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var wi=Ge(),G_=of(),Ys=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new G_.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(wi.pattern.isAffectDepthOfReadingPattern);return wi.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=wi.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!wi.pattern.matchAny(e,r)}};Xs.default=Ys});var lf=g(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var dt=Ge(),Zs=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=dt.pattern.convertPatternsToRe(e,this._micromatchOptions),n=dt.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=dt.path.makeAbsolute(this._settings.cwd,e);return dt.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=dt.path.removeLeadingDotSegment(e),s=dt.pattern.matchAny(n,r);return!s&&i?dt.pattern.matchAny(n+"/",r):s}};zs.default=Zs});var uf=g(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});var K_=Ge(),eo=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return K_.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};to.default=eo});var ff=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});var cf=Ge(),ro=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=cf.path.makeAbsolute(this._settings.cwd,r),r=cf.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};io.default=ro});var Si=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});var J_=T("path"),V_=af(),W_=lf(),Y_=uf(),X_=ff(),no=class{constructor(e){this._settings=e,this.errorFilter=new Y_.default(this._settings),this.entryFilter=new W_.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new V_.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new X_.default(this._settings)}_getRootDirectory(e){return J_.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.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}}};so.default=no});var hf=g(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var Z_=nf(),z_=Si(),oo=class extends z_.default{constructor(){super(...arguments),this._reader=new Z_.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};ao.default=oo});var pf=g(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});var eE=T("stream"),tE=Hs(),rE=Si(),lo=class extends rE.default{constructor(){super(...arguments),this._reader=new tE.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new eE.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};uo.default=lo});var df=g(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});var iE=pt(),nE=vi(),sE=xi(),co=class extends sE.default{constructor(){super(...arguments),this._walkSync=nE.walkSync,this._statSync=iE.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};fo.default=co});var Af=g(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});var oE=df(),aE=Si(),ho=class extends aE.default{constructor(){super(...arguments),this._reader=new oE.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};po.default=ho});var gf=g(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ft=T("fs"),lE=T("os"),uE=Math.max(lE.cpus().length,1);Mt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ft.lstat,lstatSync:Ft.lstatSync,stat:Ft.stat,statSync:Ft.statSync,readdir:Ft.readdir,readdirSync:Ft.readdirSync};var Ao=class{constructor(e={}){this._options=e,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,uE),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(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Mt.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Mt.default=Ao});var Bi=g((Bx,Ef)=>{"use strict";var mf=Ac(),_f=mc(),cE=hf(),fE=pf(),hE=Af(),go=gf(),At=Ge();async function mo(t,e){qt(t);let r=_o(t,cE.default,e),i=await Promise.all(r);return At.array.flatten(i)}(function(t){function e(o,a){qt(o);let l=_o(o,hE.default,a);return At.array.flatten(l)}t.sync=e;function r(o,a){qt(o);let l=_o(o,fE.default,a);return At.stream.merge(l)}t.stream=r;function i(o,a){qt(o);let l=_f.transform([].concat(o)),c=new go.default(a);return mf.generate(l,c)}t.generateTasks=i;function n(o,a){qt(o);let l=new go.default(a);return At.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return qt(o),At.path.escape(o)}t.escapePath=s})(mo||(mo={}));function _o(t,e,r){let i=_f.transform([].concat(t)),n=new go.default(r),s=mf.generate(i,n),o=new e(n);return s.map(o.read,o)}function qt(t){if(![].concat(t).every(i=>At.string.isString(i)&&!At.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Ef.exports=mo});var bf=g((Rx,Eo)=>{"use strict";var yf=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Eo.exports=yf;Eo.exports.default=yf});var vf=g((Qx,Qi)=>{"use strict";var pE=bf(),Ri=new WeakMap,Cf=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(Ri.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return pE(s,t),Ri.set(s,i),s};Qi.exports=Cf;Qi.exports.default=Cf;Qi.exports.callCount=t=>{if(!Ri.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ri.get(t)}});var xf=g((Tx,Ti)=>{Ti.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ti.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ti.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Qf=g((Ox,Ht)=>{var X=global.process,gt=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};gt(X)?(wf=T("assert"),jt=xf(),Sf=/^win/i.test(X.platform),gr=T("events"),typeof gr!="function"&&(gr=gr.EventEmitter),X.__signal_exit_emitter__?le=X.__signal_exit_emitter__:(le=X.__signal_exit_emitter__=new gr,le.count=0,le.emitted={}),le.infinite||(le.setMaxListeners(1/0),le.infinite=!0),Ht.exports=function(t,e){if(!gt(global.process))return function(){};wf.equal(typeof t,"function","a callback must be provided for exit handler"),$t===!1&&yo();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){le.removeListener(r,t),le.listeners("exit").length===0&&le.listeners("afterexit").length===0&&Oi()};return le.on(r,t),i},Oi=function(){!$t||!gt(global.process)||($t=!1,jt.forEach(function(e){try{X.removeListener(e,Ii[e])}catch{}}),X.emit=ki,X.reallyExit=bo,le.count-=1)},Ht.exports.unload=Oi,mt=function(e,r,i){le.emitted[e]||(le.emitted[e]=!0,le.emit(e,r,i))},Ii={},jt.forEach(function(t){Ii[t]=function(){if(gt(global.process)){var r=X.listeners(t);r.length===le.count&&(Oi(),mt("exit",null,t),mt("afterexit",null,t),Sf&&t==="SIGHUP"&&(t="SIGINT"),X.kill(X.pid,t))}}}),Ht.exports.signals=function(){return jt},$t=!1,yo=function(){$t||!gt(global.process)||($t=!0,le.count+=1,jt=jt.filter(function(e){try{return X.on(e,Ii[e]),!0}catch{return!1}}),X.emit=Rf,X.reallyExit=Bf)},Ht.exports.load=yo,bo=X.reallyExit,Bf=function(e){gt(global.process)&&(X.exitCode=e||0,mt("exit",X.exitCode,null),mt("afterexit",X.exitCode,null),bo.call(X,X.exitCode))},ki=X.emit,Rf=function(e,r){if(e==="exit"&>(global.process)){r!==void 0&&(X.exitCode=r);var i=ki.apply(this,arguments);return mt("exit",X.exitCode,null),mt("afterexit",X.exitCode,null),i}else return ki.apply(this,arguments)}):Ht.exports=function(){return function(){}};var wf,jt,Sf,gr,le,Oi,mt,Ii,$t,yo,bo,Bf,ki,Rf});var Df=g((Nx,gE)=>{gE.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},dwarfFortress:{interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}});var vo=g((Fx,Pf)=>{"use strict";var Li=Object.assign({},Df()),Lf=Object.keys(Li);Object.defineProperty(Li,"random",{get(){let t=Math.floor(Math.random()*Lf.length),e=Lf[t];return Li[e]}});Pf.exports=Li});var Nf=g((Jx,Pi)=>{var yE=function(){"use strict";function t(o,a,l,c){var u;typeof a=="object"&&(l=a.depth,c=a.prototype,u=a.filter,a=a.circular);var f=[],h=[],C=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function p(m,v){if(m===null)return null;if(v==0)return m;var x,N;if(typeof m!="object")return m;if(t.__isArray(m))x=[];else if(t.__isRegExp(m))x=new RegExp(m.source,s(m)),m.lastIndex&&(x.lastIndex=m.lastIndex);else if(t.__isDate(m))x=new Date(m.getTime());else{if(C&&Buffer.isBuffer(m))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(m.length):x=new Buffer(m.length),m.copy(x),x;typeof c>"u"?(N=Object.getPrototypeOf(m),x=Object.create(N)):(x=Object.create(c),N=c)}if(a){var E=f.indexOf(m);if(E!=-1)return h[E];f.push(m),h.push(x)}for(var I in m){var y;N&&(y=Object.getOwnPropertyDescriptor(N,I)),!(y&&y.set==null)&&(x[I]=p(m[I],v-1))}return x}return p(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function n(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=n;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof Pi=="object"&&Pi.exports&&(Pi.exports=yE)});var Mf=g((Vx,Ff)=>{var bE=Nf();Ff.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=bE(e[r]))}),t}});var jf=g((Wx,qf)=>{qf.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Gf=g((Yx,So)=>{"use strict";var CE=Mf(),Er=jf(),Hf={nul:0,control:0};So.exports=function(e){return Uf(e,Hf)};So.exports.config=function(t){return t=CE(t||{},Hf),function(r){return Uf(r,t)}};function Uf(t,e){if(typeof t!="string")return $f(t,e);for(var r=0,i=0;i<t.length;i++){var n=$f(t.charCodeAt(i),e);if(n<0)return-1;r+=n}return r}function $f(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:vE(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function vE(t){var e=0,r=Er.length-1,i;if(t<Er[0][0]||t>Er[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>Er[i][1])e=i+1;else if(t<Er[i][0])r=i-1;else return!0;return!1}});var Ro=g((Zx,Kf)=>{Kf.exports=T("stream")});var Zf=g((zx,Xf)=>{"use strict";function Jf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Vf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jf(Object(r),!0).forEach(function(i){xE(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jf(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function xE(t,e,r){return e=Yf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wf(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Yf(i.key),i)}}function SE(t,e,r){return e&&Wf(t.prototype,e),r&&Wf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yf(t){var e=BE(t,"string");return typeof e=="symbol"?e:String(e)}function BE(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var RE=T("buffer"),Ni=RE.Buffer,QE=T("util"),Qo=QE.inspect,TE=Qo&&Qo.custom||"inspect";function OE(t,e,r){Ni.prototype.copy.call(t,e,r)}Xf.exports=function(){function t(){wE(this,t),this.head=null,this.tail=null,this.length=0}return SE(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return Ni.alloc(0);for(var i=Ni.allocUnsafe(r>>>0),n=this.head,s=0;n;)OE(n.data,i,s),s+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,s=i.data;for(r-=s.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++n}return this.length-=n,s}},{key:"_getBuffer",value:function(r){var i=Ni.allocUnsafe(r),n=this.head,s=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,a),r-=a,r===0){a===o.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++s}return this.length-=s,i}},{key:TE,value:function(r,i){return Qo(this,Vf(Vf({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var Oo=g((ew,eh)=>{"use strict";function IE(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(To,this,t)):process.nextTick(To,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Fi,r):(r._writableState.errorEmitted=!0,process.nextTick(zf,r,s)):process.nextTick(zf,r,s):e?(process.nextTick(Fi,r),e(s)):process.nextTick(Fi,r)}),this)}function zf(t,e){To(t,e),Fi(t)}function Fi(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function kE(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function To(t,e){t.emit("error",e)}function DE(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}eh.exports={destroy:IE,undestroy:kE,errorOrDestroy:DE}});var nt=g((tw,ih)=>{"use strict";var rh={};function Be(t,e,r){r||(r=Error);function i(s,o,a){return typeof e=="string"?e:e(s,o,a)}class n extends r{constructor(o,a,l){super(i(o,a,l))}}n.prototype.name=r.name,n.prototype.code=t,rh[t]=n}function th(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(i=>String(i)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function LE(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function PE(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function NE(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}Be("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Be("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&LE(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let n;if(PE(t," argument"))n=`The ${t} ${i} ${th(e,"type")}`;else{let s=NE(t,".")?"property":"argument";n=`The "${t}" ${s} ${i} ${th(e,"type")}`}return n+=`. Received type ${typeof r}`,n},TypeError);Be("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Be("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Be("ERR_STREAM_PREMATURE_CLOSE","Premature close");Be("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Be("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Be("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Be("ERR_STREAM_WRITE_AFTER_END","write after end");Be("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Be("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Be("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ih.exports.codes=rh});var Io=g((rw,nh)=>{"use strict";var FE=nt().codes.ERR_INVALID_OPT_VALUE;function ME(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function qE(t,e,r,i){var n=ME(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var s=i?r:"highWaterMark";throw new FE(s,n)}return Math.floor(n)}return t.objectMode?16:16*1024}nh.exports={getHighWaterMark:qE}});var sh=g((iw,ko)=>{typeof Object.create=="function"?ko.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ko.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var _t=g((nw,Lo)=>{try{if(Do=T("util"),typeof Do.inherits!="function")throw"";Lo.exports=Do.inherits}catch{Lo.exports=sh()}var Do});var ah=g((sw,oh)=>{oh.exports=T("util").deprecate});var Fo=g((ow,ph)=>{"use strict";ph.exports=te;function uh(t){var e=this;this.next=null,this.entry=null,this.finish=function(){p0(e,t)}}var Gt;te.WritableState=br;var jE={deprecate:ah()},ch=Ro(),qi=T("buffer").Buffer,$E=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function HE(t){return qi.from(t)}function UE(t){return qi.isBuffer(t)||t instanceof $E}var No=Oo(),GE=Io(),KE=GE.getHighWaterMark,st=nt().codes,JE=st.ERR_INVALID_ARG_TYPE,VE=st.ERR_METHOD_NOT_IMPLEMENTED,WE=st.ERR_MULTIPLE_CALLBACK,YE=st.ERR_STREAM_CANNOT_PIPE,XE=st.ERR_STREAM_DESTROYED,ZE=st.ERR_STREAM_NULL_VALUES,zE=st.ERR_STREAM_WRITE_AFTER_END,e0=st.ERR_UNKNOWN_ENCODING,Kt=No.errorOrDestroy;_t()(te,ch);function t0(){}function br(t,e,r){Gt=Gt||Et(),t=t||{},typeof r!="boolean"&&(r=e instanceof Gt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=KE(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){l0(e,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new uh(this)}br.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(br.prototype,"buffer",{get:jE.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Mi;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Mi=Function.prototype[Symbol.hasInstance],Object.defineProperty(te,Symbol.hasInstance,{value:function(e){return Mi.call(this,e)?!0:this!==te?!1:e&&e._writableState instanceof br}})):Mi=function(e){return e instanceof this};function te(t){Gt=Gt||Et();var e=this instanceof Gt;if(!e&&!Mi.call(te,this))return new te(t);this._writableState=new br(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),ch.call(this)}te.prototype.pipe=function(){Kt(this,new YE)};function r0(t,e){var r=new zE;Kt(t,r),process.nextTick(e,r)}function i0(t,e,r,i){var n;return r===null?n=new ZE:typeof r!="string"&&!e.objectMode&&(n=new JE("chunk",["string","Buffer"],r)),n?(Kt(t,n),process.nextTick(i,n),!1):!0}te.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&UE(t);return s&&!qi.isBuffer(t)&&(t=HE(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=t0),i.ending?r0(this,r):(s||i0(this,i,t,r))&&(i.pendingcb++,n=s0(this,i,s,t,e,r)),n};te.prototype.cork=function(){this._writableState.corked++};te.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&fh(this,t))};te.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new e0(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(te.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function n0(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=qi.from(e,r)),e}Object.defineProperty(te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function s0(t,e,r,i,n,s){if(!r){var o=n0(e,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Po(t,e,!1,a,i,n,s);return l}function Po(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new XE("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function o0(t,e,r,i,n){--e.pendingcb,r?(process.nextTick(n,i),process.nextTick(yr,t,e),t._writableState.errorEmitted=!0,Kt(t,i)):(n(i),t._writableState.errorEmitted=!0,Kt(t,i),yr(t,e))}function a0(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function l0(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new WE;if(a0(r),e)o0(t,r,i,e,n);else{var s=hh(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&fh(t,r),i?process.nextTick(lh,t,r,s,n):lh(t,r,s,n)}}function lh(t,e,r,i){r||u0(t,e),e.pendingcb--,i(),yr(t,e)}function u0(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function fh(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,Po(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new uh(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,f=e.objectMode?1:l.length;if(Po(t,e,!1,f,l,c,u),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}te.prototype._write=function(t,e,r){r(new VE("_write()"))};te.prototype._writev=null;te.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||h0(this,i,r),this};Object.defineProperty(te.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function hh(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function c0(t,e){t._final(function(r){e.pendingcb--,r&&Kt(t,r),e.prefinished=!0,t.emit("prefinish"),yr(t,e)})}function f0(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(c0,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function yr(t,e){var r=hh(e);if(r&&(f0(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function h0(t,e,r){e.ending=!0,yr(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function p0(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(te.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});te.prototype.destroy=No.destroy;te.prototype._undestroy=No.undestroy;te.prototype._destroy=function(t,e){e(t)}});var Et=g((aw,Ah)=>{"use strict";var d0=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Ah.exports=je;var dh=jo(),qo=Fo();_t()(je,dh);for(Mo=d0(qo.prototype),ji=0;ji<Mo.length;ji++)$i=Mo[ji],je.prototype[$i]||(je.prototype[$i]=qo.prototype[$i]);var Mo,$i,ji;function je(t){if(!(this instanceof je))return new je(t);dh.call(this,t),qo.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",A0)))}Object.defineProperty(je.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(je.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(je.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function A0(){this._writableState.ended||process.nextTick(g0,this)}function g0(t){t.end()}Object.defineProperty(je.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var _h=g(($o,mh)=>{var Hi=T("buffer"),Je=Hi.Buffer;function gh(t,e){for(var r in t)e[r]=t[r]}Je.from&&Je.alloc&&Je.allocUnsafe&&Je.allocUnsafeSlow?mh.exports=Hi:(gh(Hi,$o),$o.Buffer=Jt);function Jt(t,e,r){return Je(t,e,r)}gh(Je,Jt);Jt.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Je(t,e,r)};Jt.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Je(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Jt.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Je(t)};Jt.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Hi.SlowBuffer(t)}});var Go=g(yh=>{"use strict";var Uo=_h().Buffer,Eh=Uo.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function m0(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function _0(t){var e=m0(t);if(typeof e!="string"&&(Uo.isEncoding===Eh||!Eh(t)))throw new Error("Unknown encoding: "+t);return e||t}yh.StringDecoder=Cr;function Cr(t){this.encoding=_0(t);var e;switch(this.encoding){case"utf16le":this.text=x0,this.end=w0,e=4;break;case"utf8":this.fillLast=b0,e=4;break;case"base64":this.text=S0,this.end=B0,e=3;break;default:this.write=R0,this.end=Q0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Uo.allocUnsafe(e)}Cr.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Cr.prototype.end=v0;Cr.prototype.text=C0;Cr.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Ho(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function E0(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Ho(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Ho(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Ho(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function y0(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function b0(t){var e=this.lastTotal-this.lastNeed,r=y0(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function C0(t,e){var r=E0(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function v0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function x0(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function w0(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function S0(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function B0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function R0(t){return t.toString(this.encoding)}function Q0(t){return t&&t.length?this.write(t):""}});var Ui=g((uw,vh)=>{"use strict";var bh=nt().codes.ERR_STREAM_PREMATURE_CLOSE;function T0(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i)}}}function O0(){}function I0(t){return t.setHeader&&typeof t.abort=="function"}function Ch(t,e,r){if(typeof e=="function")return Ch(t,null,e);e||(e={}),r=T0(r||O0);var i=e.readable||e.readable!==!1&&t.readable,n=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){n=!1,o=!0,i||r.call(t)},l=t._readableState&&t._readableState.endEmitted,c=function(){i=!1,l=!0,n||r.call(t)},u=function(p){r.call(t,p)},f=function(){var p;if(i&&!l)return(!t._readableState||!t._readableState.ended)&&(p=new bh),r.call(t,p);if(n&&!o)return(!t._writableState||!t._writableState.ended)&&(p=new bh),r.call(t,p)},h=function(){t.req.on("finish",a)};return I0(t)?(t.on("complete",a),t.on("abort",f),t.req?h():t.on("request",h)):n&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",c),t.on("finish",a),e.error!==!1&&t.on("error",u),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",h),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",c),t.removeListener("error",u),t.removeListener("close",f)}}vh.exports=Ch});var wh=g((cw,xh)=>{"use strict";var Gi;function ot(t,e,r){return e=k0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function k0(t){var e=D0(t,"string");return typeof e=="symbol"?e:String(e)}function D0(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var L0=Ui(),at=Symbol("lastResolve"),yt=Symbol("lastReject"),vr=Symbol("error"),Ki=Symbol("ended"),bt=Symbol("lastPromise"),Ko=Symbol("handlePromise"),Ct=Symbol("stream");function lt(t,e){return{value:t,done:e}}function P0(t){var e=t[at];if(e!==null){var r=t[Ct].read();r!==null&&(t[bt]=null,t[at]=null,t[yt]=null,e(lt(r,!1)))}}function N0(t){process.nextTick(P0,t)}function F0(t,e){return function(r,i){t.then(function(){if(e[Ki]){r(lt(void 0,!0));return}e[Ko](r,i)},i)}}var M0=Object.getPrototypeOf(function(){}),q0=Object.setPrototypeOf((Gi={get stream(){return this[Ct]},next:function(){var e=this,r=this[vr];if(r!==null)return Promise.reject(r);if(this[Ki])return Promise.resolve(lt(void 0,!0));if(this[Ct].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[vr]?a(e[vr]):o(lt(void 0,!0))})});var i=this[bt],n;if(i)n=new Promise(F0(i,this));else{var s=this[Ct].read();if(s!==null)return Promise.resolve(lt(s,!1));n=new Promise(this[Ko])}return this[bt]=n,n}},ot(Gi,Symbol.asyncIterator,function(){return this}),ot(Gi,"return",function(){var e=this;return new Promise(function(r,i){e[Ct].destroy(null,function(n){if(n){i(n);return}r(lt(void 0,!0))})})}),Gi),M0),j0=function(e){var r,i=Object.create(q0,(r={},ot(r,Ct,{value:e,writable:!0}),ot(r,at,{value:null,writable:!0}),ot(r,yt,{value:null,writable:!0}),ot(r,vr,{value:null,writable:!0}),ot(r,Ki,{value:e._readableState.endEmitted,writable:!0}),ot(r,Ko,{value:function(s,o){var a=i[Ct].read();a?(i[bt]=null,i[at]=null,i[yt]=null,s(lt(a,!1))):(i[at]=s,i[yt]=o)},writable:!0}),r));return i[bt]=null,L0(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[yt];s!==null&&(i[bt]=null,i[at]=null,i[yt]=null,s(n)),i[vr]=n;return}var o=i[at];o!==null&&(i[bt]=null,i[at]=null,i[yt]=null,o(lt(void 0,!0))),i[Ki]=!0}),e.on("readable",N0.bind(null,i)),i};xh.exports=j0});var Qh=g((fw,Rh)=>{"use strict";function Sh(t,e,r,i,n,s,o){try{var a=t[s](o),l=a.value}catch(c){r(c);return}a.done?e(l):Promise.resolve(l).then(i,n)}function $0(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function o(l){Sh(s,i,n,o,a,"next",l)}function a(l){Sh(s,i,n,o,a,"throw",l)}o(void 0)})}}function Bh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function H0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Bh(Object(r),!0).forEach(function(i){U0(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bh(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function U0(t,e,r){return e=G0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function G0(t){var e=K0(t,"string");return typeof e=="symbol"?e:String(e)}function K0(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var J0=nt().codes.ERR_INVALID_ARG_TYPE;function V0(t,e,r){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new J0("iterable",["Iterable"],e);var n=new t(H0({objectMode:!0},r)),s=!1;n._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=$0(function*(){try{var l=yield i.next(),c=l.value,u=l.done;u?n.push(null):n.push(yield c)?o():s=!1}catch(f){n.destroy(f)}}),a.apply(this,arguments)}return n}Rh.exports=V0});var jo=g((pw,Mh)=>{"use strict";Mh.exports=$;var Vt;$.ReadableState=kh;var hw=T("events").EventEmitter,Ih=function(e,r){return e.listeners(r).length},wr=Ro(),Ji=T("buffer").Buffer,W0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Y0(t){return Ji.from(t)}function X0(t){return Ji.isBuffer(t)||t instanceof W0}var Jo=T("util"),M;Jo&&Jo.debuglog?M=Jo.debuglog("stream"):M=function(){};var Z0=Zf(),ea=Oo(),z0=Io(),ey=z0.getHighWaterMark,Vi=nt().codes,ty=Vi.ERR_INVALID_ARG_TYPE,ry=Vi.ERR_STREAM_PUSH_AFTER_EOF,iy=Vi.ERR_METHOD_NOT_IMPLEMENTED,ny=Vi.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Wt,Vo,Wo;_t()($,wr);var xr=ea.errorOrDestroy,Yo=["error","close","destroy","pause","resume"];function sy(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function kh(t,e,r){Vt=Vt||Et(),t=t||{},typeof r!="boolean"&&(r=e instanceof Vt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=ey(this,t,"readableHighWaterMark",r),this.buffer=new Z0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Wt||(Wt=Go().StringDecoder),this.decoder=new Wt(t.encoding),this.encoding=t.encoding)}function $(t){if(Vt=Vt||Et(),!(this instanceof $))return new $(t);var e=this instanceof Vt;this._readableState=new kh(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),wr.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});$.prototype.destroy=ea.destroy;$.prototype._undestroy=ea.undestroy;$.prototype._destroy=function(t,e){e(t)};$.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ji.from(t,e),e=""),i=!0),Dh(this,t,e,!1,i)};$.prototype.unshift=function(t){return Dh(this,t,null,!0,!1)};function Dh(t,e,r,i,n){M("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,ly(t,s);else{var o;if(n||(o=oy(s,e)),o)xr(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ji.prototype&&(e=Y0(e)),i)s.endEmitted?xr(t,new ny):Xo(t,s,e,!0);else if(s.ended)xr(t,new ry);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Xo(t,s,e,!1):zo(t,s)):Xo(t,s,e,!1)}else i||(s.reading=!1,zo(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Xo(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Wi(t)),zo(t,e)}function oy(t,e){var r;return!X0(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new ty("chunk",["string","Buffer","Uint8Array"],e)),r}$.prototype.isPaused=function(){return this._readableState.flowing===!1};$.prototype.setEncoding=function(t){Wt||(Wt=Go().StringDecoder);var e=new Wt(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Th=1073741824;function ay(t){return t>=Th?t=Th:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Oh(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=ay(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}$.prototype.read=function(t){M("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return M("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Zo(this):Wi(this),null;if(t=Oh(t,e),t===0&&e.ended)return e.length===0&&Zo(this),null;var i=e.needReadable;M("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,M("length less than watermark",i)),e.ended||e.reading?(i=!1,M("reading or ended",i)):i&&(M("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Oh(r,e)));var n;return t>0?n=Nh(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Zo(this)),n!==null&&this.emit("data",n),n};function ly(t,e){if(M("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Wi(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Lh(t)))}}function Wi(t){var e=t._readableState;M("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(M("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Lh,t))}function Lh(t){var e=t._readableState;M("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,ta(t)}function zo(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(uy,t,e))}function uy(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(M("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}$.prototype._read=function(t){xr(this,new iy("_read()"))};$.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,M("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:m;i.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(v,x){M("onunpipe"),v===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,u())}function a(){M("onend"),t.end()}var l=cy(r);t.on("drain",l);var c=!1;function u(){M("cleanup"),t.removeListener("close",C),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",h),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",f),c=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(v){M("ondata");var x=t.write(v);M("dest.write",x),x===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Fh(i.pipes,t)!==-1)&&!c&&(M("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(v){M("onerror",v),m(),t.removeListener("error",h),Ih(t,"error")===0&&xr(t,v)}sy(t,"error",h);function C(){t.removeListener("finish",p),m()}t.once("close",C);function p(){M("onfinish"),t.removeListener("close",C),m()}t.once("finish",p);function m(){M("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(M("pipe resume"),r.resume()),t};function cy(t){return function(){var r=t._readableState;M("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Ih(t,"data")&&(r.flowing=!0,ta(t))}}$.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Fh(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};$.prototype.on=function(t,e){var r=wr.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,M("on readable",i.length,i.reading),i.length?Wi(this):i.reading||process.nextTick(fy,this)),r};$.prototype.addListener=$.prototype.on;$.prototype.removeListener=function(t,e){var r=wr.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Ph,this),r};$.prototype.removeAllListeners=function(t){var e=wr.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Ph,this),e};function Ph(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function fy(t){M("readable nexttick read 0"),t.read(0)}$.prototype.resume=function(){var t=this._readableState;return t.flowing||(M("resume"),t.flowing=!t.readableListening,hy(this,t)),t.paused=!1,this};function hy(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(py,t,e))}function py(t,e){M("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),ta(t),e.flowing&&!e.reading&&t.read(0)}$.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ta(t){var e=t._readableState;for(M("flow",e.flowing);e.flowing&&t.read()!==null;);}$.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(M("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(M("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=function(a){return function(){return t[a].apply(t,arguments)}}(n));for(var s=0;s<Yo.length;s++)t.on(Yo[s],this.emit.bind(this,Yo[s]));return this._read=function(o){M("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return Vo===void 0&&(Vo=wh()),Vo(this)});Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});$._fromList=Nh;Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Nh(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Zo(t){var e=t._readableState;M("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(dy,e,t))}function dy(t,e){if(M("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&($.from=function(t,e){return Wo===void 0&&(Wo=Qh()),Wo($,t,e)});function Fh(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var ra=g((dw,jh)=>{"use strict";jh.exports=Ve;var Yi=nt().codes,Ay=Yi.ERR_METHOD_NOT_IMPLEMENTED,gy=Yi.ERR_MULTIPLE_CALLBACK,my=Yi.ERR_TRANSFORM_ALREADY_TRANSFORMING,_y=Yi.ERR_TRANSFORM_WITH_LENGTH_0,Xi=Et();_t()(Ve,Xi);function Ey(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new gy);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Ve(t){if(!(this instanceof Ve))return new Ve(t);Xi.call(this,t),this._transformState={afterTransform:Ey.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",yy)}function yy(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){qh(t,e,r)}):qh(this,null,null)}Ve.prototype.push=function(t,e){return this._transformState.needTransform=!1,Xi.prototype.push.call(this,t,e)};Ve.prototype._transform=function(t,e,r){r(new Ay("_transform()"))};Ve.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Ve.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Ve.prototype._destroy=function(t,e){Xi.prototype._destroy.call(this,t,function(r){e(r)})};function qh(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new _y;if(t._transformState.transforming)throw new my;return t.push(null)}});var Uh=g((Aw,Hh)=>{"use strict";Hh.exports=Sr;var $h=ra();_t()(Sr,$h);function Sr(t){if(!(this instanceof Sr))return new Sr(t);$h.call(this,t)}Sr.prototype._transform=function(t,e,r){r(null,t)}});var Wh=g((gw,Vh)=>{"use strict";var ia;function by(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Jh=nt().codes,Cy=Jh.ERR_MISSING_ARGS,vy=Jh.ERR_STREAM_DESTROYED;function Gh(t){if(t)throw t}function xy(t){return t.setHeader&&typeof t.abort=="function"}function wy(t,e,r,i){i=by(i);var n=!1;t.on("close",function(){n=!0}),ia===void 0&&(ia=Ui()),ia(t,{readable:e,writable:r},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,xy(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new vy("pipe"))}}}function Kh(t){t()}function Sy(t,e){return t.pipe(e)}function By(t){return!t.length||typeof t[t.length-1]!="function"?Gh:t.pop()}function Ry(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=By(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Cy("streams");var n,s=e.map(function(o,a){var l=a<e.length-1,c=a>0;return wy(o,l,c,function(u){n||(n=u),u&&s.forEach(Kh),!l&&(s.forEach(Kh),i(n))})});return e.reduce(Sy)}Vh.exports=Ry});var Yh=g((Re,Rr)=>{var Br=T("stream");process.env.READABLE_STREAM==="disable"&&Br?(Rr.exports=Br.Readable,Object.assign(Rr.exports,Br),Rr.exports.Stream=Br):(Re=Rr.exports=jo(),Re.Stream=Br||Re,Re.Readable=Re,Re.Writable=Fo(),Re.Duplex=Et(),Re.Transform=ra(),Re.PassThrough=Uh(),Re.finished=Ui(),Re.pipeline=Wh())});var zh=g((mw,Zh)=>{"use strict";var{Buffer:ke}=T("buffer"),Xh=Symbol.for("BufferList");function G(t){if(!(this instanceof G))return new G(t);G._init.call(this,t)}G._init=function(e){Object.defineProperty(this,Xh,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};G.prototype._new=function(e){return new G(e)};G.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let n=r+this._bufs[i].length;if(e<n||i===this._bufs.length-1)return[i,e-r];r=n}};G.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let i=0;i<e;i++)r+=this._bufs[i].length;return r};G.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};G.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};G.prototype.copy=function(e,r,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||ke.alloc(0);let s=!!e,o=this._offset(i),a=n-i,l=a,c=s&&r||0,u=o[1];if(i===0&&n===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:ke.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,c),c+=this._bufs[f].length;return e}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(e,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(e=ke.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let h=this._bufs[f].length-u;if(l>h)this._bufs[f].copy(e,c,u),c+=h;else{this._bufs[f].copy(e,c,u,u+l),c+=h;break}l-=h,u&&(u=0)}return e.length>c?e.slice(0,c):e};G.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let i=this._offset(e),n=this._offset(r),s=this._bufs.slice(i[0],n[0]+1);return n[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,n[1]),i[1]!==0&&(s[0]=s[0].slice(i[1])),this._new(s)};G.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};G.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};G.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};G.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(ke.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(ke.from(e));return this};G.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};G.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=ke.from([t]):typeof t=="string"?t=ke.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=ke.from(t.buffer,t.byteOffset,t.byteLength):ke.isBuffer(t)||(t=ke.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let i=this._offset(e),n=i[0],s=i[1];for(;n<this._bufs.length;n++){let o=this._bufs[n];for(;s<o.length;)if(o.length-s>=t.length){let l=o.indexOf(t,s);if(l!==-1)return this._reverseOffset([n,l]);s=o.length-t.length+1}else{let l=this._reverseOffset([n,s]);if(this._match(l,t))return l;s++}s=0}return-1};G.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?G.prototype[r]=function(i,n){return this.slice(i,i+n)[r](0,n)}:G.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)}})(e)})();G.prototype._isBufferList=function(e){return e instanceof G||G.isBufferList(e)};G.isBufferList=function(e){return e!=null&&e[Xh]};Zh.exports=G});var ep=g((_w,Zi)=>{"use strict";var na=Yh().Duplex,Qy=_t(),Qr=zh();function he(t){if(!(this instanceof he))return new he(t);if(typeof t=="function"){this._callback=t;let e=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",e)}),this.on("unpipe",function(i){i.removeListener("error",e)}),t=null}Qr._init.call(this,t),na.call(this)}Qy(he,na);Object.assign(he.prototype,Qr.prototype);he.prototype._new=function(e){return new he(e)};he.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i()};he.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};he.prototype.end=function(e){na.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};he.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};he.prototype._isBufferList=function(e){return e instanceof he||e instanceof Qr||he.isBufferList(e)};he.isBufferList=Qr.isBufferList;Zi.exports=he;Zi.exports.BufferListStream=he;Zi.exports.BufferList=Qr});var Ia=g((jB,Pp)=>{var ln=T("fs"),Lp=T("path"),Hb=T("os");function Ta(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function Oa(t,e){try{return e(t)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",t),!1;throw r}}var Ub={nil:function(t){return t==null},array:function(t){return Array.isArray(t)},emptyObject:function(t){for(var e in t)return!1;return!0},buffer:function(t){return Buffer.isBuffer(t)},regExp:function(t){return Ta(t,"RegExp")},string:function(t){return Ta(t,"String")},func:function(t){return typeof t=="function"},number:function(t){return Ta(t,"Number")},exists:function(t){return ln.existsSync(t)},file:function(t){return Oa(t,function(e){return ln.statSync(e).isFile()})},samePath:function(t,e){return Lp.resolve(t)===Lp.resolve(e)},directory:function(t){return Oa(t,function(e){return ln.statSync(e).isDirectory()})},symbolicLink:function(t){return Oa(t,function(e){return ln.lstatSync(e).isSymbolicLink()})},windows:function(){return Hb.platform()==="win32"}};Pp.exports=Ub});var jp=g(($B,qp)=>{var qr=T("fs"),Np=T("os"),ka=T("path"),un=Ia(),Mr,Gb=Np.tmpdir&&Np.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function Mp(){this.stack=[]}Mp.prototype={create:function(t,e){var r=ka.join(e,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:t}),r},write:function(){for(var t=0;t<arguments.length;++t)qr.writeFileSync(arguments[t]," ")},mkdir:function(){for(var t=0;t<arguments.length;++t)qr.mkdirSync(arguments[t])},cleanup:function(t){try{for(var e;e=this.stack.pop();){var r=e.type,i=e.name;r==="file"&&un.file(i)?qr.unlinkSync(i):r==="dir"&&un.directory(i)&&qr.rmdirSync(i)}}finally{un.func(t)&&t()}}};var Fp=!1;qp.exports=function t(e){if(!un.func(e))return!1;if(Mr!==void 0)return e(Mr);if(!Fp)Fp=!0;else return setTimeout(function(){t(e)},300);var r=new Mp,i=r.create("dir",Gb),n=r.create("dir",i),s=r.create("file",n);r.mkdir(i,n);var o={recursive:!0},a;try{a=qr.watch(i,o)}catch(c){if(c.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return e(Mr=!1);throw c}if(!a)return!1;var l=setTimeout(function(){a.close(),r.cleanup(function(){e(Mr=!1)})},200);a.on("change",function(c,u){ka.basename(s)===ka.basename(u)&&(a.close(),clearTimeout(l),r.cleanup(function(){e(Mr=!0)}))}),r.write(s)}});var Zp=g((HB,Na)=>{var La=T("fs"),jr=T("path"),Hp=T("util"),Up=T("events"),Gp=jp(),U=Ia(),Kb="update",Kp="remove",$p=Symbol("skip");function Jb(t){return t.some(function(e,r,i){return i.indexOf(e)!==r})}function Pa(t){return t.filter(function(e,r,i){return i.indexOf(e)===r})}function Vb(t){return t.reduce(function(e,r){return e.concat(r)},[])}function Wb(t){if(t&&t!=="buffer"&&!Buffer.isEncoding(t))throw new Error("Unknown encoding: "+t)}function Yb(t){return U.func(t)?function(e,r){t(e,!1)&&r()}:U.regExp(t)?function(e,r){t.test(e)&&r()}:function(e,r){r()}}function Xb(t){return t.map(function(e){return U.exists(e)?[Kb,e]:[Kp,e]})}function Zb(t){var e=Pa(t),r=/~$|^\.#|^##$/g,i=t.some(function(s){return r.test(s)});if(i){var n=Jb(t.map(function(s){return s.replace(r,"")}));n&&(e=e.filter(function(s){return U.exists(s)}))}return Xb(e)}function zb(t,e){var r,i=[],n=t.options.encoding,s=t.options.delay;U.number(s)||(s=200);function o(){Zb(i).forEach(function(a){a[1]=Buffer.from(a[1]),n!=="buffer"&&(a[1]=a[1].toString(n)),e.apply(null,a)}),r=null,i=[]}return function(a,l){i.push(l),r||(r=setTimeout(o,s))}}function Jp(){var t={};return function(e){return function(r,i){t[r+i]=[r,i],setTimeout(function(){Object.keys(t).forEach(function(n){e.apply(null,t[n])}),t={}})}}}function Vp(t,e,r=function(){}){U.directory(t)?La.readdir(t,function(i,n){if(i)if(/^(EPERM|EACCES)$/.test(i.code))console.warn("Warning: Cannot access %s.",t);else throw i;else n.forEach(function(s){var o=jr.join(t,s);U.directory(o)&&e(o)}),r()}):r()}function eC(t){var e=0;return function(){return e++,function(){e--,e===0&&t()}}}function tC(){return function(){}}function Wp(t,e){return!U.func(e)||e(t,$p)!==$p}var Yp=Hp.deprecate(function(){},"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function $e(){Up.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}Hp.inherits($e,Up.EventEmitter);$e.prototype.expose=function(){var t={},e=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(i){t[i]=function(){return e[i].apply(e,arguments)}}),t};$e.prototype.isClosed=function(){return this._isClosed};$e.prototype.close=function(t){var e=this;if(t){var r=this.watchers[t];r&&r.close&&(r.close(),delete e.watchers[t]),Vp(t,function(i){e.close(i)})}else Object.keys(e.watchers).forEach(function(i){var n=e.watchers[i];n&&n.close&&n.close()}),this.watchers={};U.emptyObject(e.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(Xp,this)))};$e.prototype.getWatchedPaths=function(t){if(U.func(t)){var e=this;e._isReady?t(Object.keys(e.watchers)):e.on("ready",function(){t(Object.keys(e.watchers))})}};function Da(t){t._isReady||(t._isReady=!0,process.nextTick(function(){t.emit("ready")}))}function Xp(t){t.emit("close")}$e.prototype.add=function(t,e){var r=this;e=e||{fpath:""};var i=jr.resolve(e.fpath);this.watchers[i]=t;var n=function(o,a){if(!r.isClosed()){var l=a;U.nil(l)&&(l=""),l=jr.join(e.fpath,l),e.options.recursive&&Gp(function(c){if(!c){var u=jr.resolve(l);if(!U.exists(l))r.close(u);else{var f=U.directory(l)&&!r.watchers[u]&&Wp(l,e.options.filter);f&&r.watchDirectory(l,e.options)}}}),s(o,l)}},s=zb(e,function(o,a){if(e.compareName)e.compareName(a)&&r.emit("change",o,a);else{var l=Yb(e.options.filter);l(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});t.on("error",function(o){r.isClosed()||(U.windows()&&o.code==="EPERM"?(t.emit("change",Kp,e.fpath&&""),r.flag="windows-error",r.close(i)):r.emit("error",o))}),t.on("change",n)};$e.prototype.watchFile=function(t,e,r){var i=jr.join(t,"../"),n=Object.assign({},e,{filter:null,encoding:"utf8"});delete n.recursive;var s=La.watch(i,n);this.add(s,{type:"file",fpath:i,options:Object.assign({},n,{encoding:e.encoding}),compareName:function(o){return U.samePath(o,t)}}),U.func(r)&&(r.length===1&&Yp(),this.on("change",r))};$e.prototype.watchDirectory=function(t,e,r,i=tC){var n=this,s=i();Gp(function(o){e.recursive=!!e.recursive;var a=Object.assign({},e,{encoding:"utf8"});if(o||delete a.recursive,n._isClosed)return s(),n.close();var l=La.watch(t,a);n.add(l,{type:"dir",fpath:t,options:e}),U.func(r)&&(r.length===1&&Yp(),n.on("change",r)),e.recursive&&!o&&Vp(t,function(c){Wp(c,e.filter)&&n.watchDirectory(c,e,null,i)},i()),s()})};function rC(t){var e=new $e,r=Jp(),i=t.length;return t.forEach(function(n){n.on("change",r(function(s,o){e.emit("change",s,o)})),n.on("error",function(s){e.emit("error",s)}),n.on("ready",function(){--i||Da(e)})}),e.close=function(){t.forEach(function(n){n.close()}),process.nextTick(Xp,e)},e.getWatchedPaths=function(n){if(U.func(n)){var s=t.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=Pa(Vb(o));n(a)})}},e.expose()}function cn(t,e,r){var i=new $e;if(U.buffer(t)&&(t=t.toString()),!U.array(t)&&!U.exists(t)&&i.emit("error",new Error(t+" does not exist.")),U.string(e)&&(e={encoding:e}),U.func(e)&&(r=e,e={}),arguments.length<2&&(e={}),e.encoding?Wb(e.encoding):e.encoding="utf8",U.array(t)){if(t.length===1)return cn(t[0],e,r);var n=Jp();return rC(Pa(t).map(function(o){var a=cn(o,e);return U.func(r)&&a.on("change",n(r)),a}))}if(U.file(t))i.watchFile(t,e,r),Da(i);else if(U.directory(t)){var s=eC(function(){Da(i)});i.watchDirectory(t,e,r,s)}return i.expose()}Na.exports=cn;Na.exports.default=cn});var Ma=(t=0)=>e=>`\x1B[${e+t}m`,qa=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,ja=(t=0)=>(e,r,i)=>`\x1B[${38+t};2;${e};${r};${i}m`,J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},$a=Object.keys(J.modifier),dn=Object.keys(J.color),An=Object.keys(J.bgColor),Ha=[...dn,...An];function cd(){let t=new Map;for(let[e,r]of Object.entries(J)){for(let[i,n]of Object.entries(r))J[i]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[i]=J[i],t.set(n[0],n[1]);Object.defineProperty(J,e,{value:r,enumerable:!1})}return Object.defineProperty(J,"codes",{value:t,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=Ma(),J.color.ansi256=qa(),J.color.ansi16m=ja(),J.bgColor.ansi=Ma(10),J.bgColor.ansi256=qa(10),J.bgColor.ansi16m=ja(10),Object.defineProperties(J,{rgbToAnsi256:{value(e,r,i){return e===r&&r===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[i]=r;i.length===3&&(i=[...i].map(s=>s+s).join(""));let n=Number.parseInt(i,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:e=>J.rgbToAnsi256(...J.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,i,n;if(e>=232)r=((e-232)*10+8)/255,i=r,n=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,i=Math.floor(a/6)/5,n=a%6/5}let s=Math.max(r,i,n)*2;if(s===0)return 30;let o=30+(Math.round(n)<<2|Math.round(i)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,i)=>J.ansi256ToAnsi(J.rgbToAnsi256(e,r,i)),enumerable:!1},hexToAnsi:{value:e=>J.ansi256ToAnsi(J.hexToAnsi256(e)),enumerable:!1}}),J}var fd=cd(),Te=fd;import gn from"node:process";import hd from"node:os";import Ua from"node:tty";function ve(t,e=globalThis.Deno?globalThis.Deno.args:gn.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),n=e.indexOf("--");return i!==-1&&(n===-1||i<n)}var{env:ee}=gn,Hr;ve("no-color")||ve("no-colors")||ve("color=false")||ve("color=never")?Hr=0:(ve("color")||ve("colors")||ve("color=true")||ve("color=always"))&&(Hr=1);function pd(){if("FORCE_COLOR"in ee)return ee.FORCE_COLOR==="true"?1:ee.FORCE_COLOR==="false"?0:ee.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ee.FORCE_COLOR,10),3)}function dd(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Ad(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let i=pd();i!==void 0&&(Hr=i);let n=r?Hr:i;if(n===0)return 0;if(r){if(ve("color=16m")||ve("color=full")||ve("color=truecolor"))return 3;if(ve("color=256"))return 2}if("TF_BUILD"in ee&&"AGENT_NAME"in ee)return 1;if(t&&!e&&n===void 0)return 0;let s=n||0;if(ee.TERM==="dumb")return s;if(gn.platform==="win32"){let o=hd.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in ee)return"GITHUB_ACTIONS"in ee?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in ee)||ee.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor"||ee.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ee){let o=Number.parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:s}function Ga(t,e={}){let r=Ad(t,{streamIsTTY:t&&t.isTTY,...e});return dd(r)}var gd={stdout:Ga({isTTY:Ua.isatty(1)}),stderr:Ga({isTTY:Ua.isatty(2)})},Ka=gd;function Ja(t,e,r){let i=t.indexOf(e);if(i===-1)return t;let n=e.length,s=0,o="";do o+=t.slice(s,i)+e+r,s=i+n,i=t.indexOf(e,s);while(i!==-1);return o+=t.slice(s),o}function Va(t,e,r,i){let n=0,s="";do{let o=t[i-1]==="\r";s+=t.slice(n,o?i-1:i)+e+(o?`\r
|
29
29
|
`:`
|
30
30
|
`)+r,n=i+1,i=t.indexOf(`
|
31
31
|
`,n)}while(i!==-1);return s+=t.slice(n),s}var{stdout:Wa,stderr:Ya}=Ka,mn=Symbol("GENERATOR"),Bt=Symbol("STYLER"),sr=Symbol("IS_EMPTY"),Xa=["ansi","ansi","ansi256","ansi16m"],Rt=Object.create(null),md=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Wa?Wa.level:0;t.level=e.level===void 0?r:e.level};var _d=t=>{let e=(...r)=>r.join(" ");return md(e,t),Object.setPrototypeOf(e,or.prototype),e};function or(t){return _d(t)}Object.setPrototypeOf(or.prototype,Function.prototype);for(let[t,e]of Object.entries(Te))Rt[t]={get(){let r=Ur(this,En(e.open,e.close,this[Bt]),this[sr]);return Object.defineProperty(this,t,{value:r}),r}};Rt.visible={get(){let t=Ur(this,this[Bt],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var _n=(t,e,r,...i)=>t==="rgb"?e==="ansi16m"?Te[r].ansi16m(...i):e==="ansi256"?Te[r].ansi256(Te.rgbToAnsi256(...i)):Te[r].ansi(Te.rgbToAnsi(...i)):t==="hex"?_n("rgb",e,r,...Te.hexToRgb(...i)):Te[r][t](...i),Ed=["rgb","hex","ansi256"];for(let t of Ed){Rt[t]={get(){let{level:r}=this;return function(...i){let n=En(_n(t,Xa[r],"color",...i),Te.color.close,this[Bt]);return Ur(this,n,this[sr])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Rt[e]={get(){let{level:r}=this;return function(...i){let n=En(_n(t,Xa[r],"bgColor",...i),Te.bgColor.close,this[Bt]);return Ur(this,n,this[sr])}}}}var yd=Object.defineProperties(()=>{},{...Rt,level:{enumerable:!0,get(){return this[mn].level},set(t){this[mn].level=t}}}),En=(t,e,r)=>{let i,n;return r===void 0?(i=t,n=e):(i=r.openAll+t,n=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:n,parent:r}},Ur=(t,e,r)=>{let i=(...n)=>bd(i,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(i,yd),i[mn]=t,i[Bt]=e,i[sr]=r,i},bd=(t,e)=>{if(t.level<=0||!e)return t[sr]?"":e;let r=t[Bt];if(r===void 0)return e;let{openAll:i,closeAll:n}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Ja(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
@@ -51,12 +51,15 @@ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=awa
|
|
51
51
|
/** __ESM_SHIM_END */
|
52
52
|
`,Ep={name:"removeEsmShim",setup(t){t.initialOptions.format==="cjs"&&t.onLoad({filter:/\.js$/},async({path:e})=>{let r=await Eb(e,"utf8");if(r.startsWith(nn))return{contents:r.slice(nn.length),loader:"js"}})}};import{existsSync as ba}from"fs";import{mkdir as yb,readFile as bb,writeFile as Cb}from"fs/promises";import{dirname as vb,resolve as sn}from"path";var yp=async(t="esm")=>{let e;switch(ba("dist")||await yb("dist"),ba("dist/package.json")?e=JSON.parse(await bb("dist/package.json","utf-8")):e={},t){case"esm":e.type="module";break;case"cjs":e.type="commonjs";break;default:return!1}return await Cb("dist/package.json",JSON.stringify(e,null,2)),!0},Ca=(t,e,r)=>{e=sn(e);let i=er(e);return{stdin:{contents:t,sourcefile:e,resolveDir:vb(e),loader:r},outdir:void 0,outfile:i,splitting:!1}},va=async(t,e,r)=>{let i=await xt(),{dependencies:n={},devDependencies:s}=i;if(!(n?.tailwindcss??s?.tailwindcss))return;t=sn(t),e=sn(e);let a=["pnpm tailwindcss","--postcss postcss.config.cjs",`-i ${t}`,`-o ${e}`];r||a.push("--minify"),ba(sn("tailwind.config.cjs"))&&a.push("--config tailwind.config.cjs");let l=Ae({log:fa,stdio:fa?"inherit":"ignore"}),c=a.join(" "),{code:u,stdout:f,stderr:h}=await l.run(c);if(u!==0)throw console.error(R.red(R.bold(c))),console.log(f),console.error(R.red(h)),new Error("Failed to build Tailwind styles")};var xa=t=>{let e=` ${t} `;ue(R.bgBlue(R.bold(R.white(e))),[],{preLines:0,postLines:1})},on=t=>{let e=` ${t} `;ue(R.bgRed(R.bold(R.white(e))))};var bp=async()=>{let t=Ae({log:!0});await wt({standalone:!0,format:"cjs",input:"src/bin.ts"}),await t.run("pnpm exec pkg --out-path dist dist/bin.js")};import{tmpdir as Pb}from"os";var Nb=`import React from "react";
|
53
53
|
import ReactDOM from "react-dom";
|
54
|
-
`,wt=async(t={})=>{let{bundle:e=!1,runtimeOnly:r=!1,splitting:i=!1}=t,{input:n="src/**/*",styles:s="src/**/*.css",target:o="esnext",format:a="esm",tsconfig:l="tsconfig.json",dev:c=!1,standalone:u=!1,binary:f=!1,clear:h=!0,jsOnly:C=!1,noWrite:p=!1,rawProcessEnv:m=!1,stdin:v=void 0,stdinFile:x=void 0,external:N=[]}=t;Cp.NODE_ENV=c?"development":"production";let E=ge(wt);E.log("Building with options:",t),c&&(r=!0),u&&(e=!0,i=!1),(a!=="esm"||!e||v)&&(i=!1),h&&kr("./dist");let{cwd:I,srcDir:y,outDir:k}=pa(),S=await xt(),O={"process.env.NODE_ENV":"process.env.NODE_ENV"};m||(O["process.env.NODE_ENV"]=JSON.stringify(c?"development":"production"),E.log("Set process.env.NODE_ENV to",O["process.env.NODE_ENV"]));let j={treeShaking:e,target:o,minify:!c,jsx:"transform",jsxFactory:"React.createElement",format:a,charset:"utf8",logLevel:c?"warning":"error",define:O},re=["esbuild","*.png"],_=[];u||_.push(_p),a==="cjs"&&_.push(Ep);let B;if(e)switch(a){case"esm":B={js:nn};break}E.log("Copying tsconfig to tmpdir() in order to override JSX settings.");let{config:D}=cp(l)??{},{compilerOptions:_e}=D??{},d={...D,compilerOptions:{..._e,jsx:"react",jsxFactory:"React.createElement"}},A=kb(Pb(),`tsconfig.${Date.now()}.json`);Rb(A,JSON.stringify(d,null,2)),E.log("tsconfig copied.");let ne={...j,tsconfig:A,bundle:e,splitting:i,absWorkingDir:I,outbase:"src",outdir:"dist",assetNames:"[name].js",format:a,target:"esnext",platform:S?.platform??"node",write:!p,external:e?[...re,...N]:void 0,banner:B,plugins:_};E.log("Build options",ne);let q="";if(v){E.log("Building file from stdin",{stdin:v,stdinFile:x,noWrite:p}),x||(ue(R.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof v=="string"&&v.length?q=v:q=await ya();let L={...j,sourcefile:x,loader:"tsx",banner:void 0,footer:void 0};if(p)return(await Lb(q,L)).code;{let Q=Ca(q,x,"tsx");await Ye(async()=>await wa({...ne,...Q}),{start:"Building stdin to dist/.",success:"Built stdin to dist/.",error:"Error building stdin to dist/."}),ue(R.grey("Use --no-write to print to stdout instead."));return}}E.log("Building",{files:n,dev:c,runtimeOnly:r}),xa(`${R.bold("TS Module")} [${Cp.NODE_ENV}]`);let ae=Sa.default.sync(n,{cwd:I}).filter(L=>Tb(L)!==".d.ts").map(L=>Db(L));if(E.log("All files",{allFiles:ae}),Ob(n)){ae.length||ae.push(n);let L=n.replace(y,k).replace(zt,".js").replace(vt,".js");E.log("Cleaning emitted file:",{outfile:L}),kr(L)}else E.log("Cleaning old output:",{outDir:k}),kr(k);let Ee=ae.filter(L=>vt.test(L));E.log("Compiling TSX files:",{tsxJsxInput:Ee});let pe=Ee.filter(L=>!L.endsWith(".d.ts"));await Ye(async()=>await Promise.all(pe.map(async L=>{let Q=Bb(L,"utf-8"),ye=Nb+Q,hn=Ca(ye,L,"tsx");await wa({...ne,...hn})})),{start:"Compiling TSX files.",success:"Compiled TSX files.",error:"Failed to compile TSX files."});let ut=ae.filter(L=>zt.test(L)).filter(L=>!vt.test(L));E.log("Compiling TS files:",{tsJsInput:ut}),await Ye(async()=>await wa({...ne,entryPoints:ut.filter(L=>!L.endsWith(".d.ts"))}),{start:"Compiling TS/JS files.",success:"Compiled TS/JS files.",error:"Failed to compile TS/JS files."}),kr(A),E.log("Deleted tsconfig copy in tmpdir().");let fn=ae.filter(L=>!fp.test(L));if(await Ye(async()=>{for(let L of fn){let Q=er(L);E.log("Copying non-source file:",{file:L,emittedFile:Q}),Sb(Qb(Q),{recursive:!0}),wb(L,Q,xb.COPYFILE_FICLONE)}},{start:"Copying non-source files to dist/.",success:"Copied non-source files to dist/.",error:"Failed to copy non-source files to dist/."}),!process.env.NO_REWRITES){let L=n.replace(y,k).replace(/^(\.\/)?src\//,"dist/").replace(zt,".js").replace(vt,".js");E.log("Normalizing import specifiers in emitted JS.",{emittedJs:L}),await Ye(async()=>await Pr(L.endsWith(".js")?L:`${L}.js`),{start:"Normalizing import specifiers.",success:"Normalized import specifiers.",error:"Failed to normalize import specifiers."})}if(await yp(a)&&We({text:'Forced "type" package.json field in dist.',indent:2}).succeed(),!C){let L=!1;if(s){let Q=Sa.default.sync(s);E.log("Building production style bundles.",{cssFiles:Q}),Q.length&&(L=!0,await Ye(async()=>await Promise.all(Q.map(async ye=>await va(ye,er(ye),!0))),{start:"Bundling emitted styles",success:"Bundled all styles to dist/.",error:"Failed to bundle styles."}))}else if(n.endsWith(".css")){E.log("Bundling changed CSS styles for development."),L=!0;let Q=Ib(I,n),ye=R.bold(R.gray(Q));await Ye(async()=>await va(n,er(n),!0),{start:`Bundling with Tailwind: ${ye}`,success:`Bundled with Tailwind: ${ye}`,error:`Failed to bundle with Tailwind: ${ye}`})}L||(ue(),ue(R.grey("CSS styles not found for this project.")),ue(R.gray(`Checked: ${R.bold(s)}`)),ue())}f&&(xa("Building binary executables."),ue("IMPORTANT: Top-level await is not supported yet.",["bold","yellow"]),ue("Your program cannot be built to a binary if it contains TLA. Wrap with an async iife for now."),ue("See: https://github.com/vercel/pkg/issues/1291"),await bp()),!c&&(r||await Ye(async()=>await Aa(),{start:"Generating type declarations.",success:`Generated declarations for ${ae.length} files.`,error:"Failed to generate type declarations."}),ue("Build complete.",["green"],{preLines:1}))},vp=async(t,e)=>await wt({input:t,...e});var Tp=Qe(Bi(),1);import{copyFile as jb,mkdir as Ba}from"fs/promises";import{dirname as $b,resolve as ir}from"path";var wp={"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},xp={packageJson:{type:"module",platform:"node",engines:{node:">=14"},types:"dist/index.d.ts",files:["dist"],exports:wp,scripts:{dev:"tsmodule dev",build:"tsmodule build",pretest:"pnpm build",test:"ava",prepublishOnly:"pnpm test",lint:"eslint src --fix"}},files:[".github/**",".eslintrc.yml",".gitignore","tsconfig.json","LICENSE","ava.config.mjs"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","ava","typescript","pkg","eslint@^8.0.1","eslint-config-standard-with-typescript@latest","@typescript-eslint/eslint-plugin@^5.0.0","eslint-plugin-import@^2.25.2","eslint-plugin-n@^15.0.0","eslint-plugin-promise@^6.0.0"]},Nr={default:xp,react:{packageJson:{...xp.packageJson,platform:"browser",style:"dist/bundle.css",exports:{...wp,"./*":"./dist/components/*/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"pnpm build",test:"ava",prepublishOnly:"pnpm test && pnpm export"}},files:[".github/**",".gitignore",".eslintrc.yml","next-env.d.ts","next.config.js","postcss.config.cjs","tailwind.config.cjs"],dependencies:["react@^18.2.0","react-dom@^18.2.0"],devDependencies:["@types/react@^18.0.23","@types/react-dom@^18.0.7","eslint-plugin-react@latest","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as Fb,resolve as Sp}from"path";import{fileURLToPath as Mb}from"url";import{readFile as qb}from"fs/promises";var Fr=Sp(Fb(Mb(import.meta.url)),".."),Bp=async()=>{let t=await qb(Sp(Fr,"package.json"),"utf-8");return JSON.parse(t)};var Op=t=>ir(Fr,`./templates/${t}`),Qa=async({template:t,targetDir:e=process.cwd()})=>{let r=Ae({log:!1}),i=Op(t),n=ir(e);await Ba(n,{recursive:!0}),await r.run({posix:`cp -rf ${i}/. ${n}`,win32:`xcopy /E /I /Q /Y ${i}\\ ${n}\\`})},Ra=async({template:t,targetDir:e=process.cwd()})=>{let r=ge(Ra);r.log("Copying template files",{template:t,targetDir:e});let i=Op(t),n=ir(e);await Ba(n,{recursive:!0});let s=await(0,Tp.default)(Nr[t].files,{cwd:i,dot:!0});if(s.length)for(let o of s){let a=ir(i,o),l=ir(n,o);r.log({sourcePath:a,replacementPath:l}),await Ba($b(l),{recursive:!0}),await jb(a,l)}},Rp=async({template:t,targetDir:e=process.cwd()})=>{let r=ir(e),i=Nr[t].packageJson;return await rn(r,i)},Qp=async({template:t,targetDir:e=process.cwd()})=>{let r=Ae({cwd:e}),i=Nr[t].dependencies,n=Nr[t].devDependencies;i.length&&await r.run(`pnpm add ${i.join(" ")}`),n.length&&await r.run(`pnpm add -D ${n.join(" ")}`)},an=async({template:t,targetDir:e=process.cwd()})=>{let r={template:"default",targetDir:e};if(await Ra(r),await Rp(r),await Qp(r),t==="default")return;let i={template:t,targetDir:e};await Ra(i),await Rp(i),await Qp(i)};var Ip=async()=>{let t="default";(await xt())?.dependencies?.react&&(t="react"),await an({template:t,targetDir:process.cwd()})};import{resolve as kp}from"path";var Dp=async(t,{react:e=!1})=>{let r=e?"react":"default",i=We({text:`Creating new module ${R.blueBright(t)}.`,indent:2}).start();await Qa({template:"default",targetDir:t}),await rn(kp(process.cwd(),t),{name:t}),r!=="default"&&await Qa({template:r,targetDir:t}),i.succeed("Project created."),await an({template:r,targetDir:t}),i.succeed("Dependencies installed."),await Ae({cwd:kp(t),stdio:["ignore","ignore","inherit"]}).run("git init"),i.succeed("Set up as Git repository.")};import{relative as iC,resolve as nC}from"path";import{existsSync as sC}from"fs";import{lstat as oC}from"fs/promises";var td=Qe(Zp(),1);var zp=()=>{console.clear()},ed=t=>{console.log(),console.group(),console.log(R.blue(`Built ${R.bold(t)}.`)),console.log(R.blue(new Date().toLocaleString())),console.groupEnd()},rd=async({format:t="esm"})=>{let e=process.cwd(),r=Ae();process.platform!=="win32"&&await r.run("clear"),zp(),await wt({format:t,dev:!0}),ed("src/**/*"),(0,td.default)(nC(e,"src"),{recursive:!0}).on("change",async(i,n)=>{if(!sC(n)||(await oC(n)).isDirectory())return;zp();let l=Date.now();try{let u=n.endsWith(".css");await wt({dev:!0,runtimeOnly:!0,input:n,clear:!1,styles:null})}catch(u){Xr("ERROR:",u)}let c=Date.now()-l;console.log(),We({text:R.blueBright(`Dev refresh finished in ${R.bold(`${c}ms`)}.`),indent:2}).succeed(),ed(iC(e,n))})};import{pathToFileURL as aC}from"url";import{resolve as lC}from"path";var id=async()=>{let t=lC(Fr,"dist/loader/index.js"),e=["--no-warnings","--loader",aC(t).href,...process.argv.slice(2)],r=Ae({stdio:"inherit"}),{code:i}=await r.run(`node ${e.join(" ")}`);process.exit(i??0)};var uC=t=>{let e=t;return!(e.code===void 0||e.stdout==null||e.stderr==null)},St=t=>async(...r)=>{try{return await t(...r)}catch(i){if(console.log(),uC(i))on("Error"),console.group(),i.stdout&&console.error(R.red(i.stdout)),i.stderr&&console.error(R.redBright(i.stderr)),console.groupEnd();else if(i instanceof Error){let{name:n,message:s}=i;on(n),console.group(),console.error(R.redBright(s)),console.groupEnd()}else on("Error"),console.group(),console.error(R.redBright(i)),console.groupEnd();throw console.log(),i}};var{version:cC}=await Bp(),lt=new pl;lt.name(R.white(R.bold("tsmodule"))).usage(R.white(R.bold("<file | command> [options]"))).description(R.blueBright(`A tool for building TypeScript modules.
|
54
|
+
`,wt=async(t={})=>{let{bundle:e=!1,runtimeOnly:r=!1,splitting:i=!1}=t,{input:n="src/**/*",styles:s="src/**/*.css",target:o="esnext",format:a="esm",tsconfig:l="tsconfig.json",dev:c=!1,standalone:u=!1,binary:f=!1,clear:h=!0,jsOnly:C=!1,noWrite:p=!1,rawProcessEnv:m=!1,stdin:v=void 0,stdinFile:x=void 0,external:N=[]}=t;Cp.NODE_ENV=c?"development":"production";let E=ge(wt);E.log("Building with options:",t),c&&(r=!0),u&&(e=!0,i=!1),(a!=="esm"||!e||v)&&(i=!1),h&&kr("./dist");let{cwd:I,srcDir:y,outDir:k}=pa(),S=await xt(),O={"process.env.NODE_ENV":"process.env.NODE_ENV"};m||(O["process.env.NODE_ENV"]=JSON.stringify(c?"development":"production"),E.log("Set process.env.NODE_ENV to",O["process.env.NODE_ENV"]));let j={treeShaking:e,target:o,minify:!c,jsx:"transform",jsxFactory:"React.createElement",format:a,charset:"utf8",logLevel:c?"warning":"error",define:O},re=["esbuild","*.png"],_=[];u||_.push(_p),a==="cjs"&&_.push(Ep);let B;if(e)switch(a){case"esm":B={js:nn};break}E.log("Copying tsconfig to tmpdir() in order to override JSX settings.");let{config:D}=cp(l)??{},{compilerOptions:_e}=D??{},d={...D,compilerOptions:{..._e,jsx:"react",jsxFactory:"React.createElement"}},A=kb(Pb(),`tsconfig.${Date.now()}.json`);Rb(A,JSON.stringify(d,null,2)),E.log("tsconfig copied.");let ne={...j,tsconfig:A,bundle:e,splitting:i,absWorkingDir:I,outbase:"src",outdir:"dist",assetNames:"[name].js",format:a,target:"esnext",platform:S?.platform??"node",write:!p,external:e?[...re,...N]:void 0,banner:B,plugins:_};E.log("Build options",ne);let q="";if(v){E.log("Building file from stdin",{stdin:v,stdinFile:x,noWrite:p}),x||(ue(R.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof v=="string"&&v.length?q=v:q=await ya();let L={...j,sourcefile:x,loader:"tsx",banner:void 0,footer:void 0};if(p)return(await Lb(q,L)).code;{let Q=Ca(q,x,"tsx");await Ye(async()=>await wa({...ne,...Q}),{start:"Building stdin to dist/.",success:"Built stdin to dist/.",error:"Error building stdin to dist/."}),ue(R.grey("Use --no-write to print to stdout instead."));return}}E.log("Building",{files:n,dev:c,runtimeOnly:r}),xa(`${R.bold("TS Module")} [${Cp.NODE_ENV}]`);let ae=Sa.default.sync(n,{cwd:I}).filter(L=>Tb(L)!==".d.ts").map(L=>Db(L));if(E.log("All files",{allFiles:ae}),Ob(n)){ae.length||ae.push(n);let L=n.replace(y,k).replace(zt,".js").replace(vt,".js");E.log("Cleaning emitted file:",{outfile:L}),kr(L)}else E.log("Cleaning old output:",{outDir:k}),kr(k);let Ee=ae.filter(L=>vt.test(L));E.log("Compiling TSX files:",{tsxJsxInput:Ee});let pe=Ee.filter(L=>!L.endsWith(".d.ts"));await Ye(async()=>await Promise.all(pe.map(async L=>{let Q=Bb(L,"utf-8"),ye=Nb+Q,hn=Ca(ye,L,"tsx");await wa({...ne,...hn})})),{start:"Compiling TSX files.",success:"Compiled TSX files.",error:"Failed to compile TSX files."});let ut=ae.filter(L=>zt.test(L)).filter(L=>!vt.test(L));E.log("Compiling TS files:",{tsJsInput:ut}),await Ye(async()=>await wa({...ne,entryPoints:ut.filter(L=>!L.endsWith(".d.ts"))}),{start:"Compiling TS/JS files.",success:"Compiled TS/JS files.",error:"Failed to compile TS/JS files."}),kr(A),E.log("Deleted tsconfig copy in tmpdir().");let fn=ae.filter(L=>!fp.test(L));if(await Ye(async()=>{for(let L of fn){let Q=er(L);E.log("Copying non-source file:",{file:L,emittedFile:Q}),Sb(Qb(Q),{recursive:!0}),wb(L,Q,xb.COPYFILE_FICLONE)}},{start:"Copying non-source files to dist/.",success:"Copied non-source files to dist/.",error:"Failed to copy non-source files to dist/."}),!process.env.NO_REWRITES){let L=n.replace(y,k).replace(/^(\.\/)?src\//,"dist/").replace(zt,".js").replace(vt,".js");E.log("Normalizing import specifiers in emitted JS.",{emittedJs:L}),await Ye(async()=>await Pr(L.endsWith(".js")?L:`${L}.js`),{start:"Normalizing import specifiers.",success:"Normalized import specifiers.",error:"Failed to normalize import specifiers."})}if(await yp(a)&&We({text:'Forced "type" package.json field in dist.',indent:2}).succeed(),!C){let L=!1;if(s){let Q=Sa.default.sync(s);E.log("Building production style bundles.",{cssFiles:Q}),Q.length&&(L=!0,await Ye(async()=>await Promise.all(Q.map(async ye=>await va(ye,er(ye),!0))),{start:"Bundling emitted styles",success:"Bundled all styles to dist/.",error:"Failed to bundle styles."}))}else if(n.endsWith(".css")){E.log("Bundling changed CSS styles for development."),L=!0;let Q=Ib(I,n),ye=R.bold(R.gray(Q));await Ye(async()=>await va(n,er(n),!0),{start:`Bundling with Tailwind: ${ye}`,success:`Bundled with Tailwind: ${ye}`,error:`Failed to bundle with Tailwind: ${ye}`})}L||(ue(),ue(R.grey("CSS styles not found for this project.")),ue(R.gray(`Checked: ${R.bold(s)}`)),ue())}f&&(xa("Building binary executables."),ue("IMPORTANT: Top-level await is not supported yet.",["bold","yellow"]),ue("Your program cannot be built to a binary if it contains TLA. Wrap with an async iife for now."),ue("See: https://github.com/vercel/pkg/issues/1291"),await bp()),!c&&(r||await Ye(async()=>await Aa(),{start:"Generating type declarations.",success:`Generated declarations for ${ae.length} files.`,error:"Failed to generate type declarations."}),ue("Build complete.",["green"],{preLines:1}))},vp=async(t,e)=>await wt({input:t,...e});var Tp=Qe(Bi(),1);import{copyFile as jb,mkdir as Ba}from"fs/promises";import{dirname as $b,resolve as ir}from"path";var wp={"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},xp={packageJson:{type:"module",platform:"node",engines:{node:">=14"},types:"dist/index.d.ts",files:["dist"],exports:wp,scripts:{dev:"tsmodule dev",build:"tsmodule build",pretest:"pnpm build",test:"ava",prepublishOnly:"pnpm test",lint:"eslint src --fix"}},files:[".github/**",".eslintrc.yml",".gitignore","tsconfig.json","LICENSE","ava.config.mjs"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","ava","typescript","pkg","eslint@^8.0.1","eslint-config-standard-with-typescript@latest","@typescript-eslint/eslint-plugin@^5.0.0","eslint-plugin-import@^2.25.2","eslint-plugin-n@^15.0.0","eslint-plugin-promise@^6.0.0"]},Nr={default:xp,react:{packageJson:{...xp.packageJson,platform:"browser",style:"dist/bundle.css",exports:{...wp,"./*":"./dist/components/*/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"pnpm build",test:"ava",prepublishOnly:"pnpm test && pnpm export"}},files:[".github/**",".gitignore",".eslintrc.yml","next-env.d.ts","next.config.js","postcss.config.cjs","tailwind.config.cjs"],dependencies:["react@^18.2.0","react-dom@^18.2.0"],devDependencies:["@types/react@^18.0.23","@types/react-dom@^18.0.7","eslint-plugin-react@latest","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as Fb,resolve as Sp}from"path";import{fileURLToPath as Mb}from"url";import{readFile as qb}from"fs/promises";var Fr=Sp(Fb(Mb(import.meta.url)),".."),Bp=async()=>{let t=await qb(Sp(Fr,"package.json"),"utf-8");return JSON.parse(t)};var Op=t=>ir(Fr,`./templates/${t}`),Qa=async({template:t,targetDir:e=process.cwd()})=>{let r=Ae({log:!1}),i=Op(t),n=ir(e);await Ba(n,{recursive:!0}),await r.run({posix:`cp -rf ${i}/. ${n}`,win32:`xcopy /E /I /Q /Y ${i}\\ ${n}\\`})},Ra=async({template:t,targetDir:e=process.cwd()})=>{let r=ge(Ra);r.log("Copying template files",{template:t,targetDir:e});let i=Op(t),n=ir(e);await Ba(n,{recursive:!0});let s=await(0,Tp.default)(Nr[t].files,{cwd:i,dot:!0});if(s.length)for(let o of s){let a=ir(i,o),l=ir(n,o);r.log({sourcePath:a,replacementPath:l}),await Ba($b(l),{recursive:!0}),await jb(a,l)}},Rp=async({template:t,targetDir:e=process.cwd()})=>{let r=ir(e),i=Nr[t].packageJson;return await rn(r,i)},Qp=async({template:t,targetDir:e=process.cwd()})=>{let r=Ae({cwd:e}),i=Nr[t].dependencies,n=Nr[t].devDependencies;i.length&&await r.run(`pnpm add ${i.join(" ")}`),n.length&&await r.run(`pnpm add -D ${n.join(" ")}`)},an=async({template:t,targetDir:e=process.cwd()})=>{let r={template:"default",targetDir:e};if(await Ra(r),await Rp(r),await Qp(r),t==="default")return;let i={template:t,targetDir:e};await Ra(i),await Rp(i),await Qp(i)};var Ip=async()=>{let t="default";(await xt())?.dependencies?.react&&(t="react"),await an({template:t,targetDir:process.cwd()})};import{resolve as kp}from"path";var Dp=async(t,{react:e=!1})=>{let r=e?"react":"default",i=We({text:`Creating new module ${R.blueBright(t)}.`,indent:2}).start();await Qa({template:"default",targetDir:t}),await rn(kp(process.cwd(),t),{name:t}),r!=="default"&&await Qa({template:r,targetDir:t}),i.succeed("Project created."),await an({template:r,targetDir:t}),i.succeed("Dependencies installed."),await Ae({cwd:kp(t),stdio:["ignore","ignore","inherit"]}).run("git init"),i.succeed("Set up as Git repository.")};import{relative as iC,resolve as nC}from"path";import{existsSync as sC}from"fs";import{lstat as oC}from"fs/promises";var td=Qe(Zp(),1);var zp=()=>{console.clear()},ed=t=>{console.log(),console.group(),console.log(R.blue(`Built ${R.bold(t)}.`)),console.log(R.blue(new Date().toLocaleString())),console.groupEnd()},rd=async({format:t="esm"})=>{let e=process.cwd(),r=Ae();process.platform!=="win32"&&await r.run("clear"),zp(),await wt({format:t,dev:!0}),ed("src/**/*"),(0,td.default)(nC(e,"src"),{recursive:!0}).on("change",async(i,n)=>{if(!sC(n)||(await oC(n)).isDirectory())return;zp();let l=Date.now();try{let u=n.endsWith(".css");await wt({dev:!0,runtimeOnly:!0,input:n,clear:!1,styles:null})}catch(u){Xr("ERROR:",u)}let c=Date.now()-l;console.log(),We({text:R.blueBright(`Dev refresh finished in ${R.bold(`${c}ms`)}.`),indent:2}).succeed(),ed(iC(e,n))})};import{pathToFileURL as aC}from"url";import{resolve as lC}from"path";var id=async()=>{let t=lC(Fr,"dist/loader/index.js"),e=["--no-warnings","--loader",aC(t).href,process.argv.slice(2)],r=Ae({stdio:"inherit"}),{code:i}=await r.run(`node ${e.join(" ")}`);process.exit(i??0)};var uC=t=>{let e=t;return!(e.code===void 0||e.stdout==null||e.stderr==null)},St=t=>async(...r)=>{try{return await t(...r)}catch(i){if(console.log(),uC(i))on("Error"),console.group(),i.stdout&&console.error(R.red(i.stdout)),i.stderr&&console.error(R.redBright(i.stderr)),console.groupEnd();else if(i instanceof Error){let{name:n,message:s}=i;on(n),console.group(),console.error(R.redBright(s)),console.groupEnd()}else on("Error"),console.group(),console.error(R.redBright(i)),console.groupEnd();throw console.log(),i}};var{version:cC}=await Bp(),Xe=new pl;Xe.name(R.white(R.bold("tsmodule"))).usage(R.white(R.bold("<file | command> [options]"))).description(R.blueBright(`A toolkit for working with TypeScript ESM packages.
|
55
55
|
|
56
|
-
Run TS directly:
|
57
|
-
|
58
|
-
|
59
|
-
|
56
|
+
Run TS directly:
|
57
|
+
${R.bold("tsmodule src/index.ts")}
|
58
|
+
|
59
|
+
Use a command:
|
60
|
+
${R.bold("tsmodule build")}`)).version(String(cC));Xe.command("dev").description("Build and watch for changes.").option("-f, --format <format>","Output format (default: ESM).").action(St(rd));Xe.command("build").description("Builds TS files to output in dist/.").argument("[files]","Glob of entrypoints to compile.").option("-d, --dev","Build development runtime.").option("-t, --target <target>","ECMAScript featureset to target (default: ESNext).").option("-f, --format <format>","Output format (default: ESM).").option("-b, --bundle","Bundle external dependencies into entrypoints.").option("-t, --tsconfig","Specify a custom tsconfig.json file.","tsconfig.json").option("-e, --external <external...>","External dependencies to exclude from bundling.").option("--binary","Build binary executables from src/bin.ts.").option("--standalone","Bundle a standalone entry-points without any import statements (disables splitting).").option("--splitting","Split output into chunks. (default: true; disabled for --standalone)").option("-r, --runtime-only","Do not emit type declarations, only build JS runtime.").option("-j, --js-only","Do not build styles").option("-s, --styles <styles>","Specify stylesheet entrypoint.").option("--stdin [source]","Read from a string or stdin.").option("--stdin-file [file]","File path to mock for stdin.").option("--no-write",`Return code from build() rather than write to disk.
|
61
|
+
For programmatic use alongside { stdin: ... }.`).option("--raw-process-env","Do not overwrite process.env in output bundles (default: false).").action(St(vp));Xe.command("create <name>").option("--react","Create React component library with Next.js").description("Create a new project.").action(St(Dp));Xe.command("convert").description("Convert an existing project to a TS module.").action(St(Ip));Xe.command("normalize [files]").description(`Rewrites import specifiers in files to ESM-compliant paths.
|
62
|
+
(default: dist/**/*.js)`).action(St(async({files:t})=>{await Pr(t)}));Xe.command("execute",{isDefault:!0,hidden:!0}).argument("[file]","The file to execute.").option("--d, --dev","Enable development mode").description("Run the given TS program, analogous to `node <file>`.").action(St(async t=>t?await id():Xe.help()));Xe.parse(process.argv);
|
60
63
|
/*! Bundled license information:
|
61
64
|
|
62
65
|
is-extglob/index.js:
|
package/dist/index.js
CHANGED
@@ -30,7 +30,7 @@ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=awa
|
|
30
30
|
/** __ESM_SHIM_END */
|
31
31
|
`,kA={name:"removeEsmShim",setup(e){e.initialOptions.format==="cjs"&&e.onLoad({filter:/\.js$/},async({path:t})=>{let r=await uy(t,"utf8");if(r.startsWith(Kn))return{contents:r.slice(Kn.length),loader:"js"}})}};import{existsSync as Vo}from"fs";import{mkdir as cy,readFile as fy,writeFile as Ay}from"fs/promises";import{dirname as py,resolve as Gn}from"path";var OA=async(e="esm")=>{let t;switch(Vo("dist")||await cy("dist"),Vo("dist/package.json")?t=JSON.parse(await fy("dist/package.json","utf-8")):t={},e){case"esm":t.type="module";break;case"cjs":t.type="commonjs";break;default:return!1}return await Ay("dist/package.json",JSON.stringify(t,null,2)),!0},Xo=(e,t,r)=>{t=Gn(t);let n=Yt(t);return{stdin:{contents:e,sourcefile:t,resolveDir:py(t),loader:r},outdir:void 0,outfile:n,splitting:!1}},Zo=async(e,t,r)=>{let n=await Br(),{dependencies:i={},devDependencies:s}=n;if(!(i?.tailwindcss??s?.tailwindcss))return;e=Gn(e),t=Gn(t);let a=["pnpm tailwindcss","--postcss postcss.config.cjs",`-i ${e}`,`-o ${t}`];r||a.push("--minify"),Vo(Gn("tailwind.config.cjs"))&&a.push("--config tailwind.config.cjs");let l=de({log:Fo,stdio:Fo?"inherit":"ignore"}),c=a.join(" "),{code:u,stdout:A,stderr:f}=await l.run(c);if(u!==0)throw console.error(P.red(P.bold(c))),console.log(A),console.error(P.red(f)),new Error("Failed to build Tailwind styles")};var zo=e=>{let t=` ${e} `;pe(P.bgBlue(P.bold(P.white(t))),[],{preLines:0,postLines:1})};var DA=async()=>{let e=de({log:!0});await yt({standalone:!0,format:"cjs",input:"src/bin.ts"}),await e.run("pnpm exec pkg --out-path dist dist/bin.js")};import{tmpdir as wy}from"os";var Sy=`import React from "react";
|
32
32
|
import ReactDOM from "react-dom";
|
33
|
-
`,yt=async(e={})=>{let{bundle:t=!1,runtimeOnly:r=!1,splitting:n=!1}=e,{input:i="src/**/*",styles:s="src/**/*.css",target:o="esnext",format:a="esm",tsconfig:l="tsconfig.json",dev:c=!1,standalone:u=!1,binary:A=!1,clear:f=!0,jsOnly:B=!1,noWrite:h=!1,rawProcessEnv:_=!1,stdin:x=void 0,stdinFile:b=void 0,external:N=[]}=e;LA.NODE_ENV=c?"development":"production";let E=he(yt);E.log("Building with options:",e),c&&(r=!0),u&&(t=!0,n=!1),(a!=="esm"||!t||x)&&(n=!1),f&&xr("./dist");let{cwd:T,srcDir:y,outDir:I}=jo(),w=await Br(),Q={"process.env.NODE_ENV":"process.env.NODE_ENV"};_||(Q["process.env.NODE_ENV"]=JSON.stringify(c?"development":"production"),E.log("Set process.env.NODE_ENV to",Q["process.env.NODE_ENV"]));let j={treeShaking:t,target:o,minify:!c,jsx:"transform",jsxFactory:"React.createElement",format:a,charset:"utf8",logLevel:c?"warning":"error",define:Q},te=["esbuild","*.png"],g=[];u||g.push(IA),a==="cjs"&&g.push(kA);let S;if(t)switch(a){case"esm":S={js:Kn};break}E.log("Copying tsconfig to tmpdir() in order to override JSX settings.");let{config:k}=vA(l)??{},{compilerOptions:me}=k??{},p={...k,compilerOptions:{...me,jsx:"react",jsxFactory:"React.createElement"}},d=vy(wy(),`tsconfig.${Date.now()}.json`);_y(d,JSON.stringify(p,null,2)),E.log("tsconfig copied.");let ne={...j,tsconfig:d,bundle:t,splitting:n,absWorkingDir:T,outbase:"src",outdir:"dist",assetNames:"[name].js",format:a,target:"esnext",platform:w?.platform??"node",write:!h,external:t?[...te,...N]:void 0,banner:S,plugins:g};E.log("Build options",ne);let q="";if(x){E.log("Building file from stdin",{stdin:x,stdinFile:b,noWrite:h}),b||(pe(P.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof x=="string"&&x.length?q=x:q=await Wo();let D={...j,sourcefile:b,loader:"tsx",banner:void 0,footer:void 0};if(h)return(await By(q,D)).code;{let R=Xo(q,b,"tsx");await Je(async()=>await ea({...ne,...R}),{start:"Building stdin to dist/.",success:"Built stdin to dist/.",error:"Error building stdin to dist/."}),pe(P.grey("Use --no-write to print to stdout instead."));return}}E.log("Building",{files:i,dev:c,runtimeOnly:r}),zo(`${P.bold("TS Module")} [${LA.NODE_ENV}]`);let oe=ta.default.sync(i,{cwd:T}).filter(D=>yy(D)!==".d.ts").map(D=>xy(D));if(E.log("All files",{allFiles:oe}),Cy(i)){oe.length||oe.push(i);let D=i.replace(y,I).replace(Jt,".js").replace(Et,".js");E.log("Cleaning emitted file:",{outfile:D}),xr(D)}else E.log("Cleaning old output:",{outDir:I}),xr(I);let _e=oe.filter(D=>Et.test(D));E.log("Compiling TSX files:",{tsxJsxInput:_e});let fe=_e.filter(D=>!D.endsWith(".d.ts"));await Je(async()=>await Promise.all(fe.map(async D=>{let R=my(D,"utf-8"),Ee=Sy+R,Zn=Xo(Ee,D,"tsx");await ea({...ne,...Zn})})),{start:"Compiling TSX files.",success:"Compiled TSX files.",error:"Failed to compile TSX files."});let st=oe.filter(D=>Jt.test(D)).filter(D=>!Et.test(D));E.log("Compiling TS files:",{tsJsInput:st}),await Je(async()=>await ea({...ne,entryPoints:st.filter(D=>!D.endsWith(".d.ts"))}),{start:"Compiling TS/JS files.",success:"Compiled TS/JS files.",error:"Failed to compile TS/JS files."}),xr(d),E.log("Deleted tsconfig copy in tmpdir().");let Xn=oe.filter(D=>!xA.test(D));if(await Je(async()=>{for(let D of Xn){let R=Yt(D);E.log("Copying non-source file:",{file:D,emittedFile:R}),gy(Ey(R),{recursive:!0}),hy(D,R,dy.COPYFILE_FICLONE)}},{start:"Copying non-source files to dist/.",success:"Copied non-source files to dist/.",error:"Failed to copy non-source files to dist/."}),!process.env.NO_REWRITES){let D=i.replace(y,I).replace(/^(\.\/)?src\//,"dist/").replace(Jt,".js").replace(Et,".js");E.log("Normalizing import specifiers in emitted JS.",{emittedJs:D}),await Je(async()=>await Yo(D.endsWith(".js")?D:`${D}.js`),{start:"Normalizing import specifiers.",success:"Normalized import specifiers.",error:"Failed to normalize import specifiers."})}if(await OA(a)&&Ge({text:'Forced "type" package.json field in dist.',indent:2}).succeed(),!B){let D=!1;if(s){let R=ta.default.sync(s);E.log("Building production style bundles.",{cssFiles:R}),R.length&&(D=!0,await Je(async()=>await Promise.all(R.map(async Ee=>await Zo(Ee,Yt(Ee),!0))),{start:"Bundling emitted styles",success:"Bundled all styles to dist/.",error:"Failed to bundle styles."}))}else if(i.endsWith(".css")){E.log("Bundling changed CSS styles for development."),D=!0;let R=by(T,i),Ee=P.bold(P.gray(R));await Je(async()=>await Zo(i,Yt(i),!0),{start:`Bundling with Tailwind: ${Ee}`,success:`Bundled with Tailwind: ${Ee}`,error:`Failed to bundle with Tailwind: ${Ee}`})}D||(pe(),pe(P.grey("CSS styles not found for this project.")),pe(P.gray(`Checked: ${P.bold(s)}`)),pe())}A&&(zo("Building binary executables."),pe("IMPORTANT: Top-level await is not supported yet.",["bold","yellow"]),pe("Your program cannot be built to a binary if it contains TLA. Wrap with an async iife for now."),pe("See: https://github.com/vercel/pkg/issues/1291"),await DA()),!c&&(r||await Je(async()=>await $o(),{start:"Generating type declarations.",success:`Generated declarations for ${oe.length} files.`,error:"Failed to generate type declarations."}),pe("Build complete.",["green"],{preLines:1}))},qB=async(e,t)=>await yt({input:e,...t});import{resolve as $A}from"path";var qA=ke(hn(),1);import{copyFile as Iy,mkdir as ra}from"fs/promises";import{dirname as ky,resolve as Xt}from"path";var NA={"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},PA={packageJson:{type:"module",platform:"node",engines:{node:">=14"},types:"dist/index.d.ts",files:["dist"],exports:NA,scripts:{dev:"tsmodule dev",build:"tsmodule build",pretest:"pnpm build",test:"ava",prepublishOnly:"pnpm test",lint:"eslint src --fix"}},files:[".github/**",".eslintrc.yml",".gitignore","tsconfig.json","LICENSE","ava.config.mjs"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","ava","typescript","pkg","eslint@^8.0.1","eslint-config-standard-with-typescript@latest","@typescript-eslint/eslint-plugin@^5.0.0","eslint-plugin-import@^2.25.2","eslint-plugin-n@^15.0.0","eslint-plugin-promise@^6.0.0"]},Rr={default:PA,react:{packageJson:{...PA.packageJson,platform:"browser",style:"dist/bundle.css",exports:{...NA,"./*":"./dist/components/*/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"pnpm build",test:"ava",prepublishOnly:"pnpm test && pnpm export"}},files:[".github/**",".gitignore",".eslintrc.yml","next-env.d.ts","next.config.js","postcss.config.cjs","tailwind.config.cjs"],dependencies:["react@^18.2.0","react-dom@^18.2.0"],devDependencies:["@types/react@^18.0.23","@types/react-dom@^18.0.7","eslint-plugin-react@latest","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as Ry,resolve as Qy}from"path";import{fileURLToPath as Ty}from"url";var Jn=Qy(Ry(Ty(import.meta.url)),"..");var jA=e=>Xt(Jn,`./templates/${e}`),ia=async({template:e,targetDir:t=process.cwd()})=>{let r=de({log:!1}),n=jA(e),i=Xt(t);await ra(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})},na=async({template:e,targetDir:t=process.cwd()})=>{let r=he(na);r.log("Copying template files",{template:e,targetDir:t});let n=jA(e),i=Xt(t);await ra(i,{recursive:!0});let s=await(0,qA.default)(Rr[e].files,{cwd:n,dot:!0});if(s.length)for(let o of s){let a=Xt(n,o),l=Xt(i,o);r.log({sourcePath:a,replacementPath:l}),await ra(ky(l),{recursive:!0}),await Iy(a,l)}},MA=async({template:e,targetDir:t=process.cwd()})=>{let r=Xt(t),n=Rr[e].packageJson;return await Hn(r,n)},FA=async({template:e,targetDir:t=process.cwd()})=>{let r=de({cwd:t}),n=Rr[e].dependencies,i=Rr[e].devDependencies;n.length&&await r.run(`pnpm add ${n.join(" ")}`),i.length&&await r.run(`pnpm add -D ${i.join(" ")}`)},UA=async({template:e,targetDir:t=process.cwd()})=>{let r={template:"default",targetDir:t};if(await na(r),await MA(r),await FA(r),e==="default")return;let n={template:e,targetDir:t};await na(n),await MA(n),await FA(n)};var lw=async(e,{react:t=!1})=>{let r=t?"react":"default",n=Ge({text:`Creating new module ${P.blueBright(e)}.`,indent:2}).start();await ia({template:"default",targetDir:e}),await Hn($A(process.cwd(),e),{name:e}),r!=="default"&&await ia({template:r,targetDir:e}),n.succeed("Project created."),await UA({template:r,targetDir:e}),n.succeed("Dependencies installed."),await de({cwd:$A(e),stdio:["ignore","ignore","inherit"]}).run("git init"),n.succeed("Set up as Git repository.")};import{relative as Jy,resolve as Yy}from"path";import{existsSync as Wy}from"fs";import{lstat as Vy}from"fs/promises";var cp=ke(ap(),1);var lp=()=>{console.clear()},up=e=>{console.log(),console.group(),console.log(P.blue(`Built ${P.bold(e)}.`)),console.log(P.blue(new Date().toLocaleString())),console.groupEnd()},Cw=async({format:e="esm"})=>{let t=process.cwd(),r=de();process.platform!=="win32"&&await r.run("clear"),lp(),await yt({format:e,dev:!0}),up("src/**/*"),(0,cp.default)(Yy(t,"src"),{recursive:!0}).on("change",async(n,i)=>{if(!Wy(i)||(await Vy(i)).isDirectory())return;lp();let l=Date.now();try{let u=i.endsWith(".css");await yt({dev:!0,runtimeOnly:!0,input:i,clear:!1,styles:null})}catch(u){Pr("ERROR:",u)}let c=Date.now()-l;console.log(),Ge({text:P.blueBright(`Dev refresh finished in ${P.bold(`${c}ms`)}.`),indent:2}).succeed(),up(Jy(t,i))})};import{pathToFileURL as Xy}from"url";import{resolve as Zy}from"path";var Sw=async()=>{let e=Zy(Jn,"dist/loader/index.js"),t=["--no-warnings","--loader",Xy(e).href
|
33
|
+
`,yt=async(e={})=>{let{bundle:t=!1,runtimeOnly:r=!1,splitting:n=!1}=e,{input:i="src/**/*",styles:s="src/**/*.css",target:o="esnext",format:a="esm",tsconfig:l="tsconfig.json",dev:c=!1,standalone:u=!1,binary:A=!1,clear:f=!0,jsOnly:B=!1,noWrite:h=!1,rawProcessEnv:_=!1,stdin:x=void 0,stdinFile:b=void 0,external:N=[]}=e;LA.NODE_ENV=c?"development":"production";let E=he(yt);E.log("Building with options:",e),c&&(r=!0),u&&(t=!0,n=!1),(a!=="esm"||!t||x)&&(n=!1),f&&xr("./dist");let{cwd:T,srcDir:y,outDir:I}=jo(),w=await Br(),Q={"process.env.NODE_ENV":"process.env.NODE_ENV"};_||(Q["process.env.NODE_ENV"]=JSON.stringify(c?"development":"production"),E.log("Set process.env.NODE_ENV to",Q["process.env.NODE_ENV"]));let j={treeShaking:t,target:o,minify:!c,jsx:"transform",jsxFactory:"React.createElement",format:a,charset:"utf8",logLevel:c?"warning":"error",define:Q},te=["esbuild","*.png"],g=[];u||g.push(IA),a==="cjs"&&g.push(kA);let S;if(t)switch(a){case"esm":S={js:Kn};break}E.log("Copying tsconfig to tmpdir() in order to override JSX settings.");let{config:k}=vA(l)??{},{compilerOptions:me}=k??{},p={...k,compilerOptions:{...me,jsx:"react",jsxFactory:"React.createElement"}},d=vy(wy(),`tsconfig.${Date.now()}.json`);_y(d,JSON.stringify(p,null,2)),E.log("tsconfig copied.");let ne={...j,tsconfig:d,bundle:t,splitting:n,absWorkingDir:T,outbase:"src",outdir:"dist",assetNames:"[name].js",format:a,target:"esnext",platform:w?.platform??"node",write:!h,external:t?[...te,...N]:void 0,banner:S,plugins:g};E.log("Build options",ne);let q="";if(x){E.log("Building file from stdin",{stdin:x,stdinFile:b,noWrite:h}),b||(pe(P.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof x=="string"&&x.length?q=x:q=await Wo();let D={...j,sourcefile:b,loader:"tsx",banner:void 0,footer:void 0};if(h)return(await By(q,D)).code;{let R=Xo(q,b,"tsx");await Je(async()=>await ea({...ne,...R}),{start:"Building stdin to dist/.",success:"Built stdin to dist/.",error:"Error building stdin to dist/."}),pe(P.grey("Use --no-write to print to stdout instead."));return}}E.log("Building",{files:i,dev:c,runtimeOnly:r}),zo(`${P.bold("TS Module")} [${LA.NODE_ENV}]`);let oe=ta.default.sync(i,{cwd:T}).filter(D=>yy(D)!==".d.ts").map(D=>xy(D));if(E.log("All files",{allFiles:oe}),Cy(i)){oe.length||oe.push(i);let D=i.replace(y,I).replace(Jt,".js").replace(Et,".js");E.log("Cleaning emitted file:",{outfile:D}),xr(D)}else E.log("Cleaning old output:",{outDir:I}),xr(I);let _e=oe.filter(D=>Et.test(D));E.log("Compiling TSX files:",{tsxJsxInput:_e});let fe=_e.filter(D=>!D.endsWith(".d.ts"));await Je(async()=>await Promise.all(fe.map(async D=>{let R=my(D,"utf-8"),Ee=Sy+R,Zn=Xo(Ee,D,"tsx");await ea({...ne,...Zn})})),{start:"Compiling TSX files.",success:"Compiled TSX files.",error:"Failed to compile TSX files."});let st=oe.filter(D=>Jt.test(D)).filter(D=>!Et.test(D));E.log("Compiling TS files:",{tsJsInput:st}),await Je(async()=>await ea({...ne,entryPoints:st.filter(D=>!D.endsWith(".d.ts"))}),{start:"Compiling TS/JS files.",success:"Compiled TS/JS files.",error:"Failed to compile TS/JS files."}),xr(d),E.log("Deleted tsconfig copy in tmpdir().");let Xn=oe.filter(D=>!xA.test(D));if(await Je(async()=>{for(let D of Xn){let R=Yt(D);E.log("Copying non-source file:",{file:D,emittedFile:R}),gy(Ey(R),{recursive:!0}),hy(D,R,dy.COPYFILE_FICLONE)}},{start:"Copying non-source files to dist/.",success:"Copied non-source files to dist/.",error:"Failed to copy non-source files to dist/."}),!process.env.NO_REWRITES){let D=i.replace(y,I).replace(/^(\.\/)?src\//,"dist/").replace(Jt,".js").replace(Et,".js");E.log("Normalizing import specifiers in emitted JS.",{emittedJs:D}),await Je(async()=>await Yo(D.endsWith(".js")?D:`${D}.js`),{start:"Normalizing import specifiers.",success:"Normalized import specifiers.",error:"Failed to normalize import specifiers."})}if(await OA(a)&&Ge({text:'Forced "type" package.json field in dist.',indent:2}).succeed(),!B){let D=!1;if(s){let R=ta.default.sync(s);E.log("Building production style bundles.",{cssFiles:R}),R.length&&(D=!0,await Je(async()=>await Promise.all(R.map(async Ee=>await Zo(Ee,Yt(Ee),!0))),{start:"Bundling emitted styles",success:"Bundled all styles to dist/.",error:"Failed to bundle styles."}))}else if(i.endsWith(".css")){E.log("Bundling changed CSS styles for development."),D=!0;let R=by(T,i),Ee=P.bold(P.gray(R));await Je(async()=>await Zo(i,Yt(i),!0),{start:`Bundling with Tailwind: ${Ee}`,success:`Bundled with Tailwind: ${Ee}`,error:`Failed to bundle with Tailwind: ${Ee}`})}D||(pe(),pe(P.grey("CSS styles not found for this project.")),pe(P.gray(`Checked: ${P.bold(s)}`)),pe())}A&&(zo("Building binary executables."),pe("IMPORTANT: Top-level await is not supported yet.",["bold","yellow"]),pe("Your program cannot be built to a binary if it contains TLA. Wrap with an async iife for now."),pe("See: https://github.com/vercel/pkg/issues/1291"),await DA()),!c&&(r||await Je(async()=>await $o(),{start:"Generating type declarations.",success:`Generated declarations for ${oe.length} files.`,error:"Failed to generate type declarations."}),pe("Build complete.",["green"],{preLines:1}))},qB=async(e,t)=>await yt({input:e,...t});import{resolve as $A}from"path";var qA=ke(hn(),1);import{copyFile as Iy,mkdir as ra}from"fs/promises";import{dirname as ky,resolve as Xt}from"path";var NA={"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},PA={packageJson:{type:"module",platform:"node",engines:{node:">=14"},types:"dist/index.d.ts",files:["dist"],exports:NA,scripts:{dev:"tsmodule dev",build:"tsmodule build",pretest:"pnpm build",test:"ava",prepublishOnly:"pnpm test",lint:"eslint src --fix"}},files:[".github/**",".eslintrc.yml",".gitignore","tsconfig.json","LICENSE","ava.config.mjs"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","ava","typescript","pkg","eslint@^8.0.1","eslint-config-standard-with-typescript@latest","@typescript-eslint/eslint-plugin@^5.0.0","eslint-plugin-import@^2.25.2","eslint-plugin-n@^15.0.0","eslint-plugin-promise@^6.0.0"]},Rr={default:PA,react:{packageJson:{...PA.packageJson,platform:"browser",style:"dist/bundle.css",exports:{...NA,"./*":"./dist/components/*/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"pnpm build",test:"ava",prepublishOnly:"pnpm test && pnpm export"}},files:[".github/**",".gitignore",".eslintrc.yml","next-env.d.ts","next.config.js","postcss.config.cjs","tailwind.config.cjs"],dependencies:["react@^18.2.0","react-dom@^18.2.0"],devDependencies:["@types/react@^18.0.23","@types/react-dom@^18.0.7","eslint-plugin-react@latest","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as Ry,resolve as Qy}from"path";import{fileURLToPath as Ty}from"url";var Jn=Qy(Ry(Ty(import.meta.url)),"..");var jA=e=>Xt(Jn,`./templates/${e}`),ia=async({template:e,targetDir:t=process.cwd()})=>{let r=de({log:!1}),n=jA(e),i=Xt(t);await ra(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})},na=async({template:e,targetDir:t=process.cwd()})=>{let r=he(na);r.log("Copying template files",{template:e,targetDir:t});let n=jA(e),i=Xt(t);await ra(i,{recursive:!0});let s=await(0,qA.default)(Rr[e].files,{cwd:n,dot:!0});if(s.length)for(let o of s){let a=Xt(n,o),l=Xt(i,o);r.log({sourcePath:a,replacementPath:l}),await ra(ky(l),{recursive:!0}),await Iy(a,l)}},MA=async({template:e,targetDir:t=process.cwd()})=>{let r=Xt(t),n=Rr[e].packageJson;return await Hn(r,n)},FA=async({template:e,targetDir:t=process.cwd()})=>{let r=de({cwd:t}),n=Rr[e].dependencies,i=Rr[e].devDependencies;n.length&&await r.run(`pnpm add ${n.join(" ")}`),i.length&&await r.run(`pnpm add -D ${i.join(" ")}`)},UA=async({template:e,targetDir:t=process.cwd()})=>{let r={template:"default",targetDir:t};if(await na(r),await MA(r),await FA(r),e==="default")return;let n={template:e,targetDir:t};await na(n),await MA(n),await FA(n)};var lw=async(e,{react:t=!1})=>{let r=t?"react":"default",n=Ge({text:`Creating new module ${P.blueBright(e)}.`,indent:2}).start();await ia({template:"default",targetDir:e}),await Hn($A(process.cwd(),e),{name:e}),r!=="default"&&await ia({template:r,targetDir:e}),n.succeed("Project created."),await UA({template:r,targetDir:e}),n.succeed("Dependencies installed."),await de({cwd:$A(e),stdio:["ignore","ignore","inherit"]}).run("git init"),n.succeed("Set up as Git repository.")};import{relative as Jy,resolve as Yy}from"path";import{existsSync as Wy}from"fs";import{lstat as Vy}from"fs/promises";var cp=ke(ap(),1);var lp=()=>{console.clear()},up=e=>{console.log(),console.group(),console.log(P.blue(`Built ${P.bold(e)}.`)),console.log(P.blue(new Date().toLocaleString())),console.groupEnd()},Cw=async({format:e="esm"})=>{let t=process.cwd(),r=de();process.platform!=="win32"&&await r.run("clear"),lp(),await yt({format:e,dev:!0}),up("src/**/*"),(0,cp.default)(Yy(t,"src"),{recursive:!0}).on("change",async(n,i)=>{if(!Wy(i)||(await Vy(i)).isDirectory())return;lp();let l=Date.now();try{let u=i.endsWith(".css");await yt({dev:!0,runtimeOnly:!0,input:i,clear:!1,styles:null})}catch(u){Pr("ERROR:",u)}let c=Date.now()-l;console.log(),Ge({text:P.blueBright(`Dev refresh finished in ${P.bold(`${c}ms`)}.`),indent:2}).succeed(),up(Jy(t,i))})};import{pathToFileURL as Xy}from"url";import{resolve as Zy}from"path";var Sw=async()=>{let e=Zy(Jn,"dist/loader/index.js"),t=["--no-warnings","--loader",Xy(e).href,process.argv.slice(2)],r=de({stdio:"inherit"}),{code:n}=await r.run(`node ${t.join(" ")}`);process.exit(n??0)};export{yt as build,qB as buildCommand,lw as create,Cw as dev,Sw as execute,Yo as normalizeImportSpecifiers,Rr as specification};
|
34
34
|
/*! Bundled license information:
|
35
35
|
|
36
36
|
is-extglob/index.js:
|
package/package.json
CHANGED