jk-ui-cli 0.0.8 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/package.json +1 -1
- package/stubs/themes/caffeine.stub +103 -0
- package/stubs/themes/claude.stub +103 -0
- package/stubs/themes/spotify.stub +103 -0
- package/stubs/uno.config.stub +0 -5
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'),we=require('path'),child_process=require('child_process'),url=require('url'),Rt=require('prompts'),vt=require('chalk'),zod=require('zod');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var we__default=/*#__PURE__*/_interopDefault(we);var Rt__default=/*#__PURE__*/_interopDefault(Rt);var vt__default=/*#__PURE__*/_interopDefault(vt);var Ln=Object.create;var xr=Object.defineProperty;var On=Object.getOwnPropertyDescriptor;var Bn=Object.getOwnPropertyNames;var Fn=Object.getPrototypeOf,Nn=Object.prototype.hasOwnProperty;var D=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var qn=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Bn(e))!Nn.call(t,n)&&n!==r&&xr(t,n,{get:()=>e[n],enumerable:!(i=On(e,n))||i.enumerable});return t};var $n=(t,e,r)=>(r=t!=null?Ln(Fn(t)):{},qn(xr(r,"default",{value:t,enumerable:true}),t));var Er=f((cl,Tt)=>{var Sr=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Tt.exports=Sr;Tt.exports.default=Sr;});var kr=f((ul,Ue)=>{var Un=Er(),$e=new WeakMap,Rr=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",o=function(...s){if($e.set(o,++i),i===1)r=t.apply(this,s),t=null;else if(e.throw===true)throw new Error(`Function \`${n}\` can only be called once`);return r};return Un(o,t),$e.set(o,i),o};Ue.exports=Rr;Ue.exports.default=Rr;Ue.exports.callCount=t=>{if(!$e.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return $e.get(t)};});var Pr=f((fl,We)=>{We.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&We.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&We.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");});var Mr=f((hl,pe)=>{var x=global.process,re=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};re(x)?(Tr=D("assert"),he=Pr(),Cr=/^win/i.test(x.platform),xe=D("events"),typeof xe!="function"&&(xe=xe.EventEmitter),x.__signal_exit_emitter__?M=x.__signal_exit_emitter__:(M=x.__signal_exit_emitter__=new xe,M.count=0,M.emitted={}),M.infinite||(M.setMaxListeners(1/0),M.infinite=true),pe.exports=function(t,e){if(!re(global.process))return function(){};Tr.equal(typeof t,"function","a callback must be provided for exit handler"),de===false&&Ct();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){M.removeListener(r,t),M.listeners("exit").length===0&&M.listeners("afterexit").length===0&&Ge();};return M.on(r,t),i},Ge=function(){!de||!re(global.process)||(de=false,he.forEach(function(e){try{x.removeListener(e,He[e]);}catch{}}),x.emit=Je,x.reallyExit=It,M.count-=1);},pe.exports.unload=Ge,ie=function(e,r,i){M.emitted[e]||(M.emitted[e]=true,M.emit(e,r,i));},He={},he.forEach(function(t){He[t]=function(){if(re(global.process)){var r=x.listeners(t);r.length===M.count&&(Ge(),ie("exit",null,t),ie("afterexit",null,t),Cr&&t==="SIGHUP"&&(t="SIGINT"),x.kill(x.pid,t));}};}),pe.exports.signals=function(){return he},de=false,Ct=function(){de||!re(global.process)||(de=true,M.count+=1,he=he.filter(function(e){try{return x.on(e,He[e]),!0}catch{return false}}),x.emit=Ar,x.reallyExit=Ir);},pe.exports.load=Ct,It=x.reallyExit,Ir=function(e){re(global.process)&&(x.exitCode=e||0,ie("exit",x.exitCode,null),ie("afterexit",x.exitCode,null),It.call(x,x.exitCode));},Je=x.emit,Ar=function(e,r){if(e==="exit"&&re(global.process)){r!==void 0&&(x.exitCode=r);var i=Je.apply(this,arguments);return ie("exit",x.exitCode,null),ie("afterexit",x.exitCode,null),i}else return Je.apply(this,arguments)}):pe.exports=function(){return function(){}};var Tr,he,Cr,xe,M,Ge,ie,He,de,Ct,It,Ir,Je,Ar;});var Dr=f((dl,jr)=>{var Wn=kr(),Gn=Mr();jr.exports=Wn(()=>{Gn(()=>{process.stderr.write("\x1B[?25h");},{alwaysLast:true});});});var Lr=f(ge=>{var Hn=Dr(),Ve=false;ge.show=(t=process.stderr)=>{t.isTTY&&(Ve=false,t.write("\x1B[?25h"));};ge.hide=(t=process.stderr)=>{t.isTTY&&(Hn(),Ve=true,t.write("\x1B[?25l"));};ge.toggle=(t,e)=>{t!==void 0&&(Ve=t),Ve?ge.show(e):ge.hide(e);};});var Or=f((gl,Jn)=>{Jn.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 Nr=f((ml,Fr)=>{var ze=Object.assign({},Or()),Br=Object.keys(ze);Object.defineProperty(ze,"random",{get(){let t=Math.floor(Math.random()*Br.length),e=Br[t];return ze[e]}});Fr.exports=ze;});var At=f((_l,qr)=>{qr.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 Ur=f((yl,$r)=>{var z=D("chalk"),Vn=At(),zn={info:z.blue("\u2139"),success:z.green("\u2714"),warning:z.yellow("\u26A0"),error:z.red("\u2716")},Yn={info:z.blue("i"),success:z.green("\u221A"),warning:z.yellow("\u203C"),error:z.red("\xD7")};$r.exports=Vn()?zn:Yn;});var Gr=f((bl,Wr)=>{Wr.exports=({onlyFirst:t=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,t?void 0:"g")};});var Jr=f((wl,Hr)=>{var Kn=Gr();Hr.exports=t=>typeof t=="string"?t.replace(Kn(),""):t;});var Vr=f((vl,Ye)=>{var Xn=(function(){function t(s,a,l,u){typeof a=="object"&&(l=a.depth,u=a.prototype,a.filter,a=a.circular);var d=[],y=[],T=typeof Buffer<"u";typeof a>"u"&&(a=true),typeof l>"u"&&(l=1/0);function S(m,I){if(m===null)return null;if(I==0)return m;var b,E;if(typeof m!="object")return m;if(t.__isArray(m))b=[];else if(t.__isRegExp(m))b=new RegExp(m.source,o(m)),m.lastIndex&&(b.lastIndex=m.lastIndex);else if(t.__isDate(m))b=new Date(m.getTime());else {if(T&&Buffer.isBuffer(m))return Buffer.allocUnsafe?b=Buffer.allocUnsafe(m.length):b=new Buffer(m.length),m.copy(b),b;typeof u>"u"?(E=Object.getPrototypeOf(m),b=Object.create(E)):(b=Object.create(u),E=u);}if(a){var P=d.indexOf(m);if(P!=-1)return y[P];d.push(m),y.push(b);}for(var A in m){var H;E&&(H=Object.getOwnPropertyDescriptor(E,A)),!(H&&H.set==null)&&(b[A]=S(m[A],I-1));}return b}return S(s,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(s){return Object.prototype.toString.call(s)}t.__objToStr=e;function r(s){return typeof s=="object"&&e(s)==="[object Date]"}t.__isDate=r;function i(s){return typeof s=="object"&&e(s)==="[object Array]"}t.__isArray=i;function n(s){return typeof s=="object"&&e(s)==="[object RegExp]"}t.__isRegExp=n;function o(s){var a="";return s.global&&(a+="g"),s.ignoreCase&&(a+="i"),s.multiline&&(a+="m"),a}return t.__getRegExpFlags=o,t})();typeof Ye=="object"&&Ye.exports&&(Ye.exports=Xn);});var Yr=f((xl,zr)=>{var Zn=Vr();zr.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Zn(e[r]));}),t};});var Xr=f((Sl,Kr)=>{Kr.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 ti=f((El,Mt)=>{var Qn=Yr(),Se=Xr(),Qr={nul:0,control:0};Mt.exports=function(e){return ei(e,Qr)};Mt.exports.config=function(t){return t=Qn(t||{},Qr),function(r){return ei(r,t)}};function ei(t,e){if(typeof t!="string")return Zr(t,e);for(var r=0,i=0;i<t.length;i++){var n=Zr(t.charCodeAt(i),e);if(n<0)return -1;r+=n;}return r}function Zr(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:eo(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function eo(t){var e=0,r=Se.length-1,i;if(t<Se[0][0]||t>Se[r][1])return false;for(;r>=e;)if(i=Math.floor((e+r)/2),t>Se[i][1])e=i+1;else if(t<Se[i][0])r=i-1;else return true;return false}});var ii=f((Rl,ri)=>{ri.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env));});var jt=f((kl,ni)=>{ni.exports=D("stream");});var ui=f((Pl,ci)=>{function oi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i);}return r}function si(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?oi(Object(r),true).forEach(function(i){to(t,i,r[i]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oi(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i));});}return t}function to(t,e,r){return e=li(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true}):t[e]=r,t}function ro(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ai(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||false,i.configurable=true,"value"in i&&(i.writable=true),Object.defineProperty(t,li(i.key),i);}}function io(t,e,r){return e&&ai(t.prototype,e),Object.defineProperty(t,"prototype",{writable:false}),t}function li(t){var e=no(t,"string");return typeof e=="symbol"?e:String(e)}function no(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (String)(t)}var oo=D("buffer"),Ke=oo.Buffer,so=D("util"),Dt=so.inspect,ao=Dt&&Dt.custom||"inspect";function lo(t,e,r){Ke.prototype.copy.call(t,e,r);}ci.exports=(function(){function t(){ro(this,t),this.head=null,this.tail=null,this.length=0;}return io(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length;}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length;}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0;}},{key:"join",value:function(r){if(this.length===0)return "";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return Ke.alloc(0);for(var i=Ke.allocUnsafe(r>>>0),n=this.head,o=0;n;)lo(n.data,i,o),o+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,o=i.data;for(r-=o.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++n;}return this.length-=n,o}},{key:"_getBuffer",value:function(r){var i=Ke.allocUnsafe(r),n=this.head,o=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(s.copy(i,i.length-r,0,a),r-=a,r===0){a===s.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++o;}return this.length-=o,i}},{key:ao,value:function(r,i){return Dt(this,si(si({},i),{},{depth:0,customInspect:false}))}}]),t})();});var Ot=f((Tl,hi)=>{function co(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=true,process.nextTick(Lt,this,t)):process.nextTick(Lt,this,t)),this):(this._readableState&&(this._readableState.destroyed=true),this._writableState&&(this._writableState.destroyed=true),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(Xe,r):(r._writableState.errorEmitted=true,process.nextTick(fi,r,o)):process.nextTick(fi,r,o):e?(process.nextTick(Xe,r),e(o)):process.nextTick(Xe,r);}),this)}function fi(t,e){Lt(t,e),Xe(t);}function Xe(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close");}function uo(){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 Lt(t,e){t.emit("error",e);}function fo(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e);}hi.exports={destroy:co,undestroy:uo,errorOrDestroy:fo};});var Y=f((Cl,gi)=>{var pi={};function F(t,e,r){r||(r=Error);function i(o,s,a){return typeof e=="string"?e:e(o,s,a)}class n extends r{constructor(s,a,l){super(i(s,a,l));}}n.prototype.name=r.name,n.prototype.code=t,pi[t]=n;}function di(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(i=>String(i)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return `of ${e} ${String(t)}`}function ho(t,e,r){return t.substr(0,e.length)===e}function po(t,e,r){return (r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function go(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?false:t.indexOf(e,r)!==-1}F("ERR_INVALID_OPT_VALUE",function(t,e){return 'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);F("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&ho(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let n;if(po(t," argument"))n=`The ${t} ${i} ${di(e,"type")}`;else {let o=go(t,".")?"property":"argument";n=`The "${t}" ${o} ${i} ${di(e,"type")}`;}return n+=`. Received type ${typeof r}`,n},TypeError);F("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");F("ERR_METHOD_NOT_IMPLEMENTED",function(t){return "The "+t+" method is not implemented"});F("ERR_STREAM_PREMATURE_CLOSE","Premature close");F("ERR_STREAM_DESTROYED",function(t){return "Cannot call "+t+" after a stream was destroyed"});F("ERR_MULTIPLE_CALLBACK","Callback called multiple times");F("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");F("ERR_STREAM_WRITE_AFTER_END","write after end");F("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);F("ERR_UNKNOWN_ENCODING",function(t){return "Unknown encoding: "+t},TypeError);F("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");gi.exports.codes=pi;});var Bt=f((Il,mi)=>{var mo=Y().codes.ERR_INVALID_OPT_VALUE;function _o(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function yo(t,e,r,i){var n=_o(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var o=i?r:"highWaterMark";throw new mo(o,n)}return Math.floor(n)}return t.objectMode?16:16*1024}mi.exports={getHighWaterMark:yo};});var _i=f((Al,Ft)=>{typeof Object.create=="function"?Ft.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}}));}:Ft.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e;}};});var ne=f((Ml,qt)=>{try{if(Nt=D("util"),typeof Nt.inherits!="function")throw "";qt.exports=Nt.inherits;}catch{qt.exports=_i();}var Nt;});var bi=f((jl,yi)=>{yi.exports=D("util").deprecate;});var Wt=f((Dl,Ri)=>{Ri.exports=k;function vi(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Ho(e,t);};}var me;k.WritableState=Re;var bo={deprecate:bi()},xi=jt(),Qe=D("buffer").Buffer,wo=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function vo(t){return Qe.from(t)}function xo(t){return Qe.isBuffer(t)||t instanceof wo}var Ut=Ot(),So=Bt(),Eo=So.getHighWaterMark,K=Y().codes,Ro=K.ERR_INVALID_ARG_TYPE,ko=K.ERR_METHOD_NOT_IMPLEMENTED,Po=K.ERR_MULTIPLE_CALLBACK,To=K.ERR_STREAM_CANNOT_PIPE,Co=K.ERR_STREAM_DESTROYED,Io=K.ERR_STREAM_NULL_VALUES,Ao=K.ERR_STREAM_WRITE_AFTER_END,Mo=K.ERR_UNKNOWN_ENCODING,_e=Ut.errorOrDestroy;ne()(k,xi);function jo(){}function Re(t,e,r){me=me||oe(),t=t||{},typeof r!="boolean"&&(r=e instanceof me),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Eo(this,t,"writableHighWaterMark",r),this.finalCalled=false,this.needDrain=false,this.ending=false,this.ended=false,this.finished=false,this.destroyed=false;var i=t.decodeStrings===false;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=false,this.corked=0,this.sync=true,this.bufferProcessing=false,this.onwrite=function(n){qo(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=t.emitClose!==false,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new vi(this);}Re.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Re.prototype,"buffer",{get:bo.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")});}catch{}})();var Ze;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ze=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return Ze.call(this,e)?true:this!==k?false:e&&e._writableState instanceof Re}})):Ze=function(e){return e instanceof this};function k(t){me=me||oe();var e=this instanceof me;if(!e&&!Ze.call(k,this))return new k(t);this._writableState=new Re(t,this,e),this.writable=true,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),xi.call(this);}k.prototype.pipe=function(){_e(this,new To);};function Do(t,e){var r=new Ao;_e(t,r),process.nextTick(e,r);}function Lo(t,e,r,i){var n;return r===null?n=new Io:typeof r!="string"&&!e.objectMode&&(n=new Ro("chunk",["string","Buffer"],r)),n?(_e(t,n),process.nextTick(i,n),false):true}k.prototype.write=function(t,e,r){var i=this._writableState,n=false,o=!i.objectMode&&xo(t);return o&&!Qe.isBuffer(t)&&(t=vo(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=jo),i.ending?Do(this,r):(o||Lo(this,i,t,r))&&(i.pendingcb++,n=Bo(this,i,o,t,e,r)),n};k.prototype.cork=function(){this._writableState.corked++;};k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Si(this,t));};k.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 Mo(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(k.prototype,"writableBuffer",{enumerable:false,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Oo(t,e,r){return !t.objectMode&&t.decodeStrings!==false&&typeof e=="string"&&(e=Qe.from(e,r)),e}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function Bo(t,e,r,i,n,o){if(!r){var s=Oo(e,i,n);i!==s&&(r=true,n="buffer",i=s);}var a=e.objectMode?1:i.length;e.length+=a;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:r,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1;}else $t(t,e,false,a,i,n,o);return l}function $t(t,e,r,i,n,o,s){e.writelen=i,e.writecb=s,e.writing=true,e.sync=true,e.destroyed?e.onwrite(new Co("write")):r?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=false;}function Fo(t,e,r,i,n){--e.pendingcb,r?(process.nextTick(n,i),process.nextTick(Ee,t,e),t._writableState.errorEmitted=true,_e(t,i)):(n(i),t._writableState.errorEmitted=true,_e(t,i),Ee(t,e));}function No(t){t.writing=false,t.writecb=null,t.length-=t.writelen,t.writelen=0;}function qo(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new Po;if(No(r),e)Fo(t,r,i,e,n);else {var o=Ei(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Si(t,r),i?process.nextTick(wi,t,r,o,n):wi(t,r,o,n);}}function wi(t,e,r,i){r||$o(t,e),e.pendingcb--,i(),Ee(t,e);}function $o(t,e){e.length===0&&e.needDrain&&(e.needDrain=false,t.emit("drain"));}function Si(t,e){e.bufferProcessing=true;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),o=e.corkedRequestsFree;o.entry=r;for(var s=0,a=true;r;)n[s]=r,r.isBuf||(a=false),r=r.next,s+=1;n.allBuffers=a,$t(t,e,true,e.length,n,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new vi(e),e.bufferedRequestCount=0;}else {for(;r;){var l=r.chunk,u=r.encoding,h=r.callback,d=e.objectMode?1:l.length;if($t(t,e,false,d,l,u,h),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null);}e.bufferedRequest=r,e.bufferProcessing=false;}k.prototype._write=function(t,e,r){r(new ko("_write()"));};k.prototype._writev=null;k.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||Go(this,i,r),this};Object.defineProperty(k.prototype,"writableLength",{enumerable:false,get:function(){return this._writableState.length}});function Ei(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Uo(t,e){t._final(function(r){e.pendingcb--,r&&_e(t,r),e.prefinished=true,t.emit("prefinish"),Ee(t,e);});}function Wo(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=true,process.nextTick(Uo,t,e)):(e.prefinished=true,t.emit("prefinish")));}function Ee(t,e){var r=Ei(e);if(r&&(Wo(t,e),e.pendingcb===0&&(e.finished=true,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy();}return r}function Go(t,e,r){e.ending=true,Ee(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=true,t.writable=false;}function Ho(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next;}e.corkedRequestsFree.next=t;}Object.defineProperty(k.prototype,"destroyed",{enumerable:false,get:function(){return this._writableState===void 0?false:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e);}});k.prototype.destroy=Ut.destroy;k.prototype._undestroy=Ut.undestroy;k.prototype._destroy=function(t,e){e(t);};});var oe=f((Ll,Pi)=>{var Jo=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Pi.exports=$;var ki=Jt(),Ht=Wt();ne()($,ki);for(Gt=Jo(Ht.prototype),et=0;et<Gt.length;et++)tt=Gt[et],$.prototype[tt]||($.prototype[tt]=Ht.prototype[tt]);var Gt,tt,et;function $(t){if(!(this instanceof $))return new $(t);ki.call(this,t),Ht.call(this,t),this.allowHalfOpen=true,t&&(t.readable===false&&(this.readable=false),t.writable===false&&(this.writable=false),t.allowHalfOpen===false&&(this.allowHalfOpen=false,this.once("end",Vo)));}Object.defineProperty($.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});Object.defineProperty($.prototype,"writableBuffer",{enumerable:false,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty($.prototype,"writableLength",{enumerable:false,get:function(){return this._writableState.length}});function Vo(){this._writableState.ended||process.nextTick(zo,this);}function zo(t){t.end();}Object.defineProperty($.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 Ii=f((Vt,Ci)=>{var rt=D("buffer"),U=rt.Buffer;function Ti(t,e){for(var r in t)e[r]=t[r];}U.from&&U.alloc&&U.allocUnsafe&&U.allocUnsafeSlow?Ci.exports=rt:(Ti(rt,Vt),Vt.Buffer=se);function se(t,e,r){return U(t,e,r)}se.prototype=Object.create(U.prototype);Ti(U,se);se.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return U(t,e,r)};se.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=U(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};se.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return U(t)};se.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return rt.SlowBuffer(t)};});var Kt=f(Mi=>{var Yt=Ii().Buffer,Ai=Yt.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return true;default:return false}};function Yo(t){if(!t)return "utf8";for(var e;;)switch(t){case "utf8":case "utf-8":return "utf8";case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return "utf16le";case "latin1":case "binary":return "latin1";case "base64":case "ascii":case "hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=true;}}function Ko(t){var e=Yo(t);if(typeof e!="string"&&(Yt.isEncoding===Ai||!Ai(t)))throw new Error("Unknown encoding: "+t);return e||t}Mi.StringDecoder=ke;function ke(t){this.encoding=Ko(t);var e;switch(this.encoding){case "utf16le":this.text=rs,this.end=is,e=4;break;case "utf8":this.fillLast=Qo,e=4;break;case "base64":this.text=ns,this.end=os,e=3;break;default:this.write=ss,this.end=as;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Yt.allocUnsafe(e);}ke.prototype.write=function(t){if(t.length===0)return "";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return "";r=this.lastNeed,this.lastNeed=0;}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};ke.prototype.end=ts;ke.prototype.text=es;ke.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length;};function zt(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Xo(t,e,r){var i=e.length-1;if(i<r)return 0;var n=zt(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=zt(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=zt(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function Zo(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Qo(t){var e=this.lastTotal-this.lastNeed,r=Zo(this,t);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length;}function es(t,e){var r=Xo(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function ts(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function rs(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function is(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function ns(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function os(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ss(t){return t.toString(this.encoding)}function as(t){return t&&t.length?this.write(t):""}});var it=f((Bl,Li)=>{var ji=Y().codes.ERR_STREAM_PREMATURE_CLOSE;function ls(t){var e=false;return function(){if(!e){e=true;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i);}}}function cs(){}function us(t){return t.setHeader&&typeof t.abort=="function"}function Di(t,e,r){if(typeof e=="function")return Di(t,null,e);e||(e={}),r=ls(r||cs);var i=e.readable||e.readable!==false&&t.readable,n=e.writable||e.writable!==false&&t.writable,o=function(){t.writable||a();},s=t._writableState&&t._writableState.finished,a=function(){n=false,s=true,i||r.call(t);},l=t._readableState&&t._readableState.endEmitted,u=function(){i=false,l=true,n||r.call(t);},h=function(S){r.call(t,S);},d=function(){var S;if(i&&!l)return (!t._readableState||!t._readableState.ended)&&(S=new ji),r.call(t,S);if(n&&!s)return (!t._writableState||!t._writableState.ended)&&(S=new ji),r.call(t,S)},y=function(){t.req.on("finish",a);};return us(t)?(t.on("complete",a),t.on("abort",d),t.req?y():t.on("request",y)):n&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",u),t.on("finish",a),e.error!==false&&t.on("error",h),t.on("close",d),function(){t.removeListener("complete",a),t.removeListener("abort",d),t.removeListener("request",y),t.req&&t.req.removeListener("finish",a),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",h),t.removeListener("close",d);}}Li.exports=Di;});var Bi=f((Fl,Oi)=>{var nt;function X(t,e,r){return e=fs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true}):t[e]=r,t}function fs(t){var e=hs(t,"string");return typeof e=="symbol"?e:String(e)}function hs(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(t)}var ds=it(),Z=Symbol("lastResolve"),ae=Symbol("lastReject"),Pe=Symbol("error"),ot=Symbol("ended"),le=Symbol("lastPromise"),Xt=Symbol("handlePromise"),ce=Symbol("stream");function Q(t,e){return {value:t,done:e}}function ps(t){var e=t[Z];if(e!==null){var r=t[ce].read();r!==null&&(t[le]=null,t[Z]=null,t[ae]=null,e(Q(r,false)));}}function gs(t){process.nextTick(ps,t);}function ms(t,e){return function(r,i){t.then(function(){if(e[ot]){r(Q(void 0,true));return}e[Xt](r,i);},i);}}var _s=Object.getPrototypeOf(function(){}),ys=Object.setPrototypeOf((nt={get stream(){return this[ce]},next:function(){var e=this,r=this[Pe];if(r!==null)return Promise.reject(r);if(this[ot])return Promise.resolve(Q(void 0,true));if(this[ce].destroyed)return new Promise(function(s,a){process.nextTick(function(){e[Pe]?a(e[Pe]):s(Q(void 0,true));});});var i=this[le],n;if(i)n=new Promise(ms(i,this));else {var o=this[ce].read();if(o!==null)return Promise.resolve(Q(o,false));n=new Promise(this[Xt]);}return this[le]=n,n}},X(nt,Symbol.asyncIterator,function(){return this}),X(nt,"return",function(){var e=this;return new Promise(function(r,i){e[ce].destroy(null,function(n){if(n){i(n);return}r(Q(void 0,true));});})}),nt),_s),bs=function(e){var r,i=Object.create(ys,(r={},X(r,ce,{value:e,writable:true}),X(r,Z,{value:null,writable:true}),X(r,ae,{value:null,writable:true}),X(r,Pe,{value:null,writable:true}),X(r,ot,{value:e._readableState.endEmitted,writable:true}),X(r,Xt,{value:function(o,s){var a=i[ce].read();a?(i[le]=null,i[Z]=null,i[ae]=null,o(Q(a,false))):(i[Z]=o,i[ae]=s);},writable:true}),r));return i[le]=null,ds(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[ae];o!==null&&(i[le]=null,i[Z]=null,i[ae]=null,o(n)),i[Pe]=n;return}var s=i[Z];s!==null&&(i[le]=null,i[Z]=null,i[ae]=null,s(Q(void 0,true))),i[ot]=true;}),e.on("readable",gs.bind(null,i)),i};Oi.exports=bs;});var $i=f((Nl,qi)=>{function Fi(t,e,r,i,n,o,s){try{var a=t[o](s),l=a.value;}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,n);}function ws(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var o=t.apply(e,r);function s(l){Fi(o,i,n,s,a,"next",l);}function a(l){Fi(o,i,n,s,a,"throw",l);}s(void 0);})}}function Ni(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i);}return r}function vs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ni(Object(r),true).forEach(function(i){xs(t,i,r[i]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i));});}return t}function xs(t,e,r){return e=Ss(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true}):t[e]=r,t}function Ss(t){var e=Es(t,"string");return typeof e=="symbol"?e:String(e)}function Es(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(t)}var Rs=Y().codes.ERR_INVALID_ARG_TYPE;function ks(t,e,r){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new Rs("iterable",["Iterable"],e);var n=new t(vs({objectMode:true},r)),o=false;n._read=function(){o||(o=true,s());};function s(){return a.apply(this,arguments)}function a(){return a=ws(function*(){try{var l=yield i.next(),u=l.value,h=l.done;h?n.push(null):n.push(yield u)?s():o=!1;}catch(d){n.destroy(d);}}),a.apply(this,arguments)}return n}qi.exports=ks;});var Jt=f(($l,Xi)=>{Xi.exports=_;var ye;_.ReadableState=Hi;D("events").EventEmitter;var Gi=function(e,r){return e.listeners(r).length},Ce=jt(),st=D("buffer").Buffer,Ps=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ts(t){return st.from(t)}function Cs(t){return st.isBuffer(t)||t instanceof Ps}var Zt=D("util"),g;Zt&&Zt.debuglog?g=Zt.debuglog("stream"):g=function(){};var Is=ui(),or=Ot(),As=Bt(),Ms=As.getHighWaterMark,at=Y().codes,js=at.ERR_INVALID_ARG_TYPE,Ds=at.ERR_STREAM_PUSH_AFTER_EOF,Ls=at.ERR_METHOD_NOT_IMPLEMENTED,Os=at.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,be,Qt,er;ne()(_,Ce);var Te=or.errorOrDestroy,tr=["error","close","destroy","pause","resume"];function Bs(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]];}function Hi(t,e,r){ye=ye||oe(),t=t||{},typeof r!="boolean"&&(r=e instanceof ye),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Ms(this,t,"readableHighWaterMark",r),this.buffer=new Is,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=t.emitClose!==false,this.autoDestroy=!!t.autoDestroy,this.destroyed=false,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=false,this.decoder=null,this.encoding=null,t.encoding&&(be||(be=Kt().StringDecoder),this.decoder=new be(t.encoding),this.encoding=t.encoding);}function _(t){if(ye=ye||oe(),!(this instanceof _))return new _(t);var e=this instanceof ye;this._readableState=new Hi(t,this,e),this.readable=true,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Ce.call(this);}Object.defineProperty(_.prototype,"destroyed",{enumerable:false,get:function(){return this._readableState===void 0?false:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e);}});_.prototype.destroy=or.destroy;_.prototype._undestroy=or.undestroy;_.prototype._destroy=function(t,e){e(t);};_.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=true:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=st.from(t,e),e=""),i=true),Ji(this,t,e,false,i)};_.prototype.unshift=function(t){return Ji(this,t,null,true,false)};function Ji(t,e,r,i,n){g("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=false,qs(t,o);else {var s;if(n||(s=Fs(o,e)),s)Te(t,s);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==st.prototype&&(e=Ts(e)),i)o.endEmitted?Te(t,new Os):rr(t,o,e,true);else if(o.ended)Te(t,new Ds);else {if(o.destroyed)return false;o.reading=false,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?rr(t,o,e,false):nr(t,o)):rr(t,o,e,false);}else i||(o.reading=false,nr(t,o));}return !o.ended&&(o.length<o.highWaterMark||o.length===0)}function rr(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&<(t)),nr(t,e);}function Fs(t,e){var r;return !Cs(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new js("chunk",["string","Buffer","Uint8Array"],e)),r}_.prototype.isPaused=function(){return this._readableState.flowing===false};_.prototype.setEncoding=function(t){be||(be=Kt().StringDecoder);var e=new be(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Ui=1073741824;function Ns(t){return t>=Ui?t=Ui:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Wi(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=Ns(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=true,0))}_.prototype.read=function(t){g("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=false),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return g("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ir(this):lt(this),null;if(t=Wi(t,e),t===0&&e.ended)return e.length===0&&ir(this),null;var i=e.needReadable;g("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=true,g("length less than watermark",i)),e.ended||e.reading?(i=false,g("reading or ended",i)):i&&(g("do read"),e.reading=true,e.sync=true,e.length===0&&(e.needReadable=true),this._read(e.highWaterMark),e.sync=false,e.reading||(t=Wi(r,e)));var n;return t>0?n=Yi(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=true),r!==t&&e.ended&&ir(this)),n!==null&&this.emit("data",n),n};function qs(t,e){if(g("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length);}e.ended=true,e.sync?lt(t):(e.needReadable=false,e.emittedReadable||(e.emittedReadable=true,Vi(t)));}}function lt(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=false,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=true,process.nextTick(Vi,t));}function Vi(t){var e=t._readableState;g("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=false),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,sr(t);}function nr(t,e){e.readingMore||(e.readingMore=true,process.nextTick($s,t,e));}function $s(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(g("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=false;}_.prototype._read=function(t){Te(this,new Ls("_read()"));};_.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,g("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==false)&&t!==process.stdout&&t!==process.stderr,o=n?a:m;i.endEmitted?process.nextTick(o):r.once("end",o),t.on("unpipe",s);function s(I,b){g("onunpipe"),I===r&&b&&b.hasUnpiped===false&&(b.hasUnpiped=true,h());}function a(){g("onend"),t.end();}var l=Us(r);t.on("drain",l);var u=false;function h(){g("cleanup"),t.removeListener("close",T),t.removeListener("finish",S),t.removeListener("drain",l),t.removeListener("error",y),t.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",d),u=true,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l();}r.on("data",d);function d(I){g("ondata");var b=t.write(I);g("dest.write",b),b===false&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Ki(i.pipes,t)!==-1)&&!u&&(g("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause());}function y(I){g("onerror",I),m(),t.removeListener("error",y),Gi(t,"error")===0&&Te(t,I);}Bs(t,"error",y);function T(){t.removeListener("finish",S),m();}t.once("close",T);function S(){g("onfinish"),t.removeListener("close",T),m();}t.once("finish",S);function m(){g("unpipe"),r.unpipe(t);}return t.emit("pipe",r),i.flowing||(g("pipe resume"),r.resume()),t};function Us(t){return function(){var r=t._readableState;g("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Gi(t,"data")&&(r.flowing=true,sr(t));}}_.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:false};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=false,t&&t.emit("unpipe",this,r),this);if(!t){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 s=Ki(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};_.prototype.on=function(t,e){var r=Ce.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==false&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=true,i.flowing=false,i.emittedReadable=false,g("on readable",i.length,i.reading),i.length?lt(this):i.reading||process.nextTick(Ws,this)),r};_.prototype.addListener=_.prototype.on;_.prototype.removeListener=function(t,e){var r=Ce.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(zi,this),r};_.prototype.removeAllListeners=function(t){var e=Ce.prototype.removeAllListeners.apply(this,arguments);return (t==="readable"||t===void 0)&&process.nextTick(zi,this),e};function zi(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=true:t.listenerCount("data")>0&&t.resume();}function Ws(t){g("readable nexttick read 0"),t.read(0);}_.prototype.resume=function(){var t=this._readableState;return t.flowing||(g("resume"),t.flowing=!t.readableListening,Gs(this,t)),t.paused=false,this};function Gs(t,e){e.resumeScheduled||(e.resumeScheduled=true,process.nextTick(Hs,t,e));}function Hs(t,e){g("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=false,t.emit("resume"),sr(t),e.flowing&&!e.reading&&t.read(0);}_.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==false&&(g("pause"),this._readableState.flowing=false,this.emit("pause")),this._readableState.paused=true,this};function sr(t){var e=t._readableState;for(g("flow",e.flowing);e.flowing&&t.read()!==null;);}_.prototype.wrap=function(t){var e=this,r=this._readableState,i=false;t.on("end",function(){if(g("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s);}e.push(null);}),t.on("data",function(s){if(g("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=e.push(s);a||(i=true,t.pause());}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(a){return function(){return t[a].apply(t,arguments)}})(n));for(var o=0;o<tr.length;o++)t.on(tr[o],this.emit.bind(this,tr[o]));return this._read=function(s){g("wrapped _read",s),i&&(i=false,t.resume());},this};typeof Symbol=="function"&&(_.prototype[Symbol.asyncIterator]=function(){return Qt===void 0&&(Qt=Bi()),Qt(this)});Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(_.prototype,"readableBuffer",{enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(_.prototype,"readableFlowing",{enumerable:false,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e);}});_._fromList=Yi;Object.defineProperty(_.prototype,"readableLength",{enumerable:false,get:function(){return this._readableState.length}});function Yi(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function ir(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=true,process.nextTick(Js,e,t));}function Js(t,e){if(g("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=true,e.readable=false,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy();}}typeof Symbol=="function"&&(_.from=function(t,e){return er===void 0&&(er=$i()),er(_,t,e)});function Ki(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return -1}});var ar=f((Ul,Qi)=>{Qi.exports=V;var ct=Y().codes,Vs=ct.ERR_METHOD_NOT_IMPLEMENTED,zs=ct.ERR_MULTIPLE_CALLBACK,Ys=ct.ERR_TRANSFORM_ALREADY_TRANSFORMING,Ks=ct.ERR_TRANSFORM_WITH_LENGTH_0,ut=oe();ne()(V,ut);function Xs(t,e){var r=this._transformState;r.transforming=false;var i=r.writecb;if(i===null)return this.emit("error",new zs);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=false,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark);}function V(t){if(!(this instanceof V))return new V(t);ut.call(this,t),this._transformState={afterTransform:Xs.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=true,this._readableState.sync=false,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Zs);}function Zs(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Zi(t,e,r);}):Zi(this,null,null);}V.prototype.push=function(t,e){return this._transformState.needTransform=false,ut.prototype.push.call(this,t,e)};V.prototype._transform=function(t,e,r){r(new Vs("_transform()"));};V.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark);}};V.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=true,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=true;};V.prototype._destroy=function(t,e){ut.prototype._destroy.call(this,t,function(r){e(r);});};function Zi(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Ks;if(t._transformState.transforming)throw new Ys;return t.push(null)}});var rn=f((Wl,tn)=>{tn.exports=Ie;var en=ar();ne()(Ie,en);function Ie(t){if(!(this instanceof Ie))return new Ie(t);en.call(this,t);}Ie.prototype._transform=function(t,e,r){r(null,t);};});var ln=f((Gl,an)=>{var lr;function Qs(t){var e=false;return function(){e||(e=true,t.apply(void 0,arguments));}}var sn=Y().codes,ea=sn.ERR_MISSING_ARGS,ta=sn.ERR_STREAM_DESTROYED;function nn(t){if(t)throw t}function ra(t){return t.setHeader&&typeof t.abort=="function"}function ia(t,e,r,i){i=Qs(i);var n=false;t.on("close",function(){n=true;}),lr===void 0&&(lr=it()),lr(t,{readable:e,writable:r},function(s){if(s)return i(s);n=true,i();});var o=false;return function(s){if(!n&&!o){if(o=true,ra(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(s||new ta("pipe"));}}}function on(t){t();}function na(t,e){return t.pipe(e)}function oa(t){return !t.length||typeof t[t.length-1]!="function"?nn:t.pop()}function sa(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=oa(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new ea("streams");var n,o=e.map(function(s,a){var l=a<e.length-1,u=a>0;return ia(s,l,u,function(h){n||(n=h),h&&o.forEach(on),!l&&(o.forEach(on),i(n));})});return e.reduce(na)}an.exports=sa;});var cn=f((N,Me)=>{var Ae=D("stream");process.env.READABLE_STREAM==="disable"&&Ae?(Me.exports=Ae.Readable,Object.assign(Me.exports,Ae),Me.exports.Stream=Ae):(N=Me.exports=Jt(),N.Stream=Ae||N,N.Readable=N,N.Writable=Wt(),N.Duplex=oe(),N.Transform=ar(),N.PassThrough=rn(),N.finished=it(),N.pipeline=ln());});var hn=f((Hl,fn)=>{var{Buffer:q}=D("buffer"),un=Symbol.for("BufferList");function w(t){if(!(this instanceof w))return new w(t);w._init.call(this,t);}w._init=function(e){Object.defineProperty(this,un,{value:true}),this._bufs=[],this.length=0,e&&this.append(e);};w.prototype._new=function(e){return new w(e)};w.prototype._offset=function(e){if(e===0)return [0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let n=r+this._bufs[i].length;if(e<n||i===this._bufs.length-1)return [i,e-r];r=n;}};w.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let i=0;i<e;i++)r+=this._bufs[i].length;return r};w.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};w.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};w.prototype.copy=function(e,r,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||q.alloc(0);let o=!!e,s=this._offset(i),a=n-i,l=a,u=o&&r||0,h=s[1];if(i===0&&n===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:q.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[s[0]].length-h)return o?this._bufs[s[0]].copy(e,r,h,h+l):this._bufs[s[0]].slice(h,h+l);o||(e=q.allocUnsafe(a));for(let d=s[0];d<this._bufs.length;d++){let y=this._bufs[d].length-h;if(l>y)this._bufs[d].copy(e,u,h),u+=y;else {this._bufs[d].copy(e,u,h,h+l),u+=y;break}l-=y,h&&(h=0);}return e.length>u?e.slice(0,u):e};w.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let i=this._offset(e),n=this._offset(r),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)};w.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};w.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};w.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};w.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(q.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(q.from(e));return this};w.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length;};w.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=q.from([t]):typeof t=="string"?t=q.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=q.from(t.buffer,t.byteOffset,t.byteLength):q.isBuffer(t)||(t=q.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let i=this._offset(e),n=i[0],o=i[1];for(;n<this._bufs.length;n++){let s=this._bufs[n];for(;o<s.length;)if(s.length-o>=t.length){let l=s.indexOf(t,o);if(l!==-1)return this._reverseOffset([n,l]);o=s.length-t.length+1;}else {let l=this._reverseOffset([n,o]);if(this._match(l,t))return l;o++;}o=0;}return -1};w.prototype._match=function(t,e){if(this.length-t<e.length)return false;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return false;return true};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?w.prototype[r]=function(i,n){return this.slice(i,i+n)[r](0,n)}:w.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)};})(e);})();w.prototype._isBufferList=function(e){return e instanceof w||w.isBufferList(e)};w.isBufferList=function(e){return e!=null&&e[un]};fn.exports=w;});var dn=f((Jl,ft)=>{var cr=cn().Duplex,aa=ne(),je=hn();function L(t){if(!(this instanceof L))return new L(t);if(typeof t=="function"){this._callback=t;let e=function(i){this._callback&&(this._callback(i),this._callback=null);}.bind(this);this.on("pipe",function(i){i.on("error",e);}),this.on("unpipe",function(i){i.removeListener("error",e);}),t=null;}je._init.call(this,t),cr.call(this);}aa(L,cr);Object.assign(L.prototype,je.prototype);L.prototype._new=function(e){return new L(e)};L.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i();};L.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);};L.prototype.end=function(e){cr.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null);};L.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e);};L.prototype._isBufferList=function(e){return e instanceof L||e instanceof je||L.isBufferList(e)};L.isBufferList=je.isBufferList;ft.exports=L;ft.exports.BufferListStream=L;ft.exports.BufferList=je;});var gn=f((Vl,dr)=>{var la=D("readline"),ca=D("chalk"),pn=Lr(),ht=Nr(),dt=Ur(),ua=Jr(),fa=ti(),ha=ii(),da=At(),{BufferListStream:pa}=dn(),ur=Symbol("text"),fr=Symbol("prefixText"),ga=3,hr=class{constructor(){this.requests=0,this.mutedStream=new pa,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(r,i,...n){let{stdin:o}=process;if(e.requests>0||o.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&i.includes(ga)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,i,...n]);}else Reflect.apply(process.stdin.emit,this,[r,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=la.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);}},pt,gt=class{constructor(e){pt||(pt=new hr),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:ha({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(!da())this._spinner=ht.line;else if(e===void 0)this._spinner=ht.dots;else if(e!=="default"&&ht[e])this._spinner=ht[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[ur]}set text(e){this[ur]=e,this.updateLineCount();}get prefixText(){return this[fr]}set prefixText(e){this[fr]=e,this.updateLineCount();}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[fr],r=" "){return typeof e=="string"?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.stream.columns||80,r=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let i of ua(r+"--"+this[ur]).split(`
|
|
2
|
+
'use strict';var commander=require('commander'),fs=require('fs'),we=require('path'),child_process=require('child_process'),url=require('url'),Rt=require('prompts'),vt=require('chalk'),zod=require('zod');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var we__default=/*#__PURE__*/_interopDefault(we);var Rt__default=/*#__PURE__*/_interopDefault(Rt);var vt__default=/*#__PURE__*/_interopDefault(vt);var Ln=Object.create;var xr=Object.defineProperty;var On=Object.getOwnPropertyDescriptor;var Bn=Object.getOwnPropertyNames;var Fn=Object.getPrototypeOf,Nn=Object.prototype.hasOwnProperty;var L=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var qn=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Bn(e))!Nn.call(t,n)&&n!==r&&xr(t,n,{get:()=>e[n],enumerable:!(i=On(e,n))||i.enumerable});return t};var $n=(t,e,r)=>(r=t!=null?Ln(Fn(t)):{},qn(xr(r,"default",{value:t,enumerable:true}),t));var Er=f((cl,Tt)=>{var Sr=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Tt.exports=Sr;Tt.exports.default=Sr;});var kr=f((ul,Ue)=>{var Un=Er(),$e=new WeakMap,Rr=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",o=function(...s){if($e.set(o,++i),i===1)r=t.apply(this,s),t=null;else if(e.throw===true)throw new Error(`Function \`${n}\` can only be called once`);return r};return Un(o,t),$e.set(o,i),o};Ue.exports=Rr;Ue.exports.default=Rr;Ue.exports.callCount=t=>{if(!$e.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return $e.get(t)};});var Pr=f((fl,We)=>{We.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&We.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&We.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");});var Mr=f((hl,pe)=>{var x=global.process,re=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};re(x)?(Tr=L("assert"),he=Pr(),Cr=/^win/i.test(x.platform),xe=L("events"),typeof xe!="function"&&(xe=xe.EventEmitter),x.__signal_exit_emitter__?M=x.__signal_exit_emitter__:(M=x.__signal_exit_emitter__=new xe,M.count=0,M.emitted={}),M.infinite||(M.setMaxListeners(1/0),M.infinite=true),pe.exports=function(t,e){if(!re(global.process))return function(){};Tr.equal(typeof t,"function","a callback must be provided for exit handler"),de===false&&Ct();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){M.removeListener(r,t),M.listeners("exit").length===0&&M.listeners("afterexit").length===0&&Ge();};return M.on(r,t),i},Ge=function(){!de||!re(global.process)||(de=false,he.forEach(function(e){try{x.removeListener(e,He[e]);}catch{}}),x.emit=Je,x.reallyExit=It,M.count-=1);},pe.exports.unload=Ge,ie=function(e,r,i){M.emitted[e]||(M.emitted[e]=true,M.emit(e,r,i));},He={},he.forEach(function(t){He[t]=function(){if(re(global.process)){var r=x.listeners(t);r.length===M.count&&(Ge(),ie("exit",null,t),ie("afterexit",null,t),Cr&&t==="SIGHUP"&&(t="SIGINT"),x.kill(x.pid,t));}};}),pe.exports.signals=function(){return he},de=false,Ct=function(){de||!re(global.process)||(de=true,M.count+=1,he=he.filter(function(e){try{return x.on(e,He[e]),!0}catch{return false}}),x.emit=Ar,x.reallyExit=Ir);},pe.exports.load=Ct,It=x.reallyExit,Ir=function(e){re(global.process)&&(x.exitCode=e||0,ie("exit",x.exitCode,null),ie("afterexit",x.exitCode,null),It.call(x,x.exitCode));},Je=x.emit,Ar=function(e,r){if(e==="exit"&&re(global.process)){r!==void 0&&(x.exitCode=r);var i=Je.apply(this,arguments);return ie("exit",x.exitCode,null),ie("afterexit",x.exitCode,null),i}else return Je.apply(this,arguments)}):pe.exports=function(){return function(){}};var Tr,he,Cr,xe,M,Ge,ie,He,de,Ct,It,Ir,Je,Ar;});var Dr=f((dl,jr)=>{var Wn=kr(),Gn=Mr();jr.exports=Wn(()=>{Gn(()=>{process.stderr.write("\x1B[?25h");},{alwaysLast:true});});});var Lr=f(ge=>{var Hn=Dr(),Ve=false;ge.show=(t=process.stderr)=>{t.isTTY&&(Ve=false,t.write("\x1B[?25h"));};ge.hide=(t=process.stderr)=>{t.isTTY&&(Hn(),Ve=true,t.write("\x1B[?25l"));};ge.toggle=(t,e)=>{t!==void 0&&(Ve=t),Ve?ge.show(e):ge.hide(e);};});var Or=f((gl,Jn)=>{Jn.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 Nr=f((ml,Fr)=>{var ze=Object.assign({},Or()),Br=Object.keys(ze);Object.defineProperty(ze,"random",{get(){let t=Math.floor(Math.random()*Br.length),e=Br[t];return ze[e]}});Fr.exports=ze;});var At=f((_l,qr)=>{qr.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 Ur=f((yl,$r)=>{var z=L("chalk"),Vn=At(),zn={info:z.blue("\u2139"),success:z.green("\u2714"),warning:z.yellow("\u26A0"),error:z.red("\u2716")},Yn={info:z.blue("i"),success:z.green("\u221A"),warning:z.yellow("\u203C"),error:z.red("\xD7")};$r.exports=Vn()?zn:Yn;});var Gr=f((bl,Wr)=>{Wr.exports=({onlyFirst:t=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,t?void 0:"g")};});var Jr=f((wl,Hr)=>{var Kn=Gr();Hr.exports=t=>typeof t=="string"?t.replace(Kn(),""):t;});var Vr=f((vl,Ye)=>{var Xn=(function(){function t(s,a,l,u){typeof a=="object"&&(l=a.depth,u=a.prototype,a.filter,a=a.circular);var d=[],y=[],T=typeof Buffer<"u";typeof a>"u"&&(a=true),typeof l>"u"&&(l=1/0);function S(m,I){if(m===null)return null;if(I==0)return m;var b,E;if(typeof m!="object")return m;if(t.__isArray(m))b=[];else if(t.__isRegExp(m))b=new RegExp(m.source,o(m)),m.lastIndex&&(b.lastIndex=m.lastIndex);else if(t.__isDate(m))b=new Date(m.getTime());else {if(T&&Buffer.isBuffer(m))return Buffer.allocUnsafe?b=Buffer.allocUnsafe(m.length):b=new Buffer(m.length),m.copy(b),b;typeof u>"u"?(E=Object.getPrototypeOf(m),b=Object.create(E)):(b=Object.create(u),E=u);}if(a){var P=d.indexOf(m);if(P!=-1)return y[P];d.push(m),y.push(b);}for(var A in m){var H;E&&(H=Object.getOwnPropertyDescriptor(E,A)),!(H&&H.set==null)&&(b[A]=S(m[A],I-1));}return b}return S(s,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(s){return Object.prototype.toString.call(s)}t.__objToStr=e;function r(s){return typeof s=="object"&&e(s)==="[object Date]"}t.__isDate=r;function i(s){return typeof s=="object"&&e(s)==="[object Array]"}t.__isArray=i;function n(s){return typeof s=="object"&&e(s)==="[object RegExp]"}t.__isRegExp=n;function o(s){var a="";return s.global&&(a+="g"),s.ignoreCase&&(a+="i"),s.multiline&&(a+="m"),a}return t.__getRegExpFlags=o,t})();typeof Ye=="object"&&Ye.exports&&(Ye.exports=Xn);});var Yr=f((xl,zr)=>{var Zn=Vr();zr.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Zn(e[r]));}),t};});var Xr=f((Sl,Kr)=>{Kr.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 ti=f((El,Mt)=>{var Qn=Yr(),Se=Xr(),Qr={nul:0,control:0};Mt.exports=function(e){return ei(e,Qr)};Mt.exports.config=function(t){return t=Qn(t||{},Qr),function(r){return ei(r,t)}};function ei(t,e){if(typeof t!="string")return Zr(t,e);for(var r=0,i=0;i<t.length;i++){var n=Zr(t.charCodeAt(i),e);if(n<0)return -1;r+=n;}return r}function Zr(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:eo(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function eo(t){var e=0,r=Se.length-1,i;if(t<Se[0][0]||t>Se[r][1])return false;for(;r>=e;)if(i=Math.floor((e+r)/2),t>Se[i][1])e=i+1;else if(t<Se[i][0])r=i-1;else return true;return false}});var ii=f((Rl,ri)=>{ri.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env));});var jt=f((kl,ni)=>{ni.exports=L("stream");});var ui=f((Pl,ci)=>{function oi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i);}return r}function si(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?oi(Object(r),true).forEach(function(i){to(t,i,r[i]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oi(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i));});}return t}function to(t,e,r){return e=li(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true}):t[e]=r,t}function ro(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ai(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||false,i.configurable=true,"value"in i&&(i.writable=true),Object.defineProperty(t,li(i.key),i);}}function io(t,e,r){return e&&ai(t.prototype,e),Object.defineProperty(t,"prototype",{writable:false}),t}function li(t){var e=no(t,"string");return typeof e=="symbol"?e:String(e)}function no(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (String)(t)}var oo=L("buffer"),Ke=oo.Buffer,so=L("util"),Dt=so.inspect,ao=Dt&&Dt.custom||"inspect";function lo(t,e,r){Ke.prototype.copy.call(t,e,r);}ci.exports=(function(){function t(){ro(this,t),this.head=null,this.tail=null,this.length=0;}return io(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length;}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length;}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0;}},{key:"join",value:function(r){if(this.length===0)return "";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return Ke.alloc(0);for(var i=Ke.allocUnsafe(r>>>0),n=this.head,o=0;n;)lo(n.data,i,o),o+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,o=i.data;for(r-=o.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++n;}return this.length-=n,o}},{key:"_getBuffer",value:function(r){var i=Ke.allocUnsafe(r),n=this.head,o=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(s.copy(i,i.length-r,0,a),r-=a,r===0){a===s.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++o;}return this.length-=o,i}},{key:ao,value:function(r,i){return Dt(this,si(si({},i),{},{depth:0,customInspect:false}))}}]),t})();});var Ot=f((Tl,hi)=>{function co(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=true,process.nextTick(Lt,this,t)):process.nextTick(Lt,this,t)),this):(this._readableState&&(this._readableState.destroyed=true),this._writableState&&(this._writableState.destroyed=true),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(Xe,r):(r._writableState.errorEmitted=true,process.nextTick(fi,r,o)):process.nextTick(fi,r,o):e?(process.nextTick(Xe,r),e(o)):process.nextTick(Xe,r);}),this)}function fi(t,e){Lt(t,e),Xe(t);}function Xe(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close");}function uo(){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 Lt(t,e){t.emit("error",e);}function fo(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e);}hi.exports={destroy:co,undestroy:uo,errorOrDestroy:fo};});var Y=f((Cl,gi)=>{var pi={};function F(t,e,r){r||(r=Error);function i(o,s,a){return typeof e=="string"?e:e(o,s,a)}class n extends r{constructor(s,a,l){super(i(s,a,l));}}n.prototype.name=r.name,n.prototype.code=t,pi[t]=n;}function di(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(i=>String(i)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return `of ${e} ${String(t)}`}function ho(t,e,r){return t.substr(0,e.length)===e}function po(t,e,r){return (r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function go(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?false:t.indexOf(e,r)!==-1}F("ERR_INVALID_OPT_VALUE",function(t,e){return 'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);F("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&ho(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let n;if(po(t," argument"))n=`The ${t} ${i} ${di(e,"type")}`;else {let o=go(t,".")?"property":"argument";n=`The "${t}" ${o} ${i} ${di(e,"type")}`;}return n+=`. Received type ${typeof r}`,n},TypeError);F("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");F("ERR_METHOD_NOT_IMPLEMENTED",function(t){return "The "+t+" method is not implemented"});F("ERR_STREAM_PREMATURE_CLOSE","Premature close");F("ERR_STREAM_DESTROYED",function(t){return "Cannot call "+t+" after a stream was destroyed"});F("ERR_MULTIPLE_CALLBACK","Callback called multiple times");F("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");F("ERR_STREAM_WRITE_AFTER_END","write after end");F("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);F("ERR_UNKNOWN_ENCODING",function(t){return "Unknown encoding: "+t},TypeError);F("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");gi.exports.codes=pi;});var Bt=f((Il,mi)=>{var mo=Y().codes.ERR_INVALID_OPT_VALUE;function _o(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function yo(t,e,r,i){var n=_o(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var o=i?r:"highWaterMark";throw new mo(o,n)}return Math.floor(n)}return t.objectMode?16:16*1024}mi.exports={getHighWaterMark:yo};});var _i=f((Al,Ft)=>{typeof Object.create=="function"?Ft.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}}));}:Ft.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e;}};});var ne=f((Ml,qt)=>{try{if(Nt=L("util"),typeof Nt.inherits!="function")throw "";qt.exports=Nt.inherits;}catch{qt.exports=_i();}var Nt;});var bi=f((jl,yi)=>{yi.exports=L("util").deprecate;});var Wt=f((Dl,Ri)=>{Ri.exports=k;function vi(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Ho(e,t);};}var me;k.WritableState=Re;var bo={deprecate:bi()},xi=jt(),Qe=L("buffer").Buffer,wo=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function vo(t){return Qe.from(t)}function xo(t){return Qe.isBuffer(t)||t instanceof wo}var Ut=Ot(),So=Bt(),Eo=So.getHighWaterMark,K=Y().codes,Ro=K.ERR_INVALID_ARG_TYPE,ko=K.ERR_METHOD_NOT_IMPLEMENTED,Po=K.ERR_MULTIPLE_CALLBACK,To=K.ERR_STREAM_CANNOT_PIPE,Co=K.ERR_STREAM_DESTROYED,Io=K.ERR_STREAM_NULL_VALUES,Ao=K.ERR_STREAM_WRITE_AFTER_END,Mo=K.ERR_UNKNOWN_ENCODING,_e=Ut.errorOrDestroy;ne()(k,xi);function jo(){}function Re(t,e,r){me=me||oe(),t=t||{},typeof r!="boolean"&&(r=e instanceof me),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Eo(this,t,"writableHighWaterMark",r),this.finalCalled=false,this.needDrain=false,this.ending=false,this.ended=false,this.finished=false,this.destroyed=false;var i=t.decodeStrings===false;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=false,this.corked=0,this.sync=true,this.bufferProcessing=false,this.onwrite=function(n){qo(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=t.emitClose!==false,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new vi(this);}Re.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Re.prototype,"buffer",{get:bo.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")});}catch{}})();var Ze;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ze=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return Ze.call(this,e)?true:this!==k?false:e&&e._writableState instanceof Re}})):Ze=function(e){return e instanceof this};function k(t){me=me||oe();var e=this instanceof me;if(!e&&!Ze.call(k,this))return new k(t);this._writableState=new Re(t,this,e),this.writable=true,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),xi.call(this);}k.prototype.pipe=function(){_e(this,new To);};function Do(t,e){var r=new Ao;_e(t,r),process.nextTick(e,r);}function Lo(t,e,r,i){var n;return r===null?n=new Io:typeof r!="string"&&!e.objectMode&&(n=new Ro("chunk",["string","Buffer"],r)),n?(_e(t,n),process.nextTick(i,n),false):true}k.prototype.write=function(t,e,r){var i=this._writableState,n=false,o=!i.objectMode&&xo(t);return o&&!Qe.isBuffer(t)&&(t=vo(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=jo),i.ending?Do(this,r):(o||Lo(this,i,t,r))&&(i.pendingcb++,n=Bo(this,i,o,t,e,r)),n};k.prototype.cork=function(){this._writableState.corked++;};k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Si(this,t));};k.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 Mo(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(k.prototype,"writableBuffer",{enumerable:false,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Oo(t,e,r){return !t.objectMode&&t.decodeStrings!==false&&typeof e=="string"&&(e=Qe.from(e,r)),e}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function Bo(t,e,r,i,n,o){if(!r){var s=Oo(e,i,n);i!==s&&(r=true,n="buffer",i=s);}var a=e.objectMode?1:i.length;e.length+=a;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:r,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1;}else $t(t,e,false,a,i,n,o);return l}function $t(t,e,r,i,n,o,s){e.writelen=i,e.writecb=s,e.writing=true,e.sync=true,e.destroyed?e.onwrite(new Co("write")):r?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=false;}function Fo(t,e,r,i,n){--e.pendingcb,r?(process.nextTick(n,i),process.nextTick(Ee,t,e),t._writableState.errorEmitted=true,_e(t,i)):(n(i),t._writableState.errorEmitted=true,_e(t,i),Ee(t,e));}function No(t){t.writing=false,t.writecb=null,t.length-=t.writelen,t.writelen=0;}function qo(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new Po;if(No(r),e)Fo(t,r,i,e,n);else {var o=Ei(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Si(t,r),i?process.nextTick(wi,t,r,o,n):wi(t,r,o,n);}}function wi(t,e,r,i){r||$o(t,e),e.pendingcb--,i(),Ee(t,e);}function $o(t,e){e.length===0&&e.needDrain&&(e.needDrain=false,t.emit("drain"));}function Si(t,e){e.bufferProcessing=true;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),o=e.corkedRequestsFree;o.entry=r;for(var s=0,a=true;r;)n[s]=r,r.isBuf||(a=false),r=r.next,s+=1;n.allBuffers=a,$t(t,e,true,e.length,n,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new vi(e),e.bufferedRequestCount=0;}else {for(;r;){var l=r.chunk,u=r.encoding,h=r.callback,d=e.objectMode?1:l.length;if($t(t,e,false,d,l,u,h),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null);}e.bufferedRequest=r,e.bufferProcessing=false;}k.prototype._write=function(t,e,r){r(new ko("_write()"));};k.prototype._writev=null;k.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||Go(this,i,r),this};Object.defineProperty(k.prototype,"writableLength",{enumerable:false,get:function(){return this._writableState.length}});function Ei(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Uo(t,e){t._final(function(r){e.pendingcb--,r&&_e(t,r),e.prefinished=true,t.emit("prefinish"),Ee(t,e);});}function Wo(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=true,process.nextTick(Uo,t,e)):(e.prefinished=true,t.emit("prefinish")));}function Ee(t,e){var r=Ei(e);if(r&&(Wo(t,e),e.pendingcb===0&&(e.finished=true,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy();}return r}function Go(t,e,r){e.ending=true,Ee(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=true,t.writable=false;}function Ho(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next;}e.corkedRequestsFree.next=t;}Object.defineProperty(k.prototype,"destroyed",{enumerable:false,get:function(){return this._writableState===void 0?false:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e);}});k.prototype.destroy=Ut.destroy;k.prototype._undestroy=Ut.undestroy;k.prototype._destroy=function(t,e){e(t);};});var oe=f((Ll,Pi)=>{var Jo=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Pi.exports=$;var ki=Jt(),Ht=Wt();ne()($,ki);for(Gt=Jo(Ht.prototype),et=0;et<Gt.length;et++)tt=Gt[et],$.prototype[tt]||($.prototype[tt]=Ht.prototype[tt]);var Gt,tt,et;function $(t){if(!(this instanceof $))return new $(t);ki.call(this,t),Ht.call(this,t),this.allowHalfOpen=true,t&&(t.readable===false&&(this.readable=false),t.writable===false&&(this.writable=false),t.allowHalfOpen===false&&(this.allowHalfOpen=false,this.once("end",Vo)));}Object.defineProperty($.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});Object.defineProperty($.prototype,"writableBuffer",{enumerable:false,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty($.prototype,"writableLength",{enumerable:false,get:function(){return this._writableState.length}});function Vo(){this._writableState.ended||process.nextTick(zo,this);}function zo(t){t.end();}Object.defineProperty($.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 Ii=f((Vt,Ci)=>{var rt=L("buffer"),U=rt.Buffer;function Ti(t,e){for(var r in t)e[r]=t[r];}U.from&&U.alloc&&U.allocUnsafe&&U.allocUnsafeSlow?Ci.exports=rt:(Ti(rt,Vt),Vt.Buffer=se);function se(t,e,r){return U(t,e,r)}se.prototype=Object.create(U.prototype);Ti(U,se);se.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return U(t,e,r)};se.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=U(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};se.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return U(t)};se.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return rt.SlowBuffer(t)};});var Kt=f(Mi=>{var Yt=Ii().Buffer,Ai=Yt.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return true;default:return false}};function Yo(t){if(!t)return "utf8";for(var e;;)switch(t){case "utf8":case "utf-8":return "utf8";case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return "utf16le";case "latin1":case "binary":return "latin1";case "base64":case "ascii":case "hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=true;}}function Ko(t){var e=Yo(t);if(typeof e!="string"&&(Yt.isEncoding===Ai||!Ai(t)))throw new Error("Unknown encoding: "+t);return e||t}Mi.StringDecoder=ke;function ke(t){this.encoding=Ko(t);var e;switch(this.encoding){case "utf16le":this.text=rs,this.end=is,e=4;break;case "utf8":this.fillLast=Qo,e=4;break;case "base64":this.text=ns,this.end=os,e=3;break;default:this.write=ss,this.end=as;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Yt.allocUnsafe(e);}ke.prototype.write=function(t){if(t.length===0)return "";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return "";r=this.lastNeed,this.lastNeed=0;}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};ke.prototype.end=ts;ke.prototype.text=es;ke.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length;};function zt(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Xo(t,e,r){var i=e.length-1;if(i<r)return 0;var n=zt(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=zt(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=zt(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function Zo(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Qo(t){var e=this.lastTotal-this.lastNeed,r=Zo(this,t);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length;}function es(t,e){var r=Xo(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function ts(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function rs(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function is(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function ns(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function os(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ss(t){return t.toString(this.encoding)}function as(t){return t&&t.length?this.write(t):""}});var it=f((Bl,Li)=>{var ji=Y().codes.ERR_STREAM_PREMATURE_CLOSE;function ls(t){var e=false;return function(){if(!e){e=true;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i);}}}function cs(){}function us(t){return t.setHeader&&typeof t.abort=="function"}function Di(t,e,r){if(typeof e=="function")return Di(t,null,e);e||(e={}),r=ls(r||cs);var i=e.readable||e.readable!==false&&t.readable,n=e.writable||e.writable!==false&&t.writable,o=function(){t.writable||a();},s=t._writableState&&t._writableState.finished,a=function(){n=false,s=true,i||r.call(t);},l=t._readableState&&t._readableState.endEmitted,u=function(){i=false,l=true,n||r.call(t);},h=function(S){r.call(t,S);},d=function(){var S;if(i&&!l)return (!t._readableState||!t._readableState.ended)&&(S=new ji),r.call(t,S);if(n&&!s)return (!t._writableState||!t._writableState.ended)&&(S=new ji),r.call(t,S)},y=function(){t.req.on("finish",a);};return us(t)?(t.on("complete",a),t.on("abort",d),t.req?y():t.on("request",y)):n&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",u),t.on("finish",a),e.error!==false&&t.on("error",h),t.on("close",d),function(){t.removeListener("complete",a),t.removeListener("abort",d),t.removeListener("request",y),t.req&&t.req.removeListener("finish",a),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",h),t.removeListener("close",d);}}Li.exports=Di;});var Bi=f((Fl,Oi)=>{var nt;function X(t,e,r){return e=fs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true}):t[e]=r,t}function fs(t){var e=hs(t,"string");return typeof e=="symbol"?e:String(e)}function hs(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(t)}var ds=it(),Z=Symbol("lastResolve"),ae=Symbol("lastReject"),Pe=Symbol("error"),ot=Symbol("ended"),le=Symbol("lastPromise"),Xt=Symbol("handlePromise"),ce=Symbol("stream");function Q(t,e){return {value:t,done:e}}function ps(t){var e=t[Z];if(e!==null){var r=t[ce].read();r!==null&&(t[le]=null,t[Z]=null,t[ae]=null,e(Q(r,false)));}}function gs(t){process.nextTick(ps,t);}function ms(t,e){return function(r,i){t.then(function(){if(e[ot]){r(Q(void 0,true));return}e[Xt](r,i);},i);}}var _s=Object.getPrototypeOf(function(){}),ys=Object.setPrototypeOf((nt={get stream(){return this[ce]},next:function(){var e=this,r=this[Pe];if(r!==null)return Promise.reject(r);if(this[ot])return Promise.resolve(Q(void 0,true));if(this[ce].destroyed)return new Promise(function(s,a){process.nextTick(function(){e[Pe]?a(e[Pe]):s(Q(void 0,true));});});var i=this[le],n;if(i)n=new Promise(ms(i,this));else {var o=this[ce].read();if(o!==null)return Promise.resolve(Q(o,false));n=new Promise(this[Xt]);}return this[le]=n,n}},X(nt,Symbol.asyncIterator,function(){return this}),X(nt,"return",function(){var e=this;return new Promise(function(r,i){e[ce].destroy(null,function(n){if(n){i(n);return}r(Q(void 0,true));});})}),nt),_s),bs=function(e){var r,i=Object.create(ys,(r={},X(r,ce,{value:e,writable:true}),X(r,Z,{value:null,writable:true}),X(r,ae,{value:null,writable:true}),X(r,Pe,{value:null,writable:true}),X(r,ot,{value:e._readableState.endEmitted,writable:true}),X(r,Xt,{value:function(o,s){var a=i[ce].read();a?(i[le]=null,i[Z]=null,i[ae]=null,o(Q(a,false))):(i[Z]=o,i[ae]=s);},writable:true}),r));return i[le]=null,ds(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[ae];o!==null&&(i[le]=null,i[Z]=null,i[ae]=null,o(n)),i[Pe]=n;return}var s=i[Z];s!==null&&(i[le]=null,i[Z]=null,i[ae]=null,s(Q(void 0,true))),i[ot]=true;}),e.on("readable",gs.bind(null,i)),i};Oi.exports=bs;});var $i=f((Nl,qi)=>{function Fi(t,e,r,i,n,o,s){try{var a=t[o](s),l=a.value;}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,n);}function ws(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var o=t.apply(e,r);function s(l){Fi(o,i,n,s,a,"next",l);}function a(l){Fi(o,i,n,s,a,"throw",l);}s(void 0);})}}function Ni(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i);}return r}function vs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ni(Object(r),true).forEach(function(i){xs(t,i,r[i]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i));});}return t}function xs(t,e,r){return e=Ss(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true}):t[e]=r,t}function Ss(t){var e=Es(t,"string");return typeof e=="symbol"?e:String(e)}function Es(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(t)}var Rs=Y().codes.ERR_INVALID_ARG_TYPE;function ks(t,e,r){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new Rs("iterable",["Iterable"],e);var n=new t(vs({objectMode:true},r)),o=false;n._read=function(){o||(o=true,s());};function s(){return a.apply(this,arguments)}function a(){return a=ws(function*(){try{var l=yield i.next(),u=l.value,h=l.done;h?n.push(null):n.push(yield u)?s():o=!1;}catch(d){n.destroy(d);}}),a.apply(this,arguments)}return n}qi.exports=ks;});var Jt=f(($l,Xi)=>{Xi.exports=_;var ye;_.ReadableState=Hi;L("events").EventEmitter;var Gi=function(e,r){return e.listeners(r).length},Ce=jt(),st=L("buffer").Buffer,Ps=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ts(t){return st.from(t)}function Cs(t){return st.isBuffer(t)||t instanceof Ps}var Zt=L("util"),g;Zt&&Zt.debuglog?g=Zt.debuglog("stream"):g=function(){};var Is=ui(),or=Ot(),As=Bt(),Ms=As.getHighWaterMark,at=Y().codes,js=at.ERR_INVALID_ARG_TYPE,Ds=at.ERR_STREAM_PUSH_AFTER_EOF,Ls=at.ERR_METHOD_NOT_IMPLEMENTED,Os=at.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,be,Qt,er;ne()(_,Ce);var Te=or.errorOrDestroy,tr=["error","close","destroy","pause","resume"];function Bs(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]];}function Hi(t,e,r){ye=ye||oe(),t=t||{},typeof r!="boolean"&&(r=e instanceof ye),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Ms(this,t,"readableHighWaterMark",r),this.buffer=new Is,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=t.emitClose!==false,this.autoDestroy=!!t.autoDestroy,this.destroyed=false,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=false,this.decoder=null,this.encoding=null,t.encoding&&(be||(be=Kt().StringDecoder),this.decoder=new be(t.encoding),this.encoding=t.encoding);}function _(t){if(ye=ye||oe(),!(this instanceof _))return new _(t);var e=this instanceof ye;this._readableState=new Hi(t,this,e),this.readable=true,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Ce.call(this);}Object.defineProperty(_.prototype,"destroyed",{enumerable:false,get:function(){return this._readableState===void 0?false:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e);}});_.prototype.destroy=or.destroy;_.prototype._undestroy=or.undestroy;_.prototype._destroy=function(t,e){e(t);};_.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=true:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=st.from(t,e),e=""),i=true),Ji(this,t,e,false,i)};_.prototype.unshift=function(t){return Ji(this,t,null,true,false)};function Ji(t,e,r,i,n){g("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=false,qs(t,o);else {var s;if(n||(s=Fs(o,e)),s)Te(t,s);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==st.prototype&&(e=Ts(e)),i)o.endEmitted?Te(t,new Os):rr(t,o,e,true);else if(o.ended)Te(t,new Ds);else {if(o.destroyed)return false;o.reading=false,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?rr(t,o,e,false):nr(t,o)):rr(t,o,e,false);}else i||(o.reading=false,nr(t,o));}return !o.ended&&(o.length<o.highWaterMark||o.length===0)}function rr(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&<(t)),nr(t,e);}function Fs(t,e){var r;return !Cs(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new js("chunk",["string","Buffer","Uint8Array"],e)),r}_.prototype.isPaused=function(){return this._readableState.flowing===false};_.prototype.setEncoding=function(t){be||(be=Kt().StringDecoder);var e=new be(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Ui=1073741824;function Ns(t){return t>=Ui?t=Ui:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Wi(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=Ns(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=true,0))}_.prototype.read=function(t){g("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=false),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return g("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ir(this):lt(this),null;if(t=Wi(t,e),t===0&&e.ended)return e.length===0&&ir(this),null;var i=e.needReadable;g("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=true,g("length less than watermark",i)),e.ended||e.reading?(i=false,g("reading or ended",i)):i&&(g("do read"),e.reading=true,e.sync=true,e.length===0&&(e.needReadable=true),this._read(e.highWaterMark),e.sync=false,e.reading||(t=Wi(r,e)));var n;return t>0?n=Yi(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=true),r!==t&&e.ended&&ir(this)),n!==null&&this.emit("data",n),n};function qs(t,e){if(g("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length);}e.ended=true,e.sync?lt(t):(e.needReadable=false,e.emittedReadable||(e.emittedReadable=true,Vi(t)));}}function lt(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=false,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=true,process.nextTick(Vi,t));}function Vi(t){var e=t._readableState;g("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=false),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,sr(t);}function nr(t,e){e.readingMore||(e.readingMore=true,process.nextTick($s,t,e));}function $s(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(g("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=false;}_.prototype._read=function(t){Te(this,new Ls("_read()"));};_.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,g("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==false)&&t!==process.stdout&&t!==process.stderr,o=n?a:m;i.endEmitted?process.nextTick(o):r.once("end",o),t.on("unpipe",s);function s(I,b){g("onunpipe"),I===r&&b&&b.hasUnpiped===false&&(b.hasUnpiped=true,h());}function a(){g("onend"),t.end();}var l=Us(r);t.on("drain",l);var u=false;function h(){g("cleanup"),t.removeListener("close",T),t.removeListener("finish",S),t.removeListener("drain",l),t.removeListener("error",y),t.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",d),u=true,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l();}r.on("data",d);function d(I){g("ondata");var b=t.write(I);g("dest.write",b),b===false&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Ki(i.pipes,t)!==-1)&&!u&&(g("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause());}function y(I){g("onerror",I),m(),t.removeListener("error",y),Gi(t,"error")===0&&Te(t,I);}Bs(t,"error",y);function T(){t.removeListener("finish",S),m();}t.once("close",T);function S(){g("onfinish"),t.removeListener("close",T),m();}t.once("finish",S);function m(){g("unpipe"),r.unpipe(t);}return t.emit("pipe",r),i.flowing||(g("pipe resume"),r.resume()),t};function Us(t){return function(){var r=t._readableState;g("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Gi(t,"data")&&(r.flowing=true,sr(t));}}_.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:false};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=false,t&&t.emit("unpipe",this,r),this);if(!t){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 s=Ki(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};_.prototype.on=function(t,e){var r=Ce.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==false&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=true,i.flowing=false,i.emittedReadable=false,g("on readable",i.length,i.reading),i.length?lt(this):i.reading||process.nextTick(Ws,this)),r};_.prototype.addListener=_.prototype.on;_.prototype.removeListener=function(t,e){var r=Ce.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(zi,this),r};_.prototype.removeAllListeners=function(t){var e=Ce.prototype.removeAllListeners.apply(this,arguments);return (t==="readable"||t===void 0)&&process.nextTick(zi,this),e};function zi(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=true:t.listenerCount("data")>0&&t.resume();}function Ws(t){g("readable nexttick read 0"),t.read(0);}_.prototype.resume=function(){var t=this._readableState;return t.flowing||(g("resume"),t.flowing=!t.readableListening,Gs(this,t)),t.paused=false,this};function Gs(t,e){e.resumeScheduled||(e.resumeScheduled=true,process.nextTick(Hs,t,e));}function Hs(t,e){g("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=false,t.emit("resume"),sr(t),e.flowing&&!e.reading&&t.read(0);}_.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==false&&(g("pause"),this._readableState.flowing=false,this.emit("pause")),this._readableState.paused=true,this};function sr(t){var e=t._readableState;for(g("flow",e.flowing);e.flowing&&t.read()!==null;);}_.prototype.wrap=function(t){var e=this,r=this._readableState,i=false;t.on("end",function(){if(g("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s);}e.push(null);}),t.on("data",function(s){if(g("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=e.push(s);a||(i=true,t.pause());}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(a){return function(){return t[a].apply(t,arguments)}})(n));for(var o=0;o<tr.length;o++)t.on(tr[o],this.emit.bind(this,tr[o]));return this._read=function(s){g("wrapped _read",s),i&&(i=false,t.resume());},this};typeof Symbol=="function"&&(_.prototype[Symbol.asyncIterator]=function(){return Qt===void 0&&(Qt=Bi()),Qt(this)});Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(_.prototype,"readableBuffer",{enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(_.prototype,"readableFlowing",{enumerable:false,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e);}});_._fromList=Yi;Object.defineProperty(_.prototype,"readableLength",{enumerable:false,get:function(){return this._readableState.length}});function Yi(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function ir(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=true,process.nextTick(Js,e,t));}function Js(t,e){if(g("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=true,e.readable=false,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy();}}typeof Symbol=="function"&&(_.from=function(t,e){return er===void 0&&(er=$i()),er(_,t,e)});function Ki(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return -1}});var ar=f((Ul,Qi)=>{Qi.exports=V;var ct=Y().codes,Vs=ct.ERR_METHOD_NOT_IMPLEMENTED,zs=ct.ERR_MULTIPLE_CALLBACK,Ys=ct.ERR_TRANSFORM_ALREADY_TRANSFORMING,Ks=ct.ERR_TRANSFORM_WITH_LENGTH_0,ut=oe();ne()(V,ut);function Xs(t,e){var r=this._transformState;r.transforming=false;var i=r.writecb;if(i===null)return this.emit("error",new zs);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=false,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark);}function V(t){if(!(this instanceof V))return new V(t);ut.call(this,t),this._transformState={afterTransform:Xs.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=true,this._readableState.sync=false,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Zs);}function Zs(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Zi(t,e,r);}):Zi(this,null,null);}V.prototype.push=function(t,e){return this._transformState.needTransform=false,ut.prototype.push.call(this,t,e)};V.prototype._transform=function(t,e,r){r(new Vs("_transform()"));};V.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark);}};V.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=true,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=true;};V.prototype._destroy=function(t,e){ut.prototype._destroy.call(this,t,function(r){e(r);});};function Zi(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Ks;if(t._transformState.transforming)throw new Ys;return t.push(null)}});var rn=f((Wl,tn)=>{tn.exports=Ie;var en=ar();ne()(Ie,en);function Ie(t){if(!(this instanceof Ie))return new Ie(t);en.call(this,t);}Ie.prototype._transform=function(t,e,r){r(null,t);};});var ln=f((Gl,an)=>{var lr;function Qs(t){var e=false;return function(){e||(e=true,t.apply(void 0,arguments));}}var sn=Y().codes,ea=sn.ERR_MISSING_ARGS,ta=sn.ERR_STREAM_DESTROYED;function nn(t){if(t)throw t}function ra(t){return t.setHeader&&typeof t.abort=="function"}function ia(t,e,r,i){i=Qs(i);var n=false;t.on("close",function(){n=true;}),lr===void 0&&(lr=it()),lr(t,{readable:e,writable:r},function(s){if(s)return i(s);n=true,i();});var o=false;return function(s){if(!n&&!o){if(o=true,ra(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(s||new ta("pipe"));}}}function on(t){t();}function na(t,e){return t.pipe(e)}function oa(t){return !t.length||typeof t[t.length-1]!="function"?nn:t.pop()}function sa(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=oa(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new ea("streams");var n,o=e.map(function(s,a){var l=a<e.length-1,u=a>0;return ia(s,l,u,function(h){n||(n=h),h&&o.forEach(on),!l&&(o.forEach(on),i(n));})});return e.reduce(na)}an.exports=sa;});var cn=f((N,Me)=>{var Ae=L("stream");process.env.READABLE_STREAM==="disable"&&Ae?(Me.exports=Ae.Readable,Object.assign(Me.exports,Ae),Me.exports.Stream=Ae):(N=Me.exports=Jt(),N.Stream=Ae||N,N.Readable=N,N.Writable=Wt(),N.Duplex=oe(),N.Transform=ar(),N.PassThrough=rn(),N.finished=it(),N.pipeline=ln());});var hn=f((Hl,fn)=>{var{Buffer:q}=L("buffer"),un=Symbol.for("BufferList");function w(t){if(!(this instanceof w))return new w(t);w._init.call(this,t);}w._init=function(e){Object.defineProperty(this,un,{value:true}),this._bufs=[],this.length=0,e&&this.append(e);};w.prototype._new=function(e){return new w(e)};w.prototype._offset=function(e){if(e===0)return [0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let n=r+this._bufs[i].length;if(e<n||i===this._bufs.length-1)return [i,e-r];r=n;}};w.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let i=0;i<e;i++)r+=this._bufs[i].length;return r};w.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};w.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};w.prototype.copy=function(e,r,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||q.alloc(0);let o=!!e,s=this._offset(i),a=n-i,l=a,u=o&&r||0,h=s[1];if(i===0&&n===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:q.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[s[0]].length-h)return o?this._bufs[s[0]].copy(e,r,h,h+l):this._bufs[s[0]].slice(h,h+l);o||(e=q.allocUnsafe(a));for(let d=s[0];d<this._bufs.length;d++){let y=this._bufs[d].length-h;if(l>y)this._bufs[d].copy(e,u,h),u+=y;else {this._bufs[d].copy(e,u,h,h+l),u+=y;break}l-=y,h&&(h=0);}return e.length>u?e.slice(0,u):e};w.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let i=this._offset(e),n=this._offset(r),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)};w.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};w.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};w.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};w.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(q.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(q.from(e));return this};w.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length;};w.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=q.from([t]):typeof t=="string"?t=q.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=q.from(t.buffer,t.byteOffset,t.byteLength):q.isBuffer(t)||(t=q.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let i=this._offset(e),n=i[0],o=i[1];for(;n<this._bufs.length;n++){let s=this._bufs[n];for(;o<s.length;)if(s.length-o>=t.length){let l=s.indexOf(t,o);if(l!==-1)return this._reverseOffset([n,l]);o=s.length-t.length+1;}else {let l=this._reverseOffset([n,o]);if(this._match(l,t))return l;o++;}o=0;}return -1};w.prototype._match=function(t,e){if(this.length-t<e.length)return false;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return false;return true};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?w.prototype[r]=function(i,n){return this.slice(i,i+n)[r](0,n)}:w.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)};})(e);})();w.prototype._isBufferList=function(e){return e instanceof w||w.isBufferList(e)};w.isBufferList=function(e){return e!=null&&e[un]};fn.exports=w;});var dn=f((Jl,ft)=>{var cr=cn().Duplex,aa=ne(),je=hn();function O(t){if(!(this instanceof O))return new O(t);if(typeof t=="function"){this._callback=t;let e=function(i){this._callback&&(this._callback(i),this._callback=null);}.bind(this);this.on("pipe",function(i){i.on("error",e);}),this.on("unpipe",function(i){i.removeListener("error",e);}),t=null;}je._init.call(this,t),cr.call(this);}aa(O,cr);Object.assign(O.prototype,je.prototype);O.prototype._new=function(e){return new O(e)};O.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i();};O.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);};O.prototype.end=function(e){cr.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null);};O.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e);};O.prototype._isBufferList=function(e){return e instanceof O||e instanceof je||O.isBufferList(e)};O.isBufferList=je.isBufferList;ft.exports=O;ft.exports.BufferListStream=O;ft.exports.BufferList=je;});var gn=f((Vl,dr)=>{var la=L("readline"),ca=L("chalk"),pn=Lr(),ht=Nr(),dt=Ur(),ua=Jr(),fa=ti(),ha=ii(),da=At(),{BufferListStream:pa}=dn(),ur=Symbol("text"),fr=Symbol("prefixText"),ga=3,hr=class{constructor(){this.requests=0,this.mutedStream=new pa,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(r,i,...n){let{stdin:o}=process;if(e.requests>0||o.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&i.includes(ga)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,i,...n]);}else Reflect.apply(process.stdin.emit,this,[r,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=la.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);}},pt,gt=class{constructor(e){pt||(pt=new hr),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:ha({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(!da())this._spinner=ht.line;else if(e===void 0)this._spinner=ht.dots;else if(e!=="default"&&ht[e])this._spinner=ht[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[ur]}set text(e){this[ur]=e,this.updateLineCount();}get prefixText(){return this[fr]}set prefixText(e){this[fr]=e,this.updateLineCount();}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[fr],r=" "){return typeof e=="string"?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.stream.columns||80,r=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let i of ua(r+"--"+this[ur]).split(`
|
|
3
3
|
`))this.lineCount+=Math.max(1,Math.ceil(fa(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,r=e[this.frameIndex];this.color&&(r=ca[this.color](r)),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+r+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&&pn.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=true,pt.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&&pn.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(pt.stop(),this.isDiscardingStdin=false),this):this}succeed(e){return this.stopAndPersist({symbol:dt.success,text:e})}fail(e){return this.stopAndPersist({symbol:dt.error,text:e})}warn(e){return this.stopAndPersist({symbol:dt.warning,text:e})}info(e){return this.stopAndPersist({symbol:dt.info,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;let r=e.prefixText||this.prefixText,i=e.text||this.text,n=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${n}
|
|
5
|
-
`),this}},ma=function(t){return new gt(t)};dr.exports=ma;dr.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new gt(e);return r.start(),(async()=>{try{await t,r.succeed();}catch{r.fail();}})(),r};});var mn=$n(gn()),W=()=>{let t=(0, mn.default)({text:"Loading...",color:"blue"});return {start:e=>{e&&(t.text=e),t.start();},stop:()=>{t.stop();},succeed:e=>{t.succeed(e);},fail:e=>{t.fail(e);}}};var ve=class{constructor(e,r=process.cwd(),i=W()){this.packageManager=e;this.ui_spinner=i;if(this.workingDir=r,!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(we__default.default.join(e,"pnpm-lock.yaml"))?"pnpm":fs.existsSync(we__default.default.join(e,"yarn.lock"))?"yarn":fs.existsSync(we__default.default.join(e,"bun.lockb"))?"bun":"npm";ensurePackageJson(){if(!fs.existsSync(we__default.default.join(this.workingDir,"package.json")))throw new Error(`package.json not found in ${this.workingDir}`)}changeDirectory(e){this.workingDir=we__default.default.isAbsolute(e)?e:we__default.default.resolve(this.workingDir,e);}runCommand(e,r,i,n=false,o){let s=o||`Running command: ${e}`;try{return n?(this.ui_spinner.start(s),child_process.execSync(e,{cwd:this.workingDir,stdio:"ignore"}),this.ui_spinner.succeed(r??`Command: ${e}`),!0):(this.ui_spinner.start(s),child_process.execSync(e,{cwd:this.workingDir,stdio:"inherit"}),this.ui_spinner.succeed(r??`Command: ${e}`),!0)}catch{return this.ui_spinner.fail(i??`Failed to run command: ${e}`),false}}install(e,r=false,i=false){return this.ensurePackageJson(),this.runCommand(this.buildInstallCommand(e,r),`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 r=child_process.execSync(`${this.packageManager} list --depth=0 --json`,{cwd:this.workingDir,stdio:"pipe",encoding:"utf8"});return !!JSON.parse(r).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,r){switch(this.packageManager){case "npm":return `npm install ${e}${r?" -D":""}`;case "yarn":return `yarn add ${e}${r?" --dev":""}`;case "pnpm":return `pnpm add ${e}${r?" --save-dev":" --save"}`;case "bun":return `bun add ${e}${r?" --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 _t=class{constructor(e,r,i=new ve(r),n=W()){this.dir=e;this.packageManager=r;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("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 wa=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))),yn=we.dirname(wa),j=class{static basePath=(()=>{let e=we.join(yn,"../stubs"),r=we.join(yn,"../../stubs");return fs.existsSync(e)?e:r})();static get(e){let r=e.replace(/\./g,"/")+".stub",i=we.join(this.basePath,r);if(!fs.existsSync(i))throw new Error(`Stub not found: ${i}`);return fs.readFileSync(i,"utf-8")}};var bn="https://
|
|
5
|
+
`),this}},ma=function(t){return new gt(t)};dr.exports=ma;dr.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new gt(e);return r.start(),(async()=>{try{await t,r.succeed();}catch{r.fail();}})(),r};});var mn=$n(gn()),W=()=>{let t=(0, mn.default)({text:"Loading...",color:"blue"});return {start:e=>{e&&(t.text=e),t.start();},stop:()=>{t.stop();},succeed:e=>{t.succeed(e);},fail:e=>{t.fail(e);}}};var ve=class{constructor(e,r=process.cwd(),i=W()){this.packageManager=e;this.ui_spinner=i;if(this.workingDir=r,!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(we__default.default.join(e,"pnpm-lock.yaml"))?"pnpm":fs.existsSync(we__default.default.join(e,"yarn.lock"))?"yarn":fs.existsSync(we__default.default.join(e,"bun.lockb"))?"bun":"npm";ensurePackageJson(){if(!fs.existsSync(we__default.default.join(this.workingDir,"package.json")))throw new Error(`package.json not found in ${this.workingDir}`)}changeDirectory(e){this.workingDir=we__default.default.isAbsolute(e)?e:we__default.default.resolve(this.workingDir,e);}runCommand(e,r,i,n=false,o){let s=o||`Running command: ${e}`;try{return n?(this.ui_spinner.start(s),child_process.execSync(e,{cwd:this.workingDir,stdio:"ignore"}),this.ui_spinner.succeed(r??`Command: ${e}`),!0):(this.ui_spinner.start(s),child_process.execSync(e,{cwd:this.workingDir,stdio:"inherit"}),this.ui_spinner.succeed(r??`Command: ${e}`),!0)}catch{return this.ui_spinner.fail(i??`Failed to run command: ${e}`),false}}install(e,r=false,i=false){return this.ensurePackageJson(),this.runCommand(this.buildInstallCommand(e,r),`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 r=child_process.execSync(`${this.packageManager} list --depth=0 --json`,{cwd:this.workingDir,stdio:"pipe",encoding:"utf8"});return !!JSON.parse(r).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,r){switch(this.packageManager){case "npm":return `npm install ${e}${r?" -D":""}`;case "yarn":return `yarn add ${e}${r?" --dev":""}`;case "pnpm":return `pnpm add ${e}${r?" --save-dev":" --save"}`;case "bun":return `bun add ${e}${r?" --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 _t=class{constructor(e,r,i=new ve(r),n=W()){this.dir=e;this.packageManager=r;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("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 wa=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))),yn=we.dirname(wa),j=class{static basePath=(()=>{let e=we.join(yn,"../stubs"),r=we.join(yn,"../../stubs");return fs.existsSync(e)?e:r})();static get(e){let r=e.replace(/\./g,"/")+".stub",i=we.join(this.basePath,r);if(!fs.existsSync(i))throw new Error(`Stub not found: ${i}`);return fs.readFileSync(i,"utf-8")}};var bn="https://jk-ui.unoforge.com/r/{name}.json",wn=[{title:"Both",value:"both",selected:true},{title:"Light",value:"light",selected:false},{title:"Dark",value:"dark",selected:false}],vn=[{title:"JK Default",value:"jk-ui",selected:true},{title:"Spotify",value:"spotify",selected:false},{title:"Caffeine",value:"caffeine",selected:false},{title:"Claude",value:"claude",selected:false},{title:"Water",value:"water",selected:false},{title:"Earth",value:"earth",selected:false},{title:"Fire",value:"fire",selected:false},{title:"Air",value:"air",selected:false},{title:"Energy",value:"energy",selected:false},{title:"Mystery",value:"mystery",selected:false},{title:"Nature",value:"nature",selected:false},{title:"Oz",value:"oz",selected:false},{title:"Passion",value:"passion",selected:false},{title:"Romance",value:"romance",selected:false},{title:"Spring",value:"spring",selected:false},{title:"Winter",value:"winter",selected:false},{title:"Trust",value:"trust",selected:false}],Le=[{title:"Hugeicons",value:"hugeicons",selected:true},{title:"Phosphore",value:"ph",selected:false},{title:"Heroicons",value:"heroicons",selected:false},{title:"Lucide",value:"lucide",selected:false},{title:"Solar icon",value:"solar",selected:false}],ee=493,gr=[{framework:"astro",cssPath:"src/assets/css/"},{framework:"react",cssPath:"src/"},{framework:"rasengan",cssPath:"src/"},{framework:"tanstack-start",cssPath:"src/"},{framework:"react-router",cssPath:"src/"},{framework:"inertia-react",cssPath:"resources/views/css/"},{framework:"laravel",cssPath:"resources/views/css/"}];var yt=class{static get(e,r,i){let n=j.get(`themes.${i.toLowerCase()}`),o=j.get("css.scroll-config"),s=r.toLowerCase(),a=Le.find(I=>I.value===e.iconLibrary)??Le[1],l=j.get("css.base-inline"),u=`
|
|
6
6
|
@import "tailwindcss";
|
|
7
7
|
@import "tw-animate-css";
|
|
8
8
|
|
|
@@ -29,9 +29,9 @@ ${n}
|
|
|
29
29
|
|
|
30
30
|
${l}
|
|
31
31
|
|
|
32
|
-
${o}`}};var C=class{static packageJsonCache=new Map;static async askPackageManager(){return (await Rt__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[s,a]of Object.entries(o))if((Array.isArray(a)?a:[a]).some(u=>u in n))return s;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 r={artisan:"laravel","bin/console":"symfony","manage.py":"django"};for(let[i,n]of Object.entries(r))if(fs.existsSync(we.join(e,i)))return n;return "generic"}static hasPackageJson(e){return fs.existsSync(we.join(e,"package.json"))}static getPackageJson(e){if(this.packageJsonCache.has(e))return this.packageJsonCache.get(e);let r=we.join(e,"package.json");if(!fs.existsSync(r))return this.packageJsonCache.set(e,null),null;try{let i=fs.readFileSync(r,"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 r=process.cwd(),i=this.getPackageJson(r);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(),r=this.getPackageJson(e);return r&&r.name?r.name:we.basename(e)}static hasSrcDir(){return fs.existsSync(we.join(process.cwd(),"src"))}static isTypeScript(){let e=process.cwd();return fs.existsSync(we.join(e,"tsconfig.json"))}};var bt=class{static generateBaseFiles(e,r){let i=this.getMainCssFileName();this.createJkUIFiles(r,i),this.createFrameworkSpecificFiles(e,r),this.generateConfigFiles();}static createShared(e){let r=e.cssPath||"src/css/",i=e.libPath;fs.existsSync(r)||fs.mkdirSync(r,{recursive:true,mode:ee}),fs.existsSync(`${r}/jk-ui`)||fs.mkdirSync(`${r}/jk-ui`,{recursive:true,mode:ee}),fs.existsSync(`${i}`)||fs.mkdirSync(`${i}`,{recursive:true,mode:ee});}static createJkUIFiles(e,r){let i=e.cssPath,n=e.libPath,o=e.themingMode||"light",s=e.theme||"jk-ui";this.createShared(e);let a=o.toLowerCase()==="both"?"":`${o.toLowerCase()}.`,l=yt.get(e,o,s);fs.writeFileSync(we.join(i,`${r}.css`),l),fs.writeFileSync(we.join(i,"button-styles.css"),j.get(`css.${a}buttons`)),fs.writeFileSync(we.join(i,"utilities.css"),j.get(`css.${a}utilities`)),fs.writeFileSync(we.join(n,"utils.ts"),j.get("utils.lib"));}static generateConfigFiles(){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":bn}},null,2));}static getMainCssFileName(){return "globals"}static createFrameworkSpecificFiles(e,r){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(r);break}}static createAstroFiles(){let r=C.hasSrcDir()?"src/":"";fs.existsSync(we.join(r,"components"))||fs.mkdirSync(we.join(r,"components"),{recursive:true,mode:ee}),fs.existsSync(we.join(r,"components/seo"))||fs.mkdirSync(we.join(r,"components/seo"),{recursive:true,mode:ee}),fs.existsSync(we.join(r,"layouts"))||fs.mkdirSync(we.join(r,"layouts"),{recursive:true,mode:ee}),fs.writeFileSync("tsconfig.json",j.get("astro.tsconfig")),fs.writeFileSync(we.join(r,"layouts/Layout.astro"),j.get("astro.layout")),fs.writeFileSync(we.join(r,"components/seo/SEO.astro"),j.get("astro.seo"));}static createRasenganFiles(){let r=C.hasSrcDir()?"src/":"";fs.existsSync(we.join(r,"components"))||fs.mkdirSync(we.join(r,"components"),{recursive:true,mode:ee}),fs.writeFileSync("rasengan.config.js",j.get("rasengan.config"));}static createReactFiles(e){let r=C.isTypeScript()?"ts":"js";fs.writeFileSync(`vite.config.${r}`,j.get("vite.vanilla"));}};var wt=class{constructor(e,r,i,n,o=new _t(e,n)){this.answers=r;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){bt.generateBaseFiles(e,this.answers);}};var Fe={error:vt__default.default.red,warn:vt__default.default.yellow,info:vt__default.default.cyan,success:vt__default.default.green};var c={error(...t){console.log(Fe.error(t.join(" ")));},warn(...t){console.log(Fe.warn(t.join(" ")));},info(...t){console.log(Fe.info(t.join(" ")));},success(...t){console.log(Fe.success(t.join(" ")));},log(...t){console.log(t.join(" "));},break(){console.log("");}};var xn=()=>{},Sn=()=>{let t=we.join(process.cwd(),"flexi-cli.json");if(!fs.existsSync(t))return false;try{let e=fs.readFileSync(t,"utf-8"),r=JSON.parse(e),i=["framework","defaultSource","registries"];for(let n of i)if(!(n in r))return !1;return !(!Array.isArray(r.registries)||r.registries.length===0)}catch{return false}},mr=t=>{if(!t)return t;let e=String(t).trim().replace(/\\/g,"/");return e=e.replace(/^\.\//,""),e=e.replace(/\/+/,"/"),e.endsWith("/")||(e+="/"),e},_r=t=>{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(t??"").trim());return i.success?true:i.error.issues[0]?.message||"Invalid path"};var xt=class{get(){return [{type:"select",name:"theme",message:"\u{1F3A8} Which theme would you like to use?",choices:vn.map(e=>({title:e.title,value:e.value,selected:e.selected}))},{type:"select",name:"themingMode",message:"Your theming mode",choices:wn.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:Le.map(e=>({title:e.title,value:e.value,selected:e.selected}))}]}async askFolders(e){let r=C.hasSrcDir(),i=e==="next"&&fs.existsSync(we.join(process.cwd(),"app")),n=gr.find(a=>a.framework===e)??{cssPath:i?"styles":"src/styles"},o={cssPath:r?n.cssPath:n.cssPath?.startsWith("src/")?n.cssPath.replace("src/",""):n.cssPath,libPath:r?"src/lib":"lib"},s=await Rt__default.default([{type:"text",name:"cssPath",message:"Path to the CSS file",initial:o.cssPath,validate:a=>_r(a),format:a=>mr(a)},{type:"text",name:"libPath",message:"Path to the lib utils folder",initial:o.libPath,validate:a=>_r(a),format:a=>mr(a)}]);return {cssPath:s.cssPath,libPath:s.libPath}}};var St=class{constructor(e=new xt){this.themingPrompts=e;}supportedFrameworks=["astro","rasengan","react","react-js","react-ts","tanstack-start","tanstack-router","react-router","inertia-react","next"];async initialize(e){let r={projectName:C.getProjectName(),framework:"",theme:"",cssPath:"",themingMode:"both",iconLibrary:"",libPath:""};if(e.cwd&&e.cwd!==process.cwd()&&process.chdir(e.cwd),!C.hasPackageJson(process.cwd()))c.error("\u2718 No package.json found."),c.info("Please create a project first using your framework's CLI."),c.info("Example: npm create vite@latest"),process.exit(0);else {let i=C.detect();!this.supportedFrameworks.includes(i)&&!["vite-js","vite-ts"].includes(i)&&(c.error(`\u274C Sorry, the CLI does not support the '${i}' framework for the moment.`),c.info("Supported frameworks: Astro, React, Rasengan, Tanstack Start, Tanstack Router, React Router 7, Inertia React"),process.exit(0));let n=i;r=await this.handleInitInProject(n,e);}return {projectAnswers:r}}async handleInitInProject(e,r){c.info(`\u{1F4E6} Detected ${e} project`),C.checkTailwindCSS()||c.info("\u2139\uFE0F Tailwind CSS will be configured for your project");let n=await Rt__default.default(this.themingPrompts.get()),o="",s=r.libPath||"";if(r.cssPath&&(o=r.cssPath),o===""){let a=await this.themingPrompts.askFolders(e);o=a.cssPath,s=a.libPath;}return {projectName:C.getProjectName(),framework:e,theme:n.theme,themingMode:n.themingMode,iconLibrary:n.iconLibrary,cssPath:o,libPath:s}}};var te=t=>{t instanceof Error?c.error(t.message):c.error("An unexpected error occurred"),process.exit(1);};var En=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 t=>{try{let e={cssPath:t.cssPath,cwd:t.cwd};if(Sn()){c.info("Project already initialized");return}xn();let r=new St,i=W(),{projectAnswers:n}=await r.initialize(e),o=ve.detectPackageManager();new wt(n.projectName,n,n.framework,o).setup(!1),i.succeed("Project setup successfully"),i.stop();}catch(e){te(e);}});var Et=[{ph:"ph--user",heroicons:"heroicons--user",lucide:"lucide--user",hugeicons:"hugeicons--user",solar:"solar--user-linear"},{ph:"ph--user-circle",heroicons:"heroicons--user",lucide:"lucide--user-circle",hugeicons:"hugeicons--user-circle",solar:"solar--user-circle-linear"},{ph:"ph--user-bold",heroicons:"heroicons--user-solid",lucide:"lucide--user",hugeicons:"hugeicons--user",solar:"solar--user-bold"},{ph:"ph--magnifying-glass",heroicons:"heroicons--magnifying-glass",lucide:"lucide--search",hugeicons:"hugeicons--search-01",solar:"solar--magnifer-linear"},{ph:"ph--magnifying-glass-bold",heroicons:"heroicons--magnifying-glass",lucide:"lucide--search",hugeicons:"hugeicons--search-02",solar:"solar--magnifer-bold"},{ph:"ph--bell",heroicons:"heroicons--bell",lucide:"lucide--bell",hugeicons:"hugeicons--notification-01",solar:"solar--bell-linear"},{ph:"ph--bell-ringing",heroicons:"heroicons--bell-alert",lucide:"lucide--bell-ring",hugeicons:"hugeicons--notification-03",solar:"solar--bell-bing-linear"},{ph:"ph--bell-bold",heroicons:"heroicons--bell",lucide:"lucide--bell",hugeicons:"hugeicons--notification-01",solar:"solar--bell-bold"},{ph:"ph--house",heroicons:"heroicons--home",lucide:"lucide--house",hugeicons:"hugeicons--home-02",solar:"solar--home-2-linear"},{ph:"ph--house-simple",heroicons:"heroicons--home",lucide:"lucide--home",hugeicons:"hugeicons--home-01",solar:"solar--home-linear"},{ph:"ph--house-bold",heroicons:"heroicons--home",lucide:"lucide--home",hugeicons:"hugeicons--home-01",solar:"solar--home-bold"},{ph:"ph--gear",heroicons:"heroicons--cog-6-tooth",lucide:"lucide--settings",hugeicons:"hugeicons--settings-01",solar:"solar--settings-linear"},{ph:"ph--gear-six",heroicons:"heroicons--cog-6-tooth",lucide:"lucide--settings",hugeicons:"hugeicons--settings-03",solar:"solar--settings-linear"},{ph:"ph--gear-bold",heroicons:"heroicons--cog-6-tooth",lucide:"lucide--settings",hugeicons:"hugeicons--settings-02",solar:"solar--settings-bold"},{ph:"ph--sign-out",heroicons:"heroicons--arrow-right-on-rectangle",lucide:"lucide--log-out",hugeicons:"hugeicons--logout-02",solar:"solar--logout-2-linear"},{ph:"ph--sign-out-bold",heroicons:"heroicons--arrow-right-on-rectangle",lucide:"lucide--log-out",hugeicons:"hugeicons--logout-01",solar:"solar--logout-2-bold"},{ph:"ph--plus",heroicons:"heroicons--plus",lucide:"lucide--plus",hugeicons:"hugeicons--plus-sign",solar:"solar--add-circle-linear"},{ph:"ph--plus-bold",heroicons:"heroicons--plus",lucide:"lucide--plus",hugeicons:"hugeicons--plus-sign",solar:"solar--add-circle-bold"},{ph:"ph--minus",heroicons:"heroicons--minus",lucide:"lucide--minus",hugeicons:"hugeicons--minus-sign",solar:"solar--minus-circle-linear"},{ph:"ph--minus-bold",heroicons:"heroicons--minus",lucide:"lucide--minus",hugeicons:"hugeicons--minus-sign",solar:"solar--minus-circle-bold"},{ph:"ph--x",heroicons:"heroicons--x-mark",lucide:"lucide--x",hugeicons:"hugeicons--cancel-01",solar:"solar--close-circle-linear"},{ph:"ph--x-bold",heroicons:"heroicons--x-mark",lucide:"lucide--x",hugeicons:"hugeicons--cancel-01",solar:"solar--close-circle-bold"},{ph:"ph--check",heroicons:"heroicons--check",lucide:"lucide--check",hugeicons:"hugeicons--tick-01",solar:"solar--check-circle-linear"},{ph:"ph--check-bold",heroicons:"heroicons--check",lucide:"lucide--check",hugeicons:"hugeicons--tick-02",solar:"solar--check-circle-bold"},{ph:"ph--arrow-left",heroicons:"heroicons--arrow-left",lucide:"lucide--arrow-left",hugeicons:"hugeicons--arrow-left-02",solar:"solar--arrow-left-linear"},{ph:"ph--arrow-right",heroicons:"heroicons--arrow-right",lucide:"lucide--arrow-right",hugeicons:"hugeicons--arrow-right-02",solar:"solar--arrow-right-linear"},{ph:"ph--arrow-up",heroicons:"heroicons--arrow-up",lucide:"lucide--arrow-up",hugeicons:"hugeicons--arrow-up-02",solar:"solar--arrow-up-linear"},{ph:"ph--arrow-down",heroicons:"heroicons--arrow-down",lucide:"lucide--arrow-down",hugeicons:"hugeicons--arrow-down-02",solar:"solar--arrow-down-linear"},{ph:"ph--arrow-left-bold",heroicons:"heroicons--arrow-left",lucide:"lucide--arrow-left",hugeicons:"hugeicons--arrow-left-02",solar:"solar--arrow-left-bold"},{ph:"ph--arrow-right-bold",heroicons:"heroicons--arrow-right",lucide:"lucide--arrow-right",hugeicons:"hugeicons--arrow-right-02",solar:"solar--arrow-right-bold"},{ph:"ph--caret-left",heroicons:"heroicons--chevron-left",lucide:"lucide--chevron-left",hugeicons:"hugeicons--arrow-left-01",solar:"solar--alt-arrow-left-linear"},{ph:"ph--caret-right",heroicons:"heroicons--chevron-right",lucide:"lucide--chevron-right",hugeicons:"hugeicons--arrow-right-01",solar:"solar--alt-arrow-right-linear"},{ph:"ph--caret-up",heroicons:"heroicons--chevron-up",lucide:"lucide--chevron-up",hugeicons:"hugeicons--arrow-up-01",solar:"solar--alt-arrow-up-linear"},{ph:"ph--caret-down",heroicons:"heroicons--chevron-down",lucide:"lucide--chevron-down",hugeicons:"hugeicons--arrow-down-01",solar:"solar--alt-arrow-down-linear"},{ph:"ph--trash",heroicons:"heroicons--trash",lucide:"lucide--trash-2",hugeicons:"hugeicons--delete-02",solar:"solar--trash-bin-trash-linear"},{ph:"ph--trash-bold",heroicons:"heroicons--trash",lucide:"lucide--trash-2",hugeicons:"hugeicons--delete-03",solar:"solar--trash-bin-trash-bold"},{ph:"ph--pencil",heroicons:"heroicons--pencil",lucide:"lucide--pencil",hugeicons:"hugeicons--pencil-edit-01",solar:"solar--pen-linear"},{ph:"ph--pencil-simple",heroicons:"heroicons--pencil",lucide:"lucide--pencil",hugeicons:"hugeicons--pencil-edit-02",solar:"solar--pen-linear"},{ph:"ph--pencil-bold",heroicons:"heroicons--pencil",lucide:"lucide--pencil",hugeicons:"hugeicons--pen-02",solar:"solar--pen-bold"},{ph:"ph--eye",heroicons:"heroicons--eye",lucide:"lucide--eye",hugeicons:"hugeicons--eye",solar:"solar--eye-linear"},{ph:"ph--eye-slash",heroicons:"heroicons--eye-slash",lucide:"lucide--eye-off",hugeicons:"hugeicons--view-off-slash",solar:"solar--eye-closed-linear"},{ph:"ph--eye-bold",heroicons:"heroicons--eye",lucide:"lucide--eye",hugeicons:"hugeicons--eye",solar:"solar--eye-bold"},{ph:"ph--lock",heroicons:"heroicons--lock-closed",lucide:"lucide--lock",hugeicons:"hugeicons--lock-key",solar:"solar--lock-linear"},{ph:"ph--lock-key",heroicons:"heroicons--key",lucide:"lucide--key",hugeicons:"hugeicons--key-02",solar:"solar--key-linear"},{ph:"ph--lock-bold",heroicons:"heroicons--lock-closed",lucide:"lucide--lock",hugeicons:"hugeicons--lock",solar:"solar--lock-bold"},{ph:"ph--lock-key-open",heroicons:"heroicons--lock-open",lucide:"lucide--lock-open",hugeicons:"hugeicons--circle-unlock-02",solar:"solar--lock-unlocked-linear"},{ph:"ph--envelope",heroicons:"heroicons--envelope",lucide:"lucide--mail",hugeicons:"hugeicons--mail-01",solar:"solar--letter-linear"},{ph:"ph--envelope-simple",heroicons:"heroicons--envelope",lucide:"lucide--mail",hugeicons:"hugeicons--mail-01",solar:"solar--letter-linear"},{ph:"ph--envelope-bold",heroicons:"heroicons--envelope",lucide:"lucide--mail",hugeicons:"hugeicons--mail-01",solar:"solar--letter-bold"},{ph:"ph--key",heroicons:"heroicons--key",lucide:"lucide--key",hugeicons:"hugeicons--key-01",solar:"solar--key-linear"},{ph:"ph--key-bold",heroicons:"heroicons--key",lucide:"lucide--key",hugeicons:"hugeicons--key-02",solar:"solar--key-bold"},{ph:"ph--calendar",heroicons:"heroicons--calendar",lucide:"lucide--calendar",hugeicons:"hugeicons--calendar-01",solar:"solar--calendar-linear"},{ph:"ph--calendar-blank",heroicons:"heroicons--calendar",lucide:"lucide--calendar",hugeicons:"hugeicons--calendar-02",solar:"solar--calendar-linear"},{ph:"ph--calendar-bold",heroicons:"heroicons--calendar",lucide:"lucide--calendar",hugeicons:"hugeicons--calendar-01",solar:"solar--calendar-bold"},{ph:"ph--clock",heroicons:"heroicons--clock",lucide:"lucide--clock",hugeicons:"hugeicons--clock-01",solar:"solar--clock-circle-linear"},{ph:"ph--clock-bold",heroicons:"heroicons--clock",lucide:"lucide--clock",hugeicons:"hugeicons--clock-01",solar:"solar--clock-circle-bold"},{ph:"ph--clock-clockwise",heroicons:"heroicons--arrow-path",lucide:"lucide--rotate-cw",hugeicons:"hugeicons--rotate-clockwise",solar:"solar--refresh-circle-linear"},{ph:"ph--image",heroicons:"heroicons--photo",lucide:"lucide--image",hugeicons:"hugeicons--image-01",solar:"solar--gallery-linear"},{ph:"ph--image-bold",heroicons:"heroicons--photo",lucide:"lucide--image",hugeicons:"hugeicons--image-02",solar:"solar--gallery-bold"},{ph:"ph--file",heroicons:"heroicons--document",lucide:"lucide--file",hugeicons:"hugeicons--file-01",solar:"solar--file-linear"},{ph:"ph--file-text",heroicons:"heroicons--document-text",lucide:"lucide--file-text",hugeicons:"hugeicons--file-02",solar:"solar--file-text-linear"},{ph:"ph--file-bold",heroicons:"heroicons--document",lucide:"lucide--file",hugeicons:"hugeicons--file-01",solar:"solar--file-bold"},{ph:"ph--folder",heroicons:"heroicons--folder",lucide:"lucide--folder",hugeicons:"hugeicons--folder-01",solar:"solar--folder-linear"},{ph:"ph--folder-open",heroicons:"heroicons--folder-open",lucide:"lucide--folder-open",hugeicons:"hugeicons--folder-open",solar:"solar--folder-open-linear"},{ph:"ph--download",heroicons:"heroicons--arrow-down-tray",lucide:"lucide--download",hugeicons:"hugeicons--download-01",solar:"solar--download-linear"},{ph:"ph--download-bold",heroicons:"heroicons--arrow-down-tray",lucide:"lucide--download",hugeicons:"hugeicons--download-01",solar:"solar--download-bold"},{ph:"ph--upload",heroicons:"heroicons--arrow-up-tray",lucide:"lucide--upload",hugeicons:"hugeicons--upload-01",solar:"solar--upload-linear"},{ph:"ph--upload-bold",heroicons:"heroicons--arrow-up-tray",lucide:"lucide--upload",hugeicons:"hugeicons--upload-01",solar:"solar--upload-bold"},{ph:"ph--link",heroicons:"heroicons--link",lucide:"lucide--link",hugeicons:"hugeicons--link-01",solar:"solar--link-linear"},{ph:"ph--link-bold",heroicons:"heroicons--link",lucide:"lucide--link",hugeicons:"hugeicons--link-01",solar:"solar--link-bold"},{ph:"ph--share",heroicons:"heroicons--share",lucide:"lucide--share-2",hugeicons:"hugeicons--share-01",solar:"solar--share-linear"},{ph:"ph--share-network",heroicons:"heroicons--share",lucide:"lucide--share-2",hugeicons:"hugeicons--share-01",solar:"solar--share-linear"},{ph:"ph--heart",heroicons:"heroicons--heart",lucide:"lucide--heart",hugeicons:"hugeicons--favourite",solar:"solar--heart-linear"},{ph:"ph--heart-bold",heroicons:"heroicons--heart",lucide:"lucide--heart",hugeicons:"hugeicons--favourite",solar:"solar--heart-bold"},{ph:"ph--star",heroicons:"heroicons--star",lucide:"lucide--star",hugeicons:"hugeicons--star",solar:"solar--star-linear"},{ph:"ph--star-bold",heroicons:"heroicons--star",lucide:"lucide--star",hugeicons:"hugeicons--star",solar:"solar--star-bold"},{ph:"ph--menu",heroicons:"heroicons--bars-3",lucide:"lucide--menu",hugeicons:"hugeicons--menu-01",solar:"solar--hamburger-menu-linear"},{ph:"ph--list",heroicons:"heroicons--list-bullet",lucide:"lucide--list",hugeicons:"hugeicons--left-to-right-list-bullet",solar:"solar--list-linear"},{ph:"ph--grid",heroicons:"heroicons--squares-2x2",lucide:"lucide--grid-3x3",hugeicons:"hugeicons--grid",solar:"solar--widget-2-linear"},{ph:"ph--squares-four",heroicons:"heroicons--squares-2x2",lucide:"lucide--grid-3x3",hugeicons:"hugeicons--grid",solar:"solar--widget-2-linear"},{ph:"ph--dots-three",heroicons:"heroicons--ellipsis-horizontal",lucide:"lucide--more-horizontal",hugeicons:"hugeicons--more-horizontal",solar:"solar--menu-dots-linear"},{ph:"ph--dots-three-vertical",heroicons:"heroicons--ellipsis-vertical",lucide:"lucide--more-vertical",hugeicons:"hugeicons--more-vertical",solar:"solar--menu-dots-vertical-linear"},{ph:"ph--warning",heroicons:"heroicons--exclamation-triangle",lucide:"lucide--alert-triangle",hugeicons:"hugeicons--alert-01",solar:"solar--danger-triangle-linear"},{ph:"ph--warning-bold",heroicons:"heroicons--exclamation-triangle",lucide:"lucide--alert-triangle",hugeicons:"hugeicons--alert-01",solar:"solar--danger-triangle-bold"},{ph:"ph--info",heroicons:"heroicons--information-circle",lucide:"lucide--info",hugeicons:"hugeicons--alert-circle",solar:"solar--info-circle-linear"},{ph:"ph--info-bold",heroicons:"heroicons--information-circle",lucide:"lucide--info",hugeicons:"hugeicons--alert-circle",solar:"solar--info-circle-bold"},{ph:"ph--question",heroicons:"heroicons--question-mark-circle",lucide:"lucide--help-circle",hugeicons:"hugeicons--question",solar:"solar--question-circle-linear"},{ph:"ph--question-bold",heroicons:"heroicons--question-mark-circle",lucide:"lucide--help-circle",hugeicons:"hugeicons--question",solar:"solar--question-circle-bold"},{ph:"ph--smiley-sad",heroicons:"heroicons--face-frown",lucide:"lucide--frown",hugeicons:"hugeicons--sad-01",solar:"solar--sad-circle-linear"},{ph:"ph--lightbulb-filament",heroicons:"heroicons--light-bulb",lucide:"lucide--lightbulb",hugeicons:"hugeicons--idea",solar:"solar--lightbulb-linear"},{ph:"ph--circle",heroicons:"heroicons--circle",lucide:"lucide--circle",hugeicons:"hugeicons--circle",solar:"solar--full-screen-circle-linear"},{ph:"ph--circle-filled",heroicons:"heroicons--check-circle",lucide:"lucide--circle",hugeicons:"hugeicons--circle",solar:"solar--check-circle-bold"},{ph:"ph--square",heroicons:"heroicons--square-3-stack-3d",lucide:"lucide--square",hugeicons:"hugeicons--square",solar:"solar--full-screen-square-linear"},{ph:"ph--square-fill",heroicons:"heroicons--square-3-stack-3d",lucide:"lucide--square",hugeicons:"hugeicons--square",solar:"solar--full-screen-square-bold"}];var kn=new commander.Command("fix-icons").description("Replace icons in components - switch between icon libraries or select specific icons").action(async()=>{try{let t=process.cwd(),e=we.join(t,"components.json");if(!fs.existsSync(e)){c.error("\u2718 No components.json found. Please initialize the project first.");return}let i=JSON.parse(fs.readFileSync(e,"utf-8")).iconLibrary;if(!i){c.error("\u2718 No icon library specified in components.json.");return}let n=C.detect(),o="";if(n==="inertia-react"||n==="laravel"?o=we.join(t,"resources","js","components"):C.hasSrcDir()?o=we.join(t,"src","components"):o=we.join(t,"components"),!fs.existsSync(o)){c.warn(`\u26A0 components/ui directory not found at: ${o}`);return}c.info(`\u{1F50D} Scanning ${o} for icons...`);let s=Pn(o),a=new Map,l=["ph","heroicons","lucide","hugeicons","solar"];for(let p of l)a.set(p,new Map);for(let p of s){let v=fs.readFileSync(p,"utf-8");for(let R of l){let J=Fa(R),Pt=new RegExp(`${J}([a-z0-9-]+)`,"g"),br;for(;(br=Pt.exec(v))!==null;){let wr=br[0],vr=a.get(R);vr.set(wr,(vr.get(wr)??0)+1);}}}let u=[];for(let[p,v]of a.entries())for(let[R,J]of v.entries())u.push({iconKey:R,library:p,count:J});if(u.length===0){c.info("\u2728 No supported icons were found in your components.");return}let h=new Map;for(let p of u)h.has(p.library)||h.set(p.library,[]),h.get(p.library).push(p.iconKey);c.info(`
|
|
33
|
-
\u{1F4CA} Found icons by library:`);for(let[p,v]of h.entries())c.info(` ${p}: ${v.length} unique icons (${u.filter(R=>R.library===p).reduce((R,J)=>R+J.count,0)} occurrences)`);let d=i;if(h.size>1){let p=Array.from(h.keys()).filter(v=>h.get(v).length>0).map(v=>({title:v,value:v}));p.length>1&&(d=(await Rt__default.default({type:"select",name:"value",message:"Which icon library do you want to replace?",choices:p,initial:p.findIndex(R=>R.value===i)})).value);}let y=h.get(d)??[];if(y.length===0){c.info(`\u2728 No ${d} icons found in your components.`);return}let S=(await Rt__default.default({type:"select",name:"value",message:"Which icon library do you want to switch to?",choices:l.filter(p=>p!==d).map(p=>({title:p,value:p}))})).value,I=(await Rt__default.default({type:"multiselect",name:"value",message:`Select which ${d} icons to replace (${y.length} found):`,choices:y.sort().map(p=>({title:p,value:p})),hint:"- Space to select. Return to submit"})).value;if(I.length===0){c.info("Operation cancelled.");return}let b=[];for(let p of I){let v=Et.find(R=>R[d]===p);if(v){let R=v[S];R&&b.push({from:p,to:R});}}if(b.length===0){c.error("\u2718 Could not find mappings for selected icons.");return}let E=0,P=[];for(let p of s){let v=fs.readFileSync(p,"utf-8"),R=b.filter(J=>v.includes(J.from));R.length>0&&(E+=R.reduce((J,Pt)=>J+(v.match(new RegExp(Pt.from,"g"))??[]).length,0),P.push({path:p,content:v,replacements:R}));}if(E===0){c.info("\u2728 No replacements needed.");return}if(!(await Rt__default.default({type:"confirm",name:"value",message:`Replace ${E} icon occurrences in ${P.length} files from ${d} to ${S}?`,initial:!0})).value){c.info("Operation cancelled.");return}let H=W();H.start("Replacing icons...");for(let p of P){let v=p.content;for(let R of p.replacements)v=v.replace(new RegExp(R.from,"g"),R.to);fs.writeFileSync(p.path,v);}H.succeed(`\u2728 Successfully replaced ${E} icons in ${P.length} files (${d} \u2192 ${S}).`);}catch(t){te(t);}});function Fa(t){return {ph:"ph--",heroicons:"heroicons--",lucide:"lucide--",hugeicons:"hugeicons--",solar:"solar--"}[t]}function Pn(t,e=[]){return fs.readdirSync(t).forEach(i=>{let n=we.join(t,i);if(fs.statSync(n).isDirectory())e=Pn(n,e);else {let o=we.extname(n);[".tsx",".jsx",".ts",".js",".astro"].includes(o)&&e.push(n);}}),e}var Cn=new commander.Command("replace-icon").description("Replace all icons from one library to another (non-interactive)").argument("<fromLibrary>","Icon library to replace (ph, heroicons, lucide, hugeicons, solar)").option("--with <toLibrary>","Target icon library to replace with").option("--skip-confirm","Skip confirmation prompt").action(async(t,e)=>{try{let r=["ph","heroicons","lucide","hugeicons","solar"];if(!r.includes(t)){c.error(`\u2718 Invalid source library: ${t}`),c.info(` Supported libraries: ${r.join(", ")}`);return}if(!e.with){c.error("\u2718 Target library required. Use --with <library>"),c.info(` Supported libraries: ${r.join(", ")}`);return}if(!r.includes(e.with)){c.error(`\u2718 Invalid target library: ${e.with}`),c.info(` Supported libraries: ${r.join(", ")}`);return}let i=t,n=e.with;if(i===n){c.error("\u2718 Source and target libraries cannot be the same.");return}let o=process.cwd(),s=we.join(o,"components.json");if(!fs.existsSync(s)){c.error("\u2718 No components.json found. Please initialize the project first.");return}let a=C.detect(),l="";if(a==="inertia-react"||a==="laravel"?l=we.join(o,"resources","js","components"):C.hasSrcDir()?l=we.join(o,"src","components"):l=we.join(o,"components"),!fs.existsSync(l)){c.error(`\u2718 Components directory not found at: ${l}`);return}c.info(`\u{1F50D} Scanning ${l} for ${i} icons...`);let u=In(l),h=Ha(i),d=new RegExp(`${h}([a-z0-9-]+)`,"g"),y=new Map,T=[];for(let E of u){let P=fs.readFileSync(E,"utf-8"),A=!1,H,p=new RegExp(d);for(;(H=p.exec(P))!==null;){let v=H[0];y.set(v,(y.get(v)??0)+1),A=!0;}A&&T.push({path:E,content:P});}if(y.size===0){c.info(`\u2728 No ${i} icons found in your components.`);return}let S=[],m=0;for(let E of y.keys()){let P=Et.find(A=>A[i]===E);if(P){let A=P[n];A?S.push({from:E,to:A}):m++;}else m++;}if(S.length===0){c.error("\u2718 No icon mappings found for the specified libraries.");return}let I=0;for(let E of T)for(let P of S){let A=E.content.match(new RegExp(P.from,"g"));A&&(I+=A.length);}if(c.info(`
|
|
34
|
-
\u{1F4CA} Replacement Summary:`),c.info(` Source library: ${i} (${y.size} unique icons)`),c.info(` Target library: ${n}`),c.info(` Total replacements: ${I} occurrences in ${T.length} files`),m>0&&c.warn(` \u26A0 ${m} icons have no mapping`),!e.skipConfirm&&!(await import('prompts').then(P=>P.default({type:"confirm",name:"value",message:`Proceed with replacing ${I} icons from ${i} to ${n}?`,initial:!0}))).value){c.info("Operation cancelled.");return}let b=W();b.start("Replacing icons...");for(let E of T){let P=E.content;for(let A of S)P=P.replace(new RegExp(A.from,"g"),A.to);fs.writeFileSync(E.path,P);}b.succeed(`\u2728 Successfully replaced ${I} icons (${i} \u2192 ${n}) in ${T.length} files.`);}catch(r){te(r);}});function Ha(t){return {ph:"ph--",heroicons:"heroicons--",lucide:"lucide--",hugeicons:"hugeicons--",solar:"solar--"}[t]}function In(t,e=[]){return fs.readdirSync(t).forEach(i=>{let n=we.join(t,i);if(fs.statSync(n).isDirectory())e=In(n,e);else {let o=we.extname(n);[".tsx",".jsx",".ts",".js",".astro"].includes(o)&&e.push(n);}}),e}var Ka=[".tsx",".ts",".jsx",".js",".mdx"],Xa=/^\s*(['"])use client\1\s*;?\s*(\r?\n)?/gm;function jn(t,e=[]){let r=fs.readdirSync(t);for(let i of r){let n=we.join(t,i);if(fs.statSync(n).isDirectory())jn(n,e);else {let o=we.extname(n).toLowerCase();Ka.includes(o)&&e.push(n);}}return e}function Za(t){let r=[we.join(t,"src","components"),we.join(t,"src","app","components"),we.join(t,"app","components"),we.join(t,"components"),we.join(t,"resources","js","components"),we.join(t,"views","resources","js","components"),we.join(t,"resources","js","components","ui"),we.join(t,"components","ui"),we.join(t,"src","components","ui"),we.join(t,"src","app","components","ui")].filter(n=>fs.existsSync(n)&&fs.statSync(n).isDirectory());if(r.length>0)return Array.from(new Set(r));let i=[we.join(t,"src"),we.join(t,"app"),we.join(t,"resources","js"),we.join(t,"views","resources","js"),t];for(let n of i){if(!fs.existsSync(n)||!fs.statSync(n).isDirectory())continue;let o=fs.readdirSync(n);for(let s of o)if(s==="components"){let a=we.join(n,s);fs.statSync(a).isDirectory()&&r.push(a);}if(r.length>0)break}return Array.from(new Set(r))}function Qa(t){let e=fs.readFileSync(t,"utf-8"),r=e.replace(Xa,"");return r===e?false:(fs.writeFileSync(t,r,"utf-8"),true)}var Dn=new commander.Command("remove-use-client").description("Remove 'use client' directives from component files in common React and Inertia layouts").action(()=>{try{let t=process.cwd(),e=Za(t);if(e.length===0){c.warn("\u26A0 No components directory found. Tried src/components, components, app/components, resources/js/components, and views/resources/js/components.");return}c.info(`\u{1F50D} Found ${e.length} component directory(ies). Scanning for 'use client' directives...`);let r=0,i=0,n=[];for(let o of e){let s=jn(o);for(let a of s)n.push(a),Qa(a)&&(r+=1,i+=1);}if(n.length===0){c.warn(`\u26A0 No supported component files found in ${e.join(", ")}.`);return}r===0?c.success("\u2705 No 'use client' directives were found in component files."):c.success(`\u2705 Removed 'use client' from ${r} component file(s).`);}catch(t){te(t);}});var ol=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))),sl=we.dirname(ol);process.on("SIGINT",()=>process.exit(0));process.on("SIGTERM",()=>process.exit(0));async function al(){let t=we.resolve(sl,"../package.json"),e=JSON.parse(fs.readFileSync(t,"utf-8")),r=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");r.addCommand(En),r.addCommand(kn),r.addCommand(Cn),r.addCommand(Dn),r.parse();}al();
|
|
32
|
+
${o}`}};var C=class{static packageJsonCache=new Map;static async askPackageManager(){return (await Rt__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[s,a]of Object.entries(o))if((Array.isArray(a)?a:[a]).some(u=>u in n))return s;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 r={artisan:"laravel","bin/console":"symfony","manage.py":"django"};for(let[i,n]of Object.entries(r))if(fs.existsSync(we.join(e,i)))return n;return "generic"}static hasPackageJson(e){return fs.existsSync(we.join(e,"package.json"))}static getPackageJson(e){if(this.packageJsonCache.has(e))return this.packageJsonCache.get(e);let r=we.join(e,"package.json");if(!fs.existsSync(r))return this.packageJsonCache.set(e,null),null;try{let i=fs.readFileSync(r,"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 r=process.cwd(),i=this.getPackageJson(r);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(),r=this.getPackageJson(e);return r&&r.name?r.name:we.basename(e)}static hasSrcDir(){return fs.existsSync(we.join(process.cwd(),"src"))}static isTypeScript(){let e=process.cwd();return fs.existsSync(we.join(e,"tsconfig.json"))}};var bt=class{static generateBaseFiles(e,r){let i=this.getMainCssFileName(e);this.createJkUIFiles(r,i),this.createFrameworkSpecificFiles(e,r),this.generateConfigFiles();}static createShared(e){let r=e.cssPath||"src/css/",i=e.libPath;fs.existsSync(r)||fs.mkdirSync(r,{recursive:true,mode:ee}),fs.existsSync(`${r}/jk-ui`)||fs.mkdirSync(`${r}/jk-ui`,{recursive:true,mode:ee}),fs.existsSync(`${i}`)||fs.mkdirSync(`${i}`,{recursive:true,mode:ee});}static createJkUIFiles(e,r){let i=e.cssPath,n=e.libPath,o=e.themingMode||"light",s=e.theme||"jk-ui";this.createShared(e);let a=o.toLowerCase()==="both"?"":`${o.toLowerCase()}.`,l=yt.get(e,o,s);fs.writeFileSync(we.join(i,`${r}.css`),l),fs.writeFileSync(we.join(i,"button-styles.css"),j.get(`css.${a}buttons`)),fs.writeFileSync(we.join(i,"utilities.css"),j.get(`css.${a}utilities`)),fs.writeFileSync(we.join(n,"utils.ts"),j.get("utils.lib"));}static generateConfigFiles(){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":bn}},null,2));}static getMainCssFileName(e){return e==="inertia-react"||e==="laravel"?"app":"globals"}static createFrameworkSpecificFiles(e,r){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(r);break}}static createAstroFiles(){let r=C.hasSrcDir()?"src/":"";fs.existsSync(we.join(r,"components"))||fs.mkdirSync(we.join(r,"components"),{recursive:true,mode:ee}),fs.existsSync(we.join(r,"components/seo"))||fs.mkdirSync(we.join(r,"components/seo"),{recursive:true,mode:ee}),fs.existsSync(we.join(r,"layouts"))||fs.mkdirSync(we.join(r,"layouts"),{recursive:true,mode:ee}),fs.writeFileSync("tsconfig.json",j.get("astro.tsconfig")),fs.writeFileSync(we.join(r,"layouts/Layout.astro"),j.get("astro.layout")),fs.writeFileSync(we.join(r,"components/seo/SEO.astro"),j.get("astro.seo"));}static createRasenganFiles(){let r=C.hasSrcDir()?"src/":"";fs.existsSync(we.join(r,"components"))||fs.mkdirSync(we.join(r,"components"),{recursive:true,mode:ee}),fs.writeFileSync("rasengan.config.js",j.get("rasengan.config"));}static createReactFiles(e){let r=C.isTypeScript()?"ts":"js";fs.writeFileSync(`vite.config.${r}`,j.get("vite.vanilla"));}};var wt=class{constructor(e,r,i,n,o=new _t(e,n)){this.answers=r;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){bt.generateBaseFiles(e,this.answers);}};var Fe={error:vt__default.default.red,warn:vt__default.default.yellow,info:vt__default.default.cyan,success:vt__default.default.green};var c={error(...t){console.log(Fe.error(t.join(" ")));},warn(...t){console.log(Fe.warn(t.join(" ")));},info(...t){console.log(Fe.info(t.join(" ")));},success(...t){console.log(Fe.success(t.join(" ")));},log(...t){console.log(t.join(" "));},break(){console.log("");}};var xn=()=>{},Sn=()=>{let t=we.join(process.cwd(),"flexi-cli.json");if(!fs.existsSync(t))return false;try{let e=fs.readFileSync(t,"utf-8"),r=JSON.parse(e),i=["framework","defaultSource","registries"];for(let n of i)if(!(n in r))return !1;return !(!Array.isArray(r.registries)||r.registries.length===0)}catch{return false}},mr=t=>{if(!t)return t;let e=String(t).trim().replace(/\\/g,"/");return e=e.replace(/^\.\//,""),e=e.replace(/\/+/,"/"),e.endsWith("/")||(e+="/"),e},_r=t=>{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(t??"").trim());return i.success?true:i.error.issues[0]?.message||"Invalid path"};var xt=class{get(){return [{type:"select",name:"theme",message:"\u{1F3A8} Which theme would you like to use?",choices:vn.map(e=>({title:e.title,value:e.value,selected:e.selected}))},{type:"select",name:"themingMode",message:"Your theming mode",choices:wn.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:Le.map(e=>({title:e.title,value:e.value,selected:e.selected}))}]}async askFolders(e){let r=C.hasSrcDir(),i=e==="next"&&fs.existsSync(we.join(process.cwd(),"app")),n=gr.find(a=>a.framework===e)??{cssPath:i?"styles":"src/styles"},o={cssPath:r?n.cssPath:n.cssPath?.startsWith("src/")?n.cssPath.replace("src/",""):n.cssPath,libPath:e==="inertia-react"||e==="laravel"?"resources/views/js/lib":r?"src/lib":"lib"},s=await Rt__default.default([{type:"text",name:"cssPath",message:"Path to the CSS file",initial:o.cssPath,validate:a=>_r(a),format:a=>mr(a)},{type:"text",name:"libPath",message:"Path to the lib utils folder",initial:o.libPath,validate:a=>_r(a),format:a=>mr(a)}]);return {cssPath:s.cssPath,libPath:s.libPath}}};var St=class{constructor(e=new xt){this.themingPrompts=e;}supportedFrameworks=["astro","rasengan","react","react-js","react-ts","tanstack-start","tanstack-router","react-router","inertia-react","next"];async initialize(e){let r={projectName:C.getProjectName(),framework:"",theme:"",cssPath:"",themingMode:"both",iconLibrary:"",libPath:""};if(e.cwd&&e.cwd!==process.cwd()&&process.chdir(e.cwd),!C.hasPackageJson(process.cwd()))c.error("\u2718 No package.json found."),c.info("Please create a project first using your framework's CLI."),c.info("Example: npm create vite@latest"),process.exit(0);else {let i=C.detect();!this.supportedFrameworks.includes(i)&&!["vite-js","vite-ts"].includes(i)&&(c.error(`\u274C Sorry, the CLI does not support the '${i}' framework for the moment.`),c.info("Supported frameworks: Astro, React, Rasengan, Tanstack Start, Tanstack Router, React Router 7, Inertia React"),process.exit(0));let n=i;r=await this.handleInitInProject(n,e);}return {projectAnswers:r}}async handleInitInProject(e,r){c.info(`\u{1F4E6} Detected ${e} project`),C.checkTailwindCSS()||c.info("\u2139\uFE0F Tailwind CSS will be configured for your project");let n=await Rt__default.default(this.themingPrompts.get()),o="",s=r.libPath||"";if(r.cssPath&&(o=r.cssPath),o===""){let a=await this.themingPrompts.askFolders(e);o=a.cssPath,s=a.libPath;}return {projectName:C.getProjectName(),framework:e,theme:n.theme,themingMode:n.themingMode,iconLibrary:n.iconLibrary,cssPath:o,libPath:s}}};var te=t=>{t instanceof Error?c.error(t.message):c.error("An unexpected error occurred"),process.exit(1);};var En=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 t=>{try{let e={cssPath:t.cssPath,cwd:t.cwd};if(Sn()){c.info("Project already initialized");return}xn();let r=new St,i=W(),{projectAnswers:n}=await r.initialize(e),o=ve.detectPackageManager();new wt(n.projectName,n,n.framework,o).setup(!1),i.succeed("Project setup successfully"),i.stop();}catch(e){te(e);}});var Et=[{ph:"ph--user",heroicons:"heroicons--user",lucide:"lucide--user",hugeicons:"hugeicons--user",solar:"solar--user-linear"},{ph:"ph--user-circle",heroicons:"heroicons--user",lucide:"lucide--user-circle",hugeicons:"hugeicons--user-circle",solar:"solar--user-circle-linear"},{ph:"ph--user-bold",heroicons:"heroicons--user-solid",lucide:"lucide--user",hugeicons:"hugeicons--user",solar:"solar--user-bold"},{ph:"ph--magnifying-glass",heroicons:"heroicons--magnifying-glass",lucide:"lucide--search",hugeicons:"hugeicons--search-01",solar:"solar--magnifer-linear"},{ph:"ph--magnifying-glass-bold",heroicons:"heroicons--magnifying-glass",lucide:"lucide--search",hugeicons:"hugeicons--search-02",solar:"solar--magnifer-bold"},{ph:"ph--bell",heroicons:"heroicons--bell",lucide:"lucide--bell",hugeicons:"hugeicons--notification-01",solar:"solar--bell-linear"},{ph:"ph--bell-ringing",heroicons:"heroicons--bell-alert",lucide:"lucide--bell-ring",hugeicons:"hugeicons--notification-03",solar:"solar--bell-bing-linear"},{ph:"ph--bell-bold",heroicons:"heroicons--bell",lucide:"lucide--bell",hugeicons:"hugeicons--notification-01",solar:"solar--bell-bold"},{ph:"ph--house",heroicons:"heroicons--home",lucide:"lucide--house",hugeicons:"hugeicons--home-02",solar:"solar--home-2-linear"},{ph:"ph--house-simple",heroicons:"heroicons--home",lucide:"lucide--home",hugeicons:"hugeicons--home-01",solar:"solar--home-linear"},{ph:"ph--house-bold",heroicons:"heroicons--home",lucide:"lucide--home",hugeicons:"hugeicons--home-01",solar:"solar--home-bold"},{ph:"ph--gear",heroicons:"heroicons--cog-6-tooth",lucide:"lucide--settings",hugeicons:"hugeicons--settings-01",solar:"solar--settings-linear"},{ph:"ph--gear-six",heroicons:"heroicons--cog-6-tooth",lucide:"lucide--settings",hugeicons:"hugeicons--settings-03",solar:"solar--settings-linear"},{ph:"ph--gear-bold",heroicons:"heroicons--cog-6-tooth",lucide:"lucide--settings",hugeicons:"hugeicons--settings-02",solar:"solar--settings-bold"},{ph:"ph--sign-out",heroicons:"heroicons--arrow-right-on-rectangle",lucide:"lucide--log-out",hugeicons:"hugeicons--logout-02",solar:"solar--logout-2-linear"},{ph:"ph--sign-out-bold",heroicons:"heroicons--arrow-right-on-rectangle",lucide:"lucide--log-out",hugeicons:"hugeicons--logout-01",solar:"solar--logout-2-bold"},{ph:"ph--plus",heroicons:"heroicons--plus",lucide:"lucide--plus",hugeicons:"hugeicons--plus-sign",solar:"solar--add-circle-linear"},{ph:"ph--plus-bold",heroicons:"heroicons--plus",lucide:"lucide--plus",hugeicons:"hugeicons--plus-sign",solar:"solar--add-circle-bold"},{ph:"ph--minus",heroicons:"heroicons--minus",lucide:"lucide--minus",hugeicons:"hugeicons--minus-sign",solar:"solar--minus-circle-linear"},{ph:"ph--minus-bold",heroicons:"heroicons--minus",lucide:"lucide--minus",hugeicons:"hugeicons--minus-sign",solar:"solar--minus-circle-bold"},{ph:"ph--x",heroicons:"heroicons--x-mark",lucide:"lucide--x",hugeicons:"hugeicons--cancel-01",solar:"solar--close-circle-linear"},{ph:"ph--x-bold",heroicons:"heroicons--x-mark",lucide:"lucide--x",hugeicons:"hugeicons--cancel-01",solar:"solar--close-circle-bold"},{ph:"ph--check",heroicons:"heroicons--check",lucide:"lucide--check",hugeicons:"hugeicons--tick-01",solar:"solar--check-circle-linear"},{ph:"ph--check-bold",heroicons:"heroicons--check",lucide:"lucide--check",hugeicons:"hugeicons--tick-02",solar:"solar--check-circle-bold"},{ph:"ph--arrow-left",heroicons:"heroicons--arrow-left",lucide:"lucide--arrow-left",hugeicons:"hugeicons--arrow-left-02",solar:"solar--arrow-left-linear"},{ph:"ph--arrow-right",heroicons:"heroicons--arrow-right",lucide:"lucide--arrow-right",hugeicons:"hugeicons--arrow-right-02",solar:"solar--arrow-right-linear"},{ph:"ph--arrow-up",heroicons:"heroicons--arrow-up",lucide:"lucide--arrow-up",hugeicons:"hugeicons--arrow-up-02",solar:"solar--arrow-up-linear"},{ph:"ph--arrow-down",heroicons:"heroicons--arrow-down",lucide:"lucide--arrow-down",hugeicons:"hugeicons--arrow-down-02",solar:"solar--arrow-down-linear"},{ph:"ph--arrow-left-bold",heroicons:"heroicons--arrow-left",lucide:"lucide--arrow-left",hugeicons:"hugeicons--arrow-left-02",solar:"solar--arrow-left-bold"},{ph:"ph--arrow-right-bold",heroicons:"heroicons--arrow-right",lucide:"lucide--arrow-right",hugeicons:"hugeicons--arrow-right-02",solar:"solar--arrow-right-bold"},{ph:"ph--caret-left",heroicons:"heroicons--chevron-left",lucide:"lucide--chevron-left",hugeicons:"hugeicons--arrow-left-01",solar:"solar--alt-arrow-left-linear"},{ph:"ph--caret-right",heroicons:"heroicons--chevron-right",lucide:"lucide--chevron-right",hugeicons:"hugeicons--arrow-right-01",solar:"solar--alt-arrow-right-linear"},{ph:"ph--caret-up",heroicons:"heroicons--chevron-up",lucide:"lucide--chevron-up",hugeicons:"hugeicons--arrow-up-01",solar:"solar--alt-arrow-up-linear"},{ph:"ph--caret-down",heroicons:"heroicons--chevron-down",lucide:"lucide--chevron-down",hugeicons:"hugeicons--arrow-down-01",solar:"solar--alt-arrow-down-linear"},{ph:"ph--trash",heroicons:"heroicons--trash",lucide:"lucide--trash-2",hugeicons:"hugeicons--delete-02",solar:"solar--trash-bin-trash-linear"},{ph:"ph--trash-bold",heroicons:"heroicons--trash",lucide:"lucide--trash-2",hugeicons:"hugeicons--delete-03",solar:"solar--trash-bin-trash-bold"},{ph:"ph--pencil",heroicons:"heroicons--pencil",lucide:"lucide--pencil",hugeicons:"hugeicons--pencil-edit-01",solar:"solar--pen-linear"},{ph:"ph--pencil-simple",heroicons:"heroicons--pencil",lucide:"lucide--pencil",hugeicons:"hugeicons--pencil-edit-02",solar:"solar--pen-linear"},{ph:"ph--pencil-bold",heroicons:"heroicons--pencil",lucide:"lucide--pencil",hugeicons:"hugeicons--pen-02",solar:"solar--pen-bold"},{ph:"ph--eye",heroicons:"heroicons--eye",lucide:"lucide--eye",hugeicons:"hugeicons--eye",solar:"solar--eye-linear"},{ph:"ph--eye-slash",heroicons:"heroicons--eye-slash",lucide:"lucide--eye-off",hugeicons:"hugeicons--view-off-slash",solar:"solar--eye-closed-linear"},{ph:"ph--eye-bold",heroicons:"heroicons--eye",lucide:"lucide--eye",hugeicons:"hugeicons--eye",solar:"solar--eye-bold"},{ph:"ph--lock",heroicons:"heroicons--lock-closed",lucide:"lucide--lock",hugeicons:"hugeicons--lock-key",solar:"solar--lock-linear"},{ph:"ph--lock-key",heroicons:"heroicons--key",lucide:"lucide--key",hugeicons:"hugeicons--key-02",solar:"solar--key-linear"},{ph:"ph--lock-bold",heroicons:"heroicons--lock-closed",lucide:"lucide--lock",hugeicons:"hugeicons--lock",solar:"solar--lock-bold"},{ph:"ph--lock-key-open",heroicons:"heroicons--lock-open",lucide:"lucide--lock-open",hugeicons:"hugeicons--circle-unlock-02",solar:"solar--lock-unlocked-linear"},{ph:"ph--envelope",heroicons:"heroicons--envelope",lucide:"lucide--mail",hugeicons:"hugeicons--mail-01",solar:"solar--letter-linear"},{ph:"ph--envelope-simple",heroicons:"heroicons--envelope",lucide:"lucide--mail",hugeicons:"hugeicons--mail-01",solar:"solar--letter-linear"},{ph:"ph--envelope-bold",heroicons:"heroicons--envelope",lucide:"lucide--mail",hugeicons:"hugeicons--mail-01",solar:"solar--letter-bold"},{ph:"ph--key",heroicons:"heroicons--key",lucide:"lucide--key",hugeicons:"hugeicons--key-01",solar:"solar--key-linear"},{ph:"ph--key-bold",heroicons:"heroicons--key",lucide:"lucide--key",hugeicons:"hugeicons--key-02",solar:"solar--key-bold"},{ph:"ph--calendar",heroicons:"heroicons--calendar",lucide:"lucide--calendar",hugeicons:"hugeicons--calendar-01",solar:"solar--calendar-linear"},{ph:"ph--calendar-blank",heroicons:"heroicons--calendar",lucide:"lucide--calendar",hugeicons:"hugeicons--calendar-02",solar:"solar--calendar-linear"},{ph:"ph--calendar-bold",heroicons:"heroicons--calendar",lucide:"lucide--calendar",hugeicons:"hugeicons--calendar-01",solar:"solar--calendar-bold"},{ph:"ph--clock",heroicons:"heroicons--clock",lucide:"lucide--clock",hugeicons:"hugeicons--clock-01",solar:"solar--clock-circle-linear"},{ph:"ph--clock-bold",heroicons:"heroicons--clock",lucide:"lucide--clock",hugeicons:"hugeicons--clock-01",solar:"solar--clock-circle-bold"},{ph:"ph--clock-clockwise",heroicons:"heroicons--arrow-path",lucide:"lucide--rotate-cw",hugeicons:"hugeicons--rotate-clockwise",solar:"solar--refresh-circle-linear"},{ph:"ph--image",heroicons:"heroicons--photo",lucide:"lucide--image",hugeicons:"hugeicons--image-01",solar:"solar--gallery-linear"},{ph:"ph--image-bold",heroicons:"heroicons--photo",lucide:"lucide--image",hugeicons:"hugeicons--image-02",solar:"solar--gallery-bold"},{ph:"ph--file",heroicons:"heroicons--document",lucide:"lucide--file",hugeicons:"hugeicons--file-01",solar:"solar--file-linear"},{ph:"ph--file-text",heroicons:"heroicons--document-text",lucide:"lucide--file-text",hugeicons:"hugeicons--file-02",solar:"solar--file-text-linear"},{ph:"ph--file-bold",heroicons:"heroicons--document",lucide:"lucide--file",hugeicons:"hugeicons--file-01",solar:"solar--file-bold"},{ph:"ph--folder",heroicons:"heroicons--folder",lucide:"lucide--folder",hugeicons:"hugeicons--folder-01",solar:"solar--folder-linear"},{ph:"ph--folder-open",heroicons:"heroicons--folder-open",lucide:"lucide--folder-open",hugeicons:"hugeicons--folder-open",solar:"solar--folder-open-linear"},{ph:"ph--download",heroicons:"heroicons--arrow-down-tray",lucide:"lucide--download",hugeicons:"hugeicons--download-01",solar:"solar--download-linear"},{ph:"ph--download-bold",heroicons:"heroicons--arrow-down-tray",lucide:"lucide--download",hugeicons:"hugeicons--download-01",solar:"solar--download-bold"},{ph:"ph--upload",heroicons:"heroicons--arrow-up-tray",lucide:"lucide--upload",hugeicons:"hugeicons--upload-01",solar:"solar--upload-linear"},{ph:"ph--upload-bold",heroicons:"heroicons--arrow-up-tray",lucide:"lucide--upload",hugeicons:"hugeicons--upload-01",solar:"solar--upload-bold"},{ph:"ph--link",heroicons:"heroicons--link",lucide:"lucide--link",hugeicons:"hugeicons--link-01",solar:"solar--link-linear"},{ph:"ph--link-bold",heroicons:"heroicons--link",lucide:"lucide--link",hugeicons:"hugeicons--link-01",solar:"solar--link-bold"},{ph:"ph--share",heroicons:"heroicons--share",lucide:"lucide--share-2",hugeicons:"hugeicons--share-01",solar:"solar--share-linear"},{ph:"ph--share-network",heroicons:"heroicons--share",lucide:"lucide--share-2",hugeicons:"hugeicons--share-01",solar:"solar--share-linear"},{ph:"ph--heart",heroicons:"heroicons--heart",lucide:"lucide--heart",hugeicons:"hugeicons--favourite",solar:"solar--heart-linear"},{ph:"ph--heart-bold",heroicons:"heroicons--heart",lucide:"lucide--heart",hugeicons:"hugeicons--favourite",solar:"solar--heart-bold"},{ph:"ph--star",heroicons:"heroicons--star",lucide:"lucide--star",hugeicons:"hugeicons--star",solar:"solar--star-linear"},{ph:"ph--star-bold",heroicons:"heroicons--star",lucide:"lucide--star",hugeicons:"hugeicons--star",solar:"solar--star-bold"},{ph:"ph--menu",heroicons:"heroicons--bars-3",lucide:"lucide--menu",hugeicons:"hugeicons--menu-01",solar:"solar--hamburger-menu-linear"},{ph:"ph--list",heroicons:"heroicons--list-bullet",lucide:"lucide--list",hugeicons:"hugeicons--left-to-right-list-bullet",solar:"solar--list-linear"},{ph:"ph--grid",heroicons:"heroicons--squares-2x2",lucide:"lucide--grid-3x3",hugeicons:"hugeicons--grid",solar:"solar--widget-2-linear"},{ph:"ph--squares-four",heroicons:"heroicons--squares-2x2",lucide:"lucide--grid-3x3",hugeicons:"hugeicons--grid",solar:"solar--widget-2-linear"},{ph:"ph--dots-three",heroicons:"heroicons--ellipsis-horizontal",lucide:"lucide--more-horizontal",hugeicons:"hugeicons--more-horizontal",solar:"solar--menu-dots-linear"},{ph:"ph--dots-three-vertical",heroicons:"heroicons--ellipsis-vertical",lucide:"lucide--more-vertical",hugeicons:"hugeicons--more-vertical",solar:"solar--menu-dots-vertical-linear"},{ph:"ph--warning",heroicons:"heroicons--exclamation-triangle",lucide:"lucide--alert-triangle",hugeicons:"hugeicons--alert-01",solar:"solar--danger-triangle-linear"},{ph:"ph--warning-bold",heroicons:"heroicons--exclamation-triangle",lucide:"lucide--alert-triangle",hugeicons:"hugeicons--alert-01",solar:"solar--danger-triangle-bold"},{ph:"ph--info",heroicons:"heroicons--information-circle",lucide:"lucide--info",hugeicons:"hugeicons--alert-circle",solar:"solar--info-circle-linear"},{ph:"ph--info-bold",heroicons:"heroicons--information-circle",lucide:"lucide--info",hugeicons:"hugeicons--alert-circle",solar:"solar--info-circle-bold"},{ph:"ph--question",heroicons:"heroicons--question-mark-circle",lucide:"lucide--help-circle",hugeicons:"hugeicons--question",solar:"solar--question-circle-linear"},{ph:"ph--question-bold",heroicons:"heroicons--question-mark-circle",lucide:"lucide--help-circle",hugeicons:"hugeicons--question",solar:"solar--question-circle-bold"},{ph:"ph--smiley-sad",heroicons:"heroicons--face-frown",lucide:"lucide--frown",hugeicons:"hugeicons--sad-01",solar:"solar--sad-circle-linear"},{ph:"ph--lightbulb-filament",heroicons:"heroicons--light-bulb",lucide:"lucide--lightbulb",hugeicons:"hugeicons--idea",solar:"solar--lightbulb-linear"},{ph:"ph--circle",heroicons:"heroicons--circle",lucide:"lucide--circle",hugeicons:"hugeicons--circle",solar:"solar--full-screen-circle-linear"},{ph:"ph--circle-filled",heroicons:"heroicons--check-circle",lucide:"lucide--circle",hugeicons:"hugeicons--circle",solar:"solar--check-circle-bold"},{ph:"ph--square",heroicons:"heroicons--square-3-stack-3d",lucide:"lucide--square",hugeicons:"hugeicons--square",solar:"solar--full-screen-square-linear"},{ph:"ph--square-fill",heroicons:"heroicons--square-3-stack-3d",lucide:"lucide--square",hugeicons:"hugeicons--square",solar:"solar--full-screen-square-bold"}];var kn=new commander.Command("fix-icons").description("Replace icons in components - switch between icon libraries or select specific icons").action(async()=>{try{let t=process.cwd(),e=we.join(t,"components.json");if(!fs.existsSync(e)){c.error("\u2718 No components.json found. Please initialize the project first.");return}let i=JSON.parse(fs.readFileSync(e,"utf-8")).iconLibrary;if(!i){c.error("\u2718 No icon library specified in components.json.");return}let n=C.detect(),o="";if(n==="inertia-react"||n==="laravel"?o=we.join(t,"resources","views","js","components"):C.hasSrcDir()?o=we.join(t,"src","components"):o=we.join(t,"components"),!fs.existsSync(o)){c.warn(`\u26A0 components/ui directory not found at: ${o}`);return}c.info(`\u{1F50D} Scanning ${o} for icons...`);let s=Pn(o),a=new Map,l=["ph","heroicons","lucide","hugeicons","solar"];for(let p of l)a.set(p,new Map);for(let p of s){let v=fs.readFileSync(p,"utf-8");for(let R of l){let J=Fa(R),Pt=new RegExp(`${J}([a-z0-9-]+)`,"g"),br;for(;(br=Pt.exec(v))!==null;){let wr=br[0],vr=a.get(R);vr.set(wr,(vr.get(wr)??0)+1);}}}let u=[];for(let[p,v]of a.entries())for(let[R,J]of v.entries())u.push({iconKey:R,library:p,count:J});if(u.length===0){c.info("\u2728 No supported icons were found in your components.");return}let h=new Map;for(let p of u)h.has(p.library)||h.set(p.library,[]),h.get(p.library).push(p.iconKey);c.info(`
|
|
33
|
+
\u{1F4CA} Found icons by library:`);for(let[p,v]of h.entries())c.info(` ${p}: ${v.length} unique icons (${u.filter(R=>R.library===p).reduce((R,J)=>R+J.count,0)} occurrences)`);let d=i;if(h.size>1){let p=Array.from(h.keys()).filter(v=>h.get(v).length>0).map(v=>({title:v,value:v}));p.length>1&&(d=(await Rt__default.default({type:"select",name:"value",message:"Which icon library do you want to replace?",choices:p,initial:p.findIndex(R=>R.value===i)})).value);}let y=h.get(d)??[];if(y.length===0){c.info(`\u2728 No ${d} icons found in your components.`);return}let S=(await Rt__default.default({type:"select",name:"value",message:"Which icon library do you want to switch to?",choices:l.filter(p=>p!==d).map(p=>({title:p,value:p}))})).value,I=(await Rt__default.default({type:"multiselect",name:"value",message:`Select which ${d} icons to replace (${y.length} found):`,choices:y.sort().map(p=>({title:p,value:p})),hint:"- Space to select. Return to submit"})).value;if(I.length===0){c.info("Operation cancelled.");return}let b=[];for(let p of I){let v=Et.find(R=>R[d]===p);if(v){let R=v[S];R&&b.push({from:p,to:R});}}if(b.length===0){c.error("\u2718 Could not find mappings for selected icons.");return}let E=0,P=[];for(let p of s){let v=fs.readFileSync(p,"utf-8"),R=b.filter(J=>v.includes(J.from));R.length>0&&(E+=R.reduce((J,Pt)=>J+(v.match(new RegExp(Pt.from,"g"))??[]).length,0),P.push({path:p,content:v,replacements:R}));}if(E===0){c.info("\u2728 No replacements needed.");return}if(!(await Rt__default.default({type:"confirm",name:"value",message:`Replace ${E} icon occurrences in ${P.length} files from ${d} to ${S}?`,initial:!0})).value){c.info("Operation cancelled.");return}let H=W();H.start("Replacing icons...");for(let p of P){let v=p.content;for(let R of p.replacements)v=v.replace(new RegExp(R.from,"g"),R.to);fs.writeFileSync(p.path,v);}H.succeed(`\u2728 Successfully replaced ${E} icons in ${P.length} files (${d} \u2192 ${S}).`);}catch(t){te(t);}});function Fa(t){return {ph:"ph--",heroicons:"heroicons--",lucide:"lucide--",hugeicons:"hugeicons--",solar:"solar--"}[t]}function Pn(t,e=[]){return fs.readdirSync(t).forEach(i=>{let n=we.join(t,i);if(fs.statSync(n).isDirectory())e=Pn(n,e);else {let o=we.extname(n);[".tsx",".jsx",".ts",".js",".astro"].includes(o)&&e.push(n);}}),e}var Cn=new commander.Command("replace-icon").description("Replace all icons from one library to another (non-interactive)").argument("<fromLibrary>","Icon library to replace (ph, heroicons, lucide, hugeicons, solar)").option("--with <toLibrary>","Target icon library to replace with").option("--skip-confirm","Skip confirmation prompt").action(async(t,e)=>{try{let r=["ph","heroicons","lucide","hugeicons","solar"];if(!r.includes(t)){c.error(`\u2718 Invalid source library: ${t}`),c.info(` Supported libraries: ${r.join(", ")}`);return}if(!e.with){c.error("\u2718 Target library required. Use --with <library>"),c.info(` Supported libraries: ${r.join(", ")}`);return}if(!r.includes(e.with)){c.error(`\u2718 Invalid target library: ${e.with}`),c.info(` Supported libraries: ${r.join(", ")}`);return}let i=t,n=e.with;if(i===n){c.error("\u2718 Source and target libraries cannot be the same.");return}let o=process.cwd(),s=we.join(o,"components.json");if(!fs.existsSync(s)){c.error("\u2718 No components.json found. Please initialize the project first.");return}let a=C.detect(),l="";if(a==="inertia-react"||a==="laravel"?l=we.join(o,"resources","views","js","components"):C.hasSrcDir()?l=we.join(o,"src","components"):l=we.join(o,"components"),!fs.existsSync(l)){c.error(`\u2718 Components directory not found at: ${l}`);return}c.info(`\u{1F50D} Scanning ${l} for ${i} icons...`);let u=In(l),h=Ha(i),d=new RegExp(`${h}([a-z0-9-]+)`,"g"),y=new Map,T=[];for(let E of u){let P=fs.readFileSync(E,"utf-8"),A=!1,H,p=new RegExp(d);for(;(H=p.exec(P))!==null;){let v=H[0];y.set(v,(y.get(v)??0)+1),A=!0;}A&&T.push({path:E,content:P});}if(y.size===0){c.info(`\u2728 No ${i} icons found in your components.`);return}let S=[],m=0;for(let E of y.keys()){let P=Et.find(A=>A[i]===E);if(P){let A=P[n];A?S.push({from:E,to:A}):m++;}else m++;}if(S.length===0){c.error("\u2718 No icon mappings found for the specified libraries.");return}let I=0;for(let E of T)for(let P of S){let A=E.content.match(new RegExp(P.from,"g"));A&&(I+=A.length);}if(c.info(`
|
|
34
|
+
\u{1F4CA} Replacement Summary:`),c.info(` Source library: ${i} (${y.size} unique icons)`),c.info(` Target library: ${n}`),c.info(` Total replacements: ${I} occurrences in ${T.length} files`),m>0&&c.warn(` \u26A0 ${m} icons have no mapping`),!e.skipConfirm&&!(await import('prompts').then(P=>P.default({type:"confirm",name:"value",message:`Proceed with replacing ${I} icons from ${i} to ${n}?`,initial:!0}))).value){c.info("Operation cancelled.");return}let b=W();b.start("Replacing icons...");for(let E of T){let P=E.content;for(let A of S)P=P.replace(new RegExp(A.from,"g"),A.to);fs.writeFileSync(E.path,P);}b.succeed(`\u2728 Successfully replaced ${I} icons (${i} \u2192 ${n}) in ${T.length} files.`);}catch(r){te(r);}});function Ha(t){return {ph:"ph--",heroicons:"heroicons--",lucide:"lucide--",hugeicons:"hugeicons--",solar:"solar--"}[t]}function In(t,e=[]){return fs.readdirSync(t).forEach(i=>{let n=we.join(t,i);if(fs.statSync(n).isDirectory())e=In(n,e);else {let o=we.extname(n);[".tsx",".jsx",".ts",".js",".astro"].includes(o)&&e.push(n);}}),e}var Ka=[".tsx",".ts",".jsx",".js",".mdx"],Xa=/^\s*(['"])use client\1\s*;?\s*(\r?\n)?/gm;function jn(t,e=[]){let r=fs.readdirSync(t);for(let i of r){let n=we.join(t,i);if(fs.statSync(n).isDirectory())jn(n,e);else {let o=we.extname(n).toLowerCase();Ka.includes(o)&&e.push(n);}}return e}function Za(t){let r=[we.join(t,"src","components"),we.join(t,"src","app","components"),we.join(t,"app","components"),we.join(t,"components"),we.join(t,"resources","js","components"),we.join(t,"resources","views","js","components"),we.join(t,"views","resources","js","components"),we.join(t,"resources","js","components","ui"),we.join(t,"resources","views","js","components","ui"),we.join(t,"components","ui"),we.join(t,"src","components","ui"),we.join(t,"src","app","components","ui")].filter(n=>fs.existsSync(n)&&fs.statSync(n).isDirectory());if(r.length>0)return Array.from(new Set(r));let i=[we.join(t,"src"),we.join(t,"app"),we.join(t,"resources","js"),we.join(t,"views","resources","js"),t];for(let n of i){if(!fs.existsSync(n)||!fs.statSync(n).isDirectory())continue;let o=fs.readdirSync(n);for(let s of o)if(s==="components"){let a=we.join(n,s);fs.statSync(a).isDirectory()&&r.push(a);}if(r.length>0)break}return Array.from(new Set(r))}function Qa(t){let e=fs.readFileSync(t,"utf-8"),r=e.replace(Xa,"");return r===e?false:(fs.writeFileSync(t,r,"utf-8"),true)}var Dn=new commander.Command("remove-use-client").description("Remove 'use client' directives from component files in common React and Inertia layouts").action(()=>{try{let t=process.cwd(),e=Za(t);if(e.length===0){c.warn("\u26A0 No components directory found. Tried src/components, components, app/components, resources/js/components, and views/resources/js/components.");return}c.info(`\u{1F50D} Found ${e.length} component directory(ies). Scanning for 'use client' directives...`);let r=0,i=0,n=[];for(let o of e){let s=jn(o);for(let a of s)n.push(a),Qa(a)&&(r+=1,i+=1);}if(n.length===0){c.warn(`\u26A0 No supported component files found in ${e.join(", ")}.`);return}r===0?c.success("\u2705 No 'use client' directives were found in component files."):c.success(`\u2705 Removed 'use client' from ${r} component file(s).`);}catch(t){te(t);}});var ol=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))),sl=we.dirname(ol);process.on("SIGINT",()=>process.exit(0));process.on("SIGTERM",()=>process.exit(0));async function al(){let t=we.resolve(sl,"../package.json"),e=JSON.parse(fs.readFileSync(t,"utf-8")),r=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");r.addCommand(En),r.addCommand(kn),r.addCommand(Cn),r.addCommand(Dn),r.parse();}al();
|
|
35
35
|
/*! Bundled license information:
|
|
36
36
|
|
|
37
37
|
safe-buffer/index.js:
|