create-qwik 0.11.0 → 0.11.1-dev20221020180233
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/index.cjs +27 -27
- package/package.json +1 -1
- package/starters/apps/base/.vscode/qwik.code-snippets +2 -2
- package/starters/apps/base/package.json +7 -7
- package/starters/apps/base/tsconfig.json +3 -0
- package/starters/apps/basic/src/components/router-head/router-head.tsx +0 -7
- package/starters/apps/basic/src/global.css +1 -1
- package/starters/apps/basic/src/root.tsx +4 -2
- package/starters/apps/documentation-site/src/components/router-head/router-head.tsx +0 -7
- package/starters/apps/library/package.json +4 -4
package/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* create-qwik 0.11.
|
|
3
|
+
* create-qwik 0.11.1-dev20221020180233
|
|
4
4
|
* Copyright Builder.io, Inc. All Rights Reserved.
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
|
|
7
7
|
*/
|
|
8
|
-
"use strict";var jc=Object.create;var mt=Object.defineProperty;var $c=Object.getOwnPropertyDescriptor;var Lc=Object.getOwnPropertyNames;var Fc=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var Nc=(t,e,r)=>e in t?mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Uc=(t,e)=>{for(var r in e)mt(t,r,{get:e[r],enumerable:!0})},cn=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Lc(e))!Bc.call(t,s)&&s!==r&&mt(t,s,{get:()=>e[s],enumerable:!(i=$c(e,s))||i.enumerable});return t};var M=(t,e,r)=>(r=t!=null?jc(Fc(t)):{},cn(e||!t||!t.__esModule?mt(r,"default",{value:t,enumerable:!0}):r,t)),Hc=t=>cn(mt({},"__esModule",{value:!0}),t);var fn=(t,e,r)=>(Nc(t,typeof e!="symbol"?e+"":e,r),r),dn=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var c=(t,e,r)=>(dn(t,e,"read from private field"),r?r.call(t):e.get(t)),k=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},w=(t,e,r,i)=>(dn(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),bt=(t,e,r,i)=>({set _(s){w(t,e,s,r)},get _(){return c(t,e,i)}});var wn=h((J0,vn)=>{"use strict";vn.exports=function(){if(!!process.env.npm_config_user_agent)return Gc(process.env.npm_config_user_agent)};function Gc(t){let e=t.split(" ")[0],r=e.lastIndexOf("/"),i=e.substring(0,r);return{name:i==="npminstall"?"cnpm":i,version:e.substring(r+1)}}});var Cn=h((tb,Yr)=>{"use strict";var Rn=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Yr.exports=Rn;Yr.exports.default=Rn});var Mn=h((rb,Xt)=>{"use strict";var Vc=Cn(),Zt=new WeakMap,Dn=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,s=t.displayName||t.name||"<anonymous>",n=function(...o){if(Zt.set(n,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return r};return Vc(n,t),Zt.set(n,i),n};Xt.exports=Dn;Xt.exports.default=Dn;Xt.exports.callCount=t=>{if(!Zt.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Zt.get(t)}});var An=h((ib,Qt)=>{Qt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Qt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Qt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var jn=h((sb,ze)=>{var D=global.process,Pe=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"};Pe(D)?(qn=require("assert"),Je=An(),In=/^win/i.test(D.platform),yt=require("events"),typeof yt!="function"&&(yt=yt.EventEmitter),D.__signal_exit_emitter__?$=D.__signal_exit_emitter__:($=D.__signal_exit_emitter__=new yt,$.count=0,$.emitted={}),$.infinite||($.setMaxListeners(1/0),$.infinite=!0),ze.exports=function(t,e){if(!Pe(global.process))return function(){};qn.equal(typeof t,"function","a callback must be provided for exit handler"),Ke===!1&&Jr();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){$.removeListener(r,t),$.listeners("exit").length===0&&$.listeners("afterexit").length===0&&er()};return $.on(r,t),i},er=function(){!Ke||!Pe(global.process)||(Ke=!1,Je.forEach(function(e){try{D.removeListener(e,tr[e])}catch{}}),D.emit=rr,D.reallyExit=Kr,$.count-=1)},ze.exports.unload=er,ke=function(e,r,i){$.emitted[e]||($.emitted[e]=!0,$.emit(e,r,i))},tr={},Je.forEach(function(t){tr[t]=function(){if(!!Pe(global.process)){var r=D.listeners(t);r.length===$.count&&(er(),ke("exit",null,t),ke("afterexit",null,t),In&&t==="SIGHUP"&&(t="SIGINT"),D.kill(D.pid,t))}}}),ze.exports.signals=function(){return Je},Ke=!1,Jr=function(){Ke||!Pe(global.process)||(Ke=!0,$.count+=1,Je=Je.filter(function(e){try{return D.on(e,tr[e]),!0}catch{return!1}}),D.emit=kn,D.reallyExit=Pn)},ze.exports.load=Jr,Kr=D.reallyExit,Pn=function(e){!Pe(global.process)||(D.exitCode=e||0,ke("exit",D.exitCode,null),ke("afterexit",D.exitCode,null),Kr.call(D,D.exitCode))},rr=D.emit,kn=function(e,r){if(e==="exit"&&Pe(global.process)){r!==void 0&&(D.exitCode=r);var i=rr.apply(this,arguments);return ke("exit",D.exitCode,null),ke("afterexit",D.exitCode,null),i}else return rr.apply(this,arguments)}):ze.exports=function(){return function(){}};var qn,Je,In,yt,$,er,ke,tr,Ke,Jr,Kr,Pn,rr,kn});var Nn=h((lb,Jc)=>{Jc.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"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},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"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},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 Wn=h((ub,Hn)=>{"use strict";var sr=Object.assign({},Nn()),Un=Object.keys(sr);Object.defineProperty(sr,"random",{get(){let t=Math.floor(Math.random()*Un.length),e=Un[t];return sr[e]}});Hn.exports=sr});var Gn=h((bb,nr)=>{var Xc=function(){"use strict";function t(o,a,l,u){var p;typeof a=="object"&&(l=a.depth,u=a.prototype,p=a.filter,a=a.circular);var f=[],d=[],m=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function S(b,x){if(b===null)return null;if(x==0)return b;var v,Z;if(typeof b!="object")return b;if(t.__isArray(b))v=[];else if(t.__isRegExp(b))v=new RegExp(b.source,n(b)),b.lastIndex&&(v.lastIndex=b.lastIndex);else if(t.__isDate(b))v=new Date(b.getTime());else{if(m&&Buffer.isBuffer(b))return Buffer.allocUnsafe?v=Buffer.allocUnsafe(b.length):v=new Buffer(b.length),b.copy(v),v;typeof u>"u"?(Z=Object.getPrototypeOf(b),v=Object.create(Z)):(v=Object.create(u),Z=u)}if(a){var gt=f.indexOf(b);if(gt!=-1)return d[gt];f.push(b),d.push(v)}for(var Nr in b){var Ur;Z&&(Ur=Object.getOwnPropertyDescriptor(Z,Nr)),!(Ur&&Ur.set==null)&&(v[Nr]=S(b[Nr],x-1))}return v}return S(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function s(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=s;function n(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=n,t}();typeof nr=="object"&&nr.exports&&(nr.exports=Xc)});var Yn=h((yb,Vn)=>{var Qc=Gn();Vn.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Qc(e[r]))}),t}});var Kn=h((vb,Jn)=>{Jn.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 Qn=h((wb,ei)=>{"use strict";var ef=Yn(),_t=Kn(),Zn={nul:0,control:0};ei.exports=function(e){return Xn(e,Zn)};ei.exports.config=function(t){return t=ef(t||{},Zn),function(r){return Xn(r,t)}};function Xn(t,e){if(typeof t!="string")return zn(t,e);for(var r=0,i=0;i<t.length;i++){var s=zn(t.charCodeAt(i),e);if(s<0)return-1;r+=s}return r}function zn(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:tf(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 tf(t){var e=0,r=_t.length-1,i;if(t<_t[0][0]||t>_t[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>_t[i][1])e=i+1;else if(t<_t[i][0])r=i-1;else return!0;return!1}});var ri=h((xb,eo)=>{eo.exports=require("stream")});var so=h((Sb,io)=>{"use strict";function to(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function rf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?to(Object(r),!0).forEach(function(i){sf(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):to(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function sf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ro(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function of(t,e,r){return e&&ro(t.prototype,e),r&&ro(t,r),t}var af=require("buffer"),or=af.Buffer,lf=require("util"),ii=lf.inspect,uf=ii&&ii.custom||"inspect";function hf(t,e,r){or.prototype.copy.call(t,e,r)}io.exports=function(){function t(){nf(this,t),this.head=null,this.tail=null,this.length=0}return of(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,s=""+i.data;i=i.next;)s+=r+i.data;return s}},{key:"concat",value:function(r){if(this.length===0)return or.alloc(0);for(var i=or.allocUnsafe(r>>>0),s=this.head,n=0;s;)hf(s.data,i,n),n+=s.data.length,s=s.next;return i}},{key:"consume",value:function(r,i){var s;return r<this.head.data.length?(s=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?s=this.shift():s=i?this._getString(r):this._getBuffer(r),s}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,s=1,n=i.data;for(r-=n.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(a===o.length?n+=o:n+=o.slice(0,r),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:"_getBuffer",value:function(r){var i=or.allocUnsafe(r),s=this.head,n=1;for(s.data.copy(i),r-=s.data.length;s=s.next;){var o=s.data,a=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,a),r-=a,r===0){a===o.length?(++n,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=o.slice(a));break}++n}return this.length-=n,i}},{key:uf,value:function(r,i){return ii(this,rf({},i,{depth:0,customInspect:!1}))}}]),t}()});var ni=h((Eb,oo)=>{"use strict";function cf(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(si,this,t)):process.nextTick(si,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(n){!e&&n?r._writableState?r._writableState.errorEmitted?process.nextTick(ar,r):(r._writableState.errorEmitted=!0,process.nextTick(no,r,n)):process.nextTick(no,r,n):e?(process.nextTick(ar,r),e(n)):process.nextTick(ar,r)}),this)}function no(t,e){si(t,e),ar(t)}function ar(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function ff(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function si(t,e){t.emit("error",e)}function df(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}oo.exports={destroy:cf,undestroy:ff,errorOrDestroy:df}});var xe=h((Tb,uo)=>{"use strict";var lo={};function H(t,e,r){r||(r=Error);function i(n,o,a){return typeof e=="string"?e:e(n,o,a)}class s extends r{constructor(o,a,l){super(i(o,a,l))}}s.prototype.name=r.name,s.prototype.code=t,lo[t]=s}function ao(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 pf(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function gf(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function mf(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}H("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);H("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&pf(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let s;if(gf(t," argument"))s=`The ${t} ${i} ${ao(e,"type")}`;else{let n=mf(t,".")?"property":"argument";s=`The "${t}" ${n} ${i} ${ao(e,"type")}`}return s+=`. Received type ${typeof r}`,s},TypeError);H("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");H("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});H("ERR_STREAM_PREMATURE_CLOSE","Premature close");H("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});H("ERR_MULTIPLE_CALLBACK","Callback called multiple times");H("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");H("ERR_STREAM_WRITE_AFTER_END","write after end");H("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);H("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);H("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");uo.exports.codes=lo});var oi=h((Ob,ho)=>{"use strict";var bf=xe().codes.ERR_INVALID_OPT_VALUE;function yf(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function vf(t,e,r,i){var s=yf(e,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var n=i?r:"highWaterMark";throw new bf(n,s)}return Math.floor(s)}return t.objectMode?16:16*1024}ho.exports={getHighWaterMark:vf}});var co=h((Rb,ai)=>{typeof Object.create=="function"?ai.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ai.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 je=h((Cb,ui)=>{try{if(li=require("util"),typeof li.inherits!="function")throw"";ui.exports=li.inherits}catch{ui.exports=co()}var li});var po=h((Db,fo)=>{fo.exports=require("util").deprecate});var fi=h((Mb,wo)=>{"use strict";wo.exports=P;function mo(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Vf(e,t)}}var Xe;P.WritableState=St;var wf={deprecate:po()},bo=ri(),ur=require("buffer").Buffer,_f=global.Uint8Array||function(){};function xf(t){return ur.from(t)}function Sf(t){return ur.isBuffer(t)||t instanceof _f}var ci=ni(),Ef=oi(),Tf=Ef.getHighWaterMark,Se=xe().codes,Of=Se.ERR_INVALID_ARG_TYPE,Rf=Se.ERR_METHOD_NOT_IMPLEMENTED,Cf=Se.ERR_MULTIPLE_CALLBACK,Df=Se.ERR_STREAM_CANNOT_PIPE,Mf=Se.ERR_STREAM_DESTROYED,Af=Se.ERR_STREAM_NULL_VALUES,qf=Se.ERR_STREAM_WRITE_AFTER_END,If=Se.ERR_UNKNOWN_ENCODING,Qe=ci.errorOrDestroy;je()(P,bo);function Pf(){}function St(t,e,r){Xe=Xe||$e(),t=t||{},typeof r!="boolean"&&(r=e instanceof Xe),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Tf(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){Nf(e,s)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new mo(this)}St.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(St.prototype,"buffer",{get:wf.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var lr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(lr=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return lr.call(this,e)?!0:this!==P?!1:e&&e._writableState instanceof St}})):lr=function(e){return e instanceof this};function P(t){Xe=Xe||$e();var e=this instanceof Xe;if(!e&&!lr.call(P,this))return new P(t);this._writableState=new St(t,this,e),this.writable=!0,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)),bo.call(this)}P.prototype.pipe=function(){Qe(this,new Df)};function kf(t,e){var r=new qf;Qe(t,r),process.nextTick(e,r)}function jf(t,e,r,i){var s;return r===null?s=new Af:typeof r!="string"&&!e.objectMode&&(s=new Of("chunk",["string","Buffer"],r)),s?(Qe(t,s),process.nextTick(i,s),!1):!0}P.prototype.write=function(t,e,r){var i=this._writableState,s=!1,n=!i.objectMode&&Sf(t);return n&&!ur.isBuffer(t)&&(t=xf(t)),typeof e=="function"&&(r=e,e=null),n?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=Pf),i.ending?kf(this,r):(n||jf(this,i,t,r))&&(i.pendingcb++,s=Lf(this,i,n,t,e,r)),s};P.prototype.cork=function(){this._writableState.corked++};P.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&yo(this,t))};P.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 If(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function $f(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ur.from(e,r)),e}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Lf(t,e,r,i,s,n){if(!r){var o=$f(e,i,s);i!==o&&(r=!0,s="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:s,isBuf:r,callback:n,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else hi(t,e,!1,a,i,s,n);return l}function hi(t,e,r,i,s,n,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Mf("write")):r?t._writev(s,e.onwrite):t._write(s,n,e.onwrite),e.sync=!1}function Ff(t,e,r,i,s){--e.pendingcb,r?(process.nextTick(s,i),process.nextTick(xt,t,e),t._writableState.errorEmitted=!0,Qe(t,i)):(s(i),t._writableState.errorEmitted=!0,Qe(t,i),xt(t,e))}function Bf(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Nf(t,e){var r=t._writableState,i=r.sync,s=r.writecb;if(typeof s!="function")throw new Cf;if(Bf(r),e)Ff(t,r,i,e,s);else{var n=vo(r)||t.destroyed;!n&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&yo(t,r),i?process.nextTick(go,t,r,n,s):go(t,r,n,s)}}function go(t,e,r,i){r||Uf(t,e),e.pendingcb--,i(),xt(t,e)}function Uf(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function yo(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,s=new Array(i),n=e.corkedRequestsFree;n.entry=r;for(var o=0,a=!0;r;)s[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;s.allBuffers=a,hi(t,e,!0,e.length,s,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new mo(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,p=r.callback,f=e.objectMode?1:l.length;if(hi(t,e,!1,f,l,u,p),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}P.prototype._write=function(t,e,r){r(new Rf("_write()"))};P.prototype._writev=null;P.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||Gf(this,i,r),this};Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function vo(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Hf(t,e){t._final(function(r){e.pendingcb--,r&&Qe(t,r),e.prefinished=!0,t.emit("prefinish"),xt(t,e)})}function Wf(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Hf,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function xt(t,e){var r=vo(e);if(r&&(Wf(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function Gf(t,e,r){e.ending=!0,xt(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Vf(t,e,r){var i=t.entry;for(t.entry=null;i;){var s=i.callback;e.pendingcb--,s(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});P.prototype.destroy=ci.destroy;P.prototype._undestroy=ci.undestroy;P.prototype._destroy=function(t,e){e(t)}});var $e=h((Ab,xo)=>{"use strict";var Yf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};xo.exports=X;var _o=gi(),pi=fi();je()(X,_o);for(di=Yf(pi.prototype),hr=0;hr<di.length;hr++)cr=di[hr],X.prototype[cr]||(X.prototype[cr]=pi.prototype[cr]);var di,cr,hr;function X(t){if(!(this instanceof X))return new X(t);_o.call(this,t),pi.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Jf)))}Object.defineProperty(X.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(X.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(X.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Jf(){this._writableState.ended||process.nextTick(Kf,this)}function Kf(t){t.end()}Object.defineProperty(X.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1: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 To=h((mi,Eo)=>{var fr=require("buffer"),Q=fr.Buffer;function So(t,e){for(var r in t)e[r]=t[r]}Q.from&&Q.alloc&&Q.allocUnsafe&&Q.allocUnsafeSlow?Eo.exports=fr:(So(fr,mi),mi.Buffer=Le);function Le(t,e,r){return Q(t,e,r)}Le.prototype=Object.create(Q.prototype);So(Q,Le);Le.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Q(t,e,r)};Le.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Q(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Le.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Q(t)};Le.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return fr.SlowBuffer(t)}});var vi=h(Ro=>{"use strict";var yi=To().Buffer,Oo=yi.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!0;default:return!1}};function zf(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=!0}}function Zf(t){var e=zf(t);if(typeof e!="string"&&(yi.isEncoding===Oo||!Oo(t)))throw new Error("Unknown encoding: "+t);return e||t}Ro.StringDecoder=Et;function Et(t){this.encoding=Zf(t);var e;switch(this.encoding){case"utf16le":this.text=id,this.end=sd,e=4;break;case"utf8":this.fillLast=ed,e=4;break;case"base64":this.text=nd,this.end=od,e=3;break;default:this.write=ad,this.end=ld;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=yi.allocUnsafe(e)}Et.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||""};Et.prototype.end=rd;Et.prototype.text=td;Et.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 bi(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Xf(t,e,r){var i=e.length-1;if(i<r)return 0;var s=bi(e[i]);return s>=0?(s>0&&(t.lastNeed=s-1),s):--i<r||s===-2?0:(s=bi(e[i]),s>=0?(s>0&&(t.lastNeed=s-2),s):--i<r||s===-2?0:(s=bi(e[i]),s>=0?(s>0&&(s===2?s=0:t.lastNeed=s-3),s):0))}function Qf(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 ed(t){var e=this.lastTotal-this.lastNeed,r=Qf(this,t,e);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 td(t,e){var r=Xf(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 rd(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function id(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 sd(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 nd(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 od(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ad(t){return t.toString(this.encoding)}function ld(t){return t&&t.length?this.write(t):""}});var dr=h((Ib,Mo)=>{"use strict";var Co=xe().codes.ERR_STREAM_PREMATURE_CLOSE;function ud(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];t.apply(this,i)}}}function hd(){}function cd(t){return t.setHeader&&typeof t.abort=="function"}function Do(t,e,r){if(typeof e=="function")return Do(t,null,e);e||(e={}),r=ud(r||hd);var i=e.readable||e.readable!==!1&&t.readable,s=e.writable||e.writable!==!1&&t.writable,n=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){s=!1,o=!0,i||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){i=!1,l=!0,s||r.call(t)},p=function(S){r.call(t,S)},f=function(){var S;if(i&&!l)return(!t._readableState||!t._readableState.ended)&&(S=new Co),r.call(t,S);if(s&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new Co),r.call(t,S)},d=function(){t.req.on("finish",a)};return cd(t)?(t.on("complete",a),t.on("abort",f),t.req?d():t.on("request",d)):s&&!t._writableState&&(t.on("end",n),t.on("close",n)),t.on("end",u),t.on("finish",a),e.error!==!1&&t.on("error",p),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",d),t.req&&t.req.removeListener("finish",a),t.removeListener("end",n),t.removeListener("close",n),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",p),t.removeListener("close",f)}}Mo.exports=Do});var qo=h((Pb,Ao)=>{"use strict";var pr;function Ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fd=dr(),Te=Symbol("lastResolve"),Fe=Symbol("lastReject"),Tt=Symbol("error"),gr=Symbol("ended"),Be=Symbol("lastPromise"),wi=Symbol("handlePromise"),Ne=Symbol("stream");function Oe(t,e){return{value:t,done:e}}function dd(t){var e=t[Te];if(e!==null){var r=t[Ne].read();r!==null&&(t[Be]=null,t[Te]=null,t[Fe]=null,e(Oe(r,!1)))}}function pd(t){process.nextTick(dd,t)}function gd(t,e){return function(r,i){t.then(function(){if(e[gr]){r(Oe(void 0,!0));return}e[wi](r,i)},i)}}var md=Object.getPrototypeOf(function(){}),bd=Object.setPrototypeOf((pr={get stream(){return this[Ne]},next:function(){var e=this,r=this[Tt];if(r!==null)return Promise.reject(r);if(this[gr])return Promise.resolve(Oe(void 0,!0));if(this[Ne].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[Tt]?a(e[Tt]):o(Oe(void 0,!0))})});var i=this[Be],s;if(i)s=new Promise(gd(i,this));else{var n=this[Ne].read();if(n!==null)return Promise.resolve(Oe(n,!1));s=new Promise(this[wi])}return this[Be]=s,s}},Ee(pr,Symbol.asyncIterator,function(){return this}),Ee(pr,"return",function(){var e=this;return new Promise(function(r,i){e[Ne].destroy(null,function(s){if(s){i(s);return}r(Oe(void 0,!0))})})}),pr),md),yd=function(e){var r,i=Object.create(bd,(r={},Ee(r,Ne,{value:e,writable:!0}),Ee(r,Te,{value:null,writable:!0}),Ee(r,Fe,{value:null,writable:!0}),Ee(r,Tt,{value:null,writable:!0}),Ee(r,gr,{value:e._readableState.endEmitted,writable:!0}),Ee(r,wi,{value:function(n,o){var a=i[Ne].read();a?(i[Be]=null,i[Te]=null,i[Fe]=null,n(Oe(a,!1))):(i[Te]=n,i[Fe]=o)},writable:!0}),r));return i[Be]=null,fd(e,function(s){if(s&&s.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=i[Fe];n!==null&&(i[Be]=null,i[Te]=null,i[Fe]=null,n(s)),i[Tt]=s;return}var o=i[Te];o!==null&&(i[Be]=null,i[Te]=null,i[Fe]=null,o(Oe(void 0,!0))),i[gr]=!0}),e.on("readable",pd.bind(null,i)),i};Ao.exports=yd});var jo=h((kb,ko)=>{"use strict";function Io(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function vd(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Io(n,i,s,o,a,"next",l)}function a(l){Io(n,i,s,o,a,"throw",l)}o(void 0)})}}function Po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function wd(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Po(Object(r),!0).forEach(function(i){_d(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function _d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var xd=xe().codes.ERR_INVALID_ARG_TYPE;function Sd(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 xd("iterable",["Iterable"],e);var s=new t(wd({objectMode:!0},r)),n=!1;s._read=function(){n||(n=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=vd(function*(){try{var l=yield i.next(),u=l.value,p=l.done;p?s.push(null):s.push(yield u)?o():n=!1}catch(f){s.destroy(f)}}),a.apply(this,arguments)}return s}ko.exports=Sd});var gi=h(($b,Vo)=>{"use strict";Vo.exports=_;var et;_.ReadableState=Bo;var jb=require("events").EventEmitter,Fo=function(e,r){return e.listeners(r).length},Rt=ri(),mr=require("buffer").Buffer,Ed=global.Uint8Array||function(){};function Td(t){return mr.from(t)}function Od(t){return mr.isBuffer(t)||t instanceof Ed}var _i=require("util"),g;_i&&_i.debuglog?g=_i.debuglog("stream"):g=function(){};var Rd=so(),Ci=ni(),Cd=oi(),Dd=Cd.getHighWaterMark,br=xe().codes,Md=br.ERR_INVALID_ARG_TYPE,Ad=br.ERR_STREAM_PUSH_AFTER_EOF,qd=br.ERR_METHOD_NOT_IMPLEMENTED,Id=br.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,tt,xi,Si;je()(_,Rt);var Ot=Ci.errorOrDestroy,Ei=["error","close","destroy","pause","resume"];function Pd(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 Bo(t,e,r){et=et||$e(),t=t||{},typeof r!="boolean"&&(r=e instanceof et),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Dd(this,t,"readableHighWaterMark",r),this.buffer=new Rd,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(tt||(tt=vi().StringDecoder),this.decoder=new tt(t.encoding),this.encoding=t.encoding)}function _(t){if(et=et||$e(),!(this instanceof _))return new _(t);var e=this instanceof et;this._readableState=new Bo(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Rt.call(this)}Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});_.prototype.destroy=Ci.destroy;_.prototype._undestroy=Ci.undestroy;_.prototype._destroy=function(t,e){e(t)};_.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=mr.from(t,e),e=""),i=!0),No(this,t,e,!1,i)};_.prototype.unshift=function(t){return No(this,t,null,!0,!1)};function No(t,e,r,i,s){g("readableAddChunk",e);var n=t._readableState;if(e===null)n.reading=!1,$d(t,n);else{var o;if(s||(o=kd(n,e)),o)Ot(t,o);else if(n.objectMode||e&&e.length>0)if(typeof e!="string"&&!n.objectMode&&Object.getPrototypeOf(e)!==mr.prototype&&(e=Td(e)),i)n.endEmitted?Ot(t,new Id):Ti(t,n,e,!0);else if(n.ended)Ot(t,new Ad);else{if(n.destroyed)return!1;n.reading=!1,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Ti(t,n,e,!1):Ri(t,n)):Ti(t,n,e,!1)}else i||(n.reading=!1,Ri(t,n))}return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function Ti(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&&yr(t)),Ri(t,e)}function kd(t,e){var r;return!Od(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Md("chunk",["string","Buffer","Uint8Array"],e)),r}_.prototype.isPaused=function(){return this._readableState.flowing===!1};_.prototype.setEncoding=function(t){tt||(tt=vi().StringDecoder);var e=new tt(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 $o=1073741824;function jd(t){return t>=$o?t=$o:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Lo(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=jd(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}_.prototype.read=function(t){g("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),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?Oi(this):yr(this),null;if(t=Lo(t,e),t===0&&e.ended)return e.length===0&&Oi(this),null;var i=e.needReadable;g("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,g("length less than watermark",i)),e.ended||e.reading?(i=!1,g("reading or ended",i)):i&&(g("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Lo(r,e)));var s;return t>0?s=Wo(t,e):s=null,s===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Oi(this)),s!==null&&this.emit("data",s),s};function $d(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=!0,e.sync?yr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Uo(t)))}}function yr(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Uo,t))}function Uo(t){var e=t._readableState;g("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Di(t)}function Ri(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Ld,t,e))}function Ld(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=!1}_.prototype._read=function(t){Ot(this,new qd("_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 s=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,n=s?a:b;i.endEmitted?process.nextTick(n):r.once("end",n),t.on("unpipe",o);function o(x,v){g("onunpipe"),x===r&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,p())}function a(){g("onend"),t.end()}var l=Fd(r);t.on("drain",l);var u=!1;function p(){g("cleanup"),t.removeListener("close",m),t.removeListener("finish",S),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",f),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(x){g("ondata");var v=t.write(x);g("dest.write",v),v===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Go(i.pipes,t)!==-1)&&!u&&(g("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(x){g("onerror",x),b(),t.removeListener("error",d),Fo(t,"error")===0&&Ot(t,x)}Pd(t,"error",d);function m(){t.removeListener("finish",S),b()}t.once("close",m);function S(){g("onfinish"),t.removeListener("close",m),b()}t.once("finish",S);function b(){g("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(g("pipe resume"),r.resume()),t};function Fd(t){return function(){var r=t._readableState;g("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Fo(t,"data")&&(r.flowing=!0,Di(t))}}_.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};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=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,s=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var n=0;n<s;n++)i[n].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Go(e.pipes,t);return o===-1?this:(e.pipes.splice(o,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=Rt.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,g("on readable",i.length,i.reading),i.length?yr(this):i.reading||process.nextTick(Bd,this)),r};_.prototype.addListener=_.prototype.on;_.prototype.removeListener=function(t,e){var r=Rt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Ho,this),r};_.prototype.removeAllListeners=function(t){var e=Rt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Ho,this),e};function Ho(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function Bd(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,Nd(this,t)),t.paused=!1,this};function Nd(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Ud,t,e))}function Ud(t,e){g("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Di(t),e.flowing&&!e.reading&&t.read(0)}_.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Di(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=!1;t.on("end",function(){if(g("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(g("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var s in t)this[s]===void 0&&typeof t[s]=="function"&&(this[s]=function(a){return function(){return t[a].apply(t,arguments)}}(s));for(var n=0;n<Ei.length;n++)t.on(Ei[n],this.emit.bind(this,Ei[n]));return this._read=function(o){g("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(_.prototype[Symbol.asyncIterator]=function(){return xi===void 0&&(xi=qo()),xi(this)});Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(_.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(_.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});_._fromList=Wo;Object.defineProperty(_.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Wo(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 Oi(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Hd,e,t))}function Hd(t,e){if(g("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(_.from=function(t,e){return Si===void 0&&(Si=jo()),Si(_,t,e)});function Go(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Mi=h((Lb,Jo)=>{"use strict";Jo.exports=ce;var vr=xe().codes,Wd=vr.ERR_METHOD_NOT_IMPLEMENTED,Gd=vr.ERR_MULTIPLE_CALLBACK,Vd=vr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Yd=vr.ERR_TRANSFORM_WITH_LENGTH_0,wr=$e();je()(ce,wr);function Jd(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new Gd);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function ce(t){if(!(this instanceof ce))return new ce(t);wr.call(this,t),this._transformState={afterTransform:Jd.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Kd)}function Kd(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Yo(t,e,r)}):Yo(this,null,null)}ce.prototype.push=function(t,e){return this._transformState.needTransform=!1,wr.prototype.push.call(this,t,e)};ce.prototype._transform=function(t,e,r){r(new Wd("_transform()"))};ce.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var s=this._readableState;(i.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}};ce.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};ce.prototype._destroy=function(t,e){wr.prototype._destroy.call(this,t,function(r){e(r)})};function Yo(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Yd;if(t._transformState.transforming)throw new Vd;return t.push(null)}});var Zo=h((Fb,zo)=>{"use strict";zo.exports=Ct;var Ko=Mi();je()(Ct,Ko);function Ct(t){if(!(this instanceof Ct))return new Ct(t);Ko.call(this,t)}Ct.prototype._transform=function(t,e,r){r(null,t)}});var ra=h((Bb,ta)=>{"use strict";var Ai;function zd(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var ea=xe().codes,Zd=ea.ERR_MISSING_ARGS,Xd=ea.ERR_STREAM_DESTROYED;function Xo(t){if(t)throw t}function Qd(t){return t.setHeader&&typeof t.abort=="function"}function ep(t,e,r,i){i=zd(i);var s=!1;t.on("close",function(){s=!0}),Ai===void 0&&(Ai=dr()),Ai(t,{readable:e,writable:r},function(o){if(o)return i(o);s=!0,i()});var n=!1;return function(o){if(!s&&!n){if(n=!0,Qd(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new Xd("pipe"))}}}function Qo(t){t()}function tp(t,e){return t.pipe(e)}function rp(t){return!t.length||typeof t[t.length-1]!="function"?Xo:t.pop()}function ip(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=rp(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Zd("streams");var s,n=e.map(function(o,a){var l=a<e.length-1,u=a>0;return ep(o,l,u,function(p){s||(s=p),p&&n.forEach(Qo),!l&&(n.forEach(Qo),i(s))})});return e.reduce(tp)}ta.exports=ip});var ia=h((W,Mt)=>{var Dt=require("stream");process.env.READABLE_STREAM==="disable"&&Dt?(Mt.exports=Dt.Readable,Object.assign(Mt.exports,Dt),Mt.exports.Stream=Dt):(W=Mt.exports=gi(),W.Stream=Dt||W,W.Readable=W,W.Writable=fi(),W.Duplex=$e(),W.Transform=Mi(),W.PassThrough=Zo(),W.finished=dr(),W.pipeline=ra())});var oa=h((Nb,na)=>{"use strict";var{Buffer:Y}=require("buffer"),sa=Symbol.for("BufferList");function R(t){if(!(this instanceof R))return new R(t);R._init.call(this,t)}R._init=function(e){Object.defineProperty(this,sa,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};R.prototype._new=function(e){return new R(e)};R.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let s=r+this._bufs[i].length;if(e<s||i===this._bufs.length-1)return[i,e-r];r=s}};R.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};R.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};R.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)};R.prototype.copy=function(e,r,i,s){if((typeof i!="number"||i<0)&&(i=0),(typeof s!="number"||s>this.length)&&(s=this.length),i>=this.length||s<=0)return e||Y.alloc(0);let n=!!e,o=this._offset(i),a=s-i,l=a,u=n&&r||0,p=o[1];if(i===0&&s===this.length){if(!n)return this._bufs.length===1?this._bufs[0]:Y.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,u),u+=this._bufs[f].length;return e}if(l<=this._bufs[o[0]].length-p)return n?this._bufs[o[0]].copy(e,r,p,p+l):this._bufs[o[0]].slice(p,p+l);n||(e=Y.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let d=this._bufs[f].length-p;if(l>d)this._bufs[f].copy(e,u,p),u+=d;else{this._bufs[f].copy(e,u,p,p+l),u+=d;break}l-=d,p&&(p=0)}return e.length>u?e.slice(0,u):e};R.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),s=this._offset(r),n=this._bufs.slice(i[0],s[0]+1);return s[1]===0?n.pop():n[n.length-1]=n[n.length-1].slice(0,s[1]),i[1]!==0&&(n[0]=n[0].slice(i[1])),this._new(n)};R.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};R.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};R.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};R.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(Y.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(Y.from(e));return this};R.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};R.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=Y.from([t]):typeof t=="string"?t=Y.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=Y.from(t.buffer,t.byteOffset,t.byteLength):Y.isBuffer(t)||(t=Y.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),s=i[0],n=i[1];for(;s<this._bufs.length;s++){let o=this._bufs[s];for(;n<o.length;)if(o.length-n>=t.length){let l=o.indexOf(t,n);if(l!==-1)return this._reverseOffset([s,l]);n=o.length-t.length+1}else{let l=this._reverseOffset([s,n]);if(this._match(l,t))return l;n++}n=0}return-1};R.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(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?R.prototype[r]=function(i,s){return this.slice(i,i+s)[r](0,s)}:R.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)}})(e)})();R.prototype._isBufferList=function(e){return e instanceof R||R.isBufferList(e)};R.isBufferList=function(e){return e!=null&&e[sa]};na.exports=R});var aa=h((Ub,_r)=>{"use strict";var qi=ia().Duplex,sp=je(),At=oa();function F(t){if(!(this instanceof F))return new F(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}At._init.call(this,t),qi.call(this)}sp(F,qi);Object.assign(F.prototype,At.prototype);F.prototype._new=function(e){return new F(e)};F.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i()};F.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)};F.prototype.end=function(e){qi.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};F.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};F.prototype._isBufferList=function(e){return e instanceof F||e instanceof At||F.isBufferList(e)};F.isBufferList=At.isBufferList;_r.exports=F;_r.exports.BufferListStream=F;_r.exports.BufferList=At});var ga=h((ey,pa)=>{pa.exports=da;da.sync=ap;var ca=require("fs");function op(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var s=r[i].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}function fa(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:op(e,r)}function da(t,e,r){ca.stat(t,function(i,s){r(i,i?!1:fa(s,t,e))})}function ap(t,e){return fa(ca.statSync(t),t,e)}});var wa=h((ty,va)=>{va.exports=ba;ba.sync=lp;var ma=require("fs");function ba(t,e,r){ma.stat(t,function(i,s){r(i,i?!1:ya(s,e))})}function lp(t,e){return ya(ma.statSync(t),e)}function ya(t,e){return t.isFile()&&up(t,e)}function up(t,e){var r=t.mode,i=t.uid,s=t.gid,n=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),u=parseInt("001",8),p=a|l,f=r&u||r&l&&s===o||r&a&&i===n||r&p&&n===0;return f}});var xa=h((iy,_a)=>{var ry=require("fs"),Er;process.platform==="win32"||global.TESTING_WINDOWS?Er=ga():Er=wa();_a.exports=ki;ki.sync=hp;function ki(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,s){ki(t,e||{},function(n,o){n?s(n):i(o)})})}Er(t,e||{},function(i,s){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,s=!1),r(i,s)})}function hp(t,e){try{return Er.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Da=h((sy,Ca)=>{var ot=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Sa=require("path"),cp=ot?";":":",Ea=xa(),Ta=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Oa=(t,e)=>{let r=e.colon||cp,i=t.match(/\//)||ot&&t.match(/\\/)?[""]:[...ot?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],s=ot?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=ot?s.split(r):[""];return ot&&t.indexOf(".")!==-1&&n[0]!==""&&n.unshift(""),{pathEnv:i,pathExt:n,pathExtExe:s}},Ra=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:s,pathExtExe:n}=Oa(t,e),o=[],a=u=>new Promise((p,f)=>{if(u===i.length)return e.all&&o.length?p(o):f(Ta(t));let d=i[u],m=/^".*"$/.test(d)?d.slice(1,-1):d,S=Sa.join(m,t),b=!m&&/^\.[\\\/]/.test(t)?t.slice(0,2)+S:S;p(l(b,u,0))}),l=(u,p,f)=>new Promise((d,m)=>{if(f===s.length)return d(a(p+1));let S=s[f];Ea(u+S,{pathExt:n},(b,x)=>{if(!b&&x)if(e.all)o.push(u+S);else return d(u+S);return d(l(u,p,f+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},fp=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:s}=Oa(t,e),n=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Sa.join(l,t),p=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let f=0;f<i.length;f++){let d=p+i[f];try{if(Ea.sync(d,{pathExt:s}))if(e.all)n.push(d);else return d}catch{}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw Ta(t)};Ca.exports=Ra;Ra.sync=fp});var Aa=h((ny,ji)=>{"use strict";var Ma=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};ji.exports=Ma;ji.exports.default=Ma});var ka=h((oy,Pa)=>{"use strict";var qa=require("path"),dp=Da(),pp=Aa();function Ia(t,e){let r=t.options.env||process.env,i=process.cwd(),s=t.options.cwd!=null,n=s&&process.chdir!==void 0&&!process.chdir.disabled;if(n)try{process.chdir(t.options.cwd)}catch{}let o;try{o=dp.sync(t.command,{path:r[pp({env:r})],pathExt:e?qa.delimiter:void 0})}catch{}finally{n&&process.chdir(i)}return o&&(o=qa.resolve(s?t.options.cwd:"",o)),o}function gp(t){return Ia(t)||Ia(t,!0)}Pa.exports=gp});var ja=h((ay,Li)=>{"use strict";var $i=/([()\][%!^"`<>&|;, *?])/g;function mp(t){return t=t.replace($i,"^$1"),t}function bp(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace($i,"^$1"),e&&(t=t.replace($i,"^$1")),t}Li.exports.command=mp;Li.exports.argument=bp});var La=h((ly,$a)=>{"use strict";$a.exports=/^#!(.*)/});var Ba=h((uy,Fa)=>{"use strict";var yp=La();Fa.exports=(t="")=>{let e=t.match(yp);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return s==="env"?i:i?`${s} ${i}`:s}});var Ua=h((hy,Na)=>{"use strict";var Fi=require("fs"),vp=Ba();function wp(t){let r=Buffer.alloc(150),i;try{i=Fi.openSync(t,"r"),Fi.readSync(i,r,0,150,0),Fi.closeSync(i)}catch{}return vp(r.toString())}Na.exports=wp});var Va=h((cy,Ga)=>{"use strict";var _p=require("path"),Ha=ka(),Wa=ja(),xp=Ua(),Sp=process.platform==="win32",Ep=/\.(?:com|exe)$/i,Tp=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Op(t){t.file=Ha(t);let e=t.file&&xp(t.file);return e?(t.args.unshift(t.file),t.command=e,Ha(t)):t.file}function Rp(t){if(!Sp)return t;let e=Op(t),r=!Ep.test(e);if(t.options.forceShell||r){let i=Tp.test(e);t.command=_p.normalize(t.command),t.command=Wa.command(t.command),t.args=t.args.map(n=>Wa.argument(n,i));let s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Cp(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:Rp(i)}Ga.exports=Cp});var Ka=h((fy,Ja)=>{"use strict";var Bi=process.platform==="win32";function Ni(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Dp(t,e){if(!Bi)return;let r=t.emit;t.emit=function(i,s){if(i==="exit"){let n=Ya(s,e,"spawn");if(n)return r.call(t,"error",n)}return r.apply(t,arguments)}}function Ya(t,e){return Bi&&t===1&&!e.file?Ni(e.original,"spawn"):null}function Mp(t,e){return Bi&&t===1&&!e.file?Ni(e.original,"spawnSync"):null}Ja.exports={hookChildProcess:Dp,verifyENOENT:Ya,verifyENOENTSync:Mp,notFoundError:Ni}});var Xa=h((dy,at)=>{"use strict";var za=require("child_process"),Ui=Va(),Hi=Ka();function Za(t,e,r){let i=Ui(t,e,r),s=za.spawn(i.command,i.args,i.options);return Hi.hookChildProcess(s,i),s}function Ap(t,e,r){let i=Ui(t,e,r),s=za.spawnSync(i.command,i.args,i.options);return s.error=s.error||Hi.verifyENOENTSync(s.status,i),s}at.exports=Za;at.exports.spawn=Za;at.exports.sync=Ap;at.exports._parse=Ui;at.exports._enoent=Hi});var A=h((My,ol)=>{"use strict";var{FORCE_COLOR:Fp,NODE_DISABLE_COLORS:Bp,TERM:Np}=process.env,T={enabled:!Bp&&Np!=="dumb"&&Fp!=="0",reset:C(0,0),bold:C(1,22),dim:C(2,22),italic:C(3,23),underline:C(4,24),inverse:C(7,27),hidden:C(8,28),strikethrough:C(9,29),black:C(30,39),red:C(31,39),green:C(32,39),yellow:C(33,39),blue:C(34,39),magenta:C(35,39),cyan:C(36,39),white:C(37,39),gray:C(90,39),grey:C(90,39),bgBlack:C(40,49),bgRed:C(41,49),bgGreen:C(42,49),bgYellow:C(43,49),bgBlue:C(44,49),bgMagenta:C(45,49),bgCyan:C(46,49),bgWhite:C(47,49)};function nl(t,e){let r=0,i,s="",n="";for(;r<t.length;r++)i=t[r],s+=i.open,n+=i.close,e.includes(i.close)&&(e=e.replace(i.rgx,i.close+i.open));return s+e+n}function Up(t,e){let r={has:t,keys:e};return r.reset=T.reset.bind(r),r.bold=T.bold.bind(r),r.dim=T.dim.bind(r),r.italic=T.italic.bind(r),r.underline=T.underline.bind(r),r.inverse=T.inverse.bind(r),r.hidden=T.hidden.bind(r),r.strikethrough=T.strikethrough.bind(r),r.black=T.black.bind(r),r.red=T.red.bind(r),r.green=T.green.bind(r),r.yellow=T.yellow.bind(r),r.blue=T.blue.bind(r),r.magenta=T.magenta.bind(r),r.cyan=T.cyan.bind(r),r.white=T.white.bind(r),r.gray=T.gray.bind(r),r.grey=T.grey.bind(r),r.bgBlack=T.bgBlack.bind(r),r.bgRed=T.bgRed.bind(r),r.bgGreen=T.bgGreen.bind(r),r.bgYellow=T.bgYellow.bind(r),r.bgBlue=T.bgBlue.bind(r),r.bgMagenta=T.bgMagenta.bind(r),r.bgCyan=T.bgCyan.bind(r),r.bgWhite=T.bgWhite.bind(r),r}function C(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(this.has.includes(t)||(this.has.push(t),this.keys.push(r)),i===void 0?this:T.enabled?nl(this.keys,i+""):i+""):i===void 0?Up([t],[r]):T.enabled?nl([r],i+""):i+""}}ol.exports=T});var ll=h((Ay,al)=>{"use strict";al.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var Tr=h((qy,ul)=>{"use strict";ul.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var I=h((Iy,hl)=>{"use strict";var Qi="\x1B",q=`${Qi}[`,Hp="\x07",es={to(t,e){return e?`${q}${e+1};${t+1}H`:`${q}${t+1}G`},move(t,e){let r="";return t<0?r+=`${q}${-t}D`:t>0&&(r+=`${q}${t}C`),e<0?r+=`${q}${-e}A`:e>0&&(r+=`${q}${e}B`),r},up:(t=1)=>`${q}${t}A`,down:(t=1)=>`${q}${t}B`,forward:(t=1)=>`${q}${t}C`,backward:(t=1)=>`${q}${t}D`,nextLine:(t=1)=>`${q}E`.repeat(t),prevLine:(t=1)=>`${q}F`.repeat(t),left:`${q}G`,hide:`${q}?25l`,show:`${q}?25h`,save:`${Qi}7`,restore:`${Qi}8`},Wp={up:(t=1)=>`${q}S`.repeat(t),down:(t=1)=>`${q}T`.repeat(t)},Gp={screen:`${q}2J`,up:(t=1)=>`${q}1J`.repeat(t),down:(t=1)=>`${q}J`.repeat(t),line:`${q}2K`,lineEnd:`${q}K`,lineStart:`${q}1K`,lines(t){let e="";for(let r=0;r<t;r++)e+=this.line+(r<t-1?es.up():"");return t&&(e+=es.left),e}};hl.exports={cursor:es,scroll:Wp,erase:Gp,beep:Hp}});var gl=h((Py,pl)=>{"use strict";function Vp(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Yp(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,o=!1,a;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return n=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function Yp(t,e){if(!!t){if(typeof t=="string")return cl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cl(t,e)}}function cl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}var Jp=Tr(),dl=I(),fl=dl.erase,Kp=dl.cursor,zp=t=>[...Jp(t)].length;pl.exports=function(t,e){if(!e)return fl.line+Kp.to(0);let r=0,i=t.split(/\r?\n/);var s=Vp(i),n;try{for(s.s();!(n=s.n()).done;){let o=n.value;r+=1+Math.floor(Math.max(zp(o)-1,0)/e)}}catch(o){s.e(o)}finally{s.f()}return fl.lines(r)}});var ts=h((ky,ml)=>{"use strict";var $t={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Zp={arrowUp:$t.arrowUp,arrowDown:$t.arrowDown,arrowLeft:$t.arrowLeft,arrowRight:$t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Xp=process.platform==="win32"?Zp:$t;ml.exports=Xp});var yl=h((jy,bl)=>{"use strict";var ut=A(),We=ts(),rs=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),Qp=t=>rs[t]||rs.default,Lt=Object.freeze({aborted:ut.red(We.cross),done:ut.green(We.tick),exited:ut.yellow(We.cross),default:ut.cyan("?")}),eg=(t,e,r)=>e?Lt.aborted:r?Lt.exited:t?Lt.done:Lt.default,tg=t=>ut.gray(t?We.ellipsis:We.pointerSmall),rg=(t,e)=>ut.gray(t?e?We.pointerSmall:"+":We.line);bl.exports={styles:rs,render:Qp,symbols:Lt,symbol:eg,delimiter:tg,item:rg}});var wl=h(($y,vl)=>{"use strict";var ig=Tr();vl.exports=function(t,e){let r=String(ig(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var
|
|
8
|
+
"use strict";var jc=Object.create;var mt=Object.defineProperty;var $c=Object.getOwnPropertyDescriptor;var Lc=Object.getOwnPropertyNames;var Fc=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var Nc=(t,e,r)=>e in t?mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Uc=(t,e)=>{for(var r in e)mt(t,r,{get:e[r],enumerable:!0})},cn=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Lc(e))!Bc.call(t,s)&&s!==r&&mt(t,s,{get:()=>e[s],enumerable:!(i=$c(e,s))||i.enumerable});return t};var M=(t,e,r)=>(r=t!=null?jc(Fc(t)):{},cn(e||!t||!t.__esModule?mt(r,"default",{value:t,enumerable:!0}):r,t)),Hc=t=>cn(mt({},"__esModule",{value:!0}),t);var fn=(t,e,r)=>(Nc(t,typeof e!="symbol"?e+"":e,r),r),dn=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var c=(t,e,r)=>(dn(t,e,"read from private field"),r?r.call(t):e.get(t)),k=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},v=(t,e,r,i)=>(dn(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),bt=(t,e,r,i)=>({set _(s){v(t,e,s,r)},get _(){return c(t,e,i)}});var wn=h((J0,vn)=>{"use strict";vn.exports=function(){if(!!process.env.npm_config_user_agent)return Gc(process.env.npm_config_user_agent)};function Gc(t){let e=t.split(" ")[0],r=e.lastIndexOf("/"),i=e.substring(0,r);return{name:i==="npminstall"?"cnpm":i,version:e.substring(r+1)}}});var Cn=h((tb,Yr)=>{"use strict";var Rn=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Yr.exports=Rn;Yr.exports.default=Rn});var Mn=h((rb,Xt)=>{"use strict";var Vc=Cn(),Zt=new WeakMap,Dn=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,s=t.displayName||t.name||"<anonymous>",n=function(...o){if(Zt.set(n,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return r};return Vc(n,t),Zt.set(n,i),n};Xt.exports=Dn;Xt.exports.default=Dn;Xt.exports.callCount=t=>{if(!Zt.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Zt.get(t)}});var An=h((ib,Qt)=>{Qt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Qt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Qt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var jn=h((sb,ze)=>{var D=global.process,Pe=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"};Pe(D)?(qn=require("assert"),Je=An(),In=/^win/i.test(D.platform),yt=require("events"),typeof yt!="function"&&(yt=yt.EventEmitter),D.__signal_exit_emitter__?$=D.__signal_exit_emitter__:($=D.__signal_exit_emitter__=new yt,$.count=0,$.emitted={}),$.infinite||($.setMaxListeners(1/0),$.infinite=!0),ze.exports=function(t,e){if(!Pe(global.process))return function(){};qn.equal(typeof t,"function","a callback must be provided for exit handler"),Ke===!1&&Jr();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){$.removeListener(r,t),$.listeners("exit").length===0&&$.listeners("afterexit").length===0&&er()};return $.on(r,t),i},er=function(){!Ke||!Pe(global.process)||(Ke=!1,Je.forEach(function(e){try{D.removeListener(e,tr[e])}catch{}}),D.emit=rr,D.reallyExit=Kr,$.count-=1)},ze.exports.unload=er,ke=function(e,r,i){$.emitted[e]||($.emitted[e]=!0,$.emit(e,r,i))},tr={},Je.forEach(function(t){tr[t]=function(){if(!!Pe(global.process)){var r=D.listeners(t);r.length===$.count&&(er(),ke("exit",null,t),ke("afterexit",null,t),In&&t==="SIGHUP"&&(t="SIGINT"),D.kill(D.pid,t))}}}),ze.exports.signals=function(){return Je},Ke=!1,Jr=function(){Ke||!Pe(global.process)||(Ke=!0,$.count+=1,Je=Je.filter(function(e){try{return D.on(e,tr[e]),!0}catch{return!1}}),D.emit=kn,D.reallyExit=Pn)},ze.exports.load=Jr,Kr=D.reallyExit,Pn=function(e){!Pe(global.process)||(D.exitCode=e||0,ke("exit",D.exitCode,null),ke("afterexit",D.exitCode,null),Kr.call(D,D.exitCode))},rr=D.emit,kn=function(e,r){if(e==="exit"&&Pe(global.process)){r!==void 0&&(D.exitCode=r);var i=rr.apply(this,arguments);return ke("exit",D.exitCode,null),ke("afterexit",D.exitCode,null),i}else return rr.apply(this,arguments)}):ze.exports=function(){return function(){}};var qn,Je,In,yt,$,er,ke,tr,Ke,Jr,Kr,Pn,rr,kn});var Nn=h((lb,Jc)=>{Jc.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"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},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"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},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 Wn=h((ub,Hn)=>{"use strict";var sr=Object.assign({},Nn()),Un=Object.keys(sr);Object.defineProperty(sr,"random",{get(){let t=Math.floor(Math.random()*Un.length),e=Un[t];return sr[e]}});Hn.exports=sr});var Gn=h((bb,nr)=>{var Xc=function(){"use strict";function t(o,a,l,u){var p;typeof a=="object"&&(l=a.depth,u=a.prototype,p=a.filter,a=a.circular);var f=[],d=[],_=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function S(m,x){if(m===null)return null;if(x==0)return m;var y,Z;if(typeof m!="object")return m;if(t.__isArray(m))y=[];else if(t.__isRegExp(m))y=new RegExp(m.source,n(m)),m.lastIndex&&(y.lastIndex=m.lastIndex);else if(t.__isDate(m))y=new Date(m.getTime());else{if(_&&Buffer.isBuffer(m))return Buffer.allocUnsafe?y=Buffer.allocUnsafe(m.length):y=new Buffer(m.length),m.copy(y),y;typeof u>"u"?(Z=Object.getPrototypeOf(m),y=Object.create(Z)):(y=Object.create(u),Z=u)}if(a){var gt=f.indexOf(m);if(gt!=-1)return d[gt];f.push(m),d.push(y)}for(var Nr in m){var Ur;Z&&(Ur=Object.getOwnPropertyDescriptor(Z,Nr)),!(Ur&&Ur.set==null)&&(y[Nr]=S(m[Nr],x-1))}return y}return S(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function s(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=s;function n(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=n,t}();typeof nr=="object"&&nr.exports&&(nr.exports=Xc)});var Yn=h((yb,Vn)=>{var Qc=Gn();Vn.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Qc(e[r]))}),t}});var Kn=h((vb,Jn)=>{Jn.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 Qn=h((wb,ei)=>{"use strict";var ef=Yn(),xt=Kn(),Zn={nul:0,control:0};ei.exports=function(e){return Xn(e,Zn)};ei.exports.config=function(t){return t=ef(t||{},Zn),function(r){return Xn(r,t)}};function Xn(t,e){if(typeof t!="string")return zn(t,e);for(var r=0,i=0;i<t.length;i++){var s=zn(t.charCodeAt(i),e);if(s<0)return-1;r+=s}return r}function zn(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:tf(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 tf(t){var e=0,r=xt.length-1,i;if(t<xt[0][0]||t>xt[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>xt[i][1])e=i+1;else if(t<xt[i][0])r=i-1;else return!0;return!1}});var ri=h((_b,eo)=>{eo.exports=require("stream")});var so=h((Sb,io)=>{"use strict";function to(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function rf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?to(Object(r),!0).forEach(function(i){sf(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):to(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function sf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ro(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function of(t,e,r){return e&&ro(t.prototype,e),r&&ro(t,r),t}var af=require("buffer"),or=af.Buffer,lf=require("util"),ii=lf.inspect,uf=ii&&ii.custom||"inspect";function hf(t,e,r){or.prototype.copy.call(t,e,r)}io.exports=function(){function t(){nf(this,t),this.head=null,this.tail=null,this.length=0}return of(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,s=""+i.data;i=i.next;)s+=r+i.data;return s}},{key:"concat",value:function(r){if(this.length===0)return or.alloc(0);for(var i=or.allocUnsafe(r>>>0),s=this.head,n=0;s;)hf(s.data,i,n),n+=s.data.length,s=s.next;return i}},{key:"consume",value:function(r,i){var s;return r<this.head.data.length?(s=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?s=this.shift():s=i?this._getString(r):this._getBuffer(r),s}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,s=1,n=i.data;for(r-=n.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(a===o.length?n+=o:n+=o.slice(0,r),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:"_getBuffer",value:function(r){var i=or.allocUnsafe(r),s=this.head,n=1;for(s.data.copy(i),r-=s.data.length;s=s.next;){var o=s.data,a=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,a),r-=a,r===0){a===o.length?(++n,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=o.slice(a));break}++n}return this.length-=n,i}},{key:uf,value:function(r,i){return ii(this,rf({},i,{depth:0,customInspect:!1}))}}]),t}()});var ni=h((Eb,oo)=>{"use strict";function cf(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(si,this,t)):process.nextTick(si,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(n){!e&&n?r._writableState?r._writableState.errorEmitted?process.nextTick(ar,r):(r._writableState.errorEmitted=!0,process.nextTick(no,r,n)):process.nextTick(no,r,n):e?(process.nextTick(ar,r),e(n)):process.nextTick(ar,r)}),this)}function no(t,e){si(t,e),ar(t)}function ar(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function ff(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function si(t,e){t.emit("error",e)}function df(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}oo.exports={destroy:cf,undestroy:ff,errorOrDestroy:df}});var _e=h((Tb,uo)=>{"use strict";var lo={};function H(t,e,r){r||(r=Error);function i(n,o,a){return typeof e=="string"?e:e(n,o,a)}class s extends r{constructor(o,a,l){super(i(o,a,l))}}s.prototype.name=r.name,s.prototype.code=t,lo[t]=s}function ao(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 pf(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function gf(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function mf(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}H("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);H("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&pf(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let s;if(gf(t," argument"))s=`The ${t} ${i} ${ao(e,"type")}`;else{let n=mf(t,".")?"property":"argument";s=`The "${t}" ${n} ${i} ${ao(e,"type")}`}return s+=`. Received type ${typeof r}`,s},TypeError);H("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");H("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});H("ERR_STREAM_PREMATURE_CLOSE","Premature close");H("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});H("ERR_MULTIPLE_CALLBACK","Callback called multiple times");H("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");H("ERR_STREAM_WRITE_AFTER_END","write after end");H("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);H("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);H("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");uo.exports.codes=lo});var oi=h((Ob,ho)=>{"use strict";var bf=_e().codes.ERR_INVALID_OPT_VALUE;function yf(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function vf(t,e,r,i){var s=yf(e,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var n=i?r:"highWaterMark";throw new bf(n,s)}return Math.floor(s)}return t.objectMode?16:16*1024}ho.exports={getHighWaterMark:vf}});var co=h((Rb,ai)=>{typeof Object.create=="function"?ai.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ai.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 je=h((Cb,ui)=>{try{if(li=require("util"),typeof li.inherits!="function")throw"";ui.exports=li.inherits}catch{ui.exports=co()}var li});var po=h((Db,fo)=>{fo.exports=require("util").deprecate});var fi=h((Mb,wo)=>{"use strict";wo.exports=P;function mo(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Vf(e,t)}}var Xe;P.WritableState=St;var wf={deprecate:po()},bo=ri(),ur=require("buffer").Buffer,xf=global.Uint8Array||function(){};function _f(t){return ur.from(t)}function Sf(t){return ur.isBuffer(t)||t instanceof xf}var ci=ni(),Ef=oi(),Tf=Ef.getHighWaterMark,Se=_e().codes,Of=Se.ERR_INVALID_ARG_TYPE,Rf=Se.ERR_METHOD_NOT_IMPLEMENTED,Cf=Se.ERR_MULTIPLE_CALLBACK,Df=Se.ERR_STREAM_CANNOT_PIPE,Mf=Se.ERR_STREAM_DESTROYED,Af=Se.ERR_STREAM_NULL_VALUES,qf=Se.ERR_STREAM_WRITE_AFTER_END,If=Se.ERR_UNKNOWN_ENCODING,Qe=ci.errorOrDestroy;je()(P,bo);function Pf(){}function St(t,e,r){Xe=Xe||$e(),t=t||{},typeof r!="boolean"&&(r=e instanceof Xe),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Tf(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){Nf(e,s)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new mo(this)}St.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(St.prototype,"buffer",{get:wf.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var lr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(lr=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return lr.call(this,e)?!0:this!==P?!1:e&&e._writableState instanceof St}})):lr=function(e){return e instanceof this};function P(t){Xe=Xe||$e();var e=this instanceof Xe;if(!e&&!lr.call(P,this))return new P(t);this._writableState=new St(t,this,e),this.writable=!0,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)),bo.call(this)}P.prototype.pipe=function(){Qe(this,new Df)};function kf(t,e){var r=new qf;Qe(t,r),process.nextTick(e,r)}function jf(t,e,r,i){var s;return r===null?s=new Af:typeof r!="string"&&!e.objectMode&&(s=new Of("chunk",["string","Buffer"],r)),s?(Qe(t,s),process.nextTick(i,s),!1):!0}P.prototype.write=function(t,e,r){var i=this._writableState,s=!1,n=!i.objectMode&&Sf(t);return n&&!ur.isBuffer(t)&&(t=_f(t)),typeof e=="function"&&(r=e,e=null),n?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=Pf),i.ending?kf(this,r):(n||jf(this,i,t,r))&&(i.pendingcb++,s=Lf(this,i,n,t,e,r)),s};P.prototype.cork=function(){this._writableState.corked++};P.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&yo(this,t))};P.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 If(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function $f(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ur.from(e,r)),e}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Lf(t,e,r,i,s,n){if(!r){var o=$f(e,i,s);i!==o&&(r=!0,s="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:s,isBuf:r,callback:n,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else hi(t,e,!1,a,i,s,n);return l}function hi(t,e,r,i,s,n,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Mf("write")):r?t._writev(s,e.onwrite):t._write(s,n,e.onwrite),e.sync=!1}function Ff(t,e,r,i,s){--e.pendingcb,r?(process.nextTick(s,i),process.nextTick(_t,t,e),t._writableState.errorEmitted=!0,Qe(t,i)):(s(i),t._writableState.errorEmitted=!0,Qe(t,i),_t(t,e))}function Bf(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Nf(t,e){var r=t._writableState,i=r.sync,s=r.writecb;if(typeof s!="function")throw new Cf;if(Bf(r),e)Ff(t,r,i,e,s);else{var n=vo(r)||t.destroyed;!n&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&yo(t,r),i?process.nextTick(go,t,r,n,s):go(t,r,n,s)}}function go(t,e,r,i){r||Uf(t,e),e.pendingcb--,i(),_t(t,e)}function Uf(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function yo(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,s=new Array(i),n=e.corkedRequestsFree;n.entry=r;for(var o=0,a=!0;r;)s[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;s.allBuffers=a,hi(t,e,!0,e.length,s,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new mo(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,p=r.callback,f=e.objectMode?1:l.length;if(hi(t,e,!1,f,l,u,p),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}P.prototype._write=function(t,e,r){r(new Rf("_write()"))};P.prototype._writev=null;P.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||Gf(this,i,r),this};Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function vo(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Hf(t,e){t._final(function(r){e.pendingcb--,r&&Qe(t,r),e.prefinished=!0,t.emit("prefinish"),_t(t,e)})}function Wf(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Hf,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function _t(t,e){var r=vo(e);if(r&&(Wf(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function Gf(t,e,r){e.ending=!0,_t(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Vf(t,e,r){var i=t.entry;for(t.entry=null;i;){var s=i.callback;e.pendingcb--,s(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});P.prototype.destroy=ci.destroy;P.prototype._undestroy=ci.undestroy;P.prototype._destroy=function(t,e){e(t)}});var $e=h((Ab,_o)=>{"use strict";var Yf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};_o.exports=X;var xo=gi(),pi=fi();je()(X,xo);for(di=Yf(pi.prototype),hr=0;hr<di.length;hr++)cr=di[hr],X.prototype[cr]||(X.prototype[cr]=pi.prototype[cr]);var di,cr,hr;function X(t){if(!(this instanceof X))return new X(t);xo.call(this,t),pi.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Jf)))}Object.defineProperty(X.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(X.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(X.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Jf(){this._writableState.ended||process.nextTick(Kf,this)}function Kf(t){t.end()}Object.defineProperty(X.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1: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 To=h((mi,Eo)=>{var fr=require("buffer"),Q=fr.Buffer;function So(t,e){for(var r in t)e[r]=t[r]}Q.from&&Q.alloc&&Q.allocUnsafe&&Q.allocUnsafeSlow?Eo.exports=fr:(So(fr,mi),mi.Buffer=Le);function Le(t,e,r){return Q(t,e,r)}Le.prototype=Object.create(Q.prototype);So(Q,Le);Le.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Q(t,e,r)};Le.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Q(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Le.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Q(t)};Le.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return fr.SlowBuffer(t)}});var vi=h(Ro=>{"use strict";var yi=To().Buffer,Oo=yi.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!0;default:return!1}};function zf(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=!0}}function Zf(t){var e=zf(t);if(typeof e!="string"&&(yi.isEncoding===Oo||!Oo(t)))throw new Error("Unknown encoding: "+t);return e||t}Ro.StringDecoder=Et;function Et(t){this.encoding=Zf(t);var e;switch(this.encoding){case"utf16le":this.text=id,this.end=sd,e=4;break;case"utf8":this.fillLast=ed,e=4;break;case"base64":this.text=nd,this.end=od,e=3;break;default:this.write=ad,this.end=ld;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=yi.allocUnsafe(e)}Et.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||""};Et.prototype.end=rd;Et.prototype.text=td;Et.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 bi(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Xf(t,e,r){var i=e.length-1;if(i<r)return 0;var s=bi(e[i]);return s>=0?(s>0&&(t.lastNeed=s-1),s):--i<r||s===-2?0:(s=bi(e[i]),s>=0?(s>0&&(t.lastNeed=s-2),s):--i<r||s===-2?0:(s=bi(e[i]),s>=0?(s>0&&(s===2?s=0:t.lastNeed=s-3),s):0))}function Qf(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 ed(t){var e=this.lastTotal-this.lastNeed,r=Qf(this,t,e);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 td(t,e){var r=Xf(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 rd(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function id(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 sd(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 nd(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 od(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ad(t){return t.toString(this.encoding)}function ld(t){return t&&t.length?this.write(t):""}});var dr=h((Ib,Mo)=>{"use strict";var Co=_e().codes.ERR_STREAM_PREMATURE_CLOSE;function ud(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];t.apply(this,i)}}}function hd(){}function cd(t){return t.setHeader&&typeof t.abort=="function"}function Do(t,e,r){if(typeof e=="function")return Do(t,null,e);e||(e={}),r=ud(r||hd);var i=e.readable||e.readable!==!1&&t.readable,s=e.writable||e.writable!==!1&&t.writable,n=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){s=!1,o=!0,i||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){i=!1,l=!0,s||r.call(t)},p=function(S){r.call(t,S)},f=function(){var S;if(i&&!l)return(!t._readableState||!t._readableState.ended)&&(S=new Co),r.call(t,S);if(s&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new Co),r.call(t,S)},d=function(){t.req.on("finish",a)};return cd(t)?(t.on("complete",a),t.on("abort",f),t.req?d():t.on("request",d)):s&&!t._writableState&&(t.on("end",n),t.on("close",n)),t.on("end",u),t.on("finish",a),e.error!==!1&&t.on("error",p),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",d),t.req&&t.req.removeListener("finish",a),t.removeListener("end",n),t.removeListener("close",n),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",p),t.removeListener("close",f)}}Mo.exports=Do});var qo=h((Pb,Ao)=>{"use strict";var pr;function Ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fd=dr(),Te=Symbol("lastResolve"),Fe=Symbol("lastReject"),Tt=Symbol("error"),gr=Symbol("ended"),Be=Symbol("lastPromise"),wi=Symbol("handlePromise"),Ne=Symbol("stream");function Oe(t,e){return{value:t,done:e}}function dd(t){var e=t[Te];if(e!==null){var r=t[Ne].read();r!==null&&(t[Be]=null,t[Te]=null,t[Fe]=null,e(Oe(r,!1)))}}function pd(t){process.nextTick(dd,t)}function gd(t,e){return function(r,i){t.then(function(){if(e[gr]){r(Oe(void 0,!0));return}e[wi](r,i)},i)}}var md=Object.getPrototypeOf(function(){}),bd=Object.setPrototypeOf((pr={get stream(){return this[Ne]},next:function(){var e=this,r=this[Tt];if(r!==null)return Promise.reject(r);if(this[gr])return Promise.resolve(Oe(void 0,!0));if(this[Ne].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[Tt]?a(e[Tt]):o(Oe(void 0,!0))})});var i=this[Be],s;if(i)s=new Promise(gd(i,this));else{var n=this[Ne].read();if(n!==null)return Promise.resolve(Oe(n,!1));s=new Promise(this[wi])}return this[Be]=s,s}},Ee(pr,Symbol.asyncIterator,function(){return this}),Ee(pr,"return",function(){var e=this;return new Promise(function(r,i){e[Ne].destroy(null,function(s){if(s){i(s);return}r(Oe(void 0,!0))})})}),pr),md),yd=function(e){var r,i=Object.create(bd,(r={},Ee(r,Ne,{value:e,writable:!0}),Ee(r,Te,{value:null,writable:!0}),Ee(r,Fe,{value:null,writable:!0}),Ee(r,Tt,{value:null,writable:!0}),Ee(r,gr,{value:e._readableState.endEmitted,writable:!0}),Ee(r,wi,{value:function(n,o){var a=i[Ne].read();a?(i[Be]=null,i[Te]=null,i[Fe]=null,n(Oe(a,!1))):(i[Te]=n,i[Fe]=o)},writable:!0}),r));return i[Be]=null,fd(e,function(s){if(s&&s.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=i[Fe];n!==null&&(i[Be]=null,i[Te]=null,i[Fe]=null,n(s)),i[Tt]=s;return}var o=i[Te];o!==null&&(i[Be]=null,i[Te]=null,i[Fe]=null,o(Oe(void 0,!0))),i[gr]=!0}),e.on("readable",pd.bind(null,i)),i};Ao.exports=yd});var jo=h((kb,ko)=>{"use strict";function Io(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function vd(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Io(n,i,s,o,a,"next",l)}function a(l){Io(n,i,s,o,a,"throw",l)}o(void 0)})}}function Po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function wd(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Po(Object(r),!0).forEach(function(i){xd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function xd(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _d=_e().codes.ERR_INVALID_ARG_TYPE;function Sd(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 _d("iterable",["Iterable"],e);var s=new t(wd({objectMode:!0},r)),n=!1;s._read=function(){n||(n=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=vd(function*(){try{var l=yield i.next(),u=l.value,p=l.done;p?s.push(null):s.push(yield u)?o():n=!1}catch(f){s.destroy(f)}}),a.apply(this,arguments)}return s}ko.exports=Sd});var gi=h(($b,Vo)=>{"use strict";Vo.exports=w;var et;w.ReadableState=Bo;var jb=require("events").EventEmitter,Fo=function(e,r){return e.listeners(r).length},Rt=ri(),mr=require("buffer").Buffer,Ed=global.Uint8Array||function(){};function Td(t){return mr.from(t)}function Od(t){return mr.isBuffer(t)||t instanceof Ed}var xi=require("util"),g;xi&&xi.debuglog?g=xi.debuglog("stream"):g=function(){};var Rd=so(),Ci=ni(),Cd=oi(),Dd=Cd.getHighWaterMark,br=_e().codes,Md=br.ERR_INVALID_ARG_TYPE,Ad=br.ERR_STREAM_PUSH_AFTER_EOF,qd=br.ERR_METHOD_NOT_IMPLEMENTED,Id=br.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,tt,_i,Si;je()(w,Rt);var Ot=Ci.errorOrDestroy,Ei=["error","close","destroy","pause","resume"];function Pd(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 Bo(t,e,r){et=et||$e(),t=t||{},typeof r!="boolean"&&(r=e instanceof et),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Dd(this,t,"readableHighWaterMark",r),this.buffer=new Rd,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(tt||(tt=vi().StringDecoder),this.decoder=new tt(t.encoding),this.encoding=t.encoding)}function w(t){if(et=et||$e(),!(this instanceof w))return new w(t);var e=this instanceof et;this._readableState=new Bo(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Rt.call(this)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});w.prototype.destroy=Ci.destroy;w.prototype._undestroy=Ci.undestroy;w.prototype._destroy=function(t,e){e(t)};w.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=mr.from(t,e),e=""),i=!0),No(this,t,e,!1,i)};w.prototype.unshift=function(t){return No(this,t,null,!0,!1)};function No(t,e,r,i,s){g("readableAddChunk",e);var n=t._readableState;if(e===null)n.reading=!1,$d(t,n);else{var o;if(s||(o=kd(n,e)),o)Ot(t,o);else if(n.objectMode||e&&e.length>0)if(typeof e!="string"&&!n.objectMode&&Object.getPrototypeOf(e)!==mr.prototype&&(e=Td(e)),i)n.endEmitted?Ot(t,new Id):Ti(t,n,e,!0);else if(n.ended)Ot(t,new Ad);else{if(n.destroyed)return!1;n.reading=!1,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Ti(t,n,e,!1):Ri(t,n)):Ti(t,n,e,!1)}else i||(n.reading=!1,Ri(t,n))}return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function Ti(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&&yr(t)),Ri(t,e)}function kd(t,e){var r;return!Od(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Md("chunk",["string","Buffer","Uint8Array"],e)),r}w.prototype.isPaused=function(){return this._readableState.flowing===!1};w.prototype.setEncoding=function(t){tt||(tt=vi().StringDecoder);var e=new tt(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 $o=1073741824;function jd(t){return t>=$o?t=$o:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Lo(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=jd(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}w.prototype.read=function(t){g("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),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?Oi(this):yr(this),null;if(t=Lo(t,e),t===0&&e.ended)return e.length===0&&Oi(this),null;var i=e.needReadable;g("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,g("length less than watermark",i)),e.ended||e.reading?(i=!1,g("reading or ended",i)):i&&(g("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Lo(r,e)));var s;return t>0?s=Wo(t,e):s=null,s===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Oi(this)),s!==null&&this.emit("data",s),s};function $d(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=!0,e.sync?yr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Uo(t)))}}function yr(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Uo,t))}function Uo(t){var e=t._readableState;g("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Di(t)}function Ri(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Ld,t,e))}function Ld(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=!1}w.prototype._read=function(t){Ot(this,new qd("_read()"))};w.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 s=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,n=s?a:m;i.endEmitted?process.nextTick(n):r.once("end",n),t.on("unpipe",o);function o(x,y){g("onunpipe"),x===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,p())}function a(){g("onend"),t.end()}var l=Fd(r);t.on("drain",l);var u=!1;function p(){g("cleanup"),t.removeListener("close",_),t.removeListener("finish",S),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",f),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(x){g("ondata");var y=t.write(x);g("dest.write",y),y===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Go(i.pipes,t)!==-1)&&!u&&(g("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(x){g("onerror",x),m(),t.removeListener("error",d),Fo(t,"error")===0&&Ot(t,x)}Pd(t,"error",d);function _(){t.removeListener("finish",S),m()}t.once("close",_);function S(){g("onfinish"),t.removeListener("close",_),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 Fd(t){return function(){var r=t._readableState;g("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Fo(t,"data")&&(r.flowing=!0,Di(t))}}w.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};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=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,s=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var n=0;n<s;n++)i[n].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Go(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};w.prototype.on=function(t,e){var r=Rt.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,g("on readable",i.length,i.reading),i.length?yr(this):i.reading||process.nextTick(Bd,this)),r};w.prototype.addListener=w.prototype.on;w.prototype.removeListener=function(t,e){var r=Rt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Ho,this),r};w.prototype.removeAllListeners=function(t){var e=Rt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Ho,this),e};function Ho(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function Bd(t){g("readable nexttick read 0"),t.read(0)}w.prototype.resume=function(){var t=this._readableState;return t.flowing||(g("resume"),t.flowing=!t.readableListening,Nd(this,t)),t.paused=!1,this};function Nd(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Ud,t,e))}function Ud(t,e){g("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Di(t),e.flowing&&!e.reading&&t.read(0)}w.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Di(t){var e=t._readableState;for(g("flow",e.flowing);e.flowing&&t.read()!==null;);}w.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(g("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(g("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var s in t)this[s]===void 0&&typeof t[s]=="function"&&(this[s]=function(a){return function(){return t[a].apply(t,arguments)}}(s));for(var n=0;n<Ei.length;n++)t.on(Ei[n],this.emit.bind(this,Ei[n]));return this._read=function(o){g("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(w.prototype[Symbol.asyncIterator]=function(){return _i===void 0&&(_i=qo()),_i(this)});Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});w._fromList=Wo;Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Wo(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 Oi(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Hd,e,t))}function Hd(t,e){if(g("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(w.from=function(t,e){return Si===void 0&&(Si=jo()),Si(w,t,e)});function Go(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Mi=h((Lb,Jo)=>{"use strict";Jo.exports=ce;var vr=_e().codes,Wd=vr.ERR_METHOD_NOT_IMPLEMENTED,Gd=vr.ERR_MULTIPLE_CALLBACK,Vd=vr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Yd=vr.ERR_TRANSFORM_WITH_LENGTH_0,wr=$e();je()(ce,wr);function Jd(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new Gd);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function ce(t){if(!(this instanceof ce))return new ce(t);wr.call(this,t),this._transformState={afterTransform:Jd.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Kd)}function Kd(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Yo(t,e,r)}):Yo(this,null,null)}ce.prototype.push=function(t,e){return this._transformState.needTransform=!1,wr.prototype.push.call(this,t,e)};ce.prototype._transform=function(t,e,r){r(new Wd("_transform()"))};ce.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var s=this._readableState;(i.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}};ce.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};ce.prototype._destroy=function(t,e){wr.prototype._destroy.call(this,t,function(r){e(r)})};function Yo(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Yd;if(t._transformState.transforming)throw new Vd;return t.push(null)}});var Zo=h((Fb,zo)=>{"use strict";zo.exports=Ct;var Ko=Mi();je()(Ct,Ko);function Ct(t){if(!(this instanceof Ct))return new Ct(t);Ko.call(this,t)}Ct.prototype._transform=function(t,e,r){r(null,t)}});var ra=h((Bb,ta)=>{"use strict";var Ai;function zd(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var ea=_e().codes,Zd=ea.ERR_MISSING_ARGS,Xd=ea.ERR_STREAM_DESTROYED;function Xo(t){if(t)throw t}function Qd(t){return t.setHeader&&typeof t.abort=="function"}function ep(t,e,r,i){i=zd(i);var s=!1;t.on("close",function(){s=!0}),Ai===void 0&&(Ai=dr()),Ai(t,{readable:e,writable:r},function(o){if(o)return i(o);s=!0,i()});var n=!1;return function(o){if(!s&&!n){if(n=!0,Qd(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new Xd("pipe"))}}}function Qo(t){t()}function tp(t,e){return t.pipe(e)}function rp(t){return!t.length||typeof t[t.length-1]!="function"?Xo:t.pop()}function ip(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=rp(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Zd("streams");var s,n=e.map(function(o,a){var l=a<e.length-1,u=a>0;return ep(o,l,u,function(p){s||(s=p),p&&n.forEach(Qo),!l&&(n.forEach(Qo),i(s))})});return e.reduce(tp)}ta.exports=ip});var ia=h((W,Mt)=>{var Dt=require("stream");process.env.READABLE_STREAM==="disable"&&Dt?(Mt.exports=Dt.Readable,Object.assign(Mt.exports,Dt),Mt.exports.Stream=Dt):(W=Mt.exports=gi(),W.Stream=Dt||W,W.Readable=W,W.Writable=fi(),W.Duplex=$e(),W.Transform=Mi(),W.PassThrough=Zo(),W.finished=dr(),W.pipeline=ra())});var oa=h((Nb,na)=>{"use strict";var{Buffer:Y}=require("buffer"),sa=Symbol.for("BufferList");function R(t){if(!(this instanceof R))return new R(t);R._init.call(this,t)}R._init=function(e){Object.defineProperty(this,sa,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};R.prototype._new=function(e){return new R(e)};R.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let s=r+this._bufs[i].length;if(e<s||i===this._bufs.length-1)return[i,e-r];r=s}};R.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};R.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};R.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)};R.prototype.copy=function(e,r,i,s){if((typeof i!="number"||i<0)&&(i=0),(typeof s!="number"||s>this.length)&&(s=this.length),i>=this.length||s<=0)return e||Y.alloc(0);let n=!!e,o=this._offset(i),a=s-i,l=a,u=n&&r||0,p=o[1];if(i===0&&s===this.length){if(!n)return this._bufs.length===1?this._bufs[0]:Y.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,u),u+=this._bufs[f].length;return e}if(l<=this._bufs[o[0]].length-p)return n?this._bufs[o[0]].copy(e,r,p,p+l):this._bufs[o[0]].slice(p,p+l);n||(e=Y.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let d=this._bufs[f].length-p;if(l>d)this._bufs[f].copy(e,u,p),u+=d;else{this._bufs[f].copy(e,u,p,p+l),u+=d;break}l-=d,p&&(p=0)}return e.length>u?e.slice(0,u):e};R.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),s=this._offset(r),n=this._bufs.slice(i[0],s[0]+1);return s[1]===0?n.pop():n[n.length-1]=n[n.length-1].slice(0,s[1]),i[1]!==0&&(n[0]=n[0].slice(i[1])),this._new(n)};R.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};R.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};R.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};R.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(Y.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(Y.from(e));return this};R.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};R.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=Y.from([t]):typeof t=="string"?t=Y.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=Y.from(t.buffer,t.byteOffset,t.byteLength):Y.isBuffer(t)||(t=Y.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),s=i[0],n=i[1];for(;s<this._bufs.length;s++){let o=this._bufs[s];for(;n<o.length;)if(o.length-n>=t.length){let l=o.indexOf(t,n);if(l!==-1)return this._reverseOffset([s,l]);n=o.length-t.length+1}else{let l=this._reverseOffset([s,n]);if(this._match(l,t))return l;n++}n=0}return-1};R.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(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?R.prototype[r]=function(i,s){return this.slice(i,i+s)[r](0,s)}:R.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)}})(e)})();R.prototype._isBufferList=function(e){return e instanceof R||R.isBufferList(e)};R.isBufferList=function(e){return e!=null&&e[sa]};na.exports=R});var aa=h((Ub,xr)=>{"use strict";var qi=ia().Duplex,sp=je(),At=oa();function F(t){if(!(this instanceof F))return new F(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}At._init.call(this,t),qi.call(this)}sp(F,qi);Object.assign(F.prototype,At.prototype);F.prototype._new=function(e){return new F(e)};F.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i()};F.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)};F.prototype.end=function(e){qi.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};F.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};F.prototype._isBufferList=function(e){return e instanceof F||e instanceof At||F.isBufferList(e)};F.isBufferList=At.isBufferList;xr.exports=F;xr.exports.BufferListStream=F;xr.exports.BufferList=At});var ga=h((ey,pa)=>{pa.exports=da;da.sync=ap;var ca=require("fs");function op(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var s=r[i].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}function fa(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:op(e,r)}function da(t,e,r){ca.stat(t,function(i,s){r(i,i?!1:fa(s,t,e))})}function ap(t,e){return fa(ca.statSync(t),t,e)}});var wa=h((ty,va)=>{va.exports=ba;ba.sync=lp;var ma=require("fs");function ba(t,e,r){ma.stat(t,function(i,s){r(i,i?!1:ya(s,e))})}function lp(t,e){return ya(ma.statSync(t),e)}function ya(t,e){return t.isFile()&&up(t,e)}function up(t,e){var r=t.mode,i=t.uid,s=t.gid,n=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),u=parseInt("001",8),p=a|l,f=r&u||r&l&&s===o||r&a&&i===n||r&p&&n===0;return f}});var _a=h((iy,xa)=>{var ry=require("fs"),Er;process.platform==="win32"||global.TESTING_WINDOWS?Er=ga():Er=wa();xa.exports=ki;ki.sync=hp;function ki(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,s){ki(t,e||{},function(n,o){n?s(n):i(o)})})}Er(t,e||{},function(i,s){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,s=!1),r(i,s)})}function hp(t,e){try{return Er.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Da=h((sy,Ca)=>{var ot=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Sa=require("path"),cp=ot?";":":",Ea=_a(),Ta=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Oa=(t,e)=>{let r=e.colon||cp,i=t.match(/\//)||ot&&t.match(/\\/)?[""]:[...ot?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],s=ot?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=ot?s.split(r):[""];return ot&&t.indexOf(".")!==-1&&n[0]!==""&&n.unshift(""),{pathEnv:i,pathExt:n,pathExtExe:s}},Ra=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:s,pathExtExe:n}=Oa(t,e),o=[],a=u=>new Promise((p,f)=>{if(u===i.length)return e.all&&o.length?p(o):f(Ta(t));let d=i[u],_=/^".*"$/.test(d)?d.slice(1,-1):d,S=Sa.join(_,t),m=!_&&/^\.[\\\/]/.test(t)?t.slice(0,2)+S:S;p(l(m,u,0))}),l=(u,p,f)=>new Promise((d,_)=>{if(f===s.length)return d(a(p+1));let S=s[f];Ea(u+S,{pathExt:n},(m,x)=>{if(!m&&x)if(e.all)o.push(u+S);else return d(u+S);return d(l(u,p,f+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},fp=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:s}=Oa(t,e),n=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Sa.join(l,t),p=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let f=0;f<i.length;f++){let d=p+i[f];try{if(Ea.sync(d,{pathExt:s}))if(e.all)n.push(d);else return d}catch{}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw Ta(t)};Ca.exports=Ra;Ra.sync=fp});var Aa=h((ny,ji)=>{"use strict";var Ma=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};ji.exports=Ma;ji.exports.default=Ma});var ka=h((oy,Pa)=>{"use strict";var qa=require("path"),dp=Da(),pp=Aa();function Ia(t,e){let r=t.options.env||process.env,i=process.cwd(),s=t.options.cwd!=null,n=s&&process.chdir!==void 0&&!process.chdir.disabled;if(n)try{process.chdir(t.options.cwd)}catch{}let o;try{o=dp.sync(t.command,{path:r[pp({env:r})],pathExt:e?qa.delimiter:void 0})}catch{}finally{n&&process.chdir(i)}return o&&(o=qa.resolve(s?t.options.cwd:"",o)),o}function gp(t){return Ia(t)||Ia(t,!0)}Pa.exports=gp});var ja=h((ay,Li)=>{"use strict";var $i=/([()\][%!^"`<>&|;, *?])/g;function mp(t){return t=t.replace($i,"^$1"),t}function bp(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace($i,"^$1"),e&&(t=t.replace($i,"^$1")),t}Li.exports.command=mp;Li.exports.argument=bp});var La=h((ly,$a)=>{"use strict";$a.exports=/^#!(.*)/});var Ba=h((uy,Fa)=>{"use strict";var yp=La();Fa.exports=(t="")=>{let e=t.match(yp);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return s==="env"?i:i?`${s} ${i}`:s}});var Ua=h((hy,Na)=>{"use strict";var Fi=require("fs"),vp=Ba();function wp(t){let r=Buffer.alloc(150),i;try{i=Fi.openSync(t,"r"),Fi.readSync(i,r,0,150,0),Fi.closeSync(i)}catch{}return vp(r.toString())}Na.exports=wp});var Va=h((cy,Ga)=>{"use strict";var xp=require("path"),Ha=ka(),Wa=ja(),_p=Ua(),Sp=process.platform==="win32",Ep=/\.(?:com|exe)$/i,Tp=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Op(t){t.file=Ha(t);let e=t.file&&_p(t.file);return e?(t.args.unshift(t.file),t.command=e,Ha(t)):t.file}function Rp(t){if(!Sp)return t;let e=Op(t),r=!Ep.test(e);if(t.options.forceShell||r){let i=Tp.test(e);t.command=xp.normalize(t.command),t.command=Wa.command(t.command),t.args=t.args.map(n=>Wa.argument(n,i));let s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Cp(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:Rp(i)}Ga.exports=Cp});var Ka=h((fy,Ja)=>{"use strict";var Bi=process.platform==="win32";function Ni(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Dp(t,e){if(!Bi)return;let r=t.emit;t.emit=function(i,s){if(i==="exit"){let n=Ya(s,e,"spawn");if(n)return r.call(t,"error",n)}return r.apply(t,arguments)}}function Ya(t,e){return Bi&&t===1&&!e.file?Ni(e.original,"spawn"):null}function Mp(t,e){return Bi&&t===1&&!e.file?Ni(e.original,"spawnSync"):null}Ja.exports={hookChildProcess:Dp,verifyENOENT:Ya,verifyENOENTSync:Mp,notFoundError:Ni}});var Xa=h((dy,at)=>{"use strict";var za=require("child_process"),Ui=Va(),Hi=Ka();function Za(t,e,r){let i=Ui(t,e,r),s=za.spawn(i.command,i.args,i.options);return Hi.hookChildProcess(s,i),s}function Ap(t,e,r){let i=Ui(t,e,r),s=za.spawnSync(i.command,i.args,i.options);return s.error=s.error||Hi.verifyENOENTSync(s.status,i),s}at.exports=Za;at.exports.spawn=Za;at.exports.sync=Ap;at.exports._parse=Ui;at.exports._enoent=Hi});var A=h((My,ol)=>{"use strict";var{FORCE_COLOR:Fp,NODE_DISABLE_COLORS:Bp,TERM:Np}=process.env,T={enabled:!Bp&&Np!=="dumb"&&Fp!=="0",reset:C(0,0),bold:C(1,22),dim:C(2,22),italic:C(3,23),underline:C(4,24),inverse:C(7,27),hidden:C(8,28),strikethrough:C(9,29),black:C(30,39),red:C(31,39),green:C(32,39),yellow:C(33,39),blue:C(34,39),magenta:C(35,39),cyan:C(36,39),white:C(37,39),gray:C(90,39),grey:C(90,39),bgBlack:C(40,49),bgRed:C(41,49),bgGreen:C(42,49),bgYellow:C(43,49),bgBlue:C(44,49),bgMagenta:C(45,49),bgCyan:C(46,49),bgWhite:C(47,49)};function nl(t,e){let r=0,i,s="",n="";for(;r<t.length;r++)i=t[r],s+=i.open,n+=i.close,e.includes(i.close)&&(e=e.replace(i.rgx,i.close+i.open));return s+e+n}function Up(t,e){let r={has:t,keys:e};return r.reset=T.reset.bind(r),r.bold=T.bold.bind(r),r.dim=T.dim.bind(r),r.italic=T.italic.bind(r),r.underline=T.underline.bind(r),r.inverse=T.inverse.bind(r),r.hidden=T.hidden.bind(r),r.strikethrough=T.strikethrough.bind(r),r.black=T.black.bind(r),r.red=T.red.bind(r),r.green=T.green.bind(r),r.yellow=T.yellow.bind(r),r.blue=T.blue.bind(r),r.magenta=T.magenta.bind(r),r.cyan=T.cyan.bind(r),r.white=T.white.bind(r),r.gray=T.gray.bind(r),r.grey=T.grey.bind(r),r.bgBlack=T.bgBlack.bind(r),r.bgRed=T.bgRed.bind(r),r.bgGreen=T.bgGreen.bind(r),r.bgYellow=T.bgYellow.bind(r),r.bgBlue=T.bgBlue.bind(r),r.bgMagenta=T.bgMagenta.bind(r),r.bgCyan=T.bgCyan.bind(r),r.bgWhite=T.bgWhite.bind(r),r}function C(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(this.has.includes(t)||(this.has.push(t),this.keys.push(r)),i===void 0?this:T.enabled?nl(this.keys,i+""):i+""):i===void 0?Up([t],[r]):T.enabled?nl([r],i+""):i+""}}ol.exports=T});var ll=h((Ay,al)=>{"use strict";al.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var Tr=h((qy,ul)=>{"use strict";ul.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var I=h((Iy,hl)=>{"use strict";var Qi="\x1B",q=`${Qi}[`,Hp="\x07",es={to(t,e){return e?`${q}${e+1};${t+1}H`:`${q}${t+1}G`},move(t,e){let r="";return t<0?r+=`${q}${-t}D`:t>0&&(r+=`${q}${t}C`),e<0?r+=`${q}${-e}A`:e>0&&(r+=`${q}${e}B`),r},up:(t=1)=>`${q}${t}A`,down:(t=1)=>`${q}${t}B`,forward:(t=1)=>`${q}${t}C`,backward:(t=1)=>`${q}${t}D`,nextLine:(t=1)=>`${q}E`.repeat(t),prevLine:(t=1)=>`${q}F`.repeat(t),left:`${q}G`,hide:`${q}?25l`,show:`${q}?25h`,save:`${Qi}7`,restore:`${Qi}8`},Wp={up:(t=1)=>`${q}S`.repeat(t),down:(t=1)=>`${q}T`.repeat(t)},Gp={screen:`${q}2J`,up:(t=1)=>`${q}1J`.repeat(t),down:(t=1)=>`${q}J`.repeat(t),line:`${q}2K`,lineEnd:`${q}K`,lineStart:`${q}1K`,lines(t){let e="";for(let r=0;r<t;r++)e+=this.line+(r<t-1?es.up():"");return t&&(e+=es.left),e}};hl.exports={cursor:es,scroll:Wp,erase:Gp,beep:Hp}});var gl=h((Py,pl)=>{"use strict";function Vp(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Yp(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,o=!1,a;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return n=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function Yp(t,e){if(!!t){if(typeof t=="string")return cl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cl(t,e)}}function cl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}var Jp=Tr(),dl=I(),fl=dl.erase,Kp=dl.cursor,zp=t=>[...Jp(t)].length;pl.exports=function(t,e){if(!e)return fl.line+Kp.to(0);let r=0,i=t.split(/\r?\n/);var s=Vp(i),n;try{for(s.s();!(n=s.n()).done;){let o=n.value;r+=1+Math.floor(Math.max(zp(o)-1,0)/e)}}catch(o){s.e(o)}finally{s.f()}return fl.lines(r)}});var ts=h((ky,ml)=>{"use strict";var $t={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Zp={arrowUp:$t.arrowUp,arrowDown:$t.arrowDown,arrowLeft:$t.arrowLeft,arrowRight:$t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Xp=process.platform==="win32"?Zp:$t;ml.exports=Xp});var yl=h((jy,bl)=>{"use strict";var ut=A(),We=ts(),rs=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),Qp=t=>rs[t]||rs.default,Lt=Object.freeze({aborted:ut.red(We.cross),done:ut.green(We.tick),exited:ut.yellow(We.cross),default:ut.cyan("?")}),eg=(t,e,r)=>e?Lt.aborted:r?Lt.exited:t?Lt.done:Lt.default,tg=t=>ut.gray(t?We.ellipsis:We.pointerSmall),rg=(t,e)=>ut.gray(t?e?We.pointerSmall:"+":We.line);bl.exports={styles:rs,render:Qp,symbols:Lt,symbol:eg,delimiter:tg,item:rg}});var wl=h(($y,vl)=>{"use strict";var ig=Tr();vl.exports=function(t,e){let r=String(ig(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var _l=h((Ly,xl)=>{"use strict";xl.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,o)=>(o.length+r.length>=i||n[n.length-1].length+o.length+1<i?n[n.length-1]+=` ${o}`:n.push(`${r}${o}`),n),[r]).join(`
|
|
10
10
|
`)).join(`
|
|
11
|
-
`)}});var El=h((Fy,Sl)=>{"use strict";Sl.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var K=h((By,Tl)=>{"use strict";Tl.exports={action:ll(),clear:gl(),style:yl(),strip:Tr(),figures:ts(),lines:wl(),wrap:
|
|
11
|
+
`)}});var El=h((Fy,Sl)=>{"use strict";Sl.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var K=h((By,Tl)=>{"use strict";Tl.exports={action:ll(),clear:gl(),style:yl(),strip:Tr(),figures:ts(),lines:wl(),wrap:_l(),entriesToDisplay:El()}});var pe=h((Ny,Cl)=>{"use strict";var Ol=require("readline"),sg=K(),ng=sg.action,og=require("events"),Rl=I(),ag=Rl.beep,lg=Rl.cursor,ug=A(),is=class extends og{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=Ol.createInterface({input:this.in,escapeCodeTimeout:50});Ol.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,o)=>{let a=ng(o,i);a===!1?this._&&this._(n,o):typeof this[a]=="function"?this[a](o):this.bell()};this.close=()=>{this.out.write(lg.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(ag)}render(){this.onRender(ug),this.firstRender&&(this.firstRender=!1)}};Cl.exports=is});var Il=h((Uy,ql)=>{"use strict";function Dl(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function Ml(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Dl(n,i,s,o,a,"next",l)}function a(l){Dl(n,i,s,o,a,"throw",l)}o(void 0)})}}var Or=A(),hg=pe(),Al=I(),cg=Al.erase,Ft=Al.cursor,Rr=K(),ss=Rr.style,ns=Rr.clear,fg=Rr.lines,dg=Rr.figures,os=class extends hg{constructor(e={}){super(e),this.transform=ss.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=ns("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=Or.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
|
|
12
12
|
`),this.close()}validate(){var e=this;return Ml(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return Ml(function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error){e.red=!0,e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
|
|
13
13
|
`),e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Ft.down(fg(this.outputError,this.out.columns)-1)+ns(this.outputError,this.out.columns)),this.out.write(ns(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[ss.symbol(this.done,this.aborted),Or.bold(this.msg),ss.delimiter(this.done),this.red?Or.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
|
|
14
14
|
`).reduce((e,r,i)=>e+`
|
|
@@ -17,17 +17,17 @@ ${i?" ":dg.pointerSmall} ${Or.red().italic(r)}`,"")),this.out.write(cg.line+Ft.t
|
|
|
17
17
|
`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(yg.hide):this.out.write(kl(this.outputText,this.out.columns)),super.render();let e=mg(this.cursor,this.choices.length,this.optionsPerPage),r=e.startIndex,i=e.endIndex;if(this.outputText=[Pl.symbol(this.done,this.aborted),ge.bold(this.msg),Pl.delimiter(!1),this.done?this.selection.title:this.selection.disabled?ge.yellow(this.warn):ge.gray(this.hint)].join(" "),!this.done){this.outputText+=`
|
|
18
18
|
`;for(let s=r;s<i;s++){let n,o,a="",l=this.choices[s];s===r&&r>0?o=Cr.arrowUp:s===i-1&&i<this.choices.length?o=Cr.arrowDown:o=" ",l.disabled?(n=this.cursor===s?ge.gray().underline(l.title):ge.strikethrough().gray(l.title),o=(this.cursor===s?ge.bold().gray(Cr.pointer)+" ":" ")+o):(n=this.cursor===s?ge.cyan().underline(l.title):l.title,o=(this.cursor===s?ge.cyan(Cr.pointer)+" ":" ")+o,l.description&&this.cursor===s&&(a=` - ${l.description}`,(o.length+n.length+a.length>=this.out.columns||l.description.split(/\r?\n/).length>1)&&(a=`
|
|
19
19
|
`+gg(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${o} ${n}${ge.gray(a)}
|
|
20
|
-
`}}this.out.write(this.outputText)}};jl.exports=as});var Hl=h((Wy,Ul)=>{"use strict";var Dr=A(),vg=pe(),Bl=K(),Ll=Bl.style,wg=Bl.clear,Nl=I(),Fl=Nl.cursor,
|
|
20
|
+
`}}this.out.write(this.outputText)}};jl.exports=as});var Hl=h((Wy,Ul)=>{"use strict";var Dr=A(),vg=pe(),Bl=K(),Ll=Bl.style,wg=Bl.clear,Nl=I(),Fl=Nl.cursor,xg=Nl.erase,ls=class extends vg{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
21
21
|
`),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
22
|
-
`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Fl.hide):this.out.write(wg(this.outputText,this.out.columns)),super.render(),this.outputText=[Ll.symbol(this.done,this.aborted),Dr.bold(this.msg),Ll.delimiter(this.done),this.value?this.inactive:Dr.cyan().underline(this.inactive),Dr.gray("/"),this.value?Dr.cyan().underline(this.active):this.active].join(" "),this.out.write(
|
|
22
|
+
`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Fl.hide):this.out.write(wg(this.outputText,this.out.columns)),super.render(),this.outputText=[Ll.symbol(this.done,this.aborted),Dr.bold(this.msg),Ll.delimiter(this.done),this.value?this.inactive:Dr.cyan().underline(this.inactive),Dr.gray("/"),this.value?Dr.cyan().underline(this.active):this.active].join(" "),this.out.write(xg.line+Fl.to(0)+this.outputText))}};Ul.exports=ls});var ne=h((Gy,Wl)=>{"use strict";var ht=class{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof ht)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof ht)}toString(){return String(this.date)}};Wl.exports=ht});var Vl=h((Vy,Gl)=>{"use strict";var _g=ne(),us=class extends _g{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};Gl.exports=us});var Jl=h((Yy,Yl)=>{"use strict";var Sg=ne(),Eg=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),hs=class extends Sg{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+Eg(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};Yl.exports=hs});var zl=h((Jy,Kl)=>{"use strict";var Tg=ne(),cs=class extends Tg{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Kl.exports=cs});var Xl=h((Ky,Zl)=>{"use strict";var Og=ne(),fs=class extends Og{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};Zl.exports=fs});var eu=h((zy,Ql)=>{"use strict";var Rg=ne(),ds=class extends Rg{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};Ql.exports=ds});var ru=h((Zy,tu)=>{"use strict";var Cg=ne(),ps=class extends Cg{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};tu.exports=ps});var su=h((Xy,iu)=>{"use strict";var Dg=ne(),gs=class extends Dg{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};iu.exports=gs});var ou=h((Qy,nu)=>{"use strict";var Mg=ne(),ms=class extends Mg{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};nu.exports=ms});var lu=h((ev,au)=>{"use strict";au.exports={DatePart:ne(),Meridiem:Vl(),Day:Jl(),Hours:zl(),Milliseconds:Xl(),Minutes:eu(),Month:ru(),Seconds:su(),Year:ou()}});var yu=h((tv,bu)=>{"use strict";function uu(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function hu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){uu(n,i,s,o,a,"next",l)}function a(l){uu(n,i,s,o,a,"throw",l)}o(void 0)})}}var bs=A(),Ag=pe(),vs=K(),cu=vs.style,fu=vs.clear,qg=vs.figures,mu=I(),Ig=mu.erase,du=mu.cursor,me=lu(),pu=me.DatePart,Pg=me.Meridiem,kg=me.Day,jg=me.Hours,$g=me.Milliseconds,Lg=me.Minutes,Fg=me.Month,Bg=me.Seconds,Ng=me.Year,Ug=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,gu={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new kg(t),3:t=>new Fg(t),4:t=>new Ng(t),5:t=>new Pg(t),6:t=>new jg(t),7:t=>new Lg(t),8:t=>new Bg(t),9:t=>new $g(t)},Hg={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},ys=class extends Ag{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(Hg,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=fu("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=Ug.exec(e);){let s=r.shift(),n=r.findIndex(o=>o!=null);this.parts.push(n in gu?gu[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof pu)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
23
23
|
`),this.close()}validate(){var e=this;return hu(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return hu(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
|
|
24
24
|
`),e.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof pu)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(du.hide):this.out.write(fu(this.outputText,this.out.columns)),super.render(),this.outputText=[cu.symbol(this.done,this.aborted),bs.bold(this.msg),cu.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?bs.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
|
|
25
25
|
`).reduce((e,r,i)=>e+`
|
|
26
|
-
${i?" ":qg.pointerSmall} ${bs.red().italic(r)}`,"")),this.out.write(Ig.line+du.to(0)+this.outputText))}};bu.exports=ys});var Tu=h((rv,Eu)=>{"use strict";function vu(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function wu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){vu(n,i,s,o,a,"next",l)}function a(l){vu(n,i,s,o,a,"throw",l)}o(void 0)})}}var Mr=A(),Wg=pe(),Su=I(),Ar=Su.cursor,Gg=Su.erase,qr=K(),ws=qr.style,Vg=qr.figures,
|
|
26
|
+
${i?" ":qg.pointerSmall} ${bs.red().italic(r)}`,"")),this.out.write(Ig.line+du.to(0)+this.outputText))}};bu.exports=ys});var Tu=h((rv,Eu)=>{"use strict";function vu(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function wu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){vu(n,i,s,o,a,"next",l)}function a(l){vu(n,i,s,o,a,"throw",l)}o(void 0)})}}var Mr=A(),Wg=pe(),Su=I(),Ar=Su.cursor,Gg=Su.erase,qr=K(),ws=qr.style,Vg=qr.figures,xu=qr.clear,Yg=qr.lines,Jg=/[0-9]/,xs=t=>t!==void 0,_u=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},_s=class extends Wg{constructor(e={}){super(e),this.transform=ws.render(e.style),this.msg=e.message,this.initial=xs(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=xs(e.min)?e.min:-1/0,this.max=xs(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=Mr.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${_u(e,this.round)}`),this._value=_u(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||Jg.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
27
27
|
`),this.close()}validate(){var e=this;return wu(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return wu(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}let r=e.value;e.value=r!==""?r:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write(`
|
|
28
|
-
`),e.close()})()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,r){if(!this.valid(e))return this.bell();let i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Ar.down(Yg(this.outputError,this.out.columns)-1)+
|
|
28
|
+
`),e.close()})()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,r){if(!this.valid(e))return this.bell();let i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Ar.down(Yg(this.outputError,this.out.columns)-1)+xu(this.outputError,this.out.columns)),this.out.write(xu(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[ws.symbol(this.done,this.aborted),Mr.bold(this.msg),ws.delimiter(this.done),!this.done||!this.done&&!this.placeholder?Mr[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
|
|
29
29
|
`).reduce((e,r,i)=>e+`
|
|
30
|
-
${i?" ":Vg.pointerSmall} ${Mr.red().italic(r)}`,"")),this.out.write(Gg.line+Ar.to(0)+this.outputText+Ar.save+this.outputError+Ar.restore))}};Eu.exports=
|
|
30
|
+
${i?" ":Vg.pointerSmall} ${Mr.red().italic(r)}`,"")),this.out.write(Gg.line+Ar.to(0)+this.outputText+Ar.save+this.outputError+Ar.restore))}};Eu.exports=_s});var Es=h((iv,Cu)=>{"use strict";var oe=A(),Kg=I(),zg=Kg.cursor,Zg=pe(),Nt=K(),Ou=Nt.clear,Me=Nt.figures,Ru=Nt.style,Xg=Nt.wrap,Qg=Nt.entriesToDisplay,Ss=class extends Zg{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=Ou("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
31
31
|
`),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
32
32
|
`),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
|
|
33
33
|
Instructions:
|
|
@@ -54,18 +54,18 @@ Filtered results for: ${this.inputValue?this.inputValue:be.gray("Enter something
|
|
|
54
54
|
`}renderOption(e,r,i){let s;return r.disabled?s=e===i?be.gray().underline(r.title):be.strikethrough().gray(r.title):s=e===i?be.cyan().underline(r.title):r.title,(r.selected?be.green(ct.radioOn):ct.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[be.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(be.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(lm.hide),super.render();let e=[$u.symbol(this.done,this.aborted),be.bold(this.msg),$u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=be.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=ju(e,this.out.columns)}};Lu.exports=Cs});var Vu=h((ov,Gu)=>{"use strict";var Bu=A(),hm=pe(),Hu=K(),Nu=Hu.style,cm=Hu.clear,Wu=I(),fm=Wu.erase,Uu=Wu.cursor,Ms=class extends hm{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
55
55
|
`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
56
56
|
`),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Uu.hide):this.out.write(cm(this.outputText,this.out.columns)),super.render(),this.outputText=[Nu.symbol(this.done,this.aborted),Bu.bold(this.msg),Nu.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Bu.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(fm.line+Uu.to(0)+this.outputText))}};Gu.exports=Ms});var Ju=h((av,Yu)=>{"use strict";Yu.exports={TextPrompt:Il(),SelectPrompt:$l(),TogglePrompt:Hl(),DatePrompt:yu(),NumberPrompt:Tu(),MultiselectPrompt:Es(),AutocompletePrompt:ku(),AutocompleteMultiselectPrompt:Fu(),ConfirmPrompt:Vu()}});var zu=h(Ku=>{"use strict";var B=Ku,dm=Ju(),Ir=t=>t;function ae(t,e,r={}){return new Promise((i,s)=>{let n=new dm[t](e),o=r.onAbort||Ir,a=r.onSubmit||Ir,l=r.onExit||Ir;n.on("state",e.onState||Ir),n.on("submit",u=>i(a(u))),n.on("exit",u=>i(l(u))),n.on("abort",u=>s(o(u)))})}B.text=t=>ae("TextPrompt",t);B.password=t=>(t.style="password",B.text(t));B.invisible=t=>(t.style="invisible",B.text(t));B.number=t=>ae("NumberPrompt",t);B.date=t=>ae("DatePrompt",t);B.confirm=t=>ae("ConfirmPrompt",t);B.list=t=>{let e=t.separator||",";return ae("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};B.toggle=t=>ae("TogglePrompt",t);B.select=t=>ae("SelectPrompt",t);B.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return ae("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};B.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return ae("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var pm=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));B.autocomplete=t=>(t.suggest=t.suggest||pm,t.choices=[].concat(t.choices||[]),ae("AutocompletePrompt",t))});var sh=h((uv,ih)=>{"use strict";function Zu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Xu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zu(Object(r),!0).forEach(function(i){gm(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zu(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function gm(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mm(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=bm(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,o=!1,a;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return n=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function bm(t,e){if(!!t){if(typeof t=="string")return Qu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qu(t,e)}}function Qu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function eh(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function th(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){eh(n,i,s,o,a,"next",l)}function a(l){eh(n,i,s,o,a,"throw",l)}o(void 0)})}}var As=zu(),ym=["suggest","format","onState","validate","onRender","type"],rh=()=>{};function Ae(){return qs.apply(this,arguments)}function qs(){return qs=th(function*(t=[],{onSubmit:e=rh,onCancel:r=rh}={}){let i={},s=Ae._override||{};t=[].concat(t);let n,o,a,l,u,p,f=function(){var x=th(function*(
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,o=!1,a;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return n=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function bm(t,e){if(!!t){if(typeof t=="string")return Qu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qu(t,e)}}function Qu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function eh(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function th(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){eh(n,i,s,o,a,"next",l)}function a(l){eh(n,i,s,o,a,"throw",l)}o(void 0)})}}var As=zu(),ym=["suggest","format","onState","validate","onRender","type"],rh=()=>{};function Ae(){return qs.apply(this,arguments)}function qs(){return qs=th(function*(t=[],{onSubmit:e=rh,onCancel:r=rh}={}){let i={},s=Ae._override||{};t=[].concat(t);let n,o,a,l,u,p,f=function(){var x=th(function*(y,Z,gt=!1){if(!(!gt&&y.validate&&y.validate(Z)!==!0))return y.format?yield y.format(Z,i):Z});return function(Z,gt){return x.apply(this,arguments)}}();var d=mm(t),_;try{for(d.s();!(_=d.n()).done;){o=_.value;var S=o;if(l=S.name,u=S.type,typeof u=="function"&&(u=yield u(n,Xu({},i),o),o.type=u),!!u){for(let x in o){if(ym.includes(x))continue;let y=o[x];o[x]=typeof y=="function"?yield y(n,Xu({},i),p):y}if(p=o,typeof o.message!="string")throw new Error("prompt message is required");var m=o;if(l=m.name,u=m.type,As[u]===void 0)throw new Error(`prompt type (${u}) is not defined`);if(s[o.name]!==void 0&&(n=yield f(o,s[o.name]),n!==void 0)){i[l]=n;continue}try{n=Ae._injected?vm(Ae._injected,o.initial):yield As[u](o),i[l]=n=yield f(o,n,!0),a=yield e(o,n,i)}catch{a=!(yield r(o,i))}if(a)return i}}}catch(x){d.e(x)}finally{d.f()}return i}),qs.apply(this,arguments)}function vm(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function wm(t){Ae._injected=(Ae._injected||[]).concat(t)}function xm(t){Ae._override=Object.assign({},t)}ih.exports=Object.assign(Ae,{prompt:Ae,prompts:As,inject:wm,override:xm})});var oh=h((hv,nh)=>{"use strict";nh.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var Pr=h((cv,ah)=>{"use strict";ah.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var hh=h((fv,uh)=>{"use strict";var _m=Pr(),{erase:lh,cursor:Sm}=I(),Em=t=>[..._m(t)].length;uh.exports=function(t,e){if(!e)return lh.line+Sm.to(0);let r=0,i=t.split(/\r?\n/);for(let s of i)r+=1+Math.floor(Math.max(Em(s)-1,0)/e);return lh.lines(r)}});var Is=h((dv,ch)=>{"use strict";var Wt={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Tm={arrowUp:Wt.arrowUp,arrowDown:Wt.arrowDown,arrowLeft:Wt.arrowLeft,arrowRight:Wt.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Om=process.platform==="win32"?Tm:Wt;ch.exports=Om});var dh=h((pv,fh)=>{"use strict";var ft=A(),Ge=Is(),Ps=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),Rm=t=>Ps[t]||Ps.default,Gt=Object.freeze({aborted:ft.red(Ge.cross),done:ft.green(Ge.tick),exited:ft.yellow(Ge.cross),default:ft.cyan("?")}),Cm=(t,e,r)=>e?Gt.aborted:r?Gt.exited:t?Gt.done:Gt.default,Dm=t=>ft.gray(t?Ge.ellipsis:Ge.pointerSmall),Mm=(t,e)=>ft.gray(t?e?Ge.pointerSmall:"+":Ge.line);fh.exports={styles:Ps,render:Rm,symbols:Gt,symbol:Cm,delimiter:Dm,item:Mm}});var gh=h((gv,ph)=>{"use strict";var Am=Pr();ph.exports=function(t,e){let r=String(Am(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var bh=h((mv,mh)=>{"use strict";mh.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,o)=>(o.length+r.length>=i||n[n.length-1].length+o.length+1<i?n[n.length-1]+=` ${o}`:n.push(`${r}${o}`),n),[r]).join(`
|
|
58
58
|
`)).join(`
|
|
59
|
-
`)}});var vh=h((bv,yh)=>{"use strict";yh.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var z=h((yv,wh)=>{"use strict";wh.exports={action:oh(),clear:hh(),style:dh(),strip:Pr(),figures:Is(),lines:gh(),wrap:bh(),entriesToDisplay:vh()}});var ye=h((vv,
|
|
59
|
+
`)}});var vh=h((bv,yh)=>{"use strict";yh.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var z=h((yv,wh)=>{"use strict";wh.exports={action:oh(),clear:hh(),style:dh(),strip:Pr(),figures:Is(),lines:gh(),wrap:bh(),entriesToDisplay:vh()}});var ye=h((vv,_h)=>{"use strict";var xh=require("readline"),{action:qm}=z(),Im=require("events"),{beep:Pm,cursor:km}=I(),jm=A(),ks=class extends Im{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=xh.createInterface({input:this.in,escapeCodeTimeout:50});xh.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,o)=>{let a=qm(o,i);a===!1?this._&&this._(n,o):typeof this[a]=="function"?this[a](o):this.bell()};this.close=()=>{this.out.write(km.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(Pm)}render(){this.onRender(jm),this.firstRender&&(this.firstRender=!1)}};_h.exports=ks});var Eh=h((wv,Sh)=>{var kr=A(),$m=ye(),{erase:Lm,cursor:Vt}=I(),{style:js,clear:$s,lines:Fm,figures:Bm}=z(),Ls=class extends $m{constructor(e={}){super(e),this.transform=js.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=$s("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=kr.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
|
|
60
60
|
`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
61
61
|
`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Vt.down(Fm(this.outputError,this.out.columns)-1)+$s(this.outputError,this.out.columns)),this.out.write($s(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[js.symbol(this.done,this.aborted),kr.bold(this.msg),js.delimiter(this.done),this.red?kr.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
|
|
62
62
|
`).reduce((e,r,i)=>e+`
|
|
63
|
-
${i?" ":Bm.pointerSmall} ${kr.red().italic(r)}`,"")),this.out.write(Lm.line+Vt.to(0)+this.outputText+Vt.save+this.outputError+Vt.restore+Vt.move(this.cursorOffset,0)))}};Sh.exports=Ls});var Ch=h((
|
|
63
|
+
${i?" ":Bm.pointerSmall} ${kr.red().italic(r)}`,"")),this.out.write(Lm.line+Vt.to(0)+this.outputText+Vt.save+this.outputError+Vt.restore+Vt.move(this.cursorOffset,0)))}};Sh.exports=Ls});var Ch=h((xv,Rh)=>{"use strict";var ve=A(),Nm=ye(),{style:Th,clear:Oh,figures:jr,wrap:Um,entriesToDisplay:Hm}=z(),{cursor:Wm}=I(),Fs=class extends Nm{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=Oh("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
64
64
|
`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
65
65
|
`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(Wm.hide):this.out.write(Oh(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=Hm(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[Th.symbol(this.done,this.aborted),ve.bold(this.msg),Th.delimiter(!1),this.done?this.selection.title:this.selection.disabled?ve.yellow(this.warn):ve.gray(this.hint)].join(" "),!this.done){this.outputText+=`
|
|
66
66
|
`;for(let i=e;i<r;i++){let s,n,o="",a=this.choices[i];i===e&&e>0?n=jr.arrowUp:i===r-1&&r<this.choices.length?n=jr.arrowDown:n=" ",a.disabled?(s=this.cursor===i?ve.gray().underline(a.title):ve.strikethrough().gray(a.title),n=(this.cursor===i?ve.bold().gray(jr.pointer)+" ":" ")+n):(s=this.cursor===i?ve.cyan().underline(a.title):a.title,n=(this.cursor===i?ve.cyan(jr.pointer)+" ":" ")+n,a.description&&this.cursor===i&&(o=` - ${a.description}`,(n.length+s.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o=`
|
|
67
67
|
`+Um(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${n} ${s}${ve.gray(o)}
|
|
68
|
-
`}}this.out.write(this.outputText)}};Rh.exports=Fs});var qh=h((
|
|
68
|
+
`}}this.out.write(this.outputText)}};Rh.exports=Fs});var qh=h((_v,Ah)=>{var $r=A(),Gm=ye(),{style:Dh,clear:Vm}=z(),{cursor:Mh,erase:Ym}=I(),Bs=class extends Gm{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
69
69
|
`),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
70
70
|
`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Mh.hide):this.out.write(Vm(this.outputText,this.out.columns)),super.render(),this.outputText=[Dh.symbol(this.done,this.aborted),$r.bold(this.msg),Dh.delimiter(this.done),this.value?this.inactive:$r.cyan().underline(this.inactive),$r.gray("/"),this.value?$r.cyan().underline(this.active):this.active].join(" "),this.out.write(Ym.line+Mh.to(0)+this.outputText))}};Ah.exports=Bs});var le=h((Sv,Ih)=>{"use strict";var dt=class{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof dt)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof dt)}toString(){return String(this.date)}};Ih.exports=dt});var kh=h((Ev,Ph)=>{"use strict";var Jm=le(),Ns=class extends Jm{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};Ph.exports=Ns});var $h=h((Tv,jh)=>{"use strict";var Km=le(),zm=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),Us=class extends Km{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+zm(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};jh.exports=Us});var Fh=h((Ov,Lh)=>{"use strict";var Zm=le(),Hs=class extends Zm{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Lh.exports=Hs});var Nh=h((Rv,Bh)=>{"use strict";var Xm=le(),Ws=class extends Xm{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};Bh.exports=Ws});var Hh=h((Cv,Uh)=>{"use strict";var Qm=le(),Gs=class extends Qm{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};Uh.exports=Gs});var Gh=h((Dv,Wh)=>{"use strict";var e0=le(),Vs=class extends e0{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};Wh.exports=Vs});var Yh=h((Mv,Vh)=>{"use strict";var t0=le(),Ys=class extends t0{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};Vh.exports=Ys});var Kh=h((Av,Jh)=>{"use strict";var r0=le(),Js=class extends r0{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};Jh.exports=Js});var Zh=h((qv,zh)=>{"use strict";zh.exports={DatePart:le(),Meridiem:kh(),Day:$h(),Hours:Fh(),Milliseconds:Nh(),Minutes:Hh(),Month:Gh(),Seconds:Yh(),Year:Kh()}});var sc=h((Iv,ic)=>{"use strict";var Ks=A(),i0=ye(),{style:Xh,clear:Qh,figures:s0}=z(),{erase:n0,cursor:ec}=I(),{DatePart:tc,Meridiem:o0,Day:a0,Hours:l0,Milliseconds:u0,Minutes:h0,Month:c0,Seconds:f0,Year:d0}=Zh(),p0=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,rc={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new a0(t),3:t=>new c0(t),4:t=>new d0(t),5:t=>new o0(t),6:t=>new l0(t),7:t=>new h0(t),8:t=>new f0(t),9:t=>new u0(t)},g0={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},zs=class extends i0{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(g0,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=Qh("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=p0.exec(e);){let s=r.shift(),n=r.findIndex(o=>o!=null);this.parts.push(n in rc?rc[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof tc)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
71
71
|
`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
@@ -75,7 +75,7 @@ ${i?" ":s0.pointerSmall} ${Ks.red().italic(r)}`,"")),this.out.write(n0.line+ec.t
|
|
|
75
75
|
`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let e=this.value;this.value=e!==""?e:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
76
76
|
`),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,r){if(!this.valid(e))return this.bell();let i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Fr.down(v0(this.outputError,this.out.columns)-1)+nc(this.outputError,this.out.columns)),this.out.write(nc(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[Zs.symbol(this.done,this.aborted),Lr.bold(this.msg),Zs.delimiter(this.done),!this.done||!this.done&&!this.placeholder?Lr[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
|
|
77
77
|
`).reduce((e,r,i)=>e+`
|
|
78
|
-
${i?" ":y0.pointerSmall} ${Lr.red().italic(r)}`,"")),this.out.write(b0.line+Fr.to(0)+this.outputText+Fr.save+this.outputError+Fr.restore))}};ac.exports=Qs});var tn=h((kv,cc)=>{"use strict";var ue=A(),{cursor:
|
|
78
|
+
${i?" ":y0.pointerSmall} ${Lr.red().italic(r)}`,"")),this.out.write(b0.line+Fr.to(0)+this.outputText+Fr.save+this.outputError+Fr.restore))}};ac.exports=Qs});var tn=h((kv,cc)=>{"use strict";var ue=A(),{cursor:x0}=I(),_0=ye(),{clear:uc,figures:qe,style:hc,wrap:S0,entriesToDisplay:E0}=z(),en=class extends _0{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=uc("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
79
79
|
`),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
80
80
|
`),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
|
|
81
81
|
Instructions:
|
|
@@ -85,7 +85,7 @@ Instructions:
|
|
|
85
85
|
`:"")+" enter/return: Complete answer":""}renderOption(e,r,i,s){let n=(r.selected?ue.green(qe.radioOn):qe.radioOff)+" "+s+" ",o,a;return r.disabled?o=e===i?ue.gray().underline(r.title):ue.strikethrough().gray(r.title):(o=e===i?ue.cyan().underline(r.title):r.title,e===i&&r.description&&(a=` - ${r.description}`,(n.length+o.length+a.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(a=`
|
|
86
86
|
`+S0(r.description,{margin:n.length,width:this.out.columns})))),n+o+ue.gray(a||"")}paginateOptions(e){if(e.length===0)return ue.red("No matches for this query.");let{startIndex:r,endIndex:i}=E0(this.cursor,e.length,this.optionsPerPage),s,n=[];for(let o=r;o<i;o++)o===r&&r>0?s=qe.arrowUp:o===i-1&&i<e.length?s=qe.arrowDown:s=" ",n.push(this.renderOption(this.cursor,e[o],o,s));return`
|
|
87
87
|
`+n.join(`
|
|
88
|
-
`)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[ue.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(ue.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(
|
|
88
|
+
`)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[ue.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(ue.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(x0.hide),super.render();let e=[hc.symbol(this.done,this.aborted),ue.bold(this.msg),hc.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=ue.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=uc(e,this.out.columns)}};cc.exports=en});var mc=h((jv,gc)=>{"use strict";var Yt=A(),T0=ye(),{erase:O0,cursor:fc}=I(),{style:rn,clear:dc,figures:sn,wrap:R0,entriesToDisplay:C0}=z(),pc=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),D0=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),M0=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},nn=class extends T0{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:M0(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=rn.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=dc("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=pc(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){let r=this.completing=this.suggest(this.input,this.choices),i=await r;if(this.completing!==r)return;this.suggestions=i.map((n,o,a)=>({title:D0(a,o),value:pc(a,o),description:n.description})),this.completing=!1;let s=Math.max(i.length-1,0);this.moveSelect(Math.min(s,this.select)),e&&e()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
89
89
|
`),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(`
|
|
90
90
|
`),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(`
|
|
91
91
|
`),this.close()}_(e,r){let i=this.input.slice(0,this.cursor),s=this.input.slice(this.cursor);this.input=`${i}${e}${s}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),r=this.input.slice(this.cursor);this.input=`${e}${r}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,s){let n,o=i?sn.arrowUp:s?sn.arrowDown:" ",a=r?Yt.cyan().underline(e.title):e.title;return o=(r?Yt.cyan(sn.pointer)+" ":" ")+o,e.description&&(n=` - ${e.description}`,(o.length+a.length+n.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(n=`
|
|
@@ -99,23 +99,23 @@ Instructions:
|
|
|
99
99
|
enter/return: Complete answer
|
|
100
100
|
`:""}renderCurrentInput(){return`
|
|
101
101
|
Filtered results for: ${this.inputValue?this.inputValue:we.gray("Enter something to filter")}
|
|
102
|
-
`}renderOption(e,r,i){let s;return r.disabled?s=e===i?we.gray().underline(r.title):we.strikethrough().gray(r.title):s=e===i?we.cyan().underline(r.title):r.title,(r.selected?we.green(pt.radioOn):pt.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[we.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(we.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(A0.hide),super.render();let e=[yc.symbol(this.done,this.aborted),we.bold(this.msg),yc.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=we.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=bc(e,this.out.columns)}};vc.exports=on});var Tc=h((Lv,Ec)=>{var
|
|
102
|
+
`}renderOption(e,r,i){let s;return r.disabled?s=e===i?we.gray().underline(r.title):we.strikethrough().gray(r.title):s=e===i?we.cyan().underline(r.title):r.title,(r.selected?we.green(pt.radioOn):pt.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[we.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(we.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(A0.hide),super.render();let e=[yc.symbol(this.done,this.aborted),we.bold(this.msg),yc.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=we.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=bc(e,this.out.columns)}};vc.exports=on});var Tc=h((Lv,Ec)=>{var xc=A(),I0=ye(),{style:_c,clear:P0}=z(),{erase:k0,cursor:Sc}=I(),an=class extends I0{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
103
103
|
`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
104
|
-
`),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Sc.hide):this.out.write(P0(this.outputText,this.out.columns)),super.render(),this.outputText=[
|
|
105
|
-
`)}function En(t){t={...t};let e={name:t.name,version:t.version,description:t.description,scripts:t.scripts,dependencies:t.dependencies,devDependencies:t.devDependencies,main:t.main,qwik:t.qwik,module:t.module,types:t.types,exports:t.exports,files:t.files,engines:{node:">=15.0.0"}};Object.keys(e).forEach(i=>{delete t[i]}),delete t.__qwik__;let r=Object.keys(t).sort();for(let i of r)e[i]=t[i];return e}function Tn(t){return t.toLocaleLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function
|
|
106
|
-
\u274C ${
|
|
107
|
-
`),process.exit(1)}var Kt=M(require("fs"),1),zt=require("path");var Vr=null;async function Ye(){if(!Vr){let t=[],e=["app","feature","
|
|
108
|
-
`))
|
|
109
|
-
`),this)}stop(){return c(this,te)?(clearInterval(c(this,He)),
|
|
104
|
+
`),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Sc.hide):this.out.write(P0(this.outputText,this.out.columns)),super.render(),this.outputText=[_c.symbol(this.done,this.aborted),xc.bold(this.msg),_c.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:xc.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(k0.line+Sc.to(0)+this.outputText))}};Ec.exports=an});var Rc=h((Fv,Oc)=>{"use strict";Oc.exports={TextPrompt:Eh(),SelectPrompt:Ch(),TogglePrompt:qh(),DatePrompt:sc(),NumberPrompt:lc(),MultiselectPrompt:tn(),AutocompletePrompt:mc(),AutocompleteMultiselectPrompt:wc(),ConfirmPrompt:Tc()}});var Dc=h(Cc=>{"use strict";var N=Cc,j0=Rc(),Br=t=>t;function he(t,e,r={}){return new Promise((i,s)=>{let n=new j0[t](e),o=r.onAbort||Br,a=r.onSubmit||Br,l=r.onExit||Br;n.on("state",e.onState||Br),n.on("submit",u=>i(a(u))),n.on("exit",u=>i(l(u))),n.on("abort",u=>s(o(u)))})}N.text=t=>he("TextPrompt",t);N.password=t=>(t.style="password",N.text(t));N.invisible=t=>(t.style="invisible",N.text(t));N.number=t=>he("NumberPrompt",t);N.date=t=>he("DatePrompt",t);N.confirm=t=>he("ConfirmPrompt",t);N.list=t=>{let e=t.separator||",";return he("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};N.toggle=t=>he("TogglePrompt",t);N.select=t=>he("SelectPrompt",t);N.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return he("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};N.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return he("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var $0=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));N.autocomplete=t=>(t.suggest=t.suggest||$0,t.choices=[].concat(t.choices||[]),he("AutocompletePrompt",t))});var qc=h((Nv,Ac)=>{"use strict";var ln=Dc(),L0=["suggest","format","onState","validate","onRender","type"],Mc=()=>{};async function Ie(t=[],{onSubmit:e=Mc,onCancel:r=Mc}={}){let i={},s=Ie._override||{};t=[].concat(t);let n,o,a,l,u,p,f=async(d,_,S=!1)=>{if(!(!S&&d.validate&&d.validate(_)!==!0))return d.format?await d.format(_,i):_};for(o of t)if({name:l,type:u}=o,typeof u=="function"&&(u=await u(n,{...i},o),o.type=u),!!u){for(let d in o){if(L0.includes(d))continue;let _=o[d];o[d]=typeof _=="function"?await _(n,{...i},p):_}if(p=o,typeof o.message!="string")throw new Error("prompt message is required");if({name:l,type:u}=o,ln[u]===void 0)throw new Error(`prompt type (${u}) is not defined`);if(s[o.name]!==void 0&&(n=await f(o,s[o.name]),n!==void 0)){i[l]=n;continue}try{n=Ie._injected?F0(Ie._injected,o.initial):await ln[u](o),i[l]=n=await f(o,n,!0),a=await e(o,n,i)}catch{a=!await r(o,i)}if(a)return i}return i}function F0(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function B0(t){Ie._injected=(Ie._injected||[]).concat(t)}function N0(t){Ie._override=Object.assign({},t)}Ac.exports=Object.assign(Ie,{prompt:Ie,prompts:ln,inject:B0,override:N0})});var Pc=h((Uv,Ic)=>{function U0(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;e<t.length;e++){if(r[e]>t[e])return!1;if(t[e]>r[e])return!0}return!1}Ic.exports=U0("8.6.0")?sh():qc()});var G0={};Uc(G0,{createApp:()=>jt,runCli:()=>W0,runCreateCli:()=>zi,runCreateInteractiveCli:()=>hn});module.exports=Hc(G0);var kt=M(require("fs"));var Hr,gn,mn,bn,yn=!0;typeof process<"u"&&({FORCE_COLOR:Hr,NODE_DISABLE_COLORS:gn,NO_COLOR:mn,TERM:bn}=process.env||{},yn=process.stdout&&process.stdout.isTTY);var E={enabled:!gn&&mn==null&&bn!=="dumb"&&(Hr!=null&&Hr!=="0"||yn),reset:O(0,0),bold:O(1,22),dim:O(2,22),italic:O(3,23),underline:O(4,24),inverse:O(7,27),hidden:O(8,28),strikethrough:O(9,29),black:O(30,39),red:O(31,39),green:O(32,39),yellow:O(33,39),blue:O(34,39),magenta:O(35,39),cyan:O(36,39),white:O(37,39),gray:O(90,39),grey:O(90,39),bgBlack:O(40,49),bgRed:O(41,49),bgGreen:O(42,49),bgYellow:O(43,49),bgBlue:O(44,49),bgMagenta:O(45,49),bgCyan:O(46,49),bgWhite:O(47,49)};function pn(t,e){let r=0,i,s="",n="";for(;r<t.length;r++)i=t[r],s+=i.open,n+=i.close,~e.indexOf(i.close)&&(e=e.replace(i.rgx,i.close+i.open));return s+e+n}function Wc(t,e){let r={has:t,keys:e};return r.reset=E.reset.bind(r),r.bold=E.bold.bind(r),r.dim=E.dim.bind(r),r.italic=E.italic.bind(r),r.underline=E.underline.bind(r),r.inverse=E.inverse.bind(r),r.hidden=E.hidden.bind(r),r.strikethrough=E.strikethrough.bind(r),r.black=E.black.bind(r),r.red=E.red.bind(r),r.green=E.green.bind(r),r.yellow=E.yellow.bind(r),r.blue=E.blue.bind(r),r.magenta=E.magenta.bind(r),r.cyan=E.cyan.bind(r),r.white=E.white.bind(r),r.gray=E.gray.bind(r),r.grey=E.grey.bind(r),r.bgBlack=E.bgBlack.bind(r),r.bgRed=E.bgRed.bind(r),r.bgGreen=E.bgGreen.bind(r),r.bgYellow=E.bgYellow.bind(r),r.bgBlue=E.bgBlue.bind(r),r.bgMagenta=E.bgMagenta.bind(r),r.bgCyan=E.bgCyan.bind(r),r.bgWhite=E.bgWhite.bind(r),r}function O(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(t)||(this.has.push(t),this.keys.push(r)),i===void 0?this:E.enabled?pn(this.keys,i+""):i+""):i===void 0?Wc([t],[r]):E.enabled?pn([r],i+""):i+""}}var b=E;var De=require("path");var Wr=M(require("fs"),1),Gr=require("path");var xn=M(wn(),1);async function _n(t){let e=(0,Gr.join)(t,"package.json");return JSON.parse(await Wr.default.promises.readFile(e,"utf-8"))}async function Sn(t,e){let r=(0,Gr.join)(t,"package.json");await Wr.default.promises.writeFile(r,JSON.stringify(e,null,2)+`
|
|
105
|
+
`)}function En(t){t={...t};let e={name:t.name,version:t.version,description:t.description,scripts:t.scripts,dependencies:t.dependencies,devDependencies:t.devDependencies,main:t.main,qwik:t.qwik,module:t.module,types:t.types,exports:t.exports,files:t.files,engines:{node:">=15.0.0"}};Object.keys(e).forEach(i=>{delete t[i]}),delete t.__qwik__;let r=Object.keys(t).sort();for(let i of r)e[i]=t[i];return e}function Tn(t){return t.toLocaleLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function xe(){var t;return((t=(0,xn.default)())==null?void 0:t.name)||"npm"}function Ve(t){console.error(`
|
|
106
|
+
\u274C ${b.red(t)}
|
|
107
|
+
`),process.exit(1)}var Kt=M(require("fs"),1),zt=require("path");var Vr=null;async function Ye(){if(!Vr){let t=[],e=["app","feature","adaptor"],r=(0,zt.join)(__dirname,"starters"),i=await Kt.default.promises.readdir(r);await Promise.all(i.map(async s=>{let n=s.slice(0,s.length-1);if(e.includes(n)){let o=(0,zt.join)(r,s),a=await Kt.default.promises.readdir(o);await Promise.all(a.map(async l=>{var f;let u=(0,zt.join)(o,l);if((await Kt.default.promises.stat(u)).isDirectory()){let d=await _n(u),_={id:l,name:Tn(l),type:n,dir:u,pkgJson:d,priority:((f=d==null?void 0:d.__qwik__)==null?void 0:f.priority)??0};t.push(_)}}))}})),t.sort((s,n)=>s.priority>n.priority?-1:s.priority<n.priority?1:s.id<n.id?-1:1),Vr=t}return Vr}function On(){console.log(`\u{1F4AC} ${b.cyan("Questions? Start the conversation at:")}`),console.log(" https://qwik.builder.io/chat"),console.log(" https://twitter.com/QwikDev"),console.log(""),console.log(`\u{1F4FA} ${b.cyan("Presentations, Podcasts and Videos:")}`),console.log(" https://qwik.builder.io/media/"),console.log("")}var rl=require("path"),Ji=M(require("fs"),1);var lt=M(require("fs"),1);var It=M(require("process"),1);var zr=M(require("process"),1);var $n=M(require("process"),1),Ln=M(Mn(),1),Fn=M(jn(),1),Yc=(0,Ln.default)(()=>{(0,Fn.default)(()=>{$n.default.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),Bn=Yc;var ir=!1,Ze={};Ze.show=(t=zr.default.stderr)=>{!t.isTTY||(ir=!1,t.write("\x1B[?25h"))};Ze.hide=(t=zr.default.stderr)=>{!t.isTTY||(Bn(),ir=!0,t.write("\x1B[?25l"))};Ze.toggle=(t,e)=>{t!==void 0&&(ir=t),ir?Ze.show(e):Ze.hide(e)};var Zr=Ze;var Pt=M(Wn(),1);var U=M(require("process"),1);function vt(){return U.default.platform!=="win32"?U.default.env.TERM!=="linux":Boolean(U.default.env.CI)||Boolean(U.default.env.WT_SESSION)||Boolean(U.default.env.TERMINUS_SUBLIME)||U.default.env.ConEmuTask==="{cmd::Cmder}"||U.default.env.TERM_PROGRAM==="Terminus-Sublime"||U.default.env.TERM_PROGRAM==="vscode"||U.default.env.TERM==="xterm-256color"||U.default.env.TERM==="alacritty"||U.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Kc={info:b.blue("\u2139"),success:b.green("\u2714"),warning:b.yellow("\u26A0"),error:b.red("\u2716")},zc={info:b.blue("i"),success:b.green("\u221A"),warning:b.yellow("\u203C"),error:b.red("\xD7")},Zc=vt()?Kc:zc,wt=Zc;function Xr({onlyFirst:t=!1}={}){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")}function Qr(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Xr(),"")}var ha=M(Qn(),1);function ti({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var G=M(require("process"),1),la=M(require("readline"),1),ua=M(aa(),1);var np=3,fe,qt,rt,Re,_r=class{constructor(){k(this,fe,0);k(this,qt,new ua.BufferListStream);k(this,rt,void 0);k(this,Re,void 0);c(this,qt).pipe(G.default.stdout);let e=this;v(this,rt,function(r,i,...s){let{stdin:n}=G.default;if(c(e,fe)>0||n.emit===c(e,rt)){if(r==="keypress")return;r==="data"&&i.includes(np)&&G.default.emit("SIGINT"),Reflect.apply(c(e,rt),this,[r,i,...s])}else Reflect.apply(G.default.stdin.emit,this,[r,i,...s])})}start(){bt(this,fe)._++,c(this,fe)===1&&this._realStart()}stop(){if(c(this,fe)<=0)throw new Error("`stop` called more times than `start`");bt(this,fe)._--,c(this,fe)===0&&this._realStop()}_realStart(){G.default.platform!=="win32"&&(v(this,Re,la.default.createInterface({input:G.default.stdin,output:c(this,qt)})),c(this,Re).on("SIGINT",()=>{G.default.listenerCount("SIGINT")===0?G.default.emit("SIGINT"):(c(this,Re).close(),G.default.kill(G.default.pid,"SIGINT"))}))}_realStop(){G.default.platform!=="win32"&&(c(this,Re).close(),v(this,Re,void 0))}};fe=new WeakMap,qt=new WeakMap,rt=new WeakMap,Re=new WeakMap;var Sr,Ce,it,Ue,de,j,ee,L,He,st,te,re,ie,nt,J,Ii=class{constructor(e){k(this,Ce,0);k(this,it,!1);k(this,Ue,0);k(this,de,0);k(this,j,void 0);k(this,ee,void 0);k(this,L,void 0);k(this,He,void 0);k(this,st,void 0);k(this,te,void 0);k(this,re,void 0);k(this,ie,void 0);k(this,nt,void 0);k(this,J,void 0);fn(this,"color");Sr||(Sr=new _r),typeof e=="string"&&(e={text:e}),v(this,j,{color:"cyan",stream:It.default.stderr,discardStdin:!0,hideCursor:!0,...e}),this.color=c(this,j).color,this.spinner=c(this,j).spinner,v(this,st,c(this,j).interval),v(this,L,c(this,j).stream),v(this,te,typeof c(this,j).isEnabled=="boolean"?c(this,j).isEnabled:ti({stream:c(this,L)})),v(this,re,typeof c(this,j).isSilent=="boolean"?c(this,j).isSilent:!1),this.text=c(this,j).text,this.prefixText=c(this,j).prefixText,this.indent=c(this,j).indent,It.default.env.NODE_ENV==="test"&&(this._stream=c(this,L),this._isEnabled=c(this,te),Object.defineProperty(this,"_linesToClear",{get(){return c(this,Ce)},set(r){v(this,Ce,r)}}),Object.defineProperty(this,"_frameIndex",{get(){return c(this,de)}}),Object.defineProperty(this,"_lineCount",{get(){return c(this,Ue)}}))}get indent(){return c(this,ie)}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");v(this,ie,e),this.updateLineCount()}get interval(){return c(this,st)||c(this,ee).interval||100}get spinner(){return c(this,ee)}set spinner(e){if(v(this,de,0),v(this,st,void 0),typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");v(this,ee,e)}else if(!vt())v(this,ee,Pt.default.line);else if(e===void 0)v(this,ee,Pt.default.dots);else if(e!=="default"&&Pt.default[e])v(this,ee,Pt.default[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.`)}get text(){return c(this,nt)}set text(e){v(this,nt,e||""),this.updateLineCount()}get prefixText(){return c(this,J)}set prefixText(e){v(this,J,e||""),this.updateLineCount()}get isSpinning(){return c(this,He)!==void 0}getFullPrefixText(e=c(this,J),r=" "){return typeof e=="string"&&e!==""?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=c(this,L).columns||80,r=this.getFullPrefixText(c(this,J),"-");v(this,Ue,0);for(let i of Qr(" ".repeat(c(this,ie))+r+"--"+c(this,nt)).split(`
|
|
108
|
+
`))v(this,Ue,c(this,Ue)+Math.max(1,Math.ceil((0,ha.default)(i)/e)))}get isEnabled(){return c(this,te)&&!c(this,re)}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");v(this,te,e)}get isSilent(){return c(this,re)}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");v(this,re,e)}frame(){let{frames:e}=c(this,ee),r=e[c(this,de)];this.color&&(r=b[this.color](r)),v(this,de,++bt(this,de)._%e.length);let i=typeof c(this,J)=="string"&&c(this,J)!==""?c(this,J)+" ":"",s=typeof this.text=="string"?" "+this.text:"";return i+r+s}clear(){if(!c(this,te)||!c(this,L).isTTY)return this;c(this,L).cursorTo(0);for(let e=0;e<c(this,Ce);e++)e>0&&c(this,L).moveCursor(0,-1),c(this,L).clearLine(1);return(c(this,ie)||this.lastIndent!==c(this,ie))&&c(this,L).cursorTo(c(this,ie)),this.lastIndent=c(this,ie),v(this,Ce,0),this}render(){return c(this,re)?this:(this.clear(),c(this,L).write(this.frame()),v(this,Ce,c(this,Ue)),this)}start(e){return e&&(this.text=e),c(this,re)?this:c(this,te)?this.isSpinning?this:(c(this,j).hideCursor&&Zr.hide(c(this,L)),c(this,j).discardStdin&&It.default.stdin.isTTY&&(v(this,it,!0),Sr.start()),this.render(),v(this,He,setInterval(this.render.bind(this),this.interval)),this):(this.text&&c(this,L).write(`- ${this.text}
|
|
109
|
+
`),this)}stop(){return c(this,te)?(clearInterval(c(this,He)),v(this,He,void 0),v(this,de,0),this.clear(),c(this,j).hideCursor&&Zr.show(c(this,L)),c(this,j).discardStdin&&It.default.stdin.isTTY&&c(this,it)&&(Sr.stop(),v(this,it,!1)),this):this}succeed(e){return this.stopAndPersist({symbol:wt.success,text:e})}fail(e){return this.stopAndPersist({symbol:wt.error,text:e})}warn(e){return this.stopAndPersist({symbol:wt.warning,text:e})}info(e){return this.stopAndPersist({symbol:wt.info,text:e})}stopAndPersist(e={}){if(c(this,re))return this;let r=e.prefixText||c(this,J),i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),c(this,L).write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${s}
|
|
110
110
|
`),this}};Ce=new WeakMap,it=new WeakMap,Ue=new WeakMap,de=new WeakMap,j=new WeakMap,ee=new WeakMap,L=new WeakMap,He=new WeakMap,st=new WeakMap,te=new WeakMap,re=new WeakMap,ie=new WeakMap,nt=new WeakMap,J=new WeakMap;function Pi(t){return new Ii(t)}var Qa=M(require("os"),1),se=M(require("path"),1),el=M(Xa(),1);function Wi(t,e){let r,i=new Promise(n=>{try{r=(0,el.default)(t,["install"],{cwd:e,stdio:"ignore"}),r.on("error",()=>{n()}),r.on("close",()=>{n()})}catch{}});return{abort:async()=>{r&&r.kill("SIGINT")},install:i}}function Gi(t){return Pi(t).start()}function tl(t,e){let{tmpInstallDir:r}=qp(e),{install:i,abort:s}=Wi(t,r);return{abort:s,complete:async(o,a)=>{let l=!1;if(o){let u=Gi(`Installing ${t} dependencies...`);try{await i;let p=se.default.join(r,"node_modules"),f=se.default.join(a,"node_modules");await lt.default.promises.rename(p,f);try{await lt.default.promises.rename(se.default.join(r,"package-lock.json"),se.default.join(a,"package-lock.json"))}catch{}try{await lt.default.promises.rename(se.default.join(r,"yarn.lock"),se.default.join(a,"yarn.lock"))}catch{}u.succeed(),l=!0}catch{u.fail()}}else await s();return l}}}function qp(t){let e="create-qwik-"+Math.round(Math.random()*Number.MAX_SAFE_INTEGER).toString(36).toLowerCase(),r=se.default.join(Qa.default.tmpdir(),e);try{lt.default.mkdirSync(r)}catch(n){console.error(`
|
|
111
|
-
\u274C ${
|
|
111
|
+
\u274C ${b.red(String(n))}
|
|
112
112
|
`)}let i=se.default.join(t.dir,"package.json"),s=se.default.join(r,"package.json");return lt.default.copyFileSync(i,s),{tmpInstallDir:r}}var V=M(require("fs"),1),Vi=require("path");async function Yi(t,e,r,i){let s=await V.default.promises.readdir(r);await Promise.all(s.map(async n=>{let o=n==="gitignore"?".gitignore":n,a=(0,Vi.join)(r,n),l=(0,Vi.join)(i,o),u=await V.default.promises.stat(a);u.isDirectory()?await Yi(t,e,a,l):u.isFile()&&(o==="package.json"?await Ip(t,a,l):o==="README.md"?await kp(t,a,l):o===".gitignore"?await jp(t,a,l):V.default.existsSync(l)?t.files.push({path:l,content:await V.default.promises.readFile(a,"utf-8"),type:"overwrite"}):t.files.push({path:l,content:await V.default.promises.readFile(a),type:"create"}))}))}async function Ip(t,e,r){var o;let i=await V.default.promises.readFile(e,"utf-8"),s=JSON.parse(i),n=["scripts","dependencies","devDependencies"];try{let a=JSON.parse(await V.default.promises.readFile(r,"utf-8"));if(n.forEach(l=>{Pp(s,a,l)}),(o=a.scripts)!=null&&o.qwik){let l=a.scripts.qwik;delete a.scripts.qwik,a.scripts.qwik=l}t.files.push({path:r,content:JSON.stringify(a,null,2)+`
|
|
113
113
|
`,type:"modify"})}catch{t.files.push({path:r,content:i,type:"create"})}}function Pp(t,e,r){if(t[r]){e[r]?Object.assign(e[r],{...t[r]}):e[r]={...t[r]};let i={},s=Object.keys(e[r]).sort();for(let n of s)i[n]=e[r][n];e[r]=i}}async function kp(t,e,r){let i=await V.default.promises.readFile(e,"utf-8"),s,n="";try{n=await V.default.promises.readFile(r,"utf-8"),n=n.trim()+`
|
|
114
114
|
|
|
115
|
-
`+i,s="modify"}catch{n=i,s="create"}
|
|
115
|
+
`+i,s="modify"}catch{n=i,s="create"}xe()==="yarn"&&(n=n.replace(/npm run/g,"yarn")),t.files.push({path:r,content:n.trim()+`
|
|
116
116
|
`,type:s})}async function jp(t,e,r){let i=await V.default.promises.readFile(e,"utf-8");try{let s=await V.default.promises.readFile(r,"utf-8"),n=i.trim().split(/\r?\n/),o=s.trim().split(/\r?\n/);for(let a of n)o.includes(a)||(a.startsWith("#")&&o.push(""),o.push(a));t.files.push({path:r,content:o.join(`
|
|
117
117
|
`).trim()+`
|
|
118
|
-
`,type:"modify"})}catch{t.files.push({path:r,content:i,type:"create"})}}async function Ki(t){let r=(await Ye()).find(o=>o.id===t.integration);if(!r)throw new Error(`Unable to find integration "${t.integration}"`);let i={files:[],installedDeps:{}};t.installDeps&&(i.installedDeps={...r.pkgJson.dependencies,...r.pkgJson.devDependencies}),await Yi(i,t,r.dir,t.rootDir);let s=async o=>{let a=Object.keys(i.installedDeps).length>0,l=o?Gi(`Updating app${a?" and installing dependencies":""}...`):null;try{let u=new Set(i.files.map(f=>(0,rl.dirname)(f.path)));for(let f of Array.from(u))try{Ji.default.mkdirSync(f,{recursive:!0})}catch{}let p=Promise.all(i.files.map(async f=>{await Ji.default.promises.writeFile(f.path,f.content)}));if(t.installDeps&&Object.keys(i.installedDeps).length>0){let f=
|
|
119
|
-
`),await n.abort(),process.exit(1)}});console.log(""),x.outDirChoice==="replace"?l=un.default.promises.rm(a,{recursive:!0}):(console.log(
|
|
120
|
-
`),await n.abort(),process.exit(1))}let u=await(0,Jt.default)({type:"select",name:"starterId",message:"Select a starter",choices:s.map(x=>{var
|
|
118
|
+
`,type:"modify"})}catch{t.files.push({path:r,content:i,type:"create"})}}async function Ki(t){let r=(await Ye()).find(o=>o.id===t.integration);if(!r)throw new Error(`Unable to find integration "${t.integration}"`);let i={files:[],installedDeps:{}};t.installDeps&&(i.installedDeps={...r.pkgJson.dependencies,...r.pkgJson.devDependencies}),await Yi(i,t,r.dir,t.rootDir);let s=async o=>{let a=Object.keys(i.installedDeps).length>0,l=o?Gi(`Updating app${a?" and installing dependencies":""}...`):null;try{let u=new Set(i.files.map(f=>(0,rl.dirname)(f.path)));for(let f of Array.from(u))try{Ji.default.mkdirSync(f,{recursive:!0})}catch{}let p=Promise.all(i.files.map(async f=>{await Ji.default.promises.writeFile(f.path,f.content)}));if(t.installDeps&&Object.keys(i.installedDeps).length>0){let f=xe(),{install:d}=Wi(f,t.rootDir);await d}await p,l&&l.succeed()}catch(u){l&&l.fail(),Ve(String(u))}};return{rootDir:t.rootDir,integration:r,updates:i,commit:s}}async function zi(t,e){$p()?e=process.cwd():(e=Xi(e),kt.default.existsSync(e)&&Ve(`Directory "${e}" already exists. Please either remove this directory, or choose another location.`));let i=await jt({starterId:t,outDir:e});return Zi(i,!1),i}function Zi(t,e){console.log(""),console.clear(),console.log("");let r=process.cwd()===t.outDir,i=(0,De.relative)(process.cwd(),t.outDir);console.log(r?`\u{1F984} ${b.bgMagenta(" Success! ")}`:`\u{1F984} ${b.bgMagenta(" Success! ")} ${b.cyan("Project created in")} ${b.bold(b.magenta(i))} ${b.cyan("directory")}`),console.log(""),console.log(`\u{1F430} ${b.cyan("Next steps:")}`),r||console.log(` cd ${i}`);let s=xe();e||console.log(` ${s} install`),console.log(` ${s} start`),console.log(""),On()}async function jt(t){if(!sl(t.starterId))throw new Error("Missing starter id");if(!sl(t.outDir))throw new Error("Missing outDir");if(!(0,De.isAbsolute)(t.outDir))throw new Error("outDir must be an absolute path");kt.default.existsSync(t.outDir)||kt.default.mkdirSync(t.outDir,{recursive:!0});let e={starterId:t.starterId,outDir:t.outDir},r=(await Ye()).filter(s=>s.type==="app");if(t.starterId==="library"){let s=r.find(n=>n.id==="library");if(!s)throw new Error("Unable to find base app");await il(e,s)}else{let s=r.find(o=>o.id==="base");if(!s)throw new Error("Unable to find base app");let n=r.find(o=>o.id===t.starterId);if(!n)throw new Error(`Invalid starter id "${t.starterId}". It can only be one of${r.map(o=>` "${o.id}"`)}.`);await il(e,s,n)}return e}async function il(t,e,r){let i=r??e,s=En({...e.pkgJson,name:`my-${i.pkgJson.name}`,description:i.pkgJson.description,scripts:void 0,dependencies:void 0,devDependencies:void 0});await Sn(t.outDir,s);let n=(0,De.join)(t.outDir,"README.md");await kt.default.promises.writeFile(n,""),await(await Ki({rootDir:t.outDir,integration:e.id,installDeps:!1})).commit(!1),r&&await(await Ki({rootDir:t.outDir,integration:r.id,installDeps:!1})).commit(!1)}function sl(t){return typeof t=="string"&&t.trim().length>0}function Xi(t){return(0,De.resolve)(process.cwd(),t)}function $p(){return Lp()}function Lp(){try{return process.cwd().startsWith("/home/projects/")}catch{}return!1}var un=M(require("fs")),kc=require("path"),Jt=M(Pc());async function hn(){H0(),console.log(""),console.clear(),console.log(""),console.log(`\u{1F430} ${b.cyan("Let's create a")} ${b.bold(b.magenta("Qwik"))} ${b.cyan("app")} \u{1F407} ${b.dim("v0.11.1-dev20221020180233")}`),console.log("");let t=xe(),r=(await Ye()).filter(x=>x.type==="app"),i=r.find(x=>x.id==="base"),s=r.filter(x=>x.id!==i.id),n=tl(t,i),o=await(0,Jt.default)({type:"text",name:"outDir",message:"Where would you like to create your new project?",initial:"./qwik-app"},{onCancel:()=>{console.log(""),process.exit(1)}});console.log("");let a=Xi(o.outDir.trim()),l=null;if(un.default.existsSync(a)){let x=await(0,Jt.default)({type:"select",name:"outDirChoice",message:`Directory "./${(0,kc.relative)(process.cwd(),a)}" already exists. What would you like to do?`,choices:[{title:"Do not overwrite this directory and exit",value:"exit"},{title:"Overwrite and replace this directory",value:"replace"}],hint:"(use \u2193\u2191 arrows, hit enter)"},{onCancel:async()=>{console.log(b.dim(` - Exited without modifying "${a}"`)+`
|
|
119
|
+
`),await n.abort(),process.exit(1)}});console.log(""),x.outDirChoice==="replace"?l=un.default.promises.rm(a,{recursive:!0}):(console.log(b.dim(` - Exited without modifying "${a}"`)+`
|
|
120
|
+
`),await n.abort(),process.exit(1))}let u=await(0,Jt.default)({type:"select",name:"starterId",message:"Select a starter",choices:s.map(x=>{var y;return{title:x.name,value:x.id,description:(y=x.pkgJson)==null?void 0:y.description}}),hint:"(use \u2193\u2191 arrows, hit enter)"},{onCancel:async()=>{console.log(""),await n.abort(),process.exit(1)}});console.log("");let p=u.starterId,f=await(0,Jt.default)({type:"confirm",name:"runInstall",message:`Would you like to install ${t} dependencies?`,initial:!0},{onCancel:async()=>{console.log(""),await n.abort(),process.exit(1)}});console.log(""),l&&await l;let d=f.runInstall,S=await jt({starterId:p,outDir:a}),m=await n.complete(d,S.outDir);return Zi(S,m),S}function H0(){let t=process.version;Number(t.replace("v","").split(".")[0])<16&&(console.error(b.red(`Qwik requires Node.js 16 or higher. You are currently running Node.js ${t}.`)),process.exit(1))}async function W0(){try{let t=process.argv.slice(2);t.length>=2?await zi(t[0],t[1]):await hn()}catch(t){Ve(t.message||t)}}0&&(module.exports={createApp,runCli,runCreateCli,runCreateInteractiveCli});
|
|
121
121
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"prefix": "q:component",
|
|
5
5
|
"description": "Simple Qwik component",
|
|
6
6
|
"body": [
|
|
7
|
-
"export const ${1:${TM_FILENAME_BASE/(.*)/${1:/
|
|
7
|
+
"export const ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}} = component$(() => {",
|
|
8
8
|
" return <${2:div}>$4</$2>",
|
|
9
9
|
"});"
|
|
10
10
|
]
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"prefix": "q:component w/props",
|
|
15
15
|
"description": "Qwik component w/ props",
|
|
16
16
|
"body": [
|
|
17
|
-
"export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/
|
|
17
|
+
"export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Props {",
|
|
18
18
|
" $2",
|
|
19
19
|
"}",
|
|
20
20
|
"",
|
|
@@ -9,24 +9,24 @@
|
|
|
9
9
|
"dev.debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force",
|
|
10
10
|
"fmt": "prettier --write .",
|
|
11
11
|
"fmt.check": "prettier --check .",
|
|
12
|
-
"lint": "eslint
|
|
12
|
+
"lint": "eslint src/**/*.ts*",
|
|
13
13
|
"preview": "qwik build preview && vite preview --open",
|
|
14
14
|
"start": "vite --open --mode ssr",
|
|
15
15
|
"qwik": "qwik"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@builder.io/qwik": "0.11.
|
|
19
|
-
"@builder.io/qwik-city": "0.0.
|
|
18
|
+
"@builder.io/qwik": "0.11.1-dev20221020180233",
|
|
19
|
+
"@builder.io/qwik-city": "0.0.113",
|
|
20
20
|
"@types/eslint": "8.4.6",
|
|
21
21
|
"@types/node": "latest",
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "5.40.
|
|
23
|
-
"@typescript-eslint/parser": "5.40.
|
|
24
|
-
"eslint-plugin-qwik": "0.11.
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "5.40.1",
|
|
23
|
+
"@typescript-eslint/parser": "5.40.1",
|
|
24
|
+
"eslint-plugin-qwik": "0.11.1-dev20221020180233",
|
|
25
25
|
"eslint": "8.25.0",
|
|
26
26
|
"node-fetch": "3.2.10",
|
|
27
27
|
"prettier": "2.7.1",
|
|
28
28
|
"typescript": "4.8.4",
|
|
29
|
-
"vite": "3.1.
|
|
29
|
+
"vite": "3.1.8",
|
|
30
30
|
"vite-tsconfig-paths": "3.5.0"
|
|
31
31
|
},
|
|
32
32
|
"private": true
|
|
@@ -13,10 +13,13 @@
|
|
|
13
13
|
"skipLibCheck": true,
|
|
14
14
|
"incremental": true,
|
|
15
15
|
"isolatedModules": true,
|
|
16
|
+
"outDir": "tmp",
|
|
17
|
+
"noEmit": true,
|
|
16
18
|
"types": ["node", "vite/client"],
|
|
17
19
|
"paths": {
|
|
18
20
|
"~/*": ["./src/*"]
|
|
19
21
|
}
|
|
20
22
|
},
|
|
23
|
+
"files": ["./.eslintrc.cjs"],
|
|
21
24
|
"include": ["src"]
|
|
22
25
|
}
|
|
@@ -16,13 +16,6 @@ export const RouterHead = component$(() => {
|
|
|
16
16
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
17
17
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
18
18
|
|
|
19
|
-
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
20
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
|
21
|
-
<link
|
|
22
|
-
href="https://fonts.googleapis.com/css2?family=Poppins&display=swap"
|
|
23
|
-
rel="stylesheet"
|
|
24
|
-
/>
|
|
25
|
-
|
|
26
19
|
{head.meta.map((m) => (
|
|
27
20
|
<meta {...m} />
|
|
28
21
|
))}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
body {
|
|
17
17
|
background-color: #fafafa;
|
|
18
|
-
font-family:
|
|
18
|
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
19
19
|
padding: 20px 20px 40px 20px;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { component$ } from '@builder.io/qwik';
|
|
1
|
+
import { component$, useStyles$ } from '@builder.io/qwik';
|
|
2
2
|
import { QwikCity, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city';
|
|
3
3
|
import { RouterHead } from './components/router-head/router-head';
|
|
4
4
|
|
|
5
|
-
import './global.css';
|
|
5
|
+
import globalStyles from './global.css?inline';
|
|
6
6
|
|
|
7
7
|
export default component$(() => {
|
|
8
8
|
/**
|
|
@@ -11,6 +11,8 @@ export default component$(() => {
|
|
|
11
11
|
*
|
|
12
12
|
* Dont remove the `<head>` and `<body>` elements.
|
|
13
13
|
*/
|
|
14
|
+
useStyles$(globalStyles);
|
|
15
|
+
|
|
14
16
|
return (
|
|
15
17
|
<QwikCity>
|
|
16
18
|
<head>
|
|
@@ -16,13 +16,6 @@ export const RouterHead = component$(() => {
|
|
|
16
16
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
17
17
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
18
18
|
|
|
19
|
-
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
20
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
|
21
|
-
<link
|
|
22
|
-
href="https://fonts.googleapis.com/css2?family=Poppins&display=swap"
|
|
23
|
-
rel="stylesheet"
|
|
24
|
-
/>
|
|
25
|
-
|
|
26
19
|
{head.meta.map((m) => (
|
|
27
20
|
<meta {...m} />
|
|
28
21
|
))}
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"release": "np"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@builder.io/qwik": "0.11.
|
|
35
|
+
"@builder.io/qwik": "0.11.1",
|
|
36
36
|
"@types/eslint": "8.4.6",
|
|
37
37
|
"@types/node": "latest",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "5.40.
|
|
39
|
-
"@typescript-eslint/parser": "5.40.
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "5.40.1",
|
|
39
|
+
"@typescript-eslint/parser": "5.40.1",
|
|
40
40
|
"eslint-plugin-qwik": "latest",
|
|
41
41
|
"eslint": "8.25.0",
|
|
42
42
|
"node-fetch": "3.2.10",
|
|
43
43
|
"np": "7.6.1",
|
|
44
44
|
"prettier": "2.7.1",
|
|
45
45
|
"typescript": "4.8.4",
|
|
46
|
-
"vite": "3.1.
|
|
46
|
+
"vite": "3.1.8"
|
|
47
47
|
},
|
|
48
48
|
"__qwik__": {
|
|
49
49
|
"priority": -1
|