@tsmodule/tsmodule 41.2.0 → 41.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/commands/build/index.js +2 -2
- package/dist/commands/build/lib/emitTsDeclarations.js +1 -1
- package/dist/commands/convert/index.js +1 -1
- package/dist/commands/create/index.js +1 -1
- package/dist/commands/create/lib/templates.js +1 -1
- package/dist/commands/dev/index.js +1 -1
- package/dist/commands/execute/index.js +1 -1
- package/dist/commands/index.js +1 -1
- package/dist/commands/normalize/index.js +1 -1
- package/dist/commands/normalize/lib/typescriptApi.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/loader/types.js +1 -1
- package/dist/specification/externs.js +1 -1
- package/dist/specification/index.js +2 -2
- package/dist/specification/shim.js +2 -2
- package/dist/specification/types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/cwd.js +1 -1
- package/dist/utils/packageJson.js +1 -1
- package/dist/utils/programCatch.js +1 -1
- package/dist/utils/require.js +1 -1
- package/dist/utils/resolve.js +1 -1
- package/dist/utils/showProgress.js +1 -1
- package/dist/utils/stdin.js +1 -1
- package/package.json +1 -1
- package/templates/default/.github/workflows/ci.yml +10 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");
|
2
|
+
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
|
3
3
|
|
4
4
|
var lo=Object.create;var Nr=Object.defineProperty;var fo=Object.getOwnPropertyDescriptor;var uo=Object.getOwnPropertyNames;var co=Object.getPrototypeOf,ho=Object.prototype.hasOwnProperty;var m=(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 po=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of uo(t))!ho.call(e,n)&&n!==r&&Nr(e,n,{get:()=>t[n],enumerable:!(i=fo(t,n))||i.enumerable});return e};var ne=(e,t,r)=>(r=e!=null?lo(co(e)):{},po(t||!e||!e.__esModule?Nr(r,"default",{value:e,enumerable:!0}):r,e));var ni=h((mf,Pt)=>{"use strict";var ii=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Pt.exports=ii;Pt.exports.default=ii});var si=h((vf,Ve)=>{"use strict";var zo=ni(),$e=new WeakMap,oi=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,i=0,n=e.displayName||e.name||"<anonymous>",o=function(...s){if($e.set(o,++i),i===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return zo(o,e),$e.set(o,i),o};Ve.exports=oi;Ve.exports.default=oi;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 ai=h((yf,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 hi=h((xf,ce)=>{var y=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(y)?(li=m("assert"),fe=ai(),fi=/^win/i.test(y.platform),we=m("events"),typeof we!="function"&&(we=we.EventEmitter),y.__signal_exit_emitter__?C=y.__signal_exit_emitter__:(C=y.__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(){};li.equal(typeof e,"function","a callback must be provided for exit handler"),ue===!1&&Ft();var r="exit";t&&t.alwaysLast&&(r="afterexit");var i=function(){C.removeListener(r,e),C.listeners("exit").length===0&&C.listeners("afterexit").length===0&&He()};return C.on(r,e),i},He=function(){!ue||!Z(global.process)||(ue=!1,fe.forEach(function(t){try{y.removeListener(t,Ke[t])}catch{}}),y.emit=Je,y.reallyExit=jt,C.count-=1)},ce.exports.unload=He,X=function(t,r,i){C.emitted[t]||(C.emitted[t]=!0,C.emit(t,r,i))},Ke={},fe.forEach(function(e){Ke[e]=function(){if(!!Z(global.process)){var r=y.listeners(e);r.length===C.count&&(He(),X("exit",null,e),X("afterexit",null,e),fi&&e==="SIGHUP"&&(e="SIGINT"),y.kill(y.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 y.on(t,Ke[t]),!0}catch{return!1}}),y.emit=ci,y.reallyExit=ui)},ce.exports.load=Ft,jt=y.reallyExit,ui=function(t){!Z(global.process)||(y.exitCode=t||0,X("exit",y.exitCode,null),X("afterexit",y.exitCode,null),jt.call(y,y.exitCode))},Je=y.emit,ci=function(t,r){if(t==="exit"&&Z(global.process)){r!==void 0&&(y.exitCode=r);var i=Je.apply(this,arguments);return X("exit",y.exitCode,null),X("afterexit",y.exitCode,null),i}else return Je.apply(this,arguments)}):ce.exports=function(){return function(){}};var li,fe,fi,we,C,He,X,Ke,ue,Ft,jt,ui,Je,ci});var bi=h((Of,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 yi=h((Cf,vi)=>{"use strict";var Xe=Object.assign({},bi()),mi=Object.keys(Xe);Object.defineProperty(Xe,"random",{get(){let e=Math.floor(Math.random()*mi.length),t=mi[e];return Xe[t]}});vi.exports=Xe});var xi=h((Ff,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 i(s){return typeof s=="object"&&t(s)==="[object Array]"}e.__isArray=i;function n(s){return typeof s=="object"&&t(s)==="[object RegExp]"}e.__isRegExp=n;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 Ei=h((jf,wi)=>{var as=xi();wi.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=as(t[r]))}),e}});var Ti=h((kf,Ri)=>{Ri.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 Ai=h((qf,Wt)=>{"use strict";var ls=Ei(),Te=Ti(),Oi={nul:0,control:0};Wt.exports=function(t){return Ci(t,Oi)};Wt.exports.config=function(e){return e=ls(e||{},Oi),function(r){return Ci(r,e)}};function Ci(e,t){if(typeof e!="string")return Si(e,t);for(var r=0,i=0;i<e.length;i++){var n=Si(e.charCodeAt(i),t);if(n<0)return-1;r+=n}return r}function Si(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=Te.length-1,i;if(e<Te[0][0]||e>Te[r][1])return!1;for(;r>=t;)if(i=Math.floor((t+r)/2),e>Te[i][1])t=i+1;else if(e<Te[i][0])r=i-1;else return!0;return!1}});var $t=h((Wf,Bi)=>{Bi.exports=m("stream")});var Ii=h((Gf,Di)=>{"use strict";function Mi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function us(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mi(Object(r),!0).forEach(function(i){cs(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mi(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}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 Ni(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ds(e,t,r){return t&&Ni(e.prototype,t),r&&Ni(e,r),e}var ps=m("buffer"),ze=ps.Buffer,_s=m("util"),Vt=_s.inspect,gs=Vt&&Vt.custom||"inspect";function bs(e,t,r){ze.prototype.copy.call(e,t,r)}Di.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 i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return ze.alloc(0);for(var i=ze.allocUnsafe(r>>>0),n=this.head,o=0;n;)bs(n.data,i,o),o+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,o=i.data;for(r-=o.length;i=i.next;){var s=i.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?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++n}return this.length-=n,o}},{key:"_getBuffer",value:function(r){var i=ze.allocUnsafe(r),n=this.head,o=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(s.copy(i,i.length-r,0,a),r-=a,r===0){a===s.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++o}return this.length-=o,i}},{key:gs,value:function(r,i){return Vt(this,us({},i,{depth:0,customInspect:!1}))}}]),e}()});var Ht=h(($f,Pi)=>{"use strict";function ms(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(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(Li,r,o)):process.nextTick(Li,r,o):t?(process.nextTick(et,r),t(o)):process.nextTick(et,r)}),this)}function Li(e,t){Yt(e,t),et(e)}function et(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function vs(){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 ys(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}Pi.exports={destroy:ms,undestroy:vs,errorOrDestroy:ys}});var V=h((Vf,ki)=>{"use strict";var ji={};function D(e,t,r){r||(r=Error);function i(o,s,a){return typeof t=="string"?t:t(o,s,a)}class n extends r{constructor(s,a,l){super(i(s,a,l))}}n.prototype.name=r.name,n.prototype.code=e,ji[e]=n}function Fi(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(i=>String(i)),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 i;typeof t=="string"&&xs(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";let n;if(ws(e," argument"))n=`The ${e} ${i} ${Fi(t,"type")}`;else{let o=Es(e,".")?"property":"argument";n=`The "${e}" ${o} ${i} ${Fi(t,"type")}`}return n+=`. Received type ${typeof r}`,n},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");ki.exports.codes=ji});var Kt=h((Yf,qi)=>{"use strict";var Rs=V().codes.ERR_INVALID_OPT_VALUE;function Ts(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Ss(e,t,r,i){var n=Ts(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var o=i?r:"highWaterMark";throw new Rs(o,n)}return Math.floor(n)}return e.objectMode?16:16*1024}qi.exports={getHighWaterMark:Ss}});var Ui=h((Hf,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 i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var Q=h((Kf,Xt)=>{try{if(Zt=m("util"),typeof Zt.inherits!="function")throw"";Xt.exports=Zt.inherits}catch{Xt.exports=Ui()}var Zt});var Gi=h((Jf,Wi)=>{Wi.exports=m("util").deprecate});var er=h((Zf,Ji)=>{"use strict";Ji.exports=w;function Vi(e){var t=this;this.next=null,this.entry=null,this.finish=function(){zs(t,e)}}var de;w.WritableState=Oe;var Os={deprecate:Gi()},Yi=$t(),rt=m("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,Yi);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 i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){Ks(t,n)},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 Vi(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)),Yi.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,i){var n;return r===null?n=new js:typeof r!="string"&&!t.objectMode&&(n=new Ds("chunk",["string","Buffer"],r)),n?(pe(e,n),process.nextTick(i,n),!1):!0}w.prototype.write=function(e,t,r){var i=this._writableState,n=!1,o=!i.objectMode&&Bs(e);return o&&!rt.isBuffer(e)&&(e=As(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Us),i.ending?Ws(this,r):(o||Gs(this,i,e,r))&&(i.pendingcb++,n=Vs(this,i,o,e,t,r)),n};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&&Hi(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,i,n,o){if(!r){var s=$s(t,i,n);i!==s&&(r=!0,n="buffer",i=s)}var a=t.objectMode?1:i.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:i,encoding:n,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Qt(e,t,!1,a,i,n,o);return l}function Qt(e,t,r,i,n,o,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Fs("write")):r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function Ys(e,t,r,i,n){--t.pendingcb,r?(process.nextTick(n,i),process.nextTick(Se,e,t),e._writableState.errorEmitted=!0,pe(e,i)):(n(i),e._writableState.errorEmitted=!0,pe(e,i),Se(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,i=r.sync,n=r.writecb;if(typeof n!="function")throw new Ls;if(Hs(r),t)Ys(e,r,i,t,n);else{var o=Ki(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Hi(e,r),i?process.nextTick($i,e,r,o,n):$i(e,r,o,n)}}function $i(e,t,r,i){r||Js(e,t),t.pendingcb--,i(),Se(e,t)}function Js(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Hi(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,a=!0;r;)n[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;n.allBuffers=a,Qt(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Vi(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 i=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),i.corked&&(i.corked=1,this.uncork()),i.ending||Qs(this,i,r),this};Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ki(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"),Se(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 Se(e,t){var r=Ki(t);if(r&&(Xs(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function Qs(e,t,r){t.ending=!0,Se(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function zs(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.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((Xf,Xi)=>{"use strict";var ea=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Xi.exports=q;var Zi=ir(),rr=er();Q()(q,Zi);for(tr=ea(rr.prototype),it=0;it<tr.length;it++)nt=tr[it],q.prototype[nt]||(q.prototype[nt]=rr.prototype[nt]);var tr,nt,it;function q(e){if(!(this instanceof q))return new q(e);Zi.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 en=h((nr,zi)=>{var ot=m("buffer"),U=ot.Buffer;function Qi(e,t){for(var r in e)t[r]=e[r]}U.from&&U.alloc&&U.allocUnsafe&&U.allocUnsafeSlow?zi.exports=ot:(Qi(ot,nr),nr.Buffer=ee);function ee(e,t,r){return U(e,t,r)}ee.prototype=Object.create(U.prototype);Qi(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 i=U(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};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(rn=>{"use strict";var sr=en().Buffer,tn=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 ia(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 na(e){var t=ia(e);if(typeof t!="string"&&(sr.isEncoding===tn||!tn(e)))throw new Error("Unknown encoding: "+e);return t||e}rn.StringDecoder=Ce;function Ce(e){this.encoding=na(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 i=t.length-1;if(i<r)return 0;var n=or(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=or(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=or(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):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 i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}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 i=r.charCodeAt(r.length-1);if(i>=55296&&i<=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((zf,sn)=>{"use strict";var nn=V().codes.ERR_STREAM_PREMATURE_CLOSE;function ga(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function ba(){}function ma(e){return e.setHeader&&typeof e.abort=="function"}function on(e,t,r){if(typeof t=="function")return on(e,null,t);t||(t={}),r=ga(r||ba);var i=t.readable||t.readable!==!1&&e.readable,n=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||a()},s=e._writableState&&e._writableState.finished,a=function(){n=!1,s=!0,i||r.call(e)},l=e._readableState&&e._readableState.endEmitted,f=function(){i=!1,l=!0,n||r.call(e)},c=function(A){r.call(e,A)},d=function(){var A;if(i&&!l)return(!e._readableState||!e._readableState.ended)&&(A=new nn),r.call(e,A);if(n&&!s)return(!e._writableState||!e._writableState.ended)&&(A=new nn),r.call(e,A)},x=function(){e.req.on("finish",a)};return ma(e)?(e.on("complete",a),e.on("abort",d),e.req?x():e.on("request",x)):n&&!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)}}sn.exports=on});var ln=h((eu,an)=>{"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 va=st(),K=Symbol("lastResolve"),te=Symbol("lastReject"),Ae=Symbol("error"),lt=Symbol("ended"),re=Symbol("lastPromise"),lr=Symbol("handlePromise"),ie=Symbol("stream");function J(e,t){return{value:e,done:t}}function ya(e){var t=e[K];if(t!==null){var r=e[ie].read();r!==null&&(e[re]=null,e[K]=null,e[te]=null,t(J(r,!1)))}}function xa(e){process.nextTick(ya,e)}function wa(e,t){return function(r,i){e.then(function(){if(t[lt]){r(J(void 0,!0));return}t[lr](r,i)},i)}}var Ea=Object.getPrototypeOf(function(){}),Ra=Object.setPrototypeOf((at={get stream(){return this[ie]},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[ie].destroyed)return new Promise(function(s,a){process.nextTick(function(){t[Ae]?a(t[Ae]):s(J(void 0,!0))})});var i=this[re],n;if(i)n=new Promise(wa(i,this));else{var o=this[ie].read();if(o!==null)return Promise.resolve(J(o,!1));n=new Promise(this[lr])}return this[re]=n,n}},H(at,Symbol.asyncIterator,function(){return this}),H(at,"return",function(){var t=this;return new Promise(function(r,i){t[ie].destroy(null,function(n){if(n){i(n);return}r(J(void 0,!0))})})}),at),Ea),Ta=function(t){var r,i=Object.create(Ra,(r={},H(r,ie,{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=i[ie].read();a?(i[re]=null,i[K]=null,i[te]=null,o(J(a,!1))):(i[K]=o,i[te]=s)},writable:!0}),r));return i[re]=null,va(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[te];o!==null&&(i[re]=null,i[K]=null,i[te]=null,o(n)),i[Ae]=n;return}var s=i[K];s!==null&&(i[re]=null,i[K]=null,i[te]=null,s(J(void 0,!0))),i[lt]=!0}),t.on("readable",xa.bind(null,i)),i};an.exports=Ta});var hn=h((tu,cn)=>{"use strict";function fn(e,t,r,i,n,o,s){try{var a=e[o](s),l=a.value}catch(f){r(f);return}a.done?t(l):Promise.resolve(l).then(i,n)}function Sa(e){return function(){var t=this,r=arguments;return new Promise(function(i,n){var o=e.apply(t,r);function s(l){fn(o,i,n,s,a,"next",l)}function a(l){fn(o,i,n,s,a,"throw",l)}s(void 0)})}}function un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Oa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?un(Object(r),!0).forEach(function(i){Ca(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}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 i;if(t&&typeof t.next=="function")i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new Aa("iterable",["Iterable"],t);var n=new e(Oa({objectMode:!0},r)),o=!1;n._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=Sa(function*(){try{var l=yield i.next(),f=l.value,c=l.done;c?n.push(null):n.push(yield f)?s():o=!1}catch(d){n.destroy(d)}}),a.apply(this,arguments)}return n}cn.exports=Ba});var ir=h((iu,wn)=>{"use strict";wn.exports=p;var _e;p.ReadableState=gn;var ru=m("events").EventEmitter,_n=function(t,r){return t.listeners(r).length},Me=$t(),ft=m("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=m("util"),u;fr&&fr.debuglog?u=fr.debuglog("stream"):u=function(){};var Ia=Ii(),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 gn(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 gn(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,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=ft.from(e,t),t=""),i=!0),bn(this,e,t,!1,i)};p.prototype.unshift=function(e){return bn(this,e,null,!0,!1)};function bn(e,t,r,i,n){u("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,$a(e,o);else{var s;if(n||(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)),i)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 i||(o.reading=!1,_r(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function dr(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?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,i="";r!==null;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var dn=1073741824;function Ga(e){return e>=dn?e=dn:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function pn(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=pn(e,t),e===0&&t.ended)return t.length===0&&pr(this),null;var i=t.needReadable;u("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,u("length less than watermark",i)),t.ended||t.reading?(i=!1,u("reading or ended",i)):i&&(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=pn(r,t)));var n;return e>0?n=yn(e,t):n=null,n===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)),n!==null&&this.emit("data",n),n};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,mn(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(mn,e))}function mn(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,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=n?a:_;i.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,i.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&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&xn(i.pipes,e)!==-1)&&!f&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function x(G){u("onerror",G),_(),e.removeListener("error",x),_n(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),i.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&&_n(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 i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=xn(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),i=this._readableState;return e==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?ct(this):i.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(vn,this),r};p.prototype.removeAllListeners=function(e){var t=Me.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(vn,this),t};function vn(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,i=!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||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(a){return function(){return e[a].apply(e,arguments)}}(n));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),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(p.prototype[Symbol.asyncIterator]=function(){return ur===void 0&&(ur=ln()),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=yn;Object.defineProperty(p.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function yn(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=hn()),cr(p,e,t)});function xn(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var mr=h((nu,Rn)=>{"use strict";Rn.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 i=r.writecb;if(i===null)return this.emit("error",new Qa);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.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){En(e,t,r)}):En(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 i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.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 En(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 On=h((ou,Sn)=>{"use strict";Sn.exports=Ne;var Tn=mr();Q()(Ne,Tn);function Ne(e){if(!(this instanceof Ne))return new Ne(e);Tn.call(this,e)}Ne.prototype._transform=function(e,t,r){r(null,e)}});var Nn=h((su,Mn)=>{"use strict";var vr;function il(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Bn=V().codes,nl=Bn.ERR_MISSING_ARGS,ol=Bn.ERR_STREAM_DESTROYED;function Cn(e){if(e)throw e}function sl(e){return e.setHeader&&typeof e.abort=="function"}function al(e,t,r,i){i=il(i);var n=!1;e.on("close",function(){n=!0}),vr===void 0&&(vr=st()),vr(e,{readable:t,writable:r},function(s){if(s)return i(s);n=!0,i()});var o=!1;return function(s){if(!n&&!o){if(o=!0,sl(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(s||new ol("pipe"))}}}function An(e){e()}function ll(e,t){return e.pipe(t)}function fl(e){return!e.length||typeof e[e.length-1]!="function"?Cn:e.pop()}function ul(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=fl(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new nl("streams");var n,o=t.map(function(s,a){var l=a<t.length-1,f=a>0;return al(s,l,f,function(c){n||(n=c),c&&o.forEach(An),!l&&(o.forEach(An),i(n))})});return t.reduce(ll)}Mn.exports=ul});var Dn=h((I,Ie)=>{var De=m("stream");process.env.READABLE_STREAM==="disable"&&De?(Ie.exports=De.Readable,Object.assign(Ie.exports,De),Ie.exports.Stream=De):(I=Ie.exports=ir(),I.Stream=De||I,I.Readable=I,I.Writable=er(),I.Duplex=z(),I.Transform=mr(),I.PassThrough=On(),I.finished=st(),I.pipeline=Nn())});var Pn=h((au,Ln)=>{"use strict";var{Buffer:F}=m("buffer"),In=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,In,{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 i=0;i<this._bufs.length;i++){let n=r+this._bufs[i].length;if(t<n||i===this._bufs.length-1)return[i,t-r];r=n}};b.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let i=0;i<t;i++)r+=this._bufs[i].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,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return t||F.alloc(0);let o=!!t,s=this._offset(i),a=n-i,l=a,f=o&&r||0,c=s[1];if(i===0&&n===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 i=this._offset(t),n=this._offset(r),o=this._bufs.slice(i[0],n[0]+1);return n[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,n[1]),i[1]!==0&&(o[0]=o[0].slice(i[1])),this._new(o)};b.prototype.toString=function(t,r,i){return this.slice(r,i).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 i=this._offset(t),n=i[0],o=i[1];for(;n<this._bufs.length;n++){let s=this._bufs[n];for(;o<s.length;)if(s.length-o>=e.length){let l=s.indexOf(e,o);if(l!==-1)return this._reverseOffset([n,l]);o=s.length-e.length+1}else{let l=this._reverseOffset([n,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(i,n){return this.slice(i,i+n)[r](0,n)}:b.prototype[r]=function(i=0){return this.slice(i,i+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[In]};Ln.exports=b});var Fn=h((lu,pt)=>{"use strict";var yr=Dn().Duplex,cl=Q(),Le=Pn();function B(e){if(!(this instanceof B))return new B(e);if(typeof e=="function"){this._callback=e;let t=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",t)}),this.on("unpipe",function(i){i.removeListener("error",t)}),e=null}Le._init.call(this,e),yr.call(this)}cl(B,yr);Object.assign(B.prototype,Le.prototype);B.prototype._new=function(t){return new B(t)};B.prototype._write=function(t,r,i){this._appendBuffer(t),typeof i=="function"&&i()};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){yr.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 Tr=h((xu,Un)=>{var mt=m("fs"),qn=m("path"),pl=m("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 mt.existsSync(e)},file:function(e){return Rr(e,function(t){return mt.statSync(t).isFile()})},samePath:function(e,t){return qn.resolve(e)===qn.resolve(t)},directory:function(e){return Rr(e,function(t){return mt.statSync(t).isDirectory()})},symbolicLink:function(e){return Rr(e,function(t){return mt.lstatSync(t).isSymbolicLink()})},windows:function(){return pl.platform()==="win32"}};Un.exports=_l});var Yn=h((wu,Vn)=>{var je=m("fs"),Wn=m("os"),Sr=m("path"),vt=Tr(),Fe,gl=Wn.tmpdir&&Wn.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function $n(){this.stack=[]}$n.prototype={create:function(e,t){var r=Sr.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,i=t.name;r==="file"&&vt.file(i)?je.unlinkSync(i):r==="dir"&&vt.directory(i)&&je.rmdirSync(i)}}finally{vt.func(e)&&e()}}};var Gn=!1;Vn.exports=function e(t){if(!vt.func(t))return!1;if(Fe!==void 0)return t(Fe);if(!Gn)Gn=!0;else return setTimeout(function(){e(t)},300);var r=new $n,i=r.create("dir",gl),n=r.create("dir",i),o=r.create("file",n);r.mkdir(i,n);var s={recursive:!0},a;try{a=je.watch(i,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){Sr.basename(o)===Sr.basename(c)&&(a.close(),clearTimeout(l),r.cleanup(function(){t(Fe=!0)}))}),r.write(o)}});var io=h((Eu,Br)=>{var Cr=m("fs"),ke=m("path"),Kn=m("util"),Jn=m("events"),Zn=Yn(),g=Tr(),bl="update",Xn="remove",Hn=Symbol("skip");function ml(e){return e.some(function(t,r,i){return i.indexOf(t)!==r})}function Ar(e){return e.filter(function(t,r,i){return i.indexOf(t)===r})}function vl(e){return e.reduce(function(t,r){return t.concat(r)},[])}function yl(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]:[Xn,t]})}function El(e){var t=Ar(e),r=/~$|^\.#|^##$/g,i=e.some(function(o){return r.test(o)});if(i){var n=ml(e.map(function(o){return o.replace(r,"")}));n&&(t=t.filter(function(o){return g.exists(o)}))}return wl(t)}function Rl(e,t){var r,i=[],n=e.options.encoding,o=e.options.delay;g.number(o)||(o=200);function s(){El(i).forEach(function(a){a[1]=Buffer.from(a[1]),n!=="buffer"&&(a[1]=a[1].toString(n)),t.apply(null,a)}),r=null,i=[]}return function(a,l){i.push(l),r||(r=setTimeout(s,o))}}function Qn(){var e={};return function(t){return function(r,i){e[r+i]=[r,i],setTimeout(function(){Object.keys(e).forEach(function(n){t.apply(null,e[n])}),e={}})}}}function zn(e,t,r=function(){}){g.directory(e)?Cr.readdir(e,function(i,n){if(i)if(/^(EPERM|EACCES)$/.test(i.code))console.warn("Warning: Cannot access %s.",e);else throw i;else n.forEach(function(o){var s=ke.join(e,o);g.directory(s)&&t(s)}),r()}):r()}function Tl(e){var t=0;return function(){return t++,function(){t--,t===0&&e()}}}function Sl(){return function(){}}function eo(e,t){return!g.func(t)||t(e,Hn)!==Hn}var to=Kn.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(){Jn.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}Kn.inherits(W,Jn.EventEmitter);W.prototype.expose=function(){var e={},t=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(i){e[i]=function(){return t[i].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]),zn(e,function(i){t.close(i)})}else Object.keys(t.watchers).forEach(function(i){var n=t.watchers[i];n&&n.close&&n.close()}),this.watchers={};g.emptyObject(t.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(ro,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 ro(e){e.emit("close")}W.prototype.add=function(e,t){var r=this;t=t||{fpath:""};var i=ke.resolve(t.fpath);this.watchers[i]=e;var n=function(s,a){if(!r.isClosed()){var l=a;g.nil(l)&&(l=""),l=ke.join(t.fpath,l),t.options.recursive&&Zn(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]&&eo(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",Xn,t.fpath&&""),r.flag="windows-error",r.close(i)):r.emit("error",s))}),e.on("change",n)};W.prototype.watchFile=function(e,t,r){var i=ke.join(e,"../"),n=Object.assign({},t,{filter:null,encoding:"utf8"});delete n.recursive;var o=Cr.watch(i,n);this.add(o,{type:"file",fpath:i,options:Object.assign({},n,{encoding:t.encoding}),compareName:function(s){return g.samePath(s,e)}}),g.func(r)&&(r.length===1&&to(),this.on("change",r))};W.prototype.watchDirectory=function(e,t,r,i=Sl){var n=this,o=i();Zn(function(s){t.recursive=!!t.recursive;var a=Object.assign({},t,{encoding:"utf8"});if(s||delete a.recursive,n._isClosed)return o(),n.close();var l=Cr.watch(e,a);n.add(l,{type:"dir",fpath:e,options:t}),g.func(r)&&(r.length===1&&to(),n.on("change",r)),t.recursive&&!s&&zn(e,function(f){eo(f,t.filter)&&n.watchDirectory(f,t,null,i)},i()),o()})};function Ol(e){var t=new W,r=Qn(),i=e.length;return e.forEach(function(n){n.on("change",r(function(o,s){t.emit("change",o,s)})),n.on("error",function(o){t.emit("error",o)}),n.on("ready",function(){--i||Or(t)})}),t.close=function(){e.forEach(function(n){n.close()}),process.nextTick(ro,t)},t.getWatchedPaths=function(n){if(g.func(n)){var o=e.map(function(s){return new Promise(function(a){s.getWatchedPaths(a)})});Promise.all(o).then(function(s){var a=Ar(vl(s));n(a)})}},t.expose()}function yt(e,t,r){var i=new W;if(g.buffer(e)&&(e=e.toString()),!g.array(e)&&!g.exists(e)&&i.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?yl(t.encoding):t.encoding="utf8",g.array(e)){if(e.length===1)return yt(e[0],t,r);var n=Qn();return Ol(Ar(e).map(function(s){var a=yt(s,t);return g.func(r)&&a.on("change",n(r)),a}))}if(g.file(e))i.watchFile(e,t,r),Or(i);else if(g.directory(e)){var o=Tl(function(){Or(i)});i.watchDirectory(e,t,r,o)}return i.expose()}Br.exports=yt;Br.exports.default=yt});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,i)=>`\x1B[${38+e};2;${t};${r};${i}m`,v={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Pr=Object.keys(v.modifier),Et=Object.keys(v.color),Rt=Object.keys(v.bgColor),Fr=[...Et,...Rt];function _o(){let e=new Map;for(let[t,r]of Object.entries(v)){for(let[i,n]of Object.entries(r))v[i]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[i]=v[i],e.set(n[0],n[1]);Object.defineProperty(v,t,{value:r,enumerable:!1})}return Object.defineProperty(v,"codes",{value:e,enumerable:!1}),v.color.close="\x1B[39m",v.bgColor.close="\x1B[49m",v.color.ansi=Dr(),v.color.ansi256=Ir(),v.color.ansi16m=Lr(),v.bgColor.ansi=Dr(10),v.bgColor.ansi256=Ir(10),v.bgColor.ansi16m=Lr(10),Object.defineProperties(v,{rgbToAnsi256:{value(t,r,i){return t===r&&r===i?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(i/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[i]=r;i.length===3&&(i=[...i].map(o=>o+o).join(""));let n=Number.parseInt(i,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:t=>v.rgbToAnsi256(...v.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,i,n;if(t>=232)r=((t-232)*10+8)/255,i=r,n=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,i=Math.floor(a/6)/5,n=a%6/5}let o=Math.max(r,i,n)*2;if(o===0)return 30;let s=30+(Math.round(n)<<2|Math.round(i)<<1|Math.round(r));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,i)=>v.ansi256ToAnsi(v.rgbToAnsi256(t,r,i)),enumerable:!1},hexToAnsi:{value:t=>v.ansi256ToAnsi(v.hexToAnsi256(t)),enumerable:!1}}),v}var go=_o(),L=go;import Tt from"node:process";import bo from"node:os";import jr from"node:tty";function M(e,t=Tt.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),n=t.indexOf("--");return i!==-1&&(n===-1||i<n)}var{env:T}=Tt,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 mo(){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 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 i=mo();i!==void 0&&(qe=i);let n=r?qe:i;if(n===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&&n===void 0)return 0;let o=n||0;if(T.TERM==="dumb")return o;if(Tt.platform==="win32"){let s=bo.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 kr(e,t={}){let r=yo(e,{streamIsTTY:e&&e.isTTY,...t});return vo(r)}var xo={stdout:kr({isTTY:jr.isatty(1)}),stderr:kr({isTTY:jr.isatty(2)})},qr=xo;function Ur(e,t,r){let i=e.indexOf(t);if(i===-1)return e;let n=t.length,o=0,s="";do s+=e.slice(o,i)+t+r,o=i+n,i=e.indexOf(t,o);while(i!==-1);return s+=e.slice(o),s}function Wr(e,t,r,i){let n=0,o="";do{let s=e[i-1]==="\r";o+=e.slice(n,s?i-1:i)+t+(s?`\r
|
5
5
|
`:`
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");
|
2
|
+
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
|
3
3
|
|
4
4
|
import{spawn as F,execSync as q}from"child_process";import C from"node:process";import W from"node:os";import P from"node:tty";if(typeof process<"u"){let{dirname:r}=await import("path"),{fileURLToPath:e}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=e(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=r(globalThis.__filename)),typeof globalThis.require>"u"){let{default:t}=await import("module");globalThis.require=t.createRequire(import.meta.url)}}var G={win32:r=>({cmd:"cmd.exe",args:["/d","/s","/c",r]})},Y={"cp -rf":{win32:r=>{let e="xcopy /E /S /G /Q /Y",t=r.map(o=>o.endsWith("\\")?o:`${o}\\`).map(o=>o.replace(/\*\\$/,""));return`${e} ${t.join(" ")}`}},ln:{win32:r=>`mklink /D ${r.join(" ")}`},pkill:{win32:r=>`taskkill /T /F /pid ${r.join(" ")}`}},E=(r,e,t)=>{let o={...G,...e},l={...Y,...t},i=s=>{let c=process.platform,m=o[c];if(m)return m(s);let[g,...h]=s.split(" ");return{cmd:g,args:h}},n=(s=>{let c=Object.entries(l);for(let[m,g]of c)if(s.startsWith(m)){let h=process.platform,b=g[h];if(!b)break;let p=s.slice(m.length).trim().split(" ");return b(p)}return s})(r);return i(n)};if(typeof process<"u"){let{dirname:r}=await import("path"),{fileURLToPath:e}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=e(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=r(globalThis.__filename)),typeof globalThis.require>"u"){let{default:t}=await import("module");globalThis.require=t.createRequire(import.meta.url)}}if(typeof process<"u"){let{dirname:r}=await import("path"),{fileURLToPath:e}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=e(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=r(globalThis.__filename)),typeof globalThis.require>"u"){let{default:t}=await import("module");globalThis.require=t.createRequire(import.meta.url)}}var M=(r=0)=>e=>`\x1B[${e+r}m`,I=(r=0)=>e=>`\x1B[${38+r};5;${e}m`,j=(r=0)=>(e,t,o)=>`\x1B[${38+r};2;${e};${t};${o}m`;function U(){let r=new Map,e={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]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,o]of Object.entries(e)){for(let[l,i]of Object.entries(o))e[l]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},o[l]=e[l],r.set(i[0],i[1]);Object.defineProperty(e,t,{value:o,enumerable:!1})}return Object.defineProperty(e,"codes",{value:r,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=M(),e.color.ansi256=I(),e.color.ansi16m=j(),e.bgColor.ansi=M(10),e.bgColor.ansi256=I(10),e.bgColor.ansi16m=j(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,o,l)=>t===o&&o===l?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(l/255*5),enumerable:!1},hexToRgb:{value:t=>{let o=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!o)return[0,0,0];let{colorString:l}=o.groups;l.length===3&&(l=[...l].map(n=>n+n).join(""));let i=Number.parseInt(l,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let o,l,i;if(t>=232)o=((t-232)*10+8)/255,l=o,i=o;else{t-=16;let c=t%36;o=Math.floor(t/36)/5,l=Math.floor(c/6)/5,i=c%6/5}let n=Math.max(o,l,i)*2;if(n===0)return 30;let s=30+(Math.round(i)<<2|Math.round(l)<<1|Math.round(o));return n===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,o,l)=>e.ansi256ToAnsi(e.rgbToAnsi256(t,o,l)),enumerable:!1},hexToAnsi:{value:t=>e.ansi256ToAnsi(e.hexToAnsi256(t)),enumerable:!1}}),e}var V=U(),f=V;function u(r,e=C.argv){let t=r.startsWith("-")?"":r.length===1?"-":"--",o=e.indexOf(t+r),l=e.indexOf("--");return o!==-1&&(l===-1||o<l)}var{env:a}=C,R;u("no-color")||u("no-colors")||u("color=false")||u("color=never")?R=0:(u("color")||u("colors")||u("color=true")||u("color=always"))&&(R=1);function D(){if("FORCE_COLOR"in a)return a.FORCE_COLOR==="true"?1:a.FORCE_COLOR==="false"?0:a.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(a.FORCE_COLOR,10),3)}function K(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function H(r,{streamIsTTY:e,sniffFlags:t=!0}={}){let o=D();o!==void 0&&(R=o);let l=t?R:o;if(l===0)return 0;if(t){if(u("color=16m")||u("color=full")||u("color=truecolor"))return 3;if(u("color=256"))return 2}if(r&&!e&&l===void 0)return 0;let i=l||0;if(a.TERM==="dumb")return i;if(C.platform==="win32"){let n=W.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(n=>n in a)||a.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in a&&"AGENT_NAME"in a)return 1;if(a.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in a){let n=Number.parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:i}function S(r,e={}){let t=H(r,{streamIsTTY:r&&r.isTTY,...e});return K(t)}var J={stdout:S({isTTY:P.isatty(1)}),stderr:S({isTTY:P.isatty(2)})},Q=J;function z(r,e,t){let o=r.indexOf(e);if(o===-1)return r;let l=e.length,i=0,n="";do n+=r.substr(i,o-i)+e+t,i=o+l,o=r.indexOf(e,i);while(o!==-1);return n+=r.slice(i),n}function X(r,e,t,o){let l=0,i="";do{let n=r[o-1]==="\r";i+=r.substr(l,(n?o-1:o)-l)+e+(n?`\r
|
5
5
|
`:`
|
package/dist/commands/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
|
2
|
-
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");
|
2
|
+
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
|
3
3
|
|
4
4
|
export*from"./build/index.js";export*from"./create/index.js";export*from"./dev/index.js";export*from"./execute/index.js";export*from"./normalize/index.js";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");
|
2
|
+
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
|
3
3
|
|
4
4
|
var xo=Object.create;var Sn=Object.defineProperty;var Co=Object.getOwnPropertyDescriptor;var Oo=Object.getOwnPropertyNames;var To=Object.getPrototypeOf,Po=Object.prototype.hasOwnProperty;var q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var wo=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Oo(e))!Po.call(t,s)&&s!==r&&Sn(t,s,{get:()=>e[s],enumerable:!(n=Co(e,s))||n.enumerable});return t};var Lo=(t,e,r)=>(r=t!=null?xo(To(t)):{},wo(e||!t||!t.__esModule?Sn(r,"default",{value:t,enumerable:!0}):r,t));var En=y(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.splitWhen=Pe.flatten=void 0;function ko(t){return t.reduce((e,r)=>[].concat(e,r),[])}Pe.flatten=ko;function Mo(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}Pe.splitWhen=Mo});var An=y(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.isEnoentCodeError=void 0;function No(t){return t.code==="ENOENT"}Ze.isEnoentCodeError=No});var bn=y(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.createDirentFromStats=void 0;var Pt=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Ho(t,e){return new Pt(t,e)}ze.createDirentFromStats=Ho});var Rn=y(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.removeLeadingDotSegment=ae.escape=ae.makeAbsolute=ae.unixify=void 0;var Do=q("path"),Io=2,$o=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Fo(t){return t.replace(/\\/g,"/")}ae.unixify=Fo;function Bo(t,e){return Do.resolve(t,e)}ae.makeAbsolute=Bo;function qo(t){return t.replace($o,"\\$2")}ae.escape=qo;function jo(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Io)}return t}ae.removeLeadingDotSegment=jo});var xn=y((of,vn)=>{vn.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Tn=y((af,On)=>{var Go=xn(),Cn={"{":"}","(":")","[":"]"},Uo=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,s=-2,i=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||s!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(s=t.indexOf("}",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||i!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(i=t.indexOf(")",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(i=t.indexOf(")",r),i>r&&(o=t.indexOf("\\",r),o===-1||o>i))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=Cn[a];if(u){var d=t.indexOf(u,e);d!==-1&&(e=d+1)}if(t[e]==="!")return!0}else e++}return!1},Vo=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=Cn[r];if(n){var s=t.indexOf(n,e);s!==-1&&(e=s+1)}if(t[e]==="!")return!0}else e++}return!1};On.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Go(e))return!0;var n=Uo;return r&&r.strict===!1&&(n=Vo),n(e)}});var wn=y((uf,Pn)=>{"use strict";var Wo=Tn(),Ko=q("path").posix.dirname,Yo=q("os").platform()==="win32",wt="/",Qo=/\\/g,Xo=/[\{\[].*[\}\]]$/,Zo=/(^|[^\\])([\{\[]|\([^\)]+$)/,zo=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Pn.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Yo&&e.indexOf(wt)<0&&(e=e.replace(Qo,wt)),Xo.test(e)&&(e+=wt),e+="a";do e=Ko(e);while(Wo(e)||Zo.test(e));return e.replace(zo,"$1")}});var Je=y(te=>{"use strict";te.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;te.find=(t,e)=>t.nodes.find(r=>r.type===e);te.exceedsLimit=(t,e,r=1,n)=>n===!1||!te.isInteger(t)||!te.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;te.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};te.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;te.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;te.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;te.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);te.flatten=(...t)=>{let e=[],r=n=>{for(let s=0;s<n.length;s++){let i=n[s];Array.isArray(i)?r(i,e):i!==void 0&&e.push(i)}return e};return r(t),e}});var et=y((lf,kn)=>{"use strict";var Ln=Je();kn.exports=(t,e={})=>{let r=(n,s={})=>{let i=e.escapeInvalid&&Ln.isInvalidBrace(s),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(i||o)&&Ln.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(t)}});var Nn=y((ff,Mn)=>{"use strict";Mn.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Gn=y((pf,jn)=>{"use strict";var Hn=Nn(),Re=(t,e,r)=>{if(Hn(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Hn(e)===!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 s=String(n.relaxZeros),i=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=t+":"+e+"="+s+i+o+a;if(Re.cache.hasOwnProperty(u))return Re.cache[u].result;let d=Math.min(t,e),f=Math.max(t,e);if(Math.abs(d-f)===1){let E=t+"|"+e;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let g=qn(t)||qn(e),p={min:t,max:e,a:d,b:f},P=[],m=[];if(g&&(p.isPadded=g,p.maxLen=String(p.max).length),d<0){let E=f<0?Math.abs(f):1;m=Dn(E,Math.abs(d),p,n),d=p.a=0}return f>=0&&(P=Dn(d,f,p,n)),p.negatives=m,p.positives=P,p.result=Jo(m,P,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&P.length+m.length>1&&(p.result=`(?:${p.result})`),Re.cache[u]=p,p.result};function Jo(t,e,r){let n=Lt(t,e,"-",!1,r)||[],s=Lt(e,t,"",!1,r)||[],i=Lt(t,e,"-?",!0,r)||[];return n.concat(i).concat(s).join("|")}function ea(t,e){let r=1,n=1,s=$n(t,r),i=new Set([e]);for(;t<=s&&s<=e;)i.add(s),r+=1,s=$n(t,r);for(s=Fn(e+1,n)-1;t<s&&s<=e;)i.add(s),n+=1,s=Fn(e+1,n)-1;return i=[...i],i.sort(na),i}function ta(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=ra(t,e),s=n.length,i="",o=0;for(let a=0;a<s;a++){let[u,d]=n[a];u===d?i+=u:u!=="0"||d!=="9"?i+=sa(u,d,r):o++}return o&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[o],digits:s}}function Dn(t,e,r,n){let s=ea(t,e),i=[],o=t,a;for(let u=0;u<s.length;u++){let d=s[u],f=ta(String(o),String(d),n),g="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+Bn(a.count),o=d+1;continue}r.isPadded&&(g=ia(d,r,n)),f.string=g+f.pattern+Bn(f.count),i.push(f),o=d+1,a=f}return i}function Lt(t,e,r,n,s){let i=[];for(let o of t){let{string:a}=o;!n&&!In(e,"string",a)&&i.push(r+a),n&&In(e,"string",a)&&i.push(r+a)}return i}function ra(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function na(t,e){return t>e?1:e>t?-1:0}function In(t,e,r){return t.some(n=>n[e]===r)}function $n(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Fn(t,e){return t-t%Math.pow(10,e)}function Bn(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function sa(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function qn(t){return/^-?(0+)\d/.test(t)}function ia(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}Re.cache={};Re.clearCache=()=>Re.cache={};jn.exports=Re});var Nt=y((hf,Zn)=>{"use strict";var oa=q("util"),Wn=Gn(),Un=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),aa=t=>e=>t===!0?Number(e):String(e),kt=t=>typeof t=="number"||typeof t=="string"&&t!=="",qe=t=>Number.isInteger(+t),Mt=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},ua=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,ca=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},Vn=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},la=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",s="",i;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(s=`-(${r}${t.negatives.join("|")})`),n&&s?i=`${n}|${s}`:i=n||s,e.wrap?`(${r}${i})`:i},Kn=(t,e,r,n)=>{if(r)return Wn(t,e,{wrap:!1,...n});let s=String.fromCharCode(t);if(t===e)return s;let i=String.fromCharCode(e);return`[${s}-${i}]`},Yn=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${t.join("|")})`:t.join("|")}return Wn(t,e,r)},Qn=(...t)=>new RangeError("Invalid range arguments: "+oa.inspect(...t)),Xn=(t,e,r)=>{if(r.strictRanges===!0)throw Qn([t,e]);return[]},fa=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},pa=(t,e,r=1,n={})=>{let s=Number(t),i=Number(e);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw Qn([t,e]);return[]}s===0&&(s=0),i===0&&(i=0);let o=s>i,a=String(t),u=String(e),d=String(r);r=Math.max(Math.abs(r),1);let f=Mt(a)||Mt(u)||Mt(d),g=f?Math.max(a.length,u.length,d.length):0,p=f===!1&&ua(t,e,n)===!1,P=n.transform||aa(p);if(n.toRegex&&r===1)return Kn(Vn(t,g),Vn(e,g),!0,n);let m={negatives:[],positives:[]},E=k=>m[k<0?"negatives":"positives"].push(Math.abs(k)),R=[],v=0;for(;o?s>=i:s<=i;)n.toRegex===!0&&r>1?E(s):R.push(ca(P(s,v),g,p)),s=o?s-r:s+r,v++;return n.toRegex===!0?r>1?la(m,n):Yn(R,null,{wrap:!1,...n}):R},ha=(t,e,r=1,n={})=>{if(!qe(t)&&t.length>1||!qe(e)&&e.length>1)return Xn(t,e,n);let s=n.transform||(p=>String.fromCharCode(p)),i=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=i>o,u=Math.min(i,o),d=Math.max(i,o);if(n.toRegex&&r===1)return Kn(u,d,!1,n);let f=[],g=0;for(;a?i>=o:i<=o;)f.push(s(i,g)),i=a?i-r:i+r,g++;return n.toRegex===!0?Yn(f,null,{wrap:!1,options:n}):f},tt=(t,e,r,n={})=>{if(e==null&&kt(t))return[t];if(!kt(t)||!kt(e))return Xn(t,e,n);if(typeof r=="function")return tt(t,e,1,{transform:r});if(Un(r))return tt(t,e,0,r);let s={...n};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,qe(r)?qe(t)&&qe(e)?pa(t,e,r,s):ha(t,e,Math.max(Math.abs(r),1),s):r!=null&&!Un(r)?fa(r,s):tt(t,e,1,r)};Zn.exports=tt});var es=y((df,Jn)=>{"use strict";var da=Nt(),zn=Je(),_a=(t,e={})=>{let r=(n,s={})=>{let i=zn.isInvalidBrace(s),o=n.invalid===!0&&e.escapeInvalid===!0,a=i===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",d="";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 f=zn.reduce(n.nodes),g=da(...f,{...e,wrap:!1,toRegex:!0});if(g.length!==0)return f.length>1&&g.length>1?`(${g})`:g}if(n.nodes)for(let f of n.nodes)d+=r(f,n);return d};return r(t)};Jn.exports=_a});var ns=y((_f,rs)=>{"use strict";var ga=Nt(),ts=et(),we=Je(),ve=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?we.flatten(e).map(s=>`{${s}}`):e;for(let s of t)if(Array.isArray(s))for(let i of s)n.push(ve(i,e,r));else for(let i of e)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?ve(s,i,r):s+i);return we.flatten(n)},ya=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(s,i={})=>{s.queue=[];let o=i,a=i.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(s.invalid||s.dollar){a.push(ve(a.pop(),ts(s,e)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){a.push(ve(a.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let g=we.reduce(s.nodes);if(we.exceedsLimit(...g,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=ga(...g,e);p.length===0&&(p=ts(s,e)),a.push(ve(a.pop(),p)),s.nodes=[];return}let u=we.encloseBrace(s),d=s.queue,f=s;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,d=f.queue;for(let g=0;g<s.nodes.length;g++){let p=s.nodes[g];if(p.type==="comma"&&s.type==="brace"){g===1&&d.push(""),d.push("");continue}if(p.type==="close"){a.push(ve(a.pop(),d,u));continue}if(p.value&&p.type!=="open"){d.push(ve(d.pop(),p.value));continue}p.nodes&&n(p,s)}return d};return we.flatten(n(t))};rs.exports=ya});var is=y((gf,ss)=>{"use strict";ss.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
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 ls=y((yf,cs)=>{"use strict";var ma=et(),{MAX_LENGTH:os,CHAR_BACKSLASH:Ht,CHAR_BACKTICK:Sa,CHAR_COMMA:Ea,CHAR_DOT:Aa,CHAR_LEFT_PARENTHESES:ba,CHAR_RIGHT_PARENTHESES:Ra,CHAR_LEFT_CURLY_BRACE:va,CHAR_RIGHT_CURLY_BRACE:xa,CHAR_LEFT_SQUARE_BRACKET:as,CHAR_RIGHT_SQUARE_BRACKET:us,CHAR_DOUBLE_QUOTE:Ca,CHAR_SINGLE_QUOTE:Oa,CHAR_NO_BREAK_SPACE:Ta,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Pa}=is(),wa=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(os,r.maxLength):os;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let s={type:"root",input:t,nodes:[]},i=[s],o=s,a=s,u=0,d=t.length,f=0,g=0,p,P={},m=()=>t[f++],E=R=>{if(R.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&R.type==="text"){a.value+=R.value;return}return o.nodes.push(R),R.parent=o,R.prev=a,a=R,R};for(E({type:"bos"});f<d;)if(o=i[i.length-1],p=m(),!(p===Pa||p===Ta)){if(p===Ht){E({type:"text",value:(e.keepEscaping?p:"")+m()});continue}if(p===us){E({type:"text",value:"\\"+p});continue}if(p===as){u++;let R=!0,v;for(;f<d&&(v=m());){if(p+=v,v===as){u++;continue}if(v===Ht){p+=m();continue}if(v===us&&(u--,u===0))break}E({type:"text",value:p});continue}if(p===ba){o=E({type:"paren",nodes:[]}),i.push(o),E({type:"text",value:p});continue}if(p===Ra){if(o.type!=="paren"){E({type:"text",value:p});continue}o=i.pop(),E({type:"text",value:p}),o=i[i.length-1];continue}if(p===Ca||p===Oa||p===Sa){let R=p,v;for(e.keepQuotes!==!0&&(p="");f<d&&(v=m());){if(v===Ht){p+=v+m();continue}if(v===R){e.keepQuotes===!0&&(p+=v);break}p+=v}E({type:"text",value:p});continue}if(p===va){g++;let v={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:g,commas:0,ranges:0,nodes:[]};o=E(v),i.push(o),E({type:"open",value:p});continue}if(p===xa){if(o.type!=="brace"){E({type:"text",value:p});continue}let R="close";o=i.pop(),o.close=!0,E({type:R,value:p}),g--,o=i[i.length-1];continue}if(p===Ea&&g>0){if(o.ranges>0){o.ranges=0;let R=o.nodes.shift();o.nodes=[R,{type:"text",value:ma(o)}]}E({type:"comma",value:p}),o.commas++;continue}if(p===Aa&&g>0&&o.commas===0){let R=o.nodes;if(g===0||R.length===0){E({type:"text",value:p});continue}if(a.type==="dot"){if(o.range=[],a.value+=p,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"){R.pop();let v=R[R.length-1];v.value+=a.value+p,a=v,o.ranges--;continue}E({type:"dot",value:p});continue}E({type:"text",value:p})}do if(o=i.pop(),o.type!=="root"){o.nodes.forEach(k=>{k.nodes||(k.type==="open"&&(k.isOpen=!0),k.type==="close"&&(k.isClose=!0),k.nodes||(k.type="text"),k.invalid=!0)});let R=i[i.length-1],v=R.nodes.indexOf(o);R.nodes.splice(v,1,...o.nodes)}while(i.length>0);return E({type:"eos"}),s};cs.exports=wa});var hs=y((mf,ps)=>{"use strict";var fs=et(),La=es(),ka=ns(),Ma=ls(),z=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let s=z.create(n,e);Array.isArray(s)?r.push(...s):r.push(s)}else r=[].concat(z.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};z.parse=(t,e={})=>Ma(t,e);z.stringify=(t,e={})=>fs(typeof t=="string"?z.parse(t,e):t,e);z.compile=(t,e={})=>(typeof t=="string"&&(t=z.parse(t,e)),La(t,e));z.expand=(t,e={})=>{typeof t=="string"&&(t=z.parse(t,e));let r=ka(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};z.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?z.compile(t,e):z.expand(t,e);ps.exports=z});var je=y((Sf,ms)=>{"use strict";var Na=q("path"),ue="\\\\/",ds=`[^${ue}]`,pe="\\.",Ha="\\+",Da="\\?",rt="\\/",Ia="(?=.)",_s="[^/]",Dt=`(?:${rt}|$)`,gs=`(?:^|${rt})`,It=`${pe}{1,2}${Dt}`,$a=`(?!${pe})`,Fa=`(?!${gs}${It})`,Ba=`(?!${pe}{0,1}${Dt})`,qa=`(?!${It})`,ja=`[^.${rt}]`,Ga=`${_s}*?`,ys={DOT_LITERAL:pe,PLUS_LITERAL:Ha,QMARK_LITERAL:Da,SLASH_LITERAL:rt,ONE_CHAR:Ia,QMARK:_s,END_ANCHOR:Dt,DOTS_SLASH:It,NO_DOT:$a,NO_DOTS:Fa,NO_DOT_SLASH:Ba,NO_DOTS_SLASH:qa,QMARK_NO_DOT:ja,STAR:Ga,START_ANCHOR:gs},Ua={...ys,SLASH_LITERAL:`[${ue}]`,QMARK:ds,STAR:`${ds}*?`,DOTS_SLASH:`${pe}{1,2}(?:[${ue}]|$)`,NO_DOT:`(?!${pe})`,NO_DOTS:`(?!(?:^|[${ue}])${pe}{1,2}(?:[${ue}]|$))`,NO_DOT_SLASH:`(?!${pe}{0,1}(?:[${ue}]|$))`,NO_DOTS_SLASH:`(?!${pe}{1,2}(?:[${ue}]|$))`,QMARK_NO_DOT:`[^.${ue}]`,START_ANCHOR:`(?:^|[${ue}])`,END_ANCHOR:`(?:[${ue}]|$)`},Va={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"};ms.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Va,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:Na.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?Ua:ys}}});var Ge=y(X=>{"use strict";var Wa=q("path"),Ka=process.platform==="win32",{REGEX_BACKSLASH:Ya,REGEX_REMOVE_BACKSLASH:Qa,REGEX_SPECIAL_CHARS:Xa,REGEX_SPECIAL_CHARS_GLOBAL:Za}=je();X.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);X.hasRegexChars=t=>Xa.test(t);X.isRegexChar=t=>t.length===1&&X.hasRegexChars(t);X.escapeRegex=t=>t.replace(Za,"\\$1");X.toPosixSlashes=t=>t.replace(Ya,"/");X.removeBackslashes=t=>t.replace(Qa,e=>e==="\\"?"":e);X.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};X.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Ka===!0||Wa.sep==="\\";X.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?X.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};X.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};X.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",i=`${n}(?:${t})${s}`;return e.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var Cs=y((Af,xs)=>{"use strict";var Ss=Ge(),{CHAR_ASTERISK:$t,CHAR_AT:za,CHAR_BACKWARD_SLASH:Ue,CHAR_COMMA:Ja,CHAR_DOT:Ft,CHAR_EXCLAMATION_MARK:Bt,CHAR_FORWARD_SLASH:vs,CHAR_LEFT_CURLY_BRACE:qt,CHAR_LEFT_PARENTHESES:jt,CHAR_LEFT_SQUARE_BRACKET:eu,CHAR_PLUS:tu,CHAR_QUESTION_MARK:Es,CHAR_RIGHT_CURLY_BRACE:ru,CHAR_RIGHT_PARENTHESES:As,CHAR_RIGHT_SQUARE_BRACKET:nu}=je(),bs=t=>t===vs||t===Ue,Rs=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},su=(t,e)=>{let r=e||{},n=t.length-1,s=r.parts===!0||r.scanToEnd===!0,i=[],o=[],a=[],u=t,d=-1,f=0,g=0,p=!1,P=!1,m=!1,E=!1,R=!1,v=!1,k=!1,H=!1,ee=!1,O=!1,D=0,x,A,L={value:"",depth:0,isGlob:!1},V=()=>d>=n,h=()=>u.charCodeAt(d+1),I=()=>(x=A,u.charCodeAt(++d));for(;d<n;){A=I();let Y;if(A===Ue){k=L.backslashes=!0,A=I(),A===qt&&(v=!0);continue}if(v===!0||A===qt){for(D++;V()!==!0&&(A=I());){if(A===Ue){k=L.backslashes=!0,I();continue}if(A===qt){D++;continue}if(v!==!0&&A===Ft&&(A=I())===Ft){if(p=L.isBrace=!0,m=L.isGlob=!0,O=!0,s===!0)continue;break}if(v!==!0&&A===Ja){if(p=L.isBrace=!0,m=L.isGlob=!0,O=!0,s===!0)continue;break}if(A===ru&&(D--,D===0)){v=!1,p=L.isBrace=!0,O=!0;break}}if(s===!0)continue;break}if(A===vs){if(i.push(d),o.push(L),L={value:"",depth:0,isGlob:!1},O===!0)continue;if(x===Ft&&d===f+1){f+=2;continue}g=d+1;continue}if(r.noext!==!0&&(A===tu||A===za||A===$t||A===Es||A===Bt)===!0&&h()===jt){if(m=L.isGlob=!0,E=L.isExtglob=!0,O=!0,A===Bt&&d===f&&(ee=!0),s===!0){for(;V()!==!0&&(A=I());){if(A===Ue){k=L.backslashes=!0,A=I();continue}if(A===As){m=L.isGlob=!0,O=!0;break}}continue}break}if(A===$t){if(x===$t&&(R=L.isGlobstar=!0),m=L.isGlob=!0,O=!0,s===!0)continue;break}if(A===Es){if(m=L.isGlob=!0,O=!0,s===!0)continue;break}if(A===eu){for(;V()!==!0&&(Y=I());){if(Y===Ue){k=L.backslashes=!0,I();continue}if(Y===nu){P=L.isBracket=!0,m=L.isGlob=!0,O=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&A===Bt&&d===f){H=L.negated=!0,f++;continue}if(r.noparen!==!0&&A===jt){if(m=L.isGlob=!0,s===!0){for(;V()!==!0&&(A=I());){if(A===jt){k=L.backslashes=!0,A=I();continue}if(A===As){O=!0;break}}continue}break}if(m===!0){if(O=!0,s===!0)continue;break}}r.noext===!0&&(E=!1,m=!1);let M=u,_e="",c="";f>0&&(_e=u.slice(0,f),u=u.slice(f),g-=f),M&&m===!0&&g>0?(M=u.slice(0,g),c=u.slice(g)):m===!0?(M="",c=u):M=u,M&&M!==""&&M!=="/"&&M!==u&&bs(M.charCodeAt(M.length-1))&&(M=M.slice(0,-1)),r.unescape===!0&&(c&&(c=Ss.removeBackslashes(c)),M&&k===!0&&(M=Ss.removeBackslashes(M)));let l={prefix:_e,input:t,start:f,base:M,glob:c,isBrace:p,isBracket:P,isGlob:m,isExtglob:E,isGlobstar:R,negated:H,negatedExtglob:ee};if(r.tokens===!0&&(l.maxDepth=0,bs(A)||o.push(L),l.tokens=o),r.parts===!0||r.tokens===!0){let Y;for(let w=0;w<i.length;w++){let ie=Y?Y+1:f,oe=i[w],Z=t.slice(ie,oe);r.tokens&&(w===0&&f!==0?(o[w].isPrefix=!0,o[w].value=_e):o[w].value=Z,Rs(o[w]),l.maxDepth+=o[w].depth),(w!==0||Z!=="")&&a.push(Z),Y=oe}if(Y&&Y+1<t.length){let w=t.slice(Y+1);a.push(w),r.tokens&&(o[o.length-1].value=w,Rs(o[o.length-1]),l.maxDepth+=o[o.length-1].depth)}l.slashes=i,l.parts=a}return l};xs.exports=su});var Ps=y((bf,Ts)=>{"use strict";var nt=je(),J=Ge(),{MAX_LENGTH:st,POSIX_REGEX_SOURCE:iu,REGEX_NON_SPECIAL_CHARS:ou,REGEX_SPECIAL_CHARS_BACKREF:au,REPLACEMENTS:Os}=nt,uu=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(s=>J.escapeRegex(s)).join("..")}return r},Le=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Gt=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Os[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(st,r.maxLength):st,s=t.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},o=[i],a=r.capture?"":"?:",u=J.isWindows(e),d=nt.globChars(u),f=nt.extglobChars(d),{DOT_LITERAL:g,PLUS_LITERAL:p,SLASH_LITERAL:P,ONE_CHAR:m,DOTS_SLASH:E,NO_DOT:R,NO_DOT_SLASH:v,NO_DOTS_SLASH:k,QMARK:H,QMARK_NO_DOT:ee,STAR:O,START_ANCHOR:D}=d,x=S=>`(${a}(?:(?!${D}${S.dot?E:g}).)*?)`,A=r.dot?"":R,L=r.dot?H:ee,V=r.bash===!0?x(r):O;r.capture&&(V=`(${V})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let h={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=J.removePrefix(t,h),s=t.length;let I=[],M=[],_e=[],c=i,l,Y=()=>h.index===s-1,w=h.peek=(S=1)=>t[h.index+S],ie=h.advance=()=>t[++h.index]||"",oe=()=>t.slice(h.index+1),Z=(S="",N=0)=>{h.consumed+=S,h.index+=N},Ke=S=>{h.output+=S.output!=null?S.output:S.value,Z(S.value)},Ro=()=>{let S=1;for(;w()==="!"&&(w(2)!=="("||w(3)==="?");)ie(),h.start++,S++;return S%2===0?!1:(h.negated=!0,h.start++,!0)},Ye=S=>{h[S]++,_e.push(S)},be=S=>{h[S]--,_e.pop()},T=S=>{if(c.type==="globstar"){let N=h.braces>0&&(S.type==="comma"||S.type==="brace"),_=S.extglob===!0||I.length&&(S.type==="pipe"||S.type==="paren");S.type!=="slash"&&S.type!=="paren"&&!N&&!_&&(h.output=h.output.slice(0,-c.output.length),c.type="star",c.value="*",c.output=V,h.output+=c.output)}if(I.length&&S.type!=="paren"&&(I[I.length-1].inner+=S.value),(S.value||S.output)&&Ke(S),c&&c.type==="text"&&S.type==="text"){c.value+=S.value,c.output=(c.output||"")+S.value;return}S.prev=c,o.push(S),c=S},Qe=(S,N)=>{let _={...f[N],conditions:1,inner:""};_.prev=c,_.parens=h.parens,_.output=h.output;let C=(r.capture?"(":"")+_.open;Ye("parens"),T({type:S,value:N,output:h.output?"":m}),T({type:"paren",extglob:!0,value:ie(),output:C}),I.push(_)},vo=S=>{let N=S.close+(r.capture?")":""),_;if(S.type==="negate"){let C=V;if(S.inner&&S.inner.length>1&&S.inner.includes("/")&&(C=x(r)),(C!==V||Y()||/^\)+$/.test(oe()))&&(N=S.close=`)$))${C}`),S.inner.includes("*")&&(_=oe())&&/^\.[^\\/.]+$/.test(_)){let B=Gt(_,{...e,fastpaths:!1}).output;N=S.close=`)${B})${C})`}S.prev.type==="bos"&&(h.negatedExtglob=!0)}T({type:"paren",extglob:!0,value:l,output:N}),be("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let S=!1,N=t.replace(au,(_,C,B,Q,U,Tt)=>Q==="\\"?(S=!0,_):Q==="?"?C?C+Q+(U?H.repeat(U.length):""):Tt===0?L+(U?H.repeat(U.length):""):H.repeat(B.length):Q==="."?g.repeat(B.length):Q==="*"?C?C+Q+(U?V:""):V:C?_:`\\${_}`);return S===!0&&(r.unescape===!0?N=N.replace(/\\/g,""):N=N.replace(/\\+/g,_=>_.length%2===0?"\\\\":_?"\\":"")),N===t&&r.contains===!0?(h.output=t,h):(h.output=J.wrapOutput(N,h,e),h)}for(;!Y();){if(l=ie(),l==="\0")continue;if(l==="\\"){let _=w();if(_==="/"&&r.bash!==!0||_==="."||_===";")continue;if(!_){l+="\\",T({type:"text",value:l});continue}let C=/^\\+/.exec(oe()),B=0;if(C&&C[0].length>2&&(B=C[0].length,h.index+=B,B%2!==0&&(l+="\\")),r.unescape===!0?l=ie():l+=ie(),h.brackets===0){T({type:"text",value:l});continue}}if(h.brackets>0&&(l!=="]"||c.value==="["||c.value==="[^")){if(r.posix!==!1&&l===":"){let _=c.value.slice(1);if(_.includes("[")&&(c.posix=!0,_.includes(":"))){let C=c.value.lastIndexOf("["),B=c.value.slice(0,C),Q=c.value.slice(C+2),U=iu[Q];if(U){c.value=B+U,h.backtrack=!0,ie(),!i.output&&o.indexOf(c)===1&&(i.output=m);continue}}}(l==="["&&w()!==":"||l==="-"&&w()==="]")&&(l=`\\${l}`),l==="]"&&(c.value==="["||c.value==="[^")&&(l=`\\${l}`),r.posix===!0&&l==="!"&&c.value==="["&&(l="^"),c.value+=l,Ke({value:l});continue}if(h.quotes===1&&l!=='"'){l=J.escapeRegex(l),c.value+=l,Ke({value:l});continue}if(l==='"'){h.quotes=h.quotes===1?0:1,r.keepQuotes===!0&&T({type:"text",value:l});continue}if(l==="("){Ye("parens"),T({type:"paren",value:l});continue}if(l===")"){if(h.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Le("opening","("));let _=I[I.length-1];if(_&&h.parens===_.parens+1){vo(I.pop());continue}T({type:"paren",value:l,output:h.parens?")":"\\)"}),be("parens");continue}if(l==="["){if(r.nobracket===!0||!oe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Le("closing","]"));l=`\\${l}`}else Ye("brackets");T({type:"bracket",value:l});continue}if(l==="]"){if(r.nobracket===!0||c&&c.type==="bracket"&&c.value.length===1){T({type:"text",value:l,output:`\\${l}`});continue}if(h.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Le("opening","["));T({type:"text",value:l,output:`\\${l}`});continue}be("brackets");let _=c.value.slice(1);if(c.posix!==!0&&_[0]==="^"&&!_.includes("/")&&(l=`/${l}`),c.value+=l,Ke({value:l}),r.literalBrackets===!1||J.hasRegexChars(_))continue;let C=J.escapeRegex(c.value);if(h.output=h.output.slice(0,-c.value.length),r.literalBrackets===!0){h.output+=C,c.value=C;continue}c.value=`(${a}${C}|${c.value})`,h.output+=c.value;continue}if(l==="{"&&r.nobrace!==!0){Ye("braces");let _={type:"brace",value:l,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};M.push(_),T(_);continue}if(l==="}"){let _=M[M.length-1];if(r.nobrace===!0||!_){T({type:"text",value:l,output:l});continue}let C=")";if(_.dots===!0){let B=o.slice(),Q=[];for(let U=B.length-1;U>=0&&(o.pop(),B[U].type!=="brace");U--)B[U].type!=="dots"&&Q.unshift(B[U].value);C=uu(Q,r),h.backtrack=!0}if(_.comma!==!0&&_.dots!==!0){let B=h.output.slice(0,_.outputIndex),Q=h.tokens.slice(_.tokensIndex);_.value=_.output="\\{",l=C="\\}",h.output=B;for(let U of Q)h.output+=U.output||U.value}T({type:"brace",value:l,output:C}),be("braces"),M.pop();continue}if(l==="|"){I.length>0&&I[I.length-1].conditions++,T({type:"text",value:l});continue}if(l===","){let _=l,C=M[M.length-1];C&&_e[_e.length-1]==="braces"&&(C.comma=!0,_="|"),T({type:"comma",value:l,output:_});continue}if(l==="/"){if(c.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",o.pop(),c=i;continue}T({type:"slash",value:l,output:P});continue}if(l==="."){if(h.braces>0&&c.type==="dot"){c.value==="."&&(c.output=g);let _=M[M.length-1];c.type="dots",c.output+=l,c.value+=l,_.dots=!0;continue}if(h.braces+h.parens===0&&c.type!=="bos"&&c.type!=="slash"){T({type:"text",value:l,output:g});continue}T({type:"dot",value:l,output:g});continue}if(l==="?"){if(!(c&&c.value==="(")&&r.noextglob!==!0&&w()==="("&&w(2)!=="?"){Qe("qmark",l);continue}if(c&&c.type==="paren"){let C=w(),B=l;if(C==="<"&&!J.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(c.value==="("&&!/[!=<:]/.test(C)||C==="<"&&!/<([!=]|\w+>)/.test(oe()))&&(B=`\\${l}`),T({type:"text",value:l,output:B});continue}if(r.dot!==!0&&(c.type==="slash"||c.type==="bos")){T({type:"qmark",value:l,output:ee});continue}T({type:"qmark",value:l,output:H});continue}if(l==="!"){if(r.noextglob!==!0&&w()==="("&&(w(2)!=="?"||!/[!=<:]/.test(w(3)))){Qe("negate",l);continue}if(r.nonegate!==!0&&h.index===0){Ro();continue}}if(l==="+"){if(r.noextglob!==!0&&w()==="("&&w(2)!=="?"){Qe("plus",l);continue}if(c&&c.value==="("||r.regex===!1){T({type:"plus",value:l,output:p});continue}if(c&&(c.type==="bracket"||c.type==="paren"||c.type==="brace")||h.parens>0){T({type:"plus",value:l});continue}T({type:"plus",value:p});continue}if(l==="@"){if(r.noextglob!==!0&&w()==="("&&w(2)!=="?"){T({type:"at",extglob:!0,value:l,output:""});continue}T({type:"text",value:l});continue}if(l!=="*"){(l==="$"||l==="^")&&(l=`\\${l}`);let _=ou.exec(oe());_&&(l+=_[0],h.index+=_[0].length),T({type:"text",value:l});continue}if(c&&(c.type==="globstar"||c.star===!0)){c.type="star",c.star=!0,c.value+=l,c.output=V,h.backtrack=!0,h.globstar=!0,Z(l);continue}let S=oe();if(r.noextglob!==!0&&/^\([^?]/.test(S)){Qe("star",l);continue}if(c.type==="star"){if(r.noglobstar===!0){Z(l);continue}let _=c.prev,C=_.prev,B=_.type==="slash"||_.type==="bos",Q=C&&(C.type==="star"||C.type==="globstar");if(r.bash===!0&&(!B||S[0]&&S[0]!=="/")){T({type:"star",value:l,output:""});continue}let U=h.braces>0&&(_.type==="comma"||_.type==="brace"),Tt=I.length&&(_.type==="pipe"||_.type==="paren");if(!B&&_.type!=="paren"&&!U&&!Tt){T({type:"star",value:l,output:""});continue}for(;S.slice(0,3)==="/**";){let Xe=t[h.index+4];if(Xe&&Xe!=="/")break;S=S.slice(3),Z("/**",3)}if(_.type==="bos"&&Y()){c.type="globstar",c.value+=l,c.output=x(r),h.output=c.output,h.globstar=!0,Z(l);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&!Q&&Y()){h.output=h.output.slice(0,-(_.output+c.output).length),_.output=`(?:${_.output}`,c.type="globstar",c.output=x(r)+(r.strictSlashes?")":"|$)"),c.value+=l,h.globstar=!0,h.output+=_.output+c.output,Z(l);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&S[0]==="/"){let Xe=S[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(_.output+c.output).length),_.output=`(?:${_.output}`,c.type="globstar",c.output=`${x(r)}${P}|${P}${Xe})`,c.value+=l,h.output+=_.output+c.output,h.globstar=!0,Z(l+ie()),T({type:"slash",value:"/",output:""});continue}if(_.type==="bos"&&S[0]==="/"){c.type="globstar",c.value+=l,c.output=`(?:^|${P}|${x(r)}${P})`,h.output=c.output,h.globstar=!0,Z(l+ie()),T({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-c.output.length),c.type="globstar",c.output=x(r),c.value+=l,h.output+=c.output,h.globstar=!0,Z(l);continue}let N={type:"star",value:l,output:V};if(r.bash===!0){N.output=".*?",(c.type==="bos"||c.type==="slash")&&(N.output=A+N.output),T(N);continue}if(c&&(c.type==="bracket"||c.type==="paren")&&r.regex===!0){N.output=l,T(N);continue}(h.index===h.start||c.type==="slash"||c.type==="dot")&&(c.type==="dot"?(h.output+=v,c.output+=v):r.dot===!0?(h.output+=k,c.output+=k):(h.output+=A,c.output+=A),w()!=="*"&&(h.output+=m,c.output+=m)),T(N)}for(;h.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Le("closing","]"));h.output=J.escapeLast(h.output,"["),be("brackets")}for(;h.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Le("closing",")"));h.output=J.escapeLast(h.output,"("),be("parens")}for(;h.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Le("closing","}"));h.output=J.escapeLast(h.output,"{"),be("braces")}if(r.strictSlashes!==!0&&(c.type==="star"||c.type==="bracket")&&T({type:"maybe_slash",value:"",output:`${P}?`}),h.backtrack===!0){h.output="";for(let S of h.tokens)h.output+=S.output!=null?S.output:S.value,S.suffix&&(h.output+=S.suffix)}return h};Gt.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(st,r.maxLength):st,s=t.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);t=Os[t]||t;let i=J.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:d,NO_DOT:f,NO_DOTS:g,NO_DOTS_SLASH:p,STAR:P,START_ANCHOR:m}=nt.globChars(i),E=r.dot?g:f,R=r.dot?p:f,v=r.capture?"":"?:",k={negated:!1,prefix:""},H=r.bash===!0?".*?":P;r.capture&&(H=`(${H})`);let ee=A=>A.noglobstar===!0?H:`(${v}(?:(?!${m}${A.dot?d:o}).)*?)`,O=A=>{switch(A){case"*":return`${E}${u}${H}`;case".*":return`${o}${u}${H}`;case"*.*":return`${E}${H}${o}${u}${H}`;case"*/*":return`${E}${H}${a}${u}${R}${H}`;case"**":return E+ee(r);case"**/*":return`(?:${E}${ee(r)}${a})?${R}${u}${H}`;case"**/*.*":return`(?:${E}${ee(r)}${a})?${R}${H}${o}${u}${H}`;case"**/.*":return`(?:${E}${ee(r)}${a})?${o}${u}${H}`;default:{let L=/^(.*?)\.(\w+)$/.exec(A);if(!L)return;let V=O(L[1]);return V?V+o+L[2]:void 0}}},D=J.removePrefix(t,k),x=O(D);return x&&r.strictSlashes!==!0&&(x+=`${a}?`),x};Ts.exports=Gt});var Ls=y((Rf,ws)=>{"use strict";var cu=q("path"),lu=Cs(),Ut=Ps(),Vt=Ge(),fu=je(),pu=t=>t&&typeof t=="object"&&!Array.isArray(t),j=(t,e,r=!1)=>{if(Array.isArray(t)){let f=t.map(p=>j(p,e,r));return p=>{for(let P of f){let m=P(p);if(m)return m}return!1}}let n=pu(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let s=e||{},i=Vt.isWindows(e),o=n?j.compileRe(t,e):j.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(s.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};u=j(s.ignore,f,r)}let d=(f,g=!1)=>{let{isMatch:p,match:P,output:m}=j.test(f,o,e,{glob:t,posix:i}),E={glob:t,state:a,regex:o,posix:i,input:f,output:m,match:P,isMatch:p};return typeof s.onResult=="function"&&s.onResult(E),p===!1?(E.isMatch=!1,g?E:!1):u(f)?(typeof s.onIgnore=="function"&&s.onIgnore(E),E.isMatch=!1,g?E:!1):(typeof s.onMatch=="function"&&s.onMatch(E),g?E:!0)};return r&&(d.state=a),d};j.test=(t,e,r,{glob:n,posix:s}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let i=r||{},o=i.format||(s?Vt.toPosixSlashes:null),a=t===n,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=j.matchBase(t,e,r,s):a=e.exec(u)),{isMatch:Boolean(a),match:a,output:u}};j.matchBase=(t,e,r,n=Vt.isWindows(r))=>(e instanceof RegExp?e:j.makeRe(e,r)).test(cu.basename(t));j.isMatch=(t,e,r)=>j(e,r)(t);j.parse=(t,e)=>Array.isArray(t)?t.map(r=>j.parse(r,e)):Ut(t,{...e,fastpaths:!1});j.scan=(t,e)=>lu(t,e);j.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let s=e||{},i=s.contains?"":"^",o=s.contains?"":"$",a=`${i}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=j.toRegex(a,e);return n===!0&&(u.state=t),u};j.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(s.output=Ut.fastpaths(t,e)),s.output||(s=Ut(t,e)),j.compileRe(s,e,r,n)};j.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};j.constants=fu;ws.exports=j});var Ms=y((vf,ks)=>{"use strict";ks.exports=Ls()});var $s=y((xf,Is)=>{"use strict";var Hs=q("util"),Ds=hs(),ce=Ms(),Wt=Ge(),Ns=t=>t===""||t==="./",$=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,s=new Set,i=new Set,o=0,a=f=>{i.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<e.length;f++){let g=ce(String(e[f]),{...r,onResult:a},!0),p=g.state.negated||g.state.negatedExtglob;p&&o++;for(let P of t){let m=g(P,!0);!(p?!m.isMatch:m.isMatch)||(p?n.add(m.output):(n.delete(m.output),s.add(m.output)))}}let d=(o===e.length?[...i]:[...s]).filter(f=>!n.has(f));if(r&&d.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(f=>f.replace(/\\/g,"")):e}return d};$.match=$;$.matcher=(t,e)=>ce(t,e);$.isMatch=(t,e,r)=>ce(e,r)(t);$.any=$.isMatch;$.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,s=[],i=a=>{r.onResult&&r.onResult(a),s.push(a.output)},o=new Set($(t,e,{...r,onResult:i}));for(let a of s)o.has(a)||n.add(a);return[...n]};$.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Hs.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>$.contains(t,n,r));if(typeof e=="string"){if(Ns(t)||Ns(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return $.isMatch(t,e,{...r,contains:!0})};$.matchKeys=(t,e,r)=>{if(!Wt.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=$(Object.keys(t),e,r),s={};for(let i of n)s[i]=t[i];return s};$.some=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=ce(String(s),r);if(n.some(o=>i(o)))return!0}return!1};$.every=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=ce(String(s),r);if(!n.every(o=>i(o)))return!1}return!0};$.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Hs.inspect(t)}"`);return[].concat(e).every(n=>ce(n,r)(t))};$.capture=(t,e,r)=>{let n=Wt.isWindows(r),i=ce.makeRe(String(t),{...r,capture:!0}).exec(n?Wt.toPosixSlashes(e):e);if(i)return i.slice(1).map(o=>o===void 0?"":o)};$.makeRe=(...t)=>ce.makeRe(...t);$.scan=(...t)=>ce.scan(...t);$.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let s of Ds(String(n),e))r.push(ce.parse(s,e));return r};$.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Ds(t,e)};$.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return $.braces(t,{...e,expand:!0})};Is.exports=$});var Ws=y(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.matchAny=b.convertPatternsToRe=b.makeRe=b.getPatternParts=b.expandBraceExpansion=b.expandPatternsWithBraceExpansion=b.isAffectDepthOfReadingPattern=b.endsWithSlashGlobStar=b.hasGlobStar=b.getBaseDirectory=b.isPatternRelatedToParentDirectory=b.getPatternsOutsideCurrentDirectory=b.getPatternsInsideCurrentDirectory=b.getPositivePatterns=b.getNegativePatterns=b.isPositivePattern=b.isNegativePattern=b.convertToNegativePattern=b.convertToPositivePattern=b.isDynamicPattern=b.isStaticPattern=void 0;var hu=q("path"),du=wn(),Kt=$s(),Fs="**",_u="\\",gu=/[*?]|^!/,yu=/\[[^[]*]/,mu=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Su=/[!*+?@]\([^(]*\)/,Eu=/,|\.\./;function Bs(t,e={}){return!qs(t,e)}b.isStaticPattern=Bs;function qs(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(_u)||gu.test(t)||yu.test(t)||mu.test(t)||e.extglob!==!1&&Su.test(t)||e.braceExpansion!==!1&&Au(t))}b.isDynamicPattern=qs;function Au(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return Eu.test(n)}function bu(t){return it(t)?t.slice(1):t}b.convertToPositivePattern=bu;function Ru(t){return"!"+t}b.convertToNegativePattern=Ru;function it(t){return t.startsWith("!")&&t[1]!=="("}b.isNegativePattern=it;function js(t){return!it(t)}b.isPositivePattern=js;function vu(t){return t.filter(it)}b.getNegativePatterns=vu;function xu(t){return t.filter(js)}b.getPositivePatterns=xu;function Cu(t){return t.filter(e=>!Yt(e))}b.getPatternsInsideCurrentDirectory=Cu;function Ou(t){return t.filter(Yt)}b.getPatternsOutsideCurrentDirectory=Ou;function Yt(t){return t.startsWith("..")||t.startsWith("./..")}b.isPatternRelatedToParentDirectory=Yt;function Tu(t){return du(t,{flipBackslashes:!1})}b.getBaseDirectory=Tu;function Pu(t){return t.includes(Fs)}b.hasGlobStar=Pu;function Gs(t){return t.endsWith("/"+Fs)}b.endsWithSlashGlobStar=Gs;function wu(t){let e=hu.basename(t);return Gs(t)||Bs(e)}b.isAffectDepthOfReadingPattern=wu;function Lu(t){return t.reduce((e,r)=>e.concat(Us(r)),[])}b.expandPatternsWithBraceExpansion=Lu;function Us(t){return Kt.braces(t,{expand:!0,nodupes:!0})}b.expandBraceExpansion=Us;function ku(t,e){let{parts:r}=Kt.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}b.getPatternParts=ku;function Vs(t,e){return Kt.makeRe(t,e)}b.makeRe=Vs;function Mu(t,e){return t.map(r=>Vs(r,e))}b.convertPatternsToRe=Mu;function Nu(t,e){return e.some(r=>r.test(t))}b.matchAny=Nu});var Xs=y((Of,Qs)=>{"use strict";var Hu=q("stream"),Ks=Hu.PassThrough,Du=Array.prototype.slice;Qs.exports=Iu;function Iu(){let t=[],e=Du.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let s=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=Ks(n);function a(){for(let f=0,g=arguments.length;f<g;f++)t.push(Ys(arguments[f],n));return u(),this}function u(){if(r)return;r=!0;let f=t.shift();if(!f){process.nextTick(d);return}Array.isArray(f)||(f=[f]);let g=f.length+1;function p(){--g>0||(r=!1,u())}function P(m){function E(){m.removeListener("merge2UnpipeEnd",E),m.removeListener("end",E),i&&m.removeListener("error",R),p()}function R(v){o.emit("error",v)}if(m._readableState.endEmitted)return p();m.on("merge2UnpipeEnd",E),m.on("end",E),i&&m.on("error",R),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<f.length;m++)P(f[m]);p()}function d(){r=!1,o.emit("queueDrain"),s&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Ys(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Ys(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Ks(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var zs=y(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.merge=void 0;var $u=Xs();function Fu(t){let e=$u(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>Zs(t)),e.once("end",()=>Zs(t)),e}ot.merge=Fu;function Zs(t){t.forEach(e=>e.emit("close"))}});var Js=y(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.isEmpty=ke.isString=void 0;function Bu(t){return typeof t=="string"}ke.isString=Bu;function qu(t){return t===""}ke.isEmpty=qu});var he=y(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.string=W.stream=W.pattern=W.path=W.fs=W.errno=W.array=void 0;var ju=En();W.array=ju;var Gu=An();W.errno=Gu;var Uu=bn();W.fs=Uu;var Vu=Rn();W.path=Vu;var Wu=Ws();W.pattern=Wu;var Ku=zs();W.stream=Ku;var Yu=Js();W.string=Yu});var ri=y(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.convertPatternGroupToTask=K.convertPatternGroupsToTasks=K.groupPatternsByBaseDirectory=K.getNegativePatternsAsPositive=K.getPositivePatterns=K.convertPatternsToTasks=K.generate=void 0;var de=he();function Qu(t,e){let r=ei(t),n=ti(t,e.ignore),s=r.filter(u=>de.pattern.isStaticPattern(u,e)),i=r.filter(u=>de.pattern.isDynamicPattern(u,e)),o=Qt(s,n,!1),a=Qt(i,n,!0);return o.concat(a)}K.generate=Qu;function Qt(t,e,r){let n=[],s=de.pattern.getPatternsOutsideCurrentDirectory(t),i=de.pattern.getPatternsInsideCurrentDirectory(t),o=Xt(s),a=Xt(i);return n.push(...Zt(o,e,r)),"."in a?n.push(zt(".",i,e,r)):n.push(...Zt(a,e,r)),n}K.convertPatternsToTasks=Qt;function ei(t){return de.pattern.getPositivePatterns(t)}K.getPositivePatterns=ei;function ti(t,e){return de.pattern.getNegativePatterns(t).concat(e).map(de.pattern.convertToPositivePattern)}K.getNegativePatternsAsPositive=ti;function Xt(t){let e={};return t.reduce((r,n)=>{let s=de.pattern.getBaseDirectory(n);return s in r?r[s].push(n):r[s]=[n],r},e)}K.groupPatternsByBaseDirectory=Xt;function Zt(t,e,r){return Object.keys(t).map(n=>zt(n,t[n],e,r))}K.convertPatternGroupsToTasks=Zt;function zt(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(de.pattern.convertToNegativePattern))}}K.convertPatternGroupToTask=zt});var si=y(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.removeDuplicateSlashes=Me.transform=void 0;var Xu=/(?!^)\/{2,}/g;function Zu(t){return t.map(e=>ni(e))}Me.transform=Zu;function ni(t){return t.replace(Xu,"/")}Me.removeDuplicateSlashes=ni});var oi=y(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.read=void 0;function zu(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){ii(r,n);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){Jt(r,s);return}e.fs.stat(t,(i,o)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){ii(r,i);return}Jt(r,s);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Jt(r,o)})})}at.read=zu;function ii(t,e){t(e)}function Jt(t,e){t(null,e)}});var ai=y(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.read=void 0;function Ju(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}ut.read=Ju});var ui=y(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.createFileSystemAdapter=ge.FILE_SYSTEM_ADAPTER=void 0;var ct=q("fs");ge.FILE_SYSTEM_ADAPTER={lstat:ct.lstat,stat:ct.stat,lstatSync:ct.lstatSync,statSync:ct.statSync};function ec(t){return t===void 0?ge.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ge.FILE_SYSTEM_ADAPTER),t)}ge.createFileSystemAdapter=ec});var ci=y(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});var tc=ui(),er=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=tc.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};tr.default=er});var xe=y(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.statSync=ye.stat=ye.Settings=void 0;var li=oi(),rc=ai(),rr=ci();ye.Settings=rr.default;function nc(t,e,r){if(typeof e=="function"){li.read(t,nr(),e);return}li.read(t,nr(e),r)}ye.stat=nc;function sc(t,e){let r=nr(e);return rc.read(t,r)}ye.statSync=sc;function nr(t={}){return t instanceof rr.default?t:new rr.default(t)}});var hi=y(($f,pi)=>{var fi;pi.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(fi||(fi=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var _i=y((Ff,di)=>{di.exports=oc;var ic=hi();function oc(t,e){let r,n,s,i=!0;Array.isArray(t)?(r=[],n=t.length):(s=Object.keys(t),r={},n=s.length);function o(u){function d(){e&&e(u,r),e=null}i?ic(d):d()}function a(u,d,f){r[u]=f,(--n===0||d)&&o(d)}n?s?s.forEach(function(u){t[u](function(d,f){a(u,d,f)})}):t.forEach(function(u,d){u(function(f,g){a(d,f,g)})}):o(null),i=!1}});var sr=y(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var lt=process.versions.node.split(".");if(lt[0]===void 0||lt[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var gi=Number.parseInt(lt[0],10),ac=Number.parseInt(lt[1],10),yi=10,uc=10,cc=gi>yi,lc=gi===yi&&ac>=uc;ft.IS_SUPPORT_READDIR_WITH_FILE_TYPES=cc||lc});var mi=y(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.createDirentFromStats=void 0;var ir=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function fc(t,e){return new ir(t,e)}pt.createDirentFromStats=fc});var or=y(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.fs=void 0;var pc=mi();ht.fs=pc});var ar=y(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.joinPathSegments=void 0;function hc(t,e,r){return t.endsWith(r)?t+e:t+r+e}dt.joinPathSegments=hc});var vi=y(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.readdir=me.readdirWithFileTypes=me.read=void 0;var dc=xe(),Si=_i(),_c=sr(),Ei=or(),Ai=ar();function gc(t,e,r){if(!e.stats&&_c.IS_SUPPORT_READDIR_WITH_FILE_TYPES){bi(t,e,r);return}Ri(t,e,r)}me.read=gc;function bi(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,s)=>{if(n!==null){_t(r,n);return}let i=s.map(a=>({dirent:a,name:a.name,path:Ai.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ur(r,i);return}let o=i.map(a=>yc(a,e));Si(o,(a,u)=>{if(a!==null){_t(r,a);return}ur(r,u)})})}me.readdirWithFileTypes=bi;function yc(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=Ei.fs.createDirentFromStats(t.name,s),r(null,t)})}}function Ri(t,e,r){e.fs.readdir(t,(n,s)=>{if(n!==null){_t(r,n);return}let i=s.map(o=>{let a=Ai.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{dc.stat(a,e.fsStatSettings,(d,f)=>{if(d!==null){u(d);return}let g={name:o,path:a,dirent:Ei.fs.createDirentFromStats(o,f)};e.stats&&(g.stats=f),u(null,g)})}});Si(i,(o,a)=>{if(o!==null){_t(r,o);return}ur(r,a)})})}me.readdir=Ri;function _t(t,e){t(e)}function ur(t,e){t(null,e)}});var Pi=y(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.readdir=Se.readdirWithFileTypes=Se.read=void 0;var mc=xe(),Sc=sr(),xi=or(),Ci=ar();function Ec(t,e){return!e.stats&&Sc.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Oi(t,e):Ti(t,e)}Se.read=Ec;function Oi(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let s={dirent:n,name:n.name,path:Ci.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let i=e.fs.statSync(s.path);s.dirent=xi.fs.createDirentFromStats(s.name,i)}catch(i){if(e.throwErrorOnBrokenSymbolicLink)throw i}return s})}Se.readdirWithFileTypes=Oi;function Ti(t,e){return e.fs.readdirSync(t).map(n=>{let s=Ci.joinPathSegments(t,n,e.pathSegmentSeparator),i=mc.statSync(s,e.fsStatSettings),o={name:n,path:s,dirent:xi.fs.createDirentFromStats(n,i)};return e.stats&&(o.stats=i),o})}Se.readdir=Ti});var wi=y(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.createFileSystemAdapter=Ee.FILE_SYSTEM_ADAPTER=void 0;var Ne=q("fs");Ee.FILE_SYSTEM_ADAPTER={lstat:Ne.lstat,stat:Ne.stat,lstatSync:Ne.lstatSync,statSync:Ne.statSync,readdir:Ne.readdir,readdirSync:Ne.readdirSync};function Ac(t){return t===void 0?Ee.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ee.FILE_SYSTEM_ADAPTER),t)}Ee.createFileSystemAdapter=Ac});var Li=y(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});var bc=q("path"),Rc=xe(),vc=wi(),cr=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=vc.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,bc.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Rc.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};lr.default=cr});var gt=y(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Settings=Ae.scandirSync=Ae.scandir=void 0;var ki=vi(),xc=Pi(),fr=Li();Ae.Settings=fr.default;function Cc(t,e,r){if(typeof e=="function"){ki.read(t,pr(),e);return}ki.read(t,pr(e),r)}Ae.scandir=Cc;function Oc(t,e){let r=pr(e);return xc.read(t,r)}Ae.scandirSync=Oc;function pr(t={}){return t instanceof fr.default?t:new fr.default(t)}});var Ni=y((Qf,Mi)=>{"use strict";function Tc(t){var e=new t,r=e;function n(){var i=e;return i.next?e=i.next:(e=new t,r=e),i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}Mi.exports=Tc});var Di=y((Xf,hr)=>{"use strict";var Pc=Ni();function Hi(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Pc(wc),s=null,i=null,o=0,a=null,u={push:E,drain:re,saturated:re,pause:f,paused:!1,concurrency:r,running:d,resume:P,idle:m,length:g,getQueue:p,unshift:R,empty:re,kill:k,killAndDrain:H,error:ee};return u;function d(){return o}function f(){u.paused=!0}function g(){for(var O=s,D=0;O;)O=O.next,D++;return D}function p(){for(var O=s,D=[];O;)D.push(O.value),O=O.next;return D}function P(){if(!!u.paused){u.paused=!1;for(var O=0;O<u.concurrency;O++)o++,v()}}function m(){return o===0&&u.length()===0}function E(O,D){var x=n.get();x.context=t,x.release=v,x.value=O,x.callback=D||re,x.errorHandler=a,o===u.concurrency||u.paused?i?(i.next=x,i=x):(s=x,i=x,u.saturated()):(o++,e.call(t,x.value,x.worked))}function R(O,D){var x=n.get();x.context=t,x.release=v,x.value=O,x.callback=D||re,o===u.concurrency||u.paused?s?(x.next=s,s=x):(s=x,i=x,u.saturated()):(o++,e.call(t,x.value,x.worked))}function v(O){O&&n.release(O);var D=s;D?u.paused?o--:(i===s&&(i=null),s=D.next,D.next=null,e.call(t,D.value,D.worked),i===null&&u.empty()):--o===0&&u.drain()}function k(){s=null,i=null,u.drain=re}function H(){s=null,i=null,u.drain(),u.drain=re}function ee(O){a=O}}function re(){}function wc(){this.value=null,this.callback=re,this.next=null,this.release=re,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var s=t.callback,i=t.errorHandler,o=t.value;t.value=null,t.callback=re,t.errorHandler&&i(r,o),s.call(t.context,r,n),t.release(t)}}function Lc(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(f,g){e.call(this,f).then(function(p){g(null,p)},g)}var s=Hi(t,n,r),i=s.push,o=s.unshift;return s.push=a,s.unshift=u,s.drained=d,s;function a(f){var g=new Promise(function(p,P){i(f,function(m,E){if(m){P(m);return}p(E)})});return g.catch(re),g}function u(f){var g=new Promise(function(p,P){o(f,function(m,E){if(m){P(m);return}p(E)})});return g.catch(re),g}function d(){var f=s.drain,g=new Promise(function(p){s.drain=function(){f(),p()}});return g}}hr.exports=Hi;hr.exports.promise=Lc});var yt=y(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.joinPathSegments=le.replacePathSegmentSeparator=le.isAppliedFilter=le.isFatalError=void 0;function kc(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}le.isFatalError=kc;function Mc(t,e){return t===null||t(e)}le.isAppliedFilter=Mc;function Nc(t,e){return t.split(/[/\\]/).join(e)}le.replacePathSegmentSeparator=Nc;function Hc(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}le.joinPathSegments=Hc});var gr=y(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});var Dc=yt(),dr=class{constructor(e,r){this._root=e,this._settings=r,this._root=Dc.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};_r.default=dr});var Sr=y(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});var Ic=q("events"),$c=gt(),Fc=Di(),mt=yt(),Bc=gr(),yr=class extends Bc.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=$c.scandir,this._emitter=new Ic.EventEmitter,this._queue=Fc(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,s)=>{if(n!==null){r(n,void 0);return}for(let i of s)this._handleEntry(i,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!mt.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=mt.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),mt.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&mt.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};mr.default=yr});var Ii=y(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var qc=Sr(),Er=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new qc.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{jc(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Gc(e,this._storage)}),this._reader.read()}};Ar.default=Er;function jc(t,e){t(e)}function Gc(t,e){t(null,e)}});var $i=y(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});var Uc=q("stream"),Vc=Sr(),br=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Vc.default(this._root,this._settings),this._stream=new Uc.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Rr.default=br});var Fi=y(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});var Wc=gt(),St=yt(),Kc=gr(),vr=class extends Kc.default{constructor(){super(...arguments),this._scandir=Wc.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let s of n)this._handleEntry(s,r)}catch(n){this._handleError(n)}}_handleError(e){if(!!St.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=St.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),St.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&St.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};xr.default=vr});var Bi=y(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});var Yc=Fi(),Cr=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Yc.default(this._root,this._settings)}read(){return this._reader.read()}};Or.default=Cr});var qi=y(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});var Qc=q("path"),Xc=gt(),Tr=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Qc.sep),this.fsScandirSettings=new Xc.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};Pr.default=Tr});var At=y(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.Settings=fe.walkStream=fe.walkSync=fe.walk=void 0;var ji=Ii(),Zc=$i(),zc=Bi(),wr=qi();fe.Settings=wr.default;function Jc(t,e,r){if(typeof e=="function"){new ji.default(t,Et()).read(e);return}new ji.default(t,Et(e)).read(r)}fe.walk=Jc;function el(t,e){let r=Et(e);return new zc.default(t,r).read()}fe.walkSync=el;function tl(t,e){let r=Et(e);return new Zc.default(t,r).read()}fe.walkStream=tl;function Et(t={}){return t instanceof wr.default?t:new wr.default(t)}});var bt=y(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});var rl=q("path"),nl=xe(),Gi=he(),Lr=class{constructor(e){this._settings=e,this._fsStatSettings=new nl.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return rl.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:Gi.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!Gi.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};kr.default=Lr});var Hr=y(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});var sl=q("stream"),il=xe(),ol=At(),al=bt(),Mr=class extends al.default{constructor(){super(...arguments),this._walkStream=ol.walkStream,this._stat=il.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),s=new sl.PassThrough({objectMode:!0});s._write=(i,o,a)=>this._getEntry(n[i],e[i],r).then(u=>{u!==null&&r.entryFilter(u)&&s.push(u),i===n.length-1&&s.end(),a()}).catch(a);for(let i=0;i<n.length;i++)s.write(i);return s}_getEntry(e,r,n){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(n.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(s,i)=>s===null?r(i):n(s))})}};Nr.default=Mr});var Ui=y(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});var ul=At(),cl=bt(),ll=Hr(),Dr=class extends cl.default{constructor(){super(...arguments),this._walkAsync=ul.walk,this._readerStream=new ll.default(this._settings)}dynamic(e,r){return new Promise((n,s)=>{this._walkAsync(e,r,(i,o)=>{i===null?n(o):s(i)})})}async static(e,r){let n=[],s=this._readerStream.static(e,r);return new Promise((i,o)=>{s.once("error",o),s.on("data",a=>n.push(a)),s.once("end",()=>i(n))})}};Ir.default=Dr});var Vi=y(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});var He=he(),$r=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=He.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),s=this._splitSegmentsIntoSections(n);this._storage.push({complete:s.length<=1,pattern:r,segments:n,sections:s})}}_getPatternSegments(e){return He.pattern.getPatternParts(e,this._micromatchOptions).map(n=>He.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:He.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return He.array.splitWhen(e,r=>r.dynamic&&He.pattern.hasGlobStar(r.pattern))}};Fr.default=$r});var Wi=y(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});var fl=Vi(),Br=class extends fl.default{match(e){let r=e.split("/"),n=r.length,s=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of s){let o=i.sections[0];if(!i.complete&&n>o.length||r.every((u,d)=>{let f=i.segments[d];return!!(f.dynamic&&f.patternRe.test(u)||!f.dynamic&&f.pattern===u)}))return!0}return!1}};qr.default=Br});var Ki=y(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});var Rt=he(),pl=Wi(),jr=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let s=this._getMatcher(r),i=this._getNegativePatternsRe(n);return o=>this._filter(e,o,s,i)}_getMatcher(e){return new pl.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Rt.pattern.isAffectDepthOfReadingPattern);return Rt.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=Rt.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let s=e.split("/").length;return n-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Rt.pattern.matchAny(e,r)}};Gr.default=jr});var Yi=y(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});var Ce=he(),Ur=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=Ce.pattern.convertPatternsToRe(e,this._micromatchOptions),s=Ce.pattern.convertPatternsToRe(r,this._micromatchOptions);return i=>this._filter(i,n,s)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let s=this._settings.baseNameMatch?e.name:e.path,i=e.dirent.isDirectory(),o=this._isMatchToPatterns(s,r,i)&&!this._isMatchToPatterns(e.path,n,i);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=Ce.path.makeAbsolute(this._settings.cwd,e);return Ce.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let s=Ce.path.removeLeadingDotSegment(e),i=Ce.pattern.matchAny(s,r);return!i&&n?Ce.pattern.matchAny(s+"/",r):i}};Vr.default=Ur});var Qi=y(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});var hl=he(),Wr=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return hl.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Kr.default=Wr});var Zi=y(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});var Xi=he(),Yr=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Xi.path.makeAbsolute(this._settings.cwd,r),r=Xi.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Qr.default=Yr});var vt=y(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});var dl=q("path"),_l=Ki(),gl=Yi(),yl=Qi(),ml=Zi(),Xr=class{constructor(e){this._settings=e,this.errorFilter=new yl.default(this._settings),this.entryFilter=new gl.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new _l.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new ml.default(this._settings)}_getRootDirectory(e){return dl.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Zr.default=Xr});var zi=y(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});var Sl=Ui(),El=vt(),zr=class extends El.default{constructor(){super(...arguments),this._reader=new Sl.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(i=>n.transform(i))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Jr.default=zr});var Ji=y(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});var Al=q("stream"),bl=Hr(),Rl=vt(),en=class extends Rl.default{constructor(){super(...arguments),this._reader=new bl.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),s=this.api(r,e,n),i=new Al.Readable({objectMode:!0,read:()=>{}});return s.once("error",o=>i.emit("error",o)).on("data",o=>i.emit("data",n.transform(o))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};tn.default=en});var eo=y(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});var vl=xe(),xl=At(),Cl=bt(),rn=class extends Cl.default{constructor(){super(...arguments),this._walkSync=xl.walkSync,this._statSync=vl.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let s of e){let i=this._getFullEntryPath(s),o=this._getEntry(i,s,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(n.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};nn.default=rn});var to=y(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});var Ol=eo(),Tl=vt(),sn=class extends Tl.default{constructor(){super(...arguments),this._reader=new Ol.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};on.default=sn});var ro=y(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var De=q("fs"),Pl=q("os"),wl=Math.max(Pl.cpus().length,1);Ie.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:De.lstat,lstatSync:De.lstatSync,stat:De.stat,statSync:De.statSync,readdir:De.readdir,readdirSync:De.readdirSync};var an=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,wl),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Ie.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Ie.default=an});var oo=y((Ap,io)=>{"use strict";var no=ri(),so=si(),Ll=zi(),kl=Ji(),Ml=to(),un=ro(),Oe=he();async function cn(t,e){$e(t);let r=ln(t,Ll.default,e),n=await Promise.all(r);return Oe.array.flatten(n)}(function(t){function e(o,a){$e(o);let u=ln(o,Ml.default,a);return Oe.array.flatten(u)}t.sync=e;function r(o,a){$e(o);let u=ln(o,kl.default,a);return Oe.stream.merge(u)}t.stream=r;function n(o,a){$e(o);let u=so.transform([].concat(o)),d=new un.default(a);return no.generate(u,d)}t.generateTasks=n;function s(o,a){$e(o);let u=new un.default(a);return Oe.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=s;function i(o){return $e(o),Oe.path.escape(o)}t.escapePath=i})(cn||(cn={}));function ln(t,e,r){let n=so.transform([].concat(t)),s=new un.default(r),i=no.generate(n,s),o=new e(s);return i.map(o.read,o)}function $e(t){if(![].concat(t).every(n=>Oe.string.isString(n)&&!Oe.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}io.exports=cn});var bo=Lo(oo(),1);import{existsSync as Yl}from"fs";import{writeFile as Ql}from"fs/promises";import{isAbsolute as Xl,resolve as Zl}from"path";var ao={NODE_ENV:"production"};try{let{env:t}=await import("process");t.NODE_ENV&&(ao.NODE_ENV=t.NODE_ENV)}catch{}var xt=typeof window>"u"&&ao.NODE_ENV==="development";import{Console as Kl}from"console";var uo=(t=0)=>e=>`\x1B[${e+t}m`,co=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,lo=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,F={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]}},fo=Object.keys(F.modifier),fn=Object.keys(F.color),pn=Object.keys(F.bgColor),po=[...fn,...pn];function Nl(){let t=new Map;for(let[e,r]of Object.entries(F)){for(let[n,s]of Object.entries(r))F[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=F[n],t.set(s[0],s[1]);Object.defineProperty(F,e,{value:r,enumerable:!1})}return Object.defineProperty(F,"codes",{value:t,enumerable:!1}),F.color.close="\x1B[39m",F.bgColor.close="\x1B[49m",F.color.ansi=uo(),F.color.ansi256=co(),F.color.ansi16m=lo(),F.bgColor.ansi=uo(10),F.bgColor.ansi256=co(10),F.bgColor.ansi16m=lo(10),Object.defineProperties(F,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>F.rgbToAnsi256(...F.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,s;if(e>=232)r=((e-232)*10+8)/255,n=r,s=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>F.ansi256ToAnsi(F.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>F.ansi256ToAnsi(F.hexToAnsi256(e)),enumerable:!1}}),F}var Hl=Nl(),se=Hl;import hn from"node:process";import Dl from"node:os";import ho from"node:tty";function ne(t,e=hn.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}var{env:G}=hn,Ct;ne("no-color")||ne("no-colors")||ne("color=false")||ne("color=never")?Ct=0:(ne("color")||ne("colors")||ne("color=true")||ne("color=always"))&&(Ct=1);function Il(){if("FORCE_COLOR"in G)return G.FORCE_COLOR==="true"?1:G.FORCE_COLOR==="false"?0:G.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(G.FORCE_COLOR,10),3)}function $l(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Fl(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=Il();n!==void 0&&(Ct=n);let s=r?Ct:n;if(s===0)return 0;if(r){if(ne("color=16m")||ne("color=full")||ne("color=truecolor"))return 3;if(ne("color=256"))return 2}if(t&&!e&&s===void 0)return 0;let i=s||0;if(G.TERM==="dumb")return i;if(hn.platform==="win32"){let o=Dl.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in G)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in G)||G.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in G)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(G.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in G&&"AGENT_NAME"in G)return 1;if(G.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in G){let o=Number.parseInt((G.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(G.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(G.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(G.TERM)||"COLORTERM"in G?1:i}function _o(t,e={}){let r=Fl(t,{streamIsTTY:t&&t.isTTY,...e});return $l(r)}var Bl={stdout:_o({isTTY:ho.isatty(1)}),stderr:_o({isTTY:ho.isatty(2)})},go=Bl;function yo(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let s=e.length,i=0,o="";do o+=t.slice(i,n)+e+r,i=n+s,n=t.indexOf(e,i);while(n!==-1);return o+=t.slice(i),o}function mo(t,e,r,n){let s=0,i="";do{let o=t[n-1]==="\r";i+=t.slice(s,o?n-1:n)+e+(o?`\r
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");
|
2
|
+
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
|
3
3
|
|
4
4
|
import{dirname as mA,normalize as hA,posix as F,resolve as D}from"path";import{existsSync as w}from"fs";import{readFile as eA}from"fs/promises";var tA=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function q(A,Q="@"){if(!g)return U.then(()=>q(A));let o=A.length+1,C=(g.__heap_base.value||g.__heap_base)+4*o-g.memory.buffer.byteLength;C>0&&g.memory.grow(Math.ceil(C/65536));let B=g.sa(o-1);if((tA?sA:rA)(A,new Uint16Array(g.memory.buffer,B,o)),!g.parse())throw Object.assign(new Error(`Parse error ${Q}:${A.slice(0,g.e()).split(`
|
5
5
|
`).length}:${g.e()-A.lastIndexOf(`
|
package/dist/constants.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
|
2
|
-
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");
|
2
|
+
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
|
3
3
|
|
4
4
|
import{dirname as t,resolve as o}from"path";import{fileURLToPath as e}from"url";import{readFile as a}from"fs/promises";var m=o(t(e(import.meta.url)),".."),i=async()=>{let r=await a(o(m,"package.json"),"utf-8");return JSON.parse(r)};export{m as INSTALL_ROOT,i as tsmodulePackageJson};
|
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
|
2
|
-
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");
|
2
|
+
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
|
3
3
|
|
4
4
|
export*from"./commands/index.js";export*from"./specification/index.js";export*from"./types/index.js";
|
package/dist/loader/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");
|
2
|
+
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
|
3
3
|
|
4
4
|
import{extname as O,isAbsolute as Q,join as he,normalize as be,resolve as Ee}from"path";import{posix as Oe}from"path";import{win32 as Re}from"path";import{fileURLToPath as Ce,pathToFileURL as X,URL as U}from"url";import{readFile as Te}from"fs/promises";import{transform as ee}from"esbuild";var k={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(k.NODE_ENV=e.NODE_ENV)}catch{}var C=typeof window>"u"&&k.NODE_ENV==="development";import{Console as de}from"console";var D=(e=0)=>o=>`\x1B[${o+e}m`,P=(e=0)=>o=>`\x1B[${38+e};5;${o}m`,G=(e=0)=>(o,r,t)=>`\x1B[${38+e};2;${o};${r};${t}m`,i={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]}},j=Object.keys(i.modifier),A=Object.keys(i.color),M=Object.keys(i.bgColor),$=[...A,...M];function re(){let e=new Map;for(let[o,r]of Object.entries(i)){for(let[t,n]of Object.entries(r))i[t]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[t]=i[t],e.set(n[0],n[1]);Object.defineProperty(i,o,{value:r,enumerable:!1})}return Object.defineProperty(i,"codes",{value:e,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi=D(),i.color.ansi256=P(),i.color.ansi16m=G(),i.bgColor.ansi=D(10),i.bgColor.ansi256=P(10),i.bgColor.ansi16m=G(10),Object.defineProperties(i,{rgbToAnsi256:{value(o,r,t){return o===r&&r===t?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(r/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(o){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(o.toString(16));if(!r)return[0,0,0];let[t]=r;t.length===3&&(t=[...t].map(s=>s+s).join(""));let n=Number.parseInt(t,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:o=>i.rgbToAnsi256(...i.hexToRgb(o)),enumerable:!1},ansi256ToAnsi:{value(o){if(o<8)return 30+o;if(o<16)return 90+(o-8);let r,t,n;if(o>=232)r=((o-232)*10+8)/255,t=r,n=r;else{o-=16;let c=o%36;r=Math.floor(o/36)/5,t=Math.floor(c/6)/5,n=c%6/5}let s=Math.max(r,t,n)*2;if(s===0)return 30;let l=30+(Math.round(n)<<2|Math.round(t)<<1|Math.round(r));return s===2&&(l+=60),l},enumerable:!1},rgbToAnsi:{value:(o,r,t)=>i.ansi256ToAnsi(i.rgbToAnsi256(o,r,t)),enumerable:!1},hexToAnsi:{value:o=>i.ansi256ToAnsi(i.hexToAnsi256(o)),enumerable:!1}}),i}var te=re(),f=te;import B from"node:process";import ne from"node:os";import V from"node:tty";function a(e,o=B.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",t=o.indexOf(r+e),n=o.indexOf("--");return t!==-1&&(n===-1||t<n)}var{env:u}=B,T;a("no-color")||a("no-colors")||a("color=false")||a("color=never")?T=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(T=1);function se(){if("FORCE_COLOR"in u)return u.FORCE_COLOR==="true"?1:u.FORCE_COLOR==="false"?0:u.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(u.FORCE_COLOR,10),3)}function le(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ie(e,{streamIsTTY:o,sniffFlags:r=!0}={}){let t=se();t!==void 0&&(T=t);let n=r?T:t;if(n===0)return 0;if(r){if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2}if(e&&!o&&n===void 0)return 0;let s=n||0;if(u.TERM==="dumb")return s;if(B.platform==="win32"){let l=ne.release().split(".");return Number(l[0])>=10&&Number(l[2])>=10586?Number(l[2])>=14931?3:2:1}if("CI"in u)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(l=>l in u)||u.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in u)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(u.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in u&&"AGENT_NAME"in u)return 1;if(u.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in u){let l=Number.parseInt((u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(u.TERM_PROGRAM){case"iTerm.app":return l>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(u.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(u.TERM)||"COLORTERM"in u?1:s}function H(e,o={}){let r=ie(e,{streamIsTTY:e&&e.isTTY,...o});return le(r)}var ue={stdout:H({isTTY:V.isatty(1)}),stderr:H({isTTY:V.isatty(2)})},Y=ue;function W(e,o,r){let t=e.indexOf(o);if(t===-1)return e;let n=o.length,s=0,l="";do l+=e.slice(s,t)+o+r,s=t+n,t=e.indexOf(o,s);while(t!==-1);return l+=e.slice(s),l}function K(e,o,r,t){let n=0,s="";do{let l=e[t-1]==="\r";s+=e.slice(n,l?t-1:t)+o+(l?`\r
|
5
5
|
`:`
|
package/dist/loader/types.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
|
2
|
-
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");
|
2
|
+
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
|
3
3
|
|
@@ -1,4 +1,4 @@
|
|
1
1
|
|
2
|
-
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");
|
2
|
+
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}
|
3
3
|
|
4
4
|
var t={name:"relative-externs",setup(e){e.onResolve({filter:/^\.\.?\//},({path:n,importer:r})=>r.includes("node_modules")?null:{path:n,external:!0})}};export{t as relativeExternsPlugin};
|