jk-ui-cli 0.0.4 → 0.0.6
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/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/package.json +1 -1
- package/stubs/css/buttons.stub +20 -48
- package/stubs/css/dark/buttons.stub +20 -0
- package/stubs/css/dark/utilities.stub +11 -0
- package/stubs/css/light/buttons.stub +9 -0
- package/stubs/css/light/utilities.stub +10 -0
- package/stubs/css/utilities.stub +22 -0
- package/stubs/css/all-themes.stub +0 -61
- package/stubs/css/flexiwind/base.stub +0 -36
- package/stubs/css/flexiwind/button.stub +0 -100
- package/stubs/css/flexiwind/form.stub +0 -189
- package/stubs/css/flexiwind/grid-bg.stub +0 -128
- package/stubs/css/flexiwind/ui.stub +0 -171
- package/stubs/css/flexiwind/utils.stub +0 -189
- /package/stubs/{utls → utils}/lib.stub +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';var commander=require('commander'),fs=require('fs'),ue=require('path'),child_process=require('child_process'),url=require('url'),cs=require('prompts'),gr=require('chalk'),zod=require('zod');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var ue__default=/*#__PURE__*/_interopDefault(ue);var cs__default=/*#__PURE__*/_interopDefault(cs);var gr__default=/*#__PURE__*/_interopDefault(gr);var wn=Object.create;var ut=Object.defineProperty;var xn=Object.getOwnPropertyDescriptor;var Sn=Object.getOwnPropertyNames;var En=Object.getPrototypeOf,Rn=Object.prototype.hasOwnProperty;var P=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var c=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var kn=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sn(e))!Rn.call(r,n)&&n!==t&&ut(r,n,{get:()=>e[n],enumerable:!(i=xn(e,n))||i.enumerable});return r};var Pn=(r,e,t)=>(t=r!=null?wn(En(r)):{},kn(ut(t,"default",{value:r,enumerable:true}),r));var ht=c((Ds,wr)=>{var dt=(r,e)=>{for(let t of Reflect.ownKeys(e))Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t));return r};wr.exports=dt;wr.exports.default=dt;});var gt=c((Os,je)=>{var Tn=ht(),Ie=new WeakMap,pt=(r,e={})=>{if(typeof r!="function")throw new TypeError("Expected a function");let t,i=0,n=r.displayName||r.name||"<anonymous>",o=function(...a){if(Ie.set(o,++i),i===1)t=r.apply(this,a),r=null;else if(e.throw===true)throw new Error(`Function \`${n}\` can only be called once`);return t};return Tn(o,r),Ie.set(o,i),o};je.exports=pt;je.exports.default=pt;je.exports.callCount=r=>{if(!Ie.has(r))throw new Error(`The given function \`${r.name}\` is not wrapped by the \`onetime\` package`);return Ie.get(r)};});var vt=c((Ls,De)=>{De.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&De.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&De.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");});var wt=c((Bs,oe)=>{var _=global.process,Y=function(r){return r&&typeof r=="object"&&typeof r.removeListener=="function"&&typeof r.emit=="function"&&typeof r.reallyExit=="function"&&typeof r.listeners=="function"&&typeof r.kill=="function"&&typeof r.pid=="number"&&typeof r.on=="function"};Y(_)?(mt=P("assert"),ie=vt(),_t=/^win/i.test(_.platform),he=P("events"),typeof he!="function"&&(he=he.EventEmitter),_.__signal_exit_emitter__?R=_.__signal_exit_emitter__:(R=_.__signal_exit_emitter__=new he,R.count=0,R.emitted={}),R.infinite||(R.setMaxListeners(1/0),R.infinite=true),oe.exports=function(r,e){if(!Y(global.process))return function(){};mt.equal(typeof r,"function","a callback must be provided for exit handler"),ne===false&&xr();var t="exit";e&&e.alwaysLast&&(t="afterexit");var i=function(){R.removeListener(t,r),R.listeners("exit").length===0&&R.listeners("afterexit").length===0&&Oe();};return R.on(t,r),i},Oe=function(){!ne||!Y(global.process)||(ne=false,ie.forEach(function(e){try{_.removeListener(e,Le[e]);}catch{}}),_.emit=Be,_.reallyExit=Sr,R.count-=1);},oe.exports.unload=Oe,V=function(e,t,i){R.emitted[e]||(R.emitted[e]=true,R.emit(e,t,i));},Le={},ie.forEach(function(r){Le[r]=function(){if(Y(global.process)){var t=_.listeners(r);t.length===R.count&&(Oe(),V("exit",null,r),V("afterexit",null,r),_t&&r==="SIGHUP"&&(r="SIGINT"),_.kill(_.pid,r));}};}),oe.exports.signals=function(){return ie},ne=false,xr=function(){ne||!Y(global.process)||(ne=true,R.count+=1,ie=ie.filter(function(e){try{return _.on(e,Le[e]),!0}catch{return false}}),_.emit=bt,_.reallyExit=yt);},oe.exports.load=xr,Sr=_.reallyExit,yt=function(e){Y(global.process)&&(_.exitCode=e||0,V("exit",_.exitCode,null),V("afterexit",_.exitCode,null),Sr.call(_,_.exitCode));},Be=_.emit,bt=function(e,t){if(e==="exit"&&Y(global.process)){t!==void 0&&(_.exitCode=t);var i=Be.apply(this,arguments);return V("exit",_.exitCode,null),V("afterexit",_.exitCode,null),i}else return Be.apply(this,arguments)}):oe.exports=function(){return function(){}};var mt,ie,_t,he,R,Oe,V,Le,ne,xr,Sr,yt,Be,bt;});var St=c((Fs,xt)=>{var Cn=gt(),An=wt();xt.exports=Cn(()=>{An(()=>{process.stderr.write("\x1B[?25h");},{alwaysLast:true});});});var Et=c(ae=>{var Mn=St(),Fe=false;ae.show=(r=process.stderr)=>{r.isTTY&&(Fe=false,r.write("\x1B[?25h"));};ae.hide=(r=process.stderr)=>{r.isTTY&&(Mn(),Fe=true,r.write("\x1B[?25l"));};ae.toggle=(r,e)=>{r!==void 0&&(Fe=r),Fe?ae.show(e):ae.hide(e);};});var Rt=c((qs,In)=>{In.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}};});var Tt=c((Us,Pt)=>{var Ne=Object.assign({},Rt()),kt=Object.keys(Ne);Object.defineProperty(Ne,"random",{get(){let r=Math.floor(Math.random()*kt.length),e=kt[r];return Ne[e]}});Pt.exports=Ne;});var Er=c(($s,Ct)=>{Ct.exports=()=>process.platform!=="win32"?true:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty";});var Mt=c((Ws,At)=>{var N=P("chalk"),jn=Er(),Dn={info:N.blue("\u2139"),success:N.green("\u2714"),warning:N.yellow("\u26A0"),error:N.red("\u2716")},On={info:N.blue("i"),success:N.green("\u221A"),warning:N.yellow("\u203C"),error:N.red("\xD7")};At.exports=jn()?Dn:On;});var jt=c((Gs,It)=>{It.exports=({onlyFirst:r=false}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,r?void 0:"g")};});var Ot=c((Hs,Dt)=>{var Ln=jt();Dt.exports=r=>typeof r=="string"?r.replace(Ln(),""):r;});var Lt=c((Js,qe)=>{var Bn=(function(){function r(a,s,l,u){typeof s=="object"&&(l=s.depth,u=s.prototype,s.filter,s=s.circular);var d=[],m=[],b=typeof Buffer<"u";typeof s>"u"&&(s=true),typeof l>"u"&&(l=1/0);function T(h,M){if(h===null)return null;if(M==0)return h;var w,B;if(typeof h!="object")return h;if(r.__isArray(h))w=[];else if(r.__isRegExp(h))w=new RegExp(h.source,o(h)),h.lastIndex&&(w.lastIndex=h.lastIndex);else if(r.__isDate(h))w=new Date(h.getTime());else {if(b&&Buffer.isBuffer(h))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(h.length):w=new Buffer(h.length),h.copy(w),w;typeof u>"u"?(B=Object.getPrototypeOf(h),w=Object.create(B)):(w=Object.create(u),B=u);}if(s){var Me=d.indexOf(h);if(Me!=-1)return m[Me];d.push(h),m.push(w);}for(var yr in h){var br;B&&(br=Object.getOwnPropertyDescriptor(B,yr)),!(br&&br.set==null)&&(w[yr]=T(h[yr],M-1));}return w}return T(a,l)}r.clonePrototype=function(s){if(s===null)return null;var l=function(){};return l.prototype=s,new l};function e(a){return Object.prototype.toString.call(a)}r.__objToStr=e;function t(a){return typeof a=="object"&&e(a)==="[object Date]"}r.__isDate=t;function i(a){return typeof a=="object"&&e(a)==="[object Array]"}r.__isArray=i;function n(a){return typeof a=="object"&&e(a)==="[object RegExp]"}r.__isRegExp=n;function o(a){var s="";return a.global&&(s+="g"),a.ignoreCase&&(s+="i"),a.multiline&&(s+="m"),s}return r.__getRegExpFlags=o,r})();typeof qe=="object"&&qe.exports&&(qe.exports=Bn);});var Ft=c((Ys,Bt)=>{var Fn=Lt();Bt.exports=function(r,e){return r=r||{},Object.keys(e).forEach(function(t){typeof r[t]>"u"&&(r[t]=Fn(e[t]));}),r};});var qt=c((Vs,Nt)=>{Nt.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 Gt=c((Ks,Rr)=>{var Nn=Ft(),pe=qt(),$t={nul:0,control:0};Rr.exports=function(e){return Wt(e,$t)};Rr.exports.config=function(r){return r=Nn(r||{},$t),function(t){return Wt(t,r)}};function Wt(r,e){if(typeof r!="string")return Ut(r,e);for(var t=0,i=0;i<r.length;i++){var n=Ut(r.charCodeAt(i),e);if(n<0)return -1;t+=n;}return t}function Ut(r,e){return r===0?e.nul:r<32||r>=127&&r<160?e.control:qn(r)?0:1+(r>=4352&&(r<=4447||r==9001||r==9002||r>=11904&&r<=42191&&r!=12351||r>=44032&&r<=55203||r>=63744&&r<=64255||r>=65040&&r<=65049||r>=65072&&r<=65135||r>=65280&&r<=65376||r>=65504&&r<=65510||r>=131072&&r<=196605||r>=196608&&r<=262141))}function qn(r){var e=0,t=pe.length-1,i;if(r<pe[0][0]||r>pe[t][1])return false;for(;t>=e;)if(i=Math.floor((e+t)/2),r>pe[i][1])e=i+1;else if(r<pe[i][0])t=i-1;else return true;return false}});var Jt=c((zs,Ht)=>{Ht.exports=({stream:r=process.stdout}={})=>!!(r&&r.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env));});var kr=c((Xs,Yt)=>{Yt.exports=P("stream");});var Qt=c((Zs,Zt)=>{function Vt(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i);}return t}function Kt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Vt(Object(t),true).forEach(function(i){Un(r,i,t[i]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Vt(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i));});}return r}function Un(r,e,t){return e=Xt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:true,configurable:true,writable:true}):r[e]=t,r}function $n(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function zt(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||false,i.configurable=true,"value"in i&&(i.writable=true),Object.defineProperty(r,Xt(i.key),i);}}function Wn(r,e,t){return e&&zt(r.prototype,e),Object.defineProperty(r,"prototype",{writable:false}),r}function Xt(r){var e=Gn(r,"string");return typeof e=="symbol"?e:String(e)}function Gn(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (String)(r)}var Hn=P("buffer"),Ue=Hn.Buffer,Jn=P("util"),Pr=Jn.inspect,Yn=Pr&&Pr.custom||"inspect";function Vn(r,e,t){Ue.prototype.copy.call(r,e,t);}Zt.exports=(function(){function r(){$n(this,r),this.head=null,this.tail=null,this.length=0;}return Wn(r,[{key:"push",value:function(t){var i={data:t,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length;}},{key:"unshift",value:function(t){var i={data:t,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length;}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0;}},{key:"join",value:function(t){if(this.length===0)return "";for(var i=this.head,n=""+i.data;i=i.next;)n+=t+i.data;return n}},{key:"concat",value:function(t){if(this.length===0)return Ue.alloc(0);for(var i=Ue.allocUnsafe(t>>>0),n=this.head,o=0;n;)Vn(n.data,i,o),o+=n.data.length,n=n.next;return i}},{key:"consume",value:function(t,i){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?n=this.shift():n=i?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var i=this.head,n=1,o=i.data;for(t-=o.length;i=i.next;){var a=i.data,s=t>a.length?a.length:t;if(s===a.length?o+=a:o+=a.slice(0,t),t-=s,t===0){s===a.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(s));break}++n;}return this.length-=n,o}},{key:"_getBuffer",value:function(t){var i=Ue.allocUnsafe(t),n=this.head,o=1;for(n.data.copy(i),t-=n.data.length;n=n.next;){var a=n.data,s=t>a.length?a.length:t;if(a.copy(i,i.length-t,0,s),t-=s,t===0){s===a.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(s));break}++o;}return this.length-=o,i}},{key:Yn,value:function(t,i){return Pr(this,Kt(Kt({},i),{},{depth:0,customInspect:false}))}}]),r})();});var Cr=c((Qs,ri)=>{function Kn(r,e){var t=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=true,process.nextTick(Tr,this,r)):process.nextTick(Tr,this,r)),this):(this._readableState&&(this._readableState.destroyed=true),this._writableState&&(this._writableState.destroyed=true),this._destroy(r||null,function(o){!e&&o?t._writableState?t._writableState.errorEmitted?process.nextTick($e,t):(t._writableState.errorEmitted=true,process.nextTick(ei,t,o)):process.nextTick(ei,t,o):e?(process.nextTick($e,t),e(o)):process.nextTick($e,t);}),this)}function ei(r,e){Tr(r,e),$e(r);}function $e(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close");}function zn(){this._readableState&&(this._readableState.destroyed=false,this._readableState.reading=false,this._readableState.ended=false,this._readableState.endEmitted=false),this._writableState&&(this._writableState.destroyed=false,this._writableState.ended=false,this._writableState.ending=false,this._writableState.finalCalled=false,this._writableState.prefinished=false,this._writableState.finished=false,this._writableState.errorEmitted=false);}function Tr(r,e){r.emit("error",e);}function Xn(r,e){var t=r._readableState,i=r._writableState;t&&t.autoDestroy||i&&i.autoDestroy?r.destroy(e):r.emit("error",e);}ri.exports={destroy:Kn,undestroy:zn,errorOrDestroy:Xn};});var q=c((el,ni)=>{var ii={};function I(r,e,t){t||(t=Error);function i(o,a,s){return typeof e=="string"?e:e(o,a,s)}class n extends t{constructor(a,s,l){super(i(a,s,l));}}n.prototype.name=t.name,n.prototype.code=r,ii[r]=n;}function ti(r,e){if(Array.isArray(r)){let t=r.length;return r=r.map(i=>String(i)),t>2?`one of ${e} ${r.slice(0,t-1).join(", ")}, or `+r[t-1]:t===2?`one of ${e} ${r[0]} or ${r[1]}`:`of ${e} ${r[0]}`}else return `of ${e} ${String(r)}`}function Zn(r,e,t){return r.substr(0,e.length)===e}function Qn(r,e,t){return (t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function eo(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?false:r.indexOf(e,t)!==-1}I("ERR_INVALID_OPT_VALUE",function(r,e){return 'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);I("ERR_INVALID_ARG_TYPE",function(r,e,t){let i;typeof e=="string"&&Zn(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let n;if(Qn(r," argument"))n=`The ${r} ${i} ${ti(e,"type")}`;else {let o=eo(r,".")?"property":"argument";n=`The "${r}" ${o} ${i} ${ti(e,"type")}`;}return n+=`. Received type ${typeof t}`,n},TypeError);I("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");I("ERR_METHOD_NOT_IMPLEMENTED",function(r){return "The "+r+" method is not implemented"});I("ERR_STREAM_PREMATURE_CLOSE","Premature close");I("ERR_STREAM_DESTROYED",function(r){return "Cannot call "+r+" after a stream was destroyed"});I("ERR_MULTIPLE_CALLBACK","Callback called multiple times");I("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");I("ERR_STREAM_WRITE_AFTER_END","write after end");I("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);I("ERR_UNKNOWN_ENCODING",function(r){return "Unknown encoding: "+r},TypeError);I("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ni.exports.codes=ii;});var Ar=c((rl,oi)=>{var ro=q().codes.ERR_INVALID_OPT_VALUE;function to(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function io(r,e,t,i){var n=to(e,i,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var o=i?t:"highWaterMark";throw new ro(o,n)}return Math.floor(n)}return r.objectMode?16:16*1024}oi.exports={getHighWaterMark:io};});var ai=c((tl,Mr)=>{typeof Object.create=="function"?Mr.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}}));}:Mr.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e;}};});var K=c((il,jr)=>{try{if(Ir=P("util"),typeof Ir.inherits!="function")throw "";jr.exports=Ir.inherits;}catch{jr.exports=ai();}var Ir;});var li=c((nl,si)=>{si.exports=P("util").deprecate;});var Lr=c((ol,pi)=>{pi.exports=y;function fi(r){var e=this;this.next=null,this.entry=null,this.finish=function(){Mo(e,r);};}var se;y.WritableState=ve;var no={deprecate:li()},ui=kr(),Ge=P("buffer").Buffer,oo=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ao(r){return Ge.from(r)}function so(r){return Ge.isBuffer(r)||r instanceof oo}var Or=Cr(),lo=Ar(),co=lo.getHighWaterMark,U=q().codes,fo=U.ERR_INVALID_ARG_TYPE,uo=U.ERR_METHOD_NOT_IMPLEMENTED,ho=U.ERR_MULTIPLE_CALLBACK,po=U.ERR_STREAM_CANNOT_PIPE,go=U.ERR_STREAM_DESTROYED,vo=U.ERR_STREAM_NULL_VALUES,mo=U.ERR_STREAM_WRITE_AFTER_END,_o=U.ERR_UNKNOWN_ENCODING,le=Or.errorOrDestroy;K()(y,ui);function yo(){}function ve(r,e,t){se=se||z(),r=r||{},typeof t!="boolean"&&(t=e instanceof se),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=co(this,r,"writableHighWaterMark",t),this.finalCalled=false,this.needDrain=false,this.ending=false,this.ended=false,this.finished=false,this.destroyed=false;var i=r.decodeStrings===false;this.decodeStrings=!i,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=false,this.corked=0,this.sync=true,this.bufferProcessing=false,this.onwrite=function(n){ko(e,n);},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=false,this.errorEmitted=false,this.emitClose=r.emitClose!==false,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new fi(this);}ve.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(ve.prototype,"buffer",{get:no.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")});}catch{}})();var We;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(We=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return We.call(this,e)?true:this!==y?false:e&&e._writableState instanceof ve}})):We=function(e){return e instanceof this};function y(r){se=se||z();var e=this instanceof se;if(!e&&!We.call(y,this))return new y(r);this._writableState=new ve(r,this,e),this.writable=true,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),ui.call(this);}y.prototype.pipe=function(){le(this,new po);};function bo(r,e){var t=new mo;le(r,t),process.nextTick(e,t);}function wo(r,e,t,i){var n;return t===null?n=new vo:typeof t!="string"&&!e.objectMode&&(n=new fo("chunk",["string","Buffer"],t)),n?(le(r,n),process.nextTick(i,n),false):true}y.prototype.write=function(r,e,t){var i=this._writableState,n=false,o=!i.objectMode&&so(r);return o&&!Ge.isBuffer(r)&&(r=ao(r)),typeof e=="function"&&(t=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),typeof t!="function"&&(t=yo),i.ending?bo(this,t):(o||wo(this,i,r,t))&&(i.pendingcb++,n=So(this,i,o,r,e,t)),n};y.prototype.cork=function(){this._writableState.corked++;};y.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&di(this,r));};y.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _o(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(y.prototype,"writableBuffer",{enumerable:false,get:function(){return this._writableState&&this._writableState.getBuffer()}});function xo(r,e,t){return !r.objectMode&&r.decodeStrings!==false&&typeof e=="string"&&(e=Ge.from(e,t)),e}Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function So(r,e,t,i,n,o){if(!t){var a=xo(e,i,n);i!==a&&(t=true,n="buffer",i=a);}var s=e.objectMode?1:i.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=true),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:t,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1;}else Dr(r,e,false,s,i,n,o);return l}function Dr(r,e,t,i,n,o,a){e.writelen=i,e.writecb=a,e.writing=true,e.sync=true,e.destroyed?e.onwrite(new go("write")):t?r._writev(n,e.onwrite):r._write(n,o,e.onwrite),e.sync=false;}function Eo(r,e,t,i,n){--e.pendingcb,t?(process.nextTick(n,i),process.nextTick(ge,r,e),r._writableState.errorEmitted=true,le(r,i)):(n(i),r._writableState.errorEmitted=true,le(r,i),ge(r,e));}function Ro(r){r.writing=false,r.writecb=null,r.length-=r.writelen,r.writelen=0;}function ko(r,e){var t=r._writableState,i=t.sync,n=t.writecb;if(typeof n!="function")throw new ho;if(Ro(t),e)Eo(r,t,i,e,n);else {var o=hi(t)||r.destroyed;!o&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&di(r,t),i?process.nextTick(ci,r,t,o,n):ci(r,t,o,n);}}function ci(r,e,t,i){t||Po(r,e),e.pendingcb--,i(),ge(r,e);}function Po(r,e){e.length===0&&e.needDrain&&(e.needDrain=false,r.emit("drain"));}function di(r,e){e.bufferProcessing=true;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var i=e.bufferedRequestCount,n=new Array(i),o=e.corkedRequestsFree;o.entry=t;for(var a=0,s=true;t;)n[a]=t,t.isBuf||(s=false),t=t.next,a+=1;n.allBuffers=s,Dr(r,e,true,e.length,n,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new fi(e),e.bufferedRequestCount=0;}else {for(;t;){var l=t.chunk,u=t.encoding,g=t.callback,d=e.objectMode?1:l.length;if(Dr(r,e,false,d,l,u,g),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null);}e.bufferedRequest=t,e.bufferProcessing=false;}y.prototype._write=function(r,e,t){t(new uo("_write()"));};y.prototype._writev=null;y.prototype.end=function(r,e,t){var i=this._writableState;return typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),i.corked&&(i.corked=1,this.uncork()),i.ending||Ao(this,i,t),this};Object.defineProperty(y.prototype,"writableLength",{enumerable:false,get:function(){return this._writableState.length}});function hi(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function To(r,e){r._final(function(t){e.pendingcb--,t&&le(r,t),e.prefinished=true,r.emit("prefinish"),ge(r,e);});}function Co(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=true,process.nextTick(To,r,e)):(e.prefinished=true,r.emit("prefinish")));}function ge(r,e){var t=hi(e);if(t&&(Co(r,e),e.pendingcb===0&&(e.finished=true,r.emit("finish"),e.autoDestroy))){var i=r._readableState;(!i||i.autoDestroy&&i.endEmitted)&&r.destroy();}return t}function Ao(r,e,t){e.ending=true,ge(r,e),t&&(e.finished?process.nextTick(t):r.once("finish",t)),e.ended=true,r.writable=false;}function Mo(r,e,t){var i=r.entry;for(r.entry=null;i;){var n=i.callback;e.pendingcb--,n(t),i=i.next;}e.corkedRequestsFree.next=r;}Object.defineProperty(y.prototype,"destroyed",{enumerable:false,get:function(){return this._writableState===void 0?false:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e);}});y.prototype.destroy=Or.destroy;y.prototype._undestroy=Or.undestroy;y.prototype._destroy=function(r,e){e(r);};});var z=c((al,vi)=>{var Io=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};vi.exports=O;var gi=Nr(),Fr=Lr();K()(O,gi);for(Br=Io(Fr.prototype),He=0;He<Br.length;He++)Je=Br[He],O.prototype[Je]||(O.prototype[Je]=Fr.prototype[Je]);var Br,Je,He;function O(r){if(!(this instanceof O))return new O(r);gi.call(this,r),Fr.call(this,r),this.allowHalfOpen=true,r&&(r.readable===false&&(this.readable=false),r.writable===false&&(this.writable=false),r.allowHalfOpen===false&&(this.allowHalfOpen=false,this.once("end",jo)));}Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(O.prototype,"writableBuffer",{enumerable:false,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(O.prototype,"writableLength",{enumerable:false,get:function(){return this._writableState.length}});function jo(){this._writableState.ended||process.nextTick(Do,this);}function Do(r){r.end();}Object.defineProperty(O.prototype,"destroyed",{enumerable:false,get:function(){return this._readableState===void 0||this._writableState===void 0?false:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e);}});});var yi=c((qr,_i)=>{var Ye=P("buffer"),L=Ye.Buffer;function mi(r,e){for(var t in r)e[t]=r[t];}L.from&&L.alloc&&L.allocUnsafe&&L.allocUnsafeSlow?_i.exports=Ye:(mi(Ye,qr),qr.Buffer=X);function X(r,e,t){return L(r,e,t)}X.prototype=Object.create(L.prototype);mi(L,X);X.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return L(r,e,t)};X.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var i=L(r);return e!==void 0?typeof t=="string"?i.fill(e,t):i.fill(e):i.fill(0),i};X.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return L(r)};X.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Ye.SlowBuffer(r)};});var Wr=c(wi=>{var $r=yi().Buffer,bi=$r.isEncoding||function(r){switch(r=""+r,r&&r.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 true;default:return false}};function Oo(r){if(!r)return "utf8";for(var e;;)switch(r){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 r;default:if(e)return;r=(""+r).toLowerCase(),e=true;}}function Lo(r){var e=Oo(r);if(typeof e!="string"&&($r.isEncoding===bi||!bi(r)))throw new Error("Unknown encoding: "+r);return e||r}wi.StringDecoder=me;function me(r){this.encoding=Lo(r);var e;switch(this.encoding){case "utf16le":this.text=$o,this.end=Wo,e=4;break;case "utf8":this.fillLast=No,e=4;break;case "base64":this.text=Go,this.end=Ho,e=3;break;default:this.write=Jo,this.end=Yo;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$r.allocUnsafe(e);}me.prototype.write=function(r){if(r.length===0)return "";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return "";t=this.lastNeed,this.lastNeed=0;}else t=0;return t<r.length?e?e+this.text(r,t):this.text(r,t):e||""};me.prototype.end=Uo;me.prototype.text=qo;me.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length;};function Ur(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function Bo(r,e,t){var i=e.length-1;if(i<t)return 0;var n=Ur(e[i]);return n>=0?(n>0&&(r.lastNeed=n-1),n):--i<t||n===-2?0:(n=Ur(e[i]),n>=0?(n>0&&(r.lastNeed=n-2),n):--i<t||n===-2?0:(n=Ur(e[i]),n>=0?(n>0&&(n===2?n=0:r.lastNeed=n-3),n):0))}function Fo(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function No(r){var e=this.lastTotal-this.lastNeed,t=Fo(this,r);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length;}function qo(r,e){var t=Bo(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var i=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,i),r.toString("utf8",e,i)}function Uo(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function $o(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var i=t.charCodeAt(t.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function Wo(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function Go(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function Ho(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Jo(r){return r.toString(this.encoding)}function Yo(r){return r&&r.length?this.write(r):""}});var Ve=c((ll,Ei)=>{var xi=q().codes.ERR_STREAM_PREMATURE_CLOSE;function Vo(r){var e=false;return function(){if(!e){e=true;for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];r.apply(this,i);}}}function Ko(){}function zo(r){return r.setHeader&&typeof r.abort=="function"}function Si(r,e,t){if(typeof e=="function")return Si(r,null,e);e||(e={}),t=Vo(t||Ko);var i=e.readable||e.readable!==false&&r.readable,n=e.writable||e.writable!==false&&r.writable,o=function(){r.writable||s();},a=r._writableState&&r._writableState.finished,s=function(){n=false,a=true,i||t.call(r);},l=r._readableState&&r._readableState.endEmitted,u=function(){i=false,l=true,n||t.call(r);},g=function(T){t.call(r,T);},d=function(){var T;if(i&&!l)return (!r._readableState||!r._readableState.ended)&&(T=new xi),t.call(r,T);if(n&&!a)return (!r._writableState||!r._writableState.ended)&&(T=new xi),t.call(r,T)},m=function(){r.req.on("finish",s);};return zo(r)?(r.on("complete",s),r.on("abort",d),r.req?m():r.on("request",m)):n&&!r._writableState&&(r.on("end",o),r.on("close",o)),r.on("end",u),r.on("finish",s),e.error!==false&&r.on("error",g),r.on("close",d),function(){r.removeListener("complete",s),r.removeListener("abort",d),r.removeListener("request",m),r.req&&r.req.removeListener("finish",s),r.removeListener("end",o),r.removeListener("close",o),r.removeListener("finish",s),r.removeListener("end",u),r.removeListener("error",g),r.removeListener("close",d);}}Ei.exports=Si;});var ki=c((cl,Ri)=>{var Ke;function $(r,e,t){return e=Xo(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:true,configurable:true,writable:true}):r[e]=t,r}function Xo(r){var e=Zo(r,"string");return typeof e=="symbol"?e:String(e)}function Zo(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}var Qo=Ve(),W=Symbol("lastResolve"),Z=Symbol("lastReject"),_e=Symbol("error"),ze=Symbol("ended"),Q=Symbol("lastPromise"),Gr=Symbol("handlePromise"),ee=Symbol("stream");function G(r,e){return {value:r,done:e}}function ea(r){var e=r[W];if(e!==null){var t=r[ee].read();t!==null&&(r[Q]=null,r[W]=null,r[Z]=null,e(G(t,false)));}}function ra(r){process.nextTick(ea,r);}function ta(r,e){return function(t,i){r.then(function(){if(e[ze]){t(G(void 0,true));return}e[Gr](t,i);},i);}}var ia=Object.getPrototypeOf(function(){}),na=Object.setPrototypeOf((Ke={get stream(){return this[ee]},next:function(){var e=this,t=this[_e];if(t!==null)return Promise.reject(t);if(this[ze])return Promise.resolve(G(void 0,true));if(this[ee].destroyed)return new Promise(function(a,s){process.nextTick(function(){e[_e]?s(e[_e]):a(G(void 0,true));});});var i=this[Q],n;if(i)n=new Promise(ta(i,this));else {var o=this[ee].read();if(o!==null)return Promise.resolve(G(o,false));n=new Promise(this[Gr]);}return this[Q]=n,n}},$(Ke,Symbol.asyncIterator,function(){return this}),$(Ke,"return",function(){var e=this;return new Promise(function(t,i){e[ee].destroy(null,function(n){if(n){i(n);return}t(G(void 0,true));});})}),Ke),ia),oa=function(e){var t,i=Object.create(na,(t={},$(t,ee,{value:e,writable:true}),$(t,W,{value:null,writable:true}),$(t,Z,{value:null,writable:true}),$(t,_e,{value:null,writable:true}),$(t,ze,{value:e._readableState.endEmitted,writable:true}),$(t,Gr,{value:function(o,a){var s=i[ee].read();s?(i[Q]=null,i[W]=null,i[Z]=null,o(G(s,false))):(i[W]=o,i[Z]=a);},writable:true}),t));return i[Q]=null,Qo(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[Z];o!==null&&(i[Q]=null,i[W]=null,i[Z]=null,o(n)),i[_e]=n;return}var a=i[W];a!==null&&(i[Q]=null,i[W]=null,i[Z]=null,a(G(void 0,true))),i[ze]=true;}),e.on("readable",ra.bind(null,i)),i};Ri.exports=oa;});var Ai=c((fl,Ci)=>{function Pi(r,e,t,i,n,o,a){try{var s=r[o](a),l=s.value;}catch(u){t(u);return}s.done?e(l):Promise.resolve(l).then(i,n);}function aa(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var o=r.apply(e,t);function a(l){Pi(o,i,n,a,s,"next",l);}function s(l){Pi(o,i,n,a,s,"throw",l);}a(void 0);})}}function Ti(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i);}return t}function sa(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ti(Object(t),true).forEach(function(i){la(r,i,t[i]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ti(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i));});}return r}function la(r,e,t){return e=ca(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:true,configurable:true,writable:true}):r[e]=t,r}function ca(r){var e=fa(r,"string");return typeof e=="symbol"?e:String(e)}function fa(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}var ua=q().codes.ERR_INVALID_ARG_TYPE;function da(r,e,t){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new ua("iterable",["Iterable"],e);var n=new r(sa({objectMode:true},t)),o=false;n._read=function(){o||(o=true,a());};function a(){return s.apply(this,arguments)}function s(){return s=aa(function*(){try{var l=yield i.next(),u=l.value,g=l.done;g?n.push(null):n.push(yield u)?a():o=!1;}catch(d){n.destroy(d);}}),s.apply(this,arguments)}return n}Ci.exports=da;});var Nr=c((dl,qi)=>{qi.exports=p;var ce;p.ReadableState=Di;P("events").EventEmitter;var ji=function(e,t){return e.listeners(t).length},be=kr(),Xe=P("buffer").Buffer,ha=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function pa(r){return Xe.from(r)}function ga(r){return Xe.isBuffer(r)||r instanceof ha}var Hr=P("util"),f;Hr&&Hr.debuglog?f=Hr.debuglog("stream"):f=function(){};var va=Qt(),Zr=Cr(),ma=Ar(),_a=ma.getHighWaterMark,Ze=q().codes,ya=Ze.ERR_INVALID_ARG_TYPE,ba=Ze.ERR_STREAM_PUSH_AFTER_EOF,wa=Ze.ERR_METHOD_NOT_IMPLEMENTED,xa=Ze.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,fe,Jr,Yr;K()(p,be);var ye=Zr.errorOrDestroy,Vr=["error","close","destroy","pause","resume"];function Sa(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]];}function Di(r,e,t){ce=ce||z(),r=r||{},typeof t!="boolean"&&(t=e instanceof ce),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=_a(this,r,"readableHighWaterMark",t),this.buffer=new va,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=false,this.endEmitted=false,this.reading=false,this.sync=true,this.needReadable=false,this.emittedReadable=false,this.readableListening=false,this.resumeScheduled=false,this.paused=true,this.emitClose=r.emitClose!==false,this.autoDestroy=!!r.autoDestroy,this.destroyed=false,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=false,this.decoder=null,this.encoding=null,r.encoding&&(fe||(fe=Wr().StringDecoder),this.decoder=new fe(r.encoding),this.encoding=r.encoding);}function p(r){if(ce=ce||z(),!(this instanceof p))return new p(r);var e=this instanceof ce;this._readableState=new Di(r,this,e),this.readable=true,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),be.call(this);}Object.defineProperty(p.prototype,"destroyed",{enumerable:false,get:function(){return this._readableState===void 0?false:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e);}});p.prototype.destroy=Zr.destroy;p.prototype._undestroy=Zr.undestroy;p.prototype._destroy=function(r,e){e(r);};p.prototype.push=function(r,e){var t=this._readableState,i;return t.objectMode?i=true:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=Xe.from(r,e),e=""),i=true),Oi(this,r,e,false,i)};p.prototype.unshift=function(r){return Oi(this,r,null,true,false)};function Oi(r,e,t,i,n){f("readableAddChunk",e);var o=r._readableState;if(e===null)o.reading=false,ka(r,o);else {var a;if(n||(a=Ea(o,e)),a)ye(r,a);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==Xe.prototype&&(e=pa(e)),i)o.endEmitted?ye(r,new xa):Kr(r,o,e,true);else if(o.ended)ye(r,new ba);else {if(o.destroyed)return false;o.reading=false,o.decoder&&!t?(e=o.decoder.write(e),o.objectMode||e.length!==0?Kr(r,o,e,false):Xr(r,o)):Kr(r,o,e,false);}else i||(o.reading=false,Xr(r,o));}return !o.ended&&(o.length<o.highWaterMark||o.length===0)}function Kr(r,e,t,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,i?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&Qe(r)),Xr(r,e);}function Ea(r,e){var t;return !ga(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new ya("chunk",["string","Buffer","Uint8Array"],e)),t}p.prototype.isPaused=function(){return this._readableState.flowing===false};p.prototype.setEncoding=function(r){fe||(fe=Wr().StringDecoder);var e=new fe(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,i="";t!==null;)i+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Mi=1073741824;function Ra(r){return r>=Mi?r=Mi:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function Ii(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=Ra(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=true,0))}p.prototype.read=function(r){f("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=false),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return f("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?zr(this):Qe(this),null;if(r=Ii(r,e),r===0&&e.ended)return e.length===0&&zr(this),null;var i=e.needReadable;f("need readable",i),(e.length===0||e.length-r<e.highWaterMark)&&(i=true,f("length less than watermark",i)),e.ended||e.reading?(i=false,f("reading or ended",i)):i&&(f("do read"),e.reading=true,e.sync=true,e.length===0&&(e.needReadable=true),this._read(e.highWaterMark),e.sync=false,e.reading||(r=Ii(t,e)));var n;return r>0?n=Fi(r,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=true),t!==r&&e.ended&&zr(this)),n!==null&&this.emit("data",n),n};function ka(r,e){if(f("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length);}e.ended=true,e.sync?Qe(r):(e.needReadable=false,e.emittedReadable||(e.emittedReadable=true,Li(r)));}}function Qe(r){var e=r._readableState;f("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=false,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=true,process.nextTick(Li,r));}function Li(r){var e=r._readableState;f("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=false),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Qr(r);}function Xr(r,e){e.readingMore||(e.readingMore=true,process.nextTick(Pa,r,e));}function Pa(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if(f("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=false;}p.prototype._read=function(r){ye(this,new wa("_read()"));};p.prototype.pipe=function(r,e){var t=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=r;break;case 1:i.pipes=[i.pipes,r];break;default:i.pipes.push(r);break}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==false)&&r!==process.stdout&&r!==process.stderr,o=n?s:h;i.endEmitted?process.nextTick(o):t.once("end",o),r.on("unpipe",a);function a(M,w){f("onunpipe"),M===t&&w&&w.hasUnpiped===false&&(w.hasUnpiped=true,g());}function s(){f("onend"),r.end();}var l=Ta(t);r.on("drain",l);var u=false;function g(){f("cleanup"),r.removeListener("close",b),r.removeListener("finish",T),r.removeListener("drain",l),r.removeListener("error",m),r.removeListener("unpipe",a),t.removeListener("end",s),t.removeListener("end",h),t.removeListener("data",d),u=true,i.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&l();}t.on("data",d);function d(M){f("ondata");var w=r.write(M);f("dest.write",w),w===false&&((i.pipesCount===1&&i.pipes===r||i.pipesCount>1&&Ni(i.pipes,r)!==-1)&&!u&&(f("false write response, pause",i.awaitDrain),i.awaitDrain++),t.pause());}function m(M){f("onerror",M),h(),r.removeListener("error",m),ji(r,"error")===0&&ye(r,M);}Sa(r,"error",m);function b(){r.removeListener("finish",T),h();}r.once("close",b);function T(){f("onfinish"),r.removeListener("close",b),h();}r.once("finish",T);function h(){f("unpipe"),t.unpipe(r);}return r.emit("pipe",t),i.flowing||(f("pipe resume"),t.resume()),r};function Ta(r){return function(){var t=r._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&ji(r,"data")&&(t.flowing=true,Qr(r));}}p.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:false};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=false,r&&r.emit("unpipe",this,t),this);if(!r){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=false;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:false});return this}var a=Ni(e.pipes,r);return a===-1?this:(e.pipes.splice(a,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};p.prototype.on=function(r,e){var t=be.prototype.on.call(this,r,e),i=this._readableState;return r==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==false&&this.resume()):r==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=true,i.flowing=false,i.emittedReadable=false,f("on readable",i.length,i.reading),i.length?Qe(this):i.reading||process.nextTick(Ca,this)),t};p.prototype.addListener=p.prototype.on;p.prototype.removeListener=function(r,e){var t=be.prototype.removeListener.call(this,r,e);return r==="readable"&&process.nextTick(Bi,this),t};p.prototype.removeAllListeners=function(r){var e=be.prototype.removeAllListeners.apply(this,arguments);return (r==="readable"||r===void 0)&&process.nextTick(Bi,this),e};function Bi(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=true:r.listenerCount("data")>0&&r.resume();}function Ca(r){f("readable nexttick read 0"),r.read(0);}p.prototype.resume=function(){var r=this._readableState;return r.flowing||(f("resume"),r.flowing=!r.readableListening,Aa(this,r)),r.paused=false,this};function Aa(r,e){e.resumeScheduled||(e.resumeScheduled=true,process.nextTick(Ma,r,e));}function Ma(r,e){f("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=false,r.emit("resume"),Qr(r),e.flowing&&!e.reading&&r.read(0);}p.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==false&&(f("pause"),this._readableState.flowing=false,this.emit("pause")),this._readableState.paused=true,this};function Qr(r){var e=r._readableState;for(f("flow",e.flowing);e.flowing&&r.read()!==null;);}p.prototype.wrap=function(r){var e=this,t=this._readableState,i=false;r.on("end",function(){if(f("wrapped end"),t.decoder&&!t.ended){var a=t.decoder.end();a&&a.length&&e.push(a);}e.push(null);}),r.on("data",function(a){if(f("wrapped data"),t.decoder&&(a=t.decoder.write(a)),!(t.objectMode&&a==null)&&!(!t.objectMode&&(!a||!a.length))){var s=e.push(a);s||(i=true,r.pause());}});for(var n in r)this[n]===void 0&&typeof r[n]=="function"&&(this[n]=(function(s){return function(){return r[s].apply(r,arguments)}})(n));for(var o=0;o<Vr.length;o++)r.on(Vr[o],this.emit.bind(this,Vr[o]));return this._read=function(a){f("wrapped _read",a),i&&(i=false,r.resume());},this};typeof Symbol=="function"&&(p.prototype[Symbol.asyncIterator]=function(){return Jr===void 0&&(Jr=ki()),Jr(this)});Object.defineProperty(p.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(p.prototype,"readableBuffer",{enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(p.prototype,"readableFlowing",{enumerable:false,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e);}});p._fromList=Fi;Object.defineProperty(p.prototype,"readableLength",{enumerable:false,get:function(){return this._readableState.length}});function Fi(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function zr(r){var e=r._readableState;f("endReadable",e.endEmitted),e.endEmitted||(e.ended=true,process.nextTick(Ia,e,r));}function Ia(r,e){if(f("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=true,e.readable=false,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy();}}typeof Symbol=="function"&&(p.from=function(r,e){return Yr===void 0&&(Yr=Ai()),Yr(p,r,e)});function Ni(r,e){for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t;return -1}});var et=c((hl,$i)=>{$i.exports=F;var er=q().codes,ja=er.ERR_METHOD_NOT_IMPLEMENTED,Da=er.ERR_MULTIPLE_CALLBACK,Oa=er.ERR_TRANSFORM_ALREADY_TRANSFORMING,La=er.ERR_TRANSFORM_WITH_LENGTH_0,rr=z();K()(F,rr);function Ba(r,e){var t=this._transformState;t.transforming=false;var i=t.writecb;if(i===null)return this.emit("error",new Da);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),i(r);var n=this._readableState;n.reading=false,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark);}function F(r){if(!(this instanceof F))return new F(r);rr.call(this,r),this._transformState={afterTransform:Ba.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=true,this._readableState.sync=false,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",Fa);}function Fa(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,t){Ui(r,e,t);}):Ui(this,null,null);}F.prototype.push=function(r,e){return this._transformState.needTransform=false,rr.prototype.push.call(this,r,e)};F.prototype._transform=function(r,e,t){t(new ja("_transform()"));};F.prototype._write=function(r,e,t){var i=this._transformState;if(i.writecb=t,i.writechunk=r,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark);}};F.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=true,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=true;};F.prototype._destroy=function(r,e){rr.prototype._destroy.call(this,r,function(t){e(t);});};function Ui(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new La;if(r._transformState.transforming)throw new Oa;return r.push(null)}});var Hi=c((pl,Gi)=>{Gi.exports=we;var Wi=et();K()(we,Wi);function we(r){if(!(this instanceof we))return new we(r);Wi.call(this,r);}we.prototype._transform=function(r,e,t){t(null,r);};});var zi=c((gl,Ki)=>{var rt;function Na(r){var e=false;return function(){e||(e=true,r.apply(void 0,arguments));}}var Vi=q().codes,qa=Vi.ERR_MISSING_ARGS,Ua=Vi.ERR_STREAM_DESTROYED;function Ji(r){if(r)throw r}function $a(r){return r.setHeader&&typeof r.abort=="function"}function Wa(r,e,t,i){i=Na(i);var n=false;r.on("close",function(){n=true;}),rt===void 0&&(rt=Ve()),rt(r,{readable:e,writable:t},function(a){if(a)return i(a);n=true,i();});var o=false;return function(a){if(!n&&!o){if(o=true,$a(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();i(a||new Ua("pipe"));}}}function Yi(r){r();}function Ga(r,e){return r.pipe(e)}function Ha(r){return !r.length||typeof r[r.length-1]!="function"?Ji:r.pop()}function Ja(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var i=Ha(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new qa("streams");var n,o=e.map(function(a,s){var l=s<e.length-1,u=s>0;return Wa(a,l,u,function(g){n||(n=g),g&&o.forEach(Yi),!l&&(o.forEach(Yi),i(n));})});return e.reduce(Ga)}Ki.exports=Ja;});var Xi=c((j,Se)=>{var xe=P("stream");process.env.READABLE_STREAM==="disable"&&xe?(Se.exports=xe.Readable,Object.assign(Se.exports,xe),Se.exports.Stream=xe):(j=Se.exports=Nr(),j.Stream=xe||j,j.Readable=j,j.Writable=Lr(),j.Duplex=z(),j.Transform=et(),j.PassThrough=Hi(),j.finished=Ve(),j.pipeline=zi());});var en=c((vl,Qi)=>{var{Buffer:D}=P("buffer"),Zi=Symbol.for("BufferList");function v(r){if(!(this instanceof v))return new v(r);v._init.call(this,r);}v._init=function(e){Object.defineProperty(this,Zi,{value:true}),this._bufs=[],this.length=0,e&&this.append(e);};v.prototype._new=function(e){return new v(e)};v.prototype._offset=function(e){if(e===0)return [0,0];let t=0;for(let i=0;i<this._bufs.length;i++){let n=t+this._bufs[i].length;if(e<n||i===this._bufs.length-1)return [i,e-t];t=n;}};v.prototype._reverseOffset=function(r){let e=r[0],t=r[1];for(let i=0;i<e;i++)t+=this._bufs[i].length;return t};v.prototype.get=function(e){if(e>this.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]};v.prototype.slice=function(e,t){return typeof e=="number"&&e<0&&(e+=this.length),typeof t=="number"&&t<0&&(t+=this.length),this.copy(null,0,e,t)};v.prototype.copy=function(e,t,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||D.alloc(0);let o=!!e,a=this._offset(i),s=n-i,l=s,u=o&&t||0,g=a[1];if(i===0&&n===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:D.concat(this._bufs,this.length);for(let d=0;d<this._bufs.length;d++)this._bufs[d].copy(e,u),u+=this._bufs[d].length;return e}if(l<=this._bufs[a[0]].length-g)return o?this._bufs[a[0]].copy(e,t,g,g+l):this._bufs[a[0]].slice(g,g+l);o||(e=D.allocUnsafe(s));for(let d=a[0];d<this._bufs.length;d++){let m=this._bufs[d].length-g;if(l>m)this._bufs[d].copy(e,u,g),u+=m;else {this._bufs[d].copy(e,u,g,g+l),u+=m;break}l-=m,g&&(g=0);}return e.length>u?e.slice(0,u):e};v.prototype.shallowSlice=function(e,t){if(e=e||0,t=typeof t!="number"?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let i=this._offset(e),n=this._offset(t),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)};v.prototype.toString=function(e,t,i){return this.slice(t,i).toString(e)};v.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else {this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};v.prototype.duplicate=function(){let e=this._new();for(let t=0;t<this._bufs.length;t++)e.append(this._bufs[t]);return e};v.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(D.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let t=0;t<e.length;t++)this.append(e[t]);else if(this._isBufferList(e))for(let t=0;t<e._bufs.length;t++)this.append(e._bufs[t]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(D.from(e));return this};v.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length;};v.prototype.indexOf=function(r,e,t){if(t===void 0&&typeof e=="string"&&(t=e,e=void 0),typeof r=="function"||Array.isArray(r))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof r=="number"?r=D.from([r]):typeof r=="string"?r=D.from(r,t):this._isBufferList(r)?r=r.slice():Array.isArray(r.buffer)?r=D.from(r.buffer,r.byteOffset,r.byteLength):D.isBuffer(r)||(r=D.from(r)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),r.length===0)return e>this.length?this.length:e;let i=this._offset(e),n=i[0],o=i[1];for(;n<this._bufs.length;n++){let a=this._bufs[n];for(;o<a.length;)if(a.length-o>=r.length){let l=a.indexOf(r,o);if(l!==-1)return this._reverseOffset([n,l]);o=a.length-r.length+1;}else {let l=this._reverseOffset([n,o]);if(this._match(l,r))return l;o++;}o=0;}return -1};v.prototype._match=function(r,e){if(this.length-r<e.length)return false;for(let t=0;t<e.length;t++)if(this.get(r+t)!==e[t])return false;return true};(function(){let r={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in r)(function(t){r[t]===null?v.prototype[t]=function(i,n){return this.slice(i,i+n)[t](0,n)}:v.prototype[t]=function(i=0){return this.slice(i,i+r[t])[t](0)};})(e);})();v.prototype._isBufferList=function(e){return e instanceof v||v.isBufferList(e)};v.isBufferList=function(e){return e!=null&&e[Zi]};Qi.exports=v;});var rn=c((ml,tr)=>{var tt=Xi().Duplex,Ya=K(),Ee=en();function C(r){if(!(this instanceof C))return new C(r);if(typeof r=="function"){this._callback=r;let e=function(i){this._callback&&(this._callback(i),this._callback=null);}.bind(this);this.on("pipe",function(i){i.on("error",e);}),this.on("unpipe",function(i){i.removeListener("error",e);}),r=null;}Ee._init.call(this,r),tt.call(this);}Ya(C,tt);Object.assign(C.prototype,Ee.prototype);C.prototype._new=function(e){return new C(e)};C.prototype._write=function(e,t,i){this._appendBuffer(e),typeof i=="function"&&i();};C.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e);};C.prototype.end=function(e){tt.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null);};C.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e);};C.prototype._isBufferList=function(e){return e instanceof C||e instanceof Ee||C.isBufferList(e)};C.isBufferList=Ee.isBufferList;tr.exports=C;tr.exports.BufferListStream=C;tr.exports.BufferList=Ee;});var nn=c((_l,at)=>{var Va=P("readline"),Ka=P("chalk"),tn=Et(),ir=Tt(),nr=Mt(),za=Ot(),Xa=Gt(),Za=Jt(),Qa=Er(),{BufferListStream:es}=rn(),it=Symbol("text"),nt=Symbol("prefixText"),rs=3,ot=class{constructor(){this.requests=0,this.mutedStream=new es,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(t,i,...n){let{stdin:o}=process;if(e.requests>0||o.emit===e.ourEmit){if(t==="keypress")return;t==="data"&&i.includes(rs)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[t,i,...n]);}else Reflect.apply(process.stdin.emit,this,[t,i,...n]);};}start(){this.requests++,this.requests===1&&this.realStart();}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop();}realStart(){process.platform!=="win32"&&(this.rl=Va.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"));}));}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0);}},or,ar=class{constructor(e){or||(or=new ot),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:true,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==false,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Za({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:false,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=false;}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e;}_updateInterval(e){e!==void 0&&(this.interval=e);}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e;}else if(!Qa())this._spinner=ir.line;else if(e===void 0)this._spinner=ir.dots;else if(e!=="default"&&ir[e])this._spinner=ir[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this._updateInterval(this._spinner.interval);}get text(){return this[it]}set text(e){this[it]=e,this.updateLineCount();}get prefixText(){return this[nt]}set prefixText(e){this[nt]=e,this.updateLineCount();}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[nt],t=" "){return typeof e=="string"?e+t:typeof e=="function"?e()+t:""}updateLineCount(){let e=this.stream.columns||80,t=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let i of za(t+"--"+this[it]).split(`
|
|
2
|
+
'use strict';var commander=require('commander'),fs=require('fs'),ue=require('path'),child_process=require('child_process'),url=require('url'),cs=require('prompts'),gr=require('chalk'),zod=require('zod');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var ue__default=/*#__PURE__*/_interopDefault(ue);var cs__default=/*#__PURE__*/_interopDefault(cs);var gr__default=/*#__PURE__*/_interopDefault(gr);var wn=Object.create;var ut=Object.defineProperty;var xn=Object.getOwnPropertyDescriptor;var Sn=Object.getOwnPropertyNames;var En=Object.getPrototypeOf,kn=Object.prototype.hasOwnProperty;var R=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var c=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Rn=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sn(e))!kn.call(r,n)&&n!==t&&ut(r,n,{get:()=>e[n],enumerable:!(i=xn(e,n))||i.enumerable});return r};var Pn=(r,e,t)=>(t=r!=null?wn(En(r)):{},Rn(ut(t,"default",{value:r,enumerable:true}),r));var ht=c((Ds,wr)=>{var dt=(r,e)=>{for(let t of Reflect.ownKeys(e))Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t));return r};wr.exports=dt;wr.exports.default=dt;});var gt=c((Os,je)=>{var Tn=ht(),Me=new WeakMap,pt=(r,e={})=>{if(typeof r!="function")throw new TypeError("Expected a function");let t,i=0,n=r.displayName||r.name||"<anonymous>",o=function(...a){if(Me.set(o,++i),i===1)t=r.apply(this,a),r=null;else if(e.throw===true)throw new Error(`Function \`${n}\` can only be called once`);return t};return Tn(o,r),Me.set(o,i),o};je.exports=pt;je.exports.default=pt;je.exports.callCount=r=>{if(!Me.has(r))throw new Error(`The given function \`${r.name}\` is not wrapped by the \`onetime\` package`);return Me.get(r)};});var vt=c((Ls,De)=>{De.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&De.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&De.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");});var wt=c((Bs,oe)=>{var _=global.process,Y=function(r){return r&&typeof r=="object"&&typeof r.removeListener=="function"&&typeof r.emit=="function"&&typeof r.reallyExit=="function"&&typeof r.listeners=="function"&&typeof r.kill=="function"&&typeof r.pid=="number"&&typeof r.on=="function"};Y(_)?(mt=R("assert"),ie=vt(),_t=/^win/i.test(_.platform),he=R("events"),typeof he!="function"&&(he=he.EventEmitter),_.__signal_exit_emitter__?k=_.__signal_exit_emitter__:(k=_.__signal_exit_emitter__=new he,k.count=0,k.emitted={}),k.infinite||(k.setMaxListeners(1/0),k.infinite=true),oe.exports=function(r,e){if(!Y(global.process))return function(){};mt.equal(typeof r,"function","a callback must be provided for exit handler"),ne===false&&xr();var t="exit";e&&e.alwaysLast&&(t="afterexit");var i=function(){k.removeListener(t,r),k.listeners("exit").length===0&&k.listeners("afterexit").length===0&&Oe();};return k.on(t,r),i},Oe=function(){!ne||!Y(global.process)||(ne=false,ie.forEach(function(e){try{_.removeListener(e,Le[e]);}catch{}}),_.emit=Be,_.reallyExit=Sr,k.count-=1);},oe.exports.unload=Oe,V=function(e,t,i){k.emitted[e]||(k.emitted[e]=true,k.emit(e,t,i));},Le={},ie.forEach(function(r){Le[r]=function(){if(Y(global.process)){var t=_.listeners(r);t.length===k.count&&(Oe(),V("exit",null,r),V("afterexit",null,r),_t&&r==="SIGHUP"&&(r="SIGINT"),_.kill(_.pid,r));}};}),oe.exports.signals=function(){return ie},ne=false,xr=function(){ne||!Y(global.process)||(ne=true,k.count+=1,ie=ie.filter(function(e){try{return _.on(e,Le[e]),!0}catch{return false}}),_.emit=yt,_.reallyExit=bt);},oe.exports.load=xr,Sr=_.reallyExit,bt=function(e){Y(global.process)&&(_.exitCode=e||0,V("exit",_.exitCode,null),V("afterexit",_.exitCode,null),Sr.call(_,_.exitCode));},Be=_.emit,yt=function(e,t){if(e==="exit"&&Y(global.process)){t!==void 0&&(_.exitCode=t);var i=Be.apply(this,arguments);return V("exit",_.exitCode,null),V("afterexit",_.exitCode,null),i}else return Be.apply(this,arguments)}):oe.exports=function(){return function(){}};var mt,ie,_t,he,k,Oe,V,Le,ne,xr,Sr,bt,Be,yt;});var St=c((Fs,xt)=>{var Cn=gt(),An=wt();xt.exports=Cn(()=>{An(()=>{process.stderr.write("\x1B[?25h");},{alwaysLast:true});});});var Et=c(ae=>{var In=St(),Fe=false;ae.show=(r=process.stderr)=>{r.isTTY&&(Fe=false,r.write("\x1B[?25h"));};ae.hide=(r=process.stderr)=>{r.isTTY&&(In(),Fe=true,r.write("\x1B[?25l"));};ae.toggle=(r,e)=>{r!==void 0&&(Fe=r),Fe?ae.show(e):ae.hide(e);};});var kt=c((qs,Mn)=>{Mn.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}};});var Tt=c((Us,Pt)=>{var Ne=Object.assign({},kt()),Rt=Object.keys(Ne);Object.defineProperty(Ne,"random",{get(){let r=Math.floor(Math.random()*Rt.length),e=Rt[r];return Ne[e]}});Pt.exports=Ne;});var Er=c(($s,Ct)=>{Ct.exports=()=>process.platform!=="win32"?true:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty";});var It=c((Ws,At)=>{var N=R("chalk"),jn=Er(),Dn={info:N.blue("\u2139"),success:N.green("\u2714"),warning:N.yellow("\u26A0"),error:N.red("\u2716")},On={info:N.blue("i"),success:N.green("\u221A"),warning:N.yellow("\u203C"),error:N.red("\xD7")};At.exports=jn()?Dn:On;});var jt=c((Gs,Mt)=>{Mt.exports=({onlyFirst:r=false}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,r?void 0:"g")};});var Ot=c((Hs,Dt)=>{var Ln=jt();Dt.exports=r=>typeof r=="string"?r.replace(Ln(),""):r;});var Lt=c((Js,qe)=>{var Bn=(function(){function r(a,s,l,u){typeof s=="object"&&(l=s.depth,u=s.prototype,s.filter,s=s.circular);var d=[],m=[],y=typeof Buffer<"u";typeof s>"u"&&(s=true),typeof l>"u"&&(l=1/0);function T(h,I){if(h===null)return null;if(I==0)return h;var w,B;if(typeof h!="object")return h;if(r.__isArray(h))w=[];else if(r.__isRegExp(h))w=new RegExp(h.source,o(h)),h.lastIndex&&(w.lastIndex=h.lastIndex);else if(r.__isDate(h))w=new Date(h.getTime());else {if(y&&Buffer.isBuffer(h))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(h.length):w=new Buffer(h.length),h.copy(w),w;typeof u>"u"?(B=Object.getPrototypeOf(h),w=Object.create(B)):(w=Object.create(u),B=u);}if(s){var Ie=d.indexOf(h);if(Ie!=-1)return m[Ie];d.push(h),m.push(w);}for(var br in h){var yr;B&&(yr=Object.getOwnPropertyDescriptor(B,br)),!(yr&&yr.set==null)&&(w[br]=T(h[br],I-1));}return w}return T(a,l)}r.clonePrototype=function(s){if(s===null)return null;var l=function(){};return l.prototype=s,new l};function e(a){return Object.prototype.toString.call(a)}r.__objToStr=e;function t(a){return typeof a=="object"&&e(a)==="[object Date]"}r.__isDate=t;function i(a){return typeof a=="object"&&e(a)==="[object Array]"}r.__isArray=i;function n(a){return typeof a=="object"&&e(a)==="[object RegExp]"}r.__isRegExp=n;function o(a){var s="";return a.global&&(s+="g"),a.ignoreCase&&(s+="i"),a.multiline&&(s+="m"),s}return r.__getRegExpFlags=o,r})();typeof qe=="object"&&qe.exports&&(qe.exports=Bn);});var Ft=c((Ys,Bt)=>{var Fn=Lt();Bt.exports=function(r,e){return r=r||{},Object.keys(e).forEach(function(t){typeof r[t]>"u"&&(r[t]=Fn(e[t]));}),r};});var qt=c((Vs,Nt)=>{Nt.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 Gt=c((Ks,kr)=>{var Nn=Ft(),pe=qt(),$t={nul:0,control:0};kr.exports=function(e){return Wt(e,$t)};kr.exports.config=function(r){return r=Nn(r||{},$t),function(t){return Wt(t,r)}};function Wt(r,e){if(typeof r!="string")return Ut(r,e);for(var t=0,i=0;i<r.length;i++){var n=Ut(r.charCodeAt(i),e);if(n<0)return -1;t+=n;}return t}function Ut(r,e){return r===0?e.nul:r<32||r>=127&&r<160?e.control:qn(r)?0:1+(r>=4352&&(r<=4447||r==9001||r==9002||r>=11904&&r<=42191&&r!=12351||r>=44032&&r<=55203||r>=63744&&r<=64255||r>=65040&&r<=65049||r>=65072&&r<=65135||r>=65280&&r<=65376||r>=65504&&r<=65510||r>=131072&&r<=196605||r>=196608&&r<=262141))}function qn(r){var e=0,t=pe.length-1,i;if(r<pe[0][0]||r>pe[t][1])return false;for(;t>=e;)if(i=Math.floor((e+t)/2),r>pe[i][1])e=i+1;else if(r<pe[i][0])t=i-1;else return true;return false}});var Jt=c((zs,Ht)=>{Ht.exports=({stream:r=process.stdout}={})=>!!(r&&r.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env));});var Rr=c((Xs,Yt)=>{Yt.exports=R("stream");});var Qt=c((Zs,Zt)=>{function Vt(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i);}return t}function Kt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Vt(Object(t),true).forEach(function(i){Un(r,i,t[i]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Vt(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i));});}return r}function Un(r,e,t){return e=Xt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:true,configurable:true,writable:true}):r[e]=t,r}function $n(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function zt(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||false,i.configurable=true,"value"in i&&(i.writable=true),Object.defineProperty(r,Xt(i.key),i);}}function Wn(r,e,t){return e&&zt(r.prototype,e),Object.defineProperty(r,"prototype",{writable:false}),r}function Xt(r){var e=Gn(r,"string");return typeof e=="symbol"?e:String(e)}function Gn(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (String)(r)}var Hn=R("buffer"),Ue=Hn.Buffer,Jn=R("util"),Pr=Jn.inspect,Yn=Pr&&Pr.custom||"inspect";function Vn(r,e,t){Ue.prototype.copy.call(r,e,t);}Zt.exports=(function(){function r(){$n(this,r),this.head=null,this.tail=null,this.length=0;}return Wn(r,[{key:"push",value:function(t){var i={data:t,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length;}},{key:"unshift",value:function(t){var i={data:t,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length;}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0;}},{key:"join",value:function(t){if(this.length===0)return "";for(var i=this.head,n=""+i.data;i=i.next;)n+=t+i.data;return n}},{key:"concat",value:function(t){if(this.length===0)return Ue.alloc(0);for(var i=Ue.allocUnsafe(t>>>0),n=this.head,o=0;n;)Vn(n.data,i,o),o+=n.data.length,n=n.next;return i}},{key:"consume",value:function(t,i){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?n=this.shift():n=i?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var i=this.head,n=1,o=i.data;for(t-=o.length;i=i.next;){var a=i.data,s=t>a.length?a.length:t;if(s===a.length?o+=a:o+=a.slice(0,t),t-=s,t===0){s===a.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(s));break}++n;}return this.length-=n,o}},{key:"_getBuffer",value:function(t){var i=Ue.allocUnsafe(t),n=this.head,o=1;for(n.data.copy(i),t-=n.data.length;n=n.next;){var a=n.data,s=t>a.length?a.length:t;if(a.copy(i,i.length-t,0,s),t-=s,t===0){s===a.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(s));break}++o;}return this.length-=o,i}},{key:Yn,value:function(t,i){return Pr(this,Kt(Kt({},i),{},{depth:0,customInspect:false}))}}]),r})();});var Cr=c((Qs,ri)=>{function Kn(r,e){var t=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=true,process.nextTick(Tr,this,r)):process.nextTick(Tr,this,r)),this):(this._readableState&&(this._readableState.destroyed=true),this._writableState&&(this._writableState.destroyed=true),this._destroy(r||null,function(o){!e&&o?t._writableState?t._writableState.errorEmitted?process.nextTick($e,t):(t._writableState.errorEmitted=true,process.nextTick(ei,t,o)):process.nextTick(ei,t,o):e?(process.nextTick($e,t),e(o)):process.nextTick($e,t);}),this)}function ei(r,e){Tr(r,e),$e(r);}function $e(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close");}function zn(){this._readableState&&(this._readableState.destroyed=false,this._readableState.reading=false,this._readableState.ended=false,this._readableState.endEmitted=false),this._writableState&&(this._writableState.destroyed=false,this._writableState.ended=false,this._writableState.ending=false,this._writableState.finalCalled=false,this._writableState.prefinished=false,this._writableState.finished=false,this._writableState.errorEmitted=false);}function Tr(r,e){r.emit("error",e);}function Xn(r,e){var t=r._readableState,i=r._writableState;t&&t.autoDestroy||i&&i.autoDestroy?r.destroy(e):r.emit("error",e);}ri.exports={destroy:Kn,undestroy:zn,errorOrDestroy:Xn};});var q=c((el,ni)=>{var ii={};function M(r,e,t){t||(t=Error);function i(o,a,s){return typeof e=="string"?e:e(o,a,s)}class n extends t{constructor(a,s,l){super(i(a,s,l));}}n.prototype.name=t.name,n.prototype.code=r,ii[r]=n;}function ti(r,e){if(Array.isArray(r)){let t=r.length;return r=r.map(i=>String(i)),t>2?`one of ${e} ${r.slice(0,t-1).join(", ")}, or `+r[t-1]:t===2?`one of ${e} ${r[0]} or ${r[1]}`:`of ${e} ${r[0]}`}else return `of ${e} ${String(r)}`}function Zn(r,e,t){return r.substr(0,e.length)===e}function Qn(r,e,t){return (t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function eo(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?false:r.indexOf(e,t)!==-1}M("ERR_INVALID_OPT_VALUE",function(r,e){return 'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);M("ERR_INVALID_ARG_TYPE",function(r,e,t){let i;typeof e=="string"&&Zn(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let n;if(Qn(r," argument"))n=`The ${r} ${i} ${ti(e,"type")}`;else {let o=eo(r,".")?"property":"argument";n=`The "${r}" ${o} ${i} ${ti(e,"type")}`;}return n+=`. Received type ${typeof t}`,n},TypeError);M("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");M("ERR_METHOD_NOT_IMPLEMENTED",function(r){return "The "+r+" method is not implemented"});M("ERR_STREAM_PREMATURE_CLOSE","Premature close");M("ERR_STREAM_DESTROYED",function(r){return "Cannot call "+r+" after a stream was destroyed"});M("ERR_MULTIPLE_CALLBACK","Callback called multiple times");M("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");M("ERR_STREAM_WRITE_AFTER_END","write after end");M("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);M("ERR_UNKNOWN_ENCODING",function(r){return "Unknown encoding: "+r},TypeError);M("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ni.exports.codes=ii;});var Ar=c((rl,oi)=>{var ro=q().codes.ERR_INVALID_OPT_VALUE;function to(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function io(r,e,t,i){var n=to(e,i,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var o=i?t:"highWaterMark";throw new ro(o,n)}return Math.floor(n)}return r.objectMode?16:16*1024}oi.exports={getHighWaterMark:io};});var ai=c((tl,Ir)=>{typeof Object.create=="function"?Ir.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}}));}:Ir.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e;}};});var K=c((il,jr)=>{try{if(Mr=R("util"),typeof Mr.inherits!="function")throw "";jr.exports=Mr.inherits;}catch{jr.exports=ai();}var Mr;});var li=c((nl,si)=>{si.exports=R("util").deprecate;});var Lr=c((ol,pi)=>{pi.exports=b;function fi(r){var e=this;this.next=null,this.entry=null,this.finish=function(){Io(e,r);};}var se;b.WritableState=ve;var no={deprecate:li()},ui=Rr(),Ge=R("buffer").Buffer,oo=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ao(r){return Ge.from(r)}function so(r){return Ge.isBuffer(r)||r instanceof oo}var Or=Cr(),lo=Ar(),co=lo.getHighWaterMark,U=q().codes,fo=U.ERR_INVALID_ARG_TYPE,uo=U.ERR_METHOD_NOT_IMPLEMENTED,ho=U.ERR_MULTIPLE_CALLBACK,po=U.ERR_STREAM_CANNOT_PIPE,go=U.ERR_STREAM_DESTROYED,vo=U.ERR_STREAM_NULL_VALUES,mo=U.ERR_STREAM_WRITE_AFTER_END,_o=U.ERR_UNKNOWN_ENCODING,le=Or.errorOrDestroy;K()(b,ui);function bo(){}function ve(r,e,t){se=se||z(),r=r||{},typeof t!="boolean"&&(t=e instanceof se),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=co(this,r,"writableHighWaterMark",t),this.finalCalled=false,this.needDrain=false,this.ending=false,this.ended=false,this.finished=false,this.destroyed=false;var i=r.decodeStrings===false;this.decodeStrings=!i,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=false,this.corked=0,this.sync=true,this.bufferProcessing=false,this.onwrite=function(n){Ro(e,n);},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=false,this.errorEmitted=false,this.emitClose=r.emitClose!==false,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new fi(this);}ve.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(ve.prototype,"buffer",{get:no.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")});}catch{}})();var We;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(We=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return We.call(this,e)?true:this!==b?false:e&&e._writableState instanceof ve}})):We=function(e){return e instanceof this};function b(r){se=se||z();var e=this instanceof se;if(!e&&!We.call(b,this))return new b(r);this._writableState=new ve(r,this,e),this.writable=true,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),ui.call(this);}b.prototype.pipe=function(){le(this,new po);};function yo(r,e){var t=new mo;le(r,t),process.nextTick(e,t);}function wo(r,e,t,i){var n;return t===null?n=new vo:typeof t!="string"&&!e.objectMode&&(n=new fo("chunk",["string","Buffer"],t)),n?(le(r,n),process.nextTick(i,n),false):true}b.prototype.write=function(r,e,t){var i=this._writableState,n=false,o=!i.objectMode&&so(r);return o&&!Ge.isBuffer(r)&&(r=ao(r)),typeof e=="function"&&(t=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),typeof t!="function"&&(t=bo),i.ending?yo(this,t):(o||wo(this,i,r,t))&&(i.pendingcb++,n=So(this,i,o,r,e,t)),n};b.prototype.cork=function(){this._writableState.corked++;};b.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&di(this,r));};b.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _o(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(b.prototype,"writableBuffer",{enumerable:false,get:function(){return this._writableState&&this._writableState.getBuffer()}});function xo(r,e,t){return !r.objectMode&&r.decodeStrings!==false&&typeof e=="string"&&(e=Ge.from(e,t)),e}Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function So(r,e,t,i,n,o){if(!t){var a=xo(e,i,n);i!==a&&(t=true,n="buffer",i=a);}var s=e.objectMode?1:i.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=true),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:t,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1;}else Dr(r,e,false,s,i,n,o);return l}function Dr(r,e,t,i,n,o,a){e.writelen=i,e.writecb=a,e.writing=true,e.sync=true,e.destroyed?e.onwrite(new go("write")):t?r._writev(n,e.onwrite):r._write(n,o,e.onwrite),e.sync=false;}function Eo(r,e,t,i,n){--e.pendingcb,t?(process.nextTick(n,i),process.nextTick(ge,r,e),r._writableState.errorEmitted=true,le(r,i)):(n(i),r._writableState.errorEmitted=true,le(r,i),ge(r,e));}function ko(r){r.writing=false,r.writecb=null,r.length-=r.writelen,r.writelen=0;}function Ro(r,e){var t=r._writableState,i=t.sync,n=t.writecb;if(typeof n!="function")throw new ho;if(ko(t),e)Eo(r,t,i,e,n);else {var o=hi(t)||r.destroyed;!o&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&di(r,t),i?process.nextTick(ci,r,t,o,n):ci(r,t,o,n);}}function ci(r,e,t,i){t||Po(r,e),e.pendingcb--,i(),ge(r,e);}function Po(r,e){e.length===0&&e.needDrain&&(e.needDrain=false,r.emit("drain"));}function di(r,e){e.bufferProcessing=true;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var i=e.bufferedRequestCount,n=new Array(i),o=e.corkedRequestsFree;o.entry=t;for(var a=0,s=true;t;)n[a]=t,t.isBuf||(s=false),t=t.next,a+=1;n.allBuffers=s,Dr(r,e,true,e.length,n,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new fi(e),e.bufferedRequestCount=0;}else {for(;t;){var l=t.chunk,u=t.encoding,g=t.callback,d=e.objectMode?1:l.length;if(Dr(r,e,false,d,l,u,g),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null);}e.bufferedRequest=t,e.bufferProcessing=false;}b.prototype._write=function(r,e,t){t(new uo("_write()"));};b.prototype._writev=null;b.prototype.end=function(r,e,t){var i=this._writableState;return typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),i.corked&&(i.corked=1,this.uncork()),i.ending||Ao(this,i,t),this};Object.defineProperty(b.prototype,"writableLength",{enumerable:false,get:function(){return this._writableState.length}});function hi(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function To(r,e){r._final(function(t){e.pendingcb--,t&&le(r,t),e.prefinished=true,r.emit("prefinish"),ge(r,e);});}function Co(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=true,process.nextTick(To,r,e)):(e.prefinished=true,r.emit("prefinish")));}function ge(r,e){var t=hi(e);if(t&&(Co(r,e),e.pendingcb===0&&(e.finished=true,r.emit("finish"),e.autoDestroy))){var i=r._readableState;(!i||i.autoDestroy&&i.endEmitted)&&r.destroy();}return t}function Ao(r,e,t){e.ending=true,ge(r,e),t&&(e.finished?process.nextTick(t):r.once("finish",t)),e.ended=true,r.writable=false;}function Io(r,e,t){var i=r.entry;for(r.entry=null;i;){var n=i.callback;e.pendingcb--,n(t),i=i.next;}e.corkedRequestsFree.next=r;}Object.defineProperty(b.prototype,"destroyed",{enumerable:false,get:function(){return this._writableState===void 0?false:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e);}});b.prototype.destroy=Or.destroy;b.prototype._undestroy=Or.undestroy;b.prototype._destroy=function(r,e){e(r);};});var z=c((al,vi)=>{var Mo=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};vi.exports=O;var gi=Nr(),Fr=Lr();K()(O,gi);for(Br=Mo(Fr.prototype),He=0;He<Br.length;He++)Je=Br[He],O.prototype[Je]||(O.prototype[Je]=Fr.prototype[Je]);var Br,Je,He;function O(r){if(!(this instanceof O))return new O(r);gi.call(this,r),Fr.call(this,r),this.allowHalfOpen=true,r&&(r.readable===false&&(this.readable=false),r.writable===false&&(this.writable=false),r.allowHalfOpen===false&&(this.allowHalfOpen=false,this.once("end",jo)));}Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(O.prototype,"writableBuffer",{enumerable:false,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(O.prototype,"writableLength",{enumerable:false,get:function(){return this._writableState.length}});function jo(){this._writableState.ended||process.nextTick(Do,this);}function Do(r){r.end();}Object.defineProperty(O.prototype,"destroyed",{enumerable:false,get:function(){return this._readableState===void 0||this._writableState===void 0?false:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e);}});});var bi=c((qr,_i)=>{var Ye=R("buffer"),L=Ye.Buffer;function mi(r,e){for(var t in r)e[t]=r[t];}L.from&&L.alloc&&L.allocUnsafe&&L.allocUnsafeSlow?_i.exports=Ye:(mi(Ye,qr),qr.Buffer=X);function X(r,e,t){return L(r,e,t)}X.prototype=Object.create(L.prototype);mi(L,X);X.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return L(r,e,t)};X.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var i=L(r);return e!==void 0?typeof t=="string"?i.fill(e,t):i.fill(e):i.fill(0),i};X.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return L(r)};X.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Ye.SlowBuffer(r)};});var Wr=c(wi=>{var $r=bi().Buffer,yi=$r.isEncoding||function(r){switch(r=""+r,r&&r.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 true;default:return false}};function Oo(r){if(!r)return "utf8";for(var e;;)switch(r){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 r;default:if(e)return;r=(""+r).toLowerCase(),e=true;}}function Lo(r){var e=Oo(r);if(typeof e!="string"&&($r.isEncoding===yi||!yi(r)))throw new Error("Unknown encoding: "+r);return e||r}wi.StringDecoder=me;function me(r){this.encoding=Lo(r);var e;switch(this.encoding){case "utf16le":this.text=$o,this.end=Wo,e=4;break;case "utf8":this.fillLast=No,e=4;break;case "base64":this.text=Go,this.end=Ho,e=3;break;default:this.write=Jo,this.end=Yo;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$r.allocUnsafe(e);}me.prototype.write=function(r){if(r.length===0)return "";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return "";t=this.lastNeed,this.lastNeed=0;}else t=0;return t<r.length?e?e+this.text(r,t):this.text(r,t):e||""};me.prototype.end=Uo;me.prototype.text=qo;me.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length;};function Ur(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function Bo(r,e,t){var i=e.length-1;if(i<t)return 0;var n=Ur(e[i]);return n>=0?(n>0&&(r.lastNeed=n-1),n):--i<t||n===-2?0:(n=Ur(e[i]),n>=0?(n>0&&(r.lastNeed=n-2),n):--i<t||n===-2?0:(n=Ur(e[i]),n>=0?(n>0&&(n===2?n=0:r.lastNeed=n-3),n):0))}function Fo(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function No(r){var e=this.lastTotal-this.lastNeed,t=Fo(this,r);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length;}function qo(r,e){var t=Bo(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var i=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,i),r.toString("utf8",e,i)}function Uo(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function $o(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var i=t.charCodeAt(t.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function Wo(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function Go(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function Ho(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Jo(r){return r.toString(this.encoding)}function Yo(r){return r&&r.length?this.write(r):""}});var Ve=c((ll,Ei)=>{var xi=q().codes.ERR_STREAM_PREMATURE_CLOSE;function Vo(r){var e=false;return function(){if(!e){e=true;for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];r.apply(this,i);}}}function Ko(){}function zo(r){return r.setHeader&&typeof r.abort=="function"}function Si(r,e,t){if(typeof e=="function")return Si(r,null,e);e||(e={}),t=Vo(t||Ko);var i=e.readable||e.readable!==false&&r.readable,n=e.writable||e.writable!==false&&r.writable,o=function(){r.writable||s();},a=r._writableState&&r._writableState.finished,s=function(){n=false,a=true,i||t.call(r);},l=r._readableState&&r._readableState.endEmitted,u=function(){i=false,l=true,n||t.call(r);},g=function(T){t.call(r,T);},d=function(){var T;if(i&&!l)return (!r._readableState||!r._readableState.ended)&&(T=new xi),t.call(r,T);if(n&&!a)return (!r._writableState||!r._writableState.ended)&&(T=new xi),t.call(r,T)},m=function(){r.req.on("finish",s);};return zo(r)?(r.on("complete",s),r.on("abort",d),r.req?m():r.on("request",m)):n&&!r._writableState&&(r.on("end",o),r.on("close",o)),r.on("end",u),r.on("finish",s),e.error!==false&&r.on("error",g),r.on("close",d),function(){r.removeListener("complete",s),r.removeListener("abort",d),r.removeListener("request",m),r.req&&r.req.removeListener("finish",s),r.removeListener("end",o),r.removeListener("close",o),r.removeListener("finish",s),r.removeListener("end",u),r.removeListener("error",g),r.removeListener("close",d);}}Ei.exports=Si;});var Ri=c((cl,ki)=>{var Ke;function $(r,e,t){return e=Xo(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:true,configurable:true,writable:true}):r[e]=t,r}function Xo(r){var e=Zo(r,"string");return typeof e=="symbol"?e:String(e)}function Zo(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}var Qo=Ve(),W=Symbol("lastResolve"),Z=Symbol("lastReject"),_e=Symbol("error"),ze=Symbol("ended"),Q=Symbol("lastPromise"),Gr=Symbol("handlePromise"),ee=Symbol("stream");function G(r,e){return {value:r,done:e}}function ea(r){var e=r[W];if(e!==null){var t=r[ee].read();t!==null&&(r[Q]=null,r[W]=null,r[Z]=null,e(G(t,false)));}}function ra(r){process.nextTick(ea,r);}function ta(r,e){return function(t,i){r.then(function(){if(e[ze]){t(G(void 0,true));return}e[Gr](t,i);},i);}}var ia=Object.getPrototypeOf(function(){}),na=Object.setPrototypeOf((Ke={get stream(){return this[ee]},next:function(){var e=this,t=this[_e];if(t!==null)return Promise.reject(t);if(this[ze])return Promise.resolve(G(void 0,true));if(this[ee].destroyed)return new Promise(function(a,s){process.nextTick(function(){e[_e]?s(e[_e]):a(G(void 0,true));});});var i=this[Q],n;if(i)n=new Promise(ta(i,this));else {var o=this[ee].read();if(o!==null)return Promise.resolve(G(o,false));n=new Promise(this[Gr]);}return this[Q]=n,n}},$(Ke,Symbol.asyncIterator,function(){return this}),$(Ke,"return",function(){var e=this;return new Promise(function(t,i){e[ee].destroy(null,function(n){if(n){i(n);return}t(G(void 0,true));});})}),Ke),ia),oa=function(e){var t,i=Object.create(na,(t={},$(t,ee,{value:e,writable:true}),$(t,W,{value:null,writable:true}),$(t,Z,{value:null,writable:true}),$(t,_e,{value:null,writable:true}),$(t,ze,{value:e._readableState.endEmitted,writable:true}),$(t,Gr,{value:function(o,a){var s=i[ee].read();s?(i[Q]=null,i[W]=null,i[Z]=null,o(G(s,false))):(i[W]=o,i[Z]=a);},writable:true}),t));return i[Q]=null,Qo(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[Z];o!==null&&(i[Q]=null,i[W]=null,i[Z]=null,o(n)),i[_e]=n;return}var a=i[W];a!==null&&(i[Q]=null,i[W]=null,i[Z]=null,a(G(void 0,true))),i[ze]=true;}),e.on("readable",ra.bind(null,i)),i};ki.exports=oa;});var Ai=c((fl,Ci)=>{function Pi(r,e,t,i,n,o,a){try{var s=r[o](a),l=s.value;}catch(u){t(u);return}s.done?e(l):Promise.resolve(l).then(i,n);}function aa(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var o=r.apply(e,t);function a(l){Pi(o,i,n,a,s,"next",l);}function s(l){Pi(o,i,n,a,s,"throw",l);}a(void 0);})}}function Ti(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i);}return t}function sa(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ti(Object(t),true).forEach(function(i){la(r,i,t[i]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ti(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i));});}return r}function la(r,e,t){return e=ca(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:true,configurable:true,writable:true}):r[e]=t,r}function ca(r){var e=fa(r,"string");return typeof e=="symbol"?e:String(e)}function fa(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}var ua=q().codes.ERR_INVALID_ARG_TYPE;function da(r,e,t){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new ua("iterable",["Iterable"],e);var n=new r(sa({objectMode:true},t)),o=false;n._read=function(){o||(o=true,a());};function a(){return s.apply(this,arguments)}function s(){return s=aa(function*(){try{var l=yield i.next(),u=l.value,g=l.done;g?n.push(null):n.push(yield u)?a():o=!1;}catch(d){n.destroy(d);}}),s.apply(this,arguments)}return n}Ci.exports=da;});var Nr=c((dl,qi)=>{qi.exports=p;var ce;p.ReadableState=Di;R("events").EventEmitter;var ji=function(e,t){return e.listeners(t).length},ye=Rr(),Xe=R("buffer").Buffer,ha=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function pa(r){return Xe.from(r)}function ga(r){return Xe.isBuffer(r)||r instanceof ha}var Hr=R("util"),f;Hr&&Hr.debuglog?f=Hr.debuglog("stream"):f=function(){};var va=Qt(),Zr=Cr(),ma=Ar(),_a=ma.getHighWaterMark,Ze=q().codes,ba=Ze.ERR_INVALID_ARG_TYPE,ya=Ze.ERR_STREAM_PUSH_AFTER_EOF,wa=Ze.ERR_METHOD_NOT_IMPLEMENTED,xa=Ze.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,fe,Jr,Yr;K()(p,ye);var be=Zr.errorOrDestroy,Vr=["error","close","destroy","pause","resume"];function Sa(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]];}function Di(r,e,t){ce=ce||z(),r=r||{},typeof t!="boolean"&&(t=e instanceof ce),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=_a(this,r,"readableHighWaterMark",t),this.buffer=new va,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=false,this.endEmitted=false,this.reading=false,this.sync=true,this.needReadable=false,this.emittedReadable=false,this.readableListening=false,this.resumeScheduled=false,this.paused=true,this.emitClose=r.emitClose!==false,this.autoDestroy=!!r.autoDestroy,this.destroyed=false,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=false,this.decoder=null,this.encoding=null,r.encoding&&(fe||(fe=Wr().StringDecoder),this.decoder=new fe(r.encoding),this.encoding=r.encoding);}function p(r){if(ce=ce||z(),!(this instanceof p))return new p(r);var e=this instanceof ce;this._readableState=new Di(r,this,e),this.readable=true,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),ye.call(this);}Object.defineProperty(p.prototype,"destroyed",{enumerable:false,get:function(){return this._readableState===void 0?false:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e);}});p.prototype.destroy=Zr.destroy;p.prototype._undestroy=Zr.undestroy;p.prototype._destroy=function(r,e){e(r);};p.prototype.push=function(r,e){var t=this._readableState,i;return t.objectMode?i=true:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=Xe.from(r,e),e=""),i=true),Oi(this,r,e,false,i)};p.prototype.unshift=function(r){return Oi(this,r,null,true,false)};function Oi(r,e,t,i,n){f("readableAddChunk",e);var o=r._readableState;if(e===null)o.reading=false,Ra(r,o);else {var a;if(n||(a=Ea(o,e)),a)be(r,a);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==Xe.prototype&&(e=pa(e)),i)o.endEmitted?be(r,new xa):Kr(r,o,e,true);else if(o.ended)be(r,new ya);else {if(o.destroyed)return false;o.reading=false,o.decoder&&!t?(e=o.decoder.write(e),o.objectMode||e.length!==0?Kr(r,o,e,false):Xr(r,o)):Kr(r,o,e,false);}else i||(o.reading=false,Xr(r,o));}return !o.ended&&(o.length<o.highWaterMark||o.length===0)}function Kr(r,e,t,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,i?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&Qe(r)),Xr(r,e);}function Ea(r,e){var t;return !ga(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new ba("chunk",["string","Buffer","Uint8Array"],e)),t}p.prototype.isPaused=function(){return this._readableState.flowing===false};p.prototype.setEncoding=function(r){fe||(fe=Wr().StringDecoder);var e=new fe(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,i="";t!==null;)i+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Ii=1073741824;function ka(r){return r>=Ii?r=Ii:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function Mi(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=ka(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=true,0))}p.prototype.read=function(r){f("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=false),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return f("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?zr(this):Qe(this),null;if(r=Mi(r,e),r===0&&e.ended)return e.length===0&&zr(this),null;var i=e.needReadable;f("need readable",i),(e.length===0||e.length-r<e.highWaterMark)&&(i=true,f("length less than watermark",i)),e.ended||e.reading?(i=false,f("reading or ended",i)):i&&(f("do read"),e.reading=true,e.sync=true,e.length===0&&(e.needReadable=true),this._read(e.highWaterMark),e.sync=false,e.reading||(r=Mi(t,e)));var n;return r>0?n=Fi(r,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=true),t!==r&&e.ended&&zr(this)),n!==null&&this.emit("data",n),n};function Ra(r,e){if(f("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length);}e.ended=true,e.sync?Qe(r):(e.needReadable=false,e.emittedReadable||(e.emittedReadable=true,Li(r)));}}function Qe(r){var e=r._readableState;f("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=false,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=true,process.nextTick(Li,r));}function Li(r){var e=r._readableState;f("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=false),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Qr(r);}function Xr(r,e){e.readingMore||(e.readingMore=true,process.nextTick(Pa,r,e));}function Pa(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if(f("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=false;}p.prototype._read=function(r){be(this,new wa("_read()"));};p.prototype.pipe=function(r,e){var t=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=r;break;case 1:i.pipes=[i.pipes,r];break;default:i.pipes.push(r);break}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==false)&&r!==process.stdout&&r!==process.stderr,o=n?s:h;i.endEmitted?process.nextTick(o):t.once("end",o),r.on("unpipe",a);function a(I,w){f("onunpipe"),I===t&&w&&w.hasUnpiped===false&&(w.hasUnpiped=true,g());}function s(){f("onend"),r.end();}var l=Ta(t);r.on("drain",l);var u=false;function g(){f("cleanup"),r.removeListener("close",y),r.removeListener("finish",T),r.removeListener("drain",l),r.removeListener("error",m),r.removeListener("unpipe",a),t.removeListener("end",s),t.removeListener("end",h),t.removeListener("data",d),u=true,i.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&l();}t.on("data",d);function d(I){f("ondata");var w=r.write(I);f("dest.write",w),w===false&&((i.pipesCount===1&&i.pipes===r||i.pipesCount>1&&Ni(i.pipes,r)!==-1)&&!u&&(f("false write response, pause",i.awaitDrain),i.awaitDrain++),t.pause());}function m(I){f("onerror",I),h(),r.removeListener("error",m),ji(r,"error")===0&&be(r,I);}Sa(r,"error",m);function y(){r.removeListener("finish",T),h();}r.once("close",y);function T(){f("onfinish"),r.removeListener("close",y),h();}r.once("finish",T);function h(){f("unpipe"),t.unpipe(r);}return r.emit("pipe",t),i.flowing||(f("pipe resume"),t.resume()),r};function Ta(r){return function(){var t=r._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&ji(r,"data")&&(t.flowing=true,Qr(r));}}p.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:false};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=false,r&&r.emit("unpipe",this,t),this);if(!r){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=false;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:false});return this}var a=Ni(e.pipes,r);return a===-1?this:(e.pipes.splice(a,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};p.prototype.on=function(r,e){var t=ye.prototype.on.call(this,r,e),i=this._readableState;return r==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==false&&this.resume()):r==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=true,i.flowing=false,i.emittedReadable=false,f("on readable",i.length,i.reading),i.length?Qe(this):i.reading||process.nextTick(Ca,this)),t};p.prototype.addListener=p.prototype.on;p.prototype.removeListener=function(r,e){var t=ye.prototype.removeListener.call(this,r,e);return r==="readable"&&process.nextTick(Bi,this),t};p.prototype.removeAllListeners=function(r){var e=ye.prototype.removeAllListeners.apply(this,arguments);return (r==="readable"||r===void 0)&&process.nextTick(Bi,this),e};function Bi(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=true:r.listenerCount("data")>0&&r.resume();}function Ca(r){f("readable nexttick read 0"),r.read(0);}p.prototype.resume=function(){var r=this._readableState;return r.flowing||(f("resume"),r.flowing=!r.readableListening,Aa(this,r)),r.paused=false,this};function Aa(r,e){e.resumeScheduled||(e.resumeScheduled=true,process.nextTick(Ia,r,e));}function Ia(r,e){f("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=false,r.emit("resume"),Qr(r),e.flowing&&!e.reading&&r.read(0);}p.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==false&&(f("pause"),this._readableState.flowing=false,this.emit("pause")),this._readableState.paused=true,this};function Qr(r){var e=r._readableState;for(f("flow",e.flowing);e.flowing&&r.read()!==null;);}p.prototype.wrap=function(r){var e=this,t=this._readableState,i=false;r.on("end",function(){if(f("wrapped end"),t.decoder&&!t.ended){var a=t.decoder.end();a&&a.length&&e.push(a);}e.push(null);}),r.on("data",function(a){if(f("wrapped data"),t.decoder&&(a=t.decoder.write(a)),!(t.objectMode&&a==null)&&!(!t.objectMode&&(!a||!a.length))){var s=e.push(a);s||(i=true,r.pause());}});for(var n in r)this[n]===void 0&&typeof r[n]=="function"&&(this[n]=(function(s){return function(){return r[s].apply(r,arguments)}})(n));for(var o=0;o<Vr.length;o++)r.on(Vr[o],this.emit.bind(this,Vr[o]));return this._read=function(a){f("wrapped _read",a),i&&(i=false,r.resume());},this};typeof Symbol=="function"&&(p.prototype[Symbol.asyncIterator]=function(){return Jr===void 0&&(Jr=Ri()),Jr(this)});Object.defineProperty(p.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(p.prototype,"readableBuffer",{enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(p.prototype,"readableFlowing",{enumerable:false,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e);}});p._fromList=Fi;Object.defineProperty(p.prototype,"readableLength",{enumerable:false,get:function(){return this._readableState.length}});function Fi(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function zr(r){var e=r._readableState;f("endReadable",e.endEmitted),e.endEmitted||(e.ended=true,process.nextTick(Ma,e,r));}function Ma(r,e){if(f("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=true,e.readable=false,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy();}}typeof Symbol=="function"&&(p.from=function(r,e){return Yr===void 0&&(Yr=Ai()),Yr(p,r,e)});function Ni(r,e){for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t;return -1}});var et=c((hl,$i)=>{$i.exports=F;var er=q().codes,ja=er.ERR_METHOD_NOT_IMPLEMENTED,Da=er.ERR_MULTIPLE_CALLBACK,Oa=er.ERR_TRANSFORM_ALREADY_TRANSFORMING,La=er.ERR_TRANSFORM_WITH_LENGTH_0,rr=z();K()(F,rr);function Ba(r,e){var t=this._transformState;t.transforming=false;var i=t.writecb;if(i===null)return this.emit("error",new Da);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),i(r);var n=this._readableState;n.reading=false,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark);}function F(r){if(!(this instanceof F))return new F(r);rr.call(this,r),this._transformState={afterTransform:Ba.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=true,this._readableState.sync=false,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",Fa);}function Fa(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,t){Ui(r,e,t);}):Ui(this,null,null);}F.prototype.push=function(r,e){return this._transformState.needTransform=false,rr.prototype.push.call(this,r,e)};F.prototype._transform=function(r,e,t){t(new ja("_transform()"));};F.prototype._write=function(r,e,t){var i=this._transformState;if(i.writecb=t,i.writechunk=r,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark);}};F.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=true,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=true;};F.prototype._destroy=function(r,e){rr.prototype._destroy.call(this,r,function(t){e(t);});};function Ui(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new La;if(r._transformState.transforming)throw new Oa;return r.push(null)}});var Hi=c((pl,Gi)=>{Gi.exports=we;var Wi=et();K()(we,Wi);function we(r){if(!(this instanceof we))return new we(r);Wi.call(this,r);}we.prototype._transform=function(r,e,t){t(null,r);};});var zi=c((gl,Ki)=>{var rt;function Na(r){var e=false;return function(){e||(e=true,r.apply(void 0,arguments));}}var Vi=q().codes,qa=Vi.ERR_MISSING_ARGS,Ua=Vi.ERR_STREAM_DESTROYED;function Ji(r){if(r)throw r}function $a(r){return r.setHeader&&typeof r.abort=="function"}function Wa(r,e,t,i){i=Na(i);var n=false;r.on("close",function(){n=true;}),rt===void 0&&(rt=Ve()),rt(r,{readable:e,writable:t},function(a){if(a)return i(a);n=true,i();});var o=false;return function(a){if(!n&&!o){if(o=true,$a(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();i(a||new Ua("pipe"));}}}function Yi(r){r();}function Ga(r,e){return r.pipe(e)}function Ha(r){return !r.length||typeof r[r.length-1]!="function"?Ji:r.pop()}function Ja(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var i=Ha(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new qa("streams");var n,o=e.map(function(a,s){var l=s<e.length-1,u=s>0;return Wa(a,l,u,function(g){n||(n=g),g&&o.forEach(Yi),!l&&(o.forEach(Yi),i(n));})});return e.reduce(Ga)}Ki.exports=Ja;});var Xi=c((j,Se)=>{var xe=R("stream");process.env.READABLE_STREAM==="disable"&&xe?(Se.exports=xe.Readable,Object.assign(Se.exports,xe),Se.exports.Stream=xe):(j=Se.exports=Nr(),j.Stream=xe||j,j.Readable=j,j.Writable=Lr(),j.Duplex=z(),j.Transform=et(),j.PassThrough=Hi(),j.finished=Ve(),j.pipeline=zi());});var en=c((vl,Qi)=>{var{Buffer:D}=R("buffer"),Zi=Symbol.for("BufferList");function v(r){if(!(this instanceof v))return new v(r);v._init.call(this,r);}v._init=function(e){Object.defineProperty(this,Zi,{value:true}),this._bufs=[],this.length=0,e&&this.append(e);};v.prototype._new=function(e){return new v(e)};v.prototype._offset=function(e){if(e===0)return [0,0];let t=0;for(let i=0;i<this._bufs.length;i++){let n=t+this._bufs[i].length;if(e<n||i===this._bufs.length-1)return [i,e-t];t=n;}};v.prototype._reverseOffset=function(r){let e=r[0],t=r[1];for(let i=0;i<e;i++)t+=this._bufs[i].length;return t};v.prototype.get=function(e){if(e>this.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]};v.prototype.slice=function(e,t){return typeof e=="number"&&e<0&&(e+=this.length),typeof t=="number"&&t<0&&(t+=this.length),this.copy(null,0,e,t)};v.prototype.copy=function(e,t,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||D.alloc(0);let o=!!e,a=this._offset(i),s=n-i,l=s,u=o&&t||0,g=a[1];if(i===0&&n===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:D.concat(this._bufs,this.length);for(let d=0;d<this._bufs.length;d++)this._bufs[d].copy(e,u),u+=this._bufs[d].length;return e}if(l<=this._bufs[a[0]].length-g)return o?this._bufs[a[0]].copy(e,t,g,g+l):this._bufs[a[0]].slice(g,g+l);o||(e=D.allocUnsafe(s));for(let d=a[0];d<this._bufs.length;d++){let m=this._bufs[d].length-g;if(l>m)this._bufs[d].copy(e,u,g),u+=m;else {this._bufs[d].copy(e,u,g,g+l),u+=m;break}l-=m,g&&(g=0);}return e.length>u?e.slice(0,u):e};v.prototype.shallowSlice=function(e,t){if(e=e||0,t=typeof t!="number"?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let i=this._offset(e),n=this._offset(t),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)};v.prototype.toString=function(e,t,i){return this.slice(t,i).toString(e)};v.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else {this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};v.prototype.duplicate=function(){let e=this._new();for(let t=0;t<this._bufs.length;t++)e.append(this._bufs[t]);return e};v.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(D.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let t=0;t<e.length;t++)this.append(e[t]);else if(this._isBufferList(e))for(let t=0;t<e._bufs.length;t++)this.append(e._bufs[t]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(D.from(e));return this};v.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length;};v.prototype.indexOf=function(r,e,t){if(t===void 0&&typeof e=="string"&&(t=e,e=void 0),typeof r=="function"||Array.isArray(r))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof r=="number"?r=D.from([r]):typeof r=="string"?r=D.from(r,t):this._isBufferList(r)?r=r.slice():Array.isArray(r.buffer)?r=D.from(r.buffer,r.byteOffset,r.byteLength):D.isBuffer(r)||(r=D.from(r)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),r.length===0)return e>this.length?this.length:e;let i=this._offset(e),n=i[0],o=i[1];for(;n<this._bufs.length;n++){let a=this._bufs[n];for(;o<a.length;)if(a.length-o>=r.length){let l=a.indexOf(r,o);if(l!==-1)return this._reverseOffset([n,l]);o=a.length-r.length+1;}else {let l=this._reverseOffset([n,o]);if(this._match(l,r))return l;o++;}o=0;}return -1};v.prototype._match=function(r,e){if(this.length-r<e.length)return false;for(let t=0;t<e.length;t++)if(this.get(r+t)!==e[t])return false;return true};(function(){let r={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in r)(function(t){r[t]===null?v.prototype[t]=function(i,n){return this.slice(i,i+n)[t](0,n)}:v.prototype[t]=function(i=0){return this.slice(i,i+r[t])[t](0)};})(e);})();v.prototype._isBufferList=function(e){return e instanceof v||v.isBufferList(e)};v.isBufferList=function(e){return e!=null&&e[Zi]};Qi.exports=v;});var rn=c((ml,tr)=>{var tt=Xi().Duplex,Ya=K(),Ee=en();function C(r){if(!(this instanceof C))return new C(r);if(typeof r=="function"){this._callback=r;let e=function(i){this._callback&&(this._callback(i),this._callback=null);}.bind(this);this.on("pipe",function(i){i.on("error",e);}),this.on("unpipe",function(i){i.removeListener("error",e);}),r=null;}Ee._init.call(this,r),tt.call(this);}Ya(C,tt);Object.assign(C.prototype,Ee.prototype);C.prototype._new=function(e){return new C(e)};C.prototype._write=function(e,t,i){this._appendBuffer(e),typeof i=="function"&&i();};C.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e);};C.prototype.end=function(e){tt.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null);};C.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e);};C.prototype._isBufferList=function(e){return e instanceof C||e instanceof Ee||C.isBufferList(e)};C.isBufferList=Ee.isBufferList;tr.exports=C;tr.exports.BufferListStream=C;tr.exports.BufferList=Ee;});var nn=c((_l,at)=>{var Va=R("readline"),Ka=R("chalk"),tn=Et(),ir=Tt(),nr=It(),za=Ot(),Xa=Gt(),Za=Jt(),Qa=Er(),{BufferListStream:es}=rn(),it=Symbol("text"),nt=Symbol("prefixText"),rs=3,ot=class{constructor(){this.requests=0,this.mutedStream=new es,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(t,i,...n){let{stdin:o}=process;if(e.requests>0||o.emit===e.ourEmit){if(t==="keypress")return;t==="data"&&i.includes(rs)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[t,i,...n]);}else Reflect.apply(process.stdin.emit,this,[t,i,...n]);};}start(){this.requests++,this.requests===1&&this.realStart();}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop();}realStart(){process.platform!=="win32"&&(this.rl=Va.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"));}));}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0);}},or,ar=class{constructor(e){or||(or=new ot),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:true,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==false,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Za({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:false,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=false;}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e;}_updateInterval(e){e!==void 0&&(this.interval=e);}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e;}else if(!Qa())this._spinner=ir.line;else if(e===void 0)this._spinner=ir.dots;else if(e!=="default"&&ir[e])this._spinner=ir[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this._updateInterval(this._spinner.interval);}get text(){return this[it]}set text(e){this[it]=e,this.updateLineCount();}get prefixText(){return this[nt]}set prefixText(e){this[nt]=e,this.updateLineCount();}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[nt],t=" "){return typeof e=="string"?e+t:typeof e=="function"?e()+t:""}updateLineCount(){let e=this.stream.columns||80,t=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let i of za(t+"--"+this[it]).split(`
|
|
3
3
|
`))this.lineCount+=Math.max(1,Math.ceil(Xa(i)/e));}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this._isEnabled=e;}get isSilent(){return this._isSilent}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this._isSilent=e;}frame(){let{frames:e}=this.spinner,t=e[this.frameIndex];this.color&&(t=Ka[this.color](t)),this.frameIndex=++this.frameIndex%e.length;let i=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",n=typeof this.text=="string"?" "+this.text:"";return i+t+n}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.isSilent?this:(this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this)}start(e){return e&&(this.text=e),this.isSilent?this:this.isEnabled?this.isSpinning?this:(this.hideCursor&&tn.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=true,or.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
4
4
|
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&tn.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(or.stop(),this.isDiscardingStdin=false),this):this}succeed(e){return this.stopAndPersist({symbol:nr.success,text:e})}fail(e){return this.stopAndPersist({symbol:nr.error,text:e})}warn(e){return this.stopAndPersist({symbol:nr.warning,text:e})}info(e){return this.stopAndPersist({symbol:nr.info,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;let t=e.prefixText||this.prefixText,i=e.text||this.text,n=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(t," ")}${e.symbol||" "}${n}
|
|
5
|
-
`),this}},ts=function(r){return new ar(r)};at.exports=ts;at.exports.promise=(r,e)=>{if(typeof r.then!="function")throw new TypeError("Parameter `action` must be a Promise");let t=new ar(e);return t.start(),(async()=>{try{await r,t.succeed();}catch{t.fail();}})(),t};});var on=Pn(nn()),H=()=>{let r=(0, on.default)({text:"Loading...",color:"blue"});return {start:e=>{e&&(r.text=e),r.start();},stop:()=>{r.stop();},succeed:e=>{r.succeed(e);},fail:e=>{r.fail(e);}}};var de=class{constructor(e,t=process.cwd(),i=H()){this.packageManager=e;this.ui_spinner=i;if(this.workingDir=t,!this.validManagers.includes(this.packageManager))throw new Error(`Invalid package manager: ${this.packageManager}`)}validManagers=["npm","yarn","pnpm","bun"];workingDir;static detectPackageManager=(e=process.cwd())=>fs.existsSync(ue__default.default.join(e,"pnpm-lock.yaml"))?"pnpm":fs.existsSync(ue__default.default.join(e,"yarn.lock"))?"yarn":fs.existsSync(ue__default.default.join(e,"bun.lockb"))?"bun":"npm";ensurePackageJson(){if(!fs.existsSync(ue__default.default.join(this.workingDir,"package.json")))throw new Error(`package.json not found in ${this.workingDir}`)}changeDirectory(e){this.workingDir=ue__default.default.isAbsolute(e)?e:ue__default.default.resolve(this.workingDir,e);}runCommand(e,t,i,n=false,o){let a=o||`Running command: ${e}`;try{return n?(this.ui_spinner.start(a),child_process.execSync(e,{cwd:this.workingDir,stdio:"ignore"}),this.ui_spinner.succeed(t??`Command: ${e}`),!0):(this.ui_spinner.start(a),child_process.execSync(e,{cwd:this.workingDir,stdio:"inherit"}),this.ui_spinner.succeed(t??`Command: ${e}`),!0)}catch{return this.ui_spinner.fail(i??`Failed to run command: ${e}`),false}}install(e,t=false,i=false){return this.ensurePackageJson(),this.runCommand(this.buildInstallCommand(e,t),`Installed ${e}`,`Failed to install ${e}`,i,`Installing ${e}...`)}remove(e){return this.ensurePackageJson(),this.runCommand(this.buildRemoveCommand(e),`Removed ${e}`,`Failed to remove ${e}`)}isInstalled(e){this.ensurePackageJson();try{let t=child_process.execSync(`${this.packageManager} list --depth=0 --json`,{cwd:this.workingDir,stdio:"pipe",encoding:"utf8"});return !!JSON.parse(t).dependencies?.[e]}catch{return false}}getInstalledPackages(){this.ensurePackageJson();try{let e=child_process.execSync(`${this.packageManager} list --depth=0 --json`,{cwd:this.workingDir,stdio:"pipe",encoding:"utf8"});return JSON.parse(e).dependencies??{}}catch{return {}}}getVersion(e){return this.getInstalledPackages()[e]?.version??null}isAvailable(){try{return child_process.execSync(`${this.packageManager} --version`,{stdio:"ignore"}),!0}catch{return false}}buildInstallCommand(e,t){switch(this.packageManager){case "npm":return `npm install ${e}${t?" -D":""}`;case "yarn":return `yarn add ${e}${t?" --dev":""}`;case "pnpm":return `pnpm add ${e}${t?" --save-dev":" --save"}`;case "bun":return `bun add ${e}${t?" --development":""}`}}buildRemoveCommand(e){switch(this.packageManager){case "npm":return `npm uninstall ${e}`;case "yarn":return `yarn remove ${e}`;case "pnpm":return `pnpm remove ${e}`;case "bun":return `bun remove ${e}`}}};var lr=class{constructor(e,t,i=new de(t),n=H()){this.dir=e;this.packageManager=t;this.pkgManager=i;this.spin=n;}baseInstallation(){this.pkgManager.changeDirectory(this.dir);let e=`${this.packageManager} install`;try{this.spin.start("Installing dependencies..."),this.pkgManager.runCommand(e,"Installed dependencies","Installation failed",!0),this.spin.stop();}catch{this.spin.fail(`Failed to install dependencies, please run manually : ${e}`),process.exit(1);}}installTailwindCSSForNextJS(){this.pkgManager.isInstalled("tailwindcss")?(this.pkgManager.isInstalled("postcss")||this.pkgManager.install("postcss",true),this.pkgManager.isInstalled("autoprefixer")||this.pkgManager.install("autoprefixer",true)):this.pkgManager.install("tailwindcss postcss autoprefixer",true);}installTailwindCSS(){this.pkgManager.isInstalled("tailwindcss")?this.pkgManager.isInstalled("@tailwindcss/vite")?console.log("TailwindCSS is already installed."):this.pkgManager.install("@tailwindcss/vite",true):this.pkgManager.install("tailwindcss @tailwindcss/vite",true);}installIconLibrary(e){this.pkgManager.isInstalled("@iconify/tailwind4")||this.pkgManager.install("@iconify/tailwind4",true);try{this.pkgManager.install(`@iconify-json/${e}`,!0,!0);}catch{console.log("Icon library is already installed.");}}installShadcnCli(){this.pkgManager.isInstalled("shadcn")||this.pkgManager.install("shadcn",true,true),this.pkgManager.isInstalled("tailwind-variants")||this.pkgManager.install("tailwind-variants",false,true),this.pkgManager.isInstalled("tw-animate-css")||this.pkgManager.install("tw-animate-css",false,true),this.pkgManager.isInstalled("react-aria-components")||this.pkgManager.install("react-aria-components",false,true),this.pkgManager.isInstalled("motion")||this.pkgManager.install("motion",false,true);}};var as=url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))),sn=ue.dirname(as),
|
|
5
|
+
`),this}},ts=function(r){return new ar(r)};at.exports=ts;at.exports.promise=(r,e)=>{if(typeof r.then!="function")throw new TypeError("Parameter `action` must be a Promise");let t=new ar(e);return t.start(),(async()=>{try{await r,t.succeed();}catch{t.fail();}})(),t};});var on=Pn(nn()),H=()=>{let r=(0, on.default)({text:"Loading...",color:"blue"});return {start:e=>{e&&(r.text=e),r.start();},stop:()=>{r.stop();},succeed:e=>{r.succeed(e);},fail:e=>{r.fail(e);}}};var de=class{constructor(e,t=process.cwd(),i=H()){this.packageManager=e;this.ui_spinner=i;if(this.workingDir=t,!this.validManagers.includes(this.packageManager))throw new Error(`Invalid package manager: ${this.packageManager}`)}validManagers=["npm","yarn","pnpm","bun"];workingDir;static detectPackageManager=(e=process.cwd())=>fs.existsSync(ue__default.default.join(e,"pnpm-lock.yaml"))?"pnpm":fs.existsSync(ue__default.default.join(e,"yarn.lock"))?"yarn":fs.existsSync(ue__default.default.join(e,"bun.lockb"))?"bun":"npm";ensurePackageJson(){if(!fs.existsSync(ue__default.default.join(this.workingDir,"package.json")))throw new Error(`package.json not found in ${this.workingDir}`)}changeDirectory(e){this.workingDir=ue__default.default.isAbsolute(e)?e:ue__default.default.resolve(this.workingDir,e);}runCommand(e,t,i,n=false,o){let a=o||`Running command: ${e}`;try{return n?(this.ui_spinner.start(a),child_process.execSync(e,{cwd:this.workingDir,stdio:"ignore"}),this.ui_spinner.succeed(t??`Command: ${e}`),!0):(this.ui_spinner.start(a),child_process.execSync(e,{cwd:this.workingDir,stdio:"inherit"}),this.ui_spinner.succeed(t??`Command: ${e}`),!0)}catch{return this.ui_spinner.fail(i??`Failed to run command: ${e}`),false}}install(e,t=false,i=false){return this.ensurePackageJson(),this.runCommand(this.buildInstallCommand(e,t),`Installed ${e}`,`Failed to install ${e}`,i,`Installing ${e}...`)}remove(e){return this.ensurePackageJson(),this.runCommand(this.buildRemoveCommand(e),`Removed ${e}`,`Failed to remove ${e}`)}isInstalled(e){this.ensurePackageJson();try{let t=child_process.execSync(`${this.packageManager} list --depth=0 --json`,{cwd:this.workingDir,stdio:"pipe",encoding:"utf8"});return !!JSON.parse(t).dependencies?.[e]}catch{return false}}getInstalledPackages(){this.ensurePackageJson();try{let e=child_process.execSync(`${this.packageManager} list --depth=0 --json`,{cwd:this.workingDir,stdio:"pipe",encoding:"utf8"});return JSON.parse(e).dependencies??{}}catch{return {}}}getVersion(e){return this.getInstalledPackages()[e]?.version??null}isAvailable(){try{return child_process.execSync(`${this.packageManager} --version`,{stdio:"ignore"}),!0}catch{return false}}buildInstallCommand(e,t){switch(this.packageManager){case "npm":return `npm install ${e}${t?" -D":""}`;case "yarn":return `yarn add ${e}${t?" --dev":""}`;case "pnpm":return `pnpm add ${e}${t?" --save-dev":" --save"}`;case "bun":return `bun add ${e}${t?" --development":""}`}}buildRemoveCommand(e){switch(this.packageManager){case "npm":return `npm uninstall ${e}`;case "yarn":return `yarn remove ${e}`;case "pnpm":return `pnpm remove ${e}`;case "bun":return `bun remove ${e}`}}};var lr=class{constructor(e,t,i=new de(t),n=H()){this.dir=e;this.packageManager=t;this.pkgManager=i;this.spin=n;}baseInstallation(){this.pkgManager.changeDirectory(this.dir);let e=`${this.packageManager} install`;try{this.spin.start("Installing dependencies..."),this.pkgManager.runCommand(e,"Installed dependencies","Installation failed",!0),this.spin.stop();}catch{this.spin.fail(`Failed to install dependencies, please run manually : ${e}`),process.exit(1);}}installTailwindCSSForNextJS(){this.pkgManager.isInstalled("tailwindcss")?(this.pkgManager.isInstalled("postcss")||this.pkgManager.install("postcss",true),this.pkgManager.isInstalled("autoprefixer")||this.pkgManager.install("autoprefixer",true)):this.pkgManager.install("tailwindcss postcss autoprefixer",true);}installTailwindCSS(){this.pkgManager.isInstalled("tailwindcss")?this.pkgManager.isInstalled("@tailwindcss/vite")?console.log("TailwindCSS is already installed."):this.pkgManager.install("@tailwindcss/vite",true):this.pkgManager.install("tailwindcss @tailwindcss/vite",true);}installIconLibrary(e){this.pkgManager.isInstalled("@iconify/tailwind4")||this.pkgManager.install("@iconify/tailwind4",true);try{this.pkgManager.install(`@iconify-json/${e}`,!0,!0);}catch{console.log("Icon library is already installed.");}}installShadcnCli(){this.pkgManager.isInstalled("shadcn")||this.pkgManager.install("shadcn",true,true),this.pkgManager.isInstalled("tailwind-variants")||this.pkgManager.install("tailwind-variants",false,true),this.pkgManager.isInstalled("tw-animate-css")||this.pkgManager.install("tw-animate-css",false,true),this.pkgManager.isInstalled("react-aria-components")||this.pkgManager.install("react-aria-components",false,true),this.pkgManager.isInstalled("motion")||this.pkgManager.install("motion",false,true);}};var as=url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))),sn=ue.dirname(as),S=class{static basePath=(()=>{let e=ue.join(sn,"../stubs"),t=ue.join(sn,"../../stubs");return fs.existsSync(e)?e:t})();static get(e){let t=e.replace(/\./g,"/")+".stub",i=ue.join(this.basePath,t);if(!fs.existsSync(i))throw new Error(`Stub not found: ${i}`);return fs.readFileSync(i,"utf-8")}};var ln="http://localhost:3000/jk/{name}.json",cn="http://localhost:3000/next/{name}.json",fn=[{title:"Both",value:"both",selected:true},{title:"Light",value:"light",selected:false},{title:"Dark",value:"dark",selected:false},{title:"Multi theming",value:"multi",selected:false}],un=[{title:"JK Default",value:"jk-ui",selected:true},{title:"Water",value:"water",selected:false},{title:"Earth",value:"earth",selected:false},{title:"Fire",value:"fire",selected:false},{title:"Air",value:"air",selected:false}],Re=[{title:"Hugeicons",value:"hugeicons",selected:true},{title:"Phosphore",value:"ph",selected:false},{title:"Heroicons",value:"heroicons",selected:false},{title:"Lucide",value:"lucide",selected:false}],J=493,lt=[{framework:"astro",cssPath:"src/assets/css/"},{framework:"react",cssPath:"src/"},{framework:"rasengan",cssPath:"src/"},{framework:"tanstack-start",cssPath:"app/"},{framework:"react-router",cssPath:"app/"},{framework:"inertia-react",cssPath:"resources/css/"},{framework:"laravel",cssPath:"resources/css/"}];var cr=class{static get(){return `
|
|
6
6
|
:root {
|
|
7
7
|
--color-primary: var(--color-primary-500);
|
|
8
8
|
--color-secondary: var(--color-secondary-500);
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
--color-chart-3: var(--chart-3);
|
|
334
334
|
--color-chart-4: var(--chart-4);
|
|
335
335
|
--color-chart-5: var(--chart-5);
|
|
336
|
-
}`;var dr=class{static get(e,t,i){let n=
|
|
336
|
+
}`;var dr=class{static get(e,t,i){let n=S.get(`themes.${i.toLowerCase()}`),o=S.get("css.scroll-config"),a=Re.find(h=>h.value===e.iconLibrary)??Re[1],s=dn,l=`
|
|
337
337
|
@import "tailwindcss";
|
|
338
338
|
@import "tw-animate-css";
|
|
339
339
|
|
|
@@ -348,19 +348,19 @@
|
|
|
348
348
|
prefixes: ${a.value};
|
|
349
349
|
scale: 1.0;
|
|
350
350
|
}
|
|
351
|
-
`,g=cr.get(),d=fr.get(),m=ur.get(),
|
|
351
|
+
`,g=cr.get(),d=fr.get(),m=ur.get(),y=t.toLowerCase()==="both"?m:t.toLowerCase()==="dark"?g:d;return `${l}
|
|
352
352
|
|
|
353
353
|
|
|
354
354
|
${u}
|
|
355
355
|
|
|
356
356
|
|
|
357
|
-
${
|
|
357
|
+
${y}
|
|
358
358
|
|
|
359
359
|
${n}
|
|
360
360
|
|
|
361
361
|
${s}
|
|
362
362
|
|
|
363
|
-
${o}`}};var S=class{static packageJsonCache=new Map;static async askPackageManager(){return (await cs__default.default([{type:"select",name:"packageManager",message:"Which package manager would you like to use?",choices:[{title:"npm",value:"npm"},{title:"yarn",value:"yarn"},{title:"pnpm",value:"pnpm"},{title:"bun",value:"bun"}]}])).packageManager}static detect(){let e=process.cwd();if(this.hasPackageJson(e)){let i=this.getPackageJson(e);if(i){let n={...i.dependencies,...i.devDependencies},o={astro:"astro",rasengan:"rasengan","tanstack-start":"@tanstack/react-start","react-router":"@react-router/node","inertia-react":"@inertiajs/react",next:"next",react:"react"};for(let[a,s]of Object.entries(o))if((Array.isArray(s)?s:[s]).some(u=>u in n))return a;if("vite"in n)return "@vitejs/plugin-react"in n||"@vitejs/plugin-react-swc"in n?"react":"typescript"in n?"vite-ts":"vite-js"}}let t={artisan:"laravel","bin/console":"symfony","manage.py":"django"};for(let[i,n]of Object.entries(t))if(fs.existsSync(ue.join(e,i)))return n;return "generic"}static hasPackageJson(e){return fs.existsSync(ue.join(e,"package.json"))}static getPackageJson(e){if(this.packageJsonCache.has(e))return this.packageJsonCache.get(e);let t=ue.join(e,"package.json");if(!fs.existsSync(t))return this.packageJsonCache.set(e,null),null;try{let i=fs.readFileSync(t,"utf-8"),n=JSON.parse(i);return this.packageJsonCache.set(e,n),n}catch{return this.packageJsonCache.set(e,null),null}}static checkCSSFramework(e){let t=process.cwd(),i=this.getPackageJson(t);if(i){let n={...i.dependencies,...i.devDependencies};if(e==="tailwindcss"&&"tailwindcss"in n)return true}return false}static checkTailwindCSS(){return this.checkCSSFramework("tailwindcss")}static getProjectName(){let e=process.cwd(),t=this.getPackageJson(e);return t&&t.name?t.name:ue.basename(e)}static hasSrcDir(){return fs.existsSync(ue.join(process.cwd(),"src"))}static isTypeScript(){let e=process.cwd();return fs.existsSync(ue.join(e,"tsconfig.json"))}};var hr=class{static generateBaseFiles(e,t){let i=this.getMainCssFileName();this.createJkUIFiles(t,i),this.createFrameworkSpecificFiles(e,t),this.generateConfigFiles(t);}static createShared(e){let t=e.cssPath||"src/css/",i=e.libPath;fs.existsSync(t)||fs.mkdirSync(t,{recursive:true,mode:J}),fs.existsSync(`${t}/jk-ui`)||fs.mkdirSync(`${t}/jk-ui`,{recursive:true,mode:J}),fs.existsSync(`${i}`)||fs.mkdirSync(`${i}`,{recursive:true,mode:J});}static createJkUIFiles(e,t){let i=e.cssPath,n=e.themingMode||"light",o=e.theme||"jk-ui";this.createShared(e);let a=n.toLowerCase()==="both"?"":`${n.toLowerCase()}.`,s=dr.get(e,n,o);fs.writeFileSync(ue.join(i,`${t}.css`),s),fs.writeFileSync(ue.join(i,"jk-ui/base.css"),k.get("css.jk-ui.base")),fs.writeFileSync(ue.join(i,"jk-ui/form.css"),k.get("css.jk-ui.form")),fs.writeFileSync(ue.join(i,"jk-ui/button.css"),k.get("css.jk-ui.button")),fs.writeFileSync(ue.join(i,"jk-ui/ui.css"),k.get("css.jk-ui.ui")),fs.writeFileSync(ue.join(i,"jk-ui/utils.css"),k.get("css.jk-ui.utils")),fs.writeFileSync(ue.join(i,"button-styles.css"),k.get(`css.${a}buttons`)),fs.writeFileSync(ue.join(i,"ui-utilities.css"),k.get(`css.${a}utilities`));}static generateConfigFiles(e){let t=e.framework==="next",i={$schema:"https://ui.shadcn.com/schema.json",style:"new-york",rsc:t,tsx:S.isTypeScript(),tailwind:{config:"",css:ue.join(e.cssPath||(S.hasSrcDir()?"src/":"./"),`${this.getMainCssFileName()}.css`),baseColor:"slate",cssVariables:true,prefix:""},iconLibrary:e.iconLibrary,themingMode:e.themingMode,aliases:{components:"@/components",utils:"@/lib/utils",ui:"@/components/ui",lib:"@/lib",hooks:"@/hooks"},registries:{"@flexaria":t?cn:ln}};fs.writeFileSync("components.json",JSON.stringify(i,null,2));}static getMainCssFileName(){return "globals"}static createFrameworkSpecificFiles(e,t){switch(e){case "astro":this.createAstroFiles();break;case "rasengan":this.createRasenganFiles();break;case "next":break;case "inertia-react":break;case "tanstack-start":break;case "react":case "react-js":case "react-ts":case "vite-js":case "vite-ts":this.createReactFiles(t);break}}static createAstroFiles(){let t=S.hasSrcDir()?"src/":"";fs.existsSync(ue.join(t,"components"))||fs.mkdirSync(ue.join(t,"components"),{recursive:true,mode:J}),fs.existsSync(ue.join(t,"components/seo"))||fs.mkdirSync(ue.join(t,"components/seo"),{recursive:true,mode:J}),fs.existsSync(ue.join(t,"layouts"))||fs.mkdirSync(ue.join(t,"layouts"),{recursive:true,mode:J}),fs.writeFileSync("tsconfig.json",k.get("astro.tsconfig")),fs.writeFileSync(ue.join(t,"layouts/Layout.astro"),k.get("astro.layout")),fs.writeFileSync(ue.join(t,"components/seo/SEO.astro"),k.get("astro.seo"));}static createRasenganFiles(){let t=S.hasSrcDir()?"src/":"";fs.existsSync(ue.join(t,"components"))||fs.mkdirSync(ue.join(t,"components"),{recursive:true,mode:J}),fs.writeFileSync("rasengan.config.js",k.get("rasengan.config"));}static createReactFiles(e){let t=S.isTypeScript()?"ts":"js";fs.writeFileSync(`vite.config.${t}`,k.get("vite.vanilla"));}};var pr=class{constructor(e,t,i,n,o=new lr(e,n)){this.answers=t;this.framework=i;this.installer=o;}setup(e=false){this.installDependencies(e),this.generateFiles(this.framework);}installDependencies(e){e&&this.installer.baseInstallation(),this.framework==="next"?this.installer.installTailwindCSSForNextJS():this.installer.installTailwindCSS(),this.answers.framework==="vite"||this.answers.framework,this.installer.installIconLibrary(this.answers.iconLibrary),this.installer.installShadcnCli();}generateFiles(e){hr.generateBaseFiles(e,this.answers);}};var Ce={error:gr__default.default.red,warn:gr__default.default.yellow,info:gr__default.default.cyan,success:gr__default.default.green};var x={error(...r){console.log(Ce.error(r.join(" ")));},warn(...r){console.log(Ce.warn(r.join(" ")));},info(...r){console.log(Ce.info(r.join(" ")));},success(...r){console.log(Ce.success(r.join(" ")));},log(...r){console.log(r.join(" "));},break(){console.log("");}};var hn=()=>{},pn=()=>{let r=ue.join(process.cwd(),"flexi-cli.json");if(!fs.existsSync(r))return false;try{let e=fs.readFileSync(r,"utf-8"),t=JSON.parse(e),i=["framework","defaultSource","registries"];for(let n of i)if(!(n in t))return !1;return !(!Array.isArray(t.registries)||t.registries.length===0)}catch{return false}},ct=r=>{if(!r)return r;let e=String(r).trim().replace(/\\/g,"/");return e=e.replace(/^\.\//,""),e=e.replace(/\/+/,"/"),e.endsWith("/")||(e+="/"),e},ft=r=>{let e=n=>n.startsWith("/")||/^[A-Za-z]:[\\/]/.test(n),i=zod.z.string().min(1,"Path is required").refine(n=>!e(n),"Please provide a relative path (do not start with a drive letter or '/')").refine(n=>!n.includes("../"),"Path cannot contain '..'").regex(/^[A-Za-z0-9_\-\.\/]+$/,"Path contains invalid characters").safeParse(String(r??"").trim());return i.success?true:i.error.issues[0]?.message||"Invalid path"};var vr=class{get(){return [{type:"select",name:"theme",message:"\u{1F3A8} Which theme would you like to use?",choices:un.map(e=>({title:e.title,value:e.value,selected:e.selected}))},{type:"select",name:"themingMode",message:"Your theming mode",choices:fn.map(e=>({title:e.title,value:e.value,selected:e.selected}))},{type:"select",name:"iconLibrary",message:"\u{1F3A8} Which Icon Library would you like to use?",choices:ke.map(e=>({title:e.title,value:e.value,selected:e.selected}))}]}async askFolders(e){let t=S.hasSrcDir(),i=e==="next"&&fs.existsSync(ue.join(process.cwd(),"app")),n=lt.find(s=>s.framework===e)??{cssPath:i?"styles":"src/styles"},o={cssPath:t?n.cssPath:n.cssPath?.startsWith("src/")?n.cssPath.replace("src/",""):n.cssPath,libPath:t?"src/lib":"lib"},a=await cs__default.default([{type:"text",name:"cssPath",message:"Path to the CSS file",initial:o.cssPath,validate:s=>ft(s),format:s=>ct(s)},{type:"text",name:"libPath",message:"Path to the lib utils folder",initial:o.libPath,validate:s=>ft(s),format:s=>ct(s)}]);return {cssPath:a.cssPath,libPath:a.libPath}}};var mr=class{constructor(e=new vr){this.themingPrompts=e;}supportedFrameworks=["astro","rasengan","react-js","react-ts","tanstack-start","react-router","inertia-react","next"];async initialize(e){let t={projectName:S.getProjectName(),framework:"",theme:"",cssPath:"",themingMode:"both",iconLibrary:"",libPath:""};if(e.cwd&&e.cwd!==process.cwd()&&process.chdir(e.cwd),!S.hasPackageJson(process.cwd()))x.error("\u2718 No package.json found."),x.info("Please create a project first using your framework's CLI."),x.info("Example: npm create vite@latest"),process.exit(0);else {let i=S.detect();!this.supportedFrameworks.includes(i)&&!["vite-js","vite-ts"].includes(i)&&(x.error(`\u274C Sorry, the CLI does not support the '${i}' framework for the moment.`),x.info("Supported frameworks: Astro, React, Rasengan, Tanstack Start, React Router 7, Inertia React"),process.exit(0));let n=i;t=await this.handleInitInProject(n,e);}return {projectAnswers:t}}async handleInitInProject(e,t){x.info(`\u{1F4E6} Detected ${e} project`),S.checkTailwindCSS()||x.info("\u2139\uFE0F Tailwind CSS will be configured for your project");let n=await cs__default.default(this.themingPrompts.get()),o="",a=t.libPath||"";if(t.cssPath&&(o=t.cssPath),o===""){let s=await this.themingPrompts.askFolders(e);o=s.cssPath,a=s.libPath;}return {projectName:S.getProjectName(),framework:e,theme:n.theme,themingMode:n.themingMode,iconLibrary:n.iconLibrary,cssPath:o,libPath:a}}};var _r=r=>{r instanceof Error?x.error(r.message):x.error("An unexpected error occurred"),process.exit(1);};var gn=new commander.Command("init").description("Initialize a new project or configure an existing one").option("--css-path <path>","Path to the CSS file, Only For Vite Vanilla and Astro").option("-c, --cwd <cwd>","the working directory. defaults to the current directory.",process.cwd()).action(async r=>{try{let e={cssPath:r.cssPath,cwd:r.cwd};if(pn()){x.info("Project already initialized");return}hn();let t=new mr,i=H(),{projectAnswers:n}=await t.initialize(e),o=de.detectPackageManager();new pr(n.projectName,n,n.framework,o).setup(!1),i.succeed("Project setup successfully"),i.stop();}catch(e){_r(e);}});var vn=[{ph:"ph--house",hugeicons:"hugeicons--home-03",heroicons:"heroicons--home-solid",lucide:"lucide--home"},{ph:"ph--check",hugeicons:"hugeicons--check-mark-01",heroicons:"heroicons--check-solid",lucide:"lucide--check"},{ph:"ph--x",hugeicons:"hugeicons--cancel-01",heroicons:"heroicons--x-mark-solid",lucide:"lucide--x"},{ph:"ph--chevron-down",hugeicons:"hugeicons--arrow-down-01",heroicons:"heroicons--chevron-down-solid",lucide:"lucide--chevron-down"},{ph:"ph--plus",hugeicons:"hugeicons--plus-01",heroicons:"heroicons--plus-solid",lucide:"lucide--plus"},{ph:"ph--trash",hugeicons:"hugeicons--delete-02",heroicons:"heroicons--trash-solid",lucide:"lucide--trash-2"},{ph:"ph--user",hugeicons:"hugeicons--user",heroicons:"heroicons--user-solid",lucide:"lucide--user"},{ph:"ph--gear",hugeicons:"hugeicons--settings-02",heroicons:"heroicons--cog-6-tooth-solid",lucide:"lucide--settings"},{ph:"ph--magnifying-glass",hugeicons:"hugeicons--search-02",heroicons:"heroicons--magnifying-glass-solid",lucide:"lucide--search"},{ph:"ph--bell",hugeicons:"hugeicons--notification-03",heroicons:"heroicons--bell-solid",lucide:"lucide--bell"},{ph:"ph--calendar",hugeicons:"hugeicons--calendar-03",heroicons:"heroicons--calendar-solid",lucide:"lucide--calendar"},{ph:"ph--envelope",hugeicons:"hugeicons--mail-02",heroicons:"heroicons--envelope-solid",lucide:"lucide--mail"},{ph:"ph--eye",hugeicons:"hugeicons--view",heroicons:"heroicons--eye-solid",lucide:"lucide--eye"},{ph:"ph--eye-slash",hugeicons:"hugeicons--view-off",heroicons:"heroicons--eye-slash-solid",lucide:"lucide--eye-off"},{ph:"ph--arrow-right",hugeicons:"hugeicons--arrow-right-01",heroicons:"heroicons--arrow-right-solid",lucide:"lucide--arrow-right"},{ph:"ph--arrow-left",hugeicons:"hugeicons--arrow-left-01",heroicons:"heroicons--arrow-left-solid",lucide:"lucide--arrow-left"},{ph:"ph--pencil",hugeicons:"hugeicons--pencil-edit-02",heroicons:"heroicons--pencil-solid",lucide:"lucide--pencil"},{ph:"ph--info",hugeicons:"hugeicons--information-circle",heroicons:"heroicons--information-circle-solid",lucide:"lucide--info"},{ph:"ph--warning",hugeicons:"hugeicons--alert-circle",heroicons:"heroicons--exclamation-circle-solid",lucide:"lucide--alert-circle"},{ph:"ph--list",hugeicons:"hugeicons--menu-01",heroicons:"heroicons--bars-3-solid",lucide:"lucide--menu"}];var yn=new commander.Command("fix-icons").description("Scan components and replace Phosphor icons with the selected icon library").action(async()=>{try{let r=process.cwd(),e=ue.join(r,"components.json");if(!fs.existsSync(e)){x.error("\u2718 No components.json found. Please initialize the project first.");return}let i=JSON.parse(fs.readFileSync(e,"utf-8")).iconLibrary;if(!i){x.error("\u2718 No icon library specified in components.json.");return}if(i==="ph"){x.info("\u2139 Your project is already using Phosphor icons. No changes needed.");return}let n=S.detect(),o="";if(n==="inertia-react"||n==="laravel"?o=ue.join(r,"resources","js","components","ui"):S.hasSrcDir()?o=ue.join(r,"src","components","ui"):o=ue.join(r,"components","ui"),!fs.existsSync(o)){x.warn(`\u26A0 components/ui directory not found at: ${o}`);return}x.info(`\u{1F50D} Scanning ${o} for icons to replace with ${i}...`);let a=bn(o),s=0,l=[];for(let d of a){let m=fs.readFileSync(d,"utf-8"),b=[],T=/ph--([a-z0-9-]+)/g,h;for(;(h=T.exec(m))!==null;){let M=h[0],w=h[1],B=vn.find(Me=>Me.ph===M);B&&B[i]&&b.push({from:M,to:B[i]});}b.length>0&&(s+=b.length,l.push({path:d,content:m,replacements:b}));}if(s===0){x.info("\u2728 No Phosphor icons were found in your components.");return}if(!(await cs__default.default({type:"confirm",name:"value",message:`Found ${s} icons in ${l.length} files. Do you want to replace them with ${i} icons?`,initial:!0})).value){x.info("Operation cancelled.");return}let g=H();g.start("Replacing icons...");for(let d of l){let m=d.content;for(let b of d.replacements)m=m.replace(new RegExp(b.from,"g"),b.to);fs.writeFileSync(d.path,m);}g.succeed(`Successfully replaced ${s} icons in ${l.length} files.`);}catch(r){_r(r);}});function bn(r,e=[]){return fs.readdirSync(r).forEach(i=>{let n=ue.join(r,i);if(fs.statSync(n).isDirectory())e=bn(n,e);else {let o=ue.extname(n);[".tsx",".jsx",".ts",".js",".astro"].includes(o)&&e.push(n);}}),e}var As=url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))),Ms=ue.dirname(As);process.on("SIGINT",()=>process.exit(0));process.on("SIGTERM",()=>process.exit(0));async function Is(){let r=ue.resolve(Ms,"../package.json"),e=JSON.parse(fs.readFileSync(r,"utf-8")),t=new commander.Command().name("jk-ui-cli").description("A CLI tool for rapidly scaffolding ReactJS based applications using JK UI").version(e.version||"0.0.1","-v, --version","display the version number");t.addCommand(gn),t.addCommand(yn),t.parse();}Is();
|
|
363
|
+
${o}`}};var P=class{static packageJsonCache=new Map;static async askPackageManager(){return (await cs__default.default([{type:"select",name:"packageManager",message:"Which package manager would you like to use?",choices:[{title:"npm",value:"npm"},{title:"yarn",value:"yarn"},{title:"pnpm",value:"pnpm"},{title:"bun",value:"bun"}]}])).packageManager}static detect(){let e=process.cwd();if(this.hasPackageJson(e)){let i=this.getPackageJson(e);if(i){let n={...i.dependencies,...i.devDependencies},o={astro:"astro",rasengan:"rasengan","tanstack-start":"@tanstack/react-start","react-router":"@react-router/node","tanstack-router":"@tanstack/react-router","inertia-react":"@inertiajs/react",next:"next",react:"react"};for(let[a,s]of Object.entries(o))if((Array.isArray(s)?s:[s]).some(u=>u in n))return a;if("vite"in n)return "@vitejs/plugin-react"in n||"@vitejs/plugin-react-swc"in n?"react":"typescript"in n?"vite-ts":"vite-js"}}let t={artisan:"laravel","bin/console":"symfony","manage.py":"django"};for(let[i,n]of Object.entries(t))if(fs.existsSync(ue.join(e,i)))return n;return "generic"}static hasPackageJson(e){return fs.existsSync(ue.join(e,"package.json"))}static getPackageJson(e){if(this.packageJsonCache.has(e))return this.packageJsonCache.get(e);let t=ue.join(e,"package.json");if(!fs.existsSync(t))return this.packageJsonCache.set(e,null),null;try{let i=fs.readFileSync(t,"utf-8"),n=JSON.parse(i);return this.packageJsonCache.set(e,n),n}catch{return this.packageJsonCache.set(e,null),null}}static checkCSSFramework(e){let t=process.cwd(),i=this.getPackageJson(t);if(i){let n={...i.dependencies,...i.devDependencies};if(e==="tailwindcss"&&"tailwindcss"in n)return true}return false}static checkTailwindCSS(){return this.checkCSSFramework("tailwindcss")}static getProjectName(){let e=process.cwd(),t=this.getPackageJson(e);return t&&t.name?t.name:ue.basename(e)}static hasSrcDir(){return fs.existsSync(ue.join(process.cwd(),"src"))}static isTypeScript(){let e=process.cwd();return fs.existsSync(ue.join(e,"tsconfig.json"))}};var hr=class{static generateBaseFiles(e,t){let i=this.getMainCssFileName();this.createJkUIFiles(t,i),this.createFrameworkSpecificFiles(e,t),this.generateConfigFiles(t);}static createShared(e){let t=e.cssPath||"src/css/",i=e.libPath;fs.existsSync(t)||fs.mkdirSync(t,{recursive:true,mode:J}),fs.existsSync(`${t}/jk-ui`)||fs.mkdirSync(`${t}/jk-ui`,{recursive:true,mode:J}),fs.existsSync(`${i}`)||fs.mkdirSync(`${i}`,{recursive:true,mode:J});}static createJkUIFiles(e,t){let i=e.cssPath,n=e.libPath,o=e.themingMode||"light",a=e.theme||"jk-ui";this.createShared(e);let s=o.toLowerCase()==="both"?"":`${o.toLowerCase()}.`,l=dr.get(e,o,a);fs.writeFileSync(ue.join(i,`${t}.css`),l),fs.writeFileSync(ue.join(i,"jk-ui/base.css"),S.get("css.jk-ui.base")),fs.writeFileSync(ue.join(i,"jk-ui/form.css"),S.get("css.jk-ui.form")),fs.writeFileSync(ue.join(i,"jk-ui/button.css"),S.get("css.jk-ui.button")),fs.writeFileSync(ue.join(i,"jk-ui/ui.css"),S.get("css.jk-ui.ui")),fs.writeFileSync(ue.join(i,"jk-ui/utils.css"),S.get("css.jk-ui.utils")),fs.writeFileSync(ue.join(i,"button-styles.css"),S.get(`css.${s}buttons`)),fs.writeFileSync(ue.join(i,"utilities.css"),S.get(`css.${s}utilities`)),fs.writeFileSync(ue.join(n,"utils.ts"),S.get("utils.lib"));}static generateConfigFiles(e){let t=e.framework==="next";fs.writeFileSync("components.json",JSON.stringify({$schema:"https://ui.shadcn.com/schema.json",style:"radix-nova",rsc:false,tsx:true,tailwind:{config:"",css:"src/styles/globals.css",baseColor:"neutral",cssVariables:true,prefix:""},aliases:{components:"@/components",utils:"@/lib/utils",ui:"@/components/ui",lib:"@/lib",hooks:"@/hooks"},iconLibrary:"lucide",registries:{"@jk-ui":t?cn:ln}},null,2));}static getMainCssFileName(){return "globals"}static createFrameworkSpecificFiles(e,t){switch(e){case "astro":this.createAstroFiles();break;case "rasengan":this.createRasenganFiles();break;case "next":break;case "inertia-react":break;case "tanstack-start":break;case "react":case "react-js":case "react-ts":case "vite-js":case "vite-ts":this.createReactFiles(t);break}}static createAstroFiles(){let t=P.hasSrcDir()?"src/":"";fs.existsSync(ue.join(t,"components"))||fs.mkdirSync(ue.join(t,"components"),{recursive:true,mode:J}),fs.existsSync(ue.join(t,"components/seo"))||fs.mkdirSync(ue.join(t,"components/seo"),{recursive:true,mode:J}),fs.existsSync(ue.join(t,"layouts"))||fs.mkdirSync(ue.join(t,"layouts"),{recursive:true,mode:J}),fs.writeFileSync("tsconfig.json",S.get("astro.tsconfig")),fs.writeFileSync(ue.join(t,"layouts/Layout.astro"),S.get("astro.layout")),fs.writeFileSync(ue.join(t,"components/seo/SEO.astro"),S.get("astro.seo"));}static createRasenganFiles(){let t=P.hasSrcDir()?"src/":"";fs.existsSync(ue.join(t,"components"))||fs.mkdirSync(ue.join(t,"components"),{recursive:true,mode:J}),fs.writeFileSync("rasengan.config.js",S.get("rasengan.config"));}static createReactFiles(e){let t=P.isTypeScript()?"ts":"js";fs.writeFileSync(`vite.config.${t}`,S.get("vite.vanilla"));}};var pr=class{constructor(e,t,i,n,o=new lr(e,n)){this.answers=t;this.framework=i;this.installer=o;}setup(e=false){this.installDependencies(e),this.generateFiles(this.framework);}installDependencies(e){e&&this.installer.baseInstallation(),this.framework==="next"?this.installer.installTailwindCSSForNextJS():this.installer.installTailwindCSS(),this.answers.framework==="vite"||this.answers.framework,this.installer.installIconLibrary(this.answers.iconLibrary),this.installer.installShadcnCli();}generateFiles(e){hr.generateBaseFiles(e,this.answers);}};var Ce={error:gr__default.default.red,warn:gr__default.default.yellow,info:gr__default.default.cyan,success:gr__default.default.green};var x={error(...r){console.log(Ce.error(r.join(" ")));},warn(...r){console.log(Ce.warn(r.join(" ")));},info(...r){console.log(Ce.info(r.join(" ")));},success(...r){console.log(Ce.success(r.join(" ")));},log(...r){console.log(r.join(" "));},break(){console.log("");}};var hn=()=>{},pn=()=>{let r=ue.join(process.cwd(),"flexi-cli.json");if(!fs.existsSync(r))return false;try{let e=fs.readFileSync(r,"utf-8"),t=JSON.parse(e),i=["framework","defaultSource","registries"];for(let n of i)if(!(n in t))return !1;return !(!Array.isArray(t.registries)||t.registries.length===0)}catch{return false}},ct=r=>{if(!r)return r;let e=String(r).trim().replace(/\\/g,"/");return e=e.replace(/^\.\//,""),e=e.replace(/\/+/,"/"),e.endsWith("/")||(e+="/"),e},ft=r=>{let e=n=>n.startsWith("/")||/^[A-Za-z]:[\\/]/.test(n),i=zod.z.string().min(1,"Path is required").refine(n=>!e(n),"Please provide a relative path (do not start with a drive letter or '/')").refine(n=>!n.includes("../"),"Path cannot contain '..'").regex(/^[A-Za-z0-9_\-\.\/]+$/,"Path contains invalid characters").safeParse(String(r??"").trim());return i.success?true:i.error.issues[0]?.message||"Invalid path"};var vr=class{get(){return [{type:"select",name:"theme",message:"\u{1F3A8} Which theme would you like to use?",choices:un.map(e=>({title:e.title,value:e.value,selected:e.selected}))},{type:"select",name:"themingMode",message:"Your theming mode",choices:fn.map(e=>({title:e.title,value:e.value,selected:e.selected}))},{type:"select",name:"iconLibrary",message:"\u{1F3A8} Which Icon Library would you like to use?",choices:Re.map(e=>({title:e.title,value:e.value,selected:e.selected}))}]}async askFolders(e){let t=P.hasSrcDir(),i=e==="next"&&fs.existsSync(ue.join(process.cwd(),"app")),n=lt.find(s=>s.framework===e)??{cssPath:i?"styles":"src/styles"},o={cssPath:t?n.cssPath:n.cssPath?.startsWith("src/")?n.cssPath.replace("src/",""):n.cssPath,libPath:t?"src/lib":"lib"},a=await cs__default.default([{type:"text",name:"cssPath",message:"Path to the CSS file",initial:o.cssPath,validate:s=>ft(s),format:s=>ct(s)},{type:"text",name:"libPath",message:"Path to the lib utils folder",initial:o.libPath,validate:s=>ft(s),format:s=>ct(s)}]);return {cssPath:a.cssPath,libPath:a.libPath}}};var mr=class{constructor(e=new vr){this.themingPrompts=e;}supportedFrameworks=["astro","rasengan","react","react-js","react-ts","tanstack-start","tanstack-router","react-router","inertia-react","next"];async initialize(e){let t={projectName:P.getProjectName(),framework:"",theme:"",cssPath:"",themingMode:"both",iconLibrary:"",libPath:""};if(e.cwd&&e.cwd!==process.cwd()&&process.chdir(e.cwd),!P.hasPackageJson(process.cwd()))x.error("\u2718 No package.json found."),x.info("Please create a project first using your framework's CLI."),x.info("Example: npm create vite@latest"),process.exit(0);else {let i=P.detect();!this.supportedFrameworks.includes(i)&&!["vite-js","vite-ts"].includes(i)&&(x.error(`\u274C Sorry, the CLI does not support the '${i}' framework for the moment.`),x.info("Supported frameworks: Astro, React, Rasengan, Tanstack Start, Tanstack Router, React Router 7, Inertia React"),process.exit(0));let n=i;t=await this.handleInitInProject(n,e);}return {projectAnswers:t}}async handleInitInProject(e,t){x.info(`\u{1F4E6} Detected ${e} project`),P.checkTailwindCSS()||x.info("\u2139\uFE0F Tailwind CSS will be configured for your project");let n=await cs__default.default(this.themingPrompts.get()),o="",a=t.libPath||"";if(t.cssPath&&(o=t.cssPath),o===""){let s=await this.themingPrompts.askFolders(e);o=s.cssPath,a=s.libPath;}return {projectName:P.getProjectName(),framework:e,theme:n.theme,themingMode:n.themingMode,iconLibrary:n.iconLibrary,cssPath:o,libPath:a}}};var _r=r=>{r instanceof Error?x.error(r.message):x.error("An unexpected error occurred"),process.exit(1);};var gn=new commander.Command("init").description("Initialize a new project or configure an existing one").option("--css-path <path>","Path to the CSS file, Only For Vite Vanilla and Astro").option("-c, --cwd <cwd>","the working directory. defaults to the current directory.",process.cwd()).action(async r=>{try{let e={cssPath:r.cssPath,cwd:r.cwd};if(pn()){x.info("Project already initialized");return}hn();let t=new mr,i=H(),{projectAnswers:n}=await t.initialize(e),o=de.detectPackageManager();new pr(n.projectName,n,n.framework,o).setup(!1),i.succeed("Project setup successfully"),i.stop();}catch(e){_r(e);}});var vn=[{ph:"ph--house",hugeicons:"hugeicons--home-03",heroicons:"heroicons--home-solid",lucide:"lucide--home"},{ph:"ph--check",hugeicons:"hugeicons--check-mark-01",heroicons:"heroicons--check-solid",lucide:"lucide--check"},{ph:"ph--x",hugeicons:"hugeicons--cancel-01",heroicons:"heroicons--x-mark-solid",lucide:"lucide--x"},{ph:"ph--chevron-down",hugeicons:"hugeicons--arrow-down-01",heroicons:"heroicons--chevron-down-solid",lucide:"lucide--chevron-down"},{ph:"ph--plus",hugeicons:"hugeicons--plus-01",heroicons:"heroicons--plus-solid",lucide:"lucide--plus"},{ph:"ph--trash",hugeicons:"hugeicons--delete-02",heroicons:"heroicons--trash-solid",lucide:"lucide--trash-2"},{ph:"ph--user",hugeicons:"hugeicons--user",heroicons:"heroicons--user-solid",lucide:"lucide--user"},{ph:"ph--gear",hugeicons:"hugeicons--settings-02",heroicons:"heroicons--cog-6-tooth-solid",lucide:"lucide--settings"},{ph:"ph--magnifying-glass",hugeicons:"hugeicons--search-02",heroicons:"heroicons--magnifying-glass-solid",lucide:"lucide--search"},{ph:"ph--bell",hugeicons:"hugeicons--notification-03",heroicons:"heroicons--bell-solid",lucide:"lucide--bell"},{ph:"ph--calendar",hugeicons:"hugeicons--calendar-03",heroicons:"heroicons--calendar-solid",lucide:"lucide--calendar"},{ph:"ph--envelope",hugeicons:"hugeicons--mail-02",heroicons:"heroicons--envelope-solid",lucide:"lucide--mail"},{ph:"ph--eye",hugeicons:"hugeicons--view",heroicons:"heroicons--eye-solid",lucide:"lucide--eye"},{ph:"ph--eye-slash",hugeicons:"hugeicons--view-off",heroicons:"heroicons--eye-slash-solid",lucide:"lucide--eye-off"},{ph:"ph--arrow-right",hugeicons:"hugeicons--arrow-right-01",heroicons:"heroicons--arrow-right-solid",lucide:"lucide--arrow-right"},{ph:"ph--arrow-left",hugeicons:"hugeicons--arrow-left-01",heroicons:"heroicons--arrow-left-solid",lucide:"lucide--arrow-left"},{ph:"ph--pencil",hugeicons:"hugeicons--pencil-edit-02",heroicons:"heroicons--pencil-solid",lucide:"lucide--pencil"},{ph:"ph--info",hugeicons:"hugeicons--information-circle",heroicons:"heroicons--information-circle-solid",lucide:"lucide--info"},{ph:"ph--warning",hugeicons:"hugeicons--alert-circle",heroicons:"heroicons--exclamation-circle-solid",lucide:"lucide--alert-circle"},{ph:"ph--list",hugeicons:"hugeicons--menu-01",heroicons:"heroicons--bars-3-solid",lucide:"lucide--menu"}];var bn=new commander.Command("fix-icons").description("Scan components and replace Phosphor icons with the selected icon library").action(async()=>{try{let r=process.cwd(),e=ue.join(r,"components.json");if(!fs.existsSync(e)){x.error("\u2718 No components.json found. Please initialize the project first.");return}let i=JSON.parse(fs.readFileSync(e,"utf-8")).iconLibrary;if(!i){x.error("\u2718 No icon library specified in components.json.");return}if(i==="ph"){x.info("\u2139 Your project is already using Phosphor icons. No changes needed.");return}let n=P.detect(),o="";if(n==="inertia-react"||n==="laravel"?o=ue.join(r,"resources","js","components","ui"):P.hasSrcDir()?o=ue.join(r,"src","components","ui"):o=ue.join(r,"components","ui"),!fs.existsSync(o)){x.warn(`\u26A0 components/ui directory not found at: ${o}`);return}x.info(`\u{1F50D} Scanning ${o} for icons to replace with ${i}...`);let a=yn(o),s=0,l=[];for(let d of a){let m=fs.readFileSync(d,"utf-8"),y=[],T=/ph--([a-z0-9-]+)/g,h;for(;(h=T.exec(m))!==null;){let I=h[0],w=h[1],B=vn.find(Ie=>Ie.ph===I);B&&B[i]&&y.push({from:I,to:B[i]});}y.length>0&&(s+=y.length,l.push({path:d,content:m,replacements:y}));}if(s===0){x.info("\u2728 No Phosphor icons were found in your components.");return}if(!(await cs__default.default({type:"confirm",name:"value",message:`Found ${s} icons in ${l.length} files. Do you want to replace them with ${i} icons?`,initial:!0})).value){x.info("Operation cancelled.");return}let g=H();g.start("Replacing icons...");for(let d of l){let m=d.content;for(let y of d.replacements)m=m.replace(new RegExp(y.from,"g"),y.to);fs.writeFileSync(d.path,m);}g.succeed(`Successfully replaced ${s} icons in ${l.length} files.`);}catch(r){_r(r);}});function yn(r,e=[]){return fs.readdirSync(r).forEach(i=>{let n=ue.join(r,i);if(fs.statSync(n).isDirectory())e=yn(n,e);else {let o=ue.extname(n);[".tsx",".jsx",".ts",".js",".astro"].includes(o)&&e.push(n);}}),e}var As=url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))),Is=ue.dirname(As);process.on("SIGINT",()=>process.exit(0));process.on("SIGTERM",()=>process.exit(0));async function Ms(){let r=ue.resolve(Is,"../package.json"),e=JSON.parse(fs.readFileSync(r,"utf-8")),t=new commander.Command().name("jk-ui-cli").description("A CLI tool for rapidly scaffolding ReactJS based applications using JK UI").version(e.version||"0.0.1","-v, --version","display the version number");t.addCommand(gn),t.addCommand(bn),t.parse();}Ms();
|
|
364
364
|
/*! Bundled license information:
|
|
365
365
|
|
|
366
366
|
safe-buffer/index.js:
|