pkgroll 1.1.0 → 1.1.1
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.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var xD=require("fs"),kD=require("tty"),Bu=require("rollup"),SD=require("path"),TD=require("@rollup/plugin-node-resolve"),ND=require("@rollup/plugin-commonjs"),ID=require("@rollup/plugin-json"),MD=require("@rollup/plugin-alias"),RD=require("@rollup/plugin-replace"),LD=require("@rollup/plugin-inject"),qD=require("@rollup/pluginutils"),bu=require("esbuild"),WD=require("module"),UD=require("magic-string");function O(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var P=O(xD),VD=O(kD),x=O(SD),zD=O(TD),GD=O(ND),ZD=O(ID),JD=O(MD),yu=O(RD),YD=O(LD),HD=O(UD);function KD(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var eu={},tu=Object.defineProperty,QD=Object.getOwnPropertyDescriptor,XD=Object.getOwnPropertyNames,ue=Object.prototype.hasOwnProperty,De=u=>tu(u,"__esModule",{value:!0}),ee=(u,D)=>{for(var e in D)tu(u,e,{get:D[e],enumerable:!0})},te=(u,D,e,t)=>{if(D&&typeof D=="object"||typeof D=="function")for(let r of XD(D))!ue.call(u,r)&&(e||r!=="default")&&tu(u,r,{get:()=>D[r],enumerable:!(t=QD(D,r))||t.enumerable});return u},re=(u=>(D,e)=>u&&u.get(D)||(e=te(De({}),D,1),u&&u.set(D,e),e))(typeof WeakMap!="undefined"?new WeakMap:0),Au={};ee(Au,{default:()=>ge});var vu=/-(\w)/g,wu=u=>u.replace(vu,(D,e)=>e.toUpperCase()),$u=/\B([A-Z])/g,ne=u=>u.replace($u,"-$1").toLowerCase(),{stringify:L}=JSON,{hasOwnProperty:oe}=Object.prototype,J=(u,D)=>oe.call(u,D),ae=/^--?/,ie=/[.:=]/,se=u=>{let D=u.replace(ae,""),e,t=D.match(ie);if(t!=null&&t.index){let r=t.index;e=D.slice(r+1),D=D.slice(0,r)}return{flagName:D,flagValue:e}},le=/[\s.:=]/,Fe=(u,D)=>{let e=`Invalid flag name ${L(D)}:`;if(D.length===0)throw new Error(`${e} flag name cannot be empty}`);if(D.length===1)throw new Error(`${e} single characters are reserved for aliases`);let t=D.match(le);if(t)throw new Error(`${e} flag name cannot contain the character ${L(t==null?void 0:t[0])}`);let r;if(vu.test(D)?r=wu(D):$u.test(D)&&(r=ne(D)),r&&J(u,r))throw new Error(`${e} collides with flag ${L(r)}`)};function ce(u){let D=new Map;for(let e in u){if(!J(u,e))continue;Fe(u,e);let t=u[e];if(t&&typeof t=="object"){let{alias:r}=t;if(typeof r=="string"){if(r.length===0)throw new Error(`Invalid flag alias ${L(e)}: flag alias cannot be empty`);if(r.length>1)throw new Error(`Invalid flag alias ${L(e)}: flag aliases can only be a single-character`);if(D.has(r))throw new Error(`Flag collision: Alias "${r}" is already used`);D.set(r,{name:e,schema:t})}}}return D}var Ce=u=>!u||typeof u=="function"?!1:Array.isArray(u)||Array.isArray(u.type),fe=u=>{let D={};for(let e in u)J(u,e)&&(D[e]=Ce(u[e])?[]:void 0);return D},ru=(u,D)=>u===Number&&D===""?Number.NaN:u===Boolean?D!=="false":D,pe=(u,D)=>{for(let e in u){if(!J(u,e))continue;let t=u[e];if(!t)continue;let r=D[e];if(!(r!==void 0&&!(Array.isArray(r)&&r.length===0))&&"default"in t){let n=t.default;typeof n=="function"&&(n=n()),D[e]=n}}},Ou=(u,D)=>{if(!D)throw new Error(`Missing type on flag "${u}"`);return typeof D=="function"?D:Array.isArray(D)?D[0]:Ou(u,D.type)},de=/^-[\da-z]+/i,Ee=/^--[\w-]{2,}/,nu="--";function ge(u,D=process.argv.slice(2)){let e=ce(u),t={flags:fe(u),unknownFlags:{},_:Object.assign([],{[nu]:[]})},r,n=(i,a,s)=>{let l=Ou(i,a);s=ru(l,s),s!==void 0&&!Number.isNaN(s)?Array.isArray(t.flags[i])?t.flags[i].push(l(s)):t.flags[i]=l(s):r=F=>{Array.isArray(t.flags[i])?t.flags[i].push(l(ru(l,F||""))):t.flags[i]=l(ru(l,F||"")),r=void 0}},o=(i,a)=>{i in t.unknownFlags||(t.unknownFlags[i]=[]),a!==void 0?t.unknownFlags[i].push(a):r=(s=!0)=>{t.unknownFlags[i].push(s),r=void 0}};for(let i=0;i<D.length;i+=1){let a=D[i];if(a===nu){let l=D.slice(i+1);t._[nu]=l,t._.push(...l);break}let s=de.test(a);if(Ee.test(a)||s){r&&r();let l=se(a),{flagValue:F}=l,{flagName:c}=l;if(s){for(let p=0;p<c.length;p+=1){let E=c[p],B=e.get(E),g=p===c.length-1;B?n(B.name,B.schema,g?F:!0):o(E,g?F:!0)}continue}let f=u[c];if(!f){let p=wu(c);f=u[p],f&&(c=p)}if(!f){o(c,F);continue}n(c,f,F)}else r?r(a):t._.push(a)}return r&&r(),pe(u,t.flags),t}var he=re(Au),me=Object.create,q=Object.defineProperty,Be=Object.defineProperties,be=Object.getOwnPropertyDescriptor,ye=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertyNames,ju=Object.getOwnPropertySymbols,ve=Object.getPrototypeOf,_u=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Pu=(u,D,e)=>D in u?q(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,Y=(u,D)=>{for(var e in D||(D={}))_u.call(D,e)&&Pu(u,e,D[e]);if(ju)for(var e of ju(D))we.call(D,e)&&Pu(u,e,D[e]);return u},ou=(u,D)=>Be(u,ye(D)),xu=u=>q(u,"__esModule",{value:!0}),$e=(u,D)=>()=>(u&&(D=u(u=0)),D),Oe=(u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports),je=(u,D)=>{for(var e in D)q(u,e,{get:D[e],enumerable:!0})},ku=(u,D,e,t)=>{if(D&&typeof D=="object"||typeof D=="function")for(let r of Ae(D))!_u.call(u,r)&&(e||r!=="default")&&q(u,r,{get:()=>D[r],enumerable:!(t=be(D,r))||t.enumerable});return u},_e=(u,D)=>ku(xu(q(u!=null?me(ve(u)):{},"default",!D&&u&&u.__esModule?{get:()=>u.default,enumerable:!0}:{value:u,enumerable:!0})),u),Pe=(u=>(D,e)=>u&&u.get(D)||(e=ku(xu({}),D,1),u&&u.set(D,e),e))(typeof WeakMap!="undefined"?new WeakMap:0),v=$e(()=>{}),xe=Oe((u,D)=>{v(),D.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\uD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A4\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\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\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}}),Su={};je(Su,{breakpoints:()=>Dt,default:()=>Qe}),v(),v(),v();var ke=u=>{var D,e,t;let r=(D=process.stdout.columns)!=null?D:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(r)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:r}:{columns:(e=u.columns)!=null?e:[],stdoutColumns:(t=u.stdoutColumns)!=null?t:r}};v(),v(),v(),v(),v();function Se({onlyFirst:u=!1}={}){let D=["[\\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(D,u?void 0:"g")}function Tu(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Se(),"")}v();function Te(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}var Ne=_e(xe(),1);function k(u){if(typeof u!="string"||u.length===0||(u=Tu(u),u.length===0))return 0;u=u.replace((0,Ne.default)()," ");let D=0;for(let e=0;e<u.length;e++){let t=u.codePointAt(e);t<=31||t>=127&&t<=159||t>=768&&t<=879||(t>65535&&e++,D+=Te(t)?2:1)}return D}var Nu=u=>Math.max(...u.split(`
|
|
3
|
-
`).map(
|
|
4
|
-
`)];for(let[
|
|
5
|
-
`?(
|
|
6
|
-
`&&(
|
|
7
|
-
`).split(`
|
|
8
|
-
`).map(
|
|
9
|
-
`)}var
|
|
10
|
-
`);if(
|
|
11
|
-
`))}return
|
|
12
|
-
`)}function
|
|
13
|
-
`)}
|
|
14
|
-
`}}function
|
|
15
|
-
`}}function
|
|
16
|
-
`):
|
|
17
|
-
`)}}}}function
|
|
18
|
-
`)),
|
|
19
|
-
`:"")+(
|
|
20
|
-
`}table({tableData:
|
|
21
|
-
`);if("type"in
|
|
22
|
-
`),
|
|
2
|
+
"use strict";var AD=require("fs"),vD=require("tty"),Wu=require("rollup"),wD=require("path"),OD=require("@rollup/plugin-node-resolve"),jD=require("@rollup/plugin-commonjs"),$D=require("@rollup/plugin-json"),_D=require("@rollup/plugin-alias"),PD=require("@rollup/plugin-replace"),xD=require("@rollup/plugin-inject"),kD=require("@rollup/pluginutils"),Uu=require("esbuild"),SD=require("module"),TD=require("magic-string");function lu(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var mu=lu(AD),ND=lu(vD),Bu=lu(wD),qD=lu(OD),ID=lu(jD),MD=lu($D),RD=lu(_D),Vu=lu(PD),LD=lu(xD),WD=lu(TD),$u={},Nu,zu;function UD(){if(zu)return Nu;zu=1;var e=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,b=u=>e(u,"__esModule",{value:!0}),y=(u,l)=>{for(var g in l)e(u,g,{get:l[g],enumerable:!0})},j=(u,l,g,C)=>{if(l&&typeof l=="object"||typeof l=="function")for(let m of s(l))!c.call(u,m)&&(g||m!=="default")&&e(u,m,{get:()=>l[m],enumerable:!(C=o(l,m))||C.enumerable});return u},q=(u=>(l,g)=>u&&u.get(l)||(g=j(b({}),l,1),u&&u.set(l,g),g))(typeof WeakMap!="undefined"?new WeakMap:0),I={};y(I,{default:()=>A});var V=/-(\w)/g,Y=u=>u.replace(V,(l,g)=>g.toUpperCase()),z=/\B([A-Z])/g,uu=u=>u.replace(z,"-$1").toLowerCase(),{stringify:eu}=JSON,{hasOwnProperty:au}=Object.prototype,K=(u,l)=>au.call(u,l),ru=/^--?/,iu=/[.:=]/,Eu=u=>{let l=u.replace(ru,""),g,C=l.match(iu);if(C!=null&&C.index){let m=C.index;g=l.slice(m+1),l=l.slice(0,m)}return{flagName:l,flagValue:g}},gu=/[\s.:=]/,G=(u,l)=>{let g=`Invalid flag name ${eu(l)}:`;if(l.length===0)throw new Error(`${g} flag name cannot be empty}`);if(l.length===1)throw new Error(`${g} single characters are reserved for aliases`);let C=l.match(gu);if(C)throw new Error(`${g} flag name cannot contain the character ${eu(C==null?void 0:C[0])}`);let m;if(V.test(l)?m=Y(l):z.test(l)&&(m=uu(l)),m&&K(u,m))throw new Error(`${g} collides with flag ${eu(m)}`)};function hu(u){let l=new Map;for(let g in u){if(!K(u,g))continue;G(u,g);let C=u[g];if(C&&typeof C=="object"){let{alias:m}=C;if(typeof m=="string"){if(m.length===0)throw new Error(`Invalid flag alias ${eu(g)}: flag alias cannot be empty`);if(m.length>1)throw new Error(`Invalid flag alias ${eu(g)}: flag aliases can only be a single-character`);if(l.has(m))throw new Error(`Flag collision: Alias "${m}" is already used`);l.set(m,{name:g,schema:C})}}}return l}var cu=u=>!u||typeof u=="function"?!1:Array.isArray(u)||Array.isArray(u.type),su=u=>{let l={};for(let g in u)K(u,g)&&(l[g]=cu(u[g])?[]:void 0);return l},tu=(u,l)=>u===Number&&l===""?Number.NaN:u===Boolean?l!=="false":l,Cu=(u,l)=>{for(let g in u){if(!K(u,g))continue;let C=u[g];if(!C)continue;let m=l[g];if(!(m!==void 0&&!(Array.isArray(m)&&m.length===0))&&"default"in C){let w=C.default;typeof w=="function"&&(w=w()),l[g]=w}}},Fu=(u,l)=>{if(!l)throw new Error(`Missing type on flag "${u}"`);return typeof l=="function"?l:Array.isArray(l)?l[0]:Fu(u,l.type)},fu=/^-[\da-z]+/i,a=/^--[\w-]{2,}/,v="--";function A(u,l=process.argv.slice(2)){let g=hu(u),C={flags:su(u),unknownFlags:{},_:Object.assign([],{[v]:[]})},m,w=(P,S,Z)=>{let J=Fu(P,S);Z=tu(J,Z),Z!==void 0&&!Number.isNaN(Z)?Array.isArray(C.flags[P])?C.flags[P].push(J(Z)):C.flags[P]=J(Z):m=i=>{Array.isArray(C.flags[P])?C.flags[P].push(J(tu(J,i||""))):C.flags[P]=J(tu(J,i||"")),m=void 0}},Du=(P,S)=>{P in C.unknownFlags||(C.unknownFlags[P]=[]),S!==void 0?C.unknownFlags[P].push(S):m=(Z=!0)=>{C.unknownFlags[P].push(Z),m=void 0}};for(let P=0;P<l.length;P+=1){let S=l[P];if(S===v){let J=l.slice(P+1);C._[v]=J,C._.push(...J);break}let Z=fu.test(S);if(a.test(S)||Z){m&&m();let J=Eu(S),{flagValue:i}=J,{flagName:n}=J;if(Z){for(let E=0;E<n.length;E+=1){let p=n[E],d=g.get(p),O=E===n.length-1;d?w(d.name,d.schema,O?i:!0):Du(p,O?i:!0)}continue}let F=u[n];if(!F){let E=Y(n);F=u[E],F&&(n=E)}if(!F){Du(n,i);continue}w(n,F,i)}else m?m(S):C._.push(S)}return m&&m(),Cu(u,C.flags),C}return Nu=q(I),Nu}var qu,Gu;function VD(){if(Gu)return qu;Gu=1;var e=Object.create,o=Object.defineProperty,s=Object.defineProperties,c=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertyNames,j=Object.getOwnPropertySymbols,q=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,Y=(D,r,t)=>r in D?o(D,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):D[r]=t,z=(D,r)=>{for(var t in r||(r={}))I.call(r,t)&&Y(D,t,r[t]);if(j)for(var t of j(r))V.call(r,t)&&Y(D,t,r[t]);return D},uu=(D,r)=>s(D,b(r)),eu=D=>o(D,"__esModule",{value:!0}),au=(D,r)=>()=>(D&&(r=D(D=0)),r),K=(D,r)=>()=>(r||D((r={exports:{}}).exports,r),r.exports),ru=(D,r)=>{for(var t in r)o(D,t,{get:r[t],enumerable:!0})},iu=(D,r,t,f)=>{if(r&&typeof r=="object"||typeof r=="function")for(let h of y(r))!I.call(D,h)&&(t||h!=="default")&&o(D,h,{get:()=>r[h],enumerable:!(f=c(r,h))||f.enumerable});return D},Eu=(D,r)=>iu(eu(o(D!=null?e(q(D)):{},"default",!r&&D&&D.__esModule?{get:()=>D.default,enumerable:!0}:{value:D,enumerable:!0})),D),gu=(D=>(r,t)=>D&&D.get(r)||(t=iu(eu({}),r,1),D&&D.set(r,t),t))(typeof WeakMap!="undefined"?new WeakMap:0),G=au(()=>{}),hu=K((D,r)=>{G(),r.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\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DBD]))|\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\u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CA]|\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}}),cu={};ru(cu,{breakpoints:()=>yD,default:()=>ku}),G(),G(),G();var su=D=>{var r,t,f;let h=(r=process.stdout.columns)!=null?r:Number.POSITIVE_INFINITY;return typeof D=="function"&&(D=D(h)),D||(D={}),Array.isArray(D)?{columns:D,stdoutColumns:h}:{columns:(t=D.columns)!=null?t:[],stdoutColumns:(f=D.stdoutColumns)!=null?f:h}};G(),G(),G(),G(),G();function tu({onlyFirst:D=!1}={}){let r=["[\\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(r,D?void 0:"g")}function Cu(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(tu(),"")}G();function Fu(D){return Number.isInteger(D)?D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141):!1}var fu=Eu(hu(),1);function a(D){if(typeof D!="string"||D.length===0||(D=Cu(D),D.length===0))return 0;D=D.replace((0,fu.default)()," ");let r=0;for(let t=0;t<D.length;t++){let f=D.codePointAt(t);f<=31||f>=127&&f<=159||f>=768&&f<=879||(f>65535&&t++,r+=Fu(f)?2:1)}return r}var v=D=>Math.max(...D.split(`
|
|
3
|
+
`).map(a)),A=D=>{let r=[];for(let t of D){let{length:f}=t,h=f-r.length;for(let B=0;B<h;B+=1)r.push(0);for(let B=0;B<f;B+=1){let $=v(t[B]);$>r[B]&&(r[B]=$)}}return r};G();var u=/^\d+%$/,l={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},g=(D,r)=>{var t;let f=[];for(let h=0;h<D.length;h+=1){let B=(t=r[h])!=null?t:"auto";if(typeof B=="number"||B==="auto"||B==="content-width"||typeof B=="string"&&u.test(B)){f.push(uu(z({},l),{width:B,contentWidth:D[h]}));continue}if(B&&typeof B=="object"){let $=uu(z(z({},l),B),{contentWidth:D[h]});$.horizontalPadding=$.paddingLeft+$.paddingRight,f.push($);continue}throw new Error(`Invalid column width: ${JSON.stringify(B)}`)}return f};function C(D,r){for(let t of D){let{width:f}=t;if(f==="content-width"&&(t.width=t.contentWidth),f==="auto"){let _=Math.min(20,t.contentWidth);t.width=_,t.autoOverflow=t.contentWidth-_}if(typeof f=="string"&&u.test(f)){let _=Number.parseFloat(f.slice(0,-1))/100;t.width=Math.floor(r*_)-(t.paddingLeft+t.paddingRight)}let{horizontalPadding:h}=t,B=1,$=B+h;if($>=r){let _=$-r,U=Math.ceil(t.paddingLeft/h*_),L=_-U;t.paddingLeft-=U,t.paddingRight-=L,t.horizontalPadding=t.paddingLeft+t.paddingRight}t.paddingLeftString=t.paddingLeft?" ".repeat(t.paddingLeft):"",t.paddingRightString=t.paddingRight?" ".repeat(t.paddingRight):"";let k=r-t.horizontalPadding;t.width=Math.max(Math.min(t.width,k),B)}}var m=()=>Object.assign([],{columns:0});function w(D,r){let t=[m()],[f]=t;for(let h of D){let B=h.width+h.horizontalPadding;f.columns+B>r&&(f=m(),t.push(f)),f.push(h),f.columns+=B}for(let h of t){let B=h.reduce((M,Q)=>M+Q.width+Q.horizontalPadding,0),$=r-B;if($===0)continue;let k=h.filter(M=>"autoOverflow"in M),_=k.filter(M=>M.autoOverflow>0),U=_.reduce((M,Q)=>M+Q.autoOverflow,0),L=Math.min(U,$);for(let M of _){let Q=Math.floor(M.autoOverflow/U*L);M.width+=Q,$-=Q}let W=Math.floor($/k.length);for(let M=0;M<k.length;M+=1){let Q=k[M];M===k.length-1?Q.width+=$:Q.width+=W,$-=W}}return t}function Du(D,r,t){let f=g(t,r);return C(f,D),w(f,D)}G(),G(),G();var P=10,S=(D=0)=>r=>`\x1B[${r+D}m`,Z=(D=0)=>r=>`\x1B[${38+D};5;${r}m`,J=(D=0)=>(r,t,f)=>`\x1B[${38+D};2;${r};${t};${f}m`;function i(){let D=new Map,r={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]}};r.color.gray=r.color.blackBright,r.bgColor.bgGray=r.bgColor.bgBlackBright,r.color.grey=r.color.blackBright,r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(let[t,f]of Object.entries(r)){for(let[h,B]of Object.entries(f))r[h]={open:`\x1B[${B[0]}m`,close:`\x1B[${B[1]}m`},f[h]=r[h],D.set(B[0],B[1]);Object.defineProperty(r,t,{value:f,enumerable:!1})}return Object.defineProperty(r,"codes",{value:D,enumerable:!1}),r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",r.color.ansi=S(),r.color.ansi256=Z(),r.color.ansi16m=J(),r.bgColor.ansi=S(P),r.bgColor.ansi256=Z(P),r.bgColor.ansi16m=J(P),Object.defineProperties(r,{rgbToAnsi256:{value:(t,f,h)=>t===f&&f===h?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(f/255*5)+Math.round(h/255*5),enumerable:!1},hexToRgb:{value:t=>{let f=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!f)return[0,0,0];let{colorString:h}=f.groups;h.length===3&&(h=h.split("").map($=>$+$).join(""));let B=Number.parseInt(h,16);return[B>>16&255,B>>8&255,B&255]},enumerable:!1},hexToAnsi256:{value:t=>r.rgbToAnsi256(...r.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let f,h,B;if(t>=232)f=((t-232)*10+8)/255,h=f,B=f;else{t-=16;let _=t%36;f=Math.floor(t/36)/5,h=Math.floor(_/6)/5,B=_%6/5}let $=Math.max(f,h,B)*2;if($===0)return 30;let k=30+(Math.round(B)<<2|Math.round(h)<<1|Math.round(f));return $===2&&(k+=60),k},enumerable:!1},rgbToAnsi:{value:(t,f,h)=>r.ansi256ToAnsi(r.rgbToAnsi256(t,f,h)),enumerable:!1},hexToAnsi:{value:t=>r.ansi256ToAnsi(r.hexToAnsi256(t)),enumerable:!1}}),r}var n=i(),F=n,E=new Set(["\x1B","\x9B"]),p=39,d="\x07",O="[",T="]",x="m",N=`${T}8;;`,nu=D=>`${E.values().next().value}${O}${D}${x}`,R=D=>`${E.values().next().value}${N}${D}${d}`,H=D=>D.split(" ").map(r=>a(r)),ou=(D,r,t)=>{let f=[...r],h=!1,B=!1,$=a(Cu(D[D.length-1]));for(let[k,_]of f.entries()){let U=a(_);if($+U<=t?D[D.length-1]+=_:(D.push(_),$=0),E.has(_)&&(h=!0,B=f.slice(k+1).join("").startsWith(N)),h){B?_===d&&(h=!1,B=!1):_===x&&(h=!1);continue}$+=U,$===t&&k<f.length-1&&(D.push(""),$=0)}!$&&D[D.length-1].length>0&&D.length>1&&(D[D.length-2]+=D.pop())},X=D=>{let r=D.split(" "),t=r.length;for(;t>0&&!(a(r[t-1])>0);)t--;return t===r.length?D:r.slice(0,t).join(" ")+r.slice(t).join("")},pu=(D,r,t={})=>{if(t.trim!==!1&&D.trim()==="")return"";let f="",h,B,$=H(D),k=[""];for(let[U,L]of D.split(" ").entries()){t.trim!==!1&&(k[k.length-1]=k[k.length-1].trimStart());let W=a(k[k.length-1]);if(U!==0&&(W>=r&&(t.wordWrap===!1||t.trim===!1)&&(k.push(""),W=0),(W>0||t.trim===!1)&&(k[k.length-1]+=" ",W++)),t.hard&&$[U]>r){let M=r-W,Q=1+Math.floor(($[U]-M-1)/r);Math.floor(($[U]-1)/r)<Q&&k.push(""),ou(k,L,r);continue}if(W+$[U]>r&&W>0&&$[U]>0){if(t.wordWrap===!1&&W<r){ou(k,L,r);continue}k.push("")}if(W+$[U]>r&&t.wordWrap===!1){ou(k,L,r);continue}k[k.length-1]+=L}t.trim!==!1&&(k=k.map(U=>X(U)));let _=[...k.join(`
|
|
4
|
+
`)];for(let[U,L]of _.entries()){if(f+=L,E.has(L)){let{groups:M}=new RegExp(`(?:\\${O}(?<code>\\d+)m|\\${N}(?<uri>.*)${d})`).exec(_.slice(U).join(""))||{groups:{}};if(M.code!==void 0){let Q=Number.parseFloat(M.code);h=Q===p?void 0:Q}else M.uri!==void 0&&(B=M.uri.length===0?void 0:M.uri)}let W=F.codes.get(Number(h));_[U+1]===`
|
|
5
|
+
`?(B&&(f+=R("")),h&&W&&(f+=nu(W))):L===`
|
|
6
|
+
`&&(h&&W&&(f+=nu(h)),B&&(f+=R(B)))}return f};function Ou(D,r,t){return String(D).normalize().replace(/\r\n/g,`
|
|
7
|
+
`).split(`
|
|
8
|
+
`).map(f=>pu(f,r,t)).join(`
|
|
9
|
+
`)}var ju=D=>Array.from({length:D}).fill("");function yu(D,r){let t=[],f=0;for(let h of D){let B=0,$=h.map(_=>{var U;let L=(U=r[f])!=null?U:"";f+=1,_.preprocess&&(L=_.preprocess(L)),v(L)>_.width&&(L=Ou(L,_.width,{hard:!0}));let W=L.split(`
|
|
10
|
+
`);if(_.postprocess){let{postprocess:M}=_;W=W.map((Q,Au)=>M.call(_,Q,Au))}return _.paddingTop&&W.unshift(...ju(_.paddingTop)),_.paddingBottom&&W.push(...ju(_.paddingBottom)),W.length>B&&(B=W.length),uu(z({},_),{lines:W})}),k=[];for(let _=0;_<B;_+=1){let U=$.map(L=>{var W;let M=(W=L.lines[_])!=null?W:"",Q=Number.isFinite(L.width)?" ".repeat(L.width-a(M)):"",Au=L.paddingLeftString;return L.align==="right"&&(Au+=Q),Au+=M,L.align==="left"&&(Au+=Q),Au+L.paddingRightString}).join("");k.push(U)}t.push(k.join(`
|
|
11
|
+
`))}return t.join(`
|
|
12
|
+
`)}function ku(D,r){if(!D||D.length===0)return"";let t=A(D),f=t.length;if(f===0)return"";let{stdoutColumns:h,columns:B}=su(r);if(B.length>f)throw new Error(`${B.length} columns defined, but only ${f} columns found`);let $=Du(h,B,t);return D.map(k=>yu($,k)).join(`
|
|
13
|
+
`)}G();var BD=["<",">","=",">=","<="];function bD(D){if(!BD.includes(D))throw new TypeError(`Invalid breakpoint operator: ${D}`)}function yD(D){let r=Object.keys(D).map(t=>{let[f,h]=t.split(" ");bD(f);let B=Number.parseInt(h,10);if(Number.isNaN(B))throw new TypeError(`Invalid breakpoint value: ${h}`);let $=D[t];return{operator:f,breakpoint:B,value:$}}).sort((t,f)=>f.breakpoint-t.breakpoint);return t=>{var f;return(f=r.find(({operator:h,breakpoint:B})=>h==="="&&t===B||h===">"&&t>B||h==="<"&&t<B||h===">="&&t>=B||h==="<="&&t<=B))==null?void 0:f.value}}return qu=gu(cu),qu}var Zu;function zD(){if(Zu)return $u;Zu=1,Object.defineProperty($u,"__esModule",{value:!0});var e=UD(),o=ND.default,s=VD();function c(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var b=c(e),y=c(o),j=c(s);const q=i=>i.replace(/[-_ ](\w)/g,(n,F)=>F.toUpperCase()),I=i=>i.replace(/\B([A-Z])/g,"-$1").toLowerCase(),V={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:i=>i.trim()},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function Y(i){let n=!1;const F=Object.keys(i).sort((E,p)=>E.localeCompare(p)).map(E=>{const p=i[E],d="alias"in p;return d&&(n=!0),{name:E,flag:p,flagFormatted:`--${I(E)}`,aliasesEnabled:n,aliasFormatted:d?`-${p.alias}`:void 0}}).map(E=>(E.aliasesEnabled=n,[{type:"flagName",data:E},{type:"flagDescription",data:E}]));return{type:"table",data:{tableData:F,tableBreakpoints:V}}}const z=i=>{var n;return!i||((n=i.version)!=null?n:i.help?i.help.version:void 0)},uu=i=>{var n;const F="parent"in i&&((n=i.parent)==null?void 0:n.name);return(F?`${F} `:"")+i.name};function eu(i){var n;const F=[];i.name&&F.push(uu(i));const E=(n=z(i))!=null?n:"parent"in i&&z(i.parent);if(E&&F.push(`v${E}`),F.length!==0)return{id:"name",type:"text",data:`${F.join(" ")}
|
|
14
|
+
`}}function au(i){const{help:n}=i;if(!(!n||!n.description))return{id:"description",type:"text",data:`${n.description}
|
|
15
|
+
`}}function K(i){var n;const F=i.help||{};if("usage"in F)return F.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(F.usage)?F.usage.join(`
|
|
16
|
+
`):F.usage}}:void 0;if(i.name){const E=[],p=[uu(i)];if(i.flags&&Object.keys(i.flags).length>0&&p.push("[flags...]"),i.parameters&&i.parameters.length>0){const{parameters:d}=i,O=d.indexOf("--"),T=O>-1&&d.slice(O+1).some(x=>x.startsWith("<"));p.push(d.map(x=>x!=="--"?x:T?"--":"[--]").join(" "))}if(p.length>1&&E.push(p.join(" ")),"commands"in i&&((n=i.commands)==null?void 0:n.length)&&E.push(`${i.name} <command>`),E.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:E.join(`
|
|
17
|
+
`)}}}}function ru(i){var n;if(!("commands"in i)||!((n=i.commands)!=null&&n.length))return;const F=i.commands.map(E=>[E.options.name,E.options.help?E.options.help.description:""]);return{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:F,tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}function iu(i){if(!(!i.flags||Object.keys(i.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Y(i.flags),indentBody:0}}}function Eu(i){const{help:n}=i;if(!n||!n.examples||n.examples.length===0)return;let{examples:F}=n;if(Array.isArray(F)&&(F=F.join(`
|
|
18
|
+
`)),F)return{id:"examples",type:"section",data:{title:"Examples:",body:F}}}function gu(i){if(!("alias"in i)||!i.alias)return;const{alias:n}=i,F=Array.isArray(n)?n.join(", "):n;return{id:"aliases",type:"section",data:{title:"Aliases:",body:F}}}const G=i=>[eu,au,K,ru,iu,Eu,gu].map(n=>n(i)).filter(n=>Boolean(n)),hu=y.default.WriteStream.prototype.hasColors();class cu{text(n){return n}bold(n){return hu?`\x1B[1m${n}\x1B[22m`:n.toLocaleUpperCase()}indentText({text:n,spaces:F}){return n.replace(/^/gm," ".repeat(F))}heading(n){return this.bold(n)}section({title:n,body:F,indentBody:E=2}){return`${(n?`${this.heading(n)}
|
|
19
|
+
`:"")+(F?this.indentText({text:this.render(F),spaces:E}):"")}
|
|
20
|
+
`}table({tableData:n,tableOptions:F,tableBreakpoints:E}){return j.default(n.map(p=>p.map(d=>this.render(d))),E?s.breakpoints(E):F)}flagParameter(n){return n===Boolean?"":n===String?"<string>":n===Number?"<number>":Array.isArray(n)?this.flagParameter(n[0]):"<value>"}flagOperator(n){return" "}flagName(n){const{flag:F,flagFormatted:E,aliasesEnabled:p,aliasFormatted:d}=n;let O="";if(d?O+=`${d}, `:p&&(O+=" "),O+=E,"placeholder"in F&&typeof F.placeholder=="string")O+=`${this.flagOperator(n)}${F.placeholder}`;else{const T=this.flagParameter("type"in F?F.type:F);T&&(O+=`${this.flagOperator(n)}${T}`)}return O}flagDefault(n){return JSON.stringify(n)}flagDescription({flag:n}){var F;let E="description"in n&&(F=n.description)!=null?F:"";if("default"in n){let{default:p}=n;typeof p=="function"&&(p=p()),p&&(E+=` (default: ${this.flagDefault(p)})`)}return E}render(n){if(typeof n=="string")return n;if(Array.isArray(n))return n.map(F=>this.render(F)).join(`
|
|
21
|
+
`);if("type"in n&&this[n.type]){const F=this[n.type];if(typeof F=="function")return F.call(this,n.data)}throw new Error(`Invalid node type: ${JSON.stringify(n)}`)}}const su=/^[\w.-]+$/;var tu=Object.defineProperty,Cu=Object.defineProperties,Fu=Object.getOwnPropertyDescriptors,fu=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,A=(i,n,F)=>n in i?tu(i,n,{enumerable:!0,configurable:!0,writable:!0,value:F}):i[n]=F,u=(i,n)=>{for(var F in n||(n={}))a.call(n,F)&&A(i,F,n[F]);if(fu)for(var F of fu(n))v.call(n,F)&&A(i,F,n[F]);return i},l=(i,n)=>Cu(i,Fu(n));const{stringify:g}=JSON,C=/[|\\{}()[\]^$+*?.]/;function m(i){const n=[];let F,E;for(const p of i){if(E)throw new Error(`Invalid parameter: Spread parameter ${g(E)} must be last`);const d=p[0],O=p[p.length-1];let T;if(d==="<"&&O===">"&&(T=!0,F))throw new Error(`Invalid parameter: Required parameter ${g(p)} cannot come after optional parameter ${g(F)}`);if(d==="["&&O==="]"&&(T=!1,F=p),T===void 0)throw new Error(`Invalid parameter: ${g(p)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let x=p.slice(1,-1);const N=x.slice(-3)==="...";N&&(E=p,x=x.slice(0,-3));const nu=x.match(C);if(nu)throw new Error(`Invalid parameter: ${g(p)}. Invalid character found ${g(nu[0])}`);n.push({name:x,required:T,spread:N})}return n}function w(i,n,F,E){for(let p=0;p<n.length;p+=1){const{name:d,required:O,spread:T}=n[p],x=q(d);if(x in i)throw new Error(`Invalid parameter: ${g(d)} is used more than once.`);const N=T?F.slice(p):F[p];if(T&&(p=n.length),O&&(!N||T&&N.length===0))return console.error(`Error: Missing required parameter ${g(d)}
|
|
22
|
+
`),E(),process.exit(1);i[x]=N}}function Du(i){return i===void 0||i!==!1}function P(i,n,F,E){const p=u({},n.flags),d=n.version;d&&(p.version={type:Boolean,description:"Show version"});const{help:O}=n,T=Du(O);T&&!("help"in p)&&(p.help={type:Boolean,alias:"h",description:"Show help"});const x=b.default(p,E),N=()=>{console.log(n.version)};if(d&&x.flags.version===!0)return N(),process.exit(0);const nu=new cu,R=T&&(O==null?void 0:O.render)?O.render:X=>nu.render(X),H=X=>{const pu=G(l(u(u({},n),X?{help:X}:{}),{flags:p}));console.log(R(pu,nu))};if(T&&x.flags.help===!0)return H(),process.exit(0);if(n.parameters){let{parameters:X}=n,pu=x._;const Ou=X.indexOf("--"),ju=X.slice(Ou+1),yu=Object.create(null);if(Ou>-1&&ju.length>0){X=X.slice(0,Ou);const ku=x._["--"];pu=pu.slice(0,-ku.length||void 0),w(yu,m(X),pu,H),w(yu,m(ju),ku,H)}else w(yu,m(X),pu,H);Object.assign(x._,yu)}const ou=l(u({},x),{showVersion:N,showHelp:H});return typeof F=="function"&&F(ou),u({command:i},ou)}function S(i,n){const F=new Map;for(const E of n){const p=[E.options.name],{alias:d}=E.options;d&&(Array.isArray(d)?p.push(...d):p.push(d));for(const O of p){if(F.has(O))throw new Error(`Duplicate command name found: ${g(O)}`);F.set(O,E)}}return F.get(i)}function Z(i,n,F=process.argv.slice(2)){if(!i)throw new Error("Options is required");if("name"in i&&(!i.name||!su.test(i.name)))throw new Error(`Invalid script name: ${g(i.name)}`);const E=F[0];if(i.commands&&su.test(E)){const p=S(E,i.commands);if(p)return P(p.options.name,l(u({},p.options),{parent:i}),p.callback,F.slice(1))}return P(void 0,i,n,F)}function J(i,n){if(!i)throw new Error("Command options are required");const{name:F}=i;if(i.name===void 0)throw new Error("Command name is required");if(!su.test(F))throw new Error(`Invalid command name ${JSON.stringify(F)}. Command names must be one word.`);return{options:i,callback:n}}return $u.cli=Z,$u.command=J,$u}var GD=zD();const Ju=e=>mu.default.promises.access(e).then(()=>!0,()=>!1),ZD=async e=>{const o=Bu.default.join(e,"package.json");if(!await Ju(o))throw new Error(`package.json not found at: ${o}`);const c=await mu.default.promises.readFile(o,"utf8");try{return JSON.parse(c)}catch(b){throw new Error(`Cannot parse package.json: ${b.message}`)}},JD=/^[/.]/,Su=(e,o)=>(!Bu.default.isAbsolute(e)&&!JD.test(e)&&(e=`./${e}`),o&&!e.endsWith("/")&&(e+="/"),e);var YD=Object.defineProperty,HD=Object.defineProperties,KD=Object.getOwnPropertyDescriptors,Yu=Object.getOwnPropertySymbols,QD=Object.prototype.hasOwnProperty,XD=Object.prototype.propertyIsEnumerable,Hu=(e,o,s)=>o in e?YD(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,_u=(e,o)=>{for(var s in o||(o={}))QD.call(o,s)&&Hu(e,s,o[s]);if(Yu)for(var s of Yu(o))XD.call(o,s)&&Hu(e,s,o[s]);return e},Pu=(e,o)=>HD(e,KD(o));const du=e=>{if(e.endsWith(".mjs"))return"module";if(e.endsWith(".cjs"))return"commonjs"},Ku=e=>e.startsWith(".");function Qu(e,o,s="exports"){if(e){if(typeof e=="string")return Ku(e)?[{outputPath:e,type:du(e)||o,from:s}]:[];if(Array.isArray(e))return e.filter(Ku).map((b,y)=>({outputPath:b,type:du(b)||o,from:`${s}[${y}]`}));if(typeof e=="object")return Object.entries(e).flatMap(([c,b])=>{if(typeof b=="string"){const y={outputPath:b,from:`${s}.${c}`};if(c==="require")return Pu(_u({},y),{type:"commonjs"});if(c==="import")return Pu(_u({},y),{type:du(b)||o});if(c==="types")return Pu(_u({},y),{type:"types"});if(c==="node")return Pu(_u({},y),{type:du(b)||o,platform:"node"});if(c==="default")return Pu(_u({},y),{type:du(b)||o})}return Qu(b,o,`${s}.${c}`)})}return[]}function vu(e,o){o.outputPath=Su(o.outputPath);const{outputPath:s,type:c,platform:b}=o,y=e[s];if(y){if(y.type!==c)throw new Error(`Conflicting export types "${y.type}" & "${c}" found for ${s}`);if(y.platform!==b)throw new Error(`Conflicting export platforms "${y.platform}" & "${b}" found for ${s}`)}e[s]=o}const ue=e=>{var o,s,c,b;const y={},j=(o=e.type)!=null?o:"commonjs";if(e.main){const q=e.main;vu(y,{outputPath:q,type:(s=du(q))!=null?s:j,from:"main"})}if(e.module&&vu(y,{outputPath:e.module,type:"module",from:"module"}),e.types&&vu(y,{outputPath:e.types,type:"types",from:"types"}),e.bin){const{bin:q}=e;if(typeof q=="string")vu(y,{outputPath:q,type:(c=du(q))!=null?c:j,isExecutable:!0,from:"bin"});else for(const[I,V]of Object.entries(q))vu(y,{outputPath:V,type:(b=du(V))!=null?b:j,isExecutable:!0,from:`bin.${I}`})}if(e.exports){const q=Qu(e.exports,j);for(const I of q)vu(y,I)}return Object.values(y)},De=["peerDependencies","dependencies","optionalDependencies"],ee=e=>{const o=[];for(const s of De){const c=e[s];c&&o.push(...Object.keys(c))}return o},te=({imports:e},o)=>{const s={};if(e)for(const c in e){if(c.startsWith("#"))continue;const b=e[c];typeof b=="string"&&(s[c]=Bu.default.join(o,b))}return s},{stringify:Iu}=JSON;async function re(e,o){for(const s of o){const c=e+s;if(await Ju(c))return c}}const Xu={".d.ts":[".d.ts",".ts"],".js":[".js",".ts",".tsx"],".mjs":[".mjs",".js",".cjs",".mts",".ts"],".cjs":[".cjs",".js",".mjs",".cts",".ts"]};async function ne(e,o,s){if(!e.outputPath.startsWith(s))throw new Error(`Export path ${Iu(e.outputPath)} from ${Iu(`package.json#${e.from}`)} is not in directory ${s}`);const c=o+e.outputPath.slice(s.length);for(const b of Object.keys(Xu))if(e.outputPath.endsWith(b)){const y=await re(c.slice(0,-b.length),Xu[b]);if(y)return y}throw new Error(`Could not find mathing source file for export path ${Iu(e.outputPath)}`)}var oe=Object.defineProperty,ae=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,uD=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,DD=(e,o,s)=>o in e?oe(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,Fe=(e,o)=>{for(var s in o||(o={}))se.call(o,s)&&DD(e,s,o[s]);if(uD)for(var s of uD(o))le.call(o,s)&&DD(e,s,o[s]);return e},ce=(e,o)=>ae(e,ie(o));const Mu="pkgroll:create-require",eD=`IS_ESM${Math.random().toString(36).slice(2)}`,Ce=()=>ce(Fe({},LD.default({require:Mu})),{name:"create-require",resolveId:e=>e===Mu?e:null,load(e){return e!==Mu?null:`
|
|
23
23
|
import { createRequire } from 'module';
|
|
24
24
|
|
|
25
25
|
export default (
|
|
26
|
-
${
|
|
26
|
+
${eD}
|
|
27
27
|
? createRequire(import.meta.url)
|
|
28
28
|
: require
|
|
29
29
|
);
|
|
30
|
-
`}}),
|
|
31
|
-
`;break;case 114:
|
|
32
|
-
`),
|
|
33
|
-
`),{code:
|
|
30
|
+
`}}),fe=e=>({name:"create-require-insert-format",renderChunk:Vu.default({[eD]:e}).renderChunk});function pe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ru,tD;function de(){if(tD)return Ru;tD=1;var e=Bu.default,o=mu.default;function s(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var c=s(e),b=s(o);function y(a){const v=/^\\\\\?\\/.test(a),A=/[^\u0000-\u0080]+/.test(a);return v||A?a:a.replace(/\\/g,"/")}function j(a,v){for(;;){const A=c.default.join(a,v);if(b.default.existsSync(A))return y(A);const u=c.default.dirname(a);if(u===a)return;a=u}}var q=pe;function I(a,v){v===void 0&&(v=!1);var A=a.length,u=0,l="",g=0,C=16,m=0,w=0,Du=0,P=0,S=0;function Z(d,O){for(var T=0,x=0;T<d||!O;){var N=a.charCodeAt(u);if(N>=48&&N<=57)x=x*16+N-48;else if(N>=65&&N<=70)x=x*16+N-65+10;else if(N>=97&&N<=102)x=x*16+N-97+10;else break;u++,T++}return T<d&&(x=-1),x}function J(d){u=d,l="",g=0,C=16,S=0}function i(){var d=u;if(a.charCodeAt(u)===48)u++;else for(u++;u<a.length&&z(a.charCodeAt(u));)u++;if(u<a.length&&a.charCodeAt(u)===46)if(u++,u<a.length&&z(a.charCodeAt(u)))for(u++;u<a.length&&z(a.charCodeAt(u));)u++;else return S=3,a.substring(d,u);var O=u;if(u<a.length&&(a.charCodeAt(u)===69||a.charCodeAt(u)===101))if(u++,(u<a.length&&a.charCodeAt(u)===43||a.charCodeAt(u)===45)&&u++,u<a.length&&z(a.charCodeAt(u))){for(u++;u<a.length&&z(a.charCodeAt(u));)u++;O=u}else S=3;return a.substring(d,O)}function n(){for(var d="",O=u;;){if(u>=A){d+=a.substring(O,u),S=2;break}var T=a.charCodeAt(u);if(T===34){d+=a.substring(O,u),u++;break}if(T===92){if(d+=a.substring(O,u),u++,u>=A){S=2;break}var x=a.charCodeAt(u++);switch(x){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+=`
|
|
31
|
+
`;break;case 114:d+="\r";break;case 116:d+=" ";break;case 117:var N=Z(4,!0);N>=0?d+=String.fromCharCode(N):S=4;break;default:S=5}O=u;continue}if(T>=0&&T<=31)if(Y(T)){d+=a.substring(O,u),S=2;break}else S=6;u++}return d}function F(){if(l="",S=0,g=u,w=m,P=Du,u>=A)return g=A,C=17;var d=a.charCodeAt(u);if(V(d)){do u++,l+=String.fromCharCode(d),d=a.charCodeAt(u);while(V(d));return C=15}if(Y(d))return u++,l+=String.fromCharCode(d),d===13&&a.charCodeAt(u)===10&&(u++,l+=`
|
|
32
|
+
`),m++,Du=u,C=14;switch(d){case 123:return u++,C=1;case 125:return u++,C=2;case 91:return u++,C=3;case 93:return u++,C=4;case 58:return u++,C=6;case 44:return u++,C=5;case 34:return u++,l=n(),C=10;case 47:var O=u-1;if(a.charCodeAt(u+1)===47){for(u+=2;u<A&&!Y(a.charCodeAt(u));)u++;return l=a.substring(O,u),C=12}if(a.charCodeAt(u+1)===42){u+=2;for(var T=A-1,x=!1;u<T;){var N=a.charCodeAt(u);if(N===42&&a.charCodeAt(u+1)===47){u+=2,x=!0;break}u++,Y(N)&&(N===13&&a.charCodeAt(u)===10&&u++,m++,Du=u)}return x||(u++,S=1),l=a.substring(O,u),C=13}return l+=String.fromCharCode(d),u++,C=16;case 45:if(l+=String.fromCharCode(d),u++,u===A||!z(a.charCodeAt(u)))return C=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return l+=i(),C=11;default:for(;u<A&&E(d);)u++,d=a.charCodeAt(u);if(g!==u){switch(l=a.substring(g,u),l){case"true":return C=8;case"false":return C=9;case"null":return C=7}return C=16}return l+=String.fromCharCode(d),u++,C=16}}function E(d){if(V(d)||Y(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}function p(){var d;do d=F();while(d>=12&&d<=15);return d}return{setPosition:J,getPosition:function(){return u},scan:v?p:F,getToken:function(){return C},getTokenValue:function(){return l},getTokenOffset:function(){return g},getTokenLength:function(){return u-g},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return g-P},getTokenError:function(){return S}}}function V(a){return a===32||a===9||a===11||a===12||a===160||a===5760||a>=8192&&a<=8203||a===8239||a===8287||a===12288||a===65279}function Y(a){return a===10||a===13||a===8232||a===8233}function z(a){return a>=48&&a<=57}var uu;(function(a){a.DEFAULT={allowTrailingComma:!1}})(uu||(uu={}));function eu(a,v,A){v===void 0&&(v=[]),A===void 0&&(A=uu.DEFAULT);var u=null,l=[],g=[];function C(w){Array.isArray(l)?l.push(w):u!==null&&(l[u]=w)}var m={onObjectBegin:function(){var w={};C(w),g.push(l),l=w,u=null},onObjectProperty:function(w){u=w},onObjectEnd:function(){l=g.pop()},onArrayBegin:function(){var w=[];C(w),g.push(l),l=w,u=null},onArrayEnd:function(){l=g.pop()},onLiteralValue:C,onError:function(w,Du,P){v.push({error:w,offset:Du,length:P})}};return au(a,m,A),l[0]}function au(a,v,A){A===void 0&&(A=uu.DEFAULT);var u=I(a,!1);function l(R){return R?function(){return R(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter())}:function(){return!0}}function g(R){return R?function(H){return R(H,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter())}:function(){return!0}}var C=l(v.onObjectBegin),m=g(v.onObjectProperty),w=l(v.onObjectEnd),Du=l(v.onArrayBegin),P=l(v.onArrayEnd),S=g(v.onLiteralValue),Z=g(v.onSeparator),J=l(v.onComment),i=g(v.onError),n=A&&A.disallowComments,F=A&&A.allowTrailingComma;function E(){for(;;){var R=u.scan();switch(u.getTokenError()){case 4:p(14);break;case 5:p(15);break;case 3:p(13);break;case 1:n||p(11);break;case 2:p(12);break;case 6:p(16);break}switch(R){case 12:case 13:n?p(10):J();break;case 16:p(1);break;case 15:case 14:break;default:return R}}}function p(R,H,ou){if(H===void 0&&(H=[]),ou===void 0&&(ou=[]),i(R),H.length+ou.length>0)for(var X=u.getToken();X!==17;){if(H.indexOf(X)!==-1){E();break}else if(ou.indexOf(X)!==-1)break;X=E()}}function d(R){var H=u.getTokenValue();return R?S(H):m(H),E(),!0}function O(){switch(u.getToken()){case 11:var R=u.getTokenValue(),H=Number(R);isNaN(H)&&(p(2),H=0),S(H);break;case 7:S(null);break;case 8:S(!0);break;case 9:S(!1);break;default:return!1}return E(),!0}function T(){return u.getToken()!==10?(p(3,[],[2,5]),!1):(d(!1),u.getToken()===6?(Z(":"),E(),nu()||p(4,[],[2,5])):p(5,[],[2,5]),!0)}function x(){C(),E();for(var R=!1;u.getToken()!==2&&u.getToken()!==17;){if(u.getToken()===5){if(R||p(4,[],[]),Z(","),E(),u.getToken()===2&&F)break}else R&&p(6,[],[]);T()||p(4,[],[2,5]),R=!0}return w(),u.getToken()!==2?p(7,[2],[]):E(),!0}function N(){Du(),E();for(var R=!1;u.getToken()!==4&&u.getToken()!==17;){if(u.getToken()===5){if(R||p(4,[],[]),Z(","),E(),u.getToken()===4&&F)break}else R&&p(6,[],[]);nu()||p(4,[],[4,5]),R=!0}return P(),u.getToken()!==4?p(8,[4],[]):E(),!0}function nu(){switch(u.getToken()){case 3:return N();case 1:return x();case 10:return d(!0);default:return O()}}return E(),u.getToken()===17?A.allowEmptyContent?!0:(p(4,[],[]),!1):nu()?(u.getToken()!==17&&p(9,[],[]),!0):(p(4,[],[]),!1)}var K=eu;const ru=a=>y(/^[./]/.test(a)?a:`./${a}`);var iu=Object.defineProperty,Eu=Object.defineProperties,gu=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,hu=Object.prototype.hasOwnProperty,cu=Object.prototype.propertyIsEnumerable,su=(a,v,A)=>v in a?iu(a,v,{enumerable:!0,configurable:!0,writable:!0,value:A}):a[v]=A,tu=(a,v)=>{for(var A in v||(v={}))hu.call(v,A)&&su(a,A,v[A]);if(G)for(var A of G(v))cu.call(v,A)&&su(a,A,v[A]);return a},Cu=(a,v)=>Eu(a,gu(v));function Fu(a){var v,A;const u=b.default.realpathSync(a),l=c.default.dirname(u),g=b.default.readFileSync(a,"utf8").trim();let C={};if(g&&(C=K(g),!C||typeof C!="object"))throw new SyntaxError(`Failed to parse JSON: ${a}`);if(C.extends){let m=C.extends;try{m=q.resolve(m,{paths:[c.default.dirname(a)]})}catch(P){if(P.code==="MODULE_NOT_FOUND")try{m=q.resolve(c.default.join(m,"tsconfig.json"),{paths:[c.default.dirname(a)]})}catch{}}const w=Fu(m);if(delete w.references,(v=w.compilerOptions)!=null&&v.baseUrl){const{compilerOptions:P}=w;P.baseUrl=c.default.relative(l,c.default.join(c.default.dirname(m),P.baseUrl))}w.files&&(w.files=w.files.map(P=>c.default.relative(l,c.default.join(c.default.dirname(m),P)))),w.include&&(w.include=w.include.map(P=>c.default.relative(l,c.default.join(c.default.dirname(m),P)))),delete C.extends;const Du=Cu(tu(tu({},w),C),{compilerOptions:tu(tu({},w.compilerOptions),C.compilerOptions)});w.watchOptions&&(Du.watchOptions=tu(tu({},w.watchOptions),C.watchOptions)),C=Du}if((A=C.compilerOptions)!=null&&A.baseUrl){const{compilerOptions:m}=C;m.baseUrl=ru(m.baseUrl)}if(C.files&&(C.files=C.files.map(ru)),C.include&&(C.include=C.include.map(y)),C.watchOptions){const{watchOptions:m}=C;m.excludeDirectories&&(m.excludeDirectories=m.excludeDirectories.map(w=>y(c.default.resolve(l,w))))}return C}function fu(a=process.cwd(),v="tsconfig.json"){const A=j(a,v);if(!A)return null;const u=Fu(A);return{path:A,config:u}}return Ru=fu,Ru}var Ee=de();const rD=Ee();var ge=Object.defineProperty,he=Object.defineProperties,me=Object.getOwnPropertyDescriptors,nD=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,oD=(e,o,s)=>o in e?ge(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,aD=(e,o)=>{for(var s in o||(o={}))Be.call(o,s)&&oD(e,s,o[s]);if(nD)for(var s of nD(o))be.call(o,s)&&oD(e,s,o[s]);return e},iD=(e,o)=>he(e,me(o));function ye(e){const o=kD.createFilter(/\.([cm]?ts|[jt]sx)$/);return{name:"esbuild-transform",async transform(s,c){var b;if(!o(c))return null;const y=await Uu.transform(s,iD(aD({},e),{loader:"default",sourcefile:c.replace(/\.[cm]ts/,".ts"),tsconfigRaw:(b=rD)==null?void 0:b.config}));return{code:y.code,map:y.map||null}}}}const Ae=e=>{if(e==="es")return"esm";if(e==="cjs"||e==="iife")return e};function ve(e){return{name:"esbuild-minify",async renderChunk(o,s,c){const b=await Uu.transform(o,iD(aD({},e),{format:Ae(c.format),minify:!0}));return{code:b.code,map:b.map||null}}}}const Lu=(e,o)=>e[0]-o[0]||e[1]-o[1]||e[2]-o[2],sD=({target:e})=>{const o=e.some(s=>{var c,b;if(s=s.trim(),!s.startsWith("node"))return;const y=s.slice(4).split(".").map(Number),j=[y[0],(c=y[1])!=null?c:0,(b=y[2])!=null?b:0];return!(Lu(j,[12,20,0])>=0&&Lu(j,[13,0,0])<0||Lu(j,[14,13,1])>=0)});return{name:"externalize-node-builtins",resolveId:s=>{const c=s.startsWith("node:");if(o&&c&&(s=s.slice(5)),SD.builtinModules.includes(s)||c)return{id:s,external:!0}}}},we=e=>({name:"patch-binary",renderChunk(o,s,c){if(!s.isEntry||!s.facadeModuleId)return;const b=c.entryFileNames,y=`./${Bu.default.join(c.dir,b(s))}`;if(e.includes(y)){const j=new WD.default(o);return j.prepend(`#!/usr/bin/env node
|
|
33
|
+
`),{code:j.toString(),map:c.sourcemap?j.generateMap({hires:!0}):void 0}}},async writeBundle(o,s){const c=o.entryFileNames,b=Object.values(s).map(async y=>{const j=y;if(j.isEntry&&j.facadeModuleId){const q=Bu.default.join(o.dir,c(j));await mu.default.promises.chmod(q,493)}});await Promise.all(b)}});function lD(){const e=/\.(?:mjs|cjs)$/,o=/\.(?:mts|cts)$/;return{name:"resolve-typescript-mjs-cjs",resolveId(s,c,b){return e.test(s)&&c&&o.test(c)?this.resolve(s.replace(/js$/,"ts"),c,b):null}}}const FD=e=>e.split("?")[0],cD={async type(e){const o=await Promise.resolve().then(function(){return require("./rollup-plugin-dts-55c2a6e5.js")});return{input:[],preserveEntrySignatures:"strict",plugins:[sD(e),lD(),o.default({respectExternal:!0})],output:[],external:[]}},app(e,o,s,c){const b={target:e.target};return{input:[],preserveEntrySignatures:"strict",plugins:[sD(e),lD(),RD.default({entries:o}),qD.default({extensions:[".mjs",".js",".ts",".jsx",".tsx",".json"],exportConditions:["node","import","require","default"]}),...Object.keys(s).length>0?[Vu.default({preventAssignment:!0,objectGuards:!0,values:s})]:[],ID.default({strictRequires:!0}),MD.default(),ye(b),Ce(),...e.minify?[ve(b)]:[],we(c)],output:[],external:[]}}};async function Oe(e,o,s,c,b,y){const j=s.filter(({exportEntry:V})=>V.isExecutable).map(({exportEntry:V})=>V.outputPath),q=Object.create(null),I=Object.fromEntries(c.env.map(({key:V,value:Y})=>[`process.env.${V}`,JSON.stringify(Y)]));for(const{input:V,exportEntry:Y}of s){if(Y.type==="types"){let K=q.type;K||(K=await cD.type(c),K.external=y,q.type=K),K.input.push(V);const ru=".d.ts";K.output=[{dir:o,entryFileNames:iu=>mu.default.realpathSync.native(FD(iu.facadeModuleId)).slice(e.length).replace(/\.\w+$/,ru),exports:"auto",format:"esm"}];continue}let z=q.app;z||(z=cD.app(c,b,I,j),z.external=y,q.app=z),z.input.includes(V)||z.input.push(V);const uu=z.output,eu=Bu.default.extname(Y.outputPath),au=`${Y.type}-${eu}`;if(!uu[au]){const K={dir:o,exports:"auto",format:Y.type,chunkFileNames:`[name]-[hash]${eu}`,plugins:[fe(Y.type==="module")],entryFileNames:ru=>mu.default.realpathSync.native(FD(ru.facadeModuleId)).slice(e.length).replace(/\.\w+$/,eu)};uu.push(K),uu[au]=K}}return q}let bu=!0;const wu=typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{};let CD=0;if(wu.process&&wu.process.env&&wu.process.stdout){const{FORCE_COLOR:e,NODE_DISABLE_COLORS:o,TERM:s}=wu.process.env;o||e==="0"?bu=!1:e==="1"?bu=!0:s==="dumb"?bu=!1:"CI"in wu.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(c=>c in wu.process.env)?bu=!0:bu=process.stdout.isTTY,bu&&(CD=s&&s.endsWith("-256color")?2:1)}let fD={enabled:bu,supportLevel:CD};function je(e,o,s=1){const c=`\x1B[${e}m`,b=`\x1B[${o}m`,y=new RegExp(`\\x1b\\[${o}m`,"g");return j=>fD.enabled&&fD.supportLevel>=s?c+(""+j).replace(y,c)+b:""+j}const $e=je(90,39),_e=()=>new Date().toLocaleTimeString(),Tu=(...e)=>console.log(`[${$e(_e())}]`,...e);var pD,dD;const xu=GD.cli({name:"pkgroll",flags:{src:{type:String,description:"Source directory",default:"./src"},dist:{type:String,description:"Distribution directory",default:"./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"},watch:{type:Boolean,description:"Watch mode",alias:"w",default:!1},env:{type:[function(o){const[s,c]=o.split("=");return{key:s,value:c}}],description:"Compile-time environment variables (eg. --env.NODE_ENV=production)"}},help:{description:"Minimalistic package bundler",render(e,o){return o.flagOperator=s=>s.name==="env"?".key=":" ",o.render(e)}}}),ED=process.cwd(),gD=Su(xu.flags.src,!0),hD=Su(xu.flags.dist,!0),mD=(dD=(pD=rD)==null?void 0:pD.config.compilerOptions)==null?void 0:dD.target;mD&&xu.flags.target.push(mD),(async()=>{const e=await ZD(ED),o=ue(e);if(o.length===0)throw new Error("No export entries found in package.json");const s=await Promise.all(o.map(async j=>({input:await ne(j,gD,hD),exportEntry:j}))),c=te(e,ED),b=ee(e).filter(j=>!(j in c)).flatMap(j=>[j,new RegExp(`^${j}/`)]),y=await Oe(Su(mu.default.realpathSync.native(gD),!0),hD,s,xu.flags,c,b);xu.flags.watch?(Tu("Watch initialized"),Object.values(y).map(async j=>{Wu.watch(j).on("event",async I=>{I.code==="BUNDLE_START"&&Tu("Building",...Array.isArray(I.input)?I.input:[I.input]),I.code==="BUNDLE_END"&&(await Promise.all(j.output.map(V=>I.result.write(V))),Tu("Built",...Array.isArray(I.input)?I.input:[I.input])),I.code==="ERROR"&&Tu("Error:",I.error.message)})})):await Promise.all(Object.values(y).map(async j=>{const q=await Wu.rollup(j);return Promise.all(j.output.map(I=>q.write(I)))}))})().catch(e=>{console.error("Error:",e.message),process.exit(1)});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Q=Object.defineProperty,Z=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var V=(i,e,t)=>e in i?Q(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,I=(i,e)=>{for(var t in e||(e={}))ee.call(e,t)&&V(i,t,e[t]);if(O)for(var t of O(e))te.call(e,t)&&V(i,t,e[t]);return i},K=(i,e)=>Z(i,X(e));var re=require("module"),ne=require("path"),ie=require("magic-string");function se(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}function ae(i){if(i&&i.__esModule)return i;var e=Object.create(null);return i&&Object.keys(i).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return i[t]}})}}),e.default=i,Object.freeze(e)}var T=ae(ne),oe=se(ie),M=require;function ce(){const i=process.cwd();try{return M.resolve("typescript",{paths:[i]})}catch{throw new Error(`Could not find \`typescript\` in ${i}`)}}var r=M(ce());const $=".d.ts",R={getCurrentDirectory:()=>r.sys.getCurrentDirectory(),getNewLine:()=>r.sys.newLine,getCanonicalFileName:r.sys.useCaseSensitiveFileNames?i=>i:i=>i.toLowerCase()},le={declaration:!0,noEmit:!1,emitDeclarationOnly:!0,noEmitOnError:!0,checkJs:!1,declarationMap:!1,skipLibCheck:!0,preserveSymlinks:!0,target:r.ScriptTarget.ESNext};function q(i,e){const t=I(I({},le),e);let n=T.dirname(i),s=[];const o=r.findConfigFile(n,r.sys.fileExists);if(!o)return{dtsFiles:s,dirName:n,compilerOptions:t};n=T.dirname(o);const{config:p,error:c}=r.readConfigFile(o,r.sys.readFile);if(c)return console.error(r.formatDiagnostic(c,R)),{dtsFiles:s,dirName:n,compilerOptions:t};const{fileNames:l,options:m,errors:f}=r.parseJsonConfigFileContent(p,r.sys,n);return s=l.filter(d=>d.endsWith($)),f.length?(console.error(r.formatDiagnostics(f,R)),{dtsFiles:s,dirName:n,compilerOptions:t}):{dtsFiles:s,dirName:n,compilerOptions:I(I({},m),t)}}function pe(i,e){const{dtsFiles:t,compilerOptions:n}=q(i,e);return r.createProgram([i].concat(Array.from(t)),n,r.createCompilerHost(n,!0))}function fe(i,e){const t=[];let n=[],s=new Set,o="",p={};for(let c of i){if(c.endsWith($))continue;c=T.resolve(c);const l=q(c,e);if(l.dtsFiles.forEach(s.add,s),!n.length){n.push(c),{dirName:o,compilerOptions:p}=l;continue}if(l.dirName===o)n.push(c);else{const m=r.createCompilerHost(p,!0),f=r.createProgram(n.concat(Array.from(s)),p,m);t.push(f),n=[c],{dirName:o,compilerOptions:p}=l}}if(n.length){const c=r.createCompilerHost(p,!0),l=r.createProgram(n.concat(Array.from(s)),p,c);t.push(l)}return t}function ue(){let i;try{return{codeFrameColumns:i}=M("@babel/code-frame"),i}catch{try{return{codeFrameColumns:i}=re.createRequire(typeof document=="undefined"?new(require("url")).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("rollup-plugin-dts-
|
|
1
|
+
"use strict";var Q=Object.defineProperty,Z=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var V=(i,e,t)=>e in i?Q(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,I=(i,e)=>{for(var t in e||(e={}))ee.call(e,t)&&V(i,t,e[t]);if(O)for(var t of O(e))te.call(e,t)&&V(i,t,e[t]);return i},K=(i,e)=>Z(i,X(e));var re=require("module"),ne=require("path"),ie=require("magic-string");function se(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}function ae(i){if(i&&i.__esModule)return i;var e=Object.create(null);return i&&Object.keys(i).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return i[t]}})}}),e.default=i,Object.freeze(e)}var T=ae(ne),oe=se(ie),M=require;function ce(){const i=process.cwd();try{return M.resolve("typescript",{paths:[i]})}catch{throw new Error(`Could not find \`typescript\` in ${i}`)}}var r=M(ce());const $=".d.ts",R={getCurrentDirectory:()=>r.sys.getCurrentDirectory(),getNewLine:()=>r.sys.newLine,getCanonicalFileName:r.sys.useCaseSensitiveFileNames?i=>i:i=>i.toLowerCase()},le={declaration:!0,noEmit:!1,emitDeclarationOnly:!0,noEmitOnError:!0,checkJs:!1,declarationMap:!1,skipLibCheck:!0,preserveSymlinks:!0,target:r.ScriptTarget.ESNext};function q(i,e){const t=I(I({},le),e);let n=T.dirname(i),s=[];const o=r.findConfigFile(n,r.sys.fileExists);if(!o)return{dtsFiles:s,dirName:n,compilerOptions:t};n=T.dirname(o);const{config:p,error:c}=r.readConfigFile(o,r.sys.readFile);if(c)return console.error(r.formatDiagnostic(c,R)),{dtsFiles:s,dirName:n,compilerOptions:t};const{fileNames:l,options:m,errors:f}=r.parseJsonConfigFileContent(p,r.sys,n);return s=l.filter(d=>d.endsWith($)),f.length?(console.error(r.formatDiagnostics(f,R)),{dtsFiles:s,dirName:n,compilerOptions:t}):{dtsFiles:s,dirName:n,compilerOptions:I(I({},m),t)}}function pe(i,e){const{dtsFiles:t,compilerOptions:n}=q(i,e);return r.createProgram([i].concat(Array.from(t)),n,r.createCompilerHost(n,!0))}function fe(i,e){const t=[];let n=[],s=new Set,o="",p={};for(let c of i){if(c.endsWith($))continue;c=T.resolve(c);const l=q(c,e);if(l.dtsFiles.forEach(s.add,s),!n.length){n.push(c),{dirName:o,compilerOptions:p}=l;continue}if(l.dirName===o)n.push(c);else{const m=r.createCompilerHost(p,!0),f=r.createProgram(n.concat(Array.from(s)),p,m);t.push(f),n=[c],{dirName:o,compilerOptions:p}=l}}if(n.length){const c=r.createCompilerHost(p,!0),l=r.createProgram(n.concat(Array.from(s)),p,c);t.push(l)}return t}function ue(){let i;try{return{codeFrameColumns:i}=M("@babel/code-frame"),i}catch{try{return{codeFrameColumns:i}=re.createRequire(typeof document=="undefined"?new(require("url")).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("rollup-plugin-dts-55c2a6e5.js",document.baseURI).href)("@babel/code-frame"),i}catch{}}}function me(i){const e=i.getSourceFile(),t=e.getLineAndCharacterOfPosition(i.getStart()),n=e.getLineAndCharacterOfPosition(i.getEnd());return{start:{line:t.line+1,column:t.character+1},end:{line:n.line+1,column:n.character+1}}}function de(i){const e=ue(),n=i.getSourceFile().getFullText(),s=me(i);return e?`
|
|
2
2
|
`+e(n,s,{highlightCode:!0}):`
|
|
3
3
|
${s.start.line}:${s.start.column}: \`${i.getFullText().trim()}\``}class h extends Error{constructor(e,t="Syntax not yet supported"){super(`${t}
|
|
4
4
|
${de(e)}`)}}class ye{constructor(e){this.sourceFile=e}findNamespaces(){const e=[],t={};for(const n of this.sourceFile.statements){const s={start:n.getStart(),end:n.getEnd()};if(r.isEmptyStatement(n)){e.unshift({name:"",exports:[],location:s});continue}if((r.isImportDeclaration(n)||r.isExportDeclaration(n))&&n.moduleSpecifier&&r.isStringLiteral(n.moduleSpecifier)){let{text:f}=n.moduleSpecifier;if(f.startsWith(".")&&(f.endsWith(".d.ts")||f.endsWith(".d.cts")||f.endsWith(".d.mts"))){let d=n.moduleSpecifier.getStart()+1,w=n.moduleSpecifier.getEnd()-1;e.unshift({name:"",exports:[],location:{start:d,end:w},textBeforeCodeAfter:f.replace(/\.d\.ts$/,".js").replace(/\.d\.cts$/,".cjs").replace(/\.d\.mts$/,".mjs")})}}if(r.isModuleDeclaration(n)&&n.body&&r.isModuleBlock(n.body)){for(const f of n.body.statements)if(r.isExportDeclaration(f)&&f.exportClause){if(r.isNamespaceExport(f.exportClause))continue;for(const d of f.exportClause.elements)d.propertyName&&d.propertyName.getText()==d.name.getText()&&e.unshift({name:"",exports:[],location:{start:d.propertyName.getEnd(),end:d.name.getEnd()}})}}if(r.isClassDeclaration(n)?t[n.name.getText()]={type:"class",generics:n.typeParameters}:r.isFunctionDeclaration(n)?t[n.name.getText()]={type:"function"}:r.isInterfaceDeclaration(n)?t[n.name.getText()]={type:"interface",generics:n.typeParameters}:r.isTypeAliasDeclaration(n)?t[n.name.getText()]={type:"type",generics:n.typeParameters}:r.isModuleDeclaration(n)&&r.isIdentifier(n.name)?t[n.name.getText()]={type:"namespace"}:r.isEnumDeclaration(n)&&(t[n.name.getText()]={type:"enum"}),!r.isVariableStatement(n))continue;const{declarations:o}=n.declarationList;if(o.length!==1)continue;const p=o[0],c=p.name.getText();if(!p.initializer||!r.isCallExpression(p.initializer)){t[c]={type:"var"};continue}const l=p.initializer.arguments[0];if(!p.initializer.expression.getFullText().includes("/*#__PURE__*/Object.freeze")||!r.isObjectLiteralExpression(l))continue;const m=[];for(const f of l.properties){if(!r.isPropertyAssignment(f)||!(r.isIdentifier(f.name)||r.isStringLiteral(f.name))||f.name.text!=="__proto__"&&!r.isIdentifier(f.initializer))throw new h(f,"Expected a property assignment");f.name.text!=="__proto__"&&m.push({exportedName:f.name.text,localName:f.initializer.getText()})}e.unshift({name:c,exports:m,location:s})}return{namespaces:e,itemTypes:t}}fix(){var e;let t=this.sourceFile.getFullText();const{namespaces:n,itemTypes:s}=this.findNamespaces();for(const o of n){const p=t.slice(o.location.end);t=t.slice(0,o.location.start);for(const{exportedName:c,localName:l}of o.exports)if(c===l){const{type:m,generics:f}=s[l]||{};if(m==="interface"||m==="type"){const d=U(f);t+=`type ${o.name}_${c}${d.in} = ${l}${d.out};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pkgroll",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Zero-config rollup bundler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zero config",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@rollup/plugin-alias": "^3.1.9",
|
|
58
|
-
"@rollup/plugin-commonjs": "^
|
|
58
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
59
59
|
"@rollup/plugin-inject": "^4.0.4",
|
|
60
60
|
"@rollup/plugin-json": "^4.1.0",
|
|
61
61
|
"@rollup/plugin-node-resolve": "^13.2.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@pvtnbr/eslint-config": "^0.20.0",
|
|
70
|
-
"@types/node": "^17.0.
|
|
70
|
+
"@types/node": "^17.0.30",
|
|
71
71
|
"@types/rimraf": "^3.0.2",
|
|
72
72
|
"cleye": "^1.2.0",
|
|
73
73
|
"eslint": "^8.14.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"rimraf": "^3.0.2",
|
|
83
83
|
"rollup-plugin-dts": "^4.2.1",
|
|
84
84
|
"type-fest": "^2.12.2",
|
|
85
|
-
"typescript": "^4.6.
|
|
85
|
+
"typescript": "^4.6.4"
|
|
86
86
|
},
|
|
87
87
|
"eslintConfig": {
|
|
88
88
|
"extends": "@pvtnbr",
|