@tsmodule/tsmodule 40.18.0 → 41.0.0

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