@tsmodule/tsmodule 41.28.0 → 41.29.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,79 @@
1
+
2
+ /** __ESM_SHIM_START */
3
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
4
+ /** __ESM_SHIM_END */
5
+
6
+ import{a as x,b as g,c as Pe,d as fe,e as qt,f as Mo,g as gt,i as tt,j as Fo}from"./chunk-UNZJKJGP.js";var zo=g(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.splitWhen=mt.flatten=void 0;function HA(e){return e.reduce((t,r)=>[].concat(t,r),[])}mt.flatten=HA;function UA(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}mt.splitWhen=UA});var ea=g(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.isEnoentCodeError=void 0;function $A(e){return e.code==="ENOENT"}Br.isEnoentCodeError=$A});var ta=g(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.createDirentFromStats=void 0;var $n=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function KA(e,t){return new $n(e,t)}vr.createDirentFromStats=KA});var ra=g(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.removeLeadingDotSegment=Qe.escape=Qe.makeAbsolute=Qe.unixify=void 0;var GA=x("path"),JA=2,YA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function WA(e){return e.replace(/\\/g,"/")}Qe.unixify=WA;function VA(e,t){return GA.resolve(e,t)}Qe.makeAbsolute=VA;function XA(e){return e.replace(YA,"\\$2")}Qe.escape=XA;function ZA(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(JA)}return e}Qe.removeLeadingDotSegment=ZA});var ia=g((Gm,na)=>{na.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var aa=g((Jm,oa)=>{var zA=ia(),sa={"{":"}","(":")","[":"]"},eh=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var l=sa[a];if(l){var c=e.indexOf(l,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},th=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=sa[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};oa.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(zA(t))return!0;var n=eh;return r&&r.strict===!1&&(n=th),n(t)}});var ua=g((Ym,la)=>{"use strict";var rh=aa(),nh=x("path").posix.dirname,ih=x("os").platform()==="win32",Kn="/",sh=/\\/g,oh=/[\{\[].*[\}\]]$/,ah=/(^|[^\\])([\{\[]|\([^\)]+$)/,lh=/\\([\!\*\?\|\[\]\(\)\{\}])/g;la.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&ih&&t.indexOf(Kn)<0&&(t=t.replace(sh,Kn)),oh.test(t)&&(t+=Kn),t+="a";do t=nh(t);while(rh(t)||ah.test(t));return t.replace(lh,"$1")}});var xr=g(Ee=>{"use strict";Ee.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Ee.find=(e,t)=>e.nodes.find(r=>r.type===t);Ee.exceedsLimit=(e,t,r=1,n)=>n===!1||!Ee.isInteger(e)||!Ee.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Ee.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Ee.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Ee.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Ee.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Ee.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Ee.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var wr=g((Vm,fa)=>{"use strict";var ca=xr();fa.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&ca.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&ca.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(e)}});var ha=g((Xm,Aa)=>{"use strict";Aa.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var ba=g((Zm,Ca)=>{"use strict";var pa=ha(),rt=(e,t,r)=>{if(pa(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(pa(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),l=e+":"+t+"="+i+s+o+a;if(rt.cache.hasOwnProperty(l))return rt.cache[l].result;let c=Math.min(e,t),u=Math.max(e,t);if(Math.abs(c-u)===1){let E=e+"|"+t;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let h=ya(e)||ya(t),A={min:e,max:t,a:c,b:u},b=[],d=[];if(h&&(A.isPadded=h,A.maxLen=String(A.max).length),c<0){let E=u<0?Math.abs(u):1;d=da(E,Math.abs(c),A,n),c=A.a=0}return u>=0&&(b=da(c,u,A,n)),A.negatives=d,A.positives=b,A.result=uh(d,b,n),n.capture===!0?A.result=`(${A.result})`:n.wrap!==!1&&b.length+d.length>1&&(A.result=`(?:${A.result})`),rt.cache[l]=A,A.result};function uh(e,t,r){let n=Gn(e,t,"-",!1,r)||[],i=Gn(t,e,"",!1,r)||[],s=Gn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function ch(e,t){let r=1,n=1,i=_a(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=_a(e,r);for(i=Ea(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Ea(t+1,n)-1;return s=[...s],s.sort(hh),s}function fh(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Ah(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,c]=n[a];l===c?s+=l:l!=="0"||c!=="9"?s+=ph(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function da(e,t,r,n){let i=ch(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let c=i[l],u=fh(String(o),String(c),n),h="";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+ma(a.count),o=c+1;continue}r.isPadded&&(h=dh(c,r,n)),u.string=h+u.pattern+ma(u.count),s.push(u),o=c+1,a=u}return s}function Gn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!ga(t,"string",a)&&s.push(r+a),n&&ga(t,"string",a)&&s.push(r+a)}return s}function Ah(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function hh(e,t){return e>t?1:t>e?-1:0}function ga(e,t,r){return e.some(n=>n[t]===r)}function _a(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Ea(e,t){return e-e%Math.pow(10,t)}function ma(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function ph(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function ya(e){return/^-?(0+)\d/.test(e)}function dh(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}rt.cache={};rt.clearCache=()=>rt.cache={};Ca.exports=rt});var Wn=g((zm,Ia)=>{"use strict";var gh=x("util"),xa=ba(),Ba=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),_h=e=>t=>e===!0?Number(t):String(t),Jn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ut=e=>Number.isInteger(+e),Yn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Eh=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,mh=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},va=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},yh=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},wa=(e,t,r,n)=>{if(r)return xa(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Sa=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return xa(e,t,r)},Qa=(...e)=>new RangeError("Invalid range arguments: "+gh.inspect(...e)),Ra=(e,t,r)=>{if(r.strictRanges===!0)throw Qa([e,t]);return[]},Ch=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},bh=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Qa([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),l=String(t),c=String(r);r=Math.max(Math.abs(r),1);let u=Yn(a)||Yn(l)||Yn(c),h=u?Math.max(a.length,l.length,c.length):0,A=u===!1&&Eh(e,t,n)===!1,b=n.transform||_h(A);if(n.toRegex&&r===1)return wa(va(e,h),va(t,h),!0,n);let d={negatives:[],positives:[]},E=O=>d[O<0?"negatives":"positives"].push(Math.abs(O)),B=[],C=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?E(i):B.push(mh(b(i,C),h,A)),i=o?i-r:i+r,C++;return n.toRegex===!0?r>1?yh(d,n):Sa(B,null,{wrap:!1,...n}):B},Bh=(e,t,r=1,n={})=>{if(!Ut(e)&&e.length>1||!Ut(t)&&t.length>1)return Ra(e,t,n);let i=n.transform||(A=>String.fromCharCode(A)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return wa(l,c,!1,n);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?Sa(u,null,{wrap:!1,options:n}):u},Sr=(e,t,r,n={})=>{if(t==null&&Jn(e))return[e];if(!Jn(e)||!Jn(t))return Ra(e,t,n);if(typeof r=="function")return Sr(e,t,1,{transform:r});if(Ba(r))return Sr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Ut(r)?Ut(e)&&Ut(t)?bh(e,t,r,i):Bh(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Ba(r)?Ch(r,i):Sr(e,t,1,r)};Ia.exports=Sr});var ka=g((ey,Da)=>{"use strict";var vh=Wn(),Ta=xr(),xh=(e,t={})=>{let r=(n,i={})=>{let s=Ta.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,l=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=Ta.reduce(n.nodes),h=vh(...u,{...t,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let u of n.nodes)c+=r(u,n);return c};return r(e)};Da.exports=xh});var Pa=g((ty,Oa)=>{"use strict";var wh=Wn(),La=wr(),yt=xr(),nt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?yt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(nt(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?nt(i,s,r):i+s);return yt.flatten(n)},Sh=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(nt(a.pop(),La(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(nt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=yt.reduce(i.nodes);if(yt.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let A=wh(...h,t);A.length===0&&(A=La(i,t)),a.push(nt(a.pop(),A)),i.nodes=[];return}let l=yt.encloseBrace(i),c=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let h=0;h<i.nodes.length;h++){let A=i.nodes[h];if(A.type==="comma"&&i.type==="brace"){h===1&&c.push(""),c.push("");continue}if(A.type==="close"){a.push(nt(a.pop(),c,l));continue}if(A.value&&A.type!=="open"){c.push(nt(c.pop(),A.value));continue}A.nodes&&n(A,i)}return c};return yt.flatten(n(e))};Oa.exports=Sh});var Ma=g((ry,Na)=>{"use strict";Na.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:`
7
+ `,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 Ua=g((ny,Ha)=>{"use strict";var Qh=wr(),{MAX_LENGTH:Fa,CHAR_BACKSLASH:Vn,CHAR_BACKTICK:Rh,CHAR_COMMA:Ih,CHAR_DOT:Th,CHAR_LEFT_PARENTHESES:Dh,CHAR_RIGHT_PARENTHESES:kh,CHAR_LEFT_CURLY_BRACE:Lh,CHAR_RIGHT_CURLY_BRACE:Oh,CHAR_LEFT_SQUARE_BRACKET:qa,CHAR_RIGHT_SQUARE_BRACKET:ja,CHAR_DOUBLE_QUOTE:Ph,CHAR_SINGLE_QUOTE:Nh,CHAR_NO_BREAK_SPACE:Mh,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Fh}=Ma(),qh=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Fa,r.maxLength):Fa;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,l=0,c=e.length,u=0,h=0,A,b={},d=()=>e[u++],E=B=>{if(B.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&B.type==="text"){a.value+=B.value;return}return o.nodes.push(B),B.parent=o,B.prev=a,a=B,B};for(E({type:"bos"});u<c;)if(o=s[s.length-1],A=d(),!(A===Fh||A===Mh)){if(A===Vn){E({type:"text",value:(t.keepEscaping?A:"")+d()});continue}if(A===ja){E({type:"text",value:"\\"+A});continue}if(A===qa){l++;let B=!0,C;for(;u<c&&(C=d());){if(A+=C,C===qa){l++;continue}if(C===Vn){A+=d();continue}if(C===ja&&(l--,l===0))break}E({type:"text",value:A});continue}if(A===Dh){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:A});continue}if(A===kh){if(o.type!=="paren"){E({type:"text",value:A});continue}o=s.pop(),E({type:"text",value:A}),o=s[s.length-1];continue}if(A===Ph||A===Nh||A===Rh){let B=A,C;for(t.keepQuotes!==!0&&(A="");u<c&&(C=d());){if(C===Vn){A+=C+d();continue}if(C===B){t.keepQuotes===!0&&(A+=C);break}A+=C}E({type:"text",value:A});continue}if(A===Lh){h++;let C={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=E(C),s.push(o),E({type:"open",value:A});continue}if(A===Oh){if(o.type!=="brace"){E({type:"text",value:A});continue}let B="close";o=s.pop(),o.close=!0,E({type:B,value:A}),h--,o=s[s.length-1];continue}if(A===Ih&&h>0){if(o.ranges>0){o.ranges=0;let B=o.nodes.shift();o.nodes=[B,{type:"text",value:Qh(o)}]}E({type:"comma",value:A}),o.commas++;continue}if(A===Th&&h>0&&o.commas===0){let B=o.nodes;if(h===0||B.length===0){E({type:"text",value:A});continue}if(a.type==="dot"){if(o.range=[],a.value+=A,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"){B.pop();let C=B[B.length-1];C.value+=a.value+A,a=C,o.ranges--;continue}E({type:"dot",value:A});continue}E({type:"text",value:A})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(O=>{O.nodes||(O.type==="open"&&(O.isOpen=!0),O.type==="close"&&(O.isClose=!0),O.nodes||(O.type="text"),O.invalid=!0)});let B=s[s.length-1],C=B.nodes.indexOf(o);B.nodes.splice(C,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};Ha.exports=qh});var Ga=g((iy,Ka)=>{"use strict";var $a=wr(),jh=ka(),Hh=Pa(),Uh=Ua(),Ae=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=Ae.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Ae.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Ae.parse=(e,t={})=>Uh(e,t);Ae.stringify=(e,t={})=>$a(typeof e=="string"?Ae.parse(e,t):e,t);Ae.compile=(e,t={})=>(typeof e=="string"&&(e=Ae.parse(e,t)),jh(e,t));Ae.expand=(e,t={})=>{typeof e=="string"&&(e=Ae.parse(e,t));let r=Hh(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Ae.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Ae.compile(e,t):Ae.expand(e,t);Ka.exports=Ae});var $t=g((sy,Xa)=>{"use strict";var $h=x("path"),Re="\\\\/",Ja=`[^${Re}]`,Ne="\\.",Kh="\\+",Gh="\\?",Qr="\\/",Jh="(?=.)",Ya="[^/]",Xn=`(?:${Qr}|$)`,Wa=`(?:^|${Qr})`,Zn=`${Ne}{1,2}${Xn}`,Yh=`(?!${Ne})`,Wh=`(?!${Wa}${Zn})`,Vh=`(?!${Ne}{0,1}${Xn})`,Xh=`(?!${Zn})`,Zh=`[^.${Qr}]`,zh=`${Ya}*?`,Va={DOT_LITERAL:Ne,PLUS_LITERAL:Kh,QMARK_LITERAL:Gh,SLASH_LITERAL:Qr,ONE_CHAR:Jh,QMARK:Ya,END_ANCHOR:Xn,DOTS_SLASH:Zn,NO_DOT:Yh,NO_DOTS:Wh,NO_DOT_SLASH:Vh,NO_DOTS_SLASH:Xh,QMARK_NO_DOT:Zh,STAR:zh,START_ANCHOR:Wa},ep={...Va,SLASH_LITERAL:`[${Re}]`,QMARK:Ja,STAR:`${Ja}*?`,DOTS_SLASH:`${Ne}{1,2}(?:[${Re}]|$)`,NO_DOT:`(?!${Ne})`,NO_DOTS:`(?!(?:^|[${Re}])${Ne}{1,2}(?:[${Re}]|$))`,NO_DOT_SLASH:`(?!${Ne}{0,1}(?:[${Re}]|$))`,NO_DOTS_SLASH:`(?!${Ne}{1,2}(?:[${Re}]|$))`,QMARK_NO_DOT:`[^.${Re}]`,START_ANCHOR:`(?:^|[${Re}])`,END_ANCHOR:`(?:[${Re}]|$)`},tp={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"};Xa.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:tp,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:$h.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?ep:Va}}});var Kt=g(ue=>{"use strict";var rp=x("path"),np=process.platform==="win32",{REGEX_BACKSLASH:ip,REGEX_REMOVE_BACKSLASH:sp,REGEX_SPECIAL_CHARS:op,REGEX_SPECIAL_CHARS_GLOBAL:ap}=$t();ue.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ue.hasRegexChars=e=>op.test(e);ue.isRegexChar=e=>e.length===1&&ue.hasRegexChars(e);ue.escapeRegex=e=>e.replace(ap,"\\$1");ue.toPosixSlashes=e=>e.replace(ip,"/");ue.removeBackslashes=e=>e.replace(sp,t=>t==="\\"?"":t);ue.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ue.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:np===!0||rp.sep==="\\";ue.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ue.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ue.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ue.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var sl=g((ay,il)=>{"use strict";var Za=Kt(),{CHAR_ASTERISK:zn,CHAR_AT:lp,CHAR_BACKWARD_SLASH:Gt,CHAR_COMMA:up,CHAR_DOT:ei,CHAR_EXCLAMATION_MARK:ti,CHAR_FORWARD_SLASH:nl,CHAR_LEFT_CURLY_BRACE:ri,CHAR_LEFT_PARENTHESES:ni,CHAR_LEFT_SQUARE_BRACKET:cp,CHAR_PLUS:fp,CHAR_QUESTION_MARK:za,CHAR_RIGHT_CURLY_BRACE:Ap,CHAR_RIGHT_PARENTHESES:el,CHAR_RIGHT_SQUARE_BRACKET:hp}=$t(),tl=e=>e===nl||e===Gt,rl=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},pp=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=e,c=-1,u=0,h=0,A=!1,b=!1,d=!1,E=!1,B=!1,C=!1,O=!1,N=!1,re=!1,S=!1,M=0,Q,v,L={value:"",depth:0,isGlob:!1},G=()=>c>=n,_=()=>l.charCodeAt(c+1),H=()=>(Q=v,l.charCodeAt(++c));for(;c<n;){v=H();let U;if(v===Gt){O=L.backslashes=!0,v=H(),v===ri&&(C=!0);continue}if(C===!0||v===ri){for(M++;G()!==!0&&(v=H());){if(v===Gt){O=L.backslashes=!0,H();continue}if(v===ri){M++;continue}if(C!==!0&&v===ei&&(v=H())===ei){if(A=L.isBrace=!0,d=L.isGlob=!0,S=!0,i===!0)continue;break}if(C!==!0&&v===up){if(A=L.isBrace=!0,d=L.isGlob=!0,S=!0,i===!0)continue;break}if(v===Ap&&(M--,M===0)){C=!1,A=L.isBrace=!0,S=!0;break}}if(i===!0)continue;break}if(v===nl){if(s.push(c),o.push(L),L={value:"",depth:0,isGlob:!1},S===!0)continue;if(Q===ei&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(v===fp||v===lp||v===zn||v===za||v===ti)===!0&&_()===ni){if(d=L.isGlob=!0,E=L.isExtglob=!0,S=!0,v===ti&&c===u&&(re=!0),i===!0){for(;G()!==!0&&(v=H());){if(v===Gt){O=L.backslashes=!0,v=H();continue}if(v===el){d=L.isGlob=!0,S=!0;break}}continue}break}if(v===zn){if(Q===zn&&(B=L.isGlobstar=!0),d=L.isGlob=!0,S=!0,i===!0)continue;break}if(v===za){if(d=L.isGlob=!0,S=!0,i===!0)continue;break}if(v===cp){for(;G()!==!0&&(U=H());){if(U===Gt){O=L.backslashes=!0,H();continue}if(U===hp){b=L.isBracket=!0,d=L.isGlob=!0,S=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&v===ti&&c===u){N=L.negated=!0,u++;continue}if(r.noparen!==!0&&v===ni){if(d=L.isGlob=!0,i===!0){for(;G()!==!0&&(v=H());){if(v===ni){O=L.backslashes=!0,v=H();continue}if(v===el){S=!0;break}}continue}break}if(d===!0){if(S=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,d=!1);let F=l,we="",p="";u>0&&(we=l.slice(0,u),l=l.slice(u),h-=u),F&&d===!0&&h>0?(F=l.slice(0,h),p=l.slice(h)):d===!0?(F="",p=l):F=l,F&&F!==""&&F!=="/"&&F!==l&&tl(F.charCodeAt(F.length-1))&&(F=F.slice(0,-1)),r.unescape===!0&&(p&&(p=Za.removeBackslashes(p)),F&&O===!0&&(F=Za.removeBackslashes(F)));let f={prefix:we,input:e,start:u,base:F,glob:p,isBrace:A,isBracket:b,isGlob:d,isExtglob:E,isGlobstar:B,negated:N,negatedExtglob:re};if(r.tokens===!0&&(f.maxDepth=0,tl(v)||o.push(L),f.tokens=o),r.parts===!0||r.tokens===!0){let U;for(let T=0;T<s.length;T++){let ge=U?U+1:u,Se=s[T],ce=e.slice(ge,Se);r.tokens&&(T===0&&u!==0?(o[T].isPrefix=!0,o[T].value=we):o[T].value=ce,rl(o[T]),f.maxDepth+=o[T].depth),(T!==0||ce!=="")&&a.push(ce),U=Se}if(U&&U+1<e.length){let T=e.slice(U+1);a.push(T),r.tokens&&(o[o.length-1].value=T,rl(o[o.length-1]),f.maxDepth+=o[o.length-1].depth)}f.slashes=s,f.parts=a}return f};il.exports=pp});var ll=g((ly,al)=>{"use strict";var Rr=$t(),he=Kt(),{MAX_LENGTH:Ir,POSIX_REGEX_SOURCE:dp,REGEX_NON_SPECIAL_CHARS:gp,REGEX_SPECIAL_CHARS_BACKREF:_p,REPLACEMENTS:ol}=Rr,Ep=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>he.escapeRegex(i)).join("..")}return r},Ct=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,ii=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=ol[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Ir,r.maxLength):Ir,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=he.isWindows(t),c=Rr.globChars(l),u=Rr.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:A,SLASH_LITERAL:b,ONE_CHAR:d,DOTS_SLASH:E,NO_DOT:B,NO_DOT_SLASH:C,NO_DOTS_SLASH:O,QMARK:N,QMARK_NO_DOT:re,STAR:S,START_ANCHOR:M}=c,Q=y=>`(${a}(?:(?!${M}${y.dot?E:h}).)*?)`,v=r.dot?"":B,L=r.dot?N:re,G=r.bash===!0?Q(r):S;r.capture&&(G=`(${G})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let _={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=he.removePrefix(e,_),i=e.length;let H=[],F=[],we=[],p=s,f,U=()=>_.index===i-1,T=_.peek=(y=1)=>e[_.index+y],ge=_.advance=()=>e[++_.index]||"",Se=()=>e.slice(_.index+1),ce=(y="",K=0)=>{_.consumed+=y,_.index+=K},_r=y=>{_.output+=y.output!=null?y.output:y.value,ce(y.value)},SA=()=>{let y=1;for(;T()==="!"&&(T(2)!=="("||T(3)==="?");)ge(),_.start++,y++;return y%2===0?!1:(_.negated=!0,_.start++,!0)},Er=y=>{_[y]++,we.push(y)},et=y=>{_[y]--,we.pop()},D=y=>{if(p.type==="globstar"){let K=_.braces>0&&(y.type==="comma"||y.type==="brace"),m=y.extglob===!0||H.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!K&&!m&&(_.output=_.output.slice(0,-p.output.length),p.type="star",p.value="*",p.output=G,_.output+=p.output)}if(H.length&&y.type!=="paren"&&(H[H.length-1].inner+=y.value),(y.value||y.output)&&_r(y),p&&p.type==="text"&&y.type==="text"){p.value+=y.value,p.output=(p.output||"")+y.value;return}y.prev=p,o.push(y),p=y},mr=(y,K)=>{let m={...u[K],conditions:1,inner:""};m.prev=p,m.parens=_.parens,m.output=_.output;let R=(r.capture?"(":"")+m.open;Er("parens"),D({type:y,value:K,output:_.output?"":d}),D({type:"paren",extglob:!0,value:ge(),output:R}),H.push(m)},QA=y=>{let K=y.close+(r.capture?")":""),m;if(y.type==="negate"){let R=G;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(R=Q(r)),(R!==G||U()||/^\)+$/.test(Se()))&&(K=y.close=`)$))${R}`),y.inner.includes("*")&&(m=Se())&&/^\.[^\\/.]+$/.test(m)){let Z=ii(m,{...t,fastpaths:!1}).output;K=y.close=`)${Z})${R})`}y.prev.type==="bos"&&(_.negatedExtglob=!0)}D({type:"paren",extglob:!0,value:f,output:K}),et("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let y=!1,K=e.replace(_p,(m,R,Z,le,ne,Nn)=>le==="\\"?(y=!0,m):le==="?"?R?R+le+(ne?N.repeat(ne.length):""):Nn===0?L+(ne?N.repeat(ne.length):""):N.repeat(Z.length):le==="."?h.repeat(Z.length):le==="*"?R?R+le+(ne?G:""):G:R?m:`\\${m}`);return y===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,m=>m.length%2===0?"\\\\":m?"\\":"")),K===e&&r.contains===!0?(_.output=e,_):(_.output=he.wrapOutput(K,_,t),_)}for(;!U();){if(f=ge(),f==="\0")continue;if(f==="\\"){let m=T();if(m==="/"&&r.bash!==!0||m==="."||m===";")continue;if(!m){f+="\\",D({type:"text",value:f});continue}let R=/^\\+/.exec(Se()),Z=0;if(R&&R[0].length>2&&(Z=R[0].length,_.index+=Z,Z%2!==0&&(f+="\\")),r.unescape===!0?f=ge():f+=ge(),_.brackets===0){D({type:"text",value:f});continue}}if(_.brackets>0&&(f!=="]"||p.value==="["||p.value==="[^")){if(r.posix!==!1&&f===":"){let m=p.value.slice(1);if(m.includes("[")&&(p.posix=!0,m.includes(":"))){let R=p.value.lastIndexOf("["),Z=p.value.slice(0,R),le=p.value.slice(R+2),ne=dp[le];if(ne){p.value=Z+ne,_.backtrack=!0,ge(),!s.output&&o.indexOf(p)===1&&(s.output=d);continue}}}(f==="["&&T()!==":"||f==="-"&&T()==="]")&&(f=`\\${f}`),f==="]"&&(p.value==="["||p.value==="[^")&&(f=`\\${f}`),r.posix===!0&&f==="!"&&p.value==="["&&(f="^"),p.value+=f,_r({value:f});continue}if(_.quotes===1&&f!=='"'){f=he.escapeRegex(f),p.value+=f,_r({value:f});continue}if(f==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&D({type:"text",value:f});continue}if(f==="("){Er("parens"),D({type:"paren",value:f});continue}if(f===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Ct("opening","("));let m=H[H.length-1];if(m&&_.parens===m.parens+1){QA(H.pop());continue}D({type:"paren",value:f,output:_.parens?")":"\\)"}),et("parens");continue}if(f==="["){if(r.nobracket===!0||!Se().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Ct("closing","]"));f=`\\${f}`}else Er("brackets");D({type:"bracket",value:f});continue}if(f==="]"){if(r.nobracket===!0||p&&p.type==="bracket"&&p.value.length===1){D({type:"text",value:f,output:`\\${f}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Ct("opening","["));D({type:"text",value:f,output:`\\${f}`});continue}et("brackets");let m=p.value.slice(1);if(p.posix!==!0&&m[0]==="^"&&!m.includes("/")&&(f=`/${f}`),p.value+=f,_r({value:f}),r.literalBrackets===!1||he.hasRegexChars(m))continue;let R=he.escapeRegex(p.value);if(_.output=_.output.slice(0,-p.value.length),r.literalBrackets===!0){_.output+=R,p.value=R;continue}p.value=`(${a}${R}|${p.value})`,_.output+=p.value;continue}if(f==="{"&&r.nobrace!==!0){Er("braces");let m={type:"brace",value:f,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};F.push(m),D(m);continue}if(f==="}"){let m=F[F.length-1];if(r.nobrace===!0||!m){D({type:"text",value:f,output:f});continue}let R=")";if(m.dots===!0){let Z=o.slice(),le=[];for(let ne=Z.length-1;ne>=0&&(o.pop(),Z[ne].type!=="brace");ne--)Z[ne].type!=="dots"&&le.unshift(Z[ne].value);R=Ep(le,r),_.backtrack=!0}if(m.comma!==!0&&m.dots!==!0){let Z=_.output.slice(0,m.outputIndex),le=_.tokens.slice(m.tokensIndex);m.value=m.output="\\{",f=R="\\}",_.output=Z;for(let ne of le)_.output+=ne.output||ne.value}D({type:"brace",value:f,output:R}),et("braces"),F.pop();continue}if(f==="|"){H.length>0&&H[H.length-1].conditions++,D({type:"text",value:f});continue}if(f===","){let m=f,R=F[F.length-1];R&&we[we.length-1]==="braces"&&(R.comma=!0,m="|"),D({type:"comma",value:f,output:m});continue}if(f==="/"){if(p.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",o.pop(),p=s;continue}D({type:"slash",value:f,output:b});continue}if(f==="."){if(_.braces>0&&p.type==="dot"){p.value==="."&&(p.output=h);let m=F[F.length-1];p.type="dots",p.output+=f,p.value+=f,m.dots=!0;continue}if(_.braces+_.parens===0&&p.type!=="bos"&&p.type!=="slash"){D({type:"text",value:f,output:h});continue}D({type:"dot",value:f,output:h});continue}if(f==="?"){if(!(p&&p.value==="(")&&r.noextglob!==!0&&T()==="("&&T(2)!=="?"){mr("qmark",f);continue}if(p&&p.type==="paren"){let R=T(),Z=f;if(R==="<"&&!he.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(p.value==="("&&!/[!=<:]/.test(R)||R==="<"&&!/<([!=]|\w+>)/.test(Se()))&&(Z=`\\${f}`),D({type:"text",value:f,output:Z});continue}if(r.dot!==!0&&(p.type==="slash"||p.type==="bos")){D({type:"qmark",value:f,output:re});continue}D({type:"qmark",value:f,output:N});continue}if(f==="!"){if(r.noextglob!==!0&&T()==="("&&(T(2)!=="?"||!/[!=<:]/.test(T(3)))){mr("negate",f);continue}if(r.nonegate!==!0&&_.index===0){SA();continue}}if(f==="+"){if(r.noextglob!==!0&&T()==="("&&T(2)!=="?"){mr("plus",f);continue}if(p&&p.value==="("||r.regex===!1){D({type:"plus",value:f,output:A});continue}if(p&&(p.type==="bracket"||p.type==="paren"||p.type==="brace")||_.parens>0){D({type:"plus",value:f});continue}D({type:"plus",value:A});continue}if(f==="@"){if(r.noextglob!==!0&&T()==="("&&T(2)!=="?"){D({type:"at",extglob:!0,value:f,output:""});continue}D({type:"text",value:f});continue}if(f!=="*"){(f==="$"||f==="^")&&(f=`\\${f}`);let m=gp.exec(Se());m&&(f+=m[0],_.index+=m[0].length),D({type:"text",value:f});continue}if(p&&(p.type==="globstar"||p.star===!0)){p.type="star",p.star=!0,p.value+=f,p.output=G,_.backtrack=!0,_.globstar=!0,ce(f);continue}let y=Se();if(r.noextglob!==!0&&/^\([^?]/.test(y)){mr("star",f);continue}if(p.type==="star"){if(r.noglobstar===!0){ce(f);continue}let m=p.prev,R=m.prev,Z=m.type==="slash"||m.type==="bos",le=R&&(R.type==="star"||R.type==="globstar");if(r.bash===!0&&(!Z||y[0]&&y[0]!=="/")){D({type:"star",value:f,output:""});continue}let ne=_.braces>0&&(m.type==="comma"||m.type==="brace"),Nn=H.length&&(m.type==="pipe"||m.type==="paren");if(!Z&&m.type!=="paren"&&!ne&&!Nn){D({type:"star",value:f,output:""});continue}for(;y.slice(0,3)==="/**";){let yr=e[_.index+4];if(yr&&yr!=="/")break;y=y.slice(3),ce("/**",3)}if(m.type==="bos"&&U()){p.type="globstar",p.value+=f,p.output=Q(r),_.output=p.output,_.globstar=!0,ce(f);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&!le&&U()){_.output=_.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=Q(r)+(r.strictSlashes?")":"|$)"),p.value+=f,_.globstar=!0,_.output+=m.output+p.output,ce(f);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&y[0]==="/"){let yr=y[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=`${Q(r)}${b}|${b}${yr})`,p.value+=f,_.output+=m.output+p.output,_.globstar=!0,ce(f+ge()),D({type:"slash",value:"/",output:""});continue}if(m.type==="bos"&&y[0]==="/"){p.type="globstar",p.value+=f,p.output=`(?:^|${b}|${Q(r)}${b})`,_.output=p.output,_.globstar=!0,ce(f+ge()),D({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-p.output.length),p.type="globstar",p.output=Q(r),p.value+=f,_.output+=p.output,_.globstar=!0,ce(f);continue}let K={type:"star",value:f,output:G};if(r.bash===!0){K.output=".*?",(p.type==="bos"||p.type==="slash")&&(K.output=v+K.output),D(K);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){K.output=f,D(K);continue}(_.index===_.start||p.type==="slash"||p.type==="dot")&&(p.type==="dot"?(_.output+=C,p.output+=C):r.dot===!0?(_.output+=O,p.output+=O):(_.output+=v,p.output+=v),T()!=="*"&&(_.output+=d,p.output+=d)),D(K)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ct("closing","]"));_.output=he.escapeLast(_.output,"["),et("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ct("closing",")"));_.output=he.escapeLast(_.output,"("),et("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ct("closing","}"));_.output=he.escapeLast(_.output,"{"),et("braces")}if(r.strictSlashes!==!0&&(p.type==="star"||p.type==="bracket")&&D({type:"maybe_slash",value:"",output:`${b}?`}),_.backtrack===!0){_.output="";for(let y of _.tokens)_.output+=y.output!=null?y.output:y.value,y.suffix&&(_.output+=y.suffix)}return _};ii.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Ir,r.maxLength):Ir,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=ol[e]||e;let s=he.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:A,STAR:b,START_ANCHOR:d}=Rr.globChars(s),E=r.dot?h:u,B=r.dot?A:u,C=r.capture?"":"?:",O={negated:!1,prefix:""},N=r.bash===!0?".*?":b;r.capture&&(N=`(${N})`);let re=v=>v.noglobstar===!0?N:`(${C}(?:(?!${d}${v.dot?c:o}).)*?)`,S=v=>{switch(v){case"*":return`${E}${l}${N}`;case".*":return`${o}${l}${N}`;case"*.*":return`${E}${N}${o}${l}${N}`;case"*/*":return`${E}${N}${a}${l}${B}${N}`;case"**":return E+re(r);case"**/*":return`(?:${E}${re(r)}${a})?${B}${l}${N}`;case"**/*.*":return`(?:${E}${re(r)}${a})?${B}${N}${o}${l}${N}`;case"**/.*":return`(?:${E}${re(r)}${a})?${o}${l}${N}`;default:{let L=/^(.*?)\.(\w+)$/.exec(v);if(!L)return;let G=S(L[1]);return G?G+o+L[2]:void 0}}},M=he.removePrefix(e,O),Q=S(M);return Q&&r.strictSlashes!==!0&&(Q+=`${a}?`),Q};al.exports=ii});var cl=g((uy,ul)=>{"use strict";var mp=x("path"),yp=sl(),si=ll(),oi=Kt(),Cp=$t(),bp=e=>e&&typeof e=="object"&&!Array.isArray(e),te=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(A=>te(A,t,r));return A=>{for(let b of u){let d=b(A);if(d)return d}return!1}}let n=bp(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=oi.isWindows(t),o=n?te.compileRe(e,t):te.makeRe(e,t,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};l=te(i.ignore,u,r)}let c=(u,h=!1)=>{let{isMatch:A,match:b,output:d}=te.test(u,o,t,{glob:e,posix:s}),E={glob:e,state:a,regex:o,posix:s,input:u,output:d,match:b,isMatch:A};return typeof i.onResult=="function"&&i.onResult(E),A===!1?(E.isMatch=!1,h?E:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,h?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),h?E:!0)};return r&&(c.state=a),c};te.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?oi.toPosixSlashes:null),a=e===n,l=a&&o?o(e):e;return a===!1&&(l=o?o(e):e,a=l===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=te.matchBase(e,t,r,i):a=t.exec(l)),{isMatch:Boolean(a),match:a,output:l}};te.matchBase=(e,t,r,n=oi.isWindows(r))=>(t instanceof RegExp?t:te.makeRe(t,r)).test(mp.basename(e));te.isMatch=(e,t,r)=>te(t,r)(e);te.parse=(e,t)=>Array.isArray(e)?e.map(r=>te.parse(r,t)):si(e,{...t,fastpaths:!1});te.scan=(e,t)=>yp(e,t);te.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let l=te.toRegex(a,t);return n===!0&&(l.state=e),l};te.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=si.fastpaths(e,t)),i.output||(i=si(e,t)),te.compileRe(i,t,r,n)};te.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};te.constants=Cp;ul.exports=te});var Al=g((cy,fl)=>{"use strict";fl.exports=cl()});var _l=g((fy,gl)=>{"use strict";var pl=x("util"),dl=Ga(),Ie=Al(),ai=Kt(),hl=e=>e===""||e==="./",Y=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<t.length;u++){let h=Ie(String(t[u]),{...r,onResult:a},!0),A=h.state.negated||h.state.negatedExtglob;A&&o++;for(let b of e){let d=h(b,!0);(A?!d.isMatch:d.isMatch)&&(A?n.add(d.output):(n.delete(d.output),i.add(d.output)))}}let c=(o===t.length?[...s]:[...i]).filter(u=>!n.has(u));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(u=>u.replace(/\\/g,"")):t}return c};Y.match=Y;Y.matcher=(e,t)=>Ie(e,t);Y.isMatch=(e,t,r)=>Ie(t,r)(e);Y.any=Y.isMatch;Y.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Y(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Y.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${pl.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>Y.contains(e,n,r));if(typeof t=="string"){if(hl(e)||hl(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Y.isMatch(e,t,{...r,contains:!0})};Y.matchKeys=(e,t,r)=>{if(!ai.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Y(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};Y.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Ie(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Y.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Ie(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Y.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${pl.inspect(e)}"`);return[].concat(t).every(n=>Ie(n,r)(e))};Y.capture=(e,t,r)=>{let n=ai.isWindows(r),s=Ie.makeRe(String(e),{...r,capture:!0}).exec(n?ai.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Y.makeRe=(...e)=>Ie.makeRe(...e);Y.scan=(...e)=>Ie.scan(...e);Y.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of dl(String(n),t))r.push(Ie.parse(i,t));return r};Y.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:dl(e,t)};Y.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Y.braces(e,{...t,expand:!0})};gl.exports=Y});var xl=g(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.matchAny=w.convertPatternsToRe=w.makeRe=w.getPatternParts=w.expandBraceExpansion=w.expandPatternsWithBraceExpansion=w.isAffectDepthOfReadingPattern=w.endsWithSlashGlobStar=w.hasGlobStar=w.getBaseDirectory=w.isPatternRelatedToParentDirectory=w.getPatternsOutsideCurrentDirectory=w.getPatternsInsideCurrentDirectory=w.getPositivePatterns=w.getNegativePatterns=w.isPositivePattern=w.isNegativePattern=w.convertToNegativePattern=w.convertToPositivePattern=w.isDynamicPattern=w.isStaticPattern=void 0;var Bp=x("path"),vp=ua(),li=_l(),El="**",xp="\\",wp=/[*?]|^!/,Sp=/\[[^[]*]/,Qp=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Rp=/[!*+?@]\([^(]*\)/,Ip=/,|\.\./;function ml(e,t={}){return!yl(e,t)}w.isStaticPattern=ml;function yl(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(xp)||wp.test(e)||Sp.test(e)||Qp.test(e)||t.extglob!==!1&&Rp.test(e)||t.braceExpansion!==!1&&Tp(e))}w.isDynamicPattern=yl;function Tp(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Ip.test(n)}function Dp(e){return Tr(e)?e.slice(1):e}w.convertToPositivePattern=Dp;function kp(e){return"!"+e}w.convertToNegativePattern=kp;function Tr(e){return e.startsWith("!")&&e[1]!=="("}w.isNegativePattern=Tr;function Cl(e){return!Tr(e)}w.isPositivePattern=Cl;function Lp(e){return e.filter(Tr)}w.getNegativePatterns=Lp;function Op(e){return e.filter(Cl)}w.getPositivePatterns=Op;function Pp(e){return e.filter(t=>!ui(t))}w.getPatternsInsideCurrentDirectory=Pp;function Np(e){return e.filter(ui)}w.getPatternsOutsideCurrentDirectory=Np;function ui(e){return e.startsWith("..")||e.startsWith("./..")}w.isPatternRelatedToParentDirectory=ui;function Mp(e){return vp(e,{flipBackslashes:!1})}w.getBaseDirectory=Mp;function Fp(e){return e.includes(El)}w.hasGlobStar=Fp;function bl(e){return e.endsWith("/"+El)}w.endsWithSlashGlobStar=bl;function qp(e){let t=Bp.basename(e);return bl(e)||ml(t)}w.isAffectDepthOfReadingPattern=qp;function jp(e){return e.reduce((t,r)=>t.concat(Bl(r)),[])}w.expandPatternsWithBraceExpansion=jp;function Bl(e){return li.braces(e,{expand:!0,nodupes:!0})}w.expandBraceExpansion=Bl;function Hp(e,t){let{parts:r}=li.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}w.getPatternParts=Hp;function vl(e,t){return li.makeRe(e,t)}w.makeRe=vl;function Up(e,t){return e.map(r=>vl(r,t))}w.convertPatternsToRe=Up;function $p(e,t){return t.some(r=>r.test(e))}w.matchAny=$p});var Rl=g((hy,Ql)=>{"use strict";var Kp=x("stream"),wl=Kp.PassThrough,Gp=Array.prototype.slice;Ql.exports=Jp;function Jp(){let e=[],t=Gp.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=wl(n);function a(){for(let u=0,h=arguments.length;u<h;u++)e.push(Sl(arguments[u],n));return l(),this}function l(){if(r)return;r=!0;let u=e.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function A(){--h>0||(r=!1,l())}function b(d){function E(){d.removeListener("merge2UnpipeEnd",E),d.removeListener("end",E),s&&d.removeListener("error",B),A()}function B(C){o.emit("error",C)}if(d._readableState.endEmitted)return A();d.on("merge2UnpipeEnd",E),d.on("end",E),s&&d.on("error",B),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<u.length;d++)b(u[d]);A()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function Sl(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Sl(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(wl(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Tl=g(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.merge=void 0;var Yp=Rl();function Wp(e){let t=Yp(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Il(e)),t.once("end",()=>Il(e)),t}Dr.merge=Wp;function Il(e){e.forEach(t=>t.emit("close"))}});var Dl=g(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.isEmpty=bt.isString=void 0;function Vp(e){return typeof e=="string"}bt.isString=Vp;function Xp(e){return e===""}bt.isEmpty=Xp});var Me=g(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.string=se.stream=se.pattern=se.path=se.fs=se.errno=se.array=void 0;var Zp=zo();se.array=Zp;var zp=ea();se.errno=zp;var ed=ta();se.fs=ed;var td=ra();se.path=td;var rd=xl();se.pattern=rd;var nd=Tl();se.stream=nd;var id=Dl();se.string=id});var Ol=g(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.convertPatternGroupToTask=oe.convertPatternGroupsToTasks=oe.groupPatternsByBaseDirectory=oe.getNegativePatternsAsPositive=oe.getPositivePatterns=oe.convertPatternsToTasks=oe.generate=void 0;var Fe=Me();function sd(e,t){let r=kl(e),n=Ll(e,t.ignore),i=r.filter(l=>Fe.pattern.isStaticPattern(l,t)),s=r.filter(l=>Fe.pattern.isDynamicPattern(l,t)),o=ci(i,n,!1),a=ci(s,n,!0);return o.concat(a)}oe.generate=sd;function ci(e,t,r){let n=[],i=Fe.pattern.getPatternsOutsideCurrentDirectory(e),s=Fe.pattern.getPatternsInsideCurrentDirectory(e),o=fi(i),a=fi(s);return n.push(...Ai(o,t,r)),"."in a?n.push(hi(".",s,t,r)):n.push(...Ai(a,t,r)),n}oe.convertPatternsToTasks=ci;function kl(e){return Fe.pattern.getPositivePatterns(e)}oe.getPositivePatterns=kl;function Ll(e,t){return Fe.pattern.getNegativePatterns(e).concat(t).map(Fe.pattern.convertToPositivePattern)}oe.getNegativePatternsAsPositive=Ll;function fi(e){let t={};return e.reduce((r,n)=>{let i=Fe.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}oe.groupPatternsByBaseDirectory=fi;function Ai(e,t,r){return Object.keys(e).map(n=>hi(n,e[n],t,r))}oe.convertPatternGroupsToTasks=Ai;function hi(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Fe.pattern.convertToNegativePattern))}}oe.convertPatternGroupToTask=hi});var Nl=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.removeDuplicateSlashes=Bt.transform=void 0;var od=/(?!^)\/{2,}/g;function ad(e){return e.map(t=>Pl(t))}Bt.transform=ad;function Pl(e){return e.replace(od,"/")}Bt.removeDuplicateSlashes=Pl});var Fl=g(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.read=void 0;function ld(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Ml(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){pi(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Ml(r,s);return}pi(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),pi(r,o)})})}kr.read=ld;function Ml(e,t){e(t)}function pi(e,t){e(null,t)}});var ql=g(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.read=void 0;function ud(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Lr.read=ud});var jl=g(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.createFileSystemAdapter=Ue.FILE_SYSTEM_ADAPTER=void 0;var Or=x("fs");Ue.FILE_SYSTEM_ADAPTER={lstat:Or.lstat,stat:Or.stat,lstatSync:Or.lstatSync,statSync:Or.statSync};function cd(e){return e===void 0?Ue.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ue.FILE_SYSTEM_ADAPTER),e)}Ue.createFileSystemAdapter=cd});var Hl=g(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});var fd=jl(),di=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=fd.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};gi.default=di});var it=g($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.statSync=$e.stat=$e.Settings=void 0;var Ul=Fl(),Ad=ql(),_i=Hl();$e.Settings=_i.default;function hd(e,t,r){if(typeof t=="function"){Ul.read(e,Ei(),t);return}Ul.read(e,Ei(t),r)}$e.stat=hd;function pd(e,t){let r=Ei(t);return Ad.read(e,r)}$e.statSync=pd;function Ei(e={}){return e instanceof _i.default?e:new _i.default(e)}});var Gl=g((vy,Kl)=>{var $l;Kl.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>($l||($l=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Yl=g((xy,Jl)=>{Jl.exports=gd;var dd=Gl();function gd(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(l){function c(){t&&t(l,r),t=null}s?dd(c):c()}function a(l,c,u){r[l]=u,(--n===0||c)&&o(c)}n?i?i.forEach(function(l){e[l](function(c,u){a(l,c,u)})}):e.forEach(function(l,c){l(function(u,h){a(c,u,h)})}):o(null),s=!1}});var mi=g(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Pr=process.versions.node.split(".");if(Pr[0]===void 0||Pr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Wl=Number.parseInt(Pr[0],10),_d=Number.parseInt(Pr[1],10),Vl=10,Ed=10,md=Wl>Vl,yd=Wl===Vl&&_d>=Ed;Nr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=md||yd});var Xl=g(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.createDirentFromStats=void 0;var yi=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Cd(e,t){return new yi(e,t)}Mr.createDirentFromStats=Cd});var Ci=g(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.fs=void 0;var bd=Xl();Fr.fs=bd});var bi=g(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.joinPathSegments=void 0;function Bd(e,t,r){return e.endsWith(r)?e+t:e+r+t}qr.joinPathSegments=Bd});var nu=g(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.readdir=Ke.readdirWithFileTypes=Ke.read=void 0;var vd=it(),Zl=Yl(),xd=mi(),zl=Ci(),eu=bi();function wd(e,t,r){if(!t.stats&&xd.IS_SUPPORT_READDIR_WITH_FILE_TYPES){tu(e,t,r);return}ru(e,t,r)}Ke.read=wd;function tu(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){jr(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:eu.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Bi(r,s);return}let o=s.map(a=>Sd(a,t));Zl(o,(a,l)=>{if(a!==null){jr(r,a);return}Bi(r,l)})})}Ke.readdirWithFileTypes=tu;function Sd(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=zl.fs.createDirentFromStats(e.name,i),r(null,e)})}}function ru(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){jr(r,n);return}let s=i.map(o=>{let a=eu.joinPathSegments(e,o,t.pathSegmentSeparator);return l=>{vd.stat(a,t.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:zl.fs.createDirentFromStats(o,u)};t.stats&&(h.stats=u),l(null,h)})}});Zl(s,(o,a)=>{if(o!==null){jr(r,o);return}Bi(r,a)})})}Ke.readdir=ru;function jr(e,t){e(t)}function Bi(e,t){e(null,t)}});var lu=g(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.readdir=Ge.readdirWithFileTypes=Ge.read=void 0;var Qd=it(),Rd=mi(),iu=Ci(),su=bi();function Id(e,t){return!t.stats&&Rd.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ou(e,t):au(e,t)}Ge.read=Id;function ou(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:su.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=iu.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Ge.readdirWithFileTypes=ou;function au(e,t){return t.fs.readdirSync(e).map(n=>{let i=su.joinPathSegments(e,n,t.pathSegmentSeparator),s=Qd.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:iu.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Ge.readdir=au});var uu=g(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.createFileSystemAdapter=Je.FILE_SYSTEM_ADAPTER=void 0;var vt=x("fs");Je.FILE_SYSTEM_ADAPTER={lstat:vt.lstat,stat:vt.stat,lstatSync:vt.lstatSync,statSync:vt.statSync,readdir:vt.readdir,readdirSync:vt.readdirSync};function Td(e){return e===void 0?Je.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Je.FILE_SYSTEM_ADAPTER),e)}Je.createFileSystemAdapter=Td});var cu=g(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});var Dd=x("path"),kd=it(),Ld=uu(),vi=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Ld.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Dd.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new kd.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};xi.default=vi});var Hr=g(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Settings=Ye.scandirSync=Ye.scandir=void 0;var fu=nu(),Od=lu(),wi=cu();Ye.Settings=wi.default;function Pd(e,t,r){if(typeof t=="function"){fu.read(e,Si(),t);return}fu.read(e,Si(t),r)}Ye.scandir=Pd;function Nd(e,t){let r=Si(t);return Od.read(e,r)}Ye.scandirSync=Nd;function Si(e={}){return e instanceof wi.default?e:new wi.default(e)}});var hu=g((Oy,Au)=>{"use strict";function Md(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Au.exports=Md});var du=g((Py,Qi)=>{"use strict";var Fd=hu();function pu(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Fd(qd),i=null,s=null,o=0,a=null,l={push:E,drain:me,saturated:me,pause:u,paused:!1,concurrency:r,running:c,resume:b,idle:d,length:h,getQueue:A,unshift:B,empty:me,kill:O,killAndDrain:N,error:re};return l;function c(){return o}function u(){l.paused=!0}function h(){for(var S=i,M=0;S;)S=S.next,M++;return M}function A(){for(var S=i,M=[];S;)M.push(S.value),S=S.next;return M}function b(){if(l.paused){l.paused=!1;for(var S=0;S<l.concurrency;S++)o++,C()}}function d(){return o===0&&l.length()===0}function E(S,M){var Q=n.get();Q.context=e,Q.release=C,Q.value=S,Q.callback=M||me,Q.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=Q,s=Q):(i=Q,s=Q,l.saturated()):(o++,t.call(e,Q.value,Q.worked))}function B(S,M){var Q=n.get();Q.context=e,Q.release=C,Q.value=S,Q.callback=M||me,o===l.concurrency||l.paused?i?(Q.next=i,i=Q):(i=Q,s=Q,l.saturated()):(o++,t.call(e,Q.value,Q.worked))}function C(S){S&&n.release(S);var M=i;M?l.paused?o--:(s===i&&(s=null),i=M.next,M.next=null,t.call(e,M.value,M.worked),s===null&&l.empty()):--o===0&&l.drain()}function O(){i=null,s=null,l.drain=me}function N(){i=null,s=null,l.drain(),l.drain=me}function re(S){a=S}}function me(){}function qd(){this.value=null,this.callback=me,this.next=null,this.release=me,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=me,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function jd(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(u,h){t.call(this,u).then(function(A){h(null,A)},h)}var i=pu(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=c,i;function a(u){var h=new Promise(function(A,b){s(u,function(d,E){if(d){b(d);return}A(E)})});return h.catch(me),h}function l(u){var h=new Promise(function(A,b){o(u,function(d,E){if(d){b(d);return}A(E)})});return h.catch(me),h}function c(){if(i.idle())return new Promise(function(A){A()});var u=i.drain,h=new Promise(function(A){i.drain=function(){u(),A()}});return h}}Qi.exports=pu;Qi.exports.promise=jd});var Ur=g(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.joinPathSegments=Te.replacePathSegmentSeparator=Te.isAppliedFilter=Te.isFatalError=void 0;function Hd(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Te.isFatalError=Hd;function Ud(e,t){return e===null||e(t)}Te.isAppliedFilter=Ud;function $d(e,t){return e.split(/[/\\]/).join(t)}Te.replacePathSegmentSeparator=$d;function Kd(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Te.joinPathSegments=Kd});var Ti=g(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});var Gd=Ur(),Ri=class{constructor(t,r){this._root=t,this._settings=r,this._root=Gd.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Ii.default=Ri});var Li=g(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var Jd=x("events"),Yd=Hr(),Wd=du(),$r=Ur(),Vd=Ti(),Di=class extends Vd.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Yd.scandir,this._emitter=new Jd.EventEmitter,this._queue=Wd(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!$r.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=$r.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),$r.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&$r.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ki.default=Di});var gu=g(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var Xd=Li(),Oi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Xd.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Zd(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{zd(t,this._storage)}),this._reader.read()}};Pi.default=Oi;function Zd(e,t){e(t)}function zd(e,t){e(null,t)}});var _u=g(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});var eg=x("stream"),tg=Li(),Ni=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new tg.default(this._root,this._settings),this._stream=new eg.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Mi.default=Ni});var Eu=g(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var rg=Hr(),Kr=Ur(),ng=Ti(),Fi=class extends ng.default{constructor(){super(...arguments),this._scandir=rg.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(Kr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Kr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Kr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Kr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};qi.default=Fi});var mu=g(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});var ig=Eu(),ji=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new ig.default(this._root,this._settings)}read(){return this._reader.read()}};Hi.default=ji});var yu=g($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});var sg=x("path"),og=Hr(),Ui=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,sg.sep),this.fsScandirSettings=new og.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};$i.default=Ui});var Jr=g(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.Settings=De.walkStream=De.walkSync=De.walk=void 0;var Cu=gu(),ag=_u(),lg=mu(),Ki=yu();De.Settings=Ki.default;function ug(e,t,r){if(typeof t=="function"){new Cu.default(e,Gr()).read(t);return}new Cu.default(e,Gr(t)).read(r)}De.walk=ug;function cg(e,t){let r=Gr(t);return new lg.default(e,r).read()}De.walkSync=cg;function fg(e,t){let r=Gr(t);return new ag.default(e,r).read()}De.walkStream=fg;function Gr(e={}){return e instanceof Ki.default?e:new Ki.default(e)}});var Yr=g(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var Ag=x("path"),hg=it(),bu=Me(),Gi=class{constructor(t){this._settings=t,this._fsStatSettings=new hg.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Ag.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:bu.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!bu.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Ji.default=Gi});var Vi=g(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var pg=x("stream"),dg=it(),gg=Jr(),_g=Yr(),Yi=class extends _g.default{constructor(){super(...arguments),this._walkStream=gg.walkStream,this._stat=dg.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new pg.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(l=>{l!==null&&r.entryFilter(l)&&i.push(l),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Wi.default=Yi});var Bu=g(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});var Eg=Jr(),mg=Yr(),yg=Vi(),Xi=class extends mg.default{constructor(){super(...arguments),this._walkAsync=Eg.walk,this._readerStream=new yg.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Zi.default=Xi});var vu=g(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});var xt=Me(),zi=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=xt.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return xt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>xt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:xt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return xt.array.splitWhen(t,r=>r.dynamic&&xt.pattern.hasGlobStar(r.pattern))}};es.default=zi});var xu=g(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});var Cg=vu(),ts=class extends Cg.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>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}};rs.default=ts});var wu=g(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});var Wr=Me(),bg=xu(),ns=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new bg.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Wr.pattern.isAffectDepthOfReadingPattern);return Wr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Wr.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Wr.pattern.matchAny(t,r)}};is.default=ns});var Su=g(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var st=Me(),ss=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=st.pattern.convertPatternsToRe(t,this._micromatchOptions),i=st.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(t.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=st.path.makeAbsolute(this._settings.cwd,t);return st.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=st.path.removeLeadingDotSegment(t),s=st.pattern.matchAny(i,r);return!s&&n?st.pattern.matchAny(i+"/",r):s}};os.default=ss});var Qu=g(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var Bg=Me(),as=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Bg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};ls.default=as});var Iu=g(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});var Ru=Me(),us=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Ru.path.makeAbsolute(this._settings.cwd,r),r=Ru.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};cs.default=us});var Vr=g(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var vg=x("path"),xg=wu(),wg=Su(),Sg=Qu(),Qg=Iu(),fs=class{constructor(t){this._settings=t,this.errorFilter=new Sg.default(this._settings),this.entryFilter=new wg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new xg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Qg.default(this._settings)}_getRootDirectory(t){return vg.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};As.default=fs});var Tu=g(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var Rg=Bu(),Ig=Vr(),hs=class extends Ig.default{constructor(){super(...arguments),this._reader=new Rg.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};ps.default=hs});var Du=g(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});var Tg=x("stream"),Dg=Vi(),kg=Vr(),ds=class extends kg.default{constructor(){super(...arguments),this._reader=new Dg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new Tg.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};gs.default=ds});var ku=g(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var Lg=it(),Og=Jr(),Pg=Yr(),_s=class extends Pg.default{constructor(){super(...arguments),this._walkSync=Og.walkSync,this._statSync=Lg.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Es.default=_s});var Lu=g(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});var Ng=ku(),Mg=Vr(),ms=class extends Mg.default{constructor(){super(...arguments),this._reader=new Ng.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};ys.default=ms});var Ou=g(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var wt=x("fs"),Fg=x("os"),qg=Math.max(Fg.cpus().length,1);St.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:wt.lstat,lstatSync:wt.lstatSync,stat:wt.stat,statSync:wt.statSync,readdir:wt.readdir,readdirSync:wt.readdirSync};var Cs=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,qg),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},St.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};St.default=Cs});var Xr=g((aC,Mu)=>{"use strict";var Pu=Ol(),Nu=Nl(),jg=Tu(),Hg=Du(),Ug=Lu(),bs=Ou(),ot=Me();async function Bs(e,t){Qt(e);let r=vs(e,jg.default,t),n=await Promise.all(r);return ot.array.flatten(n)}(function(e){function t(o,a){Qt(o);let l=vs(o,Ug.default,a);return ot.array.flatten(l)}e.sync=t;function r(o,a){Qt(o);let l=vs(o,Hg.default,a);return ot.stream.merge(l)}e.stream=r;function n(o,a){Qt(o);let l=Nu.transform([].concat(o)),c=new bs.default(a);return Pu.generate(l,c)}e.generateTasks=n;function i(o,a){Qt(o);let l=new bs.default(a);return ot.pattern.isDynamicPattern(o,l)}e.isDynamicPattern=i;function s(o){return Qt(o),ot.path.escape(o)}e.escapePath=s})(Bs||(Bs={}));function vs(e,t,r){let n=Nu.transform([].concat(e)),i=new bs.default(r),s=Pu.generate(n,i),o=new t(i);return s.map(o.read,o)}function Qt(e){if(![].concat(e).every(n=>ot.string.isString(n)&&!ot.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Mu.exports=Bs});var $u=g((bC,Rs)=>{"use strict";var Uu=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Rs.exports=Uu;Rs.exports.default=Uu});var Gu=g((BC,en)=>{"use strict";var n_=$u(),zr=new WeakMap,Ku=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(zr.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return n_(s,e),zr.set(s,n),s};en.exports=Ku;en.exports.default=Ku;en.exports.callCount=e=>{if(!zr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return zr.get(e)}});var Ju=g((vC,tn)=>{tn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&tn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&tn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Zu=g((xC,kt)=>{var W=global.process,at=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};at(W)?(Yu=x("assert"),Tt=Ju(),Wu=/^win/i.test(W.platform),Wt=x("events"),typeof Wt!="function"&&(Wt=Wt.EventEmitter),W.__signal_exit_emitter__?ie=W.__signal_exit_emitter__:(ie=W.__signal_exit_emitter__=new Wt,ie.count=0,ie.emitted={}),ie.infinite||(ie.setMaxListeners(1/0),ie.infinite=!0),kt.exports=function(e,t){if(!at(global.process))return function(){};Yu.equal(typeof e,"function","a callback must be provided for exit handler"),Dt===!1&&Is();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){ie.removeListener(r,e),ie.listeners("exit").length===0&&ie.listeners("afterexit").length===0&&rn()};return ie.on(r,e),n},rn=function(){!Dt||!at(global.process)||(Dt=!1,Tt.forEach(function(t){try{W.removeListener(t,nn[t])}catch{}}),W.emit=sn,W.reallyExit=Ts,ie.count-=1)},kt.exports.unload=rn,lt=function(t,r,n){ie.emitted[t]||(ie.emitted[t]=!0,ie.emit(t,r,n))},nn={},Tt.forEach(function(e){nn[e]=function(){if(at(global.process)){var r=W.listeners(e);r.length===ie.count&&(rn(),lt("exit",null,e),lt("afterexit",null,e),Wu&&e==="SIGHUP"&&(e="SIGINT"),W.kill(W.pid,e))}}}),kt.exports.signals=function(){return Tt},Dt=!1,Is=function(){Dt||!at(global.process)||(Dt=!0,ie.count+=1,Tt=Tt.filter(function(t){try{return W.on(t,nn[t]),!0}catch{return!1}}),W.emit=Xu,W.reallyExit=Vu)},kt.exports.load=Is,Ts=W.reallyExit,Vu=function(t){at(global.process)&&(W.exitCode=t||0,lt("exit",W.exitCode,null),lt("afterexit",W.exitCode,null),Ts.call(W,W.exitCode))},sn=W.emit,Xu=function(t,r){if(t==="exit"&&at(global.process)){r!==void 0&&(W.exitCode=r);var n=sn.apply(this,arguments);return lt("exit",W.exitCode,null),lt("afterexit",W.exitCode,null),n}else return sn.apply(this,arguments)}):kt.exports=function(){return function(){}};var Yu,Tt,Wu,Wt,ie,rn,lt,nn,Dt,Is,Ts,Vu,sn,Xu});var nc=g((TC,o_)=>{o_.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:["◢","◣","◤","◥"]},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:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var oc=g((DC,sc)=>{"use strict";var an=Object.assign({},nc()),ic=Object.keys(an);Object.defineProperty(an,"random",{get(){let e=Math.floor(Math.random()*ic.length),t=ic[e];return an[t]}});sc.exports=an});var ac=g((jC,ln)=>{var c_=function(){"use strict";function e(o,a,l,c){var u;typeof a=="object"&&(l=a.depth,c=a.prototype,u=a.filter,a=a.circular);var h=[],A=[],b=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function d(E,B){if(E===null)return null;if(B==0)return E;var C,O;if(typeof E!="object")return E;if(e.__isArray(E))C=[];else if(e.__isRegExp(E))C=new RegExp(E.source,s(E)),E.lastIndex&&(C.lastIndex=E.lastIndex);else if(e.__isDate(E))C=new Date(E.getTime());else{if(b&&Buffer.isBuffer(E))return Buffer.allocUnsafe?C=Buffer.allocUnsafe(E.length):C=new Buffer(E.length),E.copy(C),C;typeof c>"u"?(O=Object.getPrototypeOf(E),C=Object.create(O)):(C=Object.create(c),O=c)}if(a){var N=h.indexOf(E);if(N!=-1)return A[N];h.push(E),A.push(C)}for(var re in E){var S;O&&(S=Object.getOwnPropertyDescriptor(O,re)),!(S&&S.set==null)&&(C[re]=d(E[re],B-1))}return C}return d(o,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof ln=="object"&&ln.exports&&(ln.exports=c_)});var uc=g((HC,lc)=>{var f_=ac();lc.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=f_(t[r]))}),e}});var fc=g((UC,cc)=>{cc.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 dc=g(($C,Os)=>{"use strict";var A_=uc(),Zt=fc(),hc={nul:0,control:0};Os.exports=function(t){return pc(t,hc)};Os.exports.config=function(e){return e=A_(e||{},hc),function(r){return pc(r,e)}};function pc(e,t){if(typeof e!="string")return Ac(e,t);for(var r=0,n=0;n<e.length;n++){var i=Ac(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Ac(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:h_(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function h_(e){var t=0,r=Zt.length-1,n;if(e<Zt[0][0]||e>Zt[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Zt[n][1])t=n+1;else if(e<Zt[n][0])r=n-1;else return!0;return!1}});var Ns=g((GC,gc)=>{gc.exports=x("stream")});var yc=g((JC,mc)=>{"use strict";function _c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function p_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_c(Object(r),!0).forEach(function(n){d_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_c(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ec(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function __(e,t,r){return t&&Ec(e.prototype,t),r&&Ec(e,r),e}var E_=x("buffer"),un=E_.Buffer,m_=x("util"),Ms=m_.inspect,y_=Ms&&Ms.custom||"inspect";function C_(e,t,r){un.prototype.copy.call(e,t,r)}mc.exports=function(){function e(){g_(this,e),this.head=null,this.tail=null,this.length=0}return __(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++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 n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return un.alloc(0);for(var n=un.allocUnsafe(r>>>0),i=this.head,s=0;i;)C_(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.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?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=un.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:y_,value:function(r,n){return Ms(this,p_({},n,{depth:0,customInspect:!1}))}}]),e}()});var qs=g((YC,bc)=>{"use strict";function b_(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Fs,this,e)):process.nextTick(Fs,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(cn,r):(r._writableState.errorEmitted=!0,process.nextTick(Cc,r,s)):process.nextTick(Cc,r,s):t?(process.nextTick(cn,r),t(s)):process.nextTick(cn,r)}),this)}function Cc(e,t){Fs(e,t),cn(e)}function cn(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function B_(){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 Fs(e,t){e.emit("error",t)}function v_(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}bc.exports={destroy:b_,undestroy:B_,errorOrDestroy:v_}});var We=g((WC,xc)=>{"use strict";var vc={};function ye(e,t,r){r||(r=Error);function n(s,o,a){return typeof t=="string"?t:t(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=e,vc[e]=i}function Bc(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function x_(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function w_(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function S_(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}ye("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);ye("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&x_(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(w_(e," argument"))i=`The ${e} ${n} ${Bc(t,"type")}`;else{let s=S_(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${Bc(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ye("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ye("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});ye("ERR_STREAM_PREMATURE_CLOSE","Premature close");ye("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});ye("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ye("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ye("ERR_STREAM_WRITE_AFTER_END","write after end");ye("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ye("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);ye("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");xc.exports.codes=vc});var js=g((VC,wc)=>{"use strict";var Q_=We().codes.ERR_INVALID_OPT_VALUE;function R_(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function I_(e,t,r,n){var i=R_(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Q_(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}wc.exports={getHighWaterMark:I_}});var Sc=g((XC,Hs)=>{typeof Object.create=="function"?Hs.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Hs.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var ut=g((ZC,$s)=>{try{if(Us=x("util"),typeof Us.inherits!="function")throw"";$s.exports=Us.inherits}catch{$s.exports=Sc()}var Us});var Rc=g((zC,Qc)=>{Qc.exports=x("util").deprecate});var Js=g((eb,Oc)=>{"use strict";Oc.exports=ee;function Tc(e){var t=this;this.next=null,this.entry=null,this.finish=function(){n0(t,e)}}var Ot;ee.WritableState=er;var T_={deprecate:Rc()},Dc=Ns(),An=x("buffer").Buffer,D_=global.Uint8Array||function(){};function k_(e){return An.from(e)}function L_(e){return An.isBuffer(e)||e instanceof D_}var Gs=qs(),O_=js(),P_=O_.getHighWaterMark,Ve=We().codes,N_=Ve.ERR_INVALID_ARG_TYPE,M_=Ve.ERR_METHOD_NOT_IMPLEMENTED,F_=Ve.ERR_MULTIPLE_CALLBACK,q_=Ve.ERR_STREAM_CANNOT_PIPE,j_=Ve.ERR_STREAM_DESTROYED,H_=Ve.ERR_STREAM_NULL_VALUES,U_=Ve.ERR_STREAM_WRITE_AFTER_END,$_=Ve.ERR_UNKNOWN_ENCODING,Pt=Gs.errorOrDestroy;ut()(ee,Dc);function K_(){}function er(e,t,r){Ot=Ot||ct(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ot),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=P_(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Z_(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Tc(this)}er.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(er.prototype,"buffer",{get:T_.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var fn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(fn=Function.prototype[Symbol.hasInstance],Object.defineProperty(ee,Symbol.hasInstance,{value:function(t){return fn.call(this,t)?!0:this!==ee?!1:t&&t._writableState instanceof er}})):fn=function(t){return t instanceof this};function ee(e){Ot=Ot||ct();var t=this instanceof Ot;if(!t&&!fn.call(ee,this))return new ee(e);this._writableState=new er(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Dc.call(this)}ee.prototype.pipe=function(){Pt(this,new q_)};function G_(e,t){var r=new U_;Pt(e,r),process.nextTick(t,r)}function J_(e,t,r,n){var i;return r===null?i=new H_:typeof r!="string"&&!t.objectMode&&(i=new N_("chunk",["string","Buffer"],r)),i?(Pt(e,i),process.nextTick(n,i),!1):!0}ee.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&L_(e);return s&&!An.isBuffer(e)&&(e=k_(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=K_),n.ending?G_(this,r):(s||J_(this,n,e,r))&&(n.pendingcb++,i=W_(this,n,s,e,t,r)),i};ee.prototype.cork=function(){this._writableState.corked++};ee.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&kc(this,e))};ee.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new $_(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(ee.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Y_(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=An.from(t,r)),t}Object.defineProperty(ee.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function W_(e,t,r,n,i,s){if(!r){var o=Y_(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ks(e,t,!1,a,n,i,s);return l}function Ks(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new j_("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function V_(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(zt,e,t),e._writableState.errorEmitted=!0,Pt(e,n)):(i(n),e._writableState.errorEmitted=!0,Pt(e,n),zt(e,t))}function X_(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Z_(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new F_;if(X_(r),t)V_(e,r,n,t,i);else{var s=Lc(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&kc(e,r),n?process.nextTick(Ic,e,r,s,i):Ic(e,r,s,i)}}function Ic(e,t,r,n){r||z_(e,t),t.pendingcb--,n(),zt(e,t)}function z_(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function kc(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Ks(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new Tc(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,h=t.objectMode?1:l.length;if(Ks(e,t,!1,h,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}ee.prototype._write=function(e,t,r){r(new M_("_write()"))};ee.prototype._writev=null;ee.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||r0(this,n,r),this};Object.defineProperty(ee.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Lc(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function e0(e,t){e._final(function(r){t.pendingcb--,r&&Pt(e,r),t.prefinished=!0,e.emit("prefinish"),zt(e,t)})}function t0(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(e0,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function zt(e,t){var r=Lc(t);if(r&&(t0(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function r0(e,t,r){t.ending=!0,zt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function n0(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(ee.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});ee.prototype.destroy=Gs.destroy;ee.prototype._undestroy=Gs.undestroy;ee.prototype._destroy=function(e,t){t(e)}});var ct=g((tb,Nc)=>{"use strict";var i0=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Nc.exports=ke;var Pc=Vs(),Ws=Js();ut()(ke,Pc);for(Ys=i0(Ws.prototype),hn=0;hn<Ys.length;hn++)pn=Ys[hn],ke.prototype[pn]||(ke.prototype[pn]=Ws.prototype[pn]);var Ys,pn,hn;function ke(e){if(!(this instanceof ke))return new ke(e);Pc.call(this,e),Ws.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s0)))}Object.defineProperty(ke.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ke.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ke.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s0(){this._writableState.ended||process.nextTick(o0,this)}function o0(e){e.end()}Object.defineProperty(ke.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var qc=g((Xs,Fc)=>{var dn=x("buffer"),Le=dn.Buffer;function Mc(e,t){for(var r in e)t[r]=e[r]}Le.from&&Le.alloc&&Le.allocUnsafe&&Le.allocUnsafeSlow?Fc.exports=dn:(Mc(dn,Xs),Xs.Buffer=ft);function ft(e,t,r){return Le(e,t,r)}ft.prototype=Object.create(Le.prototype);Mc(Le,ft);ft.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Le(e,t,r)};ft.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Le(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};ft.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Le(e)};ft.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return dn.SlowBuffer(e)}});var eo=g(Hc=>{"use strict";var zs=qc().Buffer,jc=zs.isEncoding||function(e){switch(e=""+e,e&&e.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 a0(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function l0(e){var t=a0(e);if(typeof t!="string"&&(zs.isEncoding===jc||!jc(e)))throw new Error("Unknown encoding: "+e);return t||e}Hc.StringDecoder=tr;function tr(e){this.encoding=l0(e);var t;switch(this.encoding){case"utf16le":this.text=p0,this.end=d0,t=4;break;case"utf8":this.fillLast=f0,t=4;break;case"base64":this.text=g0,this.end=_0,t=3;break;default:this.write=E0,this.end=m0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=zs.allocUnsafe(t)}tr.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};tr.prototype.end=h0;tr.prototype.text=A0;tr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Zs(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u0(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Zs(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Zs(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Zs(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c0(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function f0(e){var t=this.lastTotal-this.lastNeed,r=c0(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function A0(e,t){var r=u0(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h0(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p0(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function d0(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g0(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function _0(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function E0(e){return e.toString(this.encoding)}function m0(e){return e&&e.length?this.write(e):""}});var gn=g((nb,Kc)=>{"use strict";var Uc=We().codes.ERR_STREAM_PREMATURE_CLOSE;function y0(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function C0(){}function b0(e){return e.setHeader&&typeof e.abort=="function"}function $c(e,t,r){if(typeof t=="function")return $c(e,null,t);t||(t={}),r=y0(r||C0);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},o=e._writableState&&e._writableState.finished,a=function(){i=!1,o=!0,n||r.call(e)},l=e._readableState&&e._readableState.endEmitted,c=function(){n=!1,l=!0,i||r.call(e)},u=function(d){r.call(e,d)},h=function(){var d;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(d=new Uc),r.call(e,d);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(d=new Uc),r.call(e,d)},A=function(){e.req.on("finish",a)};return b0(e)?(e.on("complete",a),e.on("abort",h),e.req?A():e.on("request",A)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",c),e.on("finish",a),t.error!==!1&&e.on("error",u),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",A),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",c),e.removeListener("error",u),e.removeListener("close",h)}}Kc.exports=$c});var Jc=g((ib,Gc)=>{"use strict";var _n;function Xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var B0=gn(),Ze=Symbol("lastResolve"),At=Symbol("lastReject"),rr=Symbol("error"),En=Symbol("ended"),ht=Symbol("lastPromise"),to=Symbol("handlePromise"),pt=Symbol("stream");function ze(e,t){return{value:e,done:t}}function v0(e){var t=e[Ze];if(t!==null){var r=e[pt].read();r!==null&&(e[ht]=null,e[Ze]=null,e[At]=null,t(ze(r,!1)))}}function x0(e){process.nextTick(v0,e)}function w0(e,t){return function(r,n){e.then(function(){if(t[En]){r(ze(void 0,!0));return}t[to](r,n)},n)}}var S0=Object.getPrototypeOf(function(){}),Q0=Object.setPrototypeOf((_n={get stream(){return this[pt]},next:function(){var t=this,r=this[rr];if(r!==null)return Promise.reject(r);if(this[En])return Promise.resolve(ze(void 0,!0));if(this[pt].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[rr]?a(t[rr]):o(ze(void 0,!0))})});var n=this[ht],i;if(n)i=new Promise(w0(n,this));else{var s=this[pt].read();if(s!==null)return Promise.resolve(ze(s,!1));i=new Promise(this[to])}return this[ht]=i,i}},Xe(_n,Symbol.asyncIterator,function(){return this}),Xe(_n,"return",function(){var t=this;return new Promise(function(r,n){t[pt].destroy(null,function(i){if(i){n(i);return}r(ze(void 0,!0))})})}),_n),S0),R0=function(t){var r,n=Object.create(Q0,(r={},Xe(r,pt,{value:t,writable:!0}),Xe(r,Ze,{value:null,writable:!0}),Xe(r,At,{value:null,writable:!0}),Xe(r,rr,{value:null,writable:!0}),Xe(r,En,{value:t._readableState.endEmitted,writable:!0}),Xe(r,to,{value:function(s,o){var a=n[pt].read();a?(n[ht]=null,n[Ze]=null,n[At]=null,s(ze(a,!1))):(n[Ze]=s,n[At]=o)},writable:!0}),r));return n[ht]=null,B0(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[At];s!==null&&(n[ht]=null,n[Ze]=null,n[At]=null,s(i)),n[rr]=i;return}var o=n[Ze];o!==null&&(n[ht]=null,n[Ze]=null,n[At]=null,o(ze(void 0,!0))),n[En]=!0}),t.on("readable",x0.bind(null,n)),n};Gc.exports=R0});var Xc=g((sb,Vc)=>{"use strict";function Yc(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(c){r(c);return}a.done?t(l):Promise.resolve(l).then(n,i)}function I0(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(l){Yc(s,n,i,o,a,"next",l)}function a(l){Yc(s,n,i,o,a,"throw",l)}o(void 0)})}}function Wc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function T0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wc(Object(r),!0).forEach(function(n){D0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k0=We().codes.ERR_INVALID_ARG_TYPE;function L0(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new k0("iterable",["Iterable"],t);var i=new e(T0({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=I0(function*(){try{var l=yield n.next(),c=l.value,u=l.done;u?i.push(null):i.push(yield c)?o():s=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}Vc.exports=L0});var Vs=g((ab,lf)=>{"use strict";lf.exports=P;var Nt;P.ReadableState=tf;var ob=x("events").EventEmitter,ef=function(t,r){return t.listeners(r).length},ir=Ns(),mn=x("buffer").Buffer,O0=global.Uint8Array||function(){};function P0(e){return mn.from(e)}function N0(e){return mn.isBuffer(e)||e instanceof O0}var ro=x("util"),I;ro&&ro.debuglog?I=ro.debuglog("stream"):I=function(){};var M0=yc(),uo=qs(),F0=js(),q0=F0.getHighWaterMark,yn=We().codes,j0=yn.ERR_INVALID_ARG_TYPE,H0=yn.ERR_STREAM_PUSH_AFTER_EOF,U0=yn.ERR_METHOD_NOT_IMPLEMENTED,$0=yn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Mt,no,io;ut()(P,ir);var nr=uo.errorOrDestroy,so=["error","close","destroy","pause","resume"];function K0(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function tf(e,t,r){Nt=Nt||ct(),e=e||{},typeof r!="boolean"&&(r=t instanceof Nt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=q0(this,e,"readableHighWaterMark",r),this.buffer=new M0,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=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Mt||(Mt=eo().StringDecoder),this.decoder=new Mt(e.encoding),this.encoding=e.encoding)}function P(e){if(Nt=Nt||ct(),!(this instanceof P))return new P(e);var t=this instanceof Nt;this._readableState=new tf(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),ir.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});P.prototype.destroy=uo.destroy;P.prototype._undestroy=uo.undestroy;P.prototype._destroy=function(e,t){t(e)};P.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=mn.from(e,t),t=""),n=!0),rf(this,e,t,!1,n)};P.prototype.unshift=function(e){return rf(this,e,null,!0,!1)};function rf(e,t,r,n,i){I("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,Y0(e,s);else{var o;if(i||(o=G0(s,t)),o)nr(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==mn.prototype&&(t=P0(t)),n)s.endEmitted?nr(e,new $0):oo(e,s,t,!0);else if(s.ended)nr(e,new H0);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?oo(e,s,t,!1):lo(e,s)):oo(e,s,t,!1)}else n||(s.reading=!1,lo(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function oo(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Cn(e)),lo(e,t)}function G0(e,t){var r;return!N0(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new j0("chunk",["string","Buffer","Uint8Array"],t)),r}P.prototype.isPaused=function(){return this._readableState.flowing===!1};P.prototype.setEncoding=function(e){Mt||(Mt=eo().StringDecoder);var t=new Mt(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Zc=1073741824;function J0(e){return e>=Zc?e=Zc:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function zc(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=J0(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}P.prototype.read=function(e){I("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return I("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?ao(this):Cn(this),null;if(e=zc(e,t),e===0&&t.ended)return t.length===0&&ao(this),null;var n=t.needReadable;I("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,I("length less than watermark",n)),t.ended||t.reading?(n=!1,I("reading or ended",n)):n&&(I("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=zc(r,t)));var i;return e>0?i=of(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&ao(this)),i!==null&&this.emit("data",i),i};function Y0(e,t){if(I("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?Cn(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,nf(e)))}}function Cn(e){var t=e._readableState;I("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(nf,e))}function nf(e){var t=e._readableState;I("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,co(e)}function lo(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(W0,e,t))}function W0(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(I("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}P.prototype._read=function(e){nr(this,new U0("_read()"))};P.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,I("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:E;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(B,C){I("onunpipe"),B===r&&C&&C.hasUnpiped===!1&&(C.hasUnpiped=!0,u())}function a(){I("onend"),e.end()}var l=V0(r);e.on("drain",l);var c=!1;function u(){I("cleanup"),e.removeListener("close",b),e.removeListener("finish",d),e.removeListener("drain",l),e.removeListener("error",A),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",E),r.removeListener("data",h),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",h);function h(B){I("ondata");var C=e.write(B);I("dest.write",C),C===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&af(n.pipes,e)!==-1)&&!c&&(I("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function A(B){I("onerror",B),E(),e.removeListener("error",A),ef(e,"error")===0&&nr(e,B)}K0(e,"error",A);function b(){e.removeListener("finish",d),E()}e.once("close",b);function d(){I("onfinish"),e.removeListener("close",b),E()}e.once("finish",d);function E(){I("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(I("pipe resume"),r.resume()),e};function V0(e){return function(){var r=e._readableState;I("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ef(e,"data")&&(r.flowing=!0,co(e))}}P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=af(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};P.prototype.on=function(e,t){var r=ir.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,I("on readable",n.length,n.reading),n.length?Cn(this):n.reading||process.nextTick(X0,this)),r};P.prototype.addListener=P.prototype.on;P.prototype.removeListener=function(e,t){var r=ir.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(sf,this),r};P.prototype.removeAllListeners=function(e){var t=ir.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(sf,this),t};function sf(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function X0(e){I("readable nexttick read 0"),e.read(0)}P.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!e.readableListening,Z0(this,e)),e.paused=!1,this};function Z0(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(z0,e,t))}function z0(e,t){I("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),co(e),t.flowing&&!t.reading&&e.read(0)}P.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function co(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&e.read()!==null;);}P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(I("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(I("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<so.length;s++)e.on(so[s],this.emit.bind(this,so[s]));return this._read=function(o){I("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return no===void 0&&(no=Jc()),no(this)});Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});P._fromList=of;Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function of(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function ao(e){var t=e._readableState;I("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(eE,t,e))}function eE(e,t){if(I("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(P.from=function(e,t){return io===void 0&&(io=Xc()),io(P,e,t)});function af(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var fo=g((lb,cf)=>{"use strict";cf.exports=qe;var bn=We().codes,tE=bn.ERR_METHOD_NOT_IMPLEMENTED,rE=bn.ERR_MULTIPLE_CALLBACK,nE=bn.ERR_TRANSFORM_ALREADY_TRANSFORMING,iE=bn.ERR_TRANSFORM_WITH_LENGTH_0,Bn=ct();ut()(qe,Bn);function sE(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new rE);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function qe(e){if(!(this instanceof qe))return new qe(e);Bn.call(this,e),this._transformState={afterTransform:sE.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",oE)}function oE(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){uf(e,t,r)}):uf(this,null,null)}qe.prototype.push=function(e,t){return this._transformState.needTransform=!1,Bn.prototype.push.call(this,e,t)};qe.prototype._transform=function(e,t,r){r(new tE("_transform()"))};qe.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};qe.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};qe.prototype._destroy=function(e,t){Bn.prototype._destroy.call(this,e,function(r){t(r)})};function uf(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new iE;if(e._transformState.transforming)throw new nE;return e.push(null)}});var hf=g((ub,Af)=>{"use strict";Af.exports=sr;var ff=fo();ut()(sr,ff);function sr(e){if(!(this instanceof sr))return new sr(e);ff.call(this,e)}sr.prototype._transform=function(e,t,r){r(null,e)}});var Ef=g((cb,_f)=>{"use strict";var Ao;function aE(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var gf=We().codes,lE=gf.ERR_MISSING_ARGS,uE=gf.ERR_STREAM_DESTROYED;function pf(e){if(e)throw e}function cE(e){return e.setHeader&&typeof e.abort=="function"}function fE(e,t,r,n){n=aE(n);var i=!1;e.on("close",function(){i=!0}),Ao===void 0&&(Ao=gn()),Ao(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,cE(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new uE("pipe"))}}}function df(e){e()}function AE(e,t){return e.pipe(t)}function hE(e){return!e.length||typeof e[e.length-1]!="function"?pf:e.pop()}function pE(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=hE(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new lE("streams");var i,s=t.map(function(o,a){var l=a<t.length-1,c=a>0;return fE(o,l,c,function(u){i||(i=u),u&&s.forEach(df),!l&&(s.forEach(df),n(i))})});return t.reduce(AE)}_f.exports=pE});var mf=g((Ce,ar)=>{var or=x("stream");process.env.READABLE_STREAM==="disable"&&or?(ar.exports=or.Readable,Object.assign(ar.exports,or),ar.exports.Stream=or):(Ce=ar.exports=Vs(),Ce.Stream=or||Ce,Ce.Readable=Ce,Ce.Writable=Js(),Ce.Duplex=ct(),Ce.Transform=fo(),Ce.PassThrough=hf(),Ce.finished=gn(),Ce.pipeline=Ef())});var bf=g((fb,Cf)=>{"use strict";var{Buffer:ve}=x("buffer"),yf=Symbol.for("BufferList");function $(e){if(!(this instanceof $))return new $(e);$._init.call(this,e)}$._init=function(t){Object.defineProperty(this,yf,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};$.prototype._new=function(t){return new $(t)};$.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};$.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};$.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};$.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};$.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||ve.alloc(0);let s=!!t,o=this._offset(n),a=i-n,l=a,c=s&&r||0,u=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:ve.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,c),c+=this._bufs[h].length;return t}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(t,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(t=ve.allocUnsafe(a));for(let h=o[0];h<this._bufs.length;h++){let A=this._bufs[h].length-u;if(l>A)this._bufs[h].copy(t,c,u),c+=A;else{this._bufs[h].copy(t,c,u,u+l),c+=A;break}l-=A,u&&(u=0)}return t.length>c?t.slice(0,c):t};$.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};$.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};$.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};$.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};$.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(ve.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(ve.from(t));return this};$.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};$.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=ve.from([e]):typeof e=="string"?e=ve.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=ve.from(e.buffer,e.byteOffset,e.byteLength):ve.isBuffer(e)||(e=ve.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=e.length){let l=o.indexOf(e,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-e.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,e))return l;s++}s=0}return-1};$.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={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 t in e)(function(r){e[r]===null?$.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:$.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();$.prototype._isBufferList=function(t){return t instanceof $||$.isBufferList(t)};$.isBufferList=function(t){return t!=null&&t[yf]};Cf.exports=$});var Bf=g((Ab,vn)=>{"use strict";var ho=mf().Duplex,dE=ut(),lr=bf();function ae(e){if(!(this instanceof ae))return new ae(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}lr._init.call(this,e),ho.call(this)}dE(ae,ho);Object.assign(ae.prototype,lr.prototype);ae.prototype._new=function(t){return new ae(t)};ae.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};ae.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};ae.prototype.end=function(t){ho.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};ae.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};ae.prototype._isBufferList=function(t){return t instanceof ae||t instanceof lr||ae.isBufferList(t)};ae.isBufferList=lr.isBufferList;vn.exports=ae;vn.exports.BufferListStream=ae;vn.exports.BufferList=lr});var Do=g((iv,aA)=>{var Ln=x("fs"),oA=x("path"),cm=x("os");function Io(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function To(e,t){try{return t(e)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",e),!1;throw r}}var fm={nil:function(e){return e==null},array:function(e){return Array.isArray(e)},emptyObject:function(e){for(var t in e)return!1;return!0},buffer:function(e){return Buffer.isBuffer(e)},regExp:function(e){return Io(e,"RegExp")},string:function(e){return Io(e,"String")},func:function(e){return typeof e=="function"},number:function(e){return Io(e,"Number")},exists:function(e){return Ln.existsSync(e)},file:function(e){return To(e,function(t){return Ln.statSync(t).isFile()})},samePath:function(e,t){return oA.resolve(e)===oA.resolve(t)},directory:function(e){return To(e,function(t){return Ln.statSync(t).isDirectory()})},symbolicLink:function(e){return To(e,function(t){return Ln.lstatSync(t).isSymbolicLink()})},windows:function(){return cm.platform()==="win32"}};aA.exports=fm});var AA=g((sv,fA)=>{var dr=x("fs"),lA=x("os"),ko=x("path"),On=Do(),pr,Am=lA.tmpdir&&lA.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function cA(){this.stack=[]}cA.prototype={create:function(e,t){var r=ko.join(t,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:e}),r},write:function(){for(var e=0;e<arguments.length;++e)dr.writeFileSync(arguments[e]," ")},mkdir:function(){for(var e=0;e<arguments.length;++e)dr.mkdirSync(arguments[e])},cleanup:function(e){try{for(var t;t=this.stack.pop();){var r=t.type,n=t.name;r==="file"&&On.file(n)?dr.unlinkSync(n):r==="dir"&&On.directory(n)&&dr.rmdirSync(n)}}finally{On.func(e)&&e()}}};var uA=!1;fA.exports=function e(t){if(!On.func(t))return!1;if(pr!==void 0)return t(pr);if(!uA)uA=!0;else return setTimeout(function(){e(t)},300);var r=new cA,n=r.create("dir",Am),i=r.create("dir",n),s=r.create("file",i);r.mkdir(n,i);var o={recursive:!0},a;try{a=dr.watch(n,o)}catch(c){if(c.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return t(pr=!1);throw c}if(!a)return!1;var l=setTimeout(function(){a.close(),r.cleanup(function(){t(pr=!1)})},200);a.on("change",function(c,u){ko.basename(s)===ko.basename(u)&&(a.close(),clearTimeout(l),r.cleanup(function(){t(pr=!0)}))}),r.write(s)}});var BA=g((ov,No)=>{var Oo=x("fs"),gr=x("path"),pA=x("util"),dA=x("events"),gA=AA(),j=Do(),hm="update",_A="remove",hA=Symbol("skip");function pm(e){return e.some(function(t,r,n){return n.indexOf(t)!==r})}function Po(e){return e.filter(function(t,r,n){return n.indexOf(t)===r})}function dm(e){return e.reduce(function(t,r){return t.concat(r)},[])}function gm(e){if(e&&e!=="buffer"&&!Buffer.isEncoding(e))throw new Error("Unknown encoding: "+e)}function _m(e){return j.func(e)?function(t,r){e(t,!1)&&r()}:j.regExp(e)?function(t,r){e.test(t)&&r()}:function(t,r){r()}}function Em(e){return e.map(function(t){return j.exists(t)?[hm,t]:[_A,t]})}function mm(e){var t=Po(e),r=/~$|^\.#|^##$/g,n=e.some(function(s){return r.test(s)});if(n){var i=pm(e.map(function(s){return s.replace(r,"")}));i&&(t=t.filter(function(s){return j.exists(s)}))}return Em(t)}function ym(e,t){var r,n=[],i=e.options.encoding,s=e.options.delay;j.number(s)||(s=200);function o(){mm(n).forEach(function(a){a[1]=Buffer.from(a[1]),i!=="buffer"&&(a[1]=a[1].toString(i)),t.apply(null,a)}),r=null,n=[]}return function(a,l){n.push(l),r||(r=setTimeout(o,s))}}function EA(){var e={};return function(t){return function(r,n){e[r+n]=[r,n],setTimeout(function(){Object.keys(e).forEach(function(i){t.apply(null,e[i])}),e={}})}}}function mA(e,t,r=function(){}){j.directory(e)?Oo.readdir(e,function(n,i){if(n)if(/^(EPERM|EACCES)$/.test(n.code))console.warn("Warning: Cannot access %s.",e);else throw n;else i.forEach(function(s){var o=gr.join(e,s);j.directory(o)&&t(o)}),r()}):r()}function Cm(e){var t=0;return function(){return t++,function(){t--,t===0&&e()}}}function bm(){return function(){}}function yA(e,t){return!j.func(t)||t(e,hA)!==hA}var CA=pA.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 Oe(){dA.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}pA.inherits(Oe,dA.EventEmitter);Oe.prototype.expose=function(){var e={},t=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(n){e[n]=function(){return t[n].apply(t,arguments)}}),e};Oe.prototype.isClosed=function(){return this._isClosed};Oe.prototype.close=function(e){var t=this;if(e){var r=this.watchers[e];r&&r.close&&(r.close(),delete t.watchers[e]),mA(e,function(n){t.close(n)})}else Object.keys(t.watchers).forEach(function(n){var i=t.watchers[n];i&&i.close&&i.close()}),this.watchers={};j.emptyObject(t.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(bA,this)))};Oe.prototype.getWatchedPaths=function(e){if(j.func(e)){var t=this;t._isReady?e(Object.keys(t.watchers)):t.on("ready",function(){e(Object.keys(t.watchers))})}};function Lo(e){e._isReady||(e._isReady=!0,process.nextTick(function(){e.emit("ready")}))}function bA(e){e.emit("close")}Oe.prototype.add=function(e,t){var r=this;t=t||{fpath:""};var n=gr.resolve(t.fpath);this.watchers[n]=e;var i=function(o,a){if(!r.isClosed()){var l=a;j.nil(l)&&(l=""),l=gr.join(t.fpath,l),t.options.recursive&&gA(function(c){if(!c){var u=gr.resolve(l);if(!j.exists(l))r.close(u);else{var h=j.directory(l)&&!r.watchers[u]&&yA(l,t.options.filter);h&&r.watchDirectory(l,t.options)}}}),s(o,l)}},s=ym(t,function(o,a){if(t.compareName)t.compareName(a)&&r.emit("change",o,a);else{var l=_m(t.options.filter);l(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});e.on("error",function(o){r.isClosed()||(j.windows()&&o.code==="EPERM"?(e.emit("change",_A,t.fpath&&""),r.flag="windows-error",r.close(n)):r.emit("error",o))}),e.on("change",i)};Oe.prototype.watchFile=function(e,t,r){var n=gr.join(e,"../"),i=Object.assign({},t,{filter:null,encoding:"utf8"});delete i.recursive;var s=Oo.watch(n,i);this.add(s,{type:"file",fpath:n,options:Object.assign({},i,{encoding:t.encoding}),compareName:function(o){return j.samePath(o,e)}}),j.func(r)&&(r.length===1&&CA(),this.on("change",r))};Oe.prototype.watchDirectory=function(e,t,r,n=bm){var i=this,s=n();gA(function(o){t.recursive=!!t.recursive;var a=Object.assign({},t,{encoding:"utf8"});if(o||delete a.recursive,i._isClosed)return s(),i.close();var l=Oo.watch(e,a);i.add(l,{type:"dir",fpath:e,options:t}),j.func(r)&&(r.length===1&&CA(),i.on("change",r)),t.recursive&&!o&&mA(e,function(c){yA(c,t.filter)&&i.watchDirectory(c,t,null,n)},n()),s()})};function Bm(e){var t=new Oe,r=EA(),n=e.length;return e.forEach(function(i){i.on("change",r(function(s,o){t.emit("change",s,o)})),i.on("error",function(s){t.emit("error",s)}),i.on("ready",function(){--n||Lo(t)})}),t.close=function(){e.forEach(function(i){i.close()}),process.nextTick(bA,t)},t.getWatchedPaths=function(i){if(j.func(i)){var s=e.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=Po(dm(o));i(a)})}},t.expose()}function Pn(e,t,r){var n=new Oe;if(j.buffer(e)&&(e=e.toString()),!j.array(e)&&!j.exists(e)&&n.emit("error",new Error(e+" does not exist.")),j.string(t)&&(t={encoding:t}),j.func(t)&&(r=t,t={}),arguments.length<2&&(t={}),t.encoding?gm(t.encoding):t.encoding="utf8",j.array(e)){if(e.length===1)return Pn(e[0],t,r);var i=EA();return Bm(Po(e).map(function(o){var a=Pn(o,t);return j.func(r)&&a.on("change",i(r)),a}))}if(j.file(e))n.watchFile(e,t,r),Lo(n);else if(j.directory(e)){var s=Cm(function(){Lo(n)});n.watchDirectory(e,t,r,s)}return n.expose()}No.exports=Pn;No.exports.default=Pn});var qo=(e=0)=>t=>`\x1B[${t+e}m`,jo=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Ho=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}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]}},Uo=Object.keys(J.modifier),Mn=Object.keys(J.color),Fn=Object.keys(J.bgColor),$o=[...Mn,...Fn];function RA(){let e=new Map;for(let[t,r]of Object.entries(J)){for(let[n,i]of Object.entries(r))J[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=J[n],e.set(i[0],i[1]);Object.defineProperty(J,t,{value:r,enumerable:!1})}return Object.defineProperty(J,"codes",{value:e,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=qo(),J.color.ansi256=jo(),J.color.ansi16m=Ho(),J.bgColor.ansi=qo(10),J.bgColor.ansi256=jo(10),J.bgColor.ansi16m=Ho(10),Object.defineProperties(J,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>J.rgbToAnsi256(...J.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>J.ansi256ToAnsi(J.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>J.ansi256ToAnsi(J.hexToAnsi256(t)),enumerable:!1}}),J}var IA=RA(),be=IA;import qn from"node:process";import TA from"node:os";import Ko from"node:tty";function _e(e,t=globalThis.Deno?globalThis.Deno.args:qn.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:z}=qn,Cr;_e("no-color")||_e("no-colors")||_e("color=false")||_e("color=never")?Cr=0:(_e("color")||_e("colors")||_e("color=true")||_e("color=always"))&&(Cr=1);function DA(){if("FORCE_COLOR"in z)return z.FORCE_COLOR==="true"?1:z.FORCE_COLOR==="false"?0:z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(z.FORCE_COLOR,10),3)}function kA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function LA(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=DA();n!==void 0&&(Cr=n);let i=r?Cr:n;if(i===0)return 0;if(r){if(_e("color=16m")||_e("color=full")||_e("color=truecolor"))return 3;if(_e("color=256"))return 2}if("TF_BUILD"in z&&"AGENT_NAME"in z)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(z.TERM==="dumb")return s;if(qn.platform==="win32"){let o=TA.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in z)return"GITHUB_ACTIONS"in z?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in z)||z.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(z.TEAMCITY_VERSION)?1:0;if(z.COLORTERM==="truecolor"||z.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in z){let o=Number.parseInt((z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(z.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(z.TERM)||"COLORTERM"in z?1:s}function Go(e,t={}){let r=LA(e,{streamIsTTY:e&&e.isTTY,...t});return kA(r)}var OA={stdout:Go({isTTY:Ko.isatty(1)}),stderr:Go({isTTY:Ko.isatty(2)})},Jo=OA;function Yo(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function Wo(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.slice(i,o?n-1:n)+t+(o?`\r
8
+ `:`
9
+ `)+r,i=n+1,n=e.indexOf(`
10
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Vo,stderr:Xo}=Jo,jn=Symbol("GENERATOR"),_t=Symbol("STYLER"),jt=Symbol("IS_EMPTY"),Zo=["ansi","ansi","ansi256","ansi16m"],Et=Object.create(null),PA=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Vo?Vo.level:0;e.level=t.level===void 0?r:t.level};var NA=e=>{let t=(...r)=>r.join(" ");return PA(t,e),Object.setPrototypeOf(t,Ht.prototype),t};function Ht(e){return NA(e)}Object.setPrototypeOf(Ht.prototype,Function.prototype);for(let[e,t]of Object.entries(be))Et[e]={get(){let r=br(this,Un(t.open,t.close,this[_t]),this[jt]);return Object.defineProperty(this,e,{value:r}),r}};Et.visible={get(){let e=br(this,this[_t],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Hn=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?be[r].ansi16m(...n):t==="ansi256"?be[r].ansi256(be.rgbToAnsi256(...n)):be[r].ansi(be.rgbToAnsi(...n)):e==="hex"?Hn("rgb",t,r,...be.hexToRgb(...n)):be[r][e](...n),MA=["rgb","hex","ansi256"];for(let e of MA){Et[e]={get(){let{level:r}=this;return function(...n){let i=Un(Hn(e,Zo[r],"color",...n),be.color.close,this[_t]);return br(this,i,this[jt])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Et[t]={get(){let{level:r}=this;return function(...n){let i=Un(Hn(e,Zo[r],"bgColor",...n),be.bgColor.close,this[_t]);return br(this,i,this[jt])}}}}var FA=Object.defineProperties(()=>{},{...Et,level:{enumerable:!0,get(){return this[jn].level},set(e){this[jn].level=e}}}),Un=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},br=(e,t,r)=>{let n=(...i)=>qA(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,FA),n[jn]=e,n[_t]=t,n[jt]=r,n},qA=(e,t)=>{if(e.level<=0||!t)return e[jt]?"":t;let r=e[_t];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Yo(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
11
+ `);return s!==-1&&(t=Wo(t,i,n,s)),n+t+i};Object.defineProperties(Ht.prototype,Et);var jA=Ht(),Fm=Ht({level:Xo?Xo.level:0});var k=jA;var Hu=Pe(Xr(),1);import{existsSync as zg}from"fs";import{writeFile as e_}from"fs/promises";import{isAbsolute as t_,resolve as r_}from"path";import{dirname as Jg,normalize as Yg,posix as Jt,resolve as Rt}from"path";import{existsSync as It}from"fs";import{readFile as qu}from"fs/promises";var $g=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function ws(e,t="@"){if(!q)return Ss.then(()=>ws(e));let r=e.length+1,n=(q.__heap_base.value||q.__heap_base)+4*r-q.memory.buffer.byteLength;n>0&&q.memory.grow(Math.ceil(n/65536));let i=q.sa(r-1);if(($g?Gg:Kg)(e,new Uint16Array(q.memory.buffer,i,r)),!q.parse())throw Object.assign(new Error(`Parse error ${t}:${e.slice(0,q.e()).split(`
12
+ `).length}:${q.e()-e.lastIndexOf(`
13
+ `,q.e()-1)}`),{idx:q.e()});let s=[],o=[];for(;q.ri();){let l=q.is(),c=q.ie(),u=q.ai(),h=q.id(),A=q.ss(),b=q.se(),d;q.ip()&&(d=a(e.slice(h===-1?l-1:l,h===-1?c+1:c))),s.push({n:d,s:l,e:c,ss:A,se:b,d:h,a:u})}for(;q.re();){let l=q.es(),c=q.ee(),u=q.els(),h=q.ele(),A=e.slice(l,c),b=A[0],d=u<0?void 0:e.slice(u,h),E=d?d[0]:"";o.push({s:l,e:c,ls:u,le:h,n:b==='"'||b==="'"?a(A):A,ln:E==='"'||E==="'"?a(d):d})}function a(l){try{return(0,eval)(l)}catch{}}return[s,o,!!q.f()]}function Kg(e,t){let r=e.length,n=0;for(;n<r;){let i=e.charCodeAt(n);t[n++]=(255&i)<<8|i>>>8}}function Gg(e,t){let r=e.length,n=0;for(;n<r;)t[n]=e.charCodeAt(n++)}var q,Ss=WebAssembly.compile((xs="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",typeof Buffer<"u"?Buffer.from(xs,"base64"):Uint8Array.from(atob(xs),e=>e.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:e})=>{q=e}),xs;import{cwd as Wg}from"process";await Ss;var Vg=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],ju=async(e,t)=>{let r=fe(ju),n=Jg(Yg(t)),i=Yt(n),s=i.replace(Jt.extname(i),""),o=Yt(Rt(Wg(),"node_modules")),a=It(o);if(r.log({specifier:e,entryPoint:t,nodeModulesPath:o}),!Fu(e)&&Jt.extname(e))return r.log("Skipping non-named specifier with file extension",{specifier:e}),null;e==="."&&(e="./index");for(let l of Vg){let c=`${e}${l}`,u=`${e}/index${l}`;if(r.log("Looking for",{dotTsFile:c,indexDotTsFile:u}),!Fu(e)){if(It(Rt(s,c)))return c;if(It(Rt(s,u)))return u}if(a){let h=e.split("/")[0],A=Rt(o,h,"package.json");if(It(A)){let B=await qu(A,"utf-8");if(JSON.parse(B).exports)return r.log("Skipping named specifier with conditional exports",{specifier:e}),e}r.log("In",{nodeModulesPath:o});let d=Rt(o,c),E=Rt(o,u);if(It(d))return r.log("Found",{nodeModulesFile:d}),c;if(It(E))return r.log("Found",{nodeModulesIndexFile:E}),u}}return null},Yt=e=>e.replace(/\\/g,"/"),Fu=e=>!(e.startsWith(".")||e.startsWith("/")),Xg=(e,t)=>{if(e=Yt(e),t=Yt(t),!t.startsWith("/"))return t;let r=Jt.relative(Jt.dirname(e),t);return r.startsWith(".")?r:`./${r}`},Zg=e=>e?e.startsWith(".")||e.includes("/")||Jt.extname(e):!1,Qs=async e=>{let t=fe(Qs);t.log("Getting rewritten specifiers:",{modulePath:e}),e=Yt(e);let r=await qu(e,"utf8"),[n]=await ws(r),i=n.filter(o=>typeof o.n<"u");t.log("Found import statements:",{namedImportExportSpecifiers:i});let s=r.slice(0);for(let o of i){let a=o.n;t.log("Found specifier:",{specifier:a});let l=r.substring(o.ss,o.se);if(!a){t.log(`Could not find specifier in import statement: "${l}"`);continue}if(!Zg(a)){t.log("Not resolving relative or non-named specifier:",{specifier:a});continue}let c=await ju(a,e);if(!c){t.log(`Could not resolve specifier "${a}" from "${e}". Assuming external.`);continue}t.log("Resolved specifier:",{resolvedSpecifier:c});let u=Xg(e,c);t.log("Specifier replacement:",{specifierReplacement:u});let h=l.replace(a,u);t.log("Replacing import statement:",{specifier:a,importStatement:l,importStatementReplacement:h}),s=s.replace(l,h)}return s};var Zr=async(e="dist/**/*.js")=>{let t=fe(Zr),n=t_(e)&&zg(e)?[e]:Hu.default.sync(e);t.log("Normalizing import/require specifiers:",{files:e,filesToNormalize:n});for(let i of n){let s=r_(i),o=await Qs(s);t.log("Normalizing",{file:i,normalized:o}),await e_(s,o,{flag:"w",encoding:"utf-8"})}t.log("Normalized",{filesToNormalize:n})};import{constants as VE,existsSync as Dn}from"fs";import{copyFile as XE,mkdir as Zf,readFile as zf,rm as Jf,writeFile as ZE}from"fs/promises";import{dirname as eA,extname as zE,isAbsolute as em,resolve as tm,resolve as cr}from"path";import{build as vo,transform as rm}from"esbuild";var xo=Pe(Xr(),1);import{env as Yf}from"process";import wn from"node:process";import rc from"node:process";var zu=Pe(Gu(),1),ec=Pe(Zu(),1);import i_ from"node:process";var s_=(0,zu.default)(()=>{(0,ec.default)(()=>{i_.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),tc=s_;var on=!1,Lt={};Lt.show=(e=rc.stderr)=>{e.isTTY&&(on=!1,e.write("\x1B[?25h"))};Lt.hide=(e=rc.stderr)=>{e.isTTY&&(tc(),on=!0,e.write("\x1B[?25l"))};Lt.toggle=(e,t)=>{e!==void 0&&(on=e),on?Lt.show(t):Lt.hide(t)};var Ds=Lt;var ur=Pe(oc(),1);import Be from"node:process";function Vt(){return Be.platform!=="win32"?Be.env.TERM!=="linux":Boolean(Be.env.CI)||Boolean(Be.env.WT_SESSION)||Boolean(Be.env.TERMINUS_SUBLIME)||Be.env.ConEmuTask==="{cmd::Cmder}"||Be.env.TERM_PROGRAM==="Terminus-Sublime"||Be.env.TERM_PROGRAM==="vscode"||Be.env.TERM==="xterm-256color"||Be.env.TERM==="alacritty"||Be.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var a_={info:k.blue("ℹ"),success:k.green("✔"),warning:k.yellow("⚠"),error:k.red("✖")},l_={info:k.blue("i"),success:k.green("√"),warning:k.yellow("‼"),error:k.red("×")},u_=Vt()?a_:l_,Xt=u_;function ks({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}function Ls(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(ks(),"")}var xf=Pe(dc(),1);function Ps({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var vf=Pe(Bf(),1);import xe from"node:process";import gE from"node:readline";var _E=3,xn=class{#r=0;#c=new vf.BufferListStream;#i;#n;constructor(){this.#c.pipe(xe.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:s}=xe;if(t.#r>0||s.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes(_E)&&xe.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(xe.stdin.emit,this,[r,n,...i])}}start(){this.#r++,this.#r===1&&this._realStart()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this._realStop()}_realStart(){xe.platform!=="win32"&&(this.#n=gE.createInterface({input:xe.stdin,output:this.#c}),this.#n.on("SIGINT",()=>{xe.listenerCount("SIGINT")===0?xe.emit("SIGINT"):(this.#n.close(),xe.kill(xe.pid,"SIGINT"))}))}_realStop(){xe.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var Sn,po=class{#r=0;#c=!1;#i=0;#n=0;#e;#o;#t;#f;#A;#a;#l;#u;#h;#s;color;constructor(t){Sn||(Sn=new xn),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:wn.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#A=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:Ps({stream:this.#t}),this.#l=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.indent=this.#e.indent,wn.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#a,Object.defineProperty(this,"_linesToClear",{get(){return this.#r},set(r){this.#r=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){return this.#i}}))}get indent(){return this.#u}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#u=t,this.updateLineCount()}get interval(){return this.#A||this.#o.interval||100}get spinner(){return this.#o}set spinner(t){if(this.#n=0,this.#A=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#o=t}else if(!Vt())this.#o=ur.default.line;else if(t===void 0)this.#o=ur.default.dots;else if(t!=="default"&&ur.default[t])this.#o=ur.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#h}set text(t){this.#h=t||"",this.updateLineCount()}get prefixText(){return this.#s}set prefixText(t){this.#s=t||"",this.updateLineCount()}get isSpinning(){return this.#f!==void 0}getFullPrefixText(t=this.#s,r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}updateLineCount(){let t=this.#t.columns||80,r=this.getFullPrefixText(this.#s,"-");this.#i=0;for(let n of Ls(" ".repeat(this.#u)+r+"--"+this.#h).split(`
14
+ `))this.#i+=Math.max(1,Math.ceil((0,xf.default)(n)/t))}get isEnabled(){return this.#a&&!this.#l}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=t}get isSilent(){return this.#l}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#l=t}frame(){let{frames:t}=this.#o,r=t[this.#n];this.color&&(r=k[this.color](r)),this.#n=++this.#n%t.length;let n=typeof this.#s=="string"&&this.#s!==""?this.#s+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.#a||!this.#t.isTTY)return this;this.#t.cursorTo(0);for(let t=0;t<this.#r;t++)t>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return(this.#u||this.lastIndent!==this.#u)&&this.#t.cursorTo(this.#u),this.lastIndent=this.#u,this.#r=0,this}render(){return this.#l?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(t){return t&&(this.text=t),this.#l?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&Ds.hide(this.#t),this.#e.discardStdin&&wn.stdin.isTTY&&(this.#c=!0,Sn.start()),this.render(),this.#f=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
15
+ `),this)}stop(){return this.#a?(clearInterval(this.#f),this.#f=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&Ds.show(this.#t),this.#e.discardStdin&&wn.stdin.isTTY&&this.#c&&(Sn.stop(),this.#c=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Xt.success,text:t})}fail(t){return this.stopAndPersist({symbol:Xt.error,text:t})}warn(t){return this.stopAndPersist({symbol:Xt.warning,text:t})}info(t){return this.stopAndPersist({symbol:Xt.info,text:t})}stopAndPersist(t={}){if(this.#l)return this;let r=t.prefixText||this.#s,n=t.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.#t.write(`${this.getFullPrefixText(r," ")}${t.symbol||" "}${i}
16
+ `),this}};function je(e){return new po(e)}import{spawn as yE,execSync as CE}from"child_process";import{env as Qn,stdout as bE}from"process";if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");globalThis.__filename=t(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}var EE={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},mE={"cp -rf":{win32:e=>{let t="xcopy /E /S /G /Q /Y",r=e.map(n=>n.endsWith("\\")?n:`${n}\\`).map(n=>n.replace(/\*\\$/,""));return`${t} ${r.join(" ")}`}},ln:{win32:e=>`mklink /D ${e.join(" ")}`},pkill:{win32:e=>`taskkill /T /F /pid ${e.join(" ")}`}},wf=(e,t,r)=>{let n={...EE,...t},i={...mE,...r},s=a=>{let l=process.platform,c=n[l];if(c)return c(a);let[u,...h]=a.split(" ");return{cmd:u,args:h}},o=(a=>{let l=Object.entries(i);for(let[c,u]of l)if(a.startsWith(c)){let h=process.platform,A=u[h];if(!A)break;let b=a.slice(c.length).trim().split(" ");return A(b)}return a})(e);return s(o)};if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");globalThis.__filename=t(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");globalThis.__filename=t(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");globalThis.__filename=t(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}var Lf=Boolean(process.stdout.isTTY),Sf=(e=0)=>t=>`\x1B[${t+e}m`,Qf=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Rf=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,V={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]}},Qb=Object.keys(V.modifier),BE=Object.keys(V.color),vE=Object.keys(V.bgColor),Rb=[...BE,...vE];function xE(){let e=new Map;for(let[t,r]of Object.entries(V)){for(let[n,i]of Object.entries(r))V[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=V[n],e.set(i[0],i[1]);Object.defineProperty(V,t,{value:r,enumerable:!1})}return Object.defineProperty(V,"codes",{value:e,enumerable:!1}),V.color.close="\x1B[39m",V.bgColor.close="\x1B[49m",V.color.ansi=Sf(),V.color.ansi256=Qf(),V.color.ansi16m=Rf(),V.bgColor.ansi=Sf(10),V.bgColor.ansi256=Qf(10),V.bgColor.ansi16m=Rf(10),Object.defineProperties(V,{rgbToAnsi256:{value:(t,r,n)=>t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>V.rgbToAnsi256(...V.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>V.ansi256ToAnsi(V.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>V.ansi256ToAnsi(V.hexToAnsi256(t)),enumerable:!1}}),V}var wE=xE(),SE=wE,_o=(e,t=[],r=!1)=>{if(!(typeof e>"u")){if(t&&(r||Lf)){let n="",i="";for(let s of t){let o=SE[s];n+=o.open,i+=o.close}e=n+e+i}return e}},If,Tf=null,Of=(e,t,{level:r=1,preLines:n=0,postLines:i=0,nonTtyDedupe:s=!0}={},o=!1)=>{let a=console[e];if(typeof t>"u"){a();return}if(s&&!Lf){if(t===If||t===Tf?.raw)return;o||(If=t)}let l=t.split(`
17
+ `).length,c=n+l+i;Tf={raw:t,lines:c};for(let u=0;u<r;u++)console.group();for(let u=0;u<n;u++)a();a(t);for(let u=0;u<i;u++)a();for(let u=0;u<r;u++)console.groupEnd()},Df=(e,t,{force:r=!1,...n}={})=>{Of("log",_o(e,t,r),n)},QE=(e,t=[],{force:r=!1,level:n=1}={})=>{if(!e)return console.group();console.log(),console.log();for(let i=0;i<n;i++)console.group();console.group(_o(e,["bold",...t],r));for(let i=0;i<n;i++)console.groupEnd()},RE=()=>{console.groupEnd()},kf={start:QE,end:RE},IE=(e,t,r)=>{Of("warn",_o(e,t),r)};if(bE.isTTY){let e="__ADDED_INITIAL_PADDING__",t="__SET_FiNAL_PADDING_LISTENER__",r=()=>Qn[e]||null,n=()=>Qn[t]||null,i=()=>{Df(),kf.start(),Qn[e]="true"},s=()=>{Df(),kf.end(),process.removeListener("exit",s)};r()||i(),n()||(process.on("exit",s),Qn[t]="true"),process.addListener("SIGINT",()=>{process.exit(1)})}var TE=process.platform==="linux"||process.platform==="darwin",go=process.platform==="win32",DE={stdio:"pipe",shell:!0,detached:!go,env:process.env},kE={log:!0,commandTranslations:{},shellTranslations:{},...DE},pe=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=kE)=>{let i=null;return{childProcess:i,async run(s){if(i)throw new Error("Only one command per shell.");if(typeof s=="object"){let l=process.platform;s.posix&&TE&&(l="posix");let c=s[l];if(!c)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=c}let{cmd:o,args:a}=wf(s,r,t);return e&&IE(`$ ${o} ${a.join(" ")}`,["dim"],{preLines:1,postLines:1}),await new Promise((l,c)=>{i=yE(o,a,n);let u="",h="";if(!i)throw new Error("Child process was not set.");let A=b=>{i=null;let d={code:b,stdout:u,stderr:h};b===0||b===1&&!go?l(d):c(d)};i.stdout?.on("data",b=>{u+=b.toString()}),i.stderr?.on("data",b=>{h+=b.toString()}),i.on("close",A),i.on("exit",A),i.on("error",A),i.stdout?.pipe(process.stdout),i.stderr?.pipe(process.stderr)})},kill(s="SIGKILL"){if(i?.pid)if(go)CE(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};import{extname as Ob,resolve as Eo}from"path";var mo=()=>{let e=process.cwd(),t=Eo(e,"src"),r=Eo(e,"dist");return{cwd:e,srcDir:t,outDir:r}},yo=e=>{e=Eo(e);let{srcDir:t,outDir:r}=mo();return e.replace(t,r).replace(gt,".js").replace(tt,".js")};var LE={moduleResolution:"Node",module:"ESNext",target:"ESNext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},Co=async()=>{let e=fe(Co),t=pe({log:!1}),n=`yarn tsc -p tsconfig.json ${Object.entries(LE).map(([i,s])=>`--${i} ${s}`).join(" ")}`;e.log(`Calling: ${n}`),await t.run(n)};import{readFile as OE,writeFile as PE}from"fs/promises";import{resolve as Pf}from"path";var bo=async(e=process.cwd())=>{let t=Pf(e,"package.json");return await OE(t,"utf-8")},NE=async(e=process.cwd())=>{let t=await bo(e);return JSON.parse(t)},Rn=async(e=process.cwd(),t)=>{let r=Pf(e,"package.json"),n=await NE(e);return Object.assign(n,t),await PE(r,JSON.stringify(n,null,2),"utf-8"),n};import{readFileSync as ME}from"fs";function FE(e){return new Promise((t,r)=>{let n=[];function i(l){n.push(l)}function s(){a(),t(Buffer.concat(n))}function o(l){a(),r(l)}function a(){e.removeListener("data",i),e.removeListener("end",s),e.removeListener("error",o)}e.on("data",i),e.on("end",s),e.on("error",o)})}var Bo=async()=>{let e=fe(Bo);e.log("Reading stdin");try{let r=ME(0).toString();if(r)return e.log("Found stdin",{stdin:r}),r}catch(r){e.log("Could not read stdin",{e:r})}return qt(k.gray("Type your source code. Press Ctrl+D to finish.")),(await FE(process.stdin)).toString()};var He=async(e,t)=>{let r=je({text:t.start,indent:2});try{await e(),r.succeed(t.success)}catch(n){throw r.fail(t.error),n}};var Nf={name:"relative-externs",setup(e){e.onResolve({filter:/^\.\.?\//},({path:t,importer:r})=>r.includes("node_modules")?null:{path:t,external:!0})}};import{readFile as qE}from"fs/promises";var In=`
18
+ /** __ESM_SHIM_START */
19
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
20
+ /** __ESM_SHIM_END */
21
+ `,Mf={name:"removeEsmShim",setup(e){e.initialOptions.format==="cjs"&&e.onLoad({filter:/\.js$/},async({path:t})=>{let r=await qE(t,"utf8");if(r.startsWith(In))return{contents:r.slice(In.length),loader:"js"}})}};import{env as Tn,stdout as jE}from"process";if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");globalThis.__filename=t(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}var Kf=Boolean(process.stdout.isTTY),Ff=(e=0)=>t=>`\x1B[${t+e}m`,qf=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,jf=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,X={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]}},tB=Object.keys(X.modifier),HE=Object.keys(X.color),UE=Object.keys(X.bgColor),rB=[...HE,...UE];function $E(){let e=new Map;for(let[t,r]of Object.entries(X)){for(let[n,i]of Object.entries(r))X[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=X[n],e.set(i[0],i[1]);Object.defineProperty(X,t,{value:r,enumerable:!1})}return Object.defineProperty(X,"codes",{value:e,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.color.ansi=Ff(),X.color.ansi256=qf(),X.color.ansi16m=jf(),X.bgColor.ansi=Ff(10),X.bgColor.ansi256=qf(10),X.bgColor.ansi16m=jf(10),Object.defineProperties(X,{rgbToAnsi256:{value:(t,r,n)=>t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>X.rgbToAnsi256(...X.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>X.ansi256ToAnsi(X.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>X.ansi256ToAnsi(X.hexToAnsi256(t)),enumerable:!1}}),X}var KE=$E(),GE=KE,Gf=(e,t=[],r=!1)=>{if(!(typeof e>"u")){if(t&&(r||Kf)){let n="",i="";for(let s of t){let o=GE[s];n+=o.open,i+=o.close}e=n+e+i}return e}},Hf,Uf=null,JE=(e,t,{level:r=1,preLines:n=0,postLines:i=0,nonTtyDedupe:s=!0}={},o=!1)=>{let a=console[e];if(typeof t>"u"){a();return}if(s&&!Kf){if(t===Hf||t===Uf?.raw)return;o||(Hf=t)}let l=t.split(`
22
+ `).length,c=n+l+i;Uf={raw:t,lines:c};for(let u=0;u<r;u++)console.group();for(let u=0;u<n;u++)a();a(t);for(let u=0;u<i;u++)a();for(let u=0;u<r;u++)console.groupEnd()},de=(e,t,{force:r=!1,...n}={})=>{JE("log",Gf(e,t,r),n)};var YE=(e,t=[],{force:r=!1,level:n=1}={})=>{if(!e)return console.group();console.log(),console.log();for(let i=0;i<n;i++)console.group();console.group(Gf(e,["bold",...t],r));for(let i=0;i<n;i++)console.groupEnd()},WE=()=>{console.groupEnd()},$f={start:YE,end:WE};if(jE.isTTY){let e="__ADDED_INITIAL_PADDING__",t="__SET_FiNAL_PADDING_LISTENER__",r=()=>Tn[e]||null,n=()=>Tn[t]||null,i=()=>{de(),$f.start(),Tn[e]="true"},s=()=>{de(),$f.end(),process.removeListener("exit",s)};r()||i(),n()||(process.on("exit",s),Tn[t]="true"),process.addListener("SIGINT",()=>{process.exit(1)})}var nm=`import React from "react";
23
+ import ReactDOM from "react-dom";
24
+ `,Wf=e=>{let t=` ${e} `;de(k.bgBlue(k.bold(k.white(t))),[],{preLines:1,postLines:1})},RB=e=>{let t=` ${e} `;de(k.bgRed(k.bold(k.white(t))))},im=async(e="esm")=>{let t;switch(Dn("dist")||await Zf("dist"),Dn("dist/package.json")?t=JSON.parse(await zf("dist/package.json","utf-8")):t={},e){case"esm":t.type="module";break;case"cjs":t.type="commonjs";break;default:return!1}return await ZE("dist/package.json",JSON.stringify(t,null,2)),!0},Vf=(e,t,r)=>{t=cr(t);let n=yo(t);return{stdin:{contents:e,sourcefile:t,resolveDir:eA(t),loader:r},outdir:void 0,outfile:n,splitting:!1}},Xf=async(e,t,r)=>{e=cr(e),t=cr(t);let o=["yarn tailwindcss",r?"":"--minify","--postcss postcss.config.cjs",`-i ${e}`,`-o ${t}`];Dn(cr(process.cwd(),"tailwind.config.cjs"))&&o.push("--config tailwind.config.cjs");let a=pe({log:Mo,stdio:"ignore"}),l=o.join(" "),{code:c,stdout:u,stderr:h}=await a.run(l);if(c!==0)throw new Error(`Building CSS bundle exited with code ${c} for ${e}.
25
+ \rTried running: ${l}.
26
+ \rError: ${u+h}`)},fr=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",format:n="esm",tsconfig:i="tsconfig.json",dev:s=!1,bundle:o=!1,standalone:a=!1,runtimeOnly:l=!1,jsOnly:c=!1,noWrite:u=!1,stdin:h=void 0,stdinFile:A=void 0,external:b=[]}={})=>{Yf.NODE_ENV=s?"development":"production";let d=fe(fr);s&&(l=!0),a&&(o=!0);let{cwd:E,srcDir:B,outDir:C}=mo(),O=await bo(),N=JSON.parse(O),re={treeShaking:o,target:r,minify:!s,jsx:"transform",jsxFactory:"React.createElement",format:n,charset:"utf8",logLevel:s?"warning":"error",define:{"process.env.NODE_ENV":JSON.stringify(s?"development":"production")}},S=["esbuild","*.png"],M=[];a||M.push(Nf),n==="cjs"&&M.push(Mf);let Q;if(o)switch(n){case"esm":Q={js:In};break}let v={...re,tsconfig:i,bundle:o,splitting:n==="esm"&&o&&!h,absWorkingDir:E,outbase:"src",outdir:"dist",assetNames:"[name].js",format:n,target:"esnext",platform:N?.platform??"node",write:!u,external:o?[...S,...b]:void 0,banner:Q,plugins:M};d.log("Build options",v);let L="";if(h){d.log("Building file from stdin",{stdin:h,stdinFile:A,noWrite:u}),A||(de(k.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof h=="string"&&h.length?L=h:L=await Bo();let f={...re,sourcefile:A,loader:"tsx",banner:void 0,footer:void 0};if(u)return(await rm(L,f)).code;{let U=Vf(L,A,"tsx");await He(async()=>await vo({...v,...U}),{start:"Building stdin to dist/.",success:"Built stdin to dist/.",error:"Error building stdin to dist/."}),de(k.grey("Use --no-write to print to stdout instead."));return}}d.log("Building",{files:e,dev:s,runtimeOnly:l}),Wf(`${k.bold("TS Module")} [${Yf.NODE_ENV}]`);let G=xo.default.sync(e,{cwd:E}).filter(f=>zE(f)!==".d.ts").map(f=>cr(f));if(em(e)){G.length||G.push(e);let f=e.replace(B,C).replace(gt,".js").replace(tt,".js");d.log("Cleaning emitted file:",{outfile:f}),await Jf(f,{force:!0})}else d.log("Cleaning old output:",{outDir:C}),await Jf(C,{force:!0,recursive:!0});let _=G.filter(f=>tt.test(f));d.log("Compiling TSX files:",{tsxJsxInput:_});let H=_.filter(f=>!f.endsWith(".d.ts"));await He(async()=>await Promise.all(H.map(async f=>{let U=await zf(f,"utf-8"),T=nm+U,ge=Vf(T,f,"tsx");await vo({...v,...ge})})),{start:"Compiling TSX files.",success:"Compiled TSX files.",error:"Failed to compile TSX files."});let F=G.filter(f=>gt.test(f)).filter(f=>!tt.test(f));d.log("Compiling TS files:",{tsJsInput:F}),await He(async()=>await vo({...v,entryPoints:F.filter(f=>!f.endsWith(".d.ts"))}),{start:"Compiling TS/JS files.",success:"Compiled TS/JS files.",error:"Failed to compile TS/JS files."});let we=G.filter(f=>!Fo.test(f));if(await He(async()=>{for(let f of we){let U=yo(f);d.log("Copying non-source file:",{file:f,emittedFile:U}),await Zf(eA(U),{recursive:!0}),await XE(f,U,VE.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 f=e.replace(B,C).replace(/^(\.\/)?src\//,"dist/").replace(gt,".js").replace(tt,".js");d.log("Normalizing import specifiers in emitted JS.",{emittedJs:f}),await He(async()=>await Zr(f.endsWith(".js")?f:`${f}.js`),{start:"Normalizing import specifiers.",success:"Normalized import specifiers.",error:"Failed to normalize import specifiers."}),await Zr(f.endsWith(".js")?f:`${f}.js`)}if(await im(n)&&je({text:'Forced "type" package.json field in dist.',indent:2}).succeed(),!l){if(!c)if(Dn(tm(t))){d.log("Building styles for production.");let{style:f="./dist/bundle.css"}=N;if(d.log("Building style bundle.",{bundleInput:t,bundleOutput:f,dev:s}),await He(async()=>await Xf(t,f,s),{start:"Bundling styles with Tailwind.",success:"Bundled styles with Tailwind.",error:"Failed to bundle styles."}),o){d.log("Bundling all styles.");let U=xo.default.sync("dist/**/*.css");await He(async()=>await Promise.all(U.map(async T=>await Xf(T,T,s))),{start:"Bundling emitted styles",success:`Bundled all styles to ${k.bold(f)}.`,error:"Failed to bundle styles."})}}else de(),de(k.grey("Bundle styles not found for this project.")),de("Checked: "+k.bold(t)),de();Wf("Running post-build setup."),await He(async()=>await Co(),{start:"Generating type declarations.",success:`Generated declarations for ${G.length} files.`,error:"Failed to generate type declarations."}),de(),de("Build complete.",["green"])}},IB=async(e,t)=>await fr({input:e,...t});var tA={"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},wo={packageJson:{type:"module",platform:"node",engines:{node:">=14"},types:"dist/index.d.ts",files:["dist"],exports:tA,scripts:{dev:"tsmodule dev",build:"tsmodule build",pretest:"yarn build",test:"ava",prepublishOnly:"yarn test",lint:"eslint src --fix"}},files:[".github/**",".eslintrc.yml",".gitignore","tsconfig.json","LICENSE","ava.config.mjs"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","ava","typescript","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"]},dt={default:wo,react:{packageJson:{...wo.packageJson,platform:"browser",style:"dist/bundle.css",exports:{...tA,"./*":"./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:"yarn build",test:"ava",prepublishOnly:"yarn test && yarn export"}},files:[".github/**",".gitignore","next-env.d.ts","next.config.js","postcss.config.cjs","tailwind.config.cjs"],dependencies:["react@^18.2.0","react-dom@^18.2.0"],devDependencies:[...wo.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 sm,resolve as rA}from"path";import{fileURLToPath as om}from"url";import{readFile as am}from"fs/promises";var Ar=rA(sm(om(import.meta.url)),".."),NB=async()=>{let e=await am(rA(Ar,"package.json"),"utf-8");return JSON.parse(e)};import{resolve as sA}from"path";var nA=Pe(Xr(),1);import{copyFile as lm,mkdir as So}from"fs/promises";import{dirname as um,resolve as Ft}from"path";var iA=e=>Ft(Ar,`./templates/${e}`),Ro=async({template:e,targetDir:t=process.cwd()})=>{let r=pe({log:!1}),n=iA(e),i=Ft(t);await So(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})},Qo=async({template:e,targetDir:t=process.cwd()})=>{let r=fe(Qo);r.log("Copying template files",{template:e,targetDir:t});let n=iA(e),i=Ft(t);await So(i,{recursive:!0});let s=await(0,nA.default)(dt[e].files,{cwd:n,dot:!0});if(s.length)for(let o of s){let a=Ft(n,o),l=Ft(i,o);r.log({sourcePath:a,replacementPath:l}),await So(um(l),{recursive:!0}),await lm(a,l)}},hr=async({template:e,targetDir:t=process.cwd()})=>{let r=Ft(t),n=dt[e].packageJson;return await Rn(r,n)},kn=async({template:e,targetDir:t=process.cwd()})=>{let r=pe({cwd:t}),n=[...dt.default.dependencies],i=[...dt.default.devDependencies];switch(e){case"react":n.push(...dt.react.dependencies),i.push(...dt.react.devDependencies);break}n.length&&await r.run(`yarn add ${n.join(" ")}`),i.length&&await r.run(`yarn add -D ${i.join(" ")}`)},JB=async({template:e,targetDir:t=process.cwd()})=>{let r={template:"default",targetDir:t};if(await Qo(r),await hr(r),e!=="default"){let n={template:e,targetDir:t};await Qo(n),await hr(n)}await kn({template:e,targetDir:t})};var rv=async(e,{react:t=!1})=>{let r=je({text:`Creating new module ${k.blueBright(e)}.`,indent:2}).start(),n={template:"default",targetDir:e};if(await Ro(n),await hr(n),t){let s={template:"react",targetDir:e};await Ro(s),await hr(s)}await Rn(sA(process.cwd(),e),{name:e}),r.succeed("Project created."),await kn({template:"default",targetDir:e}),t&&await kn({template:"react",targetDir:e}),r.succeed("Dependencies installed."),await pe({cwd:sA(e),stdio:["ignore","ignore","inherit"]}).run("git init"),r.succeed("Set up as Git repository.")};import{relative as vm,resolve as xm}from"path";import{existsSync as wm}from"fs";import{lstat as Sm}from"fs/promises";var wA=Pe(BA(),1);var vA=()=>{console.clear()},xA=e=>{qt(`
27
+ `,k.gray(`Built ${k.bold(e)}.`),`
28
+ `,k.blue(new Date().toLocaleString()))},dv=async({format:e="esm"})=>{let t=process.cwd(),r=pe();process.platform!=="win32"&&await r.run("clear"),vA(),await fr({format:e,dev:!0}),xA("src/**/*"),(0,wA.default)(xm(t,"src"),{recursive:!0}).on("change",async(n,i)=>{if(!wm(i)||(await Sm(i)).isDirectory())return;vA();let l=Date.now();try{await fr({dev:!0,runtimeOnly:!0,input:i})}catch(u){qt("ERROR:",u)}let c=Date.now()-l;je({text:k.blueBright(`Dev refresh finished in ${k.bold(`${c}ms`)}.`),indent:2}).succeed(),xA(vm(t,i))})};import{pathToFileURL as Qm}from"url";import{resolve as Rm}from"path";var Cv=async()=>{let e=Rm(Ar,"dist/loader/index.js"),t=["--no-warnings","--loader",Qm(e).href,...process.argv.slice(2)],r=pe({stdio:"inherit"}),{code:n}=await r.run(`node ${t.join(" ")}`);process.exit(n??0)};export{k as a,NE as b,Zr as c,Wf as d,RB as e,fr as f,IB as g,dt as h,NB as i,JB as j,rv as k,dv as l,Cv as m};
29
+ /*! Bundled license information:
30
+
31
+ is-extglob/index.js:
32
+ (*!
33
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
34
+ *
35
+ * Copyright (c) 2014-2016, Jon Schlinkert.
36
+ * Licensed under the MIT License.
37
+ *)
38
+
39
+ is-glob/index.js:
40
+ (*!
41
+ * is-glob <https://github.com/jonschlinkert/is-glob>
42
+ *
43
+ * Copyright (c) 2014-2017, Jon Schlinkert.
44
+ * Released under the MIT License.
45
+ *)
46
+
47
+ is-number/index.js:
48
+ (*!
49
+ * is-number <https://github.com/jonschlinkert/is-number>
50
+ *
51
+ * Copyright (c) 2014-present, Jon Schlinkert.
52
+ * Released under the MIT License.
53
+ *)
54
+
55
+ to-regex-range/index.js:
56
+ (*!
57
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
58
+ *
59
+ * Copyright (c) 2015-present, Jon Schlinkert.
60
+ * Released under the MIT License.
61
+ *)
62
+
63
+ fill-range/index.js:
64
+ (*!
65
+ * fill-range <https://github.com/jonschlinkert/fill-range>
66
+ *
67
+ * Copyright (c) 2014-present, Jon Schlinkert.
68
+ * Licensed under the MIT License.
69
+ *)
70
+
71
+ queue-microtask/index.js:
72
+ (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
73
+
74
+ run-parallel/index.js:
75
+ (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
76
+
77
+ safe-buffer/index.js:
78
+ (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
79
+ */