pkgroll 2.14.2 → 2.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +21 -21
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var ze=Object.defineProperty;var a=(u,e)=>ze(u,"name",{value:e,configurable:!0});import N from"node:fs";import qe from"tty";import{watch as Je,rollup as Ge}from"rollup";import m from"node:path";import Wu from"node:path/posix";import Ke from"@rollup/plugin-node-resolve";import He from"@rollup/plugin-commonjs";import Ze from"@rollup/plugin-json";import Ye from"@rollup/plugin-alias";import Qe from"@rollup/plugin-dynamic-import-vars";import{createFilter as Xe}from"@rollup/pluginutils";import{transform as Uu}from"esbuild";import ut,{builtinModules as et}from"node:module";import lu from"magic-string";import tt from"fs";import{attachScopes as Dt}from"rollup-pluginutils";const rt="known-flag",nt="unknown-flag",ot="argument",{stringify:q}=JSON,st=/\B([A-Z])/g,it=a(u=>u.replace(st,"-$1").toLowerCase(),"v$2"),{hasOwnProperty:at}=Object.prototype,J=a((u,e)=>at.call(u,e),"w$3"),lt=a(u=>Array.isArray(u),"L$2"),Vu=a(u=>typeof u=="function"?[u,!1]:lt(u)?[u[0],!0]:Vu(u.type),"b$2"),ct=a((u,e)=>u===Boolean?e!=="false":e,"d$3"),ft=a((u,e)=>typeof e=="boolean"?e:u===Number&&e===""?Number.NaN:u(e),"m$2"),Ft=/[\s.:=]/,pt=a(u=>{const e=`Flag name ${q(u)}`;if(u.length===0)throw new Error(`${e} cannot be empty`);if(u.length===1)throw new Error(`${e} must be longer than a character`);const D=u.match(Ft);if(D)throw new Error(`${e} cannot contain ${q(D?.[0])}`)},"B$1"),Ct=a(u=>{const e={},D=a((t,r)=>{if(J(e,t))throw new Error(`Duplicate flags named ${q(t)}`);e[t]=r},"r");for(const t in u){if(!J(u,t))continue;pt(t);const r=u[t],n=[[],...Vu(r),r];D(t,n);const o=it(t);if(t!==o&&D(o,n),"alias"in r&&typeof r.alias=="string"){const{alias:s}=r,i=`Flag alias ${q(s)} for flag ${q(t)}`;if(s.length===0)throw new Error(`${i} cannot be empty`);if(s.length>1)throw new Error(`${i} must be a single character`);D(s,n)}}return e},"K$2"),dt=a((u,e)=>{const D={};for(const t in u){if(!J(u,t))continue;const[r,,n,o]=e[t];if(r.length===0&&"default"in o){let{default:s}=o;typeof s=="function"&&(s=s()),D[t]=s}else D[t]=n?r:r.pop()}return D},"_$3"),X="--",Et=/[.:=]/,ht=/^-{1,2}\w/,mt=a(u=>{if(!ht.test(u))return;const e=!u.startsWith(X);let D=u.slice(e?1:2),t;const r=D.match(Et);if(r){const{index:n}=r;t=D.slice(n+1),D=D.slice(0,n)}return[D,t,e]},"N"),gt=a((u,{onFlag:e,onArgument:D})=>{let t;const r=a((n,o)=>{if(typeof t!="function")return!0;t(n,o),t=void 0},"o");for(let n=0;n<u.length;n+=1){const o=u[n];if(o===X){r();const i=u.slice(n+1);D?.(i,[n],!0);break}const s=mt(o);if(s){if(r(),!e)continue;const[i,l,c]=s;if(c)for(let f=0;f<i.length;f+=1){r();const F=f===i.length-1;t=e(i[f],F?l:void 0,[n,f+1,F])}else t=e(i,l,[n])}else r(o,[n])&&D?.([o],[n])}r()},"$$2"),Bt=a((u,e)=>{for(const[D,t,r]of e.reverse()){if(t){const n=u[D];let o=n.slice(0,t);if(r||(o+=n.slice(t+1)),o!=="-"){u[D]=o;continue}}u.splice(D,1)}},"E$2"),yt=a((u,e=process.argv.slice(2),{ignore:D}={})=>{const t=[],r=Ct(u),n={},o=[];return o[X]=[],gt(e,{onFlag(s,i,l){const c=J(r,s);if(!D?.(c?rt:nt,s,i)){if(c){const[f,F]=r[s],E=ct(F,i),C=a((h,b)=>{t.push(l),b&&t.push(b),f.push(ft(F,h||""))},"p");return E===void 0?C:C(E)}J(n,s)||(n[s]=[]),n[s].push(i===void 0?!0:i),t.push(l)}},onArgument(s,i,l){D?.(ot,e[i[0]])||(o.push(...s),l?(o[X]=s,e.splice(i[0])):t.push(i))}}),Bt(e,t),{flags:dt(u,r),unknownFlags:n,_:o}},"U$3");var At=Object.create,uu=Object.defineProperty,bt=Object.defineProperties,wt=Object.getOwnPropertyDescriptor,vt=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertyNames,zu=Object.getOwnPropertySymbols,xt=Object.getPrototypeOf,qu=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,Ju=a((u,e,D)=>e in u?uu(u,e,{enumerable:!0,configurable:!0,writable:!0,value:D}):u[e]=D,"W$2"),eu=a((u,e)=>{for(var D in e||(e={}))qu.call(e,D)&&Ju(u,D,e[D]);if(zu)for(var D of zu(e))kt.call(e,D)&&Ju(u,D,e[D]);return u},"p$1"),cu=a((u,e)=>bt(u,vt(e)),"c"),jt=a(u=>uu(u,"__esModule",{value:!0}),"nD"),Ot=a((u,e)=>()=>(u&&(e=u(u=0)),e),"rD"),Tt=a((u,e)=>()=>(e||u((e={exports:{}}).exports,e),e.exports),"iD"),St=a((u,e,D,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of $t(e))!qu.call(u,r)&&r!=="default"&&uu(u,r,{get:a(()=>e[r],"get"),enumerable:!(t=wt(e,r))||t.enumerable});return u},"oD"),Pt=a((u,e)=>St(jt(uu(u!=null?At(xt(u)):{},"default",{value:u,enumerable:!0})),u),"BD"),k=Ot(()=>{}),_t=Tt((u,e)=>{k(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});k(),k(),k();var Nt=a(u=>{var e,D,t;let r=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(r)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:r}:{columns:(D=u.columns)!=null?D:[],stdoutColumns:(t=u.stdoutColumns)!=null?t:r}},"v$1");k(),k(),k(),k(),k();function It({onlyFirst:u=!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,u?void 0:"g")}a(It,"w$2");function Gu(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(It(),"")}a(Gu,"d$2"),k();function Rt(u){return Number.isInteger(u)?u>=4352&&(u<=4447||u===9001||u===9002||11904<=u&&u<=12871&&u!==12351||12880<=u&&u<=19903||19968<=u&&u<=42182||43360<=u&&u<=43388||44032<=u&&u<=55203||63744<=u&&u<=64255||65040<=u&&u<=65049||65072<=u&&u<=65131||65281<=u&&u<=65376||65504<=u&&u<=65510||110592<=u&&u<=110593||127488<=u&&u<=127569||131072<=u&&u<=262141):!1}a(Rt,"y$1");var Lt=Pt(_t());function R(u){if(typeof u!="string"||u.length===0||(u=Gu(u),u.length===0))return 0;u=u.replace((0,Lt.default)()," ");let e=0;for(let D=0;D<u.length;D++){let t=u.codePointAt(D);t<=31||t>=127&&t<=159||t>=768&&t<=879||(t>65535&&D++,e+=Rt(t)?2:1)}return e}a(R,"g");var Ku=a(u=>Math.max(...u.split(`
|
|
3
|
-
`).map(R)),"b$1"),Mt=a(u=>{let e=[];for(let D of u){let{length:t}=D,
|
|
4
|
-
`)];for(let[l,c]of i.entries()){if(t+=c,tu.has(c)){let{groups:
|
|
5
|
-
`?(
|
|
6
|
-
`&&(
|
|
2
|
+
var qe=Object.defineProperty;var a=(u,e)=>qe(u,"name",{value:e,configurable:!0});import N from"node:fs";import ze from"tty";import{watch as Je,rollup as Ke}from"rollup";import m from"node:path";import lu from"node:path/posix";import Ge from"@rollup/plugin-node-resolve";import He from"@rollup/plugin-commonjs";import Ze from"@rollup/plugin-json";import Ye from"@rollup/plugin-alias";import Qe from"@rollup/plugin-dynamic-import-vars";import{createFilter as Xe}from"@rollup/pluginutils";import{transform as Uu}from"esbuild";import ut,{builtinModules as et}from"node:module";import cu from"magic-string";import tt from"fs";import{attachScopes as Dt}from"rollup-pluginutils";const nt="known-flag",rt="unknown-flag",ot="argument",{stringify:z}=JSON,st=/\B([A-Z])/g,it=a(u=>u.replace(st,"-$1").toLowerCase(),"v$2"),{hasOwnProperty:at}=Object.prototype,J=a((u,e)=>at.call(u,e),"w$3"),lt=a(u=>Array.isArray(u),"L$2"),Vu=a(u=>typeof u=="function"?[u,!1]:lt(u)?[u[0],!0]:Vu(u.type),"b$2"),ct=a((u,e)=>u===Boolean?e!=="false":e,"d$3"),ft=a((u,e)=>typeof e=="boolean"?e:u===Number&&e===""?Number.NaN:u(e),"m$2"),Ft=/[\s.:=]/,pt=a(u=>{const e=`Flag name ${z(u)}`;if(u.length===0)throw new Error(`${e} cannot be empty`);if(u.length===1)throw new Error(`${e} must be longer than a character`);const D=u.match(Ft);if(D)throw new Error(`${e} cannot contain ${z(D?.[0])}`)},"B$1"),Ct=a(u=>{const e={},D=a((t,n)=>{if(J(e,t))throw new Error(`Duplicate flags named ${z(t)}`);e[t]=n},"r");for(const t in u){if(!J(u,t))continue;pt(t);const n=u[t],r=[[],...Vu(n),n];D(t,r);const o=it(t);if(t!==o&&D(o,r),"alias"in n&&typeof n.alias=="string"){const{alias:s}=n,i=`Flag alias ${z(s)} for flag ${z(t)}`;if(s.length===0)throw new Error(`${i} cannot be empty`);if(s.length>1)throw new Error(`${i} must be a single character`);D(s,r)}}return e},"K$2"),dt=a((u,e)=>{const D={};for(const t in u){if(!J(u,t))continue;const[n,,r,o]=e[t];if(n.length===0&&"default"in o){let{default:s}=o;typeof s=="function"&&(s=s()),D[t]=s}else D[t]=r?n:n.pop()}return D},"_$3"),X="--",Et=/[.:=]/,ht=/^-{1,2}\w/,mt=a(u=>{if(!ht.test(u))return;const e=!u.startsWith(X);let D=u.slice(e?1:2),t;const n=D.match(Et);if(n){const{index:r}=n;t=D.slice(r+1),D=D.slice(0,r)}return[D,t,e]},"N"),gt=a((u,{onFlag:e,onArgument:D})=>{let t;const n=a((r,o)=>{if(typeof t!="function")return!0;t(r,o),t=void 0},"o");for(let r=0;r<u.length;r+=1){const o=u[r];if(o===X){n();const i=u.slice(r+1);D?.(i,[r],!0);break}const s=mt(o);if(s){if(n(),!e)continue;const[i,l,c]=s;if(c)for(let p=0;p<i.length;p+=1){n();const f=p===i.length-1;t=e(i[p],f?l:void 0,[r,p+1,f])}else t=e(i,l,[r])}else n(o,[r])&&D?.([o],[r])}n()},"$$2"),Bt=a((u,e)=>{for(const[D,t,n]of e.reverse()){if(t){const r=u[D];let o=r.slice(0,t);if(n||(o+=r.slice(t+1)),o!=="-"){u[D]=o;continue}}u.splice(D,1)}},"E$2"),yt=a((u,e=process.argv.slice(2),{ignore:D}={})=>{const t=[],n=Ct(u),r={},o=[];return o[X]=[],gt(e,{onFlag(s,i,l){const c=J(n,s);if(!D?.(c?nt:rt,s,i)){if(c){const[p,f]=n[s],E=ct(f,i),C=a((h,b)=>{t.push(l),b&&t.push(b),p.push(ft(f,h||""))},"p");return E===void 0?C:C(E)}J(r,s)||(r[s]=[]),r[s].push(i===void 0?!0:i),t.push(l)}},onArgument(s,i,l){D?.(ot,e[i[0]])||(o.push(...s),l?(o[X]=s,e.splice(i[0])):t.push(i))}}),Bt(e,t),{flags:dt(u,n),unknownFlags:r,_:o}},"U$3");var At=Object.create,uu=Object.defineProperty,bt=Object.defineProperties,wt=Object.getOwnPropertyDescriptor,vt=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertyNames,qu=Object.getOwnPropertySymbols,kt=Object.getPrototypeOf,zu=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Ju=a((u,e,D)=>e in u?uu(u,e,{enumerable:!0,configurable:!0,writable:!0,value:D}):u[e]=D,"W$2"),eu=a((u,e)=>{for(var D in e||(e={}))zu.call(e,D)&&Ju(u,D,e[D]);if(qu)for(var D of qu(e))xt.call(e,D)&&Ju(u,D,e[D]);return u},"p$1"),fu=a((u,e)=>bt(u,vt(e)),"c"),jt=a(u=>uu(u,"__esModule",{value:!0}),"nD"),Ot=a((u,e)=>()=>(u&&(e=u(u=0)),e),"rD"),Tt=a((u,e)=>()=>(e||u((e={exports:{}}).exports,e),e.exports),"iD"),St=a((u,e,D,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $t(e))!zu.call(u,n)&&n!=="default"&&uu(u,n,{get:a(()=>e[n],"get"),enumerable:!(t=wt(e,n))||t.enumerable});return u},"oD"),Pt=a((u,e)=>St(jt(uu(u!=null?At(kt(u)):{},"default",{value:u,enumerable:!0})),u),"BD"),x=Ot(()=>{}),_t=Tt((u,e)=>{x(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});x(),x(),x();var Nt=a(u=>{var e,D,t;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(n)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:n}:{columns:(D=u.columns)!=null?D:[],stdoutColumns:(t=u.stdoutColumns)!=null?t:n}},"v$1");x(),x(),x(),x(),x();function It({onlyFirst:u=!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,u?void 0:"g")}a(It,"w$2");function Ku(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(It(),"")}a(Ku,"d$2"),x();function Rt(u){return Number.isInteger(u)?u>=4352&&(u<=4447||u===9001||u===9002||11904<=u&&u<=12871&&u!==12351||12880<=u&&u<=19903||19968<=u&&u<=42182||43360<=u&&u<=43388||44032<=u&&u<=55203||63744<=u&&u<=64255||65040<=u&&u<=65049||65072<=u&&u<=65131||65281<=u&&u<=65376||65504<=u&&u<=65510||110592<=u&&u<=110593||127488<=u&&u<=127569||131072<=u&&u<=262141):!1}a(Rt,"y$1");var Lt=Pt(_t());function R(u){if(typeof u!="string"||u.length===0||(u=Ku(u),u.length===0))return 0;u=u.replace((0,Lt.default)()," ");let e=0;for(let D=0;D<u.length;D++){let t=u.codePointAt(D);t<=31||t>=127&&t<=159||t>=768&&t<=879||(t>65535&&D++,e+=Rt(t)?2:1)}return e}a(R,"g");var Gu=a(u=>Math.max(...u.split(`
|
|
3
|
+
`).map(R)),"b$1"),Mt=a(u=>{let e=[];for(let D of u){let{length:t}=D,n=t-e.length;for(let r=0;r<n;r+=1)e.push(0);for(let r=0;r<t;r+=1){let o=Gu(D[r]);o>e[r]&&(e[r]=o)}}return e},"k$1");x();var Hu=/^\d+%$/,Zu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Wt=a((u,e)=>{var D;let t=[];for(let n=0;n<u.length;n+=1){let r=(D=e[n])!=null?D:"auto";if(typeof r=="number"||r==="auto"||r==="content-width"||typeof r=="string"&&Hu.test(r)){t.push(fu(eu({},Zu),{width:r,contentWidth:u[n]}));continue}if(r&&typeof r=="object"){let o=fu(eu(eu({},Zu),r),{contentWidth:u[n]});o.horizontalPadding=o.paddingLeft+o.paddingRight,t.push(o);continue}throw new Error(`Invalid column width: ${JSON.stringify(r)}`)}return t},"sD");function Ut(u,e){for(let D of u){let{width:t}=D;if(t==="content-width"&&(D.width=D.contentWidth),t==="auto"){let i=Math.min(20,D.contentWidth);D.width=i,D.autoOverflow=D.contentWidth-i}if(typeof t=="string"&&Hu.test(t)){let i=Number.parseFloat(t.slice(0,-1))/100;D.width=Math.floor(e*i)-(D.paddingLeft+D.paddingRight)}let{horizontalPadding:n}=D,r=1,o=r+n;if(o>=e){let i=o-e,l=Math.ceil(D.paddingLeft/n*i),c=i-l;D.paddingLeft-=l,D.paddingRight-=c,D.horizontalPadding=D.paddingLeft+D.paddingRight}D.paddingLeftString=D.paddingLeft?" ".repeat(D.paddingLeft):"",D.paddingRightString=D.paddingRight?" ".repeat(D.paddingRight):"";let s=e-D.horizontalPadding;D.width=Math.max(Math.min(D.width,s),r)}}a(Ut,"aD");var Yu=a(()=>Object.assign([],{columns:0}),"G$1");function Vt(u,e){let D=[Yu()],[t]=D;for(let n of u){let r=n.width+n.horizontalPadding;t.columns+r>e&&(t=Yu(),D.push(t)),t.push(n),t.columns+=r}for(let n of D){let r=n.reduce((f,E)=>f+E.width+E.horizontalPadding,0),o=e-r;if(o===0)continue;let s=n.filter(f=>"autoOverflow"in f),i=s.filter(f=>f.autoOverflow>0),l=i.reduce((f,E)=>f+E.autoOverflow,0),c=Math.min(l,o);for(let f of i){let E=Math.floor(f.autoOverflow/l*c);f.width+=E,o-=E}let p=Math.floor(o/s.length);for(let f=0;f<s.length;f+=1){let E=s[f];f===s.length-1?E.width+=o:E.width+=p,o-=p}}return D}a(Vt,"lD");function qt(u,e,D){let t=Wt(D,e);return Ut(t,u),Vt(t,u)}a(qt,"Z$2"),x(),x(),x();var Fu=10,Qu=a((u=0)=>e=>`\x1B[${e+u}m`,"U$2"),Xu=a((u=0)=>e=>`\x1B[${38+u};5;${e}m`,"V$2"),ue=a((u=0)=>(e,D,t)=>`\x1B[${38+u};2;${e};${D};${t}m`,"Y$1");function zt(){let u=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[D,t]of Object.entries(e)){for(let[n,r]of Object.entries(t))e[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},t[n]=e[n],u.set(r[0],r[1]);Object.defineProperty(e,D,{value:t,enumerable:!1})}return Object.defineProperty(e,"codes",{value:u,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Qu(),e.color.ansi256=Xu(),e.color.ansi16m=ue(),e.bgColor.ansi=Qu(Fu),e.bgColor.ansi256=Xu(Fu),e.bgColor.ansi16m=ue(Fu),Object.defineProperties(e,{rgbToAnsi256:{value:a((D,t,n)=>D===t&&t===n?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),"value"),enumerable:!1},hexToRgb:{value:a(D=>{let t=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(D.toString(16));if(!t)return[0,0,0];let{colorString:n}=t.groups;n.length===3&&(n=n.split("").map(o=>o+o).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},"value"),enumerable:!1},hexToAnsi256:{value:a(D=>e.rgbToAnsi256(...e.hexToRgb(D)),"value"),enumerable:!1},ansi256ToAnsi:{value:a(D=>{if(D<8)return 30+D;if(D<16)return 90+(D-8);let t,n,r;if(D>=232)t=((D-232)*10+8)/255,n=t,r=t;else{D-=16;let i=D%36;t=Math.floor(D/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let o=Math.max(t,n,r)*2;if(o===0)return 30;let s=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return o===2&&(s+=60),s},"value"),enumerable:!1},rgbToAnsi:{value:a((D,t,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(D,t,n)),"value"),enumerable:!1},hexToAnsi:{value:a(D=>e.ansi256ToAnsi(e.hexToAnsi256(D)),"value"),enumerable:!1}}),e}a(zt,"AD");var Jt=zt(),Kt=Jt,tu=new Set(["\x1B","\x9B"]),Gt=39,pu="\x07",ee="[",Ht="]",te="m",Cu=`${Ht}8;;`,De=a(u=>`${tu.values().next().value}${ee}${u}${te}`,"J$1"),ne=a(u=>`${tu.values().next().value}${Cu}${u}${pu}`,"Q$1"),Zt=a(u=>u.split(" ").map(e=>R(e)),"hD"),du=a((u,e,D)=>{let t=[...e],n=!1,r=!1,o=R(Ku(u[u.length-1]));for(let[s,i]of t.entries()){let l=R(i);if(o+l<=D?u[u.length-1]+=i:(u.push(i),o=0),tu.has(i)&&(n=!0,r=t.slice(s+1).join("").startsWith(Cu)),n){r?i===pu&&(n=!1,r=!1):i===te&&(n=!1);continue}o+=l,o===D&&s<t.length-1&&(u.push(""),o=0)}!o&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"S"),Yt=a(u=>{let e=u.split(" "),D=e.length;for(;D>0&&!(R(e[D-1])>0);)D--;return D===e.length?u:e.slice(0,D).join(" ")+e.slice(D).join("")},"cD"),Qt=a((u,e,D={})=>{if(D.trim!==!1&&u.trim()==="")return"";let t="",n,r,o=Zt(u),s=[""];for(let[l,c]of u.split(" ").entries()){D.trim!==!1&&(s[s.length-1]=s[s.length-1].trimStart());let p=R(s[s.length-1]);if(l!==0&&(p>=e&&(D.wordWrap===!1||D.trim===!1)&&(s.push(""),p=0),(p>0||D.trim===!1)&&(s[s.length-1]+=" ",p++)),D.hard&&o[l]>e){let f=e-p,E=1+Math.floor((o[l]-f-1)/e);Math.floor((o[l]-1)/e)<E&&s.push(""),du(s,c,e);continue}if(p+o[l]>e&&p>0&&o[l]>0){if(D.wordWrap===!1&&p<e){du(s,c,e);continue}s.push("")}if(p+o[l]>e&&D.wordWrap===!1){du(s,c,e);continue}s[s.length-1]+=c}D.trim!==!1&&(s=s.map(l=>Yt(l)));let i=[...s.join(`
|
|
4
|
+
`)];for(let[l,c]of i.entries()){if(t+=c,tu.has(c)){let{groups:f}=new RegExp(`(?:\\${ee}(?<code>\\d+)m|\\${Cu}(?<uri>.*)${pu})`).exec(i.slice(l).join(""))||{groups:{}};if(f.code!==void 0){let E=Number.parseFloat(f.code);n=E===Gt?void 0:E}else f.uri!==void 0&&(r=f.uri.length===0?void 0:f.uri)}let p=Kt.codes.get(Number(n));i[l+1]===`
|
|
5
|
+
`?(r&&(t+=ne("")),n&&p&&(t+=De(p))):c===`
|
|
6
|
+
`&&(n&&p&&(t+=De(n)),r&&(t+=ne(r)))}return t},"dD");function Xt(u,e,D){return String(u).normalize().replace(/\r\n/g,`
|
|
7
7
|
`).split(`
|
|
8
8
|
`).map(t=>Qt(t,e,D)).join(`
|
|
9
|
-
`)}a(Xt,"T$1");var
|
|
10
|
-
`);if(i.postprocess){let{postprocess:
|
|
9
|
+
`)}a(Xt,"T$1");var re=a(u=>Array.from({length:u}).fill(""),"X$1");function uD(u,e){let D=[],t=0;for(let n of u){let r=0,o=n.map(i=>{var l;let c=(l=e[t])!=null?l:"";t+=1,i.preprocess&&(c=i.preprocess(c)),Gu(c)>i.width&&(c=Xt(c,i.width,{hard:!0}));let p=c.split(`
|
|
10
|
+
`);if(i.postprocess){let{postprocess:f}=i;p=p.map((E,C)=>f.call(i,E,C))}return i.paddingTop&&p.unshift(...re(i.paddingTop)),i.paddingBottom&&p.push(...re(i.paddingBottom)),p.length>r&&(r=p.length),fu(eu({},i),{lines:p})}),s=[];for(let i=0;i<r;i+=1){let l=o.map(c=>{var p;let f=(p=c.lines[i])!=null?p:"",E=Number.isFinite(c.width)?" ".repeat(c.width-R(f)):"",C=c.paddingLeftString;return c.align==="right"&&(C+=E),C+=f,c.align==="left"&&(C+=E),C+c.paddingRightString}).join("");s.push(l)}D.push(s.join(`
|
|
11
11
|
`))}return D.join(`
|
|
12
|
-
`)}a(uD,"P$2");function eD(u,e){if(!u||u.length===0)return"";let D=Mt(u),t=D.length;if(t===0)return"";let{stdoutColumns:
|
|
13
|
-
`)}a(eD,"mD"),
|
|
12
|
+
`)}a(uD,"P$2");function eD(u,e){if(!u||u.length===0)return"";let D=Mt(u),t=D.length;if(t===0)return"";let{stdoutColumns:n,columns:r}=Nt(e);if(r.length>t)throw new Error(`${r.length} columns defined, but only ${t} columns found`);let o=qt(n,r,D);return u.map(s=>uD(o,s)).join(`
|
|
13
|
+
`)}a(eD,"mD"),x();var tD=["<",">","=",">=","<="];function DD(u){if(!tD.includes(u))throw new TypeError(`Invalid breakpoint operator: ${u}`)}a(DD,"xD");function nD(u){let e=Object.keys(u).map(D=>{let[t,n]=D.split(" ");DD(t);let r=Number.parseInt(n,10);if(Number.isNaN(r))throw new TypeError(`Invalid breakpoint value: ${n}`);let o=u[D];return{operator:t,breakpoint:r,value:o}}).sort((D,t)=>t.breakpoint-D.breakpoint);return D=>{var t;return(t=e.find(({operator:n,breakpoint:r})=>n==="="&&D===r||n===">"&&D>r||n==="<"&&D<r||n===">="&&D>=r||n==="<="&&D<=r))==null?void 0:t.value}}a(nD,"wD");const rD=a(u=>u.replace(/[\W_]([a-z\d])?/gi,(e,D)=>D?D.toUpperCase():""),"P$1"),oD=a(u=>u.replace(/\B([A-Z])/g,"-$1").toLowerCase(),"q$1"),sD={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:a(u=>u.trim(),"preprocess")},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function iD(u){let e=!1;return{type:"table",data:{tableData:Object.keys(u).sort((D,t)=>D.localeCompare(t)).map(D=>{const t=u[D],n="alias"in t;return n&&(e=!0),{name:D,flag:t,flagFormatted:`--${oD(D)}`,aliasesEnabled:e,aliasFormatted:n?`-${t.alias}`:void 0}}).map(D=>(D.aliasesEnabled=e,[{type:"flagName",data:D},{type:"flagDescription",data:D}])),tableBreakpoints:sD}}}a(iD,"D");const oe=a(u=>!u||(u.version??(u.help?u.help.version:void 0)),"A$1"),se=a(u=>{const e="parent"in u&&u.parent?.name;return(e?`${e} `:"")+u.name},"C$1");function aD(u){const e=[];u.name&&e.push(se(u));const D=oe(u)??("parent"in u&&oe(u.parent));if(D&&e.push(`v${D}`),e.length!==0)return{id:"name",type:"text",data:`${e.join(" ")}
|
|
14
14
|
`}}a(aD,"R$2");function lD(u){const{help:e}=u;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
|
|
15
15
|
`}}a(lD,"L");function cD(u){const e=u.help||{};if("usage"in e)return e.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(e.usage)?e.usage.join(`
|
|
16
|
-
`):e.usage}}:void 0;if(u.name){const D=[],t=[se(u)];if(u.flags&&Object.keys(u.flags).length>0&&t.push("[flags...]"),u.parameters&&u.parameters.length>0){const{parameters:
|
|
16
|
+
`):e.usage}}:void 0;if(u.name){const D=[],t=[se(u)];if(u.flags&&Object.keys(u.flags).length>0&&t.push("[flags...]"),u.parameters&&u.parameters.length>0){const{parameters:n}=u,r=n.indexOf("--"),o=r>-1&&n.slice(r+1).some(s=>s.startsWith("<"));t.push(n.map(s=>s!=="--"?s:o?"--":"[--]").join(" "))}if(t.length>1&&D.push(t.join(" ")),"commands"in u&&u.commands?.length&&D.push(`${u.name} <command>`),D.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:D.join(`
|
|
17
17
|
`)}}}}a(cD,"T");function fD(u){return!("commands"in u)||!u.commands?.length?void 0:{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u.commands.map(e=>[e.options.name,e.options.help?e.options.help.description:""]),tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}a(fD,"_$1");function FD(u){if(!(!u.flags||Object.keys(u.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:iD(u.flags),indentBody:0}}}a(FD,"k");function pD(u){const{help:e}=u;if(!e||!e.examples||e.examples.length===0)return;let{examples:D}=e;if(Array.isArray(D)&&(D=D.join(`
|
|
18
|
-
`)),D)return{id:"examples",type:"section",data:{title:"Examples:",body:D}}}a(pD,"F");function CD(u){if(!("alias"in u)||!u.alias)return;const{alias:e}=u;return{id:"aliases",type:"section",data:{title:"Aliases:",body:Array.isArray(e)?e.join(", "):e}}}a(CD,"H$1");const dD=a(u=>[aD,lD,cD,fD,FD,pD,CD].map(e=>e(u)).filter(Boolean),"U$1"),ED=
|
|
18
|
+
`)),D)return{id:"examples",type:"section",data:{title:"Examples:",body:D}}}a(pD,"F");function CD(u){if(!("alias"in u)||!u.alias)return;const{alias:e}=u;return{id:"aliases",type:"section",data:{title:"Aliases:",body:Array.isArray(e)?e.join(", "):e}}}a(CD,"H$1");const dD=a(u=>[aD,lD,cD,fD,FD,pD,CD].map(e=>e(u)).filter(Boolean),"U$1"),ED=ze.WriteStream.prototype.hasColors();class hD{static{a(this,"J")}text(e){return e}bold(e){return ED?`\x1B[1m${e}\x1B[22m`:e.toLocaleUpperCase()}indentText({text:e,spaces:D}){return e.replace(/^/gm," ".repeat(D))}heading(e){return this.bold(e)}section({title:e,body:D,indentBody:t=2}){return`${(e?`${this.heading(e)}
|
|
19
19
|
`:"")+(D?this.indentText({text:this.render(D),spaces:t}):"")}
|
|
20
|
-
`}table({tableData:e,tableOptions:D,tableBreakpoints:t}){return eD(e.map(
|
|
21
|
-
`);if("type"in e&&this[e.type]){const D=this[e.type];if(typeof D=="function")return D.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const ie=a(u=>u.length>0&&!u.includes(" "),"y"),{stringify:P}=JSON,mD=/[|\\{}()[\]^$+*?.]/;function
|
|
22
|
-
`),t(),process.exit(1);u[i]=l}}a(
|
|
23
|
-
`),{code:o.toString(),map:
|
|
24
|
-
`;break;case 114:d+="\r";break;case 116:d+=" ";break;case 117:const w=
|
|
25
|
-
`),s++,l=t,o=14;switch(d){case 123:return t++,o=1;case 125:return t++,o=2;case 91:return t++,o=3;case 93:return t++,o=4;case 58:return t++,o=6;case 44:return t++,o=5;case 34:return t++,
|
|
26
|
-
`+" ".repeat(e)),new Array(
|
|
27
|
-
`+" ".repeat(e)),new Array(
|
|
28
|
-
`+" ".repeat(e)),new Array(
|
|
29
|
-
`+" ".repeat(e));var ou;(function(u){u.DEFAULT={allowTrailingComma:!1}})(ou||(ou={}));function ye(u,e=[],D=ou.DEFAULT){let t=null,r=[];const n=[];function o(s){Array.isArray(r)?r.push(s):t!==null&&(r[t]=s)}return a(o,"u"),p(o,"onValue"),Ae(u,{onObjectBegin:p(()=>{const s={};o(s),n.push(r),r=s,t=null},"onObjectBegin"),onObjectProperty:p(s=>{t=s},"onObjectProperty"),onObjectEnd:p(()=>{r=n.pop()},"onObjectEnd"),onArrayBegin:p(()=>{const s=[];o(s),n.push(r),r=s,t=null},"onArrayBegin"),onArrayEnd:p(()=>{r=n.pop()},"onArrayEnd"),onLiteralValue:o,onError:p((s,i,l)=>{e.push({error:s,offset:i,length:l})},"onError")},D),r[0]}a(ye,"ye"),p(ye,"parse$1");function Ae(u,e,D=ou.DEFAULT){const t=ge(u,!1),r=[];function n(y){return y?()=>y(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}a(n,"i"),p(n,"toNoArgVisit");function o(y){return y?()=>y(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>r.slice()):()=>!0}a(o,"u"),p(o,"toNoArgVisitWithPath");function s(y){return y?v=>y(v,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}a(s,"f"),p(s,"toOneArgVisit");function i(y){return y?v=>y(v,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>r.slice()):()=>!0}a(i,"r"),p(i,"toOneArgVisitWithPath");const l=o(e.onObjectBegin),c=i(e.onObjectProperty),f=n(e.onObjectEnd),F=o(e.onArrayBegin),E=n(e.onArrayEnd),C=i(e.onLiteralValue),h=s(e.onSeparator),b=n(e.onComment),O=s(e.onError),A=D&&D.disallowComments,d=D&&D.allowTrailingComma;function B(){for(;;){const y=t.scan();switch(t.getTokenError()){case 4:g(14);break;case 5:g(15);break;case 3:g(13);break;case 1:A||g(11);break;case 2:g(12);break;case 6:g(16);break}switch(y){case 12:case 13:A?g(10):b();break;case 16:g(1);break;case 15:case 14:break;default:return y}}}a(B,"k"),p(B,"scanNext");function g(y,v=[],Mu=[]){if(O(y),v.length+Mu.length>0){let Q=t.getToken();for(;Q!==17;){if(v.indexOf(Q)!==-1){B();break}else if(Mu.indexOf(Q)!==-1)break;Q=B()}}}a(g,"p"),p(g,"handleError");function w(y){const v=t.getTokenValue();return y?C(v):(c(v),r.push(v)),B(),!0}a(w,"F"),p(w,"parseString");function x(){switch(t.getToken()){case 11:const y=t.getTokenValue();let v=Number(y);isNaN(v)&&(g(2),v=0),C(v);break;case 7:C(null);break;case 8:C(!0);break;case 9:C(!1);break;default:return!1}return B(),!0}a(x,"j"),p(x,"parseLiteral");function Iu(){return t.getToken()!==10?(g(3,[],[2,5]),!1):(w(!1),t.getToken()===6?(h(":"),B(),Y()||g(4,[],[2,5])):g(5,[],[2,5]),r.pop(),!0)}a(Iu,"a"),p(Iu,"parseProperty");function Ru(){l(),B();let y=!1;for(;t.getToken()!==2&&t.getToken()!==17;){if(t.getToken()===5){if(y||g(4,[],[]),h(","),B(),t.getToken()===2&&d)break}else y&&g(6,[],[]);Iu()||g(4,[],[2,5]),y=!0}return f(),t.getToken()!==2?g(7,[2],[]):B(),!0}a(Ru,"N"),p(Ru,"parseObject");function Lu(){F(),B();let y=!0,v=!1;for(;t.getToken()!==4&&t.getToken()!==17;){if(t.getToken()===5){if(v||g(4,[],[]),h(","),B(),t.getToken()===4&&d)break}else v&&g(6,[],[]);y?(r.push(0),y=!1):r[r.length-1]++,Y()||g(4,[],[4,5]),v=!0}return E(),y||r.pop(),t.getToken()!==4?g(8,[4],[]):B(),!0}a(Lu,"be"),p(Lu,"parseArray");function Y(){switch(t.getToken()){case 3:return Lu();case 1:return Ru();case 10:return w(!0);default:return x()}}return a(Y,"J"),p(Y,"parseValue"),B(),t.getToken()===17?D.allowEmptyContent?!0:(g(4,[],[]),!1):Y()?(t.getToken()!==17&&g(9,[],[]),!0):(g(4,[],[]),!1)}a(Ae,"Fe"),p(Ae,"visit");var be;(function(u){u[u.None=0]="None",u[u.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",u[u.UnexpectedEndOfString=2]="UnexpectedEndOfString",u[u.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",u[u.InvalidUnicode=4]="InvalidUnicode",u[u.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",u[u.InvalidCharacter=6]="InvalidCharacter"})(be||(be={}));var we;(function(u){u[u.OpenBraceToken=1]="OpenBraceToken",u[u.CloseBraceToken=2]="CloseBraceToken",u[u.OpenBracketToken=3]="OpenBracketToken",u[u.CloseBracketToken=4]="CloseBracketToken",u[u.CommaToken=5]="CommaToken",u[u.ColonToken=6]="ColonToken",u[u.NullKeyword=7]="NullKeyword",u[u.TrueKeyword=8]="TrueKeyword",u[u.FalseKeyword=9]="FalseKeyword",u[u.StringLiteral=10]="StringLiteral",u[u.NumericLiteral=11]="NumericLiteral",u[u.LineCommentTrivia=12]="LineCommentTrivia",u[u.BlockCommentTrivia=13]="BlockCommentTrivia",u[u.LineBreakTrivia=14]="LineBreakTrivia",u[u.Trivia=15]="Trivia",u[u.Unknown=16]="Unknown",u[u.EOF=17]="EOF"})(we||(we={}));const ur=ye;var ve;(function(u){u[u.InvalidSymbol=1]="InvalidSymbol",u[u.InvalidNumberFormat=2]="InvalidNumberFormat",u[u.PropertyNameExpected=3]="PropertyNameExpected",u[u.ValueExpected=4]="ValueExpected",u[u.ColonExpected=5]="ColonExpected",u[u.CommaExpected=6]="CommaExpected",u[u.CloseBraceExpected=7]="CloseBraceExpected",u[u.CloseBracketExpected=8]="CloseBracketExpected",u[u.EndOfFileExpected=9]="EndOfFileExpected",u[u.InvalidCommentToken=10]="InvalidCommentToken",u[u.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",u[u.UnexpectedEndOfString=12]="UnexpectedEndOfString",u[u.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",u[u.InvalidUnicode=14]="InvalidUnicode",u[u.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",u[u.InvalidCharacter=16]="InvalidCharacter"})(ve||(ve={}));const $e=p((u,e)=>ur(XD(e,u,"utf8")),"readJsonc"),ku=Symbol("implicitBaseUrl"),I="${configDir}",er=p(()=>{const{findPnpApi:u}=ut;return u&&u(process.cwd())},"getPnpApi"),ju=p((u,e,D,t)=>{const r=`resolveFromPackageJsonPath:${u}:${e}:${D}`;if(t!=null&&t.has(r))return t.get(r);const n=$e(u,t);if(!n)return;let o=e||"tsconfig.json";if(!D&&n.exports)try{const[s]=YD(n.exports,e,["require","types"]);o=s}catch{return!1}else!e&&n.tsconfig&&(o=n.tsconfig);return o=m.join(u,"..",o),t?.set(r,o),o},"resolveFromPackageJsonPath"),Ou="package.json",Tu="tsconfig.json",tr=p((u,e,D)=>{let t=u;if(u===".."&&(t=m.join(t,Tu)),u[0]==="."&&(t=m.resolve(e,t)),m.isAbsolute(t)){if(T(D,t)){if(ru(D,t).isFile())return t}else if(!t.endsWith(".json")){const E=`${t}.json`;if(T(D,E))return E}return}const[r,...n]=u.split("/"),o=r[0]==="@"?`${r}/${n.shift()}`:r,s=n.join("/"),i=er();if(i){const{resolveRequest:E}=i;try{if(o===u){const C=E(m.join(o,Ou),e);if(C){const h=ju(C,s,!1,D);if(h&&T(D,h))return h}}else{let C;try{C=E(u,e,{extensions:[".json"]})}catch{C=E(m.join(u,Tu),e)}if(C)return C}}catch{}}const l=me(m.resolve(e),m.join("node_modules",o),D);if(!l||!ru(D,l).isDirectory())return;const c=m.join(l,Ou);if(T(D,c)){const E=ju(c,s,!1,D);if(E===!1)return;if(E&&T(D,E)&&ru(D,E).isFile())return E}const f=m.join(l,s),F=f.endsWith(".json");if(!F){const E=`${f}.json`;if(T(D,E))return E}if(T(D,f)){if(ru(D,f).isDirectory()){const E=m.join(f,Ou);if(T(D,E)){const h=ju(E,"",!0,D);if(h&&T(D,h))return h}const C=m.join(f,Tu);if(T(D,C))return C}else if(F)return f}},"resolveExtendsPath"),Su=p((u,e)=>xu(m.relative(u,e)),"pathRelative"),xe=["files","include","exclude"],Dr=p((u,e,D,t)=>{const r=tr(u,e,t);if(!r)throw new Error(`File '${u}' not found.`);if(D.has(r))throw new Error(`Circularity detected while resolving configuration: ${r}`);D.add(r);const n=m.dirname(r),o=ke(r,t,D);delete o.references;const{compilerOptions:s}=o;if(s){const{baseUrl:i}=s;i&&!i.startsWith(I)&&(s.baseUrl=j(m.relative(e,m.join(n,i)))||"./");let{outDir:l}=s;l&&(l.startsWith(I)||(l=m.relative(e,m.join(n,l))),s.outDir=j(l)||"./")}for(const i of xe){const l=o[i];l&&(o[i]=l.map(c=>c.startsWith(I)?c:j(m.relative(e,m.join(n,c)))))}return o},"resolveExtends"),rr=["outDir","declarationDir"],ke=p((u,e,D=new Set)=>{let t;try{t=$e(u,e)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${u}`)}if(typeof t!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${u}`);const r=m.dirname(u);if(t.compilerOptions){const{compilerOptions:n}=t;n.paths&&!n.baseUrl&&(n[ku]=r)}if(t.extends){const n=Array.isArray(t.extends)?t.extends:[t.extends];delete t.extends;for(const o of n.reverse()){const s=Dr(o,r,new Set(D),e),i={...s,...t,compilerOptions:{...s.compilerOptions,...t.compilerOptions}};s.watchOptions&&(i.watchOptions={...s.watchOptions,...t.watchOptions}),t=i}}if(t.compilerOptions){const{compilerOptions:n}=t,o=["baseUrl","rootDir"];for(const s of o){const i=n[s];if(i&&!i.startsWith(I)){const l=m.resolve(r,i),c=Su(r,l);n[s]=c}}for(const s of rr){let i=n[s];i&&(Array.isArray(t.exclude)||(t.exclude=[]),t.exclude.includes(i)||t.exclude.push(i),i.startsWith(I)||(i=xu(i)),n[s]=i)}}else t.compilerOptions={};if(t.include?(t.include=t.include.map(j),t.files&&delete t.files):t.files&&(t.files=t.files.map(n=>n.startsWith(I)?n:xu(n))),t.watchOptions){const{watchOptions:n}=t;n.excludeDirectories&&(n.excludeDirectories=n.excludeDirectories.map(o=>j(m.resolve(r,o))))}return t},"_parseTsconfig"),su=p((u,e)=>{if(u.startsWith(I))return j(m.join(e,u.slice(I.length)))},"interpolateConfigDir"),nr=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],or=p(u=>{if(u.strict){const e=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const D of e)u[D]===void 0&&(u[D]=!0)}if(u.target){let e=u.target.toLowerCase();e==="es2015"&&(e="es6"),u.target=e,e==="esnext"&&(u.module!=null||(u.module="es6"),u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0)),(e==="es6"||e==="es2016"||e==="es2017"||e==="es2018"||e==="es2019"||e==="es2020"||e==="es2021"||e==="es2022"||e==="es2023"||e==="es2024")&&(u.module!=null||(u.module="es6")),(e==="es2022"||e==="es2023"||e==="es2024")&&(u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0))}if(u.module){let e=u.module.toLowerCase();e==="es2015"&&(e="es6"),u.module=e,(e==="es6"||e==="es2020"||e==="es2022"||e==="esnext"||e==="none"||e==="system"||e==="umd"||e==="amd")&&(u.moduleResolution!=null||(u.moduleResolution="classic")),e==="system"&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),(e==="node16"||e==="nodenext"||e==="preserve")&&(u.esModuleInterop!=null||(u.esModuleInterop=!0),u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),(e==="node16"||e==="nodenext")&&(u.moduleDetection!=null||(u.moduleDetection="force"),u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0)),e==="node16"&&(u.target!=null||(u.target="es2022"),u.moduleResolution!=null||(u.moduleResolution="node16")),e==="nodenext"&&(u.target!=null||(u.target="esnext"),u.moduleResolution!=null||(u.moduleResolution="nodenext")),e==="preserve"&&(u.moduleResolution!=null||(u.moduleResolution="bundler"))}if(u.moduleResolution){let e=u.moduleResolution.toLowerCase();e==="node"&&(e="node10"),u.moduleResolution=e,(e==="node16"||e==="nodenext"||e==="bundler")&&(u.resolvePackageJsonExports!=null||(u.resolvePackageJsonExports=!0),u.resolvePackageJsonImports!=null||(u.resolvePackageJsonImports=!0)),e==="bundler"&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0),u.resolveJsonModule!=null||(u.resolveJsonModule=!0))}u.esModuleInterop&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),u.verbatimModuleSyntax&&(u.isolatedModules!=null||(u.isolatedModules=!0),u.preserveConstEnums!=null||(u.preserveConstEnums=!0)),u.isolatedModules&&(u.preserveConstEnums!=null||(u.preserveConstEnums=!0))},"normalizeCompilerOptions"),je=p((u,e=new Map)=>{const D=m.resolve(u),t=ke(D,e),r=m.dirname(D),{compilerOptions:n}=t;if(n){for(const s of nr){const i=n[s];if(i){const l=su(i,r);n[s]=l?Su(r,l):i}}for(const s of["rootDirs","typeRoots"]){const i=n[s];i&&(n[s]=i.map(l=>{const c=su(l,r);return c?Su(r,c):l}))}const{paths:o}=n;if(o)for(const s of Object.keys(o))o[s]=o[s].map(i=>{var l;return(l=su(i,r))!=null?l:i});or(n)}for(const o of xe){const s=t[o];s&&(t[o]=s.map(i=>{var l;return(l=su(i,r))!=null?l:i}))}return t},"parseTsconfig"),sr=p((u=process.cwd(),e="tsconfig.json",D=new Map)=>{const t=me(j(u),e,D);if(!t)return null;const r=je(t,D);return{path:t,config:r}},"getTsconfig"),ir=/\*/g,Oe=p((u,e)=>{const D=u.match(ir);if(D&&D.length>1)throw new Error(e)},"assertStarCount"),ar=p(u=>{if(u.includes("*")){const[e,D]=u.split("*");return{prefix:e,suffix:D}}return u},"parsePattern"),lr=p(({prefix:u,suffix:e},D)=>D.startsWith(u)&&D.endsWith(e),"isPatternMatch"),cr=p((u,e,D)=>Object.entries(u).map(([t,r])=>(Oe(t,`Pattern '${t}' can have at most one '*' character.`),{pattern:ar(t),substitutions:r.map(n=>{if(Oe(n,`Substitution '${n}' in pattern '${t}' can have at most one '*' character.`),!e&&!$u.test(n))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return m.resolve(D,n)})})),"parsePaths"),fr=p(u=>{const{compilerOptions:e}=u.config;if(!e)return null;const{baseUrl:D,paths:t}=e;if(!D&&!t)return null;const r=ku in e&&e[ku],n=m.resolve(m.dirname(u.path),D||r||"."),o=t?cr(t,D,n):[];return s=>{if($u.test(s))return[];const i=[];for(const F of o){if(F.pattern===s)return F.substitutions.map(j);typeof F.pattern!="string"&&i.push(F)}let l,c=-1;for(const F of i)lr(F.pattern,s)&&F.pattern.prefix.length>c&&(c=F.pattern.prefix.length,l=F);if(!l)return D?[j(m.join(n,s))]:[];const f=s.slice(l.pattern.prefix.length,s.length-l.pattern.suffix.length);return l.substitutions.map(F=>j(F.replace("*",f)))}},"createPathsMatcher"),Te=p(u=>{let e="";for(let D=0;D<u.length;D+=1){const t=u[D],r=t.toUpperCase();e+=t===r?t.toLowerCase():r}return e},"s"),Fr=65,pr=97,Cr=p(()=>Math.floor(Math.random()*26),"m"),dr=p(u=>Array.from({length:u},()=>String.fromCodePoint(Cr()+(Math.random()>.5?Fr:pr))).join(""),"S"),Er=p((u=tt)=>{const e=process.execPath;if(u.existsSync(e))return!u.existsSync(Te(e));const D=`/${dr(10)}`;u.writeFileSync(D,"");const t=!u.existsSync(Te(D));return u.unlinkSync(D),t},"l"),{join:iu}=m.posix,Pu={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},hr=p(u=>{const e=[...Pu.ts],D=[...Pu.cts],t=[...Pu.mts];return u!=null&&u.allowJs&&(e.push(".js",".jsx"),D.push(".cjs"),t.push(".mjs")),[...e,...D,...t]},"getSupportedExtensions"),mr=p(u=>{const e=[];if(!u)return e;const{outDir:D,declarationDir:t}=u;return D&&e.push(D),t&&e.push(t),e},"getDefaultExcludeSpec"),Se=p(u=>u.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),gr=["node_modules","bower_components","jspm_packages"],_u=`(?!(${gr.join("|")})(/|$))`,Br=/(?:^|\/)[^.*?]+$/,Pe="**/*",au="[^/]",Nu="[^./]",_e=process.platform==="win32";p(({config:u,path:e},D=Er())=>{if("extends"in u)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!m.isAbsolute(e))throw new Error("The tsconfig path must be absolute");_e&&(e=j(e));const t=m.dirname(e),{files:r,include:n,exclude:o,compilerOptions:s}=u,i=r?.map(C=>iu(t,C)),l=hr(s),c=D?"":"i",f=(o||mr(s)).map(C=>{const h=iu(t,C),b=Se(h).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${au}*`).replaceAll(String.raw`\?`,au);return new RegExp(`^${b}($|/)`,c)}),F=r||n?n:[Pe],E=F?F.map(C=>{let h=iu(t,C);Br.test(h)&&(h=iu(h,Pe));const b=Se(h).replaceAll(String.raw`/\*\*`,`(/${_u}${Nu}${au}*)*?`).replaceAll(/(\/)?\\\*/g,(O,A)=>{const d=`(${Nu}|(\\.(?!min\\.js$))?)*`;return A?`/${_u}${Nu}${d}`:d}).replaceAll(/(\/)?\\\?/g,(O,A)=>{const d=au;return A?`/${_u}${d}`:d});return new RegExp(`^${b}$`,c)}):void 0;return C=>{if(!m.isAbsolute(C))throw new Error("filePath must be absolute");if(_e&&(C=j(C)),i!=null&&i.includes(C)||!(!l.some(h=>C.endsWith(h))||f.some(h=>h.test(C)))&&E&&E.some(h=>h.test(C)))return u}},"createFilesMatcher");const Ne="resolve-tsconfig-paths",yr=a(u=>u[0]===".","isRelative"),Ar=a(u=>u[0]==="/"||/^[\s\S]:/.test(u),"isAbsolute"),Ie=a(u=>{const e=fr(u);return e?{name:Ne,async resolveId(D,t,r){if(!t||yr(D)||Ar(D)||D.startsWith("\0"))return null;const n=e(D);for(const o of n){const s=await this.resolve(o,t,{skipSelf:!0,...r});if(s)return s}return null}}:{name:Ne}},"resolveTsconfigPaths"),Re=/^#!.*/,br=a(()=>({name:"strip-hashbang",transform:a(u=>{if(!Re.test(u))return null;const e=new lu(u);return e.replace(Re,""),{code:e.toString(),map:e.generateMap({hires:!0})}},"transform")}),"stripHashbang");class wr{static{a(this,"WalkerBase")}constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(e=>this.replacement=e,"replace")}}replace(e,D,t,r){e&&D&&(t!=null?e[D][t]=r:e[D]=r)}remove(e,D,t){e&&D&&(t!=null?e[D].splice(t,1):delete e[D])}}class vr extends wr{static{a(this,"SyncWalker")}constructor(e,D){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(t=>this.replacement=t,"replace")},this.enter=e,this.leave=D}visit(e,D,t,r){if(e){if(this.enter){const o=this.should_skip,s=this.should_remove,i=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,D,t,r),this.replacement&&(e=this.replacement,this.replace(D,t,r,e)),this.should_remove&&this.remove(D,t,r);const l=this.should_skip,c=this.should_remove;if(this.should_skip=o,this.should_remove=s,this.replacement=i,l)return e;if(c)return null}let n;for(n in e){const o=e[n];if(o&&typeof o=="object")if(Array.isArray(o)){const s=o;for(let i=0;i<s.length;i+=1){const l=s[i];Le(l)&&(this.visit(l,e,n,i)||i--)}}else Le(o)&&this.visit(o,e,n,null)}if(this.leave){const o=this.replacement,s=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,D,t,r),this.replacement&&(e=this.replacement,this.replace(D,t,r,e)),this.should_remove&&this.remove(D,t,r);const i=this.should_remove;if(this.replacement=o,this.should_remove=s,i)return null}}return e}}function Le(u){return u!==null&&typeof u=="object"&&"type"in u&&typeof u.type=="string"}a(Le,"isNode");function $r(u,{enter:e,leave:D}){return new vr(e,D).visit(u,null)}a($r,"walk");const xr=a(()=>{const u='import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);';return{name:"esmInjectCreateRequire",renderChunk(e,D,t){if(t.format!=="es"||!/\brequire\b/.test(e))return null;const r=this.parse(e);let n=Dt(r,"scope"),o=!1;if($r(r,{enter(i,l){i.scope&&(n=i.scope),!(i.type!=="Identifier"||i.name!=="require")&&(l?.type==="Property"&&l.key===i&&!l.compute||n.contains("require")||(o=!0,this.skip()))},leave:a(i=>{i.scope&&(n=n.parent)},"leave")}),!o)return null;const s=new lu(e);return s.prepend(u),{code:s.toString(),map:s.generateMap({hires:!0})}}}},"esmInjectCreateRequire"),kr=a((u,e,D,t)=>{const r=Object.fromEntries(u.env.map(({key:o,value:s})=>[`process.env.${o}`,JSON.stringify(s)])),n={target:u.target,tsconfigRaw:t?.config,define:r};return{input:{},preserveEntrySignatures:"strict",plugins:[pe(u),...t?[Ie(t)]:[],Ce(),Ye({entries:e}),Ke({extensions:[".mjs",".js",".ts",".jsx",".tsx",".json"],exportConditions:u.exportCondition}),br(),Ze(),LD(n),He({ignoreDynamicRequires:!0,extensions:[".js",".ts",".jsx",".tsx"],transformMixedEsModules:!0}),Qe({warnOnError:!0}),xr(),...u.minify?[WD(n)]:[],UD(D)],output:[],external:[]}},"getPkgConfig"),jr=a(async(u,e)=>{const[D,t]=await Promise.all([import("./rollup-plugin-dts-DuaETUxB.mjs"),import("./local-typescript-loader-CSvrvK-x.mjs")]);return{input:{},preserveEntrySignatures:"strict",plugins:[pe(u),...e?[Ie(e)]:[],Ce(),D.default({respectExternal:!0,compilerOptions:{composite:!1,preserveSymlinks:!1,module:t.default.ModuleKind.Preserve,moduleResolution:t.default.ModuleResolutionKind.Bundler},tsconfig:e?.path})],output:[],external:[]}},"getDtsConfig"),Or=a(u=>{if(u.length===0)return"";const e=u.map(n=>n.split("/")),D=e[0],t=Math.min(...e.map(n=>n.length)),r=[];for(let n=0;n<t;n+=1){const o=D[n];if(e.every(s=>s[n]===o))r.push(o);else break}return r.length===0?"/":r.join("/")||"/"},"getCommonPath"),Tr=a(async(u,e,D,t,r,n)=>{const o=$(Or(u.map(({dist:i})=>i)),!0);for(const i of u)i.distPrefix=i.dist.slice(o.length);const s=Object.create(null);for(const i of e){const{sourcePath:l,srcdist:c,srcExtension:f,distExtension:F,exportEntry:E}=i,C=c.distPrefix+l.slice(c.srcResolved.length,-f.length);if(i.inputNames=[C],E.format==="types"){let A=s.dts;A||(A=await jr(D,n),A.external=Fe(r,t,!0),s.dts=A),A.input[C]||(A.input[C]=l);const d=A.output,B=`${c.distPrefix}-${F}`;if(d[B])d[B][K].inputNames.push(C);else{const g={dir:o,entryFileNames:`[name]${F}`,chunkFileNames:`${c.distPrefix}[name]-[hash]${F}`,exports:"auto",format:"esm",[K]:i};d.push(g),d[B]=g}continue}let h=s.pkg;h||(h=kr(D,t,e,n),h.external=Fe(r,t),s.pkg=h),h.input[C]||(h.input[C]=l);const b=h.output,O=`${E.format}-${c.distPrefix}-${F}`;if(b[O])b[O][K].inputNames.push(C);else{const A={dir:o,exports:"auto",format:E.format,sourcemap:D.sourcemap,entryFileNames:`[name]${F}`,chunkFileNames:`${c.distPrefix}[name]-[hash]${F}`,[K]:i};b.push(A),b[O]=A}}return Object.values(s)},"getRollupConfigs"),Sr=a(u=>{if(!u)return sr();const e=m.resolve(u),D=je(e);return{path:e,config:D}},"getTsconfig"),Pr=a(async u=>{await hu(u)&&await N.promises.rm(u,{recursive:!0,force:!0})},"cleanDist"),{stringify:Me}=JSON,S=yD({name:"pkgroll",version:AD,flags:{input:{type:[jD],alias:"i",description:"Dist paths for source files to bundle (Only use if you cannot use package.json entries)"},src:{type:String,description:"Source directory (Deprecated, use `srcdist` instead)",default:"./src"},dist:{type:String,description:"Distribution directory (Deprecated, use `srcdist` instead)",default:"./dist"},srcdist:{type:[String],description:"Source and distribution folder pairs (eg. default `src:dist`)"},minify:{type:Boolean,description:"Minify output",alias:"m",default:!1},target:{type:[String],default:[`node${process.versions.node}`],description:"Environments to support. `target` in tsconfig.json is automatically added. Defaults to the current Node.js version.",alias:"t"},tsconfig:{type:String,description:"Custom tsconfig.json file path",alias:"p"},watch:{type:Boolean,description:"Watch mode",alias:"w",default:!1},env:{type:[u=>{const[e,D]=u.split("=",2);return{key:e,value:D}}],description:"Compile-time environment variables (eg. --env.NODE_ENV=production)"},exportCondition:{type:[String],description:"Export conditions for resolving dependency export and import maps (eg. --export-condition=node)"},sourcemap:{type:a(u=>{if(u==="")return!0;if(u==="inline")return u;throw new Error(`Invalid sourcemap option ${Me(u)}`)},"type"),description:"Sourcemap generation. Provide `inline` option for inline sourcemap (eg. --sourcemap, --sourcemap=inline)"},cleanDist:{type:Boolean,description:"Clean dist before bundling",default:!1}},help:{description:"Minimalistic package bundler",render:a((u,e)=>(e.flagOperator=D=>D.name==="env"?".key=":" ",e.render(u)),"render")}}),We=process.cwd(),Z=[];if(S.flags.srcdist.length>0)for(const u of S.flags.srcdist){const[e,D]=u.split(":",2);if(!e||!D)throw new Error(`Invalid src:dist pair ${Me(u)}. Expected format: src:dist`);Z.push({src:$(e,!0),srcResolved:$(N.realpathSync.native(e),!0),dist:$(D,!0)})}else Z.push({src:$(S.flags.src,!0),srcResolved:$(N.realpathSync.native(S.flags.src),!0),dist:$(S.flags.dist,!0)});const Ue=Sr(S.flags.tsconfig),Ve=Ue?.config.compilerOptions?.target;Ve&&S.flags.target.push(Ve),(async()=>{const{packageJson:u}=await kD(We),e=await ID(Z,u,S.flags.input);for(const r of e)"error"in r&&console.warn("Warning:",r.error);const D=e.filter(r=>!("error"in r));if(D.length===0)throw new Error("No entry points found");const t=await Tr(Z,D,S.flags,OD(u,We),u,Ue);S.flags.cleanDist&&await Promise.all(Z.map(({dist:r})=>Pr(r))),S.flags.watch?(Du("Watch initialized"),t.map(async r=>{Je(r).on("event",async o=>{if(o.code==="BUNDLE_START"){const s=Array.isArray(o.input)?o.input:Object.values(o.input);Du("Building",...s.map(mu))}if(o.code==="BUNDLE_END"){await Promise.all(r.output.map(i=>o.result.write(i)));const s=Array.isArray(o.input)?o.input:Object.values(o.input);Du("Built",...s.map(mu))}o.code==="ERROR"&&Du("Error:",o.error.message)})})):await Promise.all(t.map(async r=>{const n=await Ge(r);return Promise.all(r.output.map(o=>{const s=o[K].inputNames;return o.plugins=[{name:"filter-unnecessary-outputs",generateBundle:a((i,l)=>{for(const c in l){if(!Object.hasOwn(l,c))continue;const f=l[c];"isEntry"in f&&f.isEntry&&!s.includes(f.name)&&delete l[c]}},"generateBundle")}],n.write(o)}))}))})().catch(u=>{console.error(u),process.exit(1)});
|
|
20
|
+
`}table({tableData:e,tableOptions:D,tableBreakpoints:t}){return eD(e.map(n=>n.map(r=>this.render(r))),t?nD(t):D)}flagParameter(e){return e===Boolean?"":e===String?"<string>":e===Number?"<number>":Array.isArray(e)?this.flagParameter(e[0]):"<value>"}flagOperator(e){return" "}flagName(e){const{flag:D,flagFormatted:t,aliasesEnabled:n,aliasFormatted:r}=e;let o="";if(r?o+=`${r}, `:n&&(o+=" "),o+=t,"placeholder"in D&&typeof D.placeholder=="string")o+=`${this.flagOperator(e)}${D.placeholder}`;else{const s=this.flagParameter("type"in D?D.type:D);s&&(o+=`${this.flagOperator(e)}${s}`)}return o}flagDefault(e){return JSON.stringify(e)}flagDescription({flag:e}){let D="description"in e?e.description??"":"";if("default"in e){let{default:t}=e;typeof t=="function"&&(t=t()),t&&(D+=` (default: ${this.flagDefault(t)})`)}return D}render(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(D=>this.render(D)).join(`
|
|
21
|
+
`);if("type"in e&&this[e.type]){const D=this[e.type];if(typeof D=="function")return D.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const ie=a(u=>u.length>0&&!u.includes(" "),"y"),{stringify:P}=JSON,mD=/[|\\{}()[\]^$+*?.]/;function Eu(u){const e=[];let D,t;for(const n of u){if(t)throw new Error(`Invalid parameter: Spread parameter ${P(t)} must be last`);const r=n[0],o=n[n.length-1];let s;if(r==="<"&&o===">"&&(s=!0,D))throw new Error(`Invalid parameter: Required parameter ${P(n)} cannot come after optional parameter ${P(D)}`);if(r==="["&&o==="]"&&(s=!1,D=n),s===void 0)throw new Error(`Invalid parameter: ${P(n)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let i=n.slice(1,-1);const l=i.slice(-3)==="...";l&&(t=n,i=i.slice(0,-3));const c=i.match(mD);if(c)throw new Error(`Invalid parameter: ${P(n)}. Invalid character found ${P(c[0])}`);e.push({name:i,required:s,spread:l})}return e}a(Eu,"w$1");function hu(u,e,D,t){for(let n=0;n<e.length;n+=1){const{name:r,required:o,spread:s}=e[n],i=rD(r);if(i in u)throw new Error(`Invalid parameter: ${P(r)} is used more than once.`);const l=s?D.slice(n):D[n];if(s&&(n=e.length),o&&(!l||s&&l.length===0))return console.error(`Error: Missing required parameter ${P(r)}
|
|
22
|
+
`),t(),process.exit(1);u[i]=l}}a(hu,"b");function gD(u){return u===void 0||u!==!1}a(gD,"W$1");function ae(u,e,D,t){const n={...e.flags},r=e.version;r&&(n.version={type:Boolean,description:"Show version"});const{help:o}=e,s=gD(o);s&&!("help"in n)&&(n.help={type:Boolean,alias:"h",description:"Show help"});const i=yt(n,t,{ignore:e.ignoreArgv}),l=a(()=>{console.log(e.version)},"f");if(r&&i.flags.version===!0)return l(),process.exit(0);const c=new hD,p=s&&o?.render?o.render:C=>c.render(C),f=a(C=>{const h=dD({...e,...C?{help:C}:{},flags:n});console.log(p(h,c))},"u");if(s&&i.flags.help===!0)return f(),process.exit(0);if(e.parameters){let{parameters:C}=e,h=i._;const b=C.indexOf("--"),O=C.slice(b+1),A=Object.create(null);if(b>-1&&O.length>0){C=C.slice(0,b);const d=i._["--"];h=h.slice(0,-d.length||void 0),hu(A,Eu(C),h,f),hu(A,Eu(O),d,f)}else hu(A,Eu(C),h,f);Object.assign(i._,A)}const E={...i,showVersion:l,showHelp:f};return typeof D=="function"&&D(E),{command:u,...E}}a(ae,"x$1");function BD(u,e){const D=new Map;for(const t of e){const n=[t.options.name],{alias:r}=t.options;r&&(Array.isArray(r)?n.push(...r):n.push(r));for(const o of n){if(D.has(o))throw new Error(`Duplicate command name found: ${P(o)}`);D.set(o,t)}}return D.get(u)}a(BD,"z$1");function yD(u,e,D=process.argv.slice(2)){if(!u)throw new Error("Options is required");if("name"in u&&(!u.name||!ie(u.name)))throw new Error(`Invalid script name: ${P(u.name)}`);const t=D[0];if(u.commands&&t&&ie(t)){const n=BD(t,u.commands);if(n)return ae(n.options.name,{...n.options,parent:u},n.callback,D.slice(1))}return ae(void 0,u,e,D)}a(yD,"Z$1");var AD="2.14.4";const mu=a(u=>N.promises.access(u).then(()=>!0,()=>!1),"fsExists");let L=!0;const W=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let K=0;if(W.process&&W.process.env&&W.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:e,NO_COLOR:D,TERM:t,COLORTERM:n}=W.process.env;e||D||u==="0"?L=!1:u==="1"||u==="2"||u==="3"?L=!0:t==="dumb"?L=!1:"CI"in W.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(r=>r in W.process.env)?L=!0:L=process.stdout.isTTY,L&&(process.platform==="win32"||n&&(n==="truecolor"||n==="24bit")?K=3:t&&(t.endsWith("-256color")||t.endsWith("256"))?K=2:K=1)}let le={enabled:L,supportLevel:K};function bD(u,e,D=1){const t=`\x1B[${u}m`,n=`\x1B[${e}m`,r=new RegExp(`\\x1b\\[${e}m`,"g");return o=>le.enabled&&le.supportLevel>=D?t+(""+o).replace(r,t)+n:""+o}a(bD,"kolorist");const wD=bD(2,22),vD=/^[/.]/,$=a((u,e)=>(!m.isAbsolute(u)&&!vD.test(u)&&(u=`./${u}`),e&&!u.endsWith("/")&&(u+="/"),u),"normalizePath"),$D=a(()=>new Date().toLocaleTimeString(),"currentTime"),Du=a((...u)=>console.log(wD($D()),...u),"log"),kD=process.cwd(),gu=a(u=>$(m.relative(kD,u)),"formatPath"),xD=a(async u=>{const e=m.join(u,"package.json");if(!await mu(e))throw new Error(`package.json not found at: ${e}`);const t=await N.promises.readFile(e,"utf8");let n;try{n=JSON.parse(t)}catch(r){throw new Error(`Failed to parse ${gu(e)}: ${r.message}`)}return{packageJson:n,packageJsonPath:e}},"readPackageJson"),jD=a(u=>{let e=!1;if(u.includes("=")){const[D,t]=u.split("=");u=t,e=D==="bin"||D==="binary"}return{type:"legacy",source:"cli",outputPath:$(u),isExecutable:e}},"parseCliInputFlag"),OD=a(({imports:u},e)=>{const D={};if(u)for(const t in u){if(t.startsWith("#"))continue;const n=u[t];typeof n=="string"&&(D[t]=m.join(e,n))}return D},"getAliases"),TD=a(u=>{const{publishConfig:e}=u;if(!e)return;const D=["bin","main","exports","types","module"];for(const t of D)e[t]&&(u[t]=e[t])},"applyPublishConfig"),_=a(u=>{if(u.endsWith(".mjs"))return"module";if(u.endsWith(".cjs"))return"commonjs";if(u.endsWith(".d.ts")||u.endsWith(".d.cts")||u.endsWith(".d.mts"))return"types"},"getFileType"),SD=a(u=>u[0]===".","isPath"),ce=a(u=>u.slice(1).filter(e=>typeof e=="string"&&e[0]!=="."),"getConditions"),Bu=a((u,e,D=["exports"])=>u?typeof u=="string"?[{source:{type:"package.json",path:[...D]},type:"exportmap",conditions:[],format:_(u)||e,outputPath:$(u)}]:Array.isArray(u)?u.flatMap((t,n)=>{const r=[...D,n];return typeof t=="string"?SD(t)?{source:{type:"package.json",path:[...r]},type:"exportmap",conditions:ce(r),format:_(t)||e,outputPath:$(t)}:[]:Bu(t,e,r)}):Object.entries(u).flatMap(([t,n])=>{const r=[...D,t];if(typeof n=="string"){const o={type:"exportmap",source:{type:"package.json",path:r},outputPath:$(n),conditions:ce(r)};if(t==="require")return{...o,format:"commonjs"};if(t==="import")return{...o,format:_(n)||e};if(t==="types")return{...o,format:"types"};if(t==="node")return{...o,format:_(n)||e};if(t==="default")return{...o,format:_(n)||e}}return Bu(n,e,r)}):[],"parseExportsMap"),PD=a((u,e)=>{const D=[],t=u.main;t&&D.push({source:{type:"package.json",path:["main"]},type:"legacy",format:_(t)??e,outputPath:$(t)});const n=u.module;n&&D.push({source:{type:"package.json",path:["module"]},type:"legacy",format:"module",outputPath:$(n)});const r=u.types;r&&D.push({source:{type:"package.json",path:["types"]},type:"legacy",format:"types",outputPath:$(r)});const{bin:o}=u;if(o)if(typeof o=="string")D.push({source:{type:"package.json",path:["bin"]},type:"binary",format:_(o)??e,outputPath:$(o)});else for(const[s,i]of Object.entries(o))D.push({source:{type:"package.json",path:["bin",s]},type:"binary",format:_(i)??e,outputPath:$(i)});if(u.exports){const s=Bu(u.exports,e);for(const i of s)D.push(i)}return D},"getPackageExports"),_D=a(async(u,e)=>{for(const D of e){const t=u+D;if(await mu(t))return{srcExtension:D,sourcePath:t}}},"tryExtensions"),yu={".d.ts":[".d.ts",".d.mts",".d.cts",".ts",".tsx",".mts",".cts"],".d.mts":[".d.mts",".d.ts",".d.cts",".ts",".tsx",".mts",".cts"],".d.cts":[".d.cts",".d.ts",".d.mts",".ts",".tsx",".mts",".cts"],".js":[".js",".ts",".tsx",".mts",".cts"],".mjs":[".mjs",".js",".cjs",".mts",".cts",".ts",".tsx"],".cjs":[".cjs",".js",".mjs",".mts",".cts",".ts",".tsx"]},fe=Object.keys(yu),ND=a(async(u,e)=>{const{outputPath:D}=u,t=fe.find(o=>D.endsWith(o));if(!t)return{error:`Unsupported extension (must be ${fe.join("|")})`,exportEntry:u};const n=D.slice(e.dist.length,-t.length),r=await _D(lu.join(e.srcResolved,n),yu[t]);return r?{exportEntry:u,distExtension:t,srcdist:e,...r}:{error:`Source file not found: ${lu.join(e.src,n)}(${yu[t].join("|")})`,exportEntry:u}},"getSourcePath"),ID=a(async(u,e,D)=>{TD(e);const t=e.type??"commonjs",n=PD(e,t);D.length>0&&n.push(...D.map(o=>({...o,format:_(o.outputPath)??t})));const r=new Map;return await Promise.all(n.map(o=>{const s=u.find(({dist:l})=>o.outputPath.startsWith(l));if(!s)return{exportEntry:o,error:"Ignoring file outside of dist directories"};const i=r.get(o.outputPath);if(i){if(i.format!==o.format)throw new Error(`Conflicting export types "${i.format}" & "${o.format}" found for ${o.outputPath}`)}else r.set(o.outputPath,o);return ND(o,s)}))},"getEntryPoints"),RD=["peerDependencies","dependencies","optionalDependencies"],Au="@types/",Fe=a((u,e,D=!1)=>{const t=[],{devDependencies:n}=u;for(const r of RD){const o=u[r];if(!o)continue;const s=Object.keys(o);for(const i of s)if(!(i in e))if(i.startsWith(Au)){if(D){let l=i.slice(Au.length);l.includes("__")&&(l=`@${l.replace("__","/")}`),t.push(l)}}else{if(n&&D){const l=Au+i.replace("@","").replace("/","__");n[l]&&!(l in o)&&console.warn(`Recommendation: "${l}" is externalized because "${i}" is in "${r}". Place "${l}" in "${r}" as well so users don't have missing types.`)}t.push(i)}}return t.flatMap(r=>[r,new RegExp(`^${r}/`)])},"getExternalDependencies"),G=Symbol("entry"),LD=a(u=>{const e=Xe(/\.([cm]?[jt]s|[jt]sx)$/);return{name:"esbuild-transform",transform:a(async(D,t)=>{if(!e(t))return null;const n=await Uu(D,{...u,supported:{"import-meta":!0},loader:"default",sourcefile:t.replace(/\.[cm]ts/,".ts")});return{code:n.code,map:n.map||null}},"transform")}},"esbuildTransform"),MD=a(u=>{if(u==="es")return"esm";if(u==="cjs"||u==="iife")return u},"getEsbuildFormat"),WD=a(u=>({name:"esbuild-minify",renderChunk:a(async(e,D,t)=>{const n=await Uu(e,{...u,format:MD(t.format),minify:!0,keepNames:!0});return{code:n.code,map:n.map||null}},"renderChunk")}),"esbuildMinify"),bu=a((u,e)=>u[0]-e[0]||u[1]-e[1]||u[2]-e[2],"compareSemver"),pe=a(({target:u})=>{const e=u.some(D=>{if(D=D.trim(),!D.startsWith("node"))return;const t=D.slice(4).split(".").map(Number),n=[t[0],t[1]??0,t[2]??0];return!(bu(n,[12,20,0])>=0&&bu(n,[13,0,0])<0||bu(n,[14,13,1])>=0)});return{name:"externalize-node-builtins",resolveId:a(D=>{const t=D.startsWith("node:");if(e&&t&&(D=D.slice(5)),et.includes(D)||t)return{id:D,external:!0}},"resolveId")}},"externalizeNodeBuiltins"),UD=a(u=>{const e=u.filter(t=>t.exportEntry.type==="binary");if(e.length===0)return{name:"patch-binary"};let D;return{name:"patch-binary",options:a(()=>{D=new Set(e.flatMap(t=>t.inputNames))},"options"),renderChunk:a((t,n,r)=>{if(!n.isEntry||!n.facadeModuleId||!D.has(n.name))return;const o=new cu(t);return o.prepend(`#!/usr/bin/env node
|
|
23
|
+
`),{code:o.toString(),map:r.sourcemap?o.generateMap({hires:!0}):void 0}},"renderChunk"),writeBundle:a(async(t,n)=>{const r=new Set(Object.keys(n).map(o=>$(lu.join(t.dir,o))));await Promise.all(e.map(async({exportEntry:o})=>{const{outputPath:s}=o;r.has(s)&&await N.promises.chmod(s,493)}))},"writeBundle")}},"patchBinary"),Ce=a(()=>{const u=/\.(?:[mc]?js|jsx)$/;return{name:"resolve-js-to-ts",resolveId(e,D,t){return D&&u.test(e)?this.resolve(e.replace(/js(x?)$/,"ts$1"),D,t):null}}},"resolveJsToTs"),de=a(u=>u!==null&&typeof u=="object","A"),U=a((u,e)=>Object.assign(new Error(`[${u}]: ${e}`),{code:u}),"a"),Ee="ERR_INVALID_PACKAGE_CONFIG",wu="ERR_INVALID_PACKAGE_TARGET",VD="ERR_PACKAGE_PATH_NOT_EXPORTED",qD=/^\d+$/,zD=/^(\.{1,2}|node_modules)$/i,JD=/\/|\\/;var he=(u=>(u.Export="exports",u.Import="imports",u))(he||{});const vu=a((u,e,D,t,n)=>{if(e==null)return[];if(typeof e=="string"){const[r,...o]=e.split(JD);if(r===".."||o.some(s=>zD.test(s)))throw U(wu,`Invalid "${u}" target "${e}" defined in the package config`);return[n?e.replace(/\*/g,n):e]}if(Array.isArray(e))return e.flatMap(r=>vu(u,r,D,t,n));if(de(e)){for(const r of Object.keys(e)){if(qD.test(r))throw U(Ee,"Cannot contain numeric property keys");if(r==="default"||t.includes(r))return vu(u,e[r],D,t,n)}return[]}throw U(wu,`Invalid "${u}" target "${e}"`)},"f"),H="*",KD=a((u,e)=>{const D=u.indexOf(H),t=e.indexOf(H);return D===t?e.length>u.length:t>D},"m");function GD(u,e){if(!e.includes(H)&&u.hasOwnProperty(e))return[e];let D,t;for(const n of Object.keys(u))if(n.includes(H)){const[r,o,s]=n.split(H);if(s===void 0&&e.startsWith(r)&&e.endsWith(o)){const i=e.slice(r.length,-o.length||void 0);i&&(!D||KD(D,n))&&(D=n,t=i)}}return[D,t]}a(GD,"d");const HD=a(u=>Object.keys(u).reduce((e,D)=>{const t=D===""||D[0]!==".";if(e===void 0||e===t)return t;throw U(Ee,'"exports" cannot contain some keys starting with "." and some not')},void 0),"p"),ZD=/^\w+:/,YD=a((u,e,D)=>{if(!u)throw new Error('"exports" is required');e=e===""?".":`./${e}`,(typeof u=="string"||Array.isArray(u)||de(u)&&HD(u))&&(u={".":u});const[t,n]=GD(u,e),r=vu(he.Export,u[t],e,D,n);if(r.length===0)throw U(VD,e==="."?'No "exports" main defined':`Package subpath '${e}' is not defined by "exports"`);for(const o of r)if(!o.startsWith("./")&&!ZD.test(o))throw U(wu,`Invalid "exports" target "${o}" defined in the package config`);return r},"v");var QD=Object.defineProperty,F=a((u,e)=>QD(u,"name",{value:e,configurable:!0}),"o");function j(u){return u.startsWith("\\\\?\\")?u:u.replace(/\\/g,"/")}a(j,"E"),F(j,"slash");const $u=F(u=>{const e=N[u];return(D,...t)=>{const n=`${u}:${t.join(":")}`;let r=D?.get(n);return r===void 0&&(r=Reflect.apply(e,N,t),D?.set(n,r)),r}},"cacheFs"),T=$u("existsSync"),XD=$u("readFileSync"),nu=$u("statSync"),me=F((u,e,D)=>{for(;;){const t=m.posix.join(u,e);if(T(D,t))return t;const n=m.dirname(u);if(n===u)return;u=n}},"findUp"),ku=/^\.{1,2}(\/.*)?$/,xu=F(u=>{const e=j(u);return ku.test(e)?e:`./${e}`},"normalizeRelativePath");function ge(u,e=!1){const D=u.length;let t=0,n="",r=0,o=16,s=0,i=0,l=0,c=0,p=0;function f(d,B){let g=0,w=0;for(;g<d;){let k=u.charCodeAt(t);if(k>=48&&k<=57)w=w*16+k-48;else if(k>=65&&k<=70)w=w*16+k-65+10;else if(k>=97&&k<=102)w=w*16+k-97+10;else break;t++,g++}return g<d&&(w=-1),w}a(f,"_"),F(f,"scanHexDigits");function E(d){t=d,n="",r=0,o=16,p=0}a(E,"d"),F(E,"setPosition");function C(){let d=t;if(u.charCodeAt(t)===48)t++;else for(t++;t<u.length&&M(u.charCodeAt(t));)t++;if(t<u.length&&u.charCodeAt(t)===46)if(t++,t<u.length&&M(u.charCodeAt(t)))for(t++;t<u.length&&M(u.charCodeAt(t));)t++;else return p=3,u.substring(d,t);let B=t;if(t<u.length&&(u.charCodeAt(t)===69||u.charCodeAt(t)===101))if(t++,(t<u.length&&u.charCodeAt(t)===43||u.charCodeAt(t)===45)&&t++,t<u.length&&M(u.charCodeAt(t))){for(t++;t<u.length&&M(u.charCodeAt(t));)t++;B=t}else p=3;return u.substring(d,B)}a(C,"A"),F(C,"scanNumber");function h(){let d="",B=t;for(;;){if(t>=D){d+=u.substring(B,t),p=2;break}const g=u.charCodeAt(t);if(g===34){d+=u.substring(B,t),t++;break}if(g===92){if(d+=u.substring(B,t),t++,t>=D){p=2;break}switch(u.charCodeAt(t++)){case 34:d+='"';break;case 92:d+="\\";break;case 47:d+="/";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+=`
|
|
24
|
+
`;break;case 114:d+="\r";break;case 116:d+=" ";break;case 117:const w=f(4);w>=0?d+=String.fromCharCode(w):p=4;break;default:p=5}B=t;continue}if(g>=0&&g<=31)if(V(g)){d+=u.substring(B,t),p=2;break}else p=6;t++}return d}a(h,"w"),F(h,"scanString");function b(){if(n="",p=0,r=t,i=s,c=l,t>=D)return r=D,o=17;let d=u.charCodeAt(t);if(ru(d)){do t++,n+=String.fromCharCode(d),d=u.charCodeAt(t);while(ru(d));return o=15}if(V(d))return t++,n+=String.fromCharCode(d),d===13&&u.charCodeAt(t)===10&&(t++,n+=`
|
|
25
|
+
`),s++,l=t,o=14;switch(d){case 123:return t++,o=1;case 125:return t++,o=2;case 91:return t++,o=3;case 93:return t++,o=4;case 58:return t++,o=6;case 44:return t++,o=5;case 34:return t++,n=h(),o=10;case 47:const B=t-1;if(u.charCodeAt(t+1)===47){for(t+=2;t<D&&!V(u.charCodeAt(t));)t++;return n=u.substring(B,t),o=12}if(u.charCodeAt(t+1)===42){t+=2;const g=D-1;let w=!1;for(;t<g;){const k=u.charCodeAt(t);if(k===42&&u.charCodeAt(t+1)===47){t+=2,w=!0;break}t++,V(k)&&(k===13&&u.charCodeAt(t)===10&&t++,s++,l=t)}return w||(t++,p=1),n=u.substring(B,t),o=13}return n+=String.fromCharCode(d),t++,o=16;case 45:if(n+=String.fromCharCode(d),t++,t===D||!M(u.charCodeAt(t)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=C(),o=11;default:for(;t<D&&O(d);)t++,d=u.charCodeAt(t);if(r!==t){switch(n=u.substring(r,t),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(d),t++,o=16}}a(b,"y"),F(b,"scanNext");function O(d){if(ru(d)||V(d))return!1;switch(d){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}a(O,"I"),F(O,"isUnknownContentCharacter");function A(){let d;do d=b();while(d>=12&&d<=15);return d}return a(A,"L"),F(A,"scanNextNonTrivia"),{setPosition:E,getPosition:F(()=>t,"getPosition"),scan:e?A:b,getToken:F(()=>o,"getToken"),getTokenValue:F(()=>n,"getTokenValue"),getTokenOffset:F(()=>r,"getTokenOffset"),getTokenLength:F(()=>t-r,"getTokenLength"),getTokenStartLine:F(()=>i,"getTokenStartLine"),getTokenStartCharacter:F(()=>r-c,"getTokenStartCharacter"),getTokenError:F(()=>p,"getTokenError")}}a(ge,"je"),F(ge,"createScanner");function ru(u){return u===32||u===9}a(ru,"Q"),F(ru,"isWhiteSpace");function V(u){return u===10||u===13}a(V,"x"),F(V,"isLineBreak");function M(u){return u>=48&&u<=57}a(M,"U"),F(M,"isDigit");var Be;(function(u){u[u.lineFeed=10]="lineFeed",u[u.carriageReturn=13]="carriageReturn",u[u.space=32]="space",u[u._0=48]="_0",u[u._1=49]="_1",u[u._2=50]="_2",u[u._3=51]="_3",u[u._4=52]="_4",u[u._5=53]="_5",u[u._6=54]="_6",u[u._7=55]="_7",u[u._8=56]="_8",u[u._9=57]="_9",u[u.a=97]="a",u[u.b=98]="b",u[u.c=99]="c",u[u.d=100]="d",u[u.e=101]="e",u[u.f=102]="f",u[u.g=103]="g",u[u.h=104]="h",u[u.i=105]="i",u[u.j=106]="j",u[u.k=107]="k",u[u.l=108]="l",u[u.m=109]="m",u[u.n=110]="n",u[u.o=111]="o",u[u.p=112]="p",u[u.q=113]="q",u[u.r=114]="r",u[u.s=115]="s",u[u.t=116]="t",u[u.u=117]="u",u[u.v=118]="v",u[u.w=119]="w",u[u.x=120]="x",u[u.y=121]="y",u[u.z=122]="z",u[u.A=65]="A",u[u.B=66]="B",u[u.C=67]="C",u[u.D=68]="D",u[u.E=69]="E",u[u.F=70]="F",u[u.G=71]="G",u[u.H=72]="H",u[u.I=73]="I",u[u.J=74]="J",u[u.K=75]="K",u[u.L=76]="L",u[u.M=77]="M",u[u.N=78]="N",u[u.O=79]="O",u[u.P=80]="P",u[u.Q=81]="Q",u[u.R=82]="R",u[u.S=83]="S",u[u.T=84]="T",u[u.U=85]="U",u[u.V=86]="V",u[u.W=87]="W",u[u.X=88]="X",u[u.Y=89]="Y",u[u.Z=90]="Z",u[u.asterisk=42]="asterisk",u[u.backslash=92]="backslash",u[u.closeBrace=125]="closeBrace",u[u.closeBracket=93]="closeBracket",u[u.colon=58]="colon",u[u.comma=44]="comma",u[u.dot=46]="dot",u[u.doubleQuote=34]="doubleQuote",u[u.minus=45]="minus",u[u.openBrace=123]="openBrace",u[u.openBracket=91]="openBracket",u[u.plus=43]="plus",u[u.slash=47]="slash",u[u.formFeed=12]="formFeed",u[u.tab=9]="tab"})(Be||(Be={})),new Array(20).fill(0).map((u,e)=>" ".repeat(e));const q=200;new Array(q).fill(0).map((u,e)=>`
|
|
26
|
+
`+" ".repeat(e)),new Array(q).fill(0).map((u,e)=>"\r"+" ".repeat(e)),new Array(q).fill(0).map((u,e)=>`\r
|
|
27
|
+
`+" ".repeat(e)),new Array(q).fill(0).map((u,e)=>`
|
|
28
|
+
`+" ".repeat(e)),new Array(q).fill(0).map((u,e)=>"\r"+" ".repeat(e)),new Array(q).fill(0).map((u,e)=>`\r
|
|
29
|
+
`+" ".repeat(e));var ou;(function(u){u.DEFAULT={allowTrailingComma:!1}})(ou||(ou={}));function ye(u,e=[],D=ou.DEFAULT){let t=null,n=[];const r=[];function o(s){Array.isArray(n)?n.push(s):t!==null&&(n[t]=s)}return a(o,"u"),F(o,"onValue"),Ae(u,{onObjectBegin:F(()=>{const s={};o(s),r.push(n),n=s,t=null},"onObjectBegin"),onObjectProperty:F(s=>{t=s},"onObjectProperty"),onObjectEnd:F(()=>{n=r.pop()},"onObjectEnd"),onArrayBegin:F(()=>{const s=[];o(s),r.push(n),n=s,t=null},"onArrayBegin"),onArrayEnd:F(()=>{n=r.pop()},"onArrayEnd"),onLiteralValue:o,onError:F((s,i,l)=>{e.push({error:s,offset:i,length:l})},"onError")},D),n[0]}a(ye,"ye"),F(ye,"parse$1");function Ae(u,e,D=ou.DEFAULT){const t=ge(u,!1),n=[];function r(y){return y?()=>y(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}a(r,"i"),F(r,"toNoArgVisit");function o(y){return y?()=>y(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>n.slice()):()=>!0}a(o,"u"),F(o,"toNoArgVisitWithPath");function s(y){return y?v=>y(v,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}a(s,"f"),F(s,"toOneArgVisit");function i(y){return y?v=>y(v,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>n.slice()):()=>!0}a(i,"r"),F(i,"toOneArgVisitWithPath");const l=o(e.onObjectBegin),c=i(e.onObjectProperty),p=r(e.onObjectEnd),f=o(e.onArrayBegin),E=r(e.onArrayEnd),C=i(e.onLiteralValue),h=s(e.onSeparator),b=r(e.onComment),O=s(e.onError),A=D&&D.disallowComments,d=D&&D.allowTrailingComma;function B(){for(;;){const y=t.scan();switch(t.getTokenError()){case 4:g(14);break;case 5:g(15);break;case 3:g(13);break;case 1:A||g(11);break;case 2:g(12);break;case 6:g(16);break}switch(y){case 12:case 13:A?g(10):b();break;case 16:g(1);break;case 15:case 14:break;default:return y}}}a(B,"k"),F(B,"scanNext");function g(y,v=[],Wu=[]){if(O(y),v.length+Wu.length>0){let Q=t.getToken();for(;Q!==17;){if(v.indexOf(Q)!==-1){B();break}else if(Wu.indexOf(Q)!==-1)break;Q=B()}}}a(g,"p"),F(g,"handleError");function w(y){const v=t.getTokenValue();return y?C(v):(c(v),n.push(v)),B(),!0}a(w,"F"),F(w,"parseString");function k(){switch(t.getToken()){case 11:const y=t.getTokenValue();let v=Number(y);isNaN(v)&&(g(2),v=0),C(v);break;case 7:C(null);break;case 8:C(!0);break;case 9:C(!1);break;default:return!1}return B(),!0}a(k,"j"),F(k,"parseLiteral");function Ru(){return t.getToken()!==10?(g(3,[],[2,5]),!1):(w(!1),t.getToken()===6?(h(":"),B(),Y()||g(4,[],[2,5])):g(5,[],[2,5]),n.pop(),!0)}a(Ru,"a"),F(Ru,"parseProperty");function Lu(){l(),B();let y=!1;for(;t.getToken()!==2&&t.getToken()!==17;){if(t.getToken()===5){if(y||g(4,[],[]),h(","),B(),t.getToken()===2&&d)break}else y&&g(6,[],[]);Ru()||g(4,[],[2,5]),y=!0}return p(),t.getToken()!==2?g(7,[2],[]):B(),!0}a(Lu,"N"),F(Lu,"parseObject");function Mu(){f(),B();let y=!0,v=!1;for(;t.getToken()!==4&&t.getToken()!==17;){if(t.getToken()===5){if(v||g(4,[],[]),h(","),B(),t.getToken()===4&&d)break}else v&&g(6,[],[]);y?(n.push(0),y=!1):n[n.length-1]++,Y()||g(4,[],[4,5]),v=!0}return E(),y||n.pop(),t.getToken()!==4?g(8,[4],[]):B(),!0}a(Mu,"be"),F(Mu,"parseArray");function Y(){switch(t.getToken()){case 3:return Mu();case 1:return Lu();case 10:return w(!0);default:return k()}}return a(Y,"J"),F(Y,"parseValue"),B(),t.getToken()===17?D.allowEmptyContent?!0:(g(4,[],[]),!1):Y()?(t.getToken()!==17&&g(9,[],[]),!0):(g(4,[],[]),!1)}a(Ae,"Fe"),F(Ae,"visit");var be;(function(u){u[u.None=0]="None",u[u.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",u[u.UnexpectedEndOfString=2]="UnexpectedEndOfString",u[u.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",u[u.InvalidUnicode=4]="InvalidUnicode",u[u.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",u[u.InvalidCharacter=6]="InvalidCharacter"})(be||(be={}));var we;(function(u){u[u.OpenBraceToken=1]="OpenBraceToken",u[u.CloseBraceToken=2]="CloseBraceToken",u[u.OpenBracketToken=3]="OpenBracketToken",u[u.CloseBracketToken=4]="CloseBracketToken",u[u.CommaToken=5]="CommaToken",u[u.ColonToken=6]="ColonToken",u[u.NullKeyword=7]="NullKeyword",u[u.TrueKeyword=8]="TrueKeyword",u[u.FalseKeyword=9]="FalseKeyword",u[u.StringLiteral=10]="StringLiteral",u[u.NumericLiteral=11]="NumericLiteral",u[u.LineCommentTrivia=12]="LineCommentTrivia",u[u.BlockCommentTrivia=13]="BlockCommentTrivia",u[u.LineBreakTrivia=14]="LineBreakTrivia",u[u.Trivia=15]="Trivia",u[u.Unknown=16]="Unknown",u[u.EOF=17]="EOF"})(we||(we={}));const un=ye;var ve;(function(u){u[u.InvalidSymbol=1]="InvalidSymbol",u[u.InvalidNumberFormat=2]="InvalidNumberFormat",u[u.PropertyNameExpected=3]="PropertyNameExpected",u[u.ValueExpected=4]="ValueExpected",u[u.ColonExpected=5]="ColonExpected",u[u.CommaExpected=6]="CommaExpected",u[u.CloseBraceExpected=7]="CloseBraceExpected",u[u.CloseBracketExpected=8]="CloseBracketExpected",u[u.EndOfFileExpected=9]="EndOfFileExpected",u[u.InvalidCommentToken=10]="InvalidCommentToken",u[u.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",u[u.UnexpectedEndOfString=12]="UnexpectedEndOfString",u[u.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",u[u.InvalidUnicode=14]="InvalidUnicode",u[u.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",u[u.InvalidCharacter=16]="InvalidCharacter"})(ve||(ve={}));const $e=F((u,e)=>un(XD(e,u,"utf8")),"readJsonc"),ju=Symbol("implicitBaseUrl"),I="${configDir}",en=F(()=>{const{findPnpApi:u}=ut;return u&&u(process.cwd())},"getPnpApi"),Ou=F((u,e,D,t)=>{const n=`resolveFromPackageJsonPath:${u}:${e}:${D}`;if(t!=null&&t.has(n))return t.get(n);const r=$e(u,t);if(!r)return;let o=e||"tsconfig.json";if(!D&&r.exports)try{const[s]=YD(r.exports,e,["require","types"]);o=s}catch{return!1}else!e&&r.tsconfig&&(o=r.tsconfig);return o=m.join(u,"..",o),t?.set(n,o),o},"resolveFromPackageJsonPath"),Tu="package.json",Su="tsconfig.json",tn=F((u,e,D)=>{let t=u;if(u===".."&&(t=m.join(t,Su)),u[0]==="."&&(t=m.resolve(e,t)),m.isAbsolute(t)){if(T(D,t)){if(nu(D,t).isFile())return t}else if(!t.endsWith(".json")){const E=`${t}.json`;if(T(D,E))return E}return}const[n,...r]=u.split("/"),o=n[0]==="@"?`${n}/${r.shift()}`:n,s=r.join("/"),i=en();if(i){const{resolveRequest:E}=i;try{if(o===u){const C=E(m.join(o,Tu),e);if(C){const h=Ou(C,s,!1,D);if(h&&T(D,h))return h}}else{let C;try{C=E(u,e,{extensions:[".json"]})}catch{C=E(m.join(u,Su),e)}if(C)return C}}catch{}}const l=me(m.resolve(e),m.join("node_modules",o),D);if(!l||!nu(D,l).isDirectory())return;const c=m.join(l,Tu);if(T(D,c)){const E=Ou(c,s,!1,D);if(E===!1)return;if(E&&T(D,E)&&nu(D,E).isFile())return E}const p=m.join(l,s),f=p.endsWith(".json");if(!f){const E=`${p}.json`;if(T(D,E))return E}if(T(D,p)){if(nu(D,p).isDirectory()){const E=m.join(p,Tu);if(T(D,E)){const h=Ou(E,"",!0,D);if(h&&T(D,h))return h}const C=m.join(p,Su);if(T(D,C))return C}else if(f)return p}},"resolveExtendsPath"),Pu=F((u,e)=>xu(m.relative(u,e)),"pathRelative"),ke=["files","include","exclude"],Dn=F((u,e,D,t)=>{const n=tn(u,e,t);if(!n)throw new Error(`File '${u}' not found.`);if(D.has(n))throw new Error(`Circularity detected while resolving configuration: ${n}`);D.add(n);const r=m.dirname(n),o=xe(n,t,D);delete o.references;const{compilerOptions:s}=o;if(s){const{baseUrl:i}=s;i&&!i.startsWith(I)&&(s.baseUrl=j(m.relative(e,m.join(r,i)))||"./");let{outDir:l}=s;l&&(l.startsWith(I)||(l=m.relative(e,m.join(r,l))),s.outDir=j(l)||"./")}for(const i of ke){const l=o[i];l&&(o[i]=l.map(c=>c.startsWith(I)?c:j(m.relative(e,m.join(r,c)))))}return o},"resolveExtends"),nn=["outDir","declarationDir"],xe=F((u,e,D=new Set)=>{let t;try{t=$e(u,e)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${u}`)}if(typeof t!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${u}`);const n=m.dirname(u);if(t.compilerOptions){const{compilerOptions:r}=t;r.paths&&!r.baseUrl&&(r[ju]=n)}if(t.extends){const r=Array.isArray(t.extends)?t.extends:[t.extends];delete t.extends;for(const o of r.reverse()){const s=Dn(o,n,new Set(D),e),i={...s,...t,compilerOptions:{...s.compilerOptions,...t.compilerOptions}};s.watchOptions&&(i.watchOptions={...s.watchOptions,...t.watchOptions}),t=i}}if(t.compilerOptions){const{compilerOptions:r}=t,o=["baseUrl","rootDir"];for(const s of o){const i=r[s];if(i&&!i.startsWith(I)){const l=m.resolve(n,i),c=Pu(n,l);r[s]=c}}for(const s of nn){let i=r[s];i&&(Array.isArray(t.exclude)||(t.exclude=[]),t.exclude.includes(i)||t.exclude.push(i),i.startsWith(I)||(i=xu(i)),r[s]=i)}}else t.compilerOptions={};if(t.include?(t.include=t.include.map(j),t.files&&delete t.files):t.files&&(t.files=t.files.map(r=>r.startsWith(I)?r:xu(r))),t.watchOptions){const{watchOptions:r}=t;r.excludeDirectories&&(r.excludeDirectories=r.excludeDirectories.map(o=>j(m.resolve(n,o))))}return t},"_parseTsconfig"),su=F((u,e)=>{if(u.startsWith(I))return j(m.join(e,u.slice(I.length)))},"interpolateConfigDir"),rn=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],on=F(u=>{if(u.strict){const e=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const D of e)u[D]===void 0&&(u[D]=!0)}if(u.target){let e=u.target.toLowerCase();e==="es2015"&&(e="es6"),u.target=e,e==="esnext"&&(u.module!=null||(u.module="es6"),u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0)),(e==="es6"||e==="es2016"||e==="es2017"||e==="es2018"||e==="es2019"||e==="es2020"||e==="es2021"||e==="es2022"||e==="es2023"||e==="es2024")&&(u.module!=null||(u.module="es6")),(e==="es2022"||e==="es2023"||e==="es2024")&&(u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0))}if(u.module){let e=u.module.toLowerCase();e==="es2015"&&(e="es6"),u.module=e,(e==="es6"||e==="es2020"||e==="es2022"||e==="esnext"||e==="none"||e==="system"||e==="umd"||e==="amd")&&(u.moduleResolution!=null||(u.moduleResolution="classic")),e==="system"&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),(e==="node16"||e==="nodenext"||e==="preserve")&&(u.esModuleInterop!=null||(u.esModuleInterop=!0),u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),(e==="node16"||e==="nodenext")&&(u.moduleDetection!=null||(u.moduleDetection="force"),u.useDefineForClassFields!=null||(u.useDefineForClassFields=!0)),e==="node16"&&(u.target!=null||(u.target="es2022"),u.moduleResolution!=null||(u.moduleResolution="node16")),e==="nodenext"&&(u.target!=null||(u.target="esnext"),u.moduleResolution!=null||(u.moduleResolution="nodenext")),e==="preserve"&&(u.moduleResolution!=null||(u.moduleResolution="bundler"))}if(u.moduleResolution){let e=u.moduleResolution.toLowerCase();e==="node"&&(e="node10"),u.moduleResolution=e,(e==="node16"||e==="nodenext"||e==="bundler")&&(u.resolvePackageJsonExports!=null||(u.resolvePackageJsonExports=!0),u.resolvePackageJsonImports!=null||(u.resolvePackageJsonImports=!0)),e==="bundler"&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0),u.resolveJsonModule!=null||(u.resolveJsonModule=!0))}u.esModuleInterop&&(u.allowSyntheticDefaultImports!=null||(u.allowSyntheticDefaultImports=!0)),u.verbatimModuleSyntax&&(u.isolatedModules!=null||(u.isolatedModules=!0),u.preserveConstEnums!=null||(u.preserveConstEnums=!0)),u.isolatedModules&&(u.preserveConstEnums!=null||(u.preserveConstEnums=!0))},"normalizeCompilerOptions"),je=F((u,e=new Map)=>{const D=m.resolve(u),t=xe(D,e),n=m.dirname(D),{compilerOptions:r}=t;if(r){for(const s of rn){const i=r[s];if(i){const l=su(i,n);r[s]=l?Pu(n,l):i}}for(const s of["rootDirs","typeRoots"]){const i=r[s];i&&(r[s]=i.map(l=>{const c=su(l,n);return c?Pu(n,c):l}))}const{paths:o}=r;if(o)for(const s of Object.keys(o))o[s]=o[s].map(i=>{var l;return(l=su(i,n))!=null?l:i});on(r)}for(const o of ke){const s=t[o];s&&(t[o]=s.map(i=>{var l;return(l=su(i,n))!=null?l:i}))}return t},"parseTsconfig"),sn=F((u=process.cwd(),e="tsconfig.json",D=new Map)=>{const t=me(j(u),e,D);if(!t)return null;const n=je(t,D);return{path:t,config:n}},"getTsconfig"),an=/\*/g,Oe=F((u,e)=>{const D=u.match(an);if(D&&D.length>1)throw new Error(e)},"assertStarCount"),ln=F(u=>{if(u.includes("*")){const[e,D]=u.split("*");return{prefix:e,suffix:D}}return u},"parsePattern"),cn=F(({prefix:u,suffix:e},D)=>D.startsWith(u)&&D.endsWith(e),"isPatternMatch"),fn=F((u,e,D)=>Object.entries(u).map(([t,n])=>(Oe(t,`Pattern '${t}' can have at most one '*' character.`),{pattern:ln(t),substitutions:n.map(r=>{if(Oe(r,`Substitution '${r}' in pattern '${t}' can have at most one '*' character.`),!e&&!ku.test(r))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return m.resolve(D,r)})})),"parsePaths"),Fn=F(u=>{const{compilerOptions:e}=u.config;if(!e)return null;const{baseUrl:D,paths:t}=e;if(!D&&!t)return null;const n=ju in e&&e[ju],r=m.resolve(m.dirname(u.path),D||n||"."),o=t?fn(t,D,r):[];return s=>{if(ku.test(s))return[];const i=[];for(const f of o){if(f.pattern===s)return f.substitutions.map(j);typeof f.pattern!="string"&&i.push(f)}let l,c=-1;for(const f of i)cn(f.pattern,s)&&f.pattern.prefix.length>c&&(c=f.pattern.prefix.length,l=f);if(!l)return D?[j(m.join(r,s))]:[];const p=s.slice(l.pattern.prefix.length,s.length-l.pattern.suffix.length);return l.substitutions.map(f=>j(f.replace("*",p)))}},"createPathsMatcher"),Te=F(u=>{let e="";for(let D=0;D<u.length;D+=1){const t=u[D],n=t.toUpperCase();e+=t===n?t.toLowerCase():n}return e},"s"),pn=65,Cn=97,dn=F(()=>Math.floor(Math.random()*26),"m"),En=F(u=>Array.from({length:u},()=>String.fromCodePoint(dn()+(Math.random()>.5?pn:Cn))).join(""),"S"),hn=F((u=tt)=>{const e=process.execPath;if(u.existsSync(e))return!u.existsSync(Te(e));const D=`/${En(10)}`;u.writeFileSync(D,"");const t=!u.existsSync(Te(D));return u.unlinkSync(D),t},"l"),{join:iu}=m.posix,_u={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},mn=F(u=>{const e=[..._u.ts],D=[..._u.cts],t=[..._u.mts];return u!=null&&u.allowJs&&(e.push(".js",".jsx"),D.push(".cjs"),t.push(".mjs")),[...e,...D,...t]},"getSupportedExtensions"),gn=F(u=>{const e=[];if(!u)return e;const{outDir:D,declarationDir:t}=u;return D&&e.push(D),t&&e.push(t),e},"getDefaultExcludeSpec"),Se=F(u=>u.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),Bn=["node_modules","bower_components","jspm_packages"],Nu=`(?!(${Bn.join("|")})(/|$))`,yn=/(?:^|\/)[^.*?]+$/,Pe="**/*",au="[^/]",Iu="[^./]",_e=process.platform==="win32";F(({config:u,path:e},D=hn())=>{if("extends"in u)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!m.isAbsolute(e))throw new Error("The tsconfig path must be absolute");_e&&(e=j(e));const t=m.dirname(e),{files:n,include:r,exclude:o,compilerOptions:s}=u,i=n?.map(C=>iu(t,C)),l=mn(s),c=D?"":"i",p=(o||gn(s)).map(C=>{const h=iu(t,C),b=Se(h).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${au}*`).replaceAll(String.raw`\?`,au);return new RegExp(`^${b}($|/)`,c)}),f=n||r?r:[Pe],E=f?f.map(C=>{let h=iu(t,C);yn.test(h)&&(h=iu(h,Pe));const b=Se(h).replaceAll(String.raw`/\*\*`,`(/${Nu}${Iu}${au}*)*?`).replaceAll(/(\/)?\\\*/g,(O,A)=>{const d=`(${Iu}|(\\.(?!min\\.js$))?)*`;return A?`/${Nu}${Iu}${d}`:d}).replaceAll(/(\/)?\\\?/g,(O,A)=>{const d=au;return A?`/${Nu}${d}`:d});return new RegExp(`^${b}$`,c)}):void 0;return C=>{if(!m.isAbsolute(C))throw new Error("filePath must be absolute");if(_e&&(C=j(C)),i!=null&&i.includes(C)||!(!l.some(h=>C.endsWith(h))||p.some(h=>h.test(C)))&&E&&E.some(h=>h.test(C)))return u}},"createFilesMatcher");const Ne="resolve-tsconfig-paths",An=a(u=>u[0]===".","isRelative"),bn=a(u=>u[0]==="/"||/^[\s\S]:/.test(u),"isAbsolute"),Ie=a(u=>{const e=Fn(u);return e?{name:Ne,async resolveId(D,t,n){if(!t||An(D)||bn(D)||D.startsWith("\0"))return null;const r=e(D);for(const o of r){const s=await this.resolve(o,t,{skipSelf:!0,...n});if(s)return s}return null}}:{name:Ne}},"resolveTsconfigPaths"),Re=/^#!.*/,wn=a(()=>({name:"strip-hashbang",transform:a(u=>{if(!Re.test(u))return null;const e=new cu(u);return e.replace(Re,""),{code:e.toString(),map:e.generateMap({hires:!0})}},"transform")}),"stripHashbang");class vn{static{a(this,"WalkerBase")}constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(e=>this.replacement=e,"replace")}}replace(e,D,t,n){e&&D&&(t!=null?e[D][t]=n:e[D]=n)}remove(e,D,t){e&&D&&(t!=null?e[D].splice(t,1):delete e[D])}}class $n extends vn{static{a(this,"SyncWalker")}constructor(e,D){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:a(()=>this.should_skip=!0,"skip"),remove:a(()=>this.should_remove=!0,"remove"),replace:a(t=>this.replacement=t,"replace")},this.enter=e,this.leave=D}visit(e,D,t,n){if(e){if(this.enter){const o=this.should_skip,s=this.should_remove,i=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,D,t,n),this.replacement&&(e=this.replacement,this.replace(D,t,n,e)),this.should_remove&&this.remove(D,t,n);const l=this.should_skip,c=this.should_remove;if(this.should_skip=o,this.should_remove=s,this.replacement=i,l)return e;if(c)return null}let r;for(r in e){const o=e[r];if(o&&typeof o=="object")if(Array.isArray(o)){const s=o;for(let i=0;i<s.length;i+=1){const l=s[i];Le(l)&&(this.visit(l,e,r,i)||i--)}}else Le(o)&&this.visit(o,e,r,null)}if(this.leave){const o=this.replacement,s=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,D,t,n),this.replacement&&(e=this.replacement,this.replace(D,t,n,e)),this.should_remove&&this.remove(D,t,n);const i=this.should_remove;if(this.replacement=o,this.should_remove=s,i)return null}}return e}}function Le(u){return u!==null&&typeof u=="object"&&"type"in u&&typeof u.type=="string"}a(Le,"isNode");function kn(u,{enter:e,leave:D}){return new $n(e,D).visit(u,null)}a(kn,"walk");const xn=a(()=>{const u='import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);';return{name:"esmInjectCreateRequire",renderChunk(e,D,t){if(t.format!=="es"||!/\brequire\b/.test(e))return null;const n=this.parse(e);let r=Dt(n,"scope"),o=!1;if(kn(n,{enter(i,l){i.scope&&(r=i.scope),!(i.type!=="Identifier"||i.name!=="require")&&(l?.type==="Property"&&l.key===i&&!l.compute||r.contains("require")||(o=!0,this.skip()))},leave:a(i=>{i.scope&&(r=r.parent)},"leave")}),!o)return null;const s=new cu(e);return s.prepend(u),{code:s.toString(),map:s.generateMap({hires:!0})}}}},"esmInjectCreateRequire"),jn=a((u,e,D,t)=>{const n=Object.fromEntries(u.env.map(({key:o,value:s})=>[`process.env.${o}`,JSON.stringify(s)])),r={target:u.target,tsconfigRaw:t?.config,define:n};return{input:{},preserveEntrySignatures:"strict",plugins:[pe(u),...t?[Ie(t)]:[],Ce(),Ye({entries:e}),Ge({extensions:[".mjs",".js",".ts",".jsx",".tsx",".json"],exportConditions:u.exportCondition}),wn(),Ze(),LD(r),He({ignoreDynamicRequires:!0,extensions:[".js",".ts",".jsx",".tsx"],transformMixedEsModules:!0}),Qe({warnOnError:!0}),xn(),...u.minify?[WD(r)]:[],UD(D)],output:[],external:[]}},"getPkgConfig"),On=a(async(u,e)=>{const[D,t]=await Promise.all([import("./rollup-plugin-dts-DuaETUxB.mjs"),import("./local-typescript-loader-CSvrvK-x.mjs")]);return{input:{},preserveEntrySignatures:"strict",plugins:[pe(u),...e?[Ie(e)]:[],Ce(),D.default({respectExternal:!0,compilerOptions:{composite:!1,preserveSymlinks:!1,module:t.default.ModuleKind.Preserve,moduleResolution:t.default.ModuleResolutionKind.Bundler},tsconfig:e?.path})],output:[],external:[]}},"getDtsConfig"),Tn=a(u=>{if(u.length===0)return"";const e=u.map(r=>r.split("/")),D=e[0],t=Math.min(...e.map(r=>r.length)),n=[];for(let r=0;r<t;r+=1){const o=D[r];if(e.every(s=>s[r]===o))n.push(o);else break}return n.length===0?"/":n.join("/")||"/"},"getCommonPath"),Sn=a(async(u,e,D,t,n,r)=>{const o=$(Tn(u.map(({dist:i})=>i)),!0);for(const i of u)i.distPrefix=i.dist.slice(o.length);const s=Object.create(null);for(const i of e){const{sourcePath:l,srcdist:c,srcExtension:p,distExtension:f,exportEntry:E}=i,C=c.distPrefix+l.slice(c.srcResolved.length,-p.length);if(i.inputNames=[C],E.format==="types"){let A=s.dts;A||(A=await On(D,r),A.external=Fe(n,t,!0),s.dts=A),A.input[C]||(A.input[C]=l);const d=A.output,B=`${c.distPrefix}-${f}`;if(d[B])d[B][G].inputNames.push(C);else{const g={dir:o,entryFileNames:`[name]${f}`,chunkFileNames:`${c.distPrefix}[name]-[hash]${f}`,exports:"auto",format:"esm",[G]:i};d.push(g),d[B]=g}continue}let h=s.pkg;h||(h=jn(D,t,e,r),h.external=Fe(n,t),s.pkg=h),h.input[C]||(h.input[C]=l);const b=h.output,O=`${E.format}-${c.distPrefix}-${f}`;if(b[O])b[O][G].inputNames.push(C);else{const A={dir:o,exports:"auto",format:E.format,sourcemap:D.sourcemap,entryFileNames:`[name]${f}`,chunkFileNames:`${c.distPrefix}[name]-[hash]${f}`,[G]:i};b.push(A),b[O]=A}}return Object.values(s)},"getRollupConfigs"),Pn=a(u=>{if(!u)return sn();const e=m.resolve(u),D=je(e);return{path:e,config:D}},"getTsconfig"),_n=a(async u=>{await mu(u)&&await N.promises.rm(u,{recursive:!0,force:!0})},"cleanDist"),Nn=a(u=>({name:"filter-unnecessary-outputs",generateBundle:a((e,D)=>{const t=Object.keys(D).filter(o=>D[o].type==="chunk"),n=[];for(const o of t){const s=D[o];s.isEntry&&u.includes(s.name)&&n.push(o)}const r=new Set;for(;n.length>0;){const o=n.shift(),s=D[o];if(!(!s||r.has(o))){r.add(o);for(const i of s.dynamicImports)n.push(i)}}for(const o of t)r.has(o)||delete D[o]},"generateBundle")}),"filterUnnecessaryOutputs"),{stringify:Me}=JSON,S=yD({name:"pkgroll",version:AD,flags:{input:{type:[jD],alias:"i",description:"Dist paths for source files to bundle (Only use if you cannot use package.json entries)"},src:{type:String,description:"Source directory (Deprecated, use `srcdist` instead)",default:"./src"},dist:{type:String,description:"Distribution directory (Deprecated, use `srcdist` instead)",default:"./dist"},srcdist:{type:[String],description:"Source and distribution folder pairs (eg. default `src:dist`)"},minify:{type:Boolean,description:"Minify output",alias:"m",default:!1},target:{type:[String],default:[`node${process.versions.node}`],description:"Environments to support. `target` in tsconfig.json is automatically added. Defaults to the current Node.js version.",alias:"t"},tsconfig:{type:String,description:"Custom tsconfig.json file path",alias:"p"},watch:{type:Boolean,description:"Watch mode",alias:"w",default:!1},env:{type:[u=>{const[e,D]=u.split("=",2);return{key:e,value:D}}],description:"Compile-time environment variables (eg. --env.NODE_ENV=production)"},exportCondition:{type:[String],description:"Export conditions for resolving dependency export and import maps (eg. --export-condition=node)"},sourcemap:{type:a(u=>{if(u==="")return!0;if(u==="inline")return u;throw new Error(`Invalid sourcemap option ${Me(u)}`)},"type"),description:"Sourcemap generation. Provide `inline` option for inline sourcemap (eg. --sourcemap, --sourcemap=inline)"},cleanDist:{type:Boolean,description:"Clean dist before bundling",default:!1}},help:{description:"Minimalistic package bundler",render:a((u,e)=>(e.flagOperator=D=>D.name==="env"?".key=":" ",e.render(u)),"render")}}),We=process.cwd(),Z=[];if(S.flags.srcdist.length>0)for(const u of S.flags.srcdist){const[e,D]=u.split(":",2);if(!e||!D)throw new Error(`Invalid src:dist pair ${Me(u)}. Expected format: src:dist`);Z.push({src:$(e,!0),srcResolved:$(N.realpathSync.native(e),!0),dist:$(D,!0)})}else Z.push({src:$(S.flags.src,!0),srcResolved:$(N.realpathSync.native(S.flags.src),!0),dist:$(S.flags.dist,!0)});const Ue=Pn(S.flags.tsconfig),Ve=Ue?.config.compilerOptions?.target;Ve&&S.flags.target.push(Ve),(async()=>{const{packageJson:u}=await xD(We),e=await ID(Z,u,S.flags.input);for(const n of e)"error"in n&&console.warn("Warning:",n.error);const D=e.filter(n=>!("error"in n));if(D.length===0)throw new Error("No entry points found");const t=await Sn(Z,D,S.flags,OD(u,We),u,Ue);S.flags.cleanDist&&await Promise.all(Z.map(({dist:n})=>_n(n))),S.flags.watch?(Du("Watch initialized"),t.map(async n=>{Je(n).on("event",async o=>{if(o.code==="BUNDLE_START"){const s=Array.isArray(o.input)?o.input:Object.values(o.input);Du("Building",...s.map(gu))}if(o.code==="BUNDLE_END"){await Promise.all(n.output.map(i=>o.result.write(i)));const s=Array.isArray(o.input)?o.input:Object.values(o.input);Du("Built",...s.map(gu))}o.code==="ERROR"&&Du("Error:",o.error.message)})})):await Promise.all(t.map(async n=>{const r=await Ke(n);return Promise.all(n.output.map(o=>{const s=o[G].inputNames;return o.plugins=[Nn(s)],r.write(o)}))}))})().catch(u=>{console.error(u),process.exit(1)});
|